@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
@@ -1,334 +1,10 @@
1
- import { jsxs as y, jsx as s } from "react/jsx-runtime";
2
- import { F as S } from "../../FormControlLabel-BjbkwHC0.js";
3
- import { C as $ } from "../../Checkbox-y6Kts0Hm.js";
4
- import { a as C } from "../../Radio-DgedCGZw.js";
5
- import * as x from "react";
6
- import { H as T, I as R, G as z, n as v, s as O, q as j, P as t } from "../../generateUtilityClasses-v9KcqdK1.js";
7
- import { c as B } from "../../createSimplePaletteValueFilter-B7--0ryQ.js";
8
- import { S as M } from "../../SwitchBase-ynQQkTVh.js";
9
- import { m as d } from "../../memoTheme-D-rebSfX.js";
10
- import { u as P, s as p, c as L } from "../../DefaultPropsProvider-CmOKr9hq.js";
11
- import { c as i } from "../../capitalize-yX_QSknw.js";
12
- import { r as N } from "../../refType-DcE_kWty.js";
13
- function I(o) {
14
- return R("MuiSwitch", o);
15
- }
16
- const a = T("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]), D = (o) => {
17
- const {
18
- classes: e,
19
- edge: r,
20
- size: l,
21
- color: b,
22
- checked: u,
23
- disabled: g
24
- } = o, h = {
25
- root: ["root", r && `edge${i(r)}`, `size${i(l)}`],
26
- switchBase: ["switchBase", `color${i(b)}`, u && "checked", g && "disabled"],
27
- thumb: ["thumb"],
28
- track: ["track"],
29
- input: ["input"]
30
- }, m = L(h, I, e);
31
- return {
32
- ...e,
33
- // forward the disabled and checked classes to the SwitchBase
34
- ...m
35
- };
36
- }, F = p("span", {
37
- name: "MuiSwitch",
38
- slot: "Root",
39
- overridesResolver: (o, e) => {
40
- const {
41
- ownerState: r
42
- } = o;
43
- return [e.root, r.edge && e[`edge${i(r.edge)}`], e[`size${i(r.size)}`]];
44
- }
45
- })({
46
- display: "inline-flex",
47
- width: 34 + 12 * 2,
48
- height: 14 + 12 * 2,
49
- overflow: "hidden",
50
- padding: 12,
51
- boxSizing: "border-box",
52
- position: "relative",
53
- flexShrink: 0,
54
- zIndex: 0,
55
- // Reset the stacking context.
56
- verticalAlign: "middle",
57
- // For correct alignment with the text.
58
- "@media print": {
59
- colorAdjust: "exact"
60
- },
61
- variants: [{
62
- props: {
63
- edge: "start"
64
- },
65
- style: {
66
- marginLeft: -8
67
- }
68
- }, {
69
- props: {
70
- edge: "end"
71
- },
72
- style: {
73
- marginRight: -8
74
- }
75
- }, {
76
- props: {
77
- size: "small"
78
- },
79
- style: {
80
- width: 40,
81
- height: 24,
82
- padding: 7,
83
- [`& .${a.thumb}`]: {
84
- width: 16,
85
- height: 16
86
- },
87
- [`& .${a.switchBase}`]: {
88
- padding: 4,
89
- [`&.${a.checked}`]: {
90
- transform: "translateX(16px)"
91
- }
92
- }
93
- }
94
- }]
95
- }), q = p(M, {
96
- name: "MuiSwitch",
97
- slot: "SwitchBase",
98
- overridesResolver: (o, e) => {
99
- const {
100
- ownerState: r
101
- } = o;
102
- return [e.switchBase, {
103
- [`& .${a.input}`]: e.input
104
- }, r.color !== "default" && e[`color${i(r.color)}`]];
105
- }
106
- })(d(({
107
- theme: o
108
- }) => ({
109
- position: "absolute",
110
- top: 0,
111
- left: 0,
112
- zIndex: 1,
113
- // Render above the focus ripple.
114
- color: o.vars ? o.vars.palette.Switch.defaultColor : `${o.palette.mode === "light" ? o.palette.common.white : o.palette.grey[300]}`,
115
- transition: o.transitions.create(["left", "transform"], {
116
- duration: o.transitions.duration.shortest
117
- }),
118
- [`&.${a.checked}`]: {
119
- transform: "translateX(20px)"
120
- },
121
- [`&.${a.disabled}`]: {
122
- color: o.vars ? o.vars.palette.Switch.defaultDisabledColor : `${o.palette.mode === "light" ? o.palette.grey[100] : o.palette.grey[600]}`
123
- },
124
- [`&.${a.checked} + .${a.track}`]: {
125
- opacity: 0.5
126
- },
127
- [`&.${a.disabled} + .${a.track}`]: {
128
- opacity: o.vars ? o.vars.opacity.switchTrackDisabled : `${o.palette.mode === "light" ? 0.12 : 0.2}`
129
- },
130
- [`& .${a.input}`]: {
131
- left: "-100%",
132
- width: "300%"
133
- }
134
- })), d(({
135
- theme: o
136
- }) => ({
137
- "&:hover": {
138
- backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette.action.active, o.palette.action.hoverOpacity),
139
- // Reset on touch devices, it doesn't add specificity
140
- "@media (hover: none)": {
141
- backgroundColor: "transparent"
142
- }
143
- },
144
- variants: [...Object.entries(o.palette).filter(B(["light"])).map(([e]) => ({
145
- props: {
146
- color: e
147
- },
148
- style: {
149
- [`&.${a.checked}`]: {
150
- color: (o.vars || o).palette[e].main,
151
- "&:hover": {
152
- backgroundColor: o.vars ? `rgba(${o.vars.palette[e].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette[e].main, o.palette.action.hoverOpacity),
153
- "@media (hover: none)": {
154
- backgroundColor: "transparent"
155
- }
156
- },
157
- [`&.${a.disabled}`]: {
158
- color: o.vars ? o.vars.palette.Switch[`${e}DisabledColor`] : `${o.palette.mode === "light" ? O(o.palette[e].main, 0.62) : j(o.palette[e].main, 0.55)}`
159
- }
160
- },
161
- [`&.${a.checked} + .${a.track}`]: {
162
- backgroundColor: (o.vars || o).palette[e].main
163
- }
164
- }
165
- }))]
166
- }))), U = p("span", {
167
- name: "MuiSwitch",
168
- slot: "Track",
169
- overridesResolver: (o, e) => e.track
170
- })(d(({
171
- theme: o
172
- }) => ({
173
- height: "100%",
174
- width: "100%",
175
- borderRadius: 14 / 2,
176
- zIndex: -1,
177
- transition: o.transitions.create(["opacity", "background-color"], {
178
- duration: o.transitions.duration.shortest
179
- }),
180
- backgroundColor: o.vars ? o.vars.palette.common.onBackground : `${o.palette.mode === "light" ? o.palette.common.black : o.palette.common.white}`,
181
- opacity: o.vars ? o.vars.opacity.switchTrack : `${o.palette.mode === "light" ? 0.38 : 0.3}`
182
- }))), E = p("span", {
183
- name: "MuiSwitch",
184
- slot: "Thumb",
185
- overridesResolver: (o, e) => e.thumb
186
- })(d(({
187
- theme: o
188
- }) => ({
189
- boxShadow: (o.vars || o).shadows[1],
190
- backgroundColor: "currentColor",
191
- width: 20,
192
- height: 20,
193
- borderRadius: "50%"
194
- }))), w = /* @__PURE__ */ x.forwardRef(function(e, r) {
195
- const l = P({
196
- props: e,
197
- name: "MuiSwitch"
198
- }), {
199
- className: b,
200
- color: u = "primary",
201
- edge: g = !1,
202
- size: h = "medium",
203
- sx: m,
204
- ...k
205
- } = l, n = {
206
- ...l,
207
- color: u,
208
- edge: g,
209
- size: h
210
- }, c = D(n), f = /* @__PURE__ */ s(E, {
211
- className: c.thumb,
212
- ownerState: n
213
- });
214
- return /* @__PURE__ */ y(F, {
215
- className: z(c.root, b),
216
- sx: m,
217
- ownerState: n,
218
- children: [/* @__PURE__ */ s(q, {
219
- type: "checkbox",
220
- icon: f,
221
- checkedIcon: f,
222
- ref: r,
223
- ownerState: n,
224
- ...k,
225
- classes: {
226
- ...c,
227
- root: c.switchBase
228
- }
229
- }), /* @__PURE__ */ s(U, {
230
- className: c.track,
231
- ownerState: n
232
- })]
233
- });
234
- });
235
- process.env.NODE_ENV !== "production" && (w.propTypes = {
236
- // ┌────────────────────────────── Warning ──────────────────────────────┐
237
- // │ These PropTypes are generated from the TypeScript type definitions. │
238
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
239
- // └─────────────────────────────────────────────────────────────────────┘
240
- /**
241
- * If `true`, the component is checked.
242
- */
243
- checked: t.bool,
244
- /**
245
- * The icon to display when the component is checked.
246
- */
247
- checkedIcon: t.node,
248
- /**
249
- * Override or extend the styles applied to the component.
250
- */
251
- classes: t.object,
252
- /**
253
- * @ignore
254
- */
255
- className: t.string,
256
- /**
257
- * The color of the component.
258
- * It supports both default and custom theme colors, which can be added as shown in the
259
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
260
- * @default 'primary'
261
- */
262
- color: t.oneOfType([t.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), t.string]),
263
- /**
264
- * The default checked state. Use when the component is not controlled.
265
- */
266
- defaultChecked: t.bool,
267
- /**
268
- * If `true`, the component is disabled.
269
- */
270
- disabled: t.bool,
271
- /**
272
- * If `true`, the ripple effect is disabled.
273
- * @default false
274
- */
275
- disableRipple: t.bool,
276
- /**
277
- * If given, uses a negative margin to counteract the padding on one
278
- * side (this is often helpful for aligning the left or right
279
- * side of the icon with content above or below, without ruining the border
280
- * size and shape).
281
- * @default false
282
- */
283
- edge: t.oneOf(["end", "start", !1]),
284
- /**
285
- * The icon to display when the component is unchecked.
286
- */
287
- icon: t.node,
288
- /**
289
- * The id of the `input` element.
290
- */
291
- id: t.string,
292
- /**
293
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
294
- */
295
- inputProps: t.object,
296
- /**
297
- * Pass a ref to the `input` element.
298
- */
299
- inputRef: N,
300
- /**
301
- * Callback fired when the state is changed.
302
- *
303
- * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
304
- * You can pull out the new value by accessing `event.target.value` (string).
305
- * You can pull out the new checked state by accessing `event.target.checked` (boolean).
306
- */
307
- onChange: t.func,
308
- /**
309
- * If `true`, the `input` element is required.
310
- * @default false
311
- */
312
- required: t.bool,
313
- /**
314
- * The size of the component.
315
- * `small` is equivalent to the dense switch styling.
316
- * @default 'medium'
317
- */
318
- size: t.oneOfType([t.oneOf(["medium", "small"]), t.string]),
319
- /**
320
- * The system prop that allows defining system overrides as well as additional CSS styles.
321
- */
322
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
323
- /**
324
- * The value of the component. The DOM API casts this to a string.
325
- * The browser uses "on" as the default value.
326
- */
327
- value: t.any
328
- });
329
- const A = (o) => /* @__PURE__ */ s(S, { ...o }), oo = {
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { F as l, R as t } from "../../Radio-BmCVKlgN.js";
3
+ import { C as r } from "../../Checkbox-92V5IqYF.js";
4
+ import { S as a } from "../../Switch-JIoNRv7S.js";
5
+ const n = (e) => /* @__PURE__ */ o(l, { ...e }), d = {
330
6
  title: "Components/FormControlLabel",
331
- component: A,
7
+ component: n,
332
8
  argTypes: {
333
9
  control: {
334
10
  control: "object"
@@ -350,9 +26,9 @@ const A = (o) => /* @__PURE__ */ s(S, { ...o }), oo = {
350
26
  control: "boolean"
351
27
  }
352
28
  }
353
- }, to = {
29
+ }, m = {
354
30
  args: {
355
- control: /* @__PURE__ */ s($, {}),
31
+ control: /* @__PURE__ */ o(r, {}),
356
32
  checked: void 0,
357
33
  disabled: void 0,
358
34
  disableTypography: void 0,
@@ -360,20 +36,20 @@ const A = (o) => /* @__PURE__ */ s(S, { ...o }), oo = {
360
36
  labelPlacement: "end",
361
37
  required: void 0
362
38
  }
363
- }, eo = {
39
+ }, p = {
364
40
  args: {
365
- control: /* @__PURE__ */ s(C, {}),
41
+ control: /* @__PURE__ */ o(t, {}),
366
42
  label: "Label"
367
43
  }
368
- }, ao = {
44
+ }, h = {
369
45
  args: {
370
- control: /* @__PURE__ */ s(w, {}),
46
+ control: /* @__PURE__ */ o(a, {}),
371
47
  label: "Label"
372
48
  }
373
49
  };
374
50
  export {
375
- to as Checkbox,
376
- eo as Radio,
377
- ao as Switch,
378
- oo as default
51
+ m as Checkbox,
52
+ p as Radio,
53
+ h as Switch,
54
+ d as default
379
55
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),t=require("../../createSvgIcon-CWNQW6u6.cjs"),o=require("../Heading/Heading.cjs.js"),n=require("../../generateUtilityClasses-0dYt6eGZ.cjs"),c=t.createSvgIcon(e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"Mood"),s={title:"Components/Heading",component:o},r={args:{title:"Heading",iconColor:n.red,IconComponent:c}};exports.Default=r;exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),t=require("../../createSvgIcon-DKtSalut.cjs"),o=require("../Heading/Heading.cjs.js"),n=require("../../generateUtilityClasses-0dYt6eGZ.cjs"),c=t.createSvgIcon(e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"Mood"),s={title:"Components/Heading",component:o},r={args:{title:"Heading",iconColor:n.red,IconComponent:c}};exports.Default=r;exports.default=s;
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { c as t } from "../../createSvgIcon-Cd6y8E9W.js";
2
+ import { c as t } from "../../createSvgIcon-CIearCnQ.js";
3
3
  import n from "../Heading/Heading.es.js";
4
4
  import { r as c } from "../../generateUtilityClasses-v9KcqdK1.js";
5
5
  const e = t(/* @__PURE__ */ o("path", {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),o=require("../../createSvgIcon-CWNQW6u6.cjs"),l=require("../../IconButton-BUCTqOFa.cjs"),t=o.createSvgIcon(e.jsx("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"}),"School"),n={title:"Components/IconButton",component:l.IconButton,argTypes:{color:{control:"select",options:["inherit","default","primary","secondary","error","info","success","warning"]},disabled:{control:"boolean"},disableFocusRipple:{control:"boolean"},disableRipple:{control:"boolean"},edge:{control:"radio",options:["end","start",!1]},size:{control:"radio",options:["small","medium","large"]}}},s={args:{children:e.jsx(t,{}),color:"default",disabled:!1,disableFocusRipple:!1,disableRipple:!1,edge:!1,size:"medium"}};exports.Default=s;exports.default=n;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),o=require("../../createSvgIcon-DKtSalut.cjs"),l=require("../../IconButton-loyqjXrR.cjs"),t=o.createSvgIcon(e.jsx("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"}),"School"),n={title:"Components/IconButton",component:l.IconButton,argTypes:{color:{control:"select",options:["inherit","default","primary","secondary","error","info","success","warning"]},disabled:{control:"boolean"},disableFocusRipple:{control:"boolean"},disableRipple:{control:"boolean"},edge:{control:"radio",options:["end","start",!1]},size:{control:"radio",options:["small","medium","large"]}}},s={args:{children:e.jsx(t,{}),color:"default",disabled:!1,disableFocusRipple:!1,disableRipple:!1,edge:!1,size:"medium"}};exports.Default=s;exports.default=n;
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { c as e } from "../../createSvgIcon-Cd6y8E9W.js";
3
- import { I as l } from "../../IconButton-CZvDgqOc.js";
2
+ import { c as e } from "../../createSvgIcon-CIearCnQ.js";
3
+ import { I as l } from "../../IconButton-C4GFAbeH.js";
4
4
  const s = e(/* @__PURE__ */ o("path", {
5
5
  d: "M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"
6
6
  }), "School"), r = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),l=require("react"),a=require("../../Button-C-bZSJCq.cjs"),d=require("../../Menu-NuheFzLD.cjs"),o=require("../../MenuItem-CNUAbgnE.cjs"),m=r=>{const[u,s]=l.useState(null),t=!!u,c=i=>{s(i.currentTarget)},n=()=>s(null);return e.jsxs(e.Fragment,{children:[e.jsx(a.Button,{variant:"text",id:"basic-button","aria-controls":t?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":t?"true":void 0,onClick:c,children:"Open menu"}),e.jsxs(d.Menu,{...r,id:"basic-menu",anchorEl:u,open:t,onClose:n,MenuListProps:{"aria-labelledby":"basic-button"},children:[e.jsx(o.MenuItem,{onClick:n,children:"Profile"}),e.jsx(o.MenuItem,{onClick:n,children:"My account"}),e.jsx(o.MenuItem,{onClick:n,children:"Logout"})]})]})},M={title:"Components/Menu",component:m},p={args:{}};exports.Default=p;exports.default=M;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),l=require("react"),a=require("../Button/Button.cjs.js"),d=require("../../Menu-DiQ9wnM_.cjs"),o=require("../../MenuItem-DuLNR389.cjs"),m=r=>{const[u,s]=l.useState(null),t=!!u,c=i=>{s(i.currentTarget)},n=()=>s(null);return e.jsxs(e.Fragment,{children:[e.jsx(a,{variant:"text",id:"basic-button","aria-controls":t?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":t?"true":void 0,onClick:c,children:"Open menu"}),e.jsxs(d.Menu,{...r,id:"basic-menu",anchorEl:u,open:t,onClose:n,MenuListProps:{"aria-labelledby":"basic-button"},children:[e.jsx(o.MenuItem,{onClick:n,children:"Profile"}),e.jsx(o.MenuItem,{onClick:n,children:"My account"}),e.jsx(o.MenuItem,{onClick:n,children:"Logout"})]})]})},M={title:"Components/Menu",component:m},p={args:{}};exports.Default=p;exports.default=M;
@@ -1,8 +1,8 @@
1
1
  import { jsxs as a, Fragment as u, jsx as o } from "react/jsx-runtime";
2
2
  import { useState as m } from "react";
3
- import { B as p } from "../../Button-CSNPv43f.js";
4
- import { M as d } from "../../Menu-_4rLUzDf.js";
5
- import { M as t } from "../../MenuItem-D9Hs7HRQ.js";
3
+ import p from "../Button/Button.es.js";
4
+ import { M as d } from "../../Menu-CtlPVqJo.js";
5
+ import { M as t } from "../../MenuItem-BCyMn0B-.js";
6
6
  const h = (c) => {
7
7
  const [r, i] = m(null), e = !!r, l = (s) => {
8
8
  i(s.currentTarget);
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),g=require("../../FormLabel-CtCBcJ-1.cjs"),F=require("react"),r=require("../../generateUtilityClasses-0dYt6eGZ.cjs"),u=require("../../Radio-8fNX60rb.cjs"),G=require("../../useControlled-Ysk4KqoX.cjs"),T=require("../../useForkRef-CTI33h-3.cjs"),w=require("../../useId-DNXtOFeX.cjs"),S=require("../../FormGroup-x7hlLAv1.cjs"),L=require("../../DefaultPropsProvider-PRhNsS_3.cjs"),p=require("../../FormControlLabel-BjlJz2oa.cjs");function O(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const a=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,a.get?a:{enumerable:!0,get:()=>e[s]})}}return t.default=e,Object.freeze(t)}const l=O(F);function D(e){return r.generateUtilityClass("MuiRadioGroup",e)}r.generateUtilityClasses("MuiRadioGroup",["root","row","error"]);const M=e=>{const{classes:t,row:s,error:a}=e,i={root:["root",s&&"row",a&&"error"]};return L.composeClasses(i,D,t)},R=l.forwardRef(function(t,s){const{actions:a,children:i,className:y,defaultValue:C,name:j,onChange:c,value:v,...h}=t,d=l.useRef(null),x=M(t),[f,m]=G.useControlled({controlled:v,default:C,name:"RadioGroup"});l.useImperativeHandle(a,()=>({focus:()=>{let n=d.current.querySelector("input:not(:disabled):checked");n||(n=d.current.querySelector("input:not(:disabled)")),n&&n.focus()}}),[]);const P=T.useForkRef(s,d),b=w.useId(j),q=l.useMemo(()=>({name:b,onChange(n){m(n.target.value),c&&c(n,n.target.value)},value:f}),[b,c,m,f]);return o.jsx(u.RadioGroupContext.Provider,{value:q,children:o.jsx(S.FormGroup,{role:"radiogroup",ref:P,className:r.clsx(x.root,y),...h,children:i})})});process.env.NODE_ENV!=="production"&&(R.propTypes={children:r.PropTypes.node,className:r.PropTypes.string,defaultValue:r.PropTypes.any,name:r.PropTypes.string,onChange:r.PropTypes.func,value:r.PropTypes.any});const N=e=>o.jsxs(g.FormControl,{children:[o.jsx(g.FormLabel,{id:"radio-buttons-group-label",children:"Label"}),o.jsxs(R,{"aria-labelledby":"radio-buttons-group-label",defaultValue:"first",name:"radio-buttons-group",...e,children:[o.jsx(p.FormControlLabel,{value:"first",control:o.jsx(u.Radio,{}),label:"First"}),o.jsx(p.FormControlLabel,{value:"second",control:o.jsx(u.Radio,{}),label:"Second"}),o.jsx(p.FormControlLabel,{value:"third",control:o.jsx(u.Radio,{}),label:"Third"})]})]}),V={title:"Components/RadioGroup",component:N},_={args:{row:!1}},U={args:{row:!0}};exports.Default=_;exports.Row=U;exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),r=require("../../FormLabel-CtCBcJ-1.cjs"),t=require("../../RadioGroup-CA-GTAeR.cjs"),e=require("../../Radio-Cta61QrN.cjs"),a=l=>o.jsxs(r.FormControl,{children:[o.jsx(r.FormLabel,{id:"radio-buttons-group-label",children:"Label"}),o.jsxs(t.RadioGroup,{"aria-labelledby":"radio-buttons-group-label",defaultValue:"first",name:"radio-buttons-group",...l,children:[o.jsx(e.FormControlLabel,{value:"first",control:o.jsx(e.Radio,{}),label:"First"}),o.jsx(e.FormControlLabel,{value:"second",control:o.jsx(e.Radio,{}),label:"Second"}),o.jsx(e.FormControlLabel,{value:"third",control:o.jsx(e.Radio,{}),label:"Third"})]})]}),s={title:"Components/RadioGroup",component:a},n={args:{row:!1}},i={args:{row:!0}};exports.Default=n;exports.Row=i;exports.default=s;
@@ -1,133 +1,37 @@
1
- import { jsx as o, jsxs as g } from "react/jsx-runtime";
2
- import { F as V, a as N } from "../../FormLabel-Cm4Ba58U.js";
3
- import * as s from "react";
4
- import { I as P, H as S, G as U, P as t } from "../../generateUtilityClasses-v9KcqdK1.js";
5
- import { R as I, a as c } from "../../Radio-DgedCGZw.js";
6
- import { u as L } from "../../useControlled-BYdyS7Pn.js";
7
- import { u as M } from "../../useForkRef-C_4o__cU.js";
8
- import { u as T } from "../../useId-CK6Kn3Tn.js";
9
- import { F as j } from "../../FormGroup-DdwFGMq2.js";
10
- import { c as k } from "../../DefaultPropsProvider-CmOKr9hq.js";
11
- import { F as d } from "../../FormControlLabel-BjbkwHC0.js";
12
- function q(r) {
13
- return P("MuiRadioGroup", r);
14
- }
15
- S("MuiRadioGroup", ["root", "row", "error"]);
16
- const D = (r) => {
17
- const {
18
- classes: a,
19
- row: l,
20
- error: n
21
- } = r;
22
- return k({
23
- root: ["root", l && "row", n && "error"]
24
- }, q, a);
25
- }, b = /* @__PURE__ */ s.forwardRef(function(a, l) {
26
- const {
27
- // private
28
- // eslint-disable-next-line react/prop-types
29
- actions: n,
30
- children: m,
31
- className: h,
32
- defaultValue: C,
33
- name: v,
34
- onChange: u,
35
- value: y,
36
- ...G
37
- } = a, i = s.useRef(null), F = D(a), [p, f] = L({
38
- controlled: y,
39
- default: C,
40
- name: "RadioGroup"
41
- });
42
- s.useImperativeHandle(n, () => ({
43
- focus: () => {
44
- let e = i.current.querySelector("input:not(:disabled):checked");
45
- e || (e = i.current.querySelector("input:not(:disabled)")), e && e.focus();
46
- }
47
- }), []);
48
- const w = M(l, i), R = T(v), x = s.useMemo(() => ({
49
- name: R,
50
- onChange(e) {
51
- f(e.target.value), u && u(e, e.target.value);
52
- },
53
- value: p
54
- }), [R, u, f, p]);
55
- return /* @__PURE__ */ o(I.Provider, {
56
- value: x,
57
- children: /* @__PURE__ */ o(j, {
58
- role: "radiogroup",
59
- ref: w,
60
- className: U(F.root, h),
61
- ...G,
62
- children: m
63
- })
64
- });
65
- });
66
- process.env.NODE_ENV !== "production" && (b.propTypes = {
67
- // ┌────────────────────────────── Warning ──────────────────────────────┐
68
- // │ These PropTypes are generated from the TypeScript type definitions. │
69
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
70
- // └─────────────────────────────────────────────────────────────────────┘
71
- /**
72
- * The content of the component.
73
- */
74
- children: t.node,
75
- /**
76
- * @ignore
77
- */
78
- className: t.string,
79
- /**
80
- * The default value. Use when the component is not controlled.
81
- */
82
- defaultValue: t.any,
83
- /**
84
- * The name used to reference the value of the control.
85
- * If you don't provide this prop, it falls back to a randomly generated name.
86
- */
87
- name: t.string,
88
- /**
89
- * Callback fired when a radio button is selected.
90
- *
91
- * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
92
- * @param {string} value The value of the selected radio button.
93
- * You can pull out the new value by accessing `event.target.value` (string).
94
- */
95
- onChange: t.func,
96
- /**
97
- * Value of the selected radio button. The DOM API casts this to a string.
98
- */
99
- value: t.any
100
- });
101
- const E = (r) => /* @__PURE__ */ g(V, { children: [
102
- /* @__PURE__ */ o(N, { id: "radio-buttons-group-label", children: "Label" }),
103
- /* @__PURE__ */ g(
104
- b,
1
+ import { jsxs as t, jsx as o } from "react/jsx-runtime";
2
+ import { F as e, a as s } from "../../FormLabel-Cm4Ba58U.js";
3
+ import { R as n } from "../../RadioGroup-BoBajGjF.js";
4
+ import { F as r, R as a } from "../../Radio-BmCVKlgN.js";
5
+ const i = (l) => /* @__PURE__ */ t(e, { children: [
6
+ /* @__PURE__ */ o(s, { id: "radio-buttons-group-label", children: "Label" }),
7
+ /* @__PURE__ */ t(
8
+ n,
105
9
  {
106
10
  "aria-labelledby": "radio-buttons-group-label",
107
11
  defaultValue: "first",
108
12
  name: "radio-buttons-group",
109
- ...r,
13
+ ...l,
110
14
  children: [
111
- /* @__PURE__ */ o(d, { value: "first", control: /* @__PURE__ */ o(c, {}), label: "First" }),
112
- /* @__PURE__ */ o(d, { value: "second", control: /* @__PURE__ */ o(c, {}), label: "Second" }),
113
- /* @__PURE__ */ o(d, { value: "third", control: /* @__PURE__ */ o(c, {}), label: "Third" })
15
+ /* @__PURE__ */ o(r, { value: "first", control: /* @__PURE__ */ o(a, {}), label: "First" }),
16
+ /* @__PURE__ */ o(r, { value: "second", control: /* @__PURE__ */ o(a, {}), label: "Second" }),
17
+ /* @__PURE__ */ o(r, { value: "third", control: /* @__PURE__ */ o(a, {}), label: "Third" })
114
18
  ]
115
19
  }
116
20
  )
117
- ] }), W = {
21
+ ] }), c = {
118
22
  title: "Components/RadioGroup",
119
- component: E
120
- }, X = {
23
+ component: i
24
+ }, p = {
121
25
  args: {
122
26
  row: !1
123
27
  }
124
- }, Y = {
28
+ }, f = {
125
29
  args: {
126
30
  row: !0
127
31
  }
128
32
  };
129
33
  export {
130
- X as Default,
131
- Y as Row,
132
- W as default
34
+ p as Default,
35
+ f as Row,
36
+ c as default
133
37
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),c=require("../ResourceCard/ResourceCard.cjs.js"),o=require("../../createSvgIcon-CWNQW6u6.cjs"),r=require("@mui/material"),s=o.createSvgIcon(e.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),i=o.createSvgIcon(e.jsx("path",{d:"M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-6 16h-2v-2h2zm2.07-7.75-.9.92C13.45 11.9 13 12.5 13 14h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"LiveHelp"),l=o.createSvgIcon(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public"),a=o.createSvgIcon(e.jsx("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),n={title:"Components/ResourceCard",component:c,argTypes:{title:{description:"Titre de la carte.",control:"text",table:{type:{summary:"string"}},required:!0},defaultImage:{description:"Image par défaut => Logo de l'application",control:"text",table:{type:{summary:"string"}},required:!0},isSelected:{description:"Indique si la carte est sélectionnée.",control:"boolean",table:{type:{summary:"boolean"},defaultValue:{summary:"false"}}},onSelect:{description:"Callback déclenché lorsque l'utilisateur sélectionne la carte.",action:"card-selected",table:{type:{summary:"() => void"}}},image:{description:"URL de l'image affichée sur la carte.",control:"text",table:{type:{summary:"string"}}},propertyItems:{description:"Liste des propriétés affichées sous le titre.",control:"object",table:{type:{summary:"PropertyItem[{text: Typography, icon: MuiIcon}]"}}},infoIcons:{description:"Liste des icônes d'information affichées dans la carte. (3 maximums)",control:"object",table:{type:{summary:"InfoItem[{text: string, icon: MuiIcon}]"}}},size:{description:"Taille de la carte (petite ou moyenne).",control:"radio",options:["sm","md"],table:{type:{summary:'"sm" | "md"'},defaultValue:{summary:"md"}}},width:{description:"Largeur de la carte.",control:"text",table:{type:{summary:"string"},defaultValue:{summary:"320px"}}}}},t={args:{isSelected:!1,image:"https://dummyimage.com/600x400/000/fff.png&text=flashquizz",defaultImage:"https://flashquizz-dev.support-ent.fr/images/logo.svg",title:"Titre de la Ressource tres loooooooooooooooooooooooooooooooooooooooooooooooooooooong",propertyItems:[{text:e.jsx(r.Typography,{color:"text.primary",children:"0 questions"}),icon:e.jsx(i,{color:"primary"})},{text:e.jsx(r.Typography,{color:"text.primary",children:"27 septembre 2025"}),icon:e.jsx(s,{color:"primary"})}],infoIcons:[{text:"Information 1",icon:e.jsx(l,{color:"primary"})},{text:"Information 2",icon:e.jsx(a,{color:"primary"})},{text:"Information 3",icon:e.jsx(a,{color:"primary"})}],size:"md",onSelect:()=>{console.log("Carte sélectionnée !")},onClick:()=>{console.log("Select all")}}},m={args:{...t.args,isSelected:!0,title:"Carte Sélectionnée"}},d={args:{...t.args,size:"sm",title:"Petite Carte"}},u={args:{...t.args,title:"Pas d'image",image:void 0}};exports.Default=t;exports.NoImage=u;exports.Selected=m;exports.Small=d;exports.default=n;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),o=require("../../createSvgIcon-DKtSalut.cjs"),r=require("@mui/material"),c=require("../ResourceCard/ResourceCard.cjs.js"),s=o.createSvgIcon(e.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),i=o.createSvgIcon(e.jsx("path",{d:"M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-6 16h-2v-2h2zm2.07-7.75-.9.92C13.45 11.9 13 12.5 13 14h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"LiveHelp"),l=o.createSvgIcon(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public"),a=o.createSvgIcon(e.jsx("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),n={title:"Components/ResourceCard",component:c,argTypes:{title:{description:"Titre de la carte.",control:"text",table:{type:{summary:"string"}},required:!0},defaultImage:{description:"Image par défaut => Logo de l'application",control:"text",table:{type:{summary:"string"}},required:!0},isSelected:{description:"Indique si la carte est sélectionnée.",control:"boolean",table:{type:{summary:"boolean"},defaultValue:{summary:"false"}}},onSelect:{description:"Callback déclenché lorsque l'utilisateur sélectionne la carte.",action:"card-selected",table:{type:{summary:"() => void"}}},image:{description:"URL de l'image affichée sur la carte.",control:"text",table:{type:{summary:"string"}}},propertyItems:{description:"Liste des propriétés affichées sous le titre.",control:"object",table:{type:{summary:"PropertyItem[{text: Typography, icon: MuiIcon}]"}}},infoIcons:{description:"Liste des icônes d'information affichées dans la carte. (3 maximums)",control:"object",table:{type:{summary:"InfoItem[{text: string, icon: MuiIcon}]"}}},size:{description:"Taille de la carte (petite ou moyenne).",control:"radio",options:["sm","md"],table:{type:{summary:'"sm" | "md"'},defaultValue:{summary:"md"}}},width:{description:"Largeur de la carte.",control:"text",table:{type:{summary:"string"},defaultValue:{summary:"320px"}}}}},t={args:{isSelected:!1,image:"https://dummyimage.com/600x400/000/fff.png&text=flashquizz",defaultImage:"https://flashquizz-dev.support-ent.fr/images/logo.svg",title:"Titre de la Ressource tres loooooooooooooooooooooooooooooooooooooooooooooooooooooong",propertyItems:[{text:e.jsx(r.Typography,{color:"text.primary",children:"0 questions"}),icon:e.jsx(i,{color:"primary"})},{text:e.jsx(r.Typography,{color:"text.primary",children:"27 septembre 2025"}),icon:e.jsx(s,{color:"primary"})}],infoIcons:[{text:"Information 1",icon:e.jsx(l,{color:"primary"})},{text:"Information 2",icon:e.jsx(a,{color:"primary"})},{text:"Information 3",icon:e.jsx(a,{color:"primary"})}],size:"md",onSelect:()=>{console.log("Carte sélectionnée !")},onClick:()=>{console.log("Select all")}}},m={args:{...t.args,isSelected:!0,title:"Carte Sélectionnée"}},d={args:{...t.args,size:"sm",title:"Petite Carte"}},u={args:{...t.args,title:"Pas d'image",image:void 0}};exports.Default=t;exports.NoImage=u;exports.Selected=m;exports.Small=d;exports.default=n;
@@ -1,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import c from "../ResourceCard/ResourceCard.es.js";
3
- import { c as e } from "../../createSvgIcon-Cd6y8E9W.js";
2
+ import { c as e } from "../../createSvgIcon-CIearCnQ.js";
4
3
  import { Typography as r } from "@mui/material";
4
+ import c from "../ResourceCard/ResourceCard.es.js";
5
5
  const i = e(/* @__PURE__ */ o("path", {
6
6
  d: "M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"
7
7
  }), "CalendarToday"), s = e(/* @__PURE__ */ o("path", {
@@ -91,8 +91,14 @@ const i = e(/* @__PURE__ */ o("path", {
91
91
  defaultImage: "https://flashquizz-dev.support-ent.fr/images/logo.svg",
92
92
  title: "Titre de la Ressource tres loooooooooooooooooooooooooooooooooooooooooooooooooooooong",
93
93
  propertyItems: [
94
- { text: /* @__PURE__ */ o(r, { color: "text.primary", children: "0 questions" }), icon: /* @__PURE__ */ o(s, { color: "primary" }) },
95
- { text: /* @__PURE__ */ o(r, { color: "text.primary", children: "27 septembre 2025" }), icon: /* @__PURE__ */ o(i, { color: "primary" }) }
94
+ {
95
+ text: /* @__PURE__ */ o(r, { color: "text.primary", children: "0 questions" }),
96
+ icon: /* @__PURE__ */ o(s, { color: "primary" })
97
+ },
98
+ {
99
+ text: /* @__PURE__ */ o(r, { color: "text.primary", children: "27 septembre 2025" }),
100
+ icon: /* @__PURE__ */ o(i, { color: "primary" })
101
+ }
96
102
  ],
97
103
  infoIcons: [
98
104
  { text: "Information 1", icon: /* @__PURE__ */ o(l, { color: "primary" }) },
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),d=require("react"),u=require("../../FormLabel-CtCBcJ-1.cjs"),l=require("../../Select-DtrvYyJ3.cjs"),t=require("../../MenuItem-CNUAbgnE.cjs"),c=n=>{const[a,s]=d.useState("pending"),i=r=>s(r.target.value);return e.jsxs(u.FormControl,{variant:n.variant,sx:{width:"10rem"},children:[e.jsx(l.InputLabel,{id:"simple-select-label",children:"Status"}),e.jsxs(l.Select,{labelId:"simple-select-label",id:"simple-select",value:a,label:"Status",onChange:i,...n,children:[e.jsx(t.MenuItem,{value:"pending",children:"Pending"}),e.jsx(t.MenuItem,{value:"ongoing",children:"Ongoing"}),e.jsx(t.MenuItem,{value:"validated",children:"Validated"}),e.jsx(t.MenuItem,{value:"rejected",children:"Rejected"})]})]})},o={title:"Components/Select",component:c},g={args:{}},m={args:{variant:"filled"}},v={args:{variant:"standard"}},S={args:{disabled:!0}};exports.Default=g;exports.Disabled=S;exports.Filled=m;exports.Standard=v;exports.default=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),d=require("react"),u=require("../../FormLabel-CtCBcJ-1.cjs"),l=require("../../Select-Bm-ZcxRN.cjs"),t=require("../../MenuItem-DuLNR389.cjs"),c=n=>{const[a,s]=d.useState("pending"),i=r=>s(r.target.value);return e.jsxs(u.FormControl,{variant:n.variant,sx:{width:"10rem"},children:[e.jsx(l.InputLabel,{id:"simple-select-label",children:"Status"}),e.jsxs(l.Select,{labelId:"simple-select-label",id:"simple-select",value:a,label:"Status",onChange:i,...n,children:[e.jsx(t.MenuItem,{value:"pending",children:"Pending"}),e.jsx(t.MenuItem,{value:"ongoing",children:"Ongoing"}),e.jsx(t.MenuItem,{value:"validated",children:"Validated"}),e.jsx(t.MenuItem,{value:"rejected",children:"Rejected"})]})]})},o={title:"Components/Select",component:c},g={args:{}},m={args:{variant:"filled"}},v={args:{variant:"standard"}},S={args:{disabled:!0}};exports.Default=g;exports.Disabled=S;exports.Filled=m;exports.Standard=v;exports.default=o;