@cgi-learning-hub/ui 1.3.5 → 1.4.0-dev.1740589431
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Backdrop-DcDd6WZF.js → Backdrop-BctCVgLy.js} +79 -82
- package/dist/Backdrop-DWp3AktL.cjs +1 -0
- package/dist/{Box-mP2Th61z.cjs → Box-DYA49L7w.cjs} +1 -1
- package/dist/{Box-Byz2BwGf.js → Box-DgqaLb7j.js} +8 -8
- package/dist/Button-B7kOjNW1.js +696 -0
- package/dist/Button-UmeKHfcL.cjs +1 -0
- package/dist/ButtonBase-D6tfI-8D.cjs +74 -0
- package/dist/{ButtonBase-DAWDecOk.js → ButtonBase-IZ_QjbpE.js} +334 -334
- package/dist/CardContent-5bW4A4d2.cjs +1 -0
- package/dist/CardContent-F4-KcZH8.js +226 -0
- package/dist/{Checkbox-DYrDbdy1.cjs → Checkbox-DQgPXaym.cjs} +1 -1
- package/dist/{Checkbox-8Rhxpkjl.js → Checkbox-qUSjau0g.js} +26 -26
- package/dist/Chip-BTnuWGEU.cjs +1 -0
- package/dist/Chip-OpRIs-sL.js +522 -0
- package/dist/{CircularProgress-Kwlef5fX.js → CircularProgress-CQxzJquv.js} +11 -11
- package/dist/{CircularProgress-BByrCLjv.cjs → CircularProgress-cPXhiRlM.cjs} +4 -4
- package/dist/CloseRounded-BMEGLs8y.js +8 -0
- package/dist/CloseRounded-BRXBizmR.cjs +1 -0
- package/dist/{DatePicker-BS1OatwQ.js → DatePicker-C6MCYjpp.js} +3113 -3600
- package/dist/DatePicker-CTIqTlNQ.cjs +14 -0
- package/dist/DefaultPropsProvider-Cqcb4sws.js +303 -0
- package/dist/DefaultPropsProvider-wpBXjN8r.cjs +1 -0
- package/dist/Dialog-B1wnk5BT.cjs +1 -0
- package/dist/Dialog-CKS7yjT5.js +478 -0
- package/dist/{DialogContent-uc65XOEU.js → DialogContent-BzPaz5G8.js} +13 -13
- package/dist/{DialogContent-Dj_OjLZ6.cjs → DialogContent-DcZz4rBc.cjs} +1 -1
- package/dist/{DialogTitle-C8JOi-rq.js → DialogTitle-D3E_lDHD.js} +30 -30
- package/dist/{DialogTitle-BboPDaoB.cjs → DialogTitle-mr9xn4JZ.cjs} +1 -1
- package/dist/{Divider-KO-E6nU8.js → Divider-D-pZeQTm.js} +8 -8
- package/dist/{Divider-CcrM3lNn.cjs → Divider-D3hPb7s4.cjs} +1 -1
- package/dist/{FormLabel-CfR4bb21.js → FormLabel-3-CC-ZGw.js} +131 -133
- package/dist/FormLabel-BV7-a0i5.cjs +2 -0
- package/dist/{Grow-CQVPAYvp.js → Grow-DKgYCxiY.js} +46 -43
- package/dist/Grow-Z3KzFaK5.cjs +1 -0
- package/dist/{IconButton-CekuyD4r.js → IconButton-CCNUMz2l.js} +132 -64
- package/dist/IconButton-CVOPR4EM.cjs +2 -0
- package/dist/{InputAdornment-Cq0WhPxF.cjs → InputAdornment-CwFEJSXv.cjs} +1 -1
- package/dist/{InputAdornment-iU5YnveW.js → InputAdornment-DL8XIM8r.js} +15 -14
- package/dist/{InputBase-BJy3wwFB.js → InputBase-By7jMrFP.js} +221 -215
- package/dist/InputBase-Cejvjv1E.cjs +3 -0
- package/dist/Link-2ncpUcIp.cjs +1 -0
- package/dist/{Link-CoQuUM0t.js → Link-C_GPIs0q.js} +46 -46
- package/dist/{Menu-C7tKmcAh.js → Menu-BunOW0ot.js} +72 -73
- package/dist/Menu-Cngt8Va9.cjs +7 -0
- package/dist/{MenuItem-BZ_EVaBq.cjs → MenuItem-Bha8aBMr.cjs} +1 -1
- package/dist/{MenuItem-j8luVUcX.js → MenuItem-Cu3FTLl8.js} +20 -20
- package/dist/{Modal-brWBFdK7.js → Modal-DTJd7JJ6.js} +99 -98
- package/dist/Modal-u82Ss4h_.cjs +2 -0
- package/dist/{Paper-BG4Vk_Um.js → Paper-BiZq6EF2.js} +8 -8
- package/dist/{Paper-Cr56xkCr.cjs → Paper-EvOTlB_Q.cjs} +2 -2
- package/dist/{Popper-YT5WAMV-.cjs → Popper-BVYscbsI.cjs} +3 -3
- package/dist/{Popper-DFZ_gRev.js → Popper-DjwR55WH.js} +241 -243
- package/dist/{Portal-JEwcozmp.js → Portal-BByeByPq.js} +34 -39
- package/dist/Portal-DUHpWdY1.cjs +1 -0
- package/dist/Radio-CSl8GQNk.cjs +1 -0
- package/dist/Radio-DSRS-tjj.js +568 -0
- package/dist/RadioGroup-DL4hhZzK.cjs +1 -0
- package/dist/RadioGroup-cPdOWdYD.js +190 -0
- package/dist/{Select-DmssuG5M.js → Select-CZnKFG3o.js} +419 -401
- package/dist/Select-DZAzJA0y.cjs +3 -0
- package/dist/Stack-B82ckLGm.cjs +1 -0
- package/dist/{Stack-BzTJdRGj.js → Stack-hbAJHQhq.js} +29 -29
- package/dist/Switch-B9uT9-d0.js +330 -0
- package/dist/Switch-DWKHe4z_.cjs +1 -0
- package/dist/{SwitchBase-Dlth5_F7.js → SwitchBase-CDkmnGAP.js} +29 -29
- package/dist/{SwitchBase-DjIY_KWB.cjs → SwitchBase-CnA6TA2P.cjs} +1 -1
- package/dist/Tabs-AyJ_tKtV.cjs +4 -0
- package/dist/{Tabs-CYbeTnJk.js → Tabs-BYfDlOR9.js} +336 -337
- package/dist/{TextField-Cri5Gxa7.js → TextField-BKfXjPdH.js} +29 -27
- package/dist/TextField-CwcPgdgD.cjs +1 -0
- package/dist/ToggleButtonGroup-DIp0fcXW.cjs +140 -0
- package/dist/ToggleButtonGroup-sc2omtRp.js +10473 -0
- package/dist/{Tooltip-BhAHhzKz.js → Tooltip-B1NGvrJP.js} +14 -14
- package/dist/{Tooltip-DhDtvULK.cjs → Tooltip-oNmnF7Bc.cjs} +3 -3
- package/dist/{TransitionGroupContext-DMJLhY9-.js → TransitionGroupContext-DbLioz_6.js} +7 -7
- package/dist/TransitionGroupContext-Zt4NoR0u.cjs +1 -0
- package/dist/{Typography-DfRMDngd.cjs → Typography-DPij13XT.cjs} +1 -1
- package/dist/{Typography-DBwTr_ix.js → Typography-SIQ6eleU.js} +9 -9
- package/dist/{capitalize-CkF8kU4n.js → capitalize-3KLkrEtk.js} +1 -1
- package/dist/{capitalize-B3GG7Wn6.cjs → capitalize-CEByPz9F.cjs} +1 -1
- package/dist/components/Alert/Alert.es.js +13 -4
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.d.ts +1 -2
- package/dist/components/Button/Button.es.js +12 -325
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -2
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +12 -14
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.d.ts +2 -0
- package/dist/components/Dropzone/Dropzone.es.js +22 -19
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.cjs.js +1 -1
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +4 -3
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileIcon.cjs.js +1 -0
- package/dist/components/FileList/FileIcon.d.ts +3 -0
- package/dist/components/FileList/FileIcon.es.js +56 -0
- package/dist/components/FileList/FileInfosSeparator.cjs.js +1 -0
- package/dist/components/FileList/FileInfosSeparator.d.ts +1 -0
- package/dist/components/FileList/FileInfosSeparator.es.js +14 -0
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.d.ts +5 -3
- package/dist/components/FileList/FileList.es.js +22 -15
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.d.ts +9 -5
- package/dist/components/FileList/FileListItem.es.js +118 -24
- package/dist/components/FileList/utils.cjs.js +1 -0
- package/dist/components/FileList/utils.d.ts +2 -0
- package/dist/components/FileList/utils.es.js +13 -0
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +79 -54
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.d.ts +1 -2
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +1 -2
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +12 -10
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.d.ts +2 -2
- package/dist/components/QueryError/QueryError.es.js +14 -14
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -0
- package/dist/components/ResourceCard/ResourceCard.d.ts +24 -0
- package/dist/components/ResourceCard/ResourceCard.es.js +128 -0
- package/dist/components/ResourceCard/index.cjs.js +1 -0
- package/dist/components/ResourceCard/index.d.ts +2 -0
- package/dist/components/ResourceCard/index.es.js +4 -0
- package/dist/components/ResourceCard/style.cjs.js +1 -0
- package/dist/components/ResourceCard/style.es.js +125 -0
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +1 -2
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.es.js +348 -294
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +17 -168
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +5 -5
- package/dist/components/stories/Chip.stories.cjs.js +1 -0
- package/dist/components/stories/Chip.stories.d.ts +10 -0
- package/dist/components/stories/Chip.stories.es.js +77 -0
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +5 -5
- package/dist/components/stories/FileList.stories.cjs.js +8 -1
- package/dist/components/stories/FileList.stories.es.js +144 -20
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +16 -340
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +16 -16
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +19 -115
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -0
- package/dist/components/stories/ResourceCard.stories.d.ts +9 -0
- package/dist/components/stories/ResourceCard.stories.es.js +141 -0
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +14 -14
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +3 -3
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/createSvgIcon-DJMYlO0S.cjs +1 -0
- package/dist/{createSvgIcon-C8nGcfF4.js → createSvgIcon-K2ZAdASa.js} +57 -55
- package/dist/{dividerClasses-CCAY3Pnr.cjs → dividerClasses-Dq1bCO_s.cjs} +1 -1
- package/dist/{dividerClasses-nh2-hkQB.js → dividerClasses-afsB3Yy1.js} +3 -3
- package/dist/{elementTypeAcceptingRef-D-5kcohU.js → elementTypeAcceptingRef-5ESWTE79.js} +1 -1
- package/dist/{elementTypeAcceptingRef-DZsNbuLU.cjs → elementTypeAcceptingRef-BjgxF5Bq.cjs} +1 -1
- package/dist/{extendSxProp-apyK-EBz.cjs → extendSxProp-D-oLUmkR.cjs} +1 -1
- package/dist/{extendSxProp-C2ff0oGc.js → extendSxProp-dlShX1xL.js} +3 -3
- package/dist/{fr-Bjufn3RW.js → fr-B3qrCNcK.js} +18 -18
- package/dist/generateUtilityClasses-De8NU9_E.cjs +75 -0
- package/dist/generateUtilityClasses-DotvgSDH.js +3297 -0
- package/dist/hooks/lazySvgImport.d.ts +1 -1
- package/dist/{index-CwvpOCso.js → index-B1u7G33_.js} +29 -29
- package/dist/{index-ChM1Ett8.cjs → index-CVFzneYe.cjs} +1 -1
- package/dist/{index-BCnPLuqJ.js → index-DTTmpNYg.js} +22 -22
- package/dist/index-T-RSwkXB.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +348 -294
- package/dist/{memoTheme-D7Fyh_3C.js → memoTheme-CqmIydD-.js} +1 -1
- package/dist/{memoTheme-Bdg0Y_2O.cjs → memoTheme-DrjvJtTP.cjs} +1 -1
- package/dist/{refType-CoaxQOPt.cjs → refType-BkobP3bK.cjs} +1 -1
- package/dist/{refType-DKYKROQk.js → refType-C210ipRY.js} +1 -1
- package/dist/{mergeSlotProps-tUJEcwVu.js → resolveComponentProps-CPmhKPdH.js} +7 -7
- package/dist/resolveComponentProps-PuUs-PsA.cjs +1 -0
- package/dist/unsupportedProp-Bn6XWqwH.cjs +1 -0
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/useSlot-CC2AaOjN.cjs +1 -0
- package/dist/useSlot-GZu0V5wJ.js +48 -0
- package/dist/{useSlotProps-B31YQlzb.js → useSlotProps-C9tsxDNg.js} +11 -11
- package/dist/useSlotProps-CvOxvhyy.cjs +1 -0
- package/dist/{useTheme-Dukx-__T.cjs → useTheme-7RGQRN-h.cjs} +1 -1
- package/dist/useTheme-BA7tMglY.js +11 -0
- package/dist/{useTheme-Cy5kyKJF.cjs → useTheme-CIf2b2wK.cjs} +1 -1
- package/dist/{useTheme-_xyy-wul.js → useTheme-tdgDVH1p.js} +1 -1
- package/dist/{useThemeProps-u_ESzK2f.cjs → useThemeProps-AnS1uVAy.cjs} +1 -1
- package/dist/{useThemeProps-BySkSe-M.js → useThemeProps-BQlPXzo3.js} +2 -2
- package/dist/useThemeProps-BTfGtNci.js +17 -0
- package/dist/useThemeProps-DxBEHys5.cjs +1 -0
- package/dist/utils-CFI_-FMV.cjs +1 -0
- package/dist/{utils-C6c4fj7D.js → utils-CXhh35wP.js} +41 -41
- package/package.json +9 -9
- package/dist/Backdrop-CvufxHMY.cjs +0 -1
- package/dist/Button-BH9MUvmz.cjs +0 -1
- package/dist/Button-BnNYfQ3E.js +0 -484
- package/dist/ButtonBase-BXtyQVDC.cjs +0 -74
- package/dist/Card-AJG0TUOx.js +0 -74
- package/dist/Card-NqCXQteq.cjs +0 -1
- package/dist/DatePicker-7-4p3Vtj.cjs +0 -14
- package/dist/DefaultPropsProvider-3KMGupjb.cjs +0 -17
- package/dist/DefaultPropsProvider-CvJPQJmL.js +0 -454
- package/dist/Delete-BkZN7Xu5.js +0 -8
- package/dist/Delete-D1EiKoL5.cjs +0 -1
- package/dist/Dialog-D_lS4J_M.js +0 -415
- package/dist/Dialog-yOrNcHbG.cjs +0 -1
- package/dist/FormControlLabel-Bb6Ul-qQ.cjs +0 -1
- package/dist/FormControlLabel-BmrKQtQA.js +0 -262
- package/dist/FormGroup-CbczEc6e.js +0 -95
- package/dist/FormGroup-Y3P2AG0i.cjs +0 -1
- package/dist/FormLabel-D1uvEhsH.cjs +0 -2
- package/dist/Grow-CUBJs6WD.cjs +0 -1
- package/dist/IconButton-CJfzspZK.cjs +0 -2
- package/dist/InputBase-s1fk8TB4.cjs +0 -3
- package/dist/Link-CWczkFp0.cjs +0 -1
- package/dist/Menu-Bsx8PA-q.cjs +0 -7
- package/dist/Modal-DImrEpYJ.cjs +0 -2
- package/dist/Portal-DF0RKOcD.cjs +0 -1
- package/dist/Radio-CVAEGXKi.cjs +0 -1
- package/dist/Radio-DGhot3Cd.js +0 -313
- package/dist/Select-CwAWNiiv.cjs +0 -3
- package/dist/Stack-Yq6rb7iK.cjs +0 -1
- package/dist/TableSortLabel-BsgRD4k4.js +0 -6328
- package/dist/TableSortLabel-D0N3e3cP.cjs +0 -98
- package/dist/Tabs-KG4VWw-1.cjs +0 -4
- package/dist/TextField-BI9KVqjC.cjs +0 -1
- package/dist/TransitionGroupContext-DbXD5xqS.cjs +0 -1
- package/dist/createSvgIcon--rEClVU7.cjs +0 -1
- package/dist/generateUtilityClasses-B_H9HEmg.cjs +0 -59
- package/dist/generateUtilityClasses-Bssl7BA_.js +0 -3145
- package/dist/index-Aa73Kpym.cjs +0 -1
- package/dist/index-Cw0GDedk.cjs +0 -17
- package/dist/index-DXD5J5Eu.js +0 -186
- package/dist/mergeSlotProps-DuV-LTW7.cjs +0 -1
- package/dist/useSlot-BTpHG6jf.js +0 -50
- package/dist/useSlot-CByalpSD.cjs +0 -1
- package/dist/useSlotProps-BVSAQTNl.cjs +0 -1
- package/dist/useTheme-DyaNKf4e.js +0 -11
- package/dist/useThemeProps-CdV_QwDl.cjs +0 -1
- package/dist/useThemeProps-CwEQ4bv2.js +0 -24
- package/dist/utils-vmyQ2IaS.cjs +0 -1
|
@@ -1,58 +1,53 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import { P as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { u as f } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import * as E from "react-dom";
|
|
3
|
+
import { P as p } from "./generateUtilityClasses-DotvgSDH.js";
|
|
4
|
+
import { u as P, s as c } from "./useForkRef-C_4o__cU.js";
|
|
5
|
+
import { g as y } from "./utils-CXhh35wP.js";
|
|
6
|
+
import { u as a } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
8
7
|
const N = "exact-prop: ";
|
|
9
|
-
function
|
|
8
|
+
function h(n) {
|
|
10
9
|
return process.env.NODE_ENV === "production" ? n : {
|
|
11
10
|
...n,
|
|
12
|
-
[N]: (
|
|
13
|
-
const r = Object.keys(
|
|
11
|
+
[N]: (s) => {
|
|
12
|
+
const r = Object.keys(s).filter((e) => !n.hasOwnProperty(e));
|
|
14
13
|
return r.length > 0 ? new Error(`The following props are not supported: ${r.map((e) => `\`${e}\``).join(", ")}. Please remove them.`) : null;
|
|
15
14
|
}
|
|
16
15
|
};
|
|
17
16
|
}
|
|
18
|
-
function
|
|
17
|
+
function O(n, s, r, e, l) {
|
|
19
18
|
if (process.env.NODE_ENV === "production")
|
|
20
19
|
return null;
|
|
21
|
-
const t = n[
|
|
20
|
+
const t = n[s], o = l || s;
|
|
22
21
|
return t == null ? null : t && t.nodeType !== 1 ? new Error(`Invalid ${e} \`${o}\` supplied to \`${r}\`. Expected an HTMLElement.`) : null;
|
|
23
22
|
}
|
|
24
|
-
function
|
|
23
|
+
function T(n) {
|
|
25
24
|
return typeof n == "function" ? n() : n;
|
|
26
25
|
}
|
|
27
|
-
const
|
|
26
|
+
const i = /* @__PURE__ */ u.forwardRef(function(s, r) {
|
|
28
27
|
const {
|
|
29
28
|
children: e,
|
|
30
|
-
container:
|
|
29
|
+
container: l,
|
|
31
30
|
disablePortal: t = !1
|
|
32
|
-
} =
|
|
33
|
-
if (
|
|
34
|
-
t ||
|
|
35
|
-
}, [
|
|
31
|
+
} = s, [o, f] = u.useState(null), m = P(/* @__PURE__ */ u.isValidElement(e) ? y(e) : null, r);
|
|
32
|
+
if (a(() => {
|
|
33
|
+
t || f(T(l) || document.body);
|
|
34
|
+
}, [l, t]), a(() => {
|
|
36
35
|
if (o && !t)
|
|
37
|
-
return
|
|
38
|
-
|
|
36
|
+
return c(r, o), () => {
|
|
37
|
+
c(r, null);
|
|
39
38
|
};
|
|
40
39
|
}, [r, o, t]), t) {
|
|
41
|
-
if (/* @__PURE__ */
|
|
42
|
-
const
|
|
43
|
-
ref:
|
|
40
|
+
if (/* @__PURE__ */ u.isValidElement(e)) {
|
|
41
|
+
const d = {
|
|
42
|
+
ref: m
|
|
44
43
|
};
|
|
45
|
-
return /* @__PURE__ */
|
|
44
|
+
return /* @__PURE__ */ u.cloneElement(e, d);
|
|
46
45
|
}
|
|
47
|
-
return
|
|
48
|
-
children: e
|
|
49
|
-
});
|
|
46
|
+
return e;
|
|
50
47
|
}
|
|
51
|
-
return /* @__PURE__ */
|
|
52
|
-
children: o && /* @__PURE__ */ P.createPortal(e, o)
|
|
53
|
-
});
|
|
48
|
+
return o && /* @__PURE__ */ E.createPortal(e, o);
|
|
54
49
|
});
|
|
55
|
-
process.env.NODE_ENV !== "production" && (
|
|
50
|
+
process.env.NODE_ENV !== "production" && (i.propTypes = {
|
|
56
51
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
57
52
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
58
53
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -60,7 +55,7 @@ process.env.NODE_ENV !== "production" && (p.propTypes = {
|
|
|
60
55
|
/**
|
|
61
56
|
* The children to render into the `container`.
|
|
62
57
|
*/
|
|
63
|
-
children:
|
|
58
|
+
children: p.node,
|
|
64
59
|
/**
|
|
65
60
|
* An HTML element or function that returns one.
|
|
66
61
|
* The `container` will have the portal children appended to it.
|
|
@@ -71,16 +66,16 @@ process.env.NODE_ENV !== "production" && (p.propTypes = {
|
|
|
71
66
|
* By default, it uses the body of the top-level document object,
|
|
72
67
|
* so it's simply `document.body` most of the time.
|
|
73
68
|
*/
|
|
74
|
-
container:
|
|
69
|
+
container: p.oneOfType([O, p.func]),
|
|
75
70
|
/**
|
|
76
71
|
* The `children` will be under the DOM hierarchy of the parent component.
|
|
77
72
|
* @default false
|
|
78
73
|
*/
|
|
79
|
-
disablePortal:
|
|
74
|
+
disablePortal: p.bool
|
|
80
75
|
});
|
|
81
|
-
process.env.NODE_ENV !== "production" && (
|
|
76
|
+
process.env.NODE_ENV !== "production" && (i.propTypes = h(i.propTypes));
|
|
82
77
|
export {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
78
|
+
O as H,
|
|
79
|
+
i as P,
|
|
80
|
+
h as e
|
|
86
81
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const O=require("react"),T=require("react-dom"),l=require("./generateUtilityClasses-De8NU9_E.cjs"),p=require("./useForkRef-CTI33h-3.cjs"),b=require("./utils-CFI_-FMV.cjs"),a=require("./useEnhancedEffect-BQZ6dtCo.cjs");function f(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,t.get?t:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const c=f(O),N=f(T),g="exact-prop: ";function d(e){return process.env.NODE_ENV==="production"?e:{...e,[g]:r=>{const n=Object.keys(r).filter(t=>!e.hasOwnProperty(t));return n.length>0?new Error(`The following props are not supported: ${n.map(t=>`\`${t}\``).join(", ")}. Please remove them.`):null}}}function E(e,r,n,t,u){if(process.env.NODE_ENV==="production")return null;const o=e[r],s=u||r;return o==null?null:o&&o.nodeType!==1?new Error(`Invalid ${t} \`${s}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}function h(e){return typeof e=="function"?e():e}const i=c.forwardRef(function(r,n){const{children:t,container:u,disablePortal:o=!1}=r,[s,P]=c.useState(null),y=p.useForkRef(c.isValidElement(t)?b.getReactElementRef(t):null,n);if(a.useEnhancedEffect(()=>{o||P(h(u)||document.body)},[u,o]),a.useEnhancedEffect(()=>{if(s&&!o)return p.setRef(n,s),()=>{p.setRef(n,null)}},[n,s,o]),o){if(c.isValidElement(t)){const m={ref:y};return c.cloneElement(t,m)}return t}return s&&N.createPortal(t,s)});process.env.NODE_ENV!=="production"&&(i.propTypes={children:l.PropTypes.node,container:l.PropTypes.oneOfType([E,l.PropTypes.func]),disablePortal:l.PropTypes.bool});process.env.NODE_ENV!=="production"&&(i.propTypes=d(i.propTypes));exports.HTMLElementType=E;exports.Portal=i;exports.exactProp=d;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const ee=require("react"),e=require("./generateUtilityClasses-De8NU9_E.cjs"),x=require("./memoTheme-DrjvJtTP.cjs"),oe=require("./formControlState-CuX6WjAX.cjs"),re=require("./useSlot-CC2AaOjN.cjs"),a=require("react/jsx-runtime"),n=require("./DefaultPropsProvider-wpBXjN8r.cjs"),_=require("./useFormControl-haP0iPhl.cjs"),U=require("./Typography-DPij13XT.cjs"),b=require("./capitalize-CEByPz9F.cjs"),G=require("./refType-BkobP3bK.cjs"),se=require("./SwitchBase-CnA6TA2P.cjs"),A=require("./createSvgIcon-DJMYlO0S.cjs"),B=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),te=require("./createChainedFunction-CJmlQuW8.cjs");function ae(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 u=ae(ee);function H(o){return e.generateUtilityClass("MuiFormControlLabel",o)}const m=e.generateUtilityClasses("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),ne=o=>{const{classes:r,disabled:s,labelPlacement:t,error:l,required:P}=o,T={root:["root",s&&"disabled",`labelPlacement${b.capitalize(t)}`,l&&"error",P&&"required"],label:["label",s&&"disabled"],asterisk:["asterisk",l&&"error"]};return n.composeClasses(T,H,r)},le=n.styled("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:s}=o;return[{[`& .${m.label}`]:r.label},r.root,r[`labelPlacement${b.capitalize(s.labelPlacement)}`]]}})(x.memoTheme(({theme:o})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${m.disabled}`]:{cursor:"default"},[`& .${m.label}`]:{[`&.${m.disabled}`]:{color:(o.vars||o).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:r})=>r==="start"||r==="top"||r==="bottom",style:{marginLeft:16}}]}))),ie=n.styled("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(o,r)=>r.asterisk})(x.memoTheme(({theme:o})=>({[`&.${m.error}`]:{color:(o.vars||o).palette.error.main}}))),W=u.forwardRef(function(r,s){const t=n.useDefaultProps({props:r,name:"MuiFormControlLabel"}),{checked:l,className:P,componentsProps:T={},control:y,disabled:j,disableTypography:O,inputRef:C,label:q,labelPlacement:z="end",name:L,onChange:D,required:g,slots:p={},slotProps:h={},value:F,...c}=t,i=_.useFormControl(),v=j??y.props.disabled??(i==null?void 0:i.disabled),d=g??y.props.required,E={disabled:v,required:d};["checked","name","onChange","value","inputRef"].forEach(k=>{typeof y.props[k]>"u"&&typeof t[k]<"u"&&(E[k]=t[k])});const Q=oe.formControlState({props:t,muiFormControl:i,states:["error"]}),R={...t,disabled:v,labelPlacement:z,required:d,error:Q.error},w=ne(R),X={slots:p,slotProps:{...T,...h}},[Y,S]=re.useSlot("typography",{elementType:U.Typography,externalForwardedProps:X,ownerState:R});let f=q;return f!=null&&f.type!==U.Typography&&!O&&(f=a.jsx(Y,{component:"span",...S,className:e.clsx(w.label,S==null?void 0:S.className),children:f})),a.jsxs(le,{className:e.clsx(w.root,P),ownerState:R,ref:s,...c,children:[u.cloneElement(y,E),d?a.jsxs("div",{children:[f,a.jsxs(ie,{ownerState:R,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):f]})});process.env.NODE_ENV!=="production"&&(W.propTypes={checked:e.PropTypes.bool,classes:e.PropTypes.object,className:e.PropTypes.string,componentsProps:e.PropTypes.shape({typography:e.PropTypes.object}),control:e.PropTypes.element.isRequired,disabled:e.PropTypes.bool,disableTypography:e.PropTypes.bool,inputRef:G.refType,label:e.PropTypes.node,labelPlacement:e.PropTypes.oneOf(["bottom","end","start","top"]),name:e.PropTypes.string,onChange:e.PropTypes.func,required:e.PropTypes.bool,slotProps:e.PropTypes.shape({typography:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({typography:e.PropTypes.elementType}),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]),value:e.PropTypes.any});const pe=A.createSvgIcon(a.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),ce=A.createSvgIcon(a.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),de=n.styled("span",{shouldForwardProp:n.rootShouldForwardProp})({position:"relative",display:"flex"}),ue=n.styled(pe)({transform:"scale(1)"}),ye=n.styled(ce)(x.memoTheme(({theme:o})=>({left:0,position:"absolute",transform:"scale(0)",transition:o.transitions.create("transform",{easing:o.transitions.easing.easeIn,duration:o.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:o.transitions.create("transform",{easing:o.transitions.easing.easeOut,duration:o.transitions.duration.shortest})}}]})));function $(o){const{checked:r=!1,classes:s={},fontSize:t}=o,l={...o,checked:r};return a.jsxs(de,{className:s.root,ownerState:l,children:[a.jsx(ue,{fontSize:t,className:s.background,ownerState:l}),a.jsx(ye,{fontSize:t,className:s.dot,ownerState:l})]})}process.env.NODE_ENV!=="production"&&($.propTypes={checked:e.PropTypes.bool,classes:e.PropTypes.object,fontSize:e.PropTypes.oneOf(["small","medium"])});const I=u.createContext(void 0);process.env.NODE_ENV!=="production"&&(I.displayName="RadioGroupContext");function Z(){return u.useContext(I)}function J(o){return e.generateUtilityClass("MuiRadio",o)}const N=e.generateUtilityClasses("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),fe=o=>{const{classes:r,color:s,size:t}=o,l={root:["root",`color${b.capitalize(s)}`,t!=="medium"&&`size${b.capitalize(t)}`]};return{...r,...n.composeClasses(l,J,r)}},me=n.styled(se.SwitchBase,{shouldForwardProp:o=>n.rootShouldForwardProp(o)||o==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:s}=o;return[r.root,s.size!=="medium"&&r[`size${b.capitalize(s.size)}`],r[`color${b.capitalize(s.color)}`]]}})(x.memoTheme(({theme:o})=>({color:(o.vars||o).palette.text.secondary,[`&.${N.disabled}`]:{color:(o.vars||o).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})`:e.alpha(o.palette.action.active,o.palette.action.hoverOpacity)}}},...Object.entries(o.palette).filter(B.createSimplePaletteValueFilter()).map(([r])=>({props:{color:r,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette[r].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:e.alpha(o.palette[r].main,o.palette.action.hoverOpacity)}}})),...Object.entries(o.palette).filter(B.createSimplePaletteValueFilter()).map(([r])=>({props:{color:r,disabled:!1},style:{[`&.${N.checked}`]:{color:(o.vars||o).palette[r].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function be(o,r){return typeof r=="object"&&r!==null?o===r:String(o)===String(r)}const M=a.jsx($,{checked:!0}),V=a.jsx($,{}),K=u.forwardRef(function(r,s){const t=n.useDefaultProps({props:r,name:"MuiRadio"}),{checked:l,checkedIcon:P=M,color:T="primary",icon:y=V,name:j,onChange:O,size:C="medium",className:q,disabled:z,disableRipple:L=!1,...D}=t,g=_.useFormControl();let p=z;g&&typeof p>"u"&&(p=g.disabled),p??(p=!1);const h={...t,disabled:p,disableRipple:L,color:T,size:C},F=fe(h),c=Z();let i=l;const v=te.createChainedFunction(O,c&&c.onChange);let d=j;return c&&(typeof i>"u"&&(i=be(c.value,t.value)),typeof d>"u"&&(d=c.name)),a.jsx(me,{type:"radio",icon:u.cloneElement(y,{fontSize:V.props.fontSize??C}),checkedIcon:u.cloneElement(P,{fontSize:M.props.fontSize??C}),disabled:p,ownerState:h,classes:F,name:d,checked:i,onChange:v,ref:s,className:e.clsx(F.root,q),...D})});process.env.NODE_ENV!=="production"&&(K.propTypes={checked:e.PropTypes.bool,checkedIcon:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["default","primary","secondary","error","info","success","warning"]),e.PropTypes.string]),disabled:e.PropTypes.bool,disableRipple:e.PropTypes.bool,icon:e.PropTypes.node,id:e.PropTypes.string,inputProps:e.PropTypes.object,inputRef:G.refType,name:e.PropTypes.string,onChange:e.PropTypes.func,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]),value:e.PropTypes.any});exports.FormControlLabel=W;exports.Radio=K;exports.RadioGroupContext=I;exports.formControlLabelClasses=m;exports.getFormControlLabelUtilityClasses=H;exports.getRadioUtilityClass=J;exports.radioClasses=N;exports.useRadioGroup=Z;
|