@cgi-learning-hub/ui 0.0.1-dev.1708959157 → 0.0.1-dev.1708959744

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.
Files changed (49) hide show
  1. package/dist/{Button-C5ROgtyW.js → Button-CmBnwwn3.js} +2 -2
  2. package/dist/{ButtonBase-C5_-KI-D.js → ButtonBase-Bw43M3TO.js} +2 -2
  3. package/dist/CircularProgress-BCdQaPFF.cjs +28 -0
  4. package/dist/CircularProgress-DRE9BLTL.js +215 -0
  5. package/dist/{Input-CGU1Xw4s.js → Input-Dk-cN0Fb.js} +3 -3
  6. package/dist/{InputBase-D8YZOKOt.js → InputBase-BbXy6VDy.js} +2 -2
  7. package/dist/{Tab-Dgd9jYEq.js → Tab-CWxCqAvH.js} +3 -3
  8. package/dist/{Typography-Di0hlj32.js → Typography-B1bdo7yt.js} +2 -2
  9. package/dist/components/AnotherComponent/AnotherComponent.es.js +3 -3
  10. package/dist/components/BasicButtons/BasicButtons.es.js +4 -4
  11. package/dist/components/Dropzone/Dropzone.es.js +3 -3
  12. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
  13. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +229 -7
  14. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +1 -1
  15. package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
  16. package/dist/components/buttons/DefaultButton/index.es.js +2 -2
  17. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
  18. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +4 -4
  19. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  20. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
  21. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +2 -2
  22. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  23. package/dist/components/buttons/index.cjs.js +1 -1
  24. package/dist/components/buttons/index.d.ts +0 -1
  25. package/dist/components/buttons/index.es.js +6 -8
  26. package/dist/components/index.cjs.js +1 -1
  27. package/dist/components/index.es.js +15 -17
  28. package/dist/components/inputs/SearchInput/SearchInput.es.js +4 -4
  29. package/dist/components/inputs/TextInput/TextInput.es.js +6 -6
  30. package/dist/components/lists/FileList/FileList.es.js +1 -1
  31. package/dist/components/lists/FileList/FileListItem.cjs.js +2 -1
  32. package/dist/components/lists/FileList/FileListItem.es.js +201 -25
  33. package/dist/{createSvgIcon-D3HDfwCm.js → createSvgIcon-9NfUaq9H.js} +3 -3
  34. package/dist/{createSvgIcon-D4Mxh_r9.js → createSvgIcon-DLZM3vHe.js} +1 -1
  35. package/dist/{extendSxProp-DCdWqtQk.js → extendSxProp-CVD6j4mA.js} +1 -1
  36. package/dist/index.cjs.js +1 -1
  37. package/dist/index.es.js +15 -17
  38. package/dist/{refType-hKctx4k0.js → refType-CMQbzE37.js} +1 -1
  39. package/dist/{useTheme-BZek68TX.js → useTheme-BSwuVDD3.js} +1 -1
  40. package/dist/{useThemeProps-CHytz5pp.js → useThemeProps-kb_vU-1P.js} +2 -2
  41. package/package.json +1 -1
  42. package/dist/DefaultButton-BD9W4fvr.cjs +0 -28
  43. package/dist/DefaultButton-BlGFPRC7.js +0 -439
  44. package/dist/components/buttons/IconButton/IconButton.cjs.js +0 -2
  45. package/dist/components/buttons/IconButton/IconButton.d.ts +0 -5
  46. package/dist/components/buttons/IconButton/IconButton.es.js +0 -187
  47. package/dist/components/buttons/IconButton/index.cjs.js +0 -1
  48. package/dist/components/buttons/IconButton/index.d.ts +0 -2
  49. package/dist/components/buttons/IconButton/index.es.js +0 -4
