@mkbabb/glass-ui 3.6.0 → 3.8.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 (255) hide show
  1. package/dist/CardAction-q2qHCJFG.js +157 -0
  2. package/dist/CollapsibleContent-CP9qF1v4.js +63 -0
  3. package/dist/{CommandShortcut-BiVyqipe.js → CommandShortcut-SzWRhROC.js} +4 -4
  4. package/dist/{ContextMenuContent-De01_83g.js → ContextMenuContent-DDa0v27s.js} +1 -1
  5. package/dist/{ContextMenuSubContent-DrWkXKQP.js → ContextMenuSubContent-Do977Cbf.js} +4 -4
  6. package/dist/{DataTable-BGVXx0Ww.js → DataTable-CvlWXz65.js} +14 -7
  7. package/dist/DeckProgress-AVgbIULY.js +23 -0
  8. package/dist/{DialogContent-IQ8_BRrC.js → DialogContent-DjZWT3lK.js} +24 -24
  9. package/dist/{DialogFooter-Er0wA3K6.js → DialogFooter-Gprw8H_A.js} +2 -2
  10. package/dist/{DiscoGlyph-BaZ8OawK.js → DiscoGlyph-CG0F410s.js} +1 -1
  11. package/dist/{GlyphFace-B_7vOmYn.js → GlyphFace-DRjDkB0s.js} +1 -1
  12. package/dist/{HoverCardContent-ICfIMZX1.js → HoverCardContent-B6CcQ8He.js} +1 -1
  13. package/dist/{HoverPopover-DTSYkJtw.js → HoverPopover-D56O6Ylp.js} +1 -1
  14. package/dist/{IconTooltip-DZlCkU-0.js → IconTooltip-D2T5nYOM.js} +1 -1
  15. package/dist/{Input-CRJ2owjN.js → Input-DVG_J0ne.js} +4 -1
  16. package/dist/{Label-CZk-3nTc.js → Label-zRfbQdCn.js} +1 -1
  17. package/dist/{MetricBadge-BlrdbOGN.js → MetricBadge-lTc002u2.js} +1 -1
  18. package/dist/{Notification-DP_ApJLo.js → Notification-BxK8LZMw.js} +5 -4
  19. package/dist/{NumberFieldContent-Bhhmk95p.js → NumberFieldContent-CLNVR1iY.js} +5 -5
  20. package/dist/{PopoverContent-B8WtJECb.js → PopoverContent-BId6ggf_.js} +2 -2
  21. package/dist/{Progress-DjM86vfb.js → Progress-iEuD9pxG.js} +7 -7
  22. package/dist/{ScrollingText-P9o_DuMn.js → ScrollingText-CVyqxvfv.js} +2 -2
  23. package/dist/{SelectScrollDownButton-BGn3rjs9.js → SelectScrollDownButton-C7TRe-ep.js} +8 -7
  24. package/dist/{Separator-C2XtAXRp.js → Separator-D7sD7RKj.js} +1 -1
  25. package/dist/{Switch-x8n6husW.js → Switch-LDKLmmgx.js} +8 -2
  26. package/dist/TabsList-qyHZ2lKY.js +101 -0
  27. package/dist/{Toaster-DdhMKfus.js → Toaster-CabYEEF_.js} +54 -60
  28. package/dist/{ToggleGroupItem-gyXj998A.js → ToggleGroupItem-CkXUcBlt.js} +13 -5
  29. package/dist/{TooltipProvider-D-JrSqDu.js → TooltipProvider-CmZzCuaG.js} +1 -1
  30. package/dist/{UnderlineTabs-CuIK16JI.js → UnderlineTabs-Uxn-R3MT.js} +2 -2
  31. package/dist/animated-digit.js +2 -2
  32. package/dist/api/index.d.ts +4 -2
  33. package/dist/api.js +1 -1
  34. package/dist/aurora.js +753 -359
  35. package/dist/{badge-Cl6JZ1B7.js → badge-DHQrc_GQ.js} +13 -9
  36. package/dist/badge.js +1 -1
  37. package/dist/{button-BcMzVrqs.js → button-CAywcrhO.js} +6 -3
  38. package/dist/button.js +1 -1
  39. package/dist/canvas.d.ts +1 -0
  40. package/dist/canvas.js +3 -0
  41. package/dist/card.js +2 -2
  42. package/dist/carousel.js +110 -109
  43. package/dist/{check-CdkxGxXJ.js → check-BBKKKSTf.js} +1 -1
  44. package/dist/{chevron-down-pBY8sYfV.js → chevron-down-BSkTP2aL.js} +1 -1
  45. package/dist/{chevron-right-BjeKC22V.js → chevron-right-sDM0Yvrf.js} +1 -1
  46. package/dist/{chevron-up-DBeNHUm1.js → chevron-up-CCOD_FTz.js} +1 -1
  47. package/dist/collapsible.js +1 -1
  48. package/dist/color-DMLTunJK.js +84 -0
  49. package/dist/color.js +2 -2
  50. package/dist/command.js +1 -1
  51. package/dist/compile-BBTRjvQS.js +158 -0
  52. package/dist/components/custom/aurora/Aurora.vue.d.ts +1 -0
  53. package/dist/components/custom/aurora/composables/atoms.d.ts +125 -0
  54. package/dist/components/custom/aurora/composables/color.d.ts +7 -25
  55. package/dist/components/custom/aurora/composables/cursorModel.d.ts +35 -2
  56. package/dist/components/custom/aurora/composables/glSetup.d.ts +1 -1
  57. package/dist/components/custom/aurora/composables/gpuRuntime.d.ts +16 -0
  58. package/dist/components/custom/aurora/composables/runtime.d.ts +18 -0
  59. package/dist/components/custom/aurora/composables/uniformBridge.d.ts +46 -12
  60. package/dist/components/custom/aurora/composables/useAurora.d.ts +6 -0
  61. package/dist/components/custom/aurora/composables/useCursorInteraction.d.ts +8 -0
  62. package/dist/components/custom/aurora/constants/presets.d.ts +60 -4
  63. package/dist/components/custom/aurora/constants/renderMode.d.ts +32 -0
  64. package/dist/components/custom/aurora/constants/shaders/aurora.wgsl.d.ts +7 -0
  65. package/dist/components/custom/aurora/constants/shaders/brush.glsl.d.ts +1 -1
  66. package/dist/components/custom/aurora/constants/shaders/composition.glsl.d.ts +1 -1
  67. package/dist/components/custom/aurora/constants/shaders/flow.glsl.d.ts +1 -1
  68. package/dist/components/custom/aurora/constants/shaders/mediums.glsl.d.ts +2 -2
  69. package/dist/components/custom/aurora/constants/shaders/painterly.wgsl.d.ts +7 -0
  70. package/dist/components/custom/aurora/constants/shaders/wake.wgsl.d.ts +4 -0
  71. package/dist/components/custom/aurora/index.d.ts +4 -3
  72. package/dist/components/custom/constellation/Constellation.vue.d.ts +40 -5
  73. package/dist/components/custom/constellation/constellationField.d.ts +110 -5
  74. package/dist/components/custom/constellation/index.d.ts +2 -2
  75. package/dist/components/custom/dock/GlassDock.vue.d.ts +12 -4
  76. package/dist/components/custom/dock/composables/dockMorphContext.d.ts +57 -0
  77. package/dist/components/custom/dock/composables/index.d.ts +3 -0
  78. package/dist/components/custom/dock/composables/useDockHold.d.ts +61 -0
  79. package/dist/components/custom/dock/composables/useLayerTransition.d.ts +13 -59
  80. package/dist/components/custom/dock/index.d.ts +2 -0
  81. package/dist/components/custom/fourier-field/FourierField.vue.d.ts +38 -0
  82. package/dist/components/custom/fourier-field/index.d.ts +2 -0
  83. package/dist/components/custom/fourier-field/math.d.ts +57 -0
  84. package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +15 -0
  85. package/dist/components/custom/goo-blob/composables/useBlobMood.d.ts +18 -2
  86. package/dist/components/custom/goo-blob/composables/useBlobPointer.d.ts +47 -4
  87. package/dist/components/custom/goo-blob/composables/useBlobSatellites.d.ts +2 -0
  88. package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +19 -4
  89. package/dist/components/custom/goo-blob/index.d.ts +1 -1
  90. package/dist/components/custom/goo-blob/shaders/sdf-body.glsl.d.ts +1 -1
  91. package/dist/components/custom/goo-blob/shaders/watercolor-edges.glsl.d.ts +2 -2
  92. package/dist/components/custom/goo-blob/types.d.ts +48 -0
  93. package/dist/components/custom/metric-cell/MetricCell.vue.d.ts +1 -1
  94. package/dist/components/custom/metric-stack/MetricStack.vue.d.ts +1 -1
  95. package/dist/components/ui/_shared/ModalOverlay.vue.d.ts +1 -1
  96. package/dist/components/ui/alert/index.d.ts +1 -1
  97. package/dist/components/ui/card/Card.vue.d.ts +26 -3
  98. package/dist/components/ui/card/CardAction.vue.d.ts +24 -0
  99. package/dist/components/ui/card/index.d.ts +2 -1
  100. package/dist/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +5 -1
  101. package/dist/components/ui/progress/ProgressDefault.vue.d.ts +14 -4
  102. package/dist/components/ui/slider/Slider.vue.d.ts +3 -1
  103. package/dist/components/ui/tabs/TabsList.vue.d.ts +13 -3
  104. package/dist/components/ui/toast/Toast.vue.d.ts +5 -5
  105. package/dist/components/ui/toast/use-toast.d.ts +1 -1
  106. package/dist/composables/color/index.d.ts +69 -0
  107. package/dist/composables/dom/index.d.ts +1 -1
  108. package/dist/composables/dom/useResolveTokenColor.d.ts +27 -0
  109. package/dist/composables/glass/canvas2d/index.d.ts +2 -1
  110. package/dist/composables/glass/canvas2d/resolveCanvasColor.d.ts +20 -0
  111. package/dist/composables/glass/canvas2d/useCanvas2D.d.ts +15 -1
  112. package/dist/composables/glass/createGPUCanvas.d.ts +40 -0
  113. package/dist/composables/glass/index.d.ts +3 -1
  114. package/dist/composables/glass/useSpecularTracking.d.ts +33 -0
  115. package/dist/composables/glass/webgl/createCanvasLifecycle.d.ts +45 -0
  116. package/dist/composables/glass/webgl/shaders/procedural-color.glsl.d.ts +7 -0
  117. package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +5 -5
  118. package/dist/composables/motion/core/index.d.ts +1 -0
  119. package/dist/configurator.js +1 -1
  120. package/dist/confirm-dialog.js +3 -3
  121. package/dist/constellation.js +144 -75
  122. package/dist/context-menu.js +2 -2
  123. package/dist/controls.js +2 -2
  124. package/dist/dark.js +1 -1
  125. package/dist/data-table.js +1 -1
  126. package/dist/deck-progress.d.ts +1 -0
  127. package/dist/deck-progress.js +2 -0
  128. package/dist/dialog.js +2 -2
  129. package/dist/disco-glyph.js +1 -1
  130. package/dist/dock.js +388 -287
  131. package/dist/{dockContext-spUj_-E5.js → dockContext-BKeIMmNk.js} +1 -1
  132. package/dist/dom.js +6 -6
  133. package/dist/{dropdown-menu-EFjl5iKo.js → dropdown-menu-B_4bWyyG.js} +5 -5
  134. package/dist/dropdown-menu.js +1 -1
  135. package/dist/expandable-container.js +2 -2
  136. package/dist/fonts/README.md +26 -18
  137. package/dist/forms.js +10 -7
  138. package/dist/fourier-field.d.ts +1 -0
  139. package/dist/fourier-field.js +166 -0
  140. package/dist/glass-carousel.js +12 -7
  141. package/dist/glass-panel.js +7 -7
  142. package/dist/glass-ui.css +1 -1
  143. package/dist/glass-ui.js +209 -206
  144. package/dist/glyph-face.js +2 -2
  145. package/dist/goo-blob.js +485 -300
  146. package/dist/header-ribbon.js +1 -1
  147. package/dist/hover-card.js +1 -1
  148. package/dist/hover-popover.js +1 -1
  149. package/dist/icon-tooltip.js +1 -1
  150. package/dist/index.d.ts +1 -0
  151. package/dist/instrument-chassis.js +1 -1
  152. package/dist/instrument-rail.js +1 -1
  153. package/dist/keyboard.js +1 -1
  154. package/dist/{keys-BFoma9vm.js → keys-BsYjEFOW.js} +1 -1
  155. package/dist/label.js +1 -1
  156. package/dist/labeled-field.js +6 -6
  157. package/dist/metric-badge.js +1 -1
  158. package/dist/metric-stack.js +1 -1
  159. package/dist/{minimize-2-BP27-qBY.js → minimize-2-lcXOuc6V.js} +1 -1
  160. package/dist/motion-core.js +68 -98
  161. package/dist/motion.js +3 -3
  162. package/dist/notification.js +1 -1
  163. package/dist/number-field.js +1 -1
  164. package/dist/paper-backdrop.js +1 -1
  165. package/dist/popover.js +1 -1
  166. package/dist/progress.js +1 -1
  167. package/dist/pulse.js +1 -1
  168. package/dist/reactive.js +2 -2
  169. package/dist/resolveCanvasColor-BBiYfp8g.js +11 -0
  170. package/dist/responsive-tabs.js +2 -2
  171. package/dist/scrolling-text.js +1 -1
  172. package/dist/{search-DBG8qaRs.js → search-nbkvr2dC.js} +1 -1
  173. package/dist/search.js +12 -12
  174. package/dist/select.js +3 -3
  175. package/dist/separator.js +1 -1
  176. package/dist/{sheet-CQYYrkr9.js → sheet-VZEtNFvO.js} +4 -4
  177. package/dist/sheet.js +1 -1
  178. package/dist/slider-D9puf-Ko.js +142 -0
  179. package/dist/slider.js +1 -1
  180. package/dist/sortable-list.js +3 -3
  181. package/dist/styles/components.css +1 -1
  182. package/dist/styles/dock-controls.css +21 -18
  183. package/dist/styles/dock.css +415 -224
  184. package/dist/styles/fonts.css +0 -25
  185. package/dist/styles/glass.css +100 -41
  186. package/dist/styles/theme.css +58 -2
  187. package/dist/styles/tokens.css +139 -32
  188. package/dist/styles/typography.css +55 -72
  189. package/dist/styles/utilities.css +19 -14
  190. package/dist/styles/view-transition.css +12 -40
  191. package/dist/supportsCssTimeline-C5oe0lnD.js +12 -0
  192. package/dist/switch.js +1 -1
  193. package/dist/tabs.js +5 -5
  194. package/dist/timeline.js +3 -3
  195. package/dist/toast.js +1 -1
  196. package/dist/toggle-group.js +1 -1
  197. package/dist/tooltip.js +1 -1
  198. package/dist/typewriter.js +1 -1
  199. package/dist/{useAnimatedNumber-DfVgP4te.js → useAnimatedNumber-C_3wZLx4.js} +1 -1
  200. package/dist/{useCanvas2D-BeNJqqIS.js → useCanvas2D-ClrQuZtp.js} +2 -1
  201. package/dist/{useConfiguratorState-DUtC1jxr.js → useConfiguratorState-CMff4GzH.js} +5 -5
  202. package/dist/useResolveTokenColor-r9pnNjqK.js +24 -0
  203. package/dist/useScrollProgress-C9ysDic5.js +35 -0
  204. package/dist/useSpecularTracking-BVRZsRHA.js +26 -0
  205. package/dist/{useTextHighlight-Dmtofpk2.js → useTextHighlight-9nMW23Qb.js} +1 -1
  206. package/dist/{useTouchGate-CS5Csc2h.js → useTouchGate-WFyJYsth.js} +1 -1
  207. package/dist/vReveal-CqaCz_mC.js +44 -0
  208. package/dist/watercolor-dot.js +2 -2
  209. package/dist/{x-C4pz9nbD.js → x-Dfsegz9Y.js} +1 -1
  210. package/package.json +64 -4
  211. package/src/fonts/README.md +26 -18
  212. package/src/styles/dock-controls.css +21 -18
  213. package/src/styles/dock.css +415 -224
  214. package/src/styles/fonts.css +0 -25
  215. package/src/styles/glass.css +100 -41
  216. package/src/styles/theme.css +58 -2
  217. package/src/styles/tokens.css +139 -32
  218. package/src/styles/typography.css +55 -72
  219. package/src/styles/utilities.css +19 -14
  220. package/src/styles/view-transition.css +12 -40
  221. package/dist/CardFooter-C390imy7.js +0 -129
  222. package/dist/CollapsibleContent-cauTbZEM.js +0 -52
  223. package/dist/TabsIndicator-DA0x9gPr.js +0 -97
  224. package/dist/color-DS-iLRVM.js +0 -33
  225. package/dist/compile-C62K_FpC.js +0 -106
  226. package/dist/fonts/fraunces/fraunces-latin.woff2 +0 -0
  227. package/dist/slider-CgNzRSh6.js +0 -129
  228. package/dist/useViewTransition-DI0Rs2rV.js +0 -21
  229. package/dist/vReveal-u2wSG2El.js +0 -35
  230. package/src/fonts/fraunces/fraunces-latin.woff2 +0 -0
  231. /package/dist/{InstrumentChassis-DaHIZCqy.js → InstrumentChassis-C2f6cBaQ.js} +0 -0
  232. /package/dist/{InstrumentRail-B0qqLFN0.js → InstrumentRail-CUJ05YVG.js} +0 -0
  233. /package/dist/{ModalOverlay-B_CBtqcE.js → ModalOverlay-B1GkAjNb.js} +0 -0
  234. /package/dist/{PaperBackdrop-D_YZW47j.js → PaperBackdrop-CqwjnfLv.js} +0 -0
  235. /package/dist/{SelectGroup-CMdoCjRE.js → SelectGroup-BFiod7X2.js} +0 -0
  236. /package/dist/{SelectSeparator-CaJnPF3_.js → SelectSeparator-L8pPEn4L.js} +0 -0
  237. /package/dist/{_plugin-vue_export-helper-C1je1s0u.js → _plugin-vue_export-helper-ok8pgSl5.js} +0 -0
  238. /package/dist/composables/{dom → motion}/useTextHighlight.d.ts +0 -0
  239. /package/dist/{constants-C8NMonuo.js → constants-BPOqYJAm.js} +0 -0
  240. /package/dist/{createContext-DBMGRlx4.js → createContext-B44Sah_H.js} +0 -0
  241. /package/dist/{createLucideIcon-DuDoe_ra.js → createLucideIcon-B6uNAU9G.js} +0 -0
  242. /package/dist/{menuItemVariants-C2QlXqT3.js → menuItemVariants-DKM85SNE.js} +0 -0
  243. /package/dist/{presets-Dyv9Zl7W.js → presets-D1XPuTj-.js} +0 -0
  244. /package/dist/{prng-CjVgzjQT.js → prng-COGhh02-.js} +0 -0
  245. /package/dist/{useGlassRenderer-Dn3WpfG-.js → useGlassRenderer-5I0YkI4t.js} +0 -0
  246. /package/dist/{useGlobalDark-D7R9OypB.js → useGlobalDark-D3EBWzXK.js} +0 -0
  247. /package/dist/{useIntersectionPause-DsQYGc8V.js → useIntersectionPause-Bj4sPkMh.js} +0 -0
  248. /package/dist/{useInterval-CHVYFpXV.js → useInterval-CcLfq2WU.js} +0 -0
  249. /package/dist/{useKeyboardShortcuts-i8tHd5WO.js → useKeyboardShortcuts-BXWXOZ-9.js} +0 -0
  250. /package/dist/{useResizeObserver-DX-STszm.js → useResizeObserver-CWCbk5Px.js} +0 -0
  251. /package/dist/{useSortable-muI29agz.js → useSortable-MGAbCGVJ.js} +0 -0
  252. /package/dist/{useSpringMount-CnizvZGm.js → useSpringMount-BJSHcLl3.js} +0 -0
  253. /package/dist/{useTimer-DGgoxTXL.js → useTimer-3xqf_54b.js} +0 -0
  254. /package/dist/{useUserInvalidAria-DmvZ_6Dx.js → useUserInvalidAria-DoJKMZ3s.js} +0 -0
  255. /package/dist/{useViewportReady-Dcvf0c4p.js → useViewportReady-RIr5Wgkh.js} +0 -0
