@gnist/design-system 7.10.4 → 7.10.5

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,12 @@
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.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
+
8
+ ### Bug Fixes
9
+
10
+ * correct Combobox helper text references ([4518c74](https://github.com/mollerdigital/design-system/commit/4518c748de954131b0dd8f339e6c09b4769bdc03))
11
+
6
12
  ## [7.10.4](https://github.com/mollerdigital/design-system/compare/%40gnist%2Fdesign-system%407.10.3...%40gnist%2Fdesign-system%407.10.4) (2026-11-25)
7
13
 
8
14
  ### Bug Fixes
@@ -30,6 +30,8 @@ var Combobox = (props) => {
30
30
  const { contentProps, wrapperProps, commonInputProps } = require_shared.useSelectInputLogic(props);
31
31
  const [isOpen, setIsOpen] = (0, react.useState)(false);
32
32
  const hasValue = !!props.value;
33
+ const { validity, helperId } = contentProps;
34
+ const hasValidationMessage = validity.type !== "none" && Boolean(validity.message);
33
35
  const selectedOption = (0, react.useMemo)(() => props.options.find((o) => o.value === props.value) ?? null, [props.options, props.value]);
34
36
  return (0, react_jsx_runtime.jsxs)("span", {
35
37
  className: (0, classnames.default)(wrapperProps.className, require_inputField_css.wrapperStyle),
@@ -55,7 +57,9 @@ var Combobox = (props) => {
55
57
  [require_inputFieldConstants_css.preInputWidth]: wrapperProps.preInputWidth,
56
58
  [require_inputFieldConstants_css.postInputWidth]: wrapperProps.postInputWidth
57
59
  }),
58
- ...commonInputProps
60
+ ...commonInputProps,
61
+ "aria-describedby": hasValidationMessage || props.helperText ? helperId : void 0,
62
+ "aria-errormessage": hasValidationMessage ? commonInputProps["aria-errormessage"] : void 0
59
63
  }), (0, react_jsx_runtime.jsx)(_base_ui_react_combobox.Combobox.Portal, { children: (0, react_jsx_runtime.jsx)(_base_ui_react_combobox.Combobox.Positioner, {
60
64
  className: require_select_css.popUpStyle,
61
65
  sideOffset: 4,
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/dropdowns/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAsB/B,OAAO,EAAE,oBAAoB,EAAuB,MAAM,cAAc,CAAC;AAOzE,MAAM,MAAM,cAAc,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,WAAW,aAAc,SAAQ,IAAI,CACvC,oBAAoB,CAAC,MAAM,CAAC,EAC5B,KAAK,CACR;IACG;;;OAGG;IACH,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;CACrC;AAED;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAgJ5C,CAAC"}
1
+ {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/dropdowns/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAsB/B,OAAO,EAAE,oBAAoB,EAAuB,MAAM,cAAc,CAAC;AAOzE,MAAM,MAAM,cAAc,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,WAAW,aAAc,SAAQ,IAAI,CACvC,oBAAoB,CAAC,MAAM,CAAC,EAC5B,KAAK,CACR;IACG;;;OAGG;IACH,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;CACrC;AAED;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA6J5C,CAAC"}
@@ -28,6 +28,8 @@ var Combobox$1 = (props) => {
28
28
  const { contentProps, wrapperProps, commonInputProps } = useSelectInputLogic(props);
29
29
  const [isOpen, setIsOpen] = useState(false);
30
30
  const hasValue = !!props.value;
31
+ const { validity, helperId } = contentProps;
32
+ const hasValidationMessage = validity.type !== "none" && Boolean(validity.message);
31
33
  const selectedOption = useMemo(() => props.options.find((o) => o.value === props.value) ?? null, [props.options, props.value]);
32
34
  return jsxs("span", {
33
35
  className: classNames(wrapperProps.className, wrapperStyle),
@@ -53,7 +55,9 @@ var Combobox$1 = (props) => {
53
55
  [preInputWidth]: wrapperProps.preInputWidth,
54
56
  [postInputWidth]: wrapperProps.postInputWidth
55
57
  }),
56
- ...commonInputProps
58
+ ...commonInputProps,
59
+ "aria-describedby": hasValidationMessage || props.helperText ? helperId : void 0,
60
+ "aria-errormessage": hasValidationMessage ? commonInputProps["aria-errormessage"] : void 0
57
61
  }), jsx(Combobox.Portal, { children: jsx(Combobox.Positioner, {
58
62
  className: popUpStyle,
59
63
  sideOffset: 4,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnist/design-system",
3
- "version": "7.10.4",
3
+ "version": "7.10.5",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -111,5 +111,5 @@
111
111
  "optional": true
112
112
  }
113
113
  },
114
- "gitHead": "b7cc89d095b994c4b13eaabd160c8cbb7adf1674"
114
+ "gitHead": "d22e739f1b3b2d5f8c8bbfb91f1a9a688b0fdc85"
115
115
  }