@solostylist/ui-kit 2.0.2 → 2.0.3
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/{gradients-mQAYCK0_.js → gradients-DSnBONEQ.js} +1 -1
- package/dist/main.js +1 -1
- package/dist/palettes/index.js +1 -1
- package/dist/{palettes-B1FcGUYs.js → palettes-CJLuEy1m.js} +163 -163
- package/dist/s-accordion/index.js +1 -1
- package/dist/s-accordion/s-accordion.js +70 -2
- package/dist/s-action-overlay/s-action-overlay.js +21 -21
- package/dist/s-animated-gradient-text/s-animated-gradient-text.js +18 -19
- package/dist/s-announcement-bar/s-announcement-bar.js +50 -53
- package/dist/s-autocomplete/s-autocomplete.js +1 -1
- package/dist/s-avatar/s-avatar.js +17 -17
- package/dist/s-blur-text/s-blur-text.js +16 -16
- package/dist/s-brand-logo/index.js +1 -1
- package/dist/s-brand-logo/s-brand-logo.js +1 -1
- package/dist/s-breadcrumbs/s-breadcrumbs.js +19 -19
- package/dist/s-carousel/index.js +1 -1
- package/dist/s-carousel/s-carousel.js +186 -2
- package/dist/s-category-card/s-category-card.js +22 -22
- package/dist/s-chat-input/index.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +398 -2
- package/dist/s-chat-message/index.js +1 -1
- package/dist/s-chat-message/s-chat-message.js +314 -2
- package/dist/s-checkbox/s-checkbox.js +18 -19
- package/dist/s-chips/index.js +1 -1
- package/dist/s-chips/s-chips.js +174 -2
- package/dist/s-code-block/index.js +1 -1
- package/dist/s-code-block/s-code-block.js +103 -2
- package/dist/s-comment-message/index.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +189 -2
- package/dist/s-copyable-text/s-copyable-text.js +18 -18
- package/dist/s-countdown/s-count-box.js +18 -18
- package/dist/s-data-table/index.js +1 -1
- package/dist/s-data-table/s-data-table.js +213 -2
- package/dist/s-date-picker/index.js +1 -1
- package/dist/s-date-picker/s-date-picker.js +106 -2
- package/dist/s-datetime-picker/index.js +1 -1
- package/dist/s-datetime-picker/s-datetime-picker.js +108 -2
- package/dist/s-dialog/index.js +1 -1
- package/dist/s-dialog/s-dialog.js +80 -2
- package/dist/s-dialog-confirm/s-dialog-confirm.js +32 -33
- package/dist/s-dialog-message/s-dialog-message.js +31 -32
- package/dist/s-drawer/index.js +1 -1
- package/dist/s-drawer/s-drawer.js +139 -2
- package/dist/s-empty/s-empty.js +13 -14
- package/dist/s-file-dropzone/index.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +219 -2
- package/dist/s-file-icon/s-file-icon.js +87 -88
- package/dist/s-flex-box/s-flex-box.js +11 -12
- package/dist/s-form/s-form.js +15 -15
- package/dist/s-gallery/s-gallery.js +1 -1
- package/dist/s-glow-button/s-glow-button.js +9 -10
- package/dist/s-gradient-blob-pulse/s-gradient-blob-pulse.js +23 -24
- package/dist/s-icon-button/s-icon-button.js +13 -14
- package/dist/s-image-comparison/s-image-comparison.js +29 -31
- package/dist/s-image-viewer/image-viewer-thumbnail-dock.js +1 -1
- package/dist/s-image-viewer/index.js +3 -3
- package/dist/s-image-viewer/s-image-viewer.js +266 -2
- package/dist/s-image-viewer/use-image-viewer-navigation.js +7 -7
- package/dist/s-interactive-card/s-interactive-card.js +39 -41
- package/dist/s-label/s-label.js +25 -26
- package/dist/s-language-switcher/index.js +2 -2
- package/dist/s-language-switcher/s-language-switcher.js +145 -2
- package/dist/s-lazy-image/s-lazy-image.js +17 -18
- package/dist/s-link/index.js +1 -1
- package/dist/s-link/s-link.js +5 -2
- package/dist/s-list-action-item/s-list-action-item.js +38 -39
- package/dist/s-localization-provider/index.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +12 -2
- package/dist/s-mega-menu/mega-menu-panel.js +132 -134
- package/dist/s-mega-menu/mega-menu-trigger.js +49 -2
- package/dist/s-mega-menu/s-mega-menu.js +80 -83
- package/dist/s-mobile-dock/index.js +1 -1
- package/dist/s-mobile-dock/s-mobile-dock.js +145 -2
- package/dist/s-nav-item/s-nav-item.js +19 -20
- package/dist/s-nav-items/s-nav-items.js +51 -52
- package/dist/s-no-ssr/index.js +1 -1
- package/dist/s-no-ssr/s-no-ssr.js +5 -2
- package/dist/s-number-range/index.js +1 -1
- package/dist/s-number-range/s-number-range.js +250 -2
- package/dist/s-pagination/index.js +1 -1
- package/dist/s-pagination/s-pagination.js +85 -2
- package/dist/s-pixel-reveal/s-pixel-reveal.js +20 -20
- package/dist/s-popover/s-popover-content.js +11 -12
- package/dist/s-popover/s-popover.js +22 -24
- package/dist/s-product-card/s-product-card.js +177 -180
- package/dist/s-product-gallery/index.js +1 -1
- package/dist/s-product-gallery/s-product-gallery.js +427 -2
- package/dist/s-quantity-input/s-quantity-input.js +24 -24
- package/dist/s-review/index.js +1 -1
- package/dist/s-review/s-review.js +272 -2
- package/dist/s-scroll-reveal/s-scroll-reveal.js +7 -8
- package/dist/s-scroll-to-top/s-scroll-to-top.js +27 -28
- package/dist/s-scroll-velocity/scroll-velocity-row.js +29 -29
- package/dist/s-segmented-control/s-segmented-control.js +64 -68
- package/dist/s-select/index.js +1 -1
- package/dist/s-select/s-select.js +201 -2
- package/dist/s-select-list/s-select-list.js +47 -50
- package/dist/s-skeleton/s-skeleton.js +12 -13
- package/dist/s-snackbar-message/index.js +2 -2
- package/dist/s-snackbar-message/s-snackbar-message.js +89 -2
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +27 -27
- package/dist/s-status-illustration/s-status-illustration.js +74 -74
- package/dist/s-stepper/index.js +1 -1
- package/dist/s-stepper/s-stepper.js +102 -2
- package/dist/s-stripe/s-stripe.js +11 -12
- package/dist/s-stripe/stripe-input.js +3 -2
- package/dist/s-swatch/s-swatch.js +34 -35
- package/dist/s-switch/index.js +1 -1
- package/dist/s-switch/s-switch.js +48 -2
- package/dist/s-tabs/s-tabs.js +48 -50
- package/dist/s-text-editor/index.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +213 -2
- package/dist/s-text-editor/s-text-editor.js +25 -26
- package/dist/s-text-field/index.js +1 -1
- package/dist/s-text-field/s-text-field.js +52 -2
- package/dist/s-text-shimmer/s-text-shimmer.js +1 -3
- package/dist/s-text-truncation/s-text-truncation.js +20 -20
- package/dist/s-theme-demo/s-theme-demo.js +8 -8
- package/dist/s-theme-demo/theme-demo-color-palette-section.js +1 -1
- package/dist/s-theme-demo/theme-demo-color-ramps-section.js +1 -1
- package/dist/s-theme-demo/theme-demo-components-section.js +265 -2
- package/dist/s-theme-demo/theme-demo-typography-section.js +10 -10
- package/dist/s-theme-provider/s-theme-provider.js +1 -1
- package/dist/s-theme-switch/index.js +1 -1
- package/dist/s-theme-switch/s-theme-switch.js +60 -2
- package/dist/s-tip/index.js +1 -1
- package/dist/s-tip/s-tip.js +61 -2
- package/dist/s-tool-bar/s-tool-bar.js +28 -28
- package/dist/s-tool-bar/tool-bar-action-buttons.js +55 -2
- package/dist/s-tool-bar/tool-bar-image-input.js +148 -2
- package/dist/s-tool-bar/tool-bar-inputs.js +55 -55
- package/dist/s-tool-item/s-tool-item.js +22 -22
- package/dist/s-two-pane-layout/s-two-pane-layout.js +32 -32
- package/dist/s-zoom-image/s-zoom-image.js +18 -19
- package/dist/theme/components/autocomplete.js +43 -2
- package/dist/theme/components/avatar.js +9 -2
- package/dist/theme/components/card.js +3 -3
- package/dist/theme/components/checkbox.js +90 -2
- package/dist/theme/components/chip.js +3 -3
- package/dist/theme/components/components.js +20 -20
- package/dist/theme/components/date-calendar.js +1 -0
- package/dist/theme/components/day-calendar.js +1 -0
- package/dist/theme/components/drawer.js +1 -1
- package/dist/theme/components/field-label-styles.js +19 -2
- package/dist/theme/components/form-label.js +1 -1
- package/dist/theme/components/list-item-button.js +1 -1
- package/dist/theme/components/list-item.js +7 -7
- package/dist/theme/components/month-calendar.js +14 -13
- package/dist/theme/components/multi-section-digital-clock-section.js +1 -0
- package/dist/theme/components/outlined-input.js +6 -6
- package/dist/theme/components/picker-day.js +1 -0
- package/dist/theme/components/pickers-arrow-switcher.js +1 -0
- package/dist/theme/components/pickers-calendar-header.js +3 -2
- package/dist/theme/components/select.js +6 -6
- package/dist/theme/components/switch.js +1 -1
- package/dist/theme/components/table-pagination.js +1 -1
- package/dist/theme/components/toggle-button.js +93 -2
- package/dist/theme/components/year-calendar.js +14 -13
- package/dist/theme/theme-primitives.js +2 -2
- package/dist/{theme-primitives-CXtaMdVj.js → theme-primitives-CRfnMsNy.js} +108 -109
- package/dist/utils/dayjs.js +9 -146
- package/package.json +7 -2
- package/dist/Add-CEnTWsXs.js +0 -6
- package/dist/ArrowUpward-udL1ltj2.js +0 -6
- package/dist/Box-9oeZgA1U.js +0 -46
- package/dist/Button-DaLr1m20.js +0 -534
- package/dist/ButtonBase-DovDC6-1.js +0 -700
- package/dist/Checkbox-C-Xjbzzh.js +0 -152
- package/dist/ChevronRight-DsPfsFKB.js +0 -6
- package/dist/Close-CIYOM-Sc.js +0 -6
- package/dist/Collapse-DPUr1cbP.js +0 -266
- package/dist/ContentCopy-Hlh3azVb.js +0 -6
- package/dist/DefaultPropsProvider-ebWx4_5E.js +0 -128
- package/dist/DialogContent-b3xbJVC6.js +0 -450
- package/dist/Download-D9PkFi7a.js +0 -6
- package/dist/ExpandMore-sOgvEha9.js +0 -6
- package/dist/Favorite-BP343hjM.js +0 -6
- package/dist/FavoriteBorder-D15j9xEL.js +0 -6
- package/dist/FormControl-DwMfZCiz.js +0 -215
- package/dist/FormControlLabel-Ihga1FTB.js +0 -173
- package/dist/Grow-BQR7x52V.js +0 -121
- package/dist/IconButton-CE-4GamO.js +0 -448
- package/dist/InfoOutlined-lpvhO6P8.js +0 -6
- package/dist/List-RNcZhRdr.js +0 -105
- package/dist/Menu-CnyB4SDS.js +0 -180
- package/dist/MenuItem-Ck30dBOR.js +0 -224
- package/dist/MenuList-Cc98uWXq.js +0 -160
- package/dist/Modal-CD2EBfU8.js +0 -702
- package/dist/Paper-_3qggtBp.js +0 -115
- package/dist/Popover-BFdKSYI5.js +0 -340
- package/dist/Popper-DYNAMSDd.js +0 -1351
- package/dist/Portal-i_wgIe9-.js +0 -49
- package/dist/Remove-DDEn8ek8.js +0 -6
- package/dist/RtlProvider-B7uVJXUY.js +0 -19
- package/dist/Skeleton-iZFynl7z.js +0 -220
- package/dist/Stack-C0LGzM4c.js +0 -158
- package/dist/SwitchBase-CjWtDdmE.js +0 -198
- package/dist/Tooltip-B1sn94L0.js +0 -448
- package/dist/Typography-_P0svrkO.js +0 -168
- package/dist/UnfoldMoreRounded-CuCrdxoy.js +0 -6
- package/dist/appendOwnerState-CFQTq3pb.js +0 -17
- package/dist/assets/stripe-input.css +0 -1
- package/dist/autocomplete-BgARERpp.js +0 -43
- package/dist/avatar-XNOdbbRz.js +0 -10
- package/dist/buttonBaseClasses-B90LjsNK.js +0 -13
- package/dist/capitalize-C0baBJCm.js +0 -5
- package/dist/chainPropTypes-CkMRtDjQ.js +0 -8
- package/dist/checkbox-D1U_JKqs.js +0 -88
- package/dist/checkboxClasses-B1up2lUn.js +0 -18
- package/dist/chunk-C_CI6nMA.js +0 -13
- package/dist/clsx-DGZSe4Nt.js +0 -16
- package/dist/colorManipulator-DmUjcif3.js +0 -129
- package/dist/contains-DnqPQsQU.js +0 -16
- package/dist/createSimplePaletteValueFilter-DFvyXHoZ.js +0 -14
- package/dist/createSvgIcon-3y-gS0r1.js +0 -155
- package/dist/createTheme-xB2Em0Na.js +0 -1869
- package/dist/defaultTheme-BaGcIzCh.js +0 -210
- package/dist/elementAcceptingRef-pKEY6jPR.js +0 -25
- package/dist/elementTypeAcceptingRef-xl_04Y5-.js +0 -19
- package/dist/exactProp-C_IsucXf.js +0 -13
- package/dist/extends-DXMyyJCW.js +0 -12
- package/dist/field-label-styles-4praXMaE.js +0 -50
- package/dist/formLabelClasses-AuZHWfTs.js +0 -18
- package/dist/generateUtilityClass-PAIOm1jC.js +0 -34
- package/dist/generateUtilityClasses-DvX505Gy.js +0 -10
- package/dist/getActiveElement-BfBkhgy6.js +0 -8
- package/dist/iconButtonClasses-CVVRFXRo.js +0 -27
- package/dist/inputAdornmentClasses-BbB8s-Z4.js +0 -19
- package/dist/inputBaseClasses-Ce_jjdp9.js +0 -25
- package/dist/integerPropType-CCkQD1JY.js +0 -27
- package/dist/isEventHandler-QShLXBxE.js +0 -7
- package/dist/isFocusVisible-4OIE8TST.js +0 -11
- package/dist/isLayoutSupported-Btg2X3QE.js +0 -6
- package/dist/isMuiElement-CPjhi284.js +0 -10
- package/dist/mega-menu-trigger-BcOo8I5_.js +0 -53
- package/dist/memoTheme-qFyKAk7y.js +0 -15
- package/dist/mergeSlotProps-DC8r4QzS.js +0 -45
- package/dist/monthCalendarClasses-b964KRbc.js +0 -14
- package/dist/objectWithoutPropertiesLoose-q4Zwd1RV.js +0 -12
- package/dist/outlinedInputClasses-ci1zDasn.js +0 -17
- package/dist/ownerDocument-CJjQZweZ.js +0 -6
- package/dist/ownerDocument-pYjJiXem.js +0 -5
- package/dist/ownerWindow-SSeeoqPT.js +0 -18
- package/dist/pickersCalendarHeaderClasses-BAiPN_oY.js +0 -12
- package/dist/prop-types-BzYPyWN7.js +0 -516
- package/dist/refType-j5S9pc_e.js +0 -6
- package/dist/resolveProps-7jIA45vn.js +0 -30
- package/dist/s-accordion-1oLxQhod.js +0 -487
- package/dist/s-carousel-CAyAl3ka.js +0 -1355
- package/dist/s-chat-input-T3gyan60.js +0 -419
- package/dist/s-chat-message-NFTpNgt5.js +0 -315
- package/dist/s-chips-Dqq1fgz-.js +0 -176
- package/dist/s-code-block-DyDtctGG.js +0 -658
- package/dist/s-comment-message-DpCVBKiE.js +0 -192
- package/dist/s-data-table-D4V58HFR.js +0 -805
- package/dist/s-date-picker-BFIQOA8C.js +0 -657
- package/dist/s-datetime-picker-zfg7BEOW.js +0 -3886
- package/dist/s-dialog-BNlXsVVP.js +0 -123
- package/dist/s-drawer-4h5ZyoM8.js +0 -562
- package/dist/s-file-dropzone-Cfzv1Cm8.js +0 -422
- package/dist/s-image-viewer-CjK67-rs.js +0 -269
- package/dist/s-language-switcher-PaMgHWc2.js +0 -246
- package/dist/s-link-Db1aabHh.js +0 -235
- package/dist/s-localization-provider-CeyB_SGz.js +0 -519
- package/dist/s-mobile-dock-8F3UWAb8.js +0 -615
- package/dist/s-no-ssr-DH57_uP_.js +0 -25
- package/dist/s-number-range-Low5QjuD.js +0 -253
- package/dist/s-pagination-s46hBifh.js +0 -606
- package/dist/s-product-gallery-Dj9eGg5i.js +0 -430
- package/dist/s-review--Q2C0ngO.js +0 -272
- package/dist/s-select-CtVKEOZ5.js +0 -204
- package/dist/s-snackbar-message-DsfJlDYd.js +0 -810
- package/dist/s-stepper-BtODHVro.js +0 -892
- package/dist/s-switch-BCeBoxWf.js +0 -307
- package/dist/s-text-editor-toolbar-D5eQ-jCs.js +0 -2124
- package/dist/s-text-field-HYyDf1Jo.js +0 -51
- package/dist/s-theme-switch-BFWpADh3.js +0 -60
- package/dist/s-tip-jbL7vtoU.js +0 -62
- package/dist/selectClasses-CPxME5jE.js +0 -22
- package/dist/setRef-BWPyWnrr.js +0 -6
- package/dist/styled-Bog8QCl3.js +0 -163
- package/dist/svgIconClasses-1kWGzgux.js +0 -20
- package/dist/switchClasses-BtweO7PC.js +0 -23
- package/dist/theme-demo-components-section-C7l_2KAo.js +0 -267
- package/dist/toggle-button-BsGb-tOr.js +0 -104
- package/dist/tool-bar-action-buttons-v1koaasr.js +0 -54
- package/dist/tool-bar-image-input-DtXTyEe1.js +0 -148
- package/dist/typographyClasses-BH_-zLwg.js +0 -31
- package/dist/unsupportedProp-whMV_uOi.js +0 -11
- package/dist/useControlled-DqNPBJNp.js +0 -5
- package/dist/useControlled-uxVKygk1.js +0 -29
- package/dist/useEnhancedEffect-DFq_FMGX.js +0 -5
- package/dist/useEnhancedEffect-dBFfkm1e.js +0 -5
- package/dist/useEventCallback-DGCsaRIu.js +0 -5
- package/dist/useEventCallback-DhCPBxRG.js +0 -11
- package/dist/useForkRef-BuNFTXxE.js +0 -29
- package/dist/useFormControl-gXwNeUM1.js +0 -18
- package/dist/useMobilePicker-CdrT935R.js +0 -7584
- package/dist/useRovingTabIndex-DPlW997R.js +0 -242
- package/dist/useSlot-BG8ReOxN.js +0 -83
- package/dist/useSlotProps-BOO3qaI9.js +0 -16
- package/dist/useTheme-BIWMbX3i.js +0 -9
- package/dist/useThemeProps-Dw9dmKyT.js +0 -29
- package/dist/useTimeout-CoK-Khfm.js +0 -49
- package/dist/utils-Bfqbev5I.js +0 -248
- package/dist/warning-D5YhCbje.js +0 -99
- package/dist/yearCalendarClasses-D9k_KT38.js +0 -14
- /package/dist/{colors-Bik9qOU9.js → colors-CNjL5fhq.js} +0 -0
- /package/dist/{s-brand-logo-D7Jovf5K.js → s-brand-logo-CErW9Slg.js} +0 -0
- /package/dist/{utils-DOY6v6ln.js → utils-CMeAWSRO.js} +0 -0
|
@@ -1,2 +1,145 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { SIconButton as e } from "../s-icon-button/s-icon-button.js";
|
|
2
|
+
import { placementOrigins as t } from "../s-popover/placement.js";
|
|
3
|
+
import { styled as n, useThemeProps as r } from "@mui/material/styles";
|
|
4
|
+
import i from "react";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
import s from "@mui/material/Typography";
|
|
7
|
+
import { mergeSlotProps as c } from "@mui/material/utils";
|
|
8
|
+
import l from "@mui/material/ListItemIcon";
|
|
9
|
+
import u from "@mui/material/Menu";
|
|
10
|
+
import d from "@mui/material/MenuItem";
|
|
11
|
+
import f from "react-country-flag";
|
|
12
|
+
import { useTranslation as p } from "react-i18next";
|
|
13
|
+
//#region lib/s-language-switcher/s-language-switcher.tsx
|
|
14
|
+
var m = 16, h = 20, g = [{
|
|
15
|
+
code: "en",
|
|
16
|
+
label: "English",
|
|
17
|
+
countryCode: "GB"
|
|
18
|
+
}, {
|
|
19
|
+
code: "vi",
|
|
20
|
+
label: "Vietnamese",
|
|
21
|
+
countryCode: "VN"
|
|
22
|
+
}], _ = n(u, {
|
|
23
|
+
name: "SLanguagePopover",
|
|
24
|
+
slot: "Root"
|
|
25
|
+
})({}), v = i.forwardRef(function(e, n) {
|
|
26
|
+
let i = r({
|
|
27
|
+
props: e,
|
|
28
|
+
name: "SLanguagePopover"
|
|
29
|
+
}), { anchorOrigin: u = t["bottom-end"].anchorOrigin, currentLanguage: p, languages: m = g, menuId: v, menuLabelledBy: y, menuWidth: b = "220px", onLanguageChange: x, slotProps: S, transformOrigin: C = t["bottom-end"].transformOrigin, variant: w = "selectedMenu", ...T } = i, E = {
|
|
30
|
+
...i,
|
|
31
|
+
anchorOrigin: u,
|
|
32
|
+
currentLanguage: p,
|
|
33
|
+
languages: m,
|
|
34
|
+
menuId: v,
|
|
35
|
+
menuLabelledBy: y,
|
|
36
|
+
menuWidth: b,
|
|
37
|
+
onLanguageChange: x,
|
|
38
|
+
open: T.open,
|
|
39
|
+
slotProps: S,
|
|
40
|
+
transformOrigin: C,
|
|
41
|
+
variant: w
|
|
42
|
+
};
|
|
43
|
+
return /* @__PURE__ */ a(_, {
|
|
44
|
+
...T,
|
|
45
|
+
ref: n,
|
|
46
|
+
anchorOrigin: u,
|
|
47
|
+
ownerState: E,
|
|
48
|
+
slotProps: {
|
|
49
|
+
...S,
|
|
50
|
+
paper: c(S?.paper, { sx: { minWidth: b } }),
|
|
51
|
+
list: c(S?.list, {
|
|
52
|
+
id: v,
|
|
53
|
+
"aria-labelledby": y
|
|
54
|
+
})
|
|
55
|
+
},
|
|
56
|
+
transformOrigin: C,
|
|
57
|
+
variant: w,
|
|
58
|
+
children: m.map((e) => /* @__PURE__ */ o(d, {
|
|
59
|
+
onClick: (t) => {
|
|
60
|
+
x?.(t, e.code);
|
|
61
|
+
},
|
|
62
|
+
selected: p === e.code,
|
|
63
|
+
children: [/* @__PURE__ */ a(l, { children: /* @__PURE__ */ a(f, {
|
|
64
|
+
alt: "",
|
|
65
|
+
"aria-hidden": "true",
|
|
66
|
+
countryCode: e.countryCode,
|
|
67
|
+
svg: !0,
|
|
68
|
+
style: {
|
|
69
|
+
width: h,
|
|
70
|
+
height: h
|
|
71
|
+
}
|
|
72
|
+
}) }), /* @__PURE__ */ a(s, {
|
|
73
|
+
variant: "subtitle2",
|
|
74
|
+
children: e.label
|
|
75
|
+
})]
|
|
76
|
+
}, e.code))
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
v.displayName = "SLanguagePopover";
|
|
80
|
+
var y = n(e, {
|
|
81
|
+
name: "SLanguageSwitcher",
|
|
82
|
+
slot: "Root"
|
|
83
|
+
})({}), b = i.forwardRef(function(e, t) {
|
|
84
|
+
let n = r({
|
|
85
|
+
props: e,
|
|
86
|
+
name: "SLanguageSwitcher"
|
|
87
|
+
}), { "aria-label": s, languages: c = g, onLanguageChange: l, currentLanguage: u, tooltip: d, buttonFlagSize: h = m, menuWidth: _ = "220px", onClick: b, useI18n: x = !0, ...S } = n, C = p(), w = x ? C.t : null, T = x ? C.i18n : null, [E, D] = i.useState(null), O = i.useId(), k = i.useId(), A = S.id ?? O, j = !!E, M = u ?? T?.language ?? c[0]?.code ?? "en", N = c.find((e) => e.code === M) || c[0], P = i.useCallback((e) => {
|
|
88
|
+
b?.(e), e.defaultPrevented || D(e.currentTarget);
|
|
89
|
+
}, [b]), F = i.useCallback(() => {
|
|
90
|
+
D(null);
|
|
91
|
+
}, []), I = i.useCallback((e, t) => {
|
|
92
|
+
l ? l(e, t) : T && T.changeLanguage(t), e.defaultPrevented || F();
|
|
93
|
+
}, [
|
|
94
|
+
F,
|
|
95
|
+
T,
|
|
96
|
+
l
|
|
97
|
+
]), L = d ?? (w ? w("header:language.tooltip") : "Change language"), R = {
|
|
98
|
+
...n,
|
|
99
|
+
"aria-label": s ?? (typeof L == "string" ? L : "Change language"),
|
|
100
|
+
buttonFlagSize: h,
|
|
101
|
+
currentLanguage: M,
|
|
102
|
+
languages: c,
|
|
103
|
+
menuWidth: _,
|
|
104
|
+
onClick: b,
|
|
105
|
+
onLanguageChange: l,
|
|
106
|
+
open: j,
|
|
107
|
+
tooltip: L,
|
|
108
|
+
useI18n: x
|
|
109
|
+
};
|
|
110
|
+
return /* @__PURE__ */ o(i.Fragment, { children: [/* @__PURE__ */ a(y, {
|
|
111
|
+
...S,
|
|
112
|
+
ref: t,
|
|
113
|
+
id: A,
|
|
114
|
+
"aria-controls": j ? k : void 0,
|
|
115
|
+
"aria-expanded": j || void 0,
|
|
116
|
+
"aria-haspopup": "menu",
|
|
117
|
+
"aria-label": s ?? (typeof L == "string" ? L : "Change language"),
|
|
118
|
+
onClick: P,
|
|
119
|
+
ownerState: R,
|
|
120
|
+
tooltip: L,
|
|
121
|
+
children: /* @__PURE__ */ a(f, {
|
|
122
|
+
alt: "",
|
|
123
|
+
"aria-hidden": "true",
|
|
124
|
+
countryCode: N?.countryCode || "US",
|
|
125
|
+
svg: !0,
|
|
126
|
+
style: {
|
|
127
|
+
width: h,
|
|
128
|
+
height: h
|
|
129
|
+
}
|
|
130
|
+
})
|
|
131
|
+
}), /* @__PURE__ */ a(v, {
|
|
132
|
+
anchorEl: E,
|
|
133
|
+
menuId: k,
|
|
134
|
+
menuLabelledBy: A,
|
|
135
|
+
onClose: F,
|
|
136
|
+
open: j,
|
|
137
|
+
onLanguageChange: I,
|
|
138
|
+
languages: c,
|
|
139
|
+
currentLanguage: M,
|
|
140
|
+
menuWidth: _
|
|
141
|
+
})] });
|
|
142
|
+
});
|
|
143
|
+
b.displayName = "SLanguageSwitcher";
|
|
144
|
+
//#endregion
|
|
145
|
+
export { v as SLanguagePopover, b as SLanguageSwitcher, b as default, g as defaultLanguageOptions };
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { toSxArray as e } from "../utils/sx.js";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { Box as o, Skeleton as s, styled as c, useTheme as l, useThemeProps as u } from "@mui/material";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
import { Box as i, Skeleton as a, styled as o, useTheme as s, useThemeProps as c } from "@mui/material";
|
|
5
|
+
import { mergeSlotProps as l, useForkRef as u } from "@mui/material/utils";
|
|
7
6
|
//#region lib/s-lazy-image/s-lazy-image.tsx
|
|
8
|
-
var d =
|
|
7
|
+
var d = o(i, {
|
|
9
8
|
name: "SLazyImage",
|
|
10
9
|
slot: "Root"
|
|
11
|
-
})({}), f =
|
|
10
|
+
})({}), f = o("img", {
|
|
12
11
|
name: "SLazyImage",
|
|
13
12
|
slot: "Image"
|
|
14
|
-
})({}), p =
|
|
13
|
+
})({}), p = o(a, {
|
|
15
14
|
name: "SLazyImage",
|
|
16
15
|
slot: "Skeleton"
|
|
17
16
|
})({});
|
|
@@ -21,12 +20,12 @@ function m(e, t) {
|
|
|
21
20
|
function h(e, t) {
|
|
22
21
|
return e === "circular" ? "50%" : e === "rounded" ? typeof t == "number" ? `${t}px` : t : 0;
|
|
23
22
|
}
|
|
24
|
-
var g =
|
|
25
|
-
let
|
|
26
|
-
props:
|
|
23
|
+
var g = t.forwardRef(function(i, a) {
|
|
24
|
+
let o = c({
|
|
25
|
+
props: i,
|
|
27
26
|
name: "SLazyImage"
|
|
28
|
-
}), { alt: g, height: _ = "100%", minHeight: v = "auto", minWidth: y = "auto", slotProps: b, slots: x, src: S, sx: C, variant: w = "rounded", width: T = "100%", ...E } =
|
|
29
|
-
...
|
|
27
|
+
}), { alt: g, height: _ = "100%", minHeight: v = "auto", minWidth: y = "auto", slotProps: b, slots: x, src: S, sx: C, variant: w = "rounded", width: T = "100%", ...E } = o, D = s(), [O, k] = t.useState(null), A = O === S, j = {
|
|
28
|
+
...o,
|
|
30
29
|
alt: g,
|
|
31
30
|
height: _,
|
|
32
31
|
loaded: A,
|
|
@@ -35,13 +34,13 @@ var g = r.forwardRef(function(o, s) {
|
|
|
35
34
|
src: S,
|
|
36
35
|
variant: w,
|
|
37
36
|
width: T
|
|
38
|
-
}, M = x?.root ?? d, N = x?.image ?? f, P = x?.skeleton ?? p, F = m(b?.root, j), I = m(b?.image, j), L = m(b?.skeleton, j), { ref: R, sx: z, ...B } =
|
|
37
|
+
}, M = x?.root ?? d, N = x?.image ?? f, P = x?.skeleton ?? p, F = m(b?.root, j), I = m(b?.image, j), L = m(b?.skeleton, j), { ref: R, sx: z, ...B } = l(F, {
|
|
39
38
|
...E,
|
|
40
39
|
sx: C
|
|
41
|
-
}), { onLoad: V, sx: H, ...U } = I ?? {}, { sx: W, ...G } = L ?? {}, K = h(w, D.shape.borderRadius), q =
|
|
40
|
+
}), { onLoad: V, sx: H, ...U } = I ?? {}, { sx: W, ...G } = L ?? {}, K = h(w, D.shape.borderRadius), q = u(R, a), J = (e) => {
|
|
42
41
|
k(S), V?.(e);
|
|
43
42
|
}, Y = { ownerState: j }, X = { ownerState: j }, Z = { ownerState: j };
|
|
44
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ r(M, {
|
|
45
44
|
...B,
|
|
46
45
|
...Y,
|
|
47
46
|
ref: q,
|
|
@@ -52,7 +51,7 @@ var g = r.forwardRef(function(o, s) {
|
|
|
52
51
|
position: "relative",
|
|
53
52
|
width: T
|
|
54
53
|
}, ...e(z)],
|
|
55
|
-
children: [A ? null : /* @__PURE__ */
|
|
54
|
+
children: [A ? null : /* @__PURE__ */ n(P, {
|
|
56
55
|
animation: "wave",
|
|
57
56
|
variant: w,
|
|
58
57
|
...G,
|
|
@@ -63,7 +62,7 @@ var g = r.forwardRef(function(o, s) {
|
|
|
63
62
|
minWidth: y,
|
|
64
63
|
width: "100%"
|
|
65
64
|
}, ...e(W)]
|
|
66
|
-
}), /* @__PURE__ */
|
|
65
|
+
}), /* @__PURE__ */ n(N, {
|
|
67
66
|
...U,
|
|
68
67
|
...X,
|
|
69
68
|
alt: g,
|
package/dist/s-link/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SLink as e } from "./s-link.js";
|
|
2
2
|
export { e as SLink, e as default };
|
package/dist/s-link/s-link.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { toSxArray as e } from "../utils/sx.js";
|
|
2
2
|
import { resolveOwnerStateSlotProps as t } from "../utils/slots.js";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { Box as d, ListItemButton as f, Typography as p, styled as m, useThemeProps as h } from "@mui/material";
|
|
3
|
+
import { getFocusVisibleStyle as n, reducedMotionMedia as r } from "../theme/components/action-styles.js";
|
|
4
|
+
import * as i from "react";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
import { svgIconClasses as s } from "@mui/material/SvgIcon";
|
|
7
|
+
import { Box as c, ListItemButton as l, Typography as u, styled as d, useThemeProps as f } from "@mui/material";
|
|
8
|
+
import { mergeSlotProps as p, useForkRef as m } from "@mui/material/utils";
|
|
9
|
+
import h from "@mui/utils/appendOwnerState";
|
|
11
10
|
//#region lib/s-list-action-item/s-list-action-item.tsx
|
|
12
|
-
var g = 44, _ = 36, v =
|
|
11
|
+
var g = 44, _ = 36, v = d(l, {
|
|
13
12
|
name: "SListActionItem",
|
|
14
13
|
slot: "Root",
|
|
15
14
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
@@ -19,12 +18,12 @@ var g = 44, _ = 36, v = m(f, {
|
|
|
19
18
|
minHeight: g,
|
|
20
19
|
transition: e.transitions.create(["background-color", "color"], { duration: e.transitions.duration.shorter }),
|
|
21
20
|
width: "100%",
|
|
22
|
-
[`&&& .${
|
|
21
|
+
[`&&& .${s.root}`]: { color: "inherit" },
|
|
23
22
|
"&.Mui-focusVisible": {
|
|
24
|
-
...
|
|
23
|
+
...n(e),
|
|
25
24
|
outlineOffset: -2
|
|
26
25
|
},
|
|
27
|
-
[
|
|
26
|
+
[r]: { transition: "none" },
|
|
28
27
|
variants: [{
|
|
29
28
|
props: ({ ownerState: e }) => e.variant === "inset",
|
|
30
29
|
style: {
|
|
@@ -39,7 +38,7 @@ var g = 44, _ = 36, v = m(f, {
|
|
|
39
38
|
paddingBlock: e.spacing(.5)
|
|
40
39
|
}
|
|
41
40
|
}]
|
|
42
|
-
})), y =
|
|
41
|
+
})), y = d(c, {
|
|
43
42
|
name: "SListActionItem",
|
|
44
43
|
slot: "Icon",
|
|
45
44
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
@@ -50,7 +49,7 @@ var g = 44, _ = 36, v = m(f, {
|
|
|
50
49
|
flexShrink: 0,
|
|
51
50
|
justifyContent: "center",
|
|
52
51
|
minWidth: 0
|
|
53
|
-
}), b =
|
|
52
|
+
}), b = d(c, {
|
|
54
53
|
name: "SListActionItem",
|
|
55
54
|
slot: "Text",
|
|
56
55
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
@@ -63,7 +62,7 @@ var g = 44, _ = 36, v = m(f, {
|
|
|
63
62
|
props: ({ ownerState: e }) => e.hasDescription,
|
|
64
63
|
style: { gap: e.spacing(.25) }
|
|
65
64
|
}]
|
|
66
|
-
})), x =
|
|
65
|
+
})), x = d(u, {
|
|
67
66
|
name: "SListActionItem",
|
|
68
67
|
slot: "Label",
|
|
69
68
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
@@ -72,7 +71,7 @@ var g = 44, _ = 36, v = m(f, {
|
|
|
72
71
|
minWidth: 0,
|
|
73
72
|
overflow: "hidden",
|
|
74
73
|
textOverflow: "ellipsis"
|
|
75
|
-
}), S =
|
|
74
|
+
}), S = d(u, {
|
|
76
75
|
name: "SListActionItem",
|
|
77
76
|
slot: "Description",
|
|
78
77
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
@@ -82,7 +81,7 @@ var g = 44, _ = 36, v = m(f, {
|
|
|
82
81
|
minWidth: 0,
|
|
83
82
|
overflow: "hidden",
|
|
84
83
|
textOverflow: "ellipsis"
|
|
85
|
-
})), C =
|
|
84
|
+
})), C = d(c, {
|
|
86
85
|
name: "SListActionItem",
|
|
87
86
|
slot: "Trailing",
|
|
88
87
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
@@ -92,53 +91,53 @@ var g = 44, _ = 36, v = m(f, {
|
|
|
92
91
|
display: "flex",
|
|
93
92
|
flexShrink: 0,
|
|
94
93
|
marginInlineStart: "auto"
|
|
95
|
-
})), w =
|
|
96
|
-
let
|
|
97
|
-
props:
|
|
94
|
+
})), w = i.forwardRef(function(n, r) {
|
|
95
|
+
let i = f({
|
|
96
|
+
props: n,
|
|
98
97
|
name: "SListActionItem"
|
|
99
|
-
}), { "aria-current":
|
|
100
|
-
...
|
|
101
|
-
dense:
|
|
102
|
-
disabled:
|
|
103
|
-
hasDescription:
|
|
98
|
+
}), { "aria-current": s, component: c, dense: l = !1, description: u, disabled: d = !1, href: g, icon: _, label: w, selected: T = !1, slotProps: E, slots: D, sx: O, trailing: k, variant: A = "plain", ...j } = i, M = {
|
|
99
|
+
...i,
|
|
100
|
+
dense: l,
|
|
101
|
+
disabled: d,
|
|
102
|
+
hasDescription: u != null,
|
|
104
103
|
selected: T,
|
|
105
104
|
variant: A
|
|
106
|
-
}, N = D?.root ?? v, P = D?.icon ?? y, F = D?.text ?? b, I = D?.label ?? x, L = D?.description ?? S, R = D?.trailing ?? C, z =
|
|
105
|
+
}, N = D?.root ?? v, P = D?.icon ?? y, F = D?.text ?? b, I = D?.label ?? x, L = D?.description ?? S, R = D?.trailing ?? C, z = c ?? (g ? "a" : "button"), B = T ? "page" : void 0, V = "aria-current" in i ? s : B, { ref: H, sx: U, ...W } = h(N, p(t(E?.root, M), {
|
|
107
106
|
...j,
|
|
108
107
|
"aria-current": V,
|
|
109
|
-
dense:
|
|
110
|
-
disabled:
|
|
111
|
-
href:
|
|
108
|
+
dense: l,
|
|
109
|
+
disabled: d,
|
|
110
|
+
href: d ? void 0 : g,
|
|
112
111
|
selected: T
|
|
113
|
-
}), M), G =
|
|
112
|
+
}), M), G = m(H, r), K = h(P, p(t(E?.icon, M), { component: "span" }), M), q = h(F, p(t(E?.text, M), { component: "span" }), M), J = h(I, p(t(E?.label, M), {
|
|
114
113
|
component: "span",
|
|
115
114
|
variant: "body1"
|
|
116
|
-
}), M), Y =
|
|
115
|
+
}), M), Y = h(L, p(t(E?.description, M), {
|
|
117
116
|
component: "span",
|
|
118
117
|
variant: "body2"
|
|
119
|
-
}), M), X =
|
|
120
|
-
return /* @__PURE__ */
|
|
118
|
+
}), M), X = h(R, p(t(E?.trailing, M), { component: "span" }), M);
|
|
119
|
+
return /* @__PURE__ */ o(N, {
|
|
121
120
|
...W,
|
|
122
121
|
ref: G,
|
|
123
122
|
component: z,
|
|
124
123
|
nativeButton: z === "button",
|
|
125
124
|
sx: [...e(U), ...e(O)],
|
|
126
125
|
children: [
|
|
127
|
-
_ == null ? null : /* @__PURE__ */
|
|
126
|
+
_ == null ? null : /* @__PURE__ */ a(P, {
|
|
128
127
|
...K,
|
|
129
128
|
children: _
|
|
130
129
|
}),
|
|
131
|
-
/* @__PURE__ */
|
|
130
|
+
/* @__PURE__ */ o(F, {
|
|
132
131
|
...q,
|
|
133
|
-
children: [/* @__PURE__ */
|
|
132
|
+
children: [/* @__PURE__ */ a(I, {
|
|
134
133
|
...J,
|
|
135
134
|
children: w
|
|
136
|
-
}),
|
|
135
|
+
}), u == null ? null : /* @__PURE__ */ a(L, {
|
|
137
136
|
...Y,
|
|
138
|
-
children:
|
|
137
|
+
children: u
|
|
139
138
|
})]
|
|
140
139
|
}),
|
|
141
|
-
k == null ? null : /* @__PURE__ */
|
|
140
|
+
k == null ? null : /* @__PURE__ */ a(R, {
|
|
142
141
|
...X,
|
|
143
142
|
children: k
|
|
144
143
|
})
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SLocalizationProvider as e } from "./s-localization-provider.js";
|
|
2
2
|
export { e as SLocalizationProvider, e as default };
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import "react";
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { AdapterDayjs as t } from "@mui/x-date-pickers/AdapterDayjs";
|
|
4
|
+
import { LocalizationProvider as n } from "@mui/x-date-pickers/LocalizationProvider";
|
|
5
|
+
//#region lib/s-localization-provider/s-localization-provider.tsx
|
|
6
|
+
var r = (r) => /* @__PURE__ */ e(n, {
|
|
7
|
+
...r,
|
|
8
|
+
dateAdapter: t
|
|
9
|
+
});
|
|
10
|
+
r.displayName = "SLocalizationProvider";
|
|
11
|
+
//#endregion
|
|
12
|
+
export { r as SLocalizationProvider, r as default };
|