@cgi-learning-hub/ui 1.3.5-dev.1739378027 → 1.3.5-dev.1739974341

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/dist/{Backdrop-Cvbj4YKG.cjs → Backdrop-BY124k9Q.cjs} +1 -1
  2. package/dist/{Backdrop-DZHacmMU.js → Backdrop-CZ3ay4ta.js} +2 -2
  3. package/dist/{Button-DovfjBkz.js → Button-Bqcf-Wrh.js} +1 -2
  4. package/dist/{Button-COTy9ASL.cjs → Button-qwUFZs87.cjs} +1 -1
  5. package/dist/{ButtonBase-DKNIY_Ve.cjs → ButtonBase-C9D6EAt-.cjs} +2 -2
  6. package/dist/{ButtonBase-eQU9HVgU.js → ButtonBase-ylADCBW1.js} +66 -66
  7. package/dist/CardContent-BMiRcSGk.cjs +1 -0
  8. package/dist/CardContent-CHoWb0DR.js +226 -0
  9. package/dist/{Checkbox-y6Kts0Hm.js → Checkbox-92V5IqYF.js} +2 -2
  10. package/dist/{Checkbox-YCpJS_3E.cjs → Checkbox-DVRfGO8D.cjs} +1 -1
  11. package/dist/{Chip-FQbM3QKF.cjs → Chip-Ch7Ec9PJ.cjs} +1 -1
  12. package/dist/{Chip-DT0H_Vjk.js → Chip-I3ytWE-R.js} +2 -2
  13. package/dist/{CloseRounded-Cu-sn6XC.cjs → CloseRounded-BpiJGsCY.cjs} +1 -1
  14. package/dist/{CloseRounded-Df8vYhLX.js → CloseRounded-Di7N75zk.js} +1 -1
  15. package/dist/{DatePicker-CYvDKr4R.js → DatePicker-ByvIBsyI.js} +48 -46
  16. package/dist/{DatePicker-BroG1y5g.cjs → DatePicker-D3AfDdBL.cjs} +11 -11
  17. package/dist/{Dialog-BFZeovlo.cjs → Dialog-DouQwf1_.cjs} +1 -1
  18. package/dist/{Dialog-D0fzD-TX.js → Dialog-GVgQOV8v.js} +2 -2
  19. package/dist/{DialogTitle-CXRmRtja.cjs → DialogTitle-BTBnlhmM.cjs} +1 -1
  20. package/dist/{DialogTitle-BXGok8k-.js → DialogTitle-Bw1Q-9PX.js} +1 -1
  21. package/dist/{Grow-EpJy9qdL.js → Grow-BL8Bx4y5.js} +1 -1
  22. package/dist/{Grow-BK4rGn4x.cjs → Grow-BjcgF7nV.cjs} +1 -1
  23. package/dist/{IconButton-CZvDgqOc.js → IconButton-C4GFAbeH.js} +1 -1
  24. package/dist/{IconButton-BUCTqOFa.cjs → IconButton-loyqjXrR.cjs} +1 -1
  25. package/dist/{Menu-_4rLUzDf.js → Menu-CtlPVqJo.js} +5 -5
  26. package/dist/{Menu-NuheFzLD.cjs → Menu-DiQ9wnM_.cjs} +1 -1
  27. package/dist/{MenuItem-D9Hs7HRQ.js → MenuItem-BCyMn0B-.js} +2 -2
  28. package/dist/{MenuItem-CNUAbgnE.cjs → MenuItem-DuLNR389.cjs} +1 -1
  29. package/dist/{Modal-a-cSzSt8.js → Modal-BBc68t3R.js} +5 -5
  30. package/dist/{Modal-BhIbbbzx.cjs → Modal-CGCKjoqp.cjs} +2 -2
  31. package/dist/{Popper-CPstdcBG.cjs → Popper-CyMmAyHW.cjs} +1 -1
  32. package/dist/{Popper-BcaTNUvi.js → Popper-Dotov0nV.js} +2 -2
  33. package/dist/{Portal-BL8eg_0C.cjs → Portal-BC_MWv30.cjs} +1 -1
  34. package/dist/{Portal-B8inUnB_.js → Portal-DvgoZfYl.js} +1 -1
  35. package/dist/Radio-BmCVKlgN.js +568 -0
  36. package/dist/Radio-Cta61QrN.cjs +1 -0
  37. package/dist/RadioGroup-BoBajGjF.js +190 -0
  38. package/dist/RadioGroup-CA-GTAeR.cjs +1 -0
  39. package/dist/Select-Bm-ZcxRN.cjs +3 -0
  40. package/dist/{Select-D4pmgfdb.js → Select-DCbhewsz.js} +71 -67
  41. package/dist/Switch-BMjiyNyB.cjs +1 -0
  42. package/dist/Switch-JIoNRv7S.js +330 -0
  43. package/dist/{SwitchBase-VA100mrf.cjs → SwitchBase-CaXyAuEt.cjs} +1 -1
  44. package/dist/{SwitchBase-ynQQkTVh.js → SwitchBase-Ccit_gYg.js} +1 -1
  45. package/dist/{Tabs-DzbNYi2v.js → Tabs-Bhy2g9Y0.js} +3 -3
  46. package/dist/{Tabs-Bg_Zi8UV.cjs → Tabs-ll24SDcl.cjs} +1 -1
  47. package/dist/{TextField-BcAZk2Rx.cjs → TextField-C5lHwquP.cjs} +1 -1
  48. package/dist/{TextField-dvVq-1Hp.js → TextField-FNS4AqVd.js} +2 -2
  49. package/dist/ToggleButtonGroup-CEPDUgtK.cjs +167 -0
  50. package/dist/ToggleButtonGroup-qi5MsGIW.js +10602 -0
  51. package/dist/{Tooltip-CVvaAqh7.js → Tooltip-AHSVG6xQ.js} +5 -5
  52. package/dist/{Tooltip-DL2i_lGL.cjs → Tooltip-C2KS56xn.cjs} +1 -1
  53. package/dist/components/Alert/Alert.es.js +13 -4
  54. package/dist/components/Button/Button.cjs.js +1 -1
  55. package/dist/components/Button/Button.d.ts +1 -2
  56. package/dist/components/Button/Button.es.js +20 -4
  57. package/dist/components/Button/index.cjs.js +1 -1
  58. package/dist/components/Button/index.es.js +2 -2
  59. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  60. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  61. package/dist/components/DatePicker/index.cjs.js +1 -1
  62. package/dist/components/DatePicker/index.es.js +1 -1
  63. package/dist/components/Dialog/Dialog.cjs.js +1 -1
  64. package/dist/components/Dialog/Dialog.es.js +2 -2
  65. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  66. package/dist/components/Dropzone/Dropzone.es.js +1 -1
  67. package/dist/components/FileList/FileIcon.cjs.js +1 -1
  68. package/dist/components/FileList/FileIcon.es.js +1 -1
  69. package/dist/components/FileList/FileList.cjs.js +1 -1
  70. package/dist/components/FileList/FileList.es.js +15 -17
  71. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  72. package/dist/components/FileList/FileListItem.es.js +95 -88
  73. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
  74. package/dist/components/ImagePicker/ImagePicker.es.js +47 -23
  75. package/dist/components/Loader/Loader.d.ts +1 -2
  76. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  77. package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +1 -2
  78. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +1 -1
  79. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  80. package/dist/components/PasswordInput/PasswordInput.es.js +10 -9
  81. package/dist/components/QueryError/QueryError.d.ts +2 -2
  82. package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
  83. package/dist/components/ResourceCard/ResourceCard.d.ts +2 -2
  84. package/dist/components/ResourceCard/ResourceCard.es.js +73 -79
  85. package/dist/components/ResourceCard/style.es.js +65 -57
  86. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  87. package/dist/components/SearchInput/SearchInput.d.ts +1 -2
  88. package/dist/components/SearchInput/SearchInput.es.js +1 -1
  89. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  90. package/dist/components/TextInput/TextInput.es.js +1 -1
  91. package/dist/components/index.cjs.js +1 -1
  92. package/dist/components/index.d.ts +34 -0
  93. package/dist/components/index.es.js +347 -296
  94. package/dist/components/stories/Button.stories.cjs.js +1 -1
  95. package/dist/components/stories/Button.stories.es.js +2 -2
  96. package/dist/components/stories/Card.stories.cjs.js +1 -1
  97. package/dist/components/stories/Card.stories.es.js +17 -168
  98. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  99. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  100. package/dist/components/stories/Chip.stories.cjs.js +1 -1
  101. package/dist/components/stories/Chip.stories.es.js +1 -1
  102. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  103. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  104. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  105. package/dist/components/stories/Dialog.stories.es.js +2 -2
  106. package/dist/components/stories/FileList.stories.cjs.js +1 -1
  107. package/dist/components/stories/FileList.stories.es.js +5 -7
  108. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
  109. package/dist/components/stories/FormControlLabel.stories.es.js +16 -340
  110. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  111. package/dist/components/stories/Heading.stories.es.js +1 -1
  112. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  113. package/dist/components/stories/IconButton.stories.es.js +2 -2
  114. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  115. package/dist/components/stories/Menu.stories.es.js +3 -3
  116. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  117. package/dist/components/stories/RadioGroup.stories.es.js +19 -115
  118. package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
  119. package/dist/components/stories/ResourceCard.stories.es.js +10 -4
  120. package/dist/components/stories/Select.stories.cjs.js +1 -1
  121. package/dist/components/stories/Select.stories.es.js +2 -2
  122. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  123. package/dist/components/stories/TabList.stories.es.js +1 -1
  124. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  125. package/dist/components/stories/TextField.stories.es.js +1 -1
  126. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  127. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  128. package/dist/{createSvgIcon-Cd6y8E9W.js → createSvgIcon-CIearCnQ.js} +44 -42
  129. package/dist/createSvgIcon-DKtSalut.cjs +1 -0
  130. package/dist/index.cjs.js +1 -1
  131. package/dist/index.es.js +347 -296
  132. package/dist/resolveComponentProps-CGmtduHt.cjs +1 -0
  133. package/dist/{mergeSlotProps-DwgGXvkj.js → resolveComponentProps-kRRJ79Kv.js} +6 -6
  134. package/dist/useSlot-BYekfmak.cjs +1 -0
  135. package/dist/{useSlot-BYfmyYXv.js → useSlot-CQW01GLa.js} +1 -1
  136. package/dist/useSlotProps-NZH6_nAj.cjs +1 -0
  137. package/dist/{useSlotProps-r0vmrJvl.js → useSlotProps-pX6ti4cn.js} +1 -1
  138. package/dist/utils-C6YMiaf0.cjs +1 -0
  139. package/dist/{utils-D4djO_Ph.js → utils-CSBYZkoB.js} +40 -40
  140. package/package.json +1 -1
  141. package/dist/Button-C-bZSJCq.cjs +0 -28
  142. package/dist/Button-CSNPv43f.js +0 -542
  143. package/dist/Card-B7MHmB_Y.js +0 -74
  144. package/dist/Card-CwE6nm11.cjs +0 -1
  145. package/dist/FormControlLabel-BjbkwHC0.js +0 -262
  146. package/dist/FormControlLabel-BjlJz2oa.cjs +0 -1
  147. package/dist/FormGroup-DdwFGMq2.js +0 -95
  148. package/dist/FormGroup-x7hlLAv1.cjs +0 -1
  149. package/dist/Radio-8fNX60rb.cjs +0 -1
  150. package/dist/Radio-DgedCGZw.js +0 -313
  151. package/dist/Select-DtrvYyJ3.cjs +0 -3
  152. package/dist/TableSortLabel-BXto8Tc7.js +0 -6440
  153. package/dist/TableSortLabel-h3un69IU.cjs +0 -98
  154. package/dist/createSvgIcon-CWNQW6u6.cjs +0 -1
  155. package/dist/mergeSlotProps-DJgEFzGv.cjs +0 -1
  156. package/dist/useSlot-CMUEd7j7.cjs +0 -1
  157. package/dist/useSlotProps-D0jr2eYF.cjs +0 -1
  158. package/dist/utils-BWXB1haV.cjs +0 -1
