@protonradio/proton-ui 0.7.10 → 0.7.11
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 +8 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +14 -4
- package/dist/index.es.js +237 -237
- 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
|
@@ -4,7 +4,7 @@ import { e as W, i as Nr, h as yi, a as _c, D as en, t as El } from "./utils-Bc2
|
|
|
4
4
|
import { THEMES as Pt, BREAKPOINTS as $i } from "./constants.es.js";
|
|
5
5
|
import { transparentize as Gn, parseToRgba as Rc } from "color2k";
|
|
6
6
|
import { G as ge, S as tn, W as nn, D as rn } from "./colors-Dwh4VIMR.mjs";
|
|
7
|
-
import { c as
|
|
7
|
+
import { c as $4 } from "./colors-Dwh4VIMR.mjs";
|
|
8
8
|
var cr = { exports: {} }, Mt = {};
|
|
9
9
|
/**
|
|
10
10
|
* @license React
|
|
@@ -158,7 +158,7 @@ function Lc() {
|
|
|
158
158
|
T++;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function ke() {
|
|
162
162
|
{
|
|
163
163
|
if (T--, T === 0) {
|
|
164
164
|
var h = {
|
|
@@ -278,7 +278,7 @@ function Lc() {
|
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
} finally {
|
|
281
|
-
vt = !1, Se.current = ee,
|
|
281
|
+
vt = !1, Se.current = ee, ke(), Error.prepareStackTrace = Z;
|
|
282
282
|
}
|
|
283
283
|
var gt = h ? h.displayName || h.name : "", lt = gt ? pt(gt) : "";
|
|
284
284
|
return typeof h == "function" && ht.set(h, lt), lt;
|
|
@@ -4127,17 +4127,17 @@ function tp(t) {
|
|
|
4127
4127
|
function jo(t) {
|
|
4128
4128
|
let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: l = !1, shouldFocusWrap: i = !1, disallowEmptySelection: o = !1, disallowSelectAll: a = !1, selectOnFocus: u = e.selectionBehavior === "replace", disallowTypeAhead: s = !1, shouldUseVirtualFocus: c, allowsTabNavigation: d = !1, isVirtualized: f, scrollRef: p = r, linkBehavior: m = "action" } = t, { direction: y } = He(), g = Yt(), C = (E) => {
|
|
4129
4129
|
if (E.altKey && E.key === "Tab" && E.preventDefault(), !r.current.contains(E.target)) return;
|
|
4130
|
-
const w = (O,
|
|
4130
|
+
const w = (O, ke) => {
|
|
4131
4131
|
if (O != null) {
|
|
4132
4132
|
if (e.isLink(O) && m === "selection" && u && !wr(E)) {
|
|
4133
4133
|
Fc(() => {
|
|
4134
|
-
e.setFocusedKey(O,
|
|
4134
|
+
e.setFocusedKey(O, ke);
|
|
4135
4135
|
});
|
|
4136
4136
|
let Se = p.current.querySelector(`[data-key="${CSS.escape(O.toString())}"]`), Ge = e.getItemProps(O);
|
|
4137
4137
|
g.open(Se, E, Ge.href, Ge.routerOptions);
|
|
4138
4138
|
return;
|
|
4139
4139
|
}
|
|
4140
|
-
if (e.setFocusedKey(O,
|
|
4140
|
+
if (e.setFocusedKey(O, ke), e.isLink(O) && m === "override") return;
|
|
4141
4141
|
E.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(O) : u && !wr(E) && e.replaceSelection(O);
|
|
4142
4142
|
}
|
|
4143
4143
|
};
|
|
@@ -4208,11 +4208,11 @@ function jo(t) {
|
|
|
4208
4208
|
else {
|
|
4209
4209
|
let O = $e(r.current, {
|
|
4210
4210
|
tabbable: !0
|
|
4211
|
-
}),
|
|
4211
|
+
}), ke, Se;
|
|
4212
4212
|
do
|
|
4213
|
-
Se = O.lastChild(), Se && (
|
|
4213
|
+
Se = O.lastChild(), Se && (ke = Se);
|
|
4214
4214
|
while (Se);
|
|
4215
|
-
|
|
4215
|
+
ke && !ke.contains(document.activeElement) && Le(ke);
|
|
4216
4216
|
}
|
|
4217
4217
|
break;
|
|
4218
4218
|
}
|
|
@@ -4663,7 +4663,7 @@ Uo.getCollectionNode = function* (e) {
|
|
|
4663
4663
|
}
|
|
4664
4664
|
};
|
|
4665
4665
|
};
|
|
4666
|
-
let
|
|
4666
|
+
let qh = Uo;
|
|
4667
4667
|
class lp {
|
|
4668
4668
|
build(e, n) {
|
|
4669
4669
|
return this.context = n, ei(() => this.iterateCollection(e));
|
|
@@ -5250,7 +5250,7 @@ function Ka(t, e, n) {
|
|
|
5250
5250
|
// is slightly different from other collections because
|
|
5251
5251
|
// actions are performed on key down rather than key up.
|
|
5252
5252
|
linkBehavior: "none"
|
|
5253
|
-
}), { pressProps: O, isPressed:
|
|
5253
|
+
}), { pressProps: O, isPressed: ke } = ze({
|
|
5254
5254
|
onPressStart: xe,
|
|
5255
5255
|
onPress: c,
|
|
5256
5256
|
onPressUp: Be,
|
|
@@ -5310,7 +5310,7 @@ function Ka(t, e, n) {
|
|
|
5310
5310
|
},
|
|
5311
5311
|
isFocused: Ue,
|
|
5312
5312
|
isSelected: B,
|
|
5313
|
-
isPressed:
|
|
5313
|
+
isPressed: ke,
|
|
5314
5314
|
isDisabled: R
|
|
5315
5315
|
};
|
|
5316
5316
|
}
|
|
@@ -7784,9 +7784,9 @@ class oi {
|
|
|
7784
7784
|
this.lastKey = (i = r == null ? void 0 : r.key) !== null && i !== void 0 ? i : null;
|
|
7785
7785
|
}
|
|
7786
7786
|
}
|
|
7787
|
-
class
|
|
7787
|
+
class Te extends Set {
|
|
7788
7788
|
constructor(e, n, r) {
|
|
7789
|
-
super(e), e instanceof
|
|
7789
|
+
super(e), e instanceof Te ? (this.anchorKey = n ?? e.anchorKey, this.currentKey = r ?? e.currentKey) : (this.anchorKey = n, this.currentKey = r);
|
|
7790
7790
|
}
|
|
7791
7791
|
}
|
|
7792
7792
|
function Gp(t, e) {
|
|
@@ -7798,7 +7798,7 @@ function Gp(t, e) {
|
|
|
7798
7798
|
function rl(t) {
|
|
7799
7799
|
let { selectionMode: e = "none", disallowEmptySelection: n, allowDuplicateSelectionEvents: r, selectionBehavior: l = "toggle", disabledBehavior: i = "all" } = t, o = M(!1), [, a] = z(!1), u = M(null), s = M(null), [, c] = z(null), d = V(() => ai(t.selectedKeys), [
|
|
7800
7800
|
t.selectedKeys
|
|
7801
|
-
]), f = V(() => ai(t.defaultSelectedKeys, new
|
|
7801
|
+
]), f = V(() => ai(t.defaultSelectedKeys, new Te()), [
|
|
7802
7802
|
t.defaultSelectedKeys
|
|
7803
7803
|
]), [p, m] = rt(d, f, t.onSelectionChange), y = V(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
7804
7804
|
t.disabledKeys
|
|
@@ -7838,7 +7838,7 @@ function rl(t) {
|
|
|
7838
7838
|
};
|
|
7839
7839
|
}
|
|
7840
7840
|
function ai(t, e) {
|
|
7841
|
-
return t ? t === "all" ? "all" : new
|
|
7841
|
+
return t ? t === "all" ? "all" : new Te(t) : e;
|
|
7842
7842
|
}
|
|
7843
7843
|
class ll {
|
|
7844
7844
|
/**
|
|
@@ -7961,14 +7961,14 @@ class ll {
|
|
|
7961
7961
|
}
|
|
7962
7962
|
e = this.getKey(e);
|
|
7963
7963
|
let n;
|
|
7964
|
-
if (this.state.selectedKeys === "all") n = new
|
|
7964
|
+
if (this.state.selectedKeys === "all") n = new Te([
|
|
7965
7965
|
e
|
|
7966
7966
|
], e, e);
|
|
7967
7967
|
else {
|
|
7968
7968
|
let i = this.state.selectedKeys;
|
|
7969
7969
|
var r;
|
|
7970
7970
|
let o = (r = i.anchorKey) !== null && r !== void 0 ? r : e;
|
|
7971
|
-
n = new
|
|
7971
|
+
n = new Te(i, o, e);
|
|
7972
7972
|
var l;
|
|
7973
7973
|
for (let a of this.getKeyRange(o, (l = i.currentKey) !== null && l !== void 0 ? l : e)) n.delete(a);
|
|
7974
7974
|
for (let a of this.getKeyRange(e, o)) this.canSelectItem(a) && n.add(a);
|
|
@@ -8006,7 +8006,7 @@ class ll {
|
|
|
8006
8006
|
return;
|
|
8007
8007
|
}
|
|
8008
8008
|
if (e = this.getKey(e), e == null) return;
|
|
8009
|
-
let n = new
|
|
8009
|
+
let n = new Te(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
|
|
8010
8010
|
n.has(e) ? n.delete(e) : this.canSelectItem(e) && (n.add(e), n.anchorKey = e, n.currentKey = e), !(this.disallowEmptySelection && n.size === 0) && this.state.setSelectedKeys(n);
|
|
8011
8011
|
}
|
|
8012
8012
|
/**
|
|
@@ -8014,9 +8014,9 @@ class ll {
|
|
|
8014
8014
|
*/
|
|
8015
8015
|
replaceSelection(e) {
|
|
8016
8016
|
if (this.selectionMode === "none" || (e = this.getKey(e), e == null)) return;
|
|
8017
|
-
let n = this.canSelectItem(e) ? new
|
|
8017
|
+
let n = this.canSelectItem(e) ? new Te([
|
|
8018
8018
|
e
|
|
8019
|
-
], e, e) : new
|
|
8019
|
+
], e, e) : new Te();
|
|
8020
8020
|
this.state.setSelectedKeys(n);
|
|
8021
8021
|
}
|
|
8022
8022
|
/**
|
|
@@ -8024,7 +8024,7 @@ class ll {
|
|
|
8024
8024
|
*/
|
|
8025
8025
|
setSelectedKeys(e) {
|
|
8026
8026
|
if (this.selectionMode === "none") return;
|
|
8027
|
-
let n = new
|
|
8027
|
+
let n = new Te();
|
|
8028
8028
|
for (let r of e)
|
|
8029
8029
|
if (r = this.getKey(r), r != null && (n.add(r), this.selectionMode === "single"))
|
|
8030
8030
|
break;
|
|
@@ -8052,7 +8052,7 @@ class ll {
|
|
|
8052
8052
|
* Removes all keys from the selection.
|
|
8053
8053
|
*/
|
|
8054
8054
|
clearSelection() {
|
|
8055
|
-
!this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new
|
|
8055
|
+
!this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new Te());
|
|
8056
8056
|
}
|
|
8057
8057
|
/**
|
|
8058
8058
|
* Toggles between select all and an empty selection.
|
|
@@ -8700,7 +8700,7 @@ Ls.getCollectionNode = function* (e, n) {
|
|
|
8700
8700
|
}), yield* i;
|
|
8701
8701
|
}
|
|
8702
8702
|
};
|
|
8703
|
-
let
|
|
8703
|
+
let Xh = Ls;
|
|
8704
8704
|
function Os(t) {
|
|
8705
8705
|
return null;
|
|
8706
8706
|
}
|
|
@@ -8730,7 +8730,7 @@ Os.getCollectionNode = function* (e) {
|
|
|
8730
8730
|
}
|
|
8731
8731
|
};
|
|
8732
8732
|
};
|
|
8733
|
-
let
|
|
8733
|
+
let av = Os;
|
|
8734
8734
|
function zs(t) {
|
|
8735
8735
|
return null;
|
|
8736
8736
|
}
|
|
@@ -8764,7 +8764,7 @@ zs.getCollectionNode = function* (e, n) {
|
|
|
8764
8764
|
};
|
|
8765
8765
|
s(n);
|
|
8766
8766
|
};
|
|
8767
|
-
let
|
|
8767
|
+
let uv = zs;
|
|
8768
8768
|
function Br(t) {
|
|
8769
8769
|
return null;
|
|
8770
8770
|
}
|
|
@@ -8823,7 +8823,7 @@ Br.getCollectionNode = function* (e, n) {
|
|
|
8823
8823
|
}
|
|
8824
8824
|
};
|
|
8825
8825
|
};
|
|
8826
|
-
let
|
|
8826
|
+
let sv = Br;
|
|
8827
8827
|
function js(t) {
|
|
8828
8828
|
return null;
|
|
8829
8829
|
}
|
|
@@ -8838,11 +8838,11 @@ js.getCollectionNode = function* (e) {
|
|
|
8838
8838
|
hasChildNodes: !1
|
|
8839
8839
|
};
|
|
8840
8840
|
};
|
|
8841
|
-
let
|
|
8842
|
-
const
|
|
8843
|
-
let it = {},
|
|
8841
|
+
let cv = js;
|
|
8842
|
+
const dv = 1500, si = 500;
|
|
8843
|
+
let it = {}, fv = 0, Nt = !1, Re = null, ot = null;
|
|
8844
8844
|
function Vs(t = {}) {
|
|
8845
|
-
let { delay: e =
|
|
8845
|
+
let { delay: e = dv, closeDelay: n = si } = t, { isOpen: r, open: l, close: i } = Rn(t), o = V(() => `${++fv}`, []), a = M(void 0), u = M(i), s = () => {
|
|
8846
8846
|
it[o] = f;
|
|
8847
8847
|
}, c = () => {
|
|
8848
8848
|
for (let m in it) m !== o && (it[m](!0), delete it[m]);
|
|
@@ -8875,7 +8875,7 @@ function Vs(t = {}) {
|
|
|
8875
8875
|
close: f
|
|
8876
8876
|
};
|
|
8877
8877
|
}
|
|
8878
|
-
class
|
|
8878
|
+
class pv {
|
|
8879
8879
|
*[Symbol.iterator]() {
|
|
8880
8880
|
yield* this.iterable;
|
|
8881
8881
|
}
|
|
@@ -8923,7 +8923,7 @@ class fv {
|
|
|
8923
8923
|
function Hs(t) {
|
|
8924
8924
|
let { onExpandedChange: e } = t, [n, r] = rt(t.expandedKeys ? new Set(t.expandedKeys) : void 0, t.defaultExpandedKeys ? new Set(t.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e), l = rl(t), i = V(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
8925
8925
|
t.disabledKeys
|
|
8926
|
-
]), o = Zr(t, X((u) => new
|
|
8926
|
+
]), o = Zr(t, X((u) => new pv(u, {
|
|
8927
8927
|
expandedKeys: n
|
|
8928
8928
|
}), [
|
|
8929
8929
|
n
|
|
@@ -8938,17 +8938,17 @@ function Hs(t) {
|
|
|
8938
8938
|
expandedKeys: n,
|
|
8939
8939
|
disabledKeys: i,
|
|
8940
8940
|
toggleKey: (u) => {
|
|
8941
|
-
r(
|
|
8941
|
+
r(vv(n, u));
|
|
8942
8942
|
},
|
|
8943
8943
|
setExpandedKeys: r,
|
|
8944
8944
|
selectionManager: new ll(o, l)
|
|
8945
8945
|
};
|
|
8946
8946
|
}
|
|
8947
|
-
function
|
|
8947
|
+
function vv(t, e) {
|
|
8948
8948
|
let n = new Set(t);
|
|
8949
8949
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
8950
8950
|
}
|
|
8951
|
-
function
|
|
8951
|
+
function hv(t = !0) {
|
|
8952
8952
|
Kc(() => {
|
|
8953
8953
|
if (!t) return;
|
|
8954
8954
|
const e = window.getComputedStyle(document.body).overflow;
|
|
@@ -8957,7 +8957,7 @@ function vv(t = !0) {
|
|
|
8957
8957
|
};
|
|
8958
8958
|
}, [t]);
|
|
8959
8959
|
}
|
|
8960
|
-
function
|
|
8960
|
+
function mv({
|
|
8961
8961
|
fadeIn: t = !1,
|
|
8962
8962
|
onClose: e,
|
|
8963
8963
|
children: n
|
|
@@ -8991,8 +8991,8 @@ function hv({
|
|
|
8991
8991
|
}
|
|
8992
8992
|
);
|
|
8993
8993
|
}
|
|
8994
|
-
const
|
|
8995
|
-
const { className: e, style: n } =
|
|
8994
|
+
const bv = ({ children: t }) => {
|
|
8995
|
+
const { className: e, style: n } = Ae(), r = (() => {
|
|
8996
8996
|
let l = document.getElementById("action-menus-root");
|
|
8997
8997
|
return l || (l = document.createElement("div"), l.id = "action-menus-root", document.body.appendChild(l)), l.className = e, Object.entries(n).forEach(([i, o]) => {
|
|
8998
8998
|
l.style.setProperty(i, o);
|
|
@@ -9012,8 +9012,8 @@ const mv = ({ children: t }) => {
|
|
|
9012
9012
|
onClose: s,
|
|
9013
9013
|
"data-testid": c
|
|
9014
9014
|
}) => {
|
|
9015
|
-
|
|
9016
|
-
const { className: d, theme: f } =
|
|
9015
|
+
hv(t);
|
|
9016
|
+
const { className: d, theme: f } = Ae(), [p, m] = z(!1), [y, g] = z(0), C = M(null), S = M(null), $ = M(window.location.pathname), D = o && o.length > 0, P = () => {
|
|
9017
9017
|
m(!0), g(0), setTimeout(() => {
|
|
9018
9018
|
s == null || s(), m(!1);
|
|
9019
9019
|
}, 300);
|
|
@@ -9048,14 +9048,14 @@ const mv = ({ children: t }) => {
|
|
|
9048
9048
|
a && ($.current && $.current !== location.pathname && P(), $.current = location.pathname);
|
|
9049
9049
|
}, [p, a]);
|
|
9050
9050
|
const v = C.current ? C.current.getBoundingClientRect().height > window.innerHeight : !1, B = l || D || i;
|
|
9051
|
-
return t ? /* @__PURE__ */ b.jsx(
|
|
9051
|
+
return t ? /* @__PURE__ */ b.jsx(bv, { children: /* @__PURE__ */ b.jsx(
|
|
9052
9052
|
"div",
|
|
9053
9053
|
{
|
|
9054
9054
|
className: "proton-ActionMenu__background-wrapper",
|
|
9055
9055
|
style: {
|
|
9056
9056
|
opacity: p ? 0 : 1
|
|
9057
9057
|
},
|
|
9058
|
-
children: /* @__PURE__ */ b.jsx(
|
|
9058
|
+
children: /* @__PURE__ */ b.jsx(mv, { fadeIn: !0, onClose: P, children: /* @__PURE__ */ b.jsx(
|
|
9059
9059
|
"div",
|
|
9060
9060
|
{
|
|
9061
9061
|
"data-testid": c || "ActionMenu-wrapper",
|
|
@@ -9079,7 +9079,7 @@ const mv = ({ children: t }) => {
|
|
|
9079
9079
|
e === "none" && "proton-ActionMenu__list--disabled"
|
|
9080
9080
|
),
|
|
9081
9081
|
children: Array.from(k.collection).map((E) => /* @__PURE__ */ b.jsx(
|
|
9082
|
-
|
|
9082
|
+
gv,
|
|
9083
9083
|
{
|
|
9084
9084
|
item: E,
|
|
9085
9085
|
state: k,
|
|
@@ -9112,7 +9112,7 @@ const mv = ({ children: t }) => {
|
|
|
9112
9112
|
) })
|
|
9113
9113
|
}
|
|
9114
9114
|
) }) : null;
|
|
9115
|
-
},
|
|
9115
|
+
}, gv = ({ to: t, state: e, item: n }) => {
|
|
9116
9116
|
const r = M(null), { menuItemProps: l } = Ka({ key: n.key }, e, r), i = t ? "a" : "div", o = t && Nr(t);
|
|
9117
9117
|
return /* @__PURE__ */ bi(
|
|
9118
9118
|
i,
|
|
@@ -9132,12 +9132,12 @@ const mv = ({ children: t }) => {
|
|
|
9132
9132
|
},
|
|
9133
9133
|
n.rendered
|
|
9134
9134
|
);
|
|
9135
|
-
}, Us = Q(void 0),
|
|
9135
|
+
}, Us = Q(void 0), Ae = () => {
|
|
9136
9136
|
const t = Y(Us);
|
|
9137
9137
|
if (t === void 0)
|
|
9138
9138
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
9139
9139
|
return t;
|
|
9140
|
-
},
|
|
9140
|
+
}, yv = {
|
|
9141
9141
|
[Pt.DARK]: "proton-ui__theme--dark",
|
|
9142
9142
|
[Pt.CUSTOM_DARK]: "proton-ui__theme--custom-dark",
|
|
9143
9143
|
[Pt.LIGHT]: "proton-ui__theme--light"
|
|
@@ -9146,8 +9146,8 @@ const mv = ({ children: t }) => {
|
|
|
9146
9146
|
children: e,
|
|
9147
9147
|
palette: n = _c
|
|
9148
9148
|
}) => {
|
|
9149
|
-
const r = M(null), l =
|
|
9150
|
-
() =>
|
|
9149
|
+
const r = M(null), l = yv[t], i = V(
|
|
9150
|
+
() => xv(n, t),
|
|
9151
9151
|
[n, t]
|
|
9152
9152
|
);
|
|
9153
9153
|
return L(() => {
|
|
@@ -9166,7 +9166,7 @@ const mv = ({ children: t }) => {
|
|
|
9166
9166
|
children: /* @__PURE__ */ b.jsx("div", { ref: r, children: e })
|
|
9167
9167
|
}
|
|
9168
9168
|
);
|
|
9169
|
-
},
|
|
9169
|
+
}, $v = (t) => ({
|
|
9170
9170
|
//brand colors
|
|
9171
9171
|
"--proton-color__primary": t.BRAND.PRIMARY,
|
|
9172
9172
|
"--proton-color__primary-light": t.BRAND.PRIMARY_LIGHT,
|
|
@@ -9188,8 +9188,8 @@ const mv = ({ children: t }) => {
|
|
|
9188
9188
|
"--proton-control__secondary-lightest": t.SECONDARY.SECONDARY_LIGHTEST,
|
|
9189
9189
|
"--proton-control__secondary-super-light": t.SECONDARY.SECONDARY_SUPER_LIGHT
|
|
9190
9190
|
});
|
|
9191
|
-
function
|
|
9192
|
-
const n = Gn(t.BRAND.PRIMARY, 0.6), r = Gn(t.BRAND.PRIMARY_LIGHT, 0.4), l =
|
|
9191
|
+
function xv(t, e) {
|
|
9192
|
+
const n = Gn(t.BRAND.PRIMARY, 0.6), r = Gn(t.BRAND.PRIMARY_LIGHT, 0.4), l = $v(t);
|
|
9193
9193
|
switch (e) {
|
|
9194
9194
|
case Pt.DARK:
|
|
9195
9195
|
return {
|
|
@@ -9236,7 +9236,7 @@ const Jh = {
|
|
|
9236
9236
|
warning: "warning",
|
|
9237
9237
|
danger: "danger"
|
|
9238
9238
|
}, Qh = ({ variant: t, children: e, ...n }) => {
|
|
9239
|
-
const { className: r } =
|
|
9239
|
+
const { className: r } = Ae();
|
|
9240
9240
|
return /* @__PURE__ */ b.jsx(
|
|
9241
9241
|
"div",
|
|
9242
9242
|
{
|
|
@@ -9318,7 +9318,7 @@ const Ys = {
|
|
|
9318
9318
|
d: "M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z"
|
|
9319
9319
|
}
|
|
9320
9320
|
) })
|
|
9321
|
-
},
|
|
9321
|
+
}, Ev = {
|
|
9322
9322
|
default: {
|
|
9323
9323
|
background: ge.GRAY_LIGHTEST,
|
|
9324
9324
|
title: ge.GRAY_DARK,
|
|
@@ -9343,7 +9343,7 @@ const Ys = {
|
|
|
9343
9343
|
content: rn.MEDIUM,
|
|
9344
9344
|
icon: rn.LIGHT
|
|
9345
9345
|
}
|
|
9346
|
-
},
|
|
9346
|
+
}, Sv = {
|
|
9347
9347
|
default: "default",
|
|
9348
9348
|
success: "success",
|
|
9349
9349
|
warning: "warning",
|
|
@@ -9380,7 +9380,7 @@ const Ys = {
|
|
|
9380
9380
|
}
|
|
9381
9381
|
)
|
|
9382
9382
|
}
|
|
9383
|
-
) }),
|
|
9383
|
+
) }), Cv = ({ children: t, ...e }) => {
|
|
9384
9384
|
const n = Y(Nn);
|
|
9385
9385
|
if (!n) throw new Error("BannerTitle must be used within a Banner");
|
|
9386
9386
|
return /* @__PURE__ */ b.jsx(
|
|
@@ -9395,7 +9395,7 @@ const Ys = {
|
|
|
9395
9395
|
children: t
|
|
9396
9396
|
}
|
|
9397
9397
|
);
|
|
9398
|
-
},
|
|
9398
|
+
}, wv = ({ children: t, ...e }) => {
|
|
9399
9399
|
const n = Y(Nn);
|
|
9400
9400
|
if (!n) throw new Error("BannerContent must be used within a Banner");
|
|
9401
9401
|
return /* @__PURE__ */ b.jsx(
|
|
@@ -9410,7 +9410,7 @@ const Ys = {
|
|
|
9410
9410
|
children: t
|
|
9411
9411
|
}
|
|
9412
9412
|
);
|
|
9413
|
-
},
|
|
9413
|
+
}, Pv = ({ children: t, icon: e, ...n }) => {
|
|
9414
9414
|
const r = Y(Nn);
|
|
9415
9415
|
if (!r) throw new Error("BannerIcon must be used within a Banner");
|
|
9416
9416
|
const i = Mc(e) ? e : e === !0 ? Ys[r] : t || null;
|
|
@@ -9423,17 +9423,17 @@ const Ys = {
|
|
|
9423
9423
|
children: i
|
|
9424
9424
|
}
|
|
9425
9425
|
) : null;
|
|
9426
|
-
},
|
|
9427
|
-
We.Title =
|
|
9428
|
-
We.Content =
|
|
9429
|
-
We.Icon =
|
|
9430
|
-
We.Action =
|
|
9431
|
-
We.Actions =
|
|
9432
|
-
We.colors =
|
|
9426
|
+
}, Dv = ({ children: t, ...e }) => /* @__PURE__ */ b.jsx(Gs, { ...e, children: t }), kv = ({ children: t }) => /* @__PURE__ */ b.jsx("div", { className: "proton-Banner__actions", children: t });
|
|
9427
|
+
We.Title = Cv;
|
|
9428
|
+
We.Content = wv;
|
|
9429
|
+
We.Icon = Pv;
|
|
9430
|
+
We.Action = Dv;
|
|
9431
|
+
We.Actions = kv;
|
|
9432
|
+
We.colors = Ev;
|
|
9433
9433
|
We.icons = Ys;
|
|
9434
|
-
We.variants =
|
|
9434
|
+
We.variants = Sv;
|
|
9435
9435
|
let qs = Q(null);
|
|
9436
|
-
function
|
|
9436
|
+
function Tv(t) {
|
|
9437
9437
|
let e = {
|
|
9438
9438
|
...t,
|
|
9439
9439
|
"data-testid": void 0
|
|
@@ -9449,7 +9449,7 @@ function kv(t) {
|
|
|
9449
9449
|
}
|
|
9450
9450
|
);
|
|
9451
9451
|
}
|
|
9452
|
-
|
|
9452
|
+
Tv.Option = function(e) {
|
|
9453
9453
|
let n = {
|
|
9454
9454
|
...e,
|
|
9455
9455
|
"data-testid": void 0
|
|
@@ -9477,14 +9477,14 @@ function e4({ title: t, children: e, ...n }) {
|
|
|
9477
9477
|
e
|
|
9478
9478
|
] });
|
|
9479
9479
|
}
|
|
9480
|
-
const
|
|
9481
|
-
function
|
|
9480
|
+
const Av = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3csymbol%20id='external-link'%20viewBox='0%200%20512%20512'%3e%3cpath%20d='M384%20224v184a40%2040%200%2001-40%2040H104a40%2040%200%2001-40-40V168a40%2040%200%200140-40h167.48M336%2064h112v112M224%20288L440%2072'%20fill='none'%20stroke='currentColor'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='32'/%3e%3c/symbol%3e%3csymbol%20id='caret-down'%20viewBox='0%200%20512%20512'%3e%3cpath%20fill='currentColor'%20d='M233.4%20406.6c12.5%2012.5%2032.8%2012.5%2045.3%200l192-192c12.5-12.5%2012.5-32.8%200-45.3s-32.8-12.5-45.3%200L256%20338.7L86.6%20169.4c-12.5-12.5-32.8-12.5-45.3%200s-12.5%2032.8%200%2045.3l192%20192z'/%3e%3c/symbol%3e%3c/defs%3e%3c/svg%3e";
|
|
9481
|
+
function Bv(t) {
|
|
9482
9482
|
let e = {
|
|
9483
9483
|
height: t.size || void 0,
|
|
9484
9484
|
width: t.size || void 0,
|
|
9485
9485
|
color: t.color || void 0
|
|
9486
9486
|
};
|
|
9487
|
-
return /* @__PURE__ */ b.jsx("svg", { style: e, ...t, children: /* @__PURE__ */ b.jsx("use", { href: `${
|
|
9487
|
+
return /* @__PURE__ */ b.jsx("svg", { style: e, ...t, children: /* @__PURE__ */ b.jsx("use", { href: `${Av}#${t.id}` }) });
|
|
9488
9488
|
}
|
|
9489
9489
|
function t4(t) {
|
|
9490
9490
|
const [e, n] = z("");
|
|
@@ -9497,10 +9497,10 @@ function t4(t) {
|
|
|
9497
9497
|
style: { display: "none" }
|
|
9498
9498
|
}
|
|
9499
9499
|
),
|
|
9500
|
-
/* @__PURE__ */ b.jsx(
|
|
9500
|
+
/* @__PURE__ */ b.jsx(Bv, { ...t })
|
|
9501
9501
|
] }) : null;
|
|
9502
9502
|
}
|
|
9503
|
-
const
|
|
9503
|
+
const Kv = dt(
|
|
9504
9504
|
({
|
|
9505
9505
|
prefix: t,
|
|
9506
9506
|
suffix: e,
|
|
@@ -9518,7 +9518,7 @@ const Bv = dt(
|
|
|
9518
9518
|
autoComplete: p,
|
|
9519
9519
|
"data-testid": m
|
|
9520
9520
|
}, y) => {
|
|
9521
|
-
const g = M(null), { className: C, palette: S, theme: $ } =
|
|
9521
|
+
const g = M(null), { className: C, palette: S, theme: $ } = Ae(), D = y || g, { labelProps: P, inputProps: k, descriptionProps: R, errorMessageProps: v } = Qi(
|
|
9522
9522
|
{
|
|
9523
9523
|
label: a,
|
|
9524
9524
|
name: u,
|
|
@@ -9638,7 +9638,7 @@ const Bv = dt(
|
|
|
9638
9638
|
"data-testid": u,
|
|
9639
9639
|
role: "search",
|
|
9640
9640
|
children: /* @__PURE__ */ b.jsx(
|
|
9641
|
-
|
|
9641
|
+
Kv,
|
|
9642
9642
|
{
|
|
9643
9643
|
...p,
|
|
9644
9644
|
type: "search",
|
|
@@ -9737,7 +9737,7 @@ function il({
|
|
|
9737
9737
|
offset: r,
|
|
9738
9738
|
...l
|
|
9739
9739
|
}) {
|
|
9740
|
-
const i = M(null), { popoverRef: o = i } = l, { className: a, style: u } =
|
|
9740
|
+
const i = M(null), { popoverRef: o = i } = l, { className: a, style: u } = Ae();
|
|
9741
9741
|
let { popoverProps: s, underlayProps: c, arrowProps: d, placement: f } = Gf(
|
|
9742
9742
|
{
|
|
9743
9743
|
...l,
|
|
@@ -9791,7 +9791,7 @@ class ol {
|
|
|
9791
9791
|
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;
|
|
9792
9792
|
}
|
|
9793
9793
|
}
|
|
9794
|
-
class
|
|
9794
|
+
class Mv {
|
|
9795
9795
|
get size() {
|
|
9796
9796
|
return this.keyMap.size;
|
|
9797
9797
|
}
|
|
@@ -9983,7 +9983,7 @@ class Ut extends Xs {
|
|
|
9983
9983
|
super(n), this.nodeType = 8, this._index = 0, this.hasSetProps = !1, this.node = new ol(e, `react-aria-${++n.nodeId}`), this.ownerDocument.startTransaction();
|
|
9984
9984
|
}
|
|
9985
9985
|
}
|
|
9986
|
-
class
|
|
9986
|
+
class Iv extends Xs {
|
|
9987
9987
|
get isConnected() {
|
|
9988
9988
|
return this.isMounted;
|
|
9989
9989
|
}
|
|
@@ -10093,8 +10093,8 @@ if (typeof HTMLTemplateElement < "u") {
|
|
|
10093
10093
|
}
|
|
10094
10094
|
});
|
|
10095
10095
|
}
|
|
10096
|
-
const Kr = /* @__PURE__ */ Q(!1),
|
|
10097
|
-
function
|
|
10096
|
+
const Kr = /* @__PURE__ */ Q(!1), Fv = typeof DocumentFragment < "u" ? new DocumentFragment() : null;
|
|
10097
|
+
function _v(t) {
|
|
10098
10098
|
let e = Y(Kr), n = nt();
|
|
10099
10099
|
if (e)
|
|
10100
10100
|
return /* @__PURE__ */ A.createElement(A.Fragment, null, t.children);
|
|
@@ -10103,9 +10103,9 @@ function Fv(t) {
|
|
|
10103
10103
|
}, t.children);
|
|
10104
10104
|
return n ? /* @__PURE__ */ A.createElement("template", {
|
|
10105
10105
|
"data-react-aria-hidden": !0
|
|
10106
|
-
}, r) : /* @__PURE__ */ gi(r,
|
|
10106
|
+
}, r) : /* @__PURE__ */ gi(r, Fv);
|
|
10107
10107
|
}
|
|
10108
|
-
function
|
|
10108
|
+
function Rv(t) {
|
|
10109
10109
|
let e = (n, r) => Y(Kr) ? null : t(n, r);
|
|
10110
10110
|
return e.displayName = t.displayName || t.name, dt(e);
|
|
10111
10111
|
}
|
|
@@ -10120,7 +10120,7 @@ var Mr = { exports: {} }, ur = {};
|
|
|
10120
10120
|
* LICENSE file in the root directory of this source tree.
|
|
10121
10121
|
*/
|
|
10122
10122
|
var ci;
|
|
10123
|
-
function
|
|
10123
|
+
function Nv() {
|
|
10124
10124
|
if (ci) return ur;
|
|
10125
10125
|
ci = 1;
|
|
10126
10126
|
var t = A;
|
|
@@ -10165,7 +10165,7 @@ var sr = {};
|
|
|
10165
10165
|
* LICENSE file in the root directory of this source tree.
|
|
10166
10166
|
*/
|
|
10167
10167
|
var di;
|
|
10168
|
-
function
|
|
10168
|
+
function Lv() {
|
|
10169
10169
|
return di || (di = 1, process.env.NODE_ENV !== "production" && function() {
|
|
10170
10170
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
10171
10171
|
var t = A, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -10235,35 +10235,35 @@ function Nv() {
|
|
|
10235
10235
|
sr.useSyncExternalStore = S, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
10236
10236
|
}()), sr;
|
|
10237
10237
|
}
|
|
10238
|
-
process.env.NODE_ENV === "production" ? Mr.exports =
|
|
10239
|
-
var
|
|
10238
|
+
process.env.NODE_ENV === "production" ? Mr.exports = Nv() : Mr.exports = Lv();
|
|
10239
|
+
var Ov = Mr.exports;
|
|
10240
10240
|
const Js = /* @__PURE__ */ Q(!1), Gt = /* @__PURE__ */ Q(null);
|
|
10241
|
-
function
|
|
10241
|
+
function zv(t) {
|
|
10242
10242
|
if (Y(Gt))
|
|
10243
10243
|
return t.content;
|
|
10244
|
-
let { collection: n, document: r } =
|
|
10245
|
-
return /* @__PURE__ */ A.createElement(A.Fragment, null, /* @__PURE__ */ A.createElement(
|
|
10244
|
+
let { collection: n, document: r } = Wv(t.createCollection);
|
|
10245
|
+
return /* @__PURE__ */ A.createElement(A.Fragment, null, /* @__PURE__ */ A.createElement(_v, null, /* @__PURE__ */ A.createElement(Gt.Provider, {
|
|
10246
10246
|
value: r
|
|
10247
|
-
}, t.content)), /* @__PURE__ */ A.createElement(
|
|
10247
|
+
}, t.content)), /* @__PURE__ */ A.createElement(jv, {
|
|
10248
10248
|
render: t.children,
|
|
10249
10249
|
collection: n
|
|
10250
10250
|
}));
|
|
10251
10251
|
}
|
|
10252
|
-
function
|
|
10252
|
+
function jv({ collection: t, render: e }) {
|
|
10253
10253
|
return e(t);
|
|
10254
10254
|
}
|
|
10255
|
-
function
|
|
10255
|
+
function Vv(t, e, n) {
|
|
10256
10256
|
let r = nt(), l = M(r);
|
|
10257
10257
|
l.current = r;
|
|
10258
10258
|
let i = X(() => l.current ? n() : e(), [
|
|
10259
10259
|
e,
|
|
10260
10260
|
n
|
|
10261
10261
|
]);
|
|
10262
|
-
return
|
|
10262
|
+
return Ov.useSyncExternalStore(t, i);
|
|
10263
10263
|
}
|
|
10264
|
-
const
|
|
10265
|
-
function
|
|
10266
|
-
let [e] = z(() => new
|
|
10264
|
+
const Hv = typeof A.useSyncExternalStore == "function" ? A.useSyncExternalStore : Vv;
|
|
10265
|
+
function Wv(t) {
|
|
10266
|
+
let [e] = z(() => new Iv((t == null ? void 0 : t()) || new Mv())), n = X((o) => e.subscribe(o), [
|
|
10267
10267
|
e
|
|
10268
10268
|
]), r = X(() => {
|
|
10269
10269
|
let o = e.getCollection();
|
|
@@ -10272,7 +10272,7 @@ function Hv(t) {
|
|
|
10272
10272
|
e
|
|
10273
10273
|
]), l = X(() => (e.isSSR = !0, e.getCollection()), [
|
|
10274
10274
|
e
|
|
10275
|
-
]), i =
|
|
10275
|
+
]), i = Hv(n, r, l);
|
|
10276
10276
|
return J(() => (e.isMounted = !0, () => {
|
|
10277
10277
|
e.isMounted = !1;
|
|
10278
10278
|
}), [
|
|
@@ -10283,7 +10283,7 @@ function Hv(t) {
|
|
|
10283
10283
|
};
|
|
10284
10284
|
}
|
|
10285
10285
|
const Ir = /* @__PURE__ */ Q(null);
|
|
10286
|
-
function
|
|
10286
|
+
function Uv(t, e, n, r, l, i) {
|
|
10287
10287
|
let o = X((u) => {
|
|
10288
10288
|
u == null || u.setProps(e, n, r, i);
|
|
10289
10289
|
}, [
|
|
@@ -10302,32 +10302,32 @@ function Wv(t, e, n, r, l, i) {
|
|
|
10302
10302
|
ref: o
|
|
10303
10303
|
}, l);
|
|
10304
10304
|
}
|
|
10305
|
-
function
|
|
10305
|
+
function Gv(t, e) {
|
|
10306
10306
|
let n = ({ node: l }) => e(l.props, l.props.ref, l), r = dt((l, i) => {
|
|
10307
10307
|
if (!Y(Js)) {
|
|
10308
10308
|
if (e.length >= 3) throw new Error(e.name + " cannot be rendered outside a collection.");
|
|
10309
10309
|
return e(l, i);
|
|
10310
10310
|
}
|
|
10311
|
-
return
|
|
10311
|
+
return Uv(t, l, i, "children" in l ? l.children : null, null, (a) => /* @__PURE__ */ A.createElement(n, {
|
|
10312
10312
|
node: a
|
|
10313
10313
|
}));
|
|
10314
10314
|
});
|
|
10315
10315
|
return r.displayName = e.name, r;
|
|
10316
10316
|
}
|
|
10317
|
-
function
|
|
10317
|
+
function Yv(t) {
|
|
10318
10318
|
return Zs({
|
|
10319
10319
|
...t,
|
|
10320
10320
|
addIdAndValue: !0
|
|
10321
10321
|
});
|
|
10322
10322
|
}
|
|
10323
10323
|
const fi = /* @__PURE__ */ Q(null);
|
|
10324
|
-
function
|
|
10325
|
-
let e = Y(fi), n = ((e == null ? void 0 : e.dependencies) || []).concat(t.dependencies), r = t.idScope || (e == null ? void 0 : e.idScope), l =
|
|
10324
|
+
function qv(t) {
|
|
10325
|
+
let e = Y(fi), n = ((e == null ? void 0 : e.dependencies) || []).concat(t.dependencies), r = t.idScope || (e == null ? void 0 : e.idScope), l = Yv({
|
|
10326
10326
|
...t,
|
|
10327
10327
|
idScope: r,
|
|
10328
10328
|
dependencies: n
|
|
10329
10329
|
});
|
|
10330
|
-
return Y(Gt) && (l = /* @__PURE__ */ A.createElement(
|
|
10330
|
+
return Y(Gt) && (l = /* @__PURE__ */ A.createElement(Xv, null, l)), e = V(() => ({
|
|
10331
10331
|
dependencies: n,
|
|
10332
10332
|
idScope: r
|
|
10333
10333
|
}), [
|
|
@@ -10337,7 +10337,7 @@ function Yv(t) {
|
|
|
10337
10337
|
value: e
|
|
10338
10338
|
}, l);
|
|
10339
10339
|
}
|
|
10340
|
-
function
|
|
10340
|
+
function Xv({ children: t }) {
|
|
10341
10341
|
let e = Y(Gt), n = V(() => /* @__PURE__ */ A.createElement(Gt.Provider, {
|
|
10342
10342
|
value: null
|
|
10343
10343
|
}, /* @__PURE__ */ A.createElement(Js.Provider, {
|
|
@@ -10349,7 +10349,7 @@ function qv({ children: t }) {
|
|
|
10349
10349
|
value: e
|
|
10350
10350
|
}, n) : /* @__PURE__ */ gi(n, e);
|
|
10351
10351
|
}
|
|
10352
|
-
const
|
|
10352
|
+
const Zv = /* @__PURE__ */ Q(null), Jv = {
|
|
10353
10353
|
CollectionRoot({ collection: t, renderDropIndicator: e }) {
|
|
10354
10354
|
return pi(t, null, e);
|
|
10355
10355
|
},
|
|
@@ -10380,8 +10380,8 @@ function pi(t, e, n) {
|
|
|
10380
10380
|
}
|
|
10381
10381
|
});
|
|
10382
10382
|
}
|
|
10383
|
-
const Qs = /* @__PURE__ */ Q(
|
|
10384
|
-
function
|
|
10383
|
+
const Qs = /* @__PURE__ */ Q(Jv);
|
|
10384
|
+
function Qv(t) {
|
|
10385
10385
|
return V(() => t != null ? /* @__PURE__ */ new Set([
|
|
10386
10386
|
t
|
|
10387
10387
|
]) : null, [
|
|
@@ -10467,7 +10467,7 @@ function Zt(t, e, n) {
|
|
|
10467
10467
|
o
|
|
10468
10468
|
];
|
|
10469
10469
|
}
|
|
10470
|
-
function
|
|
10470
|
+
function eh() {
|
|
10471
10471
|
let [t, e] = z(!0), n = M(!1), r = X((l) => {
|
|
10472
10472
|
n.current = !0, e(!!l);
|
|
10473
10473
|
}, []);
|
|
@@ -10478,11 +10478,11 @@ function Qv() {
|
|
|
10478
10478
|
t
|
|
10479
10479
|
];
|
|
10480
10480
|
}
|
|
10481
|
-
function
|
|
10481
|
+
function th(t, e = !0) {
|
|
10482
10482
|
let [n, r] = z(!0);
|
|
10483
10483
|
return tc(t, n && e, X(() => r(!1), [])), n && e;
|
|
10484
10484
|
}
|
|
10485
|
-
function
|
|
10485
|
+
function nh(t, e) {
|
|
10486
10486
|
let [n, r] = z(!1), [l, i] = z("idle");
|
|
10487
10487
|
return !e && t.current && l === "idle" && (n = !0, r(!0), i("exiting")), !t.current && l === "exited" && i("idle"), tc(t, n, X(() => {
|
|
10488
10488
|
i("exited"), r(!1);
|
|
@@ -10510,7 +10510,7 @@ function tc(t, e, n) {
|
|
|
10510
10510
|
n
|
|
10511
10511
|
]);
|
|
10512
10512
|
}
|
|
10513
|
-
const
|
|
10513
|
+
const rh = /* @__PURE__ */ Q(null), lh = /* @__PURE__ */ new Set([
|
|
10514
10514
|
"form",
|
|
10515
10515
|
"formAction",
|
|
10516
10516
|
"formEncType",
|
|
@@ -10519,9 +10519,9 @@ const nh = /* @__PURE__ */ Q(null), rh = /* @__PURE__ */ new Set([
|
|
|
10519
10519
|
"formTarget",
|
|
10520
10520
|
"name",
|
|
10521
10521
|
"value"
|
|
10522
|
-
]),
|
|
10523
|
-
function
|
|
10524
|
-
[t, e] = Zt(t, e,
|
|
10522
|
+
]), ih = /* @__PURE__ */ Q({});
|
|
10523
|
+
function oh(t, e) {
|
|
10524
|
+
[t, e] = Zt(t, e, ih), t = ah(t);
|
|
10525
10525
|
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({
|
|
10526
10526
|
...t,
|
|
10527
10527
|
isDisabled: t.isDisabled || r
|
|
@@ -10551,7 +10551,7 @@ function ih(t, e) {
|
|
|
10551
10551
|
p
|
|
10552
10552
|
]), /* @__PURE__ */ A.createElement("button", {
|
|
10553
10553
|
...fe(t, {
|
|
10554
|
-
propNames:
|
|
10554
|
+
propNames: lh
|
|
10555
10555
|
}),
|
|
10556
10556
|
...H(l, o, s),
|
|
10557
10557
|
...f,
|
|
@@ -10566,19 +10566,19 @@ function ih(t, e) {
|
|
|
10566
10566
|
"data-focused": a || void 0,
|
|
10567
10567
|
"data-pending": r || void 0,
|
|
10568
10568
|
"data-focus-visible": u || void 0
|
|
10569
|
-
}, /* @__PURE__ */ A.createElement(
|
|
10569
|
+
}, /* @__PURE__ */ A.createElement(rh.Provider, {
|
|
10570
10570
|
value: {
|
|
10571
10571
|
id: m
|
|
10572
10572
|
}
|
|
10573
10573
|
}, f.children));
|
|
10574
10574
|
}
|
|
10575
|
-
function
|
|
10575
|
+
function ah(t) {
|
|
10576
10576
|
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;
|
|
10577
10577
|
}
|
|
10578
|
-
const nc = /* @__PURE__ */
|
|
10578
|
+
const nc = /* @__PURE__ */ Rv(oh), uh = /* @__PURE__ */ Q({}), sh = /* @__PURE__ */ Q({}), ch = /* @__PURE__ */ Q({}), rc = /* @__PURE__ */ Q({
|
|
10579
10579
|
placement: "bottom"
|
|
10580
10580
|
});
|
|
10581
|
-
function
|
|
10581
|
+
function dh(t, e) {
|
|
10582
10582
|
[t, e] = Zt(t, e, rc);
|
|
10583
10583
|
let n = t.placement, r = {
|
|
10584
10584
|
position: "absolute",
|
|
@@ -10602,8 +10602,8 @@ function ch(t, e) {
|
|
|
10602
10602
|
"data-placement": n
|
|
10603
10603
|
});
|
|
10604
10604
|
}
|
|
10605
|
-
const
|
|
10606
|
-
function
|
|
10605
|
+
const fh = /* @__PURE__ */ dt(dh), Fr = /* @__PURE__ */ Q(null), ph = /* @__PURE__ */ Q(null), vh = /* @__PURE__ */ Q({}), lc = /* @__PURE__ */ Q(null), al = /* @__PURE__ */ Q(null), ic = /* @__PURE__ */ Q(null);
|
|
10606
|
+
function hh(t) {
|
|
10607
10607
|
let e = Xp(t), n = M(null), { menuTriggerProps: r, menuProps: l } = Ta({
|
|
10608
10608
|
...t,
|
|
10609
10609
|
type: "menu"
|
|
@@ -10627,7 +10627,7 @@ function vh(t) {
|
|
|
10627
10627
|
}
|
|
10628
10628
|
],
|
|
10629
10629
|
[
|
|
10630
|
-
|
|
10630
|
+
ph,
|
|
10631
10631
|
e
|
|
10632
10632
|
],
|
|
10633
10633
|
[
|
|
@@ -10653,17 +10653,17 @@ function vh(t) {
|
|
|
10653
10653
|
isPressed: e.isOpen
|
|
10654
10654
|
}, t.children));
|
|
10655
10655
|
}
|
|
10656
|
-
const
|
|
10657
|
-
function
|
|
10658
|
-
return [t, e] = Zt(t, e, lc), /* @__PURE__ */ A.createElement(
|
|
10659
|
-
content: /* @__PURE__ */ A.createElement(
|
|
10660
|
-
}, (n) => n.size > 0 && /* @__PURE__ */ A.createElement(
|
|
10656
|
+
const mh = /* @__PURE__ */ Q(null);
|
|
10657
|
+
function bh(t, e) {
|
|
10658
|
+
return [t, e] = Zt(t, e, lc), /* @__PURE__ */ A.createElement(zv, {
|
|
10659
|
+
content: /* @__PURE__ */ A.createElement(qv, t)
|
|
10660
|
+
}, (n) => n.size > 0 && /* @__PURE__ */ A.createElement(gh, {
|
|
10661
10661
|
props: t,
|
|
10662
10662
|
collection: n,
|
|
10663
10663
|
menuRef: e
|
|
10664
10664
|
}));
|
|
10665
10665
|
}
|
|
10666
|
-
function
|
|
10666
|
+
function gh({ props: t, collection: e, menuRef: n }) {
|
|
10667
10667
|
let r = Hs({
|
|
10668
10668
|
...t,
|
|
10669
10669
|
collection: e,
|
|
@@ -10714,7 +10714,7 @@ function bh({ props: t, collection: e, menuRef: n }) {
|
|
|
10714
10714
|
r
|
|
10715
10715
|
],
|
|
10716
10716
|
[
|
|
10717
|
-
|
|
10717
|
+
ch,
|
|
10718
10718
|
{
|
|
10719
10719
|
elementType: "div"
|
|
10720
10720
|
}
|
|
@@ -10726,13 +10726,13 @@ function bh({ props: t, collection: e, menuRef: n }) {
|
|
|
10726
10726
|
}
|
|
10727
10727
|
],
|
|
10728
10728
|
[
|
|
10729
|
-
|
|
10729
|
+
Zv,
|
|
10730
10730
|
{
|
|
10731
|
-
render:
|
|
10731
|
+
render: $h
|
|
10732
10732
|
}
|
|
10733
10733
|
],
|
|
10734
10734
|
[
|
|
10735
|
-
|
|
10735
|
+
mh,
|
|
10736
10736
|
{
|
|
10737
10737
|
parentMenuRef: n
|
|
10738
10738
|
}
|
|
@@ -10744,7 +10744,7 @@ function bh({ props: t, collection: e, menuRef: n }) {
|
|
|
10744
10744
|
]
|
|
10745
10745
|
}, /* @__PURE__ */ A.createElement(a, {
|
|
10746
10746
|
collection: e,
|
|
10747
|
-
persistedKeys:
|
|
10747
|
+
persistedKeys: Qv(r.selectionManager.focusedKey),
|
|
10748
10748
|
scrollRef: n
|
|
10749
10749
|
}))), /* @__PURE__ */ A.createElement("div", {
|
|
10750
10750
|
ref: i,
|
|
@@ -10756,10 +10756,10 @@ function bh({ props: t, collection: e, menuRef: n }) {
|
|
|
10756
10756
|
}
|
|
10757
10757
|
}));
|
|
10758
10758
|
}
|
|
10759
|
-
const
|
|
10760
|
-
function
|
|
10759
|
+
const yh = /* @__PURE__ */ dt(bh);
|
|
10760
|
+
function $h(t, e, n) {
|
|
10761
10761
|
var r, l;
|
|
10762
|
-
let i = Y(al), { CollectionBranch: o } = Y(Qs), [a, u] =
|
|
10762
|
+
let i = Y(al), { CollectionBranch: o } = Y(Qs), [a, u] = eh();
|
|
10763
10763
|
var s;
|
|
10764
10764
|
let { headingProps: c, groupProps: d } = up({
|
|
10765
10765
|
heading: u,
|
|
@@ -10775,7 +10775,7 @@ function yh(t, e, n) {
|
|
|
10775
10775
|
...d,
|
|
10776
10776
|
...f,
|
|
10777
10777
|
ref: e
|
|
10778
|
-
}, /* @__PURE__ */ A.createElement(
|
|
10778
|
+
}, /* @__PURE__ */ A.createElement(sh.Provider, {
|
|
10779
10779
|
value: {
|
|
10780
10780
|
...c,
|
|
10781
10781
|
ref: a
|
|
@@ -10785,7 +10785,7 @@ function yh(t, e, n) {
|
|
|
10785
10785
|
parent: n
|
|
10786
10786
|
})));
|
|
10787
10787
|
}
|
|
10788
|
-
const _r = /* @__PURE__ */ Q(null),
|
|
10788
|
+
const _r = /* @__PURE__ */ Q(null), xh = /* @__PURE__ */ Gv("item", function(e, n, r) {
|
|
10789
10789
|
var l;
|
|
10790
10790
|
[e, n] = Zt(e, n, _r);
|
|
10791
10791
|
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({
|
|
@@ -10825,7 +10825,7 @@ const _r = /* @__PURE__ */ Q(null), $h = /* @__PURE__ */ Uv("item", function(e,
|
|
|
10825
10825
|
}, /* @__PURE__ */ A.createElement(Ln, {
|
|
10826
10826
|
values: [
|
|
10827
10827
|
[
|
|
10828
|
-
|
|
10828
|
+
uh,
|
|
10829
10829
|
{
|
|
10830
10830
|
slots: {
|
|
10831
10831
|
label: s,
|
|
@@ -10834,13 +10834,13 @@ const _r = /* @__PURE__ */ Q(null), $h = /* @__PURE__ */ Uv("item", function(e,
|
|
|
10834
10834
|
}
|
|
10835
10835
|
],
|
|
10836
10836
|
[
|
|
10837
|
-
|
|
10837
|
+
vh,
|
|
10838
10838
|
d
|
|
10839
10839
|
]
|
|
10840
10840
|
]
|
|
10841
10841
|
}, C.children));
|
|
10842
10842
|
}), ul = /* @__PURE__ */ Q(null), oc = /* @__PURE__ */ Q(null);
|
|
10843
|
-
function
|
|
10843
|
+
function Eh(t) {
|
|
10844
10844
|
let e = Vs(t), n = M(null), { triggerProps: r, tooltipProps: l } = Up(t, e, n);
|
|
10845
10845
|
return /* @__PURE__ */ A.createElement(Ln, {
|
|
10846
10846
|
values: [
|
|
@@ -10861,19 +10861,19 @@ function xh(t) {
|
|
|
10861
10861
|
ref: n
|
|
10862
10862
|
}, t.children));
|
|
10863
10863
|
}
|
|
10864
|
-
function
|
|
10864
|
+
function Sh({ UNSTABLE_portalContainer: t, ...e }, n) {
|
|
10865
10865
|
[e, n] = Zt(e, n, oc);
|
|
10866
|
-
let r = Y(ul), l = Vs(e), i = e.isOpen != null || e.defaultOpen != null || !r ? l : r, o =
|
|
10866
|
+
let r = Y(ul), l = Vs(e), i = e.isOpen != null || e.defaultOpen != null || !r ? l : r, o = nh(n, i.isOpen) || e.isExiting || !1;
|
|
10867
10867
|
return !i.isOpen && !o ? null : /* @__PURE__ */ A.createElement(Vf, {
|
|
10868
10868
|
portalContainer: t
|
|
10869
|
-
}, /* @__PURE__ */ A.createElement(
|
|
10869
|
+
}, /* @__PURE__ */ A.createElement(wh, {
|
|
10870
10870
|
...e,
|
|
10871
10871
|
tooltipRef: n,
|
|
10872
10872
|
isExiting: o
|
|
10873
10873
|
}));
|
|
10874
10874
|
}
|
|
10875
|
-
const
|
|
10876
|
-
function
|
|
10875
|
+
const Ch = /* @__PURE__ */ dt(Sh);
|
|
10876
|
+
function wh(t) {
|
|
10877
10877
|
let e = Y(ul), n = M(null), [r, l] = z(0);
|
|
10878
10878
|
J(() => {
|
|
10879
10879
|
n.current && e.isOpen && l(n.current.getBoundingClientRect().width);
|
|
@@ -10891,7 +10891,7 @@ function Ch(t) {
|
|
|
10891
10891
|
arrowSize: r,
|
|
10892
10892
|
arrowBoundaryOffset: t.arrowBoundaryOffset,
|
|
10893
10893
|
shouldFlip: t.shouldFlip
|
|
10894
|
-
}), u =
|
|
10894
|
+
}), u = th(t.tooltipRef, !!a) || t.isEntering || !1, s = At({
|
|
10895
10895
|
...t,
|
|
10896
10896
|
defaultClassName: "react-aria-Tooltip",
|
|
10897
10897
|
values: {
|
|
@@ -10934,7 +10934,7 @@ function ac(t, e = "down") {
|
|
|
10934
10934
|
return i.addEventListener("change", o), () => i.removeEventListener("change", o);
|
|
10935
10935
|
}, [n]), r;
|
|
10936
10936
|
}
|
|
10937
|
-
const
|
|
10937
|
+
const Ph = ({ size: t }) => /* @__PURE__ */ b.jsx("svg", { viewBox: "0 0 24 24", width: t, height: t, children: /* @__PURE__ */ b.jsx(
|
|
10938
10938
|
"path",
|
|
10939
10939
|
{
|
|
10940
10940
|
fill: "currentColor",
|
|
@@ -10951,7 +10951,7 @@ function l4({
|
|
|
10951
10951
|
testId: o,
|
|
10952
10952
|
menuTestId: a
|
|
10953
10953
|
}) {
|
|
10954
|
-
const { className: u } =
|
|
10954
|
+
const { className: u } = Ae(), s = ac($i.SMALL), [c, d] = z(!1), f = M(null), p = {
|
|
10955
10955
|
disabled: l,
|
|
10956
10956
|
"data-testid": o,
|
|
10957
10957
|
"aria-label": "Menu"
|
|
@@ -10963,7 +10963,7 @@ function l4({
|
|
|
10963
10963
|
onPress: () => d((g) => !g),
|
|
10964
10964
|
isDisabled: l,
|
|
10965
10965
|
className: `proton-ResponsiveMenuTrigger__button ${u}`,
|
|
10966
|
-
children: /* @__PURE__ */ b.jsx(
|
|
10966
|
+
children: /* @__PURE__ */ b.jsx(Ph, { size: n })
|
|
10967
10967
|
}
|
|
10968
10968
|
), y = t ? t(
|
|
10969
10969
|
{ ...p, onClick: () => d((g) => !g) },
|
|
@@ -10986,7 +10986,7 @@ function l4({
|
|
|
10986
10986
|
"data-testid": a
|
|
10987
10987
|
}
|
|
10988
10988
|
)
|
|
10989
|
-
] }) : /* @__PURE__ */ b.jsxs(
|
|
10989
|
+
] }) : /* @__PURE__ */ b.jsxs(hh, { children: [
|
|
10990
10990
|
y,
|
|
10991
10991
|
c && /* @__PURE__ */ b.jsx(
|
|
10992
10992
|
il,
|
|
@@ -11001,14 +11001,14 @@ function l4({
|
|
|
11001
11001
|
triggerRef: f,
|
|
11002
11002
|
arrow: !1,
|
|
11003
11003
|
children: /* @__PURE__ */ b.jsx(
|
|
11004
|
-
|
|
11004
|
+
yh,
|
|
11005
11005
|
{
|
|
11006
11006
|
className: "proton-ListBox proton-ResponsiveMenuTrigger__menu",
|
|
11007
11007
|
id: e,
|
|
11008
11008
|
autoFocus: !0,
|
|
11009
11009
|
"data-testid": a,
|
|
11010
11010
|
children: r.map((g) => /* @__PURE__ */ b.jsx(
|
|
11011
|
-
|
|
11011
|
+
xh,
|
|
11012
11012
|
{
|
|
11013
11013
|
href: g.to,
|
|
11014
11014
|
target: "_blank",
|
|
@@ -11039,11 +11039,11 @@ const Rr = (t) => {
|
|
|
11039
11039
|
ref: e,
|
|
11040
11040
|
"data-testid": "listbox",
|
|
11041
11041
|
className: "proton-ListBox",
|
|
11042
|
-
children: [...n.collection].map((l) => /* @__PURE__ */ b.jsx(
|
|
11042
|
+
children: [...n.collection].map((l) => /* @__PURE__ */ b.jsx(Dh, { item: l, state: n }, l.key))
|
|
11043
11043
|
}
|
|
11044
11044
|
) });
|
|
11045
11045
|
};
|
|
11046
|
-
function
|
|
11046
|
+
function Dh({ item: t, state: e }) {
|
|
11047
11047
|
let n = M(null), { optionProps: r, isSelected: l, isFocused: i, isDisabled: o } = op(
|
|
11048
11048
|
{ key: t.key },
|
|
11049
11049
|
e,
|
|
@@ -11089,7 +11089,7 @@ const uc = dt(
|
|
|
11089
11089
|
);
|
|
11090
11090
|
}
|
|
11091
11091
|
);
|
|
11092
|
-
function
|
|
11092
|
+
function kh({
|
|
11093
11093
|
label: t,
|
|
11094
11094
|
name: e,
|
|
11095
11095
|
isDisabled: n,
|
|
@@ -11201,10 +11201,10 @@ function Dh({
|
|
|
11201
11201
|
);
|
|
11202
11202
|
}
|
|
11203
11203
|
const i4 = {
|
|
11204
|
-
Menu:
|
|
11204
|
+
Menu: kh,
|
|
11205
11205
|
Option: Xr
|
|
11206
11206
|
};
|
|
11207
|
-
function
|
|
11207
|
+
function Th({
|
|
11208
11208
|
label: t,
|
|
11209
11209
|
name: e,
|
|
11210
11210
|
isDisabled: n,
|
|
@@ -11315,7 +11315,7 @@ function kh({
|
|
|
11315
11315
|
);
|
|
11316
11316
|
}
|
|
11317
11317
|
const o4 = {
|
|
11318
|
-
Menu:
|
|
11318
|
+
Menu: Th,
|
|
11319
11319
|
Option: Xr
|
|
11320
11320
|
};
|
|
11321
11321
|
function a4(t) {
|
|
@@ -11347,11 +11347,11 @@ function a4(t) {
|
|
|
11347
11347
|
}
|
|
11348
11348
|
);
|
|
11349
11349
|
}
|
|
11350
|
-
function
|
|
11350
|
+
function Ah({ item: t, state: e, children: n }) {
|
|
11351
11351
|
let r = M(), { rowProps: l } = jp({ node: t }, e);
|
|
11352
11352
|
return /* @__PURE__ */ b.jsx("tr", { className: W("proton-Table__headerRow"), ...l, ref: r, children: n });
|
|
11353
11353
|
}
|
|
11354
|
-
function
|
|
11354
|
+
function Bh({ column: t, state: e }) {
|
|
11355
11355
|
var u, s;
|
|
11356
11356
|
let n = M(), { columnHeaderProps: r } = Op(
|
|
11357
11357
|
{ node: t },
|
|
@@ -11402,54 +11402,56 @@ function hi({ type: t, children: e }) {
|
|
|
11402
11402
|
}
|
|
11403
11403
|
);
|
|
11404
11404
|
}
|
|
11405
|
-
function
|
|
11405
|
+
function Kh({
|
|
11406
11406
|
item: t,
|
|
11407
11407
|
children: e,
|
|
11408
11408
|
state: n,
|
|
11409
|
-
backgroundColor: r
|
|
11409
|
+
backgroundColor: r,
|
|
11410
|
+
showLines: l = !0
|
|
11410
11411
|
}) {
|
|
11411
|
-
let
|
|
11412
|
+
let i = M(), o = n.selectionManager.isSelected(t.key), { rowProps: a, isPressed: u } = zp(
|
|
11412
11413
|
{
|
|
11413
11414
|
node: t
|
|
11414
11415
|
},
|
|
11415
11416
|
n,
|
|
11416
|
-
|
|
11417
|
-
), { isFocusVisible:
|
|
11417
|
+
i
|
|
11418
|
+
), { isFocusVisible: s, focusProps: c } = Xt();
|
|
11418
11419
|
return /* @__PURE__ */ b.jsx(
|
|
11419
11420
|
"tr",
|
|
11420
11421
|
{
|
|
11421
11422
|
className: W(
|
|
11422
11423
|
"proton-Table__row",
|
|
11423
|
-
|
|
11424
|
-
|
|
11425
|
-
|
|
11424
|
+
o ? "proton-Table__row--selected" : null,
|
|
11425
|
+
u ? "proton-Table__row--pressed" : null,
|
|
11426
|
+
s ? "proton-Table__row--focused" : null,
|
|
11427
|
+
l && "proton-Table__row--showLines"
|
|
11426
11428
|
),
|
|
11427
11429
|
style: r ? { backgroundColor: r } : void 0,
|
|
11428
|
-
...H(
|
|
11429
|
-
ref:
|
|
11430
|
+
...H(a, c),
|
|
11431
|
+
ref: i,
|
|
11430
11432
|
children: e
|
|
11431
11433
|
}
|
|
11432
11434
|
);
|
|
11433
11435
|
}
|
|
11434
|
-
function
|
|
11435
|
-
let
|
|
11436
|
-
const { align:
|
|
11436
|
+
function Mh({ cell: t, state: e }) {
|
|
11437
|
+
let n = M(), { gridCellProps: r } = Vp({ node: t }, e, n), { isFocusVisible: l, focusProps: i } = Xt();
|
|
11438
|
+
const { align: o = "left" } = t.props;
|
|
11437
11439
|
return /* @__PURE__ */ b.jsx(
|
|
11438
11440
|
"td",
|
|
11439
11441
|
{
|
|
11440
|
-
...H(
|
|
11442
|
+
...H(r, i),
|
|
11441
11443
|
className: W(
|
|
11442
11444
|
"proton-Table__cell",
|
|
11443
|
-
|
|
11444
|
-
`proton-Table__cell--${
|
|
11445
|
+
l ? "proton-Table__cell--focused" : null,
|
|
11446
|
+
`proton-Table__cell--${o}`
|
|
11445
11447
|
),
|
|
11446
|
-
ref:
|
|
11448
|
+
ref: n,
|
|
11447
11449
|
children: t.rendered
|
|
11448
11450
|
}
|
|
11449
11451
|
);
|
|
11450
11452
|
}
|
|
11451
|
-
const u4 =
|
|
11452
|
-
function
|
|
11453
|
+
const u4 = uv, s4 = cv, c4 = sv, d4 = av;
|
|
11454
|
+
function f4(t) {
|
|
11453
11455
|
let e = ov({
|
|
11454
11456
|
...t
|
|
11455
11457
|
}), n = M(), { collection: r } = e, { gridProps: l } = Np(
|
|
@@ -11458,8 +11460,8 @@ function d4(t) {
|
|
|
11458
11460
|
n
|
|
11459
11461
|
);
|
|
11460
11462
|
return /* @__PURE__ */ b.jsxs("table", { ...l, ref: n, className: W("proton-Table"), children: [
|
|
11461
|
-
/* @__PURE__ */ b.jsx(hi, { type: "thead", children: r.headerRows.map((i) => /* @__PURE__ */ b.jsx(
|
|
11462
|
-
|
|
11463
|
+
/* @__PURE__ */ b.jsx(hi, { type: "thead", children: r.headerRows.map((i) => /* @__PURE__ */ b.jsx(Ah, { item: i, state: e, children: Array.from(r.getChildren(i.key)).map((o) => /* @__PURE__ */ b.jsx(
|
|
11464
|
+
Bh,
|
|
11463
11465
|
{
|
|
11464
11466
|
column: o,
|
|
11465
11467
|
state: e
|
|
@@ -11467,62 +11469,60 @@ function d4(t) {
|
|
|
11467
11469
|
o.key
|
|
11468
11470
|
)) }, i.key)) }),
|
|
11469
11471
|
/* @__PURE__ */ b.jsx(hi, { type: "tbody", children: Array.from(r.body.childNodes).map((i) => /* @__PURE__ */ b.jsx(
|
|
11470
|
-
|
|
11472
|
+
Kh,
|
|
11471
11473
|
{
|
|
11472
11474
|
item: i,
|
|
11473
11475
|
state: e,
|
|
11474
11476
|
backgroundColor: i.props.backgroundColor,
|
|
11475
|
-
|
|
11477
|
+
showLines: r.body.props.showLines,
|
|
11478
|
+
children: Array.from(r.getChildren(i.key)).map((o) => /* @__PURE__ */ b.jsx(Mh, { cell: o, state: e }, o.key))
|
|
11476
11479
|
},
|
|
11477
11480
|
i.key
|
|
11478
11481
|
)) })
|
|
11479
11482
|
] });
|
|
11480
11483
|
}
|
|
11481
|
-
const
|
|
11484
|
+
const p4 = ({
|
|
11482
11485
|
children: t,
|
|
11483
11486
|
maxWidth: e,
|
|
11484
11487
|
singleLine: n = !0,
|
|
11485
11488
|
lines: r = 1,
|
|
11486
11489
|
title: l,
|
|
11487
|
-
|
|
11488
|
-
"data-testid": o
|
|
11490
|
+
"data-testid": i
|
|
11489
11491
|
}) => {
|
|
11490
|
-
const
|
|
11492
|
+
const o = l || (typeof t == "string" ? t : void 0);
|
|
11491
11493
|
return /* @__PURE__ */ b.jsx(
|
|
11492
11494
|
"div",
|
|
11493
11495
|
{
|
|
11494
11496
|
className: W(
|
|
11495
11497
|
"proton-TextEllipsis",
|
|
11496
|
-
n || r === 1 ? "proton-TextEllipsis--single-line" : r > 1 ? "proton-TextEllipsis--multi-line" : ""
|
|
11497
|
-
i,
|
|
11498
|
-
a
|
|
11498
|
+
n || r === 1 ? "proton-TextEllipsis--single-line" : r > 1 ? "proton-TextEllipsis--multi-line" : ""
|
|
11499
11499
|
),
|
|
11500
11500
|
style: {
|
|
11501
11501
|
maxWidth: e,
|
|
11502
11502
|
WebkitLineClamp: r
|
|
11503
11503
|
},
|
|
11504
|
-
title:
|
|
11505
|
-
"data-testid":
|
|
11504
|
+
title: o,
|
|
11505
|
+
"data-testid": i,
|
|
11506
11506
|
children: t
|
|
11507
11507
|
}
|
|
11508
11508
|
);
|
|
11509
11509
|
};
|
|
11510
|
-
function
|
|
11511
|
-
const { style: r, className: l } =
|
|
11510
|
+
function Ih({ children: t, arrow: e, ...n }) {
|
|
11511
|
+
const { style: r, className: l } = Ae();
|
|
11512
11512
|
return /* @__PURE__ */ b.jsxs(
|
|
11513
|
-
|
|
11513
|
+
Ch,
|
|
11514
11514
|
{
|
|
11515
11515
|
...n,
|
|
11516
11516
|
className: W("proton__Tooltip", "proton-Dialog", l),
|
|
11517
11517
|
style: r,
|
|
11518
11518
|
children: [
|
|
11519
|
-
e && /* @__PURE__ */ b.jsx(
|
|
11519
|
+
e && /* @__PURE__ */ b.jsx(fh, { className: W("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" }) }) }),
|
|
11520
11520
|
t
|
|
11521
11521
|
]
|
|
11522
11522
|
}
|
|
11523
11523
|
);
|
|
11524
11524
|
}
|
|
11525
|
-
function
|
|
11525
|
+
function Fh({
|
|
11526
11526
|
children: t,
|
|
11527
11527
|
// trigger props
|
|
11528
11528
|
delay: e = 500,
|
|
@@ -11536,8 +11536,8 @@ function Ih({
|
|
|
11536
11536
|
...u
|
|
11537
11537
|
}) {
|
|
11538
11538
|
const [s, c] = z(!1), d = M(!1), f = M(!1);
|
|
11539
|
-
return /* @__PURE__ */ b.jsxs(
|
|
11540
|
-
|
|
11539
|
+
return a === "" ? null : /* @__PURE__ */ b.jsxs(
|
|
11540
|
+
Eh,
|
|
11541
11541
|
{
|
|
11542
11542
|
delay: e,
|
|
11543
11543
|
closeDelay: n,
|
|
@@ -11559,18 +11559,18 @@ function Ih({
|
|
|
11559
11559
|
children: t
|
|
11560
11560
|
}
|
|
11561
11561
|
),
|
|
11562
|
-
/* @__PURE__ */ b.jsx(
|
|
11562
|
+
/* @__PURE__ */ b.jsx(Ih, { ...u, children: a })
|
|
11563
11563
|
]
|
|
11564
11564
|
}
|
|
11565
11565
|
);
|
|
11566
11566
|
}
|
|
11567
|
-
const
|
|
11567
|
+
const v4 = ({
|
|
11568
11568
|
to: t,
|
|
11569
11569
|
children: e,
|
|
11570
11570
|
tooltipProps: n,
|
|
11571
11571
|
"data-testid": r
|
|
11572
11572
|
}) => {
|
|
11573
|
-
const { className: l } =
|
|
11573
|
+
const { className: l } = Ae(), i = n ? /* @__PURE__ */ b.jsx(Fh, { delay: 50, closeDelay: 75, ...n, children: e }) : e;
|
|
11574
11574
|
if (t) {
|
|
11575
11575
|
const o = Nr(t);
|
|
11576
11576
|
return /* @__PURE__ */ b.jsx(
|
|
@@ -11608,7 +11608,7 @@ const p4 = ({
|
|
|
11608
11608
|
}
|
|
11609
11609
|
);
|
|
11610
11610
|
};
|
|
11611
|
-
function
|
|
11611
|
+
function _h({
|
|
11612
11612
|
amplitude: t,
|
|
11613
11613
|
isDisabled: e,
|
|
11614
11614
|
isPlayed: n,
|
|
@@ -11676,8 +11676,8 @@ function Fh({
|
|
|
11676
11676
|
}
|
|
11677
11677
|
);
|
|
11678
11678
|
}
|
|
11679
|
-
const
|
|
11680
|
-
function
|
|
11679
|
+
const Rh = zh(100);
|
|
11680
|
+
function h4({
|
|
11681
11681
|
data: t,
|
|
11682
11682
|
resolution: e = 2,
|
|
11683
11683
|
startDuration: n,
|
|
@@ -11689,11 +11689,11 @@ function v4({
|
|
|
11689
11689
|
"data-testid": u
|
|
11690
11690
|
}) {
|
|
11691
11691
|
var E;
|
|
11692
|
-
const { className: s } =
|
|
11692
|
+
const { className: s } = Ae(), c = M(null), [d, f] = z([]), [p, m] = z(null), [y, g] = z(!1), [C, S] = z(!1), $ = t || Rh, D = e;
|
|
11693
11693
|
L(() => {
|
|
11694
11694
|
if (!c.current) return;
|
|
11695
11695
|
const w = (F) => {
|
|
11696
|
-
const T = Math.floor(F / (e + D)), U =
|
|
11696
|
+
const T = Math.floor(F / (e + D)), U = Lh($, T);
|
|
11697
11697
|
f(U);
|
|
11698
11698
|
}, I = c.current.clientWidth;
|
|
11699
11699
|
w(I);
|
|
@@ -11755,7 +11755,7 @@ function v4({
|
|
|
11755
11755
|
d.map((w, I) => {
|
|
11756
11756
|
const x = I / d.length * o, F = n !== void 0 && r !== void 0 && (x < n || x > r), T = l === 0 ? !1 : x <= l, U = p !== null && x <= p;
|
|
11757
11757
|
return /* @__PURE__ */ b.jsx(
|
|
11758
|
-
|
|
11758
|
+
_h,
|
|
11759
11759
|
{
|
|
11760
11760
|
amplitude: w,
|
|
11761
11761
|
isDisabled: F,
|
|
@@ -11797,40 +11797,40 @@ function mi({
|
|
|
11797
11797
|
"proton-Waveform__timestamp",
|
|
11798
11798
|
`proton-Waveform__timestamp--${t}`
|
|
11799
11799
|
),
|
|
11800
|
-
children:
|
|
11800
|
+
children: Nh(e)
|
|
11801
11801
|
}
|
|
11802
11802
|
);
|
|
11803
11803
|
}
|
|
11804
|
-
function
|
|
11804
|
+
function Nh(t) {
|
|
11805
11805
|
const e = Math.floor(t / 60), n = Math.floor(t % 60);
|
|
11806
11806
|
return `${e}:${n < 10 ? "0" : ""}${n.toFixed(0)}`;
|
|
11807
11807
|
}
|
|
11808
|
-
function
|
|
11808
|
+
function Lh(t, e) {
|
|
11809
11809
|
const n = t.length, r = n / e, l = new Array(e).fill(0).map((i, o) => {
|
|
11810
11810
|
const a = o * r, u = Math.floor(a), s = Math.min(u + 1, n - 1), c = a - u;
|
|
11811
11811
|
return t[u] * (1 - c) + t[s] * c;
|
|
11812
11812
|
});
|
|
11813
|
-
return
|
|
11813
|
+
return Oh(l);
|
|
11814
11814
|
}
|
|
11815
|
-
function
|
|
11815
|
+
function Oh(t) {
|
|
11816
11816
|
const e = Math.min(...t), n = Math.max(...t);
|
|
11817
11817
|
return t.map((r) => {
|
|
11818
11818
|
const l = (r - e) / (n - e);
|
|
11819
11819
|
return Math.max(l * 0.8 + 0.1, 0.1);
|
|
11820
11820
|
});
|
|
11821
11821
|
}
|
|
11822
|
-
function
|
|
11822
|
+
function zh(t) {
|
|
11823
11823
|
return Array.from({ length: t }, (e, n) => {
|
|
11824
11824
|
const l = n / (t - 1) * 6 * 2 * Math.PI - Math.PI / 2;
|
|
11825
11825
|
return Math.sin(l) * 0.5 + 0.5;
|
|
11826
11826
|
});
|
|
11827
11827
|
}
|
|
11828
|
-
const
|
|
11828
|
+
const m4 = ({
|
|
11829
11829
|
width: t = "100%",
|
|
11830
11830
|
height: e = "1.5rem",
|
|
11831
11831
|
borderRadius: n = "4px"
|
|
11832
11832
|
}) => {
|
|
11833
|
-
const { theme: r, palette: l } =
|
|
11833
|
+
const { theme: r, palette: l } = Ae(), i = {
|
|
11834
11834
|
"--tombstone-custom-background": l.PRIMARY.PRIMARY_MEDIUM,
|
|
11835
11835
|
"--tombstone-custom-primary": El(
|
|
11836
11836
|
l.PRIMARY.PRIMARY_DARK,
|
|
@@ -11853,7 +11853,7 @@ const h4 = ({
|
|
|
11853
11853
|
}
|
|
11854
11854
|
}
|
|
11855
11855
|
);
|
|
11856
|
-
},
|
|
11856
|
+
}, jh = (t) => {
|
|
11857
11857
|
const [e, n, r] = t, l = e + n + r;
|
|
11858
11858
|
if (l < 65) {
|
|
11859
11859
|
const i = l / 100;
|
|
@@ -11861,12 +11861,12 @@ const h4 = ({
|
|
|
11861
11861
|
}
|
|
11862
11862
|
return "";
|
|
11863
11863
|
};
|
|
11864
|
-
function
|
|
11864
|
+
function b4({
|
|
11865
11865
|
image: t,
|
|
11866
11866
|
imageUrl: e = "",
|
|
11867
11867
|
onLoad: n
|
|
11868
11868
|
}) {
|
|
11869
|
-
const { palette: r } =
|
|
11869
|
+
const { palette: r } = Ae(), l = Rc(r.BASE_COLOR), i = jh(l);
|
|
11870
11870
|
return /* @__PURE__ */ b.jsxs(
|
|
11871
11871
|
"div",
|
|
11872
11872
|
{
|
|
@@ -11913,35 +11913,35 @@ export {
|
|
|
11913
11913
|
Jh as BadgeVariants,
|
|
11914
11914
|
We as Banner,
|
|
11915
11915
|
Gs as Button,
|
|
11916
|
-
|
|
11917
|
-
|
|
11916
|
+
Tv as ButtonGroup,
|
|
11917
|
+
$4 as COLORS,
|
|
11918
11918
|
s4 as Cell,
|
|
11919
11919
|
u4 as Column,
|
|
11920
11920
|
e4 as Dialog,
|
|
11921
11921
|
t4 as Icon,
|
|
11922
|
-
|
|
11923
|
-
|
|
11922
|
+
b4 as ImageBackground,
|
|
11923
|
+
Kv as Input,
|
|
11924
11924
|
il as Popover,
|
|
11925
11925
|
l4 as ResponsiveMenuTrigger,
|
|
11926
11926
|
o4 as ResponsiveSelect,
|
|
11927
11927
|
c4 as Row,
|
|
11928
|
-
|
|
11928
|
+
mv as ScreenOverlay,
|
|
11929
11929
|
n4 as SearchInput,
|
|
11930
|
-
|
|
11930
|
+
qh as Section,
|
|
11931
11931
|
i4 as Select,
|
|
11932
11932
|
a4 as Switch,
|
|
11933
11933
|
Pt as THEMES,
|
|
11934
|
-
|
|
11935
|
-
|
|
11936
|
-
|
|
11937
|
-
|
|
11938
|
-
|
|
11934
|
+
f4 as Table,
|
|
11935
|
+
d4 as TableBody,
|
|
11936
|
+
Xh as TableHeader,
|
|
11937
|
+
p4 as TextEllipsis,
|
|
11938
|
+
v4 as TextEmphasis,
|
|
11939
11939
|
Zh as ThemeProvider,
|
|
11940
|
-
|
|
11941
|
-
|
|
11942
|
-
|
|
11943
|
-
|
|
11940
|
+
m4 as Tombstone,
|
|
11941
|
+
Ih as Tooltip,
|
|
11942
|
+
Fh as TooltipTrigger,
|
|
11943
|
+
h4 as Waveform,
|
|
11944
11944
|
r4 as usePopoverTrigger,
|
|
11945
|
-
|
|
11945
|
+
Ae as useTheme
|
|
11946
11946
|
};
|
|
11947
11947
|
//# sourceMappingURL=index.es.js.map
|