@cgi-learning-hub/ui 1.3.5-dev.1739207023 → 1.3.5-dev.1739269730
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-C-bZSJCq.cjs +28 -0
- package/dist/Button-CSNPv43f.js +542 -0
- package/dist/CloseRounded-Cu-sn6XC.cjs +1 -0
- package/dist/CloseRounded-Df8vYhLX.js +8 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +4 -297
- package/dist/components/Button/index.cjs.js +1 -1
- package/dist/components/Button/index.es.js +2 -2
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +12 -14
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.cjs.js +1 -1
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +4 -3
- package/dist/components/FileList/FileIcon.cjs.js +1 -0
- package/dist/components/FileList/FileIcon.d.ts +3 -0
- package/dist/components/FileList/FileIcon.es.js +56 -0
- package/dist/components/FileList/FileInfosSeparator.cjs.js +1 -0
- package/dist/components/FileList/FileInfosSeparator.d.ts +1 -0
- package/dist/components/FileList/FileInfosSeparator.es.js +14 -0
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.d.ts +5 -3
- package/dist/components/FileList/FileList.es.js +23 -14
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.d.ts +9 -5
- package/dist/components/FileList/FileListItem.es.js +97 -24
- package/dist/components/FileList/utils.cjs.js +1 -0
- package/dist/components/FileList/utils.d.ts +2 -0
- package/dist/components/FileList/utils.es.js +13 -0
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +40 -39
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +212 -213
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +1 -1
- package/dist/components/stories/FileList.stories.cjs.js +8 -1
- package/dist/components/stories/FileList.stories.es.js +145 -19
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +212 -213
- package/package.json +1 -1
- package/dist/CircularProgress-BgUNlpbU.js +0 -253
- package/dist/CircularProgress-nxAXvjY0.cjs +0 -28
- package/dist/Delete-DCHX_nNr.js +0 -8
- package/dist/Delete-Z2rf9szx.cjs +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";const a=require("react/jsx-runtime"),s=require("./DefaultPropsProvider-PRhNsS_3.cjs"),D=require("react"),t=require("./generateUtilityClasses-0dYt6eGZ.cjs"),k=require("./Button-COTy9ASL.cjs"),E=require("./useId-DNXtOFeX.cjs"),u=require("./capitalize-Cq3s4y8R.cjs"),C=require("./memoTheme-D1tPxCd9.cjs"),N=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),M=require("./chainPropTypes-CEUi6Jb4.cjs"),S=require("@emotion/react");function U(o){const e=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(e,r,n.get?n:{enumerable:!0,get:()=>o[r]})}}return e.default=o,Object.freeze(e)}const $=U(D);function z(o){return t.generateUtilityClass("MuiCircularProgress",o)}const q=t.generateUtilityClasses("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]),p=44,j=S.keyframes`
|
|
2
|
+
0% {
|
|
3
|
+
transform: rotate(0deg);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
100% {
|
|
7
|
+
transform: rotate(360deg);
|
|
8
|
+
}
|
|
9
|
+
`,w=S.keyframes`
|
|
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
|
+
`,F=typeof j!="string"?S.css`
|
|
25
|
+
animation: ${j} 1.4s linear infinite;
|
|
26
|
+
`:null,W=typeof w!="string"?S.css`
|
|
27
|
+
animation: ${w} 1.4s ease-in-out infinite;
|
|
28
|
+
`:null,V=o=>{const{classes:e,variant:r,color:n,disableShrink:g}=o,l={root:["root",r,`color${u.capitalize(n)}`],svg:["svg"],circle:["circle",`circle${u.capitalize(r)}`,g&&"circleDisableShrink"]};return s.composeClasses(l,z,e)},_=s.styled("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:r}=o;return[e.root,e[r.variant],e[`color${u.capitalize(r.color)}`]]}})(C.memoTheme(({theme:o})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:o.transitions.create("transform")}},{props:{variant:"indeterminate"},style:F||{animation:`${j} 1.4s linear infinite`}},...Object.entries(o.palette).filter(N.createSimplePaletteValueFilter()).map(([e])=>({props:{color:e},style:{color:(o.vars||o).palette[e].main}}))]}))),A=s.styled("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(o,e)=>e.svg})({display:"block"}),G=s.styled("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(o,e)=>{const{ownerState:r}=o;return[e.circle,e[`circle${u.capitalize(r.variant)}`],r.disableShrink&&e.circleDisableShrink]}})(C.memoTheme(({theme:o})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:o.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:W||{animation:`${w} 1.4s ease-in-out infinite`}}]}))),B=$.forwardRef(function(e,r){const n=s.useDefaultProps({props:e,name:"MuiCircularProgress"}),{className:g,color:l="primary",disableShrink:T=!1,size:P=40,style:L,thickness:c=3.6,value:b=0,variant:I="indeterminate",...x}=n,f={...n,color:l,disableShrink:T,size:P,thickness:c,value:b,variant:I},m=V(f),h={},d={},y={};if(I==="determinate"){const v=2*Math.PI*((p-c)/2);h.strokeDasharray=v.toFixed(3),y["aria-valuenow"]=Math.round(b),h.strokeDashoffset=`${((100-b)/100*v).toFixed(3)}px`,d.transform="rotate(-90deg)"}return a.jsx(_,{className:t.clsx(m.root,g),style:{width:P,height:P,...d,...L},ownerState:f,ref:r,role:"progressbar",...y,...x,children:a.jsx(A,{className:m.svg,ownerState:f,viewBox:`${p/2} ${p/2} ${p} ${p}`,children:a.jsx(G,{className:m.circle,style:h,ownerState:f,cx:p,cy:p,r:(p-c)/2,fill:"none",strokeWidth:c})})})});process.env.NODE_ENV!=="production"&&(B.propTypes={classes:t.PropTypes.object,className:t.PropTypes.string,color:t.PropTypes.oneOfType([t.PropTypes.oneOf(["inherit","primary","secondary","error","info","success","warning"]),t.PropTypes.string]),disableShrink:M.chainPropTypes(t.PropTypes.bool,o=>o.disableShrink&&o.variant&&o.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:t.PropTypes.oneOfType([t.PropTypes.number,t.PropTypes.string]),style:t.PropTypes.object,sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object]),thickness:t.PropTypes.number,value:t.PropTypes.number,variant:t.PropTypes.oneOf(["determinate","indeterminate"])});function K(o){return t.generateUtilityClass("MuiLoadingButton",o)}const i=t.generateUtilityClasses("MuiLoadingButton",["root","label","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),H=o=>{const{loading:e,loadingPosition:r,classes:n}=o,g={root:["root",e&&"loading"],label:["label"],startIcon:[e&&`startIconLoading${u.capitalize(r)}`],endIcon:[e&&`endIconLoading${u.capitalize(r)}`],loadingIndicator:["loadingIndicator",e&&`loadingIndicator${u.capitalize(r)}`]},l=s.composeClasses(g,K,n);return{...n,...l}},Y=o=>o!=="ownerState"&&o!=="theme"&&o!=="sx"&&o!=="as"&&o!=="classes",Z=s.styled(k.Button,{shouldForwardProp:o=>Y(o)||o==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(o,e)=>[e.root,e.startIconLoadingStart&&{[`& .${i.startIconLoadingStart}`]:e.startIconLoadingStart},e.endIconLoadingEnd&&{[`& .${i.endIconLoadingEnd}`]:e.endIconLoadingEnd}]})(C.memoTheme(({theme:o})=>({display:"inline-flex",[`& .${i.startIconLoadingStart}, & .${i.endIconLoadingEnd}`]:{transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.short}),opacity:0},variants:[{props:{loadingPosition:"center"},style:{transition:o.transitions.create(["background-color","box-shadow","border-color"],{duration:o.transitions.duration.short}),[`&.${i.loading}`]:{color:"transparent"}}},{props:({ownerState:e})=>e.loadingPosition==="start"&&e.fullWidth,style:{[`& .${i.startIconLoadingStart}, & .${i.endIconLoadingEnd}`]:{transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.short}),opacity:0,marginRight:-8}}},{props:({ownerState:e})=>e.loadingPosition==="end"&&e.fullWidth,style:{[`& .${i.startIconLoadingStart}, & .${i.endIconLoadingEnd}`]:{transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.short}),opacity:0,marginLeft:-8}}}]}))),J=s.styled("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(o,e)=>{const{ownerState:r}=o;return[e.loadingIndicator,e[`loadingIndicator${u.capitalize(r.loadingPosition)}`]]}})(C.memoTheme(({theme:o})=>({position:"absolute",visibility:"visible",display:"flex",variants:[{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:({loadingPosition:e,ownerState:r})=>e==="start"&&r.size!=="small",style:{left:14}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(o.vars||o).palette.action.disabled}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:({loadingPosition:e,ownerState:r})=>e==="end"&&r.size!=="small",style:{right:14}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:({ownerState:e})=>e.loadingPosition==="start"&&e.fullWidth,style:{position:"relative",left:-10}},{props:({ownerState:e})=>e.loadingPosition==="end"&&e.fullWidth,style:{position:"relative",right:-10}}]}))),O=s.styled("span",{name:"MuiLoadingButton",slot:"Label",overridesResolver:(o,e)=>[e.label]})({display:"inherit",alignItems:"inherit",justifyContent:"inherit"}),R=$.forwardRef(function(e,r){const n=$.useContext(k.ButtonGroupContext),g=k.resolveProps(n,e),l=s.useDefaultProps({props:g,name:"MuiLoadingButton"}),{children:T,disabled:P=!1,id:L,loading:c=!1,loadingIndicator:b,loadingPosition:I="center",variant:x="text",...f}=l,m=E.useId(L),h=b??a.jsx(B,{"aria-labelledby":m,color:"inherit",size:16}),d={...l,disabled:P,loading:c,loadingIndicator:h,loadingPosition:I,variant:x},y=H(d),v=c?a.jsx(J,{className:y.loadingIndicator,ownerState:d,children:h}):null;return a.jsxs(Z,{disabled:P||c,id:m,ref:r,...f,variant:x,classes:y,ownerState:d,children:[d.loadingPosition==="end"?a.jsx(O,{className:y.label,children:T}):v,d.loadingPosition==="end"?v:a.jsx(O,{className:y.label,children:T})]})});process.env.NODE_ENV!=="production"&&(R.propTypes={children:t.PropTypes.node,classes:t.PropTypes.object,disabled:t.PropTypes.bool,id:t.PropTypes.string,loading:t.PropTypes.bool,loadingIndicator:t.PropTypes.node,loadingPosition:M.chainPropTypes(t.PropTypes.oneOf(["start","end","center"]),o=>o.loadingPosition==="start"&&!o.startIcon?new Error('MUI: The loadingPosition="start" should be used in combination with startIcon.'):o.loadingPosition==="end"&&!o.endIcon?new Error('MUI: The loadingPosition="end" should be used in combination with endIcon.'):null),sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object]),variant:t.PropTypes.oneOfType([t.PropTypes.oneOf(["contained","outlined","text"]),t.PropTypes.string])});const Q=s.styled(R)(({color:o,theme:e})=>({minHeight:38,textTransform:"none",transition:"all 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","&.MuiButton-outlined":{borderRadius:5,borderWidth:2}})),X=({variant:o="outlined",...e})=>a.jsx(Q,{variant:o,...e});exports.Button=X;exports.CircularProgress=B;exports.circularProgressClasses=q;exports.getCircularProgressUtilityClass=z;
|
|
@@ -0,0 +1,542 @@
|
|
|
1
|
+
import { jsx as d, jsxs as U } from "react/jsx-runtime";
|
|
2
|
+
import { u as M, s as f, c as E } from "./DefaultPropsProvider-CmOKr9hq.js";
|
|
3
|
+
import * as k from "react";
|
|
4
|
+
import { I as O, H as R, G as W, P as n } from "./generateUtilityClasses-v9KcqdK1.js";
|
|
5
|
+
import { a as F, r as V, B as G } from "./Button-DovfjBkz.js";
|
|
6
|
+
import { u as A } from "./useId-CK6Kn3Tn.js";
|
|
7
|
+
import { c as u } from "./capitalize-yX_QSknw.js";
|
|
8
|
+
import { m as S } from "./memoTheme-D-rebSfX.js";
|
|
9
|
+
import { c as H } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
10
|
+
import { c as T } from "./chainPropTypes-D9lkm76m.js";
|
|
11
|
+
import { css as D, keyframes as N } from "@emotion/react";
|
|
12
|
+
function K(o) {
|
|
13
|
+
return O("MuiCircularProgress", o);
|
|
14
|
+
}
|
|
15
|
+
const ho = R("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]), c = 44, $ = N`
|
|
16
|
+
0% {
|
|
17
|
+
transform: rotate(0deg);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
100% {
|
|
21
|
+
transform: rotate(360deg);
|
|
22
|
+
}
|
|
23
|
+
`, w = N`
|
|
24
|
+
0% {
|
|
25
|
+
stroke-dasharray: 1px, 200px;
|
|
26
|
+
stroke-dashoffset: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
50% {
|
|
30
|
+
stroke-dasharray: 100px, 200px;
|
|
31
|
+
stroke-dashoffset: -15px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
100% {
|
|
35
|
+
stroke-dasharray: 100px, 200px;
|
|
36
|
+
stroke-dashoffset: -125px;
|
|
37
|
+
}
|
|
38
|
+
`, _ = typeof $ != "string" ? D`
|
|
39
|
+
animation: ${$} 1.4s linear infinite;
|
|
40
|
+
` : null, Y = typeof w != "string" ? D`
|
|
41
|
+
animation: ${w} 1.4s ease-in-out infinite;
|
|
42
|
+
` : null, Z = (o) => {
|
|
43
|
+
const {
|
|
44
|
+
classes: t,
|
|
45
|
+
variant: r,
|
|
46
|
+
color: i,
|
|
47
|
+
disableShrink: g
|
|
48
|
+
} = o, a = {
|
|
49
|
+
root: ["root", r, `color${u(i)}`],
|
|
50
|
+
svg: ["svg"],
|
|
51
|
+
circle: ["circle", `circle${u(r)}`, g && "circleDisableShrink"]
|
|
52
|
+
};
|
|
53
|
+
return E(a, K, t);
|
|
54
|
+
}, q = f("span", {
|
|
55
|
+
name: "MuiCircularProgress",
|
|
56
|
+
slot: "Root",
|
|
57
|
+
overridesResolver: (o, t) => {
|
|
58
|
+
const {
|
|
59
|
+
ownerState: r
|
|
60
|
+
} = o;
|
|
61
|
+
return [t.root, t[r.variant], t[`color${u(r.color)}`]];
|
|
62
|
+
}
|
|
63
|
+
})(S(({
|
|
64
|
+
theme: o
|
|
65
|
+
}) => ({
|
|
66
|
+
display: "inline-block",
|
|
67
|
+
variants: [{
|
|
68
|
+
props: {
|
|
69
|
+
variant: "determinate"
|
|
70
|
+
},
|
|
71
|
+
style: {
|
|
72
|
+
transition: o.transitions.create("transform")
|
|
73
|
+
}
|
|
74
|
+
}, {
|
|
75
|
+
props: {
|
|
76
|
+
variant: "indeterminate"
|
|
77
|
+
},
|
|
78
|
+
style: _ || {
|
|
79
|
+
animation: `${$} 1.4s linear infinite`
|
|
80
|
+
}
|
|
81
|
+
}, ...Object.entries(o.palette).filter(H()).map(([t]) => ({
|
|
82
|
+
props: {
|
|
83
|
+
color: t
|
|
84
|
+
},
|
|
85
|
+
style: {
|
|
86
|
+
color: (o.vars || o).palette[t].main
|
|
87
|
+
}
|
|
88
|
+
}))]
|
|
89
|
+
}))), J = f("svg", {
|
|
90
|
+
name: "MuiCircularProgress",
|
|
91
|
+
slot: "Svg",
|
|
92
|
+
overridesResolver: (o, t) => t.svg
|
|
93
|
+
})({
|
|
94
|
+
display: "block"
|
|
95
|
+
// Keeps the progress centered
|
|
96
|
+
}), Q = f("circle", {
|
|
97
|
+
name: "MuiCircularProgress",
|
|
98
|
+
slot: "Circle",
|
|
99
|
+
overridesResolver: (o, t) => {
|
|
100
|
+
const {
|
|
101
|
+
ownerState: r
|
|
102
|
+
} = o;
|
|
103
|
+
return [t.circle, t[`circle${u(r.variant)}`], r.disableShrink && t.circleDisableShrink];
|
|
104
|
+
}
|
|
105
|
+
})(S(({
|
|
106
|
+
theme: o
|
|
107
|
+
}) => ({
|
|
108
|
+
stroke: "currentColor",
|
|
109
|
+
variants: [{
|
|
110
|
+
props: {
|
|
111
|
+
variant: "determinate"
|
|
112
|
+
},
|
|
113
|
+
style: {
|
|
114
|
+
transition: o.transitions.create("stroke-dashoffset")
|
|
115
|
+
}
|
|
116
|
+
}, {
|
|
117
|
+
props: {
|
|
118
|
+
variant: "indeterminate"
|
|
119
|
+
},
|
|
120
|
+
style: {
|
|
121
|
+
// Some default value that looks fine waiting for the animation to kicks in.
|
|
122
|
+
strokeDasharray: "80px, 200px",
|
|
123
|
+
strokeDashoffset: 0
|
|
124
|
+
// Add the unit to fix a Edge 16 and below bug.
|
|
125
|
+
}
|
|
126
|
+
}, {
|
|
127
|
+
props: ({
|
|
128
|
+
ownerState: t
|
|
129
|
+
}) => t.variant === "indeterminate" && !t.disableShrink,
|
|
130
|
+
style: Y || {
|
|
131
|
+
// At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
|
|
132
|
+
animation: `${w} 1.4s ease-in-out infinite`
|
|
133
|
+
}
|
|
134
|
+
}]
|
|
135
|
+
}))), j = /* @__PURE__ */ k.forwardRef(function(t, r) {
|
|
136
|
+
const i = M({
|
|
137
|
+
props: t,
|
|
138
|
+
name: "MuiCircularProgress"
|
|
139
|
+
}), {
|
|
140
|
+
className: g,
|
|
141
|
+
color: a = "primary",
|
|
142
|
+
disableShrink: P = !1,
|
|
143
|
+
size: m = 40,
|
|
144
|
+
style: C,
|
|
145
|
+
thickness: s = 3.6,
|
|
146
|
+
value: b = 0,
|
|
147
|
+
variant: L = "indeterminate",
|
|
148
|
+
...x
|
|
149
|
+
} = i, h = {
|
|
150
|
+
...i,
|
|
151
|
+
color: a,
|
|
152
|
+
disableShrink: P,
|
|
153
|
+
size: m,
|
|
154
|
+
thickness: s,
|
|
155
|
+
value: b,
|
|
156
|
+
variant: L
|
|
157
|
+
}, y = Z(h), v = {}, l = {}, p = {};
|
|
158
|
+
if (L === "determinate") {
|
|
159
|
+
const I = 2 * Math.PI * ((c - s) / 2);
|
|
160
|
+
v.strokeDasharray = I.toFixed(3), p["aria-valuenow"] = Math.round(b), v.strokeDashoffset = `${((100 - b) / 100 * I).toFixed(3)}px`, l.transform = "rotate(-90deg)";
|
|
161
|
+
}
|
|
162
|
+
return /* @__PURE__ */ d(q, {
|
|
163
|
+
className: W(y.root, g),
|
|
164
|
+
style: {
|
|
165
|
+
width: m,
|
|
166
|
+
height: m,
|
|
167
|
+
...l,
|
|
168
|
+
...C
|
|
169
|
+
},
|
|
170
|
+
ownerState: h,
|
|
171
|
+
ref: r,
|
|
172
|
+
role: "progressbar",
|
|
173
|
+
...p,
|
|
174
|
+
...x,
|
|
175
|
+
children: /* @__PURE__ */ d(J, {
|
|
176
|
+
className: y.svg,
|
|
177
|
+
ownerState: h,
|
|
178
|
+
viewBox: `${c / 2} ${c / 2} ${c} ${c}`,
|
|
179
|
+
children: /* @__PURE__ */ d(Q, {
|
|
180
|
+
className: y.circle,
|
|
181
|
+
style: v,
|
|
182
|
+
ownerState: h,
|
|
183
|
+
cx: c,
|
|
184
|
+
cy: c,
|
|
185
|
+
r: (c - s) / 2,
|
|
186
|
+
fill: "none",
|
|
187
|
+
strokeWidth: s
|
|
188
|
+
})
|
|
189
|
+
})
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
process.env.NODE_ENV !== "production" && (j.propTypes = {
|
|
193
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
194
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
195
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
196
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
197
|
+
/**
|
|
198
|
+
* Override or extend the styles applied to the component.
|
|
199
|
+
*/
|
|
200
|
+
classes: n.object,
|
|
201
|
+
/**
|
|
202
|
+
* @ignore
|
|
203
|
+
*/
|
|
204
|
+
className: n.string,
|
|
205
|
+
/**
|
|
206
|
+
* The color of the component.
|
|
207
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
208
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
209
|
+
* @default 'primary'
|
|
210
|
+
*/
|
|
211
|
+
color: n.oneOfType([n.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), n.string]),
|
|
212
|
+
/**
|
|
213
|
+
* If `true`, the shrink animation is disabled.
|
|
214
|
+
* This only works if variant is `indeterminate`.
|
|
215
|
+
* @default false
|
|
216
|
+
*/
|
|
217
|
+
disableShrink: T(n.bool, (o) => o.disableShrink && o.variant && o.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
|
|
218
|
+
/**
|
|
219
|
+
* The size of the component.
|
|
220
|
+
* If using a number, the pixel unit is assumed.
|
|
221
|
+
* If using a string, you need to provide the CSS unit, for example '3rem'.
|
|
222
|
+
* @default 40
|
|
223
|
+
*/
|
|
224
|
+
size: n.oneOfType([n.number, n.string]),
|
|
225
|
+
/**
|
|
226
|
+
* @ignore
|
|
227
|
+
*/
|
|
228
|
+
style: n.object,
|
|
229
|
+
/**
|
|
230
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
231
|
+
*/
|
|
232
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
233
|
+
/**
|
|
234
|
+
* The thickness of the circle.
|
|
235
|
+
* @default 3.6
|
|
236
|
+
*/
|
|
237
|
+
thickness: n.number,
|
|
238
|
+
/**
|
|
239
|
+
* The value of the progress indicator for the determinate variant.
|
|
240
|
+
* Value between 0 and 100.
|
|
241
|
+
* @default 0
|
|
242
|
+
*/
|
|
243
|
+
value: n.number,
|
|
244
|
+
/**
|
|
245
|
+
* The variant to use.
|
|
246
|
+
* Use indeterminate when there is no progress value.
|
|
247
|
+
* @default 'indeterminate'
|
|
248
|
+
*/
|
|
249
|
+
variant: n.oneOf(["determinate", "indeterminate"])
|
|
250
|
+
});
|
|
251
|
+
function X(o) {
|
|
252
|
+
return O("MuiLoadingButton", o);
|
|
253
|
+
}
|
|
254
|
+
const e = R("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator", "loadingIndicatorCenter", "loadingIndicatorStart", "loadingIndicatorEnd", "endIconLoadingEnd", "startIconLoadingStart"]), oo = (o) => {
|
|
255
|
+
const {
|
|
256
|
+
loading: t,
|
|
257
|
+
loadingPosition: r,
|
|
258
|
+
classes: i
|
|
259
|
+
} = o, g = {
|
|
260
|
+
root: ["root", t && "loading"],
|
|
261
|
+
label: ["label"],
|
|
262
|
+
startIcon: [t && `startIconLoading${u(r)}`],
|
|
263
|
+
endIcon: [t && `endIconLoading${u(r)}`],
|
|
264
|
+
loadingIndicator: ["loadingIndicator", t && `loadingIndicator${u(r)}`]
|
|
265
|
+
}, a = E(g, X, i);
|
|
266
|
+
return {
|
|
267
|
+
...i,
|
|
268
|
+
// forward the outlined, color, etc. classes to Button
|
|
269
|
+
...a
|
|
270
|
+
};
|
|
271
|
+
}, to = (o) => o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as" && o !== "classes", no = f(G, {
|
|
272
|
+
shouldForwardProp: (o) => to(o) || o === "classes",
|
|
273
|
+
name: "MuiLoadingButton",
|
|
274
|
+
slot: "Root",
|
|
275
|
+
overridesResolver: (o, t) => [t.root, t.startIconLoadingStart && {
|
|
276
|
+
[`& .${e.startIconLoadingStart}`]: t.startIconLoadingStart
|
|
277
|
+
}, t.endIconLoadingEnd && {
|
|
278
|
+
[`& .${e.endIconLoadingEnd}`]: t.endIconLoadingEnd
|
|
279
|
+
}]
|
|
280
|
+
})(S(({
|
|
281
|
+
theme: o
|
|
282
|
+
}) => ({
|
|
283
|
+
display: "inline-flex",
|
|
284
|
+
[`& .${e.startIconLoadingStart}, & .${e.endIconLoadingEnd}`]: {
|
|
285
|
+
transition: o.transitions.create(["opacity"], {
|
|
286
|
+
duration: o.transitions.duration.short
|
|
287
|
+
}),
|
|
288
|
+
opacity: 0
|
|
289
|
+
},
|
|
290
|
+
variants: [{
|
|
291
|
+
props: {
|
|
292
|
+
loadingPosition: "center"
|
|
293
|
+
},
|
|
294
|
+
style: {
|
|
295
|
+
transition: o.transitions.create(["background-color", "box-shadow", "border-color"], {
|
|
296
|
+
duration: o.transitions.duration.short
|
|
297
|
+
}),
|
|
298
|
+
[`&.${e.loading}`]: {
|
|
299
|
+
color: "transparent"
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}, {
|
|
303
|
+
props: ({
|
|
304
|
+
ownerState: t
|
|
305
|
+
}) => t.loadingPosition === "start" && t.fullWidth,
|
|
306
|
+
style: {
|
|
307
|
+
[`& .${e.startIconLoadingStart}, & .${e.endIconLoadingEnd}`]: {
|
|
308
|
+
transition: o.transitions.create(["opacity"], {
|
|
309
|
+
duration: o.transitions.duration.short
|
|
310
|
+
}),
|
|
311
|
+
opacity: 0,
|
|
312
|
+
marginRight: -8
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}, {
|
|
316
|
+
props: ({
|
|
317
|
+
ownerState: t
|
|
318
|
+
}) => t.loadingPosition === "end" && t.fullWidth,
|
|
319
|
+
style: {
|
|
320
|
+
[`& .${e.startIconLoadingStart}, & .${e.endIconLoadingEnd}`]: {
|
|
321
|
+
transition: o.transitions.create(["opacity"], {
|
|
322
|
+
duration: o.transitions.duration.short
|
|
323
|
+
}),
|
|
324
|
+
opacity: 0,
|
|
325
|
+
marginLeft: -8
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}]
|
|
329
|
+
}))), ro = f("span", {
|
|
330
|
+
name: "MuiLoadingButton",
|
|
331
|
+
slot: "LoadingIndicator",
|
|
332
|
+
overridesResolver: (o, t) => {
|
|
333
|
+
const {
|
|
334
|
+
ownerState: r
|
|
335
|
+
} = o;
|
|
336
|
+
return [t.loadingIndicator, t[`loadingIndicator${u(r.loadingPosition)}`]];
|
|
337
|
+
}
|
|
338
|
+
})(S(({
|
|
339
|
+
theme: o
|
|
340
|
+
}) => ({
|
|
341
|
+
position: "absolute",
|
|
342
|
+
visibility: "visible",
|
|
343
|
+
display: "flex",
|
|
344
|
+
variants: [{
|
|
345
|
+
props: {
|
|
346
|
+
loadingPosition: "start",
|
|
347
|
+
size: "small"
|
|
348
|
+
},
|
|
349
|
+
style: {
|
|
350
|
+
left: 10
|
|
351
|
+
}
|
|
352
|
+
}, {
|
|
353
|
+
props: ({
|
|
354
|
+
loadingPosition: t,
|
|
355
|
+
ownerState: r
|
|
356
|
+
}) => t === "start" && r.size !== "small",
|
|
357
|
+
style: {
|
|
358
|
+
left: 14
|
|
359
|
+
}
|
|
360
|
+
}, {
|
|
361
|
+
props: {
|
|
362
|
+
variant: "text",
|
|
363
|
+
loadingPosition: "start"
|
|
364
|
+
},
|
|
365
|
+
style: {
|
|
366
|
+
left: 6
|
|
367
|
+
}
|
|
368
|
+
}, {
|
|
369
|
+
props: {
|
|
370
|
+
loadingPosition: "center"
|
|
371
|
+
},
|
|
372
|
+
style: {
|
|
373
|
+
left: "50%",
|
|
374
|
+
transform: "translate(-50%)",
|
|
375
|
+
color: (o.vars || o).palette.action.disabled
|
|
376
|
+
}
|
|
377
|
+
}, {
|
|
378
|
+
props: {
|
|
379
|
+
loadingPosition: "end",
|
|
380
|
+
size: "small"
|
|
381
|
+
},
|
|
382
|
+
style: {
|
|
383
|
+
right: 10
|
|
384
|
+
}
|
|
385
|
+
}, {
|
|
386
|
+
props: ({
|
|
387
|
+
loadingPosition: t,
|
|
388
|
+
ownerState: r
|
|
389
|
+
}) => t === "end" && r.size !== "small",
|
|
390
|
+
style: {
|
|
391
|
+
right: 14
|
|
392
|
+
}
|
|
393
|
+
}, {
|
|
394
|
+
props: {
|
|
395
|
+
variant: "text",
|
|
396
|
+
loadingPosition: "end"
|
|
397
|
+
},
|
|
398
|
+
style: {
|
|
399
|
+
right: 6
|
|
400
|
+
}
|
|
401
|
+
}, {
|
|
402
|
+
props: ({
|
|
403
|
+
ownerState: t
|
|
404
|
+
}) => t.loadingPosition === "start" && t.fullWidth,
|
|
405
|
+
style: {
|
|
406
|
+
position: "relative",
|
|
407
|
+
left: -10
|
|
408
|
+
}
|
|
409
|
+
}, {
|
|
410
|
+
props: ({
|
|
411
|
+
ownerState: t
|
|
412
|
+
}) => t.loadingPosition === "end" && t.fullWidth,
|
|
413
|
+
style: {
|
|
414
|
+
position: "relative",
|
|
415
|
+
right: -10
|
|
416
|
+
}
|
|
417
|
+
}]
|
|
418
|
+
}))), B = f("span", {
|
|
419
|
+
name: "MuiLoadingButton",
|
|
420
|
+
slot: "Label",
|
|
421
|
+
overridesResolver: (o, t) => [t.label]
|
|
422
|
+
})({
|
|
423
|
+
display: "inherit",
|
|
424
|
+
alignItems: "inherit",
|
|
425
|
+
justifyContent: "inherit"
|
|
426
|
+
}), z = /* @__PURE__ */ k.forwardRef(function(t, r) {
|
|
427
|
+
const i = k.useContext(F), g = V(i, t), a = M({
|
|
428
|
+
props: g,
|
|
429
|
+
name: "MuiLoadingButton"
|
|
430
|
+
}), {
|
|
431
|
+
children: P,
|
|
432
|
+
disabled: m = !1,
|
|
433
|
+
id: C,
|
|
434
|
+
loading: s = !1,
|
|
435
|
+
loadingIndicator: b,
|
|
436
|
+
loadingPosition: L = "center",
|
|
437
|
+
variant: x = "text",
|
|
438
|
+
...h
|
|
439
|
+
} = a, y = A(C), v = b ?? /* @__PURE__ */ d(j, {
|
|
440
|
+
"aria-labelledby": y,
|
|
441
|
+
color: "inherit",
|
|
442
|
+
size: 16
|
|
443
|
+
}), l = {
|
|
444
|
+
...a,
|
|
445
|
+
disabled: m,
|
|
446
|
+
loading: s,
|
|
447
|
+
loadingIndicator: v,
|
|
448
|
+
loadingPosition: L,
|
|
449
|
+
variant: x
|
|
450
|
+
}, p = oo(l), I = s ? /* @__PURE__ */ d(ro, {
|
|
451
|
+
className: p.loadingIndicator,
|
|
452
|
+
ownerState: l,
|
|
453
|
+
children: v
|
|
454
|
+
}) : null;
|
|
455
|
+
return /* @__PURE__ */ U(no, {
|
|
456
|
+
disabled: m || s,
|
|
457
|
+
id: y,
|
|
458
|
+
ref: r,
|
|
459
|
+
...h,
|
|
460
|
+
variant: x,
|
|
461
|
+
classes: p,
|
|
462
|
+
ownerState: l,
|
|
463
|
+
children: [l.loadingPosition === "end" ? /* @__PURE__ */ d(B, {
|
|
464
|
+
className: p.label,
|
|
465
|
+
children: P
|
|
466
|
+
}) : I, l.loadingPosition === "end" ? I : /* @__PURE__ */ d(B, {
|
|
467
|
+
className: p.label,
|
|
468
|
+
children: P
|
|
469
|
+
})]
|
|
470
|
+
});
|
|
471
|
+
});
|
|
472
|
+
process.env.NODE_ENV !== "production" && (z.propTypes = {
|
|
473
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
474
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
475
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
476
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
477
|
+
/**
|
|
478
|
+
* The content of the component.
|
|
479
|
+
*/
|
|
480
|
+
children: n.node,
|
|
481
|
+
/**
|
|
482
|
+
* Override or extend the styles applied to the component.
|
|
483
|
+
*/
|
|
484
|
+
classes: n.object,
|
|
485
|
+
/**
|
|
486
|
+
* If `true`, the component is disabled.
|
|
487
|
+
* @default false
|
|
488
|
+
*/
|
|
489
|
+
disabled: n.bool,
|
|
490
|
+
/**
|
|
491
|
+
* @ignore
|
|
492
|
+
*/
|
|
493
|
+
id: n.string,
|
|
494
|
+
/**
|
|
495
|
+
* If `true`, the loading indicator is shown and the button becomes disabled.
|
|
496
|
+
* @default false
|
|
497
|
+
*/
|
|
498
|
+
loading: n.bool,
|
|
499
|
+
/**
|
|
500
|
+
* Element placed before the children if the button is in loading state.
|
|
501
|
+
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
502
|
+
* By default we render a `CircularProgress` that is labelled by the button itself.
|
|
503
|
+
* @default <CircularProgress color="inherit" size={16} />
|
|
504
|
+
*/
|
|
505
|
+
loadingIndicator: n.node,
|
|
506
|
+
/**
|
|
507
|
+
* The loading indicator can be positioned on the start, end, or the center of the button.
|
|
508
|
+
* @default 'center'
|
|
509
|
+
*/
|
|
510
|
+
loadingPosition: T(n.oneOf(["start", "end", "center"]), (o) => o.loadingPosition === "start" && !o.startIcon ? new Error('MUI: The loadingPosition="start" should be used in combination with startIcon.') : o.loadingPosition === "end" && !o.endIcon ? new Error('MUI: The loadingPosition="end" should be used in combination with endIcon.') : null),
|
|
511
|
+
/**
|
|
512
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
513
|
+
*/
|
|
514
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
515
|
+
/**
|
|
516
|
+
* The variant to use.
|
|
517
|
+
* @default 'text'
|
|
518
|
+
*/
|
|
519
|
+
variant: n.oneOfType([n.oneOf(["contained", "outlined", "text"]), n.string])
|
|
520
|
+
});
|
|
521
|
+
const io = f(z)(({ color: o, theme: t }) => ({
|
|
522
|
+
minHeight: 38,
|
|
523
|
+
textTransform: "none",
|
|
524
|
+
transition: "all 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
|
|
525
|
+
"&.MuiButton-outlined": {
|
|
526
|
+
borderRadius: 5,
|
|
527
|
+
borderWidth: 2
|
|
528
|
+
/* "&:hover": {
|
|
529
|
+
//backgroundColor: theme.palette[color].main,
|
|
530
|
+
color: theme.palette.common.white,
|
|
531
|
+
},*/
|
|
532
|
+
}
|
|
533
|
+
})), yo = ({
|
|
534
|
+
variant: o = "outlined",
|
|
535
|
+
...t
|
|
536
|
+
}) => /* @__PURE__ */ d(io, { variant: o, ...t });
|
|
537
|
+
export {
|
|
538
|
+
yo as B,
|
|
539
|
+
j as C,
|
|
540
|
+
ho as c,
|
|
541
|
+
K as g
|
|
542
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),c=require("./createSvgIcon-CWNQW6u6.cjs"),s=c.createSvgIcon(e.jsx("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"CloseRounded");exports.CloseRounded=s;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "./createSvgIcon-Cd6y8E9W.js";
|
|
3
|
+
const a = c(/* @__PURE__ */ o("path", {
|
|
4
|
+
d: "M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"
|
|
5
|
+
}), "CloseRounded");
|
|
6
|
+
export {
|
|
7
|
+
a as C
|
|
8
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";require("react/jsx-runtime");require("../../DefaultPropsProvider-PRhNsS_3.cjs");const t=require("../../Button-C-bZSJCq.cjs");module.exports=t.Button;
|