@cgi-learning-hub/ui 0.0.1-dev.1709023966 → 0.0.1-dev.1709044405
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-BOcHeUdU.cjs +1 -0
- package/dist/{Box-CPGTKTgx.js → Box-D7vtSZv3.js} +5 -5
- package/dist/{ButtonBase-B0tkJ9zf.js → ButtonBase-CWtGa3RS.js} +7 -6
- package/dist/{ButtonBase-DCL6Xlnm.cjs → ButtonBase-DiSWcqQX.cjs} +4 -4
- package/dist/{CircularProgress-CguDBnxV.js → CircularProgress-Cz74KUii.js} +37 -36
- package/dist/CircularProgress-DvzJ2zk9.cjs +28 -0
- package/dist/DefaultButton-3CeAmGTy.js +580 -0
- package/dist/DefaultButton-h0ISM4Pr.cjs +1 -0
- package/dist/IconButton-BRyHYK0S.cjs +2 -0
- package/dist/{IconButton-CJ1Nt-jf.js → IconButton-BvgHzYLs.js} +30 -28
- package/dist/{InputBase-C_yPRkam.js → InputBase-DXIea1Cc.js} +3 -3
- package/dist/{InputBase-Dvr5GnwD.cjs → InputBase-Dp2-NOH_.cjs} +3 -3
- package/dist/SearchInput-BVsQljml.js +176 -0
- package/dist/SearchInput-BbZiaK5Z.cjs +1 -0
- package/dist/Tabs-D7bi9NGH.js +1089 -0
- package/dist/Tabs-DBqF7m2y.cjs +4 -0
- package/dist/TextInput-CUnrSiJ9.js +5793 -0
- package/dist/TextInput-D7EBtZs8.cjs +12 -0
- package/dist/TimePicker-CZ8EXNU_.js +17528 -0
- package/dist/TimePicker-DjIOSP8-.cjs +16 -0
- package/dist/{Typography-CyFLZjnE.js → Typography-BsS5MVop.js} +39 -38
- package/dist/Typography-Dj96Ct2C.cjs +1 -0
- package/dist/components/Dropzone/Dropzone.cjs.js +2 -2
- package/dist/components/Dropzone/Dropzone.d.ts +3 -3
- package/dist/components/Dropzone/Dropzone.es.js +19 -14
- 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 +30 -2
- package/dist/components/index.es.js +85 -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-DWH-VQOB.cjs +2 -0
- package/dist/{createSvgIcon-m_wsenOJ.js → createSvgIcon-Dt2OaWlr.js} +11 -11
- package/dist/{createSvgIcon-KaSN8JhZ.js → createSvgIcon-FbpDQQ7X.js} +3 -3
- package/dist/createSvgIcon-K1XmJ33T.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +85 -18
- package/dist/refType-BgO8A5K8.cjs +1 -0
- package/dist/{refType-Hh9tfnoF.js → refType-D_zuIflA.js} +1 -1
- package/dist/{useThemeProps-Dg9Uoq7q.js → styled-DWGei2G_.js} +621 -611
- package/dist/{useThemeProps-jkB5q9ie.cjs → styled-DhUFTujV.cjs} +22 -22
- 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-80kGxOhD.js} +2 -2
- package/dist/useSlotProps-DZRn5pp7.cjs +1 -0
- package/dist/{useTheme-DJEDOopE.js → useTheme-Jkpgyx74.js} +1 -1
- package/dist/useTheme-dCptpuPr.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/{useForkRef-DwN_Iz9R.js → useForkRef-CQ5u1_mH.js} +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./styled-DhUFTujV.cjs"),x=require("react"),T=require("react/jsx-runtime"),P=require("./Typography-Dj96Ct2C.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(x),N=["className","component"];function g(o={}){const{themeId:t,defaultTheme:s,defaultClassName:r="MuiBox-root",generateClassName:a}=o,u=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:y="div"}=p,f=e._objectWithoutPropertiesLoose(p,N);return T.jsx(u,e._extends({as:y,ref:d,className:e.clsx(m,a?a(r):r),theme:t&&c[t]||c},f))})}const B=e.generateUtilityClasses("MuiBox",["root"]),O=B,_=e.createTheme(),l=g({themeId:e.THEME_ID,defaultTheme:_,defaultClassName:O.root,generateClassName:e.ClassNameGenerator.generate});process.env.NODE_ENV!=="production"&&(l.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=l;exports.Box=j;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as h, k as T, u as B,
|
|
2
|
-
import * as
|
|
1
|
+
import { j as h, k as T, u as B, f as N, _ as y, h as C, a as _, l as b, T as P, C as j, P as e } from "./styled-DWGei2G_.js";
|
|
2
|
+
import * as g from "react";
|
|
3
3
|
import { jsx as v } from "react/jsx-runtime";
|
|
4
|
-
import { e as E } from "./Typography-
|
|
4
|
+
import { e as E } from "./Typography-BsS5MVop.js";
|
|
5
5
|
const O = ["className", "component"];
|
|
6
6
|
function I(m = {}) {
|
|
7
7
|
const {
|
|
@@ -12,7 +12,7 @@ function I(m = {}) {
|
|
|
12
12
|
} = m, x = h("div", {
|
|
13
13
|
shouldForwardProp: (o) => o !== "theme" && o !== "sx" && o !== "as"
|
|
14
14
|
})(T);
|
|
15
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ g.forwardRef(function(d, f) {
|
|
16
16
|
const s = B(l), r = E(d), {
|
|
17
17
|
className: u,
|
|
18
18
|
component: i = "div"
|
|
@@ -29,7 +29,7 @@ const M = _("MuiBox", ["root"]), R = M, S = b(), c = I({
|
|
|
29
29
|
themeId: P,
|
|
30
30
|
defaultTheme: S,
|
|
31
31
|
defaultClassName: R.root,
|
|
32
|
-
generateClassName:
|
|
32
|
+
generateClassName: j.generate
|
|
33
33
|
});
|
|
34
34
|
process.env.NODE_ENV !== "production" && (c.propTypes = {
|
|
35
35
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { _ as Y,
|
|
1
|
+
import { _ as Y, f as ie, P as e, h as x, a as ye, s as re, e as Te, g as Xe, i as Ye } from "./styled-DWGei2G_.js";
|
|
2
2
|
import * as p from "react";
|
|
3
3
|
import W, { Children as Ae, isValidElement as G, cloneElement as J } from "react";
|
|
4
4
|
import { jsx as I, jsxs as qe } from "react/jsx-runtime";
|
|
5
|
-
import { u as We, a as H } from "./useTimeout-
|
|
5
|
+
import { u as We, a as H } from "./useTimeout-C7IkLqZ9.js";
|
|
6
6
|
import { _ as He, T as de } from "./TransitionGroupContext-C7wWJ6l7.js";
|
|
7
7
|
import { keyframes as se } from "@emotion/react";
|
|
8
|
-
import { a as he } from "./useForkRef-
|
|
9
|
-
import { u as Ge } from "./useIsFocusVisible-
|
|
10
|
-
import { r as Je, e as Qe } from "./refType-
|
|
8
|
+
import { a as he } from "./useForkRef-CQ5u1_mH.js";
|
|
9
|
+
import { u as Ge } from "./useIsFocusVisible-B88all80.js";
|
|
10
|
+
import { r as Je, e as Qe } from "./refType-D_zuIflA.js";
|
|
11
11
|
function Ze(t) {
|
|
12
12
|
if (t === void 0)
|
|
13
13
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -827,5 +827,6 @@ process.env.NODE_ENV !== "production" && (Ce.propTypes = {
|
|
|
827
827
|
});
|
|
828
828
|
const Bt = Ce;
|
|
829
829
|
export {
|
|
830
|
-
Bt as B
|
|
830
|
+
Bt as B,
|
|
831
|
+
rt as T
|
|
831
832
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("./
|
|
1
|
+
"use strict";const e=require("./styled-DhUFTujV.cjs"),y=require("react"),_=require("react/jsx-runtime"),X=require("./useTimeout-DHarDhEH.cjs"),Z=require("./TransitionGroupContext-g4tmk10h.cjs"),te=require("@emotion/react"),ae=require("./useForkRef-DfdM2MN5.cjs"),Oe=require("./useIsFocusVisible-9FderFRK.cjs"),ue=require("./refType-BgO8A5K8.cjs");function $e(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(s,r,a.get?a:{enumerable:!0,get:()=>t[r]})}}return s.default=t,Object.freeze(s)}const p=$e(y);function Ie(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ne(t,s){var r=function(n){return s&&y.isValidElement(n)?s(n):n},a=Object.create(null);return t&&y.Children.map(t,function(o){return o}).forEach(function(o){a[o.key]=r(o)}),a}function Ue(t,s){t=t||{},s=s||{};function r(h){return h in s?s[h]:t[h]}var a=Object.create(null),o=[];for(var n in t)n in s?o.length&&(a[n]=o,o=[]):o.push(n);var i,c={};for(var u in s){if(a[u])for(i=0;i<a[u].length;i++){var d=a[u][i];c[a[u][i]]=r(d)}c[u]=r(u)}for(i=0;i<o.length;i++)c[o[i]]=r(o[i]);return c}function w(t,s,r){return r[s]!=null?r[s]:t.props[s]}function qe(t,s){return ne(t.children,function(r){return y.cloneElement(r,{onExited:s.bind(null,r),in:!0,appear:w(r,"appear",t),enter:w(r,"enter",t),exit:w(r,"exit",t)})})}function ze(t,s,r){var a=ne(t.children),o=Ue(s,a);return Object.keys(o).forEach(function(n){var i=o[n];if(y.isValidElement(i)){var c=n in s,u=n in a,d=s[n],h=y.isValidElement(d)&&!d.props.in;u&&(!c||h)?o[n]=y.cloneElement(i,{onExited:r.bind(null,i),in:!0,exit:w(i,"exit",t),enter:w(i,"enter",t)}):!u&&c&&!h?o[n]=y.cloneElement(i,{in:!1}):u&&c&&y.isValidElement(d)&&(o[n]=y.cloneElement(i,{onExited:r.bind(null,i),in:d.props.in,exit:w(i,"exit",t),enter:w(i,"enter",t)}))}}),o}var Ke=Object.values||function(t){return Object.keys(t).map(function(s){return t[s]})},Xe={component:"div",childFactory:function(s){return s}},oe=function(t){Z._inheritsLoose(s,t);function s(a,o){var n;n=t.call(this,a,o)||this;var i=n.handleExited.bind(Ie(n));return n.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},n}var r=s.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},s.getDerivedStateFromProps=function(o,n){var i=n.children,c=n.handleExited,u=n.firstRender;return{children:u?qe(o,c):ze(o,i,c),firstRender:!1}},r.handleExited=function(o,n){var i=ne(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(n),this.mounted&&this.setState(function(c){var u=e._extends({},c.children);return delete u[o.key],{children:u}}))},r.render=function(){var o=this.props,n=o.component,i=o.childFactory,c=e._objectWithoutPropertiesLoose(o,["component","childFactory"]),u=this.state.contextValue,d=Ke(this.state.children).map(i);return delete c.appear,delete c.enter,delete c.exit,n===null?y.createElement(Z.TransitionGroupContext.Provider,{value:u},d):y.createElement(Z.TransitionGroupContext.Provider,{value:u},y.createElement(n,c,d))},s}(y.Component);oe.propTypes=process.env.NODE_ENV!=="production"?{component:e.PropTypes.any,children:e.PropTypes.node,appear:e.PropTypes.bool,enter:e.PropTypes.bool,exit:e.PropTypes.bool,childFactory:e.PropTypes.func}:{};oe.defaultProps=Xe;const he=oe;function me(t){const{className:s,classes:r,pulsate:a=!1,rippleX:o,rippleY:n,rippleSize:i,in:c,onExited:u,timeout:d}=t,[h,g]=p.useState(!1),b=e.clsx(s,r.ripple,r.rippleVisible,a&&r.ripplePulsate),C={width:i,height:i,top:-(i/2)+n,left:-(i/2)+o},m=e.clsx(r.child,h&&r.childLeaving,a&&r.childPulsate);return!c&&!h&&g(!0),p.useEffect(()=>{if(!c&&u!=null){const R=setTimeout(u,d);return()=>{clearTimeout(R)}}},[u,c,d]),_.jsx("span",{className:b,style:C,children:_.jsx("span",{className:m})})}process.env.NODE_ENV!=="production"&&(me.propTypes={classes:e.PropTypes.object.isRequired,className:e.PropTypes.string,in:e.PropTypes.bool,onExited:e.PropTypes.func,pulsate:e.PropTypes.bool,rippleSize:e.PropTypes.number,rippleX:e.PropTypes.number,rippleY:e.PropTypes.number,timeout:e.PropTypes.number.isRequired});const T=e.generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ye=["center","classes","className"];let W=t=>t,ce,pe,de,fe;const ee=550,Ae=80,We=te.keyframes(ce||(ce=W`
|
|
2
2
|
0% {
|
|
3
3
|
transform: scale(0);
|
|
4
4
|
opacity: 0.1;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
100% {
|
|
29
29
|
transform: scale(1);
|
|
30
30
|
}
|
|
31
|
-
`)),Je=e.styled("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Qe=e.styled(
|
|
31
|
+
`)),Je=e.styled("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Qe=e.styled(me,{name:"MuiTouchRipple",slot:"Ripple"})(fe||(fe=W`
|
|
32
32
|
opacity: 0;
|
|
33
33
|
position: absolute;
|
|
34
34
|
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
animation-iteration-count: infinite;
|
|
72
72
|
animation-delay: 200ms;
|
|
73
73
|
}
|
|
74
|
-
`),T.rippleVisible,We,ee,({theme:t})=>t.transitions.easing.easeInOut,T.ripplePulsate,({theme:t})=>t.transitions.duration.shorter,T.child,T.childLeaving,Ge,ee,({theme:t})=>t.transitions.easing.easeInOut,T.childPulsate,He,({theme:t})=>t.transitions.easing.easeInOut),
|
|
75
|
-
`))},[H]);const re=e._extends({},a,{centerRipple:n,component:u,disabled:d,disableRipple:h,disableTouchRipple:g,focusRipple:b,tabIndex:v,focusVisible:L}),
|
|
74
|
+
`),T.rippleVisible,We,ee,({theme:t})=>t.transitions.easing.easeInOut,T.ripplePulsate,({theme:t})=>t.transitions.duration.shorter,T.child,T.childLeaving,Ge,ee,({theme:t})=>t.transitions.easing.easeInOut,T.childPulsate,He,({theme:t})=>t.transitions.easing.easeInOut),ye=p.forwardRef(function(s,r){const a=e.useThemeProps({props:s,name:"MuiTouchRipple"}),{center:o=!1,classes:n={},className:i}=a,c=e._objectWithoutPropertiesLoose(a,Ye),[u,d]=p.useState([]),h=p.useRef(0),g=p.useRef(null);p.useEffect(()=>{g.current&&(g.current(),g.current=null)},[u]);const b=p.useRef(!1),C=X.useTimeout(),m=p.useRef(null),R=p.useRef(null),I=p.useCallback(f=>{const{pulsate:x,rippleX:M,rippleY:S,rippleSize:$,cb:q}=f;d(E=>[...E,_.jsx(Qe,{classes:{ripple:e.clsx(n.ripple,T.ripple),rippleVisible:e.clsx(n.rippleVisible,T.rippleVisible),ripplePulsate:e.clsx(n.ripplePulsate,T.ripplePulsate),child:e.clsx(n.child,T.child),childLeaving:e.clsx(n.childLeaving,T.childLeaving),childPulsate:e.clsx(n.childPulsate,T.childPulsate)},timeout:ee,pulsate:x,rippleX:M,rippleY:S,rippleSize:$},h.current)]),h.current+=1,g.current=q},[n]),F=p.useCallback((f={},x={},M=()=>{})=>{const{pulsate:S=!1,center:$=o||x.pulsate,fakeElement:q=!1}=x;if((f==null?void 0:f.type)==="mousedown"&&b.current){b.current=!1;return}(f==null?void 0:f.type)==="touchstart"&&(b.current=!0);const E=q?null:R.current,D=E?E.getBoundingClientRect():{width:0,height:0,left:0,top:0};let v,k,B;if($||f===void 0||f.clientX===0&&f.clientY===0||!f.clientX&&!f.touches)v=Math.round(D.width/2),k=Math.round(D.height/2);else{const{clientX:j,clientY:V}=f.touches&&f.touches.length>0?f.touches[0]:f;v=Math.round(j-D.left),k=Math.round(V-D.top)}if($)B=Math.sqrt((2*D.width**2+D.height**2)/3),B%2===0&&(B+=1);else{const j=Math.max(Math.abs((E?E.clientWidth:0)-v),v)*2+2,V=Math.max(Math.abs((E?E.clientHeight:0)-k),k)*2+2;B=Math.sqrt(j**2+V**2)}f!=null&&f.touches?m.current===null&&(m.current=()=>{I({pulsate:S,rippleX:v,rippleY:k,rippleSize:B,cb:M})},C.start(Ae,()=>{m.current&&(m.current(),m.current=null)})):I({pulsate:S,rippleX:v,rippleY:k,rippleSize:B,cb:M})},[o,I,C]),U=p.useCallback(()=>{F({},{pulsate:!0})},[F]),O=p.useCallback((f,x)=>{if(C.clear(),(f==null?void 0:f.type)==="touchend"&&m.current){m.current(),m.current=null,C.start(0,()=>{O(f,x)});return}m.current=null,d(M=>M.length>0?M.slice(1):M),g.current=x},[C]);return p.useImperativeHandle(r,()=>({pulsate:U,start:F,stop:O}),[U,F,O]),_.jsx(Je,e._extends({className:e.clsx(T.root,n.root,i),ref:R},c,{children:_.jsx(he,{component:null,exit:!0,children:u})}))});process.env.NODE_ENV!=="production"&&(ye.propTypes={center:e.PropTypes.bool,classes:e.PropTypes.object,className:e.PropTypes.string});const Ze=ye;function et(t){return e.generateUtilityClass("MuiButtonBase",t)}const tt=e.generateUtilityClasses("MuiButtonBase",["root","disabled","focusVisible"]),nt=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],ot=t=>{const{disabled:s,focusVisible:r,focusVisibleClassName:a,classes:o}=t,n={root:["root",s&&"disabled",r&&"focusVisible"]},i=e.composeClasses(n,et,o);return r&&a&&(i.root+=` ${a}`),i},st=e.styled("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${tt.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Te=p.forwardRef(function(s,r){const a=e.useThemeProps({props:s,name:"MuiButtonBase"}),{action:o,centerRipple:n=!1,children:i,className:c,component:u="button",disabled:d=!1,disableRipple:h=!1,disableTouchRipple:g=!1,focusRipple:b=!1,LinkComponent:C="a",onBlur:m,onClick:R,onContextMenu:I,onDragLeave:F,onFocus:U,onFocusVisible:O,onKeyDown:f,onKeyUp:x,onMouseDown:M,onMouseLeave:S,onMouseUp:$,onTouchEnd:q,onTouchMove:E,onTouchStart:D,tabIndex:v=0,TouchRippleProps:k,touchRippleRef:B,type:j}=a,V=e._objectWithoutPropertiesLoose(a,nt),z=p.useRef(null),P=p.useRef(null),be=ae.useForkRef(P,B),{isFocusVisibleRef:se,onFocus:Pe,onBlur:ge,ref:Re}=Oe.useIsFocusVisible(),[L,Y]=p.useState(!1);d&&L&&Y(!1),p.useImperativeHandle(o,()=>({focusVisible:()=>{Y(!0),z.current.focus()}}),[]);const[G,xe]=p.useState(!1);p.useEffect(()=>{xe(!0)},[]);const H=G&&!h&&!d;p.useEffect(()=>{L&&b&&!h&&G&&P.current.pulsate()},[h,b,L,G]);function N(l,ie,Fe=g){return X.useEventCallback(le=>(ie&&ie(le),!Fe&&P.current&&P.current[l](le),!0))}const Me=N("start",M),Ee=N("stop",I),Ce=N("stop",F),ve=N("stop",$),Ve=N("stop",l=>{L&&l.preventDefault(),S&&S(l)}),Ne=N("start",D),De=N("stop",q),ke=N("stop",E),Be=N("stop",l=>{ge(l),se.current===!1&&Y(!1),m&&m(l)},!1),Se=X.useEventCallback(l=>{z.current||(z.current=l.currentTarget),Pe(l),se.current===!0&&(Y(!0),O&&O(l)),U&&U(l)}),J=()=>{const l=z.current;return u&&u!=="button"&&!(l.tagName==="A"&&l.href)},Q=p.useRef(!1),je=X.useEventCallback(l=>{b&&!Q.current&&L&&P.current&&l.key===" "&&(Q.current=!0,P.current.stop(l,()=>{P.current.start(l)})),l.target===l.currentTarget&&J()&&l.key===" "&&l.preventDefault(),f&&f(l),l.target===l.currentTarget&&J()&&l.key==="Enter"&&!d&&(l.preventDefault(),R&&R(l))}),Le=X.useEventCallback(l=>{b&&l.key===" "&&P.current&&L&&!l.defaultPrevented&&(Q.current=!1,P.current.stop(l,()=>{P.current.pulsate(l)})),x&&x(l),R&&l.target===l.currentTarget&&J()&&l.key===" "&&!l.defaultPrevented&&R(l)});let A=u;A==="button"&&(V.href||V.to)&&(A=C);const K={};A==="button"?(K.type=j===void 0?"button":j,K.disabled=d):(!V.href&&!V.to&&(K.role="button"),d&&(K["aria-disabled"]=d));const we=ae.useForkRef(r,Re,z);process.env.NODE_ENV!=="production"&&p.useEffect(()=>{H&&!P.current&&console.error(["MUI: The `component` prop provided to ButtonBase is invalid.","Please make sure the children prop is rendered in this custom component."].join(`
|
|
75
|
+
`))},[H]);const re=e._extends({},a,{centerRipple:n,component:u,disabled:d,disableRipple:h,disableTouchRipple:g,focusRipple:b,tabIndex:v,focusVisible:L}),_e=ot(re);return _.jsxs(st,e._extends({as:A,className:e.clsx(_e.root,c),ownerState:re,onBlur:Be,onClick:R,onContextMenu:Ee,onFocus:Se,onKeyDown:je,onKeyUp:Le,onMouseDown:Me,onMouseLeave:Ve,onMouseUp:ve,onDragLeave:Ce,onTouchEnd:De,onTouchMove:ke,onTouchStart:Ne,ref:we,tabIndex:d?-1:v,type:j},K,V,{children:[i,H?_.jsx(Ze,e._extends({ref:be,center:n},k)):null]}))});process.env.NODE_ENV!=="production"&&(Te.propTypes={action:ue.refType,centerRipple:e.PropTypes.bool,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:ue.elementTypeAcceptingRef,disabled:e.PropTypes.bool,disableRipple:e.PropTypes.bool,disableTouchRipple:e.PropTypes.bool,focusRipple:e.PropTypes.bool,focusVisibleClassName:e.PropTypes.string,href:e.PropTypes.any,LinkComponent:e.PropTypes.elementType,onBlur:e.PropTypes.func,onClick:e.PropTypes.func,onContextMenu:e.PropTypes.func,onDragLeave:e.PropTypes.func,onFocus:e.PropTypes.func,onFocusVisible:e.PropTypes.func,onKeyDown:e.PropTypes.func,onKeyUp:e.PropTypes.func,onMouseDown:e.PropTypes.func,onMouseLeave:e.PropTypes.func,onMouseUp:e.PropTypes.func,onTouchEnd:e.PropTypes.func,onTouchMove:e.PropTypes.func,onTouchStart:e.PropTypes.func,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]),tabIndex:e.PropTypes.number,TouchRippleProps:e.PropTypes.object,touchRippleRef:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.shape({current:e.PropTypes.shape({pulsate:e.PropTypes.func.isRequired,start:e.PropTypes.func.isRequired,stop:e.PropTypes.func.isRequired})})]),type:e.PropTypes.oneOfType([e.PropTypes.oneOf(["button","reset","submit"]),e.PropTypes.string])});const rt=Te;exports.ButtonBase=rt;exports.TransitionGroup=he;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as R, a as j, s as y, c as l, _ as i, e as U, f as z, h as E, P as e, i as I } from "./styled-DWGei2G_.js";
|
|
2
2
|
import * as F from "react";
|
|
3
3
|
import { jsx as g } from "react/jsx-runtime";
|
|
4
|
-
import { c as K } from "./refType-
|
|
4
|
+
import { c as K } from "./refType-D_zuIflA.js";
|
|
5
5
|
import { keyframes as D, css as _ } from "@emotion/react";
|
|
6
6
|
function V(r) {
|
|
7
7
|
return R("MuiCircularProgress", r);
|
|
8
8
|
}
|
|
9
|
-
j("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const o = 44, B = D(P || (P = d`
|
|
9
|
+
const W = j("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]), rr = W, B = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
|
|
10
|
+
let d = (r) => r, x, S, $, w;
|
|
11
|
+
const a = 44, G = D(x || (x = d`
|
|
13
12
|
0% {
|
|
14
13
|
transform: rotate(0deg);
|
|
15
14
|
}
|
|
@@ -17,7 +16,7 @@ const o = 44, B = D(P || (P = d`
|
|
|
17
16
|
100% {
|
|
18
17
|
transform: rotate(360deg);
|
|
19
18
|
}
|
|
20
|
-
`)),
|
|
19
|
+
`)), L = D(S || (S = d`
|
|
21
20
|
0% {
|
|
22
21
|
stroke-dasharray: 1px, 200px;
|
|
23
22
|
stroke-dashoffset: 0;
|
|
@@ -32,19 +31,19 @@ const o = 44, B = D(P || (P = d`
|
|
|
32
31
|
stroke-dasharray: 100px, 200px;
|
|
33
32
|
stroke-dashoffset: -125px;
|
|
34
33
|
}
|
|
35
|
-
`)),
|
|
34
|
+
`)), Y = (r) => {
|
|
36
35
|
const {
|
|
37
36
|
classes: s,
|
|
38
37
|
variant: t,
|
|
39
|
-
color:
|
|
40
|
-
disableShrink:
|
|
41
|
-
} = r,
|
|
42
|
-
root: ["root", t, `color${l(
|
|
38
|
+
color: o,
|
|
39
|
+
disableShrink: u
|
|
40
|
+
} = r, m = {
|
|
41
|
+
root: ["root", t, `color${l(o)}`],
|
|
43
42
|
svg: ["svg"],
|
|
44
|
-
circle: ["circle", `circle${l(t)}`,
|
|
43
|
+
circle: ["circle", `circle${l(t)}`, u && "circleDisableShrink"]
|
|
45
44
|
};
|
|
46
|
-
return I(
|
|
47
|
-
},
|
|
45
|
+
return I(m, V, s);
|
|
46
|
+
}, Z = y("span", {
|
|
48
47
|
name: "MuiCircularProgress",
|
|
49
48
|
slot: "Root",
|
|
50
49
|
overridesResolver: (r, s) => {
|
|
@@ -66,14 +65,14 @@ const o = 44, B = D(P || (P = d`
|
|
|
66
65
|
ownerState: r
|
|
67
66
|
}) => r.variant === "indeterminate" && _($ || ($ = d`
|
|
68
67
|
animation: ${0} 1.4s linear infinite;
|
|
69
|
-
`),
|
|
68
|
+
`), G)), q = y("svg", {
|
|
70
69
|
name: "MuiCircularProgress",
|
|
71
70
|
slot: "Svg",
|
|
72
71
|
overridesResolver: (r, s) => s.svg
|
|
73
72
|
})({
|
|
74
73
|
display: "block"
|
|
75
74
|
// Keeps the progress centered
|
|
76
|
-
}),
|
|
75
|
+
}), A = y("circle", {
|
|
77
76
|
name: "MuiCircularProgress",
|
|
78
77
|
slot: "Circle",
|
|
79
78
|
overridesResolver: (r, s) => {
|
|
@@ -98,33 +97,33 @@ const o = 44, B = D(P || (P = d`
|
|
|
98
97
|
ownerState: r
|
|
99
98
|
}) => r.variant === "indeterminate" && !r.disableShrink && _(w || (w = d`
|
|
100
99
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
101
|
-
`),
|
|
102
|
-
const
|
|
100
|
+
`), L)), M = /* @__PURE__ */ F.forwardRef(function(s, t) {
|
|
101
|
+
const o = U({
|
|
103
102
|
props: s,
|
|
104
103
|
name: "MuiCircularProgress"
|
|
105
104
|
}), {
|
|
106
|
-
className:
|
|
107
|
-
color:
|
|
105
|
+
className: u,
|
|
106
|
+
color: m = "primary",
|
|
108
107
|
disableShrink: T = !1,
|
|
109
108
|
size: f = 40,
|
|
110
109
|
style: N,
|
|
111
110
|
thickness: n = 3.6,
|
|
112
111
|
value: p = 0,
|
|
113
112
|
variant: k = "indeterminate"
|
|
114
|
-
} =
|
|
115
|
-
color:
|
|
113
|
+
} = o, O = z(o, B), c = i({}, o, {
|
|
114
|
+
color: m,
|
|
116
115
|
disableShrink: T,
|
|
117
116
|
size: f,
|
|
118
117
|
thickness: n,
|
|
119
118
|
value: p,
|
|
120
119
|
variant: k
|
|
121
|
-
}), h =
|
|
120
|
+
}), h = Y(c), v = {}, b = {}, C = {};
|
|
122
121
|
if (k === "determinate") {
|
|
123
|
-
const
|
|
124
|
-
v.strokeDasharray =
|
|
122
|
+
const P = 2 * Math.PI * ((a - n) / 2);
|
|
123
|
+
v.strokeDasharray = P.toFixed(3), C["aria-valuenow"] = Math.round(p), v.strokeDashoffset = `${((100 - p) / 100 * P).toFixed(3)}px`, b.transform = "rotate(-90deg)";
|
|
125
124
|
}
|
|
126
|
-
return /* @__PURE__ */ g(
|
|
127
|
-
className: E(h.root,
|
|
125
|
+
return /* @__PURE__ */ g(Z, i({
|
|
126
|
+
className: E(h.root, u),
|
|
128
127
|
style: i({
|
|
129
128
|
width: f,
|
|
130
129
|
height: f
|
|
@@ -133,17 +132,17 @@ const o = 44, B = D(P || (P = d`
|
|
|
133
132
|
ref: t,
|
|
134
133
|
role: "progressbar"
|
|
135
134
|
}, C, O, {
|
|
136
|
-
children: /* @__PURE__ */ g(
|
|
135
|
+
children: /* @__PURE__ */ g(q, {
|
|
137
136
|
className: h.svg,
|
|
138
137
|
ownerState: c,
|
|
139
|
-
viewBox: `${
|
|
140
|
-
children: /* @__PURE__ */ g(
|
|
138
|
+
viewBox: `${a / 2} ${a / 2} ${a} ${a}`,
|
|
139
|
+
children: /* @__PURE__ */ g(A, {
|
|
141
140
|
className: h.circle,
|
|
142
141
|
style: v,
|
|
143
142
|
ownerState: c,
|
|
144
|
-
cx:
|
|
145
|
-
cy:
|
|
146
|
-
r: (
|
|
143
|
+
cx: a,
|
|
144
|
+
cy: a,
|
|
145
|
+
r: (a - n) / 2,
|
|
147
146
|
fill: "none",
|
|
148
147
|
strokeWidth: n
|
|
149
148
|
})
|
|
@@ -209,7 +208,9 @@ process.env.NODE_ENV !== "production" && (M.propTypes = {
|
|
|
209
208
|
*/
|
|
210
209
|
variant: e.oneOf(["determinate", "indeterminate"])
|
|
211
210
|
});
|
|
212
|
-
const
|
|
211
|
+
const er = M;
|
|
213
212
|
export {
|
|
214
|
-
|
|
213
|
+
er as C,
|
|
214
|
+
rr as c,
|
|
215
|
+
V as g
|
|
215
216
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";const e=require("./styled-DhUFTujV.cjs"),D=require("react"),P=require("react/jsx-runtime"),w=require("./refType-BgO8A5K8.cjs"),c=require("@emotion/react");function M(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 N=M(D);function S(r){return e.generateUtilityClass("MuiCircularProgress",r)}const R=e.generateUtilityClasses("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]),z=R,q=["className","color","disableShrink","size","style","thickness","value","variant"];let l=r=>r,T,b,C,x;const a=44,U=c.keyframes(T||(T=l`
|
|
2
|
+
0% {
|
|
3
|
+
transform: rotate(0deg);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
100% {
|
|
7
|
+
transform: rotate(360deg);
|
|
8
|
+
}
|
|
9
|
+
`)),E=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
|
+
`)),I=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,S,s)},F=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(C||(C=l`
|
|
25
|
+
animation: ${0} 1.4s linear infinite;
|
|
26
|
+
`),U)),K=e.styled("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(r,s)=>s.svg})({display:"block"}),V=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(x||(x=l`
|
|
27
|
+
animation: ${0} 1.4s ease-in-out infinite;
|
|
28
|
+
`),E)),_=N.forwardRef(function(s,t){const o=e.useThemeProps({props:s,name:"MuiCircularProgress"}),{className:p,color:u="primary",disableShrink:$=!1,size:d=40,style:O,thickness:i=3.6,value:y=0,variant:h="indeterminate"}=o,j=e._objectWithoutPropertiesLoose(o,q),n=e._extends({},o,{color:u,disableShrink:$,size:d,thickness:i,value:y,variant:h}),f=I(n),m={},g={},v={};if(h==="determinate"){const k=2*Math.PI*((a-i)/2);m.strokeDasharray=k.toFixed(3),v["aria-valuenow"]=Math.round(y),m.strokeDashoffset=`${((100-y)/100*k).toFixed(3)}px`,g.transform="rotate(-90deg)"}return P.jsx(F,e._extends({className:e.clsx(f.root,p),style:e._extends({width:d,height:d},g,O),ownerState:n,ref:t,role:"progressbar"},v,j,{children:P.jsx(K,{className:f.svg,ownerState:n,viewBox:`${a/2} ${a/2} ${a} ${a}`,children:P.jsx(V,{className:f.circle,style:m,ownerState:n,cx:a,cy:a,r:(a-i)/2,fill:"none",strokeWidth:i})})}))});process.env.NODE_ENV!=="production"&&(_.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:w.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 W=_;exports.CircularProgress=W;exports.circularProgressClasses=z;exports.getCircularProgressUtilityClass=S;
|