@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 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export * from "./FileList";
@@ -1,6 +0,0 @@
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,2 +0,0 @@
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,84 +0,0 @@
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
- };
@@ -1 +0,0 @@
1
- "use strict";function n(t){return typeof t=="string"}exports.isHostComponent=n;
@@ -1,6 +0,0 @@
1
- function n(t) {
2
- return typeof t == "string";
3
- }
4
- export {
5
- n as i
6
- };
@@ -1,23 +0,0 @@
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
- };
@@ -1 +0,0 @@
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;
@@ -1 +0,0 @@
1
- "use strict";const o=require("./useThemeProps-jkB5q9ie.cjs");function c(n,e){return process.env.NODE_ENV==="production"?()=>null:function(...t){return n(...t)||e(...t)}}function f(n){const{prototype:e={}}=n;return!!e.isReactComponent}function l(n,e,i,t,u){const p=n[e],s=u||e;if(p==null||typeof window>"u")return null;let r;return typeof p=="function"&&!f(p)&&(r="Did you accidentally provide a plain function component instead?"),r!==void 0?new Error(`Invalid ${t} \`${s}\` supplied to \`${i}\`. Expected an element type that can hold a ref. ${r} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const a=c(o.PropTypes.elementType,l),y=o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object]),d=y;exports.chainPropTypes=c;exports.elementTypeAcceptingRef=a;exports.refType=d;
@@ -1,29 +0,0 @@
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
- };
@@ -1 +0,0 @@
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;
@@ -1,9 +0,0 @@
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
- };
@@ -1,48 +0,0 @@
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
- };
@@ -1,3 +0,0 @@
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;
@@ -1 +0,0 @@
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;
@@ -1,17 +0,0 @@
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
- };
@@ -1 +0,0 @@
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;
@@ -1,69 +0,0 @@
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
- };
@@ -1,70 +0,0 @@
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
- };
@@ -1 +0,0 @@
1
- "use strict";const l=require("./useThemeProps-jkB5q9ie.cjs"),P=require("./isHostComponent-PydJW4A4.cjs"),_=require("./useForkRef-CGd3Nhyb.cjs");function g(n,s,e){return n===void 0||P.isHostComponent(n)?s:l._extends({},s,{ownerState:l._extends({},s.ownerState,e)})}function S(n,s=[]){if(n===void 0)return{};const e={};return Object.keys(n).filter(t=>t.match(/^on[A-Z]/)&&typeof n[t]=="function"&&!s.includes(t)).forEach(t=>{e[t]=n[t]}),e}function h(n,s,e){return typeof n=="function"?n(s,e):n}function y(n){if(n===void 0)return{};const s={};return Object.keys(n).filter(e=>!(e.match(/^on[A-Z]/)&&typeof n[e]=="function")).forEach(e=>{s[e]=n[e]}),s}function N(n){const{getSlotProps:s,additionalProps:e,externalSlotProps:t,externalForwardedProps:o,className:d}=n;if(!s){const m=l.clsx(e==null?void 0:e.className,d,o==null?void 0:o.className,t==null?void 0:t.className),x=l._extends({},e==null?void 0:e.style,o==null?void 0:o.style,t==null?void 0:t.style),v=l._extends({},e,o,t);return m.length>0&&(v.className=m),Object.keys(x).length>0&&(v.style=x),{props:v,internalRef:void 0}}const u=S(l._extends({},o,t)),i=y(t),c=y(o),r=s(u),a=l.clsx(r==null?void 0:r.className,e==null?void 0:e.className,d,o==null?void 0:o.className,t==null?void 0:t.className),f=l._extends({},r==null?void 0:r.style,e==null?void 0:e.style,o==null?void 0:o.style,t==null?void 0:t.style),p=l._extends({},r,e,c,i);return a.length>0&&(p.className=a),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:r.ref}}const k=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function H(n){var s;const{elementType:e,externalSlotProps:t,ownerState:o,skipResolvingSlotProps:d=!1}=n,u=l._objectWithoutPropertiesLoose(n,k),i=d?{}:h(t,o),{props:c,internalRef:r}=N(l._extends({},u,{externalSlotProps:i})),a=_.useForkRef(r,i==null?void 0:i.ref,(s=n.additionalProps)==null?void 0:s.ref);return g(e,l._extends({},c,{ref:a}),o)}exports.extractEventHandlers=S;exports.useSlotProps=H;
@@ -1 +0,0 @@
1
- "use strict";const c=require("react"),n=require("./useThemeProps-jkB5q9ie.cjs");function o(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const u=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,u.get?u:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const s=o(c);function a(){const e=n.useTheme(n.defaultTheme);return process.env.NODE_ENV!=="production"&&s.useDebugValue(e),e[n.THEME_ID]||e}exports.useTheme=a;
@@ -1,9 +0,0 @@
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
- };