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.
Files changed (199) hide show
  1. package/README.md +1 -1
  2. package/dist/components/data-display/calendar/AgendaView.vue_vue_type_script_setup_true_lang.mjs +6 -6
  3. package/dist/components/data-display/calendar/AgendaView.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  4. package/dist/components/data-display/calendar/Calendar.vue_vue_type_script_setup_true_lang.mjs +4 -4
  5. package/dist/components/data-display/calendar/Calendar.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  6. package/dist/components/data-display/calendar/DayView.vue_vue_type_script_setup_true_lang.mjs +7 -7
  7. package/dist/components/data-display/calendar/DayView.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  8. package/dist/components/data-display/calendar/MonthView.vue_vue_type_script_setup_true_lang.mjs +2 -2
  9. package/dist/components/data-display/calendar/MonthView.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  10. package/dist/components/data-display/calendar/Scheduler.vue_vue_type_script_setup_true_lang.mjs +7 -7
  11. package/dist/components/data-display/calendar/Scheduler.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  12. package/dist/components/data-display/calendar/WeekView.vue_vue_type_script_setup_true_lang.mjs +7 -7
  13. package/dist/components/data-display/calendar/WeekView.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  14. package/dist/components/data-display/date-picker/DateRangePicker.vue_vue_type_script_setup_true_lang.mjs +3 -3
  15. package/dist/components/data-display/date-picker/DateRangePicker.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  16. package/dist/components/data-display/date-picker/DateTimePicker.vue_vue_type_script_setup_true_lang.mjs +2 -2
  17. package/dist/components/data-display/date-picker/DateTimePicker.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  18. package/dist/components/data-display/table/Table.cjs +1 -1
  19. package/dist/components/data-display/table/Table.cjs.map +1 -1
  20. package/dist/components/data-display/table/Table.mjs +1 -1
  21. package/dist/components/data-display/table/Table.mjs.map +1 -1
  22. package/dist/components/data-display/table/Table.vue_vue_type_script_setup_true_lang.cjs +37 -1
  23. package/dist/components/data-display/table/Table.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  24. package/dist/components/data-display/table/Table.vue_vue_type_script_setup_true_lang.mjs +38 -2
  25. package/dist/components/data-display/table/Table.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  26. package/dist/components/data-display/table/TablePagination.cjs.map +1 -1
  27. package/dist/components/data-display/table/TablePagination.mjs.map +1 -1
  28. package/dist/components/data-display/table/TablePagination.vue_vue_type_script_setup_true_lang.cjs +24 -16
  29. package/dist/components/data-display/table/TablePagination.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  30. package/dist/components/data-display/table/TablePagination.vue_vue_type_script_setup_true_lang.mjs +24 -16
  31. package/dist/components/data-display/table/TablePagination.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  32. package/dist/components/feedback/Banner.vue_vue_type_script_setup_true_lang.mjs +4 -4
  33. package/dist/components/feedback/Banner.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  34. package/dist/components/feedback/Drawer.vue_vue_type_script_setup_true_lang.mjs +5 -5
  35. package/dist/components/feedback/Drawer.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  36. package/dist/components/feedback/EmptyState.cjs.map +1 -1
  37. package/dist/components/feedback/EmptyState.mjs.map +1 -1
  38. package/dist/components/feedback/EmptyState.vue_vue_type_script_setup_true_lang.cjs +1 -1
  39. package/dist/components/feedback/EmptyState.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  40. package/dist/components/feedback/EmptyState.vue_vue_type_script_setup_true_lang.mjs +1 -1
  41. package/dist/components/feedback/EmptyState.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  42. package/dist/components/feedback/Modal.vue_vue_type_script_setup_true_lang.mjs +5 -5
  43. package/dist/components/feedback/Modal.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  44. package/dist/components/feedback/tour/Tour.vue_vue_type_script_setup_true_lang.cjs +369 -0
  45. package/dist/components/feedback/tour/Tour.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
  46. package/dist/components/feedback/tour/Tour.vue_vue_type_script_setup_true_lang.mjs +368 -0
  47. package/dist/components/feedback/tour/Tour.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
  48. package/dist/components/feedback/tour/Tour2.cjs +6 -0
  49. package/dist/components/feedback/tour/Tour2.cjs.map +1 -0
  50. package/dist/components/feedback/tour/Tour2.mjs +7 -0
  51. package/dist/components/feedback/tour/Tour2.mjs.map +1 -0
  52. package/dist/components/feedback/tour/TourCard.cjs +6 -0
  53. package/dist/components/feedback/tour/TourCard.cjs.map +1 -0
  54. package/dist/components/feedback/tour/TourCard.mjs +7 -0
  55. package/dist/components/feedback/tour/TourCard.mjs.map +1 -0
  56. package/dist/components/feedback/tour/TourCard.vue_vue_type_script_setup_true_lang.cjs +102 -0
  57. package/dist/components/feedback/tour/TourCard.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
  58. package/dist/components/feedback/tour/TourCard.vue_vue_type_script_setup_true_lang.mjs +101 -0
  59. package/dist/components/feedback/tour/TourCard.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
  60. package/dist/components/feedback/tour/tourAnchor.cjs +75 -0
  61. package/dist/components/feedback/tour/tourAnchor.cjs.map +1 -0
  62. package/dist/components/feedback/tour/tourAnchor.mjs +72 -0
  63. package/dist/components/feedback/tour/tourAnchor.mjs.map +1 -0
  64. package/dist/components/feedback/tour/tourPlace.cjs +108 -0
  65. package/dist/components/feedback/tour/tourPlace.cjs.map +1 -0
  66. package/dist/components/feedback/tour/tourPlace.mjs +107 -0
  67. package/dist/components/feedback/tour/tourPlace.mjs.map +1 -0
  68. package/dist/components/feedback/tour/tourShape.cjs +121 -0
  69. package/dist/components/feedback/tour/tourShape.cjs.map +1 -0
  70. package/dist/components/feedback/tour/tourShape.mjs +118 -0
  71. package/dist/components/feedback/tour/tourShape.mjs.map +1 -0
  72. package/dist/components/feedback/tour/useTourSpotlight.cjs +60 -0
  73. package/dist/components/feedback/tour/useTourSpotlight.cjs.map +1 -0
  74. package/dist/components/feedback/tour/useTourSpotlight.mjs +59 -0
  75. package/dist/components/feedback/tour/useTourSpotlight.mjs.map +1 -0
  76. package/dist/components/feedback/tour/useTourSteps.cjs +108 -0
  77. package/dist/components/feedback/tour/useTourSteps.cjs.map +1 -0
  78. package/dist/components/feedback/tour/useTourSteps.mjs +107 -0
  79. package/dist/components/feedback/tour/useTourSteps.mjs.map +1 -0
  80. package/dist/components/forms/Button.cjs +1 -1
  81. package/dist/components/forms/Button.cjs.map +1 -1
  82. package/dist/components/forms/Button.mjs +1 -1
  83. package/dist/components/forms/Button.mjs.map +1 -1
  84. package/dist/components/forms/Button.vue_vue_type_script_setup_true_lang.cjs +1 -1
  85. package/dist/components/forms/Button.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  86. package/dist/components/forms/Button.vue_vue_type_script_setup_true_lang.mjs +1 -1
  87. package/dist/components/forms/Button.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  88. package/dist/components/forms/FileInput.cjs +1 -1
  89. package/dist/components/forms/FileInput.cjs.map +1 -1
  90. package/dist/components/forms/FileInput.mjs +1 -1
  91. package/dist/components/forms/FileInput.mjs.map +1 -1
  92. package/dist/components/forms/FileInput.vue_vue_type_script_setup_true_lang.cjs +34 -17
  93. package/dist/components/forms/FileInput.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  94. package/dist/components/forms/FileInput.vue_vue_type_script_setup_true_lang.mjs +34 -17
  95. package/dist/components/forms/FileInput.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  96. package/dist/components/forms/MultiSelect.cjs +1 -1
  97. package/dist/components/forms/MultiSelect.cjs.map +1 -1
  98. package/dist/components/forms/MultiSelect.mjs +1 -1
  99. package/dist/components/forms/MultiSelect.mjs.map +1 -1
  100. package/dist/components/forms/MultiSelect.vue_vue_type_script_setup_true_lang.cjs +2 -1
  101. package/dist/components/forms/MultiSelect.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  102. package/dist/components/forms/MultiSelect.vue_vue_type_script_setup_true_lang.mjs +2 -1
  103. package/dist/components/forms/MultiSelect.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  104. package/dist/components/forms/TagInput.cjs.map +1 -1
  105. package/dist/components/forms/TagInput.mjs.map +1 -1
  106. package/dist/components/forms/TagInput.vue_vue_type_script_setup_true_lang.cjs +1 -0
  107. package/dist/components/forms/TagInput.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  108. package/dist/components/forms/TagInput.vue_vue_type_script_setup_true_lang.mjs +1 -0
  109. package/dist/components/forms/TagInput.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  110. package/dist/components/forms/Textarea.cjs.map +1 -1
  111. package/dist/components/forms/Textarea.mjs.map +1 -1
  112. package/dist/components/forms/Textarea.vue_vue_type_script_setup_true_lang.cjs +1 -1
  113. package/dist/components/forms/Textarea.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  114. package/dist/components/forms/Textarea.vue_vue_type_script_setup_true_lang.mjs +1 -1
  115. package/dist/components/forms/Textarea.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  116. package/dist/components/forms/morph-select/MorphSelectTrigger.cjs.map +1 -1
  117. package/dist/components/forms/morph-select/MorphSelectTrigger.mjs.map +1 -1
  118. package/dist/components/forms/morph-select/MorphSelectTrigger.vue_vue_type_script_setup_true_lang.cjs +2 -2
  119. package/dist/components/forms/morph-select/MorphSelectTrigger.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  120. package/dist/components/forms/morph-select/MorphSelectTrigger.vue_vue_type_script_setup_true_lang.mjs +2 -2
  121. package/dist/components/forms/morph-select/MorphSelectTrigger.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  122. package/dist/components/layout/Canvas.cjs +1 -1
  123. package/dist/components/layout/Canvas.cjs.map +1 -1
  124. package/dist/components/layout/Canvas.mjs +1 -1
  125. package/dist/components/layout/Canvas.mjs.map +1 -1
  126. package/dist/components/layout/Canvas.vue_vue_type_script_setup_true_lang.cjs +1 -1
  127. package/dist/components/layout/Canvas.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  128. package/dist/components/layout/Canvas.vue_vue_type_script_setup_true_lang.mjs +1 -1
  129. package/dist/components/layout/Canvas.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  130. package/dist/components/layout/PopoverPanel.cjs +1 -1
  131. package/dist/components/layout/PopoverPanel.cjs.map +1 -1
  132. package/dist/components/layout/PopoverPanel.mjs +1 -1
  133. package/dist/components/layout/PopoverPanel.mjs.map +1 -1
  134. package/dist/components/layout/PopoverPanel.vue_vue_type_script_setup_true_lang.cjs +1 -1
  135. package/dist/components/layout/PopoverPanel.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  136. package/dist/components/layout/PopoverPanel.vue_vue_type_script_setup_true_lang.mjs +1 -1
  137. package/dist/components/layout/PopoverPanel.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  138. package/dist/components/layout/popover/PopoverTrigger.cjs.map +1 -1
  139. package/dist/components/layout/popover/PopoverTrigger.mjs.map +1 -1
  140. package/dist/components/layout/popover/PopoverTrigger.vue_vue_type_script_setup_true_lang.cjs +1 -1
  141. package/dist/components/layout/popover/PopoverTrigger.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  142. package/dist/components/layout/popover/PopoverTrigger.vue_vue_type_script_setup_true_lang.mjs +1 -1
  143. package/dist/components/layout/popover/PopoverTrigger.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  144. package/dist/components/navigation/DropdownMenu.cjs +1 -1
  145. package/dist/components/navigation/DropdownMenu.cjs.map +1 -1
  146. package/dist/components/navigation/DropdownMenu.mjs +1 -1
  147. package/dist/components/navigation/DropdownMenu.mjs.map +1 -1
  148. package/dist/components/navigation/DropdownMenu.vue_vue_type_script_setup_true_lang.cjs +1 -1
  149. package/dist/components/navigation/DropdownMenu.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  150. package/dist/components/navigation/DropdownMenu.vue_vue_type_script_setup_true_lang.mjs +1 -1
  151. package/dist/components/navigation/DropdownMenu.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  152. package/dist/components/navigation/Switcher.cjs.map +1 -1
  153. package/dist/components/navigation/Switcher.mjs.map +1 -1
  154. package/dist/components/navigation/Switcher.vue_vue_type_script_setup_true_lang.cjs +77 -45
  155. package/dist/components/navigation/Switcher.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  156. package/dist/components/navigation/Switcher.vue_vue_type_script_setup_true_lang.mjs +77 -45
  157. package/dist/components/navigation/Switcher.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  158. package/dist/components/navigation/menu/MenuTrigger.cjs.map +1 -1
  159. package/dist/components/navigation/menu/MenuTrigger.mjs.map +1 -1
  160. package/dist/components/navigation/menu/MenuTrigger.vue_vue_type_script_setup_true_lang.cjs +1 -1
  161. package/dist/components/navigation/menu/MenuTrigger.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  162. package/dist/components/navigation/menu/MenuTrigger.vue_vue_type_script_setup_true_lang.mjs +1 -1
  163. package/dist/components/navigation/menu/MenuTrigger.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  164. package/dist/composables/useField.cjs +28 -8
  165. package/dist/composables/useField.cjs.map +1 -1
  166. package/dist/composables/useField.mjs +28 -8
  167. package/dist/composables/useField.mjs.map +1 -1
  168. package/dist/config/ModoLocale.cjs +10 -1
  169. package/dist/config/ModoLocale.cjs.map +1 -1
  170. package/dist/config/ModoLocale.mjs +10 -1
  171. package/dist/config/ModoLocale.mjs.map +1 -1
  172. package/dist/config/locales/es.cjs +10 -1
  173. package/dist/config/locales/es.cjs.map +1 -1
  174. package/dist/config/locales/es.mjs +10 -1
  175. package/dist/config/locales/es.mjs.map +1 -1
  176. package/dist/index.cjs +4 -0
  177. package/dist/index.mjs +3 -1
  178. package/dist/mood-ui.css +293 -117
  179. package/dist/types/components/data-display/surface-card/SurfaceCardBody.vue.d.ts +1 -1
  180. package/dist/types/components/data-display/surface-card/SurfaceCardFooter.vue.d.ts +1 -1
  181. package/dist/types/components/data-display/surface-card/SurfaceCardHeader.vue.d.ts +1 -1
  182. package/dist/types/components/feedback/dialog/DialogContent.vue.d.ts +1 -1
  183. package/dist/types/components/feedback/tour/Tour.vue.d.ts +31 -0
  184. package/dist/types/components/feedback/tour/TourCard.vue.d.ts +25 -0
  185. package/dist/types/components/feedback/tour/index.d.ts +2 -0
  186. package/dist/types/components/feedback/tour/tourAnchor.d.ts +12 -0
  187. package/dist/types/components/feedback/tour/tourPlace.d.ts +60 -0
  188. package/dist/types/components/feedback/tour/tourShape.d.ts +36 -0
  189. package/dist/types/components/feedback/tour/useTourSpotlight.d.ts +14 -0
  190. package/dist/types/components/feedback/tour/useTourSteps.d.ts +31 -0
  191. package/dist/types/components/layout/Canvas.vue.d.ts +1 -1
  192. package/dist/types/components/layout/popover/PopoverContent.vue.d.ts +1 -1
  193. package/dist/types/components/navigation/menu/MenuContent.vue.d.ts +1 -1
  194. package/dist/types/composables/useField.d.ts +23 -0
  195. package/dist/types/config/ModoLocale.d.ts +14 -0
  196. package/dist/types/index.d.ts +2 -0
  197. package/dist/types/interfaces/feedback/Tour.interface.d.ts +73 -0
  198. package/dist/types/interfaces/navigation/Switcher.interface.d.ts +5 -0
  199. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.vue_vue_type_script_setup_true_lang.mjs","names":["$slots"],"sources":["../../../src/components/feedback/Drawer.vue"],"sourcesContent":["<template> \n <Teleport to=\"body\"> \n <Transition :css=\"false\" @enter=\"onOverlayEnter\" @leave=\"onOverlayLeave\" appear> \n <div \n v-if=\"modelValue\" \n ref=\"overlayRef\" \n :class=\"[ \n 'modo-drawer-overlay fixed inset-0 z-1200 flex opacity-0', \n inset ? 'p-2.5' : '', \n positionClasses, \n ]\" \n :style=\"overlayStyle\" \n :data-modo-theme=\"scopedTheme || undefined\" \n @mousedown=\"onOverlayMouseDown\" \n @click=\"onOverlayClick\" \n > \n <!-- Scrim (shared Valux material, dark veil in both modes) -->\n <div\n aria-hidden=\"true\"\n class=\"modo-scrim pointer-events-none absolute inset-0\"\n :data-modo-scrim=\"scrimVariant\"\n />\n <div \n ref=\"panelRef\" \n data-modo-drawer-panel \n role=\"dialog\" \n aria-modal=\"true\" \n :aria-labelledby=\"title ? titleId : undefined\" \n :aria-describedby=\"description ? descriptionId : undefined\" \n :aria-label=\"!title ? ariaLabel : undefined\" \n :class=\"[ \n 'modo-drawer modo-drawer-glass relative flex flex-col text-foreground overflow-hidden', \n 'outline-none focus:outline-none focus-visible:outline-none', \n sideBorderClass, \n sizeClasses, \n radiusClasses, \n ]\" \n tabindex=\"-1\" \n @click.stop \n @keydown=\"onPanelKeydown\" \n > \n <!-- Inner border layer --> \n <span \n v-if=\"innerBorder\" \n aria-hidden=\"true\" \n :class=\"[ \n 'pointer-events-none absolute inset-1 border border-border/40', \n innerBorderRadiusClass, \n ]\" \n /> \n \n <!-- Close button --> \n <div v-if=\"showClose\" class=\"absolute top-3 right-3.5 z-10\"> \n <button\n type=\"button\"\n class=\"modo-drawer__x\"\n :aria-label=\"closeLabelText\"\n @click=\"close\"\n >\n <svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\" focusable=\"false\">\n <path d=\"M4 4l8 8m0-8l-8 8\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" />\n </svg>\n </button>\n </div> \n \n <!-- Content wrapper --> \n <div ref=\"contentRef\" data-modo-drawer-content class=\"flex flex-col min-h-0 flex-1\"> \n <!-- Header --> \n <header \n v-if=\"$slots.header || title || description\" \n :class=\"[ \n 'relative flex flex-col gap-1 px-5 pt-5', \n showClose ? 'pr-14' : '', \n $slots.default || $slots.body || $slots.footer ? 'pb-4' : 'pb-6', \n ]\" \n > \n <slot name=\"header\"> \n <Typography \n v-if=\"title\" \n :id=\"titleId\" \n variant=\"title\" \n size=\"medium\" \n as=\"h2\" \n weight=\"semibold\" \n > \n {{ title }} \n </Typography> \n <Typography \n v-if=\"description\" \n :id=\"descriptionId\" \n variant=\"body\" \n size=\"small\" \n color=\"muted\" \n > \n {{ description }} \n </Typography> \n </slot> \n </header> \n \n <!-- Body --> \n <div \n v-if=\"$slots.default || $slots.body\" \n :class=\"[ \n 'relative flex-1 overflow-auto px-5', \n ($slots.header || title || description) ? '' : 'pt-5', \n $slots.footer ? 'pb-4' : 'pb-6', \n ]\" \n > \n <slot name=\"body\"> \n <slot /> \n </slot> \n </div> \n \n <!-- Footer --> \n <footer \n v-if=\"$slots.footer\" \n class=\"relative flex items-center justify-end gap-2 px-5 py-4\" \n > \n <span \n v-if=\"innerBorder\" \n aria-hidden=\"true\" \n class=\"pointer-events-none absolute top-0 left-1 right-1 h-px bg-border/40\" \n /> \n <span \n v-else \n aria-hidden=\"true\" \n class=\"pointer-events-none absolute top-0 left-0 right-0 h-px bg-border\" \n /> \n <slot name=\"footer\" :close=\"close\" /> \n </footer> \n </div> \n </div> \n </div> \n </Transition> \n </Teleport> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed, nextTick, onBeforeUnmount, ref, useId, watch } from 'vue'; \nimport { gsap } from 'gsap'; \nimport Typography from '../data-display/Typography.vue'; \nimport type { Drawer } from '../../interfaces/feedback/Drawer.interface'; \nimport { \n useResolvedRadius, \n useResolvedTheme, \n useModoConfig, \n useModoLocale,\n} from '../../composables/useModoConfig'; \nimport { resolveColorMode } from '../../composables/useColorMode';\nimport { lockBodyScroll, unlockBodyScroll } from '../../composables/useBodyScrollLock';\nimport { palettesToCssVars, semanticTokensFromPalettes } from '../../config/palettes'; \nimport { hexToOklchString, pickForegroundOklch } from '../../config/colorPrimitives'; \nimport { surfacesToCssVars } from '../../config/surfaces';\nimport type { ModoRadius } from '../../config/ModoConfig'; \n \nconst props = withDefaults(defineProps<Drawer>(), { \n modelValue: false, \n side: 'right', \n size: 'medium', \n inset: true,\n closeOnOverlay: true, \n closeOnEscape: true, \n showClose: true, \n lockScroll: true, \n color: 'default', \n overlay: 'blur', \n innerBorder: false, \n});\n// Close button label: prop wins, then the provider locale (`common.close`).\nconst loc = useModoLocale();\nconst closeLabelText = computed(() => props.closeLabel ?? loc.value.common.close);\n \n \nconst emit = defineEmits<{ \n 'update:modelValue': [value: boolean]; \n open: []; \n close: []; \n afterLeave: []; \n}>(); \n \nconst autoId = useId(); \nconst titleId = computed(() => `modo-drawer-${autoId}-title`); \nconst descriptionId = computed(() => `modo-drawer-${autoId}-desc`); \n \nconst overlayRef = ref<HTMLElement | null>(null); \nconst panelRef = ref<HTMLElement | null>(null); \nconst contentRef = ref<HTMLElement | null>(null); \n \nconst resolvedRadius = useResolvedRadius(() => props.radius as ModoRadius | undefined); \n \nconst cfg = useModoConfig(); \nconst theme = useResolvedTheme(); \nconst scopedTheme = computed(() => resolveColorMode(theme.value)); \n \nconst overlayStyle = 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 }; \n}); \n \nfunction close() { \n if (!props.modelValue) return; \n emit('update:modelValue', false); \n emit('close'); \n} \n \n/* ---------- Click outside ---------- */ \nlet mouseDownOnOverlay = false; \nfunction onOverlayMouseDown(e: MouseEvent) { \n mouseDownOnOverlay = e.target === overlayRef.value; \n} \nfunction onOverlayClick(e: MouseEvent) { \n if (!props.closeOnOverlay) return; \n if (e.target !== overlayRef.value) return; \n if (!mouseDownOnOverlay) return; \n close(); \n} \n \n/* ---------- Keydown (Escape + focus trap) ---------- */ \nfunction onPanelKeydown(e: KeyboardEvent) { \n if (props.closeOnEscape && e.key === 'Escape') { \n e.preventDefault(); \n close(); \n return; \n } \n if (e.key === 'Tab' && panelRef.value) { \n const focusables = getFocusable(panelRef.value); \n if (focusables.length === 0) { \n e.preventDefault(); \n return; \n } \n const first = focusables[0]; \n const last = focusables[focusables.length - 1]; \n const active = document.activeElement as HTMLElement | null; \n if (e.shiftKey && active === first) { \n e.preventDefault(); \n last.focus(); \n } else if (!e.shiftKey && active === last) { \n e.preventDefault(); \n first.focus(); \n } \n } \n} \n \nconst FOCUSABLE_SELECTOR = \n 'a[href], area[href], input:not([disabled]):not([type=\"hidden\"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, [tabindex]:not([tabindex=\"-1\"]), [contenteditable=\"true\"]'; \n \nfunction getFocusable(container: HTMLElement): HTMLElement[] { \n return Array.from(container.querySelectorAll<HTMLElement>(FOCUSABLE_SELECTOR)) \n .filter((el) => !el.hasAttribute('disabled') && el.offsetParent !== null); \n} \n \n/* ---------- Animations (slide from edge) ---------- */ \n \nfunction prefersReducedMotion() { \n return typeof window !== 'undefined' \n && window.matchMedia('(prefers-reduced-motion: reduce)').matches; \n} \n \nlet activeTimeline: gsap.core.Timeline | null = null; \n \nfunction getEnterTransform() { \n const marginOffset = props.inset ? 28 : 0;\n switch (props.side) { \n case 'left': return { xPercent: -100, x: -marginOffset, yPercent: 0, y: 0 }; \n case 'right': return { xPercent: 100, x: marginOffset, yPercent: 0, y: 0 }; \n case 'top': return { xPercent: 0, x: 0, yPercent: -100, y: -marginOffset }; \n case 'bottom': return { xPercent: 0, x: 0, yPercent: 100, y: marginOffset }; \n default: return { xPercent: 100, x: marginOffset, yPercent: 0, y: 0 }; \n } \n} \n \nfunction onOverlayEnter(el: Element, done: () => void) { \n const overlay = (el as HTMLElement) ?? overlayRef.value; \n const panel = \n overlay?.querySelector<HTMLElement>('[data-modo-drawer-panel]') \n ?? panelRef.value; \n if (!overlay || !panel) { done(); return; } \n \n activeTimeline?.kill(); \n \n if (prefersReducedMotion()) { \n gsap.set([overlay, panel], { opacity: 1, clearProps: 'transform' }); \n done(); \n return; \n } \n \n const enter = getEnterTransform(); \n const tl = gsap.timeline({ onComplete: () => { activeTimeline = null; done(); } }); \n activeTimeline = tl; \n \n tl.fromTo(overlay, { opacity: 0 }, { opacity: 1, duration: 0.24, ease: 'power2.out' }, 0); \n \n tl.fromTo( \n panel, \n { xPercent: enter.xPercent, x: enter.x, yPercent: enter.yPercent, y: enter.y, opacity: 1 }, \n { xPercent: 0, x: 0, yPercent: 0, y: 0, opacity: 1, duration: 0.38, ease: 'power4.out' }, \n 0, \n ); \n} \n \nfunction onOverlayLeave(el: Element, done: () => void) { \n const overlay = el as HTMLElement; \n const panel = \n overlay.querySelector<HTMLElement>('[data-modo-drawer-panel]') \n ?? panelRef.value; \n // Bail out without animating, but never without releasing the lock.\n if (!overlay || !panel) { releaseScrollLock(); done(); return; }\n \n activeTimeline?.kill(); \n \n if (prefersReducedMotion()) { \n gsap.to(overlay, { \n opacity: 0, \n duration: 0.12, \n onComplete: () => { releaseScrollLock(); done(); }, \n }); \n return; \n } \n \n const enter = getEnterTransform(); \n const tl = gsap.timeline({ \n onComplete: () => { \n activeTimeline = null; \n releaseScrollLock(); \n done(); \n }, \n }); \n activeTimeline = tl; \n \n tl.to( \n panel, \n { xPercent: enter.xPercent, x: enter.x, yPercent: enter.yPercent, y: enter.y, duration: 0.28, ease: 'power3.in' }, \n 0, \n ); \n tl.to(overlay, { opacity: 0, duration: 0.24, ease: 'power2.in' }, 0.04); \n} \n \n/* ---------- Scroll lock + focus management ---------- */\nlet previouslyFocused: HTMLElement | null = null;\nlet scrollLocked = false;\n\nfunction releaseScrollLock() {\n if (!scrollLocked) return;\n scrollLocked = false;\n unlockBodyScroll();\n}\n\nwatch( \n () => props.modelValue, \n (open) => { \n if (open) { \n const active = document.activeElement as HTMLElement | null; \n previouslyFocused = active; \n \n if (props.lockScroll && !scrollLocked) {\n scrollLocked = true;\n lockBodyScroll();\n }\n emit('open'); \n nextTick(() => { \n if (!panelRef.value) return; \n const focusables = getFocusable(panelRef.value); \n (focusables[0] ?? panelRef.value).focus(); \n }); \n } else { \n if (previouslyFocused && typeof previouslyFocused.focus === 'function') { \n previouslyFocused.focus(); \n } \n previouslyFocused = null; \n emit('afterLeave'); \n } \n }, \n); \n \nonBeforeUnmount(() => { \n activeTimeline?.kill(); \n releaseScrollLock(); \n}); \n \n/* ---------- Style maps ---------- */ \n \nconst isHorizontal = computed(() => props.side === 'left' || props.side === 'right'); \n \nconst positionClasses = computed(() => { \n switch (props.side) { \n case 'left': return 'flex-row items-stretch justify-start'; \n case 'right': return 'flex-row items-stretch justify-end'; \n case 'top': return 'flex-col items-stretch justify-start'; \n case 'bottom': return 'flex-col items-stretch justify-end'; \n default: return 'flex-row items-stretch justify-end'; \n } \n}); \n \nconst sizeClasses = computed(() => { \n if (isHorizontal.value) { \n if (props.inset) {\n const baseCls = 'h-full max-h-full max-w-full';\n switch (props.size) { \n case 'xsmall': return `${baseCls} w-[16rem]`; \n case 'small': return `${baseCls} w-[18rem]`; \n case 'large': return `${baseCls} w-[28rem]`; \n case 'full': return `${baseCls} w-full`; \n default: return `${baseCls} w-[22rem]`; \n }\n }\n const heightCls = 'h-full'; \n switch (props.size) { \n case 'xsmall': return `${heightCls} w-[17rem] max-w-[88vw]`; \n case 'small': return `${heightCls} w-[20rem] max-w-[90vw]`; \n case 'large': return `${heightCls} w-[36rem] max-w-[95vw]`; \n case 'full': return `${heightCls} w-screen`; \n default: return `${heightCls} w-[28rem] max-w-[92vw]`; \n } \n } else { \n if (props.inset) {\n const baseCls = 'w-full max-w-full max-h-full';\n switch (props.size) { \n case 'xsmall': return `${baseCls} h-[14rem]`; \n case 'small': return `${baseCls} h-[18rem]`; \n case 'large': return `${baseCls} h-[32rem] sm:max-h-[88dvh]`; \n case 'full': return `${baseCls} h-full`; \n default: return `${baseCls} h-[24rem] sm:max-h-[85dvh]`; \n }\n }\n const widthCls = 'w-full'; \n switch (props.size) { \n case 'xsmall': return `${widthCls} h-[14rem] max-h-[75vh]`; \n case 'small': return `${widthCls} h-[18rem] max-h-[80vh]`; \n case 'large': return `${widthCls} h-[32rem] max-h-[90vh]`; \n case 'full': return `${widthCls} h-screen`; \n default: return `${widthCls} h-[24rem] max-h-[85vh]`; \n } \n } \n}); \n \nconst sideBorderClass = computed(() => { \n if (props.inset) return 'border';\n switch (props.side) { \n case 'left': return 'border-r'; \n case 'right': return 'border-l'; \n case 'top': return 'border-b'; \n case 'bottom': return 'border-t'; \n default: return 'border-l'; \n } \n}); \n \n/** \n * Cuando `inset` está activo (default), el panel flota despegado en sus 4 lados\n * y redondea las 4 esquinas respetando `radius`. Si `inset=false`, solo redondea\n * las dos esquinas internas al viewport.\n */ \nconst radiusClasses = computed(() => { \n if (props.inset) {\n // Same radius scale as Sheet / Dialog (--modo-dialog-radius).\n switch (resolvedRadius.value) {\n case 'none': return 'rounded-none';\n case 'small': return 'rounded-[0.5rem]';\n case 'large': return 'rounded-[1.25rem]';\n case 'full': return 'rounded-[1.75rem]';\n default: return 'rounded-[0.875rem]';\n }\n }\n if (props.size === 'full') return 'rounded-none'; \n const map = { \n none: { \n left: 'rounded-none', right: 'rounded-none', \n top: 'rounded-none', bottom: 'rounded-none', \n }, \n small: { \n left: 'rounded-r-md', right: 'rounded-l-md', \n top: 'rounded-b-md', bottom: 'rounded-t-md', \n }, \n medium: { \n left: 'rounded-r-xl', right: 'rounded-l-xl', \n top: 'rounded-b-xl', bottom: 'rounded-t-xl', \n }, \n large: { \n left: 'rounded-r-2xl', right: 'rounded-l-2xl', \n top: 'rounded-b-2xl', bottom: 'rounded-t-2xl', \n }, \n full: { \n left: 'rounded-r-3xl', right: 'rounded-l-3xl', \n top: 'rounded-b-3xl', bottom: 'rounded-t-3xl', \n }, \n } as const; \n const r = (resolvedRadius.value ?? 'medium') as keyof typeof map; \n const safeR = map[r] ? r : 'medium'; \n return map[safeR][props.side]; \n}); \n \nconst innerBorderRadiusClass = computed(() => { \n if (!props.inset && props.size === 'full') return 'rounded-none'; \n switch (resolvedRadius.value) { \n case 'none': return 'rounded-none'; \n case 'small': return 'rounded-[calc(0.5rem-4px)]';\n case 'large': return 'rounded-[calc(1.25rem-4px)]';\n case 'full': return 'rounded-[calc(1.75rem-4px)]';\n default: return 'rounded-[calc(0.875rem-4px)]'; \n } \n}); \n \nconst scrimVariant = computed(() => props.overlay ?? 'blur'); \n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8PA,IAAM,qBACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EApGJ,MAAM,QAAQ;EAcd,MAAM,MAAM,eAAe;EAC3B,MAAM,iBAAiB,eAAe,MAAM,cAAc,IAAI,MAAM,OAAO,MAAM;EAGjF,MAAM,OAAO;EAOb,MAAM,SAAS,OAAO;EACtB,MAAM,UAAU,eAAe,eAAe,OAAO,QAAQ;EAC7D,MAAM,gBAAgB,eAAe,eAAe,OAAO,OAAO;EAElE,MAAM,aAAa,IAAwB,KAAK;EAChD,MAAM,WAAW,IAAwB,KAAK;EAC9C,MAAM,aAAa,IAAwB,KAAK;EAEhD,MAAM,iBAAiB,wBAAwB,MAAM,OAAiC;EAEtF,MAAM,MAAM,eAAe;EAC3B,MAAM,QAAQ,kBAAkB;EAChC,MAAM,cAAc,eAAe,iBAAiB,MAAM,MAAM,CAAC;EAEjE,MAAM,eAAe,eAAe;GAChC,MAAM,eAAe,KAAK,MAAM,WAC1B;IACE,GAAG,kBAAkB,IAAI,MAAM,SAAS;IACxC,GAAG,2BAA2B,IAAI,MAAM,UAAU,kBAAkB,oBAAoB;IAC3F,GACC,EAAE;GACR,MAAM,cAAc,KAAK,MAAM,WACzB,kBAAkB,IAAI,MAAM,SAAQ,GACpC,EAAE;GACR,MAAM,kBAAmB,YAAY,UAAU,UAAU,KAAK,MAAM,eAC9D,kBAAkB,I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AAA,OAAO,QAAQA,KAAAA,OAAO,SAAM,SAAA;;UAM/N,WAoBO,KAAA,QAAA,UAAA,EAAA,QAAA,CAlBO,QAAA,SAAA,WAAA,EADV,YASa,oBAAA;;OAPR,IAAI,QAAA;OACL,SAAQ;OACR,MAAK;OACL,IAAG;OACH,QAAO;;8BAEI,CAAA,gBAAA,gBAAR,QAAA,MAAK,EAAA,EAAA,CAAA,CAAA;;qDAGF,QAAA,eAAA,WAAA,EADV,YAQa,oBAAA;;OANR,IAAI,cAAA;OACL,SAAQ;OACR,MAAK;OACL,OAAM;;8BAEW,CAAA,gBAAA,gBAAd,QAAA,YAAW,EAAA,EAAA,CAAA,CAAA;;;MAOhBA,KAAAA,OAAO,WAAWA,KAAAA,OAAO,QAAA,WAAA,EADnC,mBAWM,OAAA;;OATD,OAAK,eAAA;;QAA6GA,KAAAA,OAAO,UAAU,QAAA,SAAS,QAAA,cAAW,KAAA;QAAkDA,KAAAA,OAAO,SAAM,SAAA;;UAMvN,WAEO,KAAA,QAAA,QAAA,EAAA,QAAA,CADH,WAAQ,KAAA,QAAA,UAAA,CAAA,CAAA,CAAA,EAAA,EAAA,IAAA,mBAAA,IAAA,KAAA;MAMNA,KAAAA,OAAO,UAAA,WAAA,EADjB,mBAeS,UAfT,YAeS,CAVK,QAAA,eAAA,WAAA,EADV,mBAIE,QAJF,WAIE,KAAA,WAAA,EACF,mBAIE,QAJF,WAIE,GACF,WAAqC,KAAA,QAAA,UAAA,EAAT,OAAK,CAAA,CAAA,CAAA,IAAA,mBAAA,IAAA,KAAA"}