@@ -1,97 +0,0 @@
1
- import { t as e } from "./cn-DJXf4yaB.js";
2
- import { computed as t, createBlock as n, defineComponent as r, guardReactiveProps as i, mergeProps as a, normalizeProps as o, openBlock as s, renderSlot as c, unref as l, withCtx as u } from "vue";
3
- import { TabsIndicator as d, TabsList as f, TabsRoot as p, TabsTrigger as m, useForwardProps as h, useForwardPropsEmits as g } from "reka-ui";
4
- //#endregion
5
- //#region src/components/ui/tabs/Tabs.vue
6
- var _ = /* @__PURE__ */ r({
7
- __name: "Tabs",
8
- props: {
9
- defaultValue: {},
10
- orientation: {},
11
- dir: {},
12
- activationMode: {},
13
- modelValue: {},
14
- unmountOnHide: { type: Boolean },
15
- asChild: { type: Boolean },
16
- as: {}
17
- },
18
- emits: ["update:modelValue"],
19
- setup(e, { emit: t }) {
20
- let r = g(e, t);
21
- return (e, t) => (s(), n(l(p), o(i(l(r))), {
22
- default: u(() => [c(e.$slots, "default")]),
23
- _: 3
24
- }, 16));
25
- }
26
- }), v = /* @__PURE__ */ r({
27
- __name: "TabsTrigger",
28
- props: {
29
- value: {},
30
- disabled: { type: Boolean },
31
- asChild: { type: Boolean },
32
- as: {},
33
- class: { type: [
34
- Boolean,
35
- null,
36
- String,
37
- Object,
38
- Array
39
- ] }
40
- },
41
- setup(r) {
42
- let i = r, o = h(t(() => {
43
- let { class: e, ...t } = i;
44
- return t;
45
- }));
46
- return (t, r) => (s(), n(l(m), a(l(o), { class: l(e)("focus-ring inline-flex items-center justify-center whitespace-nowrap rounded-sm p-1 px-3 text-sm font-medium transition-control disabled:pointer-events-none disabled:opacity-disabled data-[state=active]:text-[var(--active-tab-color,var(--foreground))] hover:text-foreground/70", i.class) }), {
47
- default: u(() => [c(t.$slots, "default")]),
48
- _: 3
49
- }, 16, ["class"]));
50
- }
51
- }), y = /* @__PURE__ */ r({
52
- __name: "TabsList",
53
- props: {
54
- loop: { type: Boolean },
55
- asChild: { type: Boolean },
56
- as: {},
57
- class: { type: [
58
- Boolean,
59
- null,
60
- String,
61
- Object,
62
- Array
63
- ] }
64
- },
65
- setup(r) {
66
- let i = r, o = t(() => {
67
- let { class: e, ...t } = i;
68
- return t;
69
- });
70
- return (t, r) => (s(), n(l(f), a(o.value, { class: l(e)("inline-flex h-10 items-center justify-center rounded-input p-1 text-muted-foreground", i.class) }), {
71
- default: u(() => [c(t.$slots, "default")]),
72
- _: 3
73
- }, 16, ["class"]));
74
- }
75
- }), b = /* @__PURE__ */ r({
76
- __name: "TabsIndicator",
77
- props: {
78
- asChild: { type: Boolean },
79
- as: {},
80
- class: { type: [
81
- Boolean,
82
- null,
83
- String,
84
- Object,
85
- Array
86
- ] }
87
- },
88
- setup(r) {
89
- let i = r, o = t(() => {
90
- let { class: e, ...t } = i;
91
- return t;
92
- });
93
- return (t, r) => (s(), n(l(d), a(o.value, { class: l(e)("absolute left-0 h-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position) rounded-pill bg-secondary/80 transition-[width,transform] duration-normal ease-spring-snappy", i.class) }), null, 16, ["class"]));
94
- }
95
- });
96
- //#endregion
97
- export { _ as i, y as n, v as r, b as t };
@@ -1,33 +0,0 @@
1
- import { colorUnit2 as e, oklabToLinearSRGB as t, oklabToRgb255 as n, parseCSSColor as r, rawOklabToOklch as i, rawOklchToOklab as a, srgbToOKLab as o } from "@mkbabb/value.js";
2
- //#region src/composables/color/index.ts
3
- function s(e) {
4
- let [n, r, i] = a(e.L, e.C, e.h), [o, s, c] = t(n, r, i);
5
- return [
6
- Math.max(0, o),
7
- Math.max(0, s),
8
- Math.max(0, c)
9
- ];
10
- }
11
- function c(e) {
12
- let [t, r, i] = a(e.L, e.C, e.h), [o, s, c] = n(t, r, i), l = (e) => Math.min(1, Math.max(0, e / 255));
13
- return [
14
- l(o),
15
- l(s),
16
- l(c)
17
- ];
18
- }
19
- function l(t) {
20
- let n = e(r(t), "rgb").value, [a, s, c] = o(Number(n.r), Number(n.g), Number(n.b)), [l, u, d] = i(a, s, c);
21
- return {
22
- L: l,
23
- C: u,
24
- h: d
25
- };
26
- }
27
- function u(e) {
28
- let [t, r, i] = a(e.L, e.C, e.h), [o, s, c] = n(t, r, i), l = (e) => Math.round(e).toString(16).padStart(2, "0");
29
- return `#${l(o)}${l(s)}${l(c)}`;
30
- }
31
- var d = (e) => c(l(e));
32
- //#endregion
33
- export { s as a, c as i, d as n, u as r, l as t };
@@ -1,106 +0,0 @@
1
- //#region src/composables/glass/webgl/shaders/procedural-color.glsl.ts
2
- var e = "\nfloat srgbToLinearCh(float c) {\n return c <= 0.04045 ? c / 12.92 : pow((c + 0.055) / 1.055, 2.4);\n}\nvec3 srgbToLinear(vec3 c) {\n return vec3(srgbToLinearCh(c.r), srgbToLinearCh(c.g), srgbToLinearCh(c.b));\n}\n\nfloat linearToSrgbCh(float c) {\n return c <= 0.0031308 ? c * 12.92 : 1.055 * pow(c, 1.0 / 2.4) - 0.055;\n}\nvec3 linearToSrgb(vec3 c) {\n return vec3(linearToSrgbCh(c.r), linearToSrgbCh(c.g), linearToSrgbCh(c.b));\n}", t = "const mat2 FBM_ROT = mat2(0.8, 0.6, -0.6, 0.8);", n = "\n// value.js LINEAR_SRGB_TO_LMS (constants.ts), row-major; written here as GLSL\n// columns (= the transpose) so mat3 * vec3 evaluates the row-major M·v.\nconst mat3 LINEAR_SRGB_TO_LMS = mat3(\n 0.4122214708, 0.2119034982, 0.0883024619,\n 0.5363325363, 0.6806995451, 0.2817188376,\n 0.0514459929, 0.1073969566, 0.6299787005\n);\n\n// value.js srgbToOKLab's INLINE LMS→OKLab coefficients (gamut.ts lines 295-297 —\n// these differ at the ~1e-9 digit from LMS_TO_OKLAB_MATRIX; use the inline ones to\n// mirror the exact value.js path), row-major → GLSL columns.\nconst mat3 LMS_TO_OKLAB = mat3(\n 0.2104542553, 1.9779984951, 0.0259040371,\n 0.7936177850, -2.4285922050, 0.7827717662,\n -0.0040720468, 0.4505937099, -0.8086757660\n);\n\n// value.js OKLAB_TO_LMS_COEFF (constants.ts), row-major → GLSL columns. Rows:\n// l = [1, 0.3963377774, 0.2158037573], m = [1, -0.1055613458, -0.0638541728],\n// s = [1, -0.0894841775, -1.2914855480].\nconst mat3 OKLAB_TO_LMS = mat3(\n 1.0, 1.0, 1.0,\n 0.3963377774, -0.1055613458, -0.0894841775,\n 0.2158037573, -0.0638541728, -1.2914855480\n);\n\n// value.js LMS_TO_LINEAR_SRGB (constants.ts), row-major → GLSL columns.\nconst mat3 LMS_TO_LINEAR_SRGB = mat3(\n 4.0767416621, -1.2684380046, -0.0041960863,\n -3.3077115913, 2.6097574011, -0.7034186147,\n 0.2309699292, -0.3413193965, 1.7076147010\n);\n\n// Gamma sRGB → raw OKLab (L, a, b). Mirrors value.js srgbToOKLab.\nvec3 srgbToOklab(vec3 c) {\n vec3 lin = srgbToLinear(c);\n vec3 lms = LINEAR_SRGB_TO_LMS * lin;\n vec3 lmsCbrt = sign(lms) * pow(abs(lms), vec3(1.0 / 3.0));\n return LMS_TO_OKLAB * lmsCbrt;\n}\n\n// Raw OKLab (L, a, b) → linear sRGB. Mirrors value.js oklabToLinearSRGB.\nvec3 oklabToLinearSrgb(vec3 lab) {\n vec3 lms_ = OKLAB_TO_LMS * lab;\n vec3 lms = lms_ * lms_ * lms_;\n return LMS_TO_LINEAR_SRGB * lms;\n}\n\n// OKLab → OKLCh: H in RADIANS. Mirrors value.js rawOklabToOklch (which returns\n// degrees; we stay in radians and only fold to [0, 2pi)).\nvec3 oklabToOklch(vec3 lab) {\n float C = length(lab.yz);\n float H = atan(lab.z, lab.y);\n if (H < 0.0) H += 2.0 * PI;\n return vec3(lab.x, C, H);\n}\n\n// OKLCh (H radians) → OKLab. Mirrors value.js rawOklchToOklab.\nvec3 oklchToOklab(vec3 lch) {\n return vec3(lch.x, lch.y * cos(lch.z), lch.y * sin(lch.z));\n}";
3
- function r() {
4
- let e = typeof window < "u" && window.devicePixelRatio || 1;
5
- return Math.min(e, 2);
6
- }
7
- //#endregion
8
- //#region src/composables/glass/webgl/useWebGLCanvas.ts
9
- function i(e, t) {
10
- let { setup: n, contextAttrs: r } = t, i = t.respectReducedMotion ?? t.mode !== "capture", a = /* @__PURE__ */ new Set();
11
- t.mode === "capture" && a.add("manual");
12
- let o = () => a.size === 0, s = 0, c = typeof performance < "u" ? performance.now() : 0, l = null, u = null, d = !1, f = !1, p = i && typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-reduced-motion: reduce)") : null, m = p?.matches ?? !1;
13
- function h() {
14
- if (!o() || !u) return;
15
- let e = (performance.now() - c) / 1e3, t = u.time ? u.time(e) : e;
16
- u.frame(t), s = !m && u.shouldContinue() ? requestAnimationFrame(h) : 0;
17
- }
18
- function g() {
19
- d && o() && !s && u && (s = requestAnimationFrame(h));
20
- }
21
- function _() {
22
- let e = p?.matches ?? !1;
23
- e !== m && (m = e, e || (c = performance.now()), g());
24
- }
25
- p?.addEventListener("change", _);
26
- function v(e = "manual") {
27
- let t = o();
28
- a.add(e), t && !o() && (cancelAnimationFrame(s), s = 0);
29
- }
30
- function y(e = "manual") {
31
- let t = !o();
32
- a.delete(e), t && o() && d && u && (c = performance.now() - 1e3, h());
33
- }
34
- let b = typeof document < "u";
35
- function x() {
36
- document.hidden ? v("tab-hidden") : y("tab-hidden");
37
- }
38
- b && document.addEventListener("visibilitychange", x), b && document.hidden && a.add("tab-hidden");
39
- let S = null;
40
- function C(e) {
41
- e.skipped ? v("off-screen") : y("off-screen");
42
- }
43
- function w() {
44
- if (S) return;
45
- let t = e.parentElement;
46
- t && (S = t, t.addEventListener("contentvisibilityautostatechange", C));
47
- }
48
- function T() {
49
- S?.removeEventListener("contentvisibilityautostatechange", C), S = null;
50
- }
51
- let E = null;
52
- function D(e) {
53
- e.preventDefault(), cancelAnimationFrame(s), s = 0, u = null, l = null;
54
- }
55
- function O() {
56
- f || (k(), o() && g());
57
- }
58
- function k() {
59
- let t = e.getContext("webgl2", r ?? void 0);
60
- if (!t) throw Error("[useWebGLCanvas] WebGL2 unavailable");
61
- l = t, u = n(l), u.resize(), E || (E = new ResizeObserver(() => u?.resize()), E.observe(e));
62
- }
63
- function A() {
64
- d || f || (e.addEventListener("webglcontextlost", D, !1), e.addEventListener("webglcontextrestored", O, !1), k(), w(), d = !0, c = performance.now(), o() && (s = requestAnimationFrame(h)));
65
- }
66
- function j(e) {
67
- d || A(), u?.frame(e);
68
- }
69
- function M() {
70
- f = !0, cancelAnimationFrame(s), s = 0, b && document.removeEventListener("visibilitychange", x), p?.removeEventListener("change", _), T(), e.removeEventListener("webglcontextlost", D, !1), e.removeEventListener("webglcontextrestored", O, !1), E?.disconnect(), E = null, u?.teardown?.(), u = null, l?.getExtension("WEBGL_lose_context")?.loseContext(), l = null, a.clear();
71
- }
72
- return t.mode === "capture" && A(), {
73
- arm: A,
74
- suspend: v,
75
- resume: y,
76
- wake: g,
77
- renderAt: j,
78
- dispose: M,
79
- get gl() {
80
- return l;
81
- },
82
- get reducedMotion() {
83
- return m;
84
- }
85
- };
86
- }
87
- //#endregion
88
- //#region src/composables/glass/webgl/compile.ts
89
- function a(e, t, n, r = "[glass-ui:webgl]") {
90
- let i = e.createShader(t);
91
- if (e.shaderSource(i, n), e.compileShader(i), !e.getShaderParameter(i, e.COMPILE_STATUS)) {
92
- let t = e.getShaderInfoLog(i) ?? "unknown";
93
- throw e.deleteShader(i), Error(`${r} shader compile failed:\n${t}`);
94
- }
95
- return i;
96
- }
97
- function o(e, t, n, r = "[glass-ui:webgl]") {
98
- let i = e.createProgram();
99
- if (e.attachShader(i, t), e.attachShader(i, n), e.linkProgram(i), !e.getProgramParameter(i, e.LINK_STATUS)) {
100
- let t = e.getProgramInfoLog(i) ?? "unknown";
101
- throw e.deleteProgram(i), Error(`${r} program link failed:\n${t}`);
102
- }
103
- return i;
104
- }
105
- //#endregion
106
- export { t as a, r as i, o as n, e as o, i as r, n as s, a as t };
@@ -1,129 +0,0 @@
1
- import { t as e } from "./cn-DJXf4yaB.js";
2
- import { t } from "./_plugin-vue_export-helper-C1je1s0u.js";
3
- import { t as n } from "./useTouchGate-CS5Csc2h.js";
4
- import { i as r } from "./dockContext-spUj_-E5.js";
5
- import { Fragment as i, computed as a, createBlock as o, createElementBlock as s, createVNode as c, defineComponent as l, mergeProps as u, onBeforeUnmount as d, openBlock as f, renderList as p, unref as m, useTemplateRef as h, watch as g, withCtx as _ } from "vue";
6
- import { SliderRange as v, SliderRoot as y, SliderThumb as b, SliderTrack as x, useForwardPropsEmits as S } from "reka-ui";
7
- import { cva as C } from "class-variance-authority";
8
- //#endregion
9
- //#region src/components/ui/slider/Slider.vue
10
- var w = /* @__PURE__ */ t(/* @__PURE__ */ l({
11
- __name: "Slider",
12
- props: {
13
- defaultValue: {},
14
- modelValue: {},
15
- disabled: { type: Boolean },
16
- orientation: {},
17
- dir: {},
18
- inverted: { type: Boolean },
19
- min: {},
20
- max: {},
21
- step: {},
22
- minStepsBetweenThumbs: {},
23
- thumbAlignment: {},
24
- asChild: { type: Boolean },
25
- as: {},
26
- name: {},
27
- required: { type: Boolean },
28
- class: { type: [
29
- Boolean,
30
- null,
31
- String,
32
- Object,
33
- Array
34
- ] },
35
- variant: {},
36
- size: {},
37
- keepDockOpen: { type: Boolean }
38
- },
39
- emits: ["update:modelValue", "valueCommit"],
40
- setup(t, { emit: l }) {
41
- let C = t, w = l, E = a(() => C.variant ?? "standard"), D = a(() => C.size ?? "md"), O = a(() => C.keepDockOpen ?? !0), k = S(a(() => {
42
- let { class: e, variant: t, size: n, keepDockOpen: r, ...i } = C;
43
- return E.value === "spectrum" && !i.thumbAlignment && (i.thumbAlignment = "contain"), i;
44
- }), w), A = r(), j = !1;
45
- function M() {
46
- !O.value || j || (A?.keepOpen(), j = !0);
47
- }
48
- function N() {
49
- j &&= (A?.release(), !1);
50
- }
51
- function P() {
52
- if (M(), typeof window > "u") return;
53
- let e = () => {
54
- N(), window.removeEventListener("pointerup", e), window.removeEventListener("pointercancel", e);
55
- };
56
- window.addEventListener("pointerup", e), window.addEventListener("pointercancel", e);
57
- }
58
- let F = h("sliderRootRef"), I = n();
59
- function L() {
60
- let e = F.value;
61
- return e ? e instanceof HTMLElement ? e : e.$el ?? null : null;
62
- }
63
- function R(e) {
64
- let t = L(), n = e.touches[0];
65
- !t || !n || I.handleTouchStart(t, n.clientY) || (e.preventDefault(), e.stopPropagation());
66
- }
67
- function z(e) {
68
- I.handleScrollCheck(e);
69
- }
70
- function B() {
71
- I.handleTouchEnd();
72
- }
73
- g(I.isActive, (e) => {
74
- e ? M() : N();
75
- }), d(N);
76
- let V = a(() => A?.held.value === !0), H = a(() => I.isActive.value);
77
- return (n, r) => (f(), o(m(y), u({
78
- ref_key: "sliderRootRef",
79
- ref: F,
80
- class: m(e)(m(T)({
81
- variant: E.value,
82
- size: D.value
83
- }), C.class),
84
- "data-variant": E.value,
85
- "data-size": D.value,
86
- "data-held": V.value || void 0,
87
- "data-touch-active": H.value || void 0
88
- }, m(k), {
89
- onPointerdown: P,
90
- onTouchstart: R,
91
- onTouchmove: z,
92
- onTouchend: B
93
- }), {
94
- default: _(() => [c(m(x), { class: "slider-track" }, {
95
- default: _(() => [c(m(v), { class: "slider-range" })]),
96
- _: 1
97
- }), (f(!0), s(i, null, p(t.modelValue, (e, t) => (f(), o(m(b), {
98
- key: t,
99
- "aria-label": n.$attrs["aria-label"] ?? void 0,
100
- class: "slider-thumb"
101
- }, null, 8, ["aria-label"]))), 128))]),
102
- _: 1
103
- }, 16, [
104
- "class",
105
- "data-variant",
106
- "data-size",
107
- "data-held",
108
- "data-touch-active"
109
- ]));
110
- }
111
- }), [["__scopeId", "data-v-d91b5dad"]]), T = C("glass-slider focus-ring relative flex w-full touch-none select-none items-center transition-colors", {
112
- variants: {
113
- variant: {
114
- standard: "",
115
- spectrum: ""
116
- },
117
- size: {
118
- sm: "[--slider-track-height:0.25rem] [--slider-thumb-size:0.75rem]",
119
- md: "[--slider-track-height:0.375rem] [--slider-thumb-size:1rem]",
120
- lg: "[--slider-track-height:0.75rem] [--slider-thumb-size:1.5rem]"
121
- }
122
- },
123
- defaultVariants: {
124
- variant: "standard",
125
- size: "md"
126
- }
127
- });
128
- //#endregion
129
- export { w as n, T as t };
@@ -1,21 +0,0 @@
1
- //#region src/composables/motion/useViewTransition.ts
2
- function e() {
3
- return typeof document < "u" && typeof document.startViewTransition == "function";
4
- }
5
- function t(e, t) {
6
- let n = typeof document > "u" ? void 0 : document;
7
- if (!n || typeof n.startViewTransition != "function") return e(), {
8
- finished: Promise.resolve(),
9
- transitioned: !1
10
- };
11
- let r = t?.types && t.types.length > 0 ? n.startViewTransition({
12
- update: () => e(),
13
- types: t.types
14
- }) : n.startViewTransition(() => e());
15
- return r.ready?.catch(() => {}), {
16
- finished: r.finished.then(() => void 0, () => void 0),
17
- transitioned: !0
18
- };
19
- }
20
- //#endregion
21
- export { e as n, t };
@@ -1,35 +0,0 @@
1
- //#region src/utils/moveBefore.ts
2
- function e(e, t, n) {
3
- let r = e;
4
- typeof r.moveBefore == "function" ? r.moveBefore(t, n) : e.insertBefore(t, n);
5
- }
6
- function t() {
7
- return typeof Element < "u" && "moveBefore" in Element.prototype;
8
- }
9
- //#endregion
10
- //#region src/composables/motion/supportsCssTimeline.ts
11
- function n(e, t) {
12
- return typeof CSS > "u" || typeof CSS.supports != "function" ? !1 : CSS.supports("animation-timeline", e) && !CSS.supports("animation-timeline", t);
13
- }
14
- function r() {
15
- return n("scroll()", "gl-not-a-real-timeline");
16
- }
17
- function i() {
18
- return n("view()", "gl-not-a-real-timeline");
19
- }
20
- //#endregion
21
- //#region src/utils/platformSupport.ts
22
- function a() {
23
- return typeof globalThis.scheduler?.postTask == "function";
24
- }
25
- //#endregion
26
- //#region src/composables/motion/vReveal.ts
27
- function o(e, t) {
28
- e.setAttribute("data-reveal", t.arg === "fade" ? "fade" : ""), e.style.setProperty("--d", String(t.value ?? 0));
29
- }
30
- var s = {
31
- mounted: o,
32
- updated: o
33
- };
34
- //#endregion
35
- export { e as a, i, a as n, t as o, r, s as t };
File without changes