@peteai/presentation-editor 0.0.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 (291) hide show
  1. package/README.md +58 -0
  2. package/dist/components/presentation-editor/app.css +12 -0
  3. package/dist/components/presentation-editor/cognition-slides.d.ts +56 -0
  4. package/dist/components/presentation-editor/cognition-slides.js +182 -0
  5. package/dist/components/presentation-editor/cursor-tooltip.svelte +29 -0
  6. package/dist/components/presentation-editor/cursor-tooltip.svelte.d.ts +18 -0
  7. package/dist/components/presentation-editor/dragged.svelte +31 -0
  8. package/dist/components/presentation-editor/dragged.svelte.d.ts +18 -0
  9. package/dist/components/presentation-editor/header.svelte +66 -0
  10. package/dist/components/presentation-editor/header.svelte.d.ts +8 -0
  11. package/dist/components/presentation-editor/index.d.ts +2 -0
  12. package/dist/components/presentation-editor/index.js +2 -0
  13. package/dist/components/presentation-editor/layers/active-background-border.svelte +16 -0
  14. package/dist/components/presentation-editor/layers/active-background-border.svelte.d.ts +18 -0
  15. package/dist/components/presentation-editor/layers/active-layer-border.svelte +30 -0
  16. package/dist/components/presentation-editor/layers/active-layer-border.svelte.d.ts +8 -0
  17. package/dist/components/presentation-editor/layers/buttons/border-button/border-button.svelte +231 -0
  18. package/dist/components/presentation-editor/layers/buttons/border-button/border-button.svelte.d.ts +7 -0
  19. package/dist/components/presentation-editor/layers/buttons/border-button/index.d.ts +2 -0
  20. package/dist/components/presentation-editor/layers/buttons/border-button/index.js +2 -0
  21. package/dist/components/presentation-editor/layers/buttons/corner-radius-button/corner-radius-button.svelte +88 -0
  22. package/dist/components/presentation-editor/layers/buttons/corner-radius-button/corner-radius-button.svelte.d.ts +7 -0
  23. package/dist/components/presentation-editor/layers/buttons/corner-radius-button/index.d.ts +2 -0
  24. package/dist/components/presentation-editor/layers/buttons/corner-radius-button/index.js +2 -0
  25. package/dist/components/presentation-editor/layers/buttons/flip-button/flip-button.svelte +39 -0
  26. package/dist/components/presentation-editor/layers/buttons/flip-button/flip-button.svelte.d.ts +7 -0
  27. package/dist/components/presentation-editor/layers/buttons/flip-button/index.d.ts +2 -0
  28. package/dist/components/presentation-editor/layers/buttons/flip-button/index.js +2 -0
  29. package/dist/components/presentation-editor/layers/buttons/opacity-button/index.d.ts +2 -0
  30. package/dist/components/presentation-editor/layers/buttons/opacity-button/index.js +2 -0
  31. package/dist/components/presentation-editor/layers/buttons/opacity-button/opacity-button.svelte +93 -0
  32. package/dist/components/presentation-editor/layers/buttons/opacity-button/opacity-button.svelte.d.ts +7 -0
  33. package/dist/components/presentation-editor/layers/controls/corner-scale-control/corner-scale-control.svelte +179 -0
  34. package/dist/components/presentation-editor/layers/controls/corner-scale-control/corner-scale-control.svelte.d.ts +184 -0
  35. package/dist/components/presentation-editor/layers/controls/corner-scale-control/index.d.ts +2 -0
  36. package/dist/components/presentation-editor/layers/controls/corner-scale-control/index.js +4 -0
  37. package/dist/components/presentation-editor/layers/controls/rotate-control/index.d.ts +2 -0
  38. package/dist/components/presentation-editor/layers/controls/rotate-control/index.js +4 -0
  39. package/dist/components/presentation-editor/layers/controls/rotate-control/rotate-control.svelte +105 -0
  40. package/dist/components/presentation-editor/layers/controls/rotate-control/rotate-control.svelte.d.ts +7 -0
  41. package/dist/components/presentation-editor/layers/controls/side-resize-control/index.d.ts +2 -0
  42. package/dist/components/presentation-editor/layers/controls/side-resize-control/index.js +4 -0
  43. package/dist/components/presentation-editor/layers/controls/side-resize-control/side-resize-control.svelte +220 -0
  44. package/dist/components/presentation-editor/layers/controls/side-resize-control/side-resize-control.svelte.d.ts +215 -0
  45. package/dist/components/presentation-editor/layers/controls/side-scale-control/index.d.ts +2 -0
  46. package/dist/components/presentation-editor/layers/controls/side-scale-control/index.js +4 -0
  47. package/dist/components/presentation-editor/layers/controls/side-scale-control/side-scale-control.svelte +141 -0
  48. package/dist/components/presentation-editor/layers/controls/side-scale-control/side-scale-control.svelte.d.ts +114 -0
  49. package/dist/components/presentation-editor/layers/hovered-layer.svelte +34 -0
  50. package/dist/components/presentation-editor/layers/hovered-layer.svelte.d.ts +7 -0
  51. package/dist/components/presentation-editor/layers/index.d.ts +10 -0
  52. package/dist/components/presentation-editor/layers/index.js +22 -0
  53. package/dist/components/presentation-editor/layers/layer-button.svelte +38 -0
  54. package/dist/components/presentation-editor/layers/layer-button.svelte.d.ts +8 -0
  55. package/dist/components/presentation-editor/layers/layer-thumb-wrapper.svelte +36 -0
  56. package/dist/components/presentation-editor/layers/layer-thumb-wrapper.svelte.d.ts +15 -0
  57. package/dist/components/presentation-editor/layers/layer-wrapper.svelte +288 -0
  58. package/dist/components/presentation-editor/layers/layer-wrapper.svelte.d.ts +10 -0
  59. package/dist/components/presentation-editor/layers/types/background/background-content.svelte +11 -0
  60. package/dist/components/presentation-editor/layers/types/background/background-content.svelte.d.ts +7 -0
  61. package/dist/components/presentation-editor/layers/types/background/background-layer-buttons.svelte +81 -0
  62. package/dist/components/presentation-editor/layers/types/background/background-layer-buttons.svelte.d.ts +18 -0
  63. package/dist/components/presentation-editor/layers/types/background/background-layer-thumb.svelte +12 -0
  64. package/dist/components/presentation-editor/layers/types/background/background-layer-thumb.svelte.d.ts +7 -0
  65. package/dist/components/presentation-editor/layers/types/background/background-layer.svelte +103 -0
  66. package/dist/components/presentation-editor/layers/types/background/background-layer.svelte.d.ts +7 -0
  67. package/dist/components/presentation-editor/layers/types/background/index.d.ts +5 -0
  68. package/dist/components/presentation-editor/layers/types/background/index.js +7 -0
  69. package/dist/components/presentation-editor/layers/types/html/buttons/alignment-button/alignment-button.svelte +45 -0
  70. package/dist/components/presentation-editor/layers/types/html/buttons/alignment-button/alignment-button.svelte.d.ts +7 -0
  71. package/dist/components/presentation-editor/layers/types/html/buttons/alignment-button/index.d.ts +2 -0
  72. package/dist/components/presentation-editor/layers/types/html/buttons/alignment-button/index.js +2 -0
  73. package/dist/components/presentation-editor/layers/types/html/buttons/bold-button/bold-button.svelte +19 -0
  74. package/dist/components/presentation-editor/layers/types/html/buttons/bold-button/bold-button.svelte.d.ts +7 -0
  75. package/dist/components/presentation-editor/layers/types/html/buttons/bold-button/index.d.ts +2 -0
  76. package/dist/components/presentation-editor/layers/types/html/buttons/bold-button/index.js +2 -0
  77. package/dist/components/presentation-editor/layers/types/html/buttons/case-button/case-button.svelte +37 -0
  78. package/dist/components/presentation-editor/layers/types/html/buttons/case-button/case-button.svelte.d.ts +7 -0
  79. package/dist/components/presentation-editor/layers/types/html/buttons/case-button/index.d.ts +2 -0
  80. package/dist/components/presentation-editor/layers/types/html/buttons/case-button/index.js +2 -0
  81. package/dist/components/presentation-editor/layers/types/html/buttons/color-button/color-button.svelte +88 -0
  82. package/dist/components/presentation-editor/layers/types/html/buttons/color-button/color-button.svelte.d.ts +7 -0
  83. package/dist/components/presentation-editor/layers/types/html/buttons/color-button/index.d.ts +2 -0
  84. package/dist/components/presentation-editor/layers/types/html/buttons/color-button/index.js +2 -0
  85. package/dist/components/presentation-editor/layers/types/html/buttons/font-size-button/font-size-button.svelte +132 -0
  86. package/dist/components/presentation-editor/layers/types/html/buttons/font-size-button/font-size-button.svelte.d.ts +9 -0
  87. package/dist/components/presentation-editor/layers/types/html/buttons/font-size-button/index.d.ts +2 -0
  88. package/dist/components/presentation-editor/layers/types/html/buttons/font-size-button/index.js +2 -0
  89. package/dist/components/presentation-editor/layers/types/html/buttons/italic-button/index.d.ts +2 -0
  90. package/dist/components/presentation-editor/layers/types/html/buttons/italic-button/index.js +2 -0
  91. package/dist/components/presentation-editor/layers/types/html/buttons/italic-button/italic-button.svelte +19 -0
  92. package/dist/components/presentation-editor/layers/types/html/buttons/italic-button/italic-button.svelte.d.ts +7 -0
  93. package/dist/components/presentation-editor/layers/types/html/buttons/list-button/index.d.ts +2 -0
  94. package/dist/components/presentation-editor/layers/types/html/buttons/list-button/index.js +2 -0
  95. package/dist/components/presentation-editor/layers/types/html/buttons/list-button/list-button.svelte +37 -0
  96. package/dist/components/presentation-editor/layers/types/html/buttons/list-button/list-button.svelte.d.ts +7 -0
  97. package/dist/components/presentation-editor/layers/types/html/buttons/strikethrough-button/index.d.ts +2 -0
  98. package/dist/components/presentation-editor/layers/types/html/buttons/strikethrough-button/index.js +2 -0
  99. package/dist/components/presentation-editor/layers/types/html/buttons/strikethrough-button/strikethrough-button.svelte +19 -0
  100. package/dist/components/presentation-editor/layers/types/html/buttons/strikethrough-button/strikethrough-button.svelte.d.ts +7 -0
  101. package/dist/components/presentation-editor/layers/types/html/buttons/underline-button/index.d.ts +2 -0
  102. package/dist/components/presentation-editor/layers/types/html/buttons/underline-button/index.js +2 -0
  103. package/dist/components/presentation-editor/layers/types/html/buttons/underline-button/underline-button.svelte +20 -0
  104. package/dist/components/presentation-editor/layers/types/html/buttons/underline-button/underline-button.svelte.d.ts +7 -0
  105. package/dist/components/presentation-editor/layers/types/html/editor/Editor.d.ts +4 -0
  106. package/dist/components/presentation-editor/layers/types/html/editor/Editor.js +4 -0
  107. package/dist/components/presentation-editor/layers/types/html/editor/createEditor.d.ts +5 -0
  108. package/dist/components/presentation-editor/layers/types/html/editor/createEditor.js +18 -0
  109. package/dist/components/presentation-editor/layers/types/html/editor/editor-content.svelte +60 -0
  110. package/dist/components/presentation-editor/layers/types/html/editor/editor-content.svelte.d.ts +5 -0
  111. package/dist/components/presentation-editor/layers/types/html/editor/index.d.ts +3 -0
  112. package/dist/components/presentation-editor/layers/types/html/editor/index.js +3 -0
  113. package/dist/components/presentation-editor/layers/types/html/editor/types.d.ts +10 -0
  114. package/dist/components/presentation-editor/layers/types/html/editor/types.js +1 -0
  115. package/dist/components/presentation-editor/layers/types/html/editor.css +7 -0
  116. package/dist/components/presentation-editor/layers/types/html/extensions/font-size/font-size.d.ts +20 -0
  117. package/dist/components/presentation-editor/layers/types/html/extensions/font-size/font-size.js +44 -0
  118. package/dist/components/presentation-editor/layers/types/html/extensions/font-size/index.d.ts +3 -0
  119. package/dist/components/presentation-editor/layers/types/html/extensions/font-size/index.js +3 -0
  120. package/dist/components/presentation-editor/layers/types/html/extensions/line-height/index.d.ts +3 -0
  121. package/dist/components/presentation-editor/layers/types/html/extensions/line-height/index.js +3 -0
  122. package/dist/components/presentation-editor/layers/types/html/extensions/line-height/line-height.d.ts +22 -0
  123. package/dist/components/presentation-editor/layers/types/html/extensions/line-height/line-height.js +44 -0
  124. package/dist/components/presentation-editor/layers/types/html/extensions/selection/index.d.ts +3 -0
  125. package/dist/components/presentation-editor/layers/types/html/extensions/selection/index.js +3 -0
  126. package/dist/components/presentation-editor/layers/types/html/extensions/selection/selection.d.ts +3 -0
  127. package/dist/components/presentation-editor/layers/types/html/extensions/selection/selection.js +30 -0
  128. package/dist/components/presentation-editor/layers/types/html/extensions/text-transform/index.d.ts +3 -0
  129. package/dist/components/presentation-editor/layers/types/html/extensions/text-transform/index.js +3 -0
  130. package/dist/components/presentation-editor/layers/types/html/extensions/text-transform/text-transform.d.ts +20 -0
  131. package/dist/components/presentation-editor/layers/types/html/extensions/text-transform/text-transform.js +50 -0
  132. package/dist/components/presentation-editor/layers/types/html/extensions/unstyled-list/index.d.ts +3 -0
  133. package/dist/components/presentation-editor/layers/types/html/extensions/unstyled-list/index.js +3 -0
  134. package/dist/components/presentation-editor/layers/types/html/extensions/unstyled-list/unstyled-list.d.ts +47 -0
  135. package/dist/components/presentation-editor/layers/types/html/extensions/unstyled-list/unstyled-list.js +74 -0
  136. package/dist/components/presentation-editor/layers/types/html/html-content.svelte +21 -0
  137. package/dist/components/presentation-editor/layers/types/html/html-content.svelte.d.ts +5 -0
  138. package/dist/components/presentation-editor/layers/types/html/html-layer-active.svelte +159 -0
  139. package/dist/components/presentation-editor/layers/types/html/html-layer-active.svelte.d.ts +8 -0
  140. package/dist/components/presentation-editor/layers/types/html/html-layer-buttons.svelte +42 -0
  141. package/dist/components/presentation-editor/layers/types/html/html-layer-buttons.svelte.d.ts +10 -0
  142. package/dist/components/presentation-editor/layers/types/html/html-layer-thumb.svelte +24 -0
  143. package/dist/components/presentation-editor/layers/types/html/html-layer-thumb.svelte.d.ts +8 -0
  144. package/dist/components/presentation-editor/layers/types/html/html-layer.svelte +97 -0
  145. package/dist/components/presentation-editor/layers/types/html/html-layer.svelte.d.ts +7 -0
  146. package/dist/components/presentation-editor/layers/types/html/index.d.ts +7 -0
  147. package/dist/components/presentation-editor/layers/types/html/index.js +58 -0
  148. package/dist/components/presentation-editor/layers/types/image/image-content.svelte +96 -0
  149. package/dist/components/presentation-editor/layers/types/image/image-content.svelte.d.ts +8 -0
  150. package/dist/components/presentation-editor/layers/types/image/image-layer-active.svelte +39 -0
  151. package/dist/components/presentation-editor/layers/types/image/image-layer-active.svelte.d.ts +7 -0
  152. package/dist/components/presentation-editor/layers/types/image/image-layer-buttons.svelte +21 -0
  153. package/dist/components/presentation-editor/layers/types/image/image-layer-buttons.svelte.d.ts +7 -0
  154. package/dist/components/presentation-editor/layers/types/image/image-layer-thumb.svelte +13 -0
  155. package/dist/components/presentation-editor/layers/types/image/image-layer-thumb.svelte.d.ts +8 -0
  156. package/dist/components/presentation-editor/layers/types/image/image-layer.svelte +80 -0
  157. package/dist/components/presentation-editor/layers/types/image/image-layer.svelte.d.ts +7 -0
  158. package/dist/components/presentation-editor/layers/types/image/index.d.ts +5 -0
  159. package/dist/components/presentation-editor/layers/types/image/index.js +5 -0
  160. package/dist/components/presentation-editor/layers/utils.d.ts +32 -0
  161. package/dist/components/presentation-editor/layers/utils.js +92 -0
  162. package/dist/components/presentation-editor/presentation-editor.svelte +336 -0
  163. package/dist/components/presentation-editor/presentation-editor.svelte.d.ts +7 -0
  164. package/dist/components/presentation-editor/presentation-editor.svelte.js +352 -0
  165. package/dist/components/presentation-editor/sidebar/images-library.svelte +108 -0
  166. package/dist/components/presentation-editor/sidebar/images-library.svelte.d.ts +3 -0
  167. package/dist/components/presentation-editor/sidebar/layers.svelte +94 -0
  168. package/dist/components/presentation-editor/sidebar/layers.svelte.d.ts +18 -0
  169. package/dist/components/presentation-editor/sidebar/sidebar.svelte +20 -0
  170. package/dist/components/presentation-editor/sidebar/sidebar.svelte.d.ts +7 -0
  171. package/dist/components/presentation-editor/sidebar/uploads-image.svelte +64 -0
  172. package/dist/components/presentation-editor/sidebar/uploads-image.svelte.d.ts +5 -0
  173. package/dist/components/presentation-editor/slide-editor.svelte +106 -0
  174. package/dist/components/presentation-editor/slide-editor.svelte.d.ts +7 -0
  175. package/dist/components/presentation-editor/slide-inner.svelte +53 -0
  176. package/dist/components/presentation-editor/slide-inner.svelte.d.ts +18 -0
  177. package/dist/components/presentation-editor/slides-navigation/buttons/slide-delete-button.svelte +32 -0
  178. package/dist/components/presentation-editor/slides-navigation/buttons/slide-delete-button.svelte.d.ts +10 -0
  179. package/dist/components/presentation-editor/slides-navigation/buttons/slide-duplicate-button.svelte +34 -0
  180. package/dist/components/presentation-editor/slides-navigation/buttons/slide-duplicate-button.svelte.d.ts +10 -0
  181. package/dist/components/presentation-editor/slides-navigation/slide-preview.svelte +134 -0
  182. package/dist/components/presentation-editor/slides-navigation/slide-preview.svelte.d.ts +11 -0
  183. package/dist/components/presentation-editor/slides-navigation/slides-navigation.svelte +100 -0
  184. package/dist/components/presentation-editor/slides-navigation/slides-navigation.svelte.d.ts +3 -0
  185. package/dist/components/presentation-editor/snapping-guides.svelte +41 -0
  186. package/dist/components/presentation-editor/snapping-guides.svelte.d.ts +8 -0
  187. package/dist/components/presentation-editor/types.d.ts +118 -0
  188. package/dist/components/presentation-editor/types.js +1 -0
  189. package/dist/components/presentation-editor/utils.d.ts +5 -0
  190. package/dist/components/presentation-editor/utils.js +348 -0
  191. package/dist/components/ui/button/button.svelte +94 -0
  192. package/dist/components/ui/button/button.svelte.d.ts +155 -0
  193. package/dist/components/ui/button/index.d.ts +2 -0
  194. package/dist/components/ui/button/index.js +4 -0
  195. package/dist/components/ui/context-menu/context-menu-checkbox-item.svelte +40 -0
  196. package/dist/components/ui/context-menu/context-menu-checkbox-item.svelte.d.ts +8 -0
  197. package/dist/components/ui/context-menu/context-menu-content.svelte +24 -0
  198. package/dist/components/ui/context-menu/context-menu-content.svelte.d.ts +7 -0
  199. package/dist/components/ui/context-menu/context-menu-group-heading.svelte +19 -0
  200. package/dist/components/ui/context-menu/context-menu-group-heading.svelte.d.ts +7 -0
  201. package/dist/components/ui/context-menu/context-menu-item.svelte +23 -0
  202. package/dist/components/ui/context-menu/context-menu-item.svelte.d.ts +7 -0
  203. package/dist/components/ui/context-menu/context-menu-radio-item.svelte +30 -0
  204. package/dist/components/ui/context-menu/context-menu-radio-item.svelte.d.ts +4 -0
  205. package/dist/components/ui/context-menu/context-menu-separator.svelte +16 -0
  206. package/dist/components/ui/context-menu/context-menu-separator.svelte.d.ts +4 -0
  207. package/dist/components/ui/context-menu/context-menu-shortcut.svelte +20 -0
  208. package/dist/components/ui/context-menu/context-menu-shortcut.svelte.d.ts +5 -0
  209. package/dist/components/ui/context-menu/context-menu-sub-content.svelte +19 -0
  210. package/dist/components/ui/context-menu/context-menu-sub-content.svelte.d.ts +4 -0
  211. package/dist/components/ui/context-menu/context-menu-sub-trigger.svelte +28 -0
  212. package/dist/components/ui/context-menu/context-menu-sub-trigger.svelte.d.ts +7 -0
  213. package/dist/components/ui/context-menu/index.d.ts +16 -0
  214. package/dist/components/ui/context-menu/index.js +18 -0
  215. package/dist/components/ui/dialog/dialog-content.svelte +38 -0
  216. package/dist/components/ui/dialog/dialog-content.svelte.d.ts +9 -0
  217. package/dist/components/ui/dialog/dialog-description.svelte +16 -0
  218. package/dist/components/ui/dialog/dialog-description.svelte.d.ts +4 -0
  219. package/dist/components/ui/dialog/dialog-footer.svelte +20 -0
  220. package/dist/components/ui/dialog/dialog-footer.svelte.d.ts +5 -0
  221. package/dist/components/ui/dialog/dialog-header.svelte +20 -0
  222. package/dist/components/ui/dialog/dialog-header.svelte.d.ts +5 -0
  223. package/dist/components/ui/dialog/dialog-overlay.svelte +19 -0
  224. package/dist/components/ui/dialog/dialog-overlay.svelte.d.ts +4 -0
  225. package/dist/components/ui/dialog/dialog-title.svelte +16 -0
  226. package/dist/components/ui/dialog/dialog-title.svelte.d.ts +4 -0
  227. package/dist/components/ui/dialog/index.d.ts +12 -0
  228. package/dist/components/ui/dialog/index.js +14 -0
  229. package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +40 -0
  230. package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +8 -0
  231. package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte +21 -0
  232. package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte.d.ts +4 -0
  233. package/dist/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte +19 -0
  234. package/dist/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte.d.ts +7 -0
  235. package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte +23 -0
  236. package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte.d.ts +7 -0
  237. package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte +23 -0
  238. package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte.d.ts +8 -0
  239. package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +30 -0
  240. package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +4 -0
  241. package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte +16 -0
  242. package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte.d.ts +4 -0
  243. package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte +20 -0
  244. package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +5 -0
  245. package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +19 -0
  246. package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +4 -0
  247. package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +28 -0
  248. package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +7 -0
  249. package/dist/components/ui/dropdown-menu/index.d.ts +25 -0
  250. package/dist/components/ui/dropdown-menu/index.js +17 -0
  251. package/dist/components/ui/input/index.d.ts +2 -0
  252. package/dist/components/ui/input/index.js +4 -0
  253. package/dist/components/ui/input/input.svelte +22 -0
  254. package/dist/components/ui/input/input.svelte.d.ts +5 -0
  255. package/dist/components/ui/label/index.d.ts +2 -0
  256. package/dist/components/ui/label/index.js +4 -0
  257. package/dist/components/ui/label/label.svelte +19 -0
  258. package/dist/components/ui/label/label.svelte.d.ts +4 -0
  259. package/dist/components/ui/popover/index.d.ts +6 -0
  260. package/dist/components/ui/popover/index.js +8 -0
  261. package/dist/components/ui/popover/popover-content.svelte +25 -0
  262. package/dist/components/ui/popover/popover-content.svelte.d.ts +4 -0
  263. package/dist/components/ui/scroll-area/index.d.ts +3 -0
  264. package/dist/components/ui/scroll-area/index.js +5 -0
  265. package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte +29 -0
  266. package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte.d.ts +4 -0
  267. package/dist/components/ui/scroll-area/scroll-area.svelte +34 -0
  268. package/dist/components/ui/scroll-area/scroll-area.svelte.d.ts +10 -0
  269. package/dist/components/ui/separator/index.d.ts +2 -0
  270. package/dist/components/ui/separator/index.js +4 -0
  271. package/dist/components/ui/separator/separator.svelte +22 -0
  272. package/dist/components/ui/separator/separator.svelte.d.ts +4 -0
  273. package/dist/components/ui/slider/index.d.ts +2 -0
  274. package/dist/components/ui/slider/index.js +4 -0
  275. package/dist/components/ui/slider/slider.svelte +34 -0
  276. package/dist/components/ui/slider/slider.svelte.d.ts +4 -0
  277. package/dist/components/ui/toggle/index.d.ts +3 -0
  278. package/dist/components/ui/toggle/index.js +5 -0
  279. package/dist/components/ui/toggle/toggle.svelte +51 -0
  280. package/dist/components/ui/toggle/toggle.svelte.d.ts +90 -0
  281. package/dist/components/ui/tooltip/index.d.ts +6 -0
  282. package/dist/components/ui/tooltip/index.js +8 -0
  283. package/dist/components/ui/tooltip/tooltip-content.svelte +21 -0
  284. package/dist/components/ui/tooltip/tooltip-content.svelte.d.ts +4 -0
  285. package/dist/index.d.ts +9 -0
  286. package/dist/index.js +8 -0
  287. package/dist/plugin.d.ts +5 -0
  288. package/dist/plugin.js +154 -0
  289. package/dist/utils.d.ts +6 -0
  290. package/dist/utils.js +31 -0
  291. package/package.json +99 -0
