@cgi-learning-hub/ui 1.0.0 → 1.1.0

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 (170) hide show
  1. package/dist/Box-5x1F2S3-.cjs +1 -0
  2. package/dist/{Box-BHWJ-D81.js → Box-Bawb5zHX.js} +24 -23
  3. package/dist/Button-C__-QOJY.js +359 -0
  4. package/dist/Button-DKIRmOzf.cjs +1 -0
  5. package/dist/{ButtonBase-BpYorbzW.js → ButtonBase-4F5roLHd.js} +36 -37
  6. package/dist/ButtonBase-Bw3wq81v.cjs +75 -0
  7. package/dist/{CircularProgress-C8TogtEK.js → CircularProgress-BNazIBar.js} +30 -30
  8. package/dist/CircularProgress-WnNPMTjD.cjs +28 -0
  9. package/dist/DatePicker-B0jLSEvZ.cjs +19 -0
  10. package/dist/DatePicker-DGVeagTz.js +12663 -0
  11. package/dist/DefaultButton-F67BOmrx.js +258 -0
  12. package/dist/DefaultButton-y-mHSNFH.cjs +1 -0
  13. package/dist/{IconButton-Hsn7HKeI.js → IconButton-D_deQOvN.js} +15 -15
  14. package/dist/IconButton-DhWgsgQ7.cjs +2 -0
  15. package/dist/InputAdornment-DYqMrYJz.cjs +1 -0
  16. package/dist/InputAdornment-hNrnvXW9.js +153 -0
  17. package/dist/InputBase-BeZ70Fbf.cjs +3 -0
  18. package/dist/{InputBase-BdOkEcEz.js → InputBase-DNkF-TAp.js} +218 -217
  19. package/dist/Stack-BJ2ths-g.js +172 -0
  20. package/dist/Stack-BOcvai-O.cjs +1 -0
  21. package/dist/Tabs-CG428TT3.cjs +4 -0
  22. package/dist/{Tabs-C8ECGIYh.js → Tabs-CWujD0SK.js} +33 -33
  23. package/dist/{TextInput-CpnUc54E.js → TextField-DDmGQyEr.js} +3607 -3603
  24. package/dist/TextField-wYRnAj1v.cjs +12 -0
  25. package/dist/Tooltip-D42pzHKW.js +7463 -0
  26. package/dist/Tooltip-O30xWGZU.cjs +95 -0
  27. package/dist/{Typography-D9Jbc-Y5.js → Typography-B2XMXu83.js} +18 -18
  28. package/dist/Typography-DR_aF9lJ.cjs +1 -0
  29. package/dist/assets/index.css +1 -1
  30. package/dist/assets/styles.css +1 -1
  31. package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
  32. package/dist/components/Dropzone/Dropzone.d.ts +2 -3
  33. package/dist/components/Dropzone/Dropzone.es.js +212 -240
  34. package/dist/components/Loader/Loader.cjs.js +1 -1
  35. package/dist/components/Loader/Loader.d.ts +0 -1
  36. package/dist/components/Loader/Loader.es.js +9 -9
  37. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  38. package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +0 -1
  39. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +1 -2
  40. package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -0
  41. package/dist/components/PaperHeader/PaperHeader.d.ts +13 -0
  42. package/dist/components/PaperHeader/PaperHeader.es.js +41 -0
  43. package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -0
  44. package/dist/components/PaperHeader/PaperHeader.stories.d.ts +5 -0
  45. package/dist/components/PaperHeader/PaperHeader.stories.es.js +28 -0
  46. package/dist/components/PaperHeader/index.cjs.js +1 -0
  47. package/dist/components/PaperHeader/index.d.ts +2 -0
  48. package/dist/components/PaperHeader/index.es.js +4 -0
  49. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
  50. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +2 -2
  51. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  52. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +14 -14
  53. package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
  54. package/dist/components/buttons/DefaultButton/index.es.js +1 -1
  55. package/dist/components/buttons/IconButton.stories.cjs.js +1 -1
  56. package/dist/components/buttons/IconButton.stories.es.js +3 -3
  57. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
  58. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
  59. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  60. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  61. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
  62. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
  63. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  64. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  65. package/dist/components/buttons/index.cjs.js +1 -1
  66. package/dist/components/buttons/index.es.js +1 -1
  67. package/dist/components/feedback/Alert/Alert.d.ts +0 -1
  68. package/dist/components/feedback/QueryError/QueryError.cjs.js +1 -1
  69. package/dist/components/feedback/QueryError/QueryError.es.js +1 -1
  70. package/dist/components/index.cjs.js +1 -1
  71. package/dist/components/index.d.ts +37 -21
  72. package/dist/components/index.es.js +271 -186
  73. package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -1
  74. package/dist/components/inputs/PasswordInput/PasswordInput.es.js +13 -15
  75. package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
  76. package/dist/components/inputs/SearchInput/SearchInput.es.js +36 -5
  77. package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
  78. package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +4 -4
  79. package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
  80. package/dist/components/inputs/SearchInput/index.es.js +2 -2
  81. package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
  82. package/dist/components/inputs/TextInput/TextInput.es.js +4 -3
  83. package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
  84. package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
  85. package/dist/components/inputs/TextInput/index.cjs.js +1 -1
  86. package/dist/components/inputs/TextInput/index.es.js +2 -2
  87. package/dist/components/inputs/index.cjs.js +1 -1
  88. package/dist/components/inputs/index.es.js +6 -6
  89. package/dist/components/lists/FileList/FileList.cjs.js +1 -1
  90. package/dist/components/lists/FileList/FileList.es.js +1 -1
  91. package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
  92. package/dist/components/lists/FileList/FileListItem.es.js +6 -6
  93. package/dist/components/lists/TabList.stories.cjs.js +1 -1
  94. package/dist/components/lists/TabList.stories.es.js +27 -26
  95. package/dist/components/pickers/DatePicker/DatePicker.cjs.js +1 -0
  96. package/dist/components/pickers/DatePicker/DatePicker.d.ts +8 -0
  97. package/dist/components/pickers/DatePicker/DatePicker.es.js +6 -0
  98. package/dist/components/pickers/DatePicker/DatePicker.stories.cjs.js +1 -0
  99. package/dist/components/pickers/DatePicker/DatePicker.stories.d.ts +5 -0
  100. package/dist/components/pickers/DatePicker/DatePicker.stories.es.js +16 -0
  101. package/dist/components/pickers/DatePicker/index.cjs.js +1 -0
  102. package/dist/components/pickers/DatePicker/index.d.ts +2 -0
  103. package/dist/components/pickers/DatePicker/index.es.js +4 -0
  104. package/dist/components/pickers/index.cjs.js +1 -0
  105. package/dist/components/pickers/index.d.ts +1 -0
  106. package/dist/components/pickers/index.es.js +4 -0
  107. package/dist/createStyled-CzVedz8V.js +142 -0
  108. package/dist/createStyled-LobpFGWo.cjs +1 -0
  109. package/dist/{createSvgIcon-BpzrJYC7.js → createSvgIcon-B8vHI3I6.js} +12 -12
  110. package/dist/createSvgIcon-BGm-SWUB.cjs +1 -0
  111. package/dist/createSvgIcon-CKlvKClV.cjs +2 -0
  112. package/dist/{createSvgIcon-CbXClqUM.js → createSvgIcon-DjuUwmEp.js} +21 -20
  113. package/dist/fr-By4s91yO.js +307 -0
  114. package/dist/fr-TRjulm1Q.cjs +1 -0
  115. package/dist/identifier-4KVhx666.cjs +50 -0
  116. package/dist/identifier-D-ng7Qqa.js +3047 -0
  117. package/dist/index.cjs.js +1 -1
  118. package/dist/index.es.js +273 -189
  119. package/dist/refType-BhXrhWFB.cjs +1 -0
  120. package/dist/{refType-CD9RZ5PF.js → refType-COGEdfch.js} +1 -1
  121. package/dist/styled-ZF_yhfMW.cjs +17 -0
  122. package/dist/styled-xiAudcD_.js +533 -0
  123. package/dist/useForkRef-CGd3Nhyb.cjs +1 -0
  124. package/dist/{useIsFocusVisible-B2ErvDHn.cjs → useIsFocusVisible-Bv_7uvif.cjs} +1 -1
  125. package/dist/{useIsFocusVisible-BsjI7Zxf.js → useIsFocusVisible-DhASXQ4o.js} +1 -1
  126. package/dist/useTheme-B5RCz7rY.cjs +1 -0
  127. package/dist/useTheme-CjBTq22m.js +18 -0
  128. package/dist/{useSlotProps-BCdUhJUO.js → useTheme-iNHILPzK.js} +41 -29
  129. package/dist/useTheme-kqsjFBnC.cjs +1 -0
  130. package/dist/useThemeProps-B-Oq4Y2j.cjs +1 -0
  131. package/dist/useThemeProps-BHAsCmc4.cjs +1 -0
  132. package/dist/useThemeProps-BM4fCFq5.js +27 -0
  133. package/dist/useThemeProps-BVvSbkPP.js +17 -0
  134. package/dist/{useTimeout-Dokw0W_A.js → useTimeout-BdvDipeg.js} +1 -1
  135. package/dist/{useTimeout-D8rbe5ty.cjs → useTimeout-XUWYBnl6.cjs} +1 -1
  136. package/package.json +18 -16
  137. package/dist/Box-DjpT-6Yv.cjs +0 -1
  138. package/dist/ButtonBase-BHN-4x4u.cjs +0 -75
  139. package/dist/CircularProgress-CjET2rvP.cjs +0 -28
  140. package/dist/DefaultButton-BoDg7xMm.cjs +0 -1
  141. package/dist/DefaultButton-y5BL9CKZ.js +0 -601
  142. package/dist/IconButton-fqTVX40x.cjs +0 -2
  143. package/dist/InputBase-DLc7Nf1T.cjs +0 -3
  144. package/dist/LocalizationProvider-B28kINsn.js +0 -575
  145. package/dist/LocalizationProvider-U4FHK15N.cjs +0 -5
  146. package/dist/SearchInput-B_Mgl-CJ.cjs +0 -1
  147. package/dist/SearchInput-DVccMSI6.js +0 -186
  148. package/dist/Tabs-Cij7O-J8.cjs +0 -4
  149. package/dist/TextInput-5zTkdX7s.cjs +0 -12
  150. package/dist/TimePicker-BRY05Sej.cjs +0 -73
  151. package/dist/TimePicker-CLolXFl8.js +0 -22074
  152. package/dist/Typography-6WB4M4zs.cjs +0 -1
  153. package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +0 -1
  154. package/dist/components/LocalizationProvider/LocalizationProvider.d.ts +0 -7
  155. package/dist/components/LocalizationProvider/LocalizationProvider.es.js +0 -6
  156. package/dist/components/LocalizationProvider/index.cjs.js +0 -1
  157. package/dist/components/LocalizationProvider/index.d.ts +0 -2
  158. package/dist/components/LocalizationProvider/index.es.js +0 -4
  159. package/dist/createSvgIcon-DQmDu_xr.cjs +0 -2
  160. package/dist/createSvgIcon-O41BSqQe.cjs +0 -1
  161. package/dist/fr-LokUOTE7.cjs +0 -1
  162. package/dist/fr-ndKV9IhC.js +0 -335
  163. package/dist/refType-DR4z34r8.cjs +0 -1
  164. package/dist/styled-D6_yEe4a.cjs +0 -26
  165. package/dist/styled-DSGBDqKV.js +0 -1218
  166. package/dist/useForkRef-DfdM2MN5.cjs +0 -1
  167. package/dist/useSlotProps-CXRrw38p.cjs +0 -1
  168. package/dist/useThemeProps-BktqG0To.cjs +0 -42
  169. package/dist/useThemeProps-DJpU2Yr7.js +0 -2428
  170. package/dist/{useForkRef-CQ5u1_mH.js → useForkRef-DwN_Iz9R.js} +1 -1
