@weasel-js/ui 1.7.0 → 1.7.2

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 (416) hide show
  1. package/dist/chunks/ActionBar-xA73vzzF.js +64 -0
  2. package/dist/chunks/ActionBar-xA73vzzF.js.map +1 -0
  3. package/dist/chunks/{Badge-D2aD7xVL.js → Badge-jYQjrTKc.js} +235 -264
  4. package/dist/chunks/{Badge-D2aD7xVL.js.map → Badge-jYQjrTKc.js.map} +1 -1
  5. package/dist/chunks/{BandEditor-Dd0egAgE.js → BandEditor-B4jUAHQ8.js} +13 -13
  6. package/dist/chunks/BandEditor-B4jUAHQ8.js.map +1 -0
  7. package/dist/chunks/{Button-BIdXHQOx.js → Button-XB-T75YL.js} +2 -2
  8. package/dist/chunks/{Button-BIdXHQOx.js.map → Button-XB-T75YL.js.map} +1 -1
  9. package/dist/chunks/{ButtonBar-DIQTe5GQ.js → ButtonBar-CIMKPPRS.js} +7 -9
  10. package/dist/chunks/{ButtonBar-DIQTe5GQ.js.map → ButtonBar-CIMKPPRS.js.map} +1 -1
  11. package/dist/chunks/Callout-BUn0dP_S.js +115 -0
  12. package/dist/chunks/Callout-BUn0dP_S.js.map +1 -0
  13. package/dist/chunks/Checkbox-DFn-x0JO.js +37 -0
  14. package/dist/chunks/Checkbox-DFn-x0JO.js.map +1 -0
  15. package/dist/chunks/{CloseButton-C2J7wVfo.js → CloseButton-BmNmRVtb.js} +3 -3
  16. package/dist/chunks/{CloseButton-C2J7wVfo.js.map → CloseButton-BmNmRVtb.js.map} +1 -1
  17. package/dist/chunks/ColorField-BwlelY26.js +90 -0
  18. package/dist/chunks/ColorField-BwlelY26.js.map +1 -0
  19. package/dist/chunks/{ColorModeControl-BewxA0rX.js → ColorModeControl-DaVJ-SyX.js} +3 -3
  20. package/dist/chunks/{ColorModeControl-BewxA0rX.js.map → ColorModeControl-DaVJ-SyX.js.map} +1 -1
  21. package/dist/chunks/ComboBox-DKln_mOd.js +138 -0
  22. package/dist/chunks/ComboBox-DKln_mOd.js.map +1 -0
  23. package/dist/chunks/{CurveEditor-DUVjd25R.js → CurveEditor-0EE00D6s.js} +90 -87
  24. package/dist/chunks/CurveEditor-0EE00D6s.js.map +1 -0
  25. package/dist/chunks/{DataGrid-LZ2JgY2Y.js → DataGrid-CmHJe57v.js} +23 -18
  26. package/dist/chunks/DataGrid-CmHJe57v.js.map +1 -0
  27. package/dist/chunks/DetailList-BpU50XVe.js +54 -0
  28. package/dist/chunks/DetailList-BpU50XVe.js.map +1 -0
  29. package/dist/chunks/{DetentSlider-5uQPFucv.js → DetentSlider-DNTAk8xP.js} +2 -2
  30. package/dist/chunks/{DetentSlider-5uQPFucv.js.map → DetentSlider-DNTAk8xP.js.map} +1 -1
  31. package/dist/chunks/{Dialog-DGFutQ--.js → Dialog-DKfsk5VN.js} +3 -3
  32. package/dist/chunks/{Dialog-DGFutQ--.js.map → Dialog-DKfsk5VN.js.map} +1 -1
  33. package/dist/chunks/{DragGhost-B5_hb9W9.js → DragGhost-BeYDJyLZ.js} +2 -2
  34. package/dist/chunks/{DragGhost-B5_hb9W9.js.map → DragGhost-BeYDJyLZ.js.map} +1 -1
  35. package/dist/chunks/{FallthroughDiagram-BEHiM5IS.js → FallthroughDiagram-CS1IhQaU.js} +16 -16
  36. package/dist/chunks/FallthroughDiagram-CS1IhQaU.js.map +1 -0
  37. package/dist/chunks/Field-DiX_WByH.js +25 -0
  38. package/dist/chunks/Field-DiX_WByH.js.map +1 -0
  39. package/dist/chunks/FillStrokeSwatch-C4h3rUFM.js +112 -0
  40. package/dist/chunks/FillStrokeSwatch-C4h3rUFM.js.map +1 -0
  41. package/dist/chunks/{FontFamilySelect-DkRgNtag.js → FontFamilySelect-DEvMXyZd.js} +2 -2
  42. package/dist/chunks/FontFamilySelect-DEvMXyZd.js.map +1 -0
  43. package/dist/chunks/FontWeightSelect-BLQ_LMJF.js +49 -0
  44. package/dist/chunks/FontWeightSelect-BLQ_LMJF.js.map +1 -0
  45. package/dist/chunks/{GestureRoute-C_YGl7bJ.js → GestureRoute-BXESrHI0.js} +2 -2
  46. package/dist/chunks/{GestureRoute-C_YGl7bJ.js.map → GestureRoute-BXESrHI0.js.map} +1 -1
  47. package/dist/chunks/GradientEditor-DD2OjQtn.js +325 -0
  48. package/dist/chunks/GradientEditor-DD2OjQtn.js.map +1 -0
  49. package/dist/chunks/{Icon-CcVjdq2C.js → Icon--B1ME-6c.js} +3 -1
  50. package/dist/chunks/Icon--B1ME-6c.js.map +1 -0
  51. package/dist/chunks/{InlineRange-P01ABSzo.js → InlineRange-DPjIsJB3.js} +3 -3
  52. package/dist/chunks/InlineRange-DPjIsJB3.js.map +1 -0
  53. package/dist/chunks/{Input-CHmkfYaD.js → Input-D7SDKbST.js} +10 -15
  54. package/dist/chunks/Input-D7SDKbST.js.map +1 -0
  55. package/dist/chunks/{ItemList-Cm-HUWCi.js → ItemList-CRu9y7hL.js} +2 -2
  56. package/dist/chunks/ItemList-CRu9y7hL.js.map +1 -0
  57. package/dist/chunks/{Jog-DRmfrkCg.js → Jog-BrkzdGV2.js} +8 -8
  58. package/dist/chunks/Jog-BrkzdGV2.js.map +1 -0
  59. package/dist/chunks/{LayerList-wCI1EueM.js → LayerList-Bxj1N6bj.js} +151 -153
  60. package/dist/chunks/LayerList-Bxj1N6bj.js.map +1 -0
  61. package/dist/chunks/ListEditor-OQDzG4A5.js +72 -0
  62. package/dist/chunks/ListEditor-OQDzG4A5.js.map +1 -0
  63. package/dist/chunks/MenuButton-TAFg88Lp.js +75 -0
  64. package/dist/chunks/MenuButton-TAFg88Lp.js.map +1 -0
  65. package/dist/chunks/MeshEditor-DWpvg8H6.js +199 -0
  66. package/dist/chunks/MeshEditor-DWpvg8H6.js.map +1 -0
  67. package/dist/chunks/{NumberField-BnJxcazc.js → NumberField-DS0WSiin.js} +26 -23
  68. package/dist/chunks/NumberField-DS0WSiin.js.map +1 -0
  69. package/dist/chunks/{OptionsBar-ujxYidhj.js → OptionsBar-DeTAjVb7.js} +6 -8
  70. package/dist/chunks/{OptionsBar-ujxYidhj.js.map → OptionsBar-DeTAjVb7.js.map} +1 -1
  71. package/dist/chunks/PaintField-BdmQM53v.js +63 -0
  72. package/dist/chunks/PaintField-BdmQM53v.js.map +1 -0
  73. package/dist/chunks/PaintInput-DaQMeBsI.js +132 -0
  74. package/dist/chunks/PaintInput-DaQMeBsI.js.map +1 -0
  75. package/dist/chunks/PatternPicker-B3HcMZWg.js +135 -0
  76. package/dist/chunks/PatternPicker-B3HcMZWg.js.map +1 -0
  77. package/dist/chunks/{Plot2D-CTXHkL5p.js → Plot2D-BrvQS0dh.js} +7 -7
  78. package/dist/chunks/Plot2D-BrvQS0dh.js.map +1 -0
  79. package/dist/chunks/{PointPlotter-ldI4RrU1.js → PointPlotter-BBXpQ_QD.js} +2 -2
  80. package/dist/chunks/{PointPlotter-ldI4RrU1.js.map → PointPlotter-BBXpQ_QD.js.map} +1 -1
  81. package/dist/chunks/{Powerline-DNyH885r.js → Powerline-6wIFmDik.js} +2 -2
  82. package/dist/chunks/{Powerline-DNyH885r.js.map → Powerline-6wIFmDik.js.map} +1 -1
  83. package/dist/chunks/{Prefs-ByA-x51i.js → Prefs-C4MZ28SX.js} +118 -95
  84. package/dist/chunks/Prefs-C4MZ28SX.js.map +1 -0
  85. package/dist/chunks/{Properties-DmAeQ3mk.js → Properties-DseN56WI.js} +29 -29
  86. package/dist/chunks/{Properties-DmAeQ3mk.js.map → Properties-DseN56WI.js.map} +1 -1
  87. package/dist/chunks/PropertyField-BbNqK8xr.js +743 -0
  88. package/dist/chunks/PropertyField-BbNqK8xr.js.map +1 -0
  89. package/dist/chunks/{RadioGroup-Bh4-12e-.js → RadioGroup-B70_M-gT.js} +2 -2
  90. package/dist/chunks/{RadioGroup-Bh4-12e-.js.map → RadioGroup-B70_M-gT.js.map} +1 -1
  91. package/dist/chunks/{RangeSlider-SEGE-7VF.js → RangeSlider-DO5TZVk7.js} +8 -8
  92. package/dist/chunks/{RangeSlider-SEGE-7VF.js.map → RangeSlider-DO5TZVk7.js.map} +1 -1
  93. package/dist/chunks/RecentColorsProvider-DHcfk25u.js +84 -0
  94. package/dist/chunks/RecentColorsProvider-DHcfk25u.js.map +1 -0
  95. package/dist/chunks/ResizeHandle-CbAgCQOt.js +81 -0
  96. package/dist/chunks/ResizeHandle-CbAgCQOt.js.map +1 -0
  97. package/dist/chunks/Select-ouV8O6cp.js +236 -0
  98. package/dist/chunks/Select-ouV8O6cp.js.map +1 -0
  99. package/dist/chunks/{SelectionPanel-BaQnX4Bs.js → SelectionPanel-C3WzyaZV.js} +14 -13
  100. package/dist/chunks/{SelectionPanel-BaQnX4Bs.js.map → SelectionPanel-C3WzyaZV.js.map} +1 -1
  101. package/dist/chunks/{SidebarPanel-BblDEz4G.js → SidebarPanel-AXQ0jRDx.js} +2 -2
  102. package/dist/chunks/{SidebarPanel-BblDEz4G.js.map → SidebarPanel-AXQ0jRDx.js.map} +1 -1
  103. package/dist/chunks/{Slider-YofwGOI4.js → Slider-DSrlMEq8.js} +19 -19
  104. package/dist/chunks/Slider-DSrlMEq8.js.map +1 -0
  105. package/dist/chunks/{StatusBar-Ca9Dvhhq.js → StatusBar-BEOfOX0D.js} +6 -6
  106. package/dist/chunks/StatusBar-BEOfOX0D.js.map +1 -0
  107. package/dist/chunks/SwatchGrid-9ZPiDmxd.js +78 -0
  108. package/dist/chunks/SwatchGrid-9ZPiDmxd.js.map +1 -0
  109. package/dist/chunks/SwatchStrip-Bi9iPLoh.js +577 -0
  110. package/dist/chunks/SwatchStrip-Bi9iPLoh.js.map +1 -0
  111. package/dist/chunks/{ThemeSwitcher-BlsInAmR.js → ThemeSwitcher-DiBmMh_B.js} +3 -3
  112. package/dist/chunks/{ThemeSwitcher-BlsInAmR.js.map → ThemeSwitcher-DiBmMh_B.js.map} +1 -1
  113. package/dist/chunks/{Timeline-B39cwfMB.js → Timeline-sMCH2fah.js} +293 -280
  114. package/dist/chunks/Timeline-sMCH2fah.js.map +1 -0
  115. package/dist/chunks/Toast-C3ozq11V.js +170 -0
  116. package/dist/chunks/Toast-C3ozq11V.js.map +1 -0
  117. package/dist/chunks/{ToggleBar-BTYkBXU9.js → ToggleBar-Z2jZiguF.js} +6 -8
  118. package/dist/chunks/{ToggleBar-BTYkBXU9.js.map → ToggleBar-Z2jZiguF.js.map} +1 -1
  119. package/dist/chunks/{TokenPanel-CMDAOfYH.js → TokenPanel-WtKGY2Db.js} +32 -32
  120. package/dist/chunks/TokenPanel-WtKGY2Db.js.map +1 -0
  121. package/dist/chunks/{ToolButton-CAHBa08P.js → ToolButton-BURp4YIO.js} +7 -9
  122. package/dist/chunks/ToolButton-BURp4YIO.js.map +1 -0
  123. package/dist/chunks/{ToolOptionsBar-D_GCrBAN.js → ToolOptionsBar-CZTYPoC2.js} +3 -2
  124. package/dist/chunks/{ToolOptionsBar-D_GCrBAN.js.map → ToolOptionsBar-CZTYPoC2.js.map} +1 -1
  125. package/dist/chunks/{ToolPalette-OOWN51Xx.js → ToolPalette-DKDFWOX-.js} +7 -9
  126. package/dist/chunks/{ToolPalette-OOWN51Xx.js.map → ToolPalette-DKDFWOX-.js.map} +1 -1
  127. package/dist/chunks/{Tooltip-Clg2mhSt.js → Tooltip-C6eFCYxw.js} +2 -2
  128. package/dist/chunks/{Tooltip-Clg2mhSt.js.map → Tooltip-C6eFCYxw.js.map} +1 -1
  129. package/dist/chunks/Tree-Cc8lIzgM.js.map +1 -1
  130. package/dist/chunks/checkbox.module-DLQV9tMX.js +5 -0
  131. package/dist/chunks/checkbox.module-DLQV9tMX.js.map +1 -0
  132. package/dist/chunks/{createKeyframeLayer-DVl321_l.js → createKeyframeLayer-DSVf13Su.js} +194 -208
  133. package/dist/chunks/createKeyframeLayer-DSVf13Su.js.map +1 -0
  134. package/dist/chunks/field.module-B27pWv0i.js +15 -0
  135. package/dist/chunks/field.module-B27pWv0i.js.map +1 -0
  136. package/dist/chunks/formatShortcut-DRQrVThu.js.map +1 -1
  137. package/dist/chunks/handles-CqVANLtu.js +17 -0
  138. package/dist/chunks/handles-CqVANLtu.js.map +1 -0
  139. package/dist/chunks/{icons-BhcR1l64.js → icons-Dr2-r30x.js} +2 -2
  140. package/dist/chunks/icons-Dr2-r30x.js.map +1 -0
  141. package/dist/chunks/listbox.module-BcdVJMbm.js +8 -0
  142. package/dist/chunks/listbox.module-BcdVJMbm.js.map +1 -0
  143. package/dist/chunks/model-qsAFK7_0.js +386 -0
  144. package/dist/chunks/model-qsAFK7_0.js.map +1 -0
  145. package/dist/chunks/{portalHost-yTOVuCej.js → portalHost-CE70wLzo.js} +10 -6
  146. package/dist/chunks/portalHost-CE70wLzo.js.map +1 -0
  147. package/dist/chunks/prefField-BE_Ytr2H.js +229 -0
  148. package/dist/chunks/prefField-BE_Ytr2H.js.map +1 -0
  149. package/dist/chunks/{segmentTooltip-CStYHKzd.js → segmentTooltip-CGxCOWNz.js} +2 -2
  150. package/dist/chunks/{segmentTooltip-CStYHKzd.js.map → segmentTooltip-CGxCOWNz.js.map} +1 -1
  151. package/dist/chunks/segmentedControl.module-BzGXUL5G.js +11 -0
  152. package/dist/chunks/segmentedControl.module-BzGXUL5G.js.map +1 -0
  153. package/dist/chunks/useReorderDragList-CStYKjHl.js +133 -0
  154. package/dist/chunks/useReorderDragList-CStYKjHl.js.map +1 -0
  155. package/dist/chunks/useRovingTabIndex-D7u22Ia_.js +91 -0
  156. package/dist/chunks/useRovingTabIndex-D7u22Ia_.js.map +1 -0
  157. package/dist/components/ActionBar/ActionBar.d.ts.map +1 -1
  158. package/dist/components/ActionBar/index.js +1 -1
  159. package/dist/components/Badge/bases/ChamferedRect.d.ts.map +1 -1
  160. package/dist/components/Badge/index.js +1 -1
  161. package/dist/components/BandEditor/BandEditor.d.ts +1 -0
  162. package/dist/components/BandEditor/BandEditor.d.ts.map +1 -1
  163. package/dist/components/BandEditor/index.js +1 -1
  164. package/dist/components/Button/index.js +1 -1
  165. package/dist/components/ButtonBar/ButtonBar.d.ts.map +1 -1
  166. package/dist/components/ButtonBar/index.js +1 -1
  167. package/dist/components/Callout/Callout.d.ts.map +1 -1
  168. package/dist/components/Callout/index.js +1 -1
  169. package/dist/components/Checkbox/Checkbox.d.ts +28 -13
  170. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
  171. package/dist/components/Checkbox/index.js +1 -1
  172. package/dist/components/CloseButton/index.js +1 -1
  173. package/dist/components/ColorField/ColorField.d.ts.map +1 -1
  174. package/dist/components/ColorField/OpacityRange.d.ts +18 -0
  175. package/dist/components/ColorField/OpacityRange.d.ts.map +1 -0
  176. package/dist/components/ColorField/index.js +1 -1
  177. package/dist/components/ColorModeControl/index.js +1 -1
  178. package/dist/components/ComboBox/ComboBox.d.ts +7 -0
  179. package/dist/components/ComboBox/ComboBox.d.ts.map +1 -1
  180. package/dist/components/ComboBox/index.js +1 -1
  181. package/dist/components/CurveEditor/CurveEditor.d.ts.map +1 -1
  182. package/dist/components/CurveEditor/LayeredCurveEditor.d.ts.map +1 -1
  183. package/dist/components/CurveEditor/index.js +2 -2
  184. package/dist/components/DataGrid/DataGrid.d.ts +3 -0
  185. package/dist/components/DataGrid/DataGrid.d.ts.map +1 -1
  186. package/dist/components/DataGrid/index.js +1 -1
  187. package/dist/components/DetailList/DetailList.d.ts +1 -1
  188. package/dist/components/DetailList/DetailList.d.ts.map +1 -1
  189. package/dist/components/DetailList/index.js +1 -1
  190. package/dist/components/DetentSlider/index.js +1 -1
  191. package/dist/components/Dialog/index.js +1 -1
  192. package/dist/components/DragGhost/index.js +1 -1
  193. package/dist/components/FallthroughDiagram/index.js +1 -1
  194. package/dist/components/Field/index.js +1 -1
  195. package/dist/components/FillStrokeSwatch/FillStrokeSwatch.d.ts +5 -2
  196. package/dist/components/FillStrokeSwatch/FillStrokeSwatch.d.ts.map +1 -1
  197. package/dist/components/FillStrokeSwatch/index.js +1 -1
  198. package/dist/components/FontFamilySelect/FontFamilySelect.d.ts +20 -0
  199. package/dist/components/FontFamilySelect/FontFamilySelect.d.ts.map +1 -1
  200. package/dist/components/FontFamilySelect/index.js +1 -1
  201. package/dist/components/FontWeightSelect/FontWeightSelect.d.ts +26 -0
  202. package/dist/components/FontWeightSelect/FontWeightSelect.d.ts.map +1 -0
  203. package/dist/components/FontWeightSelect/index.d.ts +3 -0
  204. package/dist/components/FontWeightSelect/index.d.ts.map +1 -0
  205. package/dist/components/FontWeightSelect/index.js +2 -0
  206. package/dist/components/GestureRoute/index.js +1 -1
  207. package/dist/components/GradientEditor/GradientHandles.d.ts +1 -8
  208. package/dist/components/GradientEditor/GradientHandles.d.ts.map +1 -1
  209. package/dist/components/GradientEditor/SceneGradientHandles.d.ts +7 -5
  210. package/dist/components/GradientEditor/SceneGradientHandles.d.ts.map +1 -1
  211. package/dist/components/GradientEditor/handleOverlay.d.ts +41 -0
  212. package/dist/components/GradientEditor/handleOverlay.d.ts.map +1 -0
  213. package/dist/components/GradientEditor/index.js +1 -1
  214. package/dist/components/InlineRange/index.js +1 -1
  215. package/dist/components/Input/Input.d.ts +1 -1
  216. package/dist/components/Input/Input.d.ts.map +1 -1
  217. package/dist/components/Input/index.js +1 -1
  218. package/dist/components/ItemList/ItemList.d.ts +32 -31
  219. package/dist/components/ItemList/ItemList.d.ts.map +1 -1
  220. package/dist/components/ItemList/index.js +1 -1
  221. package/dist/components/Jog/index.js +1 -1
  222. package/dist/components/LayerList/LayerList.d.ts.map +1 -1
  223. package/dist/components/LayerList/index.js +1 -1
  224. package/dist/components/ListEditor/ListEditor.d.ts.map +1 -1
  225. package/dist/components/ListEditor/index.js +1 -1
  226. package/dist/components/MenuButton/MenuButton.d.ts.map +1 -1
  227. package/dist/components/MenuButton/index.js +1 -1
  228. package/dist/components/MeshEditor/MeshEditor.d.ts +4 -3
  229. package/dist/components/MeshEditor/MeshEditor.d.ts.map +1 -1
  230. package/dist/components/MeshEditor/MeshHandles.d.ts +38 -0
  231. package/dist/components/MeshEditor/MeshHandles.d.ts.map +1 -0
  232. package/dist/components/MeshEditor/index.d.ts +2 -0
  233. package/dist/components/MeshEditor/index.d.ts.map +1 -1
  234. package/dist/components/MeshEditor/index.js +2 -2
  235. package/dist/components/NumberField/NumberField.d.ts +1 -1
  236. package/dist/components/NumberField/NumberField.d.ts.map +1 -1
  237. package/dist/components/NumberField/index.js +1 -1
  238. package/dist/components/OptionsBar/OptionsBar.d.ts.map +1 -1
  239. package/dist/components/OptionsBar/index.js +1 -1
  240. package/dist/components/PaintField/PaintField.d.ts.map +1 -1
  241. package/dist/components/PaintField/index.js +1 -1
  242. package/dist/components/PaintInput/PaintInput.d.ts.map +1 -1
  243. package/dist/components/PaintInput/index.js +1 -1
  244. package/dist/components/PatternPicker/PatternPicker.d.ts +6 -5
  245. package/dist/components/PatternPicker/PatternPicker.d.ts.map +1 -1
  246. package/dist/components/PatternPicker/index.js +1 -1
  247. package/dist/components/Plot2D/index.js +1 -1
  248. package/dist/components/PointPlotter/index.js +1 -1
  249. package/dist/components/Powerline/index.js +2 -2
  250. package/dist/components/Prefs/PrefsForm.d.ts +22 -0
  251. package/dist/components/Prefs/PrefsForm.d.ts.map +1 -1
  252. package/dist/components/Prefs/PrefsRail.d.ts +3 -2
  253. package/dist/components/Prefs/PrefsRail.d.ts.map +1 -1
  254. package/dist/components/Prefs/PrefsRow.d.ts +4 -0
  255. package/dist/components/Prefs/PrefsRow.d.ts.map +1 -1
  256. package/dist/components/Prefs/index.js +2 -2
  257. package/dist/components/Prefs/prefField.d.ts +13 -0
  258. package/dist/components/Prefs/prefField.d.ts.map +1 -1
  259. package/dist/components/Properties/PropertyField.d.ts +13 -2
  260. package/dist/components/Properties/PropertyField.d.ts.map +1 -1
  261. package/dist/components/Properties/PropertyPanel.d.ts +18 -1
  262. package/dist/components/Properties/PropertyPanel.d.ts.map +1 -1
  263. package/dist/components/Properties/index.d.ts +2 -2
  264. package/dist/components/Properties/index.d.ts.map +1 -1
  265. package/dist/components/Properties/index.js +3 -3
  266. package/dist/components/RadioGroup/index.js +1 -1
  267. package/dist/components/RangeSlider/index.js +1 -1
  268. package/dist/components/RecentColors/RecentColorsProvider.d.ts +24 -0
  269. package/dist/components/RecentColors/RecentColorsProvider.d.ts.map +1 -0
  270. package/dist/components/RecentColors/index.d.ts +5 -0
  271. package/dist/components/RecentColors/index.d.ts.map +1 -0
  272. package/dist/components/RecentColors/index.js +2 -0
  273. package/dist/components/RecentColors/recentColors.d.ts +39 -0
  274. package/dist/components/RecentColors/recentColors.d.ts.map +1 -0
  275. package/dist/components/ResizeHandle/ResizeHandle.d.ts.map +1 -1
  276. package/dist/components/ResizeHandle/index.js +1 -1
  277. package/dist/components/Select/Select.d.ts +6 -2
  278. package/dist/components/Select/Select.d.ts.map +1 -1
  279. package/dist/components/Select/index.js +1 -1
  280. package/dist/components/SelectionPanel/index.js +2 -2
  281. package/dist/components/SelectionPanel/renderLeaf.d.ts +12 -2
  282. package/dist/components/SelectionPanel/renderLeaf.d.ts.map +1 -1
  283. package/dist/components/SidebarPanel/index.js +1 -1
  284. package/dist/components/Slider/index.js +1 -1
  285. package/dist/components/StatusBar/StatusBar.d.ts +1 -1
  286. package/dist/components/StatusBar/index.js +1 -1
  287. package/dist/components/SwatchGrid/SwatchGrid.d.ts.map +1 -1
  288. package/dist/components/SwatchGrid/index.js +1 -1
  289. package/dist/components/SwatchStrip/SwatchStrip.d.ts +44 -0
  290. package/dist/components/SwatchStrip/SwatchStrip.d.ts.map +1 -0
  291. package/dist/components/SwatchStrip/index.d.ts +5 -0
  292. package/dist/components/SwatchStrip/index.d.ts.map +1 -0
  293. package/dist/components/SwatchStrip/index.js +2 -0
  294. package/dist/components/SwatchStrip/palettes.d.ts +21 -0
  295. package/dist/components/SwatchStrip/palettes.d.ts.map +1 -0
  296. package/dist/components/ThemeSwitcher/index.js +1 -1
  297. package/dist/components/Timeline/AnimatedTimeline.d.ts +1 -0
  298. package/dist/components/Timeline/AnimatedTimeline.d.ts.map +1 -1
  299. package/dist/components/Timeline/EasingPicker.d.ts +3 -0
  300. package/dist/components/Timeline/EasingPicker.d.ts.map +1 -1
  301. package/dist/components/Timeline/LaneGraph.d.ts +1 -1
  302. package/dist/components/Timeline/LaneGraph.d.ts.map +1 -1
  303. package/dist/components/Timeline/Timeline.d.ts +10 -1
  304. package/dist/components/Timeline/Timeline.d.ts.map +1 -1
  305. package/dist/components/Timeline/Transport.d.ts +6 -0
  306. package/dist/components/Timeline/Transport.d.ts.map +1 -1
  307. package/dist/components/Timeline/index.js +1 -1
  308. package/dist/components/Timeline/keys.d.ts +1 -0
  309. package/dist/components/Timeline/keys.d.ts.map +1 -1
  310. package/dist/components/Toast/Toast.d.ts +12 -3
  311. package/dist/components/Toast/Toast.d.ts.map +1 -1
  312. package/dist/components/Toast/index.js +1 -1
  313. package/dist/components/ToggleBar/ToggleBar.d.ts.map +1 -1
  314. package/dist/components/ToggleBar/index.js +1 -1
  315. package/dist/components/TokenPanel/index.js +1 -1
  316. package/dist/components/TokenPanel/tokenTypes.d.ts +1 -0
  317. package/dist/components/TokenPanel/tokenTypes.d.ts.map +1 -1
  318. package/dist/components/ToolButton/ToolButton.d.ts +1 -10
  319. package/dist/components/ToolButton/ToolButton.d.ts.map +1 -1
  320. package/dist/components/ToolButton/index.js +1 -1
  321. package/dist/components/ToolOptionsBar/index.js +1 -1
  322. package/dist/components/ToolPalette/ToolPalette.d.ts.map +1 -1
  323. package/dist/components/ToolPalette/formatShortcut.d.ts +2 -0
  324. package/dist/components/ToolPalette/formatShortcut.d.ts.map +1 -1
  325. package/dist/components/ToolPalette/index.js +1 -1
  326. package/dist/components/Tooltip/index.js +1 -1
  327. package/dist/components/Tree/Tree.d.ts +27 -26
  328. package/dist/components/Tree/Tree.d.ts.map +1 -1
  329. package/dist/icons/index.d.ts +51 -0
  330. package/dist/icons/index.d.ts.map +1 -1
  331. package/dist/icons/paths.d.ts +2 -0
  332. package/dist/icons/paths.d.ts.map +1 -1
  333. package/dist/index.d.ts +4 -1
  334. package/dist/index.d.ts.map +1 -1
  335. package/dist/index.js +98 -95
  336. package/dist/index.js.map +1 -1
  337. package/dist/overlays/portalHost.d.ts +6 -0
  338. package/dist/overlays/portalHost.d.ts.map +1 -1
  339. package/dist/style.css +1 -1
  340. package/dist/useAsyncOptions.d.ts.map +1 -1
  341. package/dist/useReorderDragList.d.ts.map +1 -1
  342. package/dist/useRovingTabIndex.d.ts +40 -39
  343. package/dist/useRovingTabIndex.d.ts.map +1 -1
  344. package/package.json +9 -9
  345. package/dist/chunks/ActionBar-DCq16yFA.js +0 -57
  346. package/dist/chunks/ActionBar-DCq16yFA.js.map +0 -1
  347. package/dist/chunks/BandEditor-Dd0egAgE.js.map +0 -1
  348. package/dist/chunks/Callout-ndW5_Bqx.js +0 -116
  349. package/dist/chunks/Callout-ndW5_Bqx.js.map +0 -1
  350. package/dist/chunks/Checkbox-DHXTUHO9.js +0 -47
  351. package/dist/chunks/Checkbox-DHXTUHO9.js.map +0 -1
  352. package/dist/chunks/ColorField-Yz_BkcCT.js +0 -69
  353. package/dist/chunks/ColorField-Yz_BkcCT.js.map +0 -1
  354. package/dist/chunks/ComboBox-B34H76CW.js +0 -138
  355. package/dist/chunks/ComboBox-B34H76CW.js.map +0 -1
  356. package/dist/chunks/CurveEditor-DUVjd25R.js.map +0 -1
  357. package/dist/chunks/DataGrid-LZ2JgY2Y.js.map +0 -1
  358. package/dist/chunks/DetailList-BKomDzg5.js +0 -52
  359. package/dist/chunks/DetailList-BKomDzg5.js.map +0 -1
  360. package/dist/chunks/FallthroughDiagram-BEHiM5IS.js.map +0 -1
  361. package/dist/chunks/Field--onYxXTF.js +0 -32
  362. package/dist/chunks/Field--onYxXTF.js.map +0 -1
  363. package/dist/chunks/FillStrokeSwatch-DNb0KXPk.js +0 -111
  364. package/dist/chunks/FillStrokeSwatch-DNb0KXPk.js.map +0 -1
  365. package/dist/chunks/FontFamilySelect-DkRgNtag.js.map +0 -1
  366. package/dist/chunks/GradientEditor-b7v4Ph3i.js +0 -363
  367. package/dist/chunks/GradientEditor-b7v4Ph3i.js.map +0 -1
  368. package/dist/chunks/Icon-CcVjdq2C.js.map +0 -1
  369. package/dist/chunks/InlineRange-P01ABSzo.js.map +0 -1
  370. package/dist/chunks/Input-CHmkfYaD.js.map +0 -1
  371. package/dist/chunks/ItemList-Cm-HUWCi.js.map +0 -1
  372. package/dist/chunks/Jog-DRmfrkCg.js.map +0 -1
  373. package/dist/chunks/LayerList-wCI1EueM.js.map +0 -1
  374. package/dist/chunks/ListEditor-BeA60TAA.js +0 -71
  375. package/dist/chunks/ListEditor-BeA60TAA.js.map +0 -1
  376. package/dist/chunks/MenuButton-BSqEChJE.js +0 -70
  377. package/dist/chunks/MenuButton-BSqEChJE.js.map +0 -1
  378. package/dist/chunks/MeshEditor-D1HLZcAh.js +0 -87
  379. package/dist/chunks/MeshEditor-D1HLZcAh.js.map +0 -1
  380. package/dist/chunks/NumberField-BnJxcazc.js.map +0 -1
  381. package/dist/chunks/PaintField-DadOELMg.js +0 -62
  382. package/dist/chunks/PaintField-DadOELMg.js.map +0 -1
  383. package/dist/chunks/PaintInput-v8Y7MDbH.js +0 -121
  384. package/dist/chunks/PaintInput-v8Y7MDbH.js.map +0 -1
  385. package/dist/chunks/PatternPicker-R_EQtw2Q.js +0 -93
  386. package/dist/chunks/PatternPicker-R_EQtw2Q.js.map +0 -1
  387. package/dist/chunks/Plot2D-CTXHkL5p.js.map +0 -1
  388. package/dist/chunks/Prefs-ByA-x51i.js.map +0 -1
  389. package/dist/chunks/PropertyField-DfIJJ5GS.js +0 -673
  390. package/dist/chunks/PropertyField-DfIJJ5GS.js.map +0 -1
  391. package/dist/chunks/ResizeHandle-rKVWyeTG.js +0 -79
  392. package/dist/chunks/ResizeHandle-rKVWyeTG.js.map +0 -1
  393. package/dist/chunks/Select-ClmKtyWg.js +0 -229
  394. package/dist/chunks/Select-ClmKtyWg.js.map +0 -1
  395. package/dist/chunks/Slider-YofwGOI4.js.map +0 -1
  396. package/dist/chunks/StatusBar-Ca9Dvhhq.js.map +0 -1
  397. package/dist/chunks/SwatchGrid-BYvA8Bmh.js +0 -73
  398. package/dist/chunks/SwatchGrid-BYvA8Bmh.js.map +0 -1
  399. package/dist/chunks/Timeline-B39cwfMB.js.map +0 -1
  400. package/dist/chunks/Toast-BF9GE0HC.js +0 -126
  401. package/dist/chunks/Toast-BF9GE0HC.js.map +0 -1
  402. package/dist/chunks/TokenPanel-CMDAOfYH.js.map +0 -1
  403. package/dist/chunks/ToolButton-CAHBa08P.js.map +0 -1
  404. package/dist/chunks/createKeyframeLayer-DVl321_l.js.map +0 -1
  405. package/dist/chunks/icons-BhcR1l64.js.map +0 -1
  406. package/dist/chunks/model-BaF65rnX.js +0 -365
  407. package/dist/chunks/model-BaF65rnX.js.map +0 -1
  408. package/dist/chunks/portalHost-yTOVuCej.js.map +0 -1
  409. package/dist/chunks/prefField-BopW9bjx.js +0 -201
  410. package/dist/chunks/prefField-BopW9bjx.js.map +0 -1
  411. package/dist/chunks/segmentedControl.module-D6SzYJD7.js +0 -11
  412. package/dist/chunks/segmentedControl.module-D6SzYJD7.js.map +0 -1
  413. package/dist/chunks/useReorderDragList-FCMoFIzH.js +0 -131
  414. package/dist/chunks/useReorderDragList-FCMoFIzH.js.map +0 -1
  415. package/dist/chunks/useRovingTabIndex-Bp_hYm_h.js +0 -65
  416. package/dist/chunks/useRovingTabIndex-Bp_hYm_h.js.map +0 -1
