@weasel-js/ui 1.7.0 → 1.7.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 (391) hide show
  1. package/dist/chunks/ActionBar-xA73vzzF.js +64 -0
  2. package/dist/chunks/ActionBar-xA73vzzF.js.map +1 -0
  3. package/dist/chunks/{Badge-D2aD7xVL.js → Badge-jYQjrTKc.js} +235 -264
  4. package/dist/chunks/{Badge-D2aD7xVL.js.map → Badge-jYQjrTKc.js.map} +1 -1
  5. package/dist/chunks/BandEditor-Dd0egAgE.js.map +1 -1
  6. package/dist/chunks/{Button-BIdXHQOx.js → Button-XB-T75YL.js} +2 -2
  7. package/dist/chunks/{Button-BIdXHQOx.js.map → Button-XB-T75YL.js.map} +1 -1
  8. package/dist/chunks/{ButtonBar-DIQTe5GQ.js → ButtonBar-CIMKPPRS.js} +7 -9
  9. package/dist/chunks/{ButtonBar-DIQTe5GQ.js.map → ButtonBar-CIMKPPRS.js.map} +1 -1
  10. package/dist/chunks/Callout-BUn0dP_S.js +115 -0
  11. package/dist/chunks/Callout-BUn0dP_S.js.map +1 -0
  12. package/dist/chunks/Checkbox-DFn-x0JO.js +37 -0
  13. package/dist/chunks/Checkbox-DFn-x0JO.js.map +1 -0
  14. package/dist/chunks/{CloseButton-C2J7wVfo.js → CloseButton-BmNmRVtb.js} +3 -3
  15. package/dist/chunks/{CloseButton-C2J7wVfo.js.map → CloseButton-BmNmRVtb.js.map} +1 -1
  16. package/dist/chunks/ColorField-BLs9fbeq.js +90 -0
  17. package/dist/chunks/ColorField-BLs9fbeq.js.map +1 -0
  18. package/dist/chunks/{ColorModeControl-BewxA0rX.js → ColorModeControl-DaVJ-SyX.js} +3 -3
  19. package/dist/chunks/{ColorModeControl-BewxA0rX.js.map → ColorModeControl-DaVJ-SyX.js.map} +1 -1
  20. package/dist/chunks/ComboBox-CuTLRmUg.js +138 -0
  21. package/dist/chunks/ComboBox-CuTLRmUg.js.map +1 -0
  22. package/dist/chunks/{CurveEditor-DUVjd25R.js → CurveEditor-jVBEqqdv.js} +90 -87
  23. package/dist/chunks/CurveEditor-jVBEqqdv.js.map +1 -0
  24. package/dist/chunks/{DataGrid-LZ2JgY2Y.js → DataGrid-BklgBqS0.js} +2 -2
  25. package/dist/chunks/{DataGrid-LZ2JgY2Y.js.map → DataGrid-BklgBqS0.js.map} +1 -1
  26. package/dist/chunks/{DetailList-BKomDzg5.js → DetailList-DFtqdOJj.js} +7 -7
  27. package/dist/chunks/DetailList-DFtqdOJj.js.map +1 -0
  28. package/dist/chunks/{DetentSlider-5uQPFucv.js → DetentSlider-Bh7EpMqT.js} +2 -2
  29. package/dist/chunks/{DetentSlider-5uQPFucv.js.map → DetentSlider-Bh7EpMqT.js.map} +1 -1
  30. package/dist/chunks/{Dialog-DGFutQ--.js → Dialog-DKfsk5VN.js} +3 -3
  31. package/dist/chunks/{Dialog-DGFutQ--.js.map → Dialog-DKfsk5VN.js.map} +1 -1
  32. package/dist/chunks/{DragGhost-B5_hb9W9.js → DragGhost-BeYDJyLZ.js} +2 -2
  33. package/dist/chunks/{DragGhost-B5_hb9W9.js.map → DragGhost-BeYDJyLZ.js.map} +1 -1
  34. package/dist/chunks/{FallthroughDiagram-BEHiM5IS.js → FallthroughDiagram-C7BUe8eU.js} +3 -3
  35. package/dist/chunks/{FallthroughDiagram-BEHiM5IS.js.map → FallthroughDiagram-C7BUe8eU.js.map} +1 -1
  36. package/dist/chunks/Field-DsBlnFKf.js +25 -0
  37. package/dist/chunks/Field-DsBlnFKf.js.map +1 -0
  38. package/dist/chunks/FillStrokeSwatch-CgsYQgew.js +112 -0
  39. package/dist/chunks/FillStrokeSwatch-CgsYQgew.js.map +1 -0
  40. package/dist/chunks/{FontFamilySelect-DkRgNtag.js → FontFamilySelect-CGJ5OIOy.js} +2 -2
  41. package/dist/chunks/FontFamilySelect-CGJ5OIOy.js.map +1 -0
  42. package/dist/chunks/FontWeightSelect-RbcXYJPS.js +49 -0
  43. package/dist/chunks/FontWeightSelect-RbcXYJPS.js.map +1 -0
  44. package/dist/chunks/{GestureRoute-C_YGl7bJ.js → GestureRoute-BXESrHI0.js} +2 -2
  45. package/dist/chunks/{GestureRoute-C_YGl7bJ.js.map → GestureRoute-BXESrHI0.js.map} +1 -1
  46. package/dist/chunks/GradientEditor-DypXzMc-.js +325 -0
  47. package/dist/chunks/GradientEditor-DypXzMc-.js.map +1 -0
  48. package/dist/chunks/{Icon-CcVjdq2C.js → Icon--B1ME-6c.js} +3 -1
  49. package/dist/chunks/Icon--B1ME-6c.js.map +1 -0
  50. package/dist/chunks/{Input-CHmkfYaD.js → Input-CzwvCZs_.js} +10 -15
  51. package/dist/chunks/Input-CzwvCZs_.js.map +1 -0
  52. package/dist/chunks/{ItemList-Cm-HUWCi.js → ItemList-CRu9y7hL.js} +2 -2
  53. package/dist/chunks/ItemList-CRu9y7hL.js.map +1 -0
  54. package/dist/chunks/{Jog-DRmfrkCg.js → Jog-DfNUYejm.js} +8 -8
  55. package/dist/chunks/Jog-DfNUYejm.js.map +1 -0
  56. package/dist/chunks/{LayerList-wCI1EueM.js → LayerList-CsDqwYh-.js} +151 -153
  57. package/dist/chunks/LayerList-CsDqwYh-.js.map +1 -0
  58. package/dist/chunks/ListEditor-BnGzqERm.js +72 -0
  59. package/dist/chunks/ListEditor-BnGzqERm.js.map +1 -0
  60. package/dist/chunks/MenuButton-L9f5vido.js +75 -0
  61. package/dist/chunks/MenuButton-L9f5vido.js.map +1 -0
  62. package/dist/chunks/MeshEditor-GbqqiPk8.js +199 -0
  63. package/dist/chunks/MeshEditor-GbqqiPk8.js.map +1 -0
  64. package/dist/chunks/{NumberField-BnJxcazc.js → NumberField-DLXXgh48.js} +26 -23
  65. package/dist/chunks/NumberField-DLXXgh48.js.map +1 -0
  66. package/dist/chunks/{OptionsBar-ujxYidhj.js → OptionsBar-DeTAjVb7.js} +6 -8
  67. package/dist/chunks/{OptionsBar-ujxYidhj.js.map → OptionsBar-DeTAjVb7.js.map} +1 -1
  68. package/dist/chunks/PaintField-C0hoXc0Y.js +63 -0
  69. package/dist/chunks/PaintField-C0hoXc0Y.js.map +1 -0
  70. package/dist/chunks/PaintInput-jQRxM95Y.js +132 -0
  71. package/dist/chunks/PaintInput-jQRxM95Y.js.map +1 -0
  72. package/dist/chunks/PatternPicker-CaMYXzhF.js +135 -0
  73. package/dist/chunks/PatternPicker-CaMYXzhF.js.map +1 -0
  74. package/dist/chunks/{Plot2D-CTXHkL5p.js → Plot2D-BHNbgCAl.js} +7 -7
  75. package/dist/chunks/Plot2D-BHNbgCAl.js.map +1 -0
  76. package/dist/chunks/{PointPlotter-ldI4RrU1.js → PointPlotter-BZ_vk6gV.js} +2 -2
  77. package/dist/chunks/{PointPlotter-ldI4RrU1.js.map → PointPlotter-BZ_vk6gV.js.map} +1 -1
  78. package/dist/chunks/{Powerline-DNyH885r.js → Powerline-6wIFmDik.js} +2 -2
  79. package/dist/chunks/{Powerline-DNyH885r.js.map → Powerline-6wIFmDik.js.map} +1 -1
  80. package/dist/chunks/{Prefs-ByA-x51i.js → Prefs-CkyldX-e.js} +83 -70
  81. package/dist/chunks/Prefs-CkyldX-e.js.map +1 -0
  82. package/dist/chunks/{Properties-DmAeQ3mk.js → Properties-D15c8NP-.js} +25 -25
  83. package/dist/chunks/{Properties-DmAeQ3mk.js.map → Properties-D15c8NP-.js.map} +1 -1
  84. package/dist/chunks/PropertyField-CV_Gw57S.js +686 -0
  85. package/dist/chunks/PropertyField-CV_Gw57S.js.map +1 -0
  86. package/dist/chunks/{RadioGroup-Bh4-12e-.js → RadioGroup-4dbzqvGy.js} +2 -2
  87. package/dist/chunks/{RadioGroup-Bh4-12e-.js.map → RadioGroup-4dbzqvGy.js.map} +1 -1
  88. package/dist/chunks/{RangeSlider-SEGE-7VF.js → RangeSlider-BxokZViJ.js} +8 -8
  89. package/dist/chunks/RangeSlider-BxokZViJ.js.map +1 -0
  90. package/dist/chunks/RecentColorsProvider-DHcfk25u.js +84 -0
  91. package/dist/chunks/RecentColorsProvider-DHcfk25u.js.map +1 -0
  92. package/dist/chunks/ResizeHandle-CbAgCQOt.js +81 -0
  93. package/dist/chunks/ResizeHandle-CbAgCQOt.js.map +1 -0
  94. package/dist/chunks/Select-BppLsJTz.js +236 -0
  95. package/dist/chunks/Select-BppLsJTz.js.map +1 -0
  96. package/dist/chunks/{SelectionPanel-BaQnX4Bs.js → SelectionPanel-Cm1qu-ZX.js} +14 -13
  97. package/dist/chunks/{SelectionPanel-BaQnX4Bs.js.map → SelectionPanel-Cm1qu-ZX.js.map} +1 -1
  98. package/dist/chunks/{SidebarPanel-BblDEz4G.js → SidebarPanel-AXQ0jRDx.js} +2 -2
  99. package/dist/chunks/{SidebarPanel-BblDEz4G.js.map → SidebarPanel-AXQ0jRDx.js.map} +1 -1
  100. package/dist/chunks/{Slider-YofwGOI4.js → Slider-Cl5RCeZ7.js} +19 -19
  101. package/dist/chunks/Slider-Cl5RCeZ7.js.map +1 -0
  102. package/dist/chunks/SwatchGrid-9ZPiDmxd.js +78 -0
  103. package/dist/chunks/SwatchGrid-9ZPiDmxd.js.map +1 -0
  104. package/dist/chunks/SwatchStrip-Cw0l8Om7.js +577 -0
  105. package/dist/chunks/SwatchStrip-Cw0l8Om7.js.map +1 -0
  106. package/dist/chunks/{ThemeSwitcher-BlsInAmR.js → ThemeSwitcher-DiBmMh_B.js} +3 -3
  107. package/dist/chunks/{ThemeSwitcher-BlsInAmR.js.map → ThemeSwitcher-DiBmMh_B.js.map} +1 -1
  108. package/dist/chunks/{Timeline-B39cwfMB.js → Timeline-pqnYk5cV.js} +244 -246
  109. package/dist/chunks/Timeline-pqnYk5cV.js.map +1 -0
  110. package/dist/chunks/Toast-C3ozq11V.js +170 -0
  111. package/dist/chunks/Toast-C3ozq11V.js.map +1 -0
  112. package/dist/chunks/{ToggleBar-BTYkBXU9.js → ToggleBar-Z2jZiguF.js} +6 -8
  113. package/dist/chunks/{ToggleBar-BTYkBXU9.js.map → ToggleBar-Z2jZiguF.js.map} +1 -1
  114. package/dist/chunks/{TokenPanel-CMDAOfYH.js → TokenPanel-DAkL6vwQ.js} +32 -32
  115. package/dist/chunks/TokenPanel-DAkL6vwQ.js.map +1 -0
  116. package/dist/chunks/{ToolButton-CAHBa08P.js → ToolButton-BURp4YIO.js} +7 -9
  117. package/dist/chunks/ToolButton-BURp4YIO.js.map +1 -0
  118. package/dist/chunks/{ToolOptionsBar-D_GCrBAN.js → ToolOptionsBar-COsTJ1cu.js} +3 -2
  119. package/dist/chunks/{ToolOptionsBar-D_GCrBAN.js.map → ToolOptionsBar-COsTJ1cu.js.map} +1 -1
  120. package/dist/chunks/{ToolPalette-OOWN51Xx.js → ToolPalette-DKDFWOX-.js} +7 -9
  121. package/dist/chunks/{ToolPalette-OOWN51Xx.js.map → ToolPalette-DKDFWOX-.js.map} +1 -1
  122. package/dist/chunks/{Tooltip-Clg2mhSt.js → Tooltip-C6eFCYxw.js} +2 -2
  123. package/dist/chunks/{Tooltip-Clg2mhSt.js.map → Tooltip-C6eFCYxw.js.map} +1 -1
  124. package/dist/chunks/Tree-Cc8lIzgM.js.map +1 -1
  125. package/dist/chunks/checkbox.module-DLQV9tMX.js +5 -0
  126. package/dist/chunks/checkbox.module-DLQV9tMX.js.map +1 -0
  127. package/dist/chunks/{createKeyframeLayer-DVl321_l.js → createKeyframeLayer-BTa4LyJE.js} +194 -208
  128. package/dist/chunks/createKeyframeLayer-BTa4LyJE.js.map +1 -0
  129. package/dist/chunks/field.module-Bh7BTKMh.js +15 -0
  130. package/dist/chunks/field.module-Bh7BTKMh.js.map +1 -0
  131. package/dist/chunks/formatShortcut-DRQrVThu.js.map +1 -1
  132. package/dist/chunks/handles-CqVANLtu.js +17 -0
  133. package/dist/chunks/handles-CqVANLtu.js.map +1 -0
  134. package/dist/chunks/{icons-BhcR1l64.js → icons-Dr2-r30x.js} +2 -2
  135. package/dist/chunks/icons-Dr2-r30x.js.map +1 -0
  136. package/dist/chunks/listbox.module-BcdVJMbm.js +8 -0
  137. package/dist/chunks/listbox.module-BcdVJMbm.js.map +1 -0
  138. package/dist/chunks/model-B1-gMBIW.js +386 -0
  139. package/dist/chunks/model-B1-gMBIW.js.map +1 -0
  140. package/dist/chunks/{portalHost-yTOVuCej.js → portalHost-CE70wLzo.js} +10 -6
  141. package/dist/chunks/portalHost-CE70wLzo.js.map +1 -0
  142. package/dist/chunks/prefField-BE_Ytr2H.js +229 -0
  143. package/dist/chunks/prefField-BE_Ytr2H.js.map +1 -0
  144. package/dist/chunks/{segmentTooltip-CStYHKzd.js → segmentTooltip-CGxCOWNz.js} +2 -2
  145. package/dist/chunks/{segmentTooltip-CStYHKzd.js.map → segmentTooltip-CGxCOWNz.js.map} +1 -1
  146. package/dist/chunks/segmentedControl.module-BzGXUL5G.js +11 -0
  147. package/dist/chunks/segmentedControl.module-BzGXUL5G.js.map +1 -0
  148. package/dist/chunks/useReorderDragList-CStYKjHl.js +133 -0
  149. package/dist/chunks/useReorderDragList-CStYKjHl.js.map +1 -0
  150. package/dist/chunks/useRovingTabIndex-D7u22Ia_.js +91 -0
  151. package/dist/chunks/useRovingTabIndex-D7u22Ia_.js.map +1 -0
  152. package/dist/components/ActionBar/ActionBar.d.ts.map +1 -1
  153. package/dist/components/ActionBar/index.js +1 -1
  154. package/dist/components/Badge/bases/ChamferedRect.d.ts.map +1 -1
  155. package/dist/components/Badge/index.js +1 -1
  156. package/dist/components/BandEditor/BandEditor.d.ts +1 -0
  157. package/dist/components/BandEditor/BandEditor.d.ts.map +1 -1
  158. package/dist/components/Button/index.js +1 -1
  159. package/dist/components/ButtonBar/ButtonBar.d.ts.map +1 -1
  160. package/dist/components/ButtonBar/index.js +1 -1
  161. package/dist/components/Callout/Callout.d.ts.map +1 -1
  162. package/dist/components/Callout/index.js +1 -1
  163. package/dist/components/Checkbox/Checkbox.d.ts +28 -13
  164. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
  165. package/dist/components/Checkbox/index.js +1 -1
  166. package/dist/components/CloseButton/index.js +1 -1
  167. package/dist/components/ColorField/ColorField.d.ts.map +1 -1
  168. package/dist/components/ColorField/OpacityRange.d.ts +18 -0
  169. package/dist/components/ColorField/OpacityRange.d.ts.map +1 -0
  170. package/dist/components/ColorField/index.js +1 -1
  171. package/dist/components/ColorModeControl/index.js +1 -1
  172. package/dist/components/ComboBox/ComboBox.d.ts +7 -0
  173. package/dist/components/ComboBox/ComboBox.d.ts.map +1 -1
  174. package/dist/components/ComboBox/index.js +1 -1
  175. package/dist/components/CurveEditor/CurveEditor.d.ts.map +1 -1
  176. package/dist/components/CurveEditor/LayeredCurveEditor.d.ts.map +1 -1
  177. package/dist/components/CurveEditor/index.js +2 -2
  178. package/dist/components/DataGrid/index.js +1 -1
  179. package/dist/components/DetailList/index.js +1 -1
  180. package/dist/components/DetentSlider/index.js +1 -1
  181. package/dist/components/Dialog/index.js +1 -1
  182. package/dist/components/DragGhost/index.js +1 -1
  183. package/dist/components/FallthroughDiagram/index.js +1 -1
  184. package/dist/components/Field/index.js +1 -1
  185. package/dist/components/FillStrokeSwatch/FillStrokeSwatch.d.ts.map +1 -1
  186. package/dist/components/FillStrokeSwatch/index.js +1 -1
  187. package/dist/components/FontFamilySelect/FontFamilySelect.d.ts +20 -0
  188. package/dist/components/FontFamilySelect/FontFamilySelect.d.ts.map +1 -1
  189. package/dist/components/FontFamilySelect/index.js +1 -1
  190. package/dist/components/FontWeightSelect/FontWeightSelect.d.ts +26 -0
  191. package/dist/components/FontWeightSelect/FontWeightSelect.d.ts.map +1 -0
  192. package/dist/components/FontWeightSelect/index.d.ts +3 -0
  193. package/dist/components/FontWeightSelect/index.d.ts.map +1 -0
  194. package/dist/components/FontWeightSelect/index.js +2 -0
  195. package/dist/components/GestureRoute/index.js +1 -1
  196. package/dist/components/GradientEditor/GradientHandles.d.ts +1 -8
  197. package/dist/components/GradientEditor/GradientHandles.d.ts.map +1 -1
  198. package/dist/components/GradientEditor/SceneGradientHandles.d.ts +7 -5
  199. package/dist/components/GradientEditor/SceneGradientHandles.d.ts.map +1 -1
  200. package/dist/components/GradientEditor/handleOverlay.d.ts +41 -0
  201. package/dist/components/GradientEditor/handleOverlay.d.ts.map +1 -0
  202. package/dist/components/GradientEditor/index.js +1 -1
  203. package/dist/components/Input/Input.d.ts +1 -1
  204. package/dist/components/Input/Input.d.ts.map +1 -1
  205. package/dist/components/Input/index.js +1 -1
  206. package/dist/components/ItemList/ItemList.d.ts +32 -31
  207. package/dist/components/ItemList/ItemList.d.ts.map +1 -1
  208. package/dist/components/ItemList/index.js +1 -1
  209. package/dist/components/Jog/index.js +1 -1
  210. package/dist/components/LayerList/LayerList.d.ts.map +1 -1
  211. package/dist/components/LayerList/index.js +1 -1
  212. package/dist/components/ListEditor/ListEditor.d.ts.map +1 -1
  213. package/dist/components/ListEditor/index.js +1 -1
  214. package/dist/components/MenuButton/MenuButton.d.ts.map +1 -1
  215. package/dist/components/MenuButton/index.js +1 -1
  216. package/dist/components/MeshEditor/MeshEditor.d.ts +4 -3
  217. package/dist/components/MeshEditor/MeshEditor.d.ts.map +1 -1
  218. package/dist/components/MeshEditor/MeshHandles.d.ts +38 -0
  219. package/dist/components/MeshEditor/MeshHandles.d.ts.map +1 -0
  220. package/dist/components/MeshEditor/index.d.ts +2 -0
  221. package/dist/components/MeshEditor/index.d.ts.map +1 -1
  222. package/dist/components/MeshEditor/index.js +2 -2
  223. package/dist/components/NumberField/NumberField.d.ts +1 -1
  224. package/dist/components/NumberField/NumberField.d.ts.map +1 -1
  225. package/dist/components/NumberField/index.js +1 -1
  226. package/dist/components/OptionsBar/OptionsBar.d.ts.map +1 -1
  227. package/dist/components/OptionsBar/index.js +1 -1
  228. package/dist/components/PaintField/PaintField.d.ts.map +1 -1
  229. package/dist/components/PaintField/index.js +1 -1
  230. package/dist/components/PaintInput/PaintInput.d.ts.map +1 -1
  231. package/dist/components/PaintInput/index.js +1 -1
  232. package/dist/components/PatternPicker/PatternPicker.d.ts +6 -5
  233. package/dist/components/PatternPicker/PatternPicker.d.ts.map +1 -1
  234. package/dist/components/PatternPicker/index.js +1 -1
  235. package/dist/components/Plot2D/index.js +1 -1
  236. package/dist/components/PointPlotter/index.js +1 -1
  237. package/dist/components/Powerline/index.js +2 -2
  238. package/dist/components/Prefs/PrefsForm.d.ts +8 -0
  239. package/dist/components/Prefs/PrefsForm.d.ts.map +1 -1
  240. package/dist/components/Prefs/PrefsRail.d.ts +3 -2
  241. package/dist/components/Prefs/PrefsRail.d.ts.map +1 -1
  242. package/dist/components/Prefs/index.js +2 -2
  243. package/dist/components/Prefs/prefField.d.ts +13 -0
  244. package/dist/components/Prefs/prefField.d.ts.map +1 -1
  245. package/dist/components/Properties/PropertyField.d.ts +13 -2
  246. package/dist/components/Properties/PropertyField.d.ts.map +1 -1
  247. package/dist/components/Properties/index.js +3 -3
  248. package/dist/components/RadioGroup/index.js +1 -1
  249. package/dist/components/RangeSlider/index.js +1 -1
  250. package/dist/components/RecentColors/RecentColorsProvider.d.ts +24 -0
  251. package/dist/components/RecentColors/RecentColorsProvider.d.ts.map +1 -0
  252. package/dist/components/RecentColors/index.d.ts +5 -0
  253. package/dist/components/RecentColors/index.d.ts.map +1 -0
  254. package/dist/components/RecentColors/index.js +2 -0
  255. package/dist/components/RecentColors/recentColors.d.ts +39 -0
  256. package/dist/components/RecentColors/recentColors.d.ts.map +1 -0
  257. package/dist/components/ResizeHandle/ResizeHandle.d.ts.map +1 -1
  258. package/dist/components/ResizeHandle/index.js +1 -1
  259. package/dist/components/Select/Select.d.ts +6 -2
  260. package/dist/components/Select/Select.d.ts.map +1 -1
  261. package/dist/components/Select/index.js +1 -1
  262. package/dist/components/SelectionPanel/index.js +2 -2
  263. package/dist/components/SelectionPanel/renderLeaf.d.ts +12 -2
  264. package/dist/components/SelectionPanel/renderLeaf.d.ts.map +1 -1
  265. package/dist/components/SidebarPanel/index.js +1 -1
  266. package/dist/components/Slider/index.js +1 -1
  267. package/dist/components/SwatchGrid/SwatchGrid.d.ts.map +1 -1
  268. package/dist/components/SwatchGrid/index.js +1 -1
  269. package/dist/components/SwatchStrip/SwatchStrip.d.ts +44 -0
  270. package/dist/components/SwatchStrip/SwatchStrip.d.ts.map +1 -0
  271. package/dist/components/SwatchStrip/index.d.ts +5 -0
  272. package/dist/components/SwatchStrip/index.d.ts.map +1 -0
  273. package/dist/components/SwatchStrip/index.js +2 -0
  274. package/dist/components/SwatchStrip/palettes.d.ts +21 -0
  275. package/dist/components/SwatchStrip/palettes.d.ts.map +1 -0
  276. package/dist/components/ThemeSwitcher/index.js +1 -1
  277. package/dist/components/Timeline/AnimatedTimeline.d.ts +1 -0
  278. package/dist/components/Timeline/AnimatedTimeline.d.ts.map +1 -1
  279. package/dist/components/Timeline/EasingPicker.d.ts +3 -0
  280. package/dist/components/Timeline/EasingPicker.d.ts.map +1 -1
  281. package/dist/components/Timeline/LaneGraph.d.ts +1 -1
  282. package/dist/components/Timeline/LaneGraph.d.ts.map +1 -1
  283. package/dist/components/Timeline/Timeline.d.ts +10 -1
  284. package/dist/components/Timeline/Timeline.d.ts.map +1 -1
  285. package/dist/components/Timeline/Transport.d.ts +6 -0
  286. package/dist/components/Timeline/Transport.d.ts.map +1 -1
  287. package/dist/components/Timeline/index.js +1 -1
  288. package/dist/components/Timeline/keys.d.ts +1 -0
  289. package/dist/components/Timeline/keys.d.ts.map +1 -1
  290. package/dist/components/Toast/Toast.d.ts +12 -3
  291. package/dist/components/Toast/Toast.d.ts.map +1 -1
  292. package/dist/components/Toast/index.js +1 -1
  293. package/dist/components/ToggleBar/ToggleBar.d.ts.map +1 -1
  294. package/dist/components/ToggleBar/index.js +1 -1
  295. package/dist/components/TokenPanel/index.js +1 -1
  296. package/dist/components/TokenPanel/tokenTypes.d.ts +1 -0
  297. package/dist/components/TokenPanel/tokenTypes.d.ts.map +1 -1
  298. package/dist/components/ToolButton/ToolButton.d.ts +1 -10
  299. package/dist/components/ToolButton/ToolButton.d.ts.map +1 -1
  300. package/dist/components/ToolButton/index.js +1 -1
  301. package/dist/components/ToolOptionsBar/index.js +1 -1
  302. package/dist/components/ToolPalette/ToolPalette.d.ts.map +1 -1
  303. package/dist/components/ToolPalette/formatShortcut.d.ts +2 -0
  304. package/dist/components/ToolPalette/formatShortcut.d.ts.map +1 -1
  305. package/dist/components/ToolPalette/index.js +1 -1
  306. package/dist/components/Tooltip/index.js +1 -1
  307. package/dist/components/Tree/Tree.d.ts +27 -26
  308. package/dist/components/Tree/Tree.d.ts.map +1 -1
  309. package/dist/icons/index.d.ts +51 -0
  310. package/dist/icons/index.d.ts.map +1 -1
  311. package/dist/icons/paths.d.ts +2 -0
  312. package/dist/icons/paths.d.ts.map +1 -1
  313. package/dist/index.d.ts +4 -1
  314. package/dist/index.d.ts.map +1 -1
  315. package/dist/index.js +98 -95
  316. package/dist/index.js.map +1 -1
  317. package/dist/overlays/portalHost.d.ts +6 -0
  318. package/dist/overlays/portalHost.d.ts.map +1 -1
  319. package/dist/style.css +1 -1
  320. package/dist/useAsyncOptions.d.ts.map +1 -1
  321. package/dist/useReorderDragList.d.ts.map +1 -1
  322. package/dist/useRovingTabIndex.d.ts +40 -39
  323. package/dist/useRovingTabIndex.d.ts.map +1 -1
  324. package/package.json +9 -9
  325. package/dist/chunks/ActionBar-DCq16yFA.js +0 -57
  326. package/dist/chunks/ActionBar-DCq16yFA.js.map +0 -1
  327. package/dist/chunks/Callout-ndW5_Bqx.js +0 -116
  328. package/dist/chunks/Callout-ndW5_Bqx.js.map +0 -1
  329. package/dist/chunks/Checkbox-DHXTUHO9.js +0 -47
  330. package/dist/chunks/Checkbox-DHXTUHO9.js.map +0 -1
  331. package/dist/chunks/ColorField-Yz_BkcCT.js +0 -69
  332. package/dist/chunks/ColorField-Yz_BkcCT.js.map +0 -1
  333. package/dist/chunks/ComboBox-B34H76CW.js +0 -138
  334. package/dist/chunks/ComboBox-B34H76CW.js.map +0 -1
  335. package/dist/chunks/CurveEditor-DUVjd25R.js.map +0 -1
  336. package/dist/chunks/DetailList-BKomDzg5.js.map +0 -1
  337. package/dist/chunks/Field--onYxXTF.js +0 -32
  338. package/dist/chunks/Field--onYxXTF.js.map +0 -1
  339. package/dist/chunks/FillStrokeSwatch-DNb0KXPk.js +0 -111
  340. package/dist/chunks/FillStrokeSwatch-DNb0KXPk.js.map +0 -1
  341. package/dist/chunks/FontFamilySelect-DkRgNtag.js.map +0 -1
  342. package/dist/chunks/GradientEditor-b7v4Ph3i.js +0 -363
  343. package/dist/chunks/GradientEditor-b7v4Ph3i.js.map +0 -1
  344. package/dist/chunks/Icon-CcVjdq2C.js.map +0 -1
  345. package/dist/chunks/Input-CHmkfYaD.js.map +0 -1
  346. package/dist/chunks/ItemList-Cm-HUWCi.js.map +0 -1
  347. package/dist/chunks/Jog-DRmfrkCg.js.map +0 -1
  348. package/dist/chunks/LayerList-wCI1EueM.js.map +0 -1
  349. package/dist/chunks/ListEditor-BeA60TAA.js +0 -71
  350. package/dist/chunks/ListEditor-BeA60TAA.js.map +0 -1
  351. package/dist/chunks/MenuButton-BSqEChJE.js +0 -70
  352. package/dist/chunks/MenuButton-BSqEChJE.js.map +0 -1
  353. package/dist/chunks/MeshEditor-D1HLZcAh.js +0 -87
  354. package/dist/chunks/MeshEditor-D1HLZcAh.js.map +0 -1
  355. package/dist/chunks/NumberField-BnJxcazc.js.map +0 -1
  356. package/dist/chunks/PaintField-DadOELMg.js +0 -62
  357. package/dist/chunks/PaintField-DadOELMg.js.map +0 -1
  358. package/dist/chunks/PaintInput-v8Y7MDbH.js +0 -121
  359. package/dist/chunks/PaintInput-v8Y7MDbH.js.map +0 -1
  360. package/dist/chunks/PatternPicker-R_EQtw2Q.js +0 -93
  361. package/dist/chunks/PatternPicker-R_EQtw2Q.js.map +0 -1
  362. package/dist/chunks/Plot2D-CTXHkL5p.js.map +0 -1
  363. package/dist/chunks/Prefs-ByA-x51i.js.map +0 -1
  364. package/dist/chunks/PropertyField-DfIJJ5GS.js +0 -673
  365. package/dist/chunks/PropertyField-DfIJJ5GS.js.map +0 -1
  366. package/dist/chunks/RangeSlider-SEGE-7VF.js.map +0 -1
  367. package/dist/chunks/ResizeHandle-rKVWyeTG.js +0 -79
  368. package/dist/chunks/ResizeHandle-rKVWyeTG.js.map +0 -1
  369. package/dist/chunks/Select-ClmKtyWg.js +0 -229
  370. package/dist/chunks/Select-ClmKtyWg.js.map +0 -1
  371. package/dist/chunks/Slider-YofwGOI4.js.map +0 -1
  372. package/dist/chunks/SwatchGrid-BYvA8Bmh.js +0 -73
  373. package/dist/chunks/SwatchGrid-BYvA8Bmh.js.map +0 -1
  374. package/dist/chunks/Timeline-B39cwfMB.js.map +0 -1
  375. package/dist/chunks/Toast-BF9GE0HC.js +0 -126
  376. package/dist/chunks/Toast-BF9GE0HC.js.map +0 -1
  377. package/dist/chunks/TokenPanel-CMDAOfYH.js.map +0 -1
  378. package/dist/chunks/ToolButton-CAHBa08P.js.map +0 -1
  379. package/dist/chunks/createKeyframeLayer-DVl321_l.js.map +0 -1
  380. package/dist/chunks/icons-BhcR1l64.js.map +0 -1
  381. package/dist/chunks/model-BaF65rnX.js +0 -365
  382. package/dist/chunks/model-BaF65rnX.js.map +0 -1
  383. package/dist/chunks/portalHost-yTOVuCej.js.map +0 -1
  384. package/dist/chunks/prefField-BopW9bjx.js +0 -201
  385. package/dist/chunks/prefField-BopW9bjx.js.map +0 -1
  386. package/dist/chunks/segmentedControl.module-D6SzYJD7.js +0 -11
  387. package/dist/chunks/segmentedControl.module-D6SzYJD7.js.map +0 -1
  388. package/dist/chunks/useReorderDragList-FCMoFIzH.js +0 -131
  389. package/dist/chunks/useReorderDragList-FCMoFIzH.js.map +0 -1
  390. package/dist/chunks/useRovingTabIndex-Bp_hYm_h.js +0 -65
  391. package/dist/chunks/useRovingTabIndex-Bp_hYm_h.js.map +0 -1
