@wow-two-beta/fe 0.0.49 → 0.0.50

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 (149) hide show
  1. package/dist/feedback/FeedbackBus.d.ts +154 -29
  2. package/dist/feedback/FeedbackBus.js +264 -27
  3. package/dist/feedback/FeedbackBus.js.map +1 -1
  4. package/dist/feedback/index.d.ts +1 -1
  5. package/dist/feedback/index.js +3 -1
  6. package/dist/foundation/dom/enums/ElementTag.d.ts +2 -0
  7. package/dist/foundation/dom/enums/ElementTag.js +3 -1
  8. package/dist/foundation/dom/enums/ElementTag.js.map +1 -1
  9. package/dist/index.js +325 -312
  10. package/dist/index.js.map +1 -1
  11. package/dist/presentation/display/index.js +105 -102
  12. package/dist/presentation/display/index.js.map +1 -1
  13. package/dist/presentation/display/notificationCenterGroup/NotificationCenterButton.vue.d.ts +18 -0
  14. package/dist/presentation/display/notificationCenterGroup/NotificationCenterButton.vue.js +120 -0
  15. package/dist/presentation/display/notificationCenterGroup/NotificationCenterButton.vue.js.map +1 -0
  16. package/dist/presentation/display/notificationCenterGroup/NotificationCenterButton2.vue.js +5 -0
  17. package/dist/presentation/display/notificationCenterGroup/NotificationCenterButton2.vue.js.map +1 -0
  18. package/dist/presentation/display/notificationCenterGroup/NotificationCenterGroup.vue.d.ts +11 -6
  19. package/dist/presentation/display/notificationCenterGroup/NotificationCenterGroup.vue.js +255 -61
  20. package/dist/presentation/display/notificationCenterGroup/NotificationCenterGroup.vue.js.map +1 -1
  21. package/dist/presentation/display/notificationCenterGroup/{NotificationItem.vue.d.ts → NotificationCenterGroupItem.vue.d.ts} +13 -12
  22. package/dist/presentation/display/notificationCenterGroup/{NotificationItem.vue.js → NotificationCenterGroupItem.vue.js} +81 -58
  23. package/dist/presentation/display/notificationCenterGroup/NotificationCenterGroupItem.vue.js.map +1 -0
  24. package/dist/presentation/display/notificationCenterGroup/NotificationCenterGroupItem2.vue.js +5 -0
  25. package/dist/presentation/display/notificationCenterGroup/NotificationCenterGroupItem2.vue.js.map +1 -0
  26. package/dist/presentation/display/notificationCenterGroup/index.d.ts +6 -1
  27. package/dist/presentation/feedback/feedbackToastHost/FeedbackToastHost.vue.d.ts +1 -9
  28. package/dist/presentation/feedback/feedbackToastHost/FeedbackToastHost.vue.js +165 -20
  29. package/dist/presentation/feedback/feedbackToastHost/FeedbackToastHost.vue.js.map +1 -1
  30. package/dist/presentation/feedback/feedbackToastHost/RemindLaterButton.vue.d.ts +7 -0
  31. package/dist/presentation/feedback/feedbackToastHost/RemindLaterButton.vue.js +56 -0
  32. package/dist/presentation/feedback/feedbackToastHost/RemindLaterButton.vue.js.map +1 -0
  33. package/dist/presentation/feedback/feedbackToastHost/RemindLaterButton2.vue.js +5 -0
  34. package/dist/presentation/feedback/feedbackToastHost/RemindLaterButton2.vue.js.map +1 -0
  35. package/dist/presentation/feedback/index.js +9 -1
  36. package/dist/presentation/feedback/index.js.map +1 -1
  37. package/dist/presentation/feedback/toast/Toast.vue.d.ts +34 -8
  38. package/dist/presentation/feedback/toast/Toast.vue.js +290 -85
  39. package/dist/presentation/feedback/toast/Toast.vue.js.map +1 -1
  40. package/dist/presentation/feedback/toast/ToastContent.vue.d.ts +25 -0
  41. package/dist/presentation/feedback/toast/ToastContent.vue.js +78 -0
  42. package/dist/presentation/feedback/toast/ToastContent.vue.js.map +1 -0
  43. package/dist/presentation/feedback/toast/ToastContent2.vue.js +5 -0
  44. package/dist/presentation/feedback/toast/ToastContent2.vue.js.map +1 -0
  45. package/dist/presentation/feedback/toast/ToastRunningProgress.vue.d.ts +15 -0
  46. package/dist/presentation/feedback/toast/ToastRunningProgress.vue.js +88 -0
  47. package/dist/presentation/feedback/toast/ToastRunningProgress.vue.js.map +1 -0
  48. package/dist/presentation/feedback/toast/ToastRunningProgress2.vue.js +5 -0
  49. package/dist/presentation/feedback/toast/ToastRunningProgress2.vue.js.map +1 -0
  50. package/dist/presentation/feedback/toast/ToastSurface.d.ts +8 -0
  51. package/dist/presentation/feedback/toast/ToastSurface.js +10 -0
  52. package/dist/presentation/feedback/toast/ToastSurface.js.map +1 -0
  53. package/dist/presentation/feedback/toast/index.d.ts +1 -0
  54. package/dist/presentation/feedback/toastHost/ToastContent.d.ts +3 -0
  55. package/dist/presentation/feedback/toastHost/ToastEntry.d.ts +12 -0
  56. package/dist/presentation/feedback/toastHost/ToastFocusExtensions.d.ts +2 -0
  57. package/dist/presentation/feedback/toastHost/ToastFocusExtensions.js +11 -0
  58. package/dist/presentation/feedback/toastHost/ToastFocusExtensions.js.map +1 -0
  59. package/dist/presentation/feedback/toastHost/ToastGroup.d.ts +8 -0
  60. package/dist/presentation/feedback/toastHost/ToastGroupLatest.d.ts +10 -0
  61. package/dist/presentation/feedback/toastHost/ToastHost.vue.d.ts +55 -110
  62. package/dist/presentation/feedback/toastHost/ToastHost.vue.js +394 -399
  63. package/dist/presentation/feedback/toastHost/ToastHost.vue.js.map +1 -1
  64. package/dist/presentation/feedback/toastHost/ToastHost2.vue.js +4 -5
  65. package/dist/presentation/feedback/toastHost/ToastHostStore.d.ts +37 -0
  66. package/dist/presentation/feedback/toastHost/ToastHostStore.js +98 -0
  67. package/dist/presentation/feedback/toastHost/ToastHostStore.js.map +1 -0
  68. package/dist/presentation/feedback/toastHost/ToastHostStyles.d.ts +34 -0
  69. package/dist/presentation/feedback/toastHost/ToastHostStyles.js +44 -0
  70. package/dist/presentation/feedback/toastHost/ToastHostStyles.js.map +1 -0
  71. package/dist/presentation/feedback/toastHost/ToastNode.d.ts +3 -0
  72. package/dist/presentation/feedback/toastHost/ToastOptions.d.ts +72 -0
  73. package/dist/presentation/feedback/toastHost/ToastProgress.vue.d.ts +11 -0
  74. package/dist/presentation/feedback/toastHost/ToastProgress.vue.js +44 -0
  75. package/dist/presentation/feedback/toastHost/ToastProgress.vue.js.map +1 -0
  76. package/dist/presentation/feedback/toastHost/ToastProgress2.vue.js +5 -0
  77. package/dist/presentation/feedback/toastHost/ToastProgress2.vue.js.map +1 -0
  78. package/dist/presentation/feedback/toastHost/ToastPromiseOptions.d.ts +12 -0
  79. package/dist/presentation/feedback/toastHost/ToastRing.vue.d.ts +14 -0
  80. package/dist/presentation/feedback/toastHost/ToastRing.vue.js +65 -0
  81. package/dist/presentation/feedback/toastHost/ToastRing.vue.js.map +1 -0
  82. package/dist/presentation/feedback/toastHost/ToastRing2.vue.js +5 -0
  83. package/dist/presentation/feedback/toastHost/ToastRing2.vue.js.map +1 -0
  84. package/dist/presentation/feedback/toastHost/ToastSeconds.vue.d.ts +9 -0
  85. package/dist/presentation/feedback/toastHost/ToastSeconds.vue.js +56 -0
  86. package/dist/presentation/feedback/toastHost/ToastSeconds.vue.js.map +1 -0
  87. package/dist/presentation/feedback/toastHost/ToastSeconds2.vue.js +5 -0
  88. package/dist/presentation/feedback/toastHost/ToastSeconds2.vue.js.map +1 -0
  89. package/dist/presentation/feedback/toastHost/ToastSeverity.d.ts +3 -0
  90. package/dist/presentation/feedback/toastHost/UseResolvedToasts.d.ts +27 -0
  91. package/dist/presentation/feedback/toastHost/UseResolvedToasts.js +34 -0
  92. package/dist/presentation/feedback/toastHost/UseResolvedToasts.js.map +1 -0
  93. package/dist/presentation/feedback/toastHost/UseToastAnnouncer.d.ts +14 -0
  94. package/dist/presentation/feedback/toastHost/UseToastAnnouncer.js +106 -0
  95. package/dist/presentation/feedback/toastHost/UseToastAnnouncer.js.map +1 -0
  96. package/dist/presentation/feedback/toastHost/UseToastCapacity.d.ts +34 -0
  97. package/dist/presentation/feedback/toastHost/UseToastCapacity.js +128 -0
  98. package/dist/presentation/feedback/toastHost/UseToastCapacity.js.map +1 -0
  99. package/dist/presentation/feedback/toastHost/UseToastClock.d.ts +44 -0
  100. package/dist/presentation/feedback/toastHost/UseToastClock.js +134 -0
  101. package/dist/presentation/feedback/toastHost/UseToastClock.js.map +1 -0
  102. package/dist/presentation/feedback/toastHost/UseToastCountdown.d.ts +26 -0
  103. package/dist/presentation/feedback/toastHost/UseToastCountdown.js +23 -0
  104. package/dist/presentation/feedback/toastHost/UseToastCountdown.js.map +1 -0
  105. package/dist/presentation/feedback/toastHost/UseToastEntries.d.ts +4 -0
  106. package/dist/presentation/feedback/toastHost/UseToastEntries.js +17 -0
  107. package/dist/presentation/feedback/toastHost/UseToastEntries.js.map +1 -0
  108. package/dist/presentation/feedback/toastHost/UseToastExits.d.ts +11 -0
  109. package/dist/presentation/feedback/toastHost/UseToastExits.js +52 -0
  110. package/dist/presentation/feedback/toastHost/UseToastExits.js.map +1 -0
  111. package/dist/presentation/feedback/toastHost/UseToastGroupMotion.d.ts +43 -0
  112. package/dist/presentation/feedback/toastHost/UseToastGroupMotion.js +173 -0
  113. package/dist/presentation/feedback/toastHost/UseToastGroupMotion.js.map +1 -0
  114. package/dist/presentation/feedback/toastHost/UseToastHost.d.ts +10 -0
  115. package/dist/presentation/feedback/toastHost/UseToastHost.js +14 -0
  116. package/dist/presentation/feedback/toastHost/UseToastHost.js.map +1 -0
  117. package/dist/presentation/feedback/toastHost/UseToastHotkey.d.ts +20 -0
  118. package/dist/presentation/feedback/toastHost/UseToastHotkey.js +66 -0
  119. package/dist/presentation/feedback/toastHost/UseToastHotkey.js.map +1 -0
  120. package/dist/presentation/feedback/toastHost/UseToastPins.d.ts +26 -0
  121. package/dist/presentation/feedback/toastHost/UseToastPins.js +35 -0
  122. package/dist/presentation/feedback/toastHost/UseToastPins.js.map +1 -0
  123. package/dist/presentation/feedback/toastHost/UseToastStackMotion.d.ts +27 -0
  124. package/dist/presentation/feedback/toastHost/UseToastStackMotion.js +96 -0
  125. package/dist/presentation/feedback/toastHost/UseToastStackMotion.js.map +1 -0
  126. package/dist/presentation/feedback/toastHost/UseToastSwipe.d.ts +19 -0
  127. package/dist/presentation/feedback/toastHost/UseToastSwipe.js +173 -0
  128. package/dist/presentation/feedback/toastHost/UseToastSwipe.js.map +1 -0
  129. package/dist/presentation/feedback/toastHost/index.d.ts +8 -1
  130. package/dist/presentation/feedback/toastHost/index.js +7 -1
  131. package/dist/presentation/feedback/toastHost/index.js.map +1 -1
  132. package/dist/presentation/feedback/toastHost/styles.css +14 -2
  133. package/dist/presentation/layout/grid/Grid.variants.d.ts +7 -0
  134. package/dist/presentation/layout/grid/Grid.variants.js +4 -0
  135. package/dist/presentation/layout/grid/Grid.variants.js.map +1 -1
  136. package/dist/presentation/layout/grid/Grid.vue.d.ts +5 -0
  137. package/dist/presentation/layout/grid/Grid.vue.js +16 -4
  138. package/dist/presentation/layout/grid/Grid.vue.js.map +1 -1
  139. package/dist/presentation/layout/grid/index.d.ts +1 -1
  140. package/dist/presentation/layout/index.js +3 -1
  141. package/dist/presentation/layout/navbar/Navbar.vue.js.map +1 -1
  142. package/dist/presentation/overlays/popover/PopoverContent.vue.js +4 -4
  143. package/dist/presentation/overlays/popover/PopoverContent.vue.js.map +1 -1
  144. package/dist/presentation/overlays/tooltip/Tooltip.vue.js +8 -9
  145. package/dist/presentation/overlays/tooltip/Tooltip.vue.js.map +1 -1
  146. package/package.json +1 -1
  147. package/dist/presentation/display/notificationCenterGroup/NotificationItem.vue.js.map +0 -1
  148. package/dist/presentation/display/notificationCenterGroup/NotificationItem2.vue.js +0 -5
  149. package/dist/presentation/display/notificationCenterGroup/NotificationItem2.vue.js.map +0 -1
