@solostylist/ui-kit 1.0.174 → 1.0.176
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-DhTFpzoh.js → ArrowUpward-CEeqSc-C.js} +2 -2
- package/dist/{Box-Ha0cQ4KO.js → Box-CE3rycd-.js} +5 -5
- package/dist/ButtonBase-C_YYB9Ry.js +1099 -0
- package/dist/{ChevronLeft-CBuFk2Fh.js → ChevronLeft-6gdh4lRt.js} +2 -2
- package/dist/{ChevronRight-CnDWPrOm.js → ChevronRight-CC3l-wPC.js} +2 -2
- package/dist/{Close-BRlEKA2Q.js → Close-DOHlPcFK.js} +2 -2
- package/dist/{ContentCopy-7nFBtjhs.js → ContentCopy-2xxDThyB.js} +2 -2
- package/dist/DefaultPropsProvider-sk0uWcA6.js +64 -0
- package/dist/{Download-UsLvGg3y.js → Download-Chao5NQl.js} +2 -2
- package/dist/{ExpandMore-DTWX_mHf.js → ExpandMore-DIGPB4Mj.js} +2 -2
- package/dist/{Favorite-DS5Gpq2s.js → Favorite-wp65zwWq.js} +2 -2
- package/dist/{Menu-CWq-a1Wz.js → Menu-DZYzE2Mg.js} +908 -906
- package/dist/{MenuItem-DY_qFSPR.js → MenuItem-BXiIhfBS.js} +26 -25
- package/dist/Paper-DnctZB5U.js +689 -0
- package/dist/{Select-DabtQlJT.js → Select-DY7XGVsv.js} +2152 -2115
- package/dist/{Stack-Cq2r2NmC.js → Stack-BScsuyQy.js} +6 -6
- package/dist/{Typography-C8jwvSWe.js → Typography-9Kg27dDw.js} +84 -86
- package/dist/{_commonjsHelpers-B4e78b8K.js → _commonjsHelpers-ByX85dGu.js} +18 -13
- package/dist/assets/s-overlay-scrollbar.css +1 -9
- package/dist/createSvgIcon-BKymXuBG.js +242 -0
- package/dist/{createTheme-3Wd3hHrj.js → createTheme-f5g1s6ww.js} +859 -906
- package/dist/defaultTheme-LSr-S9un.js +5 -0
- package/dist/entries/carousel.d.ts +10 -0
- package/dist/entries/carousel.js +4 -0
- package/dist/entries/chat.d.ts +9 -0
- package/dist/entries/chat.js +4 -0
- package/dist/entries/code.d.ts +9 -0
- package/dist/entries/code.js +4 -0
- package/dist/entries/core.d.ts +100 -0
- package/dist/entries/core.js +122 -0
- package/dist/entries/dates.d.ts +16 -0
- package/dist/entries/dates.js +12 -0
- package/dist/entries/dropzone.d.ts +9 -0
- package/dist/entries/dropzone.js +4 -0
- package/dist/entries/editor.d.ts +12 -0
- package/dist/entries/editor.js +4 -0
- package/dist/entries/gallery.d.ts +17 -0
- package/dist/entries/gallery.js +13 -0
- package/dist/entries/i18n.d.ts +13 -0
- package/dist/entries/i18n.js +8 -0
- package/dist/entries/motion.d.ts +29 -0
- package/dist/entries/motion.js +28 -0
- package/dist/entries/scrollbar.d.ts +9 -0
- package/dist/entries/scrollbar.js +4 -0
- package/dist/entries/stripe.d.ts +10 -0
- package/dist/entries/stripe.js +10 -0
- package/dist/extendSxProp-DitxZ8We.js +36 -0
- package/dist/hooks/index.js +8 -9
- package/dist/hooks/use-is-passed-position.js +10 -10
- package/dist/{index-BGvzecIA.js → index-D3G5Rwl-.js} +0 -7
- package/dist/{index-CfKHZ86U.js → index-DtYP8YE7.js} +12 -13
- package/dist/{jsx-runtime-OVHDjVDe.js → jsx-runtime-tc70JA_2.js} +108 -128
- package/dist/main.d.ts +29 -145
- package/dist/main.js +187 -187
- package/dist/mergeSlotProps-CuzBQdlp.js +62 -0
- package/dist/resolveProps-BDH0VJjn.js +39 -0
- package/dist/s-accordion/package.json +5 -5
- package/dist/s-accordion/s-accordion.js +374 -358
- package/dist/s-action-overlay/package.json +5 -5
- package/dist/s-action-overlay/s-action-overlay.js +64 -79
- package/dist/s-ai-tool-bar/package.json +5 -5
- package/dist/s-ai-tool-bar/s-ai-tool-bar.js +260 -275
- package/dist/s-autocomplete/s-autocomplete.js +19 -25
- package/dist/s-avatar/package.json +5 -5
- package/dist/s-avatar/s-avatar.js +14 -25
- package/dist/s-blur-text/package.json +5 -5
- package/dist/s-blur-text/s-blur-text.js +55 -59
- package/dist/s-breadcrumbs/package.json +5 -5
- package/dist/s-breadcrumbs/s-breadcrumbs.js +31 -39
- package/dist/s-button/package.json +5 -5
- package/dist/s-button/s-button.js +7 -15
- package/dist/s-button-link/s-button-link.js +28 -36
- package/dist/s-carousel/package.json +4 -4
- package/dist/s-carousel/s-carousel.js +267 -280
- package/dist/s-category-card/package.json +4 -4
- package/dist/s-category-card/s-category-card.js +60 -77
- package/dist/s-chat-input/package.json +5 -5
- package/dist/s-chat-input/s-chat-input.d.ts +4 -0
- package/dist/s-chat-input/s-chat-input.js +103 -109
- package/dist/s-chat-message/s-chat-message.js +111 -120
- package/dist/s-checkbox/s-checkbox.js +12 -20
- package/dist/s-chip/package.json +5 -5
- package/dist/s-chip/s-chip.js +7 -15
- package/dist/s-chips/s-chips.js +47 -56
- package/dist/s-code-block/package.json +5 -5
- package/dist/s-code-block/s-code-block.js +35 -43
- package/dist/s-comment-message/package.json +5 -5
- package/dist/s-comment-message/s-comment-message.js +90 -94
- package/dist/s-copyable-text/s-copyable-text.js +24 -32
- package/dist/s-countdown/s-count-box.js +42 -50
- package/dist/s-countdown/s-count-down.js +79 -107
- package/dist/s-data-table/s-data-table.js +374 -384
- package/dist/s-date-picker/s-date-picker.js +164 -164
- package/dist/s-datetime-picker/s-datetime-picker.js +1599 -1603
- package/dist/s-dialog/s-dialog.js +24 -32
- package/dist/s-dialog-confirm/s-dialog-confirm.js +46 -50
- package/dist/s-dialog-message/s-dialog-message.js +40 -44
- package/dist/s-empty/s-empty.js +6 -14
- package/dist/s-error/s-error.js +9 -17
- package/dist/s-error-layout/s-error-layout.js +38 -47
- package/dist/s-file-dropzone/s-file-dropzone.js +55 -64
- package/dist/s-file-icon/s-file-icon.js +9 -13
- package/dist/s-flex-box/s-flex-box.js +6 -14
- package/dist/s-form/s-form.js +11 -19
- package/dist/s-gallery/index.js +3 -33
- package/dist/s-gallery/s-gallery.js +91 -114
- package/dist/s-glow-button/s-glow-button.js +22 -26
- package/dist/s-gradient-icon/s-gradient-icon.js +49 -59
- package/dist/s-i18n-provider/s-i18n-provider.js +17 -25
- package/dist/s-icon-button/s-icon-button.js +6 -14
- package/dist/s-image-comparison/package.json +5 -5
- package/dist/s-image-comparison/s-image-comparison.js +48 -53
- package/dist/s-image-modal/package.json +5 -5
- package/dist/s-image-modal/s-image-modal.js +137 -150
- package/dist/s-item-not-found/s-item-not-found.js +13 -22
- package/dist/s-label/s-label.js +12 -20
- package/dist/s-language-switcher/s-language-switcher.js +119 -141
- package/dist/s-lazy-image/index.js +2 -10
- package/dist/s-lazy-image/s-lazy-image.js +33 -37
- package/dist/s-localization-provider/s-localization-provider.js +368 -380
- package/dist/s-moving-border/s-moving-border.js +52 -67
- package/dist/s-multi-select/s-multi-select.js +43 -51
- package/dist/s-no-ssr/s-no-ssr.js +13 -21
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +12 -16
- package/dist/s-pagination/s-pagination.js +13 -17
- package/dist/s-pixel-reveal/package.json +5 -5
- package/dist/s-pixel-reveal/s-pixel-reveal.js +92 -99
- package/dist/s-radial-pulse-animate/package.json +5 -5
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +40 -48
- package/dist/s-rating/package.json +5 -5
- package/dist/s-rating/s-rating.js +7 -15
- package/dist/s-review/package.json +5 -5
- package/dist/s-review/s-review.js +101 -106
- package/dist/s-scroll-reveal/package.json +5 -5
- package/dist/s-scroll-reveal/s-scroll-reveal.js +40 -48
- package/dist/s-scroll-to-top/package.json +5 -5
- package/dist/s-scroll-to-top/s-scroll-to-top.js +20 -30
- package/dist/s-scroll-velocity/package.json +5 -5
- package/dist/s-scroll-velocity/s-scroll-velocity.js +5 -19
- package/dist/s-scroll-velocity/scroll-velocity-container.js +18 -27
- package/dist/s-scroll-velocity/scroll-velocity-row.js +62 -71
- package/dist/s-select/s-select.js +67 -75
- package/dist/s-select-list/s-select-list.js +28 -32
- package/dist/s-skeleton/s-skeleton.js +20 -28
- package/dist/s-snackbar-message/s-snackbar-message.js +36 -40
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +31 -35
- package/dist/s-stripe/s-stripe-cvc.js +8 -12
- package/dist/s-stripe/s-stripe-expiry.js +8 -12
- package/dist/s-stripe/s-stripe-number.js +8 -12
- package/dist/s-stripe/s-stripe.d.ts +2 -2
- package/dist/s-stripe/s-stripe.js +17 -26
- package/dist/s-stripe/stripe-input.js +25 -29
- package/dist/s-tabs/package.json +3 -3
- package/dist/s-tabs/s-tab-panel.js +17 -25
- package/dist/s-tabs/s-tab.js +5 -9
- package/dist/s-tabs/s-tabs.js +19 -27
- package/dist/s-text-editor/s-text-editor-toolbar.js +73 -88
- package/dist/s-text-editor/s-text-editor.js +33 -45
- package/dist/s-text-field/s-text-field.js +31 -40
- package/dist/s-text-shimmer/package.json +4 -4
- package/dist/s-text-shimmer/s-text-shimmer.js +19 -27
- package/dist/s-text-truncation/s-text-truncation.js +24 -32
- package/dist/s-theme-demo/package.json +5 -5
- package/dist/s-theme-demo/s-theme-demo.js +219 -234
- package/dist/s-theme-provider/s-theme-provider.js +37 -45
- package/dist/s-theme-switch/package.json +4 -4
- package/dist/s-theme-switch/s-theme-switch.js +19 -23
- package/dist/s-tip/s-tip.js +14 -22
- package/dist/s-two-pane-layout/index.js +2 -10
- package/dist/s-two-pane-layout/s-two-pane-layout.js +47 -55
- package/dist/s-typewriter-text/package.json +5 -5
- package/dist/s-typewriter-text/s-typewriter-text.js +27 -35
- package/dist/s-zoom-image/index.js +2 -10
- package/dist/s-zoom-image/package.json +5 -5
- package/dist/s-zoom-image/s-zoom-image.js +53 -62
- package/dist/styled-B0KflPi-.js +203 -0
- package/dist/theme/components/alert.d.ts +484 -264
- package/dist/theme/components/avatar.js +2 -2
- package/dist/theme/components/button.d.ts +726 -396
- package/dist/theme/components/chip.js +2 -2
- package/dist/theme/components/components.js +14 -12
- package/dist/theme/components/icon-button.d.ts +6191 -0
- package/dist/theme/components/icon-button.js +90 -0
- package/dist/theme/customizations/data-display.js +1 -1
- package/dist/theme/customizations/inputs.js +2 -2
- package/dist/theme/customizations/navigation.js +2 -2
- package/dist/theme/theme-primitives.d.ts +8 -246
- package/dist/theme/theme-primitives.js +76 -87
- package/dist/{typographyClasses-DDyl9mok.js → typographyClasses-C7fhAsUD.js} +4 -4
- package/dist/{useMobilePicker-C1RZZUWr.js → useMobilePicker-C4AYe0Ch.js} +11249 -11231
- package/dist/{useTheme-B5czKfC4.js → useTheme-CtdhfT4P.js} +1 -1
- package/dist/{useThemeProps-DqA5BinV.js → useThemeProps-_apS-Aua.js} +2 -2
- package/dist/utils/dayjs.js +7 -7
- package/dist/utils/logger.js +29 -32
- package/dist/{warning-BCwEnWrE.js → warning-DnPRVtW6.js} +4 -4
- package/package.json +240 -81
- package/README.md +0 -13
- package/dist/ButtonBase-DfTfJ_ou.js +0 -1105
- package/dist/DefaultPropsProvider-CaCsvQaq.js +0 -78
- package/dist/Paper-hkbPWyBT.js +0 -553
- package/dist/createSvgIcon-DxwgGAVe.js +0 -247
- package/dist/defaultTheme-fEi1x1Gb.js +0 -5
- package/dist/extendSxProp-BKWjdW12.js +0 -37
- package/dist/mergeSlotProps-Dl_rJtoN.js +0 -62
- package/dist/resolveProps-61uUKnlS.js +0 -52
- package/dist/styled-B0Z4EDy9.js +0 -206
|
@@ -0,0 +1,689 @@
|
|
|
1
|
+
import { _ as q } from "./objectWithoutPropertiesLoose-DiWPeE4c.js";
|
|
2
|
+
import { _ as V, T as Y, d as G } from "./ButtonBase-C_YYB9Ry.js";
|
|
3
|
+
import { P as o, l as I } from "./createTheme-f5g1s6ww.js";
|
|
4
|
+
import * as F from "react";
|
|
5
|
+
import N from "react";
|
|
6
|
+
import P from "react-dom";
|
|
7
|
+
import { c as W } from "./clsx-OuTLNxxd.js";
|
|
8
|
+
import { d as z } from "./defaultTheme-LSr-S9un.js";
|
|
9
|
+
import { T as X } from "./identifier-BKLqN993.js";
|
|
10
|
+
import { u as H } from "./useTheme-CtdhfT4P.js";
|
|
11
|
+
import { j as Z } from "./jsx-runtime-tc70JA_2.js";
|
|
12
|
+
import { s as B } from "./styled-B0KflPi-.js";
|
|
13
|
+
import { u as J, c as K, m as Q } from "./DefaultPropsProvider-sk0uWcA6.js";
|
|
14
|
+
import { g as j, a as $ } from "./colorManipulator-ep5lERxB.js";
|
|
15
|
+
import { g as ee } from "./generateUtilityClasses-BtVDwGrk.js";
|
|
16
|
+
function te() {
|
|
17
|
+
const r = H(z);
|
|
18
|
+
return process.env.NODE_ENV !== "production" && F.useDebugValue(r), r[X] || r;
|
|
19
|
+
}
|
|
20
|
+
var g = { exports: {} }, f = {};
|
|
21
|
+
var M;
|
|
22
|
+
function ne() {
|
|
23
|
+
if (M) return f;
|
|
24
|
+
M = 1;
|
|
25
|
+
var r = /* @__PURE__ */ Symbol.for("react.transitional.element"), u = /* @__PURE__ */ Symbol.for("react.portal"), s = /* @__PURE__ */ Symbol.for("react.fragment"), i = /* @__PURE__ */ Symbol.for("react.strict_mode"), n = /* @__PURE__ */ Symbol.for("react.profiler"), t = /* @__PURE__ */ Symbol.for("react.consumer"), a = /* @__PURE__ */ Symbol.for("react.context"), l = /* @__PURE__ */ Symbol.for("react.forward_ref"), p = /* @__PURE__ */ Symbol.for("react.suspense"), d = /* @__PURE__ */ Symbol.for("react.suspense_list"), E = /* @__PURE__ */ Symbol.for("react.memo"), m = /* @__PURE__ */ Symbol.for("react.lazy"), T = /* @__PURE__ */ Symbol.for("react.view_transition"), b = /* @__PURE__ */ Symbol.for("react.client.reference");
|
|
26
|
+
function v(e) {
|
|
27
|
+
if (typeof e == "object" && e !== null) {
|
|
28
|
+
var R = e.$$typeof;
|
|
29
|
+
switch (R) {
|
|
30
|
+
case r:
|
|
31
|
+
switch (e = e.type, e) {
|
|
32
|
+
case s:
|
|
33
|
+
case n:
|
|
34
|
+
case i:
|
|
35
|
+
case p:
|
|
36
|
+
case d:
|
|
37
|
+
case T:
|
|
38
|
+
return e;
|
|
39
|
+
default:
|
|
40
|
+
switch (e = e && e.$$typeof, e) {
|
|
41
|
+
case a:
|
|
42
|
+
case l:
|
|
43
|
+
case m:
|
|
44
|
+
case E:
|
|
45
|
+
return e;
|
|
46
|
+
case t:
|
|
47
|
+
return e;
|
|
48
|
+
default:
|
|
49
|
+
return R;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
case u:
|
|
53
|
+
return R;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return f.ContextConsumer = t, f.ContextProvider = a, f.Element = r, f.ForwardRef = l, f.Fragment = s, f.Lazy = m, f.Memo = E, f.Portal = u, f.Profiler = n, f.StrictMode = i, f.Suspense = p, f.SuspenseList = d, f.isContextConsumer = function(e) {
|
|
58
|
+
return v(e) === t;
|
|
59
|
+
}, f.isContextProvider = function(e) {
|
|
60
|
+
return v(e) === a;
|
|
61
|
+
}, f.isElement = function(e) {
|
|
62
|
+
return typeof e == "object" && e !== null && e.$$typeof === r;
|
|
63
|
+
}, f.isForwardRef = function(e) {
|
|
64
|
+
return v(e) === l;
|
|
65
|
+
}, f.isFragment = function(e) {
|
|
66
|
+
return v(e) === s;
|
|
67
|
+
}, f.isLazy = function(e) {
|
|
68
|
+
return v(e) === m;
|
|
69
|
+
}, f.isMemo = function(e) {
|
|
70
|
+
return v(e) === E;
|
|
71
|
+
}, f.isPortal = function(e) {
|
|
72
|
+
return v(e) === u;
|
|
73
|
+
}, f.isProfiler = function(e) {
|
|
74
|
+
return v(e) === n;
|
|
75
|
+
}, f.isStrictMode = function(e) {
|
|
76
|
+
return v(e) === i;
|
|
77
|
+
}, f.isSuspense = function(e) {
|
|
78
|
+
return v(e) === p;
|
|
79
|
+
}, f.isSuspenseList = function(e) {
|
|
80
|
+
return v(e) === d;
|
|
81
|
+
}, f.isValidElementType = function(e) {
|
|
82
|
+
return typeof e == "string" || typeof e == "function" || e === s || e === n || e === i || e === p || e === d || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === E || e.$$typeof === a || e.$$typeof === t || e.$$typeof === l || e.$$typeof === b || e.getModuleId !== void 0);
|
|
83
|
+
}, f.typeOf = v, f;
|
|
84
|
+
}
|
|
85
|
+
var c = {};
|
|
86
|
+
var D;
|
|
87
|
+
function re() {
|
|
88
|
+
return D || (D = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
89
|
+
function r(e) {
|
|
90
|
+
if (typeof e == "object" && e !== null) {
|
|
91
|
+
var R = e.$$typeof;
|
|
92
|
+
switch (R) {
|
|
93
|
+
case u:
|
|
94
|
+
switch (e = e.type, e) {
|
|
95
|
+
case i:
|
|
96
|
+
case t:
|
|
97
|
+
case n:
|
|
98
|
+
case d:
|
|
99
|
+
case E:
|
|
100
|
+
case b:
|
|
101
|
+
return e;
|
|
102
|
+
default:
|
|
103
|
+
switch (e = e && e.$$typeof, e) {
|
|
104
|
+
case l:
|
|
105
|
+
case p:
|
|
106
|
+
case T:
|
|
107
|
+
case m:
|
|
108
|
+
return e;
|
|
109
|
+
case a:
|
|
110
|
+
return e;
|
|
111
|
+
default:
|
|
112
|
+
return R;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
case s:
|
|
116
|
+
return R;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
var u = /* @__PURE__ */ Symbol.for("react.transitional.element"), s = /* @__PURE__ */ Symbol.for("react.portal"), i = /* @__PURE__ */ Symbol.for("react.fragment"), n = /* @__PURE__ */ Symbol.for("react.strict_mode"), t = /* @__PURE__ */ Symbol.for("react.profiler"), a = /* @__PURE__ */ Symbol.for("react.consumer"), l = /* @__PURE__ */ Symbol.for("react.context"), p = /* @__PURE__ */ Symbol.for("react.forward_ref"), d = /* @__PURE__ */ Symbol.for("react.suspense"), E = /* @__PURE__ */ Symbol.for("react.suspense_list"), m = /* @__PURE__ */ Symbol.for("react.memo"), T = /* @__PURE__ */ Symbol.for("react.lazy"), b = /* @__PURE__ */ Symbol.for("react.view_transition"), v = /* @__PURE__ */ Symbol.for("react.client.reference");
|
|
121
|
+
c.ContextConsumer = a, c.ContextProvider = l, c.Element = u, c.ForwardRef = p, c.Fragment = i, c.Lazy = T, c.Memo = m, c.Portal = s, c.Profiler = t, c.StrictMode = n, c.Suspense = d, c.SuspenseList = E, c.isContextConsumer = function(e) {
|
|
122
|
+
return r(e) === a;
|
|
123
|
+
}, c.isContextProvider = function(e) {
|
|
124
|
+
return r(e) === l;
|
|
125
|
+
}, c.isElement = function(e) {
|
|
126
|
+
return typeof e == "object" && e !== null && e.$$typeof === u;
|
|
127
|
+
}, c.isForwardRef = function(e) {
|
|
128
|
+
return r(e) === p;
|
|
129
|
+
}, c.isFragment = function(e) {
|
|
130
|
+
return r(e) === i;
|
|
131
|
+
}, c.isLazy = function(e) {
|
|
132
|
+
return r(e) === T;
|
|
133
|
+
}, c.isMemo = function(e) {
|
|
134
|
+
return r(e) === m;
|
|
135
|
+
}, c.isPortal = function(e) {
|
|
136
|
+
return r(e) === s;
|
|
137
|
+
}, c.isProfiler = function(e) {
|
|
138
|
+
return r(e) === t;
|
|
139
|
+
}, c.isStrictMode = function(e) {
|
|
140
|
+
return r(e) === n;
|
|
141
|
+
}, c.isSuspense = function(e) {
|
|
142
|
+
return r(e) === d;
|
|
143
|
+
}, c.isSuspenseList = function(e) {
|
|
144
|
+
return r(e) === E;
|
|
145
|
+
}, c.isValidElementType = function(e) {
|
|
146
|
+
return typeof e == "string" || typeof e == "function" || e === i || e === t || e === n || e === d || e === E || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === m || e.$$typeof === l || e.$$typeof === a || e.$$typeof === p || e.$$typeof === v || e.getModuleId !== void 0);
|
|
147
|
+
}, c.typeOf = r;
|
|
148
|
+
})()), c;
|
|
149
|
+
}
|
|
150
|
+
var w;
|
|
151
|
+
function oe() {
|
|
152
|
+
return w || (w = 1, process.env.NODE_ENV === "production" ? g.exports = /* @__PURE__ */ ne() : g.exports = /* @__PURE__ */ re()), g.exports;
|
|
153
|
+
}
|
|
154
|
+
var ge = /* @__PURE__ */ oe();
|
|
155
|
+
const L = {
|
|
156
|
+
disabled: !1
|
|
157
|
+
};
|
|
158
|
+
var ie = process.env.NODE_ENV !== "production" ? o.oneOfType([o.number, o.shape({
|
|
159
|
+
enter: o.number,
|
|
160
|
+
exit: o.number,
|
|
161
|
+
appear: o.number
|
|
162
|
+
}).isRequired]) : null, be = process.env.NODE_ENV !== "production" ? o.oneOfType([o.string, o.shape({
|
|
163
|
+
enter: o.string,
|
|
164
|
+
exit: o.string,
|
|
165
|
+
active: o.string
|
|
166
|
+
}), o.shape({
|
|
167
|
+
enter: o.string,
|
|
168
|
+
enterDone: o.string,
|
|
169
|
+
enterActive: o.string,
|
|
170
|
+
exit: o.string,
|
|
171
|
+
exitDone: o.string,
|
|
172
|
+
exitActive: o.string
|
|
173
|
+
})]) : null, ae = function(u) {
|
|
174
|
+
return u.scrollTop;
|
|
175
|
+
}, C = "unmounted", _ = "exited", x = "entering", y = "entered", O = "exiting", h = /* @__PURE__ */ (function(r) {
|
|
176
|
+
V(u, r);
|
|
177
|
+
function u(i, n) {
|
|
178
|
+
var t;
|
|
179
|
+
t = r.call(this, i, n) || this;
|
|
180
|
+
var a = n, l = a && !a.isMounting ? i.enter : i.appear, p;
|
|
181
|
+
return t.appearStatus = null, i.in ? l ? (p = _, t.appearStatus = x) : p = y : i.unmountOnExit || i.mountOnEnter ? p = C : p = _, t.state = {
|
|
182
|
+
status: p
|
|
183
|
+
}, t.nextCallback = null, t;
|
|
184
|
+
}
|
|
185
|
+
u.getDerivedStateFromProps = function(n, t) {
|
|
186
|
+
var a = n.in;
|
|
187
|
+
return a && t.status === C ? {
|
|
188
|
+
status: _
|
|
189
|
+
} : null;
|
|
190
|
+
};
|
|
191
|
+
var s = u.prototype;
|
|
192
|
+
return s.componentDidMount = function() {
|
|
193
|
+
this.updateStatus(!0, this.appearStatus);
|
|
194
|
+
}, s.componentDidUpdate = function(n) {
|
|
195
|
+
var t = null;
|
|
196
|
+
if (n !== this.props) {
|
|
197
|
+
var a = this.state.status;
|
|
198
|
+
this.props.in ? a !== x && a !== y && (t = x) : (a === x || a === y) && (t = O);
|
|
199
|
+
}
|
|
200
|
+
this.updateStatus(!1, t);
|
|
201
|
+
}, s.componentWillUnmount = function() {
|
|
202
|
+
this.cancelNextCallback();
|
|
203
|
+
}, s.getTimeouts = function() {
|
|
204
|
+
var n = this.props.timeout, t, a, l;
|
|
205
|
+
return t = a = l = n, n != null && typeof n != "number" && (t = n.exit, a = n.enter, l = n.appear !== void 0 ? n.appear : a), {
|
|
206
|
+
exit: t,
|
|
207
|
+
enter: a,
|
|
208
|
+
appear: l
|
|
209
|
+
};
|
|
210
|
+
}, s.updateStatus = function(n, t) {
|
|
211
|
+
if (n === void 0 && (n = !1), t !== null)
|
|
212
|
+
if (this.cancelNextCallback(), t === x) {
|
|
213
|
+
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
214
|
+
var a = this.props.nodeRef ? this.props.nodeRef.current : P.findDOMNode(this);
|
|
215
|
+
a && ae(a);
|
|
216
|
+
}
|
|
217
|
+
this.performEnter(n);
|
|
218
|
+
} else
|
|
219
|
+
this.performExit();
|
|
220
|
+
else this.props.unmountOnExit && this.state.status === _ && this.setState({
|
|
221
|
+
status: C
|
|
222
|
+
});
|
|
223
|
+
}, s.performEnter = function(n) {
|
|
224
|
+
var t = this, a = this.props.enter, l = this.context ? this.context.isMounting : n, p = this.props.nodeRef ? [l] : [P.findDOMNode(this), l], d = p[0], E = p[1], m = this.getTimeouts(), T = l ? m.appear : m.enter;
|
|
225
|
+
if (!n && !a || L.disabled) {
|
|
226
|
+
this.safeSetState({
|
|
227
|
+
status: y
|
|
228
|
+
}, function() {
|
|
229
|
+
t.props.onEntered(d);
|
|
230
|
+
});
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
this.props.onEnter(d, E), this.safeSetState({
|
|
234
|
+
status: x
|
|
235
|
+
}, function() {
|
|
236
|
+
t.props.onEntering(d, E), t.onTransitionEnd(T, function() {
|
|
237
|
+
t.safeSetState({
|
|
238
|
+
status: y
|
|
239
|
+
}, function() {
|
|
240
|
+
t.props.onEntered(d, E);
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
}, s.performExit = function() {
|
|
245
|
+
var n = this, t = this.props.exit, a = this.getTimeouts(), l = this.props.nodeRef ? void 0 : P.findDOMNode(this);
|
|
246
|
+
if (!t || L.disabled) {
|
|
247
|
+
this.safeSetState({
|
|
248
|
+
status: _
|
|
249
|
+
}, function() {
|
|
250
|
+
n.props.onExited(l);
|
|
251
|
+
});
|
|
252
|
+
return;
|
|
253
|
+
}
|
|
254
|
+
this.props.onExit(l), this.safeSetState({
|
|
255
|
+
status: O
|
|
256
|
+
}, function() {
|
|
257
|
+
n.props.onExiting(l), n.onTransitionEnd(a.exit, function() {
|
|
258
|
+
n.safeSetState({
|
|
259
|
+
status: _
|
|
260
|
+
}, function() {
|
|
261
|
+
n.props.onExited(l);
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
});
|
|
265
|
+
}, s.cancelNextCallback = function() {
|
|
266
|
+
this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
267
|
+
}, s.safeSetState = function(n, t) {
|
|
268
|
+
t = this.setNextCallback(t), this.setState(n, t);
|
|
269
|
+
}, s.setNextCallback = function(n) {
|
|
270
|
+
var t = this, a = !0;
|
|
271
|
+
return this.nextCallback = function(l) {
|
|
272
|
+
a && (a = !1, t.nextCallback = null, n(l));
|
|
273
|
+
}, this.nextCallback.cancel = function() {
|
|
274
|
+
a = !1;
|
|
275
|
+
}, this.nextCallback;
|
|
276
|
+
}, s.onTransitionEnd = function(n, t) {
|
|
277
|
+
this.setNextCallback(t);
|
|
278
|
+
var a = this.props.nodeRef ? this.props.nodeRef.current : P.findDOMNode(this), l = n == null && !this.props.addEndListener;
|
|
279
|
+
if (!a || l) {
|
|
280
|
+
setTimeout(this.nextCallback, 0);
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
if (this.props.addEndListener) {
|
|
284
|
+
var p = this.props.nodeRef ? [this.nextCallback] : [a, this.nextCallback], d = p[0], E = p[1];
|
|
285
|
+
this.props.addEndListener(d, E);
|
|
286
|
+
}
|
|
287
|
+
n != null && setTimeout(this.nextCallback, n);
|
|
288
|
+
}, s.render = function() {
|
|
289
|
+
var n = this.state.status;
|
|
290
|
+
if (n === C)
|
|
291
|
+
return null;
|
|
292
|
+
var t = this.props, a = t.children;
|
|
293
|
+
t.in, t.mountOnEnter, t.unmountOnExit, t.appear, t.enter, t.exit, t.timeout, t.addEndListener, t.onEnter, t.onEntering, t.onEntered, t.onExit, t.onExiting, t.onExited, t.nodeRef;
|
|
294
|
+
var l = q(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
295
|
+
return (
|
|
296
|
+
// allows for nested Transitions
|
|
297
|
+
/* @__PURE__ */ N.createElement(Y.Provider, {
|
|
298
|
+
value: null
|
|
299
|
+
}, typeof a == "function" ? a(n, l) : N.cloneElement(N.Children.only(a), l))
|
|
300
|
+
);
|
|
301
|
+
}, u;
|
|
302
|
+
})(N.Component);
|
|
303
|
+
h.contextType = Y;
|
|
304
|
+
h.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
305
|
+
/**
|
|
306
|
+
* A React reference to DOM element that need to transition:
|
|
307
|
+
* https://stackoverflow.com/a/51127130/4671932
|
|
308
|
+
*
|
|
309
|
+
* - When `nodeRef` prop is used, `node` is not passed to callback functions
|
|
310
|
+
* (e.g. `onEnter`) because user already has direct access to the node.
|
|
311
|
+
* - When changing `key` prop of `Transition` in a `TransitionGroup` a new
|
|
312
|
+
* `nodeRef` need to be provided to `Transition` with changed `key` prop
|
|
313
|
+
* (see
|
|
314
|
+
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
315
|
+
*/
|
|
316
|
+
nodeRef: o.shape({
|
|
317
|
+
current: typeof Element > "u" ? o.any : function(r, u, s, i, n, t) {
|
|
318
|
+
var a = r[u];
|
|
319
|
+
return o.instanceOf(a && "ownerDocument" in a ? a.ownerDocument.defaultView.Element : Element)(r, u, s, i, n, t);
|
|
320
|
+
}
|
|
321
|
+
}),
|
|
322
|
+
/**
|
|
323
|
+
* A `function` child can be used instead of a React element. This function is
|
|
324
|
+
* called with the current transition status (`'entering'`, `'entered'`,
|
|
325
|
+
* `'exiting'`, `'exited'`), which can be used to apply context
|
|
326
|
+
* specific props to a component.
|
|
327
|
+
*
|
|
328
|
+
* ```jsx
|
|
329
|
+
* <Transition in={this.state.in} timeout={150}>
|
|
330
|
+
* {state => (
|
|
331
|
+
* <MyComponent className={`fade fade-${state}`} />
|
|
332
|
+
* )}
|
|
333
|
+
* </Transition>
|
|
334
|
+
* ```
|
|
335
|
+
*/
|
|
336
|
+
children: o.oneOfType([o.func.isRequired, o.element.isRequired]).isRequired,
|
|
337
|
+
/**
|
|
338
|
+
* Show the component; triggers the enter or exit states
|
|
339
|
+
*/
|
|
340
|
+
in: o.bool,
|
|
341
|
+
/**
|
|
342
|
+
* By default the child component is mounted immediately along with
|
|
343
|
+
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
344
|
+
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
345
|
+
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
346
|
+
*/
|
|
347
|
+
mountOnEnter: o.bool,
|
|
348
|
+
/**
|
|
349
|
+
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
350
|
+
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
351
|
+
*/
|
|
352
|
+
unmountOnExit: o.bool,
|
|
353
|
+
/**
|
|
354
|
+
* By default the child component does not perform the enter transition when
|
|
355
|
+
* it first mounts, regardless of the value of `in`. If you want this
|
|
356
|
+
* behavior, set both `appear` and `in` to `true`.
|
|
357
|
+
*
|
|
358
|
+
* > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
|
|
359
|
+
* > only adds an additional enter transition. However, in the
|
|
360
|
+
* > `<CSSTransition>` component that first enter transition does result in
|
|
361
|
+
* > additional `.appear-*` classes, that way you can choose to style it
|
|
362
|
+
* > differently.
|
|
363
|
+
*/
|
|
364
|
+
appear: o.bool,
|
|
365
|
+
/**
|
|
366
|
+
* Enable or disable enter transitions.
|
|
367
|
+
*/
|
|
368
|
+
enter: o.bool,
|
|
369
|
+
/**
|
|
370
|
+
* Enable or disable exit transitions.
|
|
371
|
+
*/
|
|
372
|
+
exit: o.bool,
|
|
373
|
+
/**
|
|
374
|
+
* The duration of the transition, in milliseconds.
|
|
375
|
+
* Required unless `addEndListener` is provided.
|
|
376
|
+
*
|
|
377
|
+
* You may specify a single timeout for all transitions:
|
|
378
|
+
*
|
|
379
|
+
* ```jsx
|
|
380
|
+
* timeout={500}
|
|
381
|
+
* ```
|
|
382
|
+
*
|
|
383
|
+
* or individually:
|
|
384
|
+
*
|
|
385
|
+
* ```jsx
|
|
386
|
+
* timeout={{
|
|
387
|
+
* appear: 500,
|
|
388
|
+
* enter: 300,
|
|
389
|
+
* exit: 500,
|
|
390
|
+
* }}
|
|
391
|
+
* ```
|
|
392
|
+
*
|
|
393
|
+
* - `appear` defaults to the value of `enter`
|
|
394
|
+
* - `enter` defaults to `0`
|
|
395
|
+
* - `exit` defaults to `0`
|
|
396
|
+
*
|
|
397
|
+
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
398
|
+
*/
|
|
399
|
+
timeout: function(u) {
|
|
400
|
+
var s = ie;
|
|
401
|
+
u.addEndListener || (s = s.isRequired);
|
|
402
|
+
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), t = 1; t < i; t++)
|
|
403
|
+
n[t - 1] = arguments[t];
|
|
404
|
+
return s.apply(void 0, [u].concat(n));
|
|
405
|
+
},
|
|
406
|
+
/**
|
|
407
|
+
* Add a custom transition end trigger. Called with the transitioning
|
|
408
|
+
* DOM node and a `done` callback. Allows for more fine grained transition end
|
|
409
|
+
* logic. Timeouts are still used as a fallback if provided.
|
|
410
|
+
*
|
|
411
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
412
|
+
*
|
|
413
|
+
* ```jsx
|
|
414
|
+
* addEndListener={(node, done) => {
|
|
415
|
+
* // use the css transitionend event to mark the finish of a transition
|
|
416
|
+
* node.addEventListener('transitionend', done, false);
|
|
417
|
+
* }}
|
|
418
|
+
* ```
|
|
419
|
+
*/
|
|
420
|
+
addEndListener: o.func,
|
|
421
|
+
/**
|
|
422
|
+
* Callback fired before the "entering" status is applied. An extra parameter
|
|
423
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
424
|
+
*
|
|
425
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
426
|
+
*
|
|
427
|
+
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
428
|
+
*/
|
|
429
|
+
onEnter: o.func,
|
|
430
|
+
/**
|
|
431
|
+
* Callback fired after the "entering" status is applied. An extra parameter
|
|
432
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
433
|
+
*
|
|
434
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
435
|
+
*
|
|
436
|
+
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
437
|
+
*/
|
|
438
|
+
onEntering: o.func,
|
|
439
|
+
/**
|
|
440
|
+
* Callback fired after the "entered" status is applied. An extra parameter
|
|
441
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
442
|
+
*
|
|
443
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
444
|
+
*
|
|
445
|
+
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
446
|
+
*/
|
|
447
|
+
onEntered: o.func,
|
|
448
|
+
/**
|
|
449
|
+
* Callback fired before the "exiting" status is applied.
|
|
450
|
+
*
|
|
451
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
452
|
+
*
|
|
453
|
+
* @type Function(node: HtmlElement) -> void
|
|
454
|
+
*/
|
|
455
|
+
onExit: o.func,
|
|
456
|
+
/**
|
|
457
|
+
* Callback fired after the "exiting" status is applied.
|
|
458
|
+
*
|
|
459
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
460
|
+
*
|
|
461
|
+
* @type Function(node: HtmlElement) -> void
|
|
462
|
+
*/
|
|
463
|
+
onExiting: o.func,
|
|
464
|
+
/**
|
|
465
|
+
* Callback fired after the "exited" status is applied.
|
|
466
|
+
*
|
|
467
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
468
|
+
*
|
|
469
|
+
* @type Function(node: HtmlElement) -> void
|
|
470
|
+
*/
|
|
471
|
+
onExited: o.func
|
|
472
|
+
} : {};
|
|
473
|
+
function S() {
|
|
474
|
+
}
|
|
475
|
+
h.defaultProps = {
|
|
476
|
+
in: !1,
|
|
477
|
+
mountOnEnter: !1,
|
|
478
|
+
unmountOnExit: !1,
|
|
479
|
+
appear: !1,
|
|
480
|
+
enter: !0,
|
|
481
|
+
exit: !0,
|
|
482
|
+
onEnter: S,
|
|
483
|
+
onEntering: S,
|
|
484
|
+
onEntered: S,
|
|
485
|
+
onExit: S,
|
|
486
|
+
onExiting: S,
|
|
487
|
+
onExited: S
|
|
488
|
+
};
|
|
489
|
+
h.UNMOUNTED = C;
|
|
490
|
+
h.EXITED = _;
|
|
491
|
+
h.ENTERING = x;
|
|
492
|
+
h.ENTERED = y;
|
|
493
|
+
h.EXITING = O;
|
|
494
|
+
const Oe = (r) => r.scrollTop;
|
|
495
|
+
function Ae(r, u) {
|
|
496
|
+
const {
|
|
497
|
+
timeout: s,
|
|
498
|
+
easing: i,
|
|
499
|
+
style: n = {}
|
|
500
|
+
} = r;
|
|
501
|
+
return {
|
|
502
|
+
duration: n.transitionDuration ?? (typeof s == "number" ? s : s[u.mode] || 0),
|
|
503
|
+
easing: n.transitionTimingFunction ?? (typeof i == "object" ? i[u.mode] : i),
|
|
504
|
+
delay: n.transitionDelay
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
function se(r) {
|
|
508
|
+
const u = typeof r;
|
|
509
|
+
switch (u) {
|
|
510
|
+
case "number":
|
|
511
|
+
return Number.isNaN(r) ? "NaN" : Number.isFinite(r) ? r !== Math.floor(r) ? "float" : "number" : "Infinity";
|
|
512
|
+
case "object":
|
|
513
|
+
return r === null ? "null" : r.constructor.name;
|
|
514
|
+
default:
|
|
515
|
+
return u;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
function U(r, u, s, i) {
|
|
519
|
+
const n = r[u];
|
|
520
|
+
if (n == null || !Number.isInteger(n)) {
|
|
521
|
+
const t = se(n);
|
|
522
|
+
return new RangeError(`Invalid ${i} \`${u}\` of type \`${t}\` supplied to \`${s}\`, expected \`integer\`.`);
|
|
523
|
+
}
|
|
524
|
+
return null;
|
|
525
|
+
}
|
|
526
|
+
function k(r, u, s, i) {
|
|
527
|
+
return r[u] === void 0 ? null : U(r, u, s, i);
|
|
528
|
+
}
|
|
529
|
+
function A() {
|
|
530
|
+
return null;
|
|
531
|
+
}
|
|
532
|
+
k.isRequired = U;
|
|
533
|
+
A.isRequired = A;
|
|
534
|
+
const ue = process.env.NODE_ENV === "production" ? A : k;
|
|
535
|
+
function le(r) {
|
|
536
|
+
return j("MuiPaper", r);
|
|
537
|
+
}
|
|
538
|
+
ee("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
|
|
539
|
+
const fe = (r) => {
|
|
540
|
+
const {
|
|
541
|
+
square: u,
|
|
542
|
+
elevation: s,
|
|
543
|
+
variant: i,
|
|
544
|
+
classes: n
|
|
545
|
+
} = r, t = {
|
|
546
|
+
root: ["root", i, !u && "rounded", i === "elevation" && `elevation${s}`]
|
|
547
|
+
};
|
|
548
|
+
return K(t, le, n);
|
|
549
|
+
}, ce = B("div", {
|
|
550
|
+
name: "MuiPaper",
|
|
551
|
+
slot: "Root",
|
|
552
|
+
overridesResolver: (r, u) => {
|
|
553
|
+
const {
|
|
554
|
+
ownerState: s
|
|
555
|
+
} = r;
|
|
556
|
+
return [u.root, u[s.variant], !s.square && u.rounded, s.variant === "elevation" && u[`elevation${s.elevation}`]];
|
|
557
|
+
}
|
|
558
|
+
})(Q(({
|
|
559
|
+
theme: r
|
|
560
|
+
}) => ({
|
|
561
|
+
backgroundColor: (r.vars || r).palette.background.paper,
|
|
562
|
+
color: (r.vars || r).palette.text.primary,
|
|
563
|
+
transition: r.transitions.create("box-shadow"),
|
|
564
|
+
variants: [{
|
|
565
|
+
props: ({
|
|
566
|
+
ownerState: u
|
|
567
|
+
}) => !u.square,
|
|
568
|
+
style: {
|
|
569
|
+
borderRadius: r.shape.borderRadius
|
|
570
|
+
}
|
|
571
|
+
}, {
|
|
572
|
+
props: {
|
|
573
|
+
variant: "outlined"
|
|
574
|
+
},
|
|
575
|
+
style: {
|
|
576
|
+
border: `1px solid ${(r.vars || r).palette.divider}`
|
|
577
|
+
}
|
|
578
|
+
}, {
|
|
579
|
+
props: {
|
|
580
|
+
variant: "elevation"
|
|
581
|
+
},
|
|
582
|
+
style: {
|
|
583
|
+
boxShadow: "var(--Paper-shadow)",
|
|
584
|
+
backgroundImage: "var(--Paper-overlay)"
|
|
585
|
+
}
|
|
586
|
+
}]
|
|
587
|
+
}))), pe = /* @__PURE__ */ F.forwardRef(function(u, s) {
|
|
588
|
+
const i = J({
|
|
589
|
+
props: u,
|
|
590
|
+
name: "MuiPaper"
|
|
591
|
+
}), n = te(), {
|
|
592
|
+
className: t,
|
|
593
|
+
component: a = "div",
|
|
594
|
+
elevation: l = 1,
|
|
595
|
+
square: p = !1,
|
|
596
|
+
variant: d = "elevation",
|
|
597
|
+
...E
|
|
598
|
+
} = i, m = {
|
|
599
|
+
...i,
|
|
600
|
+
component: a,
|
|
601
|
+
elevation: l,
|
|
602
|
+
square: p,
|
|
603
|
+
variant: d
|
|
604
|
+
}, T = fe(m);
|
|
605
|
+
return process.env.NODE_ENV !== "production" && n.shadows[l] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
606
|
+
`)), /* @__PURE__ */ Z.jsx(ce, {
|
|
607
|
+
as: a,
|
|
608
|
+
ownerState: m,
|
|
609
|
+
className: W(T.root, t),
|
|
610
|
+
ref: s,
|
|
611
|
+
...E,
|
|
612
|
+
style: {
|
|
613
|
+
...d === "elevation" && {
|
|
614
|
+
"--Paper-shadow": (n.vars || n).shadows[l],
|
|
615
|
+
...n.vars && {
|
|
616
|
+
"--Paper-overlay": n.vars.overlays?.[l]
|
|
617
|
+
},
|
|
618
|
+
...!n.vars && n.palette.mode === "dark" && {
|
|
619
|
+
"--Paper-overlay": `linear-gradient(${$("#fff", I(l))}, ${$("#fff", I(l))})`
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
...E.style
|
|
623
|
+
}
|
|
624
|
+
});
|
|
625
|
+
});
|
|
626
|
+
process.env.NODE_ENV !== "production" && (pe.propTypes = {
|
|
627
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
628
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
629
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
630
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
631
|
+
/**
|
|
632
|
+
* The content of the component.
|
|
633
|
+
*/
|
|
634
|
+
children: o.node,
|
|
635
|
+
/**
|
|
636
|
+
* Override or extend the styles applied to the component.
|
|
637
|
+
*/
|
|
638
|
+
classes: o.object,
|
|
639
|
+
/**
|
|
640
|
+
* @ignore
|
|
641
|
+
*/
|
|
642
|
+
className: o.string,
|
|
643
|
+
/**
|
|
644
|
+
* The component used for the root node.
|
|
645
|
+
* Either a string to use a HTML element or a component.
|
|
646
|
+
*/
|
|
647
|
+
component: o.elementType,
|
|
648
|
+
/**
|
|
649
|
+
* Shadow depth, corresponds to `dp` in the spec.
|
|
650
|
+
* It accepts values between 0 and 24 inclusive.
|
|
651
|
+
* @default 1
|
|
652
|
+
*/
|
|
653
|
+
elevation: G(ue, (r) => {
|
|
654
|
+
const {
|
|
655
|
+
elevation: u,
|
|
656
|
+
variant: s
|
|
657
|
+
} = r;
|
|
658
|
+
return u > 0 && s === "outlined" ? new Error(`MUI: Combining \`elevation={${u}}\` with \`variant="${s}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null;
|
|
659
|
+
}),
|
|
660
|
+
/**
|
|
661
|
+
* If `true`, rounded corners are disabled.
|
|
662
|
+
* @default false
|
|
663
|
+
*/
|
|
664
|
+
square: o.bool,
|
|
665
|
+
/**
|
|
666
|
+
* @ignore
|
|
667
|
+
*/
|
|
668
|
+
style: o.object,
|
|
669
|
+
/**
|
|
670
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
671
|
+
*/
|
|
672
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
673
|
+
/**
|
|
674
|
+
* The variant to use.
|
|
675
|
+
* @default 'elevation'
|
|
676
|
+
*/
|
|
677
|
+
variant: o.oneOfType([o.oneOf(["elevation", "outlined"]), o.string])
|
|
678
|
+
});
|
|
679
|
+
export {
|
|
680
|
+
pe as P,
|
|
681
|
+
h as T,
|
|
682
|
+
Oe as a,
|
|
683
|
+
be as c,
|
|
684
|
+
ae as f,
|
|
685
|
+
Ae as g,
|
|
686
|
+
ue as i,
|
|
687
|
+
ge as r,
|
|
688
|
+
te as u
|
|
689
|
+
};
|