1
+ {"version":3,"file":"Drawer.vue_vue_type_script_setup_true_lang.mjs","names":["$slots"],"sources":["../../../src/components/feedback/Drawer.vue"],"sourcesContent":["<template> \n <Teleport to=\"body\"> \n <Transition :css=\"false\" @enter=\"onOverlayEnter\" @leave=\"onOverlayLeave\" appear> \n <div \n v-if=\"modelValue\" \n ref=\"overlayRef\" \n :class=\"[ \n 'modo-drawer-overlay fixed inset-0 z-1200 flex opacity-0', \n inset ? 'p-2.5' : '', \n positionClasses, \n ]\" \n :style=\"overlayStyle\" \n :data-modo-theme=\"scopedTheme || undefined\" \n @mousedown=\"onOverlayMouseDown\" \n @click=\"onOverlayClick\" \n > \n <!-- Scrim (shared Valux material, dark veil in both modes) -->\n <div\n aria-hidden=\"true\"\n class=\"modo-scrim pointer-events-none absolute inset-0\"\n :data-modo-scrim=\"scrimVariant\"\n />\n <div \n ref=\"panelRef\" \n data-modo-drawer-panel \n role=\"dialog\" \n aria-modal=\"true\" \n :aria-labelledby=\"title ? titleId : undefined\" \n :aria-describedby=\"description ? descriptionId : undefined\" \n :aria-label=\"!title ? ariaLabel : undefined\" \n :class=\"[ \n 'modo-drawer modo-drawer-glass relative flex flex-col text-foreground overflow-hidden', \n 'outline-none focus:outline-none focus-visible:outline-none', \n sideBorderClass, \n sizeClasses, \n radiusClasses, \n ]\" \n tabindex=\"-1\" \n @click.stop \n @keydown=\"onPanelKeydown\" \n > \n <!-- Inner border layer --> \n <span \n v-if=\"innerBorder\" \n aria-hidden=\"true\" \n :class=\"[ \n 'pointer-events-none absolute inset-1 border border-border/40', \n innerBorderRadiusClass, \n ]\" \n /> \n \n <!-- Close button --> \n <div v-if=\"showClose\" class=\"absolute top-3 right-3.5 z-10\"> \n <button\n type=\"button\"\n class=\"modo-drawer__x\"\n :aria-label=\"closeLabelText\"\n @click=\"close\"\n >\n <svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\" focusable=\"false\">\n <path d=\"M4 4l8 8m0-8l-8 8\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" />\n </svg>\n </button>\n </div> \n \n <!-- Content wrapper --> \n <div ref=\"contentRef\" data-modo-drawer-content class=\"flex flex-col min-h-0 flex-1\"> \n <!-- Header --> \n <header \n v-if=\"$slots.header || title || description\" \n :class=\"[ \n 'relative flex flex-col gap-1 px-5 pt-5', \n showClose ? 'pr-14' : '', \n $slots.default || $slots.body || $slots.footer ? 'pb-4' : 'pb-6', \n ]\" \n > \n <slot name=\"header\"> \n <Typography \n v-if=\"title\" \n :id=\"titleId\" \n variant=\"title\" \n size=\"medium\" \n as=\"h2\" \n weight=\"semibold\" \n > \n {{ title }} \n </Typography> \n <Typography \n v-if=\"description\" \n :id=\"descriptionId\" \n variant=\"body\" \n size=\"small\" \n color=\"muted\" \n > \n {{ description }} \n </Typography> \n </slot> \n </header> \n \n <!-- Body --> \n <div \n v-if=\"$slots.default || $slots.body\" \n :class=\"[ \n 'relative flex-1 overflow-auto px-5', \n ($slots.header || title || description) ? '' : 'pt-5', \n $slots.footer ? 'pb-4' : 'pb-6', \n ]\" \n > \n <slot name=\"body\"> \n <slot /> \n </slot> \n </div> \n \n <!-- Footer --> \n <footer \n v-if=\"$slots.footer\" \n class=\"relative flex items-center justify-end gap-2 px-5 py-4\" \n > \n <span \n v-if=\"innerBorder\" \n aria-hidden=\"true\" \n class=\"pointer-events-none absolute top-0 left-1 right-1 h-px bg-border/40\" \n /> \n <span \n v-else \n aria-hidden=\"true\" \n class=\"pointer-events-none absolute top-0 left-0 right-0 h-px bg-border\" \n /> \n <slot name=\"footer\" :close=\"close\" /> \n </footer> \n </div> \n </div> \n </div> \n </Transition> \n </Teleport> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed, nextTick, onBeforeUnmount, ref, useId, watch } from 'vue'; \nimport { gsap } from 'gsap'; \nimport Typography from '../data-display/Typography.vue'; \nimport type { Drawer } from '../../interfaces/feedback/Drawer.interface'; \nimport { \n useResolvedRadius, \n useResolvedTheme, \n useModoConfig, \n useModoLocale,\n} from '../../composables/useModoConfig'; \nimport { resolveColorMode } from '../../composables/useColorMode';\nimport { lockBodyScroll, unlockBodyScroll } from '../../composables/useBodyScrollLock';\nimport { palettesToCssVars, semanticTokensFromPalettes } from '../../config/palettes'; \nimport { hexToOklchString, pickForegroundOklch } from '../../config/colorPrimitives'; \nimport { surfacesToCssVars } from '../../config/surfaces';\nimport type { ModoRadius } from '../../config/ModoConfig'; \n \nconst props = withDefaults(defineProps<Drawer>(), { \n modelValue: false, \n side: 'right', \n size: 'medium', \n inset: true,\n closeOnOverlay: true, \n closeOnEscape: true, \n showClose: true, \n lockScroll: true, \n color: 'default', \n overlay: 'blur', \n innerBorder: false, \n});\n// Close button label: prop wins, then the provider locale (`common.close`).\nconst loc = useModoLocale();\nconst closeLabelText = computed(() => props.closeLabel ?? loc.value.common.close);\n \n \nconst emit = defineEmits<{ \n 'update:modelValue': [value: boolean]; \n open: []; \n close: []; \n afterLeave: []; \n}>(); \n \nconst autoId = useId(); \nconst titleId = computed(() => `modo-drawer-${autoId}-title`); \nconst descriptionId = computed(() => `modo-drawer-${autoId}-desc`); \n \nconst overlayRef = ref<HTMLElement | null>(null); \nconst panelRef = ref<HTMLElement | null>(null); \nconst contentRef = ref<HTMLElement | null>(null); \n \nconst resolvedRadius = useResolvedRadius(() => props.radius as ModoRadius | undefined); \n \nconst cfg = useModoConfig(); \nconst theme = useResolvedTheme(); \nconst scopedTheme = computed(() => resolveColorMode(theme.value)); \n \nconst overlayStyle = 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 }; \n}); \n \nfunction close() { \n if (!props.modelValue) return; \n emit('update:modelValue', false); \n emit('close'); \n} \n \n/* ---------- Click outside ---------- */ \nlet mouseDownOnOverlay = false; \nfunction onOverlayMouseDown(e: MouseEvent) { \n mouseDownOnOverlay = e.target === overlayRef.value; \n} \nfunction onOverlayClick(e: MouseEvent) { \n if (!props.closeOnOverlay) return; \n if (e.target !== overlayRef.value) return; \n if (!mouseDownOnOverlay) return; \n close(); \n} \n \n/* ---------- Keydown (Escape + focus trap) ---------- */ \nfunction onPanelKeydown(e: KeyboardEvent) { \n if (props.closeOnEscape && e.key === 'Escape') { \n e.preventDefault(); \n close(); \n return; \n } \n if (e.key === 'Tab' && panelRef.value) { \n const focusables = getFocusable(panelRef.value); \n if (focusables.length === 0) { \n e.preventDefault(); \n return; \n } \n const first = focusables[0]; \n const last = focusables[focusables.length - 1]; \n const active = document.activeElement as HTMLElement | null; \n if (e.shiftKey && active === first) { \n e.preventDefault(); \n last.focus(); \n } else if (!e.shiftKey && active === last) { \n e.preventDefault(); \n first.focus(); \n } \n } \n} \n \nconst FOCUSABLE_SELECTOR = \n 'a[href], area[href], input:not([disabled]):not([type=\"hidden\"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, [tabindex]:not([tabindex=\"-1\"]), [contenteditable=\"true\"]'; \n \nfunction getFocusable(container: HTMLElement): HTMLElement[] { \n return Array.from(container.querySelectorAll<HTMLElement>(FOCUSABLE_SELECTOR)) \n .filter((el) => !el.hasAttribute('disabled') && el.offsetParent !== null); \n} \n \n/* ---------- Animations (slide from edge) ---------- */ \n \nfunction prefersReducedMotion() { \n return typeof window !== 'undefined' \n && window.matchMedia('(prefers-reduced-motion: reduce)').matches; \n} \n \nlet activeTimeline: gsap.core.Timeline | null = null; \n \nfunction getEnterTransform() { \n const marginOffset = props.inset ? 28 : 0;\n switch (props.side) { \n case 'left': return { xPercent: -100, x: -marginOffset, yPercent: 0, y: 0 }; \n case 'right': return { xPercent: 100, x: marginOffset, yPercent: 0, y: 0 }; \n case 'top': return { xPercent: 0, x: 0, yPercent: -100, y: -marginOffset }; \n case 'bottom': return { xPercent: 0, x: 0, yPercent: 100, y: marginOffset }; \n default: return { xPercent: 100, x: marginOffset, yPercent: 0, y: 0 }; \n } \n} \n \nfunction onOverlayEnter(el: Element, done: () => void) { \n const overlay = (el as HTMLElement) ?? overlayRef.value; \n const panel = \n overlay?.querySelector<HTMLElement>('[data-modo-drawer-panel]') \n ?? panelRef.value; \n if (!overlay || !panel) { done(); return; } \n \n activeTimeline?.kill(); \n \n if (prefersReducedMotion()) { \n gsap.set([overlay, panel], { opacity: 1, clearProps: 'transform' }); \n done(); \n return; \n } \n \n const enter = getEnterTransform(); \n const tl = gsap.timeline({ onComplete: () => { activeTimeline = null; done(); } }); \n activeTimeline = tl; \n \n tl.fromTo(overlay, { opacity: 0 }, { opacity: 1, duration: 0.24, ease: 'power2.out' }, 0); \n \n tl.fromTo( \n panel, \n { xPercent: enter.xPercent, x: enter.x, yPercent: enter.yPercent, y: enter.y, opacity: 1 }, \n { xPercent: 0, x: 0, yPercent: 0, y: 0, opacity: 1, duration: 0.38, ease: 'power4.out' }, \n 0, \n ); \n} \n \nfunction onOverlayLeave(el: Element, done: () => void) { \n const overlay = el as HTMLElement; \n const panel = \n overlay.querySelector<HTMLElement>('[data-modo-drawer-panel]') \n ?? panelRef.value; \n // Bail out without animating, but never without releasing the lock.\n if (!overlay || !panel) { releaseScrollLock(); done(); return; }\n \n activeTimeline?.kill(); \n \n if (prefersReducedMotion()) { \n gsap.to(overlay, { \n opacity: 0, \n duration: 0.12, \n onComplete: () => { releaseScrollLock(); done(); }, \n }); \n return; \n } \n \n const enter = getEnterTransform(); \n const tl = gsap.timeline({ \n onComplete: () => { \n activeTimeline = null; \n releaseScrollLock(); \n done(); \n }, \n }); \n activeTimeline = tl; \n \n tl.to( \n panel, \n { xPercent: enter.xPercent, x: enter.x, yPercent: enter.yPercent, y: enter.y, duration: 0.28, ease: 'power3.in' }, \n 0, \n ); \n tl.to(overlay, { opacity: 0, duration: 0.24, ease: 'power2.in' }, 0.04); \n} \n \n/* ---------- Scroll lock + focus management ---------- */\nlet previouslyFocused: HTMLElement | null = null;\nlet scrollLocked = false;\n\nfunction releaseScrollLock() {\n if (!scrollLocked) return;\n scrollLocked = false;\n unlockBodyScroll();\n}\n\nwatch( \n () => props.modelValue, \n (open) => { \n if (open) { \n const active = document.activeElement as HTMLElement | null; \n previouslyFocused = active; \n \n if (props.lockScroll && !scrollLocked) {\n scrollLocked = true;\n lockBodyScroll();\n }\n emit('open'); \n nextTick(() => { \n if (!panelRef.value) return; \n const focusables = getFocusable(panelRef.value); \n (focusables[0] ?? panelRef.value).focus(); \n }); \n } else { \n if (previouslyFocused && typeof previouslyFocused.focus === 'function') { \n previouslyFocused.focus(); \n } \n previouslyFocused = null; \n emit('afterLeave'); \n } \n }, \n); \n \nonBeforeUnmount(() => { \n activeTimeline?.kill(); \n releaseScrollLock(); \n}); \n \n/* ---------- Style maps ---------- */ \n \nconst isHorizontal = computed(() => props.side === 'left' || props.side === 'right'); \n \nconst positionClasses = computed(() => { \n switch (props.side) { \n case 'left': return 'flex-row items-stretch justify-start'; \n case 'right': return 'flex-row items-stretch justify-end'; \n case 'top': return 'flex-col items-stretch justify-start'; \n case 'bottom': return 'flex-col items-stretch justify-end'; \n default: return 'flex-row items-stretch justify-end'; \n } \n}); \n \nconst sizeClasses = computed(() => { \n if (isHorizontal.value) { \n if (props.inset) {\n const baseCls = 'h-full max-h-full max-w-full';\n switch (props.size) { \n case 'xsmall': return `${baseCls} w-[16rem]`; \n case 'small': return `${baseCls} w-[18rem]`; \n case 'large': return `${baseCls} w-[28rem]`; \n case 'full': return `${baseCls} w-full`; \n default: return `${baseCls} w-[22rem]`; \n }\n }\n const heightCls = 'h-full'; \n switch (props.size) { \n case 'xsmall': return `${heightCls} w-[17rem] max-w-[88vw]`; \n case 'small': return `${heightCls} w-[20rem] max-w-[90vw]`; \n case 'large': return `${heightCls} w-[36rem] max-w-[95vw]`; \n case 'full': return `${heightCls} w-screen`; \n default: return `${heightCls} w-[28rem] max-w-[92vw]`; \n } \n } else { \n if (props.inset) {\n const baseCls = 'w-full max-w-full max-h-full';\n switch (props.size) { \n case 'xsmall': return `${baseCls} h-[14rem]`; \n case 'small': return `${baseCls} h-[18rem]`; \n case 'large': return `${baseCls} h-[32rem] sm:max-h-[88dvh]`; \n case 'full': return `${baseCls} h-full`; \n default: return `${baseCls} h-[24rem] sm:max-h-[85dvh]`; \n }\n }\n const widthCls = 'w-full'; \n switch (props.size) { \n case 'xsmall': return `${widthCls} h-[14rem] max-h-[75vh]`; \n case 'small': return `${widthCls} h-[18rem] max-h-[80vh]`; \n case 'large': return `${widthCls} h-[32rem] max-h-[90vh]`; \n case 'full': return `${widthCls} h-screen`; \n default: return `${widthCls} h-[24rem] max-h-[85vh]`; \n } \n } \n}); \n \nconst sideBorderClass = computed(() => { \n if (props.inset) return 'border';\n switch (props.side) { \n case 'left': return 'border-r'; \n case 'right': return 'border-l'; \n case 'top': return 'border-b'; \n case 'bottom': return 'border-t'; \n default: return 'border-l'; \n } \n}); \n \n/** \n * Cuando `inset` está activo (default), el panel flota despegado en sus 4 lados\n * y redondea las 4 esquinas respetando `radius`. Si `inset=false`, solo redondea\n * las dos esquinas internas al viewport.\n */ \nconst radiusClasses = computed(() => { \n if (props.inset) {\n // Same radius scale as Sheet / Dialog (--modo-dialog-radius).\n switch (resolvedRadius.value) {\n case 'none': return 'rounded-none';\n case 'small': return 'rounded-[0.5rem]';\n case 'large': return 'rounded-[1.25rem]';\n case 'full': return 'rounded-[1.75rem]';\n default: return 'rounded-[0.875rem]';\n }\n }\n if (props.size === 'full') return 'rounded-none'; \n const map = { \n none: { \n left: 'rounded-none', right: 'rounded-none', \n top: 'rounded-none', bottom: 'rounded-none', \n }, \n small: { \n left: 'rounded-r-md', right: 'rounded-l-md', \n top: 'rounded-b-md', bottom: 'rounded-t-md', \n }, \n medium: { \n left: 'rounded-r-xl', right: 'rounded-l-xl', \n top: 'rounded-b-xl', bottom: 'rounded-t-xl', \n }, \n large: { \n left: 'rounded-r-2xl', right: 'rounded-l-2xl', \n top: 'rounded-b-2xl', bottom: 'rounded-t-2xl', \n }, \n full: { \n left: 'rounded-r-3xl', right: 'rounded-l-3xl', \n top: 'rounded-b-3xl', bottom: 'rounded-t-3xl', \n }, \n } as const; \n const r = (resolvedRadius.value ?? 'medium') as keyof typeof map; \n const safeR = map[r] ? r : 'medium'; \n return map[safeR][props.side]; \n}); \n \nconst innerBorderRadiusClass = computed(() => { \n if (!props.inset && props.size === 'full') return 'rounded-none'; \n switch (resolvedRadius.value) { \n case 'none': return 'rounded-none'; \n case 'small': return 'rounded-[calc(0.5rem-4px)]';\n case 'large': return 'rounded-[calc(1.25rem-4px)]';\n case 'full': return 'rounded-[calc(1.75rem-4px)]';\n default: return 'rounded-[calc(0.875rem-4px)]'; \n } \n}); \n \nconst scrimVariant = computed(() => props.overlay ?? 'blur'); \n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8PA,IAAM,qBACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EApGJ,MAAM,QAAQ;EAcd,MAAM,MAAM,eAAe;EAC3B,MAAM,iBAAiB,eAAe,MAAM,cAAc,IAAI,MAAM,OAAO,MAAM;EAGjF,MAAM,OAAO;EAOb,MAAM,SAAS,OAAO;EACtB,MAAM,UAAU,eAAe,eAAe,OAAO,QAAQ;EAC7D,MAAM,gBAAgB,eAAe,eAAe,OAAO,OAAO;EAElE,MAAM,aAAa,IAAwB,KAAK;EAChD,MAAM,WAAW,IAAwB,KAAK;EAC9C,MAAM,aAAa,IAAwB,KAAK;EAEhD,MAAM,iBAAiB,wBAAwB,MAAM,OAAiC;EAEtF,MAAM,MAAM,eAAe;EAC3B,MAAM,QAAQ,kBAAkB;EAChC,MAAM,cAAc,eAAe,iBAAiB,MAAM,MAAM,CAAC;EAEjE,MAAM,eAAe,eAAe;GAChC,MAAM,eAAe,KAAK,MAAM,WAC1B;IACE,GAAG,kBAAkB,IAAI,MAAM,SAAS;IACxC,GAAG,2BAA2B,IAAI,MAAM,UAAU,kBAAkB,oBAAoB;IAC3F,GACC,EAAE;GACR,MAAM,cAAc,KAAK,MAAM,WACzB,kBAAkB,IAAI,MAAM,SAAQ,GACpC,EAAE;GACR,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AA;;QAAgH,QAAA,YAAS,UAAA;QAAkDA,KAAAA,OAAO,WAAWA,KAAAA,OAAO,QAAQA,KAAAA,OAAO,SAAM,SAAA;;UAM/N,WAoBO,KAAA,QAAA,UAAA,EAAA,QAAA,CAlBO,QAAA,SAAA,WAAA,EADV,YASa,oBAAA;;OAPR,IAAI,QAAA;OACL,SAAQ;OACR,MAAK;OACL,IAAG;OACH,QAAO;;8BAEI,CAAA,gBAAA,gBAAR,QAAA,MAAK,EAAA,EAAA,CAAA,CAAA;;qDAGF,QAAA,eAAA,WAAA,EADV,YAQa,oBAAA;;OANR,IAAI,cAAA;OACL,SAAQ;OACR,MAAK;OACL,OAAM;;8BAEW,CAAA,gBAAA,gBAAd,QAAA,YAAW,EAAA,EAAA,CAAA,CAAA;;;MAOhBA,KAAAA,OAAO,WAAWA,KAAAA,OAAO,QAAA,WAAA,EADnC,mBAWM,OAAA;;OATD,OAAK,eAAA;;QAA6GA,KAAAA,OAAO,UAAU,QAAA,SAAS,QAAA,cAAW,KAAA;QAAkDA,KAAAA,OAAO,SAAM,SAAA;;UAMvN,WAEO,KAAA,QAAA,QAAA,EAAA,QAAA,CADH,WAAQ,KAAA,QAAA,UAAA,CAAA,CAAA,CAAA,EAAA,EAAA,IAAA,mBAAA,IAAA,KAAA;MAMNA,KAAAA,OAAO,UAAA,WAAA,EADjB,mBAeS,UAfT,YAeS,CAVK,QAAA,eAAA,WAAA,EADV,mBAIE,QAJF,WAIE,KAAA,WAAA,EACF,mBAIE,QAJF,WAIE,GACF,WAAqC,KAAA,QAAA,UAAA,EAAT,OAAK,CAAA,CAAA,CAAA,IAAA,mBAAA,IAAA,KAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"EmptyState.cjs","names":[],"sources":["../../../src/components/feedback/EmptyState.vue"],"sourcesContent":["<template> \n <div :class=\"['modo-empty-state flex flex-col', alignClasses, paddingClasses, surfaceClasses, radiusClasses]\" role=\"status\"> \n <div v-if=\"resolvedIcon\" :class=\"['modo-empty-state-icon mb-3', iconWrapClasses]\"> \n <component :is=\"resolvedIcon\" :class=\"iconSizeClass\" aria-hidden=\"true\" /> \n </div> \n \n <Typography \n v-if=\"title\" \n :variant=\"titleVariant\" \n :size=\"titleSize\" \n as=\"h3\" \n weight=\"semibold\" \n :class=\"centered ? 'text-center' : ''\" \n > \n {{ title }} \n </Typography> \n \n <Typography \n v-if=\"description\" \n variant=\"body\" \n :size=\"descriptionSize\" \n color=\"muted\" \n as=\"p\" \n :class=\"['mt-1 max-w-prose', centered ? 'text-center' : '']\" \n > \n {{ description }} \n </Typography> \n \n <div v-if=\"$slots.actions\" :class=\"['modo-empty-state-actions mt-5 flex flex-wrap gap-2', centered ? 'justify-center' : '']\"> \n <slot name=\"actions\" /> \n </div> \n \n <div v-if=\"$slots.default\" :class=\"['modo-empty-state-content mt-4', centered ? 'text-center' : '']\"> \n <slot /> \n </div> \n </div> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed } from 'vue'; \nimport { InboxIcon } from '@heroicons/vue/24/outline'; \nimport Typography from '../data-display/Typography.vue'; \nimport type { EmptyState } from '../../interfaces/feedback/EmptyState.interface'; \nimport { useResolvedRadius, useResolvedSize } from '../../composables/useModoConfig'; \nimport type { ModoRadius } from '../../config/ModoConfig'; \n \nconst props = withDefaults(defineProps<EmptyState>(), { \n variant: 'subtle', \n centered: true, \n}); \n \nconst resolvedSize = useResolvedSize(() => props.size); \n \nconst resolvedRadius = useResolvedRadius(() => props.radius as ModoRadius | undefined); \n \n/* ------------------------------------------------------------------ */ \n/* Icon (default falls back to Inbox) */ \n/* ------------------------------------------------------------------ */ \n \nconst resolvedIcon = computed(() => props.icon ?? InboxIcon); \n \nconst iconSizeClass = computed(() => { \n switch (resolvedSize.value) { \n case 'small': return 'w-6 h-6'; \n case 'large': return 'w-12 h-12'; \n case 'medium': \n default: return 'w-9 h-9'; \n } \n}); \n \nconst iconWrapClasses = computed(() => { \n const base = 'inline-flex items-center justify-center text-muted-foreground'; \n if (resolvedSize.value === 'small') return [base, 'p-2 rounded-md bg-muted/60']; \n if (resolvedSize.value === 'large') return [base, 'p-4 rounded-xl bg-muted/60']; \n return [base, 'p-3 rounded-lg bg-muted/60']; \n}); \n \n/* ------------------------------------------------------------------ */ \n/* Typography sizing */ \n/* ------------------------------------------------------------------ */ \n \nconst titleVariant = computed(() => (resolvedSize.value === 'small' ? 'body' : 'title')); \nconst titleSize = computed(() => { \n if (resolvedSize.value === 'small') return 'medium'; \n if (resolvedSize.value === 'large') return 'medium'; \n return 'small'; \n}); \nconst descriptionSize = computed(() => (resolvedSize.value === 'small' ? 'small' : 'medium')); \n \n/* ------------------------------------------------------------------ */ \n/* Layout & surface */ \n/* ------------------------------------------------------------------ */ \n \nconst alignClasses = computed(() => (props.centered ? 'items-center' : 'items-start')); \n \nconst paddingClasses = computed(() => { \n switch (resolvedSize.value) { \n case 'small': return 'px-4 py-6'; \n case 'large': return 'px-8 py-16'; \n case 'medium': \n default: return 'px-6 py-10'; \n } \n}); \n \nconst surfaceClasses = computed(() => { \n switch (props.variant) { \n case 'solid': return 'bg-card border border-border'; \n case 'outline': return 'bg-transparent border border-dashed border-border'; \n case 'subtle': \n default: return ''; \n } \n}); \n \nconst radiusClasses = computed(() => { \n if (props.variant === 'subtle') return ''; \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-full'; \n case 'medium': \n default: return 'rounded-md'; \n } \n}); \n</script>\n"],"mappings":""}
1
+ {"version":3,"file":"EmptyState.cjs","names":[],"sources":["../../../src/components/feedback/EmptyState.vue"],"sourcesContent":["<template> \n <div :class=\"['modo-empty-state flex flex-col', alignClasses, paddingClasses, surfaceClasses, radiusClasses]\" role=\"status\"> \n <div v-if=\"resolvedIcon\" :class=\"['modo-empty-state-icon mb-3', iconWrapClasses]\"> \n <component :is=\"resolvedIcon\" :class=\"iconSizeClass\" aria-hidden=\"true\" /> \n </div> \n \n <Typography \n v-if=\"title\" \n :variant=\"titleVariant\" \n :size=\"titleSize\" \n as=\"h3\" \n weight=\"semibold\" \n :class=\"centered ? 'text-center' : ''\" \n > \n {{ title }} \n </Typography> \n \n <Typography \n v-if=\"description\" \n variant=\"body\" \n :size=\"descriptionSize\" \n color=\"muted\" \n as=\"p\" \n :class=\"['mt-1 max-w-prose', centered ? 'text-center' : '']\" \n > \n {{ description }} \n </Typography> \n \n <div v-if=\"$slots.actions\" :class=\"['modo-empty-state-actions mt-5 flex flex-wrap gap-2', centered ? 'justify-center' : '']\"> \n <slot name=\"actions\" /> \n </div> \n \n <div v-if=\"$slots.default\" :class=\"['modo-empty-state-content mt-4', centered ? 'text-center' : '']\"> \n <slot /> \n </div> \n </div> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed } from 'vue'; \nimport { InboxIcon } from '@heroicons/vue/24/outline'; \nimport Typography from '../data-display/Typography.vue'; \nimport type { EmptyState } from '../../interfaces/feedback/EmptyState.interface'; \nimport { useResolvedRadius, useResolvedSize } from '../../composables/useModoConfig'; \nimport type { ModoRadius } from '../../config/ModoConfig'; \n \nconst props = withDefaults(defineProps<EmptyState>(), { \n variant: 'subtle', \n centered: true, \n}); \n \nconst resolvedSize = useResolvedSize(() => props.size); \n \nconst resolvedRadius = useResolvedRadius(() => props.radius as ModoRadius | undefined); \n \n/* ------------------------------------------------------------------ */ \n/* Icon (default falls back to Inbox) */ \n/* ------------------------------------------------------------------ */ \n \nconst resolvedIcon = computed(() => props.icon ?? InboxIcon); \n \nconst iconSizeClass = computed(() => { \n switch (resolvedSize.value) { \n case 'small': return 'w-6 h-6'; \n case 'large': return 'w-12 h-12'; \n case 'medium': \n default: return 'w-9 h-9'; \n } \n}); \n \nconst iconWrapClasses = computed(() => { \n const base = 'inline-flex items-center justify-center text-muted-foreground'; \n if (resolvedSize.value === 'small') return [base, 'p-2 rounded-md bg-muted/60']; \n if (resolvedSize.value === 'large') return [base, 'p-4 rounded-xl bg-muted/60']; \n return [base, 'p-3 rounded-lg bg-muted/60']; \n}); \n \n/* ------------------------------------------------------------------ */ \n/* Typography sizing */ \n/* ------------------------------------------------------------------ */ \n \nconst titleVariant = computed(() => (resolvedSize.value === 'small' ? 'body' : 'title')); \nconst titleSize = computed(() => { \n if (resolvedSize.value === 'small') return 'medium'; \n if (resolvedSize.value === 'large') return 'medium'; \n return 'small'; \n}); \nconst descriptionSize = computed(() => (resolvedSize.value === 'small' ? 'small' : 'medium')); \n \n/* ------------------------------------------------------------------ */ \n/* Layout & surface */ \n/* ------------------------------------------------------------------ */ \n \nconst alignClasses = computed(() => (props.centered ? 'items-center' : 'items-start')); \n \nconst paddingClasses = computed(() => { \n switch (resolvedSize.value) { \n case 'small': return 'px-4 py-6'; \n case 'large': return 'px-8 py-16'; \n case 'medium': \n default: return 'px-6 py-10'; \n } \n}); \n \nconst surfaceClasses = computed(() => { \n switch (props.variant) { \n case 'solid': return 'bg-card border border-border'; \n case 'outline': return 'bg-transparent border border-dashed border-border'; \n case 'subtle': \n default: return ''; \n } \n}); \n \nconst radiusClasses = computed(() => { \n if (props.variant === 'subtle') return ''; \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</script>\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"EmptyState.mjs","names":[],"sources":["../../../src/components/feedback/EmptyState.vue"],"sourcesContent":["<template> \n <div :class=\"['modo-empty-state flex flex-col', alignClasses, paddingClasses, surfaceClasses, radiusClasses]\" role=\"status\"> \n <div v-if=\"resolvedIcon\" :class=\"['modo-empty-state-icon mb-3', iconWrapClasses]\"> \n <component :is=\"resolvedIcon\" :class=\"iconSizeClass\" aria-hidden=\"true\" /> \n </div> \n \n <Typography \n v-if=\"title\" \n :variant=\"titleVariant\" \n :size=\"titleSize\" \n as=\"h3\" \n weight=\"semibold\" \n :class=\"centered ? 'text-center' : ''\" \n > \n {{ title }} \n </Typography> \n \n <Typography \n v-if=\"description\" \n variant=\"body\" \n :size=\"descriptionSize\" \n color=\"muted\" \n as=\"p\" \n :class=\"['mt-1 max-w-prose', centered ? 'text-center' : '']\" \n > \n {{ description }} \n </Typography> \n \n <div v-if=\"$slots.actions\" :class=\"['modo-empty-state-actions mt-5 flex flex-wrap gap-2', centered ? 'justify-center' : '']\"> \n <slot name=\"actions\" /> \n </div> \n \n <div v-if=\"$slots.default\" :class=\"['modo-empty-state-content mt-4', centered ? 'text-center' : '']\"> \n <slot /> \n </div> \n </div> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed } from 'vue'; \nimport { InboxIcon } from '@heroicons/vue/24/outline'; \nimport Typography from '../data-display/Typography.vue'; \nimport type { EmptyState } from '../../interfaces/feedback/EmptyState.interface'; \nimport { useResolvedRadius, useResolvedSize } from '../../composables/useModoConfig'; \nimport type { ModoRadius } from '../../config/ModoConfig'; \n \nconst props = withDefaults(defineProps<EmptyState>(), { \n variant: 'subtle', \n centered: true, \n}); \n \nconst resolvedSize = useResolvedSize(() => props.size); \n \nconst resolvedRadius = useResolvedRadius(() => props.radius as ModoRadius | undefined); \n \n/* ------------------------------------------------------------------ */ \n/* Icon (default falls back to Inbox) */ \n/* ------------------------------------------------------------------ */ \n \nconst resolvedIcon = computed(() => props.icon ?? InboxIcon); \n \nconst iconSizeClass = computed(() => { \n switch (resolvedSize.value) { \n case 'small': return 'w-6 h-6'; \n case 'large': return 'w-12 h-12'; \n case 'medium': \n default: return 'w-9 h-9'; \n } \n}); \n \nconst iconWrapClasses = computed(() => { \n const base = 'inline-flex items-center justify-center text-muted-foreground'; \n if (resolvedSize.value === 'small') return [base, 'p-2 rounded-md bg-muted/60']; \n if (resolvedSize.value === 'large') return [base, 'p-4 rounded-xl bg-muted/60']; \n return [base, 'p-3 rounded-lg bg-muted/60']; \n}); \n \n/* ------------------------------------------------------------------ */ \n/* Typography sizing */ \n/* ------------------------------------------------------------------ */ \n \nconst titleVariant = computed(() => (resolvedSize.value === 'small' ? 'body' : 'title')); \nconst titleSize = computed(() => { \n if (resolvedSize.value === 'small') return 'medium'; \n if (resolvedSize.value === 'large') return 'medium'; \n return 'small'; \n}); \nconst descriptionSize = computed(() => (resolvedSize.value === 'small' ? 'small' : 'medium')); \n \n/* ------------------------------------------------------------------ */ \n/* Layout & surface */ \n/* ------------------------------------------------------------------ */ \n \nconst alignClasses = computed(() => (props.centered ? 'items-center' : 'items-start')); \n \nconst paddingClasses = computed(() => { \n switch (resolvedSize.value) { \n case 'small': return 'px-4 py-6'; \n case 'large': return 'px-8 py-16'; \n case 'medium': \n default: return 'px-6 py-10'; \n } \n}); \n \nconst surfaceClasses = computed(() => { \n switch (props.variant) { \n case 'solid': return 'bg-card border border-border'; \n case 'outline': return 'bg-transparent border border-dashed border-border'; \n case 'subtle': \n default: return ''; \n } \n}); \n \nconst radiusClasses = computed(() => { \n if (props.variant === 'subtle') return ''; \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-full'; \n case 'medium': \n default: return 'rounded-md'; \n } \n}); \n</script>\n"],"mappings":""}
1
+ {"version":3,"file":"EmptyState.mjs","names":[],"sources":["../../../src/components/feedback/EmptyState.vue"],"sourcesContent":["<template> \n <div :class=\"['modo-empty-state flex flex-col', alignClasses, paddingClasses, surfaceClasses, radiusClasses]\" role=\"status\"> \n <div v-if=\"resolvedIcon\" :class=\"['modo-empty-state-icon mb-3', iconWrapClasses]\"> \n <component :is=\"resolvedIcon\" :class=\"iconSizeClass\" aria-hidden=\"true\" /> \n </div> \n \n <Typography \n v-if=\"title\" \n :variant=\"titleVariant\" \n :size=\"titleSize\" \n as=\"h3\" \n weight=\"semibold\" \n :class=\"centered ? 'text-center' : ''\" \n > \n {{ title }} \n </Typography> \n \n <Typography \n v-if=\"description\" \n variant=\"body\" \n :size=\"descriptionSize\" \n color=\"muted\" \n as=\"p\" \n :class=\"['mt-1 max-w-prose', centered ? 'text-center' : '']\" \n > \n {{ description }} \n </Typography> \n \n <div v-if=\"$slots.actions\" :class=\"['modo-empty-state-actions mt-5 flex flex-wrap gap-2', centered ? 'justify-center' : '']\"> \n <slot name=\"actions\" /> \n </div> \n \n <div v-if=\"$slots.default\" :class=\"['modo-empty-state-content mt-4', centered ? 'text-center' : '']\"> \n <slot /> \n </div> \n </div> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed } from 'vue'; \nimport { InboxIcon } from '@heroicons/vue/24/outline'; \nimport Typography from '../data-display/Typography.vue'; \nimport type { EmptyState } from '../../interfaces/feedback/EmptyState.interface'; \nimport { useResolvedRadius, useResolvedSize } from '../../composables/useModoConfig'; \nimport type { ModoRadius } from '../../config/ModoConfig'; \n \nconst props = withDefaults(defineProps<EmptyState>(), { \n variant: 'subtle', \n centered: true, \n}); \n \nconst resolvedSize = useResolvedSize(() => props.size); \n \nconst resolvedRadius = useResolvedRadius(() => props.radius as ModoRadius | undefined); \n \n/* ------------------------------------------------------------------ */ \n/* Icon (default falls back to Inbox) */ \n/* ------------------------------------------------------------------ */ \n \nconst resolvedIcon = computed(() => props.icon ?? InboxIcon); \n \nconst iconSizeClass = computed(() => { \n switch (resolvedSize.value) { \n case 'small': return 'w-6 h-6'; \n case 'large': return 'w-12 h-12'; \n case 'medium': \n default: return 'w-9 h-9'; \n } \n}); \n \nconst iconWrapClasses = computed(() => { \n const base = 'inline-flex items-center justify-center text-muted-foreground'; \n if (resolvedSize.value === 'small') return [base, 'p-2 rounded-md bg-muted/60']; \n if (resolvedSize.value === 'large') return [base, 'p-4 rounded-xl bg-muted/60']; \n return [base, 'p-3 rounded-lg bg-muted/60']; \n}); \n \n/* ------------------------------------------------------------------ */ \n/* Typography sizing */ \n/* ------------------------------------------------------------------ */ \n \nconst titleVariant = computed(() => (resolvedSize.value === 'small' ? 'body' : 'title')); \nconst titleSize = computed(() => { \n if (resolvedSize.value === 'small') return 'medium'; \n if (resolvedSize.value === 'large') return 'medium'; \n return 'small'; \n}); \nconst descriptionSize = computed(() => (resolvedSize.value === 'small' ? 'small' : 'medium')); \n \n/* ------------------------------------------------------------------ */ \n/* Layout & surface */ \n/* ------------------------------------------------------------------ */ \n \nconst alignClasses = computed(() => (props.centered ? 'items-center' : 'items-start')); \n \nconst paddingClasses = computed(() => { \n switch (resolvedSize.value) { \n case 'small': return 'px-4 py-6'; \n case 'large': return 'px-8 py-16'; \n case 'medium': \n default: return 'px-6 py-10'; \n } \n}); \n \nconst surfaceClasses = computed(() => { \n switch (props.variant) { \n case 'solid': return 'bg-card border border-border'; \n case 'outline': return 'bg-transparent border border-dashed border-border'; \n case 'subtle': \n default: return ''; \n } \n}); \n \nconst radiusClasses = computed(() => { \n if (props.variant === 'subtle') return ''; \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</script>\n"],"mappings":""}
@@ -64,7 +64,7 @@ var EmptyState_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0,
64
64
  case "none": return "rounded-none";
