@cgi-learning-hub/ui 1.3.4-dev.1733150814 → 1.3.4-dev.1734088767

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 (234) hide show
  1. package/dist/Backdrop-DqUdx8FP.cjs +1 -0
  2. package/dist/{Backdrop-BlKt7y1x.js → Backdrop-ZqzrnV2E.js} +5 -5
  3. package/dist/Box-Be6jhcmK.cjs +1 -0
  4. package/dist/{Box-DErdbtsw.js → Box-DN_2fcm9.js} +3 -3
  5. package/dist/Button-C6UXybBV.cjs +1 -0
  6. package/dist/{Button-CiqVGfRs.js → Button-CL9rFoOY.js} +151 -117
  7. package/dist/{ButtonBase-DUPJVOlc.js → ButtonBase-CYkLbJ0U.js} +5 -5
  8. package/dist/{ButtonBase-BoWeLMzR.cjs → ButtonBase-DzK1n18b.cjs} +3 -3
  9. package/dist/{Card-mGRk1RuE.js → Card-DO4cAmNC.js} +3 -3
  10. package/dist/Card-DsmqVSx1.cjs +1 -0
  11. package/dist/Checkbox-Btg05OjV.cjs +1 -0
  12. package/dist/{Checkbox-aJ1r7ufI.js → Checkbox-CLM5GjuC.js} +23 -22
  13. package/dist/CircularProgress-BfbGcmHT.cjs +28 -0
  14. package/dist/{CircularProgress-CfODO7vI.js → CircularProgress-C4xtwh4E.js} +14 -13
  15. package/dist/DatePicker-BXTOQETi.cjs +14 -0
  16. package/dist/{DatePicker-Dyf9Vhld.js → DatePicker-D9suyaUZ.js} +537 -536
  17. package/dist/DefaultPropsProvider-DE-Tx_ov.cjs +17 -0
  18. package/dist/DefaultPropsProvider-DUWovK-8.js +454 -0
  19. package/dist/{Delete-DyzDL8-Y.cjs → Delete-CpADFuIX.cjs} +1 -1
  20. package/dist/{Delete-BOQTx9ze.js → Delete-DWXEW4-c.js} +1 -1
  21. package/dist/{DialogContent-D1KFPXhr.js → DialogContent-D_JmqJt6.js} +30 -29
  22. package/dist/DialogContent-gRISmOoj.cjs +1 -0
  23. package/dist/{DialogTitle-AQ-YU9PH.js → DialogTitle-CID6RFNo.js} +4 -4
  24. package/dist/DialogTitle-Dhxh1DVb.cjs +1 -0
  25. package/dist/Divider-BjxxEFnr.cjs +1 -0
  26. package/dist/{Divider-C0R1SUa4.js → Divider-HhF8ckeh.js} +4 -4
  27. package/dist/{FormControlLabel-w-X91z27.js → FormControlLabel-0-cflTuo.js} +13 -12
  28. package/dist/FormControlLabel-C-eZV5Xc.cjs +1 -0
  29. package/dist/FormGroup-Ck7StJ6i.cjs +1 -0
  30. package/dist/{FormGroup-6NoANcYk.js → FormGroup-DIP4u-gv.js} +2 -2
  31. package/dist/FormLabel-Ch103TK-.cjs +2 -0
  32. package/dist/{FormLabel-CoLJ9tA8.js → FormLabel-X7FN1eBV.js} +6 -5
  33. package/dist/{Grow-SW33sONG.js → Grow-BgMSa0P2.js} +4 -4
  34. package/dist/Grow-D7OAahbU.cjs +1 -0
  35. package/dist/{IconButton-DjeMTpI5.js → IconButton-CMwpC2Co.js} +9 -8
  36. package/dist/IconButton-DbWtCGLB.cjs +2 -0
  37. package/dist/{InputAdornment-ByiVSgFT.js → InputAdornment-B4hI0-Jz.js} +9 -8
  38. package/dist/InputAdornment-Cl2OaKlw.cjs +1 -0
  39. package/dist/InputBase-BuVAuMNp.cjs +3 -0
  40. package/dist/{InputBase-CvU0-Zg6.js → InputBase-DrofJ7xL.js} +23 -22
  41. package/dist/Link-AXhb0uJT.cjs +1 -0
  42. package/dist/{Link-Dmwt9wxb.js → Link-Bdupo_fW.js} +11 -10
  43. package/dist/{Menu-4U27Dst1.js → Menu-DR-xtxpt.js} +27 -26
  44. package/dist/{Menu-DREdNbqu.cjs → Menu-_chQG-Za.cjs} +6 -6
  45. package/dist/{MenuItem-CqPsuuC1.js → MenuItem-C_d0Sc_L.js} +7 -7
  46. package/dist/MenuItem-De6eStq9.cjs +1 -0
  47. package/dist/{Modal-D_mqYIr2.js → Modal-C4Jb6sd1.js} +9 -9
  48. package/dist/Modal-GXSEk85U.cjs +2 -0
  49. package/dist/Paper-CH4BABUB.cjs +2 -0
  50. package/dist/{Paper-D973Ow-i.js → Paper-nlWPEgQh.js} +4 -4
  51. package/dist/Popper-CjTplNLW.cjs +4 -0
  52. package/dist/{Popper-B8oNZqtn.js → Popper-CkAj_qw_.js} +5 -5
  53. package/dist/{Portal-BKbBRbWN.js → Portal-BcFwfiTx.js} +3 -3
  54. package/dist/Portal-BruYsISj.cjs +1 -0
  55. package/dist/{Radio-BrzQH9pY.js → Radio-B0v6nDvz.js} +16 -15
  56. package/dist/Radio-BbZnB74m.cjs +1 -0
  57. package/dist/Select-BFGwwKap.cjs +3 -0
  58. package/dist/{Select-CgAPAUTr.js → Select-D9fwtA9U.js} +62 -60
  59. package/dist/{Stack-CYXQpKS2.js → Stack-C1i6_V9e.js} +105 -60
  60. package/dist/Stack-DMNZvXss.cjs +1 -0
  61. package/dist/SwitchBase-BpMNk4XV.cjs +1 -0
  62. package/dist/{SwitchBase-CGa9A6SL.js → SwitchBase-DfbwljzN.js} +23 -22
  63. package/dist/{TableSortLabel-hvz89Dvu.js → TableSortLabel-DwnLOHOy.js} +1238 -1225
  64. package/dist/TableSortLabel-lnTBXy-V.cjs +98 -0
  65. package/dist/{Tabs-BPI2IyPx.js → Tabs-BoFP2RHv.js} +200 -198
  66. package/dist/Tabs-DEvwJheI.cjs +4 -0
  67. package/dist/{TextField-C4nIxR_t.js → TextField-kwhzNVAL.js} +20 -19
  68. package/dist/TextField-waKWSLD4.cjs +1 -0
  69. package/dist/Tooltip-CFyOA9CT.cjs +4 -0
  70. package/dist/{Tooltip-Bdrv-e2a.js → Tooltip-tgkiC77d.js} +31 -30
  71. package/dist/Typography-B6KFjCtE.cjs +1 -0
  72. package/dist/{Typography-CUdlQxLM.js → Typography-DWXYj92v.js} +13 -12
  73. package/dist/capitalize-DASFtB-F.cjs +1 -0
  74. package/dist/capitalize-NmHVRYy8.js +9 -0
  75. package/dist/components/Button/Button.cjs.js +1 -1
  76. package/dist/components/Button/Button.es.js +22 -21
  77. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  78. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  79. package/dist/components/DatePicker/index.cjs.js +1 -1
  80. package/dist/components/DatePicker/index.es.js +1 -1
  81. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  82. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  83. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  84. package/dist/components/EmptyState/EmptyState.es.js +2 -2
  85. package/dist/components/FileList/FileList.cjs.js +1 -1
  86. package/dist/components/FileList/FileList.es.js +1 -1
  87. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  88. package/dist/components/FileList/FileListItem.es.js +7 -7
  89. package/dist/components/Heading/Heading.cjs.js +1 -1
  90. package/dist/components/Heading/Heading.es.js +2 -2
  91. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
  92. package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
  93. package/dist/components/Loader/Loader.cjs.js +1 -1
  94. package/dist/components/Loader/Loader.es.js +1 -1
  95. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  96. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  97. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  98. package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
  99. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  100. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  101. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  102. package/dist/components/TextInput/TextInput.es.js +1 -1
  103. package/dist/components/index.cjs.js +1 -1
  104. package/dist/components/index.d.ts +3 -1
  105. package/dist/components/index.es.js +144 -142
  106. package/dist/components/stories/Button.stories.cjs.js +1 -1
  107. package/dist/components/stories/Button.stories.es.js +1 -1
  108. package/dist/components/stories/Card.stories.cjs.js +1 -1
  109. package/dist/components/stories/Card.stories.es.js +4 -4
  110. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  111. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  112. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  113. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  114. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  115. package/dist/components/stories/Dialog.stories.es.js +2 -2
  116. package/dist/components/stories/Divider.stories.cjs.js +1 -1
  117. package/dist/components/stories/Divider.stories.es.js +1 -1
  118. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
  119. package/dist/components/stories/FormControlLabel.stories.es.js +25 -24
  120. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  121. package/dist/components/stories/Heading.stories.es.js +2 -2
  122. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  123. package/dist/components/stories/IconButton.stories.es.js +2 -2
  124. package/dist/components/stories/Link.stories.cjs.js +1 -1
  125. package/dist/components/stories/Link.stories.es.js +1 -1
  126. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  127. package/dist/components/stories/Menu.stories.es.js +2 -2
  128. package/dist/components/stories/Paper.stories.cjs.js +1 -1
  129. package/dist/components/stories/Paper.stories.es.js +1 -1
  130. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  131. package/dist/components/stories/RadioGroup.stories.es.js +6 -6
  132. package/dist/components/stories/Select.stories.cjs.js +1 -1
  133. package/dist/components/stories/Select.stories.es.js +3 -3
  134. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  135. package/dist/components/stories/TabList.stories.es.js +4 -4
  136. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  137. package/dist/components/stories/TextField.stories.es.js +1 -1
  138. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  139. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  140. package/dist/components/stories/Typography.stories.cjs.js +1 -1
  141. package/dist/components/stories/Typography.stories.es.js +1 -1
  142. package/dist/{createSvgIcon-CVd3Lo1D.js → createSvgIcon-CeuAoIMQ.js} +6 -5
  143. package/dist/createSvgIcon-eUfAcV0x.cjs +1 -0
  144. package/dist/dividerClasses-CSD96RzX.cjs +1 -0
  145. package/dist/{dividerClasses-kN_Ky2Bl.js → dividerClasses-DrJ5oIdP.js} +1 -1
  146. package/dist/elementTypeAcceptingRef-Cz_FeG92.cjs +1 -0
  147. package/dist/{elementTypeAcceptingRef-modXfN2G.js → elementTypeAcceptingRef-HBfwF2vD.js} +1 -1
  148. package/dist/extendSxProp-Fr1MMO0I.cjs +1 -0
  149. package/dist/{extendSxProp-CHv0k-C6.js → extendSxProp-NjjUyYdB.js} +1 -1
  150. package/dist/{identifier-Bn0tF6ls.js → generateUtilityClasses--6MLb_cS.js} +867 -837
  151. package/dist/generateUtilityClasses-DEQ18TAF.cjs +59 -0
  152. package/dist/{index-CVpJYeY2.js → index-B4GmPutS.js} +6 -5
  153. package/dist/{index-BNojWn2E.js → index-BGCIdIru.js} +29 -29
  154. package/dist/index-BoQHt8iN.cjs +1 -0
  155. package/dist/index-CRdsZkOC.cjs +17 -0
  156. package/dist/index-CmEzEdk2.cjs +5 -0
  157. package/dist/index-XYfXmNqA.js +186 -0
  158. package/dist/index.cjs.js +1 -1
  159. package/dist/index.es.js +144 -142
  160. package/dist/{memoTheme-BPA1FjB4.cjs → memoTheme-D99chbOP.cjs} +1 -1
  161. package/dist/{memoTheme-CMJVTZEg.js → memoTheme-o8RCKrNG.js} +1 -1
  162. package/dist/mergeSlotProps-DSv3FKLb.cjs +1 -0
  163. package/dist/{resolveComponentProps-DHoZOPOi.js → mergeSlotProps-KHPCviGJ.js} +7 -7
  164. package/dist/useEnhancedEffect-C9MKL5N4.cjs +1 -0
  165. package/dist/useEnhancedEffect-DlS7O_-p.js +7 -0
  166. package/dist/useSlot-DsW0udy9.cjs +1 -0
  167. package/dist/{useSlot-t9oGnIgq.js → useSlot-eWxwpnv1.js} +1 -1
  168. package/dist/useSlotProps--FPRW1CI.cjs +1 -0
  169. package/dist/{index-waINWr3i.js → useSlotProps-C7zjg7t9.js} +26 -26
  170. package/dist/useTheme-B1YEBlI0.cjs +1 -0
  171. package/dist/useTheme-BXzyKigM.js +11 -0
  172. package/dist/{useTheme-CBsFvF7I.js → useTheme-D0ITn2Re.js} +1 -1
  173. package/dist/useTheme-DFJNv-zn.cjs +1 -0
  174. package/dist/useThemeProps-BwyYDczI.cjs +1 -0
  175. package/dist/{useThemeProps-5Bku71LW.js → useThemeProps-DrCROxdY.js} +2 -2
  176. package/dist/{useThemeProps-I9EHeqzU.js → useThemeProps-DsDeaP0E.js} +3 -3
  177. package/dist/{useThemeProps-C692LOYf.cjs → useThemeProps-j-HQOOfB.cjs} +1 -1
  178. package/dist/{useTimeout-3Y5y4gWq.js → useTimeout-FkIxJmTC.js} +1 -1
  179. package/dist/useTimeout-NIA-3R5R.cjs +1 -0
  180. package/dist/{utils-CE_a8glN.js → utils-70jLtOQP.js} +41 -41
  181. package/dist/utils-DlWHEABQ.cjs +1 -0
  182. package/package.json +1 -1
  183. package/dist/Backdrop-vSE8W9jq.cjs +0 -1
  184. package/dist/Box-DMYs7NTb.cjs +0 -1
  185. package/dist/Button-D3dbHQM1.cjs +0 -1
  186. package/dist/Card-Cnh4u4kb.cjs +0 -1
  187. package/dist/Checkbox-s_RdgUlw.cjs +0 -1
  188. package/dist/CircularProgress-DHgcUb1c.cjs +0 -28
  189. package/dist/DatePicker-juzW4bLC.cjs +0 -14
  190. package/dist/DefaultPropsProvider-Biv7NHew.cjs +0 -17
  191. package/dist/DefaultPropsProvider-xJkZOrdv.js +0 -487
  192. package/dist/DialogContent-Dphl2SKX.cjs +0 -1
  193. package/dist/DialogTitle-C8AdXsDz.cjs +0 -1
  194. package/dist/Divider-Bdp8beK-.cjs +0 -1
  195. package/dist/FormControlLabel-BlO93LTi.cjs +0 -1
  196. package/dist/FormGroup-D0zSGn42.cjs +0 -1
  197. package/dist/FormLabel-BkiH7wl7.cjs +0 -2
  198. package/dist/Grow-DfACa72Q.cjs +0 -1
  199. package/dist/IconButton-DRs0xB4z.cjs +0 -2
  200. package/dist/InputAdornment-B1pggfEX.cjs +0 -1
  201. package/dist/InputBase-Xfjv-RYp.cjs +0 -3
  202. package/dist/Link-Z_UCBvgV.cjs +0 -1
  203. package/dist/MenuItem-CN75Du-9.cjs +0 -1
  204. package/dist/Modal-DWqBsogu.cjs +0 -2
  205. package/dist/Paper-CjMuucS5.cjs +0 -2
  206. package/dist/Popper-hzM0y1hA.cjs +0 -4
  207. package/dist/Portal-Bv2VRYHH.cjs +0 -1
  208. package/dist/Radio-DxbXYNhR.cjs +0 -1
  209. package/dist/Select-CL4E8NNL.cjs +0 -3
  210. package/dist/Stack-WrITLr1B.cjs +0 -1
  211. package/dist/SwitchBase-Cqh9rxOh.cjs +0 -1
  212. package/dist/TableSortLabel-mAzX4tAl.cjs +0 -98
  213. package/dist/Tabs-BNqwYd2G.cjs +0 -4
  214. package/dist/TextField-Dy0Iblqt.cjs +0 -1
  215. package/dist/Tooltip-vg27N3PU.cjs +0 -4
  216. package/dist/Typography-BF9bdWxl.cjs +0 -1
  217. package/dist/createSvgIcon-BMmqQ2z0.cjs +0 -1
  218. package/dist/dividerClasses-CyDs_RPD.cjs +0 -1
  219. package/dist/elementTypeAcceptingRef-5w32V5hP.cjs +0 -1
  220. package/dist/extendSxProp-6YOo46ig.cjs +0 -1
  221. package/dist/identifier-Dax8VlUh.cjs +0 -59
  222. package/dist/index-C5dNuV-2.cjs +0 -5
  223. package/dist/index-D3PBNx_m.cjs +0 -1
  224. package/dist/index-OLlWw08I.cjs +0 -1
  225. package/dist/refType-BmrOFNz6.js +0 -7
  226. package/dist/refType-Dm84STBj.cjs +0 -1
  227. package/dist/resolveComponentProps-4nhUsl3a.cjs +0 -1
  228. package/dist/useSlot-CJAXUvYJ.cjs +0 -1
  229. package/dist/useTheme-BIogn5Me.cjs +0 -1
  230. package/dist/useTheme-Bz4LKMiC.cjs +0 -1
  231. package/dist/useTheme-L3EQmvnN.js +0 -11
  232. package/dist/useThemeProps-DNFKz8wS.cjs +0 -1
  233. package/dist/useTimeout-CxOQget6.cjs +0 -1
  234. package/dist/utils-CusX8Edy.cjs +0 -1
