@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
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
import { toSxArray as e } from "../utils/sx.js";
|
|
2
|
+
import { SLazyImage as t } from "../s-lazy-image/s-lazy-image.js";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
import { Box as o, Container as s, Stack as c, SvgIcon as l, Typography as u, styled as d, useThemeProps as f } from "@mui/material";
|
|
6
|
+
import p from "@mui/utils/appendOwnerState";
|
|
7
|
+
//#region lib/s-status-illustration/s-status-illustration.tsx
|
|
8
|
+
var m = (e) => {
|
|
9
|
+
let t = (e.vars ?? e).palette;
|
|
10
|
+
return {
|
|
11
|
+
height: "auto",
|
|
12
|
+
maxHeight: 220,
|
|
13
|
+
maxWidth: 280,
|
|
14
|
+
width: "100%",
|
|
15
|
+
"& path, & rect, & circle, & line, & polyline, & polygon": { vectorEffect: "non-scaling-stroke" },
|
|
16
|
+
"& .SStatusIllustration-surface": { fill: t.background.paper },
|
|
17
|
+
"& .SStatusIllustration-surfaceStroke": { stroke: t.background.paper },
|
|
18
|
+
"& .SStatusIllustration-surfaceMuted": {
|
|
19
|
+
fill: t.grey[100],
|
|
20
|
+
...e.applyStyles("dark", { fill: t.grey[800] })
|
|
21
|
+
},
|
|
22
|
+
"& .SStatusIllustration-outline": { stroke: t.text.primary },
|
|
23
|
+
"& .SStatusIllustration-detail": { stroke: t.text.secondary },
|
|
24
|
+
"& .SStatusIllustration-accent": {
|
|
25
|
+
fill: t.primary.main,
|
|
26
|
+
stroke: "none"
|
|
27
|
+
},
|
|
28
|
+
"& .SStatusIllustration-accentStroke": {
|
|
29
|
+
fill: "none",
|
|
30
|
+
stroke: t.primary.main
|
|
31
|
+
},
|
|
32
|
+
"& .SStatusIllustration-accentSoft": { fill: t.primary.light },
|
|
33
|
+
"& .SStatusIllustration-error": {
|
|
34
|
+
fill: t.error.main,
|
|
35
|
+
stroke: "none"
|
|
36
|
+
},
|
|
37
|
+
"& .SStatusIllustration-errorStroke": {
|
|
38
|
+
fill: "none",
|
|
39
|
+
stroke: t.error.main
|
|
40
|
+
},
|
|
41
|
+
"& .SStatusIllustration-warning": {
|
|
42
|
+
fill: t.warning.main,
|
|
43
|
+
stroke: "none"
|
|
44
|
+
},
|
|
45
|
+
"& .SStatusIllustration-warningStroke": {
|
|
46
|
+
fill: "none",
|
|
47
|
+
stroke: t.warning.main
|
|
48
|
+
},
|
|
49
|
+
"& .SStatusIllustration-orange": {
|
|
50
|
+
fill: t.warning.dark,
|
|
51
|
+
stroke: "none"
|
|
52
|
+
},
|
|
53
|
+
"& .SStatusIllustration-orangeStroke": {
|
|
54
|
+
fill: "none",
|
|
55
|
+
stroke: t.warning.dark
|
|
56
|
+
},
|
|
57
|
+
"& .SStatusIllustration-info": {
|
|
58
|
+
fill: t.info.main,
|
|
59
|
+
stroke: "none"
|
|
60
|
+
},
|
|
61
|
+
"& .SStatusIllustration-infoStroke": {
|
|
62
|
+
fill: "none",
|
|
63
|
+
stroke: t.info.main
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
function h() {
|
|
68
|
+
return /* @__PURE__ */ i(r, { children: /* @__PURE__ */ a("g", {
|
|
69
|
+
transform: "translate(-5.5 -4)",
|
|
70
|
+
children: [
|
|
71
|
+
/* @__PURE__ */ i("path", {
|
|
72
|
+
className: "SStatusIllustration-surface SStatusIllustration-outline",
|
|
73
|
+
d: "M116 72H148L160 84H176C187 84 196 93 196 104V128C196 139 187 148 176 148H116C105 148 96 139 96 128V92C96 81 105 72 116 72Z",
|
|
74
|
+
strokeLinejoin: "round",
|
|
75
|
+
strokeWidth: "4"
|
|
76
|
+
}),
|
|
77
|
+
/* @__PURE__ */ i("circle", {
|
|
78
|
+
className: "SStatusIllustration-accent",
|
|
79
|
+
cx: "176",
|
|
80
|
+
cy: "120",
|
|
81
|
+
r: "8"
|
|
82
|
+
}),
|
|
83
|
+
/* @__PURE__ */ i("circle", {
|
|
84
|
+
className: "SStatusIllustration-surface SStatusIllustration-outline",
|
|
85
|
+
cx: "100",
|
|
86
|
+
cy: "72",
|
|
87
|
+
r: "32",
|
|
88
|
+
strokeWidth: "4"
|
|
89
|
+
}),
|
|
90
|
+
/* @__PURE__ */ i("path", {
|
|
91
|
+
className: "SStatusIllustration-outline",
|
|
92
|
+
d: "M77.3726 94.6274L60 112",
|
|
93
|
+
strokeLinecap: "round",
|
|
94
|
+
strokeWidth: "14"
|
|
95
|
+
}),
|
|
96
|
+
/* @__PURE__ */ i("path", {
|
|
97
|
+
className: "SStatusIllustration-surfaceStroke",
|
|
98
|
+
d: "M77.3726 94.6274L60 112",
|
|
99
|
+
fill: "none",
|
|
100
|
+
strokeLinecap: "round",
|
|
101
|
+
strokeWidth: "6"
|
|
102
|
+
})
|
|
103
|
+
]
|
|
104
|
+
}) });
|
|
105
|
+
}
|
|
106
|
+
function g() {
|
|
107
|
+
return /* @__PURE__ */ i(r, { children: /* @__PURE__ */ a("g", {
|
|
108
|
+
transform: "translate(120 90) scale(1.1428571429) translate(-120 -80)",
|
|
109
|
+
children: [
|
|
110
|
+
/* @__PURE__ */ i("path", {
|
|
111
|
+
className: "SStatusIllustration-outline",
|
|
112
|
+
d: "M72 96A48 48 0 0 1 168 96M52 96H96M144 96H188M52 112H96M144 112H188",
|
|
113
|
+
fill: "none",
|
|
114
|
+
strokeLinecap: "round",
|
|
115
|
+
strokeLinejoin: "round",
|
|
116
|
+
strokeWidth: "4"
|
|
117
|
+
}),
|
|
118
|
+
/* @__PURE__ */ i("circle", {
|
|
119
|
+
className: "SStatusIllustration-surface SStatusIllustration-outline",
|
|
120
|
+
cx: "120",
|
|
121
|
+
cy: "88",
|
|
122
|
+
r: "7",
|
|
123
|
+
strokeWidth: "4"
|
|
124
|
+
}),
|
|
125
|
+
/* @__PURE__ */ i("path", {
|
|
126
|
+
className: "SStatusIllustration-accent SStatusIllustration-accentStroke",
|
|
127
|
+
d: "M96 112H144",
|
|
128
|
+
strokeLinecap: "round",
|
|
129
|
+
strokeWidth: "4"
|
|
130
|
+
})
|
|
131
|
+
]
|
|
132
|
+
}) });
|
|
133
|
+
}
|
|
134
|
+
function _() {
|
|
135
|
+
return /* @__PURE__ */ i(r, { children: /* @__PURE__ */ a("g", {
|
|
136
|
+
transform: "translate(-4 -8)",
|
|
137
|
+
children: [
|
|
138
|
+
/* @__PURE__ */ i("path", {
|
|
139
|
+
className: "SStatusIllustration-outline",
|
|
140
|
+
d: "M64 122H56V58C56 49.2 63.2 42 72 42H152V72",
|
|
141
|
+
fill: "none",
|
|
142
|
+
strokeLinecap: "round",
|
|
143
|
+
strokeLinejoin: "round",
|
|
144
|
+
strokeWidth: "4"
|
|
145
|
+
}),
|
|
146
|
+
/* @__PURE__ */ i("rect", {
|
|
147
|
+
className: "SStatusIllustration-surface SStatusIllustration-outline",
|
|
148
|
+
x: "80",
|
|
149
|
+
y: "66",
|
|
150
|
+
width: "112",
|
|
151
|
+
height: "72",
|
|
152
|
+
rx: "16",
|
|
153
|
+
strokeWidth: "4"
|
|
154
|
+
}),
|
|
155
|
+
/* @__PURE__ */ i("path", {
|
|
156
|
+
className: "SStatusIllustration-outline",
|
|
157
|
+
d: "M112 138V154H160V138",
|
|
158
|
+
fill: "none",
|
|
159
|
+
strokeLinecap: "round",
|
|
160
|
+
strokeLinejoin: "round",
|
|
161
|
+
strokeWidth: "4"
|
|
162
|
+
}),
|
|
163
|
+
/* @__PURE__ */ i("circle", {
|
|
164
|
+
className: "SStatusIllustration-error",
|
|
165
|
+
cx: "136",
|
|
166
|
+
cy: "102",
|
|
167
|
+
r: "7"
|
|
168
|
+
})
|
|
169
|
+
]
|
|
170
|
+
}) });
|
|
171
|
+
}
|
|
172
|
+
function v() {
|
|
173
|
+
return /* @__PURE__ */ i(r, { children: /* @__PURE__ */ a("g", {
|
|
174
|
+
transform: "translate(-12 -2)",
|
|
175
|
+
children: [
|
|
176
|
+
/* @__PURE__ */ i("path", {
|
|
177
|
+
className: "SStatusIllustration-surface SStatusIllustration-outline",
|
|
178
|
+
d: "M88 34H136L168 66V126C168 139.3 157.3 150 144 150H88C74.7 150 64 139.3 64 126V58C64 44.7 74.7 34 88 34Z",
|
|
179
|
+
strokeWidth: "4"
|
|
180
|
+
}),
|
|
181
|
+
/* @__PURE__ */ i("path", {
|
|
182
|
+
className: "SStatusIllustration-accentSoft SStatusIllustration-outline",
|
|
183
|
+
d: "M136 34V66H168L136 34Z",
|
|
184
|
+
strokeLinejoin: "round",
|
|
185
|
+
strokeWidth: "4"
|
|
186
|
+
}),
|
|
187
|
+
/* @__PURE__ */ i("rect", {
|
|
188
|
+
className: "SStatusIllustration-surface SStatusIllustration-outline",
|
|
189
|
+
x: "104",
|
|
190
|
+
y: "78",
|
|
191
|
+
width: "96",
|
|
192
|
+
height: "56",
|
|
193
|
+
rx: "18",
|
|
194
|
+
strokeWidth: "4"
|
|
195
|
+
}),
|
|
196
|
+
/* @__PURE__ */ i("circle", {
|
|
197
|
+
className: "SStatusIllustration-error",
|
|
198
|
+
cx: "152",
|
|
199
|
+
cy: "106",
|
|
200
|
+
r: "8"
|
|
201
|
+
})
|
|
202
|
+
]
|
|
203
|
+
}) });
|
|
204
|
+
}
|
|
205
|
+
function y() {
|
|
206
|
+
return /* @__PURE__ */ i(r, { children: /* @__PURE__ */ a("g", {
|
|
207
|
+
transform: "translate(6 -4)",
|
|
208
|
+
children: [
|
|
209
|
+
/* @__PURE__ */ i("path", {
|
|
210
|
+
className: "SStatusIllustration-surface SStatusIllustration-outline",
|
|
211
|
+
d: "M104 36C91.2 46.7 76.8 50.7 56 52V88C56 120 74.7 140 104 152C133.3 140 152 120 152 88V52C131.2 50.7 116.8 46.7 104 36Z",
|
|
212
|
+
strokeLinejoin: "round",
|
|
213
|
+
strokeWidth: "4"
|
|
214
|
+
}),
|
|
215
|
+
/* @__PURE__ */ i("path", {
|
|
216
|
+
className: "SStatusIllustration-detail",
|
|
217
|
+
d: "M104 64V140",
|
|
218
|
+
fill: "none",
|
|
219
|
+
strokeLinecap: "round",
|
|
220
|
+
strokeWidth: "4"
|
|
221
|
+
}),
|
|
222
|
+
/* @__PURE__ */ i("circle", {
|
|
223
|
+
className: "SStatusIllustration-surface SStatusIllustration-outline",
|
|
224
|
+
cx: "104",
|
|
225
|
+
cy: "58",
|
|
226
|
+
r: "6",
|
|
227
|
+
strokeWidth: "4"
|
|
228
|
+
}),
|
|
229
|
+
/* @__PURE__ */ i("path", {
|
|
230
|
+
className: "SStatusIllustration-outline",
|
|
231
|
+
d: "M136 98V88A12 16 0 0 1 160 88V98",
|
|
232
|
+
fill: "none",
|
|
233
|
+
strokeLinecap: "round",
|
|
234
|
+
strokeWidth: "4"
|
|
235
|
+
}),
|
|
236
|
+
/* @__PURE__ */ i("rect", {
|
|
237
|
+
className: "SStatusIllustration-surface SStatusIllustration-outline",
|
|
238
|
+
x: "124",
|
|
239
|
+
y: "96",
|
|
240
|
+
width: "48",
|
|
241
|
+
height: "48",
|
|
242
|
+
rx: "10",
|
|
243
|
+
strokeWidth: "4"
|
|
244
|
+
}),
|
|
245
|
+
/* @__PURE__ */ i("circle", {
|
|
246
|
+
className: "SStatusIllustration-accent",
|
|
247
|
+
cx: "148",
|
|
248
|
+
cy: "116",
|
|
249
|
+
r: "5"
|
|
250
|
+
}),
|
|
251
|
+
/* @__PURE__ */ i("path", {
|
|
252
|
+
className: "SStatusIllustration-accent SStatusIllustration-accentStroke",
|
|
253
|
+
d: "M148 120V130",
|
|
254
|
+
strokeLinecap: "round",
|
|
255
|
+
strokeWidth: "3"
|
|
256
|
+
})
|
|
257
|
+
]
|
|
258
|
+
}) });
|
|
259
|
+
}
|
|
260
|
+
function b() {
|
|
261
|
+
return /* @__PURE__ */ i(r, { children: /* @__PURE__ */ a("g", {
|
|
262
|
+
transform: "translate(0 -5)",
|
|
263
|
+
children: [/* @__PURE__ */ i("path", {
|
|
264
|
+
className: "SStatusIllustration-outline",
|
|
265
|
+
d: "M72 120C54.3 120 40 105.7 40 88C40 70.3 54.3 56 72 56C78.1 56 83.8 57.7 88.6 60.7C96.1 47.3 110.5 38.2 127 38.2C149.8 38.2 168.5 55.5 170.8 77.7C187.4 78.6 200.6 92.3 200.6 109.2C200.6 113 199.9 116.6 198.7 120",
|
|
266
|
+
fill: "none",
|
|
267
|
+
strokeLinecap: "round",
|
|
268
|
+
strokeLinejoin: "round",
|
|
269
|
+
strokeWidth: "4"
|
|
270
|
+
}), /* @__PURE__ */ a("g", {
|
|
271
|
+
transform: "translate(-12)",
|
|
272
|
+
children: [
|
|
273
|
+
/* @__PURE__ */ i("circle", {
|
|
274
|
+
className: "SStatusIllustration-error",
|
|
275
|
+
cx: "88",
|
|
276
|
+
cy: "120",
|
|
277
|
+
r: "12",
|
|
278
|
+
stroke: "none"
|
|
279
|
+
}),
|
|
280
|
+
/* @__PURE__ */ i("path", {
|
|
281
|
+
className: "SStatusIllustration-outline",
|
|
282
|
+
d: "M108 125L156 137",
|
|
283
|
+
fill: "none",
|
|
284
|
+
strokeLinecap: "round",
|
|
285
|
+
strokeWidth: "4"
|
|
286
|
+
}),
|
|
287
|
+
/* @__PURE__ */ i("circle", {
|
|
288
|
+
className: "SStatusIllustration-warning",
|
|
289
|
+
cx: "176",
|
|
290
|
+
cy: "142",
|
|
291
|
+
r: "12",
|
|
292
|
+
stroke: "none"
|
|
293
|
+
})
|
|
294
|
+
]
|
|
295
|
+
})]
|
|
296
|
+
}) });
|
|
297
|
+
}
|
|
298
|
+
function x() {
|
|
299
|
+
return /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a("g", {
|
|
300
|
+
transform: "translate(120 90) rotate(45)",
|
|
301
|
+
children: [/* @__PURE__ */ i("path", {
|
|
302
|
+
className: "SStatusIllustration-accent SStatusIllustration-accentStroke",
|
|
303
|
+
d: "M-68 0H-22",
|
|
304
|
+
strokeLinecap: "round",
|
|
305
|
+
strokeWidth: "14"
|
|
306
|
+
}), /* @__PURE__ */ i("path", {
|
|
307
|
+
className: "SStatusIllustration-orange SStatusIllustration-orangeStroke",
|
|
308
|
+
d: "M22 0H68",
|
|
309
|
+
strokeLinecap: "round",
|
|
310
|
+
strokeWidth: "14"
|
|
311
|
+
})]
|
|
312
|
+
}), /* @__PURE__ */ i("g", {
|
|
313
|
+
transform: "translate(120 90) rotate(-45)",
|
|
314
|
+
children: /* @__PURE__ */ i("path", {
|
|
315
|
+
className: "SStatusIllustration-surface SStatusIllustration-outline",
|
|
316
|
+
d: "M-28,-7H28C32,-7 32,-20 42,-20A20,20 0 0 1 59.3205,-10L52,-5.5Q44,0 52,5.5L59.3205,10A20,20 0 0 1 42,20C32,20 32,7 28,7H-28C-32,7-32,20-42,20A20,20 0 0 1-59.3205,10L-52,5.5Q-44,0-52,-5.5L-59.3205,-10A20,20 0 0 1-42,-20C-32,-20-32,-7-28,-7Z",
|
|
317
|
+
strokeLinecap: "round",
|
|
318
|
+
strokeLinejoin: "round",
|
|
319
|
+
strokeWidth: "4"
|
|
320
|
+
})
|
|
321
|
+
})] });
|
|
322
|
+
}
|
|
323
|
+
var S = {
|
|
324
|
+
accessDenied: /* @__PURE__ */ i(y, {}),
|
|
325
|
+
error: /* @__PURE__ */ i(v, {}),
|
|
326
|
+
error404: /* @__PURE__ */ i(g, {}),
|
|
327
|
+
itemNotFound: /* @__PURE__ */ i(h, {}),
|
|
328
|
+
maintenance: /* @__PURE__ */ i(x, {}),
|
|
329
|
+
offline: /* @__PURE__ */ i(b, {}),
|
|
330
|
+
somethingWentWrong: /* @__PURE__ */ i(_, {})
|
|
331
|
+
}, C = d(l, { shouldForwardProp: (e) => e !== "ownerState" })({}), w = n.forwardRef(function(t, n) {
|
|
332
|
+
let { children: r, sx: a, variant: o, ...s } = t, c = o === "custom" ? r : S[o];
|
|
333
|
+
return /* @__PURE__ */ i(C, {
|
|
334
|
+
fill: "none",
|
|
335
|
+
focusable: "false",
|
|
336
|
+
shapeRendering: "geometricPrecision",
|
|
337
|
+
viewBox: "0 0 240 180",
|
|
338
|
+
...s,
|
|
339
|
+
"data-variant": o,
|
|
340
|
+
ref: n,
|
|
341
|
+
sx: [m, ...e(a)],
|
|
342
|
+
children: c
|
|
343
|
+
});
|
|
344
|
+
}), T = d(o, {
|
|
345
|
+
name: "SStatusIllustration",
|
|
346
|
+
slot: "Root",
|
|
347
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
348
|
+
})({});
|
|
349
|
+
function E(e, t) {
|
|
350
|
+
return typeof e == "function" ? e(t) : e;
|
|
351
|
+
}
|
|
352
|
+
var D = n.forwardRef(function(n, r) {
|
|
353
|
+
let { action: l, children: d, description: m, hideIllustration: h = !1, imageAlt: g = "", imageSrc: _, slotProps: v, slots: y, sx: b, title: x, variant: S = "itemNotFound", ...C } = f({
|
|
354
|
+
props: n,
|
|
355
|
+
name: "SStatusIllustration"
|
|
356
|
+
}), D = {
|
|
357
|
+
hasAction: l != null,
|
|
358
|
+
hasImage: !h && !!(_ || S),
|
|
359
|
+
variant: S
|
|
360
|
+
}, O = y?.container ?? s, k = y?.stack ?? c, A = y?.imageContainer ?? o, j = y?.image ?? t, M = y?.illustration, N = y?.content ?? c, P = y?.title ?? u, F = y?.description ?? u, I = y?.action ?? o, L = p(y?.container, E(v?.container, D) ?? {}, D), R = p(y?.stack, E(v?.stack, D) ?? {}, D), z = p(y?.imageContainer, E(v?.imageContainer, D) ?? {}, D), B = p(y?.illustration, E(v?.illustration, D) ?? {}, D), V = p(y?.image, E(v?.image, D) ?? {}, D), H = p(y?.content, E(v?.content, D) ?? {}, D), U = p(y?.title, E(v?.title, D) ?? {}, D), W = p(y?.description, E(v?.description, D) ?? {}, D), G = p(y?.action, E(v?.action, D) ?? {}, D), { sx: K, ...q } = z, { sx: J, ...Y } = H, { sx: X, ...Z } = W, { sx: Q, ...$ } = G;
|
|
361
|
+
return /* @__PURE__ */ i(T, {
|
|
362
|
+
...C,
|
|
363
|
+
ownerState: D,
|
|
364
|
+
ref: r,
|
|
365
|
+
sx: [{
|
|
366
|
+
alignItems: "center",
|
|
367
|
+
boxSizing: "border-box",
|
|
368
|
+
display: "flex",
|
|
369
|
+
flexDirection: "column",
|
|
370
|
+
justifyContent: "center",
|
|
371
|
+
minHeight: "100dvh",
|
|
372
|
+
py: 8
|
|
373
|
+
}, ...e(b)],
|
|
374
|
+
children: /* @__PURE__ */ i(O, {
|
|
375
|
+
maxWidth: "sm",
|
|
376
|
+
...L,
|
|
377
|
+
children: /* @__PURE__ */ a(k, {
|
|
378
|
+
spacing: 4,
|
|
379
|
+
...R,
|
|
380
|
+
children: [
|
|
381
|
+
!h && (M || _ || S) ? /* @__PURE__ */ i(A, {
|
|
382
|
+
...q,
|
|
383
|
+
sx: [{
|
|
384
|
+
display: "flex",
|
|
385
|
+
justifyContent: "center"
|
|
386
|
+
}, ...e(K)],
|
|
387
|
+
children: M ? /* @__PURE__ */ i(M, { ...B }) : _ ? /* @__PURE__ */ i(j, {
|
|
388
|
+
alt: g,
|
|
389
|
+
height: "auto",
|
|
390
|
+
src: _,
|
|
391
|
+
width: 200,
|
|
392
|
+
...V
|
|
393
|
+
}) : /* @__PURE__ */ i(w, {
|
|
394
|
+
...B,
|
|
395
|
+
variant: S,
|
|
396
|
+
children: d
|
|
397
|
+
})
|
|
398
|
+
}) : null,
|
|
399
|
+
/* @__PURE__ */ a(N, {
|
|
400
|
+
spacing: 1,
|
|
401
|
+
...Y,
|
|
402
|
+
sx: [{ textAlign: "center" }, ...e(J)],
|
|
403
|
+
children: [/* @__PURE__ */ i(P, {
|
|
404
|
+
variant: "h4",
|
|
405
|
+
...U,
|
|
406
|
+
children: x
|
|
407
|
+
}), /* @__PURE__ */ i(F, {
|
|
408
|
+
variant: "body1",
|
|
409
|
+
...Z,
|
|
410
|
+
sx: [{ color: "text.secondary" }, ...e(X)],
|
|
411
|
+
children: m
|
|
412
|
+
})]
|
|
413
|
+
}),
|
|
414
|
+
l == null ? null : /* @__PURE__ */ i(I, {
|
|
415
|
+
...$,
|
|
416
|
+
sx: [{
|
|
417
|
+
display: "flex",
|
|
418
|
+
justifyContent: "center"
|
|
419
|
+
}, ...e(Q)],
|
|
420
|
+
children: l
|
|
421
|
+
})
|
|
422
|
+
]
|
|
423
|
+
})
|
|
424
|
+
})
|
|
425
|
+
});
|
|
426
|
+
});
|
|
427
|
+
D.displayName = "SStatusIllustration";
|
|
428
|
+
//#endregion
|
|
429
|
+
export { D as SStatusIllustration, D as default };
|
package/dist/s-stripe/index.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
export { StripeTextField } from './s-stripe';
|
|
2
2
|
export { SStripeNumber } from './s-stripe-number';
|
|
3
|
+
export type { SStripeNumberProps } from './s-stripe-number';
|
|
3
4
|
export { SStripeExpiry } from './s-stripe-expiry';
|
|
5
|
+
export type { SStripeExpiryProps } from './s-stripe-expiry';
|
|
4
6
|
export { SStripeCVC } from './s-stripe-cvc';
|
|
5
|
-
export type {
|
|
7
|
+
export type { SStripeCVCProps } from './s-stripe-cvc';
|
|
8
|
+
export type { StripeElement, StripeTextFieldComponent, StripeTextFieldOwnerState, StripeTextFieldProps, } from './s-stripe';
|
|
9
|
+
export type {} from '../theme/component-augmentation';
|
|
10
|
+
export type {} from '../theme/optional-component-augmentations/s-stripe';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CardCvcElement } from '@stripe/react-stripe-js';
|
|
1
2
|
import { StripeTextFieldProps } from './s-stripe';
|
|
2
|
-
export
|
|
3
|
+
export type SStripeCVCProps = Omit<StripeTextFieldProps<typeof CardCvcElement>, 'stripeElement'>;
|
|
4
|
+
export declare const SStripeCVC: import('react').ForwardRefExoticComponent<Omit<SStripeCVCProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
3
5
|
export default SStripeCVC;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CardExpiryElement } from '@stripe/react-stripe-js';
|
|
1
2
|
import { StripeTextFieldProps } from './s-stripe';
|
|
2
|
-
export
|
|
3
|
+
export type SStripeExpiryProps = Omit<StripeTextFieldProps<typeof CardExpiryElement>, 'stripeElement'>;
|
|
4
|
+
export declare const SStripeExpiry: import('react').ForwardRefExoticComponent<Omit<SStripeExpiryProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
3
5
|
export default SStripeExpiry;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CardNumberElement } from '@stripe/react-stripe-js';
|
|
1
2
|
import { StripeTextFieldProps } from './s-stripe';
|
|
2
|
-
export
|
|
3
|
+
export type SStripeNumberProps = Omit<StripeTextFieldProps<typeof CardNumberElement>, 'stripeElement'>;
|
|
4
|
+
export declare const SStripeNumber: import('react').ForwardRefExoticComponent<Omit<SStripeNumberProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
3
5
|
export default SStripeNumber;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { AuBankAccountElement, CardCvcElement, CardExpiryElement, CardNumberElement, IbanElement } from '@stripe/react-stripe-js';
|
|
3
2
|
import { STextFieldProps } from '../s-text-field';
|
|
3
|
+
import * as React from 'react';
|
|
4
4
|
/**
|
|
5
5
|
* Union type of all supported Stripe Elements
|
|
6
6
|
* Includes card payment elements and various regional payment methods
|
|
7
7
|
*/
|
|
8
8
|
export type StripeElement = typeof AuBankAccountElement | typeof CardCvcElement | typeof CardExpiryElement | typeof CardNumberElement | typeof IbanElement;
|
|
9
|
+
type StripeElementProps<T extends StripeElement> = React.ComponentProps<T>;
|
|
10
|
+
export interface StripeTextFieldOwnerState {
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
error: boolean;
|
|
13
|
+
}
|
|
9
14
|
/**
|
|
10
15
|
* Props for Stripe-integrated text field components
|
|
11
16
|
* Extends STextField props but excludes conflicting props that are handled by Stripe
|
|
@@ -16,9 +21,11 @@ export interface StripeTextFieldProps<T extends StripeElement> extends Omit<STex
|
|
|
16
21
|
/** Custom error message to display when validation fails */
|
|
17
22
|
labelErrorMessage?: string;
|
|
18
23
|
/** Change handler for Stripe Element events */
|
|
19
|
-
onChange?:
|
|
24
|
+
onChange?: StripeElementProps<T>['onChange'];
|
|
25
|
+
/** Called when the Stripe Element is ready for imperative focus. */
|
|
26
|
+
onReady?: StripeElementProps<T>['onReady'];
|
|
20
27
|
/** The Stripe Element component to render */
|
|
21
|
-
stripeElement
|
|
28
|
+
stripeElement: T;
|
|
22
29
|
}
|
|
23
30
|
/**
|
|
24
31
|
* Type definition for StripeTextField component with generic Stripe Element support
|
|
@@ -1,33 +1,59 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { STextField as e } from "../s-text-field/s-text-field.js";
|
|
2
2
|
import t from "./stripe-input.js";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
3
|
+
import { styled as n, useThemeProps as r } from "@mui/material/styles";
|
|
4
|
+
import * as i from "react";
|
|
5
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
5
6
|
//#region lib/s-stripe/s-stripe.tsx
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
var o = n(e, {
|
|
8
|
+
name: "StripeTextField",
|
|
9
|
+
slot: "Root",
|
|
10
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
11
|
+
})({});
|
|
12
|
+
function s(...e) {
|
|
13
|
+
let t = e.filter((e) => typeof e == "function");
|
|
14
|
+
if (t.length !== 0) return (e) => {
|
|
15
|
+
t.forEach((t) => t(e));
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
var c = i.forwardRef((e, n) => {
|
|
19
|
+
let i = r({
|
|
20
|
+
props: e,
|
|
21
|
+
name: "StripeTextField"
|
|
22
|
+
}), { disabled: c = !1, error: l = !1, helperText: u, inputProps: d, labelErrorMessage: f, onChange: p, onReady: m, slotProps: h, stripeElement: g, ..._ } = i, v = {
|
|
23
|
+
...i,
|
|
24
|
+
disabled: c,
|
|
25
|
+
error: l
|
|
26
|
+
}, y = (e) => ({
|
|
27
|
+
...typeof h?.inputLabel == "function" ? h.inputLabel(e) : h?.inputLabel,
|
|
28
|
+
shrink: !0
|
|
29
|
+
}), b = (e) => {
|
|
30
|
+
let n = typeof h?.input == "function" ? h.input(e) : h?.input, r = n?.inputProps ?? {}, i = {
|
|
31
|
+
...d,
|
|
32
|
+
...r,
|
|
33
|
+
component: g,
|
|
34
|
+
onChange: s(p, d?.onChange, r.onChange),
|
|
35
|
+
onReady: s(m, d?.onReady, r.onReady)
|
|
36
|
+
};
|
|
37
|
+
return {
|
|
38
|
+
...n,
|
|
39
|
+
inputComponent: t,
|
|
40
|
+
inputProps: i
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
return /* @__PURE__ */ a(o, {
|
|
44
|
+
..._,
|
|
45
|
+
disabled: c,
|
|
46
|
+
error: l,
|
|
47
|
+
helperText: l ? f : u,
|
|
48
|
+
ownerState: v,
|
|
49
|
+
ref: n,
|
|
10
50
|
slotProps: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
input: {
|
|
16
|
-
...o?.input,
|
|
17
|
-
inputProps: {
|
|
18
|
-
...s,
|
|
19
|
-
...p,
|
|
20
|
-
component: u
|
|
21
|
-
},
|
|
22
|
-
inputComponent: t
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
error: c,
|
|
26
|
-
helperText: c ? l : a,
|
|
27
|
-
onChange: d,
|
|
28
|
-
...f
|
|
51
|
+
...h,
|
|
52
|
+
input: b,
|
|
53
|
+
inputLabel: y
|
|
54
|
+
}
|
|
29
55
|
});
|
|
30
56
|
});
|
|
31
|
-
|
|
57
|
+
c.displayName = "StripeTextField";
|
|
32
58
|
//#endregion
|
|
33
|
-
export {
|
|
59
|
+
export { c as StripeTextField, c as default };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { t as e } from "../theme-primitives-
|
|
1
|
+
import { t as e } from "../theme-primitives-CRfnMsNy.js";
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
import
|
|
4
|
+
import "@fontsource/outfit";
|
|
5
|
+
//#region lib/s-stripe/stripe-input.tsx
|
|
5
6
|
function r(e) {
|
|
6
7
|
let t = e.match(/^hsl\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%\s*\)$/i);
|
|
7
8
|
if (!t) return e;
|
|
@@ -41,31 +42,58 @@ function c(e, t) {
|
|
|
41
42
|
invalid: { color: e.error }
|
|
42
43
|
};
|
|
43
44
|
}
|
|
44
|
-
|
|
45
|
-
let
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
function l(e, t, n) {
|
|
46
|
+
let r = c(e, t);
|
|
47
|
+
return {
|
|
48
|
+
...r,
|
|
49
|
+
...n,
|
|
50
|
+
base: {
|
|
51
|
+
...r.base,
|
|
52
|
+
...n.base
|
|
53
|
+
},
|
|
54
|
+
invalid: {
|
|
55
|
+
...r.invalid,
|
|
56
|
+
...n.invalid
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
var u = t.forwardRef(function(e, r) {
|
|
61
|
+
let { component: i, onReady: a, options: o, ...c } = e, u = t.useMemo(() => o?.style ?? {}, [o?.style]), [d, f] = t.useState(null);
|
|
62
|
+
t.useImperativeHandle(r, () => ({ focus: () => d?.focus() }), [d]), t.useEffect(() => {
|
|
63
|
+
if (!d) return;
|
|
48
64
|
let e = () => {
|
|
49
65
|
let e = s();
|
|
50
|
-
|
|
51
|
-
}, t =
|
|
52
|
-
|
|
53
|
-
|
|
66
|
+
d.update({ style: l(e, c.disabled, u) });
|
|
67
|
+
}, t = null, n = () => {
|
|
68
|
+
t === null && (t = requestAnimationFrame(() => {
|
|
69
|
+
t = null, e();
|
|
70
|
+
}));
|
|
71
|
+
}, r = new MutationObserver((e) => {
|
|
72
|
+
for (let t of e) if (t.attributeName === "data-mui-color-scheme" || t.attributeName === "class" || t.attributeName === "style") {
|
|
73
|
+
n();
|
|
54
74
|
break;
|
|
55
75
|
}
|
|
56
76
|
});
|
|
57
|
-
return
|
|
58
|
-
|
|
59
|
-
|
|
77
|
+
return r.observe(document.documentElement, { attributes: !0 }), () => {
|
|
78
|
+
r.disconnect(), t !== null && cancelAnimationFrame(t);
|
|
79
|
+
};
|
|
80
|
+
}, [
|
|
81
|
+
u,
|
|
82
|
+
c.disabled,
|
|
83
|
+
d
|
|
84
|
+
]);
|
|
85
|
+
let p = l(s(), c.disabled, u);
|
|
60
86
|
return /* @__PURE__ */ n(i, {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
style: c(d, o.disabled),
|
|
65
|
-
disabled: o.disabled
|
|
87
|
+
...c,
|
|
88
|
+
onReady: (e) => {
|
|
89
|
+
f(e), a?.(e);
|
|
66
90
|
},
|
|
67
|
-
|
|
91
|
+
options: {
|
|
92
|
+
...o,
|
|
93
|
+
style: p,
|
|
94
|
+
disabled: c.disabled
|
|
95
|
+
}
|
|
68
96
|
});
|
|
69
97
|
});
|
|
70
98
|
//#endregion
|
|
71
|
-
export {
|
|
99
|
+
export { u as default };
|
package/dist/s-switch/index.d.ts
CHANGED