@bonprix-ds/react-wrapper-button 1.1.0 → 1.1.1

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.
@@ -0,0 +1,3 @@
1
+ import "./src/jsx";
2
+ export { default } from "./src/Button";
3
+ export type { Props as ButtonProps } from "./src/Button";
@@ -0,0 +1,15 @@
1
+ import React, { type ComponentProps, type ElementType } from "react";
2
+ import type { ButtonBaseProps } from "@bonprix-ds/react-button";
3
+ interface BaseProps extends ButtonBaseProps {
4
+ /** If `true`, the component cannot be used. A link (`component="a"`) loses its `href`; a custom `component` keeps it and leaves the tab order. */
5
+ disabled?: boolean;
6
+ }
7
+ export type Props<C extends ElementType = "button"> = BaseProps & {
8
+ /** The semantic component to render the Button. Preferrably `"button"`, `"a"` or something like `Link` from NextJS. Native props will be passed to this component. */
9
+ component?: C;
10
+ } & Omit<ComponentProps<C>, keyof BaseProps | "component">;
11
+ declare const Button: {
12
+ <C extends ElementType = "button">({ component, children, variant, size, icon, iconPosition, contentWidth, loading, disabled, ...props }: Props<C>): React.JSX.Element;
13
+ displayName: string;
14
+ };
15
+ export default Button;
@@ -0,0 +1,3 @@
1
+ import "@bonprix-ds/bpds-button/button.css";
2
+ declare const ButtonRegistration: () => null;
3
+ export default ButtonRegistration;
@@ -0,0 +1,8 @@
1
+ export {};
2
+ declare module "react" {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ "bpds-button": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & import("@bonprix-ds/bpds-button/constants").ButtonProps, HTMLElement>;
6
+ }
7
+ }
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonprix-ds/react-wrapper-button",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Button component, implemented as a React wrapper around bpds-button, for the Bonprix Design System.",
5
5
  "keywords": [],
6
6
  "license": "UNLICENSED",
@@ -42,13 +42,13 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@bonprix-ds/bpds-button": "1.1.0",
45
- "@bonprix-ds/utils": "0.5.0",
46
- "@bonprix-ds/react-icon": "1.3.1",
47
- "@bonprix-ds/react-button": "1.1.4"
45
+ "@bonprix-ds/react-button": "1.1.5",
46
+ "@bonprix-ds/react-icon": "1.3.2",
47
+ "@bonprix-ds/utils": "0.5.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/react": "19.3.0",
51
- "vite": "8.3.2",
51
+ "vite": "8.3.3",
52
52
  "@bonprix-ds/vite-config": "0.0.0"
53
53
  },
54
54
  "peerDependencies": {