@mkbabb/glass-ui 3.13.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (304) hide show
  1. package/dist/CardAction-XH4YBVEK.js +158 -0
  2. package/dist/{CommandShortcut-RowNEO6i.js → CommandShortcut-DdtWXxOK.js} +57 -52
  3. package/dist/{ContextMenuSubContent-BQmxTAdw.js → ContextMenuSubContent-B0Vs6atR.js} +1 -1
  4. package/dist/{DataTable-BCddn3T3.js → DataTable-C464Zbqd.js} +99 -97
  5. package/dist/DialogContent-DDE6pQBU.js +103 -0
  6. package/dist/{DialogFooter-Blu4t7tJ.js → DialogFooter-8eZbdmPc.js} +1 -1
  7. package/dist/FadingScroll-DwNnvKMs.js +76 -0
  8. package/dist/{HoverPopover-CISOJQuZ.js → HoverPopover-Dpzwvc4t.js} +1 -1
  9. package/dist/IconChip-BDw1j5mu.js +54 -0
  10. package/dist/{MetricBadge-C9QMz1KT.js → MetricBadge-BpC0R_Ec.js} +1 -1
  11. package/dist/{Notification-DdwNxIrI.js → Notification-DKjKsQq8.js} +8 -8
  12. package/dist/{NumberFieldContent-CqaN-SvN.js → NumberFieldContent-1VtwDSgf.js} +1 -1
  13. package/dist/PopoverContent-BTorlp--.js +127 -0
  14. package/dist/{Progress-DwlUKGbr.js → Progress-hAT4gqGH.js} +97 -77
  15. package/dist/{ScrollingText-DfFrwSph.js → ScrollingText-CUVFTWk2.js} +2 -2
  16. package/dist/{SelectScrollDownButton-CiDUxfEj.js → SelectScrollDownButton-C1jb3b3K.js} +22 -6
  17. package/dist/{Switch-CsIuYP_e.js → Switch-Dr--uLGH.js} +1 -1
  18. package/dist/{Toaster-D6q4HtXu.js → Toaster-Bm_HQSpc.js} +6 -6
  19. package/dist/{ToggleGroupItem-D_AHlRw9.js → ToggleGroupItem-Dzk9hWsF.js} +1 -1
  20. package/dist/animated-digit.js +2 -2
  21. package/dist/api/index.d.ts +8 -5
  22. package/dist/api.js +2 -2
  23. package/dist/aurora.js +132 -117
  24. package/dist/{button-ChXMfsud.js → button-BNDWhAZb.js} +2 -2
  25. package/dist/button.js +1 -1
  26. package/dist/card.js +1 -1
  27. package/dist/carousel.d.ts +1 -1
  28. package/dist/carousel.js +97 -141
  29. package/dist/collapsible.js +1 -1
  30. package/dist/color-swatch.d.ts +1 -0
  31. package/dist/color-swatch.js +47 -0
  32. package/dist/color.js +1 -1
  33. package/dist/command.js +1 -1
  34. package/dist/components/custom/aurora/constants/presets.d.ts +28 -0
  35. package/dist/components/custom/aurora/constants/renderMode.d.ts +2 -0
  36. package/dist/components/custom/aurora/index.d.ts +1 -1
  37. package/dist/components/custom/color-swatch/ColorSwatch.vue.d.ts +22 -0
  38. package/dist/components/custom/color-swatch/index.d.ts +1 -0
  39. package/dist/components/custom/configurator/Configurator.vue.d.ts +19 -8
  40. package/dist/components/custom/constellation/Constellation.vue.d.ts +18 -206
  41. package/dist/components/custom/constellation/composables/useConstellation.d.ts +26 -0
  42. package/dist/components/custom/constellation/constellationField.d.ts +2 -369
  43. package/dist/components/custom/constellation/constellationTypes.d.ts +369 -0
  44. package/dist/components/custom/constellation/index.d.ts +1 -1
  45. package/dist/components/custom/dock/DockRail.vue.d.ts +17 -16
  46. package/dist/components/custom/dock/DockSection.vue.d.ts +69 -0
  47. package/dist/components/custom/dock/DockSeparator.vue.d.ts +49 -1
  48. package/dist/components/custom/dock/DockTabButton.vue.d.ts +5 -5
  49. package/dist/components/custom/dock/constants.d.ts +35 -0
  50. package/dist/components/custom/dock/index.d.ts +2 -0
  51. package/dist/components/custom/expandable-container/ExpandableContainer.vue.d.ts +10 -0
  52. package/dist/components/custom/fading-scroll/FadingScroll.vue.d.ts +25 -0
  53. package/dist/components/custom/fading-scroll/composables/useFadingScroll.d.ts +31 -0
  54. package/dist/components/custom/fading-scroll/constants.d.ts +19 -0
  55. package/dist/components/custom/fading-scroll/index.d.ts +2 -0
  56. package/dist/components/custom/fourier-field/FourierField.vue.d.ts +7 -0
  57. package/dist/components/custom/fourier-field/index.d.ts +1 -1
  58. package/dist/components/custom/fourier-field/math.d.ts +17 -0
  59. package/dist/components/custom/glass-panel/GlassPanel.vue.d.ts +8 -0
  60. package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +11 -1
  61. package/dist/components/custom/goo-blob/constants.d.ts +6 -1
  62. package/dist/components/custom/handmark/HandMark.vue.d.ts +29 -0
  63. package/dist/components/custom/handmark/brush.d.ts +269 -0
  64. package/dist/components/custom/handmark/composables/useHandMark.d.ts +89 -0
  65. package/dist/components/custom/handmark/constants.d.ts +39 -0
  66. package/dist/components/custom/handmark/freehand.d.ts +69 -0
  67. package/dist/components/custom/handmark/geometry.d.ts +52 -0
  68. package/dist/components/custom/handmark/index.d.ts +27 -0
  69. package/dist/components/custom/handmark/ink.d.ts +11 -0
  70. package/dist/components/custom/handmark/texture.d.ts +39 -0
  71. package/dist/components/custom/handmark/types.d.ts +62 -0
  72. package/dist/components/custom/icon-chip/IconChip.vue.d.ts +4 -0
  73. package/dist/components/custom/icon-chip/index.d.ts +2 -0
  74. package/dist/components/custom/icon-chip/types.d.ts +72 -0
  75. package/dist/components/custom/instrument-chassis/InstrumentChassis.vue.d.ts +15 -2
  76. package/dist/components/custom/pager-dots/PagerDots.vue.d.ts +39 -0
  77. package/dist/components/custom/pager-dots/index.d.ts +2 -0
  78. package/dist/components/custom/tabs/SegmentedTabs.vue.d.ts +20 -25
  79. package/dist/components/custom/tabs/composables/useTabIndicator.d.ts +30 -21
  80. package/dist/components/custom/tabs/constants.d.ts +9 -3
  81. package/dist/components/custom/tabs/index.d.ts +1 -1
  82. package/dist/components/custom/watercolor-dot/WatercolorDot.vue.d.ts +14 -0
  83. package/dist/components/ui/_shared/index.d.ts +2 -0
  84. package/dist/components/ui/_shared/menuItemVariants.d.ts +19 -0
  85. package/dist/components/ui/_shared/useSurfaceAxis.d.ts +41 -0
  86. package/dist/components/ui/card/Card.vue.d.ts +1 -1
  87. package/dist/components/ui/carousel/index.d.ts +0 -1
  88. package/dist/components/ui/command/Command.vue.d.ts +3 -0
  89. package/dist/components/ui/dialog/DialogContent.vue.d.ts +8 -3
  90. package/dist/components/ui/drawer/DrawerContent.vue.d.ts +5 -0
  91. package/dist/components/ui/index.d.ts +0 -1
  92. package/dist/components/ui/popover/PopoverContent.vue.d.ts +3 -0
  93. package/dist/components/ui/progress/ProgressSectioned.vue.d.ts +14 -3
  94. package/dist/components/ui/select/SelectTrigger.vue.d.ts +27 -4
  95. package/dist/components/ui/sheet/SheetContent.vue.d.ts +6 -0
  96. package/dist/components/ui/skeleton/Skeleton.vue.d.ts +3 -0
  97. package/dist/composables/dark/index.d.ts +1 -1
  98. package/dist/composables/dark/useGlobalDark.d.ts +23 -1
  99. package/dist/composables/motion/useViewTransition.d.ts +36 -1
  100. package/dist/configurator.js +1 -1
  101. package/dist/confirm-dialog.js +2 -2
  102. package/dist/constellation.js +92 -94
  103. package/dist/context-menu.js +2 -2
  104. package/dist/controls.js +10 -4
  105. package/dist/dark.d.ts +1 -1
  106. package/dist/dark.js +1 -1
  107. package/dist/data-table.js +1 -1
  108. package/dist/dialog.js +2 -2
  109. package/dist/dock.js +510 -321
  110. package/dist/{dockContext-BegmJVmx.js → dockContext-Bu1Avy-a.js} +1 -1
  111. package/dist/dom.js +5 -5
  112. package/dist/{dropdown-menu-DzkkyBwX.js → dropdown-menu-BJ7E9js_.js} +2 -2
  113. package/dist/dropdown-menu.js +1 -1
  114. package/dist/expandable-container.js +42 -38
  115. package/dist/fading-scroll.d.ts +1 -0
  116. package/dist/fading-scroll.js +2 -0
  117. package/dist/forms.js +3 -3
  118. package/dist/fourier-field.js +38 -37
  119. package/dist/fourier-math.js +2 -2
  120. package/dist/glass-panel.js +39 -36
  121. package/dist/glass-ui.css +1 -1
  122. package/dist/glass-ui.js +129 -145
  123. package/dist/goo-blob.js +86 -81
  124. package/dist/handmark.d.ts +1 -0
  125. package/dist/handmark.js +707 -0
  126. package/dist/header-ribbon.js +1 -1
  127. package/dist/hover-card.js +1 -1
  128. package/dist/hover-popover.js +1 -1
  129. package/dist/icon-chip.d.ts +1 -0
  130. package/dist/icon-chip.js +2 -0
  131. package/dist/icon-tooltip.js +1 -1
  132. package/dist/index.d.ts +2 -2
  133. package/dist/keyboard.js +1 -1
  134. package/dist/label.js +1 -1
  135. package/dist/labeled-field.js +6 -6
  136. package/dist/{math-U6-RrLmV.js → math-DeuJwLFx.js} +11 -3
  137. package/dist/{menuItemVariants-DPiEarb0.js → menuItemVariants-DWRQXBxJ.js} +10 -4
  138. package/dist/metric-badge.js +1 -1
  139. package/dist/metric-cell.js +25 -22
  140. package/dist/metric-stack.js +1 -1
  141. package/dist/motion-core.js +33 -32
  142. package/dist/motion-curves.js +1 -1
  143. package/dist/motion.js +4 -4
  144. package/dist/notification.js +1 -1
  145. package/dist/number-field.js +1 -1
  146. package/dist/pager-dots.d.ts +1 -0
  147. package/dist/pager-dots.js +91 -0
  148. package/dist/paper-backdrop.js +1 -1
  149. package/dist/popover.js +1 -1
  150. package/dist/{presets-BKVyQfbt.js → presets-BW2b-fr1.js} +14 -1
  151. package/dist/progress.js +1 -1
  152. package/dist/pulse.js +1 -1
  153. package/dist/reactive.js +2 -2
  154. package/dist/scrolling-text.js +1 -1
  155. package/dist/search.js +5 -5
  156. package/dist/select.js +3 -3
  157. package/dist/separator.js +1 -1
  158. package/dist/{sheet-1fChZjtw.js → sheet-CquRYOAw.js} +59 -55
  159. package/dist/sheet.js +1 -1
  160. package/dist/{slider-B-JP2JlI.js → slider-DQ95MET2.js} +7 -7
  161. package/dist/slider.js +1 -1
  162. package/dist/sortable-list.js +3 -3
  163. package/dist/styles/animations.css +11 -26
  164. package/dist/styles/components.css +1 -1
  165. package/dist/styles/configurator.css +35 -0
  166. package/dist/styles/dock/density.css +19 -0
  167. package/dist/styles/dock/overflow.css +15 -0
  168. package/dist/styles/dock/rail-extend.css +168 -71
  169. package/dist/styles/dock/section.css +59 -0
  170. package/dist/styles/dock/shell.css +34 -5
  171. package/dist/styles/dock-controls/icon-button.css +11 -1
  172. package/dist/styles/dock-controls/tab-button.css +24 -83
  173. package/dist/styles/dock-controls/triggers.css +7 -0
  174. package/dist/styles/dock.css +6 -3
  175. package/dist/styles/drawer.css +46 -0
  176. package/dist/styles/feedback-tone.css +104 -0
  177. package/dist/styles/glass/ladder.css +68 -22
  178. package/dist/styles/glass/surface-axis.css +113 -0
  179. package/dist/styles/glass/surfaces.css +88 -12
  180. package/dist/styles/glass.css +5 -2
  181. package/dist/styles/icon-chip.css +149 -0
  182. package/dist/styles/index.css +67 -5
  183. package/dist/styles/instrument-chassis.css +42 -0
  184. package/dist/styles/menu.css +127 -0
  185. package/dist/styles/segmented-tabs.css +160 -89
  186. package/dist/styles/select.css +50 -0
  187. package/dist/styles/theme/bridges.css +11 -1
  188. package/dist/styles/tokens/color-radius.css +40 -13
  189. package/dist/styles/tokens/dark-arm.css +124 -16
  190. package/dist/styles/tokens/glass.css +83 -23
  191. package/dist/styles/tokens/light-dark.css +48 -19
  192. package/dist/styles/tokens/offsets-sizing.css +62 -0
  193. package/dist/styles/tokens/property-regs.css +3 -10
  194. package/dist/styles/tokens/scale-paper.css +45 -2
  195. package/dist/styles/tokens/scheme-motion.css +32 -14
  196. package/dist/styles/transitions.css +7 -7
  197. package/dist/styles/typography/scale.css +153 -0
  198. package/dist/styles/typography/semantic.css +220 -0
  199. package/dist/styles/typography/utilities.css +159 -0
  200. package/dist/styles/typography.css +23 -507
  201. package/dist/styles/utilities/a11y-overrides.css +33 -4
  202. package/dist/styles/utilities/base.css +177 -1
  203. package/dist/styles/utilities/btn.css +18 -201
  204. package/dist/styles/view-transition.css +4 -1
  205. package/dist/switch.js +1 -1
  206. package/dist/tabs.js +154 -183
  207. package/dist/timeline.js +2 -2
  208. package/dist/toast.js +1 -1
  209. package/dist/toggle-chip.js +3 -1
  210. package/dist/toggle-group.js +1 -1
  211. package/dist/typewriter.js +1 -1
  212. package/dist/{useAnimatedNumber-C5I3wWd8.js → useAnimatedNumber-C_3wZLx4.js} +1 -1
  213. package/dist/useConfiguratorState-kiIlun8I.js +303 -0
  214. package/dist/{useGlobalDark-yhL4Wp-s.js → useGlobalDark-C28t0VWJ.js} +22 -3
  215. package/dist/{useRAFLoop-Bxv0o6L5.js → useRAFLoop-CdwJ7284.js} +1 -1
  216. package/dist/{useSpringMount-CI2jOstM.js → useSpringMount-CvopqiFr.js} +1 -1
  217. package/dist/useSurfaceAxis-CMnF2zHb.js +7 -0
  218. package/dist/{useTouchGate-Dg7MQI1G.js → useTouchGate-28Tk2-t2.js} +1 -1
  219. package/dist/{vReveal-CqaCz_mC.js → useViewTransition-COsPjQVZ.js} +15 -12
  220. package/dist/vReveal-D9k0jADx.js +10 -0
  221. package/dist/watercolor-dot.js +12 -5
  222. package/package.json +71 -7
  223. package/src/styles/animations.css +11 -26
  224. package/src/styles/configurator.css +35 -0
  225. package/src/styles/dock/density.css +19 -0
  226. package/src/styles/dock/overflow.css +15 -0
  227. package/src/styles/dock/rail-extend.css +168 -71
  228. package/src/styles/dock/section.css +59 -0
  229. package/src/styles/dock/shell.css +34 -5
  230. package/src/styles/dock-controls/icon-button.css +11 -1
  231. package/src/styles/dock-controls/tab-button.css +24 -83
  232. package/src/styles/dock-controls/triggers.css +7 -0
  233. package/src/styles/dock.css +6 -3
  234. package/src/styles/drawer.css +42 -0
  235. package/src/styles/feedback-tone.css +104 -0
  236. package/src/styles/glass/ladder.css +68 -22
  237. package/src/styles/glass/surface-axis.css +113 -0
  238. package/src/styles/glass/surfaces.css +88 -12
  239. package/src/styles/glass.css +5 -2
  240. package/src/styles/icon-chip.css +149 -0
  241. package/src/styles/index.css +66 -4
  242. package/src/styles/instrument-chassis.css +42 -0
  243. package/src/styles/menu.css +127 -0
  244. package/src/styles/segmented-tabs.css +156 -87
  245. package/src/styles/select.css +50 -0
  246. package/src/styles/theme/bridges.css +11 -1
  247. package/src/styles/tokens/color-radius.css +40 -13
  248. package/src/styles/tokens/dark-arm.css +124 -16
  249. package/src/styles/tokens/glass.css +83 -23
  250. package/src/styles/tokens/light-dark.css +48 -19
  251. package/src/styles/tokens/offsets-sizing.css +62 -0
  252. package/src/styles/tokens/property-regs.css +3 -10
  253. package/src/styles/tokens/scale-paper.css +45 -2
  254. package/src/styles/tokens/scheme-motion.css +32 -14
  255. package/src/styles/transitions.css +7 -7
  256. package/src/styles/typography/scale.css +153 -0
  257. package/src/styles/typography/semantic.css +220 -0
  258. package/src/styles/typography/utilities.css +159 -0
  259. package/src/styles/typography.css +23 -507
  260. package/src/styles/utilities/a11y-overrides.css +33 -4
  261. package/src/styles/utilities/base.css +177 -1
  262. package/src/styles/utilities/btn.css +18 -201
  263. package/src/styles/view-transition.css +4 -1
  264. package/dist/CardAction-Cj2eycQ2.js +0 -157
  265. package/dist/DialogContent-Dl9WkAoS.js +0 -100
  266. package/dist/PopoverContent-BYwt2-4x.js +0 -121
  267. package/dist/TabsList-Dttss653.js +0 -105
  268. package/dist/components/custom/underline/GlassUnderline.vue.d.ts +0 -84
  269. package/dist/components/custom/underline/index.d.ts +0 -2
  270. package/dist/components/custom/underline/types.d.ts +0 -56
  271. package/dist/components/ui/carousel/CarouselDots.vue.d.ts +0 -4
  272. package/dist/underline.d.ts +0 -1
  273. package/dist/underline.js +0 -85
  274. package/dist/useConfiguratorState-DAoeHVue.js +0 -287
  275. /package/dist/{CollapsibleContent-CP9qF1v4.js → CollapsibleContent-C_s6fG7r.js} +0 -0
  276. /package/dist/{ContextMenuContent-CT3AS1WX.js → ContextMenuContent-ON3x7cuk.js} +0 -0
  277. /package/dist/{HoverCardContent-Csywg3YF.js → HoverCardContent-DkMaQzH5.js} +0 -0
  278. /package/dist/{IconTooltip-DPzE09X9.js → IconTooltip-DSjasZIt.js} +0 -0
  279. /package/dist/{Input-DWQQIOC4.js → Input-DVG_J0ne.js} +0 -0
  280. /package/dist/{Label-r3WzWrsj.js → Label-Ck9SWEKM.js} +0 -0
  281. /package/dist/{ModalOverlay-DVLI2VRr.js → ModalOverlay-CkPRRgl_.js} +0 -0
  282. /package/dist/{PaperBackdrop-DIXTtVq6.js → PaperBackdrop-nBKe0vkB.js} +0 -0
  283. /package/dist/{SelectGroup-aumMgWLs.js → SelectGroup-Dcczq44n.js} +0 -0
  284. /package/dist/{SelectSeparator-BQ_1Fcbp.js → SelectSeparator-DK2y1Bun.js} +0 -0
  285. /package/dist/{Separator-0JE6LtNu.js → Separator-BArl4OaB.js} +0 -0
  286. /package/dist/{_plugin-vue_export-helper-ok8pgSl5.js → _plugin-vue_export-helper-CBt_VvXa.js} +0 -0
  287. /package/dist/{color-CUYeFbgd.js → color-DweYl7pE.js} +0 -0
  288. /package/dist/{compile-B7NGOBcP.js → compile-EXXzEr1q.js} +0 -0
  289. /package/dist/{constants-CS75AWHG.js → constants-BPOqYJAm.js} +0 -0
  290. /package/dist/{createContext-BM46COQ-.js → createContext-B2RaZ-b8.js} +0 -0
  291. /package/dist/{prng-D27-B3tK.js → prng-Cg22zv8g.js} +0 -0
  292. /package/dist/{springPresets--YdWTHtm.js → springPresets-WXaLbu8u.js} +0 -0
  293. /package/dist/{useIntersectionPause-Cc-H9ees.js → useIntersectionPause-Bj4sPkMh.js} +0 -0
  294. /package/dist/{useInterval-iHludrxk.js → useInterval-CNdua40W.js} +0 -0
  295. /package/dist/{useKeyboardShortcuts-Be3w_Rwk.js → useKeyboardShortcuts-BXWXOZ-9.js} +0 -0
  296. /package/dist/{useLiquidFlex-BL0lLLN2.js → useLiquidFlex-C12hXwOZ.js} +0 -0
  297. /package/dist/{useResizeObserver-BhgdhOIj.js → useResizeObserver-V6nq5gJb.js} +0 -0
  298. /package/dist/{useResolveTokenColor-Dvn2RZJW.js → useResolveTokenColor-NUG2zYAW.js} +0 -0
  299. /package/dist/{useScrollProgress-Dlvx-L3v.js → useScrollProgress-D7bYU2RK.js} +0 -0
  300. /package/dist/{useSortable-muI29agz.js → useSortable-BVqlJRBR.js} +0 -0
  301. /package/dist/{useTextHighlight-DmRYkOBx.js → useTextHighlight-NmBM5V_4.js} +0 -0
  302. /package/dist/{useTimer-Dzarvzuk.js → useTimer-B_PAasDL.js} +0 -0
  303. /package/dist/{useUserInvalidAria-B2h6jAM_.js → useUserInvalidAria-CDfJuakL.js} +0 -0
  304. /package/dist/{useViewportReady-B40FK4Pa.js → useViewportReady-CvBcCYDf.js} +0 -0
