@weasel-js/ui 1.6.1 → 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 (517) 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-CTc9Lkwn.js +14 -0
  4. package/dist/chunks/Badge-CTc9Lkwn.js.map +1 -0
  5. package/dist/chunks/{Badge-CyAIZSDo.js → Badge-jYQjrTKc.js} +506 -486
  6. package/dist/chunks/Badge-jYQjrTKc.js.map +1 -0
  7. package/dist/chunks/BandEditor-Dd0egAgE.js +292 -0
  8. package/dist/chunks/BandEditor-Dd0egAgE.js.map +1 -0
  9. package/dist/chunks/{Button-BIdXHQOx.js → Button-XB-T75YL.js} +2 -2
  10. package/dist/chunks/{Button-BIdXHQOx.js.map → Button-XB-T75YL.js.map} +1 -1
  11. package/dist/chunks/{ButtonBar-D5Vi0aj_.js → ButtonBar-CIMKPPRS.js} +7 -9
  12. package/dist/chunks/{ButtonBar-D5Vi0aj_.js.map → ButtonBar-CIMKPPRS.js.map} +1 -1
  13. package/dist/chunks/Callout-BUn0dP_S.js +115 -0
  14. package/dist/chunks/Callout-BUn0dP_S.js.map +1 -0
  15. package/dist/chunks/Checkbox-DFn-x0JO.js +37 -0
  16. package/dist/chunks/Checkbox-DFn-x0JO.js.map +1 -0
  17. package/dist/chunks/CloseButton-BmNmRVtb.js +26 -0
  18. package/dist/chunks/CloseButton-BmNmRVtb.js.map +1 -0
  19. package/dist/chunks/ColorField-BLs9fbeq.js +90 -0
  20. package/dist/chunks/ColorField-BLs9fbeq.js.map +1 -0
  21. package/dist/chunks/{ColorModeControl-ke5PXbBa.js → ColorModeControl-DaVJ-SyX.js} +3 -3
  22. package/dist/chunks/{ColorModeControl-ke5PXbBa.js.map → ColorModeControl-DaVJ-SyX.js.map} +1 -1
  23. package/dist/chunks/ComboBox-CuTLRmUg.js +138 -0
  24. package/dist/chunks/ComboBox-CuTLRmUg.js.map +1 -0
  25. package/dist/chunks/{CurveEditor-BDJXjEvK.js → CurveEditor-jVBEqqdv.js} +90 -87
  26. package/dist/chunks/CurveEditor-jVBEqqdv.js.map +1 -0
  27. package/dist/chunks/{DataGrid-D-dZj1BD.js → DataGrid-BklgBqS0.js} +17 -17
  28. package/dist/chunks/DataGrid-BklgBqS0.js.map +1 -0
  29. package/dist/chunks/DetailList-DFtqdOJj.js +52 -0
  30. package/dist/chunks/DetailList-DFtqdOJj.js.map +1 -0
  31. package/dist/chunks/{DetentSlider-CL8TlX3S.js → DetentSlider-Bh7EpMqT.js} +2 -2
  32. package/dist/chunks/{DetentSlider-CL8TlX3S.js.map → DetentSlider-Bh7EpMqT.js.map} +1 -1
  33. package/dist/chunks/Dialog-DKfsk5VN.js +63 -0
  34. package/dist/chunks/Dialog-DKfsk5VN.js.map +1 -0
  35. package/dist/chunks/{Disclosure-0G0uh2fa.js → Disclosure-Ch2KxYuB.js} +7 -7
  36. package/dist/chunks/Disclosure-Ch2KxYuB.js.map +1 -0
  37. package/dist/chunks/{DragGhost-B5_hb9W9.js → DragGhost-BeYDJyLZ.js} +2 -2
  38. package/dist/chunks/{DragGhost-B5_hb9W9.js.map → DragGhost-BeYDJyLZ.js.map} +1 -1
  39. package/dist/chunks/{DragHandleGlyph-Dr7Fgo0I.js → DragGrip-AoIZXfZb.js} +2 -2
  40. package/dist/chunks/DragGrip-AoIZXfZb.js.map +1 -0
  41. package/dist/chunks/FallthroughDiagram-C7BUe8eU.js +284 -0
  42. package/dist/chunks/FallthroughDiagram-C7BUe8eU.js.map +1 -0
  43. package/dist/chunks/Field-DsBlnFKf.js +25 -0
  44. package/dist/chunks/Field-DsBlnFKf.js.map +1 -0
  45. package/dist/chunks/FillStrokeSwatch-CgsYQgew.js +112 -0
  46. package/dist/chunks/FillStrokeSwatch-CgsYQgew.js.map +1 -0
  47. package/dist/chunks/{FontFamilySelect-DXlMKWfK.js → FontFamilySelect-CGJ5OIOy.js} +2 -2
  48. package/dist/chunks/FontFamilySelect-CGJ5OIOy.js.map +1 -0
  49. package/dist/chunks/FontWeightSelect-RbcXYJPS.js +49 -0
  50. package/dist/chunks/FontWeightSelect-RbcXYJPS.js.map +1 -0
  51. package/dist/chunks/GestureRoute-BXESrHI0.js +82 -0
  52. package/dist/chunks/GestureRoute-BXESrHI0.js.map +1 -0
  53. package/dist/chunks/GradientEditor-DypXzMc-.js +325 -0
  54. package/dist/chunks/GradientEditor-DypXzMc-.js.map +1 -0
  55. package/dist/chunks/{Icon-Cgzy8VgC.js → Icon--B1ME-6c.js} +33 -1
  56. package/dist/chunks/Icon--B1ME-6c.js.map +1 -0
  57. package/dist/chunks/{InlineRange-eOj6JpJl.js → InlineRange-P01ABSzo.js} +3 -3
  58. package/dist/chunks/InlineRange-P01ABSzo.js.map +1 -0
  59. package/dist/chunks/{Input-CHmkfYaD.js → Input-CzwvCZs_.js} +10 -15
  60. package/dist/chunks/Input-CzwvCZs_.js.map +1 -0
  61. package/dist/chunks/{ItemList-Cm-HUWCi.js → ItemList-CRu9y7hL.js} +2 -2
  62. package/dist/chunks/ItemList-CRu9y7hL.js.map +1 -0
  63. package/dist/chunks/{Jog-DESxZ44P.js → Jog-DfNUYejm.js} +8 -8
  64. package/dist/chunks/Jog-DfNUYejm.js.map +1 -0
  65. package/dist/chunks/{Keycaps-C0H_v2gO.js → Keycaps-C-FJyG8k.js} +14 -14
  66. package/dist/chunks/Keycaps-C-FJyG8k.js.map +1 -0
  67. package/dist/chunks/{LayerList-nz-QYvTF.js → LayerList-CsDqwYh-.js} +105 -111
  68. package/dist/chunks/LayerList-CsDqwYh-.js.map +1 -0
  69. package/dist/chunks/ListEditor-BnGzqERm.js +72 -0
  70. package/dist/chunks/ListEditor-BnGzqERm.js.map +1 -0
  71. package/dist/chunks/MenuButton-L9f5vido.js +75 -0
  72. package/dist/chunks/MenuButton-L9f5vido.js.map +1 -0
  73. package/dist/chunks/MeshEditor-GbqqiPk8.js +199 -0
  74. package/dist/chunks/MeshEditor-GbqqiPk8.js.map +1 -0
  75. package/dist/chunks/NumberField-DLXXgh48.js +209 -0
  76. package/dist/chunks/NumberField-DLXXgh48.js.map +1 -0
  77. package/dist/chunks/{OptionsBar-DbzAgIln.js → OptionsBar-DeTAjVb7.js} +6 -8
  78. package/dist/chunks/{OptionsBar-DbzAgIln.js.map → OptionsBar-DeTAjVb7.js.map} +1 -1
  79. package/dist/chunks/PaintField-C0hoXc0Y.js +63 -0
  80. package/dist/chunks/PaintField-C0hoXc0Y.js.map +1 -0
  81. package/dist/chunks/PaintInput-jQRxM95Y.js +132 -0
  82. package/dist/chunks/PaintInput-jQRxM95Y.js.map +1 -0
  83. package/dist/chunks/PatternPicker-CaMYXzhF.js +135 -0
  84. package/dist/chunks/PatternPicker-CaMYXzhF.js.map +1 -0
  85. package/dist/chunks/{Plot2D-CTXHkL5p.js → Plot2D-BHNbgCAl.js} +7 -7
  86. package/dist/chunks/Plot2D-BHNbgCAl.js.map +1 -0
  87. package/dist/chunks/{PointPlotter-Bxo6haKe.js → PointPlotter-BZ_vk6gV.js} +2 -2
  88. package/dist/chunks/{PointPlotter-Bxo6haKe.js.map → PointPlotter-BZ_vk6gV.js.map} +1 -1
  89. package/dist/chunks/{Powerline-ExO5GwEr.js → Powerline-6wIFmDik.js} +2 -2
  90. package/dist/chunks/{Powerline-ExO5GwEr.js.map → Powerline-6wIFmDik.js.map} +1 -1
  91. package/dist/chunks/{Prefs-DpqFKiwY.js → Prefs-CkyldX-e.js} +116 -91
  92. package/dist/chunks/Prefs-CkyldX-e.js.map +1 -0
  93. package/dist/chunks/{Properties-D_KzDN9K.js → Properties-D15c8NP-.js} +53 -47
  94. package/dist/chunks/Properties-D15c8NP-.js.map +1 -0
  95. package/dist/chunks/PropertyField-CV_Gw57S.js +686 -0
  96. package/dist/chunks/PropertyField-CV_Gw57S.js.map +1 -0
  97. package/dist/chunks/{RadioGroup-Bh4-12e-.js → RadioGroup-4dbzqvGy.js} +2 -2
  98. package/dist/chunks/{RadioGroup-Bh4-12e-.js.map → RadioGroup-4dbzqvGy.js.map} +1 -1
  99. package/dist/chunks/{RangeSlider-BKRRTPTZ.js → RangeSlider-BxokZViJ.js} +8 -8
  100. package/dist/chunks/RangeSlider-BxokZViJ.js.map +1 -0
  101. package/dist/chunks/RecentColorsProvider-DHcfk25u.js +84 -0
  102. package/dist/chunks/RecentColorsProvider-DHcfk25u.js.map +1 -0
  103. package/dist/chunks/ResizeHandle-CbAgCQOt.js +81 -0
  104. package/dist/chunks/ResizeHandle-CbAgCQOt.js.map +1 -0
  105. package/dist/chunks/Select-BppLsJTz.js +236 -0
  106. package/dist/chunks/Select-BppLsJTz.js.map +1 -0
  107. package/dist/chunks/SelectionPanel-Cm1qu-ZX.js +107 -0
  108. package/dist/chunks/SelectionPanel-Cm1qu-ZX.js.map +1 -0
  109. package/dist/chunks/SidebarPanel-AXQ0jRDx.js +53 -0
  110. package/dist/chunks/SidebarPanel-AXQ0jRDx.js.map +1 -0
  111. package/dist/chunks/Slider-Cl5RCeZ7.js +389 -0
  112. package/dist/chunks/Slider-Cl5RCeZ7.js.map +1 -0
  113. package/dist/chunks/{StatusBar-DzoPDY4k.js → StatusBar-Ca9Dvhhq.js} +6 -6
  114. package/dist/chunks/StatusBar-Ca9Dvhhq.js.map +1 -0
  115. package/dist/chunks/SwatchGrid-9ZPiDmxd.js +78 -0
  116. package/dist/chunks/SwatchGrid-9ZPiDmxd.js.map +1 -0
  117. package/dist/chunks/SwatchStrip-Cw0l8Om7.js +577 -0
  118. package/dist/chunks/SwatchStrip-Cw0l8Om7.js.map +1 -0
  119. package/dist/chunks/ThemeSwitcher-DiBmMh_B.js +38 -0
  120. package/dist/chunks/ThemeSwitcher-DiBmMh_B.js.map +1 -0
  121. package/dist/chunks/{Timeline--58F7MED.js → Timeline-pqnYk5cV.js} +296 -294
  122. package/dist/chunks/Timeline-pqnYk5cV.js.map +1 -0
  123. package/dist/chunks/Toast-C3ozq11V.js +170 -0
  124. package/dist/chunks/Toast-C3ozq11V.js.map +1 -0
  125. package/dist/chunks/{ToggleBar-DTjGeS0Q.js → ToggleBar-Z2jZiguF.js} +13 -15
  126. package/dist/chunks/ToggleBar-Z2jZiguF.js.map +1 -0
  127. package/dist/chunks/{TokenPanel-CMq7uydV.js → TokenPanel-DAkL6vwQ.js} +33 -33
  128. package/dist/chunks/TokenPanel-DAkL6vwQ.js.map +1 -0
  129. package/dist/chunks/{ToolButton-CR4sQlxF.js → ToolButton-BURp4YIO.js} +12 -14
  130. package/dist/chunks/ToolButton-BURp4YIO.js.map +1 -0
  131. package/dist/chunks/{ToolOptionsBar-CtzTlaN2.js → ToolOptionsBar-COsTJ1cu.js} +9 -7
  132. package/dist/chunks/ToolOptionsBar-COsTJ1cu.js.map +1 -0
  133. package/dist/chunks/{ToolPalette-CKG9qY6P.js → ToolPalette-DKDFWOX-.js} +8 -10
  134. package/dist/chunks/ToolPalette-DKDFWOX-.js.map +1 -0
  135. package/dist/chunks/{Tooltip-Clg2mhSt.js → Tooltip-C6eFCYxw.js} +2 -2
  136. package/dist/chunks/{Tooltip-Clg2mhSt.js.map → Tooltip-C6eFCYxw.js.map} +1 -1
  137. package/dist/chunks/{Tree-DVOtc9R5.js → Tree-Cc8lIzgM.js} +2 -2
  138. package/dist/chunks/Tree-Cc8lIzgM.js.map +1 -0
  139. package/dist/chunks/checkbox.module-DLQV9tMX.js +5 -0
  140. package/dist/chunks/checkbox.module-DLQV9tMX.js.map +1 -0
  141. package/dist/chunks/{createKeyframeLayer-Czj6Y235.js → createKeyframeLayer-BTa4LyJE.js} +208 -223
  142. package/dist/chunks/createKeyframeLayer-BTa4LyJE.js.map +1 -0
  143. package/dist/chunks/field.module-Bh7BTKMh.js +15 -0
  144. package/dist/chunks/field.module-Bh7BTKMh.js.map +1 -0
  145. package/dist/chunks/formatShortcut-DRQrVThu.js.map +1 -1
  146. package/dist/chunks/handles-CqVANLtu.js +17 -0
  147. package/dist/chunks/handles-CqVANLtu.js.map +1 -0
  148. package/dist/chunks/{icons-Dk8SRS8g.js → icons-Dr2-r30x.js} +2 -2
  149. package/dist/chunks/icons-Dr2-r30x.js.map +1 -0
  150. package/dist/chunks/listbox.module-BcdVJMbm.js +8 -0
  151. package/dist/chunks/listbox.module-BcdVJMbm.js.map +1 -0
  152. package/dist/chunks/model-B1-gMBIW.js +386 -0
  153. package/dist/chunks/model-B1-gMBIW.js.map +1 -0
  154. package/dist/chunks/{portalHost-yTOVuCej.js → portalHost-CE70wLzo.js} +10 -6
  155. package/dist/chunks/portalHost-CE70wLzo.js.map +1 -0
  156. package/dist/chunks/prefField-BE_Ytr2H.js +229 -0
  157. package/dist/chunks/prefField-BE_Ytr2H.js.map +1 -0
  158. package/dist/chunks/{segmentTooltip-CStYHKzd.js → segmentTooltip-CGxCOWNz.js} +2 -2
  159. package/dist/chunks/{segmentTooltip-CStYHKzd.js.map → segmentTooltip-CGxCOWNz.js.map} +1 -1
  160. package/dist/chunks/segmentedControl.module-BzGXUL5G.js +11 -0
  161. package/dist/chunks/segmentedControl.module-BzGXUL5G.js.map +1 -0
  162. package/dist/chunks/useReorderDragList-CStYKjHl.js +133 -0
  163. package/dist/chunks/useReorderDragList-CStYKjHl.js.map +1 -0
  164. package/dist/chunks/useRovingTabIndex-D7u22Ia_.js +91 -0
  165. package/dist/chunks/useRovingTabIndex-D7u22Ia_.js.map +1 -0
  166. package/dist/components/ActionBar/ActionBar.d.ts.map +1 -1
  167. package/dist/components/ActionBar/index.js +1 -1
  168. package/dist/components/Badge/bases/ChamferedRect.d.ts.map +1 -1
  169. package/dist/components/Badge/bases/Powerline.d.ts.map +1 -1
  170. package/dist/components/Badge/bases/edgeProfiles.d.ts +31 -4
  171. package/dist/components/Badge/bases/edgeProfiles.d.ts.map +1 -1
  172. package/dist/components/Badge/index.d.ts +1 -0
  173. package/dist/components/Badge/index.d.ts.map +1 -1
  174. package/dist/components/Badge/index.js +3 -2
  175. package/dist/components/Badge/statusIcons.d.ts +5 -0
  176. package/dist/components/Badge/statusIcons.d.ts.map +1 -0
  177. package/dist/components/BandEditor/BandEditor.d.ts +17 -7
  178. package/dist/components/BandEditor/BandEditor.d.ts.map +1 -1
  179. package/dist/components/BandEditor/bands.d.ts +5 -2
  180. package/dist/components/BandEditor/bands.d.ts.map +1 -1
  181. package/dist/components/BandEditor/index.js +1 -1
  182. package/dist/components/Button/index.js +1 -1
  183. package/dist/components/ButtonBar/ButtonBar.d.ts.map +1 -1
  184. package/dist/components/ButtonBar/index.js +1 -1
  185. package/dist/components/Callout/Callout.d.ts +2 -2
  186. package/dist/components/Callout/Callout.d.ts.map +1 -1
  187. package/dist/components/Callout/index.js +1 -1
  188. package/dist/components/Checkbox/Checkbox.d.ts +28 -13
  189. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
  190. package/dist/components/Checkbox/index.js +1 -1
  191. package/dist/components/CloseButton/CloseButton.d.ts +21 -0
  192. package/dist/components/CloseButton/CloseButton.d.ts.map +1 -0
  193. package/dist/components/CloseButton/index.d.ts +3 -0
  194. package/dist/components/CloseButton/index.d.ts.map +1 -0
  195. package/dist/components/CloseButton/index.js +2 -0
  196. package/dist/components/ColorField/ColorField.d.ts +5 -1
  197. package/dist/components/ColorField/ColorField.d.ts.map +1 -1
  198. package/dist/components/ColorField/OpacityRange.d.ts +18 -0
  199. package/dist/components/ColorField/OpacityRange.d.ts.map +1 -0
  200. package/dist/components/ColorField/index.js +1 -1
  201. package/dist/components/ColorModeControl/index.js +1 -1
  202. package/dist/components/ComboBox/ComboBox.d.ts +7 -0
  203. package/dist/components/ComboBox/ComboBox.d.ts.map +1 -1
  204. package/dist/components/ComboBox/index.js +1 -1
  205. package/dist/components/CurveEditor/CurveEditor.d.ts.map +1 -1
  206. package/dist/components/CurveEditor/LayeredCurveEditor.d.ts.map +1 -1
  207. package/dist/components/CurveEditor/index.js +2 -2
  208. package/dist/components/DataGrid/index.js +1 -1
  209. package/dist/components/DetailList/DetailList.d.ts +31 -5
  210. package/dist/components/DetailList/DetailList.d.ts.map +1 -1
  211. package/dist/components/DetailList/index.d.ts +1 -1
  212. package/dist/components/DetailList/index.d.ts.map +1 -1
  213. package/dist/components/DetailList/index.js +1 -1
  214. package/dist/components/DetentSlider/index.js +1 -1
  215. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  216. package/dist/components/Dialog/index.js +1 -1
  217. package/dist/components/Disclosure/Disclosure.d.ts +1 -1
  218. package/dist/components/Disclosure/index.js +1 -1
  219. package/dist/components/DragGhost/index.js +1 -1
  220. package/dist/components/{DragHandleGlyph/DragHandleGlyph.d.ts → DragGrip/DragGrip.d.ts} +4 -4
  221. package/dist/components/DragGrip/DragGrip.d.ts.map +1 -0
  222. package/dist/components/DragGrip/index.d.ts +3 -0
  223. package/dist/components/DragGrip/index.d.ts.map +1 -0
  224. package/dist/components/DragGrip/index.js +2 -0
  225. package/dist/components/FallthroughDiagram/FallthroughDiagram.d.ts +14 -0
  226. package/dist/components/FallthroughDiagram/FallthroughDiagram.d.ts.map +1 -0
  227. package/dist/components/FallthroughDiagram/fixtures.d.ts +17 -0
  228. package/dist/components/FallthroughDiagram/fixtures.d.ts.map +1 -0
  229. package/dist/components/FallthroughDiagram/index.d.ts +3 -0
  230. package/dist/components/FallthroughDiagram/index.d.ts.map +1 -0
  231. package/dist/components/FallthroughDiagram/index.js +2 -0
  232. package/dist/components/Field/index.js +1 -1
  233. package/dist/components/FillStrokeSwatch/FillStrokeSwatch.d.ts.map +1 -1
  234. package/dist/components/FillStrokeSwatch/index.js +1 -1
  235. package/dist/components/FontFamilySelect/FontFamilySelect.d.ts +20 -0
  236. package/dist/components/FontFamilySelect/FontFamilySelect.d.ts.map +1 -1
  237. package/dist/components/FontFamilySelect/index.js +1 -1
  238. package/dist/components/FontWeightSelect/FontWeightSelect.d.ts +26 -0
  239. package/dist/components/FontWeightSelect/FontWeightSelect.d.ts.map +1 -0
  240. package/dist/components/FontWeightSelect/index.d.ts +3 -0
  241. package/dist/components/FontWeightSelect/index.d.ts.map +1 -0
  242. package/dist/components/FontWeightSelect/index.js +2 -0
  243. package/dist/components/GestureRoute/GestureRoute.d.ts +19 -0
  244. package/dist/components/GestureRoute/GestureRoute.d.ts.map +1 -0
  245. package/dist/components/GestureRoute/index.d.ts +3 -0
  246. package/dist/components/GestureRoute/index.d.ts.map +1 -0
  247. package/dist/components/GestureRoute/index.js +2 -0
  248. package/dist/components/GradientEditor/GradientEditor.d.ts +22 -8
  249. package/dist/components/GradientEditor/GradientEditor.d.ts.map +1 -1
  250. package/dist/components/GradientEditor/GradientHandles.d.ts +1 -8
  251. package/dist/components/GradientEditor/GradientHandles.d.ts.map +1 -1
  252. package/dist/components/GradientEditor/SceneGradientHandles.d.ts +7 -5
  253. package/dist/components/GradientEditor/SceneGradientHandles.d.ts.map +1 -1
  254. package/dist/components/GradientEditor/handleOverlay.d.ts +41 -0
  255. package/dist/components/GradientEditor/handleOverlay.d.ts.map +1 -0
  256. package/dist/components/GradientEditor/index.js +1 -1
  257. package/dist/components/InlineRange/index.js +1 -1
  258. package/dist/components/Input/Input.d.ts +1 -1
  259. package/dist/components/Input/Input.d.ts.map +1 -1
  260. package/dist/components/Input/index.js +1 -1
  261. package/dist/components/ItemList/ItemList.d.ts +32 -31
  262. package/dist/components/ItemList/ItemList.d.ts.map +1 -1
  263. package/dist/components/ItemList/index.js +1 -1
  264. package/dist/components/Jog/index.js +1 -1
  265. package/dist/components/Keycaps/Keycaps.d.ts +11 -5
  266. package/dist/components/Keycaps/Keycaps.d.ts.map +1 -1
  267. package/dist/components/Keycaps/index.d.ts +1 -1
  268. package/dist/components/Keycaps/index.d.ts.map +1 -1
  269. package/dist/components/Keycaps/index.js +1 -1
  270. package/dist/components/LayerList/LayerList.d.ts +1 -1
  271. package/dist/components/LayerList/LayerList.d.ts.map +1 -1
  272. package/dist/components/LayerList/index.js +1 -1
  273. package/dist/components/ListEditor/ListEditor.d.ts.map +1 -1
  274. package/dist/components/ListEditor/index.js +1 -1
  275. package/dist/components/MenuButton/MenuButton.d.ts.map +1 -1
  276. package/dist/components/MenuButton/index.js +1 -1
  277. package/dist/components/MeshEditor/MeshEditor.d.ts +4 -3
  278. package/dist/components/MeshEditor/MeshEditor.d.ts.map +1 -1
  279. package/dist/components/MeshEditor/MeshHandles.d.ts +38 -0
  280. package/dist/components/MeshEditor/MeshHandles.d.ts.map +1 -0
  281. package/dist/components/MeshEditor/index.d.ts +2 -0
  282. package/dist/components/MeshEditor/index.d.ts.map +1 -1
  283. package/dist/components/MeshEditor/index.js +2 -2
  284. package/dist/components/NumberField/NumberField.d.ts +1 -1
  285. package/dist/components/NumberField/NumberField.d.ts.map +1 -1
  286. package/dist/components/NumberField/UnitField.d.ts +20 -7
  287. package/dist/components/NumberField/UnitField.d.ts.map +1 -1
  288. package/dist/components/NumberField/index.js +1 -1
  289. package/dist/components/OptionsBar/OptionsBar.d.ts.map +1 -1
  290. package/dist/components/OptionsBar/index.js +1 -1
  291. package/dist/components/PaintField/PaintField.d.ts.map +1 -1
  292. package/dist/components/PaintField/index.js +1 -1
  293. package/dist/components/PaintInput/PaintInput.d.ts.map +1 -1
  294. package/dist/components/PaintInput/index.js +1 -1
  295. package/dist/components/PatternPicker/PatternPicker.d.ts +6 -5
  296. package/dist/components/PatternPicker/PatternPicker.d.ts.map +1 -1
  297. package/dist/components/PatternPicker/index.js +1 -1
  298. package/dist/components/Plot2D/index.js +1 -1
  299. package/dist/components/PointPlotter/index.js +1 -1
  300. package/dist/components/Powerline/index.d.ts +1 -1
  301. package/dist/components/Powerline/index.d.ts.map +1 -1
  302. package/dist/components/Powerline/index.js +2 -2
  303. package/dist/components/Prefs/PrefsForm.d.ts +8 -0
  304. package/dist/components/Prefs/PrefsForm.d.ts.map +1 -1
  305. package/dist/components/Prefs/PrefsRail.d.ts +3 -2
  306. package/dist/components/Prefs/PrefsRail.d.ts.map +1 -1
  307. package/dist/components/Prefs/PrefsRow.d.ts.map +1 -1
  308. package/dist/components/Prefs/index.d.ts +1 -1
  309. package/dist/components/Prefs/index.d.ts.map +1 -1
  310. package/dist/components/Prefs/index.js +2 -2
  311. package/dist/components/Prefs/prefField.d.ts +13 -0
  312. package/dist/components/Prefs/prefField.d.ts.map +1 -1
  313. package/dist/components/Prefs/schema.d.ts +2 -2
  314. package/dist/components/Prefs/schema.d.ts.map +1 -1
  315. package/dist/components/Properties/PropertyField.d.ts +35 -32
  316. package/dist/components/Properties/PropertyField.d.ts.map +1 -1
  317. package/dist/components/Properties/PropertyGroup.d.ts.map +1 -1
  318. package/dist/components/Properties/PropertyPanel.d.ts +1 -8
  319. package/dist/components/Properties/PropertyPanel.d.ts.map +1 -1
  320. package/dist/components/Properties/index.d.ts +1 -1
  321. package/dist/components/Properties/index.d.ts.map +1 -1
  322. package/dist/components/Properties/index.js +3 -3
  323. package/dist/components/RadioGroup/index.js +1 -1
  324. package/dist/components/RangeSlider/index.js +1 -1
  325. package/dist/components/RecentColors/RecentColorsProvider.d.ts +24 -0
  326. package/dist/components/RecentColors/RecentColorsProvider.d.ts.map +1 -0
  327. package/dist/components/RecentColors/index.d.ts +5 -0
  328. package/dist/components/RecentColors/index.d.ts.map +1 -0
  329. package/dist/components/RecentColors/index.js +2 -0
  330. package/dist/components/RecentColors/recentColors.d.ts +39 -0
  331. package/dist/components/RecentColors/recentColors.d.ts.map +1 -0
  332. package/dist/components/ResizeHandle/ResizeHandle.d.ts.map +1 -1
  333. package/dist/components/ResizeHandle/index.js +1 -1
  334. package/dist/components/Select/Select.d.ts +6 -2
  335. package/dist/components/Select/Select.d.ts.map +1 -1
  336. package/dist/components/Select/index.js +1 -1
  337. package/dist/components/SelectionPanel/SelectionPanel.d.ts.map +1 -1
  338. package/dist/components/SelectionPanel/index.js +2 -2
  339. package/dist/components/SelectionPanel/renderLeaf.d.ts +17 -0
  340. package/dist/components/SelectionPanel/renderLeaf.d.ts.map +1 -1
  341. package/dist/components/SidebarPanel/SidebarPanel.d.ts +1 -1
  342. package/dist/components/SidebarPanel/SidebarPanel.d.ts.map +1 -1
  343. package/dist/components/SidebarPanel/index.js +1 -1
  344. package/dist/components/Slider/Slider.d.ts +19 -2
  345. package/dist/components/Slider/Slider.d.ts.map +1 -1
  346. package/dist/components/Slider/index.js +1 -1
  347. package/dist/components/StatusBar/index.js +1 -1
  348. package/dist/components/SwatchGrid/SwatchGrid.d.ts.map +1 -1
  349. package/dist/components/SwatchGrid/index.js +1 -1
  350. package/dist/components/SwatchStrip/SwatchStrip.d.ts +44 -0
  351. package/dist/components/SwatchStrip/SwatchStrip.d.ts.map +1 -0
  352. package/dist/components/SwatchStrip/index.d.ts +5 -0
  353. package/dist/components/SwatchStrip/index.d.ts.map +1 -0
  354. package/dist/components/SwatchStrip/index.js +2 -0
  355. package/dist/components/SwatchStrip/palettes.d.ts +21 -0
  356. package/dist/components/SwatchStrip/palettes.d.ts.map +1 -0
  357. package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +38 -0
  358. package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts.map +1 -0
  359. package/dist/components/ThemeSwitcher/index.d.ts +3 -0
  360. package/dist/components/ThemeSwitcher/index.d.ts.map +1 -0
  361. package/dist/components/ThemeSwitcher/index.js +2 -0
  362. package/dist/components/Timeline/AnimatedTimeline.d.ts +1 -0
  363. package/dist/components/Timeline/AnimatedTimeline.d.ts.map +1 -1
  364. package/dist/components/Timeline/EasingPicker.d.ts +3 -0
  365. package/dist/components/Timeline/EasingPicker.d.ts.map +1 -1
  366. package/dist/components/Timeline/LaneGraph.d.ts +1 -1
  367. package/dist/components/Timeline/LaneGraph.d.ts.map +1 -1
  368. package/dist/components/Timeline/Timeline.d.ts +10 -1
  369. package/dist/components/Timeline/Timeline.d.ts.map +1 -1
  370. package/dist/components/Timeline/Transport.d.ts +6 -0
  371. package/dist/components/Timeline/Transport.d.ts.map +1 -1
  372. package/dist/components/Timeline/index.js +1 -1
  373. package/dist/components/Timeline/keys.d.ts +1 -0
  374. package/dist/components/Timeline/keys.d.ts.map +1 -1
  375. package/dist/components/Toast/Toast.d.ts +12 -3
  376. package/dist/components/Toast/Toast.d.ts.map +1 -1
  377. package/dist/components/Toast/index.js +1 -1
  378. package/dist/components/ToggleBar/ToggleBar.d.ts.map +1 -1
  379. package/dist/components/ToggleBar/index.js +1 -1
  380. package/dist/components/TokenPanel/index.js +1 -1
  381. package/dist/components/TokenPanel/tokenTypes.d.ts +1 -0
  382. package/dist/components/TokenPanel/tokenTypes.d.ts.map +1 -1
  383. package/dist/components/ToolButton/ToolButton.d.ts +1 -10
  384. package/dist/components/ToolButton/ToolButton.d.ts.map +1 -1
  385. package/dist/components/ToolButton/index.js +1 -1
  386. package/dist/components/ToolOptionsBar/index.js +1 -1
  387. package/dist/components/ToolPalette/ToolPalette.d.ts +2 -1
  388. package/dist/components/ToolPalette/ToolPalette.d.ts.map +1 -1
  389. package/dist/components/ToolPalette/formatShortcut.d.ts +2 -0
  390. package/dist/components/ToolPalette/formatShortcut.d.ts.map +1 -1
  391. package/dist/components/ToolPalette/index.js +1 -1
  392. package/dist/components/Tooltip/index.js +1 -1
  393. package/dist/components/Tree/Tree.d.ts +27 -26
  394. package/dist/components/Tree/Tree.d.ts.map +1 -1
  395. package/dist/components/Tree/index.js +1 -1
  396. package/dist/components/spin.d.ts +16 -0
  397. package/dist/components/spin.d.ts.map +1 -0
  398. package/dist/components/stanceSurfaces.d.ts.map +1 -1
  399. package/dist/icons/index.d.ts +51 -2
  400. package/dist/icons/index.d.ts.map +1 -1
  401. package/dist/icons/paths.d.ts +12 -0
  402. package/dist/icons/paths.d.ts.map +1 -1
  403. package/dist/index.d.ts +9 -3
  404. package/dist/index.d.ts.map +1 -1
  405. package/dist/index.js +98 -111
  406. package/dist/index.js.map +1 -1
  407. package/dist/overlays/portalHost.d.ts +6 -0
  408. package/dist/overlays/portalHost.d.ts.map +1 -1
  409. package/dist/paintGradientTrack.d.ts +5 -2
  410. package/dist/paintGradientTrack.d.ts.map +1 -1
  411. package/dist/style.css +1 -1
  412. package/dist/useAsyncOptions.d.ts.map +1 -1
  413. package/dist/useReorderDragList.d.ts +1 -1
  414. package/dist/useReorderDragList.d.ts.map +1 -1
  415. package/dist/useRovingTabIndex.d.ts +40 -39
  416. package/dist/useRovingTabIndex.d.ts.map +1 -1
  417. package/package.json +9 -8
  418. package/dist/chunks/ActionBar-DCq16yFA.js +0 -57
  419. package/dist/chunks/ActionBar-DCq16yFA.js.map +0 -1
  420. package/dist/chunks/Badge-CyAIZSDo.js.map +0 -1
  421. package/dist/chunks/BandEditor-Dhm_Xrlr.js +0 -248
  422. package/dist/chunks/BandEditor-Dhm_Xrlr.js.map +0 -1
  423. package/dist/chunks/Callout-yEn9iPlh.js +0 -119
  424. package/dist/chunks/Callout-yEn9iPlh.js.map +0 -1
  425. package/dist/chunks/Checkbox-DHXTUHO9.js +0 -47
  426. package/dist/chunks/Checkbox-DHXTUHO9.js.map +0 -1
  427. package/dist/chunks/ColorField-BcMcW8Sa.js +0 -60
  428. package/dist/chunks/ColorField-BcMcW8Sa.js.map +0 -1
  429. package/dist/chunks/ComboBox-DpT8lc3p.js +0 -138
  430. package/dist/chunks/ComboBox-DpT8lc3p.js.map +0 -1
  431. package/dist/chunks/CurveEditor-BDJXjEvK.js.map +0 -1
  432. package/dist/chunks/DataGrid-D-dZj1BD.js.map +0 -1
  433. package/dist/chunks/DetailList-BMER1LUZ.js +0 -43
  434. package/dist/chunks/DetailList-BMER1LUZ.js.map +0 -1
  435. package/dist/chunks/Dialog-BWyNMgpf.js +0 -66
  436. package/dist/chunks/Dialog-BWyNMgpf.js.map +0 -1
  437. package/dist/chunks/Disclosure-0G0uh2fa.js.map +0 -1
  438. package/dist/chunks/DragHandleGlyph-Dr7Fgo0I.js.map +0 -1
  439. package/dist/chunks/Field--onYxXTF.js +0 -32
  440. package/dist/chunks/Field--onYxXTF.js.map +0 -1
  441. package/dist/chunks/FillStrokeSwatch-DNb0KXPk.js +0 -111
  442. package/dist/chunks/FillStrokeSwatch-DNb0KXPk.js.map +0 -1
  443. package/dist/chunks/FontFamilySelect-DXlMKWfK.js.map +0 -1
  444. package/dist/chunks/GradientEditor-B3a-MsVJ.js +0 -335
  445. package/dist/chunks/GradientEditor-B3a-MsVJ.js.map +0 -1
  446. package/dist/chunks/Icon-Cgzy8VgC.js.map +0 -1
  447. package/dist/chunks/InlineRange-eOj6JpJl.js.map +0 -1
  448. package/dist/chunks/Input-CHmkfYaD.js.map +0 -1
  449. package/dist/chunks/ItemList-Cm-HUWCi.js.map +0 -1
  450. package/dist/chunks/Jog-DESxZ44P.js.map +0 -1
  451. package/dist/chunks/Keycaps-C0H_v2gO.js.map +0 -1
  452. package/dist/chunks/LayerList-nz-QYvTF.js.map +0 -1
  453. package/dist/chunks/ListEditor-BQ6AV3Ac.js +0 -74
  454. package/dist/chunks/ListEditor-BQ6AV3Ac.js.map +0 -1
  455. package/dist/chunks/MenuButton-DtaGenKf.js +0 -70
  456. package/dist/chunks/MenuButton-DtaGenKf.js.map +0 -1
  457. package/dist/chunks/MeshEditor-qqGc6hlD.js +0 -87
  458. package/dist/chunks/MeshEditor-qqGc6hlD.js.map +0 -1
  459. package/dist/chunks/NumberField-CwJOMmQR.js +0 -117
  460. package/dist/chunks/NumberField-CwJOMmQR.js.map +0 -1
  461. package/dist/chunks/PaintField-DaJukRc6.js +0 -62
  462. package/dist/chunks/PaintField-DaJukRc6.js.map +0 -1
  463. package/dist/chunks/PaintInput-Byhna3H-.js +0 -131
  464. package/dist/chunks/PaintInput-Byhna3H-.js.map +0 -1
  465. package/dist/chunks/PatternPicker-B-cUt-JT.js +0 -93
  466. package/dist/chunks/PatternPicker-B-cUt-JT.js.map +0 -1
  467. package/dist/chunks/Plot2D-CTXHkL5p.js.map +0 -1
  468. package/dist/chunks/Prefs-DpqFKiwY.js.map +0 -1
  469. package/dist/chunks/Properties-D_KzDN9K.js.map +0 -1
  470. package/dist/chunks/PropertyField-DGCecAnV.js +0 -758
  471. package/dist/chunks/PropertyField-DGCecAnV.js.map +0 -1
  472. package/dist/chunks/RangeSlider-BKRRTPTZ.js.map +0 -1
  473. package/dist/chunks/ResizeHandle-BKT0XYpx.js +0 -79
  474. package/dist/chunks/ResizeHandle-BKT0XYpx.js.map +0 -1
  475. package/dist/chunks/Select-CzyfaXzp.js +0 -225
  476. package/dist/chunks/Select-CzyfaXzp.js.map +0 -1
  477. package/dist/chunks/SelectionPanel-BgUM1h03.js +0 -103
  478. package/dist/chunks/SelectionPanel-BgUM1h03.js.map +0 -1
  479. package/dist/chunks/SidebarPanel-aoIqxbtq.js +0 -55
  480. package/dist/chunks/SidebarPanel-aoIqxbtq.js.map +0 -1
  481. package/dist/chunks/Slider-CFwQYQ10.js +0 -383
  482. package/dist/chunks/Slider-CFwQYQ10.js.map +0 -1
  483. package/dist/chunks/StatusBar-DzoPDY4k.js.map +0 -1
  484. package/dist/chunks/SwatchGrid-BARC3rnF.js +0 -73
  485. package/dist/chunks/SwatchGrid-BARC3rnF.js.map +0 -1
  486. package/dist/chunks/Timeline--58F7MED.js.map +0 -1
  487. package/dist/chunks/Toast-DNBb-24H.js +0 -128
  488. package/dist/chunks/Toast-DNBb-24H.js.map +0 -1
  489. package/dist/chunks/ToggleBar-DTjGeS0Q.js.map +0 -1
  490. package/dist/chunks/TokenPanel-CMq7uydV.js.map +0 -1
  491. package/dist/chunks/ToolButton-CR4sQlxF.js.map +0 -1
  492. package/dist/chunks/ToolOptionsBar-CtzTlaN2.js.map +0 -1
  493. package/dist/chunks/ToolPalette-CKG9qY6P.js.map +0 -1
  494. package/dist/chunks/Tree-DVOtc9R5.js.map +0 -1
  495. package/dist/chunks/createKeyframeLayer-Czj6Y235.js.map +0 -1
  496. package/dist/chunks/icons-Dk8SRS8g.js.map +0 -1
  497. package/dist/chunks/model-Du7Lta4C.js +0 -360
  498. package/dist/chunks/model-Du7Lta4C.js.map +0 -1
  499. package/dist/chunks/number-D3NEx_8r.js +0 -89
  500. package/dist/chunks/number-D3NEx_8r.js.map +0 -1
  501. package/dist/chunks/portalHost-yTOVuCej.js.map +0 -1
  502. package/dist/chunks/prefField-Dnl7nmjQ.js +0 -197
  503. package/dist/chunks/prefField-Dnl7nmjQ.js.map +0 -1
  504. package/dist/chunks/segmentedControl.module-Bv7DEg8f.js +0 -11
  505. package/dist/chunks/segmentedControl.module-Bv7DEg8f.js.map +0 -1
  506. package/dist/chunks/useReorderDragList-B_-5L5Gu.js +0 -131
  507. package/dist/chunks/useReorderDragList-B_-5L5Gu.js.map +0 -1
  508. package/dist/chunks/useRovingTabIndex-Bp_hYm_h.js +0 -65
  509. package/dist/chunks/useRovingTabIndex-Bp_hYm_h.js.map +0 -1
  510. package/dist/components/DragHandleGlyph/DragHandleGlyph.d.ts.map +0 -1
  511. package/dist/components/DragHandleGlyph/index.d.ts +0 -3
  512. package/dist/components/DragHandleGlyph/index.d.ts.map +0 -1
  513. package/dist/components/DragHandleGlyph/index.js +0 -2
  514. package/dist/format/number.d.ts +0 -56
  515. package/dist/format/number.d.ts.map +0 -1
  516. package/dist/icons/ShapeKindIcon.d.ts +0 -10
  517. package/dist/icons/ShapeKindIcon.d.ts.map +0 -1
