@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.
- package/dist/Button-Tkz5NkF_.cjs +1 -0
- package/dist/Button-X7eWZQfX.js +356 -0
- package/dist/ButtonBase-CKfcGhaU.js +892 -0
- package/dist/ButtonBase-Cg8cBMzO.cjs +75 -0
- package/dist/Input-CAb0EFzc.cjs +1 -0
- package/dist/Input-CbYjsRHK.js +322 -0
- package/dist/{InputBase-C_yPRkam.js → InputBase-B13Nzzhk.js} +215 -193
- package/dist/InputBase-CKlCw9fj.cjs +4 -0
- package/dist/assets/index.css +1 -1
- package/dist/components/AnotherComponent/AnotherComponent.cjs.js +1 -0
- package/dist/components/AnotherComponent/AnotherComponent.d.ts +2 -0
- package/dist/components/AnotherComponent/AnotherComponent.es.js +15 -0
- package/dist/components/AnotherComponent/AnotherComponent.stories.cjs.js +1 -0
- package/dist/components/{Dropzone/Dropzone.stories.d.ts → AnotherComponent/AnotherComponent.stories.d.ts} +2 -1
- package/dist/components/AnotherComponent/AnotherComponent.stories.es.js +22 -0
- package/dist/components/AnotherComponent/index.cjs.js +1 -0
- package/dist/components/AnotherComponent/index.d.ts +2 -0
- package/dist/components/AnotherComponent/index.es.js +4 -0
- package/dist/components/BasicButtons/BasicButtons.cjs.js +1 -0
- package/dist/components/BasicButtons/BasicButtons.d.ts +2 -0
- package/dist/components/BasicButtons/BasicButtons.es.js +189 -0
- package/dist/components/BasicButtons/BasicButtons.stories.cjs.js +1 -0
- package/dist/components/BasicButtons/BasicButtons.stories.d.ts +5 -0
- package/dist/components/BasicButtons/BasicButtons.stories.es.js +22 -0
- package/dist/components/BasicButtons/index.cjs.js +1 -0
- package/dist/components/BasicButtons/index.d.ts +2 -0
- package/dist/components/BasicButtons/index.es.js +4 -0
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +28 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +267 -408
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +5 -5
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.d.ts +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +7 -8
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.d.ts +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +9 -10
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +2 -4
- package/dist/components/index.es.js +14 -18
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.es.js +247 -77
- package/dist/components/inputs/TextInput/TextInput.cjs.js +13 -11
- package/dist/components/inputs/TextInput/TextInput.es.js +1631 -1844
- package/dist/{createSvgIcon-B6bZPuto.cjs → createSvgIcon-jvI3LIfI.cjs} +1 -1
- package/dist/{createSvgIcon-KaSN8JhZ.js → createSvgIcon-qXNZi4k1.js} +8 -8
- package/dist/extendSxProp-BRHiEwyk.js +29 -0
- package/dist/extendSxProp-CvhhU9Vb.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +12 -16
- package/dist/useForkRef-82uiK71d.cjs +1 -0
- package/dist/useForkRef-CLcOhrzI.js +44 -0
- package/dist/useTheme-BWRyHzdn.js +65 -0
- package/dist/useTheme-BpLcDNG1.cjs +1 -0
- package/dist/{useThemeProps-Dg9Uoq7q.js → useThemeProps-B6yTTpAe.js} +1024 -1018
- package/dist/useThemeProps-CDriK9TK.cjs +65 -0
- package/package.json +1 -2
- package/dist/Box-7uR7JZiM.cjs +0 -1
- package/dist/Box-CPGTKTgx.js +0 -56
- package/dist/ButtonBase-B0tkJ9zf.js +0 -831
- package/dist/ButtonBase-DCL6Xlnm.cjs +0 -75
- package/dist/CircularProgress-CZX5SfKt.cjs +0 -28
- package/dist/CircularProgress-CguDBnxV.js +0 -215
- package/dist/IconButton-CJ1Nt-jf.js +0 -182
- package/dist/IconButton-De7ZdW2q.cjs +0 -2
- package/dist/InputBase-Dvr5GnwD.cjs +0 -4
- package/dist/Tab-Bhm9hCrX.cjs +0 -1
- package/dist/Tab-C4l6V01S.js +0 -237
- package/dist/TransitionGroupContext-C7wWJ6l7.js +0 -14
- package/dist/TransitionGroupContext-g4tmk10h.cjs +0 -1
- package/dist/Typography-CyFLZjnE.js +0 -202
- package/dist/Typography-DwsN2Ttm.cjs +0 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +0 -5
- package/dist/components/Dropzone/Dropzone.d.ts +0 -9
- package/dist/components/Dropzone/Dropzone.es.js +0 -1210
- package/dist/components/Dropzone/Dropzone.stories.cjs.js +0 -1
- package/dist/components/Dropzone/Dropzone.stories.es.js +0 -17
- package/dist/components/Dropzone/index.cjs.js +0 -1
- package/dist/components/Dropzone/index.d.ts +0 -2
- package/dist/components/Dropzone/index.es.js +0 -4
- package/dist/components/buttons/IconButton.stories.cjs.js +0 -1
- package/dist/components/buttons/IconButton.stories.d.ts +0 -4
- package/dist/components/buttons/IconButton.stories.es.js +0 -27
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +0 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.d.ts +0 -4
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +0 -16
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +0 -1
- package/dist/components/inputs/TextInput/TextInput.stories.d.ts +0 -4
- package/dist/components/inputs/TextInput/TextInput.stories.es.js +0 -17
- package/dist/components/lists/FileList/FileList.cjs.js +0 -1
- package/dist/components/lists/FileList/FileList.d.ts +0 -7
- package/dist/components/lists/FileList/FileList.es.js +0 -19
- package/dist/components/lists/FileList/FileList.stories.cjs.js +0 -1
- package/dist/components/lists/FileList/FileList.stories.d.ts +0 -4
- package/dist/components/lists/FileList/FileList.stories.es.js +0 -28
- package/dist/components/lists/FileList/FileListItem.cjs.js +0 -1
- package/dist/components/lists/FileList/FileListItem.d.ts +0 -13
- package/dist/components/lists/FileList/FileListItem.es.js +0 -41
- package/dist/components/lists/FileList/index.cjs.js +0 -1
- package/dist/components/lists/FileList/index.d.ts +0 -4
- package/dist/components/lists/FileList/index.es.js +0 -6
- package/dist/components/lists/TabList.stories.cjs.js +0 -4
- package/dist/components/lists/TabList.stories.d.ts +0 -4
- package/dist/components/lists/TabList.stories.es.js +0 -1027
- package/dist/components/lists/index.cjs.js +0 -1
- package/dist/components/lists/index.d.ts +0 -1
- package/dist/components/lists/index.es.js +0 -6
- package/dist/createSvgIcon-BX8WQ5r-.cjs +0 -2
- package/dist/createSvgIcon-m_wsenOJ.js +0 -84
- package/dist/isHostComponent-PydJW4A4.cjs +0 -1
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/ownerWindow-C7EH1lr6.js +0 -23
- package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
- package/dist/refType-CHSN6ysS.cjs +0 -1
- package/dist/refType-Hh9tfnoF.js +0 -29
- package/dist/unsupportedProp-Bn6XWqwH.cjs +0 -1
- package/dist/unsupportedProp-BuVD30Gh.js +0 -9
- package/dist/useControlled-BsLcOmhe.js +0 -48
- package/dist/useControlled-jN3fqFfv.cjs +0 -3
- package/dist/useForkRef-CGd3Nhyb.cjs +0 -1
- package/dist/useForkRef-DwN_Iz9R.js +0 -17
- package/dist/useIsFocusVisible-BF0lT08B.cjs +0 -1
- package/dist/useIsFocusVisible-D8ksiuhS.js +0 -69
- package/dist/useSlotProps-MoAYME1z.js +0 -70
- package/dist/useSlotProps-R4s13HHI.cjs +0 -1
- package/dist/useTheme-BDPYLOoP.cjs +0 -1
- package/dist/useTheme-DJEDOopE.js +0 -9
- package/dist/useThemeProps-jkB5q9ie.cjs +0 -65
- package/dist/useTimeout-KN97abZR.js +0 -47
- package/dist/useTimeout-qjxkiZZn.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./useThemeProps-
|
|
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 {
|
|
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,
|
|
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: ((
|
|
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: ((
|
|
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:
|
|
62
|
+
className: u,
|
|
63
63
|
color: f = "inherit",
|
|
64
64
|
component: c = "svg",
|
|
65
65
|
fontSize: h = "medium",
|
|
66
|
-
htmlColor:
|
|
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,
|
|
83
|
+
className: N(z.root, u),
|
|
84
84
|
focusable: "false",
|
|
85
|
-
color:
|
|
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
|
|
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/
|
|
3
|
-
import { default as f } from "./components/
|
|
4
|
-
import { default as p } from "./components/buttons/
|
|
5
|
-
import { default as
|
|
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
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
19
|
-
|
|
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;
|