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

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 (120) hide show
  1. package/dist/{Button-CL9rFoOY.js → Button-BuXg1NVm.js} +1 -1
  2. package/dist/{Button-C6UXybBV.cjs → Button-DWN9C3LK.cjs} +1 -1
  3. package/dist/{ButtonBase-CYkLbJ0U.js → ButtonBase-B4zoCnjP.js} +3 -2
  4. package/dist/ButtonBase-CATwoZrn.cjs +74 -0
  5. package/dist/Checkbox-AC2mmTnM.cjs +1 -0
  6. package/dist/{Checkbox-CLM5GjuC.js → Checkbox-CSvGcLhg.js} +2 -2
  7. package/dist/{DatePicker-BXTOQETi.cjs → DatePicker-BSISuO7V.cjs} +11 -11
  8. package/dist/{DatePicker-D9suyaUZ.js → DatePicker-D1zlx4ZT.js} +32 -30
  9. package/dist/Dialog-DPCCWdDJ.js +415 -0
  10. package/dist/Dialog-qbfcFmb5.cjs +1 -0
  11. package/dist/DialogContent-BD5Ba5iS.js +194 -0
  12. package/dist/DialogContent-C8YTQP0Y.cjs +1 -0
  13. package/dist/{DialogTitle-CID6RFNo.js → DialogTitle-BeUT_vuo.js} +43 -42
  14. package/dist/DialogTitle-kTwRLVKr.cjs +1 -0
  15. package/dist/{FormControlLabel-0-cflTuo.js → FormControlLabel-DYY-aErf.js} +1 -1
  16. package/dist/FormControlLabel-ZA6Gcb5F.cjs +1 -0
  17. package/dist/{Grow-D7OAahbU.cjs → Grow-_nrtuAFM.cjs} +1 -1
  18. package/dist/{Grow-BgMSa0P2.js → Grow-nPgCOjxT.js} +1 -1
  19. package/dist/{IconButton-CMwpC2Co.js → IconButton-CNZSqcsf.js} +1 -1
  20. package/dist/{IconButton-DbWtCGLB.cjs → IconButton-Dc15hVpw.cjs} +1 -1
  21. package/dist/{InputBase-DrofJ7xL.js → InputBase-CUavnZkW.js} +7 -6
  22. package/dist/{InputBase-BuVAuMNp.cjs → InputBase-DH6V3gr0.cjs} +3 -3
  23. package/dist/{Menu-_chQG-Za.cjs → Menu-CAFbvCnS.cjs} +5 -5
  24. package/dist/{Menu-DR-xtxpt.js → Menu-DCJCI5_n.js} +16 -15
  25. package/dist/{MenuItem-C_d0Sc_L.js → MenuItem-CUIn-K59.js} +3 -3
  26. package/dist/{MenuItem-De6eStq9.cjs → MenuItem-DnzYnth4.cjs} +1 -1
  27. package/dist/{Modal-C4Jb6sd1.js → Modal-Bx7G18I1.js} +56 -54
  28. package/dist/Modal-CZ2mXC6P.cjs +2 -0
  29. package/dist/{Popper-CkAj_qw_.js → Popper--zvfAHhl.js} +7 -6
  30. package/dist/Popper-Lyb9lMD6.cjs +4 -0
  31. package/dist/{Portal-BcFwfiTx.js → Portal-BxmIkVSh.js} +1 -1
  32. package/dist/{Portal-BruYsISj.cjs → Portal-DuvPvHEc.cjs} +1 -1
  33. package/dist/{Radio-B0v6nDvz.js → Radio-6t3s52QR.js} +2 -2
  34. package/dist/Radio-D52URzDN.cjs +1 -0
  35. package/dist/{Select-BFGwwKap.cjs → Select-BODJlTuR.cjs} +1 -1
  36. package/dist/{Select-D9fwtA9U.js → Select-CiMmkNRd.js} +3 -3
  37. package/dist/{SwitchBase-DfbwljzN.js → SwitchBase-Ch-k9AK8.js} +2 -2
  38. package/dist/SwitchBase-DXpLyhps.cjs +1 -0
  39. package/dist/{TableSortLabel-lnTBXy-V.cjs → TableSortLabel-CTxx0q1M.cjs} +21 -21
  40. package/dist/{TableSortLabel-DwnLOHOy.js → TableSortLabel-D2EwX3Yg.js} +88 -87
  41. package/dist/Tabs-C9I_xaBN.cjs +4 -0
  42. package/dist/{Tabs-BoFP2RHv.js → Tabs-CqlNuFEw.js} +4 -3
  43. package/dist/{TextField-kwhzNVAL.js → TextField-jZpNiD3K.js} +2 -2
  44. package/dist/TextField-nCYJH1XF.cjs +1 -0
  45. package/dist/Tooltip-4SXCNvL7.cjs +4 -0
  46. package/dist/{Tooltip-tgkiC77d.js → Tooltip-B9q50v12.js} +4 -3
  47. package/dist/components/Button/Button.cjs.js +1 -1
  48. package/dist/components/Button/Button.es.js +1 -1
  49. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  50. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  51. package/dist/components/DatePicker/index.cjs.js +1 -1
  52. package/dist/components/DatePicker/index.es.js +1 -1
  53. package/dist/components/Dialog/Dialog.cjs.js +1 -0
  54. package/dist/components/Dialog/Dialog.d.ts +7 -0
  55. package/dist/components/Dialog/Dialog.es.js +26 -0
  56. package/dist/components/Dialog/index.cjs.js +1 -0
  57. package/dist/components/Dialog/index.d.ts +2 -0
  58. package/dist/components/Dialog/index.es.js +4 -0
  59. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  60. package/dist/components/FileList/FileListItem.es.js +1 -1
  61. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  62. package/dist/components/PasswordInput/PasswordInput.es.js +1 -1
  63. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  64. package/dist/components/SearchInput/SearchInput.es.js +1 -1
  65. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  66. package/dist/components/TextInput/TextInput.es.js +1 -1
  67. package/dist/components/index.cjs.js +1 -1
  68. package/dist/components/index.d.ts +3 -2
  69. package/dist/components/index.es.js +202 -198
  70. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  71. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  72. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  73. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  74. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  75. package/dist/components/stories/Dialog.stories.d.ts +1 -1
  76. package/dist/components/stories/Dialog.stories.es.js +13 -12
  77. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
  78. package/dist/components/stories/FormControlLabel.stories.es.js +5 -5
  79. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  80. package/dist/components/stories/IconButton.stories.es.js +1 -1
  81. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  82. package/dist/components/stories/Menu.stories.es.js +2 -2
  83. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  84. package/dist/components/stories/RadioGroup.stories.es.js +2 -2
  85. package/dist/components/stories/Select.stories.cjs.js +1 -1
  86. package/dist/components/stories/Select.stories.es.js +2 -2
  87. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  88. package/dist/components/stories/TabList.stories.es.js +1 -1
  89. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  90. package/dist/components/stories/TextField.stories.es.js +1 -1
  91. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  92. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  93. package/dist/index.cjs.js +1 -1
  94. package/dist/index.es.js +202 -198
  95. package/dist/refType-BB7-lBOH.js +5 -0
  96. package/dist/refType-Db26p1ga.cjs +1 -0
  97. package/dist/useEnhancedEffect-BQZ6dtCo.cjs +1 -0
  98. package/dist/useEnhancedEffect-CJGo-L3B.js +5 -0
  99. package/dist/useEventCallback-BAQJJ3ye.js +14 -0
  100. package/dist/useEventCallback-C0-Qw3Sm.cjs +1 -0
  101. package/dist/useTimeout-COCrDKz-.cjs +1 -0
  102. package/dist/useTimeout-CrCYVizI.js +42 -0
  103. package/package.json +1 -1
  104. package/dist/ButtonBase-DzK1n18b.cjs +0 -74
  105. package/dist/Checkbox-Btg05OjV.cjs +0 -1
  106. package/dist/DialogContent-D_JmqJt6.js +0 -603
  107. package/dist/DialogContent-gRISmOoj.cjs +0 -1
  108. package/dist/DialogTitle-Dhxh1DVb.cjs +0 -1
  109. package/dist/FormControlLabel-C-eZV5Xc.cjs +0 -1
  110. package/dist/Modal-GXSEk85U.cjs +0 -2
  111. package/dist/Popper-CjTplNLW.cjs +0 -4
  112. package/dist/Radio-BbZnB74m.cjs +0 -1
  113. package/dist/SwitchBase-BpMNk4XV.cjs +0 -1
  114. package/dist/Tabs-DEvwJheI.cjs +0 -4
  115. package/dist/TextField-waKWSLD4.cjs +0 -1
  116. package/dist/Tooltip-CFyOA9CT.cjs +0 -4
  117. package/dist/useEnhancedEffect-C9MKL5N4.cjs +0 -1
  118. package/dist/useEnhancedEffect-DlS7O_-p.js +0 -7
  119. package/dist/useTimeout-FkIxJmTC.js +0 -53
  120. package/dist/useTimeout-NIA-3R5R.cjs +0 -1
