lambda-ui-components 1.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 AletzMan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,154 @@
1
+ # Lambda UI Components
2
+
3
+ [![npm version](https://img.shields.io/npm/v/lambda-ui-components.svg)](https://www.npmjs.com/package/lambda-ui-components)
4
+ [![license](https://img.shields.io/npm/l/lambda-ui-components.svg)](LICENSE)
5
+ [![downloads](https://img.shields.io/npm/dm/lambda-ui-components.svg)](https://www.npmjs.com/package/lambda-ui-components)
6
+ [![GitHub Repo stars](https://img.shields.io/github/stars/AletzMan/lambda-ui-components?style=social)](https://github.com/AletzMan/lambda-ui-components)
7
+ [![React 18+](https://img.shields.io/badge/react-18%2B-blue.svg)](https://react.dev/)
8
+ [![Build Status](https://github.com/AletzMan/lambda-ui-components/actions/workflows/main.yml/badge.svg)](https://github.com/AletzMan/lambda-ui-components/actions)
9
+
10
+ Component library for React built with TypeScript, Framer Motion, and Vite. Includes a modern, themeable, and accessible set of UI primitives for rapid product development.
11
+
12
+ ## ✨ Características
13
+
14
+ - Componentes accesibles, tipados y listos para producción
15
+ - Soporte para dark mode y personalización por CSS variables
16
+ - Animaciones fluidas con Framer Motion
17
+ - Fácil integración con React 18+
18
+ - Incluye Skeleton, Button, Card, Input, Table, Modal, y más
19
+
20
+ ## 🚀 Instalación
21
+
22
+ ```sh
23
+ pnpm add lambda-ui-components
24
+ # o
25
+ npm install lambda-ui-components
26
+ ```
27
+
28
+ > **Nota:** Debes tener React 18+ y ReactDOM como peerDependencies en tu proyecto.
29
+
30
+ ## 🎨 Estilos globales recomendados
31
+
32
+ Para que los componentes de `lambda-ui-components` funcionen correctamente y evitar flashes de color al usar dark mode, agrega este snippet a tu CSS global (por ejemplo, en `globals.css` o el archivo global de tu proyecto):
33
+
34
+ ```css
35
+ body {
36
+ background-color: var(--background-color);
37
+ }
38
+ ```
39
+
40
+ Si quieres máxima compatibilidad con dark/light mode y variables:
41
+
42
+ ```css
43
+ html,
44
+ body {
45
+ background: #09090b;
46
+ color-scheme: dark;
47
+ }
48
+ html.light,
49
+ body.light {
50
+ background: #fff !important;
51
+ color-scheme: light;
52
+ }
53
+ ```
54
+
55
+ > **Nota:**
56
+ > No forzamos estos estilos desde la librería para no interferir con el diseño de tu app.
57
+ > Si usas un ThemeProvider, asegúrate de que sincroniza la clase `dark`/`light` en `<html>`.
58
+
59
+ ## 📦 Uso Básico
60
+
61
+ 1. **Importa los estilos globales una vez en tu entrypoint:**
62
+ ```js
63
+ import "lambda-ui-components/dist/index.css";
64
+ ```
65
+ 2. **Importa componentes individuales:**
66
+ ```jsx
67
+ import { Skeleton, Button, Card } from "lambda-ui-components";
68
+ ```
69
+
70
+ ### Ejemplo de uso
71
+
72
+ ```jsx
73
+ import "lambda-ui-components/dist/index.css";
74
+ import { Skeleton, Button, Card } from "lambda-ui-components";
75
+
76
+ function Demo() {
77
+ return (
78
+ <Card style={{ width: 320 }}>
79
+ <Skeleton width={80} height={16} animationType="wave" />
80
+ <Button variant="primary">Acción</Button>
81
+ </Card>
82
+ );
83
+ }
84
+ ```
85
+
86
+ ## 🧩 Componentes incluidos
87
+
88
+ - Accordion
89
+ - Alert
90
+ - Avatar
91
+ - Badge
92
+ - Breadcrumb
93
+ - Button
94
+ - Calendar
95
+ - Card
96
+ - Carousel
97
+ - Checkbox
98
+ - CodeBlock
99
+ - ColorPicker
100
+ - DatePicker
101
+ - Dialog
102
+ - Divider
103
+ - Drawer
104
+ - Dropdown
105
+ - FileUpload
106
+ - Flex
107
+ - Input
108
+ - InputNumber
109
+ - Join
110
+ - Link
111
+ - NavigationMenu
112
+ - Notification
113
+ - Pagination
114
+ - Progress
115
+ - Radio/RadioGroup
116
+ - Rating
117
+ - Select
118
+ - Skeleton
119
+ - Slider
120
+ - Splitter
121
+ - Stepper
122
+ - Switch
123
+ - Tab
124
+ - Table
125
+ - Tag
126
+ - TextArea
127
+ - Tooltip
128
+ - TreeView
129
+
130
+ ## 🎨 Temas y Personalización
131
+
132
+ - Usa CSS variables para sobrescribir colores y estilos globales.
133
+ - Soporte nativo para dark mode (`[data-theme="dark"]` y `[data-theme="light"]`).
134
+
135
+ ## ⚡ Peer Dependencies
136
+
137
+ - `react` >= 18
138
+ - `react-dom` >= 18
139
+ - (Opcional) `prismjs` para CodeBlock
140
+
141
+ ## 🤝 Contribuir
142
+
143
+ - Haz un fork y un PR con tu mejora o bugfix.
144
+ - Sigue la convención de componentes y estilos.
145
+
146
+ ---
147
+
148
+ ¡Disfruta construyendo con Lambda UI Components!
149
+
150
+ ## 📝 Licencia
151
+
152
+ Este proyecto está licenciado bajo la licencia MIT. Puedes usarlo libremente en proyectos personales y comerciales. Consulta el archivo LICENSE para más detalles.
153
+
154
+ Desarrollado por [BitCoder\_\_](https://alejandro-garcia.dev)