@carto/meridian-ds 0.1.1-alpha.2 → 0.1.1-alpha.4

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 (26) hide show
  1. package/dist/components/index.cjs +1 -1
  2. package/dist/components/index.js +326 -323
  3. package/dist/types/components/atoms/Button.d.ts +5 -5
  4. package/dist/types/components/atoms/Button.d.ts.map +1 -1
  5. package/dist/types/components/atoms/PasswordField.d.ts +1 -2
  6. package/dist/types/components/atoms/PasswordField.d.ts.map +1 -1
  7. package/dist/types/components/atoms/SelectField.d.ts +6 -5
  8. package/dist/types/components/atoms/SelectField.d.ts.map +1 -1
  9. package/dist/types/components/atoms/Typography.d.ts +1 -6
  10. package/dist/types/components/atoms/Typography.d.ts.map +1 -1
  11. package/dist/types/components/molecules/Alert.d.ts +1 -7
  12. package/dist/types/components/molecules/Alert.d.ts.map +1 -1
  13. package/dist/types/components/molecules/Autocomplete.d.ts +6 -7
  14. package/dist/types/components/molecules/Autocomplete.d.ts.map +1 -1
  15. package/dist/types/components/molecules/MultipleSelectField/MultipleSelectField.d.ts +5 -14
  16. package/dist/types/components/molecules/MultipleSelectField/MultipleSelectField.d.ts.map +1 -1
  17. package/dist/types/components/molecules/MultipleSelectField/useMultipleSelectField.d.ts +1 -1
  18. package/dist/types/theme/types.d.ts +6 -0
  19. package/dist/types/theme/types.d.ts.map +1 -1
  20. package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.styled.d.ts +1 -6
  21. package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.styled.d.ts.map +1 -1
  22. package/dist/types/widgets/WrapperWidgetUI.d.ts +9 -3
  23. package/dist/types/widgets/WrapperWidgetUI.d.ts.map +1 -1
  24. package/dist/widgets/index.cjs +1 -1
  25. package/dist/widgets/index.js +36 -36
  26. package/package.json +1 -1
