@cgi-learning-hub/ui 0.0.1-dev.1709713063 → 0.0.1-dev.1709719281

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 (82) hide show
  1. package/dist/{Box-DbTiG4H5.js → Box-CXP-5h9P.js} +3 -3
  2. package/dist/{ButtonBase-Cj0VAGSo.js → ButtonBase-DpD6huF3.js} +3 -3
  3. package/dist/{CircularProgress-BqQQW0l9.js → CircularProgress-C07SUcYf.js} +3 -3
  4. package/dist/{DefaultButton-DdQUbrXq.js → DefaultButton-_mrCx6TQ.js} +6 -6
  5. package/dist/{IconButton-BO0e0bGH.js → IconButton-BUJX1Kz7.js} +4 -4
  6. package/dist/{InputBase-D-C0U1Q3.js → InputBase-U35goXkW.js} +3 -3
  7. package/dist/LocalizationProvider-CEOwVRxT.js +903 -0
  8. package/dist/LocalizationProvider-DqwEOZOd.cjs +5 -0
  9. package/dist/{SearchInput-Ef9mtSE4.js → SearchInput-lqqR8CpF.js} +5 -5
  10. package/dist/{Tabs-DlViPyxj.js → Tabs-D8c80LIh.js} +7 -7
  11. package/dist/{TextInput-qJONVcHy.cjs → TextInput-Bnnhldff.cjs} +1 -1
  12. package/dist/{TextInput-BzLHXWGA.js → TextInput-Cg3iPUXm.js} +158 -158
  13. package/dist/{TimePicker-R9IvHk5c.js → TimePicker-C2DgLcWo.js} +15 -15
  14. package/dist/{TimePicker-BhAd6Y8r.cjs → TimePicker-w1u-gt1V.cjs} +1 -1
  15. package/dist/{Typography-gyI1N9sP.js → Typography-CMZpK-6k.js} +2 -2
  16. package/dist/components/Dropzone/Dropzone.es.js +5 -5
  17. package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +1 -1
  18. package/dist/components/LocalizationProvider/LocalizationProvider.es.js +2 -3
  19. package/dist/components/LocalizationProvider/index.cjs.js +1 -1
  20. package/dist/components/LocalizationProvider/index.es.js +1 -1
  21. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +3 -3
  22. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +2 -2
  23. package/dist/components/buttons/DefaultButton/index.es.js +1 -1
  24. package/dist/components/buttons/IconButton.stories.es.js +2 -2
  25. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +2 -2
  26. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  27. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +2 -2
  28. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  29. package/dist/components/buttons/index.es.js +1 -1
  30. package/dist/components/feedback/Alert/Alert.cjs.js +1 -0
  31. package/dist/components/feedback/Alert/Alert.d.ts +7 -0
  32. package/dist/components/feedback/Alert/Alert.es.js +32 -0
  33. package/dist/components/feedback/Alert/Alert.stories.cjs.js +1 -0
  34. package/dist/components/feedback/Alert/Alert.stories.es.js +17 -0
  35. package/dist/components/feedback/Alert/index.cjs.js +1 -0
  36. package/dist/components/feedback/Alert/index.d.ts +2 -0
  37. package/dist/components/feedback/Alert/index.es.js +4 -0
  38. package/dist/components/feedback/index.cjs.js +1 -0
  39. package/dist/components/feedback/index.d.ts +1 -0
  40. package/dist/components/feedback/index.es.js +4 -0
  41. package/dist/components/index.cjs.js +1 -1
  42. package/dist/components/index.d.ts +1 -0
  43. package/dist/components/index.es.js +22 -22
  44. package/dist/components/inputs/SearchInput/SearchInput.es.js +3 -3
  45. package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +1 -1
  46. package/dist/components/inputs/SearchInput/index.es.js +1 -1
  47. package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
  48. package/dist/components/inputs/TextInput/TextInput.d.ts +0 -1
  49. package/dist/components/inputs/TextInput/TextInput.es.js +4 -3
  50. package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
  51. package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
  52. package/dist/components/inputs/TextInput/index.cjs.js +1 -1
  53. package/dist/components/inputs/TextInput/index.es.js +1 -1
  54. package/dist/components/inputs/index.cjs.js +1 -1
  55. package/dist/components/inputs/index.d.ts +0 -1
  56. package/dist/components/inputs/index.es.js +4 -6
  57. package/dist/components/lists/FileList/FileList.es.js +1 -1
  58. package/dist/components/lists/FileList/FileListItem.es.js +5 -5
  59. package/dist/components/lists/TabList.stories.es.js +3 -3
  60. package/dist/{createSvgIcon-D51qQ1iy.js → createSvgIcon-C2SxpGh8.js} +2 -2
  61. package/dist/{createSvgIcon-RcVfBE0a.js → createSvgIcon-CQqNddEV.js} +6 -6
  62. package/dist/index.cjs.js +1 -1
  63. package/dist/index.es.js +20 -20
  64. package/dist/{refType-CRZJc9ll.js → refType-ONErEPrN.js} +1 -1
  65. package/dist/{styled-Cu97anhh.js → styled-CennO0rX.js} +1 -1
  66. package/dist/{useSlotProps-BE7y-efU.js → useSlotProps-BojAgRB1.js} +2 -2
  67. package/dist/{useTheme-zz1qDqSf.js → useTheme-Dnkg8lL1.js} +1 -1
  68. package/dist/{useThemeProps-HPaoKsTZ.js → useThemeProps-HgPikzOW.js} +5 -5
  69. package/package.json +1 -1
  70. package/dist/LocalizationProvider-BqhYrFIl.js +0 -573
  71. package/dist/LocalizationProvider-CAosaaEW.cjs +0 -5
  72. package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +0 -1
  73. package/dist/components/inputs/PasswordInput/PasswordInput.d.ts +0 -5
  74. package/dist/components/inputs/PasswordInput/PasswordInput.es.js +0 -43
  75. package/dist/components/inputs/PasswordInput/PasswordInput.stories.cjs.js +0 -1
  76. package/dist/components/inputs/PasswordInput/PasswordInput.stories.es.js +0 -16
  77. package/dist/components/inputs/PasswordInput/index.cjs.js +0 -1
  78. package/dist/components/inputs/PasswordInput/index.d.ts +0 -2
  79. package/dist/components/inputs/PasswordInput/index.es.js +0 -4
  80. package/dist/fr-BmGEYD_b.js +0 -335
  81. package/dist/fr-D4QyQkl7.cjs +0 -1
  82. /package/dist/components/{inputs/PasswordInput/PasswordInput.stories.d.ts → feedback/Alert/Alert.stories.d.ts} +0 -0
