@cgi-learning-hub/ui 0.0.1-dev.1708990372 → 0.0.1-dev.1709023966

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 (134) hide show
  1. package/dist/Box-7uR7JZiM.cjs +1 -0
  2. package/dist/Box-CPGTKTgx.js +56 -0
  3. package/dist/ButtonBase-B0tkJ9zf.js +831 -0
  4. package/dist/ButtonBase-DCL6Xlnm.cjs +75 -0
  5. package/dist/CircularProgress-CZX5SfKt.cjs +28 -0
  6. package/dist/CircularProgress-CguDBnxV.js +215 -0
  7. package/dist/IconButton-CJ1Nt-jf.js +182 -0
  8. package/dist/IconButton-De7ZdW2q.cjs +2 -0
  9. package/dist/{InputBase-B13Nzzhk.js → InputBase-C_yPRkam.js} +193 -215
  10. package/dist/InputBase-Dvr5GnwD.cjs +4 -0
  11. package/dist/Tab-Bhm9hCrX.cjs +1 -0
  12. package/dist/Tab-C4l6V01S.js +237 -0
  13. package/dist/TransitionGroupContext-C7wWJ6l7.js +14 -0
  14. package/dist/TransitionGroupContext-g4tmk10h.cjs +1 -0
  15. package/dist/Typography-CyFLZjnE.js +202 -0
  16. package/dist/Typography-DwsN2Ttm.cjs +1 -0
  17. package/dist/assets/index.css +1 -1
  18. package/dist/components/Dropzone/Dropzone.cjs.js +5 -0
  19. package/dist/components/Dropzone/Dropzone.d.ts +9 -0
  20. package/dist/components/Dropzone/Dropzone.es.js +1210 -0
  21. package/dist/components/Dropzone/Dropzone.stories.cjs.js +1 -0
  22. package/dist/components/{AnotherComponent/AnotherComponent.stories.d.ts → Dropzone/Dropzone.stories.d.ts} +1 -2
  23. package/dist/components/Dropzone/Dropzone.stories.es.js +17 -0
  24. package/dist/components/Dropzone/index.cjs.js +1 -0
  25. package/dist/components/Dropzone/index.d.ts +2 -0
  26. package/dist/components/Dropzone/index.es.js +4 -0
  27. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -28
  28. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +408 -267
  29. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  30. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +5 -5
  31. package/dist/components/buttons/IconButton.stories.cjs.js +1 -0
  32. package/dist/components/buttons/IconButton.stories.d.ts +4 -0
  33. package/dist/components/buttons/IconButton.stories.es.js +27 -0
  34. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
  35. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
  36. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  37. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.d.ts +1 -1
  38. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +8 -7
  39. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
  40. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
  41. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  42. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.d.ts +1 -1
  43. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +10 -9
  44. package/dist/components/index.cjs.js +1 -1
  45. package/dist/components/index.d.ts +4 -2
  46. package/dist/components/index.es.js +18 -14
  47. package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
  48. package/dist/components/inputs/SearchInput/SearchInput.es.js +77 -247
  49. package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -0
  50. package/dist/components/inputs/SearchInput/SearchInput.stories.d.ts +4 -0
  51. package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +16 -0
  52. package/dist/components/inputs/TextInput/TextInput.cjs.js +11 -13
  53. package/dist/components/inputs/TextInput/TextInput.es.js +1844 -1631
  54. package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -0
  55. package/dist/components/inputs/TextInput/TextInput.stories.d.ts +4 -0
  56. package/dist/components/inputs/TextInput/TextInput.stories.es.js +17 -0
  57. package/dist/components/lists/FileList/FileList.cjs.js +1 -0
  58. package/dist/components/lists/FileList/FileList.d.ts +7 -0
  59. package/dist/components/lists/FileList/FileList.es.js +19 -0
  60. package/dist/components/lists/FileList/FileList.stories.cjs.js +1 -0
  61. package/dist/components/lists/FileList/FileList.stories.d.ts +4 -0
  62. package/dist/components/lists/FileList/FileList.stories.es.js +28 -0
  63. package/dist/components/lists/FileList/FileListItem.cjs.js +1 -0
  64. package/dist/components/lists/FileList/FileListItem.d.ts +13 -0
  65. package/dist/components/lists/FileList/FileListItem.es.js +41 -0
  66. package/dist/components/lists/FileList/index.cjs.js +1 -0
  67. package/dist/components/lists/FileList/index.d.ts +4 -0
  68. package/dist/components/lists/FileList/index.es.js +6 -0
  69. package/dist/components/lists/TabList.stories.cjs.js +4 -0
  70. package/dist/components/lists/TabList.stories.d.ts +4 -0
  71. package/dist/components/lists/TabList.stories.es.js +1027 -0
  72. package/dist/components/lists/index.cjs.js +1 -0
  73. package/dist/components/lists/index.d.ts +1 -0
  74. package/dist/components/lists/index.es.js +6 -0
  75. package/dist/{createSvgIcon-jvI3LIfI.cjs → createSvgIcon-B6bZPuto.cjs} +1 -1
  76. package/dist/createSvgIcon-BX8WQ5r-.cjs +2 -0
  77. package/dist/{createSvgIcon-qXNZi4k1.js → createSvgIcon-KaSN8JhZ.js} +8 -8
  78. package/dist/createSvgIcon-m_wsenOJ.js +84 -0
  79. package/dist/index.cjs.js +1 -1
  80. package/dist/index.es.js +16 -12
  81. package/dist/isHostComponent-PydJW4A4.cjs +1 -0
  82. package/dist/isHostComponent-kiaBvYVo.js +6 -0
  83. package/dist/ownerWindow-C7EH1lr6.js +23 -0
  84. package/dist/ownerWindow-Dk_4aaak.cjs +1 -0
  85. package/dist/refType-CHSN6ysS.cjs +1 -0
  86. package/dist/refType-Hh9tfnoF.js +29 -0
  87. package/dist/unsupportedProp-Bn6XWqwH.cjs +1 -0
  88. package/dist/unsupportedProp-BuVD30Gh.js +9 -0
  89. package/dist/useControlled-BsLcOmhe.js +48 -0
  90. package/dist/useControlled-jN3fqFfv.cjs +3 -0
  91. package/dist/useForkRef-CGd3Nhyb.cjs +1 -0
  92. package/dist/useForkRef-DwN_Iz9R.js +17 -0
  93. package/dist/useIsFocusVisible-BF0lT08B.cjs +1 -0
  94. package/dist/useIsFocusVisible-D8ksiuhS.js +69 -0
  95. package/dist/useSlotProps-MoAYME1z.js +70 -0
  96. package/dist/useSlotProps-R4s13HHI.cjs +1 -0
  97. package/dist/useTheme-BDPYLOoP.cjs +1 -0
  98. package/dist/useTheme-DJEDOopE.js +9 -0
  99. package/dist/{useThemeProps-B6yTTpAe.js → useThemeProps-Dg9Uoq7q.js} +1018 -1024
  100. package/dist/useThemeProps-jkB5q9ie.cjs +65 -0
  101. package/dist/useTimeout-KN97abZR.js +47 -0
  102. package/dist/useTimeout-qjxkiZZn.cjs +1 -0
  103. package/package.json +2 -1
  104. package/dist/Button-Tkz5NkF_.cjs +0 -1
  105. package/dist/Button-X7eWZQfX.js +0 -356
  106. package/dist/ButtonBase-CKfcGhaU.js +0 -892
  107. package/dist/ButtonBase-Cg8cBMzO.cjs +0 -75
  108. package/dist/Input-CAb0EFzc.cjs +0 -1
  109. package/dist/Input-CbYjsRHK.js +0 -322
  110. package/dist/InputBase-CKlCw9fj.cjs +0 -4
  111. package/dist/components/AnotherComponent/AnotherComponent.cjs.js +0 -1
  112. package/dist/components/AnotherComponent/AnotherComponent.d.ts +0 -2
  113. package/dist/components/AnotherComponent/AnotherComponent.es.js +0 -15
  114. package/dist/components/AnotherComponent/AnotherComponent.stories.cjs.js +0 -1
  115. package/dist/components/AnotherComponent/AnotherComponent.stories.es.js +0 -22
  116. package/dist/components/AnotherComponent/index.cjs.js +0 -1
  117. package/dist/components/AnotherComponent/index.d.ts +0 -2
  118. package/dist/components/AnotherComponent/index.es.js +0 -4
  119. package/dist/components/BasicButtons/BasicButtons.cjs.js +0 -1
  120. package/dist/components/BasicButtons/BasicButtons.d.ts +0 -2
  121. package/dist/components/BasicButtons/BasicButtons.es.js +0 -189
  122. package/dist/components/BasicButtons/BasicButtons.stories.cjs.js +0 -1
  123. package/dist/components/BasicButtons/BasicButtons.stories.d.ts +0 -5
  124. package/dist/components/BasicButtons/BasicButtons.stories.es.js +0 -22
  125. package/dist/components/BasicButtons/index.cjs.js +0 -1
  126. package/dist/components/BasicButtons/index.d.ts +0 -2
  127. package/dist/components/BasicButtons/index.es.js +0 -4
  128. package/dist/extendSxProp-BRHiEwyk.js +0 -29
  129. package/dist/extendSxProp-CvhhU9Vb.cjs +0 -1
  130. package/dist/useForkRef-82uiK71d.cjs +0 -1
  131. package/dist/useForkRef-CLcOhrzI.js +0 -44
  132. package/dist/useTheme-BWRyHzdn.js +0 -65
  133. package/dist/useTheme-BpLcDNG1.cjs +0 -1
  134. package/dist/useThemeProps-CDriK9TK.cjs +0 -65
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./FileList/FileList.cjs.js"),t=require("./FileList/FileListItem.cjs.js");exports.FileList=e;exports.FileListItem=t;
@@ -0,0 +1 @@
1
+ export * from "./FileList";
@@ -0,0 +1,6 @@
1
+ import { default as a } from "./FileList/FileList.es.js";
2
+ import { default as i } from "./FileList/FileListItem.es.js";
3
+ export {
4
+ a as FileList,
5
+ i as FileListItem
6
+ };
@@ -1 +1 @@
1
- "use strict";const e=require("./useThemeProps-CDriK9TK.cjs"),x=require("react"),v=require("react/jsx-runtime");function _(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const n in o)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>o[n]})}}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:n,classes:i}=o,r={root:["root",t!=="inherit"&&`color${e.capitalize(t)}`,`fontSize${e.capitalize(n)}`]};return e.composeClasses(r,$,i)},I=e.styled("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:n}=o;return[t.root,n.color!=="inherit"&&t[`color${e.capitalize(n.color)}`],t[`fontSize${e.capitalize(n.fontSize)}`]]}})(({theme:o,ownerState:t})=>{var n,i,r,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:(n=o.transitions)==null||(i=n.create)==null?void 0:i.call(n,"fill",{duration:(r=o.transitions)==null||(r=r.duration)==null?void 0:r.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,n){const i=e.useThemeProps({props:t,name:"MuiSvgIcon"}),{children:r,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(r)&&r.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:n},S,p,s&&r.props,{ownerState:T,children:[s?r.props.children:r,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 n(i,r){return v.jsx(h,e._extends({"data-testid":`${t}Icon`,ref:r},i,{children:o}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=h.muiName,g.memo(g.forwardRef(n))}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,4 +1,4 @@
1
- import { b, g as I, s as w, f as g, u as C, _ as T, a as S, h as N, P as o, e as R } from "./useThemeProps-B6yTTpAe.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
4
  function B(e) {
@@ -27,7 +27,7 @@ const j = ["children", "className", "color", "component", "fontSize", "htmlColor
27
27
  theme: e,
28
28
  ownerState: n
29
29
  }) => {
30
- var t, r, i, u, f, c, h, d, m, s, a, p, l;
30
+ var t, r, i, d, f, c, h, u, m, s, a, p, l;
31
31
  return {
32
32
  userSelect: "none",
33
33
  width: "1em",
@@ -42,9 +42,9 @@ const j = ["children", "className", "color", "component", "fontSize", "htmlColor
42
42
  }),
43
43
  fontSize: {
44
44
  inherit: "inherit",
45
- small: ((u = e.typography) == null || (f = u.pxToRem) == null ? void 0 : f.call(u, 20)) || "1.25rem",
45
+ small: ((d = e.typography) == null || (f = d.pxToRem) == null ? void 0 : f.call(d, 20)) || "1.25rem",
46
46
  medium: ((c = e.typography) == null || (h = c.pxToRem) == null ? void 0 : h.call(c, 24)) || "1.5rem",
47
- large: ((d = e.typography) == null || (m = d.pxToRem) == null ? void 0 : m.call(d, 35)) || "2.1875rem"
47
+ large: ((u = e.typography) == null || (m = u.pxToRem) == null ? void 0 : m.call(u, 35)) || "2.1875rem"
48
48
  }[n.fontSize],
49
49
  // TODO v5 deprecate, v6 remove for sx
50
50
  color: (s = (a = (e.vars || e).palette) == null || (a = a[n.color]) == null ? void 0 : a.main) != null ? s : {
@@ -59,11 +59,11 @@ const j = ["children", "className", "color", "component", "fontSize", "htmlColor
59
59
  name: "MuiSvgIcon"
60
60
  }), {
61
61
  children: i,
62
- className: u,
62
+ className: d,
63
63
  color: f = "inherit",
64
64
  component: c = "svg",
65
65
  fontSize: h = "medium",
66
- htmlColor: d,
66
+ htmlColor: u,
67
67
  inheritViewBox: m = !1,
68
68
  titleAccess: s,
69
69
  viewBox: a = "0 0 24 24"
@@ -80,9 +80,9 @@ const j = ["children", "className", "color", "component", "fontSize", "htmlColor
80
80
  const z = A(x);
81
81
  return /* @__PURE__ */ O(E, S({
82
82
  as: c,
83
- className: N(z.root, u),
83
+ className: N(z.root, d),
84
84
  focusable: "false",
85
- color: d,
85
+ color: u,
86
86
  "aria-hidden": s ? void 0 : !0,
87
87
  role: s ? "img" : void 0,
88
88
  ref: t
@@ -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 c=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/buttons/DefaultButton/DefaultButton.cjs.js"),e=require("./components/buttons/PrimaryButton/PrimaryButton.cjs.js"),u=require("./components/buttons/SecondaryButton/SecondaryButton.cjs.js"),r=require("./components/inputs/SearchInput/SearchInput.cjs.js"),s=require("./components/inputs/TextInput/TextInput.cjs.js");exports.AnotherComponent=t;exports.BasicButtons=n;exports.DefaultButton=o;exports.PrimaryButton=e;exports.SecondaryButton=u;exports.SearchInput=r;exports.TextInput=s;
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,17 +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/buttons/DefaultButton/DefaultButton.es.js";
5
- import { default as n } from "./components/buttons/PrimaryButton/PrimaryButton.es.js";
6
- import { default as d } from "./components/buttons/SecondaryButton/SecondaryButton.es.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";
7
6
  import { default as x } from "./components/inputs/SearchInput/SearchInput.es.js";
8
- import { default as c } from "./components/inputs/TextInput/TextInput.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";
9
11
  export {
10
- r as AnotherComponent,
11
- f as BasicButtons,
12
- p as DefaultButton,
13
- n as PrimaryButton,
12
+ f as DefaultButton,
13
+ r as Dropzone,
14
+ B as FileList,
15
+ T as FileListItem,
16
+ p as PrimaryButton,
14
17
  x as SearchInput,
15
- d as SecondaryButton,
16
- c as TextInput
18
+ l as SecondaryButton,
19
+ y as Tab,
20
+ n as TextInput
17
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
+ };
@@ -0,0 +1,23 @@
1
+ function i(e, t = 166) {
2
+ let o;
3
+ function n(...u) {
4
+ const c = () => {
5
+ e.apply(this, u);
6
+ };
7
+ clearTimeout(o), o = setTimeout(c, t);
8
+ }
9
+ return n.clear = () => {
10
+ clearTimeout(o);
11
+ }, n;
12
+ }
13
+ function r(e) {
14
+ return e && e.ownerDocument || document;
15
+ }
16
+ function a(e) {
17
+ return r(e).defaultView || window;
18
+ }
19
+ export {
20
+ a,
21
+ i as d,
22
+ r as o
23
+ };
@@ -0,0 +1 @@
1
+ "use strict";function i(e,o=166){let n;function t(...c){const r=()=>{e.apply(this,c)};clearTimeout(n),n=setTimeout(r,o)}return t.clear=()=>{clearTimeout(n)},t}function u(e){return e&&e.ownerDocument||document}function d(e){return u(e).defaultView||window}exports.debounce=i;exports.ownerDocument=u;exports.ownerWindow=d;
@@ -0,0 +1 @@
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;
@@ -0,0 +1,29 @@
1
+ import { P as o } from "./useThemeProps-Dg9Uoq7q.js";
2
+ function a(n, e) {
3
+ return process.env.NODE_ENV === "production" ? () => null : function(...t) {
4
+ return n(...t) || e(...t);
5
+ };
6
+ }
7
+ function f(n) {
8
+ const {
9
+ prototype: e = {}
10
+ } = n;
11
+ return !!e.isReactComponent;
12
+ }
13
+ function l(n, e, p, t, c) {
14
+ const r = n[e], u = c || e;
15
+ if (r == null || // When server-side rendering React doesn't warn either.
16
+ // This is not an accurate check for SSR.
17
+ // This is only in place for emotion compat.
18
+ // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
19
+ typeof window > "u")
20
+ return null;
21
+ let i;
22
+ return typeof r == "function" && !f(r) && (i = "Did you accidentally provide a plain function component instead?"), i !== void 0 ? new Error(`Invalid ${t} \`${u}\` supplied to \`${p}\`. Expected an element type that can hold a ref. ${i} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
23
+ }
24
+ const y = a(o.elementType, l), s = o.oneOfType([o.func, o.object]), m = s;
25
+ export {
26
+ a as c,
27
+ y as e,
28
+ m as r
29
+ };
@@ -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,48 @@
1
+ import * as u from "react";
2
+ function d(...t) {
3
+ return t.reduce((o, e) => e == null ? o : function(...i) {
4
+ o.apply(this, i), e.apply(this, i);
5
+ }, () => {
6
+ });
7
+ }
8
+ function f(t, o) {
9
+ var e, n;
10
+ return /* @__PURE__ */ u.isValidElement(t) && o.indexOf(
11
+ // For server components `muiName` is avaialble in element.type._payload.value.muiName
12
+ // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
13
+ // eslint-disable-next-line no-underscore-dangle
14
+ (e = t.type.muiName) != null ? e : (n = t.type) == null || (n = n._payload) == null || (n = n.value) == null ? void 0 : n.muiName
15
+ ) !== -1;
16
+ }
17
+ function h({
18
+ controlled: t,
19
+ default: o,
20
+ name: e,
21
+ state: n = "value"
22
+ }) {
23
+ const {
24
+ current: i
25
+ } = u.useRef(t !== void 0), [r, s] = u.useState(o), c = i ? t : r;
26
+ if (process.env.NODE_ENV !== "production") {
27
+ u.useEffect(() => {
28
+ i !== (t !== void 0) && console.error([`MUI: A component is changing the ${i ? "" : "un"}controlled ${n} state of ${e} to be ${i ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${e} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
29
+ `));
30
+ }, [n, e, t]);
31
+ const {
32
+ current: l
33
+ } = u.useRef(o);
34
+ u.useEffect(() => {
35
+ !i && l !== o && console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${e} after being initialized. To suppress this warning opt to use a controlled ${e}.`].join(`
36
+ `));
37
+ }, [JSON.stringify(o)]);
38
+ }
39
+ const a = u.useCallback((l) => {
40
+ i || s(l);
41
+ }, []);
42
+ return [c, a];
43
+ }
44
+ export {
45
+ d as c,
46
+ f as i,
47
+ h as u
48
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";const f=require("react");function d(e){const o=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(o,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const r=d(f);function p(...e){return e.reduce((o,t)=>t==null?o:function(...i){o.apply(this,i),t.apply(this,i)},()=>{})}function h(e,o){var t,n;return r.isValidElement(e)&&o.indexOf((t=e.type.muiName)!=null?t:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function m({controlled:e,default:o,name:t,state:n="value"}){const{current:i}=r.useRef(e!==void 0),[l,c]=r.useState(o),s=i?e:l;if(process.env.NODE_ENV!=="production"){r.useEffect(()=>{i!==(e!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${n} state of ${t} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${t} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
2
+ `))},[n,t,e]);const{current:u}=r.useRef(o);r.useEffect(()=>{!i&&u!==o&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${t} after being initialized. To suppress this warning opt to use a controlled ${t}.`].join(`
3
+ `))},[JSON.stringify(o)])}const a=r.useCallback(u=>{i||c(u)},[]);return[s,a]}exports.createChainedFunction=p;exports.isMuiElement=h;exports.useControlled=m;
@@ -0,0 +1 @@
1
+ "use strict";const o=require("react");function r(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=r(o);function f(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const s=typeof window<"u"?c.useLayoutEffect:c.useEffect;function i(...e){return c.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{f(n,t)})},e)}exports.setRef=f;exports.useEnhancedEffect=s;exports.useForkRef=i;
@@ -0,0 +1,17 @@
1
+ import * as t from "react";
2
+ function f(e, n) {
3
+ typeof e == "function" ? e(n) : e && (e.current = n);
4
+ }
5
+ const o = typeof window < "u" ? t.useLayoutEffect : t.useEffect;
6
+ function c(...e) {
7
+ return t.useMemo(() => e.every((n) => n == null) ? null : (n) => {
8
+ e.forEach((u) => {
9
+ f(u, n);
10
+ });
11
+ }, e);
12
+ }
13
+ export {
14
+ c as a,
15
+ f as s,
16
+ o as u
17
+ };
@@ -0,0 +1 @@
1
+ "use strict";const o=require("react"),c=require("./useTimeout-qjxkiZZn.cjs");function f(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=f(o);let i=!0,a=!1;const d=new c.Timeout,b={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function y(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&b[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function h(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function s(){i=!1}function m(){this.visibilityState==="hidden"&&a&&(i=!0)}function p(e){e.addEventListener("keydown",h,!0),e.addEventListener("mousedown",s,!0),e.addEventListener("pointerdown",s,!0),e.addEventListener("touchstart",s,!0),e.addEventListener("visibilitychange",m,!0)}function g(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return i||y(t)}function w(){const e=l.useCallback(u=>{u!=null&&p(u.ownerDocument)},[]),t=l.useRef(!1);function r(){return t.current?(a=!0,d.start(100,()=>{a=!1}),t.current=!1,!0):!1}function n(u){return g(u)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}exports.useIsFocusVisible=w;
@@ -0,0 +1,69 @@
1
+ import * as a from "react";
2
+ import { T as o } from "./useTimeout-KN97abZR.js";
3
+ let n = !0, s = !1;
4
+ const c = new o(), f = {
5
+ text: !0,
6
+ search: !0,
7
+ url: !0,
8
+ tel: !0,
9
+ email: !0,
10
+ password: !0,
11
+ number: !0,
12
+ date: !0,
13
+ month: !0,
14
+ week: !0,
15
+ time: !0,
16
+ datetime: !0,
17
+ "datetime-local": !0
18
+ };
19
+ function d(e) {
20
+ const {
21
+ type: t,
22
+ tagName: r
23
+ } = e;
24
+ return !!(r === "INPUT" && f[t] && !e.readOnly || r === "TEXTAREA" && !e.readOnly || e.isContentEditable);
25
+ }
26
+ function h(e) {
27
+ e.metaKey || e.altKey || e.ctrlKey || (n = !0);
28
+ }
29
+ function i() {
30
+ n = !1;
31
+ }
32
+ function y() {
33
+ this.visibilityState === "hidden" && s && (n = !0);
34
+ }
35
+ function m(e) {
36
+ e.addEventListener("keydown", h, !0), e.addEventListener("mousedown", i, !0), e.addEventListener("pointerdown", i, !0), e.addEventListener("touchstart", i, !0), e.addEventListener("visibilitychange", y, !0);
37
+ }
38
+ function b(e) {
39
+ const {
40
+ target: t
41
+ } = e;
42
+ try {
43
+ return t.matches(":focus-visible");
44
+ } catch {
45
+ }
46
+ return n || d(t);
47
+ }
48
+ function w() {
49
+ const e = a.useCallback((u) => {
50
+ u != null && m(u.ownerDocument);
51
+ }, []), t = a.useRef(!1);
52
+ function r() {
53
+ return t.current ? (s = !0, c.start(100, () => {
54
+ s = !1;
55
+ }), t.current = !1, !0) : !1;
56
+ }
57
+ function l(u) {
58
+ return b(u) ? (t.current = !0, !0) : !1;
59
+ }
60
+ return {
61
+ isFocusVisibleRef: t,
62
+ onFocus: l,
63
+ onBlur: r,
64
+ ref: e
65
+ };
66
+ }
67
+ export {
68
+ w as u
69
+ };
@@ -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;
@@ -0,0 +1 @@
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;
@@ -0,0 +1,9 @@
1
+ import * as s from "react";
2
+ import { u, T as o, d as t } from "./useThemeProps-Dg9Uoq7q.js";
3
+ function a() {
4
+ const e = u(t);
5
+ return process.env.NODE_ENV !== "production" && s.useDebugValue(e), e[o] || e;
6
+ }
7
+ export {
8
+ a as u
9
+ };