65
65
  case "small": return "rounded-sm";
66
66
  case "large": return "rounded-xl";
67
- case "full": return "rounded-full";
67
+ case "full": return "rounded-3xl";
68
68
  default: return "rounded-md";
69
69
  }
70
70
  });
@@ -1 +1 @@
1
- {"version":3,"file":"EmptyState.vue_vue_type_script_setup_true_lang.cjs","names":["$slots"],"sources":["../../../src/components/feedback/EmptyState.vue"],"sourcesContent":["<template> \n <div :class=\"['modo-empty-state flex flex-col', alignClasses, paddingClasses, surfaceClasses, radiusClasses]\" role=\"status\"> \n <div v-if=\"resolvedIcon\" :class=\"['modo-empty-state-icon mb-3', iconWrapClasses]\"> \n <component :is=\"resolvedIcon\" :class=\"iconSizeClass\" aria-hidden=\"true\" /> \n </div> \n \n <Typography \n v-if=\"title\" \n :variant=\"titleVariant\" \n :size=\"titleSize\" \n as=\"h3\" \n weight=\"semibold\" \n :class=\"centered ? 'text-center' : ''\" \n > \n {{ title }} \n </Typography> \n \n <Typography \n v-if=\"description\" \n variant=\"body\" \n :size=\"descriptionSize\" \n color=\"muted\" \n as=\"p\" \n :class=\"['mt-1 max-w-prose', centered ? 'text-center' : '']\" \n > \n {{ description }} \n </Typography> \n \n <div v-if=\"$slots.actions\" :class=\"['modo-empty-state-actions mt-5 flex flex-wrap gap-2', centered ? 'justify-center' : '']\"> \n <slot name=\"actions\" /> \n </div> \n \n <div v-if=\"$slots.default\" :class=\"['modo-empty-state-content mt-4', centered ? 'text-center' : '']\"> \n <slot /> \n </div> \n </div> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed } from 'vue'; \nimport { InboxIcon } from '@heroicons/vue/24/outline'; \nimport Typography from '../data-display/Typography.vue'; \nimport type { EmptyState } from '../../interfaces/feedback/EmptyState.interface'; \nimport { useResolvedRadius, useResolvedSize } from '../../composables/useModoConfig'; \nimport type { ModoRadius } from '../../config/ModoConfig'; \n \nconst props = withDefaults(defineProps<EmptyState>(), { \n variant: 'subtle', \n centered: true, \n}); \n \nconst resolvedSize = useResolvedSize(() => props.size); \n \nconst resolvedRadius = useResolvedRadius(() => props.radius as ModoRadius | undefined); \n \n/* ------------------------------------------------------------------ */ \n/* Icon (default falls back to Inbox) */ \n/* ------------------------------------------------------------------ */ \n \nconst resolvedIcon = computed(() => props.icon ?? InboxIcon); \n \nconst iconSizeClass = computed(() => { \n switch (resolvedSize.value) { \n case 'small': return 'w-6 h-6'; \n case 'large': return 'w-12 h-12'; \n case 'medium': \n default: return 'w-9 h-9'; \n } \n}); \n \nconst iconWrapClasses = computed(() => { \n const base = 'inline-flex items-center justify-center text-muted-foreground'; \n if (resolvedSize.value === 'small') return [base, 'p-2 rounded-md bg-muted/60']; \n if (resolvedSize.value === 'large') return [base, 'p-4 rounded-xl bg-muted/60']; \n return [base, 'p-3 rounded-lg bg-muted/60']; \n}); \n \n/* ------------------------------------------------------------------ */ \n/* Typography sizing */ \n/* ------------------------------------------------------------------ */ \n \nconst titleVariant = computed(() => (resolvedSize.value === 'small' ? 'body' : 'title')); \nconst titleSize = computed(() => { \n if (resolvedSize.value === 'small') return 'medium'; \n if (resolvedSize.value === 'large') return 'medium'; \n return 'small'; \n}); \nconst descriptionSize = computed(() => (resolvedSize.value === 'small' ? 'small' : 'medium')); \n \n/* ------------------------------------------------------------------ */ \n/* Layout & surface */ \n/* ------------------------------------------------------------------ */ \n \nconst alignClasses = computed(() => (props.centered ? 'items-center' : 'items-start')); \n \nconst paddingClasses = computed(() => { \n switch (resolvedSize.value) { \n case 'small': return 'px-4 py-6'; \n case 'large': return 'px-8 py-16'; \n case 'medium': \n default: return 'px-6 py-10'; \n } \n}); \n \nconst surfaceClasses = computed(() => { \n switch (props.variant) { \n case 'solid': return 'bg-card border border-border'; \n case 'outline': return 'bg-transparent border border-dashed border-border'; \n case 'subtle': \n default: return ''; \n } \n}); \n \nconst radiusClasses = computed(() => { \n if (props.variant === 'subtle') return ''; \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-full'; \n case 'medium': \n default: return 'rounded-md'; \n } \n}); \n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;EA8CA,MAAM,QAAQ;EAKd,MAAM,eAAe,sBAAA,sBAAsB,MAAM,KAAK;EAEtD,MAAM,iBAAiB,sBAAA,wBAAwB,MAAM,OAAiC;EAMtF,MAAM,gBAAA,GAAA,IAAA,gBAA8B,MAAM,QAAQ,0BAAA,UAAU;EAE5D,MAAM,iBAAA,GAAA,IAAA,gBAA+B;GACjC,QAAQ,aAAa,OAArB;IACI,KAAK,SAAS,OAAO;IACrB,KAAK,SAAS,OAAO;IAErB,SAAS,OAAO;;IAEtB;EA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}
1
+ {"version":3,"file":"EmptyState.vue_vue_type_script_setup_true_lang.cjs","names":["$slots"],"sources":["../../../src/components/feedback/EmptyState.vue"],"sourcesContent":["<template> \n <div :class=\"['modo-empty-state flex flex-col', alignClasses, paddingClasses, surfaceClasses, radiusClasses]\" role=\"status\"> \n <div v-if=\"resolvedIcon\" :class=\"['modo-empty-state-icon mb-3', iconWrapClasses]\"> \n <component :is=\"resolvedIcon\" :class=\"iconSizeClass\" aria-hidden=\"true\" /> \n </div> \n \n <Typography \n v-if=\"title\" \n :variant=\"titleVariant\" \n :size=\"titleSize\" \n as=\"h3\" \n weight=\"semibold\" \n :class=\"centered ? 'text-center' : ''\" \n > \n {{ title }} \n </Typography> \n \n <Typography \n v-if=\"description\" \n variant=\"body\" \n :size=\"descriptionSize\" \n color=\"muted\" \n as=\"p\" \n :class=\"['mt-1 max-w-prose', centered ? 'text-center' : '']\" \n > \n {{ description }} \n </Typography> \n \n <div v-if=\"$slots.actions\" :class=\"['modo-empty-state-actions mt-5 flex flex-wrap gap-2', centered ? 'justify-center' : '']\"> \n <slot name=\"actions\" /> \n </div> \n \n <div v-if=\"$slots.default\" :class=\"['modo-empty-state-content mt-4', centered ? 'text-center' : '']\"> \n <slot /> \n </div> \n </div> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed } from 'vue'; \nimport { InboxIcon } from '@heroicons/vue/24/outline'; \nimport Typography from '../data-display/Typography.vue'; \nimport type { EmptyState } from '../../interfaces/feedback/EmptyState.interface'; \nimport { useResolvedRadius, useResolvedSize } from '../../composables/useModoConfig'; \nimport type { ModoRadius } from '../../config/ModoConfig'; \n \nconst props = withDefaults(defineProps<EmptyState>(), { \n variant: 'subtle', \n centered: true, \n}); \n \nconst resolvedSize = useResolvedSize(() => props.size); \n \nconst resolvedRadius = useResolvedRadius(() => props.radius as ModoRadius | undefined); \n \n/* ------------------------------------------------------------------ */ \n/* Icon (default falls back to Inbox) */ \n/* ------------------------------------------------------------------ */ \n \nconst resolvedIcon = computed(() => props.icon ?? InboxIcon); \n \nconst iconSizeClass = computed(() => { \n switch (resolvedSize.value) { \n case 'small': return 'w-6 h-6'; \n case 'large': return 'w-12 h-12'; \n case 'medium': \n default: return 'w-9 h-9'; \n } \n}); \n \nconst iconWrapClasses = computed(() => { \n const base = 'inline-flex items-center justify-center text-muted-foreground'; \n if (resolvedSize.value === 'small') return [base, 'p-2 rounded-md bg-muted/60']; \n if (resolvedSize.value === 'large') return [base, 'p-4 rounded-xl bg-muted/60']; \n return [base, 'p-3 rounded-lg bg-muted/60']; \n}); \n \n/* ------------------------------------------------------------------ */ \n/* Typography sizing */ \n/* ------------------------------------------------------------------ */ \n \nconst titleVariant = computed(() => (resolvedSize.value === 'small' ? 'body' : 'title')); \nconst titleSize = computed(() => { \n if (resolvedSize.value === 'small') return 'medium'; \n if (resolvedSize.value === 'large') return 'medium'; \n return 'small'; \n}); \nconst descriptionSize = computed(() => (resolvedSize.value === 'small' ? 'small' : 'medium')); \n \n/* ------------------------------------------------------------------ */ \n/* Layout & surface */ \n/* ------------------------------------------------------------------ */ \n \nconst alignClasses = computed(() => (props.centered ? 'items-center' : 'items-start')); \n \nconst paddingClasses = computed(() => { \n switch (resolvedSize.value) { \n case 'small': return 'px-4 py-6'; \n case 'large': return 'px-8 py-16'; \n case 'medium': \n default: return 'px-6 py-10'; \n } \n}); \n \nconst surfaceClasses = computed(() => { \n switch (props.variant) { \n case 'solid': return 'bg-card border border-border'; \n case 'outline': return 'bg-transparent border border-dashed border-border'; \n case 'subtle': \n default: return ''; \n } \n}); \n \nconst radiusClasses = computed(() => { \n if (props.variant === 'subtle') return ''; \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</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;EA8CA,MAAM,Q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AAA,QAAA,UAAA,CAAA,EAAA,EAAA,KAAA,GAAA,IAAA,oBAAA,IAAA,KAAA;IAGhBA,KAAAA,OAAO,YAAA,GAAA,IAAA,YAAA,GAAA,GAAA,IAAA,oBAEZ,OAAA;;KAFsB,QAAA,GAAA,IAAA,gBAAK,CAAA,iCAAoC,QAAA,WAAQ,gBAAA,GAAA,CAAA;4BACjE,KAAA,QAAA,UAAA,CAAA,EAAA,EAAA,KAAA,GAAA,IAAA,oBAAA,IAAA,KAAA"}
@@ -63,7 +63,7 @@ var EmptyState_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ def
63
63
  case "none": return "rounded-none";
64
64
  case "small": return "rounded-sm";
65
65
  case "large": return "rounded-xl";
66
- case "full": return "rounded-full";
66
+ case "full": return "rounded-3xl";
67
67
  default: return "rounded-md";
68
68
  }
69
69
  });
