@cgi-learning-hub/ui 1.0.0-dev.1721229430 → 1.0.0-dev.1721824898

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 (131) hide show
  1. package/dist/Box-CsYXR6Le.cjs +1 -0
  2. package/dist/{Box-DQXO6hAm.js → Box-vGRO-On_.js} +11 -12
  3. package/dist/ButtonBase-VIKeNyAr.cjs +75 -0
  4. package/dist/{ButtonBase-B5HiNV6L.js → ButtonBase-vONl_zxO.js} +16 -17
  5. package/dist/{CircularProgress-BlfBX_I2.js → CircularProgress-BDwTzcEn.js} +29 -30
  6. package/dist/CircularProgress-C0MOR9P7.cjs +28 -0
  7. package/dist/{DefaultButton-CQL8OQ0m.js → DefaultButton-BD1TIeNP.js} +23 -25
  8. package/dist/DefaultButton-DV0j1bMY.cjs +1 -0
  9. package/dist/IconButton-4zP9d1M9.cjs +2 -0
  10. package/dist/{IconButton-BjD7an5E.js → IconButton-Ctm1Peef.js} +6 -7
  11. package/dist/InputBase-DMbFw6s1.cjs +3 -0
  12. package/dist/{InputBase-Bu4aLC8s.js → InputBase-Dqfior4W.js} +41 -43
  13. package/dist/{SearchInput-BdNp9ibO.js → SearchInput-Clr0qHPm.js} +29 -30
  14. package/dist/SearchInput-CruiB2CO.cjs +1 -0
  15. package/dist/{Stack-Bm3R862G.js → Stack-CwklSaeG.js} +28 -29
  16. package/dist/Stack-v4g12Xre.cjs +1 -0
  17. package/dist/Tabs-CLr003cV.cjs +4 -0
  18. package/dist/{Tabs-rGjgGQoc.js → Tabs-D-RPVuW4.js} +131 -119
  19. package/dist/TextInput-Ba5ly1H9.cjs +12 -0
  20. package/dist/{TextInput-CAot24Xe.js → TextInput-BxI4zwrY.js} +22 -23
  21. package/dist/{TimePicker-Dr_nF3ms.js → TimePicker-DK-Q99ep.js} +8214 -7365
  22. package/dist/TimePicker-DYEkxpHp.cjs +113 -0
  23. package/dist/Typography-C5AoCX91.cjs +1 -0
  24. package/dist/{Typography-2SgDaT8h.js → Typography-Cl3kH-A8.js} +15 -16
  25. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  26. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  27. package/dist/components/Loader/Loader.cjs.js +1 -1
  28. package/dist/components/Loader/Loader.es.js +1 -1
  29. package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
  30. package/dist/components/PaperHeader/PaperHeader.es.js +2 -2
  31. package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
  32. package/dist/components/PaperHeader/PaperHeader.stories.es.js +6 -6
  33. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
  34. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +2 -2
  35. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  36. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +14 -15
  37. package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
  38. package/dist/components/buttons/DefaultButton/index.es.js +1 -1
  39. package/dist/components/buttons/IconButton.stories.cjs.js +1 -1
  40. package/dist/components/buttons/IconButton.stories.es.js +3 -3
  41. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
  42. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
  43. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  44. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  45. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
  46. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
  47. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  48. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  49. package/dist/components/buttons/index.cjs.js +1 -1
  50. package/dist/components/buttons/index.es.js +1 -1
  51. package/dist/components/feedback/QueryError/QueryError.cjs.js +1 -1
  52. package/dist/components/feedback/QueryError/QueryError.es.js +1 -1
  53. package/dist/components/index.cjs.js +1 -1
  54. package/dist/components/index.d.ts +2 -1
  55. package/dist/components/index.es.js +278 -279
  56. package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -1
  57. package/dist/components/inputs/PasswordInput/PasswordInput.es.js +14 -15
  58. package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
  59. package/dist/components/inputs/SearchInput/SearchInput.es.js +3 -3
  60. package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
  61. package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +1 -1
  62. package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
  63. package/dist/components/inputs/SearchInput/index.es.js +1 -1
  64. package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
  65. package/dist/components/inputs/TextInput/TextInput.es.js +1 -1
  66. package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
  67. package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
  68. package/dist/components/inputs/TextInput/index.cjs.js +1 -1
  69. package/dist/components/inputs/TextInput/index.es.js +1 -1
  70. package/dist/components/inputs/index.cjs.js +1 -1
  71. package/dist/components/inputs/index.es.js +2 -2
  72. package/dist/components/lists/FileList/FileList.cjs.js +1 -1
  73. package/dist/components/lists/FileList/FileList.es.js +1 -1
  74. package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
  75. package/dist/components/lists/FileList/FileListItem.es.js +6 -6
  76. package/dist/components/lists/TabList.stories.cjs.js +1 -1
  77. package/dist/components/lists/TabList.stories.es.js +34 -36
  78. package/dist/{createSvgIcon-BoU2zJm2.cjs → createSvgIcon-B70pkSwO.cjs} +1 -1
  79. package/dist/{createSvgIcon-DKalT1IU.js → createSvgIcon-Blbo0WDd.js} +14 -14
  80. package/dist/{createSvgIcon-BqV9kys6.js → createSvgIcon-BwGNMrhW.js} +9 -10
  81. package/dist/createSvgIcon-n-HUhGNK.cjs +1 -0
  82. package/dist/identifier-J0ZxxQLU.cjs +50 -0
  83. package/dist/identifier-wKuu0zOr.js +3047 -0
  84. package/dist/index.cjs.js +1 -1
  85. package/dist/index.es.js +279 -280
  86. package/dist/{refType-BtebdsEm.js → refType-Bqz8QGtc.js} +1 -1
  87. package/dist/{refType-DzZFRJXI.cjs → refType-DNJbSwsx.cjs} +1 -1
  88. package/dist/styled-C04Dz9vm.cjs +17 -0
  89. package/dist/styled-CFCmdTd8.js +533 -0
  90. package/dist/{useTheme-DDHh2q-k.cjs → useTheme-B4p2k0PU.cjs} +1 -1
  91. package/dist/useTheme-C65ChbGW.cjs +1 -0
  92. package/dist/{useTheme-C_ghcfxd.js → useTheme-D5vjhuQC.js} +1 -1
  93. package/dist/{useTheme-CwCUkvkZ.js → useTheme-DWyCcDbs.js} +29 -30
  94. package/dist/useThemeProps-CEfrd8SJ.cjs +1 -0
  95. package/dist/{useThemeProps-BybmzYVD.js → useThemeProps-CZSYSmRG.js} +2 -2
  96. package/package.json +1 -1
  97. package/dist/Box-VE8zzQxN.cjs +0 -1
  98. package/dist/ButtonBase-BINHTm-n.cjs +0 -75
  99. package/dist/CircularProgress-yfmTQCpL.cjs +0 -28
  100. package/dist/DefaultButton-8ns1LvfF.cjs +0 -1
  101. package/dist/IconButton-RFeuYm2K.cjs +0 -2
  102. package/dist/InputBase-zXQ1Gs_-.cjs +0 -3
  103. package/dist/LocalizationProvider-Bd8iEFyF.cjs +0 -5
  104. package/dist/LocalizationProvider-Bw5VDmOD.js +0 -592
  105. package/dist/SearchInput-DeBVN_CY.cjs +0 -1
  106. package/dist/Stack-CHo9cbcP.cjs +0 -1
  107. package/dist/Tabs-CgnNgSGQ.cjs +0 -4
  108. package/dist/TextInput-Dy0Qi2N7.cjs +0 -12
  109. package/dist/TimePicker-wzgmz3DE.cjs +0 -109
  110. package/dist/Typography-B_CzXKnG.cjs +0 -1
  111. package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +0 -1
  112. package/dist/components/LocalizationProvider/LocalizationProvider.d.ts +0 -7
  113. package/dist/components/LocalizationProvider/LocalizationProvider.es.js +0 -6
  114. package/dist/components/LocalizationProvider/index.cjs.js +0 -1
  115. package/dist/components/LocalizationProvider/index.d.ts +0 -2
  116. package/dist/components/LocalizationProvider/index.es.js +0 -4
  117. package/dist/createSvgIcon-Dm2nQR21.cjs +0 -1
  118. package/dist/defaultTheme-BlqVFqOY.cjs +0 -1
  119. package/dist/defaultTheme-C4edRge6.js +0 -19
  120. package/dist/extendSxProp-BaQsf_eX.js +0 -739
  121. package/dist/extendSxProp-DYKVP-ko.cjs +0 -10
  122. package/dist/fr-DNOCWhp_.js +0 -321
  123. package/dist/fr-DSv4ULwD.cjs +0 -1
  124. package/dist/identifier-CItx51dm.js +0 -2369
  125. package/dist/identifier-DPVk4rwk.cjs +0 -43
  126. package/dist/styled-BCP6gOZj.js +0 -519
  127. package/dist/styled-RtRlBNlZ.cjs +0 -17
  128. package/dist/useTheme-CqMZT0T0.cjs +0 -1
  129. package/dist/useThemeProps-CEiKfXBZ.cjs +0 -1
  130. package/dist/useThemeProps-DmEDeofb.cjs +0 -1
  131. package/dist/useThemeProps-JKgv0pkv.js +0 -17
