@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,758 @@
1
+ import { t as e } from "./dlog-F0I8KsIW.js";
2
+ import { n as t, r as n } from "./Tooltip-Clg2mhSt.js";
3
+ import { t as r } from "./stance-BFQpS_fL.js";
4
+ import { a as i, n as a, r as o } from "./number-D3NEx_8r.js";
5
+ import { t as s } from "./Checkbox-DHXTUHO9.js";
6
+ import { n as c, t as l } from "./InlineRange-eOj6JpJl.js";
7
+ import { t as u } from "./ColorField-BcMcW8Sa.js";
8
+ import { t as d } from "./Select-CzyfaXzp.js";
9
+ import { t as f } from "./FontFamilySelect-DXlMKWfK.js";
10
+ import { t as p } from "./Input-CHmkfYaD.js";
11
+ import { n as m, t as h } from "./NumberField-CwJOMmQR.js";
12
+ import { t as g } from "./ToggleBar-DTjGeS0Q.js";
13
+ import { t as _ } from "./PaintInput-Byhna3H-.js";
14
+ import { t as v } from "./PaintField-DaJukRc6.js";
15
+ import { n as y, t as b } from "./RadioGroup-Bh4-12e-.js";
16
+ import { t as x } from "./Switch-CSYmcM8y.js";
17
+ import { getAlpha01 as S, toHex8 as ee, withAlpha01 as C } from "@weasel-js/core";
18
+ import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
19
+ import { createContext as D, forwardRef as te, useContext as O, useEffect as k, useId as ne, useRef as A, useState as j } from "react";
20
+ import { Focusable as M } from "react-aria-components";
21
+ var N = {
22
+ panel: "_panel_1pt5q_9",
23
+ list: "_list_1pt5q_3",
24
+ row: "_row_1pt5q_4",
25
+ group: "_group_1pt5q_4",
26
+ subpanel: "_subpanel_1pt5q_3",
27
+ card: "_card_1pt5q_37",
28
+ cardList: "_cardList_1pt5q_37",
29
+ readout: "_readout_1pt5q_42",
30
+ readoutInput: "_readoutInput_1pt5q_43",
31
+ panelTitle: "_panelTitle_1pt5q_72",
32
+ panelHeader: "_panelHeader_1pt5q_84",
33
+ panelActions: "_panelActions_1pt5q_97",
34
+ listPairs: "_listPairs_1pt5q_3",
35
+ rowColor: "_rowColor_1pt5q_4",
36
+ span: "_span_1pt5q_505",
37
+ listOneUp: "_listOneUp_1pt5q_513",
38
+ densityTight: "_densityTight_1pt5q_524",
39
+ densityNormal: "_densityNormal_1pt5q_536",
40
+ densityRoomy: "_densityRoomy_1pt5q_548",
41
+ alignStart: "_alignStart_1pt5q_574",
42
+ alignCenter: "_alignCenter_1pt5q_580",
43
+ alignEnd: "_alignEnd_1pt5q_586",
44
+ alignBaseline: "_alignBaseline_1pt5q_592",
45
+ rowInline: "_rowInline_1pt5q_623",
46
+ rowLabel: "_rowLabel_1pt5q_629",
47
+ rowBlock: "_rowBlock_1pt5q_654",
48
+ rowCheckbox: "_rowCheckbox_1pt5q_655",
49
+ readoutAfter: "_readoutAfter_1pt5q_674",
50
+ readoutText: "_readoutText_1pt5q_685",
51
+ help: "_help_1pt5q_702",
52
+ autoToggle: "_autoToggle_1pt5q_739",
53
+ readoutGroup: "_readoutGroup_1pt5q_680",
54
+ readoutUnit: "_readoutUnit_1pt5q_816",
55
+ fieldUnitGroup: "_fieldUnitGroup_1pt5q_840",
56
+ toggle: "_toggle_1pt5q_879",
57
+ rowFramed: "_rowFramed_1pt5q_888",
58
+ select: "_select_1pt5q_911",
59
+ dialogTrigger: "_dialogTrigger_1pt5q_986",
60
+ dialogSummary: "_dialogSummary_1pt5q_1021",
61
+ dialogGlyph: "_dialogGlyph_1pt5q_1029",
62
+ alpha: "_alpha_1pt5q_1101",
63
+ dimmed: "_dimmed_1pt5q_1158",
64
+ cellReadout: "_cellReadout_1pt5q_1164",
65
+ unitSuffix: "_unitSuffix_1pt5q_1171",
66
+ textarea: "_textarea_1pt5q_1177",
67
+ toggleButton: "_toggleButton_1pt5q_1198",
68
+ toggleButtonSelected: "_toggleButtonSelected_1pt5q_1224",
69
+ groupHeadRow: "_groupHeadRow_1pt5q_1249",
70
+ groupTitle: "_groupTitle_1pt5q_1257",
71
+ groupLeading: "_groupLeading_1pt5q_1263",
72
+ groupActions: "_groupActions_1pt5q_1264",
73
+ note: "_note_1pt5q_1461",
74
+ groupHead: "_groupHead_1pt5q_1249",
75
+ groupBody: "_groupBody_1pt5q_4",
76
+ groupPairs: "_groupPairs_1pt5q_1515",
77
+ groupOneUp: "_groupOneUp_1pt5q_1528",
78
+ subpanelTitle: "_subpanelTitle_1pt5q_1668",
79
+ rowAuto: "_rowAuto_1pt5q_1705"
80
+ }, re = {
81
+ tight: N.densityTight,
82
+ normal: N.densityNormal,
83
+ roomy: N.densityRoomy
84
+ }, ie = {
85
+ start: N.alignStart,
86
+ center: N.alignCenter,
87
+ end: N.alignEnd,
88
+ baseline: N.alignBaseline
89
+ };
90
+ function P(e, { density: t, align: n }, r) {
91
+ return [
92
+ e,
93
+ t && re[t],
94
+ n && ie[n],
95
+ r
96
+ ].filter(Boolean).join(" ");
97
+ }
98
+ var F = D(!1);
99
+ function ae({ title: e, actions: t, selectable: n, children: i, className: a, density: o, align: s, stance: c, tone: l }) {
100
+ let u = O(F), d = r({
101
+ stance: c,
102
+ tone: l
103
+ }), f = e != null && /* @__PURE__ */ T("h2", {
104
+ className: N.panelTitle,
105
+ children: e
106
+ });
107
+ return /* @__PURE__ */ E("div", {
108
+ className: P(N.panel, {
109
+ density: o,
110
+ align: s
111
+ }, a),
112
+ ...d,
113
+ "data-nested": u || void 0,
114
+ "data-selectable": (n ?? c === "debug") || void 0,
115
+ children: [t == null ? f : /* @__PURE__ */ E("div", {
116
+ className: N.panelHeader,
117
+ children: [f, /* @__PURE__ */ T("div", {
118
+ className: N.panelActions,
119
+ children: t
120
+ })]
121
+ }), /* @__PURE__ */ T(F.Provider, {
122
+ value: !0,
123
+ children: i
124
+ })]
125
+ });
126
+ }
127
+ var oe = te(function({ children: e, className: t, pack: n = "auto-color", density: r, align: i }, a) {
128
+ let o = `${N.list}${n === "pairs" ? ` ${N.listPairs}` : n === "one-up" ? ` ${N.listOneUp}` : ""}`;
129
+ return /* @__PURE__ */ T("div", {
130
+ ref: a,
131
+ className: P(o, {
132
+ density: r,
133
+ align: i
134
+ }, t),
135
+ children: e
136
+ });
137
+ });
138
+ function se({ children: e, className: t }) {
139
+ return /* @__PURE__ */ T("div", {
140
+ className: t ? `${N.span} ${t}` : N.span,
141
+ children: e
142
+ });
143
+ }
144
+ function I({ children: e, className: t }) {
145
+ return /* @__PURE__ */ T("p", {
146
+ className: t ? `${N.note} ${t}` : N.note,
147
+ children: e
148
+ });
149
+ }
150
+ 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, chrome: m }) {
151
+ let h = r === "color" ? N.rowColor : r === "checkbox" ? N.rowCheckbox : "", g = r === "default" ? "block" : "inline", _ = i ?? g, v = _ === g ? "" : _ === "inline" ? N.rowInline : N.rowBlock, y = P([
152
+ N.row,
153
+ h,
154
+ v,
155
+ a && N.span,
156
+ f && N.rowAuto,
157
+ m === "framed" && N.rowFramed
158
+ ].filter(Boolean).join(" "), {
159
+ density: u,
160
+ align: d
161
+ }, l), b = _ === "inline" && t != null, x = /* @__PURE__ */ E("span", {
162
+ className: N.rowLabel,
163
+ children: [
164
+ p ? /* @__PURE__ */ T(R, {
165
+ auto: f ?? !1,
166
+ label: e,
167
+ onChange: p
168
+ }) : e,
169
+ n ? /* @__PURE__ */ T(z, {
170
+ label: e,
171
+ description: n
172
+ }) : null,
173
+ t != null && !b && /* @__PURE__ */ T("em", {
174
+ className: N.readout,
175
+ children: t
176
+ })
177
+ ]
178
+ }), S = b ? /* @__PURE__ */ T("em", {
179
+ className: `${N.readout} ${N.readoutAfter}`,
180
+ children: t
181
+ }) : null;
182
+ return c ? /* @__PURE__ */ E("div", {
183
+ className: y,
184
+ children: [
185
+ x,
186
+ o,
187
+ S
188
+ ]
189
+ }) : /* @__PURE__ */ E("label", {
190
+ className: y,
191
+ htmlFor: s,
192
+ children: [
193
+ x,
194
+ o,
195
+ S
196
+ ]
197
+ });
198
+ }
199
+ function R({ auto: e, label: t, onChange: n }) {
200
+ let r = typeof t == "string" ? t : "this setting", i = (t) => {
201
+ t.preventDefault(), t.stopPropagation(), n(!e);
202
+ };
203
+ return /* @__PURE__ */ T("span", {
204
+ role: "button",
205
+ tabIndex: 0,
206
+ className: N.autoToggle,
207
+ "aria-pressed": !e,
208
+ "aria-label": `Pin ${r}`,
209
+ onClick: i,
210
+ onKeyDown: (e) => {
211
+ (e.key === "Enter" || e.key === " ") && i(e);
212
+ },
213
+ onMouseDown: (e) => e.stopPropagation(),
214
+ children: t
215
+ });
216
+ }
217
+ function z({ label: e, description: r }) {
218
+ let i = typeof e == "string" ? e : "this setting";
219
+ return /* @__PURE__ */ E(n, { children: [/* @__PURE__ */ T(M, { children: /* @__PURE__ */ T("button", {
220
+ type: "button",
221
+ className: N.help,
222
+ "aria-label": `About ${i}`,
223
+ onClick: (e) => {
224
+ e.preventDefault(), e.stopPropagation();
225
+ },
226
+ onMouseDown: (e) => e.stopPropagation(),
227
+ children: "ⓘ"
228
+ }) }), /* @__PURE__ */ T(t, { children: r })] });
229
+ }
230
+ //#endregion
231
+ //#region src/components/Properties/PropertyField.tsx
232
+ function B(e) {
233
+ 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 = ne(), m = {
234
+ ...f,
235
+ name: f.name ?? Q(t),
236
+ className: d,
237
+ id: p
238
+ }, h = m.chrome === "framed", g = H(m), _ = {
239
+ label: t,
240
+ description: r,
241
+ layout: i,
242
+ span: a,
243
+ density: o,
244
+ align: s,
245
+ auto: c,
246
+ onAutoChange: l,
247
+ className: u,
248
+ chrome: m.chrome,
249
+ variant: g.variant,
250
+ group: g.group,
251
+ htmlFor: g.group || h || m.kind === "font-family" ? void 0 : p
252
+ };
253
+ return m.kind === "number" && m.control === "slider" ? /* @__PURE__ */ T(L, {
254
+ ..._,
255
+ readout: Z(n) ?? /* @__PURE__ */ T(X, { ...m }),
256
+ children: /* @__PURE__ */ T(Y, { ...m })
257
+ }) : /* @__PURE__ */ T(L, {
258
+ ..._,
259
+ readout: n,
260
+ children: /* @__PURE__ */ T(U, { ...m })
261
+ });
262
+ }
263
+ function V(e) {
264
+ let t = e;
265
+ return t.kind === "number" && t.control === "slider" ? /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(Y, { ...t }), /* @__PURE__ */ T("span", {
266
+ className: N.cellReadout,
267
+ children: /* @__PURE__ */ T(X, { ...t })
268
+ })] }) : /* @__PURE__ */ T(U, { ...t });
269
+ }
270
+ function H(e) {
271
+ switch (e.kind) {
272
+ case "boolean": return {
273
+ variant: "checkbox",
274
+ group: e.control === "switch" || e.control === "toggle"
275
+ };
276
+ case "enum": return {
277
+ variant: "default",
278
+ group: e.control === "radio" || e.control === "toggle"
279
+ };
280
+ case "color": return {
281
+ variant: "color",
282
+ group: !1
283
+ };
284
+ case "paint": return {
285
+ variant: "default",
286
+ group: !0
287
+ };
288
+ default: return {
289
+ variant: "default",
290
+ group: !1
291
+ };
292
+ }
293
+ }
294
+ function U(e) {
295
+ switch (e.kind) {
296
+ case "boolean": return /* @__PURE__ */ T(G, { ...e });
297
+ case "number": return /* @__PURE__ */ T(ce, { ...e });
298
+ case "string": return /* @__PURE__ */ T(de, { ...e });
299
+ case "enum": return /* @__PURE__ */ T(fe, { ...e });
300
+ case "color": return /* @__PURE__ */ T(pe, { ...e });
301
+ case "paint": return /* @__PURE__ */ T(he, { ...e });
302
+ case "font-family": return /* @__PURE__ */ T(f, {
303
+ className: e.className,
304
+ value: e.mixed ? void 0 : e.value,
305
+ mixed: e.mixed,
306
+ onChange: e.onChange,
307
+ weight: e.weight,
308
+ fontStyle: e.fontStyle,
309
+ "aria-label": e.name
310
+ });
311
+ default: throw Error(`PropertyControl: no control for kind "${e.kind}"`);
312
+ }
313
+ }
314
+ function W({ mixed: e, unset: t, children: n }) {
315
+ return !e && !t ? /* @__PURE__ */ T(w, { children: n }) : /* @__PURE__ */ T("span", {
316
+ className: N.dimmed,
317
+ title: e ? "Mixed" : "Not set",
318
+ children: n
319
+ });
320
+ }
321
+ function G(e) {
322
+ let t = !e.mixed && e.value === !0, n = A(null);
323
+ if (k(() => {
324
+ n.current && (n.current.indeterminate = e.mixed === !0);
325
+ }), e.control === "toggle") return /* @__PURE__ */ T(g, {
326
+ mode: "multiple",
327
+ size: "sm",
328
+ variant: "flat",
329
+ className: e.className,
330
+ ariaLabel: e.name,
331
+ items: [{
332
+ value: "on",
333
+ label: e.glyph ?? e.name?.slice(0, 1),
334
+ ariaLabel: e.name
335
+ }],
336
+ value: t ? ["on"] : [],
337
+ mixedValues: e.mixed ? ["on"] : [],
338
+ onChange: (t) => e.onChange(t.includes("on"))
339
+ });
340
+ if (e.control === "switch") return /* @__PURE__ */ T(W, {
341
+ mixed: e.mixed,
342
+ unset: e.unset,
343
+ children: /* @__PURE__ */ T(x, {
344
+ className: e.className,
345
+ isSelected: t,
346
+ onChange: e.onChange,
347
+ "aria-label": e.name
348
+ })
349
+ });
350
+ let r = e.chrome === "framed" ? /* @__PURE__ */ T(s, {
351
+ className: e.className,
352
+ isSelected: t,
353
+ isIndeterminate: e.mixed,
354
+ onChange: e.onChange,
355
+ "aria-label": e.name
356
+ }) : /* @__PURE__ */ T("input", {
357
+ ref: n,
358
+ id: e.id,
359
+ type: "checkbox",
360
+ className: e.className,
361
+ "aria-label": e.name,
362
+ checked: t,
363
+ onChange: (t) => e.onChange(t.target.checked)
364
+ });
365
+ return /* @__PURE__ */ T(W, {
366
+ unset: e.unset,
367
+ children: r
368
+ });
369
+ }
370
+ function K(e) {
371
+ let t = A(null), n = A(e);
372
+ return k(() => {
373
+ n.current = e;
374
+ }), k(() => {
375
+ let e = t.current;
376
+ if (!e) return;
377
+ let r = () => n.current?.(e.value);
378
+ return e.addEventListener("change", r), () => e.removeEventListener("change", r);
379
+ }, []), t;
380
+ }
381
+ function q(e, t) {
382
+ return e == null ? null : typeof e == "string" ? /* @__PURE__ */ T("span", {
383
+ className: t,
384
+ children: e
385
+ }) : e;
386
+ }
387
+ function ce(e) {
388
+ let t = e.onInput ?? e.onChange, n = K(e.onInput && ((t) => {
389
+ if (t === "") return;
390
+ let n = Number(t);
391
+ Number.isFinite(n) && e.onChange(n);
392
+ })), r = !e.mixed && typeof e.value == "number" && Number.isFinite(e.value), i = e.mixed ? "Mixed" : e.placeholder;
393
+ if (e.chrome === "framed") {
394
+ let t = (t) => {
395
+ Number.isNaN(t) || e.onChange(t);
396
+ }, n = r ? e.value : NaN, a = e.accepts ? /* @__PURE__ */ T(h, {
397
+ className: e.className,
398
+ value: n,
399
+ placeholder: i,
400
+ minValue: e.min,
401
+ maxValue: e.max,
402
+ step: e.step,
403
+ accepts: e.accepts,
404
+ "aria-label": e.name,
405
+ onChange: t
406
+ }) : /* @__PURE__ */ T(m, {
407
+ className: e.className,
408
+ value: n,
409
+ placeholder: i,
410
+ minValue: e.min,
411
+ maxValue: e.max,
412
+ step: e.step,
413
+ hideSteppers: e.steppers === !1,
414
+ "aria-label": e.name,
415
+ onChange: t
416
+ });
417
+ return e.unit == null ? a : /* @__PURE__ */ E(w, { children: [a, /* @__PURE__ */ T("span", {
418
+ className: N.unitSuffix,
419
+ "aria-hidden": "true",
420
+ children: e.unit
421
+ })] });
422
+ }
423
+ let a = /* @__PURE__ */ T("input", {
424
+ ref: n,
425
+ id: e.id,
426
+ type: "number",
427
+ className: e.className,
428
+ "aria-label": e.name,
429
+ value: r ? e.value : "",
430
+ min: e.min,
431
+ max: e.max,
432
+ step: e.step,
433
+ placeholder: i,
434
+ onChange: (e) => {
435
+ let n = e.target.value;
436
+ if (n === "") return;
437
+ let r = Number(n);
438
+ Number.isFinite(r) && t(r);
439
+ }
440
+ });
441
+ return e.unit == null ? a : /* @__PURE__ */ E("span", {
442
+ className: N.fieldUnitGroup,
443
+ children: [a, q(e.unit, N.readoutUnit)]
444
+ });
445
+ }
446
+ function J(e) {
447
+ return {
448
+ min: e.min ?? 0,
449
+ max: e.max ?? 100,
450
+ step: e.step ?? 1
451
+ };
452
+ }
453
+ function Y(t) {
454
+ let { min: n, max: r, step: i } = J(t), a = t.onInput ?? t.onChange, o = t.onInput ? t.onChange : void 0, s = K(o && ((e) => o(Number(e)))), u = !t.mixed && typeof t.value == "number" && Number.isFinite(t.value) ? Math.min(Math.max(t.value, n), r) : n, d = (n) => {
455
+ let r = Number(n);
456
+ e("property-panel", "slider", {
457
+ name: t.name,
458
+ value: r
459
+ }), a(r);
460
+ };
461
+ return t.chrome === "framed" ? /* @__PURE__ */ T(l, {
462
+ ref: s,
463
+ className: t.className,
464
+ "aria-label": t.name,
465
+ min: n,
466
+ max: r,
467
+ step: i,
468
+ value: u,
469
+ disabled: t.mixed,
470
+ onChange: (e) => d(e.target.value)
471
+ }) : /* @__PURE__ */ T("input", {
472
+ ref: s,
473
+ id: t.id,
474
+ type: "range",
475
+ "aria-label": t.name,
476
+ className: t.className ? `${c.range} ${t.className}` : c.range,
477
+ tabIndex: -1,
478
+ min: n,
479
+ max: r,
480
+ step: i,
481
+ value: u,
482
+ disabled: t.mixed,
483
+ onChange: (e) => d(e.target.value)
484
+ });
485
+ }
486
+ function X(e) {
487
+ let { min: t, max: n, step: r } = J(e);
488
+ if (e.mixed || typeof e.value != "number" || !Number.isFinite(e.value)) return /* @__PURE__ */ T(w, { children: Z("—") });
489
+ let i = r >= 1 ? 0 : Math.min(6, Math.max(0, Math.ceil(-Math.log10(r)))), s = e.format ?? (e.notation === "compact" ? (e) => a(e, i) : (e) => o(e, {
490
+ useGrouping: !1,
491
+ minimumFractionDigits: i,
492
+ maximumFractionDigits: i
493
+ }));
494
+ return /* @__PURE__ */ T(le, {
495
+ name: e.name,
496
+ value: e.value,
497
+ min: t,
498
+ max: n,
499
+ format: s,
500
+ unit: e.unit,
501
+ onCommit: (t) => {
502
+ e.onInput?.(t), e.onChange(t);
503
+ }
504
+ });
505
+ }
506
+ function Z(e) {
507
+ return typeof e != "string" && typeof e != "number" ? e : /* @__PURE__ */ T("span", {
508
+ className: N.readoutGroup,
509
+ children: /* @__PURE__ */ T("span", {
510
+ className: N.readoutText,
511
+ children: e
512
+ })
513
+ });
514
+ }
515
+ function le({ name: e, value: t, min: n, max: r, format: a, unit: o, onCommit: s }) {
516
+ let [c, l] = j(null), u = (e) => {
517
+ let t = a(e);
518
+ return typeof t == "string" ? t : String(t);
519
+ }, d = c === null ? u(t) : c, f = { "--wzl-property-readout-fit": `${Math.max(u(n).length, u(r).length)}ch` }, p = () => {
520
+ if (c !== null) {
521
+ let e = i(c);
522
+ Number.isFinite(e) && s(Math.min(r, Math.max(n, e)));
523
+ }
524
+ l(null);
525
+ };
526
+ return /* @__PURE__ */ E("span", {
527
+ className: N.readoutGroup,
528
+ children: [/* @__PURE__ */ T("input", {
529
+ type: "text",
530
+ "aria-label": e,
531
+ inputMode: "decimal",
532
+ className: N.readoutInput,
533
+ style: f,
534
+ value: d,
535
+ onFocus: (e) => {
536
+ l(u(t)), e.currentTarget.select();
537
+ },
538
+ onChange: (e) => l(e.target.value.replace(/-/g, "−")),
539
+ onBlur: p,
540
+ onClick: (e) => {
541
+ e.preventDefault(), e.stopPropagation(), e.currentTarget.focus();
542
+ },
543
+ onMouseDown: (e) => e.stopPropagation(),
544
+ onKeyDown: (e) => {
545
+ e.key === "Enter" ? (p(), e.currentTarget.blur()) : e.key === "Escape" && (l(null), e.currentTarget.blur());
546
+ }
547
+ }), q(o, N.readoutUnit)]
548
+ });
549
+ }
550
+ function ue(e) {
551
+ let [t, n] = j(null), r = e.mixed ? "" : e.value ?? "", i = e.onInput !== void 0;
552
+ return {
553
+ shown: t ?? r,
554
+ type: (t) => {
555
+ if (!i) {
556
+ e.onChange(t);
557
+ return;
558
+ }
559
+ n(t), e.onInput?.(t);
560
+ },
561
+ settle: () => {
562
+ t !== null && t !== r && e.onChange(t), n(null);
563
+ }
564
+ };
565
+ }
566
+ function de(e) {
567
+ let t = ue(e), n = e.mixed ? "Mixed" : e.placeholder, r = (t) => {
568
+ t.key === "Enter" && e.control !== "textarea" && t.currentTarget.blur();
569
+ };
570
+ return e.control === "textarea" ? /* @__PURE__ */ T("textarea", {
571
+ id: e.id,
572
+ className: [e.chrome === "framed" && N.textarea, e.className].filter(Boolean).join(" ") || void 0,
573
+ "aria-label": e.name,
574
+ value: t.shown,
575
+ placeholder: n,
576
+ maxLength: e.maxLength,
577
+ rows: 3,
578
+ onChange: (e) => t.type(e.target.value),
579
+ onBlur: t.settle
580
+ }) : e.chrome === "framed" ? /* @__PURE__ */ T(p, {
581
+ className: e.className,
582
+ value: t.shown,
583
+ placeholder: n,
584
+ maxLength: e.maxLength,
585
+ "aria-label": e.name,
586
+ onChange: t.type,
587
+ onBlur: t.settle,
588
+ onKeyDown: r
589
+ }) : /* @__PURE__ */ T("input", {
590
+ id: e.id,
591
+ type: "text",
592
+ className: e.className,
593
+ "aria-label": e.name,
594
+ value: t.shown,
595
+ placeholder: n,
596
+ maxLength: e.maxLength,
597
+ onChange: (e) => t.type(e.target.value),
598
+ onBlur: t.settle,
599
+ onKeyDown: r
600
+ });
601
+ }
602
+ function Q(e) {
603
+ return typeof e == "string" ? e : void 0;
604
+ }
605
+ function fe(t) {
606
+ let n = !t.mixed && t.options.some((e) => e.value === t.value) ? t.value : null;
607
+ if (t.control === "radio" || t.control === "toggle") {
608
+ if (t.chrome === "framed") return t.control === "radio" ? /* @__PURE__ */ T(y, {
609
+ className: t.className,
610
+ value: n,
611
+ onChange: t.onChange,
612
+ "aria-label": t.name,
613
+ children: t.options.map((e) => /* @__PURE__ */ T(b, {
614
+ value: e.value,
615
+ isDisabled: e.disabled,
616
+ children: e.label
617
+ }, e.value))
618
+ }) : /* @__PURE__ */ T(g, {
619
+ size: "sm",
620
+ variant: "flat",
621
+ className: t.className,
622
+ ariaLabel: t.name,
623
+ items: t.options.map((e) => ({
624
+ value: e.value,
625
+ label: e.glyph ?? e.label,
626
+ ariaLabel: Q(e.label),
627
+ disabled: e.disabled
628
+ })),
629
+ value: n,
630
+ onChange: (e) => {
631
+ e !== null && t.onChange(e);
632
+ }
633
+ });
634
+ let e = t.control === "radio";
635
+ return /* @__PURE__ */ T("div", {
636
+ className: t.className ? `${N.toggle} ${t.className}` : N.toggle,
637
+ role: e ? "radiogroup" : "group",
638
+ "aria-label": t.name,
639
+ children: t.options.map((r) => {
640
+ let i = r.value === n;
641
+ return /* @__PURE__ */ T("button", {
642
+ type: "button",
643
+ role: e ? "radio" : void 0,
644
+ "aria-checked": e ? i : void 0,
645
+ "aria-pressed": e ? void 0 : i,
646
+ "aria-label": Q(r.label),
647
+ disabled: r.disabled,
648
+ className: i ? `${N.toggleButton} ${N.toggleButtonSelected}` : N.toggleButton,
649
+ onClick: () => t.onChange(r.value),
650
+ children: r.glyph ?? r.label
651
+ }, r.value);
652
+ })
653
+ });
654
+ }
655
+ let r = t.chrome !== "framed";
656
+ return /* @__PURE__ */ T(d, {
657
+ className: r ? t.className ? `${N.select} ${t.className}` : N.select : t.className,
658
+ variant: r ? "bare" : void 0,
659
+ triggerId: r ? t.id : void 0,
660
+ "aria-label": t.name,
661
+ placeholder: t.mixed ? "Mixed" : t.placeholder ?? (t.unset ? "—" : "Choose option…"),
662
+ selectedKey: n,
663
+ options: t.options.map((e) => ({
664
+ value: e.value,
665
+ label: e.label,
666
+ isDisabled: e.disabled
667
+ })),
668
+ onSelectionChange: (n) => {
669
+ e("property-panel", "select", {
670
+ name: t.name,
671
+ value: n
672
+ }), t.onChange(n);
673
+ }
674
+ });
675
+ }
676
+ function $(e) {
677
+ let t = ee(e?.trim() ?? "");
678
+ return /^#[0-9a-f]{8}$/i.test(t) ? {
679
+ rgb: t.slice(0, 7).toLowerCase(),
680
+ alpha: S(t)
681
+ } : {
682
+ rgb: "#000000",
683
+ alpha: 1
684
+ };
685
+ }
686
+ function pe(e) {
687
+ let t = e.alpha === !0, n = $(e.value), r = typeof e.alpha == "number" ? e.alpha : n.alpha, i = (e, n) => t ? C(e, n) : e, a = (e) => (t) => e(i(t, r)), o = (e, r) => t ? e && ((t) => e(C(n.rgb, t))) : r, s = o(e.onChange, e.onAlphaChange), c = o(e.onInput, e.onAlphaInput);
688
+ if (e.chrome === "framed") {
689
+ let t = e.alpha !== void 0 && e.alpha !== !1, i = (t, i) => t && ((a) => {
690
+ if (typeof e.alpha != "number") {
691
+ t(a);
692
+ return;
693
+ }
694
+ let o = $(a);
695
+ (o.rgb !== n.rgb || !i) && t(o.rgb), o.alpha !== r && i?.(o.alpha);
696
+ });
697
+ return /* @__PURE__ */ T(u, {
698
+ className: e.className,
699
+ value: e.mixed ? void 0 : t ? C(n.rgb, r) : e.value ?? "#000000",
700
+ mixed: e.mixed,
701
+ alpha: t,
702
+ onChange: i(e.onChange, e.onAlphaChange) ?? e.onChange,
703
+ onInput: i(e.onInput, e.onAlphaInput),
704
+ "aria-label": e.name
705
+ });
706
+ }
707
+ return /* @__PURE__ */ T(me, {
708
+ p: e,
709
+ rgb: n.rgb,
710
+ alpha: e.alpha === void 0 || e.alpha === !1 ? void 0 : r,
711
+ onColorChange: a(e.onChange),
712
+ onColorInput: e.onInput && a(e.onInput),
713
+ onAlphaChange: s,
714
+ onAlphaInput: c
715
+ });
716
+ }
717
+ function me({ p: e, rgb: t, alpha: n, onColorChange: r, onColorInput: i, onAlphaChange: a, onAlphaInput: o }) {
718
+ let s = i ?? r, l = K(i && ((e) => r(e))), u = o ?? a, d = K(o && a && ((e) => a(Number(e))));
719
+ return /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("input", {
720
+ ref: l,
721
+ id: e.id,
722
+ type: "color",
723
+ className: e.className,
724
+ "aria-label": e.name,
725
+ value: t,
726
+ "data-mixed": e.mixed || void 0,
727
+ onChange: (e) => s(e.target.value)
728
+ }), n !== void 0 && /* @__PURE__ */ T("input", {
729
+ ref: d,
730
+ type: "range",
731
+ "aria-label": e.name ? `${e.name} opacity` : void 0,
732
+ className: `${c.range} ${c.alpha} ${N.alpha}`,
733
+ min: 0,
734
+ max: 1,
735
+ step: .01,
736
+ value: n,
737
+ disabled: e.alphaDisabled,
738
+ onChange: (e) => u?.(Number(e.target.value))
739
+ })] });
740
+ }
741
+ function he(e) {
742
+ let t = e.control === "inline" ? _ : v;
743
+ return /* @__PURE__ */ T(t, {
744
+ className: e.className,
745
+ value: e.value,
746
+ mixed: e.mixed,
747
+ unset: e.unset,
748
+ kinds: e.kinds,
749
+ allowNone: e.allowNone,
750
+ onChange: e.onChange,
751
+ onInput: e.onInput,
752
+ "aria-label": e.name
753
+ });
754
+ }
755
+ //#endregion
756
+ export { ae as a, P as c, I as i, N as l, B as n, L as o, oe as r, se as s, V as t };
757
+
758
+ //# sourceMappingURL=PropertyField-DGCecAnV.js.map