@solostylist/ui-kit 2.0.0 → 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/{gradients-90SYkAC0.js → gradients-DSnBONEQ.js} +1 -1
- package/dist/main.js +1 -1
- package/dist/palettes/index.js +1 -1
- package/dist/{palettes-Dw3PEYF5.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-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 +184 -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-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-icon-button/s-icon-button.js +15 -16
- 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-label/s-label.js +26 -27
- package/dist/s-language-switcher/index.js +2 -2
- package/dist/s-language-switcher/s-language-switcher.js +150 -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-localization-provider/index.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +12 -2
- package/dist/s-nav-item/s-nav-item.js +16 -16
- package/dist/s-nav-items/index.js +2 -2
- package/dist/s-nav-items/s-nav-items.js +167 -2
- package/dist/s-no-ssr/index.js +1 -1
- package/dist/s-no-ssr/s-no-ssr.js +5 -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-quantity-input/index.js +1 -1
- package/dist/s-quantity-input/s-quantity-input.js +246 -2
- 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-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 +16 -17
- 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-stripe/s-stripe.js +11 -12
- package/dist/s-stripe/stripe-input.js +3 -2
- 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 +216 -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/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-Dt_DT9b5.js → theme-primitives-CRfnMsNy.js} +108 -109
- package/dist/utils/dayjs.js +9 -146
- package/package.json +1 -1
- package/dist/Add-COc9VdNg.js +0 -6
- package/dist/ArrowUpward-D88i2k4q.js +0 -6
- package/dist/Box-9oeZgA1U.js +0 -46
- package/dist/Button-DgIFcM44.js +0 -534
- package/dist/ButtonBase-DxKtpFYs.js +0 -747
- package/dist/Checkbox-BoZu9z2l.js +0 -152
- package/dist/ChevronRight-BxsM4W78.js +0 -6
- package/dist/Close-o4HFfK0I.js +0 -6
- package/dist/Collapse-zgIFP5Sj.js +0 -266
- package/dist/ContentCopy-5unyTYXy.js +0 -6
- package/dist/DefaultPropsProvider-ebWx4_5E.js +0 -128
- package/dist/DialogContent-CAry6lVf.js +0 -450
- package/dist/Download-DtvoRwpl.js +0 -6
- package/dist/ExpandMore-Ba5bg6s-.js +0 -6
- package/dist/Favorite-B_GsElm0.js +0 -6
- package/dist/FormControl-BxmM9UP6.js +0 -221
- package/dist/FormControlLabel-DzgppcC_.js +0 -173
- package/dist/Grow-zRRuwUl-.js +0 -121
- package/dist/InfoOutlined-VC7X46pc.js +0 -6
- package/dist/List-CnGIAXAS.js +0 -103
- package/dist/ListContext-B1HQt3OD.js +0 -6
- package/dist/Menu-C4Zabc9U.js +0 -504
- package/dist/MenuItem-rXJfQzDC.js +0 -223
- package/dist/MenuList-DDV8J-yd.js +0 -407
- package/dist/Modal-jAiibALV.js +0 -707
- package/dist/Paper-ixxCeml9.js +0 -115
- package/dist/Popper-CVYyMS3c.js +0 -1350
- package/dist/Portal-AnyvFRC4.js +0 -53
- package/dist/RtlProvider-B7uVJXUY.js +0 -19
- package/dist/Skeleton-iZFynl7z.js +0 -220
- package/dist/Stack-UMc4dV4G.js +0 -158
- package/dist/SwitchBase-D7zqrstO.js +0 -198
- package/dist/Tooltip-DbCd6rgF.js +0 -447
- package/dist/Typography-yXjc7kVP.js +0 -168
- package/dist/UnfoldMoreRounded-DsN0HVDV.js +0 -6
- package/dist/appendOwnerState-CELpvdMz.js +0 -17
- package/dist/assets/stripe-input.css +0 -1
- package/dist/autocomplete-B_4y84Ba.js +0 -43
- package/dist/avatar-BHuZu3DN.js +0 -10
- package/dist/buttonBaseClasses-BvBqFLb_.js +0 -13
- package/dist/capitalize-CccCFNpQ.js +0 -5
- package/dist/checkbox-BKMZEVU5.js +0 -88
- package/dist/checkboxClasses-CEsqS4sc.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-WOhYaq1E.js +0 -16
- package/dist/createSimplePaletteValueFilter-C1gWywW_.js +0 -14
- package/dist/createSvgIcon-B0SZlJF1.js +0 -155
- package/dist/createTheme-xB2Em0Na.js +0 -1869
- package/dist/defaultTheme-BaGcIzCh.js +0 -210
- package/dist/elementAcceptingRef-DhkNAkFH.js +0 -472
- package/dist/exactProp-C_IsucXf.js +0 -13
- package/dist/field-label-styles-BOyhp6gw.js +0 -50
- package/dist/formLabelClasses-B0Fa-86T.js +0 -18
- package/dist/generateUtilityClass-PAIOm1jC.js +0 -34
- package/dist/generateUtilityClasses-DvX505Gy.js +0 -10
- package/dist/iconButtonClasses-CkciZuIe.js +0 -27
- package/dist/inputAdornmentClasses-D5yYK5bM.js +0 -19
- package/dist/inputBaseClasses-DuWQGq8Z.js +0 -25
- package/dist/integerPropType-Disnft4a.js +0 -27
- package/dist/isEventHandler-8dPdzK9U.js +0 -7
- package/dist/isFocusVisible-Y7157FQS.js +0 -35
- package/dist/isLayoutSupported-Ceir7nyK.js +0 -21
- package/dist/listItemButtonClasses-DbL-aTVf.js +0 -18
- package/dist/memoTheme-qFyKAk7y.js +0 -15
- package/dist/mergeSlotProps-xl1-PgWL.js +0 -45
- package/dist/monthCalendarClasses-BYVHyEfI.js +0 -14
- package/dist/objectWithoutPropertiesLoose-Cpds-4w8.js +0 -23
- package/dist/outlinedInputClasses-DECY98u0.js +0 -17
- package/dist/pickersCalendarHeaderClasses-CIj0gBye.js +0 -12
- package/dist/prop-types-BzYPyWN7.js +0 -516
- package/dist/resolveProps-7jIA45vn.js +0 -30
- package/dist/s-accordion-B8nlrdFc.js +0 -487
- package/dist/s-carousel-Dnjke4JQ.js +0 -1353
- package/dist/s-chat-input-DCS0mJE4.js +0 -419
- package/dist/s-chat-message-9oollJJq.js +0 -315
- package/dist/s-chips-WqGdqHW9.js +0 -176
- package/dist/s-code-block-DzGoGg5e.js +0 -658
- package/dist/s-comment-message-C6kfgRjv.js +0 -191
- package/dist/s-data-table-B1TGVupB.js +0 -805
- package/dist/s-date-picker-BpX4HmBp.js +0 -656
- package/dist/s-datetime-picker-ByzW44E0.js +0 -3878
- package/dist/s-dialog-BLiyjLkx.js +0 -123
- package/dist/s-file-dropzone-CVQpYRdY.js +0 -422
- package/dist/s-image-viewer-DNIEYdtL.js +0 -269
- package/dist/s-language-switcher-D-1nywT3.js +0 -251
- package/dist/s-link-CAMTGfd9.js +0 -234
- package/dist/s-localization-provider-Xw3NO2uP.js +0 -519
- package/dist/s-nav-items-BUp7DddG.js +0 -327
- package/dist/s-no-ssr-D8tPdDfh.js +0 -25
- package/dist/s-pagination-Dt8Pk5Tp.js +0 -606
- package/dist/s-quantity-input-mYCixlJc.js +0 -246
- package/dist/s-review-DSXXtWlL.js +0 -272
- package/dist/s-select-dwY2DYa9.js +0 -204
- package/dist/s-snackbar-message-3Z6VySlB.js +0 -808
- package/dist/s-switch-B8bZAzLh.js +0 -307
- package/dist/s-text-editor-toolbar-D-XgFQix.js +0 -2121
- package/dist/s-text-field-BM4qk0mf.js +0 -51
- package/dist/s-theme-switch-BLMz1_m2.js +0 -60
- package/dist/s-tip-ty41ePQm.js +0 -62
- package/dist/selectClasses-DoUlWfzV.js +0 -22
- package/dist/styled-Bog8QCl3.js +0 -163
- package/dist/svgIconClasses-C8D4AsMj.js +0 -20
- package/dist/switchClasses-eiq1bkQN.js +0 -23
- package/dist/theme-demo-components-section-gtIYRngY.js +0 -267
- package/dist/toggle-button-Cxi5CfXC.js +0 -104
- package/dist/tool-bar-action-buttons-Dt-pV3GA.js +0 -54
- package/dist/tool-bar-image-input-BXlll_hV.js +0 -148
- package/dist/typographyClasses-BLM3NmYd.js +0 -31
- package/dist/useControlled-BeB0W_Ui.js +0 -5
- package/dist/useControlled-C4QJnpiR.js +0 -29
- package/dist/useEnhancedEffect-Bc3gBClC.js +0 -5
- package/dist/useEnhancedEffect-DFq_FMGX.js +0 -5
- package/dist/useEventCallback-CVqMfiG_.js +0 -14
- package/dist/useForkRef-CKneCEtr.js +0 -29
- package/dist/useFormControl-iWLrn7Ek.js +0 -18
- package/dist/useMobilePicker-C4UQFvkj.js +0 -7580
- package/dist/useSlot-iIu8ek6E.js +0 -83
- package/dist/useTheme-BIWMbX3i.js +0 -9
- package/dist/useThemeProps-BI9yq95N.js +0 -19
- package/dist/useThemeProps-Cr28OQu3.js +0 -13
- package/dist/utils-oJyTAkZY.js +0 -214
- package/dist/warning-CNkSZkq6.js +0 -98
- package/dist/yearCalendarClasses-CuAQumpz.js +0 -14
- /package/dist/{colors-DKqWMRgW.js → colors-CNjL5fhq.js} +0 -0
- /package/dist/{s-brand-logo-jtAJZQIv.js → s-brand-logo-CErW9Slg.js} +0 -0
- /package/dist/{utils-DaSrTYUS.js → utils-CMeAWSRO.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { toSxArray as e } from "../utils/sx.js";
|
|
2
|
-
import { t } from "../
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
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
7
|
//#region lib/s-status-illustration/s-status-illustration.tsx
|
|
8
8
|
var m = (e) => {
|
|
9
9
|
let t = (e.vars ?? e).palette;
|
|
@@ -65,35 +65,35 @@ var m = (e) => {
|
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
67
|
function h() {
|
|
68
|
-
return /* @__PURE__ */
|
|
68
|
+
return /* @__PURE__ */ i(r, { children: /* @__PURE__ */ a("g", {
|
|
69
69
|
transform: "translate(-5.5 -4)",
|
|
70
70
|
children: [
|
|
71
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ i("path", {
|
|
72
72
|
className: "SStatusIllustration-surface SStatusIllustration-outline",
|
|
73
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
74
|
strokeLinejoin: "round",
|
|
75
75
|
strokeWidth: "4"
|
|
76
76
|
}),
|
|
77
|
-
/* @__PURE__ */
|
|
77
|
+
/* @__PURE__ */ i("circle", {
|
|
78
78
|
className: "SStatusIllustration-accent",
|
|
79
79
|
cx: "176",
|
|
80
80
|
cy: "120",
|
|
81
81
|
r: "8"
|
|
82
82
|
}),
|
|
83
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ i("circle", {
|
|
84
84
|
className: "SStatusIllustration-surface SStatusIllustration-outline",
|
|
85
85
|
cx: "100",
|
|
86
86
|
cy: "72",
|
|
87
87
|
r: "32",
|
|
88
88
|
strokeWidth: "4"
|
|
89
89
|
}),
|
|
90
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ i("path", {
|
|
91
91
|
className: "SStatusIllustration-outline",
|
|
92
92
|
d: "M77.3726 94.6274L60 112",
|
|
93
93
|
strokeLinecap: "round",
|
|
94
94
|
strokeWidth: "14"
|
|
95
95
|
}),
|
|
96
|
-
/* @__PURE__ */
|
|
96
|
+
/* @__PURE__ */ i("path", {
|
|
97
97
|
className: "SStatusIllustration-surfaceStroke",
|
|
98
98
|
d: "M77.3726 94.6274L60 112",
|
|
99
99
|
fill: "none",
|
|
@@ -104,10 +104,10 @@ function h() {
|
|
|
104
104
|
}) });
|
|
105
105
|
}
|
|
106
106
|
function g() {
|
|
107
|
-
return /* @__PURE__ */
|
|
107
|
+
return /* @__PURE__ */ i(r, { children: /* @__PURE__ */ a("g", {
|
|
108
108
|
transform: "translate(120 90) scale(1.1428571429) translate(-120 -80)",
|
|
109
109
|
children: [
|
|
110
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ i("path", {
|
|
111
111
|
className: "SStatusIllustration-outline",
|
|
112
112
|
d: "M72 96A48 48 0 0 1 168 96M52 96H96M144 96H188M52 112H96M144 112H188",
|
|
113
113
|
fill: "none",
|
|
@@ -115,14 +115,14 @@ function g() {
|
|
|
115
115
|
strokeLinejoin: "round",
|
|
116
116
|
strokeWidth: "4"
|
|
117
117
|
}),
|
|
118
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ i("circle", {
|
|
119
119
|
className: "SStatusIllustration-surface SStatusIllustration-outline",
|
|
120
120
|
cx: "120",
|
|
121
121
|
cy: "88",
|
|
122
122
|
r: "7",
|
|
123
123
|
strokeWidth: "4"
|
|
124
124
|
}),
|
|
125
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ i("path", {
|
|
126
126
|
className: "SStatusIllustration-accent SStatusIllustration-accentStroke",
|
|
127
127
|
d: "M96 112H144",
|
|
128
128
|
strokeLinecap: "round",
|
|
@@ -132,10 +132,10 @@ function g() {
|
|
|
132
132
|
}) });
|
|
133
133
|
}
|
|
134
134
|
function _() {
|
|
135
|
-
return /* @__PURE__ */
|
|
135
|
+
return /* @__PURE__ */ i(r, { children: /* @__PURE__ */ a("g", {
|
|
136
136
|
transform: "translate(-4 -8)",
|
|
137
137
|
children: [
|
|
138
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ i("path", {
|
|
139
139
|
className: "SStatusIllustration-outline",
|
|
140
140
|
d: "M64 122H56V58C56 49.2 63.2 42 72 42H152V72",
|
|
141
141
|
fill: "none",
|
|
@@ -143,7 +143,7 @@ function _() {
|
|
|
143
143
|
strokeLinejoin: "round",
|
|
144
144
|
strokeWidth: "4"
|
|
145
145
|
}),
|
|
146
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ i("rect", {
|
|
147
147
|
className: "SStatusIllustration-surface SStatusIllustration-outline",
|
|
148
148
|
x: "80",
|
|
149
149
|
y: "66",
|
|
@@ -152,7 +152,7 @@ function _() {
|
|
|
152
152
|
rx: "16",
|
|
153
153
|
strokeWidth: "4"
|
|
154
154
|
}),
|
|
155
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ i("path", {
|
|
156
156
|
className: "SStatusIllustration-outline",
|
|
157
157
|
d: "M112 138V154H160V138",
|
|
158
158
|
fill: "none",
|
|
@@ -160,7 +160,7 @@ function _() {
|
|
|
160
160
|
strokeLinejoin: "round",
|
|
161
161
|
strokeWidth: "4"
|
|
162
162
|
}),
|
|
163
|
-
/* @__PURE__ */
|
|
163
|
+
/* @__PURE__ */ i("circle", {
|
|
164
164
|
className: "SStatusIllustration-error",
|
|
165
165
|
cx: "136",
|
|
166
166
|
cy: "102",
|
|
@@ -170,21 +170,21 @@ function _() {
|
|
|
170
170
|
}) });
|
|
171
171
|
}
|
|
172
172
|
function v() {
|
|
173
|
-
return /* @__PURE__ */
|
|
173
|
+
return /* @__PURE__ */ i(r, { children: /* @__PURE__ */ a("g", {
|
|
174
174
|
transform: "translate(-12 -2)",
|
|
175
175
|
children: [
|
|
176
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ i("path", {
|
|
177
177
|
className: "SStatusIllustration-surface SStatusIllustration-outline",
|
|
178
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
179
|
strokeWidth: "4"
|
|
180
180
|
}),
|
|
181
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ i("path", {
|
|
182
182
|
className: "SStatusIllustration-accentSoft SStatusIllustration-outline",
|
|
183
183
|
d: "M136 34V66H168L136 34Z",
|
|
184
184
|
strokeLinejoin: "round",
|
|
185
185
|
strokeWidth: "4"
|
|
186
186
|
}),
|
|
187
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ i("rect", {
|
|
188
188
|
className: "SStatusIllustration-surface SStatusIllustration-outline",
|
|
189
189
|
x: "104",
|
|
190
190
|
y: "78",
|
|
@@ -193,7 +193,7 @@ function v() {
|
|
|
193
193
|
rx: "18",
|
|
194
194
|
strokeWidth: "4"
|
|
195
195
|
}),
|
|
196
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ i("circle", {
|
|
197
197
|
className: "SStatusIllustration-error",
|
|
198
198
|
cx: "152",
|
|
199
199
|
cy: "106",
|
|
@@ -203,37 +203,37 @@ function v() {
|
|
|
203
203
|
}) });
|
|
204
204
|
}
|
|
205
205
|
function y() {
|
|
206
|
-
return /* @__PURE__ */
|
|
206
|
+
return /* @__PURE__ */ i(r, { children: /* @__PURE__ */ a("g", {
|
|
207
207
|
transform: "translate(6 -4)",
|
|
208
208
|
children: [
|
|
209
|
-
/* @__PURE__ */
|
|
209
|
+
/* @__PURE__ */ i("path", {
|
|
210
210
|
className: "SStatusIllustration-surface SStatusIllustration-outline",
|
|
211
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
212
|
strokeLinejoin: "round",
|
|
213
213
|
strokeWidth: "4"
|
|
214
214
|
}),
|
|
215
|
-
/* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ i("path", {
|
|
216
216
|
className: "SStatusIllustration-detail",
|
|
217
217
|
d: "M104 64V140",
|
|
218
218
|
fill: "none",
|
|
219
219
|
strokeLinecap: "round",
|
|
220
220
|
strokeWidth: "4"
|
|
221
221
|
}),
|
|
222
|
-
/* @__PURE__ */
|
|
222
|
+
/* @__PURE__ */ i("circle", {
|
|
223
223
|
className: "SStatusIllustration-surface SStatusIllustration-outline",
|
|
224
224
|
cx: "104",
|
|
225
225
|
cy: "58",
|
|
226
226
|
r: "6",
|
|
227
227
|
strokeWidth: "4"
|
|
228
228
|
}),
|
|
229
|
-
/* @__PURE__ */
|
|
229
|
+
/* @__PURE__ */ i("path", {
|
|
230
230
|
className: "SStatusIllustration-outline",
|
|
231
231
|
d: "M136 98V88A12 16 0 0 1 160 88V98",
|
|
232
232
|
fill: "none",
|
|
233
233
|
strokeLinecap: "round",
|
|
234
234
|
strokeWidth: "4"
|
|
235
235
|
}),
|
|
236
|
-
/* @__PURE__ */
|
|
236
|
+
/* @__PURE__ */ i("rect", {
|
|
237
237
|
className: "SStatusIllustration-surface SStatusIllustration-outline",
|
|
238
238
|
x: "124",
|
|
239
239
|
y: "96",
|
|
@@ -242,13 +242,13 @@ function y() {
|
|
|
242
242
|
rx: "10",
|
|
243
243
|
strokeWidth: "4"
|
|
244
244
|
}),
|
|
245
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ i("circle", {
|
|
246
246
|
className: "SStatusIllustration-accent",
|
|
247
247
|
cx: "148",
|
|
248
248
|
cy: "116",
|
|
249
249
|
r: "5"
|
|
250
250
|
}),
|
|
251
|
-
/* @__PURE__ */
|
|
251
|
+
/* @__PURE__ */ i("path", {
|
|
252
252
|
className: "SStatusIllustration-accent SStatusIllustration-accentStroke",
|
|
253
253
|
d: "M148 120V130",
|
|
254
254
|
strokeLinecap: "round",
|
|
@@ -258,33 +258,33 @@ function y() {
|
|
|
258
258
|
}) });
|
|
259
259
|
}
|
|
260
260
|
function b() {
|
|
261
|
-
return /* @__PURE__ */
|
|
261
|
+
return /* @__PURE__ */ i(r, { children: /* @__PURE__ */ a("g", {
|
|
262
262
|
transform: "translate(0 -5)",
|
|
263
|
-
children: [/* @__PURE__ */
|
|
263
|
+
children: [/* @__PURE__ */ i("path", {
|
|
264
264
|
className: "SStatusIllustration-outline",
|
|
265
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
266
|
fill: "none",
|
|
267
267
|
strokeLinecap: "round",
|
|
268
268
|
strokeLinejoin: "round",
|
|
269
269
|
strokeWidth: "4"
|
|
270
|
-
}), /* @__PURE__ */
|
|
270
|
+
}), /* @__PURE__ */ a("g", {
|
|
271
271
|
transform: "translate(-12)",
|
|
272
272
|
children: [
|
|
273
|
-
/* @__PURE__ */
|
|
273
|
+
/* @__PURE__ */ i("circle", {
|
|
274
274
|
className: "SStatusIllustration-error",
|
|
275
275
|
cx: "88",
|
|
276
276
|
cy: "120",
|
|
277
277
|
r: "12",
|
|
278
278
|
stroke: "none"
|
|
279
279
|
}),
|
|
280
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ i("path", {
|
|
281
281
|
className: "SStatusIllustration-outline",
|
|
282
282
|
d: "M108 125L156 137",
|
|
283
283
|
fill: "none",
|
|
284
284
|
strokeLinecap: "round",
|
|
285
285
|
strokeWidth: "4"
|
|
286
286
|
}),
|
|
287
|
-
/* @__PURE__ */
|
|
287
|
+
/* @__PURE__ */ i("circle", {
|
|
288
288
|
className: "SStatusIllustration-warning",
|
|
289
289
|
cx: "176",
|
|
290
290
|
cy: "142",
|
|
@@ -296,22 +296,22 @@ function b() {
|
|
|
296
296
|
}) });
|
|
297
297
|
}
|
|
298
298
|
function x() {
|
|
299
|
-
return /* @__PURE__ */
|
|
299
|
+
return /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a("g", {
|
|
300
300
|
transform: "translate(120 90) rotate(45)",
|
|
301
|
-
children: [/* @__PURE__ */
|
|
301
|
+
children: [/* @__PURE__ */ i("path", {
|
|
302
302
|
className: "SStatusIllustration-accent SStatusIllustration-accentStroke",
|
|
303
303
|
d: "M-68 0H-22",
|
|
304
304
|
strokeLinecap: "round",
|
|
305
305
|
strokeWidth: "14"
|
|
306
|
-
}), /* @__PURE__ */
|
|
306
|
+
}), /* @__PURE__ */ i("path", {
|
|
307
307
|
className: "SStatusIllustration-orange SStatusIllustration-orangeStroke",
|
|
308
308
|
d: "M22 0H68",
|
|
309
309
|
strokeLinecap: "round",
|
|
310
310
|
strokeWidth: "14"
|
|
311
311
|
})]
|
|
312
|
-
}), /* @__PURE__ */
|
|
312
|
+
}), /* @__PURE__ */ i("g", {
|
|
313
313
|
transform: "translate(120 90) rotate(-45)",
|
|
314
|
-
children: /* @__PURE__ */
|
|
314
|
+
children: /* @__PURE__ */ i("path", {
|
|
315
315
|
className: "SStatusIllustration-surface SStatusIllustration-outline",
|
|
316
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
317
|
strokeLinecap: "round",
|
|
@@ -321,16 +321,16 @@ function x() {
|
|
|
321
321
|
})] });
|
|
322
322
|
}
|
|
323
323
|
var S = {
|
|
324
|
-
accessDenied: /* @__PURE__ */
|
|
325
|
-
error: /* @__PURE__ */
|
|
326
|
-
error404: /* @__PURE__ */
|
|
327
|
-
itemNotFound: /* @__PURE__ */
|
|
328
|
-
maintenance: /* @__PURE__ */
|
|
329
|
-
offline: /* @__PURE__ */
|
|
330
|
-
somethingWentWrong: /* @__PURE__ */
|
|
331
|
-
}, C =
|
|
332
|
-
let { children: r, sx:
|
|
333
|
-
return /* @__PURE__ */
|
|
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
334
|
fill: "none",
|
|
335
335
|
focusable: "false",
|
|
336
336
|
shapeRendering: "geometricPrecision",
|
|
@@ -338,10 +338,10 @@ var S = {
|
|
|
338
338
|
...s,
|
|
339
339
|
"data-variant": o,
|
|
340
340
|
ref: n,
|
|
341
|
-
sx: [m, ...e(
|
|
341
|
+
sx: [m, ...e(a)],
|
|
342
342
|
children: c
|
|
343
343
|
});
|
|
344
|
-
}), T =
|
|
344
|
+
}), T = d(o, {
|
|
345
345
|
name: "SStatusIllustration",
|
|
346
346
|
slot: "Root",
|
|
347
347
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
@@ -349,19 +349,19 @@ var S = {
|
|
|
349
349
|
function E(e, t) {
|
|
350
350
|
return typeof e == "function" ? e(t) : e;
|
|
351
351
|
}
|
|
352
|
-
var D =
|
|
353
|
-
let { action:
|
|
354
|
-
props:
|
|
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
355
|
name: "SStatusIllustration"
|
|
356
356
|
}), D = {
|
|
357
|
-
hasAction:
|
|
357
|
+
hasAction: l != null,
|
|
358
358
|
hasImage: !h && !!(_ || S),
|
|
359
359
|
variant: S
|
|
360
|
-
}, O = y?.container ??
|
|
361
|
-
return /* @__PURE__ */
|
|
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
362
|
...C,
|
|
363
363
|
ownerState: D,
|
|
364
|
-
ref:
|
|
364
|
+
ref: r,
|
|
365
365
|
sx: [{
|
|
366
366
|
alignItems: "center",
|
|
367
367
|
boxSizing: "border-box",
|
|
@@ -371,53 +371,53 @@ var D = r.forwardRef(function(r, i) {
|
|
|
371
371
|
minHeight: "100dvh",
|
|
372
372
|
py: 8
|
|
373
373
|
}, ...e(b)],
|
|
374
|
-
children: /* @__PURE__ */
|
|
374
|
+
children: /* @__PURE__ */ i(O, {
|
|
375
375
|
maxWidth: "sm",
|
|
376
376
|
...L,
|
|
377
|
-
children: /* @__PURE__ */
|
|
377
|
+
children: /* @__PURE__ */ a(k, {
|
|
378
378
|
spacing: 4,
|
|
379
379
|
...R,
|
|
380
380
|
children: [
|
|
381
|
-
!h && (M || _ || S) ? /* @__PURE__ */
|
|
381
|
+
!h && (M || _ || S) ? /* @__PURE__ */ i(A, {
|
|
382
382
|
...q,
|
|
383
383
|
sx: [{
|
|
384
384
|
display: "flex",
|
|
385
385
|
justifyContent: "center"
|
|
386
386
|
}, ...e(K)],
|
|
387
|
-
children: M ? /* @__PURE__ */
|
|
387
|
+
children: M ? /* @__PURE__ */ i(M, { ...B }) : _ ? /* @__PURE__ */ i(j, {
|
|
388
388
|
alt: g,
|
|
389
389
|
height: "auto",
|
|
390
390
|
src: _,
|
|
391
391
|
width: 200,
|
|
392
392
|
...V
|
|
393
|
-
}) : /* @__PURE__ */
|
|
393
|
+
}) : /* @__PURE__ */ i(w, {
|
|
394
394
|
...B,
|
|
395
395
|
variant: S,
|
|
396
|
-
children:
|
|
396
|
+
children: d
|
|
397
397
|
})
|
|
398
398
|
}) : null,
|
|
399
|
-
/* @__PURE__ */
|
|
399
|
+
/* @__PURE__ */ a(N, {
|
|
400
400
|
spacing: 1,
|
|
401
401
|
...Y,
|
|
402
402
|
sx: [{ textAlign: "center" }, ...e(J)],
|
|
403
|
-
children: [/* @__PURE__ */
|
|
403
|
+
children: [/* @__PURE__ */ i(P, {
|
|
404
404
|
variant: "h4",
|
|
405
405
|
...U,
|
|
406
406
|
children: x
|
|
407
|
-
}), /* @__PURE__ */
|
|
407
|
+
}), /* @__PURE__ */ i(F, {
|
|
408
408
|
variant: "body1",
|
|
409
409
|
...Z,
|
|
410
410
|
sx: [{ color: "text.secondary" }, ...e(X)],
|
|
411
411
|
children: m
|
|
412
412
|
})]
|
|
413
413
|
}),
|
|
414
|
-
|
|
414
|
+
l == null ? null : /* @__PURE__ */ i(I, {
|
|
415
415
|
...$,
|
|
416
416
|
sx: [{
|
|
417
417
|
display: "flex",
|
|
418
418
|
justifyContent: "center"
|
|
419
419
|
}, ...e(Q)],
|
|
420
|
-
children:
|
|
420
|
+
children: l
|
|
421
421
|
})
|
|
422
422
|
]
|
|
423
423
|
})
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import r from "./stripe-input.js";
|
|
1
|
+
import { STextField as e } from "../s-text-field/s-text-field.js";
|
|
2
|
+
import t from "./stripe-input.js";
|
|
3
|
+
import { styled as n, useThemeProps as r } from "@mui/material/styles";
|
|
5
4
|
import * as i from "react";
|
|
6
5
|
import { jsx as a } from "react/jsx-runtime";
|
|
7
6
|
//#region lib/s-stripe/s-stripe.tsx
|
|
8
|
-
var o = e
|
|
7
|
+
var o = n(e, {
|
|
9
8
|
name: "StripeTextField",
|
|
10
9
|
slot: "Root",
|
|
11
10
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
@@ -17,7 +16,7 @@ function s(...e) {
|
|
|
17
16
|
};
|
|
18
17
|
}
|
|
19
18
|
var c = i.forwardRef((e, n) => {
|
|
20
|
-
let i =
|
|
19
|
+
let i = r({
|
|
21
20
|
props: e,
|
|
22
21
|
name: "StripeTextField"
|
|
23
22
|
}), { disabled: c = !1, error: l = !1, helperText: u, inputProps: d, labelErrorMessage: f, onChange: p, onReady: m, slotProps: h, stripeElement: g, ..._ } = i, v = {
|
|
@@ -28,16 +27,16 @@ var c = i.forwardRef((e, n) => {
|
|
|
28
27
|
...typeof h?.inputLabel == "function" ? h.inputLabel(e) : h?.inputLabel,
|
|
29
28
|
shrink: !0
|
|
30
29
|
}), b = (e) => {
|
|
31
|
-
let
|
|
30
|
+
let n = typeof h?.input == "function" ? h.input(e) : h?.input, r = n?.inputProps ?? {}, i = {
|
|
32
31
|
...d,
|
|
33
|
-
...
|
|
32
|
+
...r,
|
|
34
33
|
component: g,
|
|
35
|
-
onChange: s(p, d?.onChange,
|
|
36
|
-
onReady: s(m, d?.onReady,
|
|
34
|
+
onChange: s(p, d?.onChange, r.onChange),
|
|
35
|
+
onReady: s(m, d?.onReady, r.onReady)
|
|
37
36
|
};
|
|
38
37
|
return {
|
|
39
|
-
...
|
|
40
|
-
inputComponent:
|
|
38
|
+
...n,
|
|
39
|
+
inputComponent: t,
|
|
41
40
|
inputProps: i
|
|
42
41
|
};
|
|
43
42
|
};
|
|
@@ -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;
|
package/dist/s-switch/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SSwitch as e } from "./s-switch.js";
|
|
2
2
|
export { e as SSwitch, e as default };
|
|
@@ -1,2 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { styled as e, useThemeProps as t } from "@mui/material/styles";
|
|
2
|
+
import n from "@mui/material/Switch";
|
|
3
|
+
import * as r from "react";
|
|
4
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
+
import a from "@mui/utils/appendOwnerState";
|
|
6
|
+
import o, { formControlLabelClasses as s } from "@mui/material/FormControlLabel";
|
|
7
|
+
//#region lib/s-switch/s-switch.tsx
|
|
8
|
+
var c = e(o, {
|
|
9
|
+
name: "SSwitch",
|
|
10
|
+
slot: "Root",
|
|
11
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
12
|
+
})(({ theme: e }) => ({
|
|
13
|
+
display: "flex",
|
|
14
|
+
justifyContent: "space-between",
|
|
15
|
+
margin: 0,
|
|
16
|
+
userSelect: "none",
|
|
17
|
+
[`&&.${s.disabled}`]: { cursor: "not-allowed" },
|
|
18
|
+
[`&& .${s.label}.${s.disabled}`]: { color: (e.vars ?? e).palette.text.disabled }
|
|
19
|
+
}));
|
|
20
|
+
function l(e, t) {
|
|
21
|
+
return typeof e == "function" ? e(t) : e;
|
|
22
|
+
}
|
|
23
|
+
var u = r.forwardRef(function(e, r) {
|
|
24
|
+
let o = t({
|
|
25
|
+
props: e,
|
|
26
|
+
name: "SSwitch"
|
|
27
|
+
}), { disabled: s = !1, label: u, labelPlacement: d = "start", required: f = !1, slotProps: p, slots: m, ...h } = o, g = {
|
|
28
|
+
...o,
|
|
29
|
+
disabled: s,
|
|
30
|
+
labelPlacement: d,
|
|
31
|
+
required: f
|
|
32
|
+
}, _ = m?.control ?? n, v = l(p?.control, g), y = a(m?.control, v ?? {}, g);
|
|
33
|
+
return /* @__PURE__ */ i(c, {
|
|
34
|
+
...h,
|
|
35
|
+
control: /* @__PURE__ */ i(_, { ...y }),
|
|
36
|
+
disabled: s,
|
|
37
|
+
label: u,
|
|
38
|
+
labelPlacement: d,
|
|
39
|
+
ownerState: g,
|
|
40
|
+
ref: r,
|
|
41
|
+
required: f,
|
|
42
|
+
slots: m?.typography ? { typography: m.typography } : void 0,
|
|
43
|
+
slotProps: p?.typography ? { typography: p.typography } : void 0
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
u.displayName = "SSwitch";
|
|
47
|
+
//#endregion
|
|
48
|
+
export { u as SSwitch, u as default };
|
package/dist/s-tabs/s-tabs.js
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { toSxArray as e } from "../utils/sx.js";
|
|
2
|
-
import { t } from "
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
|
-
import { Box as d, Tab as f, Tabs as p, styled as m, useThemeProps as h } from "@mui/material";
|
|
2
|
+
import { getTabId as t, getTabPanelId as n } from "./tab-ids.js";
|
|
3
|
+
import * as r from "react";
|
|
4
|
+
import { createElement as i } from "react";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
import { Box as s, Tab as c, Tabs as l, styled as u, useThemeProps as d } from "@mui/material";
|
|
7
|
+
import { mergeSlotProps as f, useControlled as p, useForkRef as m } from "@mui/material/utils";
|
|
8
|
+
import h from "@mui/utils/appendOwnerState";
|
|
11
9
|
//#region lib/s-tabs/s-tabs.tsx
|
|
12
|
-
var g =
|
|
10
|
+
var g = u(s, {
|
|
13
11
|
name: "STabs",
|
|
14
12
|
slot: "Root",
|
|
15
13
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
@@ -20,61 +18,61 @@ function _(e, t) {
|
|
|
20
18
|
function v(e, t) {
|
|
21
19
|
return e.value ?? t;
|
|
22
20
|
}
|
|
23
|
-
var y =
|
|
24
|
-
let b =
|
|
25
|
-
props:
|
|
21
|
+
var y = r.forwardRef(function(u, y) {
|
|
22
|
+
let b = d({
|
|
23
|
+
props: u,
|
|
26
24
|
name: "STabs"
|
|
27
|
-
}), { children: x, defaultValue:
|
|
28
|
-
controlled:
|
|
29
|
-
default:
|
|
25
|
+
}), { children: x, defaultValue: ee, id: S, onChange: C, orientation: w = "horizontal", slotProps: T, slots: E, sx: D, tabs: O, value: k, ...A } = b, j = r.useId(), M = S ?? j, N = O[0]?.value ?? 0, [P, F] = p({
|
|
26
|
+
controlled: k,
|
|
27
|
+
default: ee ?? N,
|
|
30
28
|
name: "STabs",
|
|
31
29
|
state: "value"
|
|
32
|
-
}),
|
|
30
|
+
}), I = O.findIndex((e, t) => (e.value ?? t) === P), L = I >= 0 ? O[I]?.value ?? I : !1, R = {
|
|
33
31
|
...b,
|
|
34
|
-
activeIndex:
|
|
35
|
-
orientation:
|
|
36
|
-
value:
|
|
37
|
-
},
|
|
38
|
-
|
|
32
|
+
activeIndex: I,
|
|
33
|
+
orientation: w,
|
|
34
|
+
value: P
|
|
35
|
+
}, z = E?.root ?? g, B = E?.list ?? l, V = E?.tab ?? c, H = E?.panel ?? s, U = _(T?.root, R), W = _(T?.list, R), G = _(T?.panel, R), { sx: K, ...q } = U ?? {}, { sx: J, ...Y } = G ?? {}, { ref: X, ...Z } = h(z, q, R), Q = m(X, y), $ = h(E?.list, W ?? {}, R), te = h(E?.panel, Y, R), ne = (e, t) => {
|
|
36
|
+
F(t), C?.(e, t);
|
|
39
37
|
};
|
|
40
|
-
return /* @__PURE__ */
|
|
41
|
-
...
|
|
42
|
-
...
|
|
43
|
-
ref:
|
|
44
|
-
id:
|
|
38
|
+
return /* @__PURE__ */ o(z, {
|
|
39
|
+
...A,
|
|
40
|
+
...Z,
|
|
41
|
+
ref: Q,
|
|
42
|
+
id: M,
|
|
45
43
|
sx: [
|
|
46
|
-
{ display:
|
|
47
|
-
...e(
|
|
48
|
-
...e(
|
|
44
|
+
{ display: w === "vertical" ? "flex" : "block" },
|
|
45
|
+
...e(D),
|
|
46
|
+
...e(K)
|
|
49
47
|
],
|
|
50
|
-
children: [/* @__PURE__ */
|
|
48
|
+
children: [/* @__PURE__ */ a(B, {
|
|
51
49
|
"aria-label": "Tabs",
|
|
52
|
-
|
|
53
|
-
value:
|
|
54
|
-
orientation:
|
|
50
|
+
...$,
|
|
51
|
+
value: P,
|
|
52
|
+
orientation: w,
|
|
55
53
|
onChange: ne,
|
|
56
|
-
children:
|
|
57
|
-
let
|
|
58
|
-
...
|
|
59
|
-
index:
|
|
54
|
+
children: O.map((e, r) => {
|
|
55
|
+
let a = e.value ?? r, o = {
|
|
56
|
+
...R,
|
|
57
|
+
index: r,
|
|
60
58
|
item: e
|
|
61
|
-
},
|
|
62
|
-
return /* @__PURE__ */
|
|
63
|
-
...
|
|
64
|
-
key: v(e,
|
|
65
|
-
id:
|
|
66
|
-
"aria-controls":
|
|
59
|
+
}, s = f(_(T?.tab, o), e);
|
|
60
|
+
return /* @__PURE__ */ i(V, {
|
|
61
|
+
...h(E?.tab, s, o),
|
|
62
|
+
key: v(e, r),
|
|
63
|
+
id: t(M, a),
|
|
64
|
+
"aria-controls": n(M, a),
|
|
67
65
|
label: e.label,
|
|
68
|
-
value:
|
|
66
|
+
value: a
|
|
69
67
|
});
|
|
70
68
|
})
|
|
71
|
-
}), x &&
|
|
69
|
+
}), x && L !== !1 ? /* @__PURE__ */ a(H, {
|
|
72
70
|
...te,
|
|
73
71
|
role: "tabpanel",
|
|
74
|
-
id:
|
|
75
|
-
"aria-labelledby":
|
|
76
|
-
sx: [{ p: 2 }, ...e(
|
|
77
|
-
children:
|
|
72
|
+
id: n(M, L),
|
|
73
|
+
"aria-labelledby": t(M, L),
|
|
74
|
+
sx: [{ p: 2 }, ...e(J)],
|
|
75
|
+
children: r.Children.toArray(x)[I]
|
|
78
76
|
}) : null]
|
|
79
77
|
});
|
|
80
78
|
});
|