tldraw 3.16.0-internal.51e99e128bd4 → 3.16.0-internal.a478398270c6

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-cjs/index.d.ts +23 -297
  2. package/dist-cjs/index.js +2 -30
  3. package/dist-cjs/index.js.map +2 -2
  4. package/dist-cjs/lib/TldrawImage.js +2 -5
  5. package/dist-cjs/lib/TldrawImage.js.map +3 -3
  6. package/dist-cjs/lib/canvas/TldrawCropHandles.js +1 -1
  7. package/dist-cjs/lib/canvas/TldrawCropHandles.js.map +2 -2
  8. package/dist-cjs/lib/canvas/TldrawHandles.js +1 -1
  9. package/dist-cjs/lib/canvas/TldrawHandles.js.map +2 -2
  10. package/dist-cjs/lib/canvas/TldrawOverlays.js +1 -1
  11. package/dist-cjs/lib/canvas/TldrawOverlays.js.map +2 -2
  12. package/dist-cjs/lib/canvas/TldrawScribble.js +1 -1
  13. package/dist-cjs/lib/canvas/TldrawScribble.js.map +2 -2
  14. package/dist-cjs/lib/canvas/TldrawSelectionForeground.js +271 -279
  15. package/dist-cjs/lib/canvas/TldrawSelectionForeground.js.map +2 -2
  16. package/dist-cjs/lib/defaultExternalContentHandlers.js +0 -1
  17. package/dist-cjs/lib/defaultExternalContentHandlers.js.map +2 -2
  18. package/dist-cjs/lib/shapes/arrow/ArrowShapeUtil.js +44 -27
  19. package/dist-cjs/lib/shapes/arrow/ArrowShapeUtil.js.map +2 -2
  20. package/dist-cjs/lib/shapes/arrow/arrowLabel.js +4 -16
  21. package/dist-cjs/lib/shapes/arrow/arrowLabel.js.map +2 -2
  22. package/dist-cjs/lib/shapes/arrow/arrowTargetState.js +1 -1
  23. package/dist-cjs/lib/shapes/arrow/arrowTargetState.js.map +2 -2
  24. package/dist-cjs/lib/shapes/arrow/elbow/ElbowArrowDebug.js +3 -3
  25. package/dist-cjs/lib/shapes/arrow/elbow/ElbowArrowDebug.js.map +1 -1
  26. package/dist-cjs/lib/shapes/arrow/toolStates/Pointing.js +0 -3
  27. package/dist-cjs/lib/shapes/arrow/toolStates/Pointing.js.map +2 -2
  28. package/dist-cjs/lib/shapes/draw/DrawShapeUtil.js +6 -3
  29. package/dist-cjs/lib/shapes/draw/DrawShapeUtil.js.map +2 -2
  30. package/dist-cjs/lib/shapes/embed/EmbedShapeUtil.js +1 -1
  31. package/dist-cjs/lib/shapes/embed/EmbedShapeUtil.js.map +1 -1
  32. package/dist-cjs/lib/shapes/frame/FrameShapeUtil.js +17 -17
  33. package/dist-cjs/lib/shapes/frame/FrameShapeUtil.js.map +2 -2
  34. package/dist-cjs/lib/shapes/frame/components/FrameHeading.js +1 -1
  35. package/dist-cjs/lib/shapes/frame/components/FrameHeading.js.map +2 -2
  36. package/dist-cjs/lib/shapes/geo/GeoShapeUtil.js +2 -2
  37. package/dist-cjs/lib/shapes/geo/GeoShapeUtil.js.map +2 -2
  38. package/dist-cjs/lib/shapes/geo/components/GeoShapeBody.js +1 -2
  39. package/dist-cjs/lib/shapes/geo/components/GeoShapeBody.js.map +2 -2
  40. package/dist-cjs/lib/shapes/highlight/HighlightShapeUtil.js +4 -5
  41. package/dist-cjs/lib/shapes/highlight/HighlightShapeUtil.js.map +2 -2
  42. package/dist-cjs/lib/shapes/image/ImageShapeUtil.js +3 -3
  43. package/dist-cjs/lib/shapes/image/ImageShapeUtil.js.map +1 -1
  44. package/dist-cjs/lib/shapes/line/LineShapeUtil.js +5 -20
  45. package/dist-cjs/lib/shapes/line/LineShapeUtil.js.map +2 -2
  46. package/dist-cjs/lib/shapes/note/NoteShapeUtil.js +5 -6
  47. package/dist-cjs/lib/shapes/note/NoteShapeUtil.js.map +2 -2
  48. package/dist-cjs/lib/shapes/shared/PathBuilder.js +3 -21
  49. package/dist-cjs/lib/shapes/shared/PathBuilder.js.map +2 -2
  50. package/dist-cjs/lib/shapes/shared/PlainTextLabel.js +0 -1
  51. package/dist-cjs/lib/shapes/shared/PlainTextLabel.js.map +2 -2
  52. package/dist-cjs/lib/shapes/shared/RichTextLabel.js +2 -5
  53. package/dist-cjs/lib/shapes/shared/RichTextLabel.js.map +2 -2
  54. package/dist-cjs/lib/shapes/shared/ShapeFill.js +4 -4
  55. package/dist-cjs/lib/shapes/shared/ShapeFill.js.map +2 -2
  56. package/dist-cjs/lib/shapes/shared/SvgTextLabel.js +3 -4
  57. package/dist-cjs/lib/shapes/shared/SvgTextLabel.js.map +2 -2
  58. package/dist-cjs/lib/shapes/shared/freehand/svg.js.map +2 -2
  59. package/dist-cjs/lib/shapes/shared/usePrefersReducedMotion.js +1 -10
  60. package/dist-cjs/lib/shapes/shared/usePrefersReducedMotion.js.map +2 -2
  61. package/dist-cjs/lib/shapes/text/TextShapeUtil.js +13 -7
  62. package/dist-cjs/lib/shapes/text/TextShapeUtil.js.map +2 -2
  63. package/dist-cjs/lib/shapes/video/VideoShapeUtil.js +3 -3
  64. package/dist-cjs/lib/shapes/video/VideoShapeUtil.js.map +1 -1
  65. package/dist-cjs/lib/styles.js.map +2 -2
  66. package/dist-cjs/lib/tools/EraserTool/childStates/Erasing.js +1 -25
  67. package/dist-cjs/lib/tools/EraserTool/childStates/Erasing.js.map +2 -2
  68. package/dist-cjs/lib/tools/EraserTool/childStates/Pointing.js +0 -12
  69. package/dist-cjs/lib/tools/EraserTool/childStates/Pointing.js.map +2 -2
  70. package/dist-cjs/lib/tools/SelectTool/childStates/Crop/children/PointingCrop.js +1 -7
  71. package/dist-cjs/lib/tools/SelectTool/childStates/Crop/children/PointingCrop.js.map +2 -2
  72. package/dist-cjs/lib/tools/SelectTool/childStates/DraggingHandle.js +22 -43
  73. package/dist-cjs/lib/tools/SelectTool/childStates/DraggingHandle.js.map +2 -2
  74. package/dist-cjs/lib/tools/SelectTool/childStates/Idle.js +15 -2
  75. package/dist-cjs/lib/tools/SelectTool/childStates/Idle.js.map +2 -2
  76. package/dist-cjs/lib/tools/SelectTool/childStates/PointingShape.js +0 -5
  77. package/dist-cjs/lib/tools/SelectTool/childStates/PointingShape.js.map +2 -2
  78. package/dist-cjs/lib/tools/SelectTool/childStates/Resizing.js +0 -8
  79. package/dist-cjs/lib/tools/SelectTool/childStates/Resizing.js.map +2 -2
  80. package/dist-cjs/lib/tools/SelectTool/childStates/Rotating.js +0 -8
  81. package/dist-cjs/lib/tools/SelectTool/childStates/Rotating.js.map +2 -2
  82. package/dist-cjs/lib/tools/SelectTool/childStates/Translating.js +0 -8
  83. package/dist-cjs/lib/tools/SelectTool/childStates/Translating.js.map +2 -2
  84. package/dist-cjs/lib/tools/selection-logic/getHitShapeOnCanvasPointerDown.js.map +2 -2
  85. package/dist-cjs/lib/ui/TldrawUi.js +0 -14
  86. package/dist-cjs/lib/ui/TldrawUi.js.map +3 -3
  87. package/dist-cjs/lib/ui/components/A11y.js +12 -14
  88. package/dist-cjs/lib/ui/components/A11y.js.map +2 -2
  89. package/dist-cjs/lib/ui/components/ActionsMenu/DefaultActionsMenu.js +3 -12
  90. package/dist-cjs/lib/ui/components/ActionsMenu/DefaultActionsMenu.js.map +2 -2
  91. package/dist-cjs/lib/ui/components/DefaultMenuPanel.js +2 -3
  92. package/dist-cjs/lib/ui/components/DefaultMenuPanel.js.map +2 -2
  93. package/dist-cjs/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialogContent.js +1 -51
  94. package/dist-cjs/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialogContent.js.map +2 -2
  95. package/dist-cjs/lib/ui/components/MainMenu/DefaultMainMenuContent.js +2 -3
  96. package/dist-cjs/lib/ui/components/MainMenu/DefaultMainMenuContent.js.map +2 -2
  97. package/dist-cjs/lib/ui/components/Minimap/MinimapManager.js +4 -4
  98. package/dist-cjs/lib/ui/components/Minimap/MinimapManager.js.map +2 -2
  99. package/dist-cjs/lib/ui/components/MobileStylePanel.js +3 -5
  100. package/dist-cjs/lib/ui/components/MobileStylePanel.js.map +2 -2
  101. package/dist-cjs/lib/ui/components/NavigationPanel/DefaultNavigationPanel.js +5 -4
  102. package/dist-cjs/lib/ui/components/NavigationPanel/DefaultNavigationPanel.js.map +2 -2
  103. package/dist-cjs/lib/ui/components/PageMenu/DefaultPageMenu.js +1 -2
  104. package/dist-cjs/lib/ui/components/PageMenu/DefaultPageMenu.js.map +2 -2
  105. package/dist-cjs/lib/ui/components/SharePanel/PeopleMenuItem.js +2 -3
  106. package/dist-cjs/lib/ui/components/SharePanel/PeopleMenuItem.js.map +2 -2
  107. package/dist-cjs/lib/ui/components/SharePanel/UserPresenceColorPicker.js +2 -2
  108. package/dist-cjs/lib/ui/components/SharePanel/UserPresenceColorPicker.js.map +2 -2
  109. package/dist-cjs/lib/ui/components/Spinner.js +25 -2
  110. package/dist-cjs/lib/ui/components/Spinner.js.map +2 -2
  111. package/dist-cjs/lib/ui/components/StylePanel/DefaultStylePanel.js +0 -2
  112. package/dist-cjs/lib/ui/components/StylePanel/DefaultStylePanel.js.map +2 -2
  113. package/dist-cjs/lib/ui/components/StylePanel/DefaultStylePanelContent.js +139 -171
  114. package/dist-cjs/lib/ui/components/StylePanel/DefaultStylePanelContent.js.map +2 -2
  115. package/dist-cjs/lib/ui/components/StylePanel/DoubleDropdownPicker.js +3 -3
  116. package/dist-cjs/lib/ui/components/StylePanel/DoubleDropdownPicker.js.map +2 -2
  117. package/dist-cjs/lib/ui/components/StylePanel/DropdownPicker.js +25 -26
  118. package/dist-cjs/lib/ui/components/StylePanel/DropdownPicker.js.map +3 -3
  119. package/dist-cjs/lib/ui/components/Toolbar/DefaultImageToolbar.js +7 -21
  120. package/dist-cjs/lib/ui/components/Toolbar/DefaultImageToolbar.js.map +3 -3
  121. package/dist-cjs/lib/ui/components/Toolbar/DefaultImageToolbarContent.js +1 -1
  122. package/dist-cjs/lib/ui/components/Toolbar/DefaultImageToolbarContent.js.map +2 -2
  123. package/dist-cjs/lib/ui/components/Toolbar/DefaultToolbar.js +21 -66
  124. package/dist-cjs/lib/ui/components/Toolbar/DefaultToolbar.js.map +3 -3
  125. package/dist-cjs/lib/ui/components/Toolbar/OverflowingToolbar.js +80 -189
  126. package/dist-cjs/lib/ui/components/Toolbar/OverflowingToolbar.js.map +3 -3
  127. package/dist-cjs/lib/ui/components/Toolbar/ToggleToolLockedButton.js +4 -5
  128. package/dist-cjs/lib/ui/components/Toolbar/ToggleToolLockedButton.js.map +2 -2
  129. package/dist-cjs/lib/ui/components/menu-items.js +0 -22
  130. package/dist-cjs/lib/ui/components/menu-items.js.map +2 -2
  131. package/dist-cjs/lib/ui/components/primitives/Button/TldrawUiButtonIcon.js.map +2 -2
  132. package/dist-cjs/lib/ui/components/primitives/TldrawUiButtonPicker.js +16 -7
  133. package/dist-cjs/lib/ui/components/primitives/TldrawUiButtonPicker.js.map +3 -3
  134. package/dist-cjs/lib/ui/components/primitives/TldrawUiContextualToolbar.js +1 -1
  135. package/dist-cjs/lib/ui/components/primitives/TldrawUiContextualToolbar.js.map +2 -2
  136. package/dist-cjs/lib/ui/components/primitives/TldrawUiDialog.js +1 -1
  137. package/dist-cjs/lib/ui/components/primitives/TldrawUiDialog.js.map +2 -2
  138. package/dist-cjs/lib/ui/components/primitives/TldrawUiIcon.js +1 -35
  139. package/dist-cjs/lib/ui/components/primitives/TldrawUiIcon.js.map +2 -2
  140. package/dist-cjs/lib/ui/components/primitives/TldrawUiPopover.js +2 -3
  141. package/dist-cjs/lib/ui/components/primitives/TldrawUiPopover.js.map +3 -3
  142. package/dist-cjs/lib/ui/components/primitives/TldrawUiSlider.js +2 -6
  143. package/dist-cjs/lib/ui/components/primitives/TldrawUiSlider.js.map +2 -2
  144. package/dist-cjs/lib/ui/components/primitives/TldrawUiToolbar.js +7 -31
  145. package/dist-cjs/lib/ui/components/primitives/TldrawUiToolbar.js.map +2 -2
  146. package/dist-cjs/lib/ui/components/primitives/menus/TldrawUiMenuCheckboxItem.js.map +2 -2
  147. package/dist-cjs/lib/ui/components/primitives/menus/TldrawUiMenuContext.js.map +2 -2
  148. package/dist-cjs/lib/ui/components/primitives/menus/TldrawUiMenuGroup.js +12 -25
  149. package/dist-cjs/lib/ui/components/primitives/menus/TldrawUiMenuGroup.js.map +2 -2
  150. package/dist-cjs/lib/ui/components/primitives/menus/TldrawUiMenuItem.js +22 -154
  151. package/dist-cjs/lib/ui/components/primitives/menus/TldrawUiMenuItem.js.map +2 -2
  152. package/dist-cjs/lib/ui/context/TldrawUiContextProvider.js +2 -3
  153. package/dist-cjs/lib/ui/context/TldrawUiContextProvider.js.map +2 -2
  154. package/dist-cjs/lib/ui/context/actions.js +8 -57
  155. package/dist-cjs/lib/ui/context/actions.js.map +2 -2
  156. package/dist-cjs/lib/ui/context/events.js.map +2 -2
  157. package/dist-cjs/lib/ui/hooks/menu-hooks.js.map +2 -2
  158. package/dist-cjs/lib/ui/hooks/useKeyboardShortcuts.js +2 -2
  159. package/dist-cjs/lib/ui/hooks/useKeyboardShortcuts.js.map +2 -2
  160. package/dist-cjs/lib/ui/hooks/useTools.js +9 -94
  161. package/dist-cjs/lib/ui/hooks/useTools.js.map +2 -2
  162. package/dist-cjs/lib/ui/hooks/useTranslation/TLUiTranslationKey.js.map +1 -1
  163. package/dist-cjs/lib/ui/hooks/useTranslation/defaultTranslation.js +0 -11
  164. package/dist-cjs/lib/ui/hooks/useTranslation/defaultTranslation.js.map +2 -2
  165. package/dist-cjs/lib/ui/kbd-utils.js +1 -2
  166. package/dist-cjs/lib/ui/kbd-utils.js.map +2 -2
  167. package/dist-cjs/lib/ui/version.js +3 -3
  168. package/dist-cjs/lib/ui/version.js.map +1 -1
  169. package/dist-cjs/lib/utils/excalidraw/putExcalidrawContent.js +1 -1
  170. package/dist-cjs/lib/utils/excalidraw/putExcalidrawContent.js.map +2 -2
  171. package/dist-cjs/lib/utils/tldr/buildFromV1Document.js +2 -3
  172. package/dist-cjs/lib/utils/tldr/buildFromV1Document.js.map +2 -2
  173. package/dist-esm/index.d.mts +23 -297
  174. package/dist-esm/index.mjs +4 -51
  175. package/dist-esm/index.mjs.map +2 -2
  176. package/dist-esm/lib/TldrawImage.mjs +2 -5
  177. package/dist-esm/lib/TldrawImage.mjs.map +2 -2
  178. package/dist-esm/lib/canvas/TldrawCropHandles.mjs +1 -1
  179. package/dist-esm/lib/canvas/TldrawCropHandles.mjs.map +2 -2
  180. package/dist-esm/lib/canvas/TldrawHandles.mjs +1 -1
  181. package/dist-esm/lib/canvas/TldrawHandles.mjs.map +2 -2
  182. package/dist-esm/lib/canvas/TldrawOverlays.mjs +1 -1
  183. package/dist-esm/lib/canvas/TldrawOverlays.mjs.map +2 -2
  184. package/dist-esm/lib/canvas/TldrawScribble.mjs +1 -1
  185. package/dist-esm/lib/canvas/TldrawScribble.mjs.map +2 -2
  186. package/dist-esm/lib/canvas/TldrawSelectionForeground.mjs +271 -279
  187. package/dist-esm/lib/canvas/TldrawSelectionForeground.mjs.map +2 -2
  188. package/dist-esm/lib/defaultExternalContentHandlers.mjs +0 -1
  189. package/dist-esm/lib/defaultExternalContentHandlers.mjs.map +2 -2
  190. package/dist-esm/lib/shapes/arrow/ArrowShapeUtil.mjs +44 -30
  191. package/dist-esm/lib/shapes/arrow/ArrowShapeUtil.mjs.map +2 -2
  192. package/dist-esm/lib/shapes/arrow/arrowLabel.mjs +5 -19
  193. package/dist-esm/lib/shapes/arrow/arrowLabel.mjs.map +2 -2
  194. package/dist-esm/lib/shapes/arrow/arrowTargetState.mjs +1 -1
  195. package/dist-esm/lib/shapes/arrow/arrowTargetState.mjs.map +2 -2
  196. package/dist-esm/lib/shapes/arrow/elbow/ElbowArrowDebug.mjs +3 -3
  197. package/dist-esm/lib/shapes/arrow/elbow/ElbowArrowDebug.mjs.map +1 -1
  198. package/dist-esm/lib/shapes/arrow/toolStates/Pointing.mjs +0 -3
  199. package/dist-esm/lib/shapes/arrow/toolStates/Pointing.mjs.map +2 -2
  200. package/dist-esm/lib/shapes/draw/DrawShapeUtil.mjs +6 -4
  201. package/dist-esm/lib/shapes/draw/DrawShapeUtil.mjs.map +2 -2
  202. package/dist-esm/lib/shapes/embed/EmbedShapeUtil.mjs +1 -1
  203. package/dist-esm/lib/shapes/embed/EmbedShapeUtil.mjs.map +1 -1
  204. package/dist-esm/lib/shapes/frame/FrameShapeUtil.mjs +17 -18
  205. package/dist-esm/lib/shapes/frame/FrameShapeUtil.mjs.map +2 -2
  206. package/dist-esm/lib/shapes/frame/components/FrameHeading.mjs +1 -1
  207. package/dist-esm/lib/shapes/frame/components/FrameHeading.mjs.map +2 -2
  208. package/dist-esm/lib/shapes/geo/GeoShapeUtil.mjs +2 -3
  209. package/dist-esm/lib/shapes/geo/GeoShapeUtil.mjs.map +2 -2
  210. package/dist-esm/lib/shapes/geo/components/GeoShapeBody.mjs +1 -2
  211. package/dist-esm/lib/shapes/geo/components/GeoShapeBody.mjs.map +2 -2
  212. package/dist-esm/lib/shapes/highlight/HighlightShapeUtil.mjs +4 -6
  213. package/dist-esm/lib/shapes/highlight/HighlightShapeUtil.mjs.map +2 -2
  214. package/dist-esm/lib/shapes/image/ImageShapeUtil.mjs +3 -3
  215. package/dist-esm/lib/shapes/image/ImageShapeUtil.mjs.map +1 -1
  216. package/dist-esm/lib/shapes/line/LineShapeUtil.mjs +5 -21
  217. package/dist-esm/lib/shapes/line/LineShapeUtil.mjs.map +2 -2
  218. package/dist-esm/lib/shapes/note/NoteShapeUtil.mjs +5 -7
  219. package/dist-esm/lib/shapes/note/NoteShapeUtil.mjs.map +2 -2
  220. package/dist-esm/lib/shapes/shared/PathBuilder.mjs +3 -22
  221. package/dist-esm/lib/shapes/shared/PathBuilder.mjs.map +2 -2
  222. package/dist-esm/lib/shapes/shared/PlainTextLabel.mjs +0 -1
  223. package/dist-esm/lib/shapes/shared/PlainTextLabel.mjs.map +2 -2
  224. package/dist-esm/lib/shapes/shared/RichTextLabel.mjs +2 -5
  225. package/dist-esm/lib/shapes/shared/RichTextLabel.mjs.map +2 -2
  226. package/dist-esm/lib/shapes/shared/ShapeFill.mjs +4 -5
  227. package/dist-esm/lib/shapes/shared/ShapeFill.mjs.map +2 -2
  228. package/dist-esm/lib/shapes/shared/SvgTextLabel.mjs +3 -4
  229. package/dist-esm/lib/shapes/shared/SvgTextLabel.mjs.map +2 -2
  230. package/dist-esm/lib/shapes/shared/freehand/svg.mjs.map +2 -2
  231. package/dist-esm/lib/shapes/shared/usePrefersReducedMotion.mjs +1 -10
  232. package/dist-esm/lib/shapes/shared/usePrefersReducedMotion.mjs.map +2 -2
  233. package/dist-esm/lib/shapes/text/TextShapeUtil.mjs +13 -8
  234. package/dist-esm/lib/shapes/text/TextShapeUtil.mjs.map +2 -2
  235. package/dist-esm/lib/shapes/video/VideoShapeUtil.mjs +3 -3
  236. package/dist-esm/lib/shapes/video/VideoShapeUtil.mjs.map +1 -1
  237. package/dist-esm/lib/styles.mjs.map +2 -2
  238. package/dist-esm/lib/tools/EraserTool/childStates/Erasing.mjs +1 -26
  239. package/dist-esm/lib/tools/EraserTool/childStates/Erasing.mjs.map +2 -2
  240. package/dist-esm/lib/tools/EraserTool/childStates/Pointing.mjs +0 -13
  241. package/dist-esm/lib/tools/EraserTool/childStates/Pointing.mjs.map +2 -2
  242. package/dist-esm/lib/tools/SelectTool/childStates/Crop/children/PointingCrop.mjs +1 -7
  243. package/dist-esm/lib/tools/SelectTool/childStates/Crop/children/PointingCrop.mjs.map +2 -2
  244. package/dist-esm/lib/tools/SelectTool/childStates/DraggingHandle.mjs +22 -43
  245. package/dist-esm/lib/tools/SelectTool/childStates/DraggingHandle.mjs.map +2 -2
  246. package/dist-esm/lib/tools/SelectTool/childStates/Idle.mjs +15 -2
  247. package/dist-esm/lib/tools/SelectTool/childStates/Idle.mjs.map +2 -2
  248. package/dist-esm/lib/tools/SelectTool/childStates/PointingShape.mjs +0 -5
  249. package/dist-esm/lib/tools/SelectTool/childStates/PointingShape.mjs.map +2 -2
  250. package/dist-esm/lib/tools/SelectTool/childStates/Resizing.mjs +0 -8
  251. package/dist-esm/lib/tools/SelectTool/childStates/Resizing.mjs.map +2 -2
  252. package/dist-esm/lib/tools/SelectTool/childStates/Rotating.mjs +0 -8
  253. package/dist-esm/lib/tools/SelectTool/childStates/Rotating.mjs.map +2 -2
  254. package/dist-esm/lib/tools/SelectTool/childStates/Translating.mjs +0 -8
  255. package/dist-esm/lib/tools/SelectTool/childStates/Translating.mjs.map +2 -2
  256. package/dist-esm/lib/tools/selection-logic/getHitShapeOnCanvasPointerDown.mjs.map +2 -2
  257. package/dist-esm/lib/ui/TldrawUi.mjs +2 -16
  258. package/dist-esm/lib/ui/TldrawUi.mjs.map +3 -3
  259. package/dist-esm/lib/ui/components/A11y.mjs +12 -14
  260. package/dist-esm/lib/ui/components/A11y.mjs.map +2 -2
  261. package/dist-esm/lib/ui/components/ActionsMenu/DefaultActionsMenu.mjs +3 -12
  262. package/dist-esm/lib/ui/components/ActionsMenu/DefaultActionsMenu.mjs.map +2 -2
  263. package/dist-esm/lib/ui/components/DefaultMenuPanel.mjs +2 -3
  264. package/dist-esm/lib/ui/components/DefaultMenuPanel.mjs.map +2 -2
  265. package/dist-esm/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialogContent.mjs +1 -51
  266. package/dist-esm/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialogContent.mjs.map +2 -2
  267. package/dist-esm/lib/ui/components/MainMenu/DefaultMainMenuContent.mjs +3 -3
  268. package/dist-esm/lib/ui/components/MainMenu/DefaultMainMenuContent.mjs.map +2 -2
  269. package/dist-esm/lib/ui/components/Minimap/MinimapManager.mjs +4 -4
  270. package/dist-esm/lib/ui/components/Minimap/MinimapManager.mjs.map +2 -2
  271. package/dist-esm/lib/ui/components/MobileStylePanel.mjs +3 -6
  272. package/dist-esm/lib/ui/components/MobileStylePanel.mjs.map +2 -2
  273. package/dist-esm/lib/ui/components/NavigationPanel/DefaultNavigationPanel.mjs +5 -4
  274. package/dist-esm/lib/ui/components/NavigationPanel/DefaultNavigationPanel.mjs.map +2 -2
  275. package/dist-esm/lib/ui/components/PageMenu/DefaultPageMenu.mjs +1 -2
  276. package/dist-esm/lib/ui/components/PageMenu/DefaultPageMenu.mjs.map +2 -2
  277. package/dist-esm/lib/ui/components/SharePanel/PeopleMenuItem.mjs +2 -3
  278. package/dist-esm/lib/ui/components/SharePanel/PeopleMenuItem.mjs.map +2 -2
  279. package/dist-esm/lib/ui/components/SharePanel/UserPresenceColorPicker.mjs +2 -2
  280. package/dist-esm/lib/ui/components/SharePanel/UserPresenceColorPicker.mjs.map +2 -2
  281. package/dist-esm/lib/ui/components/Spinner.mjs +26 -3
  282. package/dist-esm/lib/ui/components/Spinner.mjs.map +2 -2
  283. package/dist-esm/lib/ui/components/StylePanel/DefaultStylePanel.mjs +1 -3
  284. package/dist-esm/lib/ui/components/StylePanel/DefaultStylePanel.mjs.map +2 -2
  285. package/dist-esm/lib/ui/components/StylePanel/DefaultStylePanelContent.mjs +139 -171
  286. package/dist-esm/lib/ui/components/StylePanel/DefaultStylePanelContent.mjs.map +2 -2
  287. package/dist-esm/lib/ui/components/StylePanel/DoubleDropdownPicker.mjs +3 -3
  288. package/dist-esm/lib/ui/components/StylePanel/DoubleDropdownPicker.mjs.map +2 -2
  289. package/dist-esm/lib/ui/components/StylePanel/DropdownPicker.mjs +25 -26
  290. package/dist-esm/lib/ui/components/StylePanel/DropdownPicker.mjs.map +2 -2
  291. package/dist-esm/lib/ui/components/Toolbar/DefaultImageToolbar.mjs +9 -23
  292. package/dist-esm/lib/ui/components/Toolbar/DefaultImageToolbar.mjs.map +3 -3
  293. package/dist-esm/lib/ui/components/Toolbar/DefaultImageToolbarContent.mjs +1 -1
  294. package/dist-esm/lib/ui/components/Toolbar/DefaultImageToolbarContent.mjs.map +2 -2
  295. package/dist-esm/lib/ui/components/Toolbar/DefaultToolbar.mjs +21 -56
  296. package/dist-esm/lib/ui/components/Toolbar/DefaultToolbar.mjs.map +2 -2
  297. package/dist-esm/lib/ui/components/Toolbar/OverflowingToolbar.mjs +81 -192
  298. package/dist-esm/lib/ui/components/Toolbar/OverflowingToolbar.mjs.map +3 -3
  299. package/dist-esm/lib/ui/components/Toolbar/ToggleToolLockedButton.mjs +4 -5
  300. package/dist-esm/lib/ui/components/Toolbar/ToggleToolLockedButton.mjs.map +2 -2
  301. package/dist-esm/lib/ui/components/menu-items.mjs +0 -22
  302. package/dist-esm/lib/ui/components/menu-items.mjs.map +2 -2
  303. package/dist-esm/lib/ui/components/primitives/Button/TldrawUiButtonIcon.mjs.map +2 -2
  304. package/dist-esm/lib/ui/components/primitives/TldrawUiButtonPicker.mjs +6 -8
  305. package/dist-esm/lib/ui/components/primitives/TldrawUiButtonPicker.mjs.map +2 -2
  306. package/dist-esm/lib/ui/components/primitives/TldrawUiContextualToolbar.mjs +1 -1
  307. package/dist-esm/lib/ui/components/primitives/TldrawUiContextualToolbar.mjs.map +2 -2
  308. package/dist-esm/lib/ui/components/primitives/TldrawUiDialog.mjs +1 -1
  309. package/dist-esm/lib/ui/components/primitives/TldrawUiDialog.mjs.map +2 -2
  310. package/dist-esm/lib/ui/components/primitives/TldrawUiIcon.mjs +2 -36
  311. package/dist-esm/lib/ui/components/primitives/TldrawUiIcon.mjs.map +2 -2
  312. package/dist-esm/lib/ui/components/primitives/TldrawUiPopover.mjs +2 -3
  313. package/dist-esm/lib/ui/components/primitives/TldrawUiPopover.mjs.map +2 -2
  314. package/dist-esm/lib/ui/components/primitives/TldrawUiSlider.mjs +2 -6
  315. package/dist-esm/lib/ui/components/primitives/TldrawUiSlider.mjs.map +2 -2
  316. package/dist-esm/lib/ui/components/primitives/TldrawUiToolbar.mjs +7 -31
  317. package/dist-esm/lib/ui/components/primitives/TldrawUiToolbar.mjs.map +2 -2
  318. package/dist-esm/lib/ui/components/primitives/menus/TldrawUiMenuCheckboxItem.mjs.map +2 -2
  319. package/dist-esm/lib/ui/components/primitives/menus/TldrawUiMenuContext.mjs.map +2 -2
  320. package/dist-esm/lib/ui/components/primitives/menus/TldrawUiMenuGroup.mjs +12 -25
  321. package/dist-esm/lib/ui/components/primitives/menus/TldrawUiMenuGroup.mjs.map +2 -2
  322. package/dist-esm/lib/ui/components/primitives/menus/TldrawUiMenuItem.mjs +24 -162
  323. package/dist-esm/lib/ui/components/primitives/menus/TldrawUiMenuItem.mjs.map +2 -2
  324. package/dist-esm/lib/ui/context/TldrawUiContextProvider.mjs +2 -3
  325. package/dist-esm/lib/ui/context/TldrawUiContextProvider.mjs.map +2 -2
  326. package/dist-esm/lib/ui/context/actions.mjs +8 -57
  327. package/dist-esm/lib/ui/context/actions.mjs.map +2 -2
  328. package/dist-esm/lib/ui/context/events.mjs.map +2 -2
  329. package/dist-esm/lib/ui/hooks/menu-hooks.mjs.map +2 -2
  330. package/dist-esm/lib/ui/hooks/useKeyboardShortcuts.mjs +2 -2
  331. package/dist-esm/lib/ui/hooks/useKeyboardShortcuts.mjs.map +2 -2
  332. package/dist-esm/lib/ui/hooks/useTools.mjs +10 -102
  333. package/dist-esm/lib/ui/hooks/useTools.mjs.map +2 -2
  334. package/dist-esm/lib/ui/hooks/useTranslation/defaultTranslation.mjs +0 -11
  335. package/dist-esm/lib/ui/hooks/useTranslation/defaultTranslation.mjs.map +2 -2
  336. package/dist-esm/lib/ui/kbd-utils.mjs +1 -2
  337. package/dist-esm/lib/ui/kbd-utils.mjs.map +2 -2
  338. package/dist-esm/lib/ui/version.mjs +3 -3
  339. package/dist-esm/lib/ui/version.mjs.map +1 -1
  340. package/dist-esm/lib/utils/excalidraw/putExcalidrawContent.mjs +1 -1
  341. package/dist-esm/lib/utils/excalidraw/putExcalidrawContent.mjs.map +2 -2
  342. package/dist-esm/lib/utils/tldr/buildFromV1Document.mjs +2 -3
  343. package/dist-esm/lib/utils/tldr/buildFromV1Document.mjs.map +2 -2
  344. package/package.json +34 -12
  345. package/src/index.ts +2 -39
  346. package/src/lib/TldrawImage.tsx +2 -6
  347. package/src/lib/canvas/TldrawCropHandles.tsx +1 -3
  348. package/src/lib/canvas/TldrawHandles.tsx +1 -5
  349. package/src/lib/canvas/TldrawOverlays.tsx +1 -1
  350. package/src/lib/canvas/TldrawScribble.tsx +1 -1
  351. package/src/lib/canvas/TldrawSelectionForeground.tsx +1 -5
  352. package/src/lib/defaultExternalContentHandlers.ts +1 -2
  353. package/src/lib/shapes/arrow/ArrowShapeOptions.test.ts +1 -2
  354. package/src/lib/shapes/arrow/ArrowShapeTool.test.ts +3 -4
  355. package/src/lib/shapes/arrow/ArrowShapeUtil.test.ts +11 -12
  356. package/src/lib/shapes/arrow/ArrowShapeUtil.tsx +46 -30
  357. package/src/lib/shapes/arrow/arrowLabel.ts +3 -23
  358. package/src/lib/shapes/arrow/arrowTargetState.ts +1 -2
  359. package/src/lib/shapes/arrow/elbow/ElbowArrowDebug.tsx +3 -3
  360. package/src/lib/shapes/arrow/toolStates/Pointing.tsx +0 -3
  361. package/src/lib/shapes/draw/DrawShapeTool.test.ts +5 -0
  362. package/src/lib/shapes/draw/DrawShapeUtil.tsx +7 -4
  363. package/src/lib/shapes/embed/EmbedShapeUtil.tsx +1 -1
  364. package/src/lib/shapes/frame/FrameShapeUtil.tsx +21 -26
  365. package/src/lib/shapes/frame/components/FrameHeading.tsx +1 -1
  366. package/src/lib/shapes/geo/GeoShapeUtil.tsx +2 -3
  367. package/src/lib/shapes/geo/components/GeoShapeBody.tsx +2 -2
  368. package/src/lib/shapes/highlight/HighlightShapeUtil.tsx +4 -7
  369. package/src/lib/shapes/image/ImageShapeUtil.tsx +3 -3
  370. package/src/lib/shapes/line/LineShapeUtil.test.tsx +3 -4
  371. package/src/lib/shapes/line/LineShapeUtil.tsx +6 -25
  372. package/src/lib/shapes/line/__snapshots__/LineShapeUtil.test.tsx.snap +2 -2
  373. package/src/lib/shapes/note/NoteShapeUtil.tsx +4 -10
  374. package/src/lib/shapes/shared/PathBuilder.test.tsx +1 -1
  375. package/src/lib/shapes/shared/PathBuilder.tsx +1 -35
  376. package/src/lib/shapes/shared/PlainTextLabel.tsx +0 -1
  377. package/src/lib/shapes/shared/RichTextLabel.tsx +0 -4
  378. package/src/lib/shapes/shared/ShapeFill.tsx +4 -5
  379. package/src/lib/shapes/shared/SvgTextLabel.tsx +2 -4
  380. package/src/lib/shapes/shared/freehand/svg.ts +0 -2
  381. package/src/lib/shapes/shared/usePrefersReducedMotion.tsx +1 -11
  382. package/src/lib/shapes/text/TextShapeTool.test.ts +5 -6
  383. package/src/lib/shapes/text/TextShapeUtil.tsx +14 -8
  384. package/src/lib/shapes/video/VideoShapeUtil.tsx +3 -3
  385. package/src/lib/styles.tsx +1 -3
  386. package/src/lib/tools/EraserTool/childStates/Erasing.ts +1 -34
  387. package/src/lib/tools/EraserTool/childStates/Pointing.ts +0 -20
  388. package/src/lib/tools/SelectTool/childStates/Crop/children/PointingCrop.ts +1 -8
  389. package/src/lib/tools/SelectTool/childStates/DraggingHandle.tsx +30 -54
  390. package/src/lib/tools/SelectTool/childStates/Idle.ts +24 -2
  391. package/src/lib/tools/SelectTool/childStates/PointingShape.ts +0 -7
  392. package/src/lib/tools/SelectTool/childStates/Resizing.ts +1 -12
  393. package/src/lib/tools/SelectTool/childStates/Rotating.ts +0 -11
  394. package/src/lib/tools/SelectTool/childStates/Translating.ts +1 -11
  395. package/src/lib/tools/selection-logic/getHitShapeOnCanvasPointerDown.ts +0 -1
  396. package/src/lib/ui/TldrawUi.tsx +2 -17
  397. package/src/lib/ui/components/A11y.tsx +13 -15
  398. package/src/lib/ui/components/ActionsMenu/DefaultActionsMenu.tsx +3 -15
  399. package/src/lib/ui/components/DefaultMenuPanel.tsx +3 -4
  400. package/src/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialogContent.tsx +0 -40
  401. package/src/lib/ui/components/MainMenu/DefaultMainMenuContent.tsx +2 -4
  402. package/src/lib/ui/components/Minimap/MinimapManager.ts +4 -4
  403. package/src/lib/ui/components/MobileStylePanel.tsx +6 -9
  404. package/src/lib/ui/components/NavigationPanel/DefaultNavigationPanel.tsx +5 -4
  405. package/src/lib/ui/components/PageMenu/DefaultPageMenu.tsx +2 -3
  406. package/src/lib/ui/components/SharePanel/PeopleMenuItem.tsx +3 -4
  407. package/src/lib/ui/components/SharePanel/UserPresenceColorPicker.tsx +3 -3
  408. package/src/lib/ui/components/Spinner.tsx +24 -2
  409. package/src/lib/ui/components/StylePanel/DefaultStylePanel.tsx +1 -3
  410. package/src/lib/ui/components/StylePanel/DefaultStylePanelContent.tsx +106 -146
  411. package/src/lib/ui/components/StylePanel/DoubleDropdownPicker.tsx +3 -3
  412. package/src/lib/ui/components/StylePanel/DropdownPicker.tsx +6 -7
  413. package/src/lib/ui/components/Toolbar/DefaultImageToolbar.tsx +9 -25
  414. package/src/lib/ui/components/Toolbar/DefaultImageToolbarContent.tsx +1 -1
  415. package/src/lib/ui/components/Toolbar/DefaultToolbar.tsx +23 -55
  416. package/src/lib/ui/components/Toolbar/OverflowingToolbar.tsx +61 -212
  417. package/src/lib/ui/components/Toolbar/ToggleToolLockedButton.tsx +12 -17
  418. package/src/lib/ui/components/menu-items.tsx +0 -25
  419. package/src/lib/ui/components/primitives/Button/TldrawUiButtonIcon.tsx +2 -2
  420. package/src/lib/ui/components/primitives/TldrawUiButtonPicker.tsx +35 -40
  421. package/src/lib/ui/components/primitives/TldrawUiContextualToolbar.tsx +1 -1
  422. package/src/lib/ui/components/primitives/TldrawUiDialog.tsx +1 -1
  423. package/src/lib/ui/components/primitives/TldrawUiIcon.tsx +3 -41
  424. package/src/lib/ui/components/primitives/TldrawUiPopover.tsx +2 -4
  425. package/src/lib/ui/components/primitives/TldrawUiSlider.tsx +1 -6
  426. package/src/lib/ui/components/primitives/TldrawUiToolbar.tsx +12 -56
  427. package/src/lib/ui/components/primitives/menus/TldrawUiMenuCheckboxItem.tsx +2 -2
  428. package/src/lib/ui/components/primitives/menus/TldrawUiMenuContext.tsx +1 -0
  429. package/src/lib/ui/components/primitives/menus/TldrawUiMenuGroup.tsx +16 -29
  430. package/src/lib/ui/components/primitives/menus/TldrawUiMenuItem.tsx +23 -224
  431. package/src/lib/ui/context/TldrawUiContextProvider.tsx +20 -23
  432. package/src/lib/ui/context/actions.tsx +9 -59
  433. package/src/lib/ui/context/events.tsx +2 -6
  434. package/src/lib/ui/hooks/menu-hooks.ts +0 -1
  435. package/src/lib/ui/hooks/useKeyboardShortcuts.ts +2 -3
  436. package/src/lib/ui/hooks/useTools.tsx +11 -142
  437. package/src/lib/ui/hooks/useTranslation/TLUiTranslationKey.ts +0 -11
  438. package/src/lib/ui/hooks/useTranslation/defaultTranslation.ts +0 -11
  439. package/src/lib/ui/kbd-utils.ts +1 -2
  440. package/src/lib/ui/version.ts +3 -3
  441. package/src/lib/ui.css +314 -414
  442. package/src/lib/utils/excalidraw/__snapshots__/putExcalidrawContent.test.tsx.snap +7 -21
  443. package/src/lib/utils/excalidraw/putExcalidrawContent.ts +1 -1
  444. package/src/lib/utils/tldr/__snapshots__/buildFromV1Document.test.ts.snap +7 -28
  445. package/src/lib/utils/tldr/buildFromV1Document.ts +1 -2
  446. package/src/test/A11y.test.tsx +2 -3
  447. package/src/test/ClickManager.test.ts +6 -7
  448. package/src/test/Editor.test.tsx +20 -21
  449. package/src/test/EraserTool.test.ts +13 -184
  450. package/src/test/HandTool.test.ts +9 -10
  451. package/src/test/HighlightShape.test.ts +1 -2
  452. package/src/test/SelectTool.test.ts +13 -40
  453. package/src/test/TLUserPreferences.test.ts +3 -4
  454. package/src/test/TestEditor.ts +15 -13
  455. package/src/test/TldrawEditor.test.tsx +10 -11
  456. package/src/test/ZoomTool.test.ts +6 -7
  457. package/src/test/__snapshots__/drawing.test.ts.snap +2 -2
  458. package/src/test/__snapshots__/groups.test.tsx.snap +6 -6
  459. package/src/test/__snapshots__/resizing.test.ts.snap +2 -2
  460. package/src/test/arrows-megabus.test.tsx +10 -17
  461. package/src/test/bindings.test.tsx +37 -24
  462. package/src/test/bookmark-shapes.test.ts +8 -1
  463. package/src/test/commands/__snapshots__/getSvgString.test.ts.snap +7 -23
  464. package/src/test/commands/__snapshots__/packShapes.test.ts.snap +8 -8
  465. package/src/test/commands/__snapshots__/zoomToFit.test.ts.snap +2 -2
  466. package/src/test/commands/alignShapes.test.tsx +24 -25
  467. package/src/test/commands/animationSpeed.test.ts +1 -2
  468. package/src/test/commands/centerOnPoint.test.ts +2 -3
  469. package/src/test/commands/clipboard.test.ts +2 -3
  470. package/src/test/commands/createShapes.test.ts +1 -2
  471. package/src/test/commands/deletePage.test.ts +1 -84
  472. package/src/test/commands/deleteShapes.test.ts +1 -2
  473. package/src/test/commands/distributeShapes.test.tsx +10 -11
  474. package/src/test/commands/getSvgString.test.ts +1 -2
  475. package/src/test/commands/packShapes.test.ts +4 -5
  476. package/src/test/commands/resizeShape.test.ts +1 -2
  477. package/src/test/commands/rotateShapes.test.ts +6 -7
  478. package/src/test/commands/setCamera.test.ts +3 -4
  479. package/src/test/commands/setCurrentPage.test.ts +2 -3
  480. package/src/test/commands/stackShapes.test.ts +10 -11
  481. package/src/test/commands/stretch.test.tsx +12 -13
  482. package/src/test/createDeepLink.test.tsx +1 -2
  483. package/src/test/cropping.test.ts +2 -3
  484. package/src/test/drawing.test.ts +1 -2
  485. package/src/test/flipShapes.test.ts +3 -4
  486. package/src/test/frames.test.ts +24 -25
  487. package/src/test/getCulledShapes.test.tsx +2 -3
  488. package/src/test/groups.test.tsx +2 -2
  489. package/src/test/handleDeepLink.test.tsx +1 -2
  490. package/src/test/maxShapes.test.ts +2 -3
  491. package/src/test/modifiers.test.ts +4 -5
  492. package/src/test/navigation.test.ts +9 -264
  493. package/src/test/panning.test.ts +1 -2
  494. package/src/test/perf/perf.test.ts +1 -2
  495. package/src/test/registerDeepLinkListener.test.tsx +9 -10
  496. package/src/test/resizing.test.ts +38 -39
  497. package/src/test/select.test.tsx +3 -4
  498. package/src/test/selection-omnibus.test.ts +10 -11
  499. package/src/test/shapeutils.test.ts +48 -398
  500. package/src/test/translating.test.ts +9 -10
  501. package/tldraw.css +627 -726
  502. package/dist-cjs/lib/ui/components/AccessibilityMenu.js +0 -35
  503. package/dist-cjs/lib/ui/components/AccessibilityMenu.js.map +0 -7
  504. package/dist-cjs/lib/ui/components/primitives/TldrawUiTooltip.js +0 -268
  505. package/dist-cjs/lib/ui/components/primitives/TldrawUiTooltip.js.map +0 -7
  506. package/dist-cjs/lib/ui/components/primitives/layout.js +0 -76
  507. package/dist-cjs/lib/ui/components/primitives/layout.js.map +0 -7
  508. package/dist-esm/lib/ui/components/AccessibilityMenu.mjs +0 -19
  509. package/dist-esm/lib/ui/components/AccessibilityMenu.mjs.map +0 -7
  510. package/dist-esm/lib/ui/components/primitives/TldrawUiTooltip.mjs +0 -245
  511. package/dist-esm/lib/ui/components/primitives/TldrawUiTooltip.mjs.map +0 -7
  512. package/dist-esm/lib/ui/components/primitives/layout.mjs +0 -46
  513. package/dist-esm/lib/ui/components/primitives/layout.mjs.map +0 -7
  514. package/src/lib/ui/components/AccessibilityMenu.tsx +0 -20
  515. package/src/lib/ui/components/primitives/TldrawUiTooltip.tsx +0 -327
  516. package/src/lib/ui/components/primitives/layout.tsx +0 -107
  517. package/src/test/inner-outer-margin.test.ts +0 -315
