@cgi-learning-hub/ui 1.3.5 → 1.4.0-dev.1740589431
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-DcDd6WZF.js → Backdrop-BctCVgLy.js} +79 -82
- package/dist/Backdrop-DWp3AktL.cjs +1 -0
- package/dist/{Box-mP2Th61z.cjs → Box-DYA49L7w.cjs} +1 -1
- package/dist/{Box-Byz2BwGf.js → Box-DgqaLb7j.js} +8 -8
- package/dist/Button-B7kOjNW1.js +696 -0
- package/dist/Button-UmeKHfcL.cjs +1 -0
- package/dist/ButtonBase-D6tfI-8D.cjs +74 -0
- package/dist/{ButtonBase-DAWDecOk.js → ButtonBase-IZ_QjbpE.js} +334 -334
- package/dist/CardContent-5bW4A4d2.cjs +1 -0
- package/dist/CardContent-F4-KcZH8.js +226 -0
- package/dist/{Checkbox-DYrDbdy1.cjs → Checkbox-DQgPXaym.cjs} +1 -1
- package/dist/{Checkbox-8Rhxpkjl.js → Checkbox-qUSjau0g.js} +26 -26
- package/dist/Chip-BTnuWGEU.cjs +1 -0
- package/dist/Chip-OpRIs-sL.js +522 -0
- package/dist/{CircularProgress-Kwlef5fX.js → CircularProgress-CQxzJquv.js} +11 -11
- package/dist/{CircularProgress-BByrCLjv.cjs → CircularProgress-cPXhiRlM.cjs} +4 -4
- package/dist/CloseRounded-BMEGLs8y.js +8 -0
- package/dist/CloseRounded-BRXBizmR.cjs +1 -0
- package/dist/{DatePicker-BS1OatwQ.js → DatePicker-C6MCYjpp.js} +3113 -3600
- package/dist/DatePicker-CTIqTlNQ.cjs +14 -0
- package/dist/DefaultPropsProvider-Cqcb4sws.js +303 -0
- package/dist/DefaultPropsProvider-wpBXjN8r.cjs +1 -0
- package/dist/Dialog-B1wnk5BT.cjs +1 -0
- package/dist/Dialog-CKS7yjT5.js +478 -0
- package/dist/{DialogContent-uc65XOEU.js → DialogContent-BzPaz5G8.js} +13 -13
- package/dist/{DialogContent-Dj_OjLZ6.cjs → DialogContent-DcZz4rBc.cjs} +1 -1
- package/dist/{DialogTitle-C8JOi-rq.js → DialogTitle-D3E_lDHD.js} +30 -30
- package/dist/{DialogTitle-BboPDaoB.cjs → DialogTitle-mr9xn4JZ.cjs} +1 -1
- package/dist/{Divider-KO-E6nU8.js → Divider-D-pZeQTm.js} +8 -8
- package/dist/{Divider-CcrM3lNn.cjs → Divider-D3hPb7s4.cjs} +1 -1
- package/dist/{FormLabel-CfR4bb21.js → FormLabel-3-CC-ZGw.js} +131 -133
- package/dist/FormLabel-BV7-a0i5.cjs +2 -0
- package/dist/{Grow-CQVPAYvp.js → Grow-DKgYCxiY.js} +46 -43
- package/dist/Grow-Z3KzFaK5.cjs +1 -0
- package/dist/{IconButton-CekuyD4r.js → IconButton-CCNUMz2l.js} +132 -64
- package/dist/IconButton-CVOPR4EM.cjs +2 -0
- package/dist/{InputAdornment-Cq0WhPxF.cjs → InputAdornment-CwFEJSXv.cjs} +1 -1
- package/dist/{InputAdornment-iU5YnveW.js → InputAdornment-DL8XIM8r.js} +15 -14
- package/dist/{InputBase-BJy3wwFB.js → InputBase-By7jMrFP.js} +221 -215
- package/dist/InputBase-Cejvjv1E.cjs +3 -0
- package/dist/Link-2ncpUcIp.cjs +1 -0
- package/dist/{Link-CoQuUM0t.js → Link-C_GPIs0q.js} +46 -46
- package/dist/{Menu-C7tKmcAh.js → Menu-BunOW0ot.js} +72 -73
- package/dist/Menu-Cngt8Va9.cjs +7 -0
- package/dist/{MenuItem-BZ_EVaBq.cjs → MenuItem-Bha8aBMr.cjs} +1 -1
- package/dist/{MenuItem-j8luVUcX.js → MenuItem-Cu3FTLl8.js} +20 -20
- package/dist/{Modal-brWBFdK7.js → Modal-DTJd7JJ6.js} +99 -98
- package/dist/Modal-u82Ss4h_.cjs +2 -0
- package/dist/{Paper-BG4Vk_Um.js → Paper-BiZq6EF2.js} +8 -8
- package/dist/{Paper-Cr56xkCr.cjs → Paper-EvOTlB_Q.cjs} +2 -2
- package/dist/{Popper-YT5WAMV-.cjs → Popper-BVYscbsI.cjs} +3 -3
- package/dist/{Popper-DFZ_gRev.js → Popper-DjwR55WH.js} +241 -243
- package/dist/{Portal-JEwcozmp.js → Portal-BByeByPq.js} +34 -39
- package/dist/Portal-DUHpWdY1.cjs +1 -0
- package/dist/Radio-CSl8GQNk.cjs +1 -0
- package/dist/Radio-DSRS-tjj.js +568 -0
- package/dist/RadioGroup-DL4hhZzK.cjs +1 -0
- package/dist/RadioGroup-cPdOWdYD.js +190 -0
- package/dist/{Select-DmssuG5M.js → Select-CZnKFG3o.js} +419 -401
- package/dist/Select-DZAzJA0y.cjs +3 -0
- package/dist/Stack-B82ckLGm.cjs +1 -0
- package/dist/{Stack-BzTJdRGj.js → Stack-hbAJHQhq.js} +29 -29
- package/dist/Switch-B9uT9-d0.js +330 -0
- package/dist/Switch-DWKHe4z_.cjs +1 -0
- package/dist/{SwitchBase-Dlth5_F7.js → SwitchBase-CDkmnGAP.js} +29 -29
- package/dist/{SwitchBase-DjIY_KWB.cjs → SwitchBase-CnA6TA2P.cjs} +1 -1
- package/dist/Tabs-AyJ_tKtV.cjs +4 -0
- package/dist/{Tabs-CYbeTnJk.js → Tabs-BYfDlOR9.js} +336 -337
- package/dist/{TextField-Cri5Gxa7.js → TextField-BKfXjPdH.js} +29 -27
- package/dist/TextField-CwcPgdgD.cjs +1 -0
- package/dist/ToggleButtonGroup-DIp0fcXW.cjs +140 -0
- package/dist/ToggleButtonGroup-sc2omtRp.js +10473 -0
- package/dist/{Tooltip-BhAHhzKz.js → Tooltip-B1NGvrJP.js} +14 -14
- package/dist/{Tooltip-DhDtvULK.cjs → Tooltip-oNmnF7Bc.cjs} +3 -3
- package/dist/{TransitionGroupContext-DMJLhY9-.js → TransitionGroupContext-DbLioz_6.js} +7 -7
- package/dist/TransitionGroupContext-Zt4NoR0u.cjs +1 -0
- package/dist/{Typography-DfRMDngd.cjs → Typography-DPij13XT.cjs} +1 -1
- package/dist/{Typography-DBwTr_ix.js → Typography-SIQ6eleU.js} +9 -9
- package/dist/{capitalize-CkF8kU4n.js → capitalize-3KLkrEtk.js} +1 -1
- package/dist/{capitalize-B3GG7Wn6.cjs → capitalize-CEByPz9F.cjs} +1 -1
- package/dist/components/Alert/Alert.es.js +13 -4
- 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 +12 -325
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -2
- 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 +12 -14
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.d.ts +2 -0
- package/dist/components/Dropzone/Dropzone.es.js +22 -19
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.cjs.js +1 -1
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +4 -3
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileIcon.cjs.js +1 -0
- package/dist/components/FileList/FileIcon.d.ts +3 -0
- package/dist/components/FileList/FileIcon.es.js +56 -0
- package/dist/components/FileList/FileInfosSeparator.cjs.js +1 -0
- package/dist/components/FileList/FileInfosSeparator.d.ts +1 -0
- package/dist/components/FileList/FileInfosSeparator.es.js +14 -0
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.d.ts +5 -3
- package/dist/components/FileList/FileList.es.js +22 -15
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.d.ts +9 -5
- package/dist/components/FileList/FileListItem.es.js +118 -24
- package/dist/components/FileList/utils.cjs.js +1 -0
- package/dist/components/FileList/utils.d.ts +2 -0
- package/dist/components/FileList/utils.es.js +13 -0
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +79 -54
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.d.ts +1 -2
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +1 -2
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +12 -10
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.d.ts +2 -2
- package/dist/components/QueryError/QueryError.es.js +14 -14
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -0
- package/dist/components/ResourceCard/ResourceCard.d.ts +24 -0
- package/dist/components/ResourceCard/ResourceCard.es.js +128 -0
- package/dist/components/ResourceCard/index.cjs.js +1 -0
- package/dist/components/ResourceCard/index.d.ts +2 -0
- package/dist/components/ResourceCard/index.es.js +4 -0
- package/dist/components/ResourceCard/style.cjs.js +1 -0
- package/dist/components/ResourceCard/style.es.js +125 -0
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +1 -2
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- 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 +35 -0
- package/dist/components/index.es.js +348 -294
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +17 -168
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +5 -5
- package/dist/components/stories/Chip.stories.cjs.js +1 -0
- package/dist/components/stories/Chip.stories.d.ts +10 -0
- package/dist/components/stories/Chip.stories.es.js +77 -0
- 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/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +5 -5
- package/dist/components/stories/FileList.stories.cjs.js +8 -1
- package/dist/components/stories/FileList.stories.es.js +144 -20
- 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 +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +16 -16
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- 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 -0
- package/dist/components/stories/ResourceCard.stories.d.ts +9 -0
- package/dist/components/stories/ResourceCard.stories.es.js +141 -0
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +14 -14
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +3 -3
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/createSvgIcon-DJMYlO0S.cjs +1 -0
- package/dist/{createSvgIcon-C8nGcfF4.js → createSvgIcon-K2ZAdASa.js} +57 -55
- package/dist/{dividerClasses-CCAY3Pnr.cjs → dividerClasses-Dq1bCO_s.cjs} +1 -1
- package/dist/{dividerClasses-nh2-hkQB.js → dividerClasses-afsB3Yy1.js} +3 -3
- package/dist/{elementTypeAcceptingRef-D-5kcohU.js → elementTypeAcceptingRef-5ESWTE79.js} +1 -1
- package/dist/{elementTypeAcceptingRef-DZsNbuLU.cjs → elementTypeAcceptingRef-BjgxF5Bq.cjs} +1 -1
- package/dist/{extendSxProp-apyK-EBz.cjs → extendSxProp-D-oLUmkR.cjs} +1 -1
- package/dist/{extendSxProp-C2ff0oGc.js → extendSxProp-dlShX1xL.js} +3 -3
- package/dist/{fr-Bjufn3RW.js → fr-B3qrCNcK.js} +18 -18
- package/dist/generateUtilityClasses-De8NU9_E.cjs +75 -0
- package/dist/generateUtilityClasses-DotvgSDH.js +3297 -0
- package/dist/hooks/lazySvgImport.d.ts +1 -1
- package/dist/{index-CwvpOCso.js → index-B1u7G33_.js} +29 -29
- package/dist/{index-ChM1Ett8.cjs → index-CVFzneYe.cjs} +1 -1
- package/dist/{index-BCnPLuqJ.js → index-DTTmpNYg.js} +22 -22
- package/dist/index-T-RSwkXB.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +348 -294
- package/dist/{memoTheme-D7Fyh_3C.js → memoTheme-CqmIydD-.js} +1 -1
- package/dist/{memoTheme-Bdg0Y_2O.cjs → memoTheme-DrjvJtTP.cjs} +1 -1
- package/dist/{refType-CoaxQOPt.cjs → refType-BkobP3bK.cjs} +1 -1
- package/dist/{refType-DKYKROQk.js → refType-C210ipRY.js} +1 -1
- package/dist/{mergeSlotProps-tUJEcwVu.js → resolveComponentProps-CPmhKPdH.js} +7 -7
- package/dist/resolveComponentProps-PuUs-PsA.cjs +1 -0
- package/dist/unsupportedProp-Bn6XWqwH.cjs +1 -0
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/useSlot-CC2AaOjN.cjs +1 -0
- package/dist/useSlot-GZu0V5wJ.js +48 -0
- package/dist/{useSlotProps-B31YQlzb.js → useSlotProps-C9tsxDNg.js} +11 -11
- package/dist/useSlotProps-CvOxvhyy.cjs +1 -0
- package/dist/{useTheme-Dukx-__T.cjs → useTheme-7RGQRN-h.cjs} +1 -1
- package/dist/useTheme-BA7tMglY.js +11 -0
- package/dist/{useTheme-Cy5kyKJF.cjs → useTheme-CIf2b2wK.cjs} +1 -1
- package/dist/{useTheme-_xyy-wul.js → useTheme-tdgDVH1p.js} +1 -1
- package/dist/{useThemeProps-u_ESzK2f.cjs → useThemeProps-AnS1uVAy.cjs} +1 -1
- package/dist/{useThemeProps-BySkSe-M.js → useThemeProps-BQlPXzo3.js} +2 -2
- package/dist/useThemeProps-BTfGtNci.js +17 -0
- package/dist/useThemeProps-DxBEHys5.cjs +1 -0
- package/dist/utils-CFI_-FMV.cjs +1 -0
- package/dist/{utils-C6c4fj7D.js → utils-CXhh35wP.js} +41 -41
- package/package.json +9 -9
- package/dist/Backdrop-CvufxHMY.cjs +0 -1
- package/dist/Button-BH9MUvmz.cjs +0 -1
- package/dist/Button-BnNYfQ3E.js +0 -484
- package/dist/ButtonBase-BXtyQVDC.cjs +0 -74
- package/dist/Card-AJG0TUOx.js +0 -74
- package/dist/Card-NqCXQteq.cjs +0 -1
- package/dist/DatePicker-7-4p3Vtj.cjs +0 -14
- package/dist/DefaultPropsProvider-3KMGupjb.cjs +0 -17
- package/dist/DefaultPropsProvider-CvJPQJmL.js +0 -454
- package/dist/Delete-BkZN7Xu5.js +0 -8
- package/dist/Delete-D1EiKoL5.cjs +0 -1
- package/dist/Dialog-D_lS4J_M.js +0 -415
- package/dist/Dialog-yOrNcHbG.cjs +0 -1
- package/dist/FormControlLabel-Bb6Ul-qQ.cjs +0 -1
- package/dist/FormControlLabel-BmrKQtQA.js +0 -262
- package/dist/FormGroup-CbczEc6e.js +0 -95
- package/dist/FormGroup-Y3P2AG0i.cjs +0 -1
- package/dist/FormLabel-D1uvEhsH.cjs +0 -2
- package/dist/Grow-CUBJs6WD.cjs +0 -1
- package/dist/IconButton-CJfzspZK.cjs +0 -2
- package/dist/InputBase-s1fk8TB4.cjs +0 -3
- package/dist/Link-CWczkFp0.cjs +0 -1
- package/dist/Menu-Bsx8PA-q.cjs +0 -7
- package/dist/Modal-DImrEpYJ.cjs +0 -2
- package/dist/Portal-DF0RKOcD.cjs +0 -1
- package/dist/Radio-CVAEGXKi.cjs +0 -1
- package/dist/Radio-DGhot3Cd.js +0 -313
- package/dist/Select-CwAWNiiv.cjs +0 -3
- package/dist/Stack-Yq6rb7iK.cjs +0 -1
- package/dist/TableSortLabel-BsgRD4k4.js +0 -6328
- package/dist/TableSortLabel-D0N3e3cP.cjs +0 -98
- package/dist/Tabs-KG4VWw-1.cjs +0 -4
- package/dist/TextField-BI9KVqjC.cjs +0 -1
- package/dist/TransitionGroupContext-DbXD5xqS.cjs +0 -1
- package/dist/createSvgIcon--rEClVU7.cjs +0 -1
- package/dist/generateUtilityClasses-B_H9HEmg.cjs +0 -59
- package/dist/generateUtilityClasses-Bssl7BA_.js +0 -3145
- package/dist/index-Aa73Kpym.cjs +0 -1
- package/dist/index-Cw0GDedk.cjs +0 -17
- package/dist/index-DXD5J5Eu.js +0 -186
- package/dist/mergeSlotProps-DuV-LTW7.cjs +0 -1
- package/dist/useSlot-BTpHG6jf.js +0 -50
- package/dist/useSlot-CByalpSD.cjs +0 -1
- package/dist/useSlotProps-BVSAQTNl.cjs +0 -1
- package/dist/useTheme-DyaNKf4e.js +0 -11
- package/dist/useThemeProps-CdV_QwDl.cjs +0 -1
- package/dist/useThemeProps-CwEQ4bv2.js +0 -24
- package/dist/utils-vmyQ2IaS.cjs +0 -1
|
@@ -1,133 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { F as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { F as j } from "../../FormGroup-CbczEc6e.js";
|
|
10
|
-
import { c as k } from "../../DefaultPropsProvider-CvJPQJmL.js";
|
|
11
|
-
import { F as d } from "../../FormControlLabel-BmrKQtQA.js";
|
|
12
|
-
function q(r) {
|
|
13
|
-
return S("MuiRadioGroup", r);
|
|
14
|
-
}
|
|
15
|
-
P("MuiRadioGroup", ["root", "row", "error"]);
|
|
16
|
-
const D = (r) => {
|
|
17
|
-
const {
|
|
18
|
-
classes: a,
|
|
19
|
-
row: l,
|
|
20
|
-
error: n
|
|
21
|
-
} = r;
|
|
22
|
-
return k({
|
|
23
|
-
root: ["root", l && "row", n && "error"]
|
|
24
|
-
}, q, a);
|
|
25
|
-
}, b = /* @__PURE__ */ s.forwardRef(function(a, l) {
|
|
26
|
-
const {
|
|
27
|
-
// private
|
|
28
|
-
// eslint-disable-next-line react/prop-types
|
|
29
|
-
actions: n,
|
|
30
|
-
children: m,
|
|
31
|
-
className: h,
|
|
32
|
-
defaultValue: C,
|
|
33
|
-
name: v,
|
|
34
|
-
onChange: u,
|
|
35
|
-
value: y,
|
|
36
|
-
...G
|
|
37
|
-
} = a, i = s.useRef(null), F = D(a), [p, f] = L({
|
|
38
|
-
controlled: y,
|
|
39
|
-
default: C,
|
|
40
|
-
name: "RadioGroup"
|
|
41
|
-
});
|
|
42
|
-
s.useImperativeHandle(n, () => ({
|
|
43
|
-
focus: () => {
|
|
44
|
-
let e = i.current.querySelector("input:not(:disabled):checked");
|
|
45
|
-
e || (e = i.current.querySelector("input:not(:disabled)")), e && e.focus();
|
|
46
|
-
}
|
|
47
|
-
}), []);
|
|
48
|
-
const w = M(l, i), R = T(v), x = s.useMemo(() => ({
|
|
49
|
-
name: R,
|
|
50
|
-
onChange(e) {
|
|
51
|
-
f(e.target.value), u && u(e, e.target.value);
|
|
52
|
-
},
|
|
53
|
-
value: p
|
|
54
|
-
}), [R, u, f, p]);
|
|
55
|
-
return /* @__PURE__ */ o(I.Provider, {
|
|
56
|
-
value: x,
|
|
57
|
-
children: /* @__PURE__ */ o(j, {
|
|
58
|
-
role: "radiogroup",
|
|
59
|
-
ref: w,
|
|
60
|
-
className: U(F.root, h),
|
|
61
|
-
...G,
|
|
62
|
-
children: m
|
|
63
|
-
})
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
process.env.NODE_ENV !== "production" && (b.propTypes = {
|
|
67
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
68
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
69
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
70
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
71
|
-
/**
|
|
72
|
-
* The content of the component.
|
|
73
|
-
*/
|
|
74
|
-
children: t.node,
|
|
75
|
-
/**
|
|
76
|
-
* @ignore
|
|
77
|
-
*/
|
|
78
|
-
className: t.string,
|
|
79
|
-
/**
|
|
80
|
-
* The default value. Use when the component is not controlled.
|
|
81
|
-
*/
|
|
82
|
-
defaultValue: t.any,
|
|
83
|
-
/**
|
|
84
|
-
* The name used to reference the value of the control.
|
|
85
|
-
* If you don't provide this prop, it falls back to a randomly generated name.
|
|
86
|
-
*/
|
|
87
|
-
name: t.string,
|
|
88
|
-
/**
|
|
89
|
-
* Callback fired when a radio button is selected.
|
|
90
|
-
*
|
|
91
|
-
* @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
|
|
92
|
-
* @param {string} value The value of the selected radio button.
|
|
93
|
-
* You can pull out the new value by accessing `event.target.value` (string).
|
|
94
|
-
*/
|
|
95
|
-
onChange: t.func,
|
|
96
|
-
/**
|
|
97
|
-
* Value of the selected radio button. The DOM API casts this to a string.
|
|
98
|
-
*/
|
|
99
|
-
value: t.any
|
|
100
|
-
});
|
|
101
|
-
const E = (r) => /* @__PURE__ */ g(V, { children: [
|
|
102
|
-
/* @__PURE__ */ o(N, { id: "radio-buttons-group-label", children: "Label" }),
|
|
103
|
-
/* @__PURE__ */ g(
|
|
104
|
-
b,
|
|
1
|
+
import { jsxs as t, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { F as e, a as s } from "../../FormLabel-3-CC-ZGw.js";
|
|
3
|
+
import { R as n } from "../../RadioGroup-cPdOWdYD.js";
|
|
4
|
+
import { F as r, R as a } from "../../Radio-DSRS-tjj.js";
|
|
5
|
+
const i = (l) => /* @__PURE__ */ t(e, { children: [
|
|
6
|
+
/* @__PURE__ */ o(s, { id: "radio-buttons-group-label", children: "Label" }),
|
|
7
|
+
/* @__PURE__ */ t(
|
|
8
|
+
n,
|
|
105
9
|
{
|
|
106
10
|
"aria-labelledby": "radio-buttons-group-label",
|
|
107
11
|
defaultValue: "first",
|
|
108
12
|
name: "radio-buttons-group",
|
|
109
|
-
...
|
|
13
|
+
...l,
|
|
110
14
|
children: [
|
|
111
|
-
/* @__PURE__ */ o(
|
|
112
|
-
/* @__PURE__ */ o(
|
|
113
|
-
/* @__PURE__ */ o(
|
|
15
|
+
/* @__PURE__ */ o(r, { value: "first", control: /* @__PURE__ */ o(a, {}), label: "First" }),
|
|
16
|
+
/* @__PURE__ */ o(r, { value: "second", control: /* @__PURE__ */ o(a, {}), label: "Second" }),
|
|
17
|
+
/* @__PURE__ */ o(r, { value: "third", control: /* @__PURE__ */ o(a, {}), label: "Third" })
|
|
114
18
|
]
|
|
115
19
|
}
|
|
116
20
|
)
|
|
117
|
-
] }),
|
|
21
|
+
] }), c = {
|
|
118
22
|
title: "Components/RadioGroup",
|
|
119
|
-
component:
|
|
120
|
-
},
|
|
23
|
+
component: i
|
|
24
|
+
}, p = {
|
|
121
25
|
args: {
|
|
122
26
|
row: !1
|
|
123
27
|
}
|
|
124
|
-
},
|
|
28
|
+
}, f = {
|
|
125
29
|
args: {
|
|
126
30
|
row: !0
|
|
127
31
|
}
|
|
128
32
|
};
|
|
129
33
|
export {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
34
|
+
p as Default,
|
|
35
|
+
f as Row,
|
|
36
|
+
c as default
|
|
133
37
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),o=require("../../createSvgIcon-DJMYlO0S.cjs"),r=require("@mui/material"),c=require("../ResourceCard/ResourceCard.cjs.js"),s=o.createSvgIcon(e.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),i=o.createSvgIcon(e.jsx("path",{d:"M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-6 16h-2v-2h2zm2.07-7.75-.9.92C13.45 11.9 13 12.5 13 14h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"LiveHelp"),l=o.createSvgIcon(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public"),a=o.createSvgIcon(e.jsx("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),n={title:"Components/ResourceCard",component:c,argTypes:{title:{description:"Titre de la carte.",control:"text",table:{type:{summary:"string"}},required:!0},defaultImage:{description:"Image par défaut => Logo de l'application",control:"text",table:{type:{summary:"string"}},required:!0},isSelected:{description:"Indique si la carte est sélectionnée.",control:"boolean",table:{type:{summary:"boolean"},defaultValue:{summary:"false"}}},onSelect:{description:"Callback déclenché lorsque l'utilisateur sélectionne la carte.",action:"card-selected",table:{type:{summary:"() => void"}}},image:{description:"URL de l'image affichée sur la carte.",control:"text",table:{type:{summary:"string"}}},propertyItems:{description:"Liste des propriétés affichées sous le titre.",control:"object",table:{type:{summary:"PropertyItem[{text: Typography, icon: MuiIcon}]"}}},infoIcons:{description:"Liste des icônes d'information affichées dans la carte. (3 maximums)",control:"object",table:{type:{summary:"InfoItem[{text: string, icon: MuiIcon}]"}}},size:{description:"Taille de la carte (petite ou moyenne).",control:"radio",options:["sm","md"],table:{type:{summary:'"sm" | "md"'},defaultValue:{summary:"md"}}},width:{description:"Largeur de la carte.",control:"text",table:{type:{summary:"string"},defaultValue:{summary:"320px"}}}}},t={args:{isSelected:!1,image:"https://dummyimage.com/600x400/000/fff.png&text=flashquizz",defaultImage:"https://flashquizz-dev.support-ent.fr/images/logo.svg",title:"Titre de la Ressource tres loooooooooooooooooooooooooooooooooooooooooooooooooooooong",propertyItems:[{text:e.jsx(r.Typography,{color:"text.primary",children:"0 questions"}),icon:e.jsx(i,{color:"primary"})},{text:e.jsx(r.Typography,{color:"text.primary",children:"27 septembre 2025"}),icon:e.jsx(s,{color:"primary"})}],infoIcons:[{text:"Information 1",icon:e.jsx(l,{color:"primary"})},{text:"Information 2",icon:e.jsx(a,{color:"primary"})},{text:"Information 3",icon:e.jsx(a,{color:"primary"})}],size:"md",onSelect:()=>{console.log("Carte sélectionnée !")},onClick:()=>{console.log("Select all")}}},m={args:{...t.args,isSelected:!0,title:"Carte Sélectionnée"}},d={args:{...t.args,size:"sm",title:"Petite Carte"}},u={args:{...t.args,title:"Pas d'image",image:void 0}};exports.Default=t;exports.NoImage=u;exports.Selected=m;exports.Small=d;exports.default=n;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as ResourceCard } from '../ResourceCard/ResourceCard';
|
|
3
|
+
declare const meta: Meta<typeof ResourceCard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ResourceCard>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Selected: Story;
|
|
8
|
+
export declare const Small: Story;
|
|
9
|
+
export declare const NoImage: Story;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c as e } from "../../createSvgIcon-K2ZAdASa.js";
|
|
3
|
+
import { Typography as r } from "@mui/material";
|
|
4
|
+
import c from "../ResourceCard/ResourceCard.es.js";
|
|
5
|
+
const i = e(/* @__PURE__ */ o("path", {
|
|
6
|
+
d: "M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"
|
|
7
|
+
}), "CalendarToday"), s = e(/* @__PURE__ */ o("path", {
|
|
8
|
+
d: "M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-6 16h-2v-2h2zm2.07-7.75-.9.92C13.45 11.9 13 12.5 13 14h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"
|
|
9
|
+
}), "LiveHelp"), l = e(/* @__PURE__ */ o("path", {
|
|
10
|
+
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"
|
|
11
|
+
}), "Public"), a = e(/* @__PURE__ */ o("path", {
|
|
12
|
+
d: "M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"
|
|
13
|
+
}), "Star"), u = {
|
|
14
|
+
title: "Components/ResourceCard",
|
|
15
|
+
component: c,
|
|
16
|
+
argTypes: {
|
|
17
|
+
title: {
|
|
18
|
+
description: "Titre de la carte.",
|
|
19
|
+
control: "text",
|
|
20
|
+
table: {
|
|
21
|
+
type: { summary: "string" }
|
|
22
|
+
},
|
|
23
|
+
required: !0
|
|
24
|
+
},
|
|
25
|
+
defaultImage: {
|
|
26
|
+
description: "Image par défaut => Logo de l'application",
|
|
27
|
+
control: "text",
|
|
28
|
+
table: {
|
|
29
|
+
type: { summary: "string" }
|
|
30
|
+
},
|
|
31
|
+
required: !0
|
|
32
|
+
},
|
|
33
|
+
isSelected: {
|
|
34
|
+
description: "Indique si la carte est sélectionnée.",
|
|
35
|
+
control: "boolean",
|
|
36
|
+
table: {
|
|
37
|
+
type: { summary: "boolean" },
|
|
38
|
+
defaultValue: { summary: "false" }
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
onSelect: {
|
|
42
|
+
description: "Callback déclenché lorsque l'utilisateur sélectionne la carte.",
|
|
43
|
+
action: "card-selected",
|
|
44
|
+
table: {
|
|
45
|
+
type: { summary: "() => void" }
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
image: {
|
|
49
|
+
description: "URL de l'image affichée sur la carte.",
|
|
50
|
+
control: "text",
|
|
51
|
+
table: {
|
|
52
|
+
type: { summary: "string" }
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
propertyItems: {
|
|
56
|
+
description: "Liste des propriétés affichées sous le titre.",
|
|
57
|
+
control: "object",
|
|
58
|
+
table: {
|
|
59
|
+
type: { summary: "PropertyItem[{text: Typography, icon: MuiIcon}]" }
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
infoIcons: {
|
|
63
|
+
description: "Liste des icônes d'information affichées dans la carte. (3 maximums)",
|
|
64
|
+
control: "object",
|
|
65
|
+
table: {
|
|
66
|
+
type: { summary: "InfoItem[{text: string, icon: MuiIcon}]" }
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
size: {
|
|
70
|
+
description: "Taille de la carte (petite ou moyenne).",
|
|
71
|
+
control: "radio",
|
|
72
|
+
options: ["sm", "md"],
|
|
73
|
+
table: {
|
|
74
|
+
type: { summary: '"sm" | "md"' },
|
|
75
|
+
defaultValue: { summary: "md" }
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
width: {
|
|
79
|
+
description: "Largeur de la carte.",
|
|
80
|
+
control: "text",
|
|
81
|
+
table: {
|
|
82
|
+
type: { summary: "string" },
|
|
83
|
+
defaultValue: { summary: "320px" }
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}, t = {
|
|
88
|
+
args: {
|
|
89
|
+
isSelected: !1,
|
|
90
|
+
image: "https://dummyimage.com/600x400/000/fff.png&text=flashquizz",
|
|
91
|
+
defaultImage: "https://flashquizz-dev.support-ent.fr/images/logo.svg",
|
|
92
|
+
title: "Titre de la Ressource tres loooooooooooooooooooooooooooooooooooooooooooooooooooooong",
|
|
93
|
+
propertyItems: [
|
|
94
|
+
{
|
|
95
|
+
text: /* @__PURE__ */ o(r, { color: "text.primary", children: "0 questions" }),
|
|
96
|
+
icon: /* @__PURE__ */ o(s, { color: "primary" })
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
text: /* @__PURE__ */ o(r, { color: "text.primary", children: "27 septembre 2025" }),
|
|
100
|
+
icon: /* @__PURE__ */ o(i, { color: "primary" })
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
infoIcons: [
|
|
104
|
+
{ text: "Information 1", icon: /* @__PURE__ */ o(l, { color: "primary" }) },
|
|
105
|
+
{ text: "Information 2", icon: /* @__PURE__ */ o(a, { color: "primary" }) },
|
|
106
|
+
{ text: "Information 3", icon: /* @__PURE__ */ o(a, { color: "primary" }) }
|
|
107
|
+
],
|
|
108
|
+
size: "md",
|
|
109
|
+
onSelect: () => {
|
|
110
|
+
console.log("Carte sélectionnée !");
|
|
111
|
+
},
|
|
112
|
+
onClick: () => {
|
|
113
|
+
console.log("Select all");
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}, y = {
|
|
117
|
+
args: {
|
|
118
|
+
...t.args,
|
|
119
|
+
isSelected: !0,
|
|
120
|
+
title: "Carte Sélectionnée"
|
|
121
|
+
}
|
|
122
|
+
}, g = {
|
|
123
|
+
args: {
|
|
124
|
+
...t.args,
|
|
125
|
+
size: "sm",
|
|
126
|
+
title: "Petite Carte"
|
|
127
|
+
}
|
|
128
|
+
}, f = {
|
|
129
|
+
args: {
|
|
130
|
+
...t.args,
|
|
131
|
+
title: "Pas d'image",
|
|
132
|
+
image: void 0
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
export {
|
|
136
|
+
t as Default,
|
|
137
|
+
f as NoImage,
|
|
138
|
+
y as Selected,
|
|
139
|
+
g as Small,
|
|
140
|
+
u as default
|
|
141
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),d=require("react"),u=require("../../FormLabel-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),d=require("react"),u=require("../../FormLabel-BV7-a0i5.cjs"),l=require("../../Select-DZAzJA0y.cjs"),t=require("../../MenuItem-Bha8aBMr.cjs"),c=n=>{const[a,s]=d.useState("pending"),i=r=>s(r.target.value);return e.jsxs(u.FormControl,{variant:n.variant,sx:{width:"10rem"},children:[e.jsx(l.InputLabel,{id:"simple-select-label",children:"Status"}),e.jsxs(l.Select,{labelId:"simple-select-label",id:"simple-select",value:a,label:"Status",onChange:i,...n,children:[e.jsx(t.MenuItem,{value:"pending",children:"Pending"}),e.jsx(t.MenuItem,{value:"ongoing",children:"Ongoing"}),e.jsx(t.MenuItem,{value:"validated",children:"Validated"}),e.jsx(t.MenuItem,{value:"rejected",children:"Rejected"})]})]})},o={title:"Components/Select",component:c},g={args:{}},m={args:{variant:"filled"}},v={args:{variant:"standard"}},S={args:{disabled:!0}};exports.Default=g;exports.Disabled=S;exports.Filled=m;exports.Standard=v;exports.default=o;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d } from "react";
|
|
3
|
-
import { F as o } from "../../FormLabel-
|
|
4
|
-
import { a as c, S as m } from "../../Select-
|
|
5
|
-
import { M as t } from "../../MenuItem-
|
|
3
|
+
import { F as o } from "../../FormLabel-3-CC-ZGw.js";
|
|
4
|
+
import { a as c, S as m } from "../../Select-CZnKFG3o.js";
|
|
5
|
+
import { M as t } from "../../MenuItem-Cu3FTLl8.js";
|
|
6
6
|
const u = (a) => {
|
|
7
7
|
const [n, s] = d("pending"), r = (i) => s(i.target.value);
|
|
8
8
|
return /* @__PURE__ */ l(o, { variant: a.variant, sx: { width: "10rem" }, children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),y=require("react"),o=require("../../generateUtilityClasses-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),y=require("react"),o=require("../../generateUtilityClasses-De8NU9_E.cjs"),d=require("../../Tabs-AyJ_tKtV.cjs"),M=require("../../useThemeProps-DxBEHys5.cjs"),P=require("../../DefaultPropsProvider-wpBXjN8r.cjs");function w(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=w(y),T=l.createContext(null);process.env.NODE_ENV!=="production"&&(T.displayName="TabContext");function E(){const[e,t]=l.useState(null);return l.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function v(e){const{children:t,value:r}=e,n=E(),i=l.useMemo(()=>({idPrefix:n,value:r}),[n,r]);return s.jsx(T.Provider,{value:i,children:t})}process.env.NODE_ENV!=="production"&&(v.propTypes={children:o.PropTypes.node,value:o.PropTypes.oneOfType([o.PropTypes.number,o.PropTypes.string]).isRequired});function m(){return l.useContext(T)}function h(e,t){const{idPrefix:r}=e;return r===null?null:`${e.idPrefix}-P-${t}`}function x(e,t){const{idPrefix:r}=e;return r===null?null:`${e.idPrefix}-T-${t}`}const g=l.forwardRef(function(t,r){const{children:n,...i}=t,a=m();if(a===null)throw new TypeError("No TabContext provided");const c=l.Children.map(n,u=>l.isValidElement(u)?l.cloneElement(u,{"aria-controls":h(a,u.props.value),id:x(a,u.props.value)}):null);return s.jsx(d.Tabs,{...i,ref:r,value:a.value,children:c})});process.env.NODE_ENV!=="production"&&(g.propTypes={children:o.PropTypes.node});function S(e){return o.generateUtilityClass("MuiTabPanel",e)}o.generateUtilityClasses("MuiTabPanel",["root","hidden"]);const I=e=>{const{classes:t,hidden:r}=e,n={root:["root",r&&"hidden"]};return P.composeClasses(n,S,t)},R=P.styled("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),b=l.forwardRef(function(t,r){const n=M.useThemeProps({props:t,name:"MuiTabPanel"}),{children:i,className:a,value:c,keepMounted:u=!1,...C}=n,f={...n},j=I(f),p=m();if(p===null)throw new TypeError("No TabContext provided");const N=h(p,c),O=x(p,c);return s.jsx(R,{"aria-labelledby":O,className:o.clsx(j.root,a),hidden:c!==p.value,id:N,ref:r,role:"tabpanel",ownerState:f,...C,children:(u||c===p.value)&&i})});process.env.NODE_ENV!=="production"&&(b.propTypes={children:o.PropTypes.node,classes:o.PropTypes.object,className:o.PropTypes.string,keepMounted:o.PropTypes.bool,sx:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object,o.PropTypes.bool])),o.PropTypes.func,o.PropTypes.object]),value:o.PropTypes.oneOfType([o.PropTypes.number,o.PropTypes.string]).isRequired});const q=e=>{const[t,r]=y.useState("1"),n=(i,a)=>r(a);return s.jsxs(v,{value:t,children:[s.jsxs(g,{...e,onChange:n,"aria-label":"lib tablist example",children:[s.jsx(d.Tab,{label:"Item one",value:"1"}),s.jsx(d.Tab,{label:"Item two",value:"2"}),s.jsx(d.Tab,{label:"Item three",value:"3"})]}),s.jsx(b,{value:"1",children:"Item one"}),s.jsx(b,{value:"2",children:"Item two"}),s.jsx(b,{value:"3",children:"Item three"})]})},D={title:"Components/TabList",component:q,argTypes:{allowScrollButtonsMobile:{control:"boolean"},centered:{control:"boolean"},indicatorColor:{control:"radio",options:["primary","secondary"]},orientation:{control:"radio",options:["horizontal","vertical"]},scrollButtons:{control:"radio",options:["auto",!0,!1]},textColor:{control:"radio",options:["inherit","primary","secondary"]},variant:{control:"radio",options:["fullWidth","scrollable","standard"]},visibleScrollbar:{control:"boolean"}}},_={args:{allowScrollButtonsMobile:!1,centered:!1,indicatorColor:"primary",orientation:"horizontal",scrollButtons:"auto",textColor:"primary",variant:"standard",visibleScrollbar:!1}};exports.Default=_;exports.default=D;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as l, jsxs as
|
|
1
|
+
import { jsx as l, jsxs as v } from "react/jsx-runtime";
|
|
2
2
|
import * as r from "react";
|
|
3
3
|
import { useState as w } from "react";
|
|
4
|
-
import { P as o, I, H as M, G as O } from "../../generateUtilityClasses-
|
|
5
|
-
import { a as R, T as f } from "../../Tabs-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { P as o, I, H as M, G as O } from "../../generateUtilityClasses-DotvgSDH.js";
|
|
5
|
+
import { a as R, T as f } from "../../Tabs-BYfDlOR9.js";
|
|
6
|
+
import { u as S } from "../../useThemeProps-BTfGtNci.js";
|
|
7
|
+
import { s as V, c as $ } from "../../DefaultPropsProvider-Cqcb4sws.js";
|
|
8
8
|
const b = /* @__PURE__ */ r.createContext(null);
|
|
9
9
|
process.env.NODE_ENV !== "production" && (b.displayName = "TabContext");
|
|
10
10
|
function j() {
|
|
@@ -13,7 +13,7 @@ function j() {
|
|
|
13
13
|
t(`mui-p-${Math.round(Math.random() * 1e5)}`);
|
|
14
14
|
}, []), e;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function h(e) {
|
|
17
17
|
const {
|
|
18
18
|
children: t,
|
|
19
19
|
value: n
|
|
@@ -26,7 +26,7 @@ function v(e) {
|
|
|
26
26
|
children: t
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
process.env.NODE_ENV !== "production" && (
|
|
29
|
+
process.env.NODE_ENV !== "production" && (h.propTypes = {
|
|
30
30
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
31
31
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
32
32
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -85,18 +85,18 @@ process.env.NODE_ENV !== "production" && (C.propTypes = {
|
|
|
85
85
|
children: o.node
|
|
86
86
|
});
|
|
87
87
|
function D(e) {
|
|
88
|
-
return
|
|
88
|
+
return I("MuiTabPanel", e);
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
M("MuiTabPanel", ["root", "hidden"]);
|
|
91
91
|
const U = (e) => {
|
|
92
92
|
const {
|
|
93
93
|
classes: t,
|
|
94
94
|
hidden: n
|
|
95
95
|
} = e;
|
|
96
|
-
return
|
|
96
|
+
return $({
|
|
97
97
|
root: ["root", n && "hidden"]
|
|
98
98
|
}, D, t);
|
|
99
|
-
}, B =
|
|
99
|
+
}, B = V("div", {
|
|
100
100
|
name: "MuiTabPanel",
|
|
101
101
|
slot: "Root",
|
|
102
102
|
overridesResolver: (e, t) => t.root
|
|
@@ -105,7 +105,7 @@ const U = (e) => {
|
|
|
105
105
|
}) => ({
|
|
106
106
|
padding: e.spacing(3)
|
|
107
107
|
})), p = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
108
|
-
const a =
|
|
108
|
+
const a = S({
|
|
109
109
|
props: t,
|
|
110
110
|
name: "MuiTabPanel"
|
|
111
111
|
}), {
|
|
@@ -166,8 +166,8 @@ process.env.NODE_ENV !== "production" && (p.propTypes = {
|
|
|
166
166
|
});
|
|
167
167
|
const L = (e) => {
|
|
168
168
|
const [t, n] = w("1");
|
|
169
|
-
return /* @__PURE__ */ h
|
|
170
|
-
/* @__PURE__ */
|
|
169
|
+
return /* @__PURE__ */ v(h, { value: t, children: [
|
|
170
|
+
/* @__PURE__ */ v(
|
|
171
171
|
C,
|
|
172
172
|
{
|
|
173
173
|
...e,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react/jsx-runtime"),t=require("../../TextField-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react/jsx-runtime"),t=require("../../TextField-CwcPgdgD.cjs"),o=e=>l.jsx(t.TextField,{...e}),r={title:"Components/TextField",component:o,argTypes:{color:{control:"select",options:["primary","secondary","error","info","success","warning"]},disabled:{control:"boolean"},error:{control:"boolean"},fullWidth:{control:"boolean"},helperText:{control:"text"},label:{control:"text"},multiline:{control:"boolean"},placeholder:{control:"text"},variant:{control:"select",options:["standard","outlined","filled"]}},args:{color:"primary",disabled:!1,error:!1,fullWidth:!1,helperText:void 0,label:"Label",multiline:!1,placeholder:void 0,variant:"outlined"}},a={args:{}},n={args:{variant:"filled"}},i={args:{variant:"standard"}},s={args:{disabled:!0}};exports.Default=a;exports.Disabled=s;exports.Filled=n;exports.Standard=i;exports.default=r;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { T as
|
|
3
|
-
const t = (e) => /* @__PURE__ */ l
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { T as l } from "../../TextField-BKfXjPdH.js";
|
|
3
|
+
const t = (e) => /* @__PURE__ */ o(l, { ...e }), n = {
|
|
4
4
|
title: "Components/TextField",
|
|
5
5
|
component: t,
|
|
6
6
|
argTypes: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),e=require("../../Tooltip-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),e=require("../../Tooltip-oNmnF7Bc.cjs"),l=require("../../Button-UmeKHfcL.cjs"),r=o=>t.jsx(e.Tooltip,{...o,children:t.jsx(l.Button,{children:"Hover to display tooltip"})}),n={title:"Components/Tooltip",component:r,argTypes:{arrow:{control:"boolean"},followCursor:{control:"boolean"},placement:{control:"select",options:["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]},title:{control:"text"}}},s={args:{arrow:!1,followCursor:!1,placement:"bottom",title:"Title"}};exports.Default=s;exports.default=n;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { T as e } from "../../Tooltip-
|
|
3
|
-
import { B as r } from "../../Button-
|
|
2
|
+
import { T as e } from "../../Tooltip-B1NGvrJP.js";
|
|
3
|
+
import { B as r } from "../../Button-B7kOjNW1.js";
|
|
4
4
|
const l = (o) => /* @__PURE__ */ t(e, { ...o, children: /* @__PURE__ */ t(r, { children: "Hover to display tooltip" }) }), i = {
|
|
5
5
|
title: "Components/Tooltip",
|
|
6
6
|
component: l,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../Typography-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../Typography-DPij13XT.cjs"),e={title:"Components/Typography",component:t.Typography,argTypes:{align:{control:"select",options:["center","inherit","justify","left","right"]},children:{control:"text"},color:{control:"select",options:["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]},gutterBottom:{control:"boolean"},noWrap:{control:"boolean"},variant:{control:"select",options:["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]}}},o={args:{align:"inherit",children:"CGI Learning Hub",gutterBottom:!1,noWrap:!1,variant:"body1"}};exports.Default=o;exports.default=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const x=require("react"),h=require("react/jsx-runtime"),o=require("./generateUtilityClasses-De8NU9_E.cjs"),C=require("./memoTheme-DrjvJtTP.cjs"),b=require("./DefaultPropsProvider-wpBXjN8r.cjs"),P=require("./capitalize-CEByPz9F.cjs");function O(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const z=O(x);function I(e){return o.generateUtilityClass("MuiSvgIcon",e)}const w=o.generateUtilityClasses("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]),j=e=>{const{color:r,fontSize:t,classes:s}=e,n={root:["root",r!=="inherit"&&`color${P.capitalize(r)}`,`fontSize${P.capitalize(t)}`]};return b.composeClasses(n,I,s)},R=b.styled("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.color!=="inherit"&&r[`color${P.capitalize(t.color)}`],r[`fontSize${P.capitalize(t.fontSize)}`]]}})(C.memoTheme(({theme:e})=>{var r,t,s,n,p,m,c,S,a,y,l,u,v,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(n=(r=e.transitions)==null?void 0:r.create)==null?void 0:n.call(r,"fill",{duration:(s=(t=(e.vars??e).transitions)==null?void 0:t.duration)==null?void 0:s.shorter}),variants:[{props:i=>!i.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((m=(p=e.typography)==null?void 0:p.pxToRem)==null?void 0:m.call(p,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((S=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:S.call(c,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((y=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:y.call(a,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,i])=>i&&i.main).map(([i])=>{var d,T;return{props:{color:i},style:{color:(T=(d=(e.vars??e).palette)==null?void 0:d[i])==null?void 0:T.main}}}),{props:{color:"action"},style:{color:(u=(l=(e.vars??e).palette)==null?void 0:l.action)==null?void 0:u.active}},{props:{color:"disabled"},style:{color:(f=(v=(e.vars??e).palette)==null?void 0:v.action)==null?void 0:f.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),g=z.forwardRef(function(r,t){const s=b.useDefaultProps({props:r,name:"MuiSvgIcon"}),{children:n,className:p,color:m="inherit",component:c="svg",fontSize:S="medium",htmlColor:a,inheritViewBox:y=!1,titleAccess:l,viewBox:u="0 0 24 24",...v}=s,f=z.isValidElement(n)&&n.type==="svg",i={...s,color:m,component:c,fontSize:S,instanceFontSize:r.fontSize,inheritViewBox:y,viewBox:u,hasSvgAsChild:f},d={};y||(d.viewBox=u);const T=j(i);return h.jsxs(R,{as:c,className:o.clsx(T.root,p),focusable:"false",color:a,"aria-hidden":l?void 0:!0,role:l?"img":void 0,ref:t,...d,...v,...f&&n.props,ownerState:i,children:[f?n.props.children:n,l?h.jsx("title",{children:l}):null]})});process.env.NODE_ENV!=="production"&&(g.propTypes={children:o.PropTypes.node,classes:o.PropTypes.object,className:o.PropTypes.string,color:o.PropTypes.oneOfType([o.PropTypes.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),o.PropTypes.string]),component:o.PropTypes.elementType,fontSize:o.PropTypes.oneOfType([o.PropTypes.oneOf(["inherit","large","medium","small"]),o.PropTypes.string]),htmlColor:o.PropTypes.string,inheritViewBox:o.PropTypes.bool,shapeRendering:o.PropTypes.string,sx:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object,o.PropTypes.bool])),o.PropTypes.func,o.PropTypes.object]),titleAccess:o.PropTypes.string,viewBox:o.PropTypes.string});g.muiName="SvgIcon";function N(e,r){function t(s,n){return h.jsx(g,{"data-testid":`${r}Icon`,ref:n,...s,children:e})}return process.env.NODE_ENV!=="production"&&(t.displayName=`${r}Icon`),t.muiName=g.muiName,z.memo(z.forwardRef(t))}exports.SvgIcon=g;exports.createSvgIcon=N;exports.getSvgIconUtilityClass=I;exports.svgIconClasses=w;
|