@cgi-learning-hub/ui 0.0.1-dev.1709027888 → 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.
Files changed (99) hide show
  1. package/dist/Box-BOcHeUdU.cjs +1 -0
  2. package/dist/{Box-CPGTKTgx.js → Box-D7vtSZv3.js} +5 -5
  3. package/dist/{ButtonBase-B0tkJ9zf.js → ButtonBase-CWtGa3RS.js} +7 -6
  4. package/dist/{ButtonBase-DCL6Xlnm.cjs → ButtonBase-DiSWcqQX.cjs} +4 -4
  5. package/dist/{CircularProgress-CguDBnxV.js → CircularProgress-Cz74KUii.js} +37 -36
  6. package/dist/CircularProgress-DvzJ2zk9.cjs +28 -0
  7. package/dist/DefaultButton-3CeAmGTy.js +580 -0
  8. package/dist/DefaultButton-h0ISM4Pr.cjs +1 -0
  9. package/dist/IconButton-BRyHYK0S.cjs +2 -0
  10. package/dist/{IconButton-CJ1Nt-jf.js → IconButton-BvgHzYLs.js} +30 -28
  11. package/dist/{InputBase-C_yPRkam.js → InputBase-DXIea1Cc.js} +3 -3
  12. package/dist/{InputBase-Dvr5GnwD.cjs → InputBase-Dp2-NOH_.cjs} +3 -3
  13. package/dist/SearchInput-BVsQljml.js +176 -0
  14. package/dist/SearchInput-BbZiaK5Z.cjs +1 -0
  15. package/dist/Tabs-D7bi9NGH.js +1089 -0
  16. package/dist/Tabs-DBqF7m2y.cjs +4 -0
  17. package/dist/TextInput-CUnrSiJ9.js +5793 -0
  18. package/dist/TextInput-D7EBtZs8.cjs +12 -0
  19. package/dist/TimePicker-CZ8EXNU_.js +17528 -0
  20. package/dist/TimePicker-DjIOSP8-.cjs +16 -0
  21. package/dist/{Typography-CyFLZjnE.js → Typography-BsS5MVop.js} +39 -38
  22. package/dist/Typography-Dj96Ct2C.cjs +1 -0
  23. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  24. package/dist/components/Dropzone/Dropzone.d.ts +1 -3
  25. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  26. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
  27. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +7 -577
  28. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  29. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +4 -4
  30. package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
  31. package/dist/components/buttons/DefaultButton/index.es.js +2 -2
  32. package/dist/components/buttons/IconButton.stories.cjs.js +1 -1
  33. package/dist/components/buttons/IconButton.stories.es.js +2 -2
  34. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
  35. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +4 -4
  36. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  37. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  38. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
  39. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +2 -2
  40. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  41. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  42. package/dist/components/buttons/index.cjs.js +1 -1
  43. package/dist/components/buttons/index.es.js +2 -2
  44. package/dist/components/index.cjs.js +1 -1
  45. package/dist/components/index.d.ts +30 -2
  46. package/dist/components/index.es.js +85 -18
  47. package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
  48. package/dist/components/inputs/SearchInput/SearchInput.es.js +6 -173
  49. package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
  50. package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +4 -4
  51. package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
  52. package/dist/components/inputs/SearchInput/index.es.js +2 -2
  53. package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -12
  54. package/dist/components/inputs/TextInput/TextInput.es.js +5 -5774
  55. package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
  56. package/dist/components/inputs/TextInput/TextInput.stories.es.js +5 -5
  57. package/dist/components/inputs/TextInput/index.cjs.js +1 -1
  58. package/dist/components/inputs/TextInput/index.es.js +2 -2
  59. package/dist/components/inputs/index.cjs.js +1 -1
  60. package/dist/components/inputs/index.es.js +4 -4
  61. package/dist/components/lists/FileList/FileList.cjs.js +1 -1
  62. package/dist/components/lists/FileList/FileList.es.js +1 -1
  63. package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
  64. package/dist/components/lists/FileList/FileListItem.es.js +5 -5
  65. package/dist/components/lists/TabList.stories.cjs.js +1 -4
  66. package/dist/components/lists/TabList.stories.es.js +85 -932
  67. package/dist/createSvgIcon-DWH-VQOB.cjs +2 -0
  68. package/dist/{createSvgIcon-m_wsenOJ.js → createSvgIcon-Dt2OaWlr.js} +11 -11
  69. package/dist/{createSvgIcon-KaSN8JhZ.js → createSvgIcon-FbpDQQ7X.js} +3 -3
  70. package/dist/createSvgIcon-K1XmJ33T.cjs +1 -0
  71. package/dist/index.cjs.js +1 -1
  72. package/dist/index.es.js +85 -18
  73. package/dist/refType-BgO8A5K8.cjs +1 -0
  74. package/dist/{refType-Hh9tfnoF.js → refType-D_zuIflA.js} +1 -1
  75. package/dist/{useThemeProps-Dg9Uoq7q.js → styled-DWGei2G_.js} +621 -611
  76. package/dist/{useThemeProps-jkB5q9ie.cjs → styled-DhUFTujV.cjs} +22 -22
  77. package/dist/useForkRef-DfdM2MN5.cjs +1 -0
  78. package/dist/{useIsFocusVisible-BF0lT08B.cjs → useIsFocusVisible-9FderFRK.cjs} +1 -1
  79. package/dist/{useIsFocusVisible-D8ksiuhS.js → useIsFocusVisible-B88all80.js} +1 -1
  80. package/dist/{useSlotProps-MoAYME1z.js → useSlotProps-80kGxOhD.js} +2 -2
  81. package/dist/useSlotProps-DZRn5pp7.cjs +1 -0
  82. package/dist/{useTheme-DJEDOopE.js → useTheme-Jkpgyx74.js} +1 -1
  83. package/dist/useTheme-dCptpuPr.cjs +1 -0
  84. package/dist/{useTimeout-KN97abZR.js → useTimeout-C7IkLqZ9.js} +1 -1
  85. package/dist/{useTimeout-qjxkiZZn.cjs → useTimeout-DHarDhEH.cjs} +1 -1
  86. package/package.json +2 -1
  87. package/dist/Box-7uR7JZiM.cjs +0 -1
  88. package/dist/CircularProgress-CZX5SfKt.cjs +0 -28
  89. package/dist/IconButton-De7ZdW2q.cjs +0 -2
  90. package/dist/Tab-Bhm9hCrX.cjs +0 -1
  91. package/dist/Tab-C4l6V01S.js +0 -237
  92. package/dist/Typography-DwsN2Ttm.cjs +0 -1
  93. package/dist/createSvgIcon-B6bZPuto.cjs +0 -1
  94. package/dist/createSvgIcon-BX8WQ5r-.cjs +0 -2
  95. package/dist/refType-CHSN6ysS.cjs +0 -1
  96. package/dist/useForkRef-CGd3Nhyb.cjs +0 -1
  97. package/dist/useSlotProps-R4s13HHI.cjs +0 -1
  98. package/dist/useTheme-BDPYLOoP.cjs +0 -1
  99. package/dist/{useForkRef-DwN_Iz9R.js → useForkRef-CQ5u1_mH.js} +1 -1
