@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.
Files changed (144) hide show
  1. package/dist/components/ui/icon/icon.d.ts +11 -0
  2. package/dist/components/ui/icon/icon.stories.d.ts +55 -0
  3. package/dist/components/ui/icon/index.d.ts +1 -0
  4. package/dist/components/ui/input-group/input-group.d.ts +1 -1
  5. package/dist/custom-layered-styles.css +1 -1
  6. package/dist/icon.cjs +6 -0
  7. package/dist/icon.js +36 -0
  8. package/dist/icons.css +1 -0
  9. package/dist/styles.css +1 -1
  10. package/docs/AI-GUIDE.md +321 -321
  11. package/docs/components/layout/sidebar.md +404 -404
  12. package/docs/components/layout/toaster.md +436 -436
  13. package/docs/components/ui/accordion-rounded.md +583 -583
  14. package/docs/components/ui/accordion.md +267 -267
  15. package/docs/components/ui/alert.md +671 -671
  16. package/docs/components/ui/avatar.md +588 -588
  17. package/docs/components/ui/badge.md +1024 -1024
  18. package/docs/components/ui/button-group.md +1002 -1002
  19. package/docs/components/ui/button.md +1078 -1078
  20. package/docs/components/ui/calendar.md +1159 -1159
  21. package/docs/components/ui/card.md +1265 -1265
  22. package/docs/components/ui/checkbox.md +292 -292
  23. package/docs/components/ui/collapsible.md +320 -320
  24. package/docs/components/ui/command.md +454 -454
  25. package/docs/components/ui/context-menu.md +540 -540
  26. package/docs/components/ui/dialog.md +628 -628
  27. package/docs/components/ui/dropdown-menu.md +731 -731
  28. package/docs/components/ui/field.md +706 -706
  29. package/docs/components/ui/hover-card.md +446 -446
  30. package/docs/components/ui/icon.md +502 -0
  31. package/docs/components/ui/input-group.md +509 -509
  32. package/docs/components/ui/input.md +362 -362
  33. package/docs/components/ui/kbd.md +434 -434
  34. package/docs/components/ui/label.md +359 -359
  35. package/docs/components/ui/pagination.md +650 -650
  36. package/docs/components/ui/popover.md +536 -536
  37. package/docs/components/ui/progress.md +182 -182
  38. package/docs/components/ui/radio-group.md +311 -311
  39. package/docs/components/ui/select.md +352 -352
  40. package/docs/components/ui/separator.md +214 -214
  41. package/docs/components/ui/sheet.md +142 -142
  42. package/docs/components/ui/skeleton.md +140 -140
  43. package/docs/components/ui/slider.md +341 -341
  44. package/docs/components/ui/spinner.md +170 -170
  45. package/docs/components/ui/switch.md +402 -402
  46. package/docs/components/ui/table.md +183 -183
  47. package/docs/components/ui/tabs-underline.md +106 -106
  48. package/docs/components/ui/tabs.md +122 -122
  49. package/docs/components/ui/textarea.md +243 -243
  50. package/docs/components/ui/toggle.md +243 -243
  51. package/docs/components/ui/tooltip.md +320 -320
  52. package/docs/components/ui/typography.md +191 -191
  53. package/package.json +6 -5
  54. package/dist/components/icons/account-balance-icon.d.ts +0 -3
  55. package/dist/components/icons/account-icon.d.ts +0 -3
  56. package/dist/components/icons/add-circle-icon.d.ts +0 -3
  57. package/dist/components/icons/alarm-icon.d.ts +0 -3
  58. package/dist/components/icons/archive-icon.d.ts +0 -3
  59. package/dist/components/icons/arrow-back-icon.d.ts +0 -3
  60. package/dist/components/icons/arrow-circle-up-icon.d.ts +0 -3
  61. package/dist/components/icons/arrow-forward-icon.d.ts +0 -3
  62. package/dist/components/icons/arrow-outward-icon.d.ts +0 -3
  63. package/dist/components/icons/article-icon.d.ts +0 -3
  64. package/dist/components/icons/attach-file-icon.d.ts +0 -3
  65. package/dist/components/icons/autorenew-icon.d.ts +0 -3
  66. package/dist/components/icons/bookmark-icon.d.ts +0 -3
  67. package/dist/components/icons/calculate-icon.d.ts +0 -3
  68. package/dist/components/icons/calendar-today-icon.d.ts +0 -3
  69. package/dist/components/icons/call-split-icon.d.ts +0 -3
  70. package/dist/components/icons/cancel-filled-icon.d.ts +0 -3
  71. package/dist/components/icons/cancel-icon.d.ts +0 -3
  72. package/dist/components/icons/check-circle-icon.d.ts +0 -3
  73. package/dist/components/icons/check-icon.d.ts +0 -3
  74. package/dist/components/icons/chevron-back-icon.d.ts +0 -3
  75. package/dist/components/icons/chevron-down-icon.d.ts +0 -3
  76. package/dist/components/icons/chevron-forward-icon.d.ts +0 -3
  77. package/dist/components/icons/chevron-up-icon.d.ts +0 -3
  78. package/dist/components/icons/clarify-icon.d.ts +0 -3
  79. package/dist/components/icons/clock-icon.d.ts +0 -3
  80. package/dist/components/icons/close-icon.d.ts +0 -3
  81. package/dist/components/icons/confirmation-number-icon.d.ts +0 -3
  82. package/dist/components/icons/contacts-icon.d.ts +0 -3
  83. package/dist/components/icons/contract-delete-icon.d.ts +0 -3
  84. package/dist/components/icons/copy-icon.d.ts +0 -3
  85. package/dist/components/icons/do-not-touch-icon.d.ts +0 -3
  86. package/dist/components/icons/download-icon.d.ts +0 -3
  87. package/dist/components/icons/dragger-icon.d.ts +0 -3
  88. package/dist/components/icons/edit-icon.d.ts +0 -3
  89. package/dist/components/icons/edit-square-icon.d.ts +0 -3
  90. package/dist/components/icons/exclamation-icon.d.ts +0 -3
  91. package/dist/components/icons/expand-circle-right-icon.d.ts +0 -3
  92. package/dist/components/icons/feature-search-icon.d.ts +0 -3
  93. package/dist/components/icons/filter-icon.d.ts +0 -3
  94. package/dist/components/icons/folder-icon.d.ts +0 -3
  95. package/dist/components/icons/folder-open-icon.d.ts +0 -3
  96. package/dist/components/icons/format-list-bulleted-icon.d.ts +0 -3
  97. package/dist/components/icons/hamburger-menu-icon.d.ts +0 -3
  98. package/dist/components/icons/help-icon.d.ts +0 -3
  99. package/dist/components/icons/hide-pass-icon.d.ts +0 -3
  100. package/dist/components/icons/home-icon.d.ts +0 -3
  101. package/dist/components/icons/id-card-icon.d.ts +0 -3
  102. package/dist/components/icons/index.d.ts +0 -88
  103. package/dist/components/icons/info-icon.d.ts +0 -3
  104. package/dist/components/icons/kid-star-icon.d.ts +0 -3
  105. package/dist/components/icons/language-icon.d.ts +0 -3
  106. package/dist/components/icons/last-page-icon.d.ts +0 -3
  107. package/dist/components/icons/layers-icon.d.ts +0 -3
  108. package/dist/components/icons/location-icon.d.ts +0 -3
  109. package/dist/components/icons/mail-icon.d.ts +0 -3
  110. package/dist/components/icons/manage-search-icon.d.ts +0 -3
  111. package/dist/components/icons/menu-icon.d.ts +0 -3
  112. package/dist/components/icons/message-icon.d.ts +0 -3
  113. package/dist/components/icons/metrics-icon.d.ts +0 -3
  114. package/dist/components/icons/mic-icon.d.ts +0 -3
  115. package/dist/components/icons/minus-icon.d.ts +0 -3
  116. package/dist/components/icons/mode-comment-icon.d.ts +0 -3
  117. package/dist/components/icons/money-icon.d.ts +0 -3
  118. package/dist/components/icons/monitoring-icon.d.ts +0 -3
  119. package/dist/components/icons/more-icon.d.ts +0 -3
  120. package/dist/components/icons/notifications-icon.d.ts +0 -3
  121. package/dist/components/icons/open-in-new-icon.d.ts +0 -3
  122. package/dist/components/icons/palette-icon.d.ts +0 -3
  123. package/dist/components/icons/password-icon.d.ts +0 -3
  124. package/dist/components/icons/pending-icon.d.ts +0 -3
  125. package/dist/components/icons/person-add-icon.d.ts +0 -3
  126. package/dist/components/icons/person-search-icon.d.ts +0 -3
  127. package/dist/components/icons/photo-icon.d.ts +0 -3
  128. package/dist/components/icons/plus-icon.d.ts +0 -3
  129. package/dist/components/icons/policy-icon.d.ts +0 -3
  130. package/dist/components/icons/publish-icon.d.ts +0 -3
  131. package/dist/components/icons/ready-icon.d.ts +0 -3
  132. package/dist/components/icons/receipt-icon.d.ts +0 -3
  133. package/dist/components/icons/receive-icon.d.ts +0 -3
  134. package/dist/components/icons/refresh-icon.d.ts +0 -3
  135. package/dist/components/icons/search-icon.d.ts +0 -3
  136. package/dist/components/icons/see-icon.d.ts +0 -3
  137. package/dist/components/icons/send-icon.d.ts +0 -3
  138. package/dist/components/icons/settings-icon.d.ts +0 -3
  139. package/dist/components/icons/shield-icon.d.ts +0 -3
  140. package/dist/components/icons/swap-horiz-icon.d.ts +0 -3
  141. package/dist/components/icons/tag-icon.d.ts +0 -3
  142. package/dist/components/icons/trash-icon.d.ts +0 -3
  143. package/dist/icons.cjs +0 -1
  144. package/dist/icons.js +0 -1507
