@tracktor/design-system 4.3.3 → 4.4.0
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.
- package/CHANGELOG.md +3 -3
- package/dist/main.cjs +5 -5
- package/dist/main.js +94 -67
- package/dist/src/components/DataDisplay/Icons/ChevronIcon.d.ts +3 -2
- package/dist/src/components/DataDisplay/Icons/CloseIcon.d.ts +3 -2
- package/dist/src/components/Inputs/ChipFilter/ChipFilter.d.ts +71 -0
- package/dist/src/config/theme.d.ts +3 -0
- package/dist/src/locales/en.d.ts +1 -0
- package/dist/src/locales/fr.d.ts +1 -0
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -38,7 +38,7 @@ const kr = {
|
|
|
38
38
|
const { hasPermission: i } = Br(), a = i(r, n, o);
|
|
39
39
|
return a ? A : !a && e ? e : null;
|
|
40
40
|
};
|
|
41
|
-
var
|
|
41
|
+
var $A = { exports: {} }, HA = {};
|
|
42
42
|
/**
|
|
43
43
|
* @license React
|
|
44
44
|
* react-jsx-runtime.production.js
|
|
@@ -165,7 +165,7 @@ function Rr() {
|
|
|
165
165
|
return Error("react-stack-top-frame");
|
|
166
166
|
}
|
|
167
167
|
function a(p) {
|
|
168
|
-
if (
|
|
168
|
+
if (K.call(p, "key")) {
|
|
169
169
|
var S = Object.getOwnPropertyDescriptor(p, "key").get;
|
|
170
170
|
if (S && S.isReactWarning) return !1;
|
|
171
171
|
}
|
|
@@ -234,7 +234,7 @@ function Rr() {
|
|
|
234
234
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
235
235
|
);
|
|
236
236
|
else f(X);
|
|
237
|
-
if (
|
|
237
|
+
if (K.call(S, "key")) {
|
|
238
238
|
X = A(p);
|
|
239
239
|
var yA = Object.keys(S).filter(function(xe) {
|
|
240
240
|
return xe !== "key";
|
|
@@ -274,7 +274,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
274
274
|
function f(p) {
|
|
275
275
|
typeof p == "object" && p !== null && p.$$typeof === g && p._store && (p._store.validated = 1);
|
|
276
276
|
}
|
|
277
|
-
var w = wr, g = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), h = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), M = Symbol.for("react.activity"), q = Symbol.for("react.client.reference"), Z = w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
277
|
+
var w = wr, g = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), h = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), M = Symbol.for("react.activity"), q = Symbol.for("react.client.reference"), Z = w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, K = Object.prototype.hasOwnProperty, aA = Array.isArray, F = console.createTask ? console.createTask : function() {
|
|
278
278
|
return null;
|
|
279
279
|
};
|
|
280
280
|
w = {
|
|
@@ -315,7 +315,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
315
315
|
}
|
|
316
316
|
var o1;
|
|
317
317
|
function Mr() {
|
|
318
|
-
return o1 || (o1 = 1, process.env.NODE_ENV === "production" ?
|
|
318
|
+
return o1 || (o1 = 1, process.env.NODE_ENV === "production" ? $A.exports = Sr() : $A.exports = Rr()), $A.exports;
|
|
319
319
|
}
|
|
320
320
|
var YA = Mr();
|
|
321
321
|
function Pr(A) {
|
|
@@ -360,7 +360,7 @@ var Lr = /* @__PURE__ */ function() {
|
|
|
360
360
|
}, A;
|
|
361
361
|
}(), AA = "-ms-", ae = "-moz-", D = "-webkit-", L1 = "comm", qe = "rule", Xe = "decl", Dr = "@import", D1 = "@keyframes", Hr = "@layer", Or = Math.abs, fe = String.fromCharCode, Qr = Object.assign;
|
|
362
362
|
function Vr(A, e) {
|
|
363
|
-
return
|
|
363
|
+
return $(A, 0) ^ 45 ? (((e << 2 ^ $(A, 0)) << 2 ^ $(A, 1)) << 2 ^ $(A, 2)) << 2 ^ $(A, 3) : 0;
|
|
364
364
|
}
|
|
365
365
|
function H1(A) {
|
|
366
366
|
return A.trim();
|
|
@@ -374,7 +374,7 @@ function H(A, e, r) {
|
|
|
374
374
|
function Te(A, e) {
|
|
375
375
|
return A.indexOf(e);
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function $(A, e) {
|
|
378
378
|
return A.charCodeAt(e) | 0;
|
|
379
379
|
}
|
|
380
380
|
function WA(A, e, r) {
|
|
@@ -386,7 +386,7 @@ function fA(A) {
|
|
|
386
386
|
function _e(A) {
|
|
387
387
|
return A.length;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function KA(A, e) {
|
|
390
390
|
return e.push(A), A;
|
|
391
391
|
}
|
|
392
392
|
function Nr(A, e) {
|
|
@@ -403,13 +403,13 @@ function Zr() {
|
|
|
403
403
|
return Y;
|
|
404
404
|
}
|
|
405
405
|
function jr() {
|
|
406
|
-
return Y = iA > 0 ?
|
|
406
|
+
return Y = iA > 0 ? $(MA, --iA) : 0, RA--, Y === 10 && (RA = 1, ge--), Y;
|
|
407
407
|
}
|
|
408
408
|
function lA() {
|
|
409
|
-
return Y = iA < O1 ?
|
|
409
|
+
return Y = iA < O1 ? $(MA, iA++) : 0, RA++, Y === 10 && (RA = 1, ge++), Y;
|
|
410
410
|
}
|
|
411
411
|
function hA() {
|
|
412
|
-
return
|
|
412
|
+
return $(MA, iA);
|
|
413
413
|
}
|
|
414
414
|
function ee() {
|
|
415
415
|
return iA;
|
|
@@ -515,7 +515,7 @@ function te(A, e, r, n, o, i, a, s, d) {
|
|
|
515
515
|
switch (x = E, E = lA()) {
|
|
516
516
|
// (
|
|
517
517
|
case 40:
|
|
518
|
-
if (x != 108 &&
|
|
518
|
+
if (x != 108 && $(I, f - 1) == 58) {
|
|
519
519
|
Te(I += H(re(E), "&", "&\f"), "&\f") != -1 && (v = -1);
|
|
520
520
|
break;
|
|
521
521
|
}
|
|
@@ -541,7 +541,7 @@ function te(A, e, r, n, o, i, a, s, d) {
|
|
|
541
541
|
switch (hA()) {
|
|
542
542
|
case 42:
|
|
543
543
|
case 47:
|
|
544
|
-
|
|
544
|
+
KA(Gr(Ur(lA(), ee()), e, r), d);
|
|
545
545
|
break;
|
|
546
546
|
default:
|
|
547
547
|
I += "/";
|
|
@@ -561,24 +561,24 @@ function te(A, e, r, n, o, i, a, s, d) {
|
|
|
561
561
|
b = 0;
|
|
562
562
|
// ;
|
|
563
563
|
case 59 + u:
|
|
564
|
-
v == -1 && (I = H(I, /\f/g, "")), g > 0 && fA(I) - f &&
|
|
564
|
+
v == -1 && (I = H(I, /\f/g, "")), g > 0 && fA(I) - f && KA(g > 32 ? a1(I + ";", n, r, f - 1) : a1(H(I, " ", "") + ";", n, r, f - 2), d);
|
|
565
565
|
break;
|
|
566
566
|
// @ ;
|
|
567
567
|
case 59:
|
|
568
568
|
I += ";";
|
|
569
569
|
// { rule/at-rule
|
|
570
570
|
default:
|
|
571
|
-
if (
|
|
571
|
+
if (KA(k = i1(I, e, r, c, u, o, s, h, y = [], l = [], f), i), E === 123)
|
|
572
572
|
if (u === 0)
|
|
573
573
|
te(I, e, k, k, y, i, f, s, l);
|
|
574
574
|
else
|
|
575
|
-
switch (w === 99 &&
|
|
575
|
+
switch (w === 99 && $(I, 3) === 110 ? 100 : w) {
|
|
576
576
|
// d l m s
|
|
577
577
|
case 100:
|
|
578
578
|
case 108:
|
|
579
579
|
case 109:
|
|
580
580
|
case 115:
|
|
581
|
-
te(A, k, k, n &&
|
|
581
|
+
te(A, k, k, n && KA(i1(A, k, k, 0, 0, o, s, h, o, y = [], f), l), o, l, f, s, n ? y : l);
|
|
582
582
|
break;
|
|
583
583
|
default:
|
|
584
584
|
te(I, k, k, k, [""], l, 0, s, l);
|
|
@@ -662,13 +662,13 @@ function _r(A) {
|
|
|
662
662
|
e.root || (e = e.return) && A(e);
|
|
663
663
|
};
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function $r(A) {
|
|
666
666
|
var e = /* @__PURE__ */ Object.create(null);
|
|
667
667
|
return function(r) {
|
|
668
668
|
return e[r] === void 0 && (e[r] = A(r)), e[r];
|
|
669
669
|
};
|
|
670
670
|
}
|
|
671
|
-
var
|
|
671
|
+
var Kr = function(e, r, n) {
|
|
672
672
|
for (var o = 0, i = 0; o = i, i = hA(), o === 38 && i === 12 && (r[n] = 1), !GA(i); )
|
|
673
673
|
lA();
|
|
674
674
|
return XA(e, iA);
|
|
@@ -677,7 +677,7 @@ var $r = function(e, r, n) {
|
|
|
677
677
|
do
|
|
678
678
|
switch (GA(o)) {
|
|
679
679
|
case 0:
|
|
680
|
-
o === 38 && hA() === 12 && (r[n] = 1), e[n] +=
|
|
680
|
+
o === 38 && hA() === 12 && (r[n] = 1), e[n] += Kr(iA - 1, r, n);
|
|
681
681
|
break;
|
|
682
682
|
case 2:
|
|
683
683
|
e[n] += re(o);
|
|
@@ -815,13 +815,13 @@ function F1(A, e) {
|
|
|
815
815
|
case 5789:
|
|
816
816
|
case 5021:
|
|
817
817
|
case 4765:
|
|
818
|
-
if (fA(A) - 1 - e > 6) switch (
|
|
818
|
+
if (fA(A) - 1 - e > 6) switch ($(A, e + 1)) {
|
|
819
819
|
// (m)ax-content, (m)in-content
|
|
820
820
|
case 109:
|
|
821
|
-
if (
|
|
821
|
+
if ($(A, e + 4) !== 45) break;
|
|
822
822
|
// (f)ill-available, (f)it-content
|
|
823
823
|
case 102:
|
|
824
|
-
return H(A, /(.+:)(.+)-([^]+)/, "$1" + D + "$2-$3$1" + ae + (
|
|
824
|
+
return H(A, /(.+:)(.+)-([^]+)/, "$1" + D + "$2-$3$1" + ae + ($(A, e + 3) == 108 ? "$3" : "$2-$3")) + A;
|
|
825
825
|
// (s)tretch
|
|
826
826
|
case 115:
|
|
827
827
|
return ~Te(A, "stretch") ? F1(H(A, "stretch", "fill-available"), e) + A : A;
|
|
@@ -829,21 +829,21 @@ function F1(A, e) {
|
|
|
829
829
|
break;
|
|
830
830
|
// position: sticky
|
|
831
831
|
case 4949:
|
|
832
|
-
if (
|
|
832
|
+
if ($(A, e + 1) !== 115) break;
|
|
833
833
|
// display: (flex|inline-flex)
|
|
834
834
|
case 6444:
|
|
835
|
-
switch (
|
|
835
|
+
switch ($(A, fA(A) - 3 - (~Te(A, "!important") && 10))) {
|
|
836
836
|
// stic(k)y
|
|
837
837
|
case 107:
|
|
838
838
|
return H(A, ":", ":" + D) + A;
|
|
839
839
|
// (inline-)?fl(e)x
|
|
840
840
|
case 101:
|
|
841
|
-
return H(A, /(.+:)([^;!]+)(;|!.+)?/, "$1" + D + (
|
|
841
|
+
return H(A, /(.+:)([^;!]+)(;|!.+)?/, "$1" + D + ($(A, 14) === 45 ? "inline-" : "") + "box$3$1" + D + "$2$3$1" + AA + "$2box$3") + A;
|
|
842
842
|
}
|
|
843
843
|
break;
|
|
844
844
|
// writing-mode
|
|
845
845
|
case 5936:
|
|
846
|
-
switch (
|
|
846
|
+
switch ($(A, e + 11)) {
|
|
847
847
|
// vertical-l(r)
|
|
848
848
|
case 114:
|
|
849
849
|
return D + A + AA + H(A, /[svh]\w+-[tblr]{2}/, "tb") + A;
|
|
@@ -1060,7 +1060,7 @@ function st() {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
|
-
var l = d, k = c, I = s, T = a, M = e, q = u, Z = n,
|
|
1063
|
+
var l = d, k = c, I = s, T = a, M = e, q = u, Z = n, K = x, aA = g, F = r, U = i, eA = o, nA = f, L = !1;
|
|
1064
1064
|
function P(B) {
|
|
1065
1065
|
return L || (L = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), p(B) || y(B) === d;
|
|
1066
1066
|
}
|
|
@@ -1100,7 +1100,7 @@ function st() {
|
|
|
1100
1100
|
function xe(B) {
|
|
1101
1101
|
return y(B) === f;
|
|
1102
1102
|
}
|
|
1103
|
-
V.AsyncMode = l, V.ConcurrentMode = k, V.ContextConsumer = I, V.ContextProvider = T, V.Element = M, V.ForwardRef = q, V.Fragment = Z, V.Lazy =
|
|
1103
|
+
V.AsyncMode = l, V.ConcurrentMode = k, V.ContextConsumer = I, V.ContextProvider = T, V.Element = M, V.ForwardRef = q, V.Fragment = Z, V.Lazy = K, V.Memo = aA, V.Portal = F, V.Profiler = U, V.StrictMode = eA, V.Suspense = nA, V.isAsyncMode = P, V.isConcurrentMode = p, V.isContextConsumer = S, V.isContextProvider = N, V.isElement = z, V.isForwardRef = G, V.isFragment = dA, V.isLazy = TA, V.isMemo = LA, V.isPortal = X, V.isProfiler = yA, V.isStrictMode = DA, V.isSuspense = xe, V.isValidElementType = h, V.typeOf = y;
|
|
1104
1104
|
}()), V;
|
|
1105
1105
|
}
|
|
1106
1106
|
var d1;
|
|
@@ -1275,7 +1275,7 @@ var gt = {
|
|
|
1275
1275
|
return e.charCodeAt(1) === 45;
|
|
1276
1276
|
}, u1 = function(e) {
|
|
1277
1277
|
return e != null && typeof e != "boolean";
|
|
1278
|
-
}, we = /* @__PURE__ */
|
|
1278
|
+
}, we = /* @__PURE__ */ $r(function(A) {
|
|
1279
1279
|
return Z1(A) ? A : A.replace(ht, "-$&").toLowerCase();
|
|
1280
1280
|
}), f1 = function(e, r) {
|
|
1281
1281
|
switch (e) {
|
|
@@ -1971,18 +1971,19 @@ const h1 = 32, Bt = 24, St = 105, Rt = 24, Mt = 195, Pt = 44, Tt = 147, Lt = ()
|
|
|
1971
1971
|
strokeLinejoin: "round",
|
|
1972
1972
|
fill: "none"
|
|
1973
1973
|
}
|
|
1974
|
-
) }),
|
|
1974
|
+
) }), $e = ({ sx: A, fontSize: e, color: r = "currentColor" }) => /* @__PURE__ */ t(
|
|
1975
1975
|
cA,
|
|
1976
1976
|
{
|
|
1977
|
+
fontSize: e,
|
|
1978
|
+
height: 24,
|
|
1979
|
+
width: 24,
|
|
1977
1980
|
sx: {
|
|
1978
|
-
fill: ({ palette:
|
|
1981
|
+
fill: ({ palette: n }) => r || (n.mode === "dark" ? n.common.white : n.common.black),
|
|
1979
1982
|
...A
|
|
1980
1983
|
},
|
|
1981
|
-
height: 24,
|
|
1982
|
-
width: 24,
|
|
1983
1984
|
children: /* @__PURE__ */ t("path", { d: "M18.3 5.71a.9959.9959 0 0 0-1.41 0L12 10.59 7.11 5.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z" })
|
|
1984
1985
|
}
|
|
1985
|
-
),
|
|
1986
|
+
), Ke = ({ url: A, end: e, children: r, active: n, state: o, component: i, disabled: a, onClick: s, target: d }) => {
|
|
1986
1987
|
const { closeDrawerMenu: c } = bA(PA), u = (f) => {
|
|
1987
1988
|
s?.(f), c?.();
|
|
1988
1989
|
};
|
|
@@ -2074,7 +2075,7 @@ const h1 = 32, Bt = 24, St = 105, Rt = 24, Mt = 195, Pt = 44, Tt = 147, Lt = ()
|
|
|
2074
2075
|
NavLink: e,
|
|
2075
2076
|
isCollapsed: r,
|
|
2076
2077
|
sx: n
|
|
2077
|
-
}) => /* @__PURE__ */ t(R, { sx: n?.bottomLink, children: /* @__PURE__ */ t(
|
|
2078
|
+
}) => /* @__PURE__ */ t(R, { sx: n?.bottomLink, children: /* @__PURE__ */ t(Ke, { component: e, ...A, children: /* @__PURE__ */ m(O, { alignItems: "center", spacing: 1, direction: "row", children: [
|
|
2078
2079
|
A?.icon && /* @__PURE__ */ t(R, { component: "span", sx: n.iconWrapper, children: A.icon }),
|
|
2079
2080
|
A?.label && /* @__PURE__ */ t(je, { in: !r, children: /* @__PURE__ */ t(R, { component: "span", display: "flex", children: A.label }) })
|
|
2080
2081
|
] }) }) }), x1 = ({ children: A, ...e }) => {
|
|
@@ -2134,7 +2135,7 @@ const h1 = 32, Bt = 24, St = 105, Rt = 24, Mt = 195, Pt = 44, Tt = 147, Lt = ()
|
|
|
2134
2135
|
children: x
|
|
2135
2136
|
}
|
|
2136
2137
|
),
|
|
2137
|
-
o && /* @__PURE__ */ t(CA, { onClick: n, children: /* @__PURE__ */ t(
|
|
2138
|
+
o && /* @__PURE__ */ t(CA, { onClick: n, children: /* @__PURE__ */ t($e, { color: C.getContrastText(b) }) })
|
|
2138
2139
|
]
|
|
2139
2140
|
}
|
|
2140
2141
|
),
|
|
@@ -2232,7 +2233,7 @@ const h1 = 32, Bt = 24, St = 105, Rt = 24, Mt = 195, Pt = 44, Tt = 147, Lt = ()
|
|
|
2232
2233
|
return i;
|
|
2233
2234
|
if (i && typeof i == "object" && "label" in i) {
|
|
2234
2235
|
const { count: s, url: d, label: c, icon: u, active: f, disabled: w, target: g } = i, x = `${d}-${c}-${a}`;
|
|
2235
|
-
return /* @__PURE__ */ t(wA, { disableGutters: !0, sx: { paddingY: 0.5 }, children: /* @__PURE__ */ t(
|
|
2236
|
+
return /* @__PURE__ */ t(wA, { disableGutters: !0, sx: { paddingY: 0.5 }, children: /* @__PURE__ */ t(Ke, { url: d, component: r, active: f, disabled: w, target: g, children: /* @__PURE__ */ m(O, { direction: "row", component: "span", spacing: 1.5, width: "100%", alignItems: "center", children: [
|
|
2236
2237
|
u ? /* @__PURE__ */ t(R, { component: "div", sx: ve.iconWrapper, children: u }) : o && /* @__PURE__ */ t(R, { component: "div", sx: ve.iconWrapper, children: typeof c == "string" ? c.charAt(0) : "" }),
|
|
2237
2238
|
/* @__PURE__ */ t(je, { in: !o, children: /* @__PURE__ */ m(O, { direction: "row", justifyContent: "space-between", flex: 1, whiteSpace: "nowrap", children: [
|
|
2238
2239
|
c,
|
|
@@ -2414,7 +2415,7 @@ const h1 = 32, Bt = 24, St = 105, Rt = 24, Mt = 195, Pt = 44, Tt = 147, Lt = ()
|
|
|
2414
2415
|
r,
|
|
2415
2416
|
" "
|
|
2416
2417
|
] }) : /* @__PURE__ */ t(R, { component: "span", children: A });
|
|
2417
|
-
},
|
|
2418
|
+
}, $t = (A, e) => {
|
|
2418
2419
|
const {
|
|
2419
2420
|
children: r,
|
|
2420
2421
|
disabled: n,
|
|
@@ -2453,7 +2454,7 @@ const h1 = 32, Bt = 24, St = 105, Rt = 24, Mt = 195, Pt = 44, Tt = 147, Lt = ()
|
|
|
2453
2454
|
)
|
|
2454
2455
|
}
|
|
2455
2456
|
);
|
|
2456
|
-
}, y1 = tA(
|
|
2457
|
+
}, y1 = tA($t), Y1 = ({ children: A, open: e, onClose: r, src: n, ...o }) => {
|
|
2457
2458
|
const [i, a] = W(!1), s = () => {
|
|
2458
2459
|
a(!0);
|
|
2459
2460
|
}, d = (c, u) => (c && (r?.(c, u), a(!1)), (f) => {
|
|
@@ -2498,7 +2499,7 @@ const h1 = 32, Bt = 24, St = 105, Rt = 24, Mt = 195, Pt = 44, Tt = 147, Lt = ()
|
|
|
2498
2499
|
}
|
|
2499
2500
|
)
|
|
2500
2501
|
] }) });
|
|
2501
|
-
},
|
|
2502
|
+
}, Kt = ({ onClick: A }) => /* @__PURE__ */ t(
|
|
2502
2503
|
CA,
|
|
2503
2504
|
{
|
|
2504
2505
|
"aria-label": "close",
|
|
@@ -2508,7 +2509,7 @@ const h1 = 32, Bt = 24, St = 105, Rt = 24, Mt = 195, Pt = 44, Tt = 147, Lt = ()
|
|
|
2508
2509
|
right: ({ spacing: e }) => e(2),
|
|
2509
2510
|
top: ({ spacing: e }) => e(1)
|
|
2510
2511
|
},
|
|
2511
|
-
children: /* @__PURE__ */ t(
|
|
2512
|
+
children: /* @__PURE__ */ t($e, {})
|
|
2512
2513
|
}
|
|
2513
2514
|
), An = ({ children: A, value: e, index: r, orientation: n, paddingY: o, paddingX: i, fullHeight: a, sx: s }, d) => {
|
|
2514
2515
|
const c = o || 3, u = i || n === "vertical" ? 3 : 0;
|
|
@@ -2800,7 +2801,7 @@ const rn = (A, e) => {
|
|
|
2800
2801
|
height: x = 152,
|
|
2801
2802
|
width: C = 220
|
|
2802
2803
|
}) => {
|
|
2803
|
-
const [b, v] = W(!1), [E, h] = W(!1), [y, l] = W(!0), k = A?.toLowerCase(), I = !k?.endsWith(".pdf") && !k?.startsWith("blob:") && !k?.endsWith(".eml"), T = k?.endsWith(".pdf"), M = d ? 1 : 0.8, q = c ? !0 : !y, Z = Qe(A) || Qe(e),
|
|
2804
|
+
const [b, v] = W(!1), [E, h] = W(!1), [y, l] = W(!0), k = A?.toLowerCase(), I = !k?.endsWith(".pdf") && !k?.startsWith("blob:") && !k?.endsWith(".eml"), T = k?.endsWith(".pdf"), M = d ? 1 : 0.8, q = c ? !0 : !y, Z = Qe(A) || Qe(e), K = (I || T) && !Z && q && !E && !d && A, aA = A?.split(".").pop()?.toLowerCase(), F = r || A?.split("/").pop()?.split("?")[0] || "", U = () => Z ? G1 : E ? nn : e || A || void 0, eA = () => {
|
|
2804
2805
|
v((S) => !S);
|
|
2805
2806
|
}, nA = () => {
|
|
2806
2807
|
v(!1), f?.();
|
|
@@ -2856,7 +2857,7 @@ const rn = (A, e) => {
|
|
|
2856
2857
|
]
|
|
2857
2858
|
}
|
|
2858
2859
|
) }),
|
|
2859
|
-
|
|
2860
|
+
K && /* @__PURE__ */ t(Y1, { open: u !== void 0 && (T || I) ? u : b, onClose: nA, src: A, title: r, children: /* @__PURE__ */ t(
|
|
2860
2861
|
R,
|
|
2861
2862
|
{
|
|
2862
2863
|
component: T ? "iframe" : "img",
|
|
@@ -2881,7 +2882,7 @@ const rn = (A, e) => {
|
|
|
2881
2882
|
}
|
|
2882
2883
|
)
|
|
2883
2884
|
] });
|
|
2884
|
-
}, on = ({ sx: A, fontSize: e, color: r = "currentColor" }) => /* @__PURE__ */ t(cA, { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", sx: A, fontSize: e, children: /* @__PURE__ */ t("path", { d: "M6 2L5.295 2.705L8.085 5.5L2 5.5L2 6.5L8.085 6.5L5.295 9.295L6 10L10 6L6 2Z", fill: r, fillOpacity: "0.54" }) }), an = ({ sx: A,
|
|
2885
|
+
}, on = ({ sx: A, fontSize: e, color: r = "currentColor" }) => /* @__PURE__ */ t(cA, { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", sx: A, fontSize: e, children: /* @__PURE__ */ t("path", { d: "M6 2L5.295 2.705L8.085 5.5L2 5.5L2 6.5L8.085 6.5L5.295 9.295L6 10L10 6L6 2Z", fill: r, fillOpacity: "0.54" }) }), an = ({ sx: A, fontSize: e, color: r = "currentColor" }) => /* @__PURE__ */ t(cA, { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", sx: A, fontSize: e, children: /* @__PURE__ */ t("path", { d: "M12 6.47003L11.06 5.53003L8 8.58336L4.94 5.53003L4 6.47003L8 10.47L12 6.47003Z", fill: r, fillOpacity: "0.54" }) }), IA = 64, w1 = 1e3, sn = ({
|
|
2885
2886
|
title: A,
|
|
2886
2887
|
subtitle: e,
|
|
2887
2888
|
isLastElement: r,
|
|
@@ -3529,7 +3530,7 @@ const rn = (A, e) => {
|
|
|
3529
3530
|
isMenuOpen: r,
|
|
3530
3531
|
openMenu: o
|
|
3531
3532
|
};
|
|
3532
|
-
}, fn = "appBarAvatarMenu",
|
|
3533
|
+
}, fn = "appBarAvatarMenu", $n = ({
|
|
3533
3534
|
Avatar: A,
|
|
3534
3535
|
Search: e,
|
|
3535
3536
|
Action: r,
|
|
@@ -3626,10 +3627,10 @@ const rn = (A, e) => {
|
|
|
3626
3627
|
return Ge(M, { key: Z });
|
|
3627
3628
|
}
|
|
3628
3629
|
if (M && typeof M == "object" && "url" in M) {
|
|
3629
|
-
const { url: Z, label:
|
|
3630
|
-
return /* @__PURE__ */ t(ar, { sx: T.menuItem, onClick: C, children: /* @__PURE__ */ m(
|
|
3630
|
+
const { url: Z, label: K, icon: aA, active: F, end: U, state: eA } = M, nA = `${Z}-${K}-${q}`;
|
|
3631
|
+
return /* @__PURE__ */ t(ar, { sx: T.menuItem, onClick: C, children: /* @__PURE__ */ m(Ke, { url: Z, component: o, active: F, end: U, state: eA, children: [
|
|
3631
3632
|
aA && /* @__PURE__ */ t(sr, { children: aA }),
|
|
3632
|
-
|
|
3633
|
+
K && /* @__PURE__ */ t(kA, { children: K })
|
|
3633
3634
|
] }, nA) }, nA);
|
|
3634
3635
|
}
|
|
3635
3636
|
return null;
|
|
@@ -3639,6 +3640,7 @@ const rn = (A, e) => {
|
|
|
3639
3640
|
] });
|
|
3640
3641
|
}, gn = ({ sx: A, fontSize: e, color: r = "currentColor" }) => /* @__PURE__ */ t(cA, { width: "8", height: "8", viewBox: "0 0 8 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", fontSize: e, sx: A, children: /* @__PURE__ */ t("rect", { x: "1", y: "1", width: "6", height: "6", rx: "3", fill: r }) }), hn = ({ dot: A, color: e, variant: r, sx: n, lineThrough: o, ...i }, a) => {
|
|
3641
3642
|
const { palette: s } = pA(), d = {
|
|
3643
|
+
active: s.text.contrast,
|
|
3642
3644
|
default: s.text.secondary,
|
|
3643
3645
|
error: s.error.main,
|
|
3644
3646
|
info: s.info.main,
|
|
@@ -3672,7 +3674,7 @@ const rn = (A, e) => {
|
|
|
3672
3674
|
...i
|
|
3673
3675
|
}
|
|
3674
3676
|
);
|
|
3675
|
-
},
|
|
3677
|
+
}, Kn = tA(hn), Cn = ({ fontSize: A, sx: e, color: r = "currentColor" }) => /* @__PURE__ */ m(cA, { width: "40", height: "40", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", fontSize: A, sx: e, children: [
|
|
3676
3678
|
/* @__PURE__ */ t("g", { clipPath: "url(#clip0_12914_201806)", children: /* @__PURE__ */ t(
|
|
3677
3679
|
"path",
|
|
3678
3680
|
{
|
|
@@ -4041,35 +4043,58 @@ const rn = (A, e) => {
|
|
|
4041
4043
|
color: A.palette.text.primary
|
|
4042
4044
|
},
|
|
4043
4045
|
...r === "primary" && {
|
|
4046
|
+
"&:hover": {
|
|
4047
|
+
backgroundColor: `${A.palette.grey[200]} !important`
|
|
4048
|
+
},
|
|
4044
4049
|
backgroundColor: A.palette.primary["4p"],
|
|
4045
4050
|
border: o ? `1px solid ${A.palette.divider}` : "transparent",
|
|
4046
4051
|
color: A.palette.primary.black
|
|
4047
4052
|
},
|
|
4048
4053
|
...r === "secondary" && {
|
|
4054
|
+
"&:hover": {
|
|
4055
|
+
backgroundColor: `${o ? A.palette.secondary["30p"] : A.palette.secondary["50p"]} !important`
|
|
4056
|
+
},
|
|
4049
4057
|
backgroundColor: o ? A.palette.secondary["8p"] : A.palette.secondary["16p"],
|
|
4050
4058
|
border: o ? `1px solid ${A.palette.secondary["30p"]}` : "transparent",
|
|
4051
4059
|
color: o ? A.palette.secondary.dark : A.palette.secondary.black
|
|
4052
4060
|
},
|
|
4053
4061
|
...r === "error" && {
|
|
4062
|
+
"&:hover": {
|
|
4063
|
+
backgroundColor: `${o ? A.palette.error["30p"] : A.palette.error["50p"]} !important`
|
|
4064
|
+
},
|
|
4054
4065
|
backgroundColor: o ? A.palette.error["8p"] : A.palette.error["30p"],
|
|
4055
4066
|
border: o ? `1px solid ${A.palette.error["30p"]}` : "transparent",
|
|
4056
4067
|
color: o ? A.palette.error.dark : A.palette.error["160p"]
|
|
4057
4068
|
},
|
|
4058
4069
|
...r === "info" && {
|
|
4070
|
+
"&:hover": {
|
|
4071
|
+
backgroundColor: `${o ? A.palette.info["30p"] : A.palette.info["50p"]} !important`
|
|
4072
|
+
},
|
|
4059
4073
|
backgroundColor: o ? A.palette.info["8p"] : A.palette.info["30p"],
|
|
4060
4074
|
border: o ? `1px solid ${A.palette.info["30p"]}` : "transparent",
|
|
4061
4075
|
color: o ? A.palette.info.dark : A.palette.info["160p"]
|
|
4062
4076
|
},
|
|
4063
4077
|
...r === "success" && {
|
|
4078
|
+
"&:hover": {
|
|
4079
|
+
backgroundColor: `${o ? A.palette.success["30p"] : A.palette.success["50p"]} !important`
|
|
4080
|
+
},
|
|
4064
4081
|
backgroundColor: o ? A.palette.success["8p"] : A.palette.success["30p"],
|
|
4065
4082
|
border: o ? `1px solid ${A.palette.success["30p"]}` : "transparent",
|
|
4066
4083
|
color: o ? A.palette.success.dark : A.palette.success["160p"]
|
|
4067
4084
|
},
|
|
4068
4085
|
...r === "warning" && {
|
|
4086
|
+
"&:hover": {
|
|
4087
|
+
backgroundColor: `${o ? A.palette.warning["30p"] : A.palette.warning["50p"]} !important`
|
|
4088
|
+
},
|
|
4069
4089
|
backgroundColor: o ? A.palette.warning["8p"] : A.palette.warning["30p"],
|
|
4070
4090
|
border: o ? `1px solid ${A.palette.warning["30p"]}` : "transparent",
|
|
4071
4091
|
color: o ? A.palette.warning.dark : A.palette.warning["160p"]
|
|
4072
4092
|
},
|
|
4093
|
+
...r === "active" && {
|
|
4094
|
+
backgroundColor: `${A.palette.text.primary} !important`,
|
|
4095
|
+
border: o ? `1px solid ${A.palette.divider}` : "transparent",
|
|
4096
|
+
color: A.palette.text.contrast
|
|
4097
|
+
},
|
|
4073
4098
|
fontWeight: 500
|
|
4074
4099
|
};
|
|
4075
4100
|
}
|
|
@@ -4714,11 +4739,13 @@ const rn = (A, e) => {
|
|
|
4714
4739
|
A
|
|
4715
4740
|
] }) });
|
|
4716
4741
|
}, vn = {
|
|
4742
|
+
apply: "Apply",
|
|
4717
4743
|
clickToUpload: "Click to upload",
|
|
4718
4744
|
files: "Files",
|
|
4719
4745
|
reset: "Reset",
|
|
4720
4746
|
selectAll: "Select all"
|
|
4721
4747
|
}, En = {
|
|
4748
|
+
apply: "Appliquer",
|
|
4722
4749
|
clickToUpload: "Cliquez pour télécharger",
|
|
4723
4750
|
files: "Fichiers",
|
|
4724
4751
|
reset: "Réinitialiser",
|
|
@@ -4726,7 +4753,7 @@ const rn = (A, e) => {
|
|
|
4726
4753
|
}, In = {
|
|
4727
4754
|
en: vn,
|
|
4728
4755
|
fr: En
|
|
4729
|
-
},
|
|
4756
|
+
}, $1 = () => {
|
|
4730
4757
|
const { language: A } = bA(_1);
|
|
4731
4758
|
return {
|
|
4732
4759
|
t: (r) => In[A][r]
|
|
@@ -4762,7 +4789,7 @@ const rn = (A, e) => {
|
|
|
4762
4789
|
title: C,
|
|
4763
4790
|
variant: b = "vertical"
|
|
4764
4791
|
}, v) => {
|
|
4765
|
-
const { t: E } =
|
|
4792
|
+
const { t: E } = $1(), { palette: h } = pA(), y = b === "vertical", l = s || e, k = Me(null), I = Me(null), [T, M] = W(null), q = Bn(T);
|
|
4766
4793
|
Er(v, () => I.current);
|
|
4767
4794
|
const Z = (F) => {
|
|
4768
4795
|
w?.(F), M(F.target.files);
|
|
@@ -4924,7 +4951,7 @@ const rn = (A, e) => {
|
|
|
4924
4951
|
children: [
|
|
4925
4952
|
r?.map(
|
|
4926
4953
|
({ id: f, title: w, subtitle: g, image: x, thumbnail: C, secondaryAction: b, chipLabel: v, chipColor: E, onClick: h, icon: y, Avatar: l }, k) => {
|
|
4927
|
-
const I = `key-${k}-${w}-${f}`, T = !!x?.toLowerCase()?.endsWith(".pdf"), M = B1(x), q = B1(C), Z = Qe(x),
|
|
4954
|
+
const I = `key-${k}-${w}-${f}`, T = !!x?.toLowerCase()?.endsWith(".pdf"), M = B1(x), q = B1(C), Z = Qe(x), K = h ? "none" : void 0, aA = s || !!y || !M || Z, F = !!h || !!(!h && !s && (C || x)), U = c === I, L = (q ? C : "") || (M ? x : "") || "";
|
|
4928
4955
|
return /* @__PURE__ */ m(
|
|
4929
4956
|
wA,
|
|
4930
4957
|
{
|
|
@@ -5018,7 +5045,7 @@ const rn = (A, e) => {
|
|
|
5018
5045
|
component: "div"
|
|
5019
5046
|
}
|
|
5020
5047
|
},
|
|
5021
|
-
sx: { marginY: 0, userSelect:
|
|
5048
|
+
sx: { marginY: 0, userSelect: K }
|
|
5022
5049
|
}
|
|
5023
5050
|
)
|
|
5024
5051
|
]
|
|
@@ -5080,7 +5107,7 @@ const rn = (A, e) => {
|
|
|
5080
5107
|
multiple: d,
|
|
5081
5108
|
...c
|
|
5082
5109
|
}) => {
|
|
5083
|
-
const { t: u } =
|
|
5110
|
+
const { t: u } = $1(), f = Array.isArray(s) ? s?.length === a?.length : !1, w = a?.filter((g) => g?.isHeader);
|
|
5084
5111
|
return /* @__PURE__ */ m(Ye, { ...c, children: [
|
|
5085
5112
|
d && !i && (!e || !!w?.length) && /* @__PURE__ */ m(xA, { children: [
|
|
5086
5113
|
/* @__PURE__ */ m(oe, { role: "listbox", children: [
|
|
@@ -5176,7 +5203,7 @@ const rn = (A, e) => {
|
|
|
5176
5203
|
slotProps: l,
|
|
5177
5204
|
...k
|
|
5178
5205
|
}, I) => {
|
|
5179
|
-
const { palette: T } = pA(), [M, q] = W(!1), [Z,
|
|
5206
|
+
const { palette: T } = pA(), [M, q] = W(!1), [Z, K] = W(""), aA = T.mode === "light" ? "default" : "primary", F = f || Z, eA = h ? a ? Array.isArray(a) ? a : [a] : [] : a || null;
|
|
5180
5207
|
return /* @__PURE__ */ t(
|
|
5181
5208
|
ur,
|
|
5182
5209
|
{
|
|
@@ -5218,7 +5245,7 @@ const rn = (A, e) => {
|
|
|
5218
5245
|
}
|
|
5219
5246
|
},
|
|
5220
5247
|
onInputChange: (L, P, p) => {
|
|
5221
|
-
p === "reset" && M && !x || p === "selectOption" && !x || p === "removeOption" && !x || (f ||
|
|
5248
|
+
p === "reset" && M && !x || p === "selectOption" && !x || p === "removeOption" && !x || (f || K(P), u?.(L, P, p));
|
|
5222
5249
|
},
|
|
5223
5250
|
onFocus: (L) => {
|
|
5224
5251
|
q(!0), s?.(L);
|
|
@@ -5282,10 +5309,10 @@ const rn = (A, e) => {
|
|
|
5282
5309
|
{
|
|
5283
5310
|
size: "small",
|
|
5284
5311
|
onClick: (S) => {
|
|
5285
|
-
|
|
5312
|
+
K(""), u?.(S, "", "clear");
|
|
5286
5313
|
},
|
|
5287
5314
|
sx: { marginRight: "-3px" },
|
|
5288
|
-
children: /* @__PURE__ */ t(
|
|
5315
|
+
children: /* @__PURE__ */ t($e, { sx: { fontSize: J(20) } })
|
|
5289
5316
|
}
|
|
5290
5317
|
),
|
|
5291
5318
|
p && typeof p == "object" && "props" in p && p.props && typeof p.props == "object" && "children" in p.props && Array.isArray(p.props.children) && p.props.children[1]
|
|
@@ -5466,7 +5493,7 @@ const rn = (A, e) => {
|
|
|
5466
5493
|
...(r || n) && { borderBottom: ({ palette: c }) => `1px solid ${c[o]["12p"]}` }
|
|
5467
5494
|
},
|
|
5468
5495
|
children: [
|
|
5469
|
-
/* @__PURE__ */ t(
|
|
5496
|
+
/* @__PURE__ */ t(Kt, { onClick: (c) => s?.(c, "closeButton") }),
|
|
5470
5497
|
/* @__PURE__ */ t(
|
|
5471
5498
|
R,
|
|
5472
5499
|
{
|
|
@@ -5534,7 +5561,7 @@ const rn = (A, e) => {
|
|
|
5534
5561
|
message: "",
|
|
5535
5562
|
severity: "success",
|
|
5536
5563
|
variant: "standard"
|
|
5537
|
-
},
|
|
5564
|
+
}, K1 = pe({
|
|
5538
5565
|
closeSnackbar: () => {
|
|
5539
5566
|
},
|
|
5540
5567
|
isOpen: !1,
|
|
@@ -5563,7 +5590,7 @@ const rn = (A, e) => {
|
|
|
5563
5590
|
}),
|
|
5564
5591
|
[a, i, n.isOpen]
|
|
5565
5592
|
);
|
|
5566
|
-
return /* @__PURE__ */ m(
|
|
5593
|
+
return /* @__PURE__ */ m(K1.Provider, { value: s, children: [
|
|
5567
5594
|
/* @__PURE__ */ t(
|
|
5568
5595
|
yr,
|
|
5569
5596
|
{
|
|
@@ -5578,7 +5605,7 @@ const rn = (A, e) => {
|
|
|
5578
5605
|
A
|
|
5579
5606
|
] });
|
|
5580
5607
|
}, po = () => {
|
|
5581
|
-
const A = bA(
|
|
5608
|
+
const A = bA(K1), { isOpen: e, closeSnackbar: r, openSnackbar: n } = A;
|
|
5582
5609
|
if (A === void 0)
|
|
5583
5610
|
throw new Error("SnackbarProvider must be used within a useSnackBar hook");
|
|
5584
5611
|
return {
|
|
@@ -5597,7 +5624,7 @@ const rn = (A, e) => {
|
|
|
5597
5624
|
}, fo = (A) => `linear-gradient(${uA("#fff", +Be(A))}, ${uA("#fff", +Be(A))})`;
|
|
5598
5625
|
export {
|
|
5599
5626
|
v1 as ActionAppBar,
|
|
5600
|
-
|
|
5627
|
+
$n as AppBar,
|
|
5601
5628
|
qn as ArticleImage,
|
|
5602
5629
|
no as AutocompleteFilter,
|
|
5603
5630
|
W1 as Avatar,
|
|
@@ -5606,9 +5633,9 @@ export {
|
|
|
5606
5633
|
oo as BottomFixedPaper,
|
|
5607
5634
|
y1 as Button,
|
|
5608
5635
|
jn as CardModal,
|
|
5609
|
-
|
|
5636
|
+
Kn as Chip,
|
|
5610
5637
|
Pe as DEFAULT_PERMISSION_CHECK_MODE,
|
|
5611
|
-
|
|
5638
|
+
Kt as DialogCloseIcon,
|
|
5612
5639
|
ao as DialogPopper,
|
|
5613
5640
|
so as DialogValidation,
|
|
5614
5641
|
ro as File,
|
|
@@ -5624,7 +5651,7 @@ export {
|
|
|
5624
5651
|
PA as NavigationMenuContext,
|
|
5625
5652
|
lo as PermissionProvider,
|
|
5626
5653
|
Jn as QuantityField,
|
|
5627
|
-
|
|
5654
|
+
K1 as SnackbarContext,
|
|
5628
5655
|
co as SnackbarProvider,
|
|
5629
5656
|
ne as StatusIcon,
|
|
5630
5657
|
Wn as TabPanel,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { SxProps } from '@mui/material';
|
|
1
|
+
import { SvgIconProps, SxProps } from '@mui/material';
|
|
2
2
|
interface CloseIconProps {
|
|
3
3
|
color?: string;
|
|
4
4
|
sx?: SxProps;
|
|
5
|
+
fontSize?: SvgIconProps["fontSize"];
|
|
5
6
|
}
|
|
6
|
-
declare const ChevronIcon: ({ sx, color }: CloseIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const ChevronIcon: ({ sx, fontSize, color }: CloseIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
8
|
export default ChevronIcon;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { SxProps } from '@mui/material';
|
|
1
|
+
import { SvgIconProps, SxProps } from '@mui/material';
|
|
2
2
|
interface CloseIconProps {
|
|
3
3
|
color?: string;
|
|
4
4
|
sx?: SxProps;
|
|
5
|
+
fontSize?: SvgIconProps["fontSize"];
|
|
5
6
|
}
|
|
6
|
-
declare const CloseIcon: ({ sx, color }: CloseIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const CloseIcon: ({ sx, fontSize, color }: CloseIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
8
|
export default CloseIcon;
|