@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.
- package/README.md +58 -0
- package/dist/components/presentation-editor/app.css +12 -0
- package/dist/components/presentation-editor/cognition-slides.d.ts +56 -0
- package/dist/components/presentation-editor/cognition-slides.js +182 -0
- package/dist/components/presentation-editor/cursor-tooltip.svelte +29 -0
- package/dist/components/presentation-editor/cursor-tooltip.svelte.d.ts +18 -0
- package/dist/components/presentation-editor/dragged.svelte +31 -0
- package/dist/components/presentation-editor/dragged.svelte.d.ts +18 -0
- package/dist/components/presentation-editor/header.svelte +66 -0
- package/dist/components/presentation-editor/header.svelte.d.ts +8 -0
- package/dist/components/presentation-editor/index.d.ts +2 -0
- package/dist/components/presentation-editor/index.js +2 -0
- package/dist/components/presentation-editor/layers/active-background-border.svelte +16 -0
- package/dist/components/presentation-editor/layers/active-background-border.svelte.d.ts +18 -0
- package/dist/components/presentation-editor/layers/active-layer-border.svelte +30 -0
- package/dist/components/presentation-editor/layers/active-layer-border.svelte.d.ts +8 -0
- package/dist/components/presentation-editor/layers/buttons/border-button/border-button.svelte +231 -0
- package/dist/components/presentation-editor/layers/buttons/border-button/border-button.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/layers/buttons/border-button/index.d.ts +2 -0
- package/dist/components/presentation-editor/layers/buttons/border-button/index.js +2 -0
- package/dist/components/presentation-editor/layers/buttons/corner-radius-button/corner-radius-button.svelte +88 -0
- package/dist/components/presentation-editor/layers/buttons/corner-radius-button/corner-radius-button.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/layers/buttons/corner-radius-button/index.d.ts +2 -0
- package/dist/components/presentation-editor/layers/buttons/corner-radius-button/index.js +2 -0
- package/dist/components/presentation-editor/layers/buttons/flip-button/flip-button.svelte +39 -0
- package/dist/components/presentation-editor/layers/buttons/flip-button/flip-button.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/layers/buttons/flip-button/index.d.ts +2 -0
- package/dist/components/presentation-editor/layers/buttons/flip-button/index.js +2 -0
- package/dist/components/presentation-editor/layers/buttons/opacity-button/index.d.ts +2 -0
- package/dist/components/presentation-editor/layers/buttons/opacity-button/index.js +2 -0
- package/dist/components/presentation-editor/layers/buttons/opacity-button/opacity-button.svelte +93 -0
- package/dist/components/presentation-editor/layers/buttons/opacity-button/opacity-button.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/layers/controls/corner-scale-control/corner-scale-control.svelte +179 -0
- package/dist/components/presentation-editor/layers/controls/corner-scale-control/corner-scale-control.svelte.d.ts +184 -0
- package/dist/components/presentation-editor/layers/controls/corner-scale-control/index.d.ts +2 -0
- package/dist/components/presentation-editor/layers/controls/corner-scale-control/index.js +4 -0
- package/dist/components/presentation-editor/layers/controls/rotate-control/index.d.ts +2 -0
- package/dist/components/presentation-editor/layers/controls/rotate-control/index.js +4 -0
- package/dist/components/presentation-editor/layers/controls/rotate-control/rotate-control.svelte +105 -0
- package/dist/components/presentation-editor/layers/controls/rotate-control/rotate-control.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/layers/controls/side-resize-control/index.d.ts +2 -0
- package/dist/components/presentation-editor/layers/controls/side-resize-control/index.js +4 -0
- package/dist/components/presentation-editor/layers/controls/side-resize-control/side-resize-control.svelte +220 -0
- package/dist/components/presentation-editor/layers/controls/side-resize-control/side-resize-control.svelte.d.ts +215 -0
- package/dist/components/presentation-editor/layers/controls/side-scale-control/index.d.ts +2 -0
- package/dist/components/presentation-editor/layers/controls/side-scale-control/index.js +4 -0
- package/dist/components/presentation-editor/layers/controls/side-scale-control/side-scale-control.svelte +141 -0
- package/dist/components/presentation-editor/layers/controls/side-scale-control/side-scale-control.svelte.d.ts +114 -0
- package/dist/components/presentation-editor/layers/hovered-layer.svelte +34 -0
- package/dist/components/presentation-editor/layers/hovered-layer.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/layers/index.d.ts +10 -0
- package/dist/components/presentation-editor/layers/index.js +22 -0
- package/dist/components/presentation-editor/layers/layer-button.svelte +38 -0
- package/dist/components/presentation-editor/layers/layer-button.svelte.d.ts +8 -0
- package/dist/components/presentation-editor/layers/layer-thumb-wrapper.svelte +36 -0
- package/dist/components/presentation-editor/layers/layer-thumb-wrapper.svelte.d.ts +15 -0
- package/dist/components/presentation-editor/layers/layer-wrapper.svelte +288 -0
- package/dist/components/presentation-editor/layers/layer-wrapper.svelte.d.ts +10 -0
- package/dist/components/presentation-editor/layers/types/background/background-content.svelte +11 -0
- package/dist/components/presentation-editor/layers/types/background/background-content.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/layers/types/background/background-layer-buttons.svelte +81 -0
- package/dist/components/presentation-editor/layers/types/background/background-layer-buttons.svelte.d.ts +18 -0
- package/dist/components/presentation-editor/layers/types/background/background-layer-thumb.svelte +12 -0
- package/dist/components/presentation-editor/layers/types/background/background-layer-thumb.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/layers/types/background/background-layer.svelte +103 -0
- package/dist/components/presentation-editor/layers/types/background/background-layer.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/layers/types/background/index.d.ts +5 -0
- package/dist/components/presentation-editor/layers/types/background/index.js +7 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/alignment-button/alignment-button.svelte +45 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/alignment-button/alignment-button.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/alignment-button/index.d.ts +2 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/alignment-button/index.js +2 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/bold-button/bold-button.svelte +19 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/bold-button/bold-button.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/bold-button/index.d.ts +2 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/bold-button/index.js +2 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/case-button/case-button.svelte +37 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/case-button/case-button.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/case-button/index.d.ts +2 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/case-button/index.js +2 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/color-button/color-button.svelte +88 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/color-button/color-button.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/color-button/index.d.ts +2 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/color-button/index.js +2 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/font-size-button/font-size-button.svelte +132 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/font-size-button/font-size-button.svelte.d.ts +9 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/font-size-button/index.d.ts +2 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/font-size-button/index.js +2 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/italic-button/index.d.ts +2 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/italic-button/index.js +2 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/italic-button/italic-button.svelte +19 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/italic-button/italic-button.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/list-button/index.d.ts +2 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/list-button/index.js +2 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/list-button/list-button.svelte +37 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/list-button/list-button.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/strikethrough-button/index.d.ts +2 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/strikethrough-button/index.js +2 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/strikethrough-button/strikethrough-button.svelte +19 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/strikethrough-button/strikethrough-button.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/underline-button/index.d.ts +2 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/underline-button/index.js +2 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/underline-button/underline-button.svelte +20 -0
- package/dist/components/presentation-editor/layers/types/html/buttons/underline-button/underline-button.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/layers/types/html/editor/Editor.d.ts +4 -0
- package/dist/components/presentation-editor/layers/types/html/editor/Editor.js +4 -0
- package/dist/components/presentation-editor/layers/types/html/editor/createEditor.d.ts +5 -0
- package/dist/components/presentation-editor/layers/types/html/editor/createEditor.js +18 -0
- package/dist/components/presentation-editor/layers/types/html/editor/editor-content.svelte +60 -0
- package/dist/components/presentation-editor/layers/types/html/editor/editor-content.svelte.d.ts +5 -0
- package/dist/components/presentation-editor/layers/types/html/editor/index.d.ts +3 -0
- package/dist/components/presentation-editor/layers/types/html/editor/index.js +3 -0
- package/dist/components/presentation-editor/layers/types/html/editor/types.d.ts +10 -0
- package/dist/components/presentation-editor/layers/types/html/editor/types.js +1 -0
- package/dist/components/presentation-editor/layers/types/html/editor.css +7 -0
- package/dist/components/presentation-editor/layers/types/html/extensions/font-size/font-size.d.ts +20 -0
- package/dist/components/presentation-editor/layers/types/html/extensions/font-size/font-size.js +44 -0
- package/dist/components/presentation-editor/layers/types/html/extensions/font-size/index.d.ts +3 -0
- package/dist/components/presentation-editor/layers/types/html/extensions/font-size/index.js +3 -0
- package/dist/components/presentation-editor/layers/types/html/extensions/line-height/index.d.ts +3 -0
- package/dist/components/presentation-editor/layers/types/html/extensions/line-height/index.js +3 -0
- package/dist/components/presentation-editor/layers/types/html/extensions/line-height/line-height.d.ts +22 -0
- package/dist/components/presentation-editor/layers/types/html/extensions/line-height/line-height.js +44 -0
- package/dist/components/presentation-editor/layers/types/html/extensions/selection/index.d.ts +3 -0
- package/dist/components/presentation-editor/layers/types/html/extensions/selection/index.js +3 -0
- package/dist/components/presentation-editor/layers/types/html/extensions/selection/selection.d.ts +3 -0
- package/dist/components/presentation-editor/layers/types/html/extensions/selection/selection.js +30 -0
- package/dist/components/presentation-editor/layers/types/html/extensions/text-transform/index.d.ts +3 -0
- package/dist/components/presentation-editor/layers/types/html/extensions/text-transform/index.js +3 -0
- package/dist/components/presentation-editor/layers/types/html/extensions/text-transform/text-transform.d.ts +20 -0
- package/dist/components/presentation-editor/layers/types/html/extensions/text-transform/text-transform.js +50 -0
- package/dist/components/presentation-editor/layers/types/html/extensions/unstyled-list/index.d.ts +3 -0
- package/dist/components/presentation-editor/layers/types/html/extensions/unstyled-list/index.js +3 -0
- package/dist/components/presentation-editor/layers/types/html/extensions/unstyled-list/unstyled-list.d.ts +47 -0
- package/dist/components/presentation-editor/layers/types/html/extensions/unstyled-list/unstyled-list.js +74 -0
- package/dist/components/presentation-editor/layers/types/html/html-content.svelte +21 -0
- package/dist/components/presentation-editor/layers/types/html/html-content.svelte.d.ts +5 -0
- package/dist/components/presentation-editor/layers/types/html/html-layer-active.svelte +159 -0
- package/dist/components/presentation-editor/layers/types/html/html-layer-active.svelte.d.ts +8 -0
- package/dist/components/presentation-editor/layers/types/html/html-layer-buttons.svelte +42 -0
- package/dist/components/presentation-editor/layers/types/html/html-layer-buttons.svelte.d.ts +10 -0
- package/dist/components/presentation-editor/layers/types/html/html-layer-thumb.svelte +24 -0
- package/dist/components/presentation-editor/layers/types/html/html-layer-thumb.svelte.d.ts +8 -0
- package/dist/components/presentation-editor/layers/types/html/html-layer.svelte +97 -0
- package/dist/components/presentation-editor/layers/types/html/html-layer.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/layers/types/html/index.d.ts +7 -0
- package/dist/components/presentation-editor/layers/types/html/index.js +58 -0
- package/dist/components/presentation-editor/layers/types/image/image-content.svelte +96 -0
- package/dist/components/presentation-editor/layers/types/image/image-content.svelte.d.ts +8 -0
- package/dist/components/presentation-editor/layers/types/image/image-layer-active.svelte +39 -0
- package/dist/components/presentation-editor/layers/types/image/image-layer-active.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/layers/types/image/image-layer-buttons.svelte +21 -0
- package/dist/components/presentation-editor/layers/types/image/image-layer-buttons.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/layers/types/image/image-layer-thumb.svelte +13 -0
- package/dist/components/presentation-editor/layers/types/image/image-layer-thumb.svelte.d.ts +8 -0
- package/dist/components/presentation-editor/layers/types/image/image-layer.svelte +80 -0
- package/dist/components/presentation-editor/layers/types/image/image-layer.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/layers/types/image/index.d.ts +5 -0
- package/dist/components/presentation-editor/layers/types/image/index.js +5 -0
- package/dist/components/presentation-editor/layers/utils.d.ts +32 -0
- package/dist/components/presentation-editor/layers/utils.js +92 -0
- package/dist/components/presentation-editor/presentation-editor.svelte +336 -0
- package/dist/components/presentation-editor/presentation-editor.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/presentation-editor.svelte.js +352 -0
- package/dist/components/presentation-editor/sidebar/images-library.svelte +108 -0
- package/dist/components/presentation-editor/sidebar/images-library.svelte.d.ts +3 -0
- package/dist/components/presentation-editor/sidebar/layers.svelte +94 -0
- package/dist/components/presentation-editor/sidebar/layers.svelte.d.ts +18 -0
- package/dist/components/presentation-editor/sidebar/sidebar.svelte +20 -0
- package/dist/components/presentation-editor/sidebar/sidebar.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/sidebar/uploads-image.svelte +64 -0
- package/dist/components/presentation-editor/sidebar/uploads-image.svelte.d.ts +5 -0
- package/dist/components/presentation-editor/slide-editor.svelte +106 -0
- package/dist/components/presentation-editor/slide-editor.svelte.d.ts +7 -0
- package/dist/components/presentation-editor/slide-inner.svelte +53 -0
- package/dist/components/presentation-editor/slide-inner.svelte.d.ts +18 -0
- package/dist/components/presentation-editor/slides-navigation/buttons/slide-delete-button.svelte +32 -0
- package/dist/components/presentation-editor/slides-navigation/buttons/slide-delete-button.svelte.d.ts +10 -0
- package/dist/components/presentation-editor/slides-navigation/buttons/slide-duplicate-button.svelte +34 -0
- package/dist/components/presentation-editor/slides-navigation/buttons/slide-duplicate-button.svelte.d.ts +10 -0
- package/dist/components/presentation-editor/slides-navigation/slide-preview.svelte +134 -0
- package/dist/components/presentation-editor/slides-navigation/slide-preview.svelte.d.ts +11 -0
- package/dist/components/presentation-editor/slides-navigation/slides-navigation.svelte +100 -0
- package/dist/components/presentation-editor/slides-navigation/slides-navigation.svelte.d.ts +3 -0
- package/dist/components/presentation-editor/snapping-guides.svelte +41 -0
- package/dist/components/presentation-editor/snapping-guides.svelte.d.ts +8 -0
- package/dist/components/presentation-editor/types.d.ts +118 -0
- package/dist/components/presentation-editor/types.js +1 -0
- package/dist/components/presentation-editor/utils.d.ts +5 -0
- package/dist/components/presentation-editor/utils.js +348 -0
- package/dist/components/ui/button/button.svelte +94 -0
- package/dist/components/ui/button/button.svelte.d.ts +155 -0
- package/dist/components/ui/button/index.d.ts +2 -0
- package/dist/components/ui/button/index.js +4 -0
- package/dist/components/ui/context-menu/context-menu-checkbox-item.svelte +40 -0
- package/dist/components/ui/context-menu/context-menu-checkbox-item.svelte.d.ts +8 -0
- package/dist/components/ui/context-menu/context-menu-content.svelte +24 -0
- package/dist/components/ui/context-menu/context-menu-content.svelte.d.ts +7 -0
- package/dist/components/ui/context-menu/context-menu-group-heading.svelte +19 -0
- package/dist/components/ui/context-menu/context-menu-group-heading.svelte.d.ts +7 -0
- package/dist/components/ui/context-menu/context-menu-item.svelte +23 -0
- package/dist/components/ui/context-menu/context-menu-item.svelte.d.ts +7 -0
- package/dist/components/ui/context-menu/context-menu-radio-item.svelte +30 -0
- package/dist/components/ui/context-menu/context-menu-radio-item.svelte.d.ts +4 -0
- package/dist/components/ui/context-menu/context-menu-separator.svelte +16 -0
- package/dist/components/ui/context-menu/context-menu-separator.svelte.d.ts +4 -0
- package/dist/components/ui/context-menu/context-menu-shortcut.svelte +20 -0
- package/dist/components/ui/context-menu/context-menu-shortcut.svelte.d.ts +5 -0
- package/dist/components/ui/context-menu/context-menu-sub-content.svelte +19 -0
- package/dist/components/ui/context-menu/context-menu-sub-content.svelte.d.ts +4 -0
- package/dist/components/ui/context-menu/context-menu-sub-trigger.svelte +28 -0
- package/dist/components/ui/context-menu/context-menu-sub-trigger.svelte.d.ts +7 -0
- package/dist/components/ui/context-menu/index.d.ts +16 -0
- package/dist/components/ui/context-menu/index.js +18 -0
- package/dist/components/ui/dialog/dialog-content.svelte +38 -0
- package/dist/components/ui/dialog/dialog-content.svelte.d.ts +9 -0
- package/dist/components/ui/dialog/dialog-description.svelte +16 -0
- package/dist/components/ui/dialog/dialog-description.svelte.d.ts +4 -0
- package/dist/components/ui/dialog/dialog-footer.svelte +20 -0
- package/dist/components/ui/dialog/dialog-footer.svelte.d.ts +5 -0
- package/dist/components/ui/dialog/dialog-header.svelte +20 -0
- package/dist/components/ui/dialog/dialog-header.svelte.d.ts +5 -0
- package/dist/components/ui/dialog/dialog-overlay.svelte +19 -0
- package/dist/components/ui/dialog/dialog-overlay.svelte.d.ts +4 -0
- package/dist/components/ui/dialog/dialog-title.svelte +16 -0
- package/dist/components/ui/dialog/dialog-title.svelte.d.ts +4 -0
- package/dist/components/ui/dialog/index.d.ts +12 -0
- package/dist/components/ui/dialog/index.js +14 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +40 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +8 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte +21 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte +19 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte.d.ts +7 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte +23 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte.d.ts +7 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte +23 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte.d.ts +8 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +30 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte +16 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte +20 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +5 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +19 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +28 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +7 -0
- package/dist/components/ui/dropdown-menu/index.d.ts +25 -0
- package/dist/components/ui/dropdown-menu/index.js +17 -0
- package/dist/components/ui/input/index.d.ts +2 -0
- package/dist/components/ui/input/index.js +4 -0
- package/dist/components/ui/input/input.svelte +22 -0
- package/dist/components/ui/input/input.svelte.d.ts +5 -0
- package/dist/components/ui/label/index.d.ts +2 -0
- package/dist/components/ui/label/index.js +4 -0
- package/dist/components/ui/label/label.svelte +19 -0
- package/dist/components/ui/label/label.svelte.d.ts +4 -0
- package/dist/components/ui/popover/index.d.ts +6 -0
- package/dist/components/ui/popover/index.js +8 -0
- package/dist/components/ui/popover/popover-content.svelte +25 -0
- package/dist/components/ui/popover/popover-content.svelte.d.ts +4 -0
- package/dist/components/ui/scroll-area/index.d.ts +3 -0
- package/dist/components/ui/scroll-area/index.js +5 -0
- package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte +29 -0
- package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte.d.ts +4 -0
- package/dist/components/ui/scroll-area/scroll-area.svelte +34 -0
- package/dist/components/ui/scroll-area/scroll-area.svelte.d.ts +10 -0
- package/dist/components/ui/separator/index.d.ts +2 -0
- package/dist/components/ui/separator/index.js +4 -0
- package/dist/components/ui/separator/separator.svelte +22 -0
- package/dist/components/ui/separator/separator.svelte.d.ts +4 -0
- package/dist/components/ui/slider/index.d.ts +2 -0
- package/dist/components/ui/slider/index.js +4 -0
- package/dist/components/ui/slider/slider.svelte +34 -0
- package/dist/components/ui/slider/slider.svelte.d.ts +4 -0
- package/dist/components/ui/toggle/index.d.ts +3 -0
- package/dist/components/ui/toggle/index.js +5 -0
- package/dist/components/ui/toggle/toggle.svelte +51 -0
- package/dist/components/ui/toggle/toggle.svelte.d.ts +90 -0
- package/dist/components/ui/tooltip/index.d.ts +6 -0
- package/dist/components/ui/tooltip/index.js +8 -0
- package/dist/components/ui/tooltip/tooltip-content.svelte +21 -0
- package/dist/components/ui/tooltip/tooltip-content.svelte.d.ts +4 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +8 -0
- package/dist/plugin.d.ts +5 -0
- package/dist/plugin.js +154 -0
- package/dist/utils.d.ts +6 -0
- package/dist/utils.js +31 -0
- 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,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,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,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
|
+
/>
|
package/dist/index.d.ts
ADDED
|
@@ -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 };
|
package/dist/plugin.d.ts
ADDED
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
|
+
});
|
package/dist/utils.d.ts
ADDED
|
@@ -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
|
+
}
|