package/src/lib/ui.css CHANGED
@@ -1,15 +1,15 @@
1
1
  /* @tldraw/ui */
2
2
 
3
3
  .tl-container {
4
- --tl-layer-above: 1;
5
- --tl-layer-focused-input: 10;
6
- --tl-layer-menu-click-capture: 250;
7
- --tl-layer-panels: 300;
8
- --tl-layer-menus: 400;
9
- --tl-layer-toasts: 650;
10
- --tl-layer-cursor: 700;
11
- --tl-layer-header-footer: 999;
12
- --tl-layer-following-indicator: 1000;
4
+ --layer-above: 1;
5
+ --layer-focused-input: 10;
6
+ --layer-menu-click-capture: 250;
7
+ --layer-panels: 300;
8
+ --layer-menus: 400;
9
+ --layer-toasts: 650;
10
+ --layer-cursor: 700;
11
+ --layer-header-footer: 999;
12
+ --layer-following-indicator: 1000;
13
13
  }
14
14
 
15
15
  /* Button */
@@ -33,23 +33,23 @@
33
33
  text-rendering: optimizeLegibility;
34
34
  font-size: 12px;
35
35
  gap: 0px;
36
- color: var(--tl-color-text-1);
36
+ color: var(--color-text-1);
37
37
  z-index: 0;
