@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,45 +1,46 @@
1
- import { H as e, R as t, i as n } from "./icons-BV27dhKB.js";
2
- import { r } from "./Plot2D-CVZwQpWJ.js";
3
- import { a as i, i as a, n as o, t as s } from "./createKeyframeLayer-AL4jP0EX.js";
4
- import { t as c } from "./DetentSlider-CYicfnKr.js";
1
+ import { H as e, R as t, i as n } from "./icons-DFLytcui.js";
2
+ import { r } from "./Plot2D-CXf_f7QD.js";
3
+ import { i, n as a, t as o } from "./createKeyframeLayer-DKtO0Sw_.js";
4
+ import { t as s } from "./snap-CEjuWOhN.js";
5
+ import { t as c } from "./DetentSlider-CAubVX0J.js";
5
6
  import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
6
7
  import { EASINGS as f, openPointerSession as p, resolveEasing as m, sampleTrack as h, useVisibleRaf as g } from "@weasel-js/core";
7
8
  import { useCallback as _, useEffect as v, useLayoutEffect as y, useMemo as b, useReducer as x, useRef as S, useState as C } from "react";
8
9
  var w = {
9
- ruler: "_ruler_1s0c6_1",
10
- tick: "_tick_1s0c6_11",
11
- playhead: "_playhead_1s0c6_29",
12
- lane: "_lane_1s0c6_38",
13
- laneLabel: "_laneLabel_1s0c6_45",
14
- disclosure: "_disclosure_1s0c6_65",
15
- disclosureIcon: "_disclosureIcon_1s0c6_66",
16
- disclosureCollapsed: "_disclosureCollapsed_1s0c6_67",
17
- laneTrack: "_laneTrack_1s0c6_69",
18
- key: "_key_1s0c6_76",
19
- eventMark: "_eventMark_1s0c6_76",
20
- keyGhost: "_keyGhost_1s0c6_96",
21
- eventGhost: "_eventGhost_1s0c6_96",
22
- graphHost: "_graphHost_1s0c6_113",
23
- graph: "_graph_1s0c6_113",
24
- nestedBar: "_nestedBar_1s0c6_132",
25
- transport: "_transport_1s0c6_141",
26
- transportButton: "_transportButton_1s0c6_150",
27
- transportRow: "_transportRow_1s0c6_176",
28
- time: "_time_1s0c6_191",
29
- rate: "_rate_1s0c6_192",
30
- rateSlider: "_rateSlider_1s0c6_193",
31
- rateReadout: "_rateReadout_1s0c6_197",
32
- root: "_root_1s0c6_203",
33
- label: "_label_1s0c6_218",
34
- body: "_body_1s0c6_220",
35
- gutter: "_gutter_1s0c6_46",
36
- rulerWrap: "_rulerWrap_1s0c6_222",
37
- lanes: "_lanes_1s0c6_224",
38
- inspector: "_inspector_1s0c6_231",
39
- segment: "_segment_1s0c6_240",
40
- easingPicker: "_easingPicker_1s0c6_250",
41
- easingLabel: "_easingLabel_1s0c6_251",
42
- easingPreview: "_easingPreview_1s0c6_253"
10
+ ruler: "_ruler_yy4iy_1",
11
+ tick: "_tick_yy4iy_11",
12
+ playhead: "_playhead_yy4iy_29",
13
+ lane: "_lane_yy4iy_38",
14
+ laneLabel: "_laneLabel_yy4iy_45",
15
+ disclosure: "_disclosure_yy4iy_65",
16
+ disclosureIcon: "_disclosureIcon_yy4iy_66",
17
+ disclosureCollapsed: "_disclosureCollapsed_yy4iy_67",
18
+ laneTrack: "_laneTrack_yy4iy_69",
19
+ key: "_key_yy4iy_76",
20
+ eventMark: "_eventMark_yy4iy_76",
21
+ keyGhost: "_keyGhost_yy4iy_96",
22
+ eventGhost: "_eventGhost_yy4iy_96",
23
+ graphHost: "_graphHost_yy4iy_113",
24
+ graph: "_graph_yy4iy_113",
25
+ nestedBar: "_nestedBar_yy4iy_132",
26
+ transport: "_transport_yy4iy_141",
27
+ transportButton: "_transportButton_yy4iy_150",
28
+ transportRow: "_transportRow_yy4iy_176",
29
+ time: "_time_yy4iy_194",
30
+ rate: "_rate_yy4iy_200",
31
+ rateSlider: "_rateSlider_yy4iy_201",
32
+ rateReadout: "_rateReadout_yy4iy_205",
33
+ root: "_root_yy4iy_211",
34
+ label: "_label_yy4iy_226",
35
+ body: "_body_yy4iy_228",
36
+ gutter: "_gutter_yy4iy_46",
37
+ rulerWrap: "_rulerWrap_yy4iy_230",
38
+ lanes: "_lanes_yy4iy_232",
39
+ inspector: "_inspector_yy4iy_239",
40
+ segment: "_segment_yy4iy_248",
41
+ easingPicker: "_easingPicker_yy4iy_258",
42
+ easingLabel: "_easingLabel_yy4iy_259",
43
+ easingPreview: "_easingPreview_yy4iy_261"
43
44
  };
