@autoafleveren/ui 0.1.3 → 0.1.5
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/config/eslint.cjs +2 -0
- package/dist/config/tailwind/config.cjs +6 -0
- package/dist/types/components/AppButton/AppButton.vue.d.ts +8 -5
- package/dist/types/components/AppButton/ButtonIconSlot.vue.d.ts +1 -1
- package/dist/types/components/AppCard/AppCard.vue.d.ts +55 -0
- package/dist/types/components/AppCard/CardAction.vue.d.ts +16 -0
- package/dist/types/components/AppCard/CardIconSlot.vue.d.ts +23 -0
- package/dist/types/components/AppLicensePlate/AppLicensePlate.vue.d.ts +41 -0
- package/dist/types/components/AppLoader/AppLoader.vue.d.ts +5 -2
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/composables/useNavigation/index.d.ts +1 -1
- package/dist/types/layouts/Auth/Auth.vue.d.ts +1 -1
- package/dist/types/layouts/Base/Base.vue.d.ts +3 -2
- package/dist/ui-library.css +1 -1
- package/dist/ui.cjs +2 -2
- package/dist/ui.css +1 -1
- package/dist/ui.js +299 -163
- package/package.json +37 -37
package/dist/config/eslint.cjs
CHANGED
|
@@ -30,9 +30,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
30
30
|
colorType: ColorType;
|
|
31
31
|
disabled: boolean;
|
|
32
32
|
}>, {
|
|
33
|
-
leadingIcon
|
|
34
|
-
default
|
|
35
|
-
trailingIcon
|
|
33
|
+
leadingIcon?(_: {}): any;
|
|
34
|
+
default?(_: {}): any;
|
|
35
|
+
trailingIcon?(_: {}): any;
|
|
36
36
|
}>;
|
|
37
37
|
export default _default;
|
|
38
38
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -45,12 +45,15 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
47
|
type __VLS_WithDefaults<P, D> = {
|
|
48
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
48
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
49
49
|
default: D[K];
|
|
50
|
-
} : P[K];
|
|
50
|
+
}> : P[K];
|
|
51
51
|
};
|
|
52
52
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
53
53
|
new (): {
|
|
54
54
|
$slots: S;
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
|
+
type __VLS_Prettify<T> = {
|
|
58
|
+
[K in keyof T]: T[K];
|
|
59
|
+
} & {};
|
|
@@ -3,7 +3,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
3
3
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
loading?: boolean | undefined;
|
|
5
5
|
}>>>, {}>, {
|
|
6
|
-
default
|
|
6
|
+
default?(_: {}): any;
|
|
7
7
|
}>;
|
|
8
8
|
export default _default;
|
|
9
9
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { Action } from './index.d';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
bordered?: boolean | undefined;
|
|
4
|
+
title?: string | undefined;
|
|
5
|
+
icon?: string | undefined;
|
|
6
|
+
actions?: Action[] | undefined;
|
|
7
|
+
}>, {
|
|
8
|
+
title: undefined;
|
|
9
|
+
icon: undefined;
|
|
10
|
+
bordered: boolean;
|
|
11
|
+
actions: undefined;
|
|
12
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
13
|
+
bordered?: boolean | undefined;
|
|
14
|
+
title?: string | undefined;
|
|
15
|
+
icon?: string | undefined;
|
|
16
|
+
actions?: Action[] | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
title: undefined;
|
|
19
|
+
icon: undefined;
|
|
20
|
+
bordered: boolean;
|
|
21
|
+
actions: undefined;
|
|
22
|
+
}>>>, {
|
|
23
|
+
title: string;
|
|
24
|
+
icon: string;
|
|
25
|
+
bordered: boolean;
|
|
26
|
+
actions: Action[];
|
|
27
|
+
}>, {
|
|
28
|
+
icon?(_: {}): any;
|
|
29
|
+
title?(_: {}): any;
|
|
30
|
+
default?(_: {}): any;
|
|
31
|
+
actions?(_: {}): any;
|
|
32
|
+
}>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
35
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
36
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
37
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
38
|
+
} : {
|
|
39
|
+
type: import('vue').PropType<T[K]>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
type __VLS_WithDefaults<P, D> = {
|
|
44
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
45
|
+
default: D[K];
|
|
46
|
+
}> : P[K];
|
|
47
|
+
};
|
|
48
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
type __VLS_Prettify<T> = {
|
|
54
|
+
[K in keyof T]: T[K];
|
|
55
|
+
} & {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Action } from './index.d';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
item: Action;
|
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
item: Action;
|
|
6
|
+
}>>>, {}>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
10
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
11
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
12
|
+
} : {
|
|
13
|
+
type: import('vue').PropType<T[K]>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Component } from 'vue';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
icon?: string | Component | undefined;
|
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
icon?: string | Component | undefined;
|
|
6
|
+
}>>>, {}>, {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
}>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: import('vue').PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
license?: string | undefined;
|
|
3
|
+
country?: "NL" | undefined;
|
|
4
|
+
}>, {
|
|
5
|
+
license: undefined;
|
|
6
|
+
country: string;
|
|
7
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
license?: string | undefined;
|
|
9
|
+
country?: "NL" | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
license: undefined;
|
|
12
|
+
country: string;
|
|
13
|
+
}>>>, {
|
|
14
|
+
license: string;
|
|
15
|
+
country: "NL";
|
|
16
|
+
}>, {
|
|
17
|
+
default?(_: {}): any;
|
|
18
|
+
}>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
21
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
22
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
23
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
24
|
+
} : {
|
|
25
|
+
type: import('vue').PropType<T[K]>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
type __VLS_WithDefaults<P, D> = {
|
|
30
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
31
|
+
default: D[K];
|
|
32
|
+
}> : P[K];
|
|
33
|
+
};
|
|
34
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
type __VLS_Prettify<T> = {
|
|
40
|
+
[K in keyof T]: T[K];
|
|
41
|
+
} & {};
|
|
@@ -21,7 +21,10 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
type __VLS_WithDefaults<P, D> = {
|
|
24
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
24
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
25
25
|
default: D[K];
|
|
26
|
-
} : P[K];
|
|
26
|
+
}> : P[K];
|
|
27
27
|
};
|
|
28
|
+
type __VLS_Prettify<T> = {
|
|
29
|
+
[K in keyof T]: T[K];
|
|
30
|
+
} & {};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { default as AppButton } from './AppButton/AppButton.vue';
|
|
2
|
+
export { default as AppCard } from './AppCard/AppCard.vue';
|
|
2
3
|
export { default as AppLoader } from './AppLoader/AppLoader.vue';
|
|
3
4
|
export { default as AppNavigationMenu } from './AppNavigationMenu/AppNavigationMenu.vue';
|
|
5
|
+
export { default as AppLicensePlate } from './AppLicensePlate/AppLicensePlate.vue';
|
|
@@ -140,7 +140,7 @@ export declare function useNavigation(): {
|
|
|
140
140
|
}[]>;
|
|
141
141
|
mainMenuOpen: import("vue").Ref<boolean>;
|
|
142
142
|
mobileMenuOpen: import("vue").Ref<boolean>;
|
|
143
|
-
navigationComponent: import("vue").ShallowRef<
|
|
143
|
+
navigationComponent: import("vue").ShallowRef<"a" | Component>;
|
|
144
144
|
logo: import("vue").Ref<string | import("vue").FunctionalComponent<any, any> | {
|
|
145
145
|
new (...args: any[]): any;
|
|
146
146
|
__isFragment?: undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, {
|
|
2
|
-
default
|
|
2
|
+
default?(_: {}): any;
|
|
3
3
|
}>;
|
|
4
4
|
export default _default;
|
|
5
5
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
top?(_: {}): any;
|
|
3
|
+
default?(_: {}): any;
|
|
4
|
+
sidebar?(_: {}): any;
|
|
4
5
|
}>;
|
|
5
6
|
export default _default;
|
|
6
7
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
package/dist/ui-library.css
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");
|
|
2
2
|
|
|
3
|
-
/*! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:Inter;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--color-primary:#e25c2a;--color-primary-active:#c2410c;--color-secondary:#1e243b;--color-secondary-active:#1e243b}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.visible{visibility:visible}.\!static{position:static!important}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.bottom-5{bottom:1.25rem}.right-5{right:1.25rem}.top-0{top:0}.top-20{top:5rem}.z-50{z-index:50}.order-1{order:1}.order-2{order:2}.order-3{order:3}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:.5rem}.mb-auto{margin-bottom:auto}.ml-3{margin-left:.75rem}.mr-3{margin-right:.75rem}.mt-2{margin-top:.5rem}.mt-5{margin-top:1.25rem}.mt-auto{margin-top:auto}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.\!h-6{height:1.5rem!important}.h-0{height:0}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-full{height:100%}.h-screen{height:100vh}.min-h-screen{min-height:100vh}.\!w-20{width:5rem!important}.w-0{width:0}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-10{width:2.5rem}.w-141{width:34.375rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-full{width:100%}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.-translate-y-2{--tw-translate-y:-0.5rem}.-translate-y-2,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}.translate-y-full{--tw-translate-y:100%}.transform,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-3{gap:.75rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.\!rounded-full{border-radius:9999px!important}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-sm{border-radius:.125rem}.rounded-l-2xl{border-top-left-radius:1rem;border-bottom-left-radius:1rem}.border{border-width:1px}.border-0{border-width:0}.border-primary{border-color:var(--color-primary)}.border-transparent{border-color:#0000}.bg-primary{background-color:var(--color-primary)}.bg-transparent{background-color:initial}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-zinc-100{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity))}.bg-zinc-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity))}.object-fill{-o-object-fit:fill;object-fit:fill}.\!p-2{padding:.5rem!important}.p-4{padding:1rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pl-7{padding-left:1.75rem}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-semibold{font-weight:600}.capitalize{text-transform:capitalize}.text-black{--tw-text-opacity:1;color:rgb(30 30 30/var(--tw-text-opacity))}.text-primary{color:var(--color-primary)}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-zinc-900{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity))}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:bg-primary-active:hover{background-color:var(--color-primary-active)}.hover\:text-primary:hover{color:var(--color-primary)}.focus\:outline-none:focus{outline:2px solid #0000;outline-offset:2px}.enabled\:hover\:bg-primary:hover:enabled{background-color:var(--color-primary)}.enabled\:hover\:bg-primary-active:hover:enabled{background-color:var(--color-primary-active)}.enabled\:hover\:text-white:hover:enabled{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:select-none:disabled{-webkit-user-select:none;-moz-user-select:none;user-select:none}.disabled\:opacity-50:disabled{opacity:.5}@media (min-width:992px){.md\:sticky{position:sticky}.md\:top-0{top:0}.md\:order-2{order:2}.md\:order-3{order:3}.md\:-ml-5{margin-left:-1.25rem}.md\:block{display:block}.md\:\!flex{display:flex!important}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-auto{height:auto}.md\:max-h-screen{max-height:100vh}.md\:\!w-20{width:5rem!important}.md\:w-1\/2{width:50%}.md\:w-10{width:2.5rem}.md\:max-w-lg{max-width:32rem}.md\:grow-0{flex-grow:0}.md\:flex-row{flex-direction:row}.md\:justify-center{justify-content:center}.md\:rounded-l-2xl{border-top-left-radius:1rem;border-bottom-left-radius:1rem}.md\:bg-primary{background-color:var(--color-primary)}.md\:bg-secondary{background-color:var(--color-secondary)}.md\:px-24{padding-left:6rem;padding-right:6rem}.md\:pr-7{padding-right:1.75rem}.md\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.md\:hover\:bg-primary-active:hover{background-color:var(--color-primary-active)}}@media (min-width:1200px){.lg\:hidden{display:none}}
|
|
3
|
+
/*! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:Inter;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--color-primary:#e25c2a;--color-primary-active:#c2410c;--color-secondary:#1e243b;--color-secondary-active:#1e243b}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.visible{visibility:visible}.\!static{position:static!important}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.bottom-5{bottom:1.25rem}.right-5{right:1.25rem}.top-0{top:0}.top-20{top:5rem}.top-5{top:1.25rem}.z-50{z-index:50}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:.5rem}.mb-auto{margin-bottom:auto}.ml-3{margin-left:.75rem}.ml-auto{margin-left:auto}.mr-3{margin-right:.75rem}.mt-2{margin-top:.5rem}.mt-5{margin-top:1.25rem}.mt-auto{margin-top:auto}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.\!h-6{height:1.5rem!important}.h-0{height:0}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-full{height:100%}.h-screen{height:100vh}.min-h-screen{min-height:100vh}.\!w-20{width:5rem!important}.w-0{width:0}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-10{width:2.5rem}.w-141{width:34.375rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-full{width:100%}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.-translate-y-2{--tw-translate-y:-0.5rem}.-translate-y-2,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}.translate-y-full{--tw-translate-y:100%}.transform,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-3{gap:.75rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.\!rounded-full{border-radius:9999px!important}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-2xl{border-top-left-radius:1rem;border-bottom-left-radius:1rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.border{border-width:1px}.border-0{border-width:0}.border-primary{border-color:var(--color-primary)}.border-transparent{border-color:#0000}.bg-indigo-900{--tw-bg-opacity:1;background-color:rgb(22 44 135/var(--tw-bg-opacity))}.bg-primary{background-color:var(--color-primary)}.bg-transparent{background-color:initial}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity:1;background-color:rgb(250 204 21/var(--tw-bg-opacity))}.bg-zinc-100{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity))}.bg-zinc-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity))}.object-fill{-o-object-fit:fill;object-fit:fill}.\!p-2{padding:.5rem!important}.p-4{padding:1rem}.p-8{padding:2rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pl-4{padding-left:1rem}.pl-7{padding-left:1.75rem}.text-center{text-align:center}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.text-black{--tw-text-opacity:1;color:rgb(30 30 30/var(--tw-text-opacity))}.text-primary{color:var(--color-primary)}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-zinc-600{--tw-text-opacity:1;color:rgb(82 82 91/var(--tw-text-opacity))}.text-zinc-900{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity))}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-zinc-200{--tw-shadow-color:#e4e4e7;--tw-shadow:var(--tw-shadow-colored)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:left-0:before{content:var(--tw-content);left:0}.before\:top-0:before{content:var(--tw-content);top:0}.before\:hidden:before{content:var(--tw-content);display:none}.before\:h-full:before{content:var(--tw-content);height:100%}.before\:w-1:before{content:var(--tw-content);width:.25rem}.before\:bg-primary:before{content:var(--tw-content);background-color:var(--color-primary)}.empty\:px-0:empty{padding-left:0;padding-right:0}.hover\:bg-primary-active:hover{background-color:var(--color-primary-active)}.hover\:text-primary:hover{color:var(--color-primary)}.focus\:outline-none:focus{outline:2px solid #0000;outline-offset:2px}.enabled\:hover\:bg-primary:hover:enabled{background-color:var(--color-primary)}.enabled\:hover\:bg-primary-active:hover:enabled{background-color:var(--color-primary-active)}.enabled\:hover\:text-white:hover:enabled{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:select-none:disabled{-webkit-user-select:none;-moz-user-select:none;user-select:none}.disabled\:opacity-50:disabled{opacity:.5}@media (min-width:992px){.md\:sticky{position:sticky}.md\:top-0{top:0}.md\:order-3{order:3}.md\:order-4{order:4}.md\:-ml-5{margin-left:-1.25rem}.md\:block{display:block}.md\:\!flex{display:flex!important}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-auto{height:auto}.md\:max-h-screen{max-height:100vh}.md\:\!w-20{width:5rem!important}.md\:w-1\/2{width:50%}.md\:w-10{width:2.5rem}.md\:max-w-lg{max-width:32rem}.md\:grow-0{flex-grow:0}.md\:flex-row{flex-direction:row}.md\:justify-center{justify-content:center}.md\:rounded-l-2xl{border-top-left-radius:1rem;border-bottom-left-radius:1rem}.md\:bg-primary{background-color:var(--color-primary)}.md\:bg-secondary{background-color:var(--color-secondary)}.md\:px-12{padding-left:3rem;padding-right:3rem}.md\:px-24{padding-left:6rem;padding-right:6rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:py-14{padding-top:3.5rem;padding-bottom:3.5rem}.md\:pr-12{padding-right:3rem}.md\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.md\:hover\:bg-primary-active:hover{background-color:var(--color-primary-active)}}@media (min-width:1200px){.lg\:hidden{display:none}}
|
package/dist/ui.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),
|
|
2
|
-
7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`},null,-1),B=[b,C],v=e.defineComponent({__name:"AppLoader",props:{size:{default:"medium"}},setup(n){return(t,a)=>(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([e.unref(x)[n.size],"animate-spin"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none"},B,2))}}),N={class:"app-button__icon h-4"},E=e.defineComponent({__name:"ButtonIconSlot",props:{loading:{type:Boolean}},setup(n){return(t,a)=>(e.openBlock(),e.createElementBlock("span",N,[n.loading?(e.openBlock(),e.createBlock(v,{key:0,class:"w-4"})):e.renderSlot(t.$slots,"default",{key:1},void 0,!0)]))}});const M=(n,t)=>{const a=n.__vccOpts||n;for(const[o,r]of t)a[o]=r;return a},w=M(E,[["__scopeId","data-v-04d5f165"]]),V={plain:["text-primary","border-0"],primary:["text-white","bg-primary","border-transparent","enabled:hover:bg-primary-active"],secondary:["text-primary","bg-transparent","border-primary","enabled:hover:text-white","enabled:hover:bg-primary"]},$={small:["px-5","py-2"],medium:["px-5","py-3"],large:["px-5","py-4"]},z=["type","disabled"],I=e.defineComponent({__name:"AppButton",props:{size:{default:"medium"},type:{default:"button"},colorType:{default:"primary"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},setup(n){return(t,a)=>(e.openBlock(),e.createElementBlock("button",{type:n.type,disabled:n.disabled||n.loading,class:e.normalizeClass([[...e.unref(V)[n.colorType],...e.unref($)[n.size]],"app-button inline-flex items-center whitespace-nowrap rounded-lg border text-sm font-semibold transition-colors focus:outline-none disabled:cursor-not-allowed disabled:select-none disabled:opacity-50"])},[t.$slots.leadingIcon||n.loading?(e.openBlock(),e.createBlock(w,{key:0,loading:n.loading,class:"mr-3","data-test-leading-icon":""},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"leadingIcon")]),_:3},8,["loading"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default"),t.$slots.trailingIcon?(e.openBlock(),e.createBlock(w,{key:1,class:"ml-3","data-test-trailing-icon":""},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"trailingIcon")]),_:3})):e.createCommentVNode("",!0)],10,z))}}),i={navigationItems:e.ref([]),mainMenuOpen:e.ref(!1),mobileMenuOpen:e.ref(!1),navigationComponent:e.shallowRef("a"),logo:e.ref(null),contactRoute:e.ref()};function p(){function n(l){i.navigationItems.value=e.isRef(l)?l==null?void 0:l.value:l}function t(l){i.navigationComponent.value=l}function a(l){i.logo.value=l}function o(){i.mainMenuOpen.value=!0}function r(){i.mainMenuOpen.value=!1}function s(){i.mainMenuOpen.value=!i.mainMenuOpen.value}function d(){i.mobileMenuOpen.value=!0}function m(){i.mobileMenuOpen.value=!1}function c(){i.mobileMenuOpen.value=!i.mobileMenuOpen.value}return{...i,setNavigationItems:n,setNavigationComponent:t,setLogo:a,openMainMenu:o,closeMainMenu:r,toggleMainMenu:s,openMobileMenu:d,closeMobileMenu:m,toggleMobileMenu:c}}const u={layoutImage:e.ref(null),colors:{primaryColor:e.ref(null),primaryColorActive:e.ref(null),secondaryColor:e.ref(null),secondaryColorActive:e.ref(null)}};function k(){function n(o){u.layoutImage.value=o}function t(o,r){u.colors.primaryColor.value=o,u.colors.primaryColorActive.value=r,document.documentElement.style.setProperty("--color-primary",o),document.documentElement.style.setProperty("--color-primary-active",r)}function a(o,r){u.colors.secondaryColor.value=o,u.colors.secondaryColorActive.value=r,document.documentElement.style.setProperty("--color-secondary",o),document.documentElement.style.setProperty("--color-secondary-active",r)}return{...u,setLayoutImage:n,setPrimaryColors:t,setSecondaryColors:a}}function S(n,t){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function L(n,t){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}const O={class:"pl-7 text-lg font-semibold text-zinc-900 md:hidden","data-test-name":""},h=e.defineComponent({__name:"NavigationItem",props:{item:null},setup(n){const t=n,{navigationComponent:a}=p(),o=e.ref(!1),r=e.computed(()=>o.value||typeof t.item.icon!="string"),s=e.computed(()=>o.value?v:t.item.icon);async function d(m){var c,l,g;(c=t.item)!=null&&c.onClick&&(m.preventDefault(),o.value=!0,await Promise.resolve((g=(l=t.item)==null?void 0:l.onClick)==null?void 0:g.call(l)),o.value=!1)}return(m,c)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(a)),{to:n.item.to,href:n.item.href,class:e.normalizeClass([{"md:bg-primary":n.item.active??!1,"!rounded-full":n.item.rounded??!1,"mb-2":!n.item.bottom,"mt-2":n.item.bottom??!1},"flex h-10 w-full cursor-pointer items-center rounded-lg text-center transition-colors md:w-10 md:justify-center md:hover:bg-primary-active"]),onClick:d},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(r)?e.unref(s):"span"),{class:e.normalizeClass([{"!h-6":!e.unref(r)},"h-4 w-4 text-zinc-900 md:text-white"]),size:o.value?"extra-small":void 0,"data-test-icon":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)?"":n.item.icon),1)]),_:1},8,["class","size"])),e.createElementVNode("span",O,e.toDisplayString(n.item.name),1)]),_:1},8,["to","href","class"]))}}),y=e.defineComponent({__name:"SupportItem",setup(n){const{contactRoute:t,navigationComponent:a}=p();return(o,r)=>e.unref(t)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(a)),{key:0,to:e.unref(a)!=="a"?e.unref(t):void 0,href:e.unref(a)?e.unref(t):void 0,class:"fixed bottom-5 right-5 z-50 mt-2 flex h-10 w-10 justify-center rounded-full bg-primary py-2 text-white transition-colors hover:bg-primary-active","data-test-help-icon":""},{default:e.withCtx(()=>[e.createTextVNode(" ? ")]),_:1},8,["to","href"])):e.createCommentVNode("",!0)}}),A={class:"flex items-center justify-between bg-zinc-50 px-2 py-4 text-black md:hidden"},j=["innerHTML"],P=e.createElementVNode("div",{class:"w-1/3"},null,-1),T={class:"relative flex h-full w-full flex-1 flex-col bg-white focus:outline-none","data-test-navigation-wrapper":""},D={class:"h-0 flex-1 overflow-y-auto p-4","data-test-navigation-links-wrapper":""},R={"aria-label":"MainMenu",class:"mt-5"},F={class:"mb-auto"},H=e.defineComponent({__name:"Mobile",setup(n){const{logo:t,navigationItems:a,mobileMenuOpen:o,toggleMobileMenu:r,closeMobileMenu:s}=p(),d=e.computed(()=>o.value?L:S);return(m,c)=>(e.openBlock(),e.createElementBlock("div",A,[e.createElementVNode("div",{class:"inline-flex w-1/3 cursor-pointer items-center justify-start rounded-sm !p-2 hover:text-primary focus:outline-none","data-test-menu-icon-wrapper":"",onClick:c[0]||(c[0]=(...l)=>e.unref(r)&&e.unref(r)(...l))},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(d)),{class:"block h-6 w-6 text-black","aria-hidden":"true"}))]),e.createElementVNode("div",{class:"w-1/3","data-test-logo-wrapper":"",innerHTML:e.unref(t)},null,8,j),P,e.createVNode(e.unref(f.TransitionRoot),{show:e.unref(o),as:"template"},{default:e.withCtx(()=>[e.createVNode(e.unref(f.Dialog),{as:"div",class:"fixed inset-0 top-20 z-50 flex -translate-y-2 lg:hidden",onClose:e.unref(s)},{default:e.withCtx(()=>[e.createVNode(e.unref(f.TransitionChild),{as:"template",enter:"transition ease-in-out duration-300 transform","enter-from":"translate-y-full","enter-to":"translate-y-0",leave:"transition ease-in-out duration-300 transform","leave-from":"translate-y-0","leave-to":"translate-y-full"},{default:e.withCtx(()=>[e.createElementVNode("div",T,[e.createElementVNode("div",D,[e.createElementVNode("nav",R,[e.createElementVNode("ul",F,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),l=>(e.openBlock(),e.createElementBlock("li",{key:l.name,"data-test-navigation-item":""},[e.createVNode(h,{item:l},null,8,["item"])]))),128))])]),e.createVNode(y)])])]),_:1})]),_:1},8,["onClose"])]),_:1},8,["show"]),e.createVNode(y)]))}}),q={class:"mx-auto mb-auto"},G={class:"mx-auto mt-auto"},_=e.defineComponent({__name:"AppNavigationMenu",setup(n){const{navigationItems:t,mainMenuOpen:a}=p();return(o,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("aside",{class:e.normalizeClass([{"px-3 md:!w-20":e.unref(a)},"sticky top-0 hidden h-screen w-0 flex-col justify-center overflow-hidden py-5 transition-all duration-500 md:flex"]),"data-test-main-menu":""},[e.createElementVNode("ul",q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).filter(s=>s.bottom!==!0),s=>(e.openBlock(),e.createElementBlock("li",{key:s.name,"data-test-top-navigation-item":""},[e.createVNode(h,{item:s},null,8,["item"])]))),128))]),e.createElementVNode("ul",G,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).filter(s=>s.bottom),s=>(e.openBlock(),e.createElementBlock("li",{key:s.name,"data-test-bottom-navigation-item":""},[e.createVNode(h,{item:s},null,8,["item"])]))),128)),e.createElementVNode("li",null,[e.createVNode(y,{class:"!static"})])])],2),e.createVNode(H)]))}}),J={class:"flex min-h-screen flex-col md:flex-row md:bg-secondary"},K={class:"flex h-full grow items-center justify-center bg-white px-10 transition-all md:h-auto md:w-1/2 md:grow-0 md:rounded-l-2xl md:px-24"},Q={class:"mx-auto md:max-w-lg"},U={class:"hidden w-1/2 md:block","data-test-layout-image-wrapper":""},W=["src"],X=e.defineComponent({__name:"Auth",setup(n){const{layoutImage:t}=k();return(a,o)=>(e.openBlock(),e.createElementBlock("div",J,[e.createVNode(e.unref(_)),e.createElementVNode("main",K,[e.createElementVNode("div",Q,[e.renderSlot(a.$slots,"default")])]),e.createElementVNode("div",U,[e.unref(t)?(e.openBlock(),e.createElementBlock("img",{key:0,src:e.unref(t),class:"h-screen w-full object-fill"},null,8,W)):e.createCommentVNode("",!0)])]))}}),Y={class:"flex min-h-screen flex-col md:flex-row md:bg-secondary"},Z={class:"order-3 flex h-full grow bg-zinc-100 px-2 py-8 transition-all md:order-2 md:h-auto md:rounded-l-2xl md:pr-7"},ee={class:"w-full"},te={id:"sidebar-wrapper",class:"order-2 w-141 max-w-full shrink-0 grow-0 rounded-l-2xl bg-white px-4 py-8 md:sticky md:top-0 md:order-3 md:-ml-5 md:max-h-screen","data-test-layout-sidebar-wrapper":""},ne=e.defineComponent({__name:"Base",setup(n){return(t,a)=>(e.openBlock(),e.createElementBlock("div",Y,[e.createVNode(e.unref(_),{class:"order-1"}),e.createElementVNode("main",Z,[e.createElementVNode("div",ee,[e.renderSlot(t.$slots,"default")])]),e.createElementVNode("div",te,[e.renderSlot(t.$slots,"sidebar")])]))}});exports.AppButton=I;exports.AppLoader=v;exports.AppNavigationMenu=_;exports.AuthLayout=X;exports.BaseLayout=ne;exports.useLayout=k;exports.useNavigation=p;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),y=require("@headlessui/vue"),C={"extra-small":["h-4","w-4"],small:["h-5","w-5"],medium:["h-7","w-7"],large:["h-10","w-10"]},b=e.createElementVNode("circle",{stroke:"currentColor",class:"opacity-25","stroke-width":"4",cx:"12",cy:"12",r:"10"},null,-1),B=e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962
|
|
2
|
+
7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`},null,-1),N=[b,B],h=e.defineComponent({__name:"AppLoader",props:{size:{default:"medium"}},setup(n){return(t,a)=>(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([e.unref(C)[n.size],"animate-spin"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none"},N,2))}}),$={class:"app-button__icon h-4"},V=e.defineComponent({__name:"ButtonIconSlot",props:{loading:{type:Boolean}},setup(n){return(t,a)=>(e.openBlock(),e.createElementBlock("span",$,[n.loading?(e.openBlock(),e.createBlock(h,{key:0,class:"w-4"})):e.renderSlot(t.$slots,"default",{key:1},void 0,!0)]))}});const g=(n,t)=>{const a=n.__vccOpts||n;for(const[o,r]of t)a[o]=r;return a},x=g(V,[["__scopeId","data-v-04d5f165"]]),E={plain:["text-primary","border-0"],primary:["text-white","bg-primary","border-transparent","enabled:hover:bg-primary-active"],secondary:["text-primary","bg-transparent","border-primary","enabled:hover:text-white","enabled:hover:bg-primary"]},M={small:["px-5","py-2"],medium:["px-5","py-3"],large:["px-5","py-4"]},S=["type","disabled"],z=e.defineComponent({__name:"AppButton",props:{size:{default:"medium"},type:{default:"button"},colorType:{default:"primary"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},setup(n){return(t,a)=>(e.openBlock(),e.createElementBlock("button",{type:n.type,disabled:n.disabled||n.loading,class:e.normalizeClass([[...e.unref(E)[n.colorType],...e.unref(M)[n.size]],"app-button inline-flex items-center whitespace-nowrap rounded-lg border text-sm font-semibold transition-colors focus:outline-none disabled:cursor-not-allowed disabled:select-none disabled:opacity-50"])},[t.$slots.leadingIcon||n.loading?(e.openBlock(),e.createBlock(x,{key:0,loading:n.loading,class:"mr-3","data-test-leading-icon":""},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"leadingIcon")]),_:3},8,["loading"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default"),t.$slots.trailingIcon?(e.openBlock(),e.createBlock(x,{key:1,class:"ml-3","data-test-trailing-icon":""},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"trailingIcon")]),_:3})):e.createCommentVNode("",!0)],10,S))}}),I={key:0,class:"app-card__icon absolute right-5 top-5 h-5 text-primary"},L=e.defineComponent({__name:"CardIconSlot",props:{icon:null},setup(n){const t=n;return(a,o)=>a.$slots.default||n.icon?(e.openBlock(),e.createElementBlock("div",I,[e.renderSlot(a.$slots,"default",{},()=>[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(typeof t.icon=="string"?"span":t.icon),{key:0,"data-test-icon-component":"",innerHTML:t.icon},null,8,["innerHTML"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0)}});const A=g(L,[["__scopeId","data-v-14ba04ea"]]),i={navigationItems:e.ref([]),mainMenuOpen:e.ref(!1),mobileMenuOpen:e.ref(!1),navigationComponent:e.shallowRef("a"),logo:e.ref(null),contactRoute:e.ref()};function p(){function n(l){i.navigationItems.value=e.isRef(l)?l==null?void 0:l.value:l}function t(l){i.navigationComponent.value=l}function a(l){i.logo.value=l}function o(){i.mainMenuOpen.value=!0}function r(){i.mainMenuOpen.value=!1}function s(){i.mainMenuOpen.value=!i.mainMenuOpen.value}function u(){i.mobileMenuOpen.value=!0}function d(){i.mobileMenuOpen.value=!1}function c(){i.mobileMenuOpen.value=!i.mobileMenuOpen.value}return{...i,setNavigationItems:n,setNavigationComponent:t,setLogo:a,openMainMenu:o,closeMainMenu:r,toggleMainMenu:s,openMobileMenu:u,closeMobileMenu:d,toggleMobileMenu:c}}const m={layoutImage:e.ref(null),colors:{primaryColor:e.ref(null),primaryColorActive:e.ref(null),secondaryColor:e.ref(null),secondaryColorActive:e.ref(null)}};function w(){function n(o){m.layoutImage.value=o}function t(o,r){m.colors.primaryColor.value=o,m.colors.primaryColorActive.value=r,document.documentElement.style.setProperty("--color-primary",o),document.documentElement.style.setProperty("--color-primary-active",r)}function a(o,r){m.colors.secondaryColor.value=o,m.colors.secondaryColorActive.value=r,document.documentElement.style.setProperty("--color-secondary",o),document.documentElement.style.setProperty("--color-secondary-active",r)}return{...m,setLayoutImage:n,setPrimaryColors:t,setSecondaryColors:a}}const D=e.defineComponent({__name:"CardAction",props:{item:null},setup(n){const t=n,{navigationComponent:a}=p(),o=e.ref(!1),r=e.computed(()=>o.value||typeof t.item.icon!="string"),s=e.computed(()=>o.value?h:t.item.icon);async function u(d){var c,l,f;(c=t.item)!=null&&c.onClick&&(d.preventDefault(),o.value=!0,await Promise.resolve((f=(l=t.item)==null?void 0:l.onClick)==null?void 0:f.call(l)),o.value=!1)}return(d,c)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(a)),{to:n.item.to,href:n.item.href,class:"app-card__action ml-auto flex justify-center text-zinc-600",onClick:u},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(r)?e.unref(s):"span"),{class:e.normalizeClass([{"!h-6":!e.unref(r)},"h-4 w-4"]),size:o.value?"extra-small":void 0,"data-test-icon":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)?"":n.item.icon),1)]),_:1},8,["class","size"])),e.createElementVNode("span",{class:e.normalizeClass([{"pl-4":n.item.icon},"text-sm"]),"data-test-name":""},e.toDisplayString(n.item.name),3)]),_:1},8,["to","href"]))}});const T=g(D,[["__scopeId","data-v-0e561723"]]),O={key:1,class:"text-4xl font-bold text-zinc-900","data-test-title":""},P={class:"mt-2","data-test-content":""},j=e.defineComponent({__name:"AppCard",props:{bordered:{type:Boolean,default:!1},title:{default:void 0},icon:{default:void 0},actions:{default:void 0}},setup(n){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([{"before:hidden":!n.bordered},"relative w-full overflow-hidden rounded-xl bg-white p-8 text-sm text-zinc-600 shadow shadow-zinc-200 before:absolute before:left-0 before:top-0 before:h-full before:w-1 before:bg-primary"])},[t.$slots.icon||n.icon?(e.openBlock(),e.createBlock(A,{key:0,icon:n.icon,"data-test-icon":""},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"icon")]),_:3},8,["icon"])):e.createCommentVNode("",!0),n.title||t.$slots.title?(e.openBlock(),e.createElementBlock("h3",O,[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(n.title),1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",P,[e.renderSlot(t.$slots,"default")]),e.renderSlot(t.$slots,"actions",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.actions,o=>(e.openBlock(),e.createElementBlock("div",{key:o.name,class:"flex w-full"},[e.createVNode(T,{item:o},null,8,["item"])]))),128))])],2))}});function H(n,t){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function R(n,t){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}const F={class:"pl-7 text-lg font-semibold text-zinc-900 md:hidden","data-test-name":""},v=e.defineComponent({__name:"NavigationItem",props:{item:null},setup(n){const t=n,{navigationComponent:a}=p(),o=e.ref(!1),r=e.computed(()=>o.value||typeof t.item.icon!="string"),s=e.computed(()=>o.value?h:t.item.icon);async function u(d){var c,l,f;(c=t.item)!=null&&c.onClick&&(d.preventDefault(),o.value=!0,await Promise.resolve((f=(l=t.item)==null?void 0:l.onClick)==null?void 0:f.call(l)),o.value=!1)}return(d,c)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(a)),{to:n.item.to,href:n.item.href,class:e.normalizeClass([{"md:bg-primary":n.item.active??!1,"!rounded-full":n.item.rounded??!1,"mb-2":!n.item.bottom,"mt-2":n.item.bottom??!1},"flex h-10 w-full cursor-pointer items-center rounded-lg text-center transition-colors md:w-10 md:justify-center md:hover:bg-primary-active"]),onClick:u},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(r)?e.unref(s):"span"),{class:e.normalizeClass([{"!h-6":!e.unref(r)},"h-4 w-4 text-zinc-900 md:text-white"]),size:o.value?"extra-small":void 0,"data-test-icon":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)?"":n.item.icon),1)]),_:1},8,["class","size"])),e.createElementVNode("span",F,e.toDisplayString(n.item.name),1)]),_:1},8,["to","href","class"]))}}),_=e.defineComponent({__name:"SupportItem",setup(n){const{contactRoute:t,navigationComponent:a}=p();return(o,r)=>e.unref(t)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(a)),{key:0,to:e.unref(a)!=="a"?e.unref(t):void 0,href:e.unref(a)?e.unref(t):void 0,class:"fixed bottom-5 right-5 z-50 mt-2 flex h-10 w-10 justify-center rounded-full bg-primary py-2 text-white transition-colors hover:bg-primary-active","data-test-help-icon":""},{default:e.withCtx(()=>[e.createTextVNode(" ? ")]),_:1},8,["to","href"])):e.createCommentVNode("",!0)}}),q={class:"flex items-center justify-between bg-zinc-50 px-2 py-4 text-black md:hidden"},G=["innerHTML"],J=e.createElementVNode("div",{class:"w-1/3"},null,-1),K={class:"relative flex h-full w-full flex-1 flex-col bg-white focus:outline-none","data-test-navigation-wrapper":""},Q={class:"h-0 flex-1 overflow-y-auto p-4","data-test-navigation-links-wrapper":""},U={"aria-label":"MainMenu",class:"mt-5"},W={class:"mb-auto"},X=e.defineComponent({__name:"Mobile",setup(n){const{logo:t,navigationItems:a,mobileMenuOpen:o,toggleMobileMenu:r,closeMobileMenu:s}=p(),u=e.computed(()=>o.value?R:H);return(d,c)=>(e.openBlock(),e.createElementBlock("div",q,[e.createElementVNode("div",{class:"inline-flex w-1/3 cursor-pointer items-center justify-start rounded-sm !p-2 hover:text-primary focus:outline-none","data-test-menu-icon-wrapper":"",onClick:c[0]||(c[0]=(...l)=>e.unref(r)&&e.unref(r)(...l))},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(u)),{class:"block h-6 w-6 text-black","aria-hidden":"true"}))]),e.createElementVNode("div",{class:"w-1/3","data-test-logo-wrapper":"",innerHTML:e.unref(t)},null,8,G),J,e.createVNode(e.unref(y.TransitionRoot),{show:e.unref(o),as:"template"},{default:e.withCtx(()=>[e.createVNode(e.unref(y.Dialog),{as:"div",class:"fixed inset-0 top-20 z-50 flex -translate-y-2 lg:hidden",onClose:e.unref(s)},{default:e.withCtx(()=>[e.createVNode(e.unref(y.TransitionChild),{as:"template",enter:"transition ease-in-out duration-300 transform","enter-from":"translate-y-full","enter-to":"translate-y-0",leave:"transition ease-in-out duration-300 transform","leave-from":"translate-y-0","leave-to":"translate-y-full"},{default:e.withCtx(()=>[e.createElementVNode("div",K,[e.createElementVNode("div",Q,[e.createElementVNode("nav",U,[e.createElementVNode("ul",W,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),l=>(e.openBlock(),e.createElementBlock("li",{key:l.name,"data-test-navigation-item":""},[e.createVNode(v,{item:l},null,8,["item"])]))),128))])]),e.createVNode(_)])])]),_:1})]),_:1},8,["onClose"])]),_:1},8,["show"]),e.createVNode(_)]))}}),Y={class:"mx-auto mb-auto"},Z={class:"mx-auto mt-auto"},k=e.defineComponent({__name:"AppNavigationMenu",setup(n){const{navigationItems:t,mainMenuOpen:a}=p();return(o,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("aside",{class:e.normalizeClass([{"px-3 md:!w-20":e.unref(a)},"sticky top-0 hidden h-screen w-0 flex-col justify-center overflow-hidden py-5 transition-all duration-500 md:flex"]),"data-test-main-menu":""},[e.createElementVNode("ul",Y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).filter(s=>s.bottom!==!0),s=>(e.openBlock(),e.createElementBlock("li",{key:s.name,"data-test-top-navigation-item":""},[e.createVNode(v,{item:s},null,8,["item"])]))),128))]),e.createElementVNode("ul",Z,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).filter(s=>s.bottom),s=>(e.openBlock(),e.createElementBlock("li",{key:s.name,"data-test-bottom-navigation-item":""},[e.createVNode(v,{item:s},null,8,["item"])]))),128)),e.createElementVNode("li",null,[e.createVNode(_,{class:"!static"})])])],2),e.createVNode(X)]))}}),ee={class:"flex text-sm font-bold"},te={class:"rounded-l-lg bg-indigo-900 px-2 py-1.5 text-white","data-test-country-code":""},ne={class:"rounded-r-lg bg-yellow-400 px-2 py-1.5 uppercase text-zinc-900","data-test-license-plate":""},oe=e.defineComponent({__name:"AppLicensePlate",props:{license:{default:void 0},country:{default:"NL"}},setup(n){return(t,a)=>(e.openBlock(),e.createElementBlock("div",ee,[e.createElementVNode("span",te,e.toDisplayString(n.country),1),e.createElementVNode("span",ne,[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.license),1)])])]))}}),ae={class:"flex min-h-screen flex-col md:flex-row md:bg-secondary"},le={class:"flex h-full grow items-center justify-center bg-white px-10 transition-all md:h-auto md:w-1/2 md:grow-0 md:rounded-l-2xl md:px-24"},re={class:"mx-auto md:max-w-lg"},se={class:"hidden w-1/2 md:block","data-test-layout-image-wrapper":""},ce=["src"],ie=e.defineComponent({__name:"Auth",setup(n){const{layoutImage:t}=w();return(a,o)=>(e.openBlock(),e.createElementBlock("div",ae,[e.createVNode(e.unref(k)),e.createElementVNode("main",le,[e.createElementVNode("div",re,[e.renderSlot(a.$slots,"default")])]),e.createElementVNode("div",se,[e.unref(t)?(e.openBlock(),e.createElementBlock("img",{key:0,src:e.unref(t),class:"h-screen w-full object-fill"},null,8,ce)):e.createCommentVNode("",!0)])]))}}),de={class:"flex min-h-screen flex-col md:flex-row md:bg-secondary"},ue=e.createElementVNode("div",{id:"top",class:"order-2 px-4 empty:px-0"},null,-1),me={class:"order-4 flex h-full grow bg-zinc-100 px-4 py-8 transition-all md:order-3 md:h-auto md:rounded-l-2xl md:px-6 md:pr-12"},pe={class:"w-full"},fe={id:"sidebar-wrapper",class:"order-3 w-141 max-w-full shrink-0 grow-0 rounded-l-2xl bg-white px-4 py-8 md:sticky md:top-0 md:order-4 md:-ml-5 md:max-h-screen md:px-12 md:py-14","data-test-layout-sidebar-wrapper":""},he=e.defineComponent({__name:"Base",setup(n){return(t,a)=>(e.openBlock(),e.createElementBlock("div",de,[e.createVNode(e.unref(k),{class:"order-1"}),e.renderSlot(t.$slots,"top",{},()=>[ue]),e.createElementVNode("main",me,[e.createElementVNode("div",pe,[e.renderSlot(t.$slots,"default")])]),e.createElementVNode("div",fe,[e.renderSlot(t.$slots,"sidebar")])]))}});exports.AppButton=z;exports.AppCard=j;exports.AppLicensePlate=oe;exports.AppLoader=h;exports.AppNavigationMenu=k;exports.AuthLayout=ie;exports.BaseLayout=he;exports.useLayout=w;exports.useNavigation=p;
|
package/dist/ui.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.app-button__icon[data-v-04d5f165]>*{height:100%!important}
|
|
1
|
+
.app-button__icon[data-v-04d5f165]>*{height:100%!important}.app-card__icon[data-v-14ba04ea]>*{height:100%!important}.app-card__action[data-v-0e561723]>*{height:100%!important}
|
package/dist/ui.js
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { TransitionRoot as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as p, openBlock as a, createElementBlock as c, normalizeClass as x, unref as n, createElementVNode as l, createBlock as y, renderSlot as d, withCtx as v, createCommentVNode as b, resolveDynamicComponent as $, ref as h, shallowRef as E, isRef as D, computed as I, createTextVNode as z, toDisplayString as C, Fragment as L, renderList as B, createVNode as m } from "vue";
|
|
2
|
+
import { TransitionRoot as H, Dialog as R, TransitionChild as V } from "@headlessui/vue";
|
|
3
|
+
const F = {
|
|
4
4
|
"extra-small": ["h-4", "w-4"],
|
|
5
5
|
small: ["h-5", "w-5"],
|
|
6
6
|
medium: ["h-7", "w-7"],
|
|
7
7
|
large: ["h-10", "w-10"]
|
|
8
|
-
},
|
|
8
|
+
}, q = /* @__PURE__ */ l("circle", {
|
|
9
9
|
stroke: "currentColor",
|
|
10
10
|
class: "opacity-25",
|
|
11
11
|
"stroke-width": "4",
|
|
12
12
|
cx: "12",
|
|
13
13
|
cy: "12",
|
|
14
14
|
r: "10"
|
|
15
|
-
}, null, -1),
|
|
15
|
+
}, null, -1), G = /* @__PURE__ */ l("path", {
|
|
16
16
|
class: "opacity-75",
|
|
17
17
|
fill: "currentColor",
|
|
18
18
|
d: `M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962
|
|
19
19
|
7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`
|
|
20
|
-
}, null, -1),
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
],
|
|
20
|
+
}, null, -1), J = [
|
|
21
|
+
q,
|
|
22
|
+
G
|
|
23
|
+
], S = /* @__PURE__ */ p({
|
|
24
24
|
__name: "AppLoader",
|
|
25
25
|
props: {
|
|
26
26
|
size: { default: "medium" }
|
|
27
27
|
},
|
|
28
28
|
setup(t) {
|
|
29
|
-
return (e,
|
|
30
|
-
class:
|
|
29
|
+
return (e, s) => (a(), c("svg", {
|
|
30
|
+
class: x([n(F)[t.size], "animate-spin"]),
|
|
31
31
|
xmlns: "http://www.w3.org/2000/svg",
|
|
32
32
|
viewBox: "0 0 24 24",
|
|
33
33
|
fill: "none"
|
|
34
|
-
},
|
|
34
|
+
}, J, 2));
|
|
35
35
|
}
|
|
36
|
-
}),
|
|
36
|
+
}), K = { class: "app-button__icon h-4" }, Q = /* @__PURE__ */ p({
|
|
37
37
|
__name: "ButtonIconSlot",
|
|
38
38
|
props: {
|
|
39
39
|
loading: { type: Boolean }
|
|
40
40
|
},
|
|
41
41
|
setup(t) {
|
|
42
|
-
return (e,
|
|
43
|
-
t.loading ? (a(),
|
|
42
|
+
return (e, s) => (a(), c("span", K, [
|
|
43
|
+
t.loading ? (a(), y(S, {
|
|
44
44
|
key: 0,
|
|
45
45
|
class: "w-4"
|
|
46
|
-
})) :
|
|
46
|
+
})) : d(e.$slots, "default", { key: 1 }, void 0, !0)
|
|
47
47
|
]));
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
|
-
const
|
|
51
|
-
const
|
|
50
|
+
const N = (t, e) => {
|
|
51
|
+
const s = t.__vccOpts || t;
|
|
52
52
|
for (const [o, r] of e)
|
|
53
|
-
|
|
54
|
-
return
|
|
55
|
-
},
|
|
53
|
+
s[o] = r;
|
|
54
|
+
return s;
|
|
55
|
+
}, j = /* @__PURE__ */ N(Q, [["__scopeId", "data-v-04d5f165"]]), U = {
|
|
56
56
|
plain: [
|
|
57
57
|
"text-primary",
|
|
58
58
|
"border-0"
|
|
@@ -74,7 +74,7 @@ const Q = (t, e) => {
|
|
|
74
74
|
small: ["px-5", "py-2"],
|
|
75
75
|
medium: ["px-5", "py-3"],
|
|
76
76
|
large: ["px-5", "py-4"]
|
|
77
|
-
}, X = ["type", "disabled"],
|
|
77
|
+
}, X = ["type", "disabled"], Se = /* @__PURE__ */ p({
|
|
78
78
|
__name: "AppButton",
|
|
79
79
|
props: {
|
|
80
80
|
size: { default: "medium" },
|
|
@@ -84,114 +84,220 @@ const Q = (t, e) => {
|
|
|
84
84
|
loading: { type: Boolean, default: !1 }
|
|
85
85
|
},
|
|
86
86
|
setup(t) {
|
|
87
|
-
return (e,
|
|
87
|
+
return (e, s) => (a(), c("button", {
|
|
88
88
|
type: t.type,
|
|
89
89
|
disabled: t.disabled || t.loading,
|
|
90
|
-
class:
|
|
90
|
+
class: x([[
|
|
91
91
|
...n(U)[t.colorType],
|
|
92
92
|
...n(W)[t.size]
|
|
93
93
|
], "app-button inline-flex items-center whitespace-nowrap rounded-lg border text-sm font-semibold transition-colors focus:outline-none disabled:cursor-not-allowed disabled:select-none disabled:opacity-50"])
|
|
94
94
|
}, [
|
|
95
|
-
e.$slots.leadingIcon || t.loading ? (a(),
|
|
95
|
+
e.$slots.leadingIcon || t.loading ? (a(), y(j, {
|
|
96
96
|
key: 0,
|
|
97
97
|
loading: t.loading,
|
|
98
98
|
class: "mr-3",
|
|
99
99
|
"data-test-leading-icon": ""
|
|
100
100
|
}, {
|
|
101
|
-
default:
|
|
102
|
-
|
|
101
|
+
default: v(() => [
|
|
102
|
+
d(e.$slots, "leadingIcon")
|
|
103
103
|
]),
|
|
104
104
|
_: 3
|
|
105
|
-
}, 8, ["loading"])) :
|
|
106
|
-
|
|
107
|
-
e.$slots.trailingIcon ? (a(),
|
|
105
|
+
}, 8, ["loading"])) : b("", !0),
|
|
106
|
+
d(e.$slots, "default"),
|
|
107
|
+
e.$slots.trailingIcon ? (a(), y(j, {
|
|
108
108
|
key: 1,
|
|
109
109
|
class: "ml-3",
|
|
110
110
|
"data-test-trailing-icon": ""
|
|
111
111
|
}, {
|
|
112
|
-
default:
|
|
113
|
-
|
|
112
|
+
default: v(() => [
|
|
113
|
+
d(e.$slots, "trailingIcon")
|
|
114
114
|
]),
|
|
115
115
|
_: 3
|
|
116
|
-
})) :
|
|
116
|
+
})) : b("", !0)
|
|
117
117
|
], 10, X));
|
|
118
118
|
}
|
|
119
|
-
}),
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
119
|
+
}), Y = {
|
|
120
|
+
key: 0,
|
|
121
|
+
class: "app-card__icon absolute right-5 top-5 h-5 text-primary"
|
|
122
|
+
}, Z = /* @__PURE__ */ p({
|
|
123
|
+
__name: "CardIconSlot",
|
|
124
|
+
props: {
|
|
125
|
+
icon: null
|
|
126
|
+
},
|
|
127
|
+
setup(t) {
|
|
128
|
+
const e = t;
|
|
129
|
+
return (s, o) => s.$slots.default || t.icon ? (a(), c("div", Y, [
|
|
130
|
+
d(s.$slots, "default", {}, () => [
|
|
131
|
+
e.icon ? (a(), y($(typeof e.icon == "string" ? "span" : e.icon), {
|
|
132
|
+
key: 0,
|
|
133
|
+
"data-test-icon-component": "",
|
|
134
|
+
innerHTML: e.icon
|
|
135
|
+
}, null, 8, ["innerHTML"])) : b("", !0)
|
|
136
|
+
], !0)
|
|
137
|
+
])) : b("", !0);
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
const ee = /* @__PURE__ */ N(Z, [["__scopeId", "data-v-14ba04ea"]]), _ = {
|
|
141
|
+
navigationItems: h([]),
|
|
142
|
+
mainMenuOpen: h(!1),
|
|
143
|
+
mobileMenuOpen: h(!1),
|
|
144
|
+
navigationComponent: E("a"),
|
|
145
|
+
logo: h(null),
|
|
146
|
+
contactRoute: h()
|
|
126
147
|
};
|
|
127
|
-
function
|
|
148
|
+
function A() {
|
|
128
149
|
function t(i) {
|
|
129
|
-
|
|
150
|
+
_.navigationItems.value = D(i) ? i == null ? void 0 : i.value : i;
|
|
130
151
|
}
|
|
131
152
|
function e(i) {
|
|
132
|
-
|
|
153
|
+
_.navigationComponent.value = i;
|
|
133
154
|
}
|
|
134
|
-
function
|
|
135
|
-
|
|
155
|
+
function s(i) {
|
|
156
|
+
_.logo.value = i;
|
|
136
157
|
}
|
|
137
158
|
function o() {
|
|
138
|
-
|
|
159
|
+
_.mainMenuOpen.value = !0;
|
|
139
160
|
}
|
|
140
161
|
function r() {
|
|
141
|
-
|
|
162
|
+
_.mainMenuOpen.value = !1;
|
|
142
163
|
}
|
|
143
164
|
function u() {
|
|
144
|
-
|
|
165
|
+
_.mainMenuOpen.value = !_.mainMenuOpen.value;
|
|
145
166
|
}
|
|
146
167
|
function w() {
|
|
147
|
-
|
|
168
|
+
_.mobileMenuOpen.value = !0;
|
|
148
169
|
}
|
|
149
|
-
function
|
|
150
|
-
|
|
170
|
+
function g() {
|
|
171
|
+
_.mobileMenuOpen.value = !1;
|
|
151
172
|
}
|
|
152
|
-
function
|
|
153
|
-
|
|
173
|
+
function f() {
|
|
174
|
+
_.mobileMenuOpen.value = !_.mobileMenuOpen.value;
|
|
154
175
|
}
|
|
155
176
|
return {
|
|
156
|
-
...
|
|
177
|
+
..._,
|
|
157
178
|
setNavigationItems: t,
|
|
158
179
|
setNavigationComponent: e,
|
|
159
|
-
setLogo:
|
|
180
|
+
setLogo: s,
|
|
160
181
|
openMainMenu: o,
|
|
161
182
|
closeMainMenu: r,
|
|
162
183
|
toggleMainMenu: u,
|
|
163
184
|
openMobileMenu: w,
|
|
164
|
-
closeMobileMenu:
|
|
165
|
-
toggleMobileMenu:
|
|
185
|
+
closeMobileMenu: g,
|
|
186
|
+
toggleMobileMenu: f
|
|
166
187
|
};
|
|
167
188
|
}
|
|
168
|
-
const
|
|
169
|
-
layoutImage:
|
|
189
|
+
const k = {
|
|
190
|
+
layoutImage: h(null),
|
|
170
191
|
colors: {
|
|
171
|
-
primaryColor:
|
|
172
|
-
primaryColorActive:
|
|
173
|
-
secondaryColor:
|
|
174
|
-
secondaryColorActive:
|
|
192
|
+
primaryColor: h(null),
|
|
193
|
+
primaryColorActive: h(null),
|
|
194
|
+
secondaryColor: h(null),
|
|
195
|
+
secondaryColorActive: h(null)
|
|
175
196
|
}
|
|
176
197
|
};
|
|
177
|
-
function
|
|
198
|
+
function te() {
|
|
178
199
|
function t(o) {
|
|
179
|
-
|
|
200
|
+
k.layoutImage.value = o;
|
|
180
201
|
}
|
|
181
202
|
function e(o, r) {
|
|
182
|
-
|
|
203
|
+
k.colors.primaryColor.value = o, k.colors.primaryColorActive.value = r, document.documentElement.style.setProperty("--color-primary", o), document.documentElement.style.setProperty("--color-primary-active", r);
|
|
183
204
|
}
|
|
184
|
-
function
|
|
185
|
-
|
|
205
|
+
function s(o, r) {
|
|
206
|
+
k.colors.secondaryColor.value = o, k.colors.secondaryColorActive.value = r, document.documentElement.style.setProperty("--color-secondary", o), document.documentElement.style.setProperty("--color-secondary-active", r);
|
|
186
207
|
}
|
|
187
208
|
return {
|
|
188
|
-
...
|
|
209
|
+
...k,
|
|
189
210
|
setLayoutImage: t,
|
|
190
211
|
setPrimaryColors: e,
|
|
191
|
-
setSecondaryColors:
|
|
212
|
+
setSecondaryColors: s
|
|
192
213
|
};
|
|
193
214
|
}
|
|
194
|
-
|
|
215
|
+
const ne = /* @__PURE__ */ p({
|
|
216
|
+
__name: "CardAction",
|
|
217
|
+
props: {
|
|
218
|
+
item: null
|
|
219
|
+
},
|
|
220
|
+
setup(t) {
|
|
221
|
+
const e = t, { navigationComponent: s } = A(), o = h(!1), r = I(() => o.value || typeof e.item.icon != "string"), u = I(() => o.value ? S : e.item.icon);
|
|
222
|
+
async function w(g) {
|
|
223
|
+
var f, i, M;
|
|
224
|
+
(f = e.item) != null && f.onClick && (g.preventDefault(), o.value = !0, await Promise.resolve((M = (i = e.item) == null ? void 0 : i.onClick) == null ? void 0 : M.call(i)), o.value = !1);
|
|
225
|
+
}
|
|
226
|
+
return (g, f) => (a(), y($(n(s)), {
|
|
227
|
+
to: t.item.to,
|
|
228
|
+
href: t.item.href,
|
|
229
|
+
class: "app-card__action ml-auto flex justify-center text-zinc-600",
|
|
230
|
+
onClick: w
|
|
231
|
+
}, {
|
|
232
|
+
default: v(() => [
|
|
233
|
+
(a(), y($(n(r) ? n(u) : "span"), {
|
|
234
|
+
class: x([{ "!h-6": !n(r) }, "h-4 w-4"]),
|
|
235
|
+
size: o.value ? "extra-small" : void 0,
|
|
236
|
+
"data-test-icon": ""
|
|
237
|
+
}, {
|
|
238
|
+
default: v(() => [
|
|
239
|
+
z(C(n(r) ? "" : t.item.icon), 1)
|
|
240
|
+
]),
|
|
241
|
+
_: 1
|
|
242
|
+
}, 8, ["class", "size"])),
|
|
243
|
+
l("span", {
|
|
244
|
+
class: x([{ "pl-4": t.item.icon }, "text-sm"]),
|
|
245
|
+
"data-test-name": ""
|
|
246
|
+
}, C(t.item.name), 3)
|
|
247
|
+
]),
|
|
248
|
+
_: 1
|
|
249
|
+
}, 8, ["to", "href"]));
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
const oe = /* @__PURE__ */ N(ne, [["__scopeId", "data-v-0e561723"]]), ae = {
|
|
253
|
+
key: 1,
|
|
254
|
+
class: "text-4xl font-bold text-zinc-900",
|
|
255
|
+
"data-test-title": ""
|
|
256
|
+
}, se = {
|
|
257
|
+
class: "mt-2",
|
|
258
|
+
"data-test-content": ""
|
|
259
|
+
}, Ne = /* @__PURE__ */ p({
|
|
260
|
+
__name: "AppCard",
|
|
261
|
+
props: {
|
|
262
|
+
bordered: { type: Boolean, default: !1 },
|
|
263
|
+
title: { default: void 0 },
|
|
264
|
+
icon: { default: void 0 },
|
|
265
|
+
actions: { default: void 0 }
|
|
266
|
+
},
|
|
267
|
+
setup(t) {
|
|
268
|
+
return (e, s) => (a(), c("div", {
|
|
269
|
+
class: x([{ "before:hidden": !t.bordered }, "relative w-full overflow-hidden rounded-xl bg-white p-8 text-sm text-zinc-600 shadow shadow-zinc-200 before:absolute before:left-0 before:top-0 before:h-full before:w-1 before:bg-primary"])
|
|
270
|
+
}, [
|
|
271
|
+
e.$slots.icon || t.icon ? (a(), y(ee, {
|
|
272
|
+
key: 0,
|
|
273
|
+
icon: t.icon,
|
|
274
|
+
"data-test-icon": ""
|
|
275
|
+
}, {
|
|
276
|
+
default: v(() => [
|
|
277
|
+
d(e.$slots, "icon")
|
|
278
|
+
]),
|
|
279
|
+
_: 3
|
|
280
|
+
}, 8, ["icon"])) : b("", !0),
|
|
281
|
+
t.title || e.$slots.title ? (a(), c("h3", ae, [
|
|
282
|
+
d(e.$slots, "title", {}, () => [
|
|
283
|
+
z(C(t.title), 1)
|
|
284
|
+
])
|
|
285
|
+
])) : b("", !0),
|
|
286
|
+
l("div", se, [
|
|
287
|
+
d(e.$slots, "default")
|
|
288
|
+
]),
|
|
289
|
+
d(e.$slots, "actions", {}, () => [
|
|
290
|
+
(a(!0), c(L, null, B(t.actions, (o) => (a(), c("div", {
|
|
291
|
+
key: o.name,
|
|
292
|
+
class: "flex w-full"
|
|
293
|
+
}, [
|
|
294
|
+
m(oe, { item: o }, null, 8, ["item"])
|
|
295
|
+
]))), 128))
|
|
296
|
+
])
|
|
297
|
+
], 2));
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
function le(t, e) {
|
|
195
301
|
return a(), c("svg", {
|
|
196
302
|
xmlns: "http://www.w3.org/2000/svg",
|
|
197
303
|
fill: "none",
|
|
@@ -200,14 +306,14 @@ function Z(t, e) {
|
|
|
200
306
|
stroke: "currentColor",
|
|
201
307
|
"aria-hidden": "true"
|
|
202
308
|
}, [
|
|
203
|
-
|
|
309
|
+
l("path", {
|
|
204
310
|
"stroke-linecap": "round",
|
|
205
311
|
"stroke-linejoin": "round",
|
|
206
312
|
d: "M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"
|
|
207
313
|
})
|
|
208
314
|
]);
|
|
209
315
|
}
|
|
210
|
-
function
|
|
316
|
+
function ie(t, e) {
|
|
211
317
|
return a(), c("svg", {
|
|
212
318
|
xmlns: "http://www.w3.org/2000/svg",
|
|
213
319
|
fill: "none",
|
|
@@ -216,31 +322,31 @@ function ee(t, e) {
|
|
|
216
322
|
stroke: "currentColor",
|
|
217
323
|
"aria-hidden": "true"
|
|
218
324
|
}, [
|
|
219
|
-
|
|
325
|
+
l("path", {
|
|
220
326
|
"stroke-linecap": "round",
|
|
221
327
|
"stroke-linejoin": "round",
|
|
222
328
|
d: "M6 18L18 6M6 6l12 12"
|
|
223
329
|
})
|
|
224
330
|
]);
|
|
225
331
|
}
|
|
226
|
-
const
|
|
332
|
+
const re = {
|
|
227
333
|
class: "pl-7 text-lg font-semibold text-zinc-900 md:hidden",
|
|
228
334
|
"data-test-name": ""
|
|
229
|
-
},
|
|
335
|
+
}, O = /* @__PURE__ */ p({
|
|
230
336
|
__name: "NavigationItem",
|
|
231
337
|
props: {
|
|
232
338
|
item: null
|
|
233
339
|
},
|
|
234
340
|
setup(t) {
|
|
235
|
-
const e = t, { navigationComponent:
|
|
236
|
-
async function w(
|
|
237
|
-
var
|
|
238
|
-
(
|
|
341
|
+
const e = t, { navigationComponent: s } = A(), o = h(!1), r = I(() => o.value || typeof e.item.icon != "string"), u = I(() => o.value ? S : e.item.icon);
|
|
342
|
+
async function w(g) {
|
|
343
|
+
var f, i, M;
|
|
344
|
+
(f = e.item) != null && f.onClick && (g.preventDefault(), o.value = !0, await Promise.resolve((M = (i = e.item) == null ? void 0 : i.onClick) == null ? void 0 : M.call(i)), o.value = !1);
|
|
239
345
|
}
|
|
240
|
-
return (
|
|
346
|
+
return (g, f) => (a(), y($(n(s)), {
|
|
241
347
|
to: t.item.to,
|
|
242
348
|
href: t.item.href,
|
|
243
|
-
class:
|
|
349
|
+
class: x([{
|
|
244
350
|
"md:bg-primary": t.item.active ?? !1,
|
|
245
351
|
"!rounded-full": t.item.rounded ?? !1,
|
|
246
352
|
"mb-2": !t.item.bottom,
|
|
@@ -248,88 +354,88 @@ const te = {
|
|
|
248
354
|
}, "flex h-10 w-full cursor-pointer items-center rounded-lg text-center transition-colors md:w-10 md:justify-center md:hover:bg-primary-active"]),
|
|
249
355
|
onClick: w
|
|
250
356
|
}, {
|
|
251
|
-
default:
|
|
252
|
-
(a(),
|
|
253
|
-
class:
|
|
357
|
+
default: v(() => [
|
|
358
|
+
(a(), y($(n(r) ? n(u) : "span"), {
|
|
359
|
+
class: x([{ "!h-6": !n(r) }, "h-4 w-4 text-zinc-900 md:text-white"]),
|
|
254
360
|
size: o.value ? "extra-small" : void 0,
|
|
255
361
|
"data-test-icon": ""
|
|
256
362
|
}, {
|
|
257
|
-
default:
|
|
258
|
-
|
|
363
|
+
default: v(() => [
|
|
364
|
+
z(C(n(r) ? "" : t.item.icon), 1)
|
|
259
365
|
]),
|
|
260
366
|
_: 1
|
|
261
367
|
}, 8, ["class", "size"])),
|
|
262
|
-
|
|
368
|
+
l("span", re, C(t.item.name), 1)
|
|
263
369
|
]),
|
|
264
370
|
_: 1
|
|
265
371
|
}, 8, ["to", "href", "class"]));
|
|
266
372
|
}
|
|
267
|
-
}),
|
|
373
|
+
}), P = /* @__PURE__ */ p({
|
|
268
374
|
__name: "SupportItem",
|
|
269
375
|
setup(t) {
|
|
270
|
-
const { contactRoute: e, navigationComponent:
|
|
271
|
-
return (o, r) => n(e) ? (a(),
|
|
376
|
+
const { contactRoute: e, navigationComponent: s } = A();
|
|
377
|
+
return (o, r) => n(e) ? (a(), y($(n(s)), {
|
|
272
378
|
key: 0,
|
|
273
|
-
to: n(
|
|
274
|
-
href: n(
|
|
379
|
+
to: n(s) !== "a" ? n(e) : void 0,
|
|
380
|
+
href: n(s) ? n(e) : void 0,
|
|
275
381
|
class: "fixed bottom-5 right-5 z-50 mt-2 flex h-10 w-10 justify-center rounded-full bg-primary py-2 text-white transition-colors hover:bg-primary-active",
|
|
276
382
|
"data-test-help-icon": ""
|
|
277
383
|
}, {
|
|
278
|
-
default:
|
|
279
|
-
|
|
384
|
+
default: v(() => [
|
|
385
|
+
z(" ? ")
|
|
280
386
|
]),
|
|
281
387
|
_: 1
|
|
282
|
-
}, 8, ["to", "href"])) :
|
|
388
|
+
}, 8, ["to", "href"])) : b("", !0);
|
|
283
389
|
}
|
|
284
|
-
}),
|
|
390
|
+
}), ce = { class: "flex items-center justify-between bg-zinc-50 px-2 py-4 text-black md:hidden" }, ue = ["innerHTML"], de = /* @__PURE__ */ l("div", { class: "w-1/3" }, null, -1), me = {
|
|
285
391
|
class: "relative flex h-full w-full flex-1 flex-col bg-white focus:outline-none",
|
|
286
392
|
"data-test-navigation-wrapper": ""
|
|
287
|
-
},
|
|
393
|
+
}, pe = {
|
|
288
394
|
class: "h-0 flex-1 overflow-y-auto p-4",
|
|
289
395
|
"data-test-navigation-links-wrapper": ""
|
|
290
|
-
},
|
|
396
|
+
}, fe = {
|
|
291
397
|
"aria-label": "MainMenu",
|
|
292
398
|
class: "mt-5"
|
|
293
|
-
},
|
|
399
|
+
}, _e = { class: "mb-auto" }, he = /* @__PURE__ */ p({
|
|
294
400
|
__name: "Mobile",
|
|
295
401
|
setup(t) {
|
|
296
402
|
const {
|
|
297
403
|
logo: e,
|
|
298
|
-
navigationItems:
|
|
404
|
+
navigationItems: s,
|
|
299
405
|
mobileMenuOpen: o,
|
|
300
406
|
toggleMobileMenu: r,
|
|
301
407
|
closeMobileMenu: u
|
|
302
|
-
} =
|
|
303
|
-
return (
|
|
304
|
-
|
|
408
|
+
} = A(), w = I(() => o.value ? ie : le);
|
|
409
|
+
return (g, f) => (a(), c("div", ce, [
|
|
410
|
+
l("div", {
|
|
305
411
|
class: "inline-flex w-1/3 cursor-pointer items-center justify-start rounded-sm !p-2 hover:text-primary focus:outline-none",
|
|
306
412
|
"data-test-menu-icon-wrapper": "",
|
|
307
|
-
onClick:
|
|
413
|
+
onClick: f[0] || (f[0] = //@ts-ignore
|
|
308
414
|
(...i) => n(r) && n(r)(...i))
|
|
309
415
|
}, [
|
|
310
|
-
(a(),
|
|
416
|
+
(a(), y($(n(w)), {
|
|
311
417
|
class: "block h-6 w-6 text-black",
|
|
312
418
|
"aria-hidden": "true"
|
|
313
419
|
}))
|
|
314
420
|
]),
|
|
315
|
-
|
|
421
|
+
l("div", {
|
|
316
422
|
class: "w-1/3",
|
|
317
423
|
"data-test-logo-wrapper": "",
|
|
318
424
|
innerHTML: n(e)
|
|
319
|
-
}, null, 8,
|
|
320
|
-
|
|
321
|
-
m(n(
|
|
425
|
+
}, null, 8, ue),
|
|
426
|
+
de,
|
|
427
|
+
m(n(H), {
|
|
322
428
|
show: n(o),
|
|
323
429
|
as: "template"
|
|
324
430
|
}, {
|
|
325
|
-
default:
|
|
326
|
-
m(n(
|
|
431
|
+
default: v(() => [
|
|
432
|
+
m(n(R), {
|
|
327
433
|
as: "div",
|
|
328
434
|
class: "fixed inset-0 top-20 z-50 flex -translate-y-2 lg:hidden",
|
|
329
435
|
onClose: n(u)
|
|
330
436
|
}, {
|
|
331
|
-
default:
|
|
332
|
-
m(n(
|
|
437
|
+
default: v(() => [
|
|
438
|
+
m(n(V), {
|
|
333
439
|
as: "template",
|
|
334
440
|
enter: "transition ease-in-out duration-300 transform",
|
|
335
441
|
"enter-from": "translate-y-full",
|
|
@@ -338,20 +444,20 @@ const te = {
|
|
|
338
444
|
"leave-from": "translate-y-0",
|
|
339
445
|
"leave-to": "translate-y-full"
|
|
340
446
|
}, {
|
|
341
|
-
default:
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
(a(!0), c(
|
|
447
|
+
default: v(() => [
|
|
448
|
+
l("div", me, [
|
|
449
|
+
l("div", pe, [
|
|
450
|
+
l("nav", fe, [
|
|
451
|
+
l("ul", _e, [
|
|
452
|
+
(a(!0), c(L, null, B(n(s), (i) => (a(), c("li", {
|
|
347
453
|
key: i.name,
|
|
348
454
|
"data-test-navigation-item": ""
|
|
349
455
|
}, [
|
|
350
|
-
m(
|
|
456
|
+
m(O, { item: i }, null, 8, ["item"])
|
|
351
457
|
]))), 128))
|
|
352
458
|
])
|
|
353
459
|
]),
|
|
354
|
-
m(
|
|
460
|
+
m(P)
|
|
355
461
|
])
|
|
356
462
|
])
|
|
357
463
|
]),
|
|
@@ -363,90 +469,120 @@ const te = {
|
|
|
363
469
|
]),
|
|
364
470
|
_: 1
|
|
365
471
|
}, 8, ["show"]),
|
|
366
|
-
m(
|
|
472
|
+
m(P)
|
|
367
473
|
]));
|
|
368
474
|
}
|
|
369
|
-
}),
|
|
475
|
+
}), ve = { class: "mx-auto mb-auto" }, ye = { class: "mx-auto mt-auto" }, T = /* @__PURE__ */ p({
|
|
370
476
|
__name: "AppNavigationMenu",
|
|
371
477
|
setup(t) {
|
|
372
|
-
const { navigationItems: e, mainMenuOpen:
|
|
478
|
+
const { navigationItems: e, mainMenuOpen: s } = A();
|
|
373
479
|
return (o, r) => (a(), c("div", null, [
|
|
374
|
-
|
|
375
|
-
class:
|
|
480
|
+
l("aside", {
|
|
481
|
+
class: x([{ "px-3 md:!w-20": n(s) }, "sticky top-0 hidden h-screen w-0 flex-col justify-center overflow-hidden py-5 transition-all duration-500 md:flex"]),
|
|
376
482
|
"data-test-main-menu": ""
|
|
377
483
|
}, [
|
|
378
|
-
|
|
379
|
-
(a(!0), c(
|
|
484
|
+
l("ul", ve, [
|
|
485
|
+
(a(!0), c(L, null, B(n(e).filter((u) => u.bottom !== !0), (u) => (a(), c("li", {
|
|
380
486
|
key: u.name,
|
|
381
487
|
"data-test-top-navigation-item": ""
|
|
382
488
|
}, [
|
|
383
|
-
m(
|
|
489
|
+
m(O, { item: u }, null, 8, ["item"])
|
|
384
490
|
]))), 128))
|
|
385
491
|
]),
|
|
386
|
-
|
|
387
|
-
(a(!0), c(
|
|
492
|
+
l("ul", ye, [
|
|
493
|
+
(a(!0), c(L, null, B(n(e).filter((u) => u.bottom), (u) => (a(), c("li", {
|
|
388
494
|
key: u.name,
|
|
389
495
|
"data-test-bottom-navigation-item": ""
|
|
390
496
|
}, [
|
|
391
|
-
m(
|
|
497
|
+
m(O, { item: u }, null, 8, ["item"])
|
|
392
498
|
]))), 128)),
|
|
393
|
-
|
|
394
|
-
m(
|
|
499
|
+
l("li", null, [
|
|
500
|
+
m(P, { class: "!static" })
|
|
395
501
|
])
|
|
396
502
|
])
|
|
397
503
|
], 2),
|
|
398
|
-
m(
|
|
504
|
+
m(he)
|
|
505
|
+
]));
|
|
506
|
+
}
|
|
507
|
+
}), ge = { class: "flex text-sm font-bold" }, xe = {
|
|
508
|
+
class: "rounded-l-lg bg-indigo-900 px-2 py-1.5 text-white",
|
|
509
|
+
"data-test-country-code": ""
|
|
510
|
+
}, be = {
|
|
511
|
+
class: "rounded-r-lg bg-yellow-400 px-2 py-1.5 uppercase text-zinc-900",
|
|
512
|
+
"data-test-license-plate": ""
|
|
513
|
+
}, je = /* @__PURE__ */ p({
|
|
514
|
+
__name: "AppLicensePlate",
|
|
515
|
+
props: {
|
|
516
|
+
license: { default: void 0 },
|
|
517
|
+
country: { default: "NL" }
|
|
518
|
+
},
|
|
519
|
+
setup(t) {
|
|
520
|
+
return (e, s) => (a(), c("div", ge, [
|
|
521
|
+
l("span", xe, C(t.country), 1),
|
|
522
|
+
l("span", be, [
|
|
523
|
+
d(e.$slots, "default", {}, () => [
|
|
524
|
+
z(C(t.license), 1)
|
|
525
|
+
])
|
|
526
|
+
])
|
|
399
527
|
]));
|
|
400
528
|
}
|
|
401
|
-
}),
|
|
529
|
+
}), we = { class: "flex min-h-screen flex-col md:flex-row md:bg-secondary" }, $e = { class: "flex h-full grow items-center justify-center bg-white px-10 transition-all md:h-auto md:w-1/2 md:grow-0 md:rounded-l-2xl md:px-24" }, Ce = { class: "mx-auto md:max-w-lg" }, ke = {
|
|
402
530
|
class: "hidden w-1/2 md:block",
|
|
403
531
|
"data-test-layout-image-wrapper": ""
|
|
404
|
-
},
|
|
532
|
+
}, Me = ["src"], Te = /* @__PURE__ */ p({
|
|
405
533
|
__name: "Auth",
|
|
406
534
|
setup(t) {
|
|
407
|
-
const { layoutImage: e } =
|
|
408
|
-
return (
|
|
409
|
-
m(n(
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
535
|
+
const { layoutImage: e } = te();
|
|
536
|
+
return (s, o) => (a(), c("div", we, [
|
|
537
|
+
m(n(T)),
|
|
538
|
+
l("main", $e, [
|
|
539
|
+
l("div", Ce, [
|
|
540
|
+
d(s.$slots, "default")
|
|
413
541
|
])
|
|
414
542
|
]),
|
|
415
|
-
|
|
543
|
+
l("div", ke, [
|
|
416
544
|
n(e) ? (a(), c("img", {
|
|
417
545
|
key: 0,
|
|
418
546
|
src: n(e),
|
|
419
547
|
class: "h-screen w-full object-fill"
|
|
420
|
-
}, null, 8,
|
|
548
|
+
}, null, 8, Me)) : b("", !0)
|
|
421
549
|
])
|
|
422
550
|
]));
|
|
423
551
|
}
|
|
424
|
-
}),
|
|
552
|
+
}), Ie = { class: "flex min-h-screen flex-col md:flex-row md:bg-secondary" }, ze = /* @__PURE__ */ l("div", {
|
|
553
|
+
id: "top",
|
|
554
|
+
class: "order-2 px-4 empty:px-0"
|
|
555
|
+
}, null, -1), Ae = { class: "order-4 flex h-full grow bg-zinc-100 px-4 py-8 transition-all md:order-3 md:h-auto md:rounded-l-2xl md:px-6 md:pr-12" }, Le = { class: "w-full" }, Be = {
|
|
425
556
|
id: "sidebar-wrapper",
|
|
426
|
-
class: "order-
|
|
557
|
+
class: "order-3 w-141 max-w-full shrink-0 grow-0 rounded-l-2xl bg-white px-4 py-8 md:sticky md:top-0 md:order-4 md:-ml-5 md:max-h-screen md:px-12 md:py-14",
|
|
427
558
|
"data-test-layout-sidebar-wrapper": ""
|
|
428
|
-
},
|
|
559
|
+
}, Ee = /* @__PURE__ */ p({
|
|
429
560
|
__name: "Base",
|
|
430
561
|
setup(t) {
|
|
431
|
-
return (e,
|
|
432
|
-
m(n(
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
562
|
+
return (e, s) => (a(), c("div", Ie, [
|
|
563
|
+
m(n(T), { class: "order-1" }),
|
|
564
|
+
d(e.$slots, "top", {}, () => [
|
|
565
|
+
ze
|
|
566
|
+
]),
|
|
567
|
+
l("main", Ae, [
|
|
568
|
+
l("div", Le, [
|
|
569
|
+
d(e.$slots, "default")
|
|
436
570
|
])
|
|
437
571
|
]),
|
|
438
|
-
|
|
439
|
-
|
|
572
|
+
l("div", Be, [
|
|
573
|
+
d(e.$slots, "sidebar")
|
|
440
574
|
])
|
|
441
575
|
]));
|
|
442
576
|
}
|
|
443
577
|
});
|
|
444
578
|
export {
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
579
|
+
Se as AppButton,
|
|
580
|
+
Ne as AppCard,
|
|
581
|
+
je as AppLicensePlate,
|
|
582
|
+
S as AppLoader,
|
|
583
|
+
T as AppNavigationMenu,
|
|
584
|
+
Te as AuthLayout,
|
|
585
|
+
Ee as BaseLayout,
|
|
586
|
+
te as useLayout,
|
|
587
|
+
A as useNavigation
|
|
452
588
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autoafleveren/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/*",
|
|
@@ -56,45 +56,45 @@
|
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@headlessui/vue": "^1.7.13",
|
|
58
58
|
"@heroicons/vue": "^2.0.17",
|
|
59
|
-
"@vitejs/plugin-vue": "^4.1
|
|
59
|
+
"@vitejs/plugin-vue": "^4.2.1",
|
|
60
60
|
"autoprefixer": "^10.4.14",
|
|
61
|
-
"tailwindcss": "^3.3.
|
|
62
|
-
"vite": "^4.3.
|
|
61
|
+
"tailwindcss": "^3.3.2",
|
|
62
|
+
"vite": "^4.3.5",
|
|
63
63
|
"vue": "^3.2.47",
|
|
64
|
-
"vue-docgen-api": "^4.
|
|
64
|
+
"vue-docgen-api": "^4.71.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@babel/core": "^7.21.
|
|
68
|
-
"@babel/preset-typescript": "^7.21.
|
|
67
|
+
"@babel/core": "^7.21.8",
|
|
68
|
+
"@babel/preset-typescript": "^7.21.5",
|
|
69
69
|
"@mdx-js/react": "^2.3.0",
|
|
70
70
|
"@programic/eslint-plugin": "^6.2.0",
|
|
71
71
|
"@rushstack/eslint-patch": "^1.2.0",
|
|
72
|
-
"@storybook/addon-actions": "^7.0.
|
|
73
|
-
"@storybook/addon-docs": "^7.0.
|
|
74
|
-
"@storybook/addon-essentials": "^7.0.
|
|
75
|
-
"@storybook/addon-interactions": "^7.0.
|
|
76
|
-
"@storybook/addon-links": "^7.0.
|
|
72
|
+
"@storybook/addon-actions": "^7.0.9",
|
|
73
|
+
"@storybook/addon-docs": "^7.0.9",
|
|
74
|
+
"@storybook/addon-essentials": "^7.0.9",
|
|
75
|
+
"@storybook/addon-interactions": "^7.0.9",
|
|
76
|
+
"@storybook/addon-links": "^7.0.10",
|
|
77
77
|
"@storybook/addon-postcss": "^2.0.0",
|
|
78
|
-
"@storybook/addon-styling": "^1.0.
|
|
79
|
-
"@storybook/addons": "^7.0.
|
|
80
|
-
"@storybook/builder-vite": "^7.0.
|
|
81
|
-
"@storybook/client-api": "^7.0.
|
|
82
|
-
"@storybook/preview-web": "^7.0.
|
|
78
|
+
"@storybook/addon-styling": "^1.0.6",
|
|
79
|
+
"@storybook/addons": "^7.0.9",
|
|
80
|
+
"@storybook/builder-vite": "^7.0.9",
|
|
81
|
+
"@storybook/client-api": "^7.0.9",
|
|
82
|
+
"@storybook/preview-web": "^7.0.9",
|
|
83
83
|
"@storybook/testing-library": "^0.1.0",
|
|
84
|
-
"@storybook/theming": "^7.0.
|
|
85
|
-
"@storybook/vue3": "^7.0.
|
|
86
|
-
"@storybook/vue3-vite": "^7.0.
|
|
84
|
+
"@storybook/theming": "^7.0.9",
|
|
85
|
+
"@storybook/vue3": "^7.0.10",
|
|
86
|
+
"@storybook/vue3-vite": "^7.0.9",
|
|
87
87
|
"@types/eslint": "^8.37.0",
|
|
88
88
|
"@types/jsdom": "^21.1.1",
|
|
89
|
-
"@types/node": "^
|
|
90
|
-
"@types/react": "^18.
|
|
91
|
-
"@types/react-dom": "^18.
|
|
92
|
-
"@typescript-eslint/eslint-plugin": "^5.59.
|
|
93
|
-
"@typescript-eslint/parser": "^5.59.
|
|
94
|
-
"@vue/test-utils": "^2.
|
|
95
|
-
"@vue/tsconfig": "^0.
|
|
89
|
+
"@types/node": "^20.1.1",
|
|
90
|
+
"@types/react": "^18.2.6",
|
|
91
|
+
"@types/react-dom": "^18.2.4",
|
|
92
|
+
"@typescript-eslint/eslint-plugin": "^5.59.5",
|
|
93
|
+
"@typescript-eslint/parser": "^5.59.5",
|
|
94
|
+
"@vue/test-utils": "^2.4.0-alpha.0",
|
|
95
|
+
"@vue/tsconfig": "^0.3.2",
|
|
96
96
|
"babel-loader": "^9.1.2",
|
|
97
|
-
"eslint": "^8.
|
|
97
|
+
"eslint": "^8.40.0",
|
|
98
98
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
99
99
|
"eslint-import-resolver-typescript": "^3.5.5",
|
|
100
100
|
"eslint-plugin-import": "^2.27.5",
|
|
@@ -102,21 +102,21 @@
|
|
|
102
102
|
"eslint-plugin-tailwindcss": "^3.11.0",
|
|
103
103
|
"eslint-plugin-unicorn": "^46.0.0",
|
|
104
104
|
"eslint-plugin-vitest": "^0.1.4",
|
|
105
|
-
"eslint-plugin-vue": "^9.11.
|
|
106
|
-
"jsdom": "^
|
|
107
|
-
"postcss": "^8.4.
|
|
105
|
+
"eslint-plugin-vue": "^9.11.1",
|
|
106
|
+
"jsdom": "^22.0.0",
|
|
107
|
+
"postcss": "^8.4.23",
|
|
108
108
|
"react": "^18.2.0",
|
|
109
109
|
"react-dom": "^18.2.0",
|
|
110
|
-
"storybook": "^7.0.
|
|
110
|
+
"storybook": "^7.0.9",
|
|
111
111
|
"storybook-dark-mode": "^3.0.0",
|
|
112
|
-
"typescript": "^
|
|
112
|
+
"typescript": "^5.0.4",
|
|
113
113
|
"vite-plugin-externals": "^0.6.2",
|
|
114
114
|
"vite-plugin-singlefile": "^0.13.5",
|
|
115
|
-
"vitest": "^0.
|
|
116
|
-
"vue-eslint-parser": "^9.
|
|
117
|
-
"vue-loader": "^17.0
|
|
115
|
+
"vitest": "^0.31.0",
|
|
116
|
+
"vue-eslint-parser": "^9.2.1",
|
|
117
|
+
"vue-loader": "^17.1.0",
|
|
118
118
|
"vue-template-compiler": "^2.7.14",
|
|
119
|
-
"vue-tsc": "~1.
|
|
119
|
+
"vue-tsc": "~1.6.4"
|
|
120
120
|
},
|
|
121
121
|
"stableVersion": "0.0.2"
|
|
122
122
|
}
|