@cgi-learning-hub/ui 1.3.2 → 1.3.3-dev.1732123246
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-DorR8O-b.js +359 -0
- package/dist/Backdrop-cE8nccLi.cjs +1 -0
- package/dist/{Box-a6v7fn61.js → Box-BTNw-FYi.js} +8 -8
- package/dist/{Box-D61CmHcZ.cjs → Box-Y_dUbq3W.cjs} +1 -1
- package/dist/{Button-B8Vr_qVd.js → Button--paERYBc.js} +4 -4
- package/dist/{Button-elp97nQ8.cjs → Button-TBA8S65S.cjs} +1 -1
- package/dist/{ButtonBase-Y5TK5SRu.js → ButtonBase-B0gJT_ti.js} +228 -236
- package/dist/ButtonBase-DKxpvXo7.cjs +74 -0
- package/dist/Card-BVJgnURR.js +74 -0
- package/dist/Card-DBGYwd3H.cjs +1 -0
- package/dist/Checkbox-OTMaikud.cjs +1 -0
- package/dist/Checkbox-aBoDjdQG.js +241 -0
- package/dist/{CircularProgress-DU3DJQfF.js → CircularProgress-CIqTwP6H.js} +4 -4
- package/dist/{CircularProgress-DDIZxeFH.cjs → CircularProgress-DjNvPtUm.cjs} +7 -7
- package/dist/DatePicker-DGRD-CdO.cjs +14 -0
- package/dist/DatePicker-DXgVCuAd.js +10814 -0
- package/dist/{DefaultPropsProvider-7QnSWHxy.js → DefaultPropsProvider-StV_SUuk.js} +25 -25
- package/dist/{DefaultPropsProvider-eEVEiLDf.cjs → DefaultPropsProvider-eVMpAUQg.cjs} +1 -1
- package/dist/DialogContent-C0L4r0-p.cjs +1 -0
- package/dist/DialogContent-CP2NOfUr.js +602 -0
- package/dist/DialogTitle-Couh2TzJ.js +134 -0
- package/dist/DialogTitle-DemSKN6H.cjs +1 -0
- package/dist/FormGroup-CcM69JIS.js +348 -0
- package/dist/FormGroup-KOLND6rE.cjs +1 -0
- package/dist/FormLabel-C506NT5o.cjs +2 -0
- package/dist/FormLabel-wDh-AEMQ.js +417 -0
- package/dist/Grow-4QU1bnXQ.js +193 -0
- package/dist/Grow-C_nN9VuE.cjs +1 -0
- package/dist/IconButton-5LMERRPL.cjs +2 -0
- package/dist/{IconButton-C7H_G1LX.js → IconButton-CsqR1453.js} +5 -5
- package/dist/InputAdornment-DgT008NI.cjs +1 -0
- package/dist/{InputAdornment-CPJFY_m_.js → InputAdornment-bXTpzNQ2.js} +5 -5
- package/dist/InputBase-Cpx39cny.cjs +3 -0
- package/dist/{InputBase-5GB2c2J6.js → InputBase-VKt_ajuq.js} +185 -207
- package/dist/Link-6UH3Aljp.cjs +1 -0
- package/dist/Link-CPyeYGpa.js +266 -0
- package/dist/MenuItem-BFkBwBkN.js +277 -0
- package/dist/MenuItem-BxXCEc8h.cjs +1 -0
- package/dist/Modal-BDx2_UzP.js +750 -0
- package/dist/Modal-BLMnkdGb.cjs +2 -0
- package/dist/Paper-CMUbp6SX.js +185 -0
- package/dist/Paper-n4KgM09K.cjs +2 -0
- package/dist/Popper-D_UryU8v.js +1407 -0
- package/dist/Popper-DzQZEFYT.cjs +4 -0
- package/dist/Portal-C4QgaMKl.cjs +1 -0
- package/dist/Portal-DVy9JFBN.js +86 -0
- package/dist/Select-CcnCBhBN.js +3555 -0
- package/dist/Select-CnFa2_je.cjs +9 -0
- package/dist/{Stack-CutIWKkG.js → Stack-CKjrTRJB.js} +12 -12
- package/dist/{Stack-656bqKiW.cjs → Stack-elRjtOGk.cjs} +1 -1
- package/dist/SwitchBase-DWfUIgEW.cjs +1 -0
- package/dist/SwitchBase-DYa1wGSu.js +261 -0
- package/dist/{Tooltip-DqLAZimE.js → TableSortLabel-Czgy_sW5.js} +2998 -5191
- package/dist/TableSortLabel-Ppl9Q-SZ.cjs +98 -0
- package/dist/Tabs-CUpcnsPl.cjs +4 -0
- package/dist/{Tabs-CKic46Op.js → Tabs-RxcUgknI.js} +284 -282
- package/dist/TextField-DorMAtUh.js +547 -0
- package/dist/TextField-DvGLmvG1.cjs +1 -0
- package/dist/Tooltip-B4e9QdHI.js +697 -0
- package/dist/Tooltip-CPAH20AZ.cjs +4 -0
- package/dist/{Typography-DsJC595c.js → Typography-B29dnCv3.js} +4 -4
- package/dist/{Typography-CreZW2v6.cjs → Typography-DyMSnhvs.cjs} +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/chainPropTypes-CEUi6Jb4.cjs +1 -0
- package/dist/chainPropTypes-D9lkm76m.js +8 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +6 -6
- 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/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +6 -6
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +2 -2
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +3 -3
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +280 -269
- package/dist/components/stories/Alert.stories.cjs.js +1 -0
- package/dist/components/stories/Alert.stories.d.ts +9 -0
- package/dist/components/stories/Alert.stories.es.js +32 -0
- package/dist/components/stories/Button.stories.cjs.js +1 -0
- package/dist/components/stories/Button.stories.d.ts +8 -0
- package/dist/components/stories/Button.stories.es.js +43 -0
- package/dist/components/stories/Card.stories.cjs.js +1 -0
- package/dist/components/stories/Card.stories.d.ts +7 -0
- package/dist/components/stories/Card.stories.es.js +193 -0
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -0
- package/dist/components/stories/Checkbox.stories.d.ts +10 -0
- package/dist/components/stories/Checkbox.stories.es.js +28 -0
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -0
- package/dist/components/stories/DatePicker.stories.d.ts +6 -0
- package/dist/components/stories/DatePicker.stories.es.js +13 -0
- package/dist/components/stories/Dialog.stories.cjs.js +1 -0
- package/dist/components/stories/Dialog.stories.d.ts +7 -0
- package/dist/components/stories/Dialog.stories.es.js +33 -0
- package/dist/components/stories/Dropzone.stories.cjs.js +1 -0
- package/dist/components/stories/Dropzone.stories.d.ts +6 -0
- package/dist/components/stories/Dropzone.stories.es.js +14 -0
- package/dist/components/stories/EmptyState.stories.cjs.js +1 -0
- package/dist/components/stories/EmptyState.stories.d.ts +6 -0
- package/dist/components/stories/EmptyState.stories.es.js +14 -0
- package/dist/components/stories/FileList.stories.cjs.js +1 -0
- package/dist/components/stories/FileList.stories.d.ts +6 -0
- package/dist/components/stories/FileList.stories.es.js +26 -0
- package/dist/components/stories/Heading.stories.cjs.js +1 -0
- package/dist/components/stories/Heading.stories.d.ts +6 -0
- package/dist/components/stories/Heading.stories.es.js +20 -0
- package/dist/components/stories/IconButton.stories.cjs.js +1 -0
- package/dist/components/stories/IconButton.stories.d.ts +6 -0
- package/dist/components/{IconButton.stories.es.js → stories/IconButton.stories.es.js} +12 -14
- package/dist/components/stories/Link.stories.cjs.js +1 -0
- package/dist/components/stories/Link.stories.d.ts +7 -0
- package/dist/components/stories/Link.stories.es.js +43 -0
- package/dist/components/stories/Loader.stories.cjs.js +1 -0
- package/dist/components/stories/Loader.stories.d.ts +6 -0
- package/dist/components/stories/Loader.stories.es.js +11 -0
- package/dist/components/stories/LoaderBackdrop.stories.cjs.js +1 -0
- package/dist/components/stories/LoaderBackdrop.stories.d.ts +6 -0
- package/dist/components/stories/LoaderBackdrop.stories.es.js +11 -0
- package/dist/components/stories/Paper.stories.cjs.js +1 -0
- package/dist/components/stories/Paper.stories.d.ts +7 -0
- package/dist/components/stories/Paper.stories.es.js +28 -0
- package/dist/components/stories/PasswordInput.stories.cjs.js +1 -0
- package/dist/components/stories/PasswordInput.stories.d.ts +6 -0
- package/dist/components/stories/PasswordInput.stories.es.js +13 -0
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -0
- package/dist/components/stories/RadioGroup.stories.d.ts +8 -0
- package/dist/components/stories/RadioGroup.stories.es.js +435 -0
- package/dist/components/stories/SearchInput.stories.cjs.js +1 -0
- package/dist/components/stories/SearchInput.stories.d.ts +6 -0
- package/dist/components/stories/SearchInput.stories.es.js +13 -0
- package/dist/components/stories/Select.stories.cjs.js +1 -0
- package/dist/components/stories/Select.stories.d.ts +10 -0
- package/dist/components/stories/Select.stories.es.js +52 -0
- package/dist/components/stories/TabList.stories.cjs.js +1 -0
- package/dist/components/stories/TabList.stories.d.ts +7 -0
- package/dist/components/{TabList.stories.es.js → stories/TabList.stories.es.js} +45 -52
- package/dist/components/stories/TextField.stories.cjs.js +1 -0
- package/dist/components/stories/TextField.stories.d.ts +10 -0
- package/dist/components/stories/TextField.stories.es.js +69 -0
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -0
- package/dist/components/stories/Tooltip.stories.d.ts +7 -0
- package/dist/components/stories/Tooltip.stories.es.js +46 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/createChainedFunction-CJmlQuW8.cjs +1 -0
- package/dist/{createSvgIcon-PXjVOXDY.cjs → createSvgIcon-DQqazotA.cjs} +1 -1
- package/dist/{createSvgIcon-Ae1vF9Lv.js → createSvgIcon-VByplk-r.js} +3 -3
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/debounce-DpCj7ugL.cjs +1 -0
- package/dist/elementTypeAcceptingRef-BPhL72td.js +23 -0
- package/dist/elementTypeAcceptingRef-DiSL8-Ea.cjs +1 -0
- package/dist/{extendSxProp-BzTGWWcy.js → extendSxProp-BYB-kybW.js} +1 -1
- package/dist/{extendSxProp-DLhbnNxc.cjs → extendSxProp-BZ8P8fbI.cjs} +1 -1
- package/dist/formControlState-DCkDUdfO.cjs +1 -0
- package/dist/formControlState-DdQP43Uo.js +21 -0
- package/dist/{fr-B0c4Eu-I.js → fr-B4aeA9th.js} +23 -23
- package/dist/{fr-BtINyNRC.cjs → fr-CSCQhSqi.cjs} +1 -1
- package/dist/{identifier-Bu3vgTzE.js → identifier-BewKgEhI.js} +487 -486
- package/dist/{identifier-B_IiMbpZ.cjs → identifier-DTh6b5Gz.cjs} +17 -17
- package/dist/{index-D4YvqRSh.js → index-BAjSgP8k.js} +3 -3
- package/dist/{index-BDy6VH40.cjs → index-B_acx8gh.cjs} +1 -1
- package/dist/{index-DNmEgr4X.js → index-_oi9ph20.js} +4 -4
- package/dist/index-oINGa1MV.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +280 -269
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/isFocusVisible-DlSijby6.cjs +2 -0
- package/dist/{memoTheme-C4_nd-x4.js → memoTheme-B9kDhX1-.js} +1 -1
- package/dist/{memoTheme-DvW891YJ.cjs → memoTheme-DJBS0nbO.cjs} +1 -1
- package/dist/ownerDocument-4MViGo3k.cjs +1 -0
- package/dist/ownerDocument-CUrv0DIK.js +6 -0
- package/dist/ownerWindow-DDHucZi0.cjs +1 -0
- package/dist/ownerWindow-niciwP7I.js +7 -0
- package/dist/refType-3o3c-kYx.js +7 -0
- package/dist/refType-DNB-r0Bp.cjs +1 -0
- package/dist/{useTheme-B_3HWqyi.js → resolveComponentProps-BQQ-uUKZ.js} +18 -26
- package/dist/resolveComponentProps-R_l8gy3y.cjs +1 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useControlled-Ysk4KqoX.cjs +3 -0
- package/dist/useForkRef-CTI33h-3.cjs +1 -0
- package/dist/useForkRef-C_4o__cU.js +15 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/useFormControl-haP0iPhl.cjs +1 -0
- package/dist/useSlot-B2hCpx8C.js +50 -0
- package/dist/useSlot-i7AZwCRV.cjs +1 -0
- package/dist/useTheme-0u9_WhjM.js +11 -0
- package/dist/{useTheme-DhYab2-0.js → useTheme-BrFhq4dW.js} +1 -1
- package/dist/useTheme-DfN3sBzg.cjs +1 -0
- package/dist/{useTheme-vN32oV1t.cjs → useTheme-w4BoR6ol.cjs} +1 -1
- package/dist/{useThemeProps-5hp2m3Xl.cjs → useThemeProps-BoO3MMZc.cjs} +1 -1
- package/dist/{useThemeProps-D_gKWuk1.cjs → useThemeProps-CkGODfms.cjs} +1 -1
- package/dist/{useThemeProps-Bmkt_XOR.js → useThemeProps-CwWORfXn.js} +4 -4
- package/dist/{useThemeProps-DftpgVZ0.js → useThemeProps-cERu5xHk.js} +3 -3
- package/dist/{useTimeout-Bx22KOcH.js → useTimeout-Br8oWWYt.js} +4 -4
- package/dist/{useTimeout-gEG15bRo.cjs → useTimeout-DnTtyB2y.cjs} +1 -1
- package/dist/utils-CH0HZgJe.js +391 -0
- package/dist/utils-D2bhwE7x.cjs +1 -0
- package/package.json +1 -1
- package/dist/Backdrop-CxHwPsCX.js +0 -789
- package/dist/Backdrop-ZCTs-Ws8.cjs +0 -1
- package/dist/ButtonBase-S0mFlojL.cjs +0 -75
- package/dist/DatePicker-BigDV0IN.cjs +0 -17
- package/dist/DatePicker-ZdjLD9eR.js +0 -12779
- package/dist/IconButton-DfmbM9nO.cjs +0 -2
- package/dist/InputAdornment-C-EbfNtT.cjs +0 -1
- package/dist/InputBase-CPtGhJye.cjs +0 -3
- package/dist/Tabs-DzrxYlm-.cjs +0 -4
- package/dist/TextField-BLEvZwPH.cjs +0 -14
- package/dist/TextField-CGMPbx_J.js +0 -5686
- package/dist/Tooltip-BJefPCe7.cjs +0 -100
- package/dist/components/Alert/Alert.stories.cjs.js +0 -1
- package/dist/components/Alert/Alert.stories.d.ts +0 -4
- package/dist/components/Alert/Alert.stories.es.js +0 -17
- package/dist/components/Button/Button.stories.cjs.js +0 -1
- package/dist/components/Button/Button.stories.d.ts +0 -6
- package/dist/components/Button/Button.stories.es.js +0 -45
- package/dist/components/DatePicker/DatePicker.stories.cjs.js +0 -1
- package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -4
- package/dist/components/DatePicker/DatePicker.stories.es.js +0 -16
- package/dist/components/Dropzone/Dropzone.stories.cjs.js +0 -1
- package/dist/components/Dropzone/Dropzone.stories.d.ts +0 -4
- package/dist/components/Dropzone/Dropzone.stories.es.js +0 -17
- package/dist/components/EmptyState/EmptyState.stories.cjs.js +0 -1
- package/dist/components/EmptyState/EmptyState.stories.d.ts +0 -4
- package/dist/components/EmptyState/EmptyState.stories.es.js +0 -17
- package/dist/components/FileList/FileList.stories.cjs.js +0 -1
- package/dist/components/FileList/FileList.stories.d.ts +0 -4
- package/dist/components/FileList/FileList.stories.es.js +0 -28
- package/dist/components/Heading/Heading.stories.cjs.js +0 -1
- package/dist/components/Heading/Heading.stories.d.ts +0 -4
- package/dist/components/Heading/Heading.stories.es.js +0 -22
- package/dist/components/IconButton.stories.cjs.js +0 -1
- package/dist/components/IconButton.stories.d.ts +0 -4
- package/dist/components/Loader/Loader.stories.cjs.js +0 -1
- package/dist/components/Loader/Loader.stories.d.ts +0 -4
- package/dist/components/Loader/Loader.stories.es.js +0 -14
- package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.cjs.js +0 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.d.ts +0 -4
- package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.es.js +0 -14
- package/dist/components/PasswordInput/PasswordInput.stories.cjs.js +0 -1
- package/dist/components/PasswordInput/PasswordInput.stories.d.ts +0 -4
- package/dist/components/PasswordInput/PasswordInput.stories.es.js +0 -16
- package/dist/components/SearchInput/SearchInput.stories.cjs.js +0 -1
- package/dist/components/SearchInput/SearchInput.stories.d.ts +0 -4
- package/dist/components/SearchInput/SearchInput.stories.es.js +0 -16
- package/dist/components/TabList.stories.cjs.js +0 -1
- package/dist/components/TabList.stories.d.ts +0 -4
- package/dist/components/TextInput/TextInput.stories.cjs.js +0 -1
- package/dist/components/TextInput/TextInput.stories.d.ts +0 -7
- package/dist/components/TextInput/TextInput.stories.es.js +0 -43
- package/dist/index-Dl4BXU0b.cjs +0 -1
- package/dist/ownerWindow-BoRkeomM.js +0 -23
- package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
- package/dist/refType-DYRsy3ld.cjs +0 -1
- package/dist/refType-DvOnKTmB.js +0 -27
- package/dist/useForkRef-D-DyzOXj.js +0 -21
- package/dist/useForkRef-D81w5oMb.cjs +0 -1
- package/dist/useTheme-BvsnROiB.cjs +0 -1
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
import { P as n } from "./identifier-BewKgEhI.js";
|
|
2
|
+
import { c as R } from "./chainPropTypes-D9lkm76m.js";
|
|
3
|
+
import * as y from "react";
|
|
4
|
+
import v from "react";
|
|
5
|
+
import { _ as C, a as k, T as S } from "./TransitionGroupContext-DMJLhY9-.js";
|
|
6
|
+
import g from "react-dom";
|
|
7
|
+
function w(u) {
|
|
8
|
+
const {
|
|
9
|
+
prototype: s = {}
|
|
10
|
+
} = u;
|
|
11
|
+
return !!s.isReactComponent;
|
|
12
|
+
}
|
|
13
|
+
function O(u, s, a, r, e) {
|
|
14
|
+
const t = u[s], i = e || s;
|
|
15
|
+
if (t == null || // When server-side rendering React doesn't warn either.
|
|
16
|
+
// This is not an accurate check for SSR.
|
|
17
|
+
// This is only in place for Emotion compat.
|
|
18
|
+
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
19
|
+
typeof window > "u")
|
|
20
|
+
return null;
|
|
21
|
+
let o;
|
|
22
|
+
const p = t.type;
|
|
23
|
+
return typeof p == "function" && !w(p) && (o = "Did you accidentally use a plain function component for an element instead?"), o !== void 0 ? new Error(`Invalid ${r} \`${i}\` supplied to \`${a}\`. Expected an element that can hold a ref. ${o} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
24
|
+
}
|
|
25
|
+
const I = R(n.element, O);
|
|
26
|
+
I.isRequired = R(n.element.isRequired, O);
|
|
27
|
+
function A(u) {
|
|
28
|
+
var s;
|
|
29
|
+
return parseInt(y.version, 10) >= 19 ? ((s = u == null ? void 0 : u.props) == null ? void 0 : s.ref) || null : (u == null ? void 0 : u.ref) || null;
|
|
30
|
+
}
|
|
31
|
+
const N = {
|
|
32
|
+
disabled: !1
|
|
33
|
+
};
|
|
34
|
+
var M = process.env.NODE_ENV !== "production" ? n.oneOfType([n.number, n.shape({
|
|
35
|
+
enter: n.number,
|
|
36
|
+
exit: n.number,
|
|
37
|
+
appear: n.number
|
|
38
|
+
}).isRequired]) : null, F = process.env.NODE_ENV !== "production" ? n.oneOfType([n.string, n.shape({
|
|
39
|
+
enter: n.string,
|
|
40
|
+
exit: n.string,
|
|
41
|
+
active: n.string
|
|
42
|
+
}), n.shape({
|
|
43
|
+
enter: n.string,
|
|
44
|
+
enterDone: n.string,
|
|
45
|
+
enterActive: n.string,
|
|
46
|
+
exit: n.string,
|
|
47
|
+
exitDone: n.string,
|
|
48
|
+
exitActive: n.string
|
|
49
|
+
})]) : null, P = function(s) {
|
|
50
|
+
return s.scrollTop;
|
|
51
|
+
}, x = "unmounted", l = "exited", c = "entering", h = "entered", T = "exiting", f = /* @__PURE__ */ function(u) {
|
|
52
|
+
C(s, u);
|
|
53
|
+
function s(r, e) {
|
|
54
|
+
var t;
|
|
55
|
+
t = u.call(this, r, e) || this;
|
|
56
|
+
var i = e, o = i && !i.isMounting ? r.enter : r.appear, p;
|
|
57
|
+
return t.appearStatus = null, r.in ? o ? (p = l, t.appearStatus = c) : p = h : r.unmountOnExit || r.mountOnEnter ? p = x : p = l, t.state = {
|
|
58
|
+
status: p
|
|
59
|
+
}, t.nextCallback = null, t;
|
|
60
|
+
}
|
|
61
|
+
s.getDerivedStateFromProps = function(e, t) {
|
|
62
|
+
var i = e.in;
|
|
63
|
+
return i && t.status === x ? {
|
|
64
|
+
status: l
|
|
65
|
+
} : null;
|
|
66
|
+
};
|
|
67
|
+
var a = s.prototype;
|
|
68
|
+
return a.componentDidMount = function() {
|
|
69
|
+
this.updateStatus(!0, this.appearStatus);
|
|
70
|
+
}, a.componentDidUpdate = function(e) {
|
|
71
|
+
var t = null;
|
|
72
|
+
if (e !== this.props) {
|
|
73
|
+
var i = this.state.status;
|
|
74
|
+
this.props.in ? i !== c && i !== h && (t = c) : (i === c || i === h) && (t = T);
|
|
75
|
+
}
|
|
76
|
+
this.updateStatus(!1, t);
|
|
77
|
+
}, a.componentWillUnmount = function() {
|
|
78
|
+
this.cancelNextCallback();
|
|
79
|
+
}, a.getTimeouts = function() {
|
|
80
|
+
var e = this.props.timeout, t, i, o;
|
|
81
|
+
return t = i = o = e, e != null && typeof e != "number" && (t = e.exit, i = e.enter, o = e.appear !== void 0 ? e.appear : i), {
|
|
82
|
+
exit: t,
|
|
83
|
+
enter: i,
|
|
84
|
+
appear: o
|
|
85
|
+
};
|
|
86
|
+
}, a.updateStatus = function(e, t) {
|
|
87
|
+
if (e === void 0 && (e = !1), t !== null)
|
|
88
|
+
if (this.cancelNextCallback(), t === c) {
|
|
89
|
+
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
90
|
+
var i = this.props.nodeRef ? this.props.nodeRef.current : g.findDOMNode(this);
|
|
91
|
+
i && P(i);
|
|
92
|
+
}
|
|
93
|
+
this.performEnter(e);
|
|
94
|
+
} else
|
|
95
|
+
this.performExit();
|
|
96
|
+
else this.props.unmountOnExit && this.state.status === l && this.setState({
|
|
97
|
+
status: x
|
|
98
|
+
});
|
|
99
|
+
}, a.performEnter = function(e) {
|
|
100
|
+
var t = this, i = this.props.enter, o = this.context ? this.context.isMounting : e, p = this.props.nodeRef ? [o] : [g.findDOMNode(this), o], d = p[0], m = p[1], b = this.getTimeouts(), D = o ? b.appear : b.enter;
|
|
101
|
+
if (!e && !i || N.disabled) {
|
|
102
|
+
this.safeSetState({
|
|
103
|
+
status: h
|
|
104
|
+
}, function() {
|
|
105
|
+
t.props.onEntered(d);
|
|
106
|
+
});
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
this.props.onEnter(d, m), this.safeSetState({
|
|
110
|
+
status: c
|
|
111
|
+
}, function() {
|
|
112
|
+
t.props.onEntering(d, m), t.onTransitionEnd(D, function() {
|
|
113
|
+
t.safeSetState({
|
|
114
|
+
status: h
|
|
115
|
+
}, function() {
|
|
116
|
+
t.props.onEntered(d, m);
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
}, a.performExit = function() {
|
|
121
|
+
var e = this, t = this.props.exit, i = this.getTimeouts(), o = this.props.nodeRef ? void 0 : g.findDOMNode(this);
|
|
122
|
+
if (!t || N.disabled) {
|
|
123
|
+
this.safeSetState({
|
|
124
|
+
status: l
|
|
125
|
+
}, function() {
|
|
126
|
+
e.props.onExited(o);
|
|
127
|
+
});
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
this.props.onExit(o), this.safeSetState({
|
|
131
|
+
status: T
|
|
132
|
+
}, function() {
|
|
133
|
+
e.props.onExiting(o), e.onTransitionEnd(i.exit, function() {
|
|
134
|
+
e.safeSetState({
|
|
135
|
+
status: l
|
|
136
|
+
}, function() {
|
|
137
|
+
e.props.onExited(o);
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
}, a.cancelNextCallback = function() {
|
|
142
|
+
this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
143
|
+
}, a.safeSetState = function(e, t) {
|
|
144
|
+
t = this.setNextCallback(t), this.setState(e, t);
|
|
145
|
+
}, a.setNextCallback = function(e) {
|
|
146
|
+
var t = this, i = !0;
|
|
147
|
+
return this.nextCallback = function(o) {
|
|
148
|
+
i && (i = !1, t.nextCallback = null, e(o));
|
|
149
|
+
}, this.nextCallback.cancel = function() {
|
|
150
|
+
i = !1;
|
|
151
|
+
}, this.nextCallback;
|
|
152
|
+
}, a.onTransitionEnd = function(e, t) {
|
|
153
|
+
this.setNextCallback(t);
|
|
154
|
+
var i = this.props.nodeRef ? this.props.nodeRef.current : g.findDOMNode(this), o = e == null && !this.props.addEndListener;
|
|
155
|
+
if (!i || o) {
|
|
156
|
+
setTimeout(this.nextCallback, 0);
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
if (this.props.addEndListener) {
|
|
160
|
+
var p = this.props.nodeRef ? [this.nextCallback] : [i, this.nextCallback], d = p[0], m = p[1];
|
|
161
|
+
this.props.addEndListener(d, m);
|
|
162
|
+
}
|
|
163
|
+
e != null && setTimeout(this.nextCallback, e);
|
|
164
|
+
}, a.render = function() {
|
|
165
|
+
var e = this.state.status;
|
|
166
|
+
if (e === x)
|
|
167
|
+
return null;
|
|
168
|
+
var t = this.props, i = t.children;
|
|
169
|
+
t.in, t.mountOnEnter, t.unmountOnExit, t.appear, t.enter, t.exit, t.timeout, t.addEndListener, t.onEnter, t.onEntering, t.onEntered, t.onExit, t.onExiting, t.onExited, t.nodeRef;
|
|
170
|
+
var o = k(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
171
|
+
return (
|
|
172
|
+
// allows for nested Transitions
|
|
173
|
+
/* @__PURE__ */ v.createElement(S.Provider, {
|
|
174
|
+
value: null
|
|
175
|
+
}, typeof i == "function" ? i(e, o) : v.cloneElement(v.Children.only(i), o))
|
|
176
|
+
);
|
|
177
|
+
}, s;
|
|
178
|
+
}(v.Component);
|
|
179
|
+
f.contextType = S;
|
|
180
|
+
f.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
181
|
+
/**
|
|
182
|
+
* A React reference to DOM element that need to transition:
|
|
183
|
+
* https://stackoverflow.com/a/51127130/4671932
|
|
184
|
+
*
|
|
185
|
+
* - When `nodeRef` prop is used, `node` is not passed to callback functions
|
|
186
|
+
* (e.g. `onEnter`) because user already has direct access to the node.
|
|
187
|
+
* - When changing `key` prop of `Transition` in a `TransitionGroup` a new
|
|
188
|
+
* `nodeRef` need to be provided to `Transition` with changed `key` prop
|
|
189
|
+
* (see
|
|
190
|
+
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
191
|
+
*/
|
|
192
|
+
nodeRef: n.shape({
|
|
193
|
+
current: typeof Element > "u" ? n.any : function(u, s, a, r, e, t) {
|
|
194
|
+
var i = u[s];
|
|
195
|
+
return n.instanceOf(i && "ownerDocument" in i ? i.ownerDocument.defaultView.Element : Element)(u, s, a, r, e, t);
|
|
196
|
+
}
|
|
197
|
+
}),
|
|
198
|
+
/**
|
|
199
|
+
* A `function` child can be used instead of a React element. This function is
|
|
200
|
+
* called with the current transition status (`'entering'`, `'entered'`,
|
|
201
|
+
* `'exiting'`, `'exited'`), which can be used to apply context
|
|
202
|
+
* specific props to a component.
|
|
203
|
+
*
|
|
204
|
+
* ```jsx
|
|
205
|
+
* <Transition in={this.state.in} timeout={150}>
|
|
206
|
+
* {state => (
|
|
207
|
+
* <MyComponent className={`fade fade-${state}`} />
|
|
208
|
+
* )}
|
|
209
|
+
* </Transition>
|
|
210
|
+
* ```
|
|
211
|
+
*/
|
|
212
|
+
children: n.oneOfType([n.func.isRequired, n.element.isRequired]).isRequired,
|
|
213
|
+
/**
|
|
214
|
+
* Show the component; triggers the enter or exit states
|
|
215
|
+
*/
|
|
216
|
+
in: n.bool,
|
|
217
|
+
/**
|
|
218
|
+
* By default the child component is mounted immediately along with
|
|
219
|
+
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
220
|
+
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
221
|
+
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
222
|
+
*/
|
|
223
|
+
mountOnEnter: n.bool,
|
|
224
|
+
/**
|
|
225
|
+
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
226
|
+
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
227
|
+
*/
|
|
228
|
+
unmountOnExit: n.bool,
|
|
229
|
+
/**
|
|
230
|
+
* By default the child component does not perform the enter transition when
|
|
231
|
+
* it first mounts, regardless of the value of `in`. If you want this
|
|
232
|
+
* behavior, set both `appear` and `in` to `true`.
|
|
233
|
+
*
|
|
234
|
+
* > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
|
|
235
|
+
* > only adds an additional enter transition. However, in the
|
|
236
|
+
* > `<CSSTransition>` component that first enter transition does result in
|
|
237
|
+
* > additional `.appear-*` classes, that way you can choose to style it
|
|
238
|
+
* > differently.
|
|
239
|
+
*/
|
|
240
|
+
appear: n.bool,
|
|
241
|
+
/**
|
|
242
|
+
* Enable or disable enter transitions.
|
|
243
|
+
*/
|
|
244
|
+
enter: n.bool,
|
|
245
|
+
/**
|
|
246
|
+
* Enable or disable exit transitions.
|
|
247
|
+
*/
|
|
248
|
+
exit: n.bool,
|
|
249
|
+
/**
|
|
250
|
+
* The duration of the transition, in milliseconds.
|
|
251
|
+
* Required unless `addEndListener` is provided.
|
|
252
|
+
*
|
|
253
|
+
* You may specify a single timeout for all transitions:
|
|
254
|
+
*
|
|
255
|
+
* ```jsx
|
|
256
|
+
* timeout={500}
|
|
257
|
+
* ```
|
|
258
|
+
*
|
|
259
|
+
* or individually:
|
|
260
|
+
*
|
|
261
|
+
* ```jsx
|
|
262
|
+
* timeout={{
|
|
263
|
+
* appear: 500,
|
|
264
|
+
* enter: 300,
|
|
265
|
+
* exit: 500,
|
|
266
|
+
* }}
|
|
267
|
+
* ```
|
|
268
|
+
*
|
|
269
|
+
* - `appear` defaults to the value of `enter`
|
|
270
|
+
* - `enter` defaults to `0`
|
|
271
|
+
* - `exit` defaults to `0`
|
|
272
|
+
*
|
|
273
|
+
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
274
|
+
*/
|
|
275
|
+
timeout: function(s) {
|
|
276
|
+
var a = M;
|
|
277
|
+
s.addEndListener || (a = a.isRequired);
|
|
278
|
+
for (var r = arguments.length, e = new Array(r > 1 ? r - 1 : 0), t = 1; t < r; t++)
|
|
279
|
+
e[t - 1] = arguments[t];
|
|
280
|
+
return a.apply(void 0, [s].concat(e));
|
|
281
|
+
},
|
|
282
|
+
/**
|
|
283
|
+
* Add a custom transition end trigger. Called with the transitioning
|
|
284
|
+
* DOM node and a `done` callback. Allows for more fine grained transition end
|
|
285
|
+
* logic. Timeouts are still used as a fallback if provided.
|
|
286
|
+
*
|
|
287
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
288
|
+
*
|
|
289
|
+
* ```jsx
|
|
290
|
+
* addEndListener={(node, done) => {
|
|
291
|
+
* // use the css transitionend event to mark the finish of a transition
|
|
292
|
+
* node.addEventListener('transitionend', done, false);
|
|
293
|
+
* }}
|
|
294
|
+
* ```
|
|
295
|
+
*/
|
|
296
|
+
addEndListener: n.func,
|
|
297
|
+
/**
|
|
298
|
+
* Callback fired before the "entering" status is applied. An extra parameter
|
|
299
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
300
|
+
*
|
|
301
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
302
|
+
*
|
|
303
|
+
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
304
|
+
*/
|
|
305
|
+
onEnter: n.func,
|
|
306
|
+
/**
|
|
307
|
+
* Callback fired after the "entering" status is applied. An extra parameter
|
|
308
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
309
|
+
*
|
|
310
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
311
|
+
*
|
|
312
|
+
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
313
|
+
*/
|
|
314
|
+
onEntering: n.func,
|
|
315
|
+
/**
|
|
316
|
+
* Callback fired after the "entered" status is applied. An extra parameter
|
|
317
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
318
|
+
*
|
|
319
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
320
|
+
*
|
|
321
|
+
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
322
|
+
*/
|
|
323
|
+
onEntered: n.func,
|
|
324
|
+
/**
|
|
325
|
+
* Callback fired before the "exiting" status is applied.
|
|
326
|
+
*
|
|
327
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
328
|
+
*
|
|
329
|
+
* @type Function(node: HtmlElement) -> void
|
|
330
|
+
*/
|
|
331
|
+
onExit: n.func,
|
|
332
|
+
/**
|
|
333
|
+
* Callback fired after the "exiting" status is applied.
|
|
334
|
+
*
|
|
335
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
336
|
+
*
|
|
337
|
+
* @type Function(node: HtmlElement) -> void
|
|
338
|
+
*/
|
|
339
|
+
onExiting: n.func,
|
|
340
|
+
/**
|
|
341
|
+
* Callback fired after the "exited" status is applied.
|
|
342
|
+
*
|
|
343
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
344
|
+
*
|
|
345
|
+
* @type Function(node: HtmlElement) -> void
|
|
346
|
+
*/
|
|
347
|
+
onExited: n.func
|
|
348
|
+
} : {};
|
|
349
|
+
function E() {
|
|
350
|
+
}
|
|
351
|
+
f.defaultProps = {
|
|
352
|
+
in: !1,
|
|
353
|
+
mountOnEnter: !1,
|
|
354
|
+
unmountOnExit: !1,
|
|
355
|
+
appear: !1,
|
|
356
|
+
enter: !0,
|
|
357
|
+
exit: !0,
|
|
358
|
+
onEnter: E,
|
|
359
|
+
onEntering: E,
|
|
360
|
+
onEntered: E,
|
|
361
|
+
onExit: E,
|
|
362
|
+
onExiting: E,
|
|
363
|
+
onExited: E
|
|
364
|
+
};
|
|
365
|
+
f.UNMOUNTED = x;
|
|
366
|
+
f.EXITED = l;
|
|
367
|
+
f.ENTERING = c;
|
|
368
|
+
f.ENTERED = h;
|
|
369
|
+
f.EXITING = T;
|
|
370
|
+
const X = (u) => u.scrollTop;
|
|
371
|
+
function $(u, s) {
|
|
372
|
+
const {
|
|
373
|
+
timeout: a,
|
|
374
|
+
easing: r,
|
|
375
|
+
style: e = {}
|
|
376
|
+
} = u;
|
|
377
|
+
return {
|
|
378
|
+
duration: e.transitionDuration ?? (typeof a == "number" ? a : a[s.mode] || 0),
|
|
379
|
+
easing: e.transitionTimingFunction ?? (typeof r == "object" ? r[s.mode] : r),
|
|
380
|
+
delay: e.transitionDelay
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
export {
|
|
384
|
+
f as T,
|
|
385
|
+
$ as a,
|
|
386
|
+
F as c,
|
|
387
|
+
I as e,
|
|
388
|
+
P as f,
|
|
389
|
+
A as g,
|
|
390
|
+
X as r
|
|
391
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("./identifier-DTh6b5Gz.cjs"),N=require("./chainPropTypes-CEUi6Jb4.cjs"),m=require("react"),v=require("./TransitionGroupContext-DbXD5xqS.cjs"),y=require("react-dom");function C(s){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const o in s)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(s,o);Object.defineProperty(a,o,i.get?i:{enumerable:!0,get:()=>s[o]})}}return a.default=s,Object.freeze(a)}const k=C(m);function w(s){const{prototype:a={}}=s;return!!a.isReactComponent}function R(s,a,o,i,t){const e=s[a],r=t||a;if(e==null||typeof window>"u")return null;let p;const u=e.type;return typeof u=="function"&&!w(u)&&(p="Did you accidentally use a plain function component for an element instead?"),p!==void 0?new Error(`Invalid ${i} \`${r}\` supplied to \`${o}\`. Expected an element that can hold a ref. ${p} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const O=N.chainPropTypes(n.PropTypes.element,R);O.isRequired=N.chainPropTypes(n.PropTypes.element.isRequired,R);function q(s){var a;return parseInt(k.version,10)>=19?((a=s==null?void 0:s.props)==null?void 0:a.ref)||null:(s==null?void 0:s.ref)||null}const b={disabled:!1};var M=process.env.NODE_ENV!=="production"?n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.shape({enter:n.PropTypes.number,exit:n.PropTypes.number,appear:n.PropTypes.number}).isRequired]):null,I=process.env.NODE_ENV!=="production"?n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.shape({enter:n.PropTypes.string,exit:n.PropTypes.string,active:n.PropTypes.string}),n.PropTypes.shape({enter:n.PropTypes.string,enterDone:n.PropTypes.string,enterActive:n.PropTypes.string,exit:n.PropTypes.string,exitDone:n.PropTypes.string,exitActive:n.PropTypes.string})]):null,S=function(a){return a.scrollTop},x="unmounted",l="exited",f="entering",h="entered",P="exiting",c=function(s){v._inheritsLoose(a,s);function a(i,t){var e;e=s.call(this,i,t)||this;var r=t,p=r&&!r.isMounting?i.enter:i.appear,u;return e.appearStatus=null,i.in?p?(u=l,e.appearStatus=f):u=h:i.unmountOnExit||i.mountOnEnter?u=x:u=l,e.state={status:u},e.nextCallback=null,e}a.getDerivedStateFromProps=function(t,e){var r=t.in;return r&&e.status===x?{status:l}:null};var o=a.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(t){var e=null;if(t!==this.props){var r=this.state.status;this.props.in?r!==f&&r!==h&&(e=f):(r===f||r===h)&&(e=P)}this.updateStatus(!1,e)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var t=this.props.timeout,e,r,p;return e=r=p=t,t!=null&&typeof t!="number"&&(e=t.exit,r=t.enter,p=t.appear!==void 0?t.appear:r),{exit:e,enter:r,appear:p}},o.updateStatus=function(t,e){if(t===void 0&&(t=!1),e!==null)if(this.cancelNextCallback(),e===f){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:y.findDOMNode(this);r&&S(r)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===l&&this.setState({status:x})},o.performEnter=function(t){var e=this,r=this.props.enter,p=this.context?this.context.isMounting:t,u=this.props.nodeRef?[p]:[y.findDOMNode(this),p],d=u[0],T=u[1],g=this.getTimeouts(),D=p?g.appear:g.enter;if(!t&&!r||b.disabled){this.safeSetState({status:h},function(){e.props.onEntered(d)});return}this.props.onEnter(d,T),this.safeSetState({status:f},function(){e.props.onEntering(d,T),e.onTransitionEnd(D,function(){e.safeSetState({status:h},function(){e.props.onEntered(d,T)})})})},o.performExit=function(){var t=this,e=this.props.exit,r=this.getTimeouts(),p=this.props.nodeRef?void 0:y.findDOMNode(this);if(!e||b.disabled){this.safeSetState({status:l},function(){t.props.onExited(p)});return}this.props.onExit(p),this.safeSetState({status:P},function(){t.props.onExiting(p),t.onTransitionEnd(r.exit,function(){t.safeSetState({status:l},function(){t.props.onExited(p)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},o.setNextCallback=function(t){var e=this,r=!0;return this.nextCallback=function(p){r&&(r=!1,e.nextCallback=null,t(p))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},o.onTransitionEnd=function(t,e){this.setNextCallback(e);var r=this.props.nodeRef?this.props.nodeRef.current:y.findDOMNode(this),p=t==null&&!this.props.addEndListener;if(!r||p){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],d=u[0],T=u[1];this.props.addEndListener(d,T)}t!=null&&setTimeout(this.nextCallback,t)},o.render=function(){var t=this.state.status;if(t===x)return null;var e=this.props,r=e.children;e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef;var p=v._objectWithoutPropertiesLoose(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(v.TransitionGroupContext.Provider,{value:null},typeof r=="function"?r(t,p):m.cloneElement(m.Children.only(r),p))},a}(m.Component);c.contextType=v.TransitionGroupContext;c.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:n.PropTypes.shape({current:typeof Element>"u"?n.PropTypes.any:function(s,a,o,i,t,e){var r=s[a];return n.PropTypes.instanceOf(r&&"ownerDocument"in r?r.ownerDocument.defaultView.Element:Element)(s,a,o,i,t,e)}}),children:n.PropTypes.oneOfType([n.PropTypes.func.isRequired,n.PropTypes.element.isRequired]).isRequired,in:n.PropTypes.bool,mountOnEnter:n.PropTypes.bool,unmountOnExit:n.PropTypes.bool,appear:n.PropTypes.bool,enter:n.PropTypes.bool,exit:n.PropTypes.bool,timeout:function(a){var o=M;a.addEndListener||(o=o.isRequired);for(var i=arguments.length,t=new Array(i>1?i-1:0),e=1;e<i;e++)t[e-1]=arguments[e];return o.apply(void 0,[a].concat(t))},addEndListener:n.PropTypes.func,onEnter:n.PropTypes.func,onEntering:n.PropTypes.func,onEntered:n.PropTypes.func,onExit:n.PropTypes.func,onExiting:n.PropTypes.func,onExited:n.PropTypes.func}:{};function E(){}c.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:E,onEntering:E,onEntered:E,onExit:E,onExiting:E,onExited:E};c.UNMOUNTED=x;c.EXITED=l;c.ENTERING=f;c.ENTERED=h;c.EXITING=P;const L=s=>s.scrollTop;function G(s,a){const{timeout:o,easing:i,style:t={}}=s;return{duration:t.transitionDuration??(typeof o=="number"?o:o[a.mode]||0),easing:t.transitionTimingFunction??(typeof i=="object"?i[a.mode]:i),delay:t.transitionDelay}}exports.Transition=c;exports.classNamesShape=I;exports.elementAcceptingRef=O;exports.forceReflow=S;exports.getReactElementRef=q;exports.getTransitionProps=G;exports.reflow=L;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cgi-learning-hub/ui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3-dev.1732123246",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "CGI Learning-hub Team",
|
|
6
6
|
"description": "@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features",
|