44
45
  //#endregion
45
46
  //#region src/components/Timeline/easingSpec.ts
@@ -228,166 +229,14 @@ function V(e, t, n) {
228
229
  return o;
229
230
  }
230
231
  //#endregion
231
- //#region src/components/Timeline/lanes.ts
232
- function ne(e) {
233
- if (e.kind !== "sampled") return !1;
234
- let t = e.keys;
235
- return t.length > 0 && t.every((e) => typeof e.value == "number");
236
- }
237
- function re(e, t) {
238
- let n = [], r = (e, i, a, o) => {
239
- e.forEach((e, s) => {
240
- let c = [...i, s], l = c.join(".");
241
- n.push({
242
- key: l,
243
- path: c,
244
- track: e,
245
- label: e.label ?? `${e.kind} ${s}`,
246
- depth: a,
247
- offset: o,
248
- kind: e.kind,
249
- numeric: ne(e)
250
- }), e.kind === "timeline" && t.has(l) && r(e.timeline.tracks, c, a + 1, o + e.at);
251
- });
252
- };
253
- return r(e, [], 0, 0), n;
254
- }
255
- function H(e, t) {
256
- let n = e, r;
257
- for (let e of t) {
258
- if (r = n[e], !r) return;
259
- n = r.kind === "timeline" ? r.timeline.tracks : [];
260
- }
261
- return r;
262
- }
263
- //#endregion
264
- //#region src/components/Timeline/keys.ts
265
- function U(e, t) {
266
- return e.length === t.length && e.every((e, n) => e === t[n]);
267
- }
268
- function W(e, t) {
269
- return {
270
- ...e,
271
- keys: t
272
- };
273
- }
274
- function ie(e, t) {
275
- return {
276
- ...e,
277
- events: t
278
- };
279
- }
280
- function G(e, t, n) {
281
- let r = e.slice(), [i, ...a] = t;
282
- if (a.length === 0) return r[i] = n, r;
283
- let o = r[i];
284
- if (o?.kind !== "timeline") return r;
285
- let s = o;
286
- return r[i] = {
287
- ...s,
288
- timeline: {
289
- ...s.timeline,
290
- tracks: G(s.timeline.tracks, a, n)
291
- }
292
- }, r;
293
- }
294
- function K(e, t, n) {
295
- let r = H(e, t.trackPath), i = Math.max(0, n);
296
- if (r?.kind === "sampled") {
297
- let n = r, a = {
298
- ...n.keys[t.keyIndex],
299
- t: i
300
- }, o = n.keys.filter((e, n) => n !== t.keyIndex), s = o.findIndex((e) => e.t > i), c = s === -1 ? o.length : s;
301
- return o.splice(c, 0, a), {
302
- tracks: G(e, t.trackPath, W(r, o)),
303
- selection: {
304
- trackPath: t.trackPath,
305
- keyIndex: c
306
- }
307
- };
308
- }
309
- if (r?.kind === "event") {
310
- let n = r, a = {
311
- ...n.events[t.keyIndex],
312
- t: i
313
- }, o = n.events.filter((e, n) => n !== t.keyIndex), s = o.findIndex((e) => e.t > i), c = s === -1 ? o.length : s;
314
- return o.splice(c, 0, a), {
315
- tracks: G(e, t.trackPath, ie(r, o)),
316
- selection: {
317
- trackPath: t.trackPath,
318
- keyIndex: c
319
- }
320
- };
321
- }
322
- return {
323
- tracks: e.slice(),
324
- selection: t
325
- };
326
- }
327
- function ae(e, t, n) {
328
- let r = H(e, t);
329
- if (r?.kind !== "sampled") return {
330
- tracks: e.slice(),
331
- selection: null
332
- };
333
- let i = r, a = Math.max(0, n), o = i.keys.length === 0 ? 0 : h(i, a), s = i.keys.slice(), c = s.findIndex((e) => e.t > a), l = c === -1 ? s.length : c;
334
- return s.splice(l, 0, {
335
- t: a,
336
- value: o
337
- }), {
338
- tracks: G(e, t, W(r, s)),
339
- selection: {
340
- trackPath: t,
341
- keyIndex: l
342
- }
343
- };
344
- }
345
- function oe(e, t) {
346
- let n = H(e, t.trackPath);
347
- if (n?.kind !== "sampled") return {
348
- tracks: e.slice(),
349
- selection: t
350
- };
351
- let r = n.keys.filter((e, n) => n !== t.keyIndex);
352
- return {
353
- tracks: G(e, t.trackPath, W(n, r)),
354
- selection: r.length === 0 ? null : {
355
- trackPath: t.trackPath,
356
- keyIndex: Math.max(0, t.keyIndex - 1)
357
- }
358
- };
359
- }
360
- function q(e, t, n) {
361
- let r = H(e, t.trackPath);
362
- if (r?.kind !== "sampled") return e.slice();
363
- let i = r.keys.slice(), { easing: a, ...o } = i[t.keyIndex];
364
- return i[t.keyIndex] = n === void 0 ? o : {
365
- ...o,
366
- easing: n
367
- }, G(e, t.trackPath, W(r, i));
368
- }
369
- function J(e, t, n) {
370
- let r = H(e, t);
371
- return r?.kind === "sampled" ? G(e, t, W(r, n.slice())) : e.slice();
372
- }
373
- function se(e, t, n) {
374
- let r = H(e, t.trackPath);
375
- if (r?.kind !== "sampled") return e.slice();
376
- let i = r.keys.slice();
377
- return i[t.keyIndex] = {
378
- ...i[t.keyIndex],
379
- value: n
380
- }, G(e, t.trackPath, W(r, i));
381
- }
382
- //#endregion
383
232
  //#region src/components/Timeline/LaneGraph.tsx
