@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
@@ -1,4 +1,4 @@
1
- import { n as e } from "./createContext-BM46COQ-.js";
1
+ import { n as e } from "./createContext-B2RaZ-b8.js";
2
2
  //#region src/components/custom/dock/constants.ts
3
3
  var t = {
4
4
  response: .32,
package/dist/dom.js CHANGED
@@ -1,6 +1,6 @@
1
- import { t as e } from "./useResizeObserver-BhgdhOIj.js";
2
- import { t } from "./useTouchGate-Dg7MQI1G.js";
3
- import { a as n, i as r, n as i, o as a, r as o, t as s } from "./useViewportReady-B40FK4Pa.js";
4
- import { n as c, t as l } from "./useResolveTokenColor-Dvn2RZJW.js";
5
- import { t as u } from "./useUserInvalidAria-B2h6jAM_.js";
1
+ import { t as e } from "./useResizeObserver-V6nq5gJb.js";
2
+ import { t } from "./useTouchGate-28Tk2-t2.js";
3
+ import { a as n, i as r, n as i, o as a, r as o, t as s } from "./useViewportReady-CvBcCYDf.js";
4
+ import { n as c, t as l } from "./useResolveTokenColor-NUG2zYAW.js";
5
+ import { t as u } from "./useUserInvalidAria-CDfJuakL.js";
6
6
  export { r as copyToClipboard, l as createTokenColorCache, c as resolveTokenColor, o as useBreakpoint, n as useClipboard, i as useIdleReady, e as useResizeObserver, a as useTokenColor, t as useTouchGate, u as useUserInvalidAria, s as useViewportReady };
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
2
  import { t } from "./check-njhk-vfu.js";
3
3
  import { t as n } from "./chevron-right-CPXbqQQz.js";
4
- import { t as r } from "./menuItemVariants-DPiEarb0.js";
5
- import { i } from "./dockContext-BegmJVmx.js";
4
+ import { t as r } from "./menuItemVariants-DWRQXBxJ.js";
5
+ import { i } from "./dockContext-Bu1Avy-a.js";
6
6
  import { computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, guardReactiveProps as d, mergeProps as f, normalizeClass as p, normalizeProps as m, openBlock as h, renderSlot as g, unref as _, withCtx as v } from "vue";
7
7
  import { DropdownMenuCheckboxItem as y, DropdownMenuContent as b, DropdownMenuGroup as x, DropdownMenuItem as S, DropdownMenuItemIndicator as C, DropdownMenuLabel as w, DropdownMenuPortal as T, DropdownMenuPortal as E, DropdownMenuRadioGroup as D, DropdownMenuRadioItem as O, DropdownMenuRoot as k, DropdownMenuSeparator as A, DropdownMenuSub as j, DropdownMenuSubContent as M, DropdownMenuSubTrigger as N, DropdownMenuTrigger as P, useForwardProps as F, useForwardPropsEmits as I } from "reka-ui";
8
8
  //#endregion
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "./dropdown-menu-DzkkyBwX.js";
1
+ import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "./dropdown-menu-BJ7E9js_.js";
2
2
  export { i as DropdownMenu, o as DropdownMenuCheckboxItem, u as DropdownMenuContent, r as DropdownMenuGroup, m as DropdownMenuItem, e as DropdownMenuLabel, p as DropdownMenuPortal, n as DropdownMenuRadioGroup, t as DropdownMenuRadioItem, l as DropdownMenuSeparator, f as DropdownMenuShortcut, a as DropdownMenuSub, c as DropdownMenuSubContent, d as DropdownMenuSubTrigger, s as DropdownMenuTrigger };
@@ -1,26 +1,26 @@
1
- import { n as e, t } from "./minimize-2-BV31Ob_h.js";
2
- import { i as n } from "./useKeyboardShortcuts-Be3w_Rwk.js";
3
- import { Fragment as r, Teleport as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, mergeModels as d, mergeProps as f, normalizeClass as p, onMounted as m, onUnmounted as h, openBlock as g, renderSlot as _, unref as v, useModel as y, watch as b } from "vue";
1
+ import { t as e } from "./cn-DJXf4yaB.js";
2
+ import { n as t, t as n } from "./minimize-2-BV31Ob_h.js";
3
+ import { t as r } from "./useSurfaceAxis-CMnF2zHb.js";
4
+ import { i } from "./useKeyboardShortcuts-BXWXOZ-9.js";
5
+ import { Fragment as a, Teleport as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, defineComponent as p, mergeModels as m, mergeProps as h, normalizeClass as g, onMounted as _, onUnmounted as v, openBlock as y, renderSlot as b, unref as x, useModel as S, watch as C } from "vue";
4
6
  //#region src/components/custom/expandable-container/ExpandableContainer.vue?vue&type=script&setup=true&lang.ts
5
- var x = ["aria-label"], S = {
6
- key: 0,
7
- class: "fixed inset-0 z-modal flex flex-col bg-background"
8
- }, C = ["aria-label"], w = { class: "h-full w-full" }, T = 0, E = null;
9
- function D() {
10
- return typeof document > "u" ? !1 : (T === 0 && (E = document.body.style.overflow, document.body.style.overflow = "hidden"), T += 1, !0);
7
+ var w = ["aria-label"], T = ["data-surface"], E = ["aria-label"], D = { class: "h-full w-full" }, O = 0, k = null;
8
+ function A() {
9
+ return typeof document > "u" ? !1 : (O === 0 && (k = document.body.style.overflow, document.body.style.overflow = "hidden"), O += 1, !0);
11
10
  }
12
- function O() {
13
- typeof document > "u" || T === 0 || (--T, T === 0 && (document.body.style.overflow = E ?? "", E = null));
11
+ function j() {
12
+ typeof document > "u" || O === 0 || (--O, O === 0 && (document.body.style.overflow = k ?? "", k = null));
14
13
  }
15
14
  //#endregion
16
15
  //#region src/components/custom/expandable-container/ExpandableContainer.vue
17
- var k = /* @__PURE__ */ u({
16
+ var M = /* @__PURE__ */ p({
18
17
  inheritAttrs: !1,
19
18
  __name: "ExpandableContainer",
20
- props: /* @__PURE__ */ d({
19
+ props: /* @__PURE__ */ m({
21
20
  buttonPosition: { default: "right" },
22
21
  expandLabel: { default: "Fullscreen" },
23
- collapseLabel: { default: "Exit fullscreen" }
22
+ collapseLabel: { default: "Exit fullscreen" },
23
+ surface: { default: "glass" }
24
24
  }, {
25
25
  open: {
26
26
  type: Boolean,
@@ -29,42 +29,46 @@ var k = /* @__PURE__ */ u({
29
29
  openModifiers: {}
30
30
  }),
31
31
  emits: ["update:open"],
32
- setup(u) {
33
- let d = y(u, "open"), T = !1;
34
- function E(e) {
35
- if (e && !T) {
36
- T = D();
32
+ setup(p) {
33
+ let m = p, O = s(() => r(m.surface).replace(/^glass-\w+\s*/, "")), k = S(p, "open"), M = !1;
34
+ function N(e) {
35
+ if (e && !M) {
36
+ M = A();
37
37
  return;
38
38
  }
39
- !e && T && (O(), T = !1);
39
+ !e && M && (j(), M = !1);
40
40
  }
41
- b(d, E, { immediate: !0 });
42
- let k = null;
43
- return m(() => {
44
- k = n("Escape", () => {
45
- d.value &&= !1;
41
+ C(k, N, { immediate: !0 });
42
+ let P = null;
43
+ return _(() => {
44
+ P = i("Escape", () => {
45
+ k.value &&= !1;
46
46
  }, {
47
47
  label: "Exit fullscreen",
48
48
  group: "UI",
49
49
  allowInInput: !0
50
50
  });
51
- }), h(() => {
52
- k?.(), E(!1);
53
- }), (n, m) => (g(), s(r, null, [d.value ? o("", !0) : (g(), s("div", f({
51
+ }), v(() => {
52
+ P?.(), N(!1);
53
+ }), (r, i) => (y(), u(a, null, [k.value ? l("", !0) : (y(), u("div", h({
54
54
  key: 0,
55
55
  class: "relative"
56
- }, n.$attrs), [c("button", {
57
- class: p(["expandable-container__trigger absolute z-10 rounded-button bg-card/70 [backdrop-filter:var(--glass-blur-wash)] p-1.5 text-muted-foreground hover:text-foreground transition-colors shadow-sm border border-border/40", u.buttonPosition === "left" ? "left-2 top-2" : "right-2 top-2"]),
56
+ }, r.$attrs), [d("button", {
57
+ class: g(["expandable-container__trigger absolute z-10 rounded-button bg-card/70 [backdrop-filter:var(--glass-blur-wash)] p-1.5 text-muted-foreground hover:text-foreground transition-colors shadow-sm border border-border/40", p.buttonPosition === "left" ? "left-2 top-2" : "right-2 top-2"]),
58
58
  title: "Fullscreen",
59
- "aria-label": u.expandLabel,
60
- onClick: m[0] ||= (e) => d.value = !0
61
- }, [l(v(e), { class: "h-4 w-4" })], 10, x), _(n.$slots, "default", { fullscreen: !1 })], 16)), (g(), a(i, { to: "body" }, [d.value ? (g(), s("div", S, [c("button", {
62
- class: p(["expandable-container__trigger absolute z-10 rounded-button bg-card/70 [backdrop-filter:var(--glass-blur-wash)] p-2 text-muted-foreground hover:text-foreground transition-colors shadow-sm border border-border/40", u.buttonPosition === "left" ? "left-3 top-3" : "right-3 top-3"]),
59
+ "aria-label": p.expandLabel,
60
+ onClick: i[0] ||= (e) => k.value = !0
61
+ }, [f(x(t), { class: "h-4 w-4" })], 10, w), b(r.$slots, "default", { fullscreen: !1 })], 16)), (y(), c(o, { to: "body" }, [k.value ? (y(), u("div", {
62
+ key: 0,
63
+ "data-surface": p.surface,
64
+ class: g(x(e)("fixed inset-0 z-modal flex flex-col glass-overlay", O.value))
65
+ }, [d("button", {
66
+ class: g(["expandable-container__trigger absolute z-10 rounded-button bg-card/70 [backdrop-filter:var(--glass-blur-wash)] p-2 text-muted-foreground hover:text-foreground transition-colors shadow-sm border border-border/40", p.buttonPosition === "left" ? "left-3 top-3" : "right-3 top-3"]),
63
67
  title: "Exit fullscreen",
64
- "aria-label": u.collapseLabel,
65
- onClick: m[1] ||= (e) => d.value = !1
66
- }, [l(v(t), { class: "h-4 w-4" })], 10, C), c("div", w, [_(n.$slots, "default", { fullscreen: !0 })])])) : o("", !0)]))], 64));
68
+ "aria-label": p.collapseLabel,
69
+ onClick: i[1] ||= (e) => k.value = !1
70
+ }, [f(x(n), { class: "h-4 w-4" })], 10, E), d("div", D, [b(r.$slots, "default", { fullscreen: !0 })])], 10, T)) : l("", !0)]))], 64));
67
71
  }
68
72
  });
69
73
  //#endregion
70
- export { k as ExpandableContainer };
74
+ export { M as ExpandableContainer };
@@ -0,0 +1 @@
1
+ export * from "./components/custom/fading-scroll";
@@ -0,0 +1,2 @@
1
+ import { n as e, t } from "./FadingScroll-DwNnvKMs.js";
2
+ export { t as FadingScroll, e as useFadingScroll };
package/dist/forms.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
2
  import { t } from "./search-BSGrf2Sk.js";
3
- import { t as n } from "./menuItemVariants-DPiEarb0.js";
4
- import { t as r } from "./useUserInvalidAria-B2h6jAM_.js";
5
- import { t as i } from "./Input-DWQQIOC4.js";
3
+ import { t as n } from "./menuItemVariants-DWRQXBxJ.js";
4
+ import { t as r } from "./useUserInvalidAria-CDfJuakL.js";
5
+ import { t as i } from "./Input-DVG_J0ne.js";
6
6
  import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createTextVNode as l, createVNode as u, defineComponent as d, isRef as f, mergeProps as p, openBlock as m, renderSlot as h, toDisplayString as g, unref as _, vModelText as v, withCtx as y, withDirectives as b } from "vue";
7
7
  import { ComboboxAnchor as x, ComboboxCancel as S, ComboboxContent as C, ComboboxEmpty as w, ComboboxGroup as T, ComboboxInput as E, ComboboxItem as D, ComboboxItemIndicator as O, ComboboxLabel as k, ComboboxPortal as A, ComboboxRoot as j, ComboboxSeparator as M, ComboboxTrigger as N, ComboboxViewport as P, useForwardProps as F, useForwardPropsEmits as I } from "reka-ui";
8
8
  import { reactiveOmit as L, useVModel as R } from "@vueuse/core";
@@ -1,12 +1,12 @@
1
1
  import { t as e } from "./useCanvas2D-ClrQuZtp.js";
2
- import { t } from "./_plugin-vue_export-helper-ok8pgSl5.js";
3
- import { i as n, s as r, t as i } from "./color-CUYeFbgd.js";
4
- import { t as a } from "./useGlobalDark-yhL4Wp-s.js";
5
- import { n as o, t as s } from "./prng-D27-B3tK.js";
6
- import { i as c, n as l, r as u, t as d } from "./math-U6-RrLmV.js";
7
- import { createElementBlock as f, createElementVNode as p, defineComponent as m, onMounted as h, openBlock as g, ref as _, useTemplateRef as v, watch as y } from "vue";
2
+ import { t } from "./_plugin-vue_export-helper-CBt_VvXa.js";
3
+ import { i as n, s as r, t as i } from "./color-DweYl7pE.js";
4
+ import { t as a } from "./useGlobalDark-C28t0VWJ.js";
5
+ import { n as o, t as s } from "./prng-Cg22zv8g.js";
6
+ import { a as c, i as l, n as u, r as d, t as f } from "./math-DeuJwLFx.js";
7
+ import { createElementBlock as p, createElementVNode as m, defineComponent as h, onMounted as g, openBlock as _, ref as v, useTemplateRef as y, watch as b } from "vue";
8
8
  //#region src/components/custom/fourier-field/presets.ts
9
- var b = {
9
+ var x = {
10
10
  hero: {
11
11
  harmonics: 5,
12
12
  harmonicScale: .24,
@@ -59,7 +59,7 @@ var b = {
59
59
  trailFadeExp: 1.45,
60
60
  trailFloor: .36
61
61
  }
62
- }, x = /* @__PURE__ */ t(/* @__PURE__ */ m({
62
+ }, S = /* @__PURE__ */ t(/* @__PURE__ */ h({
63
63
  __name: "FourierField",
64
64
  props: {
65
65
  variant: { default: "hero" },
@@ -70,25 +70,26 @@ var b = {
70
70
  type: Boolean,
71
71
  default: !1
72
72
  },
73
- intensity: { default: 1 }
73
+ intensity: { default: 1 },
74
+ clock: { type: Function }
74
75
  },
75
76
  setup(t) {
76
- let l = Math.max(0, Math.min(2, t.intensity)), d = v("hostRef"), m = v("canvasRef"), x = _(t.color), S = _("rgb(0, 0, 0)"), C = _("rgb(0, 0, 0)"), w = _([]);
77
+ let l = Math.max(0, Math.min(2, t.intensity)), u = y("hostRef"), f = y("canvasRef"), h = v(t.color), S = v("rgb(0, 0, 0)"), C = v("rgb(0, 0, 0)"), w = v([]);
77
78
  function T(e) {
78
79
  if (!e.includes("var(") && !e.includes("light-dark(")) return e;
79
- let t = d.value;
80
+ let t = u.value;
80
81
  if (typeof window > "u" || !t) return e;
81
82
  let n = t.style.color;
82
83
  t.style.color = e;
83
84
  let r = getComputedStyle(t).color;
84
85
  return t.style.color = n, r || e;
85
86
  }
86
- let E = b[t.variant], D = 0;
87
+ let E = x[t.variant], D = 0;
87
88
  function O() {
88
- x.value = T(t.color);
89
- let [e, a, o] = t.colorResolver(x.value).map((e) => Math.round(e * 255));
89
+ h.value = T(t.color);
90
+ let [e, a, o] = t.colorResolver(h.value).map((e) => Math.round(e * 255));
90
91
  S.value = `rgb(${e}, ${a}, ${o})`;
91
- let s = i(x.value), [c, l, u] = r({
92
+ let s = i(h.value), [c, l, u] = r({
92
93
  L: s.L,
93
94
  C: s.C,
94
95
  h: n(s.h, "analogous", E.epicycleHueShift, 1)
@@ -99,7 +100,7 @@ var b = {
99
100
  let n = D > 1 ? t / (D - 1) : 0, [i, a, o] = r({
100
101
  L: .62,
101
102
  C: .17,
102
- h: s.h - 150 + n * 2 * 150
103
+ h: s.h + -30 + n * 100
103
104
  }).map((e) => Math.round(e * 255));
104
105
  e.push(`rgb(${i}, ${a}, ${o})`);
105
106
  }
@@ -107,34 +108,34 @@ var b = {
107
108
  } else w.value = [];
108
109
  }
109
110
  function k(e) {
110
- return u(o(s((t.freeze ? e.frozenSeed : `${Math.random()}`) + t.seed)), {
111
+ return d(o(s((t.freeze ? e.frozenSeed : `${Math.random()}`) + t.seed)), {
111
112
  harmonics: e.harmonics,
112
113
  harmonicScale: e.harmonicScale
113
114
  });
114
115
  }
115
116
  let { isDark: A } = a();
116
- return h(() => {
117
- let n = m.value;
117
+ return g(() => {
118
+ let n = f.value;
118
119
  if (!n) return;
119
- let r = b[t.variant], i = k(r), a = [...i].sort((e, t) => t.amplitude - e.amplitude);
120
+ let r = x[t.variant], i = k(r), a = [...i].sort((e, t) => t.amplitude - e.amplitude);
120
121
  D = a.length, O();
121
- let o = Infinity, s = Infinity, u = -Infinity, f = -Infinity;
122
+ let o = Infinity, s = Infinity, d = -Infinity, p = -Infinity;
122
123
  for (let e = 0; e < 720; e++) {
123
124
  let t = c(i, e / 720), [n, r] = t[t.length - 1];
124
- n < o && (o = n), r < s && (s = r), n > u && (u = n), r > f && (f = r);
125
+ n < o && (o = n), r < s && (s = r), n > d && (d = n), r > p && (p = r);
125
126
  }
126
- let p = Math.max(.001, u - o), h = Math.max(.001, f - s), g = (o + u) / 2, _ = (s + f) / 2, v = [], x = e({
127
- canvas: m,
127
+ let m = Math.max(.001, d - o), h = Math.max(.001, p - s), g = (o + d) / 2, _ = (s + p) / 2, v = [], y = e({
128
+ canvas: f,
128
129
  setup: () => ({ render(e, o) {
129
130
  let s = n.clientWidth || n.offsetWidth || 0, u = n.clientHeight || n.offsetHeight || 0;
130
131
  if (!s || !u) return;
131
- let d = .82, f = Math.min(s / p * d, u / h * d), m = s / 2, y = u / 2, b = (e, t) => [m + (e - g) * f, y + (t - _) * f], T = t.freeze || x.reducedMotion ? r.frozenT : o / r.durationMs % 1, E = S.value, D = C.value, O = w.value, k = A.value, j = r.peakAlpha * l, M = r.headGlowAlpha * l;
132
+ let d = .82, f = Math.min(s / m * d, u / h * d), p = s / 2, b = u / 2, x = (e, t) => [p + (e - g) * f, b + (t - _) * f], T = t.freeze || y.reducedMotion ? r.frozenT : t.clock ? t.clock() : o / r.durationMs % 1, E = S.value, D = C.value, O = w.value, k = A.value, j = r.peakAlpha * l, M = r.headGlowAlpha * l;
132
133
  if (e.clearRect(0, 0, s, u), r.epicycleRatios.arm > 0) {
133
134
  let t = c(a, T);
134
135
  e.lineCap = "round", e.lineJoin = "round";
135
136
  let n = Math.min(1, j * r.epicycleRatios.circle), i = Math.min(1, j * r.epicycleRatios.arm);
136
137
  for (let a = 1; a < t.length; a++) {
137
- let [o, s] = b(t[a - 1][0], t[a - 1][1]), [c, l] = b(t[a][0], t[a][1]), u = Math.hypot(c - o, l - s), d = O.length > 0 ? O[Math.min(a - 1, O.length - 1)] : D;
138
+ let [o, s] = x(t[a - 1][0], t[a - 1][1]), [c, l] = x(t[a][0], t[a][1]), u = Math.hypot(c - o, l - s), d = O.length > 0 ? O[Math.min(a - 1, O.length - 1)] : D;
138
139
  e.strokeStyle = d, e.lineWidth = r.epicycleWidths.circle, e.globalAlpha = n, e.beginPath(), e.arc(o, s, u, 0, Math.PI * 2), e.stroke(), e.lineWidth = r.epicycleWidths.arm, e.globalAlpha = i, e.beginPath(), e.moveTo(o, s), e.lineTo(c, l), e.stroke(), e.fillStyle = d, e.globalAlpha = Math.min(1, i * .9), e.beginPath(), e.arc(o, s, Math.max(2, r.epicycleWidths.arm * .9), 0, Math.PI * 2), e.fill();
139
140
  }
140
141
  e.globalAlpha = 1;
@@ -143,7 +144,7 @@ var b = {
143
144
  v.length = 0;
144
145
  for (let e = P; e >= 0; e--) {
145
146
  let t = c(i, (T - e / P * N + 1) % 1);
146
- v.push(b(t[t.length - 1][0], t[t.length - 1][1]));
147
+ v.push(x(t[t.length - 1][0], t[t.length - 1][1]));
147
148
  }
148
149
  e.globalCompositeOperation = "source-over", e.strokeStyle = E, e.lineCap = "round", e.lineJoin = "round", e.lineWidth = r.trailWidth;
149
150
  for (let t = 1; t < v.length; t++) {
@@ -172,22 +173,22 @@ var b = {
172
173
  e.shadowBlur = 0, e.globalCompositeOperation = "source-over", e.globalAlpha = 1;
173
174
  } })
174
175
  });
175
- y(d, O, { immediate: !0 }), y(() => t.color, () => {
176
- O(), x.wake();
177
- }), y(A, () => {
178
- O(), x.wake();
176
+ b(u, O, { immediate: !0 }), b(() => t.color, () => {
177
+ O(), y.wake();
178
+ }), b(A, () => {
179
+ O(), y.wake();
179
180
  });
180
- }), (e, t) => (g(), f("div", {
181
+ }), (e, t) => (_(), p("div", {
181
182
  ref_key: "hostRef",
182
- ref: d,
183
+ ref: u,
183
184
  class: "fourier-field"
184
- }, [p("canvas", {
185
+ }, [m("canvas", {
185
186
  ref_key: "canvasRef",
186
- ref: m,
187
+ ref: f,
187
188
  class: "fourier-field-canvas",
188
189
  "aria-hidden": "true"
189
190
  }, null, 512)], 512));
190
191
  }
191
- }), [["__scopeId", "data-v-71a17062"]]);
192
+ }), [["__scopeId", "data-v-96459506"]]);
192
193
  //#endregion
193
- export { x as FourierField, d as comp, l as dftFromPoints, u as makeEllipticSpectrum, c as positionsAt };
194
+ export { S as FourierField, f as comp, u as dftFromPoints, d as makeEllipticSpectrum, l as partialSumAt, c as positionsAt };
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "./math-U6-RrLmV.js";
2
- export { r as comp, t as dftFromPoints, n as makeEllipticSpectrum, e as positionsAt };
1
+ import { a as e, i as t, n, r, t as i } from "./math-DeuJwLFx.js";
2
+ export { i as comp, n as dftFromPoints, r as makeEllipticSpectrum, t as partialSumAt, e as positionsAt };
@@ -1,11 +1,12 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
- import { t } from "./_plugin-vue_export-helper-ok8pgSl5.js";
3
- import { computed as n, createElementBlock as r, defineComponent as i, normalizeClass as a, onBeforeUnmount as o, onMounted as s, openBlock as c, ref as l, renderSlot as u } from "vue";
2
+ import { t } from "./useSurfaceAxis-CMnF2zHb.js";
3
+ import { t as n } from "./_plugin-vue_export-helper-CBt_VvXa.js";
4
+ import { computed as r, createElementBlock as i, defineComponent as a, normalizeClass as o, onBeforeUnmount as s, onMounted as c, openBlock as l, ref as u, renderSlot as d } from "vue";
4
5
  //#region src/composables/glass/useGlassRenderer.ts
5
- function d() {
6
+ function f() {
6
7
  return window.chrome && CSS.supports("backdrop-filter", "url(#x) blur(1px)") ? "svg-filter" : CSS.supports("backdrop-filter", "blur(1px)") || CSS.supports("-webkit-backdrop-filter", "blur(1px)") ? "css" : "fallback";
7
8
  }
8
- function f(e, t, n, r) {
9
+ function p(e, t, n, r) {
9
10
  e.width = t, e.height = n;
10
11
  let i = e.getContext("2d"), a = i.createImageData(t, n), o = a.data, s = t / 2, c = n / 2;
11
12
  for (let e = 0; e < n; e++) for (let n = 0; n < t; n++) {
@@ -14,21 +15,21 @@ function f(e, t, n, r) {
14
15
  }
15
16
  i.putImageData(a, 0, 0);
16
17
  }
17
- function p(e, t, n) {
18
+ function m(e, t, n) {
18
19
  e.width = t, e.height = n;
19
20
  let r = e.getContext("2d"), i = t / 2, a = n / 2, o = Math.max(i, a), s = r.createRadialGradient(i, a, 0, i, a, o);
20
21
  s.addColorStop(0, "rgba(255,255,255,0)"), s.addColorStop(.5, "rgba(255,255,255,0.02)"), s.addColorStop(.8, "rgba(255,255,255,0.06)"), s.addColorStop(1, "rgba(255,255,255,0.12)"), r.fillStyle = s, r.fillRect(0, 0, t, n);
21
22
  let c = r.createLinearGradient(0, 0, t, 0);
22
23
  c.addColorStop(0, "rgba(255,255,255,0)"), c.addColorStop(.3, "rgba(255,255,255,0.15)"), c.addColorStop(.5, "rgba(255,255,255,0.25)"), c.addColorStop(.7, "rgba(255,255,255,0.15)"), c.addColorStop(1, "rgba(255,255,255,0)"), r.fillStyle = c, r.fillRect(0, 0, t, 2);
23
24
  }
24
- var m = 0;
25
- function h(e, t = {}) {
26
- let n = `glass-refract-${m++}`, r = t.blur ?? 16, i = t.refraction ?? .3, a = document.createElement("canvas");
25
+ var h = 0;
26
+ function g(e, t = {}) {
27
+ let n = `glass-refract-${h++}`, r = t.blur ?? 16, i = t.refraction ?? .3, a = document.createElement("canvas");
27
28
  a.style.display = "none", document.body.appendChild(a);
28
29
  let o = document.createElement("canvas");
29
30
  o.style.display = "none", document.body.appendChild(o);
30
31
  let s = e.getBoundingClientRect(), c = Math.max(Math.ceil(s.width / 4), 32), l = Math.max(Math.ceil(s.height / 4), 32);
31
- f(a, c, l, i), p(o, c, l);
32
+ p(a, c, l, i), m(o, c, l);
32
33
  let u = document.createElementNS("http://www.w3.org/2000/svg", "svg");
33
34
  u.setAttribute("width", "0"), u.setAttribute("height", "0"), u.style.position = "absolute", u.style.pointerEvents = "none";
34
35
  let d = i * 30;
@@ -44,32 +45,32 @@ function h(e, t = {}) {
44
45
  <feBlend in="blurred" in2="specular" mode="screen" result="final" />
45
46
  </filter>
46
47
  `, document.body.appendChild(u), e.style.backdropFilter = `url(#${n}) blur(${r * .15}px) saturate(1.6) brightness(1.05)`, e.style.setProperty("-webkit-backdrop-filter", e.style.backdropFilter), e.style.border = "1px solid rgba(255,255,255,0.25)", e.style.boxShadow = "\n inset 0 0.5px 0 0 rgba(255,255,255,0.3),\n inset 0 -0.5px 0 0 rgba(0,0,0,0.05),\n 0 4px 16px rgba(0,0,0,0.08)\n ";
47
- let h = new ResizeObserver(() => {
48
+ let f = new ResizeObserver(() => {
48
49
  let t = e.getBoundingClientRect(), n = Math.max(Math.ceil(t.width / 4), 32), r = Math.max(Math.ceil(t.height / 4), 32);
49
- f(a, n, r, i), p(o, n, r);
50
+ p(a, n, r, i), m(o, n, r);
50
51
  let s = u.querySelectorAll("feImage");
51
52
  s[0] && s[0].setAttribute("href", a.toDataURL()), s[1] && s[1].setAttribute("href", o.toDataURL());
52
53
  });
53
- return h.observe(e), {
54
+ return f.observe(e), {
54
55
  filterId: n,
55
56
  svgEl: u,
56
57
  dispCanvas: a,
57
58
  specCanvas: o,
58
- observer: h
59
+ observer: f
59
60
  };
60
61
  }
61
- function g(e) {
62
+ function _(e) {
62
63
  e.observer?.disconnect(), e.svgEl.remove(), e.dispCanvas.remove(), e.specCanvas.remove();
63
64
  }
64
- function _(e) {
65
- let t = l(e?.preferredTier ?? "css");
66
- return s(() => {
67
- e?.preferredTier || (t.value = d());
65
+ function v(e) {
66
+ let t = u(e?.preferredTier ?? "css");
67
+ return c(() => {
68
+ e?.preferredTier || (t.value = f());
68
69
  }), { tier: t };
69
70
  }
70
71
  //#endregion
71
72
  //#region src/components/custom/glass-panel/GlassPanel.vue?vue&type=script&setup=true&lang.ts
72
- var v = ["data-variant"], y = /* @__PURE__ */ t(/* @__PURE__ */ i({
73
+ var y = ["data-variant", "data-surface"], b = /* @__PURE__ */ n(/* @__PURE__ */ a({
73
74
  __name: "GlassPanel",
74
75
  props: {
75
76
  tier: {},
@@ -80,31 +81,33 @@ var v = ["data-variant"], y = /* @__PURE__ */ t(/* @__PURE__ */ i({
80
81
  default: !1
81
82
  },
82
83
  variant: { default: "resting" },
84
+ surface: { default: "glass" },
83
85
  class: {}
84
86
  },
85
- setup(t) {
86
- let i = {
87
+ setup(n) {
88
+ let a = {
87
89
  wash: "glass-wash",
88
90
  quiet: "glass-quiet",
89
91
  resting: "glass-resting",
90
92
  floating: "glass-floating",
91
93
  overlay: "glass-overlay"
92
- }, d = t, f = l(null), p = _({ preferredTier: d.tier }), m = n(() => d.tier ?? p.tier.value), y = n(() => m.value === "svg-filter" ? e("glass-panel glass-panel--svg", d.class) : m.value === "fallback" ? e("glass-panel glass-panel--fallback", d.class) : e("glass-panel", i[d.variant], d.class)), b = null;
93
- return s(() => {
94
- f.value && m.value === "svg-filter" && (b = h(f.value, {
95
- blur: d.blur,
96
- refraction: d.refraction,
97
- chromaticAberration: d.chromaticAberration ? .5 : 0
94
+ }, f = n, p = u(null), m = v({ preferredTier: f.tier }), h = r(() => f.tier ?? m.tier.value), b = r(() => t(f.surface).replace(/^glass-\w+\s*/, "")), x = r(() => h.value === "svg-filter" ? e("glass-panel glass-panel--svg", b.value, f.class) : h.value === "fallback" ? e("glass-panel glass-panel--fallback", b.value, f.class) : e("glass-panel", a[f.variant], b.value, f.class)), S = null;
95
+ return c(() => {
96
+ p.value && h.value === "svg-filter" && (S = g(p.value, {
97
+ blur: f.blur,
98
+ refraction: f.refraction,
99
+ chromaticAberration: f.chromaticAberration ? .5 : 0
98
100
  }));
99
- }), o(() => {
100
- b && g(b);
101
- }), (e, t) => (c(), r("div", {
101
+ }), s(() => {
102
+ S && _(S);
103
+ }), (e, t) => (l(), i("div", {
102
104
  ref_key: "panelRef",
103
- ref: f,
104
- class: a(y.value),
105
- "data-variant": d.variant
106
- }, [u(e.$slots, "default", {}, void 0, !0)], 10, v));
105
+ ref: p,
106
+ class: o(x.value),
107
+ "data-variant": f.variant,
108
+ "data-surface": f.surface
109
+ }, [d(e.$slots, "default", {}, void 0, !0)], 10, y));
107
110
  }
108
- }), [["__scopeId", "data-v-a674fae3"]]);
111
+ }), [["__scopeId", "data-v-92b50822"]]);
109
112
  //#endregion
110
- export { y as GlassPanel };
113
+ export { b as GlassPanel };