@cgi-learning-hub/ui 1.2.0-dev.1730801938 → 1.2.0-dev.1730814068
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/{Backdrop-NYR-wJpx.js → Backdrop-CxHwPsCX.js} +313 -312
- package/dist/Backdrop-ZCTs-Ws8.cjs +1 -0
- package/dist/Box-D61CmHcZ.cjs +1 -0
- package/dist/{Box-BOwB0WGP.js → Box-a6v7fn61.js} +3 -3
- package/dist/{Button-DOz72eRZ.js → Button-B8Vr_qVd.js} +72 -76
- package/dist/Button-elp97nQ8.cjs +1 -0
- package/dist/ButtonBase-S0mFlojL.cjs +75 -0
- package/dist/{ButtonBase-Cc4QJr0W.js → ButtonBase-Y5TK5SRu.js} +140 -141
- package/dist/CircularProgress-DDIZxeFH.cjs +28 -0
- package/dist/{CircularProgress-CQAqrfVo.js → CircularProgress-DU3DJQfF.js} +60 -59
- package/dist/{DatePicker-DLbJ-Y35.js → DatePicker-CALU8PZA.js} +5492 -5523
- package/dist/DatePicker-Dxu_4hra.cjs +17 -0
- package/dist/{DefaultPropsProvider-3gIWHkeE.js → DefaultPropsProvider-7QnSWHxy.js} +47 -46
- package/dist/DefaultPropsProvider-eEVEiLDf.cjs +17 -0
- package/dist/{IconButton-DQ115lN0.js → IconButton-C7H_G1LX.js} +60 -70
- package/dist/IconButton-DfmbM9nO.cjs +2 -0
- package/dist/{InputAdornment-CQEOPpj_.cjs → InputAdornment-C-EbfNtT.cjs} +1 -1
- package/dist/{InputAdornment-C91s059c.js → InputAdornment-CPJFY_m_.js} +5 -5
- package/dist/{InputBase-BqiRpsZm.js → InputBase-5GB2c2J6.js} +76 -77
- package/dist/InputBase-CPtGhJye.cjs +3 -0
- package/dist/Stack-656bqKiW.cjs +1 -0
- package/dist/{Stack-CRf_NOj5.js → Stack-CutIWKkG.js} +13 -13
- package/dist/{Tabs-ClaQRksF.js → Tabs-CKic46Op.js} +13 -14
- package/dist/Tabs-DzrxYlm-.cjs +4 -0
- package/dist/TextField-CnyxYYzR.cjs +14 -0
- package/dist/{TextField-poQmKhLJ.js → TextField-DjQM2ffb.js} +1457 -1415
- package/dist/Tooltip-DmCabXFN.cjs +100 -0
- package/dist/{Tooltip-h4eHRca2.js → Tooltip-kMJPjug-.js} +1422 -1404
- package/dist/Typography-CreZW2v6.cjs +1 -0
- package/dist/{Typography-Brk7us7e.js → Typography-DsJC595c.js} +38 -37
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.stories.cjs.js +1 -1
- package/dist/components/Button/Button.cjs.js +1 -0
- package/dist/components/Button/Button.d.ts +4 -0
- package/dist/{DefaultButton-xBiX39mb.js → components/Button/Button.es.js} +90 -110
- package/dist/components/Button/Button.stories.cjs.js +1 -0
- package/dist/components/{PrimaryButton/PrimaryButton.stories.d.ts → Button/Button.stories.d.ts} +3 -1
- package/dist/components/Button/Button.stories.es.js +45 -0
- package/dist/components/Button/index.cjs.js +1 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/index.es.js +4 -0
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -2
- package/dist/components/DatePicker/DatePicker.stories.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.stories.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
- package/dist/components/Dropzone/Dropzone.es.js +1675 -679
- package/dist/components/Dropzone/Dropzone.stories.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/EmptyState/EmptyState.stories.cjs.js +1 -1
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +21 -33
- package/dist/components/Heading/Heading.cjs.js +1 -0
- package/dist/components/{PaperHeader/PaperHeader.d.ts → Heading/Heading.d.ts} +3 -3
- package/dist/components/{PaperHeader/PaperHeader.es.js → Heading/Heading.es.js} +15 -15
- package/dist/components/Heading/Heading.stories.cjs.js +1 -0
- package/dist/components/Heading/Heading.stories.es.js +22 -0
- package/dist/components/Heading/index.cjs.js +1 -0
- package/dist/components/Heading/index.d.ts +2 -0
- package/dist/components/Heading/index.es.js +4 -0
- package/dist/components/IconButton.stories.cjs.js +1 -1
- package/dist/components/IconButton.stories.es.js +11 -17
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/Loader/Loader.stories.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
- package/dist/components/PasswordInput/PasswordInput.stories.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/SearchInput/SearchInput.stories.cjs.js +1 -1
- package/dist/components/TabList.stories.cjs.js +1 -1
- package/dist/components/TabList.stories.es.js +11 -12
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/TextInput/TextInput.stories.cjs.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +2 -8
- package/dist/components/index.es.js +174 -185
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +17 -0
- package/dist/createSimplePaletteValueFilter-PTK3TAhW.cjs +1 -0
- package/dist/{createSvgIcon-CWZXMIY6.js → createSvgIcon-Ae1vF9Lv.js} +3 -3
- package/dist/{createSvgIcon-BHNwYp0k.cjs → createSvgIcon-PXjVOXDY.cjs} +1 -1
- package/dist/{extendSxProp-Cr6SqfyU.js → extendSxProp-BzTGWWcy.js} +1 -1
- package/dist/{extendSxProp-h_vH_Efx.cjs → extendSxProp-DLhbnNxc.cjs} +1 -1
- package/dist/{fr-CrUmNQ8y.js → fr-B0c4Eu-I.js} +1 -1
- package/dist/{fr-Dh4vpkIL.cjs → fr-BtINyNRC.cjs} +1 -1
- package/dist/identifier-B_IiMbpZ.cjs +59 -0
- package/dist/{identifier-vL3mZxtO.js → identifier-Bu3vgTzE.js} +1041 -1053
- package/dist/{index-DJfvQgvG.cjs → index-BDy6VH40.cjs} +1 -1
- package/dist/{index-PJSlkMUh.js → index-D4YvqRSh.js} +3 -3
- package/dist/{index-CrWaTytV.js → index-DNmEgr4X.js} +4 -4
- package/dist/index-Dl4BXU0b.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +174 -185
- package/dist/memoTheme-C4_nd-x4.js +15 -0
- package/dist/memoTheme-DvW891YJ.cjs +1 -0
- package/dist/refType-DYRsy3ld.cjs +1 -0
- package/dist/{refType-CslmN23s.js → refType-DvOnKTmB.js} +12 -9
- package/dist/useForkRef-D-DyzOXj.js +21 -0
- package/dist/useForkRef-D81w5oMb.cjs +1 -0
- package/dist/{useTheme-Cs6W-67J.js → useTheme-B_3HWqyi.js} +3 -3
- package/dist/{useTheme-Cy30-54x.cjs → useTheme-BvsnROiB.cjs} +1 -1
- package/dist/{useTheme-BZN9T64v.js → useTheme-DhYab2-0.js} +1 -1
- package/dist/{useTheme-BcsinTgi.cjs → useTheme-vN32oV1t.cjs} +1 -1
- package/dist/useThemeProps-5hp2m3Xl.cjs +1 -0
- package/dist/useThemeProps-Bmkt_XOR.js +27 -0
- package/dist/useThemeProps-D_gKWuk1.cjs +1 -0
- package/dist/useThemeProps-DftpgVZ0.js +24 -0
- package/dist/useTimeout-Bx22KOcH.js +53 -0
- package/dist/useTimeout-gEG15bRo.cjs +1 -0
- package/package.json +10 -10
- package/dist/Backdrop-2u2eUNhW.cjs +0 -1
- package/dist/Box-BM-kEZ6w.cjs +0 -1
- package/dist/Button-DF4FLm9c.cjs +0 -1
- package/dist/ButtonBase-D-LBunY3.cjs +0 -75
- package/dist/CircularProgress-Bc4Jb-wh.cjs +0 -28
- package/dist/DatePicker-B7Kxulzh.cjs +0 -19
- package/dist/DefaultButton-BiytyhNr.cjs +0 -1
- package/dist/DefaultPropsProvider-D5gdl0ZP.cjs +0 -17
- package/dist/IconButton-C1Q6F-WI.cjs +0 -2
- package/dist/InputBase-BhTvM4pD.cjs +0 -3
- package/dist/Stack-C-pSEK_U.cjs +0 -1
- package/dist/Tabs-DQQR_Rej.cjs +0 -4
- package/dist/TextField-ESuNQ6_j.cjs +0 -12
- package/dist/Tooltip-iexr64ud.cjs +0 -100
- package/dist/Typography-DXUkMq5K.cjs +0 -1
- package/dist/chainPropTypes-CEUi6Jb4.cjs +0 -1
- package/dist/chainPropTypes-D9lkm76m.js +0 -8
- package/dist/components/DefaultButton/DefaultButton.cjs.js +0 -1
- package/dist/components/DefaultButton/DefaultButton.d.ts +0 -8
- package/dist/components/DefaultButton/DefaultButton.es.js +0 -8
- package/dist/components/DefaultButton/DefaultButtonIcon.cjs.js +0 -1
- package/dist/components/DefaultButton/DefaultButtonIcon.d.ts +0 -8
- package/dist/components/DefaultButton/DefaultButtonIcon.es.js +0 -185
- package/dist/components/DefaultButton/index.cjs.js +0 -1
- package/dist/components/DefaultButton/index.d.ts +0 -2
- package/dist/components/DefaultButton/index.es.js +0 -4
- package/dist/components/PaperHeader/PaperHeader.cjs.js +0 -1
- package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +0 -1
- package/dist/components/PaperHeader/PaperHeader.stories.es.js +0 -28
- package/dist/components/PaperHeader/index.cjs.js +0 -1
- package/dist/components/PaperHeader/index.d.ts +0 -2
- package/dist/components/PaperHeader/index.es.js +0 -4
- package/dist/components/PrimaryButton/PrimaryButton.cjs.js +0 -1
- package/dist/components/PrimaryButton/PrimaryButton.d.ts +0 -5
- package/dist/components/PrimaryButton/PrimaryButton.es.js +0 -13
- package/dist/components/PrimaryButton/PrimaryButton.stories.cjs.js +0 -1
- package/dist/components/PrimaryButton/PrimaryButton.stories.es.js +0 -25
- package/dist/components/PrimaryButton/index.cjs.js +0 -1
- package/dist/components/PrimaryButton/index.d.ts +0 -2
- package/dist/components/PrimaryButton/index.es.js +0 -4
- package/dist/components/SecondaryButton/SecondaryButton.cjs.js +0 -1
- package/dist/components/SecondaryButton/SecondaryButton.d.ts +0 -5
- package/dist/components/SecondaryButton/SecondaryButton.es.js +0 -6
- package/dist/components/SecondaryButton/SecondaryButton.stories.cjs.js +0 -1
- package/dist/components/SecondaryButton/SecondaryButton.stories.d.ts +0 -4
- package/dist/components/SecondaryButton/SecondaryButton.stories.es.js +0 -25
- package/dist/components/SecondaryButton/index.cjs.js +0 -1
- package/dist/components/SecondaryButton/index.d.ts +0 -2
- package/dist/components/SecondaryButton/index.es.js +0 -4
- package/dist/composeClasses-B_ETVugV.cjs +0 -1
- package/dist/composeClasses-zmPRtZOg.js +0 -16
- package/dist/createSvgIcon-C9v8HKxu.cjs +0 -2
- package/dist/createSvgIcon-ampgkdBR.js +0 -89
- package/dist/identifier-lU3TQXv0.cjs +0 -59
- package/dist/index-B4-7REI3.cjs +0 -1
- package/dist/memoTheme-B2EWpIp3.cjs +0 -1
- package/dist/memoTheme-O-hJ9iBh.js +0 -13
- package/dist/refType-xt9KmJ1e.cjs +0 -1
- package/dist/unsupportedProp-Bn6XWqwH.cjs +0 -1
- package/dist/unsupportedProp-BuVD30Gh.js +0 -9
- package/dist/useControlled-Bf7_InaL.cjs +0 -3
- package/dist/useControlled-D59BLg1S.js +0 -48
- package/dist/useEnhancedEffect-BQZ6dtCo.cjs +0 -1
- package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
- package/dist/useEventCallback-BAQJJ3ye.js +0 -14
- package/dist/useEventCallback-C0-Qw3Sm.cjs +0 -1
- package/dist/useForkRef-CTI33h-3.cjs +0 -1
- package/dist/useForkRef-C_4o__cU.js +0 -15
- package/dist/useThemeProps-CjDUEYiA.js +0 -40
- package/dist/useThemeProps-DxowsTec.cjs +0 -1
- package/dist/useTimeout-COCrDKz-.cjs +0 -1
- package/dist/useTimeout-CcRdgCDK.js +0 -42
- /package/dist/components/{PaperHeader/PaperHeader.stories.d.ts → Heading/Heading.stories.d.ts} +0 -0
|
@@ -3,15 +3,14 @@ var je = (n, e, o) => e in n ? Oe(n, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var le = (n, e, o) => je(n, typeof e != "symbol" ? e + "" : e, o);
|
|
4
4
|
import * as d from "react";
|
|
5
5
|
import W, { Children as ke, isValidElement as G, cloneElement as J } from "react";
|
|
6
|
-
import { P as t, L as E, J as de, I as Fe } from "./identifier-
|
|
6
|
+
import { P as t, L as E, J as de, I as Fe } from "./identifier-Bu3vgTzE.js";
|
|
7
7
|
import { jsx as U, jsxs as Ie } from "react/jsx-runtime";
|
|
8
|
-
import { s as ne, u as he, c as Ue } from "./DefaultPropsProvider-
|
|
9
|
-
import {
|
|
8
|
+
import { s as ne, u as he, c as Ue } from "./DefaultPropsProvider-7QnSWHxy.js";
|
|
9
|
+
import { a as $e, b as ze, u as H } from "./useTimeout-Bx22KOcH.js";
|
|
10
10
|
import { _ as _e, a as Ae, T as ce } from "./TransitionGroupContext-DMJLhY9-.js";
|
|
11
11
|
import { keyframes as oe } from "@emotion/react";
|
|
12
|
-
import { u as pe } from "./useForkRef-
|
|
13
|
-
import {
|
|
14
|
-
import { r as Xe, e as Ye } from "./refType-CslmN23s.js";
|
|
12
|
+
import { u as pe } from "./useForkRef-D-DyzOXj.js";
|
|
13
|
+
import { r as Xe, e as Ye } from "./refType-DvOnKTmB.js";
|
|
15
14
|
function fe(n) {
|
|
16
15
|
try {
|
|
17
16
|
return n.matches(":focus-visible");
|
|
@@ -21,60 +20,6 @@ function fe(n) {
|
|
|
21
20
|
}
|
|
22
21
|
return !1;
|
|
23
22
|
}
|
|
24
|
-
class Q {
|
|
25
|
-
constructor() {
|
|
26
|
-
le(this, "mountEffect", () => {
|
|
27
|
-
this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
|
|
28
|
-
});
|
|
29
|
-
this.ref = {
|
|
30
|
-
current: null
|
|
31
|
-
}, this.mounted = null, this.didMount = !1, this.shouldMount = !1, this.setShouldMount = null;
|
|
32
|
-
}
|
|
33
|
-
/** React ref to the ripple instance */
|
|
34
|
-
/** If the ripple component should be mounted */
|
|
35
|
-
/** Promise that resolves when the ripple component is mounted */
|
|
36
|
-
/** If the ripple component has been mounted */
|
|
37
|
-
/** React state hook setter */
|
|
38
|
-
static create() {
|
|
39
|
-
return new Q();
|
|
40
|
-
}
|
|
41
|
-
static use() {
|
|
42
|
-
const e = $e(Q.create).current, [o, u] = d.useState(!1);
|
|
43
|
-
return e.shouldMount = o, e.setShouldMount = u, d.useEffect(e.mountEffect, [o]), e;
|
|
44
|
-
}
|
|
45
|
-
mount() {
|
|
46
|
-
return this.mounted || (this.mounted = qe(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
|
|
47
|
-
}
|
|
48
|
-
/* Ripple API */
|
|
49
|
-
start(...e) {
|
|
50
|
-
this.mount().then(() => {
|
|
51
|
-
var o;
|
|
52
|
-
return (o = this.ref.current) == null ? void 0 : o.start(...e);
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
stop(...e) {
|
|
56
|
-
this.mount().then(() => {
|
|
57
|
-
var o;
|
|
58
|
-
return (o = this.ref.current) == null ? void 0 : o.stop(...e);
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
pulsate(...e) {
|
|
62
|
-
this.mount().then(() => {
|
|
63
|
-
var o;
|
|
64
|
-
return (o = this.ref.current) == null ? void 0 : o.pulsate(...e);
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
function Ke() {
|
|
69
|
-
return Q.use();
|
|
70
|
-
}
|
|
71
|
-
function qe() {
|
|
72
|
-
let n, e;
|
|
73
|
-
const o = new Promise((u, i) => {
|
|
74
|
-
n = u, e = i;
|
|
75
|
-
});
|
|
76
|
-
return o.resolve = n, o.reject = e, o;
|
|
77
|
-
}
|
|
78
23
|
function ee() {
|
|
79
24
|
return ee = Object.assign ? Object.assign.bind() : function(n) {
|
|
80
25
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -84,13 +29,13 @@ function ee() {
|
|
|
84
29
|
return n;
|
|
85
30
|
}, ee.apply(null, arguments);
|
|
86
31
|
}
|
|
87
|
-
function
|
|
32
|
+
function Ke(n) {
|
|
88
33
|
if (n === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
89
34
|
return n;
|
|
90
35
|
}
|
|
91
36
|
function ie(n, e) {
|
|
92
|
-
var o = function(
|
|
93
|
-
return e && G(
|
|
37
|
+
var o = function(s) {
|
|
38
|
+
return e && G(s) ? e(s) : s;
|
|
94
39
|
}, u = /* @__PURE__ */ Object.create(null);
|
|
95
40
|
return n && ke.map(n, function(i) {
|
|
96
41
|
return i;
|
|
@@ -98,31 +43,31 @@ function ie(n, e) {
|
|
|
98
43
|
u[i.key] = o(i);
|
|
99
44
|
}), u;
|
|
100
45
|
}
|
|
101
|
-
function
|
|
46
|
+
function qe(n, e) {
|
|
102
47
|
n = n || {}, e = e || {};
|
|
103
48
|
function o(h) {
|
|
104
49
|
return h in e ? e[h] : n[h];
|
|
105
50
|
}
|
|
106
51
|
var u = /* @__PURE__ */ Object.create(null), i = [];
|
|
107
|
-
for (var
|
|
108
|
-
|
|
109
|
-
var
|
|
52
|
+
for (var s in n)
|
|
53
|
+
s in e ? i.length && (u[s] = i, i = []) : i.push(s);
|
|
54
|
+
var r, p = {};
|
|
110
55
|
for (var l in e) {
|
|
111
56
|
if (u[l])
|
|
112
|
-
for (
|
|
113
|
-
var f = u[l][
|
|
114
|
-
p[u[l][
|
|
57
|
+
for (r = 0; r < u[l].length; r++) {
|
|
58
|
+
var f = u[l][r];
|
|
59
|
+
p[u[l][r]] = o(f);
|
|
115
60
|
}
|
|
116
61
|
p[l] = o(l);
|
|
117
62
|
}
|
|
118
|
-
for (
|
|
119
|
-
p[i[
|
|
63
|
+
for (r = 0; r < i.length; r++)
|
|
64
|
+
p[i[r]] = o(i[r]);
|
|
120
65
|
return p;
|
|
121
66
|
}
|
|
122
67
|
function j(n, e, o) {
|
|
123
68
|
return o[e] != null ? o[e] : n.props[e];
|
|
124
69
|
}
|
|
125
|
-
function
|
|
70
|
+
function We(n, e) {
|
|
126
71
|
return ie(n.children, function(o) {
|
|
127
72
|
return J(o, {
|
|
128
73
|
onExited: e.bind(null, o),
|
|
@@ -133,50 +78,50 @@ function Ge(n, e) {
|
|
|
133
78
|
});
|
|
134
79
|
});
|
|
135
80
|
}
|
|
136
|
-
function
|
|
137
|
-
var u = ie(n.children), i =
|
|
138
|
-
return Object.keys(i).forEach(function(
|
|
139
|
-
var
|
|
140
|
-
if (G(
|
|
141
|
-
var p =
|
|
142
|
-
l && (!p || h) ? i[
|
|
143
|
-
onExited: o.bind(null,
|
|
81
|
+
function He(n, e, o) {
|
|
82
|
+
var u = ie(n.children), i = qe(e, u);
|
|
83
|
+
return Object.keys(i).forEach(function(s) {
|
|
84
|
+
var r = i[s];
|
|
85
|
+
if (G(r)) {
|
|
86
|
+
var p = s in e, l = s in u, f = e[s], h = G(f) && !f.props.in;
|
|
87
|
+
l && (!p || h) ? i[s] = J(r, {
|
|
88
|
+
onExited: o.bind(null, r),
|
|
144
89
|
in: !0,
|
|
145
|
-
exit: j(
|
|
146
|
-
enter: j(
|
|
147
|
-
}) : !l && p && !h ? i[
|
|
90
|
+
exit: j(r, "exit", n),
|
|
91
|
+
enter: j(r, "enter", n)
|
|
92
|
+
}) : !l && p && !h ? i[s] = J(r, {
|
|
148
93
|
in: !1
|
|
149
|
-
}) : l && p && G(f) && (i[
|
|
150
|
-
onExited: o.bind(null,
|
|
94
|
+
}) : l && p && G(f) && (i[s] = J(r, {
|
|
95
|
+
onExited: o.bind(null, r),
|
|
151
96
|
in: f.props.in,
|
|
152
|
-
exit: j(
|
|
153
|
-
enter: j(
|
|
97
|
+
exit: j(r, "exit", n),
|
|
98
|
+
enter: j(r, "enter", n)
|
|
154
99
|
}));
|
|
155
100
|
}
|
|
156
101
|
}), i;
|
|
157
102
|
}
|
|
158
|
-
var
|
|
103
|
+
var Ge = Object.values || function(n) {
|
|
159
104
|
return Object.keys(n).map(function(e) {
|
|
160
105
|
return n[e];
|
|
161
106
|
});
|
|
162
|
-
},
|
|
107
|
+
}, Je = {
|
|
163
108
|
component: "div",
|
|
164
109
|
childFactory: function(e) {
|
|
165
110
|
return e;
|
|
166
111
|
}
|
|
167
|
-
},
|
|
112
|
+
}, se = /* @__PURE__ */ function(n) {
|
|
168
113
|
_e(e, n);
|
|
169
114
|
function e(u, i) {
|
|
170
|
-
var
|
|
171
|
-
|
|
172
|
-
var
|
|
173
|
-
return
|
|
115
|
+
var s;
|
|
116
|
+
s = n.call(this, u, i) || this;
|
|
117
|
+
var r = s.handleExited.bind(Ke(s));
|
|
118
|
+
return s.state = {
|
|
174
119
|
contextValue: {
|
|
175
120
|
isMounting: !0
|
|
176
121
|
},
|
|
177
|
-
handleExited:
|
|
122
|
+
handleExited: r,
|
|
178
123
|
firstRender: !0
|
|
179
|
-
},
|
|
124
|
+
}, s;
|
|
180
125
|
}
|
|
181
126
|
var o = e.prototype;
|
|
182
127
|
return o.componentDidMount = function() {
|
|
@@ -187,30 +132,30 @@ var Qe = Object.values || function(n) {
|
|
|
187
132
|
});
|
|
188
133
|
}, o.componentWillUnmount = function() {
|
|
189
134
|
this.mounted = !1;
|
|
190
|
-
}, e.getDerivedStateFromProps = function(i,
|
|
191
|
-
var
|
|
135
|
+
}, e.getDerivedStateFromProps = function(i, s) {
|
|
136
|
+
var r = s.children, p = s.handleExited, l = s.firstRender;
|
|
192
137
|
return {
|
|
193
|
-
children: l ?
|
|
138
|
+
children: l ? We(i, p) : He(i, r, p),
|
|
194
139
|
firstRender: !1
|
|
195
140
|
};
|
|
196
|
-
}, o.handleExited = function(i,
|
|
197
|
-
var
|
|
198
|
-
i.key in
|
|
141
|
+
}, o.handleExited = function(i, s) {
|
|
142
|
+
var r = ie(this.props.children);
|
|
143
|
+
i.key in r || (i.props.onExited && i.props.onExited(s), this.mounted && this.setState(function(p) {
|
|
199
144
|
var l = ee({}, p.children);
|
|
200
145
|
return delete l[i.key], {
|
|
201
146
|
children: l
|
|
202
147
|
};
|
|
203
148
|
}));
|
|
204
149
|
}, o.render = function() {
|
|
205
|
-
var i = this.props,
|
|
206
|
-
return delete p.appear, delete p.enter, delete p.exit,
|
|
150
|
+
var i = this.props, s = i.component, r = i.childFactory, p = Ae(i, ["component", "childFactory"]), l = this.state.contextValue, f = Ge(this.state.children).map(r);
|
|
151
|
+
return delete p.appear, delete p.enter, delete p.exit, s === null ? /* @__PURE__ */ W.createElement(ce.Provider, {
|
|
207
152
|
value: l
|
|
208
153
|
}, f) : /* @__PURE__ */ W.createElement(ce.Provider, {
|
|
209
154
|
value: l
|
|
210
|
-
}, /* @__PURE__ */ W.createElement(
|
|
155
|
+
}, /* @__PURE__ */ W.createElement(s, p, f));
|
|
211
156
|
}, e;
|
|
212
157
|
}(W.Component);
|
|
213
|
-
|
|
158
|
+
se.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
214
159
|
/**
|
|
215
160
|
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
216
161
|
* behavior by providing a `component` prop.
|
|
@@ -263,23 +208,77 @@ re.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
263
208
|
*/
|
|
264
209
|
childFactory: t.func
|
|
265
210
|
} : {};
|
|
266
|
-
|
|
211
|
+
se.defaultProps = Je;
|
|
212
|
+
class Q {
|
|
213
|
+
constructor() {
|
|
214
|
+
le(this, "mountEffect", () => {
|
|
215
|
+
this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
|
|
216
|
+
});
|
|
217
|
+
this.ref = {
|
|
218
|
+
current: null
|
|
219
|
+
}, this.mounted = null, this.didMount = !1, this.shouldMount = !1, this.setShouldMount = null;
|
|
220
|
+
}
|
|
221
|
+
/** React ref to the ripple instance */
|
|
222
|
+
/** If the ripple component should be mounted */
|
|
223
|
+
/** Promise that resolves when the ripple component is mounted */
|
|
224
|
+
/** If the ripple component has been mounted */
|
|
225
|
+
/** React state hook setter */
|
|
226
|
+
static create() {
|
|
227
|
+
return new Q();
|
|
228
|
+
}
|
|
229
|
+
static use() {
|
|
230
|
+
const e = $e(Q.create).current, [o, u] = d.useState(!1);
|
|
231
|
+
return e.shouldMount = o, e.setShouldMount = u, d.useEffect(e.mountEffect, [o]), e;
|
|
232
|
+
}
|
|
233
|
+
mount() {
|
|
234
|
+
return this.mounted || (this.mounted = Ze(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
|
|
235
|
+
}
|
|
236
|
+
/* Ripple API */
|
|
237
|
+
start(...e) {
|
|
238
|
+
this.mount().then(() => {
|
|
239
|
+
var o;
|
|
240
|
+
return (o = this.ref.current) == null ? void 0 : o.start(...e);
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
stop(...e) {
|
|
244
|
+
this.mount().then(() => {
|
|
245
|
+
var o;
|
|
246
|
+
return (o = this.ref.current) == null ? void 0 : o.stop(...e);
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
pulsate(...e) {
|
|
250
|
+
this.mount().then(() => {
|
|
251
|
+
var o;
|
|
252
|
+
return (o = this.ref.current) == null ? void 0 : o.pulsate(...e);
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
function Qe() {
|
|
257
|
+
return Q.use();
|
|
258
|
+
}
|
|
259
|
+
function Ze() {
|
|
260
|
+
let n, e;
|
|
261
|
+
const o = new Promise((u, i) => {
|
|
262
|
+
n = u, e = i;
|
|
263
|
+
});
|
|
264
|
+
return o.resolve = n, o.reject = e, o;
|
|
265
|
+
}
|
|
267
266
|
function me(n) {
|
|
268
267
|
const {
|
|
269
268
|
className: e,
|
|
270
269
|
classes: o,
|
|
271
270
|
pulsate: u = !1,
|
|
272
271
|
rippleX: i,
|
|
273
|
-
rippleY:
|
|
274
|
-
rippleSize:
|
|
272
|
+
rippleY: s,
|
|
273
|
+
rippleSize: r,
|
|
275
274
|
in: p,
|
|
276
275
|
onExited: l,
|
|
277
276
|
timeout: f
|
|
278
277
|
} = n, [h, M] = d.useState(!1), g = E(e, o.ripple, o.rippleVisible, u && o.ripplePulsate), N = {
|
|
279
|
-
width:
|
|
280
|
-
height:
|
|
281
|
-
top: -(
|
|
282
|
-
left: -(
|
|
278
|
+
width: r,
|
|
279
|
+
height: r,
|
|
280
|
+
top: -(r / 2) + s,
|
|
281
|
+
left: -(r / 2) + i
|
|
283
282
|
}, m = E(o.child, h && o.childLeaving, u && o.childPulsate);
|
|
284
283
|
return !p && !h && M(!0), d.useEffect(() => {
|
|
285
284
|
if (!p && l != null) {
|
|
@@ -374,7 +373,7 @@ const b = de("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
374
373
|
bottom: 0,
|
|
375
374
|
left: 0,
|
|
376
375
|
borderRadius: "inherit"
|
|
377
|
-
}),
|
|
376
|
+
}), st = ne(me, {
|
|
378
377
|
name: "MuiTouchRipple",
|
|
379
378
|
slot: "Ripple"
|
|
380
379
|
})`
|
|
@@ -434,8 +433,8 @@ const b = de("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
434
433
|
name: "MuiTouchRipple"
|
|
435
434
|
}), {
|
|
436
435
|
center: i = !1,
|
|
437
|
-
classes:
|
|
438
|
-
className:
|
|
436
|
+
classes: s = {},
|
|
437
|
+
className: r,
|
|
439
438
|
...p
|
|
440
439
|
} = u, [l, f] = d.useState([]), h = d.useRef(0), M = d.useRef(null);
|
|
441
440
|
d.useEffect(() => {
|
|
@@ -449,14 +448,14 @@ const b = de("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
449
448
|
rippleSize: B,
|
|
450
449
|
cb: $
|
|
451
450
|
} = c;
|
|
452
|
-
f((T) => [...T, /* @__PURE__ */ U(
|
|
451
|
+
f((T) => [...T, /* @__PURE__ */ U(st, {
|
|
453
452
|
classes: {
|
|
454
|
-
ripple: E(
|
|
455
|
-
rippleVisible: E(
|
|
456
|
-
ripplePulsate: E(
|
|
457
|
-
child: E(
|
|
458
|
-
childLeaving: E(
|
|
459
|
-
childPulsate: E(
|
|
453
|
+
ripple: E(s.ripple, b.ripple),
|
|
454
|
+
rippleVisible: E(s.rippleVisible, b.rippleVisible),
|
|
455
|
+
ripplePulsate: E(s.ripplePulsate, b.ripplePulsate),
|
|
456
|
+
child: E(s.child, b.child),
|
|
457
|
+
childLeaving: E(s.childLeaving, b.childLeaving),
|
|
458
|
+
childPulsate: E(s.childPulsate, b.childPulsate)
|
|
460
459
|
},
|
|
461
460
|
timeout: te,
|
|
462
461
|
pulsate: R,
|
|
@@ -464,7 +463,7 @@ const b = de("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
464
463
|
rippleY: I,
|
|
465
464
|
rippleSize: B
|
|
466
465
|
}, h.current)]), h.current += 1, M.current = $;
|
|
467
|
-
}, [
|
|
466
|
+
}, [s]), k = d.useCallback((c = {}, R = {}, y = () => {
|
|
468
467
|
}) => {
|
|
469
468
|
const {
|
|
470
469
|
pulsate: I = !1,
|
|
@@ -534,10 +533,10 @@ const b = de("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
534
533
|
start: k,
|
|
535
534
|
stop: F
|
|
536
535
|
}), [Y, k, F]), /* @__PURE__ */ U(it, {
|
|
537
|
-
className: E(b.root,
|
|
536
|
+
className: E(b.root, s.root, r),
|
|
538
537
|
ref: S,
|
|
539
538
|
...p,
|
|
540
|
-
children: /* @__PURE__ */ U(
|
|
539
|
+
children: /* @__PURE__ */ U(se, {
|
|
541
540
|
component: null,
|
|
542
541
|
exit: !0,
|
|
543
542
|
children: l
|
|
@@ -559,7 +558,7 @@ process.env.NODE_ENV !== "production" && (be.propTypes = {
|
|
|
559
558
|
*/
|
|
560
559
|
className: t.string
|
|
561
560
|
});
|
|
562
|
-
function
|
|
561
|
+
function rt(n) {
|
|
563
562
|
return Fe("MuiButtonBase", n);
|
|
564
563
|
}
|
|
565
564
|
const at = de("MuiButtonBase", ["root", "disabled", "focusVisible"]), ut = (n) => {
|
|
@@ -568,10 +567,10 @@ const at = de("MuiButtonBase", ["root", "disabled", "focusVisible"]), ut = (n) =
|
|
|
568
567
|
focusVisible: o,
|
|
569
568
|
focusVisibleClassName: u,
|
|
570
569
|
classes: i
|
|
571
|
-
} = n,
|
|
570
|
+
} = n, r = Ue({
|
|
572
571
|
root: ["root", e && "disabled", o && "focusVisible"]
|
|
573
|
-
},
|
|
574
|
-
return o && u && (
|
|
572
|
+
}, rt, i);
|
|
573
|
+
return o && u && (r.root += ` ${u}`), r;
|
|
575
574
|
}, lt = ne("button", {
|
|
576
575
|
name: "MuiButtonBase",
|
|
577
576
|
slot: "Root",
|
|
@@ -621,8 +620,8 @@ const at = de("MuiButtonBase", ["root", "disabled", "focusVisible"]), ut = (n) =
|
|
|
621
620
|
name: "MuiButtonBase"
|
|
622
621
|
}), {
|
|
623
622
|
action: i,
|
|
624
|
-
centerRipple:
|
|
625
|
-
children:
|
|
623
|
+
centerRipple: s = !1,
|
|
624
|
+
children: r,
|
|
626
625
|
className: p,
|
|
627
626
|
component: l = "button",
|
|
628
627
|
disabled: f = !1,
|
|
@@ -650,7 +649,7 @@ const at = de("MuiButtonBase", ["root", "disabled", "focusVisible"]), ut = (n) =
|
|
|
650
649
|
touchRippleRef: z,
|
|
651
650
|
type: L,
|
|
652
651
|
..._
|
|
653
|
-
} = u, A = d.useRef(null), P =
|
|
652
|
+
} = u, A = d.useRef(null), P = Qe(), ge = pe(P.ref, z), [O, K] = d.useState(!1);
|
|
654
653
|
f && O && K(!1), d.useImperativeHandle(i, () => ({
|
|
655
654
|
focusVisible: () => {
|
|
656
655
|
K(!0), A.current.focus();
|
|
@@ -685,9 +684,9 @@ const at = de("MuiButtonBase", ["root", "disabled", "focusVisible"]), ut = (n) =
|
|
|
685
684
|
q === "button" && (_.href || _.to) && (q = m);
|
|
686
685
|
const X = {};
|
|
687
686
|
q === "button" ? (X.type = L === void 0 ? "button" : L, X.disabled = f) : (!_.href && !_.to && (X.role = "button"), f && (X["aria-disabled"] = f));
|
|
688
|
-
const Se = pe(o, A),
|
|
687
|
+
const Se = pe(o, A), re = {
|
|
689
688
|
...u,
|
|
690
|
-
centerRipple:
|
|
689
|
+
centerRipple: s,
|
|
691
690
|
component: l,
|
|
692
691
|
disabled: f,
|
|
693
692
|
disableRipple: h,
|
|
@@ -695,11 +694,11 @@ const at = de("MuiButtonBase", ["root", "disabled", "focusVisible"]), ut = (n) =
|
|
|
695
694
|
focusRipple: g,
|
|
696
695
|
tabIndex: x,
|
|
697
696
|
focusVisible: O
|
|
698
|
-
}, Be = ut(
|
|
697
|
+
}, Be = ut(re);
|
|
699
698
|
return /* @__PURE__ */ Ie(lt, {
|
|
700
699
|
as: q,
|
|
701
700
|
className: E(Be.root, p),
|
|
702
|
-
ownerState:
|
|
701
|
+
ownerState: re,
|
|
703
702
|
onBlur: Ne,
|
|
704
703
|
onClick: C,
|
|
705
704
|
onContextMenu: Re,
|
|
@@ -718,9 +717,9 @@ const at = de("MuiButtonBase", ["root", "disabled", "focusVisible"]), ut = (n) =
|
|
|
718
717
|
type: L,
|
|
719
718
|
...X,
|
|
720
719
|
..._,
|
|
721
|
-
children: [
|
|
720
|
+
children: [r, ye ? /* @__PURE__ */ U(be, {
|
|
722
721
|
ref: ge,
|
|
723
|
-
center:
|
|
722
|
+
center: s,
|
|
724
723
|
...V
|
|
725
724
|
}) : null]
|
|
726
725
|
});
|
|
@@ -885,7 +884,7 @@ process.env.NODE_ENV !== "production" && (ct.propTypes = {
|
|
|
885
884
|
});
|
|
886
885
|
export {
|
|
887
886
|
ct as B,
|
|
888
|
-
|
|
887
|
+
se as T,
|
|
889
888
|
ee as _,
|
|
890
889
|
fe as i
|
|
891
890
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";const j=require("react"),e=require("./identifier-B_IiMbpZ.cjs"),C=require("./memoTheme-DvW891YJ.cjs"),$=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),P=require("react/jsx-runtime"),a=require("./DefaultPropsProvider-eEVEiLDf.cjs"),R=require("./useForkRef-D81w5oMb.cjs"),l=require("@emotion/react");function M(r){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(s,t,i.get?i:{enumerable:!0,get:()=>r[t]})}}return s.default=r,Object.freeze(s)}const q=M(j);function S(r){return e.generateUtilityClass("MuiCircularProgress",r)}const N=e.generateUtilityClasses("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]),o=44,g=l.keyframes`
|
|
2
|
+
0% {
|
|
3
|
+
transform: rotate(0deg);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
100% {
|
|
7
|
+
transform: rotate(360deg);
|
|
8
|
+
}
|
|
9
|
+
`,h=l.keyframes`
|
|
10
|
+
0% {
|
|
11
|
+
stroke-dasharray: 1px, 200px;
|
|
12
|
+
stroke-dashoffset: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
50% {
|
|
16
|
+
stroke-dasharray: 100px, 200px;
|
|
17
|
+
stroke-dashoffset: -15px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
100% {
|
|
21
|
+
stroke-dasharray: 100px, 200px;
|
|
22
|
+
stroke-dashoffset: -125px;
|
|
23
|
+
}
|
|
24
|
+
`,z=typeof g!="string"?l.css`
|
|
25
|
+
animation: ${g} 1.4s linear infinite;
|
|
26
|
+
`:null,U=typeof h!="string"?l.css`
|
|
27
|
+
animation: ${h} 1.4s ease-in-out infinite;
|
|
28
|
+
`:null,F=r=>{const{classes:s,variant:t,color:i,disableShrink:p}=r,u={root:["root",t,`color${e.capitalize(i)}`],svg:["svg"],circle:["circle",`circle${e.capitalize(t)}`,p&&"circleDisableShrink"]};return a.composeClasses(u,S,s)},E=a.styled("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(r,s)=>{const{ownerState:t}=r;return[s.root,s[t.variant],s[`color${e.capitalize(t.color)}`]]}})(C.memoTheme(({theme:r})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:r.transitions.create("transform")}},{props:{variant:"indeterminate"},style:z||{animation:`${g} 1.4s linear infinite`}},...Object.entries(r.palette).filter($.createSimplePaletteValueFilter()).map(([s])=>({props:{color:s},style:{color:(r.vars||r).palette[s].main}}))]}))),I=a.styled("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(r,s)=>s.svg})({display:"block"}),V=a.styled("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(r,s)=>{const{ownerState:t}=r;return[s.circle,s[`circle${e.capitalize(t.variant)}`],t.disableShrink&&s.circleDisableShrink]}})(C.memoTheme(({theme:r})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:r.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:s})=>s.variant==="indeterminate"&&!s.disableShrink,style:U||{animation:`${h} 1.4s ease-in-out infinite`}}]}))),x=q.forwardRef(function(s,t){const i=a.useDefaultProps({props:s,name:"MuiCircularProgress"}),{className:p,color:u="primary",disableShrink:w=!1,size:y=40,style:D,thickness:n=3.6,value:f=0,variant:v="indeterminate",...O}=i,c={...i,color:u,disableShrink:w,size:y,thickness:n,value:f,variant:v},d=F(c),m={},T={},k={};if(v==="determinate"){const b=2*Math.PI*((o-n)/2);m.strokeDasharray=b.toFixed(3),k["aria-valuenow"]=Math.round(f),m.strokeDashoffset=`${((100-f)/100*b).toFixed(3)}px`,T.transform="rotate(-90deg)"}return P.jsx(E,{className:e.clsx(d.root,p),style:{width:y,height:y,...T,...D},ownerState:c,ref:t,role:"progressbar",...k,...O,children:P.jsx(I,{className:d.svg,ownerState:c,viewBox:`${o/2} ${o/2} ${o} ${o}`,children:P.jsx(V,{className:d.circle,style:m,ownerState:c,cx:o,cy:o,r:(o-n)/2,fill:"none",strokeWidth:n})})})});process.env.NODE_ENV!=="production"&&(x.propTypes={classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["inherit","primary","secondary","error","info","success","warning"]),e.PropTypes.string]),disableShrink:R.chainPropTypes(e.PropTypes.bool,r=>r.disableShrink&&r.variant&&r.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),style:e.PropTypes.object,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),thickness:e.PropTypes.number,value:e.PropTypes.number,variant:e.PropTypes.oneOf(["determinate","indeterminate"])});exports.CircularProgress=x;exports.circularProgressClasses=N;exports.getCircularProgressUtilityClass=S;
|