@nexxtmove/ui 1.1.7 → 1.1.9
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.
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { IconName } from '@awesome.me/kit-37b149f3ef/icons';
|
|
2
2
|
type SwitchColor = 'blue' | 'green';
|
|
3
|
+
type SwitchSize = 'sm' | 'md' | 'lg';
|
|
3
4
|
interface NexxtSwitchProps {
|
|
4
5
|
labelPosition?: 'before' | 'after';
|
|
5
6
|
color?: SwitchColor;
|
|
7
|
+
size?: SwitchSize;
|
|
6
8
|
iconOn?: IconName;
|
|
7
9
|
iconOff?: IconName;
|
|
8
10
|
}
|
package/dist/index.js
CHANGED
|
@@ -816,6 +816,11 @@ var tt = /* @__PURE__ */ p({
|
|
|
816
816
|
border: "border border-gray-600",
|
|
817
817
|
text: "text-gray-700"
|
|
818
818
|
};
|
|
819
|
+
case "accent": return {
|
|
820
|
+
bg: "bg-purple-50",
|
|
821
|
+
border: "border border-purple-500",
|
|
822
|
+
text: "text-purple-500"
|
|
823
|
+
};
|
|
819
824
|
default: return {
|
|
820
825
|
bg: "bg-cornflower-blue-50",
|
|
821
826
|
border: "border border-cornflower-blue-500",
|
|
@@ -843,6 +848,11 @@ var tt = /* @__PURE__ */ p({
|
|
|
843
848
|
border: "",
|
|
844
849
|
text: "text-white"
|
|
845
850
|
};
|
|
851
|
+
case "accent": return {
|
|
852
|
+
bg: "bg-purple-600",
|
|
853
|
+
border: "",
|
|
854
|
+
text: "text-white"
|
|
855
|
+
};
|
|
846
856
|
default: return {
|
|
847
857
|
bg: "bg-cornflower-blue-600",
|
|
848
858
|
border: "",
|
|
@@ -4332,13 +4342,14 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
4332
4342
|
"back-button-text"
|
|
4333
4343
|
]));
|
|
4334
4344
|
}
|
|
4335
|
-
}), Pa = { class: "inline-flex cursor-pointer items-center gap-2" }, Fa =
|
|
4345
|
+
}), Pa = { class: "inline-flex cursor-pointer items-center gap-2" }, Fa = /* @__PURE__ */ p({
|
|
4336
4346
|
name: "NexxtSwitch",
|
|
4337
4347
|
inheritAttrs: !1,
|
|
4338
4348
|
__name: "Switch",
|
|
4339
4349
|
props: /*@__PURE__*/ g({
|
|
4340
4350
|
labelPosition: { default: "after" },
|
|
4341
4351
|
color: { default: "blue" },
|
|
4352
|
+
size: { default: "lg" },
|
|
4342
4353
|
iconOn: {},
|
|
4343
4354
|
iconOff: {}
|
|
4344
4355
|
}, {
|
|
@@ -4350,32 +4361,56 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
4350
4361
|
let t = M(e, "modelValue"), n = {
|
|
4351
4362
|
blue: "border-cornflower-blue-500 bg-cornflower-blue-500",
|
|
4352
4363
|
green: "border-green-400 bg-green-400"
|
|
4364
|
+
}, r = {
|
|
4365
|
+
sm: "h-5 w-9",
|
|
4366
|
+
md: "h-6 w-11",
|
|
4367
|
+
lg: "h-8 w-15"
|
|
4368
|
+
}, i = {
|
|
4369
|
+
sm: "top-0.5 left-0.5 h-3.5 w-3.5",
|
|
4370
|
+
md: "top-0.5 left-0.5 h-4.5 w-4.5",
|
|
4371
|
+
lg: "top-0.75 left-0.75 h-6 w-6"
|
|
4372
|
+
}, l = {
|
|
4373
|
+
sm: "translate-x-4",
|
|
4374
|
+
md: "translate-x-5",
|
|
4375
|
+
lg: "translate-x-7"
|
|
4376
|
+
}, u = {
|
|
4377
|
+
sm: "text-[8px]",
|
|
4378
|
+
md: "text-[10px]",
|
|
4379
|
+
lg: "text-xs"
|
|
4353
4380
|
};
|
|
4354
|
-
return (
|
|
4355
|
-
e.labelPosition === "before" ? D(
|
|
4356
|
-
c("span",
|
|
4381
|
+
return (d, f) => (w(), s("label", Pa, [
|
|
4382
|
+
e.labelPosition === "before" ? D(d.$slots, "default", { key: 0 }) : o("", !0),
|
|
4383
|
+
c("span", { class: y(["relative inline-block", r[e.size]]) }, [z(c("input", _(d.$attrs, {
|
|
4357
4384
|
type: "checkbox",
|
|
4358
4385
|
class: "peer sr-only",
|
|
4359
|
-
"onUpdate:modelValue":
|
|
4360
|
-
}), null, 16), [[P, t.value]]), c("span", { class: y(["absolute inset-0 overflow-hidden rounded-[30px] border transition-colors duration-200", t.value ? n[e.color] : "border-gray-500 bg-gray-200"]) }, [c("span", { class: y([
|
|
4386
|
+
"onUpdate:modelValue": f[0] ||= (e) => t.value = e
|
|
4387
|
+
}), null, 16), [[P, t.value]]), c("span", { class: y(["absolute inset-0 overflow-hidden rounded-[30px] border transition-colors duration-200", t.value ? n[e.color] : "border-gray-500 bg-gray-200"]) }, [c("span", { class: y([
|
|
4388
|
+
"absolute rounded-full bg-white transition-transform duration-400",
|
|
4389
|
+
i[e.size],
|
|
4390
|
+
t.value && l[e.size]
|
|
4391
|
+
]) }, null, 2), c("span", { class: y([
|
|
4392
|
+
"absolute flex items-center justify-center rounded-full bg-white transition-transform duration-300",
|
|
4393
|
+
i[e.size],
|
|
4394
|
+
t.value && l[e.size]
|
|
4395
|
+
]) }, [t.value && e.iconOn ? (w(), a(Z, {
|
|
4361
4396
|
key: 0,
|
|
4362
4397
|
name: e.iconOn,
|
|
4363
4398
|
type: "solid",
|
|
4364
|
-
class: "text-
|
|
4365
|
-
}, null, 8, ["name"])) : !t.value && e.iconOff ? (w(), a(Z, {
|
|
4399
|
+
class: y(["text-gray-600", u[e.size]])
|
|
4400
|
+
}, null, 8, ["name", "class"])) : !t.value && e.iconOff ? (w(), a(Z, {
|
|
4366
4401
|
key: 1,
|
|
4367
4402
|
name: e.iconOff,
|
|
4368
|
-
class: "text-
|
|
4369
|
-
}, null, 8, ["name"])) : o("", !0)], 2)], 2)]),
|
|
4370
|
-
e.labelPosition === "after" ? D(
|
|
4403
|
+
class: y(["text-gray-600", u[e.size]])
|
|
4404
|
+
}, null, 8, ["name", "class"])) : o("", !0)], 2)], 2)], 2),
|
|
4405
|
+
e.labelPosition === "after" ? D(d.$slots, "default", { key: 1 }) : o("", !0)
|
|
4371
4406
|
]));
|
|
4372
4407
|
}
|
|
4373
|
-
}),
|
|
4408
|
+
}), Ia = ["aria-label"], La = [
|
|
4374
4409
|
"aria-selected",
|
|
4375
4410
|
"tabindex",
|
|
4376
4411
|
"onClick",
|
|
4377
4412
|
"onKeydown"
|
|
4378
|
-
],
|
|
4413
|
+
], Ra = /* @__PURE__ */ p({
|
|
4379
4414
|
name: "NexxtTabs",
|
|
4380
4415
|
__name: "Tabs",
|
|
4381
4416
|
props: /*@__PURE__*/ g({
|
|
@@ -4435,7 +4470,7 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
4435
4470
|
class: y(["relative h-9 cursor-pointer rounded-full px-4 text-sm text-gray-950 transition-none", r.value === e ? "z-10" : "z-30"]),
|
|
4436
4471
|
onClick: (t) => r.value = e,
|
|
4437
4472
|
onKeydown: (e) => f(e, t)
|
|
4438
|
-
}, k(e), 43,
|
|
4473
|
+
}, k(e), 43, La))), 128)),
|
|
4439
4474
|
c("div", {
|
|
4440
4475
|
"aria-hidden": "true",
|
|
4441
4476
|
class: y(["pointer-events-none absolute inset-0 z-20 flex", u.value ? "transition-[clip-path] duration-500 ease-[cubic-bezier(0.34,1.2,0.64,1)]" : ""]),
|
|
@@ -4444,9 +4479,9 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
4444
4479
|
key: e,
|
|
4445
4480
|
class: "flex h-9 items-center rounded-full px-4 text-sm text-white"
|
|
4446
4481
|
}, k(e), 1))), 128))], 6)
|
|
4447
|
-
], 8,
|
|
4482
|
+
], 8, Ia));
|
|
4448
4483
|
}
|
|
4449
|
-
}),
|
|
4484
|
+
}), za = { class: "flex flex-col items-center" }, Ba = { class: "relative w-full overflow-hidden" }, Va = ["aria-labelledby"], Ha = /* @__PURE__ */ p({
|
|
4450
4485
|
name: "NexxtTabbedContent",
|
|
4451
4486
|
__name: "TabbedContent",
|
|
4452
4487
|
props: /*@__PURE__*/ g({
|
|
@@ -4471,7 +4506,7 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
4471
4506
|
enterFromClass: a.value === "forward" ? "-translate-x-10 opacity-0" : "translate-x-10 opacity-0",
|
|
4472
4507
|
leaveToClass: a.value === "forward" ? "translate-x-10 opacity-0" : "-translate-x-10 opacity-0"
|
|
4473
4508
|
} : { mode: "out-in" });
|
|
4474
|
-
return (t, i) => (w(), s("div",
|
|
4509
|
+
return (t, i) => (w(), s("div", za, [f(Ra, {
|
|
4475
4510
|
tabs: e.tabs,
|
|
4476
4511
|
modelValue: r.value,
|
|
4477
4512
|
"onUpdate:modelValue": i[0] ||= (e) => r.value = e,
|
|
@@ -4481,49 +4516,49 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
4481
4516
|
"tabs",
|
|
4482
4517
|
"modelValue",
|
|
4483
4518
|
"tablist-label"
|
|
4484
|
-
]), c("div",
|
|
4519
|
+
]), c("div", Ba, [f(n, b(h(u.value)), {
|
|
4485
4520
|
default: R(() => [(w(), s("div", {
|
|
4486
4521
|
key: r.value,
|
|
4487
4522
|
role: "tabpanel",
|
|
4488
4523
|
"aria-labelledby": l(r.value),
|
|
4489
4524
|
class: "w-full"
|
|
4490
|
-
}, [D(t.$slots, o(r.value))], 8,
|
|
4525
|
+
}, [D(t.$slots, o(r.value))], 8, Va))]),
|
|
4491
4526
|
_: 3
|
|
4492
4527
|
}, 16)])]));
|
|
4493
4528
|
}
|
|
4494
|
-
}),
|
|
4529
|
+
}), Ua = { class: "flex flex-col gap-3" }, Wa = ["aria-colcount", "aria-rowcount"], Ga = { class: "sticky top-0 z-10 mb-0.5" }, Ka = { key: 0 }, qa = {
|
|
4495
4530
|
key: 0,
|
|
4496
4531
|
class: "flex items-center justify-center px-2 py-3",
|
|
4497
4532
|
role: "columnheader",
|
|
4498
4533
|
"aria-colindex": "1"
|
|
4499
|
-
},
|
|
4534
|
+
}, Ja = [
|
|
4500
4535
|
"aria-colindex",
|
|
4501
4536
|
"aria-sort",
|
|
4502
4537
|
"tabindex",
|
|
4503
4538
|
"onClick",
|
|
4504
4539
|
"onKeydown"
|
|
4505
|
-
],
|
|
4540
|
+
], Ya = {
|
|
4506
4541
|
role: "rowgroup",
|
|
4507
4542
|
class: "relative"
|
|
4508
|
-
},
|
|
4543
|
+
}, Xa = [
|
|
4509
4544
|
"aria-rowindex",
|
|
4510
4545
|
"aria-selected",
|
|
4511
4546
|
"onClick",
|
|
4512
4547
|
"onKeydown"
|
|
4513
|
-
],
|
|
4548
|
+
], Za = {
|
|
4514
4549
|
key: 0,
|
|
4515
4550
|
class: "flex items-center justify-center px-2 py-4",
|
|
4516
4551
|
role: "gridcell",
|
|
4517
4552
|
"aria-colindex": 1
|
|
4518
|
-
},
|
|
4553
|
+
}, Qa = ["aria-colindex"], $a = {
|
|
4519
4554
|
key: 0,
|
|
4520
4555
|
class: "px-4 py-8 text-center text-sm text-slate-400",
|
|
4521
4556
|
role: "row"
|
|
4522
|
-
},
|
|
4557
|
+
}, eo = {
|
|
4523
4558
|
key: 0,
|
|
4524
4559
|
"data-testid": "loading-overlay",
|
|
4525
4560
|
class: "absolute inset-0 flex items-center justify-center rounded-md bg-white/40 backdrop-blur-sm"
|
|
4526
|
-
},
|
|
4561
|
+
}, to = /* @__PURE__ */ p({
|
|
4527
4562
|
name: "NexxtTable",
|
|
4528
4563
|
__name: "Table",
|
|
4529
4564
|
props: /*@__PURE__*/ g({
|
|
@@ -4573,17 +4608,17 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
4573
4608
|
}, I = (e, t) => e[t], L = (e) => `cell-${e}`, z = (e, t) => {
|
|
4574
4609
|
e.key === "ArrowDown" ? (e.preventDefault(), _.value?.[Math.min(t + 1, u.rows.length - 1)]?.focus()) : e.key === "ArrowUp" && (e.preventDefault(), _.value?.[Math.max(t - 1, 0)]?.focus());
|
|
4575
4610
|
};
|
|
4576
|
-
return (r, i) => (w(), s("div",
|
|
4611
|
+
return (r, i) => (w(), s("div", Ua, [c("div", {
|
|
4577
4612
|
role: "grid",
|
|
4578
4613
|
"aria-colcount": t.columns.length + +!!t.selectable,
|
|
4579
4614
|
"aria-rowcount": t.rows.length + 1,
|
|
4580
4615
|
class: "min-w-full"
|
|
4581
|
-
}, [c("div",
|
|
4616
|
+
}, [c("div", Ga, [r.$slots.toolbar ? (w(), s("div", Ka, [D(r.$slots, "toolbar")])) : o("", !0), c("div", {
|
|
4582
4617
|
class: "grid rounded-md bg-gray-50",
|
|
4583
4618
|
style: x({ gridTemplateColumns: A.value }),
|
|
4584
4619
|
role: "row",
|
|
4585
4620
|
"aria-rowindex": "1"
|
|
4586
|
-
}, [t.selectable ? (w(), s("div",
|
|
4621
|
+
}, [t.selectable ? (w(), s("div", qa, [t.selectionMode === "multiple" ? (w(), a(qt, {
|
|
4587
4622
|
key: 0,
|
|
4588
4623
|
"model-value": v.value,
|
|
4589
4624
|
indeterminate: b.value,
|
|
@@ -4602,7 +4637,7 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
4602
4637
|
key: 0,
|
|
4603
4638
|
name: h.value === e.key ? g.value === "asc" ? "angle-down" : "angle-up" : "angles-up-down",
|
|
4604
4639
|
class: y(["shrink-0 text-xs", h.value === e.key ? "text-cornflower-blue-600" : "text-slate-400"])
|
|
4605
|
-
}, null, 8, ["name", "class"])) : o("", !0)], 42,
|
|
4640
|
+
}, null, 8, ["name", "class"])) : o("", !0)], 42, Ja))), 128))], 4)]), c("div", Ya, [
|
|
4606
4641
|
(w(!0), s(e, null, E(t.rows, (n, i) => (w(), s("div", {
|
|
4607
4642
|
key: i,
|
|
4608
4643
|
ref_for: !0,
|
|
@@ -4621,7 +4656,7 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
4621
4656
|
tabindex: "0",
|
|
4622
4657
|
onClick: (e) => P(e, i),
|
|
4623
4658
|
onKeydown: (e) => z(e, i)
|
|
4624
|
-
}, [t.selectable ? (w(), s("div",
|
|
4659
|
+
}, [t.selectable ? (w(), s("div", Za, [f(qt, {
|
|
4625
4660
|
"model-value": S(n),
|
|
4626
4661
|
"aria-label": `Select row ${i + 1}`,
|
|
4627
4662
|
"onUpdate:modelValue": (e) => T(n)
|
|
@@ -4637,23 +4672,23 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
4637
4672
|
}, [D(r.$slots, L(e.key), {
|
|
4638
4673
|
row: n,
|
|
4639
4674
|
value: I(n, e.key)
|
|
4640
|
-
}, () => [d(k(I(n, e.key)), 1)])], 8,
|
|
4641
|
-
t.rows.length ? o("", !0) : (w(), s("div",
|
|
4675
|
+
}, () => [d(k(I(n, e.key)), 1)])], 8, Qa))), 128))], 46, Xa))), 128)),
|
|
4676
|
+
t.rows.length ? o("", !0) : (w(), s("div", $a, [D(r.$slots, "empty", {}, () => [i[0] ||= d("Geen data beschikbaar", -1)])])),
|
|
4642
4677
|
f(n, {
|
|
4643
4678
|
"enter-active-class": "transition-opacity duration-200",
|
|
4644
4679
|
"leave-active-class": "transition-opacity duration-200",
|
|
4645
4680
|
"enter-from-class": "opacity-0",
|
|
4646
4681
|
"leave-to-class": "opacity-0"
|
|
4647
4682
|
}, {
|
|
4648
|
-
default: R(() => [t.loading ? (w(), s("div",
|
|
4683
|
+
default: R(() => [t.loading ? (w(), s("div", eo, [D(r.$slots, "loading", {}, () => [f(Z, {
|
|
4649
4684
|
name: "spinner-third",
|
|
4650
4685
|
class: "fa-spin text-3xl text-purple-500"
|
|
4651
4686
|
})])])) : o("", !0)]),
|
|
4652
4687
|
_: 3
|
|
4653
4688
|
})
|
|
4654
|
-
])], 8,
|
|
4689
|
+
])], 8, Wa)]));
|
|
4655
4690
|
}
|
|
4656
|
-
}),
|
|
4691
|
+
}), no = /* @__PURE__ */ p({
|
|
4657
4692
|
name: "NexxtTooltip",
|
|
4658
4693
|
__name: "Tooltip",
|
|
4659
4694
|
props: {
|
|
@@ -4705,16 +4740,16 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
4705
4740
|
_: 3
|
|
4706
4741
|
}));
|
|
4707
4742
|
}
|
|
4708
|
-
}),
|
|
4743
|
+
}), ro = { class: "w-full max-w-105 rounded-xl border border-gray-200" }, io = { class: "h-38 w-full" }, ao = ["src", "alt"], oo = {
|
|
4709
4744
|
key: 1,
|
|
4710
4745
|
class: "flex h-38 w-full items-center justify-center rounded-t-xl bg-gray-100"
|
|
4711
|
-
},
|
|
4746
|
+
}, so = { class: "rounded-b-xl px-8 pt-3.5 pb-4" }, co = { class: "truncate heading-4 text-gray-900" }, lo = {
|
|
4712
4747
|
key: 0,
|
|
4713
4748
|
class: "truncate body-normal text-gray-700"
|
|
4714
|
-
},
|
|
4749
|
+
}, uo = {
|
|
4715
4750
|
key: 1,
|
|
4716
4751
|
class: "mt-3 flex flex-wrap gap-2"
|
|
4717
|
-
},
|
|
4752
|
+
}, fo = { class: "body-small text-gray-700" }, po = /* @__PURE__ */ p({
|
|
4718
4753
|
name: "NexxtTemplateCard",
|
|
4719
4754
|
__name: "TemplateCard",
|
|
4720
4755
|
props: {
|
|
@@ -4755,33 +4790,33 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
4755
4790
|
...r,
|
|
4756
4791
|
...a.messages
|
|
4757
4792
|
}));
|
|
4758
|
-
return (r, i) => (w(), s("div",
|
|
4793
|
+
return (r, i) => (w(), s("div", ro, [c("picture", io, [t.image ? (w(), s("img", {
|
|
4759
4794
|
key: 0,
|
|
4760
4795
|
src: t.image,
|
|
4761
4796
|
alt: t.title,
|
|
4762
4797
|
loading: "lazy",
|
|
4763
4798
|
class: "w-full rounded-t-xl object-cover"
|
|
4764
|
-
}, null, 8,
|
|
4799
|
+
}, null, 8, ao)) : (w(), s("div", oo, [f(Z, {
|
|
4765
4800
|
name: "image",
|
|
4766
4801
|
class: "text-4xl text-gray-400"
|
|
4767
|
-
})]))]), c("div",
|
|
4768
|
-
c("h3",
|
|
4769
|
-
t.subtitle ? (w(), s("p",
|
|
4770
|
-
t.contentFeatures.length ? (w(), s("ul",
|
|
4771
|
-
tooltip: R(() => [c("span",
|
|
4802
|
+
})]))]), c("div", so, [
|
|
4803
|
+
c("h3", co, k(t.title), 1),
|
|
4804
|
+
t.subtitle ? (w(), s("p", lo, k(t.subtitle), 1)) : o("", !0),
|
|
4805
|
+
t.contentFeatures.length ? (w(), s("ul", uo, [(w(!0), s(e, null, E(t.contentFeatures, (e) => (w(), s("li", { key: e }, [f(no, null, {
|
|
4806
|
+
tooltip: R(() => [c("span", fo, k(l.value[e]), 1)]),
|
|
4772
4807
|
default: R(() => [c("div", { class: y([[n[e].backgroundColor, n[e].textColor], "flex size-8 items-center justify-center rounded-full"]) }, [f(Z, { name: n[e].icon }, null, 8, ["name"])], 2)]),
|
|
4773
4808
|
_: 2
|
|
4774
4809
|
}, 1024)]))), 128))])) : o("", !0)
|
|
4775
4810
|
])]));
|
|
4776
4811
|
}
|
|
4777
|
-
}),
|
|
4812
|
+
}), mo = [
|
|
4778
4813
|
"data-event-source",
|
|
4779
4814
|
"data-event-date",
|
|
4780
4815
|
"date-event-type"
|
|
4781
|
-
],
|
|
4816
|
+
], ho = { class: "heading-3" }, go = ["href"], _o = { class: "truncate group-hover:underline" }, vo = {
|
|
4782
4817
|
key: 1,
|
|
4783
4818
|
class: "mt-1 text-sm text-gray-500"
|
|
4784
|
-
},
|
|
4819
|
+
}, yo = /* @__PURE__ */ p({
|
|
4785
4820
|
name: "NexxtTimelineEvent",
|
|
4786
4821
|
__name: "TimelineEvent",
|
|
4787
4822
|
props: {
|
|
@@ -4819,26 +4854,26 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
4819
4854
|
name: n.value.icon,
|
|
4820
4855
|
class: "flex h-6 w-6 text-xl text-white"
|
|
4821
4856
|
}, null, 8, ["name"])], 2), c("div", { class: y(["flex w-full flex-col gap-2 rounded-xl border border-gray-200 p-8", { "max-w-lg": e.splitView }]) }, [
|
|
4822
|
-
c("span",
|
|
4857
|
+
c("span", ho, k(n.value.label), 1),
|
|
4823
4858
|
e.event.url ? (w(), s("a", {
|
|
4824
4859
|
key: 0,
|
|
4825
4860
|
href: e.event.url,
|
|
4826
4861
|
target: "_blank",
|
|
4827
4862
|
class: "group mt-1 flex justify-between gap-2 text-sm text-cornflower-blue-500 hover:text-cornflower-blue-600"
|
|
4828
|
-
}, [c("span",
|
|
4863
|
+
}, [c("span", _o, k(e.event.description || e.event.url), 1), f(Z, {
|
|
4829
4864
|
name: "external-link",
|
|
4830
4865
|
class: "ml-1 h-4 w-4 text-gray-950"
|
|
4831
|
-
})], 8,
|
|
4832
|
-
e.event.request_reason ? (w(), s("span",
|
|
4833
|
-
], 2)], 2)], 10,
|
|
4866
|
+
})], 8, go)) : o("", !0),
|
|
4867
|
+
e.event.request_reason ? (w(), s("span", vo, " Reden: " + k(e.event.request_reason), 1)) : o("", !0)
|
|
4868
|
+
], 2)], 2)], 10, mo));
|
|
4834
4869
|
}
|
|
4835
|
-
}),
|
|
4870
|
+
}), bo = ["data-phase"], xo = {
|
|
4836
4871
|
key: 0,
|
|
4837
4872
|
class: "relative z-10"
|
|
4838
|
-
},
|
|
4873
|
+
}, So = { class: "flex items-center justify-between px-4 py-2" }, Co = { class: "flex gap-1" }, wo = { class: "flex gap-1" }, To = { class: "text-sm font-semibold tracking-wider uppercase" }, Eo = { class: "mt-2 font-medium text-xs text-gray-500" }, Do = {
|
|
4839
4874
|
key: 1,
|
|
4840
4875
|
class: "h-1"
|
|
4841
|
-
},
|
|
4876
|
+
}, Oo = /* @__PURE__ */ p({
|
|
4842
4877
|
name: "NexxtTimelinePhaseblock",
|
|
4843
4878
|
__name: "TimelinePhaseblock",
|
|
4844
4879
|
props: {
|
|
@@ -4874,14 +4909,14 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
4874
4909
|
class: "relative z-10 flex flex-col gap-16",
|
|
4875
4910
|
"data-phase": t.phase.phase.value
|
|
4876
4911
|
}, [
|
|
4877
|
-
t.index === 0 && t.isSplitView ? (w(), s("div",
|
|
4912
|
+
t.index === 0 && t.isSplitView ? (w(), s("div", xo, [c("div", So, [c("span", Co, [i[1] ||= d(" Outbound ", -1), f(no, null, {
|
|
4878
4913
|
tooltip: R(() => [...i[0] ||= [c("span", { class: "text-sm" }, "Vanuit Nexxtmove", -1)]]),
|
|
4879
4914
|
default: R(() => [f(Z, {
|
|
4880
4915
|
name: "circle-info",
|
|
4881
4916
|
class: "h-4 w-4 text-xs text-gray-600"
|
|
4882
4917
|
})]),
|
|
4883
4918
|
_: 1
|
|
4884
|
-
})]), c("span",
|
|
4919
|
+
})]), c("span", wo, [i[3] ||= d(" Inbound ", -1), f(no, { "as-child": "" }, {
|
|
4885
4920
|
tooltip: R(() => [...i[2] ||= [c("span", { class: "text-sm" }, "Vanuit relatie", -1)]]),
|
|
4886
4921
|
default: R(() => [f(Z, {
|
|
4887
4922
|
name: "circle-info",
|
|
@@ -4894,7 +4929,7 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
4894
4929
|
key: 1,
|
|
4895
4930
|
class: y(["absolute right-5 bottom-0 w-0 border-l", [A($)[t.phase.phase.value].color, t.index === 0 ? "top-10" : "top-0"]])
|
|
4896
4931
|
}, null, 2)) : o("", !0),
|
|
4897
|
-
(w(!0), s(e, null, E(t.phase.events, (e) => (w(), a(
|
|
4932
|
+
(w(!0), s(e, null, E(t.phase.events, (e) => (w(), a(yo, {
|
|
4898
4933
|
key: e.id,
|
|
4899
4934
|
event: e,
|
|
4900
4935
|
"split-view": t.isSplitView
|
|
@@ -4903,36 +4938,36 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
4903
4938
|
key: 2,
|
|
4904
4939
|
class: y(["relative flex flex-col items-center pt-8 pb-24 text-center", { "pl-16": !t.isSplitView }])
|
|
4905
4940
|
}, [
|
|
4906
|
-
c("div", { class: y(["flex items-center gap-2 rounded-full px-12 py-4", [A($)[t.phase.phase.value].bgColor, A($)[t.phase.phase.value].textColor]]) }, [c("span",
|
|
4941
|
+
c("div", { class: y(["flex items-center gap-2 rounded-full px-12 py-4", [A($)[t.phase.phase.value].bgColor, A($)[t.phase.phase.value].textColor]]) }, [c("span", To, k(A($)[t.phase.phase.value].label), 1), p() ? (w(), a(Z, {
|
|
4907
4942
|
key: 0,
|
|
4908
4943
|
name: p() === "up" ? "arrow-up" : "arrow-down",
|
|
4909
4944
|
class: "h-4 w-4 text-white"
|
|
4910
4945
|
}, null, 8, ["name"])) : o("", !0)], 2),
|
|
4911
|
-
c("span",
|
|
4946
|
+
c("span", Eo, k(u()), 1),
|
|
4912
4947
|
t.isSplitView ? (w(), s("div", {
|
|
4913
4948
|
key: 0,
|
|
4914
4949
|
class: y(["mt-4 h-px w-[75%]", A($)[t.phase.phase.value].bgColor])
|
|
4915
4950
|
}, null, 2)) : o("", !0),
|
|
4916
|
-
t.isLast ? o("", !0) : (w(), s("div",
|
|
4951
|
+
t.isLast ? o("", !0) : (w(), s("div", Do)),
|
|
4917
4952
|
c("div", { class: y(["absolute top-0 bottom-0 left-5 w-px bg-linear-to-b", r.value]) }, null, 2),
|
|
4918
4953
|
t.isSplitView ? (w(), s("div", {
|
|
4919
4954
|
key: 2,
|
|
4920
4955
|
class: y(["absolute top-0 right-5 bottom-0 w-px bg-linear-to-b", r.value])
|
|
4921
4956
|
}, null, 2)) : o("", !0)
|
|
4922
4957
|
], 2))
|
|
4923
|
-
], 8,
|
|
4958
|
+
], 8, bo));
|
|
4924
4959
|
}
|
|
4925
|
-
}),
|
|
4960
|
+
}), ko = ["role", "aria-live"], Ao = { class: "flex min-w-0 flex-1 flex-col gap-0.5 pt-0.5" }, jo = {
|
|
4926
4961
|
key: 1,
|
|
4927
4962
|
class: "body-normal"
|
|
4928
|
-
},
|
|
4963
|
+
}, Mo = ["aria-label"], No = {
|
|
4929
4964
|
key: 0,
|
|
4930
4965
|
class: "absolute inset-0 -rotate-90 text-gray-400",
|
|
4931
4966
|
viewBox: "0 0 24 24",
|
|
4932
4967
|
width: "32",
|
|
4933
4968
|
height: "32",
|
|
4934
4969
|
"aria-hidden": "true"
|
|
4935
|
-
},
|
|
4970
|
+
}, Po = 56.55, Fo = /*#__PURE__*/ Mn(/* @__PURE__ */ p({
|
|
4936
4971
|
name: "NexxtToast",
|
|
4937
4972
|
__name: "Toast",
|
|
4938
4973
|
props: {
|
|
@@ -4947,7 +4982,7 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
4947
4982
|
},
|
|
4948
4983
|
emits: ["dismiss"],
|
|
4949
4984
|
setup(e, { emit: t }) {
|
|
4950
|
-
j((e) => ({ v3e3d3e68:
|
|
4985
|
+
j((e) => ({ v3e3d3e68: Po }));
|
|
4951
4986
|
let n = {
|
|
4952
4987
|
info: {
|
|
4953
4988
|
icon: "info",
|
|
@@ -4995,12 +5030,12 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
4995
5030
|
name: l.value.icon,
|
|
4996
5031
|
class: "text-xl"
|
|
4997
5032
|
}, null, 8, ["name"])], 2),
|
|
4998
|
-
c("div",
|
|
5033
|
+
c("div", Ao, [
|
|
4999
5034
|
e.title ? (w(), s("p", {
|
|
5000
5035
|
key: 0,
|
|
5001
5036
|
class: y(["heading-4", l.value.titleColor])
|
|
5002
5037
|
}, k(e.title), 3)) : o("", !0),
|
|
5003
|
-
e.message ? (w(), s("p",
|
|
5038
|
+
e.message ? (w(), s("p", jo, k(e.message), 1)) : o("", !0),
|
|
5004
5039
|
D(t.$slots, "default", {}, void 0, !0)
|
|
5005
5040
|
]),
|
|
5006
5041
|
e.dismissible ? (w(), s("button", {
|
|
@@ -5009,7 +5044,7 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
5009
5044
|
class: "relative flex h-8 w-8 shrink-0 cursor-pointer items-center justify-center focus:outline-none",
|
|
5010
5045
|
"aria-label": e.autoClose ? `Sluiten (verdwijnt automatisch na ${e.autoClose / 1e3} seconden)` : "Sluiten",
|
|
5011
5046
|
onClick: n[0] ||= (e) => r("dismiss")
|
|
5012
|
-
}, [e.autoClose ? (w(), s("svg",
|
|
5047
|
+
}, [e.autoClose ? (w(), s("svg", No, [c("circle", {
|
|
5013
5048
|
cx: "12",
|
|
5014
5049
|
cy: "12",
|
|
5015
5050
|
r: "9",
|
|
@@ -5017,7 +5052,7 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
5017
5052
|
stroke: "currentColor",
|
|
5018
5053
|
"stroke-width": "1.2",
|
|
5019
5054
|
"stroke-linecap": "round",
|
|
5020
|
-
"stroke-dasharray":
|
|
5055
|
+
"stroke-dasharray": Po,
|
|
5021
5056
|
class: "timer-circle",
|
|
5022
5057
|
style: x({
|
|
5023
5058
|
animationDuration: `${e.autoClose}ms`,
|
|
@@ -5026,10 +5061,10 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
5026
5061
|
}, null, 4)])) : o("", !0), f(Z, {
|
|
5027
5062
|
name: "xmark",
|
|
5028
5063
|
class: "text-sm"
|
|
5029
|
-
})], 8,
|
|
5030
|
-
], 42,
|
|
5064
|
+
})], 8, Mo)) : o("", !0)
|
|
5065
|
+
], 42, ko));
|
|
5031
5066
|
}
|
|
5032
|
-
}), [["__scopeId", "data-v-89269eaa"]]),
|
|
5067
|
+
}), [["__scopeId", "data-v-89269eaa"]]), Io = /* @__PURE__ */ p({
|
|
5033
5068
|
name: "NexxtToaster",
|
|
5034
5069
|
__name: "Toaster",
|
|
5035
5070
|
props: {
|
|
@@ -5062,7 +5097,7 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
5062
5097
|
default: R(() => [(w(!0), s(e, null, E(n.toasts, (e) => (w(), s("div", {
|
|
5063
5098
|
key: e.id,
|
|
5064
5099
|
class: "pointer-events-auto"
|
|
5065
|
-
}, [f(
|
|
5100
|
+
}, [f(Fo, _({ ref_for: !0 }, e, { onDismiss: (t) => o("dismiss", e.id) }), null, 16, ["onDismiss"])]))), 128))]),
|
|
5066
5101
|
_: 1
|
|
5067
5102
|
}, 8, [
|
|
5068
5103
|
"class",
|
|
@@ -5070,19 +5105,19 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
5070
5105
|
"leave-to-class"
|
|
5071
5106
|
])], 2)]));
|
|
5072
5107
|
}
|
|
5073
|
-
}),
|
|
5108
|
+
}), Lo = { class: "flex flex-col gap-1" }, Ro = {
|
|
5074
5109
|
key: 0,
|
|
5075
5110
|
class: "text-color-gray-700 justify-start body-normal text-sm"
|
|
5076
|
-
},
|
|
5111
|
+
}, zo = ["onClick"], Bo = {
|
|
5077
5112
|
key: 1,
|
|
5078
5113
|
class: "extra-small-semibold"
|
|
5079
|
-
},
|
|
5114
|
+
}, Vo = ["onClick"], Ho = {
|
|
5080
5115
|
key: 1,
|
|
5081
5116
|
class: "extra-small-semibold"
|
|
5082
|
-
},
|
|
5117
|
+
}, Uo = {
|
|
5083
5118
|
key: 1,
|
|
5084
5119
|
class: "extra-small-semibold"
|
|
5085
|
-
},
|
|
5120
|
+
}, Wo = /* @__PURE__ */ p({
|
|
5086
5121
|
name: "NexxtToggleGroup",
|
|
5087
5122
|
__name: "ToggleGroup",
|
|
5088
5123
|
props: /*@__PURE__*/ g({
|
|
@@ -5113,7 +5148,7 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
5113
5148
|
};
|
|
5114
5149
|
return I(r, async () => await m()), et(i, () => m()), S(async () => {
|
|
5115
5150
|
await document.fonts.ready, await m(), await v(), p.value = !0;
|
|
5116
|
-
}), (n, m) => (w(), s("div",
|
|
5151
|
+
}), (n, m) => (w(), s("div", Lo, [t.label ? (w(), s("label", Ro, k(t.label), 1)) : o("", !0), c("div", {
|
|
5117
5152
|
ref_key: "containerRef",
|
|
5118
5153
|
ref: i,
|
|
5119
5154
|
class: y(["relative isolate flex h-10 gap-1 rounded-xl bg-gray-100 p-1", { "flex-wrap": !t.equalWidth }])
|
|
@@ -5123,7 +5158,7 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
5123
5158
|
class: y(["absolute inset-y-1 left-0 rounded-lg bg-white", p.value ? "transition-transform duration-500 ease-[cubic-bezier(0.34,1.2,0.64,1)]" : ""]),
|
|
5124
5159
|
style: x(u.value)
|
|
5125
5160
|
}, null, 6),
|
|
5126
|
-
(w(!0), s(e, null, E(t.options, (n, i) => (w(), s(e, { key: n.value }, [n.tooltip ? (w(), a(
|
|
5161
|
+
(w(!0), s(e, null, E(t.options, (n, i) => (w(), s(e, { key: n.value }, [n.tooltip ? (w(), a(no, {
|
|
5127
5162
|
key: 0,
|
|
5128
5163
|
"disable-closing-trigger": ""
|
|
5129
5164
|
}, {
|
|
@@ -5137,7 +5172,7 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
5137
5172
|
}, [n.icon ? (w(), a(Z, {
|
|
5138
5173
|
key: 0,
|
|
5139
5174
|
name: n.icon
|
|
5140
|
-
}, null, 8, ["name"])) : o("", !0), n.label ? (w(), s("span",
|
|
5175
|
+
}, null, 8, ["name"])) : o("", !0), n.label ? (w(), s("span", Bo, k(n.label), 1)) : o("", !0)], 10, zo)]),
|
|
5141
5176
|
_: 2
|
|
5142
5177
|
}, 1024)) : (w(), s("button", {
|
|
5143
5178
|
key: 1,
|
|
@@ -5149,7 +5184,7 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
5149
5184
|
}, [n.icon ? (w(), a(Z, {
|
|
5150
5185
|
key: 0,
|
|
5151
5186
|
name: n.icon
|
|
5152
|
-
}, null, 8, ["name"])) : o("", !0), n.label ? (w(), s("span",
|
|
5187
|
+
}, null, 8, ["name"])) : o("", !0), n.label ? (w(), s("span", Ho, k(n.label), 1)) : o("", !0)], 10, Vo))], 64))), 128)),
|
|
5153
5188
|
c("div", {
|
|
5154
5189
|
"aria-hidden": "true",
|
|
5155
5190
|
class: y(["pointer-events-none absolute inset-0 z-20 flex gap-1 p-1", [p.value ? "transition-[clip-path] duration-500 ease-[cubic-bezier(0.34,1.2,0.64,1)]" : "", { "flex-wrap": !t.equalWidth }]]),
|
|
@@ -5160,29 +5195,29 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
5160
5195
|
}, [e.icon ? (w(), a(Z, {
|
|
5161
5196
|
key: 0,
|
|
5162
5197
|
name: e.icon
|
|
5163
|
-
}, null, 8, ["name"])) : o("", !0), e.label ? (w(), s("span",
|
|
5198
|
+
}, null, 8, ["name"])) : o("", !0), e.label ? (w(), s("span", Uo, k(e.label), 1)) : o("", !0)], 2))), 128))], 6)
|
|
5164
5199
|
], 2)]));
|
|
5165
5200
|
}
|
|
5166
|
-
}),
|
|
5201
|
+
}), Go = [
|
|
5167
5202
|
"src",
|
|
5168
5203
|
"loop",
|
|
5169
5204
|
"aria-label"
|
|
5170
|
-
],
|
|
5205
|
+
], Ko = {
|
|
5171
5206
|
key: 0,
|
|
5172
5207
|
role: "alert",
|
|
5173
5208
|
class: "absolute inset-0 flex flex-col items-center justify-center gap-3 rounded-lg bg-gray-900 text-white"
|
|
5174
|
-
},
|
|
5209
|
+
}, qo = { class: "heading-4" }, Jo = { class: "max-w-xs truncate extra-small-normal text-white/50" }, Yo = {
|
|
5175
5210
|
key: 0,
|
|
5176
5211
|
class: "pointer-events-none absolute inset-0 flex items-center justify-center"
|
|
5177
|
-
},
|
|
5212
|
+
}, Xo = {
|
|
5178
5213
|
class: "flex h-16 w-16 items-center justify-center rounded-full bg-black/50 text-white",
|
|
5179
5214
|
"aria-hidden": "true"
|
|
5180
|
-
},
|
|
5215
|
+
}, Zo = [
|
|
5181
5216
|
"aria-label",
|
|
5182
5217
|
"aria-valuemax",
|
|
5183
5218
|
"aria-valuenow",
|
|
5184
5219
|
"aria-valuetext"
|
|
5185
|
-
],
|
|
5220
|
+
], Qo = { class: "flex items-center gap-2" }, $o = ["aria-label"], es = { class: "extra-small-normal text-white/70 tabular-nums" }, ts = ["aria-label"], ns = ["aria-label"], rs = /* @__PURE__ */ p({
|
|
5186
5221
|
__name: "VideoPlayer",
|
|
5187
5222
|
props: {
|
|
5188
5223
|
src: {},
|
|
@@ -5263,15 +5298,15 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
5263
5298
|
"aria-label": a.value.video,
|
|
5264
5299
|
onError: r[0] ||= (e) => E.value = !0,
|
|
5265
5300
|
onClick: r[1] ||= (t) => e.showControls === !1 ? void 0 : L()
|
|
5266
|
-
}, null, 42,
|
|
5267
|
-
E.value ? (w(), s("div",
|
|
5301
|
+
}, null, 42, Go),
|
|
5302
|
+
E.value ? (w(), s("div", Ko, [
|
|
5268
5303
|
f(Z, {
|
|
5269
5304
|
name: "circle-exclamation",
|
|
5270
5305
|
class: "text-3xl text-red-400",
|
|
5271
5306
|
"aria-hidden": "true"
|
|
5272
5307
|
}),
|
|
5273
|
-
c("p",
|
|
5274
|
-
c("p",
|
|
5308
|
+
c("p", qo, k(a.value.error), 1),
|
|
5309
|
+
c("p", Jo, k(e.src), 1)
|
|
5275
5310
|
])) : o("", !0),
|
|
5276
5311
|
f(n, {
|
|
5277
5312
|
"enter-active-class": "transition-opacity duration-100 ease-out",
|
|
@@ -5279,7 +5314,7 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
5279
5314
|
"enter-from-class": "opacity-0",
|
|
5280
5315
|
"leave-to-class": "opacity-0"
|
|
5281
5316
|
}, {
|
|
5282
|
-
default: R(() => [e.showControls !== !1 && D.value && !E.value ? (w(), s("div",
|
|
5317
|
+
default: R(() => [e.showControls !== !1 && D.value && !E.value ? (w(), s("div", Yo, [c("div", Xo, [f(Z, {
|
|
5283
5318
|
name: D.value,
|
|
5284
5319
|
class: "text-2xl"
|
|
5285
5320
|
}, null, 8, ["name"])])])) : o("", !0)]),
|
|
@@ -5322,7 +5357,7 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
5322
5357
|
class: "absolute top-1/2 h-3 w-3 -translate-x-1/2 -translate-y-1/2 rounded-full bg-sapphire-100 opacity-0 shadow transition-opacity group-hover/player:opacity-100",
|
|
5323
5358
|
style: x({ left: `${ee.value}%` })
|
|
5324
5359
|
}, null, 4)
|
|
5325
|
-
], 40,
|
|
5360
|
+
], 40, Zo), c("div", Qo, [
|
|
5326
5361
|
c("button", {
|
|
5327
5362
|
type: "button",
|
|
5328
5363
|
"aria-label": A(u) ? a.value.pause : a.value.play,
|
|
@@ -5332,8 +5367,8 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
5332
5367
|
name: A(u) ? "pause" : "play",
|
|
5333
5368
|
class: "text-sm",
|
|
5334
5369
|
"aria-hidden": "true"
|
|
5335
|
-
}, null, 8, ["name"])], 8,
|
|
5336
|
-
c("span",
|
|
5370
|
+
}, null, 8, ["name"])], 8, $o),
|
|
5371
|
+
c("span", es, k(F(W.value)) + " / " + k(F(A(m))), 1),
|
|
5337
5372
|
r[7] ||= c("div", { class: "flex-1" }, null, -1),
|
|
5338
5373
|
c("button", {
|
|
5339
5374
|
type: "button",
|
|
@@ -5344,7 +5379,7 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
5344
5379
|
name: A(h) ? "volume-xmark" : "volume-high",
|
|
5345
5380
|
class: "text-sm",
|
|
5346
5381
|
"aria-hidden": "true"
|
|
5347
|
-
}, null, 8, ["name"])], 8,
|
|
5382
|
+
}, null, 8, ["name"])], 8, ts),
|
|
5348
5383
|
c("button", {
|
|
5349
5384
|
type: "button",
|
|
5350
5385
|
"aria-label": A(_) ? a.value.exitFullscreen : a.value.enterFullscreen,
|
|
@@ -5354,10 +5389,10 @@ var ma = { render: pa }, ha = { class: "flex items-center justify-end self-stret
|
|
|
5354
5389
|
name: A(_) ? "compress" : "expand",
|
|
5355
5390
|
class: "text-sm",
|
|
5356
5391
|
"aria-hidden": "true"
|
|
5357
|
-
}, null, 8, ["name"])], 8,
|
|
5392
|
+
}, null, 8, ["name"])], 8, ns)
|
|
5358
5393
|
])], 4)) : o("", !0)
|
|
5359
5394
|
], 32));
|
|
5360
5395
|
}
|
|
5361
5396
|
});
|
|
5362
5397
|
//#endregion
|
|
5363
|
-
export { tt as NexxtAnimatedNumber, rt as NexxtAnnouncement, ct as NexxtAvatar, ut as NexxtButton, Ht as NexxtCalendar, Gt as NexxtCard, qt as NexxtCheckbox, Jt as NexxtChip, ln as NexxtColorPicker, jn as NexxtCombobox, An as NexxtComboboxPanel, Rn as NexxtContactInfoCard, Zn as NexxtCountrySelect, nr as NexxtCustomerJourneyTile, rr as NexxtDatePicker, dr as NexxtDoughnutChart, gr as NexxtDropdownButton, yr as NexxtEnergyLabel, Q as NexxtFloatingPanel, Sr as NexxtHeader, Z as NexxtIcon, wr as NexxtInfoBlock, _n as NexxtInputField, Nr as NexxtInputSelect, Lr as NexxtModal, Rr as NexxtPagination, Hr as NexxtPresenceIndicator, Yr as NexxtProgressBar, oi as NexxtPropertyCard, ti as NexxtPropertyListing, Si as NexxtReferenceCard, ji as NexxtSelect, Li as NexxtSidebarMenuItem, zi as NexxtSkeleton, Ui as NexxtSkeletonPropertyCard, Ki as NexxtSocialIcons, Xi as NexxtSocialMediaCustomTemplate, aa as NexxtSocialMediaTemplate, ya as NexxtSocialMediaType, Ma as NexxtSource, st as NexxtSquircle, Na as NexxtStepperHeader,
|
|
5398
|
+
export { tt as NexxtAnimatedNumber, rt as NexxtAnnouncement, ct as NexxtAvatar, ut as NexxtButton, Ht as NexxtCalendar, Gt as NexxtCard, qt as NexxtCheckbox, Jt as NexxtChip, ln as NexxtColorPicker, jn as NexxtCombobox, An as NexxtComboboxPanel, Rn as NexxtContactInfoCard, Zn as NexxtCountrySelect, nr as NexxtCustomerJourneyTile, rr as NexxtDatePicker, dr as NexxtDoughnutChart, gr as NexxtDropdownButton, yr as NexxtEnergyLabel, Q as NexxtFloatingPanel, Sr as NexxtHeader, Z as NexxtIcon, wr as NexxtInfoBlock, _n as NexxtInputField, Nr as NexxtInputSelect, Lr as NexxtModal, Rr as NexxtPagination, Hr as NexxtPresenceIndicator, Yr as NexxtProgressBar, oi as NexxtPropertyCard, ti as NexxtPropertyListing, Si as NexxtReferenceCard, ji as NexxtSelect, Li as NexxtSidebarMenuItem, zi as NexxtSkeleton, Ui as NexxtSkeletonPropertyCard, Ki as NexxtSocialIcons, Xi as NexxtSocialMediaCustomTemplate, aa as NexxtSocialMediaTemplate, ya as NexxtSocialMediaType, Ma as NexxtSource, st as NexxtSquircle, Na as NexxtStepperHeader, Fa as NexxtSwitch, Ha as NexxtTabbedContent, to as NexxtTable, Ra as NexxtTabs, po as NexxtTemplateCard, yo as NexxtTimelineEvent, Oo as NexxtTimelinePhaseblock, Fo as NexxtToast, Io as NexxtToaster, Wo as NexxtToggleGroup, no as NexxtTooltip, rs as NexxtVideoPlayer, ka as SOURCE_MAP };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexxtmove/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.9",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"@eslint/js": "^10.0.1",
|
|
35
35
|
"@nuxt/kit": "^4.4.8",
|
|
36
36
|
"@nuxt/schema": "^4.4.4",
|
|
37
|
-
"@storybook/addon-a11y": "^10.5.
|
|
37
|
+
"@storybook/addon-a11y": "^10.5.4",
|
|
38
38
|
"@storybook/addon-designs": "^11.1.4",
|
|
39
|
-
"@storybook/addon-docs": "^10.5.
|
|
40
|
-
"@storybook/addon-vitest": "^10.5.
|
|
41
|
-
"@storybook/builder-vite": "^10.5.
|
|
42
|
-
"@storybook/vue3-vite": "^10.5.
|
|
39
|
+
"@storybook/addon-docs": "^10.5.4",
|
|
40
|
+
"@storybook/addon-vitest": "^10.5.4",
|
|
41
|
+
"@storybook/builder-vite": "^10.5.4",
|
|
42
|
+
"@storybook/vue3-vite": "^10.5.4",
|
|
43
43
|
"@tailwindcss/vite": "^4.3.1",
|
|
44
44
|
"@types/node": "^26.0.1",
|
|
45
45
|
"@types/react": "^19.2.17",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"eslint": "^10.6.0",
|
|
54
54
|
"eslint-config-prettier": "^10.1.8",
|
|
55
55
|
"eslint-plugin-prettier": "^5.5.6",
|
|
56
|
-
"eslint-plugin-storybook": "10.5.
|
|
56
|
+
"eslint-plugin-storybook": "10.5.4",
|
|
57
57
|
"eslint-plugin-vue": "^10.9.2",
|
|
58
58
|
"flag-icons": "^7.5.0",
|
|
59
59
|
"globals": "^17.7.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"react": "^19.2.7",
|
|
64
64
|
"react-dom": "^19.2.7",
|
|
65
65
|
"remark-frontmatter": "^5.0.0",
|
|
66
|
-
"storybook": "^10.5.
|
|
66
|
+
"storybook": "^10.5.4",
|
|
67
67
|
"typescript-eslint": "^8.62.0",
|
|
68
68
|
"vite": "^8.1.0",
|
|
69
69
|
"vite-plugin-dts": "^5.0.3",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
|
|
4
4
|
interface NexxtChipProps {
|
|
5
|
-
variant?: 'default' | 'warning' | 'success' | 'danger' | 'neutral'
|
|
5
|
+
variant?: 'default' | 'warning' | 'success' | 'danger' | 'neutral' | 'accent'
|
|
6
6
|
ghost?: boolean
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -23,6 +23,8 @@ const styles = computed(() => {
|
|
|
23
23
|
return { bg: 'bg-brick-100/20', border: 'border border-brick-500', text: 'text-brick-500' }
|
|
24
24
|
case 'neutral':
|
|
25
25
|
return { bg: 'bg-gray-100', border: 'border border-gray-600', text: 'text-gray-700' }
|
|
26
|
+
case 'accent':
|
|
27
|
+
return { bg: 'bg-purple-50', border: 'border border-purple-500', text: 'text-purple-500' }
|
|
26
28
|
default:
|
|
27
29
|
return {
|
|
28
30
|
bg: 'bg-cornflower-blue-50',
|
|
@@ -40,6 +42,8 @@ const styles = computed(() => {
|
|
|
40
42
|
return { bg: 'bg-brick-500', border: '', text: 'text-white' }
|
|
41
43
|
case 'neutral':
|
|
42
44
|
return { bg: 'bg-gray-700', border: '', text: 'text-white' }
|
|
45
|
+
case 'accent':
|
|
46
|
+
return { bg: 'bg-purple-600', border: '', text: 'text-white' }
|
|
43
47
|
default:
|
|
44
48
|
return { bg: 'bg-cornflower-blue-600', border: '', text: 'text-white' }
|
|
45
49
|
}
|
|
@@ -3,10 +3,12 @@ import type { IconName } from '@awesome.me/kit-37b149f3ef/icons'
|
|
|
3
3
|
import Icon from '../Icon/Icon.vue'
|
|
4
4
|
|
|
5
5
|
type SwitchColor = 'blue' | 'green'
|
|
6
|
+
type SwitchSize = 'sm' | 'md' | 'lg'
|
|
6
7
|
|
|
7
8
|
interface NexxtSwitchProps {
|
|
8
9
|
labelPosition?: 'before' | 'after'
|
|
9
10
|
color?: SwitchColor
|
|
11
|
+
size?: SwitchSize
|
|
10
12
|
iconOn?: IconName
|
|
11
13
|
iconOff?: IconName
|
|
12
14
|
}
|
|
@@ -16,7 +18,13 @@ defineOptions({
|
|
|
16
18
|
inheritAttrs: false,
|
|
17
19
|
})
|
|
18
20
|
|
|
19
|
-
const {
|
|
21
|
+
const {
|
|
22
|
+
labelPosition = 'after',
|
|
23
|
+
color = 'blue',
|
|
24
|
+
size = 'lg',
|
|
25
|
+
iconOn,
|
|
26
|
+
iconOff,
|
|
27
|
+
} = defineProps<NexxtSwitchProps>()
|
|
20
28
|
|
|
21
29
|
const model = defineModel<boolean>()
|
|
22
30
|
|
|
@@ -24,12 +32,36 @@ const checkedColorClasses: Record<SwitchColor, string> = {
|
|
|
24
32
|
blue: 'border-cornflower-blue-500 bg-cornflower-blue-500',
|
|
25
33
|
green: 'border-green-400 bg-green-400',
|
|
26
34
|
}
|
|
35
|
+
|
|
36
|
+
const trackClasses: Record<SwitchSize, string> = {
|
|
37
|
+
sm: 'h-5 w-9',
|
|
38
|
+
md: 'h-6 w-11',
|
|
39
|
+
lg: 'h-8 w-15',
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const knobClasses: Record<SwitchSize, string> = {
|
|
43
|
+
sm: 'top-0.5 left-0.5 h-3.5 w-3.5',
|
|
44
|
+
md: 'top-0.5 left-0.5 h-4.5 w-4.5',
|
|
45
|
+
lg: 'top-0.75 left-0.75 h-6 w-6',
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const knobTranslateClasses: Record<SwitchSize, string> = {
|
|
49
|
+
sm: 'translate-x-4',
|
|
50
|
+
md: 'translate-x-5',
|
|
51
|
+
lg: 'translate-x-7',
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const iconSizeClasses: Record<SwitchSize, string> = {
|
|
55
|
+
sm: 'text-[8px]',
|
|
56
|
+
md: 'text-[10px]',
|
|
57
|
+
lg: 'text-xs',
|
|
58
|
+
}
|
|
27
59
|
</script>
|
|
28
60
|
|
|
29
61
|
<template>
|
|
30
62
|
<label class="inline-flex cursor-pointer items-center gap-2">
|
|
31
63
|
<slot v-if="labelPosition === 'before'" />
|
|
32
|
-
<span class="relative inline-block
|
|
64
|
+
<span :class="['relative inline-block', trackClasses[size]]">
|
|
33
65
|
<input v-bind="$attrs" type="checkbox" class="peer sr-only" v-model="model" />
|
|
34
66
|
<span
|
|
35
67
|
:class="[
|
|
@@ -39,18 +71,29 @@ const checkedColorClasses: Record<SwitchColor, string> = {
|
|
|
39
71
|
>
|
|
40
72
|
<span
|
|
41
73
|
:class="[
|
|
42
|
-
'absolute
|
|
43
|
-
|
|
74
|
+
'absolute rounded-full bg-white transition-transform duration-400',
|
|
75
|
+
knobClasses[size],
|
|
76
|
+
model && knobTranslateClasses[size],
|
|
44
77
|
]"
|
|
45
78
|
/>
|
|
46
79
|
<span
|
|
47
80
|
:class="[
|
|
48
|
-
'absolute
|
|
49
|
-
|
|
81
|
+
'absolute flex items-center justify-center rounded-full bg-white transition-transform duration-300',
|
|
82
|
+
knobClasses[size],
|
|
83
|
+
model && knobTranslateClasses[size],
|
|
50
84
|
]"
|
|
51
85
|
>
|
|
52
|
-
<Icon
|
|
53
|
-
|
|
86
|
+
<Icon
|
|
87
|
+
v-if="model && iconOn"
|
|
88
|
+
:name="iconOn"
|
|
89
|
+
type="solid"
|
|
90
|
+
:class="['text-gray-600', iconSizeClasses[size]]"
|
|
91
|
+
/>
|
|
92
|
+
<Icon
|
|
93
|
+
v-else-if="!model && iconOff"
|
|
94
|
+
:name="iconOff"
|
|
95
|
+
:class="['text-gray-600', iconSizeClasses[size]]"
|
|
96
|
+
/>
|
|
54
97
|
</span>
|
|
55
98
|
</span>
|
|
56
99
|
</span>
|