@adamosuiteservices/ui 2.10.12 → 2.10.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/dist/accordion-rounded.cjs +7 -7
- package/dist/accordion-rounded.js +1 -1
- package/dist/colors.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/table.cjs +5 -5
- package/dist/table.js +2 -2
- package/dist/tailwind-colors.css +1 -1
- package/dist/tailwind-theme.css +1 -1
- package/dist/themes.css +1 -1
- package/dist/tooltip.cjs +5 -4
- package/dist/tooltip.js +4 -3
- package/dist/types/theme.type.d.ts +1 -1
- package/docs/components/ui/accordion-rounded.md +7 -7
- package/docs/components/ui/accordion.md +2 -2
- package/docs/components/ui/alert.md +3 -3
- package/docs/components/ui/avatar.md +10 -10
- package/docs/components/ui/badge.md +10 -53
- package/docs/components/ui/button.md +1 -1
- package/docs/components/ui/calendar.md +1 -1
- package/docs/components/ui/combobox.md +7 -7
- package/docs/components/ui/hover-card.md +1 -1
- package/docs/components/ui/icon.md +12 -12
- package/docs/components/ui/input-group.md +9 -14
- package/docs/components/ui/popover.md +2 -2
- package/docs/components/ui/spinner.md +1 -1
- package/docs/components/ui/table.md +1 -1
- package/docs/components/ui/tooltip.md +3 -3
- package/docs/components/ui/typography.md +1 -1
- package/package.json +1 -1
|
@@ -84,7 +84,7 @@ Usa clases de texto Tailwind para controlar el tamaño del icono. Se pueden comb
|
|
|
84
84
|
<Icon symbol="star" className="adm:text-5xl" /> {/* ~48px */}
|
|
85
85
|
|
|
86
86
|
// Combinando tamaño con color
|
|
87
|
-
<Icon symbol="star" className="adm:text-2xl adm:text-
|
|
87
|
+
<Icon symbol="star" className="adm:text-2xl adm:text-warning" />
|
|
88
88
|
```
|
|
89
89
|
|
|
90
90
|
### fill
|
|
@@ -190,7 +190,7 @@ function FavoriteButton() {
|
|
|
190
190
|
fill={isFavorite ? 1 : 0}
|
|
191
191
|
className={cn(
|
|
192
192
|
"adm:text-lg",
|
|
193
|
-
isFavorite ? "adm:text-
|
|
193
|
+
isFavorite ? "adm:text-destructive" : "adm:text-muted-foreground"
|
|
194
194
|
)}
|
|
195
195
|
/>
|
|
196
196
|
{isFavorite ? "Liked" : "Like"}
|
|
@@ -261,7 +261,7 @@ const commonIcons = [
|
|
|
261
261
|
<Icon
|
|
262
262
|
symbol="notification"
|
|
263
263
|
weight={300}
|
|
264
|
-
className="adm:text-2xl adm:text-
|
|
264
|
+
className="adm:text-2xl adm:text-primary adm:drop-shadow-sm"
|
|
265
265
|
/>
|
|
266
266
|
```
|
|
267
267
|
|
|
@@ -270,7 +270,7 @@ const commonIcons = [
|
|
|
270
270
|
```tsx
|
|
271
271
|
<Icon
|
|
272
272
|
symbol="refresh"
|
|
273
|
-
className="adm:text-2xl adm:animate-spin adm:text-
|
|
273
|
+
className="adm:text-2xl adm:animate-spin adm:text-primary"
|
|
274
274
|
/>
|
|
275
275
|
```
|
|
276
276
|
|
|
@@ -291,7 +291,7 @@ const commonIcons = [
|
|
|
291
291
|
<Card>
|
|
292
292
|
<CardHeader>
|
|
293
293
|
<div className="adm:flex adm:items-center adm:gap-2">
|
|
294
|
-
<Icon symbol="folder" className="adm:text-2xl adm:text-
|
|
294
|
+
<Icon symbol="folder" className="adm:text-2xl adm:text-primary" />
|
|
295
295
|
<CardTitle>Documents</CardTitle>
|
|
296
296
|
</div>
|
|
297
297
|
</CardHeader>
|
|
@@ -311,17 +311,17 @@ const commonIcons = [
|
|
|
311
311
|
|
|
312
312
|
```tsx
|
|
313
313
|
<div className="adm:flex adm:items-center adm:gap-2">
|
|
314
|
-
<Icon symbol="check_circle" fill={1} className="adm:text-
|
|
314
|
+
<Icon symbol="check_circle" fill={1} className="adm:text-success" />
|
|
315
315
|
<span>Completed</span>
|
|
316
316
|
</div>
|
|
317
317
|
|
|
318
318
|
<div className="adm:flex adm:items-center adm:gap-2">
|
|
319
|
-
<Icon symbol="error" fill={1} className="adm:text-
|
|
319
|
+
<Icon symbol="error" fill={1} className="adm:text-destructive" />
|
|
320
320
|
<span>Error</span>
|
|
321
321
|
</div>
|
|
322
322
|
|
|
323
323
|
<div className="adm:flex adm:items-center adm:gap-2">
|
|
324
|
-
<Icon symbol="schedule" fill={1} className="adm:text-
|
|
324
|
+
<Icon symbol="schedule" fill={1} className="adm:text-warning" />
|
|
325
325
|
<span>Pending</span>
|
|
326
326
|
</div>
|
|
327
327
|
```
|
|
@@ -396,7 +396,7 @@ const commonIcons = [
|
|
|
396
396
|
{
|
|
397
397
|
/* ✅ Correcto - Peso mayor para énfasis */
|
|
398
398
|
}
|
|
399
|
-
<Icon symbol="warning" weight={500} fill={1} className="adm:text-
|
|
399
|
+
<Icon symbol="warning" weight={500} fill={1} className="adm:text-warning" />;
|
|
400
400
|
|
|
401
401
|
{
|
|
402
402
|
/* ❌ Evitar - Peso muy pesado sin propósito */
|
|
@@ -408,9 +408,9 @@ const commonIcons = [
|
|
|
408
408
|
|
|
409
409
|
```tsx
|
|
410
410
|
{/* ✅ Correcto - Estados con significado claro */}
|
|
411
|
-
<Icon symbol="check_circle" fill={1} className="adm:text-
|
|
412
|
-
<Icon symbol="error" fill={1} className="adm:text-
|
|
413
|
-
<Icon symbol="info" fill={1} className="adm:text-
|
|
411
|
+
<Icon symbol="check_circle" fill={1} className="adm:text-success" /> {/* Éxito */}
|
|
412
|
+
<Icon symbol="error" fill={1} className="adm:text-destructive" /> {/* Error */}
|
|
413
|
+
<Icon symbol="info" fill={1} className="adm:text-primary" /> {/* Info */}
|
|
414
414
|
|
|
415
415
|
{/* ✅ Correcto - Estados interactivos */}
|
|
416
416
|
<Icon symbol="favorite" fill={liked ? 1 : 0} />
|
|
@@ -79,12 +79,12 @@ import {
|
|
|
79
79
|
|
|
80
80
|
### InputGroupButton
|
|
81
81
|
|
|
82
|
-
| Prop | Tipo | Default
|
|
83
|
-
| --------- | ---------------------------------------- |
|
|
84
|
-
| `size` | `"xs" \| "sm" \| "icon-xs" \| "icon-sm"` | `"xs"`
|
|
85
|
-
| `variant` | Button variants | `"ghost"`
|
|
86
|
-
| `type` | `string` | `"button"`
|
|
87
|
-
| ...rest | - | -
|
|
82
|
+
| Prop | Tipo | Default | Descripción |
|
|
83
|
+
| --------- | ---------------------------------------- | ----------------- | ---------------------------------------- |
|
|
84
|
+
| `size` | `"xs" \| "sm" \| "icon-xs" \| "icon-sm"` | `"xs"` | Tamaño del botón |
|
|
85
|
+
| `variant` | Button variants | `"ghost-neutral"` | Variante del botón |
|
|
86
|
+
| `type` | `string` | `"button"` | Tipo HTML del botón |
|
|
87
|
+
| ...rest | - | - | Todas las props de Button excepto `size` |
|
|
88
88
|
|
|
89
89
|
**Sizes**:
|
|
90
90
|
|
|
@@ -235,7 +235,7 @@ import {
|
|
|
235
235
|
<InputGroupAddon align="inline-end">
|
|
236
236
|
<Tooltip>
|
|
237
237
|
<TooltipTrigger asChild>
|
|
238
|
-
<InputGroupButton
|
|
238
|
+
<InputGroupButton size="icon-xs">
|
|
239
239
|
<Icon symbol="info" className="text-base" />
|
|
240
240
|
</InputGroupButton>
|
|
241
241
|
</TooltipTrigger>
|
|
@@ -268,7 +268,6 @@ function App() {
|
|
|
268
268
|
/>
|
|
269
269
|
<InputGroupAddon align="inline-end">
|
|
270
270
|
<InputGroupButton
|
|
271
|
-
variant="ghost"
|
|
272
271
|
size="icon-xs"
|
|
273
272
|
onClick={() => setShowPassword(!showPassword)}
|
|
274
273
|
aria-label={showPassword ? "Hide password" : "Show password"}
|
|
@@ -315,7 +314,7 @@ import {
|
|
|
315
314
|
<InputGroupAddon align="inline-end">
|
|
316
315
|
<DropdownMenu>
|
|
317
316
|
<DropdownMenuTrigger asChild>
|
|
318
|
-
<InputGroupButton
|
|
317
|
+
<InputGroupButton size="icon-xs">
|
|
319
318
|
<Icon symbol="more_horiz" className="text-base" />
|
|
320
319
|
</InputGroupButton>
|
|
321
320
|
</DropdownMenuTrigger>
|
|
@@ -362,11 +361,7 @@ import { Label } from "@adamosuiteservices/ui/label";
|
|
|
362
361
|
</Label>
|
|
363
362
|
<Tooltip>
|
|
364
363
|
<TooltipTrigger asChild>
|
|
365
|
-
<InputGroupButton
|
|
366
|
-
variant="ghost"
|
|
367
|
-
className="ml-auto rounded-full"
|
|
368
|
-
size="icon-xs"
|
|
369
|
-
>
|
|
364
|
+
<InputGroupButton className="ml-auto rounded-full" size="icon-xs">
|
|
370
365
|
<Icon symbol="info" className="text-base" />
|
|
371
366
|
</InputGroupButton>
|
|
372
367
|
</TooltipTrigger>
|
|
@@ -306,7 +306,7 @@ import { Icon } from "@adamosuiteservices/ui/icon";
|
|
|
306
306
|
<PopoverContent className="w-80">
|
|
307
307
|
<div className="space-y-3">
|
|
308
308
|
<div className="flex items-center gap-2">
|
|
309
|
-
<Icon symbol="error" className="text-lg text-
|
|
309
|
+
<Icon symbol="error" className="text-lg text-primary" />
|
|
310
310
|
<h4 className="font-medium">About this feature</h4>
|
|
311
311
|
</div>
|
|
312
312
|
<p className="text-sm text-muted-foreground">
|
|
@@ -359,7 +359,7 @@ import { Separator } from "@adamosuiteservices/ui/separator";
|
|
|
359
359
|
<p className="text-sm font-medium">New message</p>
|
|
360
360
|
<p className="text-xs text-muted-foreground">2 min ago</p>
|
|
361
361
|
</div>
|
|
362
|
-
<div className="h-2 w-2 bg-
|
|
362
|
+
<div className="h-2 w-2 bg-primary rounded-full mt-1" />
|
|
363
363
|
</div>
|
|
364
364
|
</div>
|
|
365
365
|
<Separator />
|
|
@@ -50,7 +50,7 @@ import { Spinner } from "@adamosuiteservices/ui/spinner";
|
|
|
50
50
|
```tsx
|
|
51
51
|
<Spinner className="text-primary" />
|
|
52
52
|
<Spinner className="text-destructive" />
|
|
53
|
-
<Spinner className="text-
|
|
53
|
+
<Spinner className="text-warning" />
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
### En Botones
|
|
@@ -174,7 +174,7 @@ const invoices = [
|
|
|
174
174
|
## Estilos Base
|
|
175
175
|
|
|
176
176
|
- **Container**: `rounded-xl border` con `overflow-x-auto`
|
|
177
|
-
- **Head**: `bg-
|
|
177
|
+
- **Head**: `bg-muted/50 text-muted-foreground text-xs uppercase`
|
|
178
178
|
- **Row hover**: `hover:bg-muted/50`
|
|
179
179
|
- **Cell**: `p-4 text-sm text-muted-foreground`
|
|
180
180
|
|
|
@@ -278,11 +278,11 @@ function App() {
|
|
|
278
278
|
|
|
279
279
|
## Estilos Base
|
|
280
280
|
|
|
281
|
-
- **Background**: `bg-
|
|
282
|
-
- **Text**: `text-
|
|
281
|
+
- **Background**: `bg-primary`
|
|
282
|
+
- **Text**: `text-primary-foreground text-xs`
|
|
283
283
|
- **Padding**: `px-3 py-1.5`
|
|
284
284
|
- **Border radius**: `rounded-md`
|
|
285
|
-
- **Arrow**: `size-2.5` con `bg-
|
|
285
|
+
- **Arrow**: `size-2.5` con `bg-primary`
|
|
286
286
|
- **Z-index**: `z-50`
|
|
287
287
|
- **Animation**: Fade + zoom in/out
|
|
288
288
|
|
|
@@ -264,7 +264,7 @@ import { Typography } from "@adamosuiteservices/ui/typography";
|
|
|
264
264
|
- **Default element**: `<p>` cuando `asChild=false`
|
|
265
265
|
- **Default variants**: `variant="sm"` y `color="default"`
|
|
266
266
|
- **Data attribute**: `data-slot="typography"` para identificación
|
|
267
|
-
- **Color variants**: Incluye colores default (
|
|
267
|
+
- **Color variants**: Incluye colores default (foreground) y muted (muted-foreground)
|
|
268
268
|
- **Extensibilidad**: Combina con utility classes para estilos adicionales (weight, spacing, etc.)
|
|
269
269
|
|
|
270
270
|
## Troubleshooting
|