@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,5 +1,6 @@
1
1
  import { type ReactNode } from 'react';
2
- import type { PrefNumberFormat } from '../Prefs/schema';
2
+ import { type StanceProps } from '../stance';
3
+ import type { PropertyFieldChrome } from './PropertyField';
3
4
  /**
4
5
  * How much room a container gives its rows — gaps, padding, and field height,
5
6
  * moved together. Set on any container in the family; it reaches every
@@ -28,14 +29,31 @@ export interface PropertyMetricProps {
28
29
  * Exported for the family's other files, which share the same two props. */
29
30
  export declare function propertyMetricClass(base: string, { density, align }: PropertyMetricProps, className?: string): string;
30
31
  /** Props for `<PropertyPanel>`. */
31
- export interface PropertyPanelProps extends PropertyMetricProps {
32
+ export interface PropertyPanelProps extends PropertyMetricProps, StanceProps {
32
33
  title?: ReactNode;
34
+ /** Controls on the trailing edge of the title row — a switch, a clear
35
+ * button. They sit outside the heading, so they neither take its type nor
36
+ * join its accessible name. */
37
+ actions?: ReactNode;
38
+ /**
39
+ * Lets text inside the panel be selected and copied. A panel is chrome by
40
+ * default, so a drag across it moves a slider rather than painting a
41
+ * selection; a `debug` panel defaults to selectable, since what it shows —
42
+ * ids, keys, traces — is there to be copied.
43
+ */
44
+ selectable?: boolean;
33
45
  children: ReactNode;
34
46
  className?: string;
35
47
  }
36
- /** A titled panel holding property rows — the sidebar container the rest of
37
- * this module's components fill. */
38
- export declare function PropertyPanel({ title, children, className, density, align, }: PropertyPanelProps): import("react/jsx-runtime").JSX.Element;
48
+ /**
49
+ * A titled panel holding property rows — the sidebar container the rest of
50
+ * this module's components fill.
51
+ *
52
+ * `stance` says what kind of content it holds and `tone` which of its peers it
53
+ * is; the theme's `--wzl-panel-*` and `--wzl-stance-*` slots decide how each looks. A stanced
54
+ * panel's title takes the row-label recipe rather than the display title.
55
+ */
56
+ export declare function PropertyPanel({ title, actions, selectable, children, className, density, align, stance, tone, }: PropertyPanelProps): import("react/jsx-runtime").JSX.Element;
39
57
  /** How a property list packs its rows into two columns. */
40
58
  export type PropertyListPack = 'auto-color' | 'pairs' | 'one-up';
41
59
  /** Props for `<PropertyList>`. */
@@ -58,7 +76,7 @@ export interface PropertyListProps extends PropertyMetricProps {
58
76
  * Grid container for PropertyRows. Use standalone for chrome-less layouts, or
59
77
  * nest inside <PropertyPanel/> for the standard glass card.
60
78
  */
61
- export declare function PropertyList({ children, className, pack, density, align, }: PropertyListProps): import("react/jsx-runtime").JSX.Element;
79
+ export declare const PropertyList: import("react").ForwardRefExoticComponent<PropertyListProps & import("react").RefAttributes<HTMLDivElement>>;
62
80
  /** Props for `<PropertySpan>`. */
63
81
  export interface PropertySpanProps {
64
82
  children: ReactNode;
@@ -71,6 +89,17 @@ export interface PropertySpanProps {
71
89
  * everything else a consumer puts in the grid.
72
90
  */
73
91
  export declare function PropertySpan({ children, className }: PropertySpanProps): import("react/jsx-runtime").JSX.Element;
92
+ /** Props for `<PropertyNote>`. */
93
+ export interface PropertyNoteProps {
94
+ children: ReactNode;
95
+ className?: string;
96
+ }
97
+ /**
98
+ * Muted paragraph that spans both columns of the grid — a group's help text,
99
+ * sitting above the rows it describes rather than beside one of them.
100
+ * `<PropertyRow description>` covers the per-row case.
101
+ */
102
+ export declare function PropertyNote({ children, className }: PropertyNoteProps): import("react/jsx-runtime").JSX.Element;
74
103
  /** Which control shape a row holds, which decides its intrinsic layout. */
75
104
  export type PropertyRowVariant = 'default' | 'color' | 'checkbox';
76
105
  /** Whether a row's label sits above its control or beside it. */
@@ -106,259 +135,24 @@ export interface PropertyRowProps extends PropertyMetricProps {
106
135
  * member has to carry its own name. */
107
136
  group?: boolean;
108
137
  className?: string;
109
- /** The row is auto: its value is not pinned and the owner computes it. Draws
110
- * the control ghosted and colorless. */
111
- auto?: boolean;
112
- /** Given, the row carries a pin dot that toggles `auto`. Omitted, the row can
113
- * show an auto state but not change it. */
114
- onAutoChange?: (next: boolean) => void;
115
- /** Marks the row's element for a panel-level gesture handler. `PropertyRow`
116
- * does not spread unknown props, so this is declared rather than inherited. */
117
- 'data-auto-path'?: string;
118
- }
119
- /** The label-plus-control frame every typed row below is built from. Use it
120
- * directly for a control this module does not cover. */
121
- export declare function PropertyRow({ label, readout, description, variant, layout, span, children, htmlFor, group, className, density, align, auto, onAutoChange, 'data-auto-path': autoPath, }: PropertyRowProps): import("react/jsx-runtime").JSX.Element;
122
- /** Props for `<SliderRow>`. */
123
- export interface SliderRowProps extends PropertyMetricProps {
124
- label: ReactNode;
125
- value: number;
126
- min: number;
127
- max: number;
128
- step?: number;
129
- /**
130
- * The committed value. Given `onInput` as well, it fires once a drag ends
131
- * or a typed readout is accepted; on its own it fires on every move, which
132
- * is what a row with one callback has always done.
133
- */
134
- onChange: (next: number) => void;
135
- /**
136
- * The live value, fired continuously through a drag. Pass it alongside
137
- * `onChange` when the write is expensive — cheap state here, the costly
138
- * work there. Mirrors `<Slider>`'s `onInput` / `onChange` pair.
139
- */
140
- onInput?: (next: number) => void;
141
- /** Override how the value is rendered next to the label. Defaults to `value.toString()`. */
142
- format?: (value: number) => ReactNode;
143
- /**
144
- * Static text in place of the editable readout. Use it when the row is not
145
- * showing a number a caller could type back — an auto row's `auto · 18`, say,
146
- * which an editable field would seed a draft with and then fail to parse.
147
- */
148
- readout?: ReactNode;
149
- /** A named display for the value: `compact` reads `2.0M`. `format` wins when both are given. */
150
- notation?: PrefNumberFormat;
151
- /**
152
- * Optional suffix rendered next to the readout. A string becomes a
153
- * baseline-aligned dim "word" unit (e.g. "px"); pass JSX like `<sup>°</sup>`
154
- * to get the browser's native super positioning for symbol units.
155
- */
156
- unit?: ReactNode;
157
- layout?: PropertyRowLayout;
158
- description?: string;
159
- /** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
160
- span?: boolean;
161
- /** The row is auto — see `<PropertyRow auto>`. */
162
- auto?: boolean;
163
- /** Toggles `auto` from a pin dot — see `<PropertyRow onAutoChange>`. */
164
- onAutoChange?: (next: boolean) => void;
165
- /** Marks the row for a panel-level gesture handler — see `<PropertyRow data-auto-path>`. */
166
- 'data-auto-path'?: string;
167
- }
168
- /** A bounded number edited by dragging, with a live readout whose precision
169
- * follows `step`. */
170
- export declare function SliderRow({ label, value, min, max, step, onChange, onInput, format, readout, notation, unit, layout, description, span, density, align, auto, onAutoChange, 'data-auto-path': autoPath, }: SliderRowProps): import("react/jsx-runtime").JSX.Element;
171
- /** Props for `<ColorRow>`. */
172
- export interface ColorRowProps extends PropertyMetricProps {
173
- label: ReactNode;
174
- value: string;
175
- /**
176
- * The committed color. Given `onInput` as well, it fires once the picker
177
- * closes; on its own it fires on every move inside it, which is what a row
178
- * with one callback has always done.
179
- */
180
- onChange: (next: string) => void;
181
- /**
182
- * The live color, fired continuously while the picker is open. Pass it
183
- * alongside `onChange` when the write is expensive — cheap state here, the
184
- * costly work there. Mirrors `<Slider>`'s `onInput` / `onChange` pair.
185
- */
186
- onInput?: (next: string) => void;
187
- /** 0..1 alpha. When provided, a translucent slider renders beneath the swatch. */
188
- alpha?: number;
189
- /** The committed alpha, on the same terms as `onChange`. */
190
- onAlphaChange?: (next: number) => void;
191
- /** The live alpha, on the same terms as `onInput`. */
192
- onAlphaInput?: (next: number) => void;
193
- /**
194
- * Render the alpha track as inert (dimmed, no thumb, not-allowed cursor).
195
- * Use when the color's consumer drops alpha so the affordance reads dead.
196
- */
197
- alphaDisabled?: boolean;
198
- /** Label beside the swatch (default) or above it. */
199
- layout?: PropertyRowLayout;
200
- description?: string;
201
- /** Right-aligned readout shown next to the label — see `<PropertyRow readout>`. */
202
- readout?: ReactNode;
203
- /** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
204
- span?: boolean;
205
- /** The row is auto — see `<PropertyRow auto>`. */
206
- auto?: boolean;
207
- /** Toggles `auto` from a pin dot — see `<PropertyRow onAutoChange>`. */
208
- onAutoChange?: (next: boolean) => void;
209
- /** Marks the row for a panel-level gesture handler — see `<PropertyRow data-auto-path>`. */
210
- 'data-auto-path'?: string;
211
- }
212
- /** A color swatch, optionally with an alpha slider beneath it. */
213
- export declare function ColorRow({ label, readout, value, onChange, onInput, alpha, onAlphaChange, onAlphaInput, alphaDisabled, layout, description, span, density, align, auto, onAutoChange, 'data-auto-path': autoPath, }: ColorRowProps): import("react/jsx-runtime").JSX.Element;
214
- /** Props for `<CheckboxRow>`. */
215
- export interface CheckboxRowProps extends PropertyMetricProps {
216
- label: ReactNode;
217
- /** Absent reads as unchecked. */
218
- value: boolean | undefined;
219
- onChange: (next: boolean) => void;
220
- /** Label beside the box (default) or above it. */
221
- layout?: PropertyRowLayout;
222
- description?: string;
223
- /** Right-aligned readout shown next to the label — see `<PropertyRow readout>`. */
224
- readout?: ReactNode;
225
- /** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
226
- span?: boolean;
227
- /** The row is auto — see `<PropertyRow auto>`. */
228
- auto?: boolean;
229
- /** Toggles `auto` from a pin dot — see `<PropertyRow onAutoChange>`. */
230
- onAutoChange?: (next: boolean) => void;
231
- /** Marks the row for a panel-level gesture handler — see `<PropertyRow data-auto-path>`. */
232
- 'data-auto-path'?: string;
233
- }
234
- /** A boolean checkbox. */
235
- export declare function CheckboxRow({ label, readout, value, onChange, layout, span, description, density, align, auto, onAutoChange, 'data-auto-path': autoPath, }: CheckboxRowProps): import("react/jsx-runtime").JSX.Element;
236
- /** Props for `<SwitchRow>`. */
237
- export interface SwitchRowProps extends Omit<CheckboxRowProps, 'value'> {
238
- /** Absent reads as off. */
239
- value: boolean | undefined;
240
- }
241
- /**
242
- * A boolean switch — the same row as `<CheckboxRow>`, drawn as an on/off
243
- * toggle. Reach for it where the change takes effect immediately, and for
244
- * a checkbox where it is submitted with a form.
245
- */
246
- export declare function SwitchRow({ label, readout, value, onChange, layout, span, description, density, align, auto, onAutoChange, 'data-auto-path': autoPath, }: SwitchRowProps): import("react/jsx-runtime").JSX.Element;
247
- /** Props for `<TextRow>`. */
248
- export interface TextRowProps extends PropertyMetricProps {
249
- label: ReactNode;
250
- /** Absent reads as an empty field. */
251
- value: string | null | undefined;
252
- onChange: (next: string) => void;
253
- placeholder?: string;
254
- maxLength?: number;
255
- layout?: PropertyRowLayout;
256
- description?: string;
257
- /** Right-aligned readout shown next to the label — see `<PropertyRow readout>`. */
258
- readout?: ReactNode;
259
- /** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
260
- span?: boolean;
261
- /** The row is auto — see `<PropertyRow auto>`. */
138
+ /** The row is auto: its value is not pinned and the owner computes it. The
139
+ * control is hidden — its box kept, so the row does not resize — and the
140
+ * row reads out the word instead. */
262
141
  auto?: boolean;
263
- /** Toggles `auto` from a pin dot — see `<PropertyRow onAutoChange>`. */
142
+ /** Given, the row's label toggles `auto` when it is clicked. Omitted, the row
143
+ * can show an auto state but not change it.
144
+ *
145
+ * The label then names that toggle, so a control passed as `children` has to
146
+ * carry its own accessible name — every `<PropertyField>` does. */
264
147
  onAutoChange?: (next: boolean) => void;
265
- /** Marks the row for a panel-level gesture handler — see `<PropertyRow data-auto-path>`. */
266
- 'data-auto-path'?: string;
267
- }
268
- /** A single-line text input. */
269
- export declare function TextRow({ label, readout, value, onChange, placeholder, maxLength, layout, description, span, density, align, auto, onAutoChange, 'data-auto-path': autoPath, }: TextRowProps): import("react/jsx-runtime").JSX.Element;
270
- /** Props for `<NumberRow>`. */
271
- export interface NumberRowProps extends PropertyMetricProps {
272
- label: ReactNode;
273
- /** Absent reads as an empty field. */
274
- value: number | null | undefined;
275
148
  /**
276
- * The committed value. Given `onInput` as well, it fires on blur or Enter;
277
- * on its own it fires on every keystroke, which is what a row with one
278
- * callback has always done.
149
+ * What draws the row's control. `bare` (the default) is a native input the
150
+ * row's stylesheet dresses; `framed` is a kit field bringing its own frame,
151
+ * which the row then leaves alone — see {@link PropertyFieldChrome}.
279
152
  */
280
- onChange: (next: number) => void;
281
- /**
282
- * The live value, fired per keystroke. Pass it alongside `onChange` when the
283
- * write is expensive — cheap state here, the costly work there. Mirrors
284
- * `<Slider>`'s `onInput` / `onChange` pair.
285
- */
286
- onInput?: (next: number) => void;
287
- min?: number;
288
- max?: number;
289
- step?: number;
290
- placeholder?: string;
291
- /**
292
- * Optional suffix rendered after the field. A string becomes a dim "word"
293
- * unit (e.g. "px"); pass JSX like `<sup>°</sup>` for symbol units. Display
294
- * only — it never participates in parsing, and the value stays a number.
295
- */
296
- unit?: ReactNode;
297
- layout?: PropertyRowLayout;
298
- description?: string;
299
- /** Right-aligned readout shown next to the label — see `<PropertyRow readout>`. */
300
- readout?: ReactNode;
301
- /** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
302
- span?: boolean;
303
- /** The row is auto — see `<PropertyRow auto>`. */
304
- auto?: boolean;
305
- /** Toggles `auto` from a pin dot — see `<PropertyRow onAutoChange>`. */
306
- onAutoChange?: (next: boolean) => void;
307
- /** Marks the row for a panel-level gesture handler — see `<PropertyRow data-auto-path>`. */
308
- 'data-auto-path'?: string;
309
- }
310
- /** A number typed directly. Reach for `<SliderRow>` when the range matters
311
- * more than the exact value. */
312
- export declare function NumberRow({ label, readout, value, onChange, onInput, min, max, step, placeholder, unit, layout, description, span, density, align, auto, onAutoChange, 'data-auto-path': autoPath, }: NumberRowProps): import("react/jsx-runtime").JSX.Element;
313
- export interface PropertyOption<T extends string> {
314
- value: T;
315
- label: ReactNode;
316
- }
317
- /** Props for `<SelectRow>`. */
318
- export interface SelectRowProps<T extends string> extends PropertyMetricProps {
319
- label: ReactNode;
320
- /** Absent, or not one of `options`, shows a placeholder rather than the first option. */
321
- value: T | undefined;
322
- options: ReadonlyArray<PropertyOption<T>>;
323
- onChange: (next: T) => void;
324
- /** Shown while no option is chosen. Defaults to "Choose option…". */
325
- placeholder?: string;
326
- layout?: PropertyRowLayout;
327
- description?: string;
328
- /** Right-aligned readout shown next to the label — see `<PropertyRow readout>`. */
329
- readout?: ReactNode;
330
- /** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
331
- span?: boolean;
332
- /** The row is auto — see `<PropertyRow auto>`. */
333
- auto?: boolean;
334
- /** Toggles `auto` from a pin dot — see `<PropertyRow onAutoChange>`. */
335
- onAutoChange?: (next: boolean) => void;
336
- /** Marks the row for a panel-level gesture handler — see `<PropertyRow data-auto-path>`. */
337
- 'data-auto-path'?: string;
338
- }
339
- /** A dropdown over a fixed set of choices. Prefer `<ToggleRow>` when there
340
- * are only two or three and they should all stay visible. */
341
- export declare function SelectRow<T extends string>({ label, readout, value, options, onChange, placeholder, layout, description, span, density, align, auto, onAutoChange, 'data-auto-path': autoPath, }: SelectRowProps<T>): import("react/jsx-runtime").JSX.Element;
342
- /** Props for `<ToggleRow>`. */
343
- export interface ToggleRowProps<T extends string> extends PropertyMetricProps {
344
- label: ReactNode;
345
- value: T;
346
- options: ReadonlyArray<PropertyOption<T>>;
347
- onChange: (next: T) => void;
348
- layout?: PropertyRowLayout;
349
- description?: string;
350
- /** Right-aligned readout shown next to the label — see `<PropertyRow readout>`. */
351
- readout?: ReactNode;
352
- /** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
353
- span?: boolean;
354
- /** The row is auto — see `<PropertyRow auto>`. */
355
- auto?: boolean;
356
- /** Toggles `auto` from a pin dot — see `<PropertyRow onAutoChange>`. */
357
- onAutoChange?: (next: boolean) => void;
358
- /** Marks the row for a panel-level gesture handler — see `<PropertyRow data-auto-path>`. */
359
- 'data-auto-path'?: string;
153
+ chrome?: PropertyFieldChrome;
360
154
  }
361
- /** A segmented control: the same choice as a select, with every option
362
- * visible at once. */
363
- export declare function ToggleRow<T extends string>({ label, readout, value, options, onChange, layout, description, span, density, align, auto, onAutoChange, 'data-auto-path': autoPath, }: ToggleRowProps<T>): import("react/jsx-runtime").JSX.Element;
155
+ /** The label-plus-control frame `<PropertyField>` draws its rows in. Use it
156
+ * directly for a control no field kind covers. */
157
+ export declare function PropertyRow({ label, readout, description, variant, layout, span, children, htmlFor, group, className, density, align, auto, onAutoChange, chrome, }: PropertyRowProps): import("react/jsx-runtime").JSX.Element;
364
158
  //# sourceMappingURL=PropertyPanel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PropertyPanel.d.ts","sourceRoot":"","sources":["../../../src/components/Properties/PropertyPan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AAI,CAAC,EAAE,OAAO,CAAC;IACf,wEAAwE;IACxE,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,4FAA4F;IAC5F,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;uBACuB;AACvB,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,EAAE,EAC1C,KAAK,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,QAAQ,EACR,MAAM,EACN,WAAW,EACX,IAAI,EACJ,OAAO,EACP,KAAK,EACL,IAAI,EACJ,YAAY,EACZ,gBAAgB,EAAE,QAAQ,GAC3B,EAAE,cAAc,CAAC,CAAC,CAAC,2CAoCnB"}
1
+ {"version":3,"file":"PropertyPanel.d.ts","sourceRoot":"","sources":["../../../src/components/Properties/PropertyPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAwB,MAAM,OAAO,CAAC;AAExF,OAAO,EAAE,KAAK,WAAW,EAAa,MAAM,WAAW,CAAC;AAExD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAG3D;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE3D;qDACqD;AACrD,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,UAAU,CAAC;AAEpE;qDACqD;AACrD,MAAM,WAAW,mBAAmB;IAClC,gFAAgF;IAChF,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAeD;6EAC6E;AAC7E,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,mBAAmB,EACvC,SAAS,CAAC,EAAE,MAAM,GACjB,MAAM,CAIR;AAED,mCAAmC;AACnC,MAAM,WAAW,kBAA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AAU,CAAC;AAClE,iEAAiE;AACjE,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEnD,iCAAiC;AACjC,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB;IAC3D,KAAK,EAAE,SAAS,CAAC;IACjB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B;;;;OAIG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;4CAGwC;IACxC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;0CAEsC;IACtC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;wEAIoE;IACpE,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;;;OAIG;IACH,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC9B;AAED;mDACmD;AACnD,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,OAAO,EACP,WAAW,EACX,OAAmB,EACnB,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,KAAK,EACL,SAAS,EACT,OAAO,EACP,KAAK,EACL,IAAI,EACJ,YAAY,EACZ,MAAM,GACP,EAAE,gBAAgB,2CA6ClB"}
@@ -0,0 +1,14 @@
1
+ import type { ReactNode } from 'react';
2
+ import { type StanceProps } from '../stance';
3
+ import { type PropertyMetricProps } from './PropertyPanel';
4
+ /** Props for `<Subpanel>`. */
5
+ export interface SubpanelProps extends PropertyMetricProps, StanceProps {
6
+ title: ReactNode;
7
+ children: ReactNode;
8
+ className?: string;
9
+ }
10
+ /** A typographic divider inside a property list: a small title flanked by a
11
+ * rule. Purely a heading — use `<PropertyGroup>` for a bordered section. A
12
+ * stance or tone colors the title and rule. */
13
+ export declare function Subpanel({ title, children, className, density, align, stance, tone }: SubpanelProps): import("react/jsx-runtime").JSX.Element;
14
+ //# sourceMappingURL=Subpanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Subpanel.d.ts","sourceRoot":"","sources":["../../../src/components/Properties/Subpanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,KAAK,WAAW,EAAa,MAAM,WAAW,CAAC;AAExD,OAAO,EAAE,KAAK,mBAAmB,EAAuB,MAAM,iBAAiB,CAAC;AAEhF,8BAA8B;AAC9B,MAAM,WAAW,aAAc,SAAQ,mBAAmB,EAAE,WAAW;IACrE,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;gDAEgD;AAChD,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,aAAa,2CAWnG"}
@@ -1,11 +1,13 @@
1
1
  export type { CurveFieldProps, CurveMark } from './CurveField';
2
2
  export { CurveField } from './CurveField';
3
- export type { EffectCardListItem, EffectCardListProps, EffectCardProps, SubpanelProps, } from './EffectCard';
4
- export { EffectCard, EffectCardList, Subpanel } from './EffectCard';
5
- export type { PinDotProps } from './PinDot';
6
- export { PinDot } from './PinDot';
3
+ export type { DialogRowProps } from './DialogRow';
4
+ export { DialogRow } from './DialogRow';
7
5
  export type { PropertyGroupProps } from './PropertyGroup';
8
6
  export { PropertyGroup } from './PropertyGroup';
9
- export type { CheckboxRowProps, ColorRowProps, NumberRowProps, PropertyAlign, PropertyDensity, PropertyListPack, PropertyListProps, PropertyMetricProps, PropertyOption, PropertyPanelProps, PropertyRowLayout, PropertyRowProps, PropertyRowVariant, PropertySpanProps, SelectRowProps, SliderRowProps, SwitchRowProps, TextRowProps, ToggleRowProps, } from './PropertyPanel';
10
- export { CheckboxRow, ColorRow, NumberRow, PropertyList, PropertyPanel, PropertyRow, PropertySpan, SelectRow, SliderRow, SwitchRow, TextRow, ToggleRow, } from './PropertyPanel';
7
+ export type { PropertyBooleanFieldProps, PropertyColorFieldProps, PropertyControlProps, PropertyEnumFieldProps, PropertyFieldChrome, PropertyFieldKind, PropertyFieldProps, PropertyFieldRowProps, PropertyFontFamilyFieldProps, PropertyNumberFieldProps, PropertyOption, PropertyPaintFieldProps, PropertyStringFieldProps, } from './PropertyField';
8
+ export { PropertyControl, PropertyField } from './PropertyField';
9
+ export type { PropertyAlign, PropertyDensity, PropertyListPack, PropertyListProps, PropertyMetricProps, PropertyNoteProps, PropertyPanelProps, PropertyRowLayout, PropertyRowProps, PropertyRowVariant, PropertySpanProps, } from './PropertyPanel';
10
+ export { PropertyList, PropertyNote, PropertyPanel, PropertyRow, PropertySpan, } from './PropertyPanel';
11
+ export type { SubpanelProps } from './Subpanel';
12
+ export { Subpanel } from './Subpanel';
11
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Properties/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EACV,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,aAAa,GACd,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACpE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EACV,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,cAAc,EACd,YAAY,EACZ,cAAc,GACf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,WAAW,EACX,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,aAAa,EACb,WAAW,EACX,YAAY,EACZ,SAAS,EACT,SAAS,EACT,SAAS,EACT,OAAO,EACP,SAAS,GACV,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Properties/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EACV,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,4BAA4B,EAC5B,wBAAwB,EACxB,cAAc,EACd,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACjE,YAAY,EACV,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,WAAW,EACX,YAAY,GACb,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
@@ -1,2 +1,3 @@
1
- import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _ } from "../../chunks/Properties-B3KU69NI.js";
2
- export { t as CheckboxRow, d as ColorRow, _ as CurveField, u as EffectCard, p as EffectCardList, m as NumberRow, e as PinDot, h as PropertyGroup, n as PropertyList, c as PropertyPanel, g as PropertyRow, r as PropertySpan, i as SelectRow, f as SliderRow, s as Subpanel, l as SwitchRow, o as TextRow, a as ToggleRow };
1
+ import { i as e, n as t, r as n, t as r } from "../../chunks/Properties-Bbneh1ws.js";
2
+ import { a as i, i as a, n as o, o as s, r as c, s as l, t as u } from "../../chunks/PropertyField-CDb19d3F.js";
3
+ export { e as CurveField, n as DialogRow, u as PropertyControl, o as PropertyField, t as PropertyGroup, c as PropertyList, a as PropertyNote, i as PropertyPanel, s as PropertyRow, l as PropertySpan, r as Subpanel };
@@ -1 +1 @@
1
- {"version":3,"file":"storyLayouts.d.ts","sourceRoot":"","sources":["../../../src/components/Properties/storyLayouts.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;IAAE,KAAK,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,SAAS,CAAA;CAAE,2CA4BpF"}
1
+ {"version":3,"file":"storyLayouts.d.ts","sourceRoot":"","sources":["../../../src/components/Properties/storyLayouts.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;IAAE,KAAK,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,SAAS,CAAA;CAAE,2CAapF"}
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../../chunks/RadioGroup-C6xpdQNg.js";
1
+ import { n as e, t } from "../../chunks/RadioGroup-BK2mD6Q0.js";
2
2
  export { t as Radio, e as RadioGroup };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../chunks/RangeSlider-CzgeGLVS.js";
1
+ import { t as e } from "../../chunks/RangeSlider-BiRAOsTh.js";
2
2
  export { e as RangeSlider };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../chunks/ResizeHandle-1Ey8AOij.js";
1
+ import { t as e } from "../../chunks/ResizeHandle-Cc6EOehs.js";
2
2
  export { e as ResizeHandle };
@@ -1,6 +1,8 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import { type SelectProps as RACSelectProps, type ListBoxItemProps as RACListBoxItemProps, type ValidationResult } from 'react-aria-components';
3
+ import { type FieldOrientation } from '../Field/Field';
3
4
  import { type OverlayPortalProps } from '../../overlays/portalHost';
5
+ import { type SegmentTooltipFields } from '../segmentTooltip';
4
6
  /** One option in a {@link Select}'s `options` list. */
5
7
  export type SelectOption = {
6
8
  value: string;
@@ -14,20 +16,40 @@ export type SelectOption = {
14
16
  */
15
17
  textValue?: string;
16
18
  };
19
+ /** A titled group of options in a {@link Select}'s `options` list. */
20
+ export type SelectOptionGroup<T extends Key = string> = {
21
+ title: ReactNode;
22
+ options: ReadonlyArray<SelectOption & {
23
+ value: T;
24
+ }>;
25
+ };
17
26
  type Key = string | number;
27
+ /** How a {@link Select} trigger signals that it opens a list. */
28
+ export type SelectIndicator = 'chevron' | 'underline' | 'none';
29
+ /** Where a {@link Select}'s list opens relative to its trigger. */
30
+ export type SelectPopup = 'over' | 'below';
18
31
  /**
19
32
  * Props for {@link Select}, on top of React Aria's `Select` props, with the
20
33
  * selection key narrowed to the option value type.
21
34
  */
22
35
  export type SelectProps<T extends Key = string> = Omit<RACSelectProps<object>, 'children' | 'className' | 'selectedKey' | 'defaultSelectedKey' | 'onSelectionChange'> & {
23
36
  label?: ReactNode;
37
+ /**
38
+ * `'stacked'` (the default) puts the label above the trigger; `'row'` sets it
39
+ * beside the trigger at its own width, with any description or error on a
40
+ * line below. Same vocabulary as {@link Field}'s `orientation`.
41
+ */
42
+ orientation?: FieldOrientation;
24
43
  description?: ReactNode;
25
44
  errorMessage?: ReactNode | ((v: ValidationResult) => ReactNode);
26
45
  placeholder?: string;
27
- /** Either pass `options` for a quick render, or `children` for full control. */
28
- options?: ReadonlyArray<SelectOption & {
46
+ /**
47
+ * Either pass `options` for a quick render, or `children` for full control.
48
+ * An entry with `title` and `options` of its own is a titled section.
49
+ */
50
+ options?: ReadonlyArray<(SelectOption & {
29
51
  value: T;
30
- }>;
52
+ }) | SelectOptionGroup<T>>;
31
53
  children?: ReactNode;
32
54
  selectedKey?: T | null;
33
55
  defaultSelectedKey?: T;
@@ -40,6 +62,20 @@ export type SelectProps<T extends Key = string> = Omit<RACSelectProps<object>, '
40
62
  width?: 'fill' | 'fit';
41
63
  /** `'bare'` drops the box, for a select set in a row of other chrome such as a property row. */
42
64
  variant?: 'field' | 'bare';
65
+ /**
66
+ * How the trigger says it opens a list. `'chevron'` draws the caret beside
67
+ * the value; `'underline'` marks the value itself, dotted at rest and solid
68
+ * while it is pointed at or open; `'none'` says nothing. Unset takes the
69
+ * variant's own: a boxed select shows the caret, a bare one — set in a row
70
+ * where 10px of caret is a tenth of the value's width — underlines.
71
+ */
72
+ indicator?: SelectIndicator;
73
+ /**
74
+ * Where the list opens. `'over'` (the default) puts the selected row on the
75
+ * trigger, its label in the trigger's own text column, so choosing what is
76
+ * already chosen moves nothing; `'below'` hangs it under the trigger.
77
+ */
78
+ popup?: SelectPopup;
43
79
  /**
44
80
  * Id for the trigger button. React Aria puts a plain `id` on the wrapper,
45
81
  * which is not labelable, so an outer `<label for>` needs this to reach a
@@ -47,16 +83,31 @@ export type SelectProps<T extends Key = string> = Omit<RACSelectProps<object>, '
47
83
  */
48
84
  triggerId?: string;
49
85
  className?: string;
50
- } & OverlayPortalProps;
86
+ } & SegmentTooltipFields & OverlayPortalProps;
51
87
  /**
52
88
  * Form select wrapping React Aria's Select. Pass either `options` for a
53
89
  * quick declarative render or `children` of `<SelectItem>` for control over
54
- * each row.
90
+ * each row; `<SelectSection>` (or an `options` entry with a `title`) groups
91
+ * rows under a heading.
55
92
  *
56
93
  * The selection key type is parameterized so consumers with a string-literal
57
94
  * union for `value` (e.g. `'r' | 'g' | 'b'`) get a typed `onSelectionChange`.
95
+ *
96
+ * `shortcut` puts a kit tooltip on the trigger reading `Name (⌘K)`, named by
97
+ * `aria-label` or a string `label`, as `Button` does; `tooltip` replaces that
98
+ * text.
58
99
  */
59
100
  export declare function Select<T extends Key = string>(props: SelectProps<T>): import("react/jsx-runtime").JSX.Element;
101
+ /** Props for {@link SelectSection}. */
102
+ export type SelectSectionProps = {
103
+ /** Heading shown above the section's rows; it also names the group for
104
+ * screen readers. */
105
+ title?: ReactNode;
106
+ children?: ReactNode;
107
+ className?: string;
108
+ };
109
+ /** A titled group of `SelectItem` rows in a {@link Select}'s list. */
110
+ export declare function SelectSection({ title, children, className }: SelectSectionProps): import("react/jsx-runtime").JSX.Element;
60
111
  /** Props for {@link SelectItem}, on top of React Aria's `ListBoxItem` props. */
61
112
  export type SelectItemProps = Omit<RACListBoxItemProps, 'className' | 'children'> & {
62
113
  children?: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/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export { Select, SelectItem, SelectSection } from './Select';
2
+ export type { SelectProps, SelectItemProps, SelectOption, SelectOptionGroup, SelectSectionProps, SelectIndicator, SelectPopup, } from './Select';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC9C,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC7D,YAAY,EACV,WAAW,EACX,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,WAAW,GACZ,MAAM,UAAU,CAAC"}
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../../chunks/Select-BMYVh10x.js";
2
- export { t as Select, e as SelectItem };
1
+ import { n as e, r as t, t as n } from "../../chunks/Select-DVValBe1.js";
2
+ export { n as Select, e as SelectItem, t as SelectSection };