@gnist/design-system 2.0.34 → 3.0.0
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 +14 -0
- package/README.md +2 -74
- package/dist/fonts/skoda/bold.css.cjs +2 -2
- package/dist/fonts/skoda/bold.css.js +2 -2
- package/dist/fonts/skoda/medium.css.cjs +2 -2
- package/dist/fonts/skoda/medium.css.js +2 -2
- package/dist/fonts/skoda/regular.css.cjs +2 -2
- package/dist/fonts/skoda/regular.css.js +2 -2
- package/dist/fonts/skoda/semibold.css.cjs +2 -2
- package/dist/fonts/skoda/semibold.css.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.0.0](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@2.0.35...@gnist/design-system@3.0.0) (2025-04-01)
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* The theme `SkodaDark` is no longer available. This theme has been renamed to simply `Skoda`.
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* Change name of Skoda theme from `SkodaDark` to `Skoda` ([84c2b8b](https://github.com/mollerdigital/design-system-design-system/commit/84c2b8be4c2b28abbb299d046f186f59a6e07064))
|
|
15
|
+
|
|
16
|
+
## <small>2.0.35 (2025-03-28)</small>
|
|
17
|
+
|
|
18
|
+
* chore: update readme, development guide and migration guides ([25e7870](https://github.com/mollerdigital/design-system-design-system/commit/25e7870))
|
|
19
|
+
|
|
6
20
|
## <small>2.0.34 (2025-03-27)</small>
|
|
7
21
|
|
|
8
22
|
* fix: remove margin and padding that pushed the modal off-center ([a2d5ef4](https://github.com/mollerdigital/design-system-design-system/commit/a2d5ef4))
|
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ import { bilholdLight } from "@gnist/themes/themes/bilholdLight.css.js";
|
|
|
55
55
|
import { gumpen } from "@gnist/themes/themes/gumpen.css.js";
|
|
56
56
|
import { brandless } from "@gnist/themes/themes/brandless.css.js";
|
|
57
57
|
import { mollerBil } from "@gnist/themes/themes/mollerBil.css.js";
|
|
58
|
-
import {
|
|
58
|
+
import { skoda } from "@gnist/themes/themes/skoda.css.js";
|
|
59
59
|
import { vw } from "@gnist/themes/themes/vw.css.js";
|
|
60
60
|
import { dahles } from "@gnist/themes/themes/dahles.css.js";
|
|
61
61
|
import { autoria } from "@gnist/themes/themes/autoria.css.js";
|
|
@@ -145,76 +145,4 @@ Finally, import components from `@gnist/design-system`.
|
|
|
145
145
|
|
|
146
146
|
## Migrating from [`@moller/design-system`](https://www.npmjs.com/package/@moller/design-system)
|
|
147
147
|
|
|
148
|
-
If you are migrating from the old component library
|
|
149
|
-
|
|
150
|
-
### Typographies
|
|
151
|
-
|
|
152
|
-
The typographies have changed with new names and tokens. Replace the old typographies from `@moller/design-system` with the new ones from `@gnist/design-system`:
|
|
153
|
-
|
|
154
|
-
#### Heading styles
|
|
155
|
-
- The `Display` style is still present, but is a bit smaller on all screen sizes.
|
|
156
|
-
- `Headline` has been replaced by `Heading1Text` and is the same size as before.
|
|
157
|
-
- `Subtitle` has been replaced by `Heading2Text` and is larger on all screen sizes.
|
|
158
|
-
- `Overline` has been replaced by `Heading3Text` and is larger on all screen sizes, with the smallest size going from `12px` to `18px`. The typography is no longer uppercase text. If you want this font style with uppercase, you must add it yourself.
|
|
159
|
-
|
|
160
|
-
#### Body styles
|
|
161
|
-
- The `LeadText` style is still present, but is smaller on all screen sizes, making it truly smaller than `Heading3Text`.
|
|
162
|
-
- The `BodyText` style is still present and is the same size as before.
|
|
163
|
-
- The `LinkText` style is still present and is the same size as before.
|
|
164
|
-
- `DetailText` is a new style and shall replace every usage of `DescriptionText` and `LabelText`. The smallest size for `DetailText` is `14px`, whereas the smallest in the previous version was `10px` for `LabelText`. This enlargement is to ensure optimal readability, and it may affect your layout.
|
|
165
|
-
- `ActionText` is no longer present and shall be replaced with `BodyText`. The only difference between these two is that `ActionText` had a bold font weight, so it you want the same layout you need to add this yourself.
|
|
166
|
-
- `NoticeText` is no longer present and shall be replaced with `BodyText`. The only difference between these two is that `NoticeText` had a bold font weight and uppercase text, so it you want the same layout you need to add this yourself.
|
|
167
|
-
|
|
168
|
-
### CSS variables
|
|
169
|
-
It is still possible to use css variables like before, e.g. `var(--moller-color-primary)`. However, it is not type safe and you will not get an error if you use a css variable that no longer exists. For instance, since the typographies have been changed, there is no longer a css variable named `--moller-type-large-subtitle-font-size`. Instead, you must use `--moller-type-large-heading2-font-size`. Moreover, if tokens are changed or deprecated in the future, you will not get an error for using an outdated css variable.
|
|
170
|
-
To solve this and make the type checking secure, we recommend that you use [`tokens` from the `@gnist/themes` package](https://www.npmjs.com/package/@gnist/themes#tokens) instead.
|
|
171
|
-
|
|
172
|
-
Furthermore, please note that all the CSS variables prefixed with the following no longer exist:
|
|
173
|
-
- `--moller-type-{small/medium/large}-headline-{...}`
|
|
174
|
-
- replace with `--moller-type-{small/medium/large}-heading1-{...}`
|
|
175
|
-
- `--moller-type-{small/medium/large}-subtitle-{...}`
|
|
176
|
-
- replace with `--moller-type-{small/medium/large}-heading2-{...}`
|
|
177
|
-
- `--moller-type-{small/medium/large}-overline-{...}`
|
|
178
|
-
- replace with `--moller-type-{small/medium/large}-heading3-{...}`
|
|
179
|
-
- `--moller-type-{small/medium/large}-description-{...}`
|
|
180
|
-
- replace with `--moller-type-{small/medium/large}-detail-{...}`
|
|
181
|
-
- `--moller-type-{compact/default}-notice-{...}`
|
|
182
|
-
- replace with `--moller-type-{small/medium/large}-detail-{...}`
|
|
183
|
-
- `--moller-type-{compact/default}-label-{...}`
|
|
184
|
-
- replace with `--moller-type-{small/medium/large}-detail-{...}`
|
|
185
|
-
- `--moller-type-{compact/default}-action-{...}`
|
|
186
|
-
- replace with `--moller-type-{small/medium/large}-body-{...}`
|
|
187
|
-
|
|
188
|
-
The `...` above is the text token type, e.g. `--moller-type-small-heading1-font-family` or `--moller-type-small-heading1-line-height`.
|
|
189
|
-
|
|
190
|
-
### Deleted components
|
|
191
|
-
The components `CheckboxCardGroup` and `RadioCardGroup` has been removed completely. The consequence is that wherever these components are used, you must rewrite to use a mapping of multiple `CheckboxCard` and `RadioCard`, or make your own version of the group components. They are removed due to lack of use and high maintenance cost.
|
|
192
|
-
|
|
193
|
-
The `AssistChip` is removed. We recommend that you use `Lozenge` for the same use case instead.
|
|
194
|
-
|
|
195
|
-
### Reference components for inline CSS with `styled-components`
|
|
196
|
-
You can no longer reference components with inline CSS selector in styled-components style. For instance, before you could style `Icon` like this:
|
|
197
|
-
```
|
|
198
|
-
${Icon}:hover { ..styling.. }
|
|
199
|
-
```
|
|
200
|
-
Now, you must add `.selector` to achieve the same goal.
|
|
201
|
-
```
|
|
202
|
-
${Icon.selector}:hover { ..styling.. }
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
### Chips
|
|
206
|
-
You can no longer have children of the different Chip components, `ActionChip`, `FilterChip` and `TagChip`. To set the label inside a Chip, use the `label` prop instead.
|
|
207
|
-
|
|
208
|
-
The outline variant has been removed from the Chip components.
|
|
209
|
-
|
|
210
|
-
### Buttons
|
|
211
|
-
`GhostButton`, `TextButton` and `IconButton` no longer accept the `inverted` prop.
|
|
212
|
-
The prop has been deprecated.
|
|
213
|
-
|
|
214
|
-
### Themes
|
|
215
|
-
Themes have been moved to @moller/gnist-themes, and require the use of a vanilla-extract plugin. This ensures better support for server-side rendering. Setup of the library in applications has thus changed significantly, but this should only require changes in some initialization and config files in your app. See [Using the library](#Using-the-library) in README for details.
|
|
216
|
-
|
|
217
|
-
### Requirements for module resolution
|
|
218
|
-
The compiled library files in the published package have been moved from root to the `dist` subdirectory.
|
|
219
|
-
|
|
220
|
-
This requires consumers to respect the `"exports"` field in package.json. Bundlers typically do this already, but TypeScript requires `"moduleResolution": "bundler"` (or `"node16"` or `"nodenext"`, but `"bundler"` is recommended).
|
|
148
|
+
If you are migrating from the old component library `@moller/design.system`, please see the [migration guide](packages/design-system/MIGRATION.md).
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
|
-
const
|
|
3
|
+
const skodaTokens_js = require("@gnist/themes/themes/skodaTokens.js");
|
|
4
4
|
const css = require("@vanilla-extract/css");
|
|
5
5
|
const SKODANextW07Bold = require("./SKODANextW07-Bold.woff2.cjs");
|
|
6
|
-
const { typeface } =
|
|
6
|
+
const { typeface } = skodaTokens_js.skodaTokens;
|
|
7
7
|
css.globalFontFace(typeface.brand, {
|
|
8
8
|
src: `url(${SKODANextW07Bold.default})`,
|
|
9
9
|
fontWeight: typeface.weight.bold
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { skodaTokens } from "@gnist/themes/themes/skodaTokens.js";
|
|
3
3
|
import { globalFontFace } from "@vanilla-extract/css";
|
|
4
4
|
import SkodaNextBold from "./SKODANextW07-Bold.woff2.js";
|
|
5
|
-
const { typeface } =
|
|
5
|
+
const { typeface } = skodaTokens;
|
|
6
6
|
globalFontFace(typeface.brand, {
|
|
7
7
|
src: `url(${SkodaNextBold})`,
|
|
8
8
|
fontWeight: typeface.weight.bold
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
|
-
const
|
|
3
|
+
const skodaTokens_js = require("@gnist/themes/themes/skodaTokens.js");
|
|
4
4
|
const css = require("@vanilla-extract/css");
|
|
5
5
|
const SKODANextW07Bold = require("./SKODANextW07-Bold.woff2.cjs");
|
|
6
|
-
const { typeface } =
|
|
6
|
+
const { typeface } = skodaTokens_js.skodaTokens;
|
|
7
7
|
css.globalFontFace(typeface.brand, {
|
|
8
8
|
src: `url(${SKODANextW07Bold.default})`,
|
|
9
9
|
fontWeight: typeface.weight.medium
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { skodaTokens } from "@gnist/themes/themes/skodaTokens.js";
|
|
3
3
|
import { globalFontFace } from "@vanilla-extract/css";
|
|
4
4
|
import SkodaNextBold from "./SKODANextW07-Bold.woff2.js";
|
|
5
|
-
const { typeface } =
|
|
5
|
+
const { typeface } = skodaTokens;
|
|
6
6
|
globalFontFace(typeface.brand, {
|
|
7
7
|
src: `url(${SkodaNextBold})`,
|
|
8
8
|
fontWeight: typeface.weight.medium
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
|
-
const
|
|
3
|
+
const skodaTokens_js = require("@gnist/themes/themes/skodaTokens.js");
|
|
4
4
|
const css = require("@vanilla-extract/css");
|
|
5
5
|
const SKODANextW07Thin = require("./SKODANextW07-Thin.woff2.cjs");
|
|
6
|
-
const { typeface } =
|
|
6
|
+
const { typeface } = skodaTokens_js.skodaTokens;
|
|
7
7
|
css.globalFontFace(typeface.brand, {
|
|
8
8
|
src: `url(${SKODANextW07Thin.default})`,
|
|
9
9
|
fontWeight: typeface.weight.regular
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { skodaTokens } from "@gnist/themes/themes/skodaTokens.js";
|
|
3
3
|
import { globalFontFace } from "@vanilla-extract/css";
|
|
4
4
|
import SkodaNextThin from "./SKODANextW07-Thin.woff2.js";
|
|
5
|
-
const { typeface } =
|
|
5
|
+
const { typeface } = skodaTokens;
|
|
6
6
|
globalFontFace(typeface.brand, {
|
|
7
7
|
src: `url(${SkodaNextThin})`,
|
|
8
8
|
fontWeight: typeface.weight.regular
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
|
-
const
|
|
3
|
+
const skodaTokens_js = require("@gnist/themes/themes/skodaTokens.js");
|
|
4
4
|
const css = require("@vanilla-extract/css");
|
|
5
5
|
const SKODANextW07Bold = require("./SKODANextW07-Bold.woff2.cjs");
|
|
6
|
-
const { typeface } =
|
|
6
|
+
const { typeface } = skodaTokens_js.skodaTokens;
|
|
7
7
|
css.globalFontFace(typeface.brand, {
|
|
8
8
|
src: `url(${SKODANextW07Bold.default})`,
|
|
9
9
|
fontWeight: typeface.weight.semibold
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { skodaTokens } from "@gnist/themes/themes/skodaTokens.js";
|
|
3
3
|
import { globalFontFace } from "@vanilla-extract/css";
|
|
4
4
|
import SkodaNextBold from "./SKODANextW07-Bold.woff2.js";
|
|
5
|
-
const { typeface } =
|
|
5
|
+
const { typeface } = skodaTokens;
|
|
6
6
|
globalFontFace(typeface.brand, {
|
|
7
7
|
src: `url(${SkodaNextBold})`,
|
|
8
8
|
fontWeight: typeface.weight.semibold
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gnist/design-system",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@formkit/auto-animate": "^0.8.2",
|
|
51
51
|
"@gnist/component-utils": "3.0.6",
|
|
52
|
-
"@gnist/themes": "^
|
|
52
|
+
"@gnist/themes": "^3.0.0",
|
|
53
53
|
"@mui/base": "^5.0.0-beta.69",
|
|
54
54
|
"@vanilla-extract/css": "^1.17.1",
|
|
55
55
|
"@vanilla-extract/css-utils": "^0.1.4",
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"optional": true
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "c981aeab875d678264b540e2130229881e1df41f"
|
|
108
108
|
}
|