@cgi-learning-hub/ui 1.3.2 → 1.3.3

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 (207) hide show
  1. package/dist/Backdrop-KAJqifAq.cjs +1 -0
  2. package/dist/{Backdrop-CxHwPsCX.js → Backdrop-RBPtVAPX.js} +220 -265
  3. package/dist/{Box-D61CmHcZ.cjs → Box-H49yQEt_.cjs} +1 -1
  4. package/dist/{Box-a6v7fn61.js → Box-UE-zctbJ.js} +3 -3
  5. package/dist/{Button-B8Vr_qVd.js → Button-Bjy0iPNm.js} +4 -4
  6. package/dist/{Button-elp97nQ8.cjs → Button-qc45QbX6.cjs} +1 -1
  7. package/dist/{ButtonBase-Y5TK5SRu.js → ButtonBase-CFD7NVUc.js} +21 -21
  8. package/dist/{ButtonBase-S0mFlojL.cjs → ButtonBase-UEHzzfUL.cjs} +1 -1
  9. package/dist/Checkbox-Ct5E_6h7.js +241 -0
  10. package/dist/Checkbox-CuYTY0gd.cjs +1 -0
  11. package/dist/{CircularProgress-DDIZxeFH.cjs → CircularProgress-BPHINMQw.cjs} +1 -1
  12. package/dist/{CircularProgress-DU3DJQfF.js → CircularProgress-By02Sdoh.js} +3 -3
  13. package/dist/{DatePicker-BigDV0IN.cjs → DatePicker-rhgpaD-r.cjs} +15 -15
  14. package/dist/{DatePicker-ZdjLD9eR.js → DatePicker-u4rtXGeo.js} +974 -962
  15. package/dist/{DefaultPropsProvider-eEVEiLDf.cjs → DefaultPropsProvider-BrX6iuA3.cjs} +1 -1
  16. package/dist/{DefaultPropsProvider-7QnSWHxy.js → DefaultPropsProvider-CaRoy5OV.js} +24 -24
  17. package/dist/FormGroup-BBYEQB4C.cjs +1 -0
  18. package/dist/FormGroup-BVtE8Mrv.js +348 -0
  19. package/dist/FormLabel-B4QlkhhB.js +424 -0
  20. package/dist/FormLabel-D8jYibc1.cjs +2 -0
  21. package/dist/{IconButton-C7H_G1LX.js → IconButton-Av8eJ5IG.js} +4 -4
  22. package/dist/{IconButton-DfmbM9nO.cjs → IconButton-CVyLtjcH.cjs} +1 -1
  23. package/dist/InputAdornment-BJfpEQAa.cjs +1 -0
  24. package/dist/{InputAdornment-CPJFY_m_.js → InputAdornment-COPtZlSD.js} +5 -5
  25. package/dist/{InputBase-5GB2c2J6.js → InputBase-Bbgoz8GV.js} +186 -210
  26. package/dist/InputBase-Ctmib7Br.cjs +3 -0
  27. package/dist/MenuItem-D7HWYhF3.js +277 -0
  28. package/dist/MenuItem-Els-vJZW.cjs +1 -0
  29. package/dist/{TextField-CGMPbx_J.js → Select-BlPQngVF.js} +1458 -2424
  30. package/dist/Select-ipcMZ4iK.cjs +11 -0
  31. package/dist/{Stack-656bqKiW.cjs → Stack-CEjx3KHM.cjs} +1 -1
  32. package/dist/{Stack-CutIWKkG.js → Stack-y1PjTHKX.js} +18 -18
  33. package/dist/SwitchBase-URM3X3YZ.cjs +1 -0
  34. package/dist/SwitchBase-yCuH0Tqk.js +261 -0
  35. package/dist/{Tabs-CKic46Op.js → Tabs-DK4Bc5xo.js} +10 -10
  36. package/dist/{Tabs-DzrxYlm-.cjs → Tabs-Nvk94RTW.cjs} +1 -1
  37. package/dist/TextField-BVAkADOb.cjs +1 -0
  38. package/dist/TextField-C-B529_r.js +547 -0
  39. package/dist/{Tooltip-DqLAZimE.js → Tooltip-DO9GIhWC.js} +1783 -2859
  40. package/dist/Tooltip-DvPL2M0E.cjs +100 -0
  41. package/dist/{Typography-CreZW2v6.cjs → Typography-5OodZ94T.cjs} +1 -1
  42. package/dist/{Typography-DsJC595c.js → Typography-C_ESP41L.js} +4 -4
  43. package/dist/components/Button/Button.cjs.js +1 -1
  44. package/dist/components/Button/Button.es.js +5 -5
  45. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  46. package/dist/components/DatePicker/DatePicker.es.js +2 -2
  47. package/dist/components/DatePicker/index.cjs.js +1 -1
  48. package/dist/components/DatePicker/index.es.js +1 -1
  49. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  50. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  51. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  52. package/dist/components/EmptyState/EmptyState.es.js +2 -2
  53. package/dist/components/FileList/FileList.cjs.js +1 -1
  54. package/dist/components/FileList/FileList.es.js +1 -1
  55. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  56. package/dist/components/FileList/FileListItem.es.js +6 -6
  57. package/dist/components/Heading/Heading.cjs.js +1 -1
  58. package/dist/components/Heading/Heading.es.js +2 -2
  59. package/dist/components/Loader/Loader.cjs.js +1 -1
  60. package/dist/components/Loader/Loader.es.js +1 -1
  61. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  62. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  63. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  64. package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
  65. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  66. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  67. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  68. package/dist/components/TextInput/TextInput.es.js +1 -1
  69. package/dist/components/index.cjs.js +1 -1
  70. package/dist/components/index.es.js +267 -262
  71. package/dist/components/stories/Alert.stories.cjs.js +1 -0
  72. package/dist/components/stories/Alert.stories.d.ts +9 -0
  73. package/dist/components/stories/Alert.stories.es.js +32 -0
  74. package/dist/components/stories/Button.stories.cjs.js +1 -0
  75. package/dist/components/stories/Button.stories.d.ts +8 -0
  76. package/dist/components/stories/Button.stories.es.js +43 -0
  77. package/dist/components/stories/Checkbox.stories.cjs.js +1 -0
  78. package/dist/components/stories/Checkbox.stories.d.ts +10 -0
  79. package/dist/components/stories/Checkbox.stories.es.js +28 -0
  80. package/dist/components/stories/DatePicker.stories.cjs.js +1 -0
  81. package/dist/components/stories/DatePicker.stories.d.ts +6 -0
  82. package/dist/components/stories/DatePicker.stories.es.js +13 -0
  83. package/dist/components/stories/Dropzone.stories.cjs.js +1 -0
  84. package/dist/components/stories/Dropzone.stories.d.ts +6 -0
  85. package/dist/components/stories/Dropzone.stories.es.js +14 -0
  86. package/dist/components/stories/EmptyState.stories.cjs.js +1 -0
  87. package/dist/components/stories/EmptyState.stories.d.ts +6 -0
  88. package/dist/components/stories/EmptyState.stories.es.js +14 -0
  89. package/dist/components/stories/FileList.stories.cjs.js +1 -0
  90. package/dist/components/stories/FileList.stories.d.ts +6 -0
  91. package/dist/components/stories/FileList.stories.es.js +26 -0
  92. package/dist/components/stories/Heading.stories.cjs.js +1 -0
  93. package/dist/components/stories/Heading.stories.d.ts +6 -0
  94. package/dist/components/stories/Heading.stories.es.js +20 -0
  95. package/dist/components/stories/IconButton.stories.cjs.js +1 -0
  96. package/dist/components/stories/IconButton.stories.d.ts +6 -0
  97. package/dist/components/{IconButton.stories.es.js → stories/IconButton.stories.es.js} +12 -14
  98. package/dist/components/stories/Loader.stories.cjs.js +1 -0
  99. package/dist/components/stories/Loader.stories.d.ts +6 -0
  100. package/dist/components/stories/Loader.stories.es.js +11 -0
  101. package/dist/components/stories/LoaderBackdrop.stories.cjs.js +1 -0
  102. package/dist/components/stories/LoaderBackdrop.stories.d.ts +6 -0
  103. package/dist/components/stories/LoaderBackdrop.stories.es.js +11 -0
  104. package/dist/components/stories/PasswordInput.stories.cjs.js +1 -0
  105. package/dist/components/stories/PasswordInput.stories.d.ts +6 -0
  106. package/dist/components/stories/PasswordInput.stories.es.js +13 -0
  107. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -0
  108. package/dist/components/stories/RadioGroup.stories.d.ts +8 -0
  109. package/dist/components/stories/RadioGroup.stories.es.js +434 -0
  110. package/dist/components/stories/SearchInput.stories.cjs.js +1 -0
  111. package/dist/components/stories/SearchInput.stories.d.ts +6 -0
  112. package/dist/components/stories/SearchInput.stories.es.js +13 -0
  113. package/dist/components/stories/Select.stories.cjs.js +1 -0
  114. package/dist/components/stories/Select.stories.d.ts +10 -0
  115. package/dist/components/stories/Select.stories.es.js +52 -0
  116. package/dist/components/stories/TabList.stories.cjs.js +1 -0
  117. package/dist/components/stories/TabList.stories.d.ts +7 -0
  118. package/dist/components/{TabList.stories.es.js → stories/TabList.stories.es.js} +43 -50
  119. package/dist/components/stories/TextField.stories.cjs.js +1 -0
  120. package/dist/components/stories/TextField.stories.d.ts +10 -0
  121. package/dist/components/stories/TextField.stories.es.js +69 -0
  122. package/dist/{createSvgIcon-Ae1vF9Lv.js → createSvgIcon-DxbvMQd7.js} +3 -3
  123. package/dist/{createSvgIcon-PXjVOXDY.cjs → createSvgIcon-GU7fqNnI.cjs} +1 -1
  124. package/dist/{extendSxProp-DLhbnNxc.cjs → extendSxProp-D11-pC6h.cjs} +1 -1
  125. package/dist/{extendSxProp-BzTGWWcy.js → extendSxProp-XQwkK0m7.js} +1 -1
  126. package/dist/formControlState-DCkDUdfO.cjs +1 -0
  127. package/dist/formControlState-DdQP43Uo.js +21 -0
  128. package/dist/{fr-B0c4Eu-I.js → fr-B8_MxRl5.js} +1 -1
  129. package/dist/{fr-BtINyNRC.cjs → fr-Nvp7C-vS.cjs} +1 -1
  130. package/dist/{identifier-B_IiMbpZ.cjs → identifier-BQH88SE0.cjs} +1 -1
  131. package/dist/{identifier-Bu3vgTzE.js → identifier-BqadgaK7.js} +5 -5
  132. package/dist/{index-DNmEgr4X.js → index-BUxqDIr9.js} +4 -4
  133. package/dist/{index-BDy6VH40.cjs → index-CNv8ppur.cjs} +1 -1
  134. package/dist/{index-D4YvqRSh.js → index-CRT92bm7.js} +2 -2
  135. package/dist/index-D7nFYLYq.cjs +1 -0
  136. package/dist/index.cjs.js +1 -1
  137. package/dist/index.es.js +267 -262
  138. package/dist/{memoTheme-DvW891YJ.cjs → memoTheme-B6o2KVgJ.cjs} +1 -1
  139. package/dist/{memoTheme-C4_nd-x4.js → memoTheme-DfGVDRrB.js} +1 -1
  140. package/dist/{refType-DvOnKTmB.js → refType-DlHf9HvO.js} +1 -1
  141. package/dist/{refType-DYRsy3ld.cjs → refType-Do7KaOvv.cjs} +1 -1
  142. package/dist/{useTheme-B_3HWqyi.js → resolveComponentProps-CxJ2yAJn.js} +18 -26
  143. package/dist/resolveComponentProps-DTv6xPbb.cjs +1 -0
  144. package/dist/useControlled-BYdyS7Pn.js +31 -0
  145. package/dist/useControlled-Ysk4KqoX.cjs +3 -0
  146. package/dist/useFormControl-CatNKXAi.js +10 -0
  147. package/dist/useFormControl-haP0iPhl.cjs +1 -0
  148. package/dist/useSlot-42jgZftI.cjs +1 -0
  149. package/dist/useSlot-Co14PUn6.js +50 -0
  150. package/dist/useTheme-CtT7O-Wk.js +11 -0
  151. package/dist/{useTheme-vN32oV1t.cjs → useTheme-cVN-YQNB.cjs} +1 -1
  152. package/dist/{useTheme-DhYab2-0.js → useTheme-oM_SFWy4.js} +1 -1
  153. package/dist/useTheme-tZYpFplW.cjs +1 -0
  154. package/dist/{useThemeProps-Bmkt_XOR.js → useThemeProps-BlQ3SLfB.js} +4 -4
  155. package/dist/{useThemeProps-DftpgVZ0.js → useThemeProps-FiA8ivG-.js} +3 -3
  156. package/dist/{useThemeProps-D_gKWuk1.cjs → useThemeProps-HLq2mDKk.cjs} +1 -1
  157. package/dist/{useThemeProps-5hp2m3Xl.cjs → useThemeProps-r0DnR8FJ.cjs} +1 -1
  158. package/dist/{useTimeout-Bx22KOcH.js → useTimeout-D16vpBhn.js} +1 -1
  159. package/dist/{useTimeout-gEG15bRo.cjs → useTimeout-DWEGwfTA.cjs} +1 -1
  160. package/package.json +1 -1
  161. package/dist/Backdrop-ZCTs-Ws8.cjs +0 -1
  162. package/dist/InputAdornment-C-EbfNtT.cjs +0 -1
  163. package/dist/InputBase-CPtGhJye.cjs +0 -3
  164. package/dist/TextField-BLEvZwPH.cjs +0 -14
  165. package/dist/Tooltip-BJefPCe7.cjs +0 -100
  166. package/dist/components/Alert/Alert.stories.cjs.js +0 -1
  167. package/dist/components/Alert/Alert.stories.d.ts +0 -4
  168. package/dist/components/Alert/Alert.stories.es.js +0 -17
  169. package/dist/components/Button/Button.stories.cjs.js +0 -1
  170. package/dist/components/Button/Button.stories.d.ts +0 -6
  171. package/dist/components/Button/Button.stories.es.js +0 -45
  172. package/dist/components/DatePicker/DatePicker.stories.cjs.js +0 -1
  173. package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -4
  174. package/dist/components/DatePicker/DatePicker.stories.es.js +0 -16
  175. package/dist/components/Dropzone/Dropzone.stories.cjs.js +0 -1
  176. package/dist/components/Dropzone/Dropzone.stories.d.ts +0 -4
  177. package/dist/components/Dropzone/Dropzone.stories.es.js +0 -17
  178. package/dist/components/EmptyState/EmptyState.stories.cjs.js +0 -1
  179. package/dist/components/EmptyState/EmptyState.stories.d.ts +0 -4
  180. package/dist/components/EmptyState/EmptyState.stories.es.js +0 -17
  181. package/dist/components/FileList/FileList.stories.cjs.js +0 -1
  182. package/dist/components/FileList/FileList.stories.d.ts +0 -4
  183. package/dist/components/FileList/FileList.stories.es.js +0 -28
  184. package/dist/components/Heading/Heading.stories.cjs.js +0 -1
  185. package/dist/components/Heading/Heading.stories.d.ts +0 -4
  186. package/dist/components/Heading/Heading.stories.es.js +0 -22
  187. package/dist/components/IconButton.stories.cjs.js +0 -1
  188. package/dist/components/IconButton.stories.d.ts +0 -4
  189. package/dist/components/Loader/Loader.stories.cjs.js +0 -1
  190. package/dist/components/Loader/Loader.stories.d.ts +0 -4
  191. package/dist/components/Loader/Loader.stories.es.js +0 -14
  192. package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.cjs.js +0 -1
  193. package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.d.ts +0 -4
  194. package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.es.js +0 -14
  195. package/dist/components/PasswordInput/PasswordInput.stories.cjs.js +0 -1
  196. package/dist/components/PasswordInput/PasswordInput.stories.d.ts +0 -4
  197. package/dist/components/PasswordInput/PasswordInput.stories.es.js +0 -16
  198. package/dist/components/SearchInput/SearchInput.stories.cjs.js +0 -1
  199. package/dist/components/SearchInput/SearchInput.stories.d.ts +0 -4
  200. package/dist/components/SearchInput/SearchInput.stories.es.js +0 -16
  201. package/dist/components/TabList.stories.cjs.js +0 -1
  202. package/dist/components/TabList.stories.d.ts +0 -4
  203. package/dist/components/TextInput/TextInput.stories.cjs.js +0 -1
  204. package/dist/components/TextInput/TextInput.stories.d.ts +0 -7
  205. package/dist/components/TextInput/TextInput.stories.es.js +0 -43
  206. package/dist/index-Dl4BXU0b.cjs +0 -1
  207. package/dist/useTheme-BvsnROiB.cjs +0 -1
