@cgi-learning-hub/ui 1.3.5-dev.1739206891 → 1.3.5-dev.1739269730
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/Button-C-bZSJCq.cjs +28 -0
- package/dist/Button-CSNPv43f.js +542 -0
- package/dist/CloseRounded-Cu-sn6XC.cjs +1 -0
- package/dist/CloseRounded-Df8vYhLX.js +8 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +4 -297
- package/dist/components/Button/index.cjs.js +1 -1
- package/dist/components/Button/index.es.js +2 -2
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +12 -14
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.cjs.js +1 -1
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +4 -3
- package/dist/components/FileList/FileIcon.cjs.js +1 -0
- package/dist/components/FileList/FileIcon.d.ts +3 -0
- package/dist/components/FileList/FileIcon.es.js +56 -0
- package/dist/components/FileList/FileInfosSeparator.cjs.js +1 -0
- package/dist/components/FileList/FileInfosSeparator.d.ts +1 -0
- package/dist/components/FileList/FileInfosSeparator.es.js +14 -0
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.d.ts +5 -3
- package/dist/components/FileList/FileList.es.js +23 -14
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.d.ts +9 -5
- package/dist/components/FileList/FileListItem.es.js +97 -24
- package/dist/components/FileList/utils.cjs.js +1 -0
- package/dist/components/FileList/utils.d.ts +2 -0
- package/dist/components/FileList/utils.es.js +13 -0
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +40 -39
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +212 -213
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.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/FileList.stories.cjs.js +8 -1
- package/dist/components/stories/FileList.stories.es.js +145 -19
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +212 -213
- package/package.json +1 -1
- package/dist/CircularProgress-BgUNlpbU.js +0 -253
- package/dist/CircularProgress-nxAXvjY0.cjs +0 -28
- package/dist/Delete-DCHX_nNr.js +0 -8
- package/dist/Delete-Z2rf9szx.cjs +0 -1
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
import * as O from "react";
|
|
2
|
-
import { I as T, H as R, G as N, P as r } from "./generateUtilityClasses-v9KcqdK1.js";
|
|
3
|
-
import { m as P } from "./memoTheme-D-rebSfX.js";
|
|
4
|
-
import { c as j } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
5
|
-
import { jsx as h } from "react/jsx-runtime";
|
|
6
|
-
import { u as I, s as g, c as U } from "./DefaultPropsProvider-CmOKr9hq.js";
|
|
7
|
-
import { c } from "./capitalize-yX_QSknw.js";
|
|
8
|
-
import { c as E } from "./chainPropTypes-D9lkm76m.js";
|
|
9
|
-
import { css as x, keyframes as w } from "@emotion/react";
|
|
10
|
-
function z(e) {
|
|
11
|
-
return T("MuiCircularProgress", e);
|
|
12
|
-
}
|
|
13
|
-
const X = R("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]), a = 44, y = w`
|
|
14
|
-
0% {
|
|
15
|
-
transform: rotate(0deg);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
100% {
|
|
19
|
-
transform: rotate(360deg);
|
|
20
|
-
}
|
|
21
|
-
`, v = w`
|
|
22
|
-
0% {
|
|
23
|
-
stroke-dasharray: 1px, 200px;
|
|
24
|
-
stroke-dashoffset: 0;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
50% {
|
|
28
|
-
stroke-dasharray: 100px, 200px;
|
|
29
|
-
stroke-dashoffset: -15px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
100% {
|
|
33
|
-
stroke-dasharray: 100px, 200px;
|
|
34
|
-
stroke-dashoffset: -125px;
|
|
35
|
-
}
|
|
36
|
-
`, F = typeof y != "string" ? x`
|
|
37
|
-
animation: ${y} 1.4s linear infinite;
|
|
38
|
-
` : null, V = typeof v != "string" ? x`
|
|
39
|
-
animation: ${v} 1.4s ease-in-out infinite;
|
|
40
|
-
` : null, A = (e) => {
|
|
41
|
-
const {
|
|
42
|
-
classes: s,
|
|
43
|
-
variant: t,
|
|
44
|
-
color: o,
|
|
45
|
-
disableShrink: l
|
|
46
|
-
} = e, m = {
|
|
47
|
-
root: ["root", t, `color${c(o)}`],
|
|
48
|
-
svg: ["svg"],
|
|
49
|
-
circle: ["circle", `circle${c(t)}`, l && "circleDisableShrink"]
|
|
50
|
-
};
|
|
51
|
-
return U(m, z, s);
|
|
52
|
-
}, G = g("span", {
|
|
53
|
-
name: "MuiCircularProgress",
|
|
54
|
-
slot: "Root",
|
|
55
|
-
overridesResolver: (e, s) => {
|
|
56
|
-
const {
|
|
57
|
-
ownerState: t
|
|
58
|
-
} = e;
|
|
59
|
-
return [s.root, s[t.variant], s[`color${c(t.color)}`]];
|
|
60
|
-
}
|
|
61
|
-
})(P(({
|
|
62
|
-
theme: e
|
|
63
|
-
}) => ({
|
|
64
|
-
display: "inline-block",
|
|
65
|
-
variants: [{
|
|
66
|
-
props: {
|
|
67
|
-
variant: "determinate"
|
|
68
|
-
},
|
|
69
|
-
style: {
|
|
70
|
-
transition: e.transitions.create("transform")
|
|
71
|
-
}
|
|
72
|
-
}, {
|
|
73
|
-
props: {
|
|
74
|
-
variant: "indeterminate"
|
|
75
|
-
},
|
|
76
|
-
style: F || {
|
|
77
|
-
animation: `${y} 1.4s linear infinite`
|
|
78
|
-
}
|
|
79
|
-
}, ...Object.entries(e.palette).filter(j()).map(([s]) => ({
|
|
80
|
-
props: {
|
|
81
|
-
color: s
|
|
82
|
-
},
|
|
83
|
-
style: {
|
|
84
|
-
color: (e.vars || e).palette[s].main
|
|
85
|
-
}
|
|
86
|
-
}))]
|
|
87
|
-
}))), K = g("svg", {
|
|
88
|
-
name: "MuiCircularProgress",
|
|
89
|
-
slot: "Svg",
|
|
90
|
-
overridesResolver: (e, s) => s.svg
|
|
91
|
-
})({
|
|
92
|
-
display: "block"
|
|
93
|
-
// Keeps the progress centered
|
|
94
|
-
}), B = g("circle", {
|
|
95
|
-
name: "MuiCircularProgress",
|
|
96
|
-
slot: "Circle",
|
|
97
|
-
overridesResolver: (e, s) => {
|
|
98
|
-
const {
|
|
99
|
-
ownerState: t
|
|
100
|
-
} = e;
|
|
101
|
-
return [s.circle, s[`circle${c(t.variant)}`], t.disableShrink && s.circleDisableShrink];
|
|
102
|
-
}
|
|
103
|
-
})(P(({
|
|
104
|
-
theme: e
|
|
105
|
-
}) => ({
|
|
106
|
-
stroke: "currentColor",
|
|
107
|
-
variants: [{
|
|
108
|
-
props: {
|
|
109
|
-
variant: "determinate"
|
|
110
|
-
},
|
|
111
|
-
style: {
|
|
112
|
-
transition: e.transitions.create("stroke-dashoffset")
|
|
113
|
-
}
|
|
114
|
-
}, {
|
|
115
|
-
props: {
|
|
116
|
-
variant: "indeterminate"
|
|
117
|
-
},
|
|
118
|
-
style: {
|
|
119
|
-
// Some default value that looks fine waiting for the animation to kicks in.
|
|
120
|
-
strokeDasharray: "80px, 200px",
|
|
121
|
-
strokeDashoffset: 0
|
|
122
|
-
// Add the unit to fix a Edge 16 and below bug.
|
|
123
|
-
}
|
|
124
|
-
}, {
|
|
125
|
-
props: ({
|
|
126
|
-
ownerState: s
|
|
127
|
-
}) => s.variant === "indeterminate" && !s.disableShrink,
|
|
128
|
-
style: V || {
|
|
129
|
-
// At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
|
|
130
|
-
animation: `${v} 1.4s ease-in-out infinite`
|
|
131
|
-
}
|
|
132
|
-
}]
|
|
133
|
-
}))), H = /* @__PURE__ */ O.forwardRef(function(s, t) {
|
|
134
|
-
const o = I({
|
|
135
|
-
props: s,
|
|
136
|
-
name: "MuiCircularProgress"
|
|
137
|
-
}), {
|
|
138
|
-
className: l,
|
|
139
|
-
color: m = "primary",
|
|
140
|
-
disableShrink: $ = !1,
|
|
141
|
-
size: p = 40,
|
|
142
|
-
style: D,
|
|
143
|
-
thickness: i = 3.6,
|
|
144
|
-
value: f = 0,
|
|
145
|
-
variant: k = "indeterminate",
|
|
146
|
-
...M
|
|
147
|
-
} = o, n = {
|
|
148
|
-
...o,
|
|
149
|
-
color: m,
|
|
150
|
-
disableShrink: $,
|
|
151
|
-
size: p,
|
|
152
|
-
thickness: i,
|
|
153
|
-
value: f,
|
|
154
|
-
variant: k
|
|
155
|
-
}, u = A(n), d = {}, b = {}, C = {};
|
|
156
|
-
if (k === "determinate") {
|
|
157
|
-
const S = 2 * Math.PI * ((a - i) / 2);
|
|
158
|
-
d.strokeDasharray = S.toFixed(3), C["aria-valuenow"] = Math.round(f), d.strokeDashoffset = `${((100 - f) / 100 * S).toFixed(3)}px`, b.transform = "rotate(-90deg)";
|
|
159
|
-
}
|
|
160
|
-
return /* @__PURE__ */ h(G, {
|
|
161
|
-
className: N(u.root, l),
|
|
162
|
-
style: {
|
|
163
|
-
width: p,
|
|
164
|
-
height: p,
|
|
165
|
-
...b,
|
|
166
|
-
...D
|
|
167
|
-
},
|
|
168
|
-
ownerState: n,
|
|
169
|
-
ref: t,
|
|
170
|
-
role: "progressbar",
|
|
171
|
-
...C,
|
|
172
|
-
...M,
|
|
173
|
-
children: /* @__PURE__ */ h(K, {
|
|
174
|
-
className: u.svg,
|
|
175
|
-
ownerState: n,
|
|
176
|
-
viewBox: `${a / 2} ${a / 2} ${a} ${a}`,
|
|
177
|
-
children: /* @__PURE__ */ h(B, {
|
|
178
|
-
className: u.circle,
|
|
179
|
-
style: d,
|
|
180
|
-
ownerState: n,
|
|
181
|
-
cx: a,
|
|
182
|
-
cy: a,
|
|
183
|
-
r: (a - i) / 2,
|
|
184
|
-
fill: "none",
|
|
185
|
-
strokeWidth: i
|
|
186
|
-
})
|
|
187
|
-
})
|
|
188
|
-
});
|
|
189
|
-
});
|
|
190
|
-
process.env.NODE_ENV !== "production" && (H.propTypes = {
|
|
191
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
192
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
193
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
194
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
195
|
-
/**
|
|
196
|
-
* Override or extend the styles applied to the component.
|
|
197
|
-
*/
|
|
198
|
-
classes: r.object,
|
|
199
|
-
/**
|
|
200
|
-
* @ignore
|
|
201
|
-
*/
|
|
202
|
-
className: r.string,
|
|
203
|
-
/**
|
|
204
|
-
* The color of the component.
|
|
205
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
206
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
207
|
-
* @default 'primary'
|
|
208
|
-
*/
|
|
209
|
-
color: r.oneOfType([r.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), r.string]),
|
|
210
|
-
/**
|
|
211
|
-
* If `true`, the shrink animation is disabled.
|
|
212
|
-
* This only works if variant is `indeterminate`.
|
|
213
|
-
* @default false
|
|
214
|
-
*/
|
|
215
|
-
disableShrink: E(r.bool, (e) => e.disableShrink && e.variant && e.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
|
|
216
|
-
/**
|
|
217
|
-
* The size of the component.
|
|
218
|
-
* If using a number, the pixel unit is assumed.
|
|
219
|
-
* If using a string, you need to provide the CSS unit, for example '3rem'.
|
|
220
|
-
* @default 40
|
|
221
|
-
*/
|
|
222
|
-
size: r.oneOfType([r.number, r.string]),
|
|
223
|
-
/**
|
|
224
|
-
* @ignore
|
|
225
|
-
*/
|
|
226
|
-
style: r.object,
|
|
227
|
-
/**
|
|
228
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
229
|
-
*/
|
|
230
|
-
sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
|
|
231
|
-
/**
|
|
232
|
-
* The thickness of the circle.
|
|
233
|
-
* @default 3.6
|
|
234
|
-
*/
|
|
235
|
-
thickness: r.number,
|
|
236
|
-
/**
|
|
237
|
-
* The value of the progress indicator for the determinate variant.
|
|
238
|
-
* Value between 0 and 100.
|
|
239
|
-
* @default 0
|
|
240
|
-
*/
|
|
241
|
-
value: r.number,
|
|
242
|
-
/**
|
|
243
|
-
* The variant to use.
|
|
244
|
-
* Use indeterminate when there is no progress value.
|
|
245
|
-
* @default 'indeterminate'
|
|
246
|
-
*/
|
|
247
|
-
variant: r.oneOf(["determinate", "indeterminate"])
|
|
248
|
-
});
|
|
249
|
-
export {
|
|
250
|
-
H as C,
|
|
251
|
-
X as c,
|
|
252
|
-
z as g
|
|
253
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";const $=require("react"),r=require("./generateUtilityClasses-0dYt6eGZ.cjs"),S=require("./memoTheme-D1tPxCd9.cjs"),M=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),g=require("react/jsx-runtime"),a=require("./DefaultPropsProvider-PRhNsS_3.cjs"),l=require("./capitalize-Cq3s4y8R.cjs"),R=require("./chainPropTypes-CEUi6Jb4.cjs"),p=require("@emotion/react");function q(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return s.default=e,Object.freeze(s)}const z=q($);function x(e){return r.generateUtilityClass("MuiCircularProgress",e)}const N=r.generateUtilityClasses("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]),o=44,h=p.keyframes`
|
|
2
|
-
0% {
|
|
3
|
-
transform: rotate(0deg);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
100% {
|
|
7
|
-
transform: rotate(360deg);
|
|
8
|
-
}
|
|
9
|
-
`,v=p.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
|
-
`,U=typeof h!="string"?p.css`
|
|
25
|
-
animation: ${h} 1.4s linear infinite;
|
|
26
|
-
`:null,E=typeof v!="string"?p.css`
|
|
27
|
-
animation: ${v} 1.4s ease-in-out infinite;
|
|
28
|
-
`:null,F=e=>{const{classes:s,variant:t,color:i,disableShrink:u}=e,y={root:["root",t,`color${l.capitalize(i)}`],svg:["svg"],circle:["circle",`circle${l.capitalize(t)}`,u&&"circleDisableShrink"]};return a.composeClasses(y,x,s)},I=a.styled("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:t}=e;return[s.root,s[t.variant],s[`color${l.capitalize(t.color)}`]]}})(S.memoTheme(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:U||{animation:`${h} 1.4s linear infinite`}},...Object.entries(e.palette).filter(M.createSimplePaletteValueFilter()).map(([s])=>({props:{color:s},style:{color:(e.vars||e).palette[s].main}}))]}))),V=a.styled("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,s)=>s.svg})({display:"block"}),_=a.styled("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,s)=>{const{ownerState:t}=e;return[s.circle,s[`circle${l.capitalize(t.variant)}`],t.disableShrink&&s.circleDisableShrink]}})(S.memoTheme(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:s})=>s.variant==="indeterminate"&&!s.disableShrink,style:E||{animation:`${v} 1.4s ease-in-out infinite`}}]}))),w=z.forwardRef(function(s,t){const i=a.useDefaultProps({props:s,name:"MuiCircularProgress"}),{className:u,color:y="primary",disableShrink:D=!1,size:m=40,style:O,thickness:n=3.6,value:d=0,variant:T="indeterminate",...j}=i,c={...i,color:y,disableShrink:D,size:m,thickness:n,value:d,variant:T},f=F(c),P={},k={},b={};if(T==="determinate"){const C=2*Math.PI*((o-n)/2);P.strokeDasharray=C.toFixed(3),b["aria-valuenow"]=Math.round(d),P.strokeDashoffset=`${((100-d)/100*C).toFixed(3)}px`,k.transform="rotate(-90deg)"}return g.jsx(I,{className:r.clsx(f.root,u),style:{width:m,height:m,...k,...O},ownerState:c,ref:t,role:"progressbar",...b,...j,children:g.jsx(V,{className:f.svg,ownerState:c,viewBox:`${o/2} ${o/2} ${o} ${o}`,children:g.jsx(_,{className:f.circle,style:P,ownerState:c,cx:o,cy:o,r:(o-n)/2,fill:"none",strokeWidth:n})})})});process.env.NODE_ENV!=="production"&&(w.propTypes={classes:r.PropTypes.object,className:r.PropTypes.string,color:r.PropTypes.oneOfType([r.PropTypes.oneOf(["inherit","primary","secondary","error","info","success","warning"]),r.PropTypes.string]),disableShrink:R.chainPropTypes(r.PropTypes.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]),style:r.PropTypes.object,sx:r.PropTypes.oneOfType([r.PropTypes.arrayOf(r.PropTypes.oneOfType([r.PropTypes.func,r.PropTypes.object,r.PropTypes.bool])),r.PropTypes.func,r.PropTypes.object]),thickness:r.PropTypes.number,value:r.PropTypes.number,variant:r.PropTypes.oneOf(["determinate","indeterminate"])});exports.CircularProgress=w;exports.circularProgressClasses=N;exports.getCircularProgressUtilityClass=x;
|
package/dist/Delete-DCHX_nNr.js
DELETED
package/dist/Delete-Z2rf9szx.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),c=require("./createSvgIcon-CWNQW6u6.cjs"),t=c.createSvgIcon(e.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");exports.DeleteIcon=t;
|