@weasel-js/ui 1.5.0 → 1.5.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 (341) hide show
  1. package/dist/chunks/{ActionBar-DxGp3WuZ.js → ActionBar-CLwiY3Jg.js} +5 -6
  2. package/dist/chunks/ActionBar-CLwiY3Jg.js.map +1 -0
  3. package/dist/chunks/{ActionsBar-D1VFreoj.js → ActionsBar-D84a4eGy.js} +2 -2
  4. package/dist/chunks/{ActionsBar-D1VFreoj.js.map → ActionsBar-D84a4eGy.js.map} +1 -1
  5. package/dist/chunks/{Badge-Bf8Rd1R6.js → Badge-CW9pBPFl.js} +5 -5
  6. package/dist/chunks/Badge-CW9pBPFl.js.map +1 -0
  7. package/dist/chunks/{BandEditor-BeWO56_w.js → BandEditor-jY-PFKY6.js} +103 -108
  8. package/dist/chunks/BandEditor-jY-PFKY6.js.map +1 -0
  9. package/dist/chunks/{Button-CExdkQcU.js → Button-DRSApvnK.js} +15 -15
  10. package/dist/chunks/Button-DRSApvnK.js.map +1 -0
  11. package/dist/chunks/{Callout-BPIA2is-.js → Callout-DrNu-9Qr.js} +12 -12
  12. package/dist/chunks/Callout-DrNu-9Qr.js.map +1 -0
  13. package/dist/chunks/{Checkbox-D-pVpobU.js → Checkbox-BOsDAY2F.js} +5 -5
  14. package/dist/chunks/Checkbox-BOsDAY2F.js.map +1 -0
  15. package/dist/chunks/{ColorField-C20aRvCg.js → ColorField-BYzgZM9o.js} +7 -7
  16. package/dist/chunks/ColorField-BYzgZM9o.js.map +1 -0
  17. package/dist/chunks/{ComboBox-CPES6Y1i.js → ComboBox-Cz3f0Y_8.js} +13 -13
  18. package/dist/chunks/ComboBox-Cz3f0Y_8.js.map +1 -0
  19. package/dist/chunks/{CurveEditor-Cj0lLiyR.js → CurveEditor-DXwSP-iA.js} +175 -175
  20. package/dist/chunks/CurveEditor-DXwSP-iA.js.map +1 -0
  21. package/dist/chunks/{DataGrid-BVdDMZkQ.js → DataGrid-C8KrYtw7.js} +11 -11
  22. package/dist/chunks/DataGrid-C8KrYtw7.js.map +1 -0
  23. package/dist/chunks/DetentSlider-CAubVX0J.js +72 -0
  24. package/dist/chunks/DetentSlider-CAubVX0J.js.map +1 -0
  25. package/dist/chunks/{Dialog-CYBLjwbd.js → Dialog-fGqqQ6o_.js} +9 -9
  26. package/dist/chunks/Dialog-fGqqQ6o_.js.map +1 -0
  27. package/dist/chunks/{Disclosure-DiA6UKdM.js → Disclosure-CILDfWsU.js} +6 -6
  28. package/dist/chunks/Disclosure-CILDfWsU.js.map +1 -0
  29. package/dist/chunks/{Field-dzlxOGxT.js → Field-DWnV8WZY.js} +6 -6
  30. package/dist/chunks/Field-DWnV8WZY.js.map +1 -0
  31. package/dist/chunks/{FontFamilySelect-DIJ4phXz.js → FontFamilySelect-DxfgTC3G.js} +2 -2
  32. package/dist/chunks/{FontFamilySelect-DIJ4phXz.js.map → FontFamilySelect-DxfgTC3G.js.map} +1 -1
  33. package/dist/chunks/{GradientEditor-dBprHbS0.js → GradientEditor-rRBmf3G0.js} +77 -54
  34. package/dist/chunks/GradientEditor-rRBmf3G0.js.map +1 -0
  35. package/dist/chunks/Icon-DT0x6HaQ.js +519 -0
  36. package/dist/chunks/Icon-DT0x6HaQ.js.map +1 -0
  37. package/dist/chunks/{InlineRange-CcfzY80y.js → InlineRange-DdIlfGqG.js} +2 -2
  38. package/dist/chunks/{InlineRange-CcfzY80y.js.map → InlineRange-DdIlfGqG.js.map} +1 -1
  39. package/dist/chunks/{Input-CoKOtyD0.js → Input-DbMKpkXy.js} +5 -5
  40. package/dist/chunks/Input-DbMKpkXy.js.map +1 -0
  41. package/dist/chunks/{ItemList-BZJQReXD.js → ItemList-B9zYb0GE.js} +7 -7
  42. package/dist/chunks/ItemList-B9zYb0GE.js.map +1 -0
  43. package/dist/chunks/Jog-DkkTlL3_.js +81 -0
  44. package/dist/chunks/Jog-DkkTlL3_.js.map +1 -0
  45. package/dist/chunks/{Keycaps-DSeq6QWH.js → Keycaps-DunVpejA.js} +5 -5
  46. package/dist/chunks/Keycaps-DunVpejA.js.map +1 -0
  47. package/dist/chunks/{LayerStack-DOylrQcm.js → LayerStack-CfQ6GsRz.js} +18 -18
  48. package/dist/chunks/LayerStack-CfQ6GsRz.js.map +1 -0
  49. package/dist/chunks/{MenuButton-Do8fFUx1.js → MenuButton-C_4nox39.js} +7 -7
  50. package/dist/chunks/MenuButton-C_4nox39.js.map +1 -0
  51. package/dist/chunks/MeshEditor-Bipz-Ocl.js +123 -0
  52. package/dist/chunks/MeshEditor-Bipz-Ocl.js.map +1 -0
  53. package/dist/chunks/{NumberField-BWzhqS19.js → NumberField-CCjEDZCg.js} +9 -9
  54. package/dist/chunks/NumberField-CCjEDZCg.js.map +1 -0
  55. package/dist/chunks/{OptionsBar-D_Cd3ZYs.js → OptionsBar-DeQ-vUeZ.js} +2 -2
  56. package/dist/chunks/{OptionsBar-D_Cd3ZYs.js.map → OptionsBar-DeQ-vUeZ.js.map} +1 -1
  57. package/dist/chunks/PaintField-jBOJ32rL.js +62 -0
  58. package/dist/chunks/PaintField-jBOJ32rL.js.map +1 -0
  59. package/dist/chunks/PaintInput-Qs7Rul5R.js +131 -0
  60. package/dist/chunks/PaintInput-Qs7Rul5R.js.map +1 -0
  61. package/dist/chunks/{PatternPicker-Ba22Bf4L.js → PatternPicker-BMpXWboq.js} +6 -6
  62. package/dist/chunks/PatternPicker-BMpXWboq.js.map +1 -0
  63. package/dist/chunks/{Plot2D-CVZwQpWJ.js → Plot2D-CXf_f7QD.js} +1 -1
  64. package/dist/chunks/{Plot2D-CVZwQpWJ.js.map → Plot2D-CXf_f7QD.js.map} +1 -1
  65. package/dist/chunks/{PointPlotter-anTHwz8f.js → PointPlotter-S_gz7VYt.js} +2 -2
  66. package/dist/chunks/{PointPlotter-anTHwz8f.js.map → PointPlotter-S_gz7VYt.js.map} +1 -1
  67. package/dist/chunks/{Powerline-BaHDJlcO.js → Powerline-Ak5AWUlK.js} +5 -5
  68. package/dist/chunks/Powerline-Ak5AWUlK.js.map +1 -0
  69. package/dist/chunks/Prefs-CNC8tzyN.js +308 -0
  70. package/dist/chunks/Prefs-CNC8tzyN.js.map +1 -0
  71. package/dist/chunks/Properties-Rnb6TAbN.js +891 -0
  72. package/dist/chunks/Properties-Rnb6TAbN.js.map +1 -0
  73. package/dist/chunks/{RadioGroup-B2_LUgDp.js → RadioGroup-CsVp3SEu.js} +6 -6
  74. package/dist/chunks/RadioGroup-CsVp3SEu.js.map +1 -0
  75. package/dist/chunks/{RangeSlider-S2R3zA8N.js → RangeSlider-DNr-pJpZ.js} +8 -8
  76. package/dist/chunks/RangeSlider-DNr-pJpZ.js.map +1 -0
  77. package/dist/chunks/{ResizeHandle-CiExUWP-.js → ResizeHandle-RXFf5fXr.js} +1 -1
  78. package/dist/chunks/{ResizeHandle-CiExUWP-.js.map → ResizeHandle-RXFf5fXr.js.map} +1 -1
  79. package/dist/chunks/Select-BEope086.js +190 -0
  80. package/dist/chunks/Select-BEope086.js.map +1 -0
  81. package/dist/chunks/SelectionPanel-CEbLS-0D.js +102 -0
  82. package/dist/chunks/SelectionPanel-CEbLS-0D.js.map +1 -0
  83. package/dist/chunks/{Sidebar-Cqcfx3_s.js → Sidebar-qn_oSCNX.js} +4 -4
  84. package/dist/chunks/Sidebar-qn_oSCNX.js.map +1 -0
  85. package/dist/chunks/{SidebarPanel-BLzBo0S2.js → SidebarPanel-Bs6V21hg.js} +12 -12
  86. package/dist/chunks/SidebarPanel-Bs6V21hg.js.map +1 -0
  87. package/dist/chunks/Slider-CIIrqiFS.js +381 -0
  88. package/dist/chunks/Slider-CIIrqiFS.js.map +1 -0
  89. package/dist/chunks/{StatusBar-B9NQ8atD.js → StatusBar-B4L15DSm.js} +6 -6
  90. package/dist/chunks/StatusBar-B4L15DSm.js.map +1 -0
  91. package/dist/chunks/{Switch-C4NU-me1.js → Switch-DH5POG0T.js} +5 -5
  92. package/dist/chunks/Switch-DH5POG0T.js.map +1 -0
  93. package/dist/chunks/{Tabs-9sODd2Ut.js → Tabs-BFHikpml.js} +5 -5
  94. package/dist/chunks/Tabs-BFHikpml.js.map +1 -0
  95. package/dist/chunks/{Timeline-DOZgb1CG.js → Timeline-DNKY_yiK.js} +254 -253
  96. package/dist/chunks/Timeline-DNKY_yiK.js.map +1 -0
  97. package/dist/chunks/{Toast-LpN1WK8E.js → Toast-CI1UDuK6.js} +15 -15
  98. package/dist/chunks/Toast-CI1UDuK6.js.map +1 -0
  99. package/dist/chunks/{ToggleBar-Bxwv6xvj.js → ToggleBar-CClus5Cd.js} +8 -8
  100. package/dist/chunks/ToggleBar-CClus5Cd.js.map +1 -0
  101. package/dist/chunks/TokenPanel-BPHq24dc.js +634 -0
  102. package/dist/chunks/TokenPanel-BPHq24dc.js.map +1 -0
  103. package/dist/chunks/{ToolButton-B81YjdwO.js → ToolButton-9QzJCmuM.js} +7 -7
  104. package/dist/chunks/ToolButton-9QzJCmuM.js.map +1 -0
  105. package/dist/chunks/{ToolGroup-D7juDOC_.js → ToolGroup-BJiDrH_i.js} +3 -3
  106. package/dist/chunks/ToolGroup-BJiDrH_i.js.map +1 -0
  107. package/dist/chunks/ToolOptionsBar-CAM6RcUH.js +85 -0
  108. package/dist/chunks/ToolOptionsBar-CAM6RcUH.js.map +1 -0
  109. package/dist/chunks/{ToolPalette-BSzmRJS7.js → ToolPalette-DGkKwE7D.js} +8 -8
  110. package/dist/chunks/ToolPalette-DGkKwE7D.js.map +1 -0
  111. package/dist/chunks/{Tooltip-BHre_vbI.js → Tooltip-C4YBczLq.js} +3 -3
  112. package/dist/chunks/Tooltip-C4YBczLq.js.map +1 -0
  113. package/dist/chunks/{createKeyframeLayer-AL4jP0EX.js → createKeyframeLayer-DKtO0Sw_.js} +198 -193
  114. package/dist/chunks/createKeyframeLayer-DKtO0Sw_.js.map +1 -0
  115. package/dist/chunks/{icons-BV27dhKB.js → icons-DFLytcui.js} +35 -32
  116. package/dist/chunks/icons-DFLytcui.js.map +1 -0
  117. package/dist/chunks/model-13kZ_-mE.js +483 -0
  118. package/dist/chunks/model-13kZ_-mE.js.map +1 -0
  119. package/dist/chunks/number-BHz66zQO.js +89 -0
  120. package/dist/chunks/number-BHz66zQO.js.map +1 -0
  121. package/dist/chunks/range.module-DSsOIq1R.js +8 -0
  122. package/dist/chunks/range.module-DSsOIq1R.js.map +1 -0
  123. package/dist/chunks/{schema-CPdFNeP6.js → schema-Dft4Cu2p.js} +1 -1
  124. package/dist/chunks/schema-Dft4Cu2p.js.map +1 -0
  125. package/dist/chunks/segmentedControl.module-DS72X1ns.js +11 -0
  126. package/dist/chunks/segmentedControl.module-DS72X1ns.js.map +1 -0
  127. package/dist/chunks/snap-CEjuWOhN.js +13 -0
  128. package/dist/chunks/snap-CEjuWOhN.js.map +1 -0
  129. package/dist/chunks/useRovingTabIndex-Dkpf_KhN.js.map +1 -1
  130. package/dist/color/oklch.d.ts +2 -1
  131. package/dist/color/oklch.d.ts.map +1 -1
  132. package/dist/components/ActionBar/ActionBar.d.ts.map +1 -1
  133. package/dist/components/ActionBar/index.js +1 -1
  134. package/dist/components/ActionsBar/index.js +1 -1
  135. package/dist/components/Badge/index.js +1 -1
  136. package/dist/components/BandEditor/BandEditor.d.ts.map +1 -1
  137. package/dist/components/BandEditor/index.js +1 -1
  138. package/dist/components/BandEditor/scale.d.ts +1 -8
  139. package/dist/components/BandEditor/scale.d.ts.map +1 -1
  140. package/dist/components/Button/index.js +1 -1
  141. package/dist/components/Callout/index.js +1 -1
  142. package/dist/components/Checkbox/index.js +1 -1
  143. package/dist/components/ColorField/index.js +1 -1
  144. package/dist/components/ComboBox/index.js +1 -1
  145. package/dist/components/CurveEditor/createFunctionLayer.d.ts.map +1 -1
  146. package/dist/components/CurveEditor/createKeyframeLayer.d.ts.map +1 -1
  147. package/dist/components/CurveEditor/index.d.ts +1 -1
  148. package/dist/components/CurveEditor/index.d.ts.map +1 -1
  149. package/dist/components/CurveEditor/index.js +4 -3
  150. package/dist/components/DataGrid/index.js +1 -1
  151. package/dist/components/DetentSlider/DetentSlider.d.ts +9 -10
  152. package/dist/components/DetentSlider/DetentSlider.d.ts.map +1 -1
  153. package/dist/components/DetentSlider/index.js +1 -1
  154. package/dist/components/Dialog/index.js +1 -1
  155. package/dist/components/Disclosure/index.js +1 -1
  156. package/dist/components/Field/index.js +1 -1
  157. package/dist/components/FontFamilySelect/index.js +1 -1
  158. package/dist/components/GradientEditor/GradientEditor.d.ts +3 -0
  159. package/dist/components/GradientEditor/GradientEditor.d.ts.map +1 -1
  160. package/dist/components/GradientEditor/index.js +1 -1
  161. package/dist/components/InlineRange/index.js +1 -1
  162. package/dist/components/Input/index.js +1 -1
  163. package/dist/components/ItemList/index.js +1 -1
  164. package/dist/components/Jog/Jog.d.ts +28 -0
  165. package/dist/components/Jog/Jog.d.ts.map +1 -0
  166. package/dist/components/Jog/index.d.ts +3 -0
  167. package/dist/components/Jog/index.d.ts.map +1 -0
  168. package/dist/components/Jog/index.js +2 -0
  169. package/dist/components/Keycaps/index.js +1 -1
  170. package/dist/components/LayerStack/index.js +1 -1
  171. package/dist/components/MenuButton/index.js +1 -1
  172. package/dist/components/MeshEditor/MeshEditor.d.ts +30 -0
  173. package/dist/components/MeshEditor/MeshEditor.d.ts.map +1 -0
  174. package/dist/components/MeshEditor/index.d.ts +3 -0
  175. package/dist/components/MeshEditor/index.d.ts.map +1 -0
  176. package/dist/components/MeshEditor/index.js +2 -0
  177. package/dist/components/NumberField/UnitField.d.ts +2 -1
  178. package/dist/components/NumberField/UnitField.d.ts.map +1 -1
  179. package/dist/components/NumberField/index.js +1 -1
  180. package/dist/components/OptionsBar/index.js +1 -1
  181. package/dist/components/PaintField/PaintField.d.ts +36 -0
  182. package/dist/components/PaintField/PaintField.d.ts.map +1 -0
  183. package/dist/components/PaintField/index.d.ts +3 -0
  184. package/dist/components/PaintField/index.d.ts.map +1 -0
  185. package/dist/components/PaintField/index.js +2 -0
  186. package/dist/components/PaintInput/PaintInput.d.ts.map +1 -1
  187. package/dist/components/PaintInput/index.js +1 -1
  188. package/dist/components/PatternPicker/index.js +1 -1
  189. package/dist/components/Plot2D/index.js +1 -1
  190. package/dist/components/PointPlotter/index.js +1 -1
  191. package/dist/components/Powerline/index.js +2 -2
  192. package/dist/components/Prefs/PrefsForm.d.ts +4 -0
  193. package/dist/components/Prefs/PrefsForm.d.ts.map +1 -1
  194. package/dist/components/Prefs/index.js +2 -2
  195. package/dist/components/Prefs/schema.d.ts +2 -1
  196. package/dist/components/Prefs/schema.d.ts.map +1 -1
  197. package/dist/components/Properties/PropertyGroup.d.ts +7 -1
  198. package/dist/components/Properties/PropertyGroup.d.ts.map +1 -1
  199. package/dist/components/Properties/PropertyPanel.d.ts +91 -8
  200. package/dist/components/Properties/PropertyPanel.d.ts.map +1 -1
  201. package/dist/components/Properties/index.d.ts +2 -2
  202. package/dist/components/Properties/index.d.ts.map +1 -1
  203. package/dist/components/Properties/index.js +2 -2
  204. package/dist/components/Properties/storyLayouts.d.ts +1 -1
  205. package/dist/components/RadioGroup/index.js +1 -1
  206. package/dist/components/RangeSlider/index.js +1 -1
  207. package/dist/components/ResizeHandle/index.js +1 -1
  208. package/dist/components/Select/Select.d.ts +26 -0
  209. package/dist/components/Select/Select.d.ts.map +1 -1
  210. package/dist/components/Select/index.d.ts +1 -1
  211. package/dist/components/Select/index.d.ts.map +1 -1
  212. package/dist/components/Select/index.js +1 -1
  213. package/dist/components/SelectionPanel/SelectionPanel.d.ts +3 -50
  214. package/dist/components/SelectionPanel/SelectionPanel.d.ts.map +1 -1
  215. package/dist/components/SelectionPanel/index.js +3 -2
  216. package/dist/components/SelectionPanel/model.d.ts +4 -1
  217. package/dist/components/SelectionPanel/model.d.ts.map +1 -1
  218. package/dist/components/SelectionPanel/renderLeaf.d.ts +106 -0
  219. package/dist/components/SelectionPanel/renderLeaf.d.ts.map +1 -0
  220. package/dist/components/Sidebar/index.js +1 -1
  221. package/dist/components/SidebarPanel/index.js +1 -1
  222. package/dist/components/Slider/Slider.d.ts +19 -1
  223. package/dist/components/Slider/Slider.d.ts.map +1 -1
  224. package/dist/components/Slider/index.d.ts +1 -1
  225. package/dist/components/Slider/index.d.ts.map +1 -1
  226. package/dist/components/Slider/index.js +1 -1
  227. package/dist/components/StatusBar/index.js +1 -1
  228. package/dist/components/Switch/index.js +1 -1
  229. package/dist/components/Tabs/index.js +1 -1
  230. package/dist/components/Timeline/Lane.d.ts.map +1 -1
  231. package/dist/components/Timeline/index.js +2 -2
  232. package/dist/components/Timeline/keys.d.ts +1 -1
  233. package/dist/components/Timeline/keys.d.ts.map +1 -1
  234. package/dist/components/Toast/index.js +1 -1
  235. package/dist/components/ToggleBar/index.js +1 -1
  236. package/dist/components/TokenPanel/TokenPanel.d.ts +39 -0
  237. package/dist/components/TokenPanel/TokenPanel.d.ts.map +1 -0
  238. package/dist/components/TokenPanel/color.d.ts +7 -0
  239. package/dist/components/TokenPanel/color.d.ts.map +1 -0
  240. package/dist/components/TokenPanel/index.d.ts +5 -0
  241. package/dist/components/TokenPanel/index.d.ts.map +1 -0
  242. package/dist/components/TokenPanel/index.js +2 -0
  243. package/dist/components/TokenPanel/tokenTypes.d.ts +55 -0
  244. package/dist/components/TokenPanel/tokenTypes.d.ts.map +1 -0
  245. package/dist/components/ToolButton/index.js +1 -1
  246. package/dist/components/ToolGroup/index.js +1 -1
  247. package/dist/components/ToolOptionsBar/ToolOptionsBar.d.ts +29 -18
  248. package/dist/components/ToolOptionsBar/ToolOptionsBar.d.ts.map +1 -1
  249. package/dist/components/ToolOptionsBar/index.js +1 -1
  250. package/dist/components/ToolPalette/ToolPalette.d.ts +5 -4
  251. package/dist/components/ToolPalette/ToolPalette.d.ts.map +1 -1
  252. package/dist/components/ToolPalette/index.js +1 -1
  253. package/dist/components/Tooltip/index.js +1 -1
  254. package/dist/components/paintValue.d.ts +8 -0
  255. package/dist/components/paintValue.d.ts.map +1 -1
  256. package/dist/format/number.d.ts +10 -1
  257. package/dist/format/number.d.ts.map +1 -1
  258. package/dist/handles.d.ts +20 -0
  259. package/dist/handles.d.ts.map +1 -0
  260. package/dist/icons/Icon.d.ts +10 -2
  261. package/dist/icons/Icon.d.ts.map +1 -1
  262. package/dist/icons/index.d.ts +6 -3
  263. package/dist/icons/index.d.ts.map +1 -1
  264. package/dist/icons/paths.d.ts +279 -17
  265. package/dist/icons/paths.d.ts.map +1 -1
  266. package/dist/index.d.ts +7 -0
  267. package/dist/index.d.ts.map +1 -1
  268. package/dist/index.js +74 -75
  269. package/dist/index.js.map +1 -1
  270. package/dist/paintPreview.d.ts +13 -0
  271. package/dist/paintPreview.d.ts.map +1 -0
  272. package/dist/{components/CurveEditor/snap.d.ts → snap.d.ts} +2 -0
  273. package/dist/snap.d.ts.map +1 -0
  274. package/dist/style.css +1 -1
  275. package/dist/useRovingTabIndex.d.ts +7 -5
  276. package/dist/useRovingTabIndex.d.ts.map +1 -1
  277. package/package.json +8 -7
  278. package/dist/chunks/ActionBar-DxGp3WuZ.js.map +0 -1
  279. package/dist/chunks/Badge-Bf8Rd1R6.js.map +0 -1
  280. package/dist/chunks/BandEditor-BeWO56_w.js.map +0 -1
  281. package/dist/chunks/Button-CExdkQcU.js.map +0 -1
  282. package/dist/chunks/Callout-BPIA2is-.js.map +0 -1
  283. package/dist/chunks/Checkbox-D-pVpobU.js.map +0 -1
  284. package/dist/chunks/ColorField-C20aRvCg.js.map +0 -1
  285. package/dist/chunks/ComboBox-CPES6Y1i.js.map +0 -1
  286. package/dist/chunks/CurveEditor-Cj0lLiyR.js.map +0 -1
  287. package/dist/chunks/DataGrid-BVdDMZkQ.js.map +0 -1
  288. package/dist/chunks/DetentSlider-CYicfnKr.js +0 -83
  289. package/dist/chunks/DetentSlider-CYicfnKr.js.map +0 -1
  290. package/dist/chunks/Dialog-CYBLjwbd.js.map +0 -1
  291. package/dist/chunks/Disclosure-DiA6UKdM.js.map +0 -1
  292. package/dist/chunks/Field-dzlxOGxT.js.map +0 -1
  293. package/dist/chunks/GradientEditor-dBprHbS0.js.map +0 -1
  294. package/dist/chunks/Icon-DBXtBB1f.js +0 -101
  295. package/dist/chunks/Icon-DBXtBB1f.js.map +0 -1
  296. package/dist/chunks/Input-CoKOtyD0.js.map +0 -1
  297. package/dist/chunks/ItemList-BZJQReXD.js.map +0 -1
  298. package/dist/chunks/Keycaps-DSeq6QWH.js.map +0 -1
  299. package/dist/chunks/LayerStack-DOylrQcm.js.map +0 -1
  300. package/dist/chunks/MenuButton-Do8fFUx1.js.map +0 -1
  301. package/dist/chunks/NumberField-BWzhqS19.js.map +0 -1
  302. package/dist/chunks/PaintInput-DAevU7fd.js +0 -118
  303. package/dist/chunks/PaintInput-DAevU7fd.js.map +0 -1
  304. package/dist/chunks/PatternPicker-Ba22Bf4L.js.map +0 -1
  305. package/dist/chunks/Powerline-BaHDJlcO.js.map +0 -1
  306. package/dist/chunks/Prefs-CzIn-hlq.js +0 -302
  307. package/dist/chunks/Prefs-CzIn-hlq.js.map +0 -1
  308. package/dist/chunks/Properties-DJaDEJkT.js +0 -765
  309. package/dist/chunks/Properties-DJaDEJkT.js.map +0 -1
  310. package/dist/chunks/RadioGroup-B2_LUgDp.js.map +0 -1
  311. package/dist/chunks/RangeSlider-S2R3zA8N.js.map +0 -1
  312. package/dist/chunks/Select-CacMfs4v.js +0 -124
  313. package/dist/chunks/Select-CacMfs4v.js.map +0 -1
  314. package/dist/chunks/SelectionPanel-CbyUT3Dh.js +0 -572
  315. package/dist/chunks/SelectionPanel-CbyUT3Dh.js.map +0 -1
  316. package/dist/chunks/Sidebar-Cqcfx3_s.js.map +0 -1
  317. package/dist/chunks/SidebarPanel-BLzBo0S2.js.map +0 -1
  318. package/dist/chunks/Slider--DFRC_hc.js +0 -303
  319. package/dist/chunks/Slider--DFRC_hc.js.map +0 -1
  320. package/dist/chunks/StatusBar-B9NQ8atD.js.map +0 -1
  321. package/dist/chunks/Switch-C4NU-me1.js.map +0 -1
  322. package/dist/chunks/Tabs-9sODd2Ut.js.map +0 -1
  323. package/dist/chunks/Timeline-DOZgb1CG.js.map +0 -1
  324. package/dist/chunks/Toast-LpN1WK8E.js.map +0 -1
  325. package/dist/chunks/ToggleBar-Bxwv6xvj.js.map +0 -1
  326. package/dist/chunks/ToolButton-B81YjdwO.js.map +0 -1
  327. package/dist/chunks/ToolGroup-D7juDOC_.js.map +0 -1
  328. package/dist/chunks/ToolOptionsBar-B2xPWzJf.js +0 -27
  329. package/dist/chunks/ToolOptionsBar-B2xPWzJf.js.map +0 -1
  330. package/dist/chunks/ToolPalette-BSzmRJS7.js.map +0 -1
  331. package/dist/chunks/Tooltip-BHre_vbI.js.map +0 -1
  332. package/dist/chunks/createKeyframeLayer-AL4jP0EX.js.map +0 -1
  333. package/dist/chunks/icons-BV27dhKB.js.map +0 -1
  334. package/dist/chunks/number-f6PydOZK.js +0 -52
  335. package/dist/chunks/number-f6PydOZK.js.map +0 -1
  336. package/dist/chunks/range.module-CvSfABmu.js +0 -8
  337. package/dist/chunks/range.module-CvSfABmu.js.map +0 -1
  338. package/dist/chunks/schema-CPdFNeP6.js.map +0 -1
  339. package/dist/chunks/segmentedControl.module-BgvAPkSZ.js +0 -11
  340. package/dist/chunks/segmentedControl.module-BgvAPkSZ.js.map +0 -1
  341. package/dist/components/CurveEditor/snap.d.ts.map +0 -1
