@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,808 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./chunk-C_CI6nMA.js";
|
|
2
|
-
import { r as t } from "./colorManipulator-DmUjcif3.js";
|
|
3
|
-
import { t as n } from "./prop-types-BzYPyWN7.js";
|
|
4
|
-
import { r, t as i } from "./DefaultPropsProvider-ebWx4_5E.js";
|
|
5
|
-
import { t as a } from "./generateUtilityClass-PAIOm1jC.js";
|
|
6
|
-
import { t as o } from "./clsx-DGZSe4Nt.js";
|
|
7
|
-
import { t as s } from "./generateUtilityClasses-DvX505Gy.js";
|
|
8
|
-
import { t as c } from "./styled-Bog8QCl3.js";
|
|
9
|
-
import { t as l } from "./exactProp-C_IsucXf.js";
|
|
10
|
-
import { n as u, o as d, r as f, t as p } from "./elementAcceptingRef-DhkNAkFH.js";
|
|
11
|
-
import { t as m } from "./memoTheme-qFyKAk7y.js";
|
|
12
|
-
import { t as h } from "./useTheme-BIWMbX3i.js";
|
|
13
|
-
import { t as g } from "./useThemeProps-Cr28OQu3.js";
|
|
14
|
-
import { toSxArray as _ } from "./utils/sx.js";
|
|
15
|
-
import { r as v } from "./ButtonBase-DxKtpFYs.js";
|
|
16
|
-
import { n as y } from "./useForkRef-CKneCEtr.js";
|
|
17
|
-
import { n as b } from "./useEventCallback-CVqMfiG_.js";
|
|
18
|
-
import { t as x } from "./appendOwnerState-CELpvdMz.js";
|
|
19
|
-
import { i as S, t as C } from "./useSlot-iIu8ek6E.js";
|
|
20
|
-
import { t as w } from "./capitalize-CccCFNpQ.js";
|
|
21
|
-
import { t as T } from "./createSimplePaletteValueFilter-C1gWywW_.js";
|
|
22
|
-
import { t as E } from "./createSvgIcon-B0SZlJF1.js";
|
|
23
|
-
import { t as D } from "./contains-WOhYaq1E.js";
|
|
24
|
-
import { t as O } from "./Grow-zRRuwUl-.js";
|
|
25
|
-
import { t as k } from "./Paper-ixxCeml9.js";
|
|
26
|
-
import * as A from "react";
|
|
27
|
-
import { createElement as j } from "react";
|
|
28
|
-
import { jsx as M, jsxs as N } from "react/jsx-runtime";
|
|
29
|
-
//#region ../../node_modules/@mui/material/internal/svg-icons/Close.mjs
|
|
30
|
-
var P = /* @__PURE__ */ e(n(), 1), F = E(/* @__PURE__ */ M("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }), "Close");
|
|
31
|
-
//#endregion
|
|
32
|
-
//#region ../../node_modules/@mui/material/Alert/alertClasses.mjs
|
|
33
|
-
function I(e) {
|
|
34
|
-
return a("MuiAlert", e);
|
|
35
|
-
}
|
|
36
|
-
var L = s("MuiAlert", [
|
|
37
|
-
"root",
|
|
38
|
-
"action",
|
|
39
|
-
"icon",
|
|
40
|
-
"message",
|
|
41
|
-
"filled",
|
|
42
|
-
"colorSuccess",
|
|
43
|
-
"colorInfo",
|
|
44
|
-
"colorWarning",
|
|
45
|
-
"colorError",
|
|
46
|
-
"outlined",
|
|
47
|
-
"standard"
|
|
48
|
-
]), R = E(/* @__PURE__ */ M("path", { d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" }), "SuccessOutlined"), z = E(/* @__PURE__ */ M("path", { d: "M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z" }), "ReportProblemOutlined"), B = E(/* @__PURE__ */ M("path", { d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" }), "ErrorOutline"), V = E(/* @__PURE__ */ M("path", { d: "M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z" }), "InfoOutlined"), H = (e) => {
|
|
49
|
-
let { variant: t, color: n, severity: i, classes: a } = e;
|
|
50
|
-
return r({
|
|
51
|
-
root: [
|
|
52
|
-
"root",
|
|
53
|
-
`color${w(n || i)}`,
|
|
54
|
-
`${t}`
|
|
55
|
-
],
|
|
56
|
-
icon: ["icon"],
|
|
57
|
-
message: ["message"],
|
|
58
|
-
action: ["action"]
|
|
59
|
-
}, I, a);
|
|
60
|
-
}, U = c(k, {
|
|
61
|
-
name: "MuiAlert",
|
|
62
|
-
slot: "Root",
|
|
63
|
-
overridesResolver: (e, t) => {
|
|
64
|
-
let { ownerState: n } = e;
|
|
65
|
-
return [t.root, t[n.variant]];
|
|
66
|
-
}
|
|
67
|
-
})(m(({ theme: e }) => {
|
|
68
|
-
let t = e.palette.mode === "light" ? e.darken : e.lighten, n = e.palette.mode === "light" ? e.lighten : e.darken;
|
|
69
|
-
return {
|
|
70
|
-
...e.typography.body2,
|
|
71
|
-
backgroundColor: "transparent",
|
|
72
|
-
display: "flex",
|
|
73
|
-
padding: "6px 16px",
|
|
74
|
-
variants: [
|
|
75
|
-
...Object.entries(e.palette).filter(T(["light"])).map(([r]) => ({
|
|
76
|
-
props: {
|
|
77
|
-
colorSeverity: r,
|
|
78
|
-
variant: "standard"
|
|
79
|
-
},
|
|
80
|
-
style: {
|
|
81
|
-
color: e.vars ? e.vars.palette.Alert[`${r}Color`] : t(e.palette[r].light, .6),
|
|
82
|
-
backgroundColor: e.vars ? e.vars.palette.Alert[`${r}StandardBg`] : n(e.palette[r].light, .9),
|
|
83
|
-
[`& .${L.icon}`]: e.vars ? { color: e.vars.palette.Alert[`${r}IconColor`] } : { color: e.palette[r].main }
|
|
84
|
-
}
|
|
85
|
-
})),
|
|
86
|
-
...Object.entries(e.palette).filter(T(["light"])).map(([n]) => ({
|
|
87
|
-
props: {
|
|
88
|
-
colorSeverity: n,
|
|
89
|
-
variant: "outlined"
|
|
90
|
-
},
|
|
91
|
-
style: {
|
|
92
|
-
color: e.vars ? e.vars.palette.Alert[`${n}Color`] : t(e.palette[n].light, .6),
|
|
93
|
-
border: `1px solid ${(e.vars || e).palette[n].light}`,
|
|
94
|
-
[`& .${L.icon}`]: e.vars ? { color: e.vars.palette.Alert[`${n}IconColor`] } : { color: e.palette[n].main }
|
|
95
|
-
}
|
|
96
|
-
})),
|
|
97
|
-
...Object.entries(e.palette).filter(T(["dark"])).map(([t]) => ({
|
|
98
|
-
props: {
|
|
99
|
-
colorSeverity: t,
|
|
100
|
-
variant: "filled"
|
|
101
|
-
},
|
|
102
|
-
style: {
|
|
103
|
-
fontWeight: e.typography.fontWeightMedium,
|
|
104
|
-
...e.vars ? {
|
|
105
|
-
color: e.vars.palette.Alert[`${t}FilledColor`],
|
|
106
|
-
backgroundColor: e.vars.palette.Alert[`${t}FilledBg`]
|
|
107
|
-
} : {
|
|
108
|
-
backgroundColor: e.palette.mode === "dark" ? e.palette[t].dark : e.palette[t].main,
|
|
109
|
-
color: e.palette.getContrastText(e.palette[t].main)
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}))
|
|
113
|
-
]
|
|
114
|
-
};
|
|
115
|
-
})), W = c("div", {
|
|
116
|
-
name: "MuiAlert",
|
|
117
|
-
slot: "Icon"
|
|
118
|
-
})({
|
|
119
|
-
marginRight: 12,
|
|
120
|
-
padding: "7px 0",
|
|
121
|
-
display: "flex",
|
|
122
|
-
fontSize: 22,
|
|
123
|
-
opacity: .9
|
|
124
|
-
}), G = c("div", {
|
|
125
|
-
name: "MuiAlert",
|
|
126
|
-
slot: "Message"
|
|
127
|
-
})({
|
|
128
|
-
padding: "8px 0",
|
|
129
|
-
minWidth: 0,
|
|
130
|
-
overflow: "auto"
|
|
131
|
-
}), ee = c("div", {
|
|
132
|
-
name: "MuiAlert",
|
|
133
|
-
slot: "Action"
|
|
134
|
-
})({
|
|
135
|
-
display: "flex",
|
|
136
|
-
alignItems: "flex-start",
|
|
137
|
-
padding: "4px 0 0 16px",
|
|
138
|
-
marginLeft: "auto",
|
|
139
|
-
marginRight: -8
|
|
140
|
-
}), K = {
|
|
141
|
-
success: /* @__PURE__ */ M(R, { fontSize: "inherit" }),
|
|
142
|
-
warning: /* @__PURE__ */ M(z, { fontSize: "inherit" }),
|
|
143
|
-
error: /* @__PURE__ */ M(B, { fontSize: "inherit" }),
|
|
144
|
-
info: /* @__PURE__ */ M(V, { fontSize: "inherit" })
|
|
145
|
-
}, q = /* @__PURE__ */ A.forwardRef(function(e, t) {
|
|
146
|
-
let n = i({
|
|
147
|
-
props: e,
|
|
148
|
-
name: "MuiAlert"
|
|
149
|
-
}), { action: r, children: a, className: s, closeText: c = "Close", color: l, icon: u, iconMapping: d = K, onClose: p, role: m = "alert", severity: h = "success", slotProps: g = {}, slots: _ = {}, variant: v = "standard", ...y } = n, b = {
|
|
150
|
-
...n,
|
|
151
|
-
color: l,
|
|
152
|
-
severity: h,
|
|
153
|
-
variant: v,
|
|
154
|
-
colorSeverity: l || h
|
|
155
|
-
}, x = H(b), S = {
|
|
156
|
-
slots: _,
|
|
157
|
-
slotProps: g
|
|
158
|
-
}, [w, T] = C("root", {
|
|
159
|
-
ref: t,
|
|
160
|
-
shouldForwardComponentProp: !0,
|
|
161
|
-
className: o(x.root, s),
|
|
162
|
-
elementType: U,
|
|
163
|
-
externalForwardedProps: {
|
|
164
|
-
...S,
|
|
165
|
-
...y
|
|
166
|
-
},
|
|
167
|
-
ownerState: b,
|
|
168
|
-
additionalProps: {
|
|
169
|
-
role: m,
|
|
170
|
-
elevation: 0
|
|
171
|
-
}
|
|
172
|
-
}), [E, D] = C("icon", {
|
|
173
|
-
className: x.icon,
|
|
174
|
-
elementType: W,
|
|
175
|
-
externalForwardedProps: S,
|
|
176
|
-
ownerState: b
|
|
177
|
-
}), [O, k] = C("message", {
|
|
178
|
-
className: x.message,
|
|
179
|
-
elementType: G,
|
|
180
|
-
externalForwardedProps: S,
|
|
181
|
-
ownerState: b
|
|
182
|
-
}), [A, j] = C("action", {
|
|
183
|
-
className: x.action,
|
|
184
|
-
elementType: ee,
|
|
185
|
-
externalForwardedProps: S,
|
|
186
|
-
ownerState: b
|
|
187
|
-
}), [P, I] = C("closeButton", {
|
|
188
|
-
elementType: f,
|
|
189
|
-
externalForwardedProps: S,
|
|
190
|
-
ownerState: b
|
|
191
|
-
}), [L, R] = C("closeIcon", {
|
|
192
|
-
elementType: F,
|
|
193
|
-
externalForwardedProps: S,
|
|
194
|
-
ownerState: b
|
|
195
|
-
});
|
|
196
|
-
return /* @__PURE__ */ N(w, {
|
|
197
|
-
...T,
|
|
198
|
-
children: [
|
|
199
|
-
u === !1 ? null : /* @__PURE__ */ M(E, {
|
|
200
|
-
...D,
|
|
201
|
-
children: u || d[h] || K[h]
|
|
202
|
-
}),
|
|
203
|
-
/* @__PURE__ */ M(O, {
|
|
204
|
-
...k,
|
|
205
|
-
children: a
|
|
206
|
-
}),
|
|
207
|
-
r == null ? null : /* @__PURE__ */ M(A, {
|
|
208
|
-
...j,
|
|
209
|
-
children: r
|
|
210
|
-
}),
|
|
211
|
-
r == null && p ? /* @__PURE__ */ M(A, {
|
|
212
|
-
...j,
|
|
213
|
-
children: /* @__PURE__ */ M(P, {
|
|
214
|
-
size: "small",
|
|
215
|
-
"aria-label": c,
|
|
216
|
-
title: c,
|
|
217
|
-
color: "inherit",
|
|
218
|
-
onClick: p,
|
|
219
|
-
...I,
|
|
220
|
-
children: /* @__PURE__ */ M(L, {
|
|
221
|
-
fontSize: "small",
|
|
222
|
-
...R
|
|
223
|
-
})
|
|
224
|
-
})
|
|
225
|
-
}) : null
|
|
226
|
-
]
|
|
227
|
-
});
|
|
228
|
-
});
|
|
229
|
-
process.env.NODE_ENV !== "production" && (q.propTypes = {
|
|
230
|
-
action: P.default.node,
|
|
231
|
-
children: P.default.node,
|
|
232
|
-
classes: P.default.object,
|
|
233
|
-
className: P.default.string,
|
|
234
|
-
closeText: P.default.string,
|
|
235
|
-
color: P.default.oneOfType([P.default.oneOf([
|
|
236
|
-
"error",
|
|
237
|
-
"info",
|
|
238
|
-
"success",
|
|
239
|
-
"warning"
|
|
240
|
-
]), P.default.string]),
|
|
241
|
-
icon: P.default.node,
|
|
242
|
-
iconMapping: P.default.shape({
|
|
243
|
-
error: P.default.node,
|
|
244
|
-
info: P.default.node,
|
|
245
|
-
success: P.default.node,
|
|
246
|
-
warning: P.default.node
|
|
247
|
-
}),
|
|
248
|
-
onClose: P.default.func,
|
|
249
|
-
role: P.default.string,
|
|
250
|
-
severity: P.default.oneOfType([P.default.oneOf([
|
|
251
|
-
"error",
|
|
252
|
-
"info",
|
|
253
|
-
"success",
|
|
254
|
-
"warning"
|
|
255
|
-
]), P.default.string]),
|
|
256
|
-
slotProps: P.default.shape({
|
|
257
|
-
action: P.default.oneOfType([P.default.func, P.default.object]),
|
|
258
|
-
closeButton: P.default.oneOfType([P.default.func, P.default.object]),
|
|
259
|
-
closeIcon: P.default.oneOfType([P.default.func, P.default.object]),
|
|
260
|
-
icon: P.default.oneOfType([P.default.func, P.default.object]),
|
|
261
|
-
message: P.default.oneOfType([P.default.func, P.default.object]),
|
|
262
|
-
root: P.default.oneOfType([P.default.func, P.default.object])
|
|
263
|
-
}),
|
|
264
|
-
slots: P.default.shape({
|
|
265
|
-
action: P.default.elementType,
|
|
266
|
-
closeButton: P.default.elementType,
|
|
267
|
-
closeIcon: P.default.elementType,
|
|
268
|
-
icon: P.default.elementType,
|
|
269
|
-
message: P.default.elementType,
|
|
270
|
-
root: P.default.elementType
|
|
271
|
-
}),
|
|
272
|
-
sx: P.default.oneOfType([
|
|
273
|
-
P.default.arrayOf(P.default.oneOfType([
|
|
274
|
-
P.default.func,
|
|
275
|
-
P.default.object,
|
|
276
|
-
P.default.bool
|
|
277
|
-
])),
|
|
278
|
-
P.default.func,
|
|
279
|
-
P.default.object
|
|
280
|
-
]),
|
|
281
|
-
variant: P.default.oneOfType([P.default.oneOf([
|
|
282
|
-
"filled",
|
|
283
|
-
"outlined",
|
|
284
|
-
"standard"
|
|
285
|
-
]), P.default.string])
|
|
286
|
-
});
|
|
287
|
-
//#endregion
|
|
288
|
-
//#region ../../node_modules/@mui/material/Snackbar/useSnackbar.mjs
|
|
289
|
-
function te(e = {}) {
|
|
290
|
-
let { autoHideDuration: t = null, disableWindowBlurListener: n = !1, onClose: r, open: i, resumeHideDuration: a } = e, o = v();
|
|
291
|
-
A.useEffect(() => {
|
|
292
|
-
if (!i) return;
|
|
293
|
-
function e(e) {
|
|
294
|
-
e.defaultPrevented || e.key === "Escape" && r?.(e, "escapeKeyDown");
|
|
295
|
-
}
|
|
296
|
-
return document.addEventListener("keydown", e), () => {
|
|
297
|
-
document.removeEventListener("keydown", e);
|
|
298
|
-
};
|
|
299
|
-
}, [i, r]);
|
|
300
|
-
let s = b((e, t) => {
|
|
301
|
-
r?.(e, t);
|
|
302
|
-
}), c = b((e) => {
|
|
303
|
-
!r || e == null || o.start(e, () => {
|
|
304
|
-
s(null, "timeout");
|
|
305
|
-
});
|
|
306
|
-
});
|
|
307
|
-
A.useEffect(() => (i && c(t), o.clear), [
|
|
308
|
-
i,
|
|
309
|
-
t,
|
|
310
|
-
c,
|
|
311
|
-
o
|
|
312
|
-
]);
|
|
313
|
-
let l = (e) => {
|
|
314
|
-
r?.(e, "clickaway");
|
|
315
|
-
}, u = o.clear, d = A.useCallback(() => {
|
|
316
|
-
t != null && c(a ?? t * .5);
|
|
317
|
-
}, [
|
|
318
|
-
t,
|
|
319
|
-
a,
|
|
320
|
-
c
|
|
321
|
-
]), f = (e) => (t) => {
|
|
322
|
-
let n = e.onBlur;
|
|
323
|
-
n?.(t), d();
|
|
324
|
-
}, p = (e) => (t) => {
|
|
325
|
-
let n = e.onFocus;
|
|
326
|
-
n?.(t), u();
|
|
327
|
-
}, m = (e) => (t) => {
|
|
328
|
-
let n = e.onMouseEnter;
|
|
329
|
-
n?.(t), u();
|
|
330
|
-
}, h = (e) => (t) => {
|
|
331
|
-
let n = e.onMouseLeave;
|
|
332
|
-
n?.(t), d();
|
|
333
|
-
};
|
|
334
|
-
return A.useEffect(() => {
|
|
335
|
-
if (!n && i) return window.addEventListener("focus", d), window.addEventListener("blur", u), () => {
|
|
336
|
-
window.removeEventListener("focus", d), window.removeEventListener("blur", u);
|
|
337
|
-
};
|
|
338
|
-
}, [
|
|
339
|
-
n,
|
|
340
|
-
i,
|
|
341
|
-
d,
|
|
342
|
-
u
|
|
343
|
-
]), {
|
|
344
|
-
getRootProps: (t = {}) => {
|
|
345
|
-
let n = {
|
|
346
|
-
...S(e),
|
|
347
|
-
...S(t)
|
|
348
|
-
};
|
|
349
|
-
return {
|
|
350
|
-
role: "presentation",
|
|
351
|
-
...t,
|
|
352
|
-
...n,
|
|
353
|
-
onBlur: f(n),
|
|
354
|
-
onFocus: p(n),
|
|
355
|
-
onMouseEnter: m(n),
|
|
356
|
-
onMouseLeave: h(n)
|
|
357
|
-
};
|
|
358
|
-
},
|
|
359
|
-
onClickAway: l
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
//#endregion
|
|
363
|
-
//#region ../../node_modules/@mui/material/ClickAwayListener/ClickAwayListener.mjs
|
|
364
|
-
function J(e) {
|
|
365
|
-
return e.substring(2).toLowerCase();
|
|
366
|
-
}
|
|
367
|
-
function ne(e, t) {
|
|
368
|
-
return t.documentElement.clientWidth < e.clientX || t.documentElement.clientHeight < e.clientY;
|
|
369
|
-
}
|
|
370
|
-
function Y(e) {
|
|
371
|
-
let { children: t, disableReactTree: n = !1, mouseEvent: r = "onClick", onClickAway: i, touchEvent: a = "onTouchEnd" } = e, o = A.useRef(!1), s = A.useRef(null), c = A.useRef(!1), l = A.useRef(!1);
|
|
372
|
-
A.useEffect(() => (setTimeout(() => {
|
|
373
|
-
c.current = !0;
|
|
374
|
-
}, 0), () => {
|
|
375
|
-
c.current = !1;
|
|
376
|
-
}), []);
|
|
377
|
-
let f = y(u(t), s), p = b((e) => {
|
|
378
|
-
let t = l.current;
|
|
379
|
-
l.current = !1;
|
|
380
|
-
let r = d(s.current);
|
|
381
|
-
if (!c.current || !s.current || "clientX" in e && ne(e, r)) return;
|
|
382
|
-
if (o.current) {
|
|
383
|
-
o.current = !1;
|
|
384
|
-
return;
|
|
385
|
-
}
|
|
386
|
-
let a;
|
|
387
|
-
a = e.composedPath ? e.composedPath().includes(s.current) : !D(r.documentElement, e.target) || D(s.current, e.target), !a && (n || !t) && i(e);
|
|
388
|
-
}), m = (e) => (n) => {
|
|
389
|
-
l.current = !0;
|
|
390
|
-
let r = t.props[e];
|
|
391
|
-
r && r(n);
|
|
392
|
-
}, h = { ref: f };
|
|
393
|
-
return a !== !1 && (h[a] = m(a)), A.useEffect(() => {
|
|
394
|
-
if (a !== !1) {
|
|
395
|
-
let e = J(a), t = d(s.current), n = () => {
|
|
396
|
-
o.current = !0;
|
|
397
|
-
};
|
|
398
|
-
return t.addEventListener(e, p), t.addEventListener("touchmove", n), () => {
|
|
399
|
-
t.removeEventListener(e, p), t.removeEventListener("touchmove", n);
|
|
400
|
-
};
|
|
401
|
-
}
|
|
402
|
-
}, [p, a]), r !== !1 && (h[r] = m(r)), A.useEffect(() => {
|
|
403
|
-
if (r !== !1) {
|
|
404
|
-
let e = J(r), t = d(s.current);
|
|
405
|
-
return t.addEventListener(e, p), () => {
|
|
406
|
-
t.removeEventListener(e, p);
|
|
407
|
-
};
|
|
408
|
-
}
|
|
409
|
-
}, [p, r]), /* @__PURE__ */ A.cloneElement(t, h);
|
|
410
|
-
}
|
|
411
|
-
process.env.NODE_ENV !== "production" && (Y.propTypes = {
|
|
412
|
-
children: p.isRequired,
|
|
413
|
-
disableReactTree: P.default.bool,
|
|
414
|
-
mouseEvent: P.default.oneOf([
|
|
415
|
-
"onClick",
|
|
416
|
-
"onMouseDown",
|
|
417
|
-
"onMouseUp",
|
|
418
|
-
"onPointerDown",
|
|
419
|
-
"onPointerUp",
|
|
420
|
-
!1
|
|
421
|
-
]),
|
|
422
|
-
onClickAway: P.default.func.isRequired,
|
|
423
|
-
touchEvent: P.default.oneOf([
|
|
424
|
-
"onTouchEnd",
|
|
425
|
-
"onTouchStart",
|
|
426
|
-
!1
|
|
427
|
-
])
|
|
428
|
-
}), process.env.NODE_ENV !== "production" && (Y.propTypes = l(Y.propTypes));
|
|
429
|
-
//#endregion
|
|
430
|
-
//#region ../../node_modules/@mui/material/SnackbarContent/snackbarContentClasses.mjs
|
|
431
|
-
function re(e) {
|
|
432
|
-
return a("MuiSnackbarContent", e);
|
|
433
|
-
}
|
|
434
|
-
s("MuiSnackbarContent", [
|
|
435
|
-
"root",
|
|
436
|
-
"message",
|
|
437
|
-
"action"
|
|
438
|
-
]);
|
|
439
|
-
//#endregion
|
|
440
|
-
//#region ../../node_modules/@mui/material/SnackbarContent/SnackbarContent.mjs
|
|
441
|
-
var ie = (e) => {
|
|
442
|
-
let { classes: t } = e;
|
|
443
|
-
return r({
|
|
444
|
-
root: ["root"],
|
|
445
|
-
action: ["action"],
|
|
446
|
-
message: ["message"]
|
|
447
|
-
}, re, t);
|
|
448
|
-
}, ae = c(k, {
|
|
449
|
-
name: "MuiSnackbarContent",
|
|
450
|
-
slot: "Root"
|
|
451
|
-
})(m(({ theme: e }) => {
|
|
452
|
-
let n = e.palette.mode === "light" ? .8 : .98;
|
|
453
|
-
return {
|
|
454
|
-
...e.typography.body2,
|
|
455
|
-
color: e.vars ? e.vars.palette.SnackbarContent.color : e.palette.getContrastText(t(e.palette.background.default, n)),
|
|
456
|
-
backgroundColor: e.vars ? e.vars.palette.SnackbarContent.bg : t(e.palette.background.default, n),
|
|
457
|
-
display: "flex",
|
|
458
|
-
alignItems: "center",
|
|
459
|
-
flexWrap: "wrap",
|
|
460
|
-
padding: "6px 16px",
|
|
461
|
-
flexGrow: 1,
|
|
462
|
-
[e.breakpoints.up("sm")]: {
|
|
463
|
-
flexGrow: "initial",
|
|
464
|
-
minWidth: 288
|
|
465
|
-
}
|
|
466
|
-
};
|
|
467
|
-
})), oe = c("div", {
|
|
468
|
-
name: "MuiSnackbarContent",
|
|
469
|
-
slot: "Message"
|
|
470
|
-
})({ padding: "8px 0" }), se = c("div", {
|
|
471
|
-
name: "MuiSnackbarContent",
|
|
472
|
-
slot: "Action"
|
|
473
|
-
})({
|
|
474
|
-
display: "flex",
|
|
475
|
-
alignItems: "center",
|
|
476
|
-
marginLeft: "auto",
|
|
477
|
-
paddingLeft: 16,
|
|
478
|
-
marginRight: -8
|
|
479
|
-
}), X = /* @__PURE__ */ A.forwardRef(function(e, t) {
|
|
480
|
-
let n = i({
|
|
481
|
-
props: e,
|
|
482
|
-
name: "MuiSnackbarContent"
|
|
483
|
-
}), { action: r, className: a, message: s, role: c = "alert", ...l } = n, u = n, d = ie(u);
|
|
484
|
-
return /* @__PURE__ */ N(ae, {
|
|
485
|
-
role: c,
|
|
486
|
-
elevation: 6,
|
|
487
|
-
className: o(d.root, a),
|
|
488
|
-
ownerState: u,
|
|
489
|
-
ref: t,
|
|
490
|
-
...l,
|
|
491
|
-
children: [/* @__PURE__ */ M(oe, {
|
|
492
|
-
className: d.message,
|
|
493
|
-
ownerState: u,
|
|
494
|
-
children: s
|
|
495
|
-
}), r ? /* @__PURE__ */ M(se, {
|
|
496
|
-
className: d.action,
|
|
497
|
-
ownerState: u,
|
|
498
|
-
children: r
|
|
499
|
-
}) : null]
|
|
500
|
-
});
|
|
501
|
-
});
|
|
502
|
-
process.env.NODE_ENV !== "production" && (X.propTypes = {
|
|
503
|
-
action: P.default.node,
|
|
504
|
-
classes: P.default.object,
|
|
505
|
-
className: P.default.string,
|
|
506
|
-
message: P.default.node,
|
|
507
|
-
role: P.default.string,
|
|
508
|
-
sx: P.default.oneOfType([
|
|
509
|
-
P.default.arrayOf(P.default.oneOfType([
|
|
510
|
-
P.default.func,
|
|
511
|
-
P.default.object,
|
|
512
|
-
P.default.bool
|
|
513
|
-
])),
|
|
514
|
-
P.default.func,
|
|
515
|
-
P.default.object
|
|
516
|
-
])
|
|
517
|
-
});
|
|
518
|
-
//#endregion
|
|
519
|
-
//#region ../../node_modules/@mui/material/Snackbar/snackbarClasses.mjs
|
|
520
|
-
function ce(e) {
|
|
521
|
-
return a("MuiSnackbar", e);
|
|
522
|
-
}
|
|
523
|
-
s("MuiSnackbar", [
|
|
524
|
-
"root",
|
|
525
|
-
"anchorOriginTopCenter",
|
|
526
|
-
"anchorOriginBottomCenter",
|
|
527
|
-
"anchorOriginTopRight",
|
|
528
|
-
"anchorOriginBottomRight",
|
|
529
|
-
"anchorOriginTopLeft",
|
|
530
|
-
"anchorOriginBottomLeft"
|
|
531
|
-
]);
|
|
532
|
-
//#endregion
|
|
533
|
-
//#region ../../node_modules/@mui/material/Snackbar/Snackbar.mjs
|
|
534
|
-
var le = (e) => {
|
|
535
|
-
let { classes: t, anchorOrigin: n } = e;
|
|
536
|
-
return r({ root: ["root", `anchorOrigin${w(n.vertical)}${w(n.horizontal)}`] }, ce, t);
|
|
537
|
-
}, ue = c("div", {
|
|
538
|
-
name: "MuiSnackbar",
|
|
539
|
-
slot: "Root",
|
|
540
|
-
overridesResolver: (e, t) => {
|
|
541
|
-
let { ownerState: n } = e;
|
|
542
|
-
return [t.root, t[`anchorOrigin${w(n.anchorOrigin.vertical)}${w(n.anchorOrigin.horizontal)}`]];
|
|
543
|
-
}
|
|
544
|
-
})(m(({ theme: e }) => ({
|
|
545
|
-
zIndex: (e.vars || e).zIndex.snackbar,
|
|
546
|
-
position: "fixed",
|
|
547
|
-
display: "flex",
|
|
548
|
-
left: 8,
|
|
549
|
-
right: 8,
|
|
550
|
-
justifyContent: "center",
|
|
551
|
-
alignItems: "center",
|
|
552
|
-
variants: [
|
|
553
|
-
{
|
|
554
|
-
props: ({ ownerState: e }) => e.anchorOrigin.vertical === "top",
|
|
555
|
-
style: {
|
|
556
|
-
top: 8,
|
|
557
|
-
[e.breakpoints.up("sm")]: { top: 24 }
|
|
558
|
-
}
|
|
559
|
-
},
|
|
560
|
-
{
|
|
561
|
-
props: ({ ownerState: e }) => e.anchorOrigin.vertical !== "top",
|
|
562
|
-
style: {
|
|
563
|
-
bottom: 8,
|
|
564
|
-
[e.breakpoints.up("sm")]: { bottom: 24 }
|
|
565
|
-
}
|
|
566
|
-
},
|
|
567
|
-
{
|
|
568
|
-
props: ({ ownerState: e }) => e.anchorOrigin.horizontal === "left",
|
|
569
|
-
style: {
|
|
570
|
-
justifyContent: "flex-start",
|
|
571
|
-
[e.breakpoints.up("sm")]: {
|
|
572
|
-
left: 24,
|
|
573
|
-
right: "auto"
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
props: ({ ownerState: e }) => e.anchorOrigin.horizontal === "right",
|
|
579
|
-
style: {
|
|
580
|
-
justifyContent: "flex-end",
|
|
581
|
-
[e.breakpoints.up("sm")]: {
|
|
582
|
-
right: 24,
|
|
583
|
-
left: "auto"
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
},
|
|
587
|
-
{
|
|
588
|
-
props: ({ ownerState: e }) => e.anchorOrigin.horizontal === "center",
|
|
589
|
-
style: { [e.breakpoints.up("sm")]: {
|
|
590
|
-
left: "50%",
|
|
591
|
-
right: "auto",
|
|
592
|
-
transform: "translateX(-50%)"
|
|
593
|
-
} }
|
|
594
|
-
}
|
|
595
|
-
]
|
|
596
|
-
}))), Z = /* @__PURE__ */ A.forwardRef(function(e, t) {
|
|
597
|
-
let n = i({
|
|
598
|
-
props: e,
|
|
599
|
-
name: "MuiSnackbar"
|
|
600
|
-
}), r = h(), a = {
|
|
601
|
-
enter: r.transitions.duration.enteringScreen,
|
|
602
|
-
exit: r.transitions.duration.leavingScreen
|
|
603
|
-
}, { action: o, anchorOrigin: { vertical: s, horizontal: c } = {
|
|
604
|
-
vertical: "bottom",
|
|
605
|
-
horizontal: "left"
|
|
606
|
-
}, autoHideDuration: l = null, children: u, className: d, disableWindowBlurListener: f = !1, message: p, onBlur: m, onClose: g, onFocus: _, onMouseEnter: v, onMouseLeave: y, open: b, resumeHideDuration: x, slots: S = {}, slotProps: w = {}, transitionDuration: T = a, ...E } = n, D = {
|
|
607
|
-
...n,
|
|
608
|
-
anchorOrigin: {
|
|
609
|
-
vertical: s,
|
|
610
|
-
horizontal: c
|
|
611
|
-
},
|
|
612
|
-
autoHideDuration: l,
|
|
613
|
-
disableWindowBlurListener: f,
|
|
614
|
-
transitionDuration: T
|
|
615
|
-
}, k = le(D), { getRootProps: j, onClickAway: N } = te(D), [P, F] = A.useState(!0), I = {
|
|
616
|
-
slots: S,
|
|
617
|
-
slotProps: w
|
|
618
|
-
}, [L, R] = C("root", {
|
|
619
|
-
ref: t,
|
|
620
|
-
className: [k.root, d],
|
|
621
|
-
elementType: ue,
|
|
622
|
-
getSlotProps: j,
|
|
623
|
-
externalForwardedProps: {
|
|
624
|
-
...I,
|
|
625
|
-
...E
|
|
626
|
-
},
|
|
627
|
-
ownerState: D
|
|
628
|
-
}), [z, { ownerState: B, ...V }] = C("clickAwayListener", {
|
|
629
|
-
elementType: Y,
|
|
630
|
-
externalForwardedProps: I,
|
|
631
|
-
getSlotProps: (e) => ({ onClickAway: (...t) => {
|
|
632
|
-
let n = t[0];
|
|
633
|
-
e.onClickAway?.(...t), !n?.defaultMuiPrevented && N(...t);
|
|
634
|
-
} }),
|
|
635
|
-
ownerState: D
|
|
636
|
-
}), [H, U] = C("content", {
|
|
637
|
-
elementType: X,
|
|
638
|
-
shouldForwardComponentProp: !0,
|
|
639
|
-
externalForwardedProps: I,
|
|
640
|
-
additionalProps: {
|
|
641
|
-
message: p,
|
|
642
|
-
action: o
|
|
643
|
-
},
|
|
644
|
-
ownerState: D
|
|
645
|
-
}), [W, G] = C("transition", {
|
|
646
|
-
elementType: O,
|
|
647
|
-
externalForwardedProps: I,
|
|
648
|
-
getSlotProps: (e) => ({
|
|
649
|
-
onEnter: (...t) => {
|
|
650
|
-
e.onEnter?.(...t), F(!1);
|
|
651
|
-
},
|
|
652
|
-
onExited: (...t) => {
|
|
653
|
-
e.onExited?.(...t), F(!0);
|
|
654
|
-
}
|
|
655
|
-
}),
|
|
656
|
-
additionalProps: {
|
|
657
|
-
appear: !0,
|
|
658
|
-
in: b,
|
|
659
|
-
timeout: T,
|
|
660
|
-
direction: s === "top" ? "down" : "up"
|
|
661
|
-
},
|
|
662
|
-
ownerState: D
|
|
663
|
-
});
|
|
664
|
-
return !b && P ? null : /* @__PURE__ */ M(z, {
|
|
665
|
-
...V,
|
|
666
|
-
...S.clickAwayListener && { ownerState: B },
|
|
667
|
-
children: /* @__PURE__ */ M(L, {
|
|
668
|
-
...R,
|
|
669
|
-
children: /* @__PURE__ */ M(W, {
|
|
670
|
-
...G,
|
|
671
|
-
children: u || /* @__PURE__ */ M(H, { ...U })
|
|
672
|
-
})
|
|
673
|
-
})
|
|
674
|
-
});
|
|
675
|
-
});
|
|
676
|
-
process.env.NODE_ENV !== "production" && (Z.propTypes = {
|
|
677
|
-
action: P.default.node,
|
|
678
|
-
anchorOrigin: P.default.shape({
|
|
679
|
-
horizontal: P.default.oneOf([
|
|
680
|
-
"center",
|
|
681
|
-
"left",
|
|
682
|
-
"right"
|
|
683
|
-
]).isRequired,
|
|
684
|
-
vertical: P.default.oneOf(["bottom", "top"]).isRequired
|
|
685
|
-
}),
|
|
686
|
-
autoHideDuration: P.default.number,
|
|
687
|
-
children: P.default.element,
|
|
688
|
-
classes: P.default.object,
|
|
689
|
-
className: P.default.string,
|
|
690
|
-
disableWindowBlurListener: P.default.bool,
|
|
691
|
-
key: () => null,
|
|
692
|
-
message: P.default.node,
|
|
693
|
-
onBlur: P.default.func,
|
|
694
|
-
onClose: P.default.func,
|
|
695
|
-
onFocus: P.default.func,
|
|
696
|
-
onMouseEnter: P.default.func,
|
|
697
|
-
onMouseLeave: P.default.func,
|
|
698
|
-
open: P.default.bool,
|
|
699
|
-
resumeHideDuration: P.default.number,
|
|
700
|
-
slotProps: P.default.shape({
|
|
701
|
-
clickAwayListener: P.default.oneOfType([P.default.func, P.default.object]),
|
|
702
|
-
content: P.default.oneOfType([P.default.func, P.default.object]),
|
|
703
|
-
root: P.default.oneOfType([P.default.func, P.default.object]),
|
|
704
|
-
transition: P.default.oneOfType([P.default.func, P.default.object])
|
|
705
|
-
}),
|
|
706
|
-
slots: P.default.shape({
|
|
707
|
-
clickAwayListener: P.default.elementType,
|
|
708
|
-
content: P.default.elementType,
|
|
709
|
-
root: P.default.elementType,
|
|
710
|
-
transition: P.default.elementType
|
|
711
|
-
}),
|
|
712
|
-
sx: P.default.oneOfType([
|
|
713
|
-
P.default.arrayOf(P.default.oneOfType([
|
|
714
|
-
P.default.func,
|
|
715
|
-
P.default.object,
|
|
716
|
-
P.default.bool
|
|
717
|
-
])),
|
|
718
|
-
P.default.func,
|
|
719
|
-
P.default.object
|
|
720
|
-
]),
|
|
721
|
-
transitionDuration: P.default.oneOfType([P.default.number, P.default.shape({
|
|
722
|
-
appear: P.default.number,
|
|
723
|
-
enter: P.default.number,
|
|
724
|
-
exit: P.default.number
|
|
725
|
-
})])
|
|
726
|
-
});
|
|
727
|
-
//#endregion
|
|
728
|
-
//#region lib/s-snackbar-message/s-snackbar-message.tsx
|
|
729
|
-
var de = c(Z, {
|
|
730
|
-
name: "SSnackbarMessage",
|
|
731
|
-
slot: "Root",
|
|
732
|
-
shouldForwardProp: (e) => e !== "ownerState"
|
|
733
|
-
})({});
|
|
734
|
-
function fe(e, t) {
|
|
735
|
-
return typeof e == "function" ? e(t) : e;
|
|
736
|
-
}
|
|
737
|
-
var Q = A.forwardRef(function(e, t) {
|
|
738
|
-
let n = g({
|
|
739
|
-
props: e,
|
|
740
|
-
name: "SSnackbarMessage"
|
|
741
|
-
}), { anchorOrigin: r = {
|
|
742
|
-
vertical: "top",
|
|
743
|
-
horizontal: "center"
|
|
744
|
-
}, autoHideDuration: i = 1e4, message: a, onClose: o, onCloseButtonClick: s, open: c = !1, severity: l = "info", slotProps: u, slots: d, ...f } = n, p = {
|
|
745
|
-
...n,
|
|
746
|
-
open: c,
|
|
747
|
-
severity: l
|
|
748
|
-
}, { alert: m, ...h } = d ?? {}, { alert: v, ...y } = u ?? {}, b = m ?? q, { onClose: S, sx: C, ...w } = fe(v, p) ?? {}, T = x(m, w, p), E = (e) => {
|
|
749
|
-
s?.(e), !e.defaultPrevented && S?.(e);
|
|
750
|
-
};
|
|
751
|
-
return /* @__PURE__ */ M(de, {
|
|
752
|
-
...f,
|
|
753
|
-
anchorOrigin: r,
|
|
754
|
-
autoHideDuration: i,
|
|
755
|
-
onClose: o,
|
|
756
|
-
open: c,
|
|
757
|
-
ownerState: p,
|
|
758
|
-
ref: t,
|
|
759
|
-
slots: h,
|
|
760
|
-
slotProps: y,
|
|
761
|
-
children: /* @__PURE__ */ M(b, {
|
|
762
|
-
...T,
|
|
763
|
-
onClose: s || S ? E : void 0,
|
|
764
|
-
severity: l,
|
|
765
|
-
sx: [{
|
|
766
|
-
width: "100%",
|
|
767
|
-
"& .MuiAlert-action": { justifyContent: "center" }
|
|
768
|
-
}, ..._(C)],
|
|
769
|
-
children: a
|
|
770
|
-
})
|
|
771
|
-
});
|
|
772
|
-
});
|
|
773
|
-
Q.displayName = "SSnackbarMessage";
|
|
774
|
-
var $ = A.createContext(null);
|
|
775
|
-
function pe({ children: e }) {
|
|
776
|
-
let [t, n] = A.useState(null), [r, i] = A.useState(0), a = A.useCallback(() => n(null), []), o = A.useCallback((e) => {
|
|
777
|
-
i((e) => e + 1), n(e);
|
|
778
|
-
}, []), s = A.useMemo(() => ({
|
|
779
|
-
closeSnackbar: a,
|
|
780
|
-
open: t != null,
|
|
781
|
-
showSnackbar: o
|
|
782
|
-
}), [
|
|
783
|
-
a,
|
|
784
|
-
t,
|
|
785
|
-
o
|
|
786
|
-
]), { onClose: c, onCloseButtonClick: l, ...u } = t ?? {}, d = u, f = A.useCallback((e, t) => {
|
|
787
|
-
c?.(e, t), e?.defaultPrevented || a();
|
|
788
|
-
}, [a, c]), p = A.useCallback((e) => {
|
|
789
|
-
l?.(e), e.defaultPrevented || a();
|
|
790
|
-
}, [a, l]);
|
|
791
|
-
return /* @__PURE__ */ N($.Provider, {
|
|
792
|
-
value: s,
|
|
793
|
-
children: [t ? /* @__PURE__ */ j(Q, {
|
|
794
|
-
...d,
|
|
795
|
-
key: r,
|
|
796
|
-
open: !0,
|
|
797
|
-
onClose: f,
|
|
798
|
-
onCloseButtonClick: p
|
|
799
|
-
}) : null, e]
|
|
800
|
-
});
|
|
801
|
-
}
|
|
802
|
-
function me() {
|
|
803
|
-
let e = A.useContext($);
|
|
804
|
-
if (!e) throw Error("useSnackbarMessage must be used within a SnackbarMessageProvider");
|
|
805
|
-
return e;
|
|
806
|
-
}
|
|
807
|
-
//#endregion
|
|
808
|
-
export { pe as n, me as r, Q as t };
|