@cgi-learning-hub/ui 1.3.4 → 1.3.5-dev.1736340751
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-CvufxHMY.cjs +1 -0
- package/dist/{Backdrop-BlKt7y1x.js → Backdrop-DcDd6WZF.js} +13 -13
- package/dist/{Box-DErdbtsw.js → Box-Byz2BwGf.js} +10 -10
- package/dist/Box-mP2Th61z.cjs +1 -0
- package/dist/Button-BH9MUvmz.cjs +1 -0
- package/dist/{Button-CiqVGfRs.js → Button-BnNYfQ3E.js} +153 -119
- package/dist/ButtonBase-BXtyQVDC.cjs +74 -0
- package/dist/{ButtonBase-DUPJVOlc.js → ButtonBase-DAWDecOk.js} +42 -41
- package/dist/{Card-mGRk1RuE.js → Card-AJG0TUOx.js} +3 -3
- package/dist/Card-NqCXQteq.cjs +1 -0
- package/dist/{Checkbox-aJ1r7ufI.js → Checkbox-8Rhxpkjl.js} +23 -22
- package/dist/Checkbox-DYrDbdy1.cjs +1 -0
- package/dist/CircularProgress-BByrCLjv.cjs +28 -0
- package/dist/{CircularProgress-CfODO7vI.js → CircularProgress-Kwlef5fX.js} +14 -13
- package/dist/DatePicker-7-4p3Vtj.cjs +14 -0
- package/dist/{DatePicker-Dyf9Vhld.js → DatePicker-BS1OatwQ.js} +549 -546
- package/dist/DefaultPropsProvider-3KMGupjb.cjs +17 -0
- package/dist/DefaultPropsProvider-CvJPQJmL.js +454 -0
- package/dist/{Delete-BOQTx9ze.js → Delete-BkZN7Xu5.js} +1 -1
- package/dist/{Delete-DyzDL8-Y.cjs → Delete-D1EiKoL5.cjs} +1 -1
- package/dist/Dialog-D_lS4J_M.js +415 -0
- package/dist/Dialog-yOrNcHbG.cjs +1 -0
- package/dist/DialogContent-Dj_OjLZ6.cjs +1 -0
- package/dist/DialogContent-uc65XOEU.js +194 -0
- package/dist/DialogTitle-BboPDaoB.cjs +1 -0
- package/dist/{DialogTitle-AQ-YU9PH.js → DialogTitle-C8JOi-rq.js} +43 -42
- package/dist/Divider-CcrM3lNn.cjs +1 -0
- package/dist/{Divider-C0R1SUa4.js → Divider-KO-E6nU8.js} +8 -8
- package/dist/FormControlLabel-Bb6Ul-qQ.cjs +1 -0
- package/dist/{FormControlLabel-w-X91z27.js → FormControlLabel-BmrKQtQA.js} +17 -16
- package/dist/{FormGroup-6NoANcYk.js → FormGroup-CbczEc6e.js} +12 -12
- package/dist/FormGroup-Y3P2AG0i.cjs +1 -0
- package/dist/{FormLabel-CoLJ9tA8.js → FormLabel-CfR4bb21.js} +6 -5
- package/dist/FormLabel-D1uvEhsH.cjs +2 -0
- package/dist/{Grow-SW33sONG.js → Grow-CQVPAYvp.js} +13 -13
- package/dist/Grow-CUBJs6WD.cjs +1 -0
- package/dist/IconButton-CJfzspZK.cjs +2 -0
- package/dist/{IconButton-DjeMTpI5.js → IconButton-CekuyD4r.js} +13 -12
- package/dist/InputAdornment-Cq0WhPxF.cjs +1 -0
- package/dist/{InputAdornment-ByiVSgFT.js → InputAdornment-iU5YnveW.js} +16 -15
- package/dist/{InputBase-CvU0-Zg6.js → InputBase-BJy3wwFB.js} +28 -26
- package/dist/InputBase-s1fk8TB4.cjs +3 -0
- package/dist/Link-CWczkFp0.cjs +1 -0
- package/dist/{Link-Dmwt9wxb.js → Link-CoQuUM0t.js} +11 -10
- package/dist/Menu-Bsx8PA-q.cjs +7 -0
- package/dist/{Menu-4U27Dst1.js → Menu-C7tKmcAh.js} +63 -61
- package/dist/MenuItem-BZ_EVaBq.cjs +1 -0
- package/dist/{MenuItem-CqPsuuC1.js → MenuItem-j8luVUcX.js} +7 -7
- package/dist/Modal-DImrEpYJ.cjs +2 -0
- package/dist/{Modal-D_mqYIr2.js → Modal-brWBFdK7.js} +76 -74
- package/dist/{Paper-D973Ow-i.js → Paper-BG4Vk_Um.js} +4 -4
- package/dist/Paper-Cr56xkCr.cjs +2 -0
- package/dist/{Popper-B8oNZqtn.js → Popper-DFZ_gRev.js} +240 -239
- package/dist/Popper-YT5WAMV-.cjs +4 -0
- package/dist/Portal-DF0RKOcD.cjs +1 -0
- package/dist/{Portal-BKbBRbWN.js → Portal-JEwcozmp.js} +3 -3
- package/dist/Radio-CVAEGXKi.cjs +1 -0
- package/dist/{Radio-BrzQH9pY.js → Radio-DGhot3Cd.js} +21 -20
- package/dist/Select-CwAWNiiv.cjs +3 -0
- package/dist/{Select-CgAPAUTr.js → Select-DmssuG5M.js} +62 -60
- package/dist/{Stack-CYXQpKS2.js → Stack-BzTJdRGj.js} +105 -60
- package/dist/Stack-Yq6rb7iK.cjs +1 -0
- package/dist/SwitchBase-DjIY_KWB.cjs +1 -0
- package/dist/{SwitchBase-CGa9A6SL.js → SwitchBase-Dlth5_F7.js} +38 -37
- package/dist/{TableSortLabel-hvz89Dvu.js → TableSortLabel-BsgRD4k4.js} +1289 -1268
- package/dist/TableSortLabel-D0N3e3cP.cjs +98 -0
- package/dist/{Tabs-BPI2IyPx.js → Tabs-CYbeTnJk.js} +292 -289
- package/dist/Tabs-KG4VWw-1.cjs +4 -0
- package/dist/TextField-BI9KVqjC.cjs +1 -0
- package/dist/{TextField-C4nIxR_t.js → TextField-Cri5Gxa7.js} +20 -19
- package/dist/{Tooltip-Bdrv-e2a.js → Tooltip-BhAHhzKz.js} +32 -30
- package/dist/Tooltip-DhDtvULK.cjs +4 -0
- package/dist/{Typography-CUdlQxLM.js → Typography-DBwTr_ix.js} +13 -12
- package/dist/Typography-DfRMDngd.cjs +1 -0
- package/dist/capitalize-B3GG7Wn6.cjs +1 -0
- package/dist/capitalize-CkF8kU4n.js +9 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +22 -21
- 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 -0
- package/dist/components/Dialog/Dialog.d.ts +6 -0
- package/dist/components/Dialog/Dialog.es.js +28 -0
- package/dist/components/Dialog/index.cjs.js +1 -0
- package/dist/components/Dialog/index.d.ts +2 -0
- package/dist/components/Dialog/index.es.js +4 -0
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.cjs.js +1 -0
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.d.ts +9 -0
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +44 -0
- package/dist/components/EllipsisWithTooltip/index.cjs.js +1 -0
- package/dist/components/EllipsisWithTooltip/index.d.ts +2 -0
- package/dist/components/EllipsisWithTooltip/index.es.js +4 -0
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +7 -7
- 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.d.ts +1 -0
- package/dist/components/ImagePicker/ImagePicker.es.js +29 -28
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- 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 +5 -5
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.es.js +14 -14
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- 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 +7 -3
- package/dist/components/index.es.js +228 -220
- 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 +8 -8
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +5 -5
- 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.d.ts +1 -1
- package/dist/components/stories/Dialog.stories.es.js +26 -14
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +5 -5
- package/dist/components/stories/EllipsisWithTooltip.stories.cjs.js +1 -0
- package/dist/components/stories/EllipsisWithTooltip.stories.d.ts +6 -0
- package/dist/components/stories/EllipsisWithTooltip.stories.es.js +36 -0
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +69 -68
- 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/ImagePicker.stories.cjs.js +1 -1
- package/dist/components/stories/ImagePicker.stories.es.js +13 -6
- 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 +6 -6
- 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 +9 -9
- 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--rEClVU7.cjs +1 -0
- package/dist/{createSvgIcon-CVd3Lo1D.js → createSvgIcon-C8nGcfF4.js} +6 -5
- package/dist/dividerClasses-CCAY3Pnr.cjs +1 -0
- package/dist/{dividerClasses-kN_Ky2Bl.js → dividerClasses-nh2-hkQB.js} +1 -1
- package/dist/{elementTypeAcceptingRef-modXfN2G.js → elementTypeAcceptingRef-D-5kcohU.js} +1 -1
- package/dist/elementTypeAcceptingRef-DZsNbuLU.cjs +1 -0
- package/dist/{extendSxProp-CHv0k-C6.js → extendSxProp-C2ff0oGc.js} +1 -1
- package/dist/extendSxProp-apyK-EBz.cjs +1 -0
- package/dist/{fr-rmVQsNbI.js → fr-Bjufn3RW.js} +84 -84
- package/dist/{fr-ChrHtTbj.cjs → fr-JE-1WKP6.cjs} +1 -1
- package/dist/generateUtilityClasses-B_H9HEmg.cjs +59 -0
- package/dist/{identifier-Bn0tF6ls.js → generateUtilityClasses-Bssl7BA_.js} +898 -872
- package/dist/index-Aa73Kpym.cjs +1 -0
- package/dist/{index-CVpJYeY2.js → index-BCnPLuqJ.js} +23 -22
- package/dist/index-ChM1Ett8.cjs +5 -0
- package/dist/index-Cw0GDedk.cjs +17 -0
- package/dist/{index-BNojWn2E.js → index-CwvpOCso.js} +29 -29
- package/dist/index-DXD5J5Eu.js +186 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +228 -220
- package/dist/{memoTheme-BPA1FjB4.cjs → memoTheme-Bdg0Y_2O.cjs} +1 -1
- package/dist/{memoTheme-CMJVTZEg.js → memoTheme-D7Fyh_3C.js} +1 -1
- package/dist/mergeSlotProps-DuV-LTW7.cjs +1 -0
- package/dist/{resolveComponentProps-DHoZOPOi.js → mergeSlotProps-tUJEcwVu.js} +7 -7
- package/dist/refType-CoaxQOPt.cjs +1 -0
- package/dist/refType-DKYKROQk.js +5 -0
- package/dist/useEnhancedEffect-BQZ6dtCo.cjs +1 -0
- package/dist/useEnhancedEffect-CJGo-L3B.js +5 -0
- package/dist/useEventCallback-BAQJJ3ye.js +14 -0
- package/dist/useEventCallback-C0-Qw3Sm.cjs +1 -0
- package/dist/{useSlot-t9oGnIgq.js → useSlot-BTpHG6jf.js} +1 -1
- package/dist/useSlot-CByalpSD.cjs +1 -0
- package/dist/useSlotProps-B31YQlzb.js +45 -0
- package/dist/useSlotProps-BVSAQTNl.cjs +1 -0
- package/dist/useTheme-Cy5kyKJF.cjs +1 -0
- package/dist/useTheme-Dukx-__T.cjs +1 -0
- package/dist/useTheme-DyaNKf4e.js +11 -0
- package/dist/{useTheme-CBsFvF7I.js → useTheme-_xyy-wul.js} +1 -1
- package/dist/{useThemeProps-5Bku71LW.js → useThemeProps-BySkSe-M.js} +2 -2
- package/dist/useThemeProps-CdV_QwDl.cjs +1 -0
- package/dist/{useThemeProps-I9EHeqzU.js → useThemeProps-CwEQ4bv2.js} +3 -3
- package/dist/{useThemeProps-C692LOYf.cjs → useThemeProps-u_ESzK2f.cjs} +1 -1
- package/dist/useTimeout-COCrDKz-.cjs +1 -0
- package/dist/useTimeout-CrCYVizI.js +42 -0
- package/dist/{utils-CE_a8glN.js → utils-C6c4fj7D.js} +41 -41
- package/dist/utils-vmyQ2IaS.cjs +1 -0
- package/package.json +1 -1
- package/dist/Backdrop-vSE8W9jq.cjs +0 -1
- package/dist/Box-DMYs7NTb.cjs +0 -1
- package/dist/Button-D3dbHQM1.cjs +0 -1
- package/dist/ButtonBase-BoWeLMzR.cjs +0 -74
- package/dist/Card-Cnh4u4kb.cjs +0 -1
- package/dist/Checkbox-s_RdgUlw.cjs +0 -1
- package/dist/CircularProgress-DHgcUb1c.cjs +0 -28
- package/dist/DatePicker-juzW4bLC.cjs +0 -14
- package/dist/DefaultPropsProvider-Biv7NHew.cjs +0 -17
- package/dist/DefaultPropsProvider-xJkZOrdv.js +0 -487
- package/dist/DialogContent-D1KFPXhr.js +0 -602
- package/dist/DialogContent-Dphl2SKX.cjs +0 -1
- package/dist/DialogTitle-C8AdXsDz.cjs +0 -1
- package/dist/Divider-Bdp8beK-.cjs +0 -1
- package/dist/FormControlLabel-BlO93LTi.cjs +0 -1
- package/dist/FormGroup-D0zSGn42.cjs +0 -1
- package/dist/FormLabel-BkiH7wl7.cjs +0 -2
- package/dist/Grow-DfACa72Q.cjs +0 -1
- package/dist/IconButton-DRs0xB4z.cjs +0 -2
- package/dist/InputAdornment-B1pggfEX.cjs +0 -1
- package/dist/InputBase-Xfjv-RYp.cjs +0 -3
- package/dist/Link-Z_UCBvgV.cjs +0 -1
- package/dist/Menu-DREdNbqu.cjs +0 -7
- package/dist/MenuItem-CN75Du-9.cjs +0 -1
- package/dist/Modal-DWqBsogu.cjs +0 -2
- package/dist/Paper-CjMuucS5.cjs +0 -2
- package/dist/Popper-hzM0y1hA.cjs +0 -4
- package/dist/Portal-Bv2VRYHH.cjs +0 -1
- package/dist/Radio-DxbXYNhR.cjs +0 -1
- package/dist/Select-CL4E8NNL.cjs +0 -3
- package/dist/Stack-WrITLr1B.cjs +0 -1
- package/dist/SwitchBase-Cqh9rxOh.cjs +0 -1
- package/dist/TableSortLabel-mAzX4tAl.cjs +0 -98
- package/dist/Tabs-BNqwYd2G.cjs +0 -4
- package/dist/TextField-Dy0Iblqt.cjs +0 -1
- package/dist/Tooltip-vg27N3PU.cjs +0 -4
- package/dist/Typography-BF9bdWxl.cjs +0 -1
- package/dist/createSvgIcon-BMmqQ2z0.cjs +0 -1
- package/dist/dividerClasses-CyDs_RPD.cjs +0 -1
- package/dist/elementTypeAcceptingRef-5w32V5hP.cjs +0 -1
- package/dist/extendSxProp-6YOo46ig.cjs +0 -1
- package/dist/identifier-Dax8VlUh.cjs +0 -59
- package/dist/index-C5dNuV-2.cjs +0 -5
- package/dist/index-D3PBNx_m.cjs +0 -1
- package/dist/index-OLlWw08I.cjs +0 -1
- package/dist/index-waINWr3i.js +0 -45
- package/dist/refType-BmrOFNz6.js +0 -7
- package/dist/refType-Dm84STBj.cjs +0 -1
- package/dist/resolveComponentProps-4nhUsl3a.cjs +0 -1
- package/dist/useSlot-CJAXUvYJ.cjs +0 -1
- package/dist/useTheme-BIogn5Me.cjs +0 -1
- package/dist/useTheme-Bz4LKMiC.cjs +0 -1
- package/dist/useTheme-L3EQmvnN.js +0 -11
- package/dist/useThemeProps-DNFKz8wS.cjs +0 -1
- package/dist/useTimeout-3Y5y4gWq.js +0 -53
- package/dist/useTimeout-CxOQget6.cjs +0 -1
- package/dist/utils-CusX8Edy.cjs +0 -1
|
@@ -1,45 +1,46 @@
|
|
|
1
1
|
import { jsxs as y, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { C as S } from "../../Checkbox-
|
|
3
|
-
import { a as $ } from "../../Radio-
|
|
2
|
+
import { C as S } from "../../Checkbox-8Rhxpkjl.js";
|
|
3
|
+
import { a as $ } from "../../Radio-DGhot3Cd.js";
|
|
4
4
|
import * as C from "react";
|
|
5
|
-
import { I as x, H as T,
|
|
5
|
+
import { I as x, H as T, P as e, n as w, s as R, q as z, G as O } from "../../generateUtilityClasses-Bssl7BA_.js";
|
|
6
6
|
import { c as j } from "../../createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
7
|
-
import { S as B } from "../../SwitchBase-
|
|
8
|
-
import { m as d } from "../../memoTheme-
|
|
9
|
-
import { s as p, u as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
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";
|
|
12
13
|
function I(o) {
|
|
13
14
|
return T("MuiSwitch", o);
|
|
14
15
|
}
|
|
15
16
|
const a = x("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]), D = (o) => {
|
|
16
17
|
const {
|
|
17
|
-
classes:
|
|
18
|
+
classes: t,
|
|
18
19
|
edge: r,
|
|
19
20
|
size: l,
|
|
20
|
-
color:
|
|
21
|
-
checked:
|
|
21
|
+
color: u,
|
|
22
|
+
checked: b,
|
|
22
23
|
disabled: g
|
|
23
24
|
} = o, h = {
|
|
24
25
|
root: ["root", r && `edge${i(r)}`, `size${i(l)}`],
|
|
25
|
-
switchBase: ["switchBase", `color${i(
|
|
26
|
+
switchBase: ["switchBase", `color${i(u)}`, b && "checked", g && "disabled"],
|
|
26
27
|
thumb: ["thumb"],
|
|
27
28
|
track: ["track"],
|
|
28
29
|
input: ["input"]
|
|
29
|
-
},
|
|
30
|
+
}, f = P(h, I, t);
|
|
30
31
|
return {
|
|
31
|
-
...
|
|
32
|
+
...t,
|
|
32
33
|
// forward the disabled and checked classes to the SwitchBase
|
|
33
|
-
...
|
|
34
|
+
...f
|
|
34
35
|
};
|
|
35
36
|
}, F = p("span", {
|
|
36
37
|
name: "MuiSwitch",
|
|
37
38
|
slot: "Root",
|
|
38
|
-
overridesResolver: (o,
|
|
39
|
+
overridesResolver: (o, t) => {
|
|
39
40
|
const {
|
|
40
41
|
ownerState: r
|
|
41
42
|
} = o;
|
|
42
|
-
return [
|
|
43
|
+
return [t.root, r.edge && t[`edge${i(r.edge)}`], t[`size${i(r.size)}`]];
|
|
43
44
|
}
|
|
44
45
|
})({
|
|
45
46
|
display: "inline-flex",
|
|
@@ -94,13 +95,13 @@ const a = x("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
94
95
|
}), q = p(B, {
|
|
95
96
|
name: "MuiSwitch",
|
|
96
97
|
slot: "SwitchBase",
|
|
97
|
-
overridesResolver: (o,
|
|
98
|
+
overridesResolver: (o, t) => {
|
|
98
99
|
const {
|
|
99
100
|
ownerState: r
|
|
100
101
|
} = o;
|
|
101
|
-
return [
|
|
102
|
-
[`& .${a.input}`]:
|
|
103
|
-
}, r.color !== "default" &&
|
|
102
|
+
return [t.switchBase, {
|
|
103
|
+
[`& .${a.input}`]: t.input
|
|
104
|
+
}, r.color !== "default" && t[`color${i(r.color)}`]];
|
|
104
105
|
}
|
|
105
106
|
})(d(({
|
|
106
107
|
theme: o
|
|
@@ -134,38 +135,38 @@ const a = x("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
134
135
|
theme: o
|
|
135
136
|
}) => ({
|
|
136
137
|
"&:hover": {
|
|
137
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` :
|
|
138
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : w(o.palette.action.active, o.palette.action.hoverOpacity),
|
|
138
139
|
// Reset on touch devices, it doesn't add specificity
|
|
139
140
|
"@media (hover: none)": {
|
|
140
141
|
backgroundColor: "transparent"
|
|
141
142
|
}
|
|
142
143
|
},
|
|
143
|
-
variants: [...Object.entries(o.palette).filter(j(["light"])).map(([
|
|
144
|
+
variants: [...Object.entries(o.palette).filter(j(["light"])).map(([t]) => ({
|
|
144
145
|
props: {
|
|
145
|
-
color:
|
|
146
|
+
color: t
|
|
146
147
|
},
|
|
147
148
|
style: {
|
|
148
149
|
[`&.${a.checked}`]: {
|
|
149
|
-
color: (o.vars || o).palette[
|
|
150
|
+
color: (o.vars || o).palette[t].main,
|
|
150
151
|
"&:hover": {
|
|
151
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette[
|
|
152
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette[t].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : w(o.palette[t].main, o.palette.action.hoverOpacity),
|
|
152
153
|
"@media (hover: none)": {
|
|
153
154
|
backgroundColor: "transparent"
|
|
154
155
|
}
|
|
155
156
|
},
|
|
156
157
|
[`&.${a.disabled}`]: {
|
|
157
|
-
color: o.vars ? o.vars.palette.Switch[`${
|
|
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)}`
|
|
158
159
|
}
|
|
159
160
|
},
|
|
160
161
|
[`&.${a.checked} + .${a.track}`]: {
|
|
161
|
-
backgroundColor: (o.vars || o).palette[
|
|
162
|
+
backgroundColor: (o.vars || o).palette[t].main
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
165
|
}))]
|
|
165
166
|
}))), U = p("span", {
|
|
166
167
|
name: "MuiSwitch",
|
|
167
168
|
slot: "Track",
|
|
168
|
-
overridesResolver: (o,
|
|
169
|
+
overridesResolver: (o, t) => t.track
|
|
169
170
|
})(d(({
|
|
170
171
|
theme: o
|
|
171
172
|
}) => ({
|
|
@@ -181,7 +182,7 @@ const a = x("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
181
182
|
}))), E = p("span", {
|
|
182
183
|
name: "MuiSwitch",
|
|
183
184
|
slot: "Thumb",
|
|
184
|
-
overridesResolver: (o,
|
|
185
|
+
overridesResolver: (o, t) => t.thumb
|
|
185
186
|
})(d(({
|
|
186
187
|
theme: o
|
|
187
188
|
}) => ({
|
|
@@ -190,34 +191,34 @@ const a = x("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
190
191
|
width: 20,
|
|
191
192
|
height: 20,
|
|
192
193
|
borderRadius: "50%"
|
|
193
|
-
}))),
|
|
194
|
-
const l =
|
|
195
|
-
props:
|
|
194
|
+
}))), v = /* @__PURE__ */ C.forwardRef(function(t, r) {
|
|
195
|
+
const l = M({
|
|
196
|
+
props: t,
|
|
196
197
|
name: "MuiSwitch"
|
|
197
198
|
}), {
|
|
198
|
-
className:
|
|
199
|
-
color:
|
|
199
|
+
className: u,
|
|
200
|
+
color: b = "primary",
|
|
200
201
|
edge: g = !1,
|
|
201
202
|
size: h = "medium",
|
|
202
|
-
sx:
|
|
203
|
+
sx: f,
|
|
203
204
|
...k
|
|
204
205
|
} = l, n = {
|
|
205
206
|
...l,
|
|
206
|
-
color:
|
|
207
|
+
color: b,
|
|
207
208
|
edge: g,
|
|
208
209
|
size: h
|
|
209
|
-
}, c = D(n),
|
|
210
|
+
}, c = D(n), m = /* @__PURE__ */ s(E, {
|
|
210
211
|
className: c.thumb,
|
|
211
212
|
ownerState: n
|
|
212
213
|
});
|
|
213
214
|
return /* @__PURE__ */ y(F, {
|
|
214
|
-
className: O(c.root,
|
|
215
|
-
sx:
|
|
215
|
+
className: O(c.root, u),
|
|
216
|
+
sx: f,
|
|
216
217
|
ownerState: n,
|
|
217
218
|
children: [/* @__PURE__ */ s(q, {
|
|
218
219
|
type: "checkbox",
|
|
219
|
-
icon:
|
|
220
|
-
checkedIcon:
|
|
220
|
+
icon: m,
|
|
221
|
+
checkedIcon: m,
|
|
221
222
|
ref: r,
|
|
222
223
|
ownerState: n,
|
|
223
224
|
...k,
|
|
@@ -231,7 +232,7 @@ const a = x("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
231
232
|
})]
|
|
232
233
|
});
|
|
233
234
|
});
|
|
234
|
-
process.env.NODE_ENV !== "production" && (
|
|
235
|
+
process.env.NODE_ENV !== "production" && (v.propTypes = {
|
|
235
236
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
236
237
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
237
238
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -239,39 +240,39 @@ process.env.NODE_ENV !== "production" && (w.propTypes = {
|
|
|
239
240
|
/**
|
|
240
241
|
* If `true`, the component is checked.
|
|
241
242
|
*/
|
|
242
|
-
checked:
|
|
243
|
+
checked: e.bool,
|
|
243
244
|
/**
|
|
244
245
|
* The icon to display when the component is checked.
|
|
245
246
|
*/
|
|
246
|
-
checkedIcon:
|
|
247
|
+
checkedIcon: e.node,
|
|
247
248
|
/**
|
|
248
249
|
* Override or extend the styles applied to the component.
|
|
249
250
|
*/
|
|
250
|
-
classes:
|
|
251
|
+
classes: e.object,
|
|
251
252
|
/**
|
|
252
253
|
* @ignore
|
|
253
254
|
*/
|
|
254
|
-
className:
|
|
255
|
+
className: e.string,
|
|
255
256
|
/**
|
|
256
257
|
* The color of the component.
|
|
257
258
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
258
259
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
259
260
|
* @default 'primary'
|
|
260
261
|
*/
|
|
261
|
-
color:
|
|
262
|
+
color: e.oneOfType([e.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
262
263
|
/**
|
|
263
264
|
* The default checked state. Use when the component is not controlled.
|
|
264
265
|
*/
|
|
265
|
-
defaultChecked:
|
|
266
|
+
defaultChecked: e.bool,
|
|
266
267
|
/**
|
|
267
268
|
* If `true`, the component is disabled.
|
|
268
269
|
*/
|
|
269
|
-
disabled:
|
|
270
|
+
disabled: e.bool,
|
|
270
271
|
/**
|
|
271
272
|
* If `true`, the ripple effect is disabled.
|
|
272
273
|
* @default false
|
|
273
274
|
*/
|
|
274
|
-
disableRipple:
|
|
275
|
+
disableRipple: e.bool,
|
|
275
276
|
/**
|
|
276
277
|
* If given, uses a negative margin to counteract the padding on one
|
|
277
278
|
* side (this is often helpful for aligning the left or right
|
|
@@ -279,23 +280,23 @@ process.env.NODE_ENV !== "production" && (w.propTypes = {
|
|
|
279
280
|
* size and shape).
|
|
280
281
|
* @default false
|
|
281
282
|
*/
|
|
282
|
-
edge:
|
|
283
|
+
edge: e.oneOf(["end", "start", !1]),
|
|
283
284
|
/**
|
|
284
285
|
* The icon to display when the component is unchecked.
|
|
285
286
|
*/
|
|
286
|
-
icon:
|
|
287
|
+
icon: e.node,
|
|
287
288
|
/**
|
|
288
289
|
* The id of the `input` element.
|
|
289
290
|
*/
|
|
290
|
-
id:
|
|
291
|
+
id: e.string,
|
|
291
292
|
/**
|
|
292
293
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
293
294
|
*/
|
|
294
|
-
inputProps:
|
|
295
|
+
inputProps: e.object,
|
|
295
296
|
/**
|
|
296
297
|
* Pass a ref to the `input` element.
|
|
297
298
|
*/
|
|
298
|
-
inputRef:
|
|
299
|
+
inputRef: L,
|
|
299
300
|
/**
|
|
300
301
|
* Callback fired when the state is changed.
|
|
301
302
|
*
|
|
@@ -303,29 +304,29 @@ process.env.NODE_ENV !== "production" && (w.propTypes = {
|
|
|
303
304
|
* You can pull out the new value by accessing `event.target.value` (string).
|
|
304
305
|
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
305
306
|
*/
|
|
306
|
-
onChange:
|
|
307
|
+
onChange: e.func,
|
|
307
308
|
/**
|
|
308
309
|
* If `true`, the `input` element is required.
|
|
309
310
|
* @default false
|
|
310
311
|
*/
|
|
311
|
-
required:
|
|
312
|
+
required: e.bool,
|
|
312
313
|
/**
|
|
313
314
|
* The size of the component.
|
|
314
315
|
* `small` is equivalent to the dense switch styling.
|
|
315
316
|
* @default 'medium'
|
|
316
317
|
*/
|
|
317
|
-
size:
|
|
318
|
+
size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
|
|
318
319
|
/**
|
|
319
320
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
320
321
|
*/
|
|
321
|
-
sx:
|
|
322
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
322
323
|
/**
|
|
323
324
|
* The value of the component. The DOM API casts this to a string.
|
|
324
325
|
* The browser uses "on" as the default value.
|
|
325
326
|
*/
|
|
326
|
-
value:
|
|
327
|
+
value: e.any
|
|
327
328
|
});
|
|
328
|
-
const A = (o) => /* @__PURE__ */ s(N, { ...o }),
|
|
329
|
+
const A = (o) => /* @__PURE__ */ s(N, { ...o }), oo = {
|
|
329
330
|
title: "Components/FormControlLabel",
|
|
330
331
|
component: A,
|
|
331
332
|
argTypes: {
|
|
@@ -349,7 +350,7 @@ const A = (o) => /* @__PURE__ */ s(N, { ...o }), Z = {
|
|
|
349
350
|
control: "boolean"
|
|
350
351
|
}
|
|
351
352
|
}
|
|
352
|
-
},
|
|
353
|
+
}, eo = {
|
|
353
354
|
args: {
|
|
354
355
|
control: /* @__PURE__ */ s(S, {}),
|
|
355
356
|
checked: void 0,
|
|
@@ -364,15 +365,15 @@ const A = (o) => /* @__PURE__ */ s(N, { ...o }), Z = {
|
|
|
364
365
|
control: /* @__PURE__ */ s($, {}),
|
|
365
366
|
label: "Label"
|
|
366
367
|
}
|
|
367
|
-
},
|
|
368
|
+
}, ao = {
|
|
368
369
|
args: {
|
|
369
|
-
control: /* @__PURE__ */ s(
|
|
370
|
+
control: /* @__PURE__ */ s(v, {}),
|
|
370
371
|
label: "Label"
|
|
371
372
|
}
|
|
372
373
|
};
|
|
373
374
|
export {
|
|
374
|
-
|
|
375
|
+
eo as Checkbox,
|
|
375
376
|
to as Radio,
|
|
376
|
-
|
|
377
|
-
|
|
377
|
+
ao as Switch,
|
|
378
|
+
oo as default
|
|
378
379
|
};
|
|
@@ -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"),t=require("../../createSvgIcon--rEClVU7.cjs"),o=require("../Heading/Heading.cjs.js"),n=require("../../generateUtilityClasses-B_H9HEmg.cjs"),c=t.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"),s={title:"Components/Heading",component:o},r={args:{title:"Heading",iconColor:n.red,IconComponent:c}};exports.Default=r;exports.default=s;
|
|
@@ -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-C8nGcfF4.js";
|
|
3
3
|
import n from "../Heading/Heading.es.js";
|
|
4
|
-
import { r as c } from "../../
|
|
4
|
+
import { r as c } from "../../generateUtilityClasses-Bssl7BA_.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--rEClVU7.cjs"),l=require("../../IconButton-CJfzspZK.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-C8nGcfF4.js";
|
|
3
|
+
import { I as l } from "../../IconButton-CekuyD4r.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("../ImagePicker/ImagePicker.cjs.js"),a={title:"Components/ImagePicker",component:t,argTypes:{defaultLabel:{description:"Le contenu affiché comme label par défaut (ReactNode).",control:"text",table:{type:{summary:"ReactNode"},defaultValue:{summary:"<ImagePickerDefaultLabel />"}}},dragLabel:{description:"Texte affiché lorsque l'utilisateur fait glisser un fichier.",control:"text",table:{type:{summary:"ReactNode"},defaultValue:{summary:"<ImagePickerDefaultDragLabel />"}}},information:{description:"Informations supplémentaires affichées sous le label par défaut.",control:"text",table:{type:{summary:"string"}}},onFileChange:{description:"Callback déclenché lorsque l'utilisateur sélectionne ou supprime un fichier.",action:"file-changed",table:{type:{summary:"(file: File | null) => void"}}}}},
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../ImagePicker/ImagePicker.cjs.js"),a={title:"Components/ImagePicker",component:t,argTypes:{defaultLabel:{description:"Le contenu affiché comme label par défaut (ReactNode).",control:"text",table:{type:{summary:"ReactNode"},defaultValue:{summary:"<ImagePickerDefaultLabel />"}}},dragLabel:{description:"Texte affiché lorsque l'utilisateur fait glisser un fichier.",control:"text",table:{type:{summary:"ReactNode"},defaultValue:{summary:"<ImagePickerDefaultDragLabel />"}}},information:{description:"Informations supplémentaires affichées sous le label par défaut.",control:"text",table:{type:{summary:"string"}}},onFileChange:{description:"Callback déclenché lorsque l'utilisateur sélectionne ou supprime un fichier.",action:"file-changed",table:{type:{summary:"(file: File | null) => void"}}},initialFile:{description:"Ajouter une image initiale",control:"text",table:{type:{summary:"string | File"}}}}},i={args:{information:"SVG, PNG, JPG, GIF",onFileChange:e=>{console.log(e?"Image uplaodé":"Image supprimé")},width:"160px",height:"160px"}};exports.Default=i;exports.default=a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
1
|
+
import t from "../ImagePicker/ImagePicker.es.js";
|
|
2
|
+
const i = {
|
|
3
3
|
title: "Components/ImagePicker",
|
|
4
|
-
component:
|
|
4
|
+
component: t,
|
|
5
5
|
argTypes: {
|
|
6
6
|
defaultLabel: {
|
|
7
7
|
description: "Le contenu affiché comme label par défaut (ReactNode).",
|
|
@@ -32,9 +32,16 @@ const l = {
|
|
|
32
32
|
table: {
|
|
33
33
|
type: { summary: "(file: File | null) => void" }
|
|
34
34
|
}
|
|
35
|
+
},
|
|
36
|
+
initialFile: {
|
|
37
|
+
description: "Ajouter une image initiale",
|
|
38
|
+
control: "text",
|
|
39
|
+
table: {
|
|
40
|
+
type: { summary: "string | File" }
|
|
41
|
+
}
|
|
35
42
|
}
|
|
36
43
|
}
|
|
37
|
-
},
|
|
44
|
+
}, l = {
|
|
38
45
|
args: {
|
|
39
46
|
information: "SVG, PNG, JPG, GIF",
|
|
40
47
|
onFileChange: (e) => {
|
|
@@ -45,6 +52,6 @@ const l = {
|
|
|
45
52
|
}
|
|
46
53
|
};
|
|
47
54
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
55
|
+
l as Default,
|
|
56
|
+
i as default
|
|
50
57
|
};
|
|
@@ -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-CWczkFp0.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-Bsx8PA-q.cjs"),o=require("../../MenuItem-BZ_EVaBq.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 e } 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 d from "../Button/Button.es.js";
|
|
4
|
+
import { M as p } from "../../Menu-C7tKmcAh.js";
|
|
5
|
+
import { M as t } from "../../MenuItem-j8luVUcX.js";
|
|
6
|
+
const f = (c) => {
|
|
7
|
+
const [r, i] = m(null), o = !!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__ */ e(
|
|
12
|
+
d,
|
|
13
13
|
{
|
|
14
14
|
variant: "text",
|
|
15
15
|
id: "basic-button",
|
|
16
|
-
"aria-controls":
|
|
16
|
+
"aria-controls": o ? "basic-menu" : void 0,
|
|
17
17
|
"aria-haspopup": "true",
|
|
18
|
-
"aria-expanded":
|
|
18
|
+
"aria-expanded": o ? "true" : void 0,
|
|
19
19
|
onClick: l,
|
|
20
20
|
children: "Open menu"
|
|
21
21
|
}
|
|
22
22
|
),
|
|
23
23
|
/* @__PURE__ */ a(
|
|
24
|
-
|
|
24
|
+
p,
|
|
25
25
|
{
|
|
26
26
|
...c,
|
|
27
27
|
id: "basic-menu",
|
|
28
28
|
anchorEl: r,
|
|
29
|
-
open:
|
|
29
|
+
open: o,
|
|
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__ */ e(t, { onClick: n, children: "Profile" }),
|
|
36
|
+
/* @__PURE__ */ e(t, { onClick: n, children: "My account" }),
|
|
37
|
+
/* @__PURE__ */ e(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: f
|
|
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-Cr56xkCr.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-BG4Vk_Um.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"),g=require("../../FormLabel-D1uvEhsH.cjs"),F=require("react"),r=require("../../generateUtilityClasses-B_H9HEmg.cjs"),u=require("../../Radio-CVAEGXKi.cjs"),G=require("../../useControlled-Ysk4KqoX.cjs"),T=require("../../useForkRef-CTI33h-3.cjs"),w=require("../../useId-DNXtOFeX.cjs"),S=require("../../FormGroup-Y3P2AG0i.cjs"),L=require("../../DefaultPropsProvider-3KMGupjb.cjs"),p=require("../../FormControlLabel-Bb6Ul-qQ.cjs");function O(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const a=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,a.get?a:{enumerable:!0,get:()=>e[s]})}}return t.default=e,Object.freeze(t)}const l=O(F);function D(e){return r.generateUtilityClass("MuiRadioGroup",e)}r.generateUtilityClasses("MuiRadioGroup",["root","row","error"]);const M=e=>{const{classes:t,row:s,error:a}=e,i={root:["root",s&&"row",a&&"error"]};return L.composeClasses(i,D,t)},R=l.forwardRef(function(t,s){const{actions:a,children:i,className:y,defaultValue:C,name:j,onChange:c,value:h,...v}=t,d=l.useRef(null),x=M(t),[f,m]=G.useControlled({controlled:h,default:C,name:"RadioGroup"});l.useImperativeHandle(a,()=>({focus:()=>{let n=d.current.querySelector("input:not(:disabled):checked");n||(n=d.current.querySelector("input:not(:disabled)")),n&&n.focus()}}),[]);const P=T.useForkRef(s,d),b=w.useId(j),q=l.useMemo(()=>({name:b,onChange(n){m(n.target.value),c&&c(n,n.target.value)},value:f}),[b,c,m,f]);return o.jsx(u.RadioGroupContext.Provider,{value:q,children:o.jsx(S.FormGroup,{role:"radiogroup",ref:P,className:r.clsx(x.root,y),...v,children:i})})});process.env.NODE_ENV!=="production"&&(R.propTypes={children:r.PropTypes.node,className:r.PropTypes.string,defaultValue:r.PropTypes.any,name:r.PropTypes.string,onChange:r.PropTypes.func,value:r.PropTypes.any});const N=e=>o.jsxs(g.FormControl,{children:[o.jsx(g.FormLabel,{id:"radio-buttons-group-label",children:"Label"}),o.jsxs(R,{"aria-labelledby":"radio-buttons-group-label",defaultValue:"first",name:"radio-buttons-group",...e,children:[o.jsx(p.FormControlLabel,{value:"first",control:o.jsx(u.Radio,{}),label:"First"}),o.jsx(p.FormControlLabel,{value:"second",control:o.jsx(u.Radio,{}),label:"Second"}),o.jsx(p.FormControlLabel,{value:"third",control:o.jsx(u.Radio,{}),label:"Third"})]})]}),V={title:"Components/RadioGroup",component:N},_={args:{row:!1}},U={args:{row:!0}};exports.Default=_;exports.Row=U;exports.default=V;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as o, jsxs as g } from "react/jsx-runtime";
|
|
2
|
-
import { F as V, a as N } from "../../FormLabel-
|
|
2
|
+
import { F as V, a as N } from "../../FormLabel-CfR4bb21.js";
|
|
3
3
|
import * as s from "react";
|
|
4
|
-
import { I as P, H as S, G as U, P as t } from "../../
|
|
5
|
-
import { R as I, a as c } from "../../Radio-
|
|
4
|
+
import { I as P, H as S, G as U, P as t } from "../../generateUtilityClasses-Bssl7BA_.js";
|
|
5
|
+
import { R as I, a as c } from "../../Radio-DGhot3Cd.js";
|
|
6
6
|
import { u as L } from "../../useControlled-BYdyS7Pn.js";
|
|
7
7
|
import { u as M } from "../../useForkRef-C_4o__cU.js";
|
|
8
8
|
import { u as T } from "../../useId-CK6Kn3Tn.js";
|
|
9
|
-
import { F as j } from "../../FormGroup-
|
|
10
|
-
import { c as k } from "../../DefaultPropsProvider-
|
|
11
|
-
import { F as d } from "../../FormControlLabel-
|
|
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
12
|
function q(r) {
|
|
13
13
|
return S("MuiRadioGroup", r);
|
|
14
14
|
}
|
|
@@ -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-D1uvEhsH.cjs"),l=require("../../Select-CwAWNiiv.cjs"),t=require("../../MenuItem-BZ_EVaBq.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-CfR4bb21.js";
|
|
4
|
+
import { a as c, S as m } from "../../Select-DmssuG5M.js";
|
|
5
|
+
import { M as t } from "../../MenuItem-j8luVUcX.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("../../generateUtilityClasses-B_H9HEmg.cjs"),d=require("../../Tabs-KG4VWw-1.cjs"),P=require("../../DefaultPropsProvider-3KMGupjb.cjs"),M=require("../../useThemeProps-CdV_QwDl.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),f=l.createContext(null);process.env.NODE_ENV!=="production"&&(f.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(f.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(f)}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,T={...n},j=I(T),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:T,...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;
|