@@ -1,69 +1,69 @@
1
- import { rt as e, st as t } from "./icons-BhcR1l64.js";
1
+ import { rt as e, st as t } from "./icons-Dr2-r30x.js";
2
2
  import { n } from "./Disclosure-Ch2KxYuB.js";
3
- import { r } from "./Plot2D-CTXHkL5p.js";
4
- import { i, n as a, t as o } from "./createKeyframeLayer-DVl321_l.js";
3
+ import { r } from "./Plot2D-BHNbgCAl.js";
4
+ import { i, n as a, t as o } from "./createKeyframeLayer-BTa4LyJE.js";
5
5
  import { t as s } from "./snap-DRjbOiG9.js";
6
- import { t as c } from "./DetentSlider-5uQPFucv.js";
7
- import { EASINGS as l, openPointerSession as u, resolveEasing as d, sampleTrack as f, useVisibleRaf as p } from "@weasel-js/core";
8
- import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
9
- import { useCallback as _, useEffect as v, useLayoutEffect as y, useMemo as b, useReducer as x, useRef as S, useState as C } from "react";
10
- import { multiplier as w, qty as T } from "@weasel-js/quantity";
11
- var E = {
12
- ruler: "_ruler_65nbe_1",
13
- tick: "_tick_65nbe_11",
14
- playhead: "_playhead_65nbe_29",
15
- lane: "_lane_65nbe_38",
16
- laneLabel: "_laneLabel_65nbe_45",
17
- disclosure: "_disclosure_65nbe_65",
18
- laneTrack: "_laneTrack_65nbe_67",
19
- key: "_key_65nbe_74",
20
- eventMark: "_eventMark_65nbe_74",
21
- keyGhost: "_keyGhost_65nbe_94",
22
- eventGhost: "_eventGhost_65nbe_94",
23
- graphHost: "_graphHost_65nbe_111",
24
- graph: "_graph_65nbe_111",
25
- nestedBar: "_nestedBar_65nbe_130",
26
- transport: "_transport_65nbe_139",
27
- transportButton: "_transportButton_65nbe_148",
28
- transportRow: "_transportRow_65nbe_175",
29
- time: "_time_65nbe_193",
30
- rate: "_rate_65nbe_199",
31
- rateSlider: "_rateSlider_65nbe_200",
32
- rateReadout: "_rateReadout_65nbe_204",
33
- root: "_root_65nbe_210",
34
- label: "_label_65nbe_225",
35
- body: "_body_65nbe_227",
36
- gutter: "_gutter_65nbe_46",
37
- rulerWrap: "_rulerWrap_65nbe_229",
38
- lanes: "_lanes_65nbe_231",
39
- inspector: "_inspector_65nbe_238",
40
- segment: "_segment_65nbe_247",
41
- easingPicker: "_easingPicker_65nbe_257",
42
- easingLabel: "_easingLabel_65nbe_258",
43
- easingPreview: "_easingPreview_65nbe_260"
6
+ import { t as c } from "./DetentSlider-Bh7EpMqT.js";
7
+ import { EASINGS as l, openPointerSession as u, resolveEasing as d, sampleTrack as f, useLatest as p, useVisibleRaf as m } from "@weasel-js/core";
8
+ import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
9
+ import { useCallback as v, useEffect as y, useLayoutEffect as b, useMemo as x, useReducer as S, useRef as C, useState as w } from "react";
10
+ import { multiplier as T, qty as E } from "@weasel-js/quantity";
11
+ var D = {
12
+ ruler: "_ruler_hovf2_1",
13
+ tick: "_tick_hovf2_11",
14
+ playhead: "_playhead_hovf2_29",
15
+ lane: "_lane_hovf2_38",
16
+ laneLabel: "_laneLabel_hovf2_45",
17
+ disclosure: "_disclosure_hovf2_65",
18
+ laneTrack: "_laneTrack_hovf2_67",
19
+ key: "_key_hovf2_74",
20
+ eventMark: "_eventMark_hovf2_74",
21
+ keyGhost: "_keyGhost_hovf2_94",
22
+ eventGhost: "_eventGhost_hovf2_94",
23
+ graphHost: "_graphHost_hovf2_111",
24
+ graph: "_graph_hovf2_111",
25
+ nestedBar: "_nestedBar_hovf2_130",
26
+ transport: "_transport_hovf2_139",
27
+ transportButton: "_transportButton_hovf2_148",
28
+ transportRow: "_transportRow_hovf2_175",
29
+ time: "_time_hovf2_193",
30
+ rate: "_rate_hovf2_200",
31
+ rateSlider: "_rateSlider_hovf2_201",
32
+ rateReadout: "_rateReadout_hovf2_205",
33
+ root: "_root_hovf2_212",
34
+ label: "_label_hovf2_227",
35
+ body: "_body_hovf2_229",
36
+ gutter: "_gutter_hovf2_46",
37
+ rulerWrap: "_rulerWrap_hovf2_231",
38
+ lanes: "_lanes_hovf2_233",
39
+ inspector: "_inspector_hovf2_240",
40
+ segment: "_segment_hovf2_249",
41
+ easingPicker: "_easingPicker_hovf2_259",
42
+ easingLabel: "_easingLabel_hovf2_260",
43
+ easingPreview: "_easingPreview_hovf2_262"
44
44
  };
45
45
  //#endregion
46
46
  //#region src/components/Timeline/easingSpec.ts
47
- function D(e) {
48
- return typeof e == "object" && e && "bezier" in e ? e.bezier : null;
49
- }
50
47
  function O(e) {
51
- return e === void 0 ? null : D(e);
48
+ return typeof e == "object" && e && "bezier" in e ? e.bezier : null;
52
49
  }
53
50
  function k(e) {
51
+ return e === void 0 ? null : O(e);
52
+ }
53
+ function A(e) {
54
54
  if (e === void 0) return "linear";
55
55
  if (typeof e == "string") return e;
56
- let t = D(e);
56
+ let t = O(e);
57
57
  if (t) return `cubic-bezier(${t.join(", ")})`;
58
58
  for (let [t, n] of Object.entries(l)) if (n === e) return t;
59
59
  return "custom";
60
60
  }
61
- function A(e, t) {
61
+ function j(e, t) {
62
62
  let n = d(e), r = Array(t), i = t - 1;
63
63
  for (let e = 0; e < t; e++) r[e] = n(i === 0 ? 0 : e / i);
64
64
  return r;
65
65
  }
66
- var j = Object.keys(l), M = 24, N = {
66
+ var M = Object.keys(l), N = 24, P = {
67
67
  linear: [
68
68
  0,
69
69
  0,
@@ -124,50 +124,50 @@ var j = Object.keys(l), M = 24, N = {
124
124
  .63,
125
125
  1
126
126
  ]
127
- }, P = [
127
+ }, F = [
128
128
  .25,
129
129
  .1,
130
130
  .25,
131
131
  1
132
132
  ];
133
- function F(e) {
134
- let { value: t, onChange: n } = e, r = O(t), i = k(t), a = r === null && j.includes(i), o = r === null ? a ? i : "linear" : "custom", s = A(t, M).map((e, t) => `${t / 23 * 100},${100 - e * 100}`).join(" ");
135
- return /* @__PURE__ */ g("div", {
136
- className: E.easingPicker,
133
+ function I(e) {
134
+ let { value: t, onChange: n } = e, r = k(t), i = A(t), a = r === null && M.includes(i), o = r === null ? a ? i : "linear" : "custom", s = j(t, N).map((e, t) => `${t / 23 * 100},${100 - e * 100}`).join(" ");
135
+ return /* @__PURE__ */ _("div", {
136
+ className: D.easingPicker,
137
137
  children: [
138
- /* @__PURE__ */ g("label", { children: ["Easing", /* @__PURE__ */ g("select", {
138
+ /* @__PURE__ */ _("label", { children: ["Easing", /* @__PURE__ */ _("select", {
139
139
  value: o,
140
140
  onChange: (e) => n(e.target.value === "linear" ? void 0 : e.target.value),
141
141
  children: [
142
- /* @__PURE__ */ h("option", {
142
+ /* @__PURE__ */ g("option", {
143
143
  value: "linear",
144
144
  children: "linear"
145
145
  }),
146
- j.filter((e) => e !== "linear").map((e) => /* @__PURE__ */ h("option", {
146
+ M.filter((e) => e !== "linear").map((e) => /* @__PURE__ */ g("option", {
147
147
  value: e,
148
148
  children: e
149
149
  }, e)),
150
- r === null ? null : /* @__PURE__ */ h("option", {
150
+ r === null ? null : /* @__PURE__ */ g("option", {
151
151
  value: "custom",
152
152
  children: "custom"
153
153
  })
154
154
  ]
155
155
  })] }),
156
- r === null ? /* @__PURE__ */ h("button", {
156
+ r === null ? /* @__PURE__ */ g("button", {
157
157
  type: "button",
158
- className: E.transportButton,
159
- onClick: () => n({ bezier: N[o] ?? P }),
158
+ className: D.transportButton,
159
+ onClick: () => n({ bezier: P[o] ?? F }),
160
160
  children: "Convert to bezier"
161
- }) : /* @__PURE__ */ h("span", {
162
- className: E.easingLabel,
161
+ }) : /* @__PURE__ */ g("span", {
162
+ className: D.easingLabel,
163
163
  children: i
164
164
  }),
165
- /* @__PURE__ */ h("svg", {
166
- className: E.easingPreview,
165
+ /* @__PURE__ */ g("svg", {
166
+ className: D.easingPreview,
167
167
  "data-testid": "easing-preview",
168
168
  viewBox: "0 0 100 100",
169
169
  preserveAspectRatio: "none",
170
- children: /* @__PURE__ */ h("polyline", {
170
+ children: /* @__PURE__ */ g("polyline", {
171
171
  points: s,
172
172
  vectorEffect: "non-scaling-stroke"
173
173
  })
@@ -177,8 +177,8 @@ function F(e) {
177
177
  }
178
178
  //#endregion
179
179
  //#region src/components/Timeline/timeScale.ts
180
- var I = 1;
181
- function L(e, t) {
180
+ var L = 1;
181
+ function R(e, t) {
182
182
  let n = e.to - e.from, r = n === 0 ? 0 : t / n, i = t === 0 ? 0 : n / t;
183
183
  return {
184
184
  window: e,
@@ -187,19 +187,19 @@ function L(e, t) {
187
187
  toMs: (t) => e.from + t * i
188
188
  };
189
189
  }
190
- function R(e, t) {
190
+ function ee(e, t) {
191
191
  let n = e.to - e.from;
192
192
  return n === 0 ? 0 : (t - e.from) / n;
193
193
  }
194
194
  function z(e, t) {
195
- return `${R(e, t) * 100}%`;
195
+ return `${ee(e, t) * 100}%`;
196
196
  }
197
- function ee(e, t) {
197
+ function te(e, t) {
198
198
  let n = e.to - e.from;
199
199
  return n === 0 ? 0 : t / n;
200
200
  }
201
201
  function B(e, t) {
202
- return `${ee(e, t) * 100}%`;
202
+ return `${te(e, t) * 100}%`;
203
203
  }
204
204
  function V(e, t) {
205
205
  let n = Math.min(e.to - e.from, t.to - t.from), r = e.from;
@@ -208,14 +208,14 @@ function V(e, t) {
208
208
  to: r + n
209
209
  };
210
210
  }
211
- function te(e, t, n, r) {
212
- let i = e.to - e.from, a = r.to - r.from, o = Math.min(a, Math.max(I, i * n)), s = i === 0 ? .5 : (t - e.from) / i;
211
+ function ne(e, t, n, r) {
212
+ let i = e.to - e.from, a = r.to - r.from, o = Math.min(a, Math.max(L, i * n)), s = i === 0 ? .5 : (t - e.from) / i;
213
213
  return V({
214
214
  from: t - s * o,
215
215
  to: t + (1 - s) * o
216
216
  }, r);
217
217
  }
218
- function ne(e, t, n) {
218
+ function re(e, t, n) {
219
219
  return V({
220
220
  from: e.from + t,
221
221
  to: e.to + t
@@ -230,22 +230,22 @@ function H(e, t, n) {
230
230
  }
231
231
  //#endregion
232
232
  //#region src/components/Timeline/LaneGraph.tsx
233
- var re = 8, ie = 10;
234
- function ae(e) {
235
- let t = e.map((e) => e.value), n = Math.min(...t), r = Math.max(...t) - n || 1, i = r * re / 84;
233
+ var ie = 8, ae = 10;
234
+ function oe(e) {
235
+ let t = e.map((e) => e.value), n = Math.min(...t), r = Math.max(...t) - n || 1, i = r * ie / 84;
236
236
  return [n - i, n + r + i];
237
237
  }
238
- function oe(e) {
239
- let { keys: t, label: n, window: r, offset: s, snapTimes: c, selection: l, selectedSegment: u, onSelect: d, onSelectSegment: f, onKeysInput: p, onKeysCommit: m } = e, g = S(null), [_, v] = C({
238
+ function se(e) {
239
+ let { keys: t, label: n, window: r, offset: s, snapTimes: c, selection: l, selectedSegment: u, onSelect: d, onSelectSegment: f, onKeysInput: m, onKeysCommit: h } = e, _ = C(null), [v, y] = w({
240
240
  width: 0,
241
241
  height: 0
242
242
  });
243
- y(() => {
244
- let e = g.current;
243
+ b(() => {
244
+ let e = _.current;
245
245
  if (!e) return;
246
246
  let t = () => {
247
247
  let t = e.getBoundingClientRect();
248
- v((e) => e.width === t.width && e.height === t.height ? e : {
248
+ y((e) => e.width === t.width && e.height === t.height ? e : {
249
249
  width: t.width,
250
250
  height: t.height
251
251
  });
@@ -254,18 +254,18 @@ function oe(e) {
254
254
  let n = new ResizeObserver(t);
255
255
  return n.observe(e), () => n.disconnect();
256
256
  }, []);
257
- let x = b(() => a({
257
+ let S = x(() => a({
258
258
  id: "keys",
259
259
  label: n,
260
260
  formatX: (e) => `${Math.round(e)} ms`,
261
261
  snapX: c.map((e) => e - s),
262
262
  xClamp: [0, Infinity],
263
- step: { x: ie }
263
+ step: { x: ae }
264
264
  }), [
265
265
  n,
266
266
  c,
267
267
  s
268
- ]), w = b(() => ({
268
+ ]), T = x(() => ({
269
269
  keys: t,
270
270
  selectedKey: l,
271
271
  selectedSegment: u,
@@ -274,42 +274,40 @@ function oe(e) {
274
274
  t,
275
275
  l,
276
276
  u
277
- ]), [T, D] = C(null), O = T ?? w, k = S(O);
278
- k.current = O;
279
- let A = b(() => [{
280
- layer: x,
281
- state: O
282
- }], [x, O]), j = (e, t) => {
283
- let n = t, r = k.current;
277
+ ]), [E, O] = w(null), k = E ?? T, A = p(k), j = x(() => [{
278
+ layer: S,
279
+ state: k
280
+ }], [S, k]), M = (e, t) => {
281
+ let n = t, r = A.current;
284
282
  if (n.selectedKey !== null && n.selectedKey !== r.selectedKey && d(n.selectedKey), n.selectedSegment !== null && n.selectedSegment !== r.selectedSegment && f?.(n.selectedSegment), !n.drag) {
285
- D(null);
283
+ O(null);
286
284
  return;
287
285
  }
288
- if (D(n), n.drag.kind !== "key") return;
286
+ if (O(n), n.drag.kind !== "key") return;
289
287
  let i = o(n).keys;
290
- i !== n.keys && p?.(i);
291
- }, M = (e, t, n) => {
292
- D(null);
288
+ i !== n.keys && m?.(i);
289
+ }, N = (e, t, n) => {
290
+ O(null);
293
291
  let r = t;
294
- r.keys !== n.keys && m(r.keys);
295
- }, [N, P] = ae(O.keys), F = _.width > 0 ? H(r, _.width, 64) : [];
296
- return /* @__PURE__ */ h("div", {
297
- ref: g,
298
- className: E.graphHost,
299
- children: _.width > 0 && _.height > 0 ? /* @__PURE__ */ h(i, {
300
- className: E.graph,
292
+ r.keys !== n.keys && h(r.keys);
293
+ }, [P, F] = oe(k.keys), I = v.width > 0 ? H(r, v.width, 64) : [];
294
+ return /* @__PURE__ */ g("div", {
295
+ ref: _,
296
+ className: D.graphHost,
297
+ children: v.width > 0 && v.height > 0 ? /* @__PURE__ */ g(i, {
298
+ className: D.graph,
301
299
  "aria-label": `${n} graph`,
302
- layers: A,
303
- onLayerChange: j,
304
- onLayerCommit: M,
305
- width: _.width,
306
- height: _.height,
300
+ layers: j,
301
+ onLayerChange: M,
302
+ onLayerCommit: N,
303
+ width: v.width,
304
+ height: v.height,
307
305
  xRange: [r.from - s, r.to - s],
308
- yRange: [N, P],
306
+ yRange: [P, F],
309
307
  grid: !1,
310
308
  axes: !1,
311
309
  xTicks: {
312
- values: F.map((e) => e - s),
310
+ values: I.map((e) => e - s),
313
311
  labels: !1
314
312
  },
315
313
  yTicks: {
@@ -322,36 +320,36 @@ function oe(e) {
322
320
  }
323
321
  //#endregion
324
322
  //#region src/components/Timeline/Lane.tsx
325
- var se = 10;
326
- function ce(e) {
323
+ var ce = 10;
324
+ function le(e) {
327
325
  return e.kind === "sampled" ? e.track.keys.map((e) => e.t) : e.kind === "event" ? e.track.events.map((e) => e.t) : [];
328
326
  }
329
- function le(e) {
330
- let { row: t, window: r, mode: i, selection: a, onSelect: o, onKeyInput: c, onKeyCommit: l, onInsert: d, onToggleExpand: f, expanded: p, snapTimes: _, selectedSegment: y = null, onSelectSegment: b, onKeysInput: x, onKeysCommit: w } = e, T = S(null), D = S(null);
331
- v(() => () => {
332
- D.current?.cancel();
327
+ function ue(e) {
328
+ let { row: t, window: r, mode: i, selection: a, onSelect: o, onKeyInput: c, onKeyCommit: l, onInsert: d, onToggleExpand: f, expanded: p, snapTimes: m, selectedSegment: v = null, onSelectSegment: b, onKeysInput: x, onKeysCommit: S } = e, T = C(null), E = C(null);
329
+ y(() => () => {
330
+ E.current?.cancel();
333
331
  }, []);
334
- let [O, k] = C(null), A = (e) => z(r, e + t.offset), j = (e) => {
332
+ let [O, k] = w(null), A = (e) => z(r, e + t.offset), j = (e) => {
335
333
  let n = T.current?.getBoundingClientRect();
336
- return n ? L(r, n.width).toMs(e - n.left) - t.offset : r.from;
334
+ return n ? R(r, n.width).toMs(e - n.left) - t.offset : r.from;
337
335
  }, M = () => {
338
- let e = T.current?.getBoundingClientRect().width ?? 0, t = L(r, e);
336
+ let e = T.current?.getBoundingClientRect().width ?? 0, t = R(r, e);
339
337
  return t.toMs(6) - t.toMs(0);
340
338
  }, N = i === "graph" && t.numeric, P = t.kind === "sampled" ? t.track.keys : [], F = (e) => (n) => {
341
339
  if (n.button !== 0) return;
342
340
  n.stopPropagation(), o(e);
343
341
  let r = (e) => {
344
342
  let n = Math.max(0, j(e.clientX));
345
- return e.altKey ? n : s(n + t.offset, _, M()) - t.offset;
343
+ return e.altKey ? n : s(n + t.offset, m, M()) - t.offset;
346
344
  };
347
345
  k({
348
346
  keyIndex: e,
349
- t: R[e]
347
+ t: L[e]
350
348
  });
351
349
  let i = () => {
352
- k(null), D.current = null;
350
+ k(null), E.current = null;
353
351
  };
354
- D.current?.cancel(), D.current = u(n.currentTarget, n, {
352
+ E.current?.cancel(), E.current = u(n.currentTarget, n, {
355
353
  onMove: (t) => {
356
354
  k({
357
355
  keyIndex: e,
@@ -364,50 +362,50 @@ function le(e) {
364
362
  onCancel: i
365
363
  }, { capture: !1 });
366
364
  }, I = (e, t) => (n) => {
367
- let r = se * (n.shiftKey ? 10 : 1);
365
+ let r = ce * (n.shiftKey ? 10 : 1);
368
366
  n.key === "ArrowRight" && (n.preventDefault(), l(e, t + r)), n.key === "ArrowLeft" && (n.preventDefault(), l(e, Math.max(0, t - r)));
369
- }, R = ce(t);
370
- return /* @__PURE__ */ g("div", {
371
- className: E.lane,
367
+ }, L = le(t);
368
+ return /* @__PURE__ */ _("div", {
369
+ className: D.lane,
372
370
  "data-depth": t.depth,
373
371
  "data-mode": i,
374
372
  "data-graph": N ? "true" : void 0,
375
- children: [/* @__PURE__ */ g("div", {
376
- className: E.laneLabel,
377
- children: [t.kind === "timeline" ? /* @__PURE__ */ h("span", {
373
+ children: [/* @__PURE__ */ _("div", {
374
+ className: D.laneLabel,
375
+ children: [t.kind === "timeline" ? /* @__PURE__ */ g("span", {
378
376
  role: "button",
379
377
  tabIndex: 0,
380
378
  "aria-expanded": p,
381
379
  "data-testid": "timeline-disclosure",
382
- className: E.disclosure,
380
+ className: D.disclosure,
383
381
  onClick: f,
384
382
  onKeyDown: (e) => {
385
383
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), f());
386
384
  },
387
- children: /* @__PURE__ */ h(n, { open: p })
385
+ children: /* @__PURE__ */ g(n, { open: p })
388
386
  }) : null, t.label]
389
- }), /* @__PURE__ */ h("div", {
390
- className: E.laneTrack,
387
+ }), /* @__PURE__ */ g("div", {
388
+ className: D.laneTrack,
391
389
  ref: T,
392
390
  "data-testid": "timeline-lane-track",
393
391
  onDoubleClick: (e) => {
394
392
  t.kind === "sampled" && d(Math.max(0, j(e.clientX)));
395
393
  },
396
- children: N ? /* @__PURE__ */ h(oe, {
394
+ children: N ? /* @__PURE__ */ g(se, {
397
395
  keys: P,
398
396
  label: t.label,
399
397
  window: r,
400
398
  offset: t.offset,
401
- snapTimes: _,
399
+ snapTimes: m,
402
400
  selection: a,
403
- selectedSegment: y,
401
+ selectedSegment: v,
404
402
  onSelect: o,
405
403
  onSelectSegment: b,
406
404
  onKeysInput: x,
407
- onKeysCommit: (e) => w?.(e)
408
- }) : /* @__PURE__ */ g(m, { children: [
409
- t.kind === "timeline" ? /* @__PURE__ */ h("div", {
410
- className: E.nestedBar,
405
+ onKeysCommit: (e) => S?.(e)
406
+ }) : /* @__PURE__ */ _(h, { children: [
407
+ t.kind === "timeline" ? /* @__PURE__ */ g("div", {
408
+ className: D.nestedBar,
411
409
  "data-testid": "timeline-nested",
412
410
  style: {
413
411
  left: A(0),
@@ -416,13 +414,13 @@ function le(e) {
416
414
  }) : null,
417
415
  t.kind === "sampled" ? P.slice(1).map((e, n) => {
418
416
  let i = n + 1;
419
- return /* @__PURE__ */ h("div", {
417
+ return /* @__PURE__ */ g("div", {
420
418
  role: "button",
421
419
  tabIndex: 0,
422
420
  "aria-label": `${t.label} segment into ${Math.round(e.t)} ms`,
423
- "aria-current": y === i ? "true" : void 0,
421
+ "aria-current": v === i ? "true" : void 0,
424
422
  "data-testid": "timeline-segment",
425
- className: E.segment,
423
+ className: D.segment,
426
424
  style: {
427
425
  left: A(P[i - 1].t),
428
426
  width: B(r, e.t - P[i - 1].t)
@@ -433,22 +431,22 @@ function le(e) {
433
431
  }
434
432
  }, `seg-${i}`);
435
433
  }) : null,
436
- R.map((e, n) => /* @__PURE__ */ h("div", {
434
+ L.map((e, n) => /* @__PURE__ */ g("div", {
437
435
  role: "button",
438
436
  tabIndex: 0,
439
437
  "aria-label": `${t.label} key at ${Math.round(e)} ms`,
440
438
  "aria-current": a === n ? "true" : void 0,
441
439
  "data-testid": t.kind === "event" ? "timeline-event" : "timeline-key",
442
440
  "data-dragging": O?.keyIndex === n ? "true" : void 0,
443
- className: t.kind === "event" ? E.eventMark : E.key,
441
+ className: t.kind === "event" ? D.eventMark : D.key,
444
442
  style: { left: A(e) },
445
443
  onPointerDown: F(n),
446
444
  onKeyDown: I(n, e)
447
445
  }, n)),
448
- O ? /* @__PURE__ */ h("div", {
446
+ O ? /* @__PURE__ */ g("div", {
449
447
  "aria-hidden": "true",
450
448
  "data-testid": "timeline-key-ghost",
451
- className: t.kind === "event" ? E.eventGhost : E.keyGhost,
449
+ className: t.kind === "event" ? D.eventGhost : D.keyGhost,
452
450
  style: { left: A(O.t) }
453
451
  }) : null
454
452
  ] })
@@ -457,17 +455,17 @@ function le(e) {
457
455
  }
458
456
  //#endregion
459
457
  //#region src/components/Timeline/Ruler.tsx
460
- var ue = .0015;
461
- function de(e) {
458
+ var de = .0015;
459
+ function fe(e) {
462
460
  return e >= 1e3 ? `${(e / 1e3).toFixed(e % 1e3 == 0 ? 0 : 2)}s` : `${Math.round(e)}ms`;
463
461
  }
464
- function fe(e) {
465
- let { window: t, bounds: n, playhead: r, onScrub: i, onWindowChange: a } = e, o = S(null), s = S(null);
466
- v(() => () => {
462
+ function pe(e) {
463
+ let { window: t, bounds: n, playhead: r, onScrub: i, onWindowChange: a } = e, o = C(null), s = C(null);
464
+ y(() => () => {
467
465
  s.current?.cancel();
468
466
  }, []);
469
- let [c, l] = C(0);
470
- y(() => {
467
+ let [c, l] = w(0);
468
+ b(() => {
471
469
  let e = o.current;
472
470
  if (!e) return;
473
471
  let t = () => l(e.getBoundingClientRect().width);
@@ -478,7 +476,7 @@ function fe(e) {
478
476
  let d = () => o.current?.getBoundingClientRect().width ?? 0, f = (e) => {
479
477
  let n = o.current?.getBoundingClientRect();
480
478
  if (!n) return t.from;
481
- let r = L(t, n.width).toMs(e - n.left);
479
+ let r = R(t, n.width).toMs(e - n.left);
482
480
  return Math.min(t.to, Math.max(t.from, r));
483
481
  }, p = (e) => {
484
482
  if (e.button !== 0) return;
@@ -494,33 +492,33 @@ function fe(e) {
494
492
  onCancel: t
495
493
  }, { capture: !1 });
496
494
  }, m = (e) => {
497
- if (e.ctrlKey) a(te(t, f(e.clientX), Math.exp(e.deltaY * ue), n));
495
+ if (e.ctrlKey) a(ne(t, f(e.clientX), Math.exp(e.deltaY * de), n));
498
496
  else {
499
497
  let r = d(), i = r === 0 ? 0 : (t.to - t.from) / r;
500
- a(ne(t, e.deltaY * i, n));
498
+ a(re(t, e.deltaY * i, n));
501
499
  }
502
- }, _ = H(t, c, 64), b = (e) => z(t, e);
503
- return /* @__PURE__ */ g("div", {
504
- className: E.ruler,
500
+ }, h = H(t, c, 64), v = (e) => z(t, e);
501
+ return /* @__PURE__ */ _("div", {
502
+ className: D.ruler,
505
503
  ref: o,
506
504
  "data-testid": "timeline-ruler",
507
505
  onPointerDown: p,
508
506
  onWheel: m,
509
- children: [_.map((e) => /* @__PURE__ */ h("span", {
510
- className: E.tick,
507
+ children: [h.map((e) => /* @__PURE__ */ g("span", {
508
+ className: D.tick,
511
509
  "data-testid": "timeline-tick",
512
- style: { left: b(e) },
513
- children: de(e)
514
- }, e)), /* @__PURE__ */ h("div", {
515
- className: E.playhead,
510
+ style: { left: v(e) },
511
+ children: fe(e)
512
+ }, e)), /* @__PURE__ */ g("div", {
513
+ className: D.playhead,
516
514
  "data-testid": "timeline-playhead",
517
- style: { left: b(r) }
515
+ style: { left: v(r) }
518
516
  })]
519
517
  });
520
518
  }
521
519
  //#endregion
522
520
  //#region src/components/Timeline/Transport.tsx
523
- var U = w({ symbol: "x" }), W = [
521
+ var U = T({ symbol: "x" }), W = [
524
522
  .25,
525
523
  .5,
526
524
  1,
@@ -529,49 +527,49 @@ var U = w({ symbol: "x" }), W = [
529
527
  ], G = (e) => `${(e / 1e3).toFixed(2)}s`;
530
528
  function K(n) {
531
529
  let { paused: r, loop: i, rate: a, playhead: o, duration: s, onPlay: l, onPause: u, onLoopChange: d, onRateChange: f } = n, p = i !== !1 && i !== 0, m = W.includes(a) ? W : [...W, a].sort((e, t) => e - t);
532
- return /* @__PURE__ */ g("div", {
533
- className: E.transport,
530
+ return /* @__PURE__ */ _("div", {
531
+ className: D.transport,
534
532
  children: [
535
- /* @__PURE__ */ h("button", {
533
+ /* @__PURE__ */ g("button", {
536
534
  type: "button",
537
- className: E.transportButton,
535
+ className: D.transportButton,
538
536
  "aria-label": r ? "Play" : "Pause",
539
537
  onClick: r ? l : u,
540
- children: h(r ? t : e, { size: 14 })
538
+ children: g(r ? t : e, { size: 14 })
541
539
  }),
542
- /* @__PURE__ */ h("button", {
540
+ /* @__PURE__ */ g("button", {
543
541
  type: "button",
544
542
  role: "switch",
545
543
  "aria-checked": p,
546
544
  "aria-label": "Loop",
547
- className: E.transportButton,
545
+ className: D.transportButton,
548
546
  onClick: () => d(!p),
549
547
  children: "⟲"
550
548
  }),
551
- /* @__PURE__ */ g("div", {
552
- className: E.rate,
549
+ /* @__PURE__ */ _("div", {
550
+ className: D.rate,
553
551
  children: [
554
552
  "Rate",
555
- /* @__PURE__ */ h(c, {
553
+ /* @__PURE__ */ g(c, {
556
554
  ariaLabel: "Rate",
557
555
  items: m.map((e) => ({
558
556
  value: e,
559
- ariaLabel: T(e, U).spoken
557
+ ariaLabel: E(e, U).spoken
560
558
  })),
561
559
  value: a,
562
560
  onChange: f,
563
- formatLabel: (e) => T(e, U).text,
561
+ formatLabel: (e) => E(e, U).text,
564
562
  labels: "none",
565
- className: E.rateSlider
563
+ className: D.rateSlider
566
564
  }),
567
- /* @__PURE__ */ h("span", {
568
- className: E.rateReadout,
569
- children: T(a, U).text
565
+ /* @__PURE__ */ g("span", {
566
+ className: D.rateReadout,
567
+ children: E(a, U).text
570
568
  })
571
569
  ]
572
570
  }),
573
- /* @__PURE__ */ g("span", {
574
- className: E.time,
571
+ /* @__PURE__ */ _("span", {
572
+ className: D.time,
575
573
  "data-testid": "timeline-time",
576
574
  children: [
577
575
  G(o),
@@ -584,12 +582,12 @@ function K(n) {
584
582
  }
585
583
  //#endregion
586
584
  //#region src/components/Timeline/lanes.ts
587
- function pe(e) {
585
+ function me(e) {
588
586
  if (e.kind !== "sampled") return !1;
589
587
  let t = e.keys;
590
588
  return t.length > 0 && t.every((e) => typeof e.value == "number");
591
589
  }
592
- function me(e, t) {
590
+ function he(e, t) {
593
591
  let n = [], r = (e, i, a, o) => {
594
592
  e.forEach((e, s) => {
595
593
  let c = [...i, s], l = c.join(".");
@@ -601,7 +599,7 @@ function me(e, t) {
601
599
  depth: a,
602
600
  offset: o,
603
601
  kind: e.kind,
604
- numeric: pe(e)
602
+ numeric: me(e)
605
603
  }), e.kind === "timeline" && t.has(l) && r(e.timeline.tracks, c, a + 1, o + e.at);
606
604
  });
607
605
  };
@@ -626,7 +624,7 @@ function Y(e, t) {
626
624
  keys: t
627
625
  };
628
626
  }
629
- function he(e, t) {
627
+ function ge(e, t) {
630
628
  return {
631
629
  ...e,
632
630
  events: t
@@ -667,7 +665,7 @@ function Z(e, t, n) {
667
665
  t: i
668
666
  }, o = n.events.filter((e, n) => n !== t.keyIndex), s = o.findIndex((e) => e.t > i), c = s === -1 ? o.length : s;
669
667
  return o.splice(c, 0, a), {
670
- tracks: X(e, t.trackPath, he(r, o)),
668
+ tracks: X(e, t.trackPath, ge(r, o)),
671
669
  selection: {
672
670
  trackPath: t.trackPath,
673
671
  keyIndex: c
@@ -679,7 +677,7 @@ function Z(e, t, n) {
679
677
  selection: t
680
678
  };
681
679
  }
682
- function ge(e, t, n) {
680
+ function _e(e, t, n) {
683
681
  let r = q(e, t);
684
682
  if (r?.kind !== "sampled") return {
685
683
  tracks: e.slice(),
@@ -697,7 +695,7 @@ function ge(e, t, n) {
697
695
  }
698
696
  };
699
697
  }
700
- function _e(e, t) {
698
+ function ve(e, t) {
701
699
  let n = q(e, t.trackPath);
702
700
  if (n?.kind !== "sampled") return {
703
701
  tracks: e.slice(),
@@ -725,7 +723,7 @@ function $(e, t, n) {
725
723
  let r = q(e, t);
726
724
  return r?.kind === "sampled" ? X(e, t, Y(r, n.slice())) : e.slice();
727
725
  }
728
- function ve(e, t, n) {
726
+ function ye(e, t, n) {
729
727
  let r = q(e, t.trackPath);
730
728
  if (r?.kind !== "sampled") return e.slice();
731
729
  let i = r.keys.slice();
@@ -736,14 +734,14 @@ function ve(e, t, n) {
736
734
  }
737
735
  //#endregion
738
736
  //#region src/components/Timeline/Timeline.tsx
739
- function ye(e) {
740
- let { tracks: t, duration: n, playhead: r, onInput: i, onChange: a, onScrub: o, renderKeyEditor: s, label: c, className: l } = e, [u, d] = C(() => /* @__PURE__ */ new Set()), [f, p] = C({
737
+ function be(e) {
738
+ let { tracks: t, duration: n, playhead: r, onInput: i, onChange: a, onScrub: o, renderKeyEditor: s, label: c, className: l } = e, [u, d] = w(() => /* @__PURE__ */ new Set()), [f, p] = w({
741
739
  from: 0,
742
740
  to: n
743
- }), [m, _] = C(null), [v, y] = C(null), x = e.window ?? f, S = e.onWindowChange ?? p, w = e.selection === void 0 ? m : e.selection, T = e.onSelect ?? _, D = {
741
+ }), [m, h] = w(null), [v, y] = w(null), b = e.window ?? f, S = e.onWindowChange ?? p, C = e.selection === void 0 ? m : e.selection, T = e.onSelect ?? h, E = {
744
742
  from: 0,
745
743
  to: n
746
- }, O = b(() => me(t, u), [t, u]), k = b(() => {
744
+ }, O = x(() => he(t, u), [t, u]), k = x(() => {
747
745
  let e = /* @__PURE__ */ new Set([0, n]);
748
746
  for (let t of O) if (t.kind === "sampled") for (let n of t.track.keys) e.add(n.t + t.offset);
749
747
  return [...e];
@@ -753,25 +751,25 @@ function ye(e) {
753
751
  return n.has(e) ? n.delete(e) : n.add(e), n;
754
752
  });
755
753
  }, j = (e) => {
756
- if ((e.key === "Delete" || e.key === "Backspace") && w) {
754
+ if ((e.key === "Delete" || e.key === "Backspace") && C) {
757
755
  e.preventDefault();
758
- let n = _e(t, w);
756
+ let n = ve(t, C);
759
757
  a(n.tracks), T(n.selection);
760
758
  }
761
- }, M = w ? q(t, w.trackPath) : void 0, N = M?.kind === "sampled" ? M.keys[w.keyIndex] : void 0, P = v ? q(t, v.trackPath) : void 0, I = P?.kind === "sampled" ? P.keys[v.keyIndex] : void 0;
762
- return /* @__PURE__ */ g("div", {
763
- className: [E.root, l].filter(Boolean).join(" "),
759
+ }, M = C ? q(t, C.trackPath) : void 0, N = M?.kind === "sampled" ? M.keys[C.keyIndex] : void 0, P = v ? q(t, v.trackPath) : void 0, F = P?.kind === "sampled" ? P.keys[v.keyIndex] : void 0;
760
+ return /* @__PURE__ */ _("div", {
761
+ className: [D.root, l].filter(Boolean).join(" "),
764
762
  "data-testid": "timeline-root",
765
763
  tabIndex: -1,
766
764
  onKeyDown: j,
767
765
  children: [
768
- c ? /* @__PURE__ */ h("div", {
769
- className: E.label,
766
+ c ? /* @__PURE__ */ g("div", {
767
+ className: D.label,
770
768
  children: c
771
769
  }) : null,
772
- e.transport === !1 ? null : /* @__PURE__ */ g("div", {
773
- className: E.transportRow,
774
- children: [/* @__PURE__ */ h(K, {
770
+ e.transport === !1 ? null : /* @__PURE__ */ _("div", {
771
+ className: D.transportRow,
772
+ children: [/* @__PURE__ */ g(K, {
775
773
  ...e.transport ?? {
776
774
  paused: !0,
777
775
  loop: !1,
@@ -783,38 +781,38 @@ function ye(e) {
783
781
  },
784
782
  playhead: r,
785
783
  duration: n
786
- }), /* @__PURE__ */ h("button", {
784
+ }), /* @__PURE__ */ g("button", {
787
785
  type: "button",
788
786
  role: "switch",
789
787
  "aria-checked": (e.mode ?? "dope") === "graph",
790
788
  "aria-label": "Graph mode",
791
- className: E.transportButton,
789
+ className: D.transportButton,
792
790
  onClick: () => e.onModeChange?.((e.mode ?? "dope") === "graph" ? "dope" : "graph"),
793
791
  children: "Graph"
794
792
  })]
795
793
  }),
796
- /* @__PURE__ */ g("div", {
797
- className: E.body,
798
- children: [/* @__PURE__ */ h("div", { className: E.gutter }), /* @__PURE__ */ h("div", {
799
- className: E.rulerWrap,
800
- children: /* @__PURE__ */ h(fe, {
801
- window: x,
802
- bounds: D,
794
+ /* @__PURE__ */ _("div", {
795
+ className: D.body,
796
+ children: [/* @__PURE__ */ g("div", { className: D.gutter }), /* @__PURE__ */ g("div", {
797
+ className: D.rulerWrap,
798
+ children: /* @__PURE__ */ g(pe, {
799
+ window: b,
800
+ bounds: E,
803
801
  playhead: r,
804
802
  onScrub: o,
805
803
  onWindowChange: S
806
804
  })
807
805
  })]
808
806
  }),
809
- /* @__PURE__ */ h("div", {
810
- className: E.lanes,
807
+ /* @__PURE__ */ g("div", {
808
+ className: D.lanes,
811
809
  children: O.map((n) => {
812
810
  let r = n.path;
813
- return /* @__PURE__ */ h(le, {
811
+ return /* @__PURE__ */ g(ue, {
814
812
  row: n,
815
- window: x,
813
+ window: b,
816
814
  mode: e.mode ?? "dope",
817
- selection: w && J(w.trackPath, r) ? w.keyIndex : null,
815
+ selection: C && J(C.trackPath, r) ? C.keyIndex : null,
818
816
  expanded: u.has(n.key),
819
817
  snapTimes: k,
820
818
  onToggleExpand: () => A(n.key),
@@ -838,7 +836,7 @@ function ye(e) {
838
836
  onKeysInput: (e) => i?.($(t, r, e)),
839
837
  onKeysCommit: (e) => a($(t, r, e)),
840
838
  onInsert: (e) => {
841
- let n = ge(t, r, e);
839
+ let n = _e(t, r, e);
842
840
  a(n.tracks), T(n.selection);
843
841
  },
844
842
  selectedSegment: v && J(v.trackPath, r) ? v.keyIndex : null,
@@ -849,20 +847,20 @@ function ye(e) {
849
847
  }, n.key);
850
848
  })
851
849
  }),
852
- s && w && N && M?.kind === "sampled" ? /* @__PURE__ */ h("div", {
853
- className: E.inspector,
850
+ s && C && N && M?.kind === "sampled" ? /* @__PURE__ */ g("div", {
851
+ className: D.inspector,
854
852
  children: s({
855
853
  key: N,
856
854
  track: M,
857
- selection: w,
858
- commit: (e) => a(ve(t, w, e.value)),
859
- setEasing: (e) => a(Q(t, w, e))
855
+ selection: C,
856
+ commit: (e) => a(ye(t, C, e.value)),
857
+ setEasing: (e) => a(Q(t, C, e))
860
858
  })
861
859
  }) : null,
862
- v && I ? /* @__PURE__ */ h("div", {
863
- className: E.inspector,
864
- children: /* @__PURE__ */ h(F, {
865
- value: I.easing,
860
+ v && F ? /* @__PURE__ */ g("div", {
861
+ className: D.inspector,
862
+ children: /* @__PURE__ */ g(I, {
863
+ value: F.easing,
866
864
  onChange: (e) => a(Q(t, v, e))
867
865
  })
868
866
  }) : null
@@ -871,20 +869,20 @@ function ye(e) {
871
869
  }
872
870
  //#endregion
873
871
  //#region src/components/Timeline/AnimatedTimeline.tsx
874
- function be(e) {
875
- let { handle: t, ...n } = e, [, r] = x((e) => e + 1, 0);
876
- v(() => t.subscribe(r), [t]);
877
- let i = S(null), a = p(() => {
878
- r(), t.isPaused() || i.current?.request();
879
- });
880
- i.current = a, v(() => (t.isPaused() || a.request(), () => a.cancel()), [t, a]);
881
- let o = _((e) => {
872
+ function xe(e) {
873
+ let { handle: t, ...n } = e, [, r] = S((e) => e + 1, 0);
874
+ y(() => t.subscribe(r), [t]);
875
+ let i = m(() => {
876
+ r(), t.isPaused() || a.current.request();
877
+ }), a = p(i);
878
+ y(() => (t.isPaused() || i.request(), () => i.cancel()), [t, i]);
879
+ let o = v((e) => {
882
880
  t.edit(() => {
883
881
  let n = t.tracks();
884
882
  n.splice(0, n.length, ...e);
885
883
  });
886
884
  }, [t]), s = t.time(), c = t.duration();
887
- return /* @__PURE__ */ h(ye, {
885
+ return /* @__PURE__ */ g(be, {
888
886
  ...n,
889
887
  tracks: t.tracks(),
890
888
  duration: c,
@@ -896,7 +894,7 @@ function be(e) {
896
894
  loop: t.loop(),
897
895
  rate: t.timeScale(),
898
896
  onPlay: () => {
899
- t.time() >= c && t.seek(0), t.resume(), a.request(), r();
897
+ t.time() >= c && t.seek(0), t.resume(), i.request(), r();
900
898
  },
901
899
  onPause: () => {
902
900
  t.pause(), r();
@@ -911,6 +909,6 @@ function be(e) {
911
909
  });
912
910
  }
913
911
  //#endregion
914
- export { F as a, k as c, K as i, A as l, ye as n, j as o, J as r, O as s, be as t };
912
+ export { I as a, A as c, K as i, j as l, be as n, M as o, J as r, k as s, xe as t };
915
913
 
916
- //# sourceMappingURL=Timeline-B39cwfMB.js.map
914
+ //# sourceMappingURL=Timeline-pqnYk5cV.js.map