independer-design-system 1.2.2 → 1.3.0
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/README.md +24 -3
- package/dist/module.json +1 -1
- package/dist/runtime/assets/style.css +1 -1
- package/dist/runtime/components/Dialog.vue +1 -1
- package/dist/runtime/components/Expandable/Card.d.vue.ts +33 -0
- package/dist/runtime/components/Expandable/Card.vue +45 -0
- package/dist/runtime/components/Expandable/Card.vue.d.ts +33 -0
- package/dist/runtime/components/Expandable/Filter.d.vue.ts +33 -0
- package/dist/runtime/components/Expandable/Filter.vue +45 -0
- package/dist/runtime/components/Expandable/Filter.vue.d.ts +33 -0
- package/dist/runtime/components/Form/Checkbox.d.vue.ts +2 -0
- package/dist/runtime/components/Form/Checkbox.vue +7 -5
- package/dist/runtime/components/Form/Checkbox.vue.d.ts +2 -0
- package/dist/runtime/components/Form/CheckboxProduct.d.vue.ts +45 -0
- package/dist/runtime/components/Form/CheckboxProduct.vue +52 -0
- package/dist/runtime/components/Form/CheckboxProduct.vue.d.ts +45 -0
- package/dist/runtime/components/Form/Fieldset.vue +2 -1
- package/dist/runtime/components/Form/Radio.vue +8 -2
- package/dist/runtime/components/Form/RadioProduct.d.vue.ts +47 -0
- package/dist/runtime/components/Form/RadioProduct.vue +84 -0
- package/dist/runtime/components/Form/RadioProduct.vue.d.ts +47 -0
- package/dist/runtime/components/Modal.vue +1 -1
- package/dist/runtime/components/Notification.d.vue.ts +26 -0
- package/dist/runtime/components/Notification.vue +45 -0
- package/dist/runtime/components/Notification.vue.d.ts +26 -0
- package/dist/runtime/components/Price.d.vue.ts +64 -0
- package/dist/runtime/components/Price.vue +57 -0
- package/dist/runtime/components/Price.vue.d.ts +64 -0
- package/dist/runtime/components/PriceQuote.d.vue.ts +27 -0
- package/dist/runtime/components/PriceQuote.vue +35 -0
- package/dist/runtime/components/PriceQuote.vue.d.ts +27 -0
- package/dist/runtime/components/USP.d.vue.ts +35 -0
- package/dist/runtime/components/USP.vue +24 -0
- package/dist/runtime/components/USP.vue.d.ts +35 -0
- package/package.json +1 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
4
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
5
|
+
$slots: S;
|
|
6
|
+
});
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
id: StringConstructor;
|
|
9
|
+
name: StringConstructor;
|
|
10
|
+
label: StringConstructor;
|
|
11
|
+
value: StringConstructor;
|
|
12
|
+
modelValue: (StringConstructor | BooleanConstructor)[];
|
|
13
|
+
checked: BooleanConstructor;
|
|
14
|
+
disabled: BooleanConstructor;
|
|
15
|
+
advice: BooleanConstructor;
|
|
16
|
+
adviceLabel: StringConstructor;
|
|
17
|
+
tooltip: BooleanConstructor;
|
|
18
|
+
labelSecondary: StringConstructor;
|
|
19
|
+
price: NumberConstructor;
|
|
20
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
focus: (...args: any[]) => void;
|
|
22
|
+
"update:modelValue": (...args: any[]) => void;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
id: StringConstructor;
|
|
25
|
+
name: StringConstructor;
|
|
26
|
+
label: StringConstructor;
|
|
27
|
+
value: StringConstructor;
|
|
28
|
+
modelValue: (StringConstructor | BooleanConstructor)[];
|
|
29
|
+
checked: BooleanConstructor;
|
|
30
|
+
disabled: BooleanConstructor;
|
|
31
|
+
advice: BooleanConstructor;
|
|
32
|
+
adviceLabel: StringConstructor;
|
|
33
|
+
tooltip: BooleanConstructor;
|
|
34
|
+
labelSecondary: StringConstructor;
|
|
35
|
+
price: NumberConstructor;
|
|
36
|
+
}>> & Readonly<{
|
|
37
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
39
|
+
}>, {
|
|
40
|
+
disabled: boolean;
|
|
41
|
+
checked: boolean;
|
|
42
|
+
advice: boolean;
|
|
43
|
+
tooltip: boolean;
|
|
44
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
45
|
+
type __VLS_Slots = {
|
|
46
|
+
default?: ((props: {}) => any) | undefined;
|
|
47
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<label class="radio group flex flex-col p-4 cursor-pointer bg-white border border-grey-light rounded-lg transition-all" :class="{ '!border-green ring-1 ring-green' : value === modelValue }" :for="id">
|
|
3
|
+
<div class="flex">
|
|
4
|
+
<input
|
|
5
|
+
class="sr-only peer"
|
|
6
|
+
type="radio"
|
|
7
|
+
:id="id"
|
|
8
|
+
:name="name"
|
|
9
|
+
:value="value"
|
|
10
|
+
:ref="name"
|
|
11
|
+
:checked="value === modelValue"
|
|
12
|
+
:disabled="disabled"
|
|
13
|
+
@change="emit('update:modelValue', $event.target.value)"
|
|
14
|
+
@focus="emit('focus', $event)"
|
|
15
|
+
/>
|
|
16
|
+
<div class="
|
|
17
|
+
radio-icon
|
|
18
|
+
relative
|
|
19
|
+
block
|
|
20
|
+
w-6
|
|
21
|
+
h-6
|
|
22
|
+
mr-2
|
|
23
|
+
border border-grey
|
|
24
|
+
rounded-xl
|
|
25
|
+
transition-all
|
|
26
|
+
ease-out
|
|
27
|
+
shrink-0
|
|
28
|
+
bg-white
|
|
29
|
+
hover:border-grey-dark
|
|
30
|
+
group-hover:border-grey-dark
|
|
31
|
+
peer-focus:border-green peer-focus:ring-4
|
|
32
|
+
ring-green/40
|
|
33
|
+
peer-checked:border-green
|
|
34
|
+
peer-checked:hover:border-green-dark
|
|
35
|
+
group-hover:peer-checked:border-green-dark
|
|
36
|
+
group-hover:peer-checked:after:bg-green-dark
|
|
37
|
+
peer-checked:after:absolute
|
|
38
|
+
peer-checked:after:content-['']
|
|
39
|
+
peer-checked:after:w-3
|
|
40
|
+
peer-checked:after:h-3
|
|
41
|
+
peer-checked:after:mt-[0.3125rem]
|
|
42
|
+
peer-checked:after:ml-[0.3125rem]
|
|
43
|
+
peer-checked:after:rounded-xl
|
|
44
|
+
peer-checked:after:transition-all
|
|
45
|
+
peer-checked:after:bg-green
|
|
46
|
+
peer-disabled:bg-grey-light
|
|
47
|
+
" />
|
|
48
|
+
|
|
49
|
+
<div class="flex flex-col w-full">
|
|
50
|
+
<div class="flex">
|
|
51
|
+
<span class="font-serif text-purple-dark font-bold" :class="{ 'text-grey-dark': disabled }">{{ label }}</span>
|
|
52
|
+
|
|
53
|
+
<Icon v-if="tooltip" name="eva:info-outline" class="ml-2 cursor-pointer text-grey-dark" />
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<p v-if="labelSecondary" class="text-grey-dark">{{ labelSecondary }}</p>
|
|
57
|
+
|
|
58
|
+
<IndPriceQuote v-if="price" :price="price" :without-symbol="true" text-append=" per maand" class="font-semibold text-grey-darker" />
|
|
59
|
+
|
|
60
|
+
<IndPill v-if="advice" class="mt-1 self-start" :label="adviceLabel" />
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<slot />
|
|
65
|
+
</label>
|
|
66
|
+
</template>
|
|
67
|
+
|
|
68
|
+
<script setup>
|
|
69
|
+
const emit = defineEmits(["update:modelValue", "focus"]);
|
|
70
|
+
defineProps({
|
|
71
|
+
id: String,
|
|
72
|
+
name: String,
|
|
73
|
+
label: String,
|
|
74
|
+
value: String,
|
|
75
|
+
modelValue: [String, Boolean],
|
|
76
|
+
checked: Boolean,
|
|
77
|
+
disabled: Boolean,
|
|
78
|
+
advice: Boolean,
|
|
79
|
+
adviceLabel: String,
|
|
80
|
+
tooltip: Boolean,
|
|
81
|
+
labelSecondary: String,
|
|
82
|
+
price: Number
|
|
83
|
+
});
|
|
84
|
+
</script>
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
4
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
5
|
+
$slots: S;
|
|
6
|
+
});
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
id: StringConstructor;
|
|
9
|
+
name: StringConstructor;
|
|
10
|
+
label: StringConstructor;
|
|
11
|
+
value: StringConstructor;
|
|
12
|
+
modelValue: (StringConstructor | BooleanConstructor)[];
|
|
13
|
+
checked: BooleanConstructor;
|
|
14
|
+
disabled: BooleanConstructor;
|
|
15
|
+
advice: BooleanConstructor;
|
|
16
|
+
adviceLabel: StringConstructor;
|
|
17
|
+
tooltip: BooleanConstructor;
|
|
18
|
+
labelSecondary: StringConstructor;
|
|
19
|
+
price: NumberConstructor;
|
|
20
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
focus: (...args: any[]) => void;
|
|
22
|
+
"update:modelValue": (...args: any[]) => void;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
id: StringConstructor;
|
|
25
|
+
name: StringConstructor;
|
|
26
|
+
label: StringConstructor;
|
|
27
|
+
value: StringConstructor;
|
|
28
|
+
modelValue: (StringConstructor | BooleanConstructor)[];
|
|
29
|
+
checked: BooleanConstructor;
|
|
30
|
+
disabled: BooleanConstructor;
|
|
31
|
+
advice: BooleanConstructor;
|
|
32
|
+
adviceLabel: StringConstructor;
|
|
33
|
+
tooltip: BooleanConstructor;
|
|
34
|
+
labelSecondary: StringConstructor;
|
|
35
|
+
price: NumberConstructor;
|
|
36
|
+
}>> & Readonly<{
|
|
37
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
39
|
+
}>, {
|
|
40
|
+
disabled: boolean;
|
|
41
|
+
checked: boolean;
|
|
42
|
+
advice: boolean;
|
|
43
|
+
tooltip: boolean;
|
|
44
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
45
|
+
type __VLS_Slots = {
|
|
46
|
+
default?: ((props: {}) => any) | undefined;
|
|
47
|
+
};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
>
|
|
7
7
|
<div
|
|
8
8
|
v-if="isOpen"
|
|
9
|
-
class="modal fixed top-4 z-80 grid w-full grid-rows-[auto_1fr_auto] rounded-t-xl shadow-
|
|
9
|
+
class="modal fixed top-4 z-80 grid w-full grid-rows-[auto_1fr_auto] rounded-t-xl shadow-overlay desktop:right-0 desktop:top-0 desktop:rounded-l-xl desktop:rounded-tr-none"
|
|
10
10
|
:class="[classes, sizeClasses, backgroundColorClass]"
|
|
11
11
|
role="dialog"
|
|
12
12
|
aria-modal="true"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
4
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
5
|
+
$slots: S;
|
|
6
|
+
});
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
tone: StringConstructor;
|
|
9
|
+
icon: StringConstructor;
|
|
10
|
+
closeButton: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
tone: StringConstructor;
|
|
16
|
+
icon: StringConstructor;
|
|
17
|
+
closeButton: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
}>> & Readonly<{}>, {
|
|
22
|
+
closeButton: boolean;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
24
|
+
type __VLS_Slots = {
|
|
25
|
+
default?: ((props: {}) => any) | undefined;
|
|
26
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div v-if="show" class="notification flex gap-2 p-3 border rounded-lg" :class="classesBackground">
|
|
3
|
+
<Icon v-if="icon" :name="icon" :class="classesIcon" />
|
|
4
|
+
|
|
5
|
+
<div class="w-full">
|
|
6
|
+
<slot />
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
<Icon v-if="closeButton" name="eva:close-outline" class="text-grey-dark cursor-pointer" @click.prevent="close" />
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script setup>
|
|
14
|
+
import { computed } from "vue";
|
|
15
|
+
const props = defineProps({
|
|
16
|
+
tone: String,
|
|
17
|
+
icon: String,
|
|
18
|
+
closeButton: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: false
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const show = ref(true);
|
|
24
|
+
const classesBackground = computed(() => {
|
|
25
|
+
return {
|
|
26
|
+
"info": "bg-blue-light text-blue-darkest border-blue-400",
|
|
27
|
+
"warning": "bg-yellow-100 text-yellow-darkest border-yellow-400",
|
|
28
|
+
"error": "bg-red-100 text-red-darkest border-red-400"
|
|
29
|
+
}[props.tone];
|
|
30
|
+
});
|
|
31
|
+
const classesIcon = computed(() => {
|
|
32
|
+
return {
|
|
33
|
+
"info": "text-blue-darkest",
|
|
34
|
+
"error": "text-red-darkest",
|
|
35
|
+
"warning": "text-yellow-darkest"
|
|
36
|
+
}[props.tone];
|
|
37
|
+
});
|
|
38
|
+
const close = () => {
|
|
39
|
+
show.value = false;
|
|
40
|
+
};
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
<style>
|
|
44
|
+
@reference "../assets/style.css";.notification a{@apply font-semibold text-blue-darkest}
|
|
45
|
+
</style>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
4
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
5
|
+
$slots: S;
|
|
6
|
+
});
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
tone: StringConstructor;
|
|
9
|
+
icon: StringConstructor;
|
|
10
|
+
closeButton: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
tone: StringConstructor;
|
|
16
|
+
icon: StringConstructor;
|
|
17
|
+
closeButton: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
}>> & Readonly<{}>, {
|
|
22
|
+
closeButton: boolean;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
24
|
+
type __VLS_Slots = {
|
|
25
|
+
default?: ((props: {}) => any) | undefined;
|
|
26
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
period: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
premium: {
|
|
9
|
+
type: ObjectConstructor;
|
|
10
|
+
default: null;
|
|
11
|
+
};
|
|
12
|
+
closable: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
discount: {
|
|
17
|
+
type: ObjectConstructor;
|
|
18
|
+
default: null;
|
|
19
|
+
};
|
|
20
|
+
size: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
savings: {
|
|
25
|
+
type: ObjectConstructor;
|
|
26
|
+
default: null;
|
|
27
|
+
};
|
|
28
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
|
+
discount: (...args: any[]) => void;
|
|
30
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
period: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
premium: {
|
|
36
|
+
type: ObjectConstructor;
|
|
37
|
+
default: null;
|
|
38
|
+
};
|
|
39
|
+
closable: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
discount: {
|
|
44
|
+
type: ObjectConstructor;
|
|
45
|
+
default: null;
|
|
46
|
+
};
|
|
47
|
+
size: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
savings: {
|
|
52
|
+
type: ObjectConstructor;
|
|
53
|
+
default: null;
|
|
54
|
+
};
|
|
55
|
+
}>> & Readonly<{
|
|
56
|
+
onDiscount?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
}>, {
|
|
58
|
+
size: string;
|
|
59
|
+
discount: Record<string, any>;
|
|
60
|
+
period: string;
|
|
61
|
+
premium: Record<string, any>;
|
|
62
|
+
closable: boolean;
|
|
63
|
+
savings: Record<string, any>;
|
|
64
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex items-start justify-end">
|
|
3
|
+
<div class="text-right">
|
|
4
|
+
<div v-if="period" class="text-text-default">
|
|
5
|
+
{{ period }}
|
|
6
|
+
</div>
|
|
7
|
+
|
|
8
|
+
<div v-if="premium" class="flex items-start justify-end font-semibold">
|
|
9
|
+
<div :class="{ 'text-xl leading-6': size === 'small', 'text-[32px] leading-none': size === 'medium', 'text-[48px] leading-none': size === 'large' }">{{ premium.euro }}</div>
|
|
10
|
+
<div :class="{ 'text-xs leading-5': size === 'small', 'text-[16px] leading-none mt-1': size === 'medium', 'text-[24px] leading-none mt-1': size === 'large' }">,{{ formatCent(premium.cent) }}</div>
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
<div v-if="closable === false" class="text-grey-dark">
|
|
14
|
+
Niet bij ons te koop
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
<div v-if="discount">
|
|
18
|
+
<div class="text-purple underline underline-offset-4 decoration-1 decoration-dotted cursor-pointer" @click.prevent="emit('discount')">€ {{ discount.euro }},{{ formatCent(discount.cent) }} korting</div>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<div v-if="savings">
|
|
22
|
+
<div class="text-green-dark">Bespaar € {{ savings.euro }},{{ formatCent(savings.cent) }}/jr</div>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<script setup>
|
|
29
|
+
const emit = defineEmits(["discount"]);
|
|
30
|
+
const formatCent = (cent) => String(cent).padEnd(2, "0");
|
|
31
|
+
defineProps({
|
|
32
|
+
period: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: "Geschat per maand"
|
|
35
|
+
},
|
|
36
|
+
premium: {
|
|
37
|
+
type: Object,
|
|
38
|
+
default: null
|
|
39
|
+
},
|
|
40
|
+
closable: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: true
|
|
43
|
+
},
|
|
44
|
+
discount: {
|
|
45
|
+
type: Object,
|
|
46
|
+
default: null
|
|
47
|
+
},
|
|
48
|
+
size: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: "large"
|
|
51
|
+
},
|
|
52
|
+
savings: {
|
|
53
|
+
type: Object,
|
|
54
|
+
default: null
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
</script>
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
period: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
premium: {
|
|
9
|
+
type: ObjectConstructor;
|
|
10
|
+
default: null;
|
|
11
|
+
};
|
|
12
|
+
closable: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
discount: {
|
|
17
|
+
type: ObjectConstructor;
|
|
18
|
+
default: null;
|
|
19
|
+
};
|
|
20
|
+
size: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
savings: {
|
|
25
|
+
type: ObjectConstructor;
|
|
26
|
+
default: null;
|
|
27
|
+
};
|
|
28
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
|
+
discount: (...args: any[]) => void;
|
|
30
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
period: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
premium: {
|
|
36
|
+
type: ObjectConstructor;
|
|
37
|
+
default: null;
|
|
38
|
+
};
|
|
39
|
+
closable: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
discount: {
|
|
44
|
+
type: ObjectConstructor;
|
|
45
|
+
default: null;
|
|
46
|
+
};
|
|
47
|
+
size: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
savings: {
|
|
52
|
+
type: ObjectConstructor;
|
|
53
|
+
default: null;
|
|
54
|
+
};
|
|
55
|
+
}>> & Readonly<{
|
|
56
|
+
onDiscount?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
}>, {
|
|
58
|
+
size: string;
|
|
59
|
+
discount: Record<string, any>;
|
|
60
|
+
period: string;
|
|
61
|
+
premium: Record<string, any>;
|
|
62
|
+
closable: boolean;
|
|
63
|
+
savings: Record<string, any>;
|
|
64
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
price: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
withoutSymbol: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
textPrepend: StringConstructor;
|
|
11
|
+
textAppend: StringConstructor;
|
|
12
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
price: {
|
|
14
|
+
type: NumberConstructor;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
withoutSymbol: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
textPrepend: StringConstructor;
|
|
22
|
+
textAppend: StringConstructor;
|
|
23
|
+
}>> & Readonly<{}>, {
|
|
24
|
+
withoutSymbol: boolean;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<Transition name="price-fade" mode="out-in">
|
|
3
|
+
<div :key="price">
|
|
4
|
+
{{ textPrepend }}
|
|
5
|
+
|
|
6
|
+
<template v-if="withoutSymbol">
|
|
7
|
+
{{ $n(price, "currencyNoSymbol") }}
|
|
8
|
+
</template>
|
|
9
|
+
<template v-else>
|
|
10
|
+
{{ $n(price, "currency") }}
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
{{ textAppend }}
|
|
14
|
+
</div>
|
|
15
|
+
</Transition>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script setup>
|
|
19
|
+
const props = defineProps({
|
|
20
|
+
price: {
|
|
21
|
+
type: Number,
|
|
22
|
+
required: true
|
|
23
|
+
},
|
|
24
|
+
withoutSymbol: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: false
|
|
27
|
+
},
|
|
28
|
+
textPrepend: String,
|
|
29
|
+
textAppend: String
|
|
30
|
+
});
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<style>
|
|
34
|
+
@reference "../../assets/style.css";.price-fade-enter-active,.price-fade-leave-active{@apply transition-all ease-out duration-400 transform-gpu}.price-fade-enter-from,.price-fade-leave-to{@apply opacity-0}
|
|
35
|
+
</style>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
price: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
withoutSymbol: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
textPrepend: StringConstructor;
|
|
11
|
+
textAppend: StringConstructor;
|
|
12
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
price: {
|
|
14
|
+
type: NumberConstructor;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
withoutSymbol: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
textPrepend: StringConstructor;
|
|
22
|
+
textAppend: StringConstructor;
|
|
23
|
+
}>> & Readonly<{}>, {
|
|
24
|
+
withoutSymbol: boolean;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
4
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
5
|
+
$slots: S;
|
|
6
|
+
});
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
icon: StringConstructor;
|
|
9
|
+
iconColor: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
iconClass: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
label: StringConstructor;
|
|
18
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
icon: StringConstructor;
|
|
20
|
+
iconColor: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
iconClass: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
label: StringConstructor;
|
|
29
|
+
}>> & Readonly<{}>, {
|
|
30
|
+
iconColor: string;
|
|
31
|
+
iconClass: string;
|
|
32
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
33
|
+
type __VLS_Slots = {
|
|
34
|
+
default?: ((props: {}) => any) | undefined;
|
|
35
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<li class="flex gap-2">
|
|
3
|
+
<Icon v-if="icon" :name="icon" :class="[iconColor, iconClass]" />
|
|
4
|
+
|
|
5
|
+
{{ label }}
|
|
6
|
+
|
|
7
|
+
<slot />
|
|
8
|
+
</li>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script setup>
|
|
12
|
+
defineProps({
|
|
13
|
+
icon: String,
|
|
14
|
+
iconColor: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "text-green"
|
|
17
|
+
},
|
|
18
|
+
iconClass: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: ""
|
|
21
|
+
},
|
|
22
|
+
label: String
|
|
23
|
+
});
|
|
24
|
+
</script>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
4
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
5
|
+
$slots: S;
|
|
6
|
+
});
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
icon: StringConstructor;
|
|
9
|
+
iconColor: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
iconClass: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
label: StringConstructor;
|
|
18
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
icon: StringConstructor;
|
|
20
|
+
iconColor: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
iconClass: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
label: StringConstructor;
|
|
29
|
+
}>> & Readonly<{}>, {
|
|
30
|
+
iconColor: string;
|
|
31
|
+
iconClass: string;
|
|
32
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
33
|
+
type __VLS_Slots = {
|
|
34
|
+
default?: ((props: {}) => any) | undefined;
|
|
35
|
+
};
|
package/package.json
CHANGED