@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
@@ -1,6 +1,23 @@
1
1
  import type { ReactNode } from 'react';
2
- /** Which way the mark points when the section is closed. */
3
- export type DisclosureDirection = 'right' | 'down';
2
+ /** Props for `<DisclosureMark>`. */
3
+ export interface DisclosureMarkProps {
4
+ /** Whether the section it stands for is open: `−` when open, `+` when shut. */
5
+ open: boolean;
6
+ /** Mark size in px, square. Default 13. */
7
+ size?: number;
8
+ className?: string;
9
+ }
10
+ /**
11
+ * The fold mark alone: a dark violet rounded square holding a `+` while its section is
12
+ * shut and a `−` while it is open. Decorative — it carries no role or label —
13
+ * for a row that is itself the control, such as a tree item or a header
14
+ * button. Anywhere the mark has to be the control, use `<Disclosure>`.
15
+ *
16
+ * Deliberately not part of the icon register, on the same grounds as
17
+ * `DragHandleGlyph`: that register is outline strokes at a fixed weight, and
18
+ * this mark is filled.
19
+ */
20
+ export declare function DisclosureMark({ open, size, className }: DisclosureMarkProps): import("react/jsx-runtime").JSX.Element;
4
21
  /** Props for `<Disclosure>`. */
5
22
  export interface DisclosureProps {
6
23
  /** Whether the section it controls is open. The consumer owns this. */
@@ -16,17 +33,14 @@ export interface DisclosureProps {
16
33
  * screen reader move to the revealed content.
17
34
  */
18
35
  controls?: string;
19
- /** Which way the closed mark points. `'right'` (default) rotates down when
20
- * open; `'down'` rotates up. */
21
- direction?: DisclosureDirection;
22
36
  /** Mark size in px. The hit target is at least 20px and grows with it.
23
- * Default 12. */
37
+ * Default 13. */
24
38
  size?: number;
25
39
  disabled?: boolean;
26
40
  className?: string;
27
41
  }
28
42
  /**
29
- * The twisty on a collapsible section: a triangle that turns as it opens.
43
+ * The twisty on a collapsible section: a `<DisclosureMark>` in a button.
30
44
  *
31
45
  * Presentational — it holds no open/closed state and renders no children.
32
46
  * The consumer owns the state and the panel; this is the control that toggles
@@ -35,17 +49,11 @@ export interface DisclosureProps {
35
49
  * Three things it settles that a hand-rolled twisty keeps getting wrong. The
36
50
  * mark is drawn rather than typed, because `--wzl-font-ui` carries no ▸/▾ and
37
51
  * a text glyph falls back to whatever the system offers at whatever size that
38
- * font renders it — around 6px against 13px body text, which reads as dirt on
39
- * the screen. The hit target is larger than the mark. And it is a sibling of
40
- * the row's label rather than a child, so clicking to expand does not actuate
41
- * the label's own control.
42
- *
43
- * Deliberately not part of the icon register, on the same grounds as
44
- * `DragHandleGlyph`: that register is outline strokes at a fixed weight, and
45
- * `base.mjs` rejects a solid triangle in it by name. A disclosure mark is
46
- * filled.
52
+ * font renders it. The hit target is larger than the mark. And it is a sibling
53
+ * of the row's label rather than a child, so clicking to expand does not
54
+ * actuate the label's own control.
47
55
  */
48
- export declare function Disclosure({ open, onToggle, label, controls, direction, size, disabled, className, }: DisclosureProps): import("react/jsx-runtime").JSX.Element;
56
+ export declare function Disclosure({ open, onToggle, label, controls, size, disabled, className }: DisclosureProps): import("react/jsx-runtime").JSX.Element;
49
57
  /** Props for `<DisclosureRow>`. */
50
58
  export interface DisclosureRowProps extends Omit<DisclosureProps, 'className'> {
51
59
  /** The row's own content — a label, a checkbox, a count. */
@@ -1 +1 @@
1
- {"version":3,"file":"Disclosure.d.ts","sourceRoot":"","sources":["../../../src/components/Disclosure/Disclosure.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,4DAA4D;AAC5D,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,MAAM,CAAC;AAEnD,gCAAgC;AAChC,MAAM,WAAW,eAAe;IAC9B,uEAAuE;IACvE,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;qCACiC;IACjC,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAChC;sBACkB;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS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IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,eAAe,2CAc9G;AAED,mCAAmC;AACnC,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,eAAe,EAAE,WAAW,CAAC;IAC5E,4DAA4D;IAC5D,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,MAAM,EAAE,EAAE,kBAAkB,2CAOnF"}
@@ -1,3 +1,3 @@
1
- export { Disclosure, DisclosureRow } from './Disclosure';
2
- export type { DisclosureDirection, DisclosureProps, DisclosureRowProps, } from './Disclosure';
1
+ export { Disclosure, DisclosureMark, DisclosureRow } from './Disclosure';
2
+ export type { DisclosureMarkProps, DisclosureProps, DisclosureRowProps, } from './Disclosure';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Disclosure/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACzD,YAAY,EACV,mBAAmB,EACnB,eAAe,EACf,kBAAkB,GACnB,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Disclosure/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACzE,YAAY,EACV,mBAAmB,EACnB,eAAe,EACf,kBAAkB,GACnB,MAAM,cAAc,CAAC"}
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../../chunks/Disclosure-9UgDzc7Z.js";
2
- export { t as Disclosure, e as DisclosureRow };
1
+ import { n as e, r as t, t as n } from "../../chunks/Disclosure-D79jhmh2.js";
2
+ export { n as Disclosure, e as DisclosureMark, t as DisclosureRow };
@@ -0,0 +1,21 @@
1
+ import type { ReactNode } from 'react';
2
+ /** Props for `<DragGhost>`. */
3
+ export interface DragGhostProps {
4
+ /** The ghost's top-left in client space, and its width — `useReorderDragList`'s `state.ghost` is one. */
5
+ at: {
6
+ left: number;
7
+ top: number;
8
+ width: number;
9
+ };
10
+ /** An element inside the list being dragged from. The ghost portals to its nearest themed ancestor, so it resolves
11
+ * the list's tokens without being clipped by the list's panel. */
12
+ from: Element;
13
+ /** What to draw: copies of the dragged items, or any stand-in for them. */
14
+ children: ReactNode;
15
+ }
16
+ /**
17
+ * What follows the pointer during a drag while the dragged items hold their place: `children` on a raised surface at
18
+ * a client-space point. Hidden from assistive tech and from the pointer, so it never becomes the drop target.
19
+ */
20
+ export declare function DragGhost({ at, from, children }: DragGhostProps): import("react").ReactPortal;
21
+ //# sourceMappingURL=DragGhost.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DragGhost.d.ts","sourceRoot":"","sources":["../../../src/components/DragGhost/DragGhost.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAKtD,+BAA+B;AAC/B,MAAM,WAAW,cAAc;IAC7B,yGAAyG;IACzG,EAAE,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACjD;uEACmE;IACnE,IAAI,EAAE,OAAO,CAAC;IACd,2EAA2E;IAC3E,QAAQ,EAAE,SAAS,CAAC;CACrB;AAcD;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,cAAc,+BAW/D"}
@@ -0,0 +1,3 @@
1
+ export { DragGhost } from './DragGhost';
2
+ export type { DragGhostProps } from './DragGhost';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DragGhost/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../chunks/DragGhost-DcU7cOwy.js";
2
+ export { e as DragGhost };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../chunks/DragHandleGlyph-CppAz4_8.js";
1
+ import { t as e } from "../../chunks/DragHandleGlyph-BtBxHjZS.js";
2
2
  export { e as DragHandleGlyph };
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../../chunks/Field-BNqvUJfg.js";
1
+ import { n as e, t } from "../../chunks/Field-xbqRmjsI.js";
2
2
  export { t as Field, e as fieldClasses };
@@ -0,0 +1,45 @@
1
+ import { type ReactElement } from 'react';
2
+ import type { FillStyle } from '@weasel-js/core';
3
+ import type { PaintSlot } from '../GradientEditor';
4
+ /** Props for {@link FillStrokeSwatch}. */
5
+ export interface FillStrokeSwatchProps {
6
+ /** `null` is an explicit "no paint". */
7
+ fill: FillStyle | null | undefined;
8
+ stroke: FillStyle | null | undefined;
9
+ /** The slot that edits aimed at "the current paint" land on — the None
10
+ * button, a palette click, a keyboard shortcut the app binds. */
11
+ focused: PaintSlot;
12
+ onFocusChange: (slot: PaintSlot) => void;
13
+ /** Every tick of the color picker, as `#rrggbb`. */
14
+ onInput?: (slot: PaintSlot, color: string) => void;
15
+ /** Once when the picker closes, with its last color, if it moved. */
16
+ onChange: (slot: PaintSlot, color: string) => void;
17
+ /** Toggle a slot between no paint and a paint. Given, it adds the None
18
+ * button (acting on `focused`) and shift-click on a chip. */
19
+ onToggleNone?: (slot: PaintSlot) => void;
20
+ /** Given, adds a Swap button that exchanges the two paints. */
21
+ onSwap?: () => void;
22
+ /** Given, adds a Default button that restores the app's default pair. */
23
+ onReset?: () => void;
24
+ /** Key hints for the buttons' tooltips. The app binds the keys itself. */
25
+ shortcuts?: {
26
+ none?: string;
27
+ swap?: string;
28
+ reset?: string;
29
+ };
30
+ 'aria-label'?: string;
31
+ className?: string;
32
+ }
33
+ /**
34
+ * The active fill and stroke as one overlapping pair, the way drawing apps
35
+ * show the paint the next shape gets: fill a solid square behind, stroke a
36
+ * frame in front of it. Each chip is a native color picker; the focused one
37
+ * is what the None button — and whatever the app binds — acts on.
38
+ *
39
+ * Holds no state of its own: the paints and the focused slot are props, and
40
+ * the chips report picks through `onInput`/`onChange` for the app to route —
41
+ * into its own active-paint state, into the selection through
42
+ * `useOngoingAction`, or both.
43
+ */
44
+ export declare function FillStrokeSwatch(props: FillStrokeSwatchProps): ReactElement;
45
+ //# sourceMappingURL=FillStrokeSwatch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FillStrokeSwatch.d.ts","sourceRoot":"","sources":["../../../src/components/FillStrokeSwatch/FillStrokeSwatch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAIjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAGnD,0CAA0C;AAC1C,MAAM,WAAW,qBAAqB;IACpC,wCAAwC;IACxC,IAAI,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC,MAAM,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;sEACkE;IAClE,OAAO,EAAE,SAAS,CAAC;IACnB,aAAa,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACzC,oDAAoD;IACpD,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,qEAAqE;IACrE,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD;kEAC8D;IAC9D,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACzC,+DAA+D;IAC/D,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,0EAA0E;IAC1E,SAAS,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA6DD;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,YAAY,CA8C3E"}
@@ -0,0 +1,3 @@
1
+ export { FillStrokeSwatch } from './FillStrokeSwatch';
2
+ export type { FillStrokeSwatchProps } from './FillStrokeSwatch';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FillStrokeSwatch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../chunks/FillStrokeSwatch-BViKXIPx.js";
2
+ export { e as FillStrokeSwatch };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../chunks/FontFamilySelect-CO19kyOO.js";
1
+ import { t as e } from "../../chunks/FontFamilySelect-r9TV_xIH.js";
2
2
  export { e as FontFamilySelect };
@@ -1 +1 @@
1
- {"version":3,"file":"SceneGradientHandles.d.ts","sourceRoot":"","sources":["../../../src/components/GradientEditor/SceneGradientHandles.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,EAML,KAAK,SAAS,EAEd,KAAK,QAAQ,EACb,KAAK,KAAK,EACV,KAAK,MAAM,EAEX,KAAK,IAAI,EACV,MAAM,iBAAiB,CAAC;AAGzB;sEACsE;AACtE,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE1C;8CAC8C;AAC9C,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,yBAAyB,CACxC,KAAK,SAAS,eAAe,EAC7B,MAAM,SAAS,MAAM,EACrB,KAAK,SAAS,QAAQ;IAEtB,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IACnC;8DAC0D;IAC1D,YAAY,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC5C,2EAA2E;IAC3E,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,yDAAyD;IACzD,IAAI,EAAE,SAAS,CAAC;IAChB;iCAC6B;IAC7B,IAAI,CAAC,EAAE,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,SAAS,eAAe,EAC7B,MAAM,SAAS,MAAM,EACrB,KAAK,SAAS,QAAQ,EACtB,KAAK,EAAE,yBAAyB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG,YAAY,GAAG,IAAI,CAgC7E"}
1
+ {"version":3,"file":"Sce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as e, r as t, t as n } from "../../chunks/GradientEditor-B_ymIr4Q.js";
1
+ import { n as e, r as t, t as n } from "../../chunks/GradientEditor-BRTxHG-W.js";
2
2
  export { t as GradientEditor, e as GradientHandles, n as SceneGradientHandles };
@@ -1,4 +1,4 @@
1
- import { type InputHTMLAttributes, type ReactElement } from 'react';
1
+ import { type InputHTMLAttributes } from 'react';
2
2
  /** Props for {@link InlineRange} — a range input's, with `value` required. */
3
3
  export type InlineRangeProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value' | 'min' | 'max'> & {
4
4
  value: number;
@@ -13,5 +13,9 @@ export type InlineRangeProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type
13
13
  * one exists to sit inline beside a swatch or a readout, and to own the track
14
14
  * painting both of those surfaces need.
15
15
  */
16
- export declare function InlineRange(props: InlineRangeProps): ReactElement;
16
+ export declare const InlineRange: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "type" | "min" | "max"> & {
17
+ value: number;
18
+ min?: number;
19
+ max?: number;
20
+ } & import("react").RefAttributes<HTMLInputElement>>;
17
21
  //# sourceMappingURL=InlineRange.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InlineRange.d.ts","sourceRoot":"","sources":["../../../src/components/InlineRange/InlineRange.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,mBAAmB,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAIxF,8EAA8E;AAC9E,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,CACjC,GAAG;IACF,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,YAAY,CAejE"}
1
+ {"version":3,"file":"InlineRange.d.ts","sourceRoot":"","sources":["../../../src/components/InlineRange/InlineRange.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkC,KAAK,mBAAmB,EAAY,MAAM,OAAO,CAAC;AAI3F,8EAA8E;AAC9E,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,CACjC,GAAG;IACF,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW;WAbf,MAAM;UACP,MAAM;UACN,MAAM;oDA8BZ,CAAC"}
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../chunks/InlineRange-DdIlfGqG.js";
1
+ import { t as e } from "../../chunks/InlineRange-BwGFDhpT.js";
2
2
  export { e as InlineRange };
@@ -1,8 +1,15 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import { type TextFieldProps as RACTextFieldProps, type ValidationResult } from 'react-aria-components';
3
+ import { type FieldOrientation } from '../Field/Field';
3
4
  /** Props for {@link Input}, on top of React Aria's `TextField` props. */
4
5
  export type InputProps = Omit<RACTextFieldProps, 'children' | 'className'> & {
5
6
  label?: ReactNode;
7
+ /**
8
+ * `'stacked'` (the default) puts the label above the field; `'row'` sets it
9
+ * beside the field at its own width, with any description or error on a
10
+ * line below. Same vocabulary as {@link Field}'s `orientation`.
11
+ */
12
+ orientation?: FieldOrientation;
6
13
  description?: ReactNode;
7
14
  errorMessage?: ReactNode | ((v: ValidationResult) => ReactNode);
8
15
  placeholder?: string;
@@ -19,6 +26,12 @@ export type InputProps = Omit<RACTextFieldProps, 'children' | 'className'> & {
19
26
  */
20
27
  export declare const Input: import("react").ForwardRefExoticComponent<Omit<RACTextFieldProps, "className" | "children"> & {
21
28
  label?: ReactNode;
29
+ /**
30
+ * `'stacked'` (the default) puts the label above the field; `'row'` sets it
31
+ * beside the field at its own width, with any description or error on a
32
+ * line below. Same vocabulary as {@link Field}'s `orientation`.
33
+ */
34
+ orientation?: FieldOrientation;
22
35
  description?: ReactNode;
23
36
  errorMessage?: ReactNode | ((v: ValidationResult) => ReactNode);
24
37
  placeholder?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAC7D,OAAO,EAML,KAAK,cAAc,IAAI,iBAAiB,EACxC,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAC;AAI/B,yEAAyE;AACzE,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,iBAAiB,EAAE,UAAU,GAAG,WAAW,CAAC,GAAG;IAC3E,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,CAAC,EAAE,gBAAgB,KAAK,SAAS,CAAC,CAAC;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,KAAK;YAhBR,SAAS;kBACH,SAAS;mBACR,SAAS,GAAG,CAAC,CAAC,CAAC,EAAE,gBAAgB,KAAK,SAAS,CAAC;kBACjD,MAAM;uBACD,SAAS;wBACR,SAAS;gBACjB,MAAM;oDAyClB,CAAC"}
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAC7D,OAAO,EAML,KAAK,cAAc,IAAI,iBAAiB,EACxC,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGrE,yEAAyE;AACzE,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,iBAAiB,EAAE,UAAU,GAAG,WAAW,CAAC,GAAG;IAC3E,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,CAAC,EAAE,gBAAgB,KAAK,SAAS,CAAC,CAAC;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,KAAK;YAtBR,SAAS;IACjB;;;;OAIG;kBACW,gBAAgB;kBAChB,SAAS;mBACR,SAAS,GAAG,CAAC,CAAC,CAAC,EAAE,gBAAgB,KAAK,SAAS,CAAC;kBACjD,MAAM;uBACD,SAAS;wBACR,SAAS;gBACjB,MAAM;oDAqDlB,CAAC"}
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../chunks/Input-B9Vh7ASP.js";
1
+ import { t as e } from "../../chunks/Input-Bx2cuUbS.js";
2
2
  export { e as Input };
@@ -2,33 +2,59 @@
2
2
  * The row chrome behind a sidebar list — layers, history, anything that is a
3
3
  * flat column of selectable rows in a panel.
4
4
  *
5
- * It owns the container, the row box and the empty state, and nothing else:
6
- * what a row *means* stays with the consumer. History dims its redo entries
7
- * and rules a line under the current one; a layer list drags to reorder and
8
- * leads each row with a swatch. Both reach that through `className` and
9
- * `rowProps` rather than through options here, so this does not grow a flag
10
- * per consumer.
5
+ * It owns the container, the row box, the empty state, the list's semantics
6
+ * and its keyboard; what a row *means* stays with the consumer. History dims
7
+ * its redo entries and rules a line under the current one; a layer list drags
8
+ * to reorder and leads each row with a swatch. Both reach that through
9
+ * `className` and `rowProps` rather than through options here, so this does
10
+ * not grow a flag per consumer.
11
11
  *
12
12
  * Rows are one height and one inset for every list, which is the point: two
13
13
  * panels stacked in the same sidebar have to agree, and they did not while
14
14
  * each owned a private copy of the same CSS.
15
+ *
16
+ * **Semantics.** The role follows what the list can do:
17
+ * - nothing to select or activate → `list` / `listitem`, and no row is focusable;
18
+ * - `selection` with no row controls → `listbox` / `option`, `aria-selected`;
19
+ * - any row with `trailing` controls, or `onActivate` without `selection` →
20
+ * `grid` / `row`, with the leading content and label in one `gridcell` and
21
+ * the controls in a second. An option may not contain interactive content,
22
+ * so a list whose rows host toggles cannot be a listbox.
23
+ *
24
+ * **Keyboard.** One row is in the tab order: the one last focused, else the
25
+ * first selected, else the first. Up/Down and Home/End move between rows,
26
+ * Enter/Space activate, carrying modifiers so Shift+Space is Shift+click, and
27
+ * Alt+Up/Down call `onNudge`. In a multi-select list with `onSelectRange`,
28
+ * Shift+Up/Down and Shift+Home/End move focus and report the rows from the
29
+ * anchor — the row last focused or activated other than by a range — to it. In a grid, Right steps from the row into its
30
+ * controls, Left and Escape step back; the controls leave the tab order.
15
31
  */
16
32
  import { type HTMLAttributes, type ReactNode } from 'react';
33
+ import type { PressModifiers, ReorderGhost } from '../../useReorderDragList';
17
34
  /** One row. `id` is the React key. */
18
35
  export interface ItemListRow {
19
36
  id: string;
20
37
  label: ReactNode;
21
- /** Fixed-size content before the label — a color swatch, a checkbox. */
38
+ /** Fixed-size decoration before the label — a color swatch. Not a control:
39
+ * those go in `trailing`. */
22
40
  leading?: ReactNode;
23
- /** The row the list considers current. */
41
+ /** Buttons and toggles after the label — visibility, lock. They keep their
42
+ * own clicks and keys, and turn the list into a grid. A control that edits
43
+ * with the arrow keys does not belong here. */
44
+ trailing?: ReactNode;
45
+ /** The row the list considers current. With `selection` set this is also
46
+ * `aria-selected`. */
24
47
  selected?: boolean;
25
48
  /** Present but not in effect — history's redo entries. */
26
49
  muted?: boolean;
50
+ /** Part of a drag in progress — `useReorderDragList`'s `state.draggedIds`. */
51
+ dragging?: boolean;
27
52
  /** Consumer classes for states this component has no opinion about. */
28
53
  className?: string;
29
54
  /** Handlers and data attributes for this row's element. `data-*` is
30
55
  * spelled out because `HTMLAttributes` does not admit it, and every
31
- * consumer here marks its rows up with one. */
56
+ * consumer here marks its rows up with one. A handler here runs before the
57
+ * list's own, and `preventDefault()` in it keeps the list out. */
32
58
  rowProps?: HTMLAttributes<HTMLDivElement> & Record<`data-${string}`, unknown>;
33
59
  }
34
60
  export interface ItemListProps {
@@ -36,10 +62,44 @@ export interface ItemListProps {
36
62
  /** Shown in place of the rows when there are none. */
37
63
  empty?: ReactNode;
38
64
  className?: string;
39
- /** Rendered inside the container above the rows — a drop indicator. */
65
+ /**
66
+ * Whether rows are selectable, and how many at once. The list reports
67
+ * `selected` to assistive tech; choosing what is selected stays with
68
+ * `onActivate`.
69
+ */
70
+ selection?: 'single' | 'multi';
71
+ /**
72
+ * A row was clicked, or Enter/Space was pressed on it, with the modifiers
73
+ * held. Clicks and keys on a row's `trailing` controls do not reach this.
74
+ */
75
+ onActivate?(id: string, index: number, mods: PressModifiers): void;
76
+ /**
77
+ * Alt+Up (`-1`) or Alt+Down (`1`) on a row: move it. Focus stays on the
78
+ * row wherever it lands. `useReorderDragList`'s `nudge` fits as-is.
79
+ */
80
+ onNudge?(id: string, index: number, delta: -1 | 1): void;
81
+ /**
82
+ * With `selection="multi"`: Shift+Up/Down or Shift+Home/End moved focus,
83
+ * and `ids` is every row from the anchor to the newly focused one, in list
84
+ * order. The anchor is the row last focused or activated other than by a
85
+ * range move, so a click or a plain arrow move re-anchors. What the range does to
86
+ * the selection stays with the consumer, as with `onActivate`. Without it,
87
+ * Shift+Arrow only moves focus.
88
+ */
89
+ onSelectRange?(ids: string[]): void;
90
+ /**
91
+ * Where a drop would land, as an insertion index: `0` is above the first
92
+ * row, `rows.length` below the last. The list draws the seam itself, from
93
+ * the rows' own boxes, so it follows whatever height the density gives
94
+ * them. `useReorderDragList`'s `state.targetIndex` goes here as-is.
95
+ */
96
+ dropIndex?: number | null;
97
+ /** Rendered inside the container ahead of the rows. */
40
98
  overlay?: ReactNode;
41
99
  /** Spread onto the container: pointer handlers for a drag, `aria-label`. */
42
100
  containerProps?: HTMLAttributes<HTMLDivElement>;
101
+ /** Rows to draw again under the pointer during a drag — `useReorderDragList`'s `state.ghost`. */
102
+ ghost?: ReorderGhost | null;
43
103
  }
44
104
  export declare const ItemList: import("react").ForwardRefExoticComponent<ItemListProps & import("react").RefAttributes<HTMLDivElement>>;
45
105
  //# sourceMappingURL=ItemList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ItemList.d.ts","sourceRoot":"","sources":["../../../src/components/ItemList/ItemList.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAc,KAAK,cAAc,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAGlF,sCAAsC;AACtC,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,SAAS,CAAC;IACjB,wEAAwE;IACxE,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;oDAEgD;IAChD,QAAQ,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,MAAM,CAAC,QAAQ,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;CAC/E;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,SAAS,WAAW,EAAE,CAAC;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B;;;;OAIG;IACH,SAAS,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC/B;;;OAGG;IACH,UAAU,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,GAAG,IAAI,CAAC;IACnE;;;OAGG;IACH,OAAO,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;IACzD;;;;;;;OAOG;IACH,aAAa,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACpC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,uDAAuD;IACvD,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,4EAA4E;IAC5E,cAAc,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;IAChD,iGAAiG;IACjG,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;CAC7B;AAUD,eAAO,MAAM,QAAQ,0GAqOnB,CAAC"}
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../chunks/ItemList-BZJQReXD.js";
1
+ import { t as e } from "../../chunks/ItemList-DzJ2lK0R.js";
2
2
  export { e as ItemList };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../chunks/Jog-BYrxbAQU.js";
1
+ import { t as e } from "../../chunks/Jog-LPoac9s4.js";
2
2
  export { e as Jog };
@@ -4,5 +4,6 @@ export { KeySequence } from './Keycaps';
4
4
  export type { KeySequenceProps, KeySpec } from './Keycaps';
5
5
  export { keyGlyph } from './keyGlyph';
6
6
  export { keySpecsFromMods, keySpecFromKey, detectPlatform } from './keySpecsFromMods';
7
+ export { keySpecsFromShortcut } from './keySpecsFromShortcut';
7
8
  export type { LogicalMod, LogicalModSpec, Platform, LegendStyle, KeySpecsFromModsOptions, } from './keySpecsFromMods';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Keycaps/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AACnD,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,YAAY,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACtF,YAAY,EACV,UAAU,EACV,cAAc,EACd,QAAQ,EACR,WAAW,EACX,uBAAuB,GACxB,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Keycaps/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AACnD,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,YAAY,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,YAAY,EACV,UAAU,EACV,cAAc,EACd,QAAQ,EACR,WAAW,EACX,uBAAuB,GACxB,MAAM,oBAAoB,CAAC"}
@@ -1,3 +1,3 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "../../chunks/Keycaps-CGNQV2Pz.js";
2
- import { t as o } from "../../chunks/keyGlyph-Bp0wnLHn.js";
3
- export { e as KeyCap, t as KeySequence, a as detectPlatform, r as inferKeycapKind, o as keyGlyph, n as keySpecFromKey, i as keySpecsFromMods };
1
+ import { t as e } from "../../chunks/keyGlyph-CLvUHU8c.js";
2
+ import { a as t, i as n, n as r, o as i, r as a, s as o, t as s } from "../../chunks/Keycaps-CKiKOJnJ.js";
3
+ export { a as KeyCap, r as KeySequence, t as detectPlatform, n as inferKeycapKind, e as keyGlyph, i as keySpecFromKey, o as keySpecsFromMods, s as keySpecsFromShortcut };
@@ -35,6 +35,8 @@ export interface KeySpecsFromModsOptions {
35
35
  * platform. */
36
36
  legend?: LegendStyle;
37
37
  }
38
+ /** Every label {@link keySpecsFromMods} can produce, on any platform and legend. */
39
+ export declare const MODIFIER_LABELS: ReadonlySet<string>;
38
40
  /** Detect the user's OS from the browser environment. UA sniffing — not
39
41
  * 100% reliable, but adequate for picking a modifier-glyph convention.
40
42
  * Falls back to `'macos'` (matches the kit's docs convention) when
@@ -1 +1 @@
1
- {"version":3,"file":"keySpecsFromMods.d.ts","sourceRoot":"","sources":["../../../src/components/Keycaps/keySpecsFromMods.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;wEACwE;AACxE,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAEnE;+BAC+B;AAC/B,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAErD;;;;;;;;;;2EAU2E;AAC3E,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;AAErD,0DAA0D;AAC1D,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,UAAU,CAAC;IACjB;yDACqD;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAC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EAAE,WAAW,CAAC;CACtB;AAgCD,oFAAoF;AACpF,eAAO,MAAM,eAAe,EAAE,WAAW,CAAC,MAAM,CAI/C,CAAC;AAEF;;;kCAGkC;AAClC,wBAAgB,cAAc,IAAI,QAAQ,CASzC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,cAAc,EAAE,EAC/B,IAAI,GAAE,uBAA4B,GACjC,SAAS,OAAO,EAAE,CAOpB;AAuBD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAC5B,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,uBAAuB,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAO,GAC1D,OAAO,CAMT"}
@@ -0,0 +1,16 @@
1
+ import type { ShortcutInput } from '../ToolPalette/formatShortcut';
2
+ import type { KeySpec } from './Keycaps';
3
+ import { type KeySpecsFromModsOptions } from './keySpecsFromMods';
4
+ /**
5
+ * A shortcut as `KeySequence` keys, one per key: mod, shift, alt, then the
6
+ * key, each in the platform's own legend (`⌘` on macOS, `Ctrl` elsewhere).
7
+ * The `KeySpec` counterpart of `formatShortcutParts`, which always prints
8
+ * macOS glyphs. `shift: 'optional'` becomes an optional key; a key list
9
+ * renders its first key. Returns `undefined` for no shortcut.
10
+ *
11
+ * ```tsx
12
+ * <KeySequence keys={keySpecsFromShortcut({ key: 'z', mod: true, shift: true })} />
13
+ * ```
14
+ */
15
+ export declare function keySpecsFromShortcut(shortcut: ShortcutInput | undefined, opts?: KeySpecsFromModsOptions): readonly KeySpec[] | undefined;
16
+ //# sourceMappingURL=keySpecsFromShortcut.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keySpecsFromShortcut.d.ts","sourceRoot":"","sources":["../../../src/components/Keycaps/keySpecsFromShortcut.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAoC,KAAK,uBAAuB,EAAuB,MAAM,oBAAoB,CAAC;AAEzH;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,aAAa,GAAG,SAAS,EACnC,IAAI,GAAE,uBAA4B,GACjC,SAAS,OAAO,EAAE,GAAG,SAAS,CAShC"}
@@ -0,0 +1,79 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { StanceProps } from '../stance';
3
+ /** One layer. With a body (see `renderBody`) it draws as a card that folds its
4
+ * body away; without one, as a one-line row. Either can hold child layers. */
5
+ export interface LayerListItem {
6
+ id: string;
7
+ /** The layer's name. Also what its controls are labeled by. */
8
+ label: string;
9
+ /** Shown in the header in place of `label` — a select that switches the
10
+ * layer's kind, say. */
11
+ title?: ReactNode;
12
+ /** Fixed-size content before the label: a color swatch, a kind icon. */
13
+ leading?: ReactNode;
14
+ /** Drawn in the drag handle in place of the grip — an ordinal. */
15
+ badge?: ReactNode;
16
+ /** Which of its list this layer is: an index into the theme's tone list, or
17
+ * a color. A card draws its edge and handle in it and recolors its controls. */
18
+ tone?: StanceProps['tone'];
19
+ /** Cannot be dragged, hidden or removed, walls off drops on either side, and
20
+ * selects alone rather than joining a multi-selection. */
21
+ locked?: boolean;
22
+ /** Shown or not, when the list has `onVisibilityChange`. Default true. */
23
+ visible?: boolean;
24
+ children?: LayerListItem[];
25
+ /** Folds the body and children away until the user opens them.
26
+ * `collapsedIds` overrides it. */
27
+ defaultCollapsed?: boolean;
28
+ }
29
+ /**
30
+ * A reorder: `ids`, siblings under `parentId` (`null` at the top level), now
31
+ * sit as one block in list order starting at `index` of the parent's children.
32
+ * A drag never moves a layer to another parent.
33
+ */
34
+ export interface LayerMove {
35
+ ids: string[];
36
+ parentId: string | null;
37
+ index: number;
38
+ }
39
+ /** Props for `<LayerList>`. */
40
+ export interface LayerListProps {
41
+ items: LayerListItem[];
42
+ /** Omit for a list the user cannot reorder. */
43
+ onReorder?: (move: LayerMove) => void;
44
+ /** Giving both makes rows selectable: a click selects one, shift-click adds
45
+ * or removes one, and dragging a selected row drags its selected siblings. */
46
+ selectedIds?: readonly string[];
47
+ onSelect?: (ids: string[]) => void;
48
+ /** Adds a visibility checkbox to every unlocked layer. */
49
+ onVisibilityChange?: (id: string, visible: boolean) => void;
50
+ /** Adds a ✕ to every unlocked layer. */
51
+ onRemove?: (id: string) => void;
52
+ /** A layer's controls. Returning `null` leaves that layer a one-line row. */
53
+ renderBody?: (item: LayerListItem) => ReactNode;
54
+ /** Ids whose body and children are folded away. Giving it makes folding
55
+ * controlled; `onCollapsedChange` fires either way. */
56
+ collapsedIds?: readonly string[];
57
+ onCollapsedChange?: (ids: string[]) => void;
58
+ /** Heading above the list. */
59
+ title?: string;
60
+ /** Names the list for assistive tech when it has no `title`. */
61
+ label?: string;
62
+ /** Kinds the user can add, as buttons beside the title. Shown only with `onAdd`. */
63
+ addKinds?: string[];
64
+ onAdd?: (kind: string) => void;
65
+ /** Shown in place of the list when `items` is empty. */
66
+ empty?: ReactNode;
67
+ /** Appended to the root's class list — the module's own names are hashed. */
68
+ className?: string;
69
+ }
70
+ /** Returns `items` with `move` applied, for a consumer that holds the tree as state. */
71
+ export declare function moveLayers(items: LayerListItem[], move: LayerMove): LayerListItem[];
72
+ /**
73
+ * An ordered, drag-reorderable list of layers — a document's objects, a lab's
74
+ * canvases, a fill's effects. Each layer is a one-line row or, with a body, a
75
+ * card whose controls fold away; either can nest child layers. Selection,
76
+ * visibility, removal and an add palette are each on when their handler is given.
77
+ */
78
+ export declare function LayerList(props: LayerListProps): import("react/jsx-runtime").JSX.Element;
79
+ //# sourceMappingURL=LayerList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LayerList.d.ts","sourceRoot":"","sources":["../../../src/components/LayerList/LayerList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AAUf,OA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AA6E;IAC7E,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,SAAS,CAAC;IAChD;4DACwD;IACxD,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC5C,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oFAAoF;IACpF,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,wDAAwD;IACxD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wFAAwF;AACxF,wBAAgB,UAAU,CAAC,KAAK,EAAE,aAAa,EAAE,EAAE,IAAI,EAAE,SAAS,GAAG,aAAa,EAAE,CAMnF;AA4DD;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,2CA2L9C"}
@@ -0,0 +1,3 @@
1
+ export { LayerList, type LayerListItem, type LayerListProps, type LayerMove, moveLayers } from './LayerList';
2
+ export { type UseSceneLayerListArgs, useSceneLayerList } from './useSceneLayerList';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/LayerList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC7G,OAAO,EAAE,KAAK,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { n as e, r as t, t as n } from "../../chunks/LayerList-BeGrkLb9.js";
2
+ export { e as LayerList, t as moveLayers, n as useSceneLayerList };