@yusufalperendumlu/component-library 0.0.10 → 0.0.12

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 CHANGED
@@ -26,12 +26,12 @@ type BadgeProps = {
26
26
 
27
27
  declare const Badge: React$1.FC<BadgeProps>;
28
28
 
29
- type IButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
29
+ type IButtonProps = React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
30
30
  className?: string;
31
31
  variant: 'primary' | 'secondary' | 'outline' | 'danger';
32
32
  size?: 'small' | 'medium' | 'large';
33
33
  border?: 'primary' | 'secondary' | 'outline' | 'danger';
34
- title: string;
34
+ title: React$1.ReactNode;
35
35
  };
36
36
 
37
37
  declare const Button: ({ variant, size, border, title, className, ...props }: IButtonProps) => react_jsx_runtime.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yusufalperendumlu/component-library",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,7 +1,9 @@
1
+ import React from 'react';
2
+
1
3
  export type IButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
2
4
  className?: string;
3
5
  variant: 'primary' | 'secondary' | 'outline' | 'danger';
4
6
  size?: 'small' | 'medium' | 'large';
5
7
  border?: 'primary' | 'secondary' | 'outline' | 'danger';
6
- title: string;
8
+ title: React.ReactNode;
7
9
  };