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

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 (109) hide show
  1. package/dist/Box-7uR7JZiM.cjs +1 -0
  2. package/dist/Box-CPGTKTgx.js +56 -0
  3. package/dist/{ButtonBase-Bw43M3TO.js → ButtonBase-B0tkJ9zf.js} +2 -2
  4. package/dist/{ButtonBase-XPViWbp_.cjs → ButtonBase-DCL6Xlnm.cjs} +1 -1
  5. package/dist/{CircularProgress-BCdQaPFF.cjs → CircularProgress-CZX5SfKt.cjs} +1 -1
  6. package/dist/{CircularProgress-DRE9BLTL.js → CircularProgress-CguDBnxV.js} +2 -2
  7. package/dist/IconButton-CJ1Nt-jf.js +182 -0
  8. package/dist/IconButton-De7ZdW2q.cjs +2 -0
  9. package/dist/{InputBase-BbXy6VDy.js → InputBase-C_yPRkam.js} +109 -112
  10. package/dist/InputBase-Dvr5GnwD.cjs +4 -0
  11. package/dist/Tab-Bhm9hCrX.cjs +1 -0
  12. package/dist/{Tab-CWxCqAvH.js → Tab-C4l6V01S.js} +9 -9
  13. package/dist/{Typography-B1bdo7yt.js → Typography-CyFLZjnE.js} +99 -74
  14. package/dist/Typography-DwsN2Ttm.cjs +1 -0
  15. package/dist/assets/index.css +1 -1
  16. package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
  17. package/dist/components/Dropzone/Dropzone.es.js +12 -11
  18. package/dist/components/Dropzone/Dropzone.stories.cjs.js +1 -0
  19. package/dist/components/{AnotherComponent/AnotherComponent.stories.d.ts → Dropzone/Dropzone.stories.d.ts} +1 -2
  20. package/dist/components/Dropzone/Dropzone.stories.es.js +17 -0
  21. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
  22. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +474 -126
  23. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  24. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +4 -4
  25. package/dist/components/buttons/IconButton.stories.cjs.js +1 -0
  26. package/dist/components/buttons/IconButton.stories.d.ts +4 -0
  27. package/dist/components/buttons/IconButton.stories.es.js +27 -0
  28. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
  29. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
  30. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  31. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.d.ts +1 -1
  32. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +8 -7
  33. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
  34. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
  35. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  36. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.d.ts +1 -1
  37. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +10 -9
  38. package/dist/components/index.cjs.js +1 -1
  39. package/dist/components/index.d.ts +0 -2
  40. package/dist/components/index.es.js +18 -22
  41. package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
  42. package/dist/components/inputs/SearchInput/SearchInput.es.js +10 -10
  43. package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -0
  44. package/dist/components/inputs/SearchInput/SearchInput.stories.d.ts +4 -0
  45. package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +16 -0
  46. package/dist/components/inputs/TextInput/TextInput.cjs.js +11 -11
  47. package/dist/components/inputs/TextInput/TextInput.es.js +1905 -1655
  48. package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -0
  49. package/dist/components/inputs/TextInput/TextInput.stories.d.ts +4 -0
  50. package/dist/components/inputs/TextInput/TextInput.stories.es.js +17 -0
  51. package/dist/components/lists/FileList/FileList.cjs.js +1 -1
  52. package/dist/components/lists/FileList/FileList.es.js +1 -1
  53. package/dist/components/lists/FileList/FileList.stories.cjs.js +1 -0
  54. package/dist/components/lists/FileList/FileList.stories.d.ts +4 -0
  55. package/dist/components/lists/FileList/FileList.stories.es.js +28 -0
  56. package/dist/components/lists/FileList/FileListItem.cjs.js +1 -2
  57. package/dist/components/lists/FileList/FileListItem.es.js +26 -201
  58. package/dist/components/lists/TabList.stories.cjs.js +4 -0
  59. package/dist/components/lists/TabList.stories.d.ts +4 -0
  60. package/dist/components/lists/TabList.stories.es.js +1027 -0
  61. package/dist/{createSvgIcon-BivvPRyr.cjs → createSvgIcon-B6bZPuto.cjs} +1 -1
  62. package/dist/createSvgIcon-BX8WQ5r-.cjs +2 -0
  63. package/dist/{createSvgIcon-DLZM3vHe.js → createSvgIcon-KaSN8JhZ.js} +7 -7
  64. package/dist/createSvgIcon-m_wsenOJ.js +84 -0
  65. package/dist/index.cjs.js +1 -1
  66. package/dist/index.es.js +18 -22
  67. package/dist/isHostComponent-PydJW4A4.cjs +1 -0
  68. package/dist/isHostComponent-kiaBvYVo.js +6 -0
  69. package/dist/{ownerWindow-BoRkeomM.js → ownerWindow-C7EH1lr6.js} +2 -2
  70. package/dist/{refType-dllUCpD8.cjs → refType-CHSN6ysS.cjs} +1 -1
  71. package/dist/{refType-CMQbzE37.js → refType-Hh9tfnoF.js} +1 -1
  72. package/dist/unsupportedProp-Bn6XWqwH.cjs +1 -0
  73. package/dist/unsupportedProp-BuVD30Gh.js +9 -0
  74. package/dist/useSlotProps-MoAYME1z.js +70 -0
  75. package/dist/useSlotProps-R4s13HHI.cjs +1 -0
  76. package/dist/{useTheme-C-LTLVMt.cjs → useTheme-BDPYLOoP.cjs} +1 -1
  77. package/dist/{useTheme-BSwuVDD3.js → useTheme-DJEDOopE.js} +1 -1
  78. package/dist/{useThemeProps-kb_vU-1P.js → useThemeProps-Dg9Uoq7q.js} +656 -689
  79. package/dist/useThemeProps-jkB5q9ie.cjs +65 -0
  80. package/package.json +1 -1
  81. package/dist/Button-CmBnwwn3.js +0 -356
  82. package/dist/Button-wMPAZpnO.cjs +0 -1
  83. package/dist/Input-DHic6dYE.cjs +0 -1
  84. package/dist/Input-Dk-cN0Fb.js +0 -322
  85. package/dist/InputBase-WBNJQn8V.cjs +0 -4
  86. package/dist/Tab-C2Tmr8Sv.cjs +0 -1
  87. package/dist/Typography-CO64FVmw.cjs +0 -1
  88. package/dist/components/AnotherComponent/AnotherComponent.cjs.js +0 -1
  89. package/dist/components/AnotherComponent/AnotherComponent.d.ts +0 -2
  90. package/dist/components/AnotherComponent/AnotherComponent.es.js +0 -15
  91. package/dist/components/AnotherComponent/AnotherComponent.stories.cjs.js +0 -1
  92. package/dist/components/AnotherComponent/AnotherComponent.stories.es.js +0 -22
  93. package/dist/components/AnotherComponent/index.cjs.js +0 -1
  94. package/dist/components/AnotherComponent/index.d.ts +0 -2
  95. package/dist/components/AnotherComponent/index.es.js +0 -4
  96. package/dist/components/BasicButtons/BasicButtons.cjs.js +0 -1
  97. package/dist/components/BasicButtons/BasicButtons.d.ts +0 -2
  98. package/dist/components/BasicButtons/BasicButtons.es.js +0 -189
  99. package/dist/components/BasicButtons/BasicButtons.stories.cjs.js +0 -1
  100. package/dist/components/BasicButtons/BasicButtons.stories.d.ts +0 -5
  101. package/dist/components/BasicButtons/BasicButtons.stories.es.js +0 -22
  102. package/dist/components/BasicButtons/index.cjs.js +0 -1
  103. package/dist/components/BasicButtons/index.d.ts +0 -2
  104. package/dist/components/BasicButtons/index.es.js +0 -4
  105. package/dist/createSvgIcon-9NfUaq9H.js +0 -143
  106. package/dist/createSvgIcon-B7HVs3ZC.cjs +0 -2
  107. package/dist/extendSxProp-CVD6j4mA.js +0 -29
  108. package/dist/extendSxProp-D5gpnasP.cjs +0 -1
  109. package/dist/useThemeProps-C6ClLEqN.cjs +0 -65
