@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,13 +1,14 @@
|
|
|
1
|
-
import { t as e } from "./createSvgIcon-
|
|
2
|
-
import { t } from "./Close-
|
|
3
|
-
import { t as n } from "./Download-
|
|
4
|
-
import { t as r } from "./
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { t as e } from "./createSvgIcon-BdNZIlKS.js";
|
|
2
|
+
import { t } from "./Close-oXeOGTZb.js";
|
|
3
|
+
import { t as n } from "./Download-DMm8oiCF.js";
|
|
4
|
+
import { t as r } from "./InfoOutlined-CqXSSVWh.js";
|
|
5
|
+
import { t as i } from "./s-select-ClL8bygg.js";
|
|
6
|
+
import a, { useCallback as o, useEffect as s, useMemo as c, useState as l } from "react";
|
|
7
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
8
|
+
import { createPortal as f } from "react-dom";
|
|
9
|
+
import { Box as p, Checkbox as m, Dialog as h, DialogContent as g, DialogTitle as _, Divider as v, IconButton as y, Slider as b, TextField as x, Tooltip as S, Typography as C } from "@mui/material";
|
|
10
|
+
//#region ../../node_modules/@mui/icons-material/AddPhotoAlternate.mjs
|
|
11
|
+
var w = e(/* @__PURE__ */ u("path", { d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z" }), "AddPhotoAlternate"), T = e(/* @__PURE__ */ u("path", { d: "m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z" }), "AutoAwesome"), E = e(/* @__PURE__ */ u("path", { d: "M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26" }), "Autorenew"), D = a.memo(({ input: e, value: t, onChange: n, onFocus: r, onBlur: i, disabled: a }) => /* @__PURE__ */ u(x, {
|
|
11
12
|
value: t,
|
|
12
13
|
onChange: (e) => n(e.target.value),
|
|
13
14
|
onFocus: r,
|
|
@@ -19,7 +20,7 @@ var C = e(/* @__PURE__ */ l("path", { d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99
|
|
|
19
20
|
maxRows: e.maxRows ?? 5,
|
|
20
21
|
fullWidth: !0,
|
|
21
22
|
...e.componentProps?.textarea ?? {}
|
|
22
|
-
})), O =
|
|
23
|
+
})), O = a.memo((e) => /* @__PURE__ */ u(C, {
|
|
23
24
|
variant: "caption",
|
|
24
25
|
sx: {
|
|
25
26
|
whiteSpace: "nowrap",
|
|
@@ -29,13 +30,13 @@ var C = e(/* @__PURE__ */ l("path", { d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99
|
|
|
29
30
|
textAlign: "center"
|
|
30
31
|
},
|
|
31
32
|
children: e.label
|
|
32
|
-
})), k =
|
|
33
|
+
})), k = a.memo(({ input: e, value: t, onChange: n, onFocus: r, onBlur: i, disabled: a }) => /* @__PURE__ */ d(p, {
|
|
33
34
|
sx: {
|
|
34
35
|
width: 120,
|
|
35
36
|
display: "flex",
|
|
36
37
|
flexDirection: "column"
|
|
37
38
|
},
|
|
38
|
-
children: [/* @__PURE__ */
|
|
39
|
+
children: [/* @__PURE__ */ u(O, { label: e.label }), /* @__PURE__ */ u(x, {
|
|
39
40
|
type: "number",
|
|
40
41
|
value: t ?? e.defaultValue ?? 0,
|
|
41
42
|
onChange: (e) => n(Number(e.target.value)),
|
|
@@ -50,16 +51,16 @@ var C = e(/* @__PURE__ */ l("path", { d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99
|
|
|
50
51
|
sx: { "& input": { textAlign: "center" } },
|
|
51
52
|
...e.componentProps?.number ?? {}
|
|
52
53
|
})]
|
|
53
|
-
})), A =
|
|
54
|
+
})), A = a.memo(({ input: e, value: t, onChange: n, onFocus: r, onBlur: a, disabled: o }) => /* @__PURE__ */ d(p, {
|
|
54
55
|
sx: {
|
|
55
56
|
width: 180,
|
|
56
57
|
display: "flex",
|
|
57
58
|
flexDirection: "column"
|
|
58
59
|
},
|
|
59
|
-
children: [/* @__PURE__ */
|
|
60
|
+
children: [/* @__PURE__ */ u(O, { label: e.label }), /* @__PURE__ */ u(i, {
|
|
60
61
|
value: t ?? e.defaultValue ?? "",
|
|
61
62
|
onChange: (e) => n(e.target.value),
|
|
62
|
-
onFocus:
|
|
63
|
+
onFocus: r,
|
|
63
64
|
onBlur: a,
|
|
64
65
|
disabled: o,
|
|
65
66
|
placeholder: e.placeholder,
|
|
@@ -70,19 +71,19 @@ var C = e(/* @__PURE__ */ l("path", { d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99
|
|
|
70
71
|
searchPlaceholder: e.searchPlaceholder,
|
|
71
72
|
...e.componentProps?.select ?? {}
|
|
72
73
|
})]
|
|
73
|
-
})), j =
|
|
74
|
+
})), j = a.memo(({ input: e, value: t, onChange: n, onFocus: r, onBlur: i, disabled: a }) => /* @__PURE__ */ d(p, {
|
|
74
75
|
sx: {
|
|
75
76
|
width: 160,
|
|
76
77
|
display: "flex",
|
|
77
78
|
flexDirection: "column"
|
|
78
79
|
},
|
|
79
|
-
children: [/* @__PURE__ */
|
|
80
|
+
children: [/* @__PURE__ */ u(O, { label: e.label }), /* @__PURE__ */ d(p, {
|
|
80
81
|
sx: {
|
|
81
82
|
display: "flex",
|
|
82
83
|
alignItems: "center",
|
|
83
84
|
height: 36
|
|
84
85
|
},
|
|
85
|
-
children: [/* @__PURE__ */
|
|
86
|
+
children: [/* @__PURE__ */ u(b, {
|
|
86
87
|
value: t ?? e.defaultValue ?? e.min ?? 0,
|
|
87
88
|
onChange: (e, t) => n(t),
|
|
88
89
|
onMouseDown: r,
|
|
@@ -93,7 +94,7 @@ var C = e(/* @__PURE__ */ l("path", { d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99
|
|
|
93
94
|
step: e.step ?? 1,
|
|
94
95
|
sx: { flex: 1 },
|
|
95
96
|
...e.componentProps?.slider ?? {}
|
|
96
|
-
}), /* @__PURE__ */
|
|
97
|
+
}), /* @__PURE__ */ u(p, {
|
|
97
98
|
sx: {
|
|
98
99
|
minWidth: 60,
|
|
99
100
|
textAlign: "center",
|
|
@@ -103,11 +104,11 @@ var C = e(/* @__PURE__ */ l("path", { d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99
|
|
|
103
104
|
children: t ?? e.defaultValue ?? e.min ?? 0
|
|
104
105
|
})]
|
|
105
106
|
})]
|
|
106
|
-
})), M =
|
|
107
|
-
let
|
|
108
|
-
|
|
107
|
+
})), M = a.memo(({ input: e, value: n, onChange: r, disabled: i }) => {
|
|
108
|
+
let o = a.useRef(null), [c, l] = a.useState([]), [f, m] = a.useState(null), h = e.multiple ?? !1, g = e.maxImages ?? 5;
|
|
109
|
+
s(() => {
|
|
109
110
|
let e = [];
|
|
110
|
-
return
|
|
111
|
+
return l(((t) => {
|
|
111
112
|
if (!t) return [];
|
|
112
113
|
let n = Array.isArray(t) ? t : [t], r = [], i = /* @__PURE__ */ new Map();
|
|
113
114
|
return n.forEach((t) => {
|
|
@@ -140,49 +141,49 @@ var C = e(/* @__PURE__ */ l("path", { d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99
|
|
|
140
141
|
} else r(t[0]);
|
|
141
142
|
e.target.value = "";
|
|
142
143
|
}
|
|
143
|
-
},
|
|
144
|
+
}, v = (e, t) => {
|
|
144
145
|
if (e.stopPropagation(), h && Array.isArray(n)) {
|
|
145
146
|
let e = n.filter((e, n) => n !== t);
|
|
146
147
|
r(e.length > 0 ? e : null);
|
|
147
148
|
} else r(null);
|
|
148
149
|
}, b = () => {
|
|
149
|
-
|
|
150
|
+
i || h && c.length >= g || o.current?.click();
|
|
150
151
|
}, x = h && c.length < g;
|
|
151
|
-
return /* @__PURE__ */
|
|
152
|
+
return /* @__PURE__ */ d(p, {
|
|
152
153
|
sx: {
|
|
153
154
|
display: "flex",
|
|
154
155
|
alignItems: "center",
|
|
155
156
|
gap: .75
|
|
156
157
|
},
|
|
157
158
|
children: [
|
|
158
|
-
/* @__PURE__ */
|
|
159
|
-
ref:
|
|
159
|
+
/* @__PURE__ */ u("input", {
|
|
160
|
+
ref: o,
|
|
160
161
|
type: "file",
|
|
161
162
|
accept: "image/*",
|
|
162
163
|
multiple: h,
|
|
163
164
|
onChange: _,
|
|
164
|
-
disabled:
|
|
165
|
+
disabled: i,
|
|
165
166
|
style: { display: "none" },
|
|
166
167
|
...e.componentProps?.image ?? {}
|
|
167
168
|
}),
|
|
168
|
-
c.map((e, n) => /* @__PURE__ */
|
|
169
|
+
c.map((e, n) => /* @__PURE__ */ d(p, {
|
|
169
170
|
onMouseEnter: () => m(n),
|
|
170
171
|
onMouseLeave: () => m(null),
|
|
171
172
|
sx: {
|
|
172
173
|
width: 50,
|
|
173
174
|
height: 50,
|
|
174
175
|
border: 1,
|
|
175
|
-
borderColor:
|
|
176
|
+
borderColor: i ? "action.disabled" : "divider",
|
|
176
177
|
borderRadius: 1,
|
|
177
178
|
display: "flex",
|
|
178
179
|
alignItems: "center",
|
|
179
180
|
justifyContent: "center",
|
|
180
|
-
cursor:
|
|
181
|
+
cursor: i ? "not-allowed" : "default",
|
|
181
182
|
position: "relative",
|
|
182
183
|
overflow: "hidden",
|
|
183
184
|
transition: "all 0.2s"
|
|
184
185
|
},
|
|
185
|
-
children: [/* @__PURE__ */
|
|
186
|
+
children: [/* @__PURE__ */ u(p, {
|
|
186
187
|
component: "img",
|
|
187
188
|
src: e.src,
|
|
188
189
|
alt: `Preview ${n + 1}`,
|
|
@@ -191,8 +192,8 @@ var C = e(/* @__PURE__ */ l("path", { d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99
|
|
|
191
192
|
height: "100%",
|
|
192
193
|
objectFit: "cover"
|
|
193
194
|
}
|
|
194
|
-
}), !
|
|
195
|
-
onClick: (e) =>
|
|
195
|
+
}), !i && f === n && /* @__PURE__ */ u(p, {
|
|
196
|
+
onClick: (e) => v(e, n),
|
|
196
197
|
sx: {
|
|
197
198
|
position: "absolute",
|
|
198
199
|
top: 0,
|
|
@@ -203,42 +204,42 @@ var C = e(/* @__PURE__ */ l("path", { d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99
|
|
|
203
204
|
alignItems: "center",
|
|
204
205
|
justifyContent: "center"
|
|
205
206
|
},
|
|
206
|
-
children: /* @__PURE__ */
|
|
207
|
-
onClick: (e) =>
|
|
208
|
-
children: /* @__PURE__ */
|
|
207
|
+
children: /* @__PURE__ */ u(y, {
|
|
208
|
+
onClick: (e) => v(e, n),
|
|
209
|
+
children: /* @__PURE__ */ u(t, {})
|
|
209
210
|
})
|
|
210
211
|
})]
|
|
211
212
|
}, e.key)),
|
|
212
|
-
(c.length === 0 || x) && /* @__PURE__ */
|
|
213
|
+
(c.length === 0 || x) && /* @__PURE__ */ u(p, {
|
|
213
214
|
onClick: b,
|
|
214
215
|
sx: {
|
|
215
216
|
width: 50,
|
|
216
217
|
height: 50,
|
|
217
218
|
border: 1,
|
|
218
|
-
borderColor:
|
|
219
|
+
borderColor: i ? "action.disabled" : "divider",
|
|
219
220
|
borderRadius: 1,
|
|
220
221
|
display: "flex",
|
|
221
222
|
alignItems: "center",
|
|
222
223
|
justifyContent: "center",
|
|
223
|
-
cursor:
|
|
224
|
+
cursor: i ? "not-allowed" : "pointer",
|
|
224
225
|
transition: "all 0.2s",
|
|
225
226
|
"&:hover": { bgcolor: "action.hover" }
|
|
226
227
|
},
|
|
227
|
-
children: /* @__PURE__ */
|
|
228
|
+
children: /* @__PURE__ */ u(w, { sx: {
|
|
228
229
|
fontSize: 20,
|
|
229
|
-
color:
|
|
230
|
+
color: i ? "action.disabled" : "divider"
|
|
230
231
|
} })
|
|
231
232
|
})
|
|
232
233
|
]
|
|
233
234
|
});
|
|
234
|
-
}), N =
|
|
235
|
+
}), N = a.memo(({ input: e, value: t, onChange: n, onFocus: r, onBlur: i, disabled: a }) => /* @__PURE__ */ d(p, {
|
|
235
236
|
sx: {
|
|
236
237
|
display: "flex",
|
|
237
238
|
flexDirection: "column",
|
|
238
239
|
alignItems: "center",
|
|
239
240
|
minWidth: 60
|
|
240
241
|
},
|
|
241
|
-
children: [/* @__PURE__ */
|
|
242
|
+
children: [/* @__PURE__ */ u(O, { label: e.label }), /* @__PURE__ */ u(m, {
|
|
242
243
|
checked: t ?? e.defaultValue ?? !1,
|
|
243
244
|
onChange: (e) => n(e.target.checked),
|
|
244
245
|
onFocus: r,
|
|
@@ -268,33 +269,33 @@ function R(e, t, n, r) {
|
|
|
268
269
|
}
|
|
269
270
|
var z = (e) => {
|
|
270
271
|
switch (e.input.type) {
|
|
271
|
-
case "textarea": return /* @__PURE__ */
|
|
272
|
-
case "number": return /* @__PURE__ */
|
|
273
|
-
case "slider": return /* @__PURE__ */
|
|
274
|
-
case "select": return /* @__PURE__ */
|
|
275
|
-
case "image": return /* @__PURE__ */
|
|
272
|
+
case "textarea": return /* @__PURE__ */ u(D, { ...e });
|
|
273
|
+
case "number": return /* @__PURE__ */ u(k, { ...e });
|
|
274
|
+
case "slider": return /* @__PURE__ */ u(j, { ...e });
|
|
275
|
+
case "select": return /* @__PURE__ */ u(A, { ...e });
|
|
276
|
+
case "image": return /* @__PURE__ */ u(M, {
|
|
276
277
|
input: e.input,
|
|
277
278
|
value: e.value,
|
|
278
279
|
onChange: e.onChange,
|
|
279
280
|
disabled: e.disabled
|
|
280
281
|
});
|
|
281
|
-
case "checkbox": return /* @__PURE__ */
|
|
282
|
+
case "checkbox": return /* @__PURE__ */ u(N, { ...e });
|
|
282
283
|
default: return null;
|
|
283
284
|
}
|
|
284
|
-
}, B =
|
|
285
|
+
}, B = a.memo(({ input: e, value: t, disabled: n, onChange: r, onFocus: i, onBlur: a }) => e.renderInput ? /* @__PURE__ */ u(p, { children: e.renderInput({
|
|
285
286
|
value: t,
|
|
286
287
|
onChange: r,
|
|
287
288
|
onFocus: i,
|
|
288
289
|
onBlur: a,
|
|
289
290
|
disabled: n
|
|
290
|
-
}) }) : /* @__PURE__ */
|
|
291
|
+
}) }) : /* @__PURE__ */ u(z, {
|
|
291
292
|
input: e,
|
|
292
293
|
value: t,
|
|
293
294
|
onChange: r,
|
|
294
295
|
onFocus: i,
|
|
295
296
|
onBlur: a,
|
|
296
297
|
disabled: n
|
|
297
|
-
})), V =
|
|
298
|
+
})), V = a.memo(({ customActionButtons: e, infoContent: t, infoTooltip: i, downloadTooltip: a, resetTooltip: o, processTooltip: s, hideProcessButton: c, processActionDisabled: l, onInfoOpen: f, onDownload: m, onReset: h, onProcess: g }) => /* @__PURE__ */ d(p, {
|
|
298
299
|
sx: {
|
|
299
300
|
display: "flex",
|
|
300
301
|
alignItems: "center",
|
|
@@ -303,43 +304,43 @@ var z = (e) => {
|
|
|
303
304
|
},
|
|
304
305
|
children: [
|
|
305
306
|
e,
|
|
306
|
-
t && /* @__PURE__ */
|
|
307
|
-
title: r,
|
|
308
|
-
children: /* @__PURE__ */ l(v, {
|
|
309
|
-
onClick: d,
|
|
310
|
-
children: /* @__PURE__ */ l(E, {})
|
|
311
|
-
})
|
|
312
|
-
}),
|
|
313
|
-
/* @__PURE__ */ l(x, {
|
|
307
|
+
t && /* @__PURE__ */ u(S, {
|
|
314
308
|
title: i,
|
|
315
|
-
children: /* @__PURE__ */
|
|
316
|
-
onClick:
|
|
317
|
-
children: /* @__PURE__ */
|
|
309
|
+
children: /* @__PURE__ */ u(y, {
|
|
310
|
+
onClick: f,
|
|
311
|
+
children: /* @__PURE__ */ u(r, {})
|
|
318
312
|
})
|
|
319
313
|
}),
|
|
320
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ u(S, {
|
|
321
315
|
title: a,
|
|
322
|
-
children: /* @__PURE__ */
|
|
316
|
+
children: /* @__PURE__ */ u(y, {
|
|
323
317
|
onClick: m,
|
|
324
|
-
children: /* @__PURE__ */
|
|
318
|
+
children: /* @__PURE__ */ u(n, {})
|
|
325
319
|
})
|
|
326
320
|
}),
|
|
327
|
-
|
|
321
|
+
/* @__PURE__ */ u(S, {
|
|
328
322
|
title: o,
|
|
329
|
-
children: /* @__PURE__ */
|
|
323
|
+
children: /* @__PURE__ */ u(y, {
|
|
330
324
|
onClick: h,
|
|
331
|
-
|
|
325
|
+
children: /* @__PURE__ */ u(E, {})
|
|
326
|
+
})
|
|
327
|
+
}),
|
|
328
|
+
!c && /* @__PURE__ */ u(S, {
|
|
329
|
+
title: s,
|
|
330
|
+
children: /* @__PURE__ */ u("span", { children: /* @__PURE__ */ u(y, {
|
|
331
|
+
onClick: g,
|
|
332
|
+
disabled: l,
|
|
332
333
|
size: "large",
|
|
333
|
-
children: /* @__PURE__ */
|
|
334
|
+
children: /* @__PURE__ */ u(T, { color: l ? "disabled" : "primary" })
|
|
334
335
|
}) })
|
|
335
336
|
})
|
|
336
337
|
]
|
|
337
|
-
})), H = ({ inputs: e = [], onProcess: t, onReset: n, onDownload: r, processing: i = !1, uploading:
|
|
338
|
-
let [N, F] =
|
|
339
|
-
|
|
340
|
-
}, [
|
|
341
|
-
let t =
|
|
342
|
-
return /* @__PURE__ */
|
|
338
|
+
})), H = ({ inputs: e = [], onProcess: t, onReset: n, onDownload: r, processing: i = !1, uploading: a = !1, inputValues: s = {}, onInputChange: m, customActionButtons: y, hideProcessButton: b = !1, processButtonDisabled: x = !1, getInputDisabled: S, processTooltip: C = "Process", downloadTooltip: w = "Download", resetTooltip: T = "Reset", infoTooltip: E = "Information", infoTitle: D = "Tool Information", infoContent: O, position: k = "bottom", relative: A = !1, containerSx: j, sx: M }) => {
|
|
339
|
+
let [N, F] = l(!1), z = c(() => e.length === 0 ? !0 : e.every((e) => P(e, s[e.key])), [e, s]), { imageInputs: H, textareaInputs: U, paramInputs: W } = c(() => I(e), [e]), G = L(H, W), K = R(x, z, a, i), q = o(() => {}, []), J = o(() => {}, []), Y = o((e, t, n) => {
|
|
340
|
+
m?.(e, t, n);
|
|
341
|
+
}, [m]), X = o(() => F(!0), []), Z = o(() => F(!1), []), Q = o((e) => {
|
|
342
|
+
let t = s[e.key];
|
|
343
|
+
return /* @__PURE__ */ u(B, {
|
|
343
344
|
input: e,
|
|
344
345
|
value: t,
|
|
345
346
|
onChange: (t) => Y(e.key, t),
|
|
@@ -348,12 +349,12 @@ var z = (e) => {
|
|
|
348
349
|
disabled: S?.(e.key) ?? !1
|
|
349
350
|
}, e.key);
|
|
350
351
|
}, [
|
|
351
|
-
|
|
352
|
+
s,
|
|
352
353
|
S,
|
|
353
354
|
Y,
|
|
354
355
|
q,
|
|
355
356
|
J
|
|
356
|
-
]), $ = /* @__PURE__ */
|
|
357
|
+
]), $ = /* @__PURE__ */ d(p, {
|
|
357
358
|
sx: {
|
|
358
359
|
position: A ? "relative" : "fixed",
|
|
359
360
|
[k]: A ? "auto" : 20,
|
|
@@ -366,7 +367,7 @@ var z = (e) => {
|
|
|
366
367
|
mb: A && k === "bottom" ? 2 : 0,
|
|
367
368
|
...j
|
|
368
369
|
},
|
|
369
|
-
children: [/* @__PURE__ */
|
|
370
|
+
children: [/* @__PURE__ */ d(p, {
|
|
370
371
|
sx: {
|
|
371
372
|
display: "flex",
|
|
372
373
|
flexDirection: "column",
|
|
@@ -378,28 +379,28 @@ var z = (e) => {
|
|
|
378
379
|
bgcolor: "background.default",
|
|
379
380
|
...M
|
|
380
381
|
},
|
|
381
|
-
children: [U.length > 0 && /* @__PURE__ */
|
|
382
|
+
children: [U.length > 0 && /* @__PURE__ */ u(p, {
|
|
382
383
|
sx: {
|
|
383
384
|
display: "flex",
|
|
384
385
|
flexDirection: "column",
|
|
385
386
|
gap: 2
|
|
386
387
|
},
|
|
387
388
|
children: U.map(Q)
|
|
388
|
-
}), /* @__PURE__ */
|
|
389
|
+
}), /* @__PURE__ */ d(p, {
|
|
389
390
|
sx: {
|
|
390
391
|
display: "flex",
|
|
391
392
|
alignItems: "center",
|
|
392
393
|
gap: .5
|
|
393
394
|
},
|
|
394
395
|
children: [
|
|
395
|
-
/* @__PURE__ */
|
|
396
|
+
/* @__PURE__ */ u(p, {
|
|
396
397
|
sx: {
|
|
397
398
|
display: "flex",
|
|
398
399
|
alignItems: "center",
|
|
399
400
|
gap: 2,
|
|
400
401
|
flex: 1
|
|
401
402
|
},
|
|
402
|
-
children: G && /* @__PURE__ */
|
|
403
|
+
children: G && /* @__PURE__ */ d(p, {
|
|
403
404
|
sx: {
|
|
404
405
|
display: "flex",
|
|
405
406
|
alignItems: "flex-end",
|
|
@@ -408,7 +409,7 @@ var z = (e) => {
|
|
|
408
409
|
children: [H.map(Q), W.map(Q)]
|
|
409
410
|
})
|
|
410
411
|
}),
|
|
411
|
-
G && /* @__PURE__ */
|
|
412
|
+
G && /* @__PURE__ */ u(v, {
|
|
412
413
|
orientation: "vertical",
|
|
413
414
|
flexItem: !0,
|
|
414
415
|
sx: {
|
|
@@ -416,7 +417,7 @@ var z = (e) => {
|
|
|
416
417
|
flexShrink: 0
|
|
417
418
|
}
|
|
418
419
|
}),
|
|
419
|
-
/* @__PURE__ */
|
|
420
|
+
/* @__PURE__ */ u(V, {
|
|
420
421
|
customActionButtons: y,
|
|
421
422
|
infoContent: O,
|
|
422
423
|
infoTooltip: E,
|
|
@@ -432,15 +433,15 @@ var z = (e) => {
|
|
|
432
433
|
})
|
|
433
434
|
]
|
|
434
435
|
})]
|
|
435
|
-
}), O && /* @__PURE__ */
|
|
436
|
+
}), O && /* @__PURE__ */ d(h, {
|
|
436
437
|
open: N,
|
|
437
438
|
onClose: Z,
|
|
438
439
|
maxWidth: "sm",
|
|
439
440
|
fullWidth: !0,
|
|
440
|
-
children: [/* @__PURE__ */
|
|
441
|
+
children: [/* @__PURE__ */ u(_, { children: D }), /* @__PURE__ */ u(g, { children: O })]
|
|
441
442
|
})]
|
|
442
443
|
});
|
|
443
|
-
return !A && typeof window < "u" ?
|
|
444
|
+
return !A && typeof window < "u" ? f($, document.body) : $;
|
|
444
445
|
};
|
|
445
446
|
H.displayName = "SToolBar";
|
|
446
447
|
//#endregion
|
|
@@ -7,8 +7,8 @@ var o = ({ sidebar: o, content: s, sidebarWidth: c = 280, height: l = "calc(100v
|
|
|
7
7
|
let O = /* @__PURE__ */ i(a, {
|
|
8
8
|
sx: {
|
|
9
9
|
width: c,
|
|
10
|
-
borderRight: !_ && S === "left"
|
|
11
|
-
borderLeft: !_ && S === "right"
|
|
10
|
+
borderRight: +(!_ && S === "left"),
|
|
11
|
+
borderLeft: +(!_ && S === "right"),
|
|
12
12
|
borderColor: "divider",
|
|
13
13
|
display: "flex",
|
|
14
14
|
flexDirection: "column",
|
|
@@ -48,12 +48,12 @@ var o = ({ sidebar: o, content: s, sidebarWidth: c = 280, height: l = "calc(100v
|
|
|
48
48
|
})]
|
|
49
49
|
}), k = /* @__PURE__ */ i(a, {
|
|
50
50
|
sx: {
|
|
51
|
+
height: "100%",
|
|
51
52
|
flex: 1,
|
|
52
53
|
display: "flex",
|
|
53
54
|
flexDirection: "column",
|
|
54
55
|
...f
|
|
55
56
|
},
|
|
56
|
-
height: "100%",
|
|
57
57
|
children: [y && /* @__PURE__ */ r(a, {
|
|
58
58
|
sx: {
|
|
59
59
|
p: E,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { t as e } from "./generateUtilityClass-tRYNDrlH.js";
|
|
2
|
+
import { t } from "./generateUtilityClasses-XrPHiTcM.js";
|
|
3
|
+
//#region ../../node_modules/@mui/material/Select/selectClasses.mjs
|
|
4
|
+
function n(t) {
|
|
5
|
+
return e("MuiSelect", t);
|
|
6
|
+
}
|
|
7
|
+
var r = t("MuiSelect", [
|
|
8
|
+
"root",
|
|
9
|
+
"select",
|
|
10
|
+
"multiple",
|
|
11
|
+
"filled",
|
|
12
|
+
"outlined",
|
|
13
|
+
"standard",
|
|
14
|
+
"disabled",
|
|
15
|
+
"focused",
|
|
16
|
+
"icon",
|
|
17
|
+
"iconOpen",
|
|
18
|
+
"nativeInput",
|
|
19
|
+
"error"
|
|
20
|
+
]);
|
|
21
|
+
//#endregion
|
|
22
|
+
export { r as n, n as t };
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { a as e, g as t, h as n, l as r, o as i, p as a } from "./createTheme-Bnw5w28O.js";
|
|
2
|
+
import { i as o, o as s, r as c, s as l } from "./styled-engine-DOxAQ3qw.js";
|
|
3
|
+
import { t as u } from "./defaultTheme-Bi3OTfLN.js";
|
|
4
|
+
//#region ../../node_modules/@mui/utils/getDisplayName/getDisplayName.mjs
|
|
5
|
+
var d = t();
|
|
6
|
+
function f(e, t = "") {
|
|
7
|
+
return e.displayName || e.name || t;
|
|
8
|
+
}
|
|
9
|
+
function p(e, t, n) {
|
|
10
|
+
let r = f(t);
|
|
11
|
+
return e.displayName || (r === "" ? n : `${n}(${r})`);
|
|
12
|
+
}
|
|
13
|
+
function m(e) {
|
|
14
|
+
if (e != null) {
|
|
15
|
+
if (typeof e == "string") return e;
|
|
16
|
+
if (typeof e == "function") return f(e, "Component");
|
|
17
|
+
if (typeof e == "object") switch (e.$$typeof) {
|
|
18
|
+
case d.ForwardRef: return p(e, e.render, "ForwardRef");
|
|
19
|
+
case d.Memo: return p(e, e.type, "memo");
|
|
20
|
+
default: return;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region ../../node_modules/@mui/system/preprocessStyles.mjs
|
|
26
|
+
function h(e) {
|
|
27
|
+
let { variants: t, ...n } = e, r = {
|
|
28
|
+
variants: t,
|
|
29
|
+
style: o(n),
|
|
30
|
+
isProcessed: !0
|
|
31
|
+
};
|
|
32
|
+
return r.style === n || t && t.forEach((e) => {
|
|
33
|
+
typeof e.style != "function" && (e.style = o(e.style));
|
|
34
|
+
}), r;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region ../../node_modules/@mui/system/createStyled/createStyled.mjs
|
|
38
|
+
var g = e();
|
|
39
|
+
function _(e) {
|
|
40
|
+
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
41
|
+
}
|
|
42
|
+
function v(e, t) {
|
|
43
|
+
return t && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${t}{${String(e.styles)}}`), e;
|
|
44
|
+
}
|
|
45
|
+
function y(e) {
|
|
46
|
+
return e ? (t, n) => n[e] : null;
|
|
47
|
+
}
|
|
48
|
+
function b(e, t, n) {
|
|
49
|
+
e.theme = a(e.theme) ? n : e.theme[t] || e.theme;
|
|
50
|
+
}
|
|
51
|
+
function x(e, t, n) {
|
|
52
|
+
let r = typeof t == "function" ? t(e) : t;
|
|
53
|
+
if (Array.isArray(r)) return r.flatMap((t) => x(e, t, n));
|
|
54
|
+
if (Array.isArray(r?.variants)) {
|
|
55
|
+
let t;
|
|
56
|
+
if (r.isProcessed) t = n ? v(r.style, n) : r.style;
|
|
57
|
+
else {
|
|
58
|
+
let { variants: e, ...i } = r;
|
|
59
|
+
t = n ? v(o(i), n) : i;
|
|
60
|
+
}
|
|
61
|
+
return S(e, r.variants, [t], n);
|
|
62
|
+
}
|
|
63
|
+
return r?.isProcessed ? n ? v(o(r.style), n) : r.style : n ? v(o(r), n) : r;
|
|
64
|
+
}
|
|
65
|
+
function S(e, t, n = [], r = void 0) {
|
|
66
|
+
let i;
|
|
67
|
+
variantLoop: for (let a = 0; a < t.length; a += 1) {
|
|
68
|
+
let s = t[a];
|
|
69
|
+
if (typeof s.props == "function") {
|
|
70
|
+
if (i ??= {
|
|
71
|
+
...e,
|
|
72
|
+
...e.ownerState,
|
|
73
|
+
ownerState: e.ownerState
|
|
74
|
+
}, !s.props(i)) continue;
|
|
75
|
+
} else for (let t in s.props) if (e[t] !== s.props[t] && e.ownerState?.[t] !== s.props[t]) continue variantLoop;
|
|
76
|
+
typeof s.style == "function" ? (i ??= {
|
|
77
|
+
...e,
|
|
78
|
+
...e.ownerState,
|
|
79
|
+
ownerState: e.ownerState
|
|
80
|
+
}, n.push(r ? v(o(s.style(i)), r) : s.style(i))) : n.push(r ? v(o(s.style), r) : s.style);
|
|
81
|
+
}
|
|
82
|
+
return n;
|
|
83
|
+
}
|
|
84
|
+
function C(e = {}) {
|
|
85
|
+
let { themeId: t, defaultTheme: r = g, rootShouldForwardProp: a = _, slotShouldForwardProp: o = _ } = e;
|
|
86
|
+
function l(e) {
|
|
87
|
+
b(e, t, r);
|
|
88
|
+
}
|
|
89
|
+
return (e, t = {}) => {
|
|
90
|
+
c(e, (e) => e.filter((e) => e !== i));
|
|
91
|
+
let { name: r, slot: u, skipVariantsResolver: d, skipSx: f, overridesResolver: p = y(D(u)), ...m } = t, g = r && r.startsWith("Mui") || u ? "components" : "custom", b = d === void 0 ? u && u !== "Root" && u !== "root" || !1 : d, C = f || !1, O = _;
|
|
92
|
+
u === "Root" || u === "root" ? O = a : u ? O = o : E(e) && (O = void 0);
|
|
93
|
+
let k = s(e, {
|
|
94
|
+
shouldForwardProp: O,
|
|
95
|
+
label: T(r, u),
|
|
96
|
+
...m
|
|
97
|
+
}), A = (e) => {
|
|
98
|
+
if (e.__emotion_real === e) return e;
|
|
99
|
+
if (typeof e == "function") return function(t) {
|
|
100
|
+
return x(t, e, t.theme.modularCssLayers ? g : void 0);
|
|
101
|
+
};
|
|
102
|
+
if (n(e)) {
|
|
103
|
+
let t = h(e);
|
|
104
|
+
return function(e) {
|
|
105
|
+
return t.variants ? x(e, t, e.theme.modularCssLayers ? g : void 0) : e.theme.modularCssLayers ? v(t.style, g) : t.style;
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
return e;
|
|
109
|
+
}, j = (...t) => {
|
|
110
|
+
let n = [], a = t.map(A), o = [];
|
|
111
|
+
if (n.push(l), r && p && o.push(function(e) {
|
|
112
|
+
let t = e.theme.components?.[r]?.styleOverrides;
|
|
113
|
+
if (!t) return null;
|
|
114
|
+
let n = {};
|
|
115
|
+
for (let r in t) n[r] = x(e, t[r], e.theme.modularCssLayers ? "theme" : void 0);
|
|
116
|
+
return p(e, n);
|
|
117
|
+
}), r && !b && o.push(function(e) {
|
|
118
|
+
let t = e.theme?.components?.[r]?.variants;
|
|
119
|
+
return t ? S(e, t, [], e.theme.modularCssLayers ? "theme" : void 0) : null;
|
|
120
|
+
}), C || o.push(i), Array.isArray(a[0])) {
|
|
121
|
+
let e = a.shift(), t = Array(n.length).fill(""), r = Array(o.length).fill(""), i;
|
|
122
|
+
i = [
|
|
123
|
+
...t,
|
|
124
|
+
...e,
|
|
125
|
+
...r
|
|
126
|
+
], i.raw = [
|
|
127
|
+
...t,
|
|
128
|
+
...e.raw,
|
|
129
|
+
...r
|
|
130
|
+
], n.unshift(i);
|
|
131
|
+
}
|
|
132
|
+
let s = k(...n, ...a, ...o);
|
|
133
|
+
return e.muiName && (s.muiName = e.muiName), process.env.NODE_ENV !== "production" && (s.displayName = w(r, u, e)), s;
|
|
134
|
+
};
|
|
135
|
+
return k.withConfig && (j.withConfig = k.withConfig), j;
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
function w(e, t, n) {
|
|
139
|
+
return e ? `${e}${r(t || "")}` : `Styled(${m(n)})`;
|
|
140
|
+
}
|
|
141
|
+
function T(e, t) {
|
|
142
|
+
let n;
|
|
143
|
+
return process.env.NODE_ENV !== "production" && e && (n = `${e}-${D(t || "Root")}`), n;
|
|
144
|
+
}
|
|
145
|
+
function E(e) {
|
|
146
|
+
return typeof e == "string" && e.charCodeAt(0) > 96;
|
|
147
|
+
}
|
|
148
|
+
function D(e) {
|
|
149
|
+
return e && e.charAt(0).toLowerCase() + e.slice(1);
|
|
150
|
+
}
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region ../../node_modules/@mui/material/styles/slotShouldForwardProp.mjs
|
|
153
|
+
function O(e) {
|
|
154
|
+
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
155
|
+
}
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region ../../node_modules/@mui/material/styles/rootShouldForwardProp.mjs
|
|
158
|
+
var k = (e) => O(e) && e !== "classes", A = C({
|
|
159
|
+
themeId: l,
|
|
160
|
+
defaultTheme: u,
|
|
161
|
+
rootShouldForwardProp: k
|
|
162
|
+
});
|
|
163
|
+
//#endregion
|
|
164
|
+
export { _ as a, C as i, k as n, h as o, O as r, A as t };
|