@sector.siit/mlz-components 1.0.11 → 1.0.13
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/README.md +1 -14
- package/dist/index.d.ts +23 -3
- package/dist/index.esm.js +59 -1395
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +69 -1404
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -121,20 +121,6 @@ export default function RootLayout({
|
|
|
121
121
|
}
|
|
122
122
|
```
|
|
123
123
|
|
|
124
|
-
### En React / Vite
|
|
125
|
-
|
|
126
|
-
```tsx
|
|
127
|
-
import { Button } from '@sector.siit/mlz-components';
|
|
128
|
-
|
|
129
|
-
function App() {
|
|
130
|
-
return (
|
|
131
|
-
<Button variant="primary" size="md">
|
|
132
|
-
¡Hola Mundo!
|
|
133
|
-
</Button>
|
|
134
|
-
);
|
|
135
|
-
}
|
|
136
|
-
```
|
|
137
|
-
|
|
138
124
|
## 🎨 Personalización con Variables CSS
|
|
139
125
|
|
|
140
126
|
La librería utiliza variables CSS que puedes sobrescribir en tu proyecto:
|
|
@@ -375,6 +361,7 @@ git push origin main # 🚀 Publica a NPM + GitHub Release
|
|
|
375
361
|
|
|
376
362
|
- [🛠️ Developer Guide](./docs/DEVELOPER.md) - Guía completa para desarrolladores
|
|
377
363
|
- [🚀 CI/CD Documentation](./docs/CI-CD.md) - Sistema de deployments automatizados
|
|
364
|
+
- [⚡ Next.js Integration Guide](./docs/NEXTJS_GUIDE.md) - Guía completa para usar en Next.js
|
|
378
365
|
|
|
379
366
|
## 👥 Contributors
|
|
380
367
|
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,27 @@ interface ButtonProps extends React$2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
20
20
|
declare const Button: React$2.FC<ButtonProps>;
|
|
21
21
|
|
|
22
22
|
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
23
|
+
errorText?: string;
|
|
24
|
+
hasError?: boolean;
|
|
25
|
+
helperText?: string;
|
|
26
|
+
label?: string;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
placeholder?: string;
|
|
29
|
+
fullWidth?: boolean;
|
|
30
|
+
containerProps?: ContainerProp$1;
|
|
31
|
+
labelProps?: LabelProp$1;
|
|
32
|
+
helperTextProps?: HelperTextProp$1;
|
|
33
|
+
checkedIcon?: React.ReactNode;
|
|
34
|
+
}
|
|
35
|
+
interface ContainerProp$1 extends React.HTMLAttributes<HTMLDivElement> {
|
|
36
|
+
}
|
|
37
|
+
interface LabelProp$1 extends React.LabelHTMLAttributes<HTMLLabelElement> {
|
|
38
|
+
}
|
|
39
|
+
interface HelperTextProp$1 extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
40
|
+
}
|
|
41
|
+
declare const Input: React.FC<InputProps>;
|
|
42
|
+
|
|
43
|
+
interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
23
44
|
errorText?: string;
|
|
24
45
|
hasError?: boolean;
|
|
25
46
|
helperText?: string;
|
|
@@ -30,7 +51,6 @@ interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
|
30
51
|
containerProps?: ContainerProp;
|
|
31
52
|
labelProps?: LabelProp;
|
|
32
53
|
helperTextProps?: HelperTextProp;
|
|
33
|
-
checkedIcon?: React.ReactNode;
|
|
34
54
|
}
|
|
35
55
|
interface ContainerProp extends React.HTMLAttributes<HTMLDivElement> {
|
|
36
56
|
}
|
|
@@ -38,7 +58,7 @@ interface LabelProp extends React.LabelHTMLAttributes<HTMLLabelElement> {
|
|
|
38
58
|
}
|
|
39
59
|
interface HelperTextProp extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
40
60
|
}
|
|
41
|
-
declare const
|
|
61
|
+
declare const TextArea: React.FC<TextAreaProps>;
|
|
42
62
|
|
|
43
63
|
type ToastVariant$1 = "success" | "info" | "warning" | "error";
|
|
44
64
|
interface ToastProps {
|
|
@@ -14867,4 +14887,4 @@ interface UserCardProps {
|
|
|
14867
14887
|
}
|
|
14868
14888
|
declare function UserCard({ name, email, changeUser, editUser }: UserCardProps): JSX$1.Element;
|
|
14869
14889
|
|
|
14870
|
-
export { Button, type ButtonProps, Input, type InputProps, Toast, type ToastOptions, type ToastProps, ToastProvider, type ToastVariant$1 as ToastVariant, UserCard, type UserCardProps, showToast, toastError, toastInfo, toastSuccess, toastWarning, useToast };
|
|
14890
|
+
export { Button, type ButtonProps, Input, type InputProps, TextArea, type TextAreaProps, Toast, type ToastOptions, type ToastProps, ToastProvider, type ToastVariant$1 as ToastVariant, UserCard, type UserCardProps, showToast, toastError, toastInfo, toastSuccess, toastWarning, useToast };
|