@@ -1,572 +0,0 @@
1
- import { n as e, t } from "./Icon-DBXtBB1f.js";
2
- import { t as n } from "./ToggleBar-Bxwv6xvj.js";
3
- import { t as r } from "./InlineRange-CcfzY80y.js";
4
- import { t as i } from "./ColorField-C20aRvCg.js";
5
- import { t as a } from "./PaintInput-DAevU7fd.js";
6
- import { t as o } from "./Select-CacMfs4v.js";
7
- import { t as s } from "./FontFamilySelect-DIJ4phXz.js";
8
- import { t as c } from "./Input-CoKOtyD0.js";
9
- import { n as l, t as u } from "./NumberField-BWzhqS19.js";
10
- import { t as d } from "./Switch-C4NU-me1.js";
11
- import { n as f, r as p } from "./schema-CPdFNeP6.js";
12
- import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
13
- import { MIXED as _, asNodeId as v, isBuiltinToolPref as y } from "@weasel-js/core";
14
- import { Fragment as b, useState as x, useSyncExternalStore as S } from "react";
15
- //#region src/components/SelectionPanel/model.ts
16
- function C(e, t) {
17
- if (e.kind === "container") return "group";
18
- for (let n of t) if (n.matches(e.data)) return n.name;
19
- return "unknown";
20
- }
21
- function w(e) {
22
- return !("kind" in e);
23
- }
24
- function T(e) {
25
- let t = [], n = [], r = (e, t) => {
26
- for (let [n, i] of Object.entries(e.children)) w(i) ? r(i, t) : t.push({
27
- path: n,
28
- leaf: i
29
- });
30
- };
31
- for (let [i, a] of Object.entries(e.children)) if (w(a)) {
32
- let e = [];
33
- r(a, e), t.push({
34
- key: i,
35
- name: a.name,
36
- rows: E(e)
37
- });
38
- } else n.push({
39
- path: i,
40
- leaf: a
41
- });
42
- return n.length > 0 && t.unshift({
43
- key: "",
44
- name: "",
45
- rows: E(n)
46
- }), t;
47
- }
48
- function E(e) {
49
- let t = [];
50
- for (let n of e) {
51
- let e = n.leaf.pair, r = t[t.length - 1];
52
- e !== void 0 && r !== void 0 && r.label === e ? r.leaves.push(n) : t.push({
53
- label: e ?? n.leaf.name,
54
- leaves: [n]
55
- });
56
- }
57
- return t;
58
- }
59
- function D(e, t) {
60
- let n = [...new Set(e)];
61
- if (n.length === 0) return [];
62
- let r = new Map(t.map((e) => [e.name, e])), i = n.map((e) => r.get(e)?.schema);
63
- if (i.some((e) => e === void 0)) return [];
64
- let [a, ...o] = i, s = T(a);
65
- if (o.length === 0) return s;
66
- let c = (e) => `${e.path}\0${e.leaf.kind}`, l = o.map((e) => new Set(T(e).flatMap((e) => e.rows).flatMap((e) => e.leaves).map(c))), u = (e) => l.every((t) => t.has(c(e)));
67
- return s.map((e) => ({
68
- ...e,
69
- rows: e.rows.map((e) => ({
70
- ...e,
71
- leaves: e.leaves.filter(u)
72
- })).filter((e) => e.leaves.length > 0)
73
- })).filter((e) => e.rows.length > 0);
74
- }
75
- function O(e, t) {
76
- let n = t.split(".");
77
- if (n.length < 2) return;
78
- let r = n[0], i = r === "pose" ? e.pose : r === "data" ? e.data : void 0;
79
- for (let e = 1; e < n.length; e++) {
80
- if (typeof i != "object" || !i) return;
81
- i = i[n[e]];
82
- }
83
- return i;
84
- }
85
- function k(e, t, n) {
86
- let [r, ...i] = t;
87
- if (i.length === 0) return Array.isArray(e) ? Object.assign([...e], { [r]: n }) : {
88
- ...e,
89
- [r]: n
90
- };
91
- let a = e[r], o = k(Array.isArray(a) ? [...a] : typeof a == "object" && a ? { ...a } : {}, i, n);
92
- return Array.isArray(e) ? Object.assign([...e], { [r]: o }) : {
93
- ...e,
94
- [r]: o
95
- };
96
- }
97
- function A(e, t) {
98
- let n, r = !0;
99
- for (let i of e) {
100
- let e = O(i, t);
101
- if (r) n = e, r = !1;
102
- else if (!Object.is(e, n)) return _;
103
- }
104
- return n;
105
- }
106
- function j(e) {
107
- let t = /* @__PURE__ */ new Map();
108
- for (let n of e) t.set(n, (t.get(n) ?? 0) + 1);
109
- return [...t.entries()].map(([e, t]) => t > 1 ? `${e} ×${t}` : e).join(" · ");
110
- }
111
- var M = {
112
- root: "_root_q9h3j_1",
113
- header: "_header_q9h3j_8",
114
- kind: "_kind_q9h3j_16",
115
- breakdown: "_breakdown_q9h3j_21",
116
- section: "_section_q9h3j_26",
117
- sectionTitle: "_sectionTitle_q9h3j_35",
118
- row: "_row_q9h3j_44",
119
- rowLabel: "_rowLabel_q9h3j_52",
120
- rowControls: "_rowControls_q9h3j_56",
121
- namedField: "_namedField_q9h3j_66",
122
- blockRow: "_blockRow_q9h3j_78",
123
- toggle: "_toggle_q9h3j_89",
124
- flagToggle: "_flagToggle_q9h3j_111",
125
- number: "_number_q9h3j_115",
126
- select: "_select_q9h3j_116",
127
- unitSuffix: "_unitSuffix_q9h3j_120",
128
- mixedSwitch: "_mixedSwitch_q9h3j_126",
129
- unrenderable: "_unrenderable_q9h3j_130",
130
- objectLeaf: "_objectLeaf_q9h3j_137",
131
- objectGroup: "_objectGroup_q9h3j_146",
132
- slider: "_slider_q9h3j_153",
133
- sliderReadout: "_sliderReadout_q9h3j_157"
134
- }, N = (e) => e.length === 0 ? e : e[0].toUpperCase() + e.slice(1);
135
- function P(e) {
136
- let { scene: t, selection: n, properties: r, routing: i, renderers: a, kindLabel: o = N, emptyState: s = null, className: c } = e;
137
- S(t.subscribe, t.getVersion, t.getVersion);
138
- let l = n.current.map((e) => t.get(v(e))).filter((e) => e != null), u = l.map((e) => C(e, i)), d = l.map((e) => e.id).join(","), f = D(u, r);
139
- if (l.length === 0) return /* @__PURE__ */ h("div", {
140
- className: [M.root, c].filter(Boolean).join(" "),
141
- children: s
142
- });
143
- let p = (e, r) => {
144
- let [i, ...a] = e.path.split(".");
145
- if (a.length === 0) return;
146
- let o = n.current.map(v);
147
- t.batch(`Edit ${e.leaf.name}`, () => {
148
- for (let e of o) {
149
- let n = t.get(e);
150
- n && (i === "pose" ? t.setPose(e, k(n.pose, a, r)) : i === "data" && t.update(e, { data: k(n.data, a, r) }));
151
- }
152
- });
153
- };
154
- return /* @__PURE__ */ g("div", {
155
- className: [M.root, c].filter(Boolean).join(" "),
156
- children: [/* @__PURE__ */ h("header", {
157
- className: M.header,
158
- children: l.length === 1 ? /* @__PURE__ */ h("span", {
159
- className: M.kind,
160
- children: o(u[0])
161
- }) : /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ g("span", {
162
- className: M.kind,
163
- children: [l.length, " selected"]
164
- }), /* @__PURE__ */ h("span", {
165
- className: M.breakdown,
166
- children: j(u)
167
- })] })
168
- }), f.map((e) => {
169
- let t = e.rows.map((e) => ({
170
- row: e,
171
- controls: L(e.leaves.map((t) => F(t, e.leaves.length > 1 ? `${e.label} ${t.leaf.name}` : t.leaf.name, l, a, p, d)), a)
172
- })).filter(({ controls: e }) => e.length > 0);
173
- return t.length === 0 ? null : /* @__PURE__ */ g("section", {
174
- className: M.section,
175
- children: [e.name !== "" && /* @__PURE__ */ h("h3", {
176
- className: M.sectionTitle,
177
- children: e.name
178
- }), t.map(({ row: t, controls: n }) => t.leaves.length === 1 && t.leaves[0].leaf.block ? /* @__PURE__ */ g("div", { children: [e.name === "" && t.leaves[0].leaf.kind !== "object" && /* @__PURE__ */ h("h4", {
179
- className: M.sectionTitle,
180
- title: t.leaves[0].leaf.description,
181
- children: t.leaves[0].leaf.name
182
- }), n[0].content] }, t.leaves[0].path) : /* @__PURE__ */ g("div", {
183
- className: M.row,
184
- children: [/* @__PURE__ */ h("span", {
185
- className: M.rowLabel,
186
- title: t.leaves[0].leaf.description,
187
- children: t.label
188
- }), /* @__PURE__ */ h("span", {
189
- className: M.rowControls,
190
- children: n.map(({ key: e, content: t }) => /* @__PURE__ */ h(b, { children: t }, e))
191
- })]
192
- }, t.leaves[0].path))]
193
- }, e.key);
194
- })]
195
- });
196
- }
197
- function F(e, t, n, r, i, a) {
198
- let { path: o, leaf: s } = e, c = A(n, o), l = c === _, u = {
199
- path: o,
200
- pref: s,
201
- value: l ? void 0 : c,
202
- mixed: l,
203
- unset: !l && c === void 0,
204
- setValue: (t) => i(e, t),
205
- valueAt: (e) => {
206
- let t = A(n, e);
207
- return t === _ ? {
208
- value: void 0,
209
- mixed: !0
210
- } : {
211
- value: t,
212
- mixed: !1
213
- };
214
- }
215
- };
216
- return {
217
- key: o,
218
- leaf: s,
219
- ctx: u,
220
- ariaLabel: t,
221
- render: () => {
222
- let e = r?.[o] ?? r?.[s.kind];
223
- return e ? e(u) : z(u, t, r, a);
224
- }
225
- };
226
- }
227
- function I(e, t) {
228
- let { leaf: n } = e;
229
- return n.kind === "boolean" && n.control === "toggle" && n.pair !== void 0 && t?.[e.ctx.path] === void 0 && t?.[n.kind] === void 0;
230
- }
231
- function L(e, t) {
232
- let n = [];
233
- for (let r = 0; r < e.length;) {
234
- let i = e[r];
235
- if (!I(i, t)) {
236
- let e = i.render();
237
- e != null && n.push({
238
- key: i.key,
239
- leaf: i.leaf,
240
- block: i.leaf.block === !0,
241
- content: e
242
- }), r += 1;
243
- continue;
244
- }
245
- let a = r + 1;
246
- for (; a < e.length && I(e[a], t) && e[a].leaf.pair === i.leaf.pair;) a += 1;
247
- let o = e.slice(r, a);
248
- n.push({
249
- key: i.key,
250
- leaf: i.leaf,
251
- block: o.every((e) => e.leaf.block === !0),
252
- content: /* @__PURE__ */ h(R, {
253
- run: o,
254
- ariaLabel: i.leaf.pair
255
- })
256
- }), r = a;
257
- }
258
- return n;
259
- }
260
- function R({ run: r, ariaLabel: i }) {
261
- let a = r.filter((e) => e.ctx.value === !0).map((e) => e.key);
262
- return /* @__PURE__ */ h(n, {
263
- mode: "multiple",
264
- size: "sm",
265
- variant: "flat",
266
- className: M.flagToggle,
267
- ariaLabel: i,
268
- items: r.map((n) => {
269
- let r = n.leaf;
270
- return {
271
- value: n.key,
272
- label: r.icon && r.icon in e ? /* @__PURE__ */ h(t, {
273
- name: r.icon,
274
- size: 14
275
- }) : r.short ?? r.name.slice(0, 1),
276
- ariaLabel: n.ariaLabel
277
- };
278
- }),
279
- value: a,
280
- mixedValues: r.filter((e) => e.ctx.mixed).map((e) => e.key),
281
- onChange: (e) => {
282
- for (let t of r) {
283
- let n = e.includes(t.key);
284
- n !== a.includes(t.key) && t.ctx.setValue(n);
285
- }
286
- }
287
- });
288
- }
289
- function z(c, _, v, b = "", x = !1) {
290
- let { pref: S, value: C, mixed: w, unset: T, setValue: E } = c;
291
- if (S.kind === "font-family") {
292
- let e = c.valueAt("data.style.fontWeight"), t = c.valueAt("data.style.fontStyle");
293
- return /* @__PURE__ */ h(s, {
294
- className: M.select,
295
- value: w || typeof C != "string" ? void 0 : C,
296
- mixed: w,
297
- onChange: E,
298
- weight: typeof e.value == "number" ? e.value : void 0,
299
- fontStyle: t.value === "italic" ? "italic" : void 0,
300
- "aria-label": _
301
- });
302
- }
303
- if (!y(S)) return /* @__PURE__ */ g("span", {
304
- className: M.unrenderable,
305
- children: [
306
- "(",
307
- S.kind,
308
- ": no renderer)"
309
- ]
310
- });
311
- switch (S.kind) {
312
- case "number": {
313
- let e = S, t = typeof C == "number" && Number.isFinite(C) ? C : void 0, n = t === void 0 ? NaN : e.unit ? e.unit.toDisplay(t) : t, i = f(e);
314
- if (e.control === "slider") {
315
- let a = i.min ?? 0, o = i.max ?? 100, s = !w && t !== void 0;
316
- return /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(r, {
317
- min: a,
318
- max: o,
319
- step: i.step,
320
- value: s ? Math.min(Math.max(n, a), o) : a,
321
- disabled: w,
322
- className: M.slider,
323
- "aria-label": _,
324
- onChange: (t) => {
325
- let n = Number(t.target.value);
326
- E(e.unit ? e.unit.fromDisplay(n) : n);
327
- }
328
- }), /* @__PURE__ */ h("span", {
329
- className: M.sliderReadout,
330
- "aria-hidden": "true",
331
- children: s ? `${n}${e.unit?.suffix ?? ""}` : "—"
332
- })] });
333
- }
334
- let a = e.unit, o = a ? /* @__PURE__ */ h(u, {
335
- className: M.number,
336
- value: w || t === void 0 ? NaN : n,
337
- placeholder: w ? "Mixed" : void 0,
338
- minValue: i.min,
339
- maxValue: i.max,
340
- step: i.step,
341
- accepts: p(a),
342
- "aria-label": _,
343
- onChange: (e) => E(a.fromDisplay(e))
344
- }) : /* @__PURE__ */ h(l, {
345
- className: M.number,
346
- value: w || t === void 0 ? NaN : n,
347
- placeholder: w ? "Mixed" : void 0,
348
- minValue: i.min,
349
- maxValue: i.max,
350
- step: i.step,
351
- hideSteppers: !0,
352
- "aria-label": _,
353
- onChange: (e) => {
354
- Number.isNaN(e) || E(e);
355
- }
356
- });
357
- return a?.suffix === void 0 ? o : /* @__PURE__ */ g(m, { children: [o, /* @__PURE__ */ h("span", {
358
- className: M.unitSuffix,
359
- "aria-hidden": "true",
360
- children: a.suffix
361
- })] });
362
- }
363
- case "string": return /* @__PURE__ */ h(V, {
364
- text: w ? void 0 : typeof C == "string" ? C : "",
365
- placeholder: w ? "Mixed" : void 0,
366
- ariaLabel: _,
367
- onCommit: E
368
- });
369
- case "boolean": {
370
- let r = S;
371
- if (r.control === "toggle") return /* @__PURE__ */ h(n, {
372
- mode: "multiple",
373
- size: "sm",
374
- variant: "flat",
375
- className: M.flagToggle,
376
- ariaLabel: _,
377
- items: [{
378
- value: c.path,
379
- label: r.icon && r.icon in e ? /* @__PURE__ */ h(t, {
380
- name: r.icon,
381
- size: 14
382
- }) : r.short ?? r.name.slice(0, 1),
383
- ariaLabel: _
384
- }],
385
- value: C === !0 ? [c.path] : [],
386
- mixedValues: w ? [c.path] : [],
387
- onChange: (e) => E(e.includes(c.path))
388
- });
389
- let i = /* @__PURE__ */ h(d, {
390
- isSelected: !!C,
391
- onChange: E,
392
- "aria-label": _
393
- });
394
- return !w && !T ? i : /* @__PURE__ */ h("span", {
395
- className: M.mixedSwitch,
396
- title: w ? "Mixed" : "Not set",
397
- children: i
398
- });
399
- }
400
- case "enum": {
401
- let r = S, i = r.encoding ? w ? void 0 : r.encoding.read(C, c.siblings) : w || T ? void 0 : typeof C == "string" ? C : r.default, a = (e) => E(r.encoding ? r.encoding.write(e, c.siblings) : e);
402
- return r.control === "toggle" ? /* @__PURE__ */ h(n, {
403
- size: "sm",
404
- variant: "flat",
405
- className: M.toggle,
406
- ariaLabel: _,
407
- items: r.options.map((n) => ({
408
- value: n.value,
409
- label: n.icon && n.icon in e ? /* @__PURE__ */ h(t, {
410
- name: n.icon,
411
- size: 14
412
- }) : n.short ?? n.label,
413
- ariaLabel: n.label,
414
- disabled: n.disabled
415
- })),
416
- value: i ?? null,
417
- onChange: (e) => {
418
- e !== null && a(e);
419
- }
420
- }) : /* @__PURE__ */ h(o, {
421
- className: M.select,
422
- options: r.options.map((e) => ({
423
- value: e.value,
424
- label: e.label,
425
- isDisabled: e.disabled
426
- })),
427
- selectedKey: i ?? null,
428
- placeholder: w ? "Mixed" : T ? "—" : void 0,
429
- onSelectionChange: a,
430
- "aria-label": _
431
- });
432
- }
433
- case "color": {
434
- let e = S;
435
- return /* @__PURE__ */ h(i, {
436
- value: w ? void 0 : typeof C == "string" ? C : e.default,
437
- mixed: w,
438
- alpha: e.alpha,
439
- onChange: E,
440
- "aria-label": _
441
- });
442
- }
443
- case "paint": return /* @__PURE__ */ h(a, {
444
- value: C === null ? null : C ?? (w ? void 0 : S.default),
445
- mixed: w,
446
- unset: T,
447
- allowNone: !x,
448
- onChange: E,
449
- "aria-label": _
450
- }, b);
451
- case "object": return /* @__PURE__ */ h(B, {
452
- ctx: c,
453
- renderers: v,
454
- selectionKey: b
455
- });
456
- default: throw Error(`SelectionPanel: no control for built-in pref kind "${S.kind}"`);
457
- }
458
- }
459
- function B({ ctx: n, renderers: r, selectionKey: i = "" }) {
460
- let a = n.pref, o = typeof n.value == "object" && n.value !== null ? n.value : void 0, s = Object.values(a.children).every((e) => !("kind" in e)), c = (s, l) => {
461
- let u = [], d = (e) => typeof e == "object" && !!e && "controls" in e, f = [], p = () => {
462
- for (let { key: e, leaf: t, block: n, content: i } of L(f, r)) {
463
- let r = u[u.length - 1];
464
- if (t.pair !== void 0 && d(r) && r.pair === t.pair) {
465
- r.controls.push(/* @__PURE__ */ h(b, { children: i }, e)), r.block &&= n;
466
- continue;
467
- }
468
- u.push({
469
- key: e,
470
- pair: t.pair,
471
- label: t.pair ?? t.name,
472
- title: t.description,
473
- block: n,
474
- controls: [/* @__PURE__ */ h(b, { children: i }, e)]
475
- });
476
- }
477
- f = [];
478
- };
479
- for (let [d, m] of Object.entries(s)) {
480
- if (!("kind" in m)) {
481
- let e = m.name !== "", t = c(m.children, e);
482
- if (t.length === 0) continue;
483
- p(), u.push(/* @__PURE__ */ g("div", {
484
- className: e && l ? M.objectGroup : void 0,
485
- children: [e && /* @__PURE__ */ h("h5", {
486
- className: M.sectionTitle,
487
- children: m.name
488
- }), t]
489
- }, `group:${d}`));
490
- continue;
491
- }
492
- let s = `${n.path}.${d}`, _ = {
493
- path: s,
494
- pref: m,
495
- value: o?.[d],
496
- mixed: n.mixed,
497
- unset: !n.mixed && o?.[d] === void 0,
498
- siblings: o,
499
- valueAt: n.valueAt,
500
- setValue: (e) => {
501
- let t = o ?? a.fromScalar?.(n.value) ?? (typeof a.default == "object" && a.default !== null ? { ...a.default } : {});
502
- if (e === void 0) {
503
- let { [d]: e, ...r } = t;
504
- n.setValue(r);
505
- return;
506
- }
507
- n.setValue({
508
- ...t,
509
- [d]: e
510
- });
511
- }
512
- };
513
- f.push({
514
- key: s,
515
- leaf: m,
516
- ctx: _,
517
- ariaLabel: m.name,
518
- render: () => {
519
- let n = r?.[s] ?? r?.[m.kind], a = n ? n(_) : z(_, m.name, r, i, !0);
520
- return a == null ? null : (m.pair !== void 0 || m.block === !0) && m.icon && m.icon in e ? /* @__PURE__ */ g("span", {
521
- className: M.namedField,
522
- children: [/* @__PURE__ */ h(t, {
523
- name: m.icon,
524
- size: 14
525
- }), a]
526
- }) : a;
527
- }
528
- });
529
- }
530
- return p(), u.map((e) => typeof e == "object" && e && "controls" in e ? e.block ? /* @__PURE__ */ h("div", {
531
- className: `${M.rowControls} ${M.blockRow}`,
532
- title: e.title,
533
- children: e.controls
534
- }, e.key) : /* @__PURE__ */ g("div", {
535
- className: M.row,
536
- children: [/* @__PURE__ */ h("span", {
537
- className: M.rowLabel,
538
- title: e.title,
539
- children: e.label
540
- }), /* @__PURE__ */ h("span", {
541
- className: M.rowControls,
542
- children: e.controls
543
- })]
544
- }, e.key) : e);
545
- }, l = c(a.children, !s);
546
- return l.length === 0 ? null : /* @__PURE__ */ g("div", {
547
- className: M.objectLeaf,
548
- children: [!s && /* @__PURE__ */ h("h4", {
549
- className: M.sectionTitle,
550
- children: a.name
551
- }), l]
552
- });
553
- }
554
- function V({ text: e, placeholder: t, ariaLabel: n, onCommit: r }) {
555
- let [i, a] = x(null);
556
- return /* @__PURE__ */ h(c, {
557
- value: i ?? e ?? "",
558
- placeholder: t,
559
- "aria-label": n,
560
- onChange: a,
561
- onBlur: () => {
562
- i !== null && i !== e && r(i), a(null);
563
- },
564
- onKeyDown: (e) => {
565
- e.key === "Enter" && e.target.blur();
566
- }
567
- });
568
- }
569
- //#endregion
570
- export { D as a, k as c, C as i, _ as n, j as o, A as r, O as s, P as t };
571
-
572
- //# sourceMappingURL=SelectionPanel-CbyUT3Dh.js.map