@@ -93,6 +93,13 @@ export type GridBreakpoint = (typeof GridBreakpoint)[keyof typeof GridBreakpoint
93
93
  * `base` is the unprefixed value; the rest map to Tailwind's `sm:`–`xl:` prefixes.
94
94
  */
95
95
  export type GridResponsive<T extends string> = Partial<Record<GridBreakpoint, T>>;
96
+ /** Defines the custom property `Grid` reads its `minColumnWidth` from. */
97
+ export declare const GridMinColumnVariable = "--grid-min-column";
98
+ /**
99
+ * Defines the auto-fill track list for `minColumnWidth`: as many equal columns as fit at the minimum width, one
100
+ * full-width column when even one does not fit.
101
+ */
102
+ export declare const GridAutoFillColumns = "grid-cols-[repeat(auto-fill,minmax(min(100%,var(--grid-min-column)),1fr))]";
96
103
  /** Resolves a scalar-or-responsive `columns` value to its complete Tailwind class string. */
97
104
  export declare function resolveGridColumns(value: GridColumns | GridResponsive<GridColumns> | undefined): string | undefined;
98
105
  /** Resolves a scalar-or-responsive `gap` value to its complete Tailwind class string. */
@@ -157,6 +157,8 @@ const GapClasses = {
157
157
  }
158
158
  };
159
159
  const BreakpointOrder = ["base", "sm", "md", "lg", "xl"];
160
+ const GridMinColumnVariable = "--grid-min-column";
161
+ const GridAutoFillColumns = "grid-cols-[repeat(auto-fill,minmax(min(100%,var(--grid-min-column)),1fr))]";
160
162
  function resolveGridColumns(value) {
161
163
  if (value === void 0) return void 0;
162
164
  if (typeof value === "string") return ColumnClasses.base[value];
@@ -174,7 +176,9 @@ function resolveGridGap(value) {
174
176
  }).filter((c) => Boolean(c)).join(" ");
175
177
  }