384
- var Y = 8, ce = 10;
385
- function le(e) {
386
- let t = e.map((e) => e.value), n = Math.min(...t), r = Math.max(...t) - n || 1, i = r * Y / (100 - 2 * Y);
233
+ var H = 8, ne = 10;
234
+ function re(e) {
235
+ let t = e.map((e) => e.value), n = Math.min(...t), r = Math.max(...t) - n || 1, i = r * H / (100 - 2 * H);
387
236
  return [n - i, n + r + i];
388
237
  }
389
- function ue(e) {
390
- let { keys: t, label: n, window: r, offset: a, snapTimes: c, selection: l, selectedSegment: d, onSelect: f, onSelectSegment: p, onKeysInput: m, onKeysCommit: h } = e, g = S(null), [_, v] = C({
238
+ function ie(e) {
239
+ let { keys: t, label: n, window: r, offset: s, snapTimes: c, selection: l, selectedSegment: d, onSelect: f, onSelectSegment: p, onKeysInput: m, onKeysCommit: h } = e, g = S(null), [_, v] = C({
391
240
  width: 0,
392
241
  height: 0
393
242
  });
@@ -405,17 +254,17 @@ function ue(e) {
405
254
  let n = new ResizeObserver(t);
406
255
  return n.observe(e), () => n.disconnect();
407
256
  }, []);
408
- let x = b(() => o({
257
+ let x = b(() => a({
409
258
  id: "keys",
410
259
  label: n,
411
260
  formatX: (e) => `${Math.round(e)} ms`,
412
- snapX: c.map((e) => e - a),
261
+ snapX: c.map((e) => e - s),
413
262
  xClamp: [0, Infinity],
414
- step: { x: ce }
263
+ step: { x: ne }
415
264
  }), [
416
265
  n,
417
266
  c,
418
- a
267
+ s
419
268
  ]), T = b(() => ({
420
269
  keys: t,
421
270
  selectedKey: l,
@@ -437,13 +286,13 @@ function ue(e) {
437
286
  return;
438
287
  }
439
288
  if (D(n), n.drag.kind !== "key") return;
440
- let i = s(n).keys;
289
+ let i = o(n).keys;
441
290
  i !== n.keys && m?.(i);
442
291
  }, M = (e, t, n) => {
443
292
  D(null);
444
293
  let r = t;
445
294
  r.keys !== n.keys && h(r.keys);
446
- }, [N, P] = le(O.keys), F = _.width > 0 ? V(r, _.width, 64) : [];
295
+ }, [N, P] = re(O.keys), F = _.width > 0 ? V(r, _.width, 64) : [];
447
296
  return /* @__PURE__ */ u("div", {
448
297
  ref: g,
449
298
  className: w.graphHost,
@@ -455,12 +304,12 @@ function ue(e) {
455
304
  onLayerCommit: M,
456
305
  width: _.width,
457
306
  height: _.height,
458
- xRange: [r.from - a, r.to - a],
307
+ xRange: [r.from - s, r.to - s],
459
308
  yRange: [N, P],
460
309
  grid: !1,
461
310
  axes: !1,
462
311
  xTicks: {
463
- values: F.map((e) => e - a),
312
+ values: F.map((e) => e - s),
464
313
  labels: !1
465
314
  },
466
315
  yTicks: {
@@ -473,12 +322,12 @@ function ue(e) {
473
322
  }
474
323
  //#endregion
475
324
  //#region src/components/Timeline/Lane.tsx
476
- var de = 6, fe = 10;
477
- function pe(e) {
325
+ var ae = 10;
326
+ function oe(e) {
478
327
  return e.kind === "sampled" ? e.track.keys.map((e) => e.t) : e.kind === "event" ? e.track.events.map((e) => e.t) : [];
479
328
  }
480
- function me(e) {
481
- let { row: t, window: r, mode: i, selection: o, onSelect: s, onKeyInput: c, onKeyCommit: f, onInsert: m, onToggleExpand: h, expanded: g, snapTimes: _, selectedSegment: y = null, onSelectSegment: b, onKeysInput: x, onKeysCommit: T } = e, E = S(null), D = S(null);
329
+ function se(e) {
330
+ let { row: t, window: r, mode: i, selection: a, onSelect: o, onKeyInput: c, onKeyCommit: f, onInsert: m, onToggleExpand: h, expanded: g, snapTimes: _, selectedSegment: y = null, onSelectSegment: b, onKeysInput: x, onKeysCommit: T } = e, E = S(null), D = S(null);
482
331
  v(() => () => {
483
332
  D.current?.cancel();
484
333
  }, []);
@@ -487,13 +336,13 @@ function me(e) {
487
336
  return n ? F(r, n.width).toMs(e - n.left) - t.offset : r.from;
488
337
  }, M = () => {
489
338
  let e = F(r, E.current?.getBoundingClientRect().width ?? 0);
490
- return e.toMs(de) - e.toMs(0);
339
+ return e.toMs(6) - e.toMs(0);
491
340
  }, N = i === "graph" && t.numeric, P = t.kind === "sampled" ? t.track.keys : [], I = (e) => (n) => {
492
341
  if (n.button !== 0) return;
493
- n.stopPropagation(), s(e);
342
+ n.stopPropagation(), o(e);
494
343
  let r = (e) => {
495
344
  let n = Math.max(0, j(e.clientX));
496
- return e.altKey ? n : a(n + t.offset, _, M()) - t.offset;
345
+ return e.altKey ? n : s(n + t.offset, _, M()) - t.offset;
497
346
  };
498
347
  k({
499
348
  keyIndex: e,
@@ -515,9 +364,9 @@ function me(e) {
515
364
  onCancel: i
516
365
  }, { capture: !1 });
517
366
  }, R = (e, t) => (n) => {
518
- let r = fe * (n.shiftKey ? 10 : 1);
367
+ let r = ae * (n.shiftKey ? 10 : 1);
519
368
  n.key === "ArrowRight" && (n.preventDefault(), f(e, t + r)), n.key === "ArrowLeft" && (n.preventDefault(), f(e, Math.max(0, t - r)));
520
- }, B = pe(t);
369
+ }, B = oe(t);
521
370
  return /* @__PURE__ */ d("div", {
522
371
  className: w.lane,
523
372
  "data-depth": t.depth,
@@ -547,15 +396,15 @@ function me(e) {
547
396
  onDoubleClick: (e) => {
548
397
  t.kind === "sampled" && m(Math.max(0, j(e.clientX)));
549
398
  },
550
- children: N ? /* @__PURE__ */ u(ue, {
399
+ children: N ? /* @__PURE__ */ u(ie, {
551
400
  keys: P,
552
401
  label: t.label,
553
402
  window: r,
554
403
  offset: t.offset,
555
404
  snapTimes: _,
556
- selection: o,
405
+ selection: a,
557
406
  selectedSegment: y,
558
- onSelect: s,
407
+ onSelect: o,
559
408
  onSelectSegment: b,
560
409
  onKeysInput: x,
561
410
  onKeysCommit: (e) => T?.(e)
@@ -591,7 +440,7 @@ function me(e) {
591
440
  role: "button",
592
441
  tabIndex: 0,
593
442
  "aria-label": `${t.label} key at ${Math.round(e)} ms`,
594
- "aria-current": o === n ? "true" : void 0,
443
+ "aria-current": a === n ? "true" : void 0,
595
444
  "data-testid": t.kind === "event" ? "timeline-event" : "timeline-key",
596
445
  "data-dragging": O?.keyIndex === n ? "true" : void 0,
597
446
  className: t.kind === "event" ? w.eventMark : w.key,
@@ -611,11 +460,11 @@ function me(e) {
611
460
  }
612
461
  //#endregion
613
462
  //#region src/components/Timeline/Ruler.tsx
614
- var he = .0015;
615
- function ge(e) {
463
+ var ce = .0015;
464
+ function le(e) {
616
465
  return e >= 1e3 ? `${(e / 1e3).toFixed(e % 1e3 == 0 ? 0 : 2)}s` : `${Math.round(e)}ms`;
617
466
  }
618
- function _e(e) {
467
+ function ue(e) {
619
468
  let { window: t, bounds: n, playhead: r, onScrub: i, onWindowChange: a } = e, o = S(null), s = S(null);
620
469
  v(() => () => {
621
470
  s.current?.cancel();
@@ -648,7 +497,7 @@ function _e(e) {
648
497
  onCancel: t
649
498
  }, { capture: !1 });
650
499
  }, g = (e) => {
651
- if (e.ctrlKey) a(ee(t, m(e.clientX), Math.exp(e.deltaY * he), n));
500
+ if (e.ctrlKey) a(ee(t, m(e.clientX), Math.exp(e.deltaY * ce), n));
652
501
  else {
653
502
  let r = f(), i = r === 0 ? 0 : (t.to - t.from) / r;
654
503
  a(te(t, e.deltaY * i, n));
@@ -664,7 +513,7 @@ function _e(e) {
664
513
  className: w.tick,
665
514
  "data-testid": "timeline-tick",
666
515
  style: { left: b(e) },
667
- children: ge(e)
516
+ children: le(e)
668
517
  }, e)), /* @__PURE__ */ u("div", {
669
518
  className: w.playhead,
670
519
  "data-testid": "timeline-playhead",
@@ -674,15 +523,15 @@ function _e(e) {
674
523
  }
675
524
  //#endregion
676
525
  //#region src/components/Timeline/Transport.tsx
677
- var X = [
526
+ var U = [
678
527
  .25,
679
528
  .5,
680
529
  1,
681
530
  2,
682
531
  4
683
- ], Z = (e) => `${(e / 1e3).toFixed(2)}s`;
684
- function Q(n) {
685
- let { paused: r, loop: i, rate: a, playhead: o, duration: s, onPlay: l, onPause: f, onLoopChange: p, onRateChange: m } = n, h = i !== !1 && i !== 0, g = X.includes(a) ? X : [...X, a].sort((e, t) => e - t);
532
+ ], W = (e) => `${(e / 1e3).toFixed(2)}s`;
533
+ function G(n) {
534
+ let { paused: r, loop: i, rate: a, playhead: o, duration: s, onPlay: l, onPause: f, onLoopChange: p, onRateChange: m } = n, h = i !== !1 && i !== 0, g = U.includes(a) ? U : [...U, a].sort((e, t) => e - t);
686
535
  return /* @__PURE__ */ d("div", {
687
536
  className: w.transport,
688
537
  children: [
@@ -693,15 +542,6 @@ function Q(n) {
693
542
  onClick: r ? l : f,
694
543
  children: u(r ? e : t, { size: 14 })
695
544
  }),
696
- /* @__PURE__ */ d("span", {
697
- className: w.time,
698
- "data-testid": "timeline-time",
699
- children: [
700
- Z(o),
701
- " / ",
702
- Z(s)
703
- ]
704
- }),
705
545
  /* @__PURE__ */ u("button", {
706
546
  type: "button",
707
547
  role: "switch",
@@ -729,11 +569,172 @@ function Q(n) {
729
569
  children: [a, "x"]
730
570
  })
731
571
  ]
572
+ }),
573
+ /* @__PURE__ */ d("span", {
574
+ className: w.time,
575
+ "data-testid": "timeline-time",
576
+ children: [
577
+ W(o),
578
+ " / ",
579
+ W(s)
580
+ ]
732
581
  })
733
582
  ]
734
583
  });
735
584
  }
736
585
  //#endregion
586
+ //#region src/components/Timeline/lanes.ts
587
+ function de(e) {
588
+ if (e.kind !== "sampled") return !1;
589
+ let t = e.keys;
590
+ return t.length > 0 && t.every((e) => typeof e.value == "number");
591
+ }
592
+ function fe(e, t) {
593
+ let n = [], r = (e, i, a, o) => {
594
+ e.forEach((e, s) => {
595
+ let c = [...i, s], l = c.join(".");
596
+ n.push({
597
+ key: l,
598
+ path: c,
599
+ track: e,
600
+ label: e.label ?? `${e.kind} ${s}`,
601
+ depth: a,
602
+ offset: o,
603
+ kind: e.kind,
604
+ numeric: de(e)
605
+ }), e.kind === "timeline" && t.has(l) && r(e.timeline.tracks, c, a + 1, o + e.at);
606
+ });
607
+ };
608
+ return r(e, [], 0, 0), n;
609
+ }
610
+ function K(e, t) {
611
+ let n = e, r;
612
+ for (let e of t) {
613
+ if (r = n[e], !r) return;
614
+ n = r.kind === "timeline" ? r.timeline.tracks : [];
615
+ }
616
+ return r;
617
+ }
618
+ //#endregion
619
+ //#region src/components/Timeline/keys.ts
620
+ function q(e, t) {
621
+ return e.length === t.length && e.every((e, n) => e === t[n]);
622
+ }
623
+ function J(e, t) {
624
+ return {
625
+ ...e,
626
+ keys: t
627
+ };
628
+ }
629
+ function pe(e, t) {
630
+ return {
631
+ ...e,
632
+ events: t
633
+ };
634
+ }
635
+ function Y(e, t, n) {
636
+ let r = e.slice(), [i, ...a] = t;
637
+ if (a.length === 0) return r[i] = n, r;
638
+ let o = r[i];
639
+ if (o?.kind !== "timeline") return r;
640
+ let s = o;
641
+ return r[i] = {
642
+ ...s,
643
+ timeline: {
644
+ ...s.timeline,
645
+ tracks: Y(s.timeline.tracks, a, n)
646
+ }
647
+ }, r;
648
+ }
649
+ function X(e, t, n) {
650
+ let r = K(e, t.trackPath), i = Math.max(0, n);
651
+ if (r?.kind === "sampled") {
652
+ let n = r, a = {
653
+ ...n.keys[t.keyIndex],
654
+ t: i
655
+ }, o = n.keys.filter((e, n) => n !== t.keyIndex), s = o.findIndex((e) => e.t > i), c = s === -1 ? o.length : s;
656
+ return o.splice(c, 0, a), {
657
+ tracks: Y(e, t.trackPath, J(r, o)),
658
+ selection: {
659
+ trackPath: t.trackPath,
660
+ keyIndex: c
661
+ }
662
+ };
663
+ }
664
+ if (r?.kind === "event") {
665
+ let n = r, a = {
666
+ ...n.events[t.keyIndex],
667
+ t: i
668
+ }, o = n.events.filter((e, n) => n !== t.keyIndex), s = o.findIndex((e) => e.t > i), c = s === -1 ? o.length : s;
669
+ return o.splice(c, 0, a), {
670
+ tracks: Y(e, t.trackPath, pe(r, o)),
671
+ selection: {
672
+ trackPath: t.trackPath,
673
+ keyIndex: c
674
+ }
675
+ };
676
+ }
677
+ return {
678
+ tracks: e.slice(),
679
+ selection: t
680
+ };
681
+ }
682
+ function me(e, t, n) {
683
+ let r = K(e, t);
684
+ if (r?.kind !== "sampled") return {
685
+ tracks: e.slice(),
686
+ selection: null
687
+ };
688
+ let i = r, a = Math.max(0, n), o = i.keys.length === 0 ? 0 : h(i, a), s = i.keys.slice(), c = s.findIndex((e) => e.t > a), l = c === -1 ? s.length : c;
689
+ return s.splice(l, 0, {
690
+ t: a,
691
+ value: o
692
+ }), {
693
+ tracks: Y(e, t, J(r, s)),
694
+ selection: {
695
+ trackPath: t,
696
+ keyIndex: l
697
+ }
698
+ };
699
+ }
700
+ function he(e, t) {
701
+ let n = K(e, t.trackPath);
702
+ if (n?.kind !== "sampled") return {
703
+ tracks: e.slice(),
704
+ selection: t
705
+ };
706
+ let r = n.keys.filter((e, n) => n !== t.keyIndex);
707
+ return {
708
+ tracks: Y(e, t.trackPath, J(n, r)),
709
+ selection: r.length === 0 ? null : {
710
+ trackPath: t.trackPath,
711
+ keyIndex: Math.max(0, t.keyIndex - 1)
712
+ }
713
+ };
714
+ }
715
+ function Z(e, t, n) {
716
+ let r = K(e, t.trackPath);
717
+ if (r?.kind !== "sampled") return e.slice();
718
+ let i = r.keys.slice(), { easing: a, ...o } = i[t.keyIndex];
719
+ return i[t.keyIndex] = n === void 0 ? o : {
720
+ ...o,
721
+ easing: n
722
+ }, Y(e, t.trackPath, J(r, i));
723
+ }
724
+ function Q(e, t, n) {
725
+ let r = K(e, t);
726
+ return r?.kind === "sampled" ? Y(e, t, J(r, n.slice())) : e.slice();
727
+ }
728
+ function ge(e, t, n) {
729
+ let r = K(e, t.trackPath);
730
+ if (r?.kind !== "sampled") return e.slice();
731
+ let i = r.keys.slice();
732
+ return i[t.keyIndex] = {
733
+ ...i[t.keyIndex],
734
+ value: n
735
+ }, Y(e, t.trackPath, J(r, i));
736
+ }
737
+ //#endregion
737
738
  //#region src/components/Timeline/Timeline.tsx
738
739
  function $(e) {
739
740
  let { tracks: t, duration: n, playhead: r, onInput: i, onChange: a, onScrub: o, renderKeyEditor: s, label: c, className: l } = e, [f, p] = C(() => /* @__PURE__ */ new Set()), [m, h] = C({
@@ -742,7 +743,7 @@ function $(e) {
742
743
  }), [g, _] = C(null), [v, y] = C(null), x = e.window ?? m, S = e.onWindowChange ?? h, T = e.selection === void 0 ? g : e.selection, E = e.onSelect ?? _, D = {
743
744
  from: 0,
744
745
  to: n
745
- }, O = b(() => re(t, f), [t, f]), k = b(() => {
746
+ }, O = b(() => fe(t, f), [t, f]), k = b(() => {
746
747
  let e = new Set([0, n]);
747
748
  for (let t of O) if (t.kind === "sampled") for (let n of t.track.keys) e.add(n.t + t.offset);
748
749
  return [...e];
@@ -754,10 +755,10 @@ function $(e) {
754
755
  }, j = (e) => {
755
756
  if ((e.key === "Delete" || e.key === "Backspace") && T) {
756
757
  e.preventDefault();
757
- let n = oe(t, T);
758
+ let n = he(t, T);
758
759
  a(n.tracks), E(n.selection);
759
760
  }
760
- }, M = T ? H(t, T.trackPath) : void 0, P = M?.kind === "sampled" ? M.keys[T.keyIndex] : void 0, F = v ? H(t, v.trackPath) : void 0, I = F?.kind === "sampled" ? F.keys[v.keyIndex] : void 0;
761
+ }, M = T ? K(t, T.trackPath) : void 0, P = M?.kind === "sampled" ? M.keys[T.keyIndex] : void 0, F = v ? K(t, v.trackPath) : void 0, I = F?.kind === "sampled" ? F.keys[v.keyIndex] : void 0;
761
762
  return /* @__PURE__ */ d("div", {
762
763
  className: [w.root, l].filter(Boolean).join(" "),
763
764
  "data-testid": "timeline-root",
@@ -770,7 +771,7 @@ function $(e) {
770
771
  }) : null,
771
772
  e.transport === !1 ? null : /* @__PURE__ */ d("div", {
772
773
  className: w.transportRow,
773
- children: [/* @__PURE__ */ u(Q, {
774
+ children: [/* @__PURE__ */ u(G, {
774
775
  ...e.transport ?? {
775
776
  paused: !0,
776
777
  loop: !1,
@@ -796,7 +797,7 @@ function $(e) {
796
797
  className: w.body,
797
798
  children: [/* @__PURE__ */ u("div", { className: w.gutter }), /* @__PURE__ */ u("div", {
798
799
  className: w.rulerWrap,
799
- children: /* @__PURE__ */ u(_e, {
800
+ children: /* @__PURE__ */ u(ue, {
800
801
  window: x,
801
802
  bounds: D,
802
803
  playhead: r,
@@ -809,11 +810,11 @@ function $(e) {
809
810
  className: w.lanes,
810
811
  children: O.map((n) => {
811
812
  let r = n.path;
812
- return /* @__PURE__ */ u(me, {
813
+ return /* @__PURE__ */ u(se, {
813
814
  row: n,
814
815
  window: x,
815
816
  mode: e.mode ?? "dope",
816
- selection: T && U(T.trackPath, r) ? T.keyIndex : null,
817
+ selection: T && q(T.trackPath, r) ? T.keyIndex : null,
817
818
  expanded: f.has(n.key),
818
819
  snapTimes: k,
819
820
  onToggleExpand: () => A(n.key),
@@ -822,25 +823,25 @@ function $(e) {
822
823
  keyIndex: e
823
824
  }),
824
825
  onKeyInput: (e, n) => {
825
- i?.(K(t, {
826
+ i?.(X(t, {
826
827
  trackPath: r,
827
828
  keyIndex: e
828
829
  }, n).tracks);
829
830
  },
830
831
  onKeyCommit: (e, n) => {
831
- let i = K(t, {
832
+ let i = X(t, {
832
833
  trackPath: r,
833
834
  keyIndex: e
834
835
  }, n);
835
836
  a(i.tracks), E(i.selection);
836
837
  },
837
- onKeysInput: (e) => i?.(J(t, r, e)),
838
- onKeysCommit: (e) => a(J(t, r, e)),
838
+ onKeysInput: (e) => i?.(Q(t, r, e)),
839
+ onKeysCommit: (e) => a(Q(t, r, e)),
839
840
  onInsert: (e) => {
840
- let n = ae(t, r, e);
841
+ let n = me(t, r, e);
841
842
  a(n.tracks), E(n.selection);
842
843
  },
843
- selectedSegment: v && U(v.trackPath, r) ? v.keyIndex : null,
844
+ selectedSegment: v && q(v.trackPath, r) ? v.keyIndex : null,
844
845
  onSelectSegment: (e) => y({
845
846
  trackPath: r,
846
847
  keyIndex: e
@@ -854,15 +855,15 @@ function $(e) {
854
855
  key: P,
855
856
  track: M,
856
857
  selection: T,
857
- commit: (e) => a(se(t, T, e.value)),
858
- setEasing: (e) => a(q(t, T, e))
858
+ commit: (e) => a(ge(t, T, e.value)),
859
+ setEasing: (e) => a(Z(t, T, e))
859
860
  })
860
861
  }) : null,
861
862
  v && I ? /* @__PURE__ */ u("div", {
862
863
  className: w.inspector,
863
864
  children: /* @__PURE__ */ u(N, {
864
865
  value: I.easing,
865
- onChange: (e) => a(q(t, v, e))
866
+ onChange: (e) => a(Z(t, v, e))
866
867
  })
867
868
  }) : null
868
869
  ]
@@ -870,7 +871,7 @@ function $(e) {
870
871
  }
871
872
  //#endregion
872
873
  //#region src/components/Timeline/AnimatedTimeline.tsx
873
- function ve(e) {
874
+ function _e(e) {
874
875
  let { handle: t, ...n } = e, [, r] = x((e) => e + 1, 0);
875
876
  v(() => t.subscribe(r), [t]);
876
877
  let i = S(null), a = g(() => {
@@ -910,6 +911,6 @@ function ve(e) {
910
911
  });
911
912
  }
912
913
  //#endregion
913
- export { N as a, D as c, U as i, O as l, $ as n, k as o, Q as r, E as s, ve as t };
914
+ export { N as a, D as c, G as i, O as l, $ as n, k as o, q as r, E as s, _e as t };
914
915
 
915
- //# sourceMappingURL=Timeline-DOZgb1CG.js.map
916
+ //# sourceMappingURL=Timeline-DNKY_yiK.js.map