@postenbring/hedwig-react 3.0.4 → 3.0.5

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/dist/index.mjs CHANGED
@@ -186,7 +186,7 @@ import {
186
186
  CardBodyHeaderTitle,
187
187
  CardMedia,
188
188
  CardMediaImg
189
- } from "./chunk-IC2K5VZJ.mjs";
189
+ } from "./chunk-JOEPTRHW.mjs";
190
190
  import {
191
191
  DescriptionList
192
192
  } from "./chunk-C7ZTOZP3.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postenbring/hedwig-react",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -31,7 +31,7 @@
31
31
  "dependencies": {
32
32
  "@radix-ui/react-popover": "1.1.14",
33
33
  "@radix-ui/react-slot": "1.2.3",
34
- "@postenbring/hedwig-css": "3.0.4"
34
+ "@postenbring/hedwig-css": "3.0.5"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"
package/src/card/card.tsx CHANGED
@@ -242,7 +242,7 @@ export interface CardSlimAndMiniatureProps extends CardBaseProps {
242
242
  export interface CardFocusProps extends CardBaseProps {
243
243
  as?: "section" | "div" | "article" | "aside";
244
244
  variant: "focus";
245
- color?: "darker";
245
+ color?: "darker" | "dark";
246
246
  /**
247
247
  * fullwidth or focus cards can have images to the left or right of the text.
248
248
  *
@@ -292,13 +292,14 @@ export const Card = forwardRef<HTMLDivElement, CardProps>(
292
292
  { "hds-card--slim": variant === "slim" },
293
293
  { "hds-card--color-white": effectiveColor === "white" },
294
294
  { "hds-card--color-light-grey-fill": effectiveColor === "light-grey-fill" },
295
+ { "hds-card--color-dark": effectiveColor === "dark" },
295
296
  { "hds-card--color-darker": effectiveColor === "darker" },
296
297
  { "hds-card--image-position-right": imagePosition === "right" },
297
298
  className as undefined,
298
299
  )}
299
300
  ref={ref}
300
301
  >
301
- {variant === "full-width" ? (
302
+ {variant === "full-width" || variant === "focus" ? (
302
303
  <div className={clsx("hds-card__layoutwrapper", className as undefined)}>{children}</div>
303
304
  ) : (
304
305
  children