@gnist/design-system 7.10.1 → 7.10.2
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.2](https://github.com/mollerdigital/design-system/compare/%40gnist%2Fdesign-system%407.10.1...%40gnist%2Fdesign-system%407.10.2) (2026-11-24)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* preserve the accessible label on icon-only buttons ([35eda01](https://github.com/mollerdigital/design-system/commit/35eda01407b17c2b6d27ac8a4cb5f7d57ebbeb31))
|
|
11
|
+
|
|
6
12
|
## [7.10.1](https://github.com/mollerdigital/design-system/compare/%40gnist%2Fdesign-system%407.10.0...%40gnist%2Fdesign-system%407.10.1) (2026-11-20)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
@@ -17,7 +17,7 @@ Note: Unlike most button components, `disabled`, `loading` and `density` props d
|
|
|
17
17
|
|
|
18
18
|
Documentation: [IconButton](https://gnist.moller.no/developers/components/latest/?path=/docs/components-actions-buttons-iconbutton--docs)
|
|
19
19
|
*/
|
|
20
|
-
function IconButton({ $as, as, className, showLabel, label, icon, variantOverride, ...props }) {
|
|
20
|
+
function IconButton({ $as, as, className, showLabel = "none", label, icon, variantOverride, ...props }) {
|
|
21
21
|
return (0, react.createElement)($as ?? as ?? "button", {
|
|
22
22
|
...props,
|
|
23
23
|
className: (0, classnames.default)(className, require_styles_css.buttonRecipe({
|
|
@@ -36,7 +36,7 @@ function IconButton({ $as, as, className, showLabel, label, icon, variantOverrid
|
|
|
36
36
|
}),
|
|
37
37
|
(0, react_jsx_runtime.jsx)(require_Icon.Icon, {
|
|
38
38
|
icon,
|
|
39
|
-
title: showLabel ? void 0
|
|
39
|
+
title: showLabel === "none" ? label : void 0,
|
|
40
40
|
variantOverride
|
|
41
41
|
}),
|
|
42
42
|
showLabel === "right" && (0, react_jsx_runtime.jsx)(require_index$1.BodyText, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/buttons/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,wDAAoE;AAG3F,OAAO,EAAE,WAAW,EAAE,YAAY,EAAiB,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,YAAY,EAAQ,MAAM,0CAA0C,CAAC;AAI9E,KAAK,eAAe,CAAC,SAAS,SAAS,WAAW,IAC9C,gBAAgB,CAAC,SAAS,CAAC,GAAG;IAC1B;;OAEG;IACH,IAAI,EAAE,YAAY,CAAC;IACnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IACtC,mHAAmH;IACnH,eAAe,CAAC,EAAE,YAAY,CAAC;IAC/B,GAAG,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;CAC/B,CAAC;AAEN;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,SAAS,SAAS,WAAW,GAAG,QAAQ,EAAE,EACjE,GAAG,EACH,EAAE,EACF,SAAS,EACT,
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/buttons/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,wDAAoE;AAG3F,OAAO,EAAE,WAAW,EAAE,YAAY,EAAiB,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,YAAY,EAAQ,MAAM,0CAA0C,CAAC;AAI9E,KAAK,eAAe,CAAC,SAAS,SAAS,WAAW,IAC9C,gBAAgB,CAAC,SAAS,CAAC,GAAG;IAC1B;;OAEG;IACH,IAAI,EAAE,YAAY,CAAC;IACnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IACtC,mHAAmH;IACnH,eAAe,CAAC,EAAE,YAAY,CAAC;IAC/B,GAAG,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;CAC/B,CAAC;AAEN;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,SAAS,SAAS,WAAW,GAAG,QAAQ,EAAE,EACjE,GAAG,EACH,EAAE,EACF,SAAS,EACT,SAAkB,EAClB,KAAK,EACL,IAAI,EACJ,eAAe,EACf,GAAG,KAAK,EACX,EAAE,eAAe,CAAC,SAAS,CAAC,0FA+B5B"}
|
|
@@ -15,7 +15,7 @@ Note: Unlike most button components, `disabled`, `loading` and `density` props d
|
|
|
15
15
|
|
|
16
16
|
Documentation: [IconButton](https://gnist.moller.no/developers/components/latest/?path=/docs/components-actions-buttons-iconbutton--docs)
|
|
17
17
|
*/
|
|
18
|
-
function IconButton({ $as, as, className, showLabel, label, icon, variantOverride, ...props }) {
|
|
18
|
+
function IconButton({ $as, as, className, showLabel = "none", label, icon, variantOverride, ...props }) {
|
|
19
19
|
return createElement($as ?? as ?? "button", {
|
|
20
20
|
...props,
|
|
21
21
|
className: classNames(className, buttonRecipe({
|
|
@@ -34,7 +34,7 @@ function IconButton({ $as, as, className, showLabel, label, icon, variantOverrid
|
|
|
34
34
|
}),
|
|
35
35
|
jsx(Icon, {
|
|
36
36
|
icon,
|
|
37
|
-
title: showLabel ? void 0
|
|
37
|
+
title: showLabel === "none" ? label : void 0,
|
|
38
38
|
variantOverride
|
|
39
39
|
}),
|
|
40
40
|
showLabel === "right" && jsx(BodyText, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gnist/design-system",
|
|
3
|
-
"version": "7.10.
|
|
3
|
+
"version": "7.10.2",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -39,19 +39,24 @@
|
|
|
39
39
|
"clean": "shx rm -rf dist",
|
|
40
40
|
"build": "vite build",
|
|
41
41
|
"serve": "vite preview",
|
|
42
|
-
"typecheck": "tsc -b",
|
|
43
|
-
"lint": "pnpm run detect-cycles && pnpm run oxlint",
|
|
42
|
+
"typecheck": "tsc -b && pnpm run figma:typecheck",
|
|
43
|
+
"lint": "pnpm run detect-cycles && pnpm run oxlint && pnpm run figma:parse",
|
|
44
44
|
"oxlint": "oxlint --type-aware --disable-nested-config --max-warnings 0",
|
|
45
45
|
"detect-cycles": "pnpm madge --extensions ts,tsx ./src --circular",
|
|
46
46
|
"prettier:base": "prettier \"src/**/*.{ts,tsx,json,scss}\"",
|
|
47
47
|
"prettier": "pnpm run prettier:base --check",
|
|
48
|
-
"build-storybook": "cd docs && pnpm run build"
|
|
48
|
+
"build-storybook": "cd docs && pnpm run build",
|
|
49
|
+
"figma:typecheck": "tsc -p tsconfig.figma.json",
|
|
50
|
+
"figma:parse": "figma connect parse --exit-on-unreadable-files > /dev/null",
|
|
51
|
+
"figma:preview": "figma connect preview",
|
|
52
|
+
"figma:publish": "dotenv -e .env.local -- figma connect publish --exit-on-unreadable-files",
|
|
53
|
+
"figma:unpublish": "dotenv -e .env.local -- figma connect unpublish"
|
|
49
54
|
},
|
|
50
55
|
"dependencies": {
|
|
51
56
|
"@base-ui/react": "1.0.0",
|
|
52
57
|
"@formkit/auto-animate": "^0.8.4",
|
|
53
58
|
"@gnist/component-utils": "3.0.20",
|
|
54
|
-
"@gnist/themes": "^4.5.
|
|
59
|
+
"@gnist/themes": "^4.5.2",
|
|
55
60
|
"@material-symbols/svg-400": "^0.42.3",
|
|
56
61
|
"@vanilla-extract/css": "1.20.1",
|
|
57
62
|
"@vanilla-extract/css-utils": "^0.1.6",
|
|
@@ -69,6 +74,7 @@
|
|
|
69
74
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
70
75
|
},
|
|
71
76
|
"devDependencies": {
|
|
77
|
+
"@figma/code-connect": "^2.1.0",
|
|
72
78
|
"@gnist/oxlint-config": "",
|
|
73
79
|
"@gnist/ts-config": "",
|
|
74
80
|
"@rollup/plugin-typescript": "^12.3.1",
|
|
@@ -78,6 +84,7 @@
|
|
|
78
84
|
"@types/react-dom": "19.2.3",
|
|
79
85
|
"@types/semver": "^7.8.0",
|
|
80
86
|
"@vitejs/plugin-react-swc": "4.3.3",
|
|
87
|
+
"dotenv-cli": "^11.1.0",
|
|
81
88
|
"globby": "^14.1.0",
|
|
82
89
|
"madge": "^8.0.0",
|
|
83
90
|
"oxlint": "^1.94.0",
|
|
@@ -104,5 +111,5 @@
|
|
|
104
111
|
"optional": true
|
|
105
112
|
}
|
|
106
113
|
},
|
|
107
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "2a9e64884f6dd563d65f44c99bff5cf61df5ec23"
|
|
108
115
|
}
|