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

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/Button-Tkz5NkF_.cjs +1 -0
  2. package/dist/Button-X7eWZQfX.js +356 -0
  3. package/dist/ButtonBase-CKfcGhaU.js +892 -0
  4. package/dist/ButtonBase-Cg8cBMzO.cjs +75 -0
  5. package/dist/Input-CAb0EFzc.cjs +1 -0
  6. package/dist/Input-CbYjsRHK.js +322 -0
  7. package/dist/{InputBase-C_yPRkam.js → InputBase-B13Nzzhk.js} +215 -193
  8. package/dist/InputBase-CKlCw9fj.cjs +4 -0
  9. package/dist/assets/index.css +1 -1
  10. package/dist/components/AnotherComponent/AnotherComponent.cjs.js +1 -0
  11. package/dist/components/AnotherComponent/AnotherComponent.d.ts +2 -0
  12. package/dist/components/AnotherComponent/AnotherComponent.es.js +15 -0
  13. package/dist/components/AnotherComponent/AnotherComponent.stories.cjs.js +1 -0
  14. package/dist/components/{Dropzone/Dropzone.stories.d.ts → AnotherComponent/AnotherComponent.stories.d.ts} +2 -1
  15. package/dist/components/AnotherComponent/AnotherComponent.stories.es.js +22 -0
  16. package/dist/components/AnotherComponent/index.cjs.js +1 -0
  17. package/dist/components/AnotherComponent/index.d.ts +2 -0
  18. package/dist/components/AnotherComponent/index.es.js +4 -0
  19. package/dist/components/BasicButtons/BasicButtons.cjs.js +1 -0
  20. package/dist/components/BasicButtons/BasicButtons.d.ts +2 -0
  21. package/dist/components/BasicButtons/BasicButtons.es.js +189 -0
  22. package/dist/components/BasicButtons/BasicButtons.stories.cjs.js +1 -0
  23. package/dist/components/BasicButtons/BasicButtons.stories.d.ts +5 -0
  24. package/dist/components/BasicButtons/BasicButtons.stories.es.js +22 -0
  25. package/dist/components/BasicButtons/index.cjs.js +1 -0
  26. package/dist/components/BasicButtons/index.d.ts +2 -0
  27. package/dist/components/BasicButtons/index.es.js +4 -0
  28. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +28 -1
  29. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +267 -408
  30. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  31. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +5 -5
  32. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
  33. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
  34. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  35. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.d.ts +1 -1
  36. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +7 -8
  37. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
  38. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
  39. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  40. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.d.ts +1 -1
  41. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +9 -10
  42. package/dist/components/index.cjs.js +1 -1
  43. package/dist/components/index.d.ts +2 -4
  44. package/dist/components/index.es.js +14 -18
  45. package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
  46. package/dist/components/inputs/SearchInput/SearchInput.es.js +247 -77
  47. package/dist/components/inputs/TextInput/TextInput.cjs.js +13 -11
  48. package/dist/components/inputs/TextInput/TextInput.es.js +1631 -1844
  49. package/dist/{createSvgIcon-B6bZPuto.cjs → createSvgIcon-jvI3LIfI.cjs} +1 -1
  50. package/dist/{createSvgIcon-KaSN8JhZ.js → createSvgIcon-qXNZi4k1.js} +8 -8
  51. package/dist/extendSxProp-BRHiEwyk.js +29 -0
  52. package/dist/extendSxProp-CvhhU9Vb.cjs +1 -0
  53. package/dist/index.cjs.js +1 -1
  54. package/dist/index.es.js +12 -16
  55. package/dist/useForkRef-82uiK71d.cjs +1 -0
  56. package/dist/useForkRef-CLcOhrzI.js +44 -0
  57. package/dist/useTheme-BWRyHzdn.js +65 -0
  58. package/dist/useTheme-BpLcDNG1.cjs +1 -0
  59. package/dist/{useThemeProps-Dg9Uoq7q.js → useThemeProps-B6yTTpAe.js} +1024 -1018
  60. package/dist/useThemeProps-CDriK9TK.cjs +65 -0
  61. package/package.json +1 -2
  62. package/dist/Box-7uR7JZiM.cjs +0 -1
  63. package/dist/Box-CPGTKTgx.js +0 -56
  64. package/dist/ButtonBase-B0tkJ9zf.js +0 -831
  65. package/dist/ButtonBase-DCL6Xlnm.cjs +0 -75
  66. package/dist/CircularProgress-CZX5SfKt.cjs +0 -28
  67. package/dist/CircularProgress-CguDBnxV.js +0 -215
  68. package/dist/IconButton-CJ1Nt-jf.js +0 -182
  69. package/dist/IconButton-De7ZdW2q.cjs +0 -2
  70. package/dist/InputBase-Dvr5GnwD.cjs +0 -4
  71. package/dist/Tab-Bhm9hCrX.cjs +0 -1
  72. package/dist/Tab-C4l6V01S.js +0 -237
  73. package/dist/TransitionGroupContext-C7wWJ6l7.js +0 -14
  74. package/dist/TransitionGroupContext-g4tmk10h.cjs +0 -1
  75. package/dist/Typography-CyFLZjnE.js +0 -202
  76. package/dist/Typography-DwsN2Ttm.cjs +0 -1
  77. package/dist/components/Dropzone/Dropzone.cjs.js +0 -5
  78. package/dist/components/Dropzone/Dropzone.d.ts +0 -9
  79. package/dist/components/Dropzone/Dropzone.es.js +0 -1210
  80. package/dist/components/Dropzone/Dropzone.stories.cjs.js +0 -1
  81. package/dist/components/Dropzone/Dropzone.stories.es.js +0 -17
  82. package/dist/components/Dropzone/index.cjs.js +0 -1
  83. package/dist/components/Dropzone/index.d.ts +0 -2
  84. package/dist/components/Dropzone/index.es.js +0 -4
  85. package/dist/components/buttons/IconButton.stories.cjs.js +0 -1
  86. package/dist/components/buttons/IconButton.stories.d.ts +0 -4
  87. package/dist/components/buttons/IconButton.stories.es.js +0 -27
  88. package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +0 -1
  89. package/dist/components/inputs/SearchInput/SearchInput.stories.d.ts +0 -4
  90. package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +0 -16
  91. package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +0 -1
  92. package/dist/components/inputs/TextInput/TextInput.stories.d.ts +0 -4
  93. package/dist/components/inputs/TextInput/TextInput.stories.es.js +0 -17
  94. package/dist/components/lists/FileList/FileList.cjs.js +0 -1
  95. package/dist/components/lists/FileList/FileList.d.ts +0 -7
  96. package/dist/components/lists/FileList/FileList.es.js +0 -19
  97. package/dist/components/lists/FileList/FileList.stories.cjs.js +0 -1
  98. package/dist/components/lists/FileList/FileList.stories.d.ts +0 -4
  99. package/dist/components/lists/FileList/FileList.stories.es.js +0 -28
  100. package/dist/components/lists/FileList/FileListItem.cjs.js +0 -1
  101. package/dist/components/lists/FileList/FileListItem.d.ts +0 -13
  102. package/dist/components/lists/FileList/FileListItem.es.js +0 -41
  103. package/dist/components/lists/FileList/index.cjs.js +0 -1
  104. package/dist/components/lists/FileList/index.d.ts +0 -4
  105. package/dist/components/lists/FileList/index.es.js +0 -6
  106. package/dist/components/lists/TabList.stories.cjs.js +0 -4
  107. package/dist/components/lists/TabList.stories.d.ts +0 -4
  108. package/dist/components/lists/TabList.stories.es.js +0 -1027
  109. package/dist/components/lists/index.cjs.js +0 -1
  110. package/dist/components/lists/index.d.ts +0 -1
  111. package/dist/components/lists/index.es.js +0 -6
  112. package/dist/createSvgIcon-BX8WQ5r-.cjs +0 -2
  113. package/dist/createSvgIcon-m_wsenOJ.js +0 -84
  114. package/dist/isHostComponent-PydJW4A4.cjs +0 -1
  115. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  116. package/dist/ownerWindow-C7EH1lr6.js +0 -23
  117. package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
  118. package/dist/refType-CHSN6ysS.cjs +0 -1
  119. package/dist/refType-Hh9tfnoF.js +0 -29
  120. package/dist/unsupportedProp-Bn6XWqwH.cjs +0 -1
  121. package/dist/unsupportedProp-BuVD30Gh.js +0 -9
  122. package/dist/useControlled-BsLcOmhe.js +0 -48
  123. package/dist/useControlled-jN3fqFfv.cjs +0 -3
  124. package/dist/useForkRef-CGd3Nhyb.cjs +0 -1
  125. package/dist/useForkRef-DwN_Iz9R.js +0 -17
  126. package/dist/useIsFocusVisible-BF0lT08B.cjs +0 -1
  127. package/dist/useIsFocusVisible-D8ksiuhS.js +0 -69
  128. package/dist/useSlotProps-MoAYME1z.js +0 -70
  129. package/dist/useSlotProps-R4s13HHI.cjs +0 -1
  130. package/dist/useTheme-BDPYLOoP.cjs +0 -1
  131. package/dist/useTheme-DJEDOopE.js +0 -9
  132. package/dist/useThemeProps-jkB5q9ie.cjs +0 -65
  133. package/dist/useTimeout-KN97abZR.js +0 -47
  134. package/dist/useTimeout-qjxkiZZn.cjs +0 -1