38
38
  }
39
39
 
40
40
  .tlui-button:disabled {
41
- color: var(--tl-color-text-3);
41
+ color: var(--color-text-3);
42
42
  text-shadow: none;
43
43
  cursor: default;
44
44
  }
45
45
 
46
46
  .tlui-button:disabled .tlui-kbd {
47
- color: var(--tl-color-text-3);
47
+ color: var(--color-text-3);
48
48
  }
49
49
 
50
50
  .tlui-button > * {
51
51
  position: relative;
52
- z-index: var(--tl-layer-above);
52
+ z-index: var(--layer-above);
53
53
  }
54
54
 
55
55
  .tlui-button__label {
@@ -65,7 +65,7 @@
65
65
  */
66
66
  .tl-container__focused:not(.tl-container__no-focus-ring) .tlui-button:focus-visible {
67
67
  border-radius: 10px;
68
- outline: 2px solid var(--tl-color-focus);
68
+ outline: 2px solid var(--color-focus);
69
69
  outline-offset: -5px;
70
70
  }
71
71
  .tl-container__focused:not(.tl-container__no-focus-ring) .tlui-button__tool:focus-visible {
@@ -73,7 +73,7 @@
73
73
  }
74
74
  .tlui-slider__container:has(.tlui-slider__thumb:focus-visible) {
75
75
  border-radius: 10px;
76
- outline: 2px solid var(--tl-color-focus);
76
+ outline: 2px solid var(--color-focus);
77
77
  outline-offset: -5px;
78
78
  }
79
79
 
@@ -82,8 +82,8 @@
82
82
  content: '';
83
83
  position: absolute;
84
84
  inset: 4px;
85
- border-radius: var(--tl-radius-2);
86
- background: var(--tl-color-muted-2);
85
+ border-radius: var(--radius-2);
86
+ background: var(--color-muted-2);
87
87
  opacity: 0;
88
88
  }
