@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,334 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import { c as j } from "../../createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
7
|
-
import { S as B } from "../../SwitchBase-Dlth5_F7.js";
|
|
8
|
-
import { m as d } from "../../memoTheme-D7Fyh_3C.js";
|
|
9
|
-
import { s as p, u as M, c as P } from "../../DefaultPropsProvider-CvJPQJmL.js";
|
|
10
|
-
import { c as i } from "../../capitalize-CkF8kU4n.js";
|
|
11
|
-
import { r as L } from "../../refType-DKYKROQk.js";
|
|
12
|
-
import { F as N } from "../../FormControlLabel-BmrKQtQA.js";
|
|
13
|
-
function I(o) {
|
|
14
|
-
return T("MuiSwitch", o);
|
|
15
|
-
}
|
|
16
|
-
const a = x("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]), D = (o) => {
|
|
17
|
-
const {
|
|
18
|
-
classes: t,
|
|
19
|
-
edge: r,
|
|
20
|
-
size: l,
|
|
21
|
-
color: u,
|
|
22
|
-
checked: b,
|
|
23
|
-
disabled: g
|
|
24
|
-
} = o, h = {
|
|
25
|
-
root: ["root", r && `edge${i(r)}`, `size${i(l)}`],
|
|
26
|
-
switchBase: ["switchBase", `color${i(u)}`, b && "checked", g && "disabled"],
|
|
27
|
-
thumb: ["thumb"],
|
|
28
|
-
track: ["track"],
|
|
29
|
-
input: ["input"]
|
|
30
|
-
}, f = P(h, I, t);
|
|
31
|
-
return {
|
|
32
|
-
...t,
|
|
33
|
-
// forward the disabled and checked classes to the SwitchBase
|
|
34
|
-
...f
|
|
35
|
-
};
|
|
36
|
-
}, F = p("span", {
|
|
37
|
-
name: "MuiSwitch",
|
|
38
|
-
slot: "Root",
|
|
39
|
-
overridesResolver: (o, t) => {
|
|
40
|
-
const {
|
|
41
|
-
ownerState: r
|
|
42
|
-
} = o;
|
|
43
|
-
return [t.root, r.edge && t[`edge${i(r.edge)}`], t[`size${i(r.size)}`]];
|
|
44
|
-
}
|
|
45
|
-
})({
|
|
46
|
-
display: "inline-flex",
|
|
47
|
-
width: 34 + 12 * 2,
|
|
48
|
-
height: 14 + 12 * 2,
|
|
49
|
-
overflow: "hidden",
|
|
50
|
-
padding: 12,
|
|
51
|
-
boxSizing: "border-box",
|
|
52
|
-
position: "relative",
|
|
53
|
-
flexShrink: 0,
|
|
54
|
-
zIndex: 0,
|
|
55
|
-
// Reset the stacking context.
|
|
56
|
-
verticalAlign: "middle",
|
|
57
|
-
// For correct alignment with the text.
|
|
58
|
-
"@media print": {
|
|
59
|
-
colorAdjust: "exact"
|
|
60
|
-
},
|
|
61
|
-
variants: [{
|
|
62
|
-
props: {
|
|
63
|
-
edge: "start"
|
|
64
|
-
},
|
|
65
|
-
style: {
|
|
66
|
-
marginLeft: -8
|
|
67
|
-
}
|
|
68
|
-
}, {
|
|
69
|
-
props: {
|
|
70
|
-
edge: "end"
|
|
71
|
-
},
|
|
72
|
-
style: {
|
|
73
|
-
marginRight: -8
|
|
74
|
-
}
|
|
75
|
-
}, {
|
|
76
|
-
props: {
|
|
77
|
-
size: "small"
|
|
78
|
-
},
|
|
79
|
-
style: {
|
|
80
|
-
width: 40,
|
|
81
|
-
height: 24,
|
|
82
|
-
padding: 7,
|
|
83
|
-
[`& .${a.thumb}`]: {
|
|
84
|
-
width: 16,
|
|
85
|
-
height: 16
|
|
86
|
-
},
|
|
87
|
-
[`& .${a.switchBase}`]: {
|
|
88
|
-
padding: 4,
|
|
89
|
-
[`&.${a.checked}`]: {
|
|
90
|
-
transform: "translateX(16px)"
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}]
|
|
95
|
-
}), q = p(B, {
|
|
96
|
-
name: "MuiSwitch",
|
|
97
|
-
slot: "SwitchBase",
|
|
98
|
-
overridesResolver: (o, t) => {
|
|
99
|
-
const {
|
|
100
|
-
ownerState: r
|
|
101
|
-
} = o;
|
|
102
|
-
return [t.switchBase, {
|
|
103
|
-
[`& .${a.input}`]: t.input
|
|
104
|
-
}, r.color !== "default" && t[`color${i(r.color)}`]];
|
|
105
|
-
}
|
|
106
|
-
})(d(({
|
|
107
|
-
theme: o
|
|
108
|
-
}) => ({
|
|
109
|
-
position: "absolute",
|
|
110
|
-
top: 0,
|
|
111
|
-
left: 0,
|
|
112
|
-
zIndex: 1,
|
|
113
|
-
// Render above the focus ripple.
|
|
114
|
-
color: o.vars ? o.vars.palette.Switch.defaultColor : `${o.palette.mode === "light" ? o.palette.common.white : o.palette.grey[300]}`,
|
|
115
|
-
transition: o.transitions.create(["left", "transform"], {
|
|
116
|
-
duration: o.transitions.duration.shortest
|
|
117
|
-
}),
|
|
118
|
-
[`&.${a.checked}`]: {
|
|
119
|
-
transform: "translateX(20px)"
|
|
120
|
-
},
|
|
121
|
-
[`&.${a.disabled}`]: {
|
|
122
|
-
color: o.vars ? o.vars.palette.Switch.defaultDisabledColor : `${o.palette.mode === "light" ? o.palette.grey[100] : o.palette.grey[600]}`
|
|
123
|
-
},
|
|
124
|
-
[`&.${a.checked} + .${a.track}`]: {
|
|
125
|
-
opacity: 0.5
|
|
126
|
-
},
|
|
127
|
-
[`&.${a.disabled} + .${a.track}`]: {
|
|
128
|
-
opacity: o.vars ? o.vars.opacity.switchTrackDisabled : `${o.palette.mode === "light" ? 0.12 : 0.2}`
|
|
129
|
-
},
|
|
130
|
-
[`& .${a.input}`]: {
|
|
131
|
-
left: "-100%",
|
|
132
|
-
width: "300%"
|
|
133
|
-
}
|
|
134
|
-
})), d(({
|
|
135
|
-
theme: o
|
|
136
|
-
}) => ({
|
|
137
|
-
"&:hover": {
|
|
138
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : w(o.palette.action.active, o.palette.action.hoverOpacity),
|
|
139
|
-
// Reset on touch devices, it doesn't add specificity
|
|
140
|
-
"@media (hover: none)": {
|
|
141
|
-
backgroundColor: "transparent"
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
variants: [...Object.entries(o.palette).filter(j(["light"])).map(([t]) => ({
|
|
145
|
-
props: {
|
|
146
|
-
color: t
|
|
147
|
-
},
|
|
148
|
-
style: {
|
|
149
|
-
[`&.${a.checked}`]: {
|
|
150
|
-
color: (o.vars || o).palette[t].main,
|
|
151
|
-
"&:hover": {
|
|
152
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette[t].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : w(o.palette[t].main, o.palette.action.hoverOpacity),
|
|
153
|
-
"@media (hover: none)": {
|
|
154
|
-
backgroundColor: "transparent"
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
[`&.${a.disabled}`]: {
|
|
158
|
-
color: o.vars ? o.vars.palette.Switch[`${t}DisabledColor`] : `${o.palette.mode === "light" ? R(o.palette[t].main, 0.62) : z(o.palette[t].main, 0.55)}`
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
[`&.${a.checked} + .${a.track}`]: {
|
|
162
|
-
backgroundColor: (o.vars || o).palette[t].main
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}))]
|
|
166
|
-
}))), U = p("span", {
|
|
167
|
-
name: "MuiSwitch",
|
|
168
|
-
slot: "Track",
|
|
169
|
-
overridesResolver: (o, t) => t.track
|
|
170
|
-
})(d(({
|
|
171
|
-
theme: o
|
|
172
|
-
}) => ({
|
|
173
|
-
height: "100%",
|
|
174
|
-
width: "100%",
|
|
175
|
-
borderRadius: 14 / 2,
|
|
176
|
-
zIndex: -1,
|
|
177
|
-
transition: o.transitions.create(["opacity", "background-color"], {
|
|
178
|
-
duration: o.transitions.duration.shortest
|
|
179
|
-
}),
|
|
180
|
-
backgroundColor: o.vars ? o.vars.palette.common.onBackground : `${o.palette.mode === "light" ? o.palette.common.black : o.palette.common.white}`,
|
|
181
|
-
opacity: o.vars ? o.vars.opacity.switchTrack : `${o.palette.mode === "light" ? 0.38 : 0.3}`
|
|
182
|
-
}))), E = p("span", {
|
|
183
|
-
name: "MuiSwitch",
|
|
184
|
-
slot: "Thumb",
|
|
185
|
-
overridesResolver: (o, t) => t.thumb
|
|
186
|
-
})(d(({
|
|
187
|
-
theme: o
|
|
188
|
-
}) => ({
|
|
189
|
-
boxShadow: (o.vars || o).shadows[1],
|
|
190
|
-
backgroundColor: "currentColor",
|
|
191
|
-
width: 20,
|
|
192
|
-
height: 20,
|
|
193
|
-
borderRadius: "50%"
|
|
194
|
-
}))), v = /* @__PURE__ */ C.forwardRef(function(t, r) {
|
|
195
|
-
const l = M({
|
|
196
|
-
props: t,
|
|
197
|
-
name: "MuiSwitch"
|
|
198
|
-
}), {
|
|
199
|
-
className: u,
|
|
200
|
-
color: b = "primary",
|
|
201
|
-
edge: g = !1,
|
|
202
|
-
size: h = "medium",
|
|
203
|
-
sx: f,
|
|
204
|
-
...k
|
|
205
|
-
} = l, n = {
|
|
206
|
-
...l,
|
|
207
|
-
color: b,
|
|
208
|
-
edge: g,
|
|
209
|
-
size: h
|
|
210
|
-
}, c = D(n), m = /* @__PURE__ */ s(E, {
|
|
211
|
-
className: c.thumb,
|
|
212
|
-
ownerState: n
|
|
213
|
-
});
|
|
214
|
-
return /* @__PURE__ */ y(F, {
|
|
215
|
-
className: O(c.root, u),
|
|
216
|
-
sx: f,
|
|
217
|
-
ownerState: n,
|
|
218
|
-
children: [/* @__PURE__ */ s(q, {
|
|
219
|
-
type: "checkbox",
|
|
220
|
-
icon: m,
|
|
221
|
-
checkedIcon: m,
|
|
222
|
-
ref: r,
|
|
223
|
-
ownerState: n,
|
|
224
|
-
...k,
|
|
225
|
-
classes: {
|
|
226
|
-
...c,
|
|
227
|
-
root: c.switchBase
|
|
228
|
-
}
|
|
229
|
-
}), /* @__PURE__ */ s(U, {
|
|
230
|
-
className: c.track,
|
|
231
|
-
ownerState: n
|
|
232
|
-
})]
|
|
233
|
-
});
|
|
234
|
-
});
|
|
235
|
-
process.env.NODE_ENV !== "production" && (v.propTypes = {
|
|
236
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
237
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
238
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
239
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
240
|
-
/**
|
|
241
|
-
* If `true`, the component is checked.
|
|
242
|
-
*/
|
|
243
|
-
checked: e.bool,
|
|
244
|
-
/**
|
|
245
|
-
* The icon to display when the component is checked.
|
|
246
|
-
*/
|
|
247
|
-
checkedIcon: e.node,
|
|
248
|
-
/**
|
|
249
|
-
* Override or extend the styles applied to the component.
|
|
250
|
-
*/
|
|
251
|
-
classes: e.object,
|
|
252
|
-
/**
|
|
253
|
-
* @ignore
|
|
254
|
-
*/
|
|
255
|
-
className: e.string,
|
|
256
|
-
/**
|
|
257
|
-
* The color of the component.
|
|
258
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
259
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
260
|
-
* @default 'primary'
|
|
261
|
-
*/
|
|
262
|
-
color: e.oneOfType([e.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
263
|
-
/**
|
|
264
|
-
* The default checked state. Use when the component is not controlled.
|
|
265
|
-
*/
|
|
266
|
-
defaultChecked: e.bool,
|
|
267
|
-
/**
|
|
268
|
-
* If `true`, the component is disabled.
|
|
269
|
-
*/
|
|
270
|
-
disabled: e.bool,
|
|
271
|
-
/**
|
|
272
|
-
* If `true`, the ripple effect is disabled.
|
|
273
|
-
* @default false
|
|
274
|
-
*/
|
|
275
|
-
disableRipple: e.bool,
|
|
276
|
-
/**
|
|
277
|
-
* If given, uses a negative margin to counteract the padding on one
|
|
278
|
-
* side (this is often helpful for aligning the left or right
|
|
279
|
-
* side of the icon with content above or below, without ruining the border
|
|
280
|
-
* size and shape).
|
|
281
|
-
* @default false
|
|
282
|
-
*/
|
|
283
|
-
edge: e.oneOf(["end", "start", !1]),
|
|
284
|
-
/**
|
|
285
|
-
* The icon to display when the component is unchecked.
|
|
286
|
-
*/
|
|
287
|
-
icon: e.node,
|
|
288
|
-
/**
|
|
289
|
-
* The id of the `input` element.
|
|
290
|
-
*/
|
|
291
|
-
id: e.string,
|
|
292
|
-
/**
|
|
293
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
294
|
-
*/
|
|
295
|
-
inputProps: e.object,
|
|
296
|
-
/**
|
|
297
|
-
* Pass a ref to the `input` element.
|
|
298
|
-
*/
|
|
299
|
-
inputRef: L,
|
|
300
|
-
/**
|
|
301
|
-
* Callback fired when the state is changed.
|
|
302
|
-
*
|
|
303
|
-
* @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
|
|
304
|
-
* You can pull out the new value by accessing `event.target.value` (string).
|
|
305
|
-
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
306
|
-
*/
|
|
307
|
-
onChange: e.func,
|
|
308
|
-
/**
|
|
309
|
-
* If `true`, the `input` element is required.
|
|
310
|
-
* @default false
|
|
311
|
-
*/
|
|
312
|
-
required: e.bool,
|
|
313
|
-
/**
|
|
314
|
-
* The size of the component.
|
|
315
|
-
* `small` is equivalent to the dense switch styling.
|
|
316
|
-
* @default 'medium'
|
|
317
|
-
*/
|
|
318
|
-
size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
|
|
319
|
-
/**
|
|
320
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
321
|
-
*/
|
|
322
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
323
|
-
/**
|
|
324
|
-
* The value of the component. The DOM API casts this to a string.
|
|
325
|
-
* The browser uses "on" as the default value.
|
|
326
|
-
*/
|
|
327
|
-
value: e.any
|
|
328
|
-
});
|
|
329
|
-
const A = (o) => /* @__PURE__ */ s(N, { ...o }), oo = {
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { F as l, R as t } from "../../Radio-BxMxeQa-.js";
|
|
3
|
+
import { C as r } from "../../Checkbox-BI77q7eR.js";
|
|
4
|
+
import { S as a } from "../../Switch-BOpqo-TS.js";
|
|
5
|
+
const n = (e) => /* @__PURE__ */ o(l, { ...e }), d = {
|
|
330
6
|
title: "Components/FormControlLabel",
|
|
331
|
-
component:
|
|
7
|
+
component: n,
|
|
332
8
|
argTypes: {
|
|
333
9
|
control: {
|
|
334
10
|
control: "object"
|
|
@@ -350,9 +26,9 @@ const A = (o) => /* @__PURE__ */ s(N, { ...o }), oo = {
|
|
|
350
26
|
control: "boolean"
|
|
351
27
|
}
|
|
352
28
|
}
|
|
353
|
-
},
|
|
29
|
+
}, m = {
|
|
354
30
|
args: {
|
|
355
|
-
control: /* @__PURE__ */
|
|
31
|
+
control: /* @__PURE__ */ o(r, {}),
|
|
356
32
|
checked: void 0,
|
|
357
33
|
disabled: void 0,
|
|
358
34
|
disableTypography: void 0,
|
|
@@ -360,20 +36,20 @@ const A = (o) => /* @__PURE__ */ s(N, { ...o }), oo = {
|
|
|
360
36
|
labelPlacement: "end",
|
|
361
37
|
required: void 0
|
|
362
38
|
}
|
|
363
|
-
},
|
|
39
|
+
}, p = {
|
|
364
40
|
args: {
|
|
365
|
-
control: /* @__PURE__ */
|
|
41
|
+
control: /* @__PURE__ */ o(t, {}),
|
|
366
42
|
label: "Label"
|
|
367
43
|
}
|
|
368
|
-
},
|
|
44
|
+
}, h = {
|
|
369
45
|
args: {
|
|
370
|
-
control: /* @__PURE__ */
|
|
46
|
+
control: /* @__PURE__ */ o(a, {}),
|
|
371
47
|
label: "Label"
|
|
372
48
|
}
|
|
373
49
|
};
|
|
374
50
|
export {
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
51
|
+
m as Checkbox,
|
|
52
|
+
p as Radio,
|
|
53
|
+
h as Switch,
|
|
54
|
+
d as default
|
|
379
55
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),o=require("../../createSvgIcon-Dn4BBPej.cjs"),t=require("../Heading/Heading.cjs.js"),n=require("../../identifier-5n4d7br9.cjs"),c=o.createSvgIcon(e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"Mood"),i={title:"Components/Heading",component:t},r={args:{title:"Heading",iconColor:n.red,IconComponent:c}};exports.Default=r;exports.default=i;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { c as t } from "../../createSvgIcon-
|
|
2
|
+
import { c as t } from "../../createSvgIcon-CCejzj0C.js";
|
|
3
3
|
import n from "../Heading/Heading.es.js";
|
|
4
|
-
import { r as c } from "../../
|
|
4
|
+
import { r as c } from "../../identifier-D58rA1gM.js";
|
|
5
5
|
const e = t(/* @__PURE__ */ o("path", {
|
|
6
6
|
d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"
|
|
7
7
|
}), "Mood"), i = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),o=require("../../createSvgIcon
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),o=require("../../createSvgIcon-Dn4BBPej.cjs"),l=require("../../IconButton-Edo5JMfQ.cjs"),t=o.createSvgIcon(e.jsx("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"}),"School"),n={title:"Components/IconButton",component:l.IconButton,argTypes:{color:{control:"select",options:["inherit","default","primary","secondary","error","info","success","warning"]},disabled:{control:"boolean"},disableFocusRipple:{control:"boolean"},disableRipple:{control:"boolean"},edge:{control:"radio",options:["end","start",!1]},size:{control:"radio",options:["small","medium","large"]}}},s={args:{children:e.jsx(t,{}),color:"default",disabled:!1,disableFocusRipple:!1,disableRipple:!1,edge:!1,size:"medium"}};exports.Default=s;exports.default=n;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { c as e } from "../../createSvgIcon-
|
|
3
|
-
import { I as l } from "../../IconButton-
|
|
2
|
+
import { c as e } from "../../createSvgIcon-CCejzj0C.js";
|
|
3
|
+
import { I as l } from "../../IconButton-B4bt0Hp2.js";
|
|
4
4
|
const s = e(/* @__PURE__ */ o("path", {
|
|
5
5
|
d: "M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"
|
|
6
6
|
}), "School"), r = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),r=require("../../Link-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),r=require("../../Link-CAbb9OCV.cjs"),n=e=>t.jsx(r.Link,{...e}),o={title:"Components/Link",component:n,argTypes:{children:{control:"text"},color:{control:"select",options:["primary","secondary","error","info","success","warning","textPrimary","textSecondary","textDisabled"]},href:{control:"text"},underline:{control:"select",options:["always","hover","none"]}}},i={args:{children:"Link",color:"primary",href:"https://www.cgi.com/france/fr-fr/solution/cgi-learning-hub",underline:"always"}};exports.Default=i;exports.default=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),l=require("react"),a=require("../Button/Button.cjs.js"),d=require("../../Menu-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),l=require("react"),a=require("../Button/Button.cjs.js"),d=require("../../Menu-C-R0FVOB.cjs"),o=require("../../MenuItem-Cp1_Q0FD.cjs"),m=r=>{const[u,s]=l.useState(null),t=!!u,c=i=>{s(i.currentTarget)},n=()=>s(null);return e.jsxs(e.Fragment,{children:[e.jsx(a,{variant:"text",id:"basic-button","aria-controls":t?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":t?"true":void 0,onClick:c,children:"Open menu"}),e.jsxs(d.Menu,{...r,id:"basic-menu",anchorEl:u,open:t,onClose:n,MenuListProps:{"aria-labelledby":"basic-button"},children:[e.jsx(o.MenuItem,{onClick:n,children:"Profile"}),e.jsx(o.MenuItem,{onClick:n,children:"My account"}),e.jsx(o.MenuItem,{onClick:n,children:"Logout"})]})]})},M={title:"Components/Menu",component:m},p={args:{}};exports.Default=p;exports.default=M;
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { jsxs as a, Fragment as u, jsx as
|
|
1
|
+
import { jsxs as a, Fragment as u, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useState as m } from "react";
|
|
3
|
-
import
|
|
4
|
-
import { M as
|
|
5
|
-
import { M as t } from "../../MenuItem-
|
|
6
|
-
const
|
|
7
|
-
const [r, i] = m(null),
|
|
3
|
+
import p from "../Button/Button.es.js";
|
|
4
|
+
import { M as d } from "../../Menu-DzBX10ev.js";
|
|
5
|
+
import { M as t } from "../../MenuItem-DQQ-p2ie.js";
|
|
6
|
+
const h = (c) => {
|
|
7
|
+
const [r, i] = m(null), e = !!r, l = (s) => {
|
|
8
8
|
i(s.currentTarget);
|
|
9
9
|
}, n = () => i(null);
|
|
10
10
|
return /* @__PURE__ */ a(u, { children: [
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
|
|
11
|
+
/* @__PURE__ */ o(
|
|
12
|
+
p,
|
|
13
13
|
{
|
|
14
14
|
variant: "text",
|
|
15
15
|
id: "basic-button",
|
|
16
|
-
"aria-controls":
|
|
16
|
+
"aria-controls": e ? "basic-menu" : void 0,
|
|
17
17
|
"aria-haspopup": "true",
|
|
18
|
-
"aria-expanded":
|
|
18
|
+
"aria-expanded": e ? "true" : void 0,
|
|
19
19
|
onClick: l,
|
|
20
20
|
children: "Open menu"
|
|
21
21
|
}
|
|
22
22
|
),
|
|
23
23
|
/* @__PURE__ */ a(
|
|
24
|
-
|
|
24
|
+
d,
|
|
25
25
|
{
|
|
26
26
|
...c,
|
|
27
27
|
id: "basic-menu",
|
|
28
28
|
anchorEl: r,
|
|
29
|
-
open:
|
|
29
|
+
open: e,
|
|
30
30
|
onClose: n,
|
|
31
31
|
MenuListProps: {
|
|
32
32
|
"aria-labelledby": "basic-button"
|
|
33
33
|
},
|
|
34
34
|
children: [
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
/* @__PURE__ */
|
|
35
|
+
/* @__PURE__ */ o(t, { onClick: n, children: "Profile" }),
|
|
36
|
+
/* @__PURE__ */ o(t, { onClick: n, children: "My account" }),
|
|
37
|
+
/* @__PURE__ */ o(t, { onClick: n, children: "Logout" })
|
|
38
38
|
]
|
|
39
39
|
}
|
|
40
40
|
)
|
|
41
41
|
] });
|
|
42
42
|
}, x = {
|
|
43
43
|
title: "Components/Menu",
|
|
44
|
-
component:
|
|
44
|
+
component: h
|
|
45
45
|
}, g = {
|
|
46
46
|
args: {}
|
|
47
47
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),o=require("../../Paper-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),o=require("../../Paper-C-oPGpbI.cjs"),r=e=>t.jsx(o.Paper,{sx:{width:"10rem",height:"10rem",p:1},...e,children:"children"}),n={title:"Components/Paper",component:r,argTypes:{elevation:{control:"number"},square:{control:"boolean"},variant:{control:"select",options:["elevation","outlined"]}}},a={args:{elevation:1,square:!1,variant:"elevation"}};exports.Default=a;exports.default=n;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { P as o } from "../../Paper-
|
|
2
|
+
import { P as o } from "../../Paper-CbgkVQVx.js";
|
|
3
3
|
const r = (e) => /* @__PURE__ */ t(o, { sx: { width: "10rem", height: "10rem", p: 1 }, ...e, children: "children" }), l = {
|
|
4
4
|
title: "Components/Paper",
|
|
5
5
|
component: r,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),r=require("../../FormLabel-D0gSgwnj.cjs"),t=require("../../RadioGroup-Ya-I8Lz1.cjs"),e=require("../../Radio-CvCkmq8g.cjs"),a=l=>o.jsxs(r.FormControl,{children:[o.jsx(r.FormLabel,{id:"radio-buttons-group-label",children:"Label"}),o.jsxs(t.RadioGroup,{"aria-labelledby":"radio-buttons-group-label",defaultValue:"first",name:"radio-buttons-group",...l,children:[o.jsx(e.FormControlLabel,{value:"first",control:o.jsx(e.Radio,{}),label:"First"}),o.jsx(e.FormControlLabel,{value:"second",control:o.jsx(e.Radio,{}),label:"Second"}),o.jsx(e.FormControlLabel,{value:"third",control:o.jsx(e.Radio,{}),label:"Third"})]})]}),s={title:"Components/RadioGroup",component:a},n={args:{row:!1}},i={args:{row:!0}};exports.Default=n;exports.Row=i;exports.default=s;
|