@cgi-learning-hub/ui 1.4.0-dev.1741950408 → 1.4.0-dev.1741961819
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/{Alert-DdpAZix8.js → Alert-Bdy5B5l-.js} +1 -1
- package/dist/{Backdrop-BctCVgLy.js → Backdrop-2gYaM9j-.js} +16 -15
- package/dist/Backdrop-DOdBqGqq.cjs +1 -0
- package/dist/{Checkbox-qUSjau0g.js → Checkbox-DgU-0k3O.js} +1 -1
- package/dist/{Chip-OpRIs-sL.js → Chip-B8sdMltW.js} +1 -1
- package/dist/{CloseRounded-BMEGLs8y.js → CloseRounded-CYS1vEvm.js} +1 -1
- package/dist/Collapse-Bvxtq7n-.cjs +1 -0
- package/dist/Collapse-CLl0D4CI.js +334 -0
- package/dist/DatePicker-BZ6G6Mxd.cjs +13 -0
- package/dist/{DatePicker-fFsWvNFc.js → DatePicker-CHNHFeLy.js} +648 -654
- package/dist/{Dialog-B1wnk5BT.cjs → Dialog-CgEvhrbZ.cjs} +1 -1
- package/dist/{Dialog-CKS7yjT5.js → Dialog-vSSARfm5.js} +2 -2
- package/dist/{DialogTitle-D3E_lDHD.js → DialogTitle-BNGMQ2Px.js} +1 -1
- package/dist/{DialogTitle-mr9xn4JZ.cjs → DialogTitle-F6JD1f_z.cjs} +1 -1
- package/dist/{Grow-DKgYCxiY.js → Grow-DewB1oh4.js} +12 -11
- package/dist/Grow-wjlsaPJ-.cjs +1 -0
- package/dist/{Menu-Cngt8Va9.cjs → Menu-CGrqZ9-7.cjs} +1 -1
- package/dist/{Menu-BunOW0ot.js → Menu-DTOOgx49.js} +3 -3
- package/dist/{MenuItem-Bha8aBMr.cjs → MenuItem-CCjOFEgY.cjs} +1 -1
- package/dist/{MenuItem-Cu3FTLl8.js → MenuItem-rnMlnHRT.js} +1 -1
- package/dist/{Modal-u82Ss4h_.cjs → Modal-BG3hPYyH.cjs} +1 -1
- package/dist/{Modal-DTJd7JJ6.js → Modal-CjMKpo95.js} +3 -3
- package/dist/{Popper-BVYscbsI.cjs → Popper-AHwSSh80.cjs} +1 -1
- package/dist/{Popper-DjwR55WH.js → Popper-Cx071JBT.js} +1 -1
- package/dist/Portal-Bw9XOIah.cjs +1 -0
- package/dist/{Portal-BByeByPq.js → Portal-iCPDPYlY.js} +1 -1
- package/dist/{Radio-DSRS-tjj.js → Radio-YTlcDTxU.js} +1 -1
- package/dist/{RadioGroup-cPdOWdYD.js → RadioGroup-d9PIO9nR.js} +1 -1
- package/dist/{Select-DZAzJA0y.cjs → Select-CHq7l5LD.cjs} +1 -1
- package/dist/{Select-CZnKFG3o.js → Select-bVUll7Rd.js} +3 -3
- package/dist/{Tabs-BYfDlOR9.js → Tabs-Cl4eoKT1.js} +1 -1
- package/dist/{TextField-CwcPgdgD.cjs → TextField-DQ2FvwDM.cjs} +1 -1
- package/dist/{TextField-BKfXjPdH.js → TextField-VHCImaQP.js} +1 -1
- package/dist/{ToggleButtonGroup-B1yghh29.js → ToggleButtonGroup--eIRTlqD.js} +2379 -2701
- package/dist/ToggleButtonGroup-BGZ43Mpb.cjs +140 -0
- package/dist/Tooltip-BLQHNepC.cjs +4 -0
- package/dist/{Tooltip-B1NGvrJP.js → Tooltip-BM3r5yvP.js} +3 -3
- package/dist/components/Alert/Alert.es.js +1 -1
- package/dist/components/Alert/index.es.js +1 -1
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.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/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- package/dist/components/Dropzone/Dropzone.es.js +1 -1
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +2 -2
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +18 -16
- package/dist/components/SearchInput/SearchInput.es.js +1 -1
- package/dist/components/TreeView/TreeView.cjs.js +9 -0
- package/dist/components/TreeView/TreeView.d.ts +14 -0
- package/dist/components/TreeView/TreeView.es.js +2802 -0
- package/dist/components/TreeView/index.cjs.js +1 -0
- package/dist/components/TreeView/index.d.ts +2 -0
- package/dist/components/TreeView/index.es.js +4 -0
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.es.js +316 -317
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/Chip.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +2 -2
- package/dist/components/stories/Heading.stories.es.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/RadioGroup.stories.es.js +2 -2
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +2 -2
- package/dist/components/stories/TabList.stories.es.js +1 -1
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +1 -1
- package/dist/components/stories/TreeView.stories.cjs.js +1 -0
- package/dist/components/stories/TreeView.stories.d.ts +8 -0
- package/dist/components/stories/TreeView.stories.es.js +86 -0
- package/dist/{createSvgIcon-K2ZAdASa.js → createSvgIcon-K1Hd8ryN.js} +3 -3
- package/dist/getReactElementRef-CQNNHBNW.js +31 -0
- package/dist/getReactElementRef-CTRMtaOQ.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +316 -317
- package/dist/{utils-CXhh35wP.js → utils-Df4KKPfT.js} +75 -103
- package/dist/utils-lBmb5bp_.cjs +1 -0
- package/dist/warning-C8W811fV.js +11 -0
- package/dist/warning-DMUNDgRg.cjs +2 -0
- package/package.json +2 -1
- package/dist/Backdrop-DWp3AktL.cjs +0 -1
- package/dist/DatePicker-DrLKgvkx.cjs +0 -14
- package/dist/Grow-Z3KzFaK5.cjs +0 -1
- package/dist/MoreVert-CrM_1EkN.js +0 -8
- package/dist/MoreVert-CxgmXooO.cjs +0 -1
- package/dist/Portal-DUHpWdY1.cjs +0 -1
- package/dist/ToggleButtonGroup-NqurNgWT.cjs +0 -140
- package/dist/Tooltip-oNmnF7Bc.cjs +0 -4
- package/dist/components/ResourceFolder/ResourceFolder.cjs.js +0 -1
- package/dist/components/ResourceFolder/ResourceFolder.d.ts +0 -10
- package/dist/components/ResourceFolder/ResourceFolder.es.js +0 -75
- package/dist/components/ResourceFolder/index.cjs.js +0 -1
- package/dist/components/ResourceFolder/index.d.ts +0 -2
- package/dist/components/ResourceFolder/index.es.js +0 -4
- package/dist/components/ResourceFolder/styles.cjs.js +0 -1
- package/dist/components/ResourceFolder/styles.es.js +0 -64
- package/dist/components/stories/ResourceFolder.stories.cjs.js +0 -1
- package/dist/components/stories/ResourceFolder.stories.d.ts +0 -7
- package/dist/components/stories/ResourceFolder.stories.es.js +0 -71
- package/dist/utils-CFI_-FMV.cjs +0 -1
|
@@ -1,41 +1,15 @@
|
|
|
1
|
+
import { _ as D, a as C, T as S } from "./TransitionGroupContext-DbLioz_6.js";
|
|
1
2
|
import { P as n } from "./generateUtilityClasses-DotvgSDH.js";
|
|
2
|
-
import { c as R } from "./chainPropTypes-D9lkm76m.js";
|
|
3
|
-
import * as y from "react";
|
|
4
3
|
import v from "react";
|
|
5
|
-
import
|
|
6
|
-
import g from "react-dom";
|
|
7
|
-
function w(u) {
|
|
8
|
-
const {
|
|
9
|
-
prototype: s = {}
|
|
10
|
-
} = u;
|
|
11
|
-
return !!s.isReactComponent;
|
|
12
|
-
}
|
|
13
|
-
function O(u, s, a, r, e) {
|
|
14
|
-
const t = u[s], i = e || s;
|
|
15
|
-
if (t == null || // When server-side rendering React doesn't warn either.
|
|
16
|
-
// This is not an accurate check for SSR.
|
|
17
|
-
// This is only in place for Emotion compat.
|
|
18
|
-
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
19
|
-
typeof window > "u")
|
|
20
|
-
return null;
|
|
21
|
-
let o;
|
|
22
|
-
const p = t.type;
|
|
23
|
-
return typeof p == "function" && !w(p) && (o = "Did you accidentally use a plain function component for an element instead?"), o !== void 0 ? new Error(`Invalid ${r} \`${i}\` supplied to \`${a}\`. Expected an element that can hold a ref. ${o} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
24
|
-
}
|
|
25
|
-
const I = R(n.element, O);
|
|
26
|
-
I.isRequired = R(n.element.isRequired, O);
|
|
27
|
-
function A(u) {
|
|
28
|
-
var s;
|
|
29
|
-
return parseInt(y.version, 10) >= 19 ? ((s = u == null ? void 0 : u.props) == null ? void 0 : s.ref) || null : (u == null ? void 0 : u.ref) || null;
|
|
30
|
-
}
|
|
4
|
+
import b from "react-dom";
|
|
31
5
|
const N = {
|
|
32
6
|
disabled: !1
|
|
33
7
|
};
|
|
34
|
-
var
|
|
8
|
+
var R = process.env.NODE_ENV !== "production" ? n.oneOfType([n.number, n.shape({
|
|
35
9
|
enter: n.number,
|
|
36
10
|
exit: n.number,
|
|
37
11
|
appear: n.number
|
|
38
|
-
}).isRequired]) : null,
|
|
12
|
+
}).isRequired]) : null, I = process.env.NODE_ENV !== "production" ? n.oneOfType([n.string, n.shape({
|
|
39
13
|
enter: n.string,
|
|
40
14
|
exit: n.string,
|
|
41
15
|
active: n.string
|
|
@@ -46,58 +20,58 @@ var M = process.env.NODE_ENV !== "production" ? n.oneOfType([n.number, n.shape({
|
|
|
46
20
|
exit: n.string,
|
|
47
21
|
exitDone: n.string,
|
|
48
22
|
exitActive: n.string
|
|
49
|
-
})]) : null,
|
|
50
|
-
return
|
|
51
|
-
}, x = "unmounted",
|
|
52
|
-
|
|
53
|
-
function
|
|
23
|
+
})]) : null, y = function(a) {
|
|
24
|
+
return a.scrollTop;
|
|
25
|
+
}, x = "unmounted", f = "exited", c = "entering", h = "entered", g = "exiting", l = /* @__PURE__ */ function(u) {
|
|
26
|
+
D(a, u);
|
|
27
|
+
function a(r, e) {
|
|
54
28
|
var t;
|
|
55
29
|
t = u.call(this, r, e) || this;
|
|
56
|
-
var i = e,
|
|
57
|
-
return t.appearStatus = null, r.in ?
|
|
30
|
+
var i = e, s = i && !i.isMounting ? r.enter : r.appear, p;
|
|
31
|
+
return t.appearStatus = null, r.in ? s ? (p = f, t.appearStatus = c) : p = h : r.unmountOnExit || r.mountOnEnter ? p = x : p = f, t.state = {
|
|
58
32
|
status: p
|
|
59
33
|
}, t.nextCallback = null, t;
|
|
60
34
|
}
|
|
61
|
-
|
|
35
|
+
a.getDerivedStateFromProps = function(e, t) {
|
|
62
36
|
var i = e.in;
|
|
63
37
|
return i && t.status === x ? {
|
|
64
|
-
status:
|
|
38
|
+
status: f
|
|
65
39
|
} : null;
|
|
66
40
|
};
|
|
67
|
-
var
|
|
68
|
-
return
|
|
41
|
+
var o = a.prototype;
|
|
42
|
+
return o.componentDidMount = function() {
|
|
69
43
|
this.updateStatus(!0, this.appearStatus);
|
|
70
|
-
},
|
|
44
|
+
}, o.componentDidUpdate = function(e) {
|
|
71
45
|
var t = null;
|
|
72
46
|
if (e !== this.props) {
|
|
73
47
|
var i = this.state.status;
|
|
74
|
-
this.props.in ? i !== c && i !== h && (t = c) : (i === c || i === h) && (t =
|
|
48
|
+
this.props.in ? i !== c && i !== h && (t = c) : (i === c || i === h) && (t = g);
|
|
75
49
|
}
|
|
76
50
|
this.updateStatus(!1, t);
|
|
77
|
-
},
|
|
51
|
+
}, o.componentWillUnmount = function() {
|
|
78
52
|
this.cancelNextCallback();
|
|
79
|
-
},
|
|
80
|
-
var e = this.props.timeout, t, i,
|
|
81
|
-
return t = i =
|
|
53
|
+
}, o.getTimeouts = function() {
|
|
54
|
+
var e = this.props.timeout, t, i, s;
|
|
55
|
+
return t = i = s = e, e != null && typeof e != "number" && (t = e.exit, i = e.enter, s = e.appear !== void 0 ? e.appear : i), {
|
|
82
56
|
exit: t,
|
|
83
57
|
enter: i,
|
|
84
|
-
appear:
|
|
58
|
+
appear: s
|
|
85
59
|
};
|
|
86
|
-
},
|
|
60
|
+
}, o.updateStatus = function(e, t) {
|
|
87
61
|
if (e === void 0 && (e = !1), t !== null)
|
|
88
62
|
if (this.cancelNextCallback(), t === c) {
|
|
89
63
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
90
|
-
var i = this.props.nodeRef ? this.props.nodeRef.current :
|
|
91
|
-
i &&
|
|
64
|
+
var i = this.props.nodeRef ? this.props.nodeRef.current : b.findDOMNode(this);
|
|
65
|
+
i && y(i);
|
|
92
66
|
}
|
|
93
67
|
this.performEnter(e);
|
|
94
68
|
} else
|
|
95
69
|
this.performExit();
|
|
96
|
-
else this.props.unmountOnExit && this.state.status ===
|
|
70
|
+
else this.props.unmountOnExit && this.state.status === f && this.setState({
|
|
97
71
|
status: x
|
|
98
72
|
});
|
|
99
|
-
},
|
|
100
|
-
var t = this, i = this.props.enter,
|
|
73
|
+
}, o.performEnter = function(e) {
|
|
74
|
+
var t = this, i = this.props.enter, s = this.context ? this.context.isMounting : e, p = this.props.nodeRef ? [s] : [b.findDOMNode(this), s], d = p[0], m = p[1], T = this.getTimeouts(), O = s ? T.appear : T.enter;
|
|
101
75
|
if (!e && !i || N.disabled) {
|
|
102
76
|
this.safeSetState({
|
|
103
77
|
status: h
|
|
@@ -109,7 +83,7 @@ var M = process.env.NODE_ENV !== "production" ? n.oneOfType([n.number, n.shape({
|
|
|
109
83
|
this.props.onEnter(d, m), this.safeSetState({
|
|
110
84
|
status: c
|
|
111
85
|
}, function() {
|
|
112
|
-
t.props.onEntering(d, m), t.onTransitionEnd(
|
|
86
|
+
t.props.onEntering(d, m), t.onTransitionEnd(O, function() {
|
|
113
87
|
t.safeSetState({
|
|
114
88
|
status: h
|
|
115
89
|
}, function() {
|
|
@@ -117,42 +91,42 @@ var M = process.env.NODE_ENV !== "production" ? n.oneOfType([n.number, n.shape({
|
|
|
117
91
|
});
|
|
118
92
|
});
|
|
119
93
|
});
|
|
120
|
-
},
|
|
121
|
-
var e = this, t = this.props.exit, i = this.getTimeouts(),
|
|
94
|
+
}, o.performExit = function() {
|
|
95
|
+
var e = this, t = this.props.exit, i = this.getTimeouts(), s = this.props.nodeRef ? void 0 : b.findDOMNode(this);
|
|
122
96
|
if (!t || N.disabled) {
|
|
123
97
|
this.safeSetState({
|
|
124
|
-
status:
|
|
98
|
+
status: f
|
|
125
99
|
}, function() {
|
|
126
|
-
e.props.onExited(
|
|
100
|
+
e.props.onExited(s);
|
|
127
101
|
});
|
|
128
102
|
return;
|
|
129
103
|
}
|
|
130
|
-
this.props.onExit(
|
|
131
|
-
status:
|
|
104
|
+
this.props.onExit(s), this.safeSetState({
|
|
105
|
+
status: g
|
|
132
106
|
}, function() {
|
|
133
|
-
e.props.onExiting(
|
|
107
|
+
e.props.onExiting(s), e.onTransitionEnd(i.exit, function() {
|
|
134
108
|
e.safeSetState({
|
|
135
|
-
status:
|
|
109
|
+
status: f
|
|
136
110
|
}, function() {
|
|
137
|
-
e.props.onExited(
|
|
111
|
+
e.props.onExited(s);
|
|
138
112
|
});
|
|
139
113
|
});
|
|
140
114
|
});
|
|
141
|
-
},
|
|
115
|
+
}, o.cancelNextCallback = function() {
|
|
142
116
|
this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
143
|
-
},
|
|
117
|
+
}, o.safeSetState = function(e, t) {
|
|
144
118
|
t = this.setNextCallback(t), this.setState(e, t);
|
|
145
|
-
},
|
|
119
|
+
}, o.setNextCallback = function(e) {
|
|
146
120
|
var t = this, i = !0;
|
|
147
|
-
return this.nextCallback = function(
|
|
148
|
-
i && (i = !1, t.nextCallback = null, e(
|
|
121
|
+
return this.nextCallback = function(s) {
|
|
122
|
+
i && (i = !1, t.nextCallback = null, e(s));
|
|
149
123
|
}, this.nextCallback.cancel = function() {
|
|
150
124
|
i = !1;
|
|
151
125
|
}, this.nextCallback;
|
|
152
|
-
},
|
|
126
|
+
}, o.onTransitionEnd = function(e, t) {
|
|
153
127
|
this.setNextCallback(t);
|
|
154
|
-
var i = this.props.nodeRef ? this.props.nodeRef.current :
|
|
155
|
-
if (!i ||
|
|
128
|
+
var i = this.props.nodeRef ? this.props.nodeRef.current : b.findDOMNode(this), s = e == null && !this.props.addEndListener;
|
|
129
|
+
if (!i || s) {
|
|
156
130
|
setTimeout(this.nextCallback, 0);
|
|
157
131
|
return;
|
|
158
132
|
}
|
|
@@ -161,23 +135,23 @@ var M = process.env.NODE_ENV !== "production" ? n.oneOfType([n.number, n.shape({
|
|
|
161
135
|
this.props.addEndListener(d, m);
|
|
162
136
|
}
|
|
163
137
|
e != null && setTimeout(this.nextCallback, e);
|
|
164
|
-
},
|
|
138
|
+
}, o.render = function() {
|
|
165
139
|
var e = this.state.status;
|
|
166
140
|
if (e === x)
|
|
167
141
|
return null;
|
|
168
142
|
var t = this.props, i = t.children;
|
|
169
143
|
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;
|
|
170
|
-
var
|
|
144
|
+
var s = C(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
171
145
|
return (
|
|
172
146
|
// allows for nested Transitions
|
|
173
147
|
/* @__PURE__ */ v.createElement(S.Provider, {
|
|
174
148
|
value: null
|
|
175
|
-
}, typeof i == "function" ? i(e,
|
|
149
|
+
}, typeof i == "function" ? i(e, s) : v.cloneElement(v.Children.only(i), s))
|
|
176
150
|
);
|
|
177
|
-
},
|
|
151
|
+
}, a;
|
|
178
152
|
}(v.Component);
|
|
179
|
-
|
|
180
|
-
|
|
153
|
+
l.contextType = S;
|
|
154
|
+
l.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
181
155
|
/**
|
|
182
156
|
* A React reference to DOM element that need to transition:
|
|
183
157
|
* https://stackoverflow.com/a/51127130/4671932
|
|
@@ -190,9 +164,9 @@ f.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
190
164
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
191
165
|
*/
|
|
192
166
|
nodeRef: n.shape({
|
|
193
|
-
current: typeof Element > "u" ? n.any : function(u,
|
|
194
|
-
var i = u[
|
|
195
|
-
return n.instanceOf(i && "ownerDocument" in i ? i.ownerDocument.defaultView.Element : Element)(u,
|
|
167
|
+
current: typeof Element > "u" ? n.any : function(u, a, o, r, e, t) {
|
|
168
|
+
var i = u[a];
|
|
169
|
+
return n.instanceOf(i && "ownerDocument" in i ? i.ownerDocument.defaultView.Element : Element)(u, a, o, r, e, t);
|
|
196
170
|
}
|
|
197
171
|
}),
|
|
198
172
|
/**
|
|
@@ -272,12 +246,12 @@ f.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
272
246
|
*
|
|
273
247
|
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
274
248
|
*/
|
|
275
|
-
timeout: function(
|
|
276
|
-
var
|
|
277
|
-
|
|
249
|
+
timeout: function(a) {
|
|
250
|
+
var o = R;
|
|
251
|
+
a.addEndListener || (o = o.isRequired);
|
|
278
252
|
for (var r = arguments.length, e = new Array(r > 1 ? r - 1 : 0), t = 1; t < r; t++)
|
|
279
253
|
e[t - 1] = arguments[t];
|
|
280
|
-
return
|
|
254
|
+
return o.apply(void 0, [a].concat(e));
|
|
281
255
|
},
|
|
282
256
|
/**
|
|
283
257
|
* Add a custom transition end trigger. Called with the transitioning
|
|
@@ -348,7 +322,7 @@ f.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
348
322
|
} : {};
|
|
349
323
|
function E() {
|
|
350
324
|
}
|
|
351
|
-
|
|
325
|
+
l.defaultProps = {
|
|
352
326
|
in: !1,
|
|
353
327
|
mountOnEnter: !1,
|
|
354
328
|
unmountOnExit: !1,
|
|
@@ -362,30 +336,28 @@ f.defaultProps = {
|
|
|
362
336
|
onExiting: E,
|
|
363
337
|
onExited: E
|
|
364
338
|
};
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
const
|
|
371
|
-
function
|
|
339
|
+
l.UNMOUNTED = x;
|
|
340
|
+
l.EXITED = f;
|
|
341
|
+
l.ENTERING = c;
|
|
342
|
+
l.ENTERED = h;
|
|
343
|
+
l.EXITING = g;
|
|
344
|
+
const P = (u) => u.scrollTop;
|
|
345
|
+
function U(u, a) {
|
|
372
346
|
const {
|
|
373
|
-
timeout:
|
|
347
|
+
timeout: o,
|
|
374
348
|
easing: r,
|
|
375
349
|
style: e = {}
|
|
376
350
|
} = u;
|
|
377
351
|
return {
|
|
378
|
-
duration: e.transitionDuration ?? (typeof
|
|
379
|
-
easing: e.transitionTimingFunction ?? (typeof r == "object" ? r[
|
|
352
|
+
duration: e.transitionDuration ?? (typeof o == "number" ? o : o[a.mode] || 0),
|
|
353
|
+
easing: e.transitionTimingFunction ?? (typeof r == "object" ? r[a.mode] : r),
|
|
380
354
|
delay: e.transitionDelay
|
|
381
355
|
};
|
|
382
356
|
}
|
|
383
357
|
export {
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
P as
|
|
389
|
-
A as g,
|
|
390
|
-
X as r
|
|
358
|
+
l as T,
|
|
359
|
+
I as c,
|
|
360
|
+
y as f,
|
|
361
|
+
U as g,
|
|
362
|
+
P as r
|
|
391
363
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const y=require("./TransitionGroupContext-Zt4NoR0u.cjs"),n=require("./generateUtilityClasses-De8NU9_E.cjs"),m=require("react"),v=require("react-dom"),g={disabled:!1};var O=process.env.NODE_ENV!=="production"?n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.shape({enter:n.PropTypes.number,exit:n.PropTypes.number,appear:n.PropTypes.number}).isRequired]):null,D=process.env.NODE_ENV!=="production"?n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.shape({enter:n.PropTypes.string,exit:n.PropTypes.string,active:n.PropTypes.string}),n.PropTypes.shape({enter:n.PropTypes.string,enterDone:n.PropTypes.string,enterActive:n.PropTypes.string,exit:n.PropTypes.string,exitDone:n.PropTypes.string,exitActive:n.PropTypes.string})]):null,N=function(a){return a.scrollTop},x="unmounted",f="exited",c="entering",h="entered",P="exiting",l=function(p){y._inheritsLoose(a,p);function a(i,t){var e;e=p.call(this,i,t)||this;var r=t,s=r&&!r.isMounting?i.enter:i.appear,u;return e.appearStatus=null,i.in?s?(u=f,e.appearStatus=c):u=h:i.unmountOnExit||i.mountOnEnter?u=x:u=f,e.state={status:u},e.nextCallback=null,e}a.getDerivedStateFromProps=function(t,e){var r=t.in;return r&&e.status===x?{status:f}:null};var o=a.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(t){var e=null;if(t!==this.props){var r=this.state.status;this.props.in?r!==c&&r!==h&&(e=c):(r===c||r===h)&&(e=P)}this.updateStatus(!1,e)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var t=this.props.timeout,e,r,s;return e=r=s=t,t!=null&&typeof t!="number"&&(e=t.exit,r=t.enter,s=t.appear!==void 0?t.appear:r),{exit:e,enter:r,appear:s}},o.updateStatus=function(t,e){if(t===void 0&&(t=!1),e!==null)if(this.cancelNextCallback(),e===c){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:v.findDOMNode(this);r&&N(r)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===f&&this.setState({status:x})},o.performEnter=function(t){var e=this,r=this.props.enter,s=this.context?this.context.isMounting:t,u=this.props.nodeRef?[s]:[v.findDOMNode(this),s],d=u[0],T=u[1],b=this.getTimeouts(),S=s?b.appear:b.enter;if(!t&&!r||g.disabled){this.safeSetState({status:h},function(){e.props.onEntered(d)});return}this.props.onEnter(d,T),this.safeSetState({status:c},function(){e.props.onEntering(d,T),e.onTransitionEnd(S,function(){e.safeSetState({status:h},function(){e.props.onEntered(d,T)})})})},o.performExit=function(){var t=this,e=this.props.exit,r=this.getTimeouts(),s=this.props.nodeRef?void 0:v.findDOMNode(this);if(!e||g.disabled){this.safeSetState({status:f},function(){t.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:P},function(){t.props.onExiting(s),t.onTransitionEnd(r.exit,function(){t.safeSetState({status:f},function(){t.props.onExited(s)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},o.setNextCallback=function(t){var e=this,r=!0;return this.nextCallback=function(s){r&&(r=!1,e.nextCallback=null,t(s))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},o.onTransitionEnd=function(t,e){this.setNextCallback(e);var r=this.props.nodeRef?this.props.nodeRef.current:v.findDOMNode(this),s=t==null&&!this.props.addEndListener;if(!r||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],d=u[0],T=u[1];this.props.addEndListener(d,T)}t!=null&&setTimeout(this.nextCallback,t)},o.render=function(){var t=this.state.status;if(t===x)return null;var e=this.props,r=e.children;e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef;var s=y._objectWithoutPropertiesLoose(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(y.TransitionGroupContext.Provider,{value:null},typeof r=="function"?r(t,s):m.cloneElement(m.Children.only(r),s))},a}(m.Component);l.contextType=y.TransitionGroupContext;l.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:n.PropTypes.shape({current:typeof Element>"u"?n.PropTypes.any:function(p,a,o,i,t,e){var r=p[a];return n.PropTypes.instanceOf(r&&"ownerDocument"in r?r.ownerDocument.defaultView.Element:Element)(p,a,o,i,t,e)}}),children:n.PropTypes.oneOfType([n.PropTypes.func.isRequired,n.PropTypes.element.isRequired]).isRequired,in:n.PropTypes.bool,mountOnEnter:n.PropTypes.bool,unmountOnExit:n.PropTypes.bool,appear:n.PropTypes.bool,enter:n.PropTypes.bool,exit:n.PropTypes.bool,timeout:function(a){var o=O;a.addEndListener||(o=o.isRequired);for(var i=arguments.length,t=new Array(i>1?i-1:0),e=1;e<i;e++)t[e-1]=arguments[e];return o.apply(void 0,[a].concat(t))},addEndListener:n.PropTypes.func,onEnter:n.PropTypes.func,onEntering:n.PropTypes.func,onEntered:n.PropTypes.func,onExit:n.PropTypes.func,onExiting:n.PropTypes.func,onExited:n.PropTypes.func}:{};function E(){}l.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:E,onEntering:E,onEntered:E,onExit:E,onExiting:E,onExited:E};l.UNMOUNTED=x;l.EXITED=f;l.ENTERING=c;l.ENTERED=h;l.EXITING=P;const C=p=>p.scrollTop;function R(p,a){const{timeout:o,easing:i,style:t={}}=p;return{duration:t.transitionDuration??(typeof o=="number"?o:o[a.mode]||0),easing:t.transitionTimingFunction??(typeof i=="object"?i[a.mode]:i),delay:t.transitionDelay}}exports.Transition=l;exports.classNamesShape=D;exports.forceReflow=N;exports.getTransitionProps=R;exports.reflow=C;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const e = /* @__PURE__ */ new Set();
|
|
2
|
+
function c(r, o = "warning") {
|
|
3
|
+
if (process.env.NODE_ENV === "production")
|
|
4
|
+
return;
|
|
5
|
+
const n = Array.isArray(r) ? r.join(`
|
|
6
|
+
`) : r;
|
|
7
|
+
e.has(n) || (e.add(n), o === "error" ? console.error(n) : console.warn(n));
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
c as w
|
|
11
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cgi-learning-hub/ui",
|
|
3
|
-
"version": "1.4.0-dev.
|
|
3
|
+
"version": "1.4.0-dev.1741961819",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "CGI Learning-hub Team",
|
|
6
6
|
"description": "@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"@mui/icons-material": "6.4.5",
|
|
34
34
|
"@mui/lab": "6.0.0-beta.28",
|
|
35
35
|
"@mui/x-date-pickers": "7.27.0",
|
|
36
|
+
"@mui/x-tree-view": "^7.26.0",
|
|
36
37
|
"dayjs": "1.11.13",
|
|
37
38
|
"react-dropzone": "14.3.5"
|
|
38
39
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const A=require("react"),e=require("./generateUtilityClasses-De8NU9_E.cjs"),N=require("./useSlot-CC2AaOjN.cjs"),q=require("react/jsx-runtime"),B=require("./DefaultPropsProvider-wpBXjN8r.cjs"),H=require("./useTheme-CIf2b2wK.cjs"),d=require("./utils-CFI_-FMV.cjs"),W=require("./useForkRef-CTI33h-3.cjs");function G(n){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(s,r,t.get?t:{enumerable:!0,get:()=>n[r]})}}return s.default=n,Object.freeze(s)}const g=G(A),I={entering:{opacity:1},entered:{opacity:1}},D=g.forwardRef(function(s,r){const t=H.useTheme(),E={enter:t.transitions.duration.enteringScreen,exit:t.transitions.duration.leavingScreen},{addEndListener:T,appear:h=!0,children:u,easing:P,in:f,onEnter:m,onEntered:x,onEntering:R,onExit:b,onExited:k,onExiting:v,style:a,timeout:y=E,TransitionComponent:C=d.Transition,...j}=s,c=g.useRef(null),O=W.useForkRef(c,d.getReactElementRef(u),r),i=o=>p=>{if(o){const l=c.current;p===void 0?o(l):o(l,p)}},S=i(R),w=i((o,p)=>{d.reflow(o);const l=d.getTransitionProps({style:a,timeout:y,easing:P},{mode:"enter"});o.style.webkitTransition=t.transitions.create("opacity",l),o.style.transition=t.transitions.create("opacity",l),m&&m(o,p)}),M=i(x),_=i(v),L=i(o=>{const p=d.getTransitionProps({style:a,timeout:y,easing:P},{mode:"exit"});o.style.webkitTransition=t.transitions.create("opacity",p),o.style.transition=t.transitions.create("opacity",p),b&&b(o)}),z=i(k),V=o=>{T&&T(c.current,o)};return q.jsx(C,{appear:h,in:f,nodeRef:c,onEnter:w,onEntered:M,onEntering:S,onExit:L,onExited:z,onExiting:_,addEndListener:V,timeout:y,...j,children:(o,{ownerState:p,...l})=>g.cloneElement(u,{style:{opacity:0,visibility:o==="exited"&&!f?"hidden":void 0,...I[o],...a,...u.props.style},ref:O,...l})})});process.env.NODE_ENV!=="production"&&(D.propTypes={addEndListener:e.PropTypes.func,appear:e.PropTypes.bool,children:d.elementAcceptingRef.isRequired,easing:e.PropTypes.oneOfType([e.PropTypes.shape({enter:e.PropTypes.string,exit:e.PropTypes.string}),e.PropTypes.string]),in:e.PropTypes.bool,onEnter:e.PropTypes.func,onEntered:e.PropTypes.func,onEntering:e.PropTypes.func,onExit:e.PropTypes.func,onExited:e.PropTypes.func,onExiting:e.PropTypes.func,style:e.PropTypes.object,timeout:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.shape({appear:e.PropTypes.number,enter:e.PropTypes.number,exit:e.PropTypes.number})])});function F(n){return e.generateUtilityClass("MuiBackdrop",n)}const J=e.generateUtilityClasses("MuiBackdrop",["root","invisible"]),K=n=>{const{classes:s,invisible:r}=n,t={root:["root",r&&"invisible"]};return B.composeClasses(t,F,s)},Q=B.styled("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(n,s)=>{const{ownerState:r}=n;return[s.root,r.invisible&&s.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),U=g.forwardRef(function(s,r){const t=B.useDefaultProps({props:s,name:"MuiBackdrop"}),{children:E,className:T,component:h="div",invisible:u=!1,open:P,components:f={},componentsProps:m={},slotProps:x={},slots:R={},TransitionComponent:b,transitionDuration:k,...v}=t,a={...t,component:h,invisible:u},y=K(a),C={transition:b,root:f.Root,...R},j={...m,...x},c={slots:C,slotProps:j},[O,i]=N.useSlot("root",{elementType:Q,externalForwardedProps:c,className:e.clsx(y.root,T),ownerState:a}),[S,w]=N.useSlot("transition",{elementType:D,externalForwardedProps:c,ownerState:a});return q.jsx(S,{in:P,timeout:k,...v,...w,children:q.jsx(O,{"aria-hidden":!0,...i,classes:y,ref:r,children:E})})});process.env.NODE_ENV!=="production"&&(U.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,components:e.PropTypes.shape({Root:e.PropTypes.elementType}),componentsProps:e.PropTypes.shape({root:e.PropTypes.object}),invisible:e.PropTypes.bool,open:e.PropTypes.bool.isRequired,slotProps:e.PropTypes.shape({root:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),transition:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({root:e.PropTypes.elementType,transition:e.PropTypes.elementType}),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]),TransitionComponent:e.PropTypes.elementType,transitionDuration:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.shape({appear:e.PropTypes.number,enter:e.PropTypes.number,exit:e.PropTypes.number})])});exports.Backdrop=U;exports.Fade=D;exports.backdropClasses=J;exports.getBackdropUtilityClass=F;
|