89
89
 
@@ -93,18 +93,18 @@
93
93
 
94
94
  .tlui-button[data-isactive='true']::after,
95
95
  .tlui-button[data-isactive='true']:not(:disabled, :focus-visible):active:after {
96
- background: var(--tl-color-hint);
96
+ background: var(--color-hint);
97
97
  opacity: 1;
98
98
  }
99
99
 
100
- .tlui-button[aria-expanded='true'][data-direction='left'] {
101
- background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
100
+ .tlui-button[aria-expanded='true'][data-direction='left']::after {
101
+ background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
102
102
  opacity: 1;
103
103
  }
104
104
 
105
105
  @media (hover: hover) {
106
106
  .tlui-button[aria-expanded='true'][data-direction='left']:not(:hover)::after {
107
- background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
107
+ background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
108
108
  opacity: 1;
109
109
  }
110
110
 
@@ -118,18 +118,18 @@
118
118
  }
119
119
 
120
120
  .tlui-button__icon + .tlui-button__label {
121
- margin-left: var(--tl-space-2);
121
+ margin-left: var(--space-2);
122
122
  }
123
123
 
124
124
  /* Low button */
125
125
 
126
126
  .tlui-button__low {
127
- border-radius: var(--tl-radius-3);
128
- background-color: var(--tl-color-low);
127
+ border-radius: var(--radius-3);
128
+ background-color: var(--color-low);
129
129
  }
130
130
 
131
131
  .tlui-button__low::after {
132
- background-color: var(--tl-color-muted-2);
132
+ background-color: var(--color-muted-2);
133
133
  opacity: 0;
134
134
  }
135
135
 
@@ -142,25 +142,31 @@
142
142
  /* Primary / danger buttons */
143
143
 
144
144
  .tlui-button__primary {
145
- color: var(--tl-color-primary);
145
+ color: var(--color-primary);
146
146
  }
147
147
 
148
148
  .tlui-button__danger {
149
- color: var(--tl-color-danger);
149
+ color: var(--color-danger);
150
150
  text-shadow: none;
151
151
  }
152
152
 
153
153
  @media (hover: hover) {
154
154
  .tlui-button__primary:not(:disabled, :focus-visible):hover {
155
- color: var(--tl-color-primary);
155
+ color: var(--color-primary);
156
156
  }
157
157
 
158
158
  .tlui-button__danger:not(:disabled, :focus-visible):hover {
159
- color: var(--tl-color-danger);
159
+ color: var(--color-danger);
160
160
  text-shadow: none;
161
161
  }
162
162
  }
163
163
 
164
+ /* Panel button */
165
+
166
+ .tlui-button__panel {
167
+ position: relative;
168
+ }
169
+
164
170
  /* Menu button */
165
171
 
166
172
  .tlui-button__menu {
@@ -173,7 +179,7 @@
173
179
 
174
180
  .tlui-button__menu::after {
175
181
  inset: 4px;
176
- border-radius: var(--tl-radius-2);
182
+ border-radius: var(--radius-2);
177
183
  }
178
184
 
179
185
  .tlui-button__menu > .tlui-icon + .tlui-button__label {
@@ -201,26 +207,18 @@
201
207
 
202
208
  /* Tool lock button */
203
209
 
204
- .tlui-main-toolbar__lock-button {
210
+ .tlui-toolbar__lock-button {
205
211
  position: absolute;
212
+ top: 4px;
213
+ right: 0px;
206
214
  pointer-events: all;
207
215
  height: 40px;
208
216
  width: 40px;
209
- border-radius: var(--tl-radius-2);
210
- }
211
-
212
- .tlui-main-toolbar--horizontal .tlui-main-toolbar__lock-button {
213
- top: 4px;
214
- right: 0px;
215
217
  min-width: 0px;
218
+ border-radius: var(--radius-2);
216
219
  }
217
220
 
218
- .tlui-main-toolbar--vertical .tlui-main-toolbar__lock-button {
219
- bottom: 0px;
220
- min-height: 0px;
221
- }
222
-
223
- .tlui-main-toolbar__lock-button::after {
221
+ .tlui-toolbar__lock-button::after {
224
222
  top: 4px;
225
223
  left: 8px;
226
224
  inset: 4px;
@@ -232,6 +230,16 @@
232
230
  position: relative;
233
231
  height: 48px;
234
232
  width: 48px;
233
+ margin-left: -2px;
234
+ margin-right: -2px;
235
+ }
236
+
237
+ .tlui-button__tool:nth-of-type(1) {
238
+ margin-left: 0px;
239
+ }
240
+
241
+ .tlui-button__tool:nth-last-of-type(1) {
242
+ margin-right: 0px;
235
243
  }
236
244
 
237
245
  .tlui-button__tool::after {
@@ -240,64 +248,69 @@
240
248
  }
241
249
 
242
250
  .tlui-button__tool[aria-pressed='true'] {
243
- color: var(--tl-color-selected-contrast);
251
+ color: var(--color-selected-contrast);
244
252
  }
245
253
 
246
254
  .tlui-button__tool[aria-pressed='true']:not(:disabled, :focus-visible):active {
247
- color: var(--tl-color-selected-contrast);
255
+ color: var(--color-selected-contrast);
248
256
  }
249
257
 
250
258
  .tlui-button__tool[aria-pressed='true']:not(:disabled)::after {
251
- background: var(--tl-color-selected);
259
+ background: var(--color-selected);
252
260
  opacity: 1;
253
261
  }
254
262
 
255
- .tlui-layout__mobile .tlui-main-toolbar--horizontal .tlui-button__tool {
263
+ .tlui-layout__mobile .tlui-button__tool {
256
264
  height: 48px;
257
265
  width: 43px;
258
266
  }
259
267
 
260
- .tlui-layout__mobile .tlui-main-toolbar--horizontal .tlui-button__tool > .tlui-icon {
268
+ .tlui-layout__mobile .tlui-button__tool > .tlui-icon {
261
269
  height: 16px;
262
270
  width: 16px;
263
271
  }
264
272
 
265
- /* Row layout */
273
+ /* Button Row */
266
274
 
267
- .tlui-row {
275
+ .tlui-buttons__horizontal {
268
276
  display: flex;
269
277
  flex-direction: row;
270
- padding: 0 2px;
271
278
  }
272
- .tlui-row > * {
279
+ .tlui-buttons__horizontal > * {
273
280
  margin-left: -2px;
274
281
  margin-right: -2px;
275
282
  }
276
-
277
- /* Column layout */
278
-
279
- .tlui-column {
280
- display: flex;
281
- flex-direction: column;
282
- padding: 2px 0;
283
+ .tlui-buttons__horizontal > *:nth-child(1) {
284
+ margin-left: 0px;
283
285
  }
284
- .tlui-column > * {
285
- margin-top: -2px;
286
- margin-bottom: -2px;
286
+ .tlui-buttons__horizontal > *:nth-last-child(1) {
287
+ margin-right: 0px;
287
288
  }
288
289
 
289
- /* Grid layout */
290
+ /* Button Grid */
290
291
 
291
- .tlui-grid {
292
+ .tlui-buttons__grid {
292
293
  display: grid;
293
- grid-template-columns: repeat(4, 1fr);
294
+ grid-template-columns: repeat(4, auto);
294
295
  grid-auto-flow: row;
295
296
  overflow: hidden;
296
- padding: 2px;
297
297
  }
298
- .tlui-grid > * {
298
+ .tlui-buttons__grid > .tlui-button {
299
299
  margin: -2px;
300
300
  }
301
+ .tlui-buttons__grid > .tlui-button:nth-of-type(4n),
302
+ .tlui-buttons__vertical-align > .tlui-button:nth-of-type(3n) {
303
+ margin-right: 0px;
304
+ }
305
+ .tlui-buttons__grid > .tlui-button:nth-of-type(4n - 3) {
306
+ margin-left: 0px;
307
+ }
308
+ .tlui-buttons__grid > .tlui-button:nth-of-type(-n + 4) {
309
+ margin-top: 0px;
310
+ }
311
+ .tlui-buttons__grid > .tlui-button:nth-last-of-type(-n + 4) {
312
+ margin-bottom: 0px;
313
+ }
301
314
 
302
315
  /* Zoom button */
303
316
 
@@ -321,9 +334,9 @@
321
334
  pointer-events: none;
322
335
  user-select: none;
323
336
  contain: strict;
324
- z-index: var(--tl-layer-panels);
337
+ z-index: var(--layer-panels);
325
338
  transform: translate3d(0, 0, 0);
326
- --tl-sab: env(safe-area-inset-bottom);
339
+ --sab: env(safe-area-inset-bottom);
327
340
  font-weight: 500;
328
341
  line-height: 1.6;
329
342
  -webkit-font-smoothing: antialiased;
@@ -376,11 +389,11 @@
376
389
  justify-content: flex-start;
377
390
  align-items: flex-start;
378
391
  width: min-content;
379
- gap: var(--tl-space-3);
380
- margin: var(--tl-space-2) var(--tl-space-3);
392
+ gap: var(--space-3);
393
+ margin: var(--space-2) var(--space-3);
381
394
  white-space: nowrap;
382
395
  pointer-events: none;
383
- z-index: var(--tl-layer-panels);
396
+ z-index: var(--layer-panels);
384
397
  }
385
398
 
386
399
  /* ---------------------- Icon ---------------------- */
@@ -408,7 +421,7 @@
408
421
 
409
422
  .tlui-slider__container {
410
423
  width: 100%;
411
- padding: 0px var(--tl-space-4);
424
+ padding: 0px var(--space-4);
412
425
  }
413
426
 
414
427
  .tlui-slider {
@@ -434,7 +447,7 @@
434
447
  content: '';
435
448
  height: 3px;
436
449
  width: 100%;
437
- background-color: var(--tl-color-muted-1);
450
+ background-color: var(--color-muted-1);
438
451
  border-radius: 14px;
439
452
  }
440
453
 
@@ -443,7 +456,7 @@
443
456
  top: calc(50% - 2px);
444
457
  left: 0px;
445
458
  height: 3px;
446
- background-color: var(--tl-color-selected);
459
+ background-color: var(--color-selected);
447
460
  border-radius: 14px;
448
461
  }
449
462
 
@@ -455,16 +468,16 @@
455
468
  height: 18px;
456
469
  position: relative;
457
470
  top: -1px;
458
- background-color: var(--tl-color-panel);
471
+ background-color: var(--color-panel);
459
472
  border-radius: 999px;
460
- box-shadow: inset 0px 0px 0px 2px var(--tl-color-text-1);
473
+ box-shadow: inset 0px 0px 0px 2px var(--color-text-1);
461
474
  }
462
475
 
463
476
  .tlui-slider__thumb:active {
464
477
  cursor: grabbing;
465
478
  box-shadow:
466
- inset 0px 0px 0px 2px var(--tl-color-text-1),
467
- var(--tl-shadow-1);
479
+ inset 0px 0px 0px 2px var(--color-text-1),
480
+ var(--shadow-1);
468
481
  }
469
482
 
470
483
  /* ---------------------- Input --------------------- */
@@ -473,7 +486,7 @@
473
486
  background: none;
474
487
  margin: 0px;
475
488
  position: relative;
476
- z-index: var(--tl-layer-above);
489
+ z-index: var(--layer-above);
477
490
  height: 40px;
478
491
  max-height: 40px;
479
492
  display: flex;
@@ -482,8 +495,8 @@
482
495
  font-family: inherit;
483
496
  font-size: 12px;
484
497
  font-weight: inherit;
485
- color: var(--tl-color-text-1);
486
- padding: var(--tl-space-4);
498
+ color: var(--color-text-1);
499
+ padding: var(--space-4);
487
500
  padding-left: 0px;
488
501
  border: none;
489
502
  outline: none;
@@ -499,8 +512,8 @@
499
512
  height: 44px;
500
513
  display: flex;
501
514
  align-items: center;
502
- gap: var(--tl-space-4);
503
- color: var(--tl-color-text);
515
+ gap: var(--space-4);
516
+ color: var(--color-text);
504
517
  }
505
518
 
506
519
  .tlui-input__wrapper > .tlui-icon {
@@ -532,7 +545,7 @@
532
545
  grid-auto-columns: minmax(1em, auto);
533
546
  align-self: bottom;
534
547
  color: currentColor;
535
- margin-left: var(--tl-space-4);
548
+ margin-left: var(--space-4);
536
549
  }
537
550
 
538
551
  .tlui-kbd > span {
@@ -549,13 +562,13 @@
549
562
  }
550
563
 
551
564
  .tlui-kbd:not(:last-child) {
552
- margin-right: var(--tl-space-2);
565
+ margin-right: var(--space-2);
553
566
  }
554
567
 
555
568
  /* Focus Mode Button */
556
569
 
557
570
  .tlui-focus-button {
558
- z-index: var(--tl-layer-panels);
571
+ z-index: var(--layer-panels);
559
572
  pointer-events: all;
560
573
  }
561
574
 
@@ -566,16 +579,16 @@
566
579
  }
567
580
 
568
581
  .tlui-menu {
569
- z-index: var(--tl-layer-menus);
582
+ z-index: var(--layer-menus);
570
583
  height: fit-content;
571
584
  width: fit-content;
572
- border-radius: var(--tl-radius-3);
585
+ border-radius: var(--radius-3);
573
586
  pointer-events: all;
574
587
  touch-action: auto;
575
588
  overflow-y: auto;
576
589
  overscroll-behavior: none;
577
- background-color: var(--tl-color-panel);
578
- box-shadow: var(--tl-shadow-3);
590
+ background-color: var(--color-panel);
591
+ box-shadow: var(--shadow-3);
579
592
  }
580
593
 
581
594
  .tlui-menu::-webkit-scrollbar {
@@ -593,7 +606,7 @@
593
606
  }
594
607
 
595
608
  .tlui-menu__group {
596
- border-bottom: 1px solid var(--tl-color-divider);
609
+ border-bottom: 1px solid var(--color-divider);
597
610
  }
598
611
  .tlui-menu__group:nth-last-of-type(1) {
599
612
  border-bottom: none;
@@ -603,23 +616,23 @@
603
616
 
604
617
  .tlui-menu__submenu__trigger[data-state='open']::after {
605
618
  opacity: 1;
606
- background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
619
+ background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
607
620
  }
608
621
 
609
622
  .tlui-menu__submenu__trigger[data-direction='left'][data-state='open']::after {
610
623
  opacity: 1;
611
- background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
624
+ background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
612
625
  }
613
626
 
614
627
  @media (hover: hover) {
615
628
  .tlui-menu__submenu__trigger[data-state='open']:not(:hover)::after {
616
629
  opacity: 1;
617
- background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
630
+ background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
618
631
  }
619
632
 
620
633
  .tlui-menu__submenu__trigger[data-direction='left'][data-state='open']:not(:hover)::after {
621
634
  opacity: 1;
622
- background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
635
+ background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
623
636
  }
624
637
  }
625
638
 
@@ -644,7 +657,7 @@
644
657
  .tlui-menu-click-capture {
645
658
  position: fixed;
646
659
  inset: 0;
647
- z-index: var(--tl-layer-menu-click-capture);
660
+ z-index: var(--layer-menu-click-capture);
648
661
  }
649
662
 
650
663
  /* --------------------- Popover -------------------- */
@@ -660,10 +673,10 @@
660
673
  max-height: calc(var(--radix-popover-content-available-height) - 8px);
661
674
  margin: 0px;
662
675
  border: none;
663
- border-radius: var(--tl-radius-3);
664
- background-color: var(--tl-color-panel);
665
- box-shadow: var(--tl-shadow-3);
666
- z-index: var(--tl-layer-menus);
676
+ border-radius: var(--radius-3);
677
+ background-color: var(--color-panel);
678
+ box-shadow: var(--shadow-3);
679
+ z-index: var(--layer-menus);
667
680
  overflow: hidden;
668
681
  overflow-y: auto;
669
682
  touch-action: auto;
@@ -676,22 +689,22 @@
676
689
 
677
690
  .tlui-menu-zone {
678
691
  position: relative;
679
- z-index: var(--tl-layer-panels);
692
+ z-index: var(--layer-panels);
680
693
  width: fit-content;
681
- border-right: 2px solid var(--tl-color-background);
682
- border-bottom: 2px solid var(--tl-color-background);
683
- border-bottom-right-radius: var(--tl-radius-4);
684
- background-color: var(--tl-color-low);
694
+ border-right: 2px solid var(--color-background);
695
+ border-bottom: 2px solid var(--color-background);
696
+ border-bottom-right-radius: var(--radius-4);
697
+ background-color: var(--color-low);
685
698
  }
686
699
 
687
700
  .tlui-menu-zone *[data-state='open']::after {
688
- background: linear-gradient(180deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
701
+ background: linear-gradient(180deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
689
702
  opacity: 1;
690
703
  }
691
704
 
692
705
  @media (hover: hover) {
693
706
  .tlui-menu-zone *[data-state='open']:not(:hover)::after {
694
- background: linear-gradient(180deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
707
+ background: linear-gradient(180deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
695
708
  opacity: 1;
696
709
  }
697
710
  }
@@ -717,8 +730,8 @@
717
730
  align-items: center;
718
731
  width: 100%;
719
732
  height: 40px;
720
- padding-left: var(--tl-space-4);
721
- border-bottom: 1px solid var(--tl-color-divider);
733
+ padding-left: var(--space-4);
734
+ border-bottom: 1px solid var(--color-divider);
722
735
  }
723
736
 
724
737
  .tlui-page-menu__header > .tlui-button:nth-of-type(1) {
@@ -726,7 +739,7 @@
726
739
  }
727
740
 
728
741
  .tlui-page-menu__header__title {
729
- color: var(--tl-color-text);
742
+ color: var(--color-text);
730
743
  font-size: 12px;
731
744
  flex-grow: 2;
732
745
  }
@@ -811,7 +824,7 @@
811
824
  display: inline-flex;
812
825
  align-items: center;
813
826
  justify-content: center;
814
- color: var(--tl-color-text);
827
+ color: var(--color-text);
815
828
  }
816
829
 
817
830
  .tlui-page_menu__item__sortable {
@@ -824,7 +837,7 @@
824
837
  flex-direction: row;
825
838
  align-items: center;
826
839
  overflow: hidden;
827
- z-index: var(--tl-layer-above);
840
+ z-index: var(--layer-above);
828
841
  }
829
842
 
830
843
  .tlui-page_menu__item__sortable__title {
@@ -836,7 +849,7 @@
836
849
  }
837
850
 
838
851
  .tlui-page_menu__item__sortable:focus-visible {
839
- z-index: var(--tl-layer-focused-input);
852
+ z-index: var(--layer-focused-input);
840
853
  }
841
854
 
842
855
  .tlui-page_menu__item__sortable__handle {
@@ -845,7 +858,7 @@
845
858
  min-width: 0px;
846
859
  height: 40px;
847
860
  cursor: grab;
848
- color: var(--tl-color-text-3);
861
+ color: var(--color-text-3);
849
862
  flex-shrink: 0;
850
863
  margin-right: -9px;
851
864
  }
@@ -887,13 +900,13 @@
887
900
  }
888
901
 
889
902
  .tlui-page_menu__item__submenu > .tlui-button[data-state='open']::after {
890
- background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
903
+ background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
891
904
  opacity: 1;
892
905
  }
893
906
 
894
907
  @media (hover: hover) {
895
908
  .tlui-page_menu__item__submenu > .tlui-button[data-state='open']:not(:hover)::after {
896
- background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
909
+ background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
897
910
  opacity: 1;
898
911
  }
899
912
  }
@@ -929,7 +942,7 @@
929
942
  top: 48px;
930
943
  left: -9999px;
931
944
  padding: 8px 16px;
932
- z-index: var(--tl-layer-toasts);
945
+ z-index: var(--layer-toasts);
933
946
  }
934
947
 
935
948
  .tl-skip-to-main-content:focus {
@@ -941,17 +954,17 @@
941
954
  .tlui-offline-indicator {
942
955
  display: flex;
943
956
  flex-direction: row;
944
- gap: var(--tl-space-3);
945
- color: var(--tl-color-text);
946
- background-color: var(--tl-color-low);
947
- border: 3px solid var(--tl-color-background);
948
- padding: 0px var(--tl-space-5);
957
+ gap: var(--space-3);
958
+ color: var(--color-text);
959
+ background-color: var(--color-low);
960
+ border: 3px solid var(--color-background);
961
+ padding: 0px var(--space-5);
949
962
  height: 42px;
950
963
  align-items: center;
951
964
  justify-content: center;
952
965
  border-radius: 99px;
953
966
  opacity: 0;
954
- animation: tl-fade-in;
967
+ animation: fade-in;
955
968
  animation-duration: 0.12s;
956
969
  animation-delay: 2s;
957
970
  animation-fill-mode: forwards;
@@ -960,10 +973,10 @@
960
973
  /* ------------------- Style panel ------------------ */
961
974
 
962
975
  .tlui-style-panel__wrapper {
963
- box-shadow: var(--tl-shadow-2);
964
- border-radius: var(--tl-radius-3);
976
+ box-shadow: var(--shadow-2);
977
+ border-radius: var(--radius-3);
965
978
  pointer-events: all;
966
- background-color: var(--tl-color-panel);
979
+ background-color: var(--color-panel);
967
980
  height: fit-content;
968
981
  max-height: 100%;
969
982
  margin: 8px;
@@ -972,7 +985,7 @@
972
985
  overscroll-behavior: none;
973
986
  overflow-y: auto;
974
987
  overflow-x: hidden;
975
- color: var(--tl-color-text);
988
+ color: var(--color-text);
976
989
  }
977
990
  /* if the style panel is the only child (ie no share menu), increase the margin */
978
991
  .tlui-style-panel__wrapper:only-child {
@@ -981,18 +994,12 @@
981
994
 
982
995
  .tlui-style-panel {
983
996
  position: relative;
984
- z-index: var(--tl-layer-panels);
997
+ z-index: var(--layer-panels);
985
998
  pointer-events: all;
986
999
  width: 148px;
987
1000
  max-width: 148px;
988
1001
  }
989
1002
 
990
- .tlui-style-panel[data-show-ui-labels='true'] .tlui-button[data-isactive='true'] {
991
- border-radius: 10px;
992
- outline: 2px solid var(--tl-color-text);
993
- outline-offset: -5px;
994
- }
995
-
996
1003
  .tlui-style-panel::-webkit-scrollbar {
997
1004
  display: none;
998
1005
  }
@@ -1008,7 +1015,7 @@
1008
1015
  }
1009
1016
 
1010
1017
  .tlui-style-panel__section:nth-of-type(n + 2):not(:last-child) {
1011
- border-bottom: 1px solid var(--tl-color-divider);
1018
+ border-bottom: 1px solid var(--color-divider);
1012
1019
  }
1013
1020
 
1014
1021
  .tlui-style-panel__section:empty {
@@ -1017,19 +1024,23 @@
1017
1024
 
1018
1025
  .tlui-style-panel__section__common:not(:only-child) {
1019
1026
  margin-bottom: 7px;
1020
- border-bottom: 1px solid var(--tl-color-divider);
1027
+ border-bottom: 1px solid var(--color-divider);
1021
1028
  }
1022
1029
 
1023
- .tlui-style-panel__dropdown-picker:only-child {
1024
- width: 100%;
1030
+ .tlui-style-panel__row {
1031
+ display: flex;
1032
+ }
1033
+ /* Only really used for the alignment picker */
1034
+ .tlui-style-panel__row__extra-button {
1035
+ margin-left: -2px;
1025
1036
  }
1026
1037
 
1027
1038
  .tlui-style-panel__double-select-picker {
1028
1039
  display: flex;
1029
1040
  grid-template-columns: 1fr auto;
1030
1041
  align-items: center;
1031
- padding-left: var(--tl-space-4);
1032
- color: var(--tl-color-text-1);
1042
+ padding-left: var(--space-4);
1043
+ color: var(--color-text-1);
1033
1044
  font-size: 12px;
1034
1045
  }
1035
1046
 
@@ -1043,45 +1054,25 @@
1043
1054
 
1044
1055
  .tlui-style-panel .tlui-button[data-state='open']::after {
1045
1056
  opacity: 1;
1046
- background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
1057
+ background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
1047
1058
  }
1048
1059
 
1049
1060
  @media (hover: hover) {
1050
1061
  .tlui-style-panel .tlui-button[data-state='open']:not(:hover)::after {
1051
1062
  opacity: 1;
1052
- background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
1063
+ background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
1053
1064
  }
1054
1065
  }
1055
1066
 
1056
- /* Accessibility subheadings */
1057
-
1058
- .tlui-style-panel__section .tlui-style-panel__subheading,
1059
- .tlui-style-panel__section__common .tlui-style-panel__subheading,
1060
- .tlui-style-panel__subheading + .tlui-slider__container {
1061
- margin: 0;
1062
- padding: var(--tl-space-2) var(--tl-space-3) 0px var(--tl-space-4);
1063
- font-size: 12px;
1064
- font-weight: inherit;
1065
- line-height: inherit;
1066
- }
1067
-
1068
- .tlui-style-panel .tlui-style-panel__subheading:nth-of-type(1) {
1069
- padding-top: var(--tl-space-3);
1070
- }
1071
-
1072
- .tlui-style-panel__subheading + .tlui-slider__container {
1073
- padding-top: 0px;
1074
- }
1075
-
1076
1067
  /* --------------------- Bottom --------------------- */
1077
1068
 
1078
1069
  .tlui-layout__bottom {
1079
1070
  grid-row: 2;
1080
- width: 100%;
1081
1071
  }
1082
1072
 
1083
1073
  .tlui-layout__bottom__main {
1084
1074
  width: 100%;
1075
+ position: relative;
1085
1076
  display: flex;
1086
1077
  align-items: flex-end;
1087
1078
  justify-content: center;
@@ -1093,10 +1084,11 @@
1093
1084
  display: flex;
1094
1085
  width: min-content;
1095
1086
  flex-direction: column;
1096
- z-index: var(--tl-layer-panels);
1087
+ z-index: var(--layer-panels);
1097
1088
  pointer-events: all;
1098
1089
  position: absolute;
1099
1090
  left: 0px;
1091
+ bottom: 0px;
1100
1092
  }
1101
1093
 
1102
1094
  .tlui-navigation-panel::before {
@@ -1106,16 +1098,30 @@
1106
1098
  z-index: -1;
1107
1099
  inset: -2px -2px 0px 0px;
1108
1100
  border-radius: 0;
1109
- border-top: 2px solid var(--tl-color-background);
1110
- border-right: 2px solid var(--tl-color-background);
1111
- border-top-right-radius: var(--tl-radius-4);
1112
- background-color: var(--tl-color-low);
1101
+ border-top: 2px solid var(--color-background);
1102
+ border-right: 2px solid var(--color-background);
1103
+ border-top-right-radius: var(--radius-4);
1104
+ background-color: var(--color-low);
1113
1105
  }
1114
1106
 
1115
1107
  .tlui-navigation-panel[data-a11y='true']::before {
1116
1108
  display: none;
1117
1109
  }
1118
1110
 
1111
+ .tlui-navigation-panel__toggle .tlui-icon {
1112
+ opacity: 0.24;
1113
+ }
1114
+
1115
+ .tlui-navigation-panel__toggle:active .tlui-icon {
1116
+ opacity: 1;
1117
+ }
1118
+
1119
+ @media (hover: hover) {
1120
+ .tlui-navigation-panel__toggle:hover .tlui-icon {
1121
+ opacity: 1;
1122
+ }
1123
+ }
1124
+
1119
1125
  /* Minimap */
1120
1126
 
1121
1127
  .tlui-minimap {
@@ -1123,7 +1129,7 @@
1123
1129
  height: 96px;
1124
1130
  min-height: 96px;
1125
1131
  overflow: hidden;
1126
- padding: var(--tl-space-3);
1132
+ padding: var(--space-3);
1127
1133
  padding-top: 0px;
1128
1134
  }
1129
1135
 
@@ -1136,220 +1142,114 @@
1136
1142
  /* --------------------- Toolbar -------------------- */
1137
1143
 
1138
1144
  /* Wide container */
1139
- .tlui-main-toolbar {
1145
+ .tlui-toolbar {
1140
1146
  grid-column: 1 / span 3;
1141
1147
  grid-row: 1;
1142
1148
  display: flex;
1143
1149
  align-items: center;
1144
1150
  justify-content: center;
1145
1151
  flex-grow: 2;
1146
- }
1147
-
1148
- .tlui-main-toolbar--horizontal {
1149
- padding-bottom: calc(var(--tl-space-3) + var(--tl-sab));
1150
- max-width: 100%;
1151
- }
1152
-
1153
- .tlui-main-toolbar--vertical {
1154
- position: absolute;
1155
- left: 0;
1156
- top: 90px; /* height of page menu + 'back to content' button */
1157
- bottom: 140px; /* height of expanded mini-map */
1158
- padding-left: calc(var(--tl-space-3) + var(--tl-sab));
1159
- }
1160
-
1161
- [data-breakpoints-below*='6'] .tlui-main-toolbar--vertical {
1162
- bottom: 90px; /* collapsed mini-map, but same as top to keep things looking even */
1152
+ padding-bottom: calc(var(--space-3) + var(--sab));
1163
1153
  }
1164
1154
 
1165
1155
  /* Centered Content */
1166
- .tlui-main-toolbar__inner {
1156
+ .tlui-toolbar__inner {
1167
1157
  position: relative;
1168
1158
  width: fit-content;
1169
1159
  display: flex;
1170
- gap: var(--tl-space-3);
1171
- align-items: flex-start;
1172
- }
1173
-
1174
- .tlui-main-toolbar--vertical .tlui-main-toolbar__inner {
1175
- flex-direction: column;
1160
+ gap: var(--space-3);
1161
+ align-items: flex-end;
1176
1162
  }
1177
1163
 
1178
- .tlui-main-toolbar--horizontal .tlui-main-toolbar__left {
1164
+ .tlui-toolbar__left {
1179
1165
  width: fit-content;
1180
1166
  }
1181
- .tlui-main-toolbar--vertical .tlui-main-toolbar__left {
1182
- display: flex;
1183
- height: fit-content;
1184
- }
1185
1167
 
1186
1168
  /* Row of controls + lock button */
1187
- .tlui-main-toolbar__extras {
1169
+ .tlui-toolbar__extras {
1188
1170
  position: relative;
1189
- z-index: var(--tl-layer-above);
1171
+ z-index: var(--layer-above);
1172
+ width: 100%;
1190
1173
  pointer-events: none;
1191
- align-self: stretch;
1192
- }
1193
-
1194
- .tlui-main-toolbar__extras:empty {
1195
- display: none;
1196
- }
1197
-
1198
- .tlui-main-toolbar--horizontal .tlui-main-toolbar__extras {
1199
- height: 48px;
1200
1174
  top: 6px;
1175
+ height: 48px;
1201
1176
  }
1202
1177
 
1203
- .tlui-main-toolbar--vertical .tlui-main-toolbar__extras {
1204
- width: 48px;
1205
- order: 1;
1178
+ .tlui-toolbar__extras:empty {
1179
+ display: none;
1206
1180
  }
1207
1181
 
1208
- .tlui-main-toolbar__extras__controls {
1182
+ .tlui-toolbar__extras__controls {
1183
+ display: flex;
1209
1184
  position: relative;
1210
- z-index: var(--tl-layer-above);
1211
- background-color: var(--tl-color-low);
1212
- border: 2px solid var(--tl-color-background);
1213
- pointer-events: all;
1214
- }
1215
-
1216
- .tlui-main-toolbar--horizontal .tlui-main-toolbar__extras__controls {
1217
- border-top-left-radius: var(--tl-radius-4);
1218
- border-top-right-radius: var(--tl-radius-4);
1185
+ flex-direction: row;
1186
+ z-index: var(--layer-above);
1187
+ background-color: var(--color-low);
1188
+ border-top-left-radius: var(--radius-4);
1189
+ border-top-right-radius: var(--radius-4);
1190
+ border: 2px solid var(--color-background);
1219
1191
  margin-left: 8px;
1220
1192
  margin-right: 0px;
1193
+ pointer-events: all;
1221
1194
  width: fit-content;
1222
1195
  }
1223
1196
 
1224
- .tlui-main-toolbar--vertical .tlui-main-toolbar__extras__controls {
1225
- border-top-right-radius: var(--tl-radius-4);
1226
- border-bottom-right-radius: var(--tl-radius-4);
1227
- margin-top: 8px;
1228
- margin-left: -2px;
1229
- margin-bottom: 0px;
1230
- width: fit-content;
1231
- }
1232
-
1233
- .tlui-main-toolbar__tools {
1234
- border-radius: var(--tl-radius-4);
1235
- z-index: var(--tl-layer-panels);
1197
+ .tlui-toolbar__tools {
1198
+ display: flex;
1199
+ flex-direction: row;
1200
+ align-items: center;
1201
+ border-radius: var(--radius-4);
1202
+ z-index: var(--layer-panels);
1236
1203
  pointer-events: all;
1237
1204
  position: relative;
1238
- background: var(--tl-color-panel);
1239
- box-shadow: var(--tl-shadow-2);
1240
- }
1241
-
1242
- .tlui-main-toolbar--horizontal .tlui-main-toolbar__mobile-style-panel {
1243
- align-self: flex-end;
1205
+ background: var(--color-panel);
1206
+ box-shadow: var(--shadow-2);
1244
1207
  }
1245
- .tlui-main-toolbar--vertical .tlui-main-toolbar__mobile-style-panel {
1246
- align-self: flex-start;
1208
+ .tlui-toolbar__tools__list {
1209
+ display: flex;
1210
+ flex-direction: row;
1211
+ align-items: center;
1247
1212
  }
1248
1213
 
1249
- .tlui-main-toolbar--horizontal .tlui-main-toolbar__overflow {
1214
+ .tlui-toolbar__overflow {
1250
1215
  width: 40px;
1251
- margin-left: 2px;
1252
- }
1253
- .tlui-main-toolbar--vertical .tlui-main-toolbar__overflow {
1254
- height: 40px;
1255
- margin-top: 2px;
1256
1216
  }
1257
1217
 
1258
- .tlui-layout__mobile .tlui-main-toolbar--horizontal .tlui-main-toolbar__overflow {
1218
+ .tlui-layout__mobile .tlui-toolbar__overflow {
1259
1219
  width: 32px;
1260
1220
  padding: 0px;
1261
1221
  }
1262
1222
 
1263
- .tlui-main-toolbar--horizontal *[data-state='open']::after {
1264
- background: linear-gradient(0deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
1223
+ .tlui-toolbar *[data-state='open']::after {
1224
+ background: linear-gradient(0deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
1265
1225
  opacity: 1;
1266
1226
  }
1267
- .tlui-main-toolbar--vertical *[data-state='open']::after {
1268
- background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
1269
- opacity: 1;
1270
- }
1271
-
1272
- .tlui-main-toolbar__overflow-content {
1273
- touch-action: none;
1274
- }
1275
-
1276
- .tlui-main-toolbar__tools [data-toolbar-visible='false'],
1277
- .tlui-main-toolbar__overflow-content [data-toolbar-visible='false'] {
1278
- display: none;
1279
- }
1280
-
1281
- .tlui-main-toolbar__group:empty {
1282
- display: none;
1283
- }
1284
- .tlui-row.tlui-main-toolbar__group:not(:nth-last-child(-n + 1 of [data-toolbar-visible='true'])) {
1285
- border-right: 1px solid var(--color-divider);
1286
- margin-right: 2px;
1287
- }
1288
- .tlui-column.tlui-main-toolbar__group:not(
1289
- :nth-last-child(-n + 1 of [data-toolbar-visible='true'])
1290
- ) {
1291
- border-bottom: 1px solid var(--color-divider);
1292
- margin-bottom: 2px;
1293
- }
1294
- .tlui-grid.tlui-main-toolbar__group {
1295
- grid-column: 1 / span 4;
1296
- }
1297
- .tlui-grid.tlui-main-toolbar__group:not(:nth-last-child(-n + 1 of [data-toolbar-visible='true'])) {
1298
- border-bottom: 1px solid var(--color-divider);
1299
- margin-bottom: 2px;
1300
- }
1301
1227
 
1302
1228
  @media (hover: hover) {
1303
- .tlui-main-toolbar--horizontal *[data-state='open']:not(:hover)::after {
1304
- background: linear-gradient(0deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
1305
- opacity: 1;
1306
- }
1307
- .tlui-main-toolbar--vertical *[data-state='open']:not(:hover)::after {
1308
- background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
1229
+ .tlui-toolbar *[data-state='open']:not(:hover)::after {
1230
+ background: linear-gradient(0deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
1309
1231
  opacity: 1;
1310
1232
  }
1311
1233
  }
1312
1234
 
1313
- /* ------------------- Tooltip -------------------- */
1314
-
1315
- .tlui-tooltip {
1316
- font-size: 12px;
1317
- padding: 2px 8px;
1318
- border-radius: 4px;
1319
- background-color: var(--tl-color-tooltip);
1320
- box-shadow: none;
1321
- color: var(--tl-color-text-shadow);
1322
- max-width: 400px;
1323
- width: fit-content;
1324
- text-align: center;
1325
- will-change: transform, opacity;
1326
- z-index: 2;
1327
- }
1328
-
1329
- .tlui-tooltip__arrow {
1330
- fill: var(--tl-color-tooltip);
1331
- will-change: opacity;
1332
- }
1333
-
1334
- [data-radix-popper-content-wrapper]:has(.tlui-tooltip) {
1335
- z-index: var(--tl-layer-toasts) !important;
1336
- pointer-events: none;
1235
+ .tlui-layout__mobile .tlui-toolbar {
1236
+ transition: transform 0.15s ease-out 0.05s;
1337
1237
  }
1338
1238
 
1339
1239
  /* ------------------- Debug panel ------------------ */
1340
1240
 
1341
1241
  .tlui-debug-panel {
1342
- background-color: var(--tl-color-low);
1242
+ background-color: var(--color-low);
1343
1243
  width: 100%;
1344
1244
  display: grid;
1345
1245
  align-items: center;
1346
1246
  grid-template-columns: 1fr auto auto auto;
1347
1247
  justify-content: space-between;
1348
- padding-left: var(--tl-space-4);
1349
- border-top: 1px solid var(--tl-color-background);
1248
+ padding-left: var(--space-4);
1249
+ border-top: 1px solid var(--color-background);
1350
1250
  font-size: 12px;
1351
- color: var(--tl-color-text-1);
1352
- z-index: var(--tl-layer-panels);
1251
+ color: var(--color-text-1);
1252
+ z-index: var(--layer-panels);
1353
1253
  pointer-events: all;
1354
1254
  }
1355
1255
 
@@ -1365,7 +1265,7 @@
1365
1265
 
1366
1266
  .tlui-debug-panel__fps__slow {
1367
1267
  font-weight: bold;
1368
- color: var(--tl-color-danger);
1268
+ color: var(--color-danger);
1369
1269
  }
1370
1270
 
1371
1271
  .tlui-a11y-audit {
@@ -1375,7 +1275,7 @@
1375
1275
  .tlui-a11y-audit th,
1376
1276
  .tlui-a11y-audit td {
1377
1277
  padding: 8px;
1378
- border: 1px solid var(--tl-color-low-border);
1278
+ border: 1px solid var(--color-low-border);
1379
1279
  }
1380
1280
 
1381
1281
  /* --------------------- Toasts --------------------- */
@@ -1388,10 +1288,10 @@
1388
1288
  align-items: flex-end;
1389
1289
  justify-content: flex-end;
1390
1290
  flex-direction: column;
1391
- gap: var(--tl-space-3);
1291
+ gap: var(--space-3);
1392
1292
  pointer-events: none;
1393
- padding: 0px var(--tl-space-3) 64px 0px;
1394
- z-index: var(--tl-layer-toasts);
1293
+ padding: 0px var(--space-3) 64px 0px;
1294
+ z-index: var(--layer-toasts);
1395
1295
  }
1396
1296
 
1397
1297
  .tlui-toast__viewport > * {
@@ -1400,34 +1300,34 @@
1400
1300
 
1401
1301
  .tlui-toast__icon {
1402
1302
  padding-top: 11px;
1403
- padding-left: var(--tl-space-4);
1404
- color: var(--tl-color-text-1);
1303
+ padding-left: var(--space-4);
1304
+ color: var(--color-text-1);
1405
1305
  }
1406
1306
 
1407
1307
  .tlui-toast__container {
1408
1308
  min-width: 200px;
1409
1309
  display: flex;
1410
1310
  flex-direction: row;
1411
- background-color: var(--tl-color-panel);
1412
- box-shadow: var(--tl-shadow-2);
1413
- border-radius: var(--tl-radius-3);
1311
+ background-color: var(--color-panel);
1312
+ box-shadow: var(--shadow-2);
1313
+ border-radius: var(--radius-3);
1414
1314
  font-size: 12px;
1415
1315
  }
1416
1316
 
1417
1317
  .tlui-toast__container[data-severity='success'] .tlui-icon {
1418
- color: var(--tl-color-success);
1318
+ color: var(--color-success);
1419
1319
  }
1420
1320
 
1421
1321
  .tlui-toast__container[data-severity='info'] .tlui-icon {
1422
- color: var(--tl-color-info);
1322
+ color: var(--color-info);
1423
1323
  }
1424
1324
 
1425
1325
  .tlui-toast__container[data-severity='warning'] .tlui-icon {
1426
- color: var(--tl-color-warning);
1326
+ color: var(--color-warning);
1427
1327
  }
1428
1328
 
1429
1329
  .tlui-toast__container[data-severity='error'] .tlui-icon {
1430
- color: var(--tl-color-danger);
1330
+ color: var(--color-danger);
1431
1331
  }
1432
1332
 
1433
1333
  .tlui-toast__main {
@@ -1436,27 +1336,27 @@
1436
1336
  }
1437
1337
 
1438
1338
  .tlui-toast__content {
1439
- padding: var(--tl-space-4);
1339
+ padding: var(--space-4);
1440
1340
  display: flex;
1441
1341
  line-height: 1.4;
1442
1342
  flex-direction: column;
1443
- gap: var(--tl-space-3);
1343
+ gap: var(--space-3);
1444
1344
  }
1445
1345
 
1446
1346
  .tlui-toast__main[data-actions='true'] .tlui-toast__content {
1447
- padding-bottom: var(--tl-space-2);
1347
+ padding-bottom: var(--space-2);
1448
1348
  }
1449
1349
 
1450
1350
  .tlui-toast__title {
1451
1351
  font-weight: bold;
1452
- color: var(--tl-color-text-1);
1352
+ color: var(--color-text-1);
1453
1353
  /* this makes the default toast look better */
1454
1354
  line-height: 16px;
1455
1355
  }
1456
1356
 
1457
1357
  .tlui-toast__description {
1458
- color: var(--tl-color-text-1);
1459
- padding: var(--tl-space-3);
1358
+ color: var(--color-text-1);
1359
+ padding: var(--space-3);
1460
1360
  margin: 0px;
1461
1361
  padding: 0px;
1462
1362
  }
@@ -1479,11 +1379,11 @@
1479
1379
 
1480
1380
  @media (prefers-reduced-motion: no-preference) {
1481
1381
  .tlui-toast__container[data-state='open'] {
1482
- animation: tlui-slide-in 200ms cubic-bezier(0.785, 0.135, 0.15, 0.86);
1382
+ animation: slide-in 200ms cubic-bezier(0.785, 0.135, 0.15, 0.86);
1483
1383
  }
1484
1384
 
1485
1385
  .tlui-toast__container[data-state='closed'] {
1486
- animation: tlui-fade-out 100ms ease-in;
1386
+ animation: hide 100ms ease-in;
1487
1387
  }
1488
1388
 
1489
1389
  .tlui-toast__container[data-swipe='move'] {
@@ -1496,7 +1396,7 @@
1496
1396
  }
1497
1397
 
1498
1398
  .tlui-toast__container[data-swipe='end'] {
1499
- animation: tlui-slide-out 100ms ease-out;
1399
+ animation: swipe-out 100ms ease-out;
1500
1400
  }
1501
1401
  }
1502
1402
 
@@ -1508,14 +1408,14 @@
1508
1408
  left: 0px;
1509
1409
  width: 100%;
1510
1410
  height: 100%;
1511
- z-index: var(--tl-layer-canvas-overlays);
1512
- background-color: var(--tl-color-overlay);
1411
+ z-index: var(--layer-canvas-overlays);
1412
+ background-color: var(--color-overlay);
1513
1413
  pointer-events: all;
1514
- animation: tl-fade-in 0.12s ease-out;
1414
+ animation: fadeIn 0.12s ease-out;
1515
1415
  display: grid;
1516
1416
  place-items: center;
1517
1417
  overflow-y: auto;
1518
- padding: 0px var(--tl-space-3);
1418
+ padding: 0px var(--space-3);
1519
1419
  }
1520
1420
 
1521
1421
  .tlui-dialog__content {
@@ -1523,9 +1423,9 @@
1523
1423
  flex-direction: column;
1524
1424
  position: relative;
1525
1425
  cursor: default;
1526
- background-color: var(--tl-color-panel);
1527
- box-shadow: var(--tl-shadow-3);
1528
- border-radius: var(--tl-radius-3);
1426
+ background-color: var(--color-panel);
1427
+ box-shadow: var(--shadow-3);
1428
+ border-radius: var(--radius-3);
1529
1429
  font-size: 12px;
1530
1430
  overflow: hidden;
1531
1431
  min-width: 300px;
@@ -1538,9 +1438,9 @@
1538
1438
  display: flex;
1539
1439
  align-items: center;
1540
1440
  flex: 0;
1541
- z-index: var(--tl-layer-header-footer);
1542
- padding-left: var(--tl-space-4);
1543
- color: var(--tl-color-text);
1441
+ z-index: var(--layer-header-footer);
1442
+ padding-left: var(--space-4);
1443
+ color: var(--color-text);
1544
1444
  height: 40px;
1545
1445
  }
1546
1446
 
@@ -1549,7 +1449,7 @@
1549
1449
  font-weight: inherit;
1550
1450
  font-size: 12px;
1551
1451
  margin: 0px;
1552
- color: var(--tl-color-text-1);
1452
+ color: var(--color-text-1);
1553
1453
  }
1554
1454
 
1555
1455
  .tlui-dialog__header__close {
@@ -1557,16 +1457,16 @@
1557
1457
  }
1558
1458
 
1559
1459
  .tlui-dialog__body {
1560
- padding: var(--tl-space-4) var(--tl-space-4);
1460
+ padding: var(--space-4) var(--space-4);
1561
1461
  flex: 0 1;
1562
1462
  overflow-y: auto;
1563
1463
  overflow-x: hidden;
1564
- color: var(--tl-color-text-1);
1464
+ color: var(--color-text-1);
1565
1465
  user-select: all;
1566
1466
  -webkit-user-select: text;
1567
1467
  }
1568
1468
  .tlui-dialog__body a {
1569
- color: var(--tl-color-selected);
1469
+ color: var(--color-selected);
1570
1470
  }
1571
1471
 
1572
1472
  .tlui-dialog__body ul,
@@ -1574,13 +1474,13 @@
1574
1474
  padding-left: 16px;
1575
1475
  display: flex;
1576
1476
  flex-direction: column;
1577
- gap: var(--tl-space-2);
1477
+ gap: var(--space-2);
1578
1478
  }
1579
1479
 
1580
1480
  .tlui-dialog__footer {
1581
1481
  position: relative;
1582
1482
  min-height: 12px;
1583
- z-index: var(--tl-layer-header-footer);
1483
+ z-index: var(--layer-header-footer);
1584
1484
  }
1585
1485
 
1586
1486
  .tlui-dialog__footer__actions {
@@ -1600,15 +1500,15 @@
1600
1500
  .tlui-edit-link-dialog {
1601
1501
  display: flex;
1602
1502
  flex-direction: column;
1603
- gap: var(--tl-space-4);
1604
- color: var(--tl-color-text);
1503
+ gap: var(--space-4);
1504
+ color: var(--color-text);
1605
1505
  }
1606
1506
 
1607
1507
  .tlui-edit-link-dialog__input {
1608
- background-color: var(--tl-color-muted-2);
1508
+ background-color: var(--color-muted-2);
1609
1509
  flex-grow: 2;
1610
- border-radius: var(--tl-radius-2);
1611
- padding: 0px var(--tl-space-4);
1510
+ border-radius: var(--radius-2);
1511
+ padding: 0px var(--space-4);
1612
1512
  }
1613
1513
 
1614
1514
  /* Embed Dialog */
@@ -1616,15 +1516,15 @@
1616
1516
  .tlui-embed__spacer {
1617
1517
  flex-grow: 2;
1618
1518
  min-height: 0px;
1619
- margin-left: calc(-1 * var(--tl-space-4));
1620
- margin-top: calc(-1 * var(--tl-space-4));
1519
+ margin-left: calc(-1 * var(--space-4));
1520
+ margin-top: calc(-1 * var(--space-4));
1621
1521
  pointer-events: none;
1622
1522
  }
1623
1523
 
1624
1524
  .tlui-embed-dialog__list {
1625
1525
  display: flex;
1626
1526
  flex-direction: column;
1627
- padding: 0px var(--tl-space-3) var(--tl-space-4) var(--tl-space-3);
1527
+ padding: 0px var(--space-3) var(--space-4) var(--space-3);
1628
1528
  }
1629
1529
 
1630
1530
  .tlui-embed-dialog__item__image {
@@ -1636,49 +1536,49 @@
1636
1536
  background-size: contain;
1637
1537
  background-repeat: no-repeat;
1638
1538
  background-position: center center;
1639
- background-color: var(--tl-color-selected-contrast);
1640
- border-radius: var(--tl-radius-1);
1539
+ background-color: var(--color-selected-contrast);
1540
+ border-radius: var(--radius-1);
1641
1541
  }
1642
1542
 
1643
1543
  .tlui-embed-dialog__enter {
1644
1544
  display: flex;
1645
1545
  flex-direction: column;
1646
- gap: var(--tl-space-4);
1647
- color: var(--tl-color-text-1);
1546
+ gap: var(--space-4);
1547
+ color: var(--color-text-1);
1648
1548
  }
1649
1549
 
1650
1550
  .tlui-embed-dialog__input {
1651
- background-color: var(--tl-color-muted-2);
1551
+ background-color: var(--color-muted-2);
1652
1552
  flex-grow: 2;
1653
- border-radius: var(--tl-radius-2);
1654
- padding: 0px var(--tl-space-4);
1553
+ border-radius: var(--radius-2);
1554
+ padding: 0px var(--space-4);
1655
1555
  }
1656
1556
 
1657
1557
  .tlui-embed-dialog__warning {
1658
- color: var(--tl-color-danger);
1558
+ color: var(--color-danger);
1659
1559
  text-shadow: none;
1660
1560
  }
1661
1561
 
1662
1562
  .tlui-embed-dialog__instruction__link {
1663
1563
  display: flex;
1664
- gap: var(--tl-space-1);
1665
- margin-top: var(--tl-space-4);
1564
+ gap: var(--space-1);
1565
+ margin-top: var(--space-4);
1666
1566
  }
1667
1567
 
1668
1568
  .tlui-embed-dialog__enter a {
1669
- color: var(--tl-color-text-1);
1569
+ color: var(--color-text-1);
1670
1570
  }
1671
1571
 
1672
1572
  /* --------------- Keyboard shortcuts --------------- */
1673
1573
 
1674
1574
  .tlui-shortcuts-dialog__header {
1675
- border-bottom: 1px solid var(--tl-color-divider);
1575
+ border-bottom: 1px solid var(--color-divider);
1676
1576
  }
1677
1577
 
1678
1578
  .tlui-shortcuts-dialog__body {
1679
1579
  position: relative;
1680
1580
  columns: 3;
1681
- column-gap: var(--tl-space-9);
1581
+ column-gap: var(--space-9);
1682
1582
  pointer-events: all;
1683
1583
  touch-action: auto;
1684
1584
 
@@ -1696,14 +1596,14 @@
1696
1596
 
1697
1597
  .tlui-shortcuts-dialog__group {
1698
1598
  break-inside: avoid-column;
1699
- padding-bottom: var(--tl-space-6);
1599
+ padding-bottom: var(--space-6);
1700
1600
  }
1701
1601
 
1702
1602
  .tlui-shortcuts-dialog__group__title {
1703
1603
  font-size: inherit;
1704
1604
  font-weight: inherit;
1705
1605
  margin: 0px;
1706
- color: var(--tl-color-text-3);
1606
+ color: var(--color-text-3);
1707
1607
  height: 32px;
1708
1608
  display: flex;
1709
1609
  align-items: center;
@@ -1712,12 +1612,12 @@
1712
1612
  .tlui-shortcuts-dialog__group__content {
1713
1613
  display: flex;
1714
1614
  flex-direction: column;
1715
- color: var(--tl-color-text-1);
1615
+ color: var(--color-text-1);
1716
1616
  }
1717
1617
 
1718
1618
  .tlui-shortcuts-dialog__key-pair {
1719
1619
  display: flex;
1720
- gap: var(--tl-space-4);
1620
+ gap: var(--space-4);
1721
1621
  align-items: center;
1722
1622
  justify-content: space-between;
1723
1623
  height: 32px;
@@ -1744,12 +1644,12 @@
1744
1644
  height: 24px;
1745
1645
  background: linear-gradient(
1746
1646
  to bottom,
1747
- var(--tl-color-panel-transparent) 0%,
1748
- var(--tl-color-panel) 90%,
1749
- var(--tl-color-panel) 100%
1647
+ var(--color-panel-transparent) 0%,
1648
+ var(--color-panel) 90%,
1649
+ var(--color-panel) 100%
1750
1650
  );
1751
- border-bottom-left-radius: var(--tl-radius-3);
1752
- border-bottom-right-radius: var(--tl-radius-3);
1651
+ border-bottom-left-radius: var(--radius-3);
1652
+ border-bottom-right-radius: var(--radius-3);
1753
1653
  pointer-events: none;
1754
1654
  }
1755
1655
 
@@ -1764,10 +1664,10 @@
1764
1664
  .tlui-help-menu {
1765
1665
  pointer-events: all;
1766
1666
  position: absolute;
1767
- bottom: var(--tl-space-2);
1768
- right: var(--tl-space-2);
1769
- z-index: var(--tl-layer-panels);
1770
- border: 2px solid var(--tl-color-background);
1667
+ bottom: var(--space-2);
1668
+ right: var(--space-2);
1669
+ z-index: var(--layer-panels);
1670
+ border: 2px solid var(--color-background);
1771
1671
  border-radius: 100%;
1772
1672
  }
1773
1673
 
@@ -1778,7 +1678,7 @@
1778
1678
  display: flex;
1779
1679
  flex-direction: row;
1780
1680
  justify-content: flex-end;
1781
- z-index: var(--tl-layer-panels);
1681
+ z-index: var(--layer-panels);
1782
1682
  align-items: center;
1783
1683
  padding-top: 2px;
1784
1684
  padding-right: 4px;
@@ -1794,7 +1694,7 @@
1794
1694
  border: none;
1795
1695
  cursor: pointer;
1796
1696
  pointer-events: all;
1797
- border-radius: var(--tl-radius-1);
1697
+ border-radius: var(--radius-1);
1798
1698
  padding-right: 1px;
1799
1699
  height: 100%;
1800
1700
  }
@@ -1807,8 +1707,8 @@
1807
1707
  .tlui-people-menu__avatar {
1808
1708
  height: 24px;
1809
1709
  width: 24px;
1810
- border: 2px solid var(--tl-color-background);
1811
- background-color: var(--tl-color-low);
1710
+ border: 2px solid var(--color-background);
1711
+ background-color: var(--color-low);
1812
1712
  border-radius: 100%;
1813
1713
  display: flex;
1814
1714
  align-items: center;
@@ -1817,7 +1717,7 @@
1817
1717
  font-size: 10px;
1818
1718
  font-weight: bold;
1819
1719
  text-align: center;
1820
- color: var(--tl-color-selected-contrast);
1720
+ color: var(--color-selected-contrast);
1821
1721
  z-index: 2;
1822
1722
  }
1823
1723
 
@@ -1831,7 +1731,7 @@
1831
1731
 
1832
1732
  @media (hover: hover) {
1833
1733
  .tlui-people-menu__avatars-button:hover .tlui-people-menu__avatar {
1834
- border-color: var(--tl-color-low);
1734
+ border-color: var(--color-low);
1835
1735
  }
1836
1736
  }
1837
1737
 
@@ -1839,12 +1739,12 @@
1839
1739
  min-width: 0px;
1840
1740
  font-size: 11px;
1841
1741
  font-weight: 600;
1842
- color: var(--tl-color-text-1);
1742
+ color: var(--color-text-1);
1843
1743
  font-family: inherit;
1844
1744
  padding: 0px 4px;
1845
1745
  }
1846
1746
  .tlui-people-menu__more::after {
1847
- border-radius: var(--tl-radius-2);
1747
+ border-radius: var(--radius-2);
1848
1748
  inset: 0px;
1849
1749
  }
1850
1750
 
@@ -1873,7 +1773,7 @@
1873
1773
  }
1874
1774
 
1875
1775
  .tlui-people-menu__section:not(:last-child) {
1876
- border-bottom: 1px solid var(--tl-color-divider);
1776
+ border-bottom: 1px solid var(--color-divider);
1877
1777
  }
1878
1778
 
1879
1779
  .tlui-people-menu__user {
@@ -1892,7 +1792,7 @@
1892
1792
  text-overflow: ellipsis;
1893
1793
  white-space: nowrap;
1894
1794
  font-size: 12px;
1895
- color: var(--tl-color-text-1);
1795
+ color: var(--color-text-1);
1896
1796
  max-width: 100%;
1897
1797
  flex-grow: 1;
1898
1798
  flex-shrink: 100;
@@ -1904,7 +1804,7 @@
1904
1804
  text-overflow: ellipsis;
1905
1805
  white-space: nowrap;
1906
1806
  font-size: 12px;
1907
- color: var(--tl-color-text-3);
1807
+ color: var(--color-text-3);
1908
1808
  flex-grow: 100;
1909
1809
  flex-shrink: 0;
1910
1810
  margin-left: 4px;
@@ -1995,7 +1895,7 @@
1995
1895
  inset: 0px;
1996
1896
  border-width: 2px;
1997
1897
  border-style: solid;
1998
- z-index: var(--tl-layer-following-indicator);
1898
+ z-index: var(--layer-following-indicator);
1999
1899
  pointer-events: none;
2000
1900
  }
2001
1901
 
@@ -2014,7 +1914,7 @@
2014
1914
  }
2015
1915
 
2016
1916
  .tlui-contextual-toolbar [data-isactive='true']::after {
2017
- background-color: var(--tl-color-muted-2);
1917
+ background-color: var(--color-muted-2);
2018
1918
  opacity: 1;
2019
1919
  }
2020
1920
 
@@ -2030,7 +1930,7 @@
2030
1930
 
2031
1931
  .tlui-contextual-toolbar[data-visible='true'] {
2032
1932
  opacity: 1;
2033
- z-index: var(--tl-layer-menus);
1933
+ z-index: var(--layer-menus);
2034
1934
  }
2035
1935
 
2036
1936
  .tlui-contextual-toolbar[data-interactive='true'],
@@ -2078,7 +1978,7 @@
2078
1978
  }
2079
1979
 
2080
1980
  /* ------------------- Animations ------------------- */
2081
- @keyframes tlui-fade-out {
1981
+ @keyframes hide {
2082
1982
  0% {
2083
1983
  opacity: 1;
2084
1984
  }
@@ -2087,20 +1987,20 @@
2087
1987
  }
2088
1988
  }
2089
1989
 
2090
- @keyframes tlui-slide-in {
1990
+ @keyframes slide-in {
2091
1991
  from {
2092
- transform: translateX(calc(100% + var(--tl-space-3)));
1992
+ transform: translateX(calc(100% + var(--space-3)));
2093
1993
  }
2094
1994
  to {
2095
1995
  transform: translateX(0px);
2096
1996
  }
2097
1997
  }
2098
1998
 
2099
- @keyframes tlui-slide-out {
1999
+ @keyframes swipe-out {
2100
2000
  from {
2101
2001
  transform: translateX(var(--radix-toast-swipe-end-x));
2102
2002
  }
2103
2003
  to {
2104
- transform: translateX(calc(100% + var(--tl-space-3)));
2004
+ transform: translateX(calc(100% + var(--space-3)));
2105
2005
  }
2106
2006
  }