@dative-gpi/foundation-shared-components 1.1.29 → 1.1.30-timerange2

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.
@@ -26,7 +26,7 @@ export default defineComponent({
26
26
  default: null
27
27
  },
28
28
  font: {
29
- type: String as PropType<"text-h1" | "text-h2" | "text-h3" | "text-body" | "text-button" | "text-overline">,
29
+ type: String as PropType<"text-h1" | "text-h2" | "text-h3" | "text-body" | "text-button" | "text-overline" | "text-formula">,
30
30
  required: false,
31
31
  default: "text-body"
32
32
  },
@@ -27,7 +27,7 @@ export default defineComponent({
27
27
  default: null
28
28
  },
29
29
  font: {
30
- type: String as PropType<"text-h1" | "text-h2" | "text-h3" | "text-h4" | "text-body" | "text-button" | "text-overline">,
30
+ type: String as PropType<"text-h1" | "text-h2" | "text-h3" | "text-h4" | "text-body" | "text-button" | "text-overline" | "text-formula">,
31
31
  required: false,
32
32
  default: "text-body"
33
33
  },
@@ -53,6 +53,9 @@ export const useBreakpoints = () => {
53
53
  "--fs-font-overline-font-size" : isMobileSized.value ? "10px" : "12px",
54
54
  "--fs-font-overline-line-height" : isMobileSized.value ? "16px" : "16px",
55
55
  "--fs-font-overline-letter-spacing": isMobileSized.value ? "0" : "0",
56
+ "--fs-font-formula-font-size" : isMobileSized.value ? "14px" : "16px",
57
+ "--fs-font-formula-line-height" : isMobileSized.value ? "20px" : "24px",
58
+ "--fs-font-formula-letter-spacing" : "0",
56
59
  ...bodyStyle.value
57
60
  }));
58
61
 
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "url": "https://github.com/Dative-GPI/foundation-shared-ui.git"
5
5
  },
6
6
  "sideEffects": false,
7
- "version": "1.1.29",
7
+ "version": "1.1.30-timerange2",
8
8
  "description": "",
9
9
  "publishConfig": {
10
10
  "access": "public"
@@ -13,12 +13,13 @@
13
13
  "author": "",
14
14
  "license": "ISC",
15
15
  "dependencies": {
16
- "@dative-gpi/foundation-shared-domain": "1.1.29",
17
- "@dative-gpi/foundation-shared-services": "1.1.29"
16
+ "@dative-gpi/foundation-shared-domain": "1.1.30-timerange2",
17
+ "@dative-gpi/foundation-shared-services": "1.1.30-timerange2"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "@dative-gpi/bones-ui": "^1.0.0",
21
21
  "@fontsource/montserrat": "^5.0.16",
22
+ "@fontsource/roboto-mono": "^5.0.0",
22
23
  "@lexical/clipboard": "0.12.5",
23
24
  "@lexical/history": "0.12.5",
24
25
  "@lexical/link": "0.12.5",
@@ -38,5 +39,5 @@
38
39
  "sass": "1.71.1",
39
40
  "sass-loader": "13.3.2"
40
41
  },
41
- "gitHead": "9818edd929a8928ce8176cd3eb6c480af6a0d084"
42
+ "gitHead": "edf64fc77d32073ba98757c8b00c33958c24e4c4"
42
43
  }
@@ -1,6 +1,7 @@
1
1
  @import "@fontsource/montserrat/500.css";
2
2
  @import "@fontsource/montserrat/600.css";
3
3
  @import "@fontsource/montserrat/700.css";
4
+ @import "@fontsource/roboto-mono/500.css";
4
5
 
5
6
  .text-h1 {
6
7
  font-family: 'Montserrat', sans-serif !important;
@@ -63,4 +64,15 @@
63
64
  font-size: var(--fs-font-overline-font-size) !important;
64
65
  line-height: var(--fs-font-overline-line-height) !important;
65
66
  letter-spacing: var(--fs-font-overline-letter-spacing) !important;
67
+ }
68
+
69
+ .text-formula {
70
+ font-family: 'Roboto Mono', monospace !important;
71
+ font-style: medium !important;
72
+ font-weight: 500 !important;
73
+ text-transform: none !important;
74
+
75
+ font-size: var(--fs-font-formula-font-size) !important;
76
+ line-height: var(--fs-font-formula-line-height) !important;
77
+ letter-spacing: var(--fs-font-formula-letter-spacing) !important;
66
78
  }
@@ -100,7 +100,7 @@ export interface DateTimeRange {
100
100
  endDay: Days;
101
101
  endHour: number;
102
102
  endMinute: number;
103
- variant: DateType;
103
+ variant?: DateType;
104
104
  }
105
105
 
106
106
  export const dayLabel = (day: Days | number): string => {