@@ -1,573 +0,0 @@
1
- import { jsx as et } from "react/jsx-runtime";
2
- import { r as lt } from "./fr-BmGEYD_b.js";
3
- import { m as F, j as $, _ as st, e as mt, b as yt, P as a } from "./useThemeProps-HPaoKsTZ.js";
4
- import * as H from "react";
5
- var pt = lt();
6
- const M = /* @__PURE__ */ F(pt);
7
- var rt = { exports: {} };
8
- (function(m, p) {
9
- (function(f, u) {
10
- m.exports = u();
11
- })($, function() {
12
- var f = "week", u = "year";
13
- return function(g, t, e) {
14
- var s = t.prototype;
15
- s.week = function(i) {
16
- if (i === void 0 && (i = null), i !== null)
17
- return this.add(7 * (i - this.week()), "day");
18
- var n = this.$locale().yearStart || 1;
19
- if (this.month() === 11 && this.date() > 25) {
20
- var h = e(this).startOf(u).add(1, u).date(n), l = e(this).endOf(f);
21
- if (h.isBefore(l))
22
- return 1;
23
- }
24
- var y = e(this).startOf(u).date(n).startOf(f).subtract(1, "millisecond"), k = this.diff(y, f, !0);
25
- return k < 0 ? e(this).startOf("week").week() : Math.ceil(k);
26
- }, s.weeks = function(i) {
27
- return i === void 0 && (i = null), this.week(i);
28
- };
29
- };
30
- });
31
- })(rt);
32
- var Mt = rt.exports;
33
- const gt = /* @__PURE__ */ F(Mt);
34
- var nt = { exports: {} };
35
- (function(m, p) {
36
- (function(f, u) {
37
- m.exports = u();
38
- })($, function() {
39
- var f = { 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" }, u = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, g = /\d\d/, t = /\d\d?/, e = /\d*[^-_:/,()\s\d]+/, s = {}, i = function(r) {
40
- return (r = +r) + (r > 68 ? 1900 : 2e3);
41
- }, n = function(r) {
42
- return function(o) {
43
- this[r] = +o;
44
- };
45
- }, h = [/[+-]\d\d:?(\d\d)?|Z/, function(r) {
46
- (this.zone || (this.zone = {})).offset = function(o) {
47
- if (!o || o === "Z")
48
- return 0;
49
- var c = o.match(/([+-]|\d\d)/g), d = 60 * c[1] + (+c[2] || 0);
50
- return d === 0 ? 0 : c[0] === "+" ? -d : d;
51
- }(r);
52
- }], l = function(r) {
53
- var o = s[r];
54
- return o && (o.indexOf ? o : o.s.concat(o.f));
55
- }, y = function(r, o) {
56
- var c, d = s.meridiem;
57
- if (d) {
58
- for (var T = 1; T <= 24; T += 1)
59
- if (r.indexOf(d(T, 0, o)) > -1) {
60
- c = T > 12;
61
- break;
62
- }
63
- } else
64
- c = r === (o ? "pm" : "PM");
65
- return c;
66
- }, k = { A: [e, function(r) {
67
- this.afternoon = y(r, !1);
68
- }], a: [e, function(r) {
69
- this.afternoon = y(r, !0);
70
- }], S: [/\d/, function(r) {
71
- this.milliseconds = 100 * +r;
72
- }], SS: [g, function(r) {
73
- this.milliseconds = 10 * +r;
74
- }], SSS: [/\d{3}/, function(r) {
75
- this.milliseconds = +r;
76
- }], s: [t, n("seconds")], ss: [t, n("seconds")], m: [t, n("minutes")], mm: [t, n("minutes")], H: [t, n("hours")], h: [t, n("hours")], HH: [t, n("hours")], hh: [t, n("hours")], D: [t, n("day")], DD: [g, n("day")], Do: [e, function(r) {
77
- var o = s.ordinal, c = r.match(/\d+/);
78
- if (this.day = c[0], o)
79
- for (var d = 1; d <= 31; d += 1)
80
- o(d).replace(/\[|\]/g, "") === r && (this.day = d);
81
- }], M: [t, n("month")], MM: [g, n("month")], MMM: [e, function(r) {
82
- var o = l("months"), c = (l("monthsShort") || o.map(function(d) {
83
- return d.slice(0, 3);
84
- })).indexOf(r) + 1;
85
- if (c < 1)
86
- throw new Error();
87
- this.month = c % 12 || c;
88
- }], MMMM: [e, function(r) {
89
- var o = l("months").indexOf(r) + 1;
90
- if (o < 1)
91
- throw new Error();
92
- this.month = o % 12 || o;
93
- }], Y: [/[+-]?\d+/, n("year")], YY: [g, function(r) {
94
- this.year = i(r);
95
- }], YYYY: [/\d{4}/, n("year")], Z: h, ZZ: h };
96
- function U(r) {
97
- var o, c;
98
- o = r, c = s && s.formats;
99
- for (var d = (r = o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(z, j, L) {
100
- var D = L && L.toUpperCase();
101
- return j || c[L] || f[L] || c[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(b, A, C) {
102
- return A || C.slice(1);
103
- });
104
- })).match(u), T = d.length, x = 0; x < T; x += 1) {
105
- var E = d[x], S = k[E], w = S && S[0], O = S && S[1];
106
- d[x] = O ? { regex: w, parser: O } : E.replace(/^\[|\]$/g, "");
107
- }
108
- return function(z) {
109
- for (var j = {}, L = 0, D = 0; L < T; L += 1) {
110
- var b = d[L];
111
- if (typeof b == "string")
112
- D += b.length;
113
- else {
114
- var A = b.regex, C = b.parser, W = z.slice(D), v = A.exec(W)[0];
115
- C.call(j, v), z = z.replace(v, "");
116
- }
117
- }
118
- return function(P) {
119
- var Y = P.afternoon;
120
- if (Y !== void 0) {
121
- var I = P.hours;
122
- Y ? I < 12 && (P.hours += 12) : I === 12 && (P.hours = 0), delete P.afternoon;
123
- }
124
- }(j), j;
125
- };
126
- }
127
- return function(r, o, c) {
128
- c.p.customParseFormat = !0, r && r.parseTwoDigitYear && (i = r.parseTwoDigitYear);
129
- var d = o.prototype, T = d.parse;
130
- d.parse = function(x) {
131
- var E = x.date, S = x.utc, w = x.args;
132
- this.$u = S;
133
- var O = w[1];
134
- if (typeof O == "string") {
135
- var z = w[2] === !0, j = w[3] === !0, L = z || j, D = w[2];
136
- j && (D = w[2]), s = this.$locale(), !z && D && (s = c.Ls[D]), this.$d = function(W, v, P) {
137
- try {
138
- if (["x", "X"].indexOf(v) > -1)
139
- return new Date((v === "X" ? 1e3 : 1) * W);
140
- var Y = U(v)(W), I = Y.year, B = Y.month, ht = Y.day, dt = Y.hours, ut = Y.minutes, ct = Y.seconds, ft = Y.milliseconds, Q = Y.zone, _ = /* @__PURE__ */ new Date(), Z = ht || (I || B ? 1 : _.getDate()), V = I || _.getFullYear(), N = 0;
141
- I && !B || (N = B > 0 ? B - 1 : _.getMonth());
142
- var J = dt || 0, G = ut || 0, R = ct || 0, q = ft || 0;
143
- return Q ? new Date(Date.UTC(V, N, Z, J, G, R, q + 60 * Q.offset * 1e3)) : P ? new Date(Date.UTC(V, N, Z, J, G, R, q)) : new Date(V, N, Z, J, G, R, q);
144
- } catch {
145
- return /* @__PURE__ */ new Date("");
146
- }
147
- }(E, O, S), this.init(), D && D !== !0 && (this.$L = this.locale(D).$L), L && E != this.format(O) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
148
- } else if (O instanceof Array)
149
- for (var b = O.length, A = 1; A <= b; A += 1) {
150
- w[1] = O[A - 1];
151
- var C = c.apply(this, w);
152
- if (C.isValid()) {
153
- this.$d = C.$d, this.$L = C.$L, this.init();
154
- break;
155
- }
156
- A === b && (this.$d = /* @__PURE__ */ new Date(""));
157
- }
158
- else
159
- T.call(this, x);
160
- };
161
- };
162
- });
163
- })(nt);
164
- var Tt = nt.exports;
165
- const Dt = /* @__PURE__ */ F(Tt);
166
- var it = { exports: {} };
167
- (function(m, p) {
168
- (function(f, u) {
169
- m.exports = u();
170
- })($, function() {
171
- var f = { 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" };
172
- return function(u, g, t) {
173
- var e = g.prototype, s = e.format;
174
- t.en.formats = f, e.format = function(i) {
175
- i === void 0 && (i = "YYYY-MM-DDTHH:mm:ssZ");
176
- var n = this.$locale().formats, h = function(l, y) {
177
- return l.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(k, U, r) {
178
- var o = r && r.toUpperCase();
179
- return U || y[r] || f[r] || y[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(c, d, T) {
180
- return d || T.slice(1);
181
- });
182
- });
183
- }(i, n === void 0 ? {} : n);
184
- return s.call(this, h);
185
- };
186
- };
187
- });
188
- })(it);
189
- var Yt = it.exports;
190
- const Lt = /* @__PURE__ */ F(Yt);
191
- var at = { exports: {} };
192
- (function(m, p) {
193
- (function(f, u) {
194
- m.exports = u();
195
- })($, function() {
196
- return function(f, u, g) {
197
- u.prototype.isBetween = function(t, e, s, i) {
198
- var n = g(t), h = g(e), l = (i = i || "()")[0] === "(", y = i[1] === ")";
199
- return (l ? this.isAfter(n, s) : !this.isBefore(n, s)) && (y ? this.isBefore(h, s) : !this.isAfter(h, s)) || (l ? this.isBefore(n, s) : !this.isAfter(n, s)) && (y ? this.isAfter(h, s) : !this.isBefore(h, s));
200
- };
201
- };
202
- });
203
- })(at);
204
- var xt = at.exports;
205
- const wt = /* @__PURE__ */ F(xt), Ot = (m, p = "warning") => {
206
- let f = !1;
207
- const u = Array.isArray(m) ? m.join(`
208
- `) : m;
209
- return () => {
210
- f || (f = !0, p === "error" ? console.error(u) : console.warn(u));
211
- };
212
- };
213
- M.extend(Dt);
214
- M.extend(Lt);
215
- M.extend(wt);
216
- const kt = Ot(["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"]), jt = {
217
- // Year
218
- YY: "year",
219
- YYYY: {
220
- sectionType: "year",
221
- contentType: "digit",
222
- maxLength: 4
223
- },
224
- // Month
225
- M: {
226
- sectionType: "month",
227
- contentType: "digit",
228
- maxLength: 2
229
- },
230
- MM: "month",
231
- MMM: {
232
- sectionType: "month",
233
- contentType: "letter"
234
- },
235
- MMMM: {
236
- sectionType: "month",
237
- contentType: "letter"
238
- },
239
- // Day of the month
240
- D: {
241
- sectionType: "day",
242
- contentType: "digit",
243
- maxLength: 2
244
- },
245
- DD: "day",
246
- Do: {
247
- sectionType: "day",
248
- contentType: "digit-with-letter"
249
- },
250
- // Day of the week
251
- d: {
252
- sectionType: "weekDay",
253
- contentType: "digit",
254
- maxLength: 2
255
- },
256
- dd: {
257
- sectionType: "weekDay",
258
- contentType: "letter"
259
- },
260
- ddd: {
261
- sectionType: "weekDay",
262
- contentType: "letter"
263
- },
264
- dddd: {
265
- sectionType: "weekDay",
266
- contentType: "letter"
267
- },
268
- // Meridiem
269
- A: "meridiem",
270
- a: "meridiem",
271
- // Hours
272
- H: {
273
- sectionType: "hours",
274
- contentType: "digit",
275
- maxLength: 2
276
- },
277
- HH: "hours",
278
- h: {
279
- sectionType: "hours",
280
- contentType: "digit",
281
- maxLength: 2
282
- },
283
- hh: "hours",
284
- // Minutes
285
- m: {
286
- sectionType: "minutes",
287
- contentType: "digit",
288
- maxLength: 2
289
- },
290
- mm: "minutes",
291
- // Seconds
292
- s: {
293
- sectionType: "seconds",
294
- contentType: "digit",
295
- maxLength: 2
296
- },
297
- ss: "seconds"
298
- }, bt = {
299
- year: "YYYY",
300
- month: "MMMM",
301
- monthShort: "MMM",
302
- dayOfMonth: "D",
303
- weekday: "dddd",
304
- weekdayShort: "dd",
305
- hours24h: "HH",
306
- hours12h: "hh",
307
- meridiem: "A",
308
- minutes: "mm",
309
- seconds: "ss",
310
- fullDate: "ll",
311
- fullDateWithWeekday: "dddd, LL",
312
- keyboardDate: "L",
313
- shortDate: "MMM D",
314
- normalDate: "D MMMM",
315
- normalDateWithWeekday: "ddd, MMM D",
316
- monthAndYear: "MMMM YYYY",
317
- monthAndDate: "MMMM D",
318
- fullTime: "LT",
319
- fullTime12h: "hh:mm A",
320
- fullTime24h: "HH:mm",
321
- fullDateTime: "lll",
322
- fullDateTime12h: "ll hh:mm A",
323
- fullDateTime24h: "ll HH:mm",
324
- keyboardDateTime: "L LT",
325
- keyboardDateTime12h: "L hh:mm A",
326
- keyboardDateTime24h: "L HH:mm"
327
- }, X = ["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(`
328
- `), 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(`
329
- `), At = (m, p) => p ? (...f) => m(...f).locale(p) : m;
330
- class St {
331
- constructor({
332
- locale: p,
333
- formats: f,
334
- instance: u
335
- } = {}) {
336
- var g;
337
- this.isMUIAdapter = !0, this.isTimezoneCompatible = !0, this.lib = "dayjs", this.rawDayJsInstance = void 0, this.dayjs = void 0, this.locale = void 0, this.formats = void 0, this.escapedCharacters = {
338
- start: "[",
339
- end: "]"
340
- }, this.formatTokenMap = jt, this.setLocaleToValue = (t) => {
341
- const e = this.getCurrentLocaleCode();
342
- return e === t.locale() ? t : t.locale(e);
343
- }, this.hasUTCPlugin = () => typeof M.utc < "u", this.hasTimezonePlugin = () => typeof M.tz < "u", this.isSame = (t, e, s) => {
344
- const i = this.setTimezone(e, this.getTimezone(t));
345
- return t.format(s) === i.format(s);
346
- }, this.cleanTimezone = (t) => {
347
- switch (t) {
348
- case "default":
349
- return;
350
- case "system":
351
- return M.tz.guess();
352
- default:
353
- return t;
354
- }
355
- }, this.createSystemDate = (t) => {
356
- if (this.rawDayJsInstance)
357
- return this.rawDayJsInstance(t);
358
- if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
359
- const e = M.tz.guess();
360
- return e !== "UTC" ? M.tz(t, e) : M(t);
361
- }
362
- return M(t);
363
- }, this.createUTCDate = (t) => {
364
- if (!this.hasUTCPlugin())
365
- throw new Error(X);
366
- return M.utc(t);
367
- }, this.createTZDate = (t, e) => {
368
- if (!this.hasUTCPlugin())
369
- throw new Error(X);
370
- if (!this.hasTimezonePlugin())
371
- throw new Error(tt);
372
- const s = t !== void 0 && !t.endsWith("Z");
373
- return M(t).tz(this.cleanTimezone(e), s);
374
- }, this.getLocaleFormats = () => {
375
- const t = M.Ls, e = this.locale || "en";
376
- let s = t[e];
377
- return s === void 0 && (kt(), s = t.en), s.formats;
378
- }, this.adjustOffset = (t) => {
379
- if (!this.hasTimezonePlugin())
380
- return t;
381
- const e = this.getTimezone(t);
382
- if (e !== "UTC") {
383
- var s, i;
384
- const n = t.tz(this.cleanTimezone(e), !0);
385
- return ((s = n.$offset) != null ? s : 0) === ((i = t.$offset) != null ? i : 0) ? t : n;
386
- }
387
- return t;
388
- }, this.date = (t) => t === null ? null : this.dayjs(t), this.dateWithTimezone = (t, e) => {
389
- if (t === null)
390
- return null;
391
- let s;
392
- return e === "UTC" ? s = this.createUTCDate(t) : e === "system" || e === "default" && !this.hasTimezonePlugin() ? s = this.createSystemDate(t) : s = this.createTZDate(t, e), this.locale === void 0 ? s : s.locale(this.locale);
393
- }, this.getTimezone = (t) => {
394
- if (this.hasTimezonePlugin()) {
395
- var e;
396
- const s = (e = t.$x) == null ? void 0 : e.$timezone;
397
- if (s)
398
- return s;
399
- }
400
- return this.hasUTCPlugin() && t.isUTC() ? "UTC" : "system";
401
- }, this.setTimezone = (t, e) => {
402
- if (this.getTimezone(t) === e)
403
- return t;
404
- if (e === "UTC") {
405
- if (!this.hasUTCPlugin())
406
- throw new Error(X);
407
- return t.utc();
408
- }
409
- if (e === "system")
410
- return t.local();
411
- if (!this.hasTimezonePlugin()) {
412
- if (e === "default")
413
- return t;
414
- throw new Error(tt);
415
- }
416
- return M.tz(t, this.cleanTimezone(e));
417
- }, this.toJsDate = (t) => t.toDate(), this.parseISO = (t) => this.dayjs(t), this.toISO = (t) => t.toISOString(), 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) => {
418
- const e = this.getLocaleFormats(), s = (i) => i.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (n, h, l) => h || l.slice(1));
419
- return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (i, n, h) => {
420
- const l = h && h.toUpperCase();
421
- return n || e[h] || s(e[l]);
422
- });
423
- }, this.getFormatHelperText = (t) => this.expandFormat(t).replace(/a/gi, "(a|p)m").toLocaleLowerCase(), this.isNull = (t) => t === null, this.isValid = (t) => this.dayjs(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.getDiff = (t, e, s) => t.diff(e, s), this.isEqual = (t, e) => t === null && e === null ? !0 : this.dayjs(t).toDate().getTime() === this.dayjs(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, s]) => t >= e && t <= s, 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.getNextMonth = (t) => this.addMonths(t, 1), this.getPreviousMonth = (t) => this.addMonths(t, -1), this.getMonthArray = (t) => {
424
- const s = [t.startOf("year")];
425
- for (; s.length < 12; ) {
426
- const i = s[s.length - 1];
427
- s.push(this.addMonths(i, 1));
428
- }
429
- return s;
430
- }, this.mergeDateAndTime = (t, e) => t.hour(e.hour()).minute(e.minute()).second(e.second()), this.getWeekdays = () => {
431
- const t = this.dayjs().startOf("week");
432
- return [0, 1, 2, 3, 4, 5, 6].map((e) => this.formatByString(this.addDays(t, e), "dd"));
433
- }, this.getWeekArray = (t) => {
434
- const e = this.setLocaleToValue(t), s = e.startOf("month").startOf("week"), i = e.endOf("month").endOf("week");
435
- let n = 0, h = s;
436
- const l = [];
437
- for (; h < i; ) {
438
- const y = Math.floor(n / 7);
439
- l[y] = l[y] || [], l[y].push(h), h = this.addDays(h, 1), n += 1;
440
- }
441
- return l;
442
- }, this.getWeekNumber = (t) => t.week(), this.getYearRange = (t, e) => {
443
- const s = t.startOf("year"), i = e.endOf("year"), n = [];
444
- let h = s;
445
- for (; h < i; )
446
- n.push(h), h = this.addYears(h, 1);
447
- return n;
448
- }, this.getMeridiemText = (t) => t === "am" ? "AM" : "PM", this.rawDayJsInstance = u, this.dayjs = At((g = this.rawDayJsInstance) != null ? g : M, p), this.locale = p, this.formats = st({}, bt, f), M.extend(gt);
449
- }
450
- }
451
- const zt = ["localeText"], K = /* @__PURE__ */ H.createContext(null);
452
- process.env.NODE_ENV !== "production" && (K.displayName = "MuiPickersAdapterContext");
453
- const ot = function(p) {
454
- var f;
455
- const {
456
- localeText: u
457
- } = p, g = mt(p, zt), {
458
- utils: t,
459
- localeText: e
460
- } = (f = H.useContext(K)) != null ? f : {
461
- utils: void 0,
462
- localeText: void 0
463
- }, s = yt({
464
- // We don't want to pass the `localeText` prop to the theme, that way it will always return the theme value,
465
- // We will then merge this theme value with our value manually
466
- props: g,
467
- name: "MuiLocalizationProvider"
468
- }), {
469
- children: i,
470
- dateAdapter: n,
471
- dateFormats: h,
472
- dateLibInstance: l,
473
- adapterLocale: y,
474
- localeText: k
475
- } = s, U = H.useMemo(() => st({}, k, e, u), [k, e, u]), r = H.useMemo(() => {
476
- if (!n)
477
- return t || null;
478
- const d = new n({
479
- locale: y,
480
- formats: h,
481
- instance: l
482
- });
483
- if (!d.isMUIAdapter)
484
- throw new Error(["MUI: 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(`
485
- `));
486
- return d;
487
- }, [n, y, h, l, t]), o = H.useMemo(() => r ? {
488
- minDate: r.date("1900-01-01T00:00:00.000"),
489
- maxDate: r.date("2099-12-31T00:00:00.000")
490
- } : null, [r]), c = H.useMemo(() => ({
491
- utils: r,
492
- defaultDates: o,
493
- localeText: U
494
- }), [o, r, U]);
495
- return /* @__PURE__ */ et(K.Provider, {
496
- value: c,
497
- children: i
498
- });
499
- };
500
- process.env.NODE_ENV !== "production" && (ot.propTypes = {
501
- // ----------------------------- Warning --------------------------------
502
- // | These PropTypes are generated from the TypeScript type definitions |
503
- // | To update them edit the TypeScript types and run "yarn proptypes" |
504
- // ----------------------------------------------------------------------
505
- /**
506
- * Locale for the date library you are using
507
- */
508
- adapterLocale: a.any,
509
- children: a.node,
510
- /**
511
- * Date library adapter class function.
512
- * @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.
513
- */
514
- dateAdapter: a.func,
515
- /**
516
- * Formats that are used for any child pickers
517
- */
518
- dateFormats: a.shape({
519
- dayOfMonth: a.string,
520
- fullDate: a.string,
521
- fullDateTime: a.string,
522
- fullDateTime12h: a.string,
523
- fullDateTime24h: a.string,
524
- fullDateWithWeekday: a.string,
525
- fullTime: a.string,
526
- fullTime12h: a.string,
527
- fullTime24h: a.string,
528
- hours12h: a.string,
529
- hours24h: a.string,
530
- keyboardDate: a.string,
531
- keyboardDateTime: a.string,
532
- keyboardDateTime12h: a.string,
533
- keyboardDateTime24h: a.string,
534
- meridiem: a.string,
535
- minutes: a.string,
536
- month: a.string,
537
- monthAndDate: a.string,
538
- monthAndYear: a.string,
539
- monthShort: a.string,
540
- normalDate: a.string,
541
- normalDateWithWeekday: a.string,
542
- seconds: a.string,
543
- shortDate: a.string,
544
- weekday: a.string,
545
- weekdayShort: a.string,
546
- year: a.string
547
- }),
548
- /**
549
- * Date library instance you are using, if it has some global overrides
550
- * ```jsx
551
- * dateLibInstance={momentTimeZone}
552
- * ```
553
- */
554
- dateLibInstance: a.any,
555
- /**
556
- * Locale for components texts
557
- */
558
- localeText: a.object
559
- });
560
- const It = ({ adapterLocale: m = "fr", ...p }) => /* @__PURE__ */ et(
561
- ot,
562
- {
563
- dateAdapter: St,
564
- adapterLocale: m,
565
- ...p
566
- }
567
- );
568
- export {
569
- It as L,
570
- K as M,
571
- ot as a,
572
- Ot as b
573
- };
@@ -1,5 +0,0 @@
1
- "use strict";const tt=require("react/jsx-runtime"),ct=require("./fr-D4QyQkl7.cjs"),n=require("./useThemeProps-BRWSvuZw.cjs"),lt=require("react");function ft(l){const p=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l){for(const u in l)if(u!=="default"){const d=Object.getOwnPropertyDescriptor(l,u);Object.defineProperty(p,u,d.get?d:{enumerable:!0,get:()=>l[u]})}}return p.default=l,Object.freeze(p)}const F=ft(lt);var mt=ct.requireDayjs_min();const T=n.getDefaultExportFromCjs(mt);var et={exports:{}};(function(l,p){(function(u,d){l.exports=d()})(n.commonjsGlobal,function(){var u="week",d="year";return function(M,t,e){var r=t.prototype;r.week=function(o){if(o===void 0&&(o=null),o!==null)return this.add(7*(o-this.week()),"day");var i=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=e(this).startOf(d).add(1,d).date(i),m=e(this).endOf(u);if(h.isBefore(m))return 1}var y=e(this).startOf(d).date(i).startOf(u).subtract(1,"millisecond"),w=this.diff(y,u,!0);return w<0?e(this).startOf("week").week():Math.ceil(w)},r.weeks=function(o){return o===void 0&&(o=null),this.week(o)}}})})(et);var pt=et.exports;const yt=n.getDefaultExportFromCjs(pt);var rt={exports:{}};(function(l,p){(function(u,d){l.exports=d()})(n.commonjsGlobal,function(){var u={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"},d=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,M=/\d\d/,t=/\d\d?/,e=/\d*[^-_:/,()\s\d]+/,r={},o=function(s){return(s=+s)+(s>68?1900:2e3)},i=function(s){return function(a){this[s]=+a}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(s){(this.zone||(this.zone={})).offset=function(a){if(!a||a==="Z")return 0;var f=a.match(/([+-]|\d\d)/g),c=60*f[1]+(+f[2]||0);return c===0?0:f[0]==="+"?-c:c}(s)}],m=function(s){var a=r[s];return a&&(a.indexOf?a:a.s.concat(a.f))},y=function(s,a){var f,c=r.meridiem;if(c){for(var g=1;g<=24;g+=1)if(s.indexOf(c(g,0,a))>-1){f=g>12;break}}else f=s===(a?"pm":"PM");return f},w={A:[e,function(s){this.afternoon=y(s,!1)}],a:[e,function(s){this.afternoon=y(s,!0)}],S:[/\d/,function(s){this.milliseconds=100*+s}],SS:[M,function(s){this.milliseconds=10*+s}],SSS:[/\d{3}/,function(s){this.milliseconds=+s}],s:[t,i("seconds")],ss:[t,i("seconds")],m:[t,i("minutes")],mm:[t,i("minutes")],H:[t,i("hours")],h:[t,i("hours")],HH:[t,i("hours")],hh:[t,i("hours")],D:[t,i("day")],DD:[M,i("day")],Do:[e,function(s){var a=r.ordinal,f=s.match(/\d+/);if(this.day=f[0],a)for(var c=1;c<=31;c+=1)a(c).replace(/\[|\]/g,"")===s&&(this.day=c)}],M:[t,i("month")],MM:[M,i("month")],MMM:[e,function(s){var a=m("months"),f=(m("monthsShort")||a.map(function(c){return c.slice(0,3)})).indexOf(s)+1;if(f<1)throw new Error;this.month=f%12||f}],MMMM:[e,function(s){var a=m("months").indexOf(s)+1;if(a<1)throw new Error;this.month=a%12||a}],Y:[/[+-]?\d+/,i("year")],YY:[M,function(s){this.year=o(s)}],YYYY:[/\d{4}/,i("year")],Z:h,ZZ:h};function v(s){var a,f;a=s,f=r&&r.formats;for(var c=(s=a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(S,j,x){var D=x&&x.toUpperCase();return j||f[x]||u[x]||f[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,b,C){return b||C.slice(1)})})).match(d),g=c.length,L=0;L<g;L+=1){var I=c[L],A=w[I],P=A&&A[0],O=A&&A[1];c[L]=O?{regex:P,parser:O}:I.replace(/^\[|\]$/g,"")}return function(S){for(var j={},x=0,D=0;x<g;x+=1){var k=c[x];if(typeof k=="string")D+=k.length;else{var b=k.regex,C=k.parser,H=S.slice(D),U=b.exec(H)[0];C.call(j,U),S=S.replace(U,"")}}return function(z){var Y=z.afternoon;if(Y!==void 0){var E=z.hours;Y?E<12&&(z.hours+=12):E===12&&(z.hours=0),delete z.afternoon}}(j),j}}return function(s,a,f){f.p.customParseFormat=!0,s&&s.parseTwoDigitYear&&(o=s.parseTwoDigitYear);var c=a.prototype,g=c.parse;c.parse=function(L){var I=L.date,A=L.utc,P=L.args;this.$u=A;var O=P[1];if(typeof O=="string"){var S=P[2]===!0,j=P[3]===!0,x=S||j,D=P[2];j&&(D=P[2]),r=this.$locale(),!S&&D&&(r=f.Ls[D]),this.$d=function(H,U,z){try{if(["x","X"].indexOf(U)>-1)return new Date((U==="X"?1e3:1)*H);var Y=v(U)(H),E=Y.year,W=Y.month,ot=Y.day,at=Y.hours,ht=Y.minutes,ut=Y.seconds,dt=Y.milliseconds,K=Y.zone,N=new Date,_=ot||(E||W?1:N.getDate()),Z=E||N.getFullYear(),$=0;E&&!W||($=W>0?W-1:N.getMonth());var V=at||0,G=ht||0,q=ut||0,J=dt||0;return K?new Date(Date.UTC(Z,$,_,V,G,q,J+60*K.offset*1e3)):z?new Date(Date.UTC(Z,$,_,V,G,q,J)):new Date(Z,$,_,V,G,q,J)}catch{return new Date("")}}(I,O,A),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),x&&I!=this.format(O)&&(this.$d=new Date("")),r={}}else if(O instanceof Array)for(var k=O.length,b=1;b<=k;b+=1){P[1]=O[b-1];var C=f.apply(this,P);if(C.isValid()){this.$d=C.$d,this.$L=C.$L,this.init();break}b===k&&(this.$d=new Date(""))}else g.call(this,L)}}})})(rt);var Tt=rt.exports;const Mt=n.getDefaultExportFromCjs(Tt);var st={exports:{}};(function(l,p){(function(u,d){l.exports=d()})(n.commonjsGlobal,function(){var u={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"};return function(d,M,t){var e=M.prototype,r=e.format;t.en.formats=u,e.format=function(o){o===void 0&&(o="YYYY-MM-DDTHH:mm:ssZ");var i=this.$locale().formats,h=function(m,y){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(w,v,s){var a=s&&s.toUpperCase();return v||y[s]||u[s]||y[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(f,c,g){return c||g.slice(1)})})}(o,i===void 0?{}:i);return r.call(this,h)}}})})(st);var gt=st.exports;const Dt=n.getDefaultExportFromCjs(gt);var nt={exports:{}};(function(l,p){(function(u,d){l.exports=d()})(n.commonjsGlobal,function(){return function(u,d,M){d.prototype.isBetween=function(t,e,r,o){var i=M(t),h=M(e),m=(o=o||"()")[0]==="(",y=o[1]===")";return(m?this.isAfter(i,r):!this.isBefore(i,r))&&(y?this.isBefore(h,r):!this.isAfter(h,r))||(m?this.isBefore(i,r):!this.isAfter(i,r))&&(y?this.isAfter(h,r):!this.isBefore(h,r))}}})})(nt);var Yt=nt.exports;const xt=n.getDefaultExportFromCjs(Yt),it=(l,p="warning")=>{let u=!1;const d=Array.isArray(l)?l.join(`
2
- `):l;return()=>{u||(u=!0,p==="error"?console.error(d):console.warn(d))}};T.extend(Mt);T.extend(Dt);T.extend(xt);const Lt=it(["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"]),Pt={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},Ot={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},R=["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(`
3
- `),Q=["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(`
4
- `),wt=(l,p)=>p?(...u)=>l(...u).locale(p):l;class jt{constructor({locale:p,formats:u,instance:d}={}){var M;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=Pt,this.setLocaleToValue=t=>{const e=this.getCurrentLocaleCode();return e===t.locale()?t:t.locale(e)},this.hasUTCPlugin=()=>typeof T.utc<"u",this.hasTimezonePlugin=()=>typeof T.tz<"u",this.isSame=(t,e,r)=>{const o=this.setTimezone(e,this.getTimezone(t));return t.format(r)===o.format(r)},this.cleanTimezone=t=>{switch(t){case"default":return;case"system":return T.tz.guess();default:return t}},this.createSystemDate=t=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(t);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const e=T.tz.guess();return e!=="UTC"?T.tz(t,e):T(t)}return T(t)},this.createUTCDate=t=>{if(!this.hasUTCPlugin())throw new Error(R);return T.utc(t)},this.createTZDate=(t,e)=>{if(!this.hasUTCPlugin())throw new Error(R);if(!this.hasTimezonePlugin())throw new Error(Q);const r=t!==void 0&&!t.endsWith("Z");return T(t).tz(this.cleanTimezone(e),r)},this.getLocaleFormats=()=>{const t=T.Ls,e=this.locale||"en";let r=t[e];return r===void 0&&(Lt(),r=t.en),r.formats},this.adjustOffset=t=>{if(!this.hasTimezonePlugin())return t;const e=this.getTimezone(t);if(e!=="UTC"){var r,o;const i=t.tz(this.cleanTimezone(e),!0);return((r=i.$offset)!=null?r:0)===((o=t.$offset)!=null?o:0)?t:i}return t},this.date=t=>t===null?null:this.dayjs(t),this.dateWithTimezone=(t,e)=>{if(t===null)return null;let r;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)},this.getTimezone=t=>{if(this.hasTimezonePlugin()){var e;const r=(e=t.$x)==null?void 0:e.$timezone;if(r)return r}return this.hasUTCPlugin()&&t.isUTC()?"UTC":"system"},this.setTimezone=(t,e)=>{if(this.getTimezone(t)===e)return t;if(e==="UTC"){if(!this.hasUTCPlugin())throw new Error(R);return t.utc()}if(e==="system")return t.local();if(!this.hasTimezonePlugin()){if(e==="default")return t;throw new Error(Q)}return T.tz(t,this.cleanTimezone(e))},this.toJsDate=t=>t.toDate(),this.parseISO=t=>this.dayjs(t),this.toISO=t=>t.toISOString(),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=>{const e=this.getLocaleFormats(),r=o=>o.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(i,h,m)=>h||m.slice(1));return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(o,i,h)=>{const m=h&&h.toUpperCase();return i||e[h]||r(e[m])})},this.getFormatHelperText=t=>this.expandFormat(t).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=t=>t===null,this.isValid=t=>this.dayjs(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.getDiff=(t,e,r)=>t.diff(e,r),this.isEqual=(t,e)=>t===null&&e===null?!0:this.dayjs(t).toDate().getTime()===this.dayjs(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.getNextMonth=t=>this.addMonths(t,1),this.getPreviousMonth=t=>this.addMonths(t,-1),this.getMonthArray=t=>{const r=[t.startOf("year")];for(;r.length<12;){const o=r[r.length-1];r.push(this.addMonths(o,1))}return r},this.mergeDateAndTime=(t,e)=>t.hour(e.hour()).minute(e.minute()).second(e.second()),this.getWeekdays=()=>{const t=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(e=>this.formatByString(this.addDays(t,e),"dd"))},this.getWeekArray=t=>{const e=this.setLocaleToValue(t),r=e.startOf("month").startOf("week"),o=e.endOf("month").endOf("week");let i=0,h=r;const m=[];for(;h<o;){const y=Math.floor(i/7);m[y]=m[y]||[],m[y].push(h),h=this.addDays(h,1),i+=1}return m},this.getWeekNumber=t=>t.week(),this.getYearRange=(t,e)=>{const r=t.startOf("year"),o=e.endOf("year"),i=[];let h=r;for(;h<o;)i.push(h),h=this.addYears(h,1);return i},this.getMeridiemText=t=>t==="am"?"AM":"PM",this.rawDayJsInstance=d,this.dayjs=wt((M=this.rawDayJsInstance)!=null?M:T,p),this.locale=p,this.formats=n._extends({},Ot,u),T.extend(yt)}}const kt=["localeText"],B=F.createContext(null);process.env.NODE_ENV!=="production"&&(B.displayName="MuiPickersAdapterContext");const X=function(p){var u;const{localeText:d}=p,M=n._objectWithoutPropertiesLoose(p,kt),{utils:t,localeText:e}=(u=F.useContext(B))!=null?u:{utils:void 0,localeText:void 0},r=n.useThemeProps({props:M,name:"MuiLocalizationProvider"}),{children:o,dateAdapter:i,dateFormats:h,dateLibInstance:m,adapterLocale:y,localeText:w}=r,v=F.useMemo(()=>n._extends({},w,e,d),[w,e,d]),s=F.useMemo(()=>{if(!i)return t||null;const c=new i({locale:y,formats:h,instance:m});if(!c.isMUIAdapter)throw new Error(["MUI: 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(`
5
- `));return c},[i,y,h,m,t]),a=F.useMemo(()=>s?{minDate:s.date("1900-01-01T00:00:00.000"),maxDate:s.date("2099-12-31T00:00:00.000")}:null,[s]),f=F.useMemo(()=>({utils:s,defaultDates:a,localeText:v}),[a,s,v]);return tt.jsx(B.Provider,{value:f,children:o})};process.env.NODE_ENV!=="production"&&(X.propTypes={adapterLocale:n.PropTypes.any,children:n.PropTypes.node,dateAdapter:n.PropTypes.func,dateFormats:n.PropTypes.shape({dayOfMonth:n.PropTypes.string,fullDate:n.PropTypes.string,fullDateTime:n.PropTypes.string,fullDateTime12h:n.PropTypes.string,fullDateTime24h:n.PropTypes.string,fullDateWithWeekday:n.PropTypes.string,fullTime:n.PropTypes.string,fullTime12h:n.PropTypes.string,fullTime24h:n.PropTypes.string,hours12h:n.PropTypes.string,hours24h:n.PropTypes.string,keyboardDate:n.PropTypes.string,keyboardDateTime:n.PropTypes.string,keyboardDateTime12h:n.PropTypes.string,keyboardDateTime24h:n.PropTypes.string,meridiem:n.PropTypes.string,minutes:n.PropTypes.string,month:n.PropTypes.string,monthAndDate:n.PropTypes.string,monthAndYear:n.PropTypes.string,monthShort:n.PropTypes.string,normalDate:n.PropTypes.string,normalDateWithWeekday:n.PropTypes.string,seconds:n.PropTypes.string,shortDate:n.PropTypes.string,weekday:n.PropTypes.string,weekdayShort:n.PropTypes.string,year:n.PropTypes.string}),dateLibInstance:n.PropTypes.any,localeText:n.PropTypes.object});const bt=({adapterLocale:l="fr",...p})=>tt.jsx(X,{dateAdapter:jt,adapterLocale:l,...p});exports.LocalizationProvider=bt;exports.LocalizationProvider$1=X;exports.MuiPickersAdapterContext=B;exports.buildWarning=it;
@@ -1 +0,0 @@
1
- "use strict";const e=require("react/jsx-runtime"),u=require("react"),a=require("../../../TextInput-qJONVcHy.cjs");require("../../Dropzone/Dropzone.cjs.js");require("../../../fr-D4QyQkl7.cjs");require("../../../DefaultButton-Ls0zczi1.cjs");const l=require("../../../SearchInput-CMLDZJ8k.cjs");require("../../lists/FileList/FileListItem.cjs.js");const d=require("../../../IconButton-wRZZmeNK.cjs"),o=require("../../../createSvgIcon-C2VxBqzG.cjs"),p=o.createSvgIcon(e.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),I=o.createSvgIcon(e.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff"),w=s=>{const[n,r]=u.useState(!1),i=()=>r(t=>!t),c=t=>{t.preventDefault()};return e.jsx(a.TextInput,{...s,variant:"outlined",label:s.label,type:n?"text":"password",InputProps:{endAdornment:e.jsx(l.InputAdornment,{position:"end",children:e.jsx(d.IconButton,{"aria-label":"toggle password visibility",onClick:i,onMouseDown:c,edge:"end",children:n?e.jsx(I,{}):e.jsx(p,{})})})}})};module.exports=w;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { InputTextProps } from '../TextInput';
3
- export type PasswordInputProps = {} & Omit<InputTextProps, "variant" | "type">;
4
- declare const PasswordInput: React.FunctionComponent<PasswordInputProps>;
5
- export default PasswordInput;