@cgi-learning-hub/ui 0.0.1-dev.1709027888 → 0.0.1-dev.1709048937
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/{Box-CPGTKTgx.js → Box-BkTuiR7e.js} +5 -5
- package/dist/Box-C7O9b8sZ.cjs +1 -0
- package/dist/{ButtonBase-DCL6Xlnm.cjs → ButtonBase-CMF_j3VP.cjs} +4 -4
- package/dist/{ButtonBase-B0tkJ9zf.js → ButtonBase-D2V-0Xw1.js} +7 -6
- package/dist/CircularProgress-B-dk8p36.cjs +28 -0
- package/dist/{CircularProgress-CguDBnxV.js → CircularProgress-CfFwWKnX.js} +37 -36
- package/dist/DefaultButton-B0F8yY-u.js +580 -0
- package/dist/DefaultButton-hVvpEkB-.cjs +1 -0
- package/dist/IconButton-CdjDa5De.cjs +2 -0
- package/dist/{IconButton-CJ1Nt-jf.js → IconButton-N0GkJrPf.js} +30 -28
- package/dist/{InputBase-Dvr5GnwD.cjs → InputBase-Bbwr21Ww.cjs} +3 -3
- package/dist/{InputBase-C_yPRkam.js → InputBase-Duq-Un-k.js} +3 -3
- package/dist/SearchInput-DoM1xaem.js +176 -0
- package/dist/SearchInput-WoNt5E-Y.cjs +1 -0
- package/dist/Tabs-D0oAMQWe.js +1089 -0
- package/dist/Tabs-DACLC-V1.cjs +4 -0
- package/dist/TextInput-DPJaQUcB.js +5797 -0
- package/dist/TextInput-Dm_RIyHe.cjs +12 -0
- package/dist/TimePicker-BFNvxmvW.cjs +73 -0
- package/dist/TimePicker-BXefhlHa.js +20540 -0
- package/dist/Typography-2pluEjyq.cjs +1 -0
- package/dist/{Typography-CyFLZjnE.js → Typography-BVmKVRH7.js} +39 -38
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.d.ts +1 -3
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +7 -577
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +4 -4
- package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/index.es.js +2 -2
- package/dist/components/buttons/IconButton.stories.cjs.js +1 -1
- package/dist/components/buttons/IconButton.stories.es.js +2 -2
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +4 -4
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +2 -2
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/buttons/index.cjs.js +1 -1
- package/dist/components/buttons/index.es.js +2 -2
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +55 -2
- package/dist/components/index.es.js +110 -18
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.es.js +6 -173
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +4 -4
- package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/index.es.js +2 -2
- package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -12
- package/dist/components/inputs/TextInput/TextInput.es.js +5 -5774
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.stories.es.js +5 -5
- package/dist/components/inputs/TextInput/index.cjs.js +1 -1
- package/dist/components/inputs/TextInput/index.es.js +2 -2
- package/dist/components/inputs/index.cjs.js +1 -1
- package/dist/components/inputs/index.es.js +4 -4
- package/dist/components/lists/FileList/FileList.cjs.js +1 -1
- package/dist/components/lists/FileList/FileList.es.js +1 -1
- package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/lists/FileList/FileListItem.es.js +5 -5
- package/dist/components/lists/TabList.stories.cjs.js +1 -4
- package/dist/components/lists/TabList.stories.es.js +85 -932
- package/dist/createSvgIcon-BQIn7W7I.cjs +2 -0
- package/dist/{createSvgIcon-KaSN8JhZ.js → createSvgIcon-BfwaMZys.js} +3 -3
- package/dist/{createSvgIcon-m_wsenOJ.js → createSvgIcon-CdCuBORB.js} +12 -12
- package/dist/createSvgIcon-DOyoPkVw.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +110 -18
- package/dist/refType-DjLUlex0.cjs +1 -0
- package/dist/{refType-Hh9tfnoF.js → refType-hnSqgX76.js} +1 -1
- package/dist/styled-DV7nxKmR.cjs +65 -0
- package/dist/{useThemeProps-Dg9Uoq7q.js → styled-dYPj0biG.js} +770 -753
- package/dist/useForkRef-DfdM2MN5.cjs +1 -0
- package/dist/{useIsFocusVisible-BF0lT08B.cjs → useIsFocusVisible-9FderFRK.cjs} +1 -1
- package/dist/{useIsFocusVisible-D8ksiuhS.js → useIsFocusVisible-B88all80.js} +1 -1
- package/dist/{useSlotProps-MoAYME1z.js → useSlotProps-BH5nvdjj.js} +3 -2
- package/dist/useSlotProps-DAptB-Q2.cjs +1 -0
- package/dist/{useTheme-DJEDOopE.js → useTheme-BYF7knOc.js} +1 -1
- package/dist/useTheme-BrAXEnUd.cjs +1 -0
- package/dist/{useTimeout-KN97abZR.js → useTimeout-C7IkLqZ9.js} +1 -1
- package/dist/{useTimeout-qjxkiZZn.cjs → useTimeout-DHarDhEH.cjs} +1 -1
- package/package.json +2 -1
- package/dist/Box-7uR7JZiM.cjs +0 -1
- package/dist/CircularProgress-CZX5SfKt.cjs +0 -28
- package/dist/IconButton-De7ZdW2q.cjs +0 -2
- package/dist/Tab-Bhm9hCrX.cjs +0 -1
- package/dist/Tab-C4l6V01S.js +0 -237
- package/dist/Typography-DwsN2Ttm.cjs +0 -1
- package/dist/createSvgIcon-B6bZPuto.cjs +0 -1
- package/dist/createSvgIcon-BX8WQ5r-.cjs +0 -2
- package/dist/refType-CHSN6ysS.cjs +0 -1
- package/dist/useForkRef-CGd3Nhyb.cjs +0 -1
- package/dist/useSlotProps-R4s13HHI.cjs +0 -1
- package/dist/useTheme-BDPYLOoP.cjs +0 -1
- package/dist/useThemeProps-jkB5q9ie.cjs +0 -65
- package/dist/{useForkRef-DwN_Iz9R.js → useForkRef-CQ5u1_mH.js} +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("react");function r(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=r(o),s=typeof window<"u"?c.useLayoutEffect:c.useEffect;function f(e,t){typeof e=="function"?e(t):e&&(e.current=t)}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 +1 @@
|
|
|
1
|
-
"use strict";const o=require("react"),c=require("./useTimeout-
|
|
1
|
+
"use strict";const o=require("react"),c=require("./useTimeout-DHarDhEH.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,6 +1,6 @@
|
|
|
1
|
-
import { _ as l,
|
|
1
|
+
import { _ as l, h as S, f as g } from "./styled-dYPj0biG.js";
|
|
2
2
|
import { i as h } from "./isHostComponent-kiaBvYVo.js";
|
|
3
|
-
import { a as x } from "./useForkRef-
|
|
3
|
+
import { a as x } from "./useForkRef-CQ5u1_mH.js";
|
|
4
4
|
function N(n, s, e) {
|
|
5
5
|
return n === void 0 || h(n) ? s : l({}, s, {
|
|
6
6
|
ownerState: l({}, s.ownerState, e)
|
|
@@ -65,6 +65,7 @@ function _(n) {
|
|
|
65
65
|
}), o);
|
|
66
66
|
}
|
|
67
67
|
export {
|
|
68
|
+
N as a,
|
|
68
69
|
k as e,
|
|
69
70
|
_ as u
|
|
70
71
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("./styled-DV7nxKmR.cjs"),_=require("./isHostComponent-PydJW4A4.cjs"),g=require("./useForkRef-DfdM2MN5.cjs");function S(n,s,e){return n===void 0||_.isHostComponent(n)?s:l._extends({},s,{ownerState:l._extends({},s.ownerState,e)})}function P(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 x(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),y=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(y).length>0&&(v.style=y),{props:v,internalRef:void 0}}const u=P(l._extends({},o,t)),i=x(t),c=x(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=g.useForkRef(r,i==null?void 0:i.ref,(s=n.additionalProps)==null?void 0:s.ref);return S(e,l._extends({},c,{ref:a}),o)}exports.appendOwnerState=S;exports.extractEventHandlers=P;exports.useSlotProps=H;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import { u, T as o, d as t } from "./
|
|
2
|
+
import { u, T as o, d as t } from "./styled-dYPj0biG.js";
|
|
3
3
|
function a() {
|
|
4
4
|
const e = u(t);
|
|
5
5
|
return process.env.NODE_ENV !== "production" && s.useDebugValue(e), e[o] || e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("react"),r=require("./styled-DV7nxKmR.cjs");function o(e){const n=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(n,t,u.get?u:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const s=o(c);function a(){const e=r.useTheme(r.defaultTheme);return process.env.NODE_ENV!=="production"&&s.useDebugValue(e),e[r.THEME_ID]||e}exports.useTheme=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("react"),o=require("./useForkRef-
|
|
1
|
+
"use strict";const i=require("react"),o=require("./useForkRef-DfdM2MN5.cjs");function f(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 c=f(i);function a(e){const r=c.useRef(e);return o.useEnhancedEffect(()=>{r.current=e}),c.useRef((...t)=>(0,r.current)(...t)).current}const s={};function l(e,r){const t=c.useRef(s);return t.current===s&&(t.current=e(r)),t}const d=[];function h(e){c.useEffect(e,d)}class n{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new n}start(r,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},r)}}function m(){const e=l(n.create).current;return h(e.disposeEffect),e}exports.Timeout=n;exports.useEventCallback=a;exports.useTimeout=m;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cgi-learning-hub/ui",
|
|
3
|
-
"version": "0.0.1-dev.
|
|
3
|
+
"version": "0.0.1-dev.1709048937",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "CGI Learning-hub Team",
|
|
6
6
|
"description": "@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"@mui/icons-material": "5.15.10",
|
|
34
34
|
"@mui/lab": "5.0.0-alpha.165",
|
|
35
35
|
"@mui/material": "5.15.7",
|
|
36
|
+
"@mui/x-date-pickers": "6.19.4",
|
|
36
37
|
"autoprefixer": "10.4.17",
|
|
37
38
|
"postcss": "8.4.33",
|
|
38
39
|
"react-dropzone": "14.2.3",
|
package/dist/Box-7uR7JZiM.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./useThemeProps-jkB5q9ie.cjs"),y=require("react"),T=require("react/jsx-runtime"),P=require("./Typography-DwsN2Ttm.cjs");function h(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:()=>o[s]})}}return t.default=o,Object.freeze(t)}const b=h(y),N=["className","component"];function g(o={}){const{themeId:t,defaultTheme:s,defaultClassName:r="MuiBox-root",generateClassName:a}=o,l=e.styled$1("div",{shouldForwardProp:n=>n!=="theme"&&n!=="sx"&&n!=="as"})(e.styleFunctionSx);return b.forwardRef(function(i,d){const c=e.useTheme(s),p=P.extendSxProp(i),{className:m,component:f="div"}=p,x=e._objectWithoutPropertiesLoose(p,N);return T.jsx(l,e._extends({as:f,ref:d,className:e.clsx(m,a?a(r):r),theme:t&&c[t]||c},x))})}const B=e.generateUtilityClasses("MuiBox",["root"]),O=B,_=e.createTheme(),u=g({themeId:e.THEME_ID,defaultTheme:_,defaultClassName:O.root,generateClassName:e.ClassNameGenerator.generate});process.env.NODE_ENV!=="production"&&(u.propTypes={children:e.PropTypes.node,component:e.PropTypes.elementType,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])});const j=u;exports.Box=j;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./useThemeProps-jkB5q9ie.cjs"),j=require("react"),h=require("react/jsx-runtime"),D=require("./refType-CHSN6ysS.cjs"),c=require("@emotion/react");function w(r){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(s,t,o.get?o:{enumerable:!0,get:()=>r[t]})}}return s.default=r,Object.freeze(s)}const M=w(j);function N(r){return e.generateUtilityClass("MuiCircularProgress",r)}e.generateUtilityClasses("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const R=["className","color","disableShrink","size","style","thickness","value","variant"];let l=r=>r,T,b,x,C;const i=44,z=c.keyframes(T||(T=l`
|
|
2
|
-
0% {
|
|
3
|
-
transform: rotate(0deg);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
100% {
|
|
7
|
-
transform: rotate(360deg);
|
|
8
|
-
}
|
|
9
|
-
`)),q=c.keyframes(b||(b=l`
|
|
10
|
-
0% {
|
|
11
|
-
stroke-dasharray: 1px, 200px;
|
|
12
|
-
stroke-dashoffset: 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
50% {
|
|
16
|
-
stroke-dasharray: 100px, 200px;
|
|
17
|
-
stroke-dashoffset: -15px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
100% {
|
|
21
|
-
stroke-dasharray: 100px, 200px;
|
|
22
|
-
stroke-dashoffset: -125px;
|
|
23
|
-
}
|
|
24
|
-
`)),U=r=>{const{classes:s,variant:t,color:o,disableShrink:p}=r,u={root:["root",t,`color${e.capitalize(o)}`],svg:["svg"],circle:["circle",`circle${e.capitalize(t)}`,p&&"circleDisableShrink"]};return e.composeClasses(u,N,s)},E=e.styled("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(r,s)=>{const{ownerState:t}=r;return[s.root,s[t.variant],s[`color${e.capitalize(t.color)}`]]}})(({ownerState:r,theme:s})=>e._extends({display:"inline-block"},r.variant==="determinate"&&{transition:s.transitions.create("transform")},r.color!=="inherit"&&{color:(s.vars||s).palette[r.color].main}),({ownerState:r})=>r.variant==="indeterminate"&&c.css(x||(x=l`
|
|
25
|
-
animation: ${0} 1.4s linear infinite;
|
|
26
|
-
`),z)),I=e.styled("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(r,s)=>s.svg})({display:"block"}),F=e.styled("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(r,s)=>{const{ownerState:t}=r;return[s.circle,s[`circle${e.capitalize(t.variant)}`],t.disableShrink&&s.circleDisableShrink]}})(({ownerState:r,theme:s})=>e._extends({stroke:"currentColor"},r.variant==="determinate"&&{transition:s.transitions.create("stroke-dashoffset")},r.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:r})=>r.variant==="indeterminate"&&!r.disableShrink&&c.css(C||(C=l`
|
|
27
|
-
animation: ${0} 1.4s ease-in-out infinite;
|
|
28
|
-
`),q)),S=M.forwardRef(function(s,t){const o=e.useThemeProps({props:s,name:"MuiCircularProgress"}),{className:p,color:u="primary",disableShrink:_=!1,size:d=40,style:$,thickness:a=3.6,value:y=0,variant:P="indeterminate"}=o,O=e._objectWithoutPropertiesLoose(o,R),n=e._extends({},o,{color:u,disableShrink:_,size:d,thickness:a,value:y,variant:P}),f=U(n),m={},v={},g={};if(P==="determinate"){const k=2*Math.PI*((i-a)/2);m.strokeDasharray=k.toFixed(3),g["aria-valuenow"]=Math.round(y),m.strokeDashoffset=`${((100-y)/100*k).toFixed(3)}px`,v.transform="rotate(-90deg)"}return h.jsx(E,e._extends({className:e.clsx(f.root,p),style:e._extends({width:d,height:d},v,$),ownerState:n,ref:t,role:"progressbar"},g,O,{children:h.jsx(I,{className:f.svg,ownerState:n,viewBox:`${i/2} ${i/2} ${i} ${i}`,children:h.jsx(F,{className:f.circle,style:m,ownerState:n,cx:i,cy:i,r:(i-a)/2,fill:"none",strokeWidth:a})})}))});process.env.NODE_ENV!=="production"&&(S.propTypes={classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["inherit","primary","secondary","error","info","success","warning"]),e.PropTypes.string]),disableShrink:D.chainPropTypes(e.PropTypes.bool,r=>r.disableShrink&&r.variant&&r.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),style:e.PropTypes.object,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]),thickness:e.PropTypes.number,value:e.PropTypes.number,variant:e.PropTypes.oneOf(["determinate","indeterminate"])});const K=S;exports.CircularProgress=K;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./useThemeProps-jkB5q9ie.cjs"),T=require("react"),v=require("react/jsx-runtime"),P=require("./ButtonBase-DCL6Xlnm.cjs"),z=require("./refType-CHSN6ysS.cjs");function h(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>o[t]})}}return r.default=o,Object.freeze(r)}const l=h(T);function m(o){return e.generateUtilityClass("MuiIconButton",o)}const R=e.generateUtilityClasses("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),O=["edge","children","className","color","disabled","disableFocusRipple","size"],B=o=>{const{classes:r,disabled:t,color:s,edge:n,size:a}=o,i={root:["root",t&&"disabled",s!=="default"&&`color${e.capitalize(s)}`,n&&`edge${e.capitalize(n)}`,`size${e.capitalize(a)}`]};return e.composeClasses(i,m,r)},C=e.styled(P.ButtonBase,{name:"MuiIconButton",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:t}=o;return[r.root,t.color!=="default"&&r[`color${e.capitalize(t.color)}`],t.edge&&r[`edge${e.capitalize(t.edge)}`],r[`size${e.capitalize(t.size)}`]]}})(({theme:o,ownerState:r})=>e._extends({textAlign:"center",flex:"0 0 auto",fontSize:o.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(o.vars||o).palette.action.active,transition:o.transitions.create("background-color",{duration:o.transitions.duration.shortest})},!r.disableRipple&&{"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})`:e.alpha(o.palette.action.active,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},r.edge==="start"&&{marginLeft:r.size==="small"?-3:-12},r.edge==="end"&&{marginRight:r.size==="small"?-3:-12}),({theme:o,ownerState:r})=>{var t;const s=(t=(o.vars||o).palette)==null?void 0:t[r.color];return e._extends({},r.color==="inherit"&&{color:"inherit"},r.color!=="inherit"&&r.color!=="default"&&e._extends({color:s==null?void 0:s.main},!r.disableRipple&&{"&:hover":e._extends({},s&&{backgroundColor:o.vars?`rgba(${s.mainChannel} / ${o.vars.palette.action.hoverOpacity})`:e.alpha(s.main,o.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),r.size==="small"&&{padding:5,fontSize:o.typography.pxToRem(18)},r.size==="large"&&{padding:12,fontSize:o.typography.pxToRem(28)},{[`&.${R.disabled}`]:{backgroundColor:"transparent",color:(o.vars||o).palette.action.disabled}})}),u=l.forwardRef(function(r,t){const s=e.useThemeProps({props:r,name:"MuiIconButton"}),{edge:n=!1,children:a,className:i,color:y="default",disabled:c=!1,disableFocusRipple:p=!1,size:g="medium"}=s,f=e._objectWithoutPropertiesLoose(s,O),d=e._extends({},s,{edge:n,color:y,disabled:c,disableFocusRipple:p,size:g}),b=B(d);return v.jsx(C,e._extends({className:e.clsx(b.root,i),centerRipple:!0,focusRipple:!p,disabled:c,ref:t,ownerState:d},f,{children:a}))});process.env.NODE_ENV!=="production"&&(u.propTypes={children:z.chainPropTypes(e.PropTypes.node,o=>l.Children.toArray(o.children).some(t=>l.isValidElement(t)&&t.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
2
|
-
`)):null),classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),e.PropTypes.string]),disabled:e.PropTypes.bool,disableFocusRipple:e.PropTypes.bool,disableRipple:e.PropTypes.bool,edge:e.PropTypes.oneOf(["end","start",!1]),size:e.PropTypes.oneOfType([e.PropTypes.oneOf(["small","medium","large"]),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])});const x=u;exports.IconButton=x;
|
package/dist/Tab-Bhm9hCrX.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("./useThemeProps-jkB5q9ie.cjs"),k=require("react"),P=require("react/jsx-runtime"),w=require("./ButtonBase-DCL6Xlnm.cjs"),B=require("./unsupportedProp-Bn6XWqwH.cjs");function q(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return s.default=e,Object.freeze(s)}const c=q(k);function I(e){return o.generateUtilityClass("MuiTab",e)}const M=o.generateUtilityClasses("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),r=M,z=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],D=e=>{const{classes:s,textColor:t,fullWidth:i,wrapped:f,icon:d,label:u,selected:T,disabled:l}=e,n={root:["root",d&&u&&"labelIcon",`textColor${o.capitalize(t)}`,i&&"fullWidth",f&&"wrapped",T&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return o.composeClasses(n,I,s)},E=o.styled(w.ButtonBase,{name:"MuiTab",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:t}=e;return[s.root,t.label&&t.icon&&s.labelIcon,s[`textColor${o.capitalize(t.textColor)}`],t.fullWidth&&s.fullWidth,t.wrapped&&s.wrapped]}})(({theme:e,ownerState:s})=>o._extends({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},s.label&&{flexDirection:s.iconPosition==="top"||s.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},s.icon&&s.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${r.iconWrapper}`]:o._extends({},s.iconPosition==="top"&&{marginBottom:6},s.iconPosition==="bottom"&&{marginTop:6},s.iconPosition==="start"&&{marginRight:e.spacing(1)},s.iconPosition==="end"&&{marginLeft:e.spacing(1)})},s.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${r.selected}`]:{opacity:1},[`&.${r.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},s.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${r.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${r.disabled}`]:{color:(e.vars||e).palette.text.disabled}},s.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${r.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${r.disabled}`]:{color:(e.vars||e).palette.text.disabled}},s.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},s.wrapped&&{fontSize:e.typography.pxToRem(12)})),v=c.forwardRef(function(s,t){const i=o.useThemeProps({props:s,name:"MuiTab"}),{className:f,disabled:d=!1,disableFocusRipple:u=!1,fullWidth:T,icon:l,iconPosition:n="top",indicator:F,label:b,onChange:y,onClick:x,onFocus:g,selected:a,selectionFollowsFocus:R,textColor:$="inherit",value:C,wrapped:O=!1}=i,j=o._objectWithoutPropertiesLoose(i,z),m=o._extends({},i,{disabled:d,disableFocusRipple:u,selected:a,icon:!!l,iconPosition:n,label:!!b,fullWidth:T,textColor:$,wrapped:O}),h=D(m),W=l&&b&&c.isValidElement(l)?c.cloneElement(l,{className:o.clsx(h.iconWrapper,l.props.className)}):l,_=p=>{!a&&y&&y(p,C),x&&x(p)},N=p=>{R&&!a&&y&&y(p,C),g&&g(p)};return P.jsxs(E,o._extends({focusRipple:!u,className:o.clsx(h.root,f),ref:t,role:"tab","aria-selected":a,disabled:d,onClick:_,onFocus:N,ownerState:m,tabIndex:a?0:-1},j,{children:[n==="top"||n==="start"?P.jsxs(c.Fragment,{children:[W,b]}):P.jsxs(c.Fragment,{children:[b,W]}),F]}))});process.env.NODE_ENV!=="production"&&(v.propTypes={children:B.unsupportedProp,classes:o.PropTypes.object,className:o.PropTypes.string,disabled:o.PropTypes.bool,disableFocusRipple:o.PropTypes.bool,disableRipple:o.PropTypes.bool,icon:o.PropTypes.oneOfType([o.PropTypes.element,o.PropTypes.string]),iconPosition:o.PropTypes.oneOf(["bottom","end","start","top"]),label:o.PropTypes.node,onChange:o.PropTypes.func,onClick:o.PropTypes.func,onFocus:o.PropTypes.func,sx:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object,o.PropTypes.bool])),o.PropTypes.func,o.PropTypes.object]),value:o.PropTypes.any,wrapped:o.PropTypes.bool});const U=v;exports.Tab=U;
|
package/dist/Tab-C4l6V01S.js
DELETED
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import { g as _, a as E, s as M, c as R, _ as x, b as U, e as H, f as F, P as i, h as z } from "./useThemeProps-Dg9Uoq7q.js";
|
|
2
|
-
import * as p from "react";
|
|
3
|
-
import { jsxs as C } from "react/jsx-runtime";
|
|
4
|
-
import { B as D } from "./ButtonBase-B0tkJ9zf.js";
|
|
5
|
-
import { u as L } from "./unsupportedProp-BuVD30Gh.js";
|
|
6
|
-
function V(o) {
|
|
7
|
-
return E("MuiTab", o);
|
|
8
|
-
}
|
|
9
|
-
const A = _("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper"]), a = A, G = ["className", "disabled", "disableFocusRipple", "fullWidth", "icon", "iconPosition", "indicator", "label", "onChange", "onClick", "onFocus", "selected", "selectionFollowsFocus", "textColor", "value", "wrapped"], q = (o) => {
|
|
10
|
-
const {
|
|
11
|
-
classes: e,
|
|
12
|
-
textColor: s,
|
|
13
|
-
fullWidth: t,
|
|
14
|
-
wrapped: m,
|
|
15
|
-
icon: d,
|
|
16
|
-
label: b,
|
|
17
|
-
selected: g,
|
|
18
|
-
disabled: l
|
|
19
|
-
} = o, n = {
|
|
20
|
-
root: ["root", d && b && "labelIcon", `textColor${R(s)}`, t && "fullWidth", m && "wrapped", g && "selected", l && "disabled"],
|
|
21
|
-
iconWrapper: ["iconWrapper"]
|
|
22
|
-
};
|
|
23
|
-
return z(n, V, e);
|
|
24
|
-
}, J = M(D, {
|
|
25
|
-
name: "MuiTab",
|
|
26
|
-
slot: "Root",
|
|
27
|
-
overridesResolver: (o, e) => {
|
|
28
|
-
const {
|
|
29
|
-
ownerState: s
|
|
30
|
-
} = o;
|
|
31
|
-
return [e.root, s.label && s.icon && e.labelIcon, e[`textColor${R(s.textColor)}`], s.fullWidth && e.fullWidth, s.wrapped && e.wrapped];
|
|
32
|
-
}
|
|
33
|
-
})(({
|
|
34
|
-
theme: o,
|
|
35
|
-
ownerState: e
|
|
36
|
-
}) => x({}, o.typography.button, {
|
|
37
|
-
maxWidth: 360,
|
|
38
|
-
minWidth: 90,
|
|
39
|
-
position: "relative",
|
|
40
|
-
minHeight: 48,
|
|
41
|
-
flexShrink: 0,
|
|
42
|
-
padding: "12px 16px",
|
|
43
|
-
overflow: "hidden",
|
|
44
|
-
whiteSpace: "normal",
|
|
45
|
-
textAlign: "center"
|
|
46
|
-
}, e.label && {
|
|
47
|
-
flexDirection: e.iconPosition === "top" || e.iconPosition === "bottom" ? "column" : "row"
|
|
48
|
-
}, {
|
|
49
|
-
lineHeight: 1.25
|
|
50
|
-
}, e.icon && e.label && {
|
|
51
|
-
minHeight: 72,
|
|
52
|
-
paddingTop: 9,
|
|
53
|
-
paddingBottom: 9,
|
|
54
|
-
[`& > .${a.iconWrapper}`]: x({}, e.iconPosition === "top" && {
|
|
55
|
-
marginBottom: 6
|
|
56
|
-
}, e.iconPosition === "bottom" && {
|
|
57
|
-
marginTop: 6
|
|
58
|
-
}, e.iconPosition === "start" && {
|
|
59
|
-
marginRight: o.spacing(1)
|
|
60
|
-
}, e.iconPosition === "end" && {
|
|
61
|
-
marginLeft: o.spacing(1)
|
|
62
|
-
})
|
|
63
|
-
}, e.textColor === "inherit" && {
|
|
64
|
-
color: "inherit",
|
|
65
|
-
opacity: 0.6,
|
|
66
|
-
// same opacity as theme.palette.text.secondary
|
|
67
|
-
[`&.${a.selected}`]: {
|
|
68
|
-
opacity: 1
|
|
69
|
-
},
|
|
70
|
-
[`&.${a.disabled}`]: {
|
|
71
|
-
opacity: (o.vars || o).palette.action.disabledOpacity
|
|
72
|
-
}
|
|
73
|
-
}, e.textColor === "primary" && {
|
|
74
|
-
color: (o.vars || o).palette.text.secondary,
|
|
75
|
-
[`&.${a.selected}`]: {
|
|
76
|
-
color: (o.vars || o).palette.primary.main
|
|
77
|
-
},
|
|
78
|
-
[`&.${a.disabled}`]: {
|
|
79
|
-
color: (o.vars || o).palette.text.disabled
|
|
80
|
-
}
|
|
81
|
-
}, e.textColor === "secondary" && {
|
|
82
|
-
color: (o.vars || o).palette.text.secondary,
|
|
83
|
-
[`&.${a.selected}`]: {
|
|
84
|
-
color: (o.vars || o).palette.secondary.main
|
|
85
|
-
},
|
|
86
|
-
[`&.${a.disabled}`]: {
|
|
87
|
-
color: (o.vars || o).palette.text.disabled
|
|
88
|
-
}
|
|
89
|
-
}, e.fullWidth && {
|
|
90
|
-
flexShrink: 1,
|
|
91
|
-
flexGrow: 1,
|
|
92
|
-
flexBasis: 0,
|
|
93
|
-
maxWidth: "none"
|
|
94
|
-
}, e.wrapped && {
|
|
95
|
-
fontSize: o.typography.pxToRem(12)
|
|
96
|
-
})), $ = /* @__PURE__ */ p.forwardRef(function(e, s) {
|
|
97
|
-
const t = U({
|
|
98
|
-
props: e,
|
|
99
|
-
name: "MuiTab"
|
|
100
|
-
}), {
|
|
101
|
-
className: m,
|
|
102
|
-
disabled: d = !1,
|
|
103
|
-
disableFocusRipple: b = !1,
|
|
104
|
-
// eslint-disable-next-line react/prop-types
|
|
105
|
-
fullWidth: g,
|
|
106
|
-
icon: l,
|
|
107
|
-
iconPosition: n = "top",
|
|
108
|
-
// eslint-disable-next-line react/prop-types
|
|
109
|
-
indicator: N,
|
|
110
|
-
label: u,
|
|
111
|
-
onChange: f,
|
|
112
|
-
onClick: y,
|
|
113
|
-
onFocus: h,
|
|
114
|
-
// eslint-disable-next-line react/prop-types
|
|
115
|
-
selected: c,
|
|
116
|
-
// eslint-disable-next-line react/prop-types
|
|
117
|
-
selectionFollowsFocus: k,
|
|
118
|
-
// eslint-disable-next-line react/prop-types
|
|
119
|
-
textColor: O = "inherit",
|
|
120
|
-
value: T,
|
|
121
|
-
wrapped: w = !1
|
|
122
|
-
} = t, B = H(t, G), W = x({}, t, {
|
|
123
|
-
disabled: d,
|
|
124
|
-
disableFocusRipple: b,
|
|
125
|
-
selected: c,
|
|
126
|
-
icon: !!l,
|
|
127
|
-
iconPosition: n,
|
|
128
|
-
label: !!u,
|
|
129
|
-
fullWidth: g,
|
|
130
|
-
textColor: O,
|
|
131
|
-
wrapped: w
|
|
132
|
-
}), P = q(W), v = l && u && /* @__PURE__ */ p.isValidElement(l) ? /* @__PURE__ */ p.cloneElement(l, {
|
|
133
|
-
className: F(P.iconWrapper, l.props.className)
|
|
134
|
-
}) : l, j = (r) => {
|
|
135
|
-
!c && f && f(r, T), y && y(r);
|
|
136
|
-
}, I = (r) => {
|
|
137
|
-
k && !c && f && f(r, T), h && h(r);
|
|
138
|
-
};
|
|
139
|
-
return /* @__PURE__ */ C(J, x({
|
|
140
|
-
focusRipple: !b,
|
|
141
|
-
className: F(P.root, m),
|
|
142
|
-
ref: s,
|
|
143
|
-
role: "tab",
|
|
144
|
-
"aria-selected": c,
|
|
145
|
-
disabled: d,
|
|
146
|
-
onClick: j,
|
|
147
|
-
onFocus: I,
|
|
148
|
-
ownerState: W,
|
|
149
|
-
tabIndex: c ? 0 : -1
|
|
150
|
-
}, B, {
|
|
151
|
-
children: [n === "top" || n === "start" ? /* @__PURE__ */ C(p.Fragment, {
|
|
152
|
-
children: [v, u]
|
|
153
|
-
}) : /* @__PURE__ */ C(p.Fragment, {
|
|
154
|
-
children: [u, v]
|
|
155
|
-
}), N]
|
|
156
|
-
}));
|
|
157
|
-
});
|
|
158
|
-
process.env.NODE_ENV !== "production" && ($.propTypes = {
|
|
159
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
160
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
161
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
162
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
163
|
-
/**
|
|
164
|
-
* This prop isn't supported.
|
|
165
|
-
* Use the `component` prop if you need to change the children structure.
|
|
166
|
-
*/
|
|
167
|
-
children: L,
|
|
168
|
-
/**
|
|
169
|
-
* Override or extend the styles applied to the component.
|
|
170
|
-
*/
|
|
171
|
-
classes: i.object,
|
|
172
|
-
/**
|
|
173
|
-
* @ignore
|
|
174
|
-
*/
|
|
175
|
-
className: i.string,
|
|
176
|
-
/**
|
|
177
|
-
* If `true`, the component is disabled.
|
|
178
|
-
* @default false
|
|
179
|
-
*/
|
|
180
|
-
disabled: i.bool,
|
|
181
|
-
/**
|
|
182
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
183
|
-
* @default false
|
|
184
|
-
*/
|
|
185
|
-
disableFocusRipple: i.bool,
|
|
186
|
-
/**
|
|
187
|
-
* If `true`, the ripple effect is disabled.
|
|
188
|
-
*
|
|
189
|
-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
190
|
-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
191
|
-
* @default false
|
|
192
|
-
*/
|
|
193
|
-
disableRipple: i.bool,
|
|
194
|
-
/**
|
|
195
|
-
* The icon to display.
|
|
196
|
-
*/
|
|
197
|
-
icon: i.oneOfType([i.element, i.string]),
|
|
198
|
-
/**
|
|
199
|
-
* The position of the icon relative to the label.
|
|
200
|
-
* @default 'top'
|
|
201
|
-
*/
|
|
202
|
-
iconPosition: i.oneOf(["bottom", "end", "start", "top"]),
|
|
203
|
-
/**
|
|
204
|
-
* The label element.
|
|
205
|
-
*/
|
|
206
|
-
label: i.node,
|
|
207
|
-
/**
|
|
208
|
-
* @ignore
|
|
209
|
-
*/
|
|
210
|
-
onChange: i.func,
|
|
211
|
-
/**
|
|
212
|
-
* @ignore
|
|
213
|
-
*/
|
|
214
|
-
onClick: i.func,
|
|
215
|
-
/**
|
|
216
|
-
* @ignore
|
|
217
|
-
*/
|
|
218
|
-
onFocus: i.func,
|
|
219
|
-
/**
|
|
220
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
221
|
-
*/
|
|
222
|
-
sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]),
|
|
223
|
-
/**
|
|
224
|
-
* You can provide your own value. Otherwise, we fallback to the child position index.
|
|
225
|
-
*/
|
|
226
|
-
value: i.any,
|
|
227
|
-
/**
|
|
228
|
-
* Tab labels appear in a single row.
|
|
229
|
-
* They can use a second line if needed.
|
|
230
|
-
* @default false
|
|
231
|
-
*/
|
|
232
|
-
wrapped: i.bool
|
|
233
|
-
});
|
|
234
|
-
const Z = $;
|
|
235
|
-
export {
|
|
236
|
-
Z as T
|
|
237
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./useThemeProps-jkB5q9ie.cjs"),v=require("react"),_=require("react/jsx-runtime");function O(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>o[r]})}}return t.default=o,Object.freeze(t)}const j=O(v),B=["sx"],W=o=>{var t,r;const n={systemProps:{},otherProps:{}},s=(t=o==null||(r=o.theme)==null?void 0:r.unstable_sxConfig)!=null?t:e.defaultSxConfig;return Object.keys(o).forEach(a=>{s[a]?n.systemProps[a]=o[a]:n.otherProps[a]=o[a]}),n};function m(o){const{sx:t}=o,r=e._objectWithoutPropertiesLoose(o,B),{systemProps:n,otherProps:s}=W(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...p)=>{const i=t(...p);return e.isPlainObject(i)?e._extends({},n,i):n}:a=e._extends({},n,t),e._extends({},s,{sx:a})}function C(o){return e.generateUtilityClass("MuiTypography",o)}e.generateUtilityClasses("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const M=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],$=o=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:s,variant:a,classes:p}=o,i={root:["root",a,o.align!=="inherit"&&`align${e.capitalize(t)}`,r&&"gutterBottom",n&&"noWrap",s&&"paragraph"]};return e.composeClasses(i,C,p)},N=e.styled("span",{name:"MuiTypography",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:r}=o;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${e.capitalize(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:o,ownerState:t})=>e._extends({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&o.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),g={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},R={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},q=o=>R[o]||o,f=j.forwardRef(function(t,r){const n=e.useThemeProps({props:t,name:"MuiTypography"}),s=q(n.color),a=m(e._extends({},n,{color:s})),{align:p="inherit",className:i,component:l,gutterBottom:d=!1,noWrap:T=!1,paragraph:h=!1,variant:c="body1",variantMapping:y=g}=a,P=e._objectWithoutPropertiesLoose(a,M),u=e._extends({},a,{align:p,color:s,className:i,component:l,gutterBottom:d,noWrap:T,paragraph:h,variant:c,variantMapping:y}),b=l||(h?"p":y[c]||g[c])||"span",x=$(u);return _.jsx(N,e._extends({as:b,ref:r,ownerState:u,className:e.clsx(x.root,i)},P))});process.env.NODE_ENV!=="production"&&(f.propTypes={align:e.PropTypes.oneOf(["center","inherit","justify","left","right"]),children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,gutterBottom:e.PropTypes.bool,noWrap:e.PropTypes.bool,paragraph:e.PropTypes.bool,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]),variant:e.PropTypes.oneOfType([e.PropTypes.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),e.PropTypes.string]),variantMapping:e.PropTypes.object});const D=f;exports.Typography=D;exports.extendSxProp=m;
|
|
@@ -1 +0,0 @@
|
|
|
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,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 +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 +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 +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;
|