@adamosuiteservices/ui 2.11.15 → 2.11.17

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.
Files changed (41) hide show
  1. package/dist/colors.css +1 -1
  2. package/dist/styles.css +1 -1
  3. package/dist/themes.css +1 -1
  4. package/docs/AI-GUIDE.md +321 -321
  5. package/docs/components/layout/sidebar.md +399 -399
  6. package/docs/components/layout/toaster.md +436 -436
  7. package/docs/components/ui/accordion-rounded.md +584 -584
  8. package/docs/components/ui/accordion.md +269 -269
  9. package/docs/components/ui/button-group.md +984 -984
  10. package/docs/components/ui/button.md +1137 -1137
  11. package/docs/components/ui/calendar.md +1159 -1159
  12. package/docs/components/ui/card.md +1455 -1455
  13. package/docs/components/ui/checkbox.md +292 -292
  14. package/docs/components/ui/collapsible.md +323 -323
  15. package/docs/components/ui/command.md +454 -454
  16. package/docs/components/ui/context-menu.md +540 -540
  17. package/docs/components/ui/dialog.md +628 -628
  18. package/docs/components/ui/dropdown-menu.md +709 -709
  19. package/docs/components/ui/field.md +706 -706
  20. package/docs/components/ui/hover-card.md +446 -446
  21. package/docs/components/ui/input.md +362 -362
  22. package/docs/components/ui/kbd.md +434 -434
  23. package/docs/components/ui/label.md +359 -359
  24. package/docs/components/ui/pagination.md +650 -650
  25. package/docs/components/ui/popover.md +536 -536
  26. package/docs/components/ui/progress.md +182 -182
  27. package/docs/components/ui/radio-group.md +311 -311
  28. package/docs/components/ui/select.md +352 -352
  29. package/docs/components/ui/separator.md +214 -214
  30. package/docs/components/ui/sheet.md +142 -142
  31. package/docs/components/ui/skeleton.md +140 -140
  32. package/docs/components/ui/slider.md +341 -341
  33. package/docs/components/ui/spinner.md +170 -170
  34. package/docs/components/ui/switch.md +408 -408
  35. package/docs/components/ui/tabs-underline.md +106 -106
  36. package/docs/components/ui/tabs.md +122 -122
  37. package/docs/components/ui/textarea.md +243 -243
  38. package/docs/components/ui/toggle.md +237 -237
  39. package/docs/components/ui/tooltip.md +317 -317
  40. package/docs/components/ui/typography.md +280 -280
  41. package/package.json +1 -1
