@nexxtmove/ui 0.1.9 → 0.1.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.d.ts +33 -8
- package/dist/index.js +138 -108
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,11 +6,13 @@ import { PublicProps } from 'vue';
|
|
|
6
6
|
|
|
7
7
|
declare const __VLS_component: DefineComponent<NexxtButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NexxtButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
8
8
|
|
|
9
|
-
declare const __VLS_component_2: DefineComponent<
|
|
9
|
+
declare const __VLS_component_2: DefineComponent<NexxtChipProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NexxtChipProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
10
10
|
|
|
11
|
-
declare const __VLS_component_3: DefineComponent<
|
|
11
|
+
declare const __VLS_component_3: DefineComponent<NexxtHeaderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NexxtHeaderProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
12
12
|
|
|
13
|
-
declare const __VLS_component_4: DefineComponent<
|
|
13
|
+
declare const __VLS_component_4: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
14
|
+
|
|
15
|
+
declare const __VLS_component_5: DefineComponent<NexxtStepperHeaderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
14
16
|
"update:currentStep": (...args: any[]) => void;
|
|
15
17
|
}, string, PublicProps, Readonly<NexxtStepperHeaderProps> & Readonly<{
|
|
16
18
|
"onUpdate:currentStep"?: ((...args: any[]) => any) | undefined;
|
|
@@ -32,6 +34,15 @@ declare function __VLS_template(): {
|
|
|
32
34
|
};
|
|
33
35
|
|
|
34
36
|
declare function __VLS_template_2(): {
|
|
37
|
+
attrs: Partial<{}>;
|
|
38
|
+
slots: {
|
|
39
|
+
default?(_: {}): any;
|
|
40
|
+
};
|
|
41
|
+
refs: {};
|
|
42
|
+
rootEl: HTMLSpanElement;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
declare function __VLS_template_3(): {
|
|
35
46
|
attrs: Partial<{}>;
|
|
36
47
|
slots: {
|
|
37
48
|
center?(_: {}): any;
|
|
@@ -41,7 +52,7 @@ declare function __VLS_template_2(): {
|
|
|
41
52
|
rootEl: HTMLDivElement;
|
|
42
53
|
};
|
|
43
54
|
|
|
44
|
-
declare function
|
|
55
|
+
declare function __VLS_template_4(): {
|
|
45
56
|
attrs: Partial<{}>;
|
|
46
57
|
slots: {
|
|
47
58
|
default?(_: {}): any;
|
|
@@ -50,7 +61,7 @@ declare function __VLS_template_3(): {
|
|
|
50
61
|
rootEl: HTMLDivElement;
|
|
51
62
|
};
|
|
52
63
|
|
|
53
|
-
declare function
|
|
64
|
+
declare function __VLS_template_5(): {
|
|
54
65
|
attrs: Partial<{}>;
|
|
55
66
|
slots: {
|
|
56
67
|
default?(_: {}): any;
|
|
@@ -67,6 +78,8 @@ declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
|
67
78
|
|
|
68
79
|
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
69
80
|
|
|
81
|
+
declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
|
|
82
|
+
|
|
70
83
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
71
84
|
new (): {
|
|
72
85
|
$slots: S;
|
|
@@ -91,6 +104,12 @@ declare type __VLS_WithTemplateSlots_4<T, S> = T & {
|
|
|
91
104
|
};
|
|
92
105
|
};
|
|
93
106
|
|
|
107
|
+
declare type __VLS_WithTemplateSlots_5<T, S> = T & {
|
|
108
|
+
new (): {
|
|
109
|
+
$slots: S;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
|
|
94
113
|
declare type EasingFunction = 'ease-linear' | 'ease-in' | 'ease-out' | 'ease-in-out';
|
|
95
114
|
|
|
96
115
|
declare type IconType = 'regular' | 'solid' | 'light' | 'duotone' | 'brands';
|
|
@@ -108,7 +127,13 @@ declare interface NexxtButtonProps {
|
|
|
108
127
|
buttonType?: 'button' | 'submit' | 'reset';
|
|
109
128
|
}
|
|
110
129
|
|
|
111
|
-
export declare const
|
|
130
|
+
export declare const NexxtChip: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
131
|
+
|
|
132
|
+
declare interface NexxtChipProps {
|
|
133
|
+
variant?: 'default' | 'warning' | 'success' | 'danger';
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export declare const NexxtHeader: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
112
137
|
|
|
113
138
|
declare interface NexxtHeaderProps {
|
|
114
139
|
title: string;
|
|
@@ -123,7 +148,7 @@ declare interface NexxtIconProps {
|
|
|
123
148
|
type?: IconType;
|
|
124
149
|
}
|
|
125
150
|
|
|
126
|
-
export declare const NexxtInfoBlock:
|
|
151
|
+
export declare const NexxtInfoBlock: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
127
152
|
|
|
128
153
|
export declare const NexxtProgressBar: DefineComponent<NexxtProgressBarProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
129
154
|
"update:currentStep": (...args: any[]) => void;
|
|
@@ -149,7 +174,7 @@ declare interface NexxtSocialIconsProps {
|
|
|
149
174
|
tiktok?: boolean;
|
|
150
175
|
}
|
|
151
176
|
|
|
152
|
-
export declare const NexxtStepperHeader:
|
|
177
|
+
export declare const NexxtStepperHeader: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
153
178
|
|
|
154
179
|
declare interface NexxtStepperHeaderProps {
|
|
155
180
|
title: string;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const V = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as u, ref as j, computed as m, watch as C, createBlock as k, openBlock as a, TransitionGroup as I, withCtx as h, createElementBlock as s, Fragment as $, renderList as w, createVNode as f, Transition as T, toDisplayString as y, normalizeClass as o, createCommentVNode as b, renderSlot as p, createElementVNode as r, createTextVNode as B, watchEffect as A, normalizeStyle as H, withKeys as N, withModifiers as P, createSlots as M } from "vue";
|
|
2
|
+
const V = /* @__PURE__ */ u({
|
|
3
3
|
__name: "AnimatedNumber",
|
|
4
4
|
props: {
|
|
5
5
|
value: {},
|
|
@@ -7,39 +7,39 @@ const V = /* @__PURE__ */ m({
|
|
|
7
7
|
easing: { default: "ease-out" }
|
|
8
8
|
},
|
|
9
9
|
setup(e) {
|
|
10
|
-
const t = j("up"),
|
|
11
|
-
return
|
|
10
|
+
const t = j("up"), n = m(() => String(e.value).split("")), l = m(() => `duration-${e.duration}`);
|
|
11
|
+
return C(
|
|
12
12
|
() => e.value,
|
|
13
|
-
(
|
|
14
|
-
t.value =
|
|
13
|
+
(c, v) => {
|
|
14
|
+
t.value = c > v ? "up" : "down";
|
|
15
15
|
}
|
|
16
|
-
), (
|
|
16
|
+
), (c, v) => (a(), k(I, {
|
|
17
17
|
tag: "div",
|
|
18
18
|
class: "relative flex shrink-0 items-center tabular-nums",
|
|
19
19
|
"aria-label": e.value,
|
|
20
|
-
"enter-active-class": `transition-all ${
|
|
21
|
-
"leave-active-class": `absolute transition-all ${
|
|
20
|
+
"enter-active-class": `transition-all ${l.value} ${e.easing}`,
|
|
21
|
+
"leave-active-class": `absolute transition-all ${l.value} ${e.easing}`,
|
|
22
22
|
"enter-from-class": t.value === "up" ? "translate-y-full opacity-0" : "-translate-y-full opacity-0",
|
|
23
23
|
"leave-to-class": t.value === "up" ? "-translate-y-full opacity-0" : "translate-y-full opacity-0",
|
|
24
24
|
"move-class": "transition-all duration-500 ease-in-out"
|
|
25
25
|
}, {
|
|
26
26
|
default: h(() => [
|
|
27
|
-
(a(!0),
|
|
28
|
-
key:
|
|
27
|
+
(a(!0), s($, null, w(n.value, (d, g) => (a(), s("div", {
|
|
28
|
+
key: g,
|
|
29
29
|
class: "relative inline-flex h-[1.5em] w-[1ch] items-center justify-center overflow-hidden",
|
|
30
30
|
"aria-hidden": "true"
|
|
31
31
|
}, [
|
|
32
|
-
|
|
33
|
-
"enter-active-class": `transition-transform ${
|
|
34
|
-
"leave-active-class": `absolute inset-0 transition-transform ${
|
|
32
|
+
f(T, {
|
|
33
|
+
"enter-active-class": `transition-transform ${l.value} ${e.easing}`,
|
|
34
|
+
"leave-active-class": `absolute inset-0 transition-transform ${l.value} ${e.easing}`,
|
|
35
35
|
"enter-from-class": t.value === "up" ? "translate-y-full" : "-translate-y-full",
|
|
36
36
|
"leave-to-class": t.value === "up" ? "-translate-y-full" : "translate-y-full"
|
|
37
37
|
}, {
|
|
38
38
|
default: h(() => [
|
|
39
|
-
(a(),
|
|
40
|
-
key:
|
|
39
|
+
(a(), s("span", {
|
|
40
|
+
key: d,
|
|
41
41
|
class: "flex h-full w-full items-center justify-center"
|
|
42
|
-
},
|
|
42
|
+
}, y(d), 1))
|
|
43
43
|
]),
|
|
44
44
|
_: 2
|
|
45
45
|
}, 1032, ["enter-active-class", "leave-active-class", "enter-from-class", "leave-to-class"])
|
|
@@ -48,7 +48,7 @@ const V = /* @__PURE__ */ m({
|
|
|
48
48
|
_: 1
|
|
49
49
|
}, 8, ["aria-label", "enter-active-class", "leave-active-class", "enter-from-class", "leave-to-class"]));
|
|
50
50
|
}
|
|
51
|
-
}), x = /* @__PURE__ */
|
|
51
|
+
}), x = /* @__PURE__ */ u({
|
|
52
52
|
name: "NexxtIcon",
|
|
53
53
|
__name: "Icon",
|
|
54
54
|
props: {
|
|
@@ -56,14 +56,14 @@ const V = /* @__PURE__ */ m({
|
|
|
56
56
|
type: { default: "light" }
|
|
57
57
|
},
|
|
58
58
|
setup(e) {
|
|
59
|
-
return (t,
|
|
60
|
-
class:
|
|
59
|
+
return (t, n) => (a(), s("i", {
|
|
60
|
+
class: o([`fa-${e.type}`, `fa-${e.name}`, "items-center", "justify-center"])
|
|
61
61
|
}, null, 2));
|
|
62
62
|
}
|
|
63
63
|
}), z = ["type", "disabled", "data-variant"], K = {
|
|
64
64
|
key: 0,
|
|
65
|
-
class: /* @__PURE__ */
|
|
66
|
-
}, L = /* @__PURE__ */
|
|
65
|
+
class: /* @__PURE__ */ o(["absolute inset-0 flex items-center justify-center rounded-lg"])
|
|
66
|
+
}, L = /* @__PURE__ */ u({
|
|
67
67
|
name: "NexxtButton",
|
|
68
68
|
__name: "Button",
|
|
69
69
|
props: {
|
|
@@ -75,10 +75,10 @@ const V = /* @__PURE__ */ m({
|
|
|
75
75
|
buttonType: { default: "button" }
|
|
76
76
|
},
|
|
77
77
|
setup(e) {
|
|
78
|
-
return (t,
|
|
78
|
+
return (t, n) => (a(), s("button", {
|
|
79
79
|
type: e.buttonType,
|
|
80
80
|
disabled: e.disabled,
|
|
81
|
-
class:
|
|
81
|
+
class: o([
|
|
82
82
|
"button relative flex h-10 cursor-pointer items-center justify-center overflow-hidden rounded-lg transition-colors duration-200 focus-visible:outline-3 disabled:cursor-not-allowed",
|
|
83
83
|
`button-${e.variant}`,
|
|
84
84
|
t.$slots.default ?? "w-10",
|
|
@@ -90,20 +90,20 @@ const V = /* @__PURE__ */ m({
|
|
|
90
90
|
e.icon ? (a(), k(x, {
|
|
91
91
|
key: 0,
|
|
92
92
|
name: e.icon,
|
|
93
|
-
class:
|
|
93
|
+
class: o(["transition-all duration-200", { "order-last": e.iconRight, "opacity-0": e.loading }])
|
|
94
94
|
}, null, 8, ["name", "class"])) : b("", !0),
|
|
95
|
-
t.$slots.default ? (a(),
|
|
95
|
+
t.$slots.default ? (a(), s("span", {
|
|
96
96
|
key: 1,
|
|
97
|
-
class:
|
|
97
|
+
class: o([
|
|
98
98
|
"inline-block transition-all duration-200",
|
|
99
99
|
{ "opacity-0": e.loading },
|
|
100
100
|
e.variant === "link" ? "body-link underline-offset-1" : "body-normal",
|
|
101
101
|
e.variant === "link" && !e.loading && !e.disabled ? "hover:underline-offset-2" : ""
|
|
102
102
|
])
|
|
103
103
|
}, [
|
|
104
|
-
|
|
104
|
+
p(t.$slots, "default")
|
|
105
105
|
], 2)) : b("", !0),
|
|
106
|
-
|
|
106
|
+
f(T, {
|
|
107
107
|
"enter-active-class": "transition-opacity duration-200",
|
|
108
108
|
"enter-from-class": "opacity-0",
|
|
109
109
|
"enter-to-class": "opacity-100",
|
|
@@ -112,8 +112,8 @@ const V = /* @__PURE__ */ m({
|
|
|
112
112
|
"leave-to-class": "opacity-0"
|
|
113
113
|
}, {
|
|
114
114
|
default: h(() => [
|
|
115
|
-
e.loading ? (a(),
|
|
116
|
-
|
|
115
|
+
e.loading ? (a(), s("div", K, [
|
|
116
|
+
f(x, {
|
|
117
117
|
name: "spinner-third",
|
|
118
118
|
type: "light",
|
|
119
119
|
class: "fa-spin absolute text-sm"
|
|
@@ -124,10 +124,39 @@ const V = /* @__PURE__ */ m({
|
|
|
124
124
|
})
|
|
125
125
|
], 10, z));
|
|
126
126
|
}
|
|
127
|
-
}), E = { class: "
|
|
127
|
+
}), E = { class: "justify-start text-center extra-small-semibold text-white" }, le = /* @__PURE__ */ u({
|
|
128
|
+
name: "NexxtChip",
|
|
129
|
+
__name: "Chip",
|
|
130
|
+
props: {
|
|
131
|
+
variant: { default: "default" }
|
|
132
|
+
},
|
|
133
|
+
setup(e) {
|
|
134
|
+
const t = m(() => {
|
|
135
|
+
switch (e.variant) {
|
|
136
|
+
case "warning":
|
|
137
|
+
return "bg-orange-500";
|
|
138
|
+
case "success":
|
|
139
|
+
return "bg-green-500";
|
|
140
|
+
case "danger":
|
|
141
|
+
return "bg-brick-500";
|
|
142
|
+
default:
|
|
143
|
+
return "bg-cornflower-blue-600";
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
return (n, l) => (a(), s("span", {
|
|
147
|
+
class: o(["inline-flex h-5 flex-col items-center justify-center gap-2.5 rounded-[200px] px-4", t.value])
|
|
148
|
+
}, [
|
|
149
|
+
r("span", E, [
|
|
150
|
+
p(n.$slots, "default", {}, () => [
|
|
151
|
+
l[0] || (l[0] = B("Chip", -1))
|
|
152
|
+
])
|
|
153
|
+
])
|
|
154
|
+
], 2));
|
|
155
|
+
}
|
|
156
|
+
}), F = { class: "flex max-w-full items-center justify-start gap-4" }, G = { class: "block truncate heading-4 text-sapphire-500" }, q = {
|
|
128
157
|
key: 0,
|
|
129
158
|
class: "col-span-1 col-start-2 flex justify-center"
|
|
130
|
-
},
|
|
159
|
+
}, D = /* @__PURE__ */ u({
|
|
131
160
|
name: "NexxtHeader",
|
|
132
161
|
__name: "Header",
|
|
133
162
|
props: {
|
|
@@ -138,70 +167,70 @@ const V = /* @__PURE__ */ m({
|
|
|
138
167
|
} }
|
|
139
168
|
},
|
|
140
169
|
setup(e) {
|
|
141
|
-
return (t,
|
|
142
|
-
class:
|
|
170
|
+
return (t, n) => (a(), s("div", {
|
|
171
|
+
class: o(["header flex items-center", t.$slots.center ? "grid grid-cols-3" : ""])
|
|
143
172
|
}, [
|
|
144
|
-
|
|
145
|
-
|
|
173
|
+
r("div", F, [
|
|
174
|
+
f(L, {
|
|
146
175
|
class: "shrink-0",
|
|
147
176
|
variant: "secondary",
|
|
148
177
|
onClick: e.backButtonAction
|
|
149
178
|
}, {
|
|
150
179
|
default: h(() => [
|
|
151
|
-
|
|
180
|
+
B(y(e.backButtonText), 1)
|
|
152
181
|
]),
|
|
153
182
|
_: 1
|
|
154
183
|
}, 8, ["onClick"]),
|
|
155
|
-
|
|
184
|
+
r("span", G, y(e.title), 1)
|
|
156
185
|
]),
|
|
157
|
-
t.$slots.center ? (a(),
|
|
158
|
-
|
|
186
|
+
t.$slots.center ? (a(), s("div", q, [
|
|
187
|
+
p(t.$slots, "center")
|
|
159
188
|
])) : b("", !0),
|
|
160
|
-
t.$slots.right ? (a(),
|
|
189
|
+
t.$slots.right ? (a(), s("div", {
|
|
161
190
|
key: 1,
|
|
162
|
-
class:
|
|
191
|
+
class: o(t.$slots.center ? "col-span-1 col-start-3 flex justify-end" : "ml-auto")
|
|
163
192
|
}, [
|
|
164
|
-
|
|
193
|
+
p(t.$slots, "right")
|
|
165
194
|
], 2)) : b("", !0)
|
|
166
195
|
], 2));
|
|
167
196
|
}
|
|
168
|
-
}),
|
|
197
|
+
}), R = {
|
|
169
198
|
class: "info-block flex rounded-xl",
|
|
170
199
|
role: "note"
|
|
171
|
-
},
|
|
200
|
+
}, U = {
|
|
172
201
|
class: "flex min-h-20 w-20 shrink-0 items-center justify-center bg-green-50",
|
|
173
202
|
"aria-hidden": "true"
|
|
174
|
-
},
|
|
203
|
+
}, X = { class: "flex aspect-square h-10 items-center justify-center rounded-full bg-green-500" }, J = { class: "p-5" }, ie = /* @__PURE__ */ u({
|
|
175
204
|
name: "NexxtInfoBlock",
|
|
176
205
|
__name: "InfoBlock",
|
|
177
206
|
setup(e) {
|
|
178
|
-
return (t,
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
207
|
+
return (t, n) => (a(), s("div", R, [
|
|
208
|
+
r("div", U, [
|
|
209
|
+
r("div", X, [
|
|
210
|
+
f(x, {
|
|
182
211
|
name: "thumbs-up",
|
|
183
212
|
size: "lg",
|
|
184
213
|
class: "text-white"
|
|
185
214
|
})
|
|
186
215
|
])
|
|
187
216
|
]),
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
217
|
+
r("div", J, [
|
|
218
|
+
n[1] || (n[1] = r("span", { class: "body-semibold" }, "Tip!", -1)),
|
|
219
|
+
p(t.$slots, "default", {}, () => [
|
|
220
|
+
n[0] || (n[0] = B(" Koopwoningen doen het goed als post of reel: zo geef je de woning genoeg aandacht én vergroot je het bereik. ", -1))
|
|
192
221
|
])
|
|
193
222
|
])
|
|
194
223
|
]));
|
|
195
224
|
}
|
|
196
|
-
}),
|
|
225
|
+
}), O = { class: "@container" }, Q = { class: "flex flex-col @md:gap-2" }, W = { class: "flex items-center justify-between gap-2" }, Y = ["aria-label", "aria-valuenow", "aria-valuetext"], Z = {
|
|
197
226
|
key: 0,
|
|
198
227
|
class: "flex items-center small-normal tabular-nums @md:hidden",
|
|
199
228
|
"aria-hidden": "true"
|
|
200
|
-
},
|
|
229
|
+
}, _ = {
|
|
201
230
|
key: 0,
|
|
202
231
|
class: "flex justify-between @max-md:order-first @max-md:justify-center",
|
|
203
232
|
"aria-label": "Progress steps"
|
|
204
|
-
},
|
|
233
|
+
}, ee = ["aria-current", "role", "tabindex", "aria-label", "onClick", "onKeydown"], te = /* @__PURE__ */ u({
|
|
205
234
|
name: "NexxtProgressBar",
|
|
206
235
|
__name: "ProgressBar",
|
|
207
236
|
props: {
|
|
@@ -212,59 +241,59 @@ const V = /* @__PURE__ */ m({
|
|
|
212
241
|
},
|
|
213
242
|
emits: ["update:currentStep"],
|
|
214
243
|
setup(e) {
|
|
215
|
-
const t =
|
|
244
|
+
const t = m(() => Math.min(Math.max(0, e.currentStep), Math.max(0, e.steps - 1))), n = m(() => e.steps > 0 ? t.value + 1 : 0), l = m(() => e.steps <= 1 ? e.steps === 1 ? 100 : 0 : t.value / (e.steps - 1) * 100), c = m(() => !!e.stepTitles?.length);
|
|
216
245
|
return A(() => {
|
|
217
246
|
e.stepTitles && e.stepTitles.length !== e.steps && console.warn(
|
|
218
247
|
`[NexxtProgressBar] The "stepTitles" array length (${e.stepTitles.length}) must match the "steps" prop (${e.steps}).`
|
|
219
248
|
);
|
|
220
|
-
}), (
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
249
|
+
}), (v, d) => (a(), s("div", O, [
|
|
250
|
+
r("div", Q, [
|
|
251
|
+
r("div", W, [
|
|
252
|
+
r("div", {
|
|
224
253
|
class: "progress-bar progress-bar-bar h-2 w-full overflow-hidden rounded-full",
|
|
225
254
|
role: "progressbar",
|
|
226
255
|
"aria-label": e.progressLabel,
|
|
227
256
|
"aria-valuemin": "0",
|
|
228
257
|
"aria-valuemax": "100",
|
|
229
|
-
"aria-valuenow": Math.round(
|
|
230
|
-
"aria-valuetext":
|
|
258
|
+
"aria-valuenow": Math.round(l.value),
|
|
259
|
+
"aria-valuetext": c.value && e.stepTitles?.[t.value] ? `Step ${n.value} of ${e.steps}: ${e.stepTitles[t.value]}` : `Step ${n.value} of ${e.steps}`
|
|
231
260
|
}, [
|
|
232
|
-
|
|
261
|
+
r("div", {
|
|
233
262
|
class: "progress-bar-progress h-full transition-all duration-500 ease-out",
|
|
234
|
-
style: H({ width: `${
|
|
263
|
+
style: H({ width: `${l.value}%` }),
|
|
235
264
|
"aria-hidden": !0
|
|
236
265
|
}, null, 4)
|
|
237
|
-
], 8,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
266
|
+
], 8, Y),
|
|
267
|
+
c.value ? (a(), s("div", Z, [
|
|
268
|
+
f(V, { value: n.value }, null, 8, ["value"]),
|
|
269
|
+
r("span", null, "/" + y(e.steps), 1)
|
|
241
270
|
])) : b("", !0)
|
|
242
271
|
]),
|
|
243
|
-
|
|
244
|
-
(a(!0),
|
|
245
|
-
key:
|
|
246
|
-
class:
|
|
247
|
-
|
|
248
|
-
|
|
272
|
+
c.value ? (a(), s("ol", _, [
|
|
273
|
+
(a(!0), s($, null, w(e.stepTitles, (g, i) => (a(), s("li", {
|
|
274
|
+
key: g,
|
|
275
|
+
class: o(["rounded-xs transition-colors duration-500 focus-visible:outline-3 @max-md:hidden @max-md:body-normal @min-md:small-normal", [
|
|
276
|
+
i === t.value ? "text-sapphire-500 @max-md:inline" : "",
|
|
277
|
+
i < t.value ? "cursor-pointer duration-200! hover:text-sapphire-400" : ""
|
|
249
278
|
]]),
|
|
250
|
-
"aria-current":
|
|
251
|
-
role:
|
|
252
|
-
tabindex:
|
|
253
|
-
"aria-label":
|
|
254
|
-
onClick: (
|
|
279
|
+
"aria-current": i === t.value ? "step" : void 0,
|
|
280
|
+
role: i < t.value ? "button" : void 0,
|
|
281
|
+
tabindex: i < t.value ? 0 : void 0,
|
|
282
|
+
"aria-label": i < t.value ? `Ga naar ${g}` : void 0,
|
|
283
|
+
onClick: (S) => i < t.value && v.$emit("update:currentStep", i),
|
|
255
284
|
onKeydown: [
|
|
256
|
-
|
|
257
|
-
|
|
285
|
+
N((S) => i < t.value && v.$emit("update:currentStep", i), ["enter"]),
|
|
286
|
+
N(P((S) => i < t.value && v.$emit("update:currentStep", i), ["prevent"]), ["space"])
|
|
258
287
|
]
|
|
259
|
-
},
|
|
288
|
+
}, y(g), 43, ee))), 128))
|
|
260
289
|
])) : b("", !0)
|
|
261
290
|
])
|
|
262
291
|
]));
|
|
263
292
|
}
|
|
264
|
-
}),
|
|
293
|
+
}), ae = {
|
|
265
294
|
class: "m-0 inline-flex list-none items-start justify-start gap-0.5 p-0",
|
|
266
295
|
"aria-label": "Sociale media kanalen"
|
|
267
|
-
},
|
|
296
|
+
}, ne = ["aria-label"], re = /* @__PURE__ */ u({
|
|
268
297
|
name: "NexxtSocialIcons",
|
|
269
298
|
__name: "SocialIcons",
|
|
270
299
|
props: {
|
|
@@ -276,32 +305,32 @@ const V = /* @__PURE__ */ m({
|
|
|
276
305
|
tiktok: { type: Boolean }
|
|
277
306
|
},
|
|
278
307
|
setup(e) {
|
|
279
|
-
const t = e,
|
|
308
|
+
const t = e, n = [
|
|
280
309
|
{ name: "facebook", label: "Facebook", icon: "facebook-f" },
|
|
281
310
|
{ name: "instagram", label: "Instagram", icon: "instagram" },
|
|
282
311
|
{ name: "linkedin", label: "LinkedIn", icon: "linkedin-in" },
|
|
283
312
|
{ name: "x", label: "X (voorheen Twitter)", icon: "x-twitter" },
|
|
284
313
|
{ name: "google", label: "Google", icon: "google" },
|
|
285
314
|
{ name: "tiktok", label: "TikTok", icon: "tiktok" }
|
|
286
|
-
],
|
|
287
|
-
() =>
|
|
315
|
+
], l = m(
|
|
316
|
+
() => n.filter((c) => t[c.name])
|
|
288
317
|
);
|
|
289
|
-
return (
|
|
290
|
-
(a(!0),
|
|
291
|
-
key:
|
|
292
|
-
class:
|
|
293
|
-
"aria-label":
|
|
318
|
+
return (c, v) => (a(), s("ul", ae, [
|
|
319
|
+
(a(!0), s($, null, w(l.value, (d) => (a(), s("li", {
|
|
320
|
+
key: d.name,
|
|
321
|
+
class: o(["inline-flex h-5 w-5 items-center justify-center rounded-full outline-1 outline-white", `bg-brands-${d.name}`]),
|
|
322
|
+
"aria-label": d.label
|
|
294
323
|
}, [
|
|
295
|
-
|
|
296
|
-
name:
|
|
324
|
+
f(x, {
|
|
325
|
+
name: d.icon,
|
|
297
326
|
type: "brands",
|
|
298
327
|
class: "text-[10px] text-white",
|
|
299
328
|
"aria-hidden": "true"
|
|
300
329
|
}, null, 8, ["name"])
|
|
301
|
-
], 10,
|
|
330
|
+
], 10, ne))), 128))
|
|
302
331
|
]));
|
|
303
332
|
}
|
|
304
|
-
}),
|
|
333
|
+
}), oe = /* @__PURE__ */ u({
|
|
305
334
|
name: "NexxtStepperHeader",
|
|
306
335
|
__name: "StepperHeader",
|
|
307
336
|
props: {
|
|
@@ -313,7 +342,7 @@ const V = /* @__PURE__ */ m({
|
|
|
313
342
|
},
|
|
314
343
|
emits: ["update:currentStep"],
|
|
315
344
|
setup(e) {
|
|
316
|
-
return (t,
|
|
345
|
+
return (t, n) => (a(), k(D, {
|
|
317
346
|
title: e.title,
|
|
318
347
|
"back-button-action": e.backButtonAction,
|
|
319
348
|
"back-button-text": e.backButtonText
|
|
@@ -321,12 +350,12 @@ const V = /* @__PURE__ */ m({
|
|
|
321
350
|
e.steps ? {
|
|
322
351
|
name: "center",
|
|
323
352
|
fn: h(() => [
|
|
324
|
-
|
|
353
|
+
f(te, {
|
|
325
354
|
class: "w-full",
|
|
326
355
|
steps: e.steps.length,
|
|
327
356
|
"step-titles": e.steps,
|
|
328
357
|
"current-step": e.currentStep,
|
|
329
|
-
"onUpdate:currentStep":
|
|
358
|
+
"onUpdate:currentStep": n[0] || (n[0] = (l) => t.$emit("update:currentStep", l))
|
|
330
359
|
}, null, 8, ["steps", "step-titles", "current-step"])
|
|
331
360
|
]),
|
|
332
361
|
key: "0"
|
|
@@ -334,7 +363,7 @@ const V = /* @__PURE__ */ m({
|
|
|
334
363
|
t.$slots.default ? {
|
|
335
364
|
name: "right",
|
|
336
365
|
fn: h(() => [
|
|
337
|
-
|
|
366
|
+
p(t.$slots, "default")
|
|
338
367
|
]),
|
|
339
368
|
key: "1"
|
|
340
369
|
} : void 0
|
|
@@ -344,10 +373,11 @@ const V = /* @__PURE__ */ m({
|
|
|
344
373
|
export {
|
|
345
374
|
V as NexxtAnimatedNumber,
|
|
346
375
|
L as NexxtButton,
|
|
347
|
-
|
|
376
|
+
le as NexxtChip,
|
|
377
|
+
D as NexxtHeader,
|
|
348
378
|
x as NexxtIcon,
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
379
|
+
ie as NexxtInfoBlock,
|
|
380
|
+
te as NexxtProgressBar,
|
|
381
|
+
re as NexxtSocialIcons,
|
|
382
|
+
oe as NexxtStepperHeader
|
|
353
383
|
};
|