@weasel-js/ui 1.5.1 → 1.6.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 (511) hide show
  1. package/dist/chunks/ActionBar-CYvfmEz0.js +57 -0
  2. package/dist/chunks/ActionBar-CYvfmEz0.js.map +1 -0
  3. package/dist/chunks/{Badge-Bf8Rd1R6.js → Badge-DZ0lFs14.js} +755 -738
  4. package/dist/chunks/Badge-DZ0lFs14.js.map +1 -0
  5. package/dist/chunks/{BandEditor-D8I5Uun-.js → BandEditor-D-nVrVO4.js} +44 -44
  6. package/dist/chunks/BandEditor-D-nVrVO4.js.map +1 -0
  7. package/dist/chunks/Button-Dyp31jMt.js +111 -0
  8. package/dist/chunks/Button-Dyp31jMt.js.map +1 -0
  9. package/dist/chunks/ButtonBar-smZzFuEo.js +46 -0
  10. package/dist/chunks/ButtonBar-smZzFuEo.js.map +1 -0
  11. package/dist/chunks/Callout-xLjnx7Mp.js +119 -0
  12. package/dist/chunks/Callout-xLjnx7Mp.js.map +1 -0
  13. package/dist/chunks/{Checkbox-BZZsPaVF.js → Checkbox-ChZz30Ds.js} +5 -5
  14. package/dist/chunks/Checkbox-ChZz30Ds.js.map +1 -0
  15. package/dist/chunks/Code-v4tDWuuN.js +24 -0
  16. package/dist/chunks/Code-v4tDWuuN.js.map +1 -0
  17. package/dist/chunks/{ColorField-YVf8irfr.js → ColorField-DJSCuSJv.js} +15 -15
  18. package/dist/chunks/{ColorField-YVf8irfr.js.map → ColorField-DJSCuSJv.js.map} +1 -1
  19. package/dist/chunks/ColorModeControl-JOEiqtE0.js +47 -0
  20. package/dist/chunks/ColorModeControl-JOEiqtE0.js.map +1 -0
  21. package/dist/chunks/{ComboBox-D57tNYDD.js → ComboBox-C1JgIpML.js} +13 -13
  22. package/dist/chunks/ComboBox-C1JgIpML.js.map +1 -0
  23. package/dist/chunks/{CurveEditor-BXiMoN9d.js → CurveEditor-f1R4kSbD.js} +2 -2
  24. package/dist/chunks/{CurveEditor-BXiMoN9d.js.map → CurveEditor-f1R4kSbD.js.map} +1 -1
  25. package/dist/chunks/DataGrid-CZPrB_3a.js +152 -0
  26. package/dist/chunks/DataGrid-CZPrB_3a.js.map +1 -0
  27. package/dist/chunks/DetailList-DHaXX4TG.js +43 -0
  28. package/dist/chunks/DetailList-DHaXX4TG.js.map +1 -0
  29. package/dist/chunks/{DetentSlider-BWNSv07Z.js → DetentSlider-BYyaZha6.js} +2 -2
  30. package/dist/chunks/{DetentSlider-BWNSv07Z.js.map → DetentSlider-BYyaZha6.js.map} +1 -1
  31. package/dist/chunks/Dialog-GIvjoDQj.js +66 -0
  32. package/dist/chunks/Dialog-GIvjoDQj.js.map +1 -0
  33. package/dist/chunks/Disclosure-D79jhmh2.js +58 -0
  34. package/dist/chunks/Disclosure-D79jhmh2.js.map +1 -0
  35. package/dist/chunks/DragGhost-DcU7cOwy.js +30 -0
  36. package/dist/chunks/DragGhost-DcU7cOwy.js.map +1 -0
  37. package/dist/chunks/{DragHandleGlyph-CppAz4_8.js → DragHandleGlyph-BtBxHjZS.js} +1 -1
  38. package/dist/chunks/{DragHandleGlyph-CppAz4_8.js.map → DragHandleGlyph-BtBxHjZS.js.map} +1 -1
  39. package/dist/chunks/{Field-BNqvUJfg.js → Field-xbqRmjsI.js} +6 -6
  40. package/dist/chunks/Field-xbqRmjsI.js.map +1 -0
  41. package/dist/chunks/FillStrokeSwatch-BViKXIPx.js +111 -0
  42. package/dist/chunks/FillStrokeSwatch-BViKXIPx.js.map +1 -0
  43. package/dist/chunks/{FontFamilySelect-CO19kyOO.js → FontFamilySelect-r9TV_xIH.js} +2 -2
  44. package/dist/chunks/{FontFamilySelect-CO19kyOO.js.map → FontFamilySelect-r9TV_xIH.js.map} +1 -1
  45. package/dist/chunks/GradientEditor-BRTxHG-W.js +333 -0
  46. package/dist/chunks/GradientEditor-BRTxHG-W.js.map +1 -0
  47. package/dist/chunks/{Icon-QhLhaGFe.js → Icon-BW0qv_U7.js} +50 -21
  48. package/dist/chunks/Icon-BW0qv_U7.js.map +1 -0
  49. package/dist/chunks/InlineRange-BwGFDhpT.js +29 -0
  50. package/dist/chunks/InlineRange-BwGFDhpT.js.map +1 -0
  51. package/dist/chunks/{Input-B9Vh7ASP.js → Input-Bx2cuUbS.js} +24 -19
  52. package/dist/chunks/Input-Bx2cuUbS.js.map +1 -0
  53. package/dist/chunks/ItemList-DzJ2lK0R.js +175 -0
  54. package/dist/chunks/ItemList-DzJ2lK0R.js.map +1 -0
  55. package/dist/chunks/ItemList.module-DDUXfuZL.js +14 -0
  56. package/dist/chunks/ItemList.module-DDUXfuZL.js.map +1 -0
  57. package/dist/chunks/{Jog-BYrxbAQU.js → Jog-LPoac9s4.js} +10 -10
  58. package/dist/chunks/Jog-LPoac9s4.js.map +1 -0
  59. package/dist/chunks/{Keycaps-CGNQV2Pz.js → Keycaps-CKiKOJnJ.js} +75 -69
  60. package/dist/chunks/Keycaps-CKiKOJnJ.js.map +1 -0
  61. package/dist/chunks/LayerList-BeGrkLb9.js +427 -0
  62. package/dist/chunks/LayerList-BeGrkLb9.js.map +1 -0
  63. package/dist/chunks/ListEditor-C6zLzCsJ.js +74 -0
  64. package/dist/chunks/ListEditor-C6zLzCsJ.js.map +1 -0
  65. package/dist/chunks/MenuButton-BcdhrNGh.js +70 -0
  66. package/dist/chunks/MenuButton-BcdhrNGh.js.map +1 -0
  67. package/dist/chunks/MeshEditor-BOOIFWnz.js +87 -0
  68. package/dist/chunks/MeshEditor-BOOIFWnz.js.map +1 -0
  69. package/dist/chunks/{NumberField-CQzS6TjF.js → NumberField-C1Y7zP-a.js} +27 -22
  70. package/dist/chunks/NumberField-C1Y7zP-a.js.map +1 -0
  71. package/dist/chunks/{OptionsBar-BWaYG_OH.js → OptionsBar-DlcagPYK.js} +3 -3
  72. package/dist/chunks/{OptionsBar-BWaYG_OH.js.map → OptionsBar-DlcagPYK.js.map} +1 -1
  73. package/dist/chunks/{PaintField-BVYMu3OI.js → PaintField-B2mLRZa4.js} +20 -20
  74. package/dist/chunks/PaintField-B2mLRZa4.js.map +1 -0
  75. package/dist/chunks/{PaintInput-BzAHCKro.js → PaintInput-BFKhd83I.js} +27 -27
  76. package/dist/chunks/PaintInput-BFKhd83I.js.map +1 -0
  77. package/dist/chunks/{PatternPicker-C4OryrYi.js → PatternPicker-DdfpxoQy.js} +6 -6
  78. package/dist/chunks/PatternPicker-DdfpxoQy.js.map +1 -0
  79. package/dist/chunks/{Plot2D-Czvyt_vG.js → Plot2D-lyO7waPQ.js} +1 -1
  80. package/dist/chunks/{Plot2D-Czvyt_vG.js.map → Plot2D-lyO7waPQ.js.map} +1 -1
  81. package/dist/chunks/{PointPlotter-Xvb98GwB.js → PointPlotter-DGs9i5P-.js} +2 -2
  82. package/dist/chunks/{PointPlotter-Xvb98GwB.js.map → PointPlotter-DGs9i5P-.js.map} +1 -1
  83. package/dist/chunks/{Powerline-B_EH-7Z-.js → Powerline-DBEPceLE.js} +7 -5
  84. package/dist/chunks/Powerline-DBEPceLE.js.map +1 -0
  85. package/dist/chunks/Prefs-Ctu0H4-b.js +475 -0
  86. package/dist/chunks/Prefs-Ctu0H4-b.js.map +1 -0
  87. package/dist/chunks/Properties-Bbneh1ws.js +281 -0
  88. package/dist/chunks/Properties-Bbneh1ws.js.map +1 -0
  89. package/dist/chunks/PropertyField-CDb19d3F.js +756 -0
  90. package/dist/chunks/PropertyField-CDb19d3F.js.map +1 -0
  91. package/dist/chunks/{RadioGroup-C6xpdQNg.js → RadioGroup-BK2mD6Q0.js} +6 -6
  92. package/dist/chunks/RadioGroup-BK2mD6Q0.js.map +1 -0
  93. package/dist/chunks/{RangeSlider-CzgeGLVS.js → RangeSlider-BiRAOsTh.js} +8 -8
  94. package/dist/chunks/RangeSlider-BiRAOsTh.js.map +1 -0
  95. package/dist/chunks/{ResizeHandle-1Ey8AOij.js → ResizeHandle-Cc6EOehs.js} +9 -9
  96. package/dist/chunks/{ResizeHandle-1Ey8AOij.js.map → ResizeHandle-Cc6EOehs.js.map} +1 -1
  97. package/dist/chunks/Select-DVValBe1.js +225 -0
  98. package/dist/chunks/Select-DVValBe1.js.map +1 -0
  99. package/dist/chunks/SelectionPanel-C5LmZA7b.js +103 -0
  100. package/dist/chunks/SelectionPanel-C5LmZA7b.js.map +1 -0
  101. package/dist/chunks/{Sidebar-BlUjn8lD.js → Sidebar-DKKd4R-x.js} +4 -4
  102. package/dist/chunks/Sidebar-DKKd4R-x.js.map +1 -0
  103. package/dist/chunks/{SidebarPanel-BqHfz6VK.js → SidebarPanel-u5NsuAZY.js} +15 -19
  104. package/dist/chunks/SidebarPanel-u5NsuAZY.js.map +1 -0
  105. package/dist/chunks/{Slider-B2ywUZH6.js → Slider-BwRrWHFW.js} +58 -58
  106. package/dist/chunks/Slider-BwRrWHFW.js.map +1 -0
  107. package/dist/chunks/{StatusBar-BFt7Yw5O.js → StatusBar-CdPdmmda.js} +6 -6
  108. package/dist/chunks/StatusBar-CdPdmmda.js.map +1 -0
  109. package/dist/chunks/SwatchGrid-C-Zx2Exd.js +73 -0
  110. package/dist/chunks/SwatchGrid-C-Zx2Exd.js.map +1 -0
  111. package/dist/chunks/{Switch-Om3t3ASc.js → Switch-DxF7TsEu.js} +5 -5
  112. package/dist/chunks/Switch-DxF7TsEu.js.map +1 -0
  113. package/dist/chunks/{Tabs-EAvYywil.js → Tabs-GXEfoe3o.js} +5 -5
  114. package/dist/chunks/Tabs-GXEfoe3o.js.map +1 -0
  115. package/dist/chunks/{Timeline-BEyKaBXl.js → Timeline-SgmpQtUV.js} +128 -132
  116. package/dist/chunks/Timeline-SgmpQtUV.js.map +1 -0
  117. package/dist/chunks/{Toast-iqLDD_XZ.js → Toast-BfcljZz6.js} +15 -15
  118. package/dist/chunks/Toast-BfcljZz6.js.map +1 -0
  119. package/dist/chunks/ToggleBar-Btnl5r7F.js +80 -0
  120. package/dist/chunks/ToggleBar-Btnl5r7F.js.map +1 -0
  121. package/dist/chunks/TokenPanel-5ajHEHha.js +634 -0
  122. package/dist/chunks/TokenPanel-5ajHEHha.js.map +1 -0
  123. package/dist/chunks/{ToolButton-Dd-1T5aX.js → ToolButton-rzqlFlAc.js} +9 -9
  124. package/dist/chunks/ToolButton-rzqlFlAc.js.map +1 -0
  125. package/dist/chunks/{ToolGroup-BBI-W-Gm.js → ToolGroup-4bUBV5k6.js} +3 -3
  126. package/dist/chunks/ToolGroup-4bUBV5k6.js.map +1 -0
  127. package/dist/chunks/ToolOptionsBar-BF3TNXA3.js +85 -0
  128. package/dist/chunks/ToolOptionsBar-BF3TNXA3.js.map +1 -0
  129. package/dist/chunks/ToolPalette-Uw4PvWwa.js +83 -0
  130. package/dist/chunks/ToolPalette-Uw4PvWwa.js.map +1 -0
  131. package/dist/chunks/Tooltip-9XiJF937.js +42 -0
  132. package/dist/chunks/Tooltip-9XiJF937.js.map +1 -0
  133. package/dist/chunks/Tree-BGt6P8tI.js +203 -0
  134. package/dist/chunks/Tree-BGt6P8tI.js.map +1 -0
  135. package/dist/chunks/{createKeyframeLayer-7j7ukrSx.js → createKeyframeLayer-BzDRCrrh.js} +71 -71
  136. package/dist/chunks/{createKeyframeLayer-7j7ukrSx.js.map → createKeyframeLayer-BzDRCrrh.js.map} +1 -1
  137. package/dist/chunks/formatShortcut-BoGqUoWi.js +15 -0
  138. package/dist/chunks/formatShortcut-BoGqUoWi.js.map +1 -0
  139. package/dist/chunks/icons-DbScMMqX.js +179 -0
  140. package/dist/chunks/icons-DbScMMqX.js.map +1 -0
  141. package/dist/chunks/interactiveTarget-C7QUBaJN.js +24 -0
  142. package/dist/chunks/interactiveTarget-C7QUBaJN.js.map +1 -0
  143. package/dist/chunks/{keyGlyph-Bp0wnLHn.js → keyGlyph-CLvUHU8c.js} +1 -1
  144. package/dist/chunks/{keyGlyph-Bp0wnLHn.js.map → keyGlyph-CLvUHU8c.js.map} +1 -1
  145. package/dist/chunks/model-BQMvTLnW.js +360 -0
  146. package/dist/chunks/model-BQMvTLnW.js.map +1 -0
  147. package/dist/chunks/number-6S8IzXVt.js +89 -0
  148. package/dist/chunks/number-6S8IzXVt.js.map +1 -0
  149. package/dist/chunks/paintPreview-DPtZS4yU.js +42 -0
  150. package/dist/chunks/paintPreview-DPtZS4yU.js.map +1 -0
  151. package/dist/chunks/paintValue-Bz6AVuh3.js +18 -0
  152. package/dist/chunks/paintValue-Bz6AVuh3.js.map +1 -0
  153. package/dist/chunks/prefField-CLkhrvYl.js +197 -0
  154. package/dist/chunks/prefField-CLkhrvYl.js.map +1 -0
  155. package/dist/chunks/segmentTooltip-CAkZlW-t.js +29 -0
  156. package/dist/chunks/segmentTooltip-CAkZlW-t.js.map +1 -0
  157. package/dist/chunks/segmentedControl.module-D2nw68Yo.js +11 -0
  158. package/dist/chunks/segmentedControl.module-D2nw68Yo.js.map +1 -0
  159. package/dist/chunks/{snap-B0WQwetQ.js → snap-DC4Km8xG.js} +1 -1
  160. package/dist/chunks/{snap-B0WQwetQ.js.map → snap-DC4Km8xG.js.map} +1 -1
  161. package/dist/chunks/stance-CarrcbbP.js +17 -0
  162. package/dist/chunks/stance-CarrcbbP.js.map +1 -0
  163. package/dist/chunks/useReorderDragList-Dcezzgix.js +131 -0
  164. package/dist/chunks/useReorderDragList-Dcezzgix.js.map +1 -0
  165. package/dist/chunks/{useRovingTabIndex-Dkpf_KhN.js → useRovingTabIndex-B4uJqiKP.js} +1 -1
  166. package/dist/chunks/useRovingTabIndex-B4uJqiKP.js.map +1 -0
  167. package/dist/color/oklch.d.ts +2 -1
  168. package/dist/color/oklch.d.ts.map +1 -1
  169. package/dist/color/ramp.d.ts +38 -0
  170. package/dist/color/ramp.d.ts.map +1 -0
  171. package/dist/components/ActionBar/ActionBar.d.ts +6 -4
  172. package/dist/components/ActionBar/ActionBar.d.ts.map +1 -1
  173. package/dist/components/ActionBar/index.js +1 -1
  174. package/dist/components/Badge/Badge.d.ts +21 -7
  175. package/dist/components/Badge/Badge.d.ts.map +1 -1
  176. package/dist/components/Badge/effects/Aqua.d.ts +1 -1
  177. package/dist/components/Badge/effects/Aqua.d.ts.map +1 -1
  178. package/dist/components/Badge/index.d.ts +1 -1
  179. package/dist/components/Badge/index.d.ts.map +1 -1
  180. package/dist/components/Badge/index.js +1 -1
  181. package/dist/components/Badge/types.d.ts +6 -5
  182. package/dist/components/Badge/types.d.ts.map +1 -1
  183. package/dist/components/BandEditor/index.js +1 -1
  184. package/dist/components/Button/Button.d.ts +17 -3
  185. package/dist/components/Button/Button.d.ts.map +1 -1
  186. package/dist/components/Button/index.d.ts +1 -1
  187. package/dist/components/Button/index.d.ts.map +1 -1
  188. package/dist/components/Button/index.js +1 -1
  189. package/dist/components/ButtonBar/ButtonBar.d.ts +36 -0
  190. package/dist/components/ButtonBar/ButtonBar.d.ts.map +1 -0
  191. package/dist/components/ButtonBar/index.d.ts +3 -0
  192. package/dist/components/ButtonBar/index.d.ts.map +1 -0
  193. package/dist/components/ButtonBar/index.js +2 -0
  194. package/dist/components/Callout/Callout.d.ts +2 -5
  195. package/dist/components/Callout/Callout.d.ts.map +1 -1
  196. package/dist/components/Callout/index.d.ts +1 -1
  197. package/dist/components/Callout/index.d.ts.map +1 -1
  198. package/dist/components/Callout/index.js +1 -1
  199. package/dist/components/Checkbox/index.js +1 -1
  200. package/dist/components/Code/Code.d.ts +28 -0
  201. package/dist/components/Code/Code.d.ts.map +1 -0
  202. package/dist/components/Code/index.d.ts +3 -0
  203. package/dist/components/Code/index.d.ts.map +1 -0
  204. package/dist/components/Code/index.js +2 -0
  205. package/dist/components/ColorField/index.js +1 -1
  206. package/dist/components/ColorModeControl/ColorModeControl.d.ts +21 -0
  207. package/dist/components/ColorModeControl/ColorModeControl.d.ts.map +1 -0
  208. package/dist/components/ColorModeControl/index.d.ts +3 -0
  209. package/dist/components/ColorModeControl/index.d.ts.map +1 -0
  210. package/dist/components/ColorModeControl/index.js +2 -0
  211. package/dist/components/ComboBox/index.js +1 -1
  212. package/dist/components/CurveEditor/index.js +3 -3
  213. package/dist/components/DataGrid/DataGrid.d.ts +22 -0
  214. package/dist/components/DataGrid/DataGrid.d.ts.map +1 -1
  215. package/dist/components/DataGrid/index.js +1 -1
  216. package/dist/components/DetailList/DetailList.d.ts +36 -0
  217. package/dist/components/DetailList/DetailList.d.ts.map +1 -0
  218. package/dist/components/DetailList/index.d.ts +3 -0
  219. package/dist/components/DetailList/index.d.ts.map +1 -0
  220. package/dist/components/DetailList/index.js +2 -0
  221. package/dist/components/DetentSlider/index.js +1 -1
  222. package/dist/components/Dialog/Dialog.d.ts +8 -2
  223. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  224. package/dist/components/Dialog/index.js +1 -1
  225. package/dist/components/Disclosure/Disclosure.d.ts +25 -17
  226. package/dist/components/Disclosure/Disclosure.d.ts.map +1 -1
  227. package/dist/components/Disclosure/index.d.ts +2 -2
  228. package/dist/components/Disclosure/index.d.ts.map +1 -1
  229. package/dist/components/Disclosure/index.js +2 -2
  230. package/dist/components/DragGhost/DragGhost.d.ts +21 -0
  231. package/dist/components/DragGhost/DragGhost.d.ts.map +1 -0
  232. package/dist/components/DragGhost/index.d.ts +3 -0
  233. package/dist/components/DragGhost/index.d.ts.map +1 -0
  234. package/dist/components/DragGhost/index.js +2 -0
  235. package/dist/components/DragHandleGlyph/index.js +1 -1
  236. package/dist/components/Field/index.js +1 -1
  237. package/dist/components/FillStrokeSwatch/FillStrokeSwatch.d.ts +45 -0
  238. package/dist/components/FillStrokeSwatch/FillStrokeSwatch.d.ts.map +1 -0
  239. package/dist/components/FillStrokeSwatch/index.d.ts +3 -0
  240. package/dist/components/FillStrokeSwatch/index.d.ts.map +1 -0
  241. package/dist/components/FillStrokeSwatch/index.js +2 -0
  242. package/dist/components/FontFamilySelect/index.js +1 -1
  243. package/dist/components/GradientEditor/SceneGradientHandles.d.ts.map +1 -1
  244. package/dist/components/GradientEditor/index.js +1 -1
  245. package/dist/components/InlineRange/InlineRange.d.ts +6 -2
  246. package/dist/components/InlineRange/InlineRange.d.ts.map +1 -1
  247. package/dist/components/InlineRange/index.js +1 -1
  248. package/dist/components/Input/Input.d.ts +13 -0
  249. package/dist/components/Input/Input.d.ts.map +1 -1
  250. package/dist/components/Input/index.js +1 -1
  251. package/dist/components/ItemList/ItemList.d.ts +70 -10
  252. package/dist/components/ItemList/ItemList.d.ts.map +1 -1
  253. package/dist/components/ItemList/index.js +1 -1
  254. package/dist/components/Jog/index.js +1 -1
  255. package/dist/components/Keycaps/index.d.ts +1 -0
  256. package/dist/components/Keycaps/index.d.ts.map +1 -1
  257. package/dist/components/Keycaps/index.js +3 -3
  258. package/dist/components/Keycaps/keySpecsFromMods.d.ts +2 -0
  259. package/dist/components/Keycaps/keySpecsFromMods.d.ts.map +1 -1
  260. package/dist/components/Keycaps/keySpecsFromShortcut.d.ts +16 -0
  261. package/dist/components/Keycaps/keySpecsFromShortcut.d.ts.map +1 -0
  262. package/dist/components/LayerList/LayerList.d.ts +79 -0
  263. package/dist/components/LayerList/LayerList.d.ts.map +1 -0
  264. package/dist/components/LayerList/index.d.ts +3 -0
  265. package/dist/components/LayerList/index.d.ts.map +1 -0
  266. package/dist/components/LayerList/index.js +2 -0
  267. package/dist/components/LayerList/useSceneLayerList.d.ts +20 -0
  268. package/dist/components/LayerList/useSceneLayerList.d.ts.map +1 -0
  269. package/dist/components/ListEditor/ListEditor.d.ts +23 -0
  270. package/dist/components/ListEditor/ListEditor.d.ts.map +1 -0
  271. package/dist/components/ListEditor/index.d.ts +3 -0
  272. package/dist/components/ListEditor/index.d.ts.map +1 -0
  273. package/dist/components/ListEditor/index.js +2 -0
  274. package/dist/components/MenuButton/MenuButton.d.ts +6 -2
  275. package/dist/components/MenuButton/MenuButton.d.ts.map +1 -1
  276. package/dist/components/MenuButton/index.js +1 -1
  277. package/dist/components/MeshEditor/index.js +1 -1
  278. package/dist/components/NumberField/NumberField.d.ts +13 -0
  279. package/dist/components/NumberField/NumberField.d.ts.map +1 -1
  280. package/dist/components/NumberField/UnitField.d.ts +2 -1
  281. package/dist/components/NumberField/UnitField.d.ts.map +1 -1
  282. package/dist/components/NumberField/index.js +1 -1
  283. package/dist/components/OptionsBar/index.js +1 -1
  284. package/dist/components/PaintField/index.js +1 -1
  285. package/dist/components/PaintInput/index.js +1 -1
  286. package/dist/components/PatternPicker/index.js +1 -1
  287. package/dist/components/Plot2D/index.js +1 -1
  288. package/dist/components/PointPlotter/index.js +1 -1
  289. package/dist/components/Powerline/Powerline.d.ts +4 -3
  290. package/dist/components/Powerline/Powerline.d.ts.map +1 -1
  291. package/dist/components/Powerline/index.js +2 -2
  292. package/dist/components/Prefs/PrefsDialog.d.ts +10 -2
  293. package/dist/components/Prefs/PrefsDialog.d.ts.map +1 -1
  294. package/dist/components/Prefs/PrefsForm.d.ts +26 -25
  295. package/dist/components/Prefs/PrefsForm.d.ts.map +1 -1
  296. package/dist/components/Prefs/PrefsPane.d.ts +24 -0
  297. package/dist/components/Prefs/PrefsPane.d.ts.map +1 -0
  298. package/dist/components/Prefs/PrefsRail.d.ts +32 -0
  299. package/dist/components/Prefs/PrefsRail.d.ts.map +1 -0
  300. package/dist/components/Prefs/PrefsRow.d.ts +32 -0
  301. package/dist/components/Prefs/PrefsRow.d.ts.map +1 -0
  302. package/dist/components/Prefs/index.d.ts +5 -2
  303. package/dist/components/Prefs/index.d.ts.map +1 -1
  304. package/dist/components/Prefs/index.js +3 -3
  305. package/dist/components/Prefs/prefField.d.ts +36 -0
  306. package/dist/components/Prefs/prefField.d.ts.map +1 -0
  307. package/dist/components/Prefs/schema.d.ts +32 -1
  308. package/dist/components/Prefs/schema.d.ts.map +1 -1
  309. package/dist/components/Properties/DialogRow.d.ts +33 -0
  310. package/dist/components/Properties/DialogRow.d.ts.map +1 -0
  311. package/dist/components/Properties/PropertyField.d.ts +238 -0
  312. package/dist/components/Properties/PropertyField.d.ts.map +1 -0
  313. package/dist/components/Properties/PropertyGroup.d.ts +18 -3
  314. package/dist/components/Properties/PropertyGroup.d.ts.map +1 -1
  315. package/dist/components/Properties/PropertyPanel.d.ts +50 -256
  316. package/dist/components/Properties/PropertyPanel.d.ts.map +1 -1
  317. package/dist/components/Properties/Subpanel.d.ts +14 -0
  318. package/dist/components/Properties/Subpanel.d.ts.map +1 -0
  319. package/dist/components/Properties/index.d.ts +8 -6
  320. package/dist/components/Properties/index.d.ts.map +1 -1
  321. package/dist/components/Properties/index.js +3 -2
  322. package/dist/components/Properties/storyLayouts.d.ts.map +1 -1
  323. package/dist/components/RadioGroup/index.js +1 -1
  324. package/dist/components/RangeSlider/index.js +1 -1
  325. package/dist/components/ResizeHandle/index.js +1 -1
  326. package/dist/components/Select/Select.d.ts +56 -5
  327. package/dist/components/Select/Select.d.ts.map +1 -1
  328. package/dist/components/Select/index.d.ts +2 -2
  329. package/dist/components/Select/index.d.ts.map +1 -1
  330. package/dist/components/Select/index.js +2 -2
  331. package/dist/components/SelectionPanel/SelectionPanel.d.ts +3 -50
  332. package/dist/components/SelectionPanel/SelectionPanel.d.ts.map +1 -1
  333. package/dist/components/SelectionPanel/index.js +3 -2
  334. package/dist/components/SelectionPanel/model.d.ts +4 -1
  335. package/dist/components/SelectionPanel/model.d.ts.map +1 -1
  336. package/dist/components/SelectionPanel/renderLeaf.d.ts +112 -0
  337. package/dist/components/SelectionPanel/renderLeaf.d.ts.map +1 -0
  338. package/dist/components/Sidebar/index.js +1 -1
  339. package/dist/components/SidebarPanel/SidebarPanel.d.ts +2 -2
  340. package/dist/components/SidebarPanel/SidebarPanel.d.ts.map +1 -1
  341. package/dist/components/SidebarPanel/index.js +1 -1
  342. package/dist/components/Slider/index.js +1 -1
  343. package/dist/components/StatusBar/index.js +1 -1
  344. package/dist/components/SwatchGrid/SwatchGrid.d.ts +34 -0
  345. package/dist/components/SwatchGrid/SwatchGrid.d.ts.map +1 -0
  346. package/dist/components/SwatchGrid/index.d.ts +3 -0
  347. package/dist/components/SwatchGrid/index.d.ts.map +1 -0
  348. package/dist/components/SwatchGrid/index.js +2 -0
  349. package/dist/components/Switch/index.js +1 -1
  350. package/dist/components/Tabs/index.js +1 -1
  351. package/dist/components/Timeline/Lane.d.ts.map +1 -1
  352. package/dist/components/Timeline/index.js +1 -1
  353. package/dist/components/Toast/index.js +1 -1
  354. package/dist/components/ToggleBar/ToggleBar.d.ts +2 -1
  355. package/dist/components/ToggleBar/ToggleBar.d.ts.map +1 -1
  356. package/dist/components/ToggleBar/index.js +1 -1
  357. package/dist/components/TokenPanel/TokenPanel.d.ts +10 -4
  358. package/dist/components/TokenPanel/TokenPanel.d.ts.map +1 -1
  359. package/dist/components/TokenPanel/index.d.ts +2 -2
  360. package/dist/components/TokenPanel/index.d.ts.map +1 -1
  361. package/dist/components/TokenPanel/index.js +2 -2
  362. package/dist/components/TokenPanel/tokenTypes.d.ts +24 -0
  363. package/dist/components/TokenPanel/tokenTypes.d.ts.map +1 -1
  364. package/dist/components/ToolButton/index.js +1 -1
  365. package/dist/components/ToolGroup/index.js +1 -1
  366. package/dist/components/ToolOptionsBar/ToolOptionsBar.d.ts +29 -18
  367. package/dist/components/ToolOptionsBar/ToolOptionsBar.d.ts.map +1 -1
  368. package/dist/components/ToolOptionsBar/index.js +1 -1
  369. package/dist/components/ToolPalette/ToolPalette.d.ts +5 -4
  370. package/dist/components/ToolPalette/ToolPalette.d.ts.map +1 -1
  371. package/dist/components/ToolPalette/index.d.ts +1 -0
  372. package/dist/components/ToolPalette/index.d.ts.map +1 -1
  373. package/dist/components/ToolPalette/index.js +3 -2
  374. package/dist/components/Tooltip/Tooltip.d.ts +6 -2
  375. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  376. package/dist/components/Tooltip/index.d.ts +1 -1
  377. package/dist/components/Tooltip/index.d.ts.map +1 -1
  378. package/dist/components/Tooltip/index.js +2 -2
  379. package/dist/components/Tree/Tree.d.ts +84 -0
  380. package/dist/components/Tree/Tree.d.ts.map +1 -0
  381. package/dist/components/Tree/index.d.ts +3 -0
  382. package/dist/components/Tree/index.d.ts.map +1 -0
  383. package/dist/components/Tree/index.js +2 -0
  384. package/dist/components/segmentTooltip.d.ts +30 -0
  385. package/dist/components/segmentTooltip.d.ts.map +1 -0
  386. package/dist/components/stance.d.ts +30 -0
  387. package/dist/components/stance.d.ts.map +1 -0
  388. package/dist/components/stanceCss.d.ts +31 -0
  389. package/dist/components/stanceCss.d.ts.map +1 -0
  390. package/dist/components/stanceSurfaces.d.ts +4 -0
  391. package/dist/components/stanceSurfaces.d.ts.map +1 -0
  392. package/dist/format/number.d.ts +13 -3
  393. package/dist/format/number.d.ts.map +1 -1
  394. package/dist/icons/Icon.d.ts.map +1 -1
  395. package/dist/icons/ShapeKindIcon.d.ts +10 -0
  396. package/dist/icons/ShapeKindIcon.d.ts.map +1 -0
  397. package/dist/icons/index.d.ts +5 -3
  398. package/dist/icons/index.d.ts.map +1 -1
  399. package/dist/icons/paths.d.ts +11 -1
  400. package/dist/icons/paths.d.ts.map +1 -1
  401. package/dist/index.d.ts +16 -3
  402. package/dist/index.d.ts.map +1 -1
  403. package/dist/index.js +110 -84
  404. package/dist/index.js.map +1 -1
  405. package/dist/interactiveTarget.d.ts +9 -0
  406. package/dist/interactiveTarget.d.ts.map +1 -0
  407. package/dist/style.css +1 -1
  408. package/dist/useReorderDragList.d.ts +36 -7
  409. package/dist/useReorderDragList.d.ts.map +1 -1
  410. package/dist/useRovingTabIndex.d.ts +8 -6
  411. package/dist/useRovingTabIndex.d.ts.map +1 -1
  412. package/dist/useScrollSpy.d.ts +48 -0
  413. package/dist/useScrollSpy.d.ts.map +1 -0
  414. package/package.json +8 -8
  415. package/dist/chunks/ActionBar-GZdcfdQL.js +0 -62
  416. package/dist/chunks/ActionBar-GZdcfdQL.js.map +0 -1
  417. package/dist/chunks/ActionsBar-Fhx_40iP.js +0 -41
  418. package/dist/chunks/ActionsBar-Fhx_40iP.js.map +0 -1
  419. package/dist/chunks/Badge-Bf8Rd1R6.js.map +0 -1
  420. package/dist/chunks/BandEditor-D8I5Uun-.js.map +0 -1
  421. package/dist/chunks/Button-CExdkQcU.js +0 -90
  422. package/dist/chunks/Button-CExdkQcU.js.map +0 -1
  423. package/dist/chunks/Callout-cx5_CWcW.js +0 -122
  424. package/dist/chunks/Callout-cx5_CWcW.js.map +0 -1
  425. package/dist/chunks/Checkbox-BZZsPaVF.js.map +0 -1
  426. package/dist/chunks/ComboBox-D57tNYDD.js.map +0 -1
  427. package/dist/chunks/DataGrid-BVdDMZkQ.js +0 -104
  428. package/dist/chunks/DataGrid-BVdDMZkQ.js.map +0 -1
  429. package/dist/chunks/Dialog-DuOzsR2g.js +0 -61
  430. package/dist/chunks/Dialog-DuOzsR2g.js.map +0 -1
  431. package/dist/chunks/Disclosure-9UgDzc7Z.js +0 -47
  432. package/dist/chunks/Disclosure-9UgDzc7Z.js.map +0 -1
  433. package/dist/chunks/Field-BNqvUJfg.js.map +0 -1
  434. package/dist/chunks/GradientEditor-B_ymIr4Q.js +0 -333
  435. package/dist/chunks/GradientEditor-B_ymIr4Q.js.map +0 -1
  436. package/dist/chunks/Icon-QhLhaGFe.js.map +0 -1
  437. package/dist/chunks/InlineRange-DdIlfGqG.js +0 -29
  438. package/dist/chunks/InlineRange-DdIlfGqG.js.map +0 -1
  439. package/dist/chunks/Input-B9Vh7ASP.js.map +0 -1
  440. package/dist/chunks/ItemList-BZJQReXD.js +0 -42
  441. package/dist/chunks/ItemList-BZJQReXD.js.map +0 -1
  442. package/dist/chunks/Jog-BYrxbAQU.js.map +0 -1
  443. package/dist/chunks/Keycaps-CGNQV2Pz.js.map +0 -1
  444. package/dist/chunks/LayerStack-DOylrQcm.js +0 -142
  445. package/dist/chunks/LayerStack-DOylrQcm.js.map +0 -1
  446. package/dist/chunks/MenuButton-DGE-0DP0.js +0 -60
  447. package/dist/chunks/MenuButton-DGE-0DP0.js.map +0 -1
  448. package/dist/chunks/MeshEditor-CHoGQ9K8.js +0 -123
  449. package/dist/chunks/MeshEditor-CHoGQ9K8.js.map +0 -1
  450. package/dist/chunks/NumberField-CQzS6TjF.js.map +0 -1
  451. package/dist/chunks/PaintField-BVYMu3OI.js.map +0 -1
  452. package/dist/chunks/PaintInput-BzAHCKro.js.map +0 -1
  453. package/dist/chunks/PatternPicker-C4OryrYi.js.map +0 -1
  454. package/dist/chunks/Powerline-B_EH-7Z-.js.map +0 -1
  455. package/dist/chunks/Prefs-FuaJBs3t.js +0 -308
  456. package/dist/chunks/Prefs-FuaJBs3t.js.map +0 -1
  457. package/dist/chunks/Properties-B3KU69NI.js +0 -874
  458. package/dist/chunks/Properties-B3KU69NI.js.map +0 -1
  459. package/dist/chunks/RadioGroup-C6xpdQNg.js.map +0 -1
  460. package/dist/chunks/RangeSlider-CzgeGLVS.js.map +0 -1
  461. package/dist/chunks/Select-BMYVh10x.js +0 -127
  462. package/dist/chunks/Select-BMYVh10x.js.map +0 -1
  463. package/dist/chunks/SelectionPanel-DTpcQidl.js +0 -572
  464. package/dist/chunks/SelectionPanel-DTpcQidl.js.map +0 -1
  465. package/dist/chunks/Sidebar-BlUjn8lD.js.map +0 -1
  466. package/dist/chunks/SidebarPanel-BqHfz6VK.js.map +0 -1
  467. package/dist/chunks/Slider-B2ywUZH6.js.map +0 -1
  468. package/dist/chunks/StatusBar-BFt7Yw5O.js.map +0 -1
  469. package/dist/chunks/Switch-Om3t3ASc.js.map +0 -1
  470. package/dist/chunks/Tabs-EAvYywil.js.map +0 -1
  471. package/dist/chunks/Timeline-BEyKaBXl.js.map +0 -1
  472. package/dist/chunks/Toast-iqLDD_XZ.js.map +0 -1
  473. package/dist/chunks/ToggleBar--9As2PWG.js +0 -75
  474. package/dist/chunks/ToggleBar--9As2PWG.js.map +0 -1
  475. package/dist/chunks/TokenPanel-BL9hlq7x.js +0 -374
  476. package/dist/chunks/TokenPanel-BL9hlq7x.js.map +0 -1
  477. package/dist/chunks/ToolButton-Dd-1T5aX.js.map +0 -1
  478. package/dist/chunks/ToolGroup-BBI-W-Gm.js.map +0 -1
  479. package/dist/chunks/ToolOptionsBar-B2xPWzJf.js +0 -27
  480. package/dist/chunks/ToolOptionsBar-B2xPWzJf.js.map +0 -1
  481. package/dist/chunks/ToolPalette-BmTDDpmz.js +0 -97
  482. package/dist/chunks/ToolPalette-BmTDDpmz.js.map +0 -1
  483. package/dist/chunks/Tooltip-BHre_vbI.js +0 -42
  484. package/dist/chunks/Tooltip-BHre_vbI.js.map +0 -1
  485. package/dist/chunks/icons-Btrs-JD7.js +0 -165
  486. package/dist/chunks/icons-Btrs-JD7.js.map +0 -1
  487. package/dist/chunks/number-f6PydOZK.js +0 -52
  488. package/dist/chunks/number-f6PydOZK.js.map +0 -1
  489. package/dist/chunks/range.module-DSsOIq1R.js +0 -8
  490. package/dist/chunks/range.module-DSsOIq1R.js.map +0 -1
  491. package/dist/chunks/schema-MCVT1MLv.js +0 -47
  492. package/dist/chunks/schema-MCVT1MLv.js.map +0 -1
  493. package/dist/chunks/segmentedControl.module-DmeUMYe3.js +0 -11
  494. package/dist/chunks/segmentedControl.module-DmeUMYe3.js.map +0 -1
  495. package/dist/chunks/useReorderDragList-CSQGd7zQ.js +0 -102
  496. package/dist/chunks/useReorderDragList-CSQGd7zQ.js.map +0 -1
  497. package/dist/chunks/useRovingTabIndex-Dkpf_KhN.js.map +0 -1
  498. package/dist/components/ActionsBar/ActionsBar.d.ts +0 -35
  499. package/dist/components/ActionsBar/ActionsBar.d.ts.map +0 -1
  500. package/dist/components/ActionsBar/index.d.ts +0 -3
  501. package/dist/components/ActionsBar/index.d.ts.map +0 -1
  502. package/dist/components/ActionsBar/index.js +0 -2
  503. package/dist/components/LayerStack/LayerStack.d.ts +0 -62
  504. package/dist/components/LayerStack/LayerStack.d.ts.map +0 -1
  505. package/dist/components/LayerStack/index.d.ts +0 -2
  506. package/dist/components/LayerStack/index.d.ts.map +0 -1
  507. package/dist/components/LayerStack/index.js +0 -2
  508. package/dist/components/Properties/EffectCard.d.ts +0 -69
  509. package/dist/components/Properties/EffectCard.d.ts.map +0 -1
  510. package/dist/components/Properties/PinDot.d.ts +0 -18
  511. package/dist/components/Properties/PinDot.d.ts.map +0 -1
