@cgi-learning-hub/ui 1.3.5-dev.1740134984 → 1.3.5-dev.1740404617
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-COarwgJj.cjs +1 -0
- package/dist/{Backdrop-CZ3ay4ta.js → Backdrop-DdA12b-5.js} +5 -5
- package/dist/Box-C0mEbUoK.cjs +1 -0
- package/dist/{Box-Cpg9IWKr.js → Box-DbRInJ2-.js} +3 -3
- package/dist/Button-1tZRtOeG.cjs +1 -0
- package/dist/Button-rxIER0bL.js +662 -0
- package/dist/{ButtonBase-C9D6EAt-.cjs → ButtonBase-C2rhY3j-.cjs} +1 -1
- package/dist/{ButtonBase-ylADCBW1.js → ButtonBase-DzpmdR6N.js} +4 -4
- package/dist/CardContent-BXjX98Jd.cjs +1 -0
- package/dist/{CardContent-CHoWb0DR.js → CardContent-u1MKaFvP.js} +3 -3
- package/dist/{Checkbox-92V5IqYF.js → Checkbox-BI77q7eR.js} +22 -23
- package/dist/Checkbox-C6CIGK27.cjs +1 -0
- package/dist/{Chip-I3ytWE-R.js → Chip-6-zATjcr.js} +49 -50
- package/dist/Chip-CAPnyZyW.cjs +1 -0
- package/dist/CircularProgress-CDa_qU1a.js +252 -0
- package/dist/CircularProgress-DTVP6gln.cjs +28 -0
- package/dist/{CloseRounded-BpiJGsCY.cjs → CloseRounded-DQWTEbNz.cjs} +1 -1
- package/dist/{CloseRounded-Di7N75zk.js → CloseRounded-DTpqUeWr.js} +1 -1
- package/dist/{DatePicker-ByvIBsyI.js → DatePicker-BTTLIBm9.js} +538 -536
- package/dist/DatePicker-CJ5-Udgh.cjs +14 -0
- package/dist/{DefaultPropsProvider-CmOKr9hq.js → DefaultPropsProvider-BcmyIf2H.js} +27 -27
- package/dist/DefaultPropsProvider-QmkL7lbM.cjs +1 -0
- package/dist/Dialog-CgBiKk8B.js +477 -0
- package/dist/Dialog-Cmv58WoN.cjs +1 -0
- package/dist/DialogContent-CGEdCDYk.cjs +1 -0
- package/dist/{DialogContent-4rDvu_sh.js → DialogContent-SYCCu1VD.js} +3 -3
- package/dist/DialogTitle-Dxm2NHs7.cjs +1 -0
- package/dist/{DialogTitle-Bw1Q-9PX.js → DialogTitle-_yayDwkI.js} +5 -5
- package/dist/Divider-D_LVNUqS.cjs +1 -0
- package/dist/{Divider-CeOjSQMP.js → Divider-Doy31VS6.js} +4 -4
- package/dist/FormLabel-D0gSgwnj.cjs +2 -0
- package/dist/{FormLabel-Cm4Ba58U.js → FormLabel-DjkS3S9h.js} +79 -80
- package/dist/Grow-D7scX77o.cjs +1 -0
- package/dist/{Grow-BL8Bx4y5.js → Grow-DPD-iBAX.js} +3 -3
- package/dist/{IconButton-C4GFAbeH.js → IconButton-B4bt0Hp2.js} +134 -67
- package/dist/IconButton-Edo5JMfQ.cjs +2 -0
- package/dist/InputAdornment-C9NrmB_z.cjs +1 -0
- package/dist/{InputAdornment-XfxRdI9K.js → InputAdornment-GzDm1zf_.js} +8 -9
- package/dist/{InputBase-DBsV_L3Y.js → InputBase-CF5oNEfh.js} +215 -210
- package/dist/InputBase-CgOQ0M4_.cjs +3 -0
- package/dist/Link-CAbb9OCV.cjs +1 -0
- package/dist/{Link-Dqbq0dpE.js → Link-CnahHTmK.js} +48 -49
- package/dist/{Menu-DiQ9wnM_.cjs → Menu-C-R0FVOB.cjs} +6 -6
- package/dist/{Menu-CtlPVqJo.js → Menu-DzBX10ev.js} +28 -28
- package/dist/MenuItem-Cp1_Q0FD.cjs +1 -0
- package/dist/{MenuItem-BCyMn0B-.js → MenuItem-DQQ-p2ie.js} +6 -6
- package/dist/{Modal-BBc68t3R.js → Modal-B8JRJWm0.js} +8 -8
- package/dist/{Modal-CGCKjoqp.cjs → Modal-D8lS9C1l.cjs} +2 -2
- package/dist/Paper-C-oPGpbI.cjs +2 -0
- package/dist/{Paper-BIgadgtb.js → Paper-CbgkVQVx.js} +4 -4
- package/dist/{Popper-Dotov0nV.js → Popper-1-DDNRPD.js} +5 -5
- package/dist/Popper-uw9PkkLY.cjs +4 -0
- package/dist/{Portal-DvgoZfYl.js → Portal-T-1Qk77D.js} +2 -2
- package/dist/Portal-bIKnnWR4.cjs +1 -0
- package/dist/{Radio-BmCVKlgN.js → Radio-BxMxeQa-.js} +8 -9
- package/dist/Radio-CvCkmq8g.cjs +1 -0
- package/dist/{RadioGroup-BoBajGjF.js → RadioGroup-BLrD8_Lp.js} +3 -3
- package/dist/RadioGroup-Ya-I8Lz1.cjs +1 -0
- package/dist/{Select-DCbhewsz.js → Select-B6mYfJPA.js} +195 -191
- package/dist/Select-KMdcuol6.cjs +3 -0
- package/dist/Stack-C6v70ALA.cjs +1 -0
- package/dist/{Stack-CSgGU-cq.js → Stack-aCUdCw1A.js} +60 -105
- package/dist/{Switch-JIoNRv7S.js → Switch-BOpqo-TS.js} +10 -11
- package/dist/Switch-DF4bSjED.cjs +1 -0
- package/dist/SwitchBase-7zONZyYP.cjs +1 -0
- package/dist/{SwitchBase-Ccit_gYg.js → SwitchBase-BAjfatYA.js} +20 -21
- package/dist/{Tabs-Bhy2g9Y0.js → Tabs-CrWcC5nJ.js} +225 -226
- package/dist/Tabs-Dploq_37.cjs +4 -0
- package/dist/TextField-BC7GvvHh.cjs +1 -0
- package/dist/{TextField-FNS4AqVd.js → TextField-CAmc1Qpg.js} +17 -18
- package/dist/ToggleButtonGroup-BCVgsika.cjs +140 -0
- package/dist/{ToggleButtonGroup-qi5MsGIW.js → ToggleButtonGroup-ekxVeQCc.js} +3088 -3229
- package/dist/{Tooltip-AHSVG6xQ.js → Tooltip-BvVFPsVR.js} +29 -30
- package/dist/Tooltip-CWA-GKdK.cjs +4 -0
- package/dist/{Typography-C9ltjPyz.js → Typography-CE8fQQ8B.js} +12 -13
- package/dist/Typography-DEAE8-8u.cjs +1 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +2 -2
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- 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 +2 -2
- 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/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/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 +3 -3
- 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/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 +341 -340
- 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 +2 -2
- package/dist/components/stories/Checkbox.stories.cjs.js +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.es.js +1 -1
- 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 +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +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.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 +2 -2
- 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 +3 -3
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- 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 +4 -4
- package/dist/components/stories/TextField.stories.cjs.js +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.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-CIearCnQ.js → createSvgIcon-CCejzj0C.js} +17 -18
- package/dist/createSvgIcon-Dn4BBPej.cjs +1 -0
- package/dist/{dividerClasses-DHKvPyr8.js → dividerClasses-DN9F43tq.js} +1 -1
- package/dist/dividerClasses-Zk1QmrZw.cjs +1 -0
- package/dist/{elementTypeAcceptingRef-BnBq35EV.js → elementTypeAcceptingRef-CrAqn_fc.js} +1 -1
- package/dist/elementTypeAcceptingRef-DVF2QSYK.cjs +1 -0
- package/dist/extendSxProp-BB6jYY1x.cjs +1 -0
- package/dist/{extendSxProp-D1UphbpP.js → extendSxProp-DFv-GFt5.js} +1 -1
- package/dist/identifier-5n4d7br9.cjs +75 -0
- package/dist/{generateUtilityClasses-v9KcqdK1.js → identifier-D58rA1gM.js} +832 -862
- package/dist/index-5BAFzrXD.cjs +1 -0
- package/dist/{index-OesDQygc.js → index-BGS2uu2L.js} +1 -1
- package/dist/index-CFm-oAsb.cjs +1 -0
- package/dist/index-CJW5gB6d.cjs +5 -0
- package/dist/{index-BhCs2pHX.js → index-ClXCinr6.js} +4 -4
- package/dist/{useSlotProps-pX6ti4cn.js → index-DwHI-aa0.js} +26 -26
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +341 -340
- package/dist/{memoTheme-D1tPxCd9.cjs → memoTheme-C8EfvlY1.cjs} +1 -1
- package/dist/{memoTheme-D-rebSfX.js → memoTheme-DyiN-Awd.js} +1 -1
- package/dist/{refType-DcE_kWty.js → refType-B86yTZra.js} +1 -1
- package/dist/refType-CjW6JOBA.cjs +1 -0
- package/dist/{resolveComponentProps-kRRJ79Kv.js → resolveComponentProps-0QnU-fDT.js} +1 -1
- package/dist/resolveComponentProps-D0sgyopa.cjs +1 -0
- package/dist/useSlot-CZNcsPv1.js +48 -0
- package/dist/useSlot-CyXLaLc2.cjs +1 -0
- package/dist/useTheme-Bi8B4Op1.cjs +1 -0
- package/dist/useTheme-C_2IF7CS.cjs +1 -0
- package/dist/useTheme-Clhsq4HW.js +11 -0
- package/dist/{useTheme-BB8ZCoMF.js → useTheme-DxxkErdZ.js} +1 -1
- package/dist/{useThemeProps-DnDXTiQj.js → useThemeProps-BGZrRNnL.js} +2 -2
- package/dist/useThemeProps-C6qniHmV.js +17 -0
- package/dist/{useThemeProps-DcOn-vk2.cjs → useThemeProps-CpNQz1Ap.cjs} +1 -1
- package/dist/useThemeProps-Dq3GRYN1.cjs +1 -0
- package/dist/utils-D4if93Yl.cjs +1 -0
- package/dist/{utils-CSBYZkoB.js → utils-SrEVp7Pm.js} +1 -1
- package/package.json +7 -7
- package/dist/Backdrop-BY124k9Q.cjs +0 -1
- package/dist/Box-CVaz7diG.cjs +0 -1
- package/dist/Button-Bqcf-Wrh.js +0 -483
- package/dist/Button-qwUFZs87.cjs +0 -1
- package/dist/CardContent-BMiRcSGk.cjs +0 -1
- package/dist/Checkbox-DVRfGO8D.cjs +0 -1
- package/dist/Chip-Ch7Ec9PJ.cjs +0 -1
- package/dist/DatePicker-D3AfDdBL.cjs +0 -14
- package/dist/DefaultPropsProvider-PRhNsS_3.cjs +0 -1
- package/dist/Dialog-DouQwf1_.cjs +0 -1
- package/dist/Dialog-GVgQOV8v.js +0 -415
- package/dist/DialogContent-DMvW6Xos.cjs +0 -1
- package/dist/DialogTitle-BTBnlhmM.cjs +0 -1
- package/dist/Divider-CISPNs7L.cjs +0 -1
- package/dist/FormLabel-CtCBcJ-1.cjs +0 -2
- package/dist/Grow-BjcgF7nV.cjs +0 -1
- package/dist/IconButton-loyqjXrR.cjs +0 -2
- package/dist/InputAdornment-CLIvW7Gk.cjs +0 -1
- package/dist/InputBase-BXcShs87.cjs +0 -3
- package/dist/Link-DgsVJ4Wk.cjs +0 -1
- package/dist/MenuItem-DuLNR389.cjs +0 -1
- package/dist/Paper-DYhLUL1K.cjs +0 -2
- package/dist/Popper-CyMmAyHW.cjs +0 -4
- package/dist/Portal-BC_MWv30.cjs +0 -1
- package/dist/Radio-Cta61QrN.cjs +0 -1
- package/dist/RadioGroup-CA-GTAeR.cjs +0 -1
- package/dist/Select-Bm-ZcxRN.cjs +0 -3
- package/dist/Stack-B68ooSQ-.cjs +0 -1
- package/dist/Switch-BMjiyNyB.cjs +0 -1
- package/dist/SwitchBase-CaXyAuEt.cjs +0 -1
- package/dist/Tabs-ll24SDcl.cjs +0 -4
- package/dist/TextField-C5lHwquP.cjs +0 -1
- package/dist/ToggleButtonGroup-CEPDUgtK.cjs +0 -167
- package/dist/Tooltip-C2KS56xn.cjs +0 -4
- package/dist/Typography-Y-OGmT9M.cjs +0 -1
- package/dist/capitalize-Cq3s4y8R.cjs +0 -1
- package/dist/capitalize-yX_QSknw.js +0 -9
- package/dist/createSvgIcon-DKtSalut.cjs +0 -1
- package/dist/dividerClasses-1ChhOCNX.cjs +0 -1
- package/dist/elementTypeAcceptingRef-BgjnOQqe.cjs +0 -1
- package/dist/extendSxProp-Dolw-tGY.cjs +0 -1
- package/dist/generateUtilityClasses-0dYt6eGZ.cjs +0 -75
- package/dist/index-BUATG6-f.cjs +0 -5
- package/dist/index-CgWaRcwQ.cjs +0 -1
- package/dist/refType-DdkUp8DT.cjs +0 -1
- package/dist/resolveComponentProps-CGmtduHt.cjs +0 -1
- package/dist/useSlot-BYekfmak.cjs +0 -1
- package/dist/useSlot-CQW01GLa.js +0 -44
- package/dist/useSlotProps-NZH6_nAj.cjs +0 -1
- package/dist/useTheme-B1HNivkF.cjs +0 -1
- package/dist/useTheme-C0AF6jAe.cjs +0 -1
- package/dist/useTheme-Dyx3LMQU.js +0 -11
- package/dist/useThemeProps-BAXMP5Ww.cjs +0 -1
- package/dist/useThemeProps-KNNlKFR_.js +0 -17
- package/dist/utils-C6YMiaf0.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./DefaultPropsProvider-
|
|
1
|
+
"use strict";const r=require("./DefaultPropsProvider-QmkL7lbM.cjs"),u={theme:void 0};function s(l){let m,n;return function(t){let e=m;return(e===void 0||t.theme!==n)&&(u.theme=t.theme,e=r.preprocessStyles(l(u)),m=e,n=t.theme),e}}const o=s;exports.memoTheme=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./identifier-5n4d7br9.cjs"),p=e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]);exports.refType=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const h=require("./identifier-5n4d7br9.cjs");function a(t){return typeof t=="string"}function k(t,c,e){return t===void 0||a(t)?c:{...c,ownerState:{...c.ownerState,...e}}}function E(t,c=[]){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>n.match(/^on[A-Z]/)&&typeof t[n]=="function"&&!c.includes(n)).forEach(n=>{e[n]=t[n]}),e}function v(t){if(t===void 0)return{};const c={};return Object.keys(t).filter(e=>!(e.match(/^on[A-Z]/)&&typeof t[e]=="function")).forEach(e=>{c[e]=t[e]}),c}function A(t){const{getSlotProps:c,additionalProps:e,externalSlotProps:n,externalForwardedProps:s,className:m}=t;if(!c){const g=h.clsx(e==null?void 0:e.className,m,s==null?void 0:s.className,n==null?void 0:n.className),N={...e==null?void 0:e.style,...s==null?void 0:s.style,...n==null?void 0:n.style},i={...e,...s,...n};return g.length>0&&(i.className=g),Object.keys(N).length>0&&(i.style=N),{props:i,internalRef:void 0}}const H=E({...s,...n}),O=v(n),C=v(s),f=c(H),y=h.clsx(f==null?void 0:f.className,e==null?void 0:e.className,m,s==null?void 0:s.className,n==null?void 0:n.className),l={...f==null?void 0:f.style,...e==null?void 0:e.style,...s==null?void 0:s.style,...n==null?void 0:n.style},u={...f,...e,...C,...O};return y.length>0&&(u.className=y),Object.keys(l).length>0&&(u.style=l),{props:u,internalRef:f.ref}}function R(t,c,e){return typeof t=="function"?t(c,e):t}exports.appendOwnerState=k;exports.extractEventHandlers=E;exports.mergeSlotProps=A;exports.resolveComponentProps=R;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { r as y, m as T, a as g } from "./resolveComponentProps-0QnU-fDT.js";
|
|
2
|
+
import { u as h } from "./useForkRef-C_4o__cU.js";
|
|
3
|
+
function E(o, n) {
|
|
4
|
+
const {
|
|
5
|
+
className: f,
|
|
6
|
+
elementType: i,
|
|
7
|
+
ownerState: s,
|
|
8
|
+
externalForwardedProps: u,
|
|
9
|
+
internalForwardedProps: p,
|
|
10
|
+
shouldForwardComponentProp: l = !1,
|
|
11
|
+
...P
|
|
12
|
+
} = n, {
|
|
13
|
+
component: a,
|
|
14
|
+
slots: t = {
|
|
15
|
+
[o]: void 0
|
|
16
|
+
},
|
|
17
|
+
slotProps: m = {
|
|
18
|
+
[o]: void 0
|
|
19
|
+
},
|
|
20
|
+
...w
|
|
21
|
+
} = u, d = t[o] || i, e = y(m[o], s), {
|
|
22
|
+
props: {
|
|
23
|
+
component: c,
|
|
24
|
+
...S
|
|
25
|
+
},
|
|
26
|
+
internalRef: F
|
|
27
|
+
} = T({
|
|
28
|
+
className: f,
|
|
29
|
+
...P,
|
|
30
|
+
externalForwardedProps: o === "root" ? w : void 0,
|
|
31
|
+
externalSlotProps: e
|
|
32
|
+
}), x = h(F, e == null ? void 0 : e.ref, n.ref), r = o === "root" ? c || a : c, C = g(d, {
|
|
33
|
+
...o === "root" && !a && !t[o] && p,
|
|
34
|
+
...o !== "root" && !t[o] && p,
|
|
35
|
+
...S,
|
|
36
|
+
...r && !l && {
|
|
37
|
+
as: r
|
|
38
|
+
},
|
|
39
|
+
...r && l && {
|
|
40
|
+
component: r
|
|
41
|
+
},
|
|
42
|
+
ref: x
|
|
43
|
+
}, s);
|
|
44
|
+
return [d, C];
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
E as u
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("./resolveComponentProps-D0sgyopa.cjs"),R=require("./useForkRef-CTI33h-3.cjs");function T(o,s){const{className:i,elementType:P,ownerState:p,externalForwardedProps:a,internalForwardedProps:l,shouldForwardComponentProp:c=!1,...S}=s,{component:d,slots:r={[o]:void 0},slotProps:w={[o]:void 0},...F}=a,u=r[o]||P,e=n.resolveComponentProps(w[o],p),{props:{component:f,...m},internalRef:C}=n.mergeSlotProps({className:i,...S,externalForwardedProps:o==="root"?F:void 0,externalSlotProps:e}),x=R.useForkRef(C,e==null?void 0:e.ref,s.ref),t=o==="root"?f||d:f,y=n.appendOwnerState(u,{...o==="root"&&!d&&!r[o]&&l,...o!=="root"&&!r[o]&&l,...m,...t&&!c&&{as:t},...t&&c&&{component:t},ref:x},p);return[u,y]}exports.useSlot=T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("./identifier-5n4d7br9.cjs"),o=require("react"),s=require("@emotion/react");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const a=i(o);function f(e){return Object.keys(e).length===0}function c(e=null){const t=a.useContext(s.ThemeContext);return!t||f(t)?e:t}const m=u.createTheme$1();function l(e=m){return c(e)}exports.useTheme=l;exports.useTheme$1=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("react"),c=require("./DefaultPropsProvider-QmkL7lbM.cjs"),o=require("./identifier-5n4d7br9.cjs"),s=require("./useTheme-Bi8B4Op1.cjs");function i(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const a=i(u);function f(){const e=s.useTheme(c.defaultTheme);return process.env.NODE_ENV!=="production"&&a.useDebugValue(e),e[o.THEME_ID]||e}exports.useTheme=f;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { d as r } from "./DefaultPropsProvider-BcmyIf2H.js";
|
|
3
|
+
import { T as m } from "./identifier-D58rA1gM.js";
|
|
4
|
+
import { u as t } from "./useTheme-DxxkErdZ.js";
|
|
5
|
+
function f() {
|
|
6
|
+
const e = t(r);
|
|
7
|
+
return process.env.NODE_ENV !== "production" && o.useDebugValue(e), e[m] || e;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
f as u
|
|
11
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { d as m } from "./DefaultPropsProvider-BcmyIf2H.js";
|
|
2
|
+
import { T as o } from "./identifier-D58rA1gM.js";
|
|
3
|
+
import { u as s } from "./useThemeProps-BGZrRNnL.js";
|
|
4
|
+
function a({
|
|
5
|
+
props: e,
|
|
6
|
+
name: r
|
|
7
|
+
}) {
|
|
8
|
+
return s({
|
|
9
|
+
props: e,
|
|
10
|
+
name: r,
|
|
11
|
+
defaultTheme: m,
|
|
12
|
+
themeId: o
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
a as u
|
|
17
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const u=require("./DefaultPropsProvider-
|
|
1
|
+
"use strict";const u=require("./DefaultPropsProvider-QmkL7lbM.cjs"),p=require("./useTheme-Bi8B4Op1.cjs");function n(t){const{theme:e,name:o,props:r}=t;return!e||!e.components||!e.components[o]||!e.components[o].defaultProps?r:u.resolveProps(e.components[o].defaultProps,r)}function m({props:t,name:e,defaultTheme:o,themeId:r}){let s=p.useTheme(o);return r&&(s=s[r]||s),n({theme:s,name:e,props:t})}exports.getThemeProps=n;exports.useThemeProps=m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("./DefaultPropsProvider-QmkL7lbM.cjs"),u=require("./identifier-5n4d7br9.cjs"),t=require("./useThemeProps-CpNQz1Ap.cjs");function o({props:e,name:r}){return t.useThemeProps({props:e,name:r,defaultTheme:s.defaultTheme,themeId:u.THEME_ID})}exports.useThemeProps=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("./identifier-5n4d7br9.cjs"),N=require("./chainPropTypes-CEUi6Jb4.cjs"),m=require("react"),v=require("./TransitionGroupContext-Zt4NoR0u.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.5-dev.
|
|
3
|
+
"version": "1.3.5-dev.1740404617",
|
|
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",
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@mui/icons-material": "6.
|
|
34
|
-
"@mui/lab": "6.0.0-beta.
|
|
35
|
-
"@mui/x-date-pickers": "7.
|
|
33
|
+
"@mui/icons-material": "6.4.5",
|
|
34
|
+
"@mui/lab": "6.0.0-beta.28",
|
|
35
|
+
"@mui/x-date-pickers": "7.27.0",
|
|
36
36
|
"dayjs": "1.11.13",
|
|
37
37
|
"react-dropzone": "14.3.5"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@reduxjs/toolkit": "2.5.
|
|
41
|
-
"@types/react": "19.0.
|
|
42
|
-
"@types/react-dom": "19.0.
|
|
40
|
+
"@reduxjs/toolkit": "2.5.1",
|
|
41
|
+
"@types/react": "19.0.10",
|
|
42
|
+
"@types/react-dom": "19.0.4"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@emotion/react": "^11",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const A=require("react"),e=require("./generateUtilityClasses-0dYt6eGZ.cjs"),N=require("./useSlot-BYekfmak.cjs"),q=require("react/jsx-runtime"),B=require("./DefaultPropsProvider-PRhNsS_3.cjs"),H=require("./useTheme-C0AF6jAe.cjs"),d=require("./utils-C6YMiaf0.cjs"),W=require("./useForkRef-CTI33h-3.cjs");function G(n){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(s,r,t.get?t:{enumerable:!0,get:()=>n[r]})}}return s.default=n,Object.freeze(s)}const g=G(A),I={entering:{opacity:1},entered:{opacity:1}},D=g.forwardRef(function(s,r){const t=H.useTheme(),E={enter:t.transitions.duration.enteringScreen,exit:t.transitions.duration.leavingScreen},{addEndListener:T,appear:h=!0,children:u,easing:P,in:f,onEnter:m,onEntered:x,onEntering:R,onExit:b,onExited:k,onExiting:v,style:a,timeout:y=E,TransitionComponent:C=d.Transition,...j}=s,c=g.useRef(null),O=W.useForkRef(c,d.getReactElementRef(u),r),i=o=>p=>{if(o){const l=c.current;p===void 0?o(l):o(l,p)}},S=i(R),w=i((o,p)=>{d.reflow(o);const l=d.getTransitionProps({style:a,timeout:y,easing:P},{mode:"enter"});o.style.webkitTransition=t.transitions.create("opacity",l),o.style.transition=t.transitions.create("opacity",l),m&&m(o,p)}),M=i(x),_=i(v),L=i(o=>{const p=d.getTransitionProps({style:a,timeout:y,easing:P},{mode:"exit"});o.style.webkitTransition=t.transitions.create("opacity",p),o.style.transition=t.transitions.create("opacity",p),b&&b(o)}),z=i(k),V=o=>{T&&T(c.current,o)};return q.jsx(C,{appear:h,in:f,nodeRef:c,onEnter:w,onEntered:M,onEntering:S,onExit:L,onExited:z,onExiting:_,addEndListener:V,timeout:y,...j,children:(o,{ownerState:p,...l})=>g.cloneElement(u,{style:{opacity:0,visibility:o==="exited"&&!f?"hidden":void 0,...I[o],...a,...u.props.style},ref:O,...l})})});process.env.NODE_ENV!=="production"&&(D.propTypes={addEndListener:e.PropTypes.func,appear:e.PropTypes.bool,children:d.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.number,e.PropTypes.shape({appear:e.PropTypes.number,enter:e.PropTypes.number,exit:e.PropTypes.number})])});function F(n){return e.generateUtilityClass("MuiBackdrop",n)}const J=e.generateUtilityClasses("MuiBackdrop",["root","invisible"]),K=n=>{const{classes:s,invisible:r}=n,t={root:["root",r&&"invisible"]};return B.composeClasses(t,F,s)},Q=B.styled("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(n,s)=>{const{ownerState:r}=n;return[s.root,r.invisible&&s.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),U=g.forwardRef(function(s,r){const t=B.useDefaultProps({props:s,name:"MuiBackdrop"}),{children:E,className:T,component:h="div",invisible:u=!1,open:P,components:f={},componentsProps:m={},slotProps:x={},slots:R={},TransitionComponent:b,transitionDuration:k,...v}=t,a={...t,component:h,invisible:u},y=K(a),C={transition:b,root:f.Root,...R},j={...m,...x},c={slots:C,slotProps:j},[O,i]=N.useSlot("root",{elementType:Q,externalForwardedProps:c,className:e.clsx(y.root,T),ownerState:a}),[S,w]=N.useSlot("transition",{elementType:D,externalForwardedProps:c,ownerState:a});return q.jsx(S,{in:P,timeout:k,...v,...w,children:q.jsx(O,{"aria-hidden":!0,...i,classes:y,ref:r,children:E})})});process.env.NODE_ENV!=="production"&&(U.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,components:e.PropTypes.shape({Root:e.PropTypes.elementType}),componentsProps:e.PropTypes.shape({root:e.PropTypes.object}),invisible:e.PropTypes.bool,open:e.PropTypes.bool.isRequired,slotProps:e.PropTypes.shape({root:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),transition:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({root:e.PropTypes.elementType,transition: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]),TransitionComponent:e.PropTypes.elementType,transitionDuration:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.shape({appear:e.PropTypes.number,enter:e.PropTypes.number,exit:e.PropTypes.number})])});exports.Backdrop=U;exports.Fade=D;exports.backdropClasses=J;exports.getBackdropUtilityClass=F;
|
package/dist/Box-CVaz7diG.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./generateUtilityClasses-0dYt6eGZ.cjs"),x=require("react"),T=require("react/jsx-runtime"),P=require("./useTheme-B1HNivkF.cjs"),h=require("./extendSxProp-Dolw-tGY.cjs");function b(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(o,s,r.get?r:{enumerable:!0,get:()=>t[s]})}}return o.default=t,Object.freeze(o)}const g=b(x);function N(t={}){const{themeId:o,defaultTheme:s,defaultClassName:r="MuiBox-root",generateClassName:c}=t,l=e.styled("div",{shouldForwardProp:n=>n!=="theme"&&n!=="sx"&&n!=="as"})(e.styleFunctionSx);return g.forwardRef(function(i,m){const a=P.useTheme(s),{className:d,component:f="div",...y}=h.extendSxProp(i);return T.jsx(l,{as:f,ref:m,className:e.clsx(d,c?c(r):r),theme:o&&a[o]||a,...y})})}const p=e.generateUtilityClasses("MuiBox",["root"]),B=e.createTheme(),u=N({themeId:e.THEME_ID,defaultTheme:B,defaultClassName:p.root,generateClassName:e.ClassNameGenerator.generate});process.env.NODE_ENV!=="production"&&(u.propTypes={children:e.PropTypes.node,component: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])});exports.Box=u;exports.boxClasses=p;
|