@obosbbl/grunnmuren-react 2.0.0-canary.43 → 2.0.0-canary.44
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.d.mts +6 -6
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -811,13 +811,13 @@ declare const cardVariants: (props?: ({
|
|
|
811
811
|
} | null | undefined;
|
|
812
812
|
})) | undefined) => string;
|
|
813
813
|
declare const Card: ({ children, className: _className, variant, ...restProps }: CardProps) => react_jsx_runtime.JSX.Element;
|
|
814
|
-
type
|
|
815
|
-
|
|
816
|
-
children: React.ReactNode;
|
|
817
|
-
};
|
|
818
|
-
type CardLinkProps = {
|
|
814
|
+
type CardLinkWrapperProps = {
|
|
815
|
+
children?: React.ReactNode;
|
|
819
816
|
className?: string;
|
|
820
|
-
} &
|
|
817
|
+
} & {
|
|
818
|
+
[K in keyof Omit<LinkProps, 'className' | 'children'>]?: never;
|
|
819
|
+
};
|
|
820
|
+
type CardLinkProps = (Omit<LinkProps, 'href'> & Required<Pick<LinkProps, 'href'>>) | CardLinkWrapperProps;
|
|
821
821
|
/**
|
|
822
822
|
* A component that creates a clickable area on a card.
|
|
823
823
|
* It can be used either as a wrapper around a link or as a standalone link.
|
package/dist/index.mjs
CHANGED
|
@@ -1188,9 +1188,9 @@ const cardLinkVariants = cva({
|
|
|
1188
1188
|
// because it still renders with role="link" and tabindex="0" which makes it focusable.
|
|
1189
1189
|
// So we need to render a div instead.
|
|
1190
1190
|
/*#__PURE__*/ jsx("div", {
|
|
1191
|
+
...restProps,
|
|
1191
1192
|
"data-slot": "card-link",
|
|
1192
|
-
className: className
|
|
1193
|
-
...restProps
|
|
1193
|
+
className: className
|
|
1194
1194
|
});
|
|
1195
1195
|
};
|
|
1196
1196
|
|