@postenbring/hedwig-react 2.1.0 → 2.1.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/dist/index.mjs CHANGED
@@ -188,7 +188,7 @@ import {
188
188
  CardBodyHeaderTitle,
189
189
  CardMedia,
190
190
  CardMediaImg
191
- } from "./chunk-LDZIJR2D.mjs";
191
+ } from "./chunk-IC2K5VZJ.mjs";
192
192
  import "./chunk-2YL2MVWN.mjs";
193
193
  import {
194
194
  DescriptionList
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postenbring/hedwig-react",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -29,9 +29,9 @@
29
29
  "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
30
30
  },
31
31
  "dependencies": {
32
- "@radix-ui/react-popover": "1.1.6",
33
- "@radix-ui/react-slot": "1.1.2",
34
- "@postenbring/hedwig-css": "2.1.0"
32
+ "@radix-ui/react-popover": "1.1.13",
33
+ "@radix-ui/react-slot": "1.2.2",
34
+ "@postenbring/hedwig-css": "2.1.2"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"
package/src/card/card.tsx CHANGED
@@ -267,7 +267,16 @@ export type CardProps = CardSlimAndMiniatureProps | CardFocusProps | CardFullwid
267
267
 
268
268
  export const Card = forwardRef<HTMLDivElement, CardProps>(
269
269
  (
270
- { as: Tag = "section", asChild, className, children, variant, color, imagePosition, ...rest },
270
+ {
271
+ as: Tag = "section",
272
+ asChild,
273
+ className,
274
+ children,
275
+ variant = "slim",
276
+ color,
277
+ imagePosition,
278
+ ...rest
279
+ },
271
280
  ref,
272
281
  ) => {
273
282
  const Component = asChild ? Slot : Tag;
@@ -280,6 +289,7 @@ export const Card = forwardRef<HTMLDivElement, CardProps>(
280
289
  { "hds-card--full-width": variant === "full-width" },
281
290
  { "hds-card--miniature": variant === "miniature" },
282
291
  { "hds-card--focus": variant === "focus" },
292
+ { "hds-card--slim": variant === "slim" },
283
293
  { "hds-card--color-white": effectiveColor === "white" },
284
294
  { "hds-card--color-light-grey-fill": effectiveColor === "light-grey-fill" },
285
295
  { "hds-card--color-darker": effectiveColor === "darker" },