@@ -1,6 +1,6 @@
1
1
  import { jsx as M, jsxs as ve } from "react/jsx-runtime";
2
2
  import { r as qo } from "./fr-rmVQsNbI.js";
3
- import { _ as g, B as jt, T as Nn } from "./ButtonBase-CYkLbJ0U.js";
3
+ import { _ as g, B as jt, T as Nn } from "./ButtonBase-B4zoCnjP.js";
4
4
  import { _ as Wo, a as se } from "./TransitionGroupContext-DMJLhY9-.js";
5
5
  import * as m from "react";
6
6
  import un from "react";
@@ -11,36 +11,38 @@ import { g as Ko } from "./useThemeProps-DrCROxdY.js";
11
11
  import { s as K, u as Yt, c as ge, f as Go } from "./DefaultPropsProvider-DUWovK-8.js";
12
12
  import { T as Qe } from "./Typography-DWXYj92v.js";
13
13
  import { c as Ie } from "./createSvgIcon-CeuAoIMQ.js";
14
- import { a as Z } from "./useTimeout-FkIxJmTC.js";
14
+ import { u as Z } from "./useEventCallback-BAQJJ3ye.js";
15
15
  import { u as $n } from "./useTheme-BXzyKigM.js";
16
16
  import { F as wt } from "./Backdrop-ZqzrnV2E.js";
