@weasel-js/ui 1.5.2 → 1.6.1

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 (565) hide show
  1. package/dist/chunks/ActionBar-DCq16yFA.js +57 -0
  2. package/dist/chunks/ActionBar-DCq16yFA.js.map +1 -0
  3. package/dist/chunks/{Badge-CW9pBPFl.js → Badge-CyAIZSDo.js} +758 -741
  4. package/dist/chunks/Badge-CyAIZSDo.js.map +1 -0
  5. package/dist/chunks/{BandEditor-jY-PFKY6.js → BandEditor-Dhm_Xrlr.js} +37 -36
  6. package/dist/chunks/BandEditor-Dhm_Xrlr.js.map +1 -0
  7. package/dist/chunks/Button-BIdXHQOx.js +111 -0
  8. package/dist/chunks/Button-BIdXHQOx.js.map +1 -0
  9. package/dist/chunks/ButtonBar-D5Vi0aj_.js +46 -0
  10. package/dist/chunks/ButtonBar-D5Vi0aj_.js.map +1 -0
  11. package/dist/chunks/Callout-yEn9iPlh.js +119 -0
  12. package/dist/chunks/Callout-yEn9iPlh.js.map +1 -0
  13. package/dist/chunks/{Checkbox-BOsDAY2F.js → Checkbox-DHXTUHO9.js} +1 -1
  14. package/dist/chunks/Checkbox-DHXTUHO9.js.map +1 -0
  15. package/dist/chunks/Code-AsKpgnv6.js +24 -0
  16. package/dist/chunks/Code-AsKpgnv6.js.map +1 -0
  17. package/dist/chunks/{ColorField-BYzgZM9o.js → ColorField-BcMcW8Sa.js} +16 -16
  18. package/dist/chunks/ColorField-BcMcW8Sa.js.map +1 -0
  19. package/dist/chunks/ColorModeControl-ke5PXbBa.js +47 -0
  20. package/dist/chunks/ColorModeControl-ke5PXbBa.js.map +1 -0
  21. package/dist/chunks/{ComboBox-Cz3f0Y_8.js → ComboBox-DpT8lc3p.js} +3 -3
  22. package/dist/chunks/ComboBox-DpT8lc3p.js.map +1 -0
  23. package/dist/chunks/{CurveEditor-DXwSP-iA.js → CurveEditor-BDJXjEvK.js} +35 -35
  24. package/dist/chunks/CurveEditor-BDJXjEvK.js.map +1 -0
  25. package/dist/chunks/DataGrid-D-dZj1BD.js +152 -0
  26. package/dist/chunks/DataGrid-D-dZj1BD.js.map +1 -0
  27. package/dist/chunks/DetailList-BMER1LUZ.js +43 -0
  28. package/dist/chunks/DetailList-BMER1LUZ.js.map +1 -0
  29. package/dist/chunks/{DetentSlider-CAubVX0J.js → DetentSlider-CL8TlX3S.js} +2 -2
  30. package/dist/chunks/DetentSlider-CL8TlX3S.js.map +1 -0
  31. package/dist/chunks/Dialog-BWyNMgpf.js +66 -0
  32. package/dist/chunks/Dialog-BWyNMgpf.js.map +1 -0
  33. package/dist/chunks/Disclosure-0G0uh2fa.js +58 -0
  34. package/dist/chunks/Disclosure-0G0uh2fa.js.map +1 -0
  35. package/dist/chunks/DragGhost-B5_hb9W9.js +30 -0
  36. package/dist/chunks/DragGhost-B5_hb9W9.js.map +1 -0
  37. package/dist/chunks/{DragHandleGlyph-CppAz4_8.js → DragHandleGlyph-Dr7Fgo0I.js} +1 -1
  38. package/dist/chunks/DragHandleGlyph-Dr7Fgo0I.js.map +1 -0
  39. package/dist/chunks/{Field-DWnV8WZY.js → Field--onYxXTF.js} +7 -6
  40. package/dist/chunks/Field--onYxXTF.js.map +1 -0
  41. package/dist/chunks/FillStrokeSwatch-DNb0KXPk.js +111 -0
  42. package/dist/chunks/FillStrokeSwatch-DNb0KXPk.js.map +1 -0
  43. package/dist/chunks/{FontFamilySelect-DxfgTC3G.js → FontFamilySelect-DXlMKWfK.js} +2 -2
  44. package/dist/chunks/FontFamilySelect-DXlMKWfK.js.map +1 -0
  45. package/dist/chunks/GradientEditor-B3a-MsVJ.js +335 -0
  46. package/dist/chunks/GradientEditor-B3a-MsVJ.js.map +1 -0
  47. package/dist/chunks/{Icon-DT0x6HaQ.js → Icon-Cgzy8VgC.js} +28 -20
  48. package/dist/chunks/Icon-Cgzy8VgC.js.map +1 -0
  49. package/dist/chunks/InlineRange-eOj6JpJl.js +29 -0
  50. package/dist/chunks/InlineRange-eOj6JpJl.js.map +1 -0
  51. package/dist/chunks/{Input-DbMKpkXy.js → Input-CHmkfYaD.js} +24 -19
  52. package/dist/chunks/Input-CHmkfYaD.js.map +1 -0
  53. package/dist/chunks/ItemList-Cm-HUWCi.js +174 -0
  54. package/dist/chunks/ItemList-Cm-HUWCi.js.map +1 -0
  55. package/dist/chunks/ItemList.module-BSpCSxan.js +14 -0
  56. package/dist/chunks/ItemList.module-BSpCSxan.js.map +1 -0
  57. package/dist/chunks/{Jog-DkkTlL3_.js → Jog-DESxZ44P.js} +6 -6
  58. package/dist/chunks/Jog-DESxZ44P.js.map +1 -0
  59. package/dist/chunks/{Keycaps-DunVpejA.js → Keycaps-C0H_v2gO.js} +71 -65
  60. package/dist/chunks/Keycaps-C0H_v2gO.js.map +1 -0
  61. package/dist/chunks/LayerList-nz-QYvTF.js +427 -0
  62. package/dist/chunks/LayerList-nz-QYvTF.js.map +1 -0
  63. package/dist/chunks/ListEditor-BQ6AV3Ac.js +74 -0
  64. package/dist/chunks/ListEditor-BQ6AV3Ac.js.map +1 -0
  65. package/dist/chunks/MenuButton-DtaGenKf.js +70 -0
  66. package/dist/chunks/MenuButton-DtaGenKf.js.map +1 -0
  67. package/dist/chunks/MeshEditor-qqGc6hlD.js +87 -0
  68. package/dist/chunks/MeshEditor-qqGc6hlD.js.map +1 -0
  69. package/dist/chunks/{NumberField-CCjEDZCg.js → NumberField-CwJOMmQR.js} +27 -22
  70. package/dist/chunks/NumberField-CwJOMmQR.js.map +1 -0
  71. package/dist/chunks/{OptionsBar-DeQ-vUeZ.js → OptionsBar-DbzAgIln.js} +3 -3
  72. package/dist/chunks/OptionsBar-DbzAgIln.js.map +1 -0
  73. package/dist/chunks/{PaintField-jBOJ32rL.js → PaintField-DaJukRc6.js} +21 -21
  74. package/dist/chunks/PaintField-DaJukRc6.js.map +1 -0
  75. package/dist/chunks/{PaintInput-Qs7Rul5R.js → PaintInput-Byhna3H-.js} +24 -24
  76. package/dist/chunks/PaintInput-Byhna3H-.js.map +1 -0
  77. package/dist/chunks/{PatternPicker-BMpXWboq.js → PatternPicker-B-cUt-JT.js} +2 -2
  78. package/dist/chunks/PatternPicker-B-cUt-JT.js.map +1 -0
  79. package/dist/chunks/{Plot2D-CXf_f7QD.js → Plot2D-CTXHkL5p.js} +13 -13
  80. package/dist/chunks/Plot2D-CTXHkL5p.js.map +1 -0
  81. package/dist/chunks/{PointPlotter-S_gz7VYt.js → PointPlotter-Bxo6haKe.js} +5 -4
  82. package/dist/chunks/PointPlotter-Bxo6haKe.js.map +1 -0
  83. package/dist/chunks/Powerline-ExO5GwEr.js +42 -0
  84. package/dist/chunks/Powerline-ExO5GwEr.js.map +1 -0
  85. package/dist/chunks/Prefs-DpqFKiwY.js +476 -0
  86. package/dist/chunks/Prefs-DpqFKiwY.js.map +1 -0
  87. package/dist/chunks/Properties-D_KzDN9K.js +282 -0
  88. package/dist/chunks/Properties-D_KzDN9K.js.map +1 -0
  89. package/dist/chunks/PropertyField-DGCecAnV.js +758 -0
  90. package/dist/chunks/PropertyField-DGCecAnV.js.map +1 -0
  91. package/dist/chunks/{RadioGroup-CsVp3SEu.js → RadioGroup-Bh4-12e-.js} +2 -2
  92. package/dist/chunks/RadioGroup-Bh4-12e-.js.map +1 -0
  93. package/dist/chunks/{RangeSlider-DNr-pJpZ.js → RangeSlider-BKRRTPTZ.js} +1 -1
  94. package/dist/chunks/RangeSlider-BKRRTPTZ.js.map +1 -0
  95. package/dist/chunks/{ResizeHandle-RXFf5fXr.js → ResizeHandle-BKT0XYpx.js} +15 -15
  96. package/dist/chunks/ResizeHandle-BKT0XYpx.js.map +1 -0
  97. package/dist/chunks/Select-CzyfaXzp.js +225 -0
  98. package/dist/chunks/Select-CzyfaXzp.js.map +1 -0
  99. package/dist/chunks/{SelectionPanel-CEbLS-0D.js → SelectionPanel-BgUM1h03.js} +21 -20
  100. package/dist/chunks/SelectionPanel-BgUM1h03.js.map +1 -0
  101. package/dist/chunks/{Sidebar-qn_oSCNX.js → Sidebar-BZ0m4afn.js} +8 -8
  102. package/dist/chunks/Sidebar-BZ0m4afn.js.map +1 -0
  103. package/dist/chunks/{SidebarPanel-Bs6V21hg.js → SidebarPanel-aoIqxbtq.js} +15 -19
  104. package/dist/chunks/SidebarPanel-aoIqxbtq.js.map +1 -0
  105. package/dist/chunks/{Slider-CIIrqiFS.js → Slider-CFwQYQ10.js} +94 -92
  106. package/dist/chunks/Slider-CFwQYQ10.js.map +1 -0
  107. package/dist/chunks/{StatusBar-B4L15DSm.js → StatusBar-DzoPDY4k.js} +8 -8
  108. package/dist/chunks/StatusBar-DzoPDY4k.js.map +1 -0
  109. package/dist/chunks/SwatchGrid-BARC3rnF.js +73 -0
  110. package/dist/chunks/SwatchGrid-BARC3rnF.js.map +1 -0
  111. package/dist/chunks/{Switch-DH5POG0T.js → Switch-CSYmcM8y.js} +1 -1
  112. package/dist/chunks/Switch-CSYmcM8y.js.map +1 -0
  113. package/dist/chunks/{Tabs-BFHikpml.js → Tabs-BbpzLLdY.js} +1 -1
  114. package/dist/chunks/Tabs-BbpzLLdY.js.map +1 -0
  115. package/dist/chunks/{Timeline-DNKY_yiK.js → Timeline--58F7MED.js} +141 -145
  116. package/dist/chunks/Timeline--58F7MED.js.map +1 -0
  117. package/dist/chunks/{Toast-CI1UDuK6.js → Toast-DNBb-24H.js} +1 -1
  118. package/dist/chunks/Toast-DNBb-24H.js.map +1 -0
  119. package/dist/chunks/ToggleBar-DTjGeS0Q.js +82 -0
  120. package/dist/chunks/ToggleBar-DTjGeS0Q.js.map +1 -0
  121. package/dist/chunks/{TokenPanel-BPHq24dc.js → TokenPanel-CMq7uydV.js} +50 -47
  122. package/dist/chunks/TokenPanel-CMq7uydV.js.map +1 -0
  123. package/dist/chunks/{ToolButton-9QzJCmuM.js → ToolButton-CR4sQlxF.js} +4 -4
  124. package/dist/chunks/ToolButton-CR4sQlxF.js.map +1 -0
  125. package/dist/chunks/{ToolGroup-BJiDrH_i.js → ToolGroup-Dpg1LN0l.js} +7 -7
  126. package/dist/chunks/ToolGroup-Dpg1LN0l.js.map +1 -0
  127. package/dist/chunks/{ToolOptionsBar-CAM6RcUH.js → ToolOptionsBar-CtzTlaN2.js} +6 -5
  128. package/dist/chunks/ToolOptionsBar-CtzTlaN2.js.map +1 -0
  129. package/dist/chunks/ToolPalette-CKG9qY6P.js +83 -0
  130. package/dist/chunks/ToolPalette-CKG9qY6P.js.map +1 -0
  131. package/dist/chunks/Tooltip-Clg2mhSt.js +42 -0
  132. package/dist/chunks/Tooltip-Clg2mhSt.js.map +1 -0
  133. package/dist/chunks/Tree-DVOtc9R5.js +203 -0
  134. package/dist/chunks/Tree-DVOtc9R5.js.map +1 -0
  135. package/dist/chunks/{createKeyframeLayer-DKtO0Sw_.js → createKeyframeLayer-Czj6Y235.js} +86 -86
  136. package/dist/chunks/createKeyframeLayer-Czj6Y235.js.map +1 -0
  137. package/dist/chunks/{dlog-CMYiRF3Q.js → dlog-F0I8KsIW.js} +2 -2
  138. package/dist/chunks/dlog-F0I8KsIW.js.map +1 -0
  139. package/dist/chunks/formatShortcut-DRQrVThu.js +15 -0
  140. package/dist/chunks/formatShortcut-DRQrVThu.js.map +1 -0
  141. package/dist/chunks/icons-Dk8SRS8g.js +162 -0
  142. package/dist/chunks/icons-Dk8SRS8g.js.map +1 -0
  143. package/dist/chunks/interactiveTarget-BNZmTow2.js +24 -0
  144. package/dist/chunks/interactiveTarget-BNZmTow2.js.map +1 -0
  145. package/dist/chunks/{keyGlyph-Bp0wnLHn.js → keyGlyph-C0qTakG-.js} +1 -1
  146. package/dist/chunks/keyGlyph-C0qTakG-.js.map +1 -0
  147. package/dist/chunks/model-Du7Lta4C.js +360 -0
  148. package/dist/chunks/model-Du7Lta4C.js.map +1 -0
  149. package/dist/chunks/{number-BHz66zQO.js → number-D3NEx_8r.js} +3 -3
  150. package/dist/chunks/number-D3NEx_8r.js.map +1 -0
  151. package/dist/chunks/paintPreview-CuSZiHpR.js +42 -0
  152. package/dist/chunks/paintPreview-CuSZiHpR.js.map +1 -0
  153. package/dist/chunks/paintValue-BpaGPjV3.js +18 -0
  154. package/dist/chunks/paintValue-BpaGPjV3.js.map +1 -0
  155. package/dist/chunks/{portalHost-CjpCnuGU.js → portalHost-yTOVuCej.js} +1 -1
  156. package/dist/chunks/portalHost-yTOVuCej.js.map +1 -0
  157. package/dist/chunks/prefField-Dnl7nmjQ.js +197 -0
  158. package/dist/chunks/prefField-Dnl7nmjQ.js.map +1 -0
  159. package/dist/chunks/segmentTooltip-CStYHKzd.js +29 -0
  160. package/dist/chunks/segmentTooltip-CStYHKzd.js.map +1 -0
  161. package/dist/chunks/segmentedControl.module-Bv7DEg8f.js +11 -0
  162. package/dist/chunks/segmentedControl.module-Bv7DEg8f.js.map +1 -0
  163. package/dist/chunks/{snap-CEjuWOhN.js → snap-DRjbOiG9.js} +1 -1
  164. package/dist/chunks/snap-DRjbOiG9.js.map +1 -0
  165. package/dist/chunks/stance-BFQpS_fL.js +17 -0
  166. package/dist/chunks/stance-BFQpS_fL.js.map +1 -0
  167. package/dist/chunks/useReorderDragList-B_-5L5Gu.js +131 -0
  168. package/dist/chunks/useReorderDragList-B_-5L5Gu.js.map +1 -0
  169. package/dist/chunks/{useRovingTabIndex-Dkpf_KhN.js → useRovingTabIndex-Bp_hYm_h.js} +1 -1
  170. package/dist/chunks/useRovingTabIndex-Bp_hYm_h.js.map +1 -0
  171. package/dist/color/ramp.d.ts +38 -0
  172. package/dist/color/ramp.d.ts.map +1 -0
  173. package/dist/components/ActionBar/ActionBar.d.ts +7 -5
  174. package/dist/components/ActionBar/ActionBar.d.ts.map +1 -1
  175. package/dist/components/ActionBar/index.js +1 -1
  176. package/dist/components/Badge/Badge.d.ts +21 -7
  177. package/dist/components/Badge/Badge.d.ts.map +1 -1
  178. package/dist/components/Badge/effects/Aqua.d.ts +1 -1
  179. package/dist/components/Badge/effects/Aqua.d.ts.map +1 -1
  180. package/dist/components/Badge/index.d.ts +1 -1
  181. package/dist/components/Badge/index.d.ts.map +1 -1
  182. package/dist/components/Badge/index.js +1 -1
  183. package/dist/components/Badge/types.d.ts +6 -5
  184. package/dist/components/Badge/types.d.ts.map +1 -1
  185. package/dist/components/BandEditor/index.js +1 -1
  186. package/dist/components/Button/Button.d.ts +17 -3
  187. package/dist/components/Button/Button.d.ts.map +1 -1
  188. package/dist/components/Button/index.d.ts +1 -1
  189. package/dist/components/Button/index.d.ts.map +1 -1
  190. package/dist/components/Button/index.js +1 -1
  191. package/dist/components/ButtonBar/ButtonBar.d.ts +36 -0
  192. package/dist/components/ButtonBar/ButtonBar.d.ts.map +1 -0
  193. package/dist/components/ButtonBar/index.d.ts +3 -0
  194. package/dist/components/ButtonBar/index.d.ts.map +1 -0
  195. package/dist/components/ButtonBar/index.js +2 -0
  196. package/dist/components/Callout/Callout.d.ts +3 -6
  197. package/dist/components/Callout/Callout.d.ts.map +1 -1
  198. package/dist/components/Callout/index.d.ts +1 -1
  199. package/dist/components/Callout/index.d.ts.map +1 -1
  200. package/dist/components/Callout/index.js +1 -1
  201. package/dist/components/Checkbox/index.js +1 -1
  202. package/dist/components/Code/Code.d.ts +28 -0
  203. package/dist/components/Code/Code.d.ts.map +1 -0
  204. package/dist/components/Code/index.d.ts +3 -0
  205. package/dist/components/Code/index.d.ts.map +1 -0
  206. package/dist/components/Code/index.js +2 -0
  207. package/dist/components/ColorField/ColorField.d.ts +1 -1
  208. package/dist/components/ColorField/ColorField.d.ts.map +1 -1
  209. package/dist/components/ColorField/index.js +1 -1
  210. package/dist/components/ColorModeControl/ColorModeControl.d.ts +21 -0
  211. package/dist/components/ColorModeControl/ColorModeControl.d.ts.map +1 -0
  212. package/dist/components/ColorModeControl/index.d.ts +3 -0
  213. package/dist/components/ColorModeControl/index.d.ts.map +1 -0
  214. package/dist/components/ColorModeControl/index.js +2 -0
  215. package/dist/components/ComboBox/ComboBox.d.ts +2 -2
  216. package/dist/components/ComboBox/ComboBox.d.ts.map +1 -1
  217. package/dist/components/ComboBox/index.js +1 -1
  218. package/dist/components/CurveEditor/CurveEditor.d.ts +1 -1
  219. package/dist/components/CurveEditor/CurveEditor.d.ts.map +1 -1
  220. package/dist/components/CurveEditor/LayeredCurveEditor.d.ts +1 -1
  221. package/dist/components/CurveEditor/LayeredCurveEditor.d.ts.map +1 -1
  222. package/dist/components/CurveEditor/index.js +3 -3
  223. package/dist/components/DataGrid/DataGrid.d.ts +23 -1
  224. package/dist/components/DataGrid/DataGrid.d.ts.map +1 -1
  225. package/dist/components/DataGrid/index.js +1 -1
  226. package/dist/components/DetailList/DetailList.d.ts +36 -0
  227. package/dist/components/DetailList/DetailList.d.ts.map +1 -0
  228. package/dist/components/DetailList/index.d.ts +3 -0
  229. package/dist/components/DetailList/index.d.ts.map +1 -0
  230. package/dist/components/DetailList/index.js +2 -0
  231. package/dist/components/DetentSlider/index.js +1 -1
  232. package/dist/components/Dialog/Dialog.d.ts +9 -3
  233. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  234. package/dist/components/Dialog/index.js +1 -1
  235. package/dist/components/Disclosure/Disclosure.d.ts +26 -18
  236. package/dist/components/Disclosure/Disclosure.d.ts.map +1 -1
  237. package/dist/components/Disclosure/index.d.ts +2 -2
  238. package/dist/components/Disclosure/index.d.ts.map +1 -1
  239. package/dist/components/Disclosure/index.js +2 -2
  240. package/dist/components/DragGhost/DragGhost.d.ts +21 -0
  241. package/dist/components/DragGhost/DragGhost.d.ts.map +1 -0
  242. package/dist/components/DragGhost/index.d.ts +3 -0
  243. package/dist/components/DragGhost/index.d.ts.map +1 -0
  244. package/dist/components/DragGhost/index.js +2 -0
  245. package/dist/components/DragHandleGlyph/DragHandleGlyph.d.ts +1 -1
  246. package/dist/components/DragHandleGlyph/DragHandleGlyph.d.ts.map +1 -1
  247. package/dist/components/DragHandleGlyph/index.js +1 -1
  248. package/dist/components/Field/Field.d.ts +1 -1
  249. package/dist/components/Field/Field.d.ts.map +1 -1
  250. package/dist/components/Field/index.js +1 -1
  251. package/dist/components/FillStrokeSwatch/FillStrokeSwatch.d.ts +45 -0
  252. package/dist/components/FillStrokeSwatch/FillStrokeSwatch.d.ts.map +1 -0
  253. package/dist/components/FillStrokeSwatch/index.d.ts +3 -0
  254. package/dist/components/FillStrokeSwatch/index.d.ts.map +1 -0
  255. package/dist/components/FillStrokeSwatch/index.js +2 -0
  256. package/dist/components/FontFamilySelect/FontFamilySelect.d.ts +1 -1
  257. package/dist/components/FontFamilySelect/FontFamilySelect.d.ts.map +1 -1
  258. package/dist/components/FontFamilySelect/index.js +1 -1
  259. package/dist/components/GradientEditor/SceneGradientHandles.d.ts.map +1 -1
  260. package/dist/components/GradientEditor/index.js +1 -1
  261. package/dist/components/InlineRange/InlineRange.d.ts +6 -2
  262. package/dist/components/InlineRange/InlineRange.d.ts.map +1 -1
  263. package/dist/components/InlineRange/index.js +1 -1
  264. package/dist/components/Input/Input.d.ts +13 -0
  265. package/dist/components/Input/Input.d.ts.map +1 -1
  266. package/dist/components/Input/index.js +1 -1
  267. package/dist/components/ItemList/ItemList.d.ts +70 -10
  268. package/dist/components/ItemList/ItemList.d.ts.map +1 -1
  269. package/dist/components/ItemList/index.js +1 -1
  270. package/dist/components/Jog/Jog.d.ts +1 -1
  271. package/dist/components/Jog/Jog.d.ts.map +1 -1
  272. package/dist/components/Jog/index.js +1 -1
  273. package/dist/components/Keycaps/Keycap.d.ts +1 -1
  274. package/dist/components/Keycaps/Keycap.d.ts.map +1 -1
  275. package/dist/components/Keycaps/Keycaps.d.ts +1 -1
  276. package/dist/components/Keycaps/Keycaps.d.ts.map +1 -1
  277. package/dist/components/Keycaps/index.d.ts +1 -0
  278. package/dist/components/Keycaps/index.d.ts.map +1 -1
  279. package/dist/components/Keycaps/index.js +3 -3
  280. package/dist/components/Keycaps/keySpecsFromMods.d.ts +2 -0
  281. package/dist/components/Keycaps/keySpecsFromMods.d.ts.map +1 -1
  282. package/dist/components/Keycaps/keySpecsFromShortcut.d.ts +16 -0
  283. package/dist/components/Keycaps/keySpecsFromShortcut.d.ts.map +1 -0
  284. package/dist/components/LayerList/LayerList.d.ts +79 -0
  285. package/dist/components/LayerList/LayerList.d.ts.map +1 -0
  286. package/dist/components/LayerList/index.d.ts +3 -0
  287. package/dist/components/LayerList/index.d.ts.map +1 -0
  288. package/dist/components/LayerList/index.js +2 -0
  289. package/dist/components/LayerList/useSceneLayerList.d.ts +20 -0
  290. package/dist/components/LayerList/useSceneLayerList.d.ts.map +1 -0
  291. package/dist/components/ListEditor/ListEditor.d.ts +23 -0
  292. package/dist/components/ListEditor/ListEditor.d.ts.map +1 -0
  293. package/dist/components/ListEditor/index.d.ts +3 -0
  294. package/dist/components/ListEditor/index.d.ts.map +1 -0
  295. package/dist/components/ListEditor/index.js +2 -0
  296. package/dist/components/MenuButton/MenuButton.d.ts +6 -2
  297. package/dist/components/MenuButton/MenuButton.d.ts.map +1 -1
  298. package/dist/components/MenuButton/index.js +1 -1
  299. package/dist/components/MeshEditor/index.js +1 -1
  300. package/dist/components/NumberField/NumberField.d.ts +13 -0
  301. package/dist/components/NumberField/NumberField.d.ts.map +1 -1
  302. package/dist/components/NumberField/UnitField.d.ts +1 -1
  303. package/dist/components/NumberField/UnitField.d.ts.map +1 -1
  304. package/dist/components/NumberField/index.js +1 -1
  305. package/dist/components/OptionsBar/index.js +1 -1
  306. package/dist/components/PaintField/index.js +1 -1
  307. package/dist/components/PaintInput/index.js +1 -1
  308. package/dist/components/PatternPicker/index.js +1 -1
  309. package/dist/components/Plot2D/index.js +1 -1
  310. package/dist/components/PointPlotter/PointPlotter.d.ts +1 -1
  311. package/dist/components/PointPlotter/PointPlotter.d.ts.map +1 -1
  312. package/dist/components/PointPlotter/index.js +1 -1
  313. package/dist/components/Powerline/Powerline.d.ts +5 -4
  314. package/dist/components/Powerline/Powerline.d.ts.map +1 -1
  315. package/dist/components/Powerline/index.js +2 -2
  316. package/dist/components/Prefs/PrefsDialog.d.ts +11 -3
  317. package/dist/components/Prefs/PrefsDialog.d.ts.map +1 -1
  318. package/dist/components/Prefs/PrefsForm.d.ts +27 -26
  319. package/dist/components/Prefs/PrefsForm.d.ts.map +1 -1
  320. package/dist/components/Prefs/PrefsPane.d.ts +24 -0
  321. package/dist/components/Prefs/PrefsPane.d.ts.map +1 -0
  322. package/dist/components/Prefs/PrefsRail.d.ts +32 -0
  323. package/dist/components/Prefs/PrefsRail.d.ts.map +1 -0
  324. package/dist/components/Prefs/PrefsRow.d.ts +32 -0
  325. package/dist/components/Prefs/PrefsRow.d.ts.map +1 -0
  326. package/dist/components/Prefs/index.d.ts +5 -2
  327. package/dist/components/Prefs/index.d.ts.map +1 -1
  328. package/dist/components/Prefs/index.js +3 -3
  329. package/dist/components/Prefs/prefField.d.ts +36 -0
  330. package/dist/components/Prefs/prefField.d.ts.map +1 -0
  331. package/dist/components/Prefs/schema.d.ts +30 -0
  332. package/dist/components/Prefs/schema.d.ts.map +1 -1
  333. package/dist/components/Properties/CurveField.d.ts +1 -1
  334. package/dist/components/Properties/CurveField.d.ts.map +1 -1
  335. package/dist/components/Properties/DialogRow.d.ts +33 -0
  336. package/dist/components/Properties/DialogRow.d.ts.map +1 -0
  337. package/dist/components/Properties/PropertyField.d.ts +238 -0
  338. package/dist/components/Properties/PropertyField.d.ts.map +1 -0
  339. package/dist/components/Properties/PropertyGroup.d.ts +12 -3
  340. package/dist/components/Properties/PropertyGroup.d.ts.map +1 -1
  341. package/dist/components/Properties/PropertyPanel.d.ts +34 -238
  342. package/dist/components/Properties/PropertyPanel.d.ts.map +1 -1
  343. package/dist/components/Properties/Subpanel.d.ts +14 -0
  344. package/dist/components/Properties/Subpanel.d.ts.map +1 -0
  345. package/dist/components/Properties/index.d.ts +8 -4
  346. package/dist/components/Properties/index.d.ts.map +1 -1
  347. package/dist/components/Properties/index.js +3 -2
  348. package/dist/components/Properties/storyLayouts.d.ts +1 -1
  349. package/dist/components/Properties/storyLayouts.d.ts.map +1 -1
  350. package/dist/components/RadioGroup/RadioGroup.d.ts +2 -2
  351. package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
  352. package/dist/components/RadioGroup/index.js +1 -1
  353. package/dist/components/RangeSlider/RangeSlider.d.ts +1 -1
  354. package/dist/components/RangeSlider/RangeSlider.d.ts.map +1 -1
  355. package/dist/components/RangeSlider/index.js +1 -1
  356. package/dist/components/ResizeHandle/ResizeHandle.d.ts +1 -1
  357. package/dist/components/ResizeHandle/ResizeHandle.d.ts.map +1 -1
  358. package/dist/components/ResizeHandle/index.js +1 -1
  359. package/dist/components/Select/Select.d.ts +40 -7
  360. package/dist/components/Select/Select.d.ts.map +1 -1
  361. package/dist/components/Select/index.d.ts +2 -2
  362. package/dist/components/Select/index.d.ts.map +1 -1
  363. package/dist/components/Select/index.js +2 -2
  364. package/dist/components/SelectionPanel/SelectionPanel.d.ts +1 -1
  365. package/dist/components/SelectionPanel/SelectionPanel.d.ts.map +1 -1
  366. package/dist/components/SelectionPanel/index.js +2 -2
  367. package/dist/components/SelectionPanel/renderLeaf.d.ts +14 -8
  368. package/dist/components/SelectionPanel/renderLeaf.d.ts.map +1 -1
  369. package/dist/components/Sidebar/Sidebar.d.ts +1 -1
  370. package/dist/components/Sidebar/Sidebar.d.ts.map +1 -1
  371. package/dist/components/Sidebar/index.js +1 -1
  372. package/dist/components/SidebarPanel/SidebarPanel.d.ts +3 -3
  373. package/dist/components/SidebarPanel/SidebarPanel.d.ts.map +1 -1
  374. package/dist/components/SidebarPanel/index.js +1 -1
  375. package/dist/components/Slider/Slider.d.ts +2 -1
  376. package/dist/components/Slider/Slider.d.ts.map +1 -1
  377. package/dist/components/Slider/index.js +1 -1
  378. package/dist/components/StatusBar/StatusBar.d.ts +3 -3
  379. package/dist/components/StatusBar/StatusBar.d.ts.map +1 -1
  380. package/dist/components/StatusBar/index.js +1 -1
  381. package/dist/components/SwatchGrid/SwatchGrid.d.ts +34 -0
  382. package/dist/components/SwatchGrid/SwatchGrid.d.ts.map +1 -0
  383. package/dist/components/SwatchGrid/index.d.ts +3 -0
  384. package/dist/components/SwatchGrid/index.d.ts.map +1 -0
  385. package/dist/components/SwatchGrid/index.js +2 -0
  386. package/dist/components/Switch/index.js +1 -1
  387. package/dist/components/Tabs/Tabs.d.ts +4 -4
  388. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  389. package/dist/components/Tabs/index.js +1 -1
  390. package/dist/components/Timeline/Lane.d.ts.map +1 -1
  391. package/dist/components/Timeline/index.js +1 -1
  392. package/dist/components/Toast/Toast.d.ts +1 -1
  393. package/dist/components/Toast/Toast.d.ts.map +1 -1
  394. package/dist/components/Toast/index.js +1 -1
  395. package/dist/components/ToggleBar/ToggleBar.d.ts +2 -1
  396. package/dist/components/ToggleBar/ToggleBar.d.ts.map +1 -1
  397. package/dist/components/ToggleBar/index.js +1 -1
  398. package/dist/components/TokenPanel/TokenPanel.d.ts +1 -1
  399. package/dist/components/TokenPanel/TokenPanel.d.ts.map +1 -1
  400. package/dist/components/TokenPanel/index.js +1 -1
  401. package/dist/components/ToolButton/ToolButton.d.ts +1 -1
  402. package/dist/components/ToolButton/ToolButton.d.ts.map +1 -1
  403. package/dist/components/ToolButton/index.js +1 -1
  404. package/dist/components/ToolGroup/ToolGroup.d.ts +1 -1
  405. package/dist/components/ToolGroup/ToolGroup.d.ts.map +1 -1
  406. package/dist/components/ToolGroup/index.js +1 -1
  407. package/dist/components/ToolOptionsBar/ToolOptionsBar.d.ts +1 -1
  408. package/dist/components/ToolOptionsBar/ToolOptionsBar.d.ts.map +1 -1
  409. package/dist/components/ToolOptionsBar/index.js +1 -1
  410. package/dist/components/ToolPalette/ToolPalette.d.ts +1 -1
  411. package/dist/components/ToolPalette/ToolPalette.d.ts.map +1 -1
  412. package/dist/components/ToolPalette/index.d.ts +1 -0
  413. package/dist/components/ToolPalette/index.d.ts.map +1 -1
  414. package/dist/components/ToolPalette/index.js +3 -2
  415. package/dist/components/Tooltip/Tooltip.d.ts +8 -4
  416. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  417. package/dist/components/Tooltip/index.d.ts +1 -1
  418. package/dist/components/Tooltip/index.d.ts.map +1 -1
  419. package/dist/components/Tooltip/index.js +2 -2
  420. package/dist/components/Tree/Tree.d.ts +84 -0
  421. package/dist/components/Tree/Tree.d.ts.map +1 -0
  422. package/dist/components/Tree/index.d.ts +3 -0
  423. package/dist/components/Tree/index.d.ts.map +1 -0
  424. package/dist/components/Tree/index.js +2 -0
  425. package/dist/components/segmentTooltip.d.ts +30 -0
  426. package/dist/components/segmentTooltip.d.ts.map +1 -0
  427. package/dist/components/stance.d.ts +30 -0
  428. package/dist/components/stance.d.ts.map +1 -0
  429. package/dist/components/stanceCss.d.ts +31 -0
  430. package/dist/components/stanceCss.d.ts.map +1 -0
  431. package/dist/components/stanceSurfaces.d.ts +4 -0
  432. package/dist/components/stanceSurfaces.d.ts.map +1 -0
  433. package/dist/format/number.d.ts +3 -2
  434. package/dist/format/number.d.ts.map +1 -1
  435. package/dist/icons/Icon.d.ts +1 -1
  436. package/dist/icons/Icon.d.ts.map +1 -1
  437. package/dist/icons/ShapeKindIcon.d.ts +10 -0
  438. package/dist/icons/ShapeKindIcon.d.ts.map +1 -0
  439. package/dist/icons/index.d.ts +55 -53
  440. package/dist/icons/index.d.ts.map +1 -1
  441. package/dist/icons/paths.d.ts +2 -0
  442. package/dist/icons/paths.d.ts.map +1 -1
  443. package/dist/index.d.ts +17 -3
  444. package/dist/index.d.ts.map +1 -1
  445. package/dist/index.js +130 -79
  446. package/dist/index.js.map +1 -1
  447. package/dist/interactiveTarget.d.ts +9 -0
  448. package/dist/interactiveTarget.d.ts.map +1 -0
  449. package/dist/overlays/portalHost.d.ts +1 -1
  450. package/dist/overlays/portalHost.d.ts.map +1 -1
  451. package/dist/style.css +1 -1
  452. package/dist/useReorderDragList.d.ts +36 -7
  453. package/dist/useReorderDragList.d.ts.map +1 -1
  454. package/dist/useRovingTabIndex.d.ts +1 -1
  455. package/dist/useScrollSpy.d.ts +48 -0
  456. package/dist/useScrollSpy.d.ts.map +1 -0
  457. package/package.json +8 -8
  458. package/dist/chunks/ActionBar-CLwiY3Jg.js +0 -62
  459. package/dist/chunks/ActionBar-CLwiY3Jg.js.map +0 -1
  460. package/dist/chunks/ActionsBar-D84a4eGy.js +0 -41
  461. package/dist/chunks/ActionsBar-D84a4eGy.js.map +0 -1
  462. package/dist/chunks/Badge-CW9pBPFl.js.map +0 -1
  463. package/dist/chunks/BandEditor-jY-PFKY6.js.map +0 -1
  464. package/dist/chunks/Button-DRSApvnK.js +0 -90
  465. package/dist/chunks/Button-DRSApvnK.js.map +0 -1
  466. package/dist/chunks/Callout-DrNu-9Qr.js +0 -122
  467. package/dist/chunks/Callout-DrNu-9Qr.js.map +0 -1
  468. package/dist/chunks/Checkbox-BOsDAY2F.js.map +0 -1
  469. package/dist/chunks/ColorField-BYzgZM9o.js.map +0 -1
  470. package/dist/chunks/ComboBox-Cz3f0Y_8.js.map +0 -1
  471. package/dist/chunks/CurveEditor-DXwSP-iA.js.map +0 -1
  472. package/dist/chunks/DataGrid-C8KrYtw7.js +0 -104
  473. package/dist/chunks/DataGrid-C8KrYtw7.js.map +0 -1
  474. package/dist/chunks/DetentSlider-CAubVX0J.js.map +0 -1
  475. package/dist/chunks/Dialog-fGqqQ6o_.js +0 -61
  476. package/dist/chunks/Dialog-fGqqQ6o_.js.map +0 -1
  477. package/dist/chunks/Disclosure-CILDfWsU.js +0 -47
  478. package/dist/chunks/Disclosure-CILDfWsU.js.map +0 -1
  479. package/dist/chunks/DragHandleGlyph-CppAz4_8.js.map +0 -1
  480. package/dist/chunks/Field-DWnV8WZY.js.map +0 -1
  481. package/dist/chunks/FontFamilySelect-DxfgTC3G.js.map +0 -1
  482. package/dist/chunks/GradientEditor-rRBmf3G0.js +0 -333
  483. package/dist/chunks/GradientEditor-rRBmf3G0.js.map +0 -1
  484. package/dist/chunks/Icon-DT0x6HaQ.js.map +0 -1
  485. package/dist/chunks/InlineRange-DdIlfGqG.js +0 -29
  486. package/dist/chunks/InlineRange-DdIlfGqG.js.map +0 -1
  487. package/dist/chunks/Input-DbMKpkXy.js.map +0 -1
  488. package/dist/chunks/ItemList-B9zYb0GE.js +0 -42
  489. package/dist/chunks/ItemList-B9zYb0GE.js.map +0 -1
  490. package/dist/chunks/Jog-DkkTlL3_.js.map +0 -1
  491. package/dist/chunks/Keycaps-DunVpejA.js.map +0 -1
  492. package/dist/chunks/LayerStack-CfQ6GsRz.js +0 -142
  493. package/dist/chunks/LayerStack-CfQ6GsRz.js.map +0 -1
  494. package/dist/chunks/MenuButton-C_4nox39.js +0 -60
  495. package/dist/chunks/MenuButton-C_4nox39.js.map +0 -1
  496. package/dist/chunks/MeshEditor-Bipz-Ocl.js +0 -123
  497. package/dist/chunks/MeshEditor-Bipz-Ocl.js.map +0 -1
  498. package/dist/chunks/NumberField-CCjEDZCg.js.map +0 -1
  499. package/dist/chunks/OptionsBar-DeQ-vUeZ.js.map +0 -1
  500. package/dist/chunks/PaintField-jBOJ32rL.js.map +0 -1
  501. package/dist/chunks/PaintInput-Qs7Rul5R.js.map +0 -1
  502. package/dist/chunks/PatternPicker-BMpXWboq.js.map +0 -1
  503. package/dist/chunks/Plot2D-CXf_f7QD.js.map +0 -1
  504. package/dist/chunks/PointPlotter-S_gz7VYt.js.map +0 -1
  505. package/dist/chunks/Powerline-Ak5AWUlK.js +0 -36
  506. package/dist/chunks/Powerline-Ak5AWUlK.js.map +0 -1
  507. package/dist/chunks/Prefs-CNC8tzyN.js +0 -308
  508. package/dist/chunks/Prefs-CNC8tzyN.js.map +0 -1
  509. package/dist/chunks/Properties-Rnb6TAbN.js +0 -891
  510. package/dist/chunks/Properties-Rnb6TAbN.js.map +0 -1
  511. package/dist/chunks/RadioGroup-CsVp3SEu.js.map +0 -1
  512. package/dist/chunks/RangeSlider-DNr-pJpZ.js.map +0 -1
  513. package/dist/chunks/ResizeHandle-RXFf5fXr.js.map +0 -1
  514. package/dist/chunks/Select-BEope086.js +0 -190
  515. package/dist/chunks/Select-BEope086.js.map +0 -1
  516. package/dist/chunks/SelectionPanel-CEbLS-0D.js.map +0 -1
  517. package/dist/chunks/Sidebar-qn_oSCNX.js.map +0 -1
  518. package/dist/chunks/SidebarPanel-Bs6V21hg.js.map +0 -1
  519. package/dist/chunks/Slider-CIIrqiFS.js.map +0 -1
  520. package/dist/chunks/StatusBar-B4L15DSm.js.map +0 -1
  521. package/dist/chunks/Switch-DH5POG0T.js.map +0 -1
  522. package/dist/chunks/Tabs-BFHikpml.js.map +0 -1
  523. package/dist/chunks/Timeline-DNKY_yiK.js.map +0 -1
  524. package/dist/chunks/Toast-CI1UDuK6.js.map +0 -1
  525. package/dist/chunks/ToggleBar-CClus5Cd.js +0 -75
  526. package/dist/chunks/ToggleBar-CClus5Cd.js.map +0 -1
  527. package/dist/chunks/TokenPanel-BPHq24dc.js.map +0 -1
  528. package/dist/chunks/ToolButton-9QzJCmuM.js.map +0 -1
  529. package/dist/chunks/ToolGroup-BJiDrH_i.js.map +0 -1
  530. package/dist/chunks/ToolOptionsBar-CAM6RcUH.js.map +0 -1
  531. package/dist/chunks/ToolPalette-DGkKwE7D.js +0 -97
  532. package/dist/chunks/ToolPalette-DGkKwE7D.js.map +0 -1
  533. package/dist/chunks/Tooltip-C4YBczLq.js +0 -42
  534. package/dist/chunks/Tooltip-C4YBczLq.js.map +0 -1
  535. package/dist/chunks/createKeyframeLayer-DKtO0Sw_.js.map +0 -1
  536. package/dist/chunks/dlog-CMYiRF3Q.js.map +0 -1
  537. package/dist/chunks/icons-DFLytcui.js +0 -165
  538. package/dist/chunks/icons-DFLytcui.js.map +0 -1
  539. package/dist/chunks/keyGlyph-Bp0wnLHn.js.map +0 -1
  540. package/dist/chunks/model-13kZ_-mE.js +0 -483
  541. package/dist/chunks/model-13kZ_-mE.js.map +0 -1
  542. package/dist/chunks/number-BHz66zQO.js.map +0 -1
  543. package/dist/chunks/portalHost-CjpCnuGU.js.map +0 -1
  544. package/dist/chunks/range.module-DSsOIq1R.js +0 -8
  545. package/dist/chunks/range.module-DSsOIq1R.js.map +0 -1
  546. package/dist/chunks/schema-Dft4Cu2p.js +0 -47
  547. package/dist/chunks/schema-Dft4Cu2p.js.map +0 -1
  548. package/dist/chunks/segmentedControl.module-DS72X1ns.js +0 -11
  549. package/dist/chunks/segmentedControl.module-DS72X1ns.js.map +0 -1
  550. package/dist/chunks/snap-CEjuWOhN.js.map +0 -1
  551. package/dist/chunks/useReorderDragList-CSQGd7zQ.js +0 -102
  552. package/dist/chunks/useReorderDragList-CSQGd7zQ.js.map +0 -1
  553. package/dist/chunks/useRovingTabIndex-Dkpf_KhN.js.map +0 -1
  554. package/dist/components/ActionsBar/ActionsBar.d.ts +0 -35
  555. package/dist/components/ActionsBar/ActionsBar.d.ts.map +0 -1
  556. package/dist/components/ActionsBar/index.d.ts +0 -3
  557. package/dist/components/ActionsBar/index.d.ts.map +0 -1
  558. package/dist/components/ActionsBar/index.js +0 -2
  559. package/dist/components/LayerStack/LayerStack.d.ts +0 -62
  560. package/dist/components/LayerStack/LayerStack.d.ts.map +0 -1
  561. package/dist/components/LayerStack/index.d.ts +0 -2
  562. package/dist/components/LayerStack/index.d.ts.map +0 -1
  563. package/dist/components/LayerStack/index.js +0 -2
  564. package/dist/components/Properties/EffectCard.d.ts +0 -69
  565. package/dist/components/Properties/EffectCard.d.ts.map +0 -1