@@ -1,68 +1,69 @@
1
- import { rt as e, st as t } from "./icons-Dk8SRS8g.js";
2
- import { n } from "./Disclosure-0G0uh2fa.js";
3
- import { r } from "./Plot2D-CTXHkL5p.js";
4
- import { i, n as a, t as o } from "./createKeyframeLayer-Czj6Y235.js";
1
+ import { rt as e, st as t } from "./icons-Dr2-r30x.js";
2
+ import { n } from "./Disclosure-Ch2KxYuB.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-CL8TlX3S.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
- var w = {
11
- ruler: "_ruler_g66rp_1",
12
- tick: "_tick_g66rp_11",
13
- playhead: "_playhead_g66rp_29",
14
- lane: "_lane_g66rp_38",
15
- laneLabel: "_laneLabel_g66rp_45",
16
- disclosure: "_disclosure_g66rp_65",
17
- laneTrack: "_laneTrack_g66rp_67",
18
- key: "_key_g66rp_74",
19
- eventMark: "_eventMark_g66rp_74",
20
- keyGhost: "_keyGhost_g66rp_94",
21
- eventGhost: "_eventGhost_g66rp_94",
22
- graphHost: "_graphHost_g66rp_111",
23
- graph: "_graph_g66rp_111",
24
- nestedBar: "_nestedBar_g66rp_130",
25
- transport: "_transport_g66rp_139",
26
- transportButton: "_transportButton_g66rp_148",
27
- transportRow: "_transportRow_g66rp_174",
28
- time: "_time_g66rp_192",
29
- rate: "_rate_g66rp_198",
30
- rateSlider: "_rateSlider_g66rp_199",
31
- rateReadout: "_rateReadout_g66rp_203",
32
- root: "_root_g66rp_209",
33
- label: "_label_g66rp_224",
34
- body: "_body_g66rp_226",
35
- gutter: "_gutter_g66rp_46",
36
- rulerWrap: "_rulerWrap_g66rp_228",
37
- lanes: "_lanes_g66rp_230",
38
- inspector: "_inspector_g66rp_237",
39
- segment: "_segment_g66rp_246",
40
- easingPicker: "_easingPicker_g66rp_256",
41
- easingLabel: "_easingLabel_g66rp_257",
42
- easingPreview: "_easingPreview_g66rp_259"
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"
43
44
  };