176
178
  export {
179
+ GridAutoFillColumns,
177
180
  GridBreakpoint,
181
+ GridMinColumnVariable,
178
182
  gridVariants,
179
183
  resolveGridColumns,
180
184
  resolveGridGap
@@ -1 +1 @@
1
- {"version":3,"file":"Grid.variants.js","sources":["../../../../src/presentation/layout/grid/Grid.variants.ts"],"sourcesContent":["import { tv, type VariantProps } from '../../../foundation/styles';\n\nexport const gridVariants = tv({\n base: 'grid',\n variants: {\n columns: {\n '1': 'grid-cols-1',\n '2': 'grid-cols-2',\n '3': 'grid-cols-3',\n '4': 'grid-cols-4',\n '5': 'grid-cols-5',\n '6': 'grid-cols-6',\n '8': 'grid-cols-8',\n '12': 'grid-cols-12',\n },\n gap: {\n '0': 'gap-0',\n '1': 'gap-1',\n '2': 'gap-2',\n '3': 'gap-3',\n '4': 'gap-4',\n '5': 'gap-5',\n '6': 'gap-6',\n '8': 'gap-8',\n '10': 'gap-10',\n '12': 'gap-12',\n },\n },\n defaultVariants: {\n columns: '2',\n gap: '4',\n },\n});\n\nexport type GridVariants = VariantProps<typeof gridVariants>;\n\n/** Represents the scalar column count accepted by `Grid` (also the per-breakpoint value). */\nexport type GridColumns = NonNullable<GridVariants['columns']>;\n\n/** Represents the scalar gap step accepted by `Grid` (also the per-breakpoint value). */\nexport type GridGap = NonNullable<GridVariants['gap']>;\n\n/** Defines the responsive breakpoints `Grid` understands (`base` = unprefixed). */\nexport const GridBreakpoint = {\n /** Refers to the unprefixed (mobile-first) breakpoint. */\n Base: 'base',\n /** Refers to the `sm:` breakpoint. */\n Sm: 'sm',\n /** Refers to the `md:` breakpoint. */\n Md: 'md',\n /** Refers to the `lg:` breakpoint. */\n Lg: 'lg',\n /** Refers to the `xl:` breakpoint. */\n Xl: 'xl',\n} as const;\n\nexport type GridBreakpoint = (typeof GridBreakpoint)[keyof typeof GridBreakpoint];\n\n/**\n * Represents a responsive value for `columns` / `gap` — a per-breakpoint map.\n * `base` is the unprefixed value; the rest map to Tailwind's `sm:`–`xl:` prefixes.\n */\nexport type GridResponsive<T extends string> = Partial<Record<GridBreakpoint, T>>;\n\n/* Tailwind can't see interpolated class names, so every responsive permutation\n is spelled out as a complete literal here (base + sm/md/lg/xl prefixes). */\nconst ColumnClasses: Record<GridBreakpoint, Record<GridColumns, string>> = {\n base: {\n '1': 'grid-cols-1',\n '2': 'grid-cols-2',\n '3': 'grid-cols-3',\n '4': 'grid-cols-4',\n '5': 'grid-cols-5',\n '6': 'grid-cols-6',\n '8': 'grid-cols-8',\n '12': 'grid-cols-12',\n },\n sm: {\n '1': 'sm:grid-cols-1',\n '2': 'sm:grid-cols-2',\n '3': 'sm:grid-cols-3',\n '4': 'sm:grid-cols-4',\n '5': 'sm:grid-cols-5',\n '6': 'sm:grid-cols-6',\n '8': 'sm:grid-cols-8',\n '12': 'sm:grid-cols-12',\n },\n md: {\n '1': 'md:grid-cols-1',\n '2': 'md:grid-cols-2',\n '3': 'md:grid-cols-3',\n '4': 'md:grid-cols-4',\n '5': 'md:grid-cols-5',\n '6': 'md:grid-cols-6',\n '8': 'md:grid-cols-8',\n '12': 'md:grid-cols-12',\n },\n lg: {\n '1': 'lg:grid-cols-1',\n '2': 'lg:grid-cols-2',\n '3': 'lg:grid-cols-3',\n '4': 'lg:grid-cols-4',\n '5': 'lg:grid-cols-5',\n '6': 'lg:grid-cols-6',\n '8': 'lg:grid-cols-8',\n '12': 'lg:grid-cols-12',\n },\n xl: {\n '1': 'xl:grid-cols-1',\n '2': 'xl:grid-cols-2',\n '3': 'xl:grid-cols-3',\n '4': 'xl:grid-cols-4',\n '5': 'xl:grid-cols-5',\n '6': 'xl:grid-cols-6',\n '8': 'xl:grid-cols-8',\n '12': 'xl:grid-cols-12',\n },\n};\n\nconst GapClasses: Record<GridBreakpoint, Record<GridGap, string>> = {\n base: {\n '0': 'gap-0',\n '1': 'gap-1',\n '2': 'gap-2',\n '3': 'gap-3',\n '4': 'gap-4',\n '5': 'gap-5',\n '6': 'gap-6',\n '8': 'gap-8',\n '10': 'gap-10',\n '12': 'gap-12',\n },\n sm: {\n '0': 'sm:gap-0',\n '1': 'sm:gap-1',\n '2': 'sm:gap-2',\n '3': 'sm:gap-3',\n '4': 'sm:gap-4',\n '5': 'sm:gap-5',\n '6': 'sm:gap-6',\n '8': 'sm:gap-8',\n '10': 'sm:gap-10',\n '12': 'sm:gap-12',\n },\n md: {\n '0': 'md:gap-0',\n '1': 'md:gap-1',\n '2': 'md:gap-2',\n '3': 'md:gap-3',\n '4': 'md:gap-4',\n '5': 'md:gap-5',\n '6': 'md:gap-6',\n '8': 'md:gap-8',\n '10': 'md:gap-10',\n '12': 'md:gap-12',\n },\n lg: {\n '0': 'lg:gap-0',\n '1': 'lg:gap-1',\n '2': 'lg:gap-2',\n '3': 'lg:gap-3',\n '4': 'lg:gap-4',\n '5': 'lg:gap-5',\n '6': 'lg:gap-6',\n '8': 'lg:gap-8',\n '10': 'lg:gap-10',\n '12': 'lg:gap-12',\n },\n xl: {\n '0': 'xl:gap-0',\n '1': 'xl:gap-1',\n '2': 'xl:gap-2',\n '3': 'xl:gap-3',\n '4': 'xl:gap-4',\n '5': 'xl:gap-5',\n '6': 'xl:gap-6',\n '8': 'xl:gap-8',\n '10': 'xl:gap-10',\n '12': 'xl:gap-12',\n },\n};\n\nconst BreakpointOrder: ReadonlyArray<GridBreakpoint> = ['base', 'sm', 'md', 'lg', 'xl'];\n\n/** Resolves a scalar-or-responsive `columns` value to its complete Tailwind class string. */\nexport function resolveGridColumns(value: GridColumns | GridResponsive<GridColumns> | undefined): string | undefined {\n if (value === undefined) return undefined;\n if (typeof value === 'string') return ColumnClasses.base[value];\n return BreakpointOrder.map((bp) => {\n const v = value[bp];\n return v === undefined ? undefined : ColumnClasses[bp][v];\n })\n .filter((c): c is string => Boolean(c))\n .join(' ');\n}\n\n/** Resolves a scalar-or-responsive `gap` value to its complete Tailwind class string. */\nexport function resolveGridGap(value: GridGap | GridResponsive<GridGap> | undefined): string | undefined {\n if (value === undefined) return undefined;\n if (typeof value === 'string') return GapClasses.base[value];\n return BreakpointOrder.map((bp) => {\n const v = value[bp];\n return v === undefined ? undefined : GapClasses[bp][v];\n })\n .filter((c): c is string => Boolean(c))\n .join(' ');\n}\n"],"names":[],"mappings":";AAEO,MAAM,eAAe,GAAG;AAAA,EAC7B,MAAM;AAAA,EACN,UAAU;AAAA,IACR,SAAS;AAAA,MACP,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,MAAM;AAAA,IAAA;AAAA,IAER,KAAK;AAAA,MACH,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,MAAM;AAAA,MACN,MAAM;AAAA,IAAA;AAAA,EACR;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,IACT,KAAK;AAAA,EAAA;AAET,CAAC;AAWM,MAAM,iBAAiB;AAAA;AAAA,EAE5B,MAAM;AAAA;AAAA,EAEN,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA;AAAA,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AAClB,WAAO,MAAM,SAAY,SAAY,WAAW,EAAE,EAAE,CAAC;AAAA,EACvD,CAAC,EACE,OAAO,CAAC,MAAmB,QAAQ,CAAC,CAAC,EACrC,KAAK,GAAG;AACb;"}
1
+ {"version":3,"file":"Grid.variants.js","sources":["../../../../src/presentation/layout/grid/Grid.variants.ts"],"sourcesContent":["import { tv, type VariantProps } from '../../../foundation/styles';\n\nexport const gridVariants = tv({\n base: 'grid',\n variants: {\n columns: {\n '1': 'grid-cols-1',\n '2': 'grid-cols-2',\n '3': 'grid-cols-3',\n '4': 'grid-cols-4',\n '5': 'grid-cols-5',\n '6': 'grid-cols-6',\n '8': 'grid-cols-8',\n '12': 'grid-cols-12',\n },\n gap: {\n '0': 'gap-0',\n '1': 'gap-1',\n '2': 'gap-2',\n '3': 'gap-3',\n '4': 'gap-4',\n '5': 'gap-5',\n '6': 'gap-6',\n '8': 'gap-8',\n '10': 'gap-10',\n '12': 'gap-12',\n },\n },\n defaultVariants: {\n columns: '2',\n gap: '4',\n },\n});\n\nexport type GridVariants = VariantProps<typeof gridVariants>;\n\n/** Represents the scalar column count accepted by `Grid` (also the per-breakpoint value). */\nexport type GridColumns = NonNullable<GridVariants['columns']>;\n\n/** Represents the scalar gap step accepted by `Grid` (also the per-breakpoint value). */\nexport type GridGap = NonNullable<GridVariants['gap']>;\n\n/** Defines the responsive breakpoints `Grid` understands (`base` = unprefixed). */\nexport const GridBreakpoint = {\n /** Refers to the unprefixed (mobile-first) breakpoint. */\n Base: 'base',\n /** Refers to the `sm:` breakpoint. */\n Sm: 'sm',\n /** Refers to the `md:` breakpoint. */\n Md: 'md',\n /** Refers to the `lg:` breakpoint. */\n Lg: 'lg',\n /** Refers to the `xl:` breakpoint. */\n Xl: 'xl',\n} as const;\n\nexport type GridBreakpoint = (typeof GridBreakpoint)[keyof typeof GridBreakpoint];\n\n/**\n * Represents a responsive value for `columns` / `gap` — a per-breakpoint map.\n * `base` is the unprefixed value; the rest map to Tailwind's `sm:`–`xl:` prefixes.\n */\nexport type GridResponsive<T extends string> = Partial<Record<GridBreakpoint, T>>;\n\n/* Tailwind can't see interpolated class names, so every responsive permutation\n is spelled out as a complete literal here (base + sm/md/lg/xl prefixes). */\nconst ColumnClasses: Record<GridBreakpoint, Record<GridColumns, string>> = {\n base: {\n '1': 'grid-cols-1',\n '2': 'grid-cols-2',\n '3': 'grid-cols-3',\n '4': 'grid-cols-4',\n '5': 'grid-cols-5',\n '6': 'grid-cols-6',\n '8': 'grid-cols-8',\n '12': 'grid-cols-12',\n },\n sm: {\n '1': 'sm:grid-cols-1',\n '2': 'sm:grid-cols-2',\n '3': 'sm:grid-cols-3',\n '4': 'sm:grid-cols-4',\n '5': 'sm:grid-cols-5',\n '6': 'sm:grid-cols-6',\n '8': 'sm:grid-cols-8',\n '12': 'sm:grid-cols-12',\n },\n md: {\n '1': 'md:grid-cols-1',\n '2': 'md:grid-cols-2',\n '3': 'md:grid-cols-3',\n '4': 'md:grid-cols-4',\n '5': 'md:grid-cols-5',\n '6': 'md:grid-cols-6',\n '8': 'md:grid-cols-8',\n '12': 'md:grid-cols-12',\n },\n lg: {\n '1': 'lg:grid-cols-1',\n '2': 'lg:grid-cols-2',\n '3': 'lg:grid-cols-3',\n '4': 'lg:grid-cols-4',\n '5': 'lg:grid-cols-5',\n '6': 'lg:grid-cols-6',\n '8': 'lg:grid-cols-8',\n '12': 'lg:grid-cols-12',\n },\n xl: {\n '1': 'xl:grid-cols-1',\n '2': 'xl:grid-cols-2',\n '3': 'xl:grid-cols-3',\n '4': 'xl:grid-cols-4',\n '5': 'xl:grid-cols-5',\n '6': 'xl:grid-cols-6',\n '8': 'xl:grid-cols-8',\n '12': 'xl:grid-cols-12',\n },\n};\n\nconst GapClasses: Record<GridBreakpoint, Record<GridGap, string>> = {\n base: {\n '0': 'gap-0',\n '1': 'gap-1',\n '2': 'gap-2',\n '3': 'gap-3',\n '4': 'gap-4',\n '5': 'gap-5',\n '6': 'gap-6',\n '8': 'gap-8',\n '10': 'gap-10',\n '12': 'gap-12',\n },\n sm: {\n '0': 'sm:gap-0',\n '1': 'sm:gap-1',\n '2': 'sm:gap-2',\n '3': 'sm:gap-3',\n '4': 'sm:gap-4',\n '5': 'sm:gap-5',\n '6': 'sm:gap-6',\n '8': 'sm:gap-8',\n '10': 'sm:gap-10',\n '12': 'sm:gap-12',\n },\n md: {\n '0': 'md:gap-0',\n '1': 'md:gap-1',\n '2': 'md:gap-2',\n '3': 'md:gap-3',\n '4': 'md:gap-4',\n '5': 'md:gap-5',\n '6': 'md:gap-6',\n '8': 'md:gap-8',\n '10': 'md:gap-10',\n '12': 'md:gap-12',\n },\n lg: {\n '0': 'lg:gap-0',\n '1': 'lg:gap-1',\n '2': 'lg:gap-2',\n '3': 'lg:gap-3',\n '4': 'lg:gap-4',\n '5': 'lg:gap-5',\n '6': 'lg:gap-6',\n '8': 'lg:gap-8',\n '10': 'lg:gap-10',\n '12': 'lg:gap-12',\n },\n xl: {\n '0': 'xl:gap-0',\n '1': 'xl:gap-1',\n '2': 'xl:gap-2',\n '3': 'xl:gap-3',\n '4': 'xl:gap-4',\n '5': 'xl:gap-5',\n '6': 'xl:gap-6',\n '8': 'xl:gap-8',\n '10': 'xl:gap-10',\n '12': 'xl:gap-12',\n },\n};\n\nconst BreakpointOrder: ReadonlyArray<GridBreakpoint> = ['base', 'sm', 'md', 'lg', 'xl'];\n\n/** Defines the custom property `Grid` reads its `minColumnWidth` from. */\nexport const GridMinColumnVariable = '--grid-min-column';\n\n/**\n * Defines the auto-fill track list for `minColumnWidth`: as many equal columns as fit at the minimum width, one\n * full-width column when even one does not fit.\n */\nexport const GridAutoFillColumns = 'grid-cols-[repeat(auto-fill,minmax(min(100%,var(--grid-min-column)),1fr))]';\n\n/** Resolves a scalar-or-responsive `columns` value to its complete Tailwind class string. */\nexport function resolveGridColumns(value: GridColumns | GridResponsive<GridColumns> | undefined): string | undefined {\n if (value === undefined) return undefined;\n if (typeof value === 'string') return ColumnClasses.base[value];\n return BreakpointOrder.map((bp) => {\n const v = value[bp];\n return v === undefined ? undefined : ColumnClasses[bp][v];\n })\n .filter((c): c is string => Boolean(c))\n .join(' ');\n}\n\n/** Resolves a scalar-or-responsive `gap` value to its complete Tailwind class string. */\nexport function resolveGridGap(value: GridGap | GridResponsive<GridGap> | undefined): string | undefined {\n if (value === undefined) return undefined;\n if (typeof value === 'string') return GapClasses.base[value];\n return BreakpointOrder.map((bp) => {\n const v = value[bp];\n return v === undefined ? undefined : GapClasses[bp][v];\n })\n .filter((c): c is string => Boolean(c))\n .join(' ');\n}\n"],"names":[],"mappings":";AAEO,MAAM,eAAe,GAAG;AAAA,EAC7B,MAAM;AAAA,EACN,UAAU;AAAA,IACR,SAAS;AAAA,MACP,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,MAAM;AAAA,IAAA;AAAA,IAER,KAAK;AAAA,MACH,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,MAAM;AAAA,MACN,MAAM;AAAA,IAAA;AAAA,EACR;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,IACT,KAAK;AAAA,EAAA;AAET,CAAC;AAWM,MAAM,iBAAiB;AAAA;AAAA,EAE5B,MAAM;AAAA;AAAA,EAEN,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA;AAAA,EAEJ,IAAI;AACN;AAYA,MAAM,gBAAqE;AAAA,EACzE,MAAM;AAAA,IACJ,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,MAAM;AAAA,EAAA;AAAA,EAER,IAAI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10
10
  readonly columns?: GridColumns | GridResponsive<GridColumns>;
11
+ /**
12
+ * The minimum column width, as a CSS length (`'16rem'`). When set, the grid fills its own width with as many equal
13
+ * columns as fit — 4 → 3 → 2 → 1 as it narrows — and `columns` is ignored.
14
+ */
15
+ readonly minColumnWidth?: string;
11
16
  /**
12
17
  * The gap between tracks. Scalar (`'4'`) emits `gap-4`; a responsive map
13
18
  * (`{ base: '2', lg: '6' }`) emits per-breakpoint prefixed classes. Default `'4'`.
@@ -1,12 +1,13 @@
1
1
  import { defineComponent, useAttrs, useTemplateRef, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, renderSlot } from "vue";
2
2
  import { cn } from "../../../foundation/styles/Cn.js";
3
- import { resolveGridGap, resolveGridColumns } from "./Grid.variants.js";
3
+ import { resolveGridGap, GridAutoFillColumns, resolveGridColumns, GridMinColumnVariable } from "./Grid.variants.js";
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  ...{ name: "Grid", inheritAttrs: false },
6
6
  __name: "Grid",
7
7
  props: {
8
8
  as: { default: "div" },
9
9
  columns: { default: "2" },
10
+ minColumnWidth: {},
10
11
  gap: { default: "4" }
11
12
  },
12
13
  setup(__props, { expose: __expose }) {
@@ -14,7 +15,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
14
15
  const attrs = useAttrs();
15
16
  const el = useTemplateRef("el");
16
17
  const classes = computed(
17
- () => cn("grid", resolveGridColumns(props.columns), resolveGridGap(props.gap), attrs.class)
18
+ () => cn(
19
+ "grid",
20
+ props.minColumnWidth ? GridAutoFillColumns : resolveGridColumns(props.columns),
21
+ resolveGridGap(props.gap),
22
+ attrs.class
23
+ )
24
+ );
25
+ const autoFillStyle = computed(
26
+ () => props.minColumnWidth ? { [GridMinColumnVariable]: props.minColumnWidth } : void 0
18
27
  );
19
28
  const rest = computed(() => {
20
29
  const { class: _class, ...others } = attrs;
@@ -25,12 +34,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25
34
  return openBlock(), createBlock(resolveDynamicComponent(props.as), mergeProps({
26
35
  ref_key: "el",
27
36
  ref: el
28
- }, rest.value, { class: classes.value }), {
37
+ }, rest.value, {
38
+ class: classes.value,
39
+ style: autoFillStyle.value
40
+ }), {
29
41
  default: withCtx(() => [
30
42
  renderSlot(_ctx.$slots, "default")
31
43
  ]),
32
44
  _: 3
33
- }, 16, ["class"]);
45
+ }, 16, ["class", "style"]);
34
46
  };
35
47
  }
36
48
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Grid.vue.js","sources":["../../../../src/presentation/layout/grid/Grid.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { ElementType } from '../../../foundation/dom';\nimport type { GridColumns, GridGap, GridResponsive } from './Grid.variants';\n\nexport interface GridProps {\n readonly as?: ElementType;\n /**\n * The equal-column track count. Scalar (`'3'`) emits `grid-cols-3`; a responsive\n * map (`{ base: '1', md: '2', lg: '3' }`) emits per-breakpoint prefixed\n * classes. Default `'2'`.\n */\n readonly columns?: GridColumns | GridResponsive<GridColumns>;\n\n /**\n * The gap between tracks. Scalar (`'4'`) emits `gap-4`; a responsive map\n * (`{ base: '2', lg: '6' }`) emits per-breakpoint prefixed classes. Default `'4'`.\n */\n readonly gap?: GridGap | GridResponsive<GridGap>;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\nimport { resolveGridColumns, resolveGridGap } from './Grid.variants';\n\n/**\n * Renders a CSS grid container with column and gap variants. Both `columns` and `gap`\n * accept a scalar value or a responsive `{ base, sm, md, lg, xl }` map. For\n * non-uniform tracks pass an explicit `:style=\"{ gridTemplateColumns }\"` — the\n * variant covers the equal-column case.\n */\ndefineOptions({ name: 'Grid', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<GridProps>(), {\n as: 'div',\n columns: '2',\n gap: '4',\n});\n\ndefineSlots<{\n /** The grid items. */\n default?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLElement>('el');\n\nconst classes = computed(() =>\n cn('grid', resolveGridColumns(props.columns), resolveGridGap(props.gap), attrs.class as string | undefined),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <component :is=\"props.as\" ref=\"el\" v-bind=\"rest\" :class=\"classes\"><slot /></component>\n</template>\n"],"names":["_openBlock","_createBlock","_resolveDynamicComponent","_mergeProps","_renderSlot"],"mappings":";;;;;;;;;;;;AAkCA,UAAM,QAAQ;AAWd,UAAM,QAAQ,SAAA;AACd,UAAM,KAAK,eAA4B,IAAI;AAE3C,UAAM,UAAU;AAAA,MAAS,MACvB,GAAG,QAAQ,mBAAmB,MAAM,OAAO,GAAG,eAAe,MAAM,GAAG,GAAG,MAAM,KAA2B;AAAA,IAAA;AAI5G,UAAM,OAAO,SAAS,MAAM;AAC1B,YAAM,EAAE,OAAO,QAAQ,GAAG,WAAW;AACrC,aAAO;AAAA,IACT,CAAC;AAED,aAAa,EAAE,IAAI;;AAIjB,aAAAA,aAAAC,YAAsFC,wBAAtE,MAAM,EAAE,GAAxBC,WAAsF;AAAA,iBAAxD;AAAA,QAAJ,KAAI;AAAA,MAAA,GAAa,KAAA,OAAI,EAAG,OAAO,QAAA,MAAA,CAAO,GAAA;AAAA,yBAAE,MAAQ;AAAA,UAARC,WAAQ,KAAA,QAAA,SAAA;AAAA,QAAA;;;;;;"}
1
+ {"version":3,"file":"Grid.vue.js","sources":["../../../../src/presentation/layout/grid/Grid.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { ElementType } from '../../../foundation/dom';\nimport type { GridColumns, GridGap, GridResponsive } from './Grid.variants';\n\nexport interface GridProps {\n readonly as?: ElementType;\n /**\n * The equal-column track count. Scalar (`'3'`) emits `grid-cols-3`; a responsive\n * map (`{ base: '1', md: '2', lg: '3' }`) emits per-breakpoint prefixed\n * classes. Default `'2'`.\n */\n readonly columns?: GridColumns | GridResponsive<GridColumns>;\n\n /**\n * The minimum column width, as a CSS length (`'16rem'`). When set, the grid fills its own width with as many equal\n * columns as fit — 4 → 3 → 2 → 1 as it narrows — and `columns` is ignored.\n */\n readonly minColumnWidth?: string;\n\n /**\n * The gap between tracks. Scalar (`'4'`) emits `gap-4`; a responsive map\n * (`{ base: '2', lg: '6' }`) emits per-breakpoint prefixed classes. Default `'4'`.\n */\n readonly gap?: GridGap | GridResponsive<GridGap>;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\nimport { GridAutoFillColumns, GridMinColumnVariable, resolveGridColumns, resolveGridGap } from './Grid.variants';\n\n/**\n * Renders a CSS grid container with column and gap variants. Both `columns` and `gap`\n * accept a scalar value or a responsive `{ base, sm, md, lg, xl }` map. `minColumnWidth`\n * switches to auto-fill columns sized by the grid's own width. For non-uniform tracks\n * pass an explicit `:style=\"{ gridTemplateColumns }\"` — the variant covers the\n * equal-column case.\n */\ndefineOptions({ name: 'Grid', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<GridProps>(), {\n as: 'div',\n columns: '2',\n gap: '4',\n});\n\ndefineSlots<{\n /** The grid items. */\n default?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLElement>('el');\n\nconst classes = computed(() =>\n cn(\n 'grid',\n props.minColumnWidth ? GridAutoFillColumns : resolveGridColumns(props.columns),\n resolveGridGap(props.gap),\n attrs.class as string | undefined,\n ),\n);\n\n/** The minimum column width as the custom property the auto-fill track list reads. */\nconst autoFillStyle = computed(() =>\n props.minColumnWidth ? { [GridMinColumnVariable]: props.minColumnWidth } : undefined,\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <component :is=\"props.as\" ref=\"el\" v-bind=\"rest\" :class=\"classes\" :style=\"autoFillStyle\"><slot /></component>\n</template>\n"],"names":["_openBlock","_createBlock","_resolveDynamicComponent","_mergeProps","_renderSlot"],"mappings":";;;;;;;;;;;;;AAyCA,UAAM,QAAQ;AAWd,UAAM,QAAQ,SAAA;AACd,UAAM,KAAK,eAA4B,IAAI;AAE3C,UAAM,UAAU;AAAA,MAAS,MACvB;AAAA,QACE;AAAA,QACA,MAAM,iBAAiB,sBAAsB,mBAAmB,MAAM,OAAO;AAAA,QAC7E,eAAe,MAAM,GAAG;AAAA,QACxB,MAAM;AAAA,MAAA;AAAA,IACR;AAIF,UAAM,gBAAgB;AAAA,MAAS,MAC7B,MAAM,iBAAiB,EAAE,CAAC,qBAAqB,GAAG,MAAM,mBAAmB;AAAA,IAAA;AAI7E,UAAM,OAAO,SAAS,MAAM;AAC1B,YAAM,EAAE,OAAO,QAAQ,GAAG,WAAW;AACrC,aAAO;AAAA,IACT,CAAC;AAED,aAAa,EAAE,IAAI;;AAIjB,aAAAA,aAAAC,YAA6GC,wBAA7F,MAAM,EAAE,GAAxBC,WAA6G;AAAA,iBAA/E;AAAA,QAAJ,KAAI;AAAA,MAAA,GAAa,KAAA,OAAI;AAAA,QAAG,OAAO,QAAA;AAAA,QAAU,OAAO,cAAA;AAAA,MAAA;yBAAe,MAAQ;AAAA,UAARC,WAAQ,KAAA,QAAA,SAAA;AAAA,QAAA;;;;;;"}
@@ -1,2 +1,2 @@
1
1
  export { default as Grid, type GridProps } from './Grid.vue';
2
- export { gridVariants, resolveGridColumns, resolveGridGap, GridBreakpoint, type GridVariants, type GridColumns, type GridGap, type GridResponsive, } from './Grid.variants';
2
+ export { gridVariants, resolveGridColumns, resolveGridGap, GridBreakpoint, GridAutoFillColumns, GridMinColumnVariable, type GridVariants, type GridColumns, type GridGap, type GridResponsive, } from './Grid.variants';
@@ -45,7 +45,7 @@ import { default as default45 } from "./vStackLayout/VStackLayout.vue.js";
45
45
  import { default as default46 } from "./virtualScrollArea/VirtualScrollArea.vue.js";
46
46
  import { AnchorLayoutTransition, AnchorLayoutVisibilityMode } from "./anchorLayout/AnchorLayout.variants.js";
47
47
  import { ContainerLayoutSize, containerVariants } from "./containerLayout/ContainerLayout.variants.js";
48
- import { GridBreakpoint, gridVariants, resolveGridColumns, resolveGridGap } from "./grid/Grid.variants.js";
48
+ import { GridAutoFillColumns, GridBreakpoint, GridMinColumnVariable, gridVariants, resolveGridColumns, resolveGridGap } from "./grid/Grid.variants.js";
49
49
  import { NavbarElement, NavbarHeight, NavbarOrientation, NavbarVariant, navbarVariants } from "./navbar/Navbar.variants.js";
50
50
  import { SectionPaddingY, sectionVariants } from "./section/Section.variants.js";
51
51
  import { StackLayoutAlign, StackLayoutDirection, StackLayoutJustify, StackLayoutWrap, stackVariants } from "./stackLayout/StackLayout.variants.js";
@@ -86,7 +86,9 @@ export {
86
86
  default20 as FrameLayout,
87
87
  FrameLayoutSurface,
88
88
  default21 as Grid,
89
+ GridAutoFillColumns,
89
90
  GridBreakpoint,
91
+ GridMinColumnVariable,
90
92
  default22 as HStackLayout,
91
93
  default23 as InlineLayout,
92
94
  InlineLayoutAlign,
@@ -1 +1 @@
1
- {"version":3,"file":"Navbar.vue.js","sources":["../../../../src/presentation/layout/navbar/Navbar.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { HTMLAttributes } from 'vue';\nimport type { SurfaceTone } from '../../../foundation/styles';\nimport type { ContainerLayoutProps } from '../containerLayout';\nimport type { NavbarElement, NavbarHeight, NavbarOrientation, NavbarVariant } from './Navbar.variants';\n\nexport interface NavbarProps {\n /**\n * The element: `header` (a banner landmark) or `div` (none). Default: `div` inside an `AppShellHeader`, which is\n * already the banner, and `header` elsewhere.\n */\n readonly as?: NavbarElement;\n /** Native attributes forwarded to the inner `ContainerLayout`; its `class` is merged last. */\n readonly containerAttrs?: HTMLAttributes;\n /** Convenience class for the inner `ContainerLayout`, merged after `containerAttrs.class`. */\n readonly containerClass?: HTMLAttributes['class'];\n /** The max-width of the inner centered `ContainerLayout`. Passthrough to `ContainerLayout.size`. Default `lg`. */\n readonly containerSize?: ContainerLayoutProps['size'];\n /** The band height. Default `md`. */\n readonly height?: NavbarHeight;\n /** The sticky pinning of the bar to the top of the scroll container. Default `false` (non-sticky). */\n readonly isSticky?: boolean;\n /** @deprecated Use `isSticky`; this alias is removed next release. */\n readonly sticky?: boolean;\n /**\n * The tinted background tone for the band — applies the shadow-less `subtle`\n * surface treatment. Omit for a transparent bar (relies on `hasBorder` / page bg).\n */\n readonly tone?: SurfaceTone;\n /** The bottom border under the bar. Default `true`. */\n readonly hasBorder?: boolean;\n /** @deprecated Use `hasBorder`; this alias is removed next release. */\n readonly bordered?: boolean;\n /** Which way the bar runs: a full-width top bar or a full-height side rail. Default `horizontal`. */\n readonly orientation?: NavbarOrientation;\n /** The surface: `solid`, `glass` or `transparent`. A `tone` overrides it. Default `solid`. */\n readonly variant?: NavbarVariant;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, inject, provide, useAttrs, useSlots, useTemplateRef } from 'vue';\nimport { cn, surfaceVariants } from '../../../foundation/styles';\nimport ContainerLayout from '../containerLayout/ContainerLayout.vue';\nimport {\n NavbarElement as Element,\n NavbarOrientation as Orientation,\n NavbarSurfaceClass,\n navbarVariants,\n} from './Navbar.variants';\nimport { bannerHostKey, navbarContextKey } from './NavbarContext';\n\n/**\n * Renders a lightweight header band (`<header>`) with `start` / `center` / `end` slots\n * laid out in a row inside a centered `ContainerLayout`. The everyday \"navbar +\n * centered content\" need that `AppShell` (a 5-slot dashboard grid w/ sidebar)\n * overshoots. Non-sticky by default; pass `isSticky` to pin it.\n *\n * Inside an `AppShellHeader` it renders a plain row filling the bar: the host is the banner and owns the band's\n * height, border and surface, so the bar adds none of its own unless the props ask for them.\n */\ndefineOptions({ name: 'Navbar', inheritAttrs: false });\n\n/** React's `start` / `center` / `end` / `children` ReactNode props are content regions — slots in Vue. */\ndefineSlots<{\n /** The leading slot — laid out at the start of the row (brand / logo / nav links). */\n start?(): unknown;\n /** The centre slot — laid out in the middle of the row (search / primary nav). */\n center?(): unknown;\n /** The trailing slot — laid out at the end of the row (actions / avatar / CTA). */\n end?(): unknown;\n /**\n * The raw row content — replaces the `start` / `center` / `end` slot layout when\n * provided. Use for fully custom bars.\n */\n default?(): unknown;\n}>();\n\nconst props = withDefaults(defineProps<NavbarProps>(), {\n as: undefined,\n isSticky: undefined,\n sticky: undefined,\n hasBorder: undefined,\n bordered: undefined,\n orientation: Orientation.Horizontal,\n variant: undefined,\n});\n\nconst isVertical = computed(() => props.orientation === Orientation.Vertical);\n\n/** True inside a host that already is the banner — `AppShellHeader`. */\nconst isHosted = inject(bannerHostKey, false);\n\nconst tag = computed<Element>(() => props.as ?? (isHosted ? Element.Div : Element.Header));\n\nprovide(navbarContextKey, { orientation: computed(() => props.orientation) });\n\nconst attrs = useAttrs();\nconst slots = useSlots();\nconst el = useTemplateRef<HTMLElement>('el');\n\nconst classes = computed(() =>\n cn(\n navbarVariants({\n orientation: props.orientation,\n sticky: props.isSticky ?? props.sticky ?? false,\n height: props.height,\n }),\n /* A hosted bar fills the host's row at the host's height. */\n isHosted && 'min-w-0 flex-1 self-stretch',\n isHosted && props.height === undefined && 'h-auto',\n (props.hasBorder ?? props.bordered ?? !isHosted) &&\n (isVertical.value ? 'border-e border-border' : 'border-b border-border'),\n props.tone\n ? surfaceVariants({ variant: 'subtle', tone: props.tone, radius: 'none' })\n : NavbarSurfaceClass[props.variant ?? (isHosted ? 'transparent' : 'solid')],\n attrs.class as string | undefined,\n ),\n);\n\n/** Push `end` to the trailing edge when there's no centre slot to absorb the slack. */\nconst endClasses = computed(() => cn('flex min-w-0 items-center gap-3', !slots.center && 'ml-auto'));\n\n/** Inner-container classes with consumer spacing taking precedence. */\nconst containerClasses = computed(() =>\n cn('flex h-full items-center gap-3', props.containerAttrs?.class as string | undefined, props.containerClass),\n);\n\n/** Rail classes: a column from the brand at the top to the account at the foot, consumer spacing last. */\nconst railClasses = computed(() =>\n cn(\n 'flex h-full min-h-0 flex-col items-stretch gap-3 p-3',\n props.containerAttrs?.class as string | undefined,\n props.containerClass,\n ),\n);\n\n/** Inner-container attributes except `class`, which is merged through `cn`. */\nconst containerRest = computed(() => {\n const { class: _class, ...others } = props.containerAttrs ?? {};\n return others;\n});\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <component :is=\"tag\" v-if=\"isVertical\" ref=\"el\" v-bind=\"rest\" :class=\"classes\">\n <div v-bind=\"containerRest\" :class=\"railClasses\">\n <slot v-if=\"$slots.default\" />\n <template v-else>\n <div v-if=\"$slots.start\" class=\"flex min-w-0 shrink-0 items-center gap-3\">\n <slot name=\"start\" />\n </div>\n <div v-if=\"$slots.center\" class=\"flex min-h-0 flex-1 flex-col gap-1 overflow-y-auto\">\n <slot name=\"center\" />\n </div>\n <div v-if=\"$slots.end\" class=\"mt-auto flex min-w-0 shrink-0 items-center gap-3\">\n <slot name=\"end\" />\n </div>\n </template>\n </div>\n </component>\n <component :is=\"tag\" v-else ref=\"el\" v-bind=\"rest\" :class=\"classes\">\n <ContainerLayout v-bind=\"containerRest\" :size=\"props.containerSize\" :class=\"containerClasses\">\n <slot v-if=\"$slots.default\" />\n <template v-else>\n <div v-if=\"$slots.start\" class=\"flex min-w-0 items-center gap-3\">\n <slot name=\"start\" />\n </div>\n <div v-if=\"$slots.center\" class=\"flex min-w-0 flex-1 items-center justify-center gap-3\">\n <slot name=\"center\" />\n </div>\n <div v-if=\"$slots.end\" :class=\"endClasses\">\n <slot name=\"end\" />\n </div>\n </template>\n </ContainerLayout>\n </component>\n</template>\n"],"names":["Orientation","Element","_createBlock","_resolveDynamicComponent","_mergeProps","_createElementVNode","$slots","_renderSlot","_createElementBlock","_Fragment","_openBlock","_createVNode","ContainerLayout"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8EA,UAAM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gBATEH,KAAAA,OAAO,SAAlBI,aAAAF,mBAEM,OAFN,YAEM;AAAA,kBADJD,WAAqB,KAAA,QAAA,OAAA;AAAA,gBAAA;gBAEZD,KAAAA,OAAO,UAAlBI,aAAAF,mBAEM,OAFN,YAEM;AAAA,kBADJD,WAAsB,KAAA,QAAA,QAAA;AAAA,gBAAA;gBAEbD,KAAAA,OAAO,oBAAlBE,mBAEM,OAAA;AAAA;kBAFkB,sBAAO,WAAA,KAAU;AAAA,gBAAA;kBACvCD,WAAmB,KAAA,QAAA,KAAA;AAAA,gBAAA;;;;;;;;;;;"}
1
+ {"version":3,"file":"Navbar.vue.js","sources":["../../../../src/presentation/layout/navbar/Navbar.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { HTMLAttributes } from 'vue';\nimport type { SurfaceTone } from '../../../foundation/styles';\nimport type { ContainerLayoutProps } from '../containerLayout';\nimport type { NavbarElement, NavbarHeight, NavbarOrientation, NavbarVariant } from './Navbar.variants';\n\nexport interface NavbarProps {\n /**\n * The element: `header` (a banner landmark) or `div` (none). Default: `div` inside an `AppShellHeader`, which is\n * already the banner, and `header` elsewhere.\n */\n readonly as?: NavbarElement;\n /** Native attributes forwarded to the inner `ContainerLayout`; its `class` is merged last. */\n readonly containerAttrs?: HTMLAttributes;\n /** Convenience class for the inner `ContainerLayout`, merged after `containerAttrs.class`. */\n readonly containerClass?: HTMLAttributes['class'];\n /** The max-width of the inner centered `ContainerLayout`. Passthrough to `ContainerLayout.size`. Default `lg`. */\n readonly containerSize?: ContainerLayoutProps['size'];\n /** The band height. Default `md`. */\n readonly height?: NavbarHeight;\n /** The sticky pinning of the bar to the top of the scroll container. Default `false` (non-sticky). */\n readonly isSticky?: boolean;\n /** @deprecated Use `isSticky`; this alias is removed next release. */\n readonly sticky?: boolean;\n /**\n * The tinted background tone for the band — applies the shadow-less `subtle`\n * surface treatment. Omit for a transparent bar (relies on `hasBorder` / page bg).\n */\n readonly tone?: SurfaceTone;\n /** The bottom border under the bar. Default `true`. */\n readonly hasBorder?: boolean;\n /** @deprecated Use `hasBorder`; this alias is removed next release. */\n readonly bordered?: boolean;\n /** Which way the bar runs: a full-width top bar or a full-height side rail. Default `horizontal`. */\n readonly orientation?: NavbarOrientation;\n /** The surface: `solid`, `glass` or `transparent`. A `tone` overrides it. Default `solid`. */\n readonly variant?: NavbarVariant;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, inject, provide, useAttrs, useSlots, useTemplateRef } from 'vue';\nimport { cn, surfaceVariants } from '../../../foundation/styles';\nimport ContainerLayout from '../containerLayout/ContainerLayout.vue';\nimport {\n NavbarElement as Element,\n NavbarOrientation as Orientation,\n NavbarSurfaceClass,\n navbarVariants,\n} from './Navbar.variants';\nimport { bannerHostKey, navbarContextKey } from './NavbarContext';\n\n/**\n * Renders a lightweight header band (`<header>`) with `start` / `center` / `end` slots\n * laid out in a row inside a centered `ContainerLayout`. The everyday \"navbar +\n * centered content\" need that `AppShell` (a 5-slot dashboard grid w/ sidebar)\n * overshoots. Non-sticky by default; pass `isSticky` to pin it.\n *\n * Inside an `AppShellHeader` it renders a plain row filling the bar: the host is the banner and owns the band's\n * height, border and surface, so the bar adds none of its own unless the props ask for them.\n */\ndefineOptions({ name: 'Navbar', inheritAttrs: false });\n\n/** React's `start` / `center` / `end` / `children` ReactNode props are content regions — slots in Vue. */\ndefineSlots<{\n /** The leading slot — laid out at the start of the row (brand / logo / nav links). */\n start?(): unknown;\n /** The centre slot — laid out in the middle of the row (search / primary nav). */\n center?(): unknown;\n /** The trailing slot — laid out at the end of the row (actions / avatar / CTA). */\n end?(): unknown;\n /**\n * The raw row content — replaces the `start` / `center` / `end` slot layout when\n * provided. Use for fully custom bars.\n */\n default?(): unknown;\n}>();\n\nconst props = withDefaults(defineProps<NavbarProps>(), {\n as: undefined,\n isSticky: undefined,\n sticky: undefined,\n hasBorder: undefined,\n bordered: undefined,\n orientation: Orientation.Horizontal,\n variant: undefined,\n});\n\nconst isVertical = computed(() => props.orientation === Orientation.Vertical);\n\n/** True inside a host that already is the banner — `AppShellHeader`. */\nconst isHosted = inject(bannerHostKey, false);\n\nconst tag = computed<Element>(() => props.as ?? (isHosted ? Element.Div : Element.Header));\n\nprovide(navbarContextKey, { orientation: computed(() => props.orientation) });\n\nconst attrs = useAttrs();\nconst slots = useSlots();\nconst el = useTemplateRef<HTMLElement>('el');\n\nconst classes = computed(() =>\n cn(\n navbarVariants({\n orientation: props.orientation,\n sticky: props.isSticky ?? props.sticky ?? false,\n height: props.height,\n }),\n /* A hosted bar fills the host's row at the host's height. */\n isHosted && 'min-w-0 flex-1 self-stretch',\n isHosted && props.height === undefined && 'h-auto',\n (props.hasBorder ?? props.bordered ?? !isHosted) &&\n (isVertical.value ? 'border-e border-border' : 'border-b border-border'),\n props.tone\n ? surfaceVariants({ variant: 'subtle', tone: props.tone, radius: 'none' })\n : NavbarSurfaceClass[props.variant ?? (isHosted ? 'transparent' : 'solid')],\n attrs.class as string | undefined,\n ),\n);\n\n/** Push `end` to the trailing edge when there's no centre slot to absorb the slack. */\nconst endClasses = computed(() => cn('flex min-w-0 items-center gap-3', !slots.center && 'ml-auto'));\n\n/** Inner-container classes with consumer spacing taking precedence. */\nconst containerClasses = computed(() =>\n cn('flex h-full items-center gap-3', props.containerAttrs?.class as string | undefined, props.containerClass),\n);\n\n/** Rail classes: a column from the brand at the top to the account at the foot, consumer spacing last. */\nconst railClasses = computed(() =>\n cn(\n 'flex h-full min-h-0 flex-col items-stretch gap-3 p-3',\n props.containerAttrs?.class as string | undefined,\n props.containerClass,\n ),\n);\n\n/** Inner-container attributes except `class`, which is merged through `cn`. */\nconst containerRest = computed(() => {\n const { class: _class, ...others } = props.containerAttrs ?? {};\n return others;\n});\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <component :is=\"tag\" v-if=\"isVertical\" ref=\"el\" v-bind=\"rest\" :class=\"classes\">\n <div v-bind=\"containerRest\" :class=\"railClasses\">\n <slot v-if=\"$slots.default\" />\n <template v-else>\n <div v-if=\"$slots.start\" class=\"flex min-w-0 shrink-0 items-center gap-3\">\n <slot name=\"start\" />\n </div>\n <div v-if=\"$slots.center\" class=\"flex min-h-0 flex-1 flex-col gap-1 overflow-y-auto\">\n <slot name=\"center\" />\n </div>\n <div v-if=\"$slots.end\" class=\"mt-auto flex min-w-0 shrink-0 items-center gap-3\">\n <slot name=\"end\" />\n </div>\n </template>\n </div>\n </component>\n <component :is=\"tag\" v-else ref=\"el\" v-bind=\"rest\" :class=\"classes\">\n <ContainerLayout v-bind=\"containerRest\" :size=\"props.containerSize\" :class=\"containerClasses\">\n <slot v-if=\"$slots.default\" />\n <template v-else>\n <div v-if=\"$slots.start\" class=\"flex min-w-0 items-center gap-3\">\n <slot name=\"start\" />\n </div>\n <div v-if=\"$slots.center\" class=\"flex min-w-0 flex-1 items-center justify-center gap-3\">\n <slot name=\"center\" />\n </div>\n <div v-if=\"$slots.end\" :class=\"endClasses\">\n <slot name=\"end\" />\n </div>\n </template>\n </ContainerLayout>\n </component>\n</template>\n"],"names":["Orientation","Element","_createBlock","_resolveDynamicComponent","_mergeProps","_createElementVNode","$slots","_renderSlot","_createElementBlock","_Fragment","_openBlock","_createVNode","ContainerLayout"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8EA,UAAM,QAAQ;AAUd,UAAM,aAAa,SAAS,MAAM,MAAM,gBAAgBA,kBAAY,QAAQ;AAG5E,UAAM,WAAW,OAAO,eAAe,KAAK;AAE5C,UAAM,MAAM,SAAkB,MAAM,MAAM,OAAO,WAAWC,cAAQ,MAAMA,cAAQ,OAAO;AAEzF,YAAQ,kBAAkB,EAAE,aAAa,SAAS,MAAM,MAAM,WAAW,GAAG;AAE5E,UAAM,QAAQ,SAAA;AACd,UAAM,QAAQ,SAAA;AACd,UAAM,KAAK,eAA4B,IAAI;AAE3C,UA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B,KAAA,QAAA,KAAA;AAAA,gBAAA;;;;;;;;;;;"}
@@ -34,11 +34,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
34
  const resolvedPadding = computed(() => props.padding ?? (props.isBare ? "none" : "lg"));
35
35
  const classes = computed(
36
36
  () => cn(
37
- /* pop (fade+scale) gated on the portal-root data-state + motion-safe
38
- so reduced-motion users get no movement. */
37
+ /* Presence also reports "closed" while mounting. Keep those frames transparent
38
+ and reserve the exit animation for a popover that is actually closing. */
39
39
  "outline-hidden",
40
- "motion-safe:group-data-[state=open]:animate-(--animate-pop-in)",
41
- "motion-safe:group-data-[state=closed]:animate-(--animate-pop-out) motion-reduce:animate-none",
40
+ isOpen.value ? "group-data-[state=closed]:opacity-0 motion-safe:group-data-[state=open]:animate-(--animate-pop-in)" : "motion-safe:group-data-[state=closed]:animate-(--animate-pop-out)",
41
+ "motion-reduce:animate-none",
42
42
  !props.isBare && cn(
43
43
  DefaultWidth,
44
44
  surfaceVariants({
@@ -1 +1 @@
1
- {"version":3,"file":"PopoverContent.vue.js","sources":["../../../../src/presentation/overlays/popover/PopoverContent.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type {\n SurfaceElevation,\n SurfacePadding,\n SurfaceRadius,\n SurfaceTone,\n SurfaceVariant,\n} from '../../../foundation/styles';\n\n/**\n * Represents the prop surface of `PopoverContent`.\n *\n * React declared the surface axes by `extends SurfaceLayoutVariants`; they are\n * spelled out here because the SFC compiler's type resolver cannot follow a\n * `VariantProps<typeof …>` base and fails the build on it. The aliases below\n * are the canonical ones from `foundation/styles`, already locked against the\n * `surfaceVariants` config there, so the two cannot drift.\n */\nexport interface PopoverContentProps {\n /** The bare toggle — skips the surface chrome (bg/border/shadow); keeps only z-index + animation. */\n readonly isBare?: boolean;\n\n /** The visual recipe. Default `raised`. */\n readonly variant?: SurfaceVariant;\n\n /** The color tone the recipe is tinted with. */\n readonly tone?: SurfaceTone;\n\n /** The corner rounding. */\n readonly radius?: SurfaceRadius;\n\n /** The inner spacing step. Defaults to `lg` with chrome on, `none` when bare. */\n readonly padding?: SurfacePadding;\n\n /** The shadow depth. */\n readonly elevation?: SurfaceElevation;\n}\n\n/** Contains the default chrome width that preserves the historical look. */\nconst DefaultWidth = 'w-72';\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue';\nimport { cn, surfaceVariants } from '../../../foundation/styles';\nimport { AnchoredPositioner, DismissableLayer, FocusScope, Portal, Presence } from '../../../foundation/primitives';\nimport { usePopoverContext } from './Popover.vue';\n\n/** Renders the anchored, dismissable popover panel. */\ndefineOptions({ name: 'PopoverContent', inheritAttrs: false });\n\n/** The panel content — React's `children`. */\ndefineSlots<{ default(): unknown }>();\n\nconst props = defineProps<PopoverContentProps>();\n\nconst attrs = useAttrs();\nconst context = usePopoverContext();\n\n/* Refs lifted to setup consts so the template auto-unwraps them (a plain injected object does not). */\nconst isOpen = context.open;\nconst placement = context.placement;\nconst offset = context.offset;\nconst isModal = context.isModal;\nconst dismissOnEscape = context.dismissOnEscape;\nconst dismissOnOutsideClick = context.dismissOnOutsideClick;\n\nconst anchor = computed(() => context.triggerEl.value);\n\n/** Default to `lg` padding when chrome is on (matches the old `p-4`); the caller can override. */\nconst resolvedPadding = computed(() => props.padding ?? (props.isBare ? 'none' : 'lg'));\n\nconst classes = computed(() =>\n cn(\n /* pop (fade+scale) gated on the portal-root data-state + motion-safe\n so reduced-motion users get no movement. */\n 'outline-hidden',\n 'motion-safe:group-data-[state=open]:animate-(--animate-pop-in)',\n 'motion-safe:group-data-[state=closed]:animate-(--animate-pop-out) motion-reduce:animate-none',\n !props.isBare &&\n cn(\n DefaultWidth,\n surfaceVariants({\n variant: props.variant ?? 'raised',\n tone: props.tone,\n radius: props.radius,\n padding: resolvedPadding.value,\n elevation: props.elevation,\n }),\n ),\n attrs.class as string | undefined,\n ),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\nfunction handleEscape(): void {\n context.setOpen(false);\n}\n\nfunction handleOutsidePointerDown(event: PointerEvent): void {\n if (context.triggerEl.value?.contains(event.target as Node)) return;\n context.setOpen(false);\n}\n</script>\n\n<template>\n <!--\n React portalled from *inside* the Presence-cloned root; Vue resolves a cloned\n `ref` through `$el` and a Teleport has no element, so `Portal` is hoisted and\n the `contents` root stays the Presence node — which is what carries\n `data-state` for the panel's `group-data-[state=*]` pop.\n -->\n <Portal>\n <Presence :is-present=\"isOpen\">\n <!--\n `Presence`-clonable root: accepts `data-state` + `ref`, marked `group` so\n the panel animates off it, and holds no layout of its own\n (`display: contents`) so anchored positioning is unaffected.\n -->\n <div class=\"group contents\">\n <!-- z-popover (80) on the SC root (transform makes the stacking context) so a\n popover from a Modal (z-modal, 70) paints above it — both portal to body. -->\n <AnchoredPositioner :anchor=\"anchor\" :placement=\"placement\" :offset=\"offset\" class=\"z-popover\">\n <!--\n `FocusScope as-child` merges into `DismissableLayer`, whose own root div\n *is* the panel — React kept a layer div around a separate panel div. The\n two share a box, and collapsing them puts `role`, the surface classes and\n the outside-click boundary on one node.\n -->\n <FocusScope as-child :is-trapped=\"isModal\" :can-loop=\"isModal\" :is-modal=\"isModal\">\n <DismissableLayer\n :is-escape-disabled=\"!dismissOnEscape\"\n :is-outside-click-disabled=\"!dismissOnOutsideClick\"\n :on-escape=\"handleEscape\"\n :on-outside-pointer-down=\"handleOutsidePointerDown\"\n role=\"dialog\"\n :aria-modal=\"isModal || undefined\"\n v-bind=\"rest\"\n :class=\"classes\"\n >\n <slot />\n </DismissableLayer>\n </FocusScope>\n </AnchoredPositioner>\n </div>\n </Presence>\n </Portal>\n</template>\n"],"names":["_createBlock","_unref","Portal","_createVNode","_createElementVNode","AnchoredPositioner","FocusScope","_mergeProps","_renderSlot"],"mappings":";;;;;;;;;;AAuCA,MAAM,eAAe;;;;;;;;;;;;;AAerB,UAAM,QAAQ;AAEd,UAAM,QAAQ,SAAA;AACd,UAAM,UAAU,kBAAA;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,MAAA;AAAA,kBAAQ,OAAM;AAAA,gBAAA;mCAOjF,MAaa;AAAA,oBAbbE,YAaaF,MAAAK,WAAA,GAAA;AAAA,sBAbD,YAAA;AAAA,sBAAU,cAAYL,MAAA,OAAA;AAAA,sBAAU,YAAUA,MAAA,OAAA;AAAA,sBAAU,YAAUA,MAAA,OAAA;AAAA,oBAAA;uCACxE,MAWmB;AAAA,wBAXnBE,YAWmBF,oBAXnBM,WAWmB;AAAA,0BAVhB,uBAAqBN,MAAA,eAAA;AAAA,0BACrB,8BAA4BA,MAAA,qBAAA;AAAA,0BAC5B,aAAW;AAAA,0BACX,2BAAyB;AAAA,0BAC1B,MAAK;AAAA,0BACJ,cAAYA,MAAA,OAAA,KAAW;AAAA,wBAAA,GAChB,KAAA,OAAI,EACX,OAAO,QAAA,MAAA,CAAO,GAAA;AAAA,2CAEf,MAAQ;AAAA,4BAARO,WAAQ,KAAA,QAAA,SAAA;AAAA,0BAAA;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"PopoverContent.vue.js","sources":["../../../../src/presentation/overlays/popover/PopoverContent.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type {\n SurfaceElevation,\n SurfacePadding,\n SurfaceRadius,\n SurfaceTone,\n SurfaceVariant,\n} from '../../../foundation/styles';\n\n/**\n * Represents the prop surface of `PopoverContent`.\n *\n * React declared the surface axes by `extends SurfaceLayoutVariants`; they are\n * spelled out here because the SFC compiler's type resolver cannot follow a\n * `VariantProps<typeof …>` base and fails the build on it. The aliases below\n * are the canonical ones from `foundation/styles`, already locked against the\n * `surfaceVariants` config there, so the two cannot drift.\n */\nexport interface PopoverContentProps {\n /** The bare toggle — skips the surface chrome (bg/border/shadow); keeps only z-index + animation. */\n readonly isBare?: boolean;\n\n /** The visual recipe. Default `raised`. */\n readonly variant?: SurfaceVariant;\n\n /** The color tone the recipe is tinted with. */\n readonly tone?: SurfaceTone;\n\n /** The corner rounding. */\n readonly radius?: SurfaceRadius;\n\n /** The inner spacing step. Defaults to `lg` with chrome on, `none` when bare. */\n readonly padding?: SurfacePadding;\n\n /** The shadow depth. */\n readonly elevation?: SurfaceElevation;\n}\n\n/** Contains the default chrome width that preserves the historical look. */\nconst DefaultWidth = 'w-72';\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue';\nimport { cn, surfaceVariants } from '../../../foundation/styles';\nimport { AnchoredPositioner, DismissableLayer, FocusScope, Portal, Presence } from '../../../foundation/primitives';\nimport { usePopoverContext } from './Popover.vue';\n\n/** Renders the anchored, dismissable popover panel. */\ndefineOptions({ name: 'PopoverContent', inheritAttrs: false });\n\n/** The panel content — React's `children`. */\ndefineSlots<{ default(): unknown }>();\n\nconst props = defineProps<PopoverContentProps>();\n\nconst attrs = useAttrs();\nconst context = usePopoverContext();\n\n/* Refs lifted to setup consts so the template auto-unwraps them (a plain injected object does not). */\nconst isOpen = context.open;\nconst placement = context.placement;\nconst offset = context.offset;\nconst isModal = context.isModal;\nconst dismissOnEscape = context.dismissOnEscape;\nconst dismissOnOutsideClick = context.dismissOnOutsideClick;\n\nconst anchor = computed(() => context.triggerEl.value);\n\n/** Default to `lg` padding when chrome is on (matches the old `p-4`); the caller can override. */\nconst resolvedPadding = computed(() => props.padding ?? (props.isBare ? 'none' : 'lg'));\n\nconst classes = computed(() =>\n cn(\n /* Presence also reports \"closed\" while mounting. Keep those frames transparent\n and reserve the exit animation for a popover that is actually closing. */\n 'outline-hidden',\n isOpen.value\n ? 'group-data-[state=closed]:opacity-0 motion-safe:group-data-[state=open]:animate-(--animate-pop-in)'\n : 'motion-safe:group-data-[state=closed]:animate-(--animate-pop-out)',\n 'motion-reduce:animate-none',\n !props.isBare &&\n cn(\n DefaultWidth,\n surfaceVariants({\n variant: props.variant ?? 'raised',\n tone: props.tone,\n radius: props.radius,\n padding: resolvedPadding.value,\n elevation: props.elevation,\n }),\n ),\n attrs.class as string | undefined,\n ),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\nfunction handleEscape(): void {\n context.setOpen(false);\n}\n\nfunction handleOutsidePointerDown(event: PointerEvent): void {\n if (context.triggerEl.value?.contains(event.target as Node)) return;\n context.setOpen(false);\n}\n</script>\n\n<template>\n <!--\n React portalled from *inside* the Presence-cloned root; Vue resolves a cloned\n `ref` through `$el` and a Teleport has no element, so `Portal` is hoisted and\n the `contents` root stays the Presence node — which is what carries\n `data-state` for the panel's `group-data-[state=*]` pop.\n -->\n <Portal>\n <Presence :is-present=\"isOpen\">\n <!--\n `Presence`-clonable root: accepts `data-state` + `ref`, marked `group` so\n the panel animates off it, and holds no layout of its own\n (`display: contents`) so anchored positioning is unaffected.\n -->\n <div class=\"group contents\">\n <!-- z-popover (80) on the SC root (transform makes the stacking context) so a\n popover from a Modal (z-modal, 70) paints above it — both portal to body. -->\n <AnchoredPositioner :anchor=\"anchor\" :placement=\"placement\" :offset=\"offset\" class=\"z-popover\">\n <!--\n `FocusScope as-child` merges into `DismissableLayer`, whose own root div\n *is* the panel — React kept a layer div around a separate panel div. The\n two share a box, and collapsing them puts `role`, the surface classes and\n the outside-click boundary on one node.\n -->\n <FocusScope as-child :is-trapped=\"isModal\" :can-loop=\"isModal\" :is-modal=\"isModal\">\n <DismissableLayer\n :is-escape-disabled=\"!dismissOnEscape\"\n :is-outside-click-disabled=\"!dismissOnOutsideClick\"\n :on-escape=\"handleEscape\"\n :on-outside-pointer-down=\"handleOutsidePointerDown\"\n role=\"dialog\"\n :aria-modal=\"isModal || undefined\"\n v-bind=\"rest\"\n :class=\"classes\"\n >\n <slot />\n </DismissableLayer>\n </FocusScope>\n </AnchoredPositioner>\n </div>\n </Presence>\n </Portal>\n</template>\n"],"names":["_createBlock","_unref","Portal","_createVNode","_createElementVNode","AnchoredPositioner","FocusScope","_mergeProps","_renderSlot"],"mappings":";;;;;;;;;;AAuCA,MAAM,eAAe;;;;;;;;;;;;;AAerB,UAAM,QAAQ;AAEd,UAAM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AA,kBAAS,WAAWJ,MAAA,SAAA;AAAA,kBAAY,QAAQA,MAAA,MAAA;AAAA,kBAAQ,OAAM;AAAA,gBAAA;mCAOjF,MAaa;AAAA,oBAbbE,YAaaF,MAAAK,WAAA,GAAA;AAAA,sBAbD,YAAA;AAAA,sBAAU,cAAYL,MAAA,OAAA;AAAA,sBAAU,YAAUA,MAAA,OAAA;AAAA,sBAAU,YAAUA,MAAA,OAAA;AAAA,oBAAA;uCACxE,MAWmB;AAAA,wBAXnBE,YAWmBF,oBAXnBM,WAWmB;AAAA,0BAVhB,uBAAqBN,MAAA,eAAA;AAAA,0BACrB,8BAA4BA,MAAA,qBAAA;AAAA,0BAC5B,aAAW;AAAA,0BACX,2BAAyB;AAAA,0BAC1B,MAAK;AAAA,0BACJ,cAAYA,MAAA,OAAA,KAAW;AAAA,wBAAA,GAChB,KAAA,OAAI,EACX,OAAO,QAAA,MAAA,CAAO,GAAA;AAAA,2CAEf,MAAQ;AAAA,4BAARO,WAAQ,KAAA,QAAA,SAAA;AAAA,0BAAA;;;;;;;;;;;;;;;;;;;"}
@@ -49,6 +49,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
49
  cancelOpen();
50
50
  cancelClose();
51
51
  }
52
+ function dismiss() {
53
+ clearTimers();
54
+ trigger.pointer = false;
55
+ trigger.focus = false;
56
+ setOpen(false);
57
+ }
52
58
  function updateTrigger(channel, active) {
53
59
  if (props.isDisabled) return;
54
60
  trigger[channel] = active;
@@ -71,18 +77,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
71
77
  watch(
72
78
  () => props.isDisabled,
73
79
  (disabled) => {
74
- if (!disabled) return;
75
- clearTimers();
76
- trigger.pointer = false;
77
- trigger.focus = false;
78
- setOpen(false);
80
+ if (disabled) dismiss();
79
81
  }
80
82
  );
81
83
  onBeforeUnmount(clearTimers);
82
- useEscape(() => {
83
- clearTimers();
84
- setOpen(false);
85
- }, open);
84
+ useEscape(dismiss, open);
86
85
  const hasContent = computed(() => !!props.content || !!slots.content);
87
86
  const visible = computed(() => !props.isDisabled && open.value && hasContent.value);
88
87
  function setAnchor(value) {
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.vue.js","sources":["../../../../src/presentation/overlays/tooltip/Tooltip.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { Placement } from '@floating-ui/vue';\n\nexport interface TooltipProps {\n /** The tooltip body. Rich content goes through the `content` slot. */\n readonly content?: string | number;\n\n /** The Floating UI placement. Default `top`. */\n readonly placement?: Placement;\n\n /** The delay before opening on hover, in ms. Default 700. */\n readonly openDelay?: number;\n\n /** The delay before closing on leave, in ms. Default 0. */\n readonly closeDelay?: number;\n\n /** Controlled axes use their canonical Vue model names; each update event requests caller state. */\n readonly open?: boolean;\n\n /** The initial open state when uncontrolled. Default `false`. */\n readonly defaultOpen?: boolean;\n\n /** The disabled mode — suppresses rendering even on hover (e.g. when content is empty). */\n readonly isDisabled?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport {\n cloneVNode,\n computed,\n createCommentVNode,\n onBeforeUnmount,\n shallowRef,\n useSlots,\n watch,\n type VNode,\n} from 'vue';\nimport { AriaAttribute, resolveElement } from '../../../foundation/dom';\nimport { useControlled } from '../../../foundation/state';\nimport { useEscape } from '../../../foundation/shortcuts';\nimport { useId } from '../../../foundation/identifiers';\nimport { AnchoredPositioner, Portal, renderableChildren } from '../../../foundation/primitives';\n\n/**\n * Renders a hover- or focus-triggered tooltip into a Portal, positioned by Floating UI.\n *\n * Wraps a single default-slot child as the trigger. Default delays mirror the OS pattern (700ms in, 0 out). Escape\n * dismisses without moving focus (WCAG 1.4.13); the trigger is described by the tooltip via `aria-describedby` while\n * open.\n *\n * `inheritAttrs: false` because the component renders a fragment (trigger + portal) — there is no single root for\n * attrs to land on, exactly as in React.\n */\ndefineOptions({ name: 'Tooltip', inheritAttrs: false });\n\ndefineSlots<{\n /** The single child element — the trigger. Receives the handlers, the ref, and `aria-describedby`. */\n default(): unknown;\n /** The rich override for the `content` prop. */\n content?(): unknown;\n}>();\n\nconst props = withDefaults(defineProps<TooltipProps>(), {\n content: undefined,\n placement: 'top',\n openDelay: 700,\n closeDelay: 0,\n open: undefined,\n defaultOpen: false,\n isDisabled: undefined,\n});\n\nconst emit = defineEmits<{\n /** Fires when the tooltip shows or hides — the `v-model:open` half. */\n 'update:open': [open: boolean];\n}>();\n\nconst slots = useSlots();\n\n/* `useControlled` returns a handle, not React's tuple, and takes `controlled` as a getter so the\n controlled branch tracks the prop. */\nconst { value: open, setValue: setOpen } = useControlled<boolean>({\n controlled: () => props.open,\n default: props.defaultOpen,\n onChange: (next) => {\n emit('update:open', next);\n },\n});\n\nconst anchor = shallowRef<HTMLElement | null>(null);\nconst tooltipId = useId('tooltip');\n\nlet openTimer: ReturnType<typeof setTimeout> | null = null;\nlet closeTimer: ReturnType<typeof setTimeout> | null = null;\nconst trigger = { pointer: false, focus: false };\n\nfunction cancelOpen(): void {\n if (openTimer !== null) clearTimeout(openTimer);\n openTimer = null;\n}\n\nfunction cancelClose(): void {\n if (closeTimer !== null) clearTimeout(closeTimer);\n closeTimer = null;\n}\n\nfunction clearTimers(): void {\n cancelOpen();\n cancelClose();\n}\n\nfunction updateTrigger(channel: keyof typeof trigger, active: boolean): void {\n if (props.isDisabled) return;\n trigger[channel] = active;\n if (trigger.pointer || trigger.focus) {\n cancelClose();\n if (open.value || openTimer !== null) return;\n openTimer = setTimeout(() => {\n openTimer = null;\n if (!props.isDisabled) setOpen(true);\n }, props.openDelay);\n return;\n }\n\n cancelOpen();\n if (!open.value || closeTimer !== null) return;\n closeTimer = setTimeout(() => {\n closeTimer = null;\n setOpen(false);\n }, props.closeDelay);\n}\n\nwatch(\n () => props.isDisabled,\n (disabled) => {\n if (!disabled) return;\n clearTimers();\n trigger.pointer = false;\n trigger.focus = false;\n setOpen(false);\n },\n);\n\n/* Clear pending timers on unmount. */\nonBeforeUnmount(clearTimers);\n\n/* WCAG 1.4.13 — Escape dismisses immediately, without moving focus. */\nuseEscape(() => {\n clearTimers();\n setOpen(false);\n}, open);\n\n/**\n * React gated on `!!content`; a Vue consumer can supply the body through the `content` slot\n * instead, so either source counts. An empty tooltip still never opens.\n */\nconst hasContent = computed(() => !!props.content || !!slots.content);\n\nconst visible = computed(() => !props.isDisabled && open.value && hasContent.value);\n\n/** A function ref may receive a component's public instance; the positioner needs the DOM node. */\nfunction setAnchor(value: unknown): void {\n anchor.value = resolveElement(value);\n}\n\n/**\n * React cloned the child element to attach the ref, the handlers and `aria-describedby`.\n * `cloneVNode` is the Vue counterpart and merges through `mergeProps`, so a handler the\n * consumer already put on the trigger is chained rather than replaced — the job React's\n * explicit `trigger.props.onPointerEnter?.(e)` forwarding did.\n *\n * Called from the template, never from a `computed`: a vnode `ref` records the instance rendering\n * at creation as its owner. The scheduler refreshes a dirty computed before the render runs, while\n * no instance renders, and production Vue then throws reading the missing owner's `refs`.\n *\n * The listener keys are all-lowercase after `on` (`onPointerenter`, not `onPointerEnter`):\n * Vue hyphenates the remainder to derive the DOM event name, so the React casing would\n * register `pointer-enter` and never fire.\n */\nfunction renderTrigger(): VNode {\n const child = renderableChildren(slots.default?.())[0];\n if (!child) return createCommentVNode('');\n const own = child.props?.[AriaAttribute.DescribedBy] as string | undefined;\n return cloneVNode(\n child,\n {\n ref: setAnchor,\n [AriaAttribute.DescribedBy]: visible.value ? [own, tooltipId].filter(Boolean).join(' ') : own,\n onPointerenter: () => updateTrigger('pointer', true),\n onPointerleave: () => updateTrigger('pointer', false),\n onFocus: () => updateTrigger('focus', true),\n onBlur: () => updateTrigger('focus', false),\n },\n true,\n );\n}\n</script>\n\n<template>\n <component :is=\"renderTrigger()\" />\n <Portal v-if=\"visible\">\n <!-- Put the layer on the positioned root because its transform creates a stacking context. -->\n <AnchoredPositioner :anchor=\"anchor\" :placement=\"props.placement\" :offset=\"6\" class=\"z-tooltip\">\n <div\n :id=\"tooltipId\"\n role=\"tooltip\"\n class=\"rounded-md border border-border bg-popover px-2.5 py-1.5 text-xs text-popover-foreground shadow-md\"\n >\n <slot name=\"content\">{{ props.content }}</slot>\n </div>\n </AnchoredPositioner>\n </Portal>\n</template>\n"],"names":["_openBlock","_createBlock","_resolveDynamicComponent","_unref","Portal","_createVNode","AnchoredPositioner","_createElementVNode","_renderSlot","_createTextVNode","_toDisplayString"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA+DA,UAAM,QAAQ;AAUd,UAAM,OAAO;AAKb,UAAM,QAAQ,SAAA;AAId,UAAM,EAAE,OAAO,MAAM,UAAU,QAAA,IAAY,cAAuB;AAAA,MAChE,YAAY,MAAM,MAAM;AAAA,MACxB,SAAS,MAAM;AAAA,MACf,UAAU,CAAC,SAAS;AAClB,aAAK,eAAe,IAAI;AAAA,MAC1B;AAAA,IAAA,CACD;AAED,UAAM,SAAS,WAA+B,IAAI;AAClD,UAAM,YAAY,MAAM,SAAS;AAEjC,QAAI,YAAkD;AACtD,QAAI,aAAmD;AACvD,UAAM,UAAU,EAAE,SAAS,OAAO,OAAO,MAAA;AAEzC,aAAS,aAAmB;AAC1B,UAAI,cAAc,KAAM,cAAa,SAAS;AAC9C,kBAAY;AAAA,IACd;AAEA,aAAS,cAAoB;AAC3B,UAAI,eAAe,KAAM,cAAa,UAAU;AAChD,mBAAa;AAAA,IACf;AAEA,aAAS,cAAoB;AAC3B,iBAAA;AACA,kBAAA;AAAA,IACF;AAEA,aAAS,cAAc,SAA+B,QAAuB;AAC3E,UAAI,MAAM,WAAY;AACtB,cAAQ,OAAO,IAAI;AACnB,UAAI,QAAQ,WAAW,QAAQ,OAAO;AACpC,oBAAA;AACA,YAAI,KAAK,SAAS,cAAc,KAAM;AACtC,oBAAY,WAAW,MAAM;AAC3B,sBAAY;AACZ,cAAI,CAAC,MAAM,WAAY,SAAQ,IAAI;AAAA,QACrC,GAAG,MAAM,SAAS;AAClB;AAAA,MACF;AAEA,iBAAA;AACA,UAAI,CAAC,KAAK,SAAS,eAAe,KAAM;AACxC,mBAAa,WAAW,MAAM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A,KAAA;AAAA,2BATP,MAQqB;AAAA,YARrBC,YAQqBF,MAAAG,WAAA,GAAA;AAAA,cARA,QAAQ,OAAA;AAAA,cAAS,WAAW,MAAM;AAAA,cAAY,QAAQ;AAAA,cAAG,OAAM;AAAA,YAAA;+BAClF,MAMM;AAAA,gBANNC,mBAMM,OAAA;AAAA,kBALH,IAAIJ,MAAA,SAAA;AAAA,kBACL,MAAK;AAAA,kBACL,OAAM;AAAA,gBAAA;kBAENK,WAA+C,4BAA/C,MAA+C;AAAA,oBAAvBC,gBAAAC,gBAAA,MAAM,OAAO,GAAA,CAAA;AAAA,kBAAA;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Tooltip.vue.js","sources":["../../../../src/presentation/overlays/tooltip/Tooltip.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { Placement } from '@floating-ui/vue';\n\nexport interface TooltipProps {\n /** The tooltip body. Rich content goes through the `content` slot. */\n readonly content?: string | number;\n\n /** The Floating UI placement. Default `top`. */\n readonly placement?: Placement;\n\n /** The delay before opening on hover, in ms. Default 700. */\n readonly openDelay?: number;\n\n /** The delay before closing on leave, in ms. Default 0. */\n readonly closeDelay?: number;\n\n /** Controlled axes use their canonical Vue model names; each update event requests caller state. */\n readonly open?: boolean;\n\n /** The initial open state when uncontrolled. Default `false`. */\n readonly defaultOpen?: boolean;\n\n /** The disabled mode — suppresses rendering even on hover (e.g. when content is empty). */\n readonly isDisabled?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport {\n cloneVNode,\n computed,\n createCommentVNode,\n onBeforeUnmount,\n shallowRef,\n useSlots,\n watch,\n type VNode,\n} from 'vue';\nimport { AriaAttribute, resolveElement } from '../../../foundation/dom';\nimport { useControlled } from '../../../foundation/state';\nimport { useEscape } from '../../../foundation/shortcuts';\nimport { useId } from '../../../foundation/identifiers';\nimport { AnchoredPositioner, Portal, renderableChildren } from '../../../foundation/primitives';\n\n/**\n * Renders a hover- or focus-triggered tooltip into a Portal, positioned by Floating UI.\n *\n * Wraps a single default-slot child as the trigger. Default delays mirror the OS pattern (700ms in, 0 out). Escape\n * dismisses without moving focus (WCAG 1.4.13); the trigger is described by the tooltip via `aria-describedby` while\n * open.\n *\n * `inheritAttrs: false` because the component renders a fragment (trigger + portal) — there is no single root for\n * attrs to land on, exactly as in React.\n */\ndefineOptions({ name: 'Tooltip', inheritAttrs: false });\n\ndefineSlots<{\n /** The single child element — the trigger. Receives the handlers, the ref, and `aria-describedby`. */\n default(): unknown;\n /** The rich override for the `content` prop. */\n content?(): unknown;\n}>();\n\nconst props = withDefaults(defineProps<TooltipProps>(), {\n content: undefined,\n placement: 'top',\n openDelay: 700,\n closeDelay: 0,\n open: undefined,\n defaultOpen: false,\n isDisabled: undefined,\n});\n\nconst emit = defineEmits<{\n /** Fires when the tooltip shows or hides — the `v-model:open` half. */\n 'update:open': [open: boolean];\n}>();\n\nconst slots = useSlots();\n\n/* `useControlled` returns a handle, not React's tuple, and takes `controlled` as a getter so the\n controlled branch tracks the prop. */\nconst { value: open, setValue: setOpen } = useControlled<boolean>({\n controlled: () => props.open,\n default: props.defaultOpen,\n onChange: (next) => {\n emit('update:open', next);\n },\n});\n\nconst anchor = shallowRef<HTMLElement | null>(null);\nconst tooltipId = useId('tooltip');\n\nlet openTimer: ReturnType<typeof setTimeout> | null = null;\nlet closeTimer: ReturnType<typeof setTimeout> | null = null;\nconst trigger = { pointer: false, focus: false };\n\nfunction cancelOpen(): void {\n if (openTimer !== null) clearTimeout(openTimer);\n openTimer = null;\n}\n\nfunction cancelClose(): void {\n if (closeTimer !== null) clearTimeout(closeTimer);\n closeTimer = null;\n}\n\nfunction clearTimers(): void {\n cancelOpen();\n cancelClose();\n}\n\n/**\n * Closes now and forgets both channels, so a channel that leaves afterwards cannot schedule a reopen; only a new\n * pointer enter or focus opens it again.\n */\nfunction dismiss(): void {\n clearTimers();\n trigger.pointer = false;\n trigger.focus = false;\n setOpen(false);\n}\n\nfunction updateTrigger(channel: keyof typeof trigger, active: boolean): void {\n if (props.isDisabled) return;\n trigger[channel] = active;\n if (trigger.pointer || trigger.focus) {\n cancelClose();\n if (open.value || openTimer !== null) return;\n openTimer = setTimeout(() => {\n openTimer = null;\n if (!props.isDisabled) setOpen(true);\n }, props.openDelay);\n return;\n }\n\n cancelOpen();\n if (!open.value || closeTimer !== null) return;\n closeTimer = setTimeout(() => {\n closeTimer = null;\n setOpen(false);\n }, props.closeDelay);\n}\n\nwatch(\n () => props.isDisabled,\n (disabled) => {\n if (disabled) dismiss();\n },\n);\n\n/* Clear pending timers on unmount. */\nonBeforeUnmount(clearTimers);\n\n/* WCAG 1.4.13 — Escape dismisses immediately, without moving focus, and stays dismissed. */\nuseEscape(dismiss, open);\n\n/**\n * React gated on `!!content`; a Vue consumer can supply the body through the `content` slot\n * instead, so either source counts. An empty tooltip still never opens.\n */\nconst hasContent = computed(() => !!props.content || !!slots.content);\n\nconst visible = computed(() => !props.isDisabled && open.value && hasContent.value);\n\n/** A function ref may receive a component's public instance; the positioner needs the DOM node. */\nfunction setAnchor(value: unknown): void {\n anchor.value = resolveElement(value);\n}\n\n/**\n * React cloned the child element to attach the ref, the handlers and `aria-describedby`.\n * `cloneVNode` is the Vue counterpart and merges through `mergeProps`, so a handler the\n * consumer already put on the trigger is chained rather than replaced — the job React's\n * explicit `trigger.props.onPointerEnter?.(e)` forwarding did.\n *\n * Called from the template, never from a `computed`: a vnode `ref` records the instance rendering\n * at creation as its owner. The scheduler refreshes a dirty computed before the render runs, while\n * no instance renders, and production Vue then throws reading the missing owner's `refs`.\n *\n * The listener keys are all-lowercase after `on` (`onPointerenter`, not `onPointerEnter`):\n * Vue hyphenates the remainder to derive the DOM event name, so the React casing would\n * register `pointer-enter` and never fire.\n */\nfunction renderTrigger(): VNode {\n const child = renderableChildren(slots.default?.())[0];\n if (!child) return createCommentVNode('');\n const own = child.props?.[AriaAttribute.DescribedBy] as string | undefined;\n return cloneVNode(\n child,\n {\n ref: setAnchor,\n [AriaAttribute.DescribedBy]: visible.value ? [own, tooltipId].filter(Boolean).join(' ') : own,\n onPointerenter: () => updateTrigger('pointer', true),\n onPointerleave: () => updateTrigger('pointer', false),\n onFocus: () => updateTrigger('focus', true),\n onBlur: () => updateTrigger('focus', false),\n },\n true,\n );\n}\n</script>\n\n<template>\n <component :is=\"renderTrigger()\" />\n <Portal v-if=\"visible\">\n <!-- Put the layer on the positioned root because its transform creates a stacking context. -->\n <AnchoredPositioner :anchor=\"anchor\" :placement=\"props.placement\" :offset=\"6\" class=\"z-tooltip\">\n <div\n :id=\"tooltipId\"\n role=\"tooltip\"\n class=\"rounded-md border border-border bg-popover px-2.5 py-1.5 text-xs text-popover-foreground shadow-md\"\n >\n <slot name=\"content\">{{ props.content }}</slot>\n </div>\n </AnchoredPositioner>\n </Portal>\n</template>\n"],"names":["_openBlock","_createBlock","_resolveDynamicComponent","_unref","Portal","_createVNode","AnchoredPositioner","_createElementVNode","_renderSlot","_createTextVNode","_toDisplayString"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA+DA,UAAM,QAAQ;AAUd,UAAM,OAAO;AAKb,UAAM,QAAQ,SAAA;AAId,UAAM,EAAE,OAAO,MAAM,UAAU,QAAA,IAAY,cAAuB;AAAA,MAChE,YAAY,MAAM,MAAM;AAAA,MACxB,SAAS,MAAM;AAAA,MACf,UAAU,CAAC,SAAS;AAClB,aAAK,eAAe,IAAI;AAAA,MAC1B;AAAA,IAAA,CACD;AAED,UAAM,SAAS,WAA+B,IAAI;AAClD,UAAM,YAAY,MAAM,SAAS;AAEjC,QAAI,YAAkD;AACtD,QAAI,aAAmD;AACvD,UAAM,UAAU,EAAE,SAAS,OAAO,OAAO,MAAA;AAEzC,aAAS,aAAmB;AAC1B,UAAI,cAAc,KAAM,cAAa,SAAS;AAC9C,kBAAY;AAAA,IACd;AAEA,aAAS,cAAoB;AAC3B,UAAI,eAAe,KAAM,cAAa,UAAU;AAChD,mBAAa;AAAA,IACf;AAEA,aAAS,cAAoB;AAC3B,iBAAA;AAC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AAE,OAAO,OAAO,EAAE,KAAK,GAAG,IAAI;AAAA,UAC1F,gBAAgB,MAAM,cAAc,WAAW,IAAI;AAAA,UACnD,gBAAgB,MAAM,cAAc,WAAW,KAAK;AAAA,UACpD,SAAS,MAAM,cAAc,SAAS,IAAI;AAAA,UAC1C,QAAQ,MAAM,cAAc,SAAS,KAAK;AAAA,QAAA;AAAA,QAE5C;AAAA,MAAA;AAAA,IAEJ;;;SAIEA,aAAAC,YAAmCC,wBAAnB,cAAA,CAAa,CAAA;AAAA,QACf,QAAA,sBAAdD,YAWSE,MAAAC,WAAA,GAAA,EAAA,KAAA,KAAA;AAAA,2BATP,MAQqB;AAAA,YARrBC,YAQqBF,MAAAG,WAAA,GAAA;AAAA,cARA,QAAQ,OAAA;AAAA,cAAS,WAAW,MAAM;AAAA,cAAY,QAAQ;AAAA,cAAG,OAAM;AAAA,YAAA;+BAClF,MAMM;AAAA,gBANNC,mBAMM,OAAA;AAAA,kBALH,IAAIJ,MAAA,SAAA;AAAA,kBACL,MAAK;AAAA,kBACL,OAAM;AAAA,gBAAA;kBAENK,WAA+C,4BAA/C,MAA+C;AAAA,oBAAvBC,gBAAAC,gBAAA,MAAM,OAAO,GAAA,CAAA;AAAA,kBAAA;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wow-two-beta/fe",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
4
4
  "description": "Beta-forever Vue 3 fe sdk for the wow-two ecosystem — components, application adapters and browser capabilities.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"NotificationItem.vue.js","sources":["../../../../src/presentation/display/notificationCenterGroup/NotificationItem.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { Severity } from '../../../foundation/styles';\nexport interface NotificationItemProps {\n /** The semantic severity; supplies a leading glyph when no icon is provided. */\n readonly severity?: Severity;\n /** The leading icon / avatar. Rich content → the `icon` slot. */\n readonly icon?: string;\n\n /** The primary title. Rich content → the `title` slot. Supply this or the slot. */\n readonly title?: string;\n\n /** The body / description. Rich content → the `description` slot. */\n readonly description?: string;\n\n /** The timestamp / relative time label. Rich content → the `timestamp` slot. */\n readonly timestamp?: string;\n\n /** The unread flag (bold + leading dot). */\n readonly isUnread?: boolean;\n\n /** The trailing actions. Rich content → the `actions` slot. */\n readonly actions?: string;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { useLocale } from '../../../foundation/i18n';\nimport { computed, getCurrentInstance, useAttrs, useSlots, useTemplateRef } from 'vue';\nimport { Trash2, X } from 'lucide-vue-next';\nimport { Icon, SeverityIcons, SeverityIconClasses } from '../../../foundation/icons';\nimport { cn } from '../../../foundation/styles';\nimport { Key } from '../../../foundation/dom';\n\nconst locale = useLocale();\n\n/** Renders one notification row — icon, title, description, timestamp, and an unread dot. */\ndefineOptions({ name: 'NotificationItem', inheritAttrs: false });\n\nconst props = defineProps<NotificationItemProps>();\n\nconst emit = defineEmits<{\n /**\n * Fires when the reader activates the row by click, Enter, or Space; binding it\n * makes the row interactive (`role=\"button\"`, `tabindex=\"0\"`).\n *\n * Declared as an emit even though `select` is also a DOM event name — the\n * React prop was a custom callback, not the native `select`, and an emit is\n * the only way to keep the name. A `@select` binding reaches this emit, not\n * the (never-fired-on-a-div) native event.\n */\n select: [];\n /** Fires when the reader presses the dismiss button, which renders on hover only when bound. */\n dismiss: [];\n /** Removes a retained notice; only rendered when this event is bound. */\n delete: [];\n}>();\n\ndefineSlots<{\n /** The leading icon. Falls back to the `icon` prop. */\n icon?(): unknown;\n /** The title line. Falls back to the `title` prop. */\n title?(): unknown;\n /** The right-aligned timestamp. Falls back to the `timestamp` prop. */\n timestamp?(): unknown;\n /** The body text under the title. Falls back to the `description` prop. */\n description?(): unknown;\n /** The action row under the description. Falls back to the `actions` prop. */\n actions?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst slots = useSlots();\nconst instance = getCurrentInstance();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\n/**\n * Mirror React's `!!onSelect` / `onDismiss &&` guards. Read through a call, not\n * a cached computed: `instance.vnode` is replaced on every re-render.\n */\nconst interactive = () => Boolean(instance?.vnode.props?.onSelect);\nconst hasDismiss = () => Boolean(instance?.vnode.props?.onDismiss);\nconst hasDelete = () => Boolean(instance?.vnode.props?.onDelete);\nconst severityIcon = computed(() => (props.severity ? SeverityIcons[props.severity] : null));\n\nconst hasIcon = () => Boolean(props.icon) || Boolean(slots.icon) || Boolean(severityIcon.value);\nconst hasTimestamp = () => Boolean(props.timestamp) || Boolean(slots.timestamp);\nconst hasDescription = () => Boolean(props.description) || Boolean(slots.description);\nconst hasActions = () => Boolean(props.actions) || Boolean(slots.actions);\n\nconst classes = computed(() =>\n cn(\n 'group/notif relative flex gap-3 rounded-md px-3 py-2.5 text-sm',\n interactive() &&\n 'cursor-pointer hover:bg-muted focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring',\n props.isUnread && 'bg-primary-soft/30',\n attrs.class as string | undefined,\n ),\n);\n\nconst titleClasses = computed(() => cn('truncate text-foreground', props.isUnread ? 'font-semibold' : 'font-medium'));\n\nconst bodyClasses = computed(() => cn('min-w-0 flex-1', !hasIcon() && 'pl-3'));\n\n/** The dismiss button's resting classes — corner placement, box, and the hidden-until-hover opacity. */\nconst DismissRestingClasses =\n 'absolute right-2 top-2 inline-flex h-6 w-6 items-center justify-center rounded-md text-muted-foreground opacity-0';\n\n/** The dismiss button's hover / focus classes — the raised surface and the focus ring. */\nconst DismissInteractionClasses =\n 'hover:bg-background hover:text-foreground focus-visible:opacity-100 ' +\n 'focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring';\n\nconst onKeyDown = (event: KeyboardEvent) => {\n if (!interactive()) return;\n if (event.target !== event.currentTarget) return;\n if (event.key === Key.Enter || event.key === Key.Space) {\n event.preventDefault();\n emit('select');\n }\n};\n\nconst onDismissClick = (event: MouseEvent) => {\n event.stopPropagation();\n emit('dismiss');\n};\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div\n ref=\"el\"\n :role=\"interactive() ? 'button' : undefined\"\n :tabindex=\"interactive() ? 0 : undefined\"\n :data-unread=\"props.isUnread ? '' : undefined\"\n v-bind=\"rest\"\n :class=\"classes\"\n @click=\"emit('select')\"\n @keydown=\"onKeyDown\"\n >\n <span\n v-if=\"props.isUnread\"\n aria-hidden=\"true\"\n class=\"absolute left-1 top-3 inline-block h-2 w-2 rounded-full bg-primary\"\n />\n <div v-if=\"hasIcon()\" class=\"shrink-0 self-start pl-3\">\n <slot name=\"icon\">\n <template v-if=\"props.icon\">{{ props.icon }}</template>\n <Icon v-else-if=\"severityIcon\" :icon=\"severityIcon\" :size=\"16\" :class=\"SeverityIconClasses[props.severity!]\" />\n </slot>\n </div>\n <div :class=\"bodyClasses\">\n <div class=\"flex items-baseline gap-2\">\n <span :class=\"titleClasses\">\n <slot name=\"title\">{{ props.title }}</slot>\n </span>\n <span v-if=\"hasTimestamp()\" class=\"ml-auto whitespace-nowrap text-xs text-muted-foreground\">\n <slot name=\"timestamp\">{{ props.timestamp }}</slot>\n </span>\n </div>\n <div v-if=\"hasDescription()\" class=\"mt-0.5 line-clamp-2 text-xs text-muted-foreground\">\n <slot name=\"description\">{{ props.description }}</slot>\n </div>\n <div v-if=\"hasActions()\" class=\"mt-1.5 flex items-center gap-2\">\n <slot name=\"actions\">{{ props.actions }}</slot>\n </div>\n </div>\n <button\n v-if=\"hasDelete()\"\n type=\"button\"\n :aria-label=\"locale.t('NotificationItem.deleteNotification', undefined, 'Delete notification')\"\n class=\"inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring\"\n @click.stop=\"emit('delete')\"\n >\n <Icon :icon=\"Trash2\" :size=\"14\" />\n </button>\n <button\n v-if=\"hasDismiss()\"\n type=\"button\"\n :aria-label=\"locale.t('NotificationItem.dismissNotification', undefined, 'Dismiss notification')\"\n :class=\"\n cn(\n DismissRestingClasses,\n 'group-hover/notif:opacity-100 group-focus-within/notif:opacity-100',\n DismissInteractionClasses,\n )\n \"\n @click=\"onDismissClick\"\n >\n <X class=\"h-3.5 w-3.5\" />\n </button>\n </div>\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_renderSlot","_Fragment","_createTextVNode","_toDisplayString","_createBlock","_unref","Icon","_normalizeClass","_createElementVNode","_createVNode"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,UAAM,SAAS,UAAA;AAKf,UAAM,QAAQ;AAEd,UAAM,OAAO;AA8Bb,UAAM,QAAQ,SAAA;AACd,UAAM,QAAQ,SAAA;AACd,UAAM,WAAW,mBAAA;AACjB,UAAM,KAAK,eAA+B,IAAI;AAM9C,UAAM,cAAc,MAAM,QAAQ,UAAU,MAAM,OAAO,QAAQ;AACjE,UAAM,aAAa,MAAM,QAAQ,UAAU,MAAM,OAAO,SAAS;AACjE,UAAM,YAAY,MAAM,QAAQ,UAAU,MAAM,OAAO,QAAQ;AAC/D,UAAM,eAAe,SAAS,MAAO,MAAM,WAAW,cAAc,MAAM,QAAQ,IAAI,IAAK;AAE3F,UAAM,UAAU,MAAM,QAAQ,MAAM,IAAI,KAAK,QAAQ,MAAM,IAAI,KAAK,QAAQ,aAAa,KAAK;AAC9F,UAAM,eAAe,MAAM,QAAQ,MAAM,SAAS,KAAK,QAAQ,MAAM,SAAS;AAC9E,UAAM,iBAAiB,MAAM,QAAQ,MAAM,WAAW,KAAK,QAAQ,MAAM,WAAW;AACpF,UAAM,aAAa,MAAM,QAAQ,MAAM,OAAO,KAAK,QAAQ,MAAM,OAAO;AAExE,UAAM,UAAU;AAAA,MAAS,MACvB;AAAA,QACE;AAAA,QACA,iBACE;AAAA,QACF,MAAM,YAAY;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0CAA0C,QAAS,sBAAA;AAAA,UACtE,OAAKE;AAAAA,YAAWF,MAAA,EAAA;AAAA,cAAc;AAAA;cAAiH;AAAA,YAAA;AAAA;UAO/I,SAAO;AAAA,QAAA;UAERI,YAAyBJ,MAAA,CAAA,GAAA,EAAtB,OAAM,eAAa;AAAA,QAAA;;;;;"}
@@ -1,5 +0,0 @@
1
- import _sfc_main from "./NotificationItem.vue.js";
2
- export {
3
- _sfc_main as default
4
- };
5
- //# sourceMappingURL=NotificationItem2.vue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NotificationItem2.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}