@@ -0,0 +1,238 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type FillStyle, type PaintKind } from '@weasel-js/core';
3
+ import { type UnitTable } from '../../format/number';
4
+ import type { PrefNumberFormat } from '../Prefs/schema';
5
+ import { type PropertyMetricProps, type PropertyRowLayout } from './PropertyPanel';
6
+ /**
7
+ * Which controls a field is drawn with.
8
+ *
9
+ * - `'bare'` (the default): native inputs the property row's own stylesheet
10
+ * draws — the compact controls of an inspector sidebar or a lab panel.
11
+ * - `'framed'`: the kit's field components, each bringing its own frame —
12
+ * for a surface whose row does not style its controls (`SelectionPanel`,
13
+ * `ToolOptionsBar`), or that needs what only they do, such as reading a
14
+ * unit typed into a number (`accepts`).
15
+ *
16
+ * The two differ only where the kit still has two widgets for one job; a
17
+ * slider, a switch, a font picker and a paint are the same in both.
18
+ */
19
+ export type PropertyFieldChrome = 'bare' | 'framed';
20
+ /** One choice of an enum field. */
21
+ export interface PropertyOption<T extends string> {
22
+ value: T;
23
+ /** The option's name. A string also names its segment for a screen reader. */
24
+ label: ReactNode;
25
+ /** What a segment shows in place of `label` when the full one would not fit
26
+ * — a glyph or a letter. `label` stays the accessible name. */
27
+ glyph?: ReactNode;
28
+ /** Shown but not choosable: a value the control reports and cannot author. */
29
+ disabled?: boolean;
30
+ }
31
+ /** Props every kind of field shares. */
32
+ interface FieldBase {
33
+ /** The control's accessible name. A `<PropertyField>` takes it from a string
34
+ * `label` when this is omitted. */
35
+ name?: string;
36
+ /** The sources the field reads disagree — a multi-selection whose nodes
37
+ * differ. The control shows no value, in whatever form it has for that. */
38
+ mixed?: boolean;
39
+ /**
40
+ * The sources agree on holding nothing: whatever is in effect comes from a
41
+ * fallback further down. The control shows no chosen value rather than
42
+ * inventing one, since the next edit would write the invention back.
43
+ */
44
+ unset?: boolean;
45
+ chrome?: PropertyFieldChrome;
46
+ /** Class on the control element itself. */
47
+ className?: string;
48
+ /** Id for the control element, for a `<label htmlFor>` outside it. */
49
+ id?: string;
50
+ }
51
+ /** A boolean field. */
52
+ export interface PropertyBooleanFieldProps extends FieldBase {
53
+ kind: 'boolean';
54
+ /** `checkbox` (default), `switch`, or `toggle` — a one-segment pressable bar. */
55
+ control?: 'checkbox' | 'switch' | 'toggle';
56
+ /** Absent reads as off. */
57
+ value: boolean | undefined;
58
+ onChange: (next: boolean) => void;
59
+ /** A `toggle`'s segment content. Defaults to the first letter of `name`. */
60
+ glyph?: ReactNode;
61
+ }
62
+ /** A number field. */
63
+ export interface PropertyNumberFieldProps extends FieldBase {
64
+ kind: 'number';
65
+ /** `input` (default) for a typed number; `slider` for a track with an
66
+ * editable readout, where the range matters more than the exact value. */
67
+ control?: 'input' | 'slider';
68
+ /** Absent reads as an empty field. */
69
+ value: number | null | undefined;
70
+ /**
71
+ * The committed value. Given `onInput` as well, it fires once a drag ends,
72
+ * or on blur or Enter in a typed field; on its own it fires on every move
73
+ * and keystroke. A `framed` typed field commits only on blur or Enter,
74
+ * whichever callbacks it has.
75
+ */
76
+ onChange: (next: number) => void;
77
+ /** The live value, fired continuously. Pass it alongside `onChange` when the
78
+ * write is expensive — cheap state here, the costly work there. */
79
+ onInput?: (next: number) => void;
80
+ /** A slider's track runs 0..100 where these are omitted. */
81
+ min?: number;
82
+ max?: number;
83
+ step?: number;
84
+ /**
85
+ * Suffix after the value. A string becomes a dim word unit (`px`); pass JSX
86
+ * like `<sup>°</sup>` for a symbol. Display only — the value stays a number.
87
+ */
88
+ unit?: ReactNode;
89
+ /** Units a person may type into a `framed` field, each mapped to the factor
90
+ * that turns it into the unit shown: `{ mm: 0.1, cm: 1 }`. */
91
+ accepts?: Readonly<UnitTable>;
92
+ /** A slider readout's display. Defaults to the value at `step`'s precision. */
93
+ format?: (value: number) => ReactNode;
94
+ /** A named display for the value: `compact` reads `2.00M`. `format` wins. */
95
+ notation?: PrefNumberFormat;
96
+ placeholder?: string;
97
+ /** A `framed` unitless field's stepper buttons. Default `true`. */
98
+ steppers?: boolean;
99
+ }
100
+ /** A text field. */
101
+ export interface PropertyStringFieldProps extends FieldBase {
102
+ kind: 'string';
103
+ control?: 'input' | 'textarea';
104
+ /** Absent reads as an empty field. */
105
+ value: string | null | undefined;
106
+ /**
107
+ * The committed text. On its own it fires on every keystroke. Given
108
+ * `onInput` as well, the field drafts: `onInput` gets each keystroke and
109
+ * this fires once, on blur or Enter, and only if the text changed.
110
+ */
111
+ onChange: (next: string) => void;
112
+ onInput?: (next: string) => void;
113
+ placeholder?: string;
114
+ maxLength?: number;
115
+ }
116
+ /** A choice among fixed options. */
117
+ export interface PropertyEnumFieldProps<T extends string = string> extends FieldBase {
118
+ kind: 'enum';
119
+ /**
120
+ * `select` (default) is a dropdown. `radio` and `toggle` show every option
121
+ * at once — a radio group chooses, and a toggle is a row of pressable
122
+ * segments. Drawn `bare`, both are segments.
123
+ */
124
+ control?: 'select' | 'radio' | 'toggle';
125
+ /** Absent, or not one of `options`, chooses nothing. */
126
+ value: T | undefined;
127
+ options: ReadonlyArray<PropertyOption<T>>;
128
+ onChange: (next: T) => void;
129
+ /** Shown while no option is chosen. Defaults to "Choose option…". */
130
+ placeholder?: string;
131
+ }
132
+ /** A single color. */
133
+ export interface PropertyColorFieldProps extends FieldBase {
134
+ kind: 'color';
135
+ /** `#rrggbb`, or `#rrggbbaa` when `alpha` is `true`. */
136
+ value: string | undefined;
137
+ /**
138
+ * The committed color. `bare`: given `onInput` as well, it fires once the
139
+ * picker closes; on its own it fires on every move. `framed`: it fires once
140
+ * per gesture, whichever callbacks it has.
141
+ */
142
+ onChange: (next: string) => void;
143
+ onInput?: (next: string) => void;
144
+ /**
145
+ * Offer an opacity track. `true` keeps the alpha in `value` as `#rrggbbaa`;
146
+ * a number is the 0..1 alpha held apart from it, reported through
147
+ * `onAlphaChange` / `onAlphaInput`.
148
+ */
149
+ alpha?: boolean | number;
150
+ onAlphaChange?: (next: number) => void;
151
+ onAlphaInput?: (next: number) => void;
152
+ /** Draw the opacity track inert, for a consumer that drops alpha. */
153
+ alphaDisabled?: boolean;
154
+ }
155
+ /** A whole paint: a solid, a gradient, a pattern, or none. */
156
+ export interface PropertyPaintFieldProps extends FieldBase {
157
+ kind: 'paint';
158
+ /** `swatch` (default) opens the editor in a popover, for a narrow slot;
159
+ * `inline` draws the kind bar and its editor in place. */
160
+ control?: 'swatch' | 'inline';
161
+ /** `null` is an explicit "no paint"; `undefined` is nothing to show. */
162
+ value: FillStyle | null | undefined;
163
+ onChange: (next: FillStyle | null) => void;
164
+ onInput?: (next: FillStyle | null) => void;
165
+ /** Offer "None". Default `true`. */
166
+ allowNone?: boolean;
167
+ /** Restrict the kinds offered. Default: every registered kind. */
168
+ kinds?: readonly PaintKind[];
169
+ }
170
+ /** A font family, picked from the live font registry. */
171
+ export interface PropertyFontFamilyFieldProps extends FieldBase {
172
+ kind: 'font-family';
173
+ value: string | undefined;
174
+ onChange: (next: string) => void;
175
+ /** The weight and slant the family is drawn at, so the picker names the
176
+ * variant that will actually paint. */
177
+ weight?: number;
178
+ fontStyle?: 'normal' | 'italic';
179
+ }
180
+ /**
181
+ * One field for {@link PropertyControl} and {@link PropertyField}, keyed by
182
+ * `kind`.
183
+ */
184
+ export type PropertyControlProps<T extends string = string> = PropertyBooleanFieldProps | PropertyNumberFieldProps | PropertyStringFieldProps | PropertyEnumFieldProps<T> | PropertyColorFieldProps | PropertyPaintFieldProps | PropertyFontFamilyFieldProps;
185
+ /** The kinds a {@link PropertyControl} draws. */
186
+ export type PropertyFieldKind = PropertyControlProps['kind'];
187
+ /** Row props {@link PropertyField} adds to the field it draws. */
188
+ export interface PropertyFieldRowProps extends PropertyMetricProps {
189
+ label: ReactNode;
190
+ /**
191
+ * Text beside the label. On a slider it replaces the editable readout —
192
+ * use it when the row is not showing a number a caller could type back,
193
+ * such as an auto row's `auto`.
194
+ */
195
+ readout?: ReactNode;
196
+ description?: string;
197
+ layout?: PropertyRowLayout;
198
+ /** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
199
+ span?: boolean;
200
+ /** The row is auto — see `<PropertyRow auto>`. */
201
+ auto?: boolean;
202
+ /** Toggles `auto` from the row's label — see `<PropertyRow onAutoChange>`. */
203
+ onAutoChange?: (next: boolean) => void;
204
+ /** Class on the row. `controlClassName` reaches the control. */
205
+ rowClassName?: string;
206
+ controlClassName?: string;
207
+ }
208
+ /** Props for {@link PropertyField}: one field, and the row around it. */
209
+ export type PropertyFieldProps<T extends string = string> = PropertyFieldRowProps & DistributiveOmit<PropertyControlProps<T>, 'className' | 'id'>;
210
+ type DistributiveOmit<U, K extends PropertyKey> = U extends unknown ? Omit<U, K> : never;
211
+ /**
212
+ * A labeled settings row for one field, its control chosen by `kind` (and
213
+ * `control`): `<PropertyField kind="number" control="slider" label="Blur" …>`.
214
+ *
215
+ * The row is a {@link PropertyRow}; the control is the one
216
+ * {@link PropertyControl} draws for the same props. Every schema-driven
217
+ * settings surface in the kit — `ControlPanel`, `PrefsForm`, `SelectionPanel`
218
+ * — draws its built-in kinds through that one mapping, so a kind's control
219
+ * is decided once.
220
+ *
221
+ * Callbacks follow the field's shape: a discrete control (a box, a choice)
222
+ * reports each pick; a continuous or typed one reports every change through
223
+ * `onChange` alone, or splits them into live `onInput` and settled
224
+ * `onChange` when given both. `mixed` and `unset` show a field whose sources
225
+ * disagree, or agree on holding nothing.
226
+ */
227
+ export declare function PropertyField<T extends string = string>(props: PropertyFieldProps<T>): import("react").JSX.Element;
228
+ /**
229
+ * The control for one field, with no row around it — for a cell that shares
230
+ * a row with others, or a surface that draws its own row. Keyed by `kind`
231
+ * (and `control`), the same mapping {@link PropertyField} draws.
232
+ *
233
+ * A slider brings its readout beside the track. Several elements come back
234
+ * as siblings rather than wrapped, so the surrounding row lays them out.
235
+ */
236
+ export declare function PropertyControl<T extends string = string>(typed: PropertyControlProps<T>): import("react").JSX.Element;
237
+ export {};
238
+ //# sourceMappingURL=PropertyField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyField.d.ts","sourceRoot":"","sources":["../../../src/components/Properties/PropertyField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AACf,OAAO,EAAmC,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAElG,OAAO,EAA4C,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAS/F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAMxD,OAAO,EACL,KAAK,mBAAmB,EAExB,KAAK,iBAAiB,EAEvB,MAAM,iBAAiB,CAAC;AAGzB;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,QAAQ,CAA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CAAC,EAAE,CAAC,SAAS,WAAW,IAAI,CAAC,SAAS,OAAO,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC;AAEzF;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,+BAyDpF;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAC,+BAaxF"}
@@ -1,9 +1,14 @@
1
1
  import { type ReactNode } from 'react';
