@cgi-learning-hub/ui 0.0.1-dev.1709558390 → 0.0.1-dev.1709568003
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-CjHm9A9L.cjs +1 -0
- package/dist/{Box-C0qXdJzV.js → Box-erN4AuKs.js} +8 -8
- package/dist/ButtonBase-BybMkBUd.cjs +75 -0
- package/dist/ButtonBase-CGcs8Gbj.cjs +75 -0
- package/dist/ButtonBase-V1pwsMMs.js +649 -0
- package/dist/ButtonBase-aujiNoUb.js +649 -0
- package/dist/DefaultButton-Cg4tPCgf.cjs +28 -0
- package/dist/{DefaultButton-B-2UppUm.js → DefaultButton-DbpZOb47.js} +355 -146
- package/dist/FileListItem-ChKTjDnV.js +254 -0
- package/dist/FileListItem-CjFIZgYg.cjs +28 -0
- package/dist/IconButton-CHXclgOn.cjs +2 -0
- package/dist/{IconButton-1URziYlU.js → IconButton-DE5JOshS.js} +8 -8
- package/dist/{InputBase-Dc0v-Ihf.js → InputBase-C8AzQJJ9.js} +161 -174
- package/dist/InputBase-D6eXzDaz.cjs +4 -0
- package/dist/LocalizationProvider-42pD7VmS.cjs +5 -0
- package/dist/{LocalizationProvider-BD64DNxF.js → LocalizationProvider-Cov62Xe0.js} +4 -3
- package/dist/Tabs-DiWeNGD4.js +1167 -0
- package/dist/Tabs-DoxP7EMA.cjs +4 -0
- package/dist/TextInput-BbSyyuvO.cjs +12 -0
- package/dist/{TextInput-DsSFDlNR.js → TextInput-DmMk4i-V.js} +1892 -1650
- package/dist/TimePicker-B5MjZCK0.cjs +89 -0
- package/dist/TimePicker-BmxG3a2D.js +28354 -0
- package/dist/TransitionGroup-COuDopJ-.js +188 -0
- package/dist/TransitionGroup-X90dkobW.cjs +1 -0
- package/dist/Typography-B90UzlQW.js +179 -0
- package/dist/Typography-KFjBz5Hm.cjs +1 -0
- package/dist/clamp-0LjYbpE_.cjs +23 -0
- package/dist/clamp-BGJvJ0FN.js +1641 -0
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
- package/dist/components/Dropzone/Dropzone.es.js +12 -11
- package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +1 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.es.js +1 -1
- package/dist/components/LocalizationProvider/index.cjs.js +1 -1
- package/dist/components/LocalizationProvider/index.es.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +3 -3
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +6 -6
- package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/index.es.js +1 -1
- package/dist/components/buttons/IconButton.stories.cjs.js +1 -1
- package/dist/components/buttons/IconButton.stories.es.js +10 -9
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +2 -2
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +2 -2
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/buttons/index.cjs.js +1 -1
- package/dist/components/buttons/index.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +90 -91
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.es.js +174 -6
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +4 -4
- package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/index.es.js +2 -2
- package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.es.js +2 -2
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
- package/dist/components/inputs/TextInput/index.cjs.js +1 -1
- package/dist/components/inputs/TextInput/index.es.js +1 -1
- package/dist/components/inputs/index.cjs.js +1 -1
- package/dist/components/inputs/index.es.js +4 -4
- package/dist/components/lists/FileList/FileList.cjs.js +1 -1
- package/dist/components/lists/FileList/FileList.es.js +2 -2
- package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/lists/FileList/FileListItem.es.js +7 -39
- package/dist/components/lists/FileList/index.cjs.js +1 -1
- package/dist/components/lists/FileList/index.es.js +4 -4
- package/dist/components/lists/TabList.stories.cjs.js +1 -1
- package/dist/components/lists/TabList.stories.es.js +18 -16
- package/dist/components/lists/index.cjs.js +1 -1
- package/dist/components/lists/index.es.js +4 -4
- package/dist/createSvgIcon-BSYat4nx.js +74 -0
- package/dist/createSvgIcon-BqRWmIPG.cjs +1 -0
- package/dist/{createSvgIcon-Dspfpz-l.js → createSvgIcon-DeRU4e-L.js} +20 -18
- package/dist/createSvgIcon-doNQ5emq.cjs +2 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +93 -94
- package/dist/refType-Bt58K9Sk.cjs +1 -0
- package/dist/{refType-BBFUe6fu.js → refType-CoCfCK--.js} +1 -1
- package/dist/styled-BU8dAebc.js +1751 -0
- package/dist/styled-DGjsLYEN.cjs +45 -0
- package/dist/styled-DP6LeBLQ.js +261 -0
- package/dist/styled-Dkd1VGM-.cjs +1 -0
- package/dist/useTheme-C132tQV-.js +10 -0
- package/dist/useTheme-CliHZTkE.cjs +1 -0
- package/dist/useThemeProps-63SNG58r.js +753 -0
- package/dist/useThemeProps-CVatCXfo.cjs +20 -0
- package/package.json +6 -7
- package/dist/Box-DjRIKMD0.cjs +0 -1
- package/dist/ButtonBase-BvllyU4w.cjs +0 -75
- package/dist/ButtonBase-C14ZYs6z.js +0 -833
- package/dist/CircularProgress-Bf46-VRs.js +0 -217
- package/dist/CircularProgress-DjSMBYnK.cjs +0 -28
- package/dist/DefaultButton-DPZOltN5.cjs +0 -1
- package/dist/IconButton-X6l-U-im.cjs +0 -2
- package/dist/InputBase-CzupOzjh.cjs +0 -4
- package/dist/LocalizationProvider-DqwEOZOd.cjs +0 -5
- package/dist/SearchInput-Bb3sCx3k.cjs +0 -1
- package/dist/SearchInput-DRjmNW6W.js +0 -177
- package/dist/Tabs-B9BPJaDx.js +0 -1090
- package/dist/Tabs-Dx8YJT4c.cjs +0 -4
- package/dist/TextInput-BFguMDSu.cjs +0 -12
- package/dist/TimePicker-B0HOzxHh.cjs +0 -69
- package/dist/TimePicker-OBZs04Z8.js +0 -19694
- package/dist/Typography-CRt6WSxo.js +0 -204
- package/dist/Typography-DsPQABF2.cjs +0 -1
- package/dist/createSvgIcon-BOQCM03y.cjs +0 -2
- package/dist/createSvgIcon-C2VxBqzG.cjs +0 -1
- package/dist/createSvgIcon-xJp3_zwo.js +0 -84
- package/dist/isHostComponent-PydJW4A4.cjs +0 -1
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/refType-5EEBZL5_.cjs +0 -1
- package/dist/styled-D8lXwcQy.js +0 -423
- package/dist/styled-DFoJwRxe.cjs +0 -24
- package/dist/useSlotProps-BoMYRJkF.js +0 -72
- package/dist/useSlotProps-EKKRQjEn.cjs +0 -1
- package/dist/useTheme-BkW5nNsn.cjs +0 -1
- package/dist/useTheme-Bo1inEHN.js +0 -9
- package/dist/useThemeProps-BRWSvuZw.cjs +0 -42
- package/dist/useThemeProps-CZzcR_pm.js +0 -2288
|
@@ -1,119 +1,118 @@
|
|
|
1
1
|
import { default as e } from "./Dropzone/Dropzone.es.js";
|
|
2
|
-
import { L as l } from "../LocalizationProvider-
|
|
3
|
-
import { D as o } from "../DefaultButton-
|
|
2
|
+
import { L as l } from "../LocalizationProvider-Cov62Xe0.js";
|
|
3
|
+
import { D as o } from "../DefaultButton-DbpZOb47.js";
|
|
4
4
|
import { default as C } from "./buttons/PrimaryButton/PrimaryButton.es.js";
|
|
5
5
|
import { default as g } from "./buttons/SecondaryButton/SecondaryButton.es.js";
|
|
6
|
-
import {
|
|
7
|
-
import { F as y, a as c, L as p, M as u, S as U, T as x, f, b as I, g as k, c as d, d as P, e as L, h as B, l as D, m as
|
|
6
|
+
import { default as n } from "./inputs/SearchInput/SearchInput.es.js";
|
|
7
|
+
import { F as y, a as c, L as p, M as u, S as U, T as x, f, b as I, g as k, c as d, d as P, e as L, h as B, l as D, m as F, s as h } from "../TextInput-DmMk4i-V.js";
|
|
8
8
|
import { default as H } from "./lists/FileList/FileList.es.js";
|
|
9
|
-
import {
|
|
10
|
-
import { C as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { T as
|
|
14
|
-
import {
|
|
15
|
-
import { u as Ta } from "../InputBase-Dc0v-Ihf.js";
|
|
9
|
+
import { C as w, F as R, c as z, g as v } from "../FileListItem-ChKTjDnV.js";
|
|
10
|
+
import { C as q, a0 as A, a1 as E, a3 as G, a4 as J, a6 as K, D as N, a as O, L as Q, b as V, c as W, d as X, e as Y, M as Z, S as _, T as $, f as ss, g as as, h as es, i as ts, j as ls, k as is, a8 as os, a9 as rs, l as Cs, m as Ts, a2 as gs, a5 as ms, a7 as ns, o as bs, q as ys, n as cs, r as ps, p as us, t as Us, v as xs, x as fs, z as Is, B as ks, F as ds, H as Ps, N as Ls, P as Bs, R as Ds, V as Fs, X as hs, J as Ss, Z as Hs, $ as Ms, s as ws, u as Rs, w as zs, y as vs, A as js, E as qs, G as As, K as Es, O as Gs, I as Js, Q as Ks, U as Ns, W as Os, Y as Qs, aa as Vs, _ as Ws } from "../TimePicker-BmxG3a2D.js";
|
|
11
|
+
import { I as Ys, g as Zs, i as _s } from "../IconButton-DE5JOshS.js";
|
|
12
|
+
import { T as sa, g as aa, t as ea } from "../Tabs-DiWeNGD4.js";
|
|
13
|
+
import { T as la, g as ia, t as oa } from "../Typography-B90UzlQW.js";
|
|
14
|
+
import { u as Ca } from "../InputBase-C8AzQJJ9.js";
|
|
16
15
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
q as Checkbox,
|
|
17
|
+
w as CircularProgress,
|
|
18
|
+
A as DatePicker,
|
|
19
|
+
E as DatePickerToolbar,
|
|
20
|
+
G as DateTimePicker,
|
|
21
|
+
J as DateTimePickerTabs,
|
|
22
|
+
K as DateTimePickerToolbar,
|
|
24
23
|
o as DefaultButton,
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
N as Dialog,
|
|
25
|
+
O as DialogTitle,
|
|
27
26
|
e as Dropzone,
|
|
28
27
|
H as FileList,
|
|
29
|
-
|
|
28
|
+
R as FileListItem,
|
|
30
29
|
y as FormControl,
|
|
31
30
|
c as FormHelperText,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
Ys as IconButton,
|
|
32
|
+
Q as LinearProgress,
|
|
33
|
+
V as Link,
|
|
35
34
|
p as List,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
W as ListItemButton,
|
|
36
|
+
X as ListItemIcon,
|
|
37
|
+
Y as ListItemText,
|
|
39
38
|
l as LocalizationProvider,
|
|
40
39
|
u as Menu,
|
|
41
|
-
|
|
40
|
+
Z as MenuItem,
|
|
42
41
|
C as PrimaryButton,
|
|
43
42
|
n as SearchInput,
|
|
44
43
|
g as SecondaryButton,
|
|
45
44
|
U as Select,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
45
|
+
_ as Snackbar,
|
|
46
|
+
sa as Tab,
|
|
47
|
+
$ as Table,
|
|
48
|
+
ss as TableBody,
|
|
49
|
+
as as TableCell,
|
|
50
|
+
es as TableContainer,
|
|
51
|
+
ts as TableHead,
|
|
52
|
+
ls as TableRow,
|
|
53
|
+
is as Tabs,
|
|
55
54
|
x as TextInput,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
55
|
+
os as TimePicker,
|
|
56
|
+
rs as TimePickerToolbar,
|
|
57
|
+
Cs as Tooltip,
|
|
58
|
+
la as Typography,
|
|
59
|
+
Ts as checkboxClasses,
|
|
60
|
+
z as circularProgressClasses,
|
|
61
|
+
gs as datePickerToolbarClasses,
|
|
62
|
+
ms as dateTimePickerTabsClasses,
|
|
63
|
+
ns as dateTimePickerToolbarClasses,
|
|
64
|
+
bs as dialogClasses,
|
|
65
|
+
ys as dialogTitleClasses,
|
|
67
66
|
f as formControlClasses,
|
|
68
67
|
I as formHelperTextClasses,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
cs as getCheckboxUtilityClass,
|
|
69
|
+
v as getCircularProgressUtilityClass,
|
|
70
|
+
ps as getDialogTitleUtilityClass,
|
|
71
|
+
us as getDialogUtilityClass,
|
|
73
72
|
k as getFormControlUtilityClasses,
|
|
74
73
|
d as getFormHelperTextUtilityClasses,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
74
|
+
Zs as getIconButtonUtilityClass,
|
|
75
|
+
Us as getLinearProgressUtilityClass,
|
|
76
|
+
xs as getLinkUtilityClass,
|
|
77
|
+
fs as getListItemButtonUtilityClass,
|
|
78
|
+
Is as getListItemIconUtilityClass,
|
|
79
|
+
ks as getListItemTextUtilityClass,
|
|
81
80
|
P as getListUtilityClass,
|
|
82
|
-
|
|
81
|
+
ds as getMenuItemUtilityClass,
|
|
83
82
|
L as getMenuUtilityClass,
|
|
84
83
|
B as getSelectUtilityClasses,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
84
|
+
Ps as getSnackbarUtilityClass,
|
|
85
|
+
aa as getTabUtilityClass,
|
|
86
|
+
Ls as getTableBodyUtilityClass,
|
|
87
|
+
Bs as getTableCellUtilityClass,
|
|
88
|
+
Ds as getTableContainerUtilityClass,
|
|
89
|
+
Fs as getTableHeadUtilityClass,
|
|
90
|
+
hs as getTableRowUtilityClass,
|
|
91
|
+
Ss as getTableUtilityClass,
|
|
92
|
+
Hs as getTabsUtilityClass,
|
|
93
|
+
Ms as getTooltipUtilityClass,
|
|
94
|
+
ia as getTypographyUtilityClass,
|
|
95
|
+
_s as iconButtonClasses,
|
|
96
|
+
ws as linearProgressClasses,
|
|
97
|
+
Rs as linkClasses,
|
|
99
98
|
D as listClasses,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
99
|
+
zs as listItemButtonClasses,
|
|
100
|
+
vs as listItemIconClasses,
|
|
101
|
+
js as listItemTextClasses,
|
|
102
|
+
F as menuClasses,
|
|
103
|
+
qs as menuItemClasses,
|
|
104
|
+
h as selectClasses,
|
|
105
|
+
As as snackbarClasses,
|
|
107
106
|
ea as tabClasses,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
107
|
+
Es as tableBodyClasses,
|
|
108
|
+
Gs as tableCellClasses,
|
|
109
|
+
Js as tableClasses,
|
|
110
|
+
Ks as tableContainerClasses,
|
|
111
|
+
Ns as tableHeadClasses,
|
|
112
|
+
Os as tableRowClasses,
|
|
113
|
+
Qs as tabsClasses,
|
|
114
|
+
Vs as timePickerToolbarClasses,
|
|
115
|
+
Ws as tooltipClasses,
|
|
116
|
+
oa as typographyClasses,
|
|
117
|
+
Ca as useFormControl
|
|
119
118
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("react/jsx-runtime")
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),j=require("react"),p=require("../../../styled-DGjsLYEN.cjs"),y=require("../../../InputBase-D6eXzDaz.cjs"),e=require("../../../clamp-0LjYbpE_.cjs"),E=require("../../../Typography-KFjBz5Hm.cjs"),C=require("../../../createSvgIcon-BqRWmIPG.cjs");function S(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,s.get?s:{enumerable:!0,get:()=>t[o]})}}return n.default=t,Object.freeze(n)}const b=S(j),A=C.createSvgIcon(r.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search");function O(t){return e.generateUtilityClass("MuiInputAdornment",t)}const _=p.generateUtilityClasses("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),f=_;var P;const z=["children","className","component","disablePointerEvents","disableTypography","position","variant"],N=(t,n)=>{const{ownerState:o}=t;return[n.root,n[`position${e.capitalize(o.position)}`],o.disablePointerEvents===!0&&n.disablePointerEvents,n[o.variant]]},R=t=>{const{classes:n,disablePointerEvents:o,hiddenLabel:s,position:i,size:l,variant:c}=t,d={root:["root",o&&"disablePointerEvents",i&&`position${e.capitalize(i)}`,c,s&&"hiddenLabel",l&&`size${e.capitalize(l)}`]};return p.composeClasses(d,O,n)},q=p.styled("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:N})(({theme:t,ownerState:n})=>e._extends({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},n.variant==="filled"&&{[`&.${f.positionStart}&:not(.${f.hiddenLabel})`]:{marginTop:16}},n.position==="start"&&{marginRight:8},n.position==="end"&&{marginLeft:8},n.disablePointerEvents===!0&&{pointerEvents:"none"})),g=b.forwardRef(function(n,o){const s=p.useThemeProps({props:n,name:"MuiInputAdornment"}),{children:i,className:l,component:c="div",disablePointerEvents:d=!1,disableTypography:T=!1,position:v,variant:u}=s,x=e._objectWithoutPropertiesLoose(s,z),a=y.useFormControl()||{};let m=u;u&&a.variant&&process.env.NODE_ENV!=="production"&&u===a.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),a&&!m&&(m=a.variant);const h=e._extends({},s,{hiddenLabel:a.hiddenLabel,size:a.size,disablePointerEvents:d,position:v,variant:m}),I=R(h);return r.jsx(y.FormControlContext.Provider,{value:null,children:r.jsx(q,e._extends({as:c,ownerState:h,className:p.clsx(I.root,l),ref:o},x,{children:typeof i=="string"&&!T?r.jsx(E.Typography,{color:"text.secondary",children:i}):r.jsxs(b.Fragment,{children:[v==="start"?P||(P=r.jsx("span",{className:"notranslate",children:""})):null,i]})}))})});process.env.NODE_ENV!=="production"&&(g.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,disablePointerEvents:e.PropTypes.bool,disableTypography:e.PropTypes.bool,position:e.PropTypes.oneOf(["end","start"]).isRequired,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]),variant:e.PropTypes.oneOf(["filled","outlined","standard"])});const L=g,$=p.styled(y.InputBase)(({theme:t})=>({width:"auto",padding:"0px 12px",backgroundColor:t.palette.grey[50],borderRadius:30,"& .MuiInputBase-input":{padding:"8px 0px"}})),M=({placeholder:t="Rechercher",...n})=>r.jsx($,{...n,placeholder:t,startAdornment:r.jsx(L,{position:"start",disablePointerEvents:!0,children:r.jsx(A,{})})});module.exports=M;
|
|
@@ -1,8 +1,176 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import "../../../styled-
|
|
4
|
-
import "../../../InputBase-
|
|
5
|
-
import {
|
|
1
|
+
import { jsx as o, jsxs as A } from "react/jsx-runtime";
|
|
2
|
+
import * as b from "react";
|
|
3
|
+
import { g as T, s as I, u as S, c as L, b as N } from "../../../styled-BU8dAebc.js";
|
|
4
|
+
import { u as R, F as z, I as M } from "../../../InputBase-C8AzQJJ9.js";
|
|
5
|
+
import { g as O, _ as m, a as _, P as e, c as v } from "../../../clamp-BGJvJ0FN.js";
|
|
6
|
+
import { T as $ } from "../../../Typography-B90UzlQW.js";
|
|
7
|
+
import { c as j } from "../../../createSvgIcon-DeRU4e-L.js";
|
|
8
|
+
const F = j(/* @__PURE__ */ o("path", {
|
|
9
|
+
d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"
|
|
10
|
+
}), "Search");
|
|
11
|
+
function U(n) {
|
|
12
|
+
return O("MuiInputAdornment", n);
|
|
13
|
+
}
|
|
14
|
+
const w = T("MuiInputAdornment", ["root", "filled", "standard", "outlined", "positionStart", "positionEnd", "disablePointerEvents", "hiddenLabel", "sizeSmall"]), g = w;
|
|
15
|
+
var y;
|
|
16
|
+
const B = ["children", "className", "component", "disablePointerEvents", "disableTypography", "position", "variant"], D = (n, t) => {
|
|
17
|
+
const {
|
|
18
|
+
ownerState: s
|
|
19
|
+
} = n;
|
|
20
|
+
return [t.root, t[`position${v(s.position)}`], s.disablePointerEvents === !0 && t.disablePointerEvents, t[s.variant]];
|
|
21
|
+
}, V = (n) => {
|
|
22
|
+
const {
|
|
23
|
+
classes: t,
|
|
24
|
+
disablePointerEvents: s,
|
|
25
|
+
hiddenLabel: a,
|
|
26
|
+
position: r,
|
|
27
|
+
size: l,
|
|
28
|
+
variant: p
|
|
29
|
+
} = n, d = {
|
|
30
|
+
root: ["root", s && "disablePointerEvents", r && `position${v(r)}`, p, a && "hiddenLabel", l && `size${v(l)}`]
|
|
31
|
+
};
|
|
32
|
+
return N(d, U, t);
|
|
33
|
+
}, k = I("div", {
|
|
34
|
+
name: "MuiInputAdornment",
|
|
35
|
+
slot: "Root",
|
|
36
|
+
overridesResolver: D
|
|
37
|
+
})(({
|
|
38
|
+
theme: n,
|
|
39
|
+
ownerState: t
|
|
40
|
+
}) => m({
|
|
41
|
+
display: "flex",
|
|
42
|
+
height: "0.01em",
|
|
43
|
+
// Fix IE11 flexbox alignment. To remove at some point.
|
|
44
|
+
maxHeight: "2em",
|
|
45
|
+
alignItems: "center",
|
|
46
|
+
whiteSpace: "nowrap",
|
|
47
|
+
color: (n.vars || n).palette.action.active
|
|
48
|
+
}, t.variant === "filled" && {
|
|
49
|
+
// Styles applied to the root element if `variant="filled"`.
|
|
50
|
+
[`&.${g.positionStart}&:not(.${g.hiddenLabel})`]: {
|
|
51
|
+
marginTop: 16
|
|
52
|
+
}
|
|
53
|
+
}, t.position === "start" && {
|
|
54
|
+
// Styles applied to the root element if `position="start"`.
|
|
55
|
+
marginRight: 8
|
|
56
|
+
}, t.position === "end" && {
|
|
57
|
+
// Styles applied to the root element if `position="end"`.
|
|
58
|
+
marginLeft: 8
|
|
59
|
+
}, t.disablePointerEvents === !0 && {
|
|
60
|
+
// Styles applied to the root element if `disablePointerEvents={true}`.
|
|
61
|
+
pointerEvents: "none"
|
|
62
|
+
})), E = /* @__PURE__ */ b.forwardRef(function(t, s) {
|
|
63
|
+
const a = S({
|
|
64
|
+
props: t,
|
|
65
|
+
name: "MuiInputAdornment"
|
|
66
|
+
}), {
|
|
67
|
+
children: r,
|
|
68
|
+
className: l,
|
|
69
|
+
component: p = "div",
|
|
70
|
+
disablePointerEvents: d = !1,
|
|
71
|
+
disableTypography: P = !1,
|
|
72
|
+
position: h,
|
|
73
|
+
variant: c
|
|
74
|
+
} = a, x = _(a, B), i = R() || {};
|
|
75
|
+
let u = c;
|
|
76
|
+
c && i.variant && process.env.NODE_ENV !== "production" && c === i.variant && console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."), i && !u && (u = i.variant);
|
|
77
|
+
const f = m({}, a, {
|
|
78
|
+
hiddenLabel: i.hiddenLabel,
|
|
79
|
+
size: i.size,
|
|
80
|
+
disablePointerEvents: d,
|
|
81
|
+
position: h,
|
|
82
|
+
variant: u
|
|
83
|
+
}), C = V(f);
|
|
84
|
+
return /* @__PURE__ */ o(z.Provider, {
|
|
85
|
+
value: null,
|
|
86
|
+
children: /* @__PURE__ */ o(k, m({
|
|
87
|
+
as: p,
|
|
88
|
+
ownerState: f,
|
|
89
|
+
className: L(C.root, l),
|
|
90
|
+
ref: s
|
|
91
|
+
}, x, {
|
|
92
|
+
children: typeof r == "string" && !P ? /* @__PURE__ */ o($, {
|
|
93
|
+
color: "text.secondary",
|
|
94
|
+
children: r
|
|
95
|
+
}) : /* @__PURE__ */ A(b.Fragment, {
|
|
96
|
+
children: [h === "start" ? (
|
|
97
|
+
/* notranslate needed while Google Translate will not fix zero-width space issue */
|
|
98
|
+
y || (y = /* @__PURE__ */ o("span", {
|
|
99
|
+
className: "notranslate",
|
|
100
|
+
children: ""
|
|
101
|
+
}))
|
|
102
|
+
) : null, r]
|
|
103
|
+
})
|
|
104
|
+
}))
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
108
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
109
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
110
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
111
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
112
|
+
/**
|
|
113
|
+
* The content of the component, normally an `IconButton` or string.
|
|
114
|
+
*/
|
|
115
|
+
children: e.node,
|
|
116
|
+
/**
|
|
117
|
+
* Override or extend the styles applied to the component.
|
|
118
|
+
*/
|
|
119
|
+
classes: e.object,
|
|
120
|
+
/**
|
|
121
|
+
* @ignore
|
|
122
|
+
*/
|
|
123
|
+
className: e.string,
|
|
124
|
+
/**
|
|
125
|
+
* The component used for the root node.
|
|
126
|
+
* Either a string to use a HTML element or a component.
|
|
127
|
+
*/
|
|
128
|
+
component: e.elementType,
|
|
129
|
+
/**
|
|
130
|
+
* Disable pointer events on the root.
|
|
131
|
+
* This allows for the content of the adornment to focus the `input` on click.
|
|
132
|
+
* @default false
|
|
133
|
+
*/
|
|
134
|
+
disablePointerEvents: e.bool,
|
|
135
|
+
/**
|
|
136
|
+
* If children is a string then disable wrapping in a Typography component.
|
|
137
|
+
* @default false
|
|
138
|
+
*/
|
|
139
|
+
disableTypography: e.bool,
|
|
140
|
+
/**
|
|
141
|
+
* The position this adornment should appear relative to the `Input`.
|
|
142
|
+
*/
|
|
143
|
+
position: e.oneOf(["end", "start"]).isRequired,
|
|
144
|
+
/**
|
|
145
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
146
|
+
*/
|
|
147
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
148
|
+
/**
|
|
149
|
+
* The variant to use.
|
|
150
|
+
* Note: If you are using the `TextField` component or the `FormControl` component
|
|
151
|
+
* you do not have to set this manually.
|
|
152
|
+
*/
|
|
153
|
+
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
154
|
+
});
|
|
155
|
+
const q = E, H = I(M)(({ theme: n }) => ({
|
|
156
|
+
width: "auto",
|
|
157
|
+
padding: "0px 12px",
|
|
158
|
+
backgroundColor: n.palette.grey[50],
|
|
159
|
+
borderRadius: 30,
|
|
160
|
+
"& .MuiInputBase-input": {
|
|
161
|
+
padding: "8px 0px"
|
|
162
|
+
}
|
|
163
|
+
})), Y = ({
|
|
164
|
+
placeholder: n = "Rechercher",
|
|
165
|
+
...t
|
|
166
|
+
}) => /* @__PURE__ */ o(
|
|
167
|
+
H,
|
|
168
|
+
{
|
|
169
|
+
...t,
|
|
170
|
+
placeholder: n,
|
|
171
|
+
startAdornment: /* @__PURE__ */ o(q, { position: "start", disablePointerEvents: !0, children: /* @__PURE__ */ o(F, {}) })
|
|
172
|
+
}
|
|
173
|
+
);
|
|
6
174
|
export {
|
|
7
|
-
|
|
175
|
+
Y as default
|
|
8
176
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),e=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),e=require("./SearchInput.cjs.js"),o={title:"Components/Inputs/SearchInput",component:e,argTypes:{}},s=r=>n.jsx(e,{...r}),t=s.bind({});t.args={placeholder:"Rechercher"};exports.Default=t;exports.default=o;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import e from "./SearchInput.es.js";
|
|
3
3
|
const a = {
|
|
4
4
|
title: "Components/Inputs/SearchInput",
|
|
5
5
|
component: e,
|
|
6
6
|
argTypes: {
|
|
7
7
|
// Définissez ici vos paramètres d'histoires spécifiques aux arguments (args).
|
|
8
8
|
}
|
|
9
|
-
}, r = (t) => /* @__PURE__ */ o(e, { ...t }),
|
|
10
|
-
|
|
9
|
+
}, r = (t) => /* @__PURE__ */ o(e, { ...t }), n = r.bind({});
|
|
10
|
+
n.args = {
|
|
11
11
|
placeholder: "Rechercher"
|
|
12
12
|
};
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
n as Default,
|
|
15
15
|
a as default
|
|
16
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./SearchInput.cjs.js");exports.SearchInput=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("react/jsx-runtime");require("react");require("../../../styled-
|
|
1
|
+
"use strict";require("react/jsx-runtime");require("react");require("../../../styled-DGjsLYEN.cjs");const e=require("../../../TextInput-BbSyyuvO.cjs");module.exports=e.TextInput;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../../../styled-
|
|
4
|
-
import { T as i } from "../../../TextInput-
|
|
3
|
+
import "../../../styled-BU8dAebc.js";
|
|
4
|
+
import { T as i } from "../../../TextInput-DmMk4i-V.js";
|
|
5
5
|
export {
|
|
6
6
|
i as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("react/jsx-runtime"),e=require("../../../TextInput-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("react/jsx-runtime"),e=require("../../../TextInput-BbSyyuvO.cjs"),r={title:"Components/Inputs/TextInput",component:e.TextInput,argTypes:{variant:{control:"select",description:"input rendering style",options:["standard","outlined","filled"],table:{defaultValue:{summary:"standard"},type:{summary:"string"}}}}},t=s=>d.jsx(e.TextInput,{...s}),n=t.bind({});n.args={label:"Default input"};const a=t.bind({});a.args={label:"Standard input",variant:"standard"};const l=t.bind({});l.args={label:"Outlined input",variant:"outlined"};const i=t.bind({});i.args={label:"Filled input",disabled:!1,variant:"filled"};exports.Default=n;exports.Filled=i;exports.Outlined=l;exports.Standard=a;exports.default=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../TextInput-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../TextInput-BbSyyuvO.cjs");exports.TextInput=t.TextInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./SearchInput/SearchInput.cjs.js"),e=require("../../TextInput-BbSyyuvO.cjs");exports.SearchInput=t;exports.TextInput=e.TextInput;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { T as
|
|
1
|
+
import { default as r } from "./SearchInput/SearchInput.es.js";
|
|
2
|
+
import { T as o } from "../../TextInput-DmMk4i-V.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
r as SearchInput,
|
|
5
|
+
o as TextInput
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime");require("react");const o=require("../../../FileListItem-CjFIZgYg.cjs"),l=require("../../../Box-CjHm9A9L.cjs"),n=({files:r=[],...s})=>i.jsx(l.Box,{sx:{display:"flex",flexDirection:"column",rowGap:"0.5rem"},children:r.map((t,e)=>i.jsx(o.FileListItem,{file:t,uploading:e%2===0,...s},e))});module.exports=n;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import e from "
|
|
4
|
-
import { B as l } from "../../../Box-
|
|
3
|
+
import { F as e } from "../../../FileListItem-ChKTjDnV.js";
|
|
4
|
+
import { B as l } from "../../../Box-erN4AuKs.js";
|
|
5
5
|
const n = ({
|
|
6
6
|
files: i = [],
|
|
7
7
|
...t
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";require("react/jsx-runtime");const e=require("../../../FileListItem-CjFIZgYg.cjs");require("react");require("../../../Box-CjHm9A9L.cjs");require("../../../Typography-KFjBz5Hm.cjs");require("../../../IconButton-CHXclgOn.cjs");module.exports=e.FileListItem;
|
|
@@ -1,41 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { C as x } from "../../../CircularProgress-Bf46-VRs.js";
|
|
8
|
-
var a = {}, I = m;
|
|
9
|
-
Object.defineProperty(a, "__esModule", {
|
|
10
|
-
value: !0
|
|
11
|
-
});
|
|
12
|
-
var d = a.default = void 0, j = I(u()), z = c;
|
|
13
|
-
d = a.default = (0, j.default)(/* @__PURE__ */ (0, z.jsx)("path", {
|
|
14
|
-
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
|
|
15
|
-
}), "Delete");
|
|
16
|
-
var i = {}, $ = m;
|
|
17
|
-
Object.defineProperty(i, "__esModule", {
|
|
18
|
-
value: !0
|
|
19
|
-
});
|
|
20
|
-
var n = i.default = void 0, y = $(u()), g = c;
|
|
21
|
-
n = i.default = (0, y.default)(/* @__PURE__ */ (0, g.jsx)("path", {
|
|
22
|
-
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"
|
|
23
|
-
}), "InsertDriveFile");
|
|
24
|
-
const R = ({
|
|
25
|
-
file: r,
|
|
26
|
-
uploading: o,
|
|
27
|
-
onDelete: t
|
|
28
|
-
}) => {
|
|
29
|
-
const f = `${r.size} octets`, v = () => t == null ? void 0 : t(r);
|
|
30
|
-
return /* @__PURE__ */ s(_, { sx: { display: "flex", alignItems: "center", columnGap: "1rem" }, children: [
|
|
31
|
-
/* @__PURE__ */ e(n, { color: "primary" }),
|
|
32
|
-
/* @__PURE__ */ s("div", { className: "text-start w-full", children: [
|
|
33
|
-
/* @__PURE__ */ e(l, { children: r.name }),
|
|
34
|
-
/* @__PURE__ */ e(l, { fontSize: "0.875rem", color: "grey", children: f })
|
|
35
|
-
] }),
|
|
36
|
-
/* @__PURE__ */ e(h, { onClick: v, disabled: o, children: o ? /* @__PURE__ */ e(x, { size: 24 }) : /* @__PURE__ */ e(d, {}) })
|
|
37
|
-
] });
|
|
38
|
-
}, B = p.memo(R);
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { F as e } from "../../../FileListItem-ChKTjDnV.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../../../Box-erN4AuKs.js";
|
|
5
|
+
import "../../../Typography-B90UzlQW.js";
|
|
6
|
+
import "../../../IconButton-DE5JOshS.js";
|
|
39
7
|
export {
|
|
40
|
-
|
|
8
|
+
e as default
|
|
41
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./FileList.cjs.js"),t=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./FileList.cjs.js"),t=require("../../../FileListItem-CjFIZgYg.cjs");exports.FileList=e;exports.FileListItem=t.FileListItem;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import {
|
|
1
|
+
import { default as i } from "./FileList.es.js";
|
|
2
|
+
import { F as r } from "../../../FileListItem-ChKTjDnV.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
i as FileList,
|
|
5
|
+
r as FileListItem
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),t=require("../../
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),t=require("../../clamp-0LjYbpE_.cjs"),E=require("react"),d=require("../../Tabs-DoxP7EMA.cjs"),b=require("../../styled-DGjsLYEN.cjs"),q=require("../../styled-Dkd1VGM-.cjs"),$=require("../../useThemeProps-CVatCXfo.cjs");function D(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,s.get?s:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const a=D(E),f=a.createContext(null);process.env.NODE_ENV!=="production"&&(f.displayName="TabContext");function M(){const[e,n]=a.useState(null);return a.useEffect(()=>{n(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function y(e){const{children:n,value:o}=e,s=M(),u=a.useMemo(()=>({idPrefix:s,value:o}),[s,o]);return r.jsx(f.Provider,{value:u,children:n})}process.env.NODE_ENV!=="production"&&(y.propTypes={children:t.PropTypes.node,value:t.PropTypes.oneOfType([t.PropTypes.number,t.PropTypes.string]).isRequired});function v(){return a.useContext(f)}function x(e,n){const{idPrefix:o}=e;return o===null?null:`${e.idPrefix}-P-${n}`}function h(e,n){const{idPrefix:o}=e;return o===null?null:`${e.idPrefix}-T-${n}`}const w=["children"],m=a.forwardRef(function(n,o){const{children:s}=n,u=t._objectWithoutPropertiesLoose(n,w),l=v();if(l===null)throw new TypeError("No TabContext provided");const i=a.Children.map(s,c=>a.isValidElement(c)?a.cloneElement(c,{"aria-controls":x(l,c.props.value),id:h(l,c.props.value)}):null);return r.jsx(d.Tabs,t._extends({},u,{ref:o,value:l.value,children:i}))});process.env.NODE_ENV!=="production"&&(m.propTypes={children:t.PropTypes.node});const g=m;function R(e){return t.generateUtilityClass("MuiTabPanel",e)}b.generateUtilityClasses("MuiTabPanel",["root"]);const L=["children","className","value"],S=e=>{const{classes:n}=e,o={root:["root"]};return b.composeClasses(o,R,n)},U=q.styled("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,n)=>n.root})(({theme:e})=>({padding:e.spacing(3)})),j=a.forwardRef(function(n,o){const s=$.useThemeProps({props:n,name:"MuiTabPanel"}),{children:u,className:l,value:i}=s,c=t._objectWithoutPropertiesLoose(s,L),P=t._extends({},s),N=S(P),p=v();if(p===null)throw new TypeError("No TabContext provided");const _=x(p,i),O=h(p,i);return r.jsx(U,t._extends({"aria-labelledby":O,className:b.clsx(N.root,l),hidden:i!==p.value,id:_,ref:o,role:"tabpanel",ownerState:P},c,{children:i===p.value&&u}))});process.env.NODE_ENV!=="production"&&(j.propTypes={children:t.PropTypes.node,classes:t.PropTypes.object,className:t.PropTypes.string,sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object]),value:t.PropTypes.string.isRequired});const T=j,I={title:"Components/Lists/TabList",component:g,argTypes:{value:{options:["1","2","3"],control:{type:"select"}}}},V=e=>r.jsxs(y,{value:e.value,children:[r.jsxs(g,{onChange:e.handleChange,"aria-label":"lab API tabs example",children:[r.jsx(d.Tab,{label:"Utilisateurs",value:"1"}),r.jsx(d.Tab,{label:"Groupes",value:"2"}),r.jsx(d.Tab,{label:"Demandes d'inscription",value:"3"})]}),r.jsx(T,{value:"1",children:"Utilisateurs"}),r.jsx(T,{value:"2",children:"Groupes"}),r.jsx(T,{value:"3",children:"Demandes d'inscription"})]}),C=V.bind({});C.args={value:"1",handleChange:(e,n)=>!0};exports.Default=C;exports.default=I;
|