@@ -0,0 +1,220 @@
1
+ <script lang="ts" module>
2
+ import { tv, type VariantProps } from 'tailwind-variants';
3
+ import type { ActiveAction, ImageLayer } from '../../../types.js';
4
+
5
+ const sideResizeControlVariants = tv({
6
+ slots: {
7
+ base: 'group absolute flex flex-col items-center justify-center pointer-events-none',
8
+ handler: 'absolute pointer-events-auto',
9
+ grip: 'rounded-sm bg-white group-active:bg-purple-500 group-hover:bg-purple-500 transition-colors',
10
+ cursor: '',
11
+ },
12
+ variants: {
13
+ origin: {
14
+ right: {
15
+ base: '-left-4 w-8 h-full',
16
+ handler: '-translate-x-2 w-4 h-full',
17
+ grip: 'w-1.5 h-4',
18
+ cursor: 'cursor-ew-resize',
19
+ },
20
+ left: {
21
+ base: '-right-4 w-8 h-full',
22
+ handler: 'translate-x-2 w-4 h-full',
23
+ grip: 'w-1.5 h-4',
24
+ cursor: 'cursor-ew-resize',
25
+ },
26
+ top: {
27
+ base: '-bottom-4 w-full h-8',
28
+ handler: 'translate-y-2 w-full h-4',
29
+ grip: 'w-4 h-1.5',
30
+ cursor: 'cursor-ns-resize',
31
+ },
32
+ bottom: {
33
+ base: '-top-4 w-full h-8',
34
+ handler: '-translate-y-2 w-full h-4',
35
+ grip: 'w-4 h-1.5',
36
+ cursor: 'cursor-ns-resize',
37
+ },
38
+ },
39
+ },
40
+ });
41
+
42
+ type Origin = VariantProps<typeof sideResizeControlVariants>['origin'];
43
+
44
+ interface Props {
45
+ origin: NonNullable<Origin>;
46
+ layer: ImageLayer;
47
+ }
48
+ </script>
49
+
50
+ <script lang="ts">
51
+ import { getPresentationEditorContext } from '../../../presentation-editor.svelte.js';
52
+ import { cn } from '../../../../../utils.js';
53
+ import { calculateNewPosition } from '../../utils.js';
54
+
55
+ let { origin, layer = $bindable() }: Props = $props();
56
+
57
+ const editor = getPresentationEditorContext();
58
+
59
+ let action: (Omit<ActiveAction, 'layer'> & { layer: ImageLayer }) | null = null;
60
+ let isChanged = false;
61
+
62
+ const { base, handler, grip, cursor } = sideResizeControlVariants({ origin });
63
+
64
+ const onMouseDown = (e: MouseEvent) => {
65
+ e.preventDefault();
66
+ e.stopPropagation();
67
+ console.log(`${origin}-origin-resize`, 'mousedown', layer.id);
68
+ isChanged = false;
69
+ action = {
70
+ type: `${origin}-origin-resize`,
71
+ cursor: cursor(),
72
+ clientX: e.clientX,
73
+ clientY: e.clientY,
74
+ layer: { ...layer },
75
+ };
76
+ editor.activeAction = action;
77
+ addEventListener('mousemove', onMouseMove);
78
+ addEventListener('mouseup', onMouseUp);
79
+ };
80
+
81
+ const onMouseUp = () => {
82
+ console.log(`${origin}-origin-resize`, 'mouseup', layer.id);
83
+ if (isChanged && action) {
84
+ if (editor.checkIfLayerInBounds(layer)) {
85
+ const undo = {
86
+ scale: action.layer.scale,
87
+ x: action.layer.x,
88
+ y: action.layer.y,
89
+ width: action.layer.width,
90
+ height: action.layer.height,
91
+ offsetX: action.layer.offsetX,
92
+ offsetY: action.layer.offsetY,
93
+ };
94
+ const redo = {
95
+ scale: layer.scale,
96
+ x: layer.x,
97
+ y: layer.y,
98
+ width: layer.width,
99
+ height: layer.height,
100
+ offsetX: layer.offsetX,
101
+ offsetY: layer.offsetY,
102
+ };
103
+ editor.historyPush({
104
+ type: 'layer',
105
+ layer: { id: layer.id, type: layer.type },
106
+ undo,
107
+ redo,
108
+ });
109
+ }
110
+ }
111
+ action = null;
112
+ editor.activeAction = null;
113
+ removeEventListener('mousemove', onMouseMove);
114
+ removeEventListener('mouseup', onMouseUp);
115
+ };
116
+
117
+ const onMouseMove = async (e: MouseEvent) => {
118
+ if (!action) return;
119
+
120
+ isChanged = true;
121
+ const { clientX, clientY } = action;
122
+ const { width, height, x, y } = action.layer;
123
+ const scale = action.layer.scale || 1;
124
+ const rotate = action.layer.rotate || 0;
125
+ const offsetX = action.layer.offsetX || 0;
126
+ const offsetY = action.layer.offsetY || 0;
127
+
128
+ const angle = (rotate * Math.PI) / 180;
129
+ const xDiff = (e.clientX - clientX) / editor.zoom;
130
+ const yDiff = (e.clientY - clientY) / editor.zoom;
131
+ const adjustedXDiff = xDiff * Math.cos(angle) + yDiff * Math.sin(angle);
132
+ const adjustedYDiff = -xDiff * Math.sin(angle) + yDiff * Math.cos(angle);
133
+
134
+ let newWidth = width * scale;
135
+ let newHeight = height * scale;
136
+ let newScale = scale;
137
+ let newOffsetX = offsetX;
138
+ let newOffsetY = offsetY;
139
+ const snapping = 10;
140
+ if (origin === 'left') {
141
+ newWidth += adjustedXDiff;
142
+ const maxWidth = layer.image.width - offsetX;
143
+ const maxWidthDiff = maxWidth * scale - newWidth;
144
+ if (Math.abs(maxWidthDiff) < snapping) {
145
+ newWidth = maxWidth * scale;
146
+ } else if (maxWidthDiff < 0) {
147
+ newScale = newWidth / maxWidth;
148
+ newOffsetY += ((layer.image.height / 2 - offsetY) * (newScale - scale)) / newScale;
149
+ }
150
+ } else if (origin === 'top') {
151
+ newHeight += adjustedYDiff;
152
+ const maxHeight = layer.image.height - offsetY;
153
+ const maxHeightDiff = maxHeight * scale - newHeight;
154
+ if (Math.abs(maxHeightDiff) < snapping) {
155
+ newHeight = maxHeight * scale;
156
+ } else if (maxHeightDiff < 0) {
157
+ newScale = newHeight / maxHeight;
158
+ newOffsetX += ((layer.image.width / 2 - offsetX) * (newScale - scale)) / newScale;
159
+ }
160
+ } else if (origin === 'right') {
161
+ newWidth -= adjustedXDiff;
162
+ newOffsetX += adjustedXDiff / scale;
163
+ if (Math.abs(newOffsetX * scale) < snapping) {
164
+ newOffsetX = 0;
165
+ newWidth = (width + offsetX) * scale;
166
+ } else if (newOffsetX < 0) {
167
+ newOffsetX = 0;
168
+ newScale = newWidth / (width + offsetX);
169
+ newOffsetY += ((layer.image.height / 2 - offsetY) * (newScale - scale)) / newScale;
170
+ }
171
+ } else if (origin === 'bottom') {
172
+ newHeight -= adjustedYDiff;
173
+ newOffsetY += adjustedYDiff / scale;
174
+ if (Math.abs(newOffsetY * scale) < snapping) {
175
+ newOffsetY = 0;
176
+ newHeight = (height + offsetY) * scale;
177
+ } else if (newOffsetY < 0) {
178
+ newOffsetY = 0;
179
+ newScale = newHeight / (height + offsetY);
180
+ newOffsetX += ((layer.image.width / 2 - offsetX) * (newScale - scale)) / newScale;
181
+ }
182
+ }
183
+ newWidth = Math.max(newWidth, 10);
184
+ newHeight = Math.max(newHeight, 10);
185
+
186
+ const { newX, newY } = calculateNewPosition(
187
+ origin,
188
+ { x, y, width: width * scale, height: height * scale, rotate },
189
+ newWidth,
190
+ newHeight,
191
+ );
192
+
193
+ Object.assign(layer, {
194
+ scale: newScale,
195
+ x: newX,
196
+ y: newY,
197
+ width: newWidth / newScale,
198
+ height: newHeight / newScale,
199
+ offsetX: newOffsetX,
200
+ offsetY: newOffsetY,
201
+ });
202
+
203
+ if (editor.activeAction) {
204
+ editor.activeAction.tooltip = {
205
+ x: e.clientX,
206
+ y: e.clientY,
207
+ text: `w: ${Math.round(newWidth)} h: ${Math.round(newHeight)}`,
208
+ };
209
+ }
210
+ };
211
+ </script>
212
+
213
+ <div class={base()}>
214
+ <!-- svelte-ignore a11y_no_static_element_interactions -->
215
+ <div class={cn(handler(), cursor())} onmousedown={onMouseDown}></div>
216
+ <div
217
+ class={grip()}
218
+ style:box-shadow="0 0 4px 1px rgba(57,76,96,.15), 0 0 0 1px rgba(43,59,74,.3)"
219
+ ></div>
220
+ </div>
@@ -0,0 +1,215 @@
1
+ import { type VariantProps } from 'tailwind-variants';
2
+ import type { ImageLayer } from '../../../types.js';
3
+ declare const sideResizeControlVariants: import("tailwind-variants").TVReturnType<{
4
+ origin: {
5
+ right: {
6
+ base: string;
7
+ handler: string;
8
+ grip: string;
9
+ cursor: string;
10
+ };
11
+ left: {
12
+ base: string;
13
+ handler: string;
14
+ grip: string;
15
+ cursor: string;
16
+ };
17
+ top: {
18
+ base: string;
19
+ handler: string;
20
+ grip: string;
21
+ cursor: string;
22
+ };
23
+ bottom: {
24
+ base: string;
25
+ handler: string;
26
+ grip: string;
27
+ cursor: string;
28
+ };
29
+ };
30
+ }, {
31
+ base: string;
32
+ handler: string;
33
+ grip: string;
34
+ cursor: string;
35
+ }, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
36
+ origin: {
37
+ right: {
38
+ base: string;
39
+ handler: string;
40
+ grip: string;
41
+ cursor: string;
42
+ };
43
+ left: {
44
+ base: string;
45
+ handler: string;
46
+ grip: string;
47
+ cursor: string;
48
+ };
49
+ top: {
50
+ base: string;
51
+ handler: string;
52
+ grip: string;
53
+ cursor: string;
54
+ };
55
+ bottom: {
56
+ base: string;
57
+ handler: string;
58
+ grip: string;
59
+ cursor: string;
60
+ };
61
+ };
62
+ }, {
63
+ origin: {
64
+ right: {
65
+ base: string;
66
+ handler: string;
67
+ grip: string;
68
+ cursor: string;
69
+ };
70
+ left: {
71
+ base: string;
72
+ handler: string;
73
+ grip: string;
74
+ cursor: string;
75
+ };
76
+ top: {
77
+ base: string;
78
+ handler: string;
79
+ grip: string;
80
+ cursor: string;
81
+ };
82
+ bottom: {
83
+ base: string;
84
+ handler: string;
85
+ grip: string;
86
+ cursor: string;
87
+ };
88
+ };
89
+ }>, {
90
+ origin: {
91
+ right: {
92
+ base: string;
93
+ handler: string;
94
+ grip: string;
95
+ cursor: string;
96
+ };
97
+ left: {
98
+ base: string;
99
+ handler: string;
100
+ grip: string;
101
+ cursor: string;
102
+ };
103
+ top: {
104
+ base: string;
105
+ handler: string;
106
+ grip: string;
107
+ cursor: string;
108
+ };
109
+ bottom: {
110
+ base: string;
111
+ handler: string;
112
+ grip: string;
113
+ cursor: string;
114
+ };
115
+ };
116
+ }, {
117
+ base: string;
118
+ handler: string;
119
+ grip: string;
120
+ cursor: string;
121
+ }, import("tailwind-variants").TVReturnType<{
122
+ origin: {
123
+ right: {
124
+ base: string;
125
+ handler: string;
126
+ grip: string;
127
+ cursor: string;
128
+ };
129
+ left: {
130
+ base: string;
131
+ handler: string;
132
+ grip: string;
133
+ cursor: string;
134
+ };
135
+ top: {
136
+ base: string;
137
+ handler: string;
138
+ grip: string;
139
+ cursor: string;
140
+ };
141
+ bottom: {
142
+ base: string;
143
+ handler: string;
144
+ grip: string;
145
+ cursor: string;
146
+ };
147
+ };
148
+ }, {
149
+ base: string;
150
+ handler: string;
151
+ grip: string;
152
+ cursor: string;
153
+ }, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
154
+ origin: {
155
+ right: {
156
+ base: string;
157
+ handler: string;
158
+ grip: string;
159
+ cursor: string;
160
+ };
161
+ left: {
162
+ base: string;
163
+ handler: string;
164
+ grip: string;
165
+ cursor: string;
166
+ };
167
+ top: {
168
+ base: string;
169
+ handler: string;
170
+ grip: string;
171
+ cursor: string;
172
+ };
173
+ bottom: {
174
+ base: string;
175
+ handler: string;
176
+ grip: string;
177
+ cursor: string;
178
+ };
179
+ };
180
+ }, {
181
+ origin: {
182
+ right: {
183
+ base: string;
184
+ handler: string;
185
+ grip: string;
186
+ cursor: string;
187
+ };
188
+ left: {
189
+ base: string;
190
+ handler: string;
191
+ grip: string;
192
+ cursor: string;
193
+ };
194
+ top: {
195
+ base: string;
196
+ handler: string;
197
+ grip: string;
198
+ cursor: string;
199
+ };
200
+ bottom: {
201
+ base: string;
202
+ handler: string;
203
+ grip: string;
204
+ cursor: string;
205
+ };
206
+ };
207
+ }>, unknown, unknown, undefined>>;
208
+ type Origin = VariantProps<typeof sideResizeControlVariants>['origin'];
209
+ interface Props {
210
+ origin: NonNullable<Origin>;
211
+ layer: ImageLayer;
212
+ }
213
+ declare const SideResizeControl: import("svelte").Component<Props, {}, "layer">;
214
+ type SideResizeControl = ReturnType<typeof SideResizeControl>;
215
+ export default SideResizeControl;
@@ -0,0 +1,2 @@
1
+ import Root from './side-scale-control.svelte';
2
+ export { Root, Root as SideScaleControl, };
@@ -0,0 +1,4 @@
1
+ import Root from './side-scale-control.svelte';
2
+ export { Root,
3
+ //
4
+ Root as SideScaleControl, };
@@ -0,0 +1,141 @@
1
+ <script lang="ts" module>
2
+ import { tv, type VariantProps } from 'tailwind-variants';
3
+ import type { HtmlLayer } from '../../../types.js';
4
+
5
+ const sideScaleControlVariants = tv({
6
+ slots: {
7
+ base: 'group absolute w-8 h-full flex flex-col items-center justify-center pointer-events-none',
8
+ handler: 'absolute w-4 h-full pointer-events-auto',
9
+ cursor: '',
10
+ },
11
+ variants: {
12
+ origin: {
13
+ right: {
14
+ base: '-left-4',
15
+ handler: '-translate-x-2',
16
+ cursor: 'cursor-ew-resize',
17
+ },
18
+ left: {
19
+ base: '-right-4',
20
+ handler: 'translate-x-2',
21
+ cursor: 'cursor-ew-resize',
22
+ },
23
+ },
24
+ },
25
+ });
26
+
27
+ type Origin = VariantProps<typeof sideScaleControlVariants>['origin'];
28
+
29
+ export interface Props {
30
+ origin: NonNullable<Origin>;
31
+ layer: HtmlLayer;
32
+ }
33
+ </script>
34
+
35
+ <script lang="ts">
36
+ import { tick } from 'svelte';
37
+ import { getPresentationEditorContext } from '../../../presentation-editor.svelte.js';
38
+ import { cn } from '../../../../../utils.js';
39
+ import { calculateNewPosition } from '../../utils.js';
40
+
41
+ let { origin, layer = $bindable() }: Props = $props();
42
+
43
+ const editor = getPresentationEditorContext();
44
+
45
+ let isChanged = false;
46
+
47
+ const { base, handler, cursor } = sideScaleControlVariants({ origin });
48
+
49
+ const onMouseDown = (e: MouseEvent) => {
50
+ e.preventDefault();
51
+ e.stopPropagation();
52
+ console.log(`${origin}-origin-scale`, 'mousedown', layer.id);
53
+ isChanged = false;
54
+ editor.activeAction = {
55
+ type: `${origin}-origin-scale`,
56
+ cursor: cursor(),
57
+ clientX: e.clientX,
58
+ clientY: e.clientY,
59
+ layer: { ...layer },
60
+ };
61
+ addEventListener('mousemove', onMouseMove);
62
+ addEventListener('mouseup', onMouseUp);
63
+ };
64
+
65
+ const onMouseUp = () => {
66
+ console.log(`${origin}-origin-scale`, 'mouseup', layer.id);
67
+ if (isChanged && editor.activeAction) {
68
+ if (editor.checkIfLayerInBounds(layer)) {
69
+ const undo = {
70
+ x: editor.activeAction.layer.x,
71
+ y: editor.activeAction.layer.y,
72
+ width: editor.activeAction.layer.width,
73
+ height: editor.activeAction.layer.height,
74
+ };
75
+ const redo = { x: layer.x, y: layer.y, width: layer.width, height: layer.height };
76
+ editor.historyPush({
77
+ type: 'layer',
78
+ layer: { id: layer.id, type: layer.type },
79
+ undo,
80
+ redo,
81
+ });
82
+ }
83
+ }
84
+ editor.activeAction = null;
85
+ removeEventListener('mousemove', onMouseMove);
86
+ removeEventListener('mouseup', onMouseUp);
87
+ };
88
+
89
+ const onMouseMove = async (e: MouseEvent) => {
90
+ if (!editor.activeAction) return;
91
+
92
+ isChanged = true;
93
+ const { clientX, clientY } = editor.activeAction;
94
+ const { width, height, x, y } = editor.activeAction.layer;
95
+ const scale = editor.activeAction.layer.scale || 1;
96
+ const rotate = editor.activeAction.layer.rotate || 0;
97
+
98
+ const angle = (rotate * Math.PI) / 180;
99
+ const xDiff = (e.clientX - clientX) / editor.zoom;
100
+ const yDiff = (e.clientY - clientY) / editor.zoom;
101
+ const adjustedXDiff = xDiff * Math.cos(angle) + yDiff * Math.sin(angle);
102
+
103
+ let newWidth = width * scale;
104
+ if (origin === 'right') {
105
+ newWidth -= adjustedXDiff;
106
+ } else if (origin === 'left') {
107
+ newWidth += adjustedXDiff;
108
+ }
109
+ newWidth = Math.max(newWidth, 10);
110
+
111
+ layer.width = newWidth / scale;
112
+ await tick();
113
+
114
+ const layerContent = document.getElementById(`layer-content-${layer.id}`);
115
+ const contentHeight = layerContent?.offsetHeight || height;
116
+ const newHeight = contentHeight * scale;
117
+
118
+ const { newX, newY } = calculateNewPosition(
119
+ `top-${origin}`,
120
+ { x, y, width: width * scale, height: height * scale, rotate },
121
+ newWidth,
122
+ newHeight,
123
+ );
124
+ Object.assign(layer, { x: newX, y: newY, height: newHeight / scale });
125
+
126
+ editor.activeAction.tooltip = {
127
+ x: e.clientX,
128
+ y: e.clientY,
129
+ text: `w: ${Math.round(newWidth)} h: ${Math.round(newHeight)}`,
130
+ };
131
+ };
132
+ </script>
133
+
134
+ <div class={base()}>
135
+ <!-- svelte-ignore a11y_no_static_element_interactions -->
136
+ <div class={cn(handler(), cursor())} onmousedown={onMouseDown}></div>
137
+ <div
138
+ class="h-4 w-1.5 rounded-sm bg-white transition-colors group-hover:bg-purple-500 group-active:bg-purple-500"
139
+ style:box-shadow="0 0 4px 1px rgba(57,76,96,.15), 0 0 0 1px rgba(43,59,74,.3)"
140
+ ></div>
141
+ </div>
@@ -0,0 +1,114 @@
1
+ import { type VariantProps } from 'tailwind-variants';
2
+ import type { HtmlLayer } from '../../../types.js';
3
+ declare const sideScaleControlVariants: import("tailwind-variants").TVReturnType<{
4
+ origin: {
5
+ right: {
6
+ base: string;
7
+ handler: string;
8
+ cursor: string;
9
+ };
10
+ left: {
11
+ base: string;
12
+ handler: string;
13
+ cursor: string;
14
+ };
15
+ };
16
+ }, {
17
+ base: string;
18
+ handler: string;
19
+ cursor: string;
20
+ }, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
21
+ origin: {
22
+ right: {
23
+ base: string;
24
+ handler: string;
25
+ cursor: string;
26
+ };
27
+ left: {
28
+ base: string;
29
+ handler: string;
30
+ cursor: string;
31
+ };
32
+ };
33
+ }, {
34
+ origin: {
35
+ right: {
36
+ base: string;
37
+ handler: string;
38
+ cursor: string;
39
+ };
40
+ left: {
41
+ base: string;
42
+ handler: string;
43
+ cursor: string;
44
+ };
45
+ };
46
+ }>, {
47
+ origin: {
48
+ right: {
49
+ base: string;
50
+ handler: string;
51
+ cursor: string;
52
+ };
53
+ left: {
54
+ base: string;
55
+ handler: string;
56
+ cursor: string;
57
+ };
58
+ };
59
+ }, {
60
+ base: string;
61
+ handler: string;
62
+ cursor: string;
63
+ }, import("tailwind-variants").TVReturnType<{
64
+ origin: {
65
+ right: {
66
+ base: string;
67
+ handler: string;
68
+ cursor: string;
69
+ };
70
+ left: {
71
+ base: string;
72
+ handler: string;
73
+ cursor: string;
74
+ };
75
+ };
76
+ }, {
77
+ base: string;
78
+ handler: string;
79
+ cursor: string;
80
+ }, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
81
+ origin: {
82
+ right: {
83
+ base: string;
84
+ handler: string;
85
+ cursor: string;
86
+ };
87
+ left: {
88
+ base: string;
89
+ handler: string;
90
+ cursor: string;
91
+ };
92
+ };
93
+ }, {
94
+ origin: {
95
+ right: {
96
+ base: string;
97
+ handler: string;
98
+ cursor: string;
99
+ };
100
+ left: {
101
+ base: string;
102
+ handler: string;
103
+ cursor: string;
104
+ };
105
+ };
106
+ }>, unknown, unknown, undefined>>;
107
+ type Origin = VariantProps<typeof sideScaleControlVariants>['origin'];
108
+ export interface Props {
109
+ origin: NonNullable<Origin>;
110
+ layer: HtmlLayer;
111
+ }
112
+ declare const SideScaleControl: import("svelte").Component<Props, {}, "layer">;
113
+ type SideScaleControl = ReturnType<typeof SideScaleControl>;
114
+ export default SideScaleControl;