@gnist/design-system 7.10.4 → 7.11.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 +12 -0
- package/dist/components/inputs/dropdowns/Combobox.cjs +5 -1
- package/dist/components/inputs/dropdowns/Combobox.d.ts.map +1 -1
- package/dist/components/inputs/dropdowns/Combobox.js +5 -1
- package/dist/styles/states.css.cjs +3 -6
- package/dist/styles/states.css.d.ts +1 -1
- package/dist/styles/states.css.d.ts.map +1 -1
- package/dist/styles/states.css.js +3 -6
- package/package.json +3 -3
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.11.0](https://github.com/mollerdigital/design-system/compare/%40gnist%2Fdesign-system%407.10.5...%40gnist%2Fdesign-system%407.11.0) (2026-11-27)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **themes:** add input border tokens for CUPRA ([05a93e4](https://github.com/mollerdigital/design-system/commit/05a93e4f1be530dd516ec044ceb97d753bcb5ef6))
|
|
11
|
+
|
|
12
|
+
## [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)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* correct Combobox helper text references ([4518c74](https://github.com/mollerdigital/design-system/commit/4518c748de954131b0dd8f339e6c09b4769bdc03))
|
|
17
|
+
|
|
6
18
|
## [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
19
|
|
|
8
20
|
### 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;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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,
|
|
@@ -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
|
-
|
|
58
|
-
|
|
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;;;;;;;;;;;;;;
|
|
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
|
-
|
|
58
|
-
|
|
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.
|
|
3
|
+
"version": "7.11.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.
|
|
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": "
|
|
114
|
+
"gitHead": "694d87533d38d4c2a6870986e66696c852946e58"
|
|
115
115
|
}
|