@nexxtmove/ui 0.1.8 → 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 +44 -8
- package/dist/index.js +164 -92
- 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;
|
|
@@ -138,7 +163,18 @@ declare interface NexxtProgressBarProps {
|
|
|
138
163
|
stepTitles?: string[];
|
|
139
164
|
}
|
|
140
165
|
|
|
141
|
-
export declare const
|
|
166
|
+
export declare const NexxtSocialIcons: DefineComponent<NexxtSocialIconsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NexxtSocialIconsProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLUListElement>;
|
|
167
|
+
|
|
168
|
+
declare interface NexxtSocialIconsProps {
|
|
169
|
+
facebook?: boolean;
|
|
170
|
+
instagram?: boolean;
|
|
171
|
+
linkedin?: boolean;
|
|
172
|
+
x?: boolean;
|
|
173
|
+
google?: boolean;
|
|
174
|
+
tiktok?: boolean;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export declare const NexxtStepperHeader: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
142
178
|
|
|
143
179
|
declare interface NexxtStepperHeaderProps {
|
|
144
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__ */ d({
|
|
|
7
7
|
easing: { default: "ease-out" }
|
|
8
8
|
},
|
|
9
9
|
setup(e) {
|
|
10
|
-
const t = j("up"),
|
|
10
|
+
const t = j("up"), n = m(() => String(e.value).split("")), l = m(() => `duration-${e.duration}`);
|
|
11
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__ */ d({
|
|
|
48
48
|
_: 1
|
|
49
49
|
}, 8, ["aria-label", "enter-active-class", "leave-active-class", "enter-from-class", "leave-to-class"]));
|
|
50
50
|
}
|
|
51
|
-
}),
|
|
51
|
+
}), x = /* @__PURE__ */ u({
|
|
52
52
|
name: "NexxtIcon",
|
|
53
53
|
__name: "Icon",
|
|
54
54
|
props: {
|
|
@@ -56,14 +56,14 @@ const V = /* @__PURE__ */ d({
|
|
|
56
56
|
type: { default: "light" }
|
|
57
57
|
},
|
|
58
58
|
setup(e) {
|
|
59
|
-
return (t,
|
|
59
|
+
return (t, n) => (a(), s("i", {
|
|
60
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
65
|
class: /* @__PURE__ */ o(["absolute inset-0 flex items-center justify-center rounded-lg"])
|
|
66
|
-
},
|
|
66
|
+
}, L = /* @__PURE__ */ u({
|
|
67
67
|
name: "NexxtButton",
|
|
68
68
|
__name: "Button",
|
|
69
69
|
props: {
|
|
@@ -75,7 +75,7 @@ const V = /* @__PURE__ */ d({
|
|
|
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
81
|
class: o([
|
|
@@ -87,12 +87,12 @@ const V = /* @__PURE__ */ d({
|
|
|
87
87
|
]),
|
|
88
88
|
"data-variant": e.variant
|
|
89
89
|
}, [
|
|
90
|
-
e.icon ? (a(), x
|
|
90
|
+
e.icon ? (a(), k(x, {
|
|
91
91
|
key: 0,
|
|
92
92
|
name: e.icon,
|
|
93
93
|
class: o(["transition-all duration-200", { "order-last": e.iconRight, "opacity-0": e.loading }])
|
|
94
|
-
}, null, 8, ["name", "class"])) :
|
|
95
|
-
t.$slots.default ? (a(),
|
|
94
|
+
}, null, 8, ["name", "class"])) : b("", !0),
|
|
95
|
+
t.$slots.default ? (a(), s("span", {
|
|
96
96
|
key: 1,
|
|
97
97
|
class: o([
|
|
98
98
|
"inline-block transition-all duration-200",
|
|
@@ -102,8 +102,8 @@ const V = /* @__PURE__ */ d({
|
|
|
102
102
|
])
|
|
103
103
|
}, [
|
|
104
104
|
p(t.$slots, "default")
|
|
105
|
-
], 2)) :
|
|
106
|
-
|
|
105
|
+
], 2)) : b("", !0),
|
|
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,22 +112,51 @@ const V = /* @__PURE__ */ d({
|
|
|
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"
|
|
120
120
|
})
|
|
121
|
-
])) :
|
|
121
|
+
])) : b("", !0)
|
|
122
122
|
]),
|
|
123
123
|
_: 1
|
|
124
124
|
})
|
|
125
125
|
], 10, z));
|
|
126
126
|
}
|
|
127
|
-
}),
|
|
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,69 +167,70 @@ const V = /* @__PURE__ */ d({
|
|
|
138
167
|
} }
|
|
139
168
|
},
|
|
140
169
|
setup(e) {
|
|
141
|
-
return (t,
|
|
170
|
+
return (t, n) => (a(), s("div", {
|
|
142
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(),
|
|
186
|
+
t.$slots.center ? (a(), s("div", q, [
|
|
158
187
|
p(t.$slots, "center")
|
|
159
|
-
])) :
|
|
160
|
-
t.$slots.right ? (a(),
|
|
188
|
+
])) : b("", !0),
|
|
189
|
+
t.$slots.right ? (a(), s("div", {
|
|
161
190
|
key: 1,
|
|
162
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
|
-
], 2)) :
|
|
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({
|
|
204
|
+
name: "NexxtInfoBlock",
|
|
175
205
|
__name: "InfoBlock",
|
|
176
206
|
setup(e) {
|
|
177
|
-
return (t,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
207
|
+
return (t, n) => (a(), s("div", R, [
|
|
208
|
+
r("div", U, [
|
|
209
|
+
r("div", X, [
|
|
210
|
+
f(x, {
|
|
181
211
|
name: "thumbs-up",
|
|
182
212
|
size: "lg",
|
|
183
213
|
class: "text-white"
|
|
184
214
|
})
|
|
185
215
|
])
|
|
186
216
|
]),
|
|
187
|
-
|
|
188
|
-
|
|
217
|
+
r("div", J, [
|
|
218
|
+
n[1] || (n[1] = r("span", { class: "body-semibold" }, "Tip!", -1)),
|
|
189
219
|
p(t.$slots, "default", {}, () => [
|
|
190
|
-
|
|
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))
|
|
191
221
|
])
|
|
192
222
|
])
|
|
193
223
|
]));
|
|
194
224
|
}
|
|
195
|
-
}), O = { class: "@container" }, Q = { class: "flex flex-col @md:gap-2" }, W = { class: "flex items-center justify-between gap-2" },
|
|
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 = {
|
|
196
226
|
key: 0,
|
|
197
227
|
class: "flex items-center small-normal tabular-nums @md:hidden",
|
|
198
228
|
"aria-hidden": "true"
|
|
199
|
-
},
|
|
229
|
+
}, _ = {
|
|
200
230
|
key: 0,
|
|
201
231
|
class: "flex justify-between @max-md:order-first @max-md:justify-center",
|
|
202
232
|
"aria-label": "Progress steps"
|
|
203
|
-
},
|
|
233
|
+
}, ee = ["aria-current", "role", "tabindex", "aria-label", "onClick", "onKeydown"], te = /* @__PURE__ */ u({
|
|
204
234
|
name: "NexxtProgressBar",
|
|
205
235
|
__name: "ProgressBar",
|
|
206
236
|
props: {
|
|
@@ -211,56 +241,96 @@ const V = /* @__PURE__ */ d({
|
|
|
211
241
|
},
|
|
212
242
|
emits: ["update:currentStep"],
|
|
213
243
|
setup(e) {
|
|
214
|
-
const t = m(() => Math.min(Math.max(0, e.currentStep), Math.max(0, e.steps - 1))),
|
|
215
|
-
return
|
|
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);
|
|
245
|
+
return A(() => {
|
|
216
246
|
e.stepTitles && e.stepTitles.length !== e.steps && console.warn(
|
|
217
247
|
`[NexxtProgressBar] The "stepTitles" array length (${e.stepTitles.length}) must match the "steps" prop (${e.steps}).`
|
|
218
248
|
);
|
|
219
|
-
}), (v,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
249
|
+
}), (v, d) => (a(), s("div", O, [
|
|
250
|
+
r("div", Q, [
|
|
251
|
+
r("div", W, [
|
|
252
|
+
r("div", {
|
|
223
253
|
class: "progress-bar progress-bar-bar h-2 w-full overflow-hidden rounded-full",
|
|
224
254
|
role: "progressbar",
|
|
225
255
|
"aria-label": e.progressLabel,
|
|
226
256
|
"aria-valuemin": "0",
|
|
227
257
|
"aria-valuemax": "100",
|
|
228
|
-
"aria-valuenow": Math.round(
|
|
229
|
-
"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}`
|
|
230
260
|
}, [
|
|
231
|
-
|
|
261
|
+
r("div", {
|
|
232
262
|
class: "progress-bar-progress h-full transition-all duration-500 ease-out",
|
|
233
|
-
style:
|
|
263
|
+
style: H({ width: `${l.value}%` }),
|
|
234
264
|
"aria-hidden": !0
|
|
235
265
|
}, null, 4)
|
|
236
|
-
], 8,
|
|
237
|
-
|
|
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)
|
|
270
|
+
])) : b("", !0)
|
|
241
271
|
]),
|
|
242
|
-
|
|
243
|
-
(a(!0),
|
|
244
|
-
key:
|
|
272
|
+
c.value ? (a(), s("ol", _, [
|
|
273
|
+
(a(!0), s($, null, w(e.stepTitles, (g, i) => (a(), s("li", {
|
|
274
|
+
key: g,
|
|
245
275
|
class: o(["rounded-xs transition-colors duration-500 focus-visible:outline-3 @max-md:hidden @max-md:body-normal @min-md:small-normal", [
|
|
246
|
-
|
|
247
|
-
|
|
276
|
+
i === t.value ? "text-sapphire-500 @max-md:inline" : "",
|
|
277
|
+
i < t.value ? "cursor-pointer duration-200! hover:text-sapphire-400" : ""
|
|
248
278
|
]]),
|
|
249
|
-
"aria-current":
|
|
250
|
-
role:
|
|
251
|
-
tabindex:
|
|
252
|
-
"aria-label":
|
|
253
|
-
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),
|
|
254
284
|
onKeydown: [
|
|
255
|
-
|
|
256
|
-
|
|
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"])
|
|
257
287
|
]
|
|
258
|
-
},
|
|
259
|
-
])) :
|
|
288
|
+
}, y(g), 43, ee))), 128))
|
|
289
|
+
])) : b("", !0)
|
|
260
290
|
])
|
|
261
291
|
]));
|
|
262
292
|
}
|
|
263
|
-
}),
|
|
293
|
+
}), ae = {
|
|
294
|
+
class: "m-0 inline-flex list-none items-start justify-start gap-0.5 p-0",
|
|
295
|
+
"aria-label": "Sociale media kanalen"
|
|
296
|
+
}, ne = ["aria-label"], re = /* @__PURE__ */ u({
|
|
297
|
+
name: "NexxtSocialIcons",
|
|
298
|
+
__name: "SocialIcons",
|
|
299
|
+
props: {
|
|
300
|
+
facebook: { type: Boolean },
|
|
301
|
+
instagram: { type: Boolean },
|
|
302
|
+
linkedin: { type: Boolean },
|
|
303
|
+
x: { type: Boolean },
|
|
304
|
+
google: { type: Boolean },
|
|
305
|
+
tiktok: { type: Boolean }
|
|
306
|
+
},
|
|
307
|
+
setup(e) {
|
|
308
|
+
const t = e, n = [
|
|
309
|
+
{ name: "facebook", label: "Facebook", icon: "facebook-f" },
|
|
310
|
+
{ name: "instagram", label: "Instagram", icon: "instagram" },
|
|
311
|
+
{ name: "linkedin", label: "LinkedIn", icon: "linkedin-in" },
|
|
312
|
+
{ name: "x", label: "X (voorheen Twitter)", icon: "x-twitter" },
|
|
313
|
+
{ name: "google", label: "Google", icon: "google" },
|
|
314
|
+
{ name: "tiktok", label: "TikTok", icon: "tiktok" }
|
|
315
|
+
], l = m(
|
|
316
|
+
() => n.filter((c) => t[c.name])
|
|
317
|
+
);
|
|
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
|
|
323
|
+
}, [
|
|
324
|
+
f(x, {
|
|
325
|
+
name: d.icon,
|
|
326
|
+
type: "brands",
|
|
327
|
+
class: "text-[10px] text-white",
|
|
328
|
+
"aria-hidden": "true"
|
|
329
|
+
}, null, 8, ["name"])
|
|
330
|
+
], 10, ne))), 128))
|
|
331
|
+
]));
|
|
332
|
+
}
|
|
333
|
+
}), oe = /* @__PURE__ */ u({
|
|
264
334
|
name: "NexxtStepperHeader",
|
|
265
335
|
__name: "StepperHeader",
|
|
266
336
|
props: {
|
|
@@ -272,20 +342,20 @@ const V = /* @__PURE__ */ d({
|
|
|
272
342
|
},
|
|
273
343
|
emits: ["update:currentStep"],
|
|
274
344
|
setup(e) {
|
|
275
|
-
return (t,
|
|
345
|
+
return (t, n) => (a(), k(D, {
|
|
276
346
|
title: e.title,
|
|
277
347
|
"back-button-action": e.backButtonAction,
|
|
278
348
|
"back-button-text": e.backButtonText
|
|
279
|
-
},
|
|
349
|
+
}, M({ _: 2 }, [
|
|
280
350
|
e.steps ? {
|
|
281
351
|
name: "center",
|
|
282
352
|
fn: h(() => [
|
|
283
|
-
|
|
353
|
+
f(te, {
|
|
284
354
|
class: "w-full",
|
|
285
355
|
steps: e.steps.length,
|
|
286
356
|
"step-titles": e.steps,
|
|
287
357
|
"current-step": e.currentStep,
|
|
288
|
-
"onUpdate:currentStep":
|
|
358
|
+
"onUpdate:currentStep": n[0] || (n[0] = (l) => t.$emit("update:currentStep", l))
|
|
289
359
|
}, null, 8, ["steps", "step-titles", "current-step"])
|
|
290
360
|
]),
|
|
291
361
|
key: "0"
|
|
@@ -302,10 +372,12 @@ const V = /* @__PURE__ */ d({
|
|
|
302
372
|
});
|
|
303
373
|
export {
|
|
304
374
|
V as NexxtAnimatedNumber,
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
375
|
+
L as NexxtButton,
|
|
376
|
+
le as NexxtChip,
|
|
377
|
+
D as NexxtHeader,
|
|
378
|
+
x as NexxtIcon,
|
|
379
|
+
ie as NexxtInfoBlock,
|
|
380
|
+
te as NexxtProgressBar,
|
|
381
|
+
re as NexxtSocialIcons,
|
|
382
|
+
oe as NexxtStepperHeader
|
|
311
383
|
};
|