@cgi-learning-hub/ui 0.0.1-dev.1708446900 → 0.0.1-dev.1708512344

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.
@@ -1,12 +1,400 @@
1
- import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
- import "react";
3
- import n from "./DefaultButtonIcon.es.js";
4
- import { s as m } from "../../../useThemeProps-Dkkbtzcg.js";
5
- import { B as s } from "../../../Button-BJMp7Tz3.js";
6
- import { u } from "../../../useTheme-D1_U7jx5.js";
7
- const i = m(s, {
8
- shouldForwardProp: (t) => t !== "contentColor"
9
- })((t) => ({
1
+ import { jsx as f, jsxs as S } from "react/jsx-runtime";
2
+ import * as B from "react";
3
+ import T from "./DefaultButtonIcon.es.js";
4
+ import { b as D, g as _, s as I, f as g, a as e, u as j, _ as N, h as V, P as n, e as U, v as K } from "../../../useThemeProps-Dkkbtzcg.js";
5
+ import { B as H, a as Y } from "../../../Button-xyS1Nr3h.js";
6
+ import { u as Z } from "../../../useId-BW-oWmul.js";
7
+ import { c as W } from "../../../useForkRef-C0Hk1SEc.js";
8
+ import { keyframes as z, css as w } from "@emotion/react";
9
+ import { u as q } from "../../../useTheme-D1_U7jx5.js";
10
+ function A(o) {
11
+ return D("MuiCircularProgress", o);
12
+ }
13
+ _("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
14
+ const J = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
15
+ let k = (o) => o, E, M, R, O;
16
+ const u = 44, Q = z(E || (E = k`
17
+ 0% {
18
+ transform: rotate(0deg);
19
+ }
20
+
21
+ 100% {
22
+ transform: rotate(360deg);
23
+ }
24
+ `)), X = z(M || (M = k`
25
+ 0% {
26
+ stroke-dasharray: 1px, 200px;
27
+ stroke-dashoffset: 0;
28
+ }
29
+
30
+ 50% {
31
+ stroke-dasharray: 100px, 200px;
32
+ stroke-dashoffset: -15px;
33
+ }
34
+
35
+ 100% {
36
+ stroke-dasharray: 100px, 200px;
37
+ stroke-dashoffset: -125px;
38
+ }
39
+ `)), oo = (o) => {
40
+ const {
41
+ classes: t,
42
+ variant: r,
43
+ color: i,
44
+ disableShrink: a
45
+ } = o, s = {
46
+ root: ["root", r, `color${g(i)}`],
47
+ svg: ["svg"],
48
+ circle: ["circle", `circle${g(r)}`, a && "circleDisableShrink"]
49
+ };
50
+ return U(s, A, t);
51
+ }, to = I("span", {
52
+ name: "MuiCircularProgress",
53
+ slot: "Root",
54
+ overridesResolver: (o, t) => {
55
+ const {
56
+ ownerState: r
57
+ } = o;
58
+ return [t.root, t[r.variant], t[`color${g(r.color)}`]];
59
+ }
60
+ })(({
61
+ ownerState: o,
62
+ theme: t
63
+ }) => e({
64
+ display: "inline-block"
65
+ }, o.variant === "determinate" && {
66
+ transition: t.transitions.create("transform")
67
+ }, o.color !== "inherit" && {
68
+ color: (t.vars || t).palette[o.color].main
69
+ }), ({
70
+ ownerState: o
71
+ }) => o.variant === "indeterminate" && w(R || (R = k`
72
+ animation: ${0} 1.4s linear infinite;
73
+ `), Q)), no = I("svg", {
74
+ name: "MuiCircularProgress",
75
+ slot: "Svg",
76
+ overridesResolver: (o, t) => t.svg
77
+ })({
78
+ display: "block"
79
+ // Keeps the progress centered
80
+ }), ro = I("circle", {
81
+ name: "MuiCircularProgress",
82
+ slot: "Circle",
83
+ overridesResolver: (o, t) => {
84
+ const {
85
+ ownerState: r
86
+ } = o;
87
+ return [t.circle, t[`circle${g(r.variant)}`], r.disableShrink && t.circleDisableShrink];
88
+ }
89
+ })(({
90
+ ownerState: o,
91
+ theme: t
92
+ }) => e({
93
+ stroke: "currentColor"
94
+ }, o.variant === "determinate" && {
95
+ transition: t.transitions.create("stroke-dashoffset")
96
+ }, o.variant === "indeterminate" && {
97
+ // Some default value that looks fine waiting for the animation to kicks in.
98
+ strokeDasharray: "80px, 200px",
99
+ strokeDashoffset: 0
100
+ // Add the unit to fix a Edge 16 and below bug.
101
+ }), ({
102
+ ownerState: o
103
+ }) => o.variant === "indeterminate" && !o.disableShrink && w(O || (O = k`
104
+ animation: ${0} 1.4s ease-in-out infinite;
105
+ `), X)), F = /* @__PURE__ */ B.forwardRef(function(t, r) {
106
+ const i = j({
107
+ props: t,
108
+ name: "MuiCircularProgress"
109
+ }), {
110
+ className: a,
111
+ color: s = "primary",
112
+ disableShrink: C = !1,
113
+ size: h = 40,
114
+ style: $,
115
+ thickness: l = 3.6,
116
+ value: p = 0,
117
+ variant: x = "indeterminate"
118
+ } = i, L = N(i, J), m = e({}, i, {
119
+ color: s,
120
+ disableShrink: C,
121
+ size: h,
122
+ thickness: l,
123
+ value: p,
124
+ variant: x
125
+ }), v = oo(m), b = {}, c = {}, P = {};
126
+ if (x === "determinate") {
127
+ const y = 2 * Math.PI * ((u - l) / 2);
128
+ b.strokeDasharray = y.toFixed(3), P["aria-valuenow"] = Math.round(p), b.strokeDashoffset = `${((100 - p) / 100 * y).toFixed(3)}px`, c.transform = "rotate(-90deg)";
129
+ }
130
+ return /* @__PURE__ */ f(to, e({
131
+ className: V(v.root, a),
132
+ style: e({
133
+ width: h,
134
+ height: h
135
+ }, c, $),
136
+ ownerState: m,
137
+ ref: r,
138
+ role: "progressbar"
139
+ }, P, L, {
140
+ children: /* @__PURE__ */ f(no, {
141
+ className: v.svg,
142
+ ownerState: m,
143
+ viewBox: `${u / 2} ${u / 2} ${u} ${u}`,
144
+ children: /* @__PURE__ */ f(ro, {
145
+ className: v.circle,
146
+ style: b,
147
+ ownerState: m,
148
+ cx: u,
149
+ cy: u,
150
+ r: (u - l) / 2,
151
+ fill: "none",
152
+ strokeWidth: l
153
+ })
154
+ })
155
+ }));
156
+ });
157
+ process.env.NODE_ENV !== "production" && (F.propTypes = {
158
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
159
+ // │ These PropTypes are generated from the TypeScript type definitions. │
160
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
161
+ // └─────────────────────────────────────────────────────────────────────┘
162
+ /**
163
+ * Override or extend the styles applied to the component.
164
+ */
165
+ classes: n.object,
166
+ /**
167
+ * @ignore
168
+ */
169
+ className: n.string,
170
+ /**
171
+ * The color of the component.
172
+ * It supports both default and custom theme colors, which can be added as shown in the
173
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
174
+ * @default 'primary'
175
+ */
176
+ color: n.oneOfType([n.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), n.string]),
177
+ /**
178
+ * If `true`, the shrink animation is disabled.
179
+ * This only works if variant is `indeterminate`.
180
+ * @default false
181
+ */
182
+ disableShrink: W(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),
183
+ /**
184
+ * The size of the component.
185
+ * If using a number, the pixel unit is assumed.
186
+ * If using a string, you need to provide the CSS unit, e.g. '3rem'.
187
+ * @default 40
188
+ */
189
+ size: n.oneOfType([n.number, n.string]),
190
+ /**
191
+ * @ignore
192
+ */
193
+ style: n.object,
194
+ /**
195
+ * The system prop that allows defining system overrides as well as additional CSS styles.
196
+ */
197
+ sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
198
+ /**
199
+ * The thickness of the circle.
200
+ * @default 3.6
201
+ */
202
+ thickness: n.number,
203
+ /**
204
+ * The value of the progress indicator for the determinate variant.
205
+ * Value between 0 and 100.
206
+ * @default 0
207
+ */
208
+ value: n.number,
209
+ /**
210
+ * The variant to use.
211
+ * Use indeterminate when there is no progress value.
212
+ * @default 'indeterminate'
213
+ */
214
+ variant: n.oneOf(["determinate", "indeterminate"])
215
+ });
216
+ const io = F;
217
+ function ao(o) {
218
+ return D("MuiLoadingButton", o);
219
+ }
220
+ const eo = _("MuiLoadingButton", ["root", "loading", "loadingIndicator", "loadingIndicatorCenter", "loadingIndicatorStart", "loadingIndicatorEnd", "endIconLoadingEnd", "startIconLoadingStart"]), d = eo, so = ["children", "disabled", "id", "loading", "loadingIndicator", "loadingPosition", "variant"], lo = (o) => {
221
+ const {
222
+ loading: t,
223
+ loadingPosition: r,
224
+ classes: i
225
+ } = o, a = {
226
+ root: ["root", t && "loading"],
227
+ startIcon: [t && `startIconLoading${g(r)}`],
228
+ endIcon: [t && `endIconLoading${g(r)}`],
229
+ loadingIndicator: ["loadingIndicator", t && `loadingIndicator${g(r)}`]
230
+ }, s = U(a, ao, i);
231
+ return e({}, i, s);
232
+ }, co = (o) => o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as" && o !== "classes", uo = I(H, {
233
+ shouldForwardProp: (o) => co(o) || o === "classes",
234
+ name: "MuiLoadingButton",
235
+ slot: "Root",
236
+ overridesResolver: (o, t) => [t.root, t.startIconLoadingStart && {
237
+ [`& .${d.startIconLoadingStart}`]: t.startIconLoadingStart
238
+ }, t.endIconLoadingEnd && {
239
+ [`& .${d.endIconLoadingEnd}`]: t.endIconLoadingEnd
240
+ }]
241
+ })(({
242
+ ownerState: o,
243
+ theme: t
244
+ }) => e({
245
+ [`& .${d.startIconLoadingStart}, & .${d.endIconLoadingEnd}`]: {
246
+ transition: t.transitions.create(["opacity"], {
247
+ duration: t.transitions.duration.short
248
+ }),
249
+ opacity: 0
250
+ }
251
+ }, o.loadingPosition === "center" && {
252
+ transition: t.transitions.create(["background-color", "box-shadow", "border-color"], {
253
+ duration: t.transitions.duration.short
254
+ }),
255
+ [`&.${d.loading}`]: {
256
+ color: "transparent"
257
+ }
258
+ }, o.loadingPosition === "start" && o.fullWidth && {
259
+ [`& .${d.startIconLoadingStart}, & .${d.endIconLoadingEnd}`]: {
260
+ transition: t.transitions.create(["opacity"], {
261
+ duration: t.transitions.duration.short
262
+ }),
263
+ opacity: 0,
264
+ marginRight: -8
265
+ }
266
+ }, o.loadingPosition === "end" && o.fullWidth && {
267
+ [`& .${d.startIconLoadingStart}, & .${d.endIconLoadingEnd}`]: {
268
+ transition: t.transitions.create(["opacity"], {
269
+ duration: t.transitions.duration.short
270
+ }),
271
+ opacity: 0,
272
+ marginLeft: -8
273
+ }
274
+ })), go = I("span", {
275
+ name: "MuiLoadingButton",
276
+ slot: "LoadingIndicator",
277
+ overridesResolver: (o, t) => {
278
+ const {
279
+ ownerState: r
280
+ } = o;
281
+ return [t.loadingIndicator, t[`loadingIndicator${g(r.loadingPosition)}`]];
282
+ }
283
+ })(({
284
+ theme: o,
285
+ ownerState: t
286
+ }) => e({
287
+ position: "absolute",
288
+ visibility: "visible",
289
+ display: "flex"
290
+ }, t.loadingPosition === "start" && (t.variant === "outlined" || t.variant === "contained") && {
291
+ left: t.size === "small" ? 10 : 14
292
+ }, t.loadingPosition === "start" && t.variant === "text" && {
293
+ left: 6
294
+ }, t.loadingPosition === "center" && {
295
+ left: "50%",
296
+ transform: "translate(-50%)",
297
+ color: (o.vars || o).palette.action.disabled
298
+ }, t.loadingPosition === "end" && (t.variant === "outlined" || t.variant === "contained") && {
299
+ right: t.size === "small" ? 10 : 14
300
+ }, t.loadingPosition === "end" && t.variant === "text" && {
301
+ right: 6
302
+ }, t.loadingPosition === "start" && t.fullWidth && {
303
+ position: "relative",
304
+ left: -10
305
+ }, t.loadingPosition === "end" && t.fullWidth && {
306
+ position: "relative",
307
+ right: -10
308
+ })), G = /* @__PURE__ */ B.forwardRef(function(t, r) {
309
+ const i = B.useContext(Y), a = K(i, t), s = j({
310
+ props: a,
311
+ name: "MuiLoadingButton"
312
+ }), {
313
+ children: C,
314
+ disabled: h = !1,
315
+ id: $,
316
+ loading: l = !1,
317
+ loadingIndicator: p,
318
+ loadingPosition: x = "center",
319
+ variant: L = "text"
320
+ } = s, m = N(s, so), v = Z($), b = p ?? /* @__PURE__ */ f(io, {
321
+ "aria-labelledby": v,
322
+ color: "inherit",
323
+ size: 16
324
+ }), c = e({}, s, {
325
+ disabled: h,
326
+ loading: l,
327
+ loadingIndicator: b,
328
+ loadingPosition: x,
329
+ variant: L
330
+ }), P = lo(c), y = l ? /* @__PURE__ */ f(go, {
331
+ className: P.loadingIndicator,
332
+ ownerState: c,
333
+ children: b
334
+ }) : null;
335
+ return /* @__PURE__ */ S(uo, e({
336
+ disabled: h || l,
337
+ id: v,
338
+ ref: r
339
+ }, m, {
340
+ variant: L,
341
+ classes: P,
342
+ ownerState: c,
343
+ children: [c.loadingPosition === "end" ? C : y, c.loadingPosition === "end" ? y : C]
344
+ }));
345
+ });
346
+ process.env.NODE_ENV !== "production" && (G.propTypes = {
347
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
348
+ // │ These PropTypes are generated from the TypeScript type definitions. │
349
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
350
+ // └─────────────────────────────────────────────────────────────────────┘
351
+ /**
352
+ * The content of the component.
353
+ */
354
+ children: n.node,
355
+ /**
356
+ * Override or extend the styles applied to the component.
357
+ */
358
+ classes: n.object,
359
+ /**
360
+ * If `true`, the component is disabled.
361
+ * @default false
362
+ */
363
+ disabled: n.bool,
364
+ /**
365
+ * @ignore
366
+ */
367
+ id: n.string,
368
+ /**
369
+ * If `true`, the loading indicator is shown and the button becomes disabled.
370
+ * @default false
371
+ */
372
+ loading: n.bool,
373
+ /**
374
+ * Element placed before the children if the button is in loading state.
375
+ * The node should contain an element with `role="progressbar"` with an accessible name.
376
+ * By default we render a `CircularProgress` that is labelled by the button itself.
377
+ * @default <CircularProgress color="inherit" size={16} />
378
+ */
379
+ loadingIndicator: n.node,
380
+ /**
381
+ * The loading indicator can be positioned on the start, end, or the center of the button.
382
+ * @default 'center'
383
+ */
384
+ loadingPosition: W(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),
385
+ /**
386
+ * The system prop that allows defining system overrides as well as additional CSS styles.
387
+ */
388
+ sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
389
+ /**
390
+ * The variant to use.
391
+ * @default 'text'
392
+ */
393
+ variant: n.oneOfType([n.oneOf(["contained", "outlined", "text"]), n.string])
394
+ });
395
+ const fo = G, ho = I(fo, {
396
+ shouldForwardProp: (o) => o !== "contentColor" && o !== "hoverColor"
397
+ })(({ contentColor: o, hoverColor: t, theme: r }) => ({
10
398
  justifyContent: "center",
11
399
  alignItems: "center",
12
400
  columnGap: 8,
@@ -14,34 +402,37 @@ const i = m(s, {
14
402
  paddingLeft: 12,
15
403
  paddingRight: 12,
16
404
  textTransform: "none",
17
- color: t.contentColor,
18
- borderColor: t.contentColor,
405
+ color: o,
406
+ borderColor: o,
19
407
  borderRadius: 5,
20
408
  borderWidth: 2,
21
409
  "&:hover": {
22
- borderColor: t.contentColor,
410
+ color: r.palette.common.white,
411
+ backgroundColor: t,
412
+ borderColor: t,
23
413
  borderWidth: 2
24
414
  }
25
- })), b = ({
26
- icon: t,
27
- text: l,
415
+ })), xo = ({
416
+ icon: o,
417
+ text: t,
28
418
  ...r
29
419
  }) => {
30
- const a = u(), o = r.contentColor ?? a.palette.primary.main;
31
- return /* @__PURE__ */ d(
32
- i,
420
+ const i = q(), a = r.contentColor ?? i.palette.primary.main;
421
+ return /* @__PURE__ */ S(
422
+ ho,
33
423
  {
34
424
  ...r,
35
425
  variant: "outlined",
36
- contentColor: o,
426
+ contentColor: a,
427
+ hoverColor: r.hoverColor ?? a,
37
428
  children: [
38
- (t == null ? void 0 : t.position) === "left" ? /* @__PURE__ */ e(n, { ...t, color: o }) : null,
39
- l,
40
- (t == null ? void 0 : t.position) === "right" ? /* @__PURE__ */ e(n, { ...t, color: o }) : null
429
+ (o == null ? void 0 : o.position) === "left" ? /* @__PURE__ */ f(T, { ...o }) : null,
430
+ t,
431
+ (o == null ? void 0 : o.position) === "right" ? /* @__PURE__ */ f(T, { ...o }) : null
41
432
  ]
42
433
  }
43
434
  );
44
435
  };
45
436
  export {
46
- b as default
437
+ xo as default
47
438
  };
@@ -1 +1 @@
1
- "use strict";const i=require("react/jsx-runtime"),m=require("react"),o=require("../../../useThemeProps-Aqe6oH65.cjs");function T(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const P=T(m);function g(e){return o.generateUtilityClass("MuiIcon",e)}o.generateUtilityClasses("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const S=["baseClassName","className","color","component","fontSize"],b=e=>{const{color:r,fontSize:n,classes:s}=e,t={root:["root",r!=="inherit"&&`color${o.capitalize(r)}`,`fontSize${o.capitalize(n)}`]};return o.composeClasses(t,g,s)},z=o.styled("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.root,n.color!=="inherit"&&r[`color${o.capitalize(n.color)}`],r[`fontSize${o.capitalize(n.fontSize)}`]]}})(({theme:e,ownerState:r})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[r.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[r.color]})),a=P.forwardRef(function(r,n){const s=o.useThemeProps({props:r,name:"MuiIcon"}),{baseClassName:t="material-icons",className:l,color:u="inherit",component:c="span",fontSize:y="medium"}=s,f=o._objectWithoutPropertiesLoose(s,S),p=o._extends({},s,{baseClassName:t,color:u,component:c,fontSize:y}),d=b(p);return i.jsx(z,o._extends({as:c,className:o.clsx(t,"notranslate",d.root,l),ownerState:p,"aria-hidden":!0,ref:n},f))});process.env.NODE_ENV!=="production"&&(a.propTypes={baseClassName:o.PropTypes.string,children:o.PropTypes.node,classes:o.PropTypes.object,className:o.PropTypes.string,color:o.PropTypes.oneOfType([o.PropTypes.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),o.PropTypes.string]),component:o.PropTypes.elementType,fontSize:o.PropTypes.oneOfType([o.PropTypes.oneOf(["inherit","large","medium","small"]),o.PropTypes.string]),sx:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object,o.PropTypes.bool])),o.PropTypes.func,o.PropTypes.object])});a.muiName="Icon";const x=a,v=({color:e,Component:r,name:n})=>n?i.jsx(x,{sx:{color:e},children:n}):i.jsx(r,{sx:{color:e}});module.exports=v;
1
+ "use strict";const i=require("react/jsx-runtime"),m=require("react"),o=require("../../../useThemeProps-Aqe6oH65.cjs");function T(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const P=T(m);function g(e){return o.generateUtilityClass("MuiIcon",e)}o.generateUtilityClasses("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const S=["baseClassName","className","color","component","fontSize"],b=e=>{const{color:r,fontSize:n,classes:s}=e,t={root:["root",r!=="inherit"&&`color${o.capitalize(r)}`,`fontSize${o.capitalize(n)}`]};return o.composeClasses(t,g,s)},z=o.styled("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.root,n.color!=="inherit"&&r[`color${o.capitalize(n.color)}`],r[`fontSize${o.capitalize(n.fontSize)}`]]}})(({theme:e,ownerState:r})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[r.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[r.color]})),a=P.forwardRef(function(r,n){const s=o.useThemeProps({props:r,name:"MuiIcon"}),{baseClassName:t="material-icons",className:l,color:u="inherit",component:c="span",fontSize:y="medium"}=s,f=o._objectWithoutPropertiesLoose(s,S),p=o._extends({},s,{baseClassName:t,color:u,component:c,fontSize:y}),d=b(p);return i.jsx(z,o._extends({as:c,className:o.clsx(t,"notranslate",d.root,l),ownerState:p,"aria-hidden":!0,ref:n},f))});process.env.NODE_ENV!=="production"&&(a.propTypes={baseClassName:o.PropTypes.string,children:o.PropTypes.node,classes:o.PropTypes.object,className:o.PropTypes.string,color:o.PropTypes.oneOfType([o.PropTypes.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),o.PropTypes.string]),component:o.PropTypes.elementType,fontSize:o.PropTypes.oneOfType([o.PropTypes.oneOf(["inherit","large","medium","small"]),o.PropTypes.string]),sx:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object,o.PropTypes.bool])),o.PropTypes.func,o.PropTypes.object])});a.muiName="Icon";const v=a,x=({Component:e,name:r})=>r?i.jsx(v,{children:r}):i.jsx(e,{});module.exports=x;
@@ -1,6 +1,5 @@
1
1
  import type { SvgIconComponent } from "@mui/icons-material";
