tide-design-system 2.5.4 → 2.5.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/index.ts CHANGED
@@ -7,6 +7,7 @@ import TideBreadCrumbs from '@/components/TideBreadCrumbs.vue';
7
7
  import TideButton from '@/components/TideButton.vue';
8
8
  import TideButtonIcon from '@/components/TideButtonIcon.vue';
9
9
  import TideButtonPagination from '@/components/TideButtonPagination.vue';
10
+ import TideButtonSave from '@/components/TideButtonSave.vue';
10
11
  import TideButtonSegmented from '@/components/TideButtonSegmented.vue';
11
12
  import TideCard from '@/components/TideCard.vue';
12
13
  import TideCarousel from '@/components/TideCarousel.vue';
@@ -156,6 +157,7 @@ export {
156
157
  TideButton,
157
158
  TideButtonIcon,
158
159
  TideButtonPagination,
160
+ TideButtonSave,
159
161
  TideButtonSegmented,
160
162
  TideCard,
161
163
  TideCarousel,
package/package.json CHANGED
@@ -63,7 +63,7 @@
63
63
  "main": "dist/tide-design-system.cjs",
64
64
  "module": "dist/tide-design-system.esm.js",
65
65
  "types": "dist/tide-design-system.esm.d.ts",
66
- "version": "2.5.4",
66
+ "version": "2.5.6",
67
67
  "dependencies": {
68
68
  "@floating-ui/vue": "^1.1.6"
69
69
  }
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" setup>
2
- import { markRaw, ref, watch } from 'vue';
2
+ import { defineAsyncComponent, markRaw, ref, watch } from 'vue';
3
3
 
4
4
  import { REALM } from '@/types/Realm';
5
5
  import { SIZE } from '@/types/Size';
@@ -29,13 +29,15 @@
29
29
  const [prefix] = id.split('-');
30
30
  const realmFolder = REALM[prefix?.toUpperCase() as keyof typeof REALM];
31
31
 
32
- const loader = realmFolder
33
- ? () => import(`../assets/svg/icons/realm/${realmFolder}/Icon${name}.svg?component`)
34
- : () => import(`../assets/svg/icons/Icon${name}.svg?component`);
32
+ const component = defineAsyncComponent(() => {
33
+ if (realmFolder) {
34
+ return import(`../assets/svg/icons/realm/${realmFolder}/Icon${name}.svg?component`);
35
+ }
35
36
 
36
- const mod = await loader();
37
+ return import(`../assets/svg/icons/Icon${name}.svg?component`);
38
+ });
37
39
 
38
- innerSVG.value = markRaw(mod.default);
40
+ innerSVG.value = markRaw(component);
39
41
  },
40
42
  { immediate: true }
41
43
  );