Skip to content

Commit b3eed0d

Browse files
chore: new release (#4235)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 5826d13 commit b3eed0d

File tree

12 files changed

+219
-16
lines changed

12 files changed

+219
-16
lines changed

.changeset/five-ways-exist.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/lovely-doors-shop.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

apps/www/app/content/changelogs/changelog.mdx

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Changelog"
3-
latestVersion: 1.7.2
3+
latestVersion: 1.7.3
44
---
55

66
<div style={{
@@ -11,6 +11,29 @@ latestVersion: 1.7.2
1111
}}
1212
>
1313

14+
## 1.7.3
15+
16+
<Divider/>
17+
18+
### @digdir/designsystemet-react
19+
20+
#### Patch Changes
21+
22+
- Update npm non-major dependencies ([#4233](https://github.com/digdir/designsystemet/pull/4233))
23+
24+
- **Tooltip**: Check if `trim()` is available ([#4239](https://github.com/digdir/designsystemet/pull/4239))
25+
- Fixes if `Tooltip` has `<svg>` as a child
26+
27+
</div>
28+
29+
<div style={{
30+
border: "1px solid var(--ds-color-neutral-border-subtle)",
31+
borderRadius: "var(--ds-border-radius-md)",
32+
padding: "var(--ds-size-5)",
33+
marginBottom: "var(--ds-size-4)"
34+
}}
35+
>
36+
1437
## 1.7.2
1538

1639
<Divider/>
Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"type": "object",
4+
"properties": {
5+
"$schema": {
6+
"type": "string"
7+
},
8+
"outDir": {
9+
"description": "Path to the output directory for the created design tokens",
10+
"type": "string"
11+
},
12+
"themes": {
13+
"description": "An object with one or more themes. Each property defines a theme, and the property name is used as the theme name.",
14+
"type": "object",
15+
"propertyNames": {
16+
"type": "string"
17+
},
18+
"additionalProperties": {
19+
"description": "An object defining a theme. The property name holding the object becomes the theme name.",
20+
"type": "object",
21+
"properties": {
22+
"colors": {
23+
"description": "Defines the colors for this theme",
24+
"type": "object",
25+
"properties": {
26+
"main": {
27+
"description": "An object with one or more color definitions. The property name is used as the color name.",
28+
"type": "object",
29+
"propertyNames": {
30+
"type": "string",
31+
"pattern": "^(?!(?:neutral|success|warning|danger|info)$)"
32+
},
33+
"additionalProperties": {
34+
"description": "A hex color, which is used for creating a color scale. Invalid color names: neutral, success, warning, danger, info"
35+
}
36+
},
37+
"support": {
38+
"default": {},
39+
"description": "An object with one or more color definitions. The property name is used as the color name.",
40+
"type": "object",
41+
"propertyNames": {
42+
"type": "string",
43+
"pattern": "^(?!(?:neutral|success|warning|danger|info)$)"
44+
},
45+
"additionalProperties": {
46+
"description": "A hex color, which is used for creating a color scale. Invalid color names: neutral, success, warning, danger, info"
47+
}
48+
},
49+
"neutral": {
50+
"description": "A hex color, which is used for creating a color scale."
51+
}
52+
},
53+
"required": [
54+
"main",
55+
"support",
56+
"neutral"
57+
],
58+
"additionalProperties": false
59+
},
60+
"typography": {
61+
"description": "Defines the typography for a given theme",
62+
"type": "object",
63+
"properties": {
64+
"fontFamily": {
65+
"description": "Sets the font-family for this theme",
66+
"type": "string"
67+
}
68+
},
69+
"required": [
70+
"fontFamily"
71+
],
72+
"additionalProperties": false
73+
},
74+
"borderRadius": {
75+
"description": "Defines the border-radius for this theme",
76+
"type": "number"
77+
},
78+
"overrides": {
79+
"description": "Overrides for generated design tokens. Currently only supports colors defined in your theme",
80+
"type": "object",
81+
"properties": {
82+
"colors": {
83+
"description": "An object with color names as keys",
84+
"type": "object",
85+
"propertyNames": {
86+
"type": "string"
87+
},
88+
"additionalProperties": {
89+
"description": "The name of the color to add overrides for, e.g. \"accent\"",
90+
"type": "object",
91+
"propertyNames": {
92+
"type": "string",
93+
"enum": [
94+
"background-default",
95+
"background-tinted",
96+
"surface-default",
97+
"surface-tinted",
98+
"surface-hover",
99+
"surface-active",
100+
"border-subtle",
101+
"border-default",
102+
"border-strong",
103+
"text-subtle",
104+
"text-default",
105+
"base-default",
106+
"base-hover",
107+
"base-active",
108+
"base-contrast-subtle",
109+
"base-contrast-default"
110+
]
111+
},
112+
"additionalProperties": {
113+
"description": "Override values for semantic color tokens like \"background-subtle\", \"border-default\", etc.",
114+
"type": "object",
115+
"properties": {
116+
"light": {
117+
"description": "A hex color that overrides light mode"
118+
},
119+
"dark": {
120+
"description": "A hex color that overrides dark mode"
121+
}
122+
},
123+
"additionalProperties": false
124+
}
125+
}
126+
},
127+
"severity": {
128+
"description": "An object with severity color names as keys",
129+
"type": "object",
130+
"propertyNames": {
131+
"type": "string",
132+
"enum": [
133+
"info",
134+
"success",
135+
"warning",
136+
"danger"
137+
]
138+
},
139+
"additionalProperties": {
140+
"description": "A hex color, which is used for creating a color scale"
141+
}
142+
},
143+
"linkVisited": {
144+
"description": "Overrides for the \"link-visited\" color",
145+
"type": "object",
146+
"properties": {
147+
"light": {
148+
"description": "A hex color that overrides light mode"
149+
},
150+
"dark": {
151+
"description": "A hex color that overrides dark mode"
152+
}
153+
},
154+
"additionalProperties": false
155+
}
156+
},
157+
"additionalProperties": false
158+
}
159+
},
160+
"required": [
161+
"colors"
162+
],
163+
"additionalProperties": false
164+
}
165+
},
166+
"clean": {
167+
"description": "Delete the output directory before building or creating tokens",
168+
"type": "boolean"
169+
}
170+
},
171+
"required": [
172+
"outDir",
173+
"themes"
174+
],
175+
"additionalProperties": false
176+
}

packages/cli/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Change Log
22

3+
## 1.7.3
4+
35
## 1.7.2
46

57
### Patch Changes

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@digdir/designsystemet",
3-
"version": "1.7.2",
3+
"version": "1.7.3",
44
"description": "CLI for Designsystemet",
55
"author": "Designsystemet team",
66
"engines": {

packages/css/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Change Log
22

3+
## 1.7.3
4+
35
## 1.7.2
46

57
### Patch Changes

packages/css/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@digdir/designsystemet-css",
3-
"version": "1.7.2",
3+
"version": "1.7.3",
44
"description": "CSS for Designsystemet",
55
"author": "Designsystemet team",
66
"repository": {

packages/react/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Change Log
22

3+
## 1.7.3
4+
5+
### Patch Changes
6+
7+
- Update npm non-major dependencies ([#4233](https://github.com/digdir/designsystemet/pull/4233))
8+
9+
- **Tooltip**: Check if `trim()` is available ([#4239](https://github.com/digdir/designsystemet/pull/4239))
10+
- Fixes if `Tooltip` has `<svg>` as a child
11+
312
## 1.7.2
413

514
### Patch Changes

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@digdir/designsystemet-react",
33
"type": "module",
4-
"version": "1.7.2",
4+
"version": "1.7.3",
55
"description": "React components for Designsystemet",
66
"author": "Designsystemet team",
77
"repository": {

0 commit comments

Comments
 (0)