@gnist/design-system 5.3.1 → 5.3.3

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
+ ## [5.3.3](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@5.3.2...@gnist/design-system@5.3.3) (2026-01-06)
7
+
8
+ ### Bug Fixes
9
+
10
+ * counter in textarea should also be disabled ([19a8d82](https://github.com/mollerdigital/design-system-design-system/commit/19a8d82d421f3b948554d2e9eb9a3781ce35c50e))
11
+
12
+ ## [5.3.2](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@5.3.1...@gnist/design-system@5.3.2) (2025-12-19)
13
+
14
+ ### Bug Fixes
15
+
16
+ * stricter position type on switch ([75142c6](https://github.com/mollerdigital/design-system-design-system/commit/75142c64f5d1df6dd8878c9a3258edb9ef0e4a83))
17
+
6
18
  ## [5.3.1](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@5.3.0...@gnist/design-system@5.3.1) (2025-12-12)
7
19
 
8
20
  **Note:** Version bump only for package @gnist/design-system
@@ -2,7 +2,7 @@ import { Ref } from "react";
2
2
  import { SelectionControlProps } from "./shared.js";
3
3
  export interface SwitchProps extends Omit<SelectionControlProps<boolean>, "render" | "validity"> {
4
4
  /** The position of the Switch */
5
- position?: string;
5
+ position?: "left" | "right";
6
6
  ref?: Ref<HTMLSpanElement>;
7
7
  }
8
8
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/selectionControls/Switch.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAU5B,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGpD,MAAM,WAAW,WACb,SAAQ,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IACnE,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC;CAC9B;AAED;;;;;;;GAOG;AACH,wBAAgB,MAAM,CAAC,EACnB,KAAK,EACL,WAAW,EACX,KAAa,EACb,QAAQ,EACR,QAAQ,EACR,EAAyC,EACzC,QAAiB,EACjB,SAAiB,EACjB,SAAS,EACT,GAAG,EACH,GAAG,IAAI,EACV,EAAE,WAAW,2CA6Db"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/selectionControls/Switch.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAU5B,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGpD,MAAM,WAAW,WACb,SAAQ,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IACnE,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,GAAG,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC;CAC9B;AAED;;;;;;;GAOG;AACH,wBAAgB,MAAM,CAAC,EACnB,KAAK,EACL,WAAW,EACX,KAAa,EACb,QAAQ,EACR,QAAQ,EACR,EAAyC,EACzC,QAAiB,EACjB,SAAiB,EACjB,SAAS,EACT,GAAG,EACH,GAAG,IAAI,EACV,EAAE,WAAW,2CA6Db"}
@@ -59,7 +59,9 @@ function TextArea({ counterText, visibleLines: visibleLinesProp, ref, ...props }
59
59
  ...dynamic.assignInlineVars({
60
60
  [inputFieldConstants_css.preInputWidth]: wrapperProps.preInputWidth
61
61
  })
62
- }, children: jsxRuntime.jsx("span", { style: { position: "relative" }, children: props.label }) }), jsxRuntime.jsx("span", { style: { flexGrow: "1" } }), props.suffix && jsxRuntime.jsx("span", { ref: contentProps.suffixRef, "aria-hidden": true, className: suffixPrefix_css.suffixStyle, children: props.suffix }), props.trailingIcon && jsxRuntime.jsx(Icon.Icon, { icon: shared.isClickableIcon(props.trailingIcon) ? props.trailingIcon.icon : props.trailingIcon, className: atoms_css_js.atoms({ paddingLeft: "xxs" }) })] }), counterText && jsxRuntime.jsx("span", { "aria-hidden": true, className: textArea_css.wordCounterStyle, children: counterText })] }), props.trailingIcon && shared.isClickableIcon(props.trailingIcon) && jsxRuntime.jsx("button", { className: iconButtonOverlay_css.iconButtonOverlayRecipe({
62
+ }, children: jsxRuntime.jsx("span", { style: { position: "relative" }, children: props.label }) }), jsxRuntime.jsx("span", { style: { flexGrow: "1" } }), props.suffix && jsxRuntime.jsx("span", { ref: contentProps.suffixRef, "aria-hidden": true, className: suffixPrefix_css.suffixStyle, children: props.suffix }), props.trailingIcon && jsxRuntime.jsx(Icon.Icon, { icon: shared.isClickableIcon(props.trailingIcon) ? props.trailingIcon.icon : props.trailingIcon, className: atoms_css_js.atoms({ paddingLeft: "xxs" }) })] }), counterText && jsxRuntime.jsx("span", { "aria-hidden": true, className: textArea_css.wordCounterStyle({
63
+ disabled: props.disabled
64
+ }), children: counterText })] }), props.trailingIcon && shared.isClickableIcon(props.trailingIcon) && jsxRuntime.jsx("button", { className: iconButtonOverlay_css.iconButtonOverlayRecipe({
63
65
  placement: "right",
64
66
  density: wrapperProps.density
65
67
  }), title: props.trailingIcon.title, onClick: props.trailingIcon.onClick, type: "button" }), jsxRuntime.jsx(InputHelperText.InputHelperText, { id: contentProps.helperId, validity: props.validity, helperText: props.helperText, reserveSpaceForMessage: props.reserveSpaceForMessage, disabled: props.disabled })] });
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/textFields/TextArea.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,GAAG,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAepD,OAAO,EAGH,cAAc,EAEjB,MAAM,cAAc,CAAC;AAGtB,MAAM,MAAM,aAAa,GAAG,cAAc,GACtC,IAAI,CACA,sBAAsB,CAAC,mBAAmB,CAAC,EAC3C,aAAa,GAAG,OAAO,CAC1B,GAAG;IACA;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,GAAG,CAAC,mBAAmB,CAAC,CAAC;CAClC,CAAC;AAEN;;;;;;;;;;;EAWE;AACF,wBAAgB,QAAQ,CAAC,EACrB,WAAW,EACX,YAAY,EAAE,gBAAgB,EAC9B,GAAG,EACH,GAAG,KAAK,EACX,EAAE,aAAa,2CA6If;AAED,eAAO,MAAM,SAAS,UAAW,MAAM,OAAO,MAAM,WAMjC,CAAC;AAEpB,eAAO,MAAM,cAAc,UAAW,MAAM,OAAO,MAAM,WACtB,CAAC"}
1
+ {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/textFields/TextArea.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,GAAG,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAepD,OAAO,EAGH,cAAc,EAEjB,MAAM,cAAc,CAAC;AAGtB,MAAM,MAAM,aAAa,GAAG,cAAc,GACtC,IAAI,CACA,sBAAsB,CAAC,mBAAmB,CAAC,EAC3C,aAAa,GAAG,OAAO,CAC1B,GAAG;IACA;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,GAAG,CAAC,mBAAmB,CAAC,CAAC;CAClC,CAAC;AAEN;;;;;;;;;;;EAWE;AACF,wBAAgB,QAAQ,CAAC,EACrB,WAAW,EACX,YAAY,EAAE,gBAAgB,EAC9B,GAAG,EACH,GAAG,KAAK,EACX,EAAE,aAAa,2CAkJf;AAED,eAAO,MAAM,SAAS,UAAW,MAAM,OAAO,MAAM,WAMjC,CAAC;AAEpB,eAAO,MAAM,cAAc,UAAW,MAAM,OAAO,MAAM,WACtB,CAAC"}
@@ -55,7 +55,9 @@ function TextArea({ counterText, visibleLines: visibleLinesProp, ref, ...props }
55
55
  ...assignInlineVars({
56
56
  [preInputWidth]: wrapperProps.preInputWidth
57
57
  })
58
- }, children: jsx("span", { style: { position: "relative" }, children: props.label }) }), jsx("span", { style: { flexGrow: "1" } }), props.suffix && jsx("span", { ref: contentProps.suffixRef, "aria-hidden": true, className: suffixStyle, children: props.suffix }), props.trailingIcon && jsx(Icon, { icon: isClickableIcon(props.trailingIcon) ? props.trailingIcon.icon : props.trailingIcon, className: atoms({ paddingLeft: "xxs" }) })] }), counterText && jsx("span", { "aria-hidden": true, className: wordCounterStyle, children: counterText })] }), props.trailingIcon && isClickableIcon(props.trailingIcon) && jsx("button", { className: iconButtonOverlayRecipe({
58
+ }, children: jsx("span", { style: { position: "relative" }, children: props.label }) }), jsx("span", { style: { flexGrow: "1" } }), props.suffix && jsx("span", { ref: contentProps.suffixRef, "aria-hidden": true, className: suffixStyle, children: props.suffix }), props.trailingIcon && jsx(Icon, { icon: isClickableIcon(props.trailingIcon) ? props.trailingIcon.icon : props.trailingIcon, className: atoms({ paddingLeft: "xxs" }) })] }), counterText && jsx("span", { "aria-hidden": true, className: wordCounterStyle({
59
+ disabled: props.disabled
60
+ }), children: counterText })] }), props.trailingIcon && isClickableIcon(props.trailingIcon) && jsx("button", { className: iconButtonOverlayRecipe({
59
61
  placement: "right",
60
62
  density: wrapperProps.density
61
63
  }), title: props.trailingIcon.title, onClick: props.trailingIcon.onClick, type: "button" }), jsx(InputHelperText, { id: contentProps.helperId, validity: props.validity, helperText: props.helperText, reserveSpaceForMessage: props.reserveSpaceForMessage, disabled: props.disabled })] });