@@ -1,280 +1,280 @@
1
- # Typography
2
-
3
- Sistema de estilos de texto con variantes de tamaño. Wrapper flexible con soporte `asChild`.
4
-
5
- ## Importación
6
-
7
- ```tsx
8
- import { Typography } from "@adamosuiteservices/ui/typography";
9
- ```
10
-
11
- ## Anatomía
12
-
13
- ```tsx
14
- <Typography variant="md">Default paragraph text.</Typography>
15
- ```
16
-
17
- **Componentes**: 1 (Typography)
18
-
19
- ## Props
20
-
21
- | Prop | Tipo | Default | Descripción |
22
- | ----------- | ------------------------------------------- | ----------- | --------------------------------------- |
23
- | `variant` | `"lg" \| "md" \| "sm" \| "xs" \| "caption"` | `"sm"` | Tamaño del texto |
24
- | `color` | `"default" \| "muted"` | `"default"` | Color del texto |
25
- | `asChild` | `boolean` | `false` | Renderiza como child element (usa Slot) |
26
- | `className` | `string` | - | Clases CSS adicionales |
27
-
28
- **Nota**: Acepta todas las props de `<p>` cuando `asChild=false`
29
-
30
- ## Variantes
31
-
32
- ### Tamaños
33
-
34
- | Variante | Font Size | Uso |
35
- | --------- | ------------- | -------------------------- |
36
- | `lg` | `text-lg` | Headings, texto enfatizado |
37
- | `md` | `text-base` | Body text |
38
- | `sm` | `text-sm` | Secondary text, labels (default) |
39
- | `xs` | `text-xs` | Fine print, detalles |
40
- | `caption` | `text-[11px]` | Captions, metadata |
41
-
42
- ### Colores
43
-
44
- | Color | Clase CSS | Uso |
45
- | --------- | ------------------------- | -------------------------- |
46
- | `default` | `text-foreground` | Texto principal (default) |
47
- | `muted` | `text-muted-foreground` | Texto secundario |
48
-
49
- ## Patrones de Uso
50
-
51
- ### Básico
52
-
53
- ```tsx
54
- import { Typography } from "@adamosuiteservices/ui/typography";
55
-
56
- <Typography>Default paragraph with no variant.</Typography>
57
- <Typography variant="lg">Large text for emphasis.</Typography>
58
- <Typography variant="sm">Small secondary text.</Typography>
59
- ```
60
-
61
- ### Como Headings
62
-
63
- ```tsx
64
- // H1
65
- <Typography asChild variant="lg">
66
- <h1 className="scroll-m-20 text-4xl font-extrabold tracking-tight">
67
- Main Page Heading
68
- </h1>
69
- </Typography>
70
-
71
- // H2
72
- <Typography asChild variant="lg">
73
- <h2 className="scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight">
74
- Section Heading
75
- </h2>
76
- </Typography>
77
-
78
- // H3
79
- <Typography asChild variant="md">
80
- <h3 className="scroll-m-20 text-2xl font-semibold tracking-tight">
81
- Subsection
82
- </h3>
83
- </Typography>
84
-
85
- // H4
86
- <Typography asChild variant="md">
87
- <h4 className="scroll-m-20 text-xl font-semibold tracking-tight">
88
- Small Heading
89
- </h4>
90
- </Typography>
91
- ```
92
-
93
- ### Paragraph
94
-
95
- ```tsx
96
- <Typography asChild variant="md">
97
- <p className="leading-7 [&:not(:first-child)]:mt-6">
98
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
99
- </p>
100
- </Typography>
101
- ```
102
-
103
- ### Blockquote
104
-
105
- ```tsx
106
- <Typography asChild variant="md">
107
- <blockquote className="mt-6 border-l-2 pl-6 italic">
108
- "This is a quote with proper styling and emphasis."
109
- </blockquote>
110
- </Typography>
111
- ```
112
-
113
- ### Inline Code
114
-
115
- ```tsx
116
- <Typography asChild variant="sm">
117
- <code className="bg-muted relative rounded px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold">
118
- @radix-ui/react-alert-dialog
119
- </code>
120
- </Typography>
121
- ```
122
-
123
- ### Lead Text
124
-
125
- ```tsx
126
- <Typography asChild variant="lg">
127
- <p className="text-xl text-muted-foreground">
128
- An introductory paragraph that stands out from regular body text.
129
- </p>
130
- </Typography>
131
- ```
132
-
133
- ### Small / Fine Print
134
-
135
- ```tsx
136
- <Typography asChild variant="sm">
137
- <small className="text-sm font-medium leading-none">Email address</small>
138
- </Typography>
139
- ```
140
-
141
- ### Muted Text
142
-
143
- ```tsx
144
- <Typography asChild variant="sm">
145
- <p className="text-sm text-muted-foreground">
146
- Secondary information with reduced emphasis.
147
- </p>
148
- </Typography>
149
- ```
150
-
151
- ### Caption
152
-
153
- ```tsx
154
- <Typography variant="caption">
155
- Image caption or metadata · Published 2 hours ago
156
- </Typography>
157
- ```
158
-
159
- ### Color Variants
160
-
161
- ```tsx
162
- {/* Default color - Primary text */}
163
- <Typography variant="md" color="default">
164
- This is primary text with default color (foreground).
165
- </Typography>
166
-
167
- {/* Muted color - Secondary text */}
168
- <Typography variant="md" color="muted">
169
- This is secondary text with muted color (muted-foreground).
170
- </Typography>
171
-
172
- {/* Combining with sizes */}
173
- <Typography variant="lg" color="default">
174
- Large heading text
175
- </Typography>
176
-
177
- <Typography variant="sm" color="muted">
178
- Small secondary information
179
- </Typography>
180
- ```
181
-
182
- ## Casos de Uso
183
-
184
- **Headings**: H1-H6 con tamaños consistentes
185
- **Body text**: Párrafos y contenido principal
186
- **Labels**: Etiquetas de formularios
187
- **Captions**: Descripciones de imágenes, metadata
188
- **Fine print**: Términos, condiciones, notas
189
- **Quotes**: Citas y testimonios
190
- **Secondary text**: Información complementaria con `color="muted"`
191
-
192
- ## Mejores Prácticas
193
-
194
- ### Uso de Colores
195
-
196
- ```tsx
197
- {/* ✅ Correcto - Color default para contenido principal */}
198
- <Typography variant="md" color="default">
199
- This is the main content that users should read.
200
- </Typography>
201
-
202
- {/* ✅ Correcto - Color muted para información secundaria */}
203
- <Typography variant="sm" color="muted">
204
- Optional description or helper text.
205
- </Typography>
206
-
207
- {/* ✅ Correcto - Combinar tamaño y color apropiadamente */}
208
- <div>
209
- <Typography variant="lg" color="default">Main Heading</Typography>
210
- <Typography variant="sm" color="muted">Subtitle or description</Typography>
211
- </div>
212
-
213
- {/* ⚠️ Evitar - Color muted en contenido principal */}
214
- <Typography variant="md" color="muted">
215
- Important information that should be easily readable
216
- </Typography>
217
- ```
218
-
219
- ### Jerarquía Visual
220
-
221
- ```tsx
222
- {/* ✅ Correcto - Jerarquía clara con tamaño y color */}
223
- <article>
224
- <Typography variant="lg" color="default">Article Title</Typography>
225
- <Typography variant="sm" color="muted">Published 2 hours ago</Typography>
226
- <Typography variant="md" color="default">
227
- Article content goes here with proper emphasis.
228
- </Typography>
229
- </article>
230
-
231
- {/* ✅ Correcto - Lista con estados */}
232
- <div>
233
- <Typography variant="md" color="default">Active item</Typography>
234
- <Typography variant="md" color="muted">Inactive item</Typography>
235
- </div>
236
- ```
237
-
238
- ## Estilos Base
239
-
240
- ### Tamaños de Texto
241
-
242
- - **lg**: 18px (text-lg)
243
- - **md**: 16px (text-base)
244
- - **sm**: 14px (text-sm) - **default**
245
- - **xs**: 12px (text-xs)
246
- - **caption**: 11px (text-[11px])
247
-
248
- ### Colores de Texto
249
-
250
- - **default**: text-foreground - **default**
251
- - **muted**: text-muted-foreground
252
-
253
- ## Accesibilidad
254
-
255
- - ✅ **Semantic HTML**: Usa `asChild` con elementos semánticos apropiados
256
- - ✅ **Heading hierarchy**: Mantén orden lógico de headings (H1 → H2 → H3)
257
- - ✅ **Contrast**: Asegura contraste suficiente con backgrounds
258
- - ⚠️ **No usar solo para estilo**: Usa elementos semánticos apropiados
259
-
260
- ## Notas de Implementación
261
-
262
- - **CVA**: Variantes con class-variance-authority
263
- - **Slot**: Usa `@radix-ui/react-slot` para `asChild`
264
- - **Default element**: `<p>` cuando `asChild=false`
265
- - **Default variants**: `variant="sm"` y `color="default"`
266
- - **Data attribute**: `data-slot="typography"` para identificación
267
- - **Color variants**: Incluye colores default (foreground) y muted (muted-foreground)
268
- - **Extensibilidad**: Combina con utility classes para estilos adicionales (weight, spacing, etc.)
269
-
270
- ## Troubleshooting
271
-
272
- **Variant no aplica**: Verifica que variant esté entre las opciones válidas
273
- **asChild no funciona**: Asegura que child sea un elemento válido, no texto plano
274
- **Line height incorrecto**: Typography define line-heights base, pueden ser sobrescritos con className
275
- **No semantic HTML**: Usa `asChild` con elementos apropiados (h1, h2, p, etc.)
276
-
277
- ## Referencias
278
-
279
- - **shadcn/ui Typography**: <https://ui.shadcn.com/docs/components/typography>
280
- - **Tailwind Typography**: <https://tailwindcss.com/docs/typography-plugin>
1
+ # Typography
2
+
3
+ Sistema de estilos de texto con variantes de tamaño. Wrapper flexible con soporte `asChild`.
4
+
5
+ ## Importación
6
+
7
+ ```tsx
8
+ import { Typography } from "@adamosuiteservices/ui/typography";
9
+ ```
10
+
11
+ ## Anatomía
12
+
13
+ ```tsx
14
+ <Typography variant="md">Default paragraph text.</Typography>
15
+ ```
16
+
17
+ **Componentes**: 1 (Typography)
18
+
19
+ ## Props
20
+
21
+ | Prop | Tipo | Default | Descripción |
22
+ | ----------- | ------------------------------------------- | ----------- | --------------------------------------- |
23
+ | `variant` | `"lg" \| "md" \| "sm" \| "xs" \| "caption"` | `"sm"` | Tamaño del texto |
24
+ | `color` | `"default" \| "muted"` | `"default"` | Color del texto |
25
+ | `asChild` | `boolean` | `false` | Renderiza como child element (usa Slot) |
26
+ | `className` | `string` | - | Clases CSS adicionales |
27
+
28
+ **Nota**: Acepta todas las props de `<p>` cuando `asChild=false`
29
+
30
+ ## Variantes
31
+
32
+ ### Tamaños
33
+
34
+ | Variante | Font Size | Uso |
35
+ | --------- | ------------- | -------------------------- |
36
+ | `lg` | `text-lg` | Headings, texto enfatizado |
37
+ | `md` | `text-base` | Body text |
38
+ | `sm` | `text-sm` | Secondary text, labels (default) |
39
+ | `xs` | `text-xs` | Fine print, detalles |
40
+ | `caption` | `text-[11px]` | Captions, metadata |
41
+
42
+ ### Colores
43
+
44
+ | Color | Clase CSS | Uso |
45
+ | --------- | ------------------------- | -------------------------- |
46
+ | `default` | `text-foreground` | Texto principal (default) |
47
+ | `muted` | `text-muted-foreground` | Texto secundario |
48
+
49
+ ## Patrones de Uso
50
+
51
+ ### Básico
52
+
53
+ ```tsx
54
+ import { Typography } from "@adamosuiteservices/ui/typography";
55
+
56
+ <Typography>Default paragraph with no variant.</Typography>
57
+ <Typography variant="lg">Large text for emphasis.</Typography>
58
+ <Typography variant="sm">Small secondary text.</Typography>
59
+ ```
60
+
61
+ ### Como Headings
62
+
63
+ ```tsx
64
+ // H1
65
+ <Typography asChild variant="lg">
66
+ <h1 className="scroll-m-20 text-4xl font-extrabold tracking-tight">
67
+ Main Page Heading
68
+ </h1>
69
+ </Typography>
70
+
71
+ // H2
72
+ <Typography asChild variant="lg">
73
+ <h2 className="scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight">
74
+ Section Heading
75
+ </h2>
76
+ </Typography>
77
+
78
+ // H3
79
+ <Typography asChild variant="md">
80
+ <h3 className="scroll-m-20 text-2xl font-semibold tracking-tight">
81
+ Subsection
82
+ </h3>
83
+ </Typography>
84
+
85
+ // H4
86
+ <Typography asChild variant="md">
87
+ <h4 className="scroll-m-20 text-xl font-semibold tracking-tight">
88
+ Small Heading
89
+ </h4>
90
+ </Typography>
91
+ ```
92
+
93
+ ### Paragraph
94
+
95
+ ```tsx
96
+ <Typography asChild variant="md">
97
+ <p className="leading-7 [&:not(:first-child)]:mt-6">
98
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit.
99
+ </p>
100
+ </Typography>
101
+ ```
102
+
103
+ ### Blockquote
104
+
105
+ ```tsx
106
+ <Typography asChild variant="md">
107
+ <blockquote className="mt-6 border-l-2 pl-6 italic">
108
+ "This is a quote with proper styling and emphasis."
109
+ </blockquote>
110
+ </Typography>
111
+ ```
112
+
113
+ ### Inline Code
114
+
115
+ ```tsx
116
+ <Typography asChild variant="sm">
117
+ <code className="bg-muted relative rounded px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold">
118
+ @radix-ui/react-alert-dialog
119
+ </code>
120
+ </Typography>
121
+ ```
122
+
123
+ ### Lead Text
124
+
125
+ ```tsx
126
+ <Typography asChild variant="lg">
127
+ <p className="text-xl text-muted-foreground">
128
+ An introductory paragraph that stands out from regular body text.
129
+ </p>
130
+ </Typography>
131
+ ```
132
+
133
+ ### Small / Fine Print
134
+
135
+ ```tsx
136
+ <Typography asChild variant="sm">
137
+ <small className="text-sm font-medium leading-none">Email address</small>
138
+ </Typography>
139
+ ```
140
+
141
+ ### Muted Text
142
+
143
+ ```tsx
144
+ <Typography asChild variant="sm">
145
+ <p className="text-sm text-muted-foreground">
146
+ Secondary information with reduced emphasis.
147
+ </p>
148
+ </Typography>
149
+ ```
150
+
151
+ ### Caption
152
+
153
+ ```tsx
154
+ <Typography variant="caption">
155
+ Image caption or metadata · Published 2 hours ago
156
+ </Typography>
157
+ ```
158
+
159
+ ### Color Variants
160
+
161
+ ```tsx
162
+ {/* Default color - Primary text */}
163
+ <Typography variant="md" color="default">
164
+ This is primary text with default color (foreground).
165
+ </Typography>
166
+
167
+ {/* Muted color - Secondary text */}
168
+ <Typography variant="md" color="muted">
169
+ This is secondary text with muted color (muted-foreground).
170
+ </Typography>
171
+
172
+ {/* Combining with sizes */}
173
+ <Typography variant="lg" color="default">
174
+ Large heading text
175
+ </Typography>
176
+
177
+ <Typography variant="sm" color="muted">
178
+ Small secondary information
179
+ </Typography>
180
+ ```
181
+
182
+ ## Casos de Uso
183
+
184
+ **Headings**: H1-H6 con tamaños consistentes
185
+ **Body text**: Párrafos y contenido principal
186
+ **Labels**: Etiquetas de formularios
187
+ **Captions**: Descripciones de imágenes, metadata
188
+ **Fine print**: Términos, condiciones, notas
189
+ **Quotes**: Citas y testimonios
190
+ **Secondary text**: Información complementaria con `color="muted"`
191
+
192
+ ## Mejores Prácticas
193
+
194
+ ### Uso de Colores
195
+
196
+ ```tsx
197
+ {/* ✅ Correcto - Color default para contenido principal */}
198
+ <Typography variant="md" color="default">
199
+ This is the main content that users should read.
200
+ </Typography>
201
+
202
+ {/* ✅ Correcto - Color muted para información secundaria */}
203
+ <Typography variant="sm" color="muted">
204
+ Optional description or helper text.
205
+ </Typography>
206
+
207
+ {/* ✅ Correcto - Combinar tamaño y color apropiadamente */}
208
+ <div>
209
+ <Typography variant="lg" color="default">Main Heading</Typography>
210
+ <Typography variant="sm" color="muted">Subtitle or description</Typography>
211
+ </div>
212
+
213
+ {/* ⚠️ Evitar - Color muted en contenido principal */}
214
+ <Typography variant="md" color="muted">
215
+ Important information that should be easily readable
216
+ </Typography>
217
+ ```
218
+
219
+ ### Jerarquía Visual
220
+
221
+ ```tsx
222
+ {/* ✅ Correcto - Jerarquía clara con tamaño y color */}
223
+ <article>
224
+ <Typography variant="lg" color="default">Article Title</Typography>
225
+ <Typography variant="sm" color="muted">Published 2 hours ago</Typography>
226
+ <Typography variant="md" color="default">
227
+ Article content goes here with proper emphasis.
228
+ </Typography>
229
+ </article>
230
+
231
+ {/* ✅ Correcto - Lista con estados */}
232
+ <div>
233
+ <Typography variant="md" color="default">Active item</Typography>
234
+ <Typography variant="md" color="muted">Inactive item</Typography>
235
+ </div>
236
+ ```
237
+
238
+ ## Estilos Base
239
+
240
+ ### Tamaños de Texto
241
+
242
+ - **lg**: 18px (text-lg)
243
+ - **md**: 16px (text-base)
244
+ - **sm**: 14px (text-sm) - **default**
245
+ - **xs**: 12px (text-xs)
246
+ - **caption**: 11px (text-[11px])
247
+
248
+ ### Colores de Texto
249
+
250
+ - **default**: text-foreground - **default**
251
+ - **muted**: text-muted-foreground
252
+
253
+ ## Accesibilidad
254
+
255
+ - ✅ **Semantic HTML**: Usa `asChild` con elementos semánticos apropiados
256
+ - ✅ **Heading hierarchy**: Mantén orden lógico de headings (H1 → H2 → H3)
257
+ - ✅ **Contrast**: Asegura contraste suficiente con backgrounds
258
+ - ⚠️ **No usar solo para estilo**: Usa elementos semánticos apropiados
259
+
260
+ ## Notas de Implementación
261
+
262
+ - **CVA**: Variantes con class-variance-authority
263
+ - **Slot**: Usa `@radix-ui/react-slot` para `asChild`
264
+ - **Default element**: `<p>` cuando `asChild=false`
265
+ - **Default variants**: `variant="sm"` y `color="default"`
266
+ - **Data attribute**: `data-slot="typography"` para identificación
267
+ - **Color variants**: Incluye colores default (foreground) y muted (muted-foreground)
268
+ - **Extensibilidad**: Combina con utility classes para estilos adicionales (weight, spacing, etc.)
269
+
270
+ ## Troubleshooting
271
+
272
+ **Variant no aplica**: Verifica que variant esté entre las opciones válidas
273
+ **asChild no funciona**: Asegura que child sea un elemento válido, no texto plano
274
+ **Line height incorrecto**: Typography define line-heights base, pueden ser sobrescritos con className
275
+ **No semantic HTML**: Usa `asChild` con elementos apropiados (h1, h2, p, etc.)
276
+
277
+ ## Referencias
278
+
279
+ - **shadcn/ui Typography**: <https://ui.shadcn.com/docs/components/typography>
280
+ - **Tailwind Typography**: <https://tailwindcss.com/docs/typography-plugin>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adamosuiteservices/ui",
3
- "version": "2.11.15",
3
+ "version": "2.11.17",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",