@cgi-learning-hub/ui 1.2.0-dev.1724425171 → 1.2.0-dev.1724684294
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/{Box-5x1F2S3-.cjs → Box-2ZrLOc7U.cjs} +1 -1
- package/dist/{Box-Bawb5zHX.js → Box-BJvmuM0Y.js} +13 -13
- package/dist/{Button-C__-QOJY.js → Button-HyZp1VKI.js} +3 -3
- package/dist/{Button-DKIRmOzf.cjs → Button-NhaA68Of.cjs} +1 -1
- package/dist/{ButtonBase-Bw3wq81v.cjs → ButtonBase-CnINN-P4.cjs} +1 -1
- package/dist/{ButtonBase-4F5roLHd.js → ButtonBase-cOL6Mpcp.js} +26 -26
- package/dist/{CircularProgress-WnNPMTjD.cjs → CircularProgress-01RZzfpF.cjs} +1 -1
- package/dist/{CircularProgress-BNazIBar.js → CircularProgress-DO4r9-x8.js} +3 -3
- package/dist/{DatePicker-B0jLSEvZ.cjs → DatePicker-GTtXZK-p.cjs} +1 -1
- package/dist/{DatePicker-DGVeagTz.js → DatePicker-vhA6Fe5s.js} +17 -17
- package/dist/DefaultButton-BMmuKPgA.cjs +1 -0
- package/dist/{DefaultButton-F67BOmrx.js → DefaultButton-CKY6tuni.js} +6 -6
- package/dist/{IconButton-DhWgsgQ7.cjs → IconButton-3v-0zgZW.cjs} +1 -1
- package/dist/{IconButton-D_deQOvN.js → IconButton-BBfmzBP6.js} +4 -4
- package/dist/{InputAdornment-DYqMrYJz.cjs → InputAdornment-DHmtETz3.cjs} +1 -1
- package/dist/{InputAdornment-hNrnvXW9.js → InputAdornment-zaw7AFWU.js} +8 -8
- package/dist/{InputBase-BeZ70Fbf.cjs → InputBase-BpGQgBej.cjs} +1 -1
- package/dist/{InputBase-DNkF-TAp.js → InputBase-COUxfhh1.js} +4 -4
- package/dist/{Stack-BOcvai-O.cjs → Stack-D9IYPfJ8.cjs} +1 -1
- package/dist/{Stack-BJ2ths-g.js → Stack-Dlgk5t_M.js} +6 -6
- package/dist/{Tabs-CWujD0SK.js → Tabs-Blo-8Ro5.js} +6 -6
- package/dist/{Tabs-CG428TT3.cjs → Tabs-D0e7cB4l.cjs} +1 -1
- package/dist/{TextField-wYRnAj1v.cjs → TextField-8AuRLRIK.cjs} +1 -1
- package/dist/{TextField-DDmGQyEr.js → TextField-DG1754qQ.js} +6 -6
- package/dist/{Tooltip-D42pzHKW.js → Tooltip-C7ZUZylZ.js} +1209 -1254
- package/dist/{Tooltip-O30xWGZU.cjs → Tooltip-CFVJXplM.cjs} +23 -23
- package/dist/{Typography-B2XMXu83.js → Typography-DjrvRhOr.js} +2 -2
- package/dist/{Typography-DR_aF9lJ.cjs → Typography-YHooSvuR.cjs} +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/components/{feedback/Alert → Alert}/Alert.stories.cjs.js +1 -1
- package/dist/components/{feedback/Alert → Alert}/Alert.stories.es.js +7 -7
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -0
- package/dist/components/DatePicker/DatePicker.es.js +6 -0
- package/dist/components/DatePicker/DatePicker.stories.cjs.js +1 -0
- package/dist/components/DatePicker/DatePicker.stories.es.js +16 -0
- package/dist/components/{pickers → DatePicker}/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +4 -0
- package/dist/components/DefaultButton/DefaultButton.cjs.js +1 -0
- package/dist/components/{buttons/DefaultButton → DefaultButton}/DefaultButton.es.js +2 -2
- package/dist/components/DefaultButton/DefaultButtonIcon.cjs.js +1 -0
- package/dist/components/{buttons/DefaultButton → DefaultButton}/DefaultButtonIcon.es.js +2 -2
- package/dist/components/DefaultButton/index.cjs.js +1 -0
- package/dist/components/DefaultButton/index.es.js +4 -0
- package/dist/components/Dropzone/Dropzone.cjs.js +3 -3
- package/dist/components/Dropzone/Dropzone.es.js +98 -98
- package/dist/components/Dropzone/Dropzone.stories.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.stories.es.js +1 -1
- package/dist/components/FileList/FileList.cjs.js +1 -0
- package/dist/components/{lists/FileList → FileList}/FileList.es.js +1 -1
- package/dist/components/FileList/FileList.stories.cjs.js +1 -0
- package/dist/components/{lists/FileList → FileList}/FileList.stories.es.js +3 -3
- package/dist/components/FileList/FileListItem.cjs.js +1 -0
- package/dist/components/{lists/FileList → FileList}/FileListItem.es.js +6 -6
- package/dist/components/IconButton.stories.cjs.js +1 -0
- package/dist/components/{buttons/IconButton.stories.es.js → IconButton.stories.es.js} +6 -6
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +2 -2
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.es.js +2 -2
- package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.stories.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -0
- package/dist/components/{inputs/PasswordInput → PasswordInput}/PasswordInput.es.js +9 -9
- package/dist/components/PasswordInput/PasswordInput.stories.cjs.js +1 -0
- package/dist/components/PasswordInput/PasswordInput.stories.es.js +16 -0
- package/dist/components/PrimaryButton/PrimaryButton.cjs.js +1 -0
- package/dist/components/{buttons/PrimaryButton → PrimaryButton}/PrimaryButton.es.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.stories.cjs.js +1 -0
- package/dist/components/{buttons/PrimaryButton → PrimaryButton}/PrimaryButton.stories.es.js +4 -4
- package/dist/components/QueryError/QueryError.cjs.js +1 -0
- package/dist/components/{feedback/QueryError → QueryError}/QueryError.es.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -0
- package/dist/components/{inputs/SearchInput → SearchInput}/SearchInput.es.js +4 -4
- package/dist/components/SearchInput/SearchInput.stories.cjs.js +1 -0
- package/dist/components/{inputs/SearchInput → SearchInput}/SearchInput.stories.es.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.cjs.js +1 -0
- package/dist/components/{buttons/SecondaryButton → SecondaryButton}/SecondaryButton.es.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.stories.cjs.js +1 -0
- package/dist/components/{buttons/SecondaryButton → SecondaryButton}/SecondaryButton.stories.es.js +9 -9
- package/dist/components/TabList.stories.cjs.js +1 -0
- package/dist/components/{lists/TabList.stories.es.js → TabList.stories.es.js} +9 -9
- package/dist/components/TextInput/TextInput.cjs.js +1 -0
- package/dist/components/{inputs/TextInput → TextInput}/TextInput.es.js +1 -1
- package/dist/components/TextInput/TextInput.stories.cjs.js +1 -0
- package/dist/components/{inputs/TextInput → TextInput}/TextInput.stories.es.js +7 -7
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +10 -15
- package/dist/components/index.es.js +267 -272
- package/dist/{createStyled-CzVedz8V.js → createStyled--XbpooZB.js} +2 -2
- package/dist/{createStyled-LobpFGWo.cjs → createStyled-CuYz_ckk.cjs} +1 -1
- package/dist/{createSvgIcon-BGm-SWUB.cjs → createSvgIcon-CUiH3cta.cjs} +1 -1
- package/dist/{createSvgIcon-B8vHI3I6.js → createSvgIcon-D29Io9jD.js} +2 -2
- package/dist/createSvgIcon-DTc4Xvfk.cjs +2 -0
- package/dist/{createSvgIcon-DjuUwmEp.js → createSvgIcon-DvOXtgXV.js} +13 -12
- package/dist/{fr-TRjulm1Q.cjs → fr-C4bcUC-9.cjs} +1 -1
- package/dist/{fr-By4s91yO.js → fr-CXEmlY0d.js} +1 -1
- package/dist/{identifier-D-ng7Qqa.js → identifier-CAQ9PWqs.js} +94 -95
- package/dist/{identifier-4KVhx666.cjs → identifier-CWIj084w.cjs} +6 -6
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +264 -269
- package/dist/{refType-BhXrhWFB.cjs → refType-D1DDOFsy.cjs} +1 -1
- package/dist/{refType-COGEdfch.js → refType-DiVIFcsY.js} +1 -1
- package/dist/{styled-ZF_yhfMW.cjs → styled-Bt4oYVnF.cjs} +1 -1
- package/dist/{styled-xiAudcD_.js → styled-Co-8YWfm.js} +1 -1
- package/dist/{useTheme-CjBTq22m.js → useTheme-1gSw-INq.js} +1 -1
- package/dist/{useTheme-B5RCz7rY.cjs → useTheme-Dm6RnXrf.cjs} +1 -1
- package/dist/{useTheme-iNHILPzK.js → useTheme-HJhneR9g.js} +7 -7
- package/dist/{useTheme-kqsjFBnC.cjs → useTheme-T2P7WhLG.cjs} +1 -1
- package/dist/useThemeProps-BKIVQv3E.js +17 -0
- package/dist/{useThemeProps-BM4fCFq5.js → useThemeProps-BfZ3lLQs.js} +2 -2
- package/dist/{useThemeProps-BHAsCmc4.cjs → useThemeProps-BpFUkYqe.cjs} +1 -1
- package/dist/{useThemeProps-B-Oq4Y2j.cjs → useThemeProps-Co5ylM0H.cjs} +1 -1
- package/package.json +1 -1
- package/dist/DefaultButton-y-mHSNFH.cjs +0 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +0 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +0 -1
- package/dist/components/buttons/DefaultButton/index.cjs.js +0 -1
- package/dist/components/buttons/DefaultButton/index.es.js +0 -4
- package/dist/components/buttons/IconButton.stories.cjs.js +0 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +0 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +0 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +0 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +0 -1
- package/dist/components/buttons/index.cjs.js +0 -1
- package/dist/components/buttons/index.d.ts +0 -3
- package/dist/components/buttons/index.es.js +0 -8
- package/dist/components/feedback/QueryError/QueryError.cjs.js +0 -1
- package/dist/components/feedback/index.cjs.js +0 -1
- package/dist/components/feedback/index.d.ts +0 -2
- package/dist/components/feedback/index.es.js +0 -6
- package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +0 -1
- package/dist/components/inputs/PasswordInput/PasswordInput.stories.cjs.js +0 -1
- package/dist/components/inputs/PasswordInput/PasswordInput.stories.es.js +0 -16
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +0 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +0 -1
- package/dist/components/inputs/TextInput/TextInput.cjs.js +0 -1
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +0 -1
- package/dist/components/inputs/index.cjs.js +0 -1
- package/dist/components/inputs/index.d.ts +0 -3
- package/dist/components/inputs/index.es.js +0 -8
- package/dist/components/lists/FileList/FileList.cjs.js +0 -1
- package/dist/components/lists/FileList/FileList.stories.cjs.js +0 -1
- package/dist/components/lists/FileList/FileListItem.cjs.js +0 -1
- package/dist/components/lists/TabList.stories.cjs.js +0 -1
- package/dist/components/lists/index.cjs.js +0 -1
- package/dist/components/lists/index.d.ts +0 -1
- package/dist/components/lists/index.es.js +0 -6
- package/dist/components/pickers/DatePicker/DatePicker.cjs.js +0 -1
- package/dist/components/pickers/DatePicker/DatePicker.es.js +0 -6
- package/dist/components/pickers/DatePicker/DatePicker.stories.cjs.js +0 -1
- package/dist/components/pickers/DatePicker/DatePicker.stories.es.js +0 -16
- package/dist/components/pickers/DatePicker/index.cjs.js +0 -1
- package/dist/components/pickers/DatePicker/index.es.js +0 -4
- package/dist/components/pickers/index.d.ts +0 -1
- package/dist/components/pickers/index.es.js +0 -4
- package/dist/createSvgIcon-CKlvKClV.cjs +0 -2
- package/dist/useThemeProps-BVvSbkPP.js +0 -17
- /package/dist/assets/{index.css → PasswordInput.css} +0 -0
- /package/dist/components/{feedback/Alert → Alert}/Alert.cjs.js +0 -0
- /package/dist/components/{feedback/Alert → Alert}/Alert.d.ts +0 -0
- /package/dist/components/{feedback/Alert → Alert}/Alert.es.js +0 -0
- /package/dist/components/{feedback/Alert → Alert}/Alert.stories.d.ts +0 -0
- /package/dist/components/{feedback/Alert → Alert}/index.cjs.js +0 -0
- /package/dist/components/{feedback/Alert → Alert}/index.d.ts +0 -0
- /package/dist/components/{feedback/Alert → Alert}/index.es.js +0 -0
- /package/dist/components/{pickers/DatePicker → DatePicker}/DatePicker.d.ts +0 -0
- /package/dist/components/{pickers/DatePicker → DatePicker}/DatePicker.stories.d.ts +0 -0
- /package/dist/components/{pickers/DatePicker → DatePicker}/index.d.ts +0 -0
- /package/dist/components/{buttons/DefaultButton → DefaultButton}/DefaultButton.d.ts +0 -0
- /package/dist/components/{buttons/DefaultButton → DefaultButton}/DefaultButtonIcon.d.ts +0 -0
- /package/dist/components/{buttons/DefaultButton → DefaultButton}/index.d.ts +0 -0
- /package/dist/components/{lists/FileList → FileList}/FileList.d.ts +0 -0
- /package/dist/components/{lists/FileList → FileList}/FileList.stories.d.ts +0 -0
- /package/dist/components/{lists/FileList → FileList}/FileListItem.d.ts +0 -0
- /package/dist/components/{lists/FileList → FileList}/index.cjs.js +0 -0
- /package/dist/components/{lists/FileList → FileList}/index.d.ts +0 -0
- /package/dist/components/{lists/FileList → FileList}/index.es.js +0 -0
- /package/dist/components/{buttons/IconButton.stories.d.ts → IconButton.stories.d.ts} +0 -0
- /package/dist/components/{inputs/PasswordInput → PasswordInput}/PasswordInput.d.ts +0 -0
- /package/dist/components/{inputs/PasswordInput → PasswordInput}/PasswordInput.stories.d.ts +0 -0
- /package/dist/components/{inputs/PasswordInput → PasswordInput}/index.cjs.js +0 -0
- /package/dist/components/{inputs/PasswordInput → PasswordInput}/index.d.ts +0 -0
- /package/dist/components/{inputs/PasswordInput → PasswordInput}/index.es.js +0 -0
- /package/dist/components/{buttons/PrimaryButton → PrimaryButton}/PrimaryButton.d.ts +0 -0
- /package/dist/components/{buttons/PrimaryButton → PrimaryButton}/PrimaryButton.stories.d.ts +0 -0
- /package/dist/components/{buttons/PrimaryButton → PrimaryButton}/index.cjs.js +0 -0
- /package/dist/components/{buttons/PrimaryButton → PrimaryButton}/index.d.ts +0 -0
- /package/dist/components/{buttons/PrimaryButton → PrimaryButton}/index.es.js +0 -0
- /package/dist/components/{feedback/QueryError → QueryError}/QueryError.d.ts +0 -0
- /package/dist/components/{feedback/QueryError → QueryError}/helpers.cjs.js +0 -0
- /package/dist/components/{feedback/QueryError → QueryError}/helpers.d.ts +0 -0
- /package/dist/components/{feedback/QueryError → QueryError}/helpers.es.js +0 -0
- /package/dist/components/{feedback/QueryError → QueryError}/index.cjs.js +0 -0
- /package/dist/components/{feedback/QueryError → QueryError}/index.d.ts +0 -0
- /package/dist/components/{feedback/QueryError → QueryError}/index.es.js +0 -0
- /package/dist/components/{inputs/SearchInput → SearchInput}/SearchInput.d.ts +0 -0
- /package/dist/components/{inputs/SearchInput → SearchInput}/SearchInput.stories.d.ts +0 -0
- /package/dist/components/{inputs/SearchInput → SearchInput}/index.cjs.js +0 -0
- /package/dist/components/{inputs/SearchInput → SearchInput}/index.d.ts +0 -0
- /package/dist/components/{inputs/SearchInput → SearchInput}/index.es.js +0 -0
- /package/dist/components/{buttons/SecondaryButton → SecondaryButton}/SecondaryButton.d.ts +0 -0
- /package/dist/components/{buttons/SecondaryButton → SecondaryButton}/SecondaryButton.stories.d.ts +0 -0
- /package/dist/components/{buttons/SecondaryButton → SecondaryButton}/index.cjs.js +0 -0
- /package/dist/components/{buttons/SecondaryButton → SecondaryButton}/index.d.ts +0 -0
- /package/dist/components/{buttons/SecondaryButton → SecondaryButton}/index.es.js +0 -0
- /package/dist/components/{lists/TabList.stories.d.ts → TabList.stories.d.ts} +0 -0
- /package/dist/components/{inputs/TextInput → TextInput}/TextInput.d.ts +0 -0
- /package/dist/components/{inputs/TextInput → TextInput}/TextInput.stories.d.ts +0 -0
- /package/dist/components/{inputs/TextInput → TextInput}/index.cjs.js +0 -0
- /package/dist/components/{inputs/TextInput → TextInput}/index.d.ts +0 -0
- /package/dist/components/{inputs/TextInput → TextInput}/index.es.js +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import nr, { jsxs as ve, jsx as
|
|
2
|
-
import { A as or, P as f } from "../../identifier-
|
|
3
|
-
import { r as ir } from "../../createSvgIcon-
|
|
4
|
-
import Fr, { useMemo as
|
|
5
|
-
import { S as Pr } from "../../Stack-
|
|
6
|
-
import { T as be } from "../../Typography-
|
|
7
|
-
var Fe = {},
|
|
1
|
+
import nr, { jsxs as ve, jsx as I, Fragment as Ue } from "react/jsx-runtime";
|
|
2
|
+
import { A as or, P as f } from "../../identifier-CAQ9PWqs.js";
|
|
3
|
+
import { r as ir } from "../../createSvgIcon-DvOXtgXV.js";
|
|
4
|
+
import Fr, { useMemo as T, useRef as Q, useReducer as xr, useEffect as ye, useCallback as A, forwardRef as _r, useImperativeHandle as jr, Fragment as Sr } from "react";
|
|
5
|
+
import { S as Pr } from "../../Stack-Dlgk5t_M.js";
|
|
6
|
+
import { T as be } from "../../Typography-DjrvRhOr.js";
|
|
7
|
+
var Fe = {}, Ir = or;
|
|
8
8
|
Object.defineProperty(Fe, "__esModule", {
|
|
9
9
|
value: !0
|
|
10
10
|
});
|
|
11
|
-
var ar = Fe.default = void 0,
|
|
12
|
-
ar = Fe.default = (0,
|
|
11
|
+
var ar = Fe.default = void 0, Tr = Ir(ir()), Cr = nr;
|
|
12
|
+
ar = Fe.default = (0, Tr.default)(/* @__PURE__ */ (0, Cr.jsx)("path", {
|
|
13
13
|
d: "M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"
|
|
14
14
|
}), "FileUpload");
|
|
15
15
|
var xe = {}, Rr = or;
|
|
@@ -22,23 +22,23 @@ ur = xe.default = (0, zr.default)(/* @__PURE__ */ (0, kr.jsx)("path", {
|
|
|
22
22
|
}), "UploadFile");
|
|
23
23
|
function C(e, r, t, n) {
|
|
24
24
|
function i(o) {
|
|
25
|
-
return o instanceof t ? o : new t(function(
|
|
26
|
-
|
|
25
|
+
return o instanceof t ? o : new t(function(u) {
|
|
26
|
+
u(o);
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
return new (t || (t = Promise))(function(o,
|
|
29
|
+
return new (t || (t = Promise))(function(o, u) {
|
|
30
30
|
function s(m) {
|
|
31
31
|
try {
|
|
32
32
|
l(n.next(m));
|
|
33
33
|
} catch (y) {
|
|
34
|
-
|
|
34
|
+
u(y);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
function d(m) {
|
|
38
38
|
try {
|
|
39
39
|
l(n.throw(m));
|
|
40
40
|
} catch (y) {
|
|
41
|
-
|
|
41
|
+
u(y);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
function l(m) {
|
|
@@ -51,10 +51,10 @@ function R(e, r) {
|
|
|
51
51
|
var t = { label: 0, sent: function() {
|
|
52
52
|
if (o[0] & 1) throw o[1];
|
|
53
53
|
return o[1];
|
|
54
|
-
}, trys: [], ops: [] }, n, i, o,
|
|
55
|
-
return
|
|
54
|
+
}, trys: [], ops: [] }, n, i, o, u = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
55
|
+
return u.next = s(0), u.throw = s(1), u.return = s(2), typeof Symbol == "function" && (u[Symbol.iterator] = function() {
|
|
56
56
|
return this;
|
|
57
|
-
}),
|
|
57
|
+
}), u;
|
|
58
58
|
function s(l) {
|
|
59
59
|
return function(m) {
|
|
60
60
|
return d([l, m]);
|
|
@@ -62,7 +62,7 @@ function R(e, r) {
|
|
|
62
62
|
}
|
|
63
63
|
function d(l) {
|
|
64
64
|
if (n) throw new TypeError("Generator is already executing.");
|
|
65
|
-
for (;
|
|
65
|
+
for (; u && (u = 0, l[0] && (t = 0)), t; ) try {
|
|
66
66
|
if (n = 1, i && (o = l[0] & 2 ? i.return : l[0] ? i.throw || ((o = i.return) && o.call(i), 0) : i.next) && !(o = o.call(i, l[1])).done) return o;
|
|
67
67
|
switch (i = 0, o && (l = [l[0] & 2, o.value]), l[0]) {
|
|
68
68
|
case 0:
|
|
@@ -110,16 +110,16 @@ function R(e, r) {
|
|
|
110
110
|
function qe(e, r) {
|
|
111
111
|
var t = typeof Symbol == "function" && e[Symbol.iterator];
|
|
112
112
|
if (!t) return e;
|
|
113
|
-
var n = t.call(e), i, o = [],
|
|
113
|
+
var n = t.call(e), i, o = [], u;
|
|
114
114
|
try {
|
|
115
115
|
for (; (r === void 0 || r-- > 0) && !(i = n.next()).done; ) o.push(i.value);
|
|
116
116
|
} catch (s) {
|
|
117
|
-
|
|
117
|
+
u = { error: s };
|
|
118
118
|
} finally {
|
|
119
119
|
try {
|
|
120
120
|
i && !i.done && (t = n.return) && t.call(n);
|
|
121
121
|
} finally {
|
|
122
|
-
if (
|
|
122
|
+
if (u) throw u.error;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
return o;
|
|
@@ -348,9 +348,9 @@ function lr(e) {
|
|
|
348
348
|
return new Promise(function(t, n) {
|
|
349
349
|
var i = [];
|
|
350
350
|
function o() {
|
|
351
|
-
var
|
|
351
|
+
var u = this;
|
|
352
352
|
r.readEntries(function(s) {
|
|
353
|
-
return C(
|
|
353
|
+
return C(u, void 0, void 0, function() {
|
|
354
354
|
var d, l, m;
|
|
355
355
|
return R(this, function(y) {
|
|
356
356
|
switch (y.label) {
|
|
@@ -399,8 +399,8 @@ function Yr(e) {
|
|
|
399
399
|
var Vr = function(e, r) {
|
|
400
400
|
if (e && r) {
|
|
401
401
|
var t = Array.isArray(r) ? r : r.split(","), n = e.name || "", i = (e.type || "").toLowerCase(), o = i.replace(/\/.*$/, "");
|
|
402
|
-
return t.some(function(
|
|
403
|
-
var s =
|
|
402
|
+
return t.some(function(u) {
|
|
403
|
+
var s = u.trim().toLowerCase();
|
|
404
404
|
return s.charAt(0) === "." ? n.toLowerCase().endsWith(s) : s.endsWith("/*") ? o === s.replace(/\/.*$/, "") : i === s;
|
|
405
405
|
});
|
|
406
406
|
}
|
|
@@ -467,9 +467,9 @@ function we(e, r) {
|
|
|
467
467
|
function et(e, r) {
|
|
468
468
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
469
469
|
if (t != null) {
|
|
470
|
-
var n = [], i = !0, o = !1,
|
|
470
|
+
var n = [], i = !0, o = !1, u, s;
|
|
471
471
|
try {
|
|
472
|
-
for (t = t.call(e); !(i = (
|
|
472
|
+
for (t = t.call(e); !(i = (u = t.next()).done) && (n.push(u.value), !(r && n.length === r)); i = !0)
|
|
473
473
|
;
|
|
474
474
|
} catch (d) {
|
|
475
475
|
o = !0, s = d;
|
|
@@ -526,8 +526,8 @@ function x(e) {
|
|
|
526
526
|
return e != null;
|
|
527
527
|
}
|
|
528
528
|
function ct(e) {
|
|
529
|
-
var r = e.files, t = e.accept, n = e.minSize, i = e.maxSize, o = e.multiple,
|
|
530
|
-
return !o && r.length > 1 || o &&
|
|
529
|
+
var r = e.files, t = e.accept, n = e.minSize, i = e.maxSize, o = e.multiple, u = e.maxFiles, s = e.validator;
|
|
530
|
+
return !o && r.length > 1 || o && u >= 1 && r.length > u ? !1 : r.every(function(d) {
|
|
531
531
|
var l = pr(d, t), m = W(l, 1), y = m[0], z = dr(d, n, i), k = W(z, 1), L = k[0], M = s ? s(d) : null;
|
|
532
532
|
return y && L && !M;
|
|
533
533
|
});
|
|
@@ -557,8 +557,8 @@ function E() {
|
|
|
557
557
|
for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
|
|
558
558
|
r[t] = arguments[t];
|
|
559
559
|
return function(n) {
|
|
560
|
-
for (var i = arguments.length, o = new Array(i > 1 ? i - 1 : 0),
|
|
561
|
-
o[
|
|
560
|
+
for (var i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), u = 1; u < i; u++)
|
|
561
|
+
o[u - 1] = arguments[u];
|
|
562
562
|
return r.some(function(s) {
|
|
563
563
|
return !ee(n) && s && s.apply(void 0, [n].concat(o)), ee(n);
|
|
564
564
|
});
|
|
@@ -570,11 +570,11 @@ function pt() {
|
|
|
570
570
|
function dt(e) {
|
|
571
571
|
if (x(e)) {
|
|
572
572
|
var r = Object.entries(e).filter(function(t) {
|
|
573
|
-
var n = W(t, 2), i = n[0], o = n[1],
|
|
574
|
-
return mr(i) || (console.warn('Skipped "'.concat(i, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),
|
|
573
|
+
var n = W(t, 2), i = n[0], o = n[1], u = !0;
|
|
574
|
+
return mr(i) || (console.warn('Skipped "'.concat(i, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), u = !1), (!Array.isArray(o) || !o.every(gr)) && (console.warn('Skipped "'.concat(i, '" because an invalid file extension was provided.')), u = !1), u;
|
|
575
575
|
}).reduce(function(t, n) {
|
|
576
|
-
var i = W(n, 2), o = i[0],
|
|
577
|
-
return Qe(Qe({}, t), {}, sr({}, o,
|
|
576
|
+
var i = W(n, 2), o = i[0], u = i[1];
|
|
577
|
+
return Qe(Qe({}, t), {}, sr({}, o, u));
|
|
578
578
|
}, {});
|
|
579
579
|
return [{
|
|
580
580
|
// description is required due to https://crbug.com/1264708
|
|
@@ -643,9 +643,9 @@ function Ae(e, r) {
|
|
|
643
643
|
function xt(e, r) {
|
|
644
644
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
645
645
|
if (t != null) {
|
|
646
|
-
var n = [], i = !0, o = !1,
|
|
646
|
+
var n = [], i = !0, o = !1, u, s;
|
|
647
647
|
try {
|
|
648
|
-
for (t = t.call(e); !(i = (
|
|
648
|
+
for (t = t.call(e); !(i = (u = t.next()).done) && (n.push(u.value), !(r && n.length === r)); i = !0)
|
|
649
649
|
;
|
|
650
650
|
} catch (d) {
|
|
651
651
|
o = !0, s = d;
|
|
@@ -704,12 +704,12 @@ function jt(e, r) {
|
|
|
704
704
|
return t;
|
|
705
705
|
}
|
|
706
706
|
var _e = /* @__PURE__ */ _r(function(e, r) {
|
|
707
|
-
var t = e.children, n = re(e, yt), i = br(n), o = i.open,
|
|
707
|
+
var t = e.children, n = re(e, yt), i = br(n), o = i.open, u = re(i, bt);
|
|
708
708
|
return jr(r, function() {
|
|
709
709
|
return {
|
|
710
710
|
open: o
|
|
711
711
|
};
|
|
712
|
-
}, [o]), /* @__PURE__ */ Fr.createElement(Sr, null, t(p(p({},
|
|
712
|
+
}, [o]), /* @__PURE__ */ Fr.createElement(Sr, null, t(p(p({}, u), {}, {
|
|
713
713
|
open: o
|
|
714
714
|
})));
|
|
715
715
|
});
|
|
@@ -909,19 +909,19 @@ var Oe = {
|
|
|
909
909
|
fileRejections: []
|
|
910
910
|
};
|
|
911
911
|
function br() {
|
|
912
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = p(p({}, yr), e), t = r.accept, n = r.disabled, i = r.getFilesFromEvent, o = r.maxSize,
|
|
912
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = p(p({}, yr), e), t = r.accept, n = r.disabled, i = r.getFilesFromEvent, o = r.maxSize, u = r.minSize, s = r.multiple, d = r.maxFiles, l = r.onDragEnter, m = r.onDragLeave, y = r.onDragOver, z = r.onDrop, k = r.onDropAccepted, L = r.onDropRejected, M = r.onFileDialogCancel, te = r.onFileDialogOpen, je = r.useFsAccessApi, Se = r.autoFocus, ne = r.preventDropOnDocument, Pe = r.noClick, oe = r.noKeyboard, Ie = r.noDrag, O = r.noDragEventsBubbling, ie = r.onError, $ = r.validator, K = T(function() {
|
|
913
913
|
return mt(t);
|
|
914
|
-
}, [t]),
|
|
914
|
+
}, [t]), Te = T(function() {
|
|
915
915
|
return dt(t);
|
|
916
|
-
}, [t]), ae =
|
|
916
|
+
}, [t]), ae = T(function() {
|
|
917
917
|
return typeof te == "function" ? te : tr;
|
|
918
|
-
}, [te]), U =
|
|
918
|
+
}, [te]), U = T(function() {
|
|
919
919
|
return typeof M == "function" ? M : tr;
|
|
920
920
|
}, [M]), b = Q(null), w = Q(null), hr = xr(St, Oe), Ce = he(hr, 2), ue = Ce[0], h = Ce[1], Dr = ue.isFocused, Re = ue.isFileDialogActive, q = Q(typeof window < "u" && window.isSecureContext && je && pt()), ze = function() {
|
|
921
921
|
!q.current && Re && setTimeout(function() {
|
|
922
922
|
if (w.current) {
|
|
923
|
-
var
|
|
924
|
-
|
|
923
|
+
var c = w.current.files;
|
|
924
|
+
c.length || (h({
|
|
925
925
|
type: "closeDialog"
|
|
926
926
|
}), U());
|
|
927
927
|
}
|
|
@@ -932,8 +932,8 @@ function br() {
|
|
|
932
932
|
window.removeEventListener("focus", ze, !1);
|
|
933
933
|
};
|
|
934
934
|
}, [w, Re, U, q]);
|
|
935
|
-
var _ = Q([]), ke = function(
|
|
936
|
-
b.current && b.current.contains(
|
|
935
|
+
var _ = Q([]), ke = function(c) {
|
|
936
|
+
b.current && b.current.contains(c.target) || (c.preventDefault(), _.current = []);
|
|
937
937
|
};
|
|
938
938
|
ye(function() {
|
|
939
939
|
return ne && (document.addEventListener("dragover", er, !1), document.addEventListener("drop", ke, !1)), function() {
|
|
@@ -946,12 +946,12 @@ function br() {
|
|
|
946
946
|
var F = A(function(a) {
|
|
947
947
|
ie ? ie(a) : console.error(a);
|
|
948
948
|
}, [ie]), Le = A(function(a) {
|
|
949
|
-
a.preventDefault(), a.persist(), V(a), _.current = [].concat(wt(_.current), [a.target]), X(a) && Promise.resolve(i(a)).then(function(
|
|
949
|
+
a.preventDefault(), a.persist(), V(a), _.current = [].concat(wt(_.current), [a.target]), X(a) && Promise.resolve(i(a)).then(function(c) {
|
|
950
950
|
if (!(ee(a) && !O)) {
|
|
951
|
-
var g =
|
|
952
|
-
files:
|
|
951
|
+
var g = c.length, v = g > 0 && ct({
|
|
952
|
+
files: c,
|
|
953
953
|
accept: K,
|
|
954
|
-
minSize:
|
|
954
|
+
minSize: u,
|
|
955
955
|
maxSize: o,
|
|
956
956
|
multiple: s,
|
|
957
957
|
maxFiles: d,
|
|
@@ -964,33 +964,33 @@ function br() {
|
|
|
964
964
|
type: "setDraggedFiles"
|
|
965
965
|
}), l && l(a);
|
|
966
966
|
}
|
|
967
|
-
}).catch(function(
|
|
968
|
-
return F(
|
|
967
|
+
}).catch(function(c) {
|
|
968
|
+
return F(c);
|
|
969
969
|
});
|
|
970
|
-
}, [i, l, F, O, K,
|
|
970
|
+
}, [i, l, F, O, K, u, o, s, d, $]), Me = A(function(a) {
|
|
971
971
|
a.preventDefault(), a.persist(), V(a);
|
|
972
|
-
var
|
|
973
|
-
if (
|
|
972
|
+
var c = X(a);
|
|
973
|
+
if (c && a.dataTransfer)
|
|
974
974
|
try {
|
|
975
975
|
a.dataTransfer.dropEffect = "copy";
|
|
976
976
|
} catch {
|
|
977
977
|
}
|
|
978
|
-
return
|
|
978
|
+
return c && y && y(a), !1;
|
|
979
979
|
}, [y, O]), $e = A(function(a) {
|
|
980
980
|
a.preventDefault(), a.persist(), V(a);
|
|
981
|
-
var
|
|
981
|
+
var c = _.current.filter(function(v) {
|
|
982
982
|
return b.current && b.current.contains(v);
|
|
983
|
-
}), g =
|
|
984
|
-
g !== -1 &&
|
|
983
|
+
}), g = c.indexOf(a.target);
|
|
984
|
+
g !== -1 && c.splice(g, 1), _.current = c, !(c.length > 0) && (h({
|
|
985
985
|
type: "setDraggedFiles",
|
|
986
986
|
isDragActive: !1,
|
|
987
987
|
isDragAccept: !1,
|
|
988
988
|
isDragReject: !1
|
|
989
989
|
}), X(a) && m && m(a));
|
|
990
|
-
}, [b, m, O]), N = A(function(a,
|
|
990
|
+
}, [b, m, O]), N = A(function(a, c) {
|
|
991
991
|
var g = [], v = [];
|
|
992
992
|
a.forEach(function(D) {
|
|
993
|
-
var H = pr(D, K), P = he(H, 2), le = P[0], se = P[1], fe = dr(D,
|
|
993
|
+
var H = pr(D, K), P = he(H, 2), le = P[0], se = P[1], fe = dr(D, u, o), J = he(fe, 2), pe = J[0], de = J[1], me = $ ? $(D) : null;
|
|
994
994
|
if (le && pe && !me)
|
|
995
995
|
g.push(D);
|
|
996
996
|
else {
|
|
@@ -1011,12 +1011,12 @@ function br() {
|
|
|
1011
1011
|
acceptedFiles: g,
|
|
1012
1012
|
fileRejections: v,
|
|
1013
1013
|
type: "setFiles"
|
|
1014
|
-
}), z && z(g, v,
|
|
1015
|
-
}, [h, s, K,
|
|
1016
|
-
a.preventDefault(), a.persist(), V(a), _.current = [], X(a) && Promise.resolve(i(a)).then(function(
|
|
1017
|
-
ee(a) && !O || N(
|
|
1018
|
-
}).catch(function(
|
|
1019
|
-
return F(
|
|
1014
|
+
}), z && z(g, v, c), v.length > 0 && L && L(v, c), g.length > 0 && k && k(g, c);
|
|
1015
|
+
}, [h, s, K, u, o, d, z, k, L, $]), G = A(function(a) {
|
|
1016
|
+
a.preventDefault(), a.persist(), V(a), _.current = [], X(a) && Promise.resolve(i(a)).then(function(c) {
|
|
1017
|
+
ee(a) && !O || N(c, a);
|
|
1018
|
+
}).catch(function(c) {
|
|
1019
|
+
return F(c);
|
|
1020
1020
|
}), h({
|
|
1021
1021
|
type: "reset"
|
|
1022
1022
|
});
|
|
@@ -1027,25 +1027,25 @@ function br() {
|
|
|
1027
1027
|
}), ae();
|
|
1028
1028
|
var a = {
|
|
1029
1029
|
multiple: s,
|
|
1030
|
-
types:
|
|
1030
|
+
types: Te
|
|
1031
1031
|
};
|
|
1032
|
-
window.showOpenFilePicker(a).then(function(
|
|
1033
|
-
return i(
|
|
1034
|
-
}).then(function(
|
|
1035
|
-
N(
|
|
1032
|
+
window.showOpenFilePicker(a).then(function(c) {
|
|
1033
|
+
return i(c);
|
|
1034
|
+
}).then(function(c) {
|
|
1035
|
+
N(c, null), h({
|
|
1036
1036
|
type: "closeDialog"
|
|
1037
1037
|
});
|
|
1038
|
-
}).catch(function(
|
|
1039
|
-
gt(
|
|
1038
|
+
}).catch(function(c) {
|
|
1039
|
+
gt(c) ? (U(c), h({
|
|
1040
1040
|
type: "closeDialog"
|
|
1041
|
-
})) : vt(
|
|
1041
|
+
})) : vt(c) ? (q.current = !1, w.current ? (w.current.value = null, w.current.click()) : F(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : F(c);
|
|
1042
1042
|
});
|
|
1043
1043
|
return;
|
|
1044
1044
|
}
|
|
1045
1045
|
w.current && (h({
|
|
1046
1046
|
type: "openDialog"
|
|
1047
1047
|
}), ae(), w.current.value = null, w.current.click());
|
|
1048
|
-
}, [h, ae, U, je, N, F,
|
|
1048
|
+
}, [h, ae, U, je, N, F, Te, s]), Ke = A(function(a) {
|
|
1049
1049
|
!b.current || !b.current.isEqualNode(a.target) || (a.key === " " || a.key === "Enter" || a.keyCode === 32 || a.keyCode === 13) && (a.preventDefault(), j());
|
|
1050
1050
|
}, [b, j]), He = A(function() {
|
|
1051
1051
|
h({
|
|
@@ -1057,17 +1057,17 @@ function br() {
|
|
|
1057
1057
|
});
|
|
1058
1058
|
}, []), Be = A(function() {
|
|
1059
1059
|
Pe || (ft() ? setTimeout(j, 0) : j());
|
|
1060
|
-
}, [Pe, j]), S = function(
|
|
1061
|
-
return n ? null :
|
|
1062
|
-
}, ce = function(
|
|
1063
|
-
return oe ? null : S(
|
|
1064
|
-
}, Y = function(
|
|
1065
|
-
return
|
|
1066
|
-
}, V = function(
|
|
1067
|
-
O &&
|
|
1068
|
-
}, wr =
|
|
1060
|
+
}, [Pe, j]), S = function(c) {
|
|
1061
|
+
return n ? null : c;
|
|
1062
|
+
}, ce = function(c) {
|
|
1063
|
+
return oe ? null : S(c);
|
|
1064
|
+
}, Y = function(c) {
|
|
1065
|
+
return Ie ? null : S(c);
|
|
1066
|
+
}, V = function(c) {
|
|
1067
|
+
O && c.stopPropagation();
|
|
1068
|
+
}, wr = T(function() {
|
|
1069
1069
|
return function() {
|
|
1070
|
-
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
1070
|
+
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = a.refKey, g = c === void 0 ? "ref" : c, v = a.role, D = a.onKeyDown, H = a.onFocus, P = a.onBlur, le = a.onClick, se = a.onDragEnter, fe = a.onDragOver, J = a.onDragLeave, pe = a.onDrop, de = re(a, ht);
|
|
1071
1071
|
return p(p(Ee({
|
|
1072
1072
|
onKeyDown: ce(E(D, Ke)),
|
|
1073
1073
|
onFocus: ce(E(H, He)),
|
|
@@ -1082,11 +1082,11 @@ function br() {
|
|
|
1082
1082
|
tabIndex: 0
|
|
1083
1083
|
} : {}), de);
|
|
1084
1084
|
};
|
|
1085
|
-
}, [b, Ke, He, We, Be, Le, Me, $e, G, oe,
|
|
1085
|
+
}, [b, Ke, He, We, Be, Le, Me, $e, G, oe, Ie, n]), Ar = A(function(a) {
|
|
1086
1086
|
a.stopPropagation();
|
|
1087
|
-
}, []), Er =
|
|
1087
|
+
}, []), Er = T(function() {
|
|
1088
1088
|
return function() {
|
|
1089
|
-
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
1089
|
+
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = a.refKey, g = c === void 0 ? "ref" : c, v = a.onChange, D = a.onClick, H = re(a, Dt), P = Ee({
|
|
1090
1090
|
accept: K,
|
|
1091
1091
|
multiple: s,
|
|
1092
1092
|
type: "file",
|
|
@@ -1152,7 +1152,7 @@ const kt = ({
|
|
|
1152
1152
|
information: t,
|
|
1153
1153
|
...n
|
|
1154
1154
|
}) => {
|
|
1155
|
-
const { getRootProps: i, getInputProps: o, isDragActive:
|
|
1155
|
+
const { getRootProps: i, getInputProps: o, isDragActive: u } = br(n);
|
|
1156
1156
|
return /* @__PURE__ */ ve(
|
|
1157
1157
|
Pr,
|
|
1158
1158
|
{
|
|
@@ -1170,14 +1170,14 @@ const kt = ({
|
|
|
1170
1170
|
},
|
|
1171
1171
|
...i(),
|
|
1172
1172
|
children: [
|
|
1173
|
-
/* @__PURE__ */
|
|
1174
|
-
|
|
1175
|
-
/* @__PURE__ */
|
|
1176
|
-
/* @__PURE__ */
|
|
1173
|
+
/* @__PURE__ */ I("input", { ...o() }),
|
|
1174
|
+
u ? /* @__PURE__ */ ve(Ue, { children: [
|
|
1175
|
+
/* @__PURE__ */ I(ar, { color: "primary" }),
|
|
1176
|
+
/* @__PURE__ */ I(be, { children: r })
|
|
1177
1177
|
] }) : /* @__PURE__ */ ve(Ue, { children: [
|
|
1178
|
-
/* @__PURE__ */
|
|
1179
|
-
/* @__PURE__ */
|
|
1180
|
-
t ? /* @__PURE__ */
|
|
1178
|
+
/* @__PURE__ */ I(ur, { color: "primary" }),
|
|
1179
|
+
/* @__PURE__ */ I(be, { children: e }),
|
|
1180
|
+
t ? /* @__PURE__ */ I(be, { fontSize: "0.875rem", color: "grey", children: t }) : null
|
|
1181
1181
|
] })
|
|
1182
1182
|
]
|
|
1183
1183
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),o=require("./Dropzone.cjs.js"),n={title:"Components/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),o=require("./Dropzone.cjs.js"),n={title:"Components/Dropzone",component:o,argTypes:{}},s=e=>r.jsx(o,{...e}),t=s.bind({});t.args={information:"SVG, PNG, JPG or GIF (max. 3MB)",onDrop:e=>alert("dropped")};exports.Default=t;exports.default=n;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import t from "./Dropzone.es.js";
|
|
3
3
|
const a = {
|
|
4
|
-
title: "Components/
|
|
4
|
+
title: "Components/Dropzone",
|
|
5
5
|
component: t,
|
|
6
6
|
argTypes: {
|
|
7
7
|
// Définissez ici vos paramètres d'histoires spécifiques aux arguments (args).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime");require("react");const t=require("./FileListItem.cjs.js"),o=require("../../Box-2ZrLOc7U.cjs"),n=({files:i=[]})=>r.jsx(o.Box,{sx:{display:"flex",flexDirection:"column",rowGap:"0.5rem"},children:i.map((s,e)=>r.jsx(t,{file:s,uploading:e%2===0},e))});module.exports=n;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import m from "./FileListItem.es.js";
|
|
4
|
-
import { B as e } from "
|
|
4
|
+
import { B as e } from "../../Box-BJvmuM0Y.js";
|
|
5
5
|
const f = ({
|
|
6
6
|
files: i = []
|
|
7
7
|
}) => /* @__PURE__ */ r(e, { sx: { display: "flex", flexDirection: "column", rowGap: "0.5rem" }, children: i.map((t, o) => /* @__PURE__ */ r(
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),t=require("./FileList.cjs.js"),l={title:"Components/FileList",component:t,argTypes:{}},n=e=>i.jsx(t,{...e}),s=n.bind({});s.args={files:[{name:"sample.csv",size:500,uploading:!1},{name:"components_lists_filelist.png",size:1780,uploading:!0}],onDelete:e=>alert("delete")};exports.Default=s;exports.default=l;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import t from "./FileList.es.js";
|
|
3
|
-
const
|
|
4
|
-
title: "Components/
|
|
3
|
+
const a = {
|
|
4
|
+
title: "Components/FileList",
|
|
5
5
|
component: t,
|
|
6
6
|
argTypes: {
|
|
7
7
|
// Définissez ici vos paramètres d'histoires spécifiques aux arguments (args).
|
|
@@ -24,5 +24,5 @@ l.args = {
|
|
|
24
24
|
};
|
|
25
25
|
export {
|
|
26
26
|
l as Default,
|
|
27
|
-
|
|
27
|
+
a as default
|
|
28
28
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),a=require("../../identifier-CWIj084w.cjs"),u=require("../../createSvgIcon-DTc4Xvfk.cjs"),x=require("react"),p=require("../../Box-2ZrLOc7U.cjs"),o=require("../../Typography-YHooSvuR.cjs"),f=require("../../IconButton-3v-0zgZW.cjs"),q=require("../../CircularProgress-01RZzfpF.cjs");var i={},h=a.interopRequireDefaultExports;Object.defineProperty(i,"__esModule",{value:!0});var n=i.default=void 0,j=h(u.requireCreateSvgIcon()),m=e;n=i.default=(0,j.default)((0,m.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");var s={},I=a.interopRequireDefaultExports;Object.defineProperty(s,"__esModule",{value:!0});var l=s.default=void 0,_=I(u.requireCreateSvgIcon()),g=e;l=s.default=(0,_.default)((0,g.jsx)("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile");const y=({file:r,uploading:c,onDelete:t})=>{const d=`${r.size} octets`,v=()=>t==null?void 0:t(r);return e.jsxs(p.Box,{sx:{display:"flex",alignItems:"center",columnGap:"1rem"},children:[e.jsx(l,{color:"primary"}),e.jsxs("div",{className:"text-start w-full",children:[e.jsx(o.Typography,{children:r.name}),e.jsx(o.Typography,{fontSize:"0.875rem",color:"grey",children:d})]}),e.jsx(f.IconButton,{onClick:v,disabled:c,children:c?e.jsx(q.CircularProgress,{size:24}):e.jsx(n,{})})]})},z=x.memo(y);module.exports=z;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import c, { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { A as m } from "
|
|
3
|
-
import { r as u } from "
|
|
2
|
+
import { A as m } from "../../identifier-CAQ9PWqs.js";
|
|
3
|
+
import { r as u } from "../../createSvgIcon-DvOXtgXV.js";
|
|
4
4
|
import v from "react";
|
|
5
|
-
import { B as _ } from "
|
|
6
|
-
import { T as l } from "
|
|
7
|
-
import { I as h } from "
|
|
8
|
-
import { C as x } from "
|
|
5
|
+
import { B as _ } from "../../Box-BJvmuM0Y.js";
|
|
6
|
+
import { T as l } from "../../Typography-DjrvRhOr.js";
|
|
7
|
+
import { I as h } from "../../IconButton-BBfmzBP6.js";
|
|
8
|
+
import { C as x } from "../../CircularProgress-DO4r9-x8.js";
|
|
9
9
|
var a = {}, I = m;
|
|
10
10
|
Object.defineProperty(a, "__esModule", {
|
|
11
11
|
value: !0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),u=require("../identifier-CWIj084w.cjs"),i=require("../createSvgIcon-DTc4Xvfk.cjs"),r=require("../IconButton-3v-0zgZW.cjs");var t={},s=u.interopRequireDefaultExports;Object.defineProperty(t,"__esModule",{value:!0});var c=t.default=void 0,a=s(i.requireCreateSvgIcon()),l=e;c=t.default=(0,a.default)((0,l.jsx)("path",{d:"M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12.01 2c2.13 0 3.99.47 6.03 1.52.25.13.34.43.21.67-.09.18-.26.28-.44.28M3.5 9.72c-.1 0-.2-.03-.29-.09-.23-.16-.28-.47-.12-.7.99-1.4 2.25-2.5 3.75-3.27C9.98 4.04 14 4.03 17.15 5.65c1.5.77 2.76 1.86 3.75 3.25.16.22.11.54-.12.7-.23.16-.54.11-.7-.12-.9-1.26-2.04-2.25-3.39-2.94-2.87-1.47-6.54-1.47-9.4.01-1.36.7-2.5 1.7-3.4 2.96-.08.14-.23.21-.39.21m6.25 12.07c-.13 0-.26-.05-.35-.15-.87-.87-1.34-1.43-2.01-2.64-.69-1.23-1.05-2.73-1.05-4.34 0-2.97 2.54-5.39 5.66-5.39s5.66 2.42 5.66 5.39c0 .28-.22.5-.5.5s-.5-.22-.5-.5c0-2.42-2.09-4.39-4.66-4.39-2.57 0-4.66 1.97-4.66 4.39 0 1.44.32 2.77.93 3.85.64 1.15 1.08 1.64 1.85 2.42.19.2.19.51 0 .71-.11.1-.24.15-.37.15m7.17-1.85c-1.19 0-2.24-.3-3.1-.89-1.49-1.01-2.38-2.65-2.38-4.39 0-.28.22-.5.5-.5s.5.22.5.5c0 1.41.72 2.74 1.94 3.56.71.48 1.54.71 2.54.71.24 0 .64-.03 1.04-.1.27-.05.53.13.58.41.05.27-.13.53-.41.58-.57.11-1.07.12-1.21.12M14.91 22c-.04 0-.09-.01-.13-.02-1.59-.44-2.63-1.03-3.72-2.1-1.4-1.39-2.17-3.24-2.17-5.22 0-1.62 1.38-2.94 3.08-2.94 1.7 0 3.08 1.32 3.08 2.94 0 1.07.93 1.94 2.08 1.94s2.08-.87 2.08-1.94c0-3.77-3.25-6.83-7.25-6.83-2.84 0-5.44 1.58-6.61 4.03-.39.81-.59 1.76-.59 2.8 0 .78.07 2.01.67 3.61.1.26-.03.55-.29.64-.26.1-.55-.04-.64-.29-.49-1.31-.73-2.61-.73-3.96 0-1.2.23-2.29.68-3.24 1.33-2.79 4.28-4.6 7.51-4.6 4.55 0 8.25 3.51 8.25 7.83 0 1.62-1.38 2.94-3.08 2.94s-3.08-1.32-3.08-2.94c0-1.07-.93-1.94-2.08-1.94s-2.08.87-2.08 1.94c0 1.71.66 3.31 1.87 4.51.95.94 1.86 1.46 3.27 1.85.27.07.42.35.35.61-.05.23-.26.38-.47.38"}),"Fingerprint");const d={title:"Components/IconButton",component:r.IconButton,argTypes:{}},f=o=>e.jsx(r.IconButton,{...o}),n=f.bind({});n.args={children:e.jsx(c,{}),onClick:()=>alert("Alert"),disabled:!1};exports.Default=n;exports.default=d;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import c, { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { A as s } from "
|
|
3
|
-
import { r as n } from "
|
|
4
|
-
import { I as r } from "
|
|
2
|
+
import { A as s } from "../identifier-CAQ9PWqs.js";
|
|
3
|
+
import { r as n } from "../createSvgIcon-DvOXtgXV.js";
|
|
4
|
+
import { I as r } from "../IconButton-BBfmzBP6.js";
|
|
5
5
|
var e = {}, i = s;
|
|
6
6
|
Object.defineProperty(e, "__esModule", {
|
|
7
7
|
value: !0
|
|
8
8
|
});
|
|
9
|
-
var o = e.default = void 0,
|
|
10
|
-
o = e.default = (0,
|
|
9
|
+
var o = e.default = void 0, l = i(n()), u = c;
|
|
10
|
+
o = e.default = (0, l.default)(/* @__PURE__ */ (0, u.jsx)("path", {
|
|
11
11
|
d: "M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12.01 2c2.13 0 3.99.47 6.03 1.52.25.13.34.43.21.67-.09.18-.26.28-.44.28M3.5 9.72c-.1 0-.2-.03-.29-.09-.23-.16-.28-.47-.12-.7.99-1.4 2.25-2.5 3.75-3.27C9.98 4.04 14 4.03 17.15 5.65c1.5.77 2.76 1.86 3.75 3.25.16.22.11.54-.12.7-.23.16-.54.11-.7-.12-.9-1.26-2.04-2.25-3.39-2.94-2.87-1.47-6.54-1.47-9.4.01-1.36.7-2.5 1.7-3.4 2.96-.08.14-.23.21-.39.21m6.25 12.07c-.13 0-.26-.05-.35-.15-.87-.87-1.34-1.43-2.01-2.64-.69-1.23-1.05-2.73-1.05-4.34 0-2.97 2.54-5.39 5.66-5.39s5.66 2.42 5.66 5.39c0 .28-.22.5-.5.5s-.5-.22-.5-.5c0-2.42-2.09-4.39-4.66-4.39-2.57 0-4.66 1.97-4.66 4.39 0 1.44.32 2.77.93 3.85.64 1.15 1.08 1.64 1.85 2.42.19.2.19.51 0 .71-.11.1-.24.15-.37.15m7.17-1.85c-1.19 0-2.24-.3-3.1-.89-1.49-1.01-2.38-2.65-2.38-4.39 0-.28.22-.5.5-.5s.5.22.5.5c0 1.41.72 2.74 1.94 3.56.71.48 1.54.71 2.54.71.24 0 .64-.03 1.04-.1.27-.05.53.13.58.41.05.27-.13.53-.41.58-.57.11-1.07.12-1.21.12M14.91 22c-.04 0-.09-.01-.13-.02-1.59-.44-2.63-1.03-3.72-2.1-1.4-1.39-2.17-3.24-2.17-5.22 0-1.62 1.38-2.94 3.08-2.94 1.7 0 3.08 1.32 3.08 2.94 0 1.07.93 1.94 2.08 1.94s2.08-.87 2.08-1.94c0-3.77-3.25-6.83-7.25-6.83-2.84 0-5.44 1.58-6.61 4.03-.39.81-.59 1.76-.59 2.8 0 .78.07 2.01.67 3.61.1.26-.03.55-.29.64-.26.1-.55-.04-.64-.29-.49-1.31-.73-2.61-.73-3.96 0-1.2.23-2.29.68-3.24 1.33-2.79 4.28-4.6 7.51-4.6 4.55 0 8.25 3.51 8.25 7.83 0 1.62-1.38 2.94-3.08 2.94s-3.08-1.32-3.08-2.94c0-1.07-.93-1.94-2.08-1.94s-2.08.87-2.08 1.94c0 1.71.66 3.31 1.87 4.51.95.94 1.86 1.46 3.27 1.85.27.07.42.35.35.61-.05.23-.26.38-.47.38"
|
|
12
12
|
}), "Fingerprint");
|
|
13
13
|
const C = {
|
|
14
|
-
title: "Components/
|
|
14
|
+
title: "Components/IconButton",
|
|
15
15
|
component: r,
|
|
16
16
|
argTypes: {
|
|
17
17
|
// Définissez ici vos paramètres d'histoires spécifiques aux arguments (args).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('../../assets/
|
|
1
|
+
"use strict";require('../../assets/styles2.css');const e=require("react/jsx-runtime");;/* empty css */const r=require("../../Box-2ZrLOc7U.cjs"),l=({})=>e.jsx(r.Box,{className:"cs-loader",color:"primary.main",children:e.jsxs(r.Box,{className:"cs-loader-inner",children:[e.jsx("label",{children:"●"}),e.jsx("label",{children:"●"}),e.jsx("label",{children:"●"}),e.jsx("label",{children:"●"})]})});module.exports=l;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, jsxs as e } from "react/jsx-runtime";
|
|
2
|
-
import '../../assets/
|
|
3
|
-
import { B as l } from "../../Box-
|
|
2
|
+
import '../../assets/styles2.css';/* empty css */
|
|
3
|
+
import { B as l } from "../../Box-BJvmuM0Y.js";
|
|
4
4
|
const i = ({}) => /* @__PURE__ */ r(l, { className: "cs-loader", color: "primary.main", children: /* @__PURE__ */ e(l, { className: "cs-loader-inner", children: [
|
|
5
5
|
/* @__PURE__ */ r("label", { children: "●" }),
|
|
6
6
|
/* @__PURE__ */ r("label", { children: "●" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('../../assets/
|
|
1
|
+
"use strict";require('../../assets/styles.css');const e=require("react/jsx-runtime");;/* empty css */const r=({})=>e.jsx("div",{className:"cs-loader-backdrop",children:e.jsxs("div",{className:"cs-loader-backdrop-inner",children:[e.jsx("label",{children:"●"}),e.jsx("label",{children:"●"}),e.jsx("label",{children:"●"}),e.jsx("label",{children:"●"})]})});module.exports=r;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import '../../assets/
|
|
2
|
+
import '../../assets/styles.css';/* empty css */
|
|
3
3
|
const d = ({}) => /* @__PURE__ */ e("div", { className: "cs-loader-backdrop", children: /* @__PURE__ */ l("div", { className: "cs-loader-backdrop-inner", children: [
|
|
4
4
|
/* @__PURE__ */ e("label", { children: "●" }),
|
|
5
5
|
/* @__PURE__ */ e("label", { children: "●" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),x=require("../../Stack-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),x=require("../../Stack-D9IYPfJ8.cjs"),i=require("../../Typography-YHooSvuR.cjs"),q=({title:t,IconComponent:s,iconColor:e,iconProps:a,iconSize:d=28,component:u="h3",variant:p="h2",fontWeight:g="bold",...h})=>r.jsxs(x.Stack,{direction:"row",alignItems:"center",gap:1,children:[s?r.jsx(s,{sx:{fontSize:d,padding:"2px",borderRadius:1,color:e==null?void 0:e[500],backgroundColor:e==null?void 0:e[50]},...a}):null,r.jsx(i.Typography,{component:u,variant:p,fontWeight:g,...h,children:t})]});module.exports=q;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as h, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { S as u } from "../../Stack-
|
|
3
|
-
import { T as x } from "../../Typography-
|
|
2
|
+
import { S as u } from "../../Stack-Dlgk5t_M.js";
|
|
3
|
+
import { T as x } from "../../Typography-DjrvRhOr.js";
|
|
4
4
|
const j = ({
|
|
5
5
|
title: d,
|
|
6
6
|
IconComponent: e,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),t=require("../../identifier-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),t=require("../../identifier-CWIj084w.cjs"),i=require("../../createSvgIcon-DTc4Xvfk.cjs"),o=require("./PaperHeader.cjs.js");var e={},s=t.interopRequireDefaultExports;Object.defineProperty(e,"__esModule",{value:!0});var a=e.default=void 0,c=s(i.requireCreateSvgIcon()),d=r;a=e.default=(0,c.default)((0,d.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"Mood");const l={title:"Components/PaperHeader",component:o,argTypes:{}},p=u=>r.jsx(o,{...u}),n=p.bind({});n.args={title:"Heading",iconColor:t.red,IconComponent:a};exports.Default=n;exports.default=l;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import a, { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { A as i, r as n } from "../../identifier-
|
|
3
|
-
import { r as p } from "../../createSvgIcon-
|
|
2
|
+
import { A as i, r as n } from "../../identifier-CAQ9PWqs.js";
|
|
3
|
+
import { r as p } from "../../createSvgIcon-DvOXtgXV.js";
|
|
4
4
|
import r from "./PaperHeader.es.js";
|
|
5
5
|
var e = {}, d = i;
|
|
6
6
|
Object.defineProperty(e, "__esModule", {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('../../assets/styles.css');require('../../assets/styles2.css');require('../../assets/PasswordInput.css');const e=require("react/jsx-runtime"),u=require("react"),l=require("../TextInput/TextInput.cjs.js");require("../Alert/Alert.cjs.js");require("../../fr-C4bcUC-9.cjs");require("../../DefaultButton-BMmuKPgA.cjs");require("../FileList/FileListItem.cjs.js");;/* empty css */;/* empty css */require("../SearchInput/SearchInput.cjs.js");const a=require("../../InputAdornment-DHmtETz3.cjs"),d=require("../../IconButton-3v-0zgZW.cjs"),n=require("../../createSvgIcon-CUiH3cta.cjs"),p=n.createSvgIcon(e.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),q=n.createSvgIcon(e.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff"),w=s=>{const[r,o]=u.useState(!1),i=()=>o(t=>!t),c=t=>{t.preventDefault()};return e.jsx(l,{...s,variant:"outlined",label:s.label,type:r?"text":"password",InputProps:{endAdornment:e.jsx(a.InputAdornment,{position:"end",children:e.jsx(d.IconButton,{"aria-label":"toggle password visibility",onClick:i,onMouseDown:c,edge:"end",children:r?e.jsx(q,{}):e.jsx(p,{})})})}})};module.exports=w;
|