@protonradio/proton-ui 0.8.3 → 0.8.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.
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +223 -223
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -9503,7 +9503,61 @@ function t4(t) {
|
|
|
9503
9503
|
/* @__PURE__ */ b.jsx(Bv, { ...t })
|
|
9504
9504
|
] }) : null;
|
|
9505
9505
|
}
|
|
9506
|
-
const Kv =
|
|
9506
|
+
const Kv = (t) => {
|
|
9507
|
+
const [e, n, r] = t, l = e + n + r;
|
|
9508
|
+
if (l < 65) {
|
|
9509
|
+
const i = l / 100;
|
|
9510
|
+
return `rgba(255, 255, 255, ${Math.max(0.14, 0.36 - i)})`;
|
|
9511
|
+
}
|
|
9512
|
+
return "";
|
|
9513
|
+
};
|
|
9514
|
+
function n4({
|
|
9515
|
+
image: t,
|
|
9516
|
+
imageUrl: e = "",
|
|
9517
|
+
onLoad: n
|
|
9518
|
+
}) {
|
|
9519
|
+
const { palette: r } = Ae(), l = Rc(r.BASE_COLOR), i = Kv(l);
|
|
9520
|
+
return /* @__PURE__ */ b.jsxs(
|
|
9521
|
+
"div",
|
|
9522
|
+
{
|
|
9523
|
+
id: "background",
|
|
9524
|
+
"aria-label": "Background overlay",
|
|
9525
|
+
role: "dialog",
|
|
9526
|
+
"aria-modal": "true",
|
|
9527
|
+
className: U(
|
|
9528
|
+
"proton-ScreenOverlay__background",
|
|
9529
|
+
"proton-ScreenOverlay__overlay"
|
|
9530
|
+
),
|
|
9531
|
+
children: [
|
|
9532
|
+
t ? /* @__PURE__ */ b.jsx("div", { "aria-hidden": "true", children: t }) : /* @__PURE__ */ b.jsx(
|
|
9533
|
+
"img",
|
|
9534
|
+
{
|
|
9535
|
+
alt: "",
|
|
9536
|
+
src: e,
|
|
9537
|
+
className: "proton-ScreenOverlay__image",
|
|
9538
|
+
onLoad: (o) => n == null ? void 0 : n(o.currentTarget),
|
|
9539
|
+
"aria-hidden": "true"
|
|
9540
|
+
}
|
|
9541
|
+
),
|
|
9542
|
+
/* @__PURE__ */ b.jsx(
|
|
9543
|
+
"div",
|
|
9544
|
+
{
|
|
9545
|
+
className: "proton-ScreenOverlay__blur",
|
|
9546
|
+
"aria-hidden": "true",
|
|
9547
|
+
style: {
|
|
9548
|
+
background: i,
|
|
9549
|
+
// NOTE: We were receiving reports of backdrop filter not working on Safari. Explicitly defining the filter here instead works.
|
|
9550
|
+
WebkitBackdropFilter: "blur(24px) brightness(75%)",
|
|
9551
|
+
backdropFilter: "blur(24px) brightness(75%)",
|
|
9552
|
+
filter: "brightness(50%)"
|
|
9553
|
+
}
|
|
9554
|
+
}
|
|
9555
|
+
)
|
|
9556
|
+
]
|
|
9557
|
+
}
|
|
9558
|
+
);
|
|
9559
|
+
}
|
|
9560
|
+
const Mv = dt(
|
|
9507
9561
|
({
|
|
9508
9562
|
prefix: t,
|
|
9509
9563
|
suffix: e,
|
|
@@ -9607,7 +9661,7 @@ const Kv = dt(
|
|
|
9607
9661
|
) : n && r === "bottom" ? /* @__PURE__ */ b.jsx("div", { ...w, className: "proton-Input__text", children: n }) : null
|
|
9608
9662
|
] });
|
|
9609
9663
|
}
|
|
9610
|
-
),
|
|
9664
|
+
), r4 = ({
|
|
9611
9665
|
name: t = "search",
|
|
9612
9666
|
placeholder: e = "Search...",
|
|
9613
9667
|
autoComplete: n,
|
|
@@ -9640,7 +9694,7 @@ const Kv = dt(
|
|
|
9640
9694
|
"data-testid": u,
|
|
9641
9695
|
role: "search",
|
|
9642
9696
|
children: /* @__PURE__ */ b.jsx(
|
|
9643
|
-
|
|
9697
|
+
Mv,
|
|
9644
9698
|
{
|
|
9645
9699
|
...p,
|
|
9646
9700
|
type: "search",
|
|
@@ -9724,7 +9778,7 @@ const Kv = dt(
|
|
|
9724
9778
|
}
|
|
9725
9779
|
);
|
|
9726
9780
|
};
|
|
9727
|
-
function
|
|
9781
|
+
function l4(t) {
|
|
9728
9782
|
const e = M(null), n = Rn(t || {}), { triggerProps: r, overlayProps: l } = ro(
|
|
9729
9783
|
{ type: "dialog" },
|
|
9730
9784
|
n,
|
|
@@ -9793,7 +9847,7 @@ class ol {
|
|
|
9793
9847
|
this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.type = e, this.key = n;
|
|
9794
9848
|
}
|
|
9795
9849
|
}
|
|
9796
|
-
class
|
|
9850
|
+
class Iv {
|
|
9797
9851
|
get size() {
|
|
9798
9852
|
return this.keyMap.size;
|
|
9799
9853
|
}
|
|
@@ -9985,7 +10039,7 @@ class Ut extends Xs {
|
|
|
9985
10039
|
super(n), this.nodeType = 8, this._index = 0, this.hasSetProps = !1, this.node = new ol(e, `react-aria-${++n.nodeId}`), this.ownerDocument.startTransaction();
|
|
9986
10040
|
}
|
|
9987
10041
|
}
|
|
9988
|
-
class
|
|
10042
|
+
class Fv extends Xs {
|
|
9989
10043
|
get isConnected() {
|
|
9990
10044
|
return this.isMounted;
|
|
9991
10045
|
}
|
|
@@ -10095,8 +10149,8 @@ if (typeof HTMLTemplateElement < "u") {
|
|
|
10095
10149
|
}
|
|
10096
10150
|
});
|
|
10097
10151
|
}
|
|
10098
|
-
const Kr = /* @__PURE__ */ Q(!1),
|
|
10099
|
-
function
|
|
10152
|
+
const Kr = /* @__PURE__ */ Q(!1), _v = typeof DocumentFragment < "u" ? new DocumentFragment() : null;
|
|
10153
|
+
function Rv(t) {
|
|
10100
10154
|
let e = Y(Kr), n = nt();
|
|
10101
10155
|
if (e)
|
|
10102
10156
|
return /* @__PURE__ */ A.createElement(A.Fragment, null, t.children);
|
|
@@ -10105,9 +10159,9 @@ function _v(t) {
|
|
|
10105
10159
|
}, t.children);
|
|
10106
10160
|
return n ? /* @__PURE__ */ A.createElement("template", {
|
|
10107
10161
|
"data-react-aria-hidden": !0
|
|
10108
|
-
}, r) : /* @__PURE__ */ gi(r,
|
|
10162
|
+
}, r) : /* @__PURE__ */ gi(r, _v);
|
|
10109
10163
|
}
|
|
10110
|
-
function
|
|
10164
|
+
function Nv(t) {
|
|
10111
10165
|
let e = (n, r) => Y(Kr) ? null : t(n, r);
|
|
10112
10166
|
return e.displayName = t.displayName || t.name, dt(e);
|
|
10113
10167
|
}
|
|
@@ -10122,7 +10176,7 @@ var Mr = { exports: {} }, ur = {};
|
|
|
10122
10176
|
* LICENSE file in the root directory of this source tree.
|
|
10123
10177
|
*/
|
|
10124
10178
|
var ci;
|
|
10125
|
-
function
|
|
10179
|
+
function Lv() {
|
|
10126
10180
|
if (ci) return ur;
|
|
10127
10181
|
ci = 1;
|
|
10128
10182
|
var t = A;
|
|
@@ -10167,7 +10221,7 @@ var sr = {};
|
|
|
10167
10221
|
* LICENSE file in the root directory of this source tree.
|
|
10168
10222
|
*/
|
|
10169
10223
|
var di;
|
|
10170
|
-
function
|
|
10224
|
+
function Ov() {
|
|
10171
10225
|
return di || (di = 1, process.env.NODE_ENV !== "production" && function() {
|
|
10172
10226
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
10173
10227
|
var t = A, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -10237,35 +10291,35 @@ function Lv() {
|
|
|
10237
10291
|
sr.useSyncExternalStore = x, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
10238
10292
|
}()), sr;
|
|
10239
10293
|
}
|
|
10240
|
-
process.env.NODE_ENV === "production" ? Mr.exports =
|
|
10241
|
-
var
|
|
10294
|
+
process.env.NODE_ENV === "production" ? Mr.exports = Lv() : Mr.exports = Ov();
|
|
10295
|
+
var zv = Mr.exports;
|
|
10242
10296
|
const Js = /* @__PURE__ */ Q(!1), Gt = /* @__PURE__ */ Q(null);
|
|
10243
|
-
function
|
|
10297
|
+
function jv(t) {
|
|
10244
10298
|
if (Y(Gt))
|
|
10245
10299
|
return t.content;
|
|
10246
|
-
let { collection: n, document: r } =
|
|
10247
|
-
return /* @__PURE__ */ A.createElement(A.Fragment, null, /* @__PURE__ */ A.createElement(
|
|
10300
|
+
let { collection: n, document: r } = Uv(t.createCollection);
|
|
10301
|
+
return /* @__PURE__ */ A.createElement(A.Fragment, null, /* @__PURE__ */ A.createElement(Rv, null, /* @__PURE__ */ A.createElement(Gt.Provider, {
|
|
10248
10302
|
value: r
|
|
10249
|
-
}, t.content)), /* @__PURE__ */ A.createElement(
|
|
10303
|
+
}, t.content)), /* @__PURE__ */ A.createElement(Vv, {
|
|
10250
10304
|
render: t.children,
|
|
10251
10305
|
collection: n
|
|
10252
10306
|
}));
|
|
10253
10307
|
}
|
|
10254
|
-
function
|
|
10308
|
+
function Vv({ collection: t, render: e }) {
|
|
10255
10309
|
return e(t);
|
|
10256
10310
|
}
|
|
10257
|
-
function
|
|
10311
|
+
function Hv(t, e, n) {
|
|
10258
10312
|
let r = nt(), l = M(r);
|
|
10259
10313
|
l.current = r;
|
|
10260
10314
|
let i = X(() => l.current ? n() : e(), [
|
|
10261
10315
|
e,
|
|
10262
10316
|
n
|
|
10263
10317
|
]);
|
|
10264
|
-
return
|
|
10318
|
+
return zv.useSyncExternalStore(t, i);
|
|
10265
10319
|
}
|
|
10266
|
-
const
|
|
10267
|
-
function
|
|
10268
|
-
let [e] = z(() => new
|
|
10320
|
+
const Wv = typeof A.useSyncExternalStore == "function" ? A.useSyncExternalStore : Hv;
|
|
10321
|
+
function Uv(t) {
|
|
10322
|
+
let [e] = z(() => new Fv((t == null ? void 0 : t()) || new Iv())), n = X((o) => e.subscribe(o), [
|
|
10269
10323
|
e
|
|
10270
10324
|
]), r = X(() => {
|
|
10271
10325
|
let o = e.getCollection();
|
|
@@ -10274,7 +10328,7 @@ function Wv(t) {
|
|
|
10274
10328
|
e
|
|
10275
10329
|
]), l = X(() => (e.isSSR = !0, e.getCollection()), [
|
|
10276
10330
|
e
|
|
10277
|
-
]), i =
|
|
10331
|
+
]), i = Wv(n, r, l);
|
|
10278
10332
|
return J(() => (e.isMounted = !0, () => {
|
|
10279
10333
|
e.isMounted = !1;
|
|
10280
10334
|
}), [
|
|
@@ -10285,7 +10339,7 @@ function Wv(t) {
|
|
|
10285
10339
|
};
|
|
10286
10340
|
}
|
|
10287
10341
|
const Ir = /* @__PURE__ */ Q(null);
|
|
10288
|
-
function
|
|
10342
|
+
function Gv(t, e, n, r, l, i) {
|
|
10289
10343
|
let o = X((u) => {
|
|
10290
10344
|
u == null || u.setProps(e, n, r, i);
|
|
10291
10345
|
}, [
|
|
@@ -10304,32 +10358,32 @@ function Uv(t, e, n, r, l, i) {
|
|
|
10304
10358
|
ref: o
|
|
10305
10359
|
}, l);
|
|
10306
10360
|
}
|
|
10307
|
-
function
|
|
10361
|
+
function Yv(t, e) {
|
|
10308
10362
|
let n = ({ node: l }) => e(l.props, l.props.ref, l), r = dt((l, i) => {
|
|
10309
10363
|
if (!Y(Js)) {
|
|
10310
10364
|
if (e.length >= 3) throw new Error(e.name + " cannot be rendered outside a collection.");
|
|
10311
10365
|
return e(l, i);
|
|
10312
10366
|
}
|
|
10313
|
-
return
|
|
10367
|
+
return Gv(t, l, i, "children" in l ? l.children : null, null, (a) => /* @__PURE__ */ A.createElement(n, {
|
|
10314
10368
|
node: a
|
|
10315
10369
|
}));
|
|
10316
10370
|
});
|
|
10317
10371
|
return r.displayName = e.name, r;
|
|
10318
10372
|
}
|
|
10319
|
-
function
|
|
10373
|
+
function qv(t) {
|
|
10320
10374
|
return Zs({
|
|
10321
10375
|
...t,
|
|
10322
10376
|
addIdAndValue: !0
|
|
10323
10377
|
});
|
|
10324
10378
|
}
|
|
10325
10379
|
const fi = /* @__PURE__ */ Q(null);
|
|
10326
|
-
function
|
|
10327
|
-
let e = Y(fi), n = ((e == null ? void 0 : e.dependencies) || []).concat(t.dependencies), r = t.idScope || (e == null ? void 0 : e.idScope), l =
|
|
10380
|
+
function Xv(t) {
|
|
10381
|
+
let e = Y(fi), n = ((e == null ? void 0 : e.dependencies) || []).concat(t.dependencies), r = t.idScope || (e == null ? void 0 : e.idScope), l = qv({
|
|
10328
10382
|
...t,
|
|
10329
10383
|
idScope: r,
|
|
10330
10384
|
dependencies: n
|
|
10331
10385
|
});
|
|
10332
|
-
return Y(Gt) && (l = /* @__PURE__ */ A.createElement(
|
|
10386
|
+
return Y(Gt) && (l = /* @__PURE__ */ A.createElement(Zv, null, l)), e = H(() => ({
|
|
10333
10387
|
dependencies: n,
|
|
10334
10388
|
idScope: r
|
|
10335
10389
|
}), [
|
|
@@ -10339,7 +10393,7 @@ function qv(t) {
|
|
|
10339
10393
|
value: e
|
|
10340
10394
|
}, l);
|
|
10341
10395
|
}
|
|
10342
|
-
function
|
|
10396
|
+
function Zv({ children: t }) {
|
|
10343
10397
|
let e = Y(Gt), n = H(() => /* @__PURE__ */ A.createElement(Gt.Provider, {
|
|
10344
10398
|
value: null
|
|
10345
10399
|
}, /* @__PURE__ */ A.createElement(Js.Provider, {
|
|
@@ -10351,7 +10405,7 @@ function Xv({ children: t }) {
|
|
|
10351
10405
|
value: e
|
|
10352
10406
|
}, n) : /* @__PURE__ */ gi(n, e);
|
|
10353
10407
|
}
|
|
10354
|
-
const
|
|
10408
|
+
const Jv = /* @__PURE__ */ Q(null), Qv = {
|
|
10355
10409
|
CollectionRoot({ collection: t, renderDropIndicator: e }) {
|
|
10356
10410
|
return pi(t, null, e);
|
|
10357
10411
|
},
|
|
@@ -10382,8 +10436,8 @@ function pi(t, e, n) {
|
|
|
10382
10436
|
}
|
|
10383
10437
|
});
|
|
10384
10438
|
}
|
|
10385
|
-
const Qs = /* @__PURE__ */ Q(
|
|
10386
|
-
function
|
|
10439
|
+
const Qs = /* @__PURE__ */ Q(Qv);
|
|
10440
|
+
function eh(t) {
|
|
10387
10441
|
return H(() => t != null ? /* @__PURE__ */ new Set([
|
|
10388
10442
|
t
|
|
10389
10443
|
]) : null, [
|
|
@@ -10469,7 +10523,7 @@ function Zt(t, e, n) {
|
|
|
10469
10523
|
o
|
|
10470
10524
|
];
|
|
10471
10525
|
}
|
|
10472
|
-
function
|
|
10526
|
+
function th() {
|
|
10473
10527
|
let [t, e] = z(!0), n = M(!1), r = X((l) => {
|
|
10474
10528
|
n.current = !0, e(!!l);
|
|
10475
10529
|
}, []);
|
|
@@ -10480,11 +10534,11 @@ function eh() {
|
|
|
10480
10534
|
t
|
|
10481
10535
|
];
|
|
10482
10536
|
}
|
|
10483
|
-
function
|
|
10537
|
+
function nh(t, e = !0) {
|
|
10484
10538
|
let [n, r] = z(!0);
|
|
10485
10539
|
return tc(t, n && e, X(() => r(!1), [])), n && e;
|
|
10486
10540
|
}
|
|
10487
|
-
function
|
|
10541
|
+
function rh(t, e) {
|
|
10488
10542
|
let [n, r] = z(!1), [l, i] = z("idle");
|
|
10489
10543
|
return !e && t.current && l === "idle" && (n = !0, r(!0), i("exiting")), !t.current && l === "exited" && i("idle"), tc(t, n, X(() => {
|
|
10490
10544
|
i("exited"), r(!1);
|
|
@@ -10512,7 +10566,7 @@ function tc(t, e, n) {
|
|
|
10512
10566
|
n
|
|
10513
10567
|
]);
|
|
10514
10568
|
}
|
|
10515
|
-
const
|
|
10569
|
+
const lh = /* @__PURE__ */ Q(null), ih = /* @__PURE__ */ new Set([
|
|
10516
10570
|
"form",
|
|
10517
10571
|
"formAction",
|
|
10518
10572
|
"formEncType",
|
|
@@ -10521,9 +10575,9 @@ const rh = /* @__PURE__ */ Q(null), lh = /* @__PURE__ */ new Set([
|
|
|
10521
10575
|
"formTarget",
|
|
10522
10576
|
"name",
|
|
10523
10577
|
"value"
|
|
10524
|
-
]),
|
|
10525
|
-
function
|
|
10526
|
-
[t, e] = Zt(t, e,
|
|
10578
|
+
]), oh = /* @__PURE__ */ Q({});
|
|
10579
|
+
function ah(t, e) {
|
|
10580
|
+
[t, e] = Zt(t, e, oh), t = uh(t);
|
|
10527
10581
|
let n = t, { isPending: r } = n, { buttonProps: l, isPressed: i } = Fn(t, e), { focusProps: o, isFocused: a, isFocusVisible: u } = Xt(t), { hoverProps: s, isHovered: c } = kt({
|
|
10528
10582
|
...t,
|
|
10529
10583
|
isDisabled: t.isDisabled || r
|
|
@@ -10553,7 +10607,7 @@ function oh(t, e) {
|
|
|
10553
10607
|
p
|
|
10554
10608
|
]), /* @__PURE__ */ A.createElement("button", {
|
|
10555
10609
|
...pe(t, {
|
|
10556
|
-
propNames:
|
|
10610
|
+
propNames: ih
|
|
10557
10611
|
}),
|
|
10558
10612
|
...W(l, o, s),
|
|
10559
10613
|
...f,
|
|
@@ -10568,19 +10622,19 @@ function oh(t, e) {
|
|
|
10568
10622
|
"data-focused": a || void 0,
|
|
10569
10623
|
"data-pending": r || void 0,
|
|
10570
10624
|
"data-focus-visible": u || void 0
|
|
10571
|
-
}, /* @__PURE__ */ A.createElement(
|
|
10625
|
+
}, /* @__PURE__ */ A.createElement(lh.Provider, {
|
|
10572
10626
|
value: {
|
|
10573
10627
|
id: m
|
|
10574
10628
|
}
|
|
10575
10629
|
}, f.children));
|
|
10576
10630
|
}
|
|
10577
|
-
function
|
|
10631
|
+
function uh(t) {
|
|
10578
10632
|
return t.isPending && (t.onPress = void 0, t.onPressStart = void 0, t.onPressEnd = void 0, t.onPressChange = void 0, t.onPressUp = void 0, t.onKeyDown = void 0, t.onKeyUp = void 0, t.onClick = void 0, t.href = void 0), t;
|
|
10579
10633
|
}
|
|
10580
|
-
const nc = /* @__PURE__ */
|
|
10634
|
+
const nc = /* @__PURE__ */ Nv(ah), sh = /* @__PURE__ */ Q({}), ch = /* @__PURE__ */ Q({}), dh = /* @__PURE__ */ Q({}), rc = /* @__PURE__ */ Q({
|
|
10581
10635
|
placement: "bottom"
|
|
10582
10636
|
});
|
|
10583
|
-
function
|
|
10637
|
+
function fh(t, e) {
|
|
10584
10638
|
[t, e] = Zt(t, e, rc);
|
|
10585
10639
|
let n = t.placement, r = {
|
|
10586
10640
|
position: "absolute",
|
|
@@ -10604,8 +10658,8 @@ function dh(t, e) {
|
|
|
10604
10658
|
"data-placement": n
|
|
10605
10659
|
});
|
|
10606
10660
|
}
|
|
10607
|
-
const
|
|
10608
|
-
function
|
|
10661
|
+
const ph = /* @__PURE__ */ dt(fh), Fr = /* @__PURE__ */ Q(null), vh = /* @__PURE__ */ Q(null), hh = /* @__PURE__ */ Q({}), lc = /* @__PURE__ */ Q(null), al = /* @__PURE__ */ Q(null), ic = /* @__PURE__ */ Q(null);
|
|
10662
|
+
function mh(t) {
|
|
10609
10663
|
let e = Xp(t), n = M(null), { menuTriggerProps: r, menuProps: l } = Ta({
|
|
10610
10664
|
...t,
|
|
10611
10665
|
type: "menu"
|
|
@@ -10629,7 +10683,7 @@ function hh(t) {
|
|
|
10629
10683
|
}
|
|
10630
10684
|
],
|
|
10631
10685
|
[
|
|
10632
|
-
|
|
10686
|
+
vh,
|
|
10633
10687
|
e
|
|
10634
10688
|
],
|
|
10635
10689
|
[
|
|
@@ -10655,17 +10709,17 @@ function hh(t) {
|
|
|
10655
10709
|
isPressed: e.isOpen
|
|
10656
10710
|
}, t.children));
|
|
10657
10711
|
}
|
|
10658
|
-
const
|
|
10659
|
-
function
|
|
10660
|
-
return [t, e] = Zt(t, e, lc), /* @__PURE__ */ A.createElement(
|
|
10661
|
-
content: /* @__PURE__ */ A.createElement(
|
|
10662
|
-
}, (n) => n.size > 0 && /* @__PURE__ */ A.createElement(
|
|
10712
|
+
const bh = /* @__PURE__ */ Q(null);
|
|
10713
|
+
function gh(t, e) {
|
|
10714
|
+
return [t, e] = Zt(t, e, lc), /* @__PURE__ */ A.createElement(jv, {
|
|
10715
|
+
content: /* @__PURE__ */ A.createElement(Xv, t)
|
|
10716
|
+
}, (n) => n.size > 0 && /* @__PURE__ */ A.createElement(yh, {
|
|
10663
10717
|
props: t,
|
|
10664
10718
|
collection: n,
|
|
10665
10719
|
menuRef: e
|
|
10666
10720
|
}));
|
|
10667
10721
|
}
|
|
10668
|
-
function
|
|
10722
|
+
function yh({ props: t, collection: e, menuRef: n }) {
|
|
10669
10723
|
let r = Hs({
|
|
10670
10724
|
...t,
|
|
10671
10725
|
collection: e,
|
|
@@ -10716,7 +10770,7 @@ function gh({ props: t, collection: e, menuRef: n }) {
|
|
|
10716
10770
|
r
|
|
10717
10771
|
],
|
|
10718
10772
|
[
|
|
10719
|
-
|
|
10773
|
+
dh,
|
|
10720
10774
|
{
|
|
10721
10775
|
elementType: "div"
|
|
10722
10776
|
}
|
|
@@ -10728,13 +10782,13 @@ function gh({ props: t, collection: e, menuRef: n }) {
|
|
|
10728
10782
|
}
|
|
10729
10783
|
],
|
|
10730
10784
|
[
|
|
10731
|
-
|
|
10785
|
+
Jv,
|
|
10732
10786
|
{
|
|
10733
|
-
render:
|
|
10787
|
+
render: xh
|
|
10734
10788
|
}
|
|
10735
10789
|
],
|
|
10736
10790
|
[
|
|
10737
|
-
|
|
10791
|
+
bh,
|
|
10738
10792
|
{
|
|
10739
10793
|
parentMenuRef: n
|
|
10740
10794
|
}
|
|
@@ -10746,7 +10800,7 @@ function gh({ props: t, collection: e, menuRef: n }) {
|
|
|
10746
10800
|
]
|
|
10747
10801
|
}, /* @__PURE__ */ A.createElement(a, {
|
|
10748
10802
|
collection: e,
|
|
10749
|
-
persistedKeys:
|
|
10803
|
+
persistedKeys: eh(r.selectionManager.focusedKey),
|
|
10750
10804
|
scrollRef: n
|
|
10751
10805
|
}))), /* @__PURE__ */ A.createElement("div", {
|
|
10752
10806
|
ref: i,
|
|
@@ -10758,10 +10812,10 @@ function gh({ props: t, collection: e, menuRef: n }) {
|
|
|
10758
10812
|
}
|
|
10759
10813
|
}));
|
|
10760
10814
|
}
|
|
10761
|
-
const
|
|
10762
|
-
function
|
|
10815
|
+
const $h = /* @__PURE__ */ dt(gh);
|
|
10816
|
+
function xh(t, e, n) {
|
|
10763
10817
|
var r, l;
|
|
10764
|
-
let i = Y(al), { CollectionBranch: o } = Y(Qs), [a, u] =
|
|
10818
|
+
let i = Y(al), { CollectionBranch: o } = Y(Qs), [a, u] = th();
|
|
10765
10819
|
var s;
|
|
10766
10820
|
let { headingProps: c, groupProps: d } = up({
|
|
10767
10821
|
heading: u,
|
|
@@ -10777,7 +10831,7 @@ function $h(t, e, n) {
|
|
|
10777
10831
|
...d,
|
|
10778
10832
|
...f,
|
|
10779
10833
|
ref: e
|
|
10780
|
-
}, /* @__PURE__ */ A.createElement(
|
|
10834
|
+
}, /* @__PURE__ */ A.createElement(ch.Provider, {
|
|
10781
10835
|
value: {
|
|
10782
10836
|
...c,
|
|
10783
10837
|
ref: a
|
|
@@ -10787,7 +10841,7 @@ function $h(t, e, n) {
|
|
|
10787
10841
|
parent: n
|
|
10788
10842
|
})));
|
|
10789
10843
|
}
|
|
10790
|
-
const _r = /* @__PURE__ */ Q(null),
|
|
10844
|
+
const _r = /* @__PURE__ */ Q(null), Eh = /* @__PURE__ */ Yv("item", function(e, n, r) {
|
|
10791
10845
|
var l;
|
|
10792
10846
|
[e, n] = Zt(e, n, _r);
|
|
10793
10847
|
let i = (l = ec(_r)) === null || l === void 0 ? void 0 : l.id, o = Y(al), a = Dn(n), { menuItemProps: u, labelProps: s, descriptionProps: c, keyboardShortcutProps: d, ...f } = Ka({
|
|
@@ -10827,7 +10881,7 @@ const _r = /* @__PURE__ */ Q(null), xh = /* @__PURE__ */ Gv("item", function(e,
|
|
|
10827
10881
|
}, /* @__PURE__ */ A.createElement(Ln, {
|
|
10828
10882
|
values: [
|
|
10829
10883
|
[
|
|
10830
|
-
|
|
10884
|
+
sh,
|
|
10831
10885
|
{
|
|
10832
10886
|
slots: {
|
|
10833
10887
|
label: s,
|
|
@@ -10836,13 +10890,13 @@ const _r = /* @__PURE__ */ Q(null), xh = /* @__PURE__ */ Gv("item", function(e,
|
|
|
10836
10890
|
}
|
|
10837
10891
|
],
|
|
10838
10892
|
[
|
|
10839
|
-
|
|
10893
|
+
hh,
|
|
10840
10894
|
d
|
|
10841
10895
|
]
|
|
10842
10896
|
]
|
|
10843
10897
|
}, C.children));
|
|
10844
10898
|
}), ul = /* @__PURE__ */ Q(null), oc = /* @__PURE__ */ Q(null);
|
|
10845
|
-
function
|
|
10899
|
+
function Sh(t) {
|
|
10846
10900
|
let e = Vs(t), n = M(null), { triggerProps: r, tooltipProps: l } = Up(t, e, n);
|
|
10847
10901
|
return /* @__PURE__ */ A.createElement(Ln, {
|
|
10848
10902
|
values: [
|
|
@@ -10863,19 +10917,19 @@ function Eh(t) {
|
|
|
10863
10917
|
ref: n
|
|
10864
10918
|
}, t.children));
|
|
10865
10919
|
}
|
|
10866
|
-
function
|
|
10920
|
+
function Ch({ UNSTABLE_portalContainer: t, ...e }, n) {
|
|
10867
10921
|
[e, n] = Zt(e, n, oc);
|
|
10868
|
-
let r = Y(ul), l = Vs(e), i = e.isOpen != null || e.defaultOpen != null || !r ? l : r, o =
|
|
10922
|
+
let r = Y(ul), l = Vs(e), i = e.isOpen != null || e.defaultOpen != null || !r ? l : r, o = rh(n, i.isOpen) || e.isExiting || !1;
|
|
10869
10923
|
return !i.isOpen && !o ? null : /* @__PURE__ */ A.createElement(Vf, {
|
|
10870
10924
|
portalContainer: t
|
|
10871
|
-
}, /* @__PURE__ */ A.createElement(
|
|
10925
|
+
}, /* @__PURE__ */ A.createElement(Ph, {
|
|
10872
10926
|
...e,
|
|
10873
10927
|
tooltipRef: n,
|
|
10874
10928
|
isExiting: o
|
|
10875
10929
|
}));
|
|
10876
10930
|
}
|
|
10877
|
-
const
|
|
10878
|
-
function
|
|
10931
|
+
const wh = /* @__PURE__ */ dt(Ch);
|
|
10932
|
+
function Ph(t) {
|
|
10879
10933
|
let e = Y(ul), n = M(null), [r, l] = z(0);
|
|
10880
10934
|
J(() => {
|
|
10881
10935
|
n.current && e.isOpen && l(n.current.getBoundingClientRect().width);
|
|
@@ -10893,7 +10947,7 @@ function wh(t) {
|
|
|
10893
10947
|
arrowSize: r,
|
|
10894
10948
|
arrowBoundaryOffset: t.arrowBoundaryOffset,
|
|
10895
10949
|
shouldFlip: t.shouldFlip
|
|
10896
|
-
}), u =
|
|
10950
|
+
}), u = nh(t.tooltipRef, !!a) || t.isEntering || !1, s = At({
|
|
10897
10951
|
...t,
|
|
10898
10952
|
defaultClassName: "react-aria-Tooltip",
|
|
10899
10953
|
values: {
|
|
@@ -10936,14 +10990,14 @@ function ac(t, e = "down") {
|
|
|
10936
10990
|
return i.addEventListener("change", o), () => i.removeEventListener("change", o);
|
|
10937
10991
|
}, [n]), r;
|
|
10938
10992
|
}
|
|
10939
|
-
const
|
|
10993
|
+
const Dh = ({ size: t }) => /* @__PURE__ */ b.jsx("svg", { viewBox: "0 0 24 24", width: t, height: t, children: /* @__PURE__ */ b.jsx(
|
|
10940
10994
|
"path",
|
|
10941
10995
|
{
|
|
10942
10996
|
fill: "currentColor",
|
|
10943
10997
|
d: "M4 14c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm8 0c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm8 0c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"
|
|
10944
10998
|
}
|
|
10945
10999
|
) });
|
|
10946
|
-
function
|
|
11000
|
+
function i4({
|
|
10947
11001
|
renderTrigger: t,
|
|
10948
11002
|
menuId: e,
|
|
10949
11003
|
size: n = 24,
|
|
@@ -10965,7 +11019,7 @@ function l4({
|
|
|
10965
11019
|
onPress: () => d((g) => !g),
|
|
10966
11020
|
isDisabled: l,
|
|
10967
11021
|
className: `proton-ResponsiveMenuTrigger__button ${u}`,
|
|
10968
|
-
children: /* @__PURE__ */ b.jsx(
|
|
11022
|
+
children: /* @__PURE__ */ b.jsx(Dh, { size: n })
|
|
10969
11023
|
}
|
|
10970
11024
|
), y = t ? t(
|
|
10971
11025
|
{ ...p, onClick: () => d((g) => !g) },
|
|
@@ -10988,7 +11042,7 @@ function l4({
|
|
|
10988
11042
|
"data-testid": a
|
|
10989
11043
|
}
|
|
10990
11044
|
)
|
|
10991
|
-
] }) : /* @__PURE__ */ b.jsxs(
|
|
11045
|
+
] }) : /* @__PURE__ */ b.jsxs(mh, { children: [
|
|
10992
11046
|
y,
|
|
10993
11047
|
c && /* @__PURE__ */ b.jsx(
|
|
10994
11048
|
il,
|
|
@@ -11003,14 +11057,14 @@ function l4({
|
|
|
11003
11057
|
triggerRef: f,
|
|
11004
11058
|
arrow: !1,
|
|
11005
11059
|
children: /* @__PURE__ */ b.jsx(
|
|
11006
|
-
|
|
11060
|
+
$h,
|
|
11007
11061
|
{
|
|
11008
11062
|
className: "proton-ListBox proton-ResponsiveMenuTrigger__menu",
|
|
11009
11063
|
id: e,
|
|
11010
11064
|
autoFocus: !0,
|
|
11011
11065
|
"data-testid": a,
|
|
11012
11066
|
children: r.map((g) => /* @__PURE__ */ b.jsx(
|
|
11013
|
-
|
|
11067
|
+
Eh,
|
|
11014
11068
|
{
|
|
11015
11069
|
href: g.to,
|
|
11016
11070
|
target: "_blank",
|
|
@@ -11041,11 +11095,11 @@ const Rr = (t) => {
|
|
|
11041
11095
|
ref: e,
|
|
11042
11096
|
"data-testid": "listbox",
|
|
11043
11097
|
className: "proton-ListBox",
|
|
11044
|
-
children: [...n.collection].map((l) => /* @__PURE__ */ b.jsx(
|
|
11098
|
+
children: [...n.collection].map((l) => /* @__PURE__ */ b.jsx(kh, { item: l, state: n }, l.key))
|
|
11045
11099
|
}
|
|
11046
11100
|
) });
|
|
11047
11101
|
};
|
|
11048
|
-
function
|
|
11102
|
+
function kh({ item: t, state: e }) {
|
|
11049
11103
|
let n = M(null), { optionProps: r, isSelected: l, isFocused: i, isDisabled: o } = op(
|
|
11050
11104
|
{ key: t.key },
|
|
11051
11105
|
e,
|
|
@@ -11091,7 +11145,7 @@ const uc = dt(
|
|
|
11091
11145
|
);
|
|
11092
11146
|
}
|
|
11093
11147
|
);
|
|
11094
|
-
function
|
|
11148
|
+
function Th({
|
|
11095
11149
|
label: t,
|
|
11096
11150
|
name: e,
|
|
11097
11151
|
isDisabled: n,
|
|
@@ -11202,11 +11256,11 @@ function kh({
|
|
|
11202
11256
|
}
|
|
11203
11257
|
);
|
|
11204
11258
|
}
|
|
11205
|
-
const
|
|
11206
|
-
Menu:
|
|
11259
|
+
const o4 = {
|
|
11260
|
+
Menu: Th,
|
|
11207
11261
|
Option: Xr
|
|
11208
11262
|
};
|
|
11209
|
-
function
|
|
11263
|
+
function Ah({
|
|
11210
11264
|
label: t,
|
|
11211
11265
|
name: e,
|
|
11212
11266
|
isDisabled: n,
|
|
@@ -11316,11 +11370,11 @@ function Th({
|
|
|
11316
11370
|
}
|
|
11317
11371
|
);
|
|
11318
11372
|
}
|
|
11319
|
-
const
|
|
11320
|
-
Menu:
|
|
11373
|
+
const a4 = {
|
|
11374
|
+
Menu: Ah,
|
|
11321
11375
|
Option: Xr
|
|
11322
11376
|
};
|
|
11323
|
-
function
|
|
11377
|
+
function u4(t) {
|
|
11324
11378
|
let e = {
|
|
11325
11379
|
...t,
|
|
11326
11380
|
isSelected: t.isOn,
|
|
@@ -11349,11 +11403,11 @@ function a4(t) {
|
|
|
11349
11403
|
}
|
|
11350
11404
|
);
|
|
11351
11405
|
}
|
|
11352
|
-
function
|
|
11406
|
+
function Bh({ item: t, state: e, children: n }) {
|
|
11353
11407
|
let r = M(), { rowProps: l } = jp({ node: t }, e);
|
|
11354
11408
|
return /* @__PURE__ */ b.jsx("tr", { className: U("proton-Table__headerRow"), ...l, ref: r, children: n });
|
|
11355
11409
|
}
|
|
11356
|
-
function
|
|
11410
|
+
function Kh({ column: t, state: e }) {
|
|
11357
11411
|
var u, s;
|
|
11358
11412
|
let n = M(), { columnHeaderProps: r } = Op(
|
|
11359
11413
|
{ node: t },
|
|
@@ -11409,7 +11463,7 @@ function hi({
|
|
|
11409
11463
|
}
|
|
11410
11464
|
);
|
|
11411
11465
|
}
|
|
11412
|
-
function
|
|
11466
|
+
function Mh({
|
|
11413
11467
|
item: t,
|
|
11414
11468
|
children: e,
|
|
11415
11469
|
state: n,
|
|
@@ -11443,7 +11497,7 @@ function Kh({
|
|
|
11443
11497
|
}
|
|
11444
11498
|
);
|
|
11445
11499
|
}
|
|
11446
|
-
function
|
|
11500
|
+
function Ih({ cell: t, state: e, width: n, onClick: r }) {
|
|
11447
11501
|
let l = M(), { gridCellProps: i } = Vp({ node: t }, e, l), { isFocusVisible: o, focusProps: a } = Xt();
|
|
11448
11502
|
const { align: u = "left" } = t.props;
|
|
11449
11503
|
return /* @__PURE__ */ b.jsx(
|
|
@@ -11463,8 +11517,8 @@ function Mh({ cell: t, state: e, width: n, onClick: r }) {
|
|
|
11463
11517
|
}
|
|
11464
11518
|
);
|
|
11465
11519
|
}
|
|
11466
|
-
const
|
|
11467
|
-
function
|
|
11520
|
+
const s4 = uv, c4 = cv, d4 = sv, f4 = av;
|
|
11521
|
+
function p4(t) {
|
|
11468
11522
|
var i;
|
|
11469
11523
|
let e = ov({
|
|
11470
11524
|
...t
|
|
@@ -11474,8 +11528,8 @@ function f4(t) {
|
|
|
11474
11528
|
n
|
|
11475
11529
|
);
|
|
11476
11530
|
return /* @__PURE__ */ b.jsxs("table", { ...l, ref: n, className: U("proton-Table"), children: [
|
|
11477
|
-
/* @__PURE__ */ b.jsx(hi, { type: "thead", isHidden: (i = t.headerProps) == null ? void 0 : i.isHidden, children: r.headerRows.map((o) => /* @__PURE__ */ b.jsx(
|
|
11478
|
-
|
|
11531
|
+
/* @__PURE__ */ b.jsx(hi, { type: "thead", isHidden: (i = t.headerProps) == null ? void 0 : i.isHidden, children: r.headerRows.map((o) => /* @__PURE__ */ b.jsx(Bh, { item: o, state: e, children: Array.from(r.getChildren(o.key)).map((a) => /* @__PURE__ */ b.jsx(
|
|
11532
|
+
Kh,
|
|
11479
11533
|
{
|
|
11480
11534
|
column: a,
|
|
11481
11535
|
state: e
|
|
@@ -11483,7 +11537,7 @@ function f4(t) {
|
|
|
11483
11537
|
a.key
|
|
11484
11538
|
)) }, o.key)) }),
|
|
11485
11539
|
/* @__PURE__ */ b.jsx(hi, { type: "tbody", children: Array.from(r.body.childNodes).map((o) => /* @__PURE__ */ b.jsx(
|
|
11486
|
-
|
|
11540
|
+
Mh,
|
|
11487
11541
|
{
|
|
11488
11542
|
item: o,
|
|
11489
11543
|
state: e,
|
|
@@ -11491,7 +11545,7 @@ function f4(t) {
|
|
|
11491
11545
|
showLines: r.body.props.showLines,
|
|
11492
11546
|
onClick: o.props.onClick,
|
|
11493
11547
|
children: Array.from(r.getChildren(o.key)).map((a) => /* @__PURE__ */ b.jsx(
|
|
11494
|
-
|
|
11548
|
+
Ih,
|
|
11495
11549
|
{
|
|
11496
11550
|
cell: a,
|
|
11497
11551
|
state: e,
|
|
@@ -11505,7 +11559,7 @@ function f4(t) {
|
|
|
11505
11559
|
)) })
|
|
11506
11560
|
] });
|
|
11507
11561
|
}
|
|
11508
|
-
const
|
|
11562
|
+
const v4 = ({
|
|
11509
11563
|
children: t,
|
|
11510
11564
|
maxWidth: e,
|
|
11511
11565
|
singleLine: n = !0,
|
|
@@ -11528,22 +11582,22 @@ const p4 = ({
|
|
|
11528
11582
|
children: t
|
|
11529
11583
|
}
|
|
11530
11584
|
);
|
|
11531
|
-
function
|
|
11585
|
+
function Fh({ children: t, arrow: e, ...n }) {
|
|
11532
11586
|
const { style: r, className: l } = Ae();
|
|
11533
11587
|
return /* @__PURE__ */ b.jsxs(
|
|
11534
|
-
|
|
11588
|
+
wh,
|
|
11535
11589
|
{
|
|
11536
11590
|
...n,
|
|
11537
11591
|
className: U("proton__Tooltip", "proton-Dialog", l),
|
|
11538
11592
|
style: r,
|
|
11539
11593
|
children: [
|
|
11540
|
-
e && /* @__PURE__ */ b.jsx(
|
|
11594
|
+
e && /* @__PURE__ */ b.jsx(ph, { className: U("proton__TooltipArrow", l), children: /* @__PURE__ */ b.jsx("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ b.jsx("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
11541
11595
|
t
|
|
11542
11596
|
]
|
|
11543
11597
|
}
|
|
11544
11598
|
);
|
|
11545
11599
|
}
|
|
11546
|
-
function
|
|
11600
|
+
function _h({
|
|
11547
11601
|
children: t,
|
|
11548
11602
|
// trigger props
|
|
11549
11603
|
delay: e = 500,
|
|
@@ -11558,7 +11612,7 @@ function Fh({
|
|
|
11558
11612
|
}) {
|
|
11559
11613
|
const [s, c] = z(!1), d = M(!1), f = M(!1);
|
|
11560
11614
|
return a === "" ? null : /* @__PURE__ */ b.jsxs(
|
|
11561
|
-
|
|
11615
|
+
Sh,
|
|
11562
11616
|
{
|
|
11563
11617
|
delay: e,
|
|
11564
11618
|
closeDelay: n,
|
|
@@ -11580,18 +11634,18 @@ function Fh({
|
|
|
11580
11634
|
children: t
|
|
11581
11635
|
}
|
|
11582
11636
|
),
|
|
11583
|
-
/* @__PURE__ */ b.jsx(
|
|
11637
|
+
/* @__PURE__ */ b.jsx(Fh, { ...u, children: a })
|
|
11584
11638
|
]
|
|
11585
11639
|
}
|
|
11586
11640
|
);
|
|
11587
11641
|
}
|
|
11588
|
-
const
|
|
11642
|
+
const h4 = ({
|
|
11589
11643
|
to: t,
|
|
11590
11644
|
children: e,
|
|
11591
11645
|
tooltipProps: n,
|
|
11592
11646
|
"data-testid": r
|
|
11593
11647
|
}) => {
|
|
11594
|
-
const { className: l } = Ae(), i = n ? /* @__PURE__ */ b.jsx(
|
|
11648
|
+
const { className: l } = Ae(), i = n ? /* @__PURE__ */ b.jsx(_h, { delay: 50, closeDelay: 75, ...n, children: e }) : e;
|
|
11595
11649
|
if (t) {
|
|
11596
11650
|
const o = Nr(t);
|
|
11597
11651
|
return /* @__PURE__ */ b.jsx(
|
|
@@ -11628,8 +11682,36 @@ const v4 = ({
|
|
|
11628
11682
|
children: i
|
|
11629
11683
|
}
|
|
11630
11684
|
);
|
|
11685
|
+
}, m4 = ({
|
|
11686
|
+
width: t = "100%",
|
|
11687
|
+
height: e = "1.5rem",
|
|
11688
|
+
borderRadius: n = "4px"
|
|
11689
|
+
}) => {
|
|
11690
|
+
const { theme: r, palette: l } = Ae(), i = {
|
|
11691
|
+
"--tombstone-custom-background": l.PRIMARY.PRIMARY_MEDIUM,
|
|
11692
|
+
"--tombstone-custom-primary": El(
|
|
11693
|
+
l.PRIMARY.PRIMARY_DARK,
|
|
11694
|
+
0.9
|
|
11695
|
+
),
|
|
11696
|
+
"--tombstone-custom-secondary": El(
|
|
11697
|
+
l.SECONDARY.SECONDARY_DARK,
|
|
11698
|
+
0.7
|
|
11699
|
+
)
|
|
11700
|
+
};
|
|
11701
|
+
return /* @__PURE__ */ b.jsx(
|
|
11702
|
+
"div",
|
|
11703
|
+
{
|
|
11704
|
+
className: `tombstone ${r}`,
|
|
11705
|
+
style: {
|
|
11706
|
+
...i,
|
|
11707
|
+
width: t,
|
|
11708
|
+
height: e,
|
|
11709
|
+
borderRadius: n
|
|
11710
|
+
}
|
|
11711
|
+
}
|
|
11712
|
+
);
|
|
11631
11713
|
};
|
|
11632
|
-
function
|
|
11714
|
+
function Rh({
|
|
11633
11715
|
amplitude: t,
|
|
11634
11716
|
isDisabled: e,
|
|
11635
11717
|
isPlayed: n,
|
|
@@ -11697,8 +11779,8 @@ function _h({
|
|
|
11697
11779
|
}
|
|
11698
11780
|
);
|
|
11699
11781
|
}
|
|
11700
|
-
const
|
|
11701
|
-
function
|
|
11782
|
+
const Nh = jh(100);
|
|
11783
|
+
function b4({
|
|
11702
11784
|
data: t,
|
|
11703
11785
|
resolution: e = 2,
|
|
11704
11786
|
startDuration: n,
|
|
@@ -11712,11 +11794,11 @@ function h4({
|
|
|
11712
11794
|
"data-testid": c
|
|
11713
11795
|
}) {
|
|
11714
11796
|
var S;
|
|
11715
|
-
const { className: d } = Ae(), f = M(null), [p, m] = z([]), [y, g] = z(null), [C, x] = z(!1), [$, T] = z(!1), w = t ||
|
|
11797
|
+
const { className: d } = Ae(), f = M(null), [p, m] = z([]), [y, g] = z(null), [C, x] = z(!1), [$, T] = z(!1), w = t || Nh, P = e;
|
|
11716
11798
|
L(() => {
|
|
11717
11799
|
if (!f.current) return;
|
|
11718
11800
|
const F = (I) => {
|
|
11719
|
-
const re = Math.floor(I / (e + P)), de =
|
|
11801
|
+
const re = Math.floor(I / (e + P)), de = Oh(w, re);
|
|
11720
11802
|
m(de);
|
|
11721
11803
|
}, k = f.current.clientWidth;
|
|
11722
11804
|
F(k);
|
|
@@ -11740,7 +11822,7 @@ function h4({
|
|
|
11740
11822
|
var re;
|
|
11741
11823
|
const V = F / o * 100;
|
|
11742
11824
|
return (k === "start" ? Math.floor(V / 100 * p.length) : Math.ceil(V / 100 * p.length)) * B / ((re = f.current) == null ? void 0 : re.clientWidth) * 100;
|
|
11743
|
-
}, D = (S = f.current) == null ? void 0 : S.clientWidth, N = H(() => a && u ? u : t ? null :
|
|
11825
|
+
}, D = (S = f.current) == null ? void 0 : S.clientWidth, N = H(() => a && u ? u : t ? null : "Waveform Unavailable", [a, u, t]);
|
|
11744
11826
|
return /* @__PURE__ */ b.jsxs("div", { className: U("proton-Waveform", d), "data-testid": c, children: [
|
|
11745
11827
|
i && /* @__PURE__ */ b.jsx(mi, { direction: "left", seconds: l }),
|
|
11746
11828
|
/* @__PURE__ */ b.jsxs(
|
|
@@ -11780,7 +11862,7 @@ function h4({
|
|
|
11780
11862
|
p.map((F, k) => {
|
|
11781
11863
|
const V = k / p.length * o, I = n !== void 0 && r !== void 0 && (V < n || V > r), re = l === 0 ? !1 : V <= l, de = y !== null && V <= y;
|
|
11782
11864
|
return /* @__PURE__ */ b.jsx(
|
|
11783
|
-
|
|
11865
|
+
Rh,
|
|
11784
11866
|
{
|
|
11785
11867
|
amplitude: F,
|
|
11786
11868
|
isDisabled: a || I,
|
|
@@ -11822,116 +11904,34 @@ function mi({
|
|
|
11822
11904
|
"proton-Waveform__timestamp",
|
|
11823
11905
|
`proton-Waveform__timestamp--${t}`
|
|
11824
11906
|
),
|
|
11825
|
-
children:
|
|
11907
|
+
children: Lh(e)
|
|
11826
11908
|
}
|
|
11827
11909
|
);
|
|
11828
11910
|
}
|
|
11829
|
-
function
|
|
11911
|
+
function Lh(t) {
|
|
11830
11912
|
const e = Math.floor(t / 60), n = Math.floor(t % 60);
|
|
11831
11913
|
return `${e}:${n < 10 ? "0" : ""}${n.toFixed(0)}`;
|
|
11832
11914
|
}
|
|
11833
|
-
function
|
|
11915
|
+
function Oh(t, e) {
|
|
11834
11916
|
const n = t.length, r = n / e, l = new Array(e).fill(0).map((i, o) => {
|
|
11835
11917
|
const a = o * r, u = Math.floor(a), s = Math.min(u + 1, n - 1), c = a - u;
|
|
11836
11918
|
return t[u] * (1 - c) + t[s] * c;
|
|
11837
11919
|
});
|
|
11838
|
-
return
|
|
11920
|
+
return zh(l);
|
|
11839
11921
|
}
|
|
11840
|
-
function
|
|
11922
|
+
function zh(t) {
|
|
11841
11923
|
const e = Math.min(...t), n = Math.max(...t);
|
|
11842
11924
|
return t.map((r) => {
|
|
11843
11925
|
const l = (r - e) / (n - e);
|
|
11844
11926
|
return Math.max(l * 0.8 + 0.1, 0.1);
|
|
11845
11927
|
});
|
|
11846
11928
|
}
|
|
11847
|
-
function
|
|
11929
|
+
function jh(t) {
|
|
11848
11930
|
return Array.from({ length: t }, (e, n) => {
|
|
11849
11931
|
const l = n / (t - 1) * 6 * 2 * Math.PI - Math.PI / 2;
|
|
11850
11932
|
return Math.sin(l) * 0.5 + 0.5;
|
|
11851
11933
|
});
|
|
11852
11934
|
}
|
|
11853
|
-
const m4 = ({
|
|
11854
|
-
width: t = "100%",
|
|
11855
|
-
height: e = "1.5rem",
|
|
11856
|
-
borderRadius: n = "4px"
|
|
11857
|
-
}) => {
|
|
11858
|
-
const { theme: r, palette: l } = Ae(), i = {
|
|
11859
|
-
"--tombstone-custom-background": l.PRIMARY.PRIMARY_MEDIUM,
|
|
11860
|
-
"--tombstone-custom-primary": El(
|
|
11861
|
-
l.PRIMARY.PRIMARY_DARK,
|
|
11862
|
-
0.9
|
|
11863
|
-
),
|
|
11864
|
-
"--tombstone-custom-secondary": El(
|
|
11865
|
-
l.SECONDARY.SECONDARY_DARK,
|
|
11866
|
-
0.7
|
|
11867
|
-
)
|
|
11868
|
-
};
|
|
11869
|
-
return /* @__PURE__ */ b.jsx(
|
|
11870
|
-
"div",
|
|
11871
|
-
{
|
|
11872
|
-
className: `tombstone ${r}`,
|
|
11873
|
-
style: {
|
|
11874
|
-
...i,
|
|
11875
|
-
width: t,
|
|
11876
|
-
height: e,
|
|
11877
|
-
borderRadius: n
|
|
11878
|
-
}
|
|
11879
|
-
}
|
|
11880
|
-
);
|
|
11881
|
-
}, jh = (t) => {
|
|
11882
|
-
const [e, n, r] = t, l = e + n + r;
|
|
11883
|
-
if (l < 65) {
|
|
11884
|
-
const i = l / 100;
|
|
11885
|
-
return `rgba(255, 255, 255, ${Math.max(0.14, 0.36 - i)})`;
|
|
11886
|
-
}
|
|
11887
|
-
return "";
|
|
11888
|
-
};
|
|
11889
|
-
function b4({
|
|
11890
|
-
image: t,
|
|
11891
|
-
imageUrl: e = "",
|
|
11892
|
-
onLoad: n
|
|
11893
|
-
}) {
|
|
11894
|
-
const { palette: r } = Ae(), l = Rc(r.BASE_COLOR), i = jh(l);
|
|
11895
|
-
return /* @__PURE__ */ b.jsxs(
|
|
11896
|
-
"div",
|
|
11897
|
-
{
|
|
11898
|
-
id: "background",
|
|
11899
|
-
"aria-label": "Background overlay",
|
|
11900
|
-
role: "dialog",
|
|
11901
|
-
"aria-modal": "true",
|
|
11902
|
-
className: U(
|
|
11903
|
-
"proton-ScreenOverlay__background",
|
|
11904
|
-
"proton-ScreenOverlay__overlay"
|
|
11905
|
-
),
|
|
11906
|
-
children: [
|
|
11907
|
-
t ? /* @__PURE__ */ b.jsx("div", { "aria-hidden": "true", children: t }) : /* @__PURE__ */ b.jsx(
|
|
11908
|
-
"img",
|
|
11909
|
-
{
|
|
11910
|
-
alt: "",
|
|
11911
|
-
src: e,
|
|
11912
|
-
className: "proton-ScreenOverlay__image",
|
|
11913
|
-
onLoad: (o) => n == null ? void 0 : n(o.currentTarget),
|
|
11914
|
-
"aria-hidden": "true"
|
|
11915
|
-
}
|
|
11916
|
-
),
|
|
11917
|
-
/* @__PURE__ */ b.jsx(
|
|
11918
|
-
"div",
|
|
11919
|
-
{
|
|
11920
|
-
className: "proton-ScreenOverlay__blur",
|
|
11921
|
-
"aria-hidden": "true",
|
|
11922
|
-
style: {
|
|
11923
|
-
background: i,
|
|
11924
|
-
// NOTE: We were receiving reports of backdrop filter not working on Safari. Explicitly defining the filter here instead works.
|
|
11925
|
-
WebkitBackdropFilter: "blur(24px) brightness(75%)",
|
|
11926
|
-
backdropFilter: "blur(24px) brightness(75%)",
|
|
11927
|
-
filter: "brightness(50%)"
|
|
11928
|
-
}
|
|
11929
|
-
}
|
|
11930
|
-
)
|
|
11931
|
-
]
|
|
11932
|
-
}
|
|
11933
|
-
);
|
|
11934
|
-
}
|
|
11935
11935
|
export {
|
|
11936
11936
|
Ws as ActionMenu,
|
|
11937
11937
|
Qh as Badge,
|
|
@@ -11940,33 +11940,33 @@ export {
|
|
|
11940
11940
|
Gs as Button,
|
|
11941
11941
|
Tv as ButtonGroup,
|
|
11942
11942
|
$4 as COLORS,
|
|
11943
|
-
|
|
11944
|
-
|
|
11943
|
+
c4 as Cell,
|
|
11944
|
+
s4 as Column,
|
|
11945
11945
|
e4 as Dialog,
|
|
11946
11946
|
t4 as Icon,
|
|
11947
|
-
|
|
11948
|
-
|
|
11947
|
+
n4 as ImageBackground,
|
|
11948
|
+
Mv as Input,
|
|
11949
11949
|
il as Popover,
|
|
11950
|
-
|
|
11951
|
-
|
|
11952
|
-
|
|
11950
|
+
i4 as ResponsiveMenuTrigger,
|
|
11951
|
+
a4 as ResponsiveSelect,
|
|
11952
|
+
d4 as Row,
|
|
11953
11953
|
mv as ScreenOverlay,
|
|
11954
|
-
|
|
11954
|
+
r4 as SearchInput,
|
|
11955
11955
|
qh as Section,
|
|
11956
|
-
|
|
11957
|
-
|
|
11956
|
+
o4 as Select,
|
|
11957
|
+
u4 as Switch,
|
|
11958
11958
|
Pt as THEMES,
|
|
11959
|
-
|
|
11960
|
-
|
|
11959
|
+
p4 as Table,
|
|
11960
|
+
f4 as TableBody,
|
|
11961
11961
|
Xh as TableHeader,
|
|
11962
|
-
|
|
11963
|
-
|
|
11962
|
+
v4 as TextEllipsis,
|
|
11963
|
+
h4 as TextEmphasis,
|
|
11964
11964
|
Zh as ThemeProvider,
|
|
11965
11965
|
m4 as Tombstone,
|
|
11966
|
-
|
|
11967
|
-
|
|
11968
|
-
|
|
11969
|
-
|
|
11966
|
+
Fh as Tooltip,
|
|
11967
|
+
_h as TooltipTrigger,
|
|
11968
|
+
b4 as Waveform,
|
|
11969
|
+
l4 as usePopoverTrigger,
|
|
11970
11970
|
Ae as useTheme
|
|
11971
11971
|
};
|
|
11972
11972
|
//# sourceMappingURL=index.es.js.map
|