@abyss-project/commons-front-core 21.8.1 → 21.8.2
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 +4 -0
- package/dist/{CookieConsentSettings-DmdpkY4W.js → CookieConsentSettings-4BuLzLqD.js} +1 -1
- package/dist/{Surface-Bz9IlYzh.js → Surface-DCgywYyJ.js} +84 -82
- package/dist/{Tabs-BCsiGmjM.js → Tabs-CgXaaXch.js} +1 -1
- package/dist/cookie-consent.js +2 -2
- package/dist/{editors-ROEvrYr4.js → editors--itphaqU.js} +27 -27
- package/dist/editors.js +1 -1
- package/dist/{index-CXgXyfY3.js → index-4_O8oydT.js} +2 -2
- package/dist/{index-CeZseajO.js → index-B8xEJ2eG.js} +2 -2
- package/dist/{index-5A2mIQ9G.js → index-BfJqh8s4.js} +4 -4
- package/dist/{index-Cq_z0w7j.js → index-C7GUOCVB.js} +3 -3
- package/dist/{index-C_j0gA3H.js → index-CCKTE4Qk.js} +2 -2
- package/dist/{index-BuPLdG_9.js → index-CD7_95Mn.js} +2 -2
- package/dist/{index-BVTeKL8H.js → index-CGqgbd6K.js} +3 -3
- package/dist/{index-DoQsEkVC.js → index-Cq0ofXBo.js} +3 -3
- package/dist/{index-DxotIOMC.js → index-CvXHEjEU.js} +2 -2
- package/dist/{index-CpA0L8Ml.js → index-CzvkXNxX.js} +2 -2
- package/dist/{index-z_gfRs5k.js → index-DFB3_RXB.js} +2 -2
- package/dist/{index-BzT36p42.js → index-DH9-LTZh.js} +4 -4
- package/dist/{index-L5J7_NGN.js → index-DPOG4eG2.js} +2 -2
- package/dist/{index-BNlYqNm9.js → index-DS1sI9hs.js} +3 -3
- package/dist/{index-DccwknnA.js → index-DjIcGqiu.js} +2 -2
- package/dist/{index-D9WfqtNo.js → index-DwCc0PLB.js} +2 -2
- package/dist/{index-BRaIFAIi.js → index-MCwgtui1.js} +4 -4
- package/dist/{index-M8pctP26.js → index-PlAiyjTI.js} +2 -2
- package/dist/{index-BlYhAWr_.js → index-R4eCnYkE.js} +1 -1
- package/dist/{index-Btj0N4JN.js → index-X0wSqZY6.js} +2 -2
- package/dist/{index-Clxj6idW.js → index-eOvnrbaL.js} +2 -2
- package/dist/index.js +1521 -1517
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog — @abyss-project/commons-front-core
|
|
2
2
|
|
|
3
|
+
## 21.8.2
|
|
4
|
+
|
|
5
|
+
Card #821, from the satellite captures. `DateTimeField` opens its desktop popper only from the tablet tier (768 px) with a fine pointer: below, the picker is the full-width mobile dialog (the popper, calendar and two time columns, overflowed a 390 px window). `Modal`: a title without description is centred on the header controls instead of sitting above them.
|
|
6
|
+
|
|
3
7
|
## 21.8.1
|
|
4
8
|
|
|
5
9
|
Card #821. 21.8.0 left a bare `@mui/x-date-pickers/locales` directory import in `dist/index.js`: every consumer loading the dist under Node ESM (vitest) failed with ERR_UNSUPPORTED_DIR_IMPORT. The sub-path is now bundled like `AdapterDateFns` and `PickersDay`, and the build fails on any `@mui/x-date-pickers` sub-path import left in `dist/` (`scripts/check-dist-dir-imports.cjs`). Do not use 21.8.0.
|
|
@@ -3,7 +3,7 @@ import { useState as v, useCallback as b, useEffect as T, useLayoutEffect as ie,
|
|
|
3
3
|
import w from "@mui/material/Button";
|
|
4
4
|
import Q from "@mui/material/Switch";
|
|
5
5
|
import { styled as y } from "@mui/material/styles";
|
|
6
|
-
import { T as K, w as O, p as f, d as D, D as N, S as R, a as V, u as M, M as C, b as X, h as ae, c as ce, e as le } from "./Surface-
|
|
6
|
+
import { T as K, w as O, p as f, d as D, D as N, S as R, a as V, u as M, M as C, b as X, h as ae, c as ce, e as le } from "./Surface-DCgywYyJ.js";
|
|
7
7
|
import { useQuery as de, useMutation as ue } from "@tanstack/react-query";
|
|
8
8
|
import { AbyssCore as j } from "@abyss-project/main";
|
|
9
9
|
import { createPortal as fe } from "react-dom";
|
|
@@ -125,7 +125,7 @@ const ie = {
|
|
|
125
125
|
minHeight: a(e.design.densityValues.touchTarget)
|
|
126
126
|
}
|
|
127
127
|
}), De = (e, o, i = "fast") => o.map(
|
|
128
|
-
(
|
|
128
|
+
(r) => `${r} ${e.design.durations[i]}ms ${e.design.easings.standard}`
|
|
129
129
|
).join(", "), Le = () => {
|
|
130
130
|
const e = K(P.up(O.Desktop), {
|
|
131
131
|
noSsr: !0
|
|
@@ -144,25 +144,25 @@ const N = (e, o) => `calc(${a(o)} + env(safe-area-inset-${e}))`, ke = 0.3, Pe =
|
|
|
144
144
|
display: "flex",
|
|
145
145
|
outline: "none"
|
|
146
146
|
}), Me = u("div")(({ theme: e }) => {
|
|
147
|
-
const { tokens: o, radii: i, space:
|
|
147
|
+
const { tokens: o, radii: i, space: r, elevations: t, fonts: n } = e.design;
|
|
148
148
|
return {
|
|
149
149
|
flex: "1 1 auto",
|
|
150
150
|
minWidth: 0,
|
|
151
|
-
maxHeight: `calc(100vh - ${N(S.Top,
|
|
151
|
+
maxHeight: `calc(100vh - ${N(S.Top, r[8])})`,
|
|
152
152
|
display: "flex",
|
|
153
153
|
flexDirection: "column",
|
|
154
|
-
gap: a(
|
|
155
|
-
paddingTop: a(
|
|
156
|
-
paddingBottom: N(S.Bottom,
|
|
157
|
-
paddingLeft: N(S.Left,
|
|
158
|
-
paddingRight: N(S.Right,
|
|
154
|
+
gap: a(r[3]),
|
|
155
|
+
paddingTop: a(r[2]),
|
|
156
|
+
paddingBottom: N(S.Bottom, r[6]),
|
|
157
|
+
paddingLeft: N(S.Left, r[4]),
|
|
158
|
+
paddingRight: N(S.Right, r[4]),
|
|
159
159
|
backgroundColor: o["bg.surface"],
|
|
160
160
|
color: o["text.primary"],
|
|
161
161
|
fontFamily: n.sans,
|
|
162
162
|
borderTop: k(o["border.strong"]),
|
|
163
163
|
borderTopLeftRadius: a(i.lg),
|
|
164
164
|
borderTopRightRadius: a(i.lg),
|
|
165
|
-
boxShadow:
|
|
165
|
+
boxShadow: t.modal,
|
|
166
166
|
outline: "none",
|
|
167
167
|
position: "relative"
|
|
168
168
|
};
|
|
@@ -192,22 +192,22 @@ const N = (e, o) => `calc(${a(o)} + env(safe-area-inset-${e}))`, ke = 0.3, Pe =
|
|
|
192
192
|
cursor: "grab"
|
|
193
193
|
};
|
|
194
194
|
}), ze = u("span")(({ theme: e }) => {
|
|
195
|
-
const { tokens: o, radii: i, space:
|
|
195
|
+
const { tokens: o, radii: i, space: r } = e.design;
|
|
196
196
|
return {
|
|
197
|
-
width: a(
|
|
198
|
-
height: a(
|
|
197
|
+
width: a(r[8]),
|
|
198
|
+
height: a(r[1]),
|
|
199
199
|
borderRadius: a(i.sm),
|
|
200
200
|
backgroundColor: o["border.strong"]
|
|
201
201
|
};
|
|
202
202
|
}), Ye = u("h2", {
|
|
203
203
|
shouldForwardProp: (e) => e !== "besideClose"
|
|
204
204
|
})(({ theme: e, besideClose: o }) => {
|
|
205
|
-
const { typeScale: i, densityValues:
|
|
205
|
+
const { typeScale: i, densityValues: r, space: t } = e.design;
|
|
206
206
|
return {
|
|
207
207
|
alignSelf: "stretch",
|
|
208
208
|
margin: 0,
|
|
209
209
|
// Clear of the close button in the corner.
|
|
210
|
-
paddingRight: o ? a(
|
|
210
|
+
paddingRight: o ? a(r.touchTarget + t[2]) : void 0,
|
|
211
211
|
fontSize: a(i.sectionTitle),
|
|
212
212
|
fontWeight: re.semibold,
|
|
213
213
|
overflowWrap: "anywhere"
|
|
@@ -230,8 +230,8 @@ function He({
|
|
|
230
230
|
open: e,
|
|
231
231
|
onClose: o,
|
|
232
232
|
title: i,
|
|
233
|
-
titleIcon:
|
|
234
|
-
closeLabel:
|
|
233
|
+
titleIcon: r,
|
|
234
|
+
closeLabel: t,
|
|
235
235
|
footer: n,
|
|
236
236
|
headerActions: f,
|
|
237
237
|
closeDisabled: v = !1,
|
|
@@ -295,9 +295,9 @@ function He({
|
|
|
295
295
|
Ye,
|
|
296
296
|
{
|
|
297
297
|
id: A,
|
|
298
|
-
besideClose:
|
|
298
|
+
besideClose: t !== void 0 && f === void 0,
|
|
299
299
|
children: [
|
|
300
|
-
|
|
300
|
+
r !== void 0 && /* @__PURE__ */ c(je, { "aria-hidden": "true", children: r }),
|
|
301
301
|
i
|
|
302
302
|
]
|
|
303
303
|
}
|
|
@@ -307,19 +307,19 @@ function He({
|
|
|
307
307
|
),
|
|
308
308
|
f !== void 0 ? /* @__PURE__ */ C(Fe, { children: [
|
|
309
309
|
f,
|
|
310
|
-
|
|
310
|
+
t !== void 0 && /* @__PURE__ */ c(
|
|
311
311
|
Be,
|
|
312
312
|
{
|
|
313
|
-
"aria-label":
|
|
313
|
+
"aria-label": t,
|
|
314
314
|
disabled: v,
|
|
315
315
|
onClick: () => o(),
|
|
316
316
|
children: /* @__PURE__ */ c(z, { "aria-hidden": !0 })
|
|
317
317
|
}
|
|
318
318
|
)
|
|
319
|
-
] }) :
|
|
319
|
+
] }) : t !== void 0 && /* @__PURE__ */ c(
|
|
320
320
|
Ue,
|
|
321
321
|
{
|
|
322
|
-
"aria-label":
|
|
322
|
+
"aria-label": t,
|
|
323
323
|
disabled: v,
|
|
324
324
|
onClick: () => o(),
|
|
325
325
|
children: /* @__PURE__ */ c(z, { "aria-hidden": !0 })
|
|
@@ -338,32 +338,34 @@ function He({
|
|
|
338
338
|
const Vt = "--abyss-toast-clearance", Ht = "--abyss-cookie-banner-modal-clearance", Wt = "--abyss-toast-dialog-foot-clearance", We = "data-abyss-dialog-foot";
|
|
339
339
|
var Ke = /* @__PURE__ */ ((e) => (e.Small = "sm", e.Medium = "md", e.Large = "lg", e.FullScreen = "fullscreen", e))(Ke || {});
|
|
340
340
|
const Xe = u(Ae)(({ theme: e, fullScreen: o }) => {
|
|
341
|
-
const { tokens: i, fonts:
|
|
341
|
+
const { tokens: i, fonts: r, space: t } = e.design;
|
|
342
342
|
return {
|
|
343
343
|
"& .MuiDialog-paper": {
|
|
344
|
-
margin: o ? 0 : a(
|
|
345
|
-
maxHeight: o ? "100%" : `calc(100% - ${a(
|
|
344
|
+
margin: o ? 0 : a(t[4]),
|
|
345
|
+
maxHeight: o ? "100%" : `calc(100% - ${a(t[7])})`,
|
|
346
346
|
borderRadius: o ? 0 : void 0,
|
|
347
347
|
// Edge to edge: the hairline that lifts a floating modal off the scrim has nothing to frame here.
|
|
348
348
|
border: o ? "none" : void 0,
|
|
349
349
|
backgroundColor: i["bg.surface"],
|
|
350
350
|
color: i["text.primary"],
|
|
351
|
-
fontFamily:
|
|
351
|
+
fontFamily: r.sans,
|
|
352
352
|
overflow: "hidden"
|
|
353
353
|
},
|
|
354
354
|
"& .MuiDialog-paperFullWidth": {
|
|
355
|
-
width: `calc(100% - ${a(
|
|
355
|
+
width: `calc(100% - ${a(t[7])})`
|
|
356
356
|
}
|
|
357
357
|
};
|
|
358
358
|
}), Je = u("div", {
|
|
359
|
-
shouldForwardProp: (e) => e !== "fill"
|
|
360
|
-
})(({ theme: e, fill: o }) => {
|
|
361
|
-
const { tokens:
|
|
359
|
+
shouldForwardProp: (e) => e !== "fill" && e !== "described"
|
|
360
|
+
})(({ theme: e, fill: o, described: i }) => {
|
|
361
|
+
const { tokens: r, space: t } = e.design;
|
|
362
362
|
return {
|
|
363
363
|
flex: "none",
|
|
364
364
|
display: "flex",
|
|
365
365
|
justifyContent: "space-between",
|
|
366
|
-
|
|
366
|
+
// A title alone sits on the axis of the header controls; with a description under it the
|
|
367
|
+
// controls stay on the first line.
|
|
368
|
+
alignItems: i ? "flex-start" : "center",
|
|
367
369
|
gap: a(t[4]),
|
|
368
370
|
...o ? {
|
|
369
371
|
paddingTop: N(S.Top, t[4]),
|
|
@@ -371,7 +373,7 @@ const Xe = u(Ae)(({ theme: e, fullScreen: o }) => {
|
|
|
371
373
|
paddingLeft: N(S.Left, t[5]),
|
|
372
374
|
paddingRight: N(S.Right, t[5])
|
|
373
375
|
} : { padding: `${a(t[4])} ${a(t[5])}` },
|
|
374
|
-
borderBottom: k(
|
|
376
|
+
borderBottom: k(r["border.subtle"])
|
|
375
377
|
};
|
|
376
378
|
}), $e = u("div")({ minWidth: 0 }), Qe = u("div")(({ theme: e }) => ({
|
|
377
379
|
flex: "none",
|
|
@@ -392,22 +394,22 @@ const Xe = u(Ae)(({ theme: e, fullScreen: o }) => {
|
|
|
392
394
|
fontWeight: re.semibold,
|
|
393
395
|
overflowWrap: "anywhere"
|
|
394
396
|
})), ot = u("p")(({ theme: e }) => {
|
|
395
|
-
const { tokens: o, space: i, typeScale:
|
|
397
|
+
const { tokens: o, space: i, typeScale: r } = e.design;
|
|
396
398
|
return {
|
|
397
399
|
margin: `${a(i[1])} 0 0`,
|
|
398
400
|
color: o["text.muted"],
|
|
399
|
-
fontSize: a(
|
|
401
|
+
fontSize: a(r.body),
|
|
400
402
|
overflowWrap: "anywhere"
|
|
401
403
|
};
|
|
402
404
|
}), rt = u("div", {
|
|
403
405
|
shouldForwardProp: (e) => e !== "fill" && e !== "footed"
|
|
404
406
|
})(({ theme: e, fill: o, footed: i }) => {
|
|
405
|
-
const { space:
|
|
407
|
+
const { space: r, typeScale: t } = e.design;
|
|
406
408
|
return {
|
|
407
409
|
flex: o ? 1 : "1 1 auto",
|
|
408
410
|
minHeight: 0,
|
|
409
411
|
overflowY: "auto",
|
|
410
|
-
fontSize: a(
|
|
412
|
+
fontSize: a(t.body),
|
|
411
413
|
...o ? {
|
|
412
414
|
display: "flex",
|
|
413
415
|
flexDirection: "column",
|
|
@@ -416,25 +418,25 @@ const Xe = u(Ae)(({ theme: e, fullScreen: o }) => {
|
|
|
416
418
|
paddingLeft: N(S.Left, 0),
|
|
417
419
|
paddingRight: N(S.Right, 0),
|
|
418
420
|
paddingBottom: i ? 0 : N(S.Bottom, 0)
|
|
419
|
-
} : { padding: a(
|
|
421
|
+
} : { padding: a(r[5]) }
|
|
420
422
|
};
|
|
421
423
|
}), it = u("div", {
|
|
422
424
|
shouldForwardProp: (e) => e !== "fill"
|
|
423
425
|
})(({ theme: e, fill: o }) => {
|
|
424
|
-
const { tokens: i, space:
|
|
426
|
+
const { tokens: i, space: r } = e.design;
|
|
425
427
|
return {
|
|
426
428
|
flex: "none",
|
|
427
429
|
display: "flex",
|
|
428
430
|
flexWrap: "wrap",
|
|
429
431
|
justifyContent: "flex-end",
|
|
430
432
|
alignItems: "center",
|
|
431
|
-
gap: a(
|
|
433
|
+
gap: a(r[3]),
|
|
432
434
|
...o ? {
|
|
433
|
-
paddingTop: a(
|
|
434
|
-
paddingBottom: N(S.Bottom,
|
|
435
|
-
paddingLeft: N(S.Left,
|
|
436
|
-
paddingRight: N(S.Right,
|
|
437
|
-
} : { padding: `${a(
|
|
435
|
+
paddingTop: a(r[3]),
|
|
436
|
+
paddingBottom: N(S.Bottom, r[3]),
|
|
437
|
+
paddingLeft: N(S.Left, r[5]),
|
|
438
|
+
paddingRight: N(S.Right, r[5])
|
|
439
|
+
} : { padding: `${a(r[3])} ${a(r[5])}` },
|
|
438
440
|
borderTop: k(i["border.subtle"])
|
|
439
441
|
};
|
|
440
442
|
}), at = u("p")(({ theme: e }) => ({
|
|
@@ -454,8 +456,8 @@ function Kt({
|
|
|
454
456
|
open: e,
|
|
455
457
|
onClose: o,
|
|
456
458
|
title: i,
|
|
457
|
-
titleIcon:
|
|
458
|
-
description:
|
|
459
|
+
titleIcon: r,
|
|
460
|
+
description: t,
|
|
459
461
|
size: n = "md",
|
|
460
462
|
actions: f,
|
|
461
463
|
headerActions: v,
|
|
@@ -470,14 +472,14 @@ function Kt({
|
|
|
470
472
|
open: e,
|
|
471
473
|
onClose: o,
|
|
472
474
|
title: i,
|
|
473
|
-
titleIcon:
|
|
475
|
+
titleIcon: r,
|
|
474
476
|
closeLabel: R.formatMessage({ id: "ds.layers.modal.close" }),
|
|
475
477
|
headerActions: v,
|
|
476
478
|
closeDisabled: y,
|
|
477
479
|
onKeyDown: h,
|
|
478
480
|
footer: f !== void 0 ? /* @__PURE__ */ c(st, { [We]: "", children: f }) : void 0,
|
|
479
481
|
children: [
|
|
480
|
-
|
|
482
|
+
t !== void 0 && /* @__PURE__ */ c(at, { children: t }),
|
|
481
483
|
E
|
|
482
484
|
]
|
|
483
485
|
}
|
|
@@ -491,14 +493,14 @@ function Kt({
|
|
|
491
493
|
maxWidth: A ? !1 : n,
|
|
492
494
|
fullWidth: !A,
|
|
493
495
|
"aria-labelledby": l,
|
|
494
|
-
"aria-describedby":
|
|
496
|
+
"aria-describedby": t !== void 0 ? s : void 0,
|
|
495
497
|
children: [
|
|
496
|
-
/* @__PURE__ */ C(Je, { fill: A, children: [
|
|
498
|
+
/* @__PURE__ */ C(Je, { fill: A, described: t !== void 0, children: [
|
|
497
499
|
/* @__PURE__ */ C(Ze, { children: [
|
|
498
|
-
|
|
500
|
+
r !== void 0 && /* @__PURE__ */ c(et, { "aria-hidden": "true", children: r }),
|
|
499
501
|
/* @__PURE__ */ C($e, { children: [
|
|
500
502
|
/* @__PURE__ */ c(tt, { id: l, children: i }),
|
|
501
|
-
|
|
503
|
+
t !== void 0 && /* @__PURE__ */ c(ot, { id: s, children: t })
|
|
502
504
|
] })
|
|
503
505
|
] }),
|
|
504
506
|
/* @__PURE__ */ C(Qe, { children: [
|
|
@@ -752,8 +754,8 @@ const lt = {
|
|
|
752
754
|
tier: y,
|
|
753
755
|
catalogKey: typeof h == "string" ? h : null
|
|
754
756
|
};
|
|
755
|
-
},
|
|
756
|
-
return
|
|
757
|
+
}, r = {}, t = i("plan"), n = i("oldPlan"), f = i("newPlan");
|
|
758
|
+
return t && (r.planName = o(F(t))), n && (r.oldPlanName = o(F(n))), f && (r.newPlanName = o(F(f))), r;
|
|
757
759
|
}, Z = (e) => e, g = {
|
|
758
760
|
fr: Z({
|
|
759
761
|
freemium: "Gratuit",
|
|
@@ -5659,14 +5661,14 @@ const lt = {
|
|
|
5659
5661
|
var B, ee;
|
|
5660
5662
|
function ht() {
|
|
5661
5663
|
if (ee) return B;
|
|
5662
|
-
ee = 1, B = i, i.flatten = i, i.unflatten =
|
|
5663
|
-
function e(
|
|
5664
|
-
return
|
|
5664
|
+
ee = 1, B = i, i.flatten = i, i.unflatten = r;
|
|
5665
|
+
function e(t) {
|
|
5666
|
+
return t && t.constructor && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t);
|
|
5665
5667
|
}
|
|
5666
|
-
function o(
|
|
5667
|
-
return
|
|
5668
|
+
function o(t) {
|
|
5669
|
+
return t;
|
|
5668
5670
|
}
|
|
5669
|
-
function i(
|
|
5671
|
+
function i(t, n) {
|
|
5670
5672
|
n = n || {};
|
|
5671
5673
|
const f = n.delimiter || ".", v = n.maxDepth, y = n.transformKey || o, h = {};
|
|
5672
5674
|
function E(R, A, p) {
|
|
@@ -5677,13 +5679,13 @@ function ht() {
|
|
|
5677
5679
|
h[_] = s;
|
|
5678
5680
|
});
|
|
5679
5681
|
}
|
|
5680
|
-
return E(
|
|
5682
|
+
return E(t), h;
|
|
5681
5683
|
}
|
|
5682
|
-
function t
|
|
5684
|
+
function r(t, n) {
|
|
5683
5685
|
n = n || {};
|
|
5684
5686
|
const f = n.delimiter || ".", v = n.overwrite || !1, y = n.transformKey || o, h = {};
|
|
5685
|
-
if (e(
|
|
5686
|
-
return
|
|
5687
|
+
if (e(t) || Object.prototype.toString.call(t) !== "[object Object]")
|
|
5688
|
+
return t;
|
|
5687
5689
|
function R(l) {
|
|
5688
5690
|
const s = Number(l);
|
|
5689
5691
|
return isNaN(s) || l.indexOf(".") !== -1 || n.object ? l : s;
|
|
@@ -5702,14 +5704,14 @@ function ht() {
|
|
|
5702
5704
|
return !Object.keys(l).length;
|
|
5703
5705
|
} else return !0;
|
|
5704
5706
|
}
|
|
5705
|
-
return
|
|
5706
|
-
const m = Object.prototype.toString.call(
|
|
5707
|
-
return !(m === "[object Object]" || m === "[object Array]") || p(
|
|
5707
|
+
return t = Object.keys(t).reduce(function(l, s) {
|
|
5708
|
+
const m = Object.prototype.toString.call(t[s]);
|
|
5709
|
+
return !(m === "[object Object]" || m === "[object Array]") || p(t[s]) ? (l[s] = t[s], l) : A(
|
|
5708
5710
|
s,
|
|
5709
5711
|
l,
|
|
5710
|
-
i(
|
|
5712
|
+
i(t[s], n)
|
|
5711
5713
|
);
|
|
5712
|
-
}, {}), Object.keys(
|
|
5714
|
+
}, {}), Object.keys(t).forEach(function(l) {
|
|
5713
5715
|
const s = l.split(f).map(y);
|
|
5714
5716
|
let m = R(s.shift()), T = R(s[0]), b = h;
|
|
5715
5717
|
for (; T !== void 0; ) {
|
|
@@ -5720,7 +5722,7 @@ function ht() {
|
|
|
5720
5722
|
return;
|
|
5721
5723
|
(v && !_ || !v && b[m] == null) && (b[m] = typeof T == "number" && !n.object ? [] : {}), b = b[m], s.length > 0 && (m = R(s.shift()), T = R(s[0]));
|
|
5722
5724
|
}
|
|
5723
|
-
b[m] = t
|
|
5725
|
+
b[m] = r(t[l], n);
|
|
5724
5726
|
}), h;
|
|
5725
5727
|
}
|
|
5726
5728
|
return B;
|
|
@@ -5748,20 +5750,20 @@ const ue = {
|
|
|
5748
5750
|
focus: (...e) => /* @__PURE__ */ c("span", { style: { color: "var(--abyss-status-warning)" }, children: e })
|
|
5749
5751
|
}, Zt = () => {
|
|
5750
5752
|
const e = Y(), o = te(
|
|
5751
|
-
(i,
|
|
5753
|
+
(i, r) => e.formatMessage(i, {
|
|
5752
5754
|
...vt,
|
|
5753
|
-
...
|
|
5755
|
+
...r
|
|
5754
5756
|
}),
|
|
5755
5757
|
[e]
|
|
5756
5758
|
);
|
|
5757
5759
|
return ve(() => {
|
|
5758
|
-
const { formatMessage: i, ...
|
|
5759
|
-
return { ...
|
|
5760
|
+
const { formatMessage: i, ...r } = e;
|
|
5761
|
+
return { ...r, formatRichMessage: o };
|
|
5760
5762
|
}, [e, o]);
|
|
5761
5763
|
}, yt = /* @__PURE__ */ new Set(["a", "button"]), At = u("div", {
|
|
5762
5764
|
shouldForwardProp: (e) => e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as"
|
|
5763
5765
|
})(({ theme: e, ownerState: o }) => {
|
|
5764
|
-
const { tokens: i, radii:
|
|
5766
|
+
const { tokens: i, radii: r, space: t } = e.design;
|
|
5765
5767
|
return {
|
|
5766
5768
|
display: "flex",
|
|
5767
5769
|
flexDirection: "column",
|
|
@@ -5769,8 +5771,8 @@ const ue = {
|
|
|
5769
5771
|
boxSizing: "border-box",
|
|
5770
5772
|
backgroundColor: i["bg.surface"],
|
|
5771
5773
|
border: k(i["border.subtle"]),
|
|
5772
|
-
borderRadius: a(
|
|
5773
|
-
padding: a(
|
|
5774
|
+
borderRadius: a(r.md),
|
|
5775
|
+
padding: a(t[o.padding]),
|
|
5774
5776
|
color: i["text.primary"],
|
|
5775
5777
|
...o.interactive && {
|
|
5776
5778
|
cursor: "pointer",
|
|
@@ -5785,14 +5787,14 @@ const ue = {
|
|
|
5785
5787
|
}), eo = ye(function({
|
|
5786
5788
|
interactive: o = !1,
|
|
5787
5789
|
padding: i = 4,
|
|
5788
|
-
component:
|
|
5789
|
-
children:
|
|
5790
|
+
component: r = "div",
|
|
5791
|
+
children: t,
|
|
5790
5792
|
onKeyDown: n,
|
|
5791
5793
|
role: f,
|
|
5792
5794
|
tabIndex: v,
|
|
5793
5795
|
...y
|
|
5794
5796
|
}, h) {
|
|
5795
|
-
const E = o && typeof
|
|
5797
|
+
const E = o && typeof r == "string" && !yt.has(r), R = te(
|
|
5796
5798
|
(p) => {
|
|
5797
5799
|
typeof h == "function" ? h(p) : h !== null && (h.current = p);
|
|
5798
5800
|
},
|
|
@@ -5802,7 +5804,7 @@ const ue = {
|
|
|
5802
5804
|
At,
|
|
5803
5805
|
{
|
|
5804
5806
|
ref: R,
|
|
5805
|
-
as:
|
|
5807
|
+
as: r,
|
|
5806
5808
|
ownerState: { interactive: o, padding: i },
|
|
5807
5809
|
role: f ?? (E ? "button" : void 0),
|
|
5808
5810
|
tabIndex: v ?? (E ? 0 : void 0),
|
|
@@ -5810,7 +5812,7 @@ const ue = {
|
|
|
5810
5812
|
n == null || n(p), E && !p.defaultPrevented && p.target === p.currentTarget && (p.key === "Enter" || p.key === " ") && (p.preventDefault(), p.currentTarget.click());
|
|
5811
5813
|
},
|
|
5812
5814
|
...y,
|
|
5813
|
-
children:
|
|
5815
|
+
children: t
|
|
5814
5816
|
}
|
|
5815
5817
|
);
|
|
5816
5818
|
});
|
|
@@ -8,7 +8,7 @@ import Ja from "@mui/material/Select";
|
|
|
8
8
|
import { styled as w, useTheme as Qa, getContrastRatio as Nt } from "@mui/material/styles";
|
|
9
9
|
import { visuallyHidden as $t } from "@mui/utils";
|
|
10
10
|
import { useIntl as ge } from "react-intl";
|
|
11
|
-
import { p as c, h as me, d as Ce, D as Te, a as ve, t as Wn, s as ct, g as Ne, i as qe, c as qn, e as Hn, j as ei, B as ti } from "./Surface-
|
|
11
|
+
import { p as c, h as me, d as Ce, D as Te, a as ve, t as Wn, s as ct, g as Ne, i as qe, c as qn, e as Hn, j as ei, B as ti } from "./Surface-DCgywYyJ.js";
|
|
12
12
|
import Oe from "@mui/material/Button";
|
|
13
13
|
import { byteSizeIEC as ni } from "@abyss-project/main";
|
|
14
14
|
import ai from "@mui/icons-material/FileUploadOutlined";
|
package/dist/cookie-consent.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as o, g as a, h as n, e as C, i as t, f as i, j as r, k as A, C as E, b as O, c as S, D as _, R as k, o as I, m as c, l as d, n as N, r as T, p as l, u as f, d as D, a as R, w as V } from "./CookieConsentSettings-
|
|
2
|
-
import { f as p } from "./Surface-
|
|
1
|
+
import { A as o, g as a, h as n, e as C, i as t, f as i, j as r, k as A, C as E, b as O, c as S, D as _, R as k, o as I, m as c, l as d, n as N, r as T, p as l, u as f, d as D, a as R, w as V } from "./CookieConsentSettings-4BuLzLqD.js";
|
|
2
|
+
import { f as p } from "./Surface-DCgywYyJ.js";
|
|
3
3
|
export {
|
|
4
4
|
o as AbyssCookieConsentProvider,
|
|
5
5
|
a as CONSENT_VALIDITY_DAYS,
|