@gnist/design-system 5.0.2 → 5.1.1
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 +10 -0
- package/dist/components/actions/buttons/ButtonBase.d.ts.map +1 -1
- package/dist/components/inputs/dropdowns/SelectBase.cjs +2 -1
- package/dist/components/inputs/dropdowns/SelectBase.d.ts +1 -0
- package/dist/components/inputs/dropdowns/SelectBase.d.ts.map +1 -1
- package/dist/components/inputs/dropdowns/SelectBase.js +2 -1
- package/dist/components/inputs/shared-styles/labelStyles.css.cjs +12 -0
- package/dist/components/inputs/shared-styles/labelStyles.css.d.ts +12 -0
- package/dist/components/inputs/shared-styles/labelStyles.css.d.ts.map +1 -1
- package/dist/components/inputs/shared-styles/labelStyles.css.js +12 -0
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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.1.1](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@5.1.0...@gnist/design-system@5.1.1) (2025-12-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @gnist/design-system
|
|
9
|
+
|
|
10
|
+
## [5.1.0](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@5.0.2...@gnist/design-system@5.1.0) (2025-12-09)
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* add hideLabel prop to SingleSelect and MultiSelect ([d26e8ba](https://github.com/mollerdigital/design-system-design-system/commit/d26e8ba14f3455c09864226afc50a0a22acf6370))
|
|
15
|
+
|
|
6
16
|
## [5.0.2](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@5.0.1...@gnist/design-system@5.0.2) (2025-12-05)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @gnist/design-system
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonBase.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/buttons/ButtonBase.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAK1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAEH,YAAY,EACf,MAAM,yCAAyC,CAAC;AAKjD,MAAM,MAAM,WAAW,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAElE,MAAM,MAAM,gBAAgB,CAAC,SAAS,SAAS,WAAW,IACtD,gBAAgB,CAAC,SAAS,CAAC,GAAG;IAC1B;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE;QACN;;WAEG;QACH,SAAS,EAAE,OAAO,CAAC;QACnB;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,GAAG,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;CACrC,CAAC;
|
|
1
|
+
{"version":3,"file":"ButtonBase.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/buttons/ButtonBase.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAK1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAEH,YAAY,EACf,MAAM,yCAAyC,CAAC;AAKjD,MAAM,MAAM,WAAW,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAElE,MAAM,MAAM,gBAAgB,CAAC,SAAS,SAAS,WAAW,IACtD,gBAAgB,CAAC,SAAS,CAAC,GAAG;IAC1B;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE;QACN;;WAEG;QACH,SAAS,EAAE,OAAO,CAAC;QACnB;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,GAAG,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;CACrC,CAAC;AAGN,wBAAgB,eAAe,CAAC,SAAS,SAAS,WAAW,GAAG,QAAQ,EAAE,EACtE,GAAG,EACH,EAAE,EACF,QAAQ,EACR,SAAS,EACT,OAAO,EACP,QAA6B,EAC7B,IAAe,EACf,OAAmB,EACnB,GAAG,EACH,GAAG,KAAK,EACX,EAAE,gBAAgB,CAAC,SAAS,CAAC,sEAoC7B"}
|
|
@@ -89,7 +89,8 @@ function SelectBase(props, isMultiple) {
|
|
|
89
89
|
density: props.density,
|
|
90
90
|
validityType: props.validity?.type,
|
|
91
91
|
isElevated: hasValue,
|
|
92
|
-
disabled: props.disabled
|
|
92
|
+
disabled: props.disabled,
|
|
93
|
+
visuallyHidden: props.hideLabel && hasValue || false
|
|
93
94
|
}), style: {
|
|
94
95
|
...dynamic.assignInlineVars({
|
|
95
96
|
[inputFieldConstants_css.preInputWidth]: wrapperProps.preInputWidth
|
|
@@ -12,6 +12,7 @@ export interface SelectBaseProps<TVal> extends SelectBaseInputProps<TVal> {
|
|
|
12
12
|
label: string;
|
|
13
13
|
value: string;
|
|
14
14
|
}[];
|
|
15
|
+
hideLabel?: boolean;
|
|
15
16
|
}
|
|
16
17
|
export declare function SelectBase<T>(props: SelectBaseProps<T>, isMultiple: boolean): import("react/jsx-runtime").JSX.Element;
|
|
17
18
|
//# sourceMappingURL=SelectBase.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectBase.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/dropdowns/SelectBase.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,oBAAoB,EAAuB,MAAM,cAAc,CAAC;AAOzE,MAAM,MAAM,YAAY,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5D,MAAM,WAAW,eAAe,CAAC,IAAI,CAAE,SAAQ,oBAAoB,CAAC,IAAI,CAAC;IACrE;;;OAGG;IACH,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"SelectBase.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/dropdowns/SelectBase.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,oBAAoB,EAAuB,MAAM,cAAc,CAAC;AAOzE,MAAM,MAAM,YAAY,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5D,MAAM,WAAW,eAAe,CAAC,IAAI,CAAE,SAAQ,oBAAoB,CAAC,IAAI,CAAC;IACrE;;;OAGG;IACH,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAI5C,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,2CAgL3E"}
|
|
@@ -68,7 +68,8 @@ function SelectBase(props, isMultiple) {
|
|
|
68
68
|
density: props.density,
|
|
69
69
|
validityType: props.validity?.type,
|
|
70
70
|
isElevated: hasValue,
|
|
71
|
-
disabled: props.disabled
|
|
71
|
+
disabled: props.disabled,
|
|
72
|
+
visuallyHidden: props.hideLabel && hasValue || false
|
|
72
73
|
}), style: {
|
|
73
74
|
...assignInlineVars({
|
|
74
75
|
[preInputWidth]: wrapperProps.preInputWidth
|
|
@@ -90,6 +90,18 @@ const labelStyle = recipes.recipe({
|
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
false: {}
|
|
93
|
+
},
|
|
94
|
+
visuallyHidden: {
|
|
95
|
+
true: {
|
|
96
|
+
position: "absolute",
|
|
97
|
+
width: "1px",
|
|
98
|
+
height: "1px",
|
|
99
|
+
overflow: "hidden",
|
|
100
|
+
clip: "rect(0 0 0 0)",
|
|
101
|
+
clipPath: "inset(50%)",
|
|
102
|
+
whiteSpace: "nowrap"
|
|
103
|
+
},
|
|
104
|
+
false: {}
|
|
93
105
|
}
|
|
94
106
|
},
|
|
95
107
|
compoundVariants: [
|
|
@@ -61,5 +61,17 @@ export declare const labelStyle: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
61
61
|
};
|
|
62
62
|
false: {};
|
|
63
63
|
};
|
|
64
|
+
visuallyHidden: {
|
|
65
|
+
true: {
|
|
66
|
+
position: "absolute";
|
|
67
|
+
width: "1px";
|
|
68
|
+
height: "1px";
|
|
69
|
+
overflow: "hidden";
|
|
70
|
+
clip: "rect(0 0 0 0)";
|
|
71
|
+
clipPath: "inset(50%)";
|
|
72
|
+
whiteSpace: "nowrap";
|
|
73
|
+
};
|
|
74
|
+
false: {};
|
|
75
|
+
};
|
|
64
76
|
}>;
|
|
65
77
|
//# sourceMappingURL=labelStyles.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"labelStyles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/shared-styles/labelStyles.css.ts"],"names":[],"mappings":"AAkCA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"labelStyles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/shared-styles/labelStyles.css.ts"],"names":[],"mappings":"AAkCA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2JrB,CAAC"}
|
|
@@ -88,6 +88,18 @@ const labelStyle = recipe({
|
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
false: {}
|
|
91
|
+
},
|
|
92
|
+
visuallyHidden: {
|
|
93
|
+
true: {
|
|
94
|
+
position: "absolute",
|
|
95
|
+
width: "1px",
|
|
96
|
+
height: "1px",
|
|
97
|
+
overflow: "hidden",
|
|
98
|
+
clip: "rect(0 0 0 0)",
|
|
99
|
+
clipPath: "inset(50%)",
|
|
100
|
+
whiteSpace: "nowrap"
|
|
101
|
+
},
|
|
102
|
+
false: {}
|
|
91
103
|
}
|
|
92
104
|
},
|
|
93
105
|
compoundVariants: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gnist/design-system",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@base-ui-components/react": "1.0.0-beta.2",
|
|
51
51
|
"@formkit/auto-animate": "^0.8.2",
|
|
52
|
-
"@gnist/component-utils": "3.0.
|
|
53
|
-
"@gnist/themes": "^3.23.
|
|
52
|
+
"@gnist/component-utils": "3.0.11",
|
|
53
|
+
"@gnist/themes": "^3.23.1",
|
|
54
54
|
"@vanilla-extract/css": "^1.17.4",
|
|
55
55
|
"@vanilla-extract/css-utils": "^0.1.6",
|
|
56
56
|
"@vanilla-extract/dynamic": "^2.1.5",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
73
73
|
"@tsconfig/node22": "^22.0.2",
|
|
74
74
|
"@types/node": "^22.14.0",
|
|
75
|
-
"@types/react": "19.1
|
|
76
|
-
"@types/react-dom": "19.1
|
|
75
|
+
"@types/react": "19.2.1",
|
|
76
|
+
"@types/react-dom": "19.2.1",
|
|
77
77
|
"@types/semver": "^7.7.0",
|
|
78
78
|
"@vitejs/plugin-react-swc": "^3.10.2",
|
|
79
79
|
"eslint": "^9.33.0",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"globby": "^14.1.0",
|
|
82
82
|
"madge": "^8.0.0",
|
|
83
83
|
"prettier": "^3.6.2",
|
|
84
|
-
"react": "19.1
|
|
85
|
-
"react-dom": "19.1
|
|
84
|
+
"react": "19.2.1",
|
|
85
|
+
"react-dom": "19.2.1",
|
|
86
86
|
"rollup-plugin-copy": "^3.5.0",
|
|
87
87
|
"semver": "^7.7.2",
|
|
88
88
|
"svgo": "^3.3.2",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"optional": true
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "e0918687c6da753232e6c253f29e50af04cf852b"
|
|
106
106
|
}
|