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/dist/style.css +1 -1
- package/dist/tide-design-system.cjs +2 -2
- package/dist/tide-design-system.esm.d.ts +50 -40
- package/dist/tide-design-system.esm.js +512 -469
- package/index.ts +2 -0
- package/package.json +1 -1
- package/src/components/TideIcon.vue +8 -6
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
|
@@ -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
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
const component = defineAsyncComponent(() => {
|
|
33
|
+
if (realmFolder) {
|
|
34
|
+
return import(`../assets/svg/icons/realm/${realmFolder}/Icon${name}.svg?component`);
|
|
35
|
+
}
|
|
35
36
|
|
|
36
|
-
|
|
37
|
+
return import(`../assets/svg/icons/Icon${name}.svg?component`);
|
|
38
|
+
});
|
|
37
39
|
|
|
38
|
-
innerSVG.value = markRaw(
|
|
40
|
+
innerSVG.value = markRaw(component);
|
|
39
41
|
},
|
|
40
42
|
{ immediate: true }
|
|
41
43
|
);
|