@@ -0,0 +1,743 @@
1
+ import { t as e } from "./dlog-F0I8KsIW.js";
2
+ import { n as t, r as n } from "./Tooltip-C6eFCYxw.js";
3
+ import { t as r } from "./stance-BFQpS_fL.js";
4
+ import { n as i } from "./InlineRange-DPjIsJB3.js";
5
+ import { t as a } from "./ColorField-BwlelY26.js";
6
+ import { t as o } from "./Select-ouV8O6cp.js";
7
+ import { t as s } from "./FontFamilySelect-DEvMXyZd.js";
8
+ import { t as c } from "./FontWeightSelect-BLQ_LMJF.js";
9
+ import { t as l } from "./Input-D7SDKbST.js";
10
+ import { n as u, t as d } from "./NumberField-DS0WSiin.js";
11
+ import { t as f } from "./ToggleBar-Z2jZiguF.js";
12
+ import { t as p } from "./PaintInput-DaQMeBsI.js";
13
+ import { t as m } from "./PaintField-BdmQM53v.js";
14
+ import { n as h, t as g } from "./RadioGroup-B70_M-gT.js";
15
+ import { t as _ } from "./Switch-CSYmcM8y.js";
16
+ import { t as v } from "./checkbox.module-DLQV9tMX.js";
17
+ import { getAlpha01 as y, toHex8 as b, withAlpha01 as x } from "@weasel-js/core";
18
+ import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
19
+ import { createContext as T, forwardRef as E, useContext as D, useEffect as O, useId as k, useLayoutEffect as ee, useRef as A, useState as j } from "react";
20
+ import { Focusable as te } from "react-aria-components";
21
+ import { decimal as ne, parseAs as re, qty as M } from "@weasel-js/quantity";
22
+ var N = {
23
+ panel: "_panel_hs84t_9",
24
+ list: "_list_hs84t_3",
25
+ row: "_row_hs84t_4",
26
+ group: "_group_hs84t_4",
27
+ subpanel: "_subpanel_hs84t_3",
28
+ card: "_card_hs84t_37",
29
+ cardList: "_cardList_hs84t_37",
30
+ readout: "_readout_hs84t_42 _numeric_zns9n_4",
31
+ readoutInput: "_readoutInput_hs84t_43 _numeric_zns9n_4",
32
+ panelTitle: "_panelTitle_hs84t_72",
33
+ panelHeader: "_panelHeader_hs84t_84",
34
+ panelActions: "_panelActions_hs84t_97",
35
+ listPairs: "_listPairs_hs84t_3",
36
+ rowColor: "_rowColor_hs84t_4",
37
+ span: "_span_hs84t_505",
38
+ listOneUp: "_listOneUp_hs84t_513",
39
+ densityTight: "_densityTight_hs84t_524",
40
+ densityNormal: "_densityNormal_hs84t_536",
41
+ densityRoomy: "_densityRoomy_hs84t_548",
42
+ alignStart: "_alignStart_hs84t_574",
43
+ alignCenter: "_alignCenter_hs84t_580",
44
+ alignEnd: "_alignEnd_hs84t_586",
45
+ alignBaseline: "_alignBaseline_hs84t_592",
46
+ rowInline: "_rowInline_hs84t_623",
47
+ rowLabel: "_rowLabel_hs84t_629",
48
+ rowBlock: "_rowBlock_hs84t_654",
49
+ rowCheckbox: "_rowCheckbox_hs84t_655",
50
+ readoutAfter: "_readoutAfter_hs84t_674",
51
+ readoutText: "_readoutText_hs84t_685 _numeric_zns9n_4",
52
+ help: "_help_hs84t_699",
53
+ autoToggle: "_autoToggle_hs84t_733",
54
+ readoutGroup: "_readoutGroup_hs84t_680",
55
+ readoutUnit: "_readoutUnit_hs84t_812",
56
+ fieldUnitGroup: "_fieldUnitGroup_hs84t_837",
57
+ numberField: "_numberField_hs84t_845",
58
+ colorField: "_colorField_hs84t_898",
59
+ toggleBar: "_toggleBar_hs84t_911",
60
+ textField: "_textField_hs84t_929",
61
+ select: "_select_hs84t_942",
62
+ dialogTrigger: "_dialogTrigger_hs84t_1063",
63
+ dialogSummary: "_dialogSummary_hs84t_1098",
64
+ dialogGlyph: "_dialogGlyph_hs84t_1106",
65
+ dimmed: "_dimmed_hs84t_1259",
66
+ cellReadout: "_cellReadout_hs84t_1265",
67
+ textarea: "_textarea_hs84t_1271",
68
+ groupHeadRow: "_groupHeadRow_hs84t_1307",
69
+ groupTitle: "_groupTitle_hs84t_1315",
70
+ groupLeading: "_groupLeading_hs84t_1321",
71
+ groupActions: "_groupActions_hs84t_1322",
72
+ note: "_note_hs84t_1519",
73
+ groupTitleMid: "_groupTitleMid_hs84t_1549",
74
+ groupTwisty: "_groupTwisty_hs84t_1555",
75
+ groupBody: "_groupBody_hs84t_4",
76
+ groupPairs: "_groupPairs_hs84t_1584",
77
+ groupOneUp: "_groupOneUp_hs84t_1597",
78
+ subpanelTitle: "_subpanelTitle_hs84t_1737",
79
+ rowAuto: "_rowAuto_hs84t_1774",
80
+ rowAutoDimmed: "_rowAutoDimmed_hs84t_1784",
81
+ rowHint: "_rowHint_hs84t_1789"
82
+ }, P = {
83
+ tight: N.densityTight,
84
+ normal: N.densityNormal,
85
+ roomy: N.densityRoomy
86
+ }, ie = {
87
+ start: N.alignStart,
88
+ center: N.alignCenter,
89
+ end: N.alignEnd,
90
+ baseline: N.alignBaseline
91
+ };
92
+ function F(e, { density: t, align: n }, r) {
93
+ return [
94
+ e,
95
+ t && P[t],
96
+ n && ie[n],
97
+ r
98
+ ].filter(Boolean).join(" ");
99
+ }
100
+ var I = T(!1);
101
+ function ae({ title: e, actions: t, selectable: n, children: i, className: a, density: o, align: s, stance: c, tone: l }) {
102
+ let u = D(I), d = r({
103
+ stance: c,
104
+ tone: l
105
+ }), f = e != null && /* @__PURE__ */ C("h2", {
106
+ className: N.panelTitle,
107
+ children: e
108
+ });
109
+ return /* @__PURE__ */ w("div", {
110
+ className: F(N.panel, {
111
+ density: o,
112
+ align: s
113
+ }, a),
114
+ ...d,
115
+ "data-nested": u || void 0,
116
+ "data-selectable": (n ?? c === "debug") || void 0,
117
+ children: [t == null ? f : /* @__PURE__ */ w("div", {
118
+ className: N.panelHeader,
119
+ children: [f, /* @__PURE__ */ C("div", {
120
+ className: N.panelActions,
121
+ children: t
122
+ })]
123
+ }), /* @__PURE__ */ C(I.Provider, {
124
+ value: !0,
125
+ children: i
126
+ })]
127
+ });
128
+ }
129
+ var oe = E(function({ children: e, className: t, pack: n = "auto-color", density: r, align: i }, a) {
130
+ let o = `${N.list}${n === "pairs" ? ` ${N.listPairs}` : n === "one-up" ? ` ${N.listOneUp}` : ""}`;
131
+ return /* @__PURE__ */ C("div", {
132
+ ref: a,
133
+ className: F(o, {
134
+ density: r,
135
+ align: i
136
+ }, t),
137
+ children: e
138
+ });
139
+ });
140
+ function se({ children: e, className: t }) {
141
+ return /* @__PURE__ */ C("div", {
142
+ className: t ? `${N.span} ${t}` : N.span,
143
+ children: e
144
+ });
145
+ }
146
+ function ce({ children: e, className: t }) {
147
+ return /* @__PURE__ */ C("p", {
148
+ className: t ? `${N.note} ${t}` : N.note,
149
+ children: e
150
+ });
151
+ }
152
+ function L({ label: e, readout: t, description: n, variant: r = "default", layout: i, span: a, children: o, htmlFor: s, group: c, className: l, density: u, align: d, auto: f, onAutoChange: p, autoControl: m = "hidden", hint: h }) {
153
+ let g = r === "color" ? N.rowColor : r === "checkbox" ? N.rowCheckbox : "", _ = r === "default" ? "block" : "inline", v = i ?? _, y = v === _ ? "" : v === "inline" ? N.rowInline : N.rowBlock, b = F([
154
+ N.row,
155
+ g,
156
+ y,
157
+ a && N.span,
158
+ f && (m === "dimmed" ? N.rowAutoDimmed : N.rowAuto)
159
+ ].filter(Boolean).join(" "), {
160
+ density: u,
161
+ align: d
162
+ }, l), x = v === "inline" && t != null, S = A(null), T = A(null), E = le(S, T, v === "inline"), D = /* @__PURE__ */ w("span", {
163
+ className: N.rowLabel,
164
+ ref: T,
165
+ children: [
166
+ p ? /* @__PURE__ */ C(ue, {
167
+ auto: f ?? !1,
168
+ label: e,
169
+ onChange: p
170
+ }) : e,
171
+ h != null && /* @__PURE__ */ C("span", {
172
+ className: N.rowHint,
173
+ children: h
174
+ }),
175
+ n ? /* @__PURE__ */ C(R, {
176
+ label: e,
177
+ description: n
178
+ }) : null,
179
+ t != null && !x && /* @__PURE__ */ C("em", {
180
+ className: N.readout,
181
+ children: t
182
+ })
183
+ ]
184
+ }), O = x ? /* @__PURE__ */ C("em", {
185
+ className: `${N.readout} ${N.readoutAfter}`,
186
+ children: t
187
+ }) : null, k = E ? { "data-multiline": "" } : {};
188
+ return c ? /* @__PURE__ */ w("div", {
189
+ className: b,
190
+ ref: S,
191
+ ...k,
192
+ children: [
193
+ D,
194
+ o,
195
+ O
196
+ ]
197
+ }) : /* @__PURE__ */ w("label", {
198
+ className: b,
199
+ htmlFor: s,
200
+ ref: S,
201
+ ...k,
202
+ children: [
203
+ D,
204
+ o,
205
+ O
206
+ ]
207
+ });
208
+ }
209
+ function le(e, t, n) {
210
+ let [r, i] = j(!1);
211
+ return ee(() => {
212
+ let r = e.current, a = t.current;
213
+ if (!n || !r || !a || typeof ResizeObserver > "u") {
214
+ i(!1);
215
+ return;
216
+ }
217
+ let o = new ResizeObserver(() => {
218
+ let e = getComputedStyle(a), t = Number.parseFloat(e.lineHeight) || Number.parseFloat(e.fontSize) * 1.2, n = Number.parseFloat(getComputedStyle(r).minHeight) || t, o = a.getBoundingClientRect().height > t * 1.5, s = Array.from(r.children).some((e) => e !== a && e.getBoundingClientRect().height > n * 1.5);
219
+ i(o || s);
220
+ });
221
+ o.observe(r), o.observe(a);
222
+ for (let e of Array.from(r.children)) o.observe(e);
223
+ return () => o.disconnect();
224
+ }, [
225
+ e,
226
+ t,
227
+ n
228
+ ]), r;
229
+ }
230
+ function ue({ auto: e, label: t, onChange: n }) {
231
+ let r = typeof t == "string" ? t : "this setting", i = (t) => {
232
+ t.preventDefault(), t.stopPropagation(), n(!e);
233
+ };
234
+ return /* @__PURE__ */ C("span", {
235
+ role: "button",
236
+ tabIndex: 0,
237
+ className: N.autoToggle,
238
+ "aria-pressed": !e,
239
+ "aria-label": `Pin ${r}`,
240
+ onClick: i,
241
+ onKeyDown: (e) => {
242
+ (e.key === "Enter" || e.key === " ") && i(e);
243
+ },
244
+ onMouseDown: (e) => e.stopPropagation(),
245
+ children: t
246
+ });
247
+ }
248
+ function R({ label: e, description: r }) {
249
+ let i = typeof e == "string" ? e : "this setting";
250
+ return /* @__PURE__ */ w(n, { children: [/* @__PURE__ */ C(te, { children: /* @__PURE__ */ C("button", {
251
+ type: "button",
252
+ className: N.help,
253
+ "aria-label": `About ${i}`,
254
+ onClick: (e) => {
255
+ e.preventDefault(), e.stopPropagation();
256
+ },
257
+ onMouseDown: (e) => e.stopPropagation(),
258
+ children: "ⓘ"
259
+ }) }), /* @__PURE__ */ C(t, { children: r })] });
260
+ }
261
+ //#endregion
262
+ //#region src/components/Properties/PropertyField.tsx
263
+ function de(e) {
264
+ let { label: t, readout: n, description: r, layout: i, span: a, density: o, align: s, auto: c, onAutoChange: l, rowClassName: u, controlClassName: d, ...f } = e, p = k(), m = {
265
+ ...f,
266
+ name: f.name ?? X(t),
267
+ className: d,
268
+ id: p
269
+ }, h = V(m), g = {
270
+ label: t,
271
+ description: r,
272
+ layout: i,
273
+ span: a,
274
+ density: o,
275
+ align: s,
276
+ auto: c,
277
+ onAutoChange: l,
278
+ className: u,
279
+ variant: h.variant,
280
+ group: h.group,
281
+ htmlFor: h.group || m.kind === "font-family" || m.kind === "font-weight" ? void 0 : p
282
+ };
283
+ return m.kind === "number" && m.control === "slider" ? /* @__PURE__ */ C(B, {
284
+ row: g,
285
+ readout: n,
286
+ control: m
287
+ }) : /* @__PURE__ */ C(L, {
288
+ ...g,
289
+ readout: n,
290
+ children: /* @__PURE__ */ C(H, { ...m })
291
+ });
292
+ }
293
+ function fe(e) {
294
+ let t = e;
295
+ return t.kind === "number" && t.control === "slider" ? /* @__PURE__ */ C(pe, { ...t }) : /* @__PURE__ */ C(H, { ...t });
296
+ }
297
+ function z(e) {
298
+ let [t, n] = j(), { onInput: r, onChange: i } = e;
299
+ return r ? {
300
+ ...e,
301
+ value: t ?? e.value,
302
+ onInput: (e) => {
303
+ n(e), r(e);
304
+ },
305
+ onChange: (e) => {
306
+ n(void 0), i(e);
307
+ }
308
+ } : e;
309
+ }
310
+ function B({ row: e, readout: t, control: n }) {
311
+ let r = z(n);
312
+ return /* @__PURE__ */ C(L, {
313
+ ...e,
314
+ readout: Y(t) ?? /* @__PURE__ */ C(J, { ...r }),
315
+ children: /* @__PURE__ */ C(q, { ...r })
316
+ });
317
+ }
318
+ function pe(e) {
319
+ let t = z(e);
320
+ return /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(q, { ...t }), /* @__PURE__ */ C("span", {
321
+ className: N.cellReadout,
322
+ children: /* @__PURE__ */ C(J, { ...t })
323
+ })] });
324
+ }
325
+ function V(e) {
326
+ switch (e.kind) {
327
+ case "boolean": return {
328
+ variant: "checkbox",
329
+ group: e.control === "switch" || e.control === "toggle"
330
+ };
331
+ case "enum": return {
332
+ variant: "default",
333
+ group: e.control === "radio" || e.control === "toggle"
334
+ };
335
+ case "color": return {
336
+ variant: "color",
337
+ group: !1
338
+ };
339
+ case "paint": return {
340
+ variant: "default",
341
+ group: !0
342
+ };
343
+ default: return {
344
+ variant: "default",
345
+ group: !1
346
+ };
347
+ }
348
+ }
349
+ function H(e) {
350
+ switch (e.kind) {
351
+ case "boolean": return /* @__PURE__ */ C(me, { ...e });
352
+ case "number": return /* @__PURE__ */ C(ge, { ...e });
353
+ case "string": return /* @__PURE__ */ C(ye, { ...e });
354
+ case "enum": return /* @__PURE__ */ C(be, { ...e });
355
+ case "color": return /* @__PURE__ */ C(xe, { ...e });
356
+ case "paint": return /* @__PURE__ */ C(Se, { ...e });
357
+ case "font-family": return /* @__PURE__ */ C(s, {
358
+ className: e.className,
359
+ value: e.mixed ? void 0 : e.value,
360
+ mixed: e.mixed,
361
+ onChange: e.onChange,
362
+ weight: e.weight,
363
+ fontStyle: e.fontStyle,
364
+ "aria-label": e.name
365
+ });
366
+ case "font-weight": return /* @__PURE__ */ C(c, {
367
+ className: e.className,
368
+ value: e.mixed ? void 0 : e.value,
369
+ mixed: e.mixed,
370
+ family: e.family,
371
+ onChange: e.onChange,
372
+ "aria-label": e.name
373
+ });
374
+ default: throw Error(`PropertyControl: no control for kind "${e.kind}"`);
375
+ }
376
+ }
377
+ function U({ mixed: e, unset: t, children: n }) {
378
+ return !e && !t ? /* @__PURE__ */ C(S, { children: n }) : /* @__PURE__ */ C("span", {
379
+ className: N.dimmed,
380
+ title: e ? "Mixed" : "Not set",
381
+ children: n
382
+ });
383
+ }
384
+ function me(e) {
385
+ let t = !e.mixed && e.value === !0, n = A(null);
386
+ return O(() => {
387
+ n.current && (n.current.indeterminate = e.mixed === !0);
388
+ }), e.control === "toggle" ? /* @__PURE__ */ C(f, {
389
+ mode: "multiple",
390
+ size: "sm",
391
+ variant: "flat",
392
+ className: e.className,
393
+ ariaLabel: e.name,
394
+ items: [{
395
+ value: "on",
396
+ label: e.glyph ?? e.name?.slice(0, 1),
397
+ ariaLabel: e.name
398
+ }],
399
+ value: t ? ["on"] : [],
400
+ mixedValues: e.mixed ? ["on"] : [],
401
+ onChange: (t) => e.onChange(t.includes("on"))
402
+ }) : e.control === "switch" ? /* @__PURE__ */ C(U, {
403
+ mixed: e.mixed,
404
+ unset: e.unset,
405
+ children: /* @__PURE__ */ C(_, {
406
+ className: e.className,
407
+ isSelected: t,
408
+ onChange: e.onChange,
409
+ "aria-label": e.name
410
+ })
411
+ }) : /* @__PURE__ */ C(U, {
412
+ unset: e.unset,
413
+ children: /* @__PURE__ */ C("input", {
414
+ ref: n,
415
+ id: e.id,
416
+ type: "checkbox",
417
+ className: e.className ? `${v.checkbox} ${e.className}` : v.checkbox,
418
+ "aria-label": e.name,
419
+ checked: t,
420
+ onChange: (t) => e.onChange(t.target.checked)
421
+ })
422
+ });
423
+ }
424
+ function he(e) {
425
+ let t = A(null), n = A(e);
426
+ return O(() => {
427
+ n.current = e;
428
+ }), O(() => {
429
+ let e = t.current;
430
+ if (!e) return;
431
+ let r = () => n.current?.(e.value);
432
+ return e.addEventListener("change", r), () => e.removeEventListener("change", r);
433
+ }, []), t;
434
+ }
435
+ function W(e, t) {
436
+ return e == null ? null : typeof e == "string" ? /* @__PURE__ */ C("span", {
437
+ className: t,
438
+ children: e
439
+ }) : e;
440
+ }
441
+ var G = () => {};
442
+ function ge(e) {
443
+ let t = !e.mixed && typeof e.value == "number" && Number.isFinite(e.value), n = /* @__PURE__ */ C(d, {
444
+ id: e.id,
445
+ className: e.className ? `${N.numberField} ${e.className}` : N.numberField,
446
+ value: t ? e.value : NaN,
447
+ placeholder: e.mixed ? "Mixed" : e.placeholder,
448
+ minValue: e.min,
449
+ maxValue: e.max,
450
+ step: e.step,
451
+ accepts: e.accepts,
452
+ display: e.display,
453
+ steppers: e.steppers,
454
+ "aria-label": e.name,
455
+ onInput: e.onInput ?? e.onChange,
456
+ onChange: e.onInput ? e.onChange : G
457
+ });
458
+ return e.unit == null ? n : /* @__PURE__ */ w("span", {
459
+ className: N.fieldUnitGroup,
460
+ children: [n, W(e.unit, N.readoutUnit)]
461
+ });
462
+ }
463
+ function K(e) {
464
+ return {
465
+ min: e.min ?? 0,
466
+ max: e.max ?? 100,
467
+ step: e.step ?? 1
468
+ };
469
+ }
470
+ function q(t) {
471
+ let { min: n, max: r, step: a } = K(t), o = t.onInput ?? t.onChange, s = t.onInput ? t.onChange : void 0, c = he(s && ((e) => s(Number(e)))), l = !t.mixed && typeof t.value == "number" && Number.isFinite(t.value) ? Math.min(Math.max(t.value, n), r) : n;
472
+ return /* @__PURE__ */ C("input", {
473
+ ref: c,
474
+ type: "range",
475
+ id: t.id,
476
+ className: t.className ? `${i.range} ${t.className}` : i.range,
477
+ "aria-label": t.name,
478
+ tabIndex: -1,
479
+ min: n,
480
+ max: r,
481
+ step: a,
482
+ value: l,
483
+ disabled: t.mixed,
484
+ onChange: (n) => {
485
+ let r = Number(n.target.value);
486
+ e("property-panel", "slider", {
487
+ name: t.name,
488
+ value: r
489
+ }), o(r);
490
+ }
491
+ });
492
+ }
493
+ function J(e) {
494
+ let { min: t, max: n, step: r } = K(e);
495
+ if (e.mixed || typeof e.value != "number" || !Number.isFinite(e.value)) return /* @__PURE__ */ C(S, { children: Y("—") });
496
+ let i = r >= 1 ? 0 : Math.min(6, Math.max(0, Math.ceil(-Math.log10(r)))), a = e.display ?? ne({
497
+ places: i,
498
+ grouping: !1
499
+ });
500
+ return /* @__PURE__ */ C(_e, {
501
+ name: e.name,
502
+ value: e.value,
503
+ min: t,
504
+ max: n,
505
+ step: r,
506
+ display: a,
507
+ format: e.format,
508
+ unit: e.unit,
509
+ onCommit: (t) => {
510
+ e.onInput?.(t), e.onChange(t);
511
+ }
512
+ });
513
+ }
514
+ function Y(e) {
515
+ return typeof e != "string" && typeof e != "number" ? e : /* @__PURE__ */ C("span", {
516
+ className: N.readoutGroup,
517
+ children: /* @__PURE__ */ C("span", {
518
+ className: N.readoutText,
519
+ children: e
520
+ })
521
+ });
522
+ }
523
+ function _e({ name: e, value: t, min: n, max: r, step: i, display: a, format: o, unit: s, onCommit: c }) {
524
+ let [l, d] = j(null), f = (e) => o ? String(o(e)) : M(e, a).text, p = (e) => re(e, a), m = l === null ? f(t) : l, h = { "--wzl-property-readout-fit": `${Math.max(f(n).length, f(r).length)}ch` }, g = () => {
525
+ if (l !== null) {
526
+ let e = p(l);
527
+ Number.isFinite(e) && c(Math.min(r, Math.max(n, e)));
528
+ }
529
+ d(null);
530
+ };
531
+ return /* @__PURE__ */ w("span", {
532
+ className: N.readoutGroup,
533
+ children: [/* @__PURE__ */ C("input", {
534
+ type: "text",
535
+ role: "spinbutton",
536
+ "aria-label": e,
537
+ "aria-valuenow": t,
538
+ "aria-valuetext": o ? f(t) : M(t, a).spoken,
539
+ "aria-valuemin": n,
540
+ "aria-valuemax": r,
541
+ inputMode: "decimal",
542
+ className: N.readoutInput,
543
+ style: h,
544
+ value: m,
545
+ onFocus: (e) => {
546
+ d(f(t)), e.currentTarget.select();
547
+ },
548
+ onChange: (e) => d(e.target.value.replace(/-/g, "−")),
549
+ onBlur: g,
550
+ onClick: (e) => {
551
+ e.preventDefault(), e.stopPropagation(), e.currentTarget.focus();
552
+ },
553
+ onMouseDown: (e) => e.stopPropagation(),
554
+ onKeyDown: (e) => {
555
+ if (e.key === "Enter") g(), e.currentTarget.blur();
556
+ else if (e.key === "Escape") d(null), e.currentTarget.blur();
557
+ else {
558
+ let a = l === null ? t : p(l), o = u(e.key, Number.isFinite(a) ? a : t, {
559
+ step: i,
560
+ min: n,
561
+ max: r
562
+ });
563
+ if (o === null) return;
564
+ e.preventDefault(), c(o), d(null);
565
+ }
566
+ }
567
+ }), W(s, N.readoutUnit)]
568
+ });
569
+ }
570
+ function ve(e) {
571
+ let [t, n] = j(null), r = e.mixed ? "" : e.value ?? "", i = e.onInput !== void 0;
572
+ return {
573
+ shown: t ?? r,
574
+ type: (t) => {
575
+ if (!i) {
576
+ e.onChange(t);
577
+ return;
578
+ }
579
+ n(t), e.onInput?.(t);
580
+ },
581
+ settle: () => {
582
+ t !== null && t !== r && e.onChange(t), n(null);
583
+ }
584
+ };
585
+ }
586
+ function ye(e) {
587
+ let t = ve(e), n = e.mixed ? "Mixed" : e.placeholder;
588
+ return e.control === "textarea" ? /* @__PURE__ */ C("textarea", {
589
+ id: e.id,
590
+ className: e.className ? `${N.textarea} ${e.className}` : N.textarea,
591
+ "aria-label": e.name,
592
+ value: t.shown,
593
+ placeholder: n,
594
+ maxLength: e.maxLength,
595
+ rows: 3,
596
+ onChange: (e) => t.type(e.target.value),
597
+ onBlur: t.settle
598
+ }) : /* @__PURE__ */ C(l, {
599
+ id: e.id,
600
+ className: e.className ? `${N.textField} ${e.className}` : N.textField,
601
+ value: t.shown,
602
+ placeholder: n,
603
+ maxLength: e.maxLength,
604
+ "aria-label": e.name,
605
+ onChange: t.type,
606
+ onBlur: t.settle,
607
+ onKeyDown: (e) => {
608
+ e.key === "Enter" && e.target.blur();
609
+ }
610
+ });
611
+ }
612
+ function X(e) {
613
+ return typeof e == "string" ? e : void 0;
614
+ }
615
+ function Z(e) {
616
+ return e == null || typeof e == "string" || typeof e == "number" ? void 0 : e;
617
+ }
618
+ function Q(e) {
619
+ return e.glyph === void 0 || e.glyph === null ? void 0 : e.label;
620
+ }
621
+ function be(t) {
622
+ let n = !t.mixed && t.options.some((e) => e.value === t.value) ? t.value : null;
623
+ if (t.control === "radio") return /* @__PURE__ */ C(h, {
624
+ className: t.className,
625
+ value: n,
626
+ onChange: t.onChange,
627
+ "aria-label": t.name,
628
+ children: t.options.map((e) => /* @__PURE__ */ C(g, {
629
+ value: e.value,
630
+ isDisabled: e.disabled,
631
+ children: e.label
632
+ }, e.value))
633
+ });
634
+ if (t.control === "toggle" && t.onClear) {
635
+ let { onClear: e } = t, r = n === null ? [] : [n];
636
+ return /* @__PURE__ */ C(f, {
637
+ mode: "multiple",
638
+ size: "sm",
639
+ variant: "flat",
640
+ className: t.className ? `${N.toggleBar} ${t.className}` : N.toggleBar,
641
+ ariaLabel: t.name,
642
+ items: t.options.map((e) => ({
643
+ value: e.value,
644
+ label: e.glyph ?? e.label,
645
+ ariaLabel: X(e.label),
646
+ tooltip: Q(e),
647
+ disabled: e.disabled
648
+ })),
649
+ value: r,
650
+ mixedValues: t.mixed ? t.options.map((e) => e.value) : [],
651
+ onChange: (n) => {
652
+ let i = n.find((e) => !r.includes(e));
653
+ i === void 0 ? e() : t.onChange(i);
654
+ }
655
+ });
656
+ }
657
+ return t.control === "toggle" ? /* @__PURE__ */ C(f, {
658
+ size: "sm",
659
+ variant: "flat",
660
+ className: t.className ? `${N.toggleBar} ${t.className}` : N.toggleBar,
661
+ ariaLabel: t.name,
662
+ items: t.options.map((e) => ({
663
+ value: e.value,
664
+ label: e.glyph ?? e.label,
665
+ ariaLabel: X(e.label),
666
+ tooltip: Q(e),
667
+ disabled: e.disabled
668
+ })),
669
+ value: n,
670
+ onChange: (e) => {
671
+ e !== null && t.onChange(e);
672
+ }
673
+ }) : /* @__PURE__ */ C(o, {
674
+ className: t.className ? `${N.select} ${t.className}` : N.select,
675
+ triggerId: t.id,
676
+ "aria-label": t.name,
677
+ placeholder: t.mixed ? "Mixed" : t.placeholder ?? (t.unset ? "—" : "Choose option…"),
678
+ selectedKey: n,
679
+ options: t.options.map((e) => ({
680
+ value: e.value,
681
+ label: e.label,
682
+ icon: Z(e.glyph),
683
+ isDisabled: e.disabled
684
+ })),
685
+ onSelectionChange: (n) => {
686
+ e("property-panel", "select", {
687
+ name: t.name,
688
+ value: n
689
+ }), t.onChange(n);
690
+ }
691
+ });
692
+ }
693
+ function $(e) {
694
+ let t = b(e?.trim() ?? "");
695
+ return /^#[0-9a-f]{8}$/i.test(t) ? {
696
+ rgb: t.slice(0, 7).toLowerCase(),
697
+ alpha: y(t)
698
+ } : {
699
+ rgb: "#000000",
700
+ alpha: 1
701
+ };
702
+ }
703
+ function xe(e) {
704
+ let t = e.alpha !== void 0 && e.alpha !== !1, n = typeof e.alpha == "number", r = $(e.value), i = n ? e.alpha : r.alpha, o = (e, t) => (a) => {
705
+ if (!n) {
706
+ e(a);
707
+ return;
708
+ }
709
+ let o = $(a);
710
+ (o.rgb !== r.rgb || !t) && e(o.rgb);
711
+ let s = Math.round(o.alpha * 100) / 100;
712
+ s !== Math.round(i * 100) / 100 && t?.(s);
713
+ }, s = e.onInput !== void 0 || e.onAlphaInput !== void 0, c = o(e.onInput ?? e.onChange, e.onAlphaInput ?? e.onAlphaChange), l = s ? o(e.onChange, e.onAlphaChange) : G;
714
+ return /* @__PURE__ */ C(a, {
715
+ id: e.id,
716
+ className: e.className ? `${N.colorField} ${e.className}` : N.colorField,
717
+ value: e.mixed ? void 0 : t ? x(r.rgb, i) : e.value ?? "#000000",
718
+ mixed: e.mixed,
719
+ alpha: t,
720
+ alphaDisabled: e.alphaDisabled,
721
+ onInput: c,
722
+ onChange: l,
723
+ "aria-label": e.name
724
+ });
725
+ }
726
+ function Se(e) {
727
+ let t = e.control === "inline" ? p : m;
728
+ return /* @__PURE__ */ C(t, {
729
+ className: e.className,
730
+ value: e.value,
731
+ mixed: e.mixed,
732
+ unset: e.unset,
733
+ kinds: e.kinds,
734
+ allowNone: e.allowNone,
735
+ onChange: e.onChange,
736
+ onInput: e.onInput,
737
+ "aria-label": e.name
738
+ });
739
+ }
740
+ //#endregion
741
+ export { oe as a, L as c, N as d, R as i, se as l, de as n, ce as o, Z as r, ae as s, fe as t, F as u };
742
+
743
+ //# sourceMappingURL=PropertyField-BbNqK8xr.js.map