@solostylist/ui-kit 1.0.230 → 2.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/dist/colors-CNjL5fhq.js +180 -0
- package/dist/gradients-DSnBONEQ.js +199 -0
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.js +4 -5
- package/dist/hooks/use-countdown.js +69 -47
- package/dist/main.d.ts +7 -2
- package/dist/main.js +2 -0
- package/dist/palettes/index.d.ts +11 -0
- package/dist/palettes/index.js +2 -0
- package/dist/palettes-CJLuEy1m.js +1765 -0
- package/dist/s-accordion/index.d.ts +2 -1
- package/dist/s-accordion/index.js +1 -1
- package/dist/s-accordion/s-accordion.d.ts +39 -19
- package/dist/s-accordion/s-accordion.js +70 -2
- package/dist/s-action-overlay/index.d.ts +2 -1
- package/dist/s-action-overlay/s-action-overlay.d.ts +52 -51
- package/dist/s-action-overlay/s-action-overlay.js +106 -107
- package/dist/s-autocomplete/index.d.ts +2 -1
- package/dist/s-autocomplete/s-autocomplete.d.ts +25 -8
- package/dist/s-autocomplete/s-autocomplete.js +33 -22
- package/dist/s-avatar/index.d.ts +2 -1
- package/dist/s-avatar/s-avatar.d.ts +36 -18
- package/dist/s-avatar/s-avatar.js +53 -27
- package/dist/s-blur-text/index.d.ts +1 -0
- package/dist/s-blur-text/s-blur-text.d.ts +3 -3
- package/dist/s-blur-text/s-blur-text.js +68 -40
- package/dist/s-brand-logo/index.d.ts +3 -0
- package/dist/s-brand-logo/index.js +2 -0
- package/dist/s-brand-logo/s-brand-logo.d.ts +15 -0
- package/dist/s-brand-logo/s-brand-logo.js +2 -0
- package/dist/s-brand-logo-CErW9Slg.js +123 -0
- package/dist/s-breadcrumbs/index.d.ts +2 -1
- package/dist/s-breadcrumbs/s-breadcrumbs.d.ts +5 -1
- package/dist/s-breadcrumbs/s-breadcrumbs.js +71 -36
- package/dist/s-button/s-button.d.ts +3 -5
- package/dist/s-button/s-button.js +3 -9
- package/dist/s-carousel/index.d.ts +3 -1
- package/dist/s-carousel/index.js +1 -1
- package/dist/s-carousel/s-carousel.d.ts +18 -8
- package/dist/s-carousel/s-carousel.js +184 -2
- package/dist/s-category-card/index.d.ts +2 -1
- package/dist/s-category-card/s-category-card.d.ts +38 -51
- package/dist/s-category-card/s-category-card.js +88 -56
- package/dist/s-chat-input/index.d.ts +2 -1
- package/dist/s-chat-input/index.js +1 -1
- package/dist/s-chat-input/s-chat-input.d.ts +41 -6
- package/dist/s-chat-input/s-chat-input.js +398 -2
- package/dist/s-chat-message/index.d.ts +2 -1
- package/dist/s-chat-message/index.js +1 -1
- package/dist/s-chat-message/s-chat-message.d.ts +6 -3
- package/dist/s-chat-message/s-chat-message.js +314 -2
- package/dist/s-checkbox/index.d.ts +2 -1
- package/dist/s-checkbox/s-checkbox.d.ts +33 -11
- package/dist/s-checkbox/s-checkbox.js +44 -34
- package/dist/s-chip/s-chip.d.ts +3 -5
- package/dist/s-chip/s-chip.js +3 -9
- package/dist/s-chips/index.d.ts +2 -1
- package/dist/s-chips/index.js +1 -1
- package/dist/s-chips/s-chips.d.ts +50 -28
- package/dist/s-chips/s-chips.js +174 -2
- package/dist/s-code-block/index.d.ts +3 -1
- package/dist/s-code-block/index.js +1 -1
- package/dist/s-code-block/s-code-block.d.ts +30 -28
- package/dist/s-code-block/s-code-block.js +103 -2
- package/dist/s-comment-message/index.d.ts +1 -0
- package/dist/s-comment-message/index.js +1 -1
- package/dist/s-comment-message/s-comment-message.d.ts +6 -8
- package/dist/s-comment-message/s-comment-message.js +189 -2
- package/dist/s-copyable-text/index.d.ts +2 -1
- package/dist/s-copyable-text/s-copyable-text.d.ts +34 -17
- package/dist/s-copyable-text/s-copyable-text.js +55 -33
- package/dist/s-countdown/index.d.ts +4 -3
- package/dist/s-countdown/index.js +1 -1
- package/dist/s-countdown/s-count-box.d.ts +39 -32
- package/dist/s-countdown/s-count-box.js +104 -87
- package/dist/s-countdown/s-countdown.d.ts +3 -10
- package/dist/s-countdown/s-countdown.js +86 -70
- package/dist/s-data-table/index.d.ts +2 -1
- package/dist/s-data-table/index.js +1 -1
- package/dist/s-data-table/s-data-table.d.ts +15 -7
- package/dist/s-data-table/s-data-table.js +213 -2
- package/dist/s-date-picker/index.d.ts +3 -1
- package/dist/s-date-picker/index.js +1 -1
- package/dist/s-date-picker/picker-action-bar.js +43 -42
- package/dist/s-date-picker/s-date-picker.d.ts +9 -5
- package/dist/s-date-picker/s-date-picker.js +106 -2
- package/dist/s-datetime-picker/index.d.ts +3 -1
- package/dist/s-datetime-picker/index.js +1 -1
- package/dist/s-datetime-picker/s-datetime-picker.d.ts +9 -5
- package/dist/s-datetime-picker/s-datetime-picker.js +108 -2
- package/dist/s-dialog/index.d.ts +2 -1
- package/dist/s-dialog/s-dialog.d.ts +44 -22
- package/dist/s-dialog/s-dialog.js +76 -39
- package/dist/s-dialog-confirm/index.d.ts +2 -1
- package/dist/s-dialog-confirm/s-dialog-confirm.d.ts +46 -62
- package/dist/s-dialog-confirm/s-dialog-confirm.js +89 -71
- package/dist/s-dialog-message/index.d.ts +2 -1
- package/dist/s-dialog-message/s-dialog-message.d.ts +34 -51
- package/dist/s-dialog-message/s-dialog-message.js +74 -67
- package/dist/s-empty/index.d.ts +1 -0
- package/dist/s-empty/s-empty.d.ts +5 -10
- package/dist/s-empty/s-empty.js +27 -9
- package/dist/s-file-dropzone/index.d.ts +3 -1
- package/dist/s-file-dropzone/index.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.d.ts +49 -26
- package/dist/s-file-dropzone/s-file-dropzone.js +219 -2
- package/dist/s-file-icon/index.d.ts +1 -0
- package/dist/s-file-icon/s-file-icon.d.ts +3 -5
- package/dist/s-file-icon/s-file-icon.js +118 -98
- package/dist/s-flex-box/index.d.ts +2 -1
- package/dist/s-flex-box/s-flex-box.d.ts +12 -14
- package/dist/s-flex-box/s-flex-box.js +19 -19
- package/dist/s-form/index.d.ts +2 -1
- package/dist/s-form/s-form.d.ts +33 -18
- package/dist/s-form/s-form.js +50 -21
- package/dist/s-gallery/gallery-grid-item.d.ts +3 -1
- package/dist/s-gallery/gallery-grid-item.js +128 -99
- package/dist/s-gallery/gallery-layout.d.ts +1 -1
- package/dist/s-gallery/gallery-media-item.d.ts +3 -3
- package/dist/s-gallery/gallery-media-item.js +45 -50
- package/dist/s-gallery/index.d.ts +2 -1
- package/dist/s-gallery/s-gallery.d.ts +14 -3
- package/dist/s-gallery/s-gallery.js +70 -51
- package/dist/s-glow-button/index.d.ts +2 -1
- package/dist/s-glow-button/index.js +1 -1
- package/dist/s-glow-button/s-glow-button.d.ts +14 -9
- package/dist/s-glow-button/s-glow-button.js +46 -25
- package/dist/s-gradient-icon/index.d.ts +2 -1
- package/dist/s-gradient-icon/s-gradient-icon.d.ts +17 -9
- package/dist/s-gradient-icon/s-gradient-icon.js +81 -69
- package/dist/s-icon-button/index.d.ts +2 -1
- package/dist/s-icon-button/s-icon-button.d.ts +31 -13
- package/dist/s-icon-button/s-icon-button.js +47 -9
- package/dist/s-image-comparison/index.d.ts +2 -1
- package/dist/s-image-comparison/index.js +1 -1
- package/dist/s-image-comparison/s-image-comparison.d.ts +13 -3
- package/dist/s-image-comparison/s-image-comparison.js +195 -98
- package/dist/{s-image-modal → s-image-viewer}/default-media-item.d.ts +0 -1
- package/dist/s-image-viewer/default-media-item.js +30 -0
- package/dist/s-image-viewer/image-viewer-thumbnail-dock.d.ts +12 -0
- package/dist/s-image-viewer/image-viewer-thumbnail-dock.js +102 -0
- package/dist/s-image-viewer/index.d.ts +4 -0
- package/dist/s-image-viewer/index.js +3 -0
- package/dist/s-image-viewer/s-image-viewer.d.ts +4 -0
- package/dist/s-image-viewer/s-image-viewer.js +266 -0
- package/dist/{s-image-modal → s-image-viewer}/types.d.ts +27 -10
- package/dist/s-image-viewer/use-image-viewer-navigation.d.ts +29 -0
- package/dist/s-image-viewer/use-image-viewer-navigation.js +75 -0
- package/dist/s-label/index.d.ts +2 -1
- package/dist/s-label/s-label.d.ts +35 -18
- package/dist/s-label/s-label.js +64 -23
- package/dist/s-language-switcher/index.d.ts +2 -1
- package/dist/s-language-switcher/index.js +2 -2
- package/dist/s-language-switcher/s-language-switcher.d.ts +25 -18
- package/dist/s-language-switcher/s-language-switcher.js +150 -2
- package/dist/s-lazy-image/index.d.ts +2 -1
- package/dist/s-lazy-image/index.js +1 -1
- package/dist/s-lazy-image/s-lazy-image.d.ts +45 -24
- package/dist/s-lazy-image/s-lazy-image.js +77 -40
- package/dist/s-link/s-link.d.ts +4 -33
- package/dist/s-link/s-link.js +3 -35
- package/dist/s-localization-provider/index.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.d.ts +3 -5
- package/dist/s-localization-provider/s-localization-provider.js +12 -2
- package/dist/s-moving-border/index.d.ts +2 -1
- package/dist/s-moving-border/s-moving-border.d.ts +8 -2
- package/dist/s-moving-border/s-moving-border.js +100 -71
- package/dist/s-nav-item/index.d.ts +2 -1
- package/dist/s-nav-item/s-nav-item.d.ts +39 -31
- package/dist/s-nav-item/s-nav-item.js +65 -66
- package/dist/s-nav-items/index.d.ts +2 -1
- package/dist/s-nav-items/s-nav-items.d.ts +13 -10
- package/dist/s-nav-items/s-nav-items.js +95 -79
- package/dist/s-no-ssr/s-no-ssr.d.ts +4 -16
- package/dist/s-no-ssr/s-no-ssr.js +3 -13
- package/dist/s-overlay-scrollbar/index.d.ts +3 -1
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.d.ts +10 -8
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +28 -16
- package/dist/s-pagination/index.d.ts +2 -1
- package/dist/s-pagination/s-pagination.d.ts +14 -49
- package/dist/s-pagination/s-pagination.js +70 -35
- package/dist/s-pagination/types.d.ts +23 -1
- package/dist/s-pagination/types.js +8 -4
- package/dist/s-pixel-reveal/index.d.ts +2 -1
- package/dist/s-pixel-reveal/s-pixel-reveal.d.ts +10 -2
- package/dist/s-pixel-reveal/s-pixel-reveal.js +124 -86
- package/dist/s-quantity-input/index.d.ts +3 -0
- package/dist/s-quantity-input/index.js +2 -0
- package/dist/s-quantity-input/s-quantity-input.d.ts +114 -0
- package/dist/s-quantity-input/s-quantity-input.js +246 -0
- package/dist/s-radial-pulse-animate/index.d.ts +2 -1
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.d.ts +7 -7
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +50 -52
- package/dist/s-rating/s-rating.d.ts +3 -5
- package/dist/s-rating/s-rating.js +3 -9
- package/dist/s-review/index.d.ts +2 -1
- package/dist/s-review/index.js +1 -1
- package/dist/s-review/s-review.d.ts +25 -10
- package/dist/s-review/s-review.js +272 -2
- package/dist/s-scroll-reveal/index.d.ts +3 -1
- package/dist/s-scroll-reveal/s-scroll-reveal.d.ts +14 -6
- package/dist/s-scroll-reveal/s-scroll-reveal.js +78 -60
- package/dist/s-scroll-to-top/index.d.ts +2 -1
- package/dist/s-scroll-to-top/s-scroll-to-top.d.ts +15 -16
- package/dist/s-scroll-to-top/s-scroll-to-top.js +55 -28
- package/dist/s-scroll-velocity/index.d.ts +2 -1
- package/dist/s-scroll-velocity/s-scroll-velocity.d.ts +11 -7
- package/dist/s-scroll-velocity/s-scroll-velocity.js +27 -10
- package/dist/s-scroll-velocity/scroll-velocity-container.d.ts +2 -2
- package/dist/s-scroll-velocity/scroll-velocity-container.js +18 -18
- package/dist/s-scroll-velocity/scroll-velocity-row.d.ts +5 -3
- package/dist/s-scroll-velocity/scroll-velocity-row.js +81 -67
- package/dist/s-select/index.d.ts +2 -1
- package/dist/s-select/index.js +1 -1
- package/dist/s-select/s-select.d.ts +25 -11
- package/dist/s-select/s-select.js +201 -2
- package/dist/s-select-list/index.d.ts +2 -1
- package/dist/s-select-list/s-select-list.d.ts +57 -18
- package/dist/s-select-list/s-select-list.js +156 -32
- package/dist/s-skeleton/index.d.ts +2 -1
- package/dist/s-skeleton/s-skeleton.d.ts +21 -22
- package/dist/s-skeleton/s-skeleton.js +40 -39
- package/dist/s-snackbar-message/index.d.ts +2 -1
- package/dist/s-snackbar-message/s-snackbar-message.d.ts +40 -51
- package/dist/s-snackbar-message/s-snackbar-message.js +81 -44
- package/dist/s-spotlight-cursor/index.d.ts +2 -1
- package/dist/s-spotlight-cursor/s-spotlight-cursor.d.ts +23 -20
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +83 -58
- package/dist/s-status-illustration/index.d.ts +3 -0
- package/dist/s-status-illustration/index.js +2 -0
- package/dist/s-status-illustration/s-status-illustration.d.ts +57 -0
- package/dist/s-status-illustration/s-status-illustration.js +429 -0
- package/dist/s-stripe/index.d.ts +6 -1
- package/dist/s-stripe/s-stripe-cvc.d.ts +3 -1
- package/dist/s-stripe/s-stripe-expiry.d.ts +3 -1
- package/dist/s-stripe/s-stripe-number.d.ts +3 -1
- package/dist/s-stripe/s-stripe.d.ts +10 -3
- package/dist/s-stripe/s-stripe.js +53 -27
- package/dist/s-stripe/stripe-input.js +48 -20
- package/dist/s-switch/index.d.ts +2 -1
- package/dist/s-switch/s-switch.d.ts +33 -11
- package/dist/s-switch/s-switch.js +44 -34
- package/dist/s-tabs/index.d.ts +5 -3
- package/dist/s-tabs/index.js +5 -4
- package/dist/s-tabs/s-tab-panel.d.ts +12 -10
- package/dist/s-tabs/s-tab-panel.js +26 -19
- package/dist/s-tabs/s-tab.d.ts +3 -2
- package/dist/s-tabs/s-tab.js +3 -9
- package/dist/s-tabs/s-tabs.d.ts +46 -32
- package/dist/s-tabs/s-tabs.js +76 -37
- package/dist/s-tabs/tab-ids.d.ts +3 -0
- package/dist/s-tabs/tab-ids.js +9 -0
- package/dist/s-text-editor/index.d.ts +4 -2
- package/dist/s-text-editor/index.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.d.ts +9 -2
- package/dist/s-text-editor/s-text-editor-toolbar.js +216 -2
- package/dist/s-text-editor/s-text-editor.d.ts +7 -2
- package/dist/s-text-editor/s-text-editor.js +62 -39
- package/dist/s-text-field/index.d.ts +2 -1
- package/dist/s-text-field/index.js +1 -1
- package/dist/s-text-field/s-text-field.d.ts +6 -11
- package/dist/s-text-field/s-text-field.js +52 -2
- package/dist/s-text-shimmer/index.d.ts +2 -1
- package/dist/s-text-shimmer/s-text-shimmer.d.ts +16 -2
- package/dist/s-text-shimmer/s-text-shimmer.js +48 -25
- package/dist/s-text-truncation/index.d.ts +2 -1
- package/dist/s-text-truncation/s-text-truncation.d.ts +38 -14
- package/dist/s-text-truncation/s-text-truncation.js +105 -58
- package/dist/s-theme-demo/index.d.ts +2 -1
- package/dist/s-theme-demo/index.js +1 -1
- package/dist/s-theme-demo/s-theme-demo.d.ts +2 -12
- package/dist/s-theme-demo/s-theme-demo.js +77 -2
- package/dist/s-theme-demo/theme-demo-color-palette-section.d.ts +5 -0
- package/dist/s-theme-demo/theme-demo-color-palette-section.js +185 -0
- package/dist/s-theme-demo/theme-demo-color-ramps-section.d.ts +5 -0
- package/dist/s-theme-demo/theme-demo-color-ramps-section.js +125 -0
- package/dist/s-theme-demo/theme-demo-components-section.d.ts +2 -0
- package/dist/s-theme-demo/theme-demo-components-section.js +265 -0
- package/dist/s-theme-demo/theme-demo-data.d.ts +7 -0
- package/dist/s-theme-demo/theme-demo-data.js +45 -0
- package/dist/s-theme-demo/theme-demo-interactive-section.d.ts +2 -0
- package/dist/s-theme-demo/theme-demo-interactive-section.js +95 -0
- package/dist/s-theme-demo/theme-demo-shadow-section.d.ts +5 -0
- package/dist/s-theme-demo/theme-demo-shadow-section.js +52 -0
- package/dist/s-theme-demo/theme-demo-typography-section.d.ts +5 -0
- package/dist/s-theme-demo/theme-demo-typography-section.js +129 -0
- package/dist/s-theme-demo/types.d.ts +17 -0
- package/dist/s-theme-demo/types.js +0 -0
- package/dist/s-theme-demo/utils.d.ts +2 -0
- package/dist/s-theme-demo/utils.js +9 -0
- package/dist/s-theme-provider/index.d.ts +1 -0
- package/dist/s-theme-provider/s-theme-provider.js +30 -31
- package/dist/s-theme-switch/index.d.ts +2 -1
- package/dist/s-theme-switch/index.js +1 -1
- package/dist/s-theme-switch/s-theme-switch.d.ts +6 -4
- package/dist/s-theme-switch/s-theme-switch.js +60 -2
- package/dist/s-tip/index.d.ts +2 -1
- package/dist/s-tip/index.js +1 -1
- package/dist/s-tip/s-tip.d.ts +29 -11
- package/dist/s-tip/s-tip.js +61 -2
- package/dist/s-toggle-button/index.d.ts +2 -0
- package/dist/s-toggle-button/index.js +2 -0
- package/dist/s-toggle-button/s-toggle-button.d.ts +6 -0
- package/dist/s-toggle-button/s-toggle-button.js +5 -0
- package/dist/s-tool-bar/index.d.ts +2 -1
- package/dist/s-tool-bar/s-tool-bar.d.ts +2 -5
- package/dist/s-tool-bar/s-tool-bar.js +101 -72
- package/dist/s-tool-bar/tool-bar-action-buttons.d.ts +3 -3
- package/dist/s-tool-bar/tool-bar-action-buttons.js +55 -2
- package/dist/s-tool-bar/tool-bar-image-input.d.ts +2 -2
- package/dist/s-tool-bar/tool-bar-image-input.js +148 -2
- package/dist/s-tool-bar/tool-bar-inputs.js +139 -112
- package/dist/s-tool-bar/types.d.ts +45 -35
- package/dist/s-tool-bar/utils.d.ts +1 -0
- package/dist/s-tool-bar/utils.js +10 -7
- package/dist/s-tool-item/index.d.ts +2 -1
- package/dist/s-tool-item/s-tool-item.d.ts +35 -30
- package/dist/s-tool-item/s-tool-item.js +111 -56
- package/dist/s-two-pane-layout/index.d.ts +3 -1
- package/dist/s-two-pane-layout/s-two-pane-layout.d.ts +56 -50
- package/dist/s-two-pane-layout/s-two-pane-layout.js +154 -85
- package/dist/s-typewriter-text/index.d.ts +2 -1
- package/dist/s-typewriter-text/s-typewriter-text.d.ts +16 -5
- package/dist/s-typewriter-text/s-typewriter-text.js +50 -27
- package/dist/s-zoom-image/index.d.ts +2 -1
- package/dist/s-zoom-image/s-zoom-image.d.ts +14 -5
- package/dist/s-zoom-image/s-zoom-image.js +65 -44
- package/dist/theme/component-augmentation.d.ts +265 -0
- package/dist/theme/component-augmentation.js +0 -0
- package/dist/theme/components/accordion-summary.d.ts +41 -38
- package/dist/theme/components/accordion-summary.js +7 -7
- package/dist/theme/components/accordion.d.ts +21 -13
- package/dist/theme/components/accordion.js +15 -12
- package/dist/theme/components/action-styles.d.ts +1075 -0
- package/dist/theme/components/action-styles.js +71 -0
- package/dist/theme/components/alert.d.ts +169 -140
- package/dist/theme/components/alert.js +15 -4
- package/dist/theme/components/app-bar.d.ts +2 -2
- package/dist/theme/components/autocomplete.js +43 -2
- package/dist/theme/components/avatar.js +9 -2
- package/dist/theme/components/backdrop.js +1 -1
- package/dist/theme/components/button-base.d.ts +0 -5
- package/dist/theme/components/button-base.js +1 -10
- package/dist/theme/components/button.d.ts +111 -5275
- package/dist/theme/components/button.js +58 -74
- package/dist/theme/components/card.d.ts +69 -69
- package/dist/theme/components/card.js +11 -10
- package/dist/theme/components/checkbox.d.ts +34 -34
- package/dist/theme/components/checkbox.js +90 -2
- package/dist/theme/components/chip.d.ts +1 -7
- package/dist/theme/components/chip.js +91 -67
- package/dist/theme/components/components.js +22 -22
- package/dist/theme/components/date-calendar.js +1 -0
- package/dist/theme/components/day-calendar.js +1 -0
- package/dist/theme/components/dialog-title.d.ts +2 -2
- package/dist/theme/components/field-label-styles.d.ts +9 -0
- package/dist/theme/components/field-label-styles.js +19 -0
- package/dist/theme/components/form-control.d.ts +1 -1
- package/dist/theme/components/form-control.js +1 -1
- package/dist/theme/components/form-label.d.ts +2 -2
- package/dist/theme/components/form-label.js +1 -1
- package/dist/theme/components/icon-button.d.ts +85 -5228
- package/dist/theme/components/icon-button.js +27 -47
- package/dist/theme/components/input-adornment.d.ts +2 -2
- package/dist/theme/components/linear-progress.d.ts +35 -35
- package/dist/theme/components/linear-progress.js +5 -6
- package/dist/theme/components/link.d.ts +2 -2
- package/dist/theme/components/link.js +7 -9
- package/dist/theme/components/list-item-button.d.ts +120 -46
- package/dist/theme/components/list-item-button.js +27 -20
- package/dist/theme/components/list-item.d.ts +61 -24
- package/dist/theme/components/list-item.js +7 -7
- package/dist/theme/components/list-subheader.d.ts +2 -2
- package/dist/theme/components/month-calendar.d.ts +1049 -6
- package/dist/theme/components/month-calendar.js +25 -15
- package/dist/theme/components/multi-section-digital-clock-section.d.ts +2 -0
- package/dist/theme/components/multi-section-digital-clock-section.js +16 -17
- package/dist/theme/components/outlined-input.d.ts +42 -8
- package/dist/theme/components/outlined-input.js +41 -30
- package/dist/theme/components/pagination-item.d.ts +1038 -1043
- package/dist/theme/components/pagination-item.js +21 -53
- package/dist/theme/components/pagination.js +2 -2
- package/dist/theme/components/picker-day.d.ts +1034 -5
- package/dist/theme/components/picker-day.js +12 -13
- package/dist/theme/components/pickers-arrow-switcher.js +1 -0
- package/dist/theme/components/pickers-calendar-header.d.ts +51 -19
- package/dist/theme/components/pickers-calendar-header.js +49 -25
- package/dist/theme/components/rating.d.ts +12 -0
- package/dist/theme/components/rating.js +4 -1
- package/dist/theme/components/select.js +6 -6
- package/dist/theme/components/slider.d.ts +4 -4
- package/dist/theme/components/step-icon.d.ts +34 -34
- package/dist/theme/components/step-icon.js +9 -10
- package/dist/theme/components/step-label.d.ts +36 -36
- package/dist/theme/components/switch.d.ts +36 -36
- package/dist/theme/components/switch.js +48 -2
- package/dist/theme/components/tab.d.ts +14 -1015
- package/dist/theme/components/tab.js +18 -17
- package/dist/theme/components/table-pagination.js +1 -1
- package/dist/theme/components/tabs.d.ts +20 -1030
- package/dist/theme/components/tabs.js +14 -14
- package/dist/theme/components/toggle-button-group.d.ts +1 -1013
- package/dist/theme/components/toggle-button-group.js +3 -1
- package/dist/theme/components/toggle-button.d.ts +1135 -1014
- package/dist/theme/components/toggle-button.js +93 -2
- package/dist/theme/components/year-calendar.d.ts +1051 -6
- package/dist/theme/components/year-calendar.js +39 -29
- package/dist/theme/optional-component-augmentations/s-carousel.d.ts +14 -0
- package/dist/theme/optional-component-augmentations/s-carousel.js +0 -0
- package/dist/theme/optional-component-augmentations/s-code-block.d.ts +14 -0
- package/dist/theme/optional-component-augmentations/s-code-block.js +0 -0
- package/dist/theme/optional-component-augmentations/s-date-picker.d.ts +14 -0
- package/dist/theme/optional-component-augmentations/s-date-picker.js +0 -0
- package/dist/theme/optional-component-augmentations/s-datetime-picker.d.ts +14 -0
- package/dist/theme/optional-component-augmentations/s-datetime-picker.js +0 -0
- package/dist/theme/optional-component-augmentations/s-file-dropzone.d.ts +14 -0
- package/dist/theme/optional-component-augmentations/s-file-dropzone.js +0 -0
- package/dist/theme/optional-component-augmentations/s-overlay-scrollbar.d.ts +14 -0
- package/dist/theme/optional-component-augmentations/s-overlay-scrollbar.js +0 -0
- package/dist/theme/optional-component-augmentations/s-scroll-reveal.d.ts +14 -0
- package/dist/theme/optional-component-augmentations/s-scroll-reveal.js +0 -0
- package/dist/theme/optional-component-augmentations/s-stripe.d.ts +14 -0
- package/dist/theme/optional-component-augmentations/s-stripe.js +0 -0
- package/dist/theme/optional-component-augmentations/s-text-editor.d.ts +18 -0
- package/dist/theme/optional-component-augmentations/s-text-editor.js +0 -0
- package/dist/theme/optional-component-augmentations/s-two-pane-layout.d.ts +14 -0
- package/dist/theme/optional-component-augmentations/s-two-pane-layout.js +0 -0
- package/dist/theme/theme-primitives.d.ts +51 -8
- package/dist/theme/theme-primitives.js +3 -2
- package/dist/theme-primitives-CRfnMsNy.js +254 -0
- package/dist/utils/canvas-color.d.ts +7 -0
- package/dist/utils/canvas-color.js +62 -0
- package/dist/utils/dayjs.js +9 -146
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +6 -3
- package/dist/utils/slots.d.ts +12 -0
- package/dist/utils/slots.js +6 -0
- package/dist/utils/sx.d.ts +11 -0
- package/dist/utils/sx.js +4 -0
- package/package.json +1 -1
- package/dist/ArrowUpward-CNiENJp2.js +0 -6
- package/dist/Box-BlmynALm.js +0 -45
- package/dist/ButtonBase-BDefit5I.js +0 -720
- package/dist/ChevronRight-gZJ3kc6N.js +0 -6
- package/dist/Close-CJu3iF1p.js +0 -6
- package/dist/Collapse-JUd84Z9O.js +0 -261
- package/dist/ContentCopy-BMQ2JTA0.js +0 -6
- package/dist/Download-SNal6U7j.js +0 -6
- package/dist/ExpandMore-DIsT5FOp.js +0 -6
- package/dist/Favorite-CbvuQfe4.js +0 -6
- package/dist/FormControl-DsRIRfTs.js +0 -686
- package/dist/InfoOutlined-BCzG-5py.js +0 -6
- package/dist/MenuItem-IOMcBScJ.js +0 -220
- package/dist/MenuList-vtqACjea.js +0 -403
- package/dist/Modal-CLdC2-Th.js +0 -1027
- package/dist/Paper-CPC6sMxx.js +0 -133
- package/dist/Popover-ZneFWo2r.js +0 -333
- package/dist/Stack-BQkLmLFp.js +0 -157
- package/dist/Typography-CZ_MYa-E.js +0 -166
- package/dist/UnfoldMoreRounded-tvqQS6eb.js +0 -6
- package/dist/assets/stripe-input.css +0 -1
- package/dist/autocomplete-Dd4zjpaF.js +0 -43
- package/dist/avatar-DFQ5F7pY.js +0 -10
- package/dist/buttonBaseClasses-BVDyR-hz.js +0 -13
- package/dist/checkbox-DC-OoGvh.js +0 -74
- package/dist/checkboxClasses-DANc9lnq.js +0 -18
- package/dist/chunk-C_CI6nMA.js +0 -13
- package/dist/clsx-Bv8WXdlr.js +0 -34
- package/dist/createSimplePaletteValueFilter-5v48HHyU.js +0 -14
- package/dist/createSvgIcon-HW-tbFcL.js +0 -153
- package/dist/createTheme-Bnw5w28O.js +0 -2506
- package/dist/defaultTheme-Bi3OTfLN.js +0 -5
- package/dist/extends-DM-C9PwL.js +0 -12
- package/dist/formLabelClasses-LXZqWZfM.js +0 -18
- package/dist/generateUtilityClass-tRYNDrlH.js +0 -34
- package/dist/generateUtilityClasses-XrPHiTcM.js +0 -10
- package/dist/hooks/use-is-passed-position.d.ts +0 -1
- package/dist/hooks/use-is-passed-position.js +0 -21
- package/dist/iconButtonClasses-LyjwljJq.js +0 -27
- package/dist/inputAdornmentClasses-ZoGTcUz5.js +0 -19
- package/dist/memoTheme-QMocAblm.js +0 -150
- package/dist/mergeSlotProps-slENzJO5.js +0 -45
- package/dist/monthCalendarClasses-BLfBep-t.js +0 -14
- package/dist/objectWithoutPropertiesLoose-kj3TmhoA.js +0 -12
- package/dist/outlinedInputClasses-DPwt_pSZ.js +0 -38
- package/dist/resolveProps-DrnBChYC.js +0 -30
- package/dist/s-accordion-xPDelTvP.js +0 -453
- package/dist/s-carousel-CvmWl6Sc.js +0 -1324
- package/dist/s-chat-input-BHMymKij.js +0 -352
- package/dist/s-chat-message-C-d9amiC.js +0 -270
- package/dist/s-chips-CAC_vVd0.js +0 -99
- package/dist/s-code-block-DEojINTt.js +0 -630
- package/dist/s-comment-message-Dum0P6de.js +0 -169
- package/dist/s-data-table-DfGYIIvn.js +0 -951
- package/dist/s-date-picker-C06rlE6_.js +0 -640
- package/dist/s-datetime-picker-DnIK-QnQ.js +0 -3837
- package/dist/s-error/index.d.ts +0 -1
- package/dist/s-error/index.js +0 -2
- package/dist/s-error/s-error.d.ts +0 -6
- package/dist/s-error/s-error.js +0 -33
- package/dist/s-error-layout/index.d.ts +0 -2
- package/dist/s-error-layout/index.js +0 -2
- package/dist/s-error-layout/s-error-layout.d.ts +0 -58
- package/dist/s-error-layout/s-error-layout.js +0 -81
- package/dist/s-file-dropzone-C4_hCsN8.js +0 -139
- package/dist/s-image-modal/default-media-item.js +0 -34
- package/dist/s-image-modal/image-modal-thumbnail-dock.d.ts +0 -11
- package/dist/s-image-modal/image-modal-thumbnail-dock.js +0 -102
- package/dist/s-image-modal/index.d.ts +0 -3
- package/dist/s-image-modal/index.js +0 -3
- package/dist/s-image-modal/s-image-modal.d.ts +0 -4
- package/dist/s-image-modal/s-image-modal.js +0 -2
- package/dist/s-image-modal/use-image-modal-navigation.d.ts +0 -29
- package/dist/s-image-modal/use-image-modal-navigation.js +0 -57
- package/dist/s-image-modal-D-Jh-5b3.js +0 -243
- package/dist/s-item-not-found/index.d.ts +0 -2
- package/dist/s-item-not-found/index.js +0 -2
- package/dist/s-item-not-found/s-item-not-found.d.ts +0 -20
- package/dist/s-item-not-found/s-item-not-found.js +0 -243
- package/dist/s-language-switcher-B96dUknj.js +0 -192
- package/dist/s-localization-provider-l5J7myJJ.js +0 -519
- package/dist/s-review-CvTVBxTZ.js +0 -223
- package/dist/s-select-HMWY7frm.js +0 -149
- package/dist/s-text-editor-toolbar-ChtNCg2A.js +0 -2253
- package/dist/s-text-field-DD6nnwwU.js +0 -42
- package/dist/s-theme-demo-Bnv7lPIh.js +0 -867
- package/dist/s-theme-switch-DzXoVmQH.js +0 -37
- package/dist/s-tip-BOGEH1v8.js +0 -34
- package/dist/selectClasses-C-QpiLPi.js +0 -22
- package/dist/styled-BTDmdi4c.js +0 -164
- package/dist/styled-engine-DOxAQ3qw.js +0 -190
- package/dist/svgIconClasses-BtHvkhy5.js +0 -20
- package/dist/switch-BSg1TGWH.js +0 -62
- package/dist/tabClasses-CmFw6sbs.js +0 -20
- package/dist/theme-primitives-CiQYd9Cc.js +0 -431
- package/dist/toggle-button-TmtJ4nSp.js +0 -26
- package/dist/toggle-button-group-BCkdd3Jj.js +0 -26
- package/dist/tool-bar-action-buttons-CSXNDen6.js +0 -50
- package/dist/tool-bar-image-input-IdA6l71Y.js +0 -138
- package/dist/typographyClasses-CiDYRanL.js +0 -31
- package/dist/useControlled-BtZNCHV0.js +0 -5
- package/dist/useControlled-DuSwFVhD.js +0 -29
- package/dist/useEnhancedEffect-Dsu5K7-Z.js +0 -5
- package/dist/useForkRef-yOYCJHzF.js +0 -29
- package/dist/useFormControl-CUs308br.js +0 -18
- package/dist/useMobilePicker-CQA6fYLQ.js +0 -9864
- package/dist/useSlot-IwEDsR9t.js +0 -171
- package/dist/useThemeProps-D4jtjo2I.js +0 -19
- package/dist/utils-CU6O7jrX.js +0 -214
- package/dist/warning-CFMmJJnf.js +0 -111
- package/dist/yearCalendarClasses-DypEe_Vn.js +0 -14
- /package/dist/{s-image-modal → s-image-viewer}/types.js +0 -0
- /package/dist/{utils-B5Rl6Zwv.js → utils-CMeAWSRO.js} +0 -0
|
@@ -1,51 +1,69 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { toSxArray as e } from "../utils/sx.js";
|
|
2
|
+
import { SImageViewer as t } from "../s-image-viewer/s-image-viewer.js";
|
|
3
|
+
import { GalleryGridItem as n } from "./gallery-grid-item.js";
|
|
4
|
+
import { applyLayoutVariant as r, getLayoutDimensions as i } from "./gallery-layout.js";
|
|
5
|
+
import a, { useCallback as o, useEffect as s, useId as c, useState as l } from "react";
|
|
6
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
7
|
+
import { Box as f, Paper as p, Skeleton as m, styled as h, useThemeProps as g } from "@mui/material";
|
|
8
|
+
import { AnimatePresence as _, motion as v, useReducedMotion as y } from "framer-motion";
|
|
8
9
|
//#region lib/s-gallery/s-gallery.tsx
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
var b = h(f, {
|
|
11
|
+
name: "SGallery",
|
|
12
|
+
slot: "Root"
|
|
13
|
+
})({}), x = a.forwardRef(function(a, h) {
|
|
14
|
+
let { "aria-busy": x, getItemLabel: S = (e, t) => e.title ? `View ${e.title}` : `View gallery item ${t + 1}`, loading: C = !1, mediaItems: w, skeletonCount: T = 6, sx: E, variant: D = "masonry", viewerLabel: O = "Gallery media viewer", ...k } = g({
|
|
15
|
+
props: a,
|
|
16
|
+
name: "SGallery"
|
|
17
|
+
}), [A, j] = l(null), [M, N] = l(() => r(w, D)), [P, F] = l(!1), I = c(), L = y();
|
|
18
|
+
s(() => {
|
|
19
|
+
N(r(w, D));
|
|
20
|
+
}, [w, D]);
|
|
21
|
+
let R = Array.from({ length: T }, (e, t) => ({
|
|
22
|
+
id: `${D}-skeleton-${t + 1}`,
|
|
23
|
+
...i(t, D)
|
|
24
|
+
})), z = o(() => F(!0), []), B = o((e, t) => {
|
|
25
|
+
if (F(!1), Math.abs(t) > 50) {
|
|
26
|
+
let n = [...M], r = n[e], i = t > 0 ? Math.min(e + 1, M.length - 1) : Math.max(e - 1, 0);
|
|
27
|
+
n.splice(e, 1), n.splice(i, 0, r), N(n);
|
|
21
28
|
}
|
|
22
|
-
}, [
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
29
|
+
}, [M]), V = {
|
|
30
|
+
isDragging: P,
|
|
31
|
+
loading: C,
|
|
32
|
+
skeletonCount: T,
|
|
33
|
+
variant: D
|
|
34
|
+
};
|
|
35
|
+
return /* @__PURE__ */ d(b, {
|
|
36
|
+
...k,
|
|
37
|
+
"aria-busy": x ?? (C || void 0),
|
|
38
|
+
ownerState: V,
|
|
39
|
+
ref: h,
|
|
40
|
+
sx: [{
|
|
26
41
|
position: "relative",
|
|
42
|
+
width: "100%",
|
|
27
43
|
zIndex: 1
|
|
28
|
-
},
|
|
29
|
-
children: [/* @__PURE__ */
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
44
|
+
}, ...e(E)],
|
|
45
|
+
children: [/* @__PURE__ */ u(t, {
|
|
46
|
+
"aria-label": O,
|
|
47
|
+
selectedItem: A,
|
|
48
|
+
open: !!A,
|
|
49
|
+
onClose: () => j(null),
|
|
50
|
+
onCloseButtonClick: () => j(null),
|
|
51
|
+
onItemChange: (e, t) => j(t),
|
|
52
|
+
mediaItems: M
|
|
53
|
+
}), /* @__PURE__ */ u(_, {
|
|
36
54
|
mode: "wait",
|
|
37
|
-
children: !
|
|
38
|
-
initial: "hidden",
|
|
55
|
+
children: !A && /* @__PURE__ */ u(v.div, {
|
|
56
|
+
initial: L ? !1 : "hidden",
|
|
39
57
|
animate: "visible",
|
|
40
|
-
exit: "hidden",
|
|
58
|
+
exit: L ? void 0 : "hidden",
|
|
41
59
|
variants: {
|
|
42
|
-
hidden: { opacity:
|
|
60
|
+
hidden: { opacity: +!!L },
|
|
43
61
|
visible: {
|
|
44
62
|
opacity: 1,
|
|
45
|
-
transition: { staggerChildren: .1 }
|
|
63
|
+
transition: L ? { duration: 0 } : { staggerChildren: .1 }
|
|
46
64
|
}
|
|
47
65
|
},
|
|
48
|
-
children: /* @__PURE__ */
|
|
66
|
+
children: /* @__PURE__ */ u(f, {
|
|
49
67
|
sx: {
|
|
50
68
|
display: "grid",
|
|
51
69
|
gridTemplateColumns: {
|
|
@@ -57,7 +75,7 @@ var h = ({ mediaItems: h, variant: g = "masonry", loading: _ = !1, skeletonCount
|
|
|
57
75
|
gridAutoRows: "60px",
|
|
58
76
|
position: "relative"
|
|
59
77
|
},
|
|
60
|
-
children:
|
|
78
|
+
children: C ? R.map(({ id: e, colSpan: t, rowSpan: n }) => /* @__PURE__ */ u(p, {
|
|
61
79
|
sx: {
|
|
62
80
|
position: "relative",
|
|
63
81
|
overflow: "hidden",
|
|
@@ -65,29 +83,30 @@ var h = ({ mediaItems: h, variant: g = "masonry", loading: _ = !1, skeletonCount
|
|
|
65
83
|
gridRow: `span ${n}`,
|
|
66
84
|
gridColumn: `span ${t}`
|
|
67
85
|
},
|
|
68
|
-
children: /* @__PURE__ */
|
|
86
|
+
children: /* @__PURE__ */ u(m, {
|
|
69
87
|
variant: "rectangular",
|
|
70
|
-
animation: "wave",
|
|
88
|
+
animation: L ? !1 : "wave",
|
|
71
89
|
sx: {
|
|
72
90
|
width: "100%",
|
|
73
91
|
height: "100%",
|
|
74
92
|
transform: "none"
|
|
75
93
|
}
|
|
76
94
|
})
|
|
77
|
-
}, e)) :
|
|
95
|
+
}, e)) : M.map((e, t) => /* @__PURE__ */ u(n, {
|
|
78
96
|
item: e,
|
|
79
|
-
index:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
97
|
+
index: t,
|
|
98
|
+
itemLabel: S(e, t),
|
|
99
|
+
instanceId: I,
|
|
100
|
+
isDragging: P,
|
|
101
|
+
onSelect: j,
|
|
102
|
+
onDragStart: z,
|
|
103
|
+
onDragEnd: B
|
|
104
|
+
}, `${e.id}-${I}`))
|
|
86
105
|
})
|
|
87
106
|
})
|
|
88
107
|
})]
|
|
89
108
|
});
|
|
90
|
-
};
|
|
91
|
-
|
|
109
|
+
});
|
|
110
|
+
x.displayName = "SGallery";
|
|
92
111
|
//#endregion
|
|
93
|
-
export {
|
|
112
|
+
export { x as SGallery, x as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from "./s-glow-button.js";
|
|
1
|
+
import { SGlowButton as e } from "./s-glow-button.js";
|
|
2
2
|
export { e as SGlowButton, e as default };
|
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ButtonProps } from '@mui/material';
|
|
3
|
+
export interface SGlowButtonOwnerState {
|
|
4
|
+
borderRadius: React.CSSProperties['borderRadius'];
|
|
5
|
+
duration: number;
|
|
6
|
+
glowColor: string;
|
|
7
|
+
glowSize: number;
|
|
8
|
+
height: React.CSSProperties['height'];
|
|
9
|
+
width: React.CSSProperties['width'];
|
|
10
|
+
}
|
|
3
11
|
/**
|
|
4
12
|
* Props interface for SGlowButton component
|
|
5
13
|
*/
|
|
6
|
-
export interface SGlowButtonProps extends ButtonProps {
|
|
14
|
+
export interface SGlowButtonProps extends Omit<ButtonProps, 'component'> {
|
|
7
15
|
/** Border radius for the button (defaults to 12px) */
|
|
8
|
-
borderRadius?:
|
|
16
|
+
borderRadius?: React.CSSProperties['borderRadius'];
|
|
9
17
|
/** Button content */
|
|
10
18
|
children: React.ReactNode;
|
|
11
|
-
/** Duration of the moving border animation in milliseconds (defaults to
|
|
19
|
+
/** Duration of the moving border animation in milliseconds (defaults to 3000ms) */
|
|
12
20
|
duration?: number;
|
|
13
21
|
/** Button width (defaults to 'fit-content') */
|
|
14
|
-
width?:
|
|
22
|
+
width?: React.CSSProperties['width'];
|
|
15
23
|
/** Button height (defaults to '60px') */
|
|
16
|
-
height?:
|
|
24
|
+
height?: React.CSSProperties['height'];
|
|
17
25
|
/** Size of the glow effect in pixels (defaults to 60) */
|
|
18
26
|
glowSize?: number;
|
|
19
27
|
/** Color of the glow effect (defaults to the theme info color) */
|
|
@@ -22,8 +30,5 @@ export interface SGlowButtonProps extends ButtonProps {
|
|
|
22
30
|
/**
|
|
23
31
|
* A visually striking button with animated glowing border effects and gradient text.
|
|
24
32
|
*/
|
|
25
|
-
declare const SGlowButton:
|
|
26
|
-
({ borderRadius, children, duration, width, height, glowSize, glowColor, ...props }: SGlowButtonProps): React.JSX.Element;
|
|
27
|
-
displayName: string;
|
|
28
|
-
};
|
|
33
|
+
export declare const SGlowButton: React.ForwardRefExoticComponent<Omit<SGlowButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
29
34
|
export default SGlowButton;
|
|
@@ -1,28 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { toSxArray as e } from "../utils/sx.js";
|
|
2
|
+
import { SMovingBorder as t } from "../s-moving-border/s-moving-border.js";
|
|
3
|
+
import { styled as n, useThemeProps as r } from "@mui/material/styles";
|
|
4
|
+
import i from "react";
|
|
5
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
6
|
+
import { Button as o } from "@mui/material";
|
|
5
7
|
//#region lib/s-glow-button/s-glow-button.tsx
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
8
|
+
var s = n(o, {
|
|
9
|
+
name: "SGlowButton",
|
|
10
|
+
slot: "Root"
|
|
11
|
+
})({}), c = i.forwardRef(function(n, i) {
|
|
12
|
+
let o = r({
|
|
13
|
+
props: n,
|
|
14
|
+
name: "SGlowButton"
|
|
15
|
+
}), { borderRadius: c = 12, children: l, disableRipple: u, duration: d = 3e3, fullWidth: f = !1, glowColor: p = "var(--s-palette-info-main)", glowSize: m = 60, height: h = "60px", sx: g, width: _ = "fit-content", ...v } = o, y = f ? "100%" : _, b = {
|
|
16
|
+
...o,
|
|
17
|
+
borderRadius: c,
|
|
18
|
+
duration: d,
|
|
19
|
+
glowColor: p,
|
|
20
|
+
glowSize: m,
|
|
21
|
+
height: h,
|
|
22
|
+
width: y
|
|
23
|
+
};
|
|
24
|
+
return /* @__PURE__ */ a(t, {
|
|
25
|
+
width: y,
|
|
26
|
+
height: h,
|
|
27
|
+
duration: d,
|
|
28
|
+
borderRadius: c,
|
|
29
|
+
glowSize: m,
|
|
30
|
+
glowColor: p,
|
|
31
|
+
padding: .3,
|
|
32
|
+
children: /* @__PURE__ */ a(s, {
|
|
33
|
+
...v,
|
|
34
|
+
ref: i,
|
|
35
|
+
disableRipple: u,
|
|
36
|
+
fullWidth: f,
|
|
37
|
+
ownerState: b,
|
|
38
|
+
sx: [{
|
|
39
|
+
borderRadius: c,
|
|
40
|
+
height: h,
|
|
41
|
+
width: y
|
|
42
|
+
}, ...e(g)],
|
|
43
|
+
children: l
|
|
44
|
+
})
|
|
45
|
+
});
|
|
25
46
|
});
|
|
26
|
-
|
|
47
|
+
c.displayName = "SGlowButton";
|
|
27
48
|
//#endregion
|
|
28
|
-
export {
|
|
49
|
+
export { c as SGlowButton, c as default };
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { default, default as SGradientIcon } from './s-gradient-icon';
|
|
2
|
-
export type { SGradientIconProps } from './s-gradient-icon';
|
|
2
|
+
export type { AnimationEasing, CustomGradient, GradientDirection, GradientRole, SGradientIconOwnerState, SGradientIconProps, } from './s-gradient-icon';
|
|
3
|
+
export type {} from '../theme/component-augmentation';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { SvgIconProps, SvgIconTypeMap, SxProps } from '@mui/material';
|
|
2
3
|
import { OverridableComponent } from '@mui/material/OverridableComponent';
|
|
3
4
|
/** Type definition for Material-UI icon components with muiName property */
|
|
@@ -6,8 +7,8 @@ type IconComponent = OverridableComponent<SvgIconTypeMap<object, 'svg'>> & {
|
|
|
6
7
|
};
|
|
7
8
|
/** Gradient direction options */
|
|
8
9
|
export type GradientDirection = 'horizontal' | 'vertical' | 'diagonal' | 'radial';
|
|
9
|
-
/**
|
|
10
|
-
export type
|
|
10
|
+
/** Semantic gradient roles */
|
|
11
|
+
export type GradientRole = 'brand-primary' | 'brand-subtle' | 'custom';
|
|
11
12
|
/** Animation easing options */
|
|
12
13
|
export type AnimationEasing = 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear';
|
|
13
14
|
/** Custom gradient configuration */
|
|
@@ -22,7 +23,7 @@ export interface CustomGradient {
|
|
|
22
23
|
middlePosition?: number;
|
|
23
24
|
}
|
|
24
25
|
/** Props interface for SGradientIcon component */
|
|
25
|
-
export interface SGradientIconProps extends SvgIconProps {
|
|
26
|
+
export interface SGradientIconProps extends Omit<SvgIconProps, 'component'> {
|
|
26
27
|
/** Whether the icon should show the gradient fill (hover state) */
|
|
27
28
|
hovered?: boolean;
|
|
28
29
|
/** The Material-UI icon component to render with gradient effect */
|
|
@@ -31,9 +32,9 @@ export interface SGradientIconProps extends SvgIconProps {
|
|
|
31
32
|
sx?: SxProps;
|
|
32
33
|
/** Stroke width for the icon (default: 0) */
|
|
33
34
|
strokeWidth?: number;
|
|
34
|
-
/**
|
|
35
|
-
|
|
36
|
-
/** Custom gradient colors when
|
|
35
|
+
/** Semantic gradient role (default: 'brand-primary') */
|
|
36
|
+
gradientRole?: GradientRole;
|
|
37
|
+
/** Custom gradient colors when role is 'custom' */
|
|
37
38
|
customGradient?: CustomGradient;
|
|
38
39
|
/** Direction of the gradient (default: 'diagonal') */
|
|
39
40
|
gradientDirection?: GradientDirection;
|
|
@@ -50,8 +51,15 @@ export interface SGradientIconProps extends SvgIconProps {
|
|
|
50
51
|
/** Fallback color when gradient is not shown */
|
|
51
52
|
fallbackColor?: string;
|
|
52
53
|
}
|
|
53
|
-
export
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
export type SGradientIconOwnerState = SGradientIconProps & {
|
|
55
|
+
alwaysGradient: boolean;
|
|
56
|
+
animationDuration: number;
|
|
57
|
+
animationEasing: AnimationEasing;
|
|
58
|
+
autoHover: boolean;
|
|
59
|
+
gradientDirection: GradientDirection;
|
|
60
|
+
gradientRole: GradientRole;
|
|
61
|
+
hovered: boolean;
|
|
62
|
+
strokeWidth: number;
|
|
56
63
|
};
|
|
64
|
+
export declare const SGradientIcon: React.ForwardRefExoticComponent<Omit<SGradientIconProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
57
65
|
export default SGradientIcon;
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { toSxArray as e } from "../utils/sx.js";
|
|
2
|
+
import { forwardRef as t, useId as n } from "react";
|
|
3
|
+
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
|
+
import { styled as o, useTheme as s, useThemeProps as c } from "@mui/material";
|
|
3
5
|
//#region lib/s-gradient-icon/s-gradient-icon.tsx
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var l = o(t(({ IconComponent: e, ...t }, n) => /* @__PURE__ */ i(e, {
|
|
7
|
+
...t,
|
|
8
|
+
ref: n
|
|
9
|
+
})), {
|
|
10
|
+
name: "SGradientIcon",
|
|
11
|
+
slot: "Root",
|
|
12
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
13
|
+
})({}), u = t((t, o) => {
|
|
14
|
+
let u = c({
|
|
15
|
+
props: t,
|
|
16
|
+
name: "SGradientIcon"
|
|
17
|
+
}), { hovered: d = !1, IconComponent: f, sx: p, strokeWidth: m = 0, gradientRole: h = "brand-primary", customGradient: g, gradientDirection: _ = "diagonal", animationDuration: v = 300, animationEasing: y = "ease", autoHover: b = !1, gradientId: x, alwaysGradient: S = !1, fallbackColor: C, ...w } = u, T = s(), E = (T.vars ?? T).palette, D = n(), O = x ?? `gradient-${D}`, k = {
|
|
18
|
+
"brand-primary": {
|
|
19
|
+
start: E.primary[400],
|
|
20
|
+
end: E.primary[700]
|
|
9
21
|
},
|
|
10
|
-
"
|
|
11
|
-
start:
|
|
12
|
-
end:
|
|
22
|
+
"brand-subtle": {
|
|
23
|
+
start: E.primary[200],
|
|
24
|
+
end: E.primary[500]
|
|
13
25
|
},
|
|
14
|
-
|
|
15
|
-
start:
|
|
16
|
-
end:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
start: "#10b981",
|
|
20
|
-
end: "#06b6d4"
|
|
21
|
-
},
|
|
22
|
-
"indigo-purple": {
|
|
23
|
-
start: "#6366f1",
|
|
24
|
-
end: "#a855f7"
|
|
25
|
-
},
|
|
26
|
-
custom: l ? {
|
|
27
|
-
start: l.startColor,
|
|
28
|
-
end: l.endColor,
|
|
29
|
-
middle: l.middleColor,
|
|
30
|
-
middlePos: l.middlePosition ?? .5
|
|
26
|
+
custom: g ? {
|
|
27
|
+
start: g.startColor,
|
|
28
|
+
end: g.endColor,
|
|
29
|
+
middle: g.middleColor,
|
|
30
|
+
middlePos: g.middlePosition ?? .5
|
|
31
31
|
} : {
|
|
32
|
-
start:
|
|
33
|
-
end:
|
|
32
|
+
start: E.primary[400],
|
|
33
|
+
end: E.primary[700]
|
|
34
34
|
}
|
|
35
|
-
}[
|
|
35
|
+
}[h], A = {
|
|
36
36
|
horizontal: {
|
|
37
37
|
x1: "0",
|
|
38
38
|
y1: "0",
|
|
@@ -57,69 +57,81 @@ var i = ({ hovered: i = !1, IconComponent: a, sx: o, strokeWidth: s = 0, gradien
|
|
|
57
57
|
x2: "0.5",
|
|
58
58
|
y2: "0.5"
|
|
59
59
|
}
|
|
60
|
-
}[
|
|
61
|
-
|
|
60
|
+
}[_], j = S || d ? `url(#${O})` : C ?? "var(--s-palette-text-primary)", M = {
|
|
61
|
+
...u,
|
|
62
|
+
alwaysGradient: S,
|
|
63
|
+
animationDuration: v,
|
|
64
|
+
animationEasing: y,
|
|
65
|
+
autoHover: b,
|
|
66
|
+
gradientDirection: _,
|
|
67
|
+
gradientRole: h,
|
|
68
|
+
hovered: d,
|
|
69
|
+
strokeWidth: m
|
|
70
|
+
};
|
|
71
|
+
return f ? /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("svg", {
|
|
62
72
|
width: 0,
|
|
63
73
|
height: 0,
|
|
64
|
-
children:
|
|
65
|
-
id:
|
|
74
|
+
children: _ === "radial" ? /* @__PURE__ */ a("radialGradient", {
|
|
75
|
+
id: O,
|
|
66
76
|
cx: "50%",
|
|
67
77
|
cy: "50%",
|
|
68
78
|
r: "50%",
|
|
69
79
|
children: [
|
|
70
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ i("stop", {
|
|
71
81
|
offset: "0%",
|
|
72
|
-
stopColor:
|
|
82
|
+
stopColor: k.start
|
|
73
83
|
}),
|
|
74
|
-
|
|
75
|
-
offset: `${(
|
|
76
|
-
stopColor:
|
|
84
|
+
k.middle && /* @__PURE__ */ i("stop", {
|
|
85
|
+
offset: `${(k.middlePos ?? .5) * 100}%`,
|
|
86
|
+
stopColor: k.middle
|
|
77
87
|
}),
|
|
78
|
-
/* @__PURE__ */
|
|
88
|
+
/* @__PURE__ */ i("stop", {
|
|
79
89
|
offset: "100%",
|
|
80
|
-
stopColor:
|
|
90
|
+
stopColor: k.end
|
|
81
91
|
})
|
|
82
92
|
]
|
|
83
|
-
}) : /* @__PURE__ */
|
|
84
|
-
id:
|
|
85
|
-
x1:
|
|
86
|
-
y1:
|
|
87
|
-
x2:
|
|
88
|
-
y2:
|
|
93
|
+
}) : /* @__PURE__ */ a("linearGradient", {
|
|
94
|
+
id: O,
|
|
95
|
+
x1: A.x1,
|
|
96
|
+
y1: A.y1,
|
|
97
|
+
x2: A.x2,
|
|
98
|
+
y2: A.y2,
|
|
89
99
|
children: [
|
|
90
|
-
/* @__PURE__ */
|
|
100
|
+
/* @__PURE__ */ i("stop", {
|
|
91
101
|
offset: "0%",
|
|
92
|
-
stopColor:
|
|
102
|
+
stopColor: k.start
|
|
93
103
|
}),
|
|
94
|
-
|
|
95
|
-
offset: `${(
|
|
96
|
-
stopColor:
|
|
104
|
+
k.middle && /* @__PURE__ */ i("stop", {
|
|
105
|
+
offset: `${(k.middlePos ?? .5) * 100}%`,
|
|
106
|
+
stopColor: k.middle
|
|
97
107
|
}),
|
|
98
|
-
/* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ i("stop", {
|
|
99
109
|
offset: "100%",
|
|
100
|
-
stopColor:
|
|
110
|
+
stopColor: k.end
|
|
101
111
|
})
|
|
102
112
|
]
|
|
103
113
|
})
|
|
104
|
-
}), /* @__PURE__ */
|
|
105
|
-
...
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
+
}), /* @__PURE__ */ i(l, {
|
|
115
|
+
...w,
|
|
116
|
+
ref: o,
|
|
117
|
+
IconComponent: f,
|
|
118
|
+
ownerState: M,
|
|
119
|
+
sx: [{
|
|
120
|
+
fill: j,
|
|
121
|
+
strokeWidth: m,
|
|
122
|
+
transition: `fill ${v}ms ${y}`,
|
|
123
|
+
...b && { "&:hover": { fill: `url(#${O})` } }
|
|
124
|
+
}, ...e(p)],
|
|
125
|
+
...b && !S && {
|
|
114
126
|
onMouseEnter: (e) => {
|
|
115
|
-
|
|
127
|
+
w.onMouseEnter?.(e);
|
|
116
128
|
},
|
|
117
129
|
onMouseLeave: (e) => {
|
|
118
|
-
|
|
130
|
+
w.onMouseLeave?.(e);
|
|
119
131
|
}
|
|
120
132
|
}
|
|
121
133
|
})] }) : null;
|
|
122
|
-
};
|
|
123
|
-
|
|
134
|
+
});
|
|
135
|
+
u.displayName = "SGradientIcon";
|
|
124
136
|
//#endregion
|
|
125
|
-
export {
|
|
137
|
+
export { u as SGradientIcon, u as default };
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { default, default as SIconButton } from './s-icon-button';
|
|
2
|
-
export type { SIconButtonProps } from './s-icon-button';
|
|
2
|
+
export type { SIconButtonOwnerState, SIconButtonProps, SIconButtonSlotProps, SIconButtonSlots, SIconButtonVariant, } from './s-icon-button';
|
|
3
|
+
export type {} from '../theme/component-augmentation';
|
|
@@ -1,14 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
export interface
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { IconButtonProps } from '@mui/material/IconButton';
|
|
2
|
+
import { TooltipProps } from '@mui/material/Tooltip';
|
|
3
|
+
import { OwnerStateSlotProps as MuiOwnerStateSlotProps } from '../utils/slots';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
export type SIconButtonVariant = 'overlay';
|
|
6
|
+
export interface SIconButtonOwnerState {
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
hasTooltip: boolean;
|
|
9
|
+
variant?: SIconButtonVariant;
|
|
10
|
+
}
|
|
11
|
+
type OwnerStateSlotProps<Props> = MuiOwnerStateSlotProps<Props, SIconButtonOwnerState>;
|
|
12
|
+
export interface SIconButtonSlots {
|
|
13
|
+
/** Component used to render the optional tooltip. */
|
|
14
|
+
tooltip?: React.ElementType;
|
|
15
|
+
}
|
|
16
|
+
export interface SIconButtonSlotProps {
|
|
17
|
+
/** Props or an owner-state callback for the tooltip slot. */
|
|
18
|
+
tooltip?: OwnerStateSlotProps<Omit<TooltipProps, 'children' | 'title'>>;
|
|
19
|
+
}
|
|
20
|
+
/** MUI IconButton with an optional tooltip slot. */
|
|
21
|
+
export interface SIconButtonProps extends Omit<IconButtonProps, 'component'> {
|
|
22
|
+
/** Components used for internal slots. */
|
|
23
|
+
slots?: SIconButtonSlots;
|
|
24
|
+
/** Props or owner-state callbacks for internal slots. */
|
|
25
|
+
slotProps?: SIconButtonSlotProps;
|
|
26
|
+
/** Optional tooltip title. */
|
|
27
|
+
tooltip?: React.ReactNode;
|
|
28
|
+
/** Visual treatment for icon buttons displayed over another surface. */
|
|
29
|
+
variant?: SIconButtonVariant;
|
|
30
|
+
}
|
|
31
|
+
export declare const SIconButton: React.ForwardRefExoticComponent<Omit<SIconButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
14
32
|
export default SIconButton;
|