@plusrouter/ui 0.1.28 → 0.1.30
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.
|
@@ -3522,7 +3522,7 @@ function tw(e) {
|
|
|
3522
3522
|
function rw(e) {
|
|
3523
3523
|
return e === x.Button_Link_Extra_Small_1 || e === x.Button_Link_Extra_Small_2 ? Ne.Small : Ne.Medium;
|
|
3524
3524
|
}
|
|
3525
|
-
const
|
|
3525
|
+
const h = H(
|
|
3526
3526
|
({
|
|
3527
3527
|
variant: e = "text",
|
|
3528
3528
|
textVariant: s = x.Button_Link_Medium_1,
|
|
@@ -3532,7 +3532,7 @@ const Y = H(
|
|
|
3532
3532
|
children: r,
|
|
3533
3533
|
..._
|
|
3534
3534
|
}, a) => {
|
|
3535
|
-
const j = !lw.has(e), y = j ? tw(s) : void 0, d = j ? rw(s) : void 0,
|
|
3535
|
+
const j = !lw.has(e), y = j ? tw(s) : void 0, d = j ? rw(s) : void 0, L = N(
|
|
3536
3536
|
oe["rp-button"],
|
|
3537
3537
|
oe[`rp-button--${e}`],
|
|
3538
3538
|
Se["rp-text"],
|
|
@@ -3545,7 +3545,7 @@ const Y = H(
|
|
|
3545
3545
|
"a",
|
|
3546
3546
|
{
|
|
3547
3547
|
ref: a,
|
|
3548
|
-
className:
|
|
3548
|
+
className: L,
|
|
3549
3549
|
href: l,
|
|
3550
3550
|
..._,
|
|
3551
3551
|
children: r
|
|
@@ -3554,7 +3554,7 @@ const Y = H(
|
|
|
3554
3554
|
"button",
|
|
3555
3555
|
{
|
|
3556
3556
|
ref: a,
|
|
3557
|
-
className:
|
|
3557
|
+
className: L,
|
|
3558
3558
|
type: t,
|
|
3559
3559
|
..._,
|
|
3560
3560
|
children: r
|
|
@@ -3562,7 +3562,7 @@ const Y = H(
|
|
|
3562
3562
|
);
|
|
3563
3563
|
}
|
|
3564
3564
|
);
|
|
3565
|
-
|
|
3565
|
+
h.displayName = "Button";
|
|
3566
3566
|
const ae = {
|
|
3567
3567
|
"rp-input": "rp_Input-module_rp-input_1Eg-nR-9",
|
|
3568
3568
|
"rp-input--disabled": "rp_Input-module_rp-input--disabled_Jp5QcZrw",
|
|
@@ -4114,11 +4114,11 @@ function eg({
|
|
|
4114
4114
|
onClose: j,
|
|
4115
4115
|
className: y
|
|
4116
4116
|
}) {
|
|
4117
|
-
const [d,
|
|
4117
|
+
const [d, L] = Q(s), [Y, O] = Q(o), [n, T] = Q(
|
|
4118
4118
|
s === "New ticket" || !!o
|
|
4119
4119
|
), I = J(), z = V(null), C = V(null), b = e.filter(
|
|
4120
4120
|
(k) => k.status === (d === "Archive" ? "resolved" : "active")
|
|
4121
|
-
), W = b.find((k) => k.id ===
|
|
4121
|
+
), W = b.find((k) => k.id === Y) ?? b[0];
|
|
4122
4122
|
function P() {
|
|
4123
4123
|
T(!0), requestAnimationFrame(() => C.current?.focus());
|
|
4124
4124
|
}
|
|
@@ -4140,7 +4140,7 @@ function eg({
|
|
|
4140
4140
|
children: [
|
|
4141
4141
|
/* @__PURE__ */ u("header", { className: m.sidebarHeader, children: [
|
|
4142
4142
|
/* @__PURE__ */ M("h2", { id: I, children: "Support" }),
|
|
4143
|
-
j && /* @__PURE__ */ M(
|
|
4143
|
+
j && /* @__PURE__ */ M(h, { variant: "icon", "aria-label": "Close support", onClick: j, children: /* @__PURE__ */ M(ie, { size: 18 }) })
|
|
4144
4144
|
] }),
|
|
4145
4145
|
/* @__PURE__ */ M(
|
|
4146
4146
|
gM,
|
|
@@ -4148,7 +4148,7 @@ function eg({
|
|
|
4148
4148
|
options: ["Active", "Archive"],
|
|
4149
4149
|
value: d === "Archive" ? "Archive" : "Active",
|
|
4150
4150
|
onChange: (k) => {
|
|
4151
|
-
|
|
4151
|
+
L(k), O(void 0);
|
|
4152
4152
|
},
|
|
4153
4153
|
label: "Ticket view"
|
|
4154
4154
|
}
|
|
@@ -4198,12 +4198,12 @@ function eg({
|
|
|
4198
4198
|
}
|
|
4199
4199
|
),
|
|
4200
4200
|
/* @__PURE__ */ M(
|
|
4201
|
-
|
|
4201
|
+
h,
|
|
4202
4202
|
{
|
|
4203
4203
|
variant: "secondary",
|
|
4204
4204
|
className: m.newTicket,
|
|
4205
4205
|
onClick: () => {
|
|
4206
|
-
|
|
4206
|
+
L("New ticket"), P();
|
|
4207
4207
|
},
|
|
4208
4208
|
children: "New ticket"
|
|
4209
4209
|
}
|
|
@@ -4220,7 +4220,7 @@ function eg({
|
|
|
4220
4220
|
ref: C,
|
|
4221
4221
|
children: [
|
|
4222
4222
|
/* @__PURE__ */ M("div", { className: m.mobileBack, children: /* @__PURE__ */ u(
|
|
4223
|
-
|
|
4223
|
+
h,
|
|
4224
4224
|
{
|
|
4225
4225
|
variant: "ghost",
|
|
4226
4226
|
onClick: () => {
|
|
@@ -4249,11 +4249,11 @@ function eg({
|
|
|
4249
4249
|
}
|
|
4250
4250
|
),
|
|
4251
4251
|
/* @__PURE__ */ M(
|
|
4252
|
-
|
|
4252
|
+
h,
|
|
4253
4253
|
{
|
|
4254
4254
|
variant: "primary",
|
|
4255
4255
|
onClick: () => {
|
|
4256
|
-
|
|
4256
|
+
L("New ticket"), P();
|
|
4257
4257
|
},
|
|
4258
4258
|
children: "New ticket"
|
|
4259
4259
|
}
|
|
@@ -4275,11 +4275,11 @@ function BI({
|
|
|
4275
4275
|
dialogTitle: r = "Support",
|
|
4276
4276
|
..._
|
|
4277
4277
|
}) {
|
|
4278
|
-
const { onClose: a, className: j, ...y } = _, [d,
|
|
4278
|
+
const { onClose: a, className: j, ...y } = _, [d, L] = Q(
|
|
4279
4279
|
o ?? !1
|
|
4280
|
-
),
|
|
4280
|
+
), Y = s !== void 0, O = Y ? s : d;
|
|
4281
4281
|
function n(T) {
|
|
4282
|
-
|
|
4282
|
+
Y || L(T), l?.(T);
|
|
4283
4283
|
}
|
|
4284
4284
|
return /* @__PURE__ */ u(F.Root, { modal: e, open: O, onOpenChange: n, children: [
|
|
4285
4285
|
t ? /* @__PURE__ */ M(F.Trigger, { asChild: !0, children: t }) : null,
|
|
@@ -4374,7 +4374,7 @@ function Mg({ onCreateTicket: e }) {
|
|
|
4374
4374
|
/* @__PURE__ */ u("div", { className: m.formActions, children: [
|
|
4375
4375
|
!e && /* @__PURE__ */ M("span", { children: "Ticket submission is not connected." }),
|
|
4376
4376
|
/* @__PURE__ */ M(
|
|
4377
|
-
|
|
4377
|
+
h,
|
|
4378
4378
|
{
|
|
4379
4379
|
variant: "primary",
|
|
4380
4380
|
type: "submit",
|
|
@@ -4394,7 +4394,7 @@ function sg({
|
|
|
4394
4394
|
onReply: s,
|
|
4395
4395
|
onRate: o
|
|
4396
4396
|
}) {
|
|
4397
|
-
const [l, t] = Q(""), [r, _] = Q(!1), a = V(!1), [j, y] = Q(), [d,
|
|
4397
|
+
const [l, t] = Q(""), [r, _] = Q(!1), a = V(!1), [j, y] = Q(), [d, L] = Q(""), [Y, O] = Q(!1), n = J(), T = e.status === "resolved";
|
|
4398
4398
|
return /* @__PURE__ */ u(K, { children: [
|
|
4399
4399
|
/* @__PURE__ */ u("header", { className: m.conversationHeader, children: [
|
|
4400
4400
|
/* @__PURE__ */ u("div", { className: m.conversationMeta, children: [
|
|
@@ -4455,7 +4455,7 @@ function sg({
|
|
|
4455
4455
|
role: "group",
|
|
4456
4456
|
"aria-label": "Rate your support experience",
|
|
4457
4457
|
children: $w.map((I, z) => /* @__PURE__ */ M(
|
|
4458
|
-
|
|
4458
|
+
h,
|
|
4459
4459
|
{
|
|
4460
4460
|
variant: "secondary",
|
|
4461
4461
|
"aria-label": `${z + 1} — ${I}`,
|
|
@@ -4463,11 +4463,11 @@ function sg({
|
|
|
4463
4463
|
disabled: !o || r || j !== void 0,
|
|
4464
4464
|
onClick: async () => {
|
|
4465
4465
|
if (!(!o || a.current)) {
|
|
4466
|
-
a.current = !0, _(!0),
|
|
4466
|
+
a.current = !0, _(!0), L(""), O(!1);
|
|
4467
4467
|
try {
|
|
4468
|
-
await o(e.id, z + 1), y(z + 1),
|
|
4468
|
+
await o(e.id, z + 1), y(z + 1), L("Thank you for your feedback.");
|
|
4469
4469
|
} catch {
|
|
4470
|
-
O(!0),
|
|
4470
|
+
O(!0), L(
|
|
4471
4471
|
"Your rating was not saved. Please try again."
|
|
4472
4472
|
);
|
|
4473
4473
|
} finally {
|
|
@@ -4497,11 +4497,11 @@ function sg({
|
|
|
4497
4497
|
"aria-label": "Reply to ticket",
|
|
4498
4498
|
onSubmit: async (I) => {
|
|
4499
4499
|
if (I.preventDefault(), !(!s || !l.trim() || a.current)) {
|
|
4500
|
-
a.current = !0, _(!0),
|
|
4500
|
+
a.current = !0, _(!0), L(""), O(!1);
|
|
4501
4501
|
try {
|
|
4502
|
-
await s(e.id, l.trim()), t(""),
|
|
4502
|
+
await s(e.id, l.trim()), t(""), L("Reply sent.");
|
|
4503
4503
|
} catch {
|
|
4504
|
-
O(!0),
|
|
4504
|
+
O(!0), L(
|
|
4505
4505
|
"Your reply was not sent. Your message is still here; please try again."
|
|
4506
4506
|
);
|
|
4507
4507
|
} finally {
|
|
@@ -4526,7 +4526,7 @@ function sg({
|
|
|
4526
4526
|
/* @__PURE__ */ u("div", { className: m.formActions, children: [
|
|
4527
4527
|
/* @__PURE__ */ M("span", { children: s ? "Never share API keys or passwords." : "Replies are not connected." }),
|
|
4528
4528
|
/* @__PURE__ */ M(
|
|
4529
|
-
|
|
4529
|
+
h,
|
|
4530
4530
|
{
|
|
4531
4531
|
variant: "primary",
|
|
4532
4532
|
type: "submit",
|
|
@@ -4539,7 +4539,7 @@ function sg({
|
|
|
4539
4539
|
}
|
|
4540
4540
|
),
|
|
4541
4541
|
T && /* @__PURE__ */ M("div", { className: m.resolvedFooter, children: "Open a new ticket for more help." }),
|
|
4542
|
-
/* @__PURE__ */ M("p", { className: m.feedback, role:
|
|
4542
|
+
/* @__PURE__ */ M("p", { className: m.feedback, role: Y ? "alert" : "status", children: d })
|
|
4543
4543
|
] });
|
|
4544
4544
|
}
|
|
4545
4545
|
const Ye = {
|
|
@@ -4585,13 +4585,13 @@ const ee = {
|
|
|
4585
4585
|
backgroundIconOpacity: a = 0.12,
|
|
4586
4586
|
...j
|
|
4587
4587
|
}) => {
|
|
4588
|
-
const y = J(), d = Number.isFinite(r) ? Math.max(8, r) : 48,
|
|
4588
|
+
const y = J(), d = Number.isFinite(r) ? Math.max(8, r) : 48, L = t != null && t !== !1, Y = N(
|
|
4589
4589
|
e === "reference" ? ee["rp-card-reference"] : ee["rp-card"],
|
|
4590
|
-
|
|
4590
|
+
L && ee["rp-card-patterned"],
|
|
4591
4591
|
o
|
|
4592
4592
|
);
|
|
4593
|
-
return /* @__PURE__ */ u(s, { className:
|
|
4594
|
-
|
|
4593
|
+
return L ? /* @__PURE__ */ u(s, { className: Y, ...j, children: [
|
|
4594
|
+
L && /* @__PURE__ */ u(
|
|
4595
4595
|
"svg",
|
|
4596
4596
|
{
|
|
4597
4597
|
className: ee["rp-card-pattern"],
|
|
@@ -4637,7 +4637,7 @@ const ee = {
|
|
|
4637
4637
|
}
|
|
4638
4638
|
),
|
|
4639
4639
|
l
|
|
4640
|
-
] });
|
|
4640
|
+
] }) : /* @__PURE__ */ M(s, { className: Y, ...j, children: l });
|
|
4641
4641
|
};
|
|
4642
4642
|
function A(e, s) {
|
|
4643
4643
|
const o = H(function({ size: t = 16, "aria-label": r, "aria-labelledby": _, ...a }, j) {
|
|
@@ -4936,10 +4936,10 @@ function mg() {
|
|
|
4936
4936
|
Math.max(j, r.innerHeight - j)
|
|
4937
4937
|
), d = t.documentElement;
|
|
4938
4938
|
d.classList.add("rp-theme-reveal");
|
|
4939
|
-
const
|
|
4940
|
-
e.current =
|
|
4939
|
+
const L = t.startViewTransition(l);
|
|
4940
|
+
e.current = L;
|
|
4941
4941
|
try {
|
|
4942
|
-
await
|
|
4942
|
+
await L.ready, await d.animate(
|
|
4943
4943
|
{
|
|
4944
4944
|
clipPath: [
|
|
4945
4945
|
`circle(0px at ${a}px ${j}px)`,
|
|
@@ -4954,10 +4954,10 @@ function mg() {
|
|
|
4954
4954
|
}
|
|
4955
4955
|
).finished;
|
|
4956
4956
|
} catch {
|
|
4957
|
-
|
|
4957
|
+
L.skipTransition();
|
|
4958
4958
|
} finally {
|
|
4959
|
-
await
|
|
4960
|
-
}), e.current ===
|
|
4959
|
+
await L.finished.catch(() => {
|
|
4960
|
+
}), e.current === L && (e.current = null, d.classList.remove("rp-theme-reveal"));
|
|
4961
4961
|
}
|
|
4962
4962
|
};
|
|
4963
4963
|
}
|
|
@@ -4975,8 +4975,8 @@ const wg = {
|
|
|
4975
4975
|
className: j,
|
|
4976
4976
|
triggerContent: y,
|
|
4977
4977
|
popupAlign: d = "start",
|
|
4978
|
-
popupTheme:
|
|
4979
|
-
popupAnchor:
|
|
4978
|
+
popupTheme: L,
|
|
4979
|
+
popupAnchor: Y
|
|
4980
4980
|
}) => {
|
|
4981
4981
|
const O = (n) => /* @__PURE__ */ u(
|
|
4982
4982
|
dg,
|
|
@@ -5015,7 +5015,7 @@ const wg = {
|
|
|
5015
5015
|
/* @__PURE__ */ M(yg, { children: /* @__PURE__ */ M(
|
|
5016
5016
|
cg,
|
|
5017
5017
|
{
|
|
5018
|
-
"data-theme":
|
|
5018
|
+
"data-theme": L,
|
|
5019
5019
|
position: "popper",
|
|
5020
5020
|
align: d,
|
|
5021
5021
|
sideOffset: 4,
|
|
@@ -5106,7 +5106,7 @@ const tI = ({
|
|
|
5106
5106
|
e.term && /* @__PURE__ */ M("span", { className: c.unit, children: e.term })
|
|
5107
5107
|
] }),
|
|
5108
5108
|
e.available === !1 ? /* @__PURE__ */ M(
|
|
5109
|
-
|
|
5109
|
+
h,
|
|
5110
5110
|
{
|
|
5111
5111
|
variant: "secondary",
|
|
5112
5112
|
textVariant: x.Button_Link_Extra_Small_1,
|
|
@@ -5115,7 +5115,7 @@ const tI = ({
|
|
|
5115
5115
|
children: "Unavailable"
|
|
5116
5116
|
}
|
|
5117
5117
|
) : e.active ? /* @__PURE__ */ u(
|
|
5118
|
-
|
|
5118
|
+
h,
|
|
5119
5119
|
{
|
|
5120
5120
|
variant: "secondary",
|
|
5121
5121
|
textVariant: x.Button_Link_Extra_Small_1,
|
|
@@ -5127,7 +5127,7 @@ const tI = ({
|
|
|
5127
5127
|
]
|
|
5128
5128
|
}
|
|
5129
5129
|
) : /* @__PURE__ */ u(
|
|
5130
|
-
|
|
5130
|
+
h,
|
|
5131
5131
|
{
|
|
5132
5132
|
variant: "primary",
|
|
5133
5133
|
textVariant: x.Button_Link_Extra_Small_1,
|
|
@@ -5206,7 +5206,7 @@ const _I = ({
|
|
|
5206
5206
|
/* @__PURE__ */ M("span", { className: c.unit, children: e.pricing.unit ?? "per 1M tokens" })
|
|
5207
5207
|
] }),
|
|
5208
5208
|
e.subscribed ? /* @__PURE__ */ u(
|
|
5209
|
-
|
|
5209
|
+
h,
|
|
5210
5210
|
{
|
|
5211
5211
|
variant: "secondary",
|
|
5212
5212
|
textVariant: x.Button_Link_Extra_Small_1,
|
|
@@ -5218,7 +5218,7 @@ const _I = ({
|
|
|
5218
5218
|
]
|
|
5219
5219
|
}
|
|
5220
5220
|
) : /* @__PURE__ */ u(
|
|
5221
|
-
|
|
5221
|
+
h,
|
|
5222
5222
|
{
|
|
5223
5223
|
variant: "primary",
|
|
5224
5224
|
textVariant: x.Button_Link_Extra_Small_1,
|
|
@@ -5272,49 +5272,49 @@ const $I = ({
|
|
|
5272
5272
|
selectedProvider: j,
|
|
5273
5273
|
onProviderChange: y,
|
|
5274
5274
|
sortBy: d,
|
|
5275
|
-
onSortChange:
|
|
5276
|
-
onSubscribe:
|
|
5275
|
+
onSortChange: L,
|
|
5276
|
+
onSubscribe: Y,
|
|
5277
5277
|
onManage: O,
|
|
5278
5278
|
onConfigure: n,
|
|
5279
5279
|
creditsBalance: T,
|
|
5280
5280
|
onTopUp: I,
|
|
5281
5281
|
className: z
|
|
5282
5282
|
}) => {
|
|
5283
|
-
const C = s !== void 0, [b, W] = Q("all"), [P, k] = Q(""), [X, le] = Q("all"), [$, te] = Q("recommended"), w = t ?? b, E = _ ?? P, U = j ?? X, B = d ?? $, ge = (
|
|
5284
|
-
t === void 0 && W(
|
|
5285
|
-
}, Ie = (
|
|
5286
|
-
_ === void 0 && k(
|
|
5287
|
-
}, ne = (
|
|
5288
|
-
j === void 0 && le(
|
|
5289
|
-
}, AM = (
|
|
5290
|
-
const g =
|
|
5291
|
-
d === void 0 && te(g),
|
|
5292
|
-
}, re = C ? o ?? pI : aI, Ae = re.map((
|
|
5293
|
-
const
|
|
5283
|
+
const C = s !== void 0, [b, W] = Q("all"), [P, k] = Q(""), [X, le] = Q("all"), [$, te] = Q("recommended"), w = t ?? b, E = _ ?? P, U = j ?? X, B = d ?? $, ge = (D) => {
|
|
5284
|
+
t === void 0 && W(D), r?.(D);
|
|
5285
|
+
}, Ie = (D) => {
|
|
5286
|
+
_ === void 0 && k(D), a?.(D);
|
|
5287
|
+
}, ne = (D) => {
|
|
5288
|
+
j === void 0 && le(D), y?.(D);
|
|
5289
|
+
}, AM = (D) => {
|
|
5290
|
+
const g = D;
|
|
5291
|
+
d === void 0 && te(g), L?.(g);
|
|
5292
|
+
}, re = C ? o ?? pI : aI, Ae = re.map((D) => D.label), TM = re.find((D) => D.id === w)?.label ?? Ae[0] ?? "All", zM = _e(() => {
|
|
5293
|
+
const D = s ?? l ?? [], g = Array.from(new Set(D.map((S) => S.provider)));
|
|
5294
5294
|
return [
|
|
5295
5295
|
{ value: "all", label: "All providers" },
|
|
5296
5296
|
...g.map((S) => ({ value: S, label: S }))
|
|
5297
5297
|
];
|
|
5298
5298
|
}, [s, l]), Te = _e(() => {
|
|
5299
5299
|
if (!s) return [];
|
|
5300
|
-
let
|
|
5300
|
+
let D = [...s];
|
|
5301
5301
|
if (E.trim()) {
|
|
5302
5302
|
const g = E.toLowerCase();
|
|
5303
|
-
|
|
5303
|
+
D = D.filter(
|
|
5304
5304
|
(S) => S.name.toLowerCase().includes(g) || S.id.toLowerCase().includes(g) || S.provider.toLowerCase().includes(g)
|
|
5305
5305
|
);
|
|
5306
5306
|
}
|
|
5307
|
-
return w !== "all" && (
|
|
5307
|
+
return w !== "all" && (D = D.filter((g) => g.category === w)), U !== "all" && (D = D.filter((g) => g.provider === U)), D.sort((g, S) => B === "price-asc" ? ue(g.price, g.priceValue) - ue(S.price, S.priceValue) : B === "price-desc" ? ue(S.price, S.priceValue) - ue(g.price, g.priceValue) : (S.featured ? 1 : 0) - (g.featured ? 1 : 0)), D;
|
|
5308
5308
|
}, [s, E, w, U, B]), ze = _e(() => {
|
|
5309
5309
|
if (!l) return [];
|
|
5310
|
-
let
|
|
5310
|
+
let D = [...l];
|
|
5311
5311
|
if (E.trim()) {
|
|
5312
5312
|
const g = E.toLowerCase();
|
|
5313
|
-
|
|
5313
|
+
D = D.filter(
|
|
5314
5314
|
(S) => S.name.toLowerCase().includes(g) || S.id.toLowerCase().includes(g) || S.provider.toLowerCase().includes(g) || S.description.toLowerCase().includes(g)
|
|
5315
5315
|
);
|
|
5316
5316
|
}
|
|
5317
|
-
return w !== "all" && (
|
|
5317
|
+
return w !== "all" && (D = D.filter((g) => g.category === w)), U !== "all" && (D = D.filter((g) => g.provider === U)), D.sort((g, S) => B === "speed" ? Number.parseInt(g.latency, 10) - Number.parseInt(S.latency, 10) : B === "recommended" ? (S.featured ? 1 : 0) - (g.featured ? 1 : 0) : 0), D;
|
|
5318
5318
|
}, [l, E, w, U, B]), kM = C ? Te : [], SM = C && Te.length === 0 || !C && ze.length === 0, xM = () => {
|
|
5319
5319
|
Ie(""), ge("all"), ne("all");
|
|
5320
5320
|
};
|
|
@@ -5330,7 +5330,7 @@ const $I = ({
|
|
|
5330
5330
|
className: c.searchInput,
|
|
5331
5331
|
placeholder: C ? "Search subscriptions…" : "Search models…",
|
|
5332
5332
|
value: E,
|
|
5333
|
-
onChange: (
|
|
5333
|
+
onChange: (D) => Ie(D.target.value)
|
|
5334
5334
|
}
|
|
5335
5335
|
)
|
|
5336
5336
|
] }),
|
|
@@ -5359,8 +5359,8 @@ const $I = ({
|
|
|
5359
5359
|
{
|
|
5360
5360
|
options: Ae,
|
|
5361
5361
|
value: TM,
|
|
5362
|
-
onChange: (
|
|
5363
|
-
re.find((g) => g.label ===
|
|
5362
|
+
onChange: (D) => ge(
|
|
5363
|
+
re.find((g) => g.label === D)?.id ?? D
|
|
5364
5364
|
),
|
|
5365
5365
|
label: C ? "Subscription categories" : "Model categories",
|
|
5366
5366
|
className: c.categories
|
|
@@ -5372,7 +5372,7 @@ const $I = ({
|
|
|
5372
5372
|
T
|
|
5373
5373
|
] }) }),
|
|
5374
5374
|
I && /* @__PURE__ */ u(
|
|
5375
|
-
|
|
5375
|
+
h,
|
|
5376
5376
|
{
|
|
5377
5377
|
variant: "primary",
|
|
5378
5378
|
textVariant: x.Button_Link_Small_1,
|
|
@@ -5388,29 +5388,29 @@ const $I = ({
|
|
|
5388
5388
|
] })
|
|
5389
5389
|
] }),
|
|
5390
5390
|
/* @__PURE__ */ u("div", { className: c.grid, children: [
|
|
5391
|
-
C ? kM.map((
|
|
5391
|
+
C ? kM.map((D) => /* @__PURE__ */ M(
|
|
5392
5392
|
tI,
|
|
5393
5393
|
{
|
|
5394
|
-
account:
|
|
5395
|
-
onSubscribe:
|
|
5394
|
+
account: D,
|
|
5395
|
+
onSubscribe: Y,
|
|
5396
5396
|
onManage: O
|
|
5397
5397
|
},
|
|
5398
|
-
|
|
5399
|
-
)) : ze.map((
|
|
5398
|
+
D.id
|
|
5399
|
+
)) : ze.map((D) => /* @__PURE__ */ M(
|
|
5400
5400
|
_I,
|
|
5401
5401
|
{
|
|
5402
|
-
model:
|
|
5403
|
-
onSubscribe:
|
|
5402
|
+
model: D,
|
|
5403
|
+
onSubscribe: Y,
|
|
5404
5404
|
onConfigure: n
|
|
5405
5405
|
},
|
|
5406
|
-
|
|
5406
|
+
D.id
|
|
5407
5407
|
)),
|
|
5408
5408
|
SM && /* @__PURE__ */ u(me, { className: c.empty, children: [
|
|
5409
5409
|
/* @__PURE__ */ M(Z.Search, { size: 22, className: c.emptyIcon }),
|
|
5410
5410
|
/* @__PURE__ */ M("h3", { className: c.emptyTitle, children: C ? "No matching subscriptions found" : "No matching models found" }),
|
|
5411
5411
|
/* @__PURE__ */ M("p", { className: c.emptyCopy, children: "Clear your search or filters." }),
|
|
5412
5412
|
/* @__PURE__ */ u(
|
|
5413
|
-
|
|
5413
|
+
h,
|
|
5414
5414
|
{
|
|
5415
5415
|
variant: "secondary",
|
|
5416
5416
|
textVariant: x.Button_Link_Extra_Small_1,
|
|
@@ -5451,19 +5451,19 @@ function en({
|
|
|
5451
5451
|
onSubscribe: y,
|
|
5452
5452
|
className: d
|
|
5453
5453
|
}) {
|
|
5454
|
-
const
|
|
5454
|
+
const L = J();
|
|
5455
5455
|
return /* @__PURE__ */ u(
|
|
5456
5456
|
"section",
|
|
5457
5457
|
{
|
|
5458
5458
|
className: N(G.panel, d),
|
|
5459
|
-
"aria-labelledby":
|
|
5459
|
+
"aria-labelledby": L,
|
|
5460
5460
|
children: [
|
|
5461
5461
|
/* @__PURE__ */ u("div", { className: G.copy, children: [
|
|
5462
5462
|
/* @__PURE__ */ u("p", { className: G.eyebrow, children: [
|
|
5463
5463
|
/* @__PURE__ */ M("span", { className: G.eyebrowMark, "aria-hidden": "true" }),
|
|
5464
5464
|
e
|
|
5465
5465
|
] }),
|
|
5466
|
-
/* @__PURE__ */ M("h2", { className: G.title, id:
|
|
5466
|
+
/* @__PURE__ */ M("h2", { className: G.title, id: L, children: s }),
|
|
5467
5467
|
/* @__PURE__ */ M("p", { className: G.description, children: o })
|
|
5468
5468
|
] }),
|
|
5469
5469
|
/* @__PURE__ */ u("div", { className: G.plan, children: [
|
|
@@ -5473,7 +5473,7 @@ function en({
|
|
|
5473
5473
|
/* @__PURE__ */ M("span", { className: G.period, children: t })
|
|
5474
5474
|
] }),
|
|
5475
5475
|
/* @__PURE__ */ M(
|
|
5476
|
-
|
|
5476
|
+
h,
|
|
5477
5477
|
{
|
|
5478
5478
|
variant: "primary",
|
|
5479
5479
|
textVariant: x.Button_Link_Medium_1,
|
|
@@ -5508,12 +5508,12 @@ function p(e, s, o) {
|
|
|
5508
5508
|
}) => {
|
|
5509
5509
|
if (!_)
|
|
5510
5510
|
return /* @__PURE__ */ M("span", { className: j, style: y, ...d, children: r });
|
|
5511
|
-
const
|
|
5511
|
+
const L = fe[a] ?? fe.md;
|
|
5512
5512
|
return /* @__PURE__ */ M(
|
|
5513
5513
|
"span",
|
|
5514
5514
|
{
|
|
5515
5515
|
className: N(se["rp-brand-mark"], j),
|
|
5516
|
-
style: { width:
|
|
5516
|
+
style: { width: L, height: L, ...y },
|
|
5517
5517
|
role: r ? "img" : void 0,
|
|
5518
5518
|
"aria-label": r || void 0,
|
|
5519
5519
|
"aria-hidden": r ? void 0 : !0,
|
|
@@ -5623,7 +5623,7 @@ function sn({
|
|
|
5623
5623
|
}) {
|
|
5624
5624
|
const t = mg();
|
|
5625
5625
|
return /* @__PURE__ */ M(
|
|
5626
|
-
|
|
5626
|
+
h,
|
|
5627
5627
|
{
|
|
5628
5628
|
variant: "icon",
|
|
5629
5629
|
"aria-label": e ? "Light theme" : "Dark theme",
|
|
@@ -5701,8 +5701,8 @@ const i = {
|
|
|
5701
5701
|
resizable: j = !1,
|
|
5702
5702
|
onWidthChange: y,
|
|
5703
5703
|
onResizeEnd: d,
|
|
5704
|
-
resizerLabel:
|
|
5705
|
-
className:
|
|
5704
|
+
resizerLabel: L = "Sidebar width",
|
|
5705
|
+
className: Y,
|
|
5706
5706
|
style: O,
|
|
5707
5707
|
loadingLabel: n = "Loading navigation"
|
|
5708
5708
|
}) => {
|
|
@@ -5731,7 +5731,7 @@ const i = {
|
|
|
5731
5731
|
return /* @__PURE__ */ u(
|
|
5732
5732
|
"nav",
|
|
5733
5733
|
{
|
|
5734
|
-
className: N(i["rp-side-nav"],
|
|
5734
|
+
className: N(i["rp-side-nav"], Y),
|
|
5735
5735
|
"aria-label": s,
|
|
5736
5736
|
"aria-busy": l || void 0,
|
|
5737
5737
|
"data-collapsed": o ? "" : void 0,
|
|
@@ -5750,7 +5750,7 @@ const i = {
|
|
|
5750
5750
|
className: i["rp-side-nav__resizer"],
|
|
5751
5751
|
role: "separator",
|
|
5752
5752
|
"aria-orientation": "vertical",
|
|
5753
|
-
"aria-label":
|
|
5753
|
+
"aria-label": L,
|
|
5754
5754
|
"aria-valuenow": z,
|
|
5755
5755
|
"aria-valuemin": _,
|
|
5756
5756
|
"aria-valuemax": a,
|
|
@@ -5852,8 +5852,8 @@ const i = {
|
|
|
5852
5852
|
onClick: j,
|
|
5853
5853
|
expandable: y = !1,
|
|
5854
5854
|
expanded: d = !1,
|
|
5855
|
-
controls:
|
|
5856
|
-
expandDirection:
|
|
5855
|
+
controls: L,
|
|
5856
|
+
expandDirection: Y = "down",
|
|
5857
5857
|
title: O,
|
|
5858
5858
|
draggable: n = !1,
|
|
5859
5859
|
dragging: T = !1,
|
|
@@ -5870,7 +5870,7 @@ const i = {
|
|
|
5870
5870
|
{
|
|
5871
5871
|
className: N(
|
|
5872
5872
|
i["rp-side-nav__chevron"],
|
|
5873
|
-
|
|
5873
|
+
Y === "up" && i["rp-side-nav__chevron--up"]
|
|
5874
5874
|
),
|
|
5875
5875
|
"data-expanded": d ? "" : void 0,
|
|
5876
5876
|
"aria-hidden": "true",
|
|
@@ -5904,7 +5904,7 @@ const i = {
|
|
|
5904
5904
|
className: k,
|
|
5905
5905
|
"aria-current": r ? "page" : void 0,
|
|
5906
5906
|
"aria-expanded": y && !b ? d : void 0,
|
|
5907
|
-
"aria-controls": y && !b ?
|
|
5907
|
+
"aria-controls": y && !b ? L : void 0,
|
|
5908
5908
|
"aria-disabled": _ || void 0,
|
|
5909
5909
|
tabIndex: _ ? -1 : void 0,
|
|
5910
5910
|
title: W,
|
|
@@ -5927,7 +5927,7 @@ const i = {
|
|
|
5927
5927
|
className: k,
|
|
5928
5928
|
"aria-current": r ? "page" : void 0,
|
|
5929
5929
|
"aria-expanded": y && !b ? d : void 0,
|
|
5930
|
-
"aria-controls": y && !b ?
|
|
5930
|
+
"aria-controls": y && !b ? L : void 0,
|
|
5931
5931
|
disabled: _,
|
|
5932
5932
|
title: W,
|
|
5933
5933
|
draggable: n || void 0,
|
|
@@ -5979,12 +5979,12 @@ const i = {
|
|
|
5979
5979
|
"aria-current": t ? "page" : void 0,
|
|
5980
5980
|
"aria-disabled": r || void 0,
|
|
5981
5981
|
tabIndex: r ? -1 : void 0,
|
|
5982
|
-
onClick: (
|
|
5982
|
+
onClick: (L) => {
|
|
5983
5983
|
if (r) {
|
|
5984
|
-
|
|
5984
|
+
L.preventDefault();
|
|
5985
5985
|
return;
|
|
5986
5986
|
}
|
|
5987
|
-
a?.(
|
|
5987
|
+
a?.(L);
|
|
5988
5988
|
},
|
|
5989
5989
|
children: y
|
|
5990
5990
|
}
|
|
@@ -5995,7 +5995,7 @@ const i = {
|
|
|
5995
5995
|
className: d,
|
|
5996
5996
|
"aria-current": t ? "page" : void 0,
|
|
5997
5997
|
disabled: r,
|
|
5998
|
-
onClick: (
|
|
5998
|
+
onClick: (L) => a?.(L),
|
|
5999
5999
|
children: y
|
|
6000
6000
|
}
|
|
6001
6001
|
) });
|
|
@@ -6050,7 +6050,7 @@ const i = {
|
|
|
6050
6050
|
export {
|
|
6051
6051
|
GI as $,
|
|
6052
6052
|
on as A,
|
|
6053
|
-
|
|
6053
|
+
h as B,
|
|
6054
6054
|
me as C,
|
|
6055
6055
|
ln as D,
|
|
6056
6056
|
Ce as E,
|
package/dist/components.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e, Fragment as De } from "react/jsx-runtime";
|
|
2
|
-
import { w as dt, u as rt, B as Y, I as nt, R as _e, a as Ze, r as Dt, b as Ee, L as ht, c as pt, d as Ot, P as Ut, e as zt, E as Xt, C as Gt, f as Yt, g as jt, S as Wt, h as Vt, i as Kt, j as Jt, k as Zt, l as Qt, m as ea, n as ta, o as aa, p as na, q as ra, s as ia, t as At, T as sa, v as oa } from "./SideNavigation-
|
|
3
|
-
import { M as oi, x as li, y as ci, z as di, A as hi, D as pi, F as ui, G as mi, H as gi, J as fi, K as bi, N as vi, O as yi, Q as _i, U as Ni, V as Mi, W as wi, X as ki, Y as $i, Z as xi, _ as Ci } from "./SideNavigation-
|
|
2
|
+
import { w as dt, u as rt, B as Y, I as nt, R as _e, a as Ze, r as Dt, b as Ee, L as ht, c as pt, d as Ot, P as Ut, e as zt, E as Xt, C as Gt, f as Yt, g as jt, S as Wt, h as Vt, i as Kt, j as Jt, k as Zt, l as Qt, m as ea, n as ta, o as aa, p as na, q as ra, s as ia, t as At, T as sa, v as oa } from "./SideNavigation-DxMSiyFD.js";
|
|
3
|
+
import { M as oi, x as li, y as ci, z as di, A as hi, D as pi, F as ui, G as mi, H as gi, J as fi, K as bi, N as vi, O as yi, Q as _i, U as Ni, V as Mi, W as wi, X as ki, Y as $i, Z as xi, _ as Ci } from "./SideNavigation-DxMSiyFD.js";
|
|
4
4
|
import Lt, { useId as Je, useState as qe, useEffect as Se, useContext as la, createContext as ca, useMemo as et, Fragment as da, useRef as Te, forwardRef as Oe } from "react";
|
|
5
5
|
import * as Ne from "@radix-ui/react-alert-dialog";
|
|
6
6
|
import oe from "clsx";
|
package/dist/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import fr, { useId as ue, createContext as Xe, useContext as Ze, useState as A,
|
|
|
2
2
|
import { jsx as o, jsxs as l } from "react/jsx-runtime";
|
|
3
3
|
import * as ne from "@radix-ui/react-accordion";
|
|
4
4
|
import t from "clsx";
|
|
5
|
-
import { L as er, v as Cr, b as De, u as T, I as Sr, C as xr, $ as kr, a0 as je } from "./SideNavigation-
|
|
6
|
-
import { a1 as Ua, a2 as Wa, a3 as qa, a4 as Ka, g as Qa, B as ja, a5 as Ya, d as Ja, a6 as Xa, a7 as Za, a8 as en, a9 as rn, aa as on, ab as tn, ac as an, ad as nn, ae as ln, af as _n, E as sn, ag as cn, ah as dn, c as pn, t as mn, M as un, ai as gn, P as bn, aj as hn, e as vn, ak as Nn, f as fn, al as wn, x as Mn, y as Cn, z as Sn, A as xn, D as kn, F as Tn, G as yn, H as In, J as Pn, K as Dn, N as An, O as Rn, Q as Fn, U as $n, V as Gn, s as Ln, X as Bn, T as Hn } from "./SideNavigation-
|
|
5
|
+
import { L as er, v as Cr, b as De, u as T, I as Sr, C as xr, $ as kr, a0 as je } from "./SideNavigation-DxMSiyFD.js";
|
|
6
|
+
import { a1 as Ua, a2 as Wa, a3 as qa, a4 as Ka, g as Qa, B as ja, a5 as Ya, d as Ja, a6 as Xa, a7 as Za, a8 as en, a9 as rn, aa as on, ab as tn, ac as an, ad as nn, ae as ln, af as _n, E as sn, ag as cn, ah as dn, c as pn, t as mn, M as un, ai as gn, P as bn, aj as hn, e as vn, ak as Nn, f as fn, al as wn, x as Mn, y as Cn, z as Sn, A as xn, D as kn, F as Tn, G as yn, H as In, J as Pn, K as Dn, N as An, O as Rn, Q as Fn, U as $n, V as Gn, s as Ln, X as Bn, T as Hn } from "./SideNavigation-DxMSiyFD.js";
|
|
7
7
|
import { RadioGroup as Tr } from "@base-ui/react/radio-group";
|
|
8
8
|
import { mergeProps as rr } from "@base-ui/react/merge-props";
|
|
9
9
|
import * as or from "@radix-ui/react-checkbox";
|