Merge branch 'develop' into design-updates

This commit is contained in:
Pranav
2024-12-05 09:57:22 -08:00
203 changed files with 10497 additions and 1303 deletions
@@ -1,5 +1,4 @@
<script setup>
// [VITE] TODO: Test this component across different screen sizes and usages
import { ref, provide, onMounted, computed } from 'vue';
import { useEventListener } from '@vueuse/core';
@@ -17,15 +16,10 @@ const props = defineProps({
const emit = defineEmits(['change']);
const hasScroll = ref(false);
// TODO: We may not this internalActiveIndex, we can use activeIndex directly
// But right I'll keep it and fix it when testing the rest of the codebase
const internalActiveIndex = ref(props.index);
// Create a proxy for activeIndex using computed
const activeIndex = computed({
get: () => internalActiveIndex.value,
get: () => props.index,
set: newValue => {
internalActiveIndex.value = newValue;
emit('change', newValue);
},
});