@mkbabb/glass-ui 4.0.1 → 4.1.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 (459) hide show
  1. package/dist/{CardAction-CW7a0m8M.js → CardAction-8whJrLWt.js} +23 -8
  2. package/dist/{CommandShortcut-DvZNQ_HF.js → CommandShortcut-D3yxgHNn.js} +23 -12
  3. package/dist/{ConfiguratorRow-BR4l-ixA.js → ConfiguratorRow-CaP7U3ZA.js} +11 -11
  4. package/dist/ContextMenuContent-B3ZsheLV.js +90 -0
  5. package/dist/{ContextMenuSubContent-xol4sD2q.js → ContextMenuSubContent-DDRID3qC.js} +15 -15
  6. package/dist/{DataTable-CuKwF7wr.js → DataTable-Bc9kUtu_.js} +2 -2
  7. package/dist/{DialogContent-DcKK8k9i.js → DialogContent-6JtTB5x2.js} +8 -5
  8. package/dist/DialogFooter-9phqcRIS.js +80 -0
  9. package/dist/DialogScrollContent-TTuovQst.js +93 -0
  10. package/dist/HoverCardContent-Bel1gdLZ.js +88 -0
  11. package/dist/{IconChip-BTD-nay5.js → IconChip-DhbdGdFQ.js} +1 -1
  12. package/dist/{IconTooltip-Bl8gFZ8d.js → IconTooltip-B0zimd2H.js} +1 -1
  13. package/dist/Input-Cg9DF62r.js +57 -0
  14. package/dist/{Notification-VUwexFUf.js → Notification-CphK7AAm.js} +3 -3
  15. package/dist/NumberFieldContent-D8cXeyO4.js +140 -0
  16. package/dist/PagerDots-Cjx96la-.js +98 -0
  17. package/dist/{SelectScrollDownButton-CrA8F0iV.js → SelectScrollDownButton-DAKCBEdW.js} +62 -57
  18. package/dist/{SelectSeparator-DXswVdRz.js → SelectSeparator-C2UGOkXF.js} +1 -1
  19. package/dist/Separator-DQcwC2TR.js +44 -0
  20. package/dist/Switch-B8RscmRu.js +49 -0
  21. package/dist/{Toaster-Bw4xR8xV.js → Toaster-D9qIHjBI.js} +1 -1
  22. package/dist/{ToggleGroupItem-pEM9vIhs.js → ToggleGroupItem-BLtr3TJq.js} +2 -2
  23. package/dist/TooltipProvider-BJ_Y5EGX.js +109 -0
  24. package/dist/animated-digit.js +1 -1
  25. package/dist/api/index.d.ts +15 -32
  26. package/dist/api/types-extra.d.ts +31 -0
  27. package/dist/api.js +1 -1
  28. package/dist/aurora.js +579 -251
  29. package/dist/border-progress.js +49 -57
  30. package/dist/{button-DYCUa-tH.js → button-5dY1Dvhd.js} +13 -14
  31. package/dist/button.js +1 -1
  32. package/dist/canvas.js +2 -3
  33. package/dist/card.js +1 -1
  34. package/dist/carousel.js +20 -20
  35. package/dist/color-Cs0-oxYL.js +116 -0
  36. package/dist/color.js +2 -2
  37. package/dist/command.js +1 -1
  38. package/dist/completion-seal.d.ts +1 -0
  39. package/dist/completion-seal.js +89 -0
  40. package/dist/components/custom/aurora/Aurora.vue.d.ts +10 -5
  41. package/dist/components/custom/aurora/composables/color.d.ts +13 -0
  42. package/dist/components/custom/aurora/composables/frameLoop.d.ts +9 -0
  43. package/dist/components/custom/aurora/composables/runtime.d.ts +12 -0
  44. package/dist/components/custom/aurora/composables/uniformBridgeWGPU.d.ts +11 -2
  45. package/dist/components/custom/aurora/composables/wgpuSetup.d.ts +8 -0
  46. package/dist/components/custom/aurora/constants/presets.d.ts +18 -0
  47. package/dist/components/custom/aurora/constants/renderMode.d.ts +16 -8
  48. package/dist/components/custom/aurora/constants/shaders/aurora-mediums.wgsl.d.ts +1 -0
  49. package/dist/components/custom/aurora/constants/shaders/aurora.wgsl.d.ts +1 -1
  50. package/dist/components/custom/border-progress/composables/spectrum-walk.d.ts +25 -0
  51. package/dist/components/custom/border-progress/composables/useBorderSpectrum.d.ts +14 -18
  52. package/dist/components/custom/border-progress/index.d.ts +1 -1
  53. package/dist/components/custom/completion-seal/CompletionSeal.vue.d.ts +21 -0
  54. package/dist/components/custom/completion-seal/composables/useCompletionSeal.d.ts +37 -0
  55. package/dist/components/custom/completion-seal/constants.d.ts +46 -0
  56. package/dist/components/custom/completion-seal/index.d.ts +4 -0
  57. package/dist/components/custom/concentric/composables/concentricGLSetup.d.ts +7 -0
  58. package/dist/components/custom/concentric/composables/concentricWGPUSetup.d.ts +9 -0
  59. package/dist/components/custom/concentric/composables/ringField.d.ts +57 -16
  60. package/dist/components/custom/concentric/composables/uniformBridgeWGPU.d.ts +2 -1
  61. package/dist/components/custom/concentric/composables/useConcentric.d.ts +4 -4
  62. package/dist/components/custom/concentric/constants.d.ts +30 -6
  63. package/dist/components/custom/concentric/index.d.ts +2 -2
  64. package/dist/components/custom/concentric/shaders/concentric.glsl.d.ts +2 -2
  65. package/dist/components/custom/concentric/shaders/concentric.wgsl.d.ts +1 -1
  66. package/dist/components/custom/confirm-dialog/ConfirmDialog.vue.d.ts +3 -3
  67. package/dist/components/custom/constellation/Constellation.vue.d.ts +5 -4
  68. package/dist/components/custom/constellation/composables/constellationGLSetup.d.ts +10 -0
  69. package/dist/components/custom/constellation/composables/constellationWGPUSetup.d.ts +19 -0
  70. package/dist/components/custom/constellation/composables/uniformBridgeWGPU.d.ts +66 -0
  71. package/dist/components/custom/constellation/composables/useConstellation.d.ts +3 -10
  72. package/dist/components/custom/constellation/constants.d.ts +33 -0
  73. package/dist/components/custom/constellation/constellationField.d.ts +31 -1
  74. package/dist/components/custom/constellation/constellationInteraction.d.ts +23 -14
  75. package/dist/components/custom/constellation/constellationRender.d.ts +25 -0
  76. package/dist/components/custom/constellation/constellationTypes.d.ts +38 -0
  77. package/dist/components/custom/constellation/constellationWell.d.ts +15 -0
  78. package/dist/components/custom/constellation/index.d.ts +5 -5
  79. package/dist/components/custom/constellation/shaders/constellation-lines.glsl.d.ts +2 -0
  80. package/dist/components/custom/constellation/shaders/constellation-lines.wgsl.d.ts +1 -0
  81. package/dist/components/custom/constellation/shaders/constellation-points.glsl.d.ts +2 -0
  82. package/dist/components/custom/constellation/shaders/constellation-points.wgsl.d.ts +1 -0
  83. package/dist/components/custom/deck/DeckPager.vue.d.ts +29 -0
  84. package/dist/components/custom/deck/composables/useDeck.d.ts +27 -0
  85. package/dist/components/custom/deck/composables/useDeckKeyboard.d.ts +25 -0
  86. package/dist/components/custom/deck/composables/useDeckSpring.d.ts +22 -0
  87. package/dist/components/custom/deck/constants.d.ts +14 -0
  88. package/dist/components/custom/deck/index.d.ts +8 -0
  89. package/dist/components/custom/dock/DockIconButton.vue.d.ts +12 -0
  90. package/dist/components/custom/dock/DockStack.vue.d.ts +65 -0
  91. package/dist/components/custom/dock/GlassDock.vue.d.ts +4 -2
  92. package/dist/components/custom/dock/composables/dockMorphMeasure.d.ts +80 -0
  93. package/dist/components/custom/dock/composables/index.d.ts +2 -0
  94. package/dist/components/custom/dock/composables/useDockSearch.d.ts +85 -0
  95. package/dist/components/custom/dock/composables/useDockShellProps.d.ts +11 -0
  96. package/dist/components/custom/dock/constants.d.ts +18 -14
  97. package/dist/components/custom/dock/index.d.ts +5 -2
  98. package/dist/components/custom/dot-flow-field/DotFlowField.vue.d.ts +15 -11
  99. package/dist/components/custom/dot-flow-field/composables/flowField.d.ts +48 -6
  100. package/dist/components/custom/dot-flow-field/composables/uniformBridgeWGPU.d.ts +23 -8
  101. package/dist/components/custom/dot-flow-field/composables/useDotFlowField.d.ts +6 -5
  102. package/dist/components/custom/dot-flow-field/composables/useFlowParticles.d.ts +18 -5
  103. package/dist/components/custom/dot-flow-field/constants.d.ts +42 -21
  104. package/dist/components/custom/dot-flow-field/index.d.ts +2 -2
  105. package/dist/components/custom/dot-flow-field/shaders/flow-field.compute.wgsl.d.ts +1 -1
  106. package/dist/components/custom/dot-flow-field/shaders/flow-field.glsl.d.ts +4 -20
  107. package/dist/components/custom/dot-flow-field/shaders/flow-field.render.wgsl.d.ts +1 -1
  108. package/dist/components/custom/dot-matrix/DotMatrix.vue.d.ts +43 -0
  109. package/dist/components/custom/dot-matrix/composables/dotMatrixField.d.ts +89 -0
  110. package/dist/components/custom/dot-matrix/composables/uniformBridgeWGPU.d.ts +52 -0
  111. package/dist/components/custom/dot-matrix/composables/useDotMatrix.d.ts +34 -0
  112. package/dist/components/custom/dot-matrix/composables/useDotSphere.d.ts +27 -0
  113. package/dist/components/custom/dot-matrix/constants.d.ts +58 -0
  114. package/dist/components/custom/dot-matrix/index.d.ts +5 -0
  115. package/dist/components/custom/dot-matrix/shaders/dot-matrix.glsl.d.ts +4 -0
  116. package/dist/components/custom/dot-matrix/shaders/dot-matrix.wgsl.d.ts +1 -0
  117. package/dist/components/custom/easing/EasingPicker.vue.d.ts +2 -2
  118. package/dist/components/custom/easing/composables/useEasingPicker.d.ts +5 -0
  119. package/dist/components/custom/expandable-container/ExpandableContainer.vue.d.ts +11 -0
  120. package/dist/components/custom/fourier-field/FourierField.vue.d.ts +40 -47
  121. package/dist/components/custom/fourier-field/composables/fourierFieldGLSetup.d.ts +15 -0
  122. package/dist/components/custom/fourier-field/composables/fourierFieldWGPUSetup.d.ts +20 -0
  123. package/dist/components/custom/fourier-field/composables/uniformBridgeWGPU.d.ts +41 -0
  124. package/dist/components/custom/fourier-field/composables/useFourierField.d.ts +40 -37
  125. package/dist/components/custom/fourier-field/constants.d.ts +61 -4
  126. package/dist/components/custom/fourier-field/index.d.ts +23 -18
  127. package/dist/components/custom/fourier-field/shaders/fourier-field.compute.wgsl.d.ts +1 -0
  128. package/dist/components/custom/fourier-field/shaders/fourier-field.glsl.d.ts +4 -0
  129. package/dist/components/custom/fourier-field/shaders/fourier-field.render.wgsl.d.ts +1 -0
  130. package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +9 -1
  131. package/dist/components/custom/goo-blob/constants.d.ts +1 -1
  132. package/dist/components/custom/goo-blob/index.d.ts +1 -1
  133. package/dist/components/custom/goo-blob/shaders/metaball-noise.wgsl.d.ts +1 -0
  134. package/dist/components/custom/goo-blob/shaders/metaball-palette.wgsl.d.ts +1 -0
  135. package/dist/components/custom/goo-blob/shaders/metaball-uniforms.glsl.d.ts +1 -1
  136. package/dist/components/custom/goo-blob/shaders/metaball.wgsl.d.ts +1 -1
  137. package/dist/components/custom/goo-blob/types.d.ts +36 -0
  138. package/dist/components/custom/goo-dot-matrix/GooDotMatrix.vue.d.ts +49 -0
  139. package/dist/components/custom/goo-dot-matrix/composables/gooDotLattice.d.ts +24 -0
  140. package/dist/components/custom/goo-dot-matrix/composables/gooDotSetup.d.ts +50 -0
  141. package/dist/components/custom/goo-dot-matrix/composables/uniformBridgeWGPU.d.ts +35 -0
  142. package/dist/components/custom/goo-dot-matrix/composables/useGooDotMatrix.d.ts +31 -0
  143. package/dist/components/custom/goo-dot-matrix/constants.d.ts +76 -0
  144. package/dist/components/custom/goo-dot-matrix/index.d.ts +5 -0
  145. package/dist/components/custom/goo-dot-matrix/shaders/goo-dot.frag.d.ts +11 -0
  146. package/dist/components/custom/goo-dot-matrix/shaders/goo-dot.wgsl.d.ts +3 -0
  147. package/dist/components/custom/labeled-field/LabeledField.vue.d.ts +21 -2
  148. package/dist/components/custom/metric-stack/MetricRow.vue.d.ts +15 -0
  149. package/dist/components/custom/pager-dots/PagerDots.vue.d.ts +9 -0
  150. package/dist/components/custom/pager-dots/index.d.ts +2 -0
  151. package/dist/components/custom/pager-dots/pagerWindow.d.ts +9 -0
  152. package/dist/components/custom/paper-grid/PaperGrid.vue.d.ts +42 -0
  153. package/dist/components/custom/paper-grid/composables/paperGrid.d.ts +90 -0
  154. package/dist/components/custom/paper-grid/composables/paperGridGLSetup.d.ts +16 -0
  155. package/dist/components/custom/paper-grid/composables/paperGridWGPUSetup.d.ts +19 -0
  156. package/dist/components/custom/paper-grid/composables/uniformBridgeWGPU.d.ts +16 -0
  157. package/dist/components/custom/paper-grid/composables/usePaperGrid.d.ts +31 -0
  158. package/dist/components/custom/paper-grid/constants.d.ts +57 -0
  159. package/dist/components/custom/paper-grid/index.d.ts +5 -0
  160. package/dist/components/custom/paper-grid/shaders/paper-grid.glsl.d.ts +4 -0
  161. package/dist/components/custom/paper-grid/shaders/paper-grid.wgsl.d.ts +1 -0
  162. package/dist/components/custom/search/FuzzySearch.vue.d.ts +8 -2
  163. package/dist/components/custom/search/SearchBar.vue.d.ts +8 -0
  164. package/dist/components/custom/search/index.d.ts +2 -0
  165. package/dist/components/custom/search/searchVariants.d.ts +19 -0
  166. package/dist/components/custom/selectable-chip/SelectableChip.vue.d.ts +50 -0
  167. package/dist/components/custom/selectable-chip/index.d.ts +2 -0
  168. package/dist/components/custom/selectable-chip/selectableChipVariants.d.ts +23 -0
  169. package/dist/components/custom/split-chars/SplitChars.vue.d.ts +39 -0
  170. package/dist/components/custom/split-chars/index.d.ts +1 -0
  171. package/dist/components/custom/tabs/SegmentedTabs.vue.d.ts +8 -6
  172. package/dist/components/custom/tabs/constants.d.ts +20 -2
  173. package/dist/components/custom/watercolor-dot/WatercolorDot.vue.d.ts +29 -16
  174. package/dist/components/custom/watercolor-dot/useWatercolorBlob.d.ts +10 -5
  175. package/dist/components/ui/_shared/index.d.ts +2 -0
  176. package/dist/components/ui/_shared/useControlSize.d.ts +46 -0
  177. package/dist/components/ui/button/index.d.ts +1 -1
  178. package/dist/components/ui/card/Card.vue.d.ts +45 -0
  179. package/dist/components/ui/card/index.d.ts +1 -1
  180. package/dist/components/ui/carousel/CarouselNext.vue.d.ts +1 -1
  181. package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +1 -1
  182. package/dist/components/ui/command/CommandDialog.vue.d.ts +9 -3
  183. package/dist/components/ui/command/CommandList.vue.d.ts +3 -0
  184. package/dist/components/ui/context-menu/ContextMenuContent.vue.d.ts +5 -1
  185. package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +4 -0
  186. package/dist/components/ui/hover-card/HoverCardContent.vue.d.ts +3 -0
  187. package/dist/components/ui/input/Input.vue.d.ts +3 -0
  188. package/dist/components/ui/number-field/NumberFieldInput.vue.d.ts +6 -1
  189. package/dist/components/ui/select/SelectContent.vue.d.ts +3 -0
  190. package/dist/components/ui/switch/Switch.vue.d.ts +2 -0
  191. package/dist/components/ui/textarea/Textarea.vue.d.ts +3 -0
  192. package/dist/components/ui/tooltip/TooltipContent.vue.d.ts +3 -0
  193. package/dist/composables/color/index.d.ts +2 -0
  194. package/dist/composables/color/useAccentTone.d.ts +34 -0
  195. package/dist/composables/glass/useVizChoreography.d.ts +123 -0
  196. package/dist/composables/glass/webgl/createCanvasLifecycle.d.ts +10 -0
  197. package/dist/composables/glass/webgl/shaders/flow.wgsl.d.ts +1 -0
  198. package/dist/composables/glass/webgpu/index.d.ts +1 -1
  199. package/dist/composables/glass/webgpu/useGpuSubstrate.d.ts +28 -7
  200. package/dist/composables/glass/webgpu/useWebGPUCanvas.d.ts +1 -0
  201. package/dist/composables/glass/webgpu/webgpuDevice.d.ts +42 -0
  202. package/dist/composables/motion/core/index.d.ts +3 -0
  203. package/dist/composables/motion/scrollReader.d.ts +25 -0
  204. package/dist/composables/motion/springPresets.d.ts +20 -1
  205. package/dist/composables/motion/useCharStagger.d.ts +44 -0
  206. package/dist/composables/motion/useDockCtaReceive.d.ts +31 -6
  207. package/dist/composables/motion/useScrollChrome.d.ts +58 -0
  208. package/dist/composables/motion/useScrollTrigger.d.ts +67 -0
  209. package/dist/composables/motion/useSpringPress.d.ts +5 -5
  210. package/dist/composables/motion/useStaggerReveal.d.ts +24 -0
  211. package/dist/composables/sidebar/index.d.ts +4 -1
  212. package/dist/composables/sidebar/types.d.ts +68 -3
  213. package/dist/composables/sidebar/useClickDelegate.d.ts +4 -0
  214. package/dist/composables/sidebar/useLazyLoader.d.ts +5 -0
  215. package/dist/composables/sidebar/useScrollTo.d.ts +5 -0
  216. package/dist/composables/virtual/index.d.ts +4 -0
  217. package/dist/composables/virtual/useVirtualSectionWindow.d.ts +72 -0
  218. package/dist/composables/virtual/useWindowedStore.d.ts +43 -0
  219. package/dist/composables/virtual/virtualSectionLayout.d.ts +103 -0
  220. package/dist/concentric.js +495 -221
  221. package/dist/configurator.js +2 -2
  222. package/dist/confirm-dialog.js +62 -47
  223. package/dist/constellation.js +635 -235
  224. package/dist/context-menu.js +2 -2
  225. package/dist/controls.js +1 -1
  226. package/dist/createCanvasLifecycle-Gh45Ce-p.js +93 -0
  227. package/dist/dark.js +1 -1
  228. package/dist/data-table.js +1 -1
  229. package/dist/deck.d.ts +1 -0
  230. package/dist/deck.js +105 -0
  231. package/dist/dialog.js +4 -3
  232. package/dist/dock.js +602 -458
  233. package/dist/dot-flow-field.js +580 -290
  234. package/dist/dot-matrix.d.ts +1 -0
  235. package/dist/dot-matrix.js +630 -0
  236. package/dist/dotMatrixField-D_x9_1qq.js +48 -0
  237. package/dist/{dropdown-menu-CofSZuk8.js → dropdown-menu-aJmV5SqE.js} +83 -79
  238. package/dist/dropdown-menu.js +1 -1
  239. package/dist/easing.js +188 -176
  240. package/dist/expandable-container.js +42 -20
  241. package/dist/fading-scroll.js +1 -1
  242. package/dist/flow.glsl-B2P7e0MT.js +4 -0
  243. package/dist/forms.js +62 -60
  244. package/dist/fourier-field.js +825 -178
  245. package/dist/fourier-math.js +1 -1
  246. package/dist/glass-ui.css +1 -1
  247. package/dist/glass-ui.js +145 -104
  248. package/dist/goo-blob.js +171 -1228
  249. package/dist/goo-dot-matrix.d.ts +1 -0
  250. package/dist/goo-dot-matrix.js +591 -0
  251. package/dist/handmark.js +1 -1
  252. package/dist/hover-card.js +1 -1
  253. package/dist/hover-popover.js +1 -1
  254. package/dist/icon-chip.js +1 -1
  255. package/dist/icon-tooltip.js +1 -1
  256. package/dist/index.d.ts +2 -0
  257. package/dist/instrument-chassis.js +1 -1
  258. package/dist/keyboard.js +1 -1
  259. package/dist/labeled-field.js +70 -60
  260. package/dist/metric-cell.js +1 -1
  261. package/dist/metric-stack.js +11 -2
  262. package/dist/motion-core.js +54 -32
  263. package/dist/motion-curves.js +11 -1
  264. package/dist/motion.js +46 -111
  265. package/dist/notification.js +1 -1
  266. package/dist/number-field.js +1 -1
  267. package/dist/pager-dots.js +2 -91
  268. package/dist/paper-backdrop.js +1 -1
  269. package/dist/paper-grid.d.ts +1 -0
  270. package/dist/paper-grid.js +788 -0
  271. package/dist/{presets-BW2b-fr1.js → presets-CvOUqtdY.js} +3 -3
  272. package/dist/{procedural-color.glsl-CIFsJhwI.js → procedural-color.wgsl-m7Zgv35j.js} +2 -2
  273. package/dist/progress.js +1 -1
  274. package/dist/pulse.js +1 -1
  275. package/dist/reactive.js +1 -1
  276. package/dist/{useCanvas2D-B8w_E3Rr.js → resolveCanvasColor-yPyIpJt9.js} +12 -2
  277. package/dist/scrollReader-DI1NWxUw.js +42 -0
  278. package/dist/scrolling-text.js +1 -1
  279. package/dist/search.js +160 -304
  280. package/dist/select.js +3 -3
  281. package/dist/selectable-chip.d.ts +1 -0
  282. package/dist/selectable-chip.js +65 -0
  283. package/dist/separator.js +1 -1
  284. package/dist/{sheet-tZMg0E0w.js → sheet-B2flBfLH.js} +2 -2
  285. package/dist/sheet.js +1 -1
  286. package/dist/sidebar.js +216 -114
  287. package/dist/slider.js +1 -1
  288. package/dist/sortable-list.js +1 -1
  289. package/dist/spectrum-walk-BVzA7Biz.js +33 -0
  290. package/dist/{springPresets-CFQGQfdl.js → springPresets-Ce7OYCm9.js} +12 -6
  291. package/dist/styles/animations.css +13 -3
  292. package/dist/styles/cards.css +69 -0
  293. package/dist/styles/completion-seal.css +131 -0
  294. package/dist/styles/components.css +2 -3
  295. package/dist/styles/configurator.css +55 -0
  296. package/dist/styles/critical-partition.mjs +33 -11
  297. package/dist/styles/deferred.css +2 -0
  298. package/dist/styles/dock/cta-seat.css +87 -0
  299. package/dist/styles/dock/density.css +153 -0
  300. package/dist/styles/dock/layers.css +55 -7
  301. package/dist/styles/dock/morph-bridge.css +54 -18
  302. package/dist/styles/dock/morph.css +41 -33
  303. package/dist/styles/dock/overflow.css +12 -0
  304. package/dist/styles/dock/search.css +68 -0
  305. package/dist/styles/dock/shape.css +124 -0
  306. package/dist/styles/dock/shell.css +23 -5
  307. package/dist/styles/dock/stack-rail.css +264 -0
  308. package/dist/styles/dock-controls/dark-mode-toggle.css +17 -4
  309. package/dist/styles/dock-controls/icon-button.css +14 -0
  310. package/dist/styles/dock.css +11 -1
  311. package/dist/styles/glass/accent-tone.css +66 -0
  312. package/dist/styles/glass/control-surfaces.css +167 -0
  313. package/dist/styles/glass/ladder.css +67 -17
  314. package/dist/styles/glass/rim.css +19 -9
  315. package/dist/styles/glass/surfaces.css +69 -148
  316. package/dist/styles/glass.css +10 -0
  317. package/dist/styles/index.css +15 -0
  318. package/dist/styles/scroll-chrome.css +123 -0
  319. package/dist/styles/scroll-driven.css +38 -0
  320. package/dist/styles/segmented-tabs.css +50 -14
  321. package/dist/styles/theme/bridges.css +22 -0
  322. package/dist/styles/theme/radius.css +18 -1
  323. package/dist/styles/tokens/color-radius.css +13 -3
  324. package/dist/styles/tokens/dark-arm.css +39 -6
  325. package/dist/styles/tokens/glass-deep.css +28 -3
  326. package/dist/styles/tokens/glass-fx.css +44 -1
  327. package/dist/styles/tokens/glass.css +91 -31
  328. package/dist/styles/tokens/light-dark.css +1 -1
  329. package/dist/styles/tokens/offsets.css +27 -0
  330. package/dist/styles/tokens/property-regs.css +133 -0
  331. package/dist/styles/tokens/scale-paper.css +73 -29
  332. package/dist/styles/tokens/scheme-motion.css +44 -6
  333. package/dist/styles/tokens/sizing-config.css +110 -0
  334. package/dist/styles/tokens/sizing.css +55 -104
  335. package/dist/styles/tokens.css +5 -0
  336. package/dist/styles/typography/semantic.css +18 -5
  337. package/dist/styles/utilities/a11y-overrides.css +20 -5
  338. package/dist/styles/utilities/base-misc.css +52 -0
  339. package/dist/styles/utilities/btn.css +14 -3
  340. package/dist/styles/utilities/components.css +31 -6
  341. package/dist/styles/utilities/metal.css +26 -0
  342. package/dist/switch.js +1 -1
  343. package/dist/tabs.js +8 -8
  344. package/dist/timeline.js +1 -1
  345. package/dist/toast.js +1 -1
  346. package/dist/toggle-chip.js +10 -10
  347. package/dist/toggle-group.js +1 -1
  348. package/dist/tooltip.js +1 -1
  349. package/dist/typewriter.js +1 -1
  350. package/dist/uniformBridgeWGPU-CtAKl45L.js +1204 -0
  351. package/dist/{useAnimatedNumber-BfUq2bUM.js → useAnimatedNumber-CLrxicG9.js} +1 -1
  352. package/dist/{useConfiguratorState-DNlOh6c8.js → useConfiguratorState-4xblKfwd.js} +25 -24
  353. package/dist/useControlSize-SH1UmJCi.js +9 -0
  354. package/dist/useDockCtaReceive-DfFkmgL1.js +82 -0
  355. package/dist/{useDragMorph-DgxnsVJz.js → useDragMorph-BUgAC-zK.js} +4 -4
  356. package/dist/useFuzzySearch-DIhcYtcw.js +177 -0
  357. package/dist/useGpuSubstrate-4pTcp6mX.js +294 -0
  358. package/dist/{useLiquidPress-kfb4KX79.js → useLiquidPress-BooG97RY.js} +2 -2
  359. package/dist/usePointerVelocityField-QLsy3_kv.js +91 -0
  360. package/dist/useScrollChrome-D66AVP7C.js +258 -0
  361. package/dist/{useSpringMount-q1amq1SJ.js → useSpringMount-BWDnKIwh.js} +1 -1
  362. package/dist/useSpringPress-B1-Czp-V.js +36 -0
  363. package/dist/useViewTransition-CUI1nAgn.js +95 -0
  364. package/dist/{vendor-CKmzio-i.js → vendor-B2qOlYY3.js} +24 -11
  365. package/dist/virtual.d.ts +1 -0
  366. package/dist/virtual.js +225 -0
  367. package/dist/watercolor-dot.js +116 -73
  368. package/package.json +127 -7
  369. package/src/styles/animations.css +13 -3
  370. package/src/styles/cards.css +69 -0
  371. package/src/styles/completion-seal.css +131 -0
  372. package/src/styles/configurator.css +55 -0
  373. package/src/styles/critical-partition.mjs +33 -11
  374. package/src/styles/dock/cta-seat.css +87 -0
  375. package/src/styles/dock/density.css +153 -0
  376. package/src/styles/dock/layers.css +55 -7
  377. package/src/styles/dock/morph-bridge.css +54 -18
  378. package/src/styles/dock/morph.css +41 -33
  379. package/src/styles/dock/overflow.css +12 -0
  380. package/src/styles/dock/search.css +68 -0
  381. package/src/styles/dock/shape.css +124 -0
  382. package/src/styles/dock/shell.css +23 -5
  383. package/src/styles/dock/stack-rail.css +264 -0
  384. package/src/styles/dock-controls/dark-mode-toggle.css +17 -4
  385. package/src/styles/dock-controls/icon-button.css +14 -0
  386. package/src/styles/dock.css +11 -1
  387. package/src/styles/glass/accent-tone.css +66 -0
  388. package/src/styles/glass/control-surfaces.css +167 -0
  389. package/src/styles/glass/ladder.css +67 -17
  390. package/src/styles/glass/rim.css +19 -9
  391. package/src/styles/glass/surfaces.css +69 -148
  392. package/src/styles/glass.css +10 -0
  393. package/src/styles/index.css +15 -0
  394. package/src/styles/scroll-chrome.css +123 -0
  395. package/src/styles/scroll-driven.css +38 -0
  396. package/src/styles/segmented-tabs.css +50 -14
  397. package/src/styles/theme/bridges.css +22 -0
  398. package/src/styles/theme/radius.css +18 -1
  399. package/src/styles/tokens/color-radius.css +13 -3
  400. package/src/styles/tokens/dark-arm.css +39 -6
  401. package/src/styles/tokens/glass-deep.css +28 -3
  402. package/src/styles/tokens/glass-fx.css +44 -1
  403. package/src/styles/tokens/glass.css +91 -31
  404. package/src/styles/tokens/light-dark.css +1 -1
  405. package/src/styles/tokens/offsets.css +27 -0
  406. package/src/styles/tokens/property-regs.css +133 -0
  407. package/src/styles/tokens/scale-paper.css +73 -29
  408. package/src/styles/tokens/scheme-motion.css +44 -6
  409. package/src/styles/tokens/sizing-config.css +110 -0
  410. package/src/styles/tokens/sizing.css +55 -104
  411. package/src/styles/tokens.css +5 -0
  412. package/src/styles/typography/semantic.css +18 -5
  413. package/src/styles/utilities/a11y-overrides.css +20 -5
  414. package/src/styles/utilities/base-misc.css +52 -0
  415. package/src/styles/utilities/btn.css +14 -3
  416. package/src/styles/utilities/components.css +31 -6
  417. package/src/styles/utilities/metal.css +26 -0
  418. package/dist/ContextMenuContent-uWnVxDab.js +0 -85
  419. package/dist/DialogFooter-BZNX5aVr.js +0 -165
  420. package/dist/HoverCardContent-b2uaAMRR.js +0 -83
  421. package/dist/Input-h9v5LeXf.js +0 -55
  422. package/dist/NumberFieldContent-Cq7EzX-U.js +0 -138
  423. package/dist/Separator-pKF0oA4M.js +0 -37
  424. package/dist/Switch-CwYNf8bo.js +0 -47
  425. package/dist/TooltipProvider-rzvnXz60.js +0 -104
  426. package/dist/color-DweYl7pE.js +0 -86
  427. package/dist/components/custom/constellation/composables/useConstellationPointer.d.ts +0 -35
  428. package/dist/components/custom/constellation/constellationDraw.d.ts +0 -30
  429. package/dist/components/custom/dock/DockRail.vue.d.ts +0 -89
  430. package/dist/createCanvasLifecycle-CHD5XrDW.js +0 -82
  431. package/dist/procedural-color.wgsl-CToRHugY.js +0 -224
  432. package/dist/resolveCanvasColor-CUyHr5Uu.js +0 -11
  433. package/dist/styles/dock/rail-extend.css +0 -397
  434. package/dist/usePointerVelocityField-JbRd5CrM.js +0 -137
  435. package/dist/useRAFLoop-UYa4zoiN.js +0 -109
  436. package/dist/useSpringPress-BsqPr7FJ.js +0 -34
  437. package/src/styles/dock/rail-extend.css +0 -397
  438. /package/dist/{FadingScroll-DI6hQhT9.js → FadingScroll-DLRbH5Xr.js} +0 -0
  439. /package/dist/{HoverPopover-CbqbNwgU.js → HoverPopover-BcIxvyqZ.js} +0 -0
  440. /package/dist/{InstrumentChassis-Bx0F_q5g.js → InstrumentChassis-CxsHSyMj.js} +0 -0
  441. /package/dist/{PaperBackdrop-Vf3tlpvd.js → PaperBackdrop-CqwjnfLv.js} +0 -0
  442. /package/dist/{Progress-DctG61iZ.js → Progress-CnqB7gLm.js} +0 -0
  443. /package/dist/{ScrollingText-yOpBzFYq.js → ScrollingText-CTZbA_cG.js} +0 -0
  444. /package/dist/{SelectGroup-DwwjicPY.js → SelectGroup-BFiod7X2.js} +0 -0
  445. /package/dist/{compile-CQEFRTmx.js → compile-nZ1xVYTp.js} +0 -0
  446. /package/dist/{constants-BPOqYJAm.js → constants--C2DkLW8.js} +0 -0
  447. /package/dist/{math-BINYmg5z.js → math-Eb0w3LqU.js} +0 -0
  448. /package/dist/{prng-Za0Rmgag.js → prng-B-d9eYX8.js} +0 -0
  449. /package/dist/{slider-DVb4HXU-.js → slider-2A0rPn79.js} +0 -0
  450. /package/dist/{useGlobalDark-C28t0VWJ.js → useGlobalDark-CmjB9E32.js} +0 -0
  451. /package/dist/{useIntersectionPause-Bj4sPkMh.js → useIntersectionPause-Dbozzjgm.js} +0 -0
  452. /package/dist/{useInterval-CvK1mL92.js → useInterval-CNdua40W.js} +0 -0
  453. /package/dist/{useKeyboardShortcuts-BXWXOZ-9.js → useKeyboardShortcuts-BPRp33Im.js} +0 -0
  454. /package/dist/{useLiquidFlex-mZPMiNXh.js → useLiquidFlex-UmA6LMZu.js} +0 -0
  455. /package/dist/{useScrollProgress-D7bYU2RK.js → useScrollProgress-c3yxmH6a.js} +0 -0
  456. /package/dist/{useSortable-DHjtZSEd.js → useSortable-BVqlJRBR.js} +0 -0
  457. /package/dist/{useTextHighlight-CWEi25hf.js → useTextHighlight-NmBM5V_4.js} +0 -0
  458. /package/dist/{vReveal-Czsb7zQC.js → vReveal-D9k0jADx.js} +0 -0
  459. /package/dist/{vSpecular-CQFmLNzA.js → vSpecular-EX7loENl.js} +0 -0
