@adamosuiteservices/ui 1.8.13 → 1.9.14
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/components/ui/icon/icon.d.ts +11 -0
- package/dist/components/ui/icon/icon.stories.d.ts +55 -0
- package/dist/components/ui/icon/index.d.ts +1 -0
- package/dist/components/ui/input-group/input-group.d.ts +1 -1
- package/dist/custom-layered-styles.css +1 -1
- package/dist/icon.cjs +6 -0
- package/dist/icon.js +36 -0
- package/dist/icons.css +1 -0
- package/dist/styles.css +1 -1
- package/docs/AI-GUIDE.md +321 -321
- package/docs/components/layout/sidebar.md +404 -404
- package/docs/components/layout/toaster.md +436 -436
- package/docs/components/ui/accordion-rounded.md +583 -583
- package/docs/components/ui/accordion.md +267 -267
- package/docs/components/ui/alert.md +671 -671
- package/docs/components/ui/avatar.md +588 -588
- package/docs/components/ui/badge.md +1024 -1024
- package/docs/components/ui/button-group.md +1002 -1002
- package/docs/components/ui/button.md +1078 -1078
- package/docs/components/ui/calendar.md +1159 -1159
- package/docs/components/ui/card.md +1265 -1265
- package/docs/components/ui/checkbox.md +292 -292
- package/docs/components/ui/collapsible.md +320 -320
- package/docs/components/ui/command.md +454 -454
- package/docs/components/ui/context-menu.md +540 -540
- package/docs/components/ui/dialog.md +628 -628
- package/docs/components/ui/dropdown-menu.md +731 -731
- package/docs/components/ui/field.md +706 -706
- package/docs/components/ui/hover-card.md +446 -446
- package/docs/components/ui/icon.md +502 -0
- package/docs/components/ui/input-group.md +509 -509
- package/docs/components/ui/input.md +362 -362
- package/docs/components/ui/kbd.md +434 -434
- package/docs/components/ui/label.md +359 -359
- package/docs/components/ui/pagination.md +650 -650
- package/docs/components/ui/popover.md +536 -536
- package/docs/components/ui/progress.md +182 -182
- package/docs/components/ui/radio-group.md +311 -311
- package/docs/components/ui/select.md +352 -352
- package/docs/components/ui/separator.md +214 -214
- package/docs/components/ui/sheet.md +142 -142
- package/docs/components/ui/skeleton.md +140 -140
- package/docs/components/ui/slider.md +341 -341
- package/docs/components/ui/spinner.md +170 -170
- package/docs/components/ui/switch.md +402 -402
- package/docs/components/ui/table.md +183 -183
- package/docs/components/ui/tabs-underline.md +106 -106
- package/docs/components/ui/tabs.md +122 -122
- package/docs/components/ui/textarea.md +243 -243
- package/docs/components/ui/toggle.md +243 -243
- package/docs/components/ui/tooltip.md +320 -320
- package/docs/components/ui/typography.md +191 -191
- package/package.json +6 -5
- package/dist/components/icons/account-balance-icon.d.ts +0 -3
- package/dist/components/icons/account-icon.d.ts +0 -3
- package/dist/components/icons/add-circle-icon.d.ts +0 -3
- package/dist/components/icons/alarm-icon.d.ts +0 -3
- package/dist/components/icons/archive-icon.d.ts +0 -3
- package/dist/components/icons/arrow-back-icon.d.ts +0 -3
- package/dist/components/icons/arrow-circle-up-icon.d.ts +0 -3
- package/dist/components/icons/arrow-forward-icon.d.ts +0 -3
- package/dist/components/icons/arrow-outward-icon.d.ts +0 -3
- package/dist/components/icons/article-icon.d.ts +0 -3
- package/dist/components/icons/attach-file-icon.d.ts +0 -3
- package/dist/components/icons/autorenew-icon.d.ts +0 -3
- package/dist/components/icons/bookmark-icon.d.ts +0 -3
- package/dist/components/icons/calculate-icon.d.ts +0 -3
- package/dist/components/icons/calendar-today-icon.d.ts +0 -3
- package/dist/components/icons/call-split-icon.d.ts +0 -3
- package/dist/components/icons/cancel-filled-icon.d.ts +0 -3
- package/dist/components/icons/cancel-icon.d.ts +0 -3
- package/dist/components/icons/check-circle-icon.d.ts +0 -3
- package/dist/components/icons/check-icon.d.ts +0 -3
- package/dist/components/icons/chevron-back-icon.d.ts +0 -3
- package/dist/components/icons/chevron-down-icon.d.ts +0 -3
- package/dist/components/icons/chevron-forward-icon.d.ts +0 -3
- package/dist/components/icons/chevron-up-icon.d.ts +0 -3
- package/dist/components/icons/clarify-icon.d.ts +0 -3
- package/dist/components/icons/clock-icon.d.ts +0 -3
- package/dist/components/icons/close-icon.d.ts +0 -3
- package/dist/components/icons/confirmation-number-icon.d.ts +0 -3
- package/dist/components/icons/contacts-icon.d.ts +0 -3
- package/dist/components/icons/contract-delete-icon.d.ts +0 -3
- package/dist/components/icons/copy-icon.d.ts +0 -3
- package/dist/components/icons/do-not-touch-icon.d.ts +0 -3
- package/dist/components/icons/download-icon.d.ts +0 -3
- package/dist/components/icons/dragger-icon.d.ts +0 -3
- package/dist/components/icons/edit-icon.d.ts +0 -3
- package/dist/components/icons/edit-square-icon.d.ts +0 -3
- package/dist/components/icons/exclamation-icon.d.ts +0 -3
- package/dist/components/icons/expand-circle-right-icon.d.ts +0 -3
- package/dist/components/icons/feature-search-icon.d.ts +0 -3
- package/dist/components/icons/filter-icon.d.ts +0 -3
- package/dist/components/icons/folder-icon.d.ts +0 -3
- package/dist/components/icons/folder-open-icon.d.ts +0 -3
- package/dist/components/icons/format-list-bulleted-icon.d.ts +0 -3
- package/dist/components/icons/hamburger-menu-icon.d.ts +0 -3
- package/dist/components/icons/help-icon.d.ts +0 -3
- package/dist/components/icons/hide-pass-icon.d.ts +0 -3
- package/dist/components/icons/home-icon.d.ts +0 -3
- package/dist/components/icons/id-card-icon.d.ts +0 -3
- package/dist/components/icons/index.d.ts +0 -88
- package/dist/components/icons/info-icon.d.ts +0 -3
- package/dist/components/icons/kid-star-icon.d.ts +0 -3
- package/dist/components/icons/language-icon.d.ts +0 -3
- package/dist/components/icons/last-page-icon.d.ts +0 -3
- package/dist/components/icons/layers-icon.d.ts +0 -3
- package/dist/components/icons/location-icon.d.ts +0 -3
- package/dist/components/icons/mail-icon.d.ts +0 -3
- package/dist/components/icons/manage-search-icon.d.ts +0 -3
- package/dist/components/icons/menu-icon.d.ts +0 -3
- package/dist/components/icons/message-icon.d.ts +0 -3
- package/dist/components/icons/metrics-icon.d.ts +0 -3
- package/dist/components/icons/mic-icon.d.ts +0 -3
- package/dist/components/icons/minus-icon.d.ts +0 -3
- package/dist/components/icons/mode-comment-icon.d.ts +0 -3
- package/dist/components/icons/money-icon.d.ts +0 -3
- package/dist/components/icons/monitoring-icon.d.ts +0 -3
- package/dist/components/icons/more-icon.d.ts +0 -3
- package/dist/components/icons/notifications-icon.d.ts +0 -3
- package/dist/components/icons/open-in-new-icon.d.ts +0 -3
- package/dist/components/icons/palette-icon.d.ts +0 -3
- package/dist/components/icons/password-icon.d.ts +0 -3
- package/dist/components/icons/pending-icon.d.ts +0 -3
- package/dist/components/icons/person-add-icon.d.ts +0 -3
- package/dist/components/icons/person-search-icon.d.ts +0 -3
- package/dist/components/icons/photo-icon.d.ts +0 -3
- package/dist/components/icons/plus-icon.d.ts +0 -3
- package/dist/components/icons/policy-icon.d.ts +0 -3
- package/dist/components/icons/publish-icon.d.ts +0 -3
- package/dist/components/icons/ready-icon.d.ts +0 -3
- package/dist/components/icons/receipt-icon.d.ts +0 -3
- package/dist/components/icons/receive-icon.d.ts +0 -3
- package/dist/components/icons/refresh-icon.d.ts +0 -3
- package/dist/components/icons/search-icon.d.ts +0 -3
- package/dist/components/icons/see-icon.d.ts +0 -3
- package/dist/components/icons/send-icon.d.ts +0 -3
- package/dist/components/icons/settings-icon.d.ts +0 -3
- package/dist/components/icons/shield-icon.d.ts +0 -3
- package/dist/components/icons/swap-horiz-icon.d.ts +0 -3
- package/dist/components/icons/tag-icon.d.ts +0 -3
- package/dist/components/icons/trash-icon.d.ts +0 -3
- package/dist/icons.cjs +0 -1
- package/dist/icons.js +0 -1507
|
@@ -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-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,106 +1,106 @@
|
|
|
1
|
-
# Tabs Underline
|
|
2
|
-
|
|
3
|
-
Pestañas con underline. Variante de tabs sin background.
|
|
4
|
-
|
|
5
|
-
## Descripción
|
|
6
|
-
|
|
7
|
-
Variante del componente Tabs con estilo de subrayado en lugar de fondo.
|
|
8
|
-
|
|
9
|
-
## Importación
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
import {
|
|
13
|
-
TabsUnderline,
|
|
14
|
-
TabsUnderlineList,
|
|
15
|
-
TabsUnderlineTrigger,
|
|
16
|
-
TabsUnderlineContent,
|
|
17
|
-
} from "@adamosuiteservices/ui/tabs-underline";
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## Anatomía
|
|
21
|
-
|
|
22
|
-
```tsx
|
|
23
|
-
<TabsUnderline defaultValue="account">
|
|
24
|
-
<TabsUnderlineList>
|
|
25
|
-
<TabsUnderlineTrigger value="account">Account</TabsUnderlineTrigger>
|
|
26
|
-
<TabsUnderlineTrigger value="password">Password</TabsUnderlineTrigger>
|
|
27
|
-
</TabsUnderlineList>
|
|
28
|
-
<TabsUnderlineContent value="account">Account content</TabsUnderlineContent>
|
|
29
|
-
<TabsUnderlineContent value="password">Password content</TabsUnderlineContent>
|
|
30
|
-
</TabsUnderline>
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
**Componentes**: 4 (TabsUnderline, TabsUnderlineList, TabsUnderlineTrigger, TabsUnderlineContent)
|
|
34
|
-
|
|
35
|
-
## Props
|
|
36
|
-
|
|
37
|
-
Idéntico a `tabs` component. Ver documentación de tabs para props completas.
|
|
38
|
-
|
|
39
|
-
## Patrones de Uso
|
|
40
|
-
|
|
41
|
-
### Básico
|
|
42
|
-
|
|
43
|
-
```tsx
|
|
44
|
-
<TabsUnderline defaultValue="overview">
|
|
45
|
-
<TabsUnderlineList>
|
|
46
|
-
<TabsUnderlineTrigger value="overview">Overview</TabsUnderlineTrigger>
|
|
47
|
-
<TabsUnderlineTrigger value="analytics">Analytics</TabsUnderlineTrigger>
|
|
48
|
-
<TabsUnderlineTrigger value="reports">Reports</TabsUnderlineTrigger>
|
|
49
|
-
</TabsUnderlineList>
|
|
50
|
-
<TabsUnderlineContent value="overview">Overview content</TabsUnderlineContent>
|
|
51
|
-
<TabsUnderlineContent value="analytics">
|
|
52
|
-
Analytics content
|
|
53
|
-
</TabsUnderlineContent>
|
|
54
|
-
<TabsUnderlineContent value="reports">Reports content</TabsUnderlineContent>
|
|
55
|
-
</TabsUnderline>
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
### Con Iconos
|
|
59
|
-
|
|
60
|
-
```tsx
|
|
61
|
-
import { BarChartIcon, TableIcon, FileTextIcon } from "lucide-react";
|
|
62
|
-
|
|
63
|
-
<TabsUnderlineList>
|
|
64
|
-
<TabsUnderlineTrigger value="charts">
|
|
65
|
-
<BarChartIcon />
|
|
66
|
-
Charts
|
|
67
|
-
</TabsUnderlineTrigger>
|
|
68
|
-
<TabsUnderlineTrigger value="table">
|
|
69
|
-
<TableIcon />
|
|
70
|
-
Table
|
|
71
|
-
</TabsUnderlineTrigger>
|
|
72
|
-
<TabsUnderlineTrigger value="report">
|
|
73
|
-
<FileTextIcon />
|
|
74
|
-
Report
|
|
75
|
-
</TabsUnderlineTrigger>
|
|
76
|
-
</TabsUnderlineList>;
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
## Diferencias con Tabs Regular
|
|
80
|
-
|
|
81
|
-
- Subrayado animado en lugar de fondo
|
|
82
|
-
- Estilo más minimalista
|
|
83
|
-
- API idéntica a Tabs regular
|
|
84
|
-
|
|
85
|
-
## Diferencia vs Tabs
|
|
86
|
-
|
|
87
|
-
**tabs**: Background `bg-muted` con `rounded-lg`, active usa `bg-primary`
|
|
88
|
-
**tabs-underline**: Sin background, active usa `border-b-2 border-b-primary`
|
|
89
|
-
|
|
90
|
-
## Casos de Uso
|
|
91
|
-
|
|
92
|
-
**Navigation**: Navegación principal
|
|
93
|
-
**Content sections**: Secciones de contenido
|
|
94
|
-
**Data views**: Diferentes visualizaciones
|
|
95
|
-
|
|
96
|
-
## Estilos Base
|
|
97
|
-
|
|
98
|
-
- **List**: Sin background, `h-9`
|
|
99
|
-
- **Trigger active**: `border-b-2 border-b-primary text-primary`
|
|
100
|
-
- **Trigger inactive**: `border-b-2 border-b-transparent`
|
|
101
|
-
|
|
102
|
-
## Referencias
|
|
103
|
-
|
|
104
|
-
- Ver [Tabs](./tabs.md) para documentación completa
|
|
105
|
-
- **Radix UI Tabs**: <https://www.radix-ui.com/primitives/docs/components/tabs>
|
|
106
|
-
- **shadcn/ui Tabs**: <https://ui.shadcn.com/docs/components/tabs>
|
|
1
|
+
# Tabs Underline
|
|
2
|
+
|
|
3
|
+
Pestañas con underline. Variante de tabs sin background.
|
|
4
|
+
|
|
5
|
+
## Descripción
|
|
6
|
+
|
|
7
|
+
Variante del componente Tabs con estilo de subrayado en lugar de fondo.
|
|
8
|
+
|
|
9
|
+
## Importación
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
import {
|
|
13
|
+
TabsUnderline,
|
|
14
|
+
TabsUnderlineList,
|
|
15
|
+
TabsUnderlineTrigger,
|
|
16
|
+
TabsUnderlineContent,
|
|
17
|
+
} from "@adamosuiteservices/ui/tabs-underline";
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Anatomía
|
|
21
|
+
|
|
22
|
+
```tsx
|
|
23
|
+
<TabsUnderline defaultValue="account">
|
|
24
|
+
<TabsUnderlineList>
|
|
25
|
+
<TabsUnderlineTrigger value="account">Account</TabsUnderlineTrigger>
|
|
26
|
+
<TabsUnderlineTrigger value="password">Password</TabsUnderlineTrigger>
|
|
27
|
+
</TabsUnderlineList>
|
|
28
|
+
<TabsUnderlineContent value="account">Account content</TabsUnderlineContent>
|
|
29
|
+
<TabsUnderlineContent value="password">Password content</TabsUnderlineContent>
|
|
30
|
+
</TabsUnderline>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**Componentes**: 4 (TabsUnderline, TabsUnderlineList, TabsUnderlineTrigger, TabsUnderlineContent)
|
|
34
|
+
|
|
35
|
+
## Props
|
|
36
|
+
|
|
37
|
+
Idéntico a `tabs` component. Ver documentación de tabs para props completas.
|
|
38
|
+
|
|
39
|
+
## Patrones de Uso
|
|
40
|
+
|
|
41
|
+
### Básico
|
|
42
|
+
|
|
43
|
+
```tsx
|
|
44
|
+
<TabsUnderline defaultValue="overview">
|
|
45
|
+
<TabsUnderlineList>
|
|
46
|
+
<TabsUnderlineTrigger value="overview">Overview</TabsUnderlineTrigger>
|
|
47
|
+
<TabsUnderlineTrigger value="analytics">Analytics</TabsUnderlineTrigger>
|
|
48
|
+
<TabsUnderlineTrigger value="reports">Reports</TabsUnderlineTrigger>
|
|
49
|
+
</TabsUnderlineList>
|
|
50
|
+
<TabsUnderlineContent value="overview">Overview content</TabsUnderlineContent>
|
|
51
|
+
<TabsUnderlineContent value="analytics">
|
|
52
|
+
Analytics content
|
|
53
|
+
</TabsUnderlineContent>
|
|
54
|
+
<TabsUnderlineContent value="reports">Reports content</TabsUnderlineContent>
|
|
55
|
+
</TabsUnderline>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Con Iconos
|
|
59
|
+
|
|
60
|
+
```tsx
|
|
61
|
+
import { BarChartIcon, TableIcon, FileTextIcon } from "lucide-react";
|
|
62
|
+
|
|
63
|
+
<TabsUnderlineList>
|
|
64
|
+
<TabsUnderlineTrigger value="charts">
|
|
65
|
+
<BarChartIcon />
|
|
66
|
+
Charts
|
|
67
|
+
</TabsUnderlineTrigger>
|
|
68
|
+
<TabsUnderlineTrigger value="table">
|
|
69
|
+
<TableIcon />
|
|
70
|
+
Table
|
|
71
|
+
</TabsUnderlineTrigger>
|
|
72
|
+
<TabsUnderlineTrigger value="report">
|
|
73
|
+
<FileTextIcon />
|
|
74
|
+
Report
|
|
75
|
+
</TabsUnderlineTrigger>
|
|
76
|
+
</TabsUnderlineList>;
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Diferencias con Tabs Regular
|
|
80
|
+
|
|
81
|
+
- Subrayado animado en lugar de fondo
|
|
82
|
+
- Estilo más minimalista
|
|
83
|
+
- API idéntica a Tabs regular
|
|
84
|
+
|
|
85
|
+
## Diferencia vs Tabs
|
|
86
|
+
|
|
87
|
+
**tabs**: Background `bg-muted` con `rounded-lg`, active usa `bg-primary`
|
|
88
|
+
**tabs-underline**: Sin background, active usa `border-b-2 border-b-primary`
|
|
89
|
+
|
|
90
|
+
## Casos de Uso
|
|
91
|
+
|
|
92
|
+
**Navigation**: Navegación principal
|
|
93
|
+
**Content sections**: Secciones de contenido
|
|
94
|
+
**Data views**: Diferentes visualizaciones
|
|
95
|
+
|
|
96
|
+
## Estilos Base
|
|
97
|
+
|
|
98
|
+
- **List**: Sin background, `h-9`
|
|
99
|
+
- **Trigger active**: `border-b-2 border-b-primary text-primary`
|
|
100
|
+
- **Trigger inactive**: `border-b-2 border-b-transparent`
|
|
101
|
+
|
|
102
|
+
## Referencias
|
|
103
|
+
|
|
104
|
+
- Ver [Tabs](./tabs.md) para documentación completa
|
|
105
|
+
- **Radix UI Tabs**: <https://www.radix-ui.com/primitives/docs/components/tabs>
|
|
106
|
+
- **shadcn/ui Tabs**: <https://ui.shadcn.com/docs/components/tabs>
|