@@ -1,65 +1,110 @@
1
- import { P as e, M as V, S as g, U as f, V as C, W as D, X as R, G as N, H as E, Y as b } from "./identifier-Bn0tF6ls.js";
2
- import { b as F, c as M, s as B, u as G } from "./DefaultPropsProvider-xJkZOrdv.js";
1
+ import { P as e, M as P, S as b, U as f, V as N, W as D, X as G, G as R, Y as O } from "./generateUtilityClasses--6MLb_cS.js";
2
+ import { b as M, s as $, u as E } from "./DefaultPropsProvider-DUWovK-8.js";
3
3
  import * as m from "react";
4
- import { jsx as w } from "react/jsx-runtime";
5
- import { e as U } from "./extendSxProp-CHv0k-C6.js";
6
- import { u as $ } from "./useThemeProps-5Bku71LW.js";
7
- const A = F(), _ = V(), H = A("div", {
4
+ import { jsx as F } from "react/jsx-runtime";
5
+ import { e as B } from "./extendSxProp-NjjUyYdB.js";
6
+ import { u as w } from "./useThemeProps-DrCROxdY.js";
7
+ const T = (o) => o, U = () => {
8
+ let o = T;
9
+ return {
10
+ configure(r) {
11
+ o = r;
12
+ },
13
+ generate(r) {
14
+ return o(r);
15
+ },
16
+ reset() {
17
+ o = T;
18
+ }
19
+ };
20
+ }, q = U(), A = {
21
+ active: "active",
22
+ checked: "checked",
23
+ completed: "completed",
24
+ disabled: "disabled",
25
+ error: "error",
26
+ expanded: "expanded",
27
+ focused: "focused",
28
+ focusVisible: "focusVisible",
29
+ open: "open",
30
+ readOnly: "readOnly",
31
+ required: "required",
32
+ selected: "selected"
33
+ };
34
+ function _(o, r, t = "Mui") {
35
+ const n = A[r];
36
+ return n ? `${t}-${n}` : `${q.generate(o)}-${r}`;
37
+ }
38
+ const I = M();
39
+ function L(o, r, t = void 0) {
40
+ const n = {};
41
+ for (const i in o) {
42
+ const a = o[i];
43
+ let l = "", u = !0;
44
+ for (let s = 0; s < a.length; s += 1) {
45
+ const c = a[s];
46
+ c && (l += (u === !0 ? "" : " ") + r(c), u = !1, t && t[c] && (l += " " + t[c]));
47
+ }
48
+ n[i] = l;
49
+ }
50
+ return n;
51
+ }
52
+ const W = P(), X = I("div", {
8
53
  name: "MuiStack",
9
54
  slot: "Root",
10
55
  overridesResolver: (o, r) => r.root
11
56
  });
12
- function I(o) {
13
- return $({
57
+ function Y(o) {
58
+ return w({
14
59
  props: o,
15
60
  name: "MuiStack",
16
- defaultTheme: _
61
+ defaultTheme: W
17
62
  });
18
63
  }
19
- function L(o, r) {
20
- const c = m.Children.toArray(o).filter(Boolean);
21
- return c.reduce((a, i, n) => (a.push(i), n < c.length - 1 && a.push(/* @__PURE__ */ m.cloneElement(r, {
22
- key: `separator-${n}`
23
- })), a), []);
64
+ function z(o, r) {
65
+ const t = m.Children.toArray(o).filter(Boolean);
66
+ return t.reduce((n, i, a) => (n.push(i), a < t.length - 1 && n.push(/* @__PURE__ */ m.cloneElement(r, {
67
+ key: `separator-${a}`
68
+ })), n), []);
24
69
  }
25
- const W = (o) => ({
70
+ const H = (o) => ({
26
71
  row: "Left",
27
72
  "row-reverse": "Right",
28
73
  column: "Top",
29
74
  "column-reverse": "Bottom"
30
- })[o], X = ({
75
+ })[o], J = ({
31
76
  ownerState: o,
32
77
  theme: r
33
78
  }) => {
34
- let c = {
79
+ let t = {
35
80
  display: "flex",
36
81
  flexDirection: "column",
37
- ...g({
82
+ ...b({
38
83
  theme: r
39
84
  }, f({
40
85
  values: o.direction,
41
86
  breakpoints: r.breakpoints.values
42
- }), (a) => ({
43
- flexDirection: a
87
+ }), (n) => ({
88
+ flexDirection: n
44
89
  }))
45
90
  };
46
91
  if (o.spacing) {
47
- const a = C(r), i = Object.keys(r.breakpoints.values).reduce((s, t) => ((typeof o.spacing == "object" && o.spacing[t] != null || typeof o.direction == "object" && o.direction[t] != null) && (s[t] = !0), s), {}), n = f({
92
+ const n = N(r), i = Object.keys(r.breakpoints.values).reduce((s, c) => ((typeof o.spacing == "object" && o.spacing[c] != null || typeof o.direction == "object" && o.direction[c] != null) && (s[c] = !0), s), {}), a = f({
48
93
  values: o.direction,
49
94
  base: i
50
95
  }), l = f({
51
96
  values: o.spacing,
52
97
  base: i
53
98
  });
54
- typeof n == "object" && Object.keys(n).forEach((s, t, p) => {
55
- if (!n[s]) {
56
- const u = t > 0 ? n[p[t - 1]] : "column";
57
- n[s] = u;
99
+ typeof a == "object" && Object.keys(a).forEach((s, c, p) => {
100
+ if (!a[s]) {
101
+ const d = c > 0 ? a[p[c - 1]] : "column";
102
+ a[s] = d;
58
103
  }
59
- }), c = D(c, g({
104
+ }), t = D(t, b({
60
105
  theme: r
61
- }, l, (s, t) => o.useFlexGap ? {
62
- gap: b(a, s)
106
+ }, l, (s, c) => o.useFlexGap ? {
107
+ gap: O(n, s)
63
108
  } : {
64
109
  // The useFlexGap={false} implement relies on each child to give up control of the margin.
65
110
  // We need to reset the margin to avoid double spacing.
@@ -67,42 +112,42 @@ const W = (o) => ({
67
112
  margin: 0
68
113
  },
69
114
  "& > :not(style) ~ :not(style)": {
70
- [`margin${W(t ? n[t] : o.direction)}`]: b(a, s)
115
+ [`margin${H(c ? a[c] : o.direction)}`]: O(n, s)
71
116
  }
72
117
  }));
73
118
  }
74
- return c = R(r.breakpoints, c), c;
119
+ return t = G(r.breakpoints, t), t;
75
120
  };
76
- function Y(o = {}) {
121
+ function K(o = {}) {
77
122
  const {
78
123
  // This will allow adding custom styled fn (for example for custom sx style function)
79
- createStyledComponent: r = H,
80
- useThemeProps: c = I,
81
- componentName: a = "MuiStack"
82
- } = o, i = () => M({
124
+ createStyledComponent: r = X,
125
+ useThemeProps: t = Y,
126
+ componentName: n = "MuiStack"
127
+ } = o, i = () => L({
83
128
  root: ["root"]
84
- }, (s) => E(a, s), {}), n = r(X), l = /* @__PURE__ */ m.forwardRef(function(s, t) {
85
- const p = c(s), y = U(p), {
86
- component: u = "div",
87
- direction: T = "column",
88
- spacing: h = 0,
129
+ }, (s) => _(n, s), {}), a = r(J), l = /* @__PURE__ */ m.forwardRef(function(s, c) {
130
+ const p = t(s), y = B(p), {
131
+ component: d = "div",
132
+ direction: h = "column",
133
+ spacing: k = 0,
89
134
  divider: v,
90
- children: O,
135
+ children: g,
91
136
  className: j,
92
- useFlexGap: k = !1,
93
- ...x
94
- } = y, P = {
95
- direction: T,
96
- spacing: h,
97
- useFlexGap: k
98
- }, S = i();
99
- return /* @__PURE__ */ w(n, {
100
- as: u,
101
- ownerState: P,
102
- ref: t,
103
- className: N(S.root, j),
104
- ...x,
105
- children: v ? L(O, v) : O
137
+ useFlexGap: x = !1,
138
+ ...C
139
+ } = y, S = {
140
+ direction: h,
141
+ spacing: k,
142
+ useFlexGap: x
143
+ }, V = i();
144
+ return /* @__PURE__ */ F(a, {
145
+ as: d,
146
+ ownerState: S,
147
+ ref: c,
148
+ className: R(V.root, j),
149
+ ...C,
150
+ children: v ? z(g, v) : g
106
151
  });
107
152
  });
108
153
  return process.env.NODE_ENV !== "production" && (l.propTypes = {
@@ -113,18 +158,18 @@ function Y(o = {}) {
113
158
  sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
114
159
  }), l;
115
160
  }
116
- const q = Y({
117
- createStyledComponent: B("div", {
161
+ const Q = K({
162
+ createStyledComponent: $("div", {
118
163
  name: "MuiStack",
119
164
  slot: "Root",
120
165
  overridesResolver: (o, r) => r.root
121
166
  }),
122
- useThemeProps: (o) => G({
167
+ useThemeProps: (o) => E({
123
168
  props: o,
124
169
  name: "MuiStack"
125
170
  })
126
171
  });
127
- process.env.NODE_ENV !== "production" && (q.propTypes = {
172
+ process.env.NODE_ENV !== "production" && (Q.propTypes = {
128
173
  // ┌────────────────────────────── Warning ──────────────────────────────┐
129
174
  // │ These PropTypes are generated from the TypeScript type definitions. │
130
175
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -169,5 +214,5 @@ process.env.NODE_ENV !== "production" && (q.propTypes = {
169
214
  useFlexGap: e.bool
170
215
  });
171
216
  export {
172
- q as S
217
+ Q as S
173
218
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./generateUtilityClasses-DEQ18TAF.cjs"),d=require("./DefaultPropsProvider-DE-Tx_ov.cjs"),C=require("react"),V=require("react/jsx-runtime"),D=require("./extendSxProp-Fr1MMO0I.cjs"),N=require("./useThemeProps-j-HQOOfB.cjs");function R(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 f=R(C),v=o=>o,q=()=>{let o=v;return{configure(r){o=r},generate(r){return o(r)},reset(){o=v}}},B=q(),G={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function M(o,r,s="Mui"){const t=G[r];return t?`${s}-${t}`:`${B.generate(o)}-${r}`}const $=d.createStyled();function E(o,r,s=void 0){const t={};for(const i in o){const c=o[i];let a="",l=!0;for(let n=0;n<c.length;n+=1){const p=c[n];p&&(a+=(l===!0?"":" ")+r(p),l=!1,s&&s[p]&&(a+=" "+s[p]))}t[i]=a}return t}const w=e.createTheme$1(),F=$("div",{name:"MuiStack",slot:"Root",overridesResolver:(o,r)=>r.root});function _(o){return N.useThemeProps({props:o,name:"MuiStack",defaultTheme:w})}function U(o,r){const s=f.Children.toArray(o).filter(Boolean);return s.reduce((t,i,c)=>(t.push(i),c<s.length-1&&t.push(f.cloneElement(r,{key:`separator-${c}`})),t),[])}const A=o=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[o],z=({ownerState:o,theme:r})=>{let s={display:"flex",flexDirection:"column",...e.handleBreakpoints({theme:r},e.resolveBreakpointValues({values:o.direction,breakpoints:r.breakpoints.values}),t=>({flexDirection:t}))};if(o.spacing){const t=e.createUnarySpacing(r),i=Object.keys(r.breakpoints.values).reduce((n,p)=>((typeof o.spacing=="object"&&o.spacing[p]!=null||typeof o.direction=="object"&&o.direction[p]!=null)&&(n[p]=!0),n),{}),c=e.resolveBreakpointValues({values:o.direction,base:i}),a=e.resolveBreakpointValues({values:o.spacing,base:i});typeof c=="object"&&Object.keys(c).forEach((n,p,u)=>{if(!c[n]){const y=p>0?c[u[p-1]]:"column";c[n]=y}});const l=(n,p)=>o.useFlexGap?{gap:e.getValue(t,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${A(p?c[p]:o.direction)}`]:e.getValue(t,n)}};s=e.deepmerge(s,e.handleBreakpoints({theme:r},a,l))}return s=e.mergeBreakpointsInOrder(r.breakpoints,s),s};function I(o={}){const{createStyledComponent:r=F,useThemeProps:s=_,componentName:t="MuiStack"}=o,i=()=>E({root:["root"]},n=>M(t,n),{}),c=r(z),a=f.forwardRef(function(n,p){const u=s(n),T=D.extendSxProp(u),{component:y="div",direction:b="column",spacing:O=0,divider:P,children:m,className:k,useFlexGap:h=!1,...j}=T,x={direction:b,spacing:O,useFlexGap:h},S=i();return V.jsx(c,{as:y,ownerState:x,ref:p,className:e.clsx(S.root,k),...j,children:P?U(m,P):m})});return process.env.NODE_ENV!=="production"&&(a.propTypes={children:e.PropTypes.node,direction:e.PropTypes.oneOfType([e.PropTypes.oneOf(["column-reverse","column","row-reverse","row"]),e.PropTypes.arrayOf(e.PropTypes.oneOf(["column-reverse","column","row-reverse","row"])),e.PropTypes.object]),divider:e.PropTypes.node,spacing:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string])),e.PropTypes.number,e.PropTypes.object,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])}),a}const g=I({createStyledComponent:d.styled("div",{name:"MuiStack",slot:"Root",overridesResolver:(o,r)=>r.root}),useThemeProps:o=>d.useDefaultProps({props:o,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(g.propTypes={children:e.PropTypes.node,component:e.PropTypes.elementType,direction:e.PropTypes.oneOfType([e.PropTypes.oneOf(["column-reverse","column","row-reverse","row"]),e.PropTypes.arrayOf(e.PropTypes.oneOf(["column-reverse","column","row-reverse","row"])),e.PropTypes.object]),divider:e.PropTypes.node,spacing:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string])),e.PropTypes.number,e.PropTypes.object,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]),useFlexGap:e.PropTypes.bool});exports.Stack=g;
@@ -0,0 +1 @@
1
+ "use strict";const M=require("react"),e=require("./generateUtilityClasses-DEQ18TAF.cjs"),l=require("./DefaultPropsProvider-DE-Tx_ov.cjs"),V=require("./useFormControl-haP0iPhl.cjs"),B=require("react/jsx-runtime"),$=require("./ButtonBase-DzK1n18b.cjs"),A=require("./useControlled-Ysk4KqoX.cjs"),G=require("./useEnhancedEffect-C9MKL5N4.cjs"),H=require("./capitalize-DASFtB-F.cjs");function J(o){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(s,r,a.get?a:{enumerable:!0,get:()=>o[r]})}}return s.default=o,Object.freeze(s)}const K=J(M);function Q(o){return e.generateUtilityClass("PrivateSwitchBase",o)}e.generateUtilityClasses("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const W=o=>{const{classes:s,checked:r,disabled:a,edge:i}=o,p={root:["root",r&&"checked",a&&"disabled",i&&`edge${H.capitalize(i)}`],input:["input"]};return l.composeClasses(p,Q,s)},X=l.styled($.ButtonBase)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:o,ownerState:s})=>o==="start"&&s.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:o,ownerState:s})=>o==="end"&&s.size!=="small",style:{marginRight:-12}}]}),Y=l.styled("input",{shouldForwardProp:l.rootShouldForwardProp})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),C=K.forwardRef(function(s,r){const{autoFocus:a,checked:i,checkedIcon:p,className:w,defaultChecked:f,disabled:F,disableFocusRipple:y=!1,edge:R=!1,icon:S,id:q,inputProps:x,inputRef:O,name:j,onBlur:h,onChange:b,onFocus:g,readOnly:I,required:v=!1,tabIndex:z,type:d,value:P,...N}=s,[m,E]=A.useControlled({controlled:i,default:!!f,name:"SwitchBase",state:"checked"}),n=V.useFormControl(),U=t=>{g&&g(t),n&&n.onFocus&&n.onFocus(t)},D=t=>{h&&h(t),n&&n.onBlur&&n.onBlur(t)},_=t=>{if(t.nativeEvent.defaultPrevented)return;const k=t.target.checked;E(k),b&&b(t,k)};let c=F;n&&typeof c>"u"&&(c=n.disabled);const L=d==="checkbox"||d==="radio",u={...s,checked:m,disabled:c,disableFocusRipple:y,edge:R},T=W(u);return B.jsxs(X,{component:"span",className:e.clsx(T.root,w),centerRipple:!0,focusRipple:!y,disabled:c,tabIndex:null,role:void 0,onFocus:U,onBlur:D,ownerState:u,ref:r,...N,children:[B.jsx(Y,{autoFocus:a,checked:i,defaultChecked:f,className:T.input,disabled:c,id:L?q:void 0,name:j,onChange:_,readOnly:I,ref:O,required:v,ownerState:u,tabIndex:z,type:d,...d==="checkbox"&&P===void 0?{}:{value:P},...x}),m?p:S]})});process.env.NODE_ENV!=="production"&&(C.propTypes={autoFocus:e.PropTypes.bool,checked:e.PropTypes.bool,checkedIcon:e.PropTypes.node.isRequired,classes:e.PropTypes.object,className:e.PropTypes.string,defaultChecked:e.PropTypes.bool,disabled:e.PropTypes.bool,disableFocusRipple:e.PropTypes.bool,edge:e.PropTypes.oneOf(["end","start",!1]),icon:e.PropTypes.node.isRequired,id:e.PropTypes.string,inputProps:e.PropTypes.object,inputRef:G.refType,name:e.PropTypes.string,onBlur:e.PropTypes.func,onChange:e.PropTypes.func,onFocus:e.PropTypes.func,readOnly:e.PropTypes.bool,required:e.PropTypes.bool,sx:e.PropTypes.object,tabIndex:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),type:e.PropTypes.string.isRequired,value:e.PropTypes.any});exports.SwitchBase=C;
@@ -1,11 +1,12 @@
1
1
  import * as D from "react";
2
- import { H as G, I as H, G as V, P as e, L as _ } from "./identifier-Bn0tF6ls.js";
3
- import { s as C, r as $, c as A } from "./DefaultPropsProvider-xJkZOrdv.js";
4
- import { u as J } from "./useFormControl-CatNKXAi.js";
5
- import { jsxs as K, jsx as M } from "react/jsx-runtime";
6
- import { B as Q } from "./ButtonBase-DUPJVOlc.js";
7
- import { u as W } from "./useControlled-BYdyS7Pn.js";
8
- import { r as X } from "./refType-BmrOFNz6.js";
2
+ import { H as G, I as H, G as V, P as e } from "./generateUtilityClasses--6MLb_cS.js";
3
+ import { s as C, r as _, c as $ } from "./DefaultPropsProvider-DUWovK-8.js";
4
+ import { u as A } from "./useFormControl-CatNKXAi.js";
5
+ import { jsxs as J, jsx as K } from "react/jsx-runtime";
6
+ import { B as M } from "./ButtonBase-CYkLbJ0U.js";
7
+ import { u as Q } from "./useControlled-BYdyS7Pn.js";
8
+ import { r as W } from "./useEnhancedEffect-DlS7O_-p.js";
9
+ import { c as X } from "./capitalize-NmHVRYy8.js";
9
10
  function Y(s) {
10
11
  return G("PrivateSwitchBase", s);
11
12
  }
@@ -17,11 +18,11 @@ const Z = (s) => {
17
18
  disabled: c,
18
19
  edge: n
19
20
  } = s, l = {
20
- root: ["root", d && "checked", c && "disabled", n && `edge${_(n)}`],
21
+ root: ["root", d && "checked", c && "disabled", n && `edge${X(n)}`],
21
22
  input: ["input"]
22
23
  };
23
- return A(l, Y, t);
24
- }, ee = C(Q)({
24
+ return $(l, Y, t);
25
+ }, ee = C(M)({
25
26
  padding: 9,
26
27
  borderRadius: "50%",
27
28
  variants: [{
@@ -58,7 +59,7 @@ const Z = (s) => {
58
59
  }
59
60
  }]
60
61
  }), oe = C("input", {
61
- shouldForwardProp: $
62
+ shouldForwardProp: _
62
63
  })({
63
64
  cursor: "inherit",
64
65
  position: "absolute",
@@ -94,16 +95,16 @@ const Z = (s) => {
94
95
  type: i,
95
96
  value: g,
96
97
  ...O
97
- } = t, [y, j] = W({
98
+ } = t, [y, j] = Q({
98
99
  controlled: n,
99
100
  default: !!p,
100
101
  name: "SwitchBase",
101
102
  state: "checked"
102
- }), a = J(), E = (o) => {
103
+ }), a = A(), E = (o) => {
103
104
  b && b(o), a && a.onFocus && a.onFocus(o);
104
- }, L = (o) => {
105
- h && h(o), a && a.onBlur && a.onBlur(o);
106
105
  }, T = (o) => {
106
+ h && h(o), a && a.onBlur && a.onBlur(o);
107
+ }, U = (o) => {
107
108
  if (o.nativeEvent.defaultPrevented)
108
109
  return;
109
110
  const B = o.target.checked;
@@ -111,14 +112,14 @@ const Z = (s) => {
111
112
  };
112
113
  let r = F;
113
114
  a && typeof r > "u" && (r = a.disabled);
114
- const U = i === "checkbox" || i === "radio", u = {
115
+ const L = i === "checkbox" || i === "radio", u = {
115
116
  ...t,
116
117
  checked: y,
117
118
  disabled: r,
118
119
  disableFocusRipple: f,
119
120
  edge: R
120
121
  }, k = Z(u);
121
- return /* @__PURE__ */ K(ee, {
122
+ return /* @__PURE__ */ J(ee, {
122
123
  component: "span",
123
124
  className: V(k.root, w),
124
125
  centerRipple: !0,
@@ -127,19 +128,19 @@ const Z = (s) => {
127
128
  tabIndex: null,
128
129
  role: void 0,
129
130
  onFocus: E,
130
- onBlur: L,
131
+ onBlur: T,
131
132
  ownerState: u,
132
133
  ref: d,
133
134
  ...O,
134
- children: [/* @__PURE__ */ M(oe, {
135
+ children: [/* @__PURE__ */ K(oe, {
135
136
  autoFocus: c,
136
137
  checked: n,
137
138
  defaultChecked: p,
138
139
  className: k.input,
139
140
  disabled: r,
140
- id: U ? x : void 0,
141
+ id: L ? x : void 0,
141
142
  name: q,
142
- onChange: T,
143
+ onChange: U,
143
144
  readOnly: v,
144
145
  ref: I,
145
146
  required: z,
@@ -210,7 +211,7 @@ process.env.NODE_ENV !== "production" && (se.propTypes = {
210
211
  /**
211
212
  * Pass a ref to the `input` element.
212
213
  */
213
- inputRef: X,
214
+ inputRef: W,
214
215
  /*
215
216
  * @ignore
216
217
  */