@cgi-learning-hub/ui 1.3.5-dev.1739378027 → 1.3.5-dev.1739974341
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/{Backdrop-Cvbj4YKG.cjs → Backdrop-BY124k9Q.cjs} +1 -1
- package/dist/{Backdrop-DZHacmMU.js → Backdrop-CZ3ay4ta.js} +2 -2
- package/dist/{Button-DovfjBkz.js → Button-Bqcf-Wrh.js} +1 -2
- package/dist/{Button-COTy9ASL.cjs → Button-qwUFZs87.cjs} +1 -1
- package/dist/{ButtonBase-DKNIY_Ve.cjs → ButtonBase-C9D6EAt-.cjs} +2 -2
- package/dist/{ButtonBase-eQU9HVgU.js → ButtonBase-ylADCBW1.js} +66 -66
- package/dist/CardContent-BMiRcSGk.cjs +1 -0
- package/dist/CardContent-CHoWb0DR.js +226 -0
- package/dist/{Checkbox-y6Kts0Hm.js → Checkbox-92V5IqYF.js} +2 -2
- package/dist/{Checkbox-YCpJS_3E.cjs → Checkbox-DVRfGO8D.cjs} +1 -1
- package/dist/{Chip-FQbM3QKF.cjs → Chip-Ch7Ec9PJ.cjs} +1 -1
- package/dist/{Chip-DT0H_Vjk.js → Chip-I3ytWE-R.js} +2 -2
- package/dist/{CloseRounded-Cu-sn6XC.cjs → CloseRounded-BpiJGsCY.cjs} +1 -1
- package/dist/{CloseRounded-Df8vYhLX.js → CloseRounded-Di7N75zk.js} +1 -1
- package/dist/{DatePicker-CYvDKr4R.js → DatePicker-ByvIBsyI.js} +48 -46
- package/dist/{DatePicker-BroG1y5g.cjs → DatePicker-D3AfDdBL.cjs} +11 -11
- package/dist/{Dialog-BFZeovlo.cjs → Dialog-DouQwf1_.cjs} +1 -1
- package/dist/{Dialog-D0fzD-TX.js → Dialog-GVgQOV8v.js} +2 -2
- package/dist/{DialogTitle-CXRmRtja.cjs → DialogTitle-BTBnlhmM.cjs} +1 -1
- package/dist/{DialogTitle-BXGok8k-.js → DialogTitle-Bw1Q-9PX.js} +1 -1
- package/dist/{Grow-EpJy9qdL.js → Grow-BL8Bx4y5.js} +1 -1
- package/dist/{Grow-BK4rGn4x.cjs → Grow-BjcgF7nV.cjs} +1 -1
- package/dist/{IconButton-CZvDgqOc.js → IconButton-C4GFAbeH.js} +1 -1
- package/dist/{IconButton-BUCTqOFa.cjs → IconButton-loyqjXrR.cjs} +1 -1
- package/dist/{Menu-_4rLUzDf.js → Menu-CtlPVqJo.js} +5 -5
- package/dist/{Menu-NuheFzLD.cjs → Menu-DiQ9wnM_.cjs} +1 -1
- package/dist/{MenuItem-D9Hs7HRQ.js → MenuItem-BCyMn0B-.js} +2 -2
- package/dist/{MenuItem-CNUAbgnE.cjs → MenuItem-DuLNR389.cjs} +1 -1
- package/dist/{Modal-a-cSzSt8.js → Modal-BBc68t3R.js} +5 -5
- package/dist/{Modal-BhIbbbzx.cjs → Modal-CGCKjoqp.cjs} +2 -2
- package/dist/{Popper-CPstdcBG.cjs → Popper-CyMmAyHW.cjs} +1 -1
- package/dist/{Popper-BcaTNUvi.js → Popper-Dotov0nV.js} +2 -2
- package/dist/{Portal-BL8eg_0C.cjs → Portal-BC_MWv30.cjs} +1 -1
- package/dist/{Portal-B8inUnB_.js → Portal-DvgoZfYl.js} +1 -1
- package/dist/Radio-BmCVKlgN.js +568 -0
- package/dist/Radio-Cta61QrN.cjs +1 -0
- package/dist/RadioGroup-BoBajGjF.js +190 -0
- package/dist/RadioGroup-CA-GTAeR.cjs +1 -0
- package/dist/Select-Bm-ZcxRN.cjs +3 -0
- package/dist/{Select-D4pmgfdb.js → Select-DCbhewsz.js} +71 -67
- package/dist/Switch-BMjiyNyB.cjs +1 -0
- package/dist/Switch-JIoNRv7S.js +330 -0
- package/dist/{SwitchBase-VA100mrf.cjs → SwitchBase-CaXyAuEt.cjs} +1 -1
- package/dist/{SwitchBase-ynQQkTVh.js → SwitchBase-Ccit_gYg.js} +1 -1
- package/dist/{Tabs-DzbNYi2v.js → Tabs-Bhy2g9Y0.js} +3 -3
- package/dist/{Tabs-Bg_Zi8UV.cjs → Tabs-ll24SDcl.cjs} +1 -1
- package/dist/{TextField-BcAZk2Rx.cjs → TextField-C5lHwquP.cjs} +1 -1
- package/dist/{TextField-dvVq-1Hp.js → TextField-FNS4AqVd.js} +2 -2
- package/dist/ToggleButtonGroup-CEPDUgtK.cjs +167 -0
- package/dist/ToggleButtonGroup-qi5MsGIW.js +10602 -0
- package/dist/{Tooltip-CVvaAqh7.js → Tooltip-AHSVG6xQ.js} +5 -5
- package/dist/{Tooltip-DL2i_lGL.cjs → Tooltip-C2KS56xn.cjs} +1 -1
- package/dist/components/Alert/Alert.es.js +13 -4
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.d.ts +1 -2
- package/dist/components/Button/Button.es.js +20 -4
- package/dist/components/Button/index.cjs.js +1 -1
- package/dist/components/Button/index.es.js +2 -2
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +1 -1
- package/dist/components/FileList/FileIcon.cjs.js +1 -1
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +15 -17
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +95 -88
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +47 -23
- package/dist/components/Loader/Loader.d.ts +1 -2
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +1 -2
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +10 -9
- package/dist/components/QueryError/QueryError.d.ts +2 -2
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.d.ts +2 -2
- package/dist/components/ResourceCard/ResourceCard.es.js +73 -79
- package/dist/components/ResourceCard/style.es.js +65 -57
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +1 -2
- package/dist/components/SearchInput/SearchInput.es.js +1 -1
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +34 -0
- package/dist/components/index.es.js +347 -296
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +2 -2
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +17 -168
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/Chip.stories.cjs.js +1 -1
- package/dist/components/stories/Chip.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/FileList.stories.cjs.js +1 -1
- package/dist/components/stories/FileList.stories.es.js +5 -7
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +16 -340
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +1 -1
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +3 -3
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +19 -115
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +10 -4
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +2 -2
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +1 -1
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/{createSvgIcon-Cd6y8E9W.js → createSvgIcon-CIearCnQ.js} +44 -42
- package/dist/createSvgIcon-DKtSalut.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +347 -296
- package/dist/resolveComponentProps-CGmtduHt.cjs +1 -0
- package/dist/{mergeSlotProps-DwgGXvkj.js → resolveComponentProps-kRRJ79Kv.js} +6 -6
- package/dist/useSlot-BYekfmak.cjs +1 -0
- package/dist/{useSlot-BYfmyYXv.js → useSlot-CQW01GLa.js} +1 -1
- package/dist/useSlotProps-NZH6_nAj.cjs +1 -0
- package/dist/{useSlotProps-r0vmrJvl.js → useSlotProps-pX6ti4cn.js} +1 -1
- package/dist/utils-C6YMiaf0.cjs +1 -0
- package/dist/{utils-D4djO_Ph.js → utils-CSBYZkoB.js} +40 -40
- package/package.json +1 -1
- package/dist/Button-C-bZSJCq.cjs +0 -28
- package/dist/Button-CSNPv43f.js +0 -542
- package/dist/Card-B7MHmB_Y.js +0 -74
- package/dist/Card-CwE6nm11.cjs +0 -1
- package/dist/FormControlLabel-BjbkwHC0.js +0 -262
- package/dist/FormControlLabel-BjlJz2oa.cjs +0 -1
- package/dist/FormGroup-DdwFGMq2.js +0 -95
- package/dist/FormGroup-x7hlLAv1.cjs +0 -1
- package/dist/Radio-8fNX60rb.cjs +0 -1
- package/dist/Radio-DgedCGZw.js +0 -313
- package/dist/Select-DtrvYyJ3.cjs +0 -3
- package/dist/TableSortLabel-BXto8Tc7.js +0 -6440
- package/dist/TableSortLabel-h3un69IU.cjs +0 -98
- package/dist/createSvgIcon-CWNQW6u6.cjs +0 -1
- package/dist/mergeSlotProps-DJgEFzGv.cjs +0 -1
- package/dist/useSlot-CMUEd7j7.cjs +0 -1
- package/dist/useSlotProps-D0jr2eYF.cjs +0 -1
- package/dist/utils-BWXB1haV.cjs +0 -1
package/dist/Button-CSNPv43f.js
DELETED
|
@@ -1,542 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/Card-B7MHmB_Y.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import * as d from "react";
|
|
2
|
-
import { H as p, I as f, G as u, P as s } from "./generateUtilityClasses-v9KcqdK1.js";
|
|
3
|
-
import { jsx as m } from "react/jsx-runtime";
|
|
4
|
-
import { u as C, s as y, c as v } from "./DefaultPropsProvider-CmOKr9hq.js";
|
|
5
|
-
import { P as b } from "./Paper-BIgadgtb.js";
|
|
6
|
-
import { c as g } from "./chainPropTypes-D9lkm76m.js";
|
|
7
|
-
function h(o) {
|
|
8
|
-
return f("MuiCard", o);
|
|
9
|
-
}
|
|
10
|
-
const x = p("MuiCard", ["root"]), w = (o) => {
|
|
11
|
-
const {
|
|
12
|
-
classes: e
|
|
13
|
-
} = o;
|
|
14
|
-
return v({
|
|
15
|
-
root: ["root"]
|
|
16
|
-
}, h, e);
|
|
17
|
-
}, P = y(b, {
|
|
18
|
-
name: "MuiCard",
|
|
19
|
-
slot: "Root",
|
|
20
|
-
overridesResolver: (o, e) => e.root
|
|
21
|
-
})({
|
|
22
|
-
overflow: "hidden"
|
|
23
|
-
}), M = /* @__PURE__ */ d.forwardRef(function(e, r) {
|
|
24
|
-
const t = C({
|
|
25
|
-
props: e,
|
|
26
|
-
name: "MuiCard"
|
|
27
|
-
}), {
|
|
28
|
-
className: i,
|
|
29
|
-
raised: a = !1,
|
|
30
|
-
...c
|
|
31
|
-
} = t, n = {
|
|
32
|
-
...t,
|
|
33
|
-
raised: a
|
|
34
|
-
}, l = w(n);
|
|
35
|
-
return /* @__PURE__ */ m(P, {
|
|
36
|
-
className: u(l.root, i),
|
|
37
|
-
elevation: a ? 8 : void 0,
|
|
38
|
-
ref: r,
|
|
39
|
-
ownerState: n,
|
|
40
|
-
...c
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
process.env.NODE_ENV !== "production" && (M.propTypes = {
|
|
44
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
45
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
46
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
47
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
48
|
-
/**
|
|
49
|
-
* The content of the component.
|
|
50
|
-
*/
|
|
51
|
-
children: s.node,
|
|
52
|
-
/**
|
|
53
|
-
* Override or extend the styles applied to the component.
|
|
54
|
-
*/
|
|
55
|
-
classes: s.object,
|
|
56
|
-
/**
|
|
57
|
-
* @ignore
|
|
58
|
-
*/
|
|
59
|
-
className: s.string,
|
|
60
|
-
/**
|
|
61
|
-
* If `true`, the card will use raised styling.
|
|
62
|
-
* @default false
|
|
63
|
-
*/
|
|
64
|
-
raised: g(s.bool, (o) => o.raised && o.variant === "outlined" ? new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.') : null),
|
|
65
|
-
/**
|
|
66
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
67
|
-
*/
|
|
68
|
-
sx: s.oneOfType([s.arrayOf(s.oneOfType([s.func, s.object, s.bool])), s.func, s.object])
|
|
69
|
-
});
|
|
70
|
-
export {
|
|
71
|
-
M as C,
|
|
72
|
-
x as c,
|
|
73
|
-
h as g
|
|
74
|
-
};
|
package/dist/Card-CwE6nm11.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const y=require("react"),e=require("./generateUtilityClasses-0dYt6eGZ.cjs"),f=require("react/jsx-runtime"),n=require("./DefaultPropsProvider-PRhNsS_3.cjs"),P=require("./Paper-DYhLUL1K.cjs"),C=require("./chainPropTypes-CEUi6Jb4.cjs");function T(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 b=T(y);function c(r){return e.generateUtilityClass("MuiCard",r)}const g=e.generateUtilityClasses("MuiCard",["root"]),m=r=>{const{classes:s}=r,t={root:["root"]};return n.composeClasses(t,c,s)},v=n.styled(P.Paper,{name:"MuiCard",slot:"Root",overridesResolver:(r,s)=>s.root})({overflow:"hidden"}),p=b.forwardRef(function(s,t){const o=n.useDefaultProps({props:s,name:"MuiCard"}),{className:l,raised:a=!1,...u}=o,i={...o,raised:a},d=m(i);return f.jsx(v,{className:e.clsx(d.root,l),elevation:a?8:void 0,ref:t,ownerState:i,...u})});process.env.NODE_ENV!=="production"&&(p.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,raised:C.chainPropTypes(e.PropTypes.bool,r=>r.raised&&r.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),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])});exports.Card=p;exports.cardClasses=g;exports.getCardUtilityClass=c;
|