@@ -1,592 +0,0 @@
1
- import { jsx as et } from "react/jsx-runtime";
2
- import { r as mt } from "./fr-DNOCWhp_.js";
3
- import { q as pt, _ as rt, P as u, H as F, E } from "./identifier-CItx51dm.js";
4
- import * as $ from "react";
5
- import { u as yt } from "./useThemeProps-JKgv0pkv.js";
6
- const Mt = ["localeText"], J = /* @__PURE__ */ $.createContext(null);
7
- process.env.NODE_ENV !== "production" && (J.displayName = "MuiPickersAdapterContext");
8
- const st = function(p) {
9
- const {
10
- localeText: d
11
- } = p, t = pt(p, Mt), {
12
- utils: e,
13
- localeText: r
14
- } = $.useContext(J) ?? {
15
- utils: void 0,
16
- localeText: void 0
17
- }, h = yt({
18
- // We don't want to pass the `localeText` prop to the theme, that way it will always return the theme value,
19
- // We will then merge this theme value with our value manually
20
- props: t,
21
- name: "MuiLocalizationProvider"
22
- }), {
23
- children: s,
24
- dateAdapter: i,
25
- dateFormats: a,
26
- dateLibInstance: m,
27
- adapterLocale: y,
28
- localeText: g
29
- } = h, b = $.useMemo(() => rt({}, g, r, d), [g, r, d]), x = $.useMemo(() => {
30
- if (!i)
31
- return e || null;
32
- const c = new i({
33
- locale: y,
34
- formats: a,
35
- instance: m
36
- });
37
- if (!c.isMUIAdapter)
38
- throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`", "For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`", "More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
39
- `));
40
- return c;
41
- }, [i, y, a, m, e]), n = $.useMemo(() => x ? {
42
- minDate: x.date("1900-01-01T00:00:00.000"),
43
- maxDate: x.date("2099-12-31T00:00:00.000")
44
- } : null, [x]), o = $.useMemo(() => ({
45
- utils: x,
46
- defaultDates: n,
47
- localeText: b
48
- }), [n, x, b]);
49
- return /* @__PURE__ */ et(J.Provider, {
50
- value: o,
51
- children: s
52
- });
53
- };
54
- process.env.NODE_ENV !== "production" && (st.propTypes = {
55
- // ----------------------------- Warning --------------------------------
56
- // | These PropTypes are generated from the TypeScript type definitions |
57
- // | To update them edit the TypeScript types and run "pnpm proptypes" |
58
- // ----------------------------------------------------------------------
59
- /**
60
- * Locale for the date library you are using
61
- */
62
- adapterLocale: u.any,
63
- children: u.node,
64
- /**
65
- * Date library adapter class function.
66
- * @see See the localization provider {@link https://mui.com/x/react-date-pickers/getting-started/#setup-your-date-library-adapter date adapter setup section} for more details.
67
- */
68
- dateAdapter: u.func,
69
- /**
70
- * Formats that are used for any child pickers
71
- */
72
- dateFormats: u.shape({
73
- dayOfMonth: u.string,
74
- dayOfMonthFull: u.string,
75
- fullDate: u.string,
76
- fullTime: u.string,
77
- fullTime12h: u.string,
78
- fullTime24h: u.string,
79
- hours12h: u.string,
80
- hours24h: u.string,
81
- keyboardDate: u.string,
82
- keyboardDateTime: u.string,
83
- keyboardDateTime12h: u.string,
84
- keyboardDateTime24h: u.string,
85
- meridiem: u.string,
86
- minutes: u.string,
87
- month: u.string,
88
- monthShort: u.string,
89
- normalDate: u.string,
90
- normalDateWithWeekday: u.string,
91
- seconds: u.string,
92
- shortDate: u.string,
93
- weekday: u.string,
94
- weekdayShort: u.string,
95
- year: u.string
96
- }),
97
- /**
98
- * Date library instance you are using, if it has some global overrides
99
- * ```jsx
100
- * dateLibInstance={momentTimeZone}
101
- * ```
102
- */
103
- dateLibInstance: u.any,
104
- /**
105
- * Locale for components texts
106
- */
107
- localeText: u.object
108
- });
109
- const gt = (l, p = "warning") => {
110
- let d = !1;
111
- const t = Array.isArray(l) ? l.join(`
112
- `) : l;
113
- return () => {
114
- d || (d = !0, p === "error" ? console.error(t) : console.warn(t));
115
- };
116
- };
117
- var Tt = mt();
118
- const M = /* @__PURE__ */ F(Tt);
119
- var nt = { exports: {} };
120
- (function(l, p) {
121
- (function(d, t) {
122
- l.exports = t();
123
- })(E, function() {
124
- var d = "week", t = "year";
125
- return function(e, r, h) {
126
- var s = r.prototype;
127
- s.week = function(i) {
128
- if (i === void 0 && (i = null), i !== null) return this.add(7 * (i - this.week()), "day");
129
- var a = this.$locale().yearStart || 1;
130
- if (this.month() === 11 && this.date() > 25) {
131
- var m = h(this).startOf(t).add(1, t).date(a), y = h(this).endOf(d);
132
- if (m.isBefore(y)) return 1;
133
- }
134
- var g = h(this).startOf(t).date(a).startOf(d).subtract(1, "millisecond"), b = this.diff(g, d, !0);
135
- return b < 0 ? h(this).startOf("week").week() : Math.ceil(b);
136
- }, s.weeks = function(i) {
137
- return i === void 0 && (i = null), this.week(i);
138
- };
139
- };
140
- });
141
- })(nt);
142
- var Dt = nt.exports;
143
- const Yt = /* @__PURE__ */ F(Dt);
144
- var it = { exports: {} };
145
- (function(l, p) {
146
- (function(d, t) {
147
- l.exports = t();
148
- })(E, function() {
149
- var d = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, t = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, e = /\d\d/, r = /\d\d?/, h = /\d*[^-_:/,()\s\d]+/, s = {}, i = function(n) {
150
- return (n = +n) + (n > 68 ? 1900 : 2e3);
151
- }, a = function(n) {
152
- return function(o) {
153
- this[n] = +o;
154
- };
155
- }, m = [/[+-]\d\d:?(\d\d)?|Z/, function(n) {
156
- (this.zone || (this.zone = {})).offset = function(o) {
157
- if (!o || o === "Z") return 0;
158
- var c = o.match(/([+-]|\d\d)/g), f = 60 * c[1] + (+c[2] || 0);
159
- return f === 0 ? 0 : c[0] === "+" ? -f : f;
160
- }(n);
161
- }], y = function(n) {
162
- var o = s[n];
163
- return o && (o.indexOf ? o : o.s.concat(o.f));
164
- }, g = function(n, o) {
165
- var c, f = s.meridiem;
166
- if (f) {
167
- for (var T = 1; T <= 24; T += 1) if (n.indexOf(f(T, 0, o)) > -1) {
168
- c = T > 12;
169
- break;
170
- }
171
- } else c = n === (o ? "pm" : "PM");
172
- return c;
173
- }, b = { A: [h, function(n) {
174
- this.afternoon = g(n, !1);
175
- }], a: [h, function(n) {
176
- this.afternoon = g(n, !0);
177
- }], S: [/\d/, function(n) {
178
- this.milliseconds = 100 * +n;
179
- }], SS: [e, function(n) {
180
- this.milliseconds = 10 * +n;
181
- }], SSS: [/\d{3}/, function(n) {
182
- this.milliseconds = +n;
183
- }], s: [r, a("seconds")], ss: [r, a("seconds")], m: [r, a("minutes")], mm: [r, a("minutes")], H: [r, a("hours")], h: [r, a("hours")], HH: [r, a("hours")], hh: [r, a("hours")], D: [r, a("day")], DD: [e, a("day")], Do: [h, function(n) {
184
- var o = s.ordinal, c = n.match(/\d+/);
185
- if (this.day = c[0], o) for (var f = 1; f <= 31; f += 1) o(f).replace(/\[|\]/g, "") === n && (this.day = f);
186
- }], M: [r, a("month")], MM: [e, a("month")], MMM: [h, function(n) {
187
- var o = y("months"), c = (y("monthsShort") || o.map(function(f) {
188
- return f.slice(0, 3);
189
- })).indexOf(n) + 1;
190
- if (c < 1) throw new Error();
191
- this.month = c % 12 || c;
192
- }], MMMM: [h, function(n) {
193
- var o = y("months").indexOf(n) + 1;
194
- if (o < 1) throw new Error();
195
- this.month = o % 12 || o;
196
- }], Y: [/[+-]?\d+/, a("year")], YY: [e, function(n) {
197
- this.year = i(n);
198
- }], YYYY: [/\d{4}/, a("year")], Z: m, ZZ: m };
199
- function x(n) {
200
- var o, c;
201
- o = n, c = s && s.formats;
202
- for (var f = (n = o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(P, j, L) {
203
- var D = L && L.toUpperCase();
204
- return j || c[L] || d[L] || c[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(z, S, C) {
205
- return S || C.slice(1);
206
- });
207
- })).match(t), T = f.length, w = 0; w < T; w += 1) {
208
- var H = f[w], A = b[H], k = A && A[0], O = A && A[1];
209
- f[w] = O ? { regex: k, parser: O } : H.replace(/^\[|\]$/g, "");
210
- }
211
- return function(P) {
212
- for (var j = {}, L = 0, D = 0; L < T; L += 1) {
213
- var z = f[L];
214
- if (typeof z == "string") D += z.length;
215
- else {
216
- var S = z.regex, C = z.parser, I = P.slice(D), U = S.exec(I)[0];
217
- C.call(j, U), P = P.replace(U, "");
218
- }
219
- }
220
- return function(v) {
221
- var Y = v.afternoon;
222
- if (Y !== void 0) {
223
- var W = v.hours;
224
- Y ? W < 12 && (v.hours += 12) : W === 12 && (v.hours = 0), delete v.afternoon;
225
- }
226
- }(j), j;
227
- };
228
- }
229
- return function(n, o, c) {
230
- c.p.customParseFormat = !0, n && n.parseTwoDigitYear && (i = n.parseTwoDigitYear);
231
- var f = o.prototype, T = f.parse;
232
- f.parse = function(w) {
233
- var H = w.date, A = w.utc, k = w.args;
234
- this.$u = A;
235
- var O = k[1];
236
- if (typeof O == "string") {
237
- var P = k[2] === !0, j = k[3] === !0, L = P || j, D = k[2];
238
- j && (D = k[2]), s = this.$locale(), !P && D && (s = c.Ls[D]), this.$d = function(I, U, v) {
239
- try {
240
- if (["x", "X"].indexOf(U) > -1) return new Date((U === "X" ? 1e3 : 1) * I);
241
- var Y = x(U)(I), W = Y.year, B = Y.month, ut = Y.day, dt = Y.hours, ct = Y.minutes, ft = Y.seconds, lt = Y.milliseconds, K = Y.zone, _ = /* @__PURE__ */ new Date(), G = ut || (W || B ? 1 : _.getDate()), V = W || _.getFullYear(), N = 0;
242
- W && !B || (N = B > 0 ? B - 1 : _.getMonth());
243
- var Z = dt || 0, X = ct || 0, q = ft || 0, R = lt || 0;
244
- return K ? new Date(Date.UTC(V, N, G, Z, X, q, R + 60 * K.offset * 1e3)) : v ? new Date(Date.UTC(V, N, G, Z, X, q, R)) : new Date(V, N, G, Z, X, q, R);
245
- } catch {
246
- return /* @__PURE__ */ new Date("");
247
- }
248
- }(H, O, A), this.init(), D && D !== !0 && (this.$L = this.locale(D).$L), L && H != this.format(O) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
249
- } else if (O instanceof Array) for (var z = O.length, S = 1; S <= z; S += 1) {
250
- k[1] = O[S - 1];
251
- var C = c.apply(this, k);
252
- if (C.isValid()) {
253
- this.$d = C.$d, this.$L = C.$L, this.init();
254
- break;
255
- }
256
- S === z && (this.$d = /* @__PURE__ */ new Date(""));
257
- }
258
- else T.call(this, w);
259
- };
260
- };
261
- });
262
- })(it);
263
- var xt = it.exports;
264
- const Lt = /* @__PURE__ */ F(xt);
265
- var at = { exports: {} };
266
- (function(l, p) {
267
- (function(d, t) {
268
- l.exports = t();
269
- })(E, function() {
270
- var d = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
271
- return function(t, e, r) {
272
- var h = e.prototype, s = h.format;
273
- r.en.formats = d, h.format = function(i) {
274
- i === void 0 && (i = "YYYY-MM-DDTHH:mm:ssZ");
275
- var a = this.$locale().formats, m = function(y, g) {
276
- return y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(b, x, n) {
277
- var o = n && n.toUpperCase();
278
- return x || g[n] || d[n] || g[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(c, f, T) {
279
- return f || T.slice(1);
280
- });
281
- });
282
- }(i, a === void 0 ? {} : a);
283
- return s.call(this, m);
284
- };
285
- };
286
- });
287
- })(at);
288
- var wt = at.exports;
289
- const kt = /* @__PURE__ */ F(wt);
290
- var ot = { exports: {} };
291
- (function(l, p) {
292
- (function(d, t) {
293
- l.exports = t();
294
- })(E, function() {
295
- return function(d, t, e) {
296
- t.prototype.isBetween = function(r, h, s, i) {
297
- var a = e(r), m = e(h), y = (i = i || "()")[0] === "(", g = i[1] === ")";
298
- return (y ? this.isAfter(a, s) : !this.isBefore(a, s)) && (g ? this.isBefore(m, s) : !this.isAfter(m, s)) || (y ? this.isBefore(a, s) : !this.isAfter(a, s)) && (g ? this.isAfter(m, s) : !this.isBefore(m, s));
299
- };
300
- };
301
- });
302
- })(ot);
303
- var Ot = ot.exports;
304
- const bt = /* @__PURE__ */ F(Ot);
305
- var ht = { exports: {} };
306
- (function(l, p) {
307
- (function(d, t) {
308
- l.exports = t();
309
- })(E, function() {
310
- return function(d, t) {
311
- var e = t.prototype, r = e.format;
312
- e.format = function(h) {
313
- var s = this, i = this.$locale();
314
- if (!this.isValid()) return r.bind(this)(h);
315
- var a = this.$utils(), m = (h || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, function(y) {
316
- switch (y) {
317
- case "Q":
318
- return Math.ceil((s.$M + 1) / 3);
319
- case "Do":
320
- return i.ordinal(s.$D);
321
- case "gggg":
322
- return s.weekYear();
323
- case "GGGG":
324
- return s.isoWeekYear();
325
- case "wo":
326
- return i.ordinal(s.week(), "W");
327
- case "w":
328
- case "ww":
329
- return a.s(s.week(), y === "w" ? 1 : 2, "0");
330
- case "W":
331
- case "WW":
332
- return a.s(s.isoWeek(), y === "W" ? 1 : 2, "0");
333
- case "k":
334
- case "kk":
335
- return a.s(String(s.$H === 0 ? 24 : s.$H), y === "k" ? 1 : 2, "0");
336
- case "X":
337
- return Math.floor(s.$d.getTime() / 1e3);
338
- case "x":
339
- return s.$d.getTime();
340
- case "z":
341
- return "[" + s.offsetName() + "]";
342
- case "zzz":
343
- return "[" + s.offsetName("long") + "]";
344
- default:
345
- return y;
346
- }
347
- });
348
- return r.bind(this)(m);
349
- };
350
- };
351
- });
352
- })(ht);
353
- var jt = ht.exports;
354
- const zt = /* @__PURE__ */ F(jt);
355
- M.extend(kt);
356
- M.extend(Yt);
357
- M.extend(bt);
358
- M.extend(zt);
359
- const St = gt(["Your locale has not been found.", "Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale", "Or you forget to import the locale from 'dayjs/locale/{localeUsed}'", "fallback on English locale"]), At = {
360
- // Year
361
- YY: "year",
362
- YYYY: {
363
- sectionType: "year",
364
- contentType: "digit",
365
- maxLength: 4
366
- },
367
- // Month
368
- M: {
369
- sectionType: "month",
370
- contentType: "digit",
371
- maxLength: 2
372
- },
373
- MM: "month",
374
- MMM: {
375
- sectionType: "month",
376
- contentType: "letter"
377
- },
378
- MMMM: {
379
- sectionType: "month",
380
- contentType: "letter"
381
- },
382
- // Day of the month
383
- D: {
384
- sectionType: "day",
385
- contentType: "digit",
386
- maxLength: 2
387
- },
388
- DD: "day",
389
- Do: {
390
- sectionType: "day",
391
- contentType: "digit-with-letter"
392
- },
393
- // Day of the week
394
- d: {
395
- sectionType: "weekDay",
396
- contentType: "digit",
397
- maxLength: 2
398
- },
399
- dd: {
400
- sectionType: "weekDay",
401
- contentType: "letter"
402
- },
403
- ddd: {
404
- sectionType: "weekDay",
405
- contentType: "letter"
406
- },
407
- dddd: {
408
- sectionType: "weekDay",
409
- contentType: "letter"
410
- },
411
- // Meridiem
412
- A: "meridiem",
413
- a: "meridiem",
414
- // Hours
415
- H: {
416
- sectionType: "hours",
417
- contentType: "digit",
418
- maxLength: 2
419
- },
420
- HH: "hours",
421
- h: {
422
- sectionType: "hours",
423
- contentType: "digit",
424
- maxLength: 2
425
- },
426
- hh: "hours",
427
- // Minutes
428
- m: {
429
- sectionType: "minutes",
430
- contentType: "digit",
431
- maxLength: 2
432
- },
433
- mm: "minutes",
434
- // Seconds
435
- s: {
436
- sectionType: "seconds",
437
- contentType: "digit",
438
- maxLength: 2
439
- },
440
- ss: "seconds"
441
- }, Pt = {
442
- year: "YYYY",
443
- month: "MMMM",
444
- monthShort: "MMM",
445
- dayOfMonth: "D",
446
- dayOfMonthFull: "Do",
447
- weekday: "dddd",
448
- weekdayShort: "dd",
449
- hours24h: "HH",
450
- hours12h: "hh",
451
- meridiem: "A",
452
- minutes: "mm",
453
- seconds: "ss",
454
- fullDate: "ll",
455
- keyboardDate: "L",
456
- shortDate: "MMM D",
457
- normalDate: "D MMMM",
458
- normalDateWithWeekday: "ddd, MMM D",
459
- fullTime: "LT",
460
- fullTime12h: "hh:mm A",
461
- fullTime24h: "HH:mm",
462
- keyboardDateTime: "L LT",
463
- keyboardDateTime12h: "L hh:mm A",
464
- keyboardDateTime24h: "L HH:mm"
465
- }, Q = ["Missing UTC plugin", "To be able to use UTC or timezones, you have to enable the `utc` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
466
- `), tt = ["Missing timezone plugin", "To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
467
- `), Ct = (l, p) => p ? (...d) => l(...d).locale(p) : l;
468
- class vt {
469
- constructor({
470
- locale: p,
471
- formats: d
472
- } = {}) {
473
- this.isMUIAdapter = !0, this.isTimezoneCompatible = !0, this.lib = "dayjs", this.dayjs = void 0, this.locale = void 0, this.formats = void 0, this.escapedCharacters = {
474
- start: "[",
475
- end: "]"
476
- }, this.formatTokenMap = At, this.setLocaleToValue = (t) => {
477
- const e = this.getCurrentLocaleCode();
478
- return e === t.locale() ? t : t.locale(e);
479
- }, this.hasUTCPlugin = () => typeof M.utc < "u", this.hasTimezonePlugin = () => typeof M.tz < "u", this.isSame = (t, e, r) => {
480
- const h = this.setTimezone(e, this.getTimezone(t));
481
- return t.format(r) === h.format(r);
482
- }, this.cleanTimezone = (t) => {
483
- switch (t) {
484
- case "default":
485
- return;
486
- case "system":
487
- return M.tz.guess();
488
- default:
489
- return t;
490
- }
491
- }, this.createSystemDate = (t) => {
492
- if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
493
- const e = M.tz.guess();
494
- return e !== "UTC" ? M.tz(t, e) : M(t);
495
- }
496
- return M(t);
497
- }, this.createUTCDate = (t) => {
498
- if (!this.hasUTCPlugin())
499
- throw new Error(Q);
500
- return M.utc(t);
501
- }, this.createTZDate = (t, e) => {
502
- if (!this.hasUTCPlugin())
503
- throw new Error(Q);
504
- if (!this.hasTimezonePlugin())
505
- throw new Error(tt);
506
- const r = t !== void 0 && !t.endsWith("Z");
507
- return M(t).tz(this.cleanTimezone(e), r);
508
- }, this.getLocaleFormats = () => {
509
- const t = M.Ls, e = this.locale || "en";
510
- let r = t[e];
511
- return r === void 0 && (St(), r = t.en), r.formats;
512
- }, this.adjustOffset = (t) => {
513
- if (!this.hasTimezonePlugin())
514
- return t;
515
- const e = this.getTimezone(t);
516
- if (e !== "UTC") {
517
- const r = t.tz(this.cleanTimezone(e), !0);
518
- if ((r.$offset ?? 0) === (t.$offset ?? 0))
519
- return t;
520
- t.$offset = r.$offset;
521
- }
522
- return t;
523
- }, this.date = (t, e = "default") => {
524
- if (t === null)
525
- return null;
526
- let r;
527
- return e === "UTC" ? r = this.createUTCDate(t) : e === "system" || e === "default" && !this.hasTimezonePlugin() ? r = this.createSystemDate(t) : r = this.createTZDate(t, e), this.locale === void 0 ? r : r.locale(this.locale);
528
- }, this.getInvalidDate = () => M(/* @__PURE__ */ new Date("Invalid date")), this.getTimezone = (t) => {
529
- var e;
530
- if (this.hasTimezonePlugin()) {
531
- const r = (e = t.$x) == null ? void 0 : e.$timezone;
532
- if (r)
533
- return r;
534
- }
535
- return this.hasUTCPlugin() && t.isUTC() ? "UTC" : "system";
536
- }, this.setTimezone = (t, e) => {
537
- if (this.getTimezone(t) === e)
538
- return t;
539
- if (e === "UTC") {
540
- if (!this.hasUTCPlugin())
541
- throw new Error(Q);
542
- return t.utc();
543
- }
544
- if (e === "system")
545
- return t.local();
546
- if (!this.hasTimezonePlugin()) {
547
- if (e === "default")
548
- return t;
549
- throw new Error(tt);
550
- }
551
- return M.tz(t, this.cleanTimezone(e));
552
- }, this.toJsDate = (t) => t.toDate(), this.parse = (t, e) => t === "" ? null : this.dayjs(t, e, this.locale, !0), this.getCurrentLocaleCode = () => this.locale || "en", this.is12HourCycleInCurrentLocale = () => /A|a/.test(this.getLocaleFormats().LT || ""), this.expandFormat = (t) => {
553
- const e = this.getLocaleFormats(), r = (h) => h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (s, i, a) => i || a.slice(1));
554
- return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (h, s, i) => {
555
- const a = i && i.toUpperCase();
556
- return s || e[i] || r(e[a]);
557
- });
558
- }, this.isValid = (t) => t == null ? !1 : t.isValid(), this.format = (t, e) => this.formatByString(t, this.formats[e]), this.formatByString = (t, e) => this.dayjs(t).format(e), this.formatNumber = (t) => t, this.isEqual = (t, e) => t === null && e === null ? !0 : t === null || e === null ? !1 : t.toDate().getTime() === e.toDate().getTime(), this.isSameYear = (t, e) => this.isSame(t, e, "YYYY"), this.isSameMonth = (t, e) => this.isSame(t, e, "YYYY-MM"), this.isSameDay = (t, e) => this.isSame(t, e, "YYYY-MM-DD"), this.isSameHour = (t, e) => t.isSame(e, "hour"), this.isAfter = (t, e) => t > e, this.isAfterYear = (t, e) => this.hasUTCPlugin() ? !this.isSameYear(t, e) && t.utc() > e.utc() : t.isAfter(e, "year"), this.isAfterDay = (t, e) => this.hasUTCPlugin() ? !this.isSameDay(t, e) && t.utc() > e.utc() : t.isAfter(e, "day"), this.isBefore = (t, e) => t < e, this.isBeforeYear = (t, e) => this.hasUTCPlugin() ? !this.isSameYear(t, e) && t.utc() < e.utc() : t.isBefore(e, "year"), this.isBeforeDay = (t, e) => this.hasUTCPlugin() ? !this.isSameDay(t, e) && t.utc() < e.utc() : t.isBefore(e, "day"), this.isWithinRange = (t, [e, r]) => t >= e && t <= r, this.startOfYear = (t) => this.adjustOffset(t.startOf("year")), this.startOfMonth = (t) => this.adjustOffset(t.startOf("month")), this.startOfWeek = (t) => this.adjustOffset(t.startOf("week")), this.startOfDay = (t) => this.adjustOffset(t.startOf("day")), this.endOfYear = (t) => this.adjustOffset(t.endOf("year")), this.endOfMonth = (t) => this.adjustOffset(t.endOf("month")), this.endOfWeek = (t) => this.adjustOffset(t.endOf("week")), this.endOfDay = (t) => this.adjustOffset(t.endOf("day")), this.addYears = (t, e) => this.adjustOffset(e < 0 ? t.subtract(Math.abs(e), "year") : t.add(e, "year")), this.addMonths = (t, e) => this.adjustOffset(e < 0 ? t.subtract(Math.abs(e), "month") : t.add(e, "month")), this.addWeeks = (t, e) => this.adjustOffset(e < 0 ? t.subtract(Math.abs(e), "week") : t.add(e, "week")), this.addDays = (t, e) => this.adjustOffset(e < 0 ? t.subtract(Math.abs(e), "day") : t.add(e, "day")), this.addHours = (t, e) => this.adjustOffset(e < 0 ? t.subtract(Math.abs(e), "hour") : t.add(e, "hour")), this.addMinutes = (t, e) => this.adjustOffset(e < 0 ? t.subtract(Math.abs(e), "minute") : t.add(e, "minute")), this.addSeconds = (t, e) => this.adjustOffset(e < 0 ? t.subtract(Math.abs(e), "second") : t.add(e, "second")), this.getYear = (t) => t.year(), this.getMonth = (t) => t.month(), this.getDate = (t) => t.date(), this.getHours = (t) => t.hour(), this.getMinutes = (t) => t.minute(), this.getSeconds = (t) => t.second(), this.getMilliseconds = (t) => t.millisecond(), this.setYear = (t, e) => this.adjustOffset(t.set("year", e)), this.setMonth = (t, e) => this.adjustOffset(t.set("month", e)), this.setDate = (t, e) => this.adjustOffset(t.set("date", e)), this.setHours = (t, e) => this.adjustOffset(t.set("hour", e)), this.setMinutes = (t, e) => this.adjustOffset(t.set("minute", e)), this.setSeconds = (t, e) => this.adjustOffset(t.set("second", e)), this.setMilliseconds = (t, e) => this.adjustOffset(t.set("millisecond", e)), this.getDaysInMonth = (t) => t.daysInMonth(), this.getWeekArray = (t) => {
559
- const e = this.setLocaleToValue(t), r = this.startOfWeek(this.startOfMonth(e)), h = this.endOfWeek(this.endOfMonth(e));
560
- let s = 0, i = r;
561
- const a = [];
562
- for (; i < h; ) {
563
- const m = Math.floor(s / 7);
564
- a[m] = a[m] || [], a[m].push(i), i = this.addDays(i, 1), s += 1;
565
- }
566
- return a;
567
- }, this.getWeekNumber = (t) => t.week(), this.getYearRange = ([t, e]) => {
568
- const r = this.startOfYear(t), h = this.endOfYear(e), s = [];
569
- let i = r;
570
- for (; this.isBefore(i, h); )
571
- s.push(i), i = this.addYears(i, 1);
572
- return s;
573
- }, this.dayjs = Ct(M, p), this.locale = p, this.formats = rt({}, Pt, d), M.extend(Lt);
574
- }
575
- getDayOfWeek(p) {
576
- return p.day() + 1;
577
- }
578
- }
579
- const Et = ({ adapterLocale: l = "fr", ...p }) => /* @__PURE__ */ et(
580
- st,
581
- {
582
- dateAdapter: vt,
583
- adapterLocale: l,
584
- ...p
585
- }
586
- );
587
- export {
588
- Et as L,
589
- J as M,
590
- st as a,
591
- gt as b
592
- };
@@ -1 +0,0 @@
1
- "use strict";const r=require("react/jsx-runtime"),l=require("./styled-RtRlBNlZ.cjs"),m=require("./InputBase-zXQ1Gs_-.cjs"),e=require("./identifier-DPVk4rwk.cjs"),C=require("react"),T=require("./extendSxProp-DYKVP-ko.cjs"),E=require("./Typography-B_CzXKnG.cjs"),S=require("./createSvgIcon-Dm2nQR21.cjs");function A(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,s.get?s:{enumerable:!0,get:()=>t[o]})}}return n.default=t,Object.freeze(n)}const b=A(C);function O(t){return e.generateUtilityClass("MuiInputAdornment",t)}const P=T.generateUtilityClasses("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var g;const _=["children","className","component","disablePointerEvents","disableTypography","position","variant"],q=(t,n)=>{const{ownerState:o}=t;return[n.root,n[`position${e.capitalize(o.position)}`],o.disablePointerEvents===!0&&n.disablePointerEvents,n[o.variant]]},z=t=>{const{classes:n,disablePointerEvents:o,hiddenLabel:s,position:i,size:p,variant:c}=t,d={root:["root",o&&"disablePointerEvents",i&&`position${e.capitalize(i)}`,c,s&&"hiddenLabel",p&&`size${e.capitalize(p)}`]};return l.composeClasses(d,O,n)},M=l.styled("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:q})(({theme:t,ownerState:n})=>e._extends({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},n.variant==="filled"&&{[`&.${P.positionStart}&:not(.${P.hiddenLabel})`]:{marginTop:16}},n.position==="start"&&{marginRight:8},n.position==="end"&&{marginLeft:8},n.disablePointerEvents===!0&&{pointerEvents:"none"})),v=b.forwardRef(function(n,o){const s=l.useDefaultProps({props:n,name:"MuiInputAdornment"}),{children:i,className:p,component:c="div",disablePointerEvents:d=!1,disableTypography:x=!1,position:f,variant:u}=s,I=e._objectWithoutPropertiesLoose(s,_),a=m.useFormControl()||{};let y=u;u&&a.variant&&process.env.NODE_ENV!=="production"&&u===a.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),a&&!y&&(y=a.variant);const h=e._extends({},s,{hiddenLabel:a.hiddenLabel,size:a.size,disablePointerEvents:d,position:f,variant:y}),j=z(h);return r.jsx(m.FormControlContext.Provider,{value:null,children:r.jsx(M,e._extends({as:c,ownerState:h,className:T.clsx(j.root,p),ref:o},I,{children:typeof i=="string"&&!x?r.jsx(E.Typography,{color:"text.secondary",children:i}):r.jsxs(b.Fragment,{children:[f==="start"?g||(g=r.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})});process.env.NODE_ENV!=="production"&&(v.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,disablePointerEvents:e.PropTypes.bool,disableTypography:e.PropTypes.bool,position:e.PropTypes.oneOf(["end","start"]).isRequired,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),variant:e.PropTypes.oneOf(["filled","outlined","standard"])});const N=S.createSvgIcon(r.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),R=l.styled(m.InputBase)(({theme:t})=>({width:"auto",padding:"0px 12px",backgroundColor:t.palette.grey[50],borderRadius:30,"& .MuiInputBase-input":{padding:"8px 0px"},"&:hover, &.Mui-focused":{"& .MuiInputAdornment-root":{color:t.palette.primary.main}}})),L=({placeholder:t="Rechercher",...n})=>r.jsx(R,{...n,placeholder:t,startAdornment:r.jsx(v,{position:"start",disablePointerEvents:!0,children:r.jsx(N,{})}),type:"search",autoComplete:"off",autoCorrect:"off",spellCheck:!1});exports.InputAdornment=v;exports.SearchInput=L;
@@ -1 +0,0 @@
1
- "use strict";const e=require("./identifier-DPVk4rwk.cjs"),N=require("./styled-RtRlBNlZ.cjs"),G=require("react"),V=require("./extendSxProp-DYKVP-ko.cjs"),W=require("react/jsx-runtime"),U=require("./useThemeProps-CEiKfXBZ.cjs");function z(o){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const p=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(s,r,p.get?p:{enumerable:!0,get:()=>o[r]})}}return s.default=o,Object.freeze(s)}const E=z(G),I=["ownerState"],H=["variants"],J=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function K(o){return Object.keys(o).length===0}function Q(o){return typeof o=="string"&&o.charCodeAt(0)>96}function w(o){return o!=="ownerState"&&o!=="theme"&&o!=="sx"&&o!=="as"}const X=e.createTheme$1(),B=o=>o&&o.charAt(0).toLowerCase()+o.slice(1);function g({defaultTheme:o,theme:s,themeId:r}){return K(s)?o:s[r]||s}function Y(o){return o?(s,r)=>r[o]:null}function R(o,s){let{ownerState:r}=s,p=e._objectWithoutPropertiesLoose(s,I);const c=typeof o=="function"?o(e._extends({ownerState:r},p)):o;if(Array.isArray(c))return c.flatMap(i=>R(i,e._extends({ownerState:r},p)));if(c&&typeof c=="object"&&Array.isArray(c.variants)){const{variants:i=[]}=c;let d=e._objectWithoutPropertiesLoose(c,H);return i.forEach(t=>{let n=!0;typeof t.props=="function"?n=t.props(e._extends({ownerState:r},p,r)):Object.keys(t.props).forEach(y=>{(r==null?void 0:r[y])!==t.props[y]&&p[y]!==t.props[y]&&(n=!1)}),n&&(Array.isArray(d)||(d=[d]),d.push(typeof t.style=="function"?t.style(e._extends({ownerState:r},p,r)):t.style))}),d}return c}function Z(o={}){const{themeId:s,defaultTheme:r=X,rootShouldForwardProp:p=w,slotShouldForwardProp:c=w}=o,i=l=>e.styleFunctionSx(e._extends({},l,{theme:g(e._extends({},l,{defaultTheme:r,themeId:s}))}));return i.__mui_systemSx=!0,(l,d={})=>{V.internal_processStyles(l,u=>u.filter(m=>!(m!=null&&m.__mui_systemSx)));const{name:t,slot:n,skipVariantsResolver:y,skipSx:h,overridesResolver:T=Y(B(n))}=d,C=e._objectWithoutPropertiesLoose(d,J),D=y!==void 0?y:n&&n!=="Root"&&n!=="root"||!1,_=h||!1;let v;process.env.NODE_ENV!=="production"&&t&&(v=`${t}-${B(n||"Root")}`);let P=w;n==="Root"||n==="root"?P=p:n?P=c:Q(l)&&(P=void 0);const O=V.styled(l,e._extends({shouldForwardProp:P,label:v},C)),b=u=>typeof u=="function"&&u.__emotion_real!==u||e.isPlainObject(u)?m=>R(u,e._extends({},m,{theme:g({theme:m.theme,defaultTheme:r,themeId:s})})):u,j=(u,...m)=>{let F=b(u);const S=m?m.map(b):[];t&&T&&S.push(a=>{const f=g(e._extends({},a,{defaultTheme:r,themeId:s}));if(!f.components||!f.components[t]||!f.components[t].styleOverrides)return null;const x=f.components[t].styleOverrides,k={};return Object.entries(x).forEach(([q,L])=>{k[q]=R(L,e._extends({},a,{theme:f}))}),T(a,k)}),t&&!D&&S.push(a=>{var f;const x=g(e._extends({},a,{defaultTheme:r,themeId:s})),k=x==null||(f=x.components)==null||(f=f[t])==null?void 0:f.variants;return R({variants:k},e._extends({},a,{theme:x}))}),_||S.push(i);const A=S.length-m.length;if(Array.isArray(u)&&A>0){const a=new Array(A).fill("");F=[...u,...a],F.raw=[...u.raw,...a]}const $=O(F,...S);if(process.env.NODE_ENV!=="production"){let a;t&&(a=`${t}${e.capitalize(n||"")}`),a===void 0&&(a=`Styled(${N.getDisplayName(l)})`),$.displayName=a}return l.muiName&&($.muiName=l.muiName),$};return O.withConfig&&(j.withConfig=O.withConfig),j}}const ee=Z(),oe=["component","direction","spacing","divider","children","className","useFlexGap"],re=e.createTheme$1(),te=ee("div",{name:"MuiStack",slot:"Root",overridesResolver:(o,s)=>s.root});function se(o){return U.useThemeProps({props:o,name:"MuiStack",defaultTheme:re})}function ne(o,s){const r=E.Children.toArray(o).filter(Boolean);return r.reduce((p,c,i)=>(p.push(c),i<r.length-1&&p.push(E.cloneElement(s,{key:`separator-${i}`})),p),[])}const pe=o=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[o],ie=({ownerState:o,theme:s})=>{let r=e._extends({display:"flex",flexDirection:"column"},e.handleBreakpoints({theme:s},e.resolveBreakpointValues({values:o.direction,breakpoints:s.breakpoints.values}),p=>({flexDirection:p})));if(o.spacing){const p=e.createUnarySpacing(s),c=Object.keys(s.breakpoints.values).reduce((t,n)=>((typeof o.spacing=="object"&&o.spacing[n]!=null||typeof o.direction=="object"&&o.direction[n]!=null)&&(t[n]=!0),t),{}),i=e.resolveBreakpointValues({values:o.direction,base:c}),l=e.resolveBreakpointValues({values:o.spacing,base:c});typeof i=="object"&&Object.keys(i).forEach((t,n,y)=>{if(!i[t]){const T=n>0?i[y[n-1]]:"column";i[t]=T}});const d=(t,n)=>o.useFlexGap?{gap:e.getValue(p,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${pe(n?i[n]:o.direction)}`]:e.getValue(p,t)}};r=e.deepmerge(r,e.handleBreakpoints({theme:s},l,d))}return r=e.mergeBreakpointsInOrder(s.breakpoints,r),r};function ce(o={}){const{createStyledComponent:s=te,useThemeProps:r=se,componentName:p="MuiStack"}=o,c=()=>{const d={root:["root"]};return N.composeClasses(d,t=>e.generateUtilityClass(p,t),{})},i=s(ie),l=E.forwardRef(function(t,n){const y=r(t),h=V.extendSxProp(y),{component:T="div",direction:C="column",spacing:D=0,divider:_,children:v,className:P,useFlexGap:O=!1}=h,b=e._objectWithoutPropertiesLoose(h,oe),j={direction:C,spacing:D,useFlexGap:O},u=c();return W.jsx(i,e._extends({as:T,ownerState:j,ref:n,className:V.clsx(u.root,P)},b,{children:_?ne(v,_):v}))});return process.env.NODE_ENV!=="production"&&(l.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])}),l}const M=ce({createStyledComponent:N.styled("div",{name:"MuiStack",slot:"Root",overridesResolver:(o,s)=>s.root}),useThemeProps:o=>N.useDefaultProps({props:o,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(M.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});const le=M;exports.Stack=le;exports.shouldForwardProp=w;