package/dist/tabs.js CHANGED
@@ -1,109 +1,110 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
- import { a as t, i as n, o as r, r as i, s as a } from "./SelectScrollDownButton-CiDUxfEj.js";
2
+ import { a as t, i as n, o as r, r as i, s as a } from "./SelectScrollDownButton-C1jb3b3K.js";
3
3
  import { i as o, n as s, r as c, t as l } from "./TooltipProvider-B3MkB_8P.js";
4
- import { t as u } from "./useLiquidFlex-BL0lLLN2.js";
5
- import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, mergeModels as b, mergeProps as x, nextTick as S, normalizeClass as C, normalizeStyle as w, onBeforeUnmount as ee, onMounted as T, onUnmounted as E, openBlock as D, ref as O, renderList as k, renderSlot as A, toDisplayString as j, unref as M, useModel as te, watch as N, withCtx as P } from "vue";
4
+ import { t as u } from "./useLiquidFlex-C12hXwOZ.js";
5
+ import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, mergeModels as b, mergeProps as x, nextTick as S, normalizeClass as C, normalizeStyle as w, onBeforeUnmount as T, onMounted as E, onUnmounted as D, openBlock as O, ref as k, renderList as A, renderSlot as j, toDisplayString as M, unref as N, useModel as P, watch as F, withCtx as I } from "vue";
6
6
  //#region src/components/custom/tabs/constants.ts