17
17
  import { a as de, u as Ve } from "./useSlotProps-C7zjg7t9.js";
18
18
  import { u as Ce } from "./useForkRef-C_4o__cU.js";
19
- import { u as Le, r as Fe } from "./useEnhancedEffect-DlS7O_-p.js";
19
+ import { u as Le } from "./useEnhancedEffect-CJGo-L3B.js";
20
20
  import { f as Zo, T as Bn, c as Qo } from "./utils-70jLtOQP.js";
21
21
  import { u as ze } from "./useControlled-BYdyS7Pn.js";
22
22
  import { u as at } from "./useId-CK6Kn3Tn.js";
23
- import { I as St } from "./IconButton-CMwpC2Co.js";
23
+ import { I as St } from "./IconButton-CNZSqcsf.js";
24
24
  import { i as jn, F as Xo } from "./FormLabel-X7FN1eBV.js";
25
- import { a as Jo } from "./Select-D9fwtA9U.js";
26
- import { F as er, T as tr } from "./TextField-kwhzNVAL.js";
25
+ import { a as Jo } from "./Select-CiMmkNRd.js";
26
+ import { F as er, T as tr } from "./TextField-jZpNiD3K.js";
27
+ import { r as Fe } from "./refType-BB7-lBOH.js";
27
28
  import { u as Ct } from "./useFormControl-CatNKXAi.js";
28
29
  import { c as ue } from "./capitalize-NmHVRYy8.js";
29
30
  import { I as zn } from "./InputAdornment-B4hI0-Jz.js";
30
31
  import { r as Yn } from "./mergeSlotProps-KHPCviGJ.js";
31
- import { P as nr } from "./Popper-CkAj_qw_.js";
32
+ import { P as nr } from "./Popper--zvfAHhl.js";
32
33
  import { P as or } from "./Paper-nlWPEgQh.js";
33
- import { G as rr } from "./Grow-BgMSa0P2.js";
34
- import { F as sr } from "./Modal-C4Jb6sd1.js";
34
+ import { G as rr } from "./Grow-nPgCOjxT.js";
35
+ import { F as sr } from "./Modal-Bx7G18I1.js";
35
36
  import { o as Lt } from "./ownerDocument-CUrv0DIK.js";
36
- import { B as ct } from "./Button-CL9rFoOY.js";
37
- import { a as ar, D as ir, d as dn, b as lr } from "./DialogContent-D_JmqJt6.js";
38
- import { b as ft, L as cr } from "./Menu-DR-xtxpt.js";
39
- import { i as pn } from "./isHostComponent-kiaBvYVo.js";
37
+ import { B as ct } from "./Button-BuXg1NVm.js";
38
+ import { D as ar, a as ir } from "./DialogContent-BD5Ba5iS.js";
39
+ import { b as ft, L as lr } from "./Menu-DCJCI5_n.js";
40
+ import { i as dn } from "./isHostComponent-kiaBvYVo.js";
40
41
  import { m as qn } from "./memoTheme-o8RCKrNG.js";
41
- import { c as ur } from "./chainPropTypes-D9lkm76m.js";
42
- import { e as dr } from "./elementTypeAcceptingRef-HBfwF2vD.js";
42
+ import { c as cr } from "./chainPropTypes-D9lkm76m.js";
43
+ import { e as ur } from "./elementTypeAcceptingRef-HBfwF2vD.js";
43
44
  import { c as ut } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
45
+ import { D as dr, d as pn } from "./Dialog-DPCCWdDJ.js";
44
46
  const pr = typeof window < "u" ? m.useLayoutEffect : m.useEffect;
