@gnist/design-system 7.10.5 → 7.12.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 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
+ ## [7.12.0](https://github.com/mollerdigital/design-system/compare/%40gnist%2Fdesign-system%407.11.0...%40gnist%2Fdesign-system%407.12.0) (2026-11-27)
7
+
8
+ ### Features
9
+
10
+ * UI of inputs in cupra-theme are more consistent with cupra ([a636b72](https://github.com/mollerdigital/design-system/commit/a636b7291c2408814746ab230980f82bddcab9c5))
11
+
12
+ ## [7.11.0](https://github.com/mollerdigital/design-system/compare/%40gnist%2Fdesign-system%407.10.5...%40gnist%2Fdesign-system%407.11.0) (2026-11-27)
13
+
14
+ ### Features
15
+
16
+ * **themes:** add input border tokens for CUPRA ([05a93e4](https://github.com/mollerdigital/design-system/commit/05a93e4f1be530dd516ec044ceb97d753bcb5ef6))
17
+
6
18
  ## [7.10.5](https://github.com/mollerdigital/design-system/compare/%40gnist%2Fdesign-system%407.10.4...%40gnist%2Fdesign-system%407.10.5) (2026-11-27)
7
19
 
8
20
  ### Bug Fixes
@@ -4,8 +4,24 @@ let _gnist_themes_atoms_css_js = require("@gnist/themes/atoms.css.js");
4
4
  let _gnist_themes_layers_css_js = require("@gnist/themes/layers.css.js");
5
5
  let _gnist_themes_tokens_css_js = require("@gnist/themes/tokens.css.js");
6
6
  let _vanilla_extract_css_utils = require("@vanilla-extract/css-utils");
7
+ let _vanilla_extract_css = require("@vanilla-extract/css");
7
8
  // src/components/inputs/shared-styles/inputField.css.ts
8
- var borderStyle = (borderColor, isFocused) => `0 0 0 ${isFocused ? _gnist_themes_tokens_css_js.tokens.stroke.medium : _gnist_themes_tokens_css_js.tokens.stroke.small} ${borderColor}`;
9
+ var strokeColor = (0, _vanilla_extract_css.createVar)();
10
+ var fieldBackground = (0, _vanilla_extract_css.createVar)();
11
+ var regularBorderWidth = _gnist_themes_tokens_css_js.tokens["border-width"].input;
12
+ var focusedBorderWidth = _gnist_themes_tokens_css_js.tokens["border-width"]["input-focus"];
13
+ var bottomRadius = _gnist_themes_tokens_css_js.tokens.radius["input-bottom"];
14
+ var borderStyle = (isFocused = false) => {
15
+ const bottomBorderWidth = isFocused ? _gnist_themes_tokens_css_js.tokens.stroke.medium : _gnist_themes_tokens_css_js.tokens.stroke.small;
16
+ const borderWidth = isFocused ? focusedBorderWidth : regularBorderWidth;
17
+ const surfaceOffset = `min(0px, calc(2 * (${borderWidth} - ${_gnist_themes_tokens_css_js.tokens.stroke.small})))`;
18
+ const inset = _vanilla_extract_css_utils.calc.negate(borderWidth);
19
+ return [
20
+ `0 0 0 ${borderWidth} ${strokeColor}`,
21
+ `0 ${bottomBorderWidth} 0 ${inset} ${strokeColor}`,
22
+ `0 ${surfaceOffset} 0 ${inset} ${fieldBackground}`
23
+ ].join(", ");
24
+ };
9
25
  var textAreaHeight = (0, _vanilla_extract_css_utils.calc)((0, _vanilla_extract_css_utils.calc)(require_inputFieldConstants_css.visibleLines).multiply("1.5rem")).add((0, _vanilla_extract_css_utils.calc)(_gnist_themes_tokens_css_js.tokens.spacing.xxs).multiply(2)).toString();
10
26
  var wrapperStyle = (0, _gnist_themes_layers_css_js.gnistStyle)({
11
27
  position: "relative",
@@ -16,10 +32,16 @@ var inputFieldWrapperRecipe = (0, _gnist_themes_layers_css_js.gnistRecipe)({
16
32
  base: [(0, _gnist_themes_atoms_css_js.atoms)({
17
33
  marginTop: "xxs",
18
34
  typography: "body-medium",
19
- backgroundColor: "surface",
20
35
  borderRadius: "input"
21
36
  }), {
22
- boxShadow: borderStyle(_gnist_themes_tokens_css_js.tokens.color.outline),
37
+ vars: {
38
+ [strokeColor]: _gnist_themes_tokens_css_js.tokens.color.outline,
39
+ [fieldBackground]: _gnist_themes_tokens_css_js.tokens.color.surface
40
+ },
41
+ backgroundColor: fieldBackground,
42
+ boxShadow: borderStyle(),
43
+ borderEndStartRadius: bottomRadius,
44
+ borderEndEndRadius: bottomRadius,
23
45
  width: "100%",
24
46
  position: "relative",
25
47
  boxSizing: "border-box",
@@ -27,7 +49,10 @@ var inputFieldWrapperRecipe = (0, _gnist_themes_layers_css_js.gnistRecipe)({
27
49
  flexDirection: "column",
28
50
  transitionProperty: "box-shadow",
29
51
  transitionDuration: require_inputFieldConstants_css.transitionTime,
30
- selectors: { "&:focus-within": { boxShadow: borderStyle(_gnist_themes_tokens_css_js.tokens.color.interactive, true) } }
52
+ selectors: { "&:focus-within": {
53
+ vars: { [strokeColor]: _gnist_themes_tokens_css_js.tokens.color.interactive },
54
+ boxShadow: borderStyle(true)
55
+ } }
31
56
  }],
32
57
  variants: {
33
58
  density: {
@@ -42,16 +67,19 @@ var inputFieldWrapperRecipe = (0, _gnist_themes_layers_css_js.gnistRecipe)({
42
67
  paddingBottom: "base"
43
68
  })]
44
69
  },
45
- disabled: { true: [(0, _gnist_themes_atoms_css_js.atoms)({ backgroundColor: "disabled" }), { boxShadow: borderStyle(_gnist_themes_tokens_css_js.tokens.color.disabled) }] },
70
+ disabled: { true: { vars: {
71
+ [strokeColor]: _gnist_themes_tokens_css_js.tokens.color.disabled,
72
+ [fieldBackground]: _gnist_themes_tokens_css_js.tokens.color.disabled
73
+ } } },
46
74
  fieldType: { textArea: { height: textAreaHeight } },
47
75
  validityType: {
48
76
  error: {
49
- boxShadow: borderStyle(_gnist_themes_tokens_css_js.tokens.color.error),
50
- selectors: { "&:focus-within": { boxShadow: borderStyle(_gnist_themes_tokens_css_js.tokens.color.error, true) } }
77
+ vars: { [strokeColor]: _gnist_themes_tokens_css_js.tokens.color.error },
78
+ selectors: { "&:focus-within": { vars: { [strokeColor]: _gnist_themes_tokens_css_js.tokens.color.error } } }
51
79
  },
52
80
  success: {
53
- boxShadow: borderStyle(_gnist_themes_tokens_css_js.tokens.color.success),
54
- selectors: { "&:focus-within": { boxShadow: borderStyle(_gnist_themes_tokens_css_js.tokens.color.success, true) } }
81
+ vars: { [strokeColor]: _gnist_themes_tokens_css_js.tokens.color.success },
82
+ selectors: { "&:focus-within": { vars: { [strokeColor]: _gnist_themes_tokens_css_js.tokens.color.success } } }
55
83
  },
56
84
  none: {}
57
85
  }
@@ -1,3 +1,5 @@
1
+ declare const strokeColor: `var(--${string})`;
2
+ declare const fieldBackground: `var(--${string})`;
1
3
  export declare const wrapperStyle: string;
2
4
  export declare const inputFieldWrapperRecipe: import("@vanilla-extract/recipes").RuntimeFn<{
3
5
  density: {
@@ -5,9 +7,12 @@ export declare const inputFieldWrapperRecipe: import("@vanilla-extract/recipes")
5
7
  compact: string[];
6
8
  };
7
9
  disabled: {
8
- true: (string | {
9
- boxShadow: string;
10
- })[];
10
+ true: {
11
+ vars: {
12
+ [strokeColor]: `var(--${string})`;
13
+ [fieldBackground]: `var(--${string})`;
14
+ };
15
+ };
11
16
  };
12
17
  fieldType: {
13
18
  textArea: {
@@ -16,18 +21,26 @@ export declare const inputFieldWrapperRecipe: import("@vanilla-extract/recipes")
16
21
  };
17
22
  validityType: {
18
23
  error: {
19
- boxShadow: string;
24
+ vars: {
25
+ [strokeColor]: `var(--${string})`;
26
+ };
20
27
  selectors: {
21
28
  "&:focus-within": {
22
- boxShadow: string;
29
+ vars: {
30
+ [strokeColor]: `var(--${string})`;
31
+ };
23
32
  };
24
33
  };
25
34
  };
26
35
  success: {
27
- boxShadow: string;
36
+ vars: {
37
+ [strokeColor]: `var(--${string})`;
38
+ };
28
39
  selectors: {
29
40
  "&:focus-within": {
30
- boxShadow: string;
41
+ vars: {
42
+ [strokeColor]: `var(--${string})`;
43
+ };
31
44
  };
32
45
  };
33
46
  };
@@ -41,4 +54,5 @@ export declare const inputContentWrapper: import("@vanilla-extract/recipes").Run
41
54
  compact: string;
42
55
  };
43
56
  }>;
57
+ export {};
44
58
  //# sourceMappingURL=inputField.css.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"inputField.css.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/shared-styles/inputField.css.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,YAAY,QAIvB,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8ElC,CAAC;AAEH,eAAO,MAAM,eAAe,QAuB1B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;EAyB9B,CAAC"}
1
+ {"version":3,"file":"inputField.css.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/shared-styles/inputField.css.ts"],"names":[],"mappings":"AAaA,QAAA,MAAM,WAAW,oBAAc,CAAC;AAChC,QAAA,MAAM,eAAe,oBAAc,CAAC;AA2BpC,eAAO,MAAM,YAAY,QAIvB,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;gBAmDhB,CAAC,WAAW,CAAC,qBAAuB;gBACpC,CAAC,eAAe,CAAC,qBAAuB;;;;;;;;;;;;gBAWpC,CAAC,WAAW,CAAC,qBAAoB;;;;;wBAGzB,CAAC,WAAW,CAAC,qBAAoB;;;;;;;gBAKzC,CAAC,WAAW,CAAC,qBAAsB;;;;;wBAG3B,CAAC,WAAW,CAAC,qBAAsB;;;;;;;EAWjE,CAAC;AAEH,eAAO,MAAM,eAAe,QAuB1B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;EAyB9B,CAAC"}
@@ -4,8 +4,24 @@ import { atoms } from "@gnist/themes/atoms.css.js";
4
4
  import { gnistRecipe, gnistStyle } from "@gnist/themes/layers.css.js";
5
5
  import { tokens } from "@gnist/themes/tokens.css.js";
6
6
  import { calc } from "@vanilla-extract/css-utils";
7
+ import { createVar } from "@vanilla-extract/css";
7
8
  // src/components/inputs/shared-styles/inputField.css.ts
8
- var borderStyle = (borderColor, isFocused) => `0 0 0 ${isFocused ? tokens.stroke.medium : tokens.stroke.small} ${borderColor}`;
9
+ var strokeColor = createVar();
10
+ var fieldBackground = createVar();
11
+ var regularBorderWidth = tokens["border-width"].input;
12
+ var focusedBorderWidth = tokens["border-width"]["input-focus"];
13
+ var bottomRadius = tokens.radius["input-bottom"];
14
+ var borderStyle = (isFocused = false) => {
15
+ const bottomBorderWidth = isFocused ? tokens.stroke.medium : tokens.stroke.small;
16
+ const borderWidth = isFocused ? focusedBorderWidth : regularBorderWidth;
17
+ const surfaceOffset = `min(0px, calc(2 * (${borderWidth} - ${tokens.stroke.small})))`;
18
+ const inset = calc.negate(borderWidth);
19
+ return [
20
+ `0 0 0 ${borderWidth} ${strokeColor}`,
21
+ `0 ${bottomBorderWidth} 0 ${inset} ${strokeColor}`,
22
+ `0 ${surfaceOffset} 0 ${inset} ${fieldBackground}`
23
+ ].join(", ");
24
+ };
9
25
  var textAreaHeight = calc(calc(visibleLines).multiply("1.5rem")).add(calc(tokens.spacing.xxs).multiply(2)).toString();
10
26
  var wrapperStyle = gnistStyle({
11
27
  position: "relative",
@@ -16,10 +32,16 @@ var inputFieldWrapperRecipe = gnistRecipe({
16
32
  base: [atoms({
17
33
  marginTop: "xxs",
18
34
  typography: "body-medium",
19
- backgroundColor: "surface",
20
35
  borderRadius: "input"
21
36
  }), {
22
- boxShadow: borderStyle(tokens.color.outline),
37
+ vars: {
38
+ [strokeColor]: tokens.color.outline,
39
+ [fieldBackground]: tokens.color.surface
40
+ },
41
+ backgroundColor: fieldBackground,
42
+ boxShadow: borderStyle(),
43
+ borderEndStartRadius: bottomRadius,
44
+ borderEndEndRadius: bottomRadius,
23
45
  width: "100%",
24
46
  position: "relative",
25
47
  boxSizing: "border-box",
@@ -27,7 +49,10 @@ var inputFieldWrapperRecipe = gnistRecipe({
27
49
  flexDirection: "column",
28
50
  transitionProperty: "box-shadow",
29
51
  transitionDuration: transitionTime,
30
- selectors: { "&:focus-within": { boxShadow: borderStyle(tokens.color.interactive, true) } }
52
+ selectors: { "&:focus-within": {
53
+ vars: { [strokeColor]: tokens.color.interactive },
54
+ boxShadow: borderStyle(true)
55
+ } }
31
56
  }],
32
57
  variants: {
33
58
  density: {
@@ -42,16 +67,19 @@ var inputFieldWrapperRecipe = gnistRecipe({
42
67
  paddingBottom: "base"
43
68
  })]
44
69
  },
45
- disabled: { true: [atoms({ backgroundColor: "disabled" }), { boxShadow: borderStyle(tokens.color.disabled) }] },
70
+ disabled: { true: { vars: {
71
+ [strokeColor]: tokens.color.disabled,
72
+ [fieldBackground]: tokens.color.disabled
73
+ } } },
46
74
  fieldType: { textArea: { height: textAreaHeight } },
47
75
  validityType: {
48
76
  error: {
49
- boxShadow: borderStyle(tokens.color.error),
50
- selectors: { "&:focus-within": { boxShadow: borderStyle(tokens.color.error, true) } }
77
+ vars: { [strokeColor]: tokens.color.error },
78
+ selectors: { "&:focus-within": { vars: { [strokeColor]: tokens.color.error } } }
51
79
  },
52
80
  success: {
53
- boxShadow: borderStyle(tokens.color.success),
54
- selectors: { "&:focus-within": { boxShadow: borderStyle(tokens.color.success, true) } }
81
+ vars: { [strokeColor]: tokens.color.success },
82
+ selectors: { "&:focus-within": { vars: { [strokeColor]: tokens.color.success } } }
55
83
  },
56
84
  none: {}
57
85
  }
@@ -53,12 +53,9 @@ var stateLayers = (0, _gnist_themes_layers_css_js.gnistRecipe)({
53
53
  true: { selectors: { [afterFocus]: { opacity: _gnist_themes_tokens_css_js.tokens.opacity["on-focus"] } } },
54
54
  false: ""
55
55
  },
56
- borderSize: (0, fp_ts_function.pipe)({
57
- none: "0",
58
- ..._gnist_themes_tokens_css_js.tokens.stroke
59
- }, (0, fp_ts_Record.map)((borderSize) => ({ selectors: { [afterAllStates]: {
60
- top: borderSize === "0" ? 0 : _vanilla_extract_css_utils.calc.negate(borderSize),
61
- left: borderSize === "0" ? 0 : _vanilla_extract_css_utils.calc.negate(borderSize),
56
+ borderSize: (0, fp_ts_function.pipe)(_gnist_themes_tokens_css_js.tokens.stroke, (0, fp_ts_Record.map)((borderSize) => ({ selectors: { [afterAllStates]: {
57
+ top: _vanilla_extract_css_utils.calc.negate(borderSize),
58
+ left: _vanilla_extract_css_utils.calc.negate(borderSize),
62
59
  border: `${borderSize} solid`
63
60
  } } }))),
64
61
  borderRadius: (0, fp_ts_function.pipe)({
@@ -12,7 +12,7 @@ declare const stateLayersInternal: import("@vanilla-extract/recipes").RuntimeFn<
12
12
  false: string;
13
13
  };
14
14
  borderSize: Record<"none" | "small" | "medium" | "large" | "x-small", ComplexStyleRule>;
15
- borderRadius: Record<"overlay" | "none" | "button" | "input" | "small" | "checkbox" | "medium" | "large" | "x-large" | "xx-large" | "full" | "card" | "picker" | "feedback", ComplexStyleRule>;
15
+ borderRadius: Record<"overlay" | "none" | "button" | "input" | "small" | "checkbox" | "medium" | "large" | "x-large" | "xx-large" | "full" | "card" | "picker" | "feedback" | "input-bottom", ComplexStyleRule>;
16
16
  backgroundColor: Record<"on-primary" | "on-secondary" | "on-secondary-container" | "on-background" | "on-surface-variant" | "on-error" | "on-success" | "palette-black", ComplexStyleRule>;
17
17
  }>;
18
18
  type RecipeProperties = Pick<typeof stateLayersInternal, "variants" | "classNames">;
@@ -1 +1 @@
1
- {"version":3,"file":"states.css.d.ts","sourceRoot":"","sources":["../../src/styles/states.css.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAKxD,eAAO,MAAM,UAAU,QASrB,CAAC;AAkCH,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;EAwEvB,CAAC;AAEH,KAAK,gBAAgB,GAAG,IAAI,CACxB,OAAO,mBAAmB,EAC1B,UAAU,GAAG,YAAY,CAC5B,CAAC;AACF,KAAK,cAAc,GAAG,CAClB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,KAC3D,MAAM,CAAC;AAEZ,eAAO,MAAM,WAAW,EAAE,gBAAgB,GAAG,cACtB,CAAC"}
1
+ {"version":3,"file":"states.css.d.ts","sourceRoot":"","sources":["../../src/styles/states.css.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAKxD,eAAO,MAAM,UAAU,QASrB,CAAC;AAkCH,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;EAuEvB,CAAC;AAEH,KAAK,gBAAgB,GAAG,IAAI,CACxB,OAAO,mBAAmB,EAC1B,UAAU,GAAG,YAAY,CAC5B,CAAC;AACF,KAAK,cAAc,GAAG,CAClB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,KAC3D,MAAM,CAAC;AAEZ,eAAO,MAAM,WAAW,EAAE,gBAAgB,GAAG,cACtB,CAAC"}
@@ -53,12 +53,9 @@ var stateLayers = gnistRecipe({
53
53
  true: { selectors: { [afterFocus]: { opacity: tokens.opacity["on-focus"] } } },
54
54
  false: ""
55
55
  },
56
- borderSize: pipe({
57
- none: "0",
58
- ...tokens.stroke
59
- }, map((borderSize) => ({ selectors: { [afterAllStates]: {
60
- top: borderSize === "0" ? 0 : calc.negate(borderSize),
61
- left: borderSize === "0" ? 0 : calc.negate(borderSize),
56
+ borderSize: pipe(tokens.stroke, map((borderSize) => ({ selectors: { [afterAllStates]: {
57
+ top: calc.negate(borderSize),
58
+ left: calc.negate(borderSize),
62
59
  border: `${borderSize} solid`
63
60
  } } }))),
64
61
  borderRadius: pipe({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnist/design-system",
3
- "version": "7.10.5",
3
+ "version": "7.12.0",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -56,7 +56,7 @@
56
56
  "@base-ui/react": "1.0.0",
57
57
  "@formkit/auto-animate": "^0.8.4",
58
58
  "@gnist/component-utils": "3.0.20",
59
- "@gnist/themes": "^4.5.2",
59
+ "@gnist/themes": "^4.6.0",
60
60
  "@material-symbols/svg-400": "^0.42.3",
61
61
  "@vanilla-extract/css": "1.20.1",
62
62
  "@vanilla-extract/css-utils": "^0.1.6",
@@ -111,5 +111,5 @@
111
111
  "optional": true
112
112
  }
113
113
  },
114
- "gitHead": "d22e739f1b3b2d5f8c8bbfb91f1a9a688b0fdc85"
114
+ "gitHead": "338b5611614f75177ba2b41ffe145e98176f88dd"
115
115
  }