@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,179 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import { tv, type VariantProps } from 'tailwind-variants';
|
|
3
|
+
import type { Layer } from '../../../types.js';
|
|
4
|
+
|
|
5
|
+
const cornerScaleControlVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
base: 'group absolute w-8 h-8 flex items-center justify-center pointer-events-none',
|
|
8
|
+
handler: 'absolute w-4 h-4 pointer-events-auto',
|
|
9
|
+
cursor: '',
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
origin: {
|
|
13
|
+
'bottom-right': {
|
|
14
|
+
base: '-top-4 -left-4',
|
|
15
|
+
handler: '-translate-x-0.5 -translate-y-0.5 rounded-tl-full',
|
|
16
|
+
cursor: 'cursor-nwse-resize',
|
|
17
|
+
},
|
|
18
|
+
'bottom-left': {
|
|
19
|
+
base: '-top-4 -right-4',
|
|
20
|
+
handler: 'translate-x-0.5 -translate-y-0.5 rounded-tr-full',
|
|
21
|
+
cursor: 'cursor-nesw-resize',
|
|
22
|
+
},
|
|
23
|
+
'top-right': {
|
|
24
|
+
base: '-bottom-4 -left-4',
|
|
25
|
+
handler: '-translate-x-0.5 translate-y-0.5 rounded-bl-full',
|
|
26
|
+
cursor: 'cursor-nesw-resize',
|
|
27
|
+
},
|
|
28
|
+
'top-left': {
|
|
29
|
+
base: '-bottom-4 -right-4',
|
|
30
|
+
handler: 'translate-x-0.5 translate-y-0.5 rounded-br-full',
|
|
31
|
+
cursor: 'cursor-nwse-resize',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
type Origin = VariantProps<typeof cornerScaleControlVariants>['origin'];
|
|
38
|
+
|
|
39
|
+
interface Props {
|
|
40
|
+
origin: NonNullable<Origin>;
|
|
41
|
+
layer: Layer;
|
|
42
|
+
}
|
|
43
|
+
</script>
|
|
44
|
+
|
|
45
|
+
<script lang="ts">
|
|
46
|
+
import { cn } from '../../../../../utils.js';
|
|
47
|
+
import { calculateNewPosition } from '../../utils.js';
|
|
48
|
+
import { getPresentationEditorContext } from '../../../presentation-editor.svelte.js';
|
|
49
|
+
|
|
50
|
+
let { origin, layer = $bindable() }: Props = $props();
|
|
51
|
+
|
|
52
|
+
const editor = getPresentationEditorContext();
|
|
53
|
+
|
|
54
|
+
let isChanged = false;
|
|
55
|
+
|
|
56
|
+
const { base, handler, cursor } = cornerScaleControlVariants({ origin });
|
|
57
|
+
|
|
58
|
+
const onMouseDown = (e: MouseEvent) => {
|
|
59
|
+
e.preventDefault();
|
|
60
|
+
e.stopPropagation();
|
|
61
|
+
console.log('scale', 'mousedown', layer.id);
|
|
62
|
+
isChanged = false;
|
|
63
|
+
editor.activeAction = {
|
|
64
|
+
type: `${origin}-origin-scale`,
|
|
65
|
+
cursor: cursor(),
|
|
66
|
+
clientX: e.clientX,
|
|
67
|
+
clientY: e.clientY,
|
|
68
|
+
layer: { ...layer },
|
|
69
|
+
};
|
|
70
|
+
addEventListener('mousemove', onMouseMove);
|
|
71
|
+
addEventListener('mouseup', onMouseUp);
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
const onMouseUp = () => {
|
|
75
|
+
console.log('scale', 'mouseup', layer.id);
|
|
76
|
+
if (isChanged && editor.activeAction) {
|
|
77
|
+
if (editor.checkIfLayerInBounds(layer)) {
|
|
78
|
+
editor.historyPush({
|
|
79
|
+
type: 'layer',
|
|
80
|
+
layer: { id: layer.id, type: layer.type },
|
|
81
|
+
undo: {
|
|
82
|
+
scale: editor.activeAction.layer.scale,
|
|
83
|
+
x: editor.activeAction.layer.x,
|
|
84
|
+
y: editor.activeAction.layer.y,
|
|
85
|
+
},
|
|
86
|
+
redo: { scale: layer.scale, x: layer.x, y: layer.y },
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
editor.activeAction = null;
|
|
91
|
+
removeEventListener('mousemove', onMouseMove);
|
|
92
|
+
removeEventListener('mouseup', onMouseUp);
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const onMouseMove = (e: MouseEvent) => {
|
|
96
|
+
if (!editor.activeAction) return;
|
|
97
|
+
|
|
98
|
+
isChanged = true;
|
|
99
|
+
const { clientX, clientY } = editor.activeAction;
|
|
100
|
+
const { width, height, x, y } = editor.activeAction.layer;
|
|
101
|
+
const scale = editor.activeAction.layer.scale || 1;
|
|
102
|
+
const rotate = editor.activeAction.layer.rotate || 0;
|
|
103
|
+
const angle = (rotate * Math.PI) / 180;
|
|
104
|
+
const xDiff = (e.clientX - clientX) / editor.zoom;
|
|
105
|
+
const yDiff = (e.clientY - clientY) / editor.zoom;
|
|
106
|
+
const adjustedXDiff = xDiff * Math.cos(angle) + yDiff * Math.sin(angle);
|
|
107
|
+
const adjustedYDiff = -xDiff * Math.sin(angle) + yDiff * Math.cos(angle);
|
|
108
|
+
|
|
109
|
+
// Calculate the initial width and height of the layer, adjusted for scale
|
|
110
|
+
const initialWidth = width * scale;
|
|
111
|
+
const initialHeight = height * scale;
|
|
112
|
+
|
|
113
|
+
// Define the new x2 and y2 coordinates based on the variant (corner being dragged)
|
|
114
|
+
const originCoordinates = {
|
|
115
|
+
'bottom-right': {
|
|
116
|
+
x2: x + initialWidth - adjustedXDiff,
|
|
117
|
+
y2: y + initialHeight - adjustedYDiff,
|
|
118
|
+
},
|
|
119
|
+
'bottom-left': {
|
|
120
|
+
x2: x + initialWidth + adjustedXDiff,
|
|
121
|
+
y2: y + initialHeight - adjustedYDiff,
|
|
122
|
+
},
|
|
123
|
+
'top-right': { x2: x + initialWidth - adjustedXDiff, y2: y + initialHeight + adjustedYDiff },
|
|
124
|
+
'top-left': { x2: x + initialWidth + adjustedXDiff, y2: y + initialHeight + adjustedYDiff },
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
const { x2, y2 } = originCoordinates[origin];
|
|
128
|
+
|
|
129
|
+
// Calculate the slope of the rectangle
|
|
130
|
+
const slope = initialHeight / initialWidth;
|
|
131
|
+
|
|
132
|
+
// Calculate the x-coordinate of the intersection point
|
|
133
|
+
const xIntersect = (y2 + x2 / slope - y + x * slope) / (slope + 1 / slope);
|
|
134
|
+
|
|
135
|
+
// Calculate the new width and height, ensuring they are at least 10 units
|
|
136
|
+
let newWidth = Math.max(xIntersect - x, 10);
|
|
137
|
+
let newHeight = Math.max(newWidth * slope, 10);
|
|
138
|
+
|
|
139
|
+
// Ensure the new dimensions are not less than 10 units
|
|
140
|
+
if (newHeight / slope < 10) {
|
|
141
|
+
newWidth = 10;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
if (newWidth * slope < 10) {
|
|
145
|
+
newHeight = 10;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
const scaleFactor = Math.max(newWidth / initialWidth, newHeight / initialHeight);
|
|
149
|
+
|
|
150
|
+
if (scaleFactor > 0) {
|
|
151
|
+
const newScale = scale * scaleFactor;
|
|
152
|
+
const { newX, newY } = calculateNewPosition(
|
|
153
|
+
origin,
|
|
154
|
+
{ x, y, width: initialWidth, height: initialHeight, rotate },
|
|
155
|
+
width * newScale,
|
|
156
|
+
height * newScale,
|
|
157
|
+
);
|
|
158
|
+
const newProps = { scale: newScale, x: newX, y: newY };
|
|
159
|
+
Object.assign(layer, newProps);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
if (editor.activeAction) {
|
|
163
|
+
editor.activeAction.tooltip = {
|
|
164
|
+
x: e.clientX,
|
|
165
|
+
y: e.clientY,
|
|
166
|
+
text: `w: ${Math.round(newWidth)} h: ${Math.round(newHeight)}`,
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
</script>
|
|
171
|
+
|
|
172
|
+
<div class={base()}>
|
|
173
|
+
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
|
174
|
+
<div class={cn(handler(), cursor())} onmousedown={onMouseDown}></div>
|
|
175
|
+
<div
|
|
176
|
+
class="h-3 w-3 rounded-full bg-white transition-colors group-hover:bg-purple-500 group-active:bg-purple-500"
|
|
177
|
+
style:box-shadow="0 0 4px 1px rgba(57,76,96,.15), 0 0 0 1px rgba(43,59,74,.3)"
|
|
178
|
+
></div>
|
|
179
|
+
</div>
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
2
|
+
import type { Layer } from '../../../types.js';
|
|
3
|
+
declare const cornerScaleControlVariants: import("tailwind-variants").TVReturnType<{
|
|
4
|
+
origin: {
|
|
5
|
+
'bottom-right': {
|
|
6
|
+
base: string;
|
|
7
|
+
handler: string;
|
|
8
|
+
cursor: string;
|
|
9
|
+
};
|
|
10
|
+
'bottom-left': {
|
|
11
|
+
base: string;
|
|
12
|
+
handler: string;
|
|
13
|
+
cursor: string;
|
|
14
|
+
};
|
|
15
|
+
'top-right': {
|
|
16
|
+
base: string;
|
|
17
|
+
handler: string;
|
|
18
|
+
cursor: string;
|
|
19
|
+
};
|
|
20
|
+
'top-left': {
|
|
21
|
+
base: string;
|
|
22
|
+
handler: string;
|
|
23
|
+
cursor: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
base: string;
|
|
28
|
+
handler: string;
|
|
29
|
+
cursor: string;
|
|
30
|
+
}, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
|
|
31
|
+
origin: {
|
|
32
|
+
'bottom-right': {
|
|
33
|
+
base: string;
|
|
34
|
+
handler: string;
|
|
35
|
+
cursor: string;
|
|
36
|
+
};
|
|
37
|
+
'bottom-left': {
|
|
38
|
+
base: string;
|
|
39
|
+
handler: string;
|
|
40
|
+
cursor: string;
|
|
41
|
+
};
|
|
42
|
+
'top-right': {
|
|
43
|
+
base: string;
|
|
44
|
+
handler: string;
|
|
45
|
+
cursor: string;
|
|
46
|
+
};
|
|
47
|
+
'top-left': {
|
|
48
|
+
base: string;
|
|
49
|
+
handler: string;
|
|
50
|
+
cursor: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
}, {
|
|
54
|
+
origin: {
|
|
55
|
+
'bottom-right': {
|
|
56
|
+
base: string;
|
|
57
|
+
handler: string;
|
|
58
|
+
cursor: string;
|
|
59
|
+
};
|
|
60
|
+
'bottom-left': {
|
|
61
|
+
base: string;
|
|
62
|
+
handler: string;
|
|
63
|
+
cursor: string;
|
|
64
|
+
};
|
|
65
|
+
'top-right': {
|
|
66
|
+
base: string;
|
|
67
|
+
handler: string;
|
|
68
|
+
cursor: string;
|
|
69
|
+
};
|
|
70
|
+
'top-left': {
|
|
71
|
+
base: string;
|
|
72
|
+
handler: string;
|
|
73
|
+
cursor: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
}>, {
|
|
77
|
+
origin: {
|
|
78
|
+
'bottom-right': {
|
|
79
|
+
base: string;
|
|
80
|
+
handler: string;
|
|
81
|
+
cursor: string;
|
|
82
|
+
};
|
|
83
|
+
'bottom-left': {
|
|
84
|
+
base: string;
|
|
85
|
+
handler: string;
|
|
86
|
+
cursor: string;
|
|
87
|
+
};
|
|
88
|
+
'top-right': {
|
|
89
|
+
base: string;
|
|
90
|
+
handler: string;
|
|
91
|
+
cursor: string;
|
|
92
|
+
};
|
|
93
|
+
'top-left': {
|
|
94
|
+
base: string;
|
|
95
|
+
handler: string;
|
|
96
|
+
cursor: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
}, {
|
|
100
|
+
base: string;
|
|
101
|
+
handler: string;
|
|
102
|
+
cursor: string;
|
|
103
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
104
|
+
origin: {
|
|
105
|
+
'bottom-right': {
|
|
106
|
+
base: string;
|
|
107
|
+
handler: string;
|
|
108
|
+
cursor: string;
|
|
109
|
+
};
|
|
110
|
+
'bottom-left': {
|
|
111
|
+
base: string;
|
|
112
|
+
handler: string;
|
|
113
|
+
cursor: string;
|
|
114
|
+
};
|
|
115
|
+
'top-right': {
|
|
116
|
+
base: string;
|
|
117
|
+
handler: string;
|
|
118
|
+
cursor: string;
|
|
119
|
+
};
|
|
120
|
+
'top-left': {
|
|
121
|
+
base: string;
|
|
122
|
+
handler: string;
|
|
123
|
+
cursor: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
}, {
|
|
127
|
+
base: string;
|
|
128
|
+
handler: string;
|
|
129
|
+
cursor: string;
|
|
130
|
+
}, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
|
|
131
|
+
origin: {
|
|
132
|
+
'bottom-right': {
|
|
133
|
+
base: string;
|
|
134
|
+
handler: string;
|
|
135
|
+
cursor: string;
|
|
136
|
+
};
|
|
137
|
+
'bottom-left': {
|
|
138
|
+
base: string;
|
|
139
|
+
handler: string;
|
|
140
|
+
cursor: string;
|
|
141
|
+
};
|
|
142
|
+
'top-right': {
|
|
143
|
+
base: string;
|
|
144
|
+
handler: string;
|
|
145
|
+
cursor: string;
|
|
146
|
+
};
|
|
147
|
+
'top-left': {
|
|
148
|
+
base: string;
|
|
149
|
+
handler: string;
|
|
150
|
+
cursor: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
}, {
|
|
154
|
+
origin: {
|
|
155
|
+
'bottom-right': {
|
|
156
|
+
base: string;
|
|
157
|
+
handler: string;
|
|
158
|
+
cursor: string;
|
|
159
|
+
};
|
|
160
|
+
'bottom-left': {
|
|
161
|
+
base: string;
|
|
162
|
+
handler: string;
|
|
163
|
+
cursor: string;
|
|
164
|
+
};
|
|
165
|
+
'top-right': {
|
|
166
|
+
base: string;
|
|
167
|
+
handler: string;
|
|
168
|
+
cursor: string;
|
|
169
|
+
};
|
|
170
|
+
'top-left': {
|
|
171
|
+
base: string;
|
|
172
|
+
handler: string;
|
|
173
|
+
cursor: string;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
}>, unknown, unknown, undefined>>;
|
|
177
|
+
type Origin = VariantProps<typeof cornerScaleControlVariants>['origin'];
|
|
178
|
+
interface Props {
|
|
179
|
+
origin: NonNullable<Origin>;
|
|
180
|
+
layer: Layer;
|
|
181
|
+
}
|
|
182
|
+
declare const CornerScaleControl: import("svelte").Component<Props, {}, "layer">;
|
|
183
|
+
type CornerScaleControl = ReturnType<typeof CornerScaleControl>;
|
|
184
|
+
export default CornerScaleControl;
|
package/dist/components/presentation-editor/layers/controls/rotate-control/rotate-control.svelte
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import type { Layer } from '../../../types.js';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
layer: Layer;
|
|
6
|
+
}
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<script lang="ts">
|
|
10
|
+
import RotateIcon from 'lucide-svelte/icons/refresh-cw';
|
|
11
|
+
import { getPresentationEditorContext } from '../../../presentation-editor.svelte.js';
|
|
12
|
+
|
|
13
|
+
let { layer = $bindable() }: Props = $props();
|
|
14
|
+
|
|
15
|
+
const editor = getPresentationEditorContext();
|
|
16
|
+
|
|
17
|
+
let element: HTMLElement | null = $state(null);
|
|
18
|
+
|
|
19
|
+
const onMouseDown = (e: MouseEvent) => {
|
|
20
|
+
e.preventDefault();
|
|
21
|
+
e.stopPropagation();
|
|
22
|
+
console.log('rotate', 'mousedown', layer.id);
|
|
23
|
+
editor.activeAction = {
|
|
24
|
+
type: 'rotate',
|
|
25
|
+
cursor: 'cursor-grabbing',
|
|
26
|
+
clientX: e.clientX,
|
|
27
|
+
clientY: e.clientY,
|
|
28
|
+
layer: { ...layer },
|
|
29
|
+
};
|
|
30
|
+
addEventListener('mousemove', onMouseMove);
|
|
31
|
+
addEventListener('mouseup', onMouseUp);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const onMouseUp = () => {
|
|
35
|
+
console.log('rotate', 'mouseup', layer.id);
|
|
36
|
+
if (editor.activeAction && editor.activeAction.layer.rotate !== layer.rotate) {
|
|
37
|
+
if (editor.checkIfLayerInBounds(layer)) {
|
|
38
|
+
editor.historyPush({
|
|
39
|
+
type: 'layer',
|
|
40
|
+
layer: { id: layer.id, type: layer.type },
|
|
41
|
+
undo: { rotate: editor.activeAction.layer.rotate },
|
|
42
|
+
redo: { rotate: layer.rotate },
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
editor.activeAction = null;
|
|
47
|
+
removeEventListener('mousemove', onMouseMove);
|
|
48
|
+
removeEventListener('mouseup', onMouseUp);
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const onMouseMove = (e: MouseEvent) => {
|
|
52
|
+
if (!editor.activeAction || !element) return;
|
|
53
|
+
|
|
54
|
+
const slideClientRect = element.closest('[data-slide-container]')?.getBoundingClientRect();
|
|
55
|
+
if (!slideClientRect) return;
|
|
56
|
+
|
|
57
|
+
const { x: slideX, y: slideY } = slideClientRect;
|
|
58
|
+
|
|
59
|
+
const { width, height, x, y } = editor.activeAction.layer;
|
|
60
|
+
const scale = editor.activeAction.layer.scale || 1;
|
|
61
|
+
|
|
62
|
+
// Calculate the center of the layer
|
|
63
|
+
const centerX = slideX + x * editor.zoom + (width * scale * editor.zoom) / 2;
|
|
64
|
+
const centerY = slideY + y * editor.zoom + (height * scale * editor.zoom) / 2;
|
|
65
|
+
|
|
66
|
+
// Calculate the current angle based on the current mouse position relative to the center of the layer
|
|
67
|
+
const currentAngle = Math.atan2(
|
|
68
|
+
(e.clientY - centerY) / editor.zoom,
|
|
69
|
+
(e.clientX - centerX) / editor.zoom,
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
// Convert the current angle from radians to degrees and adjust to make 0 degrees the initial position
|
|
73
|
+
let rotate = ((currentAngle * 180) / Math.PI - 90 + 360) % 360;
|
|
74
|
+
|
|
75
|
+
// Add snapping
|
|
76
|
+
const snapThreshold = 1;
|
|
77
|
+
const remainder = rotate % 45;
|
|
78
|
+
if (remainder < snapThreshold || remainder > 45 - snapThreshold) {
|
|
79
|
+
rotate = Math.round(rotate / 45) * 45;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Normalize the rotation to be between -180 and 180 degrees
|
|
83
|
+
if (rotate >= 180) rotate -= 360;
|
|
84
|
+
|
|
85
|
+
// Apply the new rotation to the layer
|
|
86
|
+
layer.rotate = rotate;
|
|
87
|
+
editor.activeAction.tooltip = { x: e.clientX, y: e.clientY, text: `${Math.round(rotate)}°` };
|
|
88
|
+
};
|
|
89
|
+
</script>
|
|
90
|
+
|
|
91
|
+
<div bind:this={element} class="absolute top-full flex p-6">
|
|
92
|
+
<div class="group pointer-events-none relative m-1 flex h-8 w-8 items-center justify-center">
|
|
93
|
+
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
|
94
|
+
<div
|
|
95
|
+
class="pointer-events-auto absolute h-6 w-6 cursor-grab rounded-full"
|
|
96
|
+
onmousedown={onMouseDown}
|
|
97
|
+
></div>
|
|
98
|
+
<div
|
|
99
|
+
class="flex h-6 w-6 items-center justify-center rounded-full bg-white transition-colors group-hover:bg-purple-500 group-active:bg-purple-500"
|
|
100
|
+
style:box-shadow="0 0 4px 1px rgba(57,76,96,.15), 0 0 0 1px rgba(43,59,74,.3)"
|
|
101
|
+
>
|
|
102
|
+
<RotateIcon class="h-4 w-4" />
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|