@@ -0,0 +1,568 @@
1
+ import * as p from "react";
2
+ import { H as A, I as H, G as I, P as e, n as M } from "./generateUtilityClasses-v9KcqdK1.js";
3
+ import { m as N } from "./memoTheme-D-rebSfX.js";
4
+ import { f as ae } from "./formControlState-vgaj2ksH.js";
5
+ import { u as re } from "./useSlot-CQW01GLa.js";
6
+ import { jsx as l, jsxs as T } from "react/jsx-runtime";
7
+ import { u as W, s as b, c as Z, r as J } from "./DefaultPropsProvider-CmOKr9hq.js";
8
+ import { u as K } from "./useFormControl-CatNKXAi.js";
9
+ import { T as D } from "./Typography-C9ltjPyz.js";
10
+ import { c as m } from "./capitalize-yX_QSknw.js";
11
+ import { r as Q } from "./refType-DcE_kWty.js";
12
+ import { S as se } from "./SwitchBase-Ccit_gYg.js";
13
+ import { c as X } from "./createSvgIcon-CIearCnQ.js";
14
+ import { c as U } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
15
+ import { c as ne } from "./createChainedFunction-C0nujS3O.js";
16
+ function le(o) {
17
+ return H("MuiFormControlLabel", o);
18
+ }
19
+ const C = A("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlacementTop", "labelPlacementBottom", "disabled", "label", "error", "required", "asterisk"]), ie = (o) => {
20
+ const {
21
+ classes: t,
22
+ disabled: a,
23
+ labelPlacement: r,
24
+ error: s,
25
+ required: y
26
+ } = o, g = {
27
+ root: ["root", a && "disabled", `labelPlacement${m(r)}`, s && "error", y && "required"],
28
+ label: ["label", a && "disabled"],
29
+ asterisk: ["asterisk", s && "error"]
30
+ };
31
+ return Z(g, le, t);
32
+ }, ce = b("label", {
33
+ name: "MuiFormControlLabel",
34
+ slot: "Root",
35
+ overridesResolver: (o, t) => {
36
+ const {
37
+ ownerState: a
38
+ } = o;
39
+ return [{
40
+ [`& .${C.label}`]: t.label
41
+ }, t.root, t[`labelPlacement${m(a.labelPlacement)}`]];
42
+ }
43
+ })(N(({
44
+ theme: o
45
+ }) => ({
46
+ display: "inline-flex",
47
+ alignItems: "center",
48
+ cursor: "pointer",
49
+ // For correct alignment with the text.
50
+ verticalAlign: "middle",
51
+ WebkitTapHighlightColor: "transparent",
52
+ marginLeft: -11,
53
+ marginRight: 16,
54
+ // used for row presentation of radio/checkbox
55
+ [`&.${C.disabled}`]: {
56
+ cursor: "default"
57
+ },
58
+ [`& .${C.label}`]: {
59
+ [`&.${C.disabled}`]: {
60
+ color: (o.vars || o).palette.text.disabled
61
+ }
62
+ },
63
+ variants: [{
64
+ props: {
65
+ labelPlacement: "start"
66
+ },
67
+ style: {
68
+ flexDirection: "row-reverse",
69
+ marginRight: -11
70
+ }
71
+ }, {
72
+ props: {
73
+ labelPlacement: "top"
74
+ },
75
+ style: {
76
+ flexDirection: "column-reverse"
77
+ }
78
+ }, {
79
+ props: {
80
+ labelPlacement: "bottom"
81
+ },
82
+ style: {
83
+ flexDirection: "column"
84
+ }
85
+ }, {
86
+ props: ({
87
+ labelPlacement: t
88
+ }) => t === "start" || t === "top" || t === "bottom",
89
+ style: {
90
+ marginLeft: 16
91
+ // used for row presentation of radio/checkbox
92
+ }
93
+ }]
94
+ }))), de = b("span", {
95
+ name: "MuiFormControlLabel",
96
+ slot: "Asterisk",
97
+ overridesResolver: (o, t) => t.asterisk
98
+ })(N(({
99
+ theme: o
100
+ }) => ({
101
+ [`&.${C.error}`]: {
102
+ color: (o.vars || o).palette.error.main
103
+ }
104
+ }))), pe = /* @__PURE__ */ p.forwardRef(function(t, a) {
105
+ const r = W({
106
+ props: t,
107
+ name: "MuiFormControlLabel"
108
+ }), {
109
+ checked: s,
110
+ className: y,
111
+ componentsProps: g = {},
112
+ control: u,
113
+ disabled: w,
114
+ disableTypography: z,
115
+ inputRef: h,
116
+ label: x,
117
+ labelPlacement: $ = "end",
118
+ name: L,
119
+ onChange: q,
120
+ required: v,
121
+ slots: i = {},
122
+ slotProps: R = {},
123
+ value: F,
124
+ ...c
125
+ } = r, n = K(), k = w ?? u.props.disabled ?? (n == null ? void 0 : n.disabled), d = v ?? u.props.required, B = {
126
+ disabled: k,
127
+ required: d
128
+ };
129
+ ["checked", "name", "onChange", "value", "inputRef"].forEach((O) => {
130
+ typeof u.props[O] > "u" && typeof r[O] < "u" && (B[O] = r[O]);
131
+ });
132
+ const ee = ae({
133
+ props: r,
134
+ muiFormControl: n,
135
+ states: ["error"]
136
+ }), P = {
137
+ ...r,
138
+ disabled: k,
139
+ labelPlacement: $,
140
+ required: d,
141
+ error: ee.error
142
+ }, j = ie(P), oe = {
143
+ slots: i,
144
+ slotProps: {
145
+ ...g,
146
+ ...R
147
+ }
148
+ }, [te, S] = re("typography", {
149
+ elementType: D,
150
+ externalForwardedProps: oe,
151
+ ownerState: P
152
+ });
153
+ let f = x;
154
+ return f != null && f.type !== D && !z && (f = /* @__PURE__ */ l(te, {
155
+ component: "span",
156
+ ...S,
157
+ className: I(j.label, S == null ? void 0 : S.className),
158
+ children: f
159
+ })), /* @__PURE__ */ T(ce, {
160
+ className: I(j.root, y),
161
+ ownerState: P,
162
+ ref: a,
163
+ ...c,
164
+ children: [/* @__PURE__ */ p.cloneElement(u, B), d ? /* @__PURE__ */ T("div", {
165
+ children: [f, /* @__PURE__ */ T(de, {
166
+ ownerState: P,
167
+ "aria-hidden": !0,
168
+ className: j.asterisk,
169
+ children: [" ", "*"]
170
+ })]
171
+ }) : f]
172
+ });
173
+ });
174
+ process.env.NODE_ENV !== "production" && (pe.propTypes = {
175
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
176
+ // │ These PropTypes are generated from the TypeScript type definitions. │
177
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
178
+ // └─────────────────────────────────────────────────────────────────────┘
179
+ /**
180
+ * If `true`, the component appears selected.
181
+ */
182
+ checked: e.bool,
183
+ /**
184
+ * Override or extend the styles applied to the component.
185
+ */
186
+ classes: e.object,
187
+ /**
188
+ * @ignore
189
+ */
190
+ className: e.string,
191
+ /**
192
+ * The props used for each slot inside.
193
+ * @default {}
194
+ * @deprecated use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
195
+ */
196
+ componentsProps: e.shape({
197
+ typography: e.object
198
+ }),
199
+ /**
200
+ * A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.
201
+ */
202
+ control: e.element.isRequired,
203
+ /**
204
+ * If `true`, the control is disabled.
205
+ */
206
+ disabled: e.bool,
207
+ /**
208
+ * If `true`, the label is rendered as it is passed without an additional typography node.
209
+ */
210
+ disableTypography: e.bool,
211
+ /**
212
+ * Pass a ref to the `input` element.
213
+ */
214
+ inputRef: Q,
215
+ /**
216
+ * A text or an element to be used in an enclosing label element.
217
+ */
218
+ label: e.node,
219
+ /**
220
+ * The position of the label.
221
+ * @default 'end'
222
+ */
223
+ labelPlacement: e.oneOf(["bottom", "end", "start", "top"]),
224
+ /**
225
+ * @ignore
226
+ */
227
+ name: e.string,
228
+ /**
229
+ * Callback fired when the state is changed.
230
+ *
231
+ * @param {React.SyntheticEvent} event The event source of the callback.
232
+ * You can pull out the new checked state by accessing `event.target.checked` (boolean).
233
+ */
234
+ onChange: e.func,
235
+ /**
236
+ * If `true`, the label will indicate that the `input` is required.
237
+ */
238
+ required: e.bool,
239
+ /**
240
+ * The props used for each slot inside.
241
+ * @default {}
242
+ */
243
+ slotProps: e.shape({
244
+ typography: e.oneOfType([e.func, e.object])
245
+ }),
246
+ /**
247
+ * The components used for each slot inside.
248
+ * @default {}
249
+ */
250
+ slots: e.shape({
251
+ typography: e.elementType
252
+ }),
253
+ /**
254
+ * The system prop that allows defining system overrides as well as additional CSS styles.
255
+ */
256
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
257
+ /**
258
+ * The value of the component.
259
+ */
260
+ value: e.any
261
+ });
262
+ const ue = X(/* @__PURE__ */ l("path", {
263
+ d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
264
+ }), "RadioButtonUnchecked"), fe = X(/* @__PURE__ */ l("path", {
265
+ d: "M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"
266
+ }), "RadioButtonChecked"), me = b("span", {
267
+ shouldForwardProp: J
268
+ })({
269
+ position: "relative",
270
+ display: "flex"
271
+ }), be = b(ue)({
272
+ // Scale applied to prevent dot misalignment in Safari
273
+ transform: "scale(1)"
274
+ }), ye = b(fe)(N(({
275
+ theme: o
276
+ }) => ({
277
+ left: 0,
278
+ position: "absolute",
279
+ transform: "scale(0)",
280
+ transition: o.transitions.create("transform", {
281
+ easing: o.transitions.easing.easeIn,
282
+ duration: o.transitions.duration.shortest
283
+ }),
284
+ variants: [{
285
+ props: {
286
+ checked: !0
287
+ },
288
+ style: {
289
+ transform: "scale(1)",
290
+ transition: o.transitions.create("transform", {
291
+ easing: o.transitions.easing.easeOut,
292
+ duration: o.transitions.duration.shortest
293
+ })
294
+ }
295
+ }]
296
+ })));
297
+ function E(o) {
298
+ const {
299
+ checked: t = !1,
300
+ classes: a = {},
301
+ fontSize: r
302
+ } = o, s = {
303
+ ...o,
304
+ checked: t
305
+ };
306
+ return /* @__PURE__ */ T(me, {
307
+ className: a.root,
308
+ ownerState: s,
309
+ children: [/* @__PURE__ */ l(be, {
310
+ fontSize: r,
311
+ className: a.background,
312
+ ownerState: s
313
+ }), /* @__PURE__ */ l(ye, {
314
+ fontSize: r,
315
+ className: a.dot,
316
+ ownerState: s
317
+ })]
318
+ });
319
+ }
320
+ process.env.NODE_ENV !== "production" && (E.propTypes = {
321
+ /**
322
+ * If `true`, the component is checked.
323
+ */
324
+ checked: e.bool,
325
+ /**
326
+ * Override or extend the styles applied to the component.
327
+ */
328
+ classes: e.object,
329
+ /**
330
+ * The size of the component.
331
+ * `small` is equivalent to the dense radio styling.
332
+ */
333
+ fontSize: e.oneOf(["small", "medium"])
334
+ });
335
+ const Y = /* @__PURE__ */ p.createContext(void 0);
336
+ process.env.NODE_ENV !== "production" && (Y.displayName = "RadioGroupContext");
337
+ function ge() {
338
+ return p.useContext(Y);
339
+ }
340
+ function Ce(o) {
341
+ return H("MuiRadio", o);
342
+ }
343
+ const V = A("MuiRadio", ["root", "checked", "disabled", "colorPrimary", "colorSecondary", "sizeSmall"]), he = (o) => {
344
+ const {
345
+ classes: t,
346
+ color: a,
347
+ size: r
348
+ } = o, s = {
349
+ root: ["root", `color${m(a)}`, r !== "medium" && `size${m(r)}`]
350
+ };
351
+ return {
352
+ ...t,
353
+ ...Z(s, Ce, t)
354
+ };
355
+ }, ve = b(se, {
356
+ shouldForwardProp: (o) => J(o) || o === "classes",
357
+ name: "MuiRadio",
358
+ slot: "Root",
359
+ overridesResolver: (o, t) => {
360
+ const {
361
+ ownerState: a
362
+ } = o;
363
+ return [t.root, a.size !== "medium" && t[`size${m(a.size)}`], t[`color${m(a.color)}`]];
364
+ }
365
+ })(N(({
366
+ theme: o
367
+ }) => ({
368
+ color: (o.vars || o).palette.text.secondary,
369
+ [`&.${V.disabled}`]: {
370
+ color: (o.vars || o).palette.action.disabled
371
+ },
372
+ variants: [{
373
+ props: {
374
+ color: "default",
375
+ disabled: !1,
376
+ disableRipple: !1
377
+ },
378
+ style: {
379
+ "&:hover": {
380
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : M(o.palette.action.active, o.palette.action.hoverOpacity)
381
+ }
382
+ }
383
+ }, ...Object.entries(o.palette).filter(U()).map(([t]) => ({
384
+ props: {
385
+ color: t,
386
+ disabled: !1,
387
+ disableRipple: !1
388
+ },
389
+ style: {
390
+ "&:hover": {
391
+ backgroundColor: o.vars ? `rgba(${o.vars.palette[t].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : M(o.palette[t].main, o.palette.action.hoverOpacity)
392
+ }
393
+ }
394
+ })), ...Object.entries(o.palette).filter(U()).map(([t]) => ({
395
+ props: {
396
+ color: t,
397
+ disabled: !1
398
+ },
399
+ style: {
400
+ [`&.${V.checked}`]: {
401
+ color: (o.vars || o).palette[t].main
402
+ }
403
+ }
404
+ })), {
405
+ // Should be last to override other colors
406
+ props: {
407
+ disableRipple: !1
408
+ },
409
+ style: {
410
+ // Reset on touch devices, it doesn't add specificity
411
+ "&:hover": {
412
+ "@media (hover: none)": {
413
+ backgroundColor: "transparent"
414
+ }
415
+ }
416
+ }
417
+ }]
418
+ })));
419
+ function Re(o, t) {
420
+ return typeof t == "object" && t !== null ? o === t : String(o) === String(t);
421
+ }
422
+ const G = /* @__PURE__ */ l(E, {
423
+ checked: !0
424
+ }), _ = /* @__PURE__ */ l(E, {}), ke = /* @__PURE__ */ p.forwardRef(function(t, a) {
425
+ const r = W({
426
+ props: t,
427
+ name: "MuiRadio"
428
+ }), {
429
+ checked: s,
430
+ checkedIcon: y = G,
431
+ color: g = "primary",
432
+ icon: u = _,
433
+ name: w,
434
+ onChange: z,
435
+ size: h = "medium",
436
+ className: x,
437
+ disabled: $,
438
+ disableRipple: L = !1,
439
+ ...q
440
+ } = r, v = K();
441
+ let i = $;
442
+ v && typeof i > "u" && (i = v.disabled), i ?? (i = !1);
443
+ const R = {
444
+ ...r,
445
+ disabled: i,
446
+ disableRipple: L,
447
+ color: g,
448
+ size: h
449
+ }, F = he(R), c = ge();
450
+ let n = s;
451
+ const k = ne(z, c && c.onChange);
452
+ let d = w;
453
+ return c && (typeof n > "u" && (n = Re(c.value, r.value)), typeof d > "u" && (d = c.name)), /* @__PURE__ */ l(ve, {
454
+ type: "radio",
455
+ icon: /* @__PURE__ */ p.cloneElement(u, {
456
+ fontSize: _.props.fontSize ?? h
457
+ }),
458
+ checkedIcon: /* @__PURE__ */ p.cloneElement(y, {
459
+ fontSize: G.props.fontSize ?? h
460
+ }),
461
+ disabled: i,
462
+ ownerState: R,
463
+ classes: F,
464
+ name: d,
465
+ checked: n,
466
+ onChange: k,
467
+ ref: a,
468
+ className: I(F.root, x),
469
+ ...q
470
+ });
471
+ });
472
+ process.env.NODE_ENV !== "production" && (ke.propTypes = {
473
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
474
+ // │ These PropTypes are generated from the TypeScript type definitions. │
475
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
476
+ // └─────────────────────────────────────────────────────────────────────┘
477
+ /**
478
+ * If `true`, the component is checked.
479
+ */
480
+ checked: e.bool,
481
+ /**
482
+ * The icon to display when the component is checked.
483
+ * @default <RadioButtonIcon checked />
484
+ */
485
+ checkedIcon: e.node,
486
+ /**
487
+ * Override or extend the styles applied to the component.
488
+ */
489
+ classes: e.object,
490
+ /**
491
+ * @ignore
492
+ */
493
+ className: e.string,
494
+ /**
495
+ * The color of the component.
496
+ * It supports both default and custom theme colors, which can be added as shown in the
497
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
498
+ * @default 'primary'
499
+ */
500
+ color: e.oneOfType([e.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
501
+ /**
502
+ * If `true`, the component is disabled.
503
+ */
504
+ disabled: e.bool,
505
+ /**
506
+ * If `true`, the ripple effect is disabled.
507
+ * @default false
508
+ */
509
+ disableRipple: e.bool,
510
+ /**
511
+ * The icon to display when the component is unchecked.
512
+ * @default <RadioButtonIcon />
513
+ */
514
+ icon: e.node,
515
+ /**
516
+ * The id of the `input` element.
517
+ */
518
+ id: e.string,
519
+ /**
520
+ * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
521
+ */
522
+ inputProps: e.object,
523
+ /**
524
+ * Pass a ref to the `input` element.
525
+ */
526
+ inputRef: Q,
527
+ /**
528
+ * Name attribute of the `input` element.
529
+ */
530
+ name: e.string,
531
+ /**
532
+ * Callback fired when the state is changed.
533
+ *
534
+ * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
535
+ * You can pull out the new value by accessing `event.target.value` (string).
536
+ * You can pull out the new checked state by accessing `event.target.checked` (boolean).
537
+ */
538
+ onChange: e.func,
539
+ /**
540
+ * If `true`, the `input` element is required.
541
+ * @default false
542
+ */
543
+ required: e.bool,
544
+ /**
545
+ * The size of the component.
546
+ * `small` is equivalent to the dense radio styling.
547
+ * @default 'medium'
548
+ */
549
+ size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
550
+ /**
551
+ * The system prop that allows defining system overrides as well as additional CSS styles.
552
+ */
553
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
554
+ /**
555
+ * The value of the component. The DOM API casts this to a string.
556
+ */
557
+ value: e.any
558
+ });
559
+ export {
560
+ pe as F,
561
+ ke as R,
562
+ Ce as a,
563
+ Y as b,
564
+ C as f,
565
+ le as g,
566
+ V as r,
567
+ ge as u
568
+ };
@@ -0,0 +1 @@
1
+ "use strict";const ee=require("react"),e=require("./generateUtilityClasses-0dYt6eGZ.cjs"),x=require("./memoTheme-D1tPxCd9.cjs"),oe=require("./formControlState-CuX6WjAX.cjs"),re=require("./useSlot-BYekfmak.cjs"),a=require("react/jsx-runtime"),n=require("./DefaultPropsProvider-PRhNsS_3.cjs"),_=require("./useFormControl-haP0iPhl.cjs"),U=require("./Typography-Y-OGmT9M.cjs"),b=require("./capitalize-Cq3s4y8R.cjs"),G=require("./refType-DdkUp8DT.cjs"),se=require("./SwitchBase-CaXyAuEt.cjs"),A=require("./createSvgIcon-DKtSalut.cjs"),B=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),te=require("./createChainedFunction-CJmlQuW8.cjs");function ae(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 u=ae(ee);function H(o){return e.generateUtilityClass("MuiFormControlLabel",o)}const m=e.generateUtilityClasses("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),ne=o=>{const{classes:r,disabled:s,labelPlacement:t,error:l,required:P}=o,T={root:["root",s&&"disabled",`labelPlacement${b.capitalize(t)}`,l&&"error",P&&"required"],label:["label",s&&"disabled"],asterisk:["asterisk",l&&"error"]};return n.composeClasses(T,H,r)},le=n.styled("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:s}=o;return[{[`& .${m.label}`]:r.label},r.root,r[`labelPlacement${b.capitalize(s.labelPlacement)}`]]}})(x.memoTheme(({theme:o})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${m.disabled}`]:{cursor:"default"},[`& .${m.label}`]:{[`&.${m.disabled}`]:{color:(o.vars||o).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:r})=>r==="start"||r==="top"||r==="bottom",style:{marginLeft:16}}]}))),ie=n.styled("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(o,r)=>r.asterisk})(x.memoTheme(({theme:o})=>({[`&.${m.error}`]:{color:(o.vars||o).palette.error.main}}))),W=u.forwardRef(function(r,s){const t=n.useDefaultProps({props:r,name:"MuiFormControlLabel"}),{checked:l,className:P,componentsProps:T={},control:y,disabled:j,disableTypography:O,inputRef:C,label:q,labelPlacement:z="end",name:L,onChange:D,required:g,slots:p={},slotProps:h={},value:F,...c}=t,i=_.useFormControl(),v=j??y.props.disabled??(i==null?void 0:i.disabled),d=g??y.props.required,E={disabled:v,required:d};["checked","name","onChange","value","inputRef"].forEach(k=>{typeof y.props[k]>"u"&&typeof t[k]<"u"&&(E[k]=t[k])});const Q=oe.formControlState({props:t,muiFormControl:i,states:["error"]}),R={...t,disabled:v,labelPlacement:z,required:d,error:Q.error},w=ne(R),X={slots:p,slotProps:{...T,...h}},[Y,S]=re.useSlot("typography",{elementType:U.Typography,externalForwardedProps:X,ownerState:R});let f=q;return f!=null&&f.type!==U.Typography&&!O&&(f=a.jsx(Y,{component:"span",...S,className:e.clsx(w.label,S==null?void 0:S.className),children:f})),a.jsxs(le,{className:e.clsx(w.root,P),ownerState:R,ref:s,...c,children:[u.cloneElement(y,E),d?a.jsxs("div",{children:[f,a.jsxs(ie,{ownerState:R,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):f]})});process.env.NODE_ENV!=="production"&&(W.propTypes={checked:e.PropTypes.bool,classes:e.PropTypes.object,className:e.PropTypes.string,componentsProps:e.PropTypes.shape({typography:e.PropTypes.object}),control:e.PropTypes.element.isRequired,disabled:e.PropTypes.bool,disableTypography:e.PropTypes.bool,inputRef:G.refType,label:e.PropTypes.node,labelPlacement:e.PropTypes.oneOf(["bottom","end","start","top"]),name:e.PropTypes.string,onChange:e.PropTypes.func,required:e.PropTypes.bool,slotProps:e.PropTypes.shape({typography:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({typography:e.PropTypes.elementType}),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]),value:e.PropTypes.any});const pe=A.createSvgIcon(a.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),ce=A.createSvgIcon(a.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),de=n.styled("span",{shouldForwardProp:n.rootShouldForwardProp})({position:"relative",display:"flex"}),ue=n.styled(pe)({transform:"scale(1)"}),ye=n.styled(ce)(x.memoTheme(({theme:o})=>({left:0,position:"absolute",transform:"scale(0)",transition:o.transitions.create("transform",{easing:o.transitions.easing.easeIn,duration:o.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:o.transitions.create("transform",{easing:o.transitions.easing.easeOut,duration:o.transitions.duration.shortest})}}]})));function $(o){const{checked:r=!1,classes:s={},fontSize:t}=o,l={...o,checked:r};return a.jsxs(de,{className:s.root,ownerState:l,children:[a.jsx(ue,{fontSize:t,className:s.background,ownerState:l}),a.jsx(ye,{fontSize:t,className:s.dot,ownerState:l})]})}process.env.NODE_ENV!=="production"&&($.propTypes={checked:e.PropTypes.bool,classes:e.PropTypes.object,fontSize:e.PropTypes.oneOf(["small","medium"])});const I=u.createContext(void 0);process.env.NODE_ENV!=="production"&&(I.displayName="RadioGroupContext");function Z(){return u.useContext(I)}function J(o){return e.generateUtilityClass("MuiRadio",o)}const N=e.generateUtilityClasses("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),fe=o=>{const{classes:r,color:s,size:t}=o,l={root:["root",`color${b.capitalize(s)}`,t!=="medium"&&`size${b.capitalize(t)}`]};return{...r,...n.composeClasses(l,J,r)}},me=n.styled(se.SwitchBase,{shouldForwardProp:o=>n.rootShouldForwardProp(o)||o==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:s}=o;return[r.root,s.size!=="medium"&&r[`size${b.capitalize(s.size)}`],r[`color${b.capitalize(s.color)}`]]}})(x.memoTheme(({theme:o})=>({color:(o.vars||o).palette.text.secondary,[`&.${N.disabled}`]:{color:(o.vars||o).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})`:e.alpha(o.palette.action.active,o.palette.action.hoverOpacity)}}},...Object.entries(o.palette).filter(B.createSimplePaletteValueFilter()).map(([r])=>({props:{color:r,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette[r].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:e.alpha(o.palette[r].main,o.palette.action.hoverOpacity)}}})),...Object.entries(o.palette).filter(B.createSimplePaletteValueFilter()).map(([r])=>({props:{color:r,disabled:!1},style:{[`&.${N.checked}`]:{color:(o.vars||o).palette[r].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function be(o,r){return typeof r=="object"&&r!==null?o===r:String(o)===String(r)}const M=a.jsx($,{checked:!0}),V=a.jsx($,{}),K=u.forwardRef(function(r,s){const t=n.useDefaultProps({props:r,name:"MuiRadio"}),{checked:l,checkedIcon:P=M,color:T="primary",icon:y=V,name:j,onChange:O,size:C="medium",className:q,disabled:z,disableRipple:L=!1,...D}=t,g=_.useFormControl();let p=z;g&&typeof p>"u"&&(p=g.disabled),p??(p=!1);const h={...t,disabled:p,disableRipple:L,color:T,size:C},F=fe(h),c=Z();let i=l;const v=te.createChainedFunction(O,c&&c.onChange);let d=j;return c&&(typeof i>"u"&&(i=be(c.value,t.value)),typeof d>"u"&&(d=c.name)),a.jsx(me,{type:"radio",icon:u.cloneElement(y,{fontSize:V.props.fontSize??C}),checkedIcon:u.cloneElement(P,{fontSize:M.props.fontSize??C}),disabled:p,ownerState:h,classes:F,name:d,checked:i,onChange:v,ref:s,className:e.clsx(F.root,q),...D})});process.env.NODE_ENV!=="production"&&(K.propTypes={checked:e.PropTypes.bool,checkedIcon:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["default","primary","secondary","error","info","success","warning"]),e.PropTypes.string]),disabled:e.PropTypes.bool,disableRipple:e.PropTypes.bool,icon:e.PropTypes.node,id:e.PropTypes.string,inputProps:e.PropTypes.object,inputRef:G.refType,name:e.PropTypes.string,onChange:e.PropTypes.func,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]),value:e.PropTypes.any});exports.FormControlLabel=W;exports.Radio=K;exports.RadioGroupContext=I;exports.formControlLabelClasses=m;exports.getFormControlLabelUtilityClasses=H;exports.getRadioUtilityClass=J;exports.radioClasses=N;exports.useRadioGroup=Z;