@producteca/producteca-ui-kit 1.11.0 → 1.12.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.
@@ -2,15 +2,16 @@ import { default as React } from 'react';
2
2
 
3
3
  interface ButtonProps {
4
4
  label: string;
5
- variant?: 'primary' | 'secondary' | 'success' | 'error';
6
5
  outline?: boolean;
7
6
  size?: 'sm' | 'md' | 'lg';
8
7
  type?: 'submit' | 'button' | 'reset';
8
+ variant?: 'primary' | 'secondary' | 'success' | 'error' | 'link';
9
9
  disabled?: boolean;
10
+ className?: string;
10
11
  onClick?: () => void;
11
- rightAdornment?: React.ReactNode;
12
12
  leftAdornment?: React.ReactNode;
13
+ rightAdornment?: React.ReactNode;
13
14
  }
14
- export declare const Button: ({ type, variant, size, label, outline, leftAdornment, rightAdornment, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const Button: ({ type, variant, size, label, outline, leftAdornment, rightAdornment, className, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
15
16
  export type { ButtonProps };
16
17
  export default Button;
@@ -0,0 +1,11 @@
1
+
2
+ interface CopyButtonProps {
3
+ onClick?: () => void;
4
+ copyText?: string;
5
+ copiedText?: string;
6
+ textToCopy?: string;
7
+ resetTime?: number;
8
+ }
9
+ export declare const CopyButton: ({ onClick, copyText, copiedText, textToCopy, resetTime, ...props }: CopyButtonProps) => import("react/jsx-runtime").JSX.Element;
10
+ export type { CopyButtonProps };
11
+ export default CopyButton;
@@ -0,0 +1 @@
1
+ export { CopyButton, type CopyButtonProps } from './copyButton';
@@ -1,2 +1,3 @@
1
1
  export * from './emptyState/emptyState';
2
2
  export * from './actionBar/actionBar';
3
+ export * from './copyButton/copyButton';
@@ -88,5 +88,16 @@ declare const _default: {
88
88
  required: string;
89
89
  notValid: string;
90
90
  };
91
+ copyButton: {
92
+ copy: string;
93
+ copied: string;
94
+ textToCopy: string;
95
+ textCopied: string;
96
+ copyKey: string;
97
+ copiedKey: string;
98
+ custom: string;
99
+ running: string;
100
+ alert: string;
101
+ };
91
102
  };
92
103
  export default _default;