independer-design-system 1.6.2 → 1.6.6
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 +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/Expandable/Card.vue +5 -5
- package/dist/runtime/components/Expandable/Filter.vue +5 -5
- package/dist/runtime/components/Header.vue +4 -1
- package/dist/runtime/components/Shoppingcart/Footer.vue +23 -9
- package/dist/runtime/components/Shoppingcart/Index.vue +2 -2
- package/dist/runtime/components/Shoppingcart/Mobile.vue +25 -13
- package/dist/runtime/components/Shoppingcart/Summary.vue +13 -6
- package/package.json +2 -2
package/README.md
CHANGED
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
v-if="expandable"
|
|
15
15
|
name="eva:arrow-ios-downward-outline"
|
|
16
16
|
class="text-purple transition-all duration-300 group-hover:text-purple-dark"
|
|
17
|
-
:class="{ '-rotate-180':
|
|
17
|
+
:class="{ '-rotate-180': isExpanded }"
|
|
18
18
|
/>
|
|
19
19
|
</div>
|
|
20
20
|
</button>
|
|
21
21
|
|
|
22
22
|
<Collapse
|
|
23
|
-
:when="
|
|
23
|
+
:when="isExpanded"
|
|
24
24
|
class="v-collapse"
|
|
25
25
|
>
|
|
26
26
|
<div class="p-4 pt-0 tablet:p-6 tablet:pt-0">
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<script setup>
|
|
34
34
|
import { Collapse } from "vue-collapsed";
|
|
35
35
|
import { onMounted, ref } from "vue";
|
|
36
|
-
const
|
|
36
|
+
const isExpanded = ref(false);
|
|
37
37
|
const props = defineProps({
|
|
38
38
|
title: String,
|
|
39
39
|
expanded: {
|
|
@@ -47,13 +47,13 @@ const props = defineProps({
|
|
|
47
47
|
});
|
|
48
48
|
onMounted(() => {
|
|
49
49
|
if (!props.expandable || props.expanded) {
|
|
50
|
-
|
|
50
|
+
isExpanded.value = true;
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
const toggle = () => {
|
|
54
54
|
if (!props.expandable) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
isExpanded.value = !isExpanded.value;
|
|
58
58
|
};
|
|
59
59
|
</script>
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
v-if="expandable"
|
|
15
15
|
name="eva:arrow-ios-downward-outline"
|
|
16
16
|
class="ml-auto text-purple transition-all duration-300 group-hover:text-purple-dark"
|
|
17
|
-
:class="{ '-rotate-180':
|
|
17
|
+
:class="{ '-rotate-180': isExpanded }"
|
|
18
18
|
/>
|
|
19
19
|
</div>
|
|
20
20
|
</button>
|
|
21
21
|
|
|
22
22
|
<div class="px-4 pb-4 tablet:px-6 tablet:pb-6">
|
|
23
|
-
<Collapse :when="
|
|
23
|
+
<Collapse :when="isExpanded">
|
|
24
24
|
<slot />
|
|
25
25
|
</Collapse>
|
|
26
26
|
</div>
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<script setup>
|
|
31
31
|
import { Collapse } from "vue-collapsed";
|
|
32
32
|
import { onMounted, ref } from "vue";
|
|
33
|
-
const
|
|
33
|
+
const isExpanded = ref(false);
|
|
34
34
|
const props = defineProps({
|
|
35
35
|
title: String,
|
|
36
36
|
expanded: {
|
|
@@ -44,13 +44,13 @@ const props = defineProps({
|
|
|
44
44
|
});
|
|
45
45
|
onMounted(() => {
|
|
46
46
|
if (!props.expandable || props.expanded) {
|
|
47
|
-
|
|
47
|
+
isExpanded.value = true;
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
const toggle = () => {
|
|
51
51
|
if (!props.expandable) {
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
54
|
-
|
|
54
|
+
isExpanded.value = !isExpanded.value;
|
|
55
55
|
};
|
|
56
56
|
</script>
|
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
<div class="flex font-semibold desktop:text-xl">
|
|
3
|
+
{{ period }}
|
|
4
|
+
<IndPriceQuote
|
|
5
|
+
:price="price"
|
|
6
|
+
class="ml-auto"
|
|
7
|
+
/>
|
|
8
|
+
</div>
|
|
6
9
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
<div
|
|
11
|
+
v-if="oneTimeCosts"
|
|
12
|
+
class="flex font-semibold text-white"
|
|
13
|
+
>
|
|
14
|
+
Eenmalige poliskosten
|
|
15
|
+
<IndPriceQuote
|
|
16
|
+
:price="oneTimeCosts"
|
|
17
|
+
class="ml-auto"
|
|
18
|
+
/>
|
|
19
|
+
</div>
|
|
11
20
|
|
|
12
|
-
|
|
21
|
+
<div
|
|
22
|
+
v-if="credits"
|
|
23
|
+
class="text-sm text-white"
|
|
24
|
+
>
|
|
25
|
+
{{ credits }}
|
|
26
|
+
</div>
|
|
13
27
|
</template>
|
|
14
28
|
|
|
15
29
|
<script setup>
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
<aside class="flex-col w-full hidden desktop:flex">
|
|
3
3
|
<div class="flex flex-col gap-6 p-6 bg-white rounded-xl shadow-sm z-10">
|
|
4
4
|
<h3>{{ title }}</h3>
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
<div class="flex flex-col items-start pb-6 border-b border-grey-light">
|
|
7
7
|
<slot name="summary" />
|
|
8
8
|
</div>
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
<div>
|
|
11
11
|
<slot name="content" />
|
|
12
12
|
</div>
|
|
@@ -1,19 +1,31 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<div class="flex flex-col items-start pt-4">
|
|
7
|
-
<ShoppingcartSummary :company="company" :logo="logo" :product="product" />
|
|
8
|
-
<button class="text-purple hover:text-purple-dark" @click.prevent="$emit('toggleModalCart')">Uitleg van je premie</button>
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
2
|
+
<div class="mb-4 desktop:hidden">
|
|
3
|
+
<div class="relative flex flex-col p-4 bg-white rounded-xl shadow-sm z-10 tablet:p-6">
|
|
4
|
+
<h3>{{ title[domain] }}</h3>
|
|
11
5
|
|
|
12
|
-
<div class="flex -
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
<div class="flex flex-col items-start pt-4">
|
|
7
|
+
<ShoppingcartSummary
|
|
8
|
+
:company="company"
|
|
9
|
+
:logo="logo"
|
|
10
|
+
:product="product"
|
|
11
|
+
/>
|
|
12
|
+
<button
|
|
13
|
+
class="text-purple hover:text-purple-dark"
|
|
14
|
+
@click.prevent="$emit('toggleModalCart')"
|
|
15
|
+
>
|
|
16
|
+
Uitleg van je premie
|
|
17
|
+
</button>
|
|
15
18
|
</div>
|
|
16
19
|
</div>
|
|
20
|
+
|
|
21
|
+
<div class="flex -mt-6 pt-10 p-4 font-semibold text-white bg-purple-dark rounded-b-xl tablet:px-6">
|
|
22
|
+
{{ totalText[domain] }}
|
|
23
|
+
<PriceQuote
|
|
24
|
+
:price="total"
|
|
25
|
+
class="ml-auto"
|
|
26
|
+
/>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
17
29
|
</template>
|
|
18
30
|
|
|
19
31
|
<script setup>
|
|
@@ -39,7 +51,7 @@ defineProps({
|
|
|
39
51
|
default: "zorg"
|
|
40
52
|
}
|
|
41
53
|
});
|
|
42
|
-
|
|
54
|
+
defineEmits(["toggleModalCart"]);
|
|
43
55
|
const title = {
|
|
44
56
|
energy: "Je energicontract",
|
|
45
57
|
zorg: "Je zorgverzekering",
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
<div class="flex w-full">
|
|
3
|
+
<div class="flex flex-col">
|
|
4
|
+
<div class="font-semibold">
|
|
5
|
+
{{ company }}
|
|
6
6
|
</div>
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
<div class="text-grey-dark">
|
|
8
|
+
{{ product }}
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
<img
|
|
13
|
+
class="w-27 h-12 ml-auto object-contain object-right"
|
|
14
|
+
:src="logo"
|
|
15
|
+
>
|
|
9
16
|
</div>
|
|
10
17
|
</template>
|
|
11
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "independer-design-system",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.6",
|
|
4
4
|
"description": "Vue 3 component library for the Independer Design System (DS2)",
|
|
5
5
|
"repository": "arjanvanrees/independer-design-system",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dev": "npm run dev:prepare && nuxt dev playground",
|
|
32
32
|
"dev:build": "nuxt build playground",
|
|
33
33
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground",
|
|
34
|
-
"release": "npm run lint && npm run test &&
|
|
34
|
+
"release": "npm run lint && npm run test && changelogen --release && git push --follow-tags",
|
|
35
35
|
"lint": "eslint .",
|
|
36
36
|
"lint:fix": "eslint . --fix",
|
|
37
37
|
"test": "vitest run",
|