@cgi-learning-hub/ui 1.0.0-dev.1721212215 → 1.0.0-dev.1721229430
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/{Box-DIvTvtYV.js → Box-DQXO6hAm.js} +28 -27
- package/dist/{Box-RP_U1h2I.cjs → Box-VE8zzQxN.cjs} +1 -1
- package/dist/{ButtonBase-BN5QfC5l.js → ButtonBase-B5HiNV6L.js} +40 -40
- package/dist/{ButtonBase-BZD9sI_c.cjs → ButtonBase-BINHTm-n.cjs} +1 -1
- package/dist/{CircularProgress-CgjNSTmB.js → CircularProgress-BlfBX_I2.js} +22 -22
- package/dist/{CircularProgress-C_a44--B.cjs → CircularProgress-yfmTQCpL.cjs} +1 -1
- package/dist/{DefaultButton-BOHgRr6G.cjs → DefaultButton-8ns1LvfF.cjs} +1 -1
- package/dist/{DefaultButton-DVHllq2U.js → DefaultButton-CQL8OQ0m.js} +18 -18
- package/dist/{IconButton-ysdlpOVe.js → IconButton-BjD7an5E.js} +5 -5
- package/dist/{IconButton-DQ2kDyxh.cjs → IconButton-RFeuYm2K.cjs} +1 -1
- package/dist/{InputBase-CR3zhf1t.js → InputBase-Bu4aLC8s.js} +6 -6
- package/dist/{InputBase-CCpgZdXG.cjs → InputBase-zXQ1Gs_-.cjs} +1 -1
- package/dist/{LocalizationProvider-C0yQiDF6.cjs → LocalizationProvider-Bd8iEFyF.cjs} +1 -1
- package/dist/{LocalizationProvider-BGJCD07W.js → LocalizationProvider-Bw5VDmOD.js} +10 -10
- package/dist/{SearchInput-DGF3NOLB.js → SearchInput-BdNp9ibO.js} +14 -14
- package/dist/{SearchInput-CvqVbm-Q.cjs → SearchInput-DeBVN_CY.cjs} +1 -1
- package/dist/{PaperHeader-DAzxEUlx.js → Stack-Bm3R862G.js} +119 -155
- package/dist/Stack-CHo9cbcP.cjs +1 -0
- package/dist/{Tabs-C91eu1Uw.cjs → Tabs-CgnNgSGQ.cjs} +1 -1
- package/dist/{Tabs-CObzeuUj.js → Tabs-rGjgGQoc.js} +7 -7
- package/dist/{TextInput-CjRiCEow.js → TextInput-CAot24Xe.js} +268 -267
- package/dist/{TextInput-61DYDrkn.cjs → TextInput-Dy0Qi2N7.cjs} +9 -9
- package/dist/{TimePicker-C64jDcYa.js → TimePicker-Dr_nF3ms.js} +7607 -6555
- package/dist/TimePicker-wzgmz3DE.cjs +109 -0
- package/dist/{Typography-DDYzN_3X.js → Typography-2SgDaT8h.js} +11 -11
- package/dist/{Typography-CX8IJDUK.cjs → Typography-B_CzXKnG.cjs} +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
- package/dist/components/Dropzone/Dropzone.d.ts +2 -2
- package/dist/components/Dropzone/Dropzone.es.js +146 -144
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +1 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.es.js +2 -2
- package/dist/components/LocalizationProvider/index.cjs.js +1 -1
- package/dist/components/LocalizationProvider/index.es.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.es.js +39 -4
- package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.stories.es.js +7 -7
- package/dist/components/PaperHeader/index.cjs.js +1 -1
- package/dist/components/PaperHeader/index.es.js +2 -2
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +2 -2
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +9 -9
- package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/index.es.js +1 -1
- package/dist/components/buttons/IconButton.stories.cjs.js +1 -1
- package/dist/components/buttons/IconButton.stories.es.js +3 -3
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/buttons/index.cjs.js +1 -1
- package/dist/components/buttons/index.es.js +1 -1
- package/dist/components/feedback/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/feedback/QueryError/QueryError.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.es.js +266 -217
- package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/inputs/PasswordInput/PasswordInput.es.js +8 -9
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.es.js +3 -3
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +1 -1
- package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/index.es.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.es.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
- package/dist/components/inputs/TextInput/index.cjs.js +1 -1
- package/dist/components/inputs/TextInput/index.es.js +1 -1
- package/dist/components/inputs/index.cjs.js +1 -1
- package/dist/components/inputs/index.es.js +2 -2
- package/dist/components/lists/FileList/FileList.cjs.js +1 -1
- package/dist/components/lists/FileList/FileList.es.js +1 -1
- package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/lists/FileList/FileListItem.es.js +6 -6
- package/dist/components/lists/TabList.stories.cjs.js +1 -1
- package/dist/components/lists/TabList.stories.es.js +10 -10
- package/dist/{createSvgIcon-DtHN6kOe.cjs → createSvgIcon-BoU2zJm2.cjs} +2 -2
- package/dist/{createSvgIcon-D0vr-xfg.js → createSvgIcon-BqV9kys6.js} +3 -3
- package/dist/{createSvgIcon-XuLYHpIN.js → createSvgIcon-DKalT1IU.js} +17 -17
- package/dist/{createSvgIcon-BhmdtpFQ.cjs → createSvgIcon-Dm2nQR21.cjs} +1 -1
- package/dist/{defaultTheme-43URU5cB.cjs → defaultTheme-BlqVFqOY.cjs} +1 -1
- package/dist/{defaultTheme-kWAisKX-.js → defaultTheme-C4edRge6.js} +3 -3
- package/dist/{extendSxProp-BH27e4Uq.js → extendSxProp-BaQsf_eX.js} +40 -39
- package/dist/{extendSxProp-DguFtn4z.cjs → extendSxProp-DYKVP-ko.cjs} +4 -4
- package/dist/{fr-VAA6DQIZ.js → fr-DNOCWhp_.js} +7 -7
- package/dist/{fr-Cv05qO2i.cjs → fr-DSv4ULwD.cjs} +1 -1
- package/dist/{identifier-wD7TMRod.js → identifier-CItx51dm.js} +307 -296
- package/dist/{identifier-DN9zMdjb.cjs → identifier-DPVk4rwk.cjs} +13 -12
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +266 -217
- package/dist/{refType-DNsX9F1k.js → refType-BtebdsEm.js} +1 -1
- package/dist/{refType-P4W7j6GU.cjs → refType-DzZFRJXI.cjs} +1 -1
- package/dist/{styled-DBkKGFww.js → styled-BCP6gOZj.js} +132 -109
- package/dist/styled-RtRlBNlZ.cjs +17 -0
- package/dist/{useTheme-DmZo1zFM.js → useTheme-C_ghcfxd.js} +1 -1
- package/dist/useTheme-CqMZT0T0.cjs +1 -0
- package/dist/useTheme-CwCUkvkZ.js +100 -0
- package/dist/{useTheme-BlWZbBeO.cjs → useTheme-DDHh2q-k.cjs} +1 -1
- package/dist/{useThemeProps-CuBdueUZ.js → useThemeProps-BybmzYVD.js} +2 -2
- package/dist/{useThemeProps-BbYOXO_x.cjs → useThemeProps-CEiKfXBZ.cjs} +1 -1
- package/dist/useThemeProps-DmEDeofb.cjs +1 -0
- package/dist/useThemeProps-JKgv0pkv.js +17 -0
- package/package.json +1 -1
- package/dist/PaperHeader-D2LH9bW-.cjs +0 -1
- package/dist/TimePicker-DKHA-KBc.cjs +0 -74
- package/dist/styled-vrKxhnRS.cjs +0 -17
- package/dist/useTheme-0LP2yOaO.js +0 -88
- package/dist/useTheme-BjiEuL2C.cjs +0 -1
- package/dist/useThemeProps-C1QhfJXI.js +0 -17
- package/dist/useThemeProps-zfqmINoS.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const m=require("./defaultTheme-
|
|
1
|
+
"use strict";const m=require("./defaultTheme-BlqVFqOY.cjs"),p=require("./useTheme-DDHh2q-k.cjs");function n(t){const{theme:e,name:o,props:s}=t;return!e||!e.components||!e.components[o]||!e.components[o].defaultProps?s:m.resolveProps(e.components[o].defaultProps,s)}function u({props:t,name:e,defaultTheme:o,themeId:s}){let r=p.useTheme(o);return s&&(r=r[s]||r),n({theme:r,name:e,props:t})}exports.getThemeProps=n;exports.useThemeProps=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("./defaultTheme-BlqVFqOY.cjs"),u=require("./identifier-DPVk4rwk.cjs"),t=require("./useThemeProps-CEiKfXBZ.cjs");function h({props:e,name:r}){return t.useThemeProps({props:e,name:r,defaultTheme:s.defaultTheme,themeId:u.THEME_ID})}exports.useThemeProps=h;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { d as m } from "./defaultTheme-C4edRge6.js";
|
|
2
|
+
import { T as o } from "./identifier-CItx51dm.js";
|
|
3
|
+
import { u as s } from "./useThemeProps-BybmzYVD.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
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cgi-learning-hub/ui",
|
|
3
|
-
"version": "1.0.0-dev.
|
|
3
|
+
"version": "1.0.0-dev.1721229430",
|
|
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",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const w=require("react/jsx-runtime"),e=require("./identifier-DN9zMdjb.cjs"),V=require("./styled-vrKxhnRS.cjs"),z=require("react"),D=require("./extendSxProp-DguFtn4z.cjs"),U=require("./useThemeProps-BbYOXO_x.cjs"),H=require("./Typography-CX8IJDUK.cjs");function I(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const o in r)if(o!=="default"){const p=Object.getOwnPropertyDescriptor(r,o);Object.defineProperty(t,o,p.get?p:{enumerable:!0,get:()=>r[o]})}}return t.default=r,Object.freeze(t)}const q=I(z),J=["ownerState"],K=["variants"],Q=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function X(r){return Object.keys(r).length===0}function Y(r){return typeof r=="string"&&r.charCodeAt(0)>96}function R(r){return r!=="ownerState"&&r!=="theme"&&r!=="sx"&&r!=="as"}const Z=e.createTheme$1(),M=r=>r&&r.charAt(0).toLowerCase()+r.slice(1);function k({defaultTheme:r,theme:t,themeId:o}){return X(t)?r:t[o]||t}function ee(r){return r?(t,o)=>o[r]:null}function N(r,t){let{ownerState:o}=t,p=e._objectWithoutPropertiesLoose(t,J);const c=typeof r=="function"?r(e._extends({ownerState:o},p)):r;if(Array.isArray(c))return c.flatMap(i=>N(i,e._extends({ownerState:o},p)));if(c&&typeof c=="object"&&Array.isArray(c.variants)){const{variants:i=[]}=c;let a=e._objectWithoutPropertiesLoose(c,K);return i.forEach(s=>{let n=!0;typeof s.props=="function"?n=s.props(e._extends({ownerState:o},p,o)):Object.keys(s.props).forEach(y=>{(o==null?void 0:o[y])!==s.props[y]&&p[y]!==s.props[y]&&(n=!1)}),n&&(Array.isArray(a)||(a=[a]),a.push(typeof s.style=="function"?s.style(e._extends({ownerState:o},p,o)):s.style))}),a}return c}function re(r={}){const{themeId:t,defaultTheme:o=Z,rootShouldForwardProp:p=R,slotShouldForwardProp:c=R}=r,i=l=>e.styleFunctionSx(e._extends({},l,{theme:k(e._extends({},l,{defaultTheme:o,themeId:t}))}));return i.__mui_systemSx=!0,(l,a={})=>{D.internal_processStyles(l,u=>u.filter(m=>!(m!=null&&m.__mui_systemSx)));const{name:s,slot:n,skipVariantsResolver:y,skipSx:h,overridesResolver:T=ee(M(n))}=a,F=e._objectWithoutPropertiesLoose(a,Q),$=y!==void 0?y:n&&n!=="Root"&&n!=="root"||!1,_=h||!1;let v;process.env.NODE_ENV!=="production"&&s&&(v=`${s}-${M(n||"Root")}`);let P=R;n==="Root"||n==="root"?P=p:n?P=c:Y(l)&&(P=void 0);const x=D.styled(l,e._extends({shouldForwardProp:P,label:v},F)),b=u=>typeof u=="function"&&u.__emotion_real!==u||e.isPlainObject(u)?m=>N(u,e._extends({},m,{theme:k({theme:m.theme,defaultTheme:o,themeId:t})})):u,g=(u,...m)=>{let E=b(u);const O=m?m.map(b):[];s&&T&&O.push(d=>{const f=k(e._extends({},d,{defaultTheme:o,themeId:t}));if(!f.components||!f.components[s]||!f.components[s].styleOverrides)return null;const S=f.components[s].styleOverrides,j={};return Object.entries(S).forEach(([G,W])=>{j[G]=N(W,e._extends({},d,{theme:f}))}),T(d,j)}),s&&!$&&O.push(d=>{var f;const S=k(e._extends({},d,{defaultTheme:o,themeId:t})),j=S==null||(f=S.components)==null||(f=f[s])==null?void 0:f.variants;return N({variants:j},e._extends({},d,{theme:S}))}),_||O.push(i);const B=O.length-m.length;if(Array.isArray(u)&&B>0){const d=new Array(B).fill("");E=[...u,...d],E.raw=[...u.raw,...d]}const A=x(E,...O);if(process.env.NODE_ENV!=="production"){let d;s&&(d=`${s}${e.capitalize(n||"")}`),d===void 0&&(d=`Styled(${V.getDisplayName(l)})`),A.displayName=d}return l.muiName&&(A.muiName=l.muiName),A};return x.withConfig&&(g.withConfig=x.withConfig),g}}const oe=re(),te=["component","direction","spacing","divider","children","className","useFlexGap"],se=e.createTheme$1(),ne=oe("div",{name:"MuiStack",slot:"Root",overridesResolver:(r,t)=>t.root});function pe(r){return U.useThemeProps({props:r,name:"MuiStack",defaultTheme:se})}function ie(r,t){const o=q.Children.toArray(r).filter(Boolean);return o.reduce((p,c,i)=>(p.push(c),i<o.length-1&&p.push(q.cloneElement(t,{key:`separator-${i}`})),p),[])}const ce=r=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[r],le=({ownerState:r,theme:t})=>{let o=e._extends({display:"flex",flexDirection:"column"},e.handleBreakpoints({theme:t},e.resolveBreakpointValues({values:r.direction,breakpoints:t.breakpoints.values}),p=>({flexDirection:p})));if(r.spacing){const p=e.createUnarySpacing(t),c=Object.keys(t.breakpoints.values).reduce((s,n)=>((typeof r.spacing=="object"&&r.spacing[n]!=null||typeof r.direction=="object"&&r.direction[n]!=null)&&(s[n]=!0),s),{}),i=e.resolveBreakpointValues({values:r.direction,base:c}),l=e.resolveBreakpointValues({values:r.spacing,base:c});typeof i=="object"&&Object.keys(i).forEach((s,n,y)=>{if(!i[s]){const T=n>0?i[y[n-1]]:"column";i[s]=T}});const a=(s,n)=>r.useFlexGap?{gap:e.getValue(p,s)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ce(n?i[n]:r.direction)}`]:e.getValue(p,s)}};o=e.deepmerge(o,e.handleBreakpoints({theme:t},l,a))}return o=e.mergeBreakpointsInOrder(t.breakpoints,o),o};function ae(r={}){const{createStyledComponent:t=ne,useThemeProps:o=pe,componentName:p="MuiStack"}=r,c=()=>{const a={root:["root"]};return V.composeClasses(a,s=>e.generateUtilityClass(p,s),{})},i=t(le),l=q.forwardRef(function(s,n){const y=o(s),h=D.extendSxProp(y),{component:T="div",direction:F="column",spacing:$=0,divider:_,children:v,className:P,useFlexGap:x=!1}=h,b=e._objectWithoutPropertiesLoose(h,te),g={direction:F,spacing:$,useFlexGap:x},u=c();return w.jsx(i,e._extends({as:T,ownerState:g,ref:n,className:D.clsx(u.root,P)},b,{children:_?ie(v,_):v}))});return process.env.NODE_ENV!=="production"&&(l.propTypes={children:e.PropTypes.node,direction:e.PropTypes.oneOfType([e.PropTypes.oneOf(["column-reverse","column","row-reverse","row"]),e.PropTypes.arrayOf(e.PropTypes.oneOf(["column-reverse","column","row-reverse","row"])),e.PropTypes.object]),divider:e.PropTypes.node,spacing:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string])),e.PropTypes.number,e.PropTypes.object,e.PropTypes.string]),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])}),l}const C=ae({createStyledComponent:V.styled("div",{name:"MuiStack",slot:"Root",overridesResolver:(r,t)=>t.root}),useThemeProps:r=>V.useDefaultProps({props:r,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(C.propTypes={children:e.PropTypes.node,component:e.PropTypes.elementType,direction:e.PropTypes.oneOfType([e.PropTypes.oneOf(["column-reverse","column","row-reverse","row"]),e.PropTypes.arrayOf(e.PropTypes.oneOf(["column-reverse","column","row-reverse","row"])),e.PropTypes.object]),divider:e.PropTypes.node,spacing:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string])),e.PropTypes.number,e.PropTypes.object,e.PropTypes.string]),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),useFlexGap:e.PropTypes.bool});const L=C,ue=({title:r,IconComponent:t,iconColor:o,iconProps:p,iconSize:c=28,component:i="h3",variant:l="h2",fontWeight:a="bold",...s})=>w.jsxs(L,{direction:"row",alignItems:"center",gap:1,children:[t?w.jsx(t,{sx:{fontSize:c,padding:"2px",borderRadius:1,color:o==null?void 0:o[500],backgroundColor:o==null?void 0:o[50]},...p}):null,w.jsx(H.Typography,{component:i,variant:l,fontWeight:a,...s,children:r})]});exports.PaperHeader=ue;exports.Stack=L;exports.shouldForwardProp=R;
|