@@ -1 +1 @@
1
- {"version":3,"file":"EmptyState.vue_vue_type_script_setup_true_lang.mjs","names":["$slots"],"sources":["../../../src/components/feedback/EmptyState.vue"],"sourcesContent":["<template> \n <div :class=\"['modo-empty-state flex flex-col', alignClasses, paddingClasses, surfaceClasses, radiusClasses]\" role=\"status\"> \n <div v-if=\"resolvedIcon\" :class=\"['modo-empty-state-icon mb-3', iconWrapClasses]\"> \n <component :is=\"resolvedIcon\" :class=\"iconSizeClass\" aria-hidden=\"true\" /> \n </div> \n \n <Typography \n v-if=\"title\" \n :variant=\"titleVariant\" \n :size=\"titleSize\" \n as=\"h3\" \n weight=\"semibold\" \n :class=\"centered ? 'text-center' : ''\" \n > \n {{ title }} \n </Typography> \n \n <Typography \n v-if=\"description\" \n variant=\"body\" \n :size=\"descriptionSize\" \n color=\"muted\" \n as=\"p\" \n :class=\"['mt-1 max-w-prose', centered ? 'text-center' : '']\" \n > \n {{ description }} \n </Typography> \n \n <div v-if=\"$slots.actions\" :class=\"['modo-empty-state-actions mt-5 flex flex-wrap gap-2', centered ? 'justify-center' : '']\"> \n <slot name=\"actions\" /> \n </div> \n \n <div v-if=\"$slots.default\" :class=\"['modo-empty-state-content mt-4', centered ? 'text-center' : '']\"> \n <slot /> \n </div> \n </div> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed } from 'vue'; \nimport { InboxIcon } from '@heroicons/vue/24/outline'; \nimport Typography from '../data-display/Typography.vue'; \nimport type { EmptyState } from '../../interfaces/feedback/EmptyState.interface'; \nimport { useResolvedRadius, useResolvedSize } from '../../composables/useModoConfig'; \nimport type { ModoRadius } from '../../config/ModoConfig'; \n \nconst props = withDefaults(defineProps<EmptyState>(), { \n variant: 'subtle', \n centered: true, \n}); \n \nconst resolvedSize = useResolvedSize(() => props.size); \n \nconst resolvedRadius = useResolvedRadius(() => props.radius as ModoRadius | undefined); \n \n/* ------------------------------------------------------------------ */ \n/* Icon (default falls back to Inbox) */ \n/* ------------------------------------------------------------------ */ \n \nconst resolvedIcon = computed(() => props.icon ?? InboxIcon); \n \nconst iconSizeClass = computed(() => { \n switch (resolvedSize.value) { \n case 'small': return 'w-6 h-6'; \n case 'large': return 'w-12 h-12'; \n case 'medium': \n default: return 'w-9 h-9'; \n } \n}); \n \nconst iconWrapClasses = computed(() => { \n const base = 'inline-flex items-center justify-center text-muted-foreground'; \n if (resolvedSize.value === 'small') return [base, 'p-2 rounded-md bg-muted/60']; \n if (resolvedSize.value === 'large') return [base, 'p-4 rounded-xl bg-muted/60']; \n return [base, 'p-3 rounded-lg bg-muted/60']; \n}); \n \n/* ------------------------------------------------------------------ */ \n/* Typography sizing */ \n/* ------------------------------------------------------------------ */ \n \nconst titleVariant = computed(() => (resolvedSize.value === 'small' ? 'body' : 'title')); \nconst titleSize = computed(() => { \n if (resolvedSize.value === 'small') return 'medium'; \n if (resolvedSize.value === 'large') return 'medium'; \n return 'small'; \n}); \nconst descriptionSize = computed(() => (resolvedSize.value === 'small' ? 'small' : 'medium')); \n \n/* ------------------------------------------------------------------ */ \n/* Layout & surface */ \n/* ------------------------------------------------------------------ */ \n \nconst alignClasses = computed(() => (props.centered ? 'items-center' : 'items-start')); \n \nconst paddingClasses = computed(() => { \n switch (resolvedSize.value) { \n case 'small': return 'px-4 py-6'; \n case 'large': return 'px-8 py-16'; \n case 'medium': \n default: return 'px-6 py-10'; \n } \n}); \n \nconst surfaceClasses = computed(() => { \n switch (props.variant) { \n case 'solid': return 'bg-card border border-border'; \n case 'outline': return 'bg-transparent border border-dashed border-border'; \n case 'subtle': \n default: return ''; \n } \n}); \n \nconst radiusClasses = computed(() => { \n if (props.variant === 'subtle') return ''; \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-full'; \n case 'medium': \n default: return 'rounded-md'; \n } \n}); \n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;EA8CA,MAAM,QAAQ;EAKd,MAAM,eAAe,sBAAsB,MAAM,KAAK;EAEtD,MAAM,iBAAiB,wBAAwB,MAAM,OAAiC;EAMtF,MAAM,eAAe,eAAe,MAAM,QAAQ,UAAU;EAE5D,MAAM,gBAAgB,eAAe;GACjC,QAAQ,aAAa,OAArB;IACI,KAAK,SAAS,OAAO;IACrB,KAAK,SAAS,OAAO;IAErB,SAAS,OAAO;;IAEtB;EAEF,MAAM,kBAAkB,eAAe;GACnC,MAAM,OAAO;GACb,IAAI,aAAa,UAAU,SAAS,OAAO,CAAC,MAAM,6BAA6B;GAC/E,IAAI,aAAa,UAAU,SAAS,OAAO,CAAC,MAAM,6BAA6B;GAC/E,OAAO,CAAC,MAAM,6BAA6B;IAC7C;EAMF,MAAM,eAAe,eAAgB,aAAa,UAAU,UAAU,SAAS,QAAS;EACxF,MAAM,YAAY,eAAe;GAC7B,IAAI,aAAa,UAAU,SAAS,OAAO;GAC3C,IAAI,aAAa,UAAU,SAAS,OAAO;GAC3C,OAAO;IACT;EACF,MAAM,kBAAkB,eAAgB,aAAa,UAAU,UAAU,UAAU,SAAU;EAM7F,MAAM,eAAe,eAAgB,MAAM,WAAW,iBAA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PA,KAAAA,OAAO,WAAA,WAAA,EAAlB,mBAEM,OAAA;;KAFsB,OAAK,eAAA,CAAA,sDAAyD,QAAA,WAAQ,mBAAA,GAAA,CAAA;QAC9F,WAAuB,KAAA,QAAA,UAAA,CAAA,EAAA,EAAA,IAAA,mBAAA,IAAA,KAAA;IAGhBA,KAAAA,OAAO,WAAA,WAAA,EAAlB,mBAEM,OAAA;;KAFsB,OAAK,eAAA,CAAA,iCAAoC,QAAA,WAAQ,gBAAA,GAAA,CAAA;QACzE,WAAQ,KAAA,QAAA,UAAA,CAAA,EAAA,EAAA,IAAA,mBAAA,IAAA,KAAA"}
1
+ {"version":3,"file":"EmptyState.vue_vue_type_script_setup_true_lang.mjs","names":["$slots"],"sources":["../../../src/components/feedback/EmptyState.vue"],"sourcesContent":["<template> \n <div :class=\"['modo-empty-state flex flex-col', alignClasses, paddingClasses, surfaceClasses, radiusClasses]\" role=\"status\"> \n <div v-if=\"resolvedIcon\" :class=\"['modo-empty-state-icon mb-3', iconWrapClasses]\"> \n <component :is=\"resolvedIcon\" :class=\"iconSizeClass\" aria-hidden=\"true\" /> \n </div> \n \n <Typography \n v-if=\"title\" \n :variant=\"titleVariant\" \n :size=\"titleSize\" \n as=\"h3\" \n weight=\"semibold\" \n :class=\"centered ? 'text-center' : ''\" \n > \n {{ title }} \n </Typography> \n \n <Typography \n v-if=\"description\" \n variant=\"body\" \n :size=\"descriptionSize\" \n color=\"muted\" \n as=\"p\" \n :class=\"['mt-1 max-w-prose', centered ? 'text-center' : '']\" \n > \n {{ description }} \n </Typography> \n \n <div v-if=\"$slots.actions\" :class=\"['modo-empty-state-actions mt-5 flex flex-wrap gap-2', centered ? 'justify-center' : '']\"> \n <slot name=\"actions\" /> \n </div> \n \n <div v-if=\"$slots.default\" :class=\"['modo-empty-state-content mt-4', centered ? 'text-center' : '']\"> \n <slot /> \n </div> \n </div> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed } from 'vue'; \nimport { InboxIcon } from '@heroicons/vue/24/outline'; \nimport Typography from '../data-display/Typography.vue'; \nimport type { EmptyState } from '../../interfaces/feedback/EmptyState.interface'; \nimport { useResolvedRadius, useResolvedSize } from '../../composables/useModoConfig'; \nimport type { ModoRadius } from '../../config/ModoConfig'; \n \nconst props = withDefaults(defineProps<EmptyState>(), { \n variant: 'subtle', \n centered: true, \n}); \n \nconst resolvedSize = useResolvedSize(() => props.size); \n \nconst resolvedRadius = useResolvedRadius(() => props.radius as ModoRadius | undefined); \n \n/* ------------------------------------------------------------------ */ \n/* Icon (default falls back to Inbox) */ \n/* ------------------------------------------------------------------ */ \n \nconst resolvedIcon = computed(() => props.icon ?? InboxIcon); \n \nconst iconSizeClass = computed(() => { \n switch (resolvedSize.value) { \n case 'small': return 'w-6 h-6'; \n case 'large': return 'w-12 h-12'; \n case 'medium': \n default: return 'w-9 h-9'; \n } \n}); \n \nconst iconWrapClasses = computed(() => { \n const base = 'inline-flex items-center justify-center text-muted-foreground'; \n if (resolvedSize.value === 'small') return [base, 'p-2 rounded-md bg-muted/60']; \n if (resolvedSize.value === 'large') return [base, 'p-4 rounded-xl bg-muted/60']; \n return [base, 'p-3 rounded-lg bg-muted/60']; \n}); \n \n/* ------------------------------------------------------------------ */ \n/* Typography sizing */ \n/* ------------------------------------------------------------------ */ \n \nconst titleVariant = computed(() => (resolvedSize.value === 'small' ? 'body' : 'title')); \nconst titleSize = computed(() => { \n if (resolvedSize.value === 'small') return 'medium'; \n if (resolvedSize.value === 'large') return 'medium'; \n return 'small'; \n}); \nconst descriptionSize = computed(() => (resolvedSize.value === 'small' ? 'small' : 'medium')); \n \n/* ------------------------------------------------------------------ */ \n/* Layout & surface */ \n/* ------------------------------------------------------------------ */ \n \nconst alignClasses = computed(() => (props.centered ? 'items-center' : 'items-start')); \n \nconst paddingClasses = computed(() => { \n switch (resolvedSize.value) { \n case 'small': return 'px-4 py-6'; \n case 'large': return 'px-8 py-16'; \n case 'medium': \n default: return 'px-6 py-10'; \n } \n}); \n \nconst surfaceClasses = computed(() => { \n switch (props.variant) { \n case 'solid': return 'bg-card border border-border'; \n case 'outline': return 'bg-transparent border border-dashed border-border'; \n case 'subtle': \n default: return ''; \n } \n}); \n \nconst radiusClasses = computed(() => { \n if (props.variant === 'subtle') return ''; \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</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;EA8CA,MAAM,QAAQ;EAKd,MAAM,eAAe,sBAAsB,MAAM,KAAK;EAEtD,MAAM,iBAAiB,wBAAwB,MAAM,OAAiC;EAMtF,MAAM,eAAe,eAAe,MAAM,QAAQ,UAAU;EAE5D,MAAM,gBAAgB,eAAe;GACjC,QAAQ,aAAa,OAArB;IACI,KAAK,SAAS,OAAO;IACrB,KAAK,SAAS,OAAO;IAErB,SAAS,OAAO;;IAEtB;EAEF,MAAM,kBAAkB,eAAe;GACnC,MAAM,OAAO;GACb,IAAI,aAAa,UAAU,SAAS,OAAO,CAAC,MAAM,6BAA6B;GAC/E,IAAI,aAAa,UAAU,SAAS,OAAO,CAAC,MAAM,6BAA6B;GAC/E,OAAO,CAAC,MAAM,6BAA6B;IAC7C;EAMF,MAAM,eAAe,eAAgB,aAAa,UAAU,UAAU,SAAS,QAAS;EACxF,MAAM,YAAY,eAAe;GAC7B,IAAI,aAAa,UAAU,SAAS,OAAO;GAC3C,IAAI,aAAa,UAAU,SAAS,OAAO;GAC3C,OAAO;IACT;EACF,MAAM,kBAAkB,eAAgB,aAAa,UAAU,UAAU,UAAU,SAAU;EAM7F,MAAM,eAAe,eAAgB,MAAM,WAAW,iBAAiB,cAAe;EAEtF,MAAM,iBAAiB,eAAe;GAClC,QAAQ,aAAa,OAArB;IACI,KAAK,SAAS,OAAO;IACrB,KAAK,SAAS,OAAO;IAErB,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;QAC9F,WAAuB,KAAA,QAAA,UAAA,CAAA,EAAA,EAAA,IAAA,mBAAA,IAAA,KAAA;IAGhBA,KAAAA,OAAO,WAAA,WAAA,EAAlB,mBAEM,OAAA;;KAFsB,OAAK,eAAA,CAAA,iCAAoC,QAAA,WAAQ,gBAAA,GAAA,CAAA;QACzE,WAAQ,KAAA,QAAA,UAAA,CAAA,EAAA,EAAA,IAAA,mBAAA,IAAA,KAAA"}
@@ -8,7 +8,7 @@ import Typography_default from "../data-display/Typography.mjs";
8
8
  import { lockBodyScroll, unlockBodyScroll } from "../../composables/useBodyScrollLock.mjs";
9
9
  import { Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderSlot, toDisplayString, unref, useId, watch, withCtx, withModifiers } from "vue";
10
10
  import { XMarkIcon } from "@heroicons/vue/24/outline";
11
- import { gsap } from "gsap";
11
+ import { gsap as gsap$1 } from "gsap";
12
12
  //#region src/components/feedback/Modal.vue?vue&type=script&setup=true&lang.ts
13
13
  var _hoisted_1 = ["data-modo-theme"];
14
14
  var _hoisted_2 = ["data-modo-scrim"];
@@ -182,7 +182,7 @@ var Modal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
182
182
  }
183
183
  activeTimeline?.kill();
184
184
  if (prefersReducedMotion()) {
185
- gsap.set([overlay, panel], {
185
+ gsap$1.set([overlay, panel], {
186
186
  opacity: 1,
187
187
  clearProps: "transform"
188
188
  });
@@ -191,7 +191,7 @@ var Modal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
191
191
  }
192
192
  const origin = !props.disableOriginAnimation ? getOriginEl() : null;
193
193
  const pRect = panel.getBoundingClientRect();
194
- const tl = gsap.timeline({ onComplete: () => {
194
+ const tl = gsap$1.timeline({ onComplete: () => {
195
195
  activeTimeline = null;
196
196
  done();
197
197
  } });
@@ -245,7 +245,7 @@ var Modal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
245
245
  }
246
246
  activeTimeline?.kill();
247
247
  if (prefersReducedMotion()) {
248
- gsap.to(overlay, {
248
+ gsap$1.to(overlay, {
249
249
  opacity: 0,
250
250
  duration: .12,
251
251
  onComplete: () => {
@@ -257,7 +257,7 @@ var Modal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
257
257
  }
258
258
  const origin = !props.disableOriginAnimation ? getOriginEl() : null;
259
259
  const pRect = panel.getBoundingClientRect();
260
- const tl = gsap.timeline({ onComplete: () => {
260
+ const tl = gsap$1.timeline({ onComplete: () => {
261
261
  activeTimeline = null;
262
262
  releaseScrollLock();
263
263
  done();
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.vue_vue_type_script_setup_true_lang.mjs","names":["$slots"],"sources":["../../../src/components/feedback/Modal.vue"],"sourcesContent":["<template> \n <Teleport to=\"body\"> \n <Transition :css=\"false\" @enter=\"onOverlayEnter\" @leave=\"onOverlayLeave\" appear> \n <div \n v-if=\"modelValue\" \n ref=\"overlayRef\" \n :class=\"[ \n 'modo-modal-overlay fixed inset-0 z-1200 flex opacity-0', \n positionClasses, \n ]\" \n :style=\"overlayStyle\" \n :data-modo-theme=\"scopedTheme || undefined\" \n @mousedown=\"onOverlayMouseDown\" \n @click=\"onOverlayClick\" \n > \n <!-- Scrim (shared Valux material, dark veil in both modes) -->\n <div\n aria-hidden=\"true\"\n class=\"modo-scrim pointer-events-none absolute inset-0\"\n :data-modo-scrim=\"scrimVariant\"\n />\n <div \n ref=\"panelRef\" \n data-modo-modal-panel \n role=\"dialog\" \n aria-modal=\"true\" \n :aria-labelledby=\"title ? titleId : undefined\" \n :aria-describedby=\"description ? descriptionId : undefined\" \n :aria-label=\"!title ? ariaLabel : undefined\" \n :class=\"[ \n 'modo-modal relative flex flex-col w-full bg-card text-foreground overflow-hidden', \n 'dark:bg-card/85 dark:backdrop-blur-xl', \n 'border border-border shadow-xl outline-none focus:outline-none focus-visible:outline-none', \n sizeClasses, \n radiusClasses, \n ]\" \n tabindex=\"-1\" \n @click.stop \n @keydown=\"onPanelKeydown\" \n > \n <!-- Inner border layer --> \n <span \n v-if=\"innerBorder\" \n aria-hidden=\"true\" \n :class=\"[ \n 'pointer-events-none absolute inset-1 border border-border/40', \n innerBorderRadiusClass, \n ]\" \n /> \n \n <!-- Close button (usa nuestro Button en modo icono) --> \n <div v-if=\"showClose\" class=\"absolute top-3 right-3 z-10\"> \n <Button \n variant=\"text\" \n size=\"small\" \n :color=\"resolvedColor\" \n :icon=\"XMarkIcon\" \n :ariaLabel=\"closeLabelText\" \n @click=\"close\" \n /> \n </div> \n \n <!-- Content wrapper --> \n <div ref=\"contentRef\" data-modo-modal-content class=\"flex flex-col min-h-0 flex-1\"> \n <!-- Header --> \n <header \n v-if=\"$slots.header || title || description\" \n :class=\"[ \n 'relative flex flex-col gap-1 px-6 pt-6', \n showClose ? 'pr-12' : '', \n $slots.default || $slots.body || $slots.footer ? 'pb-4' : 'pb-6', \n ]\" \n > \n <slot name=\"header\"> \n <Typography \n v-if=\"title\" \n :id=\"titleId\" \n variant=\"title\" \n size=\"medium\" \n as=\"h2\" \n weight=\"semibold\" \n > \n {{ title }} \n </Typography> \n <Typography \n v-if=\"description\" \n :id=\"descriptionId\" \n variant=\"body\" \n size=\"small\" \n color=\"muted\" \n > \n {{ description }} \n </Typography> \n </slot> \n </header> \n \n <!-- Body --> \n <div \n v-if=\"$slots.default || $slots.body\" \n :class=\"[ \n 'relative flex-1 overflow-auto px-6', \n ($slots.header || title || description) ? '' : 'pt-6', \n $slots.footer ? 'pb-4' : 'pb-6', \n ]\" \n > \n <slot name=\"body\"> \n <slot /> \n </slot> \n </div> \n \n <!-- Footer (divider respeta inner border con inset) --> \n <footer \n v-if=\"$slots.footer\" \n class=\"relative flex items-center justify-end gap-2 px-6 py-4\" \n > \n <span \n v-if=\"innerBorder\" \n aria-hidden=\"true\" \n class=\"pointer-events-none absolute top-0 left-1 right-1 h-px bg-border/40\" \n /> \n <span \n v-else \n aria-hidden=\"true\" \n class=\"pointer-events-none absolute top-0 left-0 right-0 h-px bg-border\" \n /> \n <slot name=\"footer\" :close=\"close\" /> \n </footer> \n </div> \n </div> \n </div> \n </Transition> \n </Teleport> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed, nextTick, onBeforeUnmount, onMounted, ref, useId, watch } from 'vue'; \nimport { gsap } from 'gsap'; \nimport { XMarkIcon } from '@heroicons/vue/24/outline'; \nimport Button from '../forms/Button.vue'; \nimport Typography from '../data-display/Typography.vue'; \nimport type { Modal } from '../../interfaces/feedback/Modal.interface'; \nimport { \n useResolvedColor, \n useResolvedRadius, \n useResolvedTheme, \n useModoConfig, \n useModoLocale,\n} from '../../composables/useModoConfig'; \nimport { resolveColorMode } from '../../composables/useColorMode';\nimport { lockBodyScroll, unlockBodyScroll } from '../../composables/useBodyScrollLock';\nimport { palettesToCssVars, semanticTokensFromPalettes } from '../../config/palettes';\nimport { hexToOklchString, pickForegroundOklch } from '../../config/colorPrimitives';\nimport { surfacesToCssVars } from '../../config/surfaces'; \nimport type { ModoColor, ModoRadius } from '../../config/ModoConfig'; \n \nconst props = withDefaults(defineProps<Modal>(), { \n modelValue: false, \n size: 'medium', \n position: 'center', \n closeOnOverlay: true, \n closeOnEscape: true, \n showClose: true, \n lockScroll: true, \n color: 'default', \n overlay: 'blur', \n innerBorder: true, \n disableOriginAnimation: false, \n});\n// Close button label: prop wins, then the provider locale (`common.close`).\nconst loc = useModoLocale();\nconst closeLabelText = computed(() => props.closeLabel ?? loc.value.common.close);\n \n \nconst emit = defineEmits<{ \n 'update:modelValue': [value: boolean]; \n open: []; \n close: []; \n afterLeave: []; \n}>(); \n \nconst autoId = useId(); \nconst titleId = computed(() => `modo-modal-${autoId}-title`); \nconst descriptionId = computed(() => `modo-modal-${autoId}-desc`); \n \nconst overlayRef = ref<HTMLElement | null>(null); \nconst panelRef = ref<HTMLElement | null>(null); \nconst contentRef = ref<HTMLElement | null>(null); \n \nconst resolvedColor = useResolvedColor(() => props.color as ModoColor | undefined); \nconst resolvedRadius = useResolvedRadius(() => props.radius as ModoRadius | undefined); \n \nconst cfg = useModoConfig(); \nconst theme = useResolvedTheme(); \nconst scopedTheme = computed(() => resolveColorMode(theme.value)); \n \nconst overlayStyle = 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 };\n}); \n \nfunction close() { \n if (!props.modelValue) return; \n emit('update:modelValue', false); \n emit('close'); \n} \n \n/* ---------- Click outside ---------- */ \nlet mouseDownOnOverlay = false; \nfunction onOverlayMouseDown(e: MouseEvent) { \n mouseDownOnOverlay = e.target === overlayRef.value; \n} \nfunction onOverlayClick(e: MouseEvent) { \n if (!props.closeOnOverlay) return; \n if (e.target !== overlayRef.value) return; \n if (!mouseDownOnOverlay) return; \n close(); \n} \n \n/* ---------- Keydown (Escape + focus trap) ---------- */ \nfunction onPanelKeydown(e: KeyboardEvent) { \n if (props.closeOnEscape && e.key === 'Escape') { \n e.preventDefault(); \n close(); \n return; \n } \n if (e.key === 'Tab' && panelRef.value) { \n const focusables = getFocusable(panelRef.value); \n if (focusables.length === 0) { \n e.preventDefault(); \n return; \n } \n const first = focusables[0]; \n const last = focusables[focusables.length - 1]; \n const active = document.activeElement as HTMLElement | null; \n if (e.shiftKey && active === first) { \n e.preventDefault(); \n last.focus(); \n } else if (!e.shiftKey && active === last) { \n e.preventDefault(); \n first.focus(); \n } \n } \n} \n \nconst FOCUSABLE_SELECTOR = \n 'a[href], area[href], input:not([disabled]):not([type=\"hidden\"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, [tabindex]:not([tabindex=\"-1\"]), [contenteditable=\"true\"]'; \n \nfunction getFocusable(container: HTMLElement): HTMLElement[] { \n return Array.from(container.querySelectorAll<HTMLElement>(FOCUSABLE_SELECTOR)) \n .filter((el) => !el.hasAttribute('disabled') && el.offsetParent !== null); \n} \n \n/* ---------- Animations (staged open/close) ---------- */ \n \nfunction prefersReducedMotion() { \n return typeof window !== 'undefined' \n && window.matchMedia('(prefers-reduced-motion: reduce)').matches; \n} \n \nlet capturedOrigin: HTMLElement | null = null; \nlet lastPointerTrigger: { el: HTMLElement; time: number } | null = null;\n\nfunction onWindowPointerDown(e: PointerEvent) {\n const target = e.target as Element | null;\n const trigger = target?.closest?.('button, a, [role=\"button\"], [tabindex]') as HTMLElement | null;\n if (trigger) {\n lastPointerTrigger = { el: trigger, time: Date.now() };\n }\n}\n\nfunction getOriginEl(): HTMLElement | null { \n if (props.origin) return props.origin; \n return capturedOrigin; \n} \n \nlet activeTimeline: gsap.core.Timeline | null = null; \n \nfunction onOverlayEnter(el: Element, done: () => void) { \n const overlay = (el as HTMLElement) ?? overlayRef.value; \n const panel = \n overlay?.querySelector<HTMLElement>('[data-modo-modal-panel]') \n ?? panelRef.value; \n if (!overlay || !panel) { done(); return; } \n \n activeTimeline?.kill(); \n \n if (prefersReducedMotion()) { \n gsap.set([overlay, panel], { opacity: 1, clearProps: 'transform' }); \n done(); \n return; \n } \n \n const origin = !props.disableOriginAnimation ? getOriginEl() : null; \n const pRect = panel.getBoundingClientRect(); \n \n const tl = gsap.timeline({ onComplete: () => { activeTimeline = null; done(); } }); \n activeTimeline = tl; \n \n // 1. Overlay fade in \n tl.fromTo(overlay, { opacity: 0 }, { opacity: 1, duration: 0.25, ease: 'power2.out' }, 0); \n \n // 2. Panel + contenido emergen juntos desde el trigger hasta su tamaño real\n if (origin && document.body.contains(origin)) { \n const oRect = origin.getBoundingClientRect(); \n const dx = oRect.left + oRect.width / 2 - (pRect.left + pRect.width / 2); \n const dy = oRect.top + oRect.height / 2 - (pRect.top + pRect.height / 2); \n const scaleX = Math.max(oRect.width / pRect.width, 0.05); \n const scaleY = Math.max(oRect.height / pRect.height, 0.05); \n tl.fromTo( \n panel, \n { x: dx, y: dy, scaleX, scaleY, opacity: 0.85, transformOrigin: 'center center' }, \n { x: 0, y: 0, scaleX: 1, scaleY: 1, opacity: 1, duration: 0.5, ease: 'power3.out' }, \n 0.05, \n ); \n } else { \n tl.fromTo( \n panel, \n { y: 16, scale: 0.95, opacity: 0 }, \n { y: 0, scale: 1, opacity: 1, duration: 0.35, ease: 'power2.out' }, \n 0, \n ); \n } \n} \n \nfunction onOverlayLeave(el: Element, done: () => void) { \n // Durante el leave, los template refs de Vue ya fueron desvinculados, \n // así que resolvemos los nodos desde el elemento que Transition nos entrega. \n const overlay = el as HTMLElement; \n const panel = \n overlay.querySelector<HTMLElement>('[data-modo-modal-panel]') \n ?? panelRef.value; \n // Bail out without animating, but never without releasing the lock — this\n // path is the one that used to strand `overflow: hidden` on <body>.\n if (!overlay || !panel) { releaseScrollLock(); done(); return; }\n\n activeTimeline?.kill();\n\n if (prefersReducedMotion()) {\n gsap.to(overlay, {\n opacity: 0,\n duration: 0.12,\n onComplete: () => { releaseScrollLock(); done(); },\n });\n return;\n }\n\n const origin = !props.disableOriginAnimation ? getOriginEl() : null; \n const pRect = panel.getBoundingClientRect(); \n \n const tl = gsap.timeline({ \n onComplete: () => { \n activeTimeline = null; \n releaseScrollLock(); \n done(); \n }, \n }); \n activeTimeline = tl; \n \n // El panel regresa con todo su contenido visible hacia su lugar de origen;\n // el overlay (padre del panel) solo cae en opacidad al final del recorrido\n // para no ocultar el vuelo de regreso antes de llegar al trigger.\n if (origin && document.body.contains(origin)) { \n const oRect = origin.getBoundingClientRect(); \n const dx = oRect.left + oRect.width / 2 - (pRect.left + pRect.width / 2); \n const dy = oRect.top + oRect.height / 2 - (pRect.top + pRect.height / 2); \n const scaleX = Math.max(oRect.width / pRect.width, 0.05); \n const scaleY = Math.max(oRect.height / pRect.height, 0.05); \n tl.to( \n panel, \n { x: dx, y: dy, scaleX, scaleY, transformOrigin: 'center center', duration: 0.38, ease: 'power3.in' }, \n 0, \n ); \n tl.to(overlay, { opacity: 0, duration: 0.28, ease: 'power3.in' }, 0.1); \n } else { \n tl.to( \n panel, \n { y: 10, scale: 0.95, opacity: 0, duration: 0.24, ease: 'power2.in' }, \n 0, \n ); \n tl.to(overlay, { opacity: 0, duration: 0.24, ease: 'power2.in' }, 0.04); \n } \n} \n \n/* ---------- Scroll lock + focus management ---------- */\nlet previouslyFocused: HTMLElement | null = null;\nlet scrollLocked = false;\n\nfunction releaseScrollLock() {\n if (!scrollLocked) return;\n scrollLocked = false;\n unlockBodyScroll();\n}\n\nonMounted(() => {\n if (typeof window !== 'undefined') {\n window.addEventListener('pointerdown', onWindowPointerDown, { capture: true, passive: true });\n }\n});\n\nwatch( \n () => props.modelValue, \n (open) => { \n if (open) { \n const active = document.activeElement as HTMLElement | null; \n const recentPointer =\n lastPointerTrigger\n && Date.now() - lastPointerTrigger.time < 600\n && document.body.contains(lastPointerTrigger.el)\n ? lastPointerTrigger.el\n : null;\n const triggerEl =\n active && active !== document.body && active !== document.documentElement\n ? active\n : recentPointer;\n previouslyFocused = triggerEl; \n capturedOrigin = triggerEl; \n \n if (props.lockScroll && !scrollLocked) {\n scrollLocked = true;\n lockBodyScroll();\n }\n emit('open'); \n nextTick(() => { \n if (!panelRef.value) return; \n const focusables = getFocusable(panelRef.value); \n (focusables[0] ?? panelRef.value).focus(); \n }); \n } else { \n // El scroll lock se libera en onOverlayLeave cuando termina la \n // animación, para evitar que aparezca el scrollbar y empuje el \n // modal antes de que desaparezca. \n if (previouslyFocused && typeof previouslyFocused.focus === 'function') { \n previouslyFocused.focus(); \n } \n previouslyFocused = null; \n emit('afterLeave'); \n } \n }, \n); \n \nonBeforeUnmount(() => { \n if (typeof window !== 'undefined') {\n window.removeEventListener('pointerdown', onWindowPointerDown, { capture: true });\n }\n activeTimeline?.kill(); \n releaseScrollLock(); \n}); \n \n/* ---------- Style maps ---------- */ \nconst sizeClasses = computed(() => { \n switch (props.size) { \n case 'xsmall': return 'max-w-xs';\n case 'small': return 'max-w-sm'; \n case 'large': return 'max-w-2xl'; \n case 'xlarge': return 'max-w-4xl'; \n case 'full': return 'max-w-none w-[calc(100vw-2rem)] h-[calc(100vh-2rem)]'; \n default: return 'max-w-md'; \n } \n}); \n \nconst radiusClasses = computed(() => { \n if (props.size === 'full') return 'rounded-xl'; \n switch (resolvedRadius.value) { \n case 'none': return 'rounded-none'; \n case 'small': return 'rounded-md'; \n case 'large': return 'rounded-2xl'; \n case 'full': return 'rounded-3xl'; \n default: return 'rounded-xl'; \n } \n}); \n \nconst innerBorderRadiusClass = computed(() => { \n if (props.size === 'full') return 'rounded-lg'; \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-[calc(1.5rem-4px)]'; \n default: return 'rounded-lg'; \n } \n}); \n \nconst positionClasses = computed(() => { \n if (props.position === 'top') return 'items-start justify-center p-4 sm:p-6 pt-[10vh]'; \n return 'items-center justify-center p-4 sm:p-6'; \n}); \n \nconst scrimVariant = computed(() => props.overlay ?? 'blur'); \n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+PA,IAAM,qBACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EArGJ,MAAM,QAAQ;EAcd,MAAM,MAAM,eAAe;EAC3B,MAAM,iBAAiB,eAAe,MAAM,cAAc,IAAI,MAAM,OAAO,MAAM;EAGjF,MAAM,OAAO;EAOb,MAAM,SAAS,OAAO;EACtB,MAAM,UAAU,eAAe,cAAc,OAAO,QAAQ;EAC5D,MAAM,gBAAgB,eAAe,cAAc,OAAO,OAAO;EAEjE,MAAM,aAAa,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AAA,WAAA,EADpC,mBA6BS,UAAA;;OA3BJ,OAAK,eAAA;;QAAgH,QAAA,YAAS,UAAA;QAAkDA,KAAAA,OAAO,WAAWA,KAAAA,OAAO,QAAQA,KAAAA,OAAO,SAAM,SAAA;;UAM/N,WAoBO,KAAA,QAAA,UAAA,EAAA,QAAA,CAlBO,QAAA,SAAA,WAAA,EADV,YASa,oBAAA;;OAPR,IAAI,QAAA;OACL,SAAQ;OACR,MAAK;OACL,IAAG;OACH,QAAO;;8BAEI,CAAA,gBAAA,gBAAR,QAAA,MAAK,EAAA,EAAA,CAAA,CAAA;;qDAGF,QAAA,eAAA,WAAA,EADV,YAQa,oBAAA;;OANR,IAAI,cAAA;OACL,SAAQ;OACR,MAAK;OACL,OAAM;;8BAEW,CAAA,gBAAA,gBAAd,QAAA,YAAW,EAAA,EAAA,CAAA,CAAA;;;MAOhBA,KAAAA,OAAO,WAAWA,KAAAA,OAAO,QAAA,WAAA,EADnC,mBAWM,OAAA;;OATD,OAAK,eAAA;;QAA6GA,KAAAA,OAAO,UAAU,QAAA,SAAS,QAAA,cAAW,KAAA;QAAkDA,KAAAA,OAAO,SAAM,SAAA;;UAMvN,WAEO,KAAA,QAAA,QAAA,EAAA,QAAA,CADH,WAAQ,KAAA,QAAA,UAAA,CAAA,CAAA,CAAA,EAAA,EAAA,IAAA,mBAAA,IAAA,KAAA;MAMNA,KAAAA,OAAO,UAAA,WAAA,EADjB,mBAeS,UAfT,YAeS,CAVK,QAAA,eAAA,WAAA,EADV,mBAIE,QAJF,WAIE,KAAA,WAAA,EACF,mBAIE,QAJF,WAIE,GACF,WAAqC,KAAA,QAAA,UAAA,EAAT,OAAK,CAAA,CAAA,CAAA,IAAA,mBAAA,IAAA,KAAA"}
1
+ {"version":3,"file":"Modal.vue_vue_type_script_setup_true_lang.mjs","names":["$slots"],"sources":["../../../src/components/feedback/Modal.vue"],"sourcesContent":["<template> \n <Teleport to=\"body\"> \n <Transition :css=\"false\" @enter=\"onOverlayEnter\" @leave=\"onOverlayLeave\" appear> \n <div \n v-if=\"modelValue\" \n ref=\"overlayRef\" \n :class=\"[ \n 'modo-modal-overlay fixed inset-0 z-1200 flex opacity-0', \n positionClasses, \n ]\" \n :style=\"overlayStyle\" \n :data-modo-theme=\"scopedTheme || undefined\" \n @mousedown=\"onOverlayMouseDown\" \n @click=\"onOverlayClick\" \n > \n <!-- Scrim (shared Valux material, dark veil in both modes) -->\n <div\n aria-hidden=\"true\"\n class=\"modo-scrim pointer-events-none absolute inset-0\"\n :data-modo-scrim=\"scrimVariant\"\n />\n <div \n ref=\"panelRef\" \n data-modo-modal-panel \n role=\"dialog\" \n aria-modal=\"true\" \n :aria-labelledby=\"title ? titleId : undefined\" \n :aria-describedby=\"description ? descriptionId : undefined\" \n :aria-label=\"!title ? ariaLabel : undefined\" \n :class=\"[ \n 'modo-modal relative flex flex-col w-full bg-card text-foreground overflow-hidden', \n 'dark:bg-card/85 dark:backdrop-blur-xl', \n 'border border-border shadow-xl outline-none focus:outline-none focus-visible:outline-none', \n sizeClasses, \n radiusClasses, \n ]\" \n tabindex=\"-1\" \n @click.stop \n @keydown=\"onPanelKeydown\" \n > \n <!-- Inner border layer --> \n <span \n v-if=\"innerBorder\" \n aria-hidden=\"true\" \n :class=\"[ \n 'pointer-events-none absolute inset-1 border border-border/40', \n innerBorderRadiusClass, \n ]\" \n /> \n \n <!-- Close button (usa nuestro Button en modo icono) --> \n <div v-if=\"showClose\" class=\"absolute top-3 right-3 z-10\"> \n <Button \n variant=\"text\" \n size=\"small\" \n :color=\"resolvedColor\" \n :icon=\"XMarkIcon\" \n :ariaLabel=\"closeLabelText\" \n @click=\"close\" \n /> \n </div> \n \n <!-- Content wrapper --> \n <div ref=\"contentRef\" data-modo-modal-content class=\"flex flex-col min-h-0 flex-1\"> \n <!-- Header --> \n <header \n v-if=\"$slots.header || title || description\" \n :class=\"[ \n 'relative flex flex-col gap-1 px-6 pt-6', \n showClose ? 'pr-12' : '', \n $slots.default || $slots.body || $slots.footer ? 'pb-4' : 'pb-6', \n ]\" \n > \n <slot name=\"header\"> \n <Typography \n v-if=\"title\" \n :id=\"titleId\" \n variant=\"title\" \n size=\"medium\" \n as=\"h2\" \n weight=\"semibold\" \n > \n {{ title }} \n </Typography> \n <Typography \n v-if=\"description\" \n :id=\"descriptionId\" \n variant=\"body\" \n size=\"small\" \n color=\"muted\" \n > \n {{ description }} \n </Typography> \n </slot> \n </header> \n \n <!-- Body --> \n <div \n v-if=\"$slots.default || $slots.body\" \n :class=\"[ \n 'relative flex-1 overflow-auto px-6', \n ($slots.header || title || description) ? '' : 'pt-6', \n $slots.footer ? 'pb-4' : 'pb-6', \n ]\" \n > \n <slot name=\"body\"> \n <slot /> \n </slot> \n </div> \n \n <!-- Footer (divider respeta inner border con inset) --> \n <footer \n v-if=\"$slots.footer\" \n class=\"relative flex items-center justify-end gap-2 px-6 py-4\" \n > \n <span \n v-if=\"innerBorder\" \n aria-hidden=\"true\" \n class=\"pointer-events-none absolute top-0 left-1 right-1 h-px bg-border/40\" \n /> \n <span \n v-else \n aria-hidden=\"true\" \n class=\"pointer-events-none absolute top-0 left-0 right-0 h-px bg-border\" \n /> \n <slot name=\"footer\" :close=\"close\" /> \n </footer> \n </div> \n </div> \n </div> \n </Transition> \n </Teleport> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed, nextTick, onBeforeUnmount, onMounted, ref, useId, watch } from 'vue'; \nimport { gsap } from 'gsap'; \nimport { XMarkIcon } from '@heroicons/vue/24/outline'; \nimport Button from '../forms/Button.vue'; \nimport Typography from '../data-display/Typography.vue'; \nimport type { Modal } from '../../interfaces/feedback/Modal.interface'; \nimport { \n useResolvedColor, \n useResolvedRadius, \n useResolvedTheme, \n useModoConfig, \n useModoLocale,\n} from '../../composables/useModoConfig'; \nimport { resolveColorMode } from '../../composables/useColorMode';\nimport { lockBodyScroll, unlockBodyScroll } from '../../composables/useBodyScrollLock';\nimport { palettesToCssVars, semanticTokensFromPalettes } from '../../config/palettes';\nimport { hexToOklchString, pickForegroundOklch } from '../../config/colorPrimitives';\nimport { surfacesToCssVars } from '../../config/surfaces'; \nimport type { ModoColor, ModoRadius } from '../../config/ModoConfig'; \n \nconst props = withDefaults(defineProps<Modal>(), { \n modelValue: false, \n size: 'medium', \n position: 'center', \n closeOnOverlay: true, \n closeOnEscape: true, \n showClose: true, \n lockScroll: true, \n color: 'default', \n overlay: 'blur', \n innerBorder: true, \n disableOriginAnimation: false, \n});\n// Close button label: prop wins, then the provider locale (`common.close`).\nconst loc = useModoLocale();\nconst closeLabelText = computed(() => props.closeLabel ?? loc.value.common.close);\n \n \nconst emit = defineEmits<{ \n 'update:modelValue': [value: boolean]; \n open: []; \n close: []; \n afterLeave: []; \n}>(); \n \nconst autoId = useId(); \nconst titleId = computed(() => `modo-modal-${autoId}-title`); \nconst descriptionId = computed(() => `modo-modal-${autoId}-desc`); \n \nconst overlayRef = ref<HTMLElement | null>(null); \nconst panelRef = ref<HTMLElement | null>(null); \nconst contentRef = ref<HTMLElement | null>(null); \n \nconst resolvedColor = useResolvedColor(() => props.color as ModoColor | undefined); \nconst resolvedRadius = useResolvedRadius(() => props.radius as ModoRadius | undefined); \n \nconst cfg = useModoConfig(); \nconst theme = useResolvedTheme(); \nconst scopedTheme = computed(() => resolveColorMode(theme.value)); \n \nconst overlayStyle = 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 };\n}); \n \nfunction close() { \n if (!props.modelValue) return; \n emit('update:modelValue', false); \n emit('close'); \n} \n \n/* ---------- Click outside ---------- */ \nlet mouseDownOnOverlay = false; \nfunction onOverlayMouseDown(e: MouseEvent) { \n mouseDownOnOverlay = e.target === overlayRef.value; \n} \nfunction onOverlayClick(e: MouseEvent) { \n if (!props.closeOnOverlay) return; \n if (e.target !== overlayRef.value) return; \n if (!mouseDownOnOverlay) return; \n close(); \n} \n \n/* ---------- Keydown (Escape + focus trap) ---------- */ \nfunction onPanelKeydown(e: KeyboardEvent) { \n if (props.closeOnEscape && e.key === 'Escape') { \n e.preventDefault(); \n close(); \n return; \n } \n if (e.key === 'Tab' && panelRef.value) { \n const focusables = getFocusable(panelRef.value); \n if (focusables.length === 0) { \n e.preventDefault(); \n return; \n } \n const first = focusables[0]; \n const last = focusables[focusables.length - 1]; \n const active = document.activeElement as HTMLElement | null; \n if (e.shiftKey && active === first) { \n e.preventDefault(); \n last.focus(); \n } else if (!e.shiftKey && active === last) { \n e.preventDefault(); \n first.focus(); \n } \n } \n} \n \nconst FOCUSABLE_SELECTOR = \n 'a[href], area[href], input:not([disabled]):not([type=\"hidden\"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, [tabindex]:not([tabindex=\"-1\"]), [contenteditable=\"true\"]'; \n \nfunction getFocusable(container: HTMLElement): HTMLElement[] { \n return Array.from(container.querySelectorAll<HTMLElement>(FOCUSABLE_SELECTOR)) \n .filter((el) => !el.hasAttribute('disabled') && el.offsetParent !== null); \n} \n \n/* ---------- Animations (staged open/close) ---------- */ \n \nfunction prefersReducedMotion() { \n return typeof window !== 'undefined' \n && window.matchMedia('(prefers-reduced-motion: reduce)').matches; \n} \n \nlet capturedOrigin: HTMLElement | null = null; \nlet lastPointerTrigger: { el: HTMLElement; time: number } | null = null;\n\nfunction onWindowPointerDown(e: PointerEvent) {\n const target = e.target as Element | null;\n const trigger = target?.closest?.('button, a, [role=\"button\"], [tabindex]') as HTMLElement | null;\n if (trigger) {\n lastPointerTrigger = { el: trigger, time: Date.now() };\n }\n}\n\nfunction getOriginEl(): HTMLElement | null { \n if (props.origin) return props.origin; \n return capturedOrigin; \n} \n \nlet activeTimeline: gsap.core.Timeline | null = null; \n \nfunction onOverlayEnter(el: Element, done: () => void) { \n const overlay = (el as HTMLElement) ?? overlayRef.value; \n const panel = \n overlay?.querySelector<HTMLElement>('[data-modo-modal-panel]') \n ?? panelRef.value; \n if (!overlay || !panel) { done(); return; } \n \n activeTimeline?.kill(); \n \n if (prefersReducedMotion()) { \n gsap.set([overlay, panel], { opacity: 1, clearProps: 'transform' }); \n done(); \n return; \n } \n \n const origin = !props.disableOriginAnimation ? getOriginEl() : null; \n const pRect = panel.getBoundingClientRect(); \n \n const tl = gsap.timeline({ onComplete: () => { activeTimeline = null; done(); } }); \n activeTimeline = tl; \n \n // 1. Overlay fade in \n tl.fromTo(overlay, { opacity: 0 }, { opacity: 1, duration: 0.25, ease: 'power2.out' }, 0); \n \n // 2. Panel + contenido emergen juntos desde el trigger hasta su tamaño real\n if (origin && document.body.contains(origin)) { \n const oRect = origin.getBoundingClientRect(); \n const dx = oRect.left + oRect.width / 2 - (pRect.left + pRect.width / 2); \n const dy = oRect.top + oRect.height / 2 - (pRect.top + pRect.height / 2); \n const scaleX = Math.max(oRect.width / pRect.width, 0.05); \n const scaleY = Math.max(oRect.height / pRect.height, 0.05); \n tl.fromTo( \n panel, \n { x: dx, y: dy, scaleX, scaleY, opacity: 0.85, transformOrigin: 'center center' }, \n { x: 0, y: 0, scaleX: 1, scaleY: 1, opacity: 1, duration: 0.5, ease: 'power3.out' }, \n 0.05, \n ); \n } else { \n tl.fromTo( \n panel, \n { y: 16, scale: 0.95, opacity: 0 }, \n { y: 0, scale: 1, opacity: 1, duration: 0.35, ease: 'power2.out' }, \n 0, \n ); \n } \n} \n \nfunction onOverlayLeave(el: Element, done: () => void) { \n // Durante el leave, los template refs de Vue ya fueron desvinculados, \n // así que resolvemos los nodos desde el elemento que Transition nos entrega. \n const overlay = el as HTMLElement; \n const panel = \n overlay.querySelector<HTMLElement>('[data-modo-modal-panel]') \n ?? panelRef.value; \n // Bail out without animating, but never without releasing the lock — this\n // path is the one that used to strand `overflow: hidden` on <body>.\n if (!overlay || !panel) { releaseScrollLock(); done(); return; }\n\n activeTimeline?.kill();\n\n if (prefersReducedMotion()) {\n gsap.to(overlay, {\n opacity: 0,\n duration: 0.12,\n onComplete: () => { releaseScrollLock(); done(); },\n });\n return;\n }\n\n const origin = !props.disableOriginAnimation ? getOriginEl() : null; \n const pRect = panel.getBoundingClientRect(); \n \n const tl = gsap.timeline({ \n onComplete: () => { \n activeTimeline = null; \n releaseScrollLock(); \n done(); \n }, \n }); \n activeTimeline = tl; \n \n // El panel regresa con todo su contenido visible hacia su lugar de origen;\n // el overlay (padre del panel) solo cae en opacidad al final del recorrido\n // para no ocultar el vuelo de regreso antes de llegar al trigger.\n if (origin && document.body.contains(origin)) { \n const oRect = origin.getBoundingClientRect(); \n const dx = oRect.left + oRect.width / 2 - (pRect.left + pRect.width / 2); \n const dy = oRect.top + oRect.height / 2 - (pRect.top + pRect.height / 2); \n const scaleX = Math.max(oRect.width / pRect.width, 0.05); \n const scaleY = Math.max(oRect.height / pRect.height, 0.05); \n tl.to( \n panel, \n { x: dx, y: dy, scaleX, scaleY, transformOrigin: 'center center', duration: 0.38, ease: 'power3.in' }, \n 0, \n ); \n tl.to(overlay, { opacity: 0, duration: 0.28, ease: 'power3.in' }, 0.1); \n } else { \n tl.to( \n panel, \n { y: 10, scale: 0.95, opacity: 0, duration: 0.24, ease: 'power2.in' }, \n 0, \n ); \n tl.to(overlay, { opacity: 0, duration: 0.24, ease: 'power2.in' }, 0.04); \n } \n} \n \n/* ---------- Scroll lock + focus management ---------- */\nlet previouslyFocused: HTMLElement | null = null;\nlet scrollLocked = false;\n\nfunction releaseScrollLock() {\n if (!scrollLocked) return;\n scrollLocked = false;\n unlockBodyScroll();\n}\n\nonMounted(() => {\n if (typeof window !== 'undefined') {\n window.addEventListener('pointerdown', onWindowPointerDown, { capture: true, passive: true });\n }\n});\n\nwatch( \n () => props.modelValue, \n (open) => { \n if (open) { \n const active = document.activeElement as HTMLElement | null; \n const recentPointer =\n lastPointerTrigger\n && Date.now() - lastPointerTrigger.time < 600\n && document.body.contains(lastPointerTrigger.el)\n ? lastPointerTrigger.el\n : null;\n const triggerEl =\n active && active !== document.body && active !== document.documentElement\n ? active\n : recentPointer;\n previouslyFocused = triggerEl; \n capturedOrigin = triggerEl; \n \n if (props.lockScroll && !scrollLocked) {\n scrollLocked = true;\n lockBodyScroll();\n }\n emit('open'); \n nextTick(() => { \n if (!panelRef.value) return; \n const focusables = getFocusable(panelRef.value); \n (focusables[0] ?? panelRef.value).focus(); \n }); \n } else { \n // El scroll lock se libera en onOverlayLeave cuando termina la \n // animación, para evitar que aparezca el scrollbar y empuje el \n // modal antes de que desaparezca. \n if (previouslyFocused && typeof previouslyFocused.focus === 'function') { \n previouslyFocused.focus(); \n } \n previouslyFocused = null; \n emit('afterLeave'); \n } \n }, \n); \n \nonBeforeUnmount(() => { \n if (typeof window !== 'undefined') {\n window.removeEventListener('pointerdown', onWindowPointerDown, { capture: true });\n }\n activeTimeline?.kill(); \n releaseScrollLock(); \n}); \n \n/* ---------- Style maps ---------- */ \nconst sizeClasses = computed(() => { \n switch (props.size) { \n case 'xsmall': return 'max-w-xs';\n case 'small': return 'max-w-sm'; \n case 'large': return 'max-w-2xl'; \n case 'xlarge': return 'max-w-4xl'; \n case 'full': return 'max-w-none w-[calc(100vw-2rem)] h-[calc(100vh-2rem)]'; \n default: return 'max-w-md'; \n } \n}); \n \nconst radiusClasses = computed(() => { \n if (props.size === 'full') return 'rounded-xl'; \n switch (resolvedRadius.value) { \n case 'none': return 'rounded-none'; \n case 'small': return 'rounded-md'; \n case 'large': return 'rounded-2xl'; \n case 'full': return 'rounded-3xl'; \n default: return 'rounded-xl'; \n } \n}); \n \nconst innerBorderRadiusClass = computed(() => { \n if (props.size === 'full') return 'rounded-lg'; \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-[calc(1.5rem-4px)]'; \n default: return 'rounded-lg'; \n } \n}); \n \nconst positionClasses = computed(() => { \n if (props.position === 'top') return 'items-start justify-center p-4 sm:p-6 pt-[10vh]'; \n return 'items-center justify-center p-4 sm:p-6'; \n}); \n \nconst scrimVariant = computed(() => props.overlay ?? 'blur'); \n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+PA,IAAM,qBACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EArGJ,MAAM,QAAQ;EAcd,MAAM,MAAM,eAAe;EAC3B,MAAM,iBAAiB,eAAe,MAAM,cAAc,IAAI,MAAM,OAAO,MAAM;EAGjF,MAAM,OAAO;EAOb,MAAM,SAAS,OAAO;EACtB,MAAM,UAAU,eAAe,cAAc,OAAO,QAAQ;EAC5D,MAAM,gBAAgB,eAAe,cAAc,OAAO,OAAO;EAEjE,MAAM,aAAa,IAAwB,KAAK;EAChD,MAAM,WAAW,IAAwB,KAAK;EAC9C,MAAM,aAAa,IAAwB,KAAK;EAEhD,MAAM,gBAAgB,uBAAuB,MAAM,MAA+B;EAClF,MAAM,iBAAiB,wBAAwB,MAAM,OAAiC;EAEtF,MAAM,MAAM,eAAe;EAC3B,MAAM,QAAQ,kBAAkB;EAChC,MAAM,cAAc,eAAe,iBAAiB,MAAM,MAAM,CAAC;EAEjE,MAAM,eAAe,eAAe;GAChC,MAAM,eAAe,KAAK,MAAM,WAC1B;IACE,GAAG,kBAAkB,IAAI,MAAM,SAAS;IACxC,GAAG,2BAA2B,IAAI,MAAM,UAAU,kBAAkB,oBAAoB;IAC3F,GACC,EAAE;GACR,MAAM,cAAc,KAAK,MAAM,WACzB,kBAAkB,IAAI,MAAM,SAAQ,GACpC,EAAE;GACR,MAAM,kBAAmB,YAAY,UAAU,UAAU,KAAK,MAAM,eAC9D,kBAAkB,IAAI,MAAM,aAAY,GACxC,EAAE;GACR,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