@@ -1,29 +1,29 @@
1
- import { jsx as o, jsxs as y, Fragment as G } from "react/jsx-runtime";
2
- import { Button as q, styled as d, Box as w, TextField as z, InputAdornment as _, IconButton as P, Select as tt, MenuItem as V, FormControl as et, InputLabel as nt, FormHelperText as ot, ToggleButtonGroup as rt, Menu as it, MenuList as at, Link as lt, Checkbox as N, ListItemText as Y, Tooltip as st, CircularProgress as dt, Accordion as ct, AccordionSummary as ut, AccordionDetails as pt, createFilterOptions as gt, Autocomplete as ft, Divider as D, ListItemIcon as U, Avatar as mt, alpha as ht, AppBar as Mt, Toolbar as yt } from "@mui/material";
3
- import { forwardRef as k, useState as L, useEffect as Z, useMemo as J, useRef as bt, Fragment as vt } from "react";
4
- import { T, c as F, u as $, A as xt } from "../TablePaginationActions-OJyfVTms.js";
5
- import { a as ze } from "../TablePaginationActions-OJyfVTms.js";
6
- import { VisibilityOutlined as It, VisibilityOffOutlined as Bt, Cancel as K, AddCircleOutlineOutlined as Tt, MenuOutlined as At } from "@mui/icons-material";
7
- import { useIntl as E } from "react-intl";
8
- import { styled as H, useTheme as Q } from "@mui/material/styles";
9
- import { A as Ye } from "../Alert-_PI5QbXW.js";
10
- function St({ children: t, ...e }, n) {
11
- return /* @__PURE__ */ o(q, { ...e, ref: n, children: /* @__PURE__ */ o(T, { variant: "inherit", color: "inherit", noWrap: !0, component: "span", children: t }) });
1
+ import { jsx as o, jsxs as y, Fragment as _ } from "react/jsx-runtime";
2
+ import { Button as N, styled as c, Box as P, TextField as Y, InputAdornment as H, IconButton as L, Select as it, MenuItem as V, FormControl as at, InputLabel as lt, FormHelperText as st, ToggleButtonGroup as ct, Menu as dt, MenuList as ut, Link as pt, Checkbox as Z, ListItemText as J, Tooltip as gt, CircularProgress as ft, Accordion as mt, AccordionSummary as ht, AccordionDetails as Mt, createFilterOptions as yt, Autocomplete as bt, Divider as G, ListItemIcon as q, Avatar as vt, alpha as xt, AppBar as It, Toolbar as Bt } from "@mui/material";
3
+ import { forwardRef as $, useState as k, useEffect as K, useMemo as Q, useRef as Tt, Fragment as At } from "react";
4
+ import { T as S, c as w, u as R, A as St } from "../TablePaginationActions-OJyfVTms.js";
5
+ import { a as Je } from "../TablePaginationActions-OJyfVTms.js";
6
+ import { VisibilityOutlined as Ct, VisibilityOffOutlined as Ft, Cancel as X, AddCircleOutlineOutlined as wt, MenuOutlined as Pt } from "@mui/icons-material";
7
+ import { useIntl as O } from "react-intl";
8
+ import { styled as W, useTheme as tt } from "@mui/material/styles";
9
+ import { A as Qe } from "../Alert-_PI5QbXW.js";
10
+ function Lt({ children: t, ...e }, n) {
11
+ return /* @__PURE__ */ o(N, { ...e, ref: n, children: /* @__PURE__ */ o(S, { variant: "inherit", color: "inherit", noWrap: !0, component: "span", children: t }) });
12
12
  }
13
- const Le = k(St), Ct = d(w)(({ theme: t }) => ({
13
+ const Re = $(Lt), kt = c(P)(({ theme: t }) => ({
14
14
  display: "flex",
15
15
  alignItems: "center",
16
16
  gap: t.spacing(0.5)
17
- })), Ft = d(T)(({ theme: t }) => ({
17
+ })), $t = c(S)(({ theme: t }) => ({
18
18
  ".Mui-disabled &": {
19
19
  color: t.palette.text.disabled
20
20
  }
21
- })), wt = d(w)(({ theme: t }) => ({
21
+ })), Et = c(P)(({ theme: t }) => ({
22
22
  display: "flex",
23
23
  svg: {
24
- width: F,
25
- height: F,
26
- fontSize: F,
24
+ width: w,
25
+ height: w,
26
+ fontSize: w,
27
27
  path: {
28
28
  fill: t.palette.text.secondary,
29
29
  ".Mui-disabled &": {
@@ -32,16 +32,16 @@ const Le = k(St), Ct = d(w)(({ theme: t }) => ({
32
32
  }
33
33
  }
34
34
  }));
35
- function ke({
35
+ function Oe({
36
36
  label: t,
37
37
  type: e,
38
38
  icon: n,
39
39
  inheritSize: r
40
40
  }) {
41
- return /* @__PURE__ */ y(Ct, { children: [
41
+ return /* @__PURE__ */ y(kt, { children: [
42
42
  t,
43
43
  e && /* @__PURE__ */ o(
44
- Ft,
44
+ $t,
45
45
  {
46
46
  component: "span",
47
47
  variant: r ? "inherit" : "caption",
@@ -50,13 +50,13 @@ function ke({
50
50
  children: e === "required" ? "(required)" : "(optional)"
51
51
  }
52
52
  ),
53
- n && /* @__PURE__ */ o(wt, { children: n })
53
+ n && /* @__PURE__ */ o(Et, { children: n })
54
54
  ] });
55
55
  }
56
- function Pt({ InputProps: t, size: e = "small", ...n }, r) {
57
- const [i, l] = L(!1);
56
+ function Rt({ InputProps: t, size: e = "small", ...n }, r) {
57
+ const [i, a] = k(!1);
58
58
  return /* @__PURE__ */ o(
59
- z,
59
+ Y,
60
60
  {
61
61
  ...n,
62
62
  ref: r,
@@ -64,18 +64,18 @@ function Pt({ InputProps: t, size: e = "small", ...n }, r) {
64
64
  size: e,
65
65
  InputProps: {
66
66
  ...t,
67
- endAdornment: /* @__PURE__ */ o(_, { position: "end", children: /* @__PURE__ */ o(P, { size: e, onClick: () => l(!i), children: i ? /* @__PURE__ */ o(It, {}) : /* @__PURE__ */ o(Bt, {}) }) })
67
+ endAdornment: /* @__PURE__ */ o(H, { position: "end", children: /* @__PURE__ */ o(L, { size: e, onClick: () => a(!i), children: i ? /* @__PURE__ */ o(Ct, {}) : /* @__PURE__ */ o(Ft, {}) }) })
68
68
  }
69
69
  }
70
70
  );
71
71
  }
72
- const $e = k(Pt), O = {};
73
- function Lt(t = "$lodash$") {
74
- O[t] || (O[t] = 0);
75
- const e = ++O[t];
72
+ const De = $(Rt), D = {};
73
+ function Ot(t = "$lodash$") {
74
+ D[t] || (D[t] = 0);
75
+ const e = ++D[t];
76
76
  return t === "$lodash$" ? `${e}` : `${t}${e}`;
77
77
  }
78
- const kt = d(tt)(({ theme: t }) => ({
78
+ const Dt = c(it)(({ theme: t }) => ({
79
79
  "& .MuiInputAdornment-positionStart": {
80
80
  paddingLeft: t.spacing(2),
81
81
  "&.MuiInputAdornment-sizeSmall": {
@@ -91,57 +91,57 @@ const kt = d(tt)(({ theme: t }) => ({
91
91
  "&.MuiInputBase-root .MuiSelect-select.MuiSelect-multiple": {
92
92
  paddingRight: t.spacing(7)
93
93
  }
94
- })), $t = d(V)(() => ({
94
+ })), Gt = c(V)(() => ({
95
95
  display: "none"
96
96
  }));
97
- function Et({
97
+ function _t({
98
98
  children: t,
99
99
  placeholder: e,
100
100
  size: n = "small",
101
101
  displayEmpty: r,
102
102
  menuProps: i,
103
- inputProps: l,
103
+ inputProps: a,
104
104
  labelId: s,
105
105
  label: g,
106
106
  labelSecondary: b,
107
107
  helperText: v,
108
- name: u,
109
- error: p,
108
+ name: d,
109
+ error: u,
110
110
  focused: h,
111
111
  disabled: x,
112
112
  fullWidth: M,
113
113
  required: f,
114
- "aria-label": a,
115
- ...S
116
- }, m) {
117
- const B = n === "small", [c] = L(() => Lt("select-label-")), I = g ? s ?? c : void 0;
114
+ "aria-label": T,
115
+ ...I
116
+ }, p) {
117
+ const B = n === "small", [l] = k(() => Ot("select-label-")), m = g ? s ?? l : void 0;
118
118
  return /* @__PURE__ */ y(
119
- et,
119
+ at,
120
120
  {
121
121
  size: n,
122
- error: p,
122
+ error: u,
123
123
  focused: h,
124
124
  disabled: x,
125
125
  fullWidth: M,
126
126
  required: f,
127
127
  children: [
128
- /* @__PURE__ */ y(w, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
129
- g && /* @__PURE__ */ o(nt, { shrink: !0, id: I, children: g }),
130
- b && /* @__PURE__ */ o(w, { display: "flex", alignItems: "center", ml: 2, mb: 0.5, children: b })
128
+ /* @__PURE__ */ y(P, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
129
+ g && /* @__PURE__ */ o(lt, { shrink: !0, id: m, children: g }),
130
+ b && /* @__PURE__ */ o(P, { display: "flex", alignItems: "center", ml: 2, mb: 0.5, children: b })
131
131
  ] }),
132
132
  /* @__PURE__ */ y(
133
- kt,
133
+ Dt,
134
134
  {
135
- ...S,
136
- labelId: I,
137
- name: u,
138
- ref: m,
135
+ ...I,
136
+ labelId: m,
137
+ name: d,
138
+ ref: p,
139
139
  size: n,
140
140
  fullWidth: M,
141
141
  displayEmpty: r ?? !!e,
142
142
  inputProps: {
143
- ...l,
144
- "aria-label": a
143
+ ...a,
144
+ "aria-label": T
145
145
  },
146
146
  MenuProps: {
147
147
  ...i,
@@ -158,8 +158,8 @@ function Et({
158
158
  }
159
159
  },
160
160
  children: [
161
- e && /* @__PURE__ */ o($t, { disabled: !0, value: "", children: /* @__PURE__ */ o(
162
- T,
161
+ e && /* @__PURE__ */ o(Gt, { disabled: !0, value: "", children: /* @__PURE__ */ o(
162
+ S,
163
163
  {
164
164
  variant: B ? "body2" : "body1",
165
165
  color: "text.hint",
@@ -171,12 +171,12 @@ function Et({
171
171
  ]
172
172
  }
173
173
  ),
174
- v && /* @__PURE__ */ o(ot, { "aria-label": `${u}-helper`, children: v })
174
+ v && /* @__PURE__ */ o(st, { "aria-label": `${d}-helper`, children: v })
175
175
  ]
176
176
  }
177
177
  );
178
178
  }
179
- const Rt = k(Et), Ot = d(rt, {
179
+ const Ht = $(_t), Vt = c(ct, {
180
180
  shouldForwardProp: (t) => t !== "variant" && t !== "backgroundColor"
181
181
  })(({ variant: t, backgroundColor: e, theme: n }) => ({
182
182
  // Variants
@@ -248,14 +248,14 @@ const Rt = k(Et), Ot = d(rt, {
248
248
  backgroundColor: "transparent"
249
249
  }
250
250
  }));
251
- function Ee({
251
+ function Ge({
252
252
  children: t,
253
253
  variant: e = "floating",
254
254
  backgroundColor: n,
255
255
  ...r
256
256
  }) {
257
257
  return /* @__PURE__ */ o(
258
- Ot,
258
+ Vt,
259
259
  {
260
260
  ...r,
261
261
  variant: e,
@@ -264,7 +264,7 @@ function Ee({
264
264
  }
265
265
  );
266
266
  }
267
- const Dt = d(it, {
267
+ const Wt = c(dt, {
268
268
  shouldForwardProp: (t) => !["extended", "width", "height"].includes(t)
269
269
  })(({ theme: t, extended: e, width: n, height: r }) => ({
270
270
  ...e && {
@@ -287,10 +287,10 @@ const Dt = d(it, {
287
287
  }
288
288
  }
289
289
  }));
290
- function Re(t) {
291
- return /* @__PURE__ */ o(Dt, { ...t });
290
+ function _e(t) {
291
+ return /* @__PURE__ */ o(Wt, { ...t });
292
292
  }
293
- const Gt = d(V, {
293
+ const Ut = c(V, {
294
294
  shouldForwardProp: (t) => !["subtitle", "destructive", "extended", "fixed", "iconColor"].includes(
295
295
  t
296
296
  )
@@ -301,7 +301,7 @@ const Gt = d(V, {
301
301
  subtitle: n,
302
302
  destructive: r,
303
303
  extended: i,
304
- fixed: l,
304
+ fixed: a,
305
305
  iconColor: s = "primary"
306
306
  }) => ({
307
307
  ...n && {
@@ -379,7 +379,7 @@ const Gt = d(V, {
379
379
  minHeight: t.spacing(6)
380
380
  }
381
381
  },
382
- ...l && {
382
+ ...a && {
383
383
  "&.MuiMenuItem-root": {
384
384
  position: "sticky",
385
385
  top: 0,
@@ -401,7 +401,7 @@ const Gt = d(V, {
401
401
  }
402
402
  }
403
403
  },
404
- ...!l && {
404
+ ...!a && {
405
405
  ".MuiList-root &:first-of-type": {
406
406
  marginTop: t.spacing(1)
407
407
  }
@@ -414,10 +414,10 @@ const Gt = d(V, {
414
414
  }
415
415
  })
416
416
  );
417
- function X(t) {
418
- return /* @__PURE__ */ o(Gt, { ...t });
417
+ function et(t) {
418
+ return /* @__PURE__ */ o(Ut, { ...t });
419
419
  }
420
- const _t = d(at, {
420
+ const jt = c(ut, {
421
421
  shouldForwardProp: (t) => !["extended", "width", "height"].includes(t)
422
422
  })(({ theme: t, extended: e, width: n, height: r }) => ({
423
423
  ...e && {
@@ -435,39 +435,39 @@ const _t = d(at, {
435
435
  }
436
436
  }
437
437
  }));
438
- function Oe(t) {
439
- return /* @__PURE__ */ o(_t, { ...t });
438
+ function He(t) {
439
+ return /* @__PURE__ */ o(jt, { ...t });
440
440
  }
441
- function Vt({
441
+ function qt({
442
442
  selectedOptions: t,
443
443
  options: e,
444
444
  onChange: n
445
445
  }) {
446
- const [r, i] = L(t || []), l = e.length === r.length, s = r.length > 0;
447
- return Z(() => {
446
+ const [r, i] = k(t ?? []), a = e.length === r.length, s = r.length > 0;
447
+ return K(() => {
448
448
  r !== t && i(r);
449
449
  }, [t]), {
450
- areAllSelected: l,
450
+ areAllSelected: a,
451
451
  areAnySelected: s,
452
452
  currentOptions: r,
453
- handleChange: (u) => {
453
+ handleChange: (d) => {
454
454
  const {
455
- target: { value: p }
456
- } = u, h = typeof p == "string" ? p.split(",") : p.filter((x) => x !== void 0);
455
+ target: { value: u }
456
+ } = d, h = typeof u == "string" ? u.split(",") : u.filter((x) => x !== void 0);
457
457
  i(h), n(h);
458
458
  },
459
459
  selectAll: () => {
460
- const u = e == null ? void 0 : e.filter(({ disabled: p }) => !p).map(({ value: p }) => p);
461
- u && (u.every(
460
+ const d = e == null ? void 0 : e.filter(({ disabled: u }) => !u).map(({ value: u }) => u);
461
+ d && (d.every(
462
462
  (h) => r.includes(h)
463
- ) ? (i([]), n([])) : (i(u), n(u)));
463
+ ) ? (i([]), n([])) : (i(d), n(d)));
464
464
  },
465
465
  unselectAll: () => {
466
466
  i([]), n([]);
467
467
  }
468
468
  };
469
469
  }
470
- const Ht = d(lt)(
470
+ const zt = c(pt)(
471
471
  ({ disabled: t, theme: e }) => ({
472
472
  display: "flex",
473
473
  alignItems: "center",
@@ -480,15 +480,15 @@ const Ht = d(lt)(
480
480
  }
481
481
  })
482
482
  );
483
- function Wt({
483
+ function Nt({
484
484
  areAllSelected: t,
485
485
  areAnySelected: e,
486
486
  selectAll: n,
487
487
  selectAllDisabled: r
488
488
  }) {
489
- const i = E(), l = $(i);
490
- return /* @__PURE__ */ o(X, { fixed: !0, children: /* @__PURE__ */ y(
491
- Ht,
489
+ const i = O(), a = R(i);
490
+ return /* @__PURE__ */ o(et, { fixed: !0, children: /* @__PURE__ */ y(
491
+ zt,
492
492
  {
493
493
  variant: "body2",
494
494
  color: "textPrimary",
@@ -499,26 +499,26 @@ function Wt({
499
499
  tabIndex: 0,
500
500
  children: [
501
501
  /* @__PURE__ */ o(
502
- N,
502
+ Z,
503
503
  {
504
504
  checked: t,
505
505
  indeterminate: e && !t,
506
506
  disabled: r
507
507
  }
508
508
  ),
509
- l.formatMessage({ id: "c4r.form.selectAll" })
509
+ a.formatMessage({ id: "c4r.form.selectAll" })
510
510
  ]
511
511
  }
512
512
  ) });
513
513
  }
514
- const Ut = d(V)(({ theme: t }) => ({
514
+ const Yt = c(V)(({ theme: t }) => ({
515
515
  "&.Mui-disabled": {
516
516
  pointerEvents: "auto",
517
517
  "&:hover": {
518
518
  backgroundColor: `${t.palette.background.default} !important`
519
519
  }
520
520
  }
521
- })), jt = d(_)(({ theme: t }) => ({
521
+ })), Zt = c(H)(({ theme: t }) => ({
522
522
  display: "none",
523
523
  position: "absolute",
524
524
  top: t.spacing(2),
@@ -529,86 +529,86 @@ const Ut = d(V)(({ theme: t }) => ({
529
529
  ".MuiSvgIcon-root": {
530
530
  color: t.palette.text.hint
531
531
  }
532
- })), qt = [], zt = () => {
532
+ })), Jt = [], Kt = () => {
533
533
  };
534
- function Nt({
535
- options: t = qt,
534
+ function Qt({
535
+ options: t = Jt,
536
536
  selectedOptions: e,
537
537
  size: n = "small",
538
538
  placeholder: r,
539
539
  showCounter: i,
540
- showFilters: l = !0,
541
- onChange: s = zt,
540
+ showFilters: a = !0,
541
+ onChange: s = Kt,
542
542
  selectAllDisabled: g,
543
543
  tooltipPlacement: b,
544
544
  variant: v,
545
- ...u
546
- }, p) {
545
+ ...d
546
+ }, u) {
547
547
  const {
548
548
  areAllSelected: h,
549
549
  areAnySelected: x,
550
550
  currentOptions: M,
551
551
  handleChange: f,
552
- selectAll: a,
553
- unselectAll: S
554
- } = Vt({
552
+ selectAll: T,
553
+ unselectAll: I
554
+ } = qt({
555
555
  options: t,
556
556
  selectedOptions: e,
557
557
  onChange: s
558
- }), m = n === "small", B = m || v === "standard" ? 0 : 2, c = E(), I = $(c), A = `${M.length} ${I.formatMessage({
558
+ }), p = n === "small", B = p || v === "standard" ? 0 : 2, l = O(), m = R(l), A = `${M.length} ${m.formatMessage({
559
559
  id: "c4r.form.selected"
560
- })}`, R = J(() => h ? /* @__PURE__ */ o(
561
- T,
560
+ })}`, F = Q(() => h ? /* @__PURE__ */ o(
561
+ S,
562
562
  {
563
563
  component: "span",
564
- variant: m ? "body2" : "body1",
564
+ variant: p ? "body2" : "body1",
565
565
  color: "textPrimary",
566
566
  ml: B,
567
- children: I.formatMessage({ id: "c4r.form.allSelected" })
567
+ children: m.formatMessage({ id: "c4r.form.allSelected" })
568
568
  }
569
569
  ) : x ? /* @__PURE__ */ o(
570
- T,
570
+ S,
571
571
  {
572
572
  component: "span",
573
- variant: m ? "body2" : "body1",
573
+ variant: p ? "body2" : "body1",
574
574
  color: "textPrimary",
575
575
  ml: B,
576
576
  children: i && M.length > 1 ? A : M.join(", ")
577
577
  }
578
578
  ) : /* @__PURE__ */ o(
579
- T,
579
+ S,
580
580
  {
581
581
  component: "span",
582
- variant: m ? "body2" : "body1",
582
+ variant: p ? "body2" : "body1",
583
583
  color: "text.hint",
584
584
  ml: B,
585
- children: r ?? I.formatMessage({ id: "c4r.form.noneSelected" })
585
+ children: r ?? m.formatMessage({ id: "c4r.form.noneSelected" })
586
586
  }
587
587
  ), [
588
588
  h,
589
589
  x,
590
590
  A,
591
591
  M,
592
- I,
593
592
  m,
593
+ p,
594
594
  B,
595
595
  r,
596
596
  i
597
597
  ]);
598
598
  return /* @__PURE__ */ y(
599
- Rt,
599
+ Ht,
600
600
  {
601
- ...u,
602
- ref: p,
601
+ ...d,
602
+ ref: u,
603
603
  multiple: !0,
604
604
  displayEmpty: !0,
605
605
  placeholder: r,
606
606
  value: M,
607
- renderValue: () => R,
607
+ renderValue: () => F,
608
608
  onChange: f,
609
609
  size: n,
610
610
  variant: v,
611
- endAdornment: l && x && /* @__PURE__ */ o(jt, { position: "end", children: /* @__PURE__ */ o(P, { onClick: S, size: "small", children: /* @__PURE__ */ o(K, {}) }) }),
611
+ endAdornment: a && x && /* @__PURE__ */ o(Zt, { position: "end", children: /* @__PURE__ */ o(L, { onClick: I, size: "small", children: /* @__PURE__ */ o(X, {}) }) }),
612
612
  menuProps: {
613
613
  PaperProps: {
614
614
  sx: {
@@ -619,50 +619,50 @@ function Nt({
619
619
  }
620
620
  },
621
621
  children: [
622
- l && /* @__PURE__ */ o(
623
- Wt,
622
+ a && /* @__PURE__ */ o(
623
+ Nt,
624
624
  {
625
625
  areAllSelected: h,
626
626
  areAnySelected: x,
627
- selectAll: a,
627
+ selectAll: T,
628
628
  selectAllDisabled: g
629
629
  }
630
630
  ),
631
631
  t == null ? void 0 : t.map((C) => {
632
- const W = /* @__PURE__ */ y(
633
- Ut,
632
+ const E = /* @__PURE__ */ y(
633
+ Yt,
634
634
  {
635
635
  value: C.value,
636
636
  disabled: C.disabled,
637
637
  tabIndex: 0,
638
638
  children: [
639
639
  /* @__PURE__ */ o(
640
- N,
640
+ Z,
641
641
  {
642
642
  disabled: C.disabled,
643
643
  checked: M.includes(C.value)
644
644
  }
645
645
  ),
646
- /* @__PURE__ */ o(Y, { primary: C.label })
646
+ /* @__PURE__ */ o(J, { primary: C.label })
647
647
  ]
648
648
  },
649
649
  C.value
650
650
  );
651
651
  return C.tooltip ? /* @__PURE__ */ o(
652
- st,
652
+ gt,
653
653
  {
654
654
  title: C.tooltip,
655
655
  placement: b,
656
- children: W
656
+ children: E
657
657
  },
658
658
  C.value
659
- ) : W;
659
+ ) : E;
660
660
  })
661
661
  ]
662
662
  }
663
663
  );
664
664
  }
665
- const De = k(Nt), Yt = H(z, {
665
+ const Ve = $(Qt), Xt = W(Y, {
666
666
  shouldForwardProp: (t) => t !== "cursor"
667
667
  })(
668
668
  ({ cursor: t, theme: e }) => ({
@@ -690,27 +690,27 @@ const De = k(Nt), Yt = H(z, {
690
690
  }
691
691
  })
692
692
  );
693
- function Zt({
693
+ function te({
694
694
  buttonText: t,
695
695
  hasFiles: e,
696
696
  size: n,
697
697
  error: r,
698
698
  disabled: i,
699
- handleReset: l,
699
+ handleReset: a,
700
700
  handleOpen: s,
701
701
  inProgress: g
702
702
  }) {
703
- return /* @__PURE__ */ o(_, { position: "end", children: g ? /* @__PURE__ */ o(P, { "aria-label": "loading", disabled: !0, size: n, children: /* @__PURE__ */ o(dt, { size: 18 }) }) : e ? /* @__PURE__ */ o(
704
- P,
703
+ return /* @__PURE__ */ o(H, { position: "end", children: g ? /* @__PURE__ */ o(L, { "aria-label": "loading", disabled: !0, size: n, children: /* @__PURE__ */ o(ft, { size: 18 }) }) : e ? /* @__PURE__ */ o(
704
+ L,
705
705
  {
706
- onClick: l,
706
+ onClick: a,
707
707
  size: n,
708
708
  "aria-label": "delete",
709
709
  disabled: i,
710
- children: /* @__PURE__ */ o(K, {})
710
+ children: /* @__PURE__ */ o(X, {})
711
711
  }
712
712
  ) : /* @__PURE__ */ o(
713
- q,
713
+ N,
714
714
  {
715
715
  onClick: s,
716
716
  size: n,
@@ -721,7 +721,7 @@ function Zt({
721
721
  }
722
722
  ) });
723
723
  }
724
- function Jt({
724
+ function ee({
725
725
  name: t,
726
726
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
727
727
  multiple: e,
@@ -729,39 +729,39 @@ function Jt({
729
729
  handleReset: n,
730
730
  handleOpen: r,
731
731
  dragOver: i,
732
- error: l,
732
+ error: a,
733
733
  placeholder: s,
734
734
  focused: g,
735
735
  buttonText: b = "Browse",
736
736
  inProgress: v,
737
- InputProps: u,
738
- size: p = "small",
737
+ InputProps: d,
738
+ size: u = "small",
739
739
  hasFiles: h,
740
740
  cursor: x = "pointer",
741
741
  ...M
742
742
  }) {
743
743
  return /* @__PURE__ */ o(
744
- Yt,
744
+ Xt,
745
745
  {
746
746
  ...M,
747
- size: p,
748
- error: l,
747
+ size: u,
748
+ error: a,
749
749
  placeholder: s,
750
750
  focused: g ?? i,
751
751
  cursor: x,
752
752
  InputProps: {
753
- ...u,
753
+ ...d,
754
754
  name: t,
755
755
  // multiple prop cannot be used here because it is not a valid prop for TextField InputProps
756
756
  // not used for any UI logic
757
757
  readOnly: !0,
758
758
  endAdornment: /* @__PURE__ */ o(
759
- Zt,
759
+ te,
760
760
  {
761
761
  buttonText: b,
762
762
  hasFiles: h,
763
- size: p,
764
- error: l,
763
+ size: u,
764
+ error: a,
765
765
  disabled: !!i,
766
766
  handleReset: n,
767
767
  handleOpen: r,
@@ -772,15 +772,15 @@ function Jt({
772
772
  }
773
773
  );
774
774
  }
775
- function Kt({
775
+ function ne({
776
776
  onChange: t,
777
777
  files: e,
778
778
  multiple: n,
779
779
  placeholder: r,
780
780
  uploadInputRef: i
781
781
  }) {
782
- const l = E(), s = $(l), [g, b] = L(""), [v, u] = L(!1);
783
- Z(() => {
782
+ const a = O(), s = R(a), [g, b] = k(""), [v, d] = k(!1);
783
+ K(() => {
784
784
  !e || e.length === 0 ? b("") : e.length === 1 ? b(e[0].name) : b(
785
785
  s.formatMessage(
786
786
  { id: "c4r.form.filesSelected" },
@@ -788,105 +788,105 @@ function Kt({
788
788
  )
789
789
  );
790
790
  }, [e, s]);
791
- const p = () => {
792
- var c;
793
- (c = i.current) == null || c.click();
794
- }, h = (c) => {
795
- c.preventDefault(), u(!0);
796
- }, x = (c) => {
797
- c.preventDefault(), u(!1);
798
- }, M = (c) => {
799
- c.preventDefault(), u(!1);
800
- const I = c.dataTransfer.items, A = f(I);
791
+ const u = () => {
792
+ var l;
793
+ (l = i.current) == null || l.click();
794
+ }, h = (l) => {
795
+ l.preventDefault(), d(!0);
796
+ }, x = (l) => {
797
+ l.preventDefault(), d(!1);
798
+ }, M = (l) => {
799
+ l.preventDefault(), d(!1);
800
+ const m = l.dataTransfer.items, A = f(m);
801
801
  t == null || t(A);
802
- }, f = (c) => {
803
- const I = [];
804
- for (const A of Array.from(c))
802
+ }, f = (l) => {
803
+ const m = [];
804
+ for (const A of Array.from(l))
805
805
  if (A.kind === "file") {
806
- const R = A.getAsFile();
807
- I.push(R);
806
+ const F = A.getAsFile();
807
+ m.push(F);
808
808
  }
809
- return I;
810
- }, a = (c) => {
811
- const I = Array.from(c.target.files);
812
- t == null || t(I);
813
- }, S = (c) => {
814
- c.stopPropagation(), b("");
815
- }, m = J(() => {
816
- const c = s.formatMessage(
809
+ return m;
810
+ }, T = (l) => {
811
+ const m = Array.from(l.target.files);
812
+ t == null || t(m);
813
+ }, I = (l) => {
814
+ l.stopPropagation(), b("");
815
+ }, p = Q(() => {
816
+ const l = s.formatMessage(
817
817
  { id: "c4r.form.dragPlaceholder" },
818
818
  { count: n ? 0 : 1 }
819
- ), I = s.formatMessage(
819
+ ), m = s.formatMessage(
820
820
  { id: "c4r.form.dragActivePlaceholder" },
821
821
  { count: n ? 0 : 1 }
822
822
  );
823
823
  let A = "";
824
- return v ? A = I : A = r ?? c, A;
824
+ return v ? A = m : A = r ?? l, A;
825
825
  }, [v, n, r, s]);
826
826
  return {
827
827
  filesText: g,
828
- getPlaceholder: m,
828
+ getPlaceholder: p,
829
829
  dragOver: v,
830
830
  inputEvents: {
831
831
  onDragOver: h,
832
832
  onDragLeave: x,
833
833
  onDrop: M,
834
- onClick: p
834
+ onClick: u
835
835
  },
836
- handleFiles: a,
837
- handleReset: S
836
+ handleFiles: T,
837
+ handleReset: I
838
838
  };
839
839
  }
840
- const Qt = ["application/JSON"];
841
- function Ge({
840
+ const oe = ["application/JSON"];
841
+ function We({
842
842
  name: t,
843
843
  buttonText: e,
844
844
  accept: n,
845
845
  files: r,
846
846
  inProgress: i,
847
- onChange: l,
847
+ onChange: a,
848
848
  multiple: s,
849
849
  placeholder: g,
850
850
  error: b,
851
851
  focused: v,
852
- nativeInputProps: u,
853
- ...p
852
+ nativeInputProps: d,
853
+ ...u
854
854
  }) {
855
- const h = n ?? Qt, x = bt(null), {
855
+ const h = n ?? oe, x = Tt(null), {
856
856
  filesText: M,
857
857
  getPlaceholder: f,
858
- dragOver: a,
859
- inputEvents: S,
860
- handleFiles: m,
858
+ dragOver: T,
859
+ inputEvents: I,
860
+ handleFiles: p,
861
861
  handleReset: B
862
- } = Kt({
862
+ } = ne({
863
863
  uploadInputRef: x,
864
864
  files: r,
865
- onChange: l,
865
+ onChange: a,
866
866
  multiple: s,
867
867
  placeholder: g
868
868
  });
869
- return /* @__PURE__ */ y(G, { children: [
869
+ return /* @__PURE__ */ y(_, { children: [
870
870
  /* @__PURE__ */ o(
871
- Jt,
871
+ ee,
872
872
  {
873
- ...p,
873
+ ...u,
874
874
  placeholder: f,
875
875
  value: M,
876
876
  error: b,
877
- focused: v ?? a,
877
+ focused: v ?? T,
878
878
  handleReset: B,
879
- dragOver: a,
879
+ dragOver: T,
880
880
  inProgress: i,
881
881
  hasFiles: !!M,
882
- InputProps: S,
882
+ InputProps: I,
883
883
  buttonText: e
884
884
  }
885
885
  ),
886
886
  /* @__PURE__ */ o(
887
887
  "input",
888
888
  {
889
- ...u,
889
+ ...d,
890
890
  ref: x,
891
891
  style: { display: "none" },
892
892
  type: "file",
@@ -894,12 +894,12 @@ function Ge({
894
894
  name: t,
895
895
  accept: String(h),
896
896
  multiple: s,
897
- onChange: m
897
+ onChange: p
898
898
  }
899
899
  )
900
900
  ] });
901
901
  }
902
- const Xt = d("div", {
902
+ const re = c("div", {
903
903
  shouldForwardProp: (t) => t !== "variant"
904
904
  })(({ variant: t, theme: e }) => ({
905
905
  width: "100%",
@@ -909,114 +909,117 @@ const Xt = d("div", {
909
909
  boxShadow: `inset 0 0 0 1px ${e.palette.divider}`
910
910
  }
911
911
  }));
912
- function _e({
912
+ function Ue({
913
913
  variant: t = "standard",
914
914
  items: e,
915
915
  ...n
916
916
  }) {
917
- return /* @__PURE__ */ o(Xt, { ...n, variant: t, children: e.map((r, i) => /* @__PURE__ */ y(
918
- ct,
917
+ return /* @__PURE__ */ o(re, { ...n, variant: t, children: e.map((r, i) => /* @__PURE__ */ y(
918
+ mt,
919
919
  {
920
920
  disabled: r.disabled,
921
921
  defaultExpanded: r.defaultExpanded,
922
922
  onChange: r.onChange,
923
923
  children: [
924
924
  /* @__PURE__ */ o(
925
- ut,
925
+ ht,
926
926
  {
927
927
  "aria-controls": `${i}-content`,
928
928
  id: `${i}-header`,
929
929
  children: r.summary
930
930
  }
931
931
  ),
932
- /* @__PURE__ */ o(pt, { children: r.content })
932
+ /* @__PURE__ */ o(Mt, { children: r.content })
933
933
  ]
934
934
  },
935
935
  i
936
936
  )) });
937
937
  }
938
- const te = gt(), ee = "c4r.form.add";
939
- function ne(t) {
938
+ const ie = yt(), ae = "c4r.form.add";
939
+ function le(t) {
940
940
  return t && typeof t == "object" ? t.title ?? String(t) : String(t);
941
941
  }
942
- function oe({
942
+ function se({
943
943
  creatable: t,
944
- newItemLabel: e = ee,
944
+ newItemLabel: e = ae,
945
945
  newItemIcon: n,
946
946
  freeSolo: r,
947
947
  renderOption: i,
948
- forcePopupIcon: l,
948
+ forcePopupIcon: a,
949
949
  filterOptions: s,
950
- getOptionLabel: g = ne,
950
+ getOptionLabel: g = le,
951
951
  ...b
952
952
  }, v) {
953
- const u = E(), p = $(u);
953
+ const d = O(), u = R(d);
954
954
  return /* @__PURE__ */ o(
955
- ft,
955
+ bt,
956
956
  {
957
957
  ...b,
958
958
  ref: v,
959
- filterOptions: t ? (f, a) => {
960
- const S = te(
959
+ filterOptions: t ? (f, T) => {
960
+ const I = ie(
961
961
  f,
962
- a
963
- ), { inputValue: m } = a, B = f.some(
964
- (c) => m === g(c)
962
+ T
963
+ ), { inputValue: p } = T, B = f.some(
964
+ (l) => p === g(l)
965
965
  );
966
- return m.length > 1 && m !== "" && !B && S.push({
967
- inputValue: m,
968
- title: typeof e == "function" ? e(m) : `${p.formatMessage({ id: e })} "${m}"`
969
- }), S;
966
+ return p.length > 1 && p !== "" && !B && I.push({
967
+ inputValue: p,
968
+ title: typeof e == "function" ? e(p) : `${u.formatMessage({ id: e })} "${p}"`
969
+ }), I;
970
970
  } : s,
971
971
  getOptionLabel: t ? (f) => typeof f == "string" ? f : f.inputValue ? f.inputValue : g(f) : g,
972
- renderOption: t ? (f, a) => /* @__PURE__ */ o(vt, { children: a.divider ? /* @__PURE__ */ o(D, {}) : /* @__PURE__ */ y(G, { children: [
973
- a.inputValue && /* @__PURE__ */ o(D, {}),
974
- /* @__PURE__ */ y(
975
- X,
976
- {
977
- ...f,
978
- fixed: a.fixed,
979
- extended: a.extended,
980
- dense: a.dense,
981
- destructive: a.destructive,
982
- disabled: a.disabled,
983
- subtitle: a.subtitle,
984
- iconColor: a.iconColor,
985
- children: [
986
- a.inputValue && /* @__PURE__ */ o(U, { children: n ?? /* @__PURE__ */ o(Tt, {}) }),
987
- a.startAdornment && !a.inputValue && /* @__PURE__ */ o(U, { children: a.startAdornment }),
988
- /* @__PURE__ */ y(Y, { children: [
989
- a.alternativeTitle ?? a.title,
990
- a.secondaryText && /* @__PURE__ */ o(
991
- T,
992
- {
993
- component: "p",
994
- variant: "caption",
995
- color: "text.secondary",
996
- children: a.secondaryText
997
- }
998
- )
999
- ] }),
1000
- a.endAdornment
1001
- ]
1002
- }
1003
- )
1004
- ] }) }, a.inputValue ?? a.title) : i,
972
+ renderOption: t ? (f, T) => {
973
+ const { inputValue: I, title: p, alternativeTitle: B, secondaryText: l, divider: m, fixed: A, extended: F, dense: C, destructive: E, disabled: U, subtitle: nt, iconColor: ot, startAdornment: j, endAdornment: rt } = T;
974
+ return /* @__PURE__ */ o(At, { children: m ? /* @__PURE__ */ o(G, {}) : /* @__PURE__ */ y(_, { children: [
975
+ I && /* @__PURE__ */ o(G, {}),
976
+ /* @__PURE__ */ y(
977
+ et,
978
+ {
979
+ ...f,
980
+ fixed: A,
981
+ extended: F,
982
+ dense: C,
983
+ destructive: E,
984
+ disabled: U,
985
+ subtitle: nt,
986
+ iconColor: ot,
987
+ children: [
988
+ I && /* @__PURE__ */ o(q, { children: n ?? /* @__PURE__ */ o(wt, {}) }),
989
+ j && !I && /* @__PURE__ */ o(q, { children: j }),
990
+ /* @__PURE__ */ y(J, { children: [
991
+ B ?? p,
992
+ l && /* @__PURE__ */ o(
993
+ S,
994
+ {
995
+ component: "p",
996
+ variant: "caption",
997
+ color: "text.secondary",
998
+ children: l
999
+ }
1000
+ )
1001
+ ] }),
1002
+ rt
1003
+ ]
1004
+ }
1005
+ )
1006
+ ] }) }, I ?? p);
1007
+ } : i,
1005
1008
  freeSolo: t || r,
1006
- forcePopupIcon: t || l
1009
+ forcePopupIcon: t || a
1007
1010
  }
1008
1011
  );
1009
1012
  }
1010
- const Ve = k(oe), j = {
1013
+ const je = $(se), z = {
1011
1014
  large: 5,
1012
1015
  medium: 4,
1013
1016
  small: 3,
1014
1017
  xsmall: 2.25
1015
- }, re = d(mt, {
1018
+ }, ce = c(vt, {
1016
1019
  shouldForwardProp: (t) => t !== "size"
1017
1020
  })(({ theme: t, size: e = "medium" }) => ({
1018
- width: t.spacing(j[e]),
1019
- height: t.spacing(j[e]),
1021
+ width: t.spacing(z[e]),
1022
+ height: t.spacing(z[e]),
1020
1023
  ...t.typography.subtitle1,
1021
1024
  ...e === "large" && {
1022
1025
  ...t.typography.h6
@@ -1029,48 +1032,48 @@ const Ve = k(oe), j = {
1029
1032
  ...t.typography.caption,
1030
1033
  fontWeight: 500,
1031
1034
  svg: {
1032
- width: F,
1033
- height: F
1035
+ width: w,
1036
+ height: w
1034
1037
  }
1035
1038
  }
1036
1039
  }));
1037
- function He(t) {
1038
- return /* @__PURE__ */ o(re, { ...t });
1040
+ function qe(t) {
1041
+ return /* @__PURE__ */ o(ce, { ...t });
1039
1042
  }
1040
- const ie = d("div")(({ theme: t }) => ({
1043
+ const de = c("div")(({ theme: t }) => ({
1041
1044
  display: "flex",
1042
1045
  alignItems: "center",
1043
- height: xt,
1046
+ height: St,
1044
1047
  marginRight: t.spacing(1.5)
1045
- })), ae = d(P)(({ theme: t }) => ({
1048
+ })), ue = c(L)(({ theme: t }) => ({
1046
1049
  marginRight: t.spacing(1),
1047
1050
  "&.MuiButtonBase-root svg path": {
1048
1051
  fill: t.palette.brand.appBarContrastText
1049
1052
  }
1050
- })), le = d(D)(({ theme: t }) => ({
1051
- borderColor: ht(t.palette.brand.appBarContrastText, 0.12)
1053
+ })), pe = c(G)(({ theme: t }) => ({
1054
+ borderColor: xt(t.palette.brand.appBarContrastText, 0.12)
1052
1055
  }));
1053
- function se({
1056
+ function ge({
1054
1057
  onClickMenu: t
1055
1058
  }) {
1056
1059
  return (
1057
1060
  // replacing deprecated `<Hidden />` with sx following this MUI5 guide:
1058
1061
  // https://mui.com/material-ui/migration/v5-component-changes/#hidden
1059
1062
  /* @__PURE__ */ o(
1060
- w,
1063
+ P,
1061
1064
  {
1062
1065
  sx: {
1063
1066
  display: { md: "none", xs: "block" }
1064
1067
  },
1065
- children: /* @__PURE__ */ y(ie, { children: [
1066
- /* @__PURE__ */ o(ae, { onClick: t, children: /* @__PURE__ */ o(At, {}) }),
1067
- /* @__PURE__ */ o(le, { orientation: "vertical", flexItem: !0 })
1068
+ children: /* @__PURE__ */ y(de, { children: [
1069
+ /* @__PURE__ */ o(ue, { onClick: t, children: /* @__PURE__ */ o(Pt, {}) }),
1070
+ /* @__PURE__ */ o(pe, { orientation: "vertical", flexItem: !0 })
1068
1071
  ] })
1069
1072
  }
1070
1073
  )
1071
1074
  );
1072
1075
  }
1073
- const de = d("div")(({ theme: t }) => ({
1076
+ const fe = c("div")(({ theme: t }) => ({
1074
1077
  display: "flex",
1075
1078
  marginRight: t.spacing(1.5),
1076
1079
  "& a": {
@@ -1081,18 +1084,18 @@ const de = d("div")(({ theme: t }) => ({
1081
1084
  height: t.spacing(4)
1082
1085
  }
1083
1086
  }));
1084
- function ce({ logo: t }) {
1085
- return /* @__PURE__ */ o(de, { children: t });
1087
+ function me({ logo: t }) {
1088
+ return /* @__PURE__ */ o(fe, { children: t });
1086
1089
  }
1087
- const ue = H(T)({
1090
+ const he = W(S)({
1088
1091
  display: "flex",
1089
1092
  alignItems: "center",
1090
1093
  whiteSpace: "nowrap"
1091
1094
  });
1092
- function pe({ text: t }) {
1093
- const e = Q();
1095
+ function Me({ text: t }) {
1096
+ const e = tt();
1094
1097
  return /* @__PURE__ */ o(
1095
- ue,
1098
+ he,
1096
1099
  {
1097
1100
  component: "span",
1098
1101
  variant: "subtitle1",
@@ -1101,7 +1104,7 @@ function pe({ text: t }) {
1101
1104
  }
1102
1105
  );
1103
1106
  }
1104
- const ge = H(T)(({ theme: t }) => ({
1107
+ const ye = W(S)(({ theme: t }) => ({
1105
1108
  display: "flex",
1106
1109
  alignItems: "center",
1107
1110
  "&::before": {
@@ -1111,10 +1114,10 @@ const ge = H(T)(({ theme: t }) => ({
1111
1114
  color: t.palette.brand.appBarContrastText
1112
1115
  }
1113
1116
  }));
1114
- function fe({ text: t }) {
1115
- const e = Q();
1117
+ function be({ text: t }) {
1118
+ const e = tt();
1116
1119
  return /* @__PURE__ */ o(
1117
- ge,
1120
+ ye,
1118
1121
  {
1119
1122
  component: "span",
1120
1123
  variant: "body2",
@@ -1124,7 +1127,7 @@ function fe({ text: t }) {
1124
1127
  }
1125
1128
  );
1126
1129
  }
1127
- const me = d(Mt)(({ theme: t }) => ({
1130
+ const ve = c(It)(({ theme: t }) => ({
1128
1131
  backgroundColor: t.palette.brand.appBarMain,
1129
1132
  "& .MuiTypography-root": {
1130
1133
  color: t.palette.brand.appBarContrastText
@@ -1132,7 +1135,7 @@ const me = d(Mt)(({ theme: t }) => ({
1132
1135
  "& .MuiIconButton-root path": {
1133
1136
  fill: t.palette.brand.appBarContrastText
1134
1137
  }
1135
- })), he = d("div")(({ theme: t }) => ({
1138
+ })), xe = c("div")(({ theme: t }) => ({
1136
1139
  display: "flex",
1137
1140
  alignItems: "center",
1138
1141
  maxWidth: "calc(100% - 300px)",
@@ -1140,63 +1143,63 @@ const me = d(Mt)(({ theme: t }) => ({
1140
1143
  [t.breakpoints.down("sm")]: {
1141
1144
  minWidth: "192px"
1142
1145
  }
1143
- })), Me = d("div")(({ theme: t }) => ({
1146
+ })), Ie = c("div")(({ theme: t }) => ({
1144
1147
  display: "flex",
1145
1148
  alignItems: "center",
1146
1149
  justifyContent: "space-between",
1147
1150
  flex: 1,
1148
1151
  marginLeft: t.spacing(1)
1149
1152
  }));
1150
- function We({
1153
+ function ze({
1151
1154
  children: t,
1152
1155
  brandLogo: e,
1153
1156
  brandText: n,
1154
1157
  secondaryText: r,
1155
1158
  showBurgerMenu: i = !1,
1156
- onClickMenu: l,
1159
+ onClickMenu: a,
1157
1160
  ...s
1158
1161
  }) {
1159
- return /* @__PURE__ */ o(me, { ...s, children: /* @__PURE__ */ y(yt, { children: [
1160
- /* @__PURE__ */ y(he, { children: [
1161
- i && /* @__PURE__ */ o(se, { onClickMenu: l }),
1162
- e && /* @__PURE__ */ o(ce, { logo: e }),
1163
- n && /* @__PURE__ */ o(pe, { text: n }),
1164
- r && /* @__PURE__ */ o(fe, { text: r })
1162
+ return /* @__PURE__ */ o(ve, { ...s, children: /* @__PURE__ */ y(Bt, { children: [
1163
+ /* @__PURE__ */ y(xe, { children: [
1164
+ i && /* @__PURE__ */ o(ge, { onClickMenu: a }),
1165
+ e && /* @__PURE__ */ o(me, { logo: e }),
1166
+ n && /* @__PURE__ */ o(Me, { text: n }),
1167
+ r && /* @__PURE__ */ o(be, { text: r })
1165
1168
  ] }),
1166
- /* @__PURE__ */ o(Me, { children: t })
1169
+ /* @__PURE__ */ o(Ie, { children: t })
1167
1170
  ] }) });
1168
1171
  }
1169
- const ye = [{ outlinedBullet: !1, value: "" }], be = d("ul")(({ theme: t }) => ({
1172
+ const Be = [{ outlinedBullet: !1, value: "" }], Te = c("ul")(({ theme: t }) => ({
1170
1173
  listStyle: "none",
1171
1174
  paddingLeft: 0,
1172
1175
  margin: t.spacing(0.5, 0, 0, 0)
1173
- })), ve = d("li")(({ theme: t }) => ({
1176
+ })), Ae = c("li")(({ theme: t }) => ({
1174
1177
  display: "flex",
1175
1178
  alignItems: "center",
1176
1179
  justifyContent: "space-between",
1177
1180
  "&:not(:last-child)": {
1178
1181
  marginBottom: t.spacing(0.5)
1179
1182
  }
1180
- })), xe = d("span")(({ theme: t }) => ({
1183
+ })), Se = c("span")(({ theme: t }) => ({
1181
1184
  width: t.spacing(1),
1182
1185
  height: t.spacing(1),
1183
1186
  marginRight: t.spacing(0.5),
1184
1187
  border: `2px solid ${t.palette.qualitative.bold[1]}`,
1185
1188
  borderRadius: "50%",
1186
1189
  backgroundColor: t.palette.qualitative.bold[1]
1187
- })), Ie = d(T)(({ theme: t }) => ({
1190
+ })), Ce = c(S)(({ theme: t }) => ({
1188
1191
  minWidth: t.spacing(10),
1189
1192
  marginRight: t.spacing(1.5)
1190
1193
  }));
1191
- function Ue({
1192
- items: t = ye,
1194
+ function Ne({
1195
+ items: t = Be,
1193
1196
  title: e
1194
1197
  }) {
1195
- return /* @__PURE__ */ y(G, { children: [
1196
- e && /* @__PURE__ */ o(T, { color: "inherit", variant: "caption", weight: "medium", children: e }),
1197
- /* @__PURE__ */ o(be, { children: t.map((n, r) => /* @__PURE__ */ y(ve, { children: [
1198
+ return /* @__PURE__ */ y(_, { children: [
1199
+ e && /* @__PURE__ */ o(S, { color: "inherit", variant: "caption", weight: "medium", children: e }),
1200
+ /* @__PURE__ */ o(Te, { children: t.map((n, r) => /* @__PURE__ */ y(Ae, { children: [
1198
1201
  /* @__PURE__ */ o(
1199
- xe,
1202
+ Se,
1200
1203
  {
1201
1204
  style: {
1202
1205
  backgroundColor: `${n.outlinedBullet ? "transparent" : n.color}`,
@@ -1204,29 +1207,29 @@ function Ue({
1204
1207
  }
1205
1208
  }
1206
1209
  ),
1207
- n.category && /* @__PURE__ */ o(Ie, { color: "inherit", variant: "caption", children: n.category }),
1208
- /* @__PURE__ */ o(T, { color: "inherit", variant: "caption", weight: "medium", children: n.value })
1210
+ n.category && /* @__PURE__ */ o(Ce, { color: "inherit", variant: "caption", children: n.category }),
1211
+ /* @__PURE__ */ o(S, { color: "inherit", variant: "caption", weight: "medium", children: n.value })
1209
1212
  ] }, r)) })
1210
1213
  ] });
1211
1214
  }
1212
1215
  export {
1213
- _e as AccordionGroup,
1214
- Ye as Alert,
1215
- We as AppBar,
1216
- Ve as Autocomplete,
1217
- He as Avatar,
1218
- Le as Button,
1219
- ke as LabelWithIndicator,
1220
- Re as Menu,
1221
- X as MenuItem,
1222
- Oe as MenuList,
1223
- De as MultipleSelectField,
1224
- $e as PasswordField,
1225
- Rt as SelectField,
1226
- ze as TablePaginationActions,
1227
- Ee as ToggleButtonGroup,
1228
- Ue as TooltipData,
1229
- T as Typography,
1230
- Ge as UploadField,
1231
- Jt as UploadFieldBase
1216
+ Ue as AccordionGroup,
1217
+ Qe as Alert,
1218
+ ze as AppBar,
1219
+ je as Autocomplete,
1220
+ qe as Avatar,
1221
+ Re as Button,
1222
+ Oe as LabelWithIndicator,
1223
+ _e as Menu,
1224
+ et as MenuItem,
1225
+ He as MenuList,
1226
+ Ve as MultipleSelectField,
1227
+ De as PasswordField,
1228
+ Ht as SelectField,
1229
+ Je as TablePaginationActions,
1230
+ Ge as ToggleButtonGroup,
1231
+ Ne as TooltipData,
1232
+ S as Typography,
1233
+ We as UploadField,
1234
+ ee as UploadFieldBase
1232
1235
  };