@cgi-learning-hub/ui 1.6.0 → 1.7.0-dev.1750693982
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/{Alert-PmI169Dq.js → Alert-BhLIlUBu.js} +126 -212
- package/dist/Alert-DPSZppEy.cjs +1 -0
- package/dist/Alert-OeEy_IGc.js +94 -0
- package/dist/Alert-rPyl-bqs.cjs +1 -0
- package/dist/Autocomplete-BdPO9SAd.cjs +6 -0
- package/dist/{Autocomplete-BIBR54X2.js → Autocomplete-WZw_zCjA.js} +391 -398
- package/dist/{Backdrop-BxgGvlLM.js → Backdrop-CjZYrxkZ.js} +5 -5
- package/dist/Backdrop-DeNTZlA5.cjs +1 -0
- package/dist/Badge-Bwcsnbsa.js +465 -0
- package/dist/Badge-DFzvdVS-.cjs +1 -0
- package/dist/{Box-o7Tjjyko.js → Box-BI4osO9v.js} +3 -3
- package/dist/Box-DR3n_po_.cjs +1 -0
- package/dist/{Button-D974vesA.js → Button-DDV5EfwJ.js} +115 -151
- package/dist/Button-DyJV5llI.cjs +1 -0
- package/dist/{ButtonBase-Chb99sDQ.js → ButtonBase-6TF6t2SP.js} +22 -23
- package/dist/ButtonBase-Dp6sf_dP.cjs +74 -0
- package/dist/CardContent-COfaU6E0.cjs +1 -0
- package/dist/{CardContent-DaZl2i3G.js → CardContent-D3uGcxlr.js} +34 -36
- package/dist/Checkbox-3hTSv0EZ.cjs +1 -0
- package/dist/{Checkbox-p-PKpEw_.js → Checkbox-BfBDowB2.js} +27 -28
- package/dist/Chip-BG0OU0KI.cjs +1 -0
- package/dist/{Chip-CPR3r42q.js → Chip-DmjZbx_X.js} +213 -164
- package/dist/CircularProgress-CXXyPavb.cjs +28 -0
- package/dist/{CircularProgress-DVKNRMKq.js → CircularProgress-DZuYTFz-.js} +34 -36
- package/dist/{Close-DyRqry3p.cjs → Close-7S2hSoFB.cjs} +1 -1
- package/dist/{Close-m-MX3rFn.js → Close-DEMecSZ6.js} +1 -1
- package/dist/{CloseRounded-CjjQdrNy.js → CloseRounded-CioV1GK3.js} +1 -1
- package/dist/{CloseRounded-Bpxbxvyb.cjs → CloseRounded-DS-4-gMR.cjs} +1 -1
- package/dist/CustomTreeItem-B9FylIhL.js +2045 -0
- package/dist/CustomTreeItem-Bg8Ub4dn.cjs +41 -0
- package/dist/DatePicker-CH8XRum0.cjs +16 -0
- package/dist/DatePicker-DasS2wq6.js +10663 -0
- package/dist/DefaultPropsProvider-Cnf49AIv.cjs +1 -0
- package/dist/{DefaultPropsProvider-hFv1J_xl.js → DefaultPropsProvider-DqazQPtr.js} +36 -34
- package/dist/{Delete-9fJbdRit.js → Delete-B5VTV71K.js} +1 -1
- package/dist/{Delete-CEX2hq0f.cjs → Delete-BvkBJXEM.cjs} +1 -1
- package/dist/Dialog-Btagj_Gt.cjs +1 -0
- package/dist/{Dialog-BzsWl6Vl.js → Dialog-DEWB041V.js} +36 -41
- package/dist/{DialogContent-B41jvlMn.js → DialogContent-C294EkoQ.js} +3 -3
- package/dist/DialogContent-DXfUge3c.cjs +1 -0
- package/dist/{DialogTitle-CVvztEM0.js → DialogTitle-BSiId6Q1.js} +38 -40
- package/dist/DialogTitle-y2PrK6uU.cjs +1 -0
- package/dist/Divider-NermA5hZ.cjs +1 -0
- package/dist/{Divider-CJwnMdVg.js → Divider-kKp4VqHh.js} +4 -4
- package/dist/{Folder-7plrMkOp.cjs → Folder-BfLBqDHM.cjs} +1 -1
- package/dist/{Folder-CutUz0bW.js → Folder-BgQP5-Ve.js} +1 -1
- package/dist/{FormLabel-DSi2pGSZ.js → FormLabel-B3WAnPGP.js} +36 -38
- package/dist/FormLabel-JrZR9kt8.cjs +2 -0
- package/dist/Grid-BHYQ3JNy.cjs +2 -0
- package/dist/Grid-DFk-4jnZ.js +411 -0
- package/dist/Grow-BULCy6GX.cjs +1 -0
- package/dist/{Grow-FFFqe81C.js → Grow-BfjkXlG8.js} +2 -2
- package/dist/{IconButton-CgwURB2g.js → IconButton-BYvak8Nw.js} +13 -15
- package/dist/IconButton-CjtMjZ9e.cjs +2 -0
- package/dist/{InputAdornment-DgWvMLgR.js → InputAdornment-BBZXvhZ-.js} +14 -15
- package/dist/InputAdornment-DvHQMisT.cjs +1 -0
- package/dist/{InputBase-DxLqRpcl.js → InputBase-BS5oknUK.js} +196 -194
- package/dist/InputBase-DPdKpmOz.cjs +4 -0
- package/dist/Link-BwbY60dS.cjs +1 -0
- package/dist/{Link-rb-SwfiY.js → Link-DYPjEdvu.js} +10 -11
- package/dist/{List-BjfdkeEI.js → List-CB_cqCSw.js} +2 -2
- package/dist/List-t9bWFewp.cjs +1 -0
- package/dist/{ListItem-B0EiObKw.js → ListItem-DAZQEir2.js} +25 -26
- package/dist/ListItem-DP7YmqZk.cjs +1 -0
- package/dist/ListItemText-cVnimPLO.cjs +1 -0
- package/dist/ListItemText-qfdqJP77.js +441 -0
- package/dist/{Menu-By6cOqEO.js → Menu-9BK8jmzW.js} +110 -114
- package/dist/Menu-C61wLk41.cjs +7 -0
- package/dist/{MenuItem-B1FTx8Uo.js → MenuItem-C8nduSzJ.js} +8 -8
- package/dist/MenuItem-DHM3qxwr.cjs +1 -0
- package/dist/{Modal-vrLLqk9Y.js → Modal-D3Q9vEAI.js} +51 -55
- package/dist/Modal-DkzrSKHd.cjs +2 -0
- package/dist/{MoreVert-DC6HBf1h.cjs → MoreVert-C-Rhn-xK.cjs} +1 -1
- package/dist/{MoreVert-DJ8sAY3o.js → MoreVert-C_W1m_Z_.js} +1 -1
- package/dist/Paper-BbqZL5vx.cjs +2 -0
- package/dist/Paper-IQckggbn.js +158 -0
- package/dist/{Popper-DfwuvxaQ.js → Popper-CfFLBZ7-.js} +6 -7
- package/dist/Popper-DvWx5tR3.cjs +4 -0
- package/dist/{Portal-ChC9wmMZ.js → Portal-BlK6ttxt.js} +5 -5
- package/dist/Portal-CPOCKeMh.cjs +1 -0
- package/dist/Radio-Bwh_t6PC.cjs +1 -0
- package/dist/{Radio-BqY-su_F.js → Radio-DKiu6lVB.js} +17 -19
- package/dist/RadioGroup-Cvnwt4JE.cjs +1 -0
- package/dist/{RadioGroup-BQvlYFpE.js → RadioGroup-DFKMlNWO.js} +4 -4
- package/dist/Select-3HP39Z7o.cjs +3 -0
- package/dist/{Select-DZMwqCYA.js → Select-CpNF3a57.js} +425 -410
- package/dist/Stack-CIyfgZCM.cjs +1 -0
- package/dist/{Stack-CMUWQxQn.js → Stack-DSJ2DqNd.js} +36 -37
- package/dist/Stepper-CXHfLPtA.cjs +1 -0
- package/dist/Stepper-DE2l91K0.js +965 -0
- package/dist/{Switch-Bg4QB4PJ.js → Switch-BIcwDf_P.js} +24 -27
- package/dist/Switch-CTEqKDiv.cjs +1 -0
- package/dist/{SwitchBase-EDFBMPd7.js → SwitchBase-DZV8S81Z.js} +21 -22
- package/dist/SwitchBase-P3zHVmLX.cjs +1 -0
- package/dist/{Tab-52AkFc9v.js → Tab-Ckr6Bn59.js} +96 -99
- package/dist/Tab-r5imbU9z.cjs +4 -0
- package/dist/{TextField-DG9mRp_m.js → TextField-BenBw4oE.js} +46 -48
- package/dist/TextField-Brw3X9cn.cjs +1 -0
- package/dist/ToggleButtonGroup-CA1cSosV.cjs +138 -0
- package/dist/{Badge-rX7YUmBc.js → ToggleButtonGroup-DhtAoGtM.js} +3144 -4140
- package/dist/Tooltip-BAOKe3SY.cjs +4 -0
- package/dist/{Tooltip-DCgaU2em.js → Tooltip-KkgNQm4r.js} +27 -29
- package/dist/Typography-CSTmKyr8.cjs +1 -0
- package/dist/{Typography-DwMlN0K5.js → Typography-Dy8r_tT2.js} +6 -7
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +5 -4
- package/dist/components/Alert/index.cjs.js +1 -1
- package/dist/components/Alert/index.es.js +1 -1
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +2 -2
- package/dist/components/ButtonGroup/ButtonGroup.cjs.js +1 -0
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +3 -0
- package/dist/components/ButtonGroup/ButtonGroup.es.js +38 -0
- package/dist/components/ButtonGroup/index.cjs.js +1 -0
- package/dist/components/ButtonGroup/index.d.ts +2 -0
- package/dist/components/ButtonGroup/index.es.js +4 -0
- package/dist/components/ButtonGroup/style.cjs.js +1 -0
- package/dist/components/ButtonGroup/style.es.js +29 -0
- package/dist/components/ButtonGroup/types.cjs.js +1 -0
- package/dist/components/ButtonGroup/types.d.ts +22 -0
- package/dist/components/ButtonGroup/types.es.js +1 -0
- package/dist/components/ColorPicker/ColorPicker.cjs.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.es.js +5 -5
- package/dist/components/ColorPicker/styles.es.js +13 -11
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +1 -2
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- 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 +8 -3
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +3 -3
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +1 -0
- package/dist/components/EmptyState/EmptyState.es.js +13 -12
- package/dist/components/FileList/FileIcon.cjs.js +1 -1
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +4 -4
- package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
- package/dist/components/FolderCard/FolderCard.es.js +2 -2
- 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 +4 -4
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TreeView/TreeView.cjs.js +5 -7
- package/dist/components/TreeView/TreeView.es.js +1207 -1452
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.d.ts +2 -2
- package/dist/components/TreeView/components/CustomTreeItem.es.js +3 -3
- package/dist/components/TreeView/types.d.ts +5 -5
- package/dist/components/TreeView/utils.cjs.js +1 -1
- package/dist/components/TreeView/utils.es.js +3 -3
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +7 -2
- package/dist/components/index.es.js +402 -391
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.d.ts +1 -1
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
- package/dist/components/stories/Autocomplete.stories.d.ts +1 -1
- package/dist/components/stories/Autocomplete.stories.es.js +2 -2
- package/dist/components/stories/Badge.stories.cjs.js +1 -0
- package/dist/components/stories/Badge.stories.d.ts +17 -0
- package/dist/components/stories/Badge.stories.es.js +188 -0
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.d.ts +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/ButtonGroup.stories.cjs.js +153 -0
- package/dist/components/stories/ButtonGroup.stories.d.ts +17 -0
- package/dist/components/stories/ButtonGroup.stories.es.js +1296 -0
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.d.ts +1 -1
- package/dist/components/stories/Card.stories.es.js +2 -2
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.d.ts +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/Chip.stories.cjs.js +1 -1
- package/dist/components/stories/Chip.stories.d.ts +1 -1
- package/dist/components/stories/Chip.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.d.ts +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.d.ts +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.d.ts +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/Dropzone.stories.d.ts +1 -1
- package/dist/components/stories/EllipsisWithTooltip.stories.d.ts +1 -1
- package/dist/components/stories/EmptyState.stories.d.ts +1 -1
- package/dist/components/stories/FileList.stories.d.ts +1 -1
- package/dist/components/stories/FolderCard.stories.d.ts +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.d.ts +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.d.ts +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.d.ts +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/ImagePicker.stories.d.ts +1 -1
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.d.ts +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Loader.stories.d.ts +1 -1
- package/dist/components/stories/LoaderBackdrop.stories.d.ts +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.d.ts +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.d.ts +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/PasswordInput.stories.d.ts +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.d.ts +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +3 -3
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.d.ts +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- package/dist/components/stories/SearchInput.stories.d.ts +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.d.ts +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/Stepper.stories.cjs.js +1 -0
- package/dist/components/stories/Stepper.stories.d.ts +7 -0
- package/dist/components/stories/Stepper.stories.es.js +161 -0
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.d.ts +1 -1
- package/dist/components/stories/TabList.stories.es.js +1 -1
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.d.ts +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.d.ts +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/TreeView.stories.cjs.js +3 -3
- package/dist/components/stories/TreeView.stories.d.ts +1 -1
- package/dist/components/stories/TreeView.stories.es.js +39 -38
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.d.ts +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-BlKmtOkV.js → createSvgIcon-B1E6Wo8z.js} +7 -8
- package/dist/createSvgIcon-IET9soda.cjs +1 -0
- package/dist/{dividerClasses-Glz8RJdF.js → dividerClasses-BPJZ8SFy.js} +1 -1
- package/dist/dividerClasses-C07OJKLL.cjs +1 -0
- package/dist/elementAcceptingRef-BZ42cOGO.cjs +1 -0
- package/dist/{extendSxProp-BouzOuB6.js → extendSxProp-CesAxox9.js} +1 -1
- package/dist/extendSxProp-ZMCunXYm.cjs +1 -0
- package/dist/identifier-BoZelETM.cjs +55 -0
- package/dist/{generateUtilityClasses-DngCqveO.js → identifier-PWESmBq6.js} +582 -612
- package/dist/{index-l8yqod25.js → index-8G2jvqZ8.js} +4 -4
- package/dist/index-D3lMWU76.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +402 -391
- package/dist/integerPropType-BihGt2aU.js +31 -0
- package/dist/integerPropType-CR7ytEJG.cjs +1 -0
- package/dist/{listItemTextClasses-BRj19IXv.js → listItemTextClasses-B5VhLd9W.js} +1 -1
- package/dist/listItemTextClasses-CJDKfXvl.cjs +1 -0
- package/dist/{memoTheme-BAbn60Cb.cjs → memoTheme-BKfsJx_F.cjs} +1 -1
- package/dist/{memoTheme-nmt7i1dS.js → memoTheme-DAFDflPY.js} +1 -1
- package/dist/{mergeSlotProps-BBciKnr4.js → mergeSlotProps-ChAye7iz.js} +1 -1
- package/dist/mergeSlotProps-DXwOW3FE.cjs +1 -0
- package/dist/styled-C7gyRDlj.js +5 -0
- package/dist/styled-Cax0O00h.cjs +1 -0
- package/dist/useControlled-QrrYcKxm.cjs +3 -0
- package/dist/useControlled-nm4pBabJ.js +31 -0
- package/dist/{useEventCallback-Yoj9nCug.js → useEventCallback-Y2KwRxBw.js} +2 -2
- package/dist/usePreviousProps-ByGlbpJ6.js +10 -0
- package/dist/usePreviousProps-jC3PWcIp.cjs +1 -0
- package/dist/{useSlot-BDb1lvxu.js → useSlot-BzdKwDQ5.js} +1 -1
- package/dist/useSlot-C2FjoUpF.cjs +1 -0
- package/dist/{useSlotProps-OhEflPiz.cjs → useSlotProps-CrQGQLdL.cjs} +1 -1
- package/dist/{useSlotProps-B_D8u0j-.js → useSlotProps-DdMuGelR.js} +1 -1
- package/dist/{useTheme-D9cVynB-.js → useTheme--i9fxE_A.js} +1 -1
- package/dist/useTheme-BLMJDSsv.cjs +1 -0
- package/dist/useTheme-CooC_6Ep.cjs +1 -0
- package/dist/useTheme-XJ9sFCWX.js +11 -0
- package/dist/{useThemeProps-ggw56DH-.js → useThemeProps-B4VFkcP0.js} +4 -4
- package/dist/{useThemeProps-DQOn-ezC.cjs → useThemeProps-B9E_wuN9.cjs} +1 -1
- package/dist/useThemeProps-C1A3rnbh.cjs +1 -0
- package/dist/useThemeProps-CQ9rZe7g.js +17 -0
- package/package.json +12 -11
- package/dist/Alert-DW8yCR-B.cjs +0 -1
- package/dist/Autocomplete-D9hZ2wrR.cjs +0 -6
- package/dist/Backdrop-3TL73mAe.cjs +0 -1
- package/dist/Badge-DhyDno9j.cjs +0 -138
- package/dist/Box-DYD6q-6M.cjs +0 -1
- package/dist/Button-y1LmxqGA.cjs +0 -1
- package/dist/ButtonBase-Cteo-mSC.cjs +0 -74
- package/dist/CardContent-ji0_AneN.cjs +0 -1
- package/dist/Checkbox-XXqW_dbW.cjs +0 -1
- package/dist/Chip-Bpcd3tnL.cjs +0 -1
- package/dist/CircularProgress-Wqx0-T36.cjs +0 -28
- package/dist/CustomTreeItem-DPyfIueW.cjs +0 -3
- package/dist/CustomTreeItem-hIRSCwAW.js +0 -1336
- package/dist/DatePicker-BMzW4v1g.js +0 -10255
- package/dist/DatePicker-CNhBoaI3.cjs +0 -14
- package/dist/DefaultPropsProvider-B1crdkTC.cjs +0 -1
- package/dist/Dialog-B2LKe7ZM.cjs +0 -1
- package/dist/DialogContent-BbCu_OEw.cjs +0 -1
- package/dist/DialogTitle-SwUSpeBT.cjs +0 -1
- package/dist/Divider-Cshcr5kR.cjs +0 -1
- package/dist/FormLabel-0LbNeQQU.cjs +0 -2
- package/dist/Grow-aEgTOewU.cjs +0 -1
- package/dist/IconButton-BKwDNYJl.cjs +0 -2
- package/dist/InputAdornment-C7e-kyf7.cjs +0 -1
- package/dist/InputBase-pYQWRFK2.cjs +0 -3
- package/dist/Link-DUtuCYMx.cjs +0 -1
- package/dist/List-BH_S4Hqm.cjs +0 -1
- package/dist/ListItem-D33t-hkx.cjs +0 -1
- package/dist/ListItemText-B8jlTz59.cjs +0 -2
- package/dist/ListItemText-BeyHu1da.js +0 -853
- package/dist/Menu-BjrN8rMF.cjs +0 -7
- package/dist/MenuItem-Cz_x60jl.cjs +0 -1
- package/dist/Modal-DxwlW5NV.cjs +0 -2
- package/dist/Paper-984iTz4H.js +0 -186
- package/dist/Paper-Bh9CKUCb.cjs +0 -2
- package/dist/Popper-yO_RaCbM.cjs +0 -4
- package/dist/Portal-B5KqLEa0.cjs +0 -1
- package/dist/Radio-C7zzpRFc.cjs +0 -1
- package/dist/RadioGroup-BlUWRmLG.cjs +0 -1
- package/dist/Select-Doay7ukI.cjs +0 -3
- package/dist/Stack-BVWbOqY_.cjs +0 -1
- package/dist/Switch-CEfqaD33.cjs +0 -1
- package/dist/SwitchBase-DvCITKv8.cjs +0 -1
- package/dist/Tab-C6H241Pf.cjs +0 -4
- package/dist/TextField-bE2NUKKK.cjs +0 -1
- package/dist/Tooltip-D_w-IJoD.cjs +0 -4
- package/dist/Typography-De-21leI.cjs +0 -1
- package/dist/capitalize-BHFotl9B.js +0 -9
- package/dist/capitalize-CKLkSyDO.cjs +0 -1
- package/dist/composeClasses-CJKlIaRn.js +0 -51
- package/dist/composeClasses-CWgX5SFD.cjs +0 -1
- package/dist/createSvgIcon-BgBODH2F.cjs +0 -1
- package/dist/dividerClasses-D3gnW6kZ.cjs +0 -1
- package/dist/extendSxProp-Cm-DtZe3.cjs +0 -1
- package/dist/generateUtilityClasses-CMlilM6r.cjs +0 -55
- package/dist/getReactElementRef-EVJnBPlV.cjs +0 -1
- package/dist/index-BzsuDIEl.cjs +0 -1
- package/dist/listItemTextClasses-BJFgw1ah.cjs +0 -1
- package/dist/mergeSlotProps-Z5-o9vSe.cjs +0 -1
- package/dist/useControlled-BYdyS7Pn.js +0 -31
- package/dist/useControlled-Ysk4KqoX.cjs +0 -3
- package/dist/useSlot-W0PiuVaZ.cjs +0 -1
- package/dist/useTheme-C59wIJ3-.js +0 -11
- package/dist/useTheme-ClhInrO2.cjs +0 -1
- package/dist/useTheme-CqYtLDbs.cjs +0 -1
- package/dist/useThemeProps-BFQ8ndnj.js +0 -17
- package/dist/useThemeProps-DYpozGhe.cjs +0 -1
- package/dist/{getReactElementRef-H8kwrWP1.js → elementAcceptingRef-CEweUuUA.js} +5 -5
|
@@ -1,35 +1,34 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
2
|
import { P as e } from "./index-Sy88PpwE.js";
|
|
3
|
-
import { F as P, G as B, H as V } from "./
|
|
3
|
+
import { F as P, G as B, H as V, K as x } from "./identifier-PWESmBq6.js";
|
|
4
4
|
import { a as Q, i as A } from "./utils-DWqc1kRF.js";
|
|
5
5
|
import { F as X, u as Y } from "./useFormControl-CatNKXAi.js";
|
|
6
6
|
import { jsx as D, jsxs as I } from "react/jsx-runtime";
|
|
7
|
-
import { u as z, s as
|
|
7
|
+
import { u as z, s as L, c as _ } from "./DefaultPropsProvider-DqazQPtr.js";
|
|
8
8
|
import { i as w } from "./isMuiElement-DnSE4qG4.js";
|
|
9
|
-
import { c as L } from "./capitalize-BHFotl9B.js";
|
|
10
9
|
import { f as Z } from "./formControlState-vgaj2ksH.js";
|
|
11
|
-
import { m as H } from "./memoTheme-
|
|
10
|
+
import { m as H } from "./memoTheme-DAFDflPY.js";
|
|
12
11
|
import { c as ee } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
13
12
|
function oe(o) {
|
|
14
13
|
return B("MuiFormControl", o);
|
|
15
14
|
}
|
|
16
|
-
const
|
|
15
|
+
const ve = P("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]), re = (o) => {
|
|
17
16
|
const {
|
|
18
17
|
classes: r,
|
|
19
18
|
margin: s,
|
|
20
19
|
fullWidth: a
|
|
21
20
|
} = o, t = {
|
|
22
|
-
root: ["root", s !== "none" && `margin${
|
|
21
|
+
root: ["root", s !== "none" && `margin${x(s)}`, a && "fullWidth"]
|
|
23
22
|
};
|
|
24
23
|
return _(t, oe, r);
|
|
25
|
-
}, se =
|
|
24
|
+
}, se = L("div", {
|
|
26
25
|
name: "MuiFormControl",
|
|
27
26
|
slot: "Root",
|
|
28
27
|
overridesResolver: (o, r) => {
|
|
29
28
|
const {
|
|
30
29
|
ownerState: s
|
|
31
30
|
} = o;
|
|
32
|
-
return [r.root, r[`margin${
|
|
31
|
+
return [r.root, r[`margin${x(s.margin)}`], s.fullWidth && r.fullWidth];
|
|
33
32
|
}
|
|
34
33
|
})({
|
|
35
34
|
display: "inline-flex",
|
|
@@ -73,7 +72,7 @@ const Se = P("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDen
|
|
|
73
72
|
}), {
|
|
74
73
|
children: t,
|
|
75
74
|
className: f,
|
|
76
|
-
color:
|
|
75
|
+
color: m = "primary",
|
|
77
76
|
component: d = "div",
|
|
78
77
|
disabled: i = !1,
|
|
79
78
|
error: y = !1,
|
|
@@ -81,23 +80,23 @@ const Se = P("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDen
|
|
|
81
80
|
fullWidth: g = !1,
|
|
82
81
|
hiddenLabel: F = !1,
|
|
83
82
|
margin: h = "none",
|
|
84
|
-
required:
|
|
83
|
+
required: p = !1,
|
|
85
84
|
size: n = "medium",
|
|
86
85
|
variant: u = "outlined",
|
|
87
86
|
...C
|
|
88
87
|
} = a, M = {
|
|
89
88
|
...a,
|
|
90
|
-
color:
|
|
89
|
+
color: m,
|
|
91
90
|
component: d,
|
|
92
91
|
disabled: i,
|
|
93
92
|
error: y,
|
|
94
93
|
fullWidth: g,
|
|
95
94
|
hiddenLabel: F,
|
|
96
95
|
margin: h,
|
|
97
|
-
required:
|
|
96
|
+
required: p,
|
|
98
97
|
size: n,
|
|
99
98
|
variant: u
|
|
100
|
-
}, G = re(M), [q,
|
|
99
|
+
}, G = re(M), [q, K] = l.useState(() => {
|
|
101
100
|
let b = !1;
|
|
102
101
|
return t && l.Children.forEach(t, (c) => {
|
|
103
102
|
if (!w(c, ["Input", "Select"]))
|
|
@@ -105,32 +104,32 @@ const Se = P("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDen
|
|
|
105
104
|
const U = w(c, ["Select"]) ? c.props.input : c;
|
|
106
105
|
U && Q(U.props) && (b = !0);
|
|
107
106
|
}), b;
|
|
108
|
-
}), [E,
|
|
107
|
+
}), [E, j] = l.useState(() => {
|
|
109
108
|
let b = !1;
|
|
110
109
|
return t && l.Children.forEach(t, (c) => {
|
|
111
110
|
w(c, ["Input", "Select"]) && (A(c.props, !0) || A(c.props.inputProps, !0)) && (b = !0);
|
|
112
111
|
}), b;
|
|
113
|
-
}), [
|
|
114
|
-
i &&
|
|
115
|
-
const
|
|
112
|
+
}), [R, O] = l.useState(!1);
|
|
113
|
+
i && R && O(!1);
|
|
114
|
+
const W = S !== void 0 && !i ? S : R;
|
|
116
115
|
let T;
|
|
117
116
|
const N = l.useRef(!1);
|
|
118
117
|
process.env.NODE_ENV !== "production" && (T = () => (N.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
119
118
|
`)), N.current = !0, () => {
|
|
120
119
|
N.current = !1;
|
|
121
120
|
}));
|
|
122
|
-
const
|
|
123
|
-
|
|
121
|
+
const k = l.useCallback(() => {
|
|
122
|
+
j(!0);
|
|
124
123
|
}, []), $ = l.useCallback(() => {
|
|
125
|
-
|
|
126
|
-
}, []),
|
|
124
|
+
j(!1);
|
|
125
|
+
}, []), J = l.useMemo(() => ({
|
|
127
126
|
adornedStart: q,
|
|
128
|
-
setAdornedStart:
|
|
129
|
-
color:
|
|
127
|
+
setAdornedStart: K,
|
|
128
|
+
color: m,
|
|
130
129
|
disabled: i,
|
|
131
130
|
error: y,
|
|
132
131
|
filled: E,
|
|
133
|
-
focused:
|
|
132
|
+
focused: W,
|
|
134
133
|
fullWidth: g,
|
|
135
134
|
hiddenLabel: F,
|
|
136
135
|
size: n,
|
|
@@ -141,13 +140,13 @@ const Se = P("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDen
|
|
|
141
140
|
O(!0);
|
|
142
141
|
},
|
|
143
142
|
onEmpty: $,
|
|
144
|
-
onFilled:
|
|
143
|
+
onFilled: k,
|
|
145
144
|
registerEffect: T,
|
|
146
|
-
required:
|
|
145
|
+
required: p,
|
|
147
146
|
variant: u
|
|
148
|
-
}), [q,
|
|
147
|
+
}), [q, m, i, y, E, W, g, F, T, $, k, p, n, u]);
|
|
149
148
|
return /* @__PURE__ */ D(X.Provider, {
|
|
150
|
-
value:
|
|
149
|
+
value: J,
|
|
151
150
|
children: /* @__PURE__ */ D(se, {
|
|
152
151
|
as: d,
|
|
153
152
|
ownerState: M,
|
|
@@ -248,14 +247,14 @@ const v = P("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "e
|
|
|
248
247
|
focused: a,
|
|
249
248
|
disabled: t,
|
|
250
249
|
error: f,
|
|
251
|
-
filled:
|
|
250
|
+
filled: m,
|
|
252
251
|
required: d
|
|
253
252
|
} = o, i = {
|
|
254
|
-
root: ["root", `color${
|
|
253
|
+
root: ["root", `color${x(s)}`, t && "disabled", f && "error", m && "filled", a && "focused", d && "required"],
|
|
255
254
|
asterisk: ["asterisk", f && "error"]
|
|
256
255
|
};
|
|
257
256
|
return _(i, ne, r);
|
|
258
|
-
}, ae =
|
|
257
|
+
}, ae = L("label", {
|
|
259
258
|
name: "MuiFormLabel",
|
|
260
259
|
slot: "Root",
|
|
261
260
|
overridesResolver: (o, r) => {
|
|
@@ -292,10 +291,9 @@ const v = P("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "e
|
|
|
292
291
|
}
|
|
293
292
|
}
|
|
294
293
|
}]
|
|
295
|
-
}))), ie =
|
|
294
|
+
}))), ie = L("span", {
|
|
296
295
|
name: "MuiFormLabel",
|
|
297
|
-
slot: "Asterisk"
|
|
298
|
-
overridesResolver: (o, r) => r.asterisk
|
|
296
|
+
slot: "Asterisk"
|
|
299
297
|
})(H(({
|
|
300
298
|
theme: o
|
|
301
299
|
}) => ({
|
|
@@ -309,7 +307,7 @@ const v = P("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "e
|
|
|
309
307
|
}), {
|
|
310
308
|
children: t,
|
|
311
309
|
className: f,
|
|
312
|
-
color:
|
|
310
|
+
color: m,
|
|
313
311
|
component: d = "label",
|
|
314
312
|
disabled: i,
|
|
315
313
|
error: y,
|
|
@@ -317,9 +315,9 @@ const v = P("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "e
|
|
|
317
315
|
focused: g,
|
|
318
316
|
required: F,
|
|
319
317
|
...h
|
|
320
|
-
} = a,
|
|
318
|
+
} = a, p = Y(), n = Z({
|
|
321
319
|
props: a,
|
|
322
|
-
muiFormControl:
|
|
320
|
+
muiFormControl: p,
|
|
323
321
|
states: ["color", "required", "focused", "disabled", "error", "filled"]
|
|
324
322
|
}), u = {
|
|
325
323
|
...a,
|
|
@@ -404,6 +402,6 @@ export {
|
|
|
404
402
|
v as b,
|
|
405
403
|
ae as c,
|
|
406
404
|
ne as d,
|
|
407
|
-
|
|
405
|
+
ve as f,
|
|
408
406
|
oe as g
|
|
409
407
|
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const Q=require("react"),e=require("./index-DLnSn8GT.cjs"),a=require("./identifier-BoZelETM.cjs"),L=require("./utils-BWx1W_q1.cjs"),z=require("./useFormControl-haP0iPhl.cjs"),S=require("react/jsx-runtime"),f=require("./DefaultPropsProvider-Cnf49AIv.cjs"),M=require("./isMuiElement-BzDAj3yJ.cjs"),X=require("./formControlState-CuX6WjAX.cjs"),A=require("./memoTheme-BKfsJx_F.cjs"),Y=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs");function Z(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const t=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(r,s,t.get?t:{enumerable:!0,get:()=>o[s]})}}return r.default=o,Object.freeze(r)}const i=Z(Q);function I(o){return a.generateUtilityClass("MuiFormControl",o)}const ee=a.generateUtilityClasses("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]),oe=o=>{const{classes:r,margin:s,fullWidth:t}=o,n={root:["root",s!=="none"&&`margin${a.capitalize(s)}`,t&&"fullWidth"]};return f.composeClasses(n,I,r)},re=f.styled("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:s}=o;return[r.root,r[`margin${a.capitalize(s.margin)}`],s.fullWidth&&r.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),_=i.forwardRef(function(r,s){const t=f.useDefaultProps({props:r,name:"MuiFormControl"}),{children:n,className:m,color:y="primary",component:u="div",disabled:p=!1,error:g=!1,focused:O,fullWidth:C=!1,hiddenLabel:F=!1,margin:q="none",required:T=!1,size:l="medium",variant:d="outlined",...v}=t,N={...t,color:y,component:u,disabled:p,error:g,fullWidth:C,hiddenLabel:F,margin:q,required:T,size:l,variant:d},G=oe(N),[E,J]=i.useState(()=>{let b=!1;return n&&i.Children.forEach(n,c=>{if(!M.isMuiElement(c,["Input","Select"]))return;const $=M.isMuiElement(c,["Select"])?c.props.input:c;$&&L.isAdornedStart($.props)&&(b=!0)}),b}),[w,R]=i.useState(()=>{let b=!1;return n&&i.Children.forEach(n,c=>{M.isMuiElement(c,["Input","Select"])&&(L.isFilled(c.props,!0)||L.isFilled(c.props.inputProps,!0))&&(b=!0)}),b}),[U,h]=i.useState(!1);p&&U&&h(!1);const D=O!==void 0&&!p?O:U;let j;const x=i.useRef(!1);process.env.NODE_ENV!=="production"&&(j=()=>(x.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
2
|
+
`)),x.current=!0,()=>{x.current=!1}));const k=i.useCallback(()=>{R(!0)},[]),W=i.useCallback(()=>{R(!1)},[]),K=i.useMemo(()=>({adornedStart:E,setAdornedStart:J,color:y,disabled:p,error:g,filled:w,focused:D,fullWidth:C,hiddenLabel:F,size:l,onBlur:()=>{h(!1)},onFocus:()=>{h(!0)},onEmpty:W,onFilled:k,registerEffect:j,required:T,variant:d}),[E,y,p,g,w,D,C,F,j,W,k,T,l,d]);return S.jsx(z.FormControlContext.Provider,{value:K,children:S.jsx(re,{as:u,ownerState:N,className:a.clsx(G.root,m),ref:s,...v,children:n})})});process.env.NODE_ENV!=="production"&&(_.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["primary","secondary","error","info","success","warning"]),e.PropTypes.string]),component:e.PropTypes.elementType,disabled:e.PropTypes.bool,error:e.PropTypes.bool,focused:e.PropTypes.bool,fullWidth:e.PropTypes.bool,hiddenLabel:e.PropTypes.bool,margin:e.PropTypes.oneOf(["dense","none","normal"]),required:e.PropTypes.bool,size:e.PropTypes.oneOfType([e.PropTypes.oneOf(["medium","small"]),e.PropTypes.string]),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),variant:e.PropTypes.oneOf(["filled","outlined","standard"])});function B(o){return a.generateUtilityClass("MuiFormLabel",o)}const P=a.generateUtilityClasses("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),se=o=>{const{classes:r,color:s,focused:t,disabled:n,error:m,filled:y,required:u}=o,p={root:["root",`color${a.capitalize(s)}`,n&&"disabled",m&&"error",y&&"filled",t&&"focused",u&&"required"],asterisk:["asterisk",m&&"error"]};return f.composeClasses(p,B,r)},V=f.styled("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:s}=o;return[r.root,s.color==="secondary"&&r.colorSecondary,s.filled&&r.filled]}})(A.memoTheme(({theme:o})=>({color:(o.vars||o).palette.text.secondary,...o.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(o.palette).filter(Y.createSimplePaletteValueFilter()).map(([r])=>({props:{color:r},style:{[`&.${P.focused}`]:{color:(o.vars||o).palette[r].main}}})),{props:{},style:{[`&.${P.disabled}`]:{color:(o.vars||o).palette.text.disabled},[`&.${P.error}`]:{color:(o.vars||o).palette.error.main}}}]}))),te=f.styled("span",{name:"MuiFormLabel",slot:"Asterisk"})(A.memoTheme(({theme:o})=>({[`&.${P.error}`]:{color:(o.vars||o).palette.error.main}}))),H=i.forwardRef(function(r,s){const t=f.useDefaultProps({props:r,name:"MuiFormLabel"}),{children:n,className:m,color:y,component:u="label",disabled:p,error:g,filled:O,focused:C,required:F,...q}=t,T=z.useFormControl(),l=X.formControlState({props:t,muiFormControl:T,states:["color","required","focused","disabled","error","filled"]}),d={...t,color:l.color||"primary",component:u,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required},v=se(d);return S.jsxs(V,{as:u,ownerState:d,className:a.clsx(v.root,m),ref:s,...q,children:[n,l.required&&S.jsxs(te,{ownerState:d,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(H.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["error","info","primary","secondary","success","warning"]),e.PropTypes.string]),component:e.PropTypes.elementType,disabled:e.PropTypes.bool,error:e.PropTypes.bool,filled:e.PropTypes.bool,focused:e.PropTypes.bool,required:e.PropTypes.bool,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])});exports.FormControl=_;exports.FormLabel=H;exports.FormLabelRoot=V;exports.formControlClasses=ee;exports.formLabelClasses=P;exports.getFormControlUtilityClasses=I;exports.getFormLabelUtilityClasses=B;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("./index-DLnSn8GT.cjs"),J=require("./useTheme-CooC_6Ep.cjs"),Q=require("react"),x=require("./identifier-BoZelETM.cjs"),X=require("react/jsx-runtime"),Z=require("./styled-Cax0O00h.cjs"),ee=require("./useTheme-BLMJDSsv.cjs"),re=require("./extendSxProp-ZMCunXYm.cjs"),oe=require("./isMuiElement-BzDAj3yJ.cjs"),ne=require("./useThemeProps-B9E_wuN9.cjs"),E=require("./DefaultPropsProvider-Cnf49AIv.cjs");function se(r){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const n in r)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(o,n,s.get?s:{enumerable:!0,get:()=>r[n]})}}return o.default=r,Object.freeze(o)}const O=se(Q),pe=(r,o)=>r.filter(n=>o.includes(n)),b=(r,o,n)=>{const s=r.keys[0];Array.isArray(o)?o.forEach((t,p)=>{n((i,P)=>{p<=r.keys.length-1&&(p===0?Object.assign(i,P):i[r.up(r.keys[p])]=P)},t)}):o&&typeof o=="object"?(Object.keys(o).length>r.keys.length?r.keys:pe(r.keys,Object.keys(o))).forEach(p=>{if(r.keys.includes(p)){const i=o[p];i!==void 0&&n((P,l)=>{s===p?Object.assign(P,l):P[r.up(p)]=l},i)}}):(typeof o=="number"||typeof o=="string")&&n((t,p)=>{Object.assign(t,p)},o)};function w(r){return`--Grid-${r}Spacing`}function h(r){return`--Grid-parent-${r}Spacing`}const q="--Grid-columns",g="--Grid-parent-columns",te=({theme:r,ownerState:o})=>{const n={};return b(r.breakpoints,o.size,(s,t)=>{let p={};t==="grow"&&(p={flexBasis:0,flexGrow:1,maxWidth:"100%"}),t==="auto"&&(p={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof t=="number"&&(p={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${t} / var(${g}) - (var(${g}) - ${t}) * (var(${h("column")}) / var(${g})))`}),s(n,p)}),n},ie=({theme:r,ownerState:o})=>{const n={};return b(r.breakpoints,o.offset,(s,t)=>{let p={};t==="auto"&&(p={marginLeft:"auto"}),typeof t=="number"&&(p={marginLeft:t===0?"0px":`calc(100% * ${t} / var(${g}) + var(${h("column")}) * ${t} / var(${g}))`}),s(n,p)}),n},ce=({theme:r,ownerState:o})=>{if(!o.container)return{};const n={[q]:12};return b(r.breakpoints,o.columns,(s,t)=>{const p=t??12;s(n,{[q]:p,"> *":{[g]:p}})}),n},ye=({theme:r,ownerState:o})=>{if(!o.container)return{};const n={};return b(r.breakpoints,o.rowSpacing,(s,t)=>{var i;const p=typeof t=="string"?t:(i=r.spacing)==null?void 0:i.call(r,t);s(n,{[w("row")]:p,"> *":{[h("row")]:p}})}),n},ae=({theme:r,ownerState:o})=>{if(!o.container)return{};const n={};return b(r.breakpoints,o.columnSpacing,(s,t)=>{var i;const p=typeof t=="string"?t:(i=r.spacing)==null?void 0:i.call(r,t);s(n,{[w("column")]:p,"> *":{[h("column")]:p}})}),n},ue=({theme:r,ownerState:o})=>{if(!o.container)return{};const n={};return b(r.breakpoints,o.direction,(s,t)=>{s(n,{flexDirection:t})}),n},fe=({ownerState:r})=>({minWidth:0,boxSizing:"border-box",...r.container&&{display:"flex",flexWrap:"wrap",...r.wrap&&r.wrap!=="wrap"&&{flexWrap:r.wrap},gap:`var(${w("row")}) var(${w("column")})`}}),Te=r=>{const o=[];return Object.entries(r).forEach(([n,s])=>{s!==!1&&s!==void 0&&o.push(`grid-${n}-${String(s)}`)}),o},Pe=(r,o="xs")=>{function n(s){return s===void 0?!1:typeof s=="string"&&!Number.isNaN(Number(s))||typeof s=="number"&&s>0}if(n(r))return[`spacing-${o}-${String(r)}`];if(typeof r=="object"&&!Array.isArray(r)){const s=[];return Object.entries(r).forEach(([t,p])=>{n(p)&&s.push(`spacing-${t}-${String(p)}`)}),s}return[]},le=r=>r===void 0?[]:typeof r=="object"?Object.entries(r).map(([o,n])=>`direction-${o}-${n}`):[`direction-xs-${String(r)}`],me=r=>["item","zeroMinWidth"].includes(r)?`The \`${r}\` prop has been removed and is no longer necessary. You can safely remove it.`:`The \`${r}\` prop has been removed. See https://mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`,M=[];function de(r,o){const n=[];r.item!==void 0&&(delete r.item,n.push("item")),r.zeroMinWidth!==void 0&&(delete r.zeroMinWidth,n.push("zeroMinWidth")),o.keys.forEach(s=>{r[s]!==void 0&&(n.push(s),delete r[s])}),process.env.NODE_ENV!=="production"&&n.forEach(s=>{M.includes(s)||(M.push(s),console.warn(`MUI Grid: ${me(s)}
|
|
2
|
+
`))})}const ge=x.createTheme$1(),be=Z.styled("div",{name:"MuiGrid",slot:"Root"});function Oe(r){return ne.useThemeProps({props:r,name:"MuiGrid",defaultTheme:ge})}function we(r={}){const{createStyledComponent:o=be,useThemeProps:n=Oe,useTheme:s=ee.useTheme,componentName:t="MuiGrid"}=r,p=(u,c)=>{const{container:T,direction:y,spacing:f,wrap:a,size:S}=u,j={root:["root",T&&"container",a!=="wrap"&&`wrap-xs-${String(a)}`,...le(y),...Te(S),...T?Pe(f,c.breakpoints.keys[0]):[]]};return E.composeClasses(j,$=>x.generateUtilityClass(t,$),{})};function i(u,c,T=()=>!0){const y={};return u===null||(Array.isArray(u)?u.forEach((f,a)=>{f!==null&&T(f)&&c.keys[a]&&(y[c.keys[a]]=f)}):typeof u=="object"?Object.keys(u).forEach(f=>{const a=u[f];a!=null&&T(a)&&(y[f]=a)}):y[c.keys[0]]=u),y}const P=o(ce,ae,ye,te,ue,fe,ie),l=O.forwardRef(function(c,T){const y=s(),f=n(c),a=re.extendSxProp(f);de(a,y.breakpoints);const{className:S,children:j,columns:$=12,container:k=!1,component:D="div",direction:v="row",wrap:_="wrap",size:R={},offset:W={},spacing:G=0,rowSpacing:A=G,columnSpacing:B=G,unstable_level:d=0,...V}=a,L=i(R,y.breakpoints,m=>m!==!1),U=i(W,y.breakpoints),F=c.columns??(d?void 0:$),I=c.spacing??(d?void 0:G),K=c.rowSpacing??c.spacing??(d?void 0:A),Y=c.columnSpacing??c.spacing??(d?void 0:B),C={...a,level:d,columns:F,container:k,direction:v,wrap:_,spacing:I,rowSpacing:K,columnSpacing:Y,size:L,offset:U},H=p(C,y);return X.jsx(P,{ref:T,as:D,ownerState:C,className:x.clsx(H.root,S),...V,children:O.Children.map(j,m=>{var z;return O.isValidElement(m)&&oe.isMuiElement(m,["Grid"])&&k&&m.props.container?O.cloneElement(m,{unstable_level:((z=m.props)==null?void 0:z.unstable_level)??d+1}):m})})});return process.env.NODE_ENV!=="production"&&(l.propTypes={children:e.PropTypes.node,className:e.PropTypes.string,columns:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.number),e.PropTypes.number,e.PropTypes.object]),columnSpacing:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string])),e.PropTypes.number,e.PropTypes.object,e.PropTypes.string]),component:e.PropTypes.elementType,container:e.PropTypes.bool,direction:e.PropTypes.oneOfType([e.PropTypes.oneOf(["column-reverse","column","row-reverse","row"]),e.PropTypes.arrayOf(e.PropTypes.oneOf(["column-reverse","column","row-reverse","row"])),e.PropTypes.object]),offset:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number,e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number])),e.PropTypes.object]),rowSpacing:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string])),e.PropTypes.number,e.PropTypes.object,e.PropTypes.string]),size:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.bool,e.PropTypes.number,e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.bool,e.PropTypes.number])),e.PropTypes.object]),spacing:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string])),e.PropTypes.number,e.PropTypes.object,e.PropTypes.string]),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),wrap:e.PropTypes.oneOf(["nowrap","wrap-reverse","wrap"])}),l.muiName="Grid",l}function he(r,o){if(process.env.NODE_ENV==="production")return()=>()=>null;const n=o?{...o.propTypes}:null;return t=>(p,i,P,l,u,...c)=>{const T=u||i,y=n==null?void 0:n[T];if(y){const f=y(p,i,P,l,u,...c);if(f)return f}return typeof p[i]<"u"&&!p[t]?new Error(`The prop \`${T}\` of \`${r}\` can only be used together with the \`${t}\` prop.`):null}}const N=we({createStyledComponent:E.styled("div",{name:"MuiGrid",slot:"Root",overridesResolver:(r,o)=>{const{ownerState:n}=r;return[o.root,n.container&&o.container]}}),componentName:"MuiGrid",useThemeProps:r=>E.useDefaultProps({props:r,name:"MuiGrid"}),useTheme:J.useTheme});process.env.NODE_ENV!=="production"&&(N.propTypes={children:e.PropTypes.node,columns:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.number),e.PropTypes.number,e.PropTypes.object]),columnSpacing:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string])),e.PropTypes.number,e.PropTypes.object,e.PropTypes.string]),container:e.PropTypes.bool,direction:e.PropTypes.oneOfType([e.PropTypes.oneOf(["column-reverse","column","row-reverse","row"]),e.PropTypes.arrayOf(e.PropTypes.oneOf(["column-reverse","column","row-reverse","row"])),e.PropTypes.object]),offset:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number,e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number])),e.PropTypes.object]),rowSpacing:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string])),e.PropTypes.number,e.PropTypes.object,e.PropTypes.string]),size:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.bool,e.PropTypes.number,e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.bool,e.PropTypes.number])),e.PropTypes.object]),spacing:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string])),e.PropTypes.number,e.PropTypes.object,e.PropTypes.string]),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),unstable_level:e.PropTypes.number,wrap:e.PropTypes.oneOf(["nowrap","wrap-reverse","wrap"])});if(process.env.NODE_ENV!=="production"){const r=N,o=he("Grid",r);r.propTypes={...r.propTypes,direction:o("container"),spacing:o("container"),wrap:o("container")}}exports.Grid=N;
|
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
import { P as e } from "./index-Sy88PpwE.js";
|
|
2
|
+
import { u as K } from "./useTheme-XJ9sFCWX.js";
|
|
3
|
+
import * as w from "react";
|
|
4
|
+
import { H as Q, G as Y, Q as J } from "./identifier-PWESmBq6.js";
|
|
5
|
+
import { jsx as X } from "react/jsx-runtime";
|
|
6
|
+
import { s as Z } from "./styled-C7gyRDlj.js";
|
|
7
|
+
import { u as ee } from "./useTheme--i9fxE_A.js";
|
|
8
|
+
import { e as ne } from "./extendSxProp-CesAxox9.js";
|
|
9
|
+
import { i as re } from "./isMuiElement-DnSE4qG4.js";
|
|
10
|
+
import { u as oe } from "./useThemeProps-B4VFkcP0.js";
|
|
11
|
+
import { c as te, s as se, u as ie } from "./DefaultPropsProvider-DqazQPtr.js";
|
|
12
|
+
const ce = (n, r) => n.filter((o) => r.includes(o)), T = (n, r, o) => {
|
|
13
|
+
const t = n.keys[0];
|
|
14
|
+
Array.isArray(r) ? r.forEach((i, s) => {
|
|
15
|
+
o((c, y) => {
|
|
16
|
+
s <= n.keys.length - 1 && (s === 0 ? Object.assign(c, y) : c[n.up(n.keys[s])] = y);
|
|
17
|
+
}, i);
|
|
18
|
+
}) : r && typeof r == "object" ? (Object.keys(r).length > n.keys.length ? n.keys : ce(n.keys, Object.keys(r))).forEach((s) => {
|
|
19
|
+
if (n.keys.includes(s)) {
|
|
20
|
+
const c = r[s];
|
|
21
|
+
c !== void 0 && o((y, d) => {
|
|
22
|
+
t === s ? Object.assign(y, d) : y[n.up(s)] = d;
|
|
23
|
+
}, c);
|
|
24
|
+
}
|
|
25
|
+
}) : (typeof r == "number" || typeof r == "string") && o((i, s) => {
|
|
26
|
+
Object.assign(i, s);
|
|
27
|
+
}, r);
|
|
28
|
+
};
|
|
29
|
+
function h(n) {
|
|
30
|
+
return `--Grid-${n}Spacing`;
|
|
31
|
+
}
|
|
32
|
+
function S(n) {
|
|
33
|
+
return `--Grid-parent-${n}Spacing`;
|
|
34
|
+
}
|
|
35
|
+
const C = "--Grid-columns", O = "--Grid-parent-columns", ae = ({
|
|
36
|
+
theme: n,
|
|
37
|
+
ownerState: r
|
|
38
|
+
}) => {
|
|
39
|
+
const o = {};
|
|
40
|
+
return T(n.breakpoints, r.size, (t, i) => {
|
|
41
|
+
let s = {};
|
|
42
|
+
i === "grow" && (s = {
|
|
43
|
+
flexBasis: 0,
|
|
44
|
+
flexGrow: 1,
|
|
45
|
+
maxWidth: "100%"
|
|
46
|
+
}), i === "auto" && (s = {
|
|
47
|
+
flexBasis: "auto",
|
|
48
|
+
flexGrow: 0,
|
|
49
|
+
flexShrink: 0,
|
|
50
|
+
maxWidth: "none",
|
|
51
|
+
width: "auto"
|
|
52
|
+
}), typeof i == "number" && (s = {
|
|
53
|
+
flexGrow: 0,
|
|
54
|
+
flexBasis: "auto",
|
|
55
|
+
width: `calc(100% * ${i} / var(${O}) - (var(${O}) - ${i}) * (var(${S("column")}) / var(${O})))`
|
|
56
|
+
}), t(o, s);
|
|
57
|
+
}), o;
|
|
58
|
+
}, fe = ({
|
|
59
|
+
theme: n,
|
|
60
|
+
ownerState: r
|
|
61
|
+
}) => {
|
|
62
|
+
const o = {};
|
|
63
|
+
return T(n.breakpoints, r.offset, (t, i) => {
|
|
64
|
+
let s = {};
|
|
65
|
+
i === "auto" && (s = {
|
|
66
|
+
marginLeft: "auto"
|
|
67
|
+
}), typeof i == "number" && (s = {
|
|
68
|
+
marginLeft: i === 0 ? "0px" : `calc(100% * ${i} / var(${O}) + var(${S("column")}) * ${i} / var(${O}))`
|
|
69
|
+
}), t(o, s);
|
|
70
|
+
}), o;
|
|
71
|
+
}, ue = ({
|
|
72
|
+
theme: n,
|
|
73
|
+
ownerState: r
|
|
74
|
+
}) => {
|
|
75
|
+
if (!r.container)
|
|
76
|
+
return {};
|
|
77
|
+
const o = {
|
|
78
|
+
[C]: 12
|
|
79
|
+
};
|
|
80
|
+
return T(n.breakpoints, r.columns, (t, i) => {
|
|
81
|
+
const s = i ?? 12;
|
|
82
|
+
t(o, {
|
|
83
|
+
[C]: s,
|
|
84
|
+
"> *": {
|
|
85
|
+
[O]: s
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
}), o;
|
|
89
|
+
}, pe = ({
|
|
90
|
+
theme: n,
|
|
91
|
+
ownerState: r
|
|
92
|
+
}) => {
|
|
93
|
+
if (!r.container)
|
|
94
|
+
return {};
|
|
95
|
+
const o = {};
|
|
96
|
+
return T(n.breakpoints, r.rowSpacing, (t, i) => {
|
|
97
|
+
var c;
|
|
98
|
+
const s = typeof i == "string" ? i : (c = n.spacing) == null ? void 0 : c.call(n, i);
|
|
99
|
+
t(o, {
|
|
100
|
+
[h("row")]: s,
|
|
101
|
+
"> *": {
|
|
102
|
+
[S("row")]: s
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}), o;
|
|
106
|
+
}, le = ({
|
|
107
|
+
theme: n,
|
|
108
|
+
ownerState: r
|
|
109
|
+
}) => {
|
|
110
|
+
if (!r.container)
|
|
111
|
+
return {};
|
|
112
|
+
const o = {};
|
|
113
|
+
return T(n.breakpoints, r.columnSpacing, (t, i) => {
|
|
114
|
+
var c;
|
|
115
|
+
const s = typeof i == "string" ? i : (c = n.spacing) == null ? void 0 : c.call(n, i);
|
|
116
|
+
t(o, {
|
|
117
|
+
[h("column")]: s,
|
|
118
|
+
"> *": {
|
|
119
|
+
[S("column")]: s
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
}), o;
|
|
123
|
+
}, me = ({
|
|
124
|
+
theme: n,
|
|
125
|
+
ownerState: r
|
|
126
|
+
}) => {
|
|
127
|
+
if (!r.container)
|
|
128
|
+
return {};
|
|
129
|
+
const o = {};
|
|
130
|
+
return T(n.breakpoints, r.direction, (t, i) => {
|
|
131
|
+
t(o, {
|
|
132
|
+
flexDirection: i
|
|
133
|
+
});
|
|
134
|
+
}), o;
|
|
135
|
+
}, ye = ({
|
|
136
|
+
ownerState: n
|
|
137
|
+
}) => ({
|
|
138
|
+
minWidth: 0,
|
|
139
|
+
boxSizing: "border-box",
|
|
140
|
+
...n.container && {
|
|
141
|
+
display: "flex",
|
|
142
|
+
flexWrap: "wrap",
|
|
143
|
+
...n.wrap && n.wrap !== "wrap" && {
|
|
144
|
+
flexWrap: n.wrap
|
|
145
|
+
},
|
|
146
|
+
gap: `var(${h("row")}) var(${h("column")})`
|
|
147
|
+
}
|
|
148
|
+
}), de = (n) => {
|
|
149
|
+
const r = [];
|
|
150
|
+
return Object.entries(n).forEach(([o, t]) => {
|
|
151
|
+
t !== !1 && t !== void 0 && r.push(`grid-${o}-${String(t)}`);
|
|
152
|
+
}), r;
|
|
153
|
+
}, ge = (n, r = "xs") => {
|
|
154
|
+
function o(t) {
|
|
155
|
+
return t === void 0 ? !1 : typeof t == "string" && !Number.isNaN(Number(t)) || typeof t == "number" && t > 0;
|
|
156
|
+
}
|
|
157
|
+
if (o(n))
|
|
158
|
+
return [`spacing-${r}-${String(n)}`];
|
|
159
|
+
if (typeof n == "object" && !Array.isArray(n)) {
|
|
160
|
+
const t = [];
|
|
161
|
+
return Object.entries(n).forEach(([i, s]) => {
|
|
162
|
+
o(s) && t.push(`spacing-${i}-${String(s)}`);
|
|
163
|
+
}), t;
|
|
164
|
+
}
|
|
165
|
+
return [];
|
|
166
|
+
}, be = (n) => n === void 0 ? [] : typeof n == "object" ? Object.entries(n).map(([r, o]) => `direction-${r}-${o}`) : [`direction-xs-${String(n)}`], Oe = (n) => ["item", "zeroMinWidth"].includes(n) ? `The \`${n}\` prop has been removed and is no longer necessary. You can safely remove it.` : `The \`${n}\` prop has been removed. See https://mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`, P = [];
|
|
167
|
+
function Te(n, r) {
|
|
168
|
+
const o = [];
|
|
169
|
+
n.item !== void 0 && (delete n.item, o.push("item")), n.zeroMinWidth !== void 0 && (delete n.zeroMinWidth, o.push("zeroMinWidth")), r.keys.forEach((t) => {
|
|
170
|
+
n[t] !== void 0 && (o.push(t), delete n[t]);
|
|
171
|
+
}), process.env.NODE_ENV !== "production" && o.forEach((t) => {
|
|
172
|
+
P.includes(t) || (P.push(t), console.warn(`MUI Grid: ${Oe(t)}
|
|
173
|
+
`));
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
const we = J(), he = Z("div", {
|
|
177
|
+
name: "MuiGrid",
|
|
178
|
+
slot: "Root"
|
|
179
|
+
});
|
|
180
|
+
function Se(n) {
|
|
181
|
+
return oe({
|
|
182
|
+
props: n,
|
|
183
|
+
name: "MuiGrid",
|
|
184
|
+
defaultTheme: we
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
function $e(n = {}) {
|
|
188
|
+
const {
|
|
189
|
+
// This will allow adding custom styled fn (for example for custom sx style function)
|
|
190
|
+
createStyledComponent: r = he,
|
|
191
|
+
useThemeProps: o = Se,
|
|
192
|
+
useTheme: t = ee,
|
|
193
|
+
componentName: i = "MuiGrid"
|
|
194
|
+
} = n, s = (p, a) => {
|
|
195
|
+
const {
|
|
196
|
+
container: m,
|
|
197
|
+
direction: f,
|
|
198
|
+
spacing: l,
|
|
199
|
+
wrap: u,
|
|
200
|
+
size: $
|
|
201
|
+
} = p, G = {
|
|
202
|
+
root: ["root", m && "container", u !== "wrap" && `wrap-xs-${String(u)}`, ...be(f), ...de($), ...m ? ge(l, a.breakpoints.keys[0]) : []]
|
|
203
|
+
};
|
|
204
|
+
return te(G, (j) => Y(i, j), {});
|
|
205
|
+
};
|
|
206
|
+
function c(p, a, m = () => !0) {
|
|
207
|
+
const f = {};
|
|
208
|
+
return p === null || (Array.isArray(p) ? p.forEach((l, u) => {
|
|
209
|
+
l !== null && m(l) && a.keys[u] && (f[a.keys[u]] = l);
|
|
210
|
+
}) : typeof p == "object" ? Object.keys(p).forEach((l) => {
|
|
211
|
+
const u = p[l];
|
|
212
|
+
u != null && m(u) && (f[l] = u);
|
|
213
|
+
}) : f[a.keys[0]] = p), f;
|
|
214
|
+
}
|
|
215
|
+
const y = r(ue, le, pe, ae, me, ye, fe), d = /* @__PURE__ */ w.forwardRef(function(a, m) {
|
|
216
|
+
const f = t(), l = o(a), u = ne(l);
|
|
217
|
+
Te(u, f.breakpoints);
|
|
218
|
+
const {
|
|
219
|
+
className: $,
|
|
220
|
+
children: G,
|
|
221
|
+
columns: j = 12,
|
|
222
|
+
container: E = !1,
|
|
223
|
+
component: M = "div",
|
|
224
|
+
direction: W = "row",
|
|
225
|
+
wrap: v = "wrap",
|
|
226
|
+
size: D = {},
|
|
227
|
+
offset: R = {},
|
|
228
|
+
spacing: x = 0,
|
|
229
|
+
rowSpacing: _ = x,
|
|
230
|
+
columnSpacing: A = x,
|
|
231
|
+
unstable_level: b = 0,
|
|
232
|
+
...B
|
|
233
|
+
} = u, V = c(D, f.breakpoints, (g) => g !== !1), L = c(R, f.breakpoints), q = a.columns ?? (b ? void 0 : j), U = a.spacing ?? (b ? void 0 : x), F = a.rowSpacing ?? a.spacing ?? (b ? void 0 : _), H = a.columnSpacing ?? a.spacing ?? (b ? void 0 : A), N = {
|
|
234
|
+
...u,
|
|
235
|
+
level: b,
|
|
236
|
+
columns: q,
|
|
237
|
+
container: E,
|
|
238
|
+
direction: W,
|
|
239
|
+
wrap: v,
|
|
240
|
+
spacing: U,
|
|
241
|
+
rowSpacing: F,
|
|
242
|
+
columnSpacing: H,
|
|
243
|
+
size: V,
|
|
244
|
+
offset: L
|
|
245
|
+
}, I = s(N, f);
|
|
246
|
+
return /* @__PURE__ */ X(y, {
|
|
247
|
+
ref: m,
|
|
248
|
+
as: M,
|
|
249
|
+
ownerState: N,
|
|
250
|
+
className: Q(I.root, $),
|
|
251
|
+
...B,
|
|
252
|
+
children: w.Children.map(G, (g) => {
|
|
253
|
+
var k;
|
|
254
|
+
return /* @__PURE__ */ w.isValidElement(g) && re(g, ["Grid"]) && E && g.props.container ? /* @__PURE__ */ w.cloneElement(g, {
|
|
255
|
+
unstable_level: ((k = g.props) == null ? void 0 : k.unstable_level) ?? b + 1
|
|
256
|
+
}) : g;
|
|
257
|
+
})
|
|
258
|
+
});
|
|
259
|
+
});
|
|
260
|
+
return process.env.NODE_ENV !== "production" && (d.propTypes = {
|
|
261
|
+
children: e.node,
|
|
262
|
+
className: e.string,
|
|
263
|
+
columns: e.oneOfType([e.arrayOf(e.number), e.number, e.object]),
|
|
264
|
+
columnSpacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
|
|
265
|
+
component: e.elementType,
|
|
266
|
+
container: e.bool,
|
|
267
|
+
direction: e.oneOfType([e.oneOf(["column-reverse", "column", "row-reverse", "row"]), e.arrayOf(e.oneOf(["column-reverse", "column", "row-reverse", "row"])), e.object]),
|
|
268
|
+
offset: e.oneOfType([e.string, e.number, e.arrayOf(e.oneOfType([e.string, e.number])), e.object]),
|
|
269
|
+
rowSpacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
|
|
270
|
+
size: e.oneOfType([e.string, e.bool, e.number, e.arrayOf(e.oneOfType([e.string, e.bool, e.number])), e.object]),
|
|
271
|
+
spacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
|
|
272
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
273
|
+
wrap: e.oneOf(["nowrap", "wrap-reverse", "wrap"])
|
|
274
|
+
}), d.muiName = "Grid", d;
|
|
275
|
+
}
|
|
276
|
+
function Ge(n, r) {
|
|
277
|
+
if (process.env.NODE_ENV === "production")
|
|
278
|
+
return () => () => null;
|
|
279
|
+
const o = r ? {
|
|
280
|
+
...r.propTypes
|
|
281
|
+
} : null;
|
|
282
|
+
return (i) => (s, c, y, d, p, ...a) => {
|
|
283
|
+
const m = p || c, f = o == null ? void 0 : o[m];
|
|
284
|
+
if (f) {
|
|
285
|
+
const l = f(s, c, y, d, p, ...a);
|
|
286
|
+
if (l)
|
|
287
|
+
return l;
|
|
288
|
+
}
|
|
289
|
+
return typeof s[c] < "u" && !s[i] ? new Error(`The prop \`${m}\` of \`${n}\` can only be used together with the \`${i}\` prop.`) : null;
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
const z = $e({
|
|
293
|
+
createStyledComponent: se("div", {
|
|
294
|
+
name: "MuiGrid",
|
|
295
|
+
slot: "Root",
|
|
296
|
+
overridesResolver: (n, r) => {
|
|
297
|
+
const {
|
|
298
|
+
ownerState: o
|
|
299
|
+
} = n;
|
|
300
|
+
return [r.root, o.container && r.container];
|
|
301
|
+
}
|
|
302
|
+
}),
|
|
303
|
+
componentName: "MuiGrid",
|
|
304
|
+
useThemeProps: (n) => ie({
|
|
305
|
+
props: n,
|
|
306
|
+
name: "MuiGrid"
|
|
307
|
+
}),
|
|
308
|
+
useTheme: K
|
|
309
|
+
});
|
|
310
|
+
process.env.NODE_ENV !== "production" && (z.propTypes = {
|
|
311
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
312
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
313
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
314
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
315
|
+
/**
|
|
316
|
+
* The content of the component.
|
|
317
|
+
*/
|
|
318
|
+
children: e.node,
|
|
319
|
+
/**
|
|
320
|
+
* The number of columns.
|
|
321
|
+
* @default 12
|
|
322
|
+
*/
|
|
323
|
+
columns: e.oneOfType([e.arrayOf(e.number), e.number, e.object]),
|
|
324
|
+
/**
|
|
325
|
+
* Defines the horizontal space between the type `item` components.
|
|
326
|
+
* It overrides the value of the `spacing` prop.
|
|
327
|
+
*/
|
|
328
|
+
columnSpacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
|
|
329
|
+
/**
|
|
330
|
+
* If `true`, the component will have the flex *container* behavior.
|
|
331
|
+
* You should be wrapping *items* with a *container*.
|
|
332
|
+
* @default false
|
|
333
|
+
*/
|
|
334
|
+
container: e.bool,
|
|
335
|
+
/**
|
|
336
|
+
* Defines the `flex-direction` style property.
|
|
337
|
+
* It is applied for all screen sizes.
|
|
338
|
+
* @default 'row'
|
|
339
|
+
*/
|
|
340
|
+
direction: e.oneOfType([e.oneOf(["column-reverse", "column", "row-reverse", "row"]), e.arrayOf(e.oneOf(["column-reverse", "column", "row-reverse", "row"])), e.object]),
|
|
341
|
+
/**
|
|
342
|
+
* Defines the offset value for the type `item` components.
|
|
343
|
+
*/
|
|
344
|
+
offset: e.oneOfType([e.string, e.number, e.arrayOf(e.oneOfType([e.string, e.number])), e.object]),
|
|
345
|
+
/**
|
|
346
|
+
* Defines the vertical space between the type `item` components.
|
|
347
|
+
* It overrides the value of the `spacing` prop.
|
|
348
|
+
*/
|
|
349
|
+
rowSpacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
|
|
350
|
+
/**
|
|
351
|
+
* Defines the size of the the type `item` components.
|
|
352
|
+
*/
|
|
353
|
+
size: e.oneOfType([e.string, e.bool, e.number, e.arrayOf(e.oneOfType([e.string, e.bool, e.number])), e.object]),
|
|
354
|
+
/**
|
|
355
|
+
* Defines the space between the type `item` components.
|
|
356
|
+
* It can only be used on a type `container` component.
|
|
357
|
+
* @default 0
|
|
358
|
+
*/
|
|
359
|
+
spacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
|
|
360
|
+
/**
|
|
361
|
+
* @ignore
|
|
362
|
+
*/
|
|
363
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
364
|
+
/**
|
|
365
|
+
* @internal
|
|
366
|
+
* The level of the grid starts from `0` and increases when the grid nests
|
|
367
|
+
* inside another grid. Nesting is defined as a container Grid being a direct
|
|
368
|
+
* child of a container Grid.
|
|
369
|
+
*
|
|
370
|
+
* ```js
|
|
371
|
+
* <Grid container> // level 0
|
|
372
|
+
* <Grid container> // level 1
|
|
373
|
+
* <Grid container> // level 2
|
|
374
|
+
* ```
|
|
375
|
+
*
|
|
376
|
+
* Only consecutive grid is considered nesting. A grid container will start at
|
|
377
|
+
* `0` if there are non-Grid container element above it.
|
|
378
|
+
*
|
|
379
|
+
* ```js
|
|
380
|
+
* <Grid container> // level 0
|
|
381
|
+
* <div>
|
|
382
|
+
* <Grid container> // level 0
|
|
383
|
+
* ```
|
|
384
|
+
*
|
|
385
|
+
* ```js
|
|
386
|
+
* <Grid container> // level 0
|
|
387
|
+
* <Grid>
|
|
388
|
+
* <Grid container> // level 0
|
|
389
|
+
* ```
|
|
390
|
+
*/
|
|
391
|
+
unstable_level: e.number,
|
|
392
|
+
/**
|
|
393
|
+
* Defines the `flex-wrap` style property.
|
|
394
|
+
* It's applied for all screen sizes.
|
|
395
|
+
* @default 'wrap'
|
|
396
|
+
*/
|
|
397
|
+
wrap: e.oneOf(["nowrap", "wrap-reverse", "wrap"])
|
|
398
|
+
});
|
|
399
|
+
if (process.env.NODE_ENV !== "production") {
|
|
400
|
+
const n = z, r = Ge("Grid", n);
|
|
401
|
+
n.propTypes = {
|
|
402
|
+
// eslint-disable-next-line react/forbid-foreign-prop-types
|
|
403
|
+
...n.propTypes,
|
|
404
|
+
direction: r("container"),
|
|
405
|
+
spacing: r("container"),
|
|
406
|
+
wrap: r("container")
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
export {
|
|
410
|
+
z as G
|
|
411
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const V=require("react"),e=require("./index-DLnSn8GT.cjs"),W=require("./useTheme-CooC_6Ep.cjs"),B=require("react/jsx-runtime"),g=require("./utils-ByXw_ZY1.cjs"),J=require("./useTimeout-COCrDKz-.cjs"),Q=require("./useForkRef-CFhhTu-Q.cjs"),v=require("./elementAcceptingRef-BZ42cOGO.cjs");function U(o){const d=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const a in o)if(a!=="default"){const f=Object.getOwnPropertyDescriptor(o,a);Object.defineProperty(d,a,f.get?f:{enumerable:!0,get:()=>o[a]})}}return d.default=o,Object.freeze(d)}const T=U(V);function R(o){return`scale(${o}, ${o**2})`}const X={entering:{opacity:1,transform:R(1)},entered:{opacity:1,transform:"none"}},x=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),m=T.forwardRef(function(d,a){const{addEndListener:f,appear:w=!0,children:E,easing:b,in:j,onEnter:q,onEntered:A,onEntering:D,onExit:O,onExited:S,onExiting:_,style:P,timeout:i="auto",TransitionComponent:F=g.Transition,...H}=d,L=J.useTimeout(),h=T.useRef(),u=W.useTheme(),l=T.useRef(null),G=Q.useForkRef(l,v.getReactElementRef(E),a),c=t=>s=>{if(t){const n=l.current;s===void 0?t(n):t(n,s)}},N=c(D),k=c((t,s)=>{g.reflow(t);const{duration:n,delay:y,easing:r}=g.getTransitionProps({style:P,timeout:i,easing:b},{mode:"enter"});let p;i==="auto"?(p=u.transitions.getAutoHeightDuration(t.clientHeight),h.current=p):p=n,t.style.transition=[u.transitions.create("opacity",{duration:p,delay:y}),u.transitions.create("transform",{duration:x?p:p*.666,delay:y,easing:r})].join(","),q&&q(t,s)}),z=c(A),C=c(_),$=c(t=>{const{duration:s,delay:n,easing:y}=g.getTransitionProps({style:P,timeout:i,easing:b},{mode:"exit"});let r;i==="auto"?(r=u.transitions.getAutoHeightDuration(t.clientHeight),h.current=r):r=s,t.style.transition=[u.transitions.create("opacity",{duration:r,delay:n}),u.transitions.create("transform",{duration:x?r:r*.666,delay:x?n:n||r*.333,easing:y})].join(","),t.style.opacity=0,t.style.transform=R(.75),O&&O(t)}),K=c(S),M=t=>{i==="auto"&&L.start(h.current||0,t),f&&f(l.current,t)};return B.jsx(F,{appear:w,in:j,nodeRef:l,onEnter:k,onEntered:z,onEntering:N,onExit:$,onExited:K,onExiting:C,addEndListener:M,timeout:i==="auto"?null:i,...H,children:(t,{ownerState:s,...n})=>T.cloneElement(E,{style:{opacity:0,transform:R(.75),visibility:t==="exited"&&!j?"hidden":void 0,...X[t],...P,...E.props.style},ref:G,...n})})});process.env.NODE_ENV!=="production"&&(m.propTypes={addEndListener:e.PropTypes.func,appear:e.PropTypes.bool,children:v.elementAcceptingRef.isRequired,easing:e.PropTypes.oneOfType([e.PropTypes.shape({enter:e.PropTypes.string,exit:e.PropTypes.string}),e.PropTypes.string]),in:e.PropTypes.bool,onEnter:e.PropTypes.func,onEntered:e.PropTypes.func,onEntering:e.PropTypes.func,onExit:e.PropTypes.func,onExited:e.PropTypes.func,onExiting:e.PropTypes.func,style:e.PropTypes.object,timeout:e.PropTypes.oneOfType([e.PropTypes.oneOf(["auto"]),e.PropTypes.number,e.PropTypes.shape({appear:e.PropTypes.number,enter:e.PropTypes.number,exit:e.PropTypes.number})])});m&&(m.muiSupportAuto=!0);exports.Grow=m;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as f from "react";
|
|
2
2
|
import { P as n } from "./index-Sy88PpwE.js";
|
|
3
|
-
import { u as V } from "./useTheme-
|
|
3
|
+
import { u as V } from "./useTheme-XJ9sFCWX.js";
|
|
4
4
|
import { jsx as W } from "react/jsx-runtime";
|
|
5
5
|
import { T as k, g as v, r as B } from "./utils-BQenyzDz.js";
|
|
6
6
|
import { u as J } from "./useTimeout-CrCYVizI.js";
|
|
7
7
|
import { u as M } from "./useForkRef-u29GSuCu.js";
|
|
8
|
-
import { g as Q, e as U } from "./
|
|
8
|
+
import { g as Q, e as U } from "./elementAcceptingRef-CEweUuUA.js";
|
|
9
9
|
function h(m) {
|
|
10
10
|
return `scale(${m}, ${m ** 2})`;
|
|
11
11
|
}
|