@rubenpazch/ui 0.10.0 → 0.12.0
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/AGENTS.md +1 -0
- package/dist/index.d.ts +2 -2
- package/docs/COMPONENTES.md +27 -19
- package/docs/catalogo.json +39 -4
- package/package.json +19 -19
package/AGENTS.md
CHANGED
|
@@ -108,6 +108,7 @@ rutas internas (`dist/…`).
|
|
|
108
108
|
| Adjuntar archivos | `FileUpload` (varios, con validación); una sola imagen con vista previa: `ImageUpload` |
|
|
109
109
|
| Personas en cuadrícula (usuarios, socios, clientes) | `UserCard` |
|
|
110
110
|
| Raíz de una app con sesión | `AuthGate` envolviendo `AppShell` (ver decisión 0006) |
|
|
111
|
+
| Login único: espera, "Cerraste sesión", error al volver | `AuthScreen` (`busy={false}`, `description`, `action`, `tone="error"`); sin pantalla de login propia (decisión 0011) |
|
|
111
112
|
| Cargando | `Skeleton` (contenido), `LoadingSpinner` (botón), `OverlayLoader` (pantalla), `ProgressBar` (avance) |
|
|
112
113
|
|
|
113
114
|
```tsx
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { default as Alert, AlertProps, AlertVariant } from '@rubenpazch/alert';
|
|
2
2
|
export { default as AppShell, AppShellProps } from '@rubenpazch/app-shell';
|
|
3
|
-
export { default as AuthGate, AuthGateLabels, AuthGateProps, AuthScreen } from '@rubenpazch/auth-gate';
|
|
3
|
+
export { default as AuthGate, AuthGateLabels, AuthGateProps, AuthScreen, AuthScreenProps } from '@rubenpazch/auth-gate';
|
|
4
4
|
export { default as Autocomplete, AutocompleteOption, AutocompleteProps } from '@rubenpazch/autocomplete';
|
|
5
5
|
export { Avatar, AvatarGroup, AvatarGroupProps, AvatarGroupSpacing, AvatarProps, AvatarSize, AvatarVariant } from '@rubenpazch/avatar';
|
|
6
6
|
export { default as Badge, BadgeColor, BadgeProps, BadgeVariant } from '@rubenpazch/badge';
|
|
@@ -47,7 +47,7 @@ export { default as Sidebar, SidebarItem, SidebarLabels, SidebarProps, SidebarSe
|
|
|
47
47
|
export { default as Skeleton, SkeletonProps } from '@rubenpazch/skeleton';
|
|
48
48
|
export { default as Stepper } from '@rubenpazch/stepper';
|
|
49
49
|
export { default as Switch, SwitchProps } from '@rubenpazch/switch';
|
|
50
|
-
export { default as Tabs } from '@rubenpazch/tabs';
|
|
50
|
+
export { Tab, TabOrientation, default as Tabs, TabsProps } from '@rubenpazch/tabs';
|
|
51
51
|
export { default as TextInput, TextInputNativeProps, TextInputProps } from '@rubenpazch/text-input';
|
|
52
52
|
export { default as Textarea, TextareaProps } from '@rubenpazch/textarea';
|
|
53
53
|
export { default as Timeline, TimelineItem, TimelineProps, TimelineStatus } from '@rubenpazch/timeline';
|
package/docs/COMPONENTES.md
CHANGED
|
@@ -1031,18 +1031,23 @@ import { AuthGate } from "@rubenpazch/ui";
|
|
|
1031
1031
|
|
|
1032
1032
|
#### AuthScreen
|
|
1033
1033
|
|
|
1034
|
-
Pantalla neutra
|
|
1034
|
+
Pantalla completa y neutra de la sesión: espera ("Verificando sesión…") o mensaje con acción
|
|
1035
|
+
("Cerraste sesión", un error del login único). Decisiones 0006 y 0011 de lbyte-contexto.
|
|
1035
1036
|
|
|
1036
1037
|
```tsx
|
|
1037
1038
|
import { AuthScreen } from "@rubenpazch/ui";
|
|
1038
1039
|
```
|
|
1039
1040
|
|
|
1040
|
-
| Prop
|
|
1041
|
-
|
|
|
1042
|
-
| `label`
|
|
1043
|
-
| `
|
|
1041
|
+
| Prop | Tipo | Req. | Por defecto | Descripción |
|
|
1042
|
+
| ------------- | ---------------------- | ---- | ----------- | ----------------------------------------------------------------------------------- |
|
|
1043
|
+
| `label` | `string` | sí | | Texto principal: "Verificando sesión…", "Cerraste sesión". |
|
|
1044
|
+
| `action` | `ReactNode` | | | Acción bajo el texto: "Volver a entrar", "Volver a intentar". |
|
|
1045
|
+
| `brand` | `ReactNode` | | | |
|
|
1046
|
+
| `busy` | `boolean` | | `true` | Muestra el indicador de carga (por defecto true). false para pantallas con mensaje. |
|
|
1047
|
+
| `description` | `ReactNode` | | | Detalle bajo el texto (motivo de un error, indicación). |
|
|
1048
|
+
| `tone` | `"neutral" \| "error"` | | `neutral` | error: el lector de pantalla lo anuncia de inmediato (role="alert"). |
|
|
1044
1049
|
|
|
1045
|
-
Tipos: `AuthGateProps`, `
|
|
1050
|
+
Tipos: `AuthGateLabels`, `AuthGateProps`, `AuthScreenProps`.
|
|
1046
1051
|
|
|
1047
1052
|
### @rubenpazch/drawer
|
|
1048
1053
|
|
|
@@ -1257,19 +1262,22 @@ Pestañas para alternar entre secciones de una misma vista.
|
|
|
1257
1262
|
import { Tabs } from "@rubenpazch/ui";
|
|
1258
1263
|
```
|
|
1259
1264
|
|
|
1260
|
-
| Prop | Tipo | Req. | Por defecto | Descripción
|
|
1261
|
-
| ------------------ | ------------------------------------------ | ---- | ------------ |
|
|
1262
|
-
| `tabs` | `Tab[]` | sí | |
|
|
1263
|
-
| `ariaLabel` | `string` | | `Pestañas` | Nombre accesible del grupo de pestañas (por defecto "Pestañas").
|
|
1264
|
-
| `className` | `string` | | |
|
|
1265
|
-
| `defaultTab` | `string` | | |
|
|
1266
|
-
| `lazy` | `boolean` | | `false` | Lazy mode - only calls onLoad when tab is first visited
|
|
1267
|
-
| `loading` | `boolean` | | `false` | Loading state for the active tab content
|
|
1268
|
-
| `loadingComponent` | `ReactNode` | | | Custom loading component
|
|
1269
|
-
| `onChange` | `(tabId: string) => void` | | |
|
|
1270
|
-
| `onLoad` | `(tabId: string) => void \| Promise<void>` | | | Called when a tab is activated. Use for lazy loading data
|
|
1271
|
-
| `orientation` | `"horizontal" \| "vertical"` | | `horizontal` | Orientation of tabs - horizontal (default) or vertical (left-aligned)
|
|
1272
|
-
| `renderContent` | `(tabId: string) => ReactNode` | | | Render function for tab content (alternative to content prop in Tab)
|
|
1265
|
+
| Prop | Tipo | Req. | Por defecto | Descripción |
|
|
1266
|
+
| ------------------ | ------------------------------------------ | ---- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1267
|
+
| `tabs` | `Tab[]` | sí | | |
|
|
1268
|
+
| `ariaLabel` | `string` | | `Pestañas` | Nombre accesible del grupo de pestañas (por defecto "Pestañas"). |
|
|
1269
|
+
| `className` | `string` | | | |
|
|
1270
|
+
| `defaultTab` | `string` | | | |
|
|
1271
|
+
| `lazy` | `boolean` | | `false` | Lazy mode - only calls onLoad when tab is first visited |
|
|
1272
|
+
| `loading` | `boolean` | | `false` | Loading state for the active tab content |
|
|
1273
|
+
| `loadingComponent` | `ReactNode` | | | Custom loading component |
|
|
1274
|
+
| `onChange` | `(tabId: string) => void` | | | |
|
|
1275
|
+
| `onLoad` | `(tabId: string) => void \| Promise<void>` | | | Called when a tab is activated. Use for lazy loading data |
|
|
1276
|
+
| `orientation` | `"horizontal" \| "vertical"` | | `horizontal` | Orientation of tabs - horizontal (default) or vertical (left-aligned) |
|
|
1277
|
+
| `renderContent` | `(tabId: string) => ReactNode` | | | Render function for tab content (alternative to content prop in Tab) |
|
|
1278
|
+
| `value` | `string` | | | Pestaña activa (modo controlado). Úsalo cuando la pestaña vive en la URL o en el estado de la app: el componente no la cambia solo, avisa con `onChange`. Sin `value` funciona como antes. |
|
|
1279
|
+
|
|
1280
|
+
Tipos: `Tab`, `TabOrientation`, `TabsProps`.
|
|
1273
1281
|
|
|
1274
1282
|
## Retroalimentación
|
|
1275
1283
|
|
package/docs/catalogo.json
CHANGED
|
@@ -307,14 +307,21 @@
|
|
|
307
307
|
{
|
|
308
308
|
"nombre": "AuthScreen",
|
|
309
309
|
"importar": "import { AuthScreen } from \"@rubenpazch/ui\";",
|
|
310
|
-
"descripcion": "Pantalla neutra
|
|
310
|
+
"descripcion": "Pantalla completa y neutra de la sesión: espera (\"Verificando sesión…\") o mensaje con acción\n(\"Cerraste sesión\", un error del login único). Decisiones 0006 y 0011 de lbyte-contexto.",
|
|
311
311
|
"props": [
|
|
312
312
|
{
|
|
313
313
|
"nombre": "label",
|
|
314
314
|
"tipo": "string",
|
|
315
315
|
"requerido": true,
|
|
316
316
|
"porDefecto": null,
|
|
317
|
-
"descripcion": ""
|
|
317
|
+
"descripcion": "Texto principal: \"Verificando sesión…\", \"Cerraste sesión\"."
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"nombre": "action",
|
|
321
|
+
"tipo": "ReactNode",
|
|
322
|
+
"requerido": false,
|
|
323
|
+
"porDefecto": null,
|
|
324
|
+
"descripcion": "Acción bajo el texto: \"Volver a entrar\", \"Volver a intentar\"."
|
|
318
325
|
},
|
|
319
326
|
{
|
|
320
327
|
"nombre": "brand",
|
|
@@ -322,12 +329,33 @@
|
|
|
322
329
|
"requerido": false,
|
|
323
330
|
"porDefecto": null,
|
|
324
331
|
"descripcion": ""
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"nombre": "busy",
|
|
335
|
+
"tipo": "boolean",
|
|
336
|
+
"requerido": false,
|
|
337
|
+
"porDefecto": "true",
|
|
338
|
+
"descripcion": "Muestra el indicador de carga (por defecto true). false para pantallas con mensaje."
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"nombre": "description",
|
|
342
|
+
"tipo": "ReactNode",
|
|
343
|
+
"requerido": false,
|
|
344
|
+
"porDefecto": null,
|
|
345
|
+
"descripcion": "Detalle bajo el texto (motivo de un error, indicación)."
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"nombre": "tone",
|
|
349
|
+
"tipo": "\"neutral\" | \"error\"",
|
|
350
|
+
"requerido": false,
|
|
351
|
+
"porDefecto": "neutral",
|
|
352
|
+
"descripcion": "error: el lector de pantalla lo anuncia de inmediato (role=\"alert\")."
|
|
325
353
|
}
|
|
326
354
|
]
|
|
327
355
|
}
|
|
328
356
|
],
|
|
329
357
|
"otrosValores": [],
|
|
330
|
-
"tipos": ["AuthGateProps", "
|
|
358
|
+
"tipos": ["AuthGateLabels", "AuthGateProps", "AuthScreenProps"]
|
|
331
359
|
},
|
|
332
360
|
{
|
|
333
361
|
"paquete": "@rubenpazch/autocomplete",
|
|
@@ -8063,12 +8091,19 @@
|
|
|
8063
8091
|
"requerido": false,
|
|
8064
8092
|
"porDefecto": null,
|
|
8065
8093
|
"descripcion": "Render function for tab content (alternative to content prop in Tab)"
|
|
8094
|
+
},
|
|
8095
|
+
{
|
|
8096
|
+
"nombre": "value",
|
|
8097
|
+
"tipo": "string",
|
|
8098
|
+
"requerido": false,
|
|
8099
|
+
"porDefecto": null,
|
|
8100
|
+
"descripcion": "Pestaña activa (modo controlado). Úsalo cuando la pestaña vive en la URL o en el estado de la\napp: el componente no la cambia solo, avisa con `onChange`. Sin `value` funciona como antes."
|
|
8066
8101
|
}
|
|
8067
8102
|
]
|
|
8068
8103
|
}
|
|
8069
8104
|
],
|
|
8070
8105
|
"otrosValores": [],
|
|
8071
|
-
"tipos": []
|
|
8106
|
+
"tipos": ["Tab", "TabOrientation", "TabsProps"]
|
|
8072
8107
|
},
|
|
8073
8108
|
{
|
|
8074
8109
|
"paquete": "@rubenpazch/text-input",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rubenpazch/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Todos los componentes de Lbyte UI en un solo paquete, con su documentación para personas y agentes de IA",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@rubenpazch/alert": "^0.2.1",
|
|
41
|
-
"@rubenpazch/auth-gate": "^0.
|
|
41
|
+
"@rubenpazch/auth-gate": "^0.2.0",
|
|
42
42
|
"@rubenpazch/app-shell": "^0.3.1",
|
|
43
43
|
"@rubenpazch/autocomplete": "^5.3.0",
|
|
44
44
|
"@rubenpazch/avatar": "^3.1.3",
|
|
@@ -52,49 +52,49 @@
|
|
|
52
52
|
"@rubenpazch/date-input": "^3.2.1",
|
|
53
53
|
"@rubenpazch/date-picker": "^3.2.1",
|
|
54
54
|
"@rubenpazch/date-range-picker": "^0.1.1",
|
|
55
|
-
"@rubenpazch/description-list": "^0.1.0",
|
|
56
55
|
"@rubenpazch/draggable-list": "^3.0.4",
|
|
56
|
+
"@rubenpazch/description-list": "^0.1.0",
|
|
57
57
|
"@rubenpazch/drawer": "^4.2.5",
|
|
58
58
|
"@rubenpazch/empty-state": "^0.1.2",
|
|
59
59
|
"@rubenpazch/form-field": "^0.1.2",
|
|
60
60
|
"@rubenpazch/icon-button": "^4.2.2",
|
|
61
|
-
"@rubenpazch/icons": "^6.4.1",
|
|
62
61
|
"@rubenpazch/file-upload": "^0.1.0",
|
|
62
|
+
"@rubenpazch/icons": "^6.4.1",
|
|
63
63
|
"@rubenpazch/identification-input": "^2.1.0",
|
|
64
|
-
"@rubenpazch/image-upload": "^3.1.1",
|
|
65
|
-
"@rubenpazch/info-row": "^3.0.4",
|
|
66
64
|
"@rubenpazch/loading-spinner": "^4.1.0",
|
|
65
|
+
"@rubenpazch/info-row": "^3.0.4",
|
|
67
66
|
"@rubenpazch/menu": "^0.1.2",
|
|
68
67
|
"@rubenpazch/modal": "^0.1.3",
|
|
69
68
|
"@rubenpazch/money-input": "^0.1.2",
|
|
70
|
-
"@rubenpazch/
|
|
69
|
+
"@rubenpazch/image-upload": "^3.1.1",
|
|
71
70
|
"@rubenpazch/numeric-picker": "^5.1.3",
|
|
72
|
-
"@rubenpazch/
|
|
73
|
-
"@rubenpazch/overlay-loader": "^1.1.4",
|
|
71
|
+
"@rubenpazch/month-navigator": "^0.1.2",
|
|
74
72
|
"@rubenpazch/page-header": "^0.1.2",
|
|
73
|
+
"@rubenpazch/numeric-up-picker": "^6.1.4",
|
|
75
74
|
"@rubenpazch/pagination": "^3.2.4",
|
|
76
|
-
"@rubenpazch/patient-details": "^3.1.3",
|
|
77
75
|
"@rubenpazch/patient-search": "^3.0.6",
|
|
78
76
|
"@rubenpazch/prescription-card": "^3.0.5",
|
|
77
|
+
"@rubenpazch/patient-details": "^3.1.3",
|
|
78
|
+
"@rubenpazch/overlay-loader": "^1.1.4",
|
|
79
79
|
"@rubenpazch/prescription-eye-card": "^3.0.7",
|
|
80
80
|
"@rubenpazch/progress-bar": "^0.1.2",
|
|
81
81
|
"@rubenpazch/radio-button": "^4.2.1",
|
|
82
|
-
"@rubenpazch/shared": "^5.3.0",
|
|
83
|
-
"@rubenpazch/segmented-control": "^0.1.2",
|
|
84
82
|
"@rubenpazch/select": "^1.3.0",
|
|
85
|
-
"@rubenpazch/
|
|
83
|
+
"@rubenpazch/shared": "^5.3.0",
|
|
86
84
|
"@rubenpazch/sidebar": "^0.1.3",
|
|
87
|
-
"@rubenpazch/
|
|
88
|
-
"@rubenpazch/tabs": "^3.1.1",
|
|
85
|
+
"@rubenpazch/skeleton": "^0.1.2",
|
|
89
86
|
"@rubenpazch/switch": "^0.1.2",
|
|
87
|
+
"@rubenpazch/segmented-control": "^0.1.2",
|
|
90
88
|
"@rubenpazch/text-input": "^6.4.0",
|
|
91
89
|
"@rubenpazch/textarea": "^0.1.2",
|
|
92
|
-
"@rubenpazch/
|
|
90
|
+
"@rubenpazch/tabs": "^3.2.0",
|
|
91
|
+
"@rubenpazch/stepper": "^4.1.2",
|
|
93
92
|
"@rubenpazch/toast": "^4.1.1",
|
|
94
|
-
"@rubenpazch/
|
|
93
|
+
"@rubenpazch/timeline": "^0.1.0",
|
|
95
94
|
"@rubenpazch/tokens": "^0.5.0",
|
|
96
|
-
"@rubenpazch/
|
|
97
|
-
"@rubenpazch/user-card": "^0.1.1"
|
|
95
|
+
"@rubenpazch/tooltip": "^0.1.2",
|
|
96
|
+
"@rubenpazch/user-card": "^0.1.1",
|
|
97
|
+
"@rubenpazch/turnstile": "^0.1.0"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
100
|
"@rollup/plugin-typescript": "^12.3.0",
|