@protonradio/proton-ui 0.7.8 → 0.7.10
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 +11 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +43 -2
- package/dist/index.es.js +263 -218
- 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 y4 } 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 Te() {
|
|
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, Te(), 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, Te) => {
|
|
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, Te);
|
|
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, Te), 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
|
+
}), Te, Se;
|
|
4212
4212
|
do
|
|
4213
|
-
Se = O.lastChild(), Se && (
|
|
4213
|
+
Se = O.lastChild(), Se && (Te = Se);
|
|
4214
4214
|
while (Se);
|
|
4215
|
-
|
|
4215
|
+
Te && !Te.contains(document.activeElement) && Le(Te);
|
|
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 Yh = 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: Te } = 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: Te,
|
|
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 Ae extends Set {
|
|
7788
7788
|
constructor(e, n, r) {
|
|
7789
|
-
super(e), e instanceof
|
|
7789
|
+
super(e), e instanceof Ae ? (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 Ae()), [
|
|
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 Ae(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 Ae([
|
|
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 Ae(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 Ae(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 Ae([
|
|
8018
8018
|
e
|
|
8019
|
-
], e, e) : new
|
|
8019
|
+
], e, e) : new Ae();
|
|
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 Ae();
|
|
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 Ae());
|
|
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 qh = 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 Xh = Os;
|
|
8734
8734
|
function zs(t) {
|
|
8735
8735
|
return null;
|
|
8736
8736
|
}
|
|
@@ -8823,7 +8823,7 @@ Br.getCollectionNode = function* (e, n) {
|
|
|
8823
8823
|
}
|
|
8824
8824
|
};
|
|
8825
8825
|
};
|
|
8826
|
-
let
|
|
8826
|
+
let uv = 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 sv = js;
|
|
8842
|
+
const cv = 1500, si = 500;
|
|
8843
|
+
let it = {}, dv = 0, Nt = !1, Re = null, ot = null;
|
|
8844
8844
|
function Vs(t = {}) {
|
|
8845
|
-
let { delay: e =
|
|
8845
|
+
let { delay: e = cv, closeDelay: n = si } = t, { isOpen: r, open: l, close: i } = Rn(t), o = V(() => `${++dv}`, []), 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 fv {
|
|
8879
8879
|
*[Symbol.iterator]() {
|
|
8880
8880
|
yield* this.iterable;
|
|
8881
8881
|
}
|
|
@@ -8923,7 +8923,7 @@ class dv {
|
|
|
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 fv(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(pv(n, u));
|
|
8942
8942
|
},
|
|
8943
8943
|
setExpandedKeys: r,
|
|
8944
8944
|
selectionManager: new ll(o, l)
|
|
8945
8945
|
};
|
|
8946
8946
|
}
|
|
8947
|
-
function
|
|
8947
|
+
function pv(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 vv(t = !0) {
|
|
8952
8952
|
Kc(() => {
|
|
8953
8953
|
if (!t) return;
|
|
8954
8954
|
const e = window.getComputedStyle(document.body).overflow;
|
|
@@ -8957,7 +8957,7 @@ function pv(t = !0) {
|
|
|
8957
8957
|
};
|
|
8958
8958
|
}, [t]);
|
|
8959
8959
|
}
|
|
8960
|
-
function
|
|
8960
|
+
function hv({
|
|
8961
8961
|
fadeIn: t = !1,
|
|
8962
8962
|
onClose: e,
|
|
8963
8963
|
children: n
|
|
@@ -8991,8 +8991,8 @@ function vv({
|
|
|
8991
8991
|
}
|
|
8992
8992
|
);
|
|
8993
8993
|
}
|
|
8994
|
-
const
|
|
8995
|
-
const { className: e, style: n } =
|
|
8994
|
+
const mv = ({ children: t }) => {
|
|
8995
|
+
const { className: e, style: n } = ke(), 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 hv = ({ children: t }) => {
|
|
|
9012
9012
|
onClose: s,
|
|
9013
9013
|
"data-testid": c
|
|
9014
9014
|
}) => {
|
|
9015
|
-
|
|
9016
|
-
const { className: d, theme: f } =
|
|
9015
|
+
vv(t);
|
|
9016
|
+
const { className: d, theme: f } = ke(), [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 hv = ({ 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(mv, { 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(hv, { 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 hv = ({ 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
|
+
bv,
|
|
9083
9083
|
{
|
|
9084
9084
|
item: E,
|
|
9085
9085
|
state: k,
|
|
@@ -9112,7 +9112,7 @@ const hv = ({ children: t }) => {
|
|
|
9112
9112
|
) })
|
|
9113
9113
|
}
|
|
9114
9114
|
) }) : null;
|
|
9115
|
-
},
|
|
9115
|
+
}, bv = ({ 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 hv = ({ children: t }) => {
|
|
|
9132
9132
|
},
|
|
9133
9133
|
n.rendered
|
|
9134
9134
|
);
|
|
9135
|
-
}, Us = Q(void 0),
|
|
9135
|
+
}, Us = Q(void 0), ke = () => {
|
|
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
|
+
}, gv = {
|
|
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 hv = ({ 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 = gv[t], i = V(
|
|
9150
|
+
() => $v(n, t),
|
|
9151
9151
|
[n, t]
|
|
9152
9152
|
);
|
|
9153
9153
|
return L(() => {
|
|
@@ -9166,7 +9166,7 @@ const hv = ({ children: t }) => {
|
|
|
9166
9166
|
children: /* @__PURE__ */ b.jsx("div", { ref: r, children: e })
|
|
9167
9167
|
}
|
|
9168
9168
|
);
|
|
9169
|
-
},
|
|
9169
|
+
}, yv = (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 hv = ({ 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 $v(t, e) {
|
|
9192
|
+
const n = Gn(t.BRAND.PRIMARY, 0.6), r = Gn(t.BRAND.PRIMARY_LIGHT, 0.4), l = yv(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 } = ke();
|
|
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
|
+
}, xv = {
|
|
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
|
+
}, Ev = {
|
|
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
|
+
) }), Sv = ({ 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
|
+
}, Cv = ({ 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
|
+
}, wv = ({ 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
|
+
}, Pv = ({ children: t, ...e }) => /* @__PURE__ */ b.jsx(Gs, { ...e, children: t }), Dv = ({ children: t }) => /* @__PURE__ */ b.jsx("div", { className: "proton-Banner__actions", children: t });
|
|
9427
|
+
We.Title = Sv;
|
|
9428
|
+
We.Content = Cv;
|
|
9429
|
+
We.Icon = wv;
|
|
9430
|
+
We.Action = Pv;
|
|
9431
|
+
We.Actions = Dv;
|
|
9432
|
+
We.colors = xv;
|
|
9433
9433
|
We.icons = Ys;
|
|
9434
|
-
We.variants =
|
|
9434
|
+
We.variants = Ev;
|
|
9435
9435
|
let qs = Q(null);
|
|
9436
|
-
function
|
|
9436
|
+
function kv(t) {
|
|
9437
9437
|
let e = {
|
|
9438
9438
|
...t,
|
|
9439
9439
|
"data-testid": void 0
|
|
@@ -9449,7 +9449,7 @@ function Dv(t) {
|
|
|
9449
9449
|
}
|
|
9450
9450
|
);
|
|
9451
9451
|
}
|
|
9452
|
-
|
|
9452
|
+
kv.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 Tv = "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 Av(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: `${Tv}#${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(Av, { ...t })
|
|
9501
9501
|
] }) : null;
|
|
9502
9502
|
}
|
|
9503
|
-
const
|
|
9503
|
+
const Bv = dt(
|
|
9504
9504
|
({
|
|
9505
9505
|
prefix: t,
|
|
9506
9506
|
suffix: e,
|
|
@@ -9518,7 +9518,7 @@ const Av = 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: $ } = ke(), 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 Av = dt(
|
|
|
9638
9638
|
"data-testid": u,
|
|
9639
9639
|
role: "search",
|
|
9640
9640
|
children: /* @__PURE__ */ b.jsx(
|
|
9641
|
-
|
|
9641
|
+
Bv,
|
|
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 } = ke();
|
|
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 Kv {
|
|
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 Mv 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), Iv = typeof DocumentFragment < "u" ? new DocumentFragment() : null;
|
|
10097
|
+
function Fv(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 Iv(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, Iv);
|
|
10107
10107
|
}
|
|
10108
|
-
function
|
|
10108
|
+
function _v(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 Rv() {
|
|
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 Nv() {
|
|
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 Rv() {
|
|
|
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 = Rv() : Mr.exports = Nv();
|
|
10239
|
+
var Lv = Mr.exports;
|
|
10240
10240
|
const Js = /* @__PURE__ */ Q(!1), Gt = /* @__PURE__ */ Q(null);
|
|
10241
|
-
function
|
|
10241
|
+
function Ov(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 } = Hv(t.createCollection);
|
|
10245
|
+
return /* @__PURE__ */ A.createElement(A.Fragment, null, /* @__PURE__ */ A.createElement(Fv, null, /* @__PURE__ */ A.createElement(Gt.Provider, {
|
|
10246
10246
|
value: r
|
|
10247
|
-
}, t.content)), /* @__PURE__ */ A.createElement(
|
|
10247
|
+
}, t.content)), /* @__PURE__ */ A.createElement(zv, {
|
|
10248
10248
|
render: t.children,
|
|
10249
10249
|
collection: n
|
|
10250
10250
|
}));
|
|
10251
10251
|
}
|
|
10252
|
-
function
|
|
10252
|
+
function zv({ collection: t, render: e }) {
|
|
10253
10253
|
return e(t);
|
|
10254
10254
|
}
|
|
10255
|
-
function
|
|
10255
|
+
function jv(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 Lv.useSyncExternalStore(t, i);
|
|
10263
10263
|
}
|
|
10264
|
-
const
|
|
10265
|
-
function
|
|
10266
|
-
let [e] = z(() => new
|
|
10264
|
+
const Vv = typeof A.useSyncExternalStore == "function" ? A.useSyncExternalStore : jv;
|
|
10265
|
+
function Hv(t) {
|
|
10266
|
+
let [e] = z(() => new Mv((t == null ? void 0 : t()) || new Kv())), n = X((o) => e.subscribe(o), [
|
|
10267
10267
|
e
|
|
10268
10268
|
]), r = X(() => {
|
|
10269
10269
|
let o = e.getCollection();
|
|
@@ -10272,7 +10272,7 @@ function Vv(t) {
|
|
|
10272
10272
|
e
|
|
10273
10273
|
]), l = X(() => (e.isSSR = !0, e.getCollection()), [
|
|
10274
10274
|
e
|
|
10275
|
-
]), i =
|
|
10275
|
+
]), i = Vv(n, r, l);
|
|
10276
10276
|
return J(() => (e.isMounted = !0, () => {
|
|
10277
10277
|
e.isMounted = !1;
|
|
10278
10278
|
}), [
|
|
@@ -10283,7 +10283,7 @@ function Vv(t) {
|
|
|
10283
10283
|
};
|
|
10284
10284
|
}
|
|
10285
10285
|
const Ir = /* @__PURE__ */ Q(null);
|
|
10286
|
-
function
|
|
10286
|
+
function Wv(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 Hv(t, e, n, r, l, i) {
|
|
|
10302
10302
|
ref: o
|
|
10303
10303
|
}, l);
|
|
10304
10304
|
}
|
|
10305
|
-
function
|
|
10305
|
+
function Uv(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 Wv(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 Gv(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 Yv(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 = Gv({
|
|
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(qv, null, l)), e = V(() => ({
|
|
10331
10331
|
dependencies: n,
|
|
10332
10332
|
idScope: r
|
|
10333
10333
|
}), [
|
|
@@ -10337,7 +10337,7 @@ function Gv(t) {
|
|
|
10337
10337
|
value: e
|
|
10338
10338
|
}, l);
|
|
10339
10339
|
}
|
|
10340
|
-
function
|
|
10340
|
+
function qv({ 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 Yv({ children: t }) {
|
|
|
10349
10349
|
value: e
|
|
10350
10350
|
}, n) : /* @__PURE__ */ gi(n, e);
|
|
10351
10351
|
}
|
|
10352
|
-
const
|
|
10352
|
+
const Xv = /* @__PURE__ */ Q(null), Zv = {
|
|
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(Zv);
|
|
10384
|
+
function Jv(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 Qv() {
|
|
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 Jv() {
|
|
|
10478
10478
|
t
|
|
10479
10479
|
];
|
|
10480
10480
|
}
|
|
10481
|
-
function
|
|
10481
|
+
function eh(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 th(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 nh = /* @__PURE__ */ Q(null), rh = /* @__PURE__ */ new Set([
|
|
10514
10514
|
"form",
|
|
10515
10515
|
"formAction",
|
|
10516
10516
|
"formEncType",
|
|
@@ -10519,9 +10519,9 @@ const th = /* @__PURE__ */ Q(null), nh = /* @__PURE__ */ new Set([
|
|
|
10519
10519
|
"formTarget",
|
|
10520
10520
|
"name",
|
|
10521
10521
|
"value"
|
|
10522
|
-
]),
|
|
10523
|
-
function
|
|
10524
|
-
[t, e] = Zt(t, e,
|
|
10522
|
+
]), lh = /* @__PURE__ */ Q({});
|
|
10523
|
+
function ih(t, e) {
|
|
10524
|
+
[t, e] = Zt(t, e, lh), t = oh(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 lh(t, e) {
|
|
|
10551
10551
|
p
|
|
10552
10552
|
]), /* @__PURE__ */ A.createElement("button", {
|
|
10553
10553
|
...fe(t, {
|
|
10554
|
-
propNames:
|
|
10554
|
+
propNames: rh
|
|
10555
10555
|
}),
|
|
10556
10556
|
...H(l, o, s),
|
|
10557
10557
|
...f,
|
|
@@ -10566,19 +10566,19 @@ function lh(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(nh.Provider, {
|
|
10570
10570
|
value: {
|
|
10571
10571
|
id: m
|
|
10572
10572
|
}
|
|
10573
10573
|
}, f.children));
|
|
10574
10574
|
}
|
|
10575
|
-
function
|
|
10575
|
+
function oh(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__ */ _v(ih), ah = /* @__PURE__ */ Q({}), uh = /* @__PURE__ */ Q({}), sh = /* @__PURE__ */ Q({}), rc = /* @__PURE__ */ Q({
|
|
10579
10579
|
placement: "bottom"
|
|
10580
10580
|
});
|
|
10581
|
-
function
|
|
10581
|
+
function ch(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 sh(t, e) {
|
|
|
10602
10602
|
"data-placement": n
|
|
10603
10603
|
});
|
|
10604
10604
|
}
|
|
10605
|
-
const
|
|
10606
|
-
function
|
|
10605
|
+
const dh = /* @__PURE__ */ dt(ch), Fr = /* @__PURE__ */ Q(null), fh = /* @__PURE__ */ Q(null), ph = /* @__PURE__ */ Q({}), lc = /* @__PURE__ */ Q(null), al = /* @__PURE__ */ Q(null), ic = /* @__PURE__ */ Q(null);
|
|
10606
|
+
function vh(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 ph(t) {
|
|
|
10627
10627
|
}
|
|
10628
10628
|
],
|
|
10629
10629
|
[
|
|
10630
|
-
|
|
10630
|
+
fh,
|
|
10631
10631
|
e
|
|
10632
10632
|
],
|
|
10633
10633
|
[
|
|
@@ -10653,17 +10653,17 @@ function ph(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 hh = /* @__PURE__ */ Q(null);
|
|
10657
|
+
function mh(t, e) {
|
|
10658
|
+
return [t, e] = Zt(t, e, lc), /* @__PURE__ */ A.createElement(Ov, {
|
|
10659
|
+
content: /* @__PURE__ */ A.createElement(Yv, t)
|
|
10660
|
+
}, (n) => n.size > 0 && /* @__PURE__ */ A.createElement(bh, {
|
|
10661
10661
|
props: t,
|
|
10662
10662
|
collection: n,
|
|
10663
10663
|
menuRef: e
|
|
10664
10664
|
}));
|
|
10665
10665
|
}
|
|
10666
|
-
function
|
|
10666
|
+
function bh({ props: t, collection: e, menuRef: n }) {
|
|
10667
10667
|
let r = Hs({
|
|
10668
10668
|
...t,
|
|
10669
10669
|
collection: e,
|
|
@@ -10714,7 +10714,7 @@ function mh({ props: t, collection: e, menuRef: n }) {
|
|
|
10714
10714
|
r
|
|
10715
10715
|
],
|
|
10716
10716
|
[
|
|
10717
|
-
|
|
10717
|
+
sh,
|
|
10718
10718
|
{
|
|
10719
10719
|
elementType: "div"
|
|
10720
10720
|
}
|
|
@@ -10726,13 +10726,13 @@ function mh({ props: t, collection: e, menuRef: n }) {
|
|
|
10726
10726
|
}
|
|
10727
10727
|
],
|
|
10728
10728
|
[
|
|
10729
|
-
|
|
10729
|
+
Xv,
|
|
10730
10730
|
{
|
|
10731
|
-
render:
|
|
10731
|
+
render: yh
|
|
10732
10732
|
}
|
|
10733
10733
|
],
|
|
10734
10734
|
[
|
|
10735
|
-
|
|
10735
|
+
hh,
|
|
10736
10736
|
{
|
|
10737
10737
|
parentMenuRef: n
|
|
10738
10738
|
}
|
|
@@ -10744,7 +10744,7 @@ function mh({ props: t, collection: e, menuRef: n }) {
|
|
|
10744
10744
|
]
|
|
10745
10745
|
}, /* @__PURE__ */ A.createElement(a, {
|
|
10746
10746
|
collection: e,
|
|
10747
|
-
persistedKeys:
|
|
10747
|
+
persistedKeys: Jv(r.selectionManager.focusedKey),
|
|
10748
10748
|
scrollRef: n
|
|
10749
10749
|
}))), /* @__PURE__ */ A.createElement("div", {
|
|
10750
10750
|
ref: i,
|
|
@@ -10756,10 +10756,10 @@ function mh({ props: t, collection: e, menuRef: n }) {
|
|
|
10756
10756
|
}
|
|
10757
10757
|
}));
|
|
10758
10758
|
}
|
|
10759
|
-
const
|
|
10760
|
-
function
|
|
10759
|
+
const gh = /* @__PURE__ */ dt(mh);
|
|
10760
|
+
function yh(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] = Qv();
|
|
10763
10763
|
var s;
|
|
10764
10764
|
let { headingProps: c, groupProps: d } = up({
|
|
10765
10765
|
heading: u,
|
|
@@ -10775,7 +10775,7 @@ function gh(t, e, n) {
|
|
|
10775
10775
|
...d,
|
|
10776
10776
|
...f,
|
|
10777
10777
|
ref: e
|
|
10778
|
-
}, /* @__PURE__ */ A.createElement(
|
|
10778
|
+
}, /* @__PURE__ */ A.createElement(uh.Provider, {
|
|
10779
10779
|
value: {
|
|
10780
10780
|
...c,
|
|
10781
10781
|
ref: a
|
|
@@ -10785,7 +10785,7 @@ function gh(t, e, n) {
|
|
|
10785
10785
|
parent: n
|
|
10786
10786
|
})));
|
|
10787
10787
|
}
|
|
10788
|
-
const _r = /* @__PURE__ */ Q(null),
|
|
10788
|
+
const _r = /* @__PURE__ */ Q(null), $h = /* @__PURE__ */ Uv("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), yh = /* @__PURE__ */ Wv("item", function(e,
|
|
|
10825
10825
|
}, /* @__PURE__ */ A.createElement(Ln, {
|
|
10826
10826
|
values: [
|
|
10827
10827
|
[
|
|
10828
|
-
|
|
10828
|
+
ah,
|
|
10829
10829
|
{
|
|
10830
10830
|
slots: {
|
|
10831
10831
|
label: s,
|
|
@@ -10834,13 +10834,13 @@ const _r = /* @__PURE__ */ Q(null), yh = /* @__PURE__ */ Wv("item", function(e,
|
|
|
10834
10834
|
}
|
|
10835
10835
|
],
|
|
10836
10836
|
[
|
|
10837
|
-
|
|
10837
|
+
ph,
|
|
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 xh(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 $h(t) {
|
|
|
10861
10861
|
ref: n
|
|
10862
10862
|
}, t.children));
|
|
10863
10863
|
}
|
|
10864
|
-
function
|
|
10864
|
+
function Eh({ 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 = th(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(Ch, {
|
|
10870
10870
|
...e,
|
|
10871
10871
|
tooltipRef: n,
|
|
10872
10872
|
isExiting: o
|
|
10873
10873
|
}));
|
|
10874
10874
|
}
|
|
10875
|
-
const
|
|
10876
|
-
function
|
|
10875
|
+
const Sh = /* @__PURE__ */ dt(Eh);
|
|
10876
|
+
function Ch(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 Sh(t) {
|
|
|
10891
10891
|
arrowSize: r,
|
|
10892
10892
|
arrowBoundaryOffset: t.arrowBoundaryOffset,
|
|
10893
10893
|
shouldFlip: t.shouldFlip
|
|
10894
|
-
}), u =
|
|
10894
|
+
}), u = eh(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 wh = ({ 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 } = ke(), 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(wh, { 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(vh, { 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
|
+
gh,
|
|
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
|
+
$h,
|
|
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(Ph, { item: l, state: n }, l.key))
|
|
11043
11043
|
}
|
|
11044
11044
|
) });
|
|
11045
11045
|
};
|
|
11046
|
-
function
|
|
11046
|
+
function Ph({ 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 Dh({
|
|
11093
11093
|
label: t,
|
|
11094
11094
|
name: e,
|
|
11095
11095
|
isDisabled: n,
|
|
@@ -11201,10 +11201,10 @@ function Ph({
|
|
|
11201
11201
|
);
|
|
11202
11202
|
}
|
|
11203
11203
|
const i4 = {
|
|
11204
|
-
Menu:
|
|
11204
|
+
Menu: Dh,
|
|
11205
11205
|
Option: Xr
|
|
11206
11206
|
};
|
|
11207
|
-
function
|
|
11207
|
+
function kh({
|
|
11208
11208
|
label: t,
|
|
11209
11209
|
name: e,
|
|
11210
11210
|
isDisabled: n,
|
|
@@ -11315,7 +11315,7 @@ function Dh({
|
|
|
11315
11315
|
);
|
|
11316
11316
|
}
|
|
11317
11317
|
const o4 = {
|
|
11318
|
-
Menu:
|
|
11318
|
+
Menu: kh,
|
|
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 Th({ 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 Ah({ column: t, state: e }) {
|
|
11355
11355
|
var u, s;
|
|
11356
11356
|
let n = M(), { columnHeaderProps: r } = Op(
|
|
11357
11357
|
{ node: t },
|
|
@@ -11402,30 +11402,36 @@ function hi({ type: t, children: e }) {
|
|
|
11402
11402
|
}
|
|
11403
11403
|
);
|
|
11404
11404
|
}
|
|
11405
|
-
function
|
|
11406
|
-
|
|
11405
|
+
function Bh({
|
|
11406
|
+
item: t,
|
|
11407
|
+
children: e,
|
|
11408
|
+
state: n,
|
|
11409
|
+
backgroundColor: r
|
|
11410
|
+
}) {
|
|
11411
|
+
let l = M(), i = n.selectionManager.isSelected(t.key), { rowProps: o, isPressed: a } = zp(
|
|
11407
11412
|
{
|
|
11408
11413
|
node: t
|
|
11409
11414
|
},
|
|
11410
11415
|
n,
|
|
11411
|
-
|
|
11412
|
-
), { isFocusVisible:
|
|
11416
|
+
l
|
|
11417
|
+
), { isFocusVisible: u, focusProps: s } = Xt();
|
|
11413
11418
|
return /* @__PURE__ */ b.jsx(
|
|
11414
11419
|
"tr",
|
|
11415
11420
|
{
|
|
11416
11421
|
className: W(
|
|
11417
11422
|
"proton-Table__row",
|
|
11418
|
-
|
|
11419
|
-
|
|
11420
|
-
|
|
11423
|
+
i ? "proton-Table__row--selected" : null,
|
|
11424
|
+
a ? "proton-Table__row--pressed" : null,
|
|
11425
|
+
u ? "proton-Table__row--focused" : null
|
|
11421
11426
|
),
|
|
11422
|
-
|
|
11423
|
-
|
|
11427
|
+
style: r ? { backgroundColor: r } : void 0,
|
|
11428
|
+
...H(o, s),
|
|
11429
|
+
ref: l,
|
|
11424
11430
|
children: e
|
|
11425
11431
|
}
|
|
11426
11432
|
);
|
|
11427
11433
|
}
|
|
11428
|
-
function
|
|
11434
|
+
function Kh({ cell: t, state: e, ...n }) {
|
|
11429
11435
|
let r = M(), { gridCellProps: l } = Vp({ node: t }, e, r), { isFocusVisible: i, focusProps: o } = Xt();
|
|
11430
11436
|
const { align: a } = t.props;
|
|
11431
11437
|
return /* @__PURE__ */ b.jsx(
|
|
@@ -11442,8 +11448,8 @@ function Bh({ cell: t, state: e, ...n }) {
|
|
|
11442
11448
|
}
|
|
11443
11449
|
);
|
|
11444
11450
|
}
|
|
11445
|
-
const u4 = av, s4 = uv;
|
|
11446
|
-
function
|
|
11451
|
+
const u4 = av, s4 = sv, c4 = uv;
|
|
11452
|
+
function d4(t) {
|
|
11447
11453
|
let e = ov({
|
|
11448
11454
|
...t
|
|
11449
11455
|
}), n = M(), { collection: r } = e, { gridProps: l } = Np(
|
|
@@ -11452,33 +11458,71 @@ function c4(t) {
|
|
|
11452
11458
|
n
|
|
11453
11459
|
);
|
|
11454
11460
|
return /* @__PURE__ */ b.jsxs("table", { ...l, ref: n, className: W("proton-Table"), children: [
|
|
11455
|
-
/* @__PURE__ */ b.jsx(hi, { type: "thead", children: r.headerRows.map((i) => /* @__PURE__ */ b.jsx(
|
|
11456
|
-
|
|
11461
|
+
/* @__PURE__ */ b.jsx(hi, { type: "thead", children: r.headerRows.map((i) => /* @__PURE__ */ b.jsx(Th, { item: i, state: e, children: Array.from(r.getChildren(i.key)).map((o) => /* @__PURE__ */ b.jsx(
|
|
11462
|
+
Ah,
|
|
11457
11463
|
{
|
|
11458
11464
|
column: o,
|
|
11459
11465
|
state: e
|
|
11460
11466
|
},
|
|
11461
11467
|
o.key
|
|
11462
11468
|
)) }, i.key)) }),
|
|
11463
|
-
/* @__PURE__ */ b.jsx(hi, { type: "tbody", children: Array.from(r.body.childNodes).map((i) => /* @__PURE__ */ b.jsx(
|
|
11469
|
+
/* @__PURE__ */ b.jsx(hi, { type: "tbody", children: Array.from(r.body.childNodes).map((i) => /* @__PURE__ */ b.jsx(
|
|
11470
|
+
Bh,
|
|
11471
|
+
{
|
|
11472
|
+
item: i,
|
|
11473
|
+
state: e,
|
|
11474
|
+
backgroundColor: i.props.backgroundColor,
|
|
11475
|
+
children: Array.from(r.getChildren(i.key)).map((o) => /* @__PURE__ */ b.jsx(Kh, { cell: o, state: e }, o.key))
|
|
11476
|
+
},
|
|
11477
|
+
i.key
|
|
11478
|
+
)) })
|
|
11464
11479
|
] });
|
|
11465
11480
|
}
|
|
11466
|
-
|
|
11467
|
-
|
|
11481
|
+
const f4 = ({
|
|
11482
|
+
children: t,
|
|
11483
|
+
maxWidth: e,
|
|
11484
|
+
singleLine: n = !0,
|
|
11485
|
+
lines: r = 1,
|
|
11486
|
+
title: l,
|
|
11487
|
+
className: i,
|
|
11488
|
+
"data-testid": o
|
|
11489
|
+
}) => {
|
|
11490
|
+
const { className: a } = ke(), u = l || (typeof t == "string" ? t : void 0);
|
|
11491
|
+
return /* @__PURE__ */ b.jsx(
|
|
11492
|
+
"div",
|
|
11493
|
+
{
|
|
11494
|
+
className: W(
|
|
11495
|
+
"proton-TextEllipsis",
|
|
11496
|
+
n || r === 1 ? "proton-TextEllipsis--single-line" : r > 1 ? "proton-TextEllipsis--multi-line" : "",
|
|
11497
|
+
i,
|
|
11498
|
+
a
|
|
11499
|
+
),
|
|
11500
|
+
style: {
|
|
11501
|
+
maxWidth: e,
|
|
11502
|
+
WebkitLineClamp: r
|
|
11503
|
+
},
|
|
11504
|
+
title: u,
|
|
11505
|
+
"data-testid": o,
|
|
11506
|
+
children: t
|
|
11507
|
+
}
|
|
11508
|
+
);
|
|
11509
|
+
};
|
|
11510
|
+
function Mh({ children: t, arrow: e, ...n }) {
|
|
11511
|
+
const { style: r, className: l } = ke();
|
|
11468
11512
|
return /* @__PURE__ */ b.jsxs(
|
|
11469
|
-
|
|
11513
|
+
Sh,
|
|
11470
11514
|
{
|
|
11471
11515
|
...n,
|
|
11472
11516
|
className: W("proton__Tooltip", "proton-Dialog", l),
|
|
11473
11517
|
style: r,
|
|
11474
11518
|
children: [
|
|
11475
|
-
e && /* @__PURE__ */ b.jsx(
|
|
11519
|
+
e && /* @__PURE__ */ b.jsx(dh, { 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" }) }) }),
|
|
11476
11520
|
t
|
|
11477
11521
|
]
|
|
11478
11522
|
}
|
|
11479
11523
|
);
|
|
11480
11524
|
}
|
|
11481
|
-
function
|
|
11525
|
+
function Ih({
|
|
11482
11526
|
children: t,
|
|
11483
11527
|
// trigger props
|
|
11484
11528
|
delay: e = 500,
|
|
@@ -11493,7 +11537,7 @@ function Mh({
|
|
|
11493
11537
|
}) {
|
|
11494
11538
|
const [s, c] = z(!1), d = M(!1), f = M(!1);
|
|
11495
11539
|
return /* @__PURE__ */ b.jsxs(
|
|
11496
|
-
|
|
11540
|
+
xh,
|
|
11497
11541
|
{
|
|
11498
11542
|
delay: e,
|
|
11499
11543
|
closeDelay: n,
|
|
@@ -11515,18 +11559,18 @@ function Mh({
|
|
|
11515
11559
|
children: t
|
|
11516
11560
|
}
|
|
11517
11561
|
),
|
|
11518
|
-
/* @__PURE__ */ b.jsx(
|
|
11562
|
+
/* @__PURE__ */ b.jsx(Mh, { ...u, children: a })
|
|
11519
11563
|
]
|
|
11520
11564
|
}
|
|
11521
11565
|
);
|
|
11522
11566
|
}
|
|
11523
|
-
const
|
|
11567
|
+
const p4 = ({
|
|
11524
11568
|
to: t,
|
|
11525
11569
|
children: e,
|
|
11526
11570
|
tooltipProps: n,
|
|
11527
11571
|
"data-testid": r
|
|
11528
11572
|
}) => {
|
|
11529
|
-
const { className: l } =
|
|
11573
|
+
const { className: l } = ke(), i = n ? /* @__PURE__ */ b.jsx(Ih, { delay: 50, closeDelay: 75, ...n, children: e }) : e;
|
|
11530
11574
|
if (t) {
|
|
11531
11575
|
const o = Nr(t);
|
|
11532
11576
|
return /* @__PURE__ */ b.jsx(
|
|
@@ -11564,7 +11608,7 @@ const d4 = ({
|
|
|
11564
11608
|
}
|
|
11565
11609
|
);
|
|
11566
11610
|
};
|
|
11567
|
-
function
|
|
11611
|
+
function Fh({
|
|
11568
11612
|
amplitude: t,
|
|
11569
11613
|
isDisabled: e,
|
|
11570
11614
|
isPlayed: n,
|
|
@@ -11632,8 +11676,8 @@ function Ih({
|
|
|
11632
11676
|
}
|
|
11633
11677
|
);
|
|
11634
11678
|
}
|
|
11635
|
-
const
|
|
11636
|
-
function
|
|
11679
|
+
const _h = Oh(100);
|
|
11680
|
+
function v4({
|
|
11637
11681
|
data: t,
|
|
11638
11682
|
resolution: e = 2,
|
|
11639
11683
|
startDuration: n,
|
|
@@ -11645,11 +11689,11 @@ function f4({
|
|
|
11645
11689
|
"data-testid": u
|
|
11646
11690
|
}) {
|
|
11647
11691
|
var E;
|
|
11648
|
-
const { className: s } =
|
|
11692
|
+
const { className: s } = ke(), c = M(null), [d, f] = z([]), [p, m] = z(null), [y, g] = z(!1), [C, S] = z(!1), $ = t || _h, D = e;
|
|
11649
11693
|
L(() => {
|
|
11650
11694
|
if (!c.current) return;
|
|
11651
11695
|
const w = (F) => {
|
|
11652
|
-
const T = Math.floor(F / (e + D)), U =
|
|
11696
|
+
const T = Math.floor(F / (e + D)), U = Nh($, T);
|
|
11653
11697
|
f(U);
|
|
11654
11698
|
}, I = c.current.clientWidth;
|
|
11655
11699
|
w(I);
|
|
@@ -11711,7 +11755,7 @@ function f4({
|
|
|
11711
11755
|
d.map((w, I) => {
|
|
11712
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;
|
|
11713
11757
|
return /* @__PURE__ */ b.jsx(
|
|
11714
|
-
|
|
11758
|
+
Fh,
|
|
11715
11759
|
{
|
|
11716
11760
|
amplitude: w,
|
|
11717
11761
|
isDisabled: F,
|
|
@@ -11753,40 +11797,40 @@ function mi({
|
|
|
11753
11797
|
"proton-Waveform__timestamp",
|
|
11754
11798
|
`proton-Waveform__timestamp--${t}`
|
|
11755
11799
|
),
|
|
11756
|
-
children:
|
|
11800
|
+
children: Rh(e)
|
|
11757
11801
|
}
|
|
11758
11802
|
);
|
|
11759
11803
|
}
|
|
11760
|
-
function
|
|
11804
|
+
function Rh(t) {
|
|
11761
11805
|
const e = Math.floor(t / 60), n = Math.floor(t % 60);
|
|
11762
11806
|
return `${e}:${n < 10 ? "0" : ""}${n.toFixed(0)}`;
|
|
11763
11807
|
}
|
|
11764
|
-
function
|
|
11808
|
+
function Nh(t, e) {
|
|
11765
11809
|
const n = t.length, r = n / e, l = new Array(e).fill(0).map((i, o) => {
|
|
11766
11810
|
const a = o * r, u = Math.floor(a), s = Math.min(u + 1, n - 1), c = a - u;
|
|
11767
11811
|
return t[u] * (1 - c) + t[s] * c;
|
|
11768
11812
|
});
|
|
11769
|
-
return
|
|
11813
|
+
return Lh(l);
|
|
11770
11814
|
}
|
|
11771
|
-
function
|
|
11815
|
+
function Lh(t) {
|
|
11772
11816
|
const e = Math.min(...t), n = Math.max(...t);
|
|
11773
11817
|
return t.map((r) => {
|
|
11774
11818
|
const l = (r - e) / (n - e);
|
|
11775
11819
|
return Math.max(l * 0.8 + 0.1, 0.1);
|
|
11776
11820
|
});
|
|
11777
11821
|
}
|
|
11778
|
-
function
|
|
11822
|
+
function Oh(t) {
|
|
11779
11823
|
return Array.from({ length: t }, (e, n) => {
|
|
11780
11824
|
const l = n / (t - 1) * 6 * 2 * Math.PI - Math.PI / 2;
|
|
11781
11825
|
return Math.sin(l) * 0.5 + 0.5;
|
|
11782
11826
|
});
|
|
11783
11827
|
}
|
|
11784
|
-
const
|
|
11828
|
+
const h4 = ({
|
|
11785
11829
|
width: t = "100%",
|
|
11786
11830
|
height: e = "1.5rem",
|
|
11787
11831
|
borderRadius: n = "4px"
|
|
11788
11832
|
}) => {
|
|
11789
|
-
const { theme: r, palette: l } =
|
|
11833
|
+
const { theme: r, palette: l } = ke(), i = {
|
|
11790
11834
|
"--tombstone-custom-background": l.PRIMARY.PRIMARY_MEDIUM,
|
|
11791
11835
|
"--tombstone-custom-primary": El(
|
|
11792
11836
|
l.PRIMARY.PRIMARY_DARK,
|
|
@@ -11809,7 +11853,7 @@ const p4 = ({
|
|
|
11809
11853
|
}
|
|
11810
11854
|
}
|
|
11811
11855
|
);
|
|
11812
|
-
},
|
|
11856
|
+
}, zh = (t) => {
|
|
11813
11857
|
const [e, n, r] = t, l = e + n + r;
|
|
11814
11858
|
if (l < 65) {
|
|
11815
11859
|
const i = l / 100;
|
|
@@ -11817,12 +11861,12 @@ const p4 = ({
|
|
|
11817
11861
|
}
|
|
11818
11862
|
return "";
|
|
11819
11863
|
};
|
|
11820
|
-
function
|
|
11864
|
+
function m4({
|
|
11821
11865
|
image: t,
|
|
11822
11866
|
imageUrl: e = "",
|
|
11823
11867
|
onLoad: n
|
|
11824
11868
|
}) {
|
|
11825
|
-
const { palette: r } =
|
|
11869
|
+
const { palette: r } = ke(), l = Rc(r.BASE_COLOR), i = zh(l);
|
|
11826
11870
|
return /* @__PURE__ */ b.jsxs(
|
|
11827
11871
|
"div",
|
|
11828
11872
|
{
|
|
@@ -11869,34 +11913,35 @@ export {
|
|
|
11869
11913
|
Jh as BadgeVariants,
|
|
11870
11914
|
We as Banner,
|
|
11871
11915
|
Gs as Button,
|
|
11872
|
-
|
|
11873
|
-
|
|
11916
|
+
kv as ButtonGroup,
|
|
11917
|
+
y4 as COLORS,
|
|
11874
11918
|
s4 as Cell,
|
|
11875
11919
|
u4 as Column,
|
|
11876
11920
|
e4 as Dialog,
|
|
11877
11921
|
t4 as Icon,
|
|
11878
|
-
|
|
11879
|
-
|
|
11922
|
+
m4 as ImageBackground,
|
|
11923
|
+
Bv as Input,
|
|
11880
11924
|
il as Popover,
|
|
11881
11925
|
l4 as ResponsiveMenuTrigger,
|
|
11882
11926
|
o4 as ResponsiveSelect,
|
|
11883
|
-
|
|
11884
|
-
|
|
11927
|
+
c4 as Row,
|
|
11928
|
+
hv as ScreenOverlay,
|
|
11885
11929
|
n4 as SearchInput,
|
|
11886
|
-
|
|
11930
|
+
Yh as Section,
|
|
11887
11931
|
i4 as Select,
|
|
11888
11932
|
a4 as Switch,
|
|
11889
11933
|
Pt as THEMES,
|
|
11890
|
-
|
|
11891
|
-
|
|
11892
|
-
|
|
11893
|
-
|
|
11934
|
+
d4 as Table,
|
|
11935
|
+
Xh as TableBody,
|
|
11936
|
+
qh as TableHeader,
|
|
11937
|
+
f4 as TextEllipsis,
|
|
11938
|
+
p4 as TextEmphasis,
|
|
11894
11939
|
Zh as ThemeProvider,
|
|
11895
|
-
|
|
11896
|
-
|
|
11897
|
-
|
|
11898
|
-
|
|
11940
|
+
h4 as Tombstone,
|
|
11941
|
+
Mh as Tooltip,
|
|
11942
|
+
Ih as TooltipTrigger,
|
|
11943
|
+
v4 as Waveform,
|
|
11899
11944
|
r4 as usePopoverTrigger,
|
|
11900
|
-
|
|
11945
|
+
ke as useTheme
|
|
11901
11946
|
};
|
|
11902
11947
|
//# sourceMappingURL=index.es.js.map
|