@cgi-learning-hub/ui 1.4.0-dev.1741956837 → 1.4.0-dev.1741972878
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/Delete-CbtdIdDB.js +8 -0
- package/dist/Delete-DmeDAs0n.cjs +1 -0
- 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.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +44 -45
- 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 +32 -0
- package/dist/components/TreeView/TreeView.es.js +2882 -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 +5 -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 +29 -0
- package/dist/components/stories/TreeView.stories.d.ts +8 -0
- package/dist/components/stories/TreeView.stories.es.js +215 -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 -84
- 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
|
@@ -4,7 +4,7 @@ import { H as R, I as z, G as w, P as e, q as b, s as h } from "./generateUtilit
|
|
|
4
4
|
import { m as B } from "./memoTheme-CqmIydD-.js";
|
|
5
5
|
import { u as c } from "./useSlot-GZu0V5wJ.js";
|
|
6
6
|
import { c as v } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
7
|
-
import { c as d } from "./createSvgIcon-
|
|
7
|
+
import { c as d } from "./createSvgIcon-K1Hd8ryN.js";
|
|
8
8
|
import { u as L, s as u, c as N } from "./DefaultPropsProvider-Cqcb4sws.js";
|
|
9
9
|
import { I as te } from "./IconButton-CCNUMz2l.js";
|
|
10
10
|
import { c as T } from "./capitalize-3KLkrEtk.js";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as g from "react";
|
|
2
2
|
import { P as e, H as q, I as A, G as H } from "./generateUtilityClasses-DotvgSDH.js";
|
|
3
3
|
import { u as B } from "./useSlot-GZu0V5wJ.js";
|
|
4
4
|
import { jsx as j } from "react/jsx-runtime";
|
|
5
5
|
import { u as V, s as _, c as z } from "./DefaultPropsProvider-Cqcb4sws.js";
|
|
6
6
|
import { u as G } from "./useTheme-BA7tMglY.js";
|
|
7
|
-
import { T as I, g as
|
|
8
|
-
import { u as
|
|
7
|
+
import { T as I, g as N, r as W } from "./utils-Df4KKPfT.js";
|
|
8
|
+
import { u as J } from "./useForkRef-C_4o__cU.js";
|
|
9
|
+
import { g as K, e as Q } from "./getReactElementRef-CQNNHBNW.js";
|
|
9
10
|
const X = {
|
|
10
11
|
entering: {
|
|
11
12
|
opacity: 1
|
|
@@ -13,8 +14,8 @@ const X = {
|
|
|
13
14
|
entered: {
|
|
14
15
|
opacity: 1
|
|
15
16
|
}
|
|
16
|
-
}, D = /* @__PURE__ */
|
|
17
|
-
const t = G(),
|
|
17
|
+
}, D = /* @__PURE__ */ g.forwardRef(function(o, a) {
|
|
18
|
+
const t = G(), h = {
|
|
18
19
|
enter: t.transitions.duration.enteringScreen,
|
|
19
20
|
exit: t.transitions.duration.leavingScreen
|
|
20
21
|
}, {
|
|
@@ -30,17 +31,17 @@ const X = {
|
|
|
30
31
|
onExited: R,
|
|
31
32
|
onExiting: C,
|
|
32
33
|
style: c,
|
|
33
|
-
timeout: d =
|
|
34
|
+
timeout: d = h,
|
|
34
35
|
// eslint-disable-next-line react/prop-types
|
|
35
36
|
TransitionComponent: P = I,
|
|
36
37
|
...k
|
|
37
|
-
} = o, p =
|
|
38
|
+
} = o, p = g.useRef(null), w = J(p, K(u), a), s = (n) => (r) => {
|
|
38
39
|
if (n) {
|
|
39
40
|
const l = p.current;
|
|
40
41
|
r === void 0 ? n(l) : n(l, r);
|
|
41
42
|
}
|
|
42
43
|
}, O = s(v), S = s((n, r) => {
|
|
43
|
-
|
|
44
|
+
W(n);
|
|
44
45
|
const l = N({
|
|
45
46
|
style: c,
|
|
46
47
|
timeout: d,
|
|
@@ -77,7 +78,7 @@ const X = {
|
|
|
77
78
|
children: (n, {
|
|
78
79
|
ownerState: r,
|
|
79
80
|
...l
|
|
80
|
-
}) => /* @__PURE__ */
|
|
81
|
+
}) => /* @__PURE__ */ g.cloneElement(u, {
|
|
81
82
|
style: {
|
|
82
83
|
opacity: 0,
|
|
83
84
|
visibility: n === "exited" && !y ? "hidden" : void 0,
|
|
@@ -110,7 +111,7 @@ process.env.NODE_ENV !== "production" && (D.propTypes = {
|
|
|
110
111
|
/**
|
|
111
112
|
* A single child content element.
|
|
112
113
|
*/
|
|
113
|
-
children:
|
|
114
|
+
children: Q.isRequired,
|
|
114
115
|
/**
|
|
115
116
|
* The transition timing function.
|
|
116
117
|
* You may specify a single easing or a object containing enter and exit values.
|
|
@@ -168,7 +169,7 @@ process.env.NODE_ENV !== "production" && (D.propTypes = {
|
|
|
168
169
|
function Y(i) {
|
|
169
170
|
return A("MuiBackdrop", i);
|
|
170
171
|
}
|
|
171
|
-
const
|
|
172
|
+
const le = q("MuiBackdrop", ["root", "invisible"]), Z = (i) => {
|
|
172
173
|
const {
|
|
173
174
|
classes: o,
|
|
174
175
|
invisible: a
|
|
@@ -204,12 +205,12 @@ const pe = q("MuiBackdrop", ["root", "invisible"]), Z = (i) => {
|
|
|
204
205
|
backgroundColor: "transparent"
|
|
205
206
|
}
|
|
206
207
|
}]
|
|
207
|
-
}), ee = /* @__PURE__ */
|
|
208
|
+
}), ee = /* @__PURE__ */ g.forwardRef(function(o, a) {
|
|
208
209
|
const t = V({
|
|
209
210
|
props: o,
|
|
210
211
|
name: "MuiBackdrop"
|
|
211
212
|
}), {
|
|
212
|
-
children:
|
|
213
|
+
children: h,
|
|
213
214
|
className: m,
|
|
214
215
|
component: T = "div",
|
|
215
216
|
invisible: u = !1,
|
|
@@ -255,7 +256,7 @@ const pe = q("MuiBackdrop", ["root", "invisible"]), Z = (i) => {
|
|
|
255
256
|
...s,
|
|
256
257
|
classes: d,
|
|
257
258
|
ref: a,
|
|
258
|
-
children:
|
|
259
|
+
children: h
|
|
259
260
|
})
|
|
260
261
|
});
|
|
261
262
|
});
|
|
@@ -352,6 +353,6 @@ process.env.NODE_ENV !== "production" && (ee.propTypes = {
|
|
|
352
353
|
export {
|
|
353
354
|
ee as B,
|
|
354
355
|
D as F,
|
|
355
|
-
|
|
356
|
+
le as b,
|
|
356
357
|
Y as g
|
|
357
358
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const H=require("react"),e=require("./generateUtilityClasses-De8NU9_E.cjs"),N=require("./useSlot-CC2AaOjN.cjs"),q=require("react/jsx-runtime"),B=require("./DefaultPropsProvider-wpBXjN8r.cjs"),W=require("./useTheme-CIf2b2wK.cjs"),b=require("./utils-lBmb5bp_.cjs"),G=require("./useForkRef-CTI33h-3.cjs"),F=require("./getReactElementRef-CTRMtaOQ.cjs");function I(n){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const s in n)if(s!=="default"){const t=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(r,s,t.get?t:{enumerable:!0,get:()=>n[s]})}}return r.default=n,Object.freeze(r)}const g=I(H),J={entering:{opacity:1},entered:{opacity:1}},D=g.forwardRef(function(r,s){const t=W.useTheme(),E={enter:t.transitions.duration.enteringScreen,exit:t.transitions.duration.leavingScreen},{addEndListener:u,appear:h=!0,children:d,easing:T,in:P,onEnter:f,onEntered:x,onEntering:R,onExit:m,onExited:k,onExiting:v,style:a,timeout:y=E,TransitionComponent:C=b.Transition,...j}=r,c=g.useRef(null),O=G.useForkRef(c,F.getReactElementRef(d),s),i=o=>p=>{if(o){const l=c.current;p===void 0?o(l):o(l,p)}},S=i(R),w=i((o,p)=>{b.reflow(o);const l=b.getTransitionProps({style:a,timeout:y,easing:T},{mode:"enter"});o.style.webkitTransition=t.transitions.create("opacity",l),o.style.transition=t.transitions.create("opacity",l),f&&f(o,p)}),_=i(x),L=i(v),z=i(o=>{const p=b.getTransitionProps({style:a,timeout:y,easing:T},{mode:"exit"});o.style.webkitTransition=t.transitions.create("opacity",p),o.style.transition=t.transitions.create("opacity",p),m&&m(o)}),V=i(k),A=o=>{u&&u(c.current,o)};return q.jsx(C,{appear:h,in:P,nodeRef:c,onEnter:w,onEntered:_,onEntering:S,onExit:z,onExited:V,onExiting:L,addEndListener:A,timeout:y,...j,children:(o,{ownerState:p,...l})=>g.cloneElement(d,{style:{opacity:0,visibility:o==="exited"&&!P?"hidden":void 0,...J[o],...a,...d.props.style},ref:O,...l})})});process.env.NODE_ENV!=="production"&&(D.propTypes={addEndListener:e.PropTypes.func,appear:e.PropTypes.bool,children:F.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 U(n){return e.generateUtilityClass("MuiBackdrop",n)}const K=e.generateUtilityClasses("MuiBackdrop",["root","invisible"]),Q=n=>{const{classes:r,invisible:s}=n,t={root:["root",s&&"invisible"]};return B.composeClasses(t,U,r)},X=B.styled("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:s}=n;return[r.root,s.invisible&&r.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"}}]}),M=g.forwardRef(function(r,s){const t=B.useDefaultProps({props:r,name:"MuiBackdrop"}),{children:E,className:u,component:h="div",invisible:d=!1,open:T,components:P={},componentsProps:f={},slotProps:x={},slots:R={},TransitionComponent:m,transitionDuration:k,...v}=t,a={...t,component:h,invisible:d},y=Q(a),C={transition:m,root:P.Root,...R},j={...f,...x},c={slots:C,slotProps:j},[O,i]=N.useSlot("root",{elementType:X,externalForwardedProps:c,className:e.clsx(y.root,u),ownerState:a}),[S,w]=N.useSlot("transition",{elementType:D,externalForwardedProps:c,ownerState:a});return q.jsx(S,{in:T,timeout:k,...v,...w,children:q.jsx(O,{"aria-hidden":!0,...i,classes:y,ref:s,children:E})})});process.env.NODE_ENV!=="production"&&(M.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=M;exports.Fade=D;exports.backdropClasses=K;exports.getBackdropUtilityClass=U;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as m from "react";
|
|
2
2
|
import { H as S, I as P, G as R, n as x, P as e } from "./generateUtilityClasses-DotvgSDH.js";
|
|
3
3
|
import { S as $ } from "./SwitchBase-CDkmnGAP.js";
|
|
4
|
-
import { c as u } from "./createSvgIcon-
|
|
4
|
+
import { c as u } from "./createSvgIcon-K1Hd8ryN.js";
|
|
5
5
|
import { jsx as r } from "react/jsx-runtime";
|
|
6
6
|
import { u as B, s as w, c as M, r as T } from "./DefaultPropsProvider-Cqcb4sws.js";
|
|
7
7
|
import { m as j } from "./memoTheme-CqmIydD-.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
2
|
import { H as q, I as J, G as y, n as d, P as r } from "./generateUtilityClasses-DotvgSDH.js";
|
|
3
|
-
import { c as Q } from "./createSvgIcon-
|
|
3
|
+
import { c as Q } from "./createSvgIcon-K1Hd8ryN.js";
|
|
4
4
|
import { jsx as P, jsxs as X } from "react/jsx-runtime";
|
|
5
5
|
import { m as Y } from "./memoTheme-CqmIydD-.js";
|
|
6
6
|
import { c as k } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "./createSvgIcon-
|
|
2
|
+
import { c } from "./createSvgIcon-K1Hd8ryN.js";
|
|
3
3
|
const a = c(/* @__PURE__ */ o("path", {
|
|
4
4
|
d: "M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"
|
|
5
5
|
}), "CloseRounded");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const te=require("react"),e=require("./generateUtilityClasses-De8NU9_E.cjs"),ne=require("./useTheme-CIf2b2wK.cjs"),w=require("react/jsx-runtime"),h=require("./DefaultPropsProvider-wpBXjN8r.cjs"),oe=require("./memoTheme-DrjvJtTP.cjs"),b=require("./utils-lBmb5bp_.cjs"),re=require("./useTimeout-COCrDKz-.cjs"),se=require("./useForkRef-CTI33h-3.cjs"),ie=require("./elementTypeAcceptingRef-BjgxF5Bq.cjs");function pe(o){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const p=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(n,r,p.get?p:{enumerable:!0,get:()=>o[r]})}}return n.default=o,Object.freeze(n)}const E=pe(te);function U(o){return e.generateUtilityClass("MuiCollapse",o)}const ae=e.generateUtilityClasses("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]),le=o=>{const{orientation:n,classes:r}=o,p={root:["root",`${n}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${n}`],wrapperInner:["wrapperInner",`${n}`]};return h.composeClasses(p,U,r)},ce=h.styled("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(o,n)=>{const{ownerState:r}=o;return[n.root,n[r.orientation],r.state==="entered"&&n.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&n.hidden]}})(oe.memoTheme(({theme:o})=>({height:0,overflow:"hidden",transition:o.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:o.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:n})=>n.state==="exited"&&!n.in&&n.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),ue=h.styled("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(o,n)=>n.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),de=h.styled("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(o,n)=>n.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),C=E.forwardRef(function(n,r){const p=h.useDefaultProps({props:n,name:"MuiCollapse"}),{addEndListener:S,children:A,className:H,collapsedSize:T="0px",component:L,easing:O,in:D,onEnter:j,onEntered:q,onEntering:$,onExit:N,onExited:_,onExiting:M,orientation:W="vertical",style:v,timeout:a=e.duration.standard,TransitionComponent:k=b.Transition,...V}=p,m={...p,orientation:W,collapsedSize:T},u=le(m),F=ne.useTheme(),B=re.useTimeout(),l=E.useRef(null),z=E.useRef(),g=typeof T=="number"?`${T}px`:T,d=W==="horizontal",y=d?"width":"height",P=E.useRef(null),G=se.useForkRef(r,P),c=t=>s=>{if(t){const i=P.current;s===void 0?t(i):t(i,s)}},R=()=>l.current?l.current[d?"clientWidth":"clientHeight"]:0,J=c((t,s)=>{l.current&&d&&(l.current.style.position="absolute"),t.style[y]=g,j&&j(t,s)}),K=c((t,s)=>{const i=R();l.current&&d&&(l.current.style.position="");const{duration:f,easing:x}=b.getTransitionProps({style:v,timeout:a,easing:O},{mode:"enter"});if(a==="auto"){const I=F.transitions.getAutoHeightDuration(i);t.style.transitionDuration=`${I}ms`,z.current=I}else t.style.transitionDuration=typeof f=="string"?f:`${f}ms`;t.style[y]=`${i}px`,t.style.transitionTimingFunction=x,$&&$(t,s)}),Q=c((t,s)=>{t.style[y]="auto",q&&q(t,s)}),X=c(t=>{t.style[y]=`${R()}px`,N&&N(t)}),Y=c(_),Z=c(t=>{const s=R(),{duration:i,easing:f}=b.getTransitionProps({style:v,timeout:a,easing:O},{mode:"exit"});if(a==="auto"){const x=F.transitions.getAutoHeightDuration(s);t.style.transitionDuration=`${x}ms`,z.current=x}else t.style.transitionDuration=typeof i=="string"?i:`${i}ms`;t.style[y]=g,t.style.transitionTimingFunction=f,M&&M(t)}),ee=t=>{a==="auto"&&B.start(z.current||0,t),S&&S(P.current,t)};return w.jsx(k,{in:D,onEnter:J,onEntered:Q,onEntering:K,onExit:X,onExited:Y,onExiting:Z,addEndListener:ee,nodeRef:P,timeout:a==="auto"?null:a,...V,children:(t,{ownerState:s,...i})=>w.jsx(ce,{as:L,className:e.clsx(u.root,H,{entered:u.entered,exited:!D&&g==="0px"&&u.hidden}[t]),style:{[d?"minWidth":"minHeight"]:g,...v},ref:G,ownerState:{...m,state:t},...i,children:w.jsx(ue,{ownerState:{...m,state:t},className:u.wrapper,ref:l,children:w.jsx(de,{ownerState:{...m,state:t},className:u.wrapperInner,children:A})})})})});process.env.NODE_ENV!=="production"&&(C.propTypes={addEndListener:e.PropTypes.func,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,collapsedSize:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),component:ie.elementTypeAcceptingRef,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,orientation:e.PropTypes.oneOf(["horizontal","vertical"]),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]),timeout:e.PropTypes.oneOfType([e.PropTypes.oneOf(["auto"]),e.PropTypes.number,e.PropTypes.shape({appear:e.PropTypes.number,enter:e.PropTypes.number,exit:e.PropTypes.number})])});C&&(C.muiSupportAuto=!0);exports.Collapse=C;exports.collapseClasses=ae;exports.getCollapseUtilityClass=U;
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import * as w from "react";
|
|
2
|
+
import { I as Z, H as ee, x as te, G as ne, P as e } from "./generateUtilityClasses-DotvgSDH.js";
|
|
3
|
+
import { u as oe } from "./useTheme-BA7tMglY.js";
|
|
4
|
+
import { jsx as v } from "react/jsx-runtime";
|
|
5
|
+
import { u as ie, s as S, c as re } from "./DefaultPropsProvider-Cqcb4sws.js";
|
|
6
|
+
import { m as se } from "./memoTheme-CqmIydD-.js";
|
|
7
|
+
import { T as ae, g as A } from "./utils-Df4KKPfT.js";
|
|
8
|
+
import { u as le } from "./useTimeout-CrCYVizI.js";
|
|
9
|
+
import { u as pe } from "./useForkRef-C_4o__cU.js";
|
|
10
|
+
import { e as ce } from "./elementTypeAcceptingRef-5ESWTE79.js";
|
|
11
|
+
function de(o) {
|
|
12
|
+
return Z("MuiCollapse", o);
|
|
13
|
+
}
|
|
14
|
+
const Se = ee("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]), ue = (o) => {
|
|
15
|
+
const {
|
|
16
|
+
orientation: n,
|
|
17
|
+
classes: s
|
|
18
|
+
} = o, m = {
|
|
19
|
+
root: ["root", `${n}`],
|
|
20
|
+
entered: ["entered"],
|
|
21
|
+
hidden: ["hidden"],
|
|
22
|
+
wrapper: ["wrapper", `${n}`],
|
|
23
|
+
wrapperInner: ["wrapperInner", `${n}`]
|
|
24
|
+
};
|
|
25
|
+
return re(m, de, s);
|
|
26
|
+
}, fe = S("div", {
|
|
27
|
+
name: "MuiCollapse",
|
|
28
|
+
slot: "Root",
|
|
29
|
+
overridesResolver: (o, n) => {
|
|
30
|
+
const {
|
|
31
|
+
ownerState: s
|
|
32
|
+
} = o;
|
|
33
|
+
return [n.root, n[s.orientation], s.state === "entered" && n.entered, s.state === "exited" && !s.in && s.collapsedSize === "0px" && n.hidden];
|
|
34
|
+
}
|
|
35
|
+
})(se(({
|
|
36
|
+
theme: o
|
|
37
|
+
}) => ({
|
|
38
|
+
height: 0,
|
|
39
|
+
overflow: "hidden",
|
|
40
|
+
transition: o.transitions.create("height"),
|
|
41
|
+
variants: [{
|
|
42
|
+
props: {
|
|
43
|
+
orientation: "horizontal"
|
|
44
|
+
},
|
|
45
|
+
style: {
|
|
46
|
+
height: "auto",
|
|
47
|
+
width: 0,
|
|
48
|
+
transition: o.transitions.create("width")
|
|
49
|
+
}
|
|
50
|
+
}, {
|
|
51
|
+
props: {
|
|
52
|
+
state: "entered"
|
|
53
|
+
},
|
|
54
|
+
style: {
|
|
55
|
+
height: "auto",
|
|
56
|
+
overflow: "visible"
|
|
57
|
+
}
|
|
58
|
+
}, {
|
|
59
|
+
props: {
|
|
60
|
+
state: "entered",
|
|
61
|
+
orientation: "horizontal"
|
|
62
|
+
},
|
|
63
|
+
style: {
|
|
64
|
+
width: "auto"
|
|
65
|
+
}
|
|
66
|
+
}, {
|
|
67
|
+
props: ({
|
|
68
|
+
ownerState: n
|
|
69
|
+
}) => n.state === "exited" && !n.in && n.collapsedSize === "0px",
|
|
70
|
+
style: {
|
|
71
|
+
visibility: "hidden"
|
|
72
|
+
}
|
|
73
|
+
}]
|
|
74
|
+
}))), me = S("div", {
|
|
75
|
+
name: "MuiCollapse",
|
|
76
|
+
slot: "Wrapper",
|
|
77
|
+
overridesResolver: (o, n) => n.wrapper
|
|
78
|
+
})({
|
|
79
|
+
// Hack to get children with a negative margin to not falsify the height computation.
|
|
80
|
+
display: "flex",
|
|
81
|
+
width: "100%",
|
|
82
|
+
variants: [{
|
|
83
|
+
props: {
|
|
84
|
+
orientation: "horizontal"
|
|
85
|
+
},
|
|
86
|
+
style: {
|
|
87
|
+
width: "auto",
|
|
88
|
+
height: "100%"
|
|
89
|
+
}
|
|
90
|
+
}]
|
|
91
|
+
}), he = S("div", {
|
|
92
|
+
name: "MuiCollapse",
|
|
93
|
+
slot: "WrapperInner",
|
|
94
|
+
overridesResolver: (o, n) => n.wrapperInner
|
|
95
|
+
})({
|
|
96
|
+
width: "100%",
|
|
97
|
+
variants: [{
|
|
98
|
+
props: {
|
|
99
|
+
orientation: "horizontal"
|
|
100
|
+
},
|
|
101
|
+
style: {
|
|
102
|
+
width: "auto",
|
|
103
|
+
height: "100%"
|
|
104
|
+
}
|
|
105
|
+
}]
|
|
106
|
+
}), R = /* @__PURE__ */ w.forwardRef(function(n, s) {
|
|
107
|
+
const m = ie({
|
|
108
|
+
props: n,
|
|
109
|
+
name: "MuiCollapse"
|
|
110
|
+
}), {
|
|
111
|
+
addEndListener: b,
|
|
112
|
+
children: F,
|
|
113
|
+
className: L,
|
|
114
|
+
collapsedSize: h = "0px",
|
|
115
|
+
component: U,
|
|
116
|
+
easing: D,
|
|
117
|
+
in: O,
|
|
118
|
+
onEnter: $,
|
|
119
|
+
onEntered: I,
|
|
120
|
+
onEntering: N,
|
|
121
|
+
onExit: W,
|
|
122
|
+
onExited: G,
|
|
123
|
+
onExiting: H,
|
|
124
|
+
orientation: M = "vertical",
|
|
125
|
+
style: C,
|
|
126
|
+
timeout: a = te.standard,
|
|
127
|
+
// eslint-disable-next-line react/prop-types
|
|
128
|
+
TransitionComponent: V = ae,
|
|
129
|
+
..._
|
|
130
|
+
} = m, g = {
|
|
131
|
+
...m,
|
|
132
|
+
orientation: M,
|
|
133
|
+
collapsedSize: h
|
|
134
|
+
}, c = ue(g), P = oe(), k = le(), l = w.useRef(null), T = w.useRef(), y = typeof h == "number" ? `${h}px` : h, d = M === "horizontal", u = d ? "width" : "height", E = w.useRef(null), q = pe(s, E), p = (t) => (i) => {
|
|
135
|
+
if (t) {
|
|
136
|
+
const r = E.current;
|
|
137
|
+
i === void 0 ? t(r) : t(r, i);
|
|
138
|
+
}
|
|
139
|
+
}, z = () => l.current ? l.current[d ? "clientWidth" : "clientHeight"] : 0, B = p((t, i) => {
|
|
140
|
+
l.current && d && (l.current.style.position = "absolute"), t.style[u] = y, $ && $(t, i);
|
|
141
|
+
}), J = p((t, i) => {
|
|
142
|
+
const r = z();
|
|
143
|
+
l.current && d && (l.current.style.position = "");
|
|
144
|
+
const {
|
|
145
|
+
duration: f,
|
|
146
|
+
easing: x
|
|
147
|
+
} = A({
|
|
148
|
+
style: C,
|
|
149
|
+
timeout: a,
|
|
150
|
+
easing: D
|
|
151
|
+
}, {
|
|
152
|
+
mode: "enter"
|
|
153
|
+
});
|
|
154
|
+
if (a === "auto") {
|
|
155
|
+
const j = P.transitions.getAutoHeightDuration(r);
|
|
156
|
+
t.style.transitionDuration = `${j}ms`, T.current = j;
|
|
157
|
+
} else
|
|
158
|
+
t.style.transitionDuration = typeof f == "string" ? f : `${f}ms`;
|
|
159
|
+
t.style[u] = `${r}px`, t.style.transitionTimingFunction = x, N && N(t, i);
|
|
160
|
+
}), K = p((t, i) => {
|
|
161
|
+
t.style[u] = "auto", I && I(t, i);
|
|
162
|
+
}), Q = p((t) => {
|
|
163
|
+
t.style[u] = `${z()}px`, W && W(t);
|
|
164
|
+
}), X = p(G), Y = p((t) => {
|
|
165
|
+
const i = z(), {
|
|
166
|
+
duration: r,
|
|
167
|
+
easing: f
|
|
168
|
+
} = A({
|
|
169
|
+
style: C,
|
|
170
|
+
timeout: a,
|
|
171
|
+
easing: D
|
|
172
|
+
}, {
|
|
173
|
+
mode: "exit"
|
|
174
|
+
});
|
|
175
|
+
if (a === "auto") {
|
|
176
|
+
const x = P.transitions.getAutoHeightDuration(i);
|
|
177
|
+
t.style.transitionDuration = `${x}ms`, T.current = x;
|
|
178
|
+
} else
|
|
179
|
+
t.style.transitionDuration = typeof r == "string" ? r : `${r}ms`;
|
|
180
|
+
t.style[u] = y, t.style.transitionTimingFunction = f, H && H(t);
|
|
181
|
+
});
|
|
182
|
+
return /* @__PURE__ */ v(V, {
|
|
183
|
+
in: O,
|
|
184
|
+
onEnter: B,
|
|
185
|
+
onEntered: K,
|
|
186
|
+
onEntering: J,
|
|
187
|
+
onExit: Q,
|
|
188
|
+
onExited: X,
|
|
189
|
+
onExiting: Y,
|
|
190
|
+
addEndListener: (t) => {
|
|
191
|
+
a === "auto" && k.start(T.current || 0, t), b && b(E.current, t);
|
|
192
|
+
},
|
|
193
|
+
nodeRef: E,
|
|
194
|
+
timeout: a === "auto" ? null : a,
|
|
195
|
+
..._,
|
|
196
|
+
children: (t, {
|
|
197
|
+
ownerState: i,
|
|
198
|
+
...r
|
|
199
|
+
}) => /* @__PURE__ */ v(fe, {
|
|
200
|
+
as: U,
|
|
201
|
+
className: ne(c.root, L, {
|
|
202
|
+
entered: c.entered,
|
|
203
|
+
exited: !O && y === "0px" && c.hidden
|
|
204
|
+
}[t]),
|
|
205
|
+
style: {
|
|
206
|
+
[d ? "minWidth" : "minHeight"]: y,
|
|
207
|
+
...C
|
|
208
|
+
},
|
|
209
|
+
ref: q,
|
|
210
|
+
ownerState: {
|
|
211
|
+
...g,
|
|
212
|
+
state: t
|
|
213
|
+
},
|
|
214
|
+
...r,
|
|
215
|
+
children: /* @__PURE__ */ v(me, {
|
|
216
|
+
ownerState: {
|
|
217
|
+
...g,
|
|
218
|
+
state: t
|
|
219
|
+
},
|
|
220
|
+
className: c.wrapper,
|
|
221
|
+
ref: l,
|
|
222
|
+
children: /* @__PURE__ */ v(he, {
|
|
223
|
+
ownerState: {
|
|
224
|
+
...g,
|
|
225
|
+
state: t
|
|
226
|
+
},
|
|
227
|
+
className: c.wrapperInner,
|
|
228
|
+
children: F
|
|
229
|
+
})
|
|
230
|
+
})
|
|
231
|
+
})
|
|
232
|
+
});
|
|
233
|
+
});
|
|
234
|
+
process.env.NODE_ENV !== "production" && (R.propTypes = {
|
|
235
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
236
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
237
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
238
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
239
|
+
/**
|
|
240
|
+
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
241
|
+
* node and a done callback. Allows for more fine grained transition end
|
|
242
|
+
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
243
|
+
*/
|
|
244
|
+
addEndListener: e.func,
|
|
245
|
+
/**
|
|
246
|
+
* The content node to be collapsed.
|
|
247
|
+
*/
|
|
248
|
+
children: e.node,
|
|
249
|
+
/**
|
|
250
|
+
* Override or extend the styles applied to the component.
|
|
251
|
+
*/
|
|
252
|
+
classes: e.object,
|
|
253
|
+
/**
|
|
254
|
+
* @ignore
|
|
255
|
+
*/
|
|
256
|
+
className: e.string,
|
|
257
|
+
/**
|
|
258
|
+
* The width (horizontal) or height (vertical) of the container when collapsed.
|
|
259
|
+
* @default '0px'
|
|
260
|
+
*/
|
|
261
|
+
collapsedSize: e.oneOfType([e.number, e.string]),
|
|
262
|
+
/**
|
|
263
|
+
* The component used for the root node.
|
|
264
|
+
* Either a string to use a HTML element or a component.
|
|
265
|
+
*/
|
|
266
|
+
component: ce,
|
|
267
|
+
/**
|
|
268
|
+
* The transition timing function.
|
|
269
|
+
* You may specify a single easing or a object containing enter and exit values.
|
|
270
|
+
*/
|
|
271
|
+
easing: e.oneOfType([e.shape({
|
|
272
|
+
enter: e.string,
|
|
273
|
+
exit: e.string
|
|
274
|
+
}), e.string]),
|
|
275
|
+
/**
|
|
276
|
+
* If `true`, the component will transition in.
|
|
277
|
+
*/
|
|
278
|
+
in: e.bool,
|
|
279
|
+
/**
|
|
280
|
+
* @ignore
|
|
281
|
+
*/
|
|
282
|
+
onEnter: e.func,
|
|
283
|
+
/**
|
|
284
|
+
* @ignore
|
|
285
|
+
*/
|
|
286
|
+
onEntered: e.func,
|
|
287
|
+
/**
|
|
288
|
+
* @ignore
|
|
289
|
+
*/
|
|
290
|
+
onEntering: e.func,
|
|
291
|
+
/**
|
|
292
|
+
* @ignore
|
|
293
|
+
*/
|
|
294
|
+
onExit: e.func,
|
|
295
|
+
/**
|
|
296
|
+
* @ignore
|
|
297
|
+
*/
|
|
298
|
+
onExited: e.func,
|
|
299
|
+
/**
|
|
300
|
+
* @ignore
|
|
301
|
+
*/
|
|
302
|
+
onExiting: e.func,
|
|
303
|
+
/**
|
|
304
|
+
* The transition orientation.
|
|
305
|
+
* @default 'vertical'
|
|
306
|
+
*/
|
|
307
|
+
orientation: e.oneOf(["horizontal", "vertical"]),
|
|
308
|
+
/**
|
|
309
|
+
* @ignore
|
|
310
|
+
*/
|
|
311
|
+
style: e.object,
|
|
312
|
+
/**
|
|
313
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
314
|
+
*/
|
|
315
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
316
|
+
/**
|
|
317
|
+
* The duration for the transition, in milliseconds.
|
|
318
|
+
* You may specify a single timeout for all transitions, or individually with an object.
|
|
319
|
+
*
|
|
320
|
+
* Set to 'auto' to automatically calculate transition time based on height.
|
|
321
|
+
* @default duration.standard
|
|
322
|
+
*/
|
|
323
|
+
timeout: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
|
|
324
|
+
appear: e.number,
|
|
325
|
+
enter: e.number,
|
|
326
|
+
exit: e.number
|
|
327
|
+
})])
|
|
328
|
+
});
|
|
329
|
+
R && (R.muiSupportAuto = !0);
|
|
330
|
+
export {
|
|
331
|
+
R as C,
|
|
332
|
+
Se as c,
|
|
333
|
+
de as g
|
|
334
|
+
};
|