@dative-gpi/foundation-shared-components 1.0.83 → 1.0.85

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.
@@ -1,5 +1,6 @@
1
1
  <template>
2
- <FSClickable
2
+ <component
3
+ :is="$attrs.onClick ? FSClickable : FSCard"
3
4
  borderStyle="dashed"
4
5
  padding="24px"
5
6
  :height="$props.height"
@@ -26,7 +27,7 @@
26
27
  {{ $props.label }}
27
28
  </FSText>
28
29
  </FSRow>
29
- </FSClickable>
30
+ </component>
30
31
  </template>
31
32
 
32
33
  <script lang="ts">
@@ -35,6 +36,7 @@ import { defineComponent, type PropType } from "vue";
35
36
  import { ColorEnum } from "../models";
36
37
 
37
38
  import FSClickable from "./FSClickable.vue";
39
+ import FSCard from "./FSCard.vue";
38
40
  import FSIcon from "./FSIcon.vue";
39
41
  import FSText from "./FSText.vue";
40
42
  import FSRow from "./FSRow.vue";
@@ -43,6 +45,7 @@ export default defineComponent({
43
45
  name: "FSCardPlaceholder",
44
46
  components: {
45
47
  FSClickable,
48
+ FSCard,
46
49
  FSIcon,
47
50
  FSText,
48
51
  FSRow
@@ -69,10 +72,11 @@ export default defineComponent({
69
72
  default: null
70
73
  }
71
74
  },
72
- emits: ["click"],
73
75
  setup() {
74
76
  return {
75
- ColorEnum
77
+ ColorEnum,
78
+ FSClickable,
79
+ FSCard,
76
80
  };
77
81
  }
78
82
  });
@@ -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.83",
4
+ "version": "1.0.85",
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.83",
14
- "@dative-gpi/foundation-shared-services": "1.0.83"
13
+ "@dative-gpi/foundation-shared-domain": "1.0.85",
14
+ "@dative-gpi/foundation-shared-services": "1.0.85"
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": "38c4f9debe8e6bba7fe7c2f46197d04b28ce1ade"
38
+ "gitHead": "178fc269ca3ac29c4a0a6e3b1c163b52d1865dbf"
39
39
  }