@@ -1 +1 @@
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;
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,4 +1,4 @@
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";
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";
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, d, f, c, h, u, m, s, a, p, l;
30
+ var t, r, i, u, f, c, h, d, 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: ((d = e.typography) == null || (f = d.pxToRem) == null ? void 0 : f.call(d, 20)) || "1.25rem",
45
+ small: ((u = e.typography) == null || (f = u.pxToRem) == null ? void 0 : f.call(u, 20)) || "1.25rem",
46
46
  medium: ((c = e.typography) == null || (h = c.pxToRem) == null ? void 0 : h.call(c, 24)) || "1.5rem",
47
- large: ((u = e.typography) == null || (m = u.pxToRem) == null ? void 0 : m.call(u, 35)) || "2.1875rem"
47
+ large: ((d = e.typography) == null || (m = d.pxToRem) == null ? void 0 : m.call(d, 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: d,
62
+ className: u,
63
63
  color: f = "inherit",
64
64
  component: c = "svg",
65
65
  fontSize: h = "medium",
66
- htmlColor: u,
66
+ htmlColor: d,
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, d),
83
+ className: N(z.root, u),
84
84
  focusable: "false",
85
- color: u,
85
+ color: d,
86
86
  "aria-hidden": s ? void 0 : !0,
87
87
  role: s ? "img" : void 0,
88
88
  ref: t
@@ -0,0 +1,29 @@
1
+ import { _ as a, a as i, d as c, i as f } from "./useThemeProps-B6yTTpAe.js";
2
+ const x = ["sx"], P = (t) => {
3
+ var s, o;
4
+ const n = {
5
+ systemProps: {},
6
+ otherProps: {}
7
+ }, r = (s = t == null || (o = t.theme) == null ? void 0 : o.unstable_sxConfig) != null ? s : c;
8
+ return Object.keys(t).forEach((e) => {
9
+ r[e] ? n.systemProps[e] = t[e] : n.otherProps[e] = t[e];
10
+ }), n;
11
+ };
12
+ function m(t) {
13
+ const {
14
+ sx: s
15
+ } = t, o = a(t, x), {
16
+ systemProps: n,
17
+ otherProps: r
18
+ } = P(o);
19
+ let e;
20
+ return Array.isArray(s) ? e = [n, ...s] : typeof s == "function" ? e = (...u) => {
21
+ const l = s(...u);
22
+ return f(l) ? i({}, n, l) : n;
23
+ } : e = i({}, n, s), i({}, r, {
24
+ sx: e
25
+ });
26
+ }
27
+ export {
28
+ m as e
29
+ };
@@ -0,0 +1 @@
1
+ "use strict";const o=require("./useThemeProps-CDriK9TK.cjs"),c=["sx"],x=t=>{var s,r;const n={systemProps:{},otherProps:{}},i=(s=t==null||(r=t.theme)==null?void 0:r.unstable_sxConfig)!=null?s:o.defaultSxConfig;return Object.keys(t).forEach(e=>{i[e]?n.systemProps[e]=t[e]:n.otherProps[e]=t[e]}),n};function f(t){const{sx:s}=t,r=o._objectWithoutPropertiesLoose(t,c),{systemProps:n,otherProps:i}=x(r);let e;return Array.isArray(s)?e=[n,...s]:typeof s=="function"?e=(...u)=>{const l=s(...u);return o.isPlainObject(l)?o._extends({},n,l):n}:e=o._extends({},n,s),o._extends({},i,{sx:e})}exports.extendSxProp=f;
package/dist/index.cjs.js CHANGED
@@ -1 +1 @@
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;
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;
package/dist/index.es.js CHANGED
@@ -1,21 +1,17 @@
1
1
  import "./assets/index.css";
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";
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";
6
7
  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";
8
+ import { default as c } from "./components/inputs/TextInput/TextInput.es.js";
11
9
  export {
12
- f as DefaultButton,
13
- r as Dropzone,
14
- B as FileList,
15
- T as FileListItem,
16
- p as PrimaryButton,
10
+ r as AnotherComponent,
11
+ f as BasicButtons,
12
+ p as DefaultButton,
13
+ n as PrimaryButton,
17
14
  x as SearchInput,
18
- l as SecondaryButton,
19
- y as Tab,
20
- n as TextInput
15
+ d as SecondaryButton,
16
+ c as TextInput
21
17
  };
@@ -0,0 +1 @@
1
+ "use strict";const r=require("./useThemeProps-CDriK9TK.cjs"),l=require("react");function y(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const i=y(l);function f(e,n){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||n(...o)}}function d(e){const{prototype:n={}}=e;return!!n.isReactComponent}function m(e,n,t,o,s){const c=e[n],a=s||n;if(c==null||typeof window>"u")return null;let u;return typeof c=="function"&&!d(c)&&(u="Did you accidentally provide a plain function component instead?"),u!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${t}\`. Expected an element type that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const T=f(r.PropTypes.elementType,m),E=r.PropTypes.oneOfType([r.PropTypes.func,r.PropTypes.object]),h=E;function p(e,n){typeof e=="function"?e(n):e&&(e.current=n)}const P=typeof window<"u"?i.useLayoutEffect:i.useEffect;function R(...e){return i.useMemo(()=>e.every(n=>n==null)?null:n=>{e.forEach(t=>{p(t,n)})},e)}exports.chainPropTypes=f;exports.elementTypeAcceptingRef=T;exports.refType=h;exports.setRef=p;exports.useEnhancedEffect=P;exports.useForkRef=R;
@@ -0,0 +1,44 @@
1
+ import { P as i } from "./useThemeProps-B6yTTpAe.js";
2
+ import * as c from "react";
3
+ function s(e, n) {
4
+ return process.env.NODE_ENV === "production" ? () => null : function(...o) {
5
+ return e(...o) || n(...o);
6
+ };
7
+ }
8
+ function a(e) {
9
+ const {
10
+ prototype: n = {}
11
+ } = e;
12
+ return !!n.isReactComponent;
13
+ }
14
+ function l(e, n, t, o, f) {
15
+ const r = e[n], p = f || n;
16
+ if (r == null || // When server-side rendering React doesn't warn either.
17
+ // This is not an accurate check for SSR.
18
+ // This is only in place for emotion compat.
19
+ // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
20
+ typeof window > "u")
21
+ return null;
22
+ let u;
23
+ return typeof r == "function" && !a(r) && (u = "Did you accidentally provide a plain function component instead?"), u !== void 0 ? new Error(`Invalid ${o} \`${p}\` supplied to \`${t}\`. Expected an element type that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
24
+ }
25
+ const E = s(i.elementType, l), d = i.oneOfType([i.func, i.object]), T = d;
26
+ function y(e, n) {
27
+ typeof e == "function" ? e(n) : e && (e.current = n);
28
+ }
29
+ const h = typeof window < "u" ? c.useLayoutEffect : c.useEffect;
30
+ function w(...e) {
31
+ return c.useMemo(() => e.every((n) => n == null) ? null : (n) => {
32
+ e.forEach((t) => {
33
+ y(t, n);
34
+ });
35
+ }, e);
36
+ }
37
+ export {
38
+ w as a,
39
+ s as c,
40
+ E as e,
41
+ T as r,
42
+ y as s,
43
+ h as u
44
+ };
@@ -0,0 +1,65 @@
1
+ import * as n from "react";
2
+ import f from "react";
3
+ import { u as a } from "./useForkRef-CLcOhrzI.js";
4
+ import { w as p, T as h, x as m } from "./useThemeProps-B6yTTpAe.js";
5
+ function l(t) {
6
+ const e = n.useRef(t);
7
+ return a(() => {
8
+ e.current = t;
9
+ }), n.useRef((...r) => (
10
+ // @ts-expect-error hide `this`
11
+ (0, e.current)(...r)
12
+ )).current;
13
+ }
14
+ const s = {};
15
+ function d(t, e) {
16
+ const r = n.useRef(s);
17
+ return r.current === s && (r.current = t(e)), r;
18
+ }
19
+ const E = [];
20
+ function T(t) {
21
+ n.useEffect(t, E);
22
+ }
23
+ class c {
24
+ constructor() {
25
+ this.currentId = 0, this.clear = () => {
26
+ this.currentId !== 0 && (clearTimeout(this.currentId), this.currentId = 0);
27
+ }, this.disposeEffect = () => this.clear;
28
+ }
29
+ static create() {
30
+ return new c();
31
+ }
32
+ /**
33
+ * Executes `fn` after `delay`, clearing any previously scheduled call.
34
+ */
35
+ start(e, r) {
36
+ this.clear(), this.currentId = setTimeout(() => {
37
+ this.currentId = 0, r();
38
+ }, e);
39
+ }
40
+ }
41
+ function y() {
42
+ const t = d(c.create).current;
43
+ return T(t.disposeEffect), t;
44
+ }
45
+ function o(t, e) {
46
+ return o = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(u, i) {
47
+ return u.__proto__ = i, u;
48
+ }, o(t, e);
49
+ }
50
+ function R(t, e) {
51
+ t.prototype = Object.create(e.prototype), t.prototype.constructor = t, o(t, e);
52
+ }
53
+ const P = f.createContext(null);
54
+ function b() {
55
+ const t = p(m);
56
+ return process.env.NODE_ENV !== "production" && n.useDebugValue(t), t[h] || t;
57
+ }
58
+ export {
59
+ c as T,
60
+ R as _,
61
+ P as a,
62
+ y as b,
63
+ l as c,
64
+ b as u
65
+ };
@@ -0,0 +1 @@
1
+ "use strict";const f=require("react"),p=require("./useForkRef-82uiK71d.cjs"),u=require("./useThemeProps-CDriK9TK.cjs");function h(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 o=h(f);function l(e){const t=o.useRef(e);return p.useEnhancedEffect(()=>{t.current=e}),o.useRef((...r)=>(0,t.current)(...r)).current}const i={};function d(e,t){const r=o.useRef(i);return r.current===i&&(r.current=e(t)),r}const m=[];function T(e){o.useEffect(e,m)}class c{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new c}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,r()},t)}}function O(){const e=d(c.create).current;return T(e.disposeEffect),e}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},s(e,t)}function E(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,s(e,t)}const _=f.createContext(null);function y(){const e=u.useTheme(u.defaultTheme);return process.env.NODE_ENV!=="production"&&o.useDebugValue(e),e[u.THEME_ID]||e}exports.Timeout=c;exports.TransitionGroupContext=_;exports._inheritsLoose=E;exports.useEventCallback=l;exports.useTheme=y;exports.useTimeout=O;