@cgi-learning-hub/ui 1.9.0 → 1.10.0
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/index.cjs.js +63417 -1
- package/dist/index.d.ts +773 -1
- package/dist/index.es.js +63394 -417
- package/dist/ui.css +151 -0
- package/package.json +26 -24
- package/dist/Alert-BH_3hKCB.cjs +0 -1
- package/dist/Alert-BeVYzSS-.js +0 -94
- package/dist/Alert-BoYBWOXe.cjs +0 -1
- package/dist/Alert-CEu3llDi.js +0 -369
- package/dist/Autocomplete-BKpavKFW.cjs +0 -6
- package/dist/Autocomplete-DBZYn4YL.js +0 -1881
- package/dist/Backdrop-BvL371G3.js +0 -360
- package/dist/Backdrop-qOBrabpf.cjs +0 -1
- package/dist/Badge-2Kgbx-Cs.js +0 -466
- package/dist/Badge-DXl0Da36.cjs +0 -1
- package/dist/Box-BaZ7KlAc.js +0 -59
- package/dist/Box-CYQlQqRB.cjs +0 -1
- package/dist/Button-BP-QmmUu.cjs +0 -1
- package/dist/Button-C1mKNW-c.js +0 -698
- package/dist/ButtonBase-C2jRC_V7.js +0 -883
- package/dist/ButtonBase-DSJojbNE.cjs +0 -74
- package/dist/CardContent-DVcUynuH.cjs +0 -1
- package/dist/CardContent-kIapWv4T.js +0 -225
- package/dist/Checkbox-DhhuvKO5.cjs +0 -1
- package/dist/Checkbox-RxHWtafR.js +0 -271
- package/dist/Chip-DgGmi9yn.js +0 -574
- package/dist/Chip-n1kY-Dsh.cjs +0 -1
- package/dist/CircularProgress-BOm4zz7e.cjs +0 -28
- package/dist/CircularProgress-CLq0Rl-1.js +0 -253
- package/dist/Close-DR9m6hv3.cjs +0 -1
- package/dist/Close-vu-MZYNA.js +0 -9
- package/dist/CloseRounded-Cpp6nWQi.cjs +0 -1
- package/dist/CloseRounded-DF05lCUu.js +0 -8
- package/dist/CustomTreeItem-AecanDDg.js +0 -2046
- package/dist/CustomTreeItem-BBMp0k4i.cjs +0 -41
- package/dist/DatePicker-Cd-Aj-F8.js +0 -10758
- package/dist/DatePicker-Dj7U52Mk.cjs +0 -16
- package/dist/DefaultPropsProvider-BrmlvPWg.js +0 -312
- package/dist/DefaultPropsProvider-C1g4BXET.cjs +0 -1
- package/dist/Delete-C36W48MB.cjs +0 -1
- package/dist/Delete-DXUljXzP.js +0 -8
- package/dist/Dialog-C2HYr67H.cjs +0 -1
- package/dist/Dialog-D__8rwpw.js +0 -469
- package/dist/DialogContent-MPwmUJQp.js +0 -195
- package/dist/DialogContent-lup2v_ab.cjs +0 -1
- package/dist/DialogTitle-B8jOk7ZE.cjs +0 -1
- package/dist/DialogTitle-Dly5D3Ud.js +0 -134
- package/dist/Divider-BN12gMv9.js +0 -297
- package/dist/Divider-wisA5Qp_.cjs +0 -1
- package/dist/Folder-BSZMyA2L.js +0 -8
- package/dist/Folder-aAI_w_uF.cjs +0 -1
- package/dist/FormLabel-ByYWZh7M.cjs +0 -2
- package/dist/FormLabel-DtxJI2CU.js +0 -408
- package/dist/Grid-C0LY-MbT.js +0 -419
- package/dist/Grid-CPXE25PR.cjs +0 -2
- package/dist/Grow-6zwoqUfO.cjs +0 -1
- package/dist/Grow-CeGwnQpw.js +0 -197
- package/dist/IconButton-BTN16gZi.cjs +0 -2
- package/dist/IconButton-DBjiNqOa.js +0 -299
- package/dist/InputAdornment-C1r1YutO.cjs +0 -1
- package/dist/InputAdornment-DuR35FtU.js +0 -173
- package/dist/InputBase-CxknnWV4.cjs +0 -4
- package/dist/InputBase-D5UJOJBu.js +0 -797
- package/dist/Link-T11NCxGd.cjs +0 -1
- package/dist/Link-hWCqsQiI.js +0 -281
- package/dist/List-CmJ1jCss.js +0 -131
- package/dist/List-eQ4D0MvJ.cjs +0 -1
- package/dist/ListItem-CgWgbZ_g.cjs +0 -1
- package/dist/ListItem-onoPfwb4.js +0 -423
- package/dist/ListItemText-B-dySXgz.cjs +0 -1
- package/dist/ListItemText-BjhXxIIV.js +0 -441
- package/dist/Menu-D7B383z4.cjs +0 -7
- package/dist/Menu-DGvAkF5F.js +0 -911
- package/dist/MenuItem-Cusmy5t2.js +0 -268
- package/dist/MenuItem-D-4xzo-S.cjs +0 -1
- package/dist/Modal-DB9K8sJI.cjs +0 -2
- package/dist/Modal-DtjScKxh.js +0 -744
- package/dist/MoreVert-BwfUF9pO.cjs +0 -1
- package/dist/MoreVert-woCQ0dNf.js +0 -8
- package/dist/Paper-CZXfHfN_.js +0 -158
- package/dist/Paper-DcVuAxq3.cjs +0 -2
- package/dist/Popper-BwuGO_Si.js +0 -1407
- package/dist/Popper-D5Cs38W_.cjs +0 -4
- package/dist/Portal-Cmv45gpL.cjs +0 -1
- package/dist/Portal-PkRJuFYN.js +0 -85
- package/dist/Radio-DiyDpiVL.js +0 -617
- package/dist/Radio-DzKwkI68.cjs +0 -1
- package/dist/RadioGroup-BlkHQVRF.cjs +0 -1
- package/dist/RadioGroup-CjUaFqjJ.js +0 -191
- package/dist/Select-BxH16ruJ.js +0 -2648
- package/dist/Select-CSQfbogA.cjs +0 -3
- package/dist/Stack-ChvZzNqc.cjs +0 -1
- package/dist/Stack-pMJEpL7k.js +0 -173
- package/dist/Stepper-BsfN7O-W.cjs +0 -1
- package/dist/Stepper-DyH4sgY5.js +0 -966
- package/dist/Switch-BgZUmsKc.js +0 -392
- package/dist/Switch-Dr2jgPGV.cjs +0 -1
- package/dist/SwitchBase-BP_I-APE.cjs +0 -1
- package/dist/SwitchBase-BWz31Ed6.js +0 -319
- package/dist/Tab-Bksf_S4K.js +0 -1454
- package/dist/Tab-D2mI5G0L.cjs +0 -4
- package/dist/TextField-C9AnzUpZ.cjs +0 -1
- package/dist/TextField-Ctx4aW6-.js +0 -560
- package/dist/ToggleButtonGroup-CBw2I124.cjs +0 -138
- package/dist/ToggleButtonGroup-DtjRqNbI.js +0 -9091
- package/dist/Tooltip-C5AffX17.js +0 -722
- package/dist/Tooltip-CUm8vKGq.cjs +0 -4
- package/dist/TransitionGroupContext-DbLioz_6.js +0 -24
- package/dist/TransitionGroupContext-Zt4NoR0u.cjs +0 -1
- package/dist/Typography-Cr-aIusw.js +0 -261
- package/dist/Typography-DHjq4GzQ.cjs +0 -1
- package/dist/assets/Loader.css +0 -1
- package/dist/assets/LoaderBackdrop.css +0 -1
- package/dist/capitalize-3OjkeP9i.cjs +0 -1
- package/dist/capitalize-BHEX83JQ.js +0 -9
- package/dist/chainPropTypes-CEUi6Jb4.cjs +0 -1
- package/dist/chainPropTypes-D9lkm76m.js +0 -8
- package/dist/client-error-CHkavqXs.cjs +0 -1
- package/dist/client-error-D0Ng5oOn.js +0 -393
- package/dist/components/ActionBar/ActionBar.cjs.js +0 -1
- package/dist/components/ActionBar/ActionBar.d.ts +0 -3
- package/dist/components/ActionBar/ActionBar.es.js +0 -63
- package/dist/components/ActionBar/index.cjs.js +0 -1
- package/dist/components/ActionBar/index.d.ts +0 -2
- package/dist/components/ActionBar/index.es.js +0 -4
- package/dist/components/ActionBar/style.cjs.js +0 -1
- package/dist/components/ActionBar/style.es.js +0 -61
- package/dist/components/ActionBar/types.cjs.js +0 -1
- package/dist/components/ActionBar/types.d.ts +0 -17
- package/dist/components/ActionBar/types.es.js +0 -1
- package/dist/components/Alert/Alert.cjs.js +0 -1
- package/dist/components/Alert/Alert.d.ts +0 -6
- package/dist/components/Alert/Alert.es.js +0 -8
- package/dist/components/Alert/index.cjs.js +0 -1
- package/dist/components/Alert/index.d.ts +0 -2
- package/dist/components/Alert/index.es.js +0 -4
- package/dist/components/Button/Button.cjs.js +0 -1
- package/dist/components/Button/Button.d.ts +0 -3
- package/dist/components/Button/Button.es.js +0 -44
- package/dist/components/Button/index.cjs.js +0 -1
- package/dist/components/Button/index.d.ts +0 -2
- package/dist/components/Button/index.es.js +0 -4
- package/dist/components/ButtonGroup/ButtonGroup.cjs.js +0 -1
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +0 -3
- package/dist/components/ButtonGroup/ButtonGroup.es.js +0 -38
- package/dist/components/ButtonGroup/index.cjs.js +0 -1
- package/dist/components/ButtonGroup/index.d.ts +0 -2
- package/dist/components/ButtonGroup/index.es.js +0 -4
- package/dist/components/ButtonGroup/style.cjs.js +0 -1
- package/dist/components/ButtonGroup/style.es.js +0 -29
- package/dist/components/ButtonGroup/types.cjs.js +0 -1
- package/dist/components/ButtonGroup/types.d.ts +0 -22
- package/dist/components/ButtonGroup/types.es.js +0 -1
- package/dist/components/ColorPicker/ColorPicker.cjs.js +0 -27
- package/dist/components/ColorPicker/ColorPicker.d.ts +0 -4
- package/dist/components/ColorPicker/ColorPicker.es.js +0 -7960
- package/dist/components/ColorPicker/ColorPickerIcon.cjs.js +0 -1
- package/dist/components/ColorPicker/ColorPickerIcon.d.ts +0 -5
- package/dist/components/ColorPicker/ColorPickerIcon.es.js +0 -58
- package/dist/components/ColorPicker/index.cjs.js +0 -1
- package/dist/components/ColorPicker/index.d.ts +0 -3
- package/dist/components/ColorPicker/index.es.js +0 -4
- package/dist/components/ColorPicker/styles.cjs.js +0 -1
- package/dist/components/ColorPicker/styles.es.js +0 -28
- package/dist/components/ColorPicker/types.cjs.js +0 -1
- package/dist/components/ColorPicker/types.d.ts +0 -19
- package/dist/components/ColorPicker/types.es.js +0 -1
- package/dist/components/DatePicker/DatePicker.cjs.js +0 -1
- package/dist/components/DatePicker/DatePicker.d.ts +0 -6
- package/dist/components/DatePicker/DatePicker.es.js +0 -5
- package/dist/components/DatePicker/index.cjs.js +0 -1
- package/dist/components/DatePicker/index.d.ts +0 -2
- package/dist/components/DatePicker/index.es.js +0 -4
- package/dist/components/Dialog/Dialog.cjs.js +0 -1
- package/dist/components/Dialog/Dialog.d.ts +0 -6
- package/dist/components/Dialog/Dialog.es.js +0 -31
- package/dist/components/Dialog/index.cjs.js +0 -1
- package/dist/components/Dialog/index.d.ts +0 -2
- package/dist/components/Dialog/index.es.js +0 -4
- package/dist/components/Dropzone/Dropzone.cjs.js +0 -1
- package/dist/components/Dropzone/Dropzone.d.ts +0 -12
- package/dist/components/Dropzone/Dropzone.es.js +0 -55
- package/dist/components/Dropzone/index.cjs.js +0 -1
- package/dist/components/Dropzone/index.d.ts +0 -2
- package/dist/components/Dropzone/index.es.js +0 -4
- package/dist/components/Dropzone/types.cjs.js +0 -1
- package/dist/components/Dropzone/types.d.ts +0 -8
- package/dist/components/Dropzone/types.es.js +0 -1
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.cjs.js +0 -1
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.d.ts +0 -9
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +0 -45
- package/dist/components/EllipsisWithTooltip/index.cjs.js +0 -1
- package/dist/components/EllipsisWithTooltip/index.d.ts +0 -2
- package/dist/components/EllipsisWithTooltip/index.es.js +0 -4
- package/dist/components/EmptyState/EmptyState.cjs.js +0 -1
- package/dist/components/EmptyState/EmptyState.d.ts +0 -22
- package/dist/components/EmptyState/EmptyState.es.js +0 -34
- package/dist/components/EmptyState/index.cjs.js +0 -1
- package/dist/components/EmptyState/index.d.ts +0 -2
- package/dist/components/EmptyState/index.es.js +0 -4
- package/dist/components/FileList/FileIcon.cjs.js +0 -1
- package/dist/components/FileList/FileIcon.d.ts +0 -3
- package/dist/components/FileList/FileIcon.es.js +0 -56
- package/dist/components/FileList/FileInfosSeparator.cjs.js +0 -1
- package/dist/components/FileList/FileInfosSeparator.d.ts +0 -1
- package/dist/components/FileList/FileInfosSeparator.es.js +0 -14
- package/dist/components/FileList/FileList.cjs.js +0 -1
- package/dist/components/FileList/FileList.d.ts +0 -9
- package/dist/components/FileList/FileList.es.js +0 -24
- package/dist/components/FileList/FileListItem.cjs.js +0 -1
- package/dist/components/FileList/FileListItem.d.ts +0 -16
- package/dist/components/FileList/FileListItem.es.js +0 -122
- package/dist/components/FileList/index.cjs.js +0 -1
- package/dist/components/FileList/index.d.ts +0 -4
- package/dist/components/FileList/index.es.js +0 -6
- package/dist/components/FileList/utils.cjs.js +0 -1
- package/dist/components/FileList/utils.d.ts +0 -2
- package/dist/components/FileList/utils.es.js +0 -13
- package/dist/components/FolderCard/FolderCard.cjs.js +0 -1
- package/dist/components/FolderCard/FolderCard.d.ts +0 -12
- package/dist/components/FolderCard/FolderCard.es.js +0 -88
- package/dist/components/FolderCard/index.cjs.js +0 -1
- package/dist/components/FolderCard/index.d.ts +0 -2
- package/dist/components/FolderCard/index.es.js +0 -4
- package/dist/components/FolderCard/styles.cjs.js +0 -1
- package/dist/components/FolderCard/styles.d.ts +0 -24
- package/dist/components/FolderCard/styles.es.js +0 -27
- package/dist/components/FolderCard/types.cjs.js +0 -1
- package/dist/components/FolderCard/types.d.ts +0 -3
- package/dist/components/FolderCard/types.es.js +0 -14
- package/dist/components/Heading/Heading.cjs.js +0 -1
- package/dist/components/Heading/Heading.d.ts +0 -14
- package/dist/components/Heading/Heading.es.js +0 -39
- package/dist/components/Heading/index.cjs.js +0 -1
- package/dist/components/Heading/index.d.ts +0 -2
- package/dist/components/Heading/index.es.js +0 -4
- package/dist/components/ImagePicker/ImagePicker.cjs.js +0 -1
- package/dist/components/ImagePicker/ImagePicker.d.ts +0 -13
- package/dist/components/ImagePicker/ImagePicker.es.js +0 -203
- package/dist/components/ImagePicker/index.cjs.js +0 -1
- package/dist/components/ImagePicker/index.d.ts +0 -2
- package/dist/components/ImagePicker/index.es.js +0 -4
- package/dist/components/Loader/Loader.cjs.js +0 -1
- package/dist/components/Loader/Loader.d.ts +0 -3
- package/dist/components/Loader/Loader.es.js +0 -11
- package/dist/components/Loader/index.cjs.js +0 -1
- package/dist/components/Loader/index.d.ts +0 -2
- package/dist/components/Loader/index.es.js +0 -4
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +0 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +0 -3
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +0 -12
- package/dist/components/LoaderBackdrop/index.cjs.js +0 -1
- package/dist/components/LoaderBackdrop/index.d.ts +0 -2
- package/dist/components/LoaderBackdrop/index.es.js +0 -4
- package/dist/components/PasswordInput/PasswordInput.cjs.js +0 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts +0 -5
- package/dist/components/PasswordInput/PasswordInput.es.js +0 -39
- package/dist/components/PasswordInput/index.cjs.js +0 -1
- package/dist/components/PasswordInput/index.d.ts +0 -2
- package/dist/components/PasswordInput/index.es.js +0 -4
- package/dist/components/QueryError/QueryError.cjs.js +0 -1
- package/dist/components/QueryError/QueryError.d.ts +0 -8
- package/dist/components/QueryError/QueryError.es.js +0 -46
- package/dist/components/QueryError/helpers.cjs.js +0 -1
- package/dist/components/QueryError/helpers.d.ts +0 -11
- package/dist/components/QueryError/helpers.es.js +0 -10
- package/dist/components/QueryError/index.cjs.js +0 -1
- package/dist/components/QueryError/index.d.ts +0 -2
- package/dist/components/QueryError/index.es.js +0 -4
- package/dist/components/ResourceCard/ResourceCard.cjs.js +0 -1
- package/dist/components/ResourceCard/ResourceCard.d.ts +0 -25
- package/dist/components/ResourceCard/ResourceCard.es.js +0 -128
- package/dist/components/ResourceCard/index.cjs.js +0 -1
- package/dist/components/ResourceCard/index.d.ts +0 -2
- package/dist/components/ResourceCard/index.es.js +0 -4
- package/dist/components/ResourceCard/style.cjs.js +0 -1
- package/dist/components/ResourceCard/style.es.js +0 -130
- package/dist/components/SearchInput/SearchInput.cjs.js +0 -1
- package/dist/components/SearchInput/SearchInput.d.ts +0 -4
- package/dist/components/SearchInput/SearchInput.es.js +0 -38
- package/dist/components/SearchInput/index.cjs.js +0 -1
- package/dist/components/SearchInput/index.d.ts +0 -2
- package/dist/components/SearchInput/index.es.js +0 -4
- package/dist/components/TreeView/TreeView.cjs.js +0 -5
- package/dist/components/TreeView/TreeView.d.ts +0 -4
- package/dist/components/TreeView/TreeView.es.js +0 -1663
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +0 -1
- package/dist/components/TreeView/components/CustomTreeItem.d.ts +0 -6
- package/dist/components/TreeView/components/CustomTreeItem.es.js +0 -9
- package/dist/components/TreeView/index.cjs.js +0 -1
- package/dist/components/TreeView/index.d.ts +0 -2
- package/dist/components/TreeView/index.es.js +0 -6
- package/dist/components/TreeView/style.cjs.js +0 -1
- package/dist/components/TreeView/style.es.js +0 -35
- package/dist/components/TreeView/types.cjs.js +0 -1
- package/dist/components/TreeView/types.d.ts +0 -45
- package/dist/components/TreeView/types.es.js +0 -4
- package/dist/components/TreeView/utils.cjs.js +0 -1
- package/dist/components/TreeView/utils.d.ts +0 -6
- package/dist/components/TreeView/utils.es.js +0 -50
- package/dist/components/index.cjs.js +0 -1
- package/dist/components/index.d.ts +0 -197
- package/dist/components/index.es.js +0 -419
- package/dist/components/stories/ActionBar.stories.cjs.js +0 -1
- package/dist/components/stories/ActionBar.stories.d.ts +0 -11
- package/dist/components/stories/ActionBar.stories.es.js +0 -206
- package/dist/components/stories/Alert.stories.cjs.js +0 -1
- package/dist/components/stories/Alert.stories.d.ts +0 -9
- package/dist/components/stories/Alert.stories.es.js +0 -32
- package/dist/components/stories/Autocomplete.stories.cjs.js +0 -3
- package/dist/components/stories/Autocomplete.stories.d.ts +0 -6
- package/dist/components/stories/Autocomplete.stories.es.js +0 -62
- package/dist/components/stories/Badge.stories.cjs.js +0 -1
- package/dist/components/stories/Badge.stories.d.ts +0 -17
- package/dist/components/stories/Badge.stories.es.js +0 -188
- package/dist/components/stories/Button.stories.cjs.js +0 -1
- package/dist/components/stories/Button.stories.d.ts +0 -8
- package/dist/components/stories/Button.stories.es.js +0 -61
- package/dist/components/stories/ButtonGroup.stories.cjs.js +0 -153
- package/dist/components/stories/ButtonGroup.stories.d.ts +0 -17
- package/dist/components/stories/ButtonGroup.stories.es.js +0 -1296
- package/dist/components/stories/Card.stories.cjs.js +0 -1
- package/dist/components/stories/Card.stories.d.ts +0 -7
- package/dist/components/stories/Card.stories.es.js +0 -42
- package/dist/components/stories/Checkbox.stories.cjs.js +0 -1
- package/dist/components/stories/Checkbox.stories.d.ts +0 -10
- package/dist/components/stories/Checkbox.stories.es.js +0 -57
- package/dist/components/stories/Chip.stories.cjs.js +0 -1
- package/dist/components/stories/Chip.stories.d.ts +0 -10
- package/dist/components/stories/Chip.stories.es.js +0 -77
- package/dist/components/stories/ColoPicker.stories.cjs.js +0 -1
- package/dist/components/stories/ColoPicker.stories.d.ts +0 -6
- package/dist/components/stories/ColoPicker.stories.es.js +0 -23
- package/dist/components/stories/DatePicker.stories.cjs.js +0 -1
- package/dist/components/stories/DatePicker.stories.d.ts +0 -6
- package/dist/components/stories/DatePicker.stories.es.js +0 -13
- package/dist/components/stories/Dialog.stories.cjs.js +0 -1
- package/dist/components/stories/Dialog.stories.d.ts +0 -7
- package/dist/components/stories/Dialog.stories.es.js +0 -65
- package/dist/components/stories/Divider.stories.cjs.js +0 -1
- package/dist/components/stories/Divider.stories.d.ts +0 -6
- package/dist/components/stories/Divider.stories.es.js +0 -41
- package/dist/components/stories/Dropzone.stories.cjs.js +0 -1
- package/dist/components/stories/Dropzone.stories.d.ts +0 -6
- package/dist/components/stories/Dropzone.stories.es.js +0 -14
- package/dist/components/stories/EllipsisWithTooltip.stories.cjs.js +0 -1
- package/dist/components/stories/EllipsisWithTooltip.stories.d.ts +0 -6
- package/dist/components/stories/EllipsisWithTooltip.stories.es.js +0 -36
- package/dist/components/stories/EmptyState.stories.cjs.js +0 -1
- package/dist/components/stories/EmptyState.stories.d.ts +0 -6
- package/dist/components/stories/EmptyState.stories.es.js +0 -30
- package/dist/components/stories/FileList.stories.cjs.js +0 -8
- package/dist/components/stories/FileList.stories.d.ts +0 -6
- package/dist/components/stories/FileList.stories.es.js +0 -150
- package/dist/components/stories/FolderCard.stories.cjs.js +0 -1
- package/dist/components/stories/FolderCard.stories.d.ts +0 -7
- package/dist/components/stories/FolderCard.stories.es.js +0 -71
- package/dist/components/stories/FormControlLabel.stories.cjs.js +0 -1
- package/dist/components/stories/FormControlLabel.stories.d.ts +0 -9
- package/dist/components/stories/FormControlLabel.stories.es.js +0 -55
- package/dist/components/stories/Heading.stories.cjs.js +0 -1
- package/dist/components/stories/Heading.stories.d.ts +0 -6
- package/dist/components/stories/Heading.stories.es.js +0 -20
- package/dist/components/stories/IconButton.stories.cjs.js +0 -1
- package/dist/components/stories/IconButton.stories.d.ts +0 -6
- package/dist/components/stories/IconButton.stories.es.js +0 -55
- package/dist/components/stories/ImagePicker.stories.cjs.js +0 -1
- package/dist/components/stories/ImagePicker.stories.d.ts +0 -6
- package/dist/components/stories/ImagePicker.stories.es.js +0 -57
- package/dist/components/stories/Link.stories.cjs.js +0 -1
- package/dist/components/stories/Link.stories.d.ts +0 -7
- package/dist/components/stories/Link.stories.es.js +0 -43
- package/dist/components/stories/Loader.stories.cjs.js +0 -1
- package/dist/components/stories/Loader.stories.d.ts +0 -6
- package/dist/components/stories/Loader.stories.es.js +0 -11
- package/dist/components/stories/LoaderBackdrop.stories.cjs.js +0 -1
- package/dist/components/stories/LoaderBackdrop.stories.d.ts +0 -6
- package/dist/components/stories/LoaderBackdrop.stories.es.js +0 -11
- package/dist/components/stories/Menu.stories.cjs.js +0 -1
- package/dist/components/stories/Menu.stories.d.ts +0 -7
- package/dist/components/stories/Menu.stories.es.js +0 -51
- package/dist/components/stories/Paper.stories.cjs.js +0 -1
- package/dist/components/stories/Paper.stories.d.ts +0 -7
- package/dist/components/stories/Paper.stories.es.js +0 -28
- package/dist/components/stories/PasswordInput.stories.cjs.js +0 -1
- package/dist/components/stories/PasswordInput.stories.d.ts +0 -6
- package/dist/components/stories/PasswordInput.stories.es.js +0 -13
- package/dist/components/stories/RadioGroup.stories.cjs.js +0 -1
- package/dist/components/stories/RadioGroup.stories.d.ts +0 -8
- package/dist/components/stories/RadioGroup.stories.es.js +0 -37
- package/dist/components/stories/ResourceCard.stories.cjs.js +0 -1
- package/dist/components/stories/ResourceCard.stories.d.ts +0 -9
- package/dist/components/stories/ResourceCard.stories.es.js +0 -141
- package/dist/components/stories/SearchInput.stories.cjs.js +0 -1
- package/dist/components/stories/SearchInput.stories.d.ts +0 -6
- package/dist/components/stories/SearchInput.stories.es.js +0 -13
- package/dist/components/stories/Select.stories.cjs.js +0 -1
- package/dist/components/stories/Select.stories.d.ts +0 -10
- package/dist/components/stories/Select.stories.es.js +0 -52
- package/dist/components/stories/Stepper.stories.cjs.js +0 -1
- package/dist/components/stories/Stepper.stories.d.ts +0 -7
- package/dist/components/stories/Stepper.stories.es.js +0 -161
- package/dist/components/stories/TabList.stories.cjs.js +0 -1
- package/dist/components/stories/TabList.stories.d.ts +0 -7
- package/dist/components/stories/TabList.stories.es.js +0 -73
- package/dist/components/stories/TextField.stories.cjs.js +0 -1
- package/dist/components/stories/TextField.stories.d.ts +0 -10
- package/dist/components/stories/TextField.stories.es.js +0 -69
- package/dist/components/stories/Tooltip.stories.cjs.js +0 -1
- package/dist/components/stories/Tooltip.stories.d.ts +0 -7
- package/dist/components/stories/Tooltip.stories.es.js +0 -46
- package/dist/components/stories/TreeView.stories.cjs.js +0 -69
- package/dist/components/stories/TreeView.stories.d.ts +0 -15
- package/dist/components/stories/TreeView.stories.es.js +0 -1036
- package/dist/components/stories/Typography.stories.cjs.js +0 -1
- package/dist/components/stories/Typography.stories.d.ts +0 -6
- package/dist/components/stories/Typography.stories.es.js +0 -65
- package/dist/composeClasses-BskurlZX.js +0 -51
- package/dist/composeClasses-vN5Almps.cjs +0 -1
- package/dist/createChainedFunction-C0nujS3O.js +0 -9
- package/dist/createChainedFunction-CJmlQuW8.cjs +0 -1
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
- package/dist/createSimplePaletteValueFilter-PTK3TAhW.cjs +0 -1
- package/dist/createSvgIcon-CcWpa9Le.cjs +0 -1
- package/dist/createSvgIcon-DFIM5PqN.js +0 -254
- package/dist/debounce-46wSf_lW.js +0 -15
- package/dist/debounce-DpCj7ugL.cjs +0 -1
- package/dist/dividerClasses-BEzQ_reA.js +0 -9
- package/dist/dividerClasses-BpVbhp8e.cjs +0 -1
- package/dist/elementAcceptingRef-CZLfau9O.js +0 -31
- package/dist/elementAcceptingRef-CuMilXz3.cjs +0 -1
- package/dist/elementTypeAcceptingRef-vRb2iI4O.js +0 -23
- package/dist/elementTypeAcceptingRef-vjR5jGLx.cjs +0 -1
- package/dist/error-CRNeivL7.js +0 -5
- package/dist/error-Dk3o6ber.cjs +0 -1
- package/dist/extendSxProp-DGsHTtAe.js +0 -37
- package/dist/extendSxProp-Dwd9vpYv.cjs +0 -1
- package/dist/formControlState-CuX6WjAX.cjs +0 -1
- package/dist/formControlState-vgaj2ksH.js +0 -10
- package/dist/generateUtilityClasses-B_xKAflz.js +0 -2703
- package/dist/generateUtilityClasses-CENS22bI.cjs +0 -55
- package/dist/hooks/lazySvgImport.cjs.js +0 -1
- package/dist/hooks/lazySvgImport.d.ts +0 -6
- package/dist/hooks/lazySvgImport.es.js +0 -34
- package/dist/index-B9vkf41S.js +0 -672
- package/dist/index-BPpGXp0s.cjs +0 -1
- package/dist/index-BS46Ff4t.cjs +0 -5
- package/dist/index-Ba4TEBpP.js +0 -22
- package/dist/index-CJMnfcQs.js +0 -2152
- package/dist/index-CwHv-blH.js +0 -97
- package/dist/index-D_kvDIOz.cjs +0 -1
- package/dist/index-kjfz41UI.cjs +0 -20
- package/dist/integerPropType-BihGt2aU.js +0 -31
- package/dist/integerPropType-CR7ytEJG.cjs +0 -1
- package/dist/isFocusVisible-CPZqtjv2.js +0 -12
- package/dist/isFocusVisible-DlSijby6.cjs +0 -2
- package/dist/isHostComponent-PydJW4A4.cjs +0 -1
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-BzDAj3yJ.cjs +0 -1
- package/dist/isMuiElement-DnSE4qG4.js +0 -13
- package/dist/listItemTextClasses-CEbo8A-K.js +0 -9
- package/dist/listItemTextClasses-wcJANWC3.cjs +0 -1
- package/dist/memoTheme-Bi1UNdyO.cjs +0 -1
- package/dist/memoTheme-C-PaH-Cy.js +0 -15
- package/dist/mergeSlotProps-CL6s5QgQ.cjs +0 -1
- package/dist/mergeSlotProps-DVtjofCS.js +0 -62
- package/dist/ownerDocument-4MViGo3k.cjs +0 -1
- package/dist/ownerDocument-CUrv0DIK.js +0 -6
- package/dist/ownerWindow-DDHucZi0.cjs +0 -1
- package/dist/ownerWindow-niciwP7I.js +0 -7
- package/dist/refType-8hihVLUh.js +0 -5
- package/dist/refType-DJyA--UV.cjs +0 -1
- package/dist/server-error-CqyYyPLN.cjs +0 -1
- package/dist/server-error-CvgIy7ap.js +0 -398
- package/dist/unsupportedProp-Bn6XWqwH.cjs +0 -1
- package/dist/unsupportedProp-BuVD30Gh.js +0 -9
- package/dist/useControlled-QrrYcKxm.cjs +0 -3
- package/dist/useControlled-nm4pBabJ.js +0 -31
- package/dist/useEventCallback-BxpcFap0.cjs +0 -1
- package/dist/useEventCallback-Y2KwRxBw.js +0 -15
- package/dist/useForkRef-CFhhTu-Q.cjs +0 -1
- package/dist/useForkRef-u29GSuCu.js +0 -27
- package/dist/useFormControl-CatNKXAi.js +0 -10
- package/dist/useFormControl-haP0iPhl.cjs +0 -1
- package/dist/useId-CK6Kn3Tn.js +0 -21
- package/dist/useId-DNXtOFeX.cjs +0 -1
- package/dist/usePreviousProps-ByGlbpJ6.js +0 -10
- package/dist/usePreviousProps-jC3PWcIp.cjs +0 -1
- package/dist/useSlot-BSkdRaZr.js +0 -125
- package/dist/useSlot-C-aMxEm0.cjs +0 -1
- package/dist/useSlotProps-BVVfeURp.cjs +0 -1
- package/dist/useSlotProps-CWTjRiRv.js +0 -25
- package/dist/useTheme-0AkY41zn.js +0 -11
- package/dist/useTheme-BT6SDKkk.cjs +0 -1
- package/dist/useTheme-BrGF2Vm0.cjs +0 -1
- package/dist/useTheme-DSA6Ir8k.js +0 -18
- package/dist/useThemeProps-BWsN0TEk.cjs +0 -1
- package/dist/useThemeProps-CAonvyKa.js +0 -27
- package/dist/useThemeProps-JozrkyA_.cjs +0 -1
- package/dist/useThemeProps-hSh1qhnc.js +0 -17
- package/dist/useTimeout-COCrDKz-.cjs +0 -1
- package/dist/useTimeout-CrCYVizI.js +0 -42
- package/dist/utils-BWx1W_q1.cjs +0 -1
- package/dist/utils-B_pVp6UZ.js +0 -363
- package/dist/utils-DWqc1kRF.js +0 -13
- package/dist/utils-XujN9ndp.cjs +0 -1
- package/dist/warning-C8W811fV.js +0 -11
- package/dist/warning-DMUNDgRg.cjs +0 -2
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { P as o } from "../../Paper-CZXfHfN_.js";
|
|
3
|
-
const r = (e) => /* @__PURE__ */ t(o, { sx: { width: "10rem", height: "10rem", p: 1 }, ...e, children: "children" }), l = {
|
|
4
|
-
title: "Components/Paper",
|
|
5
|
-
component: r,
|
|
6
|
-
argTypes: {
|
|
7
|
-
elevation: {
|
|
8
|
-
control: "number"
|
|
9
|
-
},
|
|
10
|
-
square: {
|
|
11
|
-
control: "boolean"
|
|
12
|
-
},
|
|
13
|
-
variant: {
|
|
14
|
-
control: "select",
|
|
15
|
-
options: ["elevation", "outlined"]
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}, i = {
|
|
19
|
-
args: {
|
|
20
|
-
elevation: 1,
|
|
21
|
-
square: !1,
|
|
22
|
-
variant: "elevation"
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
export {
|
|
26
|
-
i as Default,
|
|
27
|
-
l as default
|
|
28
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../PasswordInput/PasswordInput.cjs.js"),t={title:"Components/PasswordInput",component:e},o={args:{label:"Password"}};exports.Default=o;exports.default=t;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),r=require("../../FormLabel-ByYWZh7M.cjs"),t=require("../../RadioGroup-BlkHQVRF.cjs"),e=require("../../Radio-DzKwkI68.cjs"),a=l=>o.jsxs(r.FormControl,{children:[o.jsx(r.FormLabel,{id:"radio-buttons-group-label",children:"Label"}),o.jsxs(t.RadioGroup,{"aria-labelledby":"radio-buttons-group-label",defaultValue:"first",name:"radio-buttons-group",...l,children:[o.jsx(e.FormControlLabel,{value:"first",control:o.jsx(e.Radio,{}),label:"First"}),o.jsx(e.FormControlLabel,{value:"second",control:o.jsx(e.Radio,{}),label:"Second"}),o.jsx(e.FormControlLabel,{value:"third",control:o.jsx(e.Radio,{}),label:"Third"})]})]}),s={title:"Components/RadioGroup",component:a},n={args:{row:!1}},i={args:{row:!0}};exports.Default=n;exports.Row=i;exports.default=s;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { RadioGroupProps } from '@mui/material/RadioGroup';
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
3
|
-
declare const RadioGroup: (props: RadioGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare const meta: Meta<typeof RadioGroup>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof RadioGroup>;
|
|
7
|
-
export declare const Default: Story;
|
|
8
|
-
export declare const Row: Story;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { jsxs as t, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { F as e, a as s } from "../../FormLabel-DtxJI2CU.js";
|
|
3
|
-
import { R as n } from "../../RadioGroup-CjUaFqjJ.js";
|
|
4
|
-
import { F as r, R as a } from "../../Radio-DiyDpiVL.js";
|
|
5
|
-
const i = (l) => /* @__PURE__ */ t(e, { children: [
|
|
6
|
-
/* @__PURE__ */ o(s, { id: "radio-buttons-group-label", children: "Label" }),
|
|
7
|
-
/* @__PURE__ */ t(
|
|
8
|
-
n,
|
|
9
|
-
{
|
|
10
|
-
"aria-labelledby": "radio-buttons-group-label",
|
|
11
|
-
defaultValue: "first",
|
|
12
|
-
name: "radio-buttons-group",
|
|
13
|
-
...l,
|
|
14
|
-
children: [
|
|
15
|
-
/* @__PURE__ */ o(r, { value: "first", control: /* @__PURE__ */ o(a, {}), label: "First" }),
|
|
16
|
-
/* @__PURE__ */ o(r, { value: "second", control: /* @__PURE__ */ o(a, {}), label: "Second" }),
|
|
17
|
-
/* @__PURE__ */ o(r, { value: "third", control: /* @__PURE__ */ o(a, {}), label: "Third" })
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
)
|
|
21
|
-
] }), c = {
|
|
22
|
-
title: "Components/RadioGroup",
|
|
23
|
-
component: i
|
|
24
|
-
}, p = {
|
|
25
|
-
args: {
|
|
26
|
-
row: !1
|
|
27
|
-
}
|
|
28
|
-
}, f = {
|
|
29
|
-
args: {
|
|
30
|
-
row: !0
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
export {
|
|
34
|
-
p as Default,
|
|
35
|
-
f as Row,
|
|
36
|
-
c as default
|
|
37
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),o=require("../../createSvgIcon-CcWpa9Le.cjs"),r=require("@mui/material"),c=require("../ResourceCard/ResourceCard.cjs.js"),s=o.createSvgIcon(e.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),i=o.createSvgIcon(e.jsx("path",{d:"M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-6 16h-2v-2h2zm2.07-7.75-.9.92C13.45 11.9 13 12.5 13 14h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"LiveHelp"),l=o.createSvgIcon(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public"),a=o.createSvgIcon(e.jsx("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),n={title:"Components/ResourceCard",component:c,argTypes:{title:{description:"Titre de la carte.",control:"text",table:{type:{summary:"string"}},required:!0},defaultImage:{description:"Image par défaut => Logo de l'application",control:"text",table:{type:{summary:"string"}},required:!0},isSelected:{description:"Indique si la carte est sélectionnée.",control:"boolean",table:{type:{summary:"boolean"},defaultValue:{summary:"false"}}},onSelect:{description:"Callback déclenché lorsque l'utilisateur sélectionne la carte.",action:"card-selected",table:{type:{summary:"() => void"}}},image:{description:"URL de l'image affichée sur la carte.",control:"text",table:{type:{summary:"string"}}},propertyItems:{description:"Liste des propriétés affichées sous le titre.",control:"object",table:{type:{summary:"PropertyItem[{text: Typography, icon: MuiIcon}]"}}},infoIcons:{description:"Liste des icônes d'information affichées dans la carte. (3 maximums)",control:"object",table:{type:{summary:"InfoItem[{text: string, icon: MuiIcon}]"}}},size:{description:"Taille de la carte (petite ou moyenne).",control:"radio",options:["sm","md"],table:{type:{summary:'"sm" | "md"'},defaultValue:{summary:"md"}}},width:{description:"Largeur de la carte.",control:"text",table:{type:{summary:"string"},defaultValue:{summary:"320px"}}}}},t={args:{isSelected:!1,image:"https://dummyimage.com/600x400/000/fff.png&text=flashquizz",defaultImage:"https://flashquizz-dev.support-ent.fr/images/logo.svg",title:"Titre de la Ressource tres loooooooooooooooooooooooooooooooooooooooooooooooooooooong",propertyItems:[{text:e.jsx(r.Typography,{color:"text.primary",children:"0 questions"}),icon:e.jsx(i,{color:"primary"})},{text:e.jsx(r.Typography,{color:"text.primary",children:"27 septembre 2025"}),icon:e.jsx(s,{color:"primary"})}],infoIcons:[{text:"Information 1",icon:e.jsx(l,{color:"primary"})},{text:"Information 2",icon:e.jsx(a,{color:"primary"})},{text:"Information 3",icon:e.jsx(a,{color:"primary"})}],size:"md",onSelect:()=>{console.log("Carte sélectionnée !")},onClick:()=>{console.log("Select all")}}},m={args:{...t.args,isSelected:!0,title:"Carte Sélectionnée"}},d={args:{...t.args,size:"sm",title:"Petite Carte"}},u={args:{...t.args,title:"Pas d'image",image:void 0}};exports.Default=t;exports.NoImage=u;exports.Selected=m;exports.Small=d;exports.default=n;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { default as ResourceCard } from '../ResourceCard/ResourceCard';
|
|
3
|
-
declare const meta: Meta<typeof ResourceCard>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof ResourceCard>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const Selected: Story;
|
|
8
|
-
export declare const Small: Story;
|
|
9
|
-
export declare const NoImage: Story;
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { c as e } from "../../createSvgIcon-DFIM5PqN.js";
|
|
3
|
-
import { Typography as r } from "@mui/material";
|
|
4
|
-
import c from "../ResourceCard/ResourceCard.es.js";
|
|
5
|
-
const i = e(/* @__PURE__ */ o("path", {
|
|
6
|
-
d: "M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"
|
|
7
|
-
}), "CalendarToday"), s = e(/* @__PURE__ */ o("path", {
|
|
8
|
-
d: "M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-6 16h-2v-2h2zm2.07-7.75-.9.92C13.45 11.9 13 12.5 13 14h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"
|
|
9
|
-
}), "LiveHelp"), l = e(/* @__PURE__ */ o("path", {
|
|
10
|
-
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"
|
|
11
|
-
}), "Public"), a = e(/* @__PURE__ */ o("path", {
|
|
12
|
-
d: "M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"
|
|
13
|
-
}), "Star"), u = {
|
|
14
|
-
title: "Components/ResourceCard",
|
|
15
|
-
component: c,
|
|
16
|
-
argTypes: {
|
|
17
|
-
title: {
|
|
18
|
-
description: "Titre de la carte.",
|
|
19
|
-
control: "text",
|
|
20
|
-
table: {
|
|
21
|
-
type: { summary: "string" }
|
|
22
|
-
},
|
|
23
|
-
required: !0
|
|
24
|
-
},
|
|
25
|
-
defaultImage: {
|
|
26
|
-
description: "Image par défaut => Logo de l'application",
|
|
27
|
-
control: "text",
|
|
28
|
-
table: {
|
|
29
|
-
type: { summary: "string" }
|
|
30
|
-
},
|
|
31
|
-
required: !0
|
|
32
|
-
},
|
|
33
|
-
isSelected: {
|
|
34
|
-
description: "Indique si la carte est sélectionnée.",
|
|
35
|
-
control: "boolean",
|
|
36
|
-
table: {
|
|
37
|
-
type: { summary: "boolean" },
|
|
38
|
-
defaultValue: { summary: "false" }
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
onSelect: {
|
|
42
|
-
description: "Callback déclenché lorsque l'utilisateur sélectionne la carte.",
|
|
43
|
-
action: "card-selected",
|
|
44
|
-
table: {
|
|
45
|
-
type: { summary: "() => void" }
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
image: {
|
|
49
|
-
description: "URL de l'image affichée sur la carte.",
|
|
50
|
-
control: "text",
|
|
51
|
-
table: {
|
|
52
|
-
type: { summary: "string" }
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
propertyItems: {
|
|
56
|
-
description: "Liste des propriétés affichées sous le titre.",
|
|
57
|
-
control: "object",
|
|
58
|
-
table: {
|
|
59
|
-
type: { summary: "PropertyItem[{text: Typography, icon: MuiIcon}]" }
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
infoIcons: {
|
|
63
|
-
description: "Liste des icônes d'information affichées dans la carte. (3 maximums)",
|
|
64
|
-
control: "object",
|
|
65
|
-
table: {
|
|
66
|
-
type: { summary: "InfoItem[{text: string, icon: MuiIcon}]" }
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
size: {
|
|
70
|
-
description: "Taille de la carte (petite ou moyenne).",
|
|
71
|
-
control: "radio",
|
|
72
|
-
options: ["sm", "md"],
|
|
73
|
-
table: {
|
|
74
|
-
type: { summary: '"sm" | "md"' },
|
|
75
|
-
defaultValue: { summary: "md" }
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
width: {
|
|
79
|
-
description: "Largeur de la carte.",
|
|
80
|
-
control: "text",
|
|
81
|
-
table: {
|
|
82
|
-
type: { summary: "string" },
|
|
83
|
-
defaultValue: { summary: "320px" }
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}, t = {
|
|
88
|
-
args: {
|
|
89
|
-
isSelected: !1,
|
|
90
|
-
image: "https://dummyimage.com/600x400/000/fff.png&text=flashquizz",
|
|
91
|
-
defaultImage: "https://flashquizz-dev.support-ent.fr/images/logo.svg",
|
|
92
|
-
title: "Titre de la Ressource tres loooooooooooooooooooooooooooooooooooooooooooooooooooooong",
|
|
93
|
-
propertyItems: [
|
|
94
|
-
{
|
|
95
|
-
text: /* @__PURE__ */ o(r, { color: "text.primary", children: "0 questions" }),
|
|
96
|
-
icon: /* @__PURE__ */ o(s, { color: "primary" })
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
text: /* @__PURE__ */ o(r, { color: "text.primary", children: "27 septembre 2025" }),
|
|
100
|
-
icon: /* @__PURE__ */ o(i, { color: "primary" })
|
|
101
|
-
}
|
|
102
|
-
],
|
|
103
|
-
infoIcons: [
|
|
104
|
-
{ text: "Information 1", icon: /* @__PURE__ */ o(l, { color: "primary" }) },
|
|
105
|
-
{ text: "Information 2", icon: /* @__PURE__ */ o(a, { color: "primary" }) },
|
|
106
|
-
{ text: "Information 3", icon: /* @__PURE__ */ o(a, { color: "primary" }) }
|
|
107
|
-
],
|
|
108
|
-
size: "md",
|
|
109
|
-
onSelect: () => {
|
|
110
|
-
console.log("Carte sélectionnée !");
|
|
111
|
-
},
|
|
112
|
-
onClick: () => {
|
|
113
|
-
console.log("Select all");
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}, y = {
|
|
117
|
-
args: {
|
|
118
|
-
...t.args,
|
|
119
|
-
isSelected: !0,
|
|
120
|
-
title: "Carte Sélectionnée"
|
|
121
|
-
}
|
|
122
|
-
}, g = {
|
|
123
|
-
args: {
|
|
124
|
-
...t.args,
|
|
125
|
-
size: "sm",
|
|
126
|
-
title: "Petite Carte"
|
|
127
|
-
}
|
|
128
|
-
}, f = {
|
|
129
|
-
args: {
|
|
130
|
-
...t.args,
|
|
131
|
-
title: "Pas d'image",
|
|
132
|
-
image: void 0
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
export {
|
|
136
|
-
t as Default,
|
|
137
|
-
f as NoImage,
|
|
138
|
-
y as Selected,
|
|
139
|
-
g as Small,
|
|
140
|
-
u as default
|
|
141
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../SearchInput/SearchInput.cjs.js"),t={title:"Components/SearchInput",component:e},o={args:{placeholder:"Rechercher"}};exports.Default=o;exports.default=t;
|
|
@@ -1 +0,0 @@
|
|
|
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-ByYWZh7M.cjs"),l=require("../../Select-CSQfbogA.cjs"),t=require("../../MenuItem-D-4xzo-S.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,10 +0,0 @@
|
|
|
1
|
-
import { SelectProps } from '@mui/material/Select';
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
3
|
-
declare const Select: (props: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare const meta: Meta<typeof Select>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof Select>;
|
|
7
|
-
export declare const Default: Story;
|
|
8
|
-
export declare const Filled: Story;
|
|
9
|
-
export declare const Standard: Story;
|
|
10
|
-
export declare const Disabled: Story;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useState as d } from "react";
|
|
3
|
-
import { F as o } from "../../FormLabel-DtxJI2CU.js";
|
|
4
|
-
import { a as c, S as m } from "../../Select-BxH16ruJ.js";
|
|
5
|
-
import { M as t } from "../../MenuItem-Cusmy5t2.js";
|
|
6
|
-
const u = (a) => {
|
|
7
|
-
const [n, s] = d("pending"), r = (i) => s(i.target.value);
|
|
8
|
-
return /* @__PURE__ */ l(o, { variant: a.variant, sx: { width: "10rem" }, children: [
|
|
9
|
-
/* @__PURE__ */ e(c, { id: "simple-select-label", children: "Status" }),
|
|
10
|
-
/* @__PURE__ */ l(
|
|
11
|
-
m,
|
|
12
|
-
{
|
|
13
|
-
labelId: "simple-select-label",
|
|
14
|
-
id: "simple-select",
|
|
15
|
-
value: n,
|
|
16
|
-
label: "Status",
|
|
17
|
-
onChange: r,
|
|
18
|
-
...a,
|
|
19
|
-
children: [
|
|
20
|
-
/* @__PURE__ */ e(t, { value: "pending", children: "Pending" }),
|
|
21
|
-
/* @__PURE__ */ e(t, { value: "ongoing", children: "Ongoing" }),
|
|
22
|
-
/* @__PURE__ */ e(t, { value: "validated", children: "Validated" }),
|
|
23
|
-
/* @__PURE__ */ e(t, { value: "rejected", children: "Rejected" })
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
)
|
|
27
|
-
] });
|
|
28
|
-
}, f = {
|
|
29
|
-
title: "Components/Select",
|
|
30
|
-
component: u
|
|
31
|
-
}, b = {
|
|
32
|
-
args: {}
|
|
33
|
-
}, j = {
|
|
34
|
-
args: {
|
|
35
|
-
variant: "filled"
|
|
36
|
-
}
|
|
37
|
-
}, x = {
|
|
38
|
-
args: {
|
|
39
|
-
variant: "standard"
|
|
40
|
-
}
|
|
41
|
-
}, C = {
|
|
42
|
-
args: {
|
|
43
|
-
disabled: !0
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
export {
|
|
47
|
-
b as Default,
|
|
48
|
-
C as Disabled,
|
|
49
|
-
j as Filled,
|
|
50
|
-
x as Standard,
|
|
51
|
-
f as default
|
|
52
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),v=require("react"),d=require("../../Stepper-BsfN7O-W.cjs"),o=require("../../Box-CYQlQqRB.cjs"),u=require("../../Typography-DHjq4GzQ.cjs"),a=require("../../Button-BP-QmmUu.cjs"),p=["Paramètres","Créer un groupe","Validation"],k=x=>{const[t,r]=v.useState(0),[l,h]=v.useState(new Set),c=n=>n===1,m=n=>l.has(n),g=()=>{let n=l;m(t)&&(n=new Set(n.values()),n.delete(t)),r(i=>i+1),h(n)},j=()=>{r(n=>n-1)},S=()=>{if(!c(t))throw new Error("You can't skip a step that isn't optional.");r(n=>n+1),h(n=>{const i=new Set(n.values());return i.add(t),i})},y=()=>{r(0)};return e.jsxs(o.Box,{sx:{width:"100%"},children:[e.jsx(d.Stepper,{activeStep:t,...x,children:p.map((n,i)=>{const f={},s={};return c(i)&&(s.optional=e.jsx(u.Typography,{variant:"caption",children:"Optionnel"})),m(i)&&(f.completed=!1),e.jsx(d.Step,{...f,children:e.jsx(d.StepLabel,{...s,children:n})},n)})}),t===p.length?e.jsxs(e.Fragment,{children:[e.jsx(u.Typography,{sx:{mt:2,mb:1},children:"Toutes les étapes sont complétées - vous avez terminé"}),e.jsxs(o.Box,{sx:{display:"flex",flexDirection:"row",pt:2},children:[e.jsx(o.Box,{sx:{flex:"1 1 auto"}}),e.jsx(a.Button,{onClick:y,children:"Réinitialiser"})]})]}):e.jsxs(e.Fragment,{children:[e.jsxs(u.Typography,{sx:{mt:2,mb:1},children:["Étape ",t+1]}),e.jsxs(o.Box,{sx:{display:"flex",flexDirection:"row",pt:2},children:[e.jsx(a.Button,{color:"inherit",disabled:t===0,onClick:j,sx:{mr:1},children:"Précédent"}),e.jsx(o.Box,{sx:{flex:"1 1 auto"}}),c(t)&&e.jsx(a.Button,{color:"inherit",onClick:S,sx:{mr:1},children:"Passer"}),e.jsx(a.Button,{onClick:g,children:t===p.length-1?"Terminer":"Suivant"})]})]})]})},L=x=>{const[t,r]=v.useState(0),[l,h]=v.useState({}),c=()=>p.length,m=()=>Object.keys(l).length,g=()=>t===c()-1,j=()=>m()===c(),S=()=>{const s=g()&&!j()?p.findIndex((B,b)=>!(b in l)):t+1;r(s)},y=()=>{r(s=>s-1)},n=s=>()=>{r(s)},i=()=>{h({...l,[t]:!0}),S()},f=()=>{r(0),h({})};return e.jsxs(o.Box,{sx:{width:"100%"},children:[e.jsx(d.Stepper,{nonLinear:!0,activeStep:t,children:p.map((s,B)=>e.jsx(d.Step,{completed:l[B],children:e.jsx(d.StepButton,{color:"inherit",onClick:n(B),children:s})},s))}),e.jsx("div",{children:j()?e.jsxs(e.Fragment,{children:[e.jsx(u.Typography,{sx:{mt:2,mb:1},children:"Toutes les étapes sont complétées - vous avez terminé"}),e.jsxs(o.Box,{sx:{display:"flex",flexDirection:"row",pt:2},children:[e.jsx(o.Box,{sx:{flex:"1 1 auto"}}),e.jsx(a.Button,{onClick:f,children:"Réinitialiser"})]})]}):e.jsxs(e.Fragment,{children:[e.jsxs(u.Typography,{sx:{mt:2,mb:1,py:1},children:["Étape ",t+1]}),e.jsxs(o.Box,{sx:{display:"flex",flexDirection:"row",pt:2},children:[e.jsx(a.Button,{color:"inherit",disabled:t===0,onClick:y,sx:{mr:1},children:"Précédent"}),e.jsx(o.Box,{sx:{flex:"1 1 auto"}}),e.jsx(a.Button,{onClick:S,sx:{mr:1},children:"Suivant"}),t!==p.length&&(l[t]?e.jsxs(u.Typography,{variant:"caption",sx:{display:"inline-block"},children:["Étape ",t+1," déjà complétée"]}):e.jsx(a.Button,{onClick:i,children:m()===c()-1?"Terminer":"Compléter l'étape"}))]})]})})]})},C={title:"Components/Stepper",component:d.Stepper,parameters:{docs:{description:{component:"Les steppers transmettent les progrès par le biais d'étapes numérotées. Ils permettent d'obtenir un flux de travail semblable à celui d'un assistant."}}},argTypes:{alternativeLabel:{control:"boolean",description:"Positionne le label de l'étape sous l'icône"},nonLinear:{control:"boolean",description:"Si cette option est activée, le stepper n'aidera pas à contrôler les étapes d'un flux linéaire"},orientation:{control:"radio",options:["horizontal","vertical"],description:"Orientation du composant"}}},w={render:x=>e.jsx(k,{...x}),args:{alternativeLabel:!1,nonLinear:!1,orientation:"horizontal"}},T={render:x=>e.jsx(L,{...x}),args:{alternativeLabel:!1,nonLinear:!0,orientation:"horizontal"}};exports.Linear=w;exports.NonLinear=T;exports.default=C;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { default as Stepper } from '@mui/material/Stepper';
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
3
|
-
declare const meta: Meta<typeof Stepper>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Stepper>;
|
|
6
|
-
export declare const Linear: Story;
|
|
7
|
-
export declare const NonLinear: Story;
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as r, Fragment as k } from "react/jsx-runtime";
|
|
2
|
-
import { useState as b } from "react";
|
|
3
|
-
import { c as g, S as y, b as P, a as T } from "../../Stepper-DyH4sgY5.js";
|
|
4
|
-
import { B as o } from "../../Box-BaZ7KlAc.js";
|
|
5
|
-
import { T as m } from "../../Typography-Cr-aIusw.js";
|
|
6
|
-
import { B as c } from "../../Button-C1mKNW-c.js";
|
|
7
|
-
const d = ["Paramètres", "Créer un groupe", "Validation"], z = (h) => {
|
|
8
|
-
const [t, s] = b(0), [a, u] = b(/* @__PURE__ */ new Set()), p = (n) => n === 1, x = (n) => a.has(n), C = () => {
|
|
9
|
-
let n = a;
|
|
10
|
-
x(t) && (n = new Set(n.values()), n.delete(t)), s((l) => l + 1), u(n);
|
|
11
|
-
}, S = () => {
|
|
12
|
-
s((n) => n - 1);
|
|
13
|
-
}, f = () => {
|
|
14
|
-
if (!p(t))
|
|
15
|
-
throw new Error("You can't skip a step that isn't optional.");
|
|
16
|
-
s((n) => n + 1), u((n) => {
|
|
17
|
-
const l = new Set(n.values());
|
|
18
|
-
return l.add(t), l;
|
|
19
|
-
});
|
|
20
|
-
}, w = () => {
|
|
21
|
-
s(0);
|
|
22
|
-
};
|
|
23
|
-
return /* @__PURE__ */ r(o, { sx: { width: "100%" }, children: [
|
|
24
|
-
/* @__PURE__ */ e(g, { activeStep: t, ...h, children: d.map((n, l) => {
|
|
25
|
-
const v = {}, i = {};
|
|
26
|
-
return p(l) && (i.optional = /* @__PURE__ */ e(m, { variant: "caption", children: "Optionnel" })), x(l) && (v.completed = !1), /* @__PURE__ */ e(y, { ...v, children: /* @__PURE__ */ e(P, { ...i, children: n }) }, n);
|
|
27
|
-
}) }),
|
|
28
|
-
t === d.length ? /* @__PURE__ */ r(k, { children: [
|
|
29
|
-
/* @__PURE__ */ e(m, { sx: { mt: 2, mb: 1 }, children: "Toutes les étapes sont complétées - vous avez terminé" }),
|
|
30
|
-
/* @__PURE__ */ r(o, { sx: { display: "flex", flexDirection: "row", pt: 2 }, children: [
|
|
31
|
-
/* @__PURE__ */ e(o, { sx: { flex: "1 1 auto" } }),
|
|
32
|
-
/* @__PURE__ */ e(c, { onClick: w, children: "Réinitialiser" })
|
|
33
|
-
] })
|
|
34
|
-
] }) : /* @__PURE__ */ r(k, { children: [
|
|
35
|
-
/* @__PURE__ */ r(m, { sx: { mt: 2, mb: 1 }, children: [
|
|
36
|
-
"Étape ",
|
|
37
|
-
t + 1
|
|
38
|
-
] }),
|
|
39
|
-
/* @__PURE__ */ r(o, { sx: { display: "flex", flexDirection: "row", pt: 2 }, children: [
|
|
40
|
-
/* @__PURE__ */ e(
|
|
41
|
-
c,
|
|
42
|
-
{
|
|
43
|
-
color: "inherit",
|
|
44
|
-
disabled: t === 0,
|
|
45
|
-
onClick: S,
|
|
46
|
-
sx: { mr: 1 },
|
|
47
|
-
children: "Précédent"
|
|
48
|
-
}
|
|
49
|
-
),
|
|
50
|
-
/* @__PURE__ */ e(o, { sx: { flex: "1 1 auto" } }),
|
|
51
|
-
p(t) && /* @__PURE__ */ e(c, { color: "inherit", onClick: f, sx: { mr: 1 }, children: "Passer" }),
|
|
52
|
-
/* @__PURE__ */ e(c, { onClick: C, children: t === d.length - 1 ? "Terminer" : "Suivant" })
|
|
53
|
-
] })
|
|
54
|
-
] })
|
|
55
|
-
] });
|
|
56
|
-
}, j = (h) => {
|
|
57
|
-
const [t, s] = b(0), [a, u] = b({}), p = () => d.length, x = () => Object.keys(a).length, C = () => t === p() - 1, S = () => x() === p(), f = () => {
|
|
58
|
-
const i = C() && !S() ? (
|
|
59
|
-
// It's the last step, but not all steps have been completed,
|
|
60
|
-
// find the first step that has been completed
|
|
61
|
-
d.findIndex((L, B) => !(B in a))
|
|
62
|
-
) : t + 1;
|
|
63
|
-
s(i);
|
|
64
|
-
}, w = () => {
|
|
65
|
-
s((i) => i - 1);
|
|
66
|
-
}, n = (i) => () => {
|
|
67
|
-
s(i);
|
|
68
|
-
}, l = () => {
|
|
69
|
-
u({
|
|
70
|
-
...a,
|
|
71
|
-
[t]: !0
|
|
72
|
-
}), f();
|
|
73
|
-
}, v = () => {
|
|
74
|
-
s(0), u({});
|
|
75
|
-
};
|
|
76
|
-
return /* @__PURE__ */ r(o, { sx: { width: "100%" }, children: [
|
|
77
|
-
/* @__PURE__ */ e(g, { nonLinear: !0, activeStep: t, children: d.map((i, L) => /* @__PURE__ */ e(y, { completed: a[L], children: /* @__PURE__ */ e(T, { color: "inherit", onClick: n(L), children: i }) }, i)) }),
|
|
78
|
-
/* @__PURE__ */ e("div", { children: S() ? /* @__PURE__ */ r(k, { children: [
|
|
79
|
-
/* @__PURE__ */ e(m, { sx: { mt: 2, mb: 1 }, children: "Toutes les étapes sont complétées - vous avez terminé" }),
|
|
80
|
-
/* @__PURE__ */ r(o, { sx: { display: "flex", flexDirection: "row", pt: 2 }, children: [
|
|
81
|
-
/* @__PURE__ */ e(o, { sx: { flex: "1 1 auto" } }),
|
|
82
|
-
/* @__PURE__ */ e(c, { onClick: v, children: "Réinitialiser" })
|
|
83
|
-
] })
|
|
84
|
-
] }) : /* @__PURE__ */ r(k, { children: [
|
|
85
|
-
/* @__PURE__ */ r(m, { sx: { mt: 2, mb: 1, py: 1 }, children: [
|
|
86
|
-
"Étape ",
|
|
87
|
-
t + 1
|
|
88
|
-
] }),
|
|
89
|
-
/* @__PURE__ */ r(o, { sx: { display: "flex", flexDirection: "row", pt: 2 }, children: [
|
|
90
|
-
/* @__PURE__ */ e(
|
|
91
|
-
c,
|
|
92
|
-
{
|
|
93
|
-
color: "inherit",
|
|
94
|
-
disabled: t === 0,
|
|
95
|
-
onClick: w,
|
|
96
|
-
sx: { mr: 1 },
|
|
97
|
-
children: "Précédent"
|
|
98
|
-
}
|
|
99
|
-
),
|
|
100
|
-
/* @__PURE__ */ e(o, { sx: { flex: "1 1 auto" } }),
|
|
101
|
-
/* @__PURE__ */ e(c, { onClick: f, sx: { mr: 1 }, children: "Suivant" }),
|
|
102
|
-
t !== d.length && (a[t] ? /* @__PURE__ */ r(
|
|
103
|
-
m,
|
|
104
|
-
{
|
|
105
|
-
variant: "caption",
|
|
106
|
-
sx: { display: "inline-block" },
|
|
107
|
-
children: [
|
|
108
|
-
"Étape ",
|
|
109
|
-
t + 1,
|
|
110
|
-
" déjà complétée"
|
|
111
|
-
]
|
|
112
|
-
}
|
|
113
|
-
) : /* @__PURE__ */ e(c, { onClick: l, children: x() === p() - 1 ? "Terminer" : "Compléter l'étape" }))
|
|
114
|
-
] })
|
|
115
|
-
] }) })
|
|
116
|
-
] });
|
|
117
|
-
}, E = {
|
|
118
|
-
title: "Components/Stepper",
|
|
119
|
-
component: g,
|
|
120
|
-
parameters: {
|
|
121
|
-
docs: {
|
|
122
|
-
description: {
|
|
123
|
-
component: "Les steppers transmettent les progrès par le biais d'étapes numérotées. Ils permettent d'obtenir un flux de travail semblable à celui d'un assistant."
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
argTypes: {
|
|
128
|
-
alternativeLabel: {
|
|
129
|
-
control: "boolean",
|
|
130
|
-
description: "Positionne le label de l'étape sous l'icône"
|
|
131
|
-
},
|
|
132
|
-
nonLinear: {
|
|
133
|
-
control: "boolean",
|
|
134
|
-
description: "Si cette option est activée, le stepper n'aidera pas à contrôler les étapes d'un flux linéaire"
|
|
135
|
-
},
|
|
136
|
-
orientation: {
|
|
137
|
-
control: "radio",
|
|
138
|
-
options: ["horizontal", "vertical"],
|
|
139
|
-
description: "Orientation du composant"
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}, F = {
|
|
143
|
-
render: (h) => /* @__PURE__ */ e(z, { ...h }),
|
|
144
|
-
args: {
|
|
145
|
-
alternativeLabel: !1,
|
|
146
|
-
nonLinear: !1,
|
|
147
|
-
orientation: "horizontal"
|
|
148
|
-
}
|
|
149
|
-
}, V = {
|
|
150
|
-
render: (h) => /* @__PURE__ */ e(j, { ...h }),
|
|
151
|
-
args: {
|
|
152
|
-
alternativeLabel: !1,
|
|
153
|
-
nonLinear: !0,
|
|
154
|
-
orientation: "horizontal"
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
export {
|
|
158
|
-
F as Linear,
|
|
159
|
-
V as NonLinear,
|
|
160
|
-
E as default
|
|
161
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),i=require("react"),o=require("../../Tab-D2mI5G0L.cjs"),s=t=>{const[a,l]=i.useState("1"),r=(b,n)=>l(n);return e.jsxs(o.TabContext,{value:a,children:[e.jsxs(o.TabList,{...t,onChange:r,"aria-label":"lib tablist example",children:[e.jsx(o.Tab,{label:"Item one",value:"1"}),e.jsx(o.Tab,{label:"Item two",value:"2"}),e.jsx(o.Tab,{label:"Item three",value:"3"})]}),e.jsx(o.TabPanel,{value:"1",children:"Item one"}),e.jsx(o.TabPanel,{value:"2",children:"Item two"}),e.jsx(o.TabPanel,{value:"3",children:"Item three"})]})},c={title:"Components/TabList",component:s,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"}}},u={args:{allowScrollButtonsMobile:!1,centered:!1,indicatorColor:"primary",orientation:"horizontal",scrollButtons:"auto",textColor:"primary",variant:"standard",visibleScrollbar:!1}};exports.Default=u;exports.default=c;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TabListProps } from '@mui/lab/TabList';
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
3
|
-
declare const TabList: (props: TabListProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare const meta: Meta<typeof TabList>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof TabList>;
|
|
7
|
-
export declare const Default: Story;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { jsxs as e, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { useState as s } from "react";
|
|
3
|
-
import { T as c, a as d, c as t, b as a } from "../../Tab-Bksf_S4K.js";
|
|
4
|
-
const b = (l) => {
|
|
5
|
-
const [r, n] = s("1");
|
|
6
|
-
return /* @__PURE__ */ e(c, { value: r, children: [
|
|
7
|
-
/* @__PURE__ */ e(
|
|
8
|
-
d,
|
|
9
|
-
{
|
|
10
|
-
...l,
|
|
11
|
-
onChange: (u, i) => n(i),
|
|
12
|
-
"aria-label": "lib tablist example",
|
|
13
|
-
children: [
|
|
14
|
-
/* @__PURE__ */ o(t, { label: "Item one", value: "1" }),
|
|
15
|
-
/* @__PURE__ */ o(t, { label: "Item two", value: "2" }),
|
|
16
|
-
/* @__PURE__ */ o(t, { label: "Item three", value: "3" })
|
|
17
|
-
]
|
|
18
|
-
}
|
|
19
|
-
),
|
|
20
|
-
/* @__PURE__ */ o(a, { value: "1", children: "Item one" }),
|
|
21
|
-
/* @__PURE__ */ o(a, { value: "2", children: "Item two" }),
|
|
22
|
-
/* @__PURE__ */ o(a, { value: "3", children: "Item three" })
|
|
23
|
-
] });
|
|
24
|
-
}, f = {
|
|
25
|
-
title: "Components/TabList",
|
|
26
|
-
component: b,
|
|
27
|
-
argTypes: {
|
|
28
|
-
allowScrollButtonsMobile: {
|
|
29
|
-
control: "boolean"
|
|
30
|
-
},
|
|
31
|
-
centered: {
|
|
32
|
-
control: "boolean"
|
|
33
|
-
},
|
|
34
|
-
indicatorColor: {
|
|
35
|
-
control: "radio",
|
|
36
|
-
options: ["primary", "secondary"]
|
|
37
|
-
},
|
|
38
|
-
orientation: {
|
|
39
|
-
control: "radio",
|
|
40
|
-
options: ["horizontal", "vertical"]
|
|
41
|
-
},
|
|
42
|
-
scrollButtons: {
|
|
43
|
-
control: "radio",
|
|
44
|
-
options: ["auto", !0, !1]
|
|
45
|
-
},
|
|
46
|
-
textColor: {
|
|
47
|
-
control: "radio",
|
|
48
|
-
options: ["inherit", "primary", "secondary"]
|
|
49
|
-
},
|
|
50
|
-
variant: {
|
|
51
|
-
control: "radio",
|
|
52
|
-
options: ["fullWidth", "scrollable", "standard"]
|
|
53
|
-
},
|
|
54
|
-
visibleScrollbar: {
|
|
55
|
-
control: "boolean"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}, C = {
|
|
59
|
-
args: {
|
|
60
|
-
allowScrollButtonsMobile: !1,
|
|
61
|
-
centered: !1,
|
|
62
|
-
indicatorColor: "primary",
|
|
63
|
-
orientation: "horizontal",
|
|
64
|
-
scrollButtons: "auto",
|
|
65
|
-
textColor: "primary",
|
|
66
|
-
variant: "standard",
|
|
67
|
-
visibleScrollbar: !1
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
export {
|
|
71
|
-
C as Default,
|
|
72
|
-
f as default
|
|
73
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react/jsx-runtime"),t=require("../../TextField-C9AnzUpZ.cjs"),o=e=>l.jsx(t.TextField,{...e}),r={title:"Components/TextField",component:o,argTypes:{color:{control:"select",options:["primary","secondary","error","info","success","warning"]},disabled:{control:"boolean"},error:{control:"boolean"},fullWidth:{control:"boolean"},helperText:{control:"text"},label:{control:"text"},multiline:{control:"boolean"},placeholder:{control:"text"},variant:{control:"select",options:["standard","outlined","filled"]}},args:{color:"primary",disabled:!1,error:!1,fullWidth:!1,helperText:void 0,label:"Label",multiline:!1,placeholder:void 0,variant:"outlined"}},a={args:{}},n={args:{variant:"filled"}},i={args:{variant:"standard"}},s={args:{disabled:!0}};exports.Default=a;exports.Disabled=s;exports.Filled=n;exports.Standard=i;exports.default=r;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { TextFieldProps } from '@mui/material/TextField';
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
3
|
-
declare const TextField: (props: TextFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare const meta: Meta<typeof TextField>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof TextField>;
|
|
7
|
-
export declare const Default: Story;
|
|
8
|
-
export declare const Filled: Story;
|
|
9
|
-
export declare const Standard: Story;
|
|
10
|
-
export declare const Disabled: Story;
|