@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,8 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { BoxProps } from '@mui/material';
|
|
2
3
|
/**
|
|
3
4
|
* Props interface for SPixelReveal component
|
|
4
5
|
*/
|
|
5
|
-
export interface SPixelRevealProps extends Omit<
|
|
6
|
+
export interface SPixelRevealProps extends Omit<BoxProps, 'children' | 'component'> {
|
|
6
7
|
/** Spacing between pixels in the grid */
|
|
7
8
|
gap?: number;
|
|
8
9
|
/** Animation speed multiplier (0-100) */
|
|
@@ -20,5 +21,12 @@ export interface SPixelRevealProps extends Omit<React.HTMLAttributes<HTMLDivElem
|
|
|
20
21
|
/** If true, all pixels appear immediately without wave/delay effect */
|
|
21
22
|
instant?: boolean;
|
|
22
23
|
}
|
|
23
|
-
export
|
|
24
|
+
export interface SPixelRevealOwnerState extends SPixelRevealProps {
|
|
25
|
+
gap: number;
|
|
26
|
+
hasImage: boolean;
|
|
27
|
+
instant: boolean;
|
|
28
|
+
loading: boolean;
|
|
29
|
+
speed: number;
|
|
30
|
+
}
|
|
31
|
+
export declare const SPixelReveal: React.ForwardRefExoticComponent<Omit<SPixelRevealProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
32
|
export default SPixelReveal;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { toSxArray as e } from "../utils/sx.js";
|
|
2
|
+
import { resolveCanvasColor as t } from "../utils/canvas-color.js";
|
|
3
|
+
import { forwardRef as n, useCallback as r, useEffect as i, useRef as a } from "react";
|
|
4
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
5
|
+
import { Box as c, styled as l, useMediaQuery as u, useTheme as d, useThemeProps as f } from "@mui/material";
|
|
6
|
+
import { useForkRef as p } from "@mui/material/utils";
|
|
4
7
|
//#region lib/s-pixel-reveal/s-pixel-reveal.tsx
|
|
5
|
-
var
|
|
8
|
+
var m = class {
|
|
6
9
|
x;
|
|
7
10
|
y;
|
|
8
11
|
color;
|
|
@@ -41,111 +44,146 @@ var s = class {
|
|
|
41
44
|
let n = (t - this.size) * .5;
|
|
42
45
|
e.fillRect(this.x + n, this.y + n, this.size, this.size);
|
|
43
46
|
}
|
|
44
|
-
}
|
|
45
|
-
|
|
47
|
+
}, h = l(c, {
|
|
48
|
+
name: "SPixelReveal",
|
|
49
|
+
slot: "Root"
|
|
50
|
+
})({});
|
|
51
|
+
function g({ x: e, y: t, gap: n, logicalWidth: r, logicalHeight: i, instant: a, reducedMotion: o, getDistanceSq: s }) {
|
|
46
52
|
if (a || o) return 0;
|
|
47
53
|
let c = e + n / 2, l = t + n / 2, u = r / 2, d = i / 2;
|
|
48
54
|
return Math.sqrt(s(c, l, u, d));
|
|
49
55
|
}
|
|
50
|
-
function
|
|
51
|
-
let n = /^var\((--[^),\s]+)\s*(?:,\s*([^)]+))?\)$/.exec(e.trim());
|
|
52
|
-
return n && (getComputedStyle(t).getPropertyValue(n[1]).trim() || n[2]?.trim()) || e;
|
|
53
|
-
}
|
|
54
|
-
function u(e, t, n) {
|
|
56
|
+
function _(e, t, n) {
|
|
55
57
|
e.has(t) || e.set(t, []), e.get(t)?.push(n);
|
|
56
58
|
}
|
|
57
|
-
var
|
|
58
|
-
let
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
},
|
|
62
|
-
|
|
59
|
+
var v = n(function(n, c) {
|
|
60
|
+
let l = f({
|
|
61
|
+
props: n,
|
|
62
|
+
name: "SPixelReveal"
|
|
63
|
+
}), { alt: v = "", children: y, colors: b, gap: x = 5, instant: S = !0, loading: C = !0, speed: w = 100, src: T, style: E, sx: D, ...O } = l, k = Number.isFinite(x) && x > 0 ? x : 5, A = d(), j = a(null), M = a(null), N = a(null), P = a(/* @__PURE__ */ new Map()), F = a(null), I = a(null), L = a(1e3 / 60), R = a(0), z = a(C), B = u("(prefers-reduced-motion: reduce)", { noSsr: !0 }), V = p(M, c), H = {
|
|
64
|
+
...l,
|
|
65
|
+
alt: v,
|
|
66
|
+
gap: k,
|
|
67
|
+
hasImage: !!T,
|
|
68
|
+
instant: S,
|
|
69
|
+
loading: C,
|
|
70
|
+
speed: w,
|
|
71
|
+
src: T
|
|
72
|
+
};
|
|
73
|
+
z.current = C;
|
|
74
|
+
let U = r((e, t, n, r) => {
|
|
63
75
|
let i = e - n, a = t - r;
|
|
64
76
|
return i * i + a * a;
|
|
65
|
-
}, []),
|
|
66
|
-
|
|
67
|
-
let
|
|
68
|
-
|
|
69
|
-
let
|
|
70
|
-
if (
|
|
71
|
-
|
|
72
|
-
let
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
for (let
|
|
76
|
-
if (
|
|
77
|
-
|
|
77
|
+
}, []), W = r((e, t, n) => {
|
|
78
|
+
F.current !== null && cancelAnimationFrame(F.current), R.current = performance.now();
|
|
79
|
+
let r = () => {
|
|
80
|
+
F.current = requestAnimationFrame(r);
|
|
81
|
+
let i = performance.now(), a = i - R.current;
|
|
82
|
+
if (a < L.current) return;
|
|
83
|
+
R.current = i - a % L.current, e.clearRect(0, 0, t, n);
|
|
84
|
+
let o = !1;
|
|
85
|
+
P.current.forEach((t, n) => {
|
|
86
|
+
e.fillStyle = n;
|
|
87
|
+
for (let n of t) {
|
|
88
|
+
if (z.current) {
|
|
89
|
+
n.updateWhileLoading(), n.draw(e, k), o = !0;
|
|
78
90
|
continue;
|
|
79
91
|
}
|
|
80
|
-
|
|
92
|
+
n.updateWhileIdle() && (n.draw(e, k), o = !0);
|
|
81
93
|
}
|
|
82
|
-
}), !
|
|
94
|
+
}), !z.current && !o && F.current !== null && (cancelAnimationFrame(F.current), F.current = null);
|
|
83
95
|
};
|
|
84
|
-
|
|
85
|
-
}, [
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
96
|
+
r();
|
|
97
|
+
}, [k]), G = r((e, t, n) => {
|
|
98
|
+
e.clearRect(0, 0, t, n), z.current && P.current.forEach((t, n) => {
|
|
99
|
+
e.fillStyle = n;
|
|
100
|
+
for (let n of t) n.size = n.maxSize, n.draw(e, k);
|
|
101
|
+
});
|
|
102
|
+
}, [k]), K = r(() => {
|
|
103
|
+
let e = j.current, n = e?.getContext("2d");
|
|
104
|
+
if (!e || !n) return;
|
|
105
|
+
P.current = /* @__PURE__ */ new Map();
|
|
106
|
+
let r = Math.max(0, Math.min(100, w)) * .001, i = (A.vars ?? A).palette, a = (b ?? [
|
|
90
107
|
i.primary[400],
|
|
91
108
|
i.primary[500],
|
|
92
109
|
i.primary[600]
|
|
93
|
-
]).map((
|
|
94
|
-
for (let
|
|
95
|
-
let
|
|
96
|
-
x:
|
|
97
|
-
y:
|
|
98
|
-
gap:
|
|
99
|
-
logicalWidth:
|
|
100
|
-
logicalHeight:
|
|
101
|
-
instant:
|
|
102
|
-
reducedMotion:
|
|
103
|
-
getDistanceSq:
|
|
104
|
-
}),
|
|
105
|
-
|
|
110
|
+
]).map((n) => t(n, e)), o = window.devicePixelRatio ?? 1, s = e.width / o, c = e.height / o, l = .5, u = (s + c) * .01, d = s % k / 2, f = c % k / 2;
|
|
111
|
+
for (let e = d; e < s; e += k) for (let t = f; t < c; t += k) {
|
|
112
|
+
let n = a[Math.floor(Math.random() * a.length)], i = g({
|
|
113
|
+
x: e,
|
|
114
|
+
y: t,
|
|
115
|
+
gap: k,
|
|
116
|
+
logicalWidth: s,
|
|
117
|
+
logicalHeight: c,
|
|
118
|
+
instant: S,
|
|
119
|
+
reducedMotion: B,
|
|
120
|
+
getDistanceSq: U
|
|
121
|
+
}), o = Math.random() * 4 + u, d = Math.random() * (2 - l) + l;
|
|
122
|
+
_(P.current, n, new m(e, t, n, r, i, o, d));
|
|
106
123
|
}
|
|
107
|
-
|
|
124
|
+
if (B) {
|
|
125
|
+
G(n, s, c);
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
W(n, s, c);
|
|
108
129
|
}, [
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
x,
|
|
113
|
-
v,
|
|
130
|
+
k,
|
|
131
|
+
w,
|
|
132
|
+
b,
|
|
114
133
|
A,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
134
|
+
S,
|
|
135
|
+
B,
|
|
136
|
+
U,
|
|
137
|
+
G,
|
|
138
|
+
W
|
|
139
|
+
]), q = r(() => {
|
|
140
|
+
let e = j.current, t = M.current, n = e?.getContext("2d");
|
|
118
141
|
if (!e || !t || !n) return;
|
|
119
142
|
let r = t.getBoundingClientRect();
|
|
120
143
|
if (r.width === 0 || r.height === 0) return;
|
|
121
144
|
let i = Math.floor(r.width), a = Math.floor(r.height), o = window.devicePixelRatio ?? 1;
|
|
122
|
-
e.width = i * o, e.height = a * o, e.style.width = `${i}px`, e.style.height = `${a}px`, n.setTransform(1, 0, 0, 1, 0, 0), n.scale(o, o),
|
|
123
|
-
}, [
|
|
124
|
-
return
|
|
125
|
-
|
|
145
|
+
e.width = i * o, e.height = a * o, e.style.width = `${i}px`, e.style.height = `${a}px`, n.setTransform(1, 0, 0, 1, 0, 0), n.scale(o, o), K();
|
|
146
|
+
}, [K]);
|
|
147
|
+
return i(() => {
|
|
148
|
+
q();
|
|
126
149
|
let e = new ResizeObserver(() => {
|
|
127
|
-
requestAnimationFrame(() =>
|
|
150
|
+
I.current === null && (I.current = requestAnimationFrame(() => {
|
|
151
|
+
I.current = null, q();
|
|
152
|
+
}));
|
|
128
153
|
});
|
|
129
|
-
return
|
|
130
|
-
e.disconnect(),
|
|
154
|
+
return M.current && e.observe(M.current), () => {
|
|
155
|
+
e.disconnect(), I.current !== null && (cancelAnimationFrame(I.current), I.current = null), F.current !== null && (cancelAnimationFrame(F.current), F.current = null);
|
|
131
156
|
};
|
|
132
|
-
}, [
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
157
|
+
}, [q]), i(() => {
|
|
158
|
+
let e = j.current, t = e?.getContext("2d");
|
|
159
|
+
if (!e || !t || P.current.size === 0) return;
|
|
160
|
+
let n = window.devicePixelRatio ?? 1, r = e.width / n, i = e.height / n;
|
|
161
|
+
if (B) {
|
|
162
|
+
F.current !== null && (cancelAnimationFrame(F.current), F.current = null), G(t, r, i);
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
W(t, r, i);
|
|
166
|
+
}, [
|
|
167
|
+
C,
|
|
168
|
+
B,
|
|
169
|
+
G,
|
|
170
|
+
W
|
|
171
|
+
]), /* @__PURE__ */ s(h, {
|
|
172
|
+
...O,
|
|
173
|
+
ref: V,
|
|
174
|
+
ownerState: H,
|
|
175
|
+
style: E,
|
|
176
|
+
sx: [{
|
|
139
177
|
height: "100%",
|
|
140
178
|
overflow: "hidden",
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
...
|
|
179
|
+
position: "relative",
|
|
180
|
+
width: "100%"
|
|
181
|
+
}, ...e(D)],
|
|
144
182
|
children: [
|
|
145
|
-
|
|
146
|
-
ref:
|
|
147
|
-
src:
|
|
148
|
-
alt:
|
|
183
|
+
T && /* @__PURE__ */ o("img", {
|
|
184
|
+
ref: N,
|
|
185
|
+
src: T,
|
|
186
|
+
alt: v,
|
|
149
187
|
style: {
|
|
150
188
|
position: "absolute",
|
|
151
189
|
inset: 0,
|
|
@@ -155,9 +193,9 @@ var d = e(({ gap: e = 5, speed: d = 100, colors: f, loading: p = !0, src: m, alt
|
|
|
155
193
|
display: "block"
|
|
156
194
|
}
|
|
157
195
|
}),
|
|
158
|
-
|
|
159
|
-
/* @__PURE__ */
|
|
160
|
-
ref:
|
|
196
|
+
y,
|
|
197
|
+
/* @__PURE__ */ o("canvas", {
|
|
198
|
+
ref: j,
|
|
161
199
|
style: {
|
|
162
200
|
position: "absolute",
|
|
163
201
|
inset: 0,
|
|
@@ -171,6 +209,6 @@ var d = e(({ gap: e = 5, speed: d = 100, colors: f, loading: p = !0, src: m, alt
|
|
|
171
209
|
]
|
|
172
210
|
});
|
|
173
211
|
});
|
|
174
|
-
|
|
212
|
+
v.displayName = "SPixelReveal";
|
|
175
213
|
//#endregion
|
|
176
|
-
export {
|
|
214
|
+
export { v as SPixelReveal, v as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default, default as SQuantityInput } from './s-quantity-input';
|
|
2
|
+
export type { SQuantityInputColor, SQuantityInputOwnerState, SQuantityInputProps, SQuantityInputSize, SQuantityInputVariant, } from './s-quantity-input';
|
|
3
|
+
export type {} from '../theme/component-augmentation';
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BoxProps } from '@mui/material';
|
|
3
|
+
/**
|
|
4
|
+
* Theme color used to tint the increment/decrement controls. `default` renders
|
|
5
|
+
* untinted controls (primary text color); its contained fill uses the neutral ramp.
|
|
6
|
+
*/
|
|
7
|
+
export type SQuantityInputColor = 'default' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
|
|
8
|
+
/**
|
|
9
|
+
* Visual style of the control.
|
|
10
|
+
* - `outlined` (default): a bordered pill with tinted, transparent controls.
|
|
11
|
+
* - `contained`: solid, filled controls flanking the value.
|
|
12
|
+
* - `text`: free-standing ghost controls with the value in between.
|
|
13
|
+
*/
|
|
14
|
+
export type SQuantityInputVariant = 'outlined' | 'contained' | 'text';
|
|
15
|
+
/** Size of the control */
|
|
16
|
+
export type SQuantityInputSize = 'small' | 'medium' | 'large';
|
|
17
|
+
/**
|
|
18
|
+
* Props interface for SQuantityInput component
|
|
19
|
+
*/
|
|
20
|
+
type SQuantityInputAccessibleName = {
|
|
21
|
+
'aria-label': string;
|
|
22
|
+
'aria-labelledby'?: string;
|
|
23
|
+
} | {
|
|
24
|
+
'aria-label'?: never;
|
|
25
|
+
'aria-labelledby': string;
|
|
26
|
+
};
|
|
27
|
+
export type SQuantityInputProps = Omit<BoxProps, 'children' | 'color' | 'component' | 'defaultValue' | 'onChange' | 'size'> & SQuantityInputAccessibleName & {
|
|
28
|
+
/** Controlled value. Omit to use `defaultValue` (uncontrolled) */
|
|
29
|
+
value?: number;
|
|
30
|
+
/** Initial value when uncontrolled. Defaults to `min` */
|
|
31
|
+
defaultValue?: number;
|
|
32
|
+
/** Callback fired with the next value when the user increases or decreases */
|
|
33
|
+
onChange?: (event: React.SyntheticEvent, value: number) => void;
|
|
34
|
+
/** Minimum value (inclusive) */
|
|
35
|
+
min?: number;
|
|
36
|
+
/** Maximum value (inclusive). Omit for no upper bound */
|
|
37
|
+
max?: number;
|
|
38
|
+
/** Increment/decrement amount */
|
|
39
|
+
step?: number;
|
|
40
|
+
/** Theme color of the controls */
|
|
41
|
+
color?: SQuantityInputColor;
|
|
42
|
+
/** Visual style of the control */
|
|
43
|
+
variant?: SQuantityInputVariant;
|
|
44
|
+
/** Size of the control */
|
|
45
|
+
size?: SQuantityInputSize;
|
|
46
|
+
/** Whether the value can be typed directly */
|
|
47
|
+
editable?: boolean;
|
|
48
|
+
/** Whether the whole control is disabled */
|
|
49
|
+
disabled?: boolean;
|
|
50
|
+
};
|
|
51
|
+
export type SQuantityInputOwnerState = SQuantityInputProps & {
|
|
52
|
+
color: SQuantityInputColor;
|
|
53
|
+
disabled: boolean;
|
|
54
|
+
editable: boolean;
|
|
55
|
+
min: number;
|
|
56
|
+
size: SQuantityInputSize;
|
|
57
|
+
step: number;
|
|
58
|
+
value: number;
|
|
59
|
+
variant: SQuantityInputVariant;
|
|
60
|
+
};
|
|
61
|
+
export declare const SQuantityInput: React.ForwardRefExoticComponent<(Omit<Omit<BoxProps, "color" | "onChange" | "children" | "defaultValue" | "component" | "size"> & {
|
|
62
|
+
'aria-label': string;
|
|
63
|
+
'aria-labelledby'?: string;
|
|
64
|
+
} & {
|
|
65
|
+
/** Controlled value. Omit to use `defaultValue` (uncontrolled) */
|
|
66
|
+
value?: number;
|
|
67
|
+
/** Initial value when uncontrolled. Defaults to `min` */
|
|
68
|
+
defaultValue?: number;
|
|
69
|
+
/** Callback fired with the next value when the user increases or decreases */
|
|
70
|
+
onChange?: (event: React.SyntheticEvent, value: number) => void;
|
|
71
|
+
/** Minimum value (inclusive) */
|
|
72
|
+
min?: number;
|
|
73
|
+
/** Maximum value (inclusive). Omit for no upper bound */
|
|
74
|
+
max?: number;
|
|
75
|
+
/** Increment/decrement amount */
|
|
76
|
+
step?: number;
|
|
77
|
+
/** Theme color of the controls */
|
|
78
|
+
color?: SQuantityInputColor;
|
|
79
|
+
/** Visual style of the control */
|
|
80
|
+
variant?: SQuantityInputVariant;
|
|
81
|
+
/** Size of the control */
|
|
82
|
+
size?: SQuantityInputSize;
|
|
83
|
+
/** Whether the value can be typed directly */
|
|
84
|
+
editable?: boolean;
|
|
85
|
+
/** Whether the whole control is disabled */
|
|
86
|
+
disabled?: boolean;
|
|
87
|
+
}, "ref"> | Omit<Omit<BoxProps, "color" | "onChange" | "children" | "defaultValue" | "component" | "size"> & {
|
|
88
|
+
'aria-label'?: never;
|
|
89
|
+
'aria-labelledby': string;
|
|
90
|
+
} & {
|
|
91
|
+
/** Controlled value. Omit to use `defaultValue` (uncontrolled) */
|
|
92
|
+
value?: number;
|
|
93
|
+
/** Initial value when uncontrolled. Defaults to `min` */
|
|
94
|
+
defaultValue?: number;
|
|
95
|
+
/** Callback fired with the next value when the user increases or decreases */
|
|
96
|
+
onChange?: (event: React.SyntheticEvent, value: number) => void;
|
|
97
|
+
/** Minimum value (inclusive) */
|
|
98
|
+
min?: number;
|
|
99
|
+
/** Maximum value (inclusive). Omit for no upper bound */
|
|
100
|
+
max?: number;
|
|
101
|
+
/** Increment/decrement amount */
|
|
102
|
+
step?: number;
|
|
103
|
+
/** Theme color of the controls */
|
|
104
|
+
color?: SQuantityInputColor;
|
|
105
|
+
/** Visual style of the control */
|
|
106
|
+
variant?: SQuantityInputVariant;
|
|
107
|
+
/** Size of the control */
|
|
108
|
+
size?: SQuantityInputSize;
|
|
109
|
+
/** Whether the value can be typed directly */
|
|
110
|
+
editable?: boolean;
|
|
111
|
+
/** Whether the whole control is disabled */
|
|
112
|
+
disabled?: boolean;
|
|
113
|
+
}, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
114
|
+
export default SQuantityInput;
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { toSxArray as e } from "../utils/sx.js";
|
|
2
|
+
import { SIconButton as t } from "../s-icon-button/s-icon-button.js";
|
|
3
|
+
import { forwardRef as n } from "react";
|
|
4
|
+
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
import { Box as o, Typography as s, styled as c, useThemeProps as l } from "@mui/material";
|
|
6
|
+
import { useControlled as u } from "@mui/material/utils";
|
|
7
|
+
import d from "@mui/icons-material/Add";
|
|
8
|
+
import f from "@mui/icons-material/Remove";
|
|
9
|
+
//#region lib/s-quantity-input/s-quantity-input.tsx
|
|
10
|
+
var p = {
|
|
11
|
+
small: {
|
|
12
|
+
height: 32,
|
|
13
|
+
iconButton: "small",
|
|
14
|
+
valueMinWidth: 28,
|
|
15
|
+
typography: "body2"
|
|
16
|
+
},
|
|
17
|
+
medium: {
|
|
18
|
+
height: 40,
|
|
19
|
+
iconButton: "medium",
|
|
20
|
+
valueMinWidth: 36,
|
|
21
|
+
typography: "body1"
|
|
22
|
+
},
|
|
23
|
+
large: {
|
|
24
|
+
height: 48,
|
|
25
|
+
iconButton: "large",
|
|
26
|
+
valueMinWidth: 44,
|
|
27
|
+
typography: "body1"
|
|
28
|
+
}
|
|
29
|
+
}, m = (e, t, n) => {
|
|
30
|
+
let r = Math.max(e, t);
|
|
31
|
+
return n == null ? r : Math.min(r, n);
|
|
32
|
+
}, h = c(o, {
|
|
33
|
+
name: "SQuantityInput",
|
|
34
|
+
slot: "Root"
|
|
35
|
+
})({}), g = n((n, c) => {
|
|
36
|
+
let g = l({
|
|
37
|
+
props: n,
|
|
38
|
+
name: "SQuantityInput"
|
|
39
|
+
}), { value: _, defaultValue: v, onChange: y, min: b = 0, max: x, step: S = 1, color: C = "default", variant: w = "outlined", size: T = "medium", editable: E = !1, disabled: D = !1, "aria-label": O, "aria-labelledby": k, onKeyDown: A, role: j = "spinbutton", sx: M, tabIndex: N = D ? -1 : 0, ...P } = g, F = p[T], [I, L] = u({
|
|
40
|
+
controlled: _,
|
|
41
|
+
default: m(v ?? b, b, x),
|
|
42
|
+
name: "SQuantityInput",
|
|
43
|
+
state: "value"
|
|
44
|
+
}), R = {
|
|
45
|
+
...g,
|
|
46
|
+
color: C,
|
|
47
|
+
disabled: D,
|
|
48
|
+
editable: E,
|
|
49
|
+
min: b,
|
|
50
|
+
size: T,
|
|
51
|
+
step: S,
|
|
52
|
+
value: I,
|
|
53
|
+
variant: w
|
|
54
|
+
}, z = (e, t) => {
|
|
55
|
+
let n = m(t, b, x);
|
|
56
|
+
n !== I && (L(n), y?.(e, n));
|
|
57
|
+
}, B = D || I <= b, V = D || x != null && I >= x, H = w === "contained", U = w === "outlined", W = x == null ? null : String(x).length >= String(b).length ? String(x) : String(b), G = {
|
|
58
|
+
alignSelf: "stretch",
|
|
59
|
+
height: "auto",
|
|
60
|
+
width: F.height,
|
|
61
|
+
borderRadius: 0
|
|
62
|
+
}, K = { "&.Mui-disabled": { opacity: .5 } }, q = (e) => {
|
|
63
|
+
if (A?.(e), e.defaultPrevented || D) return;
|
|
64
|
+
let t = e.target.tagName === "INPUT";
|
|
65
|
+
switch (e.key) {
|
|
66
|
+
case "ArrowUp":
|
|
67
|
+
e.preventDefault(), z(e, I + S);
|
|
68
|
+
break;
|
|
69
|
+
case "ArrowDown":
|
|
70
|
+
e.preventDefault(), z(e, I - S);
|
|
71
|
+
break;
|
|
72
|
+
case "ArrowRight":
|
|
73
|
+
if (t) break;
|
|
74
|
+
e.preventDefault(), z(e, I + S);
|
|
75
|
+
break;
|
|
76
|
+
case "ArrowLeft":
|
|
77
|
+
if (t) break;
|
|
78
|
+
e.preventDefault(), z(e, I - S);
|
|
79
|
+
break;
|
|
80
|
+
case "Home":
|
|
81
|
+
if (t) break;
|
|
82
|
+
e.preventDefault(), z(e, b);
|
|
83
|
+
break;
|
|
84
|
+
case "End":
|
|
85
|
+
if (t || x == null) break;
|
|
86
|
+
e.preventDefault(), z(e, x);
|
|
87
|
+
break;
|
|
88
|
+
default: break;
|
|
89
|
+
}
|
|
90
|
+
}, J = /* @__PURE__ */ i(o, {
|
|
91
|
+
component: "input",
|
|
92
|
+
inputMode: "numeric",
|
|
93
|
+
value: String(I),
|
|
94
|
+
disabled: D,
|
|
95
|
+
role: j,
|
|
96
|
+
"aria-label": O,
|
|
97
|
+
"aria-labelledby": k,
|
|
98
|
+
"aria-valuenow": I,
|
|
99
|
+
"aria-valuemin": b,
|
|
100
|
+
"aria-valuemax": x,
|
|
101
|
+
"aria-disabled": D || void 0,
|
|
102
|
+
tabIndex: N,
|
|
103
|
+
onChange: (e) => {
|
|
104
|
+
let t = e.target.value, n = parseInt(t.replace(/[^0-9-]/g, ""), 10);
|
|
105
|
+
Number.isNaN(n) ? (t === "" || t === "-") && z(e, b) : z(e, n);
|
|
106
|
+
},
|
|
107
|
+
onFocus: (e) => e.target.select(),
|
|
108
|
+
sx: {
|
|
109
|
+
border: 0,
|
|
110
|
+
outline: "none",
|
|
111
|
+
p: 0,
|
|
112
|
+
background: "transparent",
|
|
113
|
+
font: "inherit",
|
|
114
|
+
color: "inherit",
|
|
115
|
+
WebkitTextFillColor: "currentcolor",
|
|
116
|
+
textAlign: "center",
|
|
117
|
+
fontVariantNumeric: "tabular-nums",
|
|
118
|
+
...W == null ? {
|
|
119
|
+
minWidth: "1ch",
|
|
120
|
+
width: `${String(I).length || 1}ch`
|
|
121
|
+
} : {
|
|
122
|
+
position: "absolute",
|
|
123
|
+
inset: 0,
|
|
124
|
+
width: "100%"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}), Y = (e) => {
|
|
128
|
+
let t = C === "default" ? (e.vars ?? e).palette.grey : (e.vars ?? e).palette[C];
|
|
129
|
+
return {
|
|
130
|
+
backgroundColor: t[800],
|
|
131
|
+
color: t[50],
|
|
132
|
+
"&:hover": {
|
|
133
|
+
backgroundColor: t[900],
|
|
134
|
+
color: t[100]
|
|
135
|
+
},
|
|
136
|
+
"&:active": { backgroundColor: t[900] },
|
|
137
|
+
"&.Mui-disabled": {
|
|
138
|
+
backgroundColor: t[800],
|
|
139
|
+
color: t[50],
|
|
140
|
+
opacity: .5
|
|
141
|
+
},
|
|
142
|
+
...e.applyStyles("dark", {
|
|
143
|
+
color: t[100],
|
|
144
|
+
"&:hover": { color: t[50] },
|
|
145
|
+
"&.Mui-disabled": { color: t[100] }
|
|
146
|
+
})
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
return /* @__PURE__ */ a(h, {
|
|
150
|
+
...P,
|
|
151
|
+
ref: c,
|
|
152
|
+
ownerState: R,
|
|
153
|
+
role: E ? void 0 : j,
|
|
154
|
+
"aria-label": E ? void 0 : O,
|
|
155
|
+
"aria-labelledby": E ? void 0 : k,
|
|
156
|
+
"aria-valuenow": E ? void 0 : I,
|
|
157
|
+
"aria-valuemin": E ? void 0 : b,
|
|
158
|
+
"aria-valuemax": E ? void 0 : x,
|
|
159
|
+
"aria-disabled": E ? void 0 : D || void 0,
|
|
160
|
+
tabIndex: E ? void 0 : N,
|
|
161
|
+
onKeyDown: q,
|
|
162
|
+
sx: [(e) => ({
|
|
163
|
+
display: "inline-flex",
|
|
164
|
+
alignItems: "center",
|
|
165
|
+
height: F.height,
|
|
166
|
+
borderRadius: `${e.shape.borderRadius}px`,
|
|
167
|
+
outline: "none",
|
|
168
|
+
[E ? "&:has(input:focus-visible)" : "&:focus-visible"]: {
|
|
169
|
+
outline: "2px solid",
|
|
170
|
+
outlineColor: (e.vars ?? e).palette.primary[800],
|
|
171
|
+
outlineOffset: 2
|
|
172
|
+
},
|
|
173
|
+
...U ? {
|
|
174
|
+
border: "1px solid",
|
|
175
|
+
borderColor: (e.vars ?? e).palette.divider,
|
|
176
|
+
overflow: "hidden"
|
|
177
|
+
} : { gap: 1 },
|
|
178
|
+
...D ? { opacity: .5 } : {}
|
|
179
|
+
}), ...e(M)],
|
|
180
|
+
children: [
|
|
181
|
+
/* @__PURE__ */ i(t, {
|
|
182
|
+
"aria-label": "Decrease",
|
|
183
|
+
size: F.iconButton,
|
|
184
|
+
color: H ? void 0 : C,
|
|
185
|
+
disabled: B,
|
|
186
|
+
sx: H ? Y : U ? [G, K] : K,
|
|
187
|
+
onClick: (e) => z(e, I - S),
|
|
188
|
+
children: /* @__PURE__ */ i(f, {})
|
|
189
|
+
}),
|
|
190
|
+
U && /* @__PURE__ */ i(o, { sx: {
|
|
191
|
+
width: "1px",
|
|
192
|
+
alignSelf: "stretch",
|
|
193
|
+
bgcolor: "divider"
|
|
194
|
+
} }),
|
|
195
|
+
/* @__PURE__ */ i(s, {
|
|
196
|
+
component: "span",
|
|
197
|
+
variant: F.typography,
|
|
198
|
+
sx: {
|
|
199
|
+
position: "relative",
|
|
200
|
+
minWidth: F.valueMinWidth,
|
|
201
|
+
px: 1,
|
|
202
|
+
alignSelf: "stretch",
|
|
203
|
+
display: "inline-flex",
|
|
204
|
+
alignItems: "center",
|
|
205
|
+
justifyContent: "center",
|
|
206
|
+
fontWeight: 500,
|
|
207
|
+
color: "text.primary",
|
|
208
|
+
fontVariantNumeric: "tabular-nums"
|
|
209
|
+
},
|
|
210
|
+
children: W == null ? E ? J : I : /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i(o, {
|
|
211
|
+
component: "span",
|
|
212
|
+
"aria-hidden": !0,
|
|
213
|
+
sx: { visibility: "hidden" },
|
|
214
|
+
children: W
|
|
215
|
+
}), E ? J : /* @__PURE__ */ i(o, {
|
|
216
|
+
component: "span",
|
|
217
|
+
sx: {
|
|
218
|
+
position: "absolute",
|
|
219
|
+
inset: 0,
|
|
220
|
+
display: "inline-flex",
|
|
221
|
+
alignItems: "center",
|
|
222
|
+
justifyContent: "center"
|
|
223
|
+
},
|
|
224
|
+
children: I
|
|
225
|
+
})] })
|
|
226
|
+
}),
|
|
227
|
+
U && /* @__PURE__ */ i(o, { sx: {
|
|
228
|
+
width: "1px",
|
|
229
|
+
alignSelf: "stretch",
|
|
230
|
+
bgcolor: "divider"
|
|
231
|
+
} }),
|
|
232
|
+
/* @__PURE__ */ i(t, {
|
|
233
|
+
"aria-label": "Increase",
|
|
234
|
+
size: F.iconButton,
|
|
235
|
+
color: H ? void 0 : C,
|
|
236
|
+
disabled: V,
|
|
237
|
+
sx: H ? Y : U ? [G, K] : K,
|
|
238
|
+
onClick: (e) => z(e, I + S),
|
|
239
|
+
children: /* @__PURE__ */ i(d, {})
|
|
240
|
+
})
|
|
241
|
+
]
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
g.displayName = "SQuantityInput";
|
|
245
|
+
//#endregion
|
|
246
|
+
export { g as SQuantityInput, g as default };
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { default, default as SRadialPulseAnimate } from './s-radial-pulse-animate';
|
|
2
|
-
export type { SRadialPulseAnimateProps } from './s-radial-pulse-animate';
|
|
2
|
+
export type { SRadialPulseAnimateOwnerState, SRadialPulseAnimateProps } from './s-radial-pulse-animate';
|
|
3
|
+
export type {} from '../theme/component-augmentation';
|