mood-ui 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/components/data-display/calendar/AgendaView.vue_vue_type_script_setup_true_lang.mjs +6 -6
- package/dist/components/data-display/calendar/AgendaView.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/calendar/Calendar.vue_vue_type_script_setup_true_lang.mjs +4 -4
- package/dist/components/data-display/calendar/Calendar.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/calendar/DayView.vue_vue_type_script_setup_true_lang.mjs +7 -7
- package/dist/components/data-display/calendar/DayView.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/calendar/MonthView.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/dist/components/data-display/calendar/MonthView.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/calendar/Scheduler.vue_vue_type_script_setup_true_lang.mjs +7 -7
- package/dist/components/data-display/calendar/Scheduler.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/calendar/WeekView.vue_vue_type_script_setup_true_lang.mjs +7 -7
- package/dist/components/data-display/calendar/WeekView.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/date-picker/DateRangePicker.vue_vue_type_script_setup_true_lang.mjs +3 -3
- package/dist/components/data-display/date-picker/DateRangePicker.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/date-picker/DateTimePicker.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/dist/components/data-display/date-picker/DateTimePicker.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/table/Table.cjs +1 -1
- package/dist/components/data-display/table/Table.cjs.map +1 -1
- package/dist/components/data-display/table/Table.mjs +1 -1
- package/dist/components/data-display/table/Table.mjs.map +1 -1
- package/dist/components/data-display/table/Table.vue_vue_type_script_setup_true_lang.cjs +37 -1
- package/dist/components/data-display/table/Table.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/data-display/table/Table.vue_vue_type_script_setup_true_lang.mjs +38 -2
- package/dist/components/data-display/table/Table.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/table/TablePagination.cjs.map +1 -1
- package/dist/components/data-display/table/TablePagination.mjs.map +1 -1
- package/dist/components/data-display/table/TablePagination.vue_vue_type_script_setup_true_lang.cjs +24 -16
- package/dist/components/data-display/table/TablePagination.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/data-display/table/TablePagination.vue_vue_type_script_setup_true_lang.mjs +24 -16
- package/dist/components/data-display/table/TablePagination.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/feedback/Banner.vue_vue_type_script_setup_true_lang.mjs +4 -4
- package/dist/components/feedback/Banner.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/feedback/Drawer.vue_vue_type_script_setup_true_lang.mjs +5 -5
- package/dist/components/feedback/Drawer.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/feedback/EmptyState.cjs.map +1 -1
- package/dist/components/feedback/EmptyState.mjs.map +1 -1
- package/dist/components/feedback/EmptyState.vue_vue_type_script_setup_true_lang.cjs +1 -1
- package/dist/components/feedback/EmptyState.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/feedback/EmptyState.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/components/feedback/EmptyState.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/feedback/Modal.vue_vue_type_script_setup_true_lang.mjs +5 -5
- package/dist/components/feedback/Modal.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/feedback/tour/Tour.vue_vue_type_script_setup_true_lang.cjs +369 -0
- package/dist/components/feedback/tour/Tour.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
- package/dist/components/feedback/tour/Tour.vue_vue_type_script_setup_true_lang.mjs +368 -0
- package/dist/components/feedback/tour/Tour.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
- package/dist/components/feedback/tour/Tour2.cjs +6 -0
- package/dist/components/feedback/tour/Tour2.cjs.map +1 -0
- package/dist/components/feedback/tour/Tour2.mjs +7 -0
- package/dist/components/feedback/tour/Tour2.mjs.map +1 -0
- package/dist/components/feedback/tour/TourCard.cjs +6 -0
- package/dist/components/feedback/tour/TourCard.cjs.map +1 -0
- package/dist/components/feedback/tour/TourCard.mjs +7 -0
- package/dist/components/feedback/tour/TourCard.mjs.map +1 -0
- package/dist/components/feedback/tour/TourCard.vue_vue_type_script_setup_true_lang.cjs +102 -0
- package/dist/components/feedback/tour/TourCard.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
- package/dist/components/feedback/tour/TourCard.vue_vue_type_script_setup_true_lang.mjs +101 -0
- package/dist/components/feedback/tour/TourCard.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
- package/dist/components/feedback/tour/tourAnchor.cjs +75 -0
- package/dist/components/feedback/tour/tourAnchor.cjs.map +1 -0
- package/dist/components/feedback/tour/tourAnchor.mjs +72 -0
- package/dist/components/feedback/tour/tourAnchor.mjs.map +1 -0
- package/dist/components/feedback/tour/tourPlace.cjs +108 -0
- package/dist/components/feedback/tour/tourPlace.cjs.map +1 -0
- package/dist/components/feedback/tour/tourPlace.mjs +107 -0
- package/dist/components/feedback/tour/tourPlace.mjs.map +1 -0
- package/dist/components/feedback/tour/tourShape.cjs +121 -0
- package/dist/components/feedback/tour/tourShape.cjs.map +1 -0
- package/dist/components/feedback/tour/tourShape.mjs +118 -0
- package/dist/components/feedback/tour/tourShape.mjs.map +1 -0
- package/dist/components/feedback/tour/useTourSpotlight.cjs +60 -0
- package/dist/components/feedback/tour/useTourSpotlight.cjs.map +1 -0
- package/dist/components/feedback/tour/useTourSpotlight.mjs +59 -0
- package/dist/components/feedback/tour/useTourSpotlight.mjs.map +1 -0
- package/dist/components/feedback/tour/useTourSteps.cjs +108 -0
- package/dist/components/feedback/tour/useTourSteps.cjs.map +1 -0
- package/dist/components/feedback/tour/useTourSteps.mjs +107 -0
- package/dist/components/feedback/tour/useTourSteps.mjs.map +1 -0
- package/dist/components/forms/Button.cjs +1 -1
- package/dist/components/forms/Button.cjs.map +1 -1
- package/dist/components/forms/Button.mjs +1 -1
- package/dist/components/forms/Button.mjs.map +1 -1
- package/dist/components/forms/Button.vue_vue_type_script_setup_true_lang.cjs +1 -1
- package/dist/components/forms/Button.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/forms/Button.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/components/forms/Button.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/forms/FileInput.cjs +1 -1
- package/dist/components/forms/FileInput.cjs.map +1 -1
- package/dist/components/forms/FileInput.mjs +1 -1
- package/dist/components/forms/FileInput.mjs.map +1 -1
- package/dist/components/forms/FileInput.vue_vue_type_script_setup_true_lang.cjs +34 -17
- package/dist/components/forms/FileInput.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/forms/FileInput.vue_vue_type_script_setup_true_lang.mjs +34 -17
- package/dist/components/forms/FileInput.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/forms/MultiSelect.cjs +1 -1
- package/dist/components/forms/MultiSelect.cjs.map +1 -1
- package/dist/components/forms/MultiSelect.mjs +1 -1
- package/dist/components/forms/MultiSelect.mjs.map +1 -1
- package/dist/components/forms/MultiSelect.vue_vue_type_script_setup_true_lang.cjs +2 -1
- package/dist/components/forms/MultiSelect.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/forms/MultiSelect.vue_vue_type_script_setup_true_lang.mjs +2 -1
- package/dist/components/forms/MultiSelect.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/forms/TagInput.cjs.map +1 -1
- package/dist/components/forms/TagInput.mjs.map +1 -1
- package/dist/components/forms/TagInput.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/components/forms/TagInput.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/forms/TagInput.vue_vue_type_script_setup_true_lang.mjs +1 -0
- package/dist/components/forms/TagInput.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/forms/Textarea.cjs.map +1 -1
- package/dist/components/forms/Textarea.mjs.map +1 -1
- package/dist/components/forms/Textarea.vue_vue_type_script_setup_true_lang.cjs +1 -1
- package/dist/components/forms/Textarea.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/forms/Textarea.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/components/forms/Textarea.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelectTrigger.cjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelectTrigger.mjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelectTrigger.vue_vue_type_script_setup_true_lang.cjs +2 -2
- package/dist/components/forms/morph-select/MorphSelectTrigger.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/forms/morph-select/MorphSelectTrigger.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/dist/components/forms/morph-select/MorphSelectTrigger.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/layout/Canvas.cjs +1 -1
- package/dist/components/layout/Canvas.cjs.map +1 -1
- package/dist/components/layout/Canvas.mjs +1 -1
- package/dist/components/layout/Canvas.mjs.map +1 -1
- package/dist/components/layout/Canvas.vue_vue_type_script_setup_true_lang.cjs +1 -1
- package/dist/components/layout/Canvas.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/layout/Canvas.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/components/layout/Canvas.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/layout/PopoverPanel.cjs +1 -1
- package/dist/components/layout/PopoverPanel.cjs.map +1 -1
- package/dist/components/layout/PopoverPanel.mjs +1 -1
- package/dist/components/layout/PopoverPanel.mjs.map +1 -1
- package/dist/components/layout/PopoverPanel.vue_vue_type_script_setup_true_lang.cjs +1 -1
- package/dist/components/layout/PopoverPanel.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/layout/PopoverPanel.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/components/layout/PopoverPanel.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/layout/popover/PopoverTrigger.cjs.map +1 -1
- package/dist/components/layout/popover/PopoverTrigger.mjs.map +1 -1
- package/dist/components/layout/popover/PopoverTrigger.vue_vue_type_script_setup_true_lang.cjs +1 -1
- package/dist/components/layout/popover/PopoverTrigger.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/layout/popover/PopoverTrigger.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/components/layout/popover/PopoverTrigger.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/navigation/DropdownMenu.cjs +1 -1
- package/dist/components/navigation/DropdownMenu.cjs.map +1 -1
- package/dist/components/navigation/DropdownMenu.mjs +1 -1
- package/dist/components/navigation/DropdownMenu.mjs.map +1 -1
- package/dist/components/navigation/DropdownMenu.vue_vue_type_script_setup_true_lang.cjs +1 -1
- package/dist/components/navigation/DropdownMenu.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/navigation/DropdownMenu.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/components/navigation/DropdownMenu.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/navigation/Switcher.cjs.map +1 -1
- package/dist/components/navigation/Switcher.mjs.map +1 -1
- package/dist/components/navigation/Switcher.vue_vue_type_script_setup_true_lang.cjs +77 -45
- package/dist/components/navigation/Switcher.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/navigation/Switcher.vue_vue_type_script_setup_true_lang.mjs +77 -45
- package/dist/components/navigation/Switcher.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/navigation/menu/MenuTrigger.cjs.map +1 -1
- package/dist/components/navigation/menu/MenuTrigger.mjs.map +1 -1
- package/dist/components/navigation/menu/MenuTrigger.vue_vue_type_script_setup_true_lang.cjs +1 -1
- package/dist/components/navigation/menu/MenuTrigger.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/navigation/menu/MenuTrigger.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/components/navigation/menu/MenuTrigger.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/composables/useField.cjs +28 -8
- package/dist/composables/useField.cjs.map +1 -1
- package/dist/composables/useField.mjs +28 -8
- package/dist/composables/useField.mjs.map +1 -1
- package/dist/config/ModoLocale.cjs +10 -1
- package/dist/config/ModoLocale.cjs.map +1 -1
- package/dist/config/ModoLocale.mjs +10 -1
- package/dist/config/ModoLocale.mjs.map +1 -1
- package/dist/config/locales/es.cjs +10 -1
- package/dist/config/locales/es.cjs.map +1 -1
- package/dist/config/locales/es.mjs +10 -1
- package/dist/config/locales/es.mjs.map +1 -1
- package/dist/index.cjs +4 -0
- package/dist/index.mjs +3 -1
- package/dist/mood-ui.css +293 -117
- package/dist/types/components/data-display/surface-card/SurfaceCardBody.vue.d.ts +1 -1
- package/dist/types/components/data-display/surface-card/SurfaceCardFooter.vue.d.ts +1 -1
- package/dist/types/components/data-display/surface-card/SurfaceCardHeader.vue.d.ts +1 -1
- package/dist/types/components/feedback/dialog/DialogContent.vue.d.ts +1 -1
- package/dist/types/components/feedback/tour/Tour.vue.d.ts +31 -0
- package/dist/types/components/feedback/tour/TourCard.vue.d.ts +25 -0
- package/dist/types/components/feedback/tour/index.d.ts +2 -0
- package/dist/types/components/feedback/tour/tourAnchor.d.ts +12 -0
- package/dist/types/components/feedback/tour/tourPlace.d.ts +60 -0
- package/dist/types/components/feedback/tour/tourShape.d.ts +36 -0
- package/dist/types/components/feedback/tour/useTourSpotlight.d.ts +14 -0
- package/dist/types/components/feedback/tour/useTourSteps.d.ts +31 -0
- package/dist/types/components/layout/Canvas.vue.d.ts +1 -1
- package/dist/types/components/layout/popover/PopoverContent.vue.d.ts +1 -1
- package/dist/types/components/navigation/menu/MenuContent.vue.d.ts +1 -1
- package/dist/types/composables/useField.d.ts +23 -0
- package/dist/types/config/ModoLocale.d.ts +14 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/interfaces/feedback/Tour.interface.d.ts +73 -0
- package/dist/types/interfaces/navigation/Switcher.interface.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MorphSelectTrigger.vue_vue_type_script_setup_true_lang.mjs","names":["$attrs","$slots"],"sources":["../../../../src/components/forms/morph-select/MorphSelectTrigger.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, ref, watch, onBeforeUnmount } from 'vue'\nimport { ChevronDownIcon } from '@heroicons/vue/24/outline'\nimport type { MorphSelectTriggerProps } from '../../../interfaces/forms/MorphSelect.interface'\nimport { FIELD_AFFORDANCE_ICON_BY_COLOR, useFieldClasses } from '../../../composables/useField'\nimport { useModoLocale, useSizeTokens } from '../../../composables/useModoConfig'\nimport RenderContent from '../../../utils/RenderContent'\nimport Typography from '../../data-display/Typography.vue'\nimport { useMorphSelect } from './MorphSelectContext'\ndefineOptions({ inheritAttrs: false })\nconst props = withDefaults(defineProps<MorphSelectTriggerProps>(), { variant: 'outline' })\nconst {\n fieldId, multiple, selectedOptions, disabled, readonly, required, label, ariaLabel, helperText, errorText, hasError, stateColor,\n radius, size, halo, fullWidth, errorId, helperId, describedBy, phase, open, trigger, button, setOpen,\n} = useMorphSelect()\nconst loc = useModoLocale()\nconst sz = useSizeTokens(() => size.value)\nconst { wrapperVariantClasses, radiusClasses } = useFieldClasses({ variant: () => props.variant, stateColor, hasError, radius, halo })\nconst affordanceIconClass = computed(() => FIELD_AFFORDANCE_ICON_BY_COLOR[stateColor.value] ?? 'text-muted-foreground')\n\nconst landed = ref(false)\nlet landedTimer: ReturnType<typeof setTimeout> | undefined\nwatch(phase, (next, previous) => {\n if (previous === 'closing' && next === 'closed') {\n landed.value = true; clearTimeout(landedTimer)\n landedTimer = setTimeout(() => { landed.value = false }, 500)\n }\n})\nonBeforeUnmount(() => clearTimeout(landedTimer))\nconst selected = computed(() => selectedOptions.value[0])\n// Multiple: the selected labels joined, in option order.\nconst summary = computed(() => selectedOptions.value.map(option => option.textValue ?? String(option.label)).join(', '))\nconst hasValue = computed(() => selectedOptions.value.length > 0)\nfunction key(event: KeyboardEvent) { if (event.key === 'ArrowDown' || event.key === 'ArrowUp') { event.preventDefault(); setOpen(true) } }\n</script>\n<template>\n <div :class=\"['modo-morph-select flex flex-col', fullWidth ? 'w-full' : 'inline-flex']\" data-modo-morph-select=\"\" :data-modo-size=\"size\" :data-modo-radius=\"radius\" :data-modo-variant=\"variant\">\n <label v-if=\"label\" :for=\"fieldId\" class=\"modo-morph-select__label\">\n {{ label }}\n <span v-if=\"required\" aria-hidden=\"true\" class=\"text-destructive ml-0.5\">*</span>\n </label>\n <div ref=\"trigger\"\n :class=\"['modo-morph-select__field modo-field-wrapper', wrapperVariantClasses, radiusClasses, sz.control, disabled ? 'opacity-60 cursor-not-allowed' : '']\"\n :data-modo-morph-origin=\"phase === 'closed' ? (landed ? 'landed' : undefined) : phase === 'closing' ? 'closing' : 'hidden'\">\n <button :id=\"fieldId\" ref=\"button\" v-bind=\"$attrs\" type=\"button\" role=\"combobox\" aria-haspopup=\"listbox\"\n :class=\"['modo-morph-select__button flex h-full w-full items-center gap-2 text-left outline-none', sz.padX, sz.text, disabled ? 'cursor-not-allowed' : readonly ? 'cursor-default' : 'cursor-pointer']\"\n :aria-expanded=\"open\" :aria-controls=\"phase !== 'closed' ? `${fieldId}-listbox` : undefined\"\n :aria-label=\"!label ? ariaLabel : undefined\" :aria-describedby=\"describedBy\" :aria-invalid=\"hasError || undefined\"\n :aria-required=\"required || undefined\" :aria-readonly=\"readonly || undefined\" :disabled=\"disabled\" @keydown=\"key\" @click=\"setOpen(!open)\">\n <span v-if=\"$slots.icon || icon\" :class=\"['modo-morph-select__icon inline-flex shrink-0 items-center', affordanceIconClass]\" aria-hidden=\"true\">\n <slot name=\"icon\"><component :is=\"icon\" :class=\"sz.icon\" /></slot>\n </span>\n <span :class=\"['modo-morph-select__value min-w-0 flex-1 truncate', hasValue ? 'text-foreground' : 'text-muted-foreground']\" :data-modo-placeholder=\"hasValue ? undefined : ''\">\n <slot :option=\"selected\" :options=\"selectedOptions\">\n <template v-if=\"multiple && hasValue\">{{ summary }}</template>\n <RenderContent v-else :content=\"selected?.label ?? placeholder ?? loc.morphSelect.placeholder\" />\n </slot>\n </span>\n <ChevronDownIcon class=\"modo-morph-select__chevron\" aria-hidden=\"true\" :class=\"['shrink-0 transition-transform duration-base ease-standard', affordanceIconClass, sz.icon, open ? 'rotate-180' : '']\" />\n </button>\n </div>\n <Typography v-if=\"hasError && errorText\" :id=\"errorId\" variant=\"caption\" size=\"medium\" color=\"danger\" as=\"p\">{{ errorText }}</Typography>\n <Typography v-else-if=\"helperText\" :id=\"helperId\" variant=\"caption\" size=\"medium\" color=\"muted\" as=\"p\">{{ helperText }}</Typography>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUA,MAAM,QAAQ;EACd,MAAM,EACJ,SAAS,UAAU,iBAAiB,UAAU,UAAU,UAAU,OAAO,WAAW,YAAY,WAAW,UAAU,YACrH,QAAQ,MAAM,MAAM,WAAW,SAAS,UAAU,aAAa,OAAO,MAAM,SAAS,QAAQ,YAC3F,gBAAe;EACnB,MAAM,MAAM,eAAc;EAC1B,MAAM,KAAK,oBAAoB,KAAK,MAAK;EACzC,MAAM,EAAE,uBAAuB,kBAAkB,gBAAgB;GAAE,eAAe,MAAM;GAAS;GAAY;GAAU;GAAQ;GAAM,CAAA;EACrI,MAAM,sBAAsB,eAAe,+BAA+B,WAAW,UAAU,wBAAuB;EAEtH,MAAM,SAAS,IAAI,MAAK;EACxB,IAAI;EACJ,MAAM,QAAQ,MAAM,aAAa;GAC/B,IAAI,aAAa,aAAa,SAAS,UAAU;IAC/C,OAAO,QAAQ;IAAM,aAAa,YAAW;IAC7C,cAAc,iBAAiB;KAAE,OAAO,QAAQ;OAAS,IAAG;;IAE/D;EACD,sBAAsB,aAAa,YAAY,CAAA;EAC/C,MAAM,WAAW,eAAe,gBAAgB,MAAM,GAAE;EAExD,MAAM,UAAU,eAAe,gBAAgB,MAAM,KAAI,WAAU,OAAO,aAAa,OAAO,OAAO,MAAM,CAAC,CAAC,KAAK,KAAK,CAAA;EACvH,MAAM,WAAW,eAAe,gBAAgB,MAAM,SAAS,EAAC;EAChE,SAAS,IAAI,OAAsB;GAAE,IAAI,MAAM,QAAQ,eAAe,MAAM,QAAQ,WAAW;IAAE,MAAM,gBAAgB;IAAE,QAAQ,KAAK;;;;uBAGpI,mBA2BM,OAAA;IA3BA,OAAK,eAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"MorphSelectTrigger.vue_vue_type_script_setup_true_lang.mjs","names":["$attrs","$slots"],"sources":["../../../../src/components/forms/morph-select/MorphSelectTrigger.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, ref, watch, onBeforeUnmount } from 'vue'\nimport { ChevronDownIcon } from '@heroicons/vue/24/outline'\nimport type { MorphSelectTriggerProps } from '../../../interfaces/forms/MorphSelect.interface'\nimport { FIELD_AFFORDANCE_ICON_BY_COLOR, useFieldClasses } from '../../../composables/useField'\nimport { useModoLocale, useSizeTokens } from '../../../composables/useModoConfig'\nimport RenderContent from '../../../utils/RenderContent'\nimport Typography from '../../data-display/Typography.vue'\nimport { useMorphSelect } from './MorphSelectContext'\ndefineOptions({ inheritAttrs: false })\nconst props = withDefaults(defineProps<MorphSelectTriggerProps>(), { variant: 'outline' })\nconst {\n fieldId, multiple, selectedOptions, disabled, readonly, required, label, ariaLabel, helperText, errorText, hasError, stateColor,\n radius, size, halo, fullWidth, errorId, helperId, describedBy, phase, open, trigger, button, setOpen,\n} = useMorphSelect()\nconst loc = useModoLocale()\nconst sz = useSizeTokens(() => size.value)\nconst { wrapperVariantClasses, radiusClasses } = useFieldClasses({ variant: () => props.variant, stateColor, hasError, radius, halo })\nconst affordanceIconClass = computed(() => FIELD_AFFORDANCE_ICON_BY_COLOR[stateColor.value] ?? 'text-muted-foreground')\n\nconst landed = ref(false)\nlet landedTimer: ReturnType<typeof setTimeout> | undefined\nwatch(phase, (next, previous) => {\n if (previous === 'closing' && next === 'closed') {\n landed.value = true; clearTimeout(landedTimer)\n landedTimer = setTimeout(() => { landed.value = false }, 500)\n }\n})\nonBeforeUnmount(() => clearTimeout(landedTimer))\nconst selected = computed(() => selectedOptions.value[0])\n// Multiple: the selected labels joined, in option order.\nconst summary = computed(() => selectedOptions.value.map(option => option.textValue ?? String(option.label)).join(', '))\nconst hasValue = computed(() => selectedOptions.value.length > 0)\nfunction key(event: KeyboardEvent) { if (event.key === 'ArrowDown' || event.key === 'ArrowUp') { event.preventDefault(); setOpen(true) } }\n</script>\n<template>\n <div :class=\"['modo-morph-select flex flex-col gap-1.5', fullWidth ? 'w-full' : 'inline-flex']\" data-modo-morph-select=\"\" :data-modo-size=\"size\" :data-modo-radius=\"radius\" :data-modo-variant=\"variant\">\n <label v-if=\"label\" :for=\"fieldId\" class=\"modo-morph-select__label text-caption font-medium text-foreground\">\n {{ label }}\n <span v-if=\"required\" aria-hidden=\"true\" class=\"text-destructive ml-0.5\">*</span>\n </label>\n <div ref=\"trigger\"\n :class=\"['modo-morph-select__field modo-field-wrapper', wrapperVariantClasses, radiusClasses, sz.control, disabled ? 'opacity-60 cursor-not-allowed' : '']\"\n :data-modo-morph-origin=\"phase === 'closed' ? (landed ? 'landed' : undefined) : phase === 'closing' ? 'closing' : 'hidden'\">\n <button :id=\"fieldId\" ref=\"button\" v-bind=\"$attrs\" type=\"button\" role=\"combobox\" aria-haspopup=\"listbox\"\n :class=\"['modo-morph-select__button flex h-full w-full items-center gap-2 text-left outline-none', sz.padX, sz.text, disabled ? 'cursor-not-allowed' : readonly ? 'cursor-default' : 'cursor-pointer']\"\n :aria-expanded=\"open\" :aria-controls=\"phase !== 'closed' ? `${fieldId}-listbox` : undefined\"\n :aria-label=\"!label ? ariaLabel : undefined\" :aria-describedby=\"describedBy\" :aria-invalid=\"hasError || undefined\"\n :aria-required=\"required || undefined\" :aria-readonly=\"readonly || undefined\" :disabled=\"disabled\" @keydown=\"key\" @click=\"setOpen(!open)\">\n <span v-if=\"$slots.icon || icon\" :class=\"['modo-morph-select__icon inline-flex shrink-0 items-center', affordanceIconClass]\" aria-hidden=\"true\">\n <slot name=\"icon\"><component :is=\"icon\" :class=\"sz.icon\" /></slot>\n </span>\n <span :class=\"['modo-morph-select__value min-w-0 flex-1 truncate', hasValue ? 'text-foreground' : 'text-muted-foreground']\" :data-modo-placeholder=\"hasValue ? undefined : ''\">\n <slot :option=\"selected\" :options=\"selectedOptions\">\n <template v-if=\"multiple && hasValue\">{{ summary }}</template>\n <RenderContent v-else :content=\"selected?.label ?? placeholder ?? loc.morphSelect.placeholder\" />\n </slot>\n </span>\n <ChevronDownIcon class=\"modo-morph-select__chevron\" aria-hidden=\"true\" :class=\"['shrink-0 transition-transform duration-base ease-standard', affordanceIconClass, sz.icon, open ? 'rotate-180' : '']\" />\n </button>\n </div>\n <Typography v-if=\"hasError && errorText\" :id=\"errorId\" variant=\"caption\" size=\"medium\" color=\"danger\" as=\"p\">{{ errorText }}</Typography>\n <Typography v-else-if=\"helperText\" :id=\"helperId\" variant=\"caption\" size=\"medium\" color=\"muted\" as=\"p\">{{ helperText }}</Typography>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUA,MAAM,QAAQ;EACd,MAAM,EACJ,SAAS,UAAU,iBAAiB,UAAU,UAAU,UAA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;;4BAAoB,CAAA,gBAAA,gBAAb,MAAA,WAAU,CAAA,EAAA,EAAA,CAAA,CAAA"}
|
|
@@ -2,7 +2,7 @@ const require__plugin_vue_export_helper = require("../../_virtual/_plugin-vue_ex
|
|
|
2
2
|
const require_Canvas_vue_vue_type_script_setup_true_lang = require("./Canvas.vue_vue_type_script_setup_true_lang.cjs");
|
|
3
3
|
;/* empty css */
|
|
4
4
|
//#region src/components/layout/Canvas.vue
|
|
5
|
-
var Canvas_default = /* @__PURE__ */ require__plugin_vue_export_helper.default(require_Canvas_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
5
|
+
var Canvas_default = /* @__PURE__ */ require__plugin_vue_export_helper.default(require_Canvas_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-0256e5e1"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
exports.default = Canvas_default;
|
|
8
8
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Canvas.cjs","names":[],"sources":["../../../src/components/layout/Canvas.vue"],"sourcesContent":["<template> \n <component \n :is=\"as\" \n class=\"modo-canvas\" \n :class=\"[surfaceClasses, radiusClasses, bordered ? 'border border-border' : '']\" \n :style=\"canvasStyle\" \n :data-pattern=\"pattern\" \n > \n <slot /> \n </component> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed, type CSSProperties } from 'vue'; \nimport type { Canvas } from '../../interfaces/layout/Canvas.interface'; \nimport { useResolvedRadius } from '../../composables/useModoConfig'; \n \nconst props = withDefaults(defineProps<Canvas>(), { \n pattern: 'dots', \n cellSize: 16, \n intensity: 'subtle', \n surface: 'card', \n bordered: false, \n as: 'div', \n}); \n \nconst resolvedRadius = useResolvedRadius(() => props.radius); \n \nconst surfaceClasses = computed(() => { \n switch (props.surface) { \n case 'background': return 'bg-background'; \n case 'muted': return 'bg-muted'; \n case 'card': \n default: return 'bg-card'; \n } \n}); \n \nconst radiusClasses = computed(() => { \n switch (resolvedRadius.value) { \n case 'none': return 'rounded-none'; \n case 'small': return 'rounded-sm'; \n case 'large': return 'rounded-xl'; \n case 'full': return 'rounded-
|
|
1
|
+
{"version":3,"file":"Canvas.cjs","names":[],"sources":["../../../src/components/layout/Canvas.vue"],"sourcesContent":["<template> \n <component \n :is=\"as\" \n class=\"modo-canvas\" \n :class=\"[surfaceClasses, radiusClasses, bordered ? 'border border-border' : '']\" \n :style=\"canvasStyle\" \n :data-pattern=\"pattern\" \n > \n <slot /> \n </component> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed, type CSSProperties } from 'vue'; \nimport type { Canvas } from '../../interfaces/layout/Canvas.interface'; \nimport { useResolvedRadius } from '../../composables/useModoConfig'; \n \nconst props = withDefaults(defineProps<Canvas>(), { \n pattern: 'dots', \n cellSize: 16, \n intensity: 'subtle', \n surface: 'card', \n bordered: false, \n as: 'div', \n}); \n \nconst resolvedRadius = useResolvedRadius(() => props.radius); \n \nconst surfaceClasses = computed(() => { \n switch (props.surface) { \n case 'background': return 'bg-background'; \n case 'muted': return 'bg-muted'; \n case 'card': \n default: return 'bg-card'; \n } \n}); \n \nconst radiusClasses = computed(() => { \n switch (resolvedRadius.value) { \n case 'none': return 'rounded-none'; \n case 'small': return 'rounded-sm'; \n case 'large': return 'rounded-xl'; \n // A large surface never goes past a card-like radius (Card's own `full`).\n case 'full': return 'rounded-3xl'; \n case 'medium': \n default: return 'rounded-md'; \n } \n}); \n \n/** Map intensity → opacity applied to the foreground stroke. */ \nconst intensityAlpha = computed(() => { \n switch (props.intensity) { \n case 'strong': return 0.55; \n case 'normal': return 0.32; \n case 'subtle': \n default: return 0.18; \n } \n}); \n \nconst canvasStyle = computed<CSSProperties>(() => ({ \n '--canvas-cell': `${props.cellSize}px`, \n '--canvas-stroke-alpha': String(intensityAlpha.value), \n} as CSSProperties)); \n</script> \n \n<style scoped> \n.modo-canvas { \n /* Foreground stroke uses the border token, alpha modulated by intensity. \n `color-mix` keeps it light/dark/palette-aware automatically. */ \n --canvas-stroke: color-mix( \n in oklch, \n var(--border) calc(var(--canvas-stroke-alpha) * 100%), \n transparent \n ); \n} \n \n.modo-canvas[data-pattern='dots'] { \n background-image: radial-gradient( \n circle at 1px 1px, \n var(--canvas-stroke) 1px, \n transparent 0 \n ); \n background-size: var(--canvas-cell) var(--canvas-cell); \n} \n \n.modo-canvas[data-pattern='grid'] { \n background-image: \n linear-gradient(to right, var(--canvas-stroke) 1px, transparent 1px), \n linear-gradient(to bottom, var(--canvas-stroke) 1px, transparent 1px); \n background-size: var(--canvas-cell) var(--canvas-cell); \n} \n \n.modo-canvas[data-pattern='lines'] { \n background-image: linear-gradient( \n to bottom, \n var(--canvas-stroke) 1px, \n transparent 1px \n ); \n background-size: 100% var(--canvas-cell); \n} \n \n.modo-canvas[data-pattern='none'] { \n background-image: none; \n} \n \n@media print { \n .modo-canvas { \n background-image: none !important; \n } \n} \n</style>\n"],"mappings":""}
|
|
@@ -2,7 +2,7 @@ import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export
|
|
|
2
2
|
import Canvas_vue_vue_type_script_setup_true_lang_default from "./Canvas.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
3
|
/* empty css */
|
|
4
4
|
//#region src/components/layout/Canvas.vue
|
|
5
|
-
var Canvas_default = /* @__PURE__ */ _plugin_vue_export_helper_default(Canvas_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var Canvas_default = /* @__PURE__ */ _plugin_vue_export_helper_default(Canvas_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-0256e5e1"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Canvas_default as default };
|
|
8
8
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Canvas.mjs","names":[],"sources":["../../../src/components/layout/Canvas.vue"],"sourcesContent":["<template> \n <component \n :is=\"as\" \n class=\"modo-canvas\" \n :class=\"[surfaceClasses, radiusClasses, bordered ? 'border border-border' : '']\" \n :style=\"canvasStyle\" \n :data-pattern=\"pattern\" \n > \n <slot /> \n </component> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed, type CSSProperties } from 'vue'; \nimport type { Canvas } from '../../interfaces/layout/Canvas.interface'; \nimport { useResolvedRadius } from '../../composables/useModoConfig'; \n \nconst props = withDefaults(defineProps<Canvas>(), { \n pattern: 'dots', \n cellSize: 16, \n intensity: 'subtle', \n surface: 'card', \n bordered: false, \n as: 'div', \n}); \n \nconst resolvedRadius = useResolvedRadius(() => props.radius); \n \nconst surfaceClasses = computed(() => { \n switch (props.surface) { \n case 'background': return 'bg-background'; \n case 'muted': return 'bg-muted'; \n case 'card': \n default: return 'bg-card'; \n } \n}); \n \nconst radiusClasses = computed(() => { \n switch (resolvedRadius.value) { \n case 'none': return 'rounded-none'; \n case 'small': return 'rounded-sm'; \n case 'large': return 'rounded-xl'; \n case 'full': return 'rounded-
|
|
1
|
+
{"version":3,"file":"Canvas.mjs","names":[],"sources":["../../../src/components/layout/Canvas.vue"],"sourcesContent":["<template> \n <component \n :is=\"as\" \n class=\"modo-canvas\" \n :class=\"[surfaceClasses, radiusClasses, bordered ? 'border border-border' : '']\" \n :style=\"canvasStyle\" \n :data-pattern=\"pattern\" \n > \n <slot /> \n </component> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed, type CSSProperties } from 'vue'; \nimport type { Canvas } from '../../interfaces/layout/Canvas.interface'; \nimport { useResolvedRadius } from '../../composables/useModoConfig'; \n \nconst props = withDefaults(defineProps<Canvas>(), { \n pattern: 'dots', \n cellSize: 16, \n intensity: 'subtle', \n surface: 'card', \n bordered: false, \n as: 'div', \n}); \n \nconst resolvedRadius = useResolvedRadius(() => props.radius); \n \nconst surfaceClasses = computed(() => { \n switch (props.surface) { \n case 'background': return 'bg-background'; \n case 'muted': return 'bg-muted'; \n case 'card': \n default: return 'bg-card'; \n } \n}); \n \nconst radiusClasses = computed(() => { \n switch (resolvedRadius.value) { \n case 'none': return 'rounded-none'; \n case 'small': return 'rounded-sm'; \n case 'large': return 'rounded-xl'; \n // A large surface never goes past a card-like radius (Card's own `full`).\n case 'full': return 'rounded-3xl'; \n case 'medium': \n default: return 'rounded-md'; \n } \n}); \n \n/** Map intensity → opacity applied to the foreground stroke. */ \nconst intensityAlpha = computed(() => { \n switch (props.intensity) { \n case 'strong': return 0.55; \n case 'normal': return 0.32; \n case 'subtle': \n default: return 0.18; \n } \n}); \n \nconst canvasStyle = computed<CSSProperties>(() => ({ \n '--canvas-cell': `${props.cellSize}px`, \n '--canvas-stroke-alpha': String(intensityAlpha.value), \n} as CSSProperties)); \n</script> \n \n<style scoped> \n.modo-canvas { \n /* Foreground stroke uses the border token, alpha modulated by intensity. \n `color-mix` keeps it light/dark/palette-aware automatically. */ \n --canvas-stroke: color-mix( \n in oklch, \n var(--border) calc(var(--canvas-stroke-alpha) * 100%), \n transparent \n ); \n} \n \n.modo-canvas[data-pattern='dots'] { \n background-image: radial-gradient( \n circle at 1px 1px, \n var(--canvas-stroke) 1px, \n transparent 0 \n ); \n background-size: var(--canvas-cell) var(--canvas-cell); \n} \n \n.modo-canvas[data-pattern='grid'] { \n background-image: \n linear-gradient(to right, var(--canvas-stroke) 1px, transparent 1px), \n linear-gradient(to bottom, var(--canvas-stroke) 1px, transparent 1px); \n background-size: var(--canvas-cell) var(--canvas-cell); \n} \n \n.modo-canvas[data-pattern='lines'] { \n background-image: linear-gradient( \n to bottom, \n var(--canvas-stroke) 1px, \n transparent 1px \n ); \n background-size: 100% var(--canvas-cell); \n} \n \n.modo-canvas[data-pattern='none'] { \n background-image: none; \n} \n \n@media print { \n .modo-canvas { \n background-image: none !important; \n } \n} \n</style>\n"],"mappings":""}
|
|
@@ -31,7 +31,7 @@ var Canvas_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue
|
|
|
31
31
|
case "none": return "rounded-none";
|
|
32
32
|
case "small": return "rounded-sm";
|
|
33
33
|
case "large": return "rounded-xl";
|
|
34
|
-
case "full": return "rounded-
|
|
34
|
+
case "full": return "rounded-3xl";
|
|
35
35
|
default: return "rounded-md";
|
|
36
36
|
}
|
|
37
37
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Canvas.vue_vue_type_script_setup_true_lang.cjs","names":[],"sources":["../../../src/components/layout/Canvas.vue"],"sourcesContent":["<template> \n <component \n :is=\"as\" \n class=\"modo-canvas\" \n :class=\"[surfaceClasses, radiusClasses, bordered ? 'border border-border' : '']\" \n :style=\"canvasStyle\" \n :data-pattern=\"pattern\" \n > \n <slot /> \n </component> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed, type CSSProperties } from 'vue'; \nimport type { Canvas } from '../../interfaces/layout/Canvas.interface'; \nimport { useResolvedRadius } from '../../composables/useModoConfig'; \n \nconst props = withDefaults(defineProps<Canvas>(), { \n pattern: 'dots', \n cellSize: 16, \n intensity: 'subtle', \n surface: 'card', \n bordered: false, \n as: 'div', \n}); \n \nconst resolvedRadius = useResolvedRadius(() => props.radius); \n \nconst surfaceClasses = computed(() => { \n switch (props.surface) { \n case 'background': return 'bg-background'; \n case 'muted': return 'bg-muted'; \n case 'card': \n default: return 'bg-card'; \n } \n}); \n \nconst radiusClasses = computed(() => { \n switch (resolvedRadius.value) { \n case 'none': return 'rounded-none'; \n case 'small': return 'rounded-sm'; \n case 'large': return 'rounded-xl'; \n case 'full': return 'rounded-
|
|
1
|
+
{"version":3,"file":"Canvas.vue_vue_type_script_setup_true_lang.cjs","names":[],"sources":["../../../src/components/layout/Canvas.vue"],"sourcesContent":["<template> \n <component \n :is=\"as\" \n class=\"modo-canvas\" \n :class=\"[surfaceClasses, radiusClasses, bordered ? 'border border-border' : '']\" \n :style=\"canvasStyle\" \n :data-pattern=\"pattern\" \n > \n <slot /> \n </component> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed, type CSSProperties } from 'vue'; \nimport type { Canvas } from '../../interfaces/layout/Canvas.interface'; \nimport { useResolvedRadius } from '../../composables/useModoConfig'; \n \nconst props = withDefaults(defineProps<Canvas>(), { \n pattern: 'dots', \n cellSize: 16, \n intensity: 'subtle', \n surface: 'card', \n bordered: false, \n as: 'div', \n}); \n \nconst resolvedRadius = useResolvedRadius(() => props.radius); \n \nconst surfaceClasses = computed(() => { \n switch (props.surface) { \n case 'background': return 'bg-background'; \n case 'muted': return 'bg-muted'; \n case 'card': \n default: return 'bg-card'; \n } \n}); \n \nconst radiusClasses = computed(() => { \n switch (resolvedRadius.value) { \n case 'none': return 'rounded-none'; \n case 'small': return 'rounded-sm'; \n case 'large': return 'rounded-xl'; \n // A large surface never goes past a card-like radius (Card's own `full`).\n case 'full': return 'rounded-3xl'; \n case 'medium': \n default: return 'rounded-md'; \n } \n}); \n \n/** Map intensity → opacity applied to the foreground stroke. */ \nconst intensityAlpha = computed(() => { \n switch (props.intensity) { \n case 'strong': return 0.55; \n case 'normal': return 0.32; \n case 'subtle': \n default: return 0.18; \n } \n}); \n \nconst canvasStyle = computed<CSSProperties>(() => ({ \n '--canvas-cell': `${props.cellSize}px`, \n '--canvas-stroke-alpha': String(intensityAlpha.value), \n} as CSSProperties)); \n</script> \n \n<style scoped> \n.modo-canvas { \n /* Foreground stroke uses the border token, alpha modulated by intensity. \n `color-mix` keeps it light/dark/palette-aware automatically. */ \n --canvas-stroke: color-mix( \n in oklch, \n var(--border) calc(var(--canvas-stroke-alpha) * 100%), \n transparent \n ); \n} \n \n.modo-canvas[data-pattern='dots'] { \n background-image: radial-gradient( \n circle at 1px 1px, \n var(--canvas-stroke) 1px, \n transparent 0 \n ); \n background-size: var(--canvas-cell) var(--canvas-cell); \n} \n \n.modo-canvas[data-pattern='grid'] { \n background-image: \n linear-gradient(to right, var(--canvas-stroke) 1px, transparent 1px), \n linear-gradient(to bottom, var(--canvas-stroke) 1px, transparent 1px); \n background-size: var(--canvas-cell) var(--canvas-cell); \n} \n \n.modo-canvas[data-pattern='lines'] { \n background-image: linear-gradient( \n to bottom, \n var(--canvas-stroke) 1px, \n transparent 1px \n ); \n background-size: 100% var(--canvas-cell); \n} \n \n.modo-canvas[data-pattern='none'] { \n background-image: none; \n} \n \n@media print { \n .modo-canvas { \n background-image: none !important; \n } \n} \n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;EAiBA,MAAM,QAAQ;EASd,MAAM,iBAAiB,sBAAA,wBAAwB,MAAM,OAAO;EAE5D,MAAM,kBAAA,GAAA,IAAA,gBAAgC;GAClC,QAAQ,MAAM,SAAd;IACI,KAAK,cAAc,OAAO;IAC1B,KAAK,SAAS,OAAO;IAErB,SAAS,OAAO;;IAEtB;EAEF,MAAM,iBAAA,GAAA,IAAA,gBAA+B;GACjC,QAAQ,eAAe,OAAvB;IACI,KAAK,QAAQ,OAAO;IACpB,KAAK,SAAS,OAAO;IACrB,KAAK,SAAS,OAAO;IAErB,KAAK,QAAQ,OAAO;IAEpB,SAAS,OAAO;;IAEtB;;EAGF,MAAM,kBAAA,GAAA,IAAA,gBAAgC;GAClC,QAAQ,MAAM,WAAd;IACI,KAAK,UAAU,OAAO;IACtB,KAAK,UAAU,OAAO;IAEtB,SAAS,OAAO;;IAEtB;EAEF,MAAM,eAAA,GAAA,IAAA,iBAA6C;GAC/C,iBAAiB,GAAG,MAAM,SAAS;GACnC,yBAAyB,OAAO,eAAe,MAAM;GACxD,EAAmB;;sFA5DP,QAAA,GAAE,EAAA;IACP,QAAA,GAAA,IAAA,gBAAK,CAAC,eAAa;KACV,eAAA;KAAgB,cAAA;KAAe,QAAA,WAAQ,yBAAA;KAAA,CAAA,CAAA;IAC/C,QAAA,GAAA,IAAA,gBAAO,YAAA,MAAW;IAClB,gBAAc,QAAA;;oCAEP,EAAA,GAAA,IAAA,YAAA,KAAA,QAAA,WAAA,EAAA,EAAA,KAAA,GAAA,KAAA,CAAA,CAAA"}
|
|
@@ -30,7 +30,7 @@ var Canvas_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineC
|
|
|
30
30
|
case "none": return "rounded-none";
|
|
31
31
|
case "small": return "rounded-sm";
|
|
32
32
|
case "large": return "rounded-xl";
|
|
33
|
-
case "full": return "rounded-
|
|
33
|
+
case "full": return "rounded-3xl";
|
|
34
34
|
default: return "rounded-md";
|
|
35
35
|
}
|
|
36
36
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Canvas.vue_vue_type_script_setup_true_lang.mjs","names":[],"sources":["../../../src/components/layout/Canvas.vue"],"sourcesContent":["<template> \n <component \n :is=\"as\" \n class=\"modo-canvas\" \n :class=\"[surfaceClasses, radiusClasses, bordered ? 'border border-border' : '']\" \n :style=\"canvasStyle\" \n :data-pattern=\"pattern\" \n > \n <slot /> \n </component> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed, type CSSProperties } from 'vue'; \nimport type { Canvas } from '../../interfaces/layout/Canvas.interface'; \nimport { useResolvedRadius } from '../../composables/useModoConfig'; \n \nconst props = withDefaults(defineProps<Canvas>(), { \n pattern: 'dots', \n cellSize: 16, \n intensity: 'subtle', \n surface: 'card', \n bordered: false, \n as: 'div', \n}); \n \nconst resolvedRadius = useResolvedRadius(() => props.radius); \n \nconst surfaceClasses = computed(() => { \n switch (props.surface) { \n case 'background': return 'bg-background'; \n case 'muted': return 'bg-muted'; \n case 'card': \n default: return 'bg-card'; \n } \n}); \n \nconst radiusClasses = computed(() => { \n switch (resolvedRadius.value) { \n case 'none': return 'rounded-none'; \n case 'small': return 'rounded-sm'; \n case 'large': return 'rounded-xl'; \n case 'full': return 'rounded-
|
|
1
|
+
{"version":3,"file":"Canvas.vue_vue_type_script_setup_true_lang.mjs","names":[],"sources":["../../../src/components/layout/Canvas.vue"],"sourcesContent":["<template> \n <component \n :is=\"as\" \n class=\"modo-canvas\" \n :class=\"[surfaceClasses, radiusClasses, bordered ? 'border border-border' : '']\" \n :style=\"canvasStyle\" \n :data-pattern=\"pattern\" \n > \n <slot /> \n </component> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed, type CSSProperties } from 'vue'; \nimport type { Canvas } from '../../interfaces/layout/Canvas.interface'; \nimport { useResolvedRadius } from '../../composables/useModoConfig'; \n \nconst props = withDefaults(defineProps<Canvas>(), { \n pattern: 'dots', \n cellSize: 16, \n intensity: 'subtle', \n surface: 'card', \n bordered: false, \n as: 'div', \n}); \n \nconst resolvedRadius = useResolvedRadius(() => props.radius); \n \nconst surfaceClasses = computed(() => { \n switch (props.surface) { \n case 'background': return 'bg-background'; \n case 'muted': return 'bg-muted'; \n case 'card': \n default: return 'bg-card'; \n } \n}); \n \nconst radiusClasses = computed(() => { \n switch (resolvedRadius.value) { \n case 'none': return 'rounded-none'; \n case 'small': return 'rounded-sm'; \n case 'large': return 'rounded-xl'; \n // A large surface never goes past a card-like radius (Card's own `full`).\n case 'full': return 'rounded-3xl'; \n case 'medium': \n default: return 'rounded-md'; \n } \n}); \n \n/** Map intensity → opacity applied to the foreground stroke. */ \nconst intensityAlpha = computed(() => { \n switch (props.intensity) { \n case 'strong': return 0.55; \n case 'normal': return 0.32; \n case 'subtle': \n default: return 0.18; \n } \n}); \n \nconst canvasStyle = computed<CSSProperties>(() => ({ \n '--canvas-cell': `${props.cellSize}px`, \n '--canvas-stroke-alpha': String(intensityAlpha.value), \n} as CSSProperties)); \n</script> \n \n<style scoped> \n.modo-canvas { \n /* Foreground stroke uses the border token, alpha modulated by intensity. \n `color-mix` keeps it light/dark/palette-aware automatically. */ \n --canvas-stroke: color-mix( \n in oklch, \n var(--border) calc(var(--canvas-stroke-alpha) * 100%), \n transparent \n ); \n} \n \n.modo-canvas[data-pattern='dots'] { \n background-image: radial-gradient( \n circle at 1px 1px, \n var(--canvas-stroke) 1px, \n transparent 0 \n ); \n background-size: var(--canvas-cell) var(--canvas-cell); \n} \n \n.modo-canvas[data-pattern='grid'] { \n background-image: \n linear-gradient(to right, var(--canvas-stroke) 1px, transparent 1px), \n linear-gradient(to bottom, var(--canvas-stroke) 1px, transparent 1px); \n background-size: var(--canvas-cell) var(--canvas-cell); \n} \n \n.modo-canvas[data-pattern='lines'] { \n background-image: linear-gradient( \n to bottom, \n var(--canvas-stroke) 1px, \n transparent 1px \n ); \n background-size: 100% var(--canvas-cell); \n} \n \n.modo-canvas[data-pattern='none'] { \n background-image: none; \n} \n \n@media print { \n .modo-canvas { \n background-image: none !important; \n } \n} \n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;EAiBA,MAAM,QAAQ;EASd,MAAM,iBAAiB,wBAAwB,MAAM,OAAO;EAE5D,MAAM,iBAAiB,eAAe;GAClC,QAAQ,MAAM,SAAd;IACI,KAAK,cAAc,OAAO;IAC1B,KAAK,SAAS,OAAO;IAErB,SAAS,OAAO;;IAEtB;EAEF,MAAM,gBAAgB,eAAe;GACjC,QAAQ,eAAe,OAAvB;IACI,KAAK,QAAQ,OAAO;IACpB,KAAK,SAAS,OAAO;IACrB,KAAK,SAAS,OAAO;IAErB,KAAK,QAAQ,OAAO;IAEpB,SAAS,OAAO;;IAEtB;;EAGF,MAAM,iBAAiB,eAAe;GAClC,QAAQ,MAAM,WAAd;IACI,KAAK,UAAU,OAAO;IACtB,KAAK,UAAU,OAAO;IAEtB,SAAS,OAAO;;IAEtB;EAEF,MAAM,cAAc,gBAA+B;GAC/C,iBAAiB,GAAG,MAAM,SAAS;GACnC,yBAAyB,OAAO,eAAe,MAAM;GACxD,EAAmB;;uBA7DhB,YAQY,wBAPH,QAAA,GAAE,EAAA;IACP,OAAK,eAAA,CAAC,eAAa;KACV,eAAA;KAAgB,cAAA;KAAe,QAAA,WAAQ,yBAAA;KAAA,CAAA,CAAA;IAC/C,OAAK,eAAE,YAAA,MAAW;IAClB,gBAAc,QAAA;;2BAEP,CAAR,WAAQ,KAAA,QAAA,WAAA,EAAA,EAAA,KAAA,GAAA,KAAA,CAAA,CAAA"}
|
|
@@ -2,7 +2,7 @@ const require__plugin_vue_export_helper = require("../../_virtual/_plugin-vue_ex
|
|
|
2
2
|
const require_PopoverPanel_vue_vue_type_script_setup_true_lang = require("./PopoverPanel.vue_vue_type_script_setup_true_lang.cjs");
|
|
3
3
|
;/* empty css */
|
|
4
4
|
//#region src/components/layout/PopoverPanel.vue
|
|
5
|
-
var PopoverPanel_default = /* @__PURE__ */ require__plugin_vue_export_helper.default(require_PopoverPanel_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
5
|
+
var PopoverPanel_default = /* @__PURE__ */ require__plugin_vue_export_helper.default(require_PopoverPanel_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-6068fa7f"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
exports.default = PopoverPanel_default;
|
|
8
8
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverPanel.cjs","names":[],"sources":["../../../src/components/layout/PopoverPanel.vue"],"sourcesContent":["<template> \n <Teleport to=\"body\"> \n <Transition \n enter-active-class=\"modo-popover-enter\" \n leave-active-class=\"modo-popover-leave\" \n > \n <div \n v-if=\"open\" \n ref=\"panelEl\" \n :role=\"role\" \n :aria-labelledby=\"labelledBy\" \n :style=\"mergedStyle\" \n :class=\"[\n 'modo-popover flex flex-col overflow-hidden bg-popover text-popover-foreground border border-
|
|
1
|
+
{"version":3,"file":"PopoverPanel.cjs","names":[],"sources":["../../../src/components/layout/PopoverPanel.vue"],"sourcesContent":["<template> \n <Teleport to=\"body\"> \n <Transition \n enter-active-class=\"modo-popover-enter\" \n leave-active-class=\"modo-popover-leave\" \n > \n <div \n v-if=\"open\" \n ref=\"panelEl\" \n :role=\"role\" \n :aria-labelledby=\"labelledBy\" \n :style=\"mergedStyle\" \n :class=\"[\n 'modo-popover flex flex-col overflow-hidden bg-popover text-popover-foreground border border-input shadow-lg',\n radiusClass,\n $attrs.class,\n ]\"\n :data-modo-theme=\"scopedTheme || undefined\"\n >\n <!--\n `min-h-0` is what makes the panel's max-height actually bite:\n as a flex child this wrapper defaults to min-height:auto and\n refuses to shrink below its content, so it would render past\n the capped panel instead of scrolling inside it.\n -->\n <div :class=\"['modo-popover-inner min-h-0 flex-1 overflow-x-hidden overflow-y-auto', radiusClass]\">\n <slot />\n </div>\n </div> \n </Transition> \n </Teleport> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed, ref, watch } from 'vue'; \nimport { useResolvedRadius, useResolvedTheme, useModoConfig } from '../../composables/useModoConfig'; \nimport { resolveColorMode } from '../../composables/useColorMode'; \nimport { palettesToCssVars, semanticTokensFromPalettes } from '../../config/palettes'; \nimport { hexToOklchString, pickForegroundOklch } from '../../config/colorPrimitives'; \nimport { surfacesToCssVars } from '../../config/surfaces'; \n \ndefineOptions({ inheritAttrs: false }); \n \nconst props = defineProps<{ \n /** Controla la visibilidad. */ \n open: boolean; \n /** Estilo (top/left/width/zIndex) calculado por `usePopover`. */ \n style?: Record<string, string>; \n /** Radio de esquinas. Si no se pasa, toma el del provider. */ \n radius?: 'none' | 'small' | 'medium' | 'large' | 'full'; \n /** ARIA role. @default 'dialog' */ \n role?: string; \n /** Id del elemento que nombra al panel. */ \n labelledBy?: string; \n}>(); \n \nconst emit = defineEmits<{ 'update:panelRef': [el: HTMLElement | null] }>(); \n \nconst panelEl = ref<HTMLElement | null>(null); \nwatch(panelEl, (el) => emit('update:panelRef', el)); \n \nconst radius = useResolvedRadius(() => props.radius); \nconst theme = useResolvedTheme(); \nconst cfg = useModoConfig(); \n// When the popover is portal'd to <body>, the data-modo-theme attribute on \n// the parent provider is out of scope. Forward it so dark mode works. \nconst scopedTheme = computed(() => resolveColorMode(theme.value)); \n \n// Forward the provider's palette CSS vars (`--primary`, `--primary-foreground`, \n// etc.) to the teleported panel so `bg-primary` / `text-primary` stay in sync \n// with whatever palette the provider set. Also forward surface vars so tinted \n// surfaces (base intensity) are visible inside the popover. \nconst mergedStyle = computed(() => { \n const providerVars = cfg?.value.palettes \n ? { \n ...palettesToCssVars(cfg.value.palettes), \n ...semanticTokensFromPalettes(cfg.value.palettes, hexToOklchString, pickForegroundOklch), \n } \n : {};\n const surfaceVars = cfg?.value.surfaces\n ? surfacesToCssVars(cfg.value.surfaces)\n : {};\n const darkSurfaceVars = (scopedTheme.value === 'dark' && cfg?.value.darkSurfaces)\n ? surfacesToCssVars(cfg.value.darkSurfaces)\n : {};\n return { ...providerVars, ...surfaceVars, ...darkSurfaceVars, ...(props.style ?? {}) }; \n}); \n \nconst radiusClass = computed(() => { \n switch (radius.value) { \n case 'none': return 'rounded-none'; \n case 'small': return 'rounded-sm'; \n case 'large': return 'rounded-xl'; \n case 'full': return 'rounded-2xl'; \n case 'medium': \n default: return 'rounded-md'; \n } \n}); \n</script> \n \n<style scoped> \n.modo-popover { \n transform-origin: top center; \n will-change: transform, opacity; \n} \n.modo-popover-enter { \n animation: modo-popover-in 140ms cubic-bezier(0.2, 0, 0, 1); \n} \n.modo-popover-leave { \n animation: modo-popover-out 80ms cubic-bezier(0.3, 0, 1, 1); \n} \n@keyframes modo-popover-in { \n from { opacity: 0; transform: translateY(-4px) scale(0.98); } \n to { opacity: 1; transform: translateY(0) scale(1); } \n} \n@keyframes modo-popover-out { \n from { opacity: 1; transform: translateY(0); } \n to { opacity: 0; transform: translateY(-2px); } \n} \n@media (prefers-reduced-motion: reduce) { \n .modo-popover-enter, .modo-popover-leave { animation: none; } \n} \n</style>\n"],"mappings":""}
|
|
@@ -2,7 +2,7 @@ import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export
|
|
|
2
2
|
import PopoverPanel_vue_vue_type_script_setup_true_lang_default from "./PopoverPanel.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
3
|
/* empty css */
|
|
4
4
|
//#region src/components/layout/PopoverPanel.vue
|
|
5
|
-
var PopoverPanel_default = /* @__PURE__ */ _plugin_vue_export_helper_default(PopoverPanel_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var PopoverPanel_default = /* @__PURE__ */ _plugin_vue_export_helper_default(PopoverPanel_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-6068fa7f"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { PopoverPanel_default as default };
|
|
8
8
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverPanel.mjs","names":[],"sources":["../../../src/components/layout/PopoverPanel.vue"],"sourcesContent":["<template> \n <Teleport to=\"body\"> \n <Transition \n enter-active-class=\"modo-popover-enter\" \n leave-active-class=\"modo-popover-leave\" \n > \n <div \n v-if=\"open\" \n ref=\"panelEl\" \n :role=\"role\" \n :aria-labelledby=\"labelledBy\" \n :style=\"mergedStyle\" \n :class=\"[\n 'modo-popover flex flex-col overflow-hidden bg-popover text-popover-foreground border border-
|
|
1
|
+
{"version":3,"file":"PopoverPanel.mjs","names":[],"sources":["../../../src/components/layout/PopoverPanel.vue"],"sourcesContent":["<template> \n <Teleport to=\"body\"> \n <Transition \n enter-active-class=\"modo-popover-enter\" \n leave-active-class=\"modo-popover-leave\" \n > \n <div \n v-if=\"open\" \n ref=\"panelEl\" \n :role=\"role\" \n :aria-labelledby=\"labelledBy\" \n :style=\"mergedStyle\" \n :class=\"[\n 'modo-popover flex flex-col overflow-hidden bg-popover text-popover-foreground border border-input shadow-lg',\n radiusClass,\n $attrs.class,\n ]\"\n :data-modo-theme=\"scopedTheme || undefined\"\n >\n <!--\n `min-h-0` is what makes the panel's max-height actually bite:\n as a flex child this wrapper defaults to min-height:auto and\n refuses to shrink below its content, so it would render past\n the capped panel instead of scrolling inside it.\n -->\n <div :class=\"['modo-popover-inner min-h-0 flex-1 overflow-x-hidden overflow-y-auto', radiusClass]\">\n <slot />\n </div>\n </div> \n </Transition> \n </Teleport> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed, ref, watch } from 'vue'; \nimport { useResolvedRadius, useResolvedTheme, useModoConfig } from '../../composables/useModoConfig'; \nimport { resolveColorMode } from '../../composables/useColorMode'; \nimport { palettesToCssVars, semanticTokensFromPalettes } from '../../config/palettes'; \nimport { hexToOklchString, pickForegroundOklch } from '../../config/colorPrimitives'; \nimport { surfacesToCssVars } from '../../config/surfaces'; \n \ndefineOptions({ inheritAttrs: false }); \n \nconst props = defineProps<{ \n /** Controla la visibilidad. */ \n open: boolean; \n /** Estilo (top/left/width/zIndex) calculado por `usePopover`. */ \n style?: Record<string, string>; \n /** Radio de esquinas. Si no se pasa, toma el del provider. */ \n radius?: 'none' | 'small' | 'medium' | 'large' | 'full'; \n /** ARIA role. @default 'dialog' */ \n role?: string; \n /** Id del elemento que nombra al panel. */ \n labelledBy?: string; \n}>(); \n \nconst emit = defineEmits<{ 'update:panelRef': [el: HTMLElement | null] }>(); \n \nconst panelEl = ref<HTMLElement | null>(null); \nwatch(panelEl, (el) => emit('update:panelRef', el)); \n \nconst radius = useResolvedRadius(() => props.radius); \nconst theme = useResolvedTheme(); \nconst cfg = useModoConfig(); \n// When the popover is portal'd to <body>, the data-modo-theme attribute on \n// the parent provider is out of scope. Forward it so dark mode works. \nconst scopedTheme = computed(() => resolveColorMode(theme.value)); \n \n// Forward the provider's palette CSS vars (`--primary`, `--primary-foreground`, \n// etc.) to the teleported panel so `bg-primary` / `text-primary` stay in sync \n// with whatever palette the provider set. Also forward surface vars so tinted \n// surfaces (base intensity) are visible inside the popover. \nconst mergedStyle = computed(() => { \n const providerVars = cfg?.value.palettes \n ? { \n ...palettesToCssVars(cfg.value.palettes), \n ...semanticTokensFromPalettes(cfg.value.palettes, hexToOklchString, pickForegroundOklch), \n } \n : {};\n const surfaceVars = cfg?.value.surfaces\n ? surfacesToCssVars(cfg.value.surfaces)\n : {};\n const darkSurfaceVars = (scopedTheme.value === 'dark' && cfg?.value.darkSurfaces)\n ? surfacesToCssVars(cfg.value.darkSurfaces)\n : {};\n return { ...providerVars, ...surfaceVars, ...darkSurfaceVars, ...(props.style ?? {}) }; \n}); \n \nconst radiusClass = computed(() => { \n switch (radius.value) { \n case 'none': return 'rounded-none'; \n case 'small': return 'rounded-sm'; \n case 'large': return 'rounded-xl'; \n case 'full': return 'rounded-2xl'; \n case 'medium': \n default: return 'rounded-md'; \n } \n}); \n</script> \n \n<style scoped> \n.modo-popover { \n transform-origin: top center; \n will-change: transform, opacity; \n} \n.modo-popover-enter { \n animation: modo-popover-in 140ms cubic-bezier(0.2, 0, 0, 1); \n} \n.modo-popover-leave { \n animation: modo-popover-out 80ms cubic-bezier(0.3, 0, 1, 1); \n} \n@keyframes modo-popover-in { \n from { opacity: 0; transform: translateY(-4px) scale(0.98); } \n to { opacity: 1; transform: translateY(0) scale(1); } \n} \n@keyframes modo-popover-out { \n from { opacity: 1; transform: translateY(0); } \n to { opacity: 0; transform: translateY(-2px); } \n} \n@media (prefers-reduced-motion: reduce) { \n .modo-popover-enter, .modo-popover-leave { animation: none; } \n} \n</style>\n"],"mappings":""}
|
|
@@ -67,7 +67,7 @@ var PopoverPanel_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (
|
|
|
67
67
|
"aria-labelledby": __props.labelledBy,
|
|
68
68
|
style: (0, vue.normalizeStyle)(mergedStyle.value),
|
|
69
69
|
class: (0, vue.normalizeClass)([
|
|
70
|
-
"modo-popover flex flex-col overflow-hidden bg-popover text-popover-foreground border border-
|
|
70
|
+
"modo-popover flex flex-col overflow-hidden bg-popover text-popover-foreground border border-input shadow-lg",
|
|
71
71
|
radiusClass.value,
|
|
72
72
|
_ctx.$attrs.class
|
|
73
73
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverPanel.vue_vue_type_script_setup_true_lang.cjs","names":["$attrs"],"sources":["../../../src/components/layout/PopoverPanel.vue"],"sourcesContent":["<template> \n <Teleport to=\"body\"> \n <Transition \n enter-active-class=\"modo-popover-enter\" \n leave-active-class=\"modo-popover-leave\" \n > \n <div \n v-if=\"open\" \n ref=\"panelEl\" \n :role=\"role\" \n :aria-labelledby=\"labelledBy\" \n :style=\"mergedStyle\" \n :class=\"[\n 'modo-popover flex flex-col overflow-hidden bg-popover text-popover-foreground border border-
|
|
1
|
+
{"version":3,"file":"PopoverPanel.vue_vue_type_script_setup_true_lang.cjs","names":["$attrs"],"sources":["../../../src/components/layout/PopoverPanel.vue"],"sourcesContent":["<template> \n <Teleport to=\"body\"> \n <Transition \n enter-active-class=\"modo-popover-enter\" \n leave-active-class=\"modo-popover-leave\" \n > \n <div \n v-if=\"open\" \n ref=\"panelEl\" \n :role=\"role\" \n :aria-labelledby=\"labelledBy\" \n :style=\"mergedStyle\" \n :class=\"[\n 'modo-popover flex flex-col overflow-hidden bg-popover text-popover-foreground border border-input shadow-lg',\n radiusClass,\n $attrs.class,\n ]\"\n :data-modo-theme=\"scopedTheme || undefined\"\n >\n <!--\n `min-h-0` is what makes the panel's max-height actually bite:\n as a flex child this wrapper defaults to min-height:auto and\n refuses to shrink below its content, so it would render past\n the capped panel instead of scrolling inside it.\n -->\n <div :class=\"['modo-popover-inner min-h-0 flex-1 overflow-x-hidden overflow-y-auto', radiusClass]\">\n <slot />\n </div>\n </div> \n </Transition> \n </Teleport> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed, ref, watch } from 'vue'; \nimport { useResolvedRadius, useResolvedTheme, useModoConfig } from '../../composables/useModoConfig'; \nimport { resolveColorMode } from '../../composables/useColorMode'; \nimport { palettesToCssVars, semanticTokensFromPalettes } from '../../config/palettes'; \nimport { hexToOklchString, pickForegroundOklch } from '../../config/colorPrimitives'; \nimport { surfacesToCssVars } from '../../config/surfaces'; \n \ndefineOptions({ inheritAttrs: false }); \n \nconst props = defineProps<{ \n /** Controla la visibilidad. */ \n open: boolean; \n /** Estilo (top/left/width/zIndex) calculado por `usePopover`. */ \n style?: Record<string, string>; \n /** Radio de esquinas. Si no se pasa, toma el del provider. */ \n radius?: 'none' | 'small' | 'medium' | 'large' | 'full'; \n /** ARIA role. @default 'dialog' */ \n role?: string; \n /** Id del elemento que nombra al panel. */ \n labelledBy?: string; \n}>(); \n \nconst emit = defineEmits<{ 'update:panelRef': [el: HTMLElement | null] }>(); \n \nconst panelEl = ref<HTMLElement | null>(null); \nwatch(panelEl, (el) => emit('update:panelRef', el)); \n \nconst radius = useResolvedRadius(() => props.radius); \nconst theme = useResolvedTheme(); \nconst cfg = useModoConfig(); \n// When the popover is portal'd to <body>, the data-modo-theme attribute on \n// the parent provider is out of scope. Forward it so dark mode works. \nconst scopedTheme = computed(() => resolveColorMode(theme.value)); \n \n// Forward the provider's palette CSS vars (`--primary`, `--primary-foreground`, \n// etc.) to the teleported panel so `bg-primary` / `text-primary` stay in sync \n// with whatever palette the provider set. Also forward surface vars so tinted \n// surfaces (base intensity) are visible inside the popover. \nconst mergedStyle = computed(() => { \n const providerVars = cfg?.value.palettes \n ? { \n ...palettesToCssVars(cfg.value.palettes), \n ...semanticTokensFromPalettes(cfg.value.palettes, hexToOklchString, pickForegroundOklch), \n } \n : {};\n const surfaceVars = cfg?.value.surfaces\n ? surfacesToCssVars(cfg.value.surfaces)\n : {};\n const darkSurfaceVars = (scopedTheme.value === 'dark' && cfg?.value.darkSurfaces)\n ? surfacesToCssVars(cfg.value.darkSurfaces)\n : {};\n return { ...providerVars, ...surfaceVars, ...darkSurfaceVars, ...(props.style ?? {}) }; \n}); \n \nconst radiusClass = computed(() => { \n switch (radius.value) { \n case 'none': return 'rounded-none'; \n case 'small': return 'rounded-sm'; \n case 'large': return 'rounded-xl'; \n case 'full': return 'rounded-2xl'; \n case 'medium': \n default: return 'rounded-md'; \n } \n}); \n</script> \n \n<style scoped> \n.modo-popover { \n transform-origin: top center; \n will-change: transform, opacity; \n} \n.modo-popover-enter { \n animation: modo-popover-in 140ms cubic-bezier(0.2, 0, 0, 1); \n} \n.modo-popover-leave { \n animation: modo-popover-out 80ms cubic-bezier(0.3, 0, 1, 1); \n} \n@keyframes modo-popover-in { \n from { opacity: 0; transform: translateY(-4px) scale(0.98); } \n to { opacity: 1; transform: translateY(0) scale(1); } \n} \n@keyframes modo-popover-out { \n from { opacity: 1; transform: translateY(0); } \n to { opacity: 0; transform: translateY(-2px); } \n} \n@media (prefers-reduced-motion: reduce) { \n .modo-popover-enter, .modo-popover-leave { animation: none; } \n} \n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;EA2CA,MAA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,QAAA;KACN,mBAAiB,QAAA;KACjB,QAAA,GAAA,IAAA,gBAAO,YAAA,MAAW;KAClB,QAAA,GAAA,IAAA,gBAAK;;MAA2J,YAAA;MAAiCA,KAAAA,OAAO;;KAKxM,mBAAiB,YAAA,SAAe,KAAA;oCAU3B,OAAA,EAFA,QAAA,GAAA,IAAA,gBAAK,CAAA,uEAA0E,YAAA,MAAW,CAAA,EAAA,EAAA,EAAA,GAAA,IAAA,YACpF,KAAA,QAAA,WAAA,EAAA,EAAA,KAAA,GAAA,KAAA,CAAA,EAAA,EAAA,CAAA,EAAA,IAAA,WAAA,KAAA,GAAA,IAAA,oBAAA,IAAA,KAAA,CAAA,CAAA"}
|
|
@@ -66,7 +66,7 @@ var PopoverPanel_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ d
|
|
|
66
66
|
"aria-labelledby": __props.labelledBy,
|
|
67
67
|
style: normalizeStyle(mergedStyle.value),
|
|
68
68
|
class: normalizeClass([
|
|
69
|
-
"modo-popover flex flex-col overflow-hidden bg-popover text-popover-foreground border border-
|
|
69
|
+
"modo-popover flex flex-col overflow-hidden bg-popover text-popover-foreground border border-input shadow-lg",
|
|
70
70
|
radiusClass.value,
|
|
71
71
|
_ctx.$attrs.class
|
|
72
72
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverPanel.vue_vue_type_script_setup_true_lang.mjs","names":["$attrs"],"sources":["../../../src/components/layout/PopoverPanel.vue"],"sourcesContent":["<template> \n <Teleport to=\"body\"> \n <Transition \n enter-active-class=\"modo-popover-enter\" \n leave-active-class=\"modo-popover-leave\" \n > \n <div \n v-if=\"open\" \n ref=\"panelEl\" \n :role=\"role\" \n :aria-labelledby=\"labelledBy\" \n :style=\"mergedStyle\" \n :class=\"[\n 'modo-popover flex flex-col overflow-hidden bg-popover text-popover-foreground border border-
|
|
1
|
+
{"version":3,"file":"PopoverPanel.vue_vue_type_script_setup_true_lang.mjs","names":["$attrs"],"sources":["../../../src/components/layout/PopoverPanel.vue"],"sourcesContent":["<template> \n <Teleport to=\"body\"> \n <Transition \n enter-active-class=\"modo-popover-enter\" \n leave-active-class=\"modo-popover-leave\" \n > \n <div \n v-if=\"open\" \n ref=\"panelEl\" \n :role=\"role\" \n :aria-labelledby=\"labelledBy\" \n :style=\"mergedStyle\" \n :class=\"[\n 'modo-popover flex flex-col overflow-hidden bg-popover text-popover-foreground border border-input shadow-lg',\n radiusClass,\n $attrs.class,\n ]\"\n :data-modo-theme=\"scopedTheme || undefined\"\n >\n <!--\n `min-h-0` is what makes the panel's max-height actually bite:\n as a flex child this wrapper defaults to min-height:auto and\n refuses to shrink below its content, so it would render past\n the capped panel instead of scrolling inside it.\n -->\n <div :class=\"['modo-popover-inner min-h-0 flex-1 overflow-x-hidden overflow-y-auto', radiusClass]\">\n <slot />\n </div>\n </div> \n </Transition> \n </Teleport> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed, ref, watch } from 'vue'; \nimport { useResolvedRadius, useResolvedTheme, useModoConfig } from '../../composables/useModoConfig'; \nimport { resolveColorMode } from '../../composables/useColorMode'; \nimport { palettesToCssVars, semanticTokensFromPalettes } from '../../config/palettes'; \nimport { hexToOklchString, pickForegroundOklch } from '../../config/colorPrimitives'; \nimport { surfacesToCssVars } from '../../config/surfaces'; \n \ndefineOptions({ inheritAttrs: false }); \n \nconst props = defineProps<{ \n /** Controla la visibilidad. */ \n open: boolean; \n /** Estilo (top/left/width/zIndex) calculado por `usePopover`. */ \n style?: Record<string, string>; \n /** Radio de esquinas. Si no se pasa, toma el del provider. */ \n radius?: 'none' | 'small' | 'medium' | 'large' | 'full'; \n /** ARIA role. @default 'dialog' */ \n role?: string; \n /** Id del elemento que nombra al panel. */ \n labelledBy?: string; \n}>(); \n \nconst emit = defineEmits<{ 'update:panelRef': [el: HTMLElement | null] }>(); \n \nconst panelEl = ref<HTMLElement | null>(null); \nwatch(panelEl, (el) => emit('update:panelRef', el)); \n \nconst radius = useResolvedRadius(() => props.radius); \nconst theme = useResolvedTheme(); \nconst cfg = useModoConfig(); \n// When the popover is portal'd to <body>, the data-modo-theme attribute on \n// the parent provider is out of scope. Forward it so dark mode works. \nconst scopedTheme = computed(() => resolveColorMode(theme.value)); \n \n// Forward the provider's palette CSS vars (`--primary`, `--primary-foreground`, \n// etc.) to the teleported panel so `bg-primary` / `text-primary` stay in sync \n// with whatever palette the provider set. Also forward surface vars so tinted \n// surfaces (base intensity) are visible inside the popover. \nconst mergedStyle = computed(() => { \n const providerVars = cfg?.value.palettes \n ? { \n ...palettesToCssVars(cfg.value.palettes), \n ...semanticTokensFromPalettes(cfg.value.palettes, hexToOklchString, pickForegroundOklch), \n } \n : {};\n const surfaceVars = cfg?.value.surfaces\n ? surfacesToCssVars(cfg.value.surfaces)\n : {};\n const darkSurfaceVars = (scopedTheme.value === 'dark' && cfg?.value.darkSurfaces)\n ? surfacesToCssVars(cfg.value.darkSurfaces)\n : {};\n return { ...providerVars, ...surfaceVars, ...darkSurfaceVars, ...(props.style ?? {}) }; \n}); \n \nconst radiusClass = computed(() => { \n switch (radius.value) { \n case 'none': return 'rounded-none'; \n case 'small': return 'rounded-sm'; \n case 'large': return 'rounded-xl'; \n case 'full': return 'rounded-2xl'; \n case 'medium': \n default: return 'rounded-md'; \n } \n}); \n</script> \n \n<style scoped> \n.modo-popover { \n transform-origin: top center; \n will-change: transform, opacity; \n} \n.modo-popover-enter { \n animation: modo-popover-in 140ms cubic-bezier(0.2, 0, 0, 1); \n} \n.modo-popover-leave { \n animation: modo-popover-out 80ms cubic-bezier(0.3, 0, 1, 1); \n} \n@keyframes modo-popover-in { \n from { opacity: 0; transform: translateY(-4px) scale(0.98); } \n to { opacity: 1; transform: translateY(0) scale(1); } \n} \n@keyframes modo-popover-out { \n from { opacity: 1; transform: translateY(0); } \n to { opacity: 0; transform: translateY(-2px); } \n} \n@media (prefers-reduced-motion: reduce) { \n .modo-popover-enter, .modo-popover-leave { animation: none; } \n} \n</style>\n"],"mappings":";;;;;;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EM,OAAA,EAFA,OAAK,eAAA,CAAA,uEAA0E,YAAA,MAAW,CAAA,EAAA,EAAA,CAC5F,WAAQ,KAAA,QAAA,WAAA,EAAA,EAAA,KAAA,GAAA,KAAA,CAAA,EAAA,EAAA,CAAA,EAAA,IAAA,WAAA,IAAA,mBAAA,IAAA,KAAA,CAAA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverTrigger.cjs","names":[],"sources":["../../../../src/components/layout/popover/PopoverTrigger.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, ref, watch } from 'vue'\nimport Button from '../../forms/Button.vue'\nimport type { PopoverTriggerProps } from '../../../interfaces/layout/Popover.interface'\nimport { usePopoverContext } from './PopoverContext'\nimport { isKeyboardActivation } from '../../../utils/morph/morphHelpers'\n\ndefineOptions({\n name: 'PopoverTrigger',\n})\n\nconst props = withDefaults(defineProps<PopoverTriggerProps>(), {\n asChild: false,\n variant: 'outline',\n disabled: false,\n})\n\nconst { open, phase, setOpen, triggerEl, triggerId, popoverId, color, radius, size } =\n usePopoverContext()\nconst rootRef = ref<HTMLElement | null>(null)\nconst landed = ref(false)\nlet landedTimer: ReturnType<typeof setTimeout> | null = null\n\nconst ownTriggerId = `${popoverId}-trigger`\n\n// Same neutral outline look as the native DropdownMenu trigger: the provider\n// color only shows through on `danger` or the filled variants.\nconst neutralOutlineClass = computed(() =>\n props.variant === 'outline' && color.value !== 'danger'\n ? 'bg-card !border-border !text-foreground hover:!bg-card active:!bg-accent focus-visible:!ring-ring'\n : '',\n)\n\nwatch(phase, (next, prev) => {\n if (prev === 'closing' && next === 'closed') {\n landed.value = true\n if (landedTimer) clearTimeout(landedTimer)\n landedTimer = setTimeout(() => {\n landed.value = false\n }, 500)\n }\n})\n\nconst morphOrigin = computed(() => {\n if (phase.value === 'closing') return 'closing'\n if (phase.value !== 'closed') return 'hidden'\n if (landed.value) return 'landed'\n return undefined\n})\n\nfunction syncTriggerEl() {\n // The watcher is immediate, so it also runs during SSR where there is no DOM.\n if (typeof HTMLElement === 'undefined') return\n const child = rootRef.value?.firstElementChild\n if (!(child instanceof HTMLElement)) {\n triggerEl.value = null\n triggerId.value = undefined\n return\n }\n if (props.asChild) {\n // The slotted element is owned by the consumer: decorate it in place so\n // it carries the morph choreography and the ARIA wiring of a trigger.\n child.classList.add('modo-morph-trigger')\n if (morphOrigin.value) {\n child.setAttribute('data-modo-morph-origin', morphOrigin.value)\n } else {\n child.removeAttribute('data-modo-morph-origin')\n }\n if (!child.id) child.id = ownTriggerId\n child.setAttribute('aria-haspopup', 'dialog')\n child.setAttribute('aria-expanded', String(open.value))\n if (phase.value !== 'closed') child.setAttribute('aria-controls', popoverId)\n else child.removeAttribute('aria-controls')\n }\n triggerEl.value = child\n triggerId.value = child.id || undefined\n}\n\nwatch([rootRef, morphOrigin, open, () => props.asChild], syncTriggerEl, {\n immediate: true,\n flush: 'post',\n})\n\nonBeforeUnmount(() => {\n if (landedTimer) clearTimeout(landedTimer)\n triggerEl.value = null\n triggerId.value = undefined\n})\n\nfunction handleClick(event: MouseEvent) {\n if (event.defaultPrevented) return\n syncTriggerEl()\n setOpen(!open.value)\n}\n\n// asChild with a non-native element (a `<span role=\"button\">`): Enter/Space\n// don't become a click, so open by hand. Native buttons keep their own click.\nfunction handleKeyDown(event: KeyboardEvent) {\n if (!isKeyboardActivation(event)) return\n event.preventDefault()\n syncTriggerEl()\n setOpen(!open.value)\n}\n</script>\n\n<template>\n <span\n ref=\"rootRef\"\n class=\"contents\"\n @click=\"asChild && handleClick($event)\"\n @keydown=\"asChild && handleKeyDown($event)\"\n >\n <slot v-if=\"asChild\" :open=\"open\" />\n <Button\n v-else\n :id=\"ownTriggerId\"\n :variant=\"variant\"\n :color=\"color\"\n :size=\"size\"\n :radius=\"radius\"\n :disabled=\"disabled\"\n :class=\"['modo-morph-trigger', neutralOutlineClass]\"\n aria-haspopup=\"dialog\"\n :aria-expanded=\"open\"\n :aria-controls=\"phase !== 'closed' ? popoverId : undefined\"\n :data-modo-morph-origin=\"morphOrigin\"\n @click=\"handleClick\"\n >\n <span class=\"modo-morph-trigger__content\">\n <slot :open=\"open\" />\n </span>\n </Button>\n </span>\n</template>\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"PopoverTrigger.cjs","names":[],"sources":["../../../../src/components/layout/popover/PopoverTrigger.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, ref, watch } from 'vue'\nimport Button from '../../forms/Button.vue'\nimport type { PopoverTriggerProps } from '../../../interfaces/layout/Popover.interface'\nimport { usePopoverContext } from './PopoverContext'\nimport { isKeyboardActivation } from '../../../utils/morph/morphHelpers'\n\ndefineOptions({\n name: 'PopoverTrigger',\n})\n\nconst props = withDefaults(defineProps<PopoverTriggerProps>(), {\n asChild: false,\n variant: 'outline',\n disabled: false,\n})\n\nconst { open, phase, setOpen, triggerEl, triggerId, popoverId, color, radius, size } =\n usePopoverContext()\nconst rootRef = ref<HTMLElement | null>(null)\nconst landed = ref(false)\nlet landedTimer: ReturnType<typeof setTimeout> | null = null\n\nconst ownTriggerId = `${popoverId}-trigger`\n\n// Same neutral outline look as the native DropdownMenu trigger: the provider\n// color only shows through on `danger` or the filled variants.\nconst neutralOutlineClass = computed(() =>\n props.variant === 'outline' && color.value !== 'danger'\n ? 'bg-card !border-input hover:!border-input-hover !text-foreground hover:!bg-card active:!bg-accent focus-visible:!ring-ring'\n : '',\n)\n\nwatch(phase, (next, prev) => {\n if (prev === 'closing' && next === 'closed') {\n landed.value = true\n if (landedTimer) clearTimeout(landedTimer)\n landedTimer = setTimeout(() => {\n landed.value = false\n }, 500)\n }\n})\n\nconst morphOrigin = computed(() => {\n if (phase.value === 'closing') return 'closing'\n if (phase.value !== 'closed') return 'hidden'\n if (landed.value) return 'landed'\n return undefined\n})\n\nfunction syncTriggerEl() {\n // The watcher is immediate, so it also runs during SSR where there is no DOM.\n if (typeof HTMLElement === 'undefined') return\n const child = rootRef.value?.firstElementChild\n if (!(child instanceof HTMLElement)) {\n triggerEl.value = null\n triggerId.value = undefined\n return\n }\n if (props.asChild) {\n // The slotted element is owned by the consumer: decorate it in place so\n // it carries the morph choreography and the ARIA wiring of a trigger.\n child.classList.add('modo-morph-trigger')\n if (morphOrigin.value) {\n child.setAttribute('data-modo-morph-origin', morphOrigin.value)\n } else {\n child.removeAttribute('data-modo-morph-origin')\n }\n if (!child.id) child.id = ownTriggerId\n child.setAttribute('aria-haspopup', 'dialog')\n child.setAttribute('aria-expanded', String(open.value))\n if (phase.value !== 'closed') child.setAttribute('aria-controls', popoverId)\n else child.removeAttribute('aria-controls')\n }\n triggerEl.value = child\n triggerId.value = child.id || undefined\n}\n\nwatch([rootRef, morphOrigin, open, () => props.asChild], syncTriggerEl, {\n immediate: true,\n flush: 'post',\n})\n\nonBeforeUnmount(() => {\n if (landedTimer) clearTimeout(landedTimer)\n triggerEl.value = null\n triggerId.value = undefined\n})\n\nfunction handleClick(event: MouseEvent) {\n if (event.defaultPrevented) return\n syncTriggerEl()\n setOpen(!open.value)\n}\n\n// asChild with a non-native element (a `<span role=\"button\">`): Enter/Space\n// don't become a click, so open by hand. Native buttons keep their own click.\nfunction handleKeyDown(event: KeyboardEvent) {\n if (!isKeyboardActivation(event)) return\n event.preventDefault()\n syncTriggerEl()\n setOpen(!open.value)\n}\n</script>\n\n<template>\n <span\n ref=\"rootRef\"\n class=\"contents\"\n @click=\"asChild && handleClick($event)\"\n @keydown=\"asChild && handleKeyDown($event)\"\n >\n <slot v-if=\"asChild\" :open=\"open\" />\n <Button\n v-else\n :id=\"ownTriggerId\"\n :variant=\"variant\"\n :color=\"color\"\n :size=\"size\"\n :radius=\"radius\"\n :disabled=\"disabled\"\n :class=\"['modo-morph-trigger', neutralOutlineClass]\"\n aria-haspopup=\"dialog\"\n :aria-expanded=\"open\"\n :aria-controls=\"phase !== 'closed' ? popoverId : undefined\"\n :data-modo-morph-origin=\"morphOrigin\"\n @click=\"handleClick\"\n >\n <span class=\"modo-morph-trigger__content\">\n <slot :open=\"open\" />\n </span>\n </Button>\n </span>\n</template>\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverTrigger.mjs","names":[],"sources":["../../../../src/components/layout/popover/PopoverTrigger.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, ref, watch } from 'vue'\nimport Button from '../../forms/Button.vue'\nimport type { PopoverTriggerProps } from '../../../interfaces/layout/Popover.interface'\nimport { usePopoverContext } from './PopoverContext'\nimport { isKeyboardActivation } from '../../../utils/morph/morphHelpers'\n\ndefineOptions({\n name: 'PopoverTrigger',\n})\n\nconst props = withDefaults(defineProps<PopoverTriggerProps>(), {\n asChild: false,\n variant: 'outline',\n disabled: false,\n})\n\nconst { open, phase, setOpen, triggerEl, triggerId, popoverId, color, radius, size } =\n usePopoverContext()\nconst rootRef = ref<HTMLElement | null>(null)\nconst landed = ref(false)\nlet landedTimer: ReturnType<typeof setTimeout> | null = null\n\nconst ownTriggerId = `${popoverId}-trigger`\n\n// Same neutral outline look as the native DropdownMenu trigger: the provider\n// color only shows through on `danger` or the filled variants.\nconst neutralOutlineClass = computed(() =>\n props.variant === 'outline' && color.value !== 'danger'\n ? 'bg-card !border-border !text-foreground hover:!bg-card active:!bg-accent focus-visible:!ring-ring'\n : '',\n)\n\nwatch(phase, (next, prev) => {\n if (prev === 'closing' && next === 'closed') {\n landed.value = true\n if (landedTimer) clearTimeout(landedTimer)\n landedTimer = setTimeout(() => {\n landed.value = false\n }, 500)\n }\n})\n\nconst morphOrigin = computed(() => {\n if (phase.value === 'closing') return 'closing'\n if (phase.value !== 'closed') return 'hidden'\n if (landed.value) return 'landed'\n return undefined\n})\n\nfunction syncTriggerEl() {\n // The watcher is immediate, so it also runs during SSR where there is no DOM.\n if (typeof HTMLElement === 'undefined') return\n const child = rootRef.value?.firstElementChild\n if (!(child instanceof HTMLElement)) {\n triggerEl.value = null\n triggerId.value = undefined\n return\n }\n if (props.asChild) {\n // The slotted element is owned by the consumer: decorate it in place so\n // it carries the morph choreography and the ARIA wiring of a trigger.\n child.classList.add('modo-morph-trigger')\n if (morphOrigin.value) {\n child.setAttribute('data-modo-morph-origin', morphOrigin.value)\n } else {\n child.removeAttribute('data-modo-morph-origin')\n }\n if (!child.id) child.id = ownTriggerId\n child.setAttribute('aria-haspopup', 'dialog')\n child.setAttribute('aria-expanded', String(open.value))\n if (phase.value !== 'closed') child.setAttribute('aria-controls', popoverId)\n else child.removeAttribute('aria-controls')\n }\n triggerEl.value = child\n triggerId.value = child.id || undefined\n}\n\nwatch([rootRef, morphOrigin, open, () => props.asChild], syncTriggerEl, {\n immediate: true,\n flush: 'post',\n})\n\nonBeforeUnmount(() => {\n if (landedTimer) clearTimeout(landedTimer)\n triggerEl.value = null\n triggerId.value = undefined\n})\n\nfunction handleClick(event: MouseEvent) {\n if (event.defaultPrevented) return\n syncTriggerEl()\n setOpen(!open.value)\n}\n\n// asChild with a non-native element (a `<span role=\"button\">`): Enter/Space\n// don't become a click, so open by hand. Native buttons keep their own click.\nfunction handleKeyDown(event: KeyboardEvent) {\n if (!isKeyboardActivation(event)) return\n event.preventDefault()\n syncTriggerEl()\n setOpen(!open.value)\n}\n</script>\n\n<template>\n <span\n ref=\"rootRef\"\n class=\"contents\"\n @click=\"asChild && handleClick($event)\"\n @keydown=\"asChild && handleKeyDown($event)\"\n >\n <slot v-if=\"asChild\" :open=\"open\" />\n <Button\n v-else\n :id=\"ownTriggerId\"\n :variant=\"variant\"\n :color=\"color\"\n :size=\"size\"\n :radius=\"radius\"\n :disabled=\"disabled\"\n :class=\"['modo-morph-trigger', neutralOutlineClass]\"\n aria-haspopup=\"dialog\"\n :aria-expanded=\"open\"\n :aria-controls=\"phase !== 'closed' ? popoverId : undefined\"\n :data-modo-morph-origin=\"morphOrigin\"\n @click=\"handleClick\"\n >\n <span class=\"modo-morph-trigger__content\">\n <slot :open=\"open\" />\n </span>\n </Button>\n </span>\n</template>\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"PopoverTrigger.mjs","names":[],"sources":["../../../../src/components/layout/popover/PopoverTrigger.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, ref, watch } from 'vue'\nimport Button from '../../forms/Button.vue'\nimport type { PopoverTriggerProps } from '../../../interfaces/layout/Popover.interface'\nimport { usePopoverContext } from './PopoverContext'\nimport { isKeyboardActivation } from '../../../utils/morph/morphHelpers'\n\ndefineOptions({\n name: 'PopoverTrigger',\n})\n\nconst props = withDefaults(defineProps<PopoverTriggerProps>(), {\n asChild: false,\n variant: 'outline',\n disabled: false,\n})\n\nconst { open, phase, setOpen, triggerEl, triggerId, popoverId, color, radius, size } =\n usePopoverContext()\nconst rootRef = ref<HTMLElement | null>(null)\nconst landed = ref(false)\nlet landedTimer: ReturnType<typeof setTimeout> | null = null\n\nconst ownTriggerId = `${popoverId}-trigger`\n\n// Same neutral outline look as the native DropdownMenu trigger: the provider\n// color only shows through on `danger` or the filled variants.\nconst neutralOutlineClass = computed(() =>\n props.variant === 'outline' && color.value !== 'danger'\n ? 'bg-card !border-input hover:!border-input-hover !text-foreground hover:!bg-card active:!bg-accent focus-visible:!ring-ring'\n : '',\n)\n\nwatch(phase, (next, prev) => {\n if (prev === 'closing' && next === 'closed') {\n landed.value = true\n if (landedTimer) clearTimeout(landedTimer)\n landedTimer = setTimeout(() => {\n landed.value = false\n }, 500)\n }\n})\n\nconst morphOrigin = computed(() => {\n if (phase.value === 'closing') return 'closing'\n if (phase.value !== 'closed') return 'hidden'\n if (landed.value) return 'landed'\n return undefined\n})\n\nfunction syncTriggerEl() {\n // The watcher is immediate, so it also runs during SSR where there is no DOM.\n if (typeof HTMLElement === 'undefined') return\n const child = rootRef.value?.firstElementChild\n if (!(child instanceof HTMLElement)) {\n triggerEl.value = null\n triggerId.value = undefined\n return\n }\n if (props.asChild) {\n // The slotted element is owned by the consumer: decorate it in place so\n // it carries the morph choreography and the ARIA wiring of a trigger.\n child.classList.add('modo-morph-trigger')\n if (morphOrigin.value) {\n child.setAttribute('data-modo-morph-origin', morphOrigin.value)\n } else {\n child.removeAttribute('data-modo-morph-origin')\n }\n if (!child.id) child.id = ownTriggerId\n child.setAttribute('aria-haspopup', 'dialog')\n child.setAttribute('aria-expanded', String(open.value))\n if (phase.value !== 'closed') child.setAttribute('aria-controls', popoverId)\n else child.removeAttribute('aria-controls')\n }\n triggerEl.value = child\n triggerId.value = child.id || undefined\n}\n\nwatch([rootRef, morphOrigin, open, () => props.asChild], syncTriggerEl, {\n immediate: true,\n flush: 'post',\n})\n\nonBeforeUnmount(() => {\n if (landedTimer) clearTimeout(landedTimer)\n triggerEl.value = null\n triggerId.value = undefined\n})\n\nfunction handleClick(event: MouseEvent) {\n if (event.defaultPrevented) return\n syncTriggerEl()\n setOpen(!open.value)\n}\n\n// asChild with a non-native element (a `<span role=\"button\">`): Enter/Space\n// don't become a click, so open by hand. Native buttons keep their own click.\nfunction handleKeyDown(event: KeyboardEvent) {\n if (!isKeyboardActivation(event)) return\n event.preventDefault()\n syncTriggerEl()\n setOpen(!open.value)\n}\n</script>\n\n<template>\n <span\n ref=\"rootRef\"\n class=\"contents\"\n @click=\"asChild && handleClick($event)\"\n @keydown=\"asChild && handleKeyDown($event)\"\n >\n <slot v-if=\"asChild\" :open=\"open\" />\n <Button\n v-else\n :id=\"ownTriggerId\"\n :variant=\"variant\"\n :color=\"color\"\n :size=\"size\"\n :radius=\"radius\"\n :disabled=\"disabled\"\n :class=\"['modo-morph-trigger', neutralOutlineClass]\"\n aria-haspopup=\"dialog\"\n :aria-expanded=\"open\"\n :aria-controls=\"phase !== 'closed' ? popoverId : undefined\"\n :data-modo-morph-origin=\"morphOrigin\"\n @click=\"handleClick\"\n >\n <span class=\"modo-morph-trigger__content\">\n <slot :open=\"open\" />\n </span>\n </Button>\n </span>\n</template>\n"],"mappings":""}
|
package/dist/components/layout/popover/PopoverTrigger.vue_vue_type_script_setup_true_lang.cjs
CHANGED
|
@@ -26,7 +26,7 @@ var PopoverTrigger_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
|
|
|
26
26
|
const landed = (0, vue.ref)(false);
|
|
27
27
|
let landedTimer = null;
|
|
28
28
|
const ownTriggerId = `${popoverId}-trigger`;
|
|
29
|
-
const neutralOutlineClass = (0, vue.computed)(() => props.variant === "outline" && color.value !== "danger" ? "bg-card !border-border !text-foreground hover:!bg-card active:!bg-accent focus-visible:!ring-ring" : "");
|
|
29
|
+
const neutralOutlineClass = (0, vue.computed)(() => props.variant === "outline" && color.value !== "danger" ? "bg-card !border-input hover:!border-input-hover !text-foreground hover:!bg-card active:!bg-accent focus-visible:!ring-ring" : "");
|
|
30
30
|
(0, vue.watch)(phase, (next, prev) => {
|
|
31
31
|
if (prev === "closing" && next === "closed") {
|
|
32
32
|
landed.value = true;
|
package/dist/components/layout/popover/PopoverTrigger.vue_vue_type_script_setup_true_lang.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverTrigger.vue_vue_type_script_setup_true_lang.cjs","names":[],"sources":["../../../../src/components/layout/popover/PopoverTrigger.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, ref, watch } from 'vue'\nimport Button from '../../forms/Button.vue'\nimport type { PopoverTriggerProps } from '../../../interfaces/layout/Popover.interface'\nimport { usePopoverContext } from './PopoverContext'\nimport { isKeyboardActivation } from '../../../utils/morph/morphHelpers'\n\ndefineOptions({\n name: 'PopoverTrigger',\n})\n\nconst props = withDefaults(defineProps<PopoverTriggerProps>(), {\n asChild: false,\n variant: 'outline',\n disabled: false,\n})\n\nconst { open, phase, setOpen, triggerEl, triggerId, popoverId, color, radius, size } =\n usePopoverContext()\nconst rootRef = ref<HTMLElement | null>(null)\nconst landed = ref(false)\nlet landedTimer: ReturnType<typeof setTimeout> | null = null\n\nconst ownTriggerId = `${popoverId}-trigger`\n\n// Same neutral outline look as the native DropdownMenu trigger: the provider\n// color only shows through on `danger` or the filled variants.\nconst neutralOutlineClass = computed(() =>\n props.variant === 'outline' && color.value !== 'danger'\n ? 'bg-card !border-border !text-foreground hover:!bg-card active:!bg-accent focus-visible:!ring-ring'\n : '',\n)\n\nwatch(phase, (next, prev) => {\n if (prev === 'closing' && next === 'closed') {\n landed.value = true\n if (landedTimer) clearTimeout(landedTimer)\n landedTimer = setTimeout(() => {\n landed.value = false\n }, 500)\n }\n})\n\nconst morphOrigin = computed(() => {\n if (phase.value === 'closing') return 'closing'\n if (phase.value !== 'closed') return 'hidden'\n if (landed.value) return 'landed'\n return undefined\n})\n\nfunction syncTriggerEl() {\n // The watcher is immediate, so it also runs during SSR where there is no DOM.\n if (typeof HTMLElement === 'undefined') return\n const child = rootRef.value?.firstElementChild\n if (!(child instanceof HTMLElement)) {\n triggerEl.value = null\n triggerId.value = undefined\n return\n }\n if (props.asChild) {\n // The slotted element is owned by the consumer: decorate it in place so\n // it carries the morph choreography and the ARIA wiring of a trigger.\n child.classList.add('modo-morph-trigger')\n if (morphOrigin.value) {\n child.setAttribute('data-modo-morph-origin', morphOrigin.value)\n } else {\n child.removeAttribute('data-modo-morph-origin')\n }\n if (!child.id) child.id = ownTriggerId\n child.setAttribute('aria-haspopup', 'dialog')\n child.setAttribute('aria-expanded', String(open.value))\n if (phase.value !== 'closed') child.setAttribute('aria-controls', popoverId)\n else child.removeAttribute('aria-controls')\n }\n triggerEl.value = child\n triggerId.value = child.id || undefined\n}\n\nwatch([rootRef, morphOrigin, open, () => props.asChild], syncTriggerEl, {\n immediate: true,\n flush: 'post',\n})\n\nonBeforeUnmount(() => {\n if (landedTimer) clearTimeout(landedTimer)\n triggerEl.value = null\n triggerId.value = undefined\n})\n\nfunction handleClick(event: MouseEvent) {\n if (event.defaultPrevented) return\n syncTriggerEl()\n setOpen(!open.value)\n}\n\n// asChild with a non-native element (a `<span role=\"button\">`): Enter/Space\n// don't become a click, so open by hand. Native buttons keep their own click.\nfunction handleKeyDown(event: KeyboardEvent) {\n if (!isKeyboardActivation(event)) return\n event.preventDefault()\n syncTriggerEl()\n setOpen(!open.value)\n}\n</script>\n\n<template>\n <span\n ref=\"rootRef\"\n class=\"contents\"\n @click=\"asChild && handleClick($event)\"\n @keydown=\"asChild && handleKeyDown($event)\"\n >\n <slot v-if=\"asChild\" :open=\"open\" />\n <Button\n v-else\n :id=\"ownTriggerId\"\n :variant=\"variant\"\n :color=\"color\"\n :size=\"size\"\n :radius=\"radius\"\n :disabled=\"disabled\"\n :class=\"['modo-morph-trigger', neutralOutlineClass]\"\n aria-haspopup=\"dialog\"\n :aria-expanded=\"open\"\n :aria-controls=\"phase !== 'closed' ? popoverId : undefined\"\n :data-modo-morph-origin=\"morphOrigin\"\n @click=\"handleClick\"\n >\n <span class=\"modo-morph-trigger__content\">\n <slot :open=\"open\" />\n </span>\n </Button>\n </span>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;EAWA,MAAM,QAAQ;EAMd,MAAM,EAAE,MAAM,OAAO,SAAS,WAAW,WAAW,WAAW,OAAO,QAAQ,SAC5E,uBAAA,mBAAkB;EACpB,MAAM,WAAA,GAAA,IAAA,KAAkC,KAAI;EAC5C,MAAM,UAAA,GAAA,IAAA,KAAa,MAAK;EACxB,IAAI,cAAoD;EAExD,MAAM,eAAe,GAAG,UAAU;EAIlC,MAAM,uBAAA,GAAA,IAAA,gBACJ,MAAM,YAAY,aAAa,MAAM,UAAU,WAC3C,
|
|
1
|
+
{"version":3,"file":"PopoverTrigger.vue_vue_type_script_setup_true_lang.cjs","names":[],"sources":["../../../../src/components/layout/popover/PopoverTrigger.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, ref, watch } from 'vue'\nimport Button from '../../forms/Button.vue'\nimport type { PopoverTriggerProps } from '../../../interfaces/layout/Popover.interface'\nimport { usePopoverContext } from './PopoverContext'\nimport { isKeyboardActivation } from '../../../utils/morph/morphHelpers'\n\ndefineOptions({\n name: 'PopoverTrigger',\n})\n\nconst props = withDefaults(defineProps<PopoverTriggerProps>(), {\n asChild: false,\n variant: 'outline',\n disabled: false,\n})\n\nconst { open, phase, setOpen, triggerEl, triggerId, popoverId, color, radius, size } =\n usePopoverContext()\nconst rootRef = ref<HTMLElement | null>(null)\nconst landed = ref(false)\nlet landedTimer: ReturnType<typeof setTimeout> | null = null\n\nconst ownTriggerId = `${popoverId}-trigger`\n\n// Same neutral outline look as the native DropdownMenu trigger: the provider\n// color only shows through on `danger` or the filled variants.\nconst neutralOutlineClass = computed(() =>\n props.variant === 'outline' && color.value !== 'danger'\n ? 'bg-card !border-input hover:!border-input-hover !text-foreground hover:!bg-card active:!bg-accent focus-visible:!ring-ring'\n : '',\n)\n\nwatch(phase, (next, prev) => {\n if (prev === 'closing' && next === 'closed') {\n landed.value = true\n if (landedTimer) clearTimeout(landedTimer)\n landedTimer = setTimeout(() => {\n landed.value = false\n }, 500)\n }\n})\n\nconst morphOrigin = computed(() => {\n if (phase.value === 'closing') return 'closing'\n if (phase.value !== 'closed') return 'hidden'\n if (landed.value) return 'landed'\n return undefined\n})\n\nfunction syncTriggerEl() {\n // The watcher is immediate, so it also runs during SSR where there is no DOM.\n if (typeof HTMLElement === 'undefined') return\n const child = rootRef.value?.firstElementChild\n if (!(child instanceof HTMLElement)) {\n triggerEl.value = null\n triggerId.value = undefined\n return\n }\n if (props.asChild) {\n // The slotted element is owned by the consumer: decorate it in place so\n // it carries the morph choreography and the ARIA wiring of a trigger.\n child.classList.add('modo-morph-trigger')\n if (morphOrigin.value) {\n child.setAttribute('data-modo-morph-origin', morphOrigin.value)\n } else {\n child.removeAttribute('data-modo-morph-origin')\n }\n if (!child.id) child.id = ownTriggerId\n child.setAttribute('aria-haspopup', 'dialog')\n child.setAttribute('aria-expanded', String(open.value))\n if (phase.value !== 'closed') child.setAttribute('aria-controls', popoverId)\n else child.removeAttribute('aria-controls')\n }\n triggerEl.value = child\n triggerId.value = child.id || undefined\n}\n\nwatch([rootRef, morphOrigin, open, () => props.asChild], syncTriggerEl, {\n immediate: true,\n flush: 'post',\n})\n\nonBeforeUnmount(() => {\n if (landedTimer) clearTimeout(landedTimer)\n triggerEl.value = null\n triggerId.value = undefined\n})\n\nfunction handleClick(event: MouseEvent) {\n if (event.defaultPrevented) return\n syncTriggerEl()\n setOpen(!open.value)\n}\n\n// asChild with a non-native element (a `<span role=\"button\">`): Enter/Space\n// don't become a click, so open by hand. Native buttons keep their own click.\nfunction handleKeyDown(event: KeyboardEvent) {\n if (!isKeyboardActivation(event)) return\n event.preventDefault()\n syncTriggerEl()\n setOpen(!open.value)\n}\n</script>\n\n<template>\n <span\n ref=\"rootRef\"\n class=\"contents\"\n @click=\"asChild && handleClick($event)\"\n @keydown=\"asChild && handleKeyDown($event)\"\n >\n <slot v-if=\"asChild\" :open=\"open\" />\n <Button\n v-else\n :id=\"ownTriggerId\"\n :variant=\"variant\"\n :color=\"color\"\n :size=\"size\"\n :radius=\"radius\"\n :disabled=\"disabled\"\n :class=\"['modo-morph-trigger', neutralOutlineClass]\"\n aria-haspopup=\"dialog\"\n :aria-expanded=\"open\"\n :aria-controls=\"phase !== 'closed' ? popoverId : undefined\"\n :data-modo-morph-origin=\"morphOrigin\"\n @click=\"handleClick\"\n >\n <span class=\"modo-morph-trigger__content\">\n <slot :open=\"open\" />\n </span>\n </Button>\n </span>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;EAWA,MAAM,QAAQ;EAMd,MAAM,EAAE,MAAM,OAAO,SAAS,WAAW,WAAW,WAAW,OAAO,QAAQ,SAC5E,uBAAA,mBAAkB;EACpB,MAAM,WAAA,GAAA,IAAA,KAAkC,KAAI;EAC5C,MAAM,UAAA,GAAA,IAAA,KAAa,MAAK;EACxB,IAAI,cAAoD;EAExD,MAAM,eAAe,GAAG,UAAU;EAIlC,MAAM,uBAAA,GAAA,IAAA,gBACJ,MAAM,YAAY,aAAa,MAAM,UAAU,WAC3C,+HACA,GACN;EAEA,CAAA,GAAA,IAAA,OAA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AS,cAAc,OAAsB;GAC3C,IAAI,CAAC,qBAAA,qBAAqB,MAAM,EAAE;GAClC,MAAM,gBAAe;GACrB,eAAc;GACd,QAAQ,CAAC,KAAK,MAAK;;;4DA+BZ,QAAA;aAzBD;IAAJ,KAAI;IACJ,OAAM;IACL,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,QAAA,WAAW,YAAY,OAAM;IACpC,WAAO,OAAA,OAAA,OAAA,MAAA,WAAE,QAAA,WAAW,cAAc,OAAM;OAE7B,QAAA,WAAA,GAAA,IAAA,YAAwB,KAAA,QAAA,WAAA;;IAAd,OAAA,GAAA,IAAA,OAAM,KAAI;oDAmBvB,eAAA,SAAA;;IAhBN,IAAI;IACJ,SAAS,QAAA;IACT,QAAA,GAAA,IAAA,OAAO,MAAK;IACZ,OAAA,GAAA,IAAA,OAAM,KAAI;IACV,SAAA,GAAA,IAAA,OAAQ,OAAM;IACd,UAAU,QAAA;IACV,QAAA,GAAA,IAAA,gBAAK,CAAA,sBAAyB,oBAAA,MAAmB,CAAA;IAClD,iBAAc;IACb,kBAAA,GAAA,IAAA,OAAe,KAAI;IACnB,kBAAA,GAAA,IAAA,OAAe,MAAK,KAAA,YAAA,GAAA,IAAA,OAAgB,UAAS,GAAG,KAAA;IAChD,0BAAwB,YAAA;IACxB,SAAO;;oCAID,EAAA,GAAA,IAAA,oBAAA,QAFP,YAEO,EAAA,GAAA,IAAA,YADgB,KAAA,QAAA,WAAA,EAAd,OAAA,GAAA,IAAA,OAAM,KAAI,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA"}
|
package/dist/components/layout/popover/PopoverTrigger.vue_vue_type_script_setup_true_lang.mjs
CHANGED
|
@@ -25,7 +25,7 @@ var PopoverTrigger_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
|
|
|
25
25
|
const landed = ref(false);
|
|
26
26
|
let landedTimer = null;
|
|
27
27
|
const ownTriggerId = `${popoverId}-trigger`;
|
|
28
|
-
const neutralOutlineClass = computed(() => props.variant === "outline" && color.value !== "danger" ? "bg-card !border-border !text-foreground hover:!bg-card active:!bg-accent focus-visible:!ring-ring" : "");
|
|
28
|
+
const neutralOutlineClass = computed(() => props.variant === "outline" && color.value !== "danger" ? "bg-card !border-input hover:!border-input-hover !text-foreground hover:!bg-card active:!bg-accent focus-visible:!ring-ring" : "");
|
|
29
29
|
watch(phase, (next, prev) => {
|
|
30
30
|
if (prev === "closing" && next === "closed") {
|
|
31
31
|
landed.value = true;
|
package/dist/components/layout/popover/PopoverTrigger.vue_vue_type_script_setup_true_lang.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverTrigger.vue_vue_type_script_setup_true_lang.mjs","names":[],"sources":["../../../../src/components/layout/popover/PopoverTrigger.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, ref, watch } from 'vue'\nimport Button from '../../forms/Button.vue'\nimport type { PopoverTriggerProps } from '../../../interfaces/layout/Popover.interface'\nimport { usePopoverContext } from './PopoverContext'\nimport { isKeyboardActivation } from '../../../utils/morph/morphHelpers'\n\ndefineOptions({\n name: 'PopoverTrigger',\n})\n\nconst props = withDefaults(defineProps<PopoverTriggerProps>(), {\n asChild: false,\n variant: 'outline',\n disabled: false,\n})\n\nconst { open, phase, setOpen, triggerEl, triggerId, popoverId, color, radius, size } =\n usePopoverContext()\nconst rootRef = ref<HTMLElement | null>(null)\nconst landed = ref(false)\nlet landedTimer: ReturnType<typeof setTimeout> | null = null\n\nconst ownTriggerId = `${popoverId}-trigger`\n\n// Same neutral outline look as the native DropdownMenu trigger: the provider\n// color only shows through on `danger` or the filled variants.\nconst neutralOutlineClass = computed(() =>\n props.variant === 'outline' && color.value !== 'danger'\n ? 'bg-card !border-border !text-foreground hover:!bg-card active:!bg-accent focus-visible:!ring-ring'\n : '',\n)\n\nwatch(phase, (next, prev) => {\n if (prev === 'closing' && next === 'closed') {\n landed.value = true\n if (landedTimer) clearTimeout(landedTimer)\n landedTimer = setTimeout(() => {\n landed.value = false\n }, 500)\n }\n})\n\nconst morphOrigin = computed(() => {\n if (phase.value === 'closing') return 'closing'\n if (phase.value !== 'closed') return 'hidden'\n if (landed.value) return 'landed'\n return undefined\n})\n\nfunction syncTriggerEl() {\n // The watcher is immediate, so it also runs during SSR where there is no DOM.\n if (typeof HTMLElement === 'undefined') return\n const child = rootRef.value?.firstElementChild\n if (!(child instanceof HTMLElement)) {\n triggerEl.value = null\n triggerId.value = undefined\n return\n }\n if (props.asChild) {\n // The slotted element is owned by the consumer: decorate it in place so\n // it carries the morph choreography and the ARIA wiring of a trigger.\n child.classList.add('modo-morph-trigger')\n if (morphOrigin.value) {\n child.setAttribute('data-modo-morph-origin', morphOrigin.value)\n } else {\n child.removeAttribute('data-modo-morph-origin')\n }\n if (!child.id) child.id = ownTriggerId\n child.setAttribute('aria-haspopup', 'dialog')\n child.setAttribute('aria-expanded', String(open.value))\n if (phase.value !== 'closed') child.setAttribute('aria-controls', popoverId)\n else child.removeAttribute('aria-controls')\n }\n triggerEl.value = child\n triggerId.value = child.id || undefined\n}\n\nwatch([rootRef, morphOrigin, open, () => props.asChild], syncTriggerEl, {\n immediate: true,\n flush: 'post',\n})\n\nonBeforeUnmount(() => {\n if (landedTimer) clearTimeout(landedTimer)\n triggerEl.value = null\n triggerId.value = undefined\n})\n\nfunction handleClick(event: MouseEvent) {\n if (event.defaultPrevented) return\n syncTriggerEl()\n setOpen(!open.value)\n}\n\n// asChild with a non-native element (a `<span role=\"button\">`): Enter/Space\n// don't become a click, so open by hand. Native buttons keep their own click.\nfunction handleKeyDown(event: KeyboardEvent) {\n if (!isKeyboardActivation(event)) return\n event.preventDefault()\n syncTriggerEl()\n setOpen(!open.value)\n}\n</script>\n\n<template>\n <span\n ref=\"rootRef\"\n class=\"contents\"\n @click=\"asChild && handleClick($event)\"\n @keydown=\"asChild && handleKeyDown($event)\"\n >\n <slot v-if=\"asChild\" :open=\"open\" />\n <Button\n v-else\n :id=\"ownTriggerId\"\n :variant=\"variant\"\n :color=\"color\"\n :size=\"size\"\n :radius=\"radius\"\n :disabled=\"disabled\"\n :class=\"['modo-morph-trigger', neutralOutlineClass]\"\n aria-haspopup=\"dialog\"\n :aria-expanded=\"open\"\n :aria-controls=\"phase !== 'closed' ? popoverId : undefined\"\n :data-modo-morph-origin=\"morphOrigin\"\n @click=\"handleClick\"\n >\n <span class=\"modo-morph-trigger__content\">\n <slot :open=\"open\" />\n </span>\n </Button>\n </span>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;EAWA,MAAM,QAAQ;EAMd,MAAM,EAAE,MAAM,OAAO,SAAS,WAAW,WAAW,WAAW,OAAO,QAAQ,SAC5E,mBAAkB;EACpB,MAAM,UAAU,IAAwB,KAAI;EAC5C,MAAM,SAAS,IAAI,MAAK;EACxB,IAAI,cAAoD;EAExD,MAAM,eAAe,GAAG,UAAU;EAIlC,MAAM,sBAAsB,eAC1B,MAAM,YAAY,aAAa,MAAM,UAAU,WAC3C,
|
|
1
|
+
{"version":3,"file":"PopoverTrigger.vue_vue_type_script_setup_true_lang.mjs","names":[],"sources":["../../../../src/components/layout/popover/PopoverTrigger.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, ref, watch } from 'vue'\nimport Button from '../../forms/Button.vue'\nimport type { PopoverTriggerProps } from '../../../interfaces/layout/Popover.interface'\nimport { usePopoverContext } from './PopoverContext'\nimport { isKeyboardActivation } from '../../../utils/morph/morphHelpers'\n\ndefineOptions({\n name: 'PopoverTrigger',\n})\n\nconst props = withDefaults(defineProps<PopoverTriggerProps>(), {\n asChild: false,\n variant: 'outline',\n disabled: false,\n})\n\nconst { open, phase, setOpen, triggerEl, triggerId, popoverId, color, radius, size } =\n usePopoverContext()\nconst rootRef = ref<HTMLElement | null>(null)\nconst landed = ref(false)\nlet landedTimer: ReturnType<typeof setTimeout> | null = null\n\nconst ownTriggerId = `${popoverId}-trigger`\n\n// Same neutral outline look as the native DropdownMenu trigger: the provider\n// color only shows through on `danger` or the filled variants.\nconst neutralOutlineClass = computed(() =>\n props.variant === 'outline' && color.value !== 'danger'\n ? 'bg-card !border-input hover:!border-input-hover !text-foreground hover:!bg-card active:!bg-accent focus-visible:!ring-ring'\n : '',\n)\n\nwatch(phase, (next, prev) => {\n if (prev === 'closing' && next === 'closed') {\n landed.value = true\n if (landedTimer) clearTimeout(landedTimer)\n landedTimer = setTimeout(() => {\n landed.value = false\n }, 500)\n }\n})\n\nconst morphOrigin = computed(() => {\n if (phase.value === 'closing') return 'closing'\n if (phase.value !== 'closed') return 'hidden'\n if (landed.value) return 'landed'\n return undefined\n})\n\nfunction syncTriggerEl() {\n // The watcher is immediate, so it also runs during SSR where there is no DOM.\n if (typeof HTMLElement === 'undefined') return\n const child = rootRef.value?.firstElementChild\n if (!(child instanceof HTMLElement)) {\n triggerEl.value = null\n triggerId.value = undefined\n return\n }\n if (props.asChild) {\n // The slotted element is owned by the consumer: decorate it in place so\n // it carries the morph choreography and the ARIA wiring of a trigger.\n child.classList.add('modo-morph-trigger')\n if (morphOrigin.value) {\n child.setAttribute('data-modo-morph-origin', morphOrigin.value)\n } else {\n child.removeAttribute('data-modo-morph-origin')\n }\n if (!child.id) child.id = ownTriggerId\n child.setAttribute('aria-haspopup', 'dialog')\n child.setAttribute('aria-expanded', String(open.value))\n if (phase.value !== 'closed') child.setAttribute('aria-controls', popoverId)\n else child.removeAttribute('aria-controls')\n }\n triggerEl.value = child\n triggerId.value = child.id || undefined\n}\n\nwatch([rootRef, morphOrigin, open, () => props.asChild], syncTriggerEl, {\n immediate: true,\n flush: 'post',\n})\n\nonBeforeUnmount(() => {\n if (landedTimer) clearTimeout(landedTimer)\n triggerEl.value = null\n triggerId.value = undefined\n})\n\nfunction handleClick(event: MouseEvent) {\n if (event.defaultPrevented) return\n syncTriggerEl()\n setOpen(!open.value)\n}\n\n// asChild with a non-native element (a `<span role=\"button\">`): Enter/Space\n// don't become a click, so open by hand. Native buttons keep their own click.\nfunction handleKeyDown(event: KeyboardEvent) {\n if (!isKeyboardActivation(event)) return\n event.preventDefault()\n syncTriggerEl()\n setOpen(!open.value)\n}\n</script>\n\n<template>\n <span\n ref=\"rootRef\"\n class=\"contents\"\n @click=\"asChild && handleClick($event)\"\n @keydown=\"asChild && handleKeyDown($event)\"\n >\n <slot v-if=\"asChild\" :open=\"open\" />\n <Button\n v-else\n :id=\"ownTriggerId\"\n :variant=\"variant\"\n :color=\"color\"\n :size=\"size\"\n :radius=\"radius\"\n :disabled=\"disabled\"\n :class=\"['modo-morph-trigger', neutralOutlineClass]\"\n aria-haspopup=\"dialog\"\n :aria-expanded=\"open\"\n :aria-controls=\"phase !== 'closed' ? popoverId : undefined\"\n :data-modo-morph-origin=\"morphOrigin\"\n @click=\"handleClick\"\n >\n <span class=\"modo-morph-trigger__content\">\n <slot :open=\"open\" />\n </span>\n </Button>\n </span>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;EAWA,MAAM,QAAQ;EAMd,MAAM,EAAE,MAAM,OAAO,SAAS,WAAW,WAAW,WAAW,OAAO,QAAQ,SAC5E,mBAAkB;EACpB,MAAM,UAAU,IAAwB,KAAI;EAC5C,MAAM,SAAS,IAAI,MAAK;EACxB,IAAI,cAAoD;EAExD,MAAM,eAAe,GAAG,UAAU;EAIlC,MAAM,sBAAsB,eAC1B,MAAM,YAAY,aAAa,MAAM,UAAU,WAC3C,+HACA,GACN;EAEA,MAAM,QAAQ,MAAM,SAAS;GAC3B,IAAI,SAAS,aAAa,SAAS,UAAU;IAC3C,OAAO,QAAQ;IACf,IAAI,aAAa,aAAa,YAAW;IACzC,cAAc,iBAAiB;KAC7B,OAAO,QAAQ;OACd,IAAG;;IAET;EAED,MAAM,cAAc,eAAe;GACjC,IAAI,MAAM,UAAU,WAAW,OAAO;GACtC,IAAI,MAAM,UAAU,UAAU,OAAO;GACrC,IAAI,OAAO,OAAO,OAAO;IAE1B;EAED,SAAS,gBAAgB;GAEvB,IAAI,OAAO,gBAAgB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AAA;;IAhBN,IAAI;IACJ,SAAS,QAAA;IACT,OAAO,MAAA,MAAK;IACZ,MAAM,MAAA,KAAI;IACV,QAAQ,MAAA,OAAM;IACd,UAAU,QAAA;IACV,OAAK,eAAA,CAAA,sBAAyB,oBAAA,MAAmB,CAAA;IAClD,iBAAc;IACb,iBAAe,MAAA,KAAI;IACnB,iBAAe,MAAA,MAAK,KAAA,WAAgB,MAAA,UAAS,GAAG,KAAA;IAChD,0BAAwB,YAAA;IACxB,SAAO;;2BAID,CAFP,mBAEO,QAFP,YAEO,CADL,WAAqB,KAAA,QAAA,WAAA,EAAd,MAAM,MAAA,KAAI,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA"}
|
|
@@ -2,7 +2,7 @@ const require__plugin_vue_export_helper = require("../../_virtual/_plugin-vue_ex
|
|
|
2
2
|
const require_DropdownMenu_vue_vue_type_script_setup_true_lang = require("./DropdownMenu.vue_vue_type_script_setup_true_lang.cjs");
|
|
3
3
|
;/* empty css */
|
|
4
4
|
//#region src/components/navigation/DropdownMenu.vue
|
|
5
|
-
var DropdownMenu_default = /* @__PURE__ */ require__plugin_vue_export_helper.default(require_DropdownMenu_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
5
|
+
var DropdownMenu_default = /* @__PURE__ */ require__plugin_vue_export_helper.default(require_DropdownMenu_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-bc78e5c2"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
exports.default = DropdownMenu_default;
|
|
8
8
|
|