45
47
  function fr(e, n, r, o, s) {
46
48
  const [a, l] = m.useState(() => s && r ? r(e).matches : o ? o(e).matches : n);
@@ -833,8 +835,8 @@ process.env.NODE_ENV !== "production" && (Un.propTypes = {
833
835
  function kr(e) {
834
836
  return me("MuiListItem", e);
835
837
  }
836
- const uu = he("MuiListItem", ["root", "container", "dense", "alignItemsFlexStart", "divider", "gutters", "padding", "secondaryAction"]);
837
- function du(e) {
838
+ const pu = he("MuiListItem", ["root", "container", "dense", "alignItemsFlexStart", "divider", "gutters", "padding", "secondaryAction"]);
839
+ function fu(e) {
838
840
  return me("MuiListItemButton", e);
839
841
  }
840
842
  const Tr = he("MuiListItemButton", ["root", "focusVisible", "dense", "alignItemsFlexStart", "disabled", "divider", "gutters", "selected"]);
@@ -1088,7 +1090,7 @@ const Vr = (e, n) => {
1088
1090
  ...h,
1089
1091
  children: [/* @__PURE__ */ M(L, {
1090
1092
  ...O,
1091
- ...!pn(L) && {
1093
+ ...!dn(L) && {
1092
1094
  as: E,
1093
1095
  ownerState: {
1094
1096
  ...N,
@@ -1105,7 +1107,7 @@ const Vr = (e, n) => {
1105
1107
  ...O,
1106
1108
  as: E,
1107
1109
  ref: F,
1108
- ...!pn(L) && {
1110
+ ...!dn(L) && {
1109
1111
  ownerState: {
1110
1112
  ...N,
1111
1113
  ...O.ownerState
@@ -1132,7 +1134,7 @@ process.env.NODE_ENV !== "production" && (Hn.propTypes = {
1132
1134
  * The content of the component if a `ListItemSecondaryAction` is used it must
1133
1135
  * be the last child.
1134
1136
  */
1135
- children: ur(t.node, (e) => {
1137
+ children: cr(t.node, (e) => {
1136
1138
  const n = m.Children.toArray(e.children);
1137
1139
  let r = -1;
1138
1140
  for (let o = n.length - 1; o >= 0; o -= 1) {
@@ -1181,7 +1183,7 @@ process.env.NODE_ENV !== "production" && (Hn.propTypes = {
1181
1183
  * @default 'li'
1182
1184
  * @deprecated Use the `component` or `slots.root` 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.
1183
1185
  */
1184
- ContainerComponent: dr,
1186
+ ContainerComponent: ur,
1185
1187
  /**
1186
1188
  * Props applied to the container component if used.
1187
1189
  * @default {}
@@ -3512,7 +3514,7 @@ function mo(e) {
3512
3514
  disabled: !s(d)
3513
3515
  });
3514
3516
  });
3515
- return /* @__PURE__ */ M(cr, g({
3517
+ return /* @__PURE__ */ M(lr, g({
3516
3518
  dense: !0,
3517
3519
  sx: [{
3518
3520
  maxHeight: Jt,
@@ -10006,15 +10008,15 @@ Fo.propTypes = {
10006
10008
  */
10007
10009
  yearsPerRow: t.oneOf([3, 4])
10008
10010
  };
10009
- const bc = K(ir)({
10010
- [`& .${dn.container}`]: {
10011
+ const bc = K(dr)({
10012
+ [`& .${pn.container}`]: {
10011
10013
  outline: 0
10012
10014
  },
10013
- [`& .${dn.paper}`]: {
10015
+ [`& .${pn.paper}`]: {
10014
10016
  outline: 0,
10015
10017
  minWidth: kt
10016
10018
  }
10017
- }), gc = K(lr)({
10019
+ }), gc = K(ir)({
10018
10020
  "&:first-of-type": {
10019
10021
  padding: 0
10020
10022
  }
@@ -10822,7 +10824,7 @@ process.env.NODE_ENV !== "production" && (Ao.propTypes = {
10822
10824
  */
10823
10825
  yearsPerRow: t.oneOf([3, 4])
10824
10826
  });
10825
- const pu = ({
10827
+ const mu = ({
10826
10828
  adapterLocale: e = "fr",
10827
10829
  ...n
10828
10830
  }) => /* @__PURE__ */ M(
@@ -10835,12 +10837,12 @@ const pu = ({
10835
10837
  );
10836
10838
  export {
10837
10839
  Un as C,
10838
- pu as D,
10840
+ mu as D,
10839
10841
  Hn as L,
10840
10842
  kr as a,
10841
10843
  Tr as b,
10842
10844
  ae as c,
10843
- du as d,
10845
+ fu as d,
10844
10846
  Cr as g,
10845
- uu as l
10847
+ pu as l
10846
10848
  };
@@ -0,0 +1,415 @@
1
+ import * as c from "react";
2
+ import { I as X, H as Y, G as x, P as e } from "./generateUtilityClasses--6MLb_cS.js";
3
+ import { u as z } from "./useTheme-BXzyKigM.js";
4
+ import { jsx as l } from "react/jsx-runtime";
5
+ import { s as d, u as _, c as q } from "./DefaultPropsProvider-DUWovK-8.js";
6
+ import { m as G } from "./memoTheme-o8RCKrNG.js";
7
+ import { B as J, F as Q } from "./Backdrop-ZqzrnV2E.js";
8
+ import { M as Z } from "./Modal-Bx7G18I1.js";
9
+ import { c as i } from "./capitalize-NmHVRYy8.js";
10
+ import { P } from "./Paper-nlWPEgQh.js";
11
+ import { u as ee } from "./useId-CK6Kn3Tn.js";
12
+ const w = /* @__PURE__ */ c.createContext({});
13
+ process.env.NODE_ENV !== "production" && (w.displayName = "DialogContext");
14
+ function oe(r) {
15
+ return Y("MuiDialog", r);
16
+ }
17
+ const y = X("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), re = d(J, {
18
+ name: "MuiDialog",
19
+ slot: "Backdrop",
20
+ overrides: (r, o) => o.backdrop
21
+ })({
22
+ // Improve scrollable dialog support.
23
+ zIndex: -1
24
+ }), ae = (r) => {
25
+ const {
26
+ classes: o,
27
+ scroll: a,
28
+ maxWidth: n,
29
+ fullWidth: s,
30
+ fullScreen: u
31
+ } = r, m = {
32
+ root: ["root"],
33
+ container: ["container", `scroll${i(a)}`],
34
+ paper: ["paper", `paperScroll${i(a)}`, `paperWidth${i(String(n))}`, s && "paperFullWidth", u && "paperFullScreen"]
35
+ };
36
+ return q(m, oe, o);
37
+ }, te = d(Z, {
38
+ name: "MuiDialog",
39
+ slot: "Root",
40
+ overridesResolver: (r, o) => o.root
41
+ })({
42
+ "@media print": {
43
+ // Use !important to override the Modal inline-style.
44
+ position: "absolute !important"
45
+ }
46
+ }), ie = d("div", {
47
+ name: "MuiDialog",
48
+ slot: "Container",
49
+ overridesResolver: (r, o) => {
50
+ const {
51
+ ownerState: a
52
+ } = r;
53
+ return [o.container, o[`scroll${i(a.scroll)}`]];
54
+ }
55
+ })({
56
+ height: "100%",
57
+ "@media print": {
58
+ height: "auto"
59
+ },
60
+ // We disable the focus ring for mouse, touch and keyboard users.
61
+ outline: 0,
62
+ variants: [{
63
+ props: {
64
+ scroll: "paper"
65
+ },
66
+ style: {
67
+ display: "flex",
68
+ justifyContent: "center",
69
+ alignItems: "center"
70
+ }
71
+ }, {
72
+ props: {
73
+ scroll: "body"
74
+ },
75
+ style: {
76
+ overflowY: "auto",
77
+ overflowX: "hidden",
78
+ textAlign: "center",
79
+ "&::after": {
80
+ content: '""',
81
+ display: "inline-block",
82
+ verticalAlign: "middle",
83
+ height: "100%",
84
+ width: "0"
85
+ }
86
+ }
87
+ }]
88
+ }), le = d(P, {
89
+ name: "MuiDialog",
90
+ slot: "Paper",
91
+ overridesResolver: (r, o) => {
92
+ const {
93
+ ownerState: a
94
+ } = r;
95
+ return [o.paper, o[`scrollPaper${i(a.scroll)}`], o[`paperWidth${i(String(a.maxWidth))}`], a.fullWidth && o.paperFullWidth, a.fullScreen && o.paperFullScreen];
96
+ }
97
+ })(G(({
98
+ theme: r
99
+ }) => ({
100
+ margin: 32,
101
+ position: "relative",
102
+ overflowY: "auto",
103
+ "@media print": {
104
+ overflowY: "visible",
105
+ boxShadow: "none"
106
+ },
107
+ variants: [{
108
+ props: {
109
+ scroll: "paper"
110
+ },
111
+ style: {
112
+ display: "flex",
113
+ flexDirection: "column",
114
+ maxHeight: "calc(100% - 64px)"
115
+ }
116
+ }, {
117
+ props: {
118
+ scroll: "body"
119
+ },
120
+ style: {
121
+ display: "inline-block",
122
+ verticalAlign: "middle",
123
+ textAlign: "initial"
124
+ }
125
+ }, {
126
+ props: ({
127
+ ownerState: o
128
+ }) => !o.maxWidth,
129
+ style: {
130
+ maxWidth: "calc(100% - 64px)"
131
+ }
132
+ }, {
133
+ props: {
134
+ maxWidth: "xs"
135
+ },
136
+ style: {
137
+ maxWidth: r.breakpoints.unit === "px" ? Math.max(r.breakpoints.values.xs, 444) : `max(${r.breakpoints.values.xs}${r.breakpoints.unit}, 444px)`,
138
+ [`&.${y.paperScrollBody}`]: {
139
+ [r.breakpoints.down(Math.max(r.breakpoints.values.xs, 444) + 32 * 2)]: {
140
+ maxWidth: "calc(100% - 64px)"
141
+ }
142
+ }
143
+ }
144
+ }, ...Object.keys(r.breakpoints.values).filter((o) => o !== "xs").map((o) => ({
145
+ props: {
146
+ maxWidth: o
147
+ },
148
+ style: {
149
+ maxWidth: `${r.breakpoints.values[o]}${r.breakpoints.unit}`,
150
+ [`&.${y.paperScrollBody}`]: {
151
+ [r.breakpoints.down(r.breakpoints.values[o] + 32 * 2)]: {
152
+ maxWidth: "calc(100% - 64px)"
153
+ }
154
+ }
155
+ }
156
+ })), {
157
+ props: ({
158
+ ownerState: o
159
+ }) => o.fullWidth,
160
+ style: {
161
+ width: "calc(100% - 64px)"
162
+ }
163
+ }, {
164
+ props: ({
165
+ ownerState: o
166
+ }) => o.fullScreen,
167
+ style: {
168
+ margin: 0,
169
+ width: "100%",
170
+ maxWidth: "100%",
171
+ height: "100%",
172
+ maxHeight: "none",
173
+ borderRadius: 0,
174
+ [`&.${y.paperScrollBody}`]: {
175
+ margin: 0,
176
+ maxWidth: "100%"
177
+ }
178
+ }
179
+ }]
180
+ }))), ne = /* @__PURE__ */ c.forwardRef(function(o, a) {
181
+ const n = _({
182
+ props: o,
183
+ name: "MuiDialog"
184
+ }), s = z(), u = {
185
+ enter: s.transitions.duration.enteringScreen,
186
+ exit: s.transitions.duration.leavingScreen
187
+ }, {
188
+ "aria-describedby": m,
189
+ "aria-labelledby": T,
190
+ "aria-modal": B = !0,
191
+ BackdropComponent: M,
192
+ BackdropProps: $,
193
+ children: O,
194
+ className: N,
195
+ disableEscapeKeyDown: k = !1,
196
+ fullScreen: R = !1,
197
+ fullWidth: j = !1,
198
+ maxWidth: F = "sm",
199
+ onBackdropClick: C,
200
+ onClick: D,
201
+ onClose: f,
202
+ open: v,
203
+ PaperComponent: E = P,
204
+ PaperProps: W = {},
205
+ scroll: A = "paper",
206
+ TransitionComponent: I = Q,
207
+ transitionDuration: S = u,
208
+ TransitionProps: U,
209
+ ...H
210
+ } = n, p = {
211
+ ...n,
212
+ disableEscapeKeyDown: k,
213
+ fullScreen: R,
214
+ fullWidth: j,
215
+ maxWidth: F,
216
+ scroll: A
217
+ }, b = ae(p), g = c.useRef(), K = (t) => {
218
+ g.current = t.target === t.currentTarget;
219
+ }, L = (t) => {
220
+ D && D(t), g.current && (g.current = null, C && C(t), f && f(t, "backdropClick"));
221
+ }, h = ee(T), V = c.useMemo(() => ({
222
+ titleId: h
223
+ }), [h]);
224
+ return /* @__PURE__ */ l(te, {
225
+ className: x(b.root, N),
226
+ closeAfterTransition: !0,
227
+ components: {
228
+ Backdrop: re
229
+ },
230
+ componentsProps: {
231
+ backdrop: {
232
+ transitionDuration: S,
233
+ as: M,
234
+ ...$
235
+ }
236
+ },
237
+ disableEscapeKeyDown: k,
238
+ onClose: f,
239
+ open: v,
240
+ ref: a,
241
+ onClick: L,
242
+ ownerState: p,
243
+ ...H,
244
+ children: /* @__PURE__ */ l(I, {
245
+ appear: !0,
246
+ in: v,
247
+ timeout: S,
248
+ role: "presentation",
249
+ ...U,
250
+ children: /* @__PURE__ */ l(ie, {
251
+ className: x(b.container),
252
+ onMouseDown: K,
253
+ ownerState: p,
254
+ children: /* @__PURE__ */ l(le, {
255
+ as: E,
256
+ elevation: 24,
257
+ role: "dialog",
258
+ "aria-describedby": m,
259
+ "aria-labelledby": h,
260
+ "aria-modal": B,
261
+ ...W,
262
+ className: x(b.paper, W.className),
263
+ ownerState: p,
264
+ children: /* @__PURE__ */ l(w.Provider, {
265
+ value: V,
266
+ children: O
267
+ })
268
+ })
269
+ })
270
+ })
271
+ });
272
+ });
273
+ process.env.NODE_ENV !== "production" && (ne.propTypes = {
274
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
275
+ // │ These PropTypes are generated from the TypeScript type definitions. │
276
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
277
+ // └─────────────────────────────────────────────────────────────────────┘
278
+ /**
279
+ * The id(s) of the element(s) that describe the dialog.
280
+ */
281
+ "aria-describedby": e.string,
282
+ /**
283
+ * The id(s) of the element(s) that label the dialog.
284
+ */
285
+ "aria-labelledby": e.string,
286
+ /**
287
+ * Informs assistive technologies that the element is modal.
288
+ * It's added on the element with role="dialog".
289
+ * @default true
290
+ */
291
+ "aria-modal": e.oneOfType([e.oneOf(["false", "true"]), e.bool]),
292
+ /**
293
+ * A backdrop component. This prop enables custom backdrop rendering.
294
+ * @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
295
+ * Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
296
+ * @default styled(Backdrop, {
297
+ * name: 'MuiModal',
298
+ * slot: 'Backdrop',
299
+ * overridesResolver: (props, styles) => {
300
+ * return styles.backdrop;
301
+ * },
302
+ * })({
303
+ * zIndex: -1,
304
+ * })
305
+ */
306
+ BackdropComponent: e.elementType,
307
+ /**
308
+ * @ignore
309
+ */
310
+ BackdropProps: e.object,
311
+ /**
312
+ * Dialog children, usually the included sub-components.
313
+ */
314
+ children: e.node,
315
+ /**
316
+ * Override or extend the styles applied to the component.
317
+ */
318
+ classes: e.object,
319
+ /**
320
+ * @ignore
321
+ */
322
+ className: e.string,
323
+ /**
324
+ * If `true`, hitting escape will not fire the `onClose` callback.
325
+ * @default false
326
+ */
327
+ disableEscapeKeyDown: e.bool,
328
+ /**
329
+ * If `true`, the dialog is full-screen.
330
+ * @default false
331
+ */
332
+ fullScreen: e.bool,
333
+ /**
334
+ * If `true`, the dialog stretches to `maxWidth`.
335
+ *
336
+ * Notice that the dialog width grow is limited by the default margin.
337
+ * @default false
338
+ */
339
+ fullWidth: e.bool,
340
+ /**
341
+ * Determine the max-width of the dialog.
342
+ * The dialog width grows with the size of the screen.
343
+ * Set to `false` to disable `maxWidth`.
344
+ * @default 'sm'
345
+ */
346
+ maxWidth: e.oneOfType([e.oneOf(["xs", "sm", "md", "lg", "xl", !1]), e.string]),
347
+ /**
348
+ * Callback fired when the backdrop is clicked.
349
+ * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
350
+ */
351
+ onBackdropClick: e.func,
352
+ /**
353
+ * @ignore
354
+ */
355
+ onClick: e.func,
356
+ /**
357
+ * Callback fired when the component requests to be closed.
358
+ *
359
+ * @param {object} event The event source of the callback.
360
+ * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
361
+ */
362
+ onClose: e.func,
363
+ /**
364
+ * If `true`, the component is shown.
365
+ */
366
+ open: e.bool.isRequired,
367
+ /**
368
+ * The component used to render the body of the dialog.
369
+ * @default Paper
370
+ */
371
+ PaperComponent: e.elementType,
372
+ /**
373
+ * Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
374
+ * @default {}
375
+ */
376
+ PaperProps: e.object,
377
+ /**
378
+ * Determine the container for scrolling the dialog.
379
+ * @default 'paper'
380
+ */
381
+ scroll: e.oneOf(["body", "paper"]),
382
+ /**
383
+ * The system prop that allows defining system overrides as well as additional CSS styles.
384
+ */
385
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
386
+ /**
387
+ * The component used for the transition.
388
+ * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
389
+ * @default Fade
390
+ */
391
+ TransitionComponent: e.elementType,
392
+ /**
393
+ * The duration for the transition, in milliseconds.
394
+ * You may specify a single timeout for all transitions, or individually with an object.
395
+ * @default {
396
+ * enter: theme.transitions.duration.enteringScreen,
397
+ * exit: theme.transitions.duration.leavingScreen,
398
+ * }
399
+ */
400
+ transitionDuration: e.oneOfType([e.number, e.shape({
401
+ appear: e.number,
402
+ enter: e.number,
403
+ exit: e.number
404
+ })]),
405
+ /**
406
+ * Props applied to the transition element.
407
+ * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
408
+ */
409
+ TransitionProps: e.object
410
+ });
411
+ export {
412
+ ne as D,
413
+ w as a,
414
+ y as d
415
+ };
@@ -0,0 +1 @@
1
+ "use strict";const V=require("react"),e=require("./generateUtilityClasses-DEQ18TAF.cjs"),X=require("./useTheme-B1YEBlI0.cjs"),l=require("react/jsx-runtime"),i=require("./DefaultPropsProvider-DE-Tx_ov.cjs"),Y=require("./memoTheme-D99chbOP.cjs"),S=require("./Backdrop-DqUdx8FP.cjs"),H=require("./Modal-CZ2mXC6P.cjs"),p=require("./capitalize-DASFtB-F.cjs"),W=require("./Paper-CH4BABUB.cjs"),G=require("./useId-DNXtOFeX.cjs");function J(r){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const a in r)if(a!=="default"){const t=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(o,a,t.get?t:{enumerable:!0,get:()=>r[a]})}}return o.default=r,Object.freeze(o)}const d=J(V),g=d.createContext({});process.env.NODE_ENV!=="production"&&(g.displayName="DialogContext");function Q(r){return e.generateUtilityClass("MuiDialog",r)}const u=e.generateUtilityClasses("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Z=i.styled(S.Backdrop,{name:"MuiDialog",slot:"Backdrop",overrides:(r,o)=>o.backdrop})({zIndex:-1}),ee=r=>{const{classes:o,scroll:a,maxWidth:t,fullWidth:n,fullScreen:y}=r,m={root:["root"],container:["container",`scroll${p.capitalize(a)}`],paper:["paper",`paperScroll${p.capitalize(a)}`,`paperWidth${p.capitalize(String(t))}`,n&&"paperFullWidth",y&&"paperFullScreen"]};return i.composeClasses(m,Q,o)},oe=i.styled(H.Modal,{name:"MuiDialog",slot:"Root",overridesResolver:(r,o)=>o.root})({"@media print":{position:"absolute !important"}}),re=i.styled("div",{name:"MuiDialog",slot:"Container",overridesResolver:(r,o)=>{const{ownerState:a}=r;return[o.container,o[`scroll${p.capitalize(a.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),ae=i.styled(W.Paper,{name:"MuiDialog",slot:"Paper",overridesResolver:(r,o)=>{const{ownerState:a}=r;return[o.paper,o[`scrollPaper${p.capitalize(a.scroll)}`],o[`paperWidth${p.capitalize(String(a.maxWidth))}`],a.fullWidth&&o.paperFullWidth,a.fullScreen&&o.paperFullScreen]}})(Y.memoTheme(({theme:r})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:o})=>!o.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:r.breakpoints.unit==="px"?Math.max(r.breakpoints.values.xs,444):`max(${r.breakpoints.values.xs}${r.breakpoints.unit}, 444px)`,[`&.${u.paperScrollBody}`]:{[r.breakpoints.down(Math.max(r.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(r.breakpoints.values).filter(o=>o!=="xs").map(o=>({props:{maxWidth:o},style:{maxWidth:`${r.breakpoints.values[o]}${r.breakpoints.unit}`,[`&.${u.paperScrollBody}`]:{[r.breakpoints.down(r.breakpoints.values[o]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:o})=>o.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:o})=>o.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${u.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),w=d.forwardRef(function(o,a){const t=i.useDefaultProps({props:o,name:"MuiDialog"}),n=X.useTheme(),y={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{"aria-describedby":m,"aria-labelledby":j,"aria-modal":B=!0,BackdropComponent:M,BackdropProps:O,children:$,className:q,disableEscapeKeyDown:x=!1,fullScreen:N=!1,fullWidth:R=!1,maxWidth:z="sm",onBackdropClick:h,onClick:k,onClose:b,open:D,PaperComponent:F=W.Paper,PaperProps:C={},scroll:E="paper",TransitionComponent:A=S.Fade,transitionDuration:v=y,TransitionProps:I,...U}=t,c={...t,disableEscapeKeyDown:x,fullScreen:N,fullWidth:R,maxWidth:z,scroll:E},P=ee(c),f=d.useRef(),_=s=>{f.current=s.target===s.currentTarget},K=s=>{k&&k(s),f.current&&(f.current=null,h&&h(s),b&&b(s,"backdropClick"))},T=G.useId(j),L=d.useMemo(()=>({titleId:T}),[T]);return l.jsx(oe,{className:e.clsx(P.root,q),closeAfterTransition:!0,components:{Backdrop:Z},componentsProps:{backdrop:{transitionDuration:v,as:M,...O}},disableEscapeKeyDown:x,onClose:b,open:D,ref:a,onClick:K,ownerState:c,...U,children:l.jsx(A,{appear:!0,in:D,timeout:v,role:"presentation",...I,children:l.jsx(re,{className:e.clsx(P.container),onMouseDown:_,ownerState:c,children:l.jsx(ae,{as:F,elevation:24,role:"dialog","aria-describedby":m,"aria-labelledby":T,"aria-modal":B,...C,className:e.clsx(P.paper,C.className),ownerState:c,children:l.jsx(g.Provider,{value:L,children:$})})})})})});process.env.NODE_ENV!=="production"&&(w.propTypes={"aria-describedby":e.PropTypes.string,"aria-labelledby":e.PropTypes.string,"aria-modal":e.PropTypes.oneOfType([e.PropTypes.oneOf(["false","true"]),e.PropTypes.bool]),BackdropComponent:e.PropTypes.elementType,BackdropProps:e.PropTypes.object,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,disableEscapeKeyDown:e.PropTypes.bool,fullScreen:e.PropTypes.bool,fullWidth:e.PropTypes.bool,maxWidth:e.PropTypes.oneOfType([e.PropTypes.oneOf(["xs","sm","md","lg","xl",!1]),e.PropTypes.string]),onBackdropClick:e.PropTypes.func,onClick:e.PropTypes.func,onClose:e.PropTypes.func,open:e.PropTypes.bool.isRequired,PaperComponent:e.PropTypes.elementType,PaperProps:e.PropTypes.object,scroll:e.PropTypes.oneOf(["body","paper"]),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]),TransitionComponent:e.PropTypes.elementType,transitionDuration:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.shape({appear:e.PropTypes.number,enter:e.PropTypes.number,exit:e.PropTypes.number})]),TransitionProps:e.PropTypes.object});exports.Dialog=w;exports.DialogContext=g;exports.dialogClasses=u;