2
2
  export interface DefaultButtonIconProps {
3
- color: string;
4
3
  position: "left" | "right";
5
4
  Component?: SvgIconComponent;
6
5
  name?: string;
@@ -1,6 +1,6 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import * as S from "react";
3
- import { b, g as v, s as z, f as t, u as x, _ as I, a as f, h as T, P as e, e as N } from "../../../useThemeProps-Dkkbtzcg.js";
3
+ import { b, g as v, s as z, f as t, u as I, _ as x, a as f, h as T, P as e, e as N } from "../../../useThemeProps-Dkkbtzcg.js";
4
4
  function C(o) {
5
5
  return b("MuiIcon", o);
6
6
  }
@@ -57,7 +57,7 @@ const w = ["baseClassName", "className", "color", "component", "fontSize"], O =
57
57
  inherit: void 0
58
58
  }[n.color]
59
59
  })), c = /* @__PURE__ */ S.forwardRef(function(n, r) {
60
- const s = x({
60
+ const s = I({
61
61
  props: n,
62
62
  name: "MuiIcon"
63
63
  }), {
@@ -66,7 +66,7 @@ const w = ["baseClassName", "className", "color", "component", "fontSize"], O =
66
66
  color: u = "inherit",
67
67
  component: l = "span",
68
68
  fontSize: m = "medium"
69
- } = s, y = I(s, w), p = f({}, s, {
69
+ } = s, y = x(s, w), p = f({}, s, {
70
70
  baseClassName: a,
71
71
  color: u,
72
72
  component: l,
@@ -134,10 +134,9 @@ process.env.NODE_ENV !== "production" && (c.propTypes = {
134
134
  });
135
135
  c.muiName = "Icon";
136
136
  const h = c, P = ({
137
- color: o,
138
- Component: n,
139
- name: r
140
- }) => r ? /* @__PURE__ */ i(h, { sx: { color: o }, children: r }) : /* @__PURE__ */ i(n, { sx: { color: o } });
137
+ Component: o,
138
+ name: n
139
+ }) => n ? /* @__PURE__ */ i(h, { children: n }) : /* @__PURE__ */ i(o, {});
141
140
  export {
142
141
  P as default
143
142
  };
@@ -1 +1 @@
1
- "use strict";const r=require("react/jsx-runtime");require("react");const n=require("../DefaultButton/DefaultButton.cjs.js"),o=require("../../../useTheme-BzgwMQvX.cjs"),u=e=>{const t=o.useTheme();return r.jsx(n,{contentColor:t.palette.primary.main,...e})};module.exports=u;
1
+ "use strict";const r=require("react/jsx-runtime");require("react");const o=require("../DefaultButton/DefaultButton.cjs.js"),n=require("../../../useTheme-BzgwMQvX.cjs"),u=t=>{const e=n.useTheme();return r.jsx(o,{contentColor:e.palette.primary.main,hoverColor:e.palette.primary.dark,...t})};module.exports=u;
@@ -1,10 +1,17 @@
1
- import { jsx as r } from "react/jsx-runtime";
1
+ import { jsx as o } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import e from "../DefaultButton/DefaultButton.es.js";
4
4
  import { u as m } from "../../../useTheme-D1_U7jx5.js";
5
- const u = (t) => {
6
- const o = m();
7
- return /* @__PURE__ */ r(e, { contentColor: o.palette.primary.main, ...t });
5
+ const u = (r) => {
6
+ const t = m();
7
+ return /* @__PURE__ */ o(
8
+ e,
9
+ {
10
+ contentColor: t.palette.primary.main,
11
+ hoverColor: t.palette.primary.dark,
12
+ ...r
13
+ }
14
+ );
8
15
  };
9
16
  export {
10
17
  u as default