@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,10 @@
1
+ import { ScrollArea as ScrollAreaPrimitive, type WithoutChild } from 'bits-ui';
2
+ type $$ComponentProps = WithoutChild<ScrollAreaPrimitive.RootProps> & {
3
+ orientation?: 'vertical' | 'horizontal' | 'both' | undefined;
4
+ scrollbarXClasses?: string | undefined;
5
+ scrollbarYClasses?: string | undefined;
6
+ viewportRef?: HTMLElement | null;
7
+ };
8
+ declare const ScrollArea: import("svelte").Component<$$ComponentProps, {}, "ref" | "viewportRef">;
9
+ type ScrollArea = ReturnType<typeof ScrollArea>;
10
+ export default ScrollArea;
@@ -0,0 +1,2 @@
1
+ import Root from './separator.svelte';
2
+ export { Root, Root as Separator, };
@@ -0,0 +1,4 @@
1
+ import Root from './separator.svelte';
2
+ export { Root,
3
+ //
4
+ Root as Separator, };
@@ -0,0 +1,22 @@
1
+ <script lang="ts">
2
+ import { Separator as SeparatorPrimitive } from 'bits-ui';
3
+ import { cn } from '../../../utils.js';
4
+
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ orientation = 'horizontal',
9
+ ...restProps
10
+ }: SeparatorPrimitive.RootProps = $props();
11
+ </script>
12
+
13
+ <SeparatorPrimitive.Root
14
+ bind:ref
15
+ class={cn(
16
+ 'shrink-0 bg-border',
17
+ orientation === 'horizontal' ? 'h-[1px] w-full' : 'min-h-full w-[1px]',
18
+ className,
19
+ )}
20
+ {orientation}
21
+ {...restProps}
22
+ />
@@ -0,0 +1,4 @@
1
+ import { Separator as SeparatorPrimitive } from 'bits-ui';
2
+ declare const Separator: import("svelte").Component<SeparatorPrimitive.RootProps, {}, "ref">;
3
+ type Separator = ReturnType<typeof Separator>;
4
+ export default Separator;
@@ -0,0 +1,2 @@
1
+ import Root from './slider.svelte';
2
+ export { Root, Root as Slider, };
@@ -0,0 +1,4 @@
1
+ import Root from './slider.svelte';
2
+ export { Root,
3
+ //
4
+ Root as Slider, };
@@ -0,0 +1,34 @@
1
+ <script lang="ts">
2
+ import { Slider as SliderPrimitive, type WithoutChildrenOrChild } from 'bits-ui';
3
+ import { cn } from '../../../utils.js';
4
+
5
+ let {
6
+ ref = $bindable(null),
7
+ value = $bindable(),
8
+ class: className,
9
+ ...restProps
10
+ }: WithoutChildrenOrChild<SliderPrimitive.RootProps> = $props();
11
+ </script>
12
+
13
+ <!--
14
+ Discriminated Unions + Destructing (required for bindable) do not
15
+ get along, so we shut typescript up by casting `value` to `never`.
16
+ -->
17
+ <SliderPrimitive.Root
18
+ bind:value={value as never}
19
+ bind:ref
20
+ class={cn('relative flex w-full touch-none select-none items-center', className)}
21
+ {...restProps}
22
+ >
23
+ {#snippet children({ thumbs })}
24
+ <span class="bg-secondary relative h-2 w-full grow overflow-hidden rounded-full">
25
+ <SliderPrimitive.Range class="bg-primary absolute h-full" />
26
+ </span>
27
+ {#each thumbs as thumb}
28
+ <SliderPrimitive.Thumb
29
+ index={thumb}
30
+ class="border-primary bg-background ring-offset-background focus-visible:ring-ring block size-5 rounded-full border-2 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"
31
+ />
32
+ {/each}
33
+ {/snippet}
34
+ </SliderPrimitive.Root>
@@ -0,0 +1,4 @@
1
+ import { Slider as SliderPrimitive, type WithoutChildrenOrChild } from 'bits-ui';
2
+ declare const Slider: import("svelte").Component<WithoutChildrenOrChild<SliderPrimitive.RootProps>, {}, "ref" | "value">;
3
+ type Slider = ReturnType<typeof Slider>;
4
+ export default Slider;
@@ -0,0 +1,3 @@
1
+ import Root from './toggle.svelte';
2
+ export { toggleVariants, type ToggleSize, type ToggleVariant, type ToggleVariants, } from './toggle.svelte';
3
+ export { Root, Root as Toggle, };
@@ -0,0 +1,5 @@
1
+ import Root from './toggle.svelte';
2
+ export { toggleVariants, } from './toggle.svelte';
3
+ export { Root,
4
+ //
5
+ Root as Toggle, };
@@ -0,0 +1,51 @@
1
+ <script lang="ts" module>
2
+ import { type VariantProps, tv } from 'tailwind-variants';
3
+
4
+ export const toggleVariants = tv({
5
+ base: 'ring-offset-background hover:bg-muted hover:text-muted-foreground focus-visible:ring-ring data-[state=on]:bg-accent data-[state=on]:text-accent-foreground inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
6
+ variants: {
7
+ variant: {
8
+ default: 'bg-transparent',
9
+ outline: 'border-input hover:bg-accent hover:text-accent-foreground border bg-transparent',
10
+ },
11
+ size: {
12
+ default: 'h-10 min-w-10 px-3',
13
+ xs: 'h-8 min-w-8 px-1',
14
+ sm: 'h-9 min-w-9 px-2.5',
15
+ lg: 'h-11 min-w-11 px-5',
16
+ },
17
+ },
18
+ defaultVariants: {
19
+ variant: 'default',
20
+ size: 'default',
21
+ },
22
+ });
23
+
24
+ export type ToggleVariant = VariantProps<typeof toggleVariants>['variant'];
25
+ export type ToggleSize = VariantProps<typeof toggleVariants>['size'];
26
+ export type ToggleVariants = VariantProps<typeof toggleVariants>;
27
+ </script>
28
+
29
+ <script lang="ts">
30
+ import { Toggle as TogglePrimitive } from 'bits-ui';
31
+ import { cn } from '../../../utils.js';
32
+
33
+ let {
34
+ ref = $bindable(null),
35
+ pressed = $bindable(false),
36
+ class: className,
37
+ size = 'default',
38
+ variant = 'default',
39
+ ...restProps
40
+ }: TogglePrimitive.RootProps & {
41
+ variant?: ToggleVariant;
42
+ size?: ToggleSize;
43
+ } = $props();
44
+ </script>
45
+
46
+ <TogglePrimitive.Root
47
+ bind:ref
48
+ bind:pressed
49
+ class={cn(toggleVariants({ variant, size, className }))}
50
+ {...restProps}
51
+ />
@@ -0,0 +1,90 @@
1
+ import { type VariantProps } from 'tailwind-variants';
2
+ export declare const toggleVariants: import("tailwind-variants").TVReturnType<{
3
+ variant: {
4
+ default: string;
5
+ outline: string;
6
+ };
7
+ size: {
8
+ default: string;
9
+ xs: string;
10
+ sm: string;
11
+ lg: string;
12
+ };
13
+ }, undefined, "ring-offset-background hover:bg-muted hover:text-muted-foreground focus-visible:ring-ring data-[state=on]:bg-accent data-[state=on]:text-accent-foreground inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", import("tailwind-variants/dist/config").TVConfig<{
14
+ variant: {
15
+ default: string;
16
+ outline: string;
17
+ };
18
+ size: {
19
+ default: string;
20
+ xs: string;
21
+ sm: string;
22
+ lg: string;
23
+ };
24
+ }, {
25
+ variant: {
26
+ default: string;
27
+ outline: string;
28
+ };
29
+ size: {
30
+ default: string;
31
+ xs: string;
32
+ sm: string;
33
+ lg: string;
34
+ };
35
+ }>, {
36
+ variant: {
37
+ default: string;
38
+ outline: string;
39
+ };
40
+ size: {
41
+ default: string;
42
+ xs: string;
43
+ sm: string;
44
+ lg: string;
45
+ };
46
+ }, undefined, import("tailwind-variants").TVReturnType<{
47
+ variant: {
48
+ default: string;
49
+ outline: string;
50
+ };
51
+ size: {
52
+ default: string;
53
+ xs: string;
54
+ sm: string;
55
+ lg: string;
56
+ };
57
+ }, undefined, "ring-offset-background hover:bg-muted hover:text-muted-foreground focus-visible:ring-ring data-[state=on]:bg-accent data-[state=on]:text-accent-foreground inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", import("tailwind-variants/dist/config").TVConfig<{
58
+ variant: {
59
+ default: string;
60
+ outline: string;
61
+ };
62
+ size: {
63
+ default: string;
64
+ xs: string;
65
+ sm: string;
66
+ lg: string;
67
+ };
68
+ }, {
69
+ variant: {
70
+ default: string;
71
+ outline: string;
72
+ };
73
+ size: {
74
+ default: string;
75
+ xs: string;
76
+ sm: string;
77
+ lg: string;
78
+ };
79
+ }>, unknown, unknown, undefined>>;
80
+ export type ToggleVariant = VariantProps<typeof toggleVariants>['variant'];
81
+ export type ToggleSize = VariantProps<typeof toggleVariants>['size'];
82
+ export type ToggleVariants = VariantProps<typeof toggleVariants>;
83
+ import { Toggle as TogglePrimitive } from 'bits-ui';
84
+ type $$ComponentProps = TogglePrimitive.RootProps & {
85
+ variant?: ToggleVariant;
86
+ size?: ToggleSize;
87
+ };
88
+ declare const Toggle: import("svelte").Component<$$ComponentProps, {}, "ref" | "pressed">;
89
+ type Toggle = ReturnType<typeof Toggle>;
90
+ export default Toggle;
@@ -0,0 +1,6 @@
1
+ import { Tooltip as TooltipPrimitive } from 'bits-ui';
2
+ import Content from './tooltip-content.svelte';
3
+ declare const Root: import("svelte").Component<TooltipPrimitive.RootProps, {}, "open">;
4
+ declare const Trigger: import("svelte").Component<TooltipPrimitive.TriggerProps, {}, "ref">;
5
+ declare const Provider: import("svelte").Component<TooltipPrimitive.ProviderProps, {}, "">;
6
+ export { Root, Trigger, Content, Provider, Root as Tooltip, Content as TooltipContent, Trigger as TooltipTrigger, Provider as TooltipProvider, };
@@ -0,0 +1,8 @@
1
+ import { Tooltip as TooltipPrimitive } from 'bits-ui';
2
+ import Content from './tooltip-content.svelte';
3
+ const Root = TooltipPrimitive.Root;
4
+ const Trigger = TooltipPrimitive.Trigger;
5
+ const Provider = TooltipPrimitive.Provider;
6
+ export { Root, Trigger, Content, Provider,
7
+ //
8
+ Root as Tooltip, Content as TooltipContent, Trigger as TooltipTrigger, Provider as TooltipProvider, };
@@ -0,0 +1,21 @@
1
+ <script lang="ts">
2
+ import { Tooltip as TooltipPrimitive } from 'bits-ui';
3
+ import { cn } from '../../../utils.js';
4
+
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ sideOffset = 4,
9
+ ...restProps
10
+ }: TooltipPrimitive.ContentProps = $props();
11
+ </script>
12
+
13
+ <TooltipPrimitive.Content
14
+ bind:ref
15
+ {sideOffset}
16
+ class={cn(
17
+ 'animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md',
18
+ className,
19
+ )}
20
+ {...restProps}
21
+ />
@@ -0,0 +1,4 @@
1
+ import { Tooltip as TooltipPrimitive } from 'bits-ui';
2
+ declare const TooltipContent: import("svelte").Component<TooltipPrimitive.ContentProps, {}, "ref">;
3
+ type TooltipContent = ReturnType<typeof TooltipContent>;
4
+ export default TooltipContent;
@@ -0,0 +1,9 @@
1
+ import { PresentationEditor } from './components/presentation-editor/index.js';
2
+ declare const createEditor: ({ target, props }: {
3
+ target: any;
4
+ props: any;
5
+ }) => {
6
+ fillScreen: () => Promise<void>;
7
+ fitToScreen: () => void;
8
+ };
9
+ export { PresentationEditor, createEditor };
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ // Reexport your entry components here
2
+ import { mount } from 'svelte';
3
+ import { PresentationEditor } from './components/presentation-editor/index.js';
4
+ const createEditor = ({ target, props }) => mount(PresentationEditor, {
5
+ target,
6
+ props,
7
+ });
8
+ export { PresentationEditor, createEditor };
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ handler: import("tailwindcss/types/config").PluginCreator;
3
+ config?: Partial<import("tailwindcss/types/config").Config>;
4
+ };
5
+ export default _default;
package/dist/plugin.js ADDED
@@ -0,0 +1,154 @@
1
+ import plugin from 'tailwindcss/plugin.js';
2
+ import tailwindcssAnimate from 'tailwindcss-animate';
3
+ export default plugin(function ({ addBase }) {
4
+ addBase({
5
+ ':root': {
6
+ '--radius': '0.5rem',
7
+ '--background': '0 0% 100%',
8
+ '--foreground': '222.2 84% 4.9%',
9
+ '--muted': '210 40% 96.1%',
10
+ '--muted-foreground': '215.4 16.3% 46.9%',
11
+ '--popover': '0 0% 100%',
12
+ '--popover-foreground': '222.2 84% 4.9%',
13
+ '--card': '0 0% 100%',
14
+ '--card-foreground': '222.2 84% 4.9%',
15
+ '--border': '214.3 31.8% 91.4%',
16
+ '--input': '214.3 31.8% 91.4%',
17
+ '--primary': '222.2 47.4% 11.2%',
18
+ '--primary-foreground': '210 40% 98%',
19
+ '--secondary': '210 40% 96.1%',
20
+ '--secondary-foreground': '222.2 47.4% 11.2%',
21
+ '--accent': '210 40% 96.1%',
22
+ '--accent-foreground': '222.2 47.4% 11.2%',
23
+ '--destructive': '0 72.2% 50.6%',
24
+ '--destructive-foreground': '210 40% 98%',
25
+ '--ring': '222.2 84% 4.9%',
26
+ '--sidebar-background': '0 0% 98%',
27
+ '--sidebar-foreground': '240 5.3% 26.1%',
28
+ '--sidebar-primary': '240 5.9% 10%',
29
+ '--sidebar-primary-foreground': '0 0% 98%',
30
+ '--sidebar-accent': '240 4.8% 95.9%',
31
+ '--sidebar-accent-foreground': '240 5.9% 10%',
32
+ '--sidebar-border': '220 13% 91%',
33
+ '--sidebar-ring': '217.2 91.2% 59.8%',
34
+ },
35
+ '.dark': {
36
+ '--background': '222.2 84% 4.9%',
37
+ '--foreground': '210 40% 98%',
38
+ '--muted': '217.2 32.6% 17.5%',
39
+ '--muted-foreground': '215 20.2% 65.1%',
40
+ '--popover': '222.2 84% 4.9%',
41
+ '--popover-foreground': '210 40% 98%',
42
+ '--card': '222.2 84% 4.9%',
43
+ '--card-foreground': '210 40% 98%',
44
+ '--border': '217.2 32.6% 17.5%',
45
+ '--input': '217.2 32.6% 17.5%',
46
+ '--primary': '210 40% 98%',
47
+ '--primary-foreground': '222.2 47.4% 11.2%',
48
+ '--secondary': '217.2 32.6% 17.5%',
49
+ '--secondary-foreground': '210 40% 98%',
50
+ '--accent': '217.2 32.6% 17.5%',
51
+ '--accent-foreground': '210 40% 98%',
52
+ '--destructive': '0 62.8% 30.6%',
53
+ '--destructive-foreground': '210 40% 98%',
54
+ '--ring': '212.7 26.8% 83.9%',
55
+ '--sidebar-background': '240 5.9% 10%',
56
+ '--sidebar-foreground': '240 4.8% 95.9%',
57
+ '--sidebar-primary': '224.3 76.3% 48%',
58
+ '--sidebar-primary-foreground': '0 0% 100%',
59
+ '--sidebar-accent': '240 3.7% 15.9%',
60
+ '--sidebar-accent-foreground': '240 4.8% 95.9%',
61
+ '--sidebar-border': '240 3.7% 15.9%',
62
+ '--sidebar-ring': '217.2 91.2% 59.8%',
63
+ },
64
+ });
65
+ }, {
66
+ darkMode: ['class'], // or 'media' or 'class',
67
+ safelist: ['dark'],
68
+ theme: {
69
+ container: {
70
+ center: true,
71
+ padding: '2rem',
72
+ screens: {
73
+ '2xl': '1400px',
74
+ },
75
+ },
76
+ extend: {
77
+ colors: {
78
+ border: 'hsl(var(--border) / <alpha-value>)',
79
+ input: 'hsl(var(--input) / <alpha-value>)',
80
+ ring: 'hsl(var(--ring) / <alpha-value>)',
81
+ background: 'hsl(var(--background) / <alpha-value>)',
82
+ foreground: 'hsl(var(--foreground) / <alpha-value>)',
83
+ primary: {
84
+ DEFAULT: 'hsl(var(--primary) / <alpha-value>)',
85
+ foreground: 'hsl(var(--primary-foreground) / <alpha-value>)',
86
+ },
87
+ secondary: {
88
+ DEFAULT: 'hsl(var(--secondary) / <alpha-value>)',
89
+ foreground: 'hsl(var(--secondary-foreground) / <alpha-value>)',
90
+ },
91
+ destructive: {
92
+ DEFAULT: 'hsl(var(--destructive) / <alpha-value>)',
93
+ foreground: 'hsl(var(--destructive-foreground) / <alpha-value>)',
94
+ },
95
+ muted: {
96
+ DEFAULT: 'hsl(var(--muted) / <alpha-value>)',
97
+ foreground: 'hsl(var(--muted-foreground) / <alpha-value>)',
98
+ },
99
+ accent: {
100
+ DEFAULT: 'hsl(var(--accent) / <alpha-value>)',
101
+ foreground: 'hsl(var(--accent-foreground) / <alpha-value>)',
102
+ },
103
+ popover: {
104
+ DEFAULT: 'hsl(var(--popover) / <alpha-value>)',
105
+ foreground: 'hsl(var(--popover-foreground) / <alpha-value>)',
106
+ },
107
+ card: {
108
+ DEFAULT: 'hsl(var(--card) / <alpha-value>)',
109
+ foreground: 'hsl(var(--card-foreground) / <alpha-value>)',
110
+ },
111
+ sidebar: {
112
+ DEFAULT: 'hsl(var(--sidebar-background))',
113
+ foreground: 'hsl(var(--sidebar-foreground))',
114
+ primary: 'hsl(var(--sidebar-primary))',
115
+ 'primary-foreground': 'hsl(var(--sidebar-primary-foreground))',
116
+ accent: 'hsl(var(--sidebar-accent))',
117
+ 'accent-foreground': 'hsl(var(--sidebar-accent-foreground))',
118
+ border: 'hsl(var(--sidebar-border))',
119
+ ring: 'hsl(var(--sidebar-ring))',
120
+ },
121
+ },
122
+ borderRadius: {
123
+ xl: 'calc(var(--radius) + 4px)',
124
+ lg: 'var(--radius)',
125
+ md: 'calc(var(--radius) - 2px)',
126
+ sm: 'calc(var(--radius) - 4px)',
127
+ },
128
+ boxShadow: {
129
+ inner: 'inset 0 0 0 1px hsl(var(--accent))',
130
+ active: '0 0 0 1px hsl(var(--primary)), inset 0 0 0 2px hsl(var(--primary)), inset 0px 0px 0px 4px white',
131
+ },
132
+ keyframes: {
133
+ 'accordion-down': {
134
+ from: { height: '0' },
135
+ to: { height: 'var(--bits-accordion-content-height)' },
136
+ },
137
+ 'accordion-up': {
138
+ from: { height: 'var(--bits-accordion-content-height)' },
139
+ to: { height: '0' },
140
+ },
141
+ 'caret-blink': {
142
+ '0%,70%,100%': { opacity: '1' },
143
+ '20%,50%': { opacity: '0' },
144
+ },
145
+ },
146
+ animation: {
147
+ 'accordion-down': 'accordion-down 0.2s ease-out',
148
+ 'accordion-up': 'accordion-up 0.2s ease-out',
149
+ 'caret-blink': 'caret-blink 1.25s ease-out infinite',
150
+ },
151
+ },
152
+ },
153
+ plugins: [tailwindcssAnimate],
154
+ });
@@ -0,0 +1,6 @@
1
+ import { type ClassValue } from 'clsx';
2
+ export declare function generateId(): string;
3
+ export declare const noop: () => void;
4
+ export declare function cn(...inputs: ClassValue[]): string;
5
+ export declare function createDebouncedCallback<T extends (...args: any[]) => any>(callback: T, delay: number): (...args: Parameters<T>) => void;
6
+ export declare function createThrottleCallback<T extends (...args: unknown[]) => unknown>(callback: T, limit: number): (...args: Parameters<T>) => void;
package/dist/utils.js ADDED
@@ -0,0 +1,31 @@
1
+ import { clsx } from 'clsx';
2
+ import { twMerge } from 'tailwind-merge';
3
+ let globalId = 0;
4
+ export function generateId() {
5
+ return '__id' + ++globalId;
6
+ }
7
+ export const noop = () => {
8
+ // do nothing
9
+ };
10
+ export function cn(...inputs) {
11
+ return twMerge(clsx(inputs));
12
+ }
13
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
14
+ export function createDebouncedCallback(callback, delay) {
15
+ let timeout = null;
16
+ return (...args) => {
17
+ if (timeout)
18
+ clearTimeout(timeout);
19
+ timeout = setTimeout(() => callback(...args), delay);
20
+ };
21
+ }
22
+ export function createThrottleCallback(callback, limit) {
23
+ let lastCall = 0;
24
+ return (...args) => {
25
+ const now = Date.now();
26
+ if (now - lastCall >= limit) {
27
+ lastCall = now;
28
+ callback(...args);
29
+ }
30
+ };
31
+ }
package/package.json ADDED
@@ -0,0 +1,99 @@
1
+ {
2
+ "name": "@peteai/presentation-editor",
3
+ "version": "0.0.1",
4
+ "scripts": {
5
+ "dev": "vite dev",
6
+ "build": "vite build && npm run package",
7
+ "build:js": "vite -c vite.js.config.ts build",
8
+ "preview": "vite preview",
9
+ "package": "svelte-kit sync && svelte-package && publint",
10
+ "package:watch": "svelte-kit sync && svelte-package --watch && publint",
11
+ "prepublishOnly": "npm run package",
12
+ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
13
+ "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
14
+ "format": "prettier --write .",
15
+ "lint": "prettier --check . && eslint .",
16
+ "test:unit": "vitest",
17
+ "test": "npm run test:unit -- --run && npm run test:e2e",
18
+ "test:e2e": "playwright test"
19
+ },
20
+ "files": [
21
+ "dist",
22
+ "dist-js",
23
+ "!dist/**/*.test.*",
24
+ "!dist/**/*.spec.*"
25
+ ],
26
+ "sideEffects": [
27
+ "**/*.css"
28
+ ],
29
+ "svelte": "./dist/index.js",
30
+ "types": "./dist/index.d.ts",
31
+ "type": "module",
32
+ "exports": {
33
+ ".": {
34
+ "types": "./dist/index.d.ts",
35
+ "svelte": "./dist/index.js"
36
+ },
37
+ "./plugin": {
38
+ "types": "./dist/plugin.d.ts",
39
+ "default": "./dist/plugin.js"
40
+ }
41
+ },
42
+ "peerDependencies": {
43
+ "svelte": "^5.19.7"
44
+ },
45
+ "devDependencies": {
46
+ "@playwright/test": "^1.50.1",
47
+ "@sveltejs/adapter-auto": "^3.3.1",
48
+ "@sveltejs/kit": "^2.17.1",
49
+ "@sveltejs/package": "^2.3.10",
50
+ "@sveltejs/vite-plugin-svelte": "^4.0.4",
51
+ "@types/eslint": "^9.6.1",
52
+ "@types/uniqid": "^5.3.4",
53
+ "autoprefixer": "^10.4.20",
54
+ "bits-ui": "^1.0.0-next.82",
55
+ "eslint": "^9.19.0",
56
+ "eslint-config-prettier": "^9.1.0",
57
+ "eslint-plugin-svelte": "^2.46.1",
58
+ "globals": "^15.14.0",
59
+ "lucide-svelte": "^0.456.0",
60
+ "postcss-cli": "^11.0.0",
61
+ "prettier": "^3.4.2",
62
+ "prettier-plugin-svelte": "^3.3.3",
63
+ "prettier-plugin-tailwindcss": "^0.6.11",
64
+ "publint": "^0.2.12",
65
+ "svelte": "^5.19.7",
66
+ "svelte-check": "^4.1.4",
67
+ "svelte-kit-sst": "^2.43.5",
68
+ "tailwind-merge": "^2.6.0",
69
+ "tailwind-variants": "^0.2.1",
70
+ "tailwindcss": "^3.4.17",
71
+ "tailwindcss-animate": "^1.0.7",
72
+ "typescript": "^5.6.3",
73
+ "typescript-eslint": "^8.23.0",
74
+ "vite": "^5.4.14",
75
+ "vitest": "^2.1.9"
76
+ },
77
+ "dependencies": {
78
+ "@tiptap/core": "^2.11.5",
79
+ "@tiptap/extension-bold": "^2.11.5",
80
+ "@tiptap/extension-bullet-list": "^2.11.5",
81
+ "@tiptap/extension-color": "^2.11.5",
82
+ "@tiptap/extension-document": "^2.11.5",
83
+ "@tiptap/extension-italic": "^2.11.5",
84
+ "@tiptap/extension-list-item": "^2.11.5",
85
+ "@tiptap/extension-ordered-list": "^2.11.5",
86
+ "@tiptap/extension-paragraph": "^2.11.5",
87
+ "@tiptap/extension-strike": "^2.11.5",
88
+ "@tiptap/extension-text": "^2.11.5",
89
+ "@tiptap/extension-text-align": "^2.11.5",
90
+ "@tiptap/extension-text-style": "^2.11.5",
91
+ "@tiptap/extension-underline": "^2.11.5",
92
+ "@tiptap/pm": "^2.11.5",
93
+ "clsx": "^2.1.1",
94
+ "esm-env": "^1.2.2",
95
+ "svelte-dnd-action": "^0.9.57",
96
+ "svelte-radix": "^2.0.1",
97
+ "uniqid": "^5.4.0"
98
+ }
99
+ }