@@ -1 +1 @@
1
- "use strict";const e=require("./useThemeProps-C6ClLEqN.cjs"),x=require("react"),v=require("react/jsx-runtime");function _(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>o[r]})}}return t.default=o,Object.freeze(t)}const g=_(x);function $(o){return e.generateUtilityClass("MuiSvgIcon",o)}e.generateUtilityClasses("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const z=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],b=o=>{const{color:t,fontSize:r,classes:i}=o,n={root:["root",t!=="inherit"&&`color${e.capitalize(t)}`,`fontSize${e.capitalize(r)}`]};return e.composeClasses(n,$,i)},I=e.styled("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:r}=o;return[t.root,r.color!=="inherit"&&t[`color${e.capitalize(r.color)}`],t[`fontSize${e.capitalize(r.fontSize)}`]]}})(({theme:o,ownerState:t})=>{var r,i,n,u,f,a,m,d,y,l,c,p,s;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=o.transitions)==null||(i=r.create)==null?void 0:i.call(r,"fill",{duration:(n=o.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((u=o.typography)==null||(f=u.pxToRem)==null?void 0:f.call(u,20))||"1.25rem",medium:((a=o.typography)==null||(m=a.pxToRem)==null?void 0:m.call(a,24))||"1.5rem",large:((d=o.typography)==null||(y=d.pxToRem)==null?void 0:y.call(d,35))||"2.1875rem"}[t.fontSize],color:(l=(c=(o.vars||o).palette)==null||(c=c[t.color])==null?void 0:c.main)!=null?l:{action:(p=(o.vars||o).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(s=(o.vars||o).palette)==null||(s=s.action)==null?void 0:s.disabled,inherit:void 0}[t.color]}}),h=g.forwardRef(function(t,r){const i=e.useThemeProps({props:t,name:"MuiSvgIcon"}),{children:n,className:u,color:f="inherit",component:a="svg",fontSize:m="medium",htmlColor:d,inheritViewBox:y=!1,titleAccess:l,viewBox:c="0 0 24 24"}=i,p=e._objectWithoutPropertiesLoose(i,z),s=g.isValidElement(n)&&n.type==="svg",T=e._extends({},i,{color:f,component:a,fontSize:m,instanceFontSize:t.fontSize,inheritViewBox:y,viewBox:c,hasSvgAsChild:s}),S={};y||(S.viewBox=c);const P=b(T);return v.jsxs(I,e._extends({as:a,className:e.clsx(P.root,u),focusable:"false",color:d,"aria-hidden":l?void 0:!0,role:l?"img":void 0,ref:r},S,p,s&&n.props,{ownerState:T,children:[s?n.props.children:n,l?v.jsx("title",{children:l}):null]}))});process.env.NODE_ENV!=="production"&&(h.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),e.PropTypes.string]),component:e.PropTypes.elementType,fontSize:e.PropTypes.oneOfType([e.PropTypes.oneOf(["inherit","large","medium","small"]),e.PropTypes.string]),htmlColor:e.PropTypes.string,inheritViewBox:e.PropTypes.bool,shapeRendering: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]),titleAccess:e.PropTypes.string,viewBox:e.PropTypes.string});h.muiName="SvgIcon";function O(o,t){function r(i,n){return v.jsx(h,e._extends({"data-testid":`${t}Icon`,ref:n},i,{children:o}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=h.muiName,g.memo(g.forwardRef(r))}exports.createSvgIcon=O;
1
+ "use strict";const e=require("./useThemeProps-jkB5q9ie.cjs"),x=require("react"),v=require("react/jsx-runtime");function _(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>o[r]})}}return t.default=o,Object.freeze(t)}const g=_(x);function $(o){return e.generateUtilityClass("MuiSvgIcon",o)}e.generateUtilityClasses("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const z=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],b=o=>{const{color:t,fontSize:r,classes:i}=o,n={root:["root",t!=="inherit"&&`color${e.capitalize(t)}`,`fontSize${e.capitalize(r)}`]};return e.composeClasses(n,$,i)},I=e.styled("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:r}=o;return[t.root,r.color!=="inherit"&&t[`color${e.capitalize(r.color)}`],t[`fontSize${e.capitalize(r.fontSize)}`]]}})(({theme:o,ownerState:t})=>{var r,i,n,u,f,a,m,d,y,l,c,p,s;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=o.transitions)==null||(i=r.create)==null?void 0:i.call(r,"fill",{duration:(n=o.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((u=o.typography)==null||(f=u.pxToRem)==null?void 0:f.call(u,20))||"1.25rem",medium:((a=o.typography)==null||(m=a.pxToRem)==null?void 0:m.call(a,24))||"1.5rem",large:((d=o.typography)==null||(y=d.pxToRem)==null?void 0:y.call(d,35))||"2.1875rem"}[t.fontSize],color:(l=(c=(o.vars||o).palette)==null||(c=c[t.color])==null?void 0:c.main)!=null?l:{action:(p=(o.vars||o).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(s=(o.vars||o).palette)==null||(s=s.action)==null?void 0:s.disabled,inherit:void 0}[t.color]}}),h=g.forwardRef(function(t,r){const i=e.useThemeProps({props:t,name:"MuiSvgIcon"}),{children:n,className:u,color:f="inherit",component:a="svg",fontSize:m="medium",htmlColor:d,inheritViewBox:y=!1,titleAccess:l,viewBox:c="0 0 24 24"}=i,p=e._objectWithoutPropertiesLoose(i,z),s=g.isValidElement(n)&&n.type==="svg",T=e._extends({},i,{color:f,component:a,fontSize:m,instanceFontSize:t.fontSize,inheritViewBox:y,viewBox:c,hasSvgAsChild:s}),S={};y||(S.viewBox=c);const P=b(T);return v.jsxs(I,e._extends({as:a,className:e.clsx(P.root,u),focusable:"false",color:d,"aria-hidden":l?void 0:!0,role:l?"img":void 0,ref:r},S,p,s&&n.props,{ownerState:T,children:[s?n.props.children:n,l?v.jsx("title",{children:l}):null]}))});process.env.NODE_ENV!=="production"&&(h.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),e.PropTypes.string]),component:e.PropTypes.elementType,fontSize:e.PropTypes.oneOfType([e.PropTypes.oneOf(["inherit","large","medium","small"]),e.PropTypes.string]),htmlColor:e.PropTypes.string,inheritViewBox:e.PropTypes.bool,shapeRendering: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]),titleAccess:e.PropTypes.string,viewBox:e.PropTypes.string});h.muiName="SvgIcon";function O(o,t){function r(i,n){return v.jsx(h,e._extends({"data-testid":`${t}Icon`,ref:n},i,{children:o}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=h.muiName,g.memo(g.forwardRef(r))}exports.createSvgIcon=O;
@@ -0,0 +1,2 @@
1
+ "use strict";const s=require("./useThemeProps-jkB5q9ie.cjs"),b=require("./createSvgIcon-B6bZPuto.cjs"),l=require("./useControlled-jN3fqFfv.cjs"),d=require("./ownerWindow-Dk_4aaak.cjs"),p=require("./useForkRef-CGd3Nhyb.cjs"),C=require("./useId-Cw0TtD-8.cjs"),I=require("./unsupportedProp-Bn6XWqwH.cjs"),y=require("./useTimeout-qjxkiZZn.cjs"),S=require("./useIsFocusVisible-BF0lT08B.cjs");function w(e,t){return process.env.NODE_ENV==="production"?()=>null:(r,i,o,n,u)=>{const c=o||"<<anonymous>>",a=u||i;return typeof r[i]<"u"?new Error(`The ${n} \`${a}\` of \`${c}\` is deprecated. ${t}`):null}}function N(e,t){if(process.env.NODE_ENV==="production")return()=>null;const r=t?s._extends({},t.propTypes):null;return o=>(n,u,c,a,m,...E)=>{const v=m||u,h=r==null?void 0:r[v];if(h){const g=h(n,u,c,a,m,...E);if(g)return g}return typeof n[u]<"u"&&!n[o]?new Error(`The prop \`${v}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}var q={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(q);var P=q.exports,f={};const R={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
2
+ `)),s.ClassNameGenerator.configure(e)}},T=Object.freeze(Object.defineProperty({__proto__:null,capitalize:s.capitalize,createChainedFunction:l.createChainedFunction,createSvgIcon:b.createSvgIcon,debounce:d.debounce,deprecatedPropType:w,isMuiElement:l.isMuiElement,ownerDocument:d.ownerDocument,ownerWindow:d.ownerWindow,requirePropFactory:N,setRef:p.setRef,unstable_ClassNameGenerator:R,unstable_useEnhancedEffect:p.useEnhancedEffect,unstable_useId:C.useId,unsupportedProp:I.unsupportedProp,useControlled:l.useControlled,useEventCallback:y.useEventCallback,useForkRef:p.useForkRef,useIsFocusVisible:S.useIsFocusVisible},Symbol.toStringTag,{value:"Module"})),F=s.getAugmentedNamespace(T);var _;function $(){return _||(_=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=F}(f)),f}exports.interopRequireDefaultExports=P;exports.requireCreateSvgIcon=$;
@@ -1,11 +1,11 @@
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";
1
+ import { a as b, g as I, s as w, c as g, b as C, e as T, _ as S, f as N, P as o, h as R } from "./useThemeProps-Dg9Uoq7q.js";
2
2
  import * as v from "react";
3
3
  import { jsxs as O, jsx as _ } from "react/jsx-runtime";
4
- function j(e) {
5
- return I("MuiSvgIcon", e);
4
+ function B(e) {
5
+ return b("MuiSvgIcon", e);
6
6
  }
7
- b("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
8
- const B = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], A = (e) => {
7
+ I("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
8
+ const j = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], A = (e) => {
9
9
  const {
10
10
  color: n,
11
11
  fontSize: t,
@@ -13,7 +13,7 @@ const B = ["children", "className", "color", "component", "fontSize", "htmlColor
13
13
  } = e, i = {
14
14
  root: ["root", n !== "inherit" && `color${g(n)}`, `fontSize${g(t)}`]
15
15
  };
16
- return R(i, j, r);
16
+ return R(i, B, r);
17
17
  }, E = w("svg", {
18
18
  name: "MuiSvgIcon",
19
19
  slot: "Root",
@@ -67,7 +67,7 @@ const B = ["children", "className", "color", "component", "fontSize", "htmlColor
67
67
  inheritViewBox: m = !1,
68
68
  titleAccess: s,
69
69
  viewBox: a = "0 0 24 24"
70
- } = r, p = T(r, B), l = /* @__PURE__ */ v.isValidElement(i) && i.type === "svg", x = S({}, r, {
70
+ } = r, p = T(r, j), l = /* @__PURE__ */ v.isValidElement(i) && i.type === "svg", x = S({}, r, {
71
71
  color: f,
72
72
  component: c,
73
73
  fontSize: h,
@@ -0,0 +1,84 @@
1
+ import { _ as h, C as g, c as E, p as y } from "./useThemeProps-Dg9Uoq7q.js";
2
+ import { c as b } from "./createSvgIcon-KaSN8JhZ.js";
3
+ import { c as C, i as N, u as S } from "./useControlled-BsLcOmhe.js";
4
+ import { d as I, o as $, a as x } from "./ownerWindow-C7EH1lr6.js";
5
+ import { s as T, u as q, a as P } from "./useForkRef-DwN_Iz9R.js";
6
+ import { u as w } from "./useId-BW-oWmul.js";
7
+ import { u as D } from "./unsupportedProp-BuVD30Gh.js";
8
+ import { a as O } from "./useTimeout-KN97abZR.js";
9
+ import { u as R } from "./useIsFocusVisible-D8ksiuhS.js";
10
+ function M(e, t) {
11
+ return process.env.NODE_ENV === "production" ? () => null : (r, s, u, o, n) => {
12
+ const a = u || "<<anonymous>>", i = n || s;
13
+ return typeof r[s] < "u" ? new Error(`The ${o} \`${i}\` of \`${a}\` is deprecated. ${t}`) : null;
14
+ };
15
+ }
16
+ function F(e, t) {
17
+ if (process.env.NODE_ENV === "production")
18
+ return () => null;
19
+ const r = t ? h({}, t.propTypes) : null;
20
+ return (u) => (o, n, a, i, l, ...v) => {
21
+ const f = l || n, p = r == null ? void 0 : r[f];
22
+ if (p) {
23
+ const d = p(o, n, a, i, l, ...v);
24
+ if (d)
25
+ return d;
26
+ }
27
+ return typeof o[n] < "u" && !o[u] ? new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${u}\` prop.`) : null;
28
+ };
29
+ }
30
+ var _ = { exports: {} };
31
+ (function(e) {
32
+ function t(r) {
33
+ return r && r.__esModule ? r : {
34
+ default: r
35
+ };
36
+ }
37
+ e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
38
+ })(_);
39
+ var K = _.exports, c = {};
40
+ const k = {
41
+ configure: (e) => {
42
+ process.env.NODE_ENV !== "production" && console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.", "", "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", "", "The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401", "", "The updated documentation: https://mui.com/guides/classname-generator/"].join(`
43
+ `)), g.configure(e);
44
+ }
45
+ }, G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
46
+ __proto__: null,
47
+ capitalize: E,
48
+ createChainedFunction: C,
49
+ createSvgIcon: b,
50
+ debounce: I,
51
+ deprecatedPropType: M,
52
+ isMuiElement: N,
53
+ ownerDocument: $,
54
+ ownerWindow: x,
55
+ requirePropFactory: F,
56
+ setRef: T,
57
+ unstable_ClassNameGenerator: k,
58
+ unstable_useEnhancedEffect: q,
59
+ unstable_useId: w,
60
+ unsupportedProp: D,
61
+ useControlled: S,
62
+ useEventCallback: O,
63
+ useForkRef: P,
64
+ useIsFocusVisible: R
65
+ }, Symbol.toStringTag, { value: "Module" })), V = /* @__PURE__ */ y(G);
66
+ var m;
67
+ function L() {
68
+ return m || (m = 1, function(e) {
69
+ "use client";
70
+ Object.defineProperty(e, "__esModule", {
71
+ value: !0
72
+ }), Object.defineProperty(e, "default", {
73
+ enumerable: !0,
74
+ get: function() {
75
+ return t.createSvgIcon;
76
+ }
77
+ });
78
+ var t = V;
79
+ }(c)), c;
80
+ }
81
+ export {
82
+ K as i,
83
+ L as r
84
+ };
package/dist/index.cjs.js CHANGED
@@ -1 +1 @@
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;
1
+ var _=require("./assets/index.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components/Dropzone/Dropzone.cjs.js"),e=require("./components/buttons/DefaultButton/DefaultButton.cjs.js"),n=require("./components/buttons/PrimaryButton/PrimaryButton.cjs.js"),o=require("./components/buttons/SecondaryButton/SecondaryButton.cjs.js"),r=require("./components/inputs/SearchInput/SearchInput.cjs.js"),u=require("./components/inputs/TextInput/TextInput.cjs.js"),s=require("./components/lists/FileList/FileList.cjs.js"),i=require("./components/lists/FileList/FileListItem.cjs.js"),c=require("./Tab-Bhm9hCrX.cjs");exports.Dropzone=t;exports.DefaultButton=e;exports.PrimaryButton=n;exports.SecondaryButton=o;exports.SearchInput=r;exports.TextInput=u;exports.FileList=s;exports.FileListItem=i;exports.Tab=c.Tab;
package/dist/index.es.js CHANGED
@@ -1,25 +1,21 @@
1
1
  import "./assets/index.css";
2
- import { default as r } from "./components/AnotherComponent/AnotherComponent.es.js";
3
- import { default as f } from "./components/BasicButtons/BasicButtons.es.js";
4
- import { default as p } from "./components/Dropzone/Dropzone.es.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";
2
+ import { default as r } from "./components/Dropzone/Dropzone.es.js";
3
+ import { default as f } from "./components/buttons/DefaultButton/DefaultButton.es.js";
4
+ import { default as p } from "./components/buttons/PrimaryButton/PrimaryButton.es.js";
5
+ import { default as l } from "./components/buttons/SecondaryButton/SecondaryButton.es.js";
6
+ import { default as x } from "./components/inputs/SearchInput/SearchInput.es.js";
7
+ import { default as n } from "./components/inputs/TextInput/TextInput.es.js";
8
+ import { default as B } from "./components/lists/FileList/FileList.es.js";
9
+ import { default as T } from "./components/lists/FileList/FileListItem.es.js";
10
+ import { T as y } from "./Tab-C4l6V01S.js";
13
11
  export {
14
- r as AnotherComponent,
15
- f as BasicButtons,
16
- s as DefaultButton,
17
- p as Dropzone,
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
12
+ f as DefaultButton,
13
+ r as Dropzone,
14
+ B as FileList,
15
+ T as FileListItem,
16
+ p as PrimaryButton,
17
+ x as SearchInput,
18
+ l as SecondaryButton,
19
+ y as Tab,
20
+ n as TextInput
25
21
  };
@@ -0,0 +1 @@
1
+ "use strict";function n(t){return typeof t=="string"}exports.isHostComponent=n;
@@ -0,0 +1,6 @@
1
+ function n(t) {
2
+ return typeof t == "string";
3
+ }
4
+ export {
5
+ n as i
6
+ };
@@ -17,7 +17,7 @@ function a(e) {
17
17
  return r(e).defaultView || window;
18
18
  }
19
19
  export {
20
- r as a,
20
+ a,
21
21
  i as d,
22
- a as o
22
+ r as o
23
23
  };
@@ -1 +1 @@
1
- "use strict";const o=require("./useThemeProps-C6ClLEqN.cjs");function c(n,e){return process.env.NODE_ENV==="production"?()=>null:function(...t){return n(...t)||e(...t)}}function f(n){const{prototype:e={}}=n;return!!e.isReactComponent}function l(n,e,i,t,u){const p=n[e],s=u||e;if(p==null||typeof window>"u")return null;let r;return typeof p=="function"&&!f(p)&&(r="Did you accidentally provide a plain function component instead?"),r!==void 0?new Error(`Invalid ${t} \`${s}\` supplied to \`${i}\`. Expected an element type that can hold a ref. ${r} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const a=c(o.PropTypes.elementType,l),y=o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object]),d=y;exports.chainPropTypes=c;exports.elementTypeAcceptingRef=a;exports.refType=d;
1
+ "use strict";const o=require("./useThemeProps-jkB5q9ie.cjs");function c(n,e){return process.env.NODE_ENV==="production"?()=>null:function(...t){return n(...t)||e(...t)}}function f(n){const{prototype:e={}}=n;return!!e.isReactComponent}function l(n,e,i,t,u){const p=n[e],s=u||e;if(p==null||typeof window>"u")return null;let r;return typeof p=="function"&&!f(p)&&(r="Did you accidentally provide a plain function component instead?"),r!==void 0?new Error(`Invalid ${t} \`${s}\` supplied to \`${i}\`. Expected an element type that can hold a ref. ${r} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const a=c(o.PropTypes.elementType,l),y=o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object]),d=y;exports.chainPropTypes=c;exports.elementTypeAcceptingRef=a;exports.refType=d;
@@ -1,4 +1,4 @@
1
- import { P as o } from "./useThemeProps-kb_vU-1P.js";
1
+ import { P as o } from "./useThemeProps-Dg9Uoq7q.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);
@@ -0,0 +1 @@
1
+ "use strict";function t(n,e,u,p,o){if(process.env.NODE_ENV==="production")return null;const r=o||e;return typeof n[e]<"u"?new Error(`The prop \`${r}\` is not supported. Please remove it.`):null}exports.unsupportedProp=t;
@@ -0,0 +1,9 @@
1
+ function p(n, e, t, u, o) {
2
+ if (process.env.NODE_ENV === "production")
3
+ return null;
4
+ const r = o || e;
5
+ return typeof n[e] < "u" ? new Error(`The prop \`${r}\` is not supported. Please remove it.`) : null;
6
+ }
7
+ export {
8
+ p as u
9
+ };
@@ -0,0 +1,70 @@
1
+ import { _ as l, f as S, e as g } from "./useThemeProps-Dg9Uoq7q.js";
2
+ import { i as h } from "./isHostComponent-kiaBvYVo.js";
3
+ import { a as x } from "./useForkRef-DwN_Iz9R.js";
4
+ function N(n, s, e) {
5
+ return n === void 0 || h(n) ? s : l({}, s, {
6
+ ownerState: l({}, s.ownerState, e)
7
+ });
8
+ }
9
+ function k(n, s = []) {
10
+ if (n === void 0)
11
+ return {};
12
+ const e = {};
13
+ return Object.keys(n).filter((t) => t.match(/^on[A-Z]/) && typeof n[t] == "function" && !s.includes(t)).forEach((t) => {
14
+ e[t] = n[t];
15
+ }), e;
16
+ }
17
+ function w(n, s, e) {
18
+ return typeof n == "function" ? n(s, e) : n;
19
+ }
20
+ function P(n) {
21
+ if (n === void 0)
22
+ return {};
23
+ const s = {};
24
+ return Object.keys(n).filter((e) => !(e.match(/^on[A-Z]/) && typeof n[e] == "function")).forEach((e) => {
25
+ s[e] = n[e];
26
+ }), s;
27
+ }
28
+ function E(n) {
29
+ const {
30
+ getSlotProps: s,
31
+ additionalProps: e,
32
+ externalSlotProps: t,
33
+ externalForwardedProps: o,
34
+ className: a
35
+ } = n;
36
+ if (!s) {
37
+ const m = S(e == null ? void 0 : e.className, a, o == null ? void 0 : o.className, t == null ? void 0 : t.className), y = l({}, e == null ? void 0 : e.style, o == null ? void 0 : o.style, t == null ? void 0 : t.style), v = l({}, e, o, t);
38
+ return m.length > 0 && (v.className = m), Object.keys(y).length > 0 && (v.style = y), {
39
+ props: v,
40
+ internalRef: void 0
41
+ };
42
+ }
43
+ const d = k(l({}, o, t)), i = P(t), c = P(o), r = s(d), u = S(r == null ? void 0 : r.className, e == null ? void 0 : e.className, a, o == null ? void 0 : o.className, t == null ? void 0 : t.className), f = l({}, r == null ? void 0 : r.style, e == null ? void 0 : e.style, o == null ? void 0 : o.style, t == null ? void 0 : t.style), p = l({}, r, e, c, i);
44
+ return u.length > 0 && (p.className = u), Object.keys(f).length > 0 && (p.style = f), {
45
+ props: p,
46
+ internalRef: r.ref
47
+ };
48
+ }
49
+ const H = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
50
+ function _(n) {
51
+ var s;
52
+ const {
53
+ elementType: e,
54
+ externalSlotProps: t,
55
+ ownerState: o,
56
+ skipResolvingSlotProps: a = !1
57
+ } = n, d = g(n, H), i = a ? {} : w(t, o), {
58
+ props: c,
59
+ internalRef: r
60
+ } = E(l({}, d, {
61
+ externalSlotProps: i
62
+ })), u = x(r, i == null ? void 0 : i.ref, (s = n.additionalProps) == null ? void 0 : s.ref);
63
+ return N(e, l({}, c, {
64
+ ref: u
65
+ }), o);
66
+ }
67
+ export {
68
+ k as e,
69
+ _ as u
70
+ };
@@ -0,0 +1 @@
1
+ "use strict";const l=require("./useThemeProps-jkB5q9ie.cjs"),P=require("./isHostComponent-PydJW4A4.cjs"),_=require("./useForkRef-CGd3Nhyb.cjs");function g(n,s,e){return n===void 0||P.isHostComponent(n)?s:l._extends({},s,{ownerState:l._extends({},s.ownerState,e)})}function S(n,s=[]){if(n===void 0)return{};const e={};return Object.keys(n).filter(t=>t.match(/^on[A-Z]/)&&typeof n[t]=="function"&&!s.includes(t)).forEach(t=>{e[t]=n[t]}),e}function h(n,s,e){return typeof n=="function"?n(s,e):n}function y(n){if(n===void 0)return{};const s={};return Object.keys(n).filter(e=>!(e.match(/^on[A-Z]/)&&typeof n[e]=="function")).forEach(e=>{s[e]=n[e]}),s}function N(n){const{getSlotProps:s,additionalProps:e,externalSlotProps:t,externalForwardedProps:o,className:d}=n;if(!s){const m=l.clsx(e==null?void 0:e.className,d,o==null?void 0:o.className,t==null?void 0:t.className),x=l._extends({},e==null?void 0:e.style,o==null?void 0:o.style,t==null?void 0:t.style),v=l._extends({},e,o,t);return m.length>0&&(v.className=m),Object.keys(x).length>0&&(v.style=x),{props:v,internalRef:void 0}}const u=S(l._extends({},o,t)),i=y(t),c=y(o),r=s(u),a=l.clsx(r==null?void 0:r.className,e==null?void 0:e.className,d,o==null?void 0:o.className,t==null?void 0:t.className),f=l._extends({},r==null?void 0:r.style,e==null?void 0:e.style,o==null?void 0:o.style,t==null?void 0:t.style),p=l._extends({},r,e,c,i);return a.length>0&&(p.className=a),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:r.ref}}const k=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function H(n){var s;const{elementType:e,externalSlotProps:t,ownerState:o,skipResolvingSlotProps:d=!1}=n,u=l._objectWithoutPropertiesLoose(n,k),i=d?{}:h(t,o),{props:c,internalRef:r}=N(l._extends({},u,{externalSlotProps:i})),a=_.useForkRef(r,i==null?void 0:i.ref,(s=n.additionalProps)==null?void 0:s.ref);return g(e,l._extends({},c,{ref:a}),o)}exports.extractEventHandlers=S;exports.useSlotProps=H;
@@ -1 +1 @@
1
- "use strict";const c=require("react"),n=require("./useThemeProps-C6ClLEqN.cjs");function o(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const u=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,u.get?u:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const s=o(c);function a(){const e=n.useTheme(n.defaultTheme);return process.env.NODE_ENV!=="production"&&s.useDebugValue(e),e[n.THEME_ID]||e}exports.useTheme=a;
1
+ "use strict";const c=require("react"),n=require("./useThemeProps-jkB5q9ie.cjs");function o(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const u=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,u.get?u:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const s=o(c);function a(){const e=n.useTheme(n.defaultTheme);return process.env.NODE_ENV!=="production"&&s.useDebugValue(e),e[n.THEME_ID]||e}exports.useTheme=a;
@@ -1,5 +1,5 @@
1
1
  import * as s from "react";
2
- import { u, T as o, b as t } from "./useThemeProps-kb_vU-1P.js";
2
+ import { u, T as o, d as t } from "./useThemeProps-Dg9Uoq7q.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;