44
45
  //#endregion
45
46
  //#region src/components/Timeline/easingSpec.ts
46
- function T(e) {
47
+ function O(e) {
47
48
  return typeof e == "object" && e && "bezier" in e ? e.bezier : null;
48
49
  }
49
- function E(e) {
50
- return e === void 0 ? null : T(e);
50
+ function k(e) {
51
+ return e === void 0 ? null : O(e);
51
52
  }
52
- function D(e) {
53
+ function A(e) {
53
54
  if (e === void 0) return "linear";
54
55
  if (typeof e == "string") return e;
55
- let t = T(e);
56
+ let t = O(e);
56
57
  if (t) return `cubic-bezier(${t.join(", ")})`;
57
58
  for (let [t, n] of Object.entries(l)) if (n === e) return t;
58
59
  return "custom";
59
60
  }
60
- function O(e, t) {
61
+ function j(e, t) {
61
62
  let n = d(e), r = Array(t), i = t - 1;
62
63
  for (let e = 0; e < t; e++) r[e] = n(i === 0 ? 0 : e / i);
63
64
  return r;
64
65
  }
65
- var k = Object.keys(l), A = 24, j = {
66
+ var M = Object.keys(l), N = 24, P = {
66
67
  linear: [
67
68
  0,
68
69
  0,
@@ -123,50 +124,50 @@ var k = Object.keys(l), A = 24, j = {
123
124
  .63,
124
125
  1
125
126
  ]
126
- }, M = [
127
+ }, F = [
127
128
  .25,
128
129
  .1,
129
130
  .25,
130
131
  1
131
132
  ];
132
- function N(e) {
133
- let { value: t, onChange: n } = e, r = E(t), i = D(t), a = r === null && k.includes(i), o = r === null ? a ? i : "linear" : "custom", s = O(t, A).map((e, t) => `${t / 23 * 100},${100 - e * 100}`).join(" ");
134
- return /* @__PURE__ */ g("div", {
135
- className: w.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,
136
137
  children: [
137
- /* @__PURE__ */ g("label", { children: ["Easing", /* @__PURE__ */ g("select", {
138
+ /* @__PURE__ */ _("label", { children: ["Easing", /* @__PURE__ */ _("select", {
138
139
  value: o,
139
140
  onChange: (e) => n(e.target.value === "linear" ? void 0 : e.target.value),
140
141
  children: [
141
- /* @__PURE__ */ h("option", {
142
+ /* @__PURE__ */ g("option", {
142
143
  value: "linear",
143
144
  children: "linear"
144
145
  }),
145
- k.filter((e) => e !== "linear").map((e) => /* @__PURE__ */ h("option", {
146
+ M.filter((e) => e !== "linear").map((e) => /* @__PURE__ */ g("option", {
146
147
  value: e,
147
148
  children: e
148
149
  }, e)),
149
- r === null ? null : /* @__PURE__ */ h("option", {
150
+ r === null ? null : /* @__PURE__ */ g("option", {
150
151
  value: "custom",
151
152
  children: "custom"
152
153
  })
153
154
  ]
154
155
  })] }),
155
- r === null ? /* @__PURE__ */ h("button", {
156
+ r === null ? /* @__PURE__ */ g("button", {
156
157
  type: "button",
157
- className: w.transportButton,
158
- onClick: () => n({ bezier: j[o] ?? M }),
158
+ className: D.transportButton,
159
+ onClick: () => n({ bezier: P[o] ?? F }),
159
160
  children: "Convert to bezier"
160
- }) : /* @__PURE__ */ h("span", {
161
- className: w.easingLabel,
161
+ }) : /* @__PURE__ */ g("span", {
162
+ className: D.easingLabel,
162
163
  children: i
163
164
  }),
164
- /* @__PURE__ */ h("svg", {
165
- className: w.easingPreview,
165
+ /* @__PURE__ */ g("svg", {
166
+ className: D.easingPreview,
166
167
  "data-testid": "easing-preview",
167
168
  viewBox: "0 0 100 100",
168
169
  preserveAspectRatio: "none",
169
- children: /* @__PURE__ */ h("polyline", {
170
+ children: /* @__PURE__ */ g("polyline", {
170
171
  points: s,
171
172
  vectorEffect: "non-scaling-stroke"
172
173
  })
@@ -176,8 +177,8 @@ function N(e) {
176
177
  }
177
178
  //#endregion
178
179
  //#region src/components/Timeline/timeScale.ts
179
- var P = 1;
180
- function F(e, t) {
180
+ var L = 1;
181
+ function R(e, t) {
181
182
  let n = e.to - e.from, r = n === 0 ? 0 : t / n, i = t === 0 ? 0 : n / t;
182
183
  return {
183
184
  window: e,
@@ -186,36 +187,36 @@ function F(e, t) {
186
187
  toMs: (t) => e.from + t * i
187
188
  };
188
189
  }
189
- function I(e, t) {
190
+ function ee(e, t) {
190
191
  let n = e.to - e.from;
191
192
  return n === 0 ? 0 : (t - e.from) / n;
192
193
  }
193
- function L(e, t) {
194
- return `${I(e, t) * 100}%`;
194
+ function z(e, t) {
195
+ return `${ee(e, t) * 100}%`;
195
196
  }
196
- function R(e, t) {
197
+ function te(e, t) {
197
198
  let n = e.to - e.from;
198
199
  return n === 0 ? 0 : t / n;
199
200
  }
200
- function z(e, t) {
201
- return `${R(e, t) * 100}%`;
202
- }
203
201
  function B(e, t) {
202
+ return `${te(e, t) * 100}%`;
203
+ }
204
+ function V(e, t) {
204
205
  let n = Math.min(e.to - e.from, t.to - t.from), r = e.from;
205
206
  return r < t.from && (r = t.from), r + n > t.to && (r = t.to - n), {
206
207
  from: r,
207
208
  to: r + n
208
209
  };
209
210
  }
210
- function V(e, t, n, r) {
211
- let i = e.to - e.from, a = r.to - r.from, o = Math.min(a, Math.max(P, i * n)), s = i === 0 ? .5 : (t - e.from) / i;
212
- return B({
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
+ return V({
213
214
  from: t - s * o,
214
215
  to: t + (1 - s) * o
215
216
  }, r);
216
217
  }
217
- function ee(e, t, n) {
218
- return B({
218
+ function re(e, t, n) {
219
+ return V({
219
220
  from: e.from + t,
220
221
  to: e.to + t
221
222
  }, n);
@@ -229,22 +230,22 @@ function H(e, t, n) {
229
230
  }
230
231
  //#endregion
231
232
  //#region src/components/Timeline/LaneGraph.tsx
232
- var te = 8, ne = 10;
233
- function re(e) {
234
- let t = e.map((e) => e.value), n = Math.min(...t), r = Math.max(...t) - n || 1, i = r * te / 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;
235
236
  return [n - i, n + r + i];
236
237
  }
237
- function ie(e) {
238
- 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({
239
240
  width: 0,
240
241
  height: 0
241
242
  });
242
- y(() => {
243
- let e = g.current;
243
+ b(() => {
244
+ let e = _.current;
244
245
  if (!e) return;
245
246
  let t = () => {
246
247
  let t = e.getBoundingClientRect();
247
- v((e) => e.width === t.width && e.height === t.height ? e : {
248
+ y((e) => e.width === t.width && e.height === t.height ? e : {
248
249
  width: t.width,
249
250
  height: t.height
250
251
  });
@@ -253,18 +254,18 @@ function ie(e) {
253
254
  let n = new ResizeObserver(t);
254
255
  return n.observe(e), () => n.disconnect();
255
256
  }, []);
256
- let x = b(() => a({
257
+ let S = x(() => a({
257
258
  id: "keys",
258
259
  label: n,
259
260
  formatX: (e) => `${Math.round(e)} ms`,
260
261
  snapX: c.map((e) => e - s),
261
262
  xClamp: [0, Infinity],
262
- step: { x: ne }
263
+ step: { x: ae }
263
264
  }), [
264
265
  n,
265
266
  c,
266
267
  s
267
- ]), T = b(() => ({
268
+ ]), T = x(() => ({
268
269
  keys: t,
269
270
  selectedKey: l,
270
271
  selectedSegment: u,
@@ -273,42 +274,40 @@ function ie(e) {
273
274
  t,
274
275
  l,
275
276
  u
276
- ]), [E, D] = C(null), O = E ?? T, k = S(O);
277
- k.current = O;
278
- let A = b(() => [{
279
- layer: x,
280
- state: O
281
- }], [x, O]), j = (e, t) => {
282
- 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;
283
282
  if (n.selectedKey !== null && n.selectedKey !== r.selectedKey && d(n.selectedKey), n.selectedSegment !== null && n.selectedSegment !== r.selectedSegment && f?.(n.selectedSegment), !n.drag) {
284
- D(null);
283
+ O(null);
285
284
  return;
286
285
  }
287
- if (D(n), n.drag.kind !== "key") return;
286
+ if (O(n), n.drag.kind !== "key") return;
288
287
  let i = o(n).keys;
289
- i !== n.keys && p?.(i);
290
- }, M = (e, t, n) => {
291
- D(null);
288
+ i !== n.keys && m?.(i);
289
+ }, N = (e, t, n) => {
290
+ O(null);
292
291
  let r = t;
293
- r.keys !== n.keys && m(r.keys);
294
- }, [N, P] = re(O.keys), F = _.width > 0 ? H(r, _.width, 64) : [];
295
- return /* @__PURE__ */ h("div", {
296
- ref: g,
297
- className: w.graphHost,
298
- children: _.width > 0 && _.height > 0 ? /* @__PURE__ */ h(i, {
299
- className: w.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,
300
299
  "aria-label": `${n} graph`,
301
- layers: A,
302
- onLayerChange: j,
303
- onLayerCommit: M,
304
- width: _.width,
305
- height: _.height,
300
+ layers: j,
301
+ onLayerChange: M,
302
+ onLayerCommit: N,
303
+ width: v.width,
304
+ height: v.height,
306
305
  xRange: [r.from - s, r.to - s],
307
- yRange: [N, P],
306
+ yRange: [P, F],
308
307
  grid: !1,
309
308
  axes: !1,
310
309
  xTicks: {
311
- values: F.map((e) => e - s),
310
+ values: I.map((e) => e - s),
312
311
  labels: !1
313
312
  },
314
313
  yTicks: {
@@ -321,36 +320,36 @@ function ie(e) {
321
320
  }
322
321
  //#endregion
323
322
  //#region src/components/Timeline/Lane.tsx
324
- var ae = 10;
325
- function oe(e) {
323
+ var ce = 10;
324
+ function le(e) {
326
325
  return e.kind === "sampled" ? e.track.keys.map((e) => e.t) : e.kind === "event" ? e.track.events.map((e) => e.t) : [];
327
326
  }
328
- function se(e) {
329
- 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: T } = e, E = S(null), D = S(null);
330
- v(() => () => {
331
- 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();
332
331
  }, []);
333
- let [O, k] = C(null), A = (e) => L(r, e + t.offset), j = (e) => {
334
- let n = E.current?.getBoundingClientRect();
335
- return n ? F(r, n.width).toMs(e - n.left) - t.offset : r.from;
332
+ let [O, k] = w(null), A = (e) => z(r, e + t.offset), j = (e) => {
333
+ let n = T.current?.getBoundingClientRect();
334
+ return n ? R(r, n.width).toMs(e - n.left) - t.offset : r.from;
336
335
  }, M = () => {
337
- let e = E.current?.getBoundingClientRect().width ?? 0, t = F(r, e);
336
+ let e = T.current?.getBoundingClientRect().width ?? 0, t = R(r, e);
338
337
  return t.toMs(6) - t.toMs(0);
339
- }, N = i === "graph" && t.numeric, P = t.kind === "sampled" ? t.track.keys : [], I = (e) => (n) => {
338
+ }, N = i === "graph" && t.numeric, P = t.kind === "sampled" ? t.track.keys : [], F = (e) => (n) => {
340
339
  if (n.button !== 0) return;
341
340
  n.stopPropagation(), o(e);
342
341
  let r = (e) => {
343
342
  let n = Math.max(0, j(e.clientX));
344
- return e.altKey ? n : s(n + t.offset, _, M()) - t.offset;
343
+ return e.altKey ? n : s(n + t.offset, m, M()) - t.offset;
345
344
  };
346
345
  k({
347
346
  keyIndex: e,
348
- t: B[e]
347
+ t: L[e]
349
348
  });
350
349
  let i = () => {
351
- k(null), D.current = null;
350
+ k(null), E.current = null;
352
351
  };
353
- D.current?.cancel(), D.current = u(n.currentTarget, n, {
352
+ E.current?.cancel(), E.current = u(n.currentTarget, n, {
354
353
  onMove: (t) => {
355
354
  k({
356
355
  keyIndex: e,
@@ -362,69 +361,69 @@ function se(e) {
362
361
  },
363
362
  onCancel: i
364
363
  }, { capture: !1 });
365
- }, R = (e, t) => (n) => {
366
- let r = ae * (n.shiftKey ? 10 : 1);
364
+ }, I = (e, t) => (n) => {
365
+ let r = ce * (n.shiftKey ? 10 : 1);
367
366
  n.key === "ArrowRight" && (n.preventDefault(), l(e, t + r)), n.key === "ArrowLeft" && (n.preventDefault(), l(e, Math.max(0, t - r)));
368
- }, B = oe(t);
369
- return /* @__PURE__ */ g("div", {
370
- className: w.lane,
367
+ }, L = le(t);
368
+ return /* @__PURE__ */ _("div", {
369
+ className: D.lane,
371
370
  "data-depth": t.depth,
372
371
  "data-mode": i,
373
372
  "data-graph": N ? "true" : void 0,
374
- children: [/* @__PURE__ */ g("div", {
375
- className: w.laneLabel,
376
- children: [t.kind === "timeline" ? /* @__PURE__ */ h("span", {
373
+ children: [/* @__PURE__ */ _("div", {
374
+ className: D.laneLabel,
375
+ children: [t.kind === "timeline" ? /* @__PURE__ */ g("span", {
377
376
  role: "button",
378
377
  tabIndex: 0,
379
378
  "aria-expanded": p,
380
379
  "data-testid": "timeline-disclosure",
381
- className: w.disclosure,
380
+ className: D.disclosure,
382
381
  onClick: f,
383
382
  onKeyDown: (e) => {
384
383
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), f());
385
384
  },
386
- children: /* @__PURE__ */ h(n, { open: p })
385
+ children: /* @__PURE__ */ g(n, { open: p })
387
386
  }) : null, t.label]
388
- }), /* @__PURE__ */ h("div", {
389
- className: w.laneTrack,
390
- ref: E,
387
+ }), /* @__PURE__ */ g("div", {
388
+ className: D.laneTrack,
389
+ ref: T,
391
390
  "data-testid": "timeline-lane-track",
392
391
  onDoubleClick: (e) => {
393
392
  t.kind === "sampled" && d(Math.max(0, j(e.clientX)));
394
393
  },
395
- children: N ? /* @__PURE__ */ h(ie, {
394
+ children: N ? /* @__PURE__ */ g(se, {
396
395
  keys: P,
397
396
  label: t.label,
398
397
  window: r,
399
398
  offset: t.offset,
400
- snapTimes: _,
399
+ snapTimes: m,
401
400
  selection: a,
402
- selectedSegment: y,
401
+ selectedSegment: v,
403
402
  onSelect: o,
404
403
  onSelectSegment: b,
405
404
  onKeysInput: x,
406
- onKeysCommit: (e) => T?.(e)
407
- }) : /* @__PURE__ */ g(m, { children: [
408
- t.kind === "timeline" ? /* @__PURE__ */ h("div", {
409
- className: w.nestedBar,
405
+ onKeysCommit: (e) => S?.(e)
406
+ }) : /* @__PURE__ */ _(h, { children: [
407
+ t.kind === "timeline" ? /* @__PURE__ */ g("div", {
408
+ className: D.nestedBar,
410
409
  "data-testid": "timeline-nested",
411
410
  style: {
412
411
  left: A(0),
413
- width: z(r, t.track.timeline.duration ?? 0)
412
+ width: B(r, t.track.timeline.duration ?? 0)
414
413
  }
415
414
  }) : null,
416
415
  t.kind === "sampled" ? P.slice(1).map((e, n) => {
417
416
  let i = n + 1;
418
- return /* @__PURE__ */ h("div", {
417
+ return /* @__PURE__ */ g("div", {
419
418
  role: "button",
420
419
  tabIndex: 0,
421
420
  "aria-label": `${t.label} segment into ${Math.round(e.t)} ms`,
422
- "aria-current": y === i ? "true" : void 0,
421
+ "aria-current": v === i ? "true" : void 0,
423
422
  "data-testid": "timeline-segment",
424
- className: w.segment,
423
+ className: D.segment,
425
424
  style: {
426
425
  left: A(P[i - 1].t),
427
- width: z(r, e.t - P[i - 1].t)
426
+ width: B(r, e.t - P[i - 1].t)
428
427
  },
429
428
  onClick: () => b?.(i),
430
429
  onKeyDown: (e) => {
@@ -432,22 +431,22 @@ function se(e) {
432
431
  }
433
432
  }, `seg-${i}`);
434
433
  }) : null,
435
- B.map((e, n) => /* @__PURE__ */ h("div", {
434
+ L.map((e, n) => /* @__PURE__ */ g("div", {
436
435
  role: "button",
437
436
  tabIndex: 0,
438
437
  "aria-label": `${t.label} key at ${Math.round(e)} ms`,
439
438
  "aria-current": a === n ? "true" : void 0,
440
439
  "data-testid": t.kind === "event" ? "timeline-event" : "timeline-key",
441
440
  "data-dragging": O?.keyIndex === n ? "true" : void 0,
442
- className: t.kind === "event" ? w.eventMark : w.key,
441
+ className: t.kind === "event" ? D.eventMark : D.key,
443
442
  style: { left: A(e) },
444
- onPointerDown: I(n),
445
- onKeyDown: R(n, e)
443
+ onPointerDown: F(n),
444
+ onKeyDown: I(n, e)
446
445
  }, n)),
447
- O ? /* @__PURE__ */ h("div", {
446
+ O ? /* @__PURE__ */ g("div", {
448
447
  "aria-hidden": "true",
449
448
  "data-testid": "timeline-key-ghost",
450
- className: t.kind === "event" ? w.eventGhost : w.keyGhost,
449
+ className: t.kind === "event" ? D.eventGhost : D.keyGhost,
451
450
  style: { left: A(O.t) }
452
451
  }) : null
453
452
  ] })
@@ -456,17 +455,17 @@ function se(e) {
456
455
  }
457
456
  //#endregion
458
457
  //#region src/components/Timeline/Ruler.tsx
459
- var ce = .0015;
460
- function le(e) {
458
+ var de = .0015;
459
+ function fe(e) {
461
460
  return e >= 1e3 ? `${(e / 1e3).toFixed(e % 1e3 == 0 ? 0 : 2)}s` : `${Math.round(e)}ms`;
462
461
  }
463
- function ue(e) {
464
- let { window: t, bounds: n, playhead: r, onScrub: i, onWindowChange: a } = e, o = S(null), s = S(null);
465
- 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(() => () => {
466
465
  s.current?.cancel();
467
466
  }, []);
468
- let [c, l] = C(0);
469
- y(() => {
467
+ let [c, l] = w(0);
468
+ b(() => {
470
469
  let e = o.current;
471
470
  if (!e) return;
472
471
  let t = () => l(e.getBoundingClientRect().width);
@@ -477,7 +476,7 @@ function ue(e) {
477
476
  let d = () => o.current?.getBoundingClientRect().width ?? 0, f = (e) => {
478
477
  let n = o.current?.getBoundingClientRect();
479
478
  if (!n) return t.from;
480
- let r = F(t, n.width).toMs(e - n.left);
479
+ let r = R(t, n.width).toMs(e - n.left);
481
480
  return Math.min(t.to, Math.max(t.from, r));
482
481
  }, p = (e) => {
483
482
  if (e.button !== 0) return;
@@ -493,86 +492,89 @@ function ue(e) {
493
492
  onCancel: t
494
493
  }, { capture: !1 });
495
494
  }, m = (e) => {
496
- if (e.ctrlKey) a(V(t, f(e.clientX), Math.exp(e.deltaY * ce), n));
495
+ if (e.ctrlKey) a(ne(t, f(e.clientX), Math.exp(e.deltaY * de), n));
497
496
  else {
498
497
  let r = d(), i = r === 0 ? 0 : (t.to - t.from) / r;
499
- a(ee(t, e.deltaY * i, n));
498
+ a(re(t, e.deltaY * i, n));
500
499
  }
501
- }, _ = H(t, c, 64), b = (e) => L(t, e);
502
- return /* @__PURE__ */ g("div", {
503
- className: w.ruler,
500
+ }, h = H(t, c, 64), v = (e) => z(t, e);
501
+ return /* @__PURE__ */ _("div", {
502
+ className: D.ruler,
504
503
  ref: o,
505
504
  "data-testid": "timeline-ruler",
506
505
  onPointerDown: p,
507
506
  onWheel: m,
508
- children: [_.map((e) => /* @__PURE__ */ h("span", {
509
- className: w.tick,
507
+ children: [h.map((e) => /* @__PURE__ */ g("span", {
508
+ className: D.tick,
510
509
  "data-testid": "timeline-tick",
511
- style: { left: b(e) },
512
- children: le(e)
513
- }, e)), /* @__PURE__ */ h("div", {
514
- className: w.playhead,
510
+ style: { left: v(e) },
511
+ children: fe(e)
512
+ }, e)), /* @__PURE__ */ g("div", {
513
+ className: D.playhead,
515
514
  "data-testid": "timeline-playhead",
516
- style: { left: b(r) }
515
+ style: { left: v(r) }
517
516
  })]
518
517
  });
519
518
  }
520
519
  //#endregion
521
520
  //#region src/components/Timeline/Transport.tsx
522
- var U = [
521
+ var U = T({ symbol: "x" }), W = [
523
522
  .25,
524
523
  .5,
525
524
  1,
526
525
  2,
527
526
  4
528
- ], W = (e) => `${(e / 1e3).toFixed(2)}s`;
529
- function G(n) {
530
- 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 = U.includes(a) ? U : [...U, a].sort((e, t) => e - t);
531
- return /* @__PURE__ */ g("div", {
532
- className: w.transport,
527
+ ], G = (e) => `${(e / 1e3).toFixed(2)}s`;
528
+ function K(n) {
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);
530
+ return /* @__PURE__ */ _("div", {
531
+ className: D.transport,
533
532
  children: [
534
- /* @__PURE__ */ h("button", {
533
+ /* @__PURE__ */ g("button", {
535
534
  type: "button",
536
- className: w.transportButton,
535
+ className: D.transportButton,
537
536
  "aria-label": r ? "Play" : "Pause",
538
537
  onClick: r ? l : u,
539
- children: h(r ? t : e, { size: 14 })
538
+ children: g(r ? t : e, { size: 14 })
540
539
  }),
541
- /* @__PURE__ */ h("button", {
540
+ /* @__PURE__ */ g("button", {
542
541
  type: "button",
543
542
  role: "switch",
544
543
  "aria-checked": p,
545
544
  "aria-label": "Loop",
546
- className: w.transportButton,
545
+ className: D.transportButton,
547
546
  onClick: () => d(!p),
548
547
  children: "⟲"
549
548
  }),
550
- /* @__PURE__ */ g("div", {
551
- className: w.rate,
549
+ /* @__PURE__ */ _("div", {
550
+ className: D.rate,
552
551
  children: [
553
552
  "Rate",
554
- /* @__PURE__ */ h(c, {
553
+ /* @__PURE__ */ g(c, {
555
554
  ariaLabel: "Rate",
556
- items: m,
555
+ items: m.map((e) => ({
556
+ value: e,
557
+ ariaLabel: E(e, U).spoken
558
+ })),
557
559
  value: a,
558
560
  onChange: f,
559
- formatLabel: (e) => `${e}x`,
561
+ formatLabel: (e) => E(e, U).text,
560
562
  labels: "none",
561
- className: w.rateSlider
563
+ className: D.rateSlider
562
564
  }),
563
565
  /* @__PURE__ */ g("span", {
564
- className: w.rateReadout,
565
- children: [a, "x"]
566
+ className: D.rateReadout,
567
+ children: E(a, U).text
566
568
  })
567
569
  ]
568
570
  }),
569
- /* @__PURE__ */ g("span", {
570
- className: w.time,
571
+ /* @__PURE__ */ _("span", {
572
+ className: D.time,
571
573
  "data-testid": "timeline-time",
572
574
  children: [
573
- W(o),
575
+ G(o),
574
576
  " / ",
575
- W(s)
577
+ G(s)
576
578
  ]
577
579
  })
578
580
  ]
@@ -580,12 +582,12 @@ function G(n) {
580
582
  }
581
583
  //#endregion
582
584
  //#region src/components/Timeline/lanes.ts
583
- function de(e) {
585
+ function me(e) {
584
586
  if (e.kind !== "sampled") return !1;
585
587
  let t = e.keys;
586
588
  return t.length > 0 && t.every((e) => typeof e.value == "number");
587
589
  }
588
- function fe(e, t) {
590
+ function he(e, t) {
589
591
  let n = [], r = (e, i, a, o) => {
590
592
  e.forEach((e, s) => {
591
593
  let c = [...i, s], l = c.join(".");
@@ -597,13 +599,13 @@ function fe(e, t) {
597
599
  depth: a,
598
600
  offset: o,
599
601
  kind: e.kind,
600
- numeric: de(e)
602
+ numeric: me(e)
601
603
  }), e.kind === "timeline" && t.has(l) && r(e.timeline.tracks, c, a + 1, o + e.at);
602
604
  });
603
605
  };
604
606
  return r(e, [], 0, 0), n;
605
607
  }
606
- function K(e, t) {
608
+ function q(e, t) {
607
609
  let n = e, r;
608
610
  for (let e of t) {
609
611
  if (r = n[e], !r) return;
@@ -613,22 +615,22 @@ function K(e, t) {
613
615
  }
614
616
  //#endregion
615
617
  //#region src/components/Timeline/keys.ts
616
- function q(e, t) {
618
+ function J(e, t) {
617
619
  return e.length === t.length && e.every((e, n) => e === t[n]);
618
620
  }
619
- function J(e, t) {
621
+ function Y(e, t) {
620
622
  return {
621
623
  ...e,
622
624
  keys: t
623
625
  };
624
626
  }
625
- function pe(e, t) {
627
+ function ge(e, t) {
626
628
  return {
627
629
  ...e,
628
630
  events: t
629
631
  };
630
632
  }
631
- function Y(e, t, n) {
633
+ function X(e, t, n) {
632
634
  let r = e.slice(), [i, ...a] = t;
633
635
  if (a.length === 0) return r[i] = n, r;
634
636
  let o = r[i];
@@ -638,19 +640,19 @@ function Y(e, t, n) {
638
640
  ...s,
639
641
  timeline: {
640
642
  ...s.timeline,
641
- tracks: Y(s.timeline.tracks, a, n)
643
+ tracks: X(s.timeline.tracks, a, n)
642
644
  }
643
645
  }, r;
644
646
  }
645
- function X(e, t, n) {
646
- let r = K(e, t.trackPath), i = Math.max(0, n);
647
+ function Z(e, t, n) {
648
+ let r = q(e, t.trackPath), i = Math.max(0, n);
647
649
  if (r?.kind === "sampled") {
648
650
  let n = r, a = {
649
651
  ...n.keys[t.keyIndex],
650
652
  t: i
651
653
  }, o = n.keys.filter((e, n) => n !== t.keyIndex), s = o.findIndex((e) => e.t > i), c = s === -1 ? o.length : s;
652
654
  return o.splice(c, 0, a), {
653
- tracks: Y(e, t.trackPath, J(r, o)),
655
+ tracks: X(e, t.trackPath, Y(r, o)),
654
656
  selection: {
655
657
  trackPath: t.trackPath,
656
658
  keyIndex: c
@@ -663,7 +665,7 @@ function X(e, t, n) {
663
665
  t: i
664
666
  }, o = n.events.filter((e, n) => n !== t.keyIndex), s = o.findIndex((e) => e.t > i), c = s === -1 ? o.length : s;
665
667
  return o.splice(c, 0, a), {
666
- tracks: Y(e, t.trackPath, pe(r, o)),
668
+ tracks: X(e, t.trackPath, ge(r, o)),
667
669
  selection: {
668
670
  trackPath: t.trackPath,
669
671
  keyIndex: c
@@ -675,8 +677,8 @@ function X(e, t, n) {
675
677
  selection: t
676
678
  };
677
679
  }
678
- function me(e, t, n) {
679
- let r = K(e, t);
680
+ function _e(e, t, n) {
681
+ let r = q(e, t);
680
682
  if (r?.kind !== "sampled") return {
681
683
  tracks: e.slice(),
682
684
  selection: null
@@ -686,60 +688,60 @@ function me(e, t, n) {
686
688
  t: a,
687
689
  value: o
688
690
  }), {
689
- tracks: Y(e, t, J(r, s)),
691
+ tracks: X(e, t, Y(r, s)),
690
692
  selection: {
691
693
  trackPath: t,
692
694
  keyIndex: l
693
695
  }
694
696
  };
695
697
  }
696
- function he(e, t) {
697
- let n = K(e, t.trackPath);
698
+ function ve(e, t) {
699
+ let n = q(e, t.trackPath);
698
700
  if (n?.kind !== "sampled") return {
699
701
  tracks: e.slice(),
700
702
  selection: t
701
703
  };
702
704
  let r = n.keys.filter((e, n) => n !== t.keyIndex);
703
705
  return {
704
- tracks: Y(e, t.trackPath, J(n, r)),
706
+ tracks: X(e, t.trackPath, Y(n, r)),
705
707
  selection: r.length === 0 ? null : {
706
708
  trackPath: t.trackPath,
707
709
  keyIndex: Math.max(0, t.keyIndex - 1)
708
710
  }
709
711
  };
710
712
  }
711
- function Z(e, t, n) {
712
- let r = K(e, t.trackPath);
713
+ function Q(e, t, n) {
714
+ let r = q(e, t.trackPath);
713
715
  if (r?.kind !== "sampled") return e.slice();
714
716
  let i = r.keys.slice(), { easing: a, ...o } = i[t.keyIndex];
715
717
  return i[t.keyIndex] = n === void 0 ? o : {
716
718
  ...o,
717
719
  easing: n
718
- }, Y(e, t.trackPath, J(r, i));
720
+ }, X(e, t.trackPath, Y(r, i));
719
721
  }
720
- function Q(e, t, n) {
721
- let r = K(e, t);
722
- return r?.kind === "sampled" ? Y(e, t, J(r, n.slice())) : e.slice();
722
+ function $(e, t, n) {
723
+ let r = q(e, t);
724
+ return r?.kind === "sampled" ? X(e, t, Y(r, n.slice())) : e.slice();
723
725
  }
724
- function ge(e, t, n) {
725
- let r = K(e, t.trackPath);
726
+ function ye(e, t, n) {
727
+ let r = q(e, t.trackPath);
726
728
  if (r?.kind !== "sampled") return e.slice();
727
729
  let i = r.keys.slice();
728
730
  return i[t.keyIndex] = {
729
731
  ...i[t.keyIndex],
730
732
  value: n
731
- }, Y(e, t.trackPath, J(r, i));
733
+ }, X(e, t.trackPath, Y(r, i));
732
734
  }
733
735
  //#endregion
734
736
  //#region src/components/Timeline/Timeline.tsx
735
- function $(e) {
736
- 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({
737
739
  from: 0,
738
740
  to: n
739
- }), [m, _] = C(null), [v, y] = C(null), x = e.window ?? f, S = e.onWindowChange ?? p, T = e.selection === void 0 ? m : e.selection, E = 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 = {
740
742
  from: 0,
741
743
  to: n
742
- }, O = b(() => fe(t, u), [t, u]), k = b(() => {
744
+ }, O = x(() => he(t, u), [t, u]), k = x(() => {
743
745
  let e = /* @__PURE__ */ new Set([0, n]);
744
746
  for (let t of O) if (t.kind === "sampled") for (let n of t.track.keys) e.add(n.t + t.offset);
745
747
  return [...e];
@@ -749,25 +751,25 @@ function $(e) {
749
751
  return n.has(e) ? n.delete(e) : n.add(e), n;
750
752
  });
751
753
  }, j = (e) => {
752
- if ((e.key === "Delete" || e.key === "Backspace") && T) {
754
+ if ((e.key === "Delete" || e.key === "Backspace") && C) {
753
755
  e.preventDefault();
754
- let n = he(t, T);
755
- a(n.tracks), E(n.selection);
756
+ let n = ve(t, C);
757
+ a(n.tracks), T(n.selection);
756
758
  }
757
- }, 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;
758
- return /* @__PURE__ */ g("div", {
759
- className: [w.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(" "),
760
762
  "data-testid": "timeline-root",
761
763
  tabIndex: -1,
762
764
  onKeyDown: j,
763
765
  children: [
764
- c ? /* @__PURE__ */ h("div", {
765
- className: w.label,
766
+ c ? /* @__PURE__ */ g("div", {
767
+ className: D.label,
766
768
  children: c
767
769
  }) : null,
768
- e.transport === !1 ? null : /* @__PURE__ */ g("div", {
769
- className: w.transportRow,
770
- children: [/* @__PURE__ */ h(G, {
770
+ e.transport === !1 ? null : /* @__PURE__ */ _("div", {
771
+ className: D.transportRow,
772
+ children: [/* @__PURE__ */ g(K, {
771
773
  ...e.transport ?? {
772
774
  paused: !0,
773
775
  loop: !1,
@@ -779,65 +781,65 @@ function $(e) {
779
781
  },
780
782
  playhead: r,
781
783
  duration: n
782
- }), /* @__PURE__ */ h("button", {
784
+ }), /* @__PURE__ */ g("button", {
783
785
  type: "button",
784
786
  role: "switch",
785
787
  "aria-checked": (e.mode ?? "dope") === "graph",
786
788
  "aria-label": "Graph mode",
787
- className: w.transportButton,
789
+ className: D.transportButton,
788
790
  onClick: () => e.onModeChange?.((e.mode ?? "dope") === "graph" ? "dope" : "graph"),
789
791
  children: "Graph"
790
792
  })]
791
793
  }),
792
- /* @__PURE__ */ g("div", {
793
- className: w.body,
794
- children: [/* @__PURE__ */ h("div", { className: w.gutter }), /* @__PURE__ */ h("div", {
795
- className: w.rulerWrap,
796
- children: /* @__PURE__ */ h(ue, {
797
- window: x,
798
- 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,
799
801
  playhead: r,
800
802
  onScrub: o,
801
803
  onWindowChange: S
802
804
  })
803
805
  })]
804
806
  }),
805
- /* @__PURE__ */ h("div", {
806
- className: w.lanes,
807
+ /* @__PURE__ */ g("div", {
808
+ className: D.lanes,
807
809
  children: O.map((n) => {
808
810
  let r = n.path;
809
- return /* @__PURE__ */ h(se, {
811
+ return /* @__PURE__ */ g(ue, {
810
812
  row: n,
811
- window: x,
813
+ window: b,
812
814
  mode: e.mode ?? "dope",
813
- selection: T && q(T.trackPath, r) ? T.keyIndex : null,
815
+ selection: C && J(C.trackPath, r) ? C.keyIndex : null,
814
816
  expanded: u.has(n.key),
815
817
  snapTimes: k,
816
818
  onToggleExpand: () => A(n.key),
817
- onSelect: (e) => E({
819
+ onSelect: (e) => T({
818
820
  trackPath: r,
819
821
  keyIndex: e
820
822
  }),
821
823
  onKeyInput: (e, n) => {
822
- i?.(X(t, {
824
+ i?.(Z(t, {
823
825
  trackPath: r,
824
826
  keyIndex: e
825
827
  }, n).tracks);
826
828
  },
827
829
  onKeyCommit: (e, n) => {
828
- let i = X(t, {
830
+ let i = Z(t, {
829
831
  trackPath: r,
830
832
  keyIndex: e
831
833
  }, n);
832
- a(i.tracks), E(i.selection);
834
+ a(i.tracks), T(i.selection);
833
835
  },
834
- onKeysInput: (e) => i?.(Q(t, r, e)),
835
- onKeysCommit: (e) => a(Q(t, r, e)),
836
+ onKeysInput: (e) => i?.($(t, r, e)),
837
+ onKeysCommit: (e) => a($(t, r, e)),
836
838
  onInsert: (e) => {
837
- let n = me(t, r, e);
838
- a(n.tracks), E(n.selection);
839
+ let n = _e(t, r, e);
840
+ a(n.tracks), T(n.selection);
839
841
  },
840
- selectedSegment: v && q(v.trackPath, r) ? v.keyIndex : null,
842
+ selectedSegment: v && J(v.trackPath, r) ? v.keyIndex : null,
841
843
  onSelectSegment: (e) => y({
842
844
  trackPath: r,
843
845
  keyIndex: e
@@ -845,21 +847,21 @@ function $(e) {
845
847
  }, n.key);
846
848
  })
847
849
  }),
848
- s && T && P && M?.kind === "sampled" ? /* @__PURE__ */ h("div", {
849
- className: w.inspector,
850
+ s && C && N && M?.kind === "sampled" ? /* @__PURE__ */ g("div", {
851
+ className: D.inspector,
850
852
  children: s({
851
- key: P,
853
+ key: N,
852
854
  track: M,
853
- selection: T,
854
- commit: (e) => a(ge(t, T, e.value)),
855
- setEasing: (e) => a(Z(t, T, e))
855
+ selection: C,
856
+ commit: (e) => a(ye(t, C, e.value)),
857
+ setEasing: (e) => a(Q(t, C, e))
856
858
  })
857
859
  }) : null,
858
- v && I ? /* @__PURE__ */ h("div", {
859
- className: w.inspector,
860
- children: /* @__PURE__ */ h(N, {
861
- value: I.easing,
862
- onChange: (e) => a(Z(t, v, e))
860
+ v && F ? /* @__PURE__ */ g("div", {
861
+ className: D.inspector,
862
+ children: /* @__PURE__ */ g(I, {
863
+ value: F.easing,
864
+ onChange: (e) => a(Q(t, v, e))
863
865
  })
864
866
  }) : null
865
867
  ]
@@ -867,20 +869,20 @@ function $(e) {
867
869
  }
868
870
  //#endregion
869
871
  //#region src/components/Timeline/AnimatedTimeline.tsx
870
- function _e(e) {
871
- let { handle: t, ...n } = e, [, r] = x((e) => e + 1, 0);
872
- v(() => t.subscribe(r), [t]);
873
- let i = S(null), a = p(() => {
874
- r(), t.isPaused() || i.current?.request();
875
- });
876
- i.current = a, v(() => (t.isPaused() || a.request(), () => a.cancel()), [t, a]);
877
- 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) => {
878
880
  t.edit(() => {
879
881
  let n = t.tracks();
880
882
  n.splice(0, n.length, ...e);
881
883
  });
882
884
  }, [t]), s = t.time(), c = t.duration();
883
- return /* @__PURE__ */ h($, {
885
+ return /* @__PURE__ */ g(be, {
884
886
  ...n,
885
887
  tracks: t.tracks(),
886
888
  duration: c,
@@ -892,7 +894,7 @@ function _e(e) {
892
894
  loop: t.loop(),
893
895
  rate: t.timeScale(),
894
896
  onPlay: () => {
895
- t.time() >= c && t.seek(0), t.resume(), a.request(), r();
897
+ t.time() >= c && t.seek(0), t.resume(), i.request(), r();
896
898
  },
897
899
  onPause: () => {
898
900
  t.pause(), r();
@@ -907,6 +909,6 @@ function _e(e) {
907
909
  });
908
910
  }
909
911
  //#endregion
910
- 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 };
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 };
911
913
 
912
- //# sourceMappingURL=Timeline--58F7MED.js.map
914
+ //# sourceMappingURL=Timeline-pqnYk5cV.js.map