@bonprix-ds/react-wrapper-link 1.0.0 → 1.1.0
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.ts +3 -0
- package/dist/src/Link.d.ts +11 -0
- package/dist/src/LinkRegistration.d.ts +3 -0
- package/dist/src/jsx.d.ts +8 -0
- package/package.json +4 -4
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { type ComponentProps, type ElementType } from "react";
|
|
2
|
+
import type { LinkBaseProps } from "@bonprix-ds/react-link";
|
|
3
|
+
export type Props<C extends ElementType = "a"> = LinkBaseProps & {
|
|
4
|
+
/** The semantic component to render the Link. Preferably `"a"`, `"button"` or something like `Link` from NextJS. Native props will be passed to this component. */
|
|
5
|
+
component?: C;
|
|
6
|
+
} & Omit<ComponentProps<C>, keyof LinkBaseProps | "component">;
|
|
7
|
+
declare const Link: {
|
|
8
|
+
<C extends ElementType = "a">({ component, children, showArrow, arrowPosition, small, hideUnderline, inverted, srLabel, ...props }: Props<C>): React.JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export default Link;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bonprix-ds/react-wrapper-link",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Link component, implemented as a React wrapper around bpds-link, for the Bonprix Design System.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"provenance": true
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@bonprix-ds/
|
|
45
|
-
"@bonprix-ds/react-
|
|
46
|
-
"@bonprix-ds/
|
|
44
|
+
"@bonprix-ds/bpds-link": "1.1.0",
|
|
45
|
+
"@bonprix-ds/react-icon": "1.3.2",
|
|
46
|
+
"@bonprix-ds/react-link": "1.0.6"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/react": "19.3.0",
|