@cgi-learning-hub/ui 1.3.5-dev.1739381298 → 1.3.5-dev.1739977405
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/{Backdrop-Cvbj4YKG.cjs → Backdrop-BY124k9Q.cjs} +1 -1
- package/dist/{Backdrop-DZHacmMU.js → Backdrop-CZ3ay4ta.js} +2 -2
- package/dist/{Button-DovfjBkz.js → Button-Bqcf-Wrh.js} +1 -2
- package/dist/{Button-COTy9ASL.cjs → Button-qwUFZs87.cjs} +1 -1
- package/dist/{ButtonBase-DKNIY_Ve.cjs → ButtonBase-C9D6EAt-.cjs} +2 -2
- package/dist/{ButtonBase-eQU9HVgU.js → ButtonBase-ylADCBW1.js} +66 -66
- package/dist/CardContent-BMiRcSGk.cjs +1 -0
- package/dist/CardContent-CHoWb0DR.js +226 -0
- package/dist/{Checkbox-y6Kts0Hm.js → Checkbox-92V5IqYF.js} +2 -2
- package/dist/{Checkbox-YCpJS_3E.cjs → Checkbox-DVRfGO8D.cjs} +1 -1
- package/dist/{Chip-FQbM3QKF.cjs → Chip-Ch7Ec9PJ.cjs} +1 -1
- package/dist/{Chip-DT0H_Vjk.js → Chip-I3ytWE-R.js} +2 -2
- package/dist/{CloseRounded-Cu-sn6XC.cjs → CloseRounded-BpiJGsCY.cjs} +1 -1
- package/dist/{CloseRounded-Df8vYhLX.js → CloseRounded-Di7N75zk.js} +1 -1
- package/dist/{DatePicker-CYvDKr4R.js → DatePicker-ByvIBsyI.js} +48 -46
- package/dist/{DatePicker-BroG1y5g.cjs → DatePicker-D3AfDdBL.cjs} +11 -11
- package/dist/{Dialog-BFZeovlo.cjs → Dialog-DouQwf1_.cjs} +1 -1
- package/dist/{Dialog-D0fzD-TX.js → Dialog-GVgQOV8v.js} +2 -2
- package/dist/{DialogTitle-CXRmRtja.cjs → DialogTitle-BTBnlhmM.cjs} +1 -1
- package/dist/{DialogTitle-BXGok8k-.js → DialogTitle-Bw1Q-9PX.js} +1 -1
- package/dist/{Grow-EpJy9qdL.js → Grow-BL8Bx4y5.js} +1 -1
- package/dist/{Grow-BK4rGn4x.cjs → Grow-BjcgF7nV.cjs} +1 -1
- package/dist/{IconButton-CZvDgqOc.js → IconButton-C4GFAbeH.js} +1 -1
- package/dist/{IconButton-BUCTqOFa.cjs → IconButton-loyqjXrR.cjs} +1 -1
- package/dist/{Menu-_4rLUzDf.js → Menu-CtlPVqJo.js} +5 -5
- package/dist/{Menu-NuheFzLD.cjs → Menu-DiQ9wnM_.cjs} +1 -1
- package/dist/{MenuItem-D9Hs7HRQ.js → MenuItem-BCyMn0B-.js} +2 -2
- package/dist/{MenuItem-CNUAbgnE.cjs → MenuItem-DuLNR389.cjs} +1 -1
- package/dist/{Modal-a-cSzSt8.js → Modal-BBc68t3R.js} +5 -5
- package/dist/{Modal-BhIbbbzx.cjs → Modal-CGCKjoqp.cjs} +2 -2
- package/dist/{Popper-CPstdcBG.cjs → Popper-CyMmAyHW.cjs} +1 -1
- package/dist/{Popper-BcaTNUvi.js → Popper-Dotov0nV.js} +2 -2
- package/dist/{Portal-BL8eg_0C.cjs → Portal-BC_MWv30.cjs} +1 -1
- package/dist/{Portal-B8inUnB_.js → Portal-DvgoZfYl.js} +1 -1
- package/dist/Radio-BmCVKlgN.js +568 -0
- package/dist/Radio-Cta61QrN.cjs +1 -0
- package/dist/RadioGroup-BoBajGjF.js +190 -0
- package/dist/RadioGroup-CA-GTAeR.cjs +1 -0
- package/dist/Select-Bm-ZcxRN.cjs +3 -0
- package/dist/{Select-D4pmgfdb.js → Select-DCbhewsz.js} +71 -67
- package/dist/Switch-BMjiyNyB.cjs +1 -0
- package/dist/Switch-JIoNRv7S.js +330 -0
- package/dist/{SwitchBase-VA100mrf.cjs → SwitchBase-CaXyAuEt.cjs} +1 -1
- package/dist/{SwitchBase-ynQQkTVh.js → SwitchBase-Ccit_gYg.js} +1 -1
- package/dist/{Tabs-DzbNYi2v.js → Tabs-Bhy2g9Y0.js} +3 -3
- package/dist/{Tabs-Bg_Zi8UV.cjs → Tabs-ll24SDcl.cjs} +1 -1
- package/dist/{TextField-BcAZk2Rx.cjs → TextField-C5lHwquP.cjs} +1 -1
- package/dist/{TextField-dvVq-1Hp.js → TextField-FNS4AqVd.js} +2 -2
- package/dist/ToggleButtonGroup-CEPDUgtK.cjs +167 -0
- package/dist/ToggleButtonGroup-qi5MsGIW.js +10602 -0
- package/dist/{Tooltip-CVvaAqh7.js → Tooltip-AHSVG6xQ.js} +5 -5
- package/dist/{Tooltip-DL2i_lGL.cjs → Tooltip-C2KS56xn.cjs} +1 -1
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.d.ts +1 -2
- package/dist/components/Button/Button.es.js +20 -4
- package/dist/components/Button/index.cjs.js +1 -1
- package/dist/components/Button/index.es.js +2 -2
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +1 -1
- package/dist/components/FileList/FileIcon.cjs.js +1 -1
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +11 -12
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +95 -88
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +9 -8
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +1 -1
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +30 -0
- package/dist/components/index.es.js +347 -302
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +2 -2
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +17 -168
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/Chip.stories.cjs.js +1 -1
- package/dist/components/stories/Chip.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/FileList.stories.cjs.js +1 -1
- package/dist/components/stories/FileList.stories.es.js +5 -7
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +16 -340
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +1 -1
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +3 -3
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +19 -115
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +2 -2
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +1 -1
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/{createSvgIcon-Cd6y8E9W.js → createSvgIcon-CIearCnQ.js} +44 -42
- package/dist/createSvgIcon-DKtSalut.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +347 -302
- package/dist/resolveComponentProps-CGmtduHt.cjs +1 -0
- package/dist/{mergeSlotProps-DwgGXvkj.js → resolveComponentProps-kRRJ79Kv.js} +6 -6
- package/dist/useSlot-BYekfmak.cjs +1 -0
- package/dist/{useSlot-BYfmyYXv.js → useSlot-CQW01GLa.js} +1 -1
- package/dist/useSlotProps-NZH6_nAj.cjs +1 -0
- package/dist/{useSlotProps-r0vmrJvl.js → useSlotProps-pX6ti4cn.js} +1 -1
- package/dist/utils-C6YMiaf0.cjs +1 -0
- package/dist/{utils-D4djO_Ph.js → utils-CSBYZkoB.js} +40 -40
- package/package.json +1 -1
- package/dist/Button-C-bZSJCq.cjs +0 -28
- package/dist/Button-CSNPv43f.js +0 -542
- package/dist/Card-B7MHmB_Y.js +0 -74
- package/dist/Card-CwE6nm11.cjs +0 -1
- package/dist/FormControlLabel-BjbkwHC0.js +0 -262
- package/dist/FormControlLabel-BjlJz2oa.cjs +0 -1
- package/dist/FormGroup-DdwFGMq2.js +0 -95
- package/dist/FormGroup-x7hlLAv1.cjs +0 -1
- package/dist/Radio-8fNX60rb.cjs +0 -1
- package/dist/Radio-DgedCGZw.js +0 -313
- package/dist/Select-DtrvYyJ3.cjs +0 -3
- package/dist/ToggleButtonGroup-BwIIYgZY.cjs +0 -99
- package/dist/ToggleButtonGroup-CdKu5hQa.js +0 -6915
- package/dist/createSvgIcon-CWNQW6u6.cjs +0 -1
- package/dist/mergeSlotProps-DJgEFzGv.cjs +0 -1
- package/dist/useSlot-CMUEd7j7.cjs +0 -1
- package/dist/useSlotProps-D0jr2eYF.cjs +0 -1
- package/dist/utils-BWXB1haV.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),t=require("../../createSvgIcon-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),t=require("../../createSvgIcon-DKtSalut.cjs"),n=require("../Button/Button.cjs.js"),o=t.createSvgIcon(e.jsx("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonAdd"),r=t.createSvgIcon(e.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),c={title:"Components/Button",component:n},a={args:{children:"Enregistrer",color:"primary",disabled:!1,startIcon:e.jsx(r,{}),variant:"contained",onClick:()=>alert("Alert")}},s={args:{children:"Ajouter un utilisateur",color:"secondary",disabled:!1,startIcon:e.jsx(o,{}),variant:"outlined",onClick:()=>alert("Alert")}},l={args:{children:"Annuler",color:"secondary",disabled:!1,variant:"text",onClick:()=>alert("Alert")}};exports.Contained=a;exports.Outlined=s;exports.Text=l;exports.default=c;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { c as o } from "../../createSvgIcon-
|
|
3
|
-
import
|
|
2
|
+
import { c as o } from "../../createSvgIcon-CIearCnQ.js";
|
|
3
|
+
import e from "../Button/Button.es.js";
|
|
4
4
|
const n = o(/* @__PURE__ */ t("path", {
|
|
5
5
|
d: "M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"
|
|
6
6
|
}), "PersonAdd"), r = o(/* @__PURE__ */ t("path", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),r=require("../Button/Button.cjs.js"),n=require("../../CardContent-BMiRcSGk.cjs"),t=require("../../Typography-Y-OGmT9M.cjs"),a=o=>e.jsxs(n.Card,{sx:{minWidth:275},...o,children:[e.jsxs(n.CardContent,{children:[e.jsx(t.Typography,{gutterBottom:!0,sx:{color:"text.secondary",fontSize:14},children:"Word of the Day"}),e.jsx(t.Typography,{variant:"h5",component:"div",children:"be-nev-o-lent"}),e.jsx(t.Typography,{sx:{color:"text.secondary",mb:1.5},children:"adjective"}),e.jsxs(t.Typography,{variant:"body2",children:["well meaning and kindly.",e.jsx("br",{}),'"a benevolent smile"']})]}),e.jsx(n.CardActions,{children:e.jsx(r,{variant:"text",size:"small",children:"Learn More"})})]}),s={title:"Components/Card",component:a,argTypes:{elevation:{control:"number"},square:{control:"boolean"},variant:{control:"select",options:["elevation","outlined"]}}},i={args:{elevation:1,square:!1,variant:"elevation"}};exports.Default=i;exports.default=s;
|
|
@@ -1,173 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { C as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
C("MuiCardActions", ["root", "spacing"]);
|
|
12
|
-
const j = (t) => {
|
|
13
|
-
const {
|
|
14
|
-
classes: e,
|
|
15
|
-
disableSpacing: s
|
|
16
|
-
} = t;
|
|
17
|
-
return b({
|
|
18
|
-
root: ["root", !s && "spacing"]
|
|
19
|
-
}, N, e);
|
|
20
|
-
}, M = g("div", {
|
|
21
|
-
name: "MuiCardActions",
|
|
22
|
-
slot: "Root",
|
|
23
|
-
overridesResolver: (t, e) => {
|
|
24
|
-
const {
|
|
25
|
-
ownerState: s
|
|
26
|
-
} = t;
|
|
27
|
-
return [e.root, !s.disableSpacing && e.spacing];
|
|
28
|
-
}
|
|
29
|
-
})({
|
|
30
|
-
display: "flex",
|
|
31
|
-
alignItems: "center",
|
|
32
|
-
padding: 8,
|
|
33
|
-
variants: [{
|
|
34
|
-
props: {
|
|
35
|
-
disableSpacing: !1
|
|
36
|
-
},
|
|
37
|
-
style: {
|
|
38
|
-
"& > :not(style) ~ :not(style)": {
|
|
39
|
-
marginLeft: 8
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}]
|
|
43
|
-
}), h = /* @__PURE__ */ u.forwardRef(function(e, s) {
|
|
44
|
-
const r = v({
|
|
45
|
-
props: e,
|
|
46
|
-
name: "MuiCardActions"
|
|
47
|
-
}), {
|
|
48
|
-
disableSpacing: l = !1,
|
|
49
|
-
className: i,
|
|
50
|
-
...d
|
|
51
|
-
} = r, a = {
|
|
52
|
-
...r,
|
|
53
|
-
disableSpacing: l
|
|
54
|
-
}, p = j(a);
|
|
55
|
-
return /* @__PURE__ */ n(M, {
|
|
56
|
-
className: y(p.root, i),
|
|
57
|
-
ownerState: a,
|
|
58
|
-
ref: s,
|
|
59
|
-
...d
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
process.env.NODE_ENV !== "production" && (h.propTypes = {
|
|
63
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
64
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
65
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
66
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
67
|
-
/**
|
|
68
|
-
* The content of the component.
|
|
69
|
-
*/
|
|
70
|
-
children: o.node,
|
|
71
|
-
/**
|
|
72
|
-
* Override or extend the styles applied to the component.
|
|
73
|
-
*/
|
|
74
|
-
classes: o.object,
|
|
75
|
-
/**
|
|
76
|
-
* @ignore
|
|
77
|
-
*/
|
|
78
|
-
className: o.string,
|
|
79
|
-
/**
|
|
80
|
-
* If `true`, the actions do not have additional margin.
|
|
81
|
-
* @default false
|
|
82
|
-
*/
|
|
83
|
-
disableSpacing: o.bool,
|
|
84
|
-
/**
|
|
85
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
86
|
-
*/
|
|
87
|
-
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
88
|
-
});
|
|
89
|
-
function R(t) {
|
|
90
|
-
return f("MuiCardContent", t);
|
|
91
|
-
}
|
|
92
|
-
C("MuiCardContent", ["root"]);
|
|
93
|
-
const w = (t) => {
|
|
94
|
-
const {
|
|
95
|
-
classes: e
|
|
96
|
-
} = t;
|
|
97
|
-
return b({
|
|
98
|
-
root: ["root"]
|
|
99
|
-
}, R, e);
|
|
100
|
-
}, A = g("div", {
|
|
101
|
-
name: "MuiCardContent",
|
|
102
|
-
slot: "Root",
|
|
103
|
-
overridesResolver: (t, e) => e.root
|
|
104
|
-
})({
|
|
105
|
-
padding: 16,
|
|
106
|
-
"&:last-child": {
|
|
107
|
-
paddingBottom: 24
|
|
108
|
-
}
|
|
109
|
-
}), x = /* @__PURE__ */ u.forwardRef(function(e, s) {
|
|
110
|
-
const r = v({
|
|
111
|
-
props: e,
|
|
112
|
-
name: "MuiCardContent"
|
|
113
|
-
}), {
|
|
114
|
-
className: l,
|
|
115
|
-
component: i = "div",
|
|
116
|
-
...d
|
|
117
|
-
} = r, a = {
|
|
118
|
-
...r,
|
|
119
|
-
component: i
|
|
120
|
-
}, p = w(a);
|
|
121
|
-
return /* @__PURE__ */ n(A, {
|
|
122
|
-
as: i,
|
|
123
|
-
className: y(p.root, l),
|
|
124
|
-
ownerState: a,
|
|
125
|
-
ref: s,
|
|
126
|
-
...d
|
|
127
|
-
});
|
|
128
|
-
});
|
|
129
|
-
process.env.NODE_ENV !== "production" && (x.propTypes = {
|
|
130
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
131
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
132
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
133
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
134
|
-
/**
|
|
135
|
-
* The content of the component.
|
|
136
|
-
*/
|
|
137
|
-
children: o.node,
|
|
138
|
-
/**
|
|
139
|
-
* Override or extend the styles applied to the component.
|
|
140
|
-
*/
|
|
141
|
-
classes: o.object,
|
|
142
|
-
/**
|
|
143
|
-
* @ignore
|
|
144
|
-
*/
|
|
145
|
-
className: o.string,
|
|
146
|
-
/**
|
|
147
|
-
* The component used for the root node.
|
|
148
|
-
* Either a string to use a HTML element or a component.
|
|
149
|
-
*/
|
|
150
|
-
component: o.elementType,
|
|
151
|
-
/**
|
|
152
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
153
|
-
*/
|
|
154
|
-
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
155
|
-
});
|
|
156
|
-
const O = (t) => /* @__PURE__ */ m(T, { sx: { minWidth: 275 }, ...t, children: [
|
|
157
|
-
/* @__PURE__ */ m(x, { children: [
|
|
158
|
-
/* @__PURE__ */ n(c, { gutterBottom: !0, sx: { color: "text.secondary", fontSize: 14 }, children: "Word of the Day" }),
|
|
159
|
-
/* @__PURE__ */ n(c, { variant: "h5", component: "div", children: "be-nev-o-lent" }),
|
|
160
|
-
/* @__PURE__ */ n(c, { sx: { color: "text.secondary", mb: 1.5 }, children: "adjective" }),
|
|
161
|
-
/* @__PURE__ */ m(c, { variant: "body2", children: [
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import r from "../Button/Button.es.js";
|
|
3
|
+
import { C as a, b as i, a as l } from "../../CardContent-CHoWb0DR.js";
|
|
4
|
+
import { T as t } from "../../Typography-C9ltjPyz.js";
|
|
5
|
+
const s = (n) => /* @__PURE__ */ o(a, { sx: { minWidth: 275 }, ...n, children: [
|
|
6
|
+
/* @__PURE__ */ o(i, { children: [
|
|
7
|
+
/* @__PURE__ */ e(t, { gutterBottom: !0, sx: { color: "text.secondary", fontSize: 14 }, children: "Word of the Day" }),
|
|
8
|
+
/* @__PURE__ */ e(t, { variant: "h5", component: "div", children: "be-nev-o-lent" }),
|
|
9
|
+
/* @__PURE__ */ e(t, { sx: { color: "text.secondary", mb: 1.5 }, children: "adjective" }),
|
|
10
|
+
/* @__PURE__ */ o(t, { variant: "body2", children: [
|
|
162
11
|
"well meaning and kindly.",
|
|
163
|
-
/* @__PURE__ */
|
|
12
|
+
/* @__PURE__ */ e("br", {}),
|
|
164
13
|
'"a benevolent smile"'
|
|
165
14
|
] })
|
|
166
15
|
] }),
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
] }),
|
|
16
|
+
/* @__PURE__ */ e(l, { children: /* @__PURE__ */ e(r, { variant: "text", size: "small", children: "Learn More" }) })
|
|
17
|
+
] }), h = {
|
|
169
18
|
title: "Components/Card",
|
|
170
|
-
component:
|
|
19
|
+
component: s,
|
|
171
20
|
argTypes: {
|
|
172
21
|
elevation: {
|
|
173
22
|
control: "number"
|
|
@@ -180,7 +29,7 @@ const O = (t) => /* @__PURE__ */ m(T, { sx: { minWidth: 275 }, ...t, children: [
|
|
|
180
29
|
options: ["elevation", "outlined"]
|
|
181
30
|
}
|
|
182
31
|
}
|
|
183
|
-
},
|
|
32
|
+
}, p = {
|
|
184
33
|
args: {
|
|
185
34
|
elevation: 1,
|
|
186
35
|
square: !1,
|
|
@@ -188,6 +37,6 @@ const O = (t) => /* @__PURE__ */ m(T, { sx: { minWidth: 275 }, ...t, children: [
|
|
|
188
37
|
}
|
|
189
38
|
};
|
|
190
39
|
export {
|
|
191
|
-
|
|
192
|
-
|
|
40
|
+
p as Default,
|
|
41
|
+
h as default
|
|
193
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),s=require("../../Checkbox-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),s=require("../../Checkbox-DVRfGO8D.cjs"),r=e=>o.jsx(s.Checkbox,{...e}),c={title:"Components/Checkbox",component:r,argTypes:{checked:{control:"boolean"},color:{control:"select",options:["primary","secondary","success","error","info","warning"]},disabled:{control:"boolean"},disableRipple:{control:"boolean"},required:{control:"boolean"},size:{control:"select",options:["medium","small"]}}},l={args:{checked:void 0,color:"primary",disabled:!1,disableRipple:!1,required:!1,size:"medium"}},t={args:{checked:!0}},a={args:{disabled:!0}},i={args:{checked:!0,disabled:!0}};exports.Checked=t;exports.Default=l;exports.Disabled=a;exports.DisabledChecked=i;exports.default=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Chip-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Chip-Ch7Ec9PJ.cjs"),l={title:"Components/Chip",component:e.Chip,argTypes:{clickable:{control:"boolean"},color:{control:"select",options:["default","primary","secondary","error","info","success","warning"]},disabled:{control:"boolean"},label:{control:"text"},size:{control:"radio",options:["medium","small"]},skipFocusWhenDisabled:{control:"boolean"},variant:{control:"radio",options:["filled","outlined"]}}},o={args:{clickable:!1,color:"default",disabled:!1,label:"Label",size:"medium",skipFocusWhenDisabled:!1,variant:"filled"}},a={args:{label:"Label",variant:"outlined"}},r={args:{label:"Label",color:"primary"}},t={args:{label:"Label",color:"secondary"}},i={args:{label:"Label",disabled:!0}};exports.Default=o;exports.Disabled=i;exports.Outlined=a;exports.Primary=r;exports.Secondary=t;exports.default=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../DatePicker-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../DatePicker-D3AfDdBL.cjs"),t={title:"Components/DatePicker",component:e.DatePicker},a={args:{adapterLocale:"fr"}};exports.Default=a;exports.default=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),c=require("react"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),c=require("react"),o=require("../Button/Button.cjs.js"),u=require("../Dialog/Dialog.cjs.js"),n=require("../../DialogTitle-BTBnlhmM.cjs"),l=require("../../DialogContent-DMvW6Xos.cjs"),d=a=>{const[s,t]=c.useState(!1),r=()=>t(!0),i=()=>t(!1);return e.jsxs(e.Fragment,{children:[e.jsx(o,{variant:"outlined",onClick:r,children:"Open dialog"}),e.jsxs(u,{...a,open:s,onClose:i,children:[e.jsx(n.DialogTitle,{children:"Dialog title"}),e.jsx(l.DialogContent,{children:e.jsxs(n.DialogContentText,{children:["Dialog content text",e.jsx("br",{}),e.jsx("br",{}),"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."]})}),e.jsxs(l.DialogActions,{children:[e.jsx(o,{variant:"text",onClick:i,children:"Cancel"}),e.jsx(o,{variant:"contained",onClick:()=>!0,children:"Save"})]})]})]})},m={title:"Components/Dialog",component:d,parameters:{docs:{description:{component:"This example is made with DialogTitle, DialogContent, DialogContentText and DialogActions but the dialog children are entirely up to you."}}},argTypes:{disableEscapeKeyDown:{control:"boolean"},fullScreen:{control:"boolean"},fullWidth:{control:"boolean"},maxWidth:{control:"select",options:["xs","sm","md","lg","xl",!1]},showCloseButton:{control:"boolean"}}},p={args:{disableEscapeKeyDown:!1,fullScreen:!1,fullWidth:!1,maxWidth:"sm",showCloseButton:!0}};exports.Default=p;exports.default=m;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as o, Fragment as s, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as c } from "react";
|
|
3
|
-
import
|
|
3
|
+
import t from "../Button/Button.es.js";
|
|
4
4
|
import u from "../Dialog/Dialog.es.js";
|
|
5
|
-
import { a as d, D as m } from "../../DialogTitle-
|
|
5
|
+
import { a as d, D as m } from "../../DialogTitle-Bw1Q-9PX.js";
|
|
6
6
|
import { a as p, D as g } from "../../DialogContent-4rDvu_sh.js";
|
|
7
7
|
const f = (l) => {
|
|
8
8
|
const [a, i] = c(!1), r = () => i(!0), n = () => i(!1);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../FileList/FileList.cjs.js");require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../FileList/FileList.cjs.js");require("../FileList/FileListItem.cjs.js");const l={title:"Components/FileList",component:o,argTypes:{files:{description:"The list of files to display.",control:"object",table:{type:{summary:"(T extends CustomFile)[]",detail:`interface CustomFile {
|
|
2
2
|
name: string;
|
|
3
3
|
size: number;
|
|
4
4
|
isLoading?: boolean;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import o from "../FileList/FileList.es.js";
|
|
2
|
-
import "
|
|
3
|
-
|
|
4
|
-
import "react";
|
|
5
|
-
const s = {
|
|
2
|
+
import "../FileList/FileListItem.es.js";
|
|
3
|
+
const t = {
|
|
6
4
|
title: "Components/FileList",
|
|
7
5
|
component: o,
|
|
8
6
|
argTypes: {
|
|
@@ -138,7 +136,7 @@ const s = {
|
|
|
138
136
|
isDownloadable: !0,
|
|
139
137
|
ownerName: "Sophia Harris"
|
|
140
138
|
}
|
|
141
|
-
],
|
|
139
|
+
], n = {
|
|
142
140
|
args: {
|
|
143
141
|
files: a,
|
|
144
142
|
onDelete: (e) => alert("delete : " + e.name),
|
|
@@ -147,6 +145,6 @@ const s = {
|
|
|
147
145
|
}
|
|
148
146
|
};
|
|
149
147
|
export {
|
|
150
|
-
|
|
151
|
-
|
|
148
|
+
n as Default,
|
|
149
|
+
t as default
|
|
152
150
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),e=require("../../Radio-Cta61QrN.cjs"),l=require("../../Checkbox-DVRfGO8D.cjs"),r=require("../../Switch-BMjiyNyB.cjs"),n=t=>o.jsx(e.FormControlLabel,{...t}),a={title:"Components/FormControlLabel",component:n,argTypes:{control:{control:"object"},disabled:{control:"boolean"},disableTypography:{control:"boolean"},label:{control:"object"},labelPlacement:{control:"select",options:["bottom","end","start","top"]},required:{control:"boolean"}}},c={args:{control:o.jsx(l.Checkbox,{}),checked:void 0,disabled:void 0,disableTypography:void 0,label:"Label",labelPlacement:"end",required:void 0}},s={args:{control:o.jsx(e.Radio,{}),label:"Label"}},i={args:{control:o.jsx(r.Switch,{}),label:"Label"}};exports.Checkbox=c;exports.Radio=s;exports.Switch=i;exports.default=a;
|