@dative-gpi/foundation-shared-components 1.0.83 → 1.0.84
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/components/FSLink.vue +8 -4
- package/package.json +4 -4
package/components/FSLink.vue
CHANGED
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
import { computed, defineComponent, type PropType, type StyleValue } from "vue";
|
|
29
29
|
import { type RouteLocation } from "vue-router";
|
|
30
30
|
|
|
31
|
+
import { useBreakpoints, useColors, useSlots } from "@dative-gpi/foundation-shared-components/composables";
|
|
31
32
|
import { type ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
32
|
-
import { useColors, useSlots } from "@dative-gpi/foundation-shared-components/composables";
|
|
33
33
|
|
|
34
34
|
export default defineComponent({
|
|
35
35
|
name: "FSLink",
|
|
@@ -76,6 +76,7 @@ export default defineComponent({
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
setup(props) {
|
|
79
|
+
const { fontStyles } = useBreakpoints();
|
|
79
80
|
const { getColors } = useColors();
|
|
80
81
|
const { slots } = useSlots();
|
|
81
82
|
|
|
@@ -85,15 +86,18 @@ export default defineComponent({
|
|
|
85
86
|
switch (props.variant) {
|
|
86
87
|
case "base": return {
|
|
87
88
|
"--fs-span-line-clamp": props.lineClamp.toString(),
|
|
88
|
-
"--fs-link-color" : colors.value.base
|
|
89
|
+
"--fs-link-color" : colors.value.base,
|
|
90
|
+
...fontStyles.value
|
|
89
91
|
};
|
|
90
92
|
case "light": return {
|
|
91
93
|
"--fs-span-line-clamp": props.lineClamp.toString(),
|
|
92
|
-
"--fs-link-color" : colors.value.light
|
|
94
|
+
"--fs-link-color" : colors.value.light,
|
|
95
|
+
...fontStyles.value
|
|
93
96
|
};
|
|
94
97
|
case "dark": return {
|
|
95
98
|
"--fs-span-line-clamp": props.lineClamp.toString(),
|
|
96
|
-
"--fs-link-color" : colors.value.dark
|
|
99
|
+
"--fs-link-color" : colors.value.dark,
|
|
100
|
+
...fontStyles.value
|
|
97
101
|
};
|
|
98
102
|
}
|
|
99
103
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-shared-components",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.84",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@dative-gpi/foundation-shared-domain": "1.0.
|
|
14
|
-
"@dative-gpi/foundation-shared-services": "1.0.
|
|
13
|
+
"@dative-gpi/foundation-shared-domain": "1.0.84",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "1.0.84"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@dative-gpi/bones-ui": "^1.0.0",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"sass": "1.71.1",
|
|
36
36
|
"sass-loader": "13.3.2"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "a7eaef654fe35badd76832b3d07ea64bb6979d97"
|
|
39
39
|
}
|