@@ -0,0 +1,258 @@
1
+ import { jsx as c, jsxs as C } from "react/jsx-runtime";
2
+ import * as B from "react";
3
+ import h from "./components/buttons/DefaultButton/DefaultButtonIcon.es.js";
4
+ import { s as p, r as R, u as T, c as j } from "./styled-xiAudcD_.js";
5
+ import { w as O, v as W, m as l, q as e, _ as k, P as t } from "./identifier-D-ng7Qqa.js";
6
+ import { B as U, a as z } from "./Button-C__-QOJY.js";
7
+ import { u as D } from "./useId-BW-oWmul.js";
8
+ import { c as _ } from "./refType-COGEdfch.js";
9
+ import { C as N } from "./CircularProgress-BNazIBar.js";
10
+ function F(n) {
11
+ return O("MuiLoadingButton", n);
12
+ }
13
+ const G = W("MuiLoadingButton", ["root", "loading", "loadingIndicator", "loadingIndicatorCenter", "loadingIndicatorStart", "loadingIndicatorEnd", "endIconLoadingEnd", "startIconLoadingStart"]), a = G, q = ["children", "disabled", "id", "loading", "loadingIndicator", "loadingPosition", "variant"], H = (n) => {
14
+ const {
15
+ loading: o,
16
+ loadingPosition: i,
17
+ classes: r
18
+ } = n, g = {
19
+ root: ["root", o && "loading"],
20
+ startIcon: [o && `startIconLoading${e(i)}`],
21
+ endIcon: [o && `endIconLoading${e(i)}`],
22
+ loadingIndicator: ["loadingIndicator", o && `loadingIndicator${e(i)}`]
23
+ }, s = j(g, F, r);
24
+ return l({}, r, s);
25
+ }, V = (n) => n !== "ownerState" && n !== "theme" && n !== "sx" && n !== "as" && n !== "classes", A = p(U, {
26
+ shouldForwardProp: (n) => V(n) || n === "classes",
27
+ name: "MuiLoadingButton",
28
+ slot: "Root",
29
+ overridesResolver: (n, o) => [o.root, o.startIconLoadingStart && {
30
+ [`& .${a.startIconLoadingStart}`]: o.startIconLoadingStart
31
+ }, o.endIconLoadingEnd && {
32
+ [`& .${a.endIconLoadingEnd}`]: o.endIconLoadingEnd
33
+ }]
34
+ })(({
35
+ ownerState: n,
36
+ theme: o
37
+ }) => l({
38
+ [`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]: {
39
+ transition: o.transitions.create(["opacity"], {
40
+ duration: o.transitions.duration.short
41
+ }),
42
+ opacity: 0
43
+ }
44
+ }, n.loadingPosition === "center" && {
45
+ transition: o.transitions.create(["background-color", "box-shadow", "border-color"], {
46
+ duration: o.transitions.duration.short
47
+ }),
48
+ [`&.${a.loading}`]: {
49
+ color: "transparent"
50
+ }
51
+ }, n.loadingPosition === "start" && n.fullWidth && {
52
+ [`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]: {
53
+ transition: o.transitions.create(["opacity"], {
54
+ duration: o.transitions.duration.short
55
+ }),
56
+ opacity: 0,
57
+ marginRight: -8
58
+ }
59
+ }, n.loadingPosition === "end" && n.fullWidth && {
60
+ [`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]: {
61
+ transition: o.transitions.create(["opacity"], {
62
+ duration: o.transitions.duration.short
63
+ }),
64
+ opacity: 0,
65
+ marginLeft: -8
66
+ }
67
+ })), J = p("span", {
68
+ name: "MuiLoadingButton",
69
+ slot: "LoadingIndicator",
70
+ overridesResolver: (n, o) => {
71
+ const {
72
+ ownerState: i
73
+ } = n;
74
+ return [o.loadingIndicator, o[`loadingIndicator${e(i.loadingPosition)}`]];
75
+ }
76
+ })(({
77
+ theme: n,
78
+ ownerState: o
79
+ }) => l({
80
+ position: "absolute",
81
+ visibility: "visible",
82
+ display: "flex"
83
+ }, o.loadingPosition === "start" && (o.variant === "outlined" || o.variant === "contained") && {
84
+ left: o.size === "small" ? 10 : 14
85
+ }, o.loadingPosition === "start" && o.variant === "text" && {
86
+ left: 6
87
+ }, o.loadingPosition === "center" && {
88
+ left: "50%",
89
+ transform: "translate(-50%)",
90
+ color: (n.vars || n).palette.action.disabled
91
+ }, o.loadingPosition === "end" && (o.variant === "outlined" || o.variant === "contained") && {
92
+ right: o.size === "small" ? 10 : 14
93
+ }, o.loadingPosition === "end" && o.variant === "text" && {
94
+ right: 6
95
+ }, o.loadingPosition === "start" && o.fullWidth && {
96
+ position: "relative",
97
+ left: -10
98
+ }, o.loadingPosition === "end" && o.fullWidth && {
99
+ position: "relative",
100
+ right: -10
101
+ })), x = /* @__PURE__ */ B.forwardRef(function(o, i) {
102
+ const r = B.useContext(z), g = R(r, o), s = T({
103
+ props: g,
104
+ name: "MuiLoadingButton"
105
+ }), {
106
+ children: I,
107
+ disabled: f = !1,
108
+ id: $,
109
+ loading: u = !1,
110
+ loadingIndicator: m,
111
+ loadingPosition: E = "center",
112
+ variant: b = "text"
113
+ } = s, M = k(s, q), P = D($), L = m ?? /* @__PURE__ */ c(N, {
114
+ "aria-labelledby": P,
115
+ color: "inherit",
116
+ size: 16
117
+ }), d = l({}, s, {
118
+ disabled: f,
119
+ loading: u,
120
+ loadingIndicator: L,
121
+ loadingPosition: E,
122
+ variant: b
123
+ }), v = H(d), y = u ? /* @__PURE__ */ c(J, {
124
+ className: v.loadingIndicator,
125
+ ownerState: d,
126
+ children: L
127
+ }) : null;
128
+ return /* @__PURE__ */ C(A, l({
129
+ disabled: f || u,
130
+ id: P,
131
+ ref: i
132
+ }, M, {
133
+ variant: b,
134
+ classes: v,
135
+ ownerState: d,
136
+ children: [d.loadingPosition === "end" ? I : y, d.loadingPosition === "end" ? y : I]
137
+ }));
138
+ });
139
+ process.env.NODE_ENV !== "production" && (x.propTypes = {
140
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
141
+ // │ These PropTypes are generated from the TypeScript type definitions. │
142
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
143
+ // └─────────────────────────────────────────────────────────────────────┘
144
+ /**
145
+ * The content of the component.
146
+ */
147
+ children: t.node,
148
+ /**
149
+ * Override or extend the styles applied to the component.
150
+ */
151
+ classes: t.object,
152
+ /**
153
+ * If `true`, the component is disabled.
154
+ * @default false
155
+ */
156
+ disabled: t.bool,
157
+ /**
158
+ * @ignore
159
+ */
160
+ id: t.string,
161
+ /**
162
+ * If `true`, the loading indicator is shown and the button becomes disabled.
163
+ * @default false
164
+ */
165
+ loading: t.bool,
166
+ /**
167
+ * Element placed before the children if the button is in loading state.
168
+ * The node should contain an element with `role="progressbar"` with an accessible name.
169
+ * By default we render a `CircularProgress` that is labelled by the button itself.
170
+ * @default <CircularProgress color="inherit" size={16} />
171
+ */
172
+ loadingIndicator: t.node,
173
+ /**
174
+ * The loading indicator can be positioned on the start, end, or the center of the button.
175
+ * @default 'center'
176
+ */
177
+ loadingPosition: _(t.oneOf(["start", "end", "center"]), (n) => n.loadingPosition === "start" && !n.startIcon ? new Error('MUI: The loadingPosition="start" should be used in combination with startIcon.') : n.loadingPosition === "end" && !n.endIcon ? new Error('MUI: The loadingPosition="end" should be used in combination with endIcon.') : null),
178
+ /**
179
+ * The system prop that allows defining system overrides as well as additional CSS styles.
180
+ */
181
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
182
+ /**
183
+ * The variant to use.
184
+ * @default 'text'
185
+ */
186
+ variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
187
+ });
188
+ const K = p(x)(
189
+ ({ color: n, theme: o }) => ({
190
+ justifyContent: "center",
191
+ alignItems: "center",
192
+ columnGap: 8,
193
+ minHeight: 38,
194
+ paddingLeft: 12,
195
+ paddingRight: 12,
196
+ textTransform: "none",
197
+ color: n,
198
+ borderColor: n,
199
+ borderRadius: 5,
200
+ borderWidth: 2,
201
+ transition: "all 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
202
+ "&.MuiButton-contained": {
203
+ color: o.palette.common.white
204
+ },
205
+ "&.MuiButton-outlined": {
206
+ borderRadius: 5,
207
+ borderWidth: 2,
208
+ "&.MuiButton-colorPrimary": {
209
+ "&:active": {
210
+ borderColor: o.palette.primary.main,
211
+ color: o.palette.primary.main
212
+ },
213
+ "&:hover": {
214
+ backgroundColor: o.palette.primary.dark,
215
+ borderColor: o.palette.primary.dark,
216
+ color: o.palette.common.white
217
+ }
218
+ },
219
+ "&.MuiButton-colorSecondary": {
220
+ "&:active": {
221
+ borderColor: o.palette.secondary.main,
222
+ color: o.palette.secondary.main
223
+ },
224
+ "&:hover": {
225
+ backgroundColor: o.palette.secondary.main,
226
+ color: o.palette.common.white
227
+ }
228
+ },
229
+ "&.MuiButton-colorError": {
230
+ "&:active": {
231
+ borderColor: o.palette.error.main,
232
+ color: o.palette.error.main
233
+ },
234
+ "&:hover": {
235
+ backgroundColor: o.palette.error.main,
236
+ color: o.palette.common.white
237
+ }
238
+ }
239
+ }
240
+ })
241
+ ), to = ({
242
+ icon: n,
243
+ text: o,
244
+ ...i
245
+ }) => {
246
+ const r = i.color ?? "primary";
247
+ return /* @__PURE__ */ C(K, { ...i, color: r, children: [
248
+ (n == null ? void 0 : n.position) === "left" ? /* @__PURE__ */ c(h, { ...n }) : null,
249
+ o,
250
+ (n == null ? void 0 : n.position) === "right" ? /* @__PURE__ */ c(h, { ...n }) : null
251
+ ] });
252
+ };
253
+ export {
254
+ to as D,
255
+ x as L,
256
+ F as g,
257
+ a as l
258
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("react/jsx-runtime"),j=require("react"),B=require("./components/buttons/DefaultButton/DefaultButtonIcon.cjs.js"),s=require("./styled-ZF_yhfMW.cjs"),n=require("./identifier-4KVhx666.cjs"),m=require("./Button-DKIRmOzf.cjs"),_=require("./useId-Cw0TtD-8.cjs"),E=require("./refType-BhXrhWFB.cjs"),M=require("./CircularProgress-WnNPMTjD.cjs");function O(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const a=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(o,i,a.get?a:{enumerable:!0,get:()=>t[i]})}}return o.default=t,Object.freeze(o)}const T=O(j);function x(t){return n.generateUtilityClass("MuiLoadingButton",t)}const R=n.generateUtilityClasses("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),r=R,q=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],z=t=>{const{loading:o,loadingPosition:i,classes:a}=t,c={root:["root",o&&"loading"],startIcon:[o&&`startIconLoading${n.capitalize(i)}`],endIcon:[o&&`endIconLoading${n.capitalize(i)}`],loadingIndicator:["loadingIndicator",o&&`loadingIndicator${n.capitalize(i)}`]},d=s.composeClasses(c,x,a);return n._extends({},a,d)},D=t=>t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"&&t!=="classes",k=s.styled(m.Button,{shouldForwardProp:t=>D(t)||t==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(t,o)=>[o.root,o.startIconLoadingStart&&{[`& .${r.startIconLoadingStart}`]:o.startIconLoadingStart},o.endIconLoadingEnd&&{[`& .${r.endIconLoadingEnd}`]:o.endIconLoadingEnd}]})(({ownerState:t,theme:o})=>n._extends({[`& .${r.startIconLoadingStart}, & .${r.endIconLoadingEnd}`]:{transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.short}),opacity:0}},t.loadingPosition==="center"&&{transition:o.transitions.create(["background-color","box-shadow","border-color"],{duration:o.transitions.duration.short}),[`&.${r.loading}`]:{color:"transparent"}},t.loadingPosition==="start"&&t.fullWidth&&{[`& .${r.startIconLoadingStart}, & .${r.endIconLoadingEnd}`]:{transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.short}),opacity:0,marginRight:-8}},t.loadingPosition==="end"&&t.fullWidth&&{[`& .${r.startIconLoadingStart}, & .${r.endIconLoadingEnd}`]:{transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.short}),opacity:0,marginLeft:-8}})),U=s.styled("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(t,o)=>{const{ownerState:i}=t;return[o.loadingIndicator,o[`loadingIndicator${n.capitalize(i.loadingPosition)}`]]}})(({theme:t,ownerState:o})=>n._extends({position:"absolute",visibility:"visible",display:"flex"},o.loadingPosition==="start"&&(o.variant==="outlined"||o.variant==="contained")&&{left:o.size==="small"?10:14},o.loadingPosition==="start"&&o.variant==="text"&&{left:6},o.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled},o.loadingPosition==="end"&&(o.variant==="outlined"||o.variant==="contained")&&{right:o.size==="small"?10:14},o.loadingPosition==="end"&&o.variant==="text"&&{right:6},o.loadingPosition==="start"&&o.fullWidth&&{position:"relative",left:-10},o.loadingPosition==="end"&&o.fullWidth&&{position:"relative",right:-10})),g=T.forwardRef(function(o,i){const a=T.useContext(m.ButtonGroupContext),c=s.resolveProps(a,o),d=s.useDefaultProps({props:c,name:"MuiLoadingButton"}),{children:p,disabled:y=!1,id:C,loading:u=!1,loadingIndicator:P,loadingPosition:h="center",variant:f="text"}=d,$=n._objectWithoutPropertiesLoose(d,q),I=_.useId(C),b=P??e.jsx(M.CircularProgress,{"aria-labelledby":I,color:"inherit",size:16}),l=n._extends({},d,{disabled:y,loading:u,loadingIndicator:b,loadingPosition:h,variant:f}),L=z(l),v=u?e.jsx(U,{className:L.loadingIndicator,ownerState:l,children:b}):null;return e.jsxs(k,n._extends({disabled:y||u,id:I,ref:i},$,{variant:f,classes:L,ownerState:l,children:[l.loadingPosition==="end"?p:v,l.loadingPosition==="end"?v:p]}))});process.env.NODE_ENV!=="production"&&(g.propTypes={children:n.PropTypes.node,classes:n.PropTypes.object,disabled:n.PropTypes.bool,id:n.PropTypes.string,loading:n.PropTypes.bool,loadingIndicator:n.PropTypes.node,loadingPosition:E.chainPropTypes(n.PropTypes.oneOf(["start","end","center"]),t=>t.loadingPosition==="start"&&!t.startIcon?new Error('MUI: The loadingPosition="start" should be used in combination with startIcon.'):t.loadingPosition==="end"&&!t.endIcon?new Error('MUI: The loadingPosition="end" should be used in combination with endIcon.'):null),sx:n.PropTypes.oneOfType([n.PropTypes.arrayOf(n.PropTypes.oneOfType([n.PropTypes.func,n.PropTypes.object,n.PropTypes.bool])),n.PropTypes.func,n.PropTypes.object]),variant:n.PropTypes.oneOfType([n.PropTypes.oneOf(["contained","outlined","text"]),n.PropTypes.string])});const W=s.styled(g)(({color:t,theme:o})=>({justifyContent:"center",alignItems:"center",columnGap:8,minHeight:38,paddingLeft:12,paddingRight:12,textTransform:"none",color:t,borderColor:t,borderRadius:5,borderWidth:2,transition:"all 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","&.MuiButton-contained":{color:o.palette.common.white},"&.MuiButton-outlined":{borderRadius:5,borderWidth:2,"&.MuiButton-colorPrimary":{"&:active":{borderColor:o.palette.primary.main,color:o.palette.primary.main},"&:hover":{backgroundColor:o.palette.primary.dark,borderColor:o.palette.primary.dark,color:o.palette.common.white}},"&.MuiButton-colorSecondary":{"&:active":{borderColor:o.palette.secondary.main,color:o.palette.secondary.main},"&:hover":{backgroundColor:o.palette.secondary.main,color:o.palette.common.white}},"&.MuiButton-colorError":{"&:active":{borderColor:o.palette.error.main,color:o.palette.error.main},"&:hover":{backgroundColor:o.palette.error.main,color:o.palette.common.white}}}})),N=({icon:t,text:o,...i})=>{const a=i.color??"primary";return e.jsxs(W,{...i,color:a,children:[(t==null?void 0:t.position)==="left"?e.jsx(B,{...t}):null,o,(t==null?void 0:t.position)==="right"?e.jsx(B,{...t}):null]})};exports.DefaultButton=N;exports.LoadingButton=g;exports.getLoadingButtonUtilityClass=x;exports.loadingButtonClasses=r;
@@ -1,13 +1,13 @@
1
- import { g as h, c as n, _ as t, a as f, u as z, b as R, P as r } from "./useThemeProps-DJpU2Yr7.js";
1
+ import { w as h, v as z, q as n, m as t, y as g, _ as R, x as C, P as r } from "./identifier-D-ng7Qqa.js";
2
2
  import * as d from "react";
3
- import { g as C, s as B, c as I, a as O } from "./styled-DSGBDqKV.js";
4
- import { jsx as T } from "react/jsx-runtime";
5
- import { B as $ } from "./ButtonBase-BpYorbzW.js";
6
- import { c as x } from "./refType-CD9RZ5PF.js";
3
+ import { s as B, u as I, c as O } from "./styled-xiAudcD_.js";
4
+ import { jsx as x } from "react/jsx-runtime";
5
+ import { B as $ } from "./ButtonBase-4F5roLHd.js";
6
+ import { c as T } from "./refType-COGEdfch.js";
7
7
  function k(o) {
8
8
  return h("MuiIconButton", o);
9
9
  }
10
- const P = C("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), _ = P, j = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"], E = (o) => {
10
+ const P = z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), _ = P, j = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"], E = (o) => {
11
11
  const {
12
12
  classes: e,
13
13
  disabled: s,
@@ -44,7 +44,7 @@ const P = C("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
44
44
  })
45
45
  }, !e.disableRipple && {
46
46
  "&:hover": {
47
- backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : f(o.palette.action.active, o.palette.action.hoverOpacity),
47
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : g(o.palette.action.active, o.palette.action.hoverOpacity),
48
48
  // Reset on touch devices, it doesn't add specificity
49
49
  "@media (hover: none)": {
50
50
  backgroundColor: "transparent"
@@ -66,7 +66,7 @@ const P = C("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
66
66
  color: a == null ? void 0 : a.main
67
67
  }, !e.disableRipple && {
68
68
  "&:hover": t({}, a && {
69
- backgroundColor: o.vars ? `rgba(${a.mainChannel} / ${o.vars.palette.action.hoverOpacity})` : f(a.main, o.palette.action.hoverOpacity)
69
+ backgroundColor: o.vars ? `rgba(${a.mainChannel} / ${o.vars.palette.action.hoverOpacity})` : g(a.main, o.palette.action.hoverOpacity)
70
70
  }, {
71
71
  // Reset on touch devices, it doesn't add specificity
72
72
  "@media (hover: none)": {
@@ -86,7 +86,7 @@ const P = C("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
86
86
  }
87
87
  });
88
88
  }), N = /* @__PURE__ */ d.forwardRef(function(e, s) {
89
- const a = z({
89
+ const a = I({
90
90
  props: e,
91
91
  name: "MuiIconButton"
92
92
  }), {
@@ -97,21 +97,21 @@ const P = C("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
97
97
  disabled: p = !1,
98
98
  disableFocusRipple: u = !1,
99
99
  size: v = "medium"
100
- } = a, m = R(a, j), g = t({}, a, {
100
+ } = a, m = R(a, j), f = t({}, a, {
101
101
  edge: i,
102
102
  color: b,
103
103
  disabled: p,
104
104
  disableFocusRipple: u,
105
105
  size: v
106
- }), y = E(g);
107
- return /* @__PURE__ */ T(M, t({
108
- className: I(y.root, c),
106
+ }), y = E(f);
107
+ return /* @__PURE__ */ x(M, t({
108
+ className: C(y.root, c),
109
109
  centerRipple: !0,
110
110
  focusRipple: !u,
111
111
  disabled: p,
112
112
  ref: s
113
113
  }, m, {
114
- ownerState: g,
114
+ ownerState: f,
115
115
  children: l
116
116
  }));
117
117
  });
@@ -123,7 +123,7 @@ process.env.NODE_ENV !== "production" && (N.propTypes = {
123
123
  /**
124
124
  * The icon to display.
125
125
  */
126
- children: x(r.node, (o) => d.Children.toArray(o.children).some((s) => /* @__PURE__ */ d.isValidElement(s) && s.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(`
126
+ children: T(r.node, (o) => d.Children.toArray(o.children).some((s) => /* @__PURE__ */ d.isValidElement(s) && s.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(`
127
127
  `)) : null),
128
128
  /**
129
129
  * Override or extend the styles applied to the component.
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("./identifier-4KVhx666.cjs"),z=require("react"),c=require("./styled-ZF_yhfMW.cjs"),h=require("react/jsx-runtime"),m=require("./ButtonBase-Bw3wq81v.cjs"),C=require("./refType-BhXrhWFB.cjs");function R(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>o[t]})}}return r.default=o,Object.freeze(r)}const l=R(z);function y(o){return e.generateUtilityClass("MuiIconButton",o)}const B=e.generateUtilityClasses("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),f=B,O=["edge","children","className","color","disabled","disableFocusRipple","size"],x=o=>{const{classes:r,disabled:t,color:s,edge:n,size:i}=o,a={root:["root",t&&"disabled",s!=="default"&&`color${e.capitalize(s)}`,n&&`edge${e.capitalize(n)}`,`size${e.capitalize(i)}`]};return c.composeClasses(a,y,r)},_=c.styled(m.ButtonBase,{name:"MuiIconButton",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:t}=o;return[r.root,t.color!=="default"&&r[`color${e.capitalize(t.color)}`],t.edge&&r[`edge${e.capitalize(t.edge)}`],r[`size${e.capitalize(t.size)}`]]}})(({theme:o,ownerState:r})=>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})},!r.disableRipple&&{"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})`:e.alpha_1(o.palette.action.active,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},r.edge==="start"&&{marginLeft:r.size==="small"?-3:-12},r.edge==="end"&&{marginRight:r.size==="small"?-3:-12}),({theme:o,ownerState:r})=>{var t;const s=(t=(o.vars||o).palette)==null?void 0:t[r.color];return e._extends({},r.color==="inherit"&&{color:"inherit"},r.color!=="inherit"&&r.color!=="default"&&e._extends({color:s==null?void 0:s.main},!r.disableRipple&&{"&:hover":e._extends({},s&&{backgroundColor:o.vars?`rgba(${s.mainChannel} / ${o.vars.palette.action.hoverOpacity})`:e.alpha_1(s.main,o.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),r.size==="small"&&{padding:5,fontSize:o.typography.pxToRem(18)},r.size==="large"&&{padding:12,fontSize:o.typography.pxToRem(28)},{[`&.${f.disabled}`]:{backgroundColor:"transparent",color:(o.vars||o).palette.action.disabled}})}),g=l.forwardRef(function(r,t){const s=c.useDefaultProps({props:r,name:"MuiIconButton"}),{edge:n=!1,children:i,className:a,color:b="default",disabled:p=!1,disableFocusRipple:d=!1,size:v="medium"}=s,T=e._objectWithoutPropertiesLoose(s,O),u=e._extends({},s,{edge:n,color:b,disabled:p,disableFocusRipple:d,size:v}),P=x(u);return h.jsx(_,e._extends({className:e.clsx(P.root,a),centerRipple:!0,focusRipple:!d,disabled:p,ref:t},T,{ownerState:u,children:i}))});process.env.NODE_ENV!=="production"&&(g.propTypes={children:C.chainPropTypes(e.PropTypes.node,o=>l.Children.toArray(o.children).some(t=>l.isValidElement(t)&&t.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])});exports.IconButton=g;exports.getIconButtonUtilityClass=y;exports.iconButtonClasses=f;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./identifier-4KVhx666.cjs"),j=require("react"),f=require("./InputBase-BeZ70Fbf.cjs"),y=require("./styled-ZF_yhfMW.cjs"),a=require("react/jsx-runtime"),I=require("./Typography-DR_aF9lJ.cjs");function O(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const o in n)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>n[o]})}}return t.default=n,Object.freeze(t)}const b=O(j);function A(n){return e.generateUtilityClass("MuiInputAdornment",n)}const P=e.generateUtilityClasses("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var h;const _=["children","className","component","disablePointerEvents","disableTypography","position","variant"],C=(n,t)=>{const{ownerState:o}=n;return[t.root,t[`position${e.capitalize(o.position)}`],o.disablePointerEvents===!0&&t.disablePointerEvents,t[o.variant]]},N=n=>{const{classes:t,disablePointerEvents:o,hiddenLabel:r,position:s,size:p,variant:l}=n,d={root:["root",o&&"disablePointerEvents",s&&`position${e.capitalize(s)}`,l,r&&"hiddenLabel",p&&`size${e.capitalize(p)}`]};return y.composeClasses(d,A,t)},z=y.styled("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:C})(({theme:n,ownerState:t})=>e._extends({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(n.vars||n).palette.action.active},t.variant==="filled"&&{[`&.${P.positionStart}&:not(.${P.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),T=b.forwardRef(function(t,o){const r=y.useDefaultProps({props:t,name:"MuiInputAdornment"}),{children:s,className:p,component:l="div",disablePointerEvents:d=!1,disableTypography:g=!1,position:m,variant:c}=r,x=e._objectWithoutPropertiesLoose(r,_),i=f.useFormControl()||{};let u=c;c&&i.variant&&process.env.NODE_ENV!=="production"&&c===i.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),i&&!u&&(u=i.variant);const v=e._extends({},r,{hiddenLabel:i.hiddenLabel,size:i.size,disablePointerEvents:d,position:m,variant:u}),E=N(v);return a.jsx(f.FormControlContext.Provider,{value:null,children:a.jsx(z,e._extends({as:l,ownerState:v,className:e.clsx(E.root,p),ref:o},x,{children:typeof s=="string"&&!g?a.jsx(I.Typography,{color:"text.secondary",children:s}):a.jsxs(b.Fragment,{children:[m==="start"?h||(h=a.jsx("span",{className:"notranslate",children:"​"})):null,s]})}))})});process.env.NODE_ENV!=="production"&&(T.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,disablePointerEvents:e.PropTypes.bool,disableTypography:e.PropTypes.bool,position:e.PropTypes.oneOf(["end","start"]).isRequired,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]),variant:e.PropTypes.oneOf(["filled","outlined","standard"])});exports.InputAdornment=T;
@@ -0,0 +1,153 @@
1
+ import { v as I, w as T, m as u, _ as A, x as C, P as e, q as v } from "./identifier-D-ng7Qqa.js";
2
+ import * as b from "react";
3
+ import { u as N, F as L } from "./InputBase-DNkF-TAp.js";
4
+ import { s as O, u as R, c as _ } from "./styled-xiAudcD_.js";
5
+ import { jsx as l, jsxs as j } from "react/jsx-runtime";
6
+ import { T as z } from "./Typography-B2XMXu83.js";
7
+ function F(t) {
8
+ return T("MuiInputAdornment", t);
9
+ }
10
+ const y = I("MuiInputAdornment", ["root", "filled", "standard", "outlined", "positionStart", "positionEnd", "disablePointerEvents", "hiddenLabel", "sizeSmall"]);
11
+ var g;
12
+ const M = ["children", "className", "component", "disablePointerEvents", "disableTypography", "position", "variant"], U = (t, o) => {
13
+ const {
14
+ ownerState: n
15
+ } = t;
16
+ return [o.root, o[`position${v(n.position)}`], n.disablePointerEvents === !0 && o.disablePointerEvents, o[n.variant]];
17
+ }, $ = (t) => {
18
+ const {
19
+ classes: o,
20
+ disablePointerEvents: n,
21
+ hiddenLabel: r,
22
+ position: s,
23
+ size: a,
24
+ variant: p
25
+ } = t, d = {
26
+ root: ["root", n && "disablePointerEvents", s && `position${v(s)}`, p, r && "hiddenLabel", a && `size${v(a)}`]
27
+ };
28
+ return _(d, F, o);
29
+ }, w = O("div", {
30
+ name: "MuiInputAdornment",
31
+ slot: "Root",
32
+ overridesResolver: U
33
+ })(({
34
+ theme: t,
35
+ ownerState: o
36
+ }) => u({
37
+ display: "flex",
38
+ height: "0.01em",
39
+ // Fix IE11 flexbox alignment. To remove at some point.
40
+ maxHeight: "2em",
41
+ alignItems: "center",
42
+ whiteSpace: "nowrap",
43
+ color: (t.vars || t).palette.action.active
44
+ }, o.variant === "filled" && {
45
+ // Styles applied to the root element if `variant="filled"`.
46
+ [`&.${y.positionStart}&:not(.${y.hiddenLabel})`]: {
47
+ marginTop: 16
48
+ }
49
+ }, o.position === "start" && {
50
+ // Styles applied to the root element if `position="start"`.
51
+ marginRight: 8
52
+ }, o.position === "end" && {
53
+ // Styles applied to the root element if `position="end"`.
54
+ marginLeft: 8
55
+ }, o.disablePointerEvents === !0 && {
56
+ // Styles applied to the root element if `disablePointerEvents={true}`.
57
+ pointerEvents: "none"
58
+ })), S = /* @__PURE__ */ b.forwardRef(function(o, n) {
59
+ const r = R({
60
+ props: o,
61
+ name: "MuiInputAdornment"
62
+ }), {
63
+ children: s,
64
+ className: a,
65
+ component: p = "div",
66
+ disablePointerEvents: d = !1,
67
+ disableTypography: E = !1,
68
+ position: f,
69
+ variant: c
70
+ } = r, P = A(r, M), i = N() || {};
71
+ let m = c;
72
+ c && i.variant && process.env.NODE_ENV !== "production" && c === i.variant && console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."), i && !m && (m = i.variant);
73
+ const h = u({}, r, {
74
+ hiddenLabel: i.hiddenLabel,
75
+ size: i.size,
76
+ disablePointerEvents: d,
77
+ position: f,
78
+ variant: m
79
+ }), x = $(h);
80
+ return /* @__PURE__ */ l(L.Provider, {
81
+ value: null,
82
+ children: /* @__PURE__ */ l(w, u({
83
+ as: p,
84
+ ownerState: h,
85
+ className: C(x.root, a),
86
+ ref: n
87
+ }, P, {
88
+ children: typeof s == "string" && !E ? /* @__PURE__ */ l(z, {
89
+ color: "text.secondary",
90
+ children: s
91
+ }) : /* @__PURE__ */ j(b.Fragment, {
92
+ children: [f === "start" ? (
93
+ /* notranslate needed while Google Translate will not fix zero-width space issue */
94
+ g || (g = /* @__PURE__ */ l("span", {
95
+ className: "notranslate",
96
+ children: "​"
97
+ }))
98
+ ) : null, s]
99
+ })
100
+ }))
101
+ });
102
+ });
103
+ process.env.NODE_ENV !== "production" && (S.propTypes = {
104
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
105
+ // │ These PropTypes are generated from the TypeScript type definitions. │
106
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
107
+ // └─────────────────────────────────────────────────────────────────────┘
108
+ /**
109
+ * The content of the component, normally an `IconButton` or string.
110
+ */
111
+ children: e.node,
112
+ /**
113
+ * Override or extend the styles applied to the component.
114
+ */
115
+ classes: e.object,
116
+ /**
117
+ * @ignore
118
+ */
119
+ className: e.string,
120
+ /**
121
+ * The component used for the root node.
122
+ * Either a string to use a HTML element or a component.
123
+ */
124
+ component: e.elementType,
125
+ /**
126
+ * Disable pointer events on the root.
127
+ * This allows for the content of the adornment to focus the `input` on click.
128
+ * @default false
129
+ */
130
+ disablePointerEvents: e.bool,
131
+ /**
132
+ * If children is a string then disable wrapping in a Typography component.
133
+ * @default false
134
+ */
135
+ disableTypography: e.bool,
136
+ /**
137
+ * The position this adornment should appear relative to the `Input`.
138
+ */
139
+ position: e.oneOf(["end", "start"]).isRequired,
140
+ /**
141
+ * The system prop that allows defining system overrides as well as additional CSS styles.
142
+ */
143
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
144
+ /**
145
+ * The variant to use.
146
+ * Note: If you are using the `TextField` component or the `FormControl` component
147
+ * you do not have to set this manually.
148
+ */
149
+ variant: e.oneOf(["filled", "outlined", "standard"])
150
+ });
151
+ export {
152
+ S as I
153
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";const e=require("./identifier-4KVhx666.cjs"),Be=require("react"),j=require("./styled-ZF_yhfMW.cjs"),b=require("react/jsx-runtime"),B=require("./useForkRef-CGd3Nhyb.cjs"),oe=require("./ownerWindow-Dk_4aaak.cjs"),de=require("./isHostComponent-PydJW4A4.cjs"),ce=require("./refType-BhXrhWFB.cjs"),je=require("./useTheme-kqsjFBnC.cjs");function He(o){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>o[t]})}}return n.default=o,Object.freeze(n)}const p=He(Be);function ye({styles:o,themeId:n,defaultTheme:t={}}){const r=je.useTheme(t),i=typeof o=="function"?o(n&&r[n]||r):o;return b.jsx(e.GlobalStyles,{styles:i})}process.env.NODE_ENV!=="production"&&(ye.propTypes={defaultTheme:e.PropTypes.object,styles:e.PropTypes.oneOfType([e.PropTypes.array,e.PropTypes.func,e.PropTypes.number,e.PropTypes.object,e.PropTypes.string,e.PropTypes.bool]),themeId:e.PropTypes.string});const q=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(q.displayName="FormControlContext");function me(){return p.useContext(q)}function fe(o){return o!=null&&!(Array.isArray(o)&&o.length===0)}function he(o,n=!1){return o&&(fe(o.value)&&o.value!==""||n&&fe(o.defaultValue)&&o.defaultValue!=="")}function Me(o){return o.startAdornment}function Te({props:o,states:n,muiFormControl:t}){return n.reduce((r,i)=>(r[i]=o[i],t&&typeof o[i]>"u"&&(r[i]=t[i]),r),{})}const We=["onChange","maxRows","minRows","style","value"];function V(o){return parseInt(o,10)||0}const De={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Ve(o){return o==null||Object.keys(o).length===0||o.outerHeightStyle===0&&!o.overflowing}const be=p.forwardRef(function(n,t){const{onChange:r,maxRows:i,minRows:d=1,style:E,value:z}=n,F=e._objectWithoutPropertiesLoose(n,We),{current:C}=p.useRef(z!=null),h=p.useRef(null),N=B.useForkRef(t,h),T=p.useRef(null),S=p.useRef(null),g=p.useCallback(()=>{const u=h.current,c=oe.ownerWindow(u).getComputedStyle(u);if(c.width==="0px")return{outerHeightStyle:0,overflowing:!1};const f=S.current;f.style.width=c.width,f.value=u.value||n.placeholder||"x",f.value.slice(-1)===`
2
+ `&&(f.value+=" ");const R=c.boxSizing,O=V(c.paddingBottom)+V(c.paddingTop),w=V(c.borderBottomWidth)+V(c.borderTopWidth),v=f.scrollHeight;f.value="x";const A=f.scrollHeight;let m=v;d&&(m=Math.max(Number(d)*A,m)),i&&(m=Math.min(Number(i)*A,m)),m=Math.max(m,A);const H=m+(R==="border-box"?O+w:0),$=Math.abs(m-v)<=1;return{outerHeightStyle:H,overflowing:$}},[i,d,n.placeholder]),x=p.useCallback(()=>{const u=g();if(Ve(u))return;const a=u.outerHeightStyle,c=h.current;T.current!==a&&(T.current=a,c.style.height=`${a}px`),c.style.overflow=u.overflowing?"hidden":""},[g]);B.useEnhancedEffect(()=>{const u=()=>{x()};let a;const c=()=>{cancelAnimationFrame(a),a=requestAnimationFrame(()=>{u()})},f=oe.debounce(u),R=h.current,O=oe.ownerWindow(R);O.addEventListener("resize",f);let w;return typeof ResizeObserver<"u"&&(w=new ResizeObserver(process.env.NODE_ENV==="test"?c:u),w.observe(R)),()=>{f.clear(),cancelAnimationFrame(a),O.removeEventListener("resize",f),w&&w.disconnect()}},[g,x]),B.useEnhancedEffect(()=>{x()});const U=u=>{C||x(),r&&r(u)};return b.jsxs(p.Fragment,{children:[b.jsx("textarea",e._extends({value:z,onChange:U,ref:N,rows:d,style:E},F)),b.jsx("textarea",{"aria-hidden":!0,className:n.className,readOnly:!0,ref:S,tabIndex:-1,style:e._extends({},De.shadow,E,{paddingTop:0,paddingBottom:0})})]})});process.env.NODE_ENV!=="production"&&(be.propTypes={className:e.PropTypes.string,maxRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),minRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),onChange:e.PropTypes.func,placeholder:e.PropTypes.string,style:e.PropTypes.object,value:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.string),e.PropTypes.number,e.PropTypes.string])});function Pe(o){return b.jsx(ye,e._extends({},o,{defaultTheme:j.defaultTheme,themeId:e.THEME_ID}))}process.env.NODE_ENV!=="production"&&(Pe.propTypes={styles:e.PropTypes.oneOfType([e.PropTypes.array,e.PropTypes.func,e.PropTypes.number,e.PropTypes.object,e.PropTypes.string,e.PropTypes.bool])});function Le(o){return e.generateUtilityClass("MuiInputBase",o)}const L=e.generateUtilityClasses("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),qe=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],ge=(o,n)=>{const{ownerState:t}=o;return[n.root,t.formControl&&n.formControl,t.startAdornment&&n.adornedStart,t.endAdornment&&n.adornedEnd,t.error&&n.error,t.size==="small"&&n.sizeSmall,t.multiline&&n.multiline,t.color&&n[`color${e.capitalize(t.color)}`],t.fullWidth&&n.fullWidth,t.hiddenLabel&&n.hiddenLabel]},xe=(o,n)=>{const{ownerState:t}=o;return[n.input,t.size==="small"&&n.inputSizeSmall,t.multiline&&n.inputMultiline,t.type==="search"&&n.inputTypeSearch,t.startAdornment&&n.inputAdornedStart,t.endAdornment&&n.inputAdornedEnd,t.hiddenLabel&&n.inputHiddenLabel]},Ue=o=>{const{classes:n,color:t,disabled:r,error:i,endAdornment:d,focused:E,formControl:z,fullWidth:F,hiddenLabel:C,multiline:h,readOnly:N,size:T,startAdornment:S,type:g}=o,x={root:["root",`color${e.capitalize(t)}`,r&&"disabled",i&&"error",F&&"fullWidth",E&&"focused",z&&"formControl",T&&T!=="medium"&&`size${e.capitalize(T)}`,h&&"multiline",S&&"adornedStart",d&&"adornedEnd",C&&"hiddenLabel",N&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",h&&"inputMultiline",T==="small"&&"inputSizeSmall",C&&"inputHiddenLabel",S&&"inputAdornedStart",d&&"inputAdornedEnd",N&&"readOnly"]};return j.composeClasses(x,Le,n)},we=j.styled("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ge})(({theme:o,ownerState:n})=>e._extends({},o.typography.body1,{color:(o.vars||o).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${L.disabled}`]:{color:(o.vars||o).palette.text.disabled,cursor:"default"}},n.multiline&&e._extends({padding:"4px 0 5px"},n.size==="small"&&{paddingTop:1}),n.fullWidth&&{width:"100%"})),ve=j.styled("input",{name:"MuiInputBase",slot:"Input",overridesResolver:xe})(({theme:o,ownerState:n})=>{const t=o.palette.mode==="light",r=e._extends({color:"currentColor"},o.vars?{opacity:o.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},{transition:o.transitions.create("opacity",{duration:o.transitions.duration.shorter})}),i={opacity:"0 !important"},d=o.vars?{opacity:o.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return e._extends({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${L.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":d,"&:focus::-moz-placeholder":d,"&:focus:-ms-input-placeholder":d,"&:focus::-ms-input-placeholder":d},[`&.${L.disabled}`]:{opacity:1,WebkitTextFillColor:(o.vars||o).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},n.size==="small"&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},n.type==="search"&&{MozAppearance:"textfield"})}),$e=b.jsx(Pe,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Ce=p.forwardRef(function(n,t){var r;const i=j.useDefaultProps({props:n,name:"MuiInputBase"}),{"aria-describedby":d,autoComplete:E,autoFocus:z,className:F,components:C={},componentsProps:h={},defaultValue:N,disabled:T,disableInjectingGlobalStyles:S,endAdornment:g,fullWidth:x=!1,id:U,inputComponent:u="input",inputProps:a={},inputRef:c,maxRows:f,minRows:R,multiline:O=!1,name:w,onBlur:v,onChange:A,onClick:m,onFocus:H,onKeyDown:$,onKeyUp:Se,placeholder:Re,readOnly:K,renderSuffix:ne,rows:M,slotProps:te={},slots:re={},startAdornment:_,type:se="text",value:Oe}=i,Ee=e._objectWithoutPropertiesLoose(i,qe),W=a.value!=null?a.value:Oe,{current:G}=p.useRef(W!=null),I=p.useRef(),ze=p.useCallback(s=>{process.env.NODE_ENV!=="production"&&s&&s.nodeName!=="INPUT"&&!s.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
3
+ `))},[]),Ne=B.useForkRef(I,c,a.ref,ze),[Y,Z]=p.useState(!1),l=me();process.env.NODE_ENV!=="production"&&p.useEffect(()=>{if(l)return l.registerEffect()},[l]);const y=Te({props:i,muiFormControl:l,states:["color","disabled","error","hiddenLabel","size","required","filled"]});y.focused=l?l.focused:Y,p.useEffect(()=>{!l&&T&&Y&&(Z(!1),v&&v())},[l,T,Y,v]);const J=l&&l.onFilled,Q=l&&l.onEmpty,k=p.useCallback(s=>{he(s)?J&&J():Q&&Q()},[J,Q]);B.useEnhancedEffect(()=>{G&&k({value:W})},[W,k,G]);const Ae=s=>{if(y.disabled){s.stopPropagation();return}H&&H(s),a.onFocus&&a.onFocus(s),l&&l.onFocus?l.onFocus(s):Z(!0)},Ie=s=>{v&&v(s),a.onBlur&&a.onBlur(s),l&&l.onBlur?l.onBlur(s):Z(!1)},Fe=(s,...ae)=>{if(!G){const ue=s.target||I.current;if(ue==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":e.formatMuiErrorMessage(1));k({value:ue.value})}a.onChange&&a.onChange(s,...ae),A&&A(s,...ae)};p.useEffect(()=>{k(I.current)},[]);const _e=s=>{I.current&&s.currentTarget===s.target&&I.current.focus(),m&&m(s)};let X=u,P=a;O&&X==="input"&&(M?(process.env.NODE_ENV!=="production"&&(R||f)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),P=e._extends({type:void 0,minRows:M,maxRows:M},P)):P=e._extends({type:void 0,maxRows:f,minRows:R},P),X=be);const ke=s=>{k(s.animationName==="mui-auto-fill-cancel"?I.current:{value:"x"})};p.useEffect(()=>{l&&l.setAdornedStart(!!_)},[l,_]);const D=e._extends({},i,{color:y.color||"primary",disabled:y.disabled,endAdornment:g,error:y.error,focused:y.focused,formControl:l,fullWidth:x,hiddenLabel:y.hiddenLabel,multiline:O,size:y.size,startAdornment:_,type:se}),ie=Ue(D),le=re.root||C.Root||we,ee=te.root||h.root||{},pe=re.input||C.Input||ve;return P=e._extends({},P,(r=te.input)!=null?r:h.input),b.jsxs(p.Fragment,{children:[!S&&$e,b.jsxs(le,e._extends({},ee,!de.isHostComponent(le)&&{ownerState:e._extends({},D,ee.ownerState)},{ref:t,onClick:_e},Ee,{className:e.clsx(ie.root,ee.className,F,K&&"MuiInputBase-readOnly"),children:[_,b.jsx(q.Provider,{value:null,children:b.jsx(pe,e._extends({ownerState:D,"aria-invalid":y.error,"aria-describedby":d,autoComplete:E,autoFocus:z,defaultValue:N,disabled:y.disabled,id:U,onAnimationStart:ke,name:w,placeholder:Re,readOnly:K,required:y.required,rows:M,value:W,onKeyDown:$,onKeyUp:Se,type:se},P,!de.isHostComponent(pe)&&{as:X,ownerState:e._extends({},D,P.ownerState)},{ref:Ne,className:e.clsx(ie.input,P.className,K&&"MuiInputBase-readOnly"),onBlur:Ie,onChange:Fe,onFocus:Ae}))}),g,ne?ne(e._extends({},y,{startAdornment:_})):null]}))]})});process.env.NODE_ENV!=="production"&&(Ce.propTypes={"aria-describedby":e.PropTypes.string,autoComplete:e.PropTypes.string,autoFocus:e.PropTypes.bool,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["primary","secondary","error","info","success","warning"]),e.PropTypes.string]),components:e.PropTypes.shape({Input:e.PropTypes.elementType,Root:e.PropTypes.elementType}),componentsProps:e.PropTypes.shape({input:e.PropTypes.object,root:e.PropTypes.object}),defaultValue:e.PropTypes.any,disabled:e.PropTypes.bool,disableInjectingGlobalStyles:e.PropTypes.bool,endAdornment:e.PropTypes.node,error:e.PropTypes.bool,fullWidth:e.PropTypes.bool,id:e.PropTypes.string,inputComponent:ce.elementTypeAcceptingRef,inputProps:e.PropTypes.object,inputRef:ce.refType,margin:e.PropTypes.oneOf(["dense","none"]),maxRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),minRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),multiline:e.PropTypes.bool,name:e.PropTypes.string,onBlur:e.PropTypes.func,onChange:e.PropTypes.func,onClick:e.PropTypes.func,onFocus:e.PropTypes.func,onInvalid:e.PropTypes.func,onKeyDown:e.PropTypes.func,onKeyUp:e.PropTypes.func,placeholder:e.PropTypes.string,readOnly:e.PropTypes.bool,renderSuffix:e.PropTypes.func,required:e.PropTypes.bool,rows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),size:e.PropTypes.oneOfType([e.PropTypes.oneOf(["medium","small"]),e.PropTypes.string]),slotProps:e.PropTypes.shape({input:e.PropTypes.object,root:e.PropTypes.object}),slots:e.PropTypes.shape({input:e.PropTypes.elementType,root:e.PropTypes.elementType}),startAdornment:e.PropTypes.node,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]),type:e.PropTypes.string,value:e.PropTypes.any});exports.FormControlContext=q;exports.InputBase=Ce;exports.InputBaseComponent=ve;exports.InputBaseRoot=we;exports.formControlState=Te;exports.inputBaseClasses=L;exports.inputOverridesResolver=xe;exports.isAdornedStart=Me;exports.isFilled=he;exports.rootOverridesResolver=ge;exports.useFormControl=me;