package/dist/search.js CHANGED
@@ -1,170 +1,81 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
- import { c as t, l as n, n as r, t as i } from "./vendor-CKmzio-i.js";
2
+ import { c as t, l as n, n as r, t as i } from "./vendor-B2qOlYY3.js";
3
3
  import { n as a } from "./badge-D9XWW4GT.js";
4
- import { n as o } from "./button-DYCUa-tH.js";
5
- import { n as s, t as c } from "./DialogContent-DcKK8k9i.js";
4
+ import { n as o } from "./button-5dY1Dvhd.js";
5
+ import { n as s, t as c } from "./DialogContent-6JtTB5x2.js";
6
6
  import { n as l, r as u, t as d } from "./PopoverContent-DL7E6vJP.js";
7
- import { t as f } from "./useTextHighlight-CWEi25hf.js";
8
- import { Fragment as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createTextVNode as y, createVNode as b, defineComponent as x, nextTick as S, normalizeClass as C, onScopeDispose as w, openBlock as T, ref as E, renderList as D, renderSlot as O, resolveDynamicComponent as k, toDisplayString as A, unref as j, watch as M, withCtx as N } from "vue";
9
- //#region src/components/custom/search/composables/fuzzySearchIndex.ts
10
- function P(e, t) {
11
- let n = e.length, r = t.length;
12
- if (n === 0) return {
13
- score: 0,
14
- matches: []
15
- };
16
- if (n > r) return null;
17
- let i = [], a = 0, o = 0, s = -2;
18
- for (let c = 0; c < r && a < n; c++) {
19
- if (e[a] !== t[c]) continue;
20
- i.push(c);
21
- let n = 1;
22
- if (s === c - 1 && (n += 5), c === 0) n += 8;
23
- else {
24
- let e = t[c - 1];
25
- " -_./\\:()".includes(e) ? n += 7 : t[c] >= "A" && t[c] <= "Z" && e >= "a" && e <= "z" && (n += 6);
26
- }
27
- a === c && (n += 3), o += n, s = c, a++;
28
- }
29
- return a < n ? null : (o -= Math.max(0, (r - n) * .1), {
30
- score: o,
31
- matches: i
32
- });
33
- }
34
- function F(e, t) {
35
- if (!t) return null;
36
- let n = 0, r = [];
37
- for (let i of e) {
38
- let e = P(i, t);
39
- if (!e) return null;
40
- n += e.score;
41
- for (let t of e.matches) r.push(t);
42
- }
43
- return {
44
- score: n,
45
- matches: r
46
- };
47
- }
48
- function I(e, t) {
49
- let n = 0, r = [], i = [
50
- [t._lc.label, 12],
51
- [t._lc.type, 10],
52
- [t._lc.text, 3]
53
- ];
54
- for (let [a, o] of i) {
55
- if (!a) continue;
56
- let i = F(e, a);
57
- i && i.score * o > n && (n = i.score * o, r = a === t._lc.label ? i.matches : []);
58
- }
59
- return n <= 0 ? null : {
60
- score: n,
61
- matches: r
62
- };
63
- }
64
- function L(e) {
65
- return e.map((e) => ({
66
- item: e,
67
- _lc: {
68
- label: e.label.toLowerCase(),
69
- text: e.text.toLowerCase(),
70
- type: e.type?.toLowerCase() ?? ""
71
- }
72
- }));
73
- }
74
- var R = /* @__PURE__ */ new WeakMap();
75
- function z(e) {
76
- let t = R.get(e);
77
- return t || (t = /* @__PURE__ */ new Map(), R.set(e, t)), t;
78
- }
79
- function B(e, t, n = 30) {
80
- let r = t.toLowerCase().trim();
81
- if (!r) return [];
82
- let i = z(e), a = i.get(r);
83
- if (a) return a.slice(0, n);
84
- i.size > 200 && i.clear();
85
- let o = r.split(/\s+/).filter(Boolean);
86
- if (o.length === 0) return [];
87
- let s = e;
88
- if (r.length > 1) {
89
- let e = r.slice(0, -1), t = i.get(e);
90
- t && (s = t.map((e) => ({
91
- item: e.item,
92
- _lc: {
93
- label: e.item.label.toLowerCase(),
94
- text: e.item.text.toLowerCase(),
95
- type: e.item.type?.toLowerCase() ?? ""
96
- }
97
- })));
98
- }
99
- let c = [];
100
- for (let e of s) {
101
- let t = I(o, e);
102
- t && c.push({
103
- item: e.item,
104
- score: t.score,
105
- matchIndices: t.matches
106
- });
107
- }
108
- return c.sort((e, t) => t.score - e.score), i.set(r, c), c.slice(0, n);
109
- }
110
- function V(e) {
111
- if (e) {
112
- R.delete(e);
113
- return;
114
- }
115
- R = /* @__PURE__ */ new WeakMap();
116
- }
117
- //#endregion
118
- //#region src/components/custom/search/FuzzySearch.vue?vue&type=script&setup=true&lang.ts
119
- var H = ["placeholder", "value"], U = ["onClick", "onMouseenter"], W = { class: "fuzzy-search-label flex-1 min-w-0 truncate text-foreground/85" }, G = { class: "flex items-center gap-2 border-b border-border/50 px-3.5 py-3" }, K = ["placeholder", "value"], q = ["onClick", "onMouseenter"], J = { class: "fuzzy-search-label flex-1 min-w-0 truncate text-base text-foreground/85" }, Y = {
7
+ import { t as f } from "./useControlSize-SH1UmJCi.js";
8
+ import { t as p } from "./useTextHighlight-NmBM5V_4.js";
9
+ import { a as m, i as h, n as g, r as _, t as v } from "./useFuzzySearch-DIhcYtcw.js";
10
+ import { Fragment as y, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createTextVNode as T, createVNode as E, defineComponent as D, nextTick as O, normalizeClass as k, openBlock as A, ref as j, renderList as M, renderSlot as N, resolveDynamicComponent as P, toDisplayString as F, unref as I, watch as L, withCtx as R } from "vue";
11
+ import { cva as z } from "class-variance-authority";
12
+ //#region src/components/custom/search/searchVariants.ts
13
+ var B = z("", {
14
+ variants: { variant: {
15
+ inline: "",
16
+ bare: "border-none bg-transparent p-0 rounded-none",
17
+ floating: "border-none bg-transparent p-0 rounded-none"
18
+ } },
19
+ defaultVariants: { variant: "inline" }
20
+ }), V = ["data-surface"], H = ["placeholder", "value"], U = [
21
+ "data-highlighted",
22
+ "onClick",
23
+ "onMouseenter"
24
+ ], W = { class: "fuzzy-search-label flex-1 min-w-0 truncate text-foreground/85" }, G = { class: "flex items-center gap-2 border-b border-border/50 [--overlay-pad-inline:1rem] [--overlay-pad-block:calc(var(--overlay-pad-inline)*1.272)] px-(--overlay-pad-inline) py-(--overlay-pad-block)" }, K = ["placeholder", "value"], q = [
25
+ "data-highlighted",
26
+ "onClick",
27
+ "onMouseenter"
28
+ ], J = { class: "fuzzy-search-label flex-1 min-w-0 truncate text-foreground/85" }, Y = {
120
29
  key: 1,
121
30
  class: "px-4 py-8 text-center text-muted-foreground/60"
122
- }, X = /* @__PURE__ */ x({
31
+ }, X = /* @__PURE__ */ D({
123
32
  __name: "FuzzySearch",
124
33
  props: {
125
34
  state: {},
126
- variant: { default: "sidebar" },
35
+ variant: { default: "inline" },
36
+ size: { default: "default" },
37
+ surface: { default: "glass" },
127
38
  placeholder: { default: "Search…" },
128
39
  typeLabel: {}
129
40
  },
130
- setup(e, { expose: x }) {
131
- let w = e, O = E(null), k = E(null), F = m({
132
- get: () => w.state.isOpen.value && !w.state.isExpanded.value && w.state.results.value.length > 0,
41
+ setup(m, { expose: g }) {
42
+ let _ = m, v = j(null), D = j(null), N = b({
43
+ get: () => _.state.isOpen.value && !_.state.isExpanded.value && _.state.results.value.length > 0,
133
44
  set: (e) => {
134
- e || w.state.close();
45
+ e || _.state.close();
135
46
  }
136
47
  });
137
- M(() => w.state.selectedIndex.value, () => {
138
- S(() => document.querySelector(".fuzzy-search-result.is-selected")?.scrollIntoView({ block: "nearest" }));
139
- }), M(() => w.state.isOpen.value, (e) => {
140
- e && S(() => O.value?.focus());
141
- }), M(() => w.state.isExpanded.value, (e) => {
142
- e && S(() => k.value?.focus());
143
- }), M([
144
- () => w.state.query.value,
145
- () => w.state.results.value,
146
- () => w.state.isExpanded.value,
147
- F
48
+ L(() => _.state.selectedIndex.value, () => {
49
+ O(() => document.querySelector(".fuzzy-search-result.is-selected")?.scrollIntoView({ block: "nearest" }));
50
+ }), L(() => _.state.isOpen.value, (e) => {
51
+ e && O(() => v.value?.focus());
52
+ }), L(() => _.state.isExpanded.value, (e) => {
53
+ e && O(() => D.value?.focus());
54
+ }), L([
55
+ () => _.state.query.value,
56
+ () => _.state.results.value,
57
+ () => _.state.isExpanded.value,
58
+ N
148
59
  ], () => {
149
- Z(w.state.isExpanded.value ? B.value : F.value ? z.value : null);
60
+ te(_.state.isExpanded.value ? Q.value : N.value ? Z.value : null);
150
61
  }, { flush: "post" });
151
- function I() {
152
- O.value?.focus();
62
+ function P() {
63
+ v.value?.focus();
153
64
  }
154
- x({ focus: I });
155
- function L(e) {
65
+ g({ focus: P });
66
+ function z(e) {
156
67
  return e.item.label || e.item.text.slice(0, 120);
157
68
  }
158
- function R(e) {
159
- return w.typeLabel ? w.typeLabel(e.item) : e.item.type ?? "";
69
+ function X(e) {
70
+ return _.typeLabel ? _.typeLabel(e.item) : e.item.type ?? "";
160
71
  }
161
- let z = E(null), B = E(null), V = f("glass-search-mark");
162
- function X(e, t) {
72
+ let Z = j(null), Q = j(null), $ = p("glass-search-mark");
73
+ function ee(e, t) {
163
74
  let n = t.toLowerCase().trim().split(/\s+/).filter(Boolean);
164
75
  if (n.length === 0) return [];
165
76
  let r = e.toLowerCase(), i = /* @__PURE__ */ new Set();
166
77
  for (let e of n) {
167
- let t = P(e, r);
78
+ let t = h(e, r);
168
79
  if (t) for (let e of t.matches) i.add(e);
169
80
  }
170
81
  let a = [];
@@ -177,173 +88,184 @@ var H = ["placeholder", "value"], U = ["onClick", "onMouseenter"], W = { class:
177
88
  }
178
89
  return a;
179
90
  }
180
- function Z(e) {
91
+ function te(e) {
181
92
  if (!e) {
182
- V.clear();
93
+ $.clear();
183
94
  return;
184
95
  }
185
- S(() => V.setFromMatches(e, w.state.query.value, X));
96
+ O(() => $.setFromMatches(e, _.state.query.value, ee));
186
97
  }
187
- return (f, m) => (T(), _("div", { class: C(["fuzzy-search relative", `fuzzy-search--${e.variant}`]) }, [b(j(u), {
188
- open: F.value,
189
- "onUpdate:open": m[6] ||= (e) => F.value = e
98
+ return (p, h) => (A(), C("div", { class: k(["fuzzy-search relative", `fuzzy-search--${m.variant}`]) }, [E(I(u), {
99
+ open: N.value,
100
+ "onUpdate:open": h[6] ||= (e) => N.value = e
190
101
  }, {
191
- default: N(() => [b(j(l), { "as-child": "" }, {
192
- default: N(() => [v("div", { class: C(["input-bar", e.variant === "floating" && "!border-none !bg-transparent !p-0 !rounded-none"]) }, [
193
- b(j(r), { class: "h-3.5 w-3.5 shrink-0 text-muted-foreground/70" }),
194
- v("input", {
102
+ default: R(() => [E(I(l), { "as-child": "" }, {
103
+ default: R(() => [w("div", {
104
+ class: k(["input-bar", I(e)(I(f)(m.size), I(B)({ variant: m.variant }))]),
105
+ "data-surface": m.surface
106
+ }, [
107
+ E(I(r), { class: "size-(--search-icon-size) shrink-0 text-muted-foreground/70" }),
108
+ w("input", {
195
109
  ref_key: "inputRef",
196
- ref: O,
110
+ ref: v,
197
111
  type: "text",
198
- class: "input-bar-field text-sm",
199
- placeholder: e.placeholder,
200
- value: e.state.query.value,
201
- onInput: m[0] ||= (t) => e.state.query.value = t.target.value,
202
- onKeydown: m[1] ||= (...t) => e.state.onKeydown && e.state.onKeydown(...t),
203
- onFocus: m[2] ||= (t) => e.state.isOpen.value = !0
112
+ class: "input-bar-field",
113
+ placeholder: m.placeholder,
114
+ value: m.state.query.value,
115
+ onInput: h[0] ||= (e) => m.state.query.value = e.target.value,
116
+ onKeydown: h[1] ||= (...e) => m.state.onKeydown && m.state.onKeydown(...e),
117
+ onFocus: h[2] ||= (e) => m.state.isOpen.value = !0
204
118
  }, null, 40, H),
205
- e.state.query.value && e.state.results.value.length > 0 ? (T(), h(j(o), {
119
+ m.state.query.value && m.state.results.value.length > 0 ? (A(), x(I(o), {
206
120
  key: 0,
207
121
  type: "button",
208
122
  variant: "ghost",
209
123
  size: "icon",
210
- class: "!h-6 !w-6",
211
- title: e.state.isExpanded.value ? "Collapse" : "Expand",
212
- onClick: m[3] ||= (t) => e.state.toggleExpanded()
124
+ class: "size-(--search-button-size)",
125
+ title: m.state.isExpanded.value ? "Collapse" : "Expand",
126
+ onClick: h[3] ||= (e) => m.state.toggleExpanded()
213
127
  }, {
214
- default: N(() => [e.state.isExpanded.value ? (T(), h(j(t), {
128
+ default: R(() => [m.state.isExpanded.value ? (A(), x(I(t), {
215
129
  key: 1,
216
- class: "h-3 w-3"
217
- })) : (T(), h(j(n), {
130
+ class: "size-(--search-icon-size)"
131
+ })) : (A(), x(I(n), {
218
132
  key: 0,
219
- class: "h-3 w-3"
133
+ class: "size-(--search-icon-size)"
220
134
  }))]),
221
135
  _: 1
222
- }, 8, ["title"])) : g("", !0),
223
- e.state.query.value ? (T(), h(j(o), {
136
+ }, 8, ["title"])) : S("", !0),
137
+ m.state.query.value ? (A(), x(I(o), {
224
138
  key: 1,
225
139
  type: "button",
226
140
  variant: "ghost",
227
141
  size: "icon",
228
- class: "!h-6 !w-6",
142
+ class: "size-(--search-button-size)",
229
143
  title: "Clear search",
230
- onClick: m[4] ||= (t) => e.state.close()
144
+ onClick: h[4] ||= (e) => m.state.close()
231
145
  }, {
232
- default: N(() => [b(j(i), { class: "h-3 w-3" })]),
146
+ default: R(() => [E(I(i), { class: "size-(--search-icon-size)" })]),
233
147
  _: 1
234
- })) : g("", !0)
235
- ], 2)]),
148
+ })) : S("", !0)
149
+ ], 10, V)]),
236
150
  _: 1
237
- }), b(j(d), {
151
+ }), E(I(d), {
238
152
  align: "start",
239
153
  "side-offset": 4,
240
154
  portal: !1,
241
155
  class: "w-(--reka-popover-trigger-width) max-h-[50vh] overflow-y-auto overscroll-contain p-1",
242
- onOpenAutoFocus: m[5] ||= (e) => e.preventDefault()
156
+ onOpenAutoFocus: h[5] ||= (e) => e.preventDefault()
243
157
  }, {
244
- default: N(() => [v("div", {
158
+ default: R(() => [w("div", {
245
159
  ref_key: "inlineListRef",
246
- ref: z
247
- }, [(T(!0), _(p, null, D(e.state.results.value, (t, n) => (T(), _("button", {
248
- key: `${t.item.id}-${t.item.type}-${n}`,
160
+ ref: Z
161
+ }, [(A(!0), C(y, null, M(m.state.results.value, (e, t) => (A(), C("button", {
162
+ key: `${e.item.id}-${e.item.type}-${t}`,
249
163
  type: "button",
250
- class: C(["fuzzy-search-result interactive-item flex w-full items-baseline gap-1.5 px-2 py-1.5 text-left text-sm", { "is-selected bg-muted/50": n === e.state.selectedIndex.value }]),
251
- onClick: (n) => e.state.selectResult(t),
252
- onMouseenter: (t) => e.state.selectedIndex.value = n
253
- }, [R(t) ? (T(), h(j(a), {
164
+ class: k(["fuzzy-search-result glass-menu-row interactive-item flex w-full items-baseline gap-1.5 px-2 py-1.5 text-left text-(length:--search-result-text)", { "is-selected": t === m.state.selectedIndex.value }]),
165
+ "data-highlighted": t === m.state.selectedIndex.value ? "" : void 0,
166
+ onClick: (t) => m.state.selectResult(e),
167
+ onMouseenter: (e) => m.state.selectedIndex.value = t
168
+ }, [X(e) ? (A(), x(I(a), {
254
169
  key: 0,
255
170
  variant: "secondary",
256
- class: "shrink-0 text-[0.6rem] font-bold uppercase tracking-wider"
171
+ class: "shrink-0 text-(length:--search-result-text-secondary) font-bold uppercase tracking-wider"
257
172
  }, {
258
- default: N(() => [y(A(R(t)), 1)]),
173
+ default: R(() => [T(F(X(e)), 1)]),
259
174
  _: 2
260
- }, 1024)) : g("", !0), v("span", W, A(L(t)), 1)], 42, U))), 128))], 512)]),
175
+ }, 1024)) : S("", !0), w("span", W, F(z(e)), 1)], 42, U))), 128))], 512)]),
261
176
  _: 1
262
177
  })]),
263
178
  _: 1
264
- }, 8, ["open"]), b(j(s), {
265
- open: e.state.isExpanded.value,
266
- "onUpdate:open": m[11] ||= (t) => e.state.isExpanded.value = t
179
+ }, 8, ["open"]), E(I(s), {
180
+ open: m.state.isExpanded.value,
181
+ "onUpdate:open": h[11] ||= (e) => m.state.isExpanded.value = e
267
182
  }, {
268
- default: N(() => [b(j(c), {
269
- surface: "opaque",
270
- class: "!max-w-[36rem] !top-[12vh] !translate-y-0 max-h-[70vh] !p-0 overflow-hidden flex flex-col gap-0",
271
- onOpenAutoFocus: m[10] ||= (e) => e.preventDefault()
183
+ default: R(() => [E(I(c), {
184
+ surface: m.surface,
185
+ class: "max-w-(--search-modal-width) max-h-[70vh] [--overlay-pad-inline:0] [--overlay-pad-block:0] [--search-modal-width:36rem] overflow-hidden flex flex-col gap-0",
186
+ onOpenAutoFocus: h[10] ||= (e) => e.preventDefault()
272
187
  }, {
273
- default: N(() => [
274
- v("div", G, [
275
- b(j(r), { class: "h-4 w-4 shrink-0 text-muted-foreground/70" }),
276
- v("input", {
188
+ default: R(() => [
189
+ w("div", G, [
190
+ E(I(r), { class: "size-(--search-icon-size) shrink-0 text-muted-foreground/70" }),
191
+ w("input", {
277
192
  ref_key: "modalInputRef",
278
- ref: k,
193
+ ref: D,
279
194
  type: "text",
280
- class: "input-bar-field flex-1 text-base",
281
- placeholder: e.placeholder,
282
- value: e.state.query.value,
283
- onInput: m[7] ||= (t) => e.state.query.value = t.target.value,
284
- onKeydown: m[8] ||= (...t) => e.state.onKeydown && e.state.onKeydown(...t)
195
+ class: "input-bar-field flex-1 text-(length:--search-result-text)",
196
+ placeholder: m.placeholder,
197
+ value: m.state.query.value,
198
+ onInput: h[7] ||= (e) => m.state.query.value = e.target.value,
199
+ onKeydown: h[8] ||= (...e) => m.state.onKeydown && m.state.onKeydown(...e)
285
200
  }, null, 40, K),
286
- b(j(o), {
201
+ E(I(o), {
287
202
  type: "button",
288
203
  variant: "ghost",
289
204
  size: "icon",
290
- class: "!h-7 !w-7",
205
+ class: "size-(--search-button-size)",
291
206
  title: "Collapse",
292
- onClick: m[9] ||= (t) => e.state.toggleExpanded()
207
+ onClick: h[9] ||= (e) => m.state.toggleExpanded()
293
208
  }, {
294
- default: N(() => [b(j(t), { class: "h-3.5 w-3.5" })]),
209
+ default: R(() => [E(I(t), { class: "size-(--search-icon-size)" })]),
295
210
  _: 1
296
211
  })
297
212
  ]),
298
- e.state.results.value.length > 0 ? (T(), _("div", {
213
+ m.state.results.value.length > 0 ? (A(), C("div", {
299
214
  key: 0,
300
215
  ref_key: "modalListRef",
301
- ref: B,
216
+ ref: Q,
302
217
  class: "flex-1 min-h-0 overflow-y-auto overscroll-contain p-1.5"
303
- }, [(T(!0), _(p, null, D(e.state.results.value, (t, n) => (T(), _("button", {
304
- key: `modal-${t.item.id}-${t.item.type}-${n}`,
218
+ }, [(A(!0), C(y, null, M(m.state.results.value, (e, t) => (A(), C("button", {
219
+ key: `modal-${e.item.id}-${e.item.type}-${t}`,
305
220
  type: "button",
306
- class: C(["fuzzy-search-result interactive-item flex w-full items-baseline gap-1.5 px-2.5 py-2 text-left", { "is-selected bg-muted/50": n === e.state.selectedIndex.value }]),
307
- onClick: (n) => e.state.selectResult(t),
308
- onMouseenter: (t) => e.state.selectedIndex.value = n
309
- }, [R(t) ? (T(), h(j(a), {
221
+ class: k(["fuzzy-search-result glass-menu-row interactive-item flex w-full items-baseline gap-1.5 px-2.5 py-2 text-left text-(length:--search-result-text)", { "is-selected": t === m.state.selectedIndex.value }]),
222
+ "data-highlighted": t === m.state.selectedIndex.value ? "" : void 0,
223
+ onClick: (t) => m.state.selectResult(e),
224
+ onMouseenter: (e) => m.state.selectedIndex.value = t
225
+ }, [X(e) ? (A(), x(I(a), {
310
226
  key: 0,
311
227
  variant: "secondary",
312
- class: "shrink-0 text-[0.65rem] font-bold uppercase tracking-wider"
228
+ class: "shrink-0 text-(length:--search-result-text-secondary) font-bold uppercase tracking-wider"
313
229
  }, {
314
- default: N(() => [y(A(R(t)), 1)]),
230
+ default: R(() => [T(F(X(e)), 1)]),
315
231
  _: 2
316
- }, 1024)) : g("", !0), v("span", J, A(L(t)), 1)], 42, q))), 128))], 512)) : (T(), _("div", Y, "No results")),
317
- m[12] ||= v("div", { class: "flex items-center gap-4 border-t border-border/50 px-3.5 py-2 text-mono-caption text-muted-foreground/60" }, [
318
- v("span", { class: "flex items-center gap-1" }, [
319
- v("kbd", { class: "kbd" }, "↑"),
320
- v("kbd", { class: "kbd" }, "↓"),
321
- y(" navigate")
232
+ }, 1024)) : S("", !0), w("span", J, F(z(e)), 1)], 42, q))), 128))], 512)) : (A(), C("div", Y, "No results")),
233
+ h[12] ||= w("div", { class: "flex items-center gap-4 border-t border-border/50 [--overlay-pad-inline:1rem] [--overlay-pad-block:calc(var(--overlay-pad-inline)*1.272)] px-(--overlay-pad-inline) py-(--overlay-pad-block) text-mono-caption text-muted-foreground/60" }, [
234
+ w("span", { class: "flex items-center gap-1" }, [
235
+ w("kbd", { class: "kbd" }, "↑"),
236
+ w("kbd", { class: "kbd" }, "↓"),
237
+ T(" navigate")
322
238
  ]),
323
- v("span", { class: "flex items-center gap-1" }, [v("kbd", { class: "kbd" }, "↵"), y(" select")]),
324
- v("span", { class: "flex items-center gap-1" }, [v("kbd", { class: "kbd" }, "esc"), y(" close")])
239
+ w("span", { class: "flex items-center gap-1" }, [w("kbd", { class: "kbd" }, "↵"), T(" select")]),
240
+ w("span", { class: "flex items-center gap-1" }, [w("kbd", { class: "kbd" }, "esc"), T(" close")])
325
241
  ], -1)
326
242
  ]),
327
243
  _: 1
328
- })]),
244
+ }, 8, ["surface"])]),
329
245
  _: 1
330
246
  }, 8, ["open"])], 2));
331
247
  }
332
- }), Z = ["value", "placeholder"], Q = /* @__PURE__ */ x({
248
+ }), Z = ["value", "placeholder"], Q = /* @__PURE__ */ D({
333
249
  __name: "SearchBar",
334
250
  props: {
335
251
  modelValue: { default: "" },
336
252
  placeholder: { default: "Search…" },
337
253
  icon: {},
338
- tag: { default: "div" }
254
+ tag: { default: "div" },
255
+ size: { default: "default" },
256
+ surface: { default: "glass" },
257
+ variant: { default: "inline" }
339
258
  },
340
259
  emits: ["update:modelValue"],
341
260
  setup(t, { expose: n, emit: i }) {
342
- let a = i, o = E(null);
343
- return n({ inputRef: o }), (n, i) => (T(), h(k(t.tag), { class: C(j(e)("input-bar", n.$attrs.class)) }, {
344
- default: N(() => [
345
- (T(), h(k(t.icon ?? j(r)), { class: "w-3.5 h-3.5 text-muted-foreground shrink-0" })),
346
- v("input", {
261
+ let a = i, o = j(null);
262
+ return n({ inputRef: o }), (n, i) => (A(), x(P(t.tag), {
263
+ class: k(I(e)("input-bar", I(f)(t.size), I(B)({ variant: t.variant }), n.$attrs.class)),
264
+ "data-surface": t.surface
265
+ }, {
266
+ default: R(() => [
267
+ (A(), x(P(t.icon ?? I(r)), { class: "size-(--search-icon-size) text-muted-foreground shrink-0" })),
268
+ w("input", {
347
269
  ref_key: "inputRef",
348
270
  ref: o,
349
271
  value: t.modelValue,
@@ -351,77 +273,11 @@ var H = ["placeholder", "value"], U = ["onClick", "onMouseenter"], W = { class:
351
273
  class: "input-bar-field",
352
274
  onInput: i[0] ||= (e) => a("update:modelValue", e.target.value)
353
275
  }, null, 40, Z),
354
- O(n.$slots, "default")
276
+ N(n.$slots, "default")
355
277
  ]),
356
278
  _: 3
357
- }, 8, ["class"]));
279
+ }, 8, ["class", "data-surface"]));
358
280
  }
359
281
  });
360
282
  //#endregion
361
- //#region src/components/custom/search/composables/useFuzzySearch.ts
362
- function $(e) {
363
- let t = typeof e.items == "function" ? e.items : () => e.items, n = e.debounceMs ?? 120, r = e.maxResults ?? 30, i = E(""), a = E(!1), o = E(!1), s = E(0), c = E(""), l = m(() => t()), u = m(() => L(l.value)), d;
364
- function f(e = d) {
365
- e !== void 0 && (clearTimeout(e), d === e && (d = void 0));
366
- }
367
- M(i, (e, t, r) => {
368
- if (f(), !e || n <= 0) {
369
- c.value = e;
370
- return;
371
- }
372
- let i = setTimeout(() => {
373
- d === i && (c.value = e, d = void 0);
374
- }, n);
375
- d = i, r(() => f(i));
376
- }), M(l, () => {
377
- f(), c.value = i.value, s.value = 0;
378
- }, { deep: !0 });
379
- let p = m(() => B(u.value, c.value, r));
380
- M(p, () => {
381
- s.value = 0;
382
- });
383
- function h(t) {
384
- e.onSelect?.(t), g();
385
- }
386
- function g() {
387
- a.value = !1, o.value = !1, f(), i.value = "", c.value = "", s.value = 0, V(u.value);
388
- }
389
- function _() {
390
- a.value = !0;
391
- }
392
- function v() {
393
- o.value = !o.value;
394
- }
395
- function y(e) {
396
- switch (e.key) {
397
- case "ArrowDown":
398
- e.preventDefault(), s.value < p.value.length - 1 && s.value++;
399
- break;
400
- case "ArrowUp":
401
- e.preventDefault(), s.value > 0 && s.value--;
402
- break;
403
- case "Enter":
404
- e.preventDefault(), p.value[s.value] && h(p.value[s.value]);
405
- break;
406
- case "Escape":
407
- e.preventDefault(), o.value ? o.value = !1 : g();
408
- break;
409
- }
410
- }
411
- return w(() => {
412
- f(), V(u.value);
413
- }, !0), {
414
- query: i,
415
- results: p,
416
- isOpen: a,
417
- isExpanded: o,
418
- selectedIndex: s,
419
- selectResult: h,
420
- close: g,
421
- open: _,
422
- toggleExpanded: v,
423
- onKeydown: y
424
- };
425
- }
426
- //#endregion
427
- export { X as FuzzySearch, Q as SearchBar, L as buildIndex, V as clearSearchCache, P as fuzzyMatch, B as searchIndex, $ as useFuzzySearch };
283
+ export { X as FuzzySearch, Q as SearchBar, g as buildIndex, _ as clearSearchCache, h as fuzzyMatch, B as searchFieldVariants, m as searchIndex, v as useFuzzySearch };
package/dist/select.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./SelectScrollDownButton-CrA8F0iV.js";
2
- import { t as s } from "./SelectGroup-DwwjicPY.js";
3
- import { n as c, t as l } from "./SelectSeparator-DXswVdRz.js";
1
+ import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./SelectScrollDownButton-DAKCBEdW.js";
2
+ import { t as s } from "./SelectGroup-BFiod7X2.js";
3
+ import { n as c, t as l } from "./SelectSeparator-C2UGOkXF.js";
4
4
  export { a as Select, t as SelectContent, s as SelectGroup, i as SelectItem, c as SelectLabel, o as SelectScrollDownButton, n as SelectScrollUpButton, l as SelectSeparator, e as SelectTrigger, r as SelectValue };
@@ -0,0 +1 @@
1
+ export * from "./components/custom/selectable-chip";