@@ -1,214 +1,214 @@
1
- # Separator
2
-
3
- Separador visual basado en Radix UI. Divide secciones con línea horizontal o vertical, con semántica accesible.
4
-
5
- ## Descripción
6
-
7
- El componente `Separator` muestra una línea divisoria visual entre secciones de contenido.
8
-
9
- ## Importación
10
-
11
- ```typescript
12
- import { Separator } from "@adamosuiteservices/ui/separator";
13
- ```
14
-
15
- ## Anatomía
16
-
17
- ```tsx
18
- <div>
19
- <div>Section 1</div>
20
- <Separator />
21
- <div>Section 2</div>
22
- </div>
23
- ```
24
-
25
- **Componentes**: 1 (Separator)
26
-
27
- ## Props
28
-
29
- | Prop | Tipo | Default | Descripción |
30
- | ------------- | ---------------------------- | -------------- | ------------------------------- |
31
- | `orientation` | `"horizontal" \| "vertical"` | `"horizontal"` | Orientación del separador |
32
- | `decorative` | `boolean` | `true` | Si es decorativo (no semántico) |
33
- | `className` | `string` | - | Clases CSS adicionales |
34
-
35
- ## Patrones de Uso
36
-
37
- ### Horizontal (Default)
38
-
39
- ```tsx
40
- <div>
41
- <h4 className="text-sm font-medium">Radix Primitives</h4>
42
- <p className="text-sm text-muted-foreground">
43
- An open-source UI component library.
44
- </p>
45
- </div>
46
- <Separator className="my-4" />
47
- <div>
48
- <h4 className="text-sm font-medium">Next Section</h4>
49
- <p className="text-sm text-muted-foreground">More content here.</p>
50
- </div>
51
- ```
52
-
53
- ### Vertical
54
-
55
- ```tsx
56
- <div className="flex h-5 items-center space-x-4 text-sm">
57
- <div>Blog</div>
58
- <Separator orientation="vertical" />
59
- <div>Docs</div>
60
- <Separator orientation="vertical" />
61
- <div>Source</div>
62
- </div>
63
- ```
64
-
65
- ### En Navegación
66
-
67
- ```tsx
68
- <nav className="flex items-center space-x-4 text-sm">
69
- <a href="#" className="font-medium hover:underline">
70
- Home
71
- </a>
72
- <Separator orientation="vertical" className="h-4" />
73
- <a href="#" className="font-medium hover:underline">
74
- About
75
- </a>
76
- <Separator orientation="vertical" className="h-4" />
77
- <a href="#" className="font-medium hover:underline">
78
- Contact
79
- </a>
80
- </nav>
81
- ```
82
-
83
- ### En Cards
84
-
85
- ```tsx
86
- import {
87
- Card,
88
- CardHeader,
89
- CardContent,
90
- CardTitle,
91
- } from "@adamosuiteservices/ui/card";
92
-
93
- <Card>
94
- <CardHeader>
95
- <CardTitle>User Profile</CardTitle>
96
- </CardHeader>
97
- <CardContent className="space-y-4">
98
- <div>
99
- <p className="text-sm">John Doe</p>
100
- <p className="text-xs text-muted-foreground">john@example.com</p>
101
- </div>
102
- <Separator />
103
- <div className="space-y-2">
104
- <div className="flex justify-between text-sm">
105
- <span>Status</span>
106
- <span className="text-muted-foreground">Active</span>
107
- </div>
108
- <div className="flex justify-between text-sm">
109
- <span>Role</span>
110
- <span className="text-muted-foreground">Admin</span>
111
- </div>
112
- </div>
113
- </CardContent>
114
- </Card>;
115
- ```
116
-
117
- ### Con Spacing Custom
118
-
119
- ```tsx
120
- <Separator className="my-2" /> {/* Tight */}
121
- <Separator className="my-4" /> {/* Normal */}
122
- <Separator className="my-8" /> {/* Loose */}
123
- ```
124
-
125
- ### En Listas
126
-
127
- ```tsx
128
- const items = [
129
- { id: 1, title: "First Item" },
130
- { id: 2, title: "Second Item" },
131
- { id: 3, title: "Third Item" },
132
- ];
133
-
134
- <div className="space-y-0">
135
- {items.map((item, index) => (
136
- <div key={item.id}>
137
- <div className="py-3">
138
- <h4 className="text-sm font-medium">{item.title}</h4>
139
- </div>
140
- {index < items.length - 1 && <Separator />}
141
- </div>
142
- ))}
143
- </div>;
144
- ```
145
-
146
- ### Con Colores Custom
147
-
148
- ```tsx
149
- <Separator className="bg-muted" /> {/* Subtle */}
150
- <Separator className="bg-primary h-0.5" /> {/* Accent */}
151
- <Separator className="bg-border" /> {/* Default */}
152
- ```
153
-
154
- ## Casos de Uso
155
-
156
- **Section dividers**: Separar secciones de contenido
157
- **Navigation**: Dividir items de navegación
158
- **Cards**: Separar contenido en cards
159
- **Lists**: Dividir items en listas
160
- **Sidebars**: Separar grupos de opciones
161
- **Stats**: Dividir métricas verticalmente
162
-
163
- ## Estilos Base
164
-
165
- ### Estilos Horizontal
166
-
167
- - **Height**: `h-px` (1px)
168
- - **Width**: `w-full`
169
- - **Color**: `bg-border`
170
-
171
- ### Estilos Vertical
172
-
173
- - **Width**: `w-px` (1px)
174
- - **Height**: `h-full`
175
- - **Color**: `bg-border`
176
-
177
- ## Accesibilidad
178
-
179
- - ✅ **ARIA**: `role="separator"` si `decorative=false`
180
- - ✅ **Decorative**: Por defecto `decorative=true` (no anunciado por screen readers)
181
- - ✅ **Semantic**: Usa `decorative=false` para separadores semánticos
182
-
183
- ## Notas de Implementación
184
-
185
- - **Radix UI**: Basado en `@radix-ui/react-separator`
186
- - **Data attributes**: `data-[orientation=horizontal|vertical]` para estilos
187
- - **Shrink**: `shrink-0` para evitar colapso en flex
188
- - **Decorative**: Por defecto no tiene rol semántico (solo visual)
189
-
190
- ## Decorative vs Semantic
191
-
192
- ```tsx
193
- {
194
- /* Decorative (default) - solo visual */
195
- }
196
- <Separator />;
197
-
198
- {
199
- /* Semantic - anunciado por screen readers */
200
- }
201
- <Separator decorative={false} />;
202
- ```
203
-
204
- ## Troubleshooting
205
-
206
- **No se ve**: Verifica `bg-border` o color custom aplicado
207
- **Muy alto/ancho**: Horizontal usa `h-px`, vertical usa `w-px`
208
- **No divide verticalmente**: Verifica `orientation="vertical"` y altura del contenedor
209
- **Spacing inconsistente**: Usa `my-*` o `mx-*` para spacing uniforme
210
-
211
- ## Referencias
212
-
213
- - **Radix UI Separator**: <https://www.radix-ui.com/primitives/docs/components/separator>
214
- - **shadcn/ui Separator**: <https://ui.shadcn.com/docs/components/separator>
1
+ # Separator
2
+
3
+ Separador visual basado en Radix UI. Divide secciones con línea horizontal o vertical, con semántica accesible.
4
+
5
+ ## Descripción
6
+
7
+ El componente `Separator` muestra una línea divisoria visual entre secciones de contenido.
8
+
9
+ ## Importación
10
+
11
+ ```typescript
12
+ import { Separator } from "@adamosuiteservices/ui/separator";
13
+ ```
14
+
15
+ ## Anatomía
16
+
17
+ ```tsx
18
+ <div>
19
+ <div>Section 1</div>
20
+ <Separator />
21
+ <div>Section 2</div>
22
+ </div>
23
+ ```
24
+
25
+ **Componentes**: 1 (Separator)
26
+
27
+ ## Props
28
+
29
+ | Prop | Tipo | Default | Descripción |
30
+ | ------------- | ---------------------------- | -------------- | ------------------------------- |
31
+ | `orientation` | `"horizontal" \| "vertical"` | `"horizontal"` | Orientación del separador |
32
+ | `decorative` | `boolean` | `true` | Si es decorativo (no semántico) |
33
+ | `className` | `string` | - | Clases CSS adicionales |
34
+
35
+ ## Patrones de Uso
36
+
37
+ ### Horizontal (Default)
38
+
39
+ ```tsx
40
+ <div>
41
+ <h4 className="text-sm font-medium">Radix Primitives</h4>
42
+ <p className="text-sm text-muted-foreground">
43
+ An open-source UI component library.
44
+ </p>
45
+ </div>
46
+ <Separator className="my-4" />
47
+ <div>
48
+ <h4 className="text-sm font-medium">Next Section</h4>
49
+ <p className="text-sm text-muted-foreground">More content here.</p>
50
+ </div>
51
+ ```
52
+
53
+ ### Vertical
54
+
55
+ ```tsx
56
+ <div className="flex h-5 items-center space-x-4 text-sm">
57
+ <div>Blog</div>
58
+ <Separator orientation="vertical" />
59
+ <div>Docs</div>
60
+ <Separator orientation="vertical" />
61
+ <div>Source</div>
62
+ </div>
63
+ ```
64
+
65
+ ### En Navegación
66
+
67
+ ```tsx
68
+ <nav className="flex items-center space-x-4 text-sm">
69
+ <a href="#" className="font-medium hover:underline">
70
+ Home
71
+ </a>
72
+ <Separator orientation="vertical" className="h-4" />
73
+ <a href="#" className="font-medium hover:underline">
74
+ About
75
+ </a>
76
+ <Separator orientation="vertical" className="h-4" />
77
+ <a href="#" className="font-medium hover:underline">
78
+ Contact
79
+ </a>
80
+ </nav>
81
+ ```
82
+
83
+ ### En Cards
84
+
85
+ ```tsx
86
+ import {
87
+ Card,
88
+ CardHeader,
89
+ CardContent,
90
+ CardTitle,
91
+ } from "@adamosuiteservices/ui/card";
92
+
93
+ <Card>
94
+ <CardHeader>
95
+ <CardTitle>User Profile</CardTitle>
96
+ </CardHeader>
97
+ <CardContent className="space-y-4">
98
+ <div>
99
+ <p className="text-sm">John Doe</p>
100
+ <p className="text-xs text-muted-foreground">john@example.com</p>
101
+ </div>
102
+ <Separator />
103
+ <div className="space-y-2">
104
+ <div className="flex justify-between text-sm">
105
+ <span>Status</span>
106
+ <span className="text-muted-foreground">Active</span>
107
+ </div>
108
+ <div className="flex justify-between text-sm">
109
+ <span>Role</span>
110
+ <span className="text-muted-foreground">Admin</span>
111
+ </div>
112
+ </div>
113
+ </CardContent>
114
+ </Card>;
115
+ ```
116
+
117
+ ### Con Spacing Custom
118
+
119
+ ```tsx
120
+ <Separator className="my-2" /> {/* Tight */}
121
+ <Separator className="my-4" /> {/* Normal */}
122
+ <Separator className="my-8" /> {/* Loose */}
123
+ ```
124
+
125
+ ### En Listas
126
+
127
+ ```tsx
128
+ const items = [
129
+ { id: 1, title: "First Item" },
130
+ { id: 2, title: "Second Item" },
131
+ { id: 3, title: "Third Item" },
132
+ ];
133
+
134
+ <div className="space-y-0">
135
+ {items.map((item, index) => (
136
+ <div key={item.id}>
137
+ <div className="py-3">
138
+ <h4 className="text-sm font-medium">{item.title}</h4>
139
+ </div>
140
+ {index < items.length - 1 && <Separator />}
141
+ </div>
142
+ ))}
143
+ </div>;
144
+ ```
145
+
146
+ ### Con Colores Custom
147
+
148
+ ```tsx
149
+ <Separator className="bg-muted" /> {/* Subtle */}
150
+ <Separator className="bg-primary h-0.5" /> {/* Accent */}
151
+ <Separator className="bg-border" /> {/* Default */}
152
+ ```
153
+
154
+ ## Casos de Uso
155
+
156
+ **Section dividers**: Separar secciones de contenido
157
+ **Navigation**: Dividir items de navegación
158
+ **Cards**: Separar contenido en cards
159
+ **Lists**: Dividir items en listas
160
+ **Sidebars**: Separar grupos de opciones
161
+ **Stats**: Dividir métricas verticalmente
162
+
163
+ ## Estilos Base
164
+
165
+ ### Estilos Horizontal
166
+
167
+ - **Height**: `h-px` (1px)
168
+ - **Width**: `w-full`
169
+ - **Color**: `bg-border`
170
+
171
+ ### Estilos Vertical
172
+
173
+ - **Width**: `w-px` (1px)
174
+ - **Height**: `h-full`
175
+ - **Color**: `bg-border`
176
+
177
+ ## Accesibilidad
178
+
179
+ - ✅ **ARIA**: `role="separator"` si `decorative=false`
180
+ - ✅ **Decorative**: Por defecto `decorative=true` (no anunciado por screen readers)
181
+ - ✅ **Semantic**: Usa `decorative=false` para separadores semánticos
182
+
183
+ ## Notas de Implementación
184
+
185
+ - **Radix UI**: Basado en `@radix-ui/react-separator`
186
+ - **Data attributes**: `data-[orientation=horizontal|vertical]` para estilos
187
+ - **Shrink**: `shrink-0` para evitar colapso en flex
188
+ - **Decorative**: Por defecto no tiene rol semántico (solo visual)
189
+
190
+ ## Decorative vs Semantic
191
+
192
+ ```tsx
193
+ {
194
+ /* Decorative (default) - solo visual */
195
+ }
196
+ <Separator />;
197
+
198
+ {
199
+ /* Semantic - anunciado por screen readers */
200
+ }
201
+ <Separator decorative={false} />;
202
+ ```
203
+
204
+ ## Troubleshooting
205
+
206
+ **No se ve**: Verifica `bg-border` o color custom aplicado
207
+ **Muy alto/ancho**: Horizontal usa `h-px`, vertical usa `w-px`
208
+ **No divide verticalmente**: Verifica `orientation="vertical"` y altura del contenedor
209
+ **Spacing inconsistente**: Usa `my-*` o `mx-*` para spacing uniforme
210
+
211
+ ## Referencias
212
+
213
+ - **Radix UI Separator**: <https://www.radix-ui.com/primitives/docs/components/separator>
214
+ - **shadcn/ui Separator**: <https://ui.shadcn.com/docs/components/separator>