@@ -0,0 +1,634 @@
1
+ import { n as e, r as t } from "./Tooltip-9XiJF937.js";
2
+ import { t as n } from "./Button-Dyp31jMt.js";
3
+ import { r } from "./Disclosure-D79jhmh2.js";
4
+ import { t as i } from "./Select-DVValBe1.js";
5
+ import { t as a } from "./Input-Bx2cuUbS.js";
6
+ import { n as o } from "./NumberField-C1Y7zP-a.js";
7
+ import { t as s } from "./ToggleBar-Btnl5r7F.js";
8
+ import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
9
+ import { memo as d, useCallback as f, useMemo as p, useState as m } from "react";
10
+ import { Focusable as h } from "react-aria-components";
11
+ //#region src/components/TokenPanel/color.ts
12
+ var g = /^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i, _ = /^rgba?\(\s*(\d{1,3})[\s,]+(\d{1,3})[\s,]+(\d{1,3})\b/i, v = /^(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix)\(.+\)$/i, y = new Set([
13
+ "transparent",
14
+ "currentcolor",
15
+ "black",
16
+ "white",
17
+ "gray",
18
+ "silver",
19
+ "red",
20
+ "orange",
21
+ "yellow",
22
+ "gold",
23
+ "lime",
24
+ "green",
25
+ "teal",
26
+ "cyan",
27
+ "blue",
28
+ "navy",
29
+ "purple",
30
+ "magenta",
31
+ "pink",
32
+ "brown"
33
+ ]);
34
+ function b() {
35
+ return typeof CSS < "u" && typeof CSS.supports == "function" ? (e) => CSS.supports("color", e) : null;
36
+ }
37
+ function x(e, t = b()) {
38
+ let n = e.trim();
39
+ return !n || n.includes("var(") ? !1 : t ? t(n) : g.test(n) || v.test(n) || y.has(n.toLowerCase());
40
+ }
41
+ function S(e) {
42
+ if (g.test(e)) {
43
+ let t = e.slice(1).toLowerCase();
44
+ return `#${t.length <= 4 ? [...t.slice(0, 3)].map((e) => e + e).join("") : t.slice(0, 6)}`;
45
+ }
46
+ let t = _.exec(e);
47
+ return t ? `#${t.slice(1, 4).map((e) => Math.min(255, Number(e)).toString(16).padStart(2, "0")).join("")}` : null;
48
+ }
49
+ var C;
50
+ function w(e) {
51
+ if (C === void 0) try {
52
+ C = document.createElement("canvas").getContext("2d");
53
+ } catch {
54
+ C = null;
55
+ }
56
+ if (!C) return null;
57
+ C.fillStyle = "#000000", C.fillStyle = e;
58
+ let t = String(C.fillStyle);
59
+ return C.fillStyle = "#ffffff", C.fillStyle = e, t === String(C.fillStyle) ? t : null;
60
+ }
61
+ function T(e) {
62
+ let t = e.trim(), n = S(t);
63
+ if (n) return n;
64
+ let r = typeof document > "u" ? null : w(t);
65
+ return r && r !== t ? S(r) : null;
66
+ }
67
+ var E = {
68
+ panel: "_panel_j873d_1",
69
+ section: "_section_j873d_7",
70
+ sectionHead: "_sectionHead_j873d_17",
71
+ sectionBody: "_sectionBody_j873d_26",
72
+ row: "_row_j873d_33",
73
+ family: "_family_j873d_34",
74
+ name: "_name_j873d_41",
75
+ edit: "_edit_j873d_50",
76
+ field: "_field_j873d_57",
77
+ number: "_number_j873d_63",
78
+ unit: "_unit_j873d_69",
79
+ swatchInput: "_swatchInput_j873d_76",
80
+ chip: "_chip_j873d_88",
81
+ curve: "_curve_j873d_97",
82
+ strip: "_strip_j873d_105",
83
+ swatch: "_swatch_j873d_76",
84
+ scale: "_scale_j873d_137",
85
+ scaleHead: "_scaleHead_j873d_144",
86
+ steps: "_steps_j873d_151",
87
+ rule: "_rule_j873d_157",
88
+ ruleLabel: "_ruleLabel_j873d_165",
89
+ step: "_step_j873d_151",
90
+ stepLabel: "_stepLabel_j873d_183",
91
+ stepEdit: "_stepEdit_j873d_197",
92
+ tight: "_tight_j873d_216"
93
+ }, D = (e) => Math.round(e * 100) / 100;
94
+ function O(e, t, n) {
95
+ let r = n[0] ?? e.base, i = n.at(-1) ?? r, a = Math.max(1, n.length - 1);
96
+ switch (t) {
97
+ case "factors": return {
98
+ ...e,
99
+ rule: {
100
+ kind: t,
101
+ factors: n.map((t) => e.base ? D(t / e.base) : 1)
102
+ }
103
+ };
104
+ case "ratio": return {
105
+ ...e,
106
+ base: r,
107
+ rule: {
108
+ kind: t,
109
+ ratio: r > 0 ? D((i / r) ** (1 / a)) : 1
110
+ }
111
+ };
112
+ case "step": return {
113
+ ...e,
114
+ base: r,
115
+ rule: {
116
+ kind: t,
117
+ step: D((i - r) / a)
118
+ }
119
+ };
120
+ }
121
+ }
122
+ var k = [
123
+ {
124
+ id: "color",
125
+ title: "Color"
126
+ },
127
+ {
128
+ id: "type",
129
+ title: "Type"
130
+ },
131
+ {
132
+ id: "size",
133
+ title: "Size"
134
+ },
135
+ {
136
+ id: "motion",
137
+ title: "Motion"
138
+ },
139
+ {
140
+ id: "depth",
141
+ title: "Depth"
142
+ },
143
+ {
144
+ id: "other",
145
+ title: "Other"
146
+ }
147
+ ], A = /^(?:font|tracking|leading|letter|line-height)/;
148
+ function j(e) {
149
+ switch (e.type) {
150
+ case "color": return "color";
151
+ case "fontFamily":
152
+ case "fontWeight": return "type";
153
+ case "duration":
154
+ case "cubicBezier": return "motion";
155
+ case "shadow":
156
+ case "gradient": return "depth";
157
+ case "dimension":
158
+ case "number": return A.test(e.group) ? "type" : e.type === "number" && (e.group === "z" || e.group === "z-index") ? "depth" : "size";
159
+ default: return "other";
160
+ }
161
+ }
162
+ var M = String.raw`-?(?:\d+\.?\d*|\.\d+)`, N = RegExp(`^${M}(?:px|rem|em|%|ch|ex|lh|rlh|vh|vw|vmin|vmax|svh|lvh|dvh|cqw|cqh|pt|pc|cm|mm|in|q)$`, "i"), P = RegExp(`^${M}m?s$`), F = RegExp(`^${M}$`), I = RegExp(`^${M}(?:px|rem|em)?$`), L = RegExp(`^cubic-bezier\\(\\s*(${M})\\s*,\\s*(${M})\\s*,\\s*(${M})\\s*,\\s*(${M})\\s*\\)$`, "i"), R = /^(?:repeating-)?(?:linear|radial|conic)-gradient\(/i, z = /,(?![^(]*\))/, B = /[a-z-]+\([^)]*\)|\S+/gi;
163
+ function V(e) {
164
+ return e.split(z).every((e) => {
165
+ let t = e.trim().replace(/^inset\s+/i, "").match(B) ?? [], n = t.filter((e) => I.test(e)), r = t.filter((e) => !I.test(e));
166
+ return n.length >= 2 && n.length <= 4 && r.length <= 1 && r.every((e) => x(e));
167
+ });
168
+ }
169
+ function H(e) {
170
+ let t = e.trim();
171
+ return t ? P.test(t) ? "duration" : N.test(t) ? "dimension" : F.test(t) ? "number" : L.test(t) ? "cubicBezier" : R.test(t) ? "gradient" : x(t) ? "color" : V(t) ? "shadow" : "string" : "string";
172
+ }
173
+ function U(e) {
174
+ let t = RegExp(`^(${M})([a-z%]*)$`, "i").exec(e.trim());
175
+ return t ? {
176
+ amount: Number(t[1]),
177
+ unit: t[2] ?? ""
178
+ } : null;
179
+ }
180
+ function W(e) {
181
+ let t = L.exec(e.trim());
182
+ if (!t) return null;
183
+ let [n, r, i, a] = t.slice(1, 5).map(Number);
184
+ return [
185
+ n,
186
+ r,
187
+ i,
188
+ a
189
+ ];
190
+ }
191
+ //#endregion
192
+ //#region src/components/TokenPanel/TokenPanel.tsx
193
+ var G = [
194
+ "100",
195
+ "200",
196
+ "300",
197
+ "400",
198
+ "500",
199
+ "600",
200
+ "700",
201
+ "800",
202
+ "900"
203
+ ], K = {
204
+ maximumFractionDigits: 4,
205
+ useGrouping: !1
206
+ }, q = new Set([
207
+ "dimension",
208
+ "duration",
209
+ "number"
210
+ ]);
211
+ function J(e) {
212
+ return e.type === "color" ? "family" : q.has(e.type) && U(e.value) ? "scale" : null;
213
+ }
214
+ function Y(e, t) {
215
+ let n = /* @__PURE__ */ new Map();
216
+ for (let t of e) {
217
+ let e = J(t);
218
+ e && n.set(`${e}:${t.group}`, (n.get(`${e}:${t.group}`) ?? 0) + 1);
219
+ }
220
+ let r = /* @__PURE__ */ new Map(), i = [];
221
+ for (let a of e) {
222
+ let e = J(a), o = `${e}:${a.group}`;
223
+ if (!e || (n.get(o) ?? 0) < t) {
224
+ i.push({
225
+ kind: "row",
226
+ token: a
227
+ });
228
+ continue;
229
+ }
230
+ let s = r.get(o);
231
+ s || (s = {
232
+ kind: e,
233
+ group: a.group,
234
+ tokens: []
235
+ }, r.set(o, s), i.push(s)), s.tokens.push(a);
236
+ }
237
+ return i;
238
+ }
239
+ function X(e) {
240
+ let t = e.map((e) => e.replace(/^--/, "").split("-")), n = 0;
241
+ for (; t.every((e) => e.length > n && e[n] === t[0]?.[n]);) n++;
242
+ return t.map((e) => e.slice(n).join("-") || (e.at(-1) ?? ""));
243
+ }
244
+ function Z({ points: e, label: t }) {
245
+ let [n, r, i, a] = e, o = Math.min(0, 1 - r, 1 - a), s = Math.max(1, 1 - r, 1 - a);
246
+ return /* @__PURE__ */ l("svg", {
247
+ className: E.curve,
248
+ viewBox: `-0.1 ${o - .1} 1.2 ${s - o + .2}`,
249
+ role: "img",
250
+ "aria-label": t,
251
+ children: /* @__PURE__ */ l("path", {
252
+ d: `M0 1 C${n} ${1 - r} ${i} ${1 - a} 1 0`,
253
+ fill: "none",
254
+ stroke: "currentColor",
255
+ strokeWidth: .08
256
+ })
257
+ });
258
+ }
259
+ function Q({ token: e, set: t }) {
260
+ let { name: n, type: r, value: s } = e, d = `${n} value`, f = p(() => r === "color" ? T(s) : null, [r, s]);
261
+ if (r === "dimension" || r === "duration" || r === "number") {
262
+ let e = U(s);
263
+ if (e) return /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l(o, {
264
+ className: E.number,
265
+ "aria-label": d,
266
+ value: e.amount,
267
+ hideSteppers: !0,
268
+ formatOptions: K,
269
+ onChange: (n) => {
270
+ Number.isFinite(n) && t(`${n}${e.unit}`);
271
+ }
272
+ }), e.unit ? /* @__PURE__ */ l("span", {
273
+ className: E.unit,
274
+ children: e.unit
275
+ }) : null] });
276
+ }
277
+ if (r === "fontWeight") return /* @__PURE__ */ l(i, {
278
+ "aria-label": n,
279
+ width: "fit",
280
+ selectedKey: s,
281
+ options: (G.includes(s) ? G : [...G, s]).map((e) => ({
282
+ value: e,
283
+ label: e
284
+ })),
285
+ onSelectionChange: t
286
+ });
287
+ let m = r === "cubicBezier" ? W(s) : null;
288
+ return /* @__PURE__ */ u(c, { children: [m ? /* @__PURE__ */ l(Z, {
289
+ points: m,
290
+ label: `${n} curve`
291
+ }) : null, /* @__PURE__ */ l(a, {
292
+ className: E.field,
293
+ "aria-label": d,
294
+ value: s,
295
+ onChange: t,
296
+ leadingAdornment: r === "color" ? f ? /* @__PURE__ */ l("input", {
297
+ type: "color",
298
+ className: E.swatchInput,
299
+ "aria-label": `${n} color`,
300
+ value: f,
301
+ onChange: (e) => t(e.target.value)
302
+ }) : /* @__PURE__ */ l("span", {
303
+ className: E.chip,
304
+ style: { "--token-color": s },
305
+ "aria-hidden": "true"
306
+ }) : void 0
307
+ })] });
308
+ }
309
+ var $ = d(function({ token: e, onChange: t }) {
310
+ let r = f((n) => t(e.name, n), [t, e.name]);
311
+ return /* @__PURE__ */ u("div", {
312
+ className: E.row,
313
+ role: "group",
314
+ "aria-label": e.name,
315
+ children: [/* @__PURE__ */ l("span", {
316
+ className: E.name,
317
+ title: e.description || e.name,
318
+ children: e.name
319
+ }), /* @__PURE__ */ u("div", {
320
+ className: E.edit,
321
+ children: [/* @__PURE__ */ l(Q, {
322
+ token: e,
323
+ set: r
324
+ }), e.overridden ? /* @__PURE__ */ l(n, {
325
+ variant: "ghost",
326
+ size: "sm",
327
+ ariaLabel: `Reset ${e.name}`,
328
+ onClick: () => t(e.name, null),
329
+ children: "Reset"
330
+ }) : null]
331
+ })]
332
+ });
333
+ }, (e, t) => e.onChange === t.onChange && e.token.name === t.token.name && e.token.type === t.token.type && e.token.value === t.token.value && e.token.overridden === t.token.overridden && e.token.description === t.token.description);
334
+ function ee({ group: n, tokens: r, onChange: i }) {
335
+ let [a, o] = m(null), s = r.find((e) => e.name === a) ?? null;
336
+ return /* @__PURE__ */ u("div", {
337
+ className: E.family,
338
+ role: "group",
339
+ "aria-label": n,
340
+ children: [
341
+ /* @__PURE__ */ l("span", {
342
+ className: E.name,
343
+ children: n
344
+ }),
345
+ /* @__PURE__ */ l("div", {
346
+ className: E.strip,
347
+ children: r.map((n) => /* @__PURE__ */ u(t, {
348
+ delay: 0,
349
+ children: [/* @__PURE__ */ l(h, { children: /* @__PURE__ */ l("button", {
350
+ type: "button",
351
+ className: E.swatch,
352
+ style: { "--token-color": n.value },
353
+ "aria-label": n.name,
354
+ "aria-pressed": n.name === a,
355
+ "data-overridden": n.overridden ? "" : void 0,
356
+ onClick: () => o((e) => e === n.name ? null : n.name)
357
+ }) }), /* @__PURE__ */ l(e, { children: n.name })]
358
+ }, n.name))
359
+ }),
360
+ s ? /* @__PURE__ */ l($, {
361
+ token: s,
362
+ onChange: i
363
+ }) : null
364
+ ]
365
+ });
366
+ }
367
+ function te({ token: e, label: t, showUnit: n, factor: r, onChange: i, onFactorChange: a }) {
368
+ let s = U(e.value);
369
+ return s ? /* @__PURE__ */ u("div", {
370
+ className: E.step,
371
+ title: e.description || e.name,
372
+ "data-overridden": e.overridden ? "" : void 0,
373
+ children: [
374
+ /* @__PURE__ */ l("span", {
375
+ className: E.stepLabel,
376
+ children: t
377
+ }),
378
+ /* @__PURE__ */ u("span", {
379
+ className: E.stepEdit,
380
+ children: [/* @__PURE__ */ l(o, {
381
+ className: E.number,
382
+ "aria-label": `${e.name} value`,
383
+ value: s.amount,
384
+ hideSteppers: !0,
385
+ formatOptions: K,
386
+ onChange: (t) => {
387
+ Number.isFinite(t) && i(e.name, `${t}${s.unit}`);
388
+ }
389
+ }), n && s.unit ? /* @__PURE__ */ l("span", {
390
+ className: E.unit,
391
+ children: s.unit
392
+ }) : null]
393
+ }),
394
+ r !== void 0 && a ? /* @__PURE__ */ u("span", {
395
+ className: E.stepEdit,
396
+ children: [/* @__PURE__ */ l("span", {
397
+ className: E.unit,
398
+ children: "×"
399
+ }), /* @__PURE__ */ l(o, {
400
+ className: E.number,
401
+ "aria-label": `${e.name} factor`,
402
+ value: r,
403
+ hideSteppers: !0,
404
+ formatOptions: K,
405
+ onChange: (e) => {
406
+ Number.isFinite(e) && a(e);
407
+ }
408
+ })]
409
+ }) : null
410
+ ]
411
+ }) : null;
412
+ }
413
+ var ne = [
414
+ {
415
+ value: "factors",
416
+ label: "each",
417
+ ariaLabel: "factors"
418
+ },
419
+ {
420
+ value: "ratio",
421
+ label: "ratio"
422
+ },
423
+ {
424
+ value: "step",
425
+ label: "step"
426
+ }
427
+ ];
428
+ function re({ group: e, scale: t, unit: n, amounts: r, onScaleChange: i }) {
429
+ let { rule: a } = t, c = a.kind === "ratio" ? {
430
+ key: "ratio",
431
+ value: a.ratio
432
+ } : a.kind === "step" ? {
433
+ key: "step",
434
+ value: a.step
435
+ } : null;
436
+ return /* @__PURE__ */ u("div", {
437
+ className: E.rule,
438
+ children: [
439
+ /* @__PURE__ */ u("span", {
440
+ className: E.stepEdit,
441
+ children: [
442
+ /* @__PURE__ */ l("span", {
443
+ className: E.ruleLabel,
444
+ children: "base"
445
+ }),
446
+ /* @__PURE__ */ l(o, {
447
+ className: E.number,
448
+ "aria-label": `${e} base`,
449
+ value: t.base,
450
+ hideSteppers: !0,
451
+ formatOptions: K,
452
+ onChange: (e) => {
453
+ Number.isFinite(e) && i({
454
+ ...t,
455
+ base: e
456
+ });
457
+ }
458
+ }),
459
+ n ? /* @__PURE__ */ l("span", {
460
+ className: E.unit,
461
+ children: n
462
+ }) : null
463
+ ]
464
+ }),
465
+ /* @__PURE__ */ l(s, {
466
+ ariaLabel: `${e} rule`,
467
+ size: "sm",
468
+ items: ne,
469
+ value: a.kind,
470
+ onChange: (e) => {
471
+ e && e !== a.kind && i(O(t, e, r));
472
+ }
473
+ }),
474
+ c ? /* @__PURE__ */ u("span", {
475
+ className: E.stepEdit,
476
+ children: [c.key === "ratio" ? /* @__PURE__ */ l("span", {
477
+ className: E.unit,
478
+ children: "×"
479
+ }) : /* @__PURE__ */ l("span", {
480
+ className: E.unit,
481
+ children: "+"
482
+ }), /* @__PURE__ */ l(o, {
483
+ className: E.number,
484
+ "aria-label": `${e} ${c.key}`,
485
+ value: c.value,
486
+ hideSteppers: !0,
487
+ formatOptions: K,
488
+ onChange: (e) => {
489
+ Number.isFinite(e) && i({
490
+ ...t,
491
+ rule: {
492
+ kind: c.key,
493
+ [c.key]: e
494
+ }
495
+ });
496
+ }
497
+ })]
498
+ }) : null
499
+ ]
500
+ });
501
+ }
502
+ function ie({ group: e, tokens: t, generator: r, onChange: i, onScaleChange: a }) {
503
+ let o = p(() => X(t.map((e) => e.name)), [t]), s = new Set(t.map((e) => U(e.value)?.unit ?? "")), c = s.size === 1 ? [...s][0] : null, d = t.filter((e) => e.overridden);
504
+ return /* @__PURE__ */ u("div", {
505
+ className: E.scale,
506
+ role: "group",
507
+ "aria-label": e,
508
+ children: [
509
+ /* @__PURE__ */ u("span", {
510
+ className: E.scaleHead,
511
+ children: [
512
+ /* @__PURE__ */ l("span", {
513
+ className: E.name,
514
+ children: e
515
+ }),
516
+ c ? /* @__PURE__ */ l("span", {
517
+ className: E.unit,
518
+ children: c
519
+ }) : null,
520
+ d.length > 0 ? /* @__PURE__ */ l(n, {
521
+ variant: "ghost",
522
+ size: "sm",
523
+ ariaLabel: `Reset ${e}`,
524
+ onClick: () => {
525
+ for (let e of d) i(e.name, null);
526
+ },
527
+ children: "Reset"
528
+ }) : null
529
+ ]
530
+ }),
531
+ r && a ? /* @__PURE__ */ l(re, {
532
+ group: e,
533
+ scale: r,
534
+ unit: c ?? "",
535
+ amounts: r.tokens.map((e) => U(t.find((t) => t.name === e)?.value ?? "")?.amount ?? r.base),
536
+ onScaleChange: (t) => a(e, t)
537
+ }) : null,
538
+ /* @__PURE__ */ l("div", {
539
+ className: E.steps,
540
+ children: t.map((t, n) => {
541
+ let s = r?.rule, u = r ? r.tokens.indexOf(t.name) : -1, d = s?.kind === "factors" && u >= 0 ? s.factors[u] : void 0;
542
+ return /* @__PURE__ */ l(te, {
543
+ token: t,
544
+ label: o[n] ?? t.name,
545
+ showUnit: c === null,
546
+ factor: d,
547
+ onChange: i,
548
+ onFactorChange: r && a && s?.kind === "factors" ? (t) => a(e, {
549
+ ...r,
550
+ rule: {
551
+ kind: "factors",
552
+ factors: s.factors.map((e, n) => n === u ? t : e)
553
+ }
554
+ }) : void 0
555
+ }, t.name);
556
+ })
557
+ })
558
+ ]
559
+ });
560
+ }
561
+ function ae({ title: e, open: t, onToggle: n, tokens: i, familySize: a, scales: o, onChange: s, onScaleChange: c }) {
562
+ let d = p(() => Y(i, a), [i, a]);
563
+ return /* @__PURE__ */ u("section", {
564
+ className: E.section,
565
+ "aria-label": e,
566
+ children: [/* @__PURE__ */ l(r, {
567
+ className: E.sectionHead,
568
+ open: t,
569
+ onToggle: n,
570
+ label: e,
571
+ children: /* @__PURE__ */ l("span", {
572
+ "aria-hidden": "true",
573
+ children: e
574
+ })
575
+ }), t ? /* @__PURE__ */ l("div", {
576
+ className: E.sectionBody,
577
+ children: d.map((e) => e.kind === "row" ? /* @__PURE__ */ l($, {
578
+ token: e.token,
579
+ onChange: s
580
+ }, e.token.name) : e.kind === "scale" ? /* @__PURE__ */ l(ie, {
581
+ group: e.group,
582
+ tokens: e.tokens,
583
+ generator: o?.[e.group],
584
+ onChange: s,
585
+ onScaleChange: c
586
+ }, `scale:${e.group}`) : /* @__PURE__ */ l(ee, {
587
+ group: e.group,
588
+ tokens: e.tokens,
589
+ onChange: s
590
+ }, `family:${e.group}`))
591
+ }) : null]
592
+ });
593
+ }
594
+ function oe({ tokens: e, onChange: t, collapsed: n, onCollapsedChange: r, scales: i, onScaleChange: a, categorize: o = j, familySize: s = 3, density: c = "normal", className: u }) {
595
+ let [d, f] = m({}), h = n ?? d, g = p(() => {
596
+ let t = /* @__PURE__ */ new Map();
597
+ for (let n of e) {
598
+ let e = o(n);
599
+ t.set(e, [...t.get(e) ?? [], n]);
600
+ }
601
+ return t;
602
+ }, [e, o]);
603
+ return /* @__PURE__ */ l("div", {
604
+ className: [
605
+ E.panel,
606
+ c === "tight" && E.tight,
607
+ u
608
+ ].filter(Boolean).join(" "),
609
+ children: k.map(({ id: e, title: o }) => {
610
+ let c = g.get(e);
611
+ if (!c) return null;
612
+ let u = !h[e];
613
+ return /* @__PURE__ */ l(ae, {
614
+ title: o,
615
+ open: u,
616
+ onToggle: () => {
617
+ n === void 0 && f((t) => ({
618
+ ...t,
619
+ [e]: u
620
+ })), r?.(e, u);
621
+ },
622
+ tokens: c,
623
+ familySize: s,
624
+ scales: i,
625
+ onChange: t,
626
+ onScaleChange: a
627
+ }, e);
628
+ })
629
+ });
630
+ }
631
+ //#endregion
632
+ export { j as a, O as i, k as n, H as r, oe as t };
633
+
634
+ //# sourceMappingURL=TokenPanel-5ajHEHha.js.map