@solostylist/ui-kit 1.0.216 → 1.0.218
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/{ArrowUpward-O4lRvSII.js → ArrowUpward-BbQSKheQ.js} +2 -2
- package/dist/Box-BlmynALm.js +45 -0
- package/dist/{ButtonBase-1qqPHJym.js → ButtonBase-Bo6ysVGS.js} +283 -173
- package/dist/{ChevronLeft-CJ94-qgQ.js → ChevronLeft-rgSvkrT_.js} +2 -2
- package/dist/{ChevronRight-CK4Iv1Xx.js → ChevronRight-DHulYS1l.js} +2 -2
- package/dist/{Close-CSIi_IPN.js → Close-oXeOGTZb.js} +2 -2
- package/dist/Collapse-CnXmaDqT.js +260 -0
- package/dist/{ContentCopy-SAMH7bs7.js → ContentCopy-Bh_TA5Eo.js} +2 -2
- package/dist/{Download-BefdWd5q.js → Download-DMm8oiCF.js} +2 -2
- package/dist/{ExpandMore-DZANUF9W.js → ExpandMore-DsZNN1Eh.js} +2 -2
- package/dist/{Favorite-BwMGKQJf.js → Favorite-DIml4fHR.js} +2 -2
- package/dist/FormControl-DYkaP-oD.js +659 -0
- package/dist/InfoOutlined-CqXSSVWh.js +6 -0
- package/dist/LocalizationProvider-BdaUKqz3.js +111 -0
- package/dist/Menu-C-0KEauj.js +497 -0
- package/dist/MenuItem-DWivWkNb.js +220 -0
- package/dist/MenuList-5HOyYdgq.js +403 -0
- package/dist/Modal-C1VRVWBZ.js +1049 -0
- package/dist/{Paper-CI9lXZk-.js → Paper-BY4X6-u_.js} +32 -34
- package/dist/Stack-BQkLmLFp.js +157 -0
- package/dist/Typography-EsraKPZO.js +166 -0
- package/dist/UnfoldMoreRounded-pz7NMMy3.js +6 -0
- package/dist/assets/s-overlay-scrollbar.css +2 -2
- package/dist/autocomplete-qLj7AqcP.js +43 -0
- package/dist/{avatar-CKEYVp9W.js → avatar-BQf6phmU.js} +1 -1
- package/dist/buttonBaseClasses-BLZbMisL.js +13 -0
- package/dist/checkbox-DMsuLF8N.js +74 -0
- package/dist/checkboxClasses-DSyvUOsN.js +18 -0
- package/dist/{chunk-efA98nb6.js → chunk-C_CI6nMA.js} +1 -1
- package/dist/{clsx-BTH_sxEO.js → clsx-Bv8WXdlr.js} +4 -4
- package/dist/{createSimplePaletteValueFilter-D5kxdvJe.js → createSimplePaletteValueFilter-GHK52GLU.js} +1 -1
- package/dist/{createSvgIcon-BfZYaiXo.js → createSvgIcon-BdNZIlKS.js} +16 -16
- package/dist/{createTheme-hnicUJQa.js → createTheme-Bnw5w28O.js} +647 -568
- package/dist/defaultTheme-Bi3OTfLN.js +5 -0
- package/dist/formLabelClasses-Cv7W0Roi.js +18 -0
- package/dist/{generateUtilityClass-D4Rn9MbW.js → generateUtilityClass-tRYNDrlH.js} +1 -1
- package/dist/generateUtilityClasses-XrPHiTcM.js +10 -0
- package/dist/{iconButtonClasses-UNZ6hKTU.js → iconButtonClasses-9jjSQ9-U.js} +3 -3
- package/dist/inputAdornmentClasses-VKwluNTs.js +19 -0
- package/dist/memoTheme-QMocAblm.js +150 -0
- package/dist/{mergeSlotProps-CVIr4jSm.js → mergeSlotProps-DBBJwoun.js} +3 -6
- package/dist/{outlinedInputClasses-ClI9bkEy.js → outlinedInputClasses-Cz4pnn0X.js} +5 -10
- package/dist/{resolveProps-D6-j1wov.js → resolveProps-DrnBChYC.js} +3 -3
- package/dist/s-accordion/index.js +1 -1
- package/dist/s-accordion/s-accordion.js +1 -1
- package/dist/{s-accordion-Coc1zFV6.js → s-accordion-DH_7P3Il.js} +186 -195
- package/dist/s-action-overlay/s-action-overlay.js +18 -14
- package/dist/s-autocomplete/s-autocomplete.d.ts +2 -0
- package/dist/s-autocomplete/s-autocomplete.js +12 -9
- package/dist/s-avatar/s-avatar.js +6 -4
- package/dist/s-blur-text/s-blur-text.js +1 -1
- package/dist/s-breadcrumbs/s-breadcrumbs.js +1 -1
- package/dist/s-carousel/index.js +1 -1
- package/dist/s-carousel/s-carousel.js +1 -1
- package/dist/{s-carousel-Btja2Hvn.js → s-carousel-DhUo-3W-.js} +2 -2
- package/dist/s-chat-input/index.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +1 -1
- package/dist/{s-chat-input-DF3eBvRY.js → s-chat-input-DlEMhm6X.js} +41 -29
- package/dist/s-chat-message/index.js +1 -1
- package/dist/s-chat-message/s-chat-message.js +1 -1
- package/dist/{s-chat-message-tzIfAqAc.js → s-chat-message-DeP8O6TO.js} +46 -42
- package/dist/s-checkbox/s-checkbox.js +26 -16
- package/dist/s-chips/index.js +1 -1
- package/dist/s-chips/s-chips.js +1 -1
- package/dist/{s-chips-CMivbDg_.js → s-chips-BuAEBW1F.js} +16 -12
- package/dist/s-code-block/index.js +1 -1
- package/dist/s-code-block/s-code-block.js +1 -1
- package/dist/{s-code-block-BrwHh2oS.js → s-code-block-DTzppazr.js} +1 -1
- package/dist/s-comment-message/index.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +1 -1
- package/dist/{s-comment-message-Db-f_KOq.js → s-comment-message-C-7IZOqA.js} +18 -14
- package/dist/s-copyable-text/s-copyable-text.js +8 -9
- package/dist/s-data-table/index.js +1 -1
- package/dist/s-data-table/s-data-table.js +1 -1
- package/dist/{s-data-table-BdEn2Nhf.js → s-data-table-xIW-BAS9.js} +209 -226
- package/dist/s-date-picker/index.js +1 -1
- package/dist/s-date-picker/s-date-picker.d.ts +1 -1
- package/dist/s-date-picker/s-date-picker.js +1 -1
- package/dist/s-date-picker-CKSRNJ_A.js +634 -0
- package/dist/s-datetime-picker/index.js +1 -1
- package/dist/s-datetime-picker/s-datetime-picker.d.ts +1 -1
- package/dist/s-datetime-picker/s-datetime-picker.js +1 -1
- package/dist/{s-datetime-picker-qg0m55tj.js → s-datetime-picker-BlStwMie.js} +1091 -1072
- package/dist/s-dialog/s-dialog.js +3 -3
- package/dist/s-dialog-confirm/s-dialog-confirm.js +4 -4
- package/dist/s-dialog-message/s-dialog-message.js +4 -4
- package/dist/s-empty/s-empty.js +4 -2
- package/dist/s-error/s-error.js +4 -2
- package/dist/s-error-layout/s-error-layout.js +1 -2
- package/dist/s-file-dropzone/index.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +1 -1
- package/dist/{s-file-dropzone-BFTqdCaX.js → s-file-dropzone-COPp1HiT.js} +9 -9
- package/dist/s-file-icon/s-file-icon.js +16 -19
- package/dist/s-flex-box/s-flex-box.d.ts +10 -2
- package/dist/s-flex-box/s-flex-box.js +15 -5
- package/dist/s-glow-button/s-glow-button.js +1 -1
- package/dist/s-image-comparison/s-image-comparison.js +3 -3
- package/dist/s-image-modal/s-image-modal.js +4 -4
- package/dist/s-item-not-found/s-item-not-found.js +9 -7
- package/dist/s-label/index.js +1 -1
- package/dist/s-label/s-label.js +26 -2
- package/dist/s-language-switcher/index.js +1 -1
- package/dist/s-language-switcher/s-language-switcher.js +1 -1
- package/dist/{s-language-switcher-mD1mK1he.js → s-language-switcher-Cg3Gh8_i.js} +17 -16
- package/dist/s-lazy-image/s-lazy-image.js +4 -2
- package/dist/s-link/s-link.d.ts +1 -1
- package/dist/s-link/s-link.js +1 -1
- package/dist/s-localization-provider/index.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +1 -1
- package/dist/{s-localization-provider-CIACI235.js → s-localization-provider-YCsec18c.js} +44 -62
- package/dist/s-moving-border/s-moving-border.d.ts +8 -0
- package/dist/s-moving-border/s-moving-border.js +26 -21
- package/dist/s-nav-item/s-nav-item.js +2 -2
- package/dist/s-nav-item/s-nav-items.js +5 -5
- package/dist/s-no-ssr/s-no-ssr.js +1 -1
- package/dist/s-pagination/s-pagination.js +6 -4
- package/dist/s-pixel-reveal/s-pixel-reveal.js +1 -1
- package/dist/s-review/index.js +1 -1
- package/dist/s-review/s-review.js +1 -1
- package/dist/{s-review-D29of4xC.js → s-review-D5_TicCf.js} +14 -10
- package/dist/s-scroll-to-top/s-scroll-to-top.js +4 -4
- package/dist/s-select/index.js +1 -1
- package/dist/s-select/s-select.js +1 -1
- package/dist/{s-select-DH-t7jkk.js → s-select-ClL8bygg.js} +7 -7
- package/dist/s-select-list/s-select-list.js +2 -2
- package/dist/s-stripe/s-stripe.js +1 -1
- package/dist/s-switch/s-switch.js +26 -16
- package/dist/s-tabs/s-tabs.js +6 -6
- package/dist/s-text-editor/index.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +1 -1
- package/dist/s-text-editor/s-text-editor.js +2 -2
- package/dist/s-text-editor-toolbar-BnhPG9xv.js +2088 -0
- package/dist/s-text-field/index.js +1 -1
- package/dist/s-text-field/s-text-field.js +1 -1
- package/dist/{s-text-field-UI_UjTUa.js → s-text-field-qps0aDNS.js} +2 -2
- package/dist/s-text-shimmer/s-text-shimmer.js +2 -2
- package/dist/s-text-truncation/s-text-truncation.js +5 -7
- package/dist/s-theme-demo/index.js +1 -1
- package/dist/s-theme-demo/s-theme-demo.js +1 -1
- package/dist/{s-theme-demo-C0v-IOB-.js → s-theme-demo-BHyjzAU0.js} +80 -48
- package/dist/s-theme-provider/s-theme-provider.d.ts +3 -1
- package/dist/s-theme-provider/s-theme-provider.js +15 -15
- package/dist/s-theme-switch/index.js +1 -1
- package/dist/s-theme-switch/s-theme-switch.js +1 -1
- package/dist/{s-theme-switch-COBORL4a.js → s-theme-switch-D1FpcDj1.js} +2 -2
- package/dist/s-tip/index.js +1 -1
- package/dist/s-tip/s-tip.js +1 -1
- package/dist/{s-tip-BI58w2uh.js → s-tip-D6M91nev.js} +5 -5
- package/dist/s-tool-bar/index.js +1 -1
- package/dist/s-tool-bar/s-tool-bar.js +1 -1
- package/dist/{s-tool-bar-KrLaAaBO.js → s-tool-bar-DOcT-lNr.js} +92 -91
- package/dist/s-two-pane-layout/s-two-pane-layout.js +3 -3
- package/dist/selectClasses-DvT1febA.js +22 -0
- package/dist/styled-BTDmdi4c.js +164 -0
- package/dist/{esm-BYRX9r8n.js → styled-engine-DOxAQ3qw.js} +2 -2
- package/dist/{svgIconClasses-BhRa1KyZ.js → svgIconClasses-D46YUMKp.js} +3 -3
- package/dist/{tabClasses-Duc8s_po.js → tabClasses-KqPlYv0c.js} +3 -4
- package/dist/theme/components/accordion-summary.d.ts +2 -2
- package/dist/theme/components/accordion-summary.js +1 -1
- package/dist/theme/components/accordion.d.ts +2 -2
- package/dist/theme/components/alert.js +1 -1
- package/dist/theme/components/autocomplete.d.ts +52 -5
- package/dist/theme/components/autocomplete.js +1 -18
- package/dist/theme/components/avatar.js +1 -1
- package/dist/theme/components/button.d.ts +2 -2
- package/dist/theme/components/button.js +30 -22
- package/dist/theme/components/card.js +2 -2
- package/dist/theme/components/checkbox.d.ts +1 -0
- package/dist/theme/components/checkbox.js +1 -1
- package/dist/theme/components/chip.js +122 -124
- package/dist/theme/components/components.js +41 -39
- package/dist/theme/components/css-baseline.d.ts +9 -0
- package/dist/theme/components/css-baseline.js +7 -0
- package/dist/theme/components/form-label.d.ts +4 -1
- package/dist/theme/components/form-label.js +6 -4
- package/dist/theme/components/icon-button.d.ts +2 -2
- package/dist/theme/components/icon-button.js +5 -5
- package/dist/theme/components/input-adornment.d.ts +4 -1012
- package/dist/theme/components/input-adornment.js +2 -2
- package/dist/theme/components/linear-progress.js +1 -1
- package/dist/theme/components/link.d.ts +2 -2
- package/dist/theme/components/link.js +2 -2
- package/dist/theme/components/list-item-button.d.ts +2 -2
- package/dist/theme/components/list-item-button.js +1 -1
- package/dist/theme/components/list-item.d.ts +2 -2
- package/dist/theme/components/list-item.js +3 -3
- package/dist/theme/components/outlined-input.d.ts +31 -34
- package/dist/theme/components/outlined-input.js +16 -19
- package/dist/theme/components/pagination-item.d.ts +2 -2
- package/dist/theme/components/select.d.ts +20 -0
- package/dist/theme/components/select.js +21 -2
- package/dist/theme/components/step-icon.js +1 -1
- package/dist/theme/components/tab.d.ts +2 -2
- package/dist/theme/components/tab.js +1 -1
- package/dist/theme/components/table-pagination.js +1 -1
- package/dist/theme/components/tabs.d.ts +4 -4
- package/dist/theme/components/toggle-button-group.js +1 -1
- package/dist/theme/components/toggle-button.d.ts +2 -2
- package/dist/theme/components/toggle-button.js +1 -1
- package/dist/theme/components/tooltip.js +1 -0
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/{theme-primitives-qhf0z_Er.js → theme-primitives-OrQ-xFJR.js} +19 -19
- package/dist/{toggle-button-sCvdUHdS.js → toggle-button-BgpxYWVw.js} +3 -3
- package/dist/{toggle-button-group-C_qpJa3z.js → toggle-button-group-l4hL1DLP.js} +4 -6
- package/dist/{typographyClasses-CBI3nZde.js → typographyClasses-CFf0OFiD.js} +4 -5
- package/dist/{useControlled-BQ6-yabk.js → useControlled-2-C6cXjG.js} +2 -5
- package/dist/useControlled-DXKqhylj.js +5 -0
- package/dist/{useEnhancedEffect-DcMMtOdE.js → useEnhancedEffect-Dsu5K7-Z.js} +1 -1
- package/dist/useFormControl-B4z6ONhx.js +18 -0
- package/dist/{useMobilePicker-C5bImMb9.js → useMobilePicker-ujH2nH2-.js} +8465 -8943
- package/dist/{useSlot-BfqKgBbE.js → useSlot-Dkc1Mj31.js} +37 -32
- package/dist/{useThemeProps-DtrsMbkY.js → useThemeProps-D4jtjo2I.js} +4 -4
- package/dist/utils/dayjs.js +1 -1
- package/dist/{utils-BqJ3HDtA.js → utils-CCnIUPad.js} +74 -58
- package/package.json +53 -53
- package/dist/Box-BQIZeo25.js +0 -46
- package/dist/Collapse-BUAO-GTT.js +0 -264
- package/dist/LocalizationProvider-C07_J3LH.js +0 -111
- package/dist/Menu-qKMfgdfr.js +0 -1664
- package/dist/MenuItem-DA2pGXuL.js +0 -214
- package/dist/Select-D-aLJXW9.js +0 -2552
- package/dist/Stack-BrIUVvqB.js +0 -158
- package/dist/Typography-Ci004UCT.js +0 -187
- package/dist/buttonBaseClasses-D1dQFqBk.js +0 -13
- package/dist/checkbox-CMvDozaV.js +0 -57
- package/dist/defaultTheme-CW25vqGj.js +0 -5
- package/dist/extendSxProp-0kulJXZl.js +0 -29
- package/dist/generateUtilityClasses-CX1nR7K3.js +0 -10
- package/dist/memoTheme-DiKnacj0.js +0 -154
- package/dist/s-date-picker-C-FOMdpa.js +0 -587
- package/dist/s-label-BYT4eG6o.js +0 -30
- package/dist/s-multi-select/index.d.ts +0 -2
- package/dist/s-multi-select/index.js +0 -2
- package/dist/s-multi-select/s-multi-select.d.ts +0 -26
- package/dist/s-multi-select/s-multi-select.js +0 -2
- package/dist/s-multi-select-CmB-l3n5.js +0 -64
- package/dist/s-text-editor-toolbar-Sw0qn88u.js +0 -177
- package/dist/select-BT9USOXL.js +0 -11
- package/dist/styled-C0_N3zFx.js +0 -168
- package/dist/theme/components/tooltip.d.ts +0 -30
- package/dist/useFormControl-DvExOQVA.js +0 -11
- /package/dist/{extends-DtvfmDTb.js → extends-D8CDMpIy.js} +0 -0
- /package/dist/{objectWithoutPropertiesLoose-Cq334jkZ.js → objectWithoutPropertiesLoose-BpY-kC5L.js} +0 -0
- /package/dist/{utils-CKGB5_56.js → utils-B5Rl6Zwv.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as e, t } from "./chunk-
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import
|
|
1
|
+
import { n as e, t } from "./chunk-C_CI6nMA.js";
|
|
2
|
+
import { i as n, r, t as i } from "./LocalizationProvider-BdaUKqz3.js";
|
|
3
|
+
import { t as a } from "./extends-D8CDMpIy.js";
|
|
4
|
+
import o from "dayjs";
|
|
5
5
|
import "react";
|
|
6
|
-
import { jsx as
|
|
6
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
7
7
|
//#region ../../node_modules/dayjs/plugin/weekOfYear.js
|
|
8
|
-
var
|
|
8
|
+
var c = /* @__PURE__ */ t(((e, t) => {
|
|
9
9
|
(function(n, r) {
|
|
10
10
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_weekOfYear = r();
|
|
11
11
|
})(e, (function() {
|
|
@@ -26,7 +26,7 @@ var s = /* @__PURE__ */ t(((e, t) => {
|
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
}));
|
|
29
|
-
})),
|
|
29
|
+
})), l = /* @__PURE__ */ t(((e, t) => {
|
|
30
30
|
(function(n, r) {
|
|
31
31
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_customParseFormat = r();
|
|
32
32
|
})(e, (function() {
|
|
@@ -91,8 +91,8 @@ var s = /* @__PURE__ */ t(((e, t) => {
|
|
|
91
91
|
D: [i, c("day")],
|
|
92
92
|
DD: [r, c("day")],
|
|
93
93
|
Do: [a, function(e) {
|
|
94
|
-
var t = o.ordinal;
|
|
95
|
-
if (this.day =
|
|
94
|
+
var t = o.ordinal, n = e.match(/\d+/);
|
|
95
|
+
if (this.day = n[0], t) for (var r = 1; r <= 31; r += 1) t(r).replace(/\[|\]/g, "") === e && (this.day = r);
|
|
96
96
|
}],
|
|
97
97
|
w: [i, c("week")],
|
|
98
98
|
ww: [r, c("week")],
|
|
@@ -182,7 +182,7 @@ var s = /* @__PURE__ */ t(((e, t) => {
|
|
|
182
182
|
};
|
|
183
183
|
};
|
|
184
184
|
}));
|
|
185
|
-
})),
|
|
185
|
+
})), u = /* @__PURE__ */ t(((e, t) => {
|
|
186
186
|
(function(n, r) {
|
|
187
187
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_localizedFormat = r();
|
|
188
188
|
})(e, (function() {
|
|
@@ -210,7 +210,7 @@ var s = /* @__PURE__ */ t(((e, t) => {
|
|
|
210
210
|
};
|
|
211
211
|
};
|
|
212
212
|
}));
|
|
213
|
-
})),
|
|
213
|
+
})), d = /* @__PURE__ */ t(((e, t) => {
|
|
214
214
|
(function(n, r) {
|
|
215
215
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_isBetween = r();
|
|
216
216
|
})(e, (function() {
|
|
@@ -221,7 +221,7 @@ var s = /* @__PURE__ */ t(((e, t) => {
|
|
|
221
221
|
};
|
|
222
222
|
};
|
|
223
223
|
}));
|
|
224
|
-
})),
|
|
224
|
+
})), f = /* @__PURE__ */ t(((e, t) => {
|
|
225
225
|
(function(n, r) {
|
|
226
226
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_advancedFormat = r();
|
|
227
227
|
})(e, (function() {
|
|
@@ -254,9 +254,9 @@ var s = /* @__PURE__ */ t(((e, t) => {
|
|
|
254
254
|
};
|
|
255
255
|
};
|
|
256
256
|
}));
|
|
257
|
-
})),
|
|
258
|
-
|
|
259
|
-
var
|
|
257
|
+
})), p = /* @__PURE__ */ e(c(), 1), m = /* @__PURE__ */ e(l(), 1), h = /* @__PURE__ */ e(u(), 1), g = /* @__PURE__ */ e(d(), 1), _ = /* @__PURE__ */ e(f(), 1);
|
|
258
|
+
o.extend(h.default), o.extend(p.default), o.extend(g.default), o.extend(_.default);
|
|
259
|
+
var v = {
|
|
260
260
|
YY: "year",
|
|
261
261
|
YYYY: {
|
|
262
262
|
sectionType: "year",
|
|
@@ -330,7 +330,7 @@ var _ = {
|
|
|
330
330
|
maxLength: 2
|
|
331
331
|
},
|
|
332
332
|
ss: "seconds"
|
|
333
|
-
},
|
|
333
|
+
}, y = {
|
|
334
334
|
year: "YYYY",
|
|
335
335
|
month: "MMMM",
|
|
336
336
|
monthShort: "MMM",
|
|
@@ -352,15 +352,14 @@ var _ = {
|
|
|
352
352
|
fullTime24h: "HH:mm",
|
|
353
353
|
keyboardDateTime12h: "L hh:mm A",
|
|
354
354
|
keyboardDateTime24h: "L HH:mm"
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
"
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
"Missing timezone plugin"
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
].join("\n"), x = class {
|
|
355
|
+
};
|
|
356
|
+
function b() {
|
|
357
|
+
throw Error(process.env.NODE_ENV === "production" ? n(138) : "MUI X Date Pickers: Missing dayjs UTC plugin. UTC and timezone support requires the dayjs UTC plugin to be enabled. See https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc for setup instructions.");
|
|
358
|
+
}
|
|
359
|
+
function x() {
|
|
360
|
+
throw Error(process.env.NODE_ENV === "production" ? n(139) : "MUI X Date Pickers: Missing dayjs timezone plugin. Timezone support requires both the dayjs UTC and timezone plugins to be enabled. See https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone for setup instructions.");
|
|
361
|
+
}
|
|
362
|
+
var S = class {
|
|
364
363
|
isMUIAdapter = !0;
|
|
365
364
|
isTimezoneCompatible = !0;
|
|
366
365
|
lib = "dayjs";
|
|
@@ -368,16 +367,16 @@ var _ = {
|
|
|
368
367
|
start: "[",
|
|
369
368
|
end: "]"
|
|
370
369
|
};
|
|
371
|
-
formatTokenMap =
|
|
370
|
+
formatTokenMap = v;
|
|
372
371
|
constructor({ locale: e, formats: t } = {}) {
|
|
373
|
-
this.locale = e, this.formats =
|
|
372
|
+
this.locale = e, this.formats = a({}, y, t), o.extend(m.default);
|
|
374
373
|
}
|
|
375
374
|
setLocaleToValue = (e) => {
|
|
376
375
|
let t = this.getCurrentLocaleCode();
|
|
377
376
|
return t === e.locale() ? e : e.locale(t);
|
|
378
377
|
};
|
|
379
|
-
hasUTCPlugin = () =>
|
|
380
|
-
hasTimezonePlugin = () =>
|
|
378
|
+
hasUTCPlugin = () => o.utc !== void 0;
|
|
379
|
+
hasTimezonePlugin = () => o.tz !== void 0;
|
|
381
380
|
isSame = (e, t, n) => {
|
|
382
381
|
let r = this.setTimezone(t, this.getTimezone(e));
|
|
383
382
|
return e.format(n) === r.format(n);
|
|
@@ -385,34 +384,21 @@ var _ = {
|
|
|
385
384
|
cleanTimezone = (e) => {
|
|
386
385
|
switch (e) {
|
|
387
386
|
case "default": return;
|
|
388
|
-
case "system": return
|
|
387
|
+
case "system": return o.tz.guess();
|
|
389
388
|
default: return e;
|
|
390
389
|
}
|
|
391
390
|
};
|
|
392
|
-
createSystemDate = (e) =>
|
|
393
|
-
|
|
394
|
-
if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
|
|
395
|
-
let n = a.tz.guess();
|
|
396
|
-
t = n === "UTC" ? a(e) : a.tz(e, n);
|
|
397
|
-
} else t = a(e);
|
|
398
|
-
return this.setLocaleToValue(t);
|
|
399
|
-
};
|
|
400
|
-
createUTCDate = (e) => {
|
|
401
|
-
/* v8 ignore next 3 */
|
|
402
|
-
if (!this.hasUTCPlugin()) throw Error(y);
|
|
403
|
-
return this.setLocaleToValue(a.utc(e));
|
|
404
|
-
};
|
|
391
|
+
createSystemDate = (e) => this.setLocaleToValue(o(e));
|
|
392
|
+
createUTCDate = (e) => (this.hasUTCPlugin() || b(), this.setLocaleToValue(o.utc(e)));
|
|
405
393
|
createTZDate = (e, t) => {
|
|
406
394
|
/* v8 ignore next 3 */
|
|
407
|
-
|
|
408
|
-
/* v8 ignore next 3 */
|
|
409
|
-
if (!this.hasTimezonePlugin()) throw Error(b);
|
|
395
|
+
this.hasUTCPlugin() || b(), this.hasTimezonePlugin() || x();
|
|
410
396
|
let n = e !== void 0 && !e.endsWith("Z");
|
|
411
|
-
return this.setLocaleToValue(
|
|
397
|
+
return this.setLocaleToValue(o(e).tz(this.cleanTimezone(t), n));
|
|
412
398
|
};
|
|
413
399
|
getLocaleFormats = () => {
|
|
414
|
-
let e =
|
|
415
|
-
return t === void 0 && (process.env.NODE_ENV !== "production" &&
|
|
400
|
+
let e = o.Ls, t = e[this.locale || "en"];
|
|
401
|
+
return t === void 0 && (process.env.NODE_ENV !== "production" && r([
|
|
416
402
|
"MUI X: Your locale has not been found.",
|
|
417
403
|
"Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.",
|
|
418
404
|
"Or you forget to import the locale from 'dayjs/locale/{localeUsed}'",
|
|
@@ -431,7 +417,7 @@ var _ = {
|
|
|
431
417
|
return e;
|
|
432
418
|
};
|
|
433
419
|
date = (e, t = "default") => e === null ? null : t === "UTC" ? this.createUTCDate(e) : t === "system" || t === "default" && !this.hasTimezonePlugin() ? this.createSystemDate(e) : this.createTZDate(e, t);
|
|
434
|
-
getInvalidDate = () =>
|
|
420
|
+
getInvalidDate = () => o(/* @__PURE__ */ new Date("Invalid date"));
|
|
435
421
|
getTimezone = (e) => {
|
|
436
422
|
if (this.hasTimezonePlugin()) {
|
|
437
423
|
let t = e.$x?.$timezone;
|
|
@@ -441,21 +427,17 @@ var _ = {
|
|
|
441
427
|
};
|
|
442
428
|
setTimezone = (e, t) => {
|
|
443
429
|
if (this.getTimezone(e) === t) return e;
|
|
444
|
-
if (t === "UTC")
|
|
445
|
-
/* v8 ignore next 3 */
|
|
446
|
-
if (!this.hasUTCPlugin()) throw Error(y);
|
|
447
|
-
return e.utc();
|
|
448
|
-
}
|
|
430
|
+
if (t === "UTC") return this.hasUTCPlugin() || b(), e.utc();
|
|
449
431
|
if (t === "system") return e.local();
|
|
450
432
|
if (!this.hasTimezonePlugin()) {
|
|
451
433
|
if (t === "default") return e;
|
|
452
434
|
/* v8 ignore next */
|
|
453
|
-
|
|
435
|
+
x();
|
|
454
436
|
}
|
|
455
|
-
return this.setLocaleToValue(
|
|
437
|
+
return this.setLocaleToValue(o.tz(e, this.cleanTimezone(t)));
|
|
456
438
|
};
|
|
457
439
|
toJsDate = (e) => e.toDate();
|
|
458
|
-
parse = (e, t) => e === "" ? null :
|
|
440
|
+
parse = (e, t) => e === "" ? null : o(e, t, this.locale, !0);
|
|
459
441
|
getCurrentLocaleCode = () => this.locale || "en";
|
|
460
442
|
is12HourCycleInCurrentLocale = () => /A|a/.test(this.getLocaleFormats().LT || "");
|
|
461
443
|
expandFormat = (e) => {
|
|
@@ -528,10 +510,10 @@ var _ = {
|
|
|
528
510
|
for (; this.isBefore(a, r);) i.push(a), a = this.addYears(a, 1);
|
|
529
511
|
return i;
|
|
530
512
|
};
|
|
531
|
-
},
|
|
532
|
-
dateAdapter:
|
|
513
|
+
}, C = ({ children: e }) => /* @__PURE__ */ s(i, {
|
|
514
|
+
dateAdapter: S,
|
|
533
515
|
children: e
|
|
534
516
|
});
|
|
535
|
-
|
|
517
|
+
C.displayName = "SLocalizationProvider";
|
|
536
518
|
//#endregion
|
|
537
|
-
export {
|
|
519
|
+
export { C as t };
|
|
@@ -4,6 +4,8 @@ import { BoxProps } from '@mui/material';
|
|
|
4
4
|
* Props for the SMovingBorder component
|
|
5
5
|
*/
|
|
6
6
|
export interface SMovingBorderProps extends BoxProps {
|
|
7
|
+
/** Border radius for the moving border container. */
|
|
8
|
+
readonly borderRadius?: React.CSSProperties['borderRadius'];
|
|
7
9
|
/** Duration of one complete animation cycle in milliseconds (default: 6000) */
|
|
8
10
|
readonly duration?: number;
|
|
9
11
|
/** Additional CSS class name for styling */
|
|
@@ -12,6 +14,12 @@ export interface SMovingBorderProps extends BoxProps {
|
|
|
12
14
|
readonly glowColor?: string;
|
|
13
15
|
/** Size of the glow effect in pixels (default: 250) */
|
|
14
16
|
readonly glowSize?: number;
|
|
17
|
+
/** Container height. */
|
|
18
|
+
readonly height?: React.CSSProperties['height'];
|
|
19
|
+
/** Container padding. */
|
|
20
|
+
readonly padding?: React.CSSProperties['padding'] | number;
|
|
21
|
+
/** Container width. */
|
|
22
|
+
readonly width?: React.CSSProperties['width'];
|
|
15
23
|
/** Content to render inside the moving border container */
|
|
16
24
|
readonly children: React.ReactNode;
|
|
17
25
|
}
|
|
@@ -53,36 +53,41 @@ function f({ children: i, duration: u, rx: d, ry: f, phase: p = 0 }) {
|
|
|
53
53
|
children: i
|
|
54
54
|
})] });
|
|
55
55
|
}
|
|
56
|
-
var p = ({
|
|
57
|
-
let
|
|
56
|
+
var p = ({ borderRadius: t, className: a, duration: o = 6e3, children: s, glowColor: c = "var(--s-palette-primary-main)", glowSize: l = u, height: p, padding: m, width: h, ...g }) => {
|
|
57
|
+
let _ = e(null);
|
|
58
58
|
return /* @__PURE__ */ r(i, {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
59
|
+
className: a,
|
|
60
|
+
...g,
|
|
61
|
+
sx: [{
|
|
62
|
+
position: "relative",
|
|
63
|
+
overflow: "hidden",
|
|
64
|
+
height: p ?? "100%",
|
|
65
|
+
width: h ?? "100%",
|
|
66
|
+
padding: m ?? .125,
|
|
67
|
+
borderRadius: t,
|
|
68
|
+
backgroundColor: "transparent"
|
|
69
|
+
}, ...Array.isArray(g.sx) ? g.sx : [g.sx]],
|
|
67
70
|
children: [
|
|
68
71
|
/* @__PURE__ */ r(i, {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
sx: {
|
|
73
|
+
position: "absolute",
|
|
74
|
+
top: 0,
|
|
75
|
+
left: 0,
|
|
76
|
+
right: 0,
|
|
77
|
+
bottom: 0
|
|
78
|
+
},
|
|
74
79
|
children: [/* @__PURE__ */ n(f, {
|
|
75
|
-
duration:
|
|
80
|
+
duration: o,
|
|
76
81
|
rx: "100%",
|
|
77
82
|
ry: "100%",
|
|
78
83
|
phase: 0,
|
|
79
|
-
children: /* @__PURE__ */ n(i, { sx: d(
|
|
84
|
+
children: /* @__PURE__ */ n(i, { sx: d(l, c) })
|
|
80
85
|
}), /* @__PURE__ */ n(f, {
|
|
81
|
-
duration:
|
|
86
|
+
duration: o,
|
|
82
87
|
rx: "100%",
|
|
83
88
|
ry: "100%",
|
|
84
89
|
phase: .5,
|
|
85
|
-
children: /* @__PURE__ */ n(i, { sx: d(
|
|
90
|
+
children: /* @__PURE__ */ n(i, { sx: d(l, c) })
|
|
86
91
|
})]
|
|
87
92
|
}),
|
|
88
93
|
/* @__PURE__ */ n(i, {
|
|
@@ -96,7 +101,7 @@ var p = ({ className: t, duration: a = 6e3, children: o, glowColor: s = "var(--s
|
|
|
96
101
|
zIndex: 2
|
|
97
102
|
},
|
|
98
103
|
children: /* @__PURE__ */ n(i, {
|
|
99
|
-
ref:
|
|
104
|
+
ref: _,
|
|
100
105
|
sx: {
|
|
101
106
|
position: "absolute",
|
|
102
107
|
left: "50%",
|
|
@@ -111,7 +116,7 @@ var p = ({ className: t, duration: a = 6e3, children: o, glowColor: s = "var(--s
|
|
|
111
116
|
}
|
|
112
117
|
})
|
|
113
118
|
}),
|
|
114
|
-
|
|
119
|
+
s
|
|
115
120
|
]
|
|
116
121
|
});
|
|
117
122
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "../Box-
|
|
2
|
-
import { t } from "../Typography-
|
|
1
|
+
import { t as e } from "../Box-BlmynALm.js";
|
|
2
|
+
import { t } from "../Typography-EsraKPZO.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
5
|
//#region lib/s-nav-item/s-nav-item.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as e } from "../Box-
|
|
2
|
-
import { t } from "../Stack-
|
|
3
|
-
import { t as n } from "../Typography-
|
|
4
|
-
import { t as r } from "../ExpandMore-
|
|
1
|
+
import { t as e } from "../Box-BlmynALm.js";
|
|
2
|
+
import { t } from "../Stack-BQkLmLFp.js";
|
|
3
|
+
import { t as n } from "../Typography-EsraKPZO.js";
|
|
4
|
+
import { t as r } from "../ExpandMore-DsZNN1Eh.js";
|
|
5
5
|
import { SNavItem as i } from "./s-nav-item.js";
|
|
6
|
-
import { t as a } from "../Collapse-
|
|
6
|
+
import { t as a } from "../Collapse-CnXmaDqT.js";
|
|
7
7
|
import * as o from "react";
|
|
8
8
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
9
9
|
//#region lib/s-nav-item/s-nav-items.tsx
|
|
@@ -5,10 +5,12 @@ import { Box as i, Pagination as a, Stack as o, useMediaQuery as s, useTheme as
|
|
|
5
5
|
//#region lib/s-pagination/s-pagination.tsx
|
|
6
6
|
var l = ({ style: t }) => /* @__PURE__ */ r(o, {
|
|
7
7
|
direction: "row",
|
|
8
|
-
flexWrap: "wrap",
|
|
9
|
-
gap: 1,
|
|
10
|
-
justifyContent: "center",
|
|
11
8
|
style: t,
|
|
9
|
+
sx: {
|
|
10
|
+
flexWrap: "wrap",
|
|
11
|
+
gap: 1,
|
|
12
|
+
justifyContent: "center"
|
|
13
|
+
},
|
|
12
14
|
children: [
|
|
13
15
|
/* @__PURE__ */ n(e, { component: "icon-button" }),
|
|
14
16
|
/* @__PURE__ */ n(e, {
|
|
@@ -20,7 +22,7 @@ var l = ({ style: t }) => /* @__PURE__ */ r(o, {
|
|
|
20
22
|
}), u = ({ loading: e, count: r = 0, ...o }) => {
|
|
21
23
|
let u = s(c().breakpoints.down("sm"));
|
|
22
24
|
return r === 0 ? /* @__PURE__ */ n(t, {}) : e ? /* @__PURE__ */ n(l, { style: o.style }) : /* @__PURE__ */ n(i, {
|
|
23
|
-
width: "100%",
|
|
25
|
+
sx: { width: "100%" },
|
|
24
26
|
children: /* @__PURE__ */ n(a, {
|
|
25
27
|
size: u ? "small" : "medium",
|
|
26
28
|
count: r,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as e } from "../theme-primitives-
|
|
1
|
+
import { o as e } from "../theme-primitives-OrQ-xFJR.js";
|
|
2
2
|
import { forwardRef as t, useCallback as n, useEffect as r, useRef as i } from "react";
|
|
3
3
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
4
4
|
//#region lib/s-pixel-reveal/s-pixel-reveal.tsx
|
package/dist/s-review/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-review-
|
|
1
|
+
import { t as e } from "../s-review-D5_TicCf.js";
|
|
2
2
|
export { e as SReview, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-review-
|
|
1
|
+
import { t as e } from "../s-review-D5_TicCf.js";
|
|
2
2
|
export { e as SReview, e as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e } from "./utils-
|
|
2
|
-
import { t } from "./createSvgIcon-
|
|
1
|
+
import { i as e } from "./utils-B5Rl6Zwv.js";
|
|
2
|
+
import { t } from "./createSvgIcon-BdNZIlKS.js";
|
|
3
3
|
import n from "./s-lazy-image/s-lazy-image.js";
|
|
4
4
|
import { SSkeleton as r } from "./s-skeleton/s-skeleton.js";
|
|
5
5
|
import { SAvatar as i } from "./s-avatar/s-avatar.js";
|
|
@@ -8,7 +8,7 @@ import { SRating as o } from "./s-rating/s-rating.js";
|
|
|
8
8
|
import { useEffect as s, useId as c, useState as l } from "react";
|
|
9
9
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
10
10
|
import { Box as f, Divider as p, IconButton as m, Stack as h, Typography as g } from "@mui/material";
|
|
11
|
-
//#region ../../node_modules/@mui/icons-material/
|
|
11
|
+
//#region ../../node_modules/@mui/icons-material/ThumbDown.mjs
|
|
12
12
|
var _ = t(/* @__PURE__ */ u("path", { d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2m4 0v12h4V3z" }), "ThumbDown"), v = t(/* @__PURE__ */ u("path", { d: "M1 21h4V9H1zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73z" }), "ThumbUp"), y = ({ id: t, userName: y, userAvatar: b, rating: x, reviewContent: S, datetime: C, images: w, userHelpfulVote: T = null, helpfulYes: E = 0, helpfulNo: D = 0, onHelpfulVote: O, showHelpfulSection: k = !0, avatarSize: A = 48, maxRating: j = 5, readOnly: M = !0, showDivider: N = !0, loading: P = !1, sx: F = {} }) => {
|
|
13
13
|
let I = c(), L = t ?? I, [R, z] = l(E), [B, V] = l(D), [H, U] = l(T), [W, G] = l(!1), [K, q] = l(null), J = (e) => {
|
|
14
14
|
let t = null;
|
|
@@ -37,7 +37,7 @@ var _ = t(/* @__PURE__ */ u("path", { d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02
|
|
|
37
37
|
children: [/* @__PURE__ */ d(h, {
|
|
38
38
|
direction: "row",
|
|
39
39
|
spacing: 2,
|
|
40
|
-
alignItems: "flex-start",
|
|
40
|
+
sx: { alignItems: "flex-start" },
|
|
41
41
|
children: [/* @__PURE__ */ u(r, {
|
|
42
42
|
component: "rounded-avatar",
|
|
43
43
|
width: A,
|
|
@@ -47,9 +47,11 @@ var _ = t(/* @__PURE__ */ u("path", { d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02
|
|
|
47
47
|
children: [
|
|
48
48
|
/* @__PURE__ */ d(h, {
|
|
49
49
|
direction: "row",
|
|
50
|
-
alignItems: "center",
|
|
51
50
|
spacing: 2,
|
|
52
|
-
|
|
51
|
+
sx: {
|
|
52
|
+
alignItems: "center",
|
|
53
|
+
mb: 1
|
|
54
|
+
},
|
|
53
55
|
children: [/* @__PURE__ */ u(r, {
|
|
54
56
|
width: 120,
|
|
55
57
|
height: 20
|
|
@@ -106,7 +108,7 @@ var _ = t(/* @__PURE__ */ u("path", { d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02
|
|
|
106
108
|
/* @__PURE__ */ d(h, {
|
|
107
109
|
direction: "row",
|
|
108
110
|
spacing: 2,
|
|
109
|
-
alignItems: "flex-start",
|
|
111
|
+
sx: { alignItems: "flex-start" },
|
|
110
112
|
children: [/* @__PURE__ */ u(i, {
|
|
111
113
|
avatar: b,
|
|
112
114
|
name: y,
|
|
@@ -116,12 +118,14 @@ var _ = t(/* @__PURE__ */ u("path", { d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02
|
|
|
116
118
|
children: [
|
|
117
119
|
/* @__PURE__ */ d(h, {
|
|
118
120
|
direction: "row",
|
|
119
|
-
alignItems: "center",
|
|
120
121
|
spacing: 2,
|
|
121
|
-
|
|
122
|
+
sx: {
|
|
123
|
+
alignItems: "center",
|
|
124
|
+
mb: 1
|
|
125
|
+
},
|
|
122
126
|
children: [/* @__PURE__ */ u(g, {
|
|
123
127
|
variant: "subtitle2",
|
|
124
|
-
fontWeight: "600",
|
|
128
|
+
sx: { fontWeight: "600" },
|
|
125
129
|
children: y
|
|
126
130
|
}), /* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(g, {
|
|
127
131
|
variant: "caption",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../Box-
|
|
2
|
-
import { t } from "../styled-
|
|
3
|
-
import { t as n } from "../ArrowUpward-
|
|
1
|
+
import { t as e } from "../Box-BlmynALm.js";
|
|
2
|
+
import { t } from "../styled-BTDmdi4c.js";
|
|
3
|
+
import { t as n } from "../ArrowUpward-BbQSKheQ.js";
|
|
4
4
|
import { useIsPassedPosition as r } from "../hooks/use-is-passed-position.js";
|
|
5
5
|
import i from "react";
|
|
6
6
|
import { jsx as a } from "react/jsx-runtime";
|
|
@@ -32,7 +32,7 @@ var o = t(e)({
|
|
|
32
32
|
};
|
|
33
33
|
return /* @__PURE__ */ a(o, {
|
|
34
34
|
sx: {
|
|
35
|
-
opacity: l
|
|
35
|
+
opacity: +!!l,
|
|
36
36
|
visibility: l ? "visible" : "hidden",
|
|
37
37
|
...c
|
|
38
38
|
},
|
package/dist/s-select/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-select-
|
|
1
|
+
import { t as e } from "../s-select-ClL8bygg.js";
|
|
2
2
|
export { e as SSelect, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-select-
|
|
1
|
+
import { t as e } from "../s-select-ClL8bygg.js";
|
|
2
2
|
export { e as SSelect, e as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as e } from "./createSvgIcon-
|
|
1
|
+
import { t as e } from "./createSvgIcon-BdNZIlKS.js";
|
|
2
2
|
import { SForm as t } from "./s-form/s-form.js";
|
|
3
3
|
import { forwardRef as n, useState as r } from "react";
|
|
4
4
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
5
|
import { Box as o, InputAdornment as s, ListSubheader as c, MenuItem as l, Select as u, TextField as d } from "@mui/material";
|
|
6
|
-
//#region ../../node_modules/@mui/icons-material/
|
|
6
|
+
//#region ../../node_modules/@mui/icons-material/Search.mjs
|
|
7
7
|
var f = e(/* @__PURE__ */ i("path", { d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14" }), "Search");
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region lib/s-select/s-select.tsx
|
|
@@ -70,9 +70,9 @@ function C(e, t, n, r, a) {
|
|
|
70
70
|
function w(e) {
|
|
71
71
|
if (e) return {
|
|
72
72
|
autoFocus: !1,
|
|
73
|
-
|
|
73
|
+
slotProps: { paper: { onKeyDown: (e) => {
|
|
74
74
|
e.stopPropagation();
|
|
75
|
-
} }
|
|
75
|
+
} } }
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
var T = n(({ options: e = [], getOptionKey: n, optionLabel: p = "name", optionValue: g = "id", placeholder: _, label: x = "", error: S, required: T = !1, simple: E = !1, htmlFor: D, searchable: O = !1, searchPlaceholder: k = "", renderOption: A, ...j }, M) => {
|
|
@@ -135,10 +135,10 @@ var T = n(({ options: e = [], getOptionKey: n, optionLabel: p = "name", optionVa
|
|
|
135
135
|
onClick: (e) => {
|
|
136
136
|
e.stopPropagation();
|
|
137
137
|
},
|
|
138
|
-
|
|
138
|
+
slotProps: { input: { startAdornment: /* @__PURE__ */ i(s, {
|
|
139
139
|
position: "start",
|
|
140
|
-
children: /* @__PURE__ */ i(f, {
|
|
141
|
-
}) }
|
|
140
|
+
children: /* @__PURE__ */ i(f, {})
|
|
141
|
+
}) } }
|
|
142
142
|
})
|
|
143
143
|
}), K()]
|
|
144
144
|
})
|
|
@@ -14,7 +14,7 @@ var s = o(n, { shouldForwardProp: (e) => e !== "selected" })(({ theme: e, select
|
|
|
14
14
|
cursor: "pointer",
|
|
15
15
|
borderColor: t ? (e.vars ?? e).palette.primary.dark : (e.vars ?? e).palette.divider
|
|
16
16
|
})), c = ({ items: o, selectedId: c, onSelect: l, renderItem: u, renderBelow: d, showRadio: f = !0 }) => /* @__PURE__ */ e(a, {
|
|
17
|
-
spacing:
|
|
17
|
+
spacing: 1,
|
|
18
18
|
children: o.map((a) => {
|
|
19
19
|
let o = a.id === c, p = d && o;
|
|
20
20
|
return /* @__PURE__ */ t(n, { children: [/* @__PURE__ */ t(s, {
|
|
@@ -33,7 +33,7 @@ var s = o(n, { shouldForwardProp: (e) => e !== "selected" })(({ theme: e, select
|
|
|
33
33
|
}), p && /* @__PURE__ */ e(r, {
|
|
34
34
|
in: o,
|
|
35
35
|
children: /* @__PURE__ */ e(n, {
|
|
36
|
-
mt:
|
|
36
|
+
sx: { mt: 1 },
|
|
37
37
|
children: d(a)
|
|
38
38
|
})
|
|
39
39
|
})] }, a.id);
|
|
@@ -1,27 +1,37 @@
|
|
|
1
1
|
import { forwardRef as e, useId as t } from "react";
|
|
2
2
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { Box as i, Stack as a, Switch as o, Typography as s } from "@mui/material";
|
|
4
4
|
//#region lib/s-switch/s-switch.tsx
|
|
5
|
-
var
|
|
6
|
-
let
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
var c = e(({ content: e, disabled: c, ...l }, u) => {
|
|
6
|
+
let d = t(), f = l.id ?? d, p = {
|
|
7
|
+
color: c ? "text.disabled" : "inherit",
|
|
8
|
+
cursor: c ? "not-allowed" : "pointer"
|
|
9
|
+
};
|
|
10
|
+
return /* @__PURE__ */ r(a, {
|
|
9
11
|
direction: "row",
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
sx: {
|
|
13
|
+
alignItems: "center",
|
|
14
|
+
display: "flex",
|
|
15
|
+
justifyContent: "space-between"
|
|
16
|
+
},
|
|
12
17
|
children: [e && /* @__PURE__ */ n("label", {
|
|
13
|
-
htmlFor:
|
|
14
|
-
children: /* @__PURE__ */ n(
|
|
15
|
-
|
|
18
|
+
htmlFor: f,
|
|
19
|
+
children: typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ n(s, {
|
|
20
|
+
sx: p,
|
|
21
|
+
children: e
|
|
22
|
+
}) : /* @__PURE__ */ n(i, {
|
|
23
|
+
component: "span",
|
|
24
|
+
sx: p,
|
|
16
25
|
children: e
|
|
17
26
|
})
|
|
18
|
-
}), /* @__PURE__ */ n(
|
|
19
|
-
ref:
|
|
20
|
-
...
|
|
21
|
-
|
|
27
|
+
}), /* @__PURE__ */ n(o, {
|
|
28
|
+
ref: u,
|
|
29
|
+
...l,
|
|
30
|
+
disabled: c,
|
|
31
|
+
id: f
|
|
22
32
|
})]
|
|
23
33
|
});
|
|
24
34
|
});
|
|
25
|
-
|
|
35
|
+
c.displayName = "SSwitch";
|
|
26
36
|
//#endregion
|
|
27
|
-
export {
|
|
37
|
+
export { c as SSwitch, c as default };
|
package/dist/s-tabs/s-tabs.js
CHANGED
|
@@ -12,7 +12,7 @@ var l = t(({ tabs: t, activeTab: l = 0, onTabChange: u, children: d, tabPanelPro
|
|
|
12
12
|
}, [l]);
|
|
13
13
|
let _ = (e, t) => {
|
|
14
14
|
l === !1 && g(t), u?.(e, t);
|
|
15
|
-
}, v = p.orientation === "vertical", y = /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r(s, {
|
|
15
|
+
}, v = p.orientation === "vertical", { sx: y, ...b } = f ?? {}, x = /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r(s, {
|
|
16
16
|
ref: m,
|
|
17
17
|
value: h,
|
|
18
18
|
onChange: _,
|
|
@@ -28,14 +28,14 @@ var l = t(({ tabs: t, activeTab: l = 0, onTabChange: u, children: d, tabPanelPro
|
|
|
28
28
|
}, c(e, t)))
|
|
29
29
|
}), d && /* @__PURE__ */ r(a, {
|
|
30
30
|
role: "tabpanel",
|
|
31
|
-
|
|
32
|
-
...
|
|
31
|
+
...b,
|
|
32
|
+
sx: [{ padding: 2 }, ...Array.isArray(y) ? y : [y]],
|
|
33
33
|
children: e.Children.toArray(d)[t.findIndex((e, t) => (e.value ?? t) === h)]
|
|
34
34
|
})] });
|
|
35
35
|
return v ? /* @__PURE__ */ r(a, {
|
|
36
|
-
display: "flex",
|
|
37
|
-
children:
|
|
38
|
-
}) :
|
|
36
|
+
sx: { display: "flex" },
|
|
37
|
+
children: x
|
|
38
|
+
}) : x;
|
|
39
39
|
});
|
|
40
40
|
l.displayName = "STabs";
|
|
41
41
|
//#endregion
|