@@ -1,8 +1,8 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import "react";
3
- import { D as e } from "../../../DefaultButton-BlGFPRC7.js";
4
- import { u as m } from "../../../useTheme-BZek68TX.js";
5
- const s = (r) => {
3
+ import e from "../DefaultButton/DefaultButton.es.js";
4
+ import { u as m } from "../../../useTheme-BSwuVDD3.js";
5
+ const u = (r) => {
6
6
  const t = m();
7
7
  return /* @__PURE__ */ o(
8
8
  e,
@@ -14,5 +14,5 @@ const s = (r) => {
14
14
  );
15
15
  };
16
16
  export {
17
- s as default
17
+ u as default
18
18
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import o from "./PrimaryButton.es.js";
3
- import { c as r } from "../../../createSvgIcon-D4Mxh_r9.js";
3
+ import { c as r } from "../../../createSvgIcon-DLZM3vHe.js";
4
4
  const n = r(/* @__PURE__ */ t("path", {
5
5
  d: "M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"
6
6
  }), "Save"), p = {
@@ -1 +1 @@
1
- "use strict";const n=require("react/jsx-runtime");require("react");const o=require("../../../DefaultButton-BD9W4fvr.cjs"),r=require("../../../useTheme-C-LTLVMt.cjs"),u=e=>{const t=r.useTheme();return n.jsx(o.DefaultButton,{contentColor:t.palette.secondary.main,...e})};module.exports=u;
1
+ "use strict";const n=require("react/jsx-runtime");require("react");const o=require("../DefaultButton/DefaultButton.cjs.js"),r=require("../../../useTheme-C-LTLVMt.cjs"),u=e=>{const t=r.useTheme();return n.jsx(o,{contentColor:t.palette.secondary.main,...e})};module.exports=u;
@@ -1,7 +1,7 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import "react";
3
- import { D as r } from "../../../DefaultButton-BlGFPRC7.js";
4
- import { u as m } from "../../../useTheme-BZek68TX.js";
3
+ import r from "../DefaultButton/DefaultButton.es.js";
4
+ import { u as m } from "../../../useTheme-BSwuVDD3.js";
5
5
  const p = (t) => {
6
6
  const o = m();
7
7
  return /* @__PURE__ */ e(r, { contentColor: o.palette.secondary.main, ...t });
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import t from "./SecondaryButton.es.js";
3
- import { c as e } from "../../../createSvgIcon-D4Mxh_r9.js";
3
+ import { c as e } from "../../../createSvgIcon-DLZM3vHe.js";
4
4
  const r = e(/* @__PURE__ */ o("path", {
5
5
  d: "M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"
6
6
  }), "PersonAdd"), i = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../DefaultButton-BD9W4fvr.cjs"),o=require("./IconButton/IconButton.cjs.js"),n=require("./PrimaryButton/PrimaryButton.cjs.js"),u=require("./SecondaryButton/SecondaryButton.cjs.js");exports.DefaultButton=t.DefaultButton;exports.IconButton=o;exports.PrimaryButton=n;exports.SecondaryButton=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./DefaultButton/DefaultButton.cjs.js"),o=require("./PrimaryButton/PrimaryButton.cjs.js"),n=require("./SecondaryButton/SecondaryButton.cjs.js");exports.DefaultButton=t;exports.PrimaryButton=o;exports.SecondaryButton=n;
@@ -1,4 +1,3 @@
1
1
  export * from "./DefaultButton";
2
- export * from "./IconButton";
3
2
  export * from "./PrimaryButton";
4
3
  export * from "./SecondaryButton";
@@ -1,10 +1,8 @@
1
- import { D as r } from "../../DefaultButton-BlGFPRC7.js";
2
- import { default as e } from "./IconButton/IconButton.es.js";
3
- import { default as u } from "./PrimaryButton/PrimaryButton.es.js";
4
- import { default as m } from "./SecondaryButton/SecondaryButton.es.js";
1
+ import { default as a } from "./DefaultButton/DefaultButton.es.js";
2
+ import { default as e } from "./PrimaryButton/PrimaryButton.es.js";
3
+ import { default as u } from "./SecondaryButton/SecondaryButton.es.js";
5
4
  export {
6
- r as DefaultButton,
7
- e as IconButton,
8
- u as PrimaryButton,
9
- m as SecondaryButton
5
+ a as DefaultButton,
6
+ e as PrimaryButton,
7
+ u as SecondaryButton
10
8
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./AnotherComponent/AnotherComponent.cjs.js"),n=require("./BasicButtons/BasicButtons.cjs.js"),o=require("./Dropzone/Dropzone.cjs.js"),e=require("../DefaultButton-BD9W4fvr.cjs"),s=require("./buttons/IconButton/IconButton.cjs.js"),u=require("./buttons/PrimaryButton/PrimaryButton.cjs.js"),r=require("./buttons/SecondaryButton/SecondaryButton.cjs.js"),c=require("./inputs/SearchInput/SearchInput.cjs.js"),i=require("./inputs/TextInput/TextInput.cjs.js"),_=require("./lists/FileList/FileList.cjs.js"),p=require("./lists/FileList/FileListItem.cjs.js"),a=require("../Tab-C2Tmr8Sv.cjs");exports.AnotherComponent=t;exports.BasicButtons=n;exports.Dropzone=o;exports.DefaultButton=e.DefaultButton;exports.IconButton=s;exports.PrimaryButton=u;exports.SecondaryButton=r;exports.SearchInput=c;exports.TextInput=i;exports.FileList=_;exports.FileListItem=p;exports.Tab=a.Tab;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./AnotherComponent/AnotherComponent.cjs.js"),n=require("./BasicButtons/BasicButtons.cjs.js"),e=require("./Dropzone/Dropzone.cjs.js"),o=require("./buttons/DefaultButton/DefaultButton.cjs.js"),r=require("./buttons/PrimaryButton/PrimaryButton.cjs.js"),s=require("./buttons/SecondaryButton/SecondaryButton.cjs.js"),u=require("./inputs/SearchInput/SearchInput.cjs.js"),i=require("./inputs/TextInput/TextInput.cjs.js"),c=require("./lists/FileList/FileList.cjs.js"),_=require("./lists/FileList/FileListItem.cjs.js"),p=require("../Tab-C2Tmr8Sv.cjs");exports.AnotherComponent=t;exports.BasicButtons=n;exports.Dropzone=e;exports.DefaultButton=o;exports.PrimaryButton=r;exports.SecondaryButton=s;exports.SearchInput=u;exports.TextInput=i;exports.FileList=c;exports.FileListItem=_;exports.Tab=p.Tab;
@@ -1,26 +1,24 @@
1
1
  import { default as e } from "./AnotherComponent/AnotherComponent.es.js";
2
2
  import { default as a } from "./BasicButtons/BasicButtons.es.js";
3
3
  import { default as u } from "./Dropzone/Dropzone.es.js";
4
- import { D as s } from "../DefaultButton-BlGFPRC7.js";
5
- import { default as l } from "./buttons/IconButton/IconButton.es.js";
6
- import { default as x } from "./buttons/PrimaryButton/PrimaryButton.es.js";
7
- import { default as i } from "./buttons/SecondaryButton/SecondaryButton.es.js";
8
- import { default as c } from "./inputs/SearchInput/SearchInput.es.js";
9
- import { default as D } from "./inputs/TextInput/TextInput.es.js";
10
- import { default as h } from "./lists/FileList/FileList.es.js";
11
- import { default as F } from "./lists/FileList/FileListItem.es.js";
12
- import { T as S } from "../Tab-Dgd9jYEq.js";
4
+ import { default as s } from "./buttons/DefaultButton/DefaultButton.es.js";
5
+ import { default as l } from "./buttons/PrimaryButton/PrimaryButton.es.js";
6
+ import { default as d } from "./buttons/SecondaryButton/SecondaryButton.es.js";
7
+ import { default as i } from "./inputs/SearchInput/SearchInput.es.js";
8
+ import { default as c } from "./inputs/TextInput/TextInput.es.js";
9
+ import { default as T } from "./lists/FileList/FileList.es.js";
10
+ import { default as y } from "./lists/FileList/FileListItem.es.js";
11
+ import { T as F } from "../Tab-CWxCqAvH.js";
13
12
  export {
14
13
  e as AnotherComponent,
15
14
  a as BasicButtons,
16
15
  s as DefaultButton,
17
16
  u as Dropzone,
18
- h as FileList,
19
- F as FileListItem,
20
- l as IconButton,
21
- x as PrimaryButton,
22
- c as SearchInput,
23
- i as SecondaryButton,
24
- S as Tab,
25
- D as TextInput
17
+ T as FileList,
18
+ y as FileListItem,
19
+ l as PrimaryButton,
20
+ i as SearchInput,
21
+ d as SecondaryButton,
22
+ F as Tab,
23
+ c as TextInput
26
24
  };
@@ -1,9 +1,9 @@
1
1
  import { jsx as o, jsxs as A } from "react/jsx-runtime";
2
2
  import * as b from "react";
3
- import { g as T, c as S, s as I, a as m, f as L, _ as N, h as R, P as e, e as v, j } from "../../../useThemeProps-CHytz5pp.js";
4
- import { u as z, F as M, c as O } from "../../../InputBase-D8YZOKOt.js";
5
- import { T as _ } from "../../../Typography-Di0hlj32.js";
6
- import { c as $ } from "../../../createSvgIcon-D4Mxh_r9.js";
3
+ import { g as T, c as S, s as I, a as m, f as L, _ as N, h as R, P as e, e as v, j } from "../../../useThemeProps-kb_vU-1P.js";
4
+ import { u as z, F as M, c as O } from "../../../InputBase-BbXy6VDy.js";
5
+ import { T as _ } from "../../../Typography-B1bdo7yt.js";
6
+ import { c as $ } from "../../../createSvgIcon-DLZM3vHe.js";
7
7
  const F = $(/* @__PURE__ */ o("path", {
8
8
  d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"
9
9
  }), "Search");
@@ -1,20 +1,20 @@
1
1
  import { jsxs as me, jsx as I } from "react/jsx-runtime";
2
2
  import * as p from "react";
3
3
  import He from "react";
4
- import { P as e, a as d, _ as z, h as Y, g as ne, c as oe, s as B, r as Oe, f as re, k as zn, j as te, e as ce, E as bn, l as Cn, F as _o, y as jo } from "../../../useThemeProps-CHytz5pp.js";
5
- import { d as Hn, i as Kn, I as Gn, r as Xn, a as Yn, b as Zn, c as Jn, u as Ve, f as Ue, e as Ao, g as dn, F as Bo } from "../../../InputBase-D8YZOKOt.js";
4
+ import { P as e, a as d, _ as z, h as Y, g as ne, c as oe, s as B, r as Oe, f as re, k as zn, j as te, e as ce, E as bn, x as Cn, F as _o, y as jo } from "../../../useThemeProps-kb_vU-1P.js";
5
+ import { d as Hn, i as Kn, I as Gn, r as Xn, a as Yn, b as Zn, c as Jn, u as Ve, f as Ue, e as Ao, g as dn, F as Bo } from "../../../InputBase-BbXy6VDy.js";
6
6
  import { c as Nn, i as sn, u as Sn } from "../../../useControlled-BsLcOmhe.js";
7
7
  import { u as Qn } from "../../../useId-BW-oWmul.js";
8
- import { u as Je } from "../../../useTheme-BZek68TX.js";
8
+ import { u as Je } from "../../../useTheme-BSwuVDD3.js";
9
9
  import { a as de, u as un, s as In } from "../../../useForkRef-DwN_Iz9R.js";
10
- import { c as Qe, r as $e, e as Wo } from "../../../refType-hKctx4k0.js";
10
+ import { c as Qe, r as $e, e as Wo } from "../../../refType-CMQbzE37.js";
11
11
  import { _ as Vo, T as eo } from "../../../TransitionGroupContext-C7wWJ6l7.js";
12
12
  import * as Uo from "react-dom";
13
13
  import Ke from "react-dom";
14
14
  import { a as ie, o as Be, d as qo } from "../../../ownerWindow-BoRkeomM.js";
15
15
  import { a as wn, u as zo } from "../../../useTimeout-KN97abZR.js";
16
- import { c as Ho } from "../../../createSvgIcon-D4Mxh_r9.js";
17
- import { I as no } from "../../../Input-CGU1Xw4s.js";
16
+ import { c as Ho } from "../../../createSvgIcon-DLZM3vHe.js";
17
+ import { I as no } from "../../../Input-Dk-cN0Fb.js";
18
18
  function Ko(n) {
19
19
  const {
20
20
  prototype: o = {}
@@ -1,7 +1,7 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import e from "./FileListItem.es.js";
4
- import { B as l } from "../../../createSvgIcon-D3HDfwCm.js";
4
+ import { B as l } from "../../../createSvgIcon-9NfUaq9H.js";
5
5
  const n = ({
6
6
  files: i = [],
7
7
  ...t
@@ -1 +1,2 @@
1
- "use strict";const e=require("react/jsx-runtime"),t=require("../../../createSvgIcon-B7HVs3ZC.cjs"),v=require("react"),p=require("../../../DefaultButton-BD9W4fvr.cjs"),x=require("../../buttons/IconButton/IconButton.cjs.js"),c=require("../../../Typography-CO64FVmw.cjs");var o={},_=t.interopRequireDefaultExports;Object.defineProperty(o,"__esModule",{value:!0});var n=o.default=void 0,f=_(t.requireCreateSvgIcon()),m=e;n=o.default=(0,f.default)((0,m.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var a={},h=t.interopRequireDefaultExports;Object.defineProperty(a,"__esModule",{value:!0});var u=a.default=void 0,j=h(t.requireCreateSvgIcon()),q=e;u=a.default=(0,j.default)((0,q.jsx)("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile");const I=({file:r,uploading:i,onDelete:s})=>{const l=`${r.size} octets`,d=()=>s==null?void 0:s(r);return e.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",columnGap:"1rem"},children:[e.jsx(u,{color:"primary"}),e.jsxs("div",{className:"text-start w-full",children:[e.jsx(c.Typography,{children:r.name}),e.jsx(c.Typography,{fontSize:"0.875rem",color:"grey",children:l})]}),e.jsx(x,{onClick:d,disabled:i,children:i?e.jsx(p.CircularProgress,{size:24}):e.jsx(n,{})})]})},y=v.memo(I);module.exports=y;
1
+ "use strict";const a=require("react/jsx-runtime"),i=require("../../../createSvgIcon-B7HVs3ZC.cjs"),b=require("react"),v=require("../../../Typography-CO64FVmw.cjs"),e=require("../../../useThemeProps-C6ClLEqN.cjs"),_=require("../../../ButtonBase-XPViWbp_.cjs"),j=require("../../../refType-dllUCpD8.cjs"),I=require("../../../CircularProgress-BCdQaPFF.cjs");function C(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>o[t]})}}return r.default=o,Object.freeze(r)}const p=C(b);var d={},O=i.interopRequireDefaultExports;Object.defineProperty(d,"__esModule",{value:!0});var T=d.default=void 0,$=O(i.requireCreateSvgIcon()),B=a;T=d.default=(0,$.default)((0,B.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var u={},q=i.interopRequireDefaultExports;Object.defineProperty(u,"__esModule",{value:!0});var h=u.default=void 0,M=q(i.requireCreateSvgIcon()),k=a;h=u.default=(0,M.default)((0,k.jsx)("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile");function S(o){return e.generateUtilityClass("MuiIconButton",o)}const E=e.generateUtilityClasses("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),N=["edge","children","className","color","disabled","disableFocusRipple","size"],D=o=>{const{classes:r,disabled:t,color:s,edge:n,size:l}=o,c={root:["root",t&&"disabled",s!=="default"&&`color${e.capitalize(s)}`,n&&`edge${e.capitalize(n)}`,`size${e.capitalize(l)}`]};return e.composeClasses(c,S,r)},F=e.styled(_.ButtonBase,{name:"MuiIconButton",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:t}=o;return[r.root,t.color!=="default"&&r[`color${e.capitalize(t.color)}`],t.edge&&r[`edge${e.capitalize(t.edge)}`],r[`size${e.capitalize(t.size)}`]]}})(({theme:o,ownerState:r})=>e._extends({textAlign:"center",flex:"0 0 auto",fontSize:o.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(o.vars||o).palette.action.active,transition:o.transitions.create("background-color",{duration:o.transitions.duration.shortest})},!r.disableRipple&&{"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})`:e.alpha(o.palette.action.active,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},r.edge==="start"&&{marginLeft:r.size==="small"?-3:-12},r.edge==="end"&&{marginRight:r.size==="small"?-3:-12}),({theme:o,ownerState:r})=>{var t;const s=(t=(o.vars||o).palette)==null?void 0:t[r.color];return e._extends({},r.color==="inherit"&&{color:"inherit"},r.color!=="inherit"&&r.color!=="default"&&e._extends({color:s==null?void 0:s.main},!r.disableRipple&&{"&:hover":e._extends({},s&&{backgroundColor:o.vars?`rgba(${s.mainChannel} / ${o.vars.palette.action.hoverOpacity})`:e.alpha(s.main,o.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),r.size==="small"&&{padding:5,fontSize:o.typography.pxToRem(18)},r.size==="large"&&{padding:12,fontSize:o.typography.pxToRem(28)},{[`&.${E.disabled}`]:{backgroundColor:"transparent",color:(o.vars||o).palette.action.disabled}})}),m=p.forwardRef(function(r,t){const s=e.useThemeProps({props:r,name:"MuiIconButton"}),{edge:n=!1,children:l,className:c,color:x="default",disabled:f=!1,disableFocusRipple:y=!1,size:P="medium"}=s,z=e._objectWithoutPropertiesLoose(s,N),g=e._extends({},s,{edge:n,color:x,disabled:f,disableFocusRipple:y,size:P}),R=D(g);return a.jsx(F,e._extends({className:e.clsx(R.root,c),centerRipple:!0,focusRipple:!y,disabled:f,ref:t,ownerState:g},z,{children:l}))});process.env.NODE_ENV!=="production"&&(m.propTypes={children:j.chainPropTypes(e.PropTypes.node,o=>p.Children.toArray(o.children).some(t=>p.isValidElement(t)&&t.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
2
+ `)):null),classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),e.PropTypes.string]),disabled:e.PropTypes.bool,disableFocusRipple:e.PropTypes.bool,disableRipple:e.PropTypes.bool,edge:e.PropTypes.oneOf(["end","start",!1]),size:e.PropTypes.oneOfType([e.PropTypes.oneOf(["small","medium","large"]),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])});const L=m,U=({file:o,uploading:r,onDelete:t})=>{const s=`${o.size} octets`,n=()=>t==null?void 0:t(o);return a.jsxs(i.Box,{sx:{display:"flex",alignItems:"center",columnGap:"1rem"},children:[a.jsx(h,{color:"primary"}),a.jsxs("div",{className:"text-start w-full",children:[a.jsx(v.Typography,{children:o.name}),a.jsx(v.Typography,{fontSize:"0.875rem",color:"grey",children:s})]}),a.jsx(L,{onClick:n,disabled:r,children:r?a.jsx(I.CircularProgress,{size:24}):a.jsx(T,{})})]})},V=b.memo(U);module.exports=V;
@@ -1,40 +1,216 @@
1
- import c, { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import { r as u, i as d, B as p } from "../../../createSvgIcon-D3HDfwCm.js";
3
- import _ from "react";
4
- import { C as h } from "../../../DefaultButton-BlGFPRC7.js";
5
- import x from "../../buttons/IconButton/IconButton.es.js";
6
- import { T as s } from "../../../Typography-Di0hlj32.js";
7
- var a = {}, I = d;
8
- Object.defineProperty(a, "__esModule", {
1
+ import z, { jsx as s, jsxs as b } from "react/jsx-runtime";
2
+ import { r as R, i as x, B as T } from "../../../createSvgIcon-9NfUaq9H.js";
3
+ import * as p from "react";
4
+ import M from "react";
5
+ import { T as y } from "../../../Typography-B1bdo7yt.js";
6
+ import { g as k, c as P, s as E, e as l, a as n, x as h, f as F, _ as L, h as N, P as r, j as q } from "../../../useThemeProps-kb_vU-1P.js";
7
+ import { B as S } from "../../../ButtonBase-Bw43M3TO.js";
8
+ import { c as U } from "../../../refType-CMQbzE37.js";
9
+ import { C as V } from "../../../CircularProgress-DRE9BLTL.js";
10
+ var u = {}, D = x;
11
+ Object.defineProperty(u, "__esModule", {
9
12
  value: !0
10
13
  });
11
- var m = a.default = void 0, j = I(u()), z = c;
12
- m = a.default = (0, j.default)(/* @__PURE__ */ (0, z.jsx)("path", {
14
+ var I = u.default = void 0, A = D(R()), H = z;
15
+ I = u.default = (0, A.default)(/* @__PURE__ */ (0, H.jsx)("path", {
13
16
  d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
14
17
  }), "Delete");
15
- var i = {}, $ = d;
16
- Object.defineProperty(i, "__esModule", {
18
+ var f = {}, W = x;
19
+ Object.defineProperty(f, "__esModule", {
17
20
  value: !0
18
21
  });
19
- var n = i.default = void 0, y = $(u()), g = c;
20
- n = i.default = (0, y.default)(/* @__PURE__ */ (0, g.jsx)("path", {
22
+ var C = f.default = void 0, G = W(R()), Y = z;
23
+ C = f.default = (0, G.default)(/* @__PURE__ */ (0, Y.jsx)("path", {
21
24
  d: "M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"
22
25
  }), "InsertDriveFile");
23
- const R = ({
24
- file: r,
26
+ function w(e) {
27
+ return P("MuiIconButton", e);
28
+ }
29
+ const J = k("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), K = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"], Q = (e) => {
30
+ const {
31
+ classes: o,
32
+ disabled: t,
33
+ color: a,
34
+ edge: i,
35
+ size: c
36
+ } = e, d = {
37
+ root: ["root", t && "disabled", a !== "default" && `color${l(a)}`, i && `edge${l(i)}`, `size${l(c)}`]
38
+ };
39
+ return q(d, w, o);
40
+ }, X = E(S, {
41
+ name: "MuiIconButton",
42
+ slot: "Root",
43
+ overridesResolver: (e, o) => {
44
+ const {
45
+ ownerState: t
46
+ } = e;
47
+ return [o.root, t.color !== "default" && o[`color${l(t.color)}`], t.edge && o[`edge${l(t.edge)}`], o[`size${l(t.size)}`]];
48
+ }
49
+ })(({
50
+ theme: e,
51
+ ownerState: o
52
+ }) => n({
53
+ textAlign: "center",
54
+ flex: "0 0 auto",
55
+ fontSize: e.typography.pxToRem(24),
56
+ padding: 8,
57
+ borderRadius: "50%",
58
+ overflow: "visible",
59
+ // Explicitly set the default value to solve a bug on IE11.
60
+ color: (e.vars || e).palette.action.active,
61
+ transition: e.transitions.create("background-color", {
62
+ duration: e.transitions.duration.shortest
63
+ })
64
+ }, !o.disableRipple && {
65
+ "&:hover": {
66
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})` : h(e.palette.action.active, e.palette.action.hoverOpacity),
67
+ // Reset on touch devices, it doesn't add specificity
68
+ "@media (hover: none)": {
69
+ backgroundColor: "transparent"
70
+ }
71
+ }
72
+ }, o.edge === "start" && {
73
+ marginLeft: o.size === "small" ? -3 : -12
74
+ }, o.edge === "end" && {
75
+ marginRight: o.size === "small" ? -3 : -12
76
+ }), ({
77
+ theme: e,
78
+ ownerState: o
79
+ }) => {
80
+ var t;
81
+ const a = (t = (e.vars || e).palette) == null ? void 0 : t[o.color];
82
+ return n({}, o.color === "inherit" && {
83
+ color: "inherit"
84
+ }, o.color !== "inherit" && o.color !== "default" && n({
85
+ color: a == null ? void 0 : a.main
86
+ }, !o.disableRipple && {
87
+ "&:hover": n({}, a && {
88
+ backgroundColor: e.vars ? `rgba(${a.mainChannel} / ${e.vars.palette.action.hoverOpacity})` : h(a.main, e.palette.action.hoverOpacity)
89
+ }, {
90
+ // Reset on touch devices, it doesn't add specificity
91
+ "@media (hover: none)": {
92
+ backgroundColor: "transparent"
93
+ }
94
+ })
95
+ }), o.size === "small" && {
96
+ padding: 5,
97
+ fontSize: e.typography.pxToRem(18)
98
+ }, o.size === "large" && {
99
+ padding: 12,
100
+ fontSize: e.typography.pxToRem(28)
101
+ }, {
102
+ [`&.${J.disabled}`]: {
103
+ backgroundColor: "transparent",
104
+ color: (e.vars || e).palette.action.disabled
105
+ }
106
+ });
107
+ }), _ = /* @__PURE__ */ p.forwardRef(function(o, t) {
108
+ const a = F({
109
+ props: o,
110
+ name: "MuiIconButton"
111
+ }), {
112
+ edge: i = !1,
113
+ children: c,
114
+ className: d,
115
+ color: $ = "default",
116
+ disabled: v = !1,
117
+ disableFocusRipple: g = !1,
118
+ size: B = "medium"
119
+ } = a, O = L(a, K), m = n({}, a, {
120
+ edge: i,
121
+ color: $,
122
+ disabled: v,
123
+ disableFocusRipple: g,
124
+ size: B
125
+ }), j = Q(m);
126
+ return /* @__PURE__ */ s(X, n({
127
+ className: N(j.root, d),
128
+ centerRipple: !0,
129
+ focusRipple: !g,
130
+ disabled: v,
131
+ ref: t,
132
+ ownerState: m
133
+ }, O, {
134
+ children: c
135
+ }));
136
+ });
137
+ process.env.NODE_ENV !== "production" && (_.propTypes = {
138
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
139
+ // │ These PropTypes are generated from the TypeScript type definitions. │
140
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
141
+ // └─────────────────────────────────────────────────────────────────────┘
142
+ /**
143
+ * The icon to display.
144
+ */
145
+ children: U(r.node, (e) => p.Children.toArray(e.children).some((t) => /* @__PURE__ */ p.isValidElement(t) && t.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
146
+ `)) : null),
147
+ /**
148
+ * Override or extend the styles applied to the component.
149
+ */
150
+ classes: r.object,
151
+ /**
152
+ * @ignore
153
+ */
154
+ className: r.string,
155
+ /**
156
+ * The color of the component.
157
+ * It supports both default and custom theme colors, which can be added as shown in the
158
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
159
+ * @default 'default'
160
+ */
161
+ color: r.oneOfType([r.oneOf(["inherit", "default", "primary", "secondary", "error", "info", "success", "warning"]), r.string]),
162
+ /**
163
+ * If `true`, the component is disabled.
164
+ * @default false
165
+ */
166
+ disabled: r.bool,
167
+ /**
168
+ * If `true`, the keyboard focus ripple is disabled.
169
+ * @default false
170
+ */
171
+ disableFocusRipple: r.bool,
172
+ /**
173
+ * If `true`, the ripple effect is disabled.
174
+ *
175
+ * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
176
+ * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
177
+ * @default false
178
+ */
179
+ disableRipple: r.bool,
180
+ /**
181
+ * If given, uses a negative margin to counteract the padding on one
182
+ * side (this is often helpful for aligning the left or right
183
+ * side of the icon with content above or below, without ruining the border
184
+ * size and shape).
185
+ * @default false
186
+ */
187
+ edge: r.oneOf(["end", "start", !1]),
188
+ /**
189
+ * The size of the component.
190
+ * `small` is equivalent to the dense button styling.
191
+ * @default 'medium'
192
+ */
193
+ size: r.oneOfType([r.oneOf(["small", "medium", "large"]), r.string]),
194
+ /**
195
+ * The system prop that allows defining system overrides as well as additional CSS styles.
196
+ */
197
+ sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object])
198
+ });
199
+ const Z = _, ee = ({
200
+ file: e,
25
201
  uploading: o,
26
202
  onDelete: t
27
203
  }) => {
28
- const f = `${r.size} octets`, v = () => t == null ? void 0 : t(r);
29
- return /* @__PURE__ */ l(p, { sx: { display: "flex", alignItems: "center", columnGap: "1rem" }, children: [
30
- /* @__PURE__ */ e(n, { color: "primary" }),
31
- /* @__PURE__ */ l("div", { className: "text-start w-full", children: [
32
- /* @__PURE__ */ e(s, { children: r.name }),
33
- /* @__PURE__ */ e(s, { fontSize: "0.875rem", color: "grey", children: f })
204
+ const a = `${e.size} octets`, i = () => t == null ? void 0 : t(e);
205
+ return /* @__PURE__ */ b(T, { sx: { display: "flex", alignItems: "center", columnGap: "1rem" }, children: [
206
+ /* @__PURE__ */ s(C, { color: "primary" }),
207
+ /* @__PURE__ */ b("div", { className: "text-start w-full", children: [
208
+ /* @__PURE__ */ s(y, { children: e.name }),
209
+ /* @__PURE__ */ s(y, { fontSize: "0.875rem", color: "grey", children: a })
34
210
  ] }),
35
- /* @__PURE__ */ e(x, { onClick: v, disabled: o, children: o ? /* @__PURE__ */ e(h, { size: 24 }) : /* @__PURE__ */ e(m, {}) })
211
+ /* @__PURE__ */ s(Z, { onClick: i, disabled: o, children: o ? /* @__PURE__ */ s(V, { size: 24 }) : /* @__PURE__ */ s(I, {}) })
36
212
  ] });
37
- }, b = _.memo(R);
213
+ }, ce = M.memo(ee);
38
214
  export {
39
- b as default
215
+ ce as default
40
216
  };
@@ -1,8 +1,8 @@
1
- import { a as _, z as E, A as T, u as b, _ as C, h as P, g as S, B as I, T as $, C as v, P as r, e as O, D as B } from "./useThemeProps-CHytz5pp.js";
1
+ import { a as _, z as E, A as T, u as b, _ as C, h as P, g as S, B as I, T as $, C as v, P as r, e as O, D as B } from "./useThemeProps-kb_vU-1P.js";
2
2
  import * as D from "react";
3
3
  import { jsx as w } from "react/jsx-runtime";
4
- import { e as R } from "./extendSxProp-DCdWqtQk.js";
5
- import { c as M } from "./createSvgIcon-D4Mxh_r9.js";
4
+ import { e as R } from "./extendSxProp-CVD6j4mA.js";
5
+ import { c as M } from "./createSvgIcon-DLZM3vHe.js";
6
6
  import { c as q, i as F, u as j } from "./useControlled-BsLcOmhe.js";
7
7
  import { d as V, a as k, o as G } from "./ownerWindow-BoRkeomM.js";
8
8
  import { s as z, u as A, a as U } from "./useForkRef-DwN_Iz9R.js";
@@ -1,4 +1,4 @@
1
- import { c as I, g as b, s as w, e as g, f as C, _ as T, a as S, h as N, P as o, j as R } from "./useThemeProps-CHytz5pp.js";
1
+ import { c as I, g as b, s as w, e as g, f as C, _ as T, a as S, h as N, P as o, j as R } from "./useThemeProps-kb_vU-1P.js";
2
2
  import * as v from "react";
3
3
  import { jsxs as O, jsx as _ } from "react/jsx-runtime";
4
4
  function j(e) {
@@ -1,4 +1,4 @@
1
- import { _ as a, a as i, d as c, i as f } from "./useThemeProps-CHytz5pp.js";
1
+ import { _ as a, a as i, d as c, i as f } from "./useThemeProps-kb_vU-1P.js";
2
2
  const x = ["sx"], P = (t) => {
3
3
  var s, o;
4
4
  const n = {
package/dist/index.cjs.js CHANGED
@@ -1 +1 @@
1
- var m=require("./assets/index.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components/AnotherComponent/AnotherComponent.cjs.js"),n=require("./components/BasicButtons/BasicButtons.cjs.js"),o=require("./components/Dropzone/Dropzone.cjs.js"),e=require("./DefaultButton-BD9W4fvr.cjs"),r=require("./components/buttons/IconButton/IconButton.cjs.js"),s=require("./components/buttons/PrimaryButton/PrimaryButton.cjs.js"),u=require("./components/buttons/SecondaryButton/SecondaryButton.cjs.js"),i=require("./components/inputs/SearchInput/SearchInput.cjs.js"),c=require("./components/inputs/TextInput/TextInput.cjs.js"),_=require("./components/lists/FileList/FileList.cjs.js"),p=require("./components/lists/FileList/FileListItem.cjs.js"),a=require("./Tab-C2Tmr8Sv.cjs");exports.AnotherComponent=t;exports.BasicButtons=n;exports.Dropzone=o;exports.DefaultButton=e.DefaultButton;exports.IconButton=r;exports.PrimaryButton=s;exports.SecondaryButton=u;exports.SearchInput=i;exports.TextInput=c;exports.FileList=_;exports.FileListItem=p;exports.Tab=a.Tab;
1
+ var a=require("./assets/index.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components/AnotherComponent/AnotherComponent.cjs.js"),n=require("./components/BasicButtons/BasicButtons.cjs.js"),o=require("./components/Dropzone/Dropzone.cjs.js"),e=require("./components/buttons/DefaultButton/DefaultButton.cjs.js"),r=require("./components/buttons/PrimaryButton/PrimaryButton.cjs.js"),s=require("./components/buttons/SecondaryButton/SecondaryButton.cjs.js"),u=require("./components/inputs/SearchInput/SearchInput.cjs.js"),i=require("./components/inputs/TextInput/TextInput.cjs.js"),c=require("./components/lists/FileList/FileList.cjs.js"),_=require("./components/lists/FileList/FileListItem.cjs.js"),p=require("./Tab-C2Tmr8Sv.cjs");exports.AnotherComponent=t;exports.BasicButtons=n;exports.Dropzone=o;exports.DefaultButton=e;exports.PrimaryButton=r;exports.SecondaryButton=s;exports.SearchInput=u;exports.TextInput=i;exports.FileList=c;exports.FileListItem=_;exports.Tab=p.Tab;
package/dist/index.es.js CHANGED
@@ -2,26 +2,24 @@ import "./assets/index.css";
2
2
  import { default as r } from "./components/AnotherComponent/AnotherComponent.es.js";
3
3
  import { default as f } from "./components/BasicButtons/BasicButtons.es.js";
4
4
  import { default as p } from "./components/Dropzone/Dropzone.es.js";
5
- import { D as s } from "./DefaultButton-BlGFPRC7.js";
6
- import { default as n } from "./components/buttons/IconButton/IconButton.es.js";
7
- import { default as d } from "./components/buttons/PrimaryButton/PrimaryButton.es.js";
8
- import { default as B } from "./components/buttons/SecondaryButton/SecondaryButton.es.js";
9
- import { default as I } from "./components/inputs/SearchInput/SearchInput.es.js";
10
- import { default as T } from "./components/inputs/TextInput/TextInput.es.js";
11
- import { default as y } from "./components/lists/FileList/FileList.es.js";
12
- import { default as L } from "./components/lists/FileList/FileListItem.es.js";
13
- import { T as b } from "./Tab-Dgd9jYEq.js";
5
+ import { default as s } from "./components/buttons/DefaultButton/DefaultButton.es.js";
6
+ import { default as x } from "./components/buttons/PrimaryButton/PrimaryButton.es.js";
7
+ import { default as n } from "./components/buttons/SecondaryButton/SecondaryButton.es.js";
8
+ import { default as B } from "./components/inputs/SearchInput/SearchInput.es.js";
9
+ import { default as I } from "./components/inputs/TextInput/TextInput.es.js";
10
+ import { default as h } from "./components/lists/FileList/FileList.es.js";
11
+ import { default as D } from "./components/lists/FileList/FileListItem.es.js";
12
+ import { T as L } from "./Tab-CWxCqAvH.js";
14
13
  export {
15
14
  r as AnotherComponent,
16
15
  f as BasicButtons,
17
16
  s as DefaultButton,
18
17
  p as Dropzone,
19
- y as FileList,
20
- L as FileListItem,
21
- n as IconButton,
22
- d as PrimaryButton,
23
- I as SearchInput,
24
- B as SecondaryButton,
25
- b as Tab,
26
- T as TextInput
18
+ h as FileList,
19
+ D as FileListItem,
20
+ x as PrimaryButton,
21
+ B as SearchInput,
22
+ n as SecondaryButton,
23
+ L as Tab,
24
+ I as TextInput
27
25
  };
@@ -1,4 +1,4 @@
1
- import { P as o } from "./useThemeProps-CHytz5pp.js";
1
+ import { P as o } from "./useThemeProps-kb_vU-1P.js";
2
2
  function a(n, e) {
3
3
  return process.env.NODE_ENV === "production" ? () => null : function(...t) {
4
4
  return n(...t) || e(...t);
@@ -1,5 +1,5 @@
1
1
  import * as s from "react";
2
- import { u, T as o, b as t } from "./useThemeProps-CHytz5pp.js";
2
+ import { u, T as o, b as t } from "./useThemeProps-kb_vU-1P.js";
3
3
  function a() {
4
4
  const e = u(t);
5
5
  return process.env.NODE_ENV !== "production" && s.useDebugValue(e), e[o] || e;
@@ -2705,7 +2705,7 @@ export {
2705
2705
  de as i,
2706
2706
  Eo as j,
2707
2707
  re as k,
2708
- xo as l,
2708
+ Dt as l,
2709
2709
  $n as m,
2710
2710
  it as n,
2711
2711
  ae as o,
@@ -2717,7 +2717,7 @@ export {
2717
2717
  bn as u,
2718
2718
  Pn as v,
2719
2719
  we as w,
2720
- Dt as x,
2720
+ xo as x,
2721
2721
  Se as y,
2722
2722
  yr as z
2723
2723
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgi-learning-hub/ui",
3
- "version": "0.0.1-dev.1708959157",
3
+ "version": "0.0.1-dev.1708959744",
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",