@@ -2,13 +2,23 @@
2
2
  "use strict";
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  const atoms_css_js = require("@gnist/themes/atoms.css.js");
5
- const wordCounterStyle = atoms_css_js.atoms({
6
- display: "flex",
7
- backgroundColor: "surface",
8
- color: "text-variant",
9
- justifyContent: "flex-end",
10
- typography: "detail-medium",
11
- paddingTop: "base",
12
- paddingX: "base"
5
+ const recipes = require("@vanilla-extract/recipes");
6
+ const wordCounterStyle = recipes.recipe({
7
+ base: atoms_css_js.atoms({
8
+ display: "flex",
9
+ backgroundColor: "surface",
10
+ justifyContent: "flex-end",
11
+ typography: "detail-medium",
12
+ paddingTop: "base",
13
+ paddingX: "base"
14
+ }),
15
+ variants: {
16
+ disabled: {
17
+ true: atoms_css_js.atoms({
18
+ color: "on-disabled",
19
+ backgroundColor: "disabled"
20
+ })
21
+ }
22
+ }
13
23
  });
14
24
  exports.wordCounterStyle = wordCounterStyle;
@@ -1,2 +1,6 @@
1
- export declare const wordCounterStyle: string;
1
+ export declare const wordCounterStyle: import("@vanilla-extract/recipes").RuntimeFn<{
2
+ disabled: {
3
+ true: string;
4
+ };
5
+ }>;
2
6
  //# sourceMappingURL=textArea.css.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"textArea.css.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/textFields/textArea.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,QAQ3B,CAAC"}
1
+ {"version":3,"file":"textArea.css.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/textFields/textArea.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB;;;;EAiB3B,CAAC"}
@@ -1,13 +1,23 @@
1
1
  "use client";
2
2
  import { atoms } from "@gnist/themes/atoms.css.js";
3
- const wordCounterStyle = atoms({
4
- display: "flex",
5
- backgroundColor: "surface",
6
- color: "text-variant",
7
- justifyContent: "flex-end",
8
- typography: "detail-medium",
9
- paddingTop: "base",
10
- paddingX: "base"
3
+ import { recipe } from "@vanilla-extract/recipes";
4
+ const wordCounterStyle = recipe({
5
+ base: atoms({
6
+ display: "flex",
7
+ backgroundColor: "surface",
8
+ justifyContent: "flex-end",
9
+ typography: "detail-medium",
10
+ paddingTop: "base",
11
+ paddingX: "base"
12
+ }),
13
+ variants: {
14
+ disabled: {
15
+ true: atoms({
16
+ color: "on-disabled",
17
+ backgroundColor: "disabled"
18
+ })
19
+ }
20
+ }
11
21
  });
12
22
  export {
13
23
  wordCounterStyle
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnist/design-system",
3
- "version": "5.3.1",
3
+ "version": "5.3.3",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -102,5 +102,5 @@
102
102
  "optional": true
103
103
  }
104
104
  },
105
- "gitHead": "ab20c34f9b8cc94f6659a75ed791280134eb34bd"
105
+ "gitHead": "226e39f9fdb01ff40515a66ca87cb6d4c3d10bde"
106
106
  }