2
+ import { type StanceProps } from '../stance';
2
3
  import { type PropertyListPack, type PropertyMetricProps } from './PropertyPanel';
3
4
  /** Props for `<PropertyGroup>`. */
4
- export interface PropertyGroupProps extends PropertyMetricProps {
5
+ export interface PropertyGroupProps extends PropertyMetricProps, StanceProps {
5
6
  /** Title rendered between two rules at the top of the group. */
6
7
  title: ReactNode;
8
+ /** Before the title: a drag handle, an ordinal. Clicks here do not fold the group. */
9
+ leading?: ReactNode;
10
+ /** After the title: a summary of the group's value, a remove button. Clicks here do not fold the group. */
11
+ actions?: ReactNode;
7
12
  /** Help text for the whole group, drawn under the title and above the
8
13
  * rows. `<PropertyRow description>` covers the per-row case. */
9
14
  description?: ReactNode;
@@ -38,7 +43,11 @@ export interface PropertyGroupProps extends PropertyMetricProps {
38
43
  * inside a fill effect's controls).
39
44
  *
40
45
  * A collapsible group keeps its rows mounted and hides them, so a control's
41
- * local state survives being folded away.
46
+ * local state survives being folded away. `stance` and `tone` work as on
47
+ * `<PropertyPanel>`; a tone also draws the group's leading edge in it, which
48
+ * is how a list of like groups — effects, tails — tells its members apart.
49
+ * `leading` and `actions` put a handle and controls in the title row, and the
50
+ * groups of a `<PropertyList>` reorder with `useReorderDragList`.
42
51
  */
43
- export declare function PropertyGroup({ title, description, hidden, collapsible, defaultCollapsed, collapsed, onCollapsedChange, children, className, span, pack, density, align, }: PropertyGroupProps): import("react/jsx-runtime").JSX.Element | null;
52
+ export declare function PropertyGroup({ title, leading, actions, description, hidden, collapsible, defaultCollapsed, collapsed, onCollapsedChange, children, className, span, pack, density, align, stance, tone, }: PropertyGroupProps): import("react").JSX.Element | null;
44
53
  //# sourceMappingURL=PropertyGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PropertyGroup.d.ts","sourceRoot":"","sources":["../../../src/components/Properties/PropertyGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,OAAO,CAAC;AAGxD,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EAGzB,MAAM,iBAAiB,CAAC;AAEzB,mCAAmC;AACnC,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB;IAC7D,gEAAgE;IAChE,KAAK,EAAE,SAAS,CAAC;IACjB;qEACiE;IACjE,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,6EAA6E;IAC7E,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,sEAAsE;IACtE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;2EACuE;IACvE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,wEAAwE;IACxE,IAAI,CAAC,EAAE,gBAAgB,CAAC;CACzB;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,WAAW,EACX,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,iBAAiB,EACjB,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,IAAmB,EACnB,OAAO,EACP,KAAK,GACN,EAAE,kBAAkB,kDA4CpB"}
1
+ {"version":3,"file":"PropertyGroup.d.ts","sourceRoot":"","sources":["../../../src/components/Properties/PropertyGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,OAAO,CAAC;AAExD,OAAO,EAAE,KAAK,WAAW,EAAa,MAAM,WAAW,CAAC;AAExD,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EAGzB,MAAM,iBAAiB,CAAC;AAEzB,mCAAmC;AACnC,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB,EAAE,WAAW;IAC1E,gEAAgE;IAChE,KAAK,EAAE,SAAS,CAAC;IACjB,sFAAsF;IACtF,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,2GAA2G;IAC3G,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;qEACiE;IACjE,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,6EAA6E;IAC7E,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,sEAAsE;IACtE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;2EACuE;IACvE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,wEAAwE;IACxE,IAAI,CAAC,EAAE,gBAAgB,CAAC;CACzB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,OAAO,EACP,OAAO,EACP,WAAW,EACX,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,iBAAiB,EACjB,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,IAAmB,EACnB,OAAO,EACP,KAAK,EACL,MAAM,EACN,IAAI,GACL,EAAE,kBAAkB,sCAuDpB"}
@@ -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.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;
@@ -70,7 +88,7 @@ export interface PropertySpanProps {
70
88
  * `<Subpanel>`. `<PropertyRow span>` covers the row case; this covers
71
89
  * everything else a consumer puts in the grid.
72
90
  */
73
- export declare function PropertySpan({ children, className }: PropertySpanProps): import("react/jsx-runtime").JSX.Element;
91
+ export declare function PropertySpan({ children, className }: PropertySpanProps): import("react").JSX.Element;
74
92
  /** Props for `<PropertyNote>`. */
75
93
  export interface PropertyNoteProps {
76
94
  children: ReactNode;
@@ -81,7 +99,7 @@ export interface PropertyNoteProps {
81
99
  * sitting above the rows it describes rather than beside one of them.
82
100
  * `<PropertyRow description>` covers the per-row case.
83
101
  */
84
- export declare function PropertyNote({ children, className }: PropertyNoteProps): import("react/jsx-runtime").JSX.Element;
102
+ export declare function PropertyNote({ children, className }: PropertyNoteProps): import("react").JSX.Element;
85
103
  /** Which control shape a row holds, which decides its intrinsic layout. */
86
104
  export type PropertyRowVariant = 'default' | 'color' | 'checkbox';
87
105
  /** Whether a row's label sits above its control or beside it. */
@@ -125,238 +143,16 @@ export interface PropertyRowProps extends PropertyMetricProps {
125
143
  * can show an auto state but not change it.
126
144
  *
127
145
  * The label then names that toggle, so a control passed as `children` has to
128
- * carry its own accessible name — every row in this module does. */
146
+ * carry its own accessible name — every `<PropertyField>` does. */
129
147
  onAutoChange?: (next: boolean) => void;
130
- }
131
- /** The label-plus-control frame every typed row below is built from. Use it
132
- * directly for a control this module does not cover. */
133
- export declare function PropertyRow({ label, readout, description, variant, layout, span, children, htmlFor, group, className, density, align, auto, onAutoChange, }: PropertyRowProps): import("react/jsx-runtime").JSX.Element;
134
- /** Props for `<SliderRow>`. */
135
- export interface SliderRowProps extends PropertyMetricProps {
136
- label: ReactNode;
137
- value: number;
138
- min: number;
139
- max: number;
140
- step?: number;
141
- /**
142
- * The committed value. Given `onInput` as well, it fires once a drag ends
143
- * or a typed readout is accepted; on its own it fires on every move, which
144
- * is what a row with one callback has always done.
145
- */
146
- onChange: (next: number) => void;
147
- /**
148
- * The live value, fired continuously through a drag. Pass it alongside
149
- * `onChange` when the write is expensive — cheap state here, the costly
150
- * work there. Mirrors `<Slider>`'s `onInput` / `onChange` pair.
151
- */
152
- onInput?: (next: number) => void;
153
- /** Override how the value is rendered next to the label. Defaults to `value.toString()`. */
154
- format?: (value: number) => ReactNode;
155
- /**
156
- * Static text in place of the editable readout. Use it when the row is not
157
- * showing a number a caller could type back — an auto row's `auto`, say,
158
- * which an editable field would seed a draft with and then fail to parse.
159
- */
160
- readout?: ReactNode;
161
- /** A named display for the value: `compact` reads `2.0M`. `format` wins when both are given. */
162
- notation?: PrefNumberFormat;
163
- /**
164
- * Optional suffix rendered next to the readout. A string becomes a
165
- * baseline-aligned dim "word" unit (e.g. "px"); pass JSX like `<sup>°</sup>`
166
- * to get the browser's native super positioning for symbol units.
167
- */
168
- unit?: ReactNode;
169
- layout?: PropertyRowLayout;
170
- description?: string;
171
- /** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
172
- span?: boolean;
173
- /** The row is auto — see `<PropertyRow auto>`. */
174
- auto?: boolean;
175
- /** Toggles `auto` from the row's label — see `<PropertyRow onAutoChange>`. */
176
- onAutoChange?: (next: boolean) => void;
177
- }
178
- /** A bounded number edited by dragging, with a live readout whose precision
179
- * follows `step`. */
180
- export declare function SliderRow({ label, value, min, max, step, onChange, onInput, format, readout, notation, unit, layout, description, span, density, align, auto, onAutoChange, }: SliderRowProps): import("react/jsx-runtime").JSX.Element;
181
- /** Props for `<ColorRow>`. */
182
- export interface ColorRowProps extends PropertyMetricProps {
183
- label: ReactNode;
184
- value: string;
185
- /**
186
- * The committed color. Given `onInput` as well, it fires once the picker
187
- * closes; on its own it fires on every move inside it, which is what a row
188
- * with one callback has always done.
189
- */
190
- onChange: (next: string) => void;
191
148
  /**
192
- * The live color, fired continuously while the picker is open. Pass it
193
- * alongside `onChange` when the write is expensive — cheap state here, the
194
- * costly work there. Mirrors `<Slider>`'s `onInput` / `onChange` pair.
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}.
195
152
  */
196
- onInput?: (next: string) => void;
197
- /** 0..1 alpha. When provided, a translucent slider renders beneath the swatch. */
198
- alpha?: number;
199
- /** The committed alpha, on the same terms as `onChange`. */
200
- onAlphaChange?: (next: number) => void;
201
- /** The live alpha, on the same terms as `onInput`. */
202
- onAlphaInput?: (next: number) => void;
203
- /**
204
- * Render the alpha track as inert (dimmed, no thumb, not-allowed cursor).
205
- * Use when the color's consumer drops alpha so the affordance reads dead.
206
- */
207
- alphaDisabled?: boolean;
208
- /** Label beside the swatch (default) or above it. */
209
- layout?: PropertyRowLayout;
210
- description?: string;
211
- /** Right-aligned readout shown next to the label — see `<PropertyRow readout>`. */
212
- readout?: ReactNode;
213
- /** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
214
- span?: boolean;
215
- /** The row is auto — see `<PropertyRow auto>`. */
216
- auto?: boolean;
217
- /** Toggles `auto` from the row's label — see `<PropertyRow onAutoChange>`. */
218
- onAutoChange?: (next: boolean) => void;
219
- }
220
- /** A color swatch, optionally with an alpha slider beneath it. */
221
- export declare function ColorRow({ label, readout, value, onChange, onInput, alpha, onAlphaChange, onAlphaInput, alphaDisabled, layout, description, span, density, align, auto, onAutoChange, }: ColorRowProps): import("react/jsx-runtime").JSX.Element;
222
- /** Props for `<CheckboxRow>`. */
223
- export interface CheckboxRowProps extends PropertyMetricProps {
224
- label: ReactNode;
225
- /** Absent reads as unchecked. */
226
- value: boolean | undefined;
227
- onChange: (next: boolean) => void;
228
- /** Label beside the box (default) or above it. */
229
- layout?: PropertyRowLayout;
230
- description?: string;
231
- /** Right-aligned readout shown next to the label — see `<PropertyRow readout>`. */
232
- readout?: ReactNode;
233
- /** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
234
- span?: boolean;
235
- /** The row is auto — see `<PropertyRow auto>`. */
236
- auto?: boolean;
237
- /** Toggles `auto` from the row's label — see `<PropertyRow onAutoChange>`. */
238
- onAutoChange?: (next: boolean) => void;
239
- }
240
- /** A boolean checkbox. */
241
- export declare function CheckboxRow({ label, readout, value, onChange, layout, span, description, density, align, auto, onAutoChange, }: CheckboxRowProps): import("react/jsx-runtime").JSX.Element;
242
- /** Props for `<SwitchRow>`. */
243
- export interface SwitchRowProps extends Omit<CheckboxRowProps, 'value'> {
244
- /** Absent reads as off. */
245
- value: boolean | undefined;
246
- }
247
- /**
248
- * A boolean switch — the same row as `<CheckboxRow>`, drawn as an on/off
249
- * toggle. Reach for it where the change takes effect immediately, and for
250
- * a checkbox where it is submitted with a form.
251
- */
252
- export declare function SwitchRow({ label, readout, value, onChange, layout, span, description, density, align, auto, onAutoChange, }: SwitchRowProps): import("react/jsx-runtime").JSX.Element;
253
- /** Props for `<TextRow>`. */
254
- export interface TextRowProps extends PropertyMetricProps {
255
- label: ReactNode;
256
- /** Absent reads as an empty field. */
257
- value: string | null | undefined;
258
- onChange: (next: string) => void;
259
- placeholder?: string;
260
- maxLength?: number;
261
- layout?: PropertyRowLayout;
262
- description?: string;
263
- /** Right-aligned readout shown next to the label — see `<PropertyRow readout>`. */
264
- readout?: ReactNode;
265
- /** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
266
- span?: boolean;
267
- /** The row is auto — see `<PropertyRow auto>`. */
268
- auto?: boolean;
269
- /** Toggles `auto` from the row's label — see `<PropertyRow onAutoChange>`. */
270
- onAutoChange?: (next: boolean) => void;
271
- }
272
- /** A single-line text input. */
273
- export declare function TextRow({ label, readout, value, onChange, placeholder, maxLength, layout, description, span, density, align, auto, onAutoChange, }: TextRowProps): import("react/jsx-runtime").JSX.Element;
274
- /** Props for `<NumberRow>`. */
275
- export interface NumberRowProps extends PropertyMetricProps {
276
- label: ReactNode;
277
- /** Absent reads as an empty field. */
278
- value: number | null | undefined;
279
- /**
280
- * The committed value. Given `onInput` as well, it fires on blur or Enter;
281
- * on its own it fires on every keystroke, which is what a row with one
282
- * callback has always done.
283
- */
284
- onChange: (next: number) => void;
285
- /**
286
- * The live value, fired per keystroke. Pass it alongside `onChange` when the
287
- * write is expensive — cheap state here, the costly work there. Mirrors
288
- * `<Slider>`'s `onInput` / `onChange` pair.
289
- */
290
- onInput?: (next: number) => void;
291
- min?: number;
292
- max?: number;
293
- step?: number;
294
- placeholder?: string;
295
- /**
296
- * Optional suffix rendered after the field. A string becomes a dim "word"
297
- * unit (e.g. "px"); pass JSX like `<sup>°</sup>` for symbol units. Display
298
- * only — it never participates in parsing, and the value stays a number.
299
- */
300
- unit?: ReactNode;
301
- layout?: PropertyRowLayout;
302
- description?: string;
303
- /** Right-aligned readout shown next to the label — see `<PropertyRow readout>`. */
304
- readout?: ReactNode;
305
- /** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
306
- span?: boolean;
307
- /** The row is auto — see `<PropertyRow auto>`. */
308
- auto?: boolean;
309
- /** Toggles `auto` from the row's label — see `<PropertyRow onAutoChange>`. */
310
- onAutoChange?: (next: boolean) => void;
311
- }
312
- /** A number typed directly. Reach for `<SliderRow>` when the range matters
313
- * more than the exact value. */
314
- export declare function NumberRow({ label, readout, value, onChange, onInput, min, max, step, placeholder, unit, layout, description, span, density, align, auto, onAutoChange, }: NumberRowProps): import("react/jsx-runtime").JSX.Element;
315
- export interface PropertyOption<T extends string> {
316
- value: T;
317
- label: ReactNode;
318
- }
319
- /** Props for `<SelectRow>`. */
320
- export interface SelectRowProps<T extends string> extends PropertyMetricProps {
321
- label: ReactNode;
322
- /** Absent, or not one of `options`, shows a placeholder rather than the first option. */
323
- value: T | undefined;
324
- options: ReadonlyArray<PropertyOption<T>>;
325
- onChange: (next: T) => void;
326
- /** Shown while no option is chosen. Defaults to "Choose option…". */
327
- placeholder?: string;
328
- layout?: PropertyRowLayout;
329
- description?: string;
330
- /** Right-aligned readout shown next to the label — see `<PropertyRow readout>`. */
331
- readout?: ReactNode;
332
- /** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
333
- span?: boolean;
334
- /** The row is auto — see `<PropertyRow auto>`. */
335
- auto?: boolean;
336
- /** Toggles `auto` from the row's label — see `<PropertyRow onAutoChange>`. */
337
- onAutoChange?: (next: boolean) => void;
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, }: 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 the row's label — see `<PropertyRow onAutoChange>`. */
357
- onAutoChange?: (next: boolean) => void;
153
+ chrome?: PropertyFieldChrome;
358
154
  }
359
- /** A segmented control: the same choice as a select, with every option
360
- * visible at once. */
361
- export declare function ToggleRow<T extends string>({ label, readout, value, options, onChange, layout, description, span, density, align, auto, onAutoChange, }: 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.Element;
362
158
  //# sourceMappingURL=PropertyPanel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PropertyPanel.d.ts","sourceRoot":"","sources":["../../../src/components/Properties/PropertyPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAOxD;;;;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,kBAAmB,SAAQ,mBAAmB;IAC7D,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;qCACqC;AACrC,wBAAgB,aAAa,CAA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IAAI,CAAC,EAAE,OAAO,CAAC;IACf,8EAA8E;IAC9E,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC;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,GACb,EAAE,cAAc,CAAC,CAAC,CAAC,2CAmCnB"}
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,kBAAmB,SAAQ,mBAAmB,EAAE,WAAW;IAC1E,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;oCAEgC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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,+BA6ClB"}
@@ -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.Element;
14
+ //# sourceMappingURL=Subpanel.d.ts.map