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

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 (92) hide show
  1. package/dist/{Button-wMPAZpnO.cjs → Button-Tkz5NkF_.cjs} +1 -1
  2. package/dist/{Button-CmBnwwn3.js → Button-X7eWZQfX.js} +12 -12
  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-Dk-cN0Fb.js → Input-CbYjsRHK.js} +10 -10
  7. package/dist/{InputBase-BbXy6VDy.js → InputBase-B13Nzzhk.js} +157 -138
  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 -1
  11. package/dist/components/AnotherComponent/AnotherComponent.es.js +3 -3
  12. package/dist/components/BasicButtons/BasicButtons.cjs.js +1 -1
  13. package/dist/components/BasicButtons/BasicButtons.es.js +10 -10
  14. package/dist/components/BasicButtons/BasicButtons.stories.cjs.js +1 -1
  15. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +28 -1
  16. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +333 -126
  17. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  18. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +8 -8
  19. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
  20. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
  21. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  22. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  23. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
  24. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
  25. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  26. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  27. package/dist/components/index.cjs.js +1 -1
  28. package/dist/components/index.d.ts +0 -4
  29. package/dist/components/index.es.js +12 -20
  30. package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
  31. package/dist/components/inputs/SearchInput/SearchInput.es.js +247 -77
  32. package/dist/components/inputs/TextInput/TextInput.cjs.js +13 -11
  33. package/dist/components/inputs/TextInput/TextInput.es.js +404 -367
  34. package/dist/{createSvgIcon-BivvPRyr.cjs → createSvgIcon-jvI3LIfI.cjs} +1 -1
  35. package/dist/{createSvgIcon-DLZM3vHe.js → createSvgIcon-qXNZi4k1.js} +14 -14
  36. package/dist/{extendSxProp-CVD6j4mA.js → extendSxProp-BRHiEwyk.js} +1 -1
  37. package/dist/{extendSxProp-D5gpnasP.cjs → extendSxProp-CvhhU9Vb.cjs} +1 -1
  38. package/dist/index.cjs.js +1 -1
  39. package/dist/index.es.js +10 -18
  40. package/dist/useForkRef-82uiK71d.cjs +1 -0
  41. package/dist/useForkRef-CLcOhrzI.js +44 -0
  42. package/dist/useTheme-BWRyHzdn.js +65 -0
  43. package/dist/useTheme-BpLcDNG1.cjs +1 -0
  44. package/dist/{useThemeProps-kb_vU-1P.js → useThemeProps-B6yTTpAe.js} +714 -741
  45. package/dist/{useThemeProps-C6ClLEqN.cjs → useThemeProps-CDriK9TK.cjs} +14 -14
  46. package/package.json +1 -2
  47. package/dist/ButtonBase-Bw43M3TO.js +0 -831
  48. package/dist/ButtonBase-XPViWbp_.cjs +0 -75
  49. package/dist/CircularProgress-BCdQaPFF.cjs +0 -28
  50. package/dist/CircularProgress-DRE9BLTL.js +0 -215
  51. package/dist/Input-DHic6dYE.cjs +0 -1
  52. package/dist/InputBase-WBNJQn8V.cjs +0 -4
  53. package/dist/Tab-C2Tmr8Sv.cjs +0 -1
  54. package/dist/Tab-CWxCqAvH.js +0 -237
  55. package/dist/TransitionGroupContext-C7wWJ6l7.js +0 -14
  56. package/dist/TransitionGroupContext-g4tmk10h.cjs +0 -1
  57. package/dist/Typography-B1bdo7yt.js +0 -177
  58. package/dist/Typography-CO64FVmw.cjs +0 -1
  59. package/dist/components/Dropzone/Dropzone.cjs.js +0 -5
  60. package/dist/components/Dropzone/Dropzone.d.ts +0 -9
  61. package/dist/components/Dropzone/Dropzone.es.js +0 -1209
  62. package/dist/components/Dropzone/index.cjs.js +0 -1
  63. package/dist/components/Dropzone/index.d.ts +0 -2
  64. package/dist/components/Dropzone/index.es.js +0 -4
  65. package/dist/components/lists/FileList/FileList.cjs.js +0 -1
  66. package/dist/components/lists/FileList/FileList.d.ts +0 -7
  67. package/dist/components/lists/FileList/FileList.es.js +0 -19
  68. package/dist/components/lists/FileList/FileListItem.cjs.js +0 -2
  69. package/dist/components/lists/FileList/FileListItem.d.ts +0 -13
  70. package/dist/components/lists/FileList/FileListItem.es.js +0 -216
  71. package/dist/components/lists/FileList/index.cjs.js +0 -1
  72. package/dist/components/lists/FileList/index.d.ts +0 -4
  73. package/dist/components/lists/FileList/index.es.js +0 -6
  74. package/dist/components/lists/index.cjs.js +0 -1
  75. package/dist/components/lists/index.d.ts +0 -1
  76. package/dist/components/lists/index.es.js +0 -6
  77. package/dist/createSvgIcon-9NfUaq9H.js +0 -143
  78. package/dist/createSvgIcon-B7HVs3ZC.cjs +0 -2
  79. package/dist/ownerWindow-BoRkeomM.js +0 -23
  80. package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
  81. package/dist/refType-CMQbzE37.js +0 -29
  82. package/dist/refType-dllUCpD8.cjs +0 -1
  83. package/dist/useControlled-BsLcOmhe.js +0 -48
  84. package/dist/useControlled-jN3fqFfv.cjs +0 -3
  85. package/dist/useForkRef-CGd3Nhyb.cjs +0 -1
  86. package/dist/useForkRef-DwN_Iz9R.js +0 -17
  87. package/dist/useIsFocusVisible-BF0lT08B.cjs +0 -1
  88. package/dist/useIsFocusVisible-D8ksiuhS.js +0 -69
  89. package/dist/useTheme-BSwuVDD3.js +0 -9
  90. package/dist/useTheme-C-LTLVMt.cjs +0 -1
  91. package/dist/useTimeout-KN97abZR.js +0 -47
  92. package/dist/useTimeout-qjxkiZZn.cjs +0 -1
@@ -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-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,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 { 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
- 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",
@@ -27,7 +27,7 @@ const B = ["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 B = ["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,15 +59,15 @@ const B = ["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"
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,
@@ -80,9 +80,9 @@ const B = ["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
@@ -1,4 +1,4 @@
1
- import { _ as a, a as i, d as c, i as f } from "./useThemeProps-kb_vU-1P.js";
1
+ import { _ as a, a as i, d as c, i as f } from "./useThemeProps-B6yTTpAe.js";
2
2
  const x = ["sx"], P = (t) => {
3
3
  var s, o;
4
4
  const n = {
@@ -1 +1 @@
1
- "use strict";const o=require("./useThemeProps-C6ClLEqN.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;
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 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 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,25 +1,17 @@
1
1
  import "./assets/index.css";
2
2
  import { default as r } from "./components/AnotherComponent/AnotherComponent.es.js";
3
3
  import { default as f } from "./components/BasicButtons/BasicButtons.es.js";
4
- 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";
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";
7
+ import { default as x } from "./components/inputs/SearchInput/SearchInput.es.js";
8
+ import { default as c } from "./components/inputs/TextInput/TextInput.es.js";
13
9
  export {
14
10
  r as AnotherComponent,
15
11
  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
+ p as DefaultButton,
13
+ n as PrimaryButton,
14
+ x as SearchInput,
15
+ d as SecondaryButton,
16
+ c as TextInput
25
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;