@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/card/card.d.ts.map +1 -1
- package/dist/card/card.js +18 -1
- package/dist/card/card.js.map +1 -1
- package/dist/card/card.mjs +1 -1
- package/dist/card/index.js +18 -1
- package/dist/card/index.js.map +1 -1
- package/dist/card/index.mjs +1 -1
- package/dist/{chunk-LDZIJR2D.mjs → chunk-IC2K5VZJ.mjs} +19 -2
- package/dist/{chunk-LDZIJR2D.mjs.map → chunk-IC2K5VZJ.mjs.map} +1 -1
- package/dist/index.js +18 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
- package/src/card/card.tsx +11 -1
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@postenbring/hedwig-react",
|
|
3
|
-
"version": "2.1.
|
|
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.
|
|
33
|
-
"@radix-ui/react-slot": "1.
|
|
34
|
-
"@postenbring/hedwig-css": "2.1.
|
|
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
|
-
{
|
|
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" },
|