@@ -0,0 +1,424 @@
1
+ import * as i from "react";
2
+ import { I as A, J as D, L, K as P, P as e } from "./identifier-BqadgaK7.js";
3
+ import { a as K, i as k, f as G } from "./formControlState-DdQP43Uo.js";
4
+ import { F as Q, u as X } from "./useFormControl-CatNKXAi.js";
5
+ import { jsx as I, jsxs as U } from "react/jsx-runtime";
6
+ import { s as E, u as B, c as V } from "./DefaultPropsProvider-CaRoy5OV.js";
7
+ import { m as _ } from "./memoTheme-DfGVDRrB.js";
8
+ import { c as Y } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
9
+ function be(...o) {
10
+ return o.reduce((r, t) => t == null ? r : function(...s) {
11
+ r.apply(this, s), t.apply(this, s);
12
+ }, () => {
13
+ });
14
+ }
15
+ function x(o, r) {
16
+ var t, n, s;
17
+ return /* @__PURE__ */ i.isValidElement(o) && r.indexOf(
18
+ // For server components `muiName` is avaialble in element.type._payload.value.muiName
19
+ // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
20
+ // eslint-disable-next-line no-underscore-dangle
21
+ o.type.muiName ?? ((s = (n = (t = o.type) == null ? void 0 : t._payload) == null ? void 0 : n.value) == null ? void 0 : s.muiName)
22
+ ) !== -1;
23
+ }
24
+ function Z(o) {
25
+ return A("MuiFormControl", o);
26
+ }
27
+ const ye = D("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]), ee = (o) => {
28
+ const {
29
+ classes: r,
30
+ margin: t,
31
+ fullWidth: n
32
+ } = o, s = {
33
+ root: ["root", t !== "none" && `margin${L(t)}`, n && "fullWidth"]
34
+ };
35
+ return V(s, Z, r);
36
+ }, oe = E("div", {
37
+ name: "MuiFormControl",
38
+ slot: "Root",
39
+ overridesResolver: ({
40
+ ownerState: o
41
+ }, r) => ({
42
+ ...r.root,
43
+ ...r[`margin${L(o.margin)}`],
44
+ ...o.fullWidth && r.fullWidth
45
+ })
46
+ })({
47
+ display: "inline-flex",
48
+ flexDirection: "column",
49
+ position: "relative",
50
+ // Reset fieldset default style.
51
+ minWidth: 0,
52
+ padding: 0,
53
+ margin: 0,
54
+ border: 0,
55
+ verticalAlign: "top",
56
+ // Fix alignment issue on Safari.
57
+ variants: [{
58
+ props: {
59
+ margin: "normal"
60
+ },
61
+ style: {
62
+ marginTop: 16,
63
+ marginBottom: 8
64
+ }
65
+ }, {
66
+ props: {
67
+ margin: "dense"
68
+ },
69
+ style: {
70
+ marginTop: 8,
71
+ marginBottom: 4
72
+ }
73
+ }, {
74
+ props: {
75
+ fullWidth: !0
76
+ },
77
+ style: {
78
+ width: "100%"
79
+ }
80
+ }]
81
+ }), re = /* @__PURE__ */ i.forwardRef(function(r, t) {
82
+ const n = B({
83
+ props: r,
84
+ name: "MuiFormControl"
85
+ }), {
86
+ children: s,
87
+ className: f,
88
+ color: p = "primary",
89
+ component: c = "div",
90
+ disabled: a = !1,
91
+ error: y = !1,
92
+ focused: h,
93
+ fullWidth: g = !1,
94
+ hiddenLabel: F = !1,
95
+ margin: O = "none",
96
+ required: m = !1,
97
+ size: l = "medium",
98
+ variant: u = "outlined",
99
+ ...v
100
+ } = n, M = {
101
+ ...n,
102
+ color: p,
103
+ component: c,
104
+ disabled: a,
105
+ error: y,
106
+ fullWidth: g,
107
+ hiddenLabel: F,
108
+ margin: O,
109
+ required: m,
110
+ size: l,
111
+ variant: u
112
+ }, z = ee(M), [q, H] = i.useState(() => {
113
+ let b = !1;
114
+ return s && i.Children.forEach(s, (d) => {
115
+ if (!x(d, ["Input", "Select"]))
116
+ return;
117
+ const $ = x(d, ["Select"]) ? d.props.input : d;
118
+ $ && K($.props) && (b = !0);
119
+ }), b;
120
+ }), [R, j] = i.useState(() => {
121
+ let b = !1;
122
+ return s && i.Children.forEach(s, (d) => {
123
+ x(d, ["Input", "Select"]) && (k(d.props, !0) || k(d.props.inputProps, !0)) && (b = !0);
124
+ }), b;
125
+ }), [W, S] = i.useState(!1);
126
+ a && W && S(!1);
127
+ const w = h !== void 0 && !a ? h : W;
128
+ let N;
129
+ const T = i.useRef(!1);
130
+ process.env.NODE_ENV !== "production" && (N = () => (T.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
131
+ `)), T.current = !0, () => {
132
+ T.current = !1;
133
+ }));
134
+ const J = i.useMemo(() => ({
135
+ adornedStart: q,
136
+ setAdornedStart: H,
137
+ color: p,
138
+ disabled: a,
139
+ error: y,
140
+ filled: R,
141
+ focused: w,
142
+ fullWidth: g,
143
+ hiddenLabel: F,
144
+ size: l,
145
+ onBlur: () => {
146
+ S(!1);
147
+ },
148
+ onEmpty: () => {
149
+ j(!1);
150
+ },
151
+ onFilled: () => {
152
+ j(!0);
153
+ },
154
+ onFocus: () => {
155
+ S(!0);
156
+ },
157
+ registerEffect: N,
158
+ required: m,
159
+ variant: u
160
+ }), [q, p, a, y, R, w, g, F, N, m, l, u]);
161
+ return /* @__PURE__ */ I(Q.Provider, {
162
+ value: J,
163
+ children: /* @__PURE__ */ I(oe, {
164
+ as: c,
165
+ ownerState: M,
166
+ className: P(z.root, f),
167
+ ref: t,
168
+ ...v,
169
+ children: s
170
+ })
171
+ });
172
+ });
173
+ process.env.NODE_ENV !== "production" && (re.propTypes = {
174
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
175
+ // │ These PropTypes are generated from the TypeScript type definitions. │
176
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
177
+ // └─────────────────────────────────────────────────────────────────────┘
178
+ /**
179
+ * The content of the component.
180
+ */
181
+ children: e.node,
182
+ /**
183
+ * Override or extend the styles applied to the component.
184
+ */
185
+ classes: e.object,
186
+ /**
187
+ * @ignore
188
+ */
189
+ className: e.string,
190
+ /**
191
+ * The color of the component.
192
+ * It supports both default and custom theme colors, which can be added as shown in the
193
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
194
+ * @default 'primary'
195
+ */
196
+ color: e.oneOfType([e.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), e.string]),
197
+ /**
198
+ * The component used for the root node.
199
+ * Either a string to use a HTML element or a component.
200
+ */
201
+ component: e.elementType,
202
+ /**
203
+ * If `true`, the label, input and helper text should be displayed in a disabled state.
204
+ * @default false
205
+ */
206
+ disabled: e.bool,
207
+ /**
208
+ * If `true`, the label is displayed in an error state.
209
+ * @default false
210
+ */
211
+ error: e.bool,
212
+ /**
213
+ * If `true`, the component is displayed in focused state.
214
+ */
215
+ focused: e.bool,
216
+ /**
217
+ * If `true`, the component will take up the full width of its container.
218
+ * @default false
219
+ */
220
+ fullWidth: e.bool,
221
+ /**
222
+ * If `true`, the label is hidden.
223
+ * This is used to increase density for a `FilledInput`.
224
+ * Be sure to add `aria-label` to the `input` element.
225
+ * @default false
226
+ */
227
+ hiddenLabel: e.bool,
228
+ /**
229
+ * If `dense` or `normal`, will adjust vertical spacing of this and contained components.
230
+ * @default 'none'
231
+ */
232
+ margin: e.oneOf(["dense", "none", "normal"]),
233
+ /**
234
+ * If `true`, the label will indicate that the `input` is required.
235
+ * @default false
236
+ */
237
+ required: e.bool,
238
+ /**
239
+ * The size of the component.
240
+ * @default 'medium'
241
+ */
242
+ size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
243
+ /**
244
+ * The system prop that allows defining system overrides as well as additional CSS styles.
245
+ */
246
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
247
+ /**
248
+ * The variant to use.
249
+ * @default 'outlined'
250
+ */
251
+ variant: e.oneOf(["filled", "outlined", "standard"])
252
+ });
253
+ function se(o) {
254
+ return A("MuiFormLabel", o);
255
+ }
256
+ const C = D("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "error", "filled", "required", "asterisk"]), te = (o) => {
257
+ const {
258
+ classes: r,
259
+ color: t,
260
+ focused: n,
261
+ disabled: s,
262
+ error: f,
263
+ filled: p,
264
+ required: c
265
+ } = o, a = {
266
+ root: ["root", `color${L(t)}`, s && "disabled", f && "error", p && "filled", n && "focused", c && "required"],
267
+ asterisk: ["asterisk", f && "error"]
268
+ };
269
+ return V(a, se, r);
270
+ }, ne = E("label", {
271
+ name: "MuiFormLabel",
272
+ slot: "Root",
273
+ overridesResolver: ({
274
+ ownerState: o
275
+ }, r) => ({
276
+ ...r.root,
277
+ ...o.color === "secondary" && r.colorSecondary,
278
+ ...o.filled && r.filled
279
+ })
280
+ })(_(({
281
+ theme: o
282
+ }) => ({
283
+ color: (o.vars || o).palette.text.secondary,
284
+ ...o.typography.body1,
285
+ lineHeight: "1.4375em",
286
+ padding: 0,
287
+ position: "relative",
288
+ variants: [...Object.entries(o.palette).filter(Y()).map(([r]) => ({
289
+ props: {
290
+ color: r
291
+ },
292
+ style: {
293
+ [`&.${C.focused}`]: {
294
+ color: (o.vars || o).palette[r].main
295
+ }
296
+ }
297
+ })), {
298
+ props: {},
299
+ style: {
300
+ [`&.${C.disabled}`]: {
301
+ color: (o.vars || o).palette.text.disabled
302
+ },
303
+ [`&.${C.error}`]: {
304
+ color: (o.vars || o).palette.error.main
305
+ }
306
+ }
307
+ }]
308
+ }))), le = E("span", {
309
+ name: "MuiFormLabel",
310
+ slot: "Asterisk",
311
+ overridesResolver: (o, r) => r.asterisk
312
+ })(_(({
313
+ theme: o
314
+ }) => ({
315
+ [`&.${C.error}`]: {
316
+ color: (o.vars || o).palette.error.main
317
+ }
318
+ }))), ie = /* @__PURE__ */ i.forwardRef(function(r, t) {
319
+ const n = B({
320
+ props: r,
321
+ name: "MuiFormLabel"
322
+ }), {
323
+ children: s,
324
+ className: f,
325
+ color: p,
326
+ component: c = "label",
327
+ disabled: a,
328
+ error: y,
329
+ filled: h,
330
+ focused: g,
331
+ required: F,
332
+ ...O
333
+ } = n, m = X(), l = G({
334
+ props: n,
335
+ muiFormControl: m,
336
+ states: ["color", "required", "focused", "disabled", "error", "filled"]
337
+ }), u = {
338
+ ...n,
339
+ color: l.color || "primary",
340
+ component: c,
341
+ disabled: l.disabled,
342
+ error: l.error,
343
+ filled: l.filled,
344
+ focused: l.focused,
345
+ required: l.required
346
+ }, v = te(u);
347
+ return /* @__PURE__ */ U(ne, {
348
+ as: c,
349
+ ownerState: u,
350
+ className: P(v.root, f),
351
+ ref: t,
352
+ ...O,
353
+ children: [s, l.required && /* @__PURE__ */ U(le, {
354
+ ownerState: u,
355
+ "aria-hidden": !0,
356
+ className: v.asterisk,
357
+ children: [" ", "*"]
358
+ })]
359
+ });
360
+ });
361
+ process.env.NODE_ENV !== "production" && (ie.propTypes = {
362
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
363
+ // │ These PropTypes are generated from the TypeScript type definitions. │
364
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
365
+ // └─────────────────────────────────────────────────────────────────────┘
366
+ /**
367
+ * The content of the component.
368
+ */
369
+ children: e.node,
370
+ /**
371
+ * Override or extend the styles applied to the component.
372
+ */
373
+ classes: e.object,
374
+ /**
375
+ * @ignore
376
+ */
377
+ className: e.string,
378
+ /**
379
+ * The color of the component.
380
+ * It supports both default and custom theme colors, which can be added as shown in the
381
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
382
+ */
383
+ color: e.oneOfType([e.oneOf(["error", "info", "primary", "secondary", "success", "warning"]), e.string]),
384
+ /**
385
+ * The component used for the root node.
386
+ * Either a string to use a HTML element or a component.
387
+ */
388
+ component: e.elementType,
389
+ /**
390
+ * If `true`, the label should be displayed in a disabled state.
391
+ */
392
+ disabled: e.bool,
393
+ /**
394
+ * If `true`, the label is displayed in an error state.
395
+ */
396
+ error: e.bool,
397
+ /**
398
+ * If `true`, the label should use filled classes key.
399
+ */
400
+ filled: e.bool,
401
+ /**
402
+ * If `true`, the input of this label is focused (used by `FormGroup` components).
403
+ */
404
+ focused: e.bool,
405
+ /**
406
+ * If `true`, the label will indicate that the `input` is required.
407
+ */
408
+ required: e.bool,
409
+ /**
410
+ * The system prop that allows defining system overrides as well as additional CSS styles.
411
+ */
412
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
413
+ });
414
+ export {
415
+ re as F,
416
+ ie as a,
417
+ C as b,
418
+ ne as c,
419
+ se as d,
420
+ be as e,
421
+ ye as f,
422
+ Z as g,
423
+ x as i
424
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";const G=require("react"),e=require("./identifier-BQH88SE0.cjs"),v=require("./formControlState-DCkDUdfO.cjs"),W=require("./useFormControl-haP0iPhl.cjs"),O=require("react/jsx-runtime"),d=require("./DefaultPropsProvider-BrX6iuA3.cjs"),k=require("./memoTheme-B6o2KVgJ.cjs"),J=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs");function K(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const t=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(r,s,t.get?t:{enumerable:!0,get:()=>o[s]})}}return r.default=o,Object.freeze(r)}const i=K(G);function Q(...o){return o.reduce((r,s)=>s==null?r:function(...n){r.apply(this,n),s.apply(this,n)},()=>{})}function h(o,r){var s,t,n;return i.isValidElement(o)&&r.indexOf(o.type.muiName??((n=(t=(s=o.type)==null?void 0:s._payload)==null?void 0:t.value)==null?void 0:n.muiName))!==-1}function $(o){return e.generateUtilityClass("MuiFormControl",o)}const X=e.generateUtilityClasses("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]),Y=o=>{const{classes:r,margin:s,fullWidth:t}=o,n={root:["root",s!=="none"&&`margin${e.capitalize(s)}`,t&&"fullWidth"]};return d.composeClasses(n,$,r)},Z=d.styled("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:o},r)=>({...r.root,...r[`margin${e.capitalize(o.margin)}`],...o.fullWidth&&r.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),_=i.forwardRef(function(r,s){const t=d.useDefaultProps({props:r,name:"MuiFormControl"}),{children:n,className:f,color:m="primary",component:c="div",disabled:a=!1,error:P=!1,focused:S,fullWidth:g=!1,hiddenLabel:C=!1,margin:q="none",required:y=!1,size:l="medium",variant:u="outlined",...F}=t,L={...t,color:m,component:c,disabled:a,error:P,fullWidth:g,hiddenLabel:C,margin:q,required:y,size:l,variant:u},V=Y(L),[M,B]=i.useState(()=>{let T=!1;return n&&i.Children.forEach(n,p=>{if(!h(p,["Input","Select"]))return;const w=h(p,["Select"])?p.props.input:p;w&&v.isAdornedStart(w.props)&&(T=!0)}),T}),[R,E]=i.useState(()=>{let T=!1;return n&&i.Children.forEach(n,p=>{h(p,["Input","Select"])&&(v.isFilled(p.props,!0)||v.isFilled(p.props.inputProps,!0))&&(T=!0)}),T}),[U,N]=i.useState(!1);a&&U&&N(!1);const D=S!==void 0&&!a?S:U;let j;const x=i.useRef(!1);process.env.NODE_ENV!=="production"&&(j=()=>(x.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
2
+ `)),x.current=!0,()=>{x.current=!1}));const H=i.useMemo(()=>({adornedStart:M,setAdornedStart:B,color:m,disabled:a,error:P,filled:R,focused:D,fullWidth:g,hiddenLabel:C,size:l,onBlur:()=>{N(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{N(!0)},registerEffect:j,required:y,variant:u}),[M,m,a,P,R,D,g,C,j,y,l,u]);return O.jsx(W.FormControlContext.Provider,{value:H,children:O.jsx(Z,{as:c,ownerState:L,className:e.clsx(V.root,f),ref:s,...F,children:n})})});process.env.NODE_ENV!=="production"&&(_.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["primary","secondary","error","info","success","warning"]),e.PropTypes.string]),component:e.PropTypes.elementType,disabled:e.PropTypes.bool,error:e.PropTypes.bool,focused:e.PropTypes.bool,fullWidth:e.PropTypes.bool,hiddenLabel:e.PropTypes.bool,margin:e.PropTypes.oneOf(["dense","none","normal"]),required:e.PropTypes.bool,size:e.PropTypes.oneOfType([e.PropTypes.oneOf(["medium","small"]),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]),variant:e.PropTypes.oneOf(["filled","outlined","standard"])});function z(o){return e.generateUtilityClass("MuiFormLabel",o)}const b=e.generateUtilityClasses("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ee=o=>{const{classes:r,color:s,focused:t,disabled:n,error:f,filled:m,required:c}=o,a={root:["root",`color${e.capitalize(s)}`,n&&"disabled",f&&"error",m&&"filled",t&&"focused",c&&"required"],asterisk:["asterisk",f&&"error"]};return d.composeClasses(a,z,r)},A=d.styled("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:o},r)=>({...r.root,...o.color==="secondary"&&r.colorSecondary,...o.filled&&r.filled})})(k.memoTheme(({theme:o})=>({color:(o.vars||o).palette.text.secondary,...o.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(o.palette).filter(J.createSimplePaletteValueFilter()).map(([r])=>({props:{color:r},style:{[`&.${b.focused}`]:{color:(o.vars||o).palette[r].main}}})),{props:{},style:{[`&.${b.disabled}`]:{color:(o.vars||o).palette.text.disabled},[`&.${b.error}`]:{color:(o.vars||o).palette.error.main}}}]}))),oe=d.styled("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(o,r)=>r.asterisk})(k.memoTheme(({theme:o})=>({[`&.${b.error}`]:{color:(o.vars||o).palette.error.main}}))),I=i.forwardRef(function(r,s){const t=d.useDefaultProps({props:r,name:"MuiFormLabel"}),{children:n,className:f,color:m,component:c="label",disabled:a,error:P,filled:S,focused:g,required:C,...q}=t,y=W.useFormControl(),l=v.formControlState({props:t,muiFormControl:y,states:["color","required","focused","disabled","error","filled"]}),u={...t,color:l.color||"primary",component:c,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required},F=ee(u);return O.jsxs(A,{as:c,ownerState:u,className:e.clsx(F.root,f),ref:s,...q,children:[n,l.required&&O.jsxs(oe,{ownerState:u,"aria-hidden":!0,className:F.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(I.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["error","info","primary","secondary","success","warning"]),e.PropTypes.string]),component:e.PropTypes.elementType,disabled:e.PropTypes.bool,error:e.PropTypes.bool,filled:e.PropTypes.bool,focused:e.PropTypes.bool,required:e.PropTypes.bool,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.FormControl=_;exports.FormLabel=I;exports.FormLabelRoot=A;exports.createChainedFunction=Q;exports.formControlClasses=X;exports.formLabelClasses=b;exports.getFormControlUtilityClasses=$;exports.getFormLabelUtilityClasses=z;exports.isMuiElement=h;
@@ -1,10 +1,10 @@
1
1
  import * as c from "react";
2
- import { I as z, J as I, K as a, L as R, P as e, n as g } from "./identifier-Bu3vgTzE.js";
3
- import { m as f } from "./memoTheme-C4_nd-x4.js";
2
+ import { I as z, J as I, L as a, K as R, P as e, n as g } from "./identifier-BqadgaK7.js";
3
+ import { m as f } from "./memoTheme-DfGVDRrB.js";
4
4
  import { c as y } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
5
5
  import { jsx as O } from "react/jsx-runtime";
6
- import { s as C, u as h, c as T } from "./DefaultPropsProvider-7QnSWHxy.js";
7
- import { B as S } from "./ButtonBase-Y5TK5SRu.js";
6
+ import { s as C, u as h, c as T } from "./DefaultPropsProvider-CaRoy5OV.js";
7
+ import { B as S } from "./ButtonBase-CFD7NVUc.js";
8
8
  import { c as $ } from "./useForkRef-D-DyzOXj.js";
9
9
  function x(o) {
10
10
  return z("MuiIconButton", o);
@@ -1,2 +1,2 @@
1
- "use strict";const B=require("react"),o=require("./identifier-B_IiMbpZ.cjs"),y=require("./memoTheme-DvW891YJ.cjs"),g=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),O=require("react/jsx-runtime"),p=require("./DefaultPropsProvider-eEVEiLDf.cjs"),R=require("./ButtonBase-S0mFlojL.cjs"),I=require("./useForkRef-D81w5oMb.cjs");function C(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=C(B);function f(e){return o.generateUtilityClass("MuiIconButton",e)}const b=o.generateUtilityClasses("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),h=e=>{const{classes:t,disabled:r,color:s,edge:a,size:n}=e,i={root:["root",r&&"disabled",s!=="default"&&`color${o.capitalize(s)}`,a&&`edge${o.capitalize(a)}`,`size${o.capitalize(n)}`]};return p.composeClasses(i,f,t)},S=p.styled(R.ButtonBase,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${o.capitalize(r.color)}`],r.edge&&t[`edge${o.capitalize(r.edge)}`],t[`size${o.capitalize(r.size)}`]]}})(y.memoTheme(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:o.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),y.memoTheme(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(g.createSimplePaletteValueFilter()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(g.createSimplePaletteValueFilter()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:o.alpha((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${b.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),v=l.forwardRef(function(t,r){const s=p.useDefaultProps({props:t,name:"MuiIconButton"}),{edge:a=!1,children:n,className:i,color:T="default",disabled:c=!1,disableFocusRipple:u=!1,size:P="medium",...m}=s,d={...s,edge:a,color:T,disabled:c,disableFocusRipple:u,size:P},z=h(d);return O.jsx(S,{className:o.clsx(z.root,i),centerRipple:!0,focusRipple:!u,disabled:c,ref:r,...m,ownerState:d,children:n})});process.env.NODE_ENV!=="production"&&(v.propTypes={children:I.chainPropTypes(o.PropTypes.node,e=>l.Children.toArray(e.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(`
1
+ "use strict";const B=require("react"),o=require("./identifier-BQH88SE0.cjs"),y=require("./memoTheme-B6o2KVgJ.cjs"),g=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),O=require("react/jsx-runtime"),p=require("./DefaultPropsProvider-BrX6iuA3.cjs"),R=require("./ButtonBase-UEHzzfUL.cjs"),I=require("./useForkRef-D81w5oMb.cjs");function C(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=C(B);function f(e){return o.generateUtilityClass("MuiIconButton",e)}const b=o.generateUtilityClasses("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),h=e=>{const{classes:t,disabled:r,color:s,edge:a,size:n}=e,i={root:["root",r&&"disabled",s!=="default"&&`color${o.capitalize(s)}`,a&&`edge${o.capitalize(a)}`,`size${o.capitalize(n)}`]};return p.composeClasses(i,f,t)},S=p.styled(R.ButtonBase,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${o.capitalize(r.color)}`],r.edge&&t[`edge${o.capitalize(r.edge)}`],t[`size${o.capitalize(r.size)}`]]}})(y.memoTheme(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:o.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),y.memoTheme(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(g.createSimplePaletteValueFilter()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(g.createSimplePaletteValueFilter()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:o.alpha((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${b.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),v=l.forwardRef(function(t,r){const s=p.useDefaultProps({props:t,name:"MuiIconButton"}),{edge:a=!1,children:n,className:i,color:T="default",disabled:c=!1,disableFocusRipple:u=!1,size:P="medium",...m}=s,d={...s,edge:a,color:T,disabled:c,disableFocusRipple:u,size:P},z=h(d);return O.jsx(S,{className:o.clsx(z.root,i),centerRipple:!0,focusRipple:!u,disabled:c,ref:r,...m,ownerState:d,children:n})});process.env.NODE_ENV!=="production"&&(v.propTypes={children:I.chainPropTypes(o.PropTypes.node,e=>l.Children.toArray(e.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
2
  `)):null),classes:o.PropTypes.object,className:o.PropTypes.string,color:o.PropTypes.oneOfType([o.PropTypes.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),o.PropTypes.string]),disabled:o.PropTypes.bool,disableFocusRipple:o.PropTypes.bool,disableRipple:o.PropTypes.bool,edge:o.PropTypes.oneOf(["end","start",!1]),size:o.PropTypes.oneOfType([o.PropTypes.oneOf(["small","medium","large"]),o.PropTypes.string]),sx:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object,o.PropTypes.bool])),o.PropTypes.func,o.PropTypes.object])});exports.IconButton=v;exports.getIconButtonUtilityClass=f;exports.iconButtonClasses=b;
@@ -0,0 +1 @@
1
+ "use strict";const x=require("react"),e=require("./identifier-BQH88SE0.cjs"),f=require("./useFormControl-haP0iPhl.cjs"),I=require("./memoTheme-B6o2KVgJ.cjs"),a=require("react/jsx-runtime"),m=require("./DefaultPropsProvider-BrX6iuA3.cjs"),O=require("./Typography-5OodZ94T.cjs");function A(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(o,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return o.default=t,Object.freeze(o)}const P=A(x);function C(t){return e.generateUtilityClass("MuiInputAdornment",t)}const T=e.generateUtilityClasses("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var b;const S=(t,o)=>{const{ownerState:n}=t;return[o.root,o[`position${e.capitalize(n.position)}`],n.disablePointerEvents===!0&&o.disablePointerEvents,o[n.variant]]},z=t=>{const{classes:o,disablePointerEvents:n,hiddenLabel:r,position:s,size:p,variant:l}=t,c={root:["root",n&&"disablePointerEvents",s&&`position${e.capitalize(s)}`,l,r&&"hiddenLabel",p&&`size${e.capitalize(p)}`]};return m.composeClasses(c,C,o)},N=m.styled("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:S})(I.memoTheme(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${T.positionStart}&:not(.${T.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),h=P.forwardRef(function(o,n){const r=m.useDefaultProps({props:o,name:"MuiInputAdornment"}),{children:s,className:p,component:l="div",disablePointerEvents:c=!1,disableTypography:g=!1,position:y,variant:d,...E}=r,i=f.useFormControl()||{};let u=d;d&&i.variant&&process.env.NODE_ENV!=="production"&&d===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={...r,hiddenLabel:i.hiddenLabel,size:i.size,disablePointerEvents:c,position:y,variant:u},j=z(v);return a.jsx(f.FormControlContext.Provider,{value:null,children:a.jsx(N,{as:l,ownerState:v,className:e.clsx(j.root,p),ref:n,...E,children:typeof s=="string"&&!g?a.jsx(O.Typography,{color:"textSecondary",children:s}):a.jsxs(P.Fragment,{children:[y==="start"?b||(b=a.jsx("span",{className:"notranslate",children:"​"})):null,s]})})})});process.env.NODE_ENV!=="production"&&(h.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=h;
@@ -1,10 +1,10 @@
1
1
  import * as h from "react";
2
- import { J as P, I as T, L as A, P as e, K as u } from "./identifier-Bu3vgTzE.js";
3
- import { u as C, F as x } from "./InputBase-5GB2c2J6.js";
4
- import { m as L } from "./memoTheme-C4_nd-x4.js";
2
+ import { J as P, I as T, K as A, P as e, L as u } from "./identifier-BqadgaK7.js";
3
+ import { u as C, F as x } from "./useFormControl-CatNKXAi.js";
4
+ import { m as L } from "./memoTheme-DfGVDRrB.js";
5
5
  import { jsx as l, jsxs as N } from "react/jsx-runtime";
6
- import { s as S, u as O, c as R } from "./DefaultPropsProvider-7QnSWHxy.js";
7
- import { T as w } from "./Typography-DsJC595c.js";
6
+ import { s as S, u as O, c as R } from "./DefaultPropsProvider-CaRoy5OV.js";
7
+ import { T as w } from "./Typography-C_ESP41L.js";
8
8
  function z(t) {
9
9
  return T("MuiInputAdornment", t);
10
10
  }