@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,266 @@
|
|
|
1
|
+
import { toSxArray as e } from "../utils/sx.js";
|
|
2
|
+
import { DefaultMediaItem as t } from "./default-media-item.js";
|
|
3
|
+
import { ImageViewerThumbnailDock as n } from "./image-viewer-thumbnail-dock.js";
|
|
4
|
+
import { useImageViewerNavigation as r } from "./use-image-viewer-navigation.js";
|
|
5
|
+
import { styled as i, useThemeProps as a } from "@mui/material/styles";
|
|
6
|
+
import o from "react";
|
|
7
|
+
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
8
|
+
import { ChevronLeft as u, ChevronRight as d, Close as f } from "@mui/icons-material";
|
|
9
|
+
import { Box as p, IconButton as m, Modal as h, Paper as g, Typography as _ } from "@mui/material";
|
|
10
|
+
import { mergeSlotProps as v } from "@mui/material/utils";
|
|
11
|
+
import { AnimatePresence as y, motion as b, useReducedMotion as x } from "framer-motion";
|
|
12
|
+
//#region lib/s-image-viewer/s-image-viewer.tsx
|
|
13
|
+
var S = i(h, {
|
|
14
|
+
name: "SImageViewer",
|
|
15
|
+
slot: "Root"
|
|
16
|
+
})({}), C = o.forwardRef(function(i, o) {
|
|
17
|
+
let h = a({
|
|
18
|
+
props: i,
|
|
19
|
+
name: "SImageViewer"
|
|
20
|
+
}), { "aria-label": C, "aria-labelledby": w, selectedItem: T, defaultSelectedItem: E, open: D, onClose: O, onCloseButtonClick: k, onItemChange: A, mediaItems: j = [], renderMediaItem: M, showNavigation: N = !0, showThumbnailDock: P = !0, showCounter: F = !0, closeText: I = "Close", previousText: L = "Previous image", nextText: R = "Next image", getThumbnailLabel: z, slotProps: B, sx: V, ...H } = h, { currentSelectedItem: U, navigationEnabled: W, currentIndex: G, totalItems: K, selectItem: q, goToPrevious: J, goToNext: Y, handleKeyDown: X } = r({
|
|
21
|
+
selectedItem: T,
|
|
22
|
+
defaultSelectedItem: E,
|
|
23
|
+
onItemChange: A,
|
|
24
|
+
mediaItems: j,
|
|
25
|
+
showNavigation: N
|
|
26
|
+
}), Z = {
|
|
27
|
+
...h,
|
|
28
|
+
currentIndex: G,
|
|
29
|
+
navigationEnabled: W
|
|
30
|
+
}, Q = x();
|
|
31
|
+
return U ? /* @__PURE__ */ c(S, {
|
|
32
|
+
...H,
|
|
33
|
+
ownerState: Z,
|
|
34
|
+
open: D,
|
|
35
|
+
onClose: O,
|
|
36
|
+
ref: o,
|
|
37
|
+
sx: [(e) => ({ zIndex: e.zIndex.modal + 100 }), ...e(V)],
|
|
38
|
+
slotProps: {
|
|
39
|
+
...B,
|
|
40
|
+
backdrop: v(B?.backdrop, { sx: {
|
|
41
|
+
backdropFilter: "blur(8px)",
|
|
42
|
+
zIndex: (e) => e.zIndex.modal + 99
|
|
43
|
+
} })
|
|
44
|
+
},
|
|
45
|
+
children: /* @__PURE__ */ l(p, {
|
|
46
|
+
onKeyDown: X,
|
|
47
|
+
children: [/* @__PURE__ */ c(b.div, {
|
|
48
|
+
initial: Q ? !1 : { scale: .98 },
|
|
49
|
+
animate: { scale: 1 },
|
|
50
|
+
exit: Q ? void 0 : { scale: .98 },
|
|
51
|
+
transition: Q ? { duration: 0 } : {
|
|
52
|
+
type: "spring",
|
|
53
|
+
stiffness: 400,
|
|
54
|
+
damping: 30
|
|
55
|
+
},
|
|
56
|
+
children: /* @__PURE__ */ l(g, {
|
|
57
|
+
"aria-label": C,
|
|
58
|
+
"aria-labelledby": w,
|
|
59
|
+
"aria-modal": !0,
|
|
60
|
+
role: "dialog",
|
|
61
|
+
sx: {
|
|
62
|
+
position: "fixed",
|
|
63
|
+
inset: 0,
|
|
64
|
+
width: "100%",
|
|
65
|
+
minHeight: "100vh",
|
|
66
|
+
borderRadius: 0,
|
|
67
|
+
overflow: "hidden",
|
|
68
|
+
zIndex: (e) => e.zIndex.modal + 101
|
|
69
|
+
},
|
|
70
|
+
children: [
|
|
71
|
+
/* @__PURE__ */ c(p, {
|
|
72
|
+
sx: {
|
|
73
|
+
height: "100%",
|
|
74
|
+
display: "flex",
|
|
75
|
+
flexDirection: "column"
|
|
76
|
+
},
|
|
77
|
+
children: /* @__PURE__ */ c(p, {
|
|
78
|
+
sx: {
|
|
79
|
+
flex: 1,
|
|
80
|
+
p: {
|
|
81
|
+
xs: 1,
|
|
82
|
+
sm: 2,
|
|
83
|
+
md: 3
|
|
84
|
+
},
|
|
85
|
+
display: "flex",
|
|
86
|
+
alignItems: "center",
|
|
87
|
+
justifyContent: "center",
|
|
88
|
+
bgcolor: "background.default"
|
|
89
|
+
},
|
|
90
|
+
children: /* @__PURE__ */ c(y, {
|
|
91
|
+
initial: !Q,
|
|
92
|
+
mode: "wait",
|
|
93
|
+
children: /* @__PURE__ */ c(b.div, {
|
|
94
|
+
style: { position: "relative" },
|
|
95
|
+
initial: Q ? !1 : {
|
|
96
|
+
y: 20,
|
|
97
|
+
scale: .97
|
|
98
|
+
},
|
|
99
|
+
animate: {
|
|
100
|
+
y: 0,
|
|
101
|
+
scale: 1,
|
|
102
|
+
transition: Q ? { duration: 0 } : {
|
|
103
|
+
type: "spring",
|
|
104
|
+
stiffness: 500,
|
|
105
|
+
damping: 30,
|
|
106
|
+
mass: .5
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
exit: Q ? void 0 : {
|
|
110
|
+
y: 20,
|
|
111
|
+
scale: .97,
|
|
112
|
+
transition: { duration: .15 }
|
|
113
|
+
},
|
|
114
|
+
children: /* @__PURE__ */ l(g, {
|
|
115
|
+
onClick: (e) => e.stopPropagation(),
|
|
116
|
+
sx: {
|
|
117
|
+
position: "relative",
|
|
118
|
+
width: "100%",
|
|
119
|
+
aspectRatio: "16 / 9",
|
|
120
|
+
maxWidth: {
|
|
121
|
+
xs: "95%",
|
|
122
|
+
sm: "85%",
|
|
123
|
+
md: 960
|
|
124
|
+
},
|
|
125
|
+
height: "70vh",
|
|
126
|
+
borderRadius: 1,
|
|
127
|
+
border: "1px solid",
|
|
128
|
+
borderColor: "divider",
|
|
129
|
+
overflow: "hidden",
|
|
130
|
+
bgcolor: "grey.900"
|
|
131
|
+
},
|
|
132
|
+
children: [M ? M(U) : /* @__PURE__ */ c(t, { item: U }), (U.title || U.desc) && /* @__PURE__ */ l(p, {
|
|
133
|
+
sx: {
|
|
134
|
+
position: "absolute",
|
|
135
|
+
left: 0,
|
|
136
|
+
right: 0,
|
|
137
|
+
bottom: 0,
|
|
138
|
+
p: {
|
|
139
|
+
xs: 1.5,
|
|
140
|
+
sm: 2,
|
|
141
|
+
md: 3
|
|
142
|
+
},
|
|
143
|
+
color: "common.white",
|
|
144
|
+
gradient: "overlay.media"
|
|
145
|
+
},
|
|
146
|
+
onClick: (e) => e.stopPropagation(),
|
|
147
|
+
children: [U.title && /* @__PURE__ */ c(_, {
|
|
148
|
+
variant: "h6",
|
|
149
|
+
sx: { fontSize: {
|
|
150
|
+
xs: 14,
|
|
151
|
+
sm: 18,
|
|
152
|
+
md: 20
|
|
153
|
+
} },
|
|
154
|
+
children: U.title
|
|
155
|
+
}), U.desc && /* @__PURE__ */ c(_, {
|
|
156
|
+
variant: "body2",
|
|
157
|
+
sx: { mt: .5 },
|
|
158
|
+
children: U.desc
|
|
159
|
+
})]
|
|
160
|
+
})]
|
|
161
|
+
})
|
|
162
|
+
}, U.id)
|
|
163
|
+
})
|
|
164
|
+
})
|
|
165
|
+
}),
|
|
166
|
+
/* @__PURE__ */ c(m, {
|
|
167
|
+
"aria-label": I,
|
|
168
|
+
onClick: k,
|
|
169
|
+
sx: {
|
|
170
|
+
position: "absolute",
|
|
171
|
+
top: {
|
|
172
|
+
xs: 8,
|
|
173
|
+
sm: 10,
|
|
174
|
+
md: 12
|
|
175
|
+
},
|
|
176
|
+
right: {
|
|
177
|
+
xs: 8,
|
|
178
|
+
sm: 10,
|
|
179
|
+
md: 12
|
|
180
|
+
},
|
|
181
|
+
zIndex: (e) => e.zIndex.modal + 102
|
|
182
|
+
},
|
|
183
|
+
children: /* @__PURE__ */ c(f, {})
|
|
184
|
+
}),
|
|
185
|
+
F && W && /* @__PURE__ */ l(p, {
|
|
186
|
+
sx: {
|
|
187
|
+
position: "absolute",
|
|
188
|
+
top: {
|
|
189
|
+
xs: 8,
|
|
190
|
+
sm: 10,
|
|
191
|
+
md: 12
|
|
192
|
+
},
|
|
193
|
+
left: {
|
|
194
|
+
xs: 8,
|
|
195
|
+
sm: 10,
|
|
196
|
+
md: 12
|
|
197
|
+
},
|
|
198
|
+
zIndex: (e) => e.zIndex.modal + 102,
|
|
199
|
+
padding: 1,
|
|
200
|
+
px: 2,
|
|
201
|
+
fontSize: {
|
|
202
|
+
xs: 14,
|
|
203
|
+
sm: 16
|
|
204
|
+
},
|
|
205
|
+
color: "text.primary"
|
|
206
|
+
},
|
|
207
|
+
children: [
|
|
208
|
+
G + 1,
|
|
209
|
+
" / ",
|
|
210
|
+
K
|
|
211
|
+
]
|
|
212
|
+
}),
|
|
213
|
+
W && /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c(m, {
|
|
214
|
+
"aria-label": L,
|
|
215
|
+
onClick: (e) => {
|
|
216
|
+
e.stopPropagation(), J(e);
|
|
217
|
+
},
|
|
218
|
+
disabled: G === 0,
|
|
219
|
+
sx: {
|
|
220
|
+
position: "absolute",
|
|
221
|
+
left: {
|
|
222
|
+
xs: 8,
|
|
223
|
+
sm: 10,
|
|
224
|
+
md: 12
|
|
225
|
+
},
|
|
226
|
+
top: "50%",
|
|
227
|
+
transform: "translateY(-50%)",
|
|
228
|
+
zIndex: (e) => e.zIndex.modal + 102,
|
|
229
|
+
"&:disabled": { opacity: .5 }
|
|
230
|
+
},
|
|
231
|
+
children: /* @__PURE__ */ c(u, {})
|
|
232
|
+
}), /* @__PURE__ */ c(m, {
|
|
233
|
+
"aria-label": R,
|
|
234
|
+
onClick: (e) => {
|
|
235
|
+
e.stopPropagation(), Y(e);
|
|
236
|
+
},
|
|
237
|
+
disabled: G === K - 1,
|
|
238
|
+
sx: {
|
|
239
|
+
position: "absolute",
|
|
240
|
+
right: {
|
|
241
|
+
xs: 8,
|
|
242
|
+
sm: 10,
|
|
243
|
+
md: 12
|
|
244
|
+
},
|
|
245
|
+
top: "50%",
|
|
246
|
+
transform: "translateY(-50%)",
|
|
247
|
+
zIndex: (e) => e.zIndex.modal + 102,
|
|
248
|
+
"&:disabled": { opacity: .5 }
|
|
249
|
+
},
|
|
250
|
+
children: /* @__PURE__ */ c(d, {})
|
|
251
|
+
})] })
|
|
252
|
+
]
|
|
253
|
+
})
|
|
254
|
+
}), P && W && j.length > 1 && /* @__PURE__ */ c(n, {
|
|
255
|
+
mediaItems: j,
|
|
256
|
+
selectedItem: U,
|
|
257
|
+
onSelect: q,
|
|
258
|
+
renderMediaItem: M,
|
|
259
|
+
getThumbnailLabel: z
|
|
260
|
+
})]
|
|
261
|
+
})
|
|
262
|
+
}) : null;
|
|
263
|
+
});
|
|
264
|
+
C.displayName = "SImageViewer";
|
|
265
|
+
//#endregion
|
|
266
|
+
export { C as SImageViewer, C as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { ModalProps } from '@mui/material';
|
|
2
|
+
import { IconButtonProps, ModalProps } from '@mui/material';
|
|
3
3
|
/**
|
|
4
4
|
* Interface for individual media items (images/videos) in the modal
|
|
5
5
|
*/
|
|
@@ -19,34 +19,51 @@ export interface MediaItemType {
|
|
|
19
19
|
/** Grid row span for layout (defaults to 2) */
|
|
20
20
|
rowSpan?: number;
|
|
21
21
|
}
|
|
22
|
+
export type SImageViewerChangeReason = 'next' | 'previous' | 'thumbnail';
|
|
22
23
|
/**
|
|
23
|
-
* Props for
|
|
24
|
+
* Props for SImageViewer component
|
|
24
25
|
*/
|
|
25
|
-
|
|
26
|
+
interface SImageViewerBaseProps extends Omit<ModalProps, 'aria-label' | 'aria-labelledby' | 'children' | 'onClose' | 'open' | 'ref'> {
|
|
26
27
|
/** Currently selected media item to display */
|
|
27
28
|
selectedItem?: MediaItemType | null;
|
|
29
|
+
/** Initially selected media item for uncontrolled usage. */
|
|
30
|
+
defaultSelectedItem?: MediaItemType | null;
|
|
28
31
|
/** Whether the modal is open */
|
|
29
|
-
|
|
32
|
+
open: boolean;
|
|
30
33
|
/** Function to close the modal */
|
|
31
|
-
onClose:
|
|
32
|
-
/**
|
|
33
|
-
|
|
34
|
+
onClose: NonNullable<ModalProps['onClose']>;
|
|
35
|
+
/** Click handler for the viewer's close button. */
|
|
36
|
+
onCloseButtonClick: NonNullable<IconButtonProps['onClick']>;
|
|
37
|
+
/** Function to change the selected item (for navigation). */
|
|
38
|
+
onItemChange?: (event: React.SyntheticEvent, item: MediaItemType, reason: SImageViewerChangeReason) => void;
|
|
34
39
|
/** Array of all media items for navigation (optional - if provided, enables prev/next navigation) */
|
|
35
40
|
mediaItems?: MediaItemType[];
|
|
36
41
|
/** Custom component to render media items */
|
|
37
|
-
renderMediaItem?: (item: MediaItemType
|
|
42
|
+
renderMediaItem?: (item: MediaItemType) => React.ReactNode;
|
|
38
43
|
/** Whether to show navigation arrows */
|
|
39
44
|
showNavigation?: boolean;
|
|
40
45
|
/** Whether to show the thumbnail dock */
|
|
41
46
|
showThumbnailDock?: boolean;
|
|
42
47
|
/** Whether to show the item counter */
|
|
43
48
|
showCounter?: boolean;
|
|
44
|
-
/** Custom modal styling */
|
|
45
|
-
modalSx?: ModalProps['sx'];
|
|
46
49
|
/** Accessible text for the close button */
|
|
47
50
|
closeText?: string;
|
|
48
51
|
/** Accessible text for the previous-image navigation button */
|
|
49
52
|
previousText?: string;
|
|
50
53
|
/** Accessible text for the next-image navigation button */
|
|
51
54
|
nextText?: string;
|
|
55
|
+
/** Returns the accessible name for a thumbnail button. */
|
|
56
|
+
getThumbnailLabel?: (item: MediaItemType, index: number) => string;
|
|
52
57
|
}
|
|
58
|
+
/** The viewer surface must have an accessible name, matching MUI Dialog semantics. */
|
|
59
|
+
type SImageViewerAccessibleName = {
|
|
60
|
+
/** Accessible name for the viewer dialog. */
|
|
61
|
+
'aria-label': string;
|
|
62
|
+
'aria-labelledby'?: never;
|
|
63
|
+
} | {
|
|
64
|
+
'aria-label'?: never;
|
|
65
|
+
/** ID of the element that labels the viewer dialog. */
|
|
66
|
+
'aria-labelledby': string;
|
|
67
|
+
};
|
|
68
|
+
export type SImageViewerProps = SImageViewerBaseProps & SImageViewerAccessibleName;
|
|
69
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { MediaItemType, SImageViewerChangeReason, SImageViewerProps } from './types';
|
|
3
|
+
interface UseImageViewerNavigationParams {
|
|
4
|
+
/** Currently selected media item (controlled) */
|
|
5
|
+
selectedItem?: MediaItemType | null;
|
|
6
|
+
/** Initially selected media item (uncontrolled). */
|
|
7
|
+
defaultSelectedItem?: MediaItemType | null;
|
|
8
|
+
/** Function to change the selected item (for controlled navigation) */
|
|
9
|
+
onItemChange?: SImageViewerProps['onItemChange'];
|
|
10
|
+
/** Array of all media items for navigation */
|
|
11
|
+
mediaItems: MediaItemType[];
|
|
12
|
+
/** Whether navigation is enabled */
|
|
13
|
+
showNavigation: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Encapsulates the selection state and prev/next/keyboard navigation of SImageViewer.
|
|
17
|
+
* Falls back to internal state when `onItemChange` is not provided (uncontrolled mode).
|
|
18
|
+
*/
|
|
19
|
+
export declare function useImageViewerNavigation({ selectedItem, defaultSelectedItem, onItemChange, mediaItems, showNavigation, }: UseImageViewerNavigationParams): {
|
|
20
|
+
currentSelectedItem: MediaItemType | null;
|
|
21
|
+
navigationEnabled: boolean;
|
|
22
|
+
currentIndex: number;
|
|
23
|
+
totalItems: number;
|
|
24
|
+
selectItem: (event: React.SyntheticEvent, item: MediaItemType, reason: SImageViewerChangeReason) => void;
|
|
25
|
+
goToPrevious: (event: React.SyntheticEvent) => void;
|
|
26
|
+
goToNext: (event: React.SyntheticEvent) => void;
|
|
27
|
+
handleKeyDown: (event: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
28
|
+
};
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { useCallback as e } from "react";
|
|
2
|
+
import { useControlled as t } from "@mui/material/utils";
|
|
3
|
+
//#region lib/s-image-viewer/use-image-viewer-navigation.ts
|
|
4
|
+
var n = [
|
|
5
|
+
"a[href]",
|
|
6
|
+
"audio[controls]",
|
|
7
|
+
"button",
|
|
8
|
+
"input",
|
|
9
|
+
"select",
|
|
10
|
+
"summary",
|
|
11
|
+
"textarea",
|
|
12
|
+
"video[controls]",
|
|
13
|
+
"[contenteditable]:not([contenteditable=\"false\"])",
|
|
14
|
+
"[tabindex]:not([tabindex=\"-1\"])",
|
|
15
|
+
"[role=\"button\"]",
|
|
16
|
+
"[role=\"checkbox\"]",
|
|
17
|
+
"[role=\"combobox\"]",
|
|
18
|
+
"[role=\"link\"]",
|
|
19
|
+
"[role=\"menuitem\"]",
|
|
20
|
+
"[role=\"menuitemcheckbox\"]",
|
|
21
|
+
"[role=\"menuitemradio\"]",
|
|
22
|
+
"[role=\"option\"]",
|
|
23
|
+
"[role=\"radio\"]",
|
|
24
|
+
"[role=\"slider\"]",
|
|
25
|
+
"[role=\"spinbutton\"]",
|
|
26
|
+
"[role=\"switch\"]",
|
|
27
|
+
"[role=\"tab\"]",
|
|
28
|
+
"[role=\"textbox\"]"
|
|
29
|
+
].join(", ");
|
|
30
|
+
function r({ selectedItem: r, defaultSelectedItem: i, onItemChange: a, mediaItems: o, showNavigation: s }) {
|
|
31
|
+
let [c, l] = t({
|
|
32
|
+
controlled: r,
|
|
33
|
+
default: i ?? null,
|
|
34
|
+
name: "SImageViewer",
|
|
35
|
+
state: "selectedItem"
|
|
36
|
+
}), u = c ? o.findIndex((e) => e.id === c.id) : -1, d = !!(s && o.length > 1 && u >= 0), f = o.length, p = e((e, t, n) => {
|
|
37
|
+
l(t), a?.(e, t, n);
|
|
38
|
+
}, [a, l]), m = e((e) => {
|
|
39
|
+
d && u > 0 && p(e, o[u - 1], "previous");
|
|
40
|
+
}, [
|
|
41
|
+
d,
|
|
42
|
+
u,
|
|
43
|
+
o,
|
|
44
|
+
p
|
|
45
|
+
]), h = e((e) => {
|
|
46
|
+
d && u < f - 1 && p(e, o[u + 1], "next");
|
|
47
|
+
}, [
|
|
48
|
+
d,
|
|
49
|
+
u,
|
|
50
|
+
f,
|
|
51
|
+
o,
|
|
52
|
+
p
|
|
53
|
+
]);
|
|
54
|
+
return {
|
|
55
|
+
currentSelectedItem: c,
|
|
56
|
+
navigationEnabled: d,
|
|
57
|
+
currentIndex: u,
|
|
58
|
+
totalItems: f,
|
|
59
|
+
selectItem: p,
|
|
60
|
+
goToPrevious: m,
|
|
61
|
+
goToNext: h,
|
|
62
|
+
handleKeyDown: e((e) => {
|
|
63
|
+
let t = e.target;
|
|
64
|
+
t instanceof Element && t.closest(n) || (e.key === "ArrowLeft" && d && u > 0 ? (e.preventDefault(), m(e)) : e.key === "ArrowRight" && d && u < f - 1 && (e.preventDefault(), h(e)));
|
|
65
|
+
}, [
|
|
66
|
+
u,
|
|
67
|
+
h,
|
|
68
|
+
m,
|
|
69
|
+
d,
|
|
70
|
+
f
|
|
71
|
+
])
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
export { r as useImageViewerNavigation };
|
package/dist/s-label/index.d.ts
CHANGED
|
@@ -1,21 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export interface SLabelProps {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { IconButtonProps } from '@mui/material/IconButton';
|
|
2
|
+
import { StackProps } from '@mui/material/Stack';
|
|
3
|
+
import { TooltipProps } from '@mui/material/Tooltip';
|
|
4
|
+
import { TypographyProps } from '@mui/material/Typography';
|
|
5
|
+
import { OwnerStateSlotProps as MuiOwnerStateSlotProps } from '../utils/slots';
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
export interface SLabelOwnerState extends SLabelProps {
|
|
8
|
+
disableLabelTypography: boolean;
|
|
9
|
+
disableValueTypography: boolean;
|
|
10
|
+
hasHint: boolean;
|
|
11
|
+
}
|
|
12
|
+
type OwnerStateSlotProps<Props> = MuiOwnerStateSlotProps<Props, SLabelOwnerState>;
|
|
13
|
+
export interface SLabelSlots {
|
|
14
|
+
hintButton?: React.ElementType;
|
|
15
|
+
label?: React.ElementType;
|
|
16
|
+
labelRow?: React.ElementType;
|
|
17
|
+
tooltip?: React.ElementType;
|
|
18
|
+
value?: React.ElementType;
|
|
19
|
+
}
|
|
20
|
+
export interface SLabelSlotProps {
|
|
21
|
+
hintButton?: OwnerStateSlotProps<Omit<IconButtonProps, 'children'>>;
|
|
22
|
+
label?: OwnerStateSlotProps<TypographyProps>;
|
|
23
|
+
labelRow?: OwnerStateSlotProps<StackProps>;
|
|
24
|
+
tooltip?: OwnerStateSlotProps<Omit<TooltipProps, 'children' | 'title'>>;
|
|
25
|
+
value?: OwnerStateSlotProps<TypographyProps>;
|
|
26
|
+
}
|
|
27
|
+
/** A labelled-value composition with an optional accessible hint. */
|
|
28
|
+
export interface SLabelProps extends Omit<StackProps, 'children' | 'component'> {
|
|
11
29
|
children?: React.ReactNode;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
30
|
+
disableLabelTypography?: boolean;
|
|
31
|
+
disableValueTypography?: boolean;
|
|
32
|
+
hint?: React.ReactNode;
|
|
33
|
+
label: React.ReactNode;
|
|
34
|
+
slots?: SLabelSlots;
|
|
35
|
+
slotProps?: SLabelSlotProps;
|
|
16
36
|
}
|
|
17
|
-
export declare const SLabel:
|
|
18
|
-
({ label, children, hint, sx }: SLabelProps): React.JSX.Element;
|
|
19
|
-
displayName: string;
|
|
20
|
-
};
|
|
37
|
+
export declare const SLabel: React.ForwardRefExoticComponent<Omit<SLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
21
38
|
export default SLabel;
|
package/dist/s-label/s-label.js
CHANGED
|
@@ -1,26 +1,67 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { toSxArray as e } from "../utils/sx.js";
|
|
2
|
+
import { styled as t, useThemeProps as n } from "@mui/material/styles";
|
|
3
|
+
import r from "@mui/material/IconButton";
|
|
4
|
+
import * as i from "react";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
import s from "@mui/material/Typography";
|
|
7
|
+
import c from "@mui/utils/appendOwnerState";
|
|
8
|
+
import l from "@mui/material/Tooltip";
|
|
9
|
+
import u from "@mui/icons-material/InfoOutlined";
|
|
10
|
+
import d from "@mui/material/Stack";
|
|
5
11
|
//#region lib/s-label/s-label.tsx
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}), c(
|
|
12
|
+
var f = t(d, {
|
|
13
|
+
name: "SLabel",
|
|
14
|
+
slot: "Root"
|
|
15
|
+
})({});
|
|
16
|
+
function p(e, t) {
|
|
17
|
+
return typeof e == "function" ? e(t) : e;
|
|
18
|
+
}
|
|
19
|
+
var m = (e, t) => !t && !(i.isValidElement(e) && e.type === s), h = i.forwardRef(function(t, i) {
|
|
20
|
+
let h = n({
|
|
21
|
+
props: t,
|
|
22
|
+
name: "SLabel"
|
|
23
|
+
}), { children: g, disableLabelTypography: _ = !1, disableValueTypography: v = !1, hint: y, label: b, slotProps: x, slots: S, sx: C, ...w } = h, T = typeof y == "string" ? y.trim().length > 0 : !!y, E = {
|
|
24
|
+
...h,
|
|
25
|
+
disableLabelTypography: _,
|
|
26
|
+
disableValueTypography: v,
|
|
27
|
+
hasHint: T
|
|
28
|
+
}, D = S?.labelRow ?? d, O = S?.label ?? s, k = S?.value ?? s, A = S?.tooltip ?? l, j = S?.hintButton ?? r, M = c(S?.labelRow, p(x?.labelRow, E) ?? {}, E), N = c(S?.label, p(x?.label, E) ?? {}, E), P = c(S?.value, p(x?.value, E) ?? {}, E), F = c(S?.tooltip, p(x?.tooltip, E) ?? {}, E), I = c(S?.hintButton, p(x?.hintButton, E) ?? {}, E), L = m(b, _), R = m(g, v);
|
|
29
|
+
return /* @__PURE__ */ o(f, {
|
|
30
|
+
...w,
|
|
31
|
+
ref: i,
|
|
32
|
+
ownerState: E,
|
|
33
|
+
sx: [{ width: "100%" }, ...e(C)],
|
|
34
|
+
children: [/* @__PURE__ */ o(D, {
|
|
35
|
+
direction: "row",
|
|
36
|
+
...M,
|
|
37
|
+
sx: [{ alignItems: "center" }, ...e(M?.sx)],
|
|
38
|
+
children: [L ? /* @__PURE__ */ a(O, {
|
|
39
|
+
component: "span",
|
|
40
|
+
color: "text.secondary",
|
|
41
|
+
...N,
|
|
42
|
+
children: b
|
|
43
|
+
}) : b, E.hasHint ? /* @__PURE__ */ a(A, {
|
|
44
|
+
title: y,
|
|
45
|
+
placement: "top",
|
|
46
|
+
...F,
|
|
47
|
+
children: /* @__PURE__ */ a(j, {
|
|
48
|
+
"aria-label": typeof y == "string" ? y : "More information",
|
|
49
|
+
size: "small",
|
|
50
|
+
...I,
|
|
51
|
+
sx: [{
|
|
52
|
+
ml: 1,
|
|
53
|
+
p: 0
|
|
54
|
+
}, ...e(I?.sx)],
|
|
55
|
+
children: /* @__PURE__ */ a(u, { fontSize: "inherit" })
|
|
56
|
+
})
|
|
57
|
+
}) : null]
|
|
58
|
+
}), R ? /* @__PURE__ */ a(k, {
|
|
59
|
+
component: "div",
|
|
60
|
+
...P,
|
|
61
|
+
children: g
|
|
62
|
+
}) : g]
|
|
63
|
+
});
|
|
23
64
|
});
|
|
24
|
-
|
|
65
|
+
h.displayName = "SLabel";
|
|
25
66
|
//#endregion
|
|
26
|
-
export {
|
|
67
|
+
export { h as SLabel, h as default };
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { default, default as SLanguageSwitcher, SLanguagePopover, defaultLanguageOptions } from './s-language-switcher';
|
|
2
|
-
export type { SLanguageSwitcherProps, SLanguagePopoverProps, SLanguageOption } from './s-language-switcher';
|
|
2
|
+
export type { SLanguageSwitcherOwnerState, SLanguageSwitcherProps, SLanguagePopoverOwnerState, SLanguagePopoverProps, SLanguageOption, } from './s-language-switcher';
|
|
3
|
+
export type {} from '../theme/component-augmentation';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SLanguagePopover as e, SLanguageSwitcher as t, defaultLanguageOptions as n } from "./s-language-switcher.js";
|
|
2
|
+
export { e as SLanguagePopover, t as SLanguageSwitcher, t as default, n as defaultLanguageOptions };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IconButtonProps } from '@mui/material/IconButton';
|
|
3
|
+
import { MenuProps } from '@mui/material/Menu';
|
|
3
4
|
export interface SLanguageOption {
|
|
4
5
|
code: string;
|
|
5
6
|
label: string;
|
|
@@ -7,39 +8,45 @@ export interface SLanguageOption {
|
|
|
7
8
|
countryCode: string;
|
|
8
9
|
}
|
|
9
10
|
export declare const defaultLanguageOptions: SLanguageOption[];
|
|
10
|
-
export interface SLanguagePopoverProps {
|
|
11
|
-
|
|
12
|
-
onClose?: () => void;
|
|
13
|
-
open?: boolean;
|
|
14
|
-
onLanguageChange?: (languageCode: string) => void;
|
|
11
|
+
export interface SLanguagePopoverProps extends Omit<MenuProps, 'children'> {
|
|
12
|
+
onLanguageChange?: (event: React.MouseEvent<HTMLLIElement>, languageCode: string) => void;
|
|
15
13
|
languages?: SLanguageOption[];
|
|
16
14
|
currentLanguage?: string;
|
|
17
15
|
menuWidth?: string | number;
|
|
16
|
+
/** ID applied to the menu element for trigger/menu ARIA relationships. */
|
|
17
|
+
menuId?: string;
|
|
18
|
+
/** ID of the element that labels the menu. */
|
|
19
|
+
menuLabelledBy?: string;
|
|
18
20
|
}
|
|
19
|
-
export
|
|
21
|
+
export interface SLanguagePopoverOwnerState extends SLanguagePopoverProps {
|
|
22
|
+
currentLanguage?: string;
|
|
23
|
+
menuWidth: string | number;
|
|
24
|
+
open: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare const SLanguagePopover: React.ForwardRefExoticComponent<Omit<SLanguagePopoverProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
27
|
/**
|
|
21
28
|
* Props interface for SLanguageSwitcher component
|
|
22
29
|
*/
|
|
23
|
-
export interface SLanguageSwitcherProps {
|
|
30
|
+
export interface SLanguageSwitcherProps extends Omit<IconButtonProps, 'children' | 'component'> {
|
|
24
31
|
/** Custom language options to display */
|
|
25
32
|
languages?: SLanguageOption[];
|
|
26
33
|
/** Callback when language changes (if not provided, will use i18n.changeLanguage) */
|
|
27
|
-
onLanguageChange?: (languageCode: string) => void;
|
|
34
|
+
onLanguageChange?: (event: React.SyntheticEvent, languageCode: string) => void;
|
|
28
35
|
/** Current language code (if not provided, will use i18n.language) */
|
|
29
36
|
currentLanguage?: string;
|
|
30
|
-
/** Tooltip
|
|
31
|
-
|
|
37
|
+
/** Tooltip content for the language button. */
|
|
38
|
+
tooltip?: React.ReactNode;
|
|
32
39
|
/** Size of the flag icon in the button */
|
|
33
40
|
buttonFlagSize?: number;
|
|
34
|
-
/**
|
|
41
|
+
/** Minimum width of the language menu */
|
|
35
42
|
menuWidth?: string | number;
|
|
36
|
-
/** Custom styles for the icon button */
|
|
37
|
-
sx?: SxProps<Theme>;
|
|
38
43
|
/** Whether to use i18n integration */
|
|
39
44
|
useI18n?: boolean;
|
|
40
45
|
}
|
|
41
|
-
export
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
export interface SLanguageSwitcherOwnerState extends SLanguageSwitcherProps {
|
|
47
|
+
buttonFlagSize: number;
|
|
48
|
+
currentLanguage: string;
|
|
49
|
+
open: boolean;
|
|
50
|
+
}
|
|
51
|
+
export declare const SLanguageSwitcher: React.ForwardRefExoticComponent<Omit<SLanguageSwitcherProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
45
52
|
export default SLanguageSwitcher;
|