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 CHANGED
@@ -98,7 +98,7 @@ npm run dev
98
98
  npm run test
99
99
  npm run test:watch
100
100
 
101
- # Release new version
101
+ # Create and push a new version tag; GitHub Actions publishes it to npm
102
102
  npm run release
103
103
  ```
104
104
 
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=4.2.0"
6
6
  },
7
- "version": "1.6.2",
7
+ "version": "1.6.6",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -14,7 +14,7 @@ const module$1 = defineNuxtModule({
14
14
  version: ">=2.2.1"
15
15
  }
16
16
  },
17
- setup(options, nuxt) {
17
+ setup(_options, _nuxt) {
18
18
  addComponentsDir({
19
19
  path: resolver.resolve("./runtime/components"),
20
20
  prefix: "Ind",
@@ -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': expanded }"
17
+ :class="{ '-rotate-180': isExpanded }"
18
18
  />
19
19
  </div>
20
20
  </button>
21
21
 
22
22
  <Collapse
23
- :when="expanded"
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 expanded = ref(false);
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
- expanded.value = true;
50
+ isExpanded.value = true;
51
51
  }
52
52
  });
53
53
  const toggle = () => {
54
54
  if (!props.expandable) {
55
55
  return;
56
56
  }
57
- expanded.value = !expanded.value;
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': expanded }"
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="expanded">
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 expanded = ref(false);
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
- expanded.value = true;
47
+ isExpanded.value = true;
48
48
  }
49
49
  });
50
50
  const toggle = () => {
51
51
  if (!props.expandable) {
52
52
  return;
53
53
  }
54
- expanded.value = !expanded.value;
54
+ isExpanded.value = !isExpanded.value;
55
55
  };
56
56
  </script>
@@ -157,7 +157,10 @@
157
157
  </ul>
158
158
  </div>
159
159
 
160
- <IndStepsIndicator v-if="steps.length > 0" :steps="steps" />
160
+ <IndStepsIndicator
161
+ v-if="steps.length > 0"
162
+ :steps="steps"
163
+ />
161
164
 
162
165
  <LazyIndModal
163
166
  :show="modalProducts"
@@ -1,15 +1,29 @@
1
1
  <template>
2
- <div class="flex font-semibold desktop:text-xl">
3
- {{ period }}
4
- <IndPriceQuote :price="price" class="ml-auto" />
5
- </div>
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
- <div v-if="oneTimeCosts" class="flex font-semibold text-white">
8
- Eenmalige poliskosten
9
- <IndPriceQuote :price="oneTimeCosts" class="ml-auto" />
10
- </div>
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
- <div v-if="credits" class="text-sm text-white">{{ credits }}</div>
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
- <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>
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 -mt-6 pt-10 p-4 font-semibold text-white bg-purple-dark rounded-b-xl tablet:px-6">
13
- {{ totalText[domain] }}
14
- <PriceQuote :price="total" class="ml-auto" />
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
- const emit = defineEmits(["toggleModalCart"]);
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
- <div class="flex w-full">
3
- <div class="flex flex-col">
4
- <div class="font-semibold">{{ company}}</div>
5
- <div class="text-grey-dark">{{ product }}</div>
2
+ <div class="flex w-full">
3
+ <div class="flex flex-col">
4
+ <div class="font-semibold">
5
+ {{ company }}
6
6
  </div>
7
-
8
- <img class="w-27 h-12 ml-auto object-contain object-right" :src="logo" />
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.2",
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 && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
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",