7
- var F = 1.08;
7
+ var L = 1.08, R = .82;
8
8
  //#endregion
9
9
  //#region src/components/custom/tabs/composables/useTabIndicator.ts
10
- function I(e) {
11
- let { containerRef: t, indicatorRef: n, buttonRefs: r, options: i, model: a, multiSelect: o, anchorSupported: s, jsSliderActive: c, activeValues: l } = e, d = O({
10
+ function ee(e) {
11
+ let { containerRef: t, indicatorRef: n, buttonRefs: r, options: i, model: a, anchorSupported: o, jsSliderActive: s, activeValues: c, vertical: l } = e, d = k({
12
12
  width: "0px",
13
13
  transform: "translateX(0px)",
14
14
  opacity: "0"
15
15
  });
16
16
  function f() {
17
- if (o.value || s) return;
17
+ if (o) return;
18
18
  let e = i.value.findIndex((e) => e.value === a.value);
19
19
  if (e < 0 || !r.value[e]) return;
20
20
  let t = r.value[e];
21
- d.value = {
22
- width: `${t.offsetWidth}px`,
23
- transform: `translateX(${t.offsetLeft}px)`,
24
- opacity: "1"
25
- };
26
- }
27
- let p = O({});
28
- function m() {
29
- if (!o.value) return;
30
- let e = {};
31
- for (let t of l.value) {
32
- let n = i.value.findIndex((e) => e.value === t), a = r.value[n];
33
- a && (e[t] = {
34
- width: `${a.offsetWidth}px`,
35
- transform: `translateX(${a.offsetLeft}px)`,
21
+ if (l.value) {
22
+ let e = t.offsetHeight, n = t.offsetTop + e / 2;
23
+ d.value = {
24
+ height: `${e}px`,
25
+ width: "",
26
+ transform: `translateY(${n - e / 2}px)`,
36
27
  opacity: "1"
37
- });
28
+ };
29
+ } else {
30
+ let e = t.offsetWidth, n = t.offsetLeft + e / 2;
31
+ d.value = {
32
+ width: `${e}px`,
33
+ height: "",
34
+ transform: `translateX(${n - e / 2}px)`,
35
+ opacity: "1"
36
+ };
38
37
  }
39
- p.value = e;
40
38
  }
41
- function h() {
42
- o.value ? m() : f();
39
+ function p() {
40
+ f();
43
41
  }
44
- let g = -1, _ = null, v = F, y = u({
42
+ let m = -1, h = null, g = L, _ = u({
45
43
  from: 0,
46
44
  to: 0,
47
45
  axis: "width",
48
46
  squishLaw: "linear",
49
- maxStretch: () => v
47
+ maxStretch: () => g
50
48
  });
51
- function b() {
49
+ function v() {
52
50
  return typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
53
51
  }
54
- function x(e) {
52
+ function y(e) {
53
+ let t = getComputedStyle(e).getPropertyValue("--tab-indicator-duration").trim();
54
+ return t ? t.endsWith("ms") ? Number.parseFloat(t) || 340 : t.endsWith("s") ? (Number.parseFloat(t) || .34) * 1e3 : Number.parseFloat(t) || 340 : 340;
55
+ }
56
+ function b(e) {
55
57
  let i = n.value;
56
- if (o.value || !i) {
57
- g = e;
58
+ if (!i) {
59
+ m = e;
58
60
  return;
59
61
  }
60
- if (b()) {
61
- g = e;
62
+ if (v()) {
63
+ m = e;
62
64
  return;
63
65
  }
64
- let a = r.value[g], s = r.value[e];
65
- if (g = e, !a || !s) return;
66
- let c = t.value?.offsetWidth || s.offsetParent?.offsetWidth || 1, l = Math.abs(s.offsetLeft - a.offsetLeft), u = c > 0 ? Math.min(l / c, 1) : 0, d = getComputedStyle(i).getPropertyValue("--tab-indicator-max-stretch").trim();
67
- v = Number(d) || 1.08, y.squish(u), _ && clearTimeout(_), i.style.setProperty("--stretch", String(y.stretch.value)), _ = setTimeout(() => {
68
- y.squish(0), i.style.setProperty("--stretch", String(y.stretch.value)), _ = null;
69
- }, 60);
66
+ let a = r.value[m], o = r.value[e];
67
+ if (m = e, !a || !o) return;
68
+ let s = l.value ? t.value?.offsetHeight || o.offsetParent?.offsetHeight || 1 : t.value?.offsetWidth || o.offsetParent?.offsetWidth || 1, c = l.value ? Math.abs(o.offsetTop - a.offsetTop) : Math.abs(o.offsetLeft - a.offsetLeft), u = s > 0 ? Math.min(c / s, 1) : 0, d = getComputedStyle(i).getPropertyValue("--tab-indicator-max-stretch").trim();
69
+ g = Number(d) || 1.08, _.squish(u), h && clearTimeout(h), i.style.setProperty("--stretch", String(_.stretch.value));
70
+ let f = y(i) * R;
71
+ h = setTimeout(() => {
72
+ _.squish(0), i.style.setProperty("--stretch", String(_.stretch.value)), h = null;
73
+ }, f);
70
74
  }
71
- N(() => a.value, () => {
72
- c.value && S(h);
73
- }, { deep: !0 }), N(() => i.value, () => {
74
- c.value && S(h);
75
- }, { deep: !0 });
76
- let C = null;
77
- return T(() => {
78
- g = i.value.findIndex((e) => l.value.includes(e.value)), c.value && (S(h), t.value && (C = new ResizeObserver(() => h()), C.observe(t.value)));
79
- }), E(() => {
80
- C?.disconnect(), _ && clearTimeout(_);
75
+ F(() => a.value, () => {
76
+ s.value && S(p);
77
+ }), F(() => i.value, () => {
78
+ s.value && S(p);
79
+ }, { deep: !0 }), F(() => l.value, () => {
80
+ s.value && S(p);
81
+ });
82
+ let x = null;
83
+ return E(() => {
84
+ m = i.value.findIndex((e) => c.value.includes(e.value)), s.value && (S(p), t.value && (x = new ResizeObserver(() => p()), x.observe(t.value)));
85
+ }), D(() => {
86
+ x?.disconnect(), h && clearTimeout(h);
81
87
  }), {
82
88
  singleSliderStyle: d,
83
- multiSliderStyles: p,
84
- squishOnTravel: x
89
+ squishOnTravel: b
85
90
  };
86
91
  }
87
92
  //#endregion
88
93
  //#region src/components/custom/tabs/SegmentedTabs.vue?vue&type=script&setup=true&lang.ts
89
- var ne = ["role"], re = [
94
+ var te = ["role", "aria-orientation"], z = [
90
95
  "role",
91
96
  "disabled",
92
97
  "onClick"
93
- ], ie = [
98
+ ], B = [
94
99
  "role",
95
100
  "disabled",
96
101
  "onClick"
97
- ], L = /* @__PURE__ */ y({
102
+ ], V = /* @__PURE__ */ y({
98
103
  __name: "SegmentedTabs",
99
104
  props: /* @__PURE__ */ b({
100
105
  options: {},
101
- variant: { default: "segmented" },
102
- multiSelect: {
103
- type: Boolean,
104
- default: !1
105
- },
106
- overflow: { default: "none" },
106
+ variant: { default: "pill" },
107
+ orientation: { default: "horizontal" },
107
108
  responsive: {
108
109
  type: [Boolean, Object],
109
110
  default: !1
@@ -124,31 +125,26 @@ var ne = ["role"], re = [
124
125
  function y(e, t) {
125
126
  return typeof document > "u" ? t : getComputedStyle(document.documentElement).getPropertyValue(e).trim() || t;
126
127
  }
127
- let b = u, E = te(u, "modelValue"), N = O(null), F = O(null), L = O([]), R = typeof CSS < "u" && typeof CSS.supports == "function" && CSS.supports("position-anchor", "--x"), z = f(() => b.variant === "underline");
128
- f(() => b.variant === "pill"), f(() => b.variant === "segmented");
129
- let B = f(() => b.overflow === "scroll"), V = f(() => b.overflow === "auto"), H = f(() => b.multiSelect && !z.value), U = f(() => {
130
- let e = E.value;
131
- return H.value && Array.isArray(e) ? e : e == null ? [] : [e];
132
- }), W = (e) => U.value.includes(e), ae = f(() => (H.value || !R) && !z.value), G = f(() => !H.value && !R && !z.value), K = f(() => b.responsive === !1 ? null : b.responsive === !0 ? {} : b.responsive), oe = f(() => K.value?.breakpoint ?? "640px"), q = f(() => K.value?.desktopOptions ?? b.options), J = O(!0), Y = null;
133
- function X(e) {
134
- J.value = e.matches;
128
+ let b = u, S = P(u, "modelValue"), D = k(null), F = k(null), L = k([]), R = typeof CSS < "u" && typeof CSS.supports == "function" && CSS.supports("position-anchor", "--x"), V = f(() => b.variant === "underline"), H = f(() => b.orientation === "vertical"), U = f(() => S.value == null ? [] : [S.value]), W = (e) => U.value.includes(e), G = f(() => !R && !V.value), K = G, q = f(() => b.responsive === !1 ? null : b.responsive === !0 ? {} : b.responsive), ne = f(() => q.value?.breakpoint ?? "640px"), J = f(() => q.value?.desktopOptions ?? b.options), Y = k(!0), X = null;
129
+ function Z(e) {
130
+ Y.value = e.matches;
135
131
  }
136
- let se = f(() => {
137
- if (!K.value) return E.value;
138
- let e = q.value;
139
- return e.some((e) => e.value === E.value) ? E.value : e[0]?.value ?? E.value;
140
- }), Z = f(() => K.value ? q.value : b.options), ce = f(() => K.value?.ariaLabel ?? b.options.find((e) => e.value === E.value)?.label ?? "Select"), le = f(() => !!K.value && !J.value), { singleSliderStyle: ue, multiSliderStyles: de, squishOnTravel: fe } = I({
141
- containerRef: N,
132
+ let re = f(() => {
133
+ if (!q.value) return S.value;
134
+ let e = J.value;
135
+ return e.some((e) => e.value === S.value) ? S.value : e[0]?.value ?? S.value;
136
+ }), Q = f(() => q.value ? J.value : b.options), ie = f(() => q.value?.ariaLabel ?? b.options.find((e) => e.value === S.value)?.label ?? "Select"), ae = f(() => !!q.value && !Y.value), { singleSliderStyle: oe, squishOnTravel: se } = ee({
137
+ containerRef: D,
142
138
  indicatorRef: F,
143
139
  buttonRefs: L,
144
- options: Z,
145
- model: f(() => se.value),
146
- multiSelect: H,
140
+ options: Q,
141
+ model: f(() => re.value),
147
142
  anchorSupported: R,
148
- jsSliderActive: ae,
149
- activeValues: U
143
+ jsSliderActive: G,
144
+ activeValues: U,
145
+ vertical: H
150
146
  });
151
- function pe(e) {
147
+ function ce(e) {
152
148
  if (typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
153
149
  e.getAnimations().forEach((e) => e.cancel());
154
150
  let t = y("--spring-snappy", "ease"), n = y("--scale-press-btn", "0.97");
@@ -164,129 +160,104 @@ var ne = ["role"], re = [
164
160
  easing: t
165
161
  });
166
162
  }
167
- function Q(e) {
168
- if (!B.value && !V.value) return;
169
- let t = L.value[e];
170
- if (!t) return;
171
- let n = typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
172
- t.scrollIntoView({
173
- inline: "nearest",
174
- block: "nearest",
175
- behavior: n ? "auto" : "smooth"
176
- });
177
- }
178
163
  function $(e, t) {
179
- if (Z.value[t]?.disabled) return;
164
+ if (Q.value[t]?.disabled) return;
180
165
  let n = L.value[t];
181
- if (n && pe(n), fe(t), H.value) {
182
- let t = [...U.value], n = t.indexOf(e);
183
- n > -1 ? t.length > 1 && t.splice(n, 1) : t.push(e), E.value = t;
184
- } else E.value = e;
185
- Q(t);
166
+ n && ce(n), se(t), S.value = e;
186
167
  }
187
- function me(e) {
188
- typeof e == "string" && (E.value = e);
168
+ function le(e) {
169
+ typeof e == "string" && (S.value = e);
189
170
  }
190
- return T(() => {
191
- K.value && typeof window < "u" && window.matchMedia && (Y = window.matchMedia(`(min-width: ${oe.value})`), J.value = Y.matches, Y.addEventListener("change", X)), S(() => {
192
- let e = Z.value.findIndex((e) => W(e.value));
193
- e >= 0 && Q(e);
194
- });
195
- }), ee(() => {
196
- Y?.removeEventListener("change", X), Y = null;
197
- }), (f, y) => le.value ? (D(), h("div", {
171
+ return E(() => {
172
+ q.value && typeof window < "u" && window.matchMedia && (X = window.matchMedia(`(min-width: ${ne.value})`), Y.value = X.matches, X.addEventListener("change", Z));
173
+ }), T(() => {
174
+ X?.removeEventListener("change", Z), X = null;
175
+ }), (f, y) => ae.value ? (O(), h("div", {
198
176
  key: 0,
199
- class: C(M(e)("segmented-tabs__mobile w-fit", b.class))
200
- }, [v(M(a), {
201
- "model-value": E.value,
202
- "onUpdate:modelValue": me
177
+ class: C(N(e)("segmented-tabs__mobile w-fit", b.class))
178
+ }, [v(N(a), {
179
+ "model-value": S.value,
180
+ "onUpdate:modelValue": le
203
181
  }, {
204
- default: P(() => [v(M(t), {
205
- "aria-label": ce.value,
206
- class: C(M(e)("segmented-tabs__trigger text-small w-auto min-w-input-sm", K.value?.triggerClass))
182
+ default: I(() => [v(N(t), {
183
+ "aria-label": ie.value,
184
+ class: C(N(e)("segmented-tabs__trigger text-small w-auto min-w-input-sm", q.value?.triggerClass))
207
185
  }, {
208
- default: P(() => [v(M(r))]),
186
+ default: I(() => [v(N(r))]),
209
187
  _: 1
210
- }, 8, ["aria-label", "class"]), v(M(n), null, {
211
- default: P(() => [(D(!0), h(d, null, k(u.options, (e) => (D(), p(M(i), {
188
+ }, 8, ["aria-label", "class"]), v(N(n), null, {
189
+ default: I(() => [(O(!0), h(d, null, A(u.options, (e) => (O(), p(N(i), {
212
190
  key: e.value,
213
191
  value: e.value
214
192
  }, {
215
- default: P(() => [_(j(e.label), 1)]),
193
+ default: I(() => [_(M(e.label), 1)]),
216
194
  _: 2
217
195
  }, 1032, ["value"]))), 128))]),
218
196
  _: 1
219
197
  })]),
220
198
  _: 1
221
- }, 8, ["model-value"])], 2)) : (D(), h("div", {
199
+ }, 8, ["model-value"])], 2)) : (O(), h("div", {
222
200
  key: 1,
223
201
  ref_key: "containerRef",
224
- ref: N,
225
- role: z.value ? "tablist" : "group",
226
- class: C(M(e)("segmented-tabs", `segmented-tabs--${u.variant}`, B.value && "segmented-tabs--scroll scroll-fade-mask scrollbar-hidden", V.value && "segmented-tabs--auto scrollbar-hidden", b.class))
227
- }, [
228
- !z.value && !H.value ? (D(), h("div", {
229
- key: 0,
230
- ref_key: "indicatorRef",
231
- ref: F,
232
- class: C(["segmented-indicator", G.value ? "segmented-indicator--js" : "segmented-indicator--anchor"]),
233
- style: w(G.value ? M(ue) : void 0)
234
- }, null, 6)) : m("", !0),
235
- !z.value && H.value ? (D(!0), h(d, { key: 1 }, k(U.value, (e) => (D(), h("div", {
236
- key: "indicator-" + e,
237
- class: "segmented-indicator segmented-indicator--js",
238
- style: w(M(de)[e] ?? { opacity: "0" })
239
- }, null, 4))), 128)) : m("", !0),
240
- (D(!0), h(d, null, k(Z.value, (e, t) => (D(), h(d, { key: e.value }, [e.tooltip ? (D(), p(M(l), {
241
- key: 0,
242
- "delay-duration": 200
243
- }, {
244
- default: P(() => [v(M(o), null, {
245
- default: P(() => [v(M(s), { "as-child": "" }, {
246
- default: P(() => [g("button", x({
247
- ref_for: !0,
248
- ref: (e) => {
249
- e && (L.value[t] = e);
250
- },
251
- class: "segmented-tab",
252
- role: z.value ? "tab" : void 0
253
- }, { ref_for: !0 }, z.value ? { "aria-selected": W(e.value) ? "true" : "false" } : { "aria-pressed": W(e.value) ? "true" : "false" }, {
254
- disabled: e.disabled,
255
- class: e.disabled && "is-disabled",
256
- onClick: (n) => $(e.value, t)
257
- }), [A(f.$slots, "option", {
258
- option: e,
259
- active: W(e.value)
260
- }, () => [_(j(e.label), 1)])], 16, re)]),
261
- _: 2
262
- }, 1024), v(M(c), {
263
- side: "bottom",
264
- "side-offset": 8
265
- }, {
266
- default: P(() => [_(j(e.tooltip), 1)]),
267
- _: 2
268
- }, 1024)]),
202
+ ref: D,
203
+ role: V.value ? "tablist" : "group",
204
+ "aria-orientation": H.value ? "vertical" : "horizontal",
205
+ class: C(N(e)("segmented-tabs", `segmented-tabs--${u.variant}`, H.value && "segmented-tabs--vertical", b.class))
206
+ }, [V.value ? m("", !0) : (O(), h("div", {
207
+ key: 0,
208
+ ref_key: "indicatorRef",
209
+ ref: F,
210
+ class: C(["segmented-indicator", N(K) ? "segmented-indicator--js" : "segmented-indicator--anchor"]),
211
+ style: w(N(K) ? N(oe) : void 0)
212
+ }, null, 6)), (O(!0), h(d, null, A(Q.value, (e, t) => (O(), h(d, { key: e.value }, [e.tooltip ? (O(), p(N(l), {
213
+ key: 0,
214
+ "delay-duration": 200
215
+ }, {
216
+ default: I(() => [v(N(o), null, {
217
+ default: I(() => [v(N(s), { "as-child": "" }, {
218
+ default: I(() => [g("button", x({
219
+ ref_for: !0,
220
+ ref: (e) => {
221
+ e && (L.value[t] = e);
222
+ },
223
+ class: "segmented-tab",
224
+ role: V.value ? "tab" : void 0
225
+ }, { ref_for: !0 }, V.value ? { "aria-selected": W(e.value) ? "true" : "false" } : { "aria-pressed": W(e.value) ? "true" : "false" }, {
226
+ disabled: e.disabled,
227
+ class: e.disabled && "is-disabled",
228
+ onClick: (n) => $(e.value, t)
229
+ }), [j(f.$slots, "option", {
230
+ option: e,
231
+ active: W(e.value)
232
+ }, () => [_(M(e.label), 1)])], 16, z)]),
233
+ _: 2
234
+ }, 1024), v(N(c), {
235
+ side: "bottom",
236
+ "side-offset": 8
237
+ }, {
238
+ default: I(() => [_(M(e.tooltip), 1)]),
269
239
  _: 2
270
240
  }, 1024)]),
271
241
  _: 2
272
- }, 1024)) : (D(), h("button", x({
273
- key: 1,
274
- ref_for: !0,
275
- ref: (e) => {
276
- e && (L.value[t] = e);
277
- },
278
- class: "segmented-tab",
279
- role: z.value ? "tab" : void 0
280
- }, { ref_for: !0 }, z.value ? { "aria-selected": W(e.value) ? "true" : "false" } : { "aria-pressed": W(e.value) ? "true" : "false" }, {
281
- disabled: e.disabled,
282
- class: e.disabled && "is-disabled",
283
- onClick: (n) => $(e.value, t)
284
- }), [A(f.$slots, "option", {
285
- option: e,
286
- active: W(e.value)
287
- }, () => [_(j(e.label), 1)])], 16, ie))], 64))), 128))
288
- ], 10, ne));
242
+ }, 1024)]),
243
+ _: 2
244
+ }, 1024)) : (O(), h("button", x({
245
+ key: 1,
246
+ ref_for: !0,
247
+ ref: (e) => {
248
+ e && (L.value[t] = e);
249
+ },
250
+ class: "segmented-tab",
251
+ role: V.value ? "tab" : void 0
252
+ }, { ref_for: !0 }, V.value ? { "aria-selected": W(e.value) ? "true" : "false" } : { "aria-pressed": W(e.value) ? "true" : "false" }, {
253
+ disabled: e.disabled,
254
+ class: e.disabled && "is-disabled",
255
+ onClick: (n) => $(e.value, t)
256
+ }), [j(f.$slots, "option", {
257
+ option: e,
258
+ active: W(e.value)
259
+ }, () => [_(M(e.label), 1)])], 16, B))], 64))), 128))], 10, te));
289
260
  }
290
261
  });
291
262
  //#endregion
292
- export { L as SegmentedTabs };
263
+ export { V as SegmentedTabs };
package/dist/timeline.js CHANGED
@@ -1,5 +1,5 @@
1
- import { t as e } from "./_plugin-vue_export-helper-ok8pgSl5.js";
2
- import { t } from "./HoverPopover-CISOJQuZ.js";
1
+ import { t as e } from "./_plugin-vue_export-helper-CBt_VvXa.js";
2
+ import { t } from "./HoverPopover-Dpzwvc4t.js";
3
3
  import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createVNode as l, defineComponent as u, guardReactiveProps as d, normalizeClass as f, normalizeProps as p, normalizeStyle as m, openBlock as h, ref as g, renderList as _, renderSlot as v, toDisplayString as y, unref as b, withCtx as x } from "vue";
4
4
  //#region src/components/custom/timeline/geometry.ts
5
5
  function S(e) {
package/dist/toast.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./Toaster-D6q4HtXu.js";
1
+ import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./Toaster-Bm_HQSpc.js";
2
2
  export { t as Toast, o as ToastAction, i as ToastClose, e as ToastDescription, n as ToastTitle, s as Toaster, r as toast, a as useToast };
@@ -36,7 +36,9 @@ var d = /* @__PURE__ */ n({
36
36
  }
37
37
  }), f = u([
38
38
  "focus-ring select-none cursor-pointer outline-none",
39
- "font-sans transition-colors duration-150 ease-out",
39
+ "font-sans",
40
+ "scale-100 hover:scale-(--scale-hover-btn) active:scale-(--scale-press-btn) data-[state=on]:scale-(--scale-press-btn)",
41
+ "[transition:scale_var(--spring-smooth-duration)_var(--spring-smooth),background-color_var(--duration-fast)_var(--ease-standard),border-color_var(--duration-fast)_var(--ease-standard),box-shadow_var(--duration-fast)_var(--ease-standard),color_var(--duration-fast)_var(--ease-standard)]",
40
42
  "disabled:opacity-disabled disabled:pointer-events-none disabled:cursor-not-allowed"
41
43
  ].join(" "), {
42
44
  variants: { variant: {
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./ToggleGroupItem-D_AHlRw9.js";
1
+ import { n as e, t } from "./ToggleGroupItem-Dzk9hWsF.js";
2
2
  export { e as ToggleGroup, t as ToggleGroupItem };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./_plugin-vue_export-helper-ok8pgSl5.js";
1
+ import { t as e } from "./_plugin-vue_export-helper-CBt_VvXa.js";
2
2
  import { Fragment as t, computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, normalizeClass as s, onMounted as c, onUnmounted as l, openBlock as u, ref as d, renderList as f, toDisplayString as p, unref as m, watch as h } from "vue";
3
3
  //#region src/components/custom/typewriter/types.ts
4
4
  var g = {
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./constants-CS75AWHG.js";
1
+ import { n as e, t } from "./constants-BPOqYJAm.js";
2
2
  import { getCurrentScope as n, onScopeDispose as r, readonly as i, ref as a, shallowRef as o, toValue as s, watch as c } from "vue";
3
3
  import { SmoothProgress as l } from "@mkbabb/keyframes.js";
4
4
  //#region src/composables/motion/useAnimatedNumber.ts