@@ -0,0 +1,580 @@
1
+ import { jsx as b, jsxs as O } from "react/jsx-runtime";
2
+ import * as p from "react";
3
+ import N from "./components/buttons/DefaultButton/DefaultButtonIcon.es.js";
4
+ import { a as W, g as M, s as f, r as Y, c as l, _ as a, b as E, o as V, e as _, f as j, h as k, P as i, i as D } from "./styled-DWGei2G_.js";
5
+ import { B as Z } from "./ButtonBase-CWtGa3RS.js";
6
+ import { u as w } from "./useId-BW-oWmul.js";
7
+ import { c as oo } from "./refType-D_zuIflA.js";
8
+ import { C as no } from "./CircularProgress-Cz74KUii.js";
9
+ import { u as io } from "./useTheme-Jkpgyx74.js";
10
+ function to(o) {
11
+ return M("MuiButton", o);
12
+ }
13
+ const ao = W("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), R = ao, F = /* @__PURE__ */ p.createContext({});
14
+ process.env.NODE_ENV !== "production" && (F.displayName = "ButtonGroupContext");
15
+ const G = F, U = /* @__PURE__ */ p.createContext(void 0);
16
+ process.env.NODE_ENV !== "production" && (U.displayName = "ButtonGroupButtonContext");
17
+ const ro = U, so = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"], lo = (o) => {
18
+ const {
19
+ color: n,
20
+ disableElevation: t,
21
+ fullWidth: s,
22
+ size: r,
23
+ variant: e,
24
+ classes: d
25
+ } = o, g = {
26
+ root: ["root", e, `${e}${l(n)}`, `size${l(r)}`, `${e}Size${l(r)}`, n === "inherit" && "colorInherit", t && "disableElevation", s && "fullWidth"],
27
+ label: ["label"],
28
+ startIcon: ["startIcon", `iconSize${l(r)}`],
29
+ endIcon: ["endIcon", `iconSize${l(r)}`]
30
+ }, x = D(g, to, d);
31
+ return a({}, d, x);
32
+ }, S = (o) => a({}, o.size === "small" && {
33
+ "& > *:nth-of-type(1)": {
34
+ fontSize: 18
35
+ }
36
+ }, o.size === "medium" && {
37
+ "& > *:nth-of-type(1)": {
38
+ fontSize: 20
39
+ }
40
+ }, o.size === "large" && {
41
+ "& > *:nth-of-type(1)": {
42
+ fontSize: 22
43
+ }
44
+ }), eo = f(Z, {
45
+ shouldForwardProp: (o) => Y(o) || o === "classes",
46
+ name: "MuiButton",
47
+ slot: "Root",
48
+ overridesResolver: (o, n) => {
49
+ const {
50
+ ownerState: t
51
+ } = o;
52
+ return [n.root, n[t.variant], n[`${t.variant}${l(t.color)}`], n[`size${l(t.size)}`], n[`${t.variant}Size${l(t.size)}`], t.color === "inherit" && n.colorInherit, t.disableElevation && n.disableElevation, t.fullWidth && n.fullWidth];
53
+ }
54
+ })(({
55
+ theme: o,
56
+ ownerState: n
57
+ }) => {
58
+ var t, s;
59
+ const r = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], e = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
60
+ return a({}, o.typography.button, {
61
+ minWidth: 64,
62
+ padding: "6px 16px",
63
+ borderRadius: (o.vars || o).shape.borderRadius,
64
+ transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
65
+ duration: o.transitions.duration.short
66
+ }),
67
+ "&:hover": a({
68
+ textDecoration: "none",
69
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : E(o.palette.text.primary, o.palette.action.hoverOpacity),
70
+ // Reset on touch devices, it doesn't add specificity
71
+ "@media (hover: none)": {
72
+ backgroundColor: "transparent"
73
+ }
74
+ }, n.variant === "text" && n.color !== "inherit" && {
75
+ backgroundColor: o.vars ? `rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : E(o.palette[n.color].main, o.palette.action.hoverOpacity),
76
+ // Reset on touch devices, it doesn't add specificity
77
+ "@media (hover: none)": {
78
+ backgroundColor: "transparent"
79
+ }
80
+ }, n.variant === "outlined" && n.color !== "inherit" && {
81
+ border: `1px solid ${(o.vars || o).palette[n.color].main}`,
82
+ backgroundColor: o.vars ? `rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : E(o.palette[n.color].main, o.palette.action.hoverOpacity),
83
+ // Reset on touch devices, it doesn't add specificity
84
+ "@media (hover: none)": {
85
+ backgroundColor: "transparent"
86
+ }
87
+ }, n.variant === "contained" && {
88
+ backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedHoverBg : e,
89
+ boxShadow: (o.vars || o).shadows[4],
90
+ // Reset on touch devices, it doesn't add specificity
91
+ "@media (hover: none)": {
92
+ boxShadow: (o.vars || o).shadows[2],
93
+ backgroundColor: (o.vars || o).palette.grey[300]
94
+ }
95
+ }, n.variant === "contained" && n.color !== "inherit" && {
96
+ backgroundColor: (o.vars || o).palette[n.color].dark,
97
+ // Reset on touch devices, it doesn't add specificity
98
+ "@media (hover: none)": {
99
+ backgroundColor: (o.vars || o).palette[n.color].main
100
+ }
101
+ }),
102
+ "&:active": a({}, n.variant === "contained" && {
103
+ boxShadow: (o.vars || o).shadows[8]
104
+ }),
105
+ [`&.${R.focusVisible}`]: a({}, n.variant === "contained" && {
106
+ boxShadow: (o.vars || o).shadows[6]
107
+ }),
108
+ [`&.${R.disabled}`]: a({
109
+ color: (o.vars || o).palette.action.disabled
110
+ }, n.variant === "outlined" && {
111
+ border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
112
+ }, n.variant === "contained" && {
113
+ color: (o.vars || o).palette.action.disabled,
114
+ boxShadow: (o.vars || o).shadows[0],
115
+ backgroundColor: (o.vars || o).palette.action.disabledBackground
116
+ })
117
+ }, n.variant === "text" && {
118
+ padding: "6px 8px"
119
+ }, n.variant === "text" && n.color !== "inherit" && {
120
+ color: (o.vars || o).palette[n.color].main
121
+ }, n.variant === "outlined" && {
122
+ padding: "5px 15px",
123
+ border: "1px solid currentColor"
124
+ }, n.variant === "outlined" && n.color !== "inherit" && {
125
+ color: (o.vars || o).palette[n.color].main,
126
+ border: o.vars ? `1px solid rgba(${o.vars.palette[n.color].mainChannel} / 0.5)` : `1px solid ${E(o.palette[n.color].main, 0.5)}`
127
+ }, n.variant === "contained" && {
128
+ color: o.vars ? (
129
+ // this is safe because grey does not change between default light/dark mode
130
+ o.vars.palette.text.primary
131
+ ) : (t = (s = o.palette).getContrastText) == null ? void 0 : t.call(s, o.palette.grey[300]),
132
+ backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedBg : r,
133
+ boxShadow: (o.vars || o).shadows[2]
134
+ }, n.variant === "contained" && n.color !== "inherit" && {
135
+ color: (o.vars || o).palette[n.color].contrastText,
136
+ backgroundColor: (o.vars || o).palette[n.color].main
137
+ }, n.color === "inherit" && {
138
+ color: "inherit",
139
+ borderColor: "currentColor"
140
+ }, n.size === "small" && n.variant === "text" && {
141
+ padding: "4px 5px",
142
+ fontSize: o.typography.pxToRem(13)
143
+ }, n.size === "large" && n.variant === "text" && {
144
+ padding: "8px 11px",
145
+ fontSize: o.typography.pxToRem(15)
146
+ }, n.size === "small" && n.variant === "outlined" && {
147
+ padding: "3px 9px",
148
+ fontSize: o.typography.pxToRem(13)
149
+ }, n.size === "large" && n.variant === "outlined" && {
150
+ padding: "7px 21px",
151
+ fontSize: o.typography.pxToRem(15)
152
+ }, n.size === "small" && n.variant === "contained" && {
153
+ padding: "4px 10px",
154
+ fontSize: o.typography.pxToRem(13)
155
+ }, n.size === "large" && n.variant === "contained" && {
156
+ padding: "8px 22px",
157
+ fontSize: o.typography.pxToRem(15)
158
+ }, n.fullWidth && {
159
+ width: "100%"
160
+ });
161
+ }, ({
162
+ ownerState: o
163
+ }) => o.disableElevation && {
164
+ boxShadow: "none",
165
+ "&:hover": {
166
+ boxShadow: "none"
167
+ },
168
+ [`&.${R.focusVisible}`]: {
169
+ boxShadow: "none"
170
+ },
171
+ "&:active": {
172
+ boxShadow: "none"
173
+ },
174
+ [`&.${R.disabled}`]: {
175
+ boxShadow: "none"
176
+ }
177
+ }), co = f("span", {
178
+ name: "MuiButton",
179
+ slot: "StartIcon",
180
+ overridesResolver: (o, n) => {
181
+ const {
182
+ ownerState: t
183
+ } = o;
184
+ return [n.startIcon, n[`iconSize${l(t.size)}`]];
185
+ }
186
+ })(({
187
+ ownerState: o
188
+ }) => a({
189
+ display: "inherit",
190
+ marginRight: 8,
191
+ marginLeft: -4
192
+ }, o.size === "small" && {
193
+ marginLeft: -2
194
+ }, S(o))), uo = f("span", {
195
+ name: "MuiButton",
196
+ slot: "EndIcon",
197
+ overridesResolver: (o, n) => {
198
+ const {
199
+ ownerState: t
200
+ } = o;
201
+ return [n.endIcon, n[`iconSize${l(t.size)}`]];
202
+ }
203
+ })(({
204
+ ownerState: o
205
+ }) => a({
206
+ display: "inherit",
207
+ marginRight: -4,
208
+ marginLeft: 8
209
+ }, o.size === "small" && {
210
+ marginRight: -2
211
+ }, S(o))), H = /* @__PURE__ */ p.forwardRef(function(n, t) {
212
+ const s = p.useContext(G), r = p.useContext(ro), e = V(s, n), d = _({
213
+ props: e,
214
+ name: "MuiButton"
215
+ }), {
216
+ children: g,
217
+ color: x = "primary",
218
+ component: v = "button",
219
+ className: h,
220
+ disabled: z = !1,
221
+ disableElevation: $ = !1,
222
+ disableFocusRipple: B = !1,
223
+ endIcon: I,
224
+ focusVisibleClassName: m,
225
+ fullWidth: u = !1,
226
+ size: P = "medium",
227
+ startIcon: y,
228
+ type: T,
229
+ variant: q = "text"
230
+ } = d, J = j(d, so), L = a({}, d, {
231
+ color: x,
232
+ component: v,
233
+ disabled: z,
234
+ disableElevation: $,
235
+ disableFocusRipple: B,
236
+ fullWidth: u,
237
+ size: P,
238
+ type: T,
239
+ variant: q
240
+ }), C = lo(L), K = y && /* @__PURE__ */ b(co, {
241
+ className: C.startIcon,
242
+ ownerState: L,
243
+ children: y
244
+ }), Q = I && /* @__PURE__ */ b(uo, {
245
+ className: C.endIcon,
246
+ ownerState: L,
247
+ children: I
248
+ }), X = r || "";
249
+ return /* @__PURE__ */ O(eo, a({
250
+ ownerState: L,
251
+ className: k(s.className, C.root, h, X),
252
+ component: v,
253
+ disabled: z,
254
+ focusRipple: !B,
255
+ focusVisibleClassName: k(C.focusVisible, m),
256
+ ref: t,
257
+ type: T
258
+ }, J, {
259
+ classes: C,
260
+ children: [K, g, Q]
261
+ }));
262
+ });
263
+ process.env.NODE_ENV !== "production" && (H.propTypes = {
264
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
265
+ // │ These PropTypes are generated from the TypeScript type definitions. │
266
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
267
+ // └─────────────────────────────────────────────────────────────────────┘
268
+ /**
269
+ * The content of the component.
270
+ */
271
+ children: i.node,
272
+ /**
273
+ * Override or extend the styles applied to the component.
274
+ */
275
+ classes: i.object,
276
+ /**
277
+ * @ignore
278
+ */
279
+ className: i.string,
280
+ /**
281
+ * The color of the component.
282
+ * It supports both default and custom theme colors, which can be added as shown in the
283
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
284
+ * @default 'primary'
285
+ */
286
+ color: i.oneOfType([i.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), i.string]),
287
+ /**
288
+ * The component used for the root node.
289
+ * Either a string to use a HTML element or a component.
290
+ */
291
+ component: i.elementType,
292
+ /**
293
+ * If `true`, the component is disabled.
294
+ * @default false
295
+ */
296
+ disabled: i.bool,
297
+ /**
298
+ * If `true`, no elevation is used.
299
+ * @default false
300
+ */
301
+ disableElevation: i.bool,
302
+ /**
303
+ * If `true`, the keyboard focus ripple is disabled.
304
+ * @default false
305
+ */
306
+ disableFocusRipple: i.bool,
307
+ /**
308
+ * If `true`, the ripple effect is disabled.
309
+ *
310
+ * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
311
+ * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
312
+ * @default false
313
+ */
314
+ disableRipple: i.bool,
315
+ /**
316
+ * Element placed after the children.
317
+ */
318
+ endIcon: i.node,
319
+ /**
320
+ * @ignore
321
+ */
322
+ focusVisibleClassName: i.string,
323
+ /**
324
+ * If `true`, the button will take up the full width of its container.
325
+ * @default false
326
+ */
327
+ fullWidth: i.bool,
328
+ /**
329
+ * The URL to link to when the button is clicked.
330
+ * If defined, an `a` element will be used as the root node.
331
+ */
332
+ href: i.string,
333
+ /**
334
+ * The size of the component.
335
+ * `small` is equivalent to the dense button styling.
336
+ * @default 'medium'
337
+ */
338
+ size: i.oneOfType([i.oneOf(["small", "medium", "large"]), i.string]),
339
+ /**
340
+ * Element placed before the children.
341
+ */
342
+ startIcon: i.node,
343
+ /**
344
+ * The system prop that allows defining system overrides as well as additional CSS styles.
345
+ */
346
+ sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]),
347
+ /**
348
+ * @ignore
349
+ */
350
+ type: i.oneOfType([i.oneOf(["button", "reset", "submit"]), i.string]),
351
+ /**
352
+ * The variant to use.
353
+ * @default 'text'
354
+ */
355
+ variant: i.oneOfType([i.oneOf(["contained", "outlined", "text"]), i.string])
356
+ });
357
+ const po = H;
358
+ function go(o) {
359
+ return M("MuiLoadingButton", o);
360
+ }
361
+ const vo = W("MuiLoadingButton", ["root", "loading", "loadingIndicator", "loadingIndicatorCenter", "loadingIndicatorStart", "loadingIndicatorEnd", "endIconLoadingEnd", "startIconLoadingStart"]), c = vo, bo = ["children", "disabled", "id", "loading", "loadingIndicator", "loadingPosition", "variant"], fo = (o) => {
362
+ const {
363
+ loading: n,
364
+ loadingPosition: t,
365
+ classes: s
366
+ } = o, r = {
367
+ root: ["root", n && "loading"],
368
+ startIcon: [n && `startIconLoading${l(t)}`],
369
+ endIcon: [n && `endIconLoading${l(t)}`],
370
+ loadingIndicator: ["loadingIndicator", n && `loadingIndicator${l(t)}`]
371
+ }, e = D(r, go, s);
372
+ return a({}, s, e);
373
+ }, xo = (o) => o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as" && o !== "classes", Io = f(po, {
374
+ shouldForwardProp: (o) => xo(o) || o === "classes",
375
+ name: "MuiLoadingButton",
376
+ slot: "Root",
377
+ overridesResolver: (o, n) => [n.root, n.startIconLoadingStart && {
378
+ [`& .${c.startIconLoadingStart}`]: n.startIconLoadingStart
379
+ }, n.endIconLoadingEnd && {
380
+ [`& .${c.endIconLoadingEnd}`]: n.endIconLoadingEnd
381
+ }]
382
+ })(({
383
+ ownerState: o,
384
+ theme: n
385
+ }) => a({
386
+ [`& .${c.startIconLoadingStart}, & .${c.endIconLoadingEnd}`]: {
387
+ transition: n.transitions.create(["opacity"], {
388
+ duration: n.transitions.duration.short
389
+ }),
390
+ opacity: 0
391
+ }
392
+ }, o.loadingPosition === "center" && {
393
+ transition: n.transitions.create(["background-color", "box-shadow", "border-color"], {
394
+ duration: n.transitions.duration.short
395
+ }),
396
+ [`&.${c.loading}`]: {
397
+ color: "transparent"
398
+ }
399
+ }, o.loadingPosition === "start" && o.fullWidth && {
400
+ [`& .${c.startIconLoadingStart}, & .${c.endIconLoadingEnd}`]: {
401
+ transition: n.transitions.create(["opacity"], {
402
+ duration: n.transitions.duration.short
403
+ }),
404
+ opacity: 0,
405
+ marginRight: -8
406
+ }
407
+ }, o.loadingPosition === "end" && o.fullWidth && {
408
+ [`& .${c.startIconLoadingStart}, & .${c.endIconLoadingEnd}`]: {
409
+ transition: n.transitions.create(["opacity"], {
410
+ duration: n.transitions.duration.short
411
+ }),
412
+ opacity: 0,
413
+ marginLeft: -8
414
+ }
415
+ })), yo = f("span", {
416
+ name: "MuiLoadingButton",
417
+ slot: "LoadingIndicator",
418
+ overridesResolver: (o, n) => {
419
+ const {
420
+ ownerState: t
421
+ } = o;
422
+ return [n.loadingIndicator, n[`loadingIndicator${l(t.loadingPosition)}`]];
423
+ }
424
+ })(({
425
+ theme: o,
426
+ ownerState: n
427
+ }) => a({
428
+ position: "absolute",
429
+ visibility: "visible",
430
+ display: "flex"
431
+ }, n.loadingPosition === "start" && (n.variant === "outlined" || n.variant === "contained") && {
432
+ left: n.size === "small" ? 10 : 14
433
+ }, n.loadingPosition === "start" && n.variant === "text" && {
434
+ left: 6
435
+ }, n.loadingPosition === "center" && {
436
+ left: "50%",
437
+ transform: "translate(-50%)",
438
+ color: (o.vars || o).palette.action.disabled
439
+ }, n.loadingPosition === "end" && (n.variant === "outlined" || n.variant === "contained") && {
440
+ right: n.size === "small" ? 10 : 14
441
+ }, n.loadingPosition === "end" && n.variant === "text" && {
442
+ right: 6
443
+ }, n.loadingPosition === "start" && n.fullWidth && {
444
+ position: "relative",
445
+ left: -10
446
+ }, n.loadingPosition === "end" && n.fullWidth && {
447
+ position: "relative",
448
+ right: -10
449
+ })), A = /* @__PURE__ */ p.forwardRef(function(n, t) {
450
+ const s = p.useContext(G), r = V(s, n), e = _({
451
+ props: r,
452
+ name: "MuiLoadingButton"
453
+ }), {
454
+ children: d,
455
+ disabled: g = !1,
456
+ id: x,
457
+ loading: v = !1,
458
+ loadingIndicator: h,
459
+ loadingPosition: z = "center",
460
+ variant: $ = "text"
461
+ } = e, B = j(e, bo), I = w(x), m = h ?? /* @__PURE__ */ b(no, {
462
+ "aria-labelledby": I,
463
+ color: "inherit",
464
+ size: 16
465
+ }), u = a({}, e, {
466
+ disabled: g,
467
+ loading: v,
468
+ loadingIndicator: m,
469
+ loadingPosition: z,
470
+ variant: $
471
+ }), P = fo(u), y = v ? /* @__PURE__ */ b(yo, {
472
+ className: P.loadingIndicator,
473
+ ownerState: u,
474
+ children: m
475
+ }) : null;
476
+ return /* @__PURE__ */ O(Io, a({
477
+ disabled: g || v,
478
+ id: I,
479
+ ref: t
480
+ }, B, {
481
+ variant: $,
482
+ classes: P,
483
+ ownerState: u,
484
+ children: [u.loadingPosition === "end" ? d : y, u.loadingPosition === "end" ? y : d]
485
+ }));
486
+ });
487
+ process.env.NODE_ENV !== "production" && (A.propTypes = {
488
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
489
+ // │ These PropTypes are generated from the TypeScript type definitions. │
490
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
491
+ // └─────────────────────────────────────────────────────────────────────┘
492
+ /**
493
+ * The content of the component.
494
+ */
495
+ children: i.node,
496
+ /**
497
+ * Override or extend the styles applied to the component.
498
+ */
499
+ classes: i.object,
500
+ /**
501
+ * If `true`, the component is disabled.
502
+ * @default false
503
+ */
504
+ disabled: i.bool,
505
+ /**
506
+ * @ignore
507
+ */
508
+ id: i.string,
509
+ /**
510
+ * If `true`, the loading indicator is shown and the button becomes disabled.
511
+ * @default false
512
+ */
513
+ loading: i.bool,
514
+ /**
515
+ * Element placed before the children if the button is in loading state.
516
+ * The node should contain an element with `role="progressbar"` with an accessible name.
517
+ * By default we render a `CircularProgress` that is labelled by the button itself.
518
+ * @default <CircularProgress color="inherit" size={16} />
519
+ */
520
+ loadingIndicator: i.node,
521
+ /**
522
+ * The loading indicator can be positioned on the start, end, or the center of the button.
523
+ * @default 'center'
524
+ */
525
+ loadingPosition: oo(i.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),
526
+ /**
527
+ * The system prop that allows defining system overrides as well as additional CSS styles.
528
+ */
529
+ sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]),
530
+ /**
531
+ * The variant to use.
532
+ * @default 'text'
533
+ */
534
+ variant: i.oneOfType([i.oneOf(["contained", "outlined", "text"]), i.string])
535
+ });
536
+ const Co = A, ho = f(Co, {
537
+ shouldForwardProp: (o) => o !== "contentColor" && o !== "hoverColor"
538
+ })(({ contentColor: o, hoverColor: n, theme: t }) => ({
539
+ justifyContent: "center",
540
+ alignItems: "center",
541
+ columnGap: 8,
542
+ minHeight: 38,
543
+ paddingLeft: 12,
544
+ paddingRight: 12,
545
+ textTransform: "none",
546
+ color: o,
547
+ borderColor: o,
548
+ borderRadius: 5,
549
+ borderWidth: 2,
550
+ "&:hover": {
551
+ color: t.palette.common.white,
552
+ backgroundColor: n,
553
+ borderColor: n,
554
+ borderWidth: 2
555
+ }
556
+ })), Oo = ({
557
+ icon: o,
558
+ text: n,
559
+ ...t
560
+ }) => {
561
+ const s = io(), r = t.contentColor ?? s.palette.primary.main;
562
+ return /* @__PURE__ */ O(
563
+ ho,
564
+ {
565
+ ...t,
566
+ variant: "outlined",
567
+ contentColor: r,
568
+ hoverColor: t.hoverColor ?? r,
569
+ children: [
570
+ (o == null ? void 0 : o.position) === "left" ? /* @__PURE__ */ b(N, { ...o }) : null,
571
+ n,
572
+ (o == null ? void 0 : o.position) === "right" ? /* @__PURE__ */ b(N, { ...o }) : null
573
+ ]
574
+ }
575
+ );
576
+ };
577
+ export {
578
+ po as B,
579
+ Oo as D
580
+ };
@@ -0,0 +1 @@
1
+ "use strict";const d=require("react/jsx-runtime"),q=require("react"),L=require("./components/buttons/DefaultButton/DefaultButtonIcon.cjs.js"),t=require("./styled-DhUFTujV.cjs"),U=require("./ButtonBase-DiSWcqQX.cjs"),F=require("./useId-Cw0TtD-8.cjs"),G=require("./refType-BgO8A5K8.cjs"),S=require("./CircularProgress-DvzJ2zk9.cjs"),H=require("./useTheme-dCptpuPr.cjs");function A(o){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const i in o)if(i!=="default"){const a=Object.getOwnPropertyDescriptor(o,i);Object.defineProperty(n,i,a.get?a:{enumerable:!0,get:()=>o[i]})}}return n.default=o,Object.freeze(n)}const p=A(q);function J(o){return t.generateUtilityClass("MuiButton",o)}const K=t.generateUtilityClasses("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),B=K,m=p.createContext({});process.env.NODE_ENV!=="production"&&(m.displayName="ButtonGroupContext");const E=m,O=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(O.displayName="ButtonGroupButtonContext");const Q=O,X=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Y=o=>{const{color:n,disableElevation:i,fullWidth:a,size:r,variant:e,classes:s}=o,u={root:["root",e,`${e}${t.capitalize(n)}`,`size${t.capitalize(r)}`,`${e}Size${t.capitalize(r)}`,n==="inherit"&&"colorInherit",i&&"disableElevation",a&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${t.capitalize(r)}`],endIcon:["endIcon",`iconSize${t.capitalize(r)}`]},y=t.composeClasses(u,J,s);return t._extends({},s,y)},R=o=>t._extends({},o.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},o.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},o.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Z=t.styled(U.ButtonBase,{shouldForwardProp:o=>t.rootShouldForwardProp(o)||o==="classes",name:"MuiButton",slot:"Root",overridesResolver:(o,n)=>{const{ownerState:i}=o;return[n.root,n[i.variant],n[`${i.variant}${t.capitalize(i.color)}`],n[`size${t.capitalize(i.size)}`],n[`${i.variant}Size${t.capitalize(i.size)}`],i.color==="inherit"&&n.colorInherit,i.disableElevation&&n.disableElevation,i.fullWidth&&n.fullWidth]}})(({theme:o,ownerState:n})=>{var i,a;const r=o.palette.mode==="light"?o.palette.grey[300]:o.palette.grey[800],e=o.palette.mode==="light"?o.palette.grey.A100:o.palette.grey[700];return t._extends({},o.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(o.vars||o).shape.borderRadius,transition:o.transitions.create(["background-color","box-shadow","border-color","color"],{duration:o.transitions.duration.short}),"&:hover":t._extends({textDecoration:"none",backgroundColor:o.vars?`rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})`:t.alpha(o.palette.text.primary,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},n.variant==="text"&&n.color!=="inherit"&&{backgroundColor:o.vars?`rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:t.alpha(o.palette[n.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},n.variant==="outlined"&&n.color!=="inherit"&&{border:`1px solid ${(o.vars||o).palette[n.color].main}`,backgroundColor:o.vars?`rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:t.alpha(o.palette[n.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},n.variant==="contained"&&{backgroundColor:o.vars?o.vars.palette.Button.inheritContainedHoverBg:e,boxShadow:(o.vars||o).shadows[4],"@media (hover: none)":{boxShadow:(o.vars||o).shadows[2],backgroundColor:(o.vars||o).palette.grey[300]}},n.variant==="contained"&&n.color!=="inherit"&&{backgroundColor:(o.vars||o).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(o.vars||o).palette[n.color].main}}),"&:active":t._extends({},n.variant==="contained"&&{boxShadow:(o.vars||o).shadows[8]}),[`&.${B.focusVisible}`]:t._extends({},n.variant==="contained"&&{boxShadow:(o.vars||o).shadows[6]}),[`&.${B.disabled}`]:t._extends({color:(o.vars||o).palette.action.disabled},n.variant==="outlined"&&{border:`1px solid ${(o.vars||o).palette.action.disabledBackground}`},n.variant==="contained"&&{color:(o.vars||o).palette.action.disabled,boxShadow:(o.vars||o).shadows[0],backgroundColor:(o.vars||o).palette.action.disabledBackground})},n.variant==="text"&&{padding:"6px 8px"},n.variant==="text"&&n.color!=="inherit"&&{color:(o.vars||o).palette[n.color].main},n.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},n.variant==="outlined"&&n.color!=="inherit"&&{color:(o.vars||o).palette[n.color].main,border:o.vars?`1px solid rgba(${o.vars.palette[n.color].mainChannel} / 0.5)`:`1px solid ${t.alpha(o.palette[n.color].main,.5)}`},n.variant==="contained"&&{color:o.vars?o.vars.palette.text.primary:(i=(a=o.palette).getContrastText)==null?void 0:i.call(a,o.palette.grey[300]),backgroundColor:o.vars?o.vars.palette.Button.inheritContainedBg:r,boxShadow:(o.vars||o).shadows[2]},n.variant==="contained"&&n.color!=="inherit"&&{color:(o.vars||o).palette[n.color].contrastText,backgroundColor:(o.vars||o).palette[n.color].main},n.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},n.size==="small"&&n.variant==="text"&&{padding:"4px 5px",fontSize:o.typography.pxToRem(13)},n.size==="large"&&n.variant==="text"&&{padding:"8px 11px",fontSize:o.typography.pxToRem(15)},n.size==="small"&&n.variant==="outlined"&&{padding:"3px 9px",fontSize:o.typography.pxToRem(13)},n.size==="large"&&n.variant==="outlined"&&{padding:"7px 21px",fontSize:o.typography.pxToRem(15)},n.size==="small"&&n.variant==="contained"&&{padding:"4px 10px",fontSize:o.typography.pxToRem(13)},n.size==="large"&&n.variant==="contained"&&{padding:"8px 22px",fontSize:o.typography.pxToRem(15)},n.fullWidth&&{width:"100%"})},({ownerState:o})=>o.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${B.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${B.disabled}`]:{boxShadow:"none"}}),w=t.styled("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(o,n)=>{const{ownerState:i}=o;return[n.startIcon,n[`iconSize${t.capitalize(i.size)}`]]}})(({ownerState:o})=>t._extends({display:"inherit",marginRight:8,marginLeft:-4},o.size==="small"&&{marginLeft:-2},R(o))),oo=t.styled("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(o,n)=>{const{ownerState:i}=o;return[n.endIcon,n[`iconSize${t.capitalize(i.size)}`]]}})(({ownerState:o})=>t._extends({display:"inherit",marginRight:-4,marginLeft:8},o.size==="small"&&{marginRight:-2},R(o))),_=p.forwardRef(function(n,i){const a=p.useContext(E),r=p.useContext(Q),e=t.resolveProps(a,n),s=t.useThemeProps({props:e,name:"MuiButton"}),{children:u,color:y="primary",component:g="button",className:f,disabled:P=!1,disableElevation:T=!1,disableFocusRipple:I=!1,endIcon:v,focusVisibleClassName:C,fullWidth:c=!1,size:z="medium",startIcon:b,type:$,variant:k="text"}=s,W=t._objectWithoutPropertiesLoose(s,X),h=t._extends({},s,{color:y,component:g,disabled:P,disableElevation:T,disableFocusRipple:I,fullWidth:c,size:z,type:$,variant:k}),x=Y(h),M=b&&d.jsx(w,{className:x.startIcon,ownerState:h,children:b}),V=v&&d.jsx(oo,{className:x.endIcon,ownerState:h,children:v}),D=r||"";return d.jsxs(Z,t._extends({ownerState:h,className:t.clsx(a.className,x.root,f,D),component:g,disabled:P,focusRipple:!I,focusVisibleClassName:t.clsx(x.focusVisible,C),ref:i,type:$},W,{classes:x,children:[M,u,V]}))});process.env.NODE_ENV!=="production"&&(_.propTypes={children:t.PropTypes.node,classes:t.PropTypes.object,className:t.PropTypes.string,color:t.PropTypes.oneOfType([t.PropTypes.oneOf(["inherit","primary","secondary","success","error","info","warning"]),t.PropTypes.string]),component:t.PropTypes.elementType,disabled:t.PropTypes.bool,disableElevation:t.PropTypes.bool,disableFocusRipple:t.PropTypes.bool,disableRipple:t.PropTypes.bool,endIcon:t.PropTypes.node,focusVisibleClassName:t.PropTypes.string,fullWidth:t.PropTypes.bool,href:t.PropTypes.string,size:t.PropTypes.oneOfType([t.PropTypes.oneOf(["small","medium","large"]),t.PropTypes.string]),startIcon:t.PropTypes.node,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]),type:t.PropTypes.oneOfType([t.PropTypes.oneOf(["button","reset","submit"]),t.PropTypes.string]),variant:t.PropTypes.oneOfType([t.PropTypes.oneOf(["contained","outlined","text"]),t.PropTypes.string])});const N=_;function no(o){return t.generateUtilityClass("MuiLoadingButton",o)}const to=t.generateUtilityClasses("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),l=to,io=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],ao=o=>{const{loading:n,loadingPosition:i,classes:a}=o,r={root:["root",n&&"loading"],startIcon:[n&&`startIconLoading${t.capitalize(i)}`],endIcon:[n&&`endIconLoading${t.capitalize(i)}`],loadingIndicator:["loadingIndicator",n&&`loadingIndicator${t.capitalize(i)}`]},e=t.composeClasses(r,no,a);return t._extends({},a,e)},ro=o=>o!=="ownerState"&&o!=="theme"&&o!=="sx"&&o!=="as"&&o!=="classes",eo=t.styled(N,{shouldForwardProp:o=>ro(o)||o==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(o,n)=>[n.root,n.startIconLoadingStart&&{[`& .${l.startIconLoadingStart}`]:n.startIconLoadingStart},n.endIconLoadingEnd&&{[`& .${l.endIconLoadingEnd}`]:n.endIconLoadingEnd}]})(({ownerState:o,theme:n})=>t._extends({[`& .${l.startIconLoadingStart}, & .${l.endIconLoadingEnd}`]:{transition:n.transitions.create(["opacity"],{duration:n.transitions.duration.short}),opacity:0}},o.loadingPosition==="center"&&{transition:n.transitions.create(["background-color","box-shadow","border-color"],{duration:n.transitions.duration.short}),[`&.${l.loading}`]:{color:"transparent"}},o.loadingPosition==="start"&&o.fullWidth&&{[`& .${l.startIconLoadingStart}, & .${l.endIconLoadingEnd}`]:{transition:n.transitions.create(["opacity"],{duration:n.transitions.duration.short}),opacity:0,marginRight:-8}},o.loadingPosition==="end"&&o.fullWidth&&{[`& .${l.startIconLoadingStart}, & .${l.endIconLoadingEnd}`]:{transition:n.transitions.create(["opacity"],{duration:n.transitions.duration.short}),opacity:0,marginLeft:-8}})),so=t.styled("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(o,n)=>{const{ownerState:i}=o;return[n.loadingIndicator,n[`loadingIndicator${t.capitalize(i.loadingPosition)}`]]}})(({theme:o,ownerState:n})=>t._extends({position:"absolute",visibility:"visible",display:"flex"},n.loadingPosition==="start"&&(n.variant==="outlined"||n.variant==="contained")&&{left:n.size==="small"?10:14},n.loadingPosition==="start"&&n.variant==="text"&&{left:6},n.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(o.vars||o).palette.action.disabled},n.loadingPosition==="end"&&(n.variant==="outlined"||n.variant==="contained")&&{right:n.size==="small"?10:14},n.loadingPosition==="end"&&n.variant==="text"&&{right:6},n.loadingPosition==="start"&&n.fullWidth&&{position:"relative",left:-10},n.loadingPosition==="end"&&n.fullWidth&&{position:"relative",right:-10})),j=p.forwardRef(function(n,i){const a=p.useContext(E),r=t.resolveProps(a,n),e=t.useThemeProps({props:r,name:"MuiLoadingButton"}),{children:s,disabled:u=!1,id:y,loading:g=!1,loadingIndicator:f,loadingPosition:P="center",variant:T="text"}=e,I=t._objectWithoutPropertiesLoose(e,io),v=F.useId(y),C=f??d.jsx(S.CircularProgress,{"aria-labelledby":v,color:"inherit",size:16}),c=t._extends({},e,{disabled:u,loading:g,loadingIndicator:C,loadingPosition:P,variant:T}),z=ao(c),b=g?d.jsx(so,{className:z.loadingIndicator,ownerState:c,children:C}):null;return d.jsxs(eo,t._extends({disabled:u||g,id:v,ref:i},I,{variant:T,classes:z,ownerState:c,children:[c.loadingPosition==="end"?s:b,c.loadingPosition==="end"?b:s]}))});process.env.NODE_ENV!=="production"&&(j.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:G.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 lo=j,co=t.styled(lo,{shouldForwardProp:o=>o!=="contentColor"&&o!=="hoverColor"})(({contentColor:o,hoverColor:n,theme:i})=>({justifyContent:"center",alignItems:"center",columnGap:8,minHeight:38,paddingLeft:12,paddingRight:12,textTransform:"none",color:o,borderColor:o,borderRadius:5,borderWidth:2,"&:hover":{color:i.palette.common.white,backgroundColor:n,borderColor:n,borderWidth:2}})),po=({icon:o,text:n,...i})=>{const a=H.useTheme(),r=i.contentColor??a.palette.primary.main;return d.jsxs(co,{...i,variant:"outlined",contentColor:r,hoverColor:i.hoverColor??r,children:[(o==null?void 0:o.position)==="left"?d.jsx(L,{...o}):null,n,(o==null?void 0:o.position)==="right"?d.jsx(L,{...o}):null]})};exports.Button=N;exports.DefaultButton=po;
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("./styled-DhUFTujV.cjs"),P=require("react"),z=require("react/jsx-runtime"),h=require("./ButtonBase-DiSWcqQX.cjs"),m=require("./refType-BgO8A5K8.cjs");function B(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>o[r]})}}return t.default=o,Object.freeze(t)}const l=B(P);function u(o){return e.generateUtilityClass("MuiIconButton",o)}const C=e.generateUtilityClasses("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),y=C,R=["edge","children","className","color","disabled","disableFocusRipple","size"],O=o=>{const{classes:t,disabled:r,color:s,edge:n,size:a}=o,i={root:["root",r&&"disabled",s!=="default"&&`color${e.capitalize(s)}`,n&&`edge${e.capitalize(n)}`,`size${e.capitalize(a)}`]};return e.composeClasses(i,u,t)},x=e.styled(h.ButtonBase,{name:"MuiIconButton",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:r}=o;return[t.root,r.color!=="default"&&t[`color${e.capitalize(r.color)}`],r.edge&&t[`edge${e.capitalize(r.edge)}`],t[`size${e.capitalize(r.size)}`]]}})(({theme:o,ownerState:t})=>e._extends({textAlign:"center",flex:"0 0 auto",fontSize:o.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(o.vars||o).palette.action.active,transition:o.transitions.create("background-color",{duration:o.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})`:e.alpha(o.palette.action.active,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:o,ownerState:t})=>{var r;const s=(r=(o.vars||o).palette)==null?void 0:r[t.color];return e._extends({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&e._extends({color:s==null?void 0:s.main},!t.disableRipple&&{"&:hover":e._extends({},s&&{backgroundColor:o.vars?`rgba(${s.mainChannel} / ${o.vars.palette.action.hoverOpacity})`:e.alpha(s.main,o.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:o.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:o.typography.pxToRem(28)},{[`&.${y.disabled}`]:{backgroundColor:"transparent",color:(o.vars||o).palette.action.disabled}})}),g=l.forwardRef(function(t,r){const s=e.useThemeProps({props:t,name:"MuiIconButton"}),{edge:n=!1,children:a,className:i,color:f="default",disabled:c=!1,disableFocusRipple:p=!1,size:b="medium"}=s,T=e._objectWithoutPropertiesLoose(s,R),d=e._extends({},s,{edge:n,color:f,disabled:c,disableFocusRipple:p,size:b}),v=O(d);return z.jsx(x,e._extends({className:e.clsx(v.root,i),centerRipple:!0,focusRipple:!p,disabled:c,ref:r,ownerState:d},T,{children:a}))});process.env.NODE_ENV!=="production"&&(g.propTypes={children:m.chainPropTypes(e.PropTypes.node,o=>l.Children.toArray(o.children).some(r=>l.isValidElement(r)&&r.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
2
+ `)):null),classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),e.PropTypes.string]),disabled:e.PropTypes.bool,disableFocusRipple:e.PropTypes.bool,disableRipple:e.PropTypes.bool,edge:e.PropTypes.oneOf(["end","start",!1]),size:e.PropTypes.oneOfType([e.PropTypes.oneOf(["small","medium","large"]),e.PropTypes.string]),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])});const I=g;exports.IconButton=I;exports.getIconButtonUtilityClass=u;exports.iconButtonClasses=y;