@gnist/design-system 7.10.2 → 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,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.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
+
6
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)
7
13
 
8
14
  ### Bug Fixes
@@ -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.2",
3
+ "version": "7.10.3",
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": "2a9e64884f6dd563d65f44c99bff5cf61df5ec23"
114
+ "gitHead": "11b301a363c00272c3781e2d595b471fe0390b8d"
115
115
  }