@gnist/design-system 0.1.11 → 0.1.13

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 CHANGED
@@ -3,6 +3,18 @@
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
+ ## [0.1.13](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@0.1.12...@gnist/design-system@0.1.13) (2025-01-10)
7
+
8
+ ### Bug Fixes
9
+
10
+ * make sure all types are included on component by default ([53c2d0f](https://github.com/mollerdigital/design-system-design-system/commit/53c2d0f03e86c32149fe591654aec2ebf47f517a))
11
+
12
+ ## [0.1.12](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@0.1.11...@gnist/design-system@0.1.12) (2025-01-10)
13
+
14
+ ### Bug Fixes
15
+
16
+ * adjust text input label size ([8da550b](https://github.com/mollerdigital/design-system-design-system/commit/8da550bf3c831bb7a14cbfcb724ab23b02bdf5ee))
17
+
6
18
  ## [0.1.11](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@0.1.10...@gnist/design-system@0.1.11) (2025-01-10)
7
19
 
8
20
  ### Bug Fixes
package/README.md CHANGED
@@ -166,9 +166,27 @@ The typographies have changed with new names and tokens. Replace the old typogra
166
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
167
 
168
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-heading2text-font-size`. Moreover, if tokens are changed or deprecated in the future, you will not get an error for using an outdated css variable.
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
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
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
+
172
190
  ### Deleted components
173
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.
174
192
 
@@ -10,8 +10,7 @@ const inputFieldConstants_css = require("./inputFieldConstants.css.cjs");
10
10
  const elevatedLabel = (color) => ({
11
11
  color: color || tokens_css_js.tokens.color["text-variant"],
12
12
  lineHeight: "1em",
13
- fontSize: tokens_css_js.tokens.typeface.size.base,
14
- // TODO: check font size. replaced xs with 0.75rem
13
+ fontSize: tokens_css_js.tokens.typeface.size.s,
15
14
  paddingLeft: tokens_css_js.tokens.spacing.base,
16
15
  paddingRight: tokens_css_js.tokens.spacing.base,
17
16
  left: cssUtils.calc(tokens_css_js.tokens.spacing.base).multiply(-1).subtract(inputFieldConstants_css.preInputWidth).toString()
@@ -25,7 +24,7 @@ const elevatedLabelBackground = (backgroundColor) => ({
25
24
  transitionDuration: inputFieldConstants_css.transitionTime,
26
25
  left: 0,
27
26
  right: 0,
28
- top: cssUtils.calc(tokens_css_js.tokens.spacing.xs).divide(2).toString(),
27
+ top: "5px",
29
28
  height: tokens_css_js.tokens.stroke.medium
30
29
  });
31
30
  const labelStyle = recipes.recipe({
@@ -48,7 +48,7 @@ export declare const labelStyle: import("@vanilla-extract/recipes").RuntimeFn<{
48
48
  readonly transitionDuration: "250ms";
49
49
  readonly left: 0;
50
50
  readonly right: 0;
51
- readonly top: string;
51
+ readonly top: "5px";
52
52
  readonly height: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
53
53
  };
54
54
  };
@@ -8,8 +8,7 @@ import { transitionTime, preInputWidth } from "./inputFieldConstants.css.js";
8
8
  const elevatedLabel = (color) => ({
9
9
  color: color || tokens.color["text-variant"],
10
10
  lineHeight: "1em",
11
- fontSize: tokens.typeface.size.base,
12
- // TODO: check font size. replaced xs with 0.75rem
11
+ fontSize: tokens.typeface.size.s,
13
12
  paddingLeft: tokens.spacing.base,
14
13
  paddingRight: tokens.spacing.base,
15
14
  left: calc(tokens.spacing.base).multiply(-1).subtract(preInputWidth).toString()
@@ -23,7 +22,7 @@ const elevatedLabelBackground = (backgroundColor) => ({
23
22
  transitionDuration: transitionTime,
24
23
  left: 0,
25
24
  right: 0,
26
- top: calc(tokens.spacing.xs).divide(2).toString(),
25
+ top: "5px",
27
26
  height: tokens.stroke.medium
28
27
  });
29
28
  const labelStyle = recipe({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnist/design-system",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -113,5 +113,5 @@
113
113
  "optional": true
114
114
  }
115
115
  },
116
- "gitHead": "e141b0df40690c659ad353e66f34784da879c6f5"
116
+ "gitHead": "7131a4e7b1e740edeb18fa56edaf6b88f7f3aba8"
117
117
  }