@cgi-learning-hub/ui 1.3.5 → 1.4.0-dev.1740498210
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-COarwgJj.cjs +1 -0
- package/dist/{Backdrop-DcDd6WZF.js → Backdrop-DdA12b-5.js} +79 -82
- package/dist/Box-C0mEbUoK.cjs +1 -0
- package/dist/{Box-Byz2BwGf.js → Box-DbRInJ2-.js} +8 -8
- package/dist/Button-1tZRtOeG.cjs +1 -0
- package/dist/Button-rxIER0bL.js +662 -0
- package/dist/ButtonBase-C2rhY3j-.cjs +74 -0
- package/dist/{ButtonBase-DAWDecOk.js → ButtonBase-DzpmdR6N.js} +334 -334
- package/dist/CardContent-BXjX98Jd.cjs +1 -0
- package/dist/CardContent-u1MKaFvP.js +226 -0
- package/dist/{Checkbox-8Rhxpkjl.js → Checkbox-BI77q7eR.js} +26 -27
- package/dist/Checkbox-C6CIGK27.cjs +1 -0
- package/dist/Chip-6-zATjcr.js +521 -0
- package/dist/Chip-CAPnyZyW.cjs +1 -0
- package/dist/{CircularProgress-Kwlef5fX.js → CircularProgress-CDa_qU1a.js} +19 -20
- package/dist/CircularProgress-DTVP6gln.cjs +28 -0
- package/dist/CloseRounded-DQWTEbNz.cjs +1 -0
- package/dist/CloseRounded-DTpqUeWr.js +8 -0
- package/dist/{DatePicker-BS1OatwQ.js → DatePicker-BTTLIBm9.js} +3110 -3600
- package/dist/DatePicker-CJ5-Udgh.cjs +14 -0
- package/dist/DefaultPropsProvider-BcmyIf2H.js +303 -0
- package/dist/DefaultPropsProvider-QmkL7lbM.cjs +1 -0
- package/dist/Dialog-CgBiKk8B.js +477 -0
- package/dist/Dialog-Cmv58WoN.cjs +1 -0
- package/dist/DialogContent-CGEdCDYk.cjs +1 -0
- package/dist/{DialogContent-uc65XOEU.js → DialogContent-SYCCu1VD.js} +13 -13
- package/dist/DialogTitle-Dxm2NHs7.cjs +1 -0
- package/dist/{DialogTitle-C8JOi-rq.js → DialogTitle-_yayDwkI.js} +30 -30
- package/dist/Divider-D_LVNUqS.cjs +1 -0
- package/dist/{Divider-KO-E6nU8.js → Divider-Doy31VS6.js} +8 -8
- package/dist/FormLabel-D0gSgwnj.cjs +2 -0
- package/dist/{FormLabel-CfR4bb21.js → FormLabel-DjkS3S9h.js} +130 -133
- package/dist/Grow-D7scX77o.cjs +1 -0
- package/dist/{Grow-CQVPAYvp.js → Grow-DPD-iBAX.js} +46 -43
- package/dist/{IconButton-CekuyD4r.js → IconButton-B4bt0Hp2.js} +134 -67
- package/dist/IconButton-Edo5JMfQ.cjs +2 -0
- package/dist/InputAdornment-C9NrmB_z.cjs +1 -0
- package/dist/{InputAdornment-iU5YnveW.js → InputAdornment-GzDm1zf_.js} +17 -17
- package/dist/{InputBase-BJy3wwFB.js → InputBase-CF5oNEfh.js} +216 -211
- package/dist/InputBase-CgOQ0M4_.cjs +3 -0
- package/dist/Link-CAbb9OCV.cjs +1 -0
- package/dist/{Link-CoQuUM0t.js → Link-CnahHTmK.js} +49 -50
- package/dist/Menu-C-R0FVOB.cjs +7 -0
- package/dist/{Menu-C7tKmcAh.js → Menu-DzBX10ev.js} +56 -57
- package/dist/MenuItem-Cp1_Q0FD.cjs +1 -0
- package/dist/{MenuItem-j8luVUcX.js → MenuItem-DQQ-p2ie.js} +20 -20
- package/dist/{Modal-brWBFdK7.js → Modal-B8JRJWm0.js} +99 -98
- package/dist/Modal-D8lS9C1l.cjs +2 -0
- package/dist/Paper-C-oPGpbI.cjs +2 -0
- package/dist/{Paper-BG4Vk_Um.js → Paper-CbgkVQVx.js} +8 -8
- package/dist/{Popper-DFZ_gRev.js → Popper-1-DDNRPD.js} +241 -243
- package/dist/Popper-uw9PkkLY.cjs +4 -0
- package/dist/{Portal-JEwcozmp.js → Portal-T-1Qk77D.js} +34 -39
- package/dist/Portal-bIKnnWR4.cjs +1 -0
- package/dist/Radio-BxMxeQa-.js +567 -0
- package/dist/Radio-CvCkmq8g.cjs +1 -0
- package/dist/RadioGroup-BLrD8_Lp.js +190 -0
- package/dist/RadioGroup-Ya-I8Lz1.cjs +1 -0
- package/dist/{Select-DmssuG5M.js → Select-B6mYfJPA.js} +419 -402
- package/dist/Select-KMdcuol6.cjs +3 -0
- package/dist/Stack-C6v70ALA.cjs +1 -0
- package/dist/{Stack-BzTJdRGj.js → Stack-aCUdCw1A.js} +60 -105
- package/dist/Switch-BOpqo-TS.js +329 -0
- package/dist/Switch-DF4bSjED.cjs +1 -0
- package/dist/SwitchBase-7zONZyYP.cjs +1 -0
- package/dist/{SwitchBase-Dlth5_F7.js → SwitchBase-BAjfatYA.js} +35 -36
- package/dist/{Tabs-CYbeTnJk.js → Tabs-CrWcC5nJ.js} +299 -301
- package/dist/Tabs-Dploq_37.cjs +4 -0
- package/dist/TextField-BC7GvvHh.cjs +1 -0
- package/dist/{TextField-Cri5Gxa7.js → TextField-CAmc1Qpg.js} +31 -30
- package/dist/ToggleButtonGroup-BCVgsika.cjs +140 -0
- package/dist/ToggleButtonGroup-ekxVeQCc.js +10461 -0
- package/dist/{Tooltip-BhAHhzKz.js → Tooltip-BvVFPsVR.js} +32 -33
- package/dist/Tooltip-CWA-GKdK.cjs +4 -0
- package/dist/{TransitionGroupContext-DMJLhY9-.js → TransitionGroupContext-DbLioz_6.js} +7 -7
- package/dist/TransitionGroupContext-Zt4NoR0u.cjs +1 -0
- package/dist/{Typography-DBwTr_ix.js → Typography-CE8fQQ8B.js} +15 -16
- package/dist/Typography-DEAE8-8u.cjs +1 -0
- 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 +117 -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-C8nGcfF4.js → createSvgIcon-CCejzj0C.js} +49 -48
- package/dist/createSvgIcon-Dn4BBPej.cjs +1 -0
- package/dist/{dividerClasses-nh2-hkQB.js → dividerClasses-DN9F43tq.js} +3 -3
- package/dist/dividerClasses-Zk1QmrZw.cjs +1 -0
- package/dist/{elementTypeAcceptingRef-D-5kcohU.js → elementTypeAcceptingRef-CrAqn_fc.js} +1 -1
- package/dist/elementTypeAcceptingRef-DVF2QSYK.cjs +1 -0
- package/dist/extendSxProp-BB6jYY1x.cjs +1 -0
- package/dist/{extendSxProp-C2ff0oGc.js → extendSxProp-DFv-GFt5.js} +3 -3
- package/dist/{fr-Bjufn3RW.js → fr-B3qrCNcK.js} +18 -18
- package/dist/hooks/lazySvgImport.d.ts +1 -1
- package/dist/identifier-5n4d7br9.cjs +75 -0
- package/dist/identifier-D58rA1gM.js +3267 -0
- package/dist/index-5BAFzrXD.cjs +1 -0
- package/dist/{index-CwvpOCso.js → index-BGS2uu2L.js} +29 -29
- package/dist/index-CFm-oAsb.cjs +1 -0
- package/dist/index-CJW5gB6d.cjs +5 -0
- package/dist/{index-BCnPLuqJ.js → index-ClXCinr6.js} +22 -22
- package/dist/index-DwHI-aa0.js +45 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +348 -294
- package/dist/{memoTheme-Bdg0Y_2O.cjs → memoTheme-C8EfvlY1.cjs} +1 -1
- package/dist/{memoTheme-D7Fyh_3C.js → memoTheme-DyiN-Awd.js} +1 -1
- package/dist/{refType-DKYKROQk.js → refType-B86yTZra.js} +1 -1
- package/dist/refType-CjW6JOBA.cjs +1 -0
- package/dist/{mergeSlotProps-tUJEcwVu.js → resolveComponentProps-0QnU-fDT.js} +7 -7
- package/dist/resolveComponentProps-D0sgyopa.cjs +1 -0
- package/dist/unsupportedProp-Bn6XWqwH.cjs +1 -0
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/useSlot-CZNcsPv1.js +48 -0
- package/dist/useSlot-CyXLaLc2.cjs +1 -0
- package/dist/useTheme-Bi8B4Op1.cjs +1 -0
- package/dist/useTheme-C_2IF7CS.cjs +1 -0
- package/dist/useTheme-Clhsq4HW.js +11 -0
- package/dist/{useTheme-_xyy-wul.js → useTheme-DxxkErdZ.js} +1 -1
- package/dist/{useThemeProps-BySkSe-M.js → useThemeProps-BGZrRNnL.js} +2 -2
- package/dist/useThemeProps-C6qniHmV.js +17 -0
- package/dist/{useThemeProps-u_ESzK2f.cjs → useThemeProps-CpNQz1Ap.cjs} +1 -1
- package/dist/useThemeProps-Dq3GRYN1.cjs +1 -0
- package/dist/utils-D4if93Yl.cjs +1 -0
- package/dist/{utils-C6c4fj7D.js → utils-SrEVp7Pm.js} +41 -41
- package/package.json +9 -9
- package/dist/Backdrop-CvufxHMY.cjs +0 -1
- package/dist/Box-mP2Th61z.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/Checkbox-DYrDbdy1.cjs +0 -1
- package/dist/CircularProgress-BByrCLjv.cjs +0 -28
- 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/DialogContent-Dj_OjLZ6.cjs +0 -1
- package/dist/DialogTitle-BboPDaoB.cjs +0 -1
- package/dist/Divider-CcrM3lNn.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/InputAdornment-Cq0WhPxF.cjs +0 -1
- package/dist/InputBase-s1fk8TB4.cjs +0 -3
- package/dist/Link-CWczkFp0.cjs +0 -1
- package/dist/Menu-Bsx8PA-q.cjs +0 -7
- package/dist/MenuItem-BZ_EVaBq.cjs +0 -1
- package/dist/Modal-DImrEpYJ.cjs +0 -2
- package/dist/Paper-Cr56xkCr.cjs +0 -2
- package/dist/Popper-YT5WAMV-.cjs +0 -4
- 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/SwitchBase-DjIY_KWB.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/Tooltip-DhDtvULK.cjs +0 -4
- package/dist/TransitionGroupContext-DbXD5xqS.cjs +0 -1
- package/dist/Typography-DfRMDngd.cjs +0 -1
- package/dist/capitalize-B3GG7Wn6.cjs +0 -1
- package/dist/capitalize-CkF8kU4n.js +0 -9
- package/dist/createSvgIcon--rEClVU7.cjs +0 -1
- package/dist/dividerClasses-CCAY3Pnr.cjs +0 -1
- package/dist/elementTypeAcceptingRef-DZsNbuLU.cjs +0 -1
- package/dist/extendSxProp-apyK-EBz.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-ChM1Ett8.cjs +0 -5
- package/dist/index-Cw0GDedk.cjs +0 -17
- package/dist/index-DXD5J5Eu.js +0 -186
- package/dist/mergeSlotProps-DuV-LTW7.cjs +0 -1
- package/dist/refType-CoaxQOPt.cjs +0 -1
- package/dist/useSlot-BTpHG6jf.js +0 -50
- package/dist/useSlot-CByalpSD.cjs +0 -1
- package/dist/useSlotProps-B31YQlzb.js +0 -45
- package/dist/useSlotProps-BVSAQTNl.cjs +0 -1
- package/dist/useTheme-Cy5kyKJF.cjs +0 -1
- package/dist/useTheme-Dukx-__T.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-DjkS3S9h.js";
|
|
3
|
+
import { R as n } from "../../RadioGroup-BLrD8_Lp.js";
|
|
4
|
+
import { F as r, R as a } from "../../Radio-BxMxeQa-.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-Dn4BBPej.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-CCejzj0C.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-D0gSgwnj.cjs"),l=require("../../Select-KMdcuol6.cjs"),t=require("../../MenuItem-Cp1_Q0FD.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-DjkS3S9h.js";
|
|
4
|
+
import { a as c, S as m } from "../../Select-B6mYfJPA.js";
|
|
5
|
+
import { M as t } from "../../MenuItem-DQQ-p2ie.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("../../
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),y=require("react"),o=require("../../identifier-5n4d7br9.cjs"),d=require("../../Tabs-Dploq_37.cjs"),M=require("../../useThemeProps-Dq3GRYN1.cjs"),P=require("../../DefaultPropsProvider-QmkL7lbM.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 "../../
|
|
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 "../../identifier-D58rA1gM.js";
|
|
5
|
+
import { a as R, T as f } from "../../Tabs-CrWcC5nJ.js";
|
|
6
|
+
import { u as S } from "../../useThemeProps-C6qniHmV.js";
|
|
7
|
+
import { s as V, c as $ } from "../../DefaultPropsProvider-BcmyIf2H.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-BC7GvvHh.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-CAmc1Qpg.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-CWA-GKdK.cjs"),l=require("../../Button-1tZRtOeG.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-BvVFPsVR.js";
|
|
3
|
+
import { B as r } from "../../Button-rxIER0bL.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-DEAE8-8u.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;
|