@cgi-learning-hub/ui 1.3.5 → 1.4.0-dev.1740589431
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Backdrop-DcDd6WZF.js → Backdrop-BctCVgLy.js} +79 -82
- package/dist/Backdrop-DWp3AktL.cjs +1 -0
- package/dist/{Box-mP2Th61z.cjs → Box-DYA49L7w.cjs} +1 -1
- package/dist/{Box-Byz2BwGf.js → Box-DgqaLb7j.js} +8 -8
- package/dist/Button-B7kOjNW1.js +696 -0
- package/dist/Button-UmeKHfcL.cjs +1 -0
- package/dist/ButtonBase-D6tfI-8D.cjs +74 -0
- package/dist/{ButtonBase-DAWDecOk.js → ButtonBase-IZ_QjbpE.js} +334 -334
- package/dist/CardContent-5bW4A4d2.cjs +1 -0
- package/dist/CardContent-F4-KcZH8.js +226 -0
- package/dist/{Checkbox-DYrDbdy1.cjs → Checkbox-DQgPXaym.cjs} +1 -1
- package/dist/{Checkbox-8Rhxpkjl.js → Checkbox-qUSjau0g.js} +26 -26
- package/dist/Chip-BTnuWGEU.cjs +1 -0
- package/dist/Chip-OpRIs-sL.js +522 -0
- package/dist/{CircularProgress-Kwlef5fX.js → CircularProgress-CQxzJquv.js} +11 -11
- package/dist/{CircularProgress-BByrCLjv.cjs → CircularProgress-cPXhiRlM.cjs} +4 -4
- package/dist/CloseRounded-BMEGLs8y.js +8 -0
- package/dist/CloseRounded-BRXBizmR.cjs +1 -0
- package/dist/{DatePicker-BS1OatwQ.js → DatePicker-C6MCYjpp.js} +3113 -3600
- package/dist/DatePicker-CTIqTlNQ.cjs +14 -0
- package/dist/DefaultPropsProvider-Cqcb4sws.js +303 -0
- package/dist/DefaultPropsProvider-wpBXjN8r.cjs +1 -0
- package/dist/Dialog-B1wnk5BT.cjs +1 -0
- package/dist/Dialog-CKS7yjT5.js +478 -0
- package/dist/{DialogContent-uc65XOEU.js → DialogContent-BzPaz5G8.js} +13 -13
- package/dist/{DialogContent-Dj_OjLZ6.cjs → DialogContent-DcZz4rBc.cjs} +1 -1
- package/dist/{DialogTitle-C8JOi-rq.js → DialogTitle-D3E_lDHD.js} +30 -30
- package/dist/{DialogTitle-BboPDaoB.cjs → DialogTitle-mr9xn4JZ.cjs} +1 -1
- package/dist/{Divider-KO-E6nU8.js → Divider-D-pZeQTm.js} +8 -8
- package/dist/{Divider-CcrM3lNn.cjs → Divider-D3hPb7s4.cjs} +1 -1
- package/dist/{FormLabel-CfR4bb21.js → FormLabel-3-CC-ZGw.js} +131 -133
- package/dist/FormLabel-BV7-a0i5.cjs +2 -0
- package/dist/{Grow-CQVPAYvp.js → Grow-DKgYCxiY.js} +46 -43
- package/dist/Grow-Z3KzFaK5.cjs +1 -0
- package/dist/{IconButton-CekuyD4r.js → IconButton-CCNUMz2l.js} +132 -64
- package/dist/IconButton-CVOPR4EM.cjs +2 -0
- package/dist/{InputAdornment-Cq0WhPxF.cjs → InputAdornment-CwFEJSXv.cjs} +1 -1
- package/dist/{InputAdornment-iU5YnveW.js → InputAdornment-DL8XIM8r.js} +15 -14
- package/dist/{InputBase-BJy3wwFB.js → InputBase-By7jMrFP.js} +221 -215
- package/dist/InputBase-Cejvjv1E.cjs +3 -0
- package/dist/Link-2ncpUcIp.cjs +1 -0
- package/dist/{Link-CoQuUM0t.js → Link-C_GPIs0q.js} +46 -46
- package/dist/{Menu-C7tKmcAh.js → Menu-BunOW0ot.js} +72 -73
- package/dist/Menu-Cngt8Va9.cjs +7 -0
- package/dist/{MenuItem-BZ_EVaBq.cjs → MenuItem-Bha8aBMr.cjs} +1 -1
- package/dist/{MenuItem-j8luVUcX.js → MenuItem-Cu3FTLl8.js} +20 -20
- package/dist/{Modal-brWBFdK7.js → Modal-DTJd7JJ6.js} +99 -98
- package/dist/Modal-u82Ss4h_.cjs +2 -0
- package/dist/{Paper-BG4Vk_Um.js → Paper-BiZq6EF2.js} +8 -8
- package/dist/{Paper-Cr56xkCr.cjs → Paper-EvOTlB_Q.cjs} +2 -2
- package/dist/{Popper-YT5WAMV-.cjs → Popper-BVYscbsI.cjs} +3 -3
- package/dist/{Popper-DFZ_gRev.js → Popper-DjwR55WH.js} +241 -243
- package/dist/{Portal-JEwcozmp.js → Portal-BByeByPq.js} +34 -39
- package/dist/Portal-DUHpWdY1.cjs +1 -0
- package/dist/Radio-CSl8GQNk.cjs +1 -0
- package/dist/Radio-DSRS-tjj.js +568 -0
- package/dist/RadioGroup-DL4hhZzK.cjs +1 -0
- package/dist/RadioGroup-cPdOWdYD.js +190 -0
- package/dist/{Select-DmssuG5M.js → Select-CZnKFG3o.js} +419 -401
- package/dist/Select-DZAzJA0y.cjs +3 -0
- package/dist/Stack-B82ckLGm.cjs +1 -0
- package/dist/{Stack-BzTJdRGj.js → Stack-hbAJHQhq.js} +29 -29
- package/dist/Switch-B9uT9-d0.js +330 -0
- package/dist/Switch-DWKHe4z_.cjs +1 -0
- package/dist/{SwitchBase-Dlth5_F7.js → SwitchBase-CDkmnGAP.js} +29 -29
- package/dist/{SwitchBase-DjIY_KWB.cjs → SwitchBase-CnA6TA2P.cjs} +1 -1
- package/dist/Tabs-AyJ_tKtV.cjs +4 -0
- package/dist/{Tabs-CYbeTnJk.js → Tabs-BYfDlOR9.js} +336 -337
- package/dist/{TextField-Cri5Gxa7.js → TextField-BKfXjPdH.js} +29 -27
- package/dist/TextField-CwcPgdgD.cjs +1 -0
- package/dist/ToggleButtonGroup-DIp0fcXW.cjs +140 -0
- package/dist/ToggleButtonGroup-sc2omtRp.js +10473 -0
- package/dist/{Tooltip-BhAHhzKz.js → Tooltip-B1NGvrJP.js} +14 -14
- package/dist/{Tooltip-DhDtvULK.cjs → Tooltip-oNmnF7Bc.cjs} +3 -3
- package/dist/{TransitionGroupContext-DMJLhY9-.js → TransitionGroupContext-DbLioz_6.js} +7 -7
- package/dist/TransitionGroupContext-Zt4NoR0u.cjs +1 -0
- package/dist/{Typography-DfRMDngd.cjs → Typography-DPij13XT.cjs} +1 -1
- package/dist/{Typography-DBwTr_ix.js → Typography-SIQ6eleU.js} +9 -9
- package/dist/{capitalize-CkF8kU4n.js → capitalize-3KLkrEtk.js} +1 -1
- package/dist/{capitalize-B3GG7Wn6.cjs → capitalize-CEByPz9F.cjs} +1 -1
- package/dist/components/Alert/Alert.es.js +13 -4
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.d.ts +1 -2
- package/dist/components/Button/Button.es.js +12 -325
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -2
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +12 -14
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.d.ts +2 -0
- package/dist/components/Dropzone/Dropzone.es.js +22 -19
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.cjs.js +1 -1
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +4 -3
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileIcon.cjs.js +1 -0
- package/dist/components/FileList/FileIcon.d.ts +3 -0
- package/dist/components/FileList/FileIcon.es.js +56 -0
- package/dist/components/FileList/FileInfosSeparator.cjs.js +1 -0
- package/dist/components/FileList/FileInfosSeparator.d.ts +1 -0
- package/dist/components/FileList/FileInfosSeparator.es.js +14 -0
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.d.ts +5 -3
- package/dist/components/FileList/FileList.es.js +22 -15
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.d.ts +9 -5
- package/dist/components/FileList/FileListItem.es.js +118 -24
- package/dist/components/FileList/utils.cjs.js +1 -0
- package/dist/components/FileList/utils.d.ts +2 -0
- package/dist/components/FileList/utils.es.js +13 -0
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +79 -54
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.d.ts +1 -2
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +1 -2
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +12 -10
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.d.ts +2 -2
- package/dist/components/QueryError/QueryError.es.js +14 -14
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -0
- package/dist/components/ResourceCard/ResourceCard.d.ts +24 -0
- package/dist/components/ResourceCard/ResourceCard.es.js +128 -0
- package/dist/components/ResourceCard/index.cjs.js +1 -0
- package/dist/components/ResourceCard/index.d.ts +2 -0
- package/dist/components/ResourceCard/index.es.js +4 -0
- package/dist/components/ResourceCard/style.cjs.js +1 -0
- package/dist/components/ResourceCard/style.es.js +125 -0
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +1 -2
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.es.js +348 -294
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +17 -168
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +5 -5
- package/dist/components/stories/Chip.stories.cjs.js +1 -0
- package/dist/components/stories/Chip.stories.d.ts +10 -0
- package/dist/components/stories/Chip.stories.es.js +77 -0
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +5 -5
- package/dist/components/stories/FileList.stories.cjs.js +8 -1
- package/dist/components/stories/FileList.stories.es.js +144 -20
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +16 -340
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +16 -16
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +19 -115
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -0
- package/dist/components/stories/ResourceCard.stories.d.ts +9 -0
- package/dist/components/stories/ResourceCard.stories.es.js +141 -0
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +14 -14
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +3 -3
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/createSvgIcon-DJMYlO0S.cjs +1 -0
- package/dist/{createSvgIcon-C8nGcfF4.js → createSvgIcon-K2ZAdASa.js} +57 -55
- package/dist/{dividerClasses-CCAY3Pnr.cjs → dividerClasses-Dq1bCO_s.cjs} +1 -1
- package/dist/{dividerClasses-nh2-hkQB.js → dividerClasses-afsB3Yy1.js} +3 -3
- package/dist/{elementTypeAcceptingRef-D-5kcohU.js → elementTypeAcceptingRef-5ESWTE79.js} +1 -1
- package/dist/{elementTypeAcceptingRef-DZsNbuLU.cjs → elementTypeAcceptingRef-BjgxF5Bq.cjs} +1 -1
- package/dist/{extendSxProp-apyK-EBz.cjs → extendSxProp-D-oLUmkR.cjs} +1 -1
- package/dist/{extendSxProp-C2ff0oGc.js → extendSxProp-dlShX1xL.js} +3 -3
- package/dist/{fr-Bjufn3RW.js → fr-B3qrCNcK.js} +18 -18
- package/dist/generateUtilityClasses-De8NU9_E.cjs +75 -0
- package/dist/generateUtilityClasses-DotvgSDH.js +3297 -0
- package/dist/hooks/lazySvgImport.d.ts +1 -1
- package/dist/{index-CwvpOCso.js → index-B1u7G33_.js} +29 -29
- package/dist/{index-ChM1Ett8.cjs → index-CVFzneYe.cjs} +1 -1
- package/dist/{index-BCnPLuqJ.js → index-DTTmpNYg.js} +22 -22
- package/dist/index-T-RSwkXB.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +348 -294
- package/dist/{memoTheme-D7Fyh_3C.js → memoTheme-CqmIydD-.js} +1 -1
- package/dist/{memoTheme-Bdg0Y_2O.cjs → memoTheme-DrjvJtTP.cjs} +1 -1
- package/dist/{refType-CoaxQOPt.cjs → refType-BkobP3bK.cjs} +1 -1
- package/dist/{refType-DKYKROQk.js → refType-C210ipRY.js} +1 -1
- package/dist/{mergeSlotProps-tUJEcwVu.js → resolveComponentProps-CPmhKPdH.js} +7 -7
- package/dist/resolveComponentProps-PuUs-PsA.cjs +1 -0
- package/dist/unsupportedProp-Bn6XWqwH.cjs +1 -0
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/useSlot-CC2AaOjN.cjs +1 -0
- package/dist/useSlot-GZu0V5wJ.js +48 -0
- package/dist/{useSlotProps-B31YQlzb.js → useSlotProps-C9tsxDNg.js} +11 -11
- package/dist/useSlotProps-CvOxvhyy.cjs +1 -0
- package/dist/{useTheme-Dukx-__T.cjs → useTheme-7RGQRN-h.cjs} +1 -1
- package/dist/useTheme-BA7tMglY.js +11 -0
- package/dist/{useTheme-Cy5kyKJF.cjs → useTheme-CIf2b2wK.cjs} +1 -1
- package/dist/{useTheme-_xyy-wul.js → useTheme-tdgDVH1p.js} +1 -1
- package/dist/{useThemeProps-u_ESzK2f.cjs → useThemeProps-AnS1uVAy.cjs} +1 -1
- package/dist/{useThemeProps-BySkSe-M.js → useThemeProps-BQlPXzo3.js} +2 -2
- package/dist/useThemeProps-BTfGtNci.js +17 -0
- package/dist/useThemeProps-DxBEHys5.cjs +1 -0
- package/dist/utils-CFI_-FMV.cjs +1 -0
- package/dist/{utils-C6c4fj7D.js → utils-CXhh35wP.js} +41 -41
- package/package.json +9 -9
- package/dist/Backdrop-CvufxHMY.cjs +0 -1
- package/dist/Button-BH9MUvmz.cjs +0 -1
- package/dist/Button-BnNYfQ3E.js +0 -484
- package/dist/ButtonBase-BXtyQVDC.cjs +0 -74
- package/dist/Card-AJG0TUOx.js +0 -74
- package/dist/Card-NqCXQteq.cjs +0 -1
- package/dist/DatePicker-7-4p3Vtj.cjs +0 -14
- package/dist/DefaultPropsProvider-3KMGupjb.cjs +0 -17
- package/dist/DefaultPropsProvider-CvJPQJmL.js +0 -454
- package/dist/Delete-BkZN7Xu5.js +0 -8
- package/dist/Delete-D1EiKoL5.cjs +0 -1
- package/dist/Dialog-D_lS4J_M.js +0 -415
- package/dist/Dialog-yOrNcHbG.cjs +0 -1
- package/dist/FormControlLabel-Bb6Ul-qQ.cjs +0 -1
- package/dist/FormControlLabel-BmrKQtQA.js +0 -262
- package/dist/FormGroup-CbczEc6e.js +0 -95
- package/dist/FormGroup-Y3P2AG0i.cjs +0 -1
- package/dist/FormLabel-D1uvEhsH.cjs +0 -2
- package/dist/Grow-CUBJs6WD.cjs +0 -1
- package/dist/IconButton-CJfzspZK.cjs +0 -2
- package/dist/InputBase-s1fk8TB4.cjs +0 -3
- package/dist/Link-CWczkFp0.cjs +0 -1
- package/dist/Menu-Bsx8PA-q.cjs +0 -7
- package/dist/Modal-DImrEpYJ.cjs +0 -2
- package/dist/Portal-DF0RKOcD.cjs +0 -1
- package/dist/Radio-CVAEGXKi.cjs +0 -1
- package/dist/Radio-DGhot3Cd.js +0 -313
- package/dist/Select-CwAWNiiv.cjs +0 -3
- package/dist/Stack-Yq6rb7iK.cjs +0 -1
- package/dist/TableSortLabel-BsgRD4k4.js +0 -6328
- package/dist/TableSortLabel-D0N3e3cP.cjs +0 -98
- package/dist/Tabs-KG4VWw-1.cjs +0 -4
- package/dist/TextField-BI9KVqjC.cjs +0 -1
- package/dist/TransitionGroupContext-DbXD5xqS.cjs +0 -1
- package/dist/createSvgIcon--rEClVU7.cjs +0 -1
- package/dist/generateUtilityClasses-B_H9HEmg.cjs +0 -59
- package/dist/generateUtilityClasses-Bssl7BA_.js +0 -3145
- package/dist/index-Aa73Kpym.cjs +0 -1
- package/dist/index-Cw0GDedk.cjs +0 -17
- package/dist/index-DXD5J5Eu.js +0 -186
- package/dist/mergeSlotProps-DuV-LTW7.cjs +0 -1
- package/dist/useSlot-BTpHG6jf.js +0 -50
- package/dist/useSlot-CByalpSD.cjs +0 -1
- package/dist/useSlotProps-BVSAQTNl.cjs +0 -1
- package/dist/useTheme-DyaNKf4e.js +0 -11
- package/dist/useThemeProps-CdV_QwDl.cjs +0 -1
- package/dist/useThemeProps-CwEQ4bv2.js +0 -24
- package/dist/utils-vmyQ2IaS.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),t=require("../../createSvgIcon
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),t=require("../../createSvgIcon-DJMYlO0S.cjs"),n=require("../Button/Button.cjs.js"),o=t.createSvgIcon(e.jsx("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonAdd"),r=t.createSvgIcon(e.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),c={title:"Components/Button",component:n},a={args:{children:"Enregistrer",color:"primary",disabled:!1,startIcon:e.jsx(r,{}),variant:"contained",onClick:()=>alert("Alert")}},s={args:{children:"Ajouter un utilisateur",color:"secondary",disabled:!1,startIcon:e.jsx(o,{}),variant:"outlined",onClick:()=>alert("Alert")}},l={args:{children:"Annuler",color:"secondary",disabled:!1,variant:"text",onClick:()=>alert("Alert")}};exports.Contained=a;exports.Outlined=s;exports.Text=l;exports.default=c;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { c as o } from "../../createSvgIcon-
|
|
2
|
+
import { c as o } from "../../createSvgIcon-K2ZAdASa.js";
|
|
3
3
|
import e from "../Button/Button.es.js";
|
|
4
4
|
const n = o(/* @__PURE__ */ t("path", {
|
|
5
5
|
d: "M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),r=require("../Button/Button.cjs.js"),n=require("../../CardContent-5bW4A4d2.cjs"),t=require("../../Typography-DPij13XT.cjs"),a=o=>e.jsxs(n.Card,{sx:{minWidth:275},...o,children:[e.jsxs(n.CardContent,{children:[e.jsx(t.Typography,{gutterBottom:!0,sx:{color:"text.secondary",fontSize:14},children:"Word of the Day"}),e.jsx(t.Typography,{variant:"h5",component:"div",children:"be-nev-o-lent"}),e.jsx(t.Typography,{sx:{color:"text.secondary",mb:1.5},children:"adjective"}),e.jsxs(t.Typography,{variant:"body2",children:["well meaning and kindly.",e.jsx("br",{}),'"a benevolent smile"']})]}),e.jsx(n.CardActions,{children:e.jsx(r,{variant:"text",size:"small",children:"Learn More"})})]}),s={title:"Components/Card",component:a,argTypes:{elevation:{control:"number"},square:{control:"boolean"},variant:{control:"select",options:["elevation","outlined"]}}},i={args:{elevation:1,square:!1,variant:"elevation"}};exports.Default=i;exports.default=s;
|
|
@@ -1,173 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { C as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
f("MuiCardActions", ["root", "spacing"]);
|
|
12
|
-
const j = (t) => {
|
|
13
|
-
const {
|
|
14
|
-
classes: e,
|
|
15
|
-
disableSpacing: s
|
|
16
|
-
} = t;
|
|
17
|
-
return b({
|
|
18
|
-
root: ["root", !s && "spacing"]
|
|
19
|
-
}, N, e);
|
|
20
|
-
}, M = g("div", {
|
|
21
|
-
name: "MuiCardActions",
|
|
22
|
-
slot: "Root",
|
|
23
|
-
overridesResolver: (t, e) => {
|
|
24
|
-
const {
|
|
25
|
-
ownerState: s
|
|
26
|
-
} = t;
|
|
27
|
-
return [e.root, !s.disableSpacing && e.spacing];
|
|
28
|
-
}
|
|
29
|
-
})({
|
|
30
|
-
display: "flex",
|
|
31
|
-
alignItems: "center",
|
|
32
|
-
padding: 8,
|
|
33
|
-
variants: [{
|
|
34
|
-
props: {
|
|
35
|
-
disableSpacing: !1
|
|
36
|
-
},
|
|
37
|
-
style: {
|
|
38
|
-
"& > :not(style) ~ :not(style)": {
|
|
39
|
-
marginLeft: 8
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}]
|
|
43
|
-
}), h = /* @__PURE__ */ u.forwardRef(function(e, s) {
|
|
44
|
-
const r = v({
|
|
45
|
-
props: e,
|
|
46
|
-
name: "MuiCardActions"
|
|
47
|
-
}), {
|
|
48
|
-
disableSpacing: l = !1,
|
|
49
|
-
className: i,
|
|
50
|
-
...d
|
|
51
|
-
} = r, a = {
|
|
52
|
-
...r,
|
|
53
|
-
disableSpacing: l
|
|
54
|
-
}, p = j(a);
|
|
55
|
-
return /* @__PURE__ */ n(M, {
|
|
56
|
-
className: y(p.root, i),
|
|
57
|
-
ownerState: a,
|
|
58
|
-
ref: s,
|
|
59
|
-
...d
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
process.env.NODE_ENV !== "production" && (h.propTypes = {
|
|
63
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
64
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
65
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
66
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
67
|
-
/**
|
|
68
|
-
* The content of the component.
|
|
69
|
-
*/
|
|
70
|
-
children: o.node,
|
|
71
|
-
/**
|
|
72
|
-
* Override or extend the styles applied to the component.
|
|
73
|
-
*/
|
|
74
|
-
classes: o.object,
|
|
75
|
-
/**
|
|
76
|
-
* @ignore
|
|
77
|
-
*/
|
|
78
|
-
className: o.string,
|
|
79
|
-
/**
|
|
80
|
-
* If `true`, the actions do not have additional margin.
|
|
81
|
-
* @default false
|
|
82
|
-
*/
|
|
83
|
-
disableSpacing: o.bool,
|
|
84
|
-
/**
|
|
85
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
86
|
-
*/
|
|
87
|
-
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
88
|
-
});
|
|
89
|
-
function R(t) {
|
|
90
|
-
return C("MuiCardContent", t);
|
|
91
|
-
}
|
|
92
|
-
f("MuiCardContent", ["root"]);
|
|
93
|
-
const w = (t) => {
|
|
94
|
-
const {
|
|
95
|
-
classes: e
|
|
96
|
-
} = t;
|
|
97
|
-
return b({
|
|
98
|
-
root: ["root"]
|
|
99
|
-
}, R, e);
|
|
100
|
-
}, A = g("div", {
|
|
101
|
-
name: "MuiCardContent",
|
|
102
|
-
slot: "Root",
|
|
103
|
-
overridesResolver: (t, e) => e.root
|
|
104
|
-
})({
|
|
105
|
-
padding: 16,
|
|
106
|
-
"&:last-child": {
|
|
107
|
-
paddingBottom: 24
|
|
108
|
-
}
|
|
109
|
-
}), x = /* @__PURE__ */ u.forwardRef(function(e, s) {
|
|
110
|
-
const r = v({
|
|
111
|
-
props: e,
|
|
112
|
-
name: "MuiCardContent"
|
|
113
|
-
}), {
|
|
114
|
-
className: l,
|
|
115
|
-
component: i = "div",
|
|
116
|
-
...d
|
|
117
|
-
} = r, a = {
|
|
118
|
-
...r,
|
|
119
|
-
component: i
|
|
120
|
-
}, p = w(a);
|
|
121
|
-
return /* @__PURE__ */ n(A, {
|
|
122
|
-
as: i,
|
|
123
|
-
className: y(p.root, l),
|
|
124
|
-
ownerState: a,
|
|
125
|
-
ref: s,
|
|
126
|
-
...d
|
|
127
|
-
});
|
|
128
|
-
});
|
|
129
|
-
process.env.NODE_ENV !== "production" && (x.propTypes = {
|
|
130
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
131
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
132
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
133
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
134
|
-
/**
|
|
135
|
-
* The content of the component.
|
|
136
|
-
*/
|
|
137
|
-
children: o.node,
|
|
138
|
-
/**
|
|
139
|
-
* Override or extend the styles applied to the component.
|
|
140
|
-
*/
|
|
141
|
-
classes: o.object,
|
|
142
|
-
/**
|
|
143
|
-
* @ignore
|
|
144
|
-
*/
|
|
145
|
-
className: o.string,
|
|
146
|
-
/**
|
|
147
|
-
* The component used for the root node.
|
|
148
|
-
* Either a string to use a HTML element or a component.
|
|
149
|
-
*/
|
|
150
|
-
component: o.elementType,
|
|
151
|
-
/**
|
|
152
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
153
|
-
*/
|
|
154
|
-
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
155
|
-
});
|
|
156
|
-
const O = (t) => /* @__PURE__ */ m(T, { sx: { minWidth: 275 }, ...t, children: [
|
|
157
|
-
/* @__PURE__ */ m(x, { children: [
|
|
158
|
-
/* @__PURE__ */ n(c, { gutterBottom: !0, sx: { color: "text.secondary", fontSize: 14 }, children: "Word of the Day" }),
|
|
159
|
-
/* @__PURE__ */ n(c, { variant: "h5", component: "div", children: "be-nev-o-lent" }),
|
|
160
|
-
/* @__PURE__ */ n(c, { sx: { color: "text.secondary", mb: 1.5 }, children: "adjective" }),
|
|
161
|
-
/* @__PURE__ */ m(c, { variant: "body2", children: [
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import r from "../Button/Button.es.js";
|
|
3
|
+
import { C as a, b as i, a as l } from "../../CardContent-F4-KcZH8.js";
|
|
4
|
+
import { T as t } from "../../Typography-SIQ6eleU.js";
|
|
5
|
+
const s = (n) => /* @__PURE__ */ o(a, { sx: { minWidth: 275 }, ...n, children: [
|
|
6
|
+
/* @__PURE__ */ o(i, { children: [
|
|
7
|
+
/* @__PURE__ */ e(t, { gutterBottom: !0, sx: { color: "text.secondary", fontSize: 14 }, children: "Word of the Day" }),
|
|
8
|
+
/* @__PURE__ */ e(t, { variant: "h5", component: "div", children: "be-nev-o-lent" }),
|
|
9
|
+
/* @__PURE__ */ e(t, { sx: { color: "text.secondary", mb: 1.5 }, children: "adjective" }),
|
|
10
|
+
/* @__PURE__ */ o(t, { variant: "body2", children: [
|
|
162
11
|
"well meaning and kindly.",
|
|
163
|
-
/* @__PURE__ */
|
|
12
|
+
/* @__PURE__ */ e("br", {}),
|
|
164
13
|
'"a benevolent smile"'
|
|
165
14
|
] })
|
|
166
15
|
] }),
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
] }),
|
|
16
|
+
/* @__PURE__ */ e(l, { children: /* @__PURE__ */ e(r, { variant: "text", size: "small", children: "Learn More" }) })
|
|
17
|
+
] }), h = {
|
|
169
18
|
title: "Components/Card",
|
|
170
|
-
component:
|
|
19
|
+
component: s,
|
|
171
20
|
argTypes: {
|
|
172
21
|
elevation: {
|
|
173
22
|
control: "number"
|
|
@@ -180,7 +29,7 @@ const O = (t) => /* @__PURE__ */ m(T, { sx: { minWidth: 275 }, ...t, children: [
|
|
|
180
29
|
options: ["elevation", "outlined"]
|
|
181
30
|
}
|
|
182
31
|
}
|
|
183
|
-
},
|
|
32
|
+
}, p = {
|
|
184
33
|
args: {
|
|
185
34
|
elevation: 1,
|
|
186
35
|
square: !1,
|
|
@@ -188,6 +37,6 @@ const O = (t) => /* @__PURE__ */ m(T, { sx: { minWidth: 275 }, ...t, children: [
|
|
|
188
37
|
}
|
|
189
38
|
};
|
|
190
39
|
export {
|
|
191
|
-
|
|
192
|
-
|
|
40
|
+
p as Default,
|
|
41
|
+
h as default
|
|
193
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),s=require("../../Checkbox-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),s=require("../../Checkbox-DQgPXaym.cjs"),r=e=>o.jsx(s.Checkbox,{...e}),c={title:"Components/Checkbox",component:r,argTypes:{checked:{control:"boolean"},color:{control:"select",options:["primary","secondary","success","error","info","warning"]},disabled:{control:"boolean"},disableRipple:{control:"boolean"},required:{control:"boolean"},size:{control:"select",options:["medium","small"]}}},l={args:{checked:void 0,color:"primary",disabled:!1,disableRipple:!1,required:!1,size:"medium"}},t={args:{checked:!0}},a={args:{disabled:!0}},i={args:{checked:!0,disabled:!0}};exports.Checked=t;exports.Default=l;exports.Disabled=a;exports.DisabledChecked=i;exports.default=c;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { C as r } from "../../Checkbox-
|
|
2
|
+
import { C as r } from "../../Checkbox-qUSjau0g.js";
|
|
3
3
|
const s = (e) => /* @__PURE__ */ o(r, { ...e }), t = {
|
|
4
4
|
title: "Components/Checkbox",
|
|
5
5
|
component: s,
|
|
@@ -38,11 +38,11 @@ const s = (e) => /* @__PURE__ */ o(r, { ...e }), t = {
|
|
|
38
38
|
args: {
|
|
39
39
|
checked: !0
|
|
40
40
|
}
|
|
41
|
-
},
|
|
41
|
+
}, i = {
|
|
42
42
|
args: {
|
|
43
43
|
disabled: !0
|
|
44
44
|
}
|
|
45
|
-
},
|
|
45
|
+
}, d = {
|
|
46
46
|
args: {
|
|
47
47
|
checked: !0,
|
|
48
48
|
disabled: !0
|
|
@@ -51,7 +51,7 @@ const s = (e) => /* @__PURE__ */ o(r, { ...e }), t = {
|
|
|
51
51
|
export {
|
|
52
52
|
n as Checked,
|
|
53
53
|
a as Default,
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
i as Disabled,
|
|
55
|
+
d as DisabledChecked,
|
|
56
56
|
t as default
|
|
57
57
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Chip-BTnuWGEU.cjs"),l={title:"Components/Chip",component:e.Chip,argTypes:{clickable:{control:"boolean"},color:{control:"select",options:["default","primary","secondary","error","info","success","warning"]},disabled:{control:"boolean"},label:{control:"text"},size:{control:"radio",options:["medium","small"]},skipFocusWhenDisabled:{control:"boolean"},variant:{control:"radio",options:["filled","outlined"]}}},o={args:{clickable:!1,color:"default",disabled:!1,label:"Label",size:"medium",skipFocusWhenDisabled:!1,variant:"filled"}},a={args:{label:"Label",variant:"outlined"}},r={args:{label:"Label",color:"primary"}},t={args:{label:"Label",color:"secondary"}},i={args:{label:"Label",disabled:!0}};exports.Default=o;exports.Disabled=i;exports.Outlined=a;exports.Primary=r;exports.Secondary=t;exports.default=l;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as Chip } from '@mui/material/Chip';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: Meta<typeof Chip>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Chip>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Outlined: Story;
|
|
8
|
+
export declare const Primary: Story;
|
|
9
|
+
export declare const Secondary: Story;
|
|
10
|
+
export declare const Disabled: Story;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { C as l } from "../../Chip-OpRIs-sL.js";
|
|
2
|
+
const e = {
|
|
3
|
+
title: "Components/Chip",
|
|
4
|
+
component: l,
|
|
5
|
+
argTypes: {
|
|
6
|
+
clickable: {
|
|
7
|
+
control: "boolean"
|
|
8
|
+
},
|
|
9
|
+
color: {
|
|
10
|
+
control: "select",
|
|
11
|
+
options: [
|
|
12
|
+
"default",
|
|
13
|
+
"primary",
|
|
14
|
+
"secondary",
|
|
15
|
+
"error",
|
|
16
|
+
"info",
|
|
17
|
+
"success",
|
|
18
|
+
"warning"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
disabled: {
|
|
22
|
+
control: "boolean"
|
|
23
|
+
},
|
|
24
|
+
label: {
|
|
25
|
+
control: "text"
|
|
26
|
+
},
|
|
27
|
+
size: {
|
|
28
|
+
control: "radio",
|
|
29
|
+
options: ["medium", "small"]
|
|
30
|
+
},
|
|
31
|
+
skipFocusWhenDisabled: {
|
|
32
|
+
control: "boolean"
|
|
33
|
+
},
|
|
34
|
+
variant: {
|
|
35
|
+
control: "radio",
|
|
36
|
+
options: ["filled", "outlined"]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}, a = {
|
|
40
|
+
args: {
|
|
41
|
+
clickable: !1,
|
|
42
|
+
color: "default",
|
|
43
|
+
disabled: !1,
|
|
44
|
+
label: "Label",
|
|
45
|
+
size: "medium",
|
|
46
|
+
skipFocusWhenDisabled: !1,
|
|
47
|
+
variant: "filled"
|
|
48
|
+
}
|
|
49
|
+
}, s = {
|
|
50
|
+
args: {
|
|
51
|
+
label: "Label",
|
|
52
|
+
variant: "outlined"
|
|
53
|
+
}
|
|
54
|
+
}, r = {
|
|
55
|
+
args: {
|
|
56
|
+
label: "Label",
|
|
57
|
+
color: "primary"
|
|
58
|
+
}
|
|
59
|
+
}, n = {
|
|
60
|
+
args: {
|
|
61
|
+
label: "Label",
|
|
62
|
+
color: "secondary"
|
|
63
|
+
}
|
|
64
|
+
}, t = {
|
|
65
|
+
args: {
|
|
66
|
+
label: "Label",
|
|
67
|
+
disabled: !0
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
export {
|
|
71
|
+
a as Default,
|
|
72
|
+
t as Disabled,
|
|
73
|
+
s as Outlined,
|
|
74
|
+
r as Primary,
|
|
75
|
+
n as Secondary,
|
|
76
|
+
e as default
|
|
77
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../DatePicker-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../DatePicker-CTIqTlNQ.cjs"),t={title:"Components/DatePicker",component:e.DatePicker},a={args:{adapterLocale:"fr"}};exports.Default=a;exports.default=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),c=require("react"),o=require("../Button/Button.cjs.js"),u=require("../Dialog/Dialog.cjs.js"),n=require("../../DialogTitle-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),c=require("react"),o=require("../Button/Button.cjs.js"),u=require("../Dialog/Dialog.cjs.js"),n=require("../../DialogTitle-mr9xn4JZ.cjs"),l=require("../../DialogContent-DcZz4rBc.cjs"),d=a=>{const[s,t]=c.useState(!1),r=()=>t(!0),i=()=>t(!1);return e.jsxs(e.Fragment,{children:[e.jsx(o,{variant:"outlined",onClick:r,children:"Open dialog"}),e.jsxs(u,{...a,open:s,onClose:i,children:[e.jsx(n.DialogTitle,{children:"Dialog title"}),e.jsx(l.DialogContent,{children:e.jsxs(n.DialogContentText,{children:["Dialog content text",e.jsx("br",{}),e.jsx("br",{}),"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."]})}),e.jsxs(l.DialogActions,{children:[e.jsx(o,{variant:"text",onClick:i,children:"Cancel"}),e.jsx(o,{variant:"contained",onClick:()=>!0,children:"Save"})]})]})]})},m={title:"Components/Dialog",component:d,parameters:{docs:{description:{component:"This example is made with DialogTitle, DialogContent, DialogContentText and DialogActions but the dialog children are entirely up to you."}}},argTypes:{disableEscapeKeyDown:{control:"boolean"},fullScreen:{control:"boolean"},fullWidth:{control:"boolean"},maxWidth:{control:"select",options:["xs","sm","md","lg","xl",!1]},showCloseButton:{control:"boolean"}}},p={args:{disableEscapeKeyDown:!1,fullScreen:!1,fullWidth:!1,maxWidth:"sm",showCloseButton:!0}};exports.Default=p;exports.default=m;
|
|
@@ -2,8 +2,8 @@ import { jsxs as o, Fragment as s, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as c } from "react";
|
|
3
3
|
import t from "../Button/Button.es.js";
|
|
4
4
|
import u from "../Dialog/Dialog.es.js";
|
|
5
|
-
import { a as d, D as m } from "../../DialogTitle-
|
|
6
|
-
import { a as p, D as g } from "../../DialogContent-
|
|
5
|
+
import { a as d, D as m } from "../../DialogTitle-D3E_lDHD.js";
|
|
6
|
+
import { a as p, D as g } from "../../DialogContent-BzPaz5G8.js";
|
|
7
7
|
const f = (l) => {
|
|
8
8
|
const [a, i] = c(!1), r = () => i(!0), n = () => i(!1);
|
|
9
9
|
return /* @__PURE__ */ o(s, { children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Divider-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Divider-D3hPb7s4.cjs"),t={title:"Components/Divider",component:e.Divider,argTypes:{absolute:{control:"boolean"},children:{control:"text"},flexItem:{control:"boolean"},orientation:{control:"select",options:["horizontal","vertical"]},textAlign:{control:"select",options:["center","left","right"]},variant:{control:"select",options:["fullWidth","inset","middle"]}}},o={args:{absolute:!1,children:void 0,flexItem:!1,orientation:"horizontal",textAlign:"center",variant:"fullWidth"}};exports.Default=o;exports.default=t;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as t } from "../../Divider-
|
|
2
|
-
const
|
|
1
|
+
import { D as t } from "../../Divider-D-pZeQTm.js";
|
|
2
|
+
const e = {
|
|
3
3
|
title: "Components/Divider",
|
|
4
4
|
component: t,
|
|
5
5
|
argTypes: {
|
|
@@ -25,7 +25,7 @@ const o = {
|
|
|
25
25
|
options: ["fullWidth", "inset", "middle"]
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
},
|
|
28
|
+
}, l = {
|
|
29
29
|
args: {
|
|
30
30
|
absolute: !1,
|
|
31
31
|
children: void 0,
|
|
@@ -36,6 +36,6 @@ const o = {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
export {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
l as Default,
|
|
40
|
+
e as default
|
|
41
41
|
};
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../FileList/FileList.cjs.js");require("../FileList/FileListItem.cjs.js");const l={title:"Components/FileList",component:o,argTypes:{files:{description:"The list of files to display.",control:"object",table:{type:{summary:"(T extends CustomFile)[]",detail:`interface CustomFile {
|
|
2
|
+
name: string;
|
|
3
|
+
size: number;
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
isDeletable?: boolean;
|
|
6
|
+
isDownloadable?: boolean;
|
|
7
|
+
ownerName?: string;
|
|
8
|
+
}`}}},onDelete:{description:"Facultative callback used for deleting a file. Withtout this callback, the delete button will not be displayed.",action:"deleted",table:{type:{summary:"(file: T) => void | undefined"}}},onClick:{description:"Facultative callback when a file is clicked. Without this callback, the file will not be clickable.",action:"clicked",table:{type:{summary:"(file: T) => void | undefined"}}},onDownload:{description:"Facultative callback when a file is downloaded. Without this callback, the download button will not be displayed.",action:"downloaded",table:{type:{summary:"(file: T) => void | undefined"}}}}},a=[{name:"file1 looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong.pdf",size:237482,isLoading:!1,isDeletable:!0,isDownloadable:!0,ownerName:"Alice Smith"},{name:"file2.svg",size:5423,isLoading:!0,isDeletable:!1,isDownloadable:!0},{name:"file3.mp4",size:6548764,isLoading:!1,isDeletable:!0,isDownloadable:!1,ownerName:"John Doe"},{name:"file4.docx",size:18456,isLoading:!0,isDeletable:!0,isDownloadable:!1},{name:"file5.gif",size:43954,isLoading:!1,isDeletable:!1,isDownloadable:!0},{name:"file6.zip",size:234723,isLoading:!0,isDeletable:!1,isDownloadable:!1},{name:"file7.png",size:32e4,isLoading:!1,isDeletable:!0,isDownloadable:!0,ownerName:"Chris Wilson"},{name:"file8.jpg",size:98923,isLoading:!0,isDeletable:!0,isDownloadable:!0,ownerName:"Laura Martinez"},{name:"file9.txt",size:14982,isLoading:!1,isDeletable:!0,isDownloadable:!1,ownerName:"David Moore"},{name:"file10.mp3",size:2930294,isLoading:!0,isDeletable:!1,isDownloadable:!1,ownerName:"Rachel Taylor"},{name:"file11.xlsx",size:11234,isLoading:!1,isDeletable:!0,isDownloadable:!0,ownerName:"James White"},{name:"file12.rar",size:134723,isLoading:!0,isDeletable:!1,isDownloadable:!0,ownerName:"Sophia Harris"}],i={args:{files:a,onDelete:e=>alert("delete : "+e.name),onClick:e=>alert("click : "+e.name),onDownload:e=>alert("download : "+e.name)}};exports.Default=i;exports.default=l;
|
|
@@ -1,26 +1,150 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "
|
|
3
|
-
const
|
|
1
|
+
import o from "../FileList/FileList.es.js";
|
|
2
|
+
import "../FileList/FileListItem.es.js";
|
|
3
|
+
const t = {
|
|
4
4
|
title: "Components/FileList",
|
|
5
|
-
component:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
5
|
+
component: o,
|
|
6
|
+
argTypes: {
|
|
7
|
+
files: {
|
|
8
|
+
description: "The list of files to display.",
|
|
9
|
+
control: "object",
|
|
10
|
+
table: {
|
|
11
|
+
type: {
|
|
12
|
+
summary: "(T extends CustomFile)[]",
|
|
13
|
+
detail: `interface CustomFile {
|
|
14
|
+
name: string;
|
|
15
|
+
size: number;
|
|
16
|
+
isLoading?: boolean;
|
|
17
|
+
isDeletable?: boolean;
|
|
18
|
+
isDownloadable?: boolean;
|
|
19
|
+
ownerName?: string;
|
|
20
|
+
}`
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
onDelete: {
|
|
25
|
+
description: "Facultative callback used for deleting a file. Withtout this callback, the delete button will not be displayed.",
|
|
26
|
+
action: "deleted",
|
|
27
|
+
table: {
|
|
28
|
+
type: { summary: "(file: T) => void | undefined" }
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
onClick: {
|
|
32
|
+
description: "Facultative callback when a file is clicked. Without this callback, the file will not be clickable.",
|
|
33
|
+
action: "clicked",
|
|
34
|
+
table: {
|
|
35
|
+
type: { summary: "(file: T) => void | undefined" }
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
onDownload: {
|
|
39
|
+
description: "Facultative callback when a file is downloaded. Without this callback, the download button will not be displayed.",
|
|
40
|
+
action: "downloaded",
|
|
41
|
+
table: {
|
|
42
|
+
type: { summary: "(file: T) => void | undefined" }
|
|
18
43
|
}
|
|
19
|
-
|
|
20
|
-
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}, a = [
|
|
47
|
+
{
|
|
48
|
+
name: "file1 looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong.pdf",
|
|
49
|
+
size: 237482,
|
|
50
|
+
isLoading: !1,
|
|
51
|
+
isDeletable: !0,
|
|
52
|
+
isDownloadable: !0,
|
|
53
|
+
ownerName: "Alice Smith"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: "file2.svg",
|
|
57
|
+
size: 5423,
|
|
58
|
+
isLoading: !0,
|
|
59
|
+
isDeletable: !1,
|
|
60
|
+
isDownloadable: !0
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: "file3.mp4",
|
|
64
|
+
size: 6548764,
|
|
65
|
+
isLoading: !1,
|
|
66
|
+
isDeletable: !0,
|
|
67
|
+
isDownloadable: !1,
|
|
68
|
+
ownerName: "John Doe"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: "file4.docx",
|
|
72
|
+
size: 18456,
|
|
73
|
+
isLoading: !0,
|
|
74
|
+
isDeletable: !0,
|
|
75
|
+
isDownloadable: !1
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "file5.gif",
|
|
79
|
+
size: 43954,
|
|
80
|
+
isLoading: !1,
|
|
81
|
+
isDeletable: !1,
|
|
82
|
+
isDownloadable: !0
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "file6.zip",
|
|
86
|
+
size: 234723,
|
|
87
|
+
isLoading: !0,
|
|
88
|
+
isDeletable: !1,
|
|
89
|
+
isDownloadable: !1
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: "file7.png",
|
|
93
|
+
size: 32e4,
|
|
94
|
+
isLoading: !1,
|
|
95
|
+
isDeletable: !0,
|
|
96
|
+
isDownloadable: !0,
|
|
97
|
+
ownerName: "Chris Wilson"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: "file8.jpg",
|
|
101
|
+
size: 98923,
|
|
102
|
+
isLoading: !0,
|
|
103
|
+
isDeletable: !0,
|
|
104
|
+
isDownloadable: !0,
|
|
105
|
+
ownerName: "Laura Martinez"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: "file9.txt",
|
|
109
|
+
size: 14982,
|
|
110
|
+
isLoading: !1,
|
|
111
|
+
isDeletable: !0,
|
|
112
|
+
isDownloadable: !1,
|
|
113
|
+
ownerName: "David Moore"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: "file10.mp3",
|
|
117
|
+
size: 2930294,
|
|
118
|
+
isLoading: !0,
|
|
119
|
+
isDeletable: !1,
|
|
120
|
+
isDownloadable: !1,
|
|
121
|
+
ownerName: "Rachel Taylor"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: "file11.xlsx",
|
|
125
|
+
size: 11234,
|
|
126
|
+
isLoading: !1,
|
|
127
|
+
isDeletable: !0,
|
|
128
|
+
isDownloadable: !0,
|
|
129
|
+
ownerName: "James White"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: "file12.rar",
|
|
133
|
+
size: 134723,
|
|
134
|
+
isLoading: !0,
|
|
135
|
+
isDeletable: !1,
|
|
136
|
+
isDownloadable: !0,
|
|
137
|
+
ownerName: "Sophia Harris"
|
|
138
|
+
}
|
|
139
|
+
], n = {
|
|
140
|
+
args: {
|
|
141
|
+
files: a,
|
|
142
|
+
onDelete: (e) => alert("delete : " + e.name),
|
|
143
|
+
onClick: (e) => alert("click : " + e.name),
|
|
144
|
+
onDownload: (e) => alert("download : " + e.name)
|
|
21
145
|
}
|
|
22
146
|
};
|
|
23
147
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
148
|
+
n as Default,
|
|
149
|
+
t as default
|
|
26
150
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),e=require("../../Radio-CSl8GQNk.cjs"),l=require("../../Checkbox-DQgPXaym.cjs"),r=require("../../Switch-DWKHe4z_.cjs"),n=t=>o.jsx(e.FormControlLabel,{...t}),a={title:"Components/FormControlLabel",component:n,argTypes:{control:{control:"object"},disabled:{control:"boolean"},disableTypography:{control:"boolean"},label:{control:"object"},labelPlacement:{control:"select",options:["bottom","end","start","top"]},required:{control:"boolean"}}},c={args:{control:o.jsx(l.Checkbox,{}),checked:void 0,disabled:void 0,disableTypography:void 0,label:"Label",labelPlacement:"end",required:void 0}},s={args:{control:o.jsx(e.Radio,{}),label:"Label"}},i={args:{control:o.jsx(r.Switch,{}),label:"Label"}};exports.Checkbox=c;exports.Radio=s;exports.Switch=i;exports.default=a;
|