@gnist/design-system 7.10.1 → 7.10.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
+ ## [7.10.3](https://github.com/mollerdigital/design-system/compare/%40gnist%2Fdesign-system%407.10.2...%40gnist%2Fdesign-system%407.10.3) (2026-11-24)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **ActionCard:** render decorative skeleton as div while loading rather than button ([e82eb00](https://github.com/mollerdigital/design-system/commit/e82eb00d1860d153b7b50247d1c1642f30d63d0f))
11
+
12
+ ## [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)
13
+
14
+ ### Bug Fixes
15
+
16
+ * preserve the accessible label on icon-only buttons ([35eda01](https://github.com/mollerdigital/design-system/commit/35eda01407b17c2b6d27ac8a4cb5f7d57ebbeb31))
17
+
6
18
  ## [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
19
 
8
20
  ### 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 : label,
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,SAAS,EACT,KAAK,EACL,IAAI,EACJ,eAAe,EACf,GAAG,KAAK,EACX,EAAE,eAAe,CAAC,SAAS,CAAC,0FA+B5B"}
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 : label,
37
+ title: showLabel === "none" ? label : void 0,
38
38
  variantOverride
39
39
  }),
40
40
  showLabel === "right" && jsx(BodyText, {
@@ -15,6 +15,8 @@ Card layouts can vary to support the types of content they contain. Imagery, ico
15
15
 
16
16
  `ActionCard` is meant for actions with an `onClick` attribute. If a link is desired, use `LinkCard` instead.
17
17
 
18
+ While loading, only a decorative skeleton is rendered.
19
+
18
20
  Documentation: [ActionCard](https://gnist.moller.no/developers/components/latest/?path=/docs/components-surfaces-cards-actioncard--docs)
19
21
  */
20
22
  function ActionCard({ $as, as, children, isLoading, density, ref, ...props }) {
@@ -27,6 +29,12 @@ function ActionCard({ $as, as, children, isLoading, density, ref, ...props }) {
27
29
  density
28
30
  }), props.className)
29
31
  };
30
- return (0, react.createElement)($as ?? as ?? "button", cardProps, (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: isLoading ? (0, react_jsx_runtime.jsx)(require_SharedComponents.LoadingSkeleton, {}) : children }));
32
+ if (isLoading) return (0, react_jsx_runtime.jsx)("div", {
33
+ "aria-hidden": true,
34
+ className: cardProps.className,
35
+ style: cardProps.style,
36
+ children: (0, react_jsx_runtime.jsx)(require_SharedComponents.LoadingSkeleton, {})
37
+ });
38
+ return (0, react.createElement)($as ?? as ?? "button", cardProps, (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children }));
31
39
  }
32
40
  exports.ActionCard = ActionCard;
@@ -8,7 +8,9 @@ Card layouts can vary to support the types of content they contain. Imagery, ico
8
8
 
9
9
  `ActionCard` is meant for actions with an `onClick` attribute. If a link is desired, use `LinkCard` instead.
10
10
 
11
+ While loading, only a decorative skeleton is rendered.
12
+
11
13
  Documentation: [ActionCard](https://gnist.moller.no/developers/components/latest/?path=/docs/components-surfaces-cards-actioncard--docs)
12
14
  */
13
- export declare function ActionCard<AsElement extends ElementType = "button">({ $as, as, children, isLoading, density, ref, ...props }: ActionCardProps<AsElement>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
15
+ export declare function ActionCard<AsElement extends ElementType = "button">({ $as, as, children, isLoading, density, ref, ...props }: ActionCardProps<AsElement>): import("react/jsx-runtime").JSX.Element;
14
16
  //# sourceMappingURL=ActionCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionCard.d.ts","sourceRoot":"","sources":["../../../../src/components/surfaces/cards/ActionCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAwC,WAAW,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAMjD;;;;;;;;;EASE;AACF,wBAAgB,UAAU,CAAC,SAAS,SAAS,WAAW,GAAG,QAAQ,EAAE,EACjE,GAAG,EACH,EAAE,EACF,QAAQ,EACR,SAAS,EACT,OAAO,EACP,GAAG,EACH,GAAG,KAAK,EACX,EAAE,eAAe,CAAC,SAAS,CAAC,0FAkB5B"}
1
+ {"version":3,"file":"ActionCard.d.ts","sourceRoot":"","sources":["../../../../src/components/surfaces/cards/ActionCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAwC,WAAW,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAMjD;;;;;;;;;;;EAWE;AACF,wBAAgB,UAAU,CAAC,SAAS,SAAS,WAAW,GAAG,QAAQ,EAAE,EACjE,GAAG,EACH,EAAE,EACF,QAAQ,EACR,SAAS,EACT,OAAO,EACP,GAAG,EACH,GAAG,KAAK,EACX,EAAE,eAAe,CAAC,SAAS,CAAC,2CA2B5B"}
@@ -13,6 +13,8 @@ Card layouts can vary to support the types of content they contain. Imagery, ico
13
13
 
14
14
  `ActionCard` is meant for actions with an `onClick` attribute. If a link is desired, use `LinkCard` instead.
15
15
 
16
+ While loading, only a decorative skeleton is rendered.
17
+
16
18
  Documentation: [ActionCard](https://gnist.moller.no/developers/components/latest/?path=/docs/components-surfaces-cards-actioncard--docs)
17
19
  */
18
20
  function ActionCard({ $as, as, children, isLoading, density, ref, ...props }) {
@@ -25,6 +27,12 @@ function ActionCard({ $as, as, children, isLoading, density, ref, ...props }) {
25
27
  density
26
28
  }), props.className)
27
29
  };
28
- return createElement($as ?? as ?? "button", cardProps, jsx(Fragment, { children: isLoading ? jsx(LoadingSkeleton, {}) : children }));
30
+ if (isLoading) return jsx("div", {
31
+ "aria-hidden": true,
32
+ className: cardProps.className,
33
+ style: cardProps.style,
34
+ children: jsx(LoadingSkeleton, {})
35
+ });
36
+ return createElement($as ?? as ?? "button", cardProps, jsx(Fragment, { children }));
29
37
  }
30
38
  export { ActionCard };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnist/design-system",
3
- "version": "7.10.1",
3
+ "version": "7.10.3",
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.1",
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": "7ac360f4c2778036689082d2b569d1be2c055328"
114
+ "gitHead": "11b301a363c00272c3781e2d595b471fe0390b8d"
108
115
  }