braid-design-system 31.24.0 → 31.24.1
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/CHANGELOG.md +8 -0
- package/lib/themes/tokenType.ts +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# braid-design-system
|
|
2
2
|
|
|
3
|
+
## 31.24.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Whitelist only the required FontMetrics for theme tokens ([#1212](https://github.com/seek-oss/braid-design-system/pull/1212))
|
|
8
|
+
|
|
9
|
+
The latest version of `FontMetrics` type in Capsize adds more properties, and we only populate the properties we require on the theme. Whitelisting the required properties to keep the themes explicit.
|
|
10
|
+
|
|
3
11
|
## 31.24.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
package/lib/themes/tokenType.ts
CHANGED
|
@@ -17,7 +17,10 @@ export interface BraidTokens {
|
|
|
17
17
|
typography: {
|
|
18
18
|
fontFamily: string;
|
|
19
19
|
webFont: string | null;
|
|
20
|
-
fontMetrics:
|
|
20
|
+
fontMetrics: Pick<
|
|
21
|
+
FontMetrics,
|
|
22
|
+
'capHeight' | 'ascent' | 'descent' | 'lineGap' | 'unitsPerEm'
|
|
23
|
+
>;
|
|
21
24
|
fontWeight: Record<FontWeight, 400 | 500 | 600 | 700 | 800>;
|
|
22
25
|
heading: {
|
|
23
26
|
weight: {
|