@producteca/producteca-ui-kit 1.10.1 → 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.
- package/dist/components/button/button.d.ts +4 -3
- package/dist/components/patterns/copyButton/copyButton.d.ts +11 -0
- package/dist/components/patterns/copyButton/index.d.ts +1 -0
- package/dist/components/patterns/index.d.ts +1 -0
- package/dist/favicon.svg +39 -18
- package/dist/locales/es.d.ts +11 -0
- package/dist/producteca-ui-kit.es.js +2541 -2466
- package/dist/producteca-ui-kit.umd.js +42 -42
- package/dist/style.css +1 -1
- package/package.json +7 -8
|
@@ -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';
|
package/dist/favicon.svg
CHANGED
|
@@ -1,22 +1,43 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
-
<!--
|
|
4
|
-
<circle cx="16" cy="16" r="16" fill="#
|
|
3
|
+
<!-- Fondo circular azul -->
|
|
4
|
+
<circle cx="16" cy="16" r="16" fill="#0045AD"/>
|
|
5
5
|
|
|
6
|
-
<!--
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
6
|
+
<!-- Patrón de puntos sutiles en el fondo -->
|
|
7
|
+
<circle cx="6" cy="6" r="0.8" fill="white" opacity="0.25"/>
|
|
8
|
+
<circle cx="26" cy="6" r="0.8" fill="white" opacity="0.25"/>
|
|
9
|
+
<circle cx="6" cy="26" r="0.8" fill="white" opacity="0.25"/>
|
|
10
|
+
<circle cx="26" cy="26" r="0.8" fill="white" opacity="0.25"/>
|
|
11
|
+
<circle cx="16" cy="4" r="0.5" fill="white" opacity="0.2"/>
|
|
12
|
+
<circle cx="16" cy="28" r="0.5" fill="white" opacity="0.2"/>
|
|
13
|
+
<circle cx="4" cy="16" r="0.5" fill="white" opacity="0.2"/>
|
|
14
|
+
<circle cx="28" cy="16" r="0.5" fill="white" opacity="0.2"/>
|
|
15
|
+
|
|
16
|
+
<!-- Líneas sutiles conectoras -->
|
|
17
|
+
<line x1="16" y1="4" x2="16" y2="7" stroke="white" stroke-width="0.3" opacity="0.2"/>
|
|
18
|
+
<line x1="16" y1="25" x2="16" y2="28" stroke="white" stroke-width="0.3" opacity="0.2"/>
|
|
19
|
+
<line x1="4" y1="16" x2="7" y2="16" stroke="white" stroke-width="0.3" opacity="0.2"/>
|
|
20
|
+
<line x1="25" y1="16" x2="28" y2="16" stroke="white" stroke-width="0.3" opacity="0.2"/>
|
|
21
|
+
|
|
22
|
+
<!-- Letra U redondeada y minimalista -->
|
|
23
|
+
<path
|
|
24
|
+
d="M9.5 11 v6.5
|
|
25
|
+
a4.5 4.5 0 0 0 9 0 v-6.5"
|
|
26
|
+
stroke="white"
|
|
27
|
+
stroke-width="3.2"
|
|
28
|
+
stroke-linecap="round"
|
|
29
|
+
stroke-linejoin="round"
|
|
30
|
+
fill="none"
|
|
31
|
+
/>
|
|
32
|
+
|
|
33
|
+
<!-- Letra I redondeada y minimalista -->
|
|
34
|
+
<line
|
|
35
|
+
x1="22.5"
|
|
36
|
+
y1="11"
|
|
37
|
+
x2="22.5"
|
|
38
|
+
y2="21"
|
|
39
|
+
stroke="white"
|
|
40
|
+
stroke-width="3.2"
|
|
41
|
+
stroke-linecap="round"
|
|
42
|
+
/>
|
|
22
43
|
</svg>
|
package/dist/locales/es.d.ts
CHANGED
|
@@ -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;
|