@adamosuiteservices/ui 2.10.7 → 2.10.9

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 (50) hide show
  1. package/dist/accordion-rounded.cjs +8 -8
  2. package/dist/accordion-rounded.js +16 -16
  3. package/dist/alert.cjs +18 -19
  4. package/dist/alert.js +32 -27
  5. package/dist/{button-qnFw4fZd.js → button-BXTNbWAk.js} +12 -8
  6. package/dist/{button-D7hVwtUK.cjs → button-r2Y2aX25.cjs} +4 -1
  7. package/dist/button.cjs +1 -1
  8. package/dist/button.js +1 -1
  9. package/dist/calendar.cjs +2 -2
  10. package/dist/calendar.js +2 -2
  11. package/dist/card.cjs +1 -1
  12. package/dist/card.js +1 -1
  13. package/dist/colors.css +1 -1
  14. package/dist/combobox.cjs +1 -1
  15. package/dist/combobox.js +1 -1
  16. package/dist/components/ui/alert/alert.d.ts +2 -1
  17. package/dist/components/ui/alert/alert.stories.d.ts +1 -0
  18. package/dist/components/ui/button/button.d.ts +1 -1
  19. package/dist/components/ui/button/button.stories.d.ts +1 -0
  20. package/dist/dialog.cjs +1 -1
  21. package/dist/dialog.js +1 -1
  22. package/dist/field.cjs +1 -1
  23. package/dist/field.js +1 -1
  24. package/dist/input-group.cjs +2 -2
  25. package/dist/input-group.js +5 -5
  26. package/dist/{label-BQhv4uCu.cjs → label-1jx6a0Sm.cjs} +3 -3
  27. package/dist/{label-mzFeN5wI.js → label-CrsELeIw.js} +11 -11
  28. package/dist/label.cjs +1 -1
  29. package/dist/label.js +1 -1
  30. package/dist/pagination.cjs +1 -1
  31. package/dist/pagination.js +1 -1
  32. package/dist/sidebar.cjs +1 -1
  33. package/dist/sidebar.js +1 -1
  34. package/dist/styles.css +1 -1
  35. package/dist/table.cjs +4 -3
  36. package/dist/table.js +6 -5
  37. package/dist/tailwind-colors.css +1 -1
  38. package/dist/tailwind-theme.css +1 -1
  39. package/dist/themes.css +1 -1
  40. package/dist/toaster.cjs +1 -1
  41. package/dist/toaster.js +13 -13
  42. package/dist/typography.cjs +1 -1
  43. package/dist/typography.js +11 -11
  44. package/docs/components/layout/toaster.md +1 -1
  45. package/docs/components/ui/accordion-rounded.md +584 -584
  46. package/docs/components/ui/button.md +66 -7
  47. package/docs/components/ui/table.md +183 -183
  48. package/docs/components/ui/typography.md +8 -8
  49. package/package.json +1 -2
  50. package/dist/custom-layered-styles.css +0 -1
@@ -6,7 +6,7 @@ Componente fundamental para **acciones e interacciones del usuario**. Ofrece 11
6
6
 
7
7
  ## Características
8
8
 
9
- - ✅ 11 variantes: default, success (2), warning (2), destructive (2), secondary, outline, ghost, link
9
+ - ✅ 12 variantes: default, success (2), warning (2), destructive (2), secondary, outline, ghost, ghost-neutral, link
10
10
  - ✅ 6 tamaños: sm, default, lg, icon, icon-sm, icon-lg
11
11
  - ✅ Iconos auto-dimensionados (16px) con ajuste automático de padding
12
12
  - ✅ Estados automáticos: hover, focus-visible, disabled, loading
@@ -199,7 +199,7 @@ Botón con borde y fondo transparente para acciones secundarias.
199
199
 
200
200
  ### ghost
201
201
 
202
- Botón mínimo sin borde que solo aparece en hover.
202
+ Botón mínimo sin borde con color primario que solo aparece en hover.
203
203
 
204
204
  ```tsx
205
205
  <Button variant="ghost">Ghost</Button>
@@ -208,9 +208,26 @@ Botón mínimo sin borde que solo aparece en hover.
208
208
  **Estilos**:
209
209
 
210
210
  - Fondo: Transparente
211
- - Hover: `bg-accent`
211
+ - Texto: `text-primary`
212
+ - Hover: `bg-primary-50`, `text-primary`
213
+ - Dark mode: `hover:bg-primary-50/20`
214
+ - Uso: Acciones terciarias con énfasis primario, iconos de herramientas, menús
215
+
216
+ ### ghost-neutral
217
+
218
+ Botón mínimo sin borde con color neutral que solo aparece en hover.
219
+
220
+ ```tsx
221
+ <Button variant="ghost-neutral">Ghost Neutral</Button>
222
+ ```
223
+
224
+ **Estilos**:
225
+
226
+ - Fondo: Transparente
227
+ - Texto: Color heredado del contexto
228
+ - Hover: `bg-accent`, `text-accent-foreground`
212
229
  - Dark mode: `hover:bg-accent/50`
213
- - Uso: Acciones terciarias, iconos de herramientas, menús
230
+ - Uso: Acciones terciarias neutras, iconos de herramientas sin énfasis, controles de interfaz
214
231
 
215
232
  ### link
216
233
 
@@ -569,9 +586,9 @@ import { Icon } from "@adamosuiteservices/ui/icon";
569
586
 
570
587
  ## Props
571
588
 
572
- | Prop | Tipo | Default | Descripción |
573
- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | -------------------------------------------------------------- |
574
- | variant | `"default" \| "success" \| "success-medium" \| "warning" \| "warning-medium" \| "destructive" \| "destructive-medium" \| "secondary" \| "outline" \| "ghost" \| "link"` | `"default"` | Variante visual del botón |
589
+ | Prop | Tipo | Default | Descripción |
590
+ | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | -------------------------------------------------------------- |
591
+ | variant | `"default" \| "success" \| "success-medium" \| "warning" \| "warning-medium" \| "destructive" \| "destructive-medium" \| "secondary" \| "outline" \| "ghost" \| "ghost-neutral" \| "link"` | `"default"` | Variante visual del botón |
575
592
  | size | `"default" \| "sm" \| "lg" \| "icon" \| "icon-sm" \| "icon-lg"` | `"default"` | Tamaño del botón |
576
593
  | asChild | `boolean` | `false` | Renderiza el hijo en lugar de un `<button>`. Usa Radix UI Slot |
577
594
  | disabled | `boolean` | `false` | Desactiva el botón (opacity 50%, pointer-events none) |
@@ -732,6 +749,7 @@ Acciones en footer de dialogs.
732
749
  Botones de herramientas con iconos.
733
750
 
734
751
  ```tsx
752
+ {/* Toolbar con ghost para acciones primarias */}
735
753
  <div className="flex gap-1 p-2 border rounded-lg">
736
754
  <Button size="icon-sm" variant="ghost" aria-label="Bold">
737
755
  <BoldIcon />
@@ -750,6 +768,19 @@ Botones de herramientas con iconos.
750
768
  <AlignCenterIcon />
751
769
  </Button>
752
770
  </div>
771
+
772
+ {/* Toolbar con ghost-neutral para apariencia más sutil */}
773
+ <div className="flex gap-1 p-2 border rounded-lg">
774
+ <Button size="icon-sm" variant="ghost-neutral" aria-label="Bold">
775
+ <BoldIcon />
776
+ </Button>
777
+ <Button size="icon-sm" variant="ghost-neutral" aria-label="Italic">
778
+ <ItalicIcon />
779
+ </Button>
780
+ <Button size="icon-sm" variant="ghost-neutral" aria-label="Underline">
781
+ <UnderlineIcon />
782
+ </Button>
783
+ </div>
753
784
  ```
754
785
 
755
786
  ### Call to Action (CTA)
@@ -890,6 +921,34 @@ function Navigation() {
890
921
  <Button>Delete All Data</Button> {/* Debería ser destructive */}
891
922
  ```
892
923
 
924
+ ### Ghost vs Ghost-Neutral
925
+
926
+ ```tsx
927
+ {/* ✅ Correcto - Ghost para acciones con énfasis primario */}
928
+ <Button variant="ghost">
929
+ <Icon symbol="add" />
930
+ Add Item
931
+ </Button>
932
+
933
+ {/* ✅ Correcto - Ghost-neutral para controles sin énfasis */}
934
+ <Button variant="ghost-neutral" size="icon" aria-label="Settings">
935
+ <Icon symbol="settings" />
936
+ </Button>
937
+
938
+ {/* ✅ Correcto - Ghost-neutral en toolbars y paneles */}
939
+ <div className="flex gap-1">
940
+ <Button variant="ghost-neutral" size="icon-sm" aria-label="Edit">
941
+ <Icon symbol="edit" />
942
+ </Button>
943
+ <Button variant="ghost-neutral" size="icon-sm" aria-label="Delete">
944
+ <Icon symbol="delete" />
945
+ </Button>
946
+ </div>
947
+
948
+ {/* ⚠️ Considerar - Ghost puede ser muy prominente en algunos contextos */}
949
+ <Button variant="ghost">Close</Button> {/* Mejor usar ghost-neutral */}
950
+ ```
951
+
893
952
  ### Espaciado Consistente
894
953
 
895
954
  ```tsx
@@ -1,183 +1,183 @@
1
- # Table
2
-
3
- Tabla HTML semántica con estilos. 8 componentes para estructura completa.
4
-
5
- ## Descripción
6
-
7
- El componente `Table` muestra datos en formato tabular.
8
-
9
- ## Importación
10
-
11
- ```typescript
12
- import {
13
- Table,
14
- TableBody,
15
- TableCaption,
16
- TableCell,
17
- TableHead,
18
- TableHeader,
19
- TableRow,
20
- TableFooter,
21
- } from "@adamosuiteservices/ui/table";
22
- ```
23
-
24
- ## Anatomía
25
-
26
- ```tsx
27
- <Table>
28
- <TableCaption>A list of your recent invoices.</TableCaption>
29
- <TableHeader>
30
- <TableRow>
31
- <TableHead>Invoice</TableHead>
32
- <TableHead>Status</TableHead>
33
- <TableHead>Method</TableHead>
34
- <TableHead className="text-right">Amount</TableHead>
35
- </TableRow>
36
- </TableHeader>
37
- <TableBody>
38
- <TableRow>
39
- <TableCell className="font-medium">INV001</TableCell>
40
- <TableCell>Paid</TableCell>
41
- <TableCell>Credit Card</TableCell>
42
- <TableCell className="text-right">$250.00</TableCell>
43
- </TableRow>
44
- </TableBody>
45
- <TableFooter>
46
- <TableRow>
47
- <TableCell colSpan={3}>Total</TableCell>
48
- <TableCell className="text-right">$2,500.00</TableCell>
49
- </TableRow>
50
- </TableFooter>
51
- </Table>
52
- ```
53
-
54
- **Componentes**: 8 (Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption)
55
-
56
- ## Props
57
-
58
- Todos los componentes aceptan sus props HTML estándar más `className` para personalización.
59
-
60
- ## Patrones de Uso
61
-
62
- ### Tabla Simple
63
-
64
- ```tsx
65
- <Table>
66
- <TableHeader>
67
- <TableRow>
68
- <TableHead>Invoice</TableHead>
69
- <TableHead>Status</TableHead>
70
- <TableHead>Amount</TableHead>
71
- </TableRow>
72
- </TableHeader>
73
- <TableBody>
74
- <TableRow>
75
- <TableCell>INV001</TableCell>
76
- <TableCell>Paid</TableCell>
77
- <TableCell>$250.00</TableCell>
78
- </TableRow>
79
- <TableRow>
80
- <TableCell>INV002</TableCell>
81
- <TableCell>Pending</TableCell>
82
- <TableCell>$150.00</TableCell>
83
- </TableRow>
84
- </TableBody>
85
- </Table>
86
- ```
87
-
88
- ### Con Footer
89
-
90
- ```tsx
91
- <Table>
92
- <TableHeader>
93
- <TableRow>
94
- <TableHead>Item</TableHead>
95
- <TableHead>Quantity</TableHead>
96
- <TableHead className="text-right">Price</TableHead>
97
- </TableRow>
98
- </TableHeader>
99
- <TableBody>
100
- <TableRow>
101
- <TableCell>Product A</TableCell>
102
- <TableCell>10</TableCell>
103
- <TableCell className="text-right">$100.00</TableCell>
104
- </TableRow>
105
- </TableBody>
106
- <TableFooter>
107
- <TableRow>
108
- <TableCell colSpan={2}>Total</TableCell>
109
- <TableCell className="text-right">$2,500.00</TableCell>
110
- </TableRow>
111
- </TableFooter>
112
- </Table>
113
- ```
114
-
115
- ### Con Caption
116
-
117
- ```tsx
118
- <Table>
119
- <TableCaption>A list of your recent invoices.</TableCaption>
120
- <TableHeader>
121
- <TableRow>
122
- <TableHead>Invoice</TableHead>
123
- <TableHead>Status</TableHead>
124
- <TableHead>Amount</TableHead>
125
- </TableRow>
126
- </TableHeader>
127
- <TableBody>
128
- <TableRow>
129
- <TableCell>INV001</TableCell>
130
- <TableCell>Paid</TableCell>
131
- <TableCell>$250.00</TableCell>
132
- </TableRow>
133
- </TableBody>
134
- </Table>
135
- ```
136
-
137
- ### Con Datos Dinámicos
138
-
139
- ```tsx
140
- const invoices = [
141
- { id: "INV001", status: "Paid", method: "Credit Card", amount: "$250.00" },
142
- { id: "INV002", status: "Pending", method: "PayPal", amount: "$150.00" },
143
- ];
144
-
145
- <Table>
146
- <TableHeader>
147
- <TableRow>
148
- <TableHead>Invoice</TableHead>
149
- <TableHead>Status</TableHead>
150
- <TableHead>Method</TableHead>
151
- <TableHead className="text-right">Amount</TableHead>
152
- </TableRow>
153
- </TableHeader>
154
- <TableBody>
155
- {invoices.map((invoice) => (
156
- <TableRow key={invoice.id}>
157
- <TableCell>{invoice.id}</TableCell>
158
- <TableCell>{invoice.status}</TableCell>
159
- <TableCell>{invoice.method}</TableCell>
160
- <TableCell className="text-right">{invoice.amount}</TableCell>
161
- </TableRow>
162
- ))}
163
- </TableBody>
164
- </Table>;
165
- ```
166
-
167
- ## Casos de Uso
168
-
169
- **Data tables**: Listados de datos
170
- **Invoices**: Facturas
171
- **Users**: Lista de usuarios
172
- **Reports**: Reportes tabulares
173
-
174
- ## Estilos Base
175
-
176
- - **Container**: `rounded-xl border` con `overflow-x-auto`
177
- - **Head**: `bg-neutrals-50 text-neutrals-500 uppercase`
178
- - **Row hover**: `hover:bg-muted/50`
179
- - **Cell**: `p-4 text-neutrals-500`
180
-
181
- ## Referencias
182
-
183
- - **shadcn/ui Table**: <https://ui.shadcn.com/docs/components/table>
1
+ # Table
2
+
3
+ Tabla HTML semántica con estilos. 8 componentes para estructura completa.
4
+
5
+ ## Descripción
6
+
7
+ El componente `Table` muestra datos en formato tabular.
8
+
9
+ ## Importación
10
+
11
+ ```typescript
12
+ import {
13
+ Table,
14
+ TableBody,
15
+ TableCaption,
16
+ TableCell,
17
+ TableHead,
18
+ TableHeader,
19
+ TableRow,
20
+ TableFooter,
21
+ } from "@adamosuiteservices/ui/table";
22
+ ```
23
+
24
+ ## Anatomía
25
+
26
+ ```tsx
27
+ <Table>
28
+ <TableCaption>A list of your recent invoices.</TableCaption>
29
+ <TableHeader>
30
+ <TableRow>
31
+ <TableHead>Invoice</TableHead>
32
+ <TableHead>Status</TableHead>
33
+ <TableHead>Method</TableHead>
34
+ <TableHead className="text-right">Amount</TableHead>
35
+ </TableRow>
36
+ </TableHeader>
37
+ <TableBody>
38
+ <TableRow>
39
+ <TableCell className="font-medium">INV001</TableCell>
40
+ <TableCell>Paid</TableCell>
41
+ <TableCell>Credit Card</TableCell>
42
+ <TableCell className="text-right">$250.00</TableCell>
43
+ </TableRow>
44
+ </TableBody>
45
+ <TableFooter>
46
+ <TableRow>
47
+ <TableCell colSpan={3}>Total</TableCell>
48
+ <TableCell className="text-right">$2,500.00</TableCell>
49
+ </TableRow>
50
+ </TableFooter>
51
+ </Table>
52
+ ```
53
+
54
+ **Componentes**: 8 (Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption)
55
+
56
+ ## Props
57
+
58
+ Todos los componentes aceptan sus props HTML estándar más `className` para personalización.
59
+
60
+ ## Patrones de Uso
61
+
62
+ ### Tabla Simple
63
+
64
+ ```tsx
65
+ <Table>
66
+ <TableHeader>
67
+ <TableRow>
68
+ <TableHead>Invoice</TableHead>
69
+ <TableHead>Status</TableHead>
70
+ <TableHead>Amount</TableHead>
71
+ </TableRow>
72
+ </TableHeader>
73
+ <TableBody>
74
+ <TableRow>
75
+ <TableCell>INV001</TableCell>
76
+ <TableCell>Paid</TableCell>
77
+ <TableCell>$250.00</TableCell>
78
+ </TableRow>
79
+ <TableRow>
80
+ <TableCell>INV002</TableCell>
81
+ <TableCell>Pending</TableCell>
82
+ <TableCell>$150.00</TableCell>
83
+ </TableRow>
84
+ </TableBody>
85
+ </Table>
86
+ ```
87
+
88
+ ### Con Footer
89
+
90
+ ```tsx
91
+ <Table>
92
+ <TableHeader>
93
+ <TableRow>
94
+ <TableHead>Item</TableHead>
95
+ <TableHead>Quantity</TableHead>
96
+ <TableHead className="text-right">Price</TableHead>
97
+ </TableRow>
98
+ </TableHeader>
99
+ <TableBody>
100
+ <TableRow>
101
+ <TableCell>Product A</TableCell>
102
+ <TableCell>10</TableCell>
103
+ <TableCell className="text-right">$100.00</TableCell>
104
+ </TableRow>
105
+ </TableBody>
106
+ <TableFooter>
107
+ <TableRow>
108
+ <TableCell colSpan={2}>Total</TableCell>
109
+ <TableCell className="text-right">$2,500.00</TableCell>
110
+ </TableRow>
111
+ </TableFooter>
112
+ </Table>
113
+ ```
114
+
115
+ ### Con Caption
116
+
117
+ ```tsx
118
+ <Table>
119
+ <TableCaption>A list of your recent invoices.</TableCaption>
120
+ <TableHeader>
121
+ <TableRow>
122
+ <TableHead>Invoice</TableHead>
123
+ <TableHead>Status</TableHead>
124
+ <TableHead>Amount</TableHead>
125
+ </TableRow>
126
+ </TableHeader>
127
+ <TableBody>
128
+ <TableRow>
129
+ <TableCell>INV001</TableCell>
130
+ <TableCell>Paid</TableCell>
131
+ <TableCell>$250.00</TableCell>
132
+ </TableRow>
133
+ </TableBody>
134
+ </Table>
135
+ ```
136
+
137
+ ### Con Datos Dinámicos
138
+
139
+ ```tsx
140
+ const invoices = [
141
+ { id: "INV001", status: "Paid", method: "Credit Card", amount: "$250.00" },
142
+ { id: "INV002", status: "Pending", method: "PayPal", amount: "$150.00" },
143
+ ];
144
+
145
+ <Table>
146
+ <TableHeader>
147
+ <TableRow>
148
+ <TableHead>Invoice</TableHead>
149
+ <TableHead>Status</TableHead>
150
+ <TableHead>Method</TableHead>
151
+ <TableHead className="text-right">Amount</TableHead>
152
+ </TableRow>
153
+ </TableHeader>
154
+ <TableBody>
155
+ {invoices.map((invoice) => (
156
+ <TableRow key={invoice.id}>
157
+ <TableCell>{invoice.id}</TableCell>
158
+ <TableCell>{invoice.status}</TableCell>
159
+ <TableCell>{invoice.method}</TableCell>
160
+ <TableCell className="text-right">{invoice.amount}</TableCell>
161
+ </TableRow>
162
+ ))}
163
+ </TableBody>
164
+ </Table>;
165
+ ```
166
+
167
+ ## Casos de Uso
168
+
169
+ **Data tables**: Listados de datos
170
+ **Invoices**: Facturas
171
+ **Users**: Lista de usuarios
172
+ **Reports**: Reportes tabulares
173
+
174
+ ## Estilos Base
175
+
176
+ - **Container**: `rounded-xl border` con `overflow-x-auto`
177
+ - **Head**: `bg-neutrals-50 text-muted-foreground text-xs uppercase`
178
+ - **Row hover**: `hover:bg-muted/50`
179
+ - **Cell**: `p-4 text-sm text-muted-foreground`
180
+
181
+ ## Referencias
182
+
183
+ - **shadcn/ui Table**: <https://ui.shadcn.com/docs/components/table>
@@ -41,10 +41,10 @@ import { Typography } from "@adamosuiteservices/ui/typography";
41
41
 
42
42
  ### Colores
43
43
 
44
- | Color | Clase CSS | Uso |
45
- | --------- | -------------------- | -------------------------- |
46
- | `default` | `text-neutrals-700` | Texto principal (default) |
47
- | `muted` | `text-neutrals-500` | Texto secundario |
44
+ | Color | Clase CSS | Uso |
45
+ | --------- | ------------------------- | -------------------------- |
46
+ | `default` | `text-foreground` | Texto principal (default) |
47
+ | `muted` | `text-muted-foreground` | Texto secundario |
48
48
 
49
49
  ## Patrones de Uso
50
50
 
@@ -161,12 +161,12 @@ import { Typography } from "@adamosuiteservices/ui/typography";
161
161
  ```tsx
162
162
  {/* Default color - Primary text */}
163
163
  <Typography variant="md" color="default">
164
- This is primary text with default color (neutrals-700).
164
+ This is primary text with default color (foreground).
165
165
  </Typography>
166
166
 
167
167
  {/* Muted color - Secondary text */}
168
168
  <Typography variant="md" color="muted">
169
- This is secondary text with muted color (neutrals-500).
169
+ This is secondary text with muted color (muted-foreground).
170
170
  </Typography>
171
171
 
172
172
  {/* Combining with sizes */}
@@ -247,8 +247,8 @@ import { Typography } from "@adamosuiteservices/ui/typography";
247
247
 
248
248
  ### Colores de Texto
249
249
 
250
- - **default**: neutrals-700 (text-neutrals-700) - **default**
251
- - **muted**: neutrals-500 (text-neutrals-500)
250
+ - **default**: text-foreground - **default**
251
+ - **muted**: text-muted-foreground
252
252
 
253
253
  ## Accesibilidad
254
254
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adamosuiteservices/ui",
3
- "version": "2.10.7",
3
+ "version": "2.10.9",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -9,7 +9,6 @@
9
9
  "exports": {
10
10
  "./docs/*": "./docs/*",
11
11
  "./styles.css": "./dist/styles.css",
12
- "./custom-layered-styles.css": "./dist/custom-layered-styles.css",
13
12
  "./colors.css": "./dist/colors.css",
14
13
  "./custom-scroll-bar.css": "./dist/custom-scroll-bar.css",
15
14
  "./fonts.css": "./dist/fonts.css",