@rubenpazch/ui 0.9.0 → 0.11.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/dist/index.d.ts CHANGED
@@ -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';
@@ -204,42 +204,43 @@ Selector con búsqueda (combobox accesible): filtra mientras se escribe, teclado
204
204
  import { Autocomplete } from "@rubenpazch/ui";
205
205
  ```
206
206
 
207
- | Prop | Tipo | Req. | Por defecto | Descripción |
208
- | ----------------- | ------------------------------------------------------------------------------------- | ---- | ----------------------- | ------------------------------------------------------------------------------------------------------------ |
209
- | `onChange` | `(value: string \| number \| null, option?: AutocompleteOption \| undefined) => void` | sí | | |
210
- | `value` | `null \| string \| number` | sí | | |
211
- | `className` | `string` | | `` | |
212
- | `clearable` | `boolean` | | `true` | |
213
- | `createLabel` | `string` | | `Crear` | |
214
- | `debounceMs` | `number` | | `300` | |
215
- | `disabled` | `boolean` | | `false` | |
216
- | `error` | `string` | | | |
217
- | `highlightMatch` | `boolean` | | `true` | |
218
- | `hint` | `string` | | | |
219
- | `icon` | `ReactNode` | | | |
220
- | `id` | `string` | | | id del input; si no se pasa se genera uno. |
221
- | `keepListOpen` | `boolean` | | `false` | |
222
- | `label` | `string` | | | |
223
- | `labelAction` | `ReactNode` | | | Contenido junto a la etiqueta, a la derecha: un botón de ayuda ("?"), un enlace… No va dentro del `<label>`. |
224
- | `labels` | `Partial<{ clear: string; open: string; close: string; }>` | | | Textos accesibles de los botones. |
225
- | `loading` | `boolean` | | `false` | |
226
- | `loadingText` | `string` | | `Cargando…` | |
227
- | `maxHeight` | `string` | | `300px` | |
228
- | `minSearchLength` | `number` | | `0` | |
229
- | `name` | `string` | | | name del input. |
230
- | `noResultsText` | `string` | | `Sin resultados` | |
231
- | `onBlur` | `() => void` | | | |
232
- | `onCreate` | `(searchTerm: string) => void` | | | |
233
- | `onFocus` | `() => void` | | | |
234
- | `onSearch` | `(searchTerm: string) => void` | | | |
235
- | `options` | `AutocompleteOption[]` | | `[]` | |
236
- | `placeholder` | `string` | | `Buscar o seleccionar…` | |
237
- | `position` | `"bottom" \| "top"` | | `bottom` | |
238
- | `readOnly` | `boolean` | | `false` | |
239
- | `renderOption` | `(option: AutocompleteOption, isSelected: boolean) => ReactNode` | | | |
240
- | `required` | `boolean` | | `false` | |
241
- | `searchable` | `boolean` | | `true` | |
242
- | `warning` | `string` | | | |
207
+ | Prop | Tipo | Req. | Por defecto | Descripción |
208
+ | ----------------- | ------------------------------------------------------------------------------------- | ---- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
209
+ | `onChange` | `(value: string \| number \| null, option?: AutocompleteOption \| undefined) => void` | sí | | |
210
+ | `value` | `null \| string \| number` | sí | | |
211
+ | `className` | `string` | | `` | |
212
+ | `clearable` | `boolean` | | `true` | |
213
+ | `createLabel` | `string` | | `Crear` | |
214
+ | `debounceMs` | `number` | | `300` | |
215
+ | `disabled` | `boolean` | | `false` | |
216
+ | `error` | `string` | | | |
217
+ | `freeSolo` | `boolean` | | `false` | Texto libre con sugerencias: el valor es lo escrito (`onChange(texto)` en cada cambio) y las opciones solo ayudan a completarlo. Útil para un destinatario que puede ser un usuario de la lista o un nombre externo. Escape, Tab y salir del campo no borran lo escrito. |
218
+ | `highlightMatch` | `boolean` | | `true` | |
219
+ | `hint` | `string` | | | |
220
+ | `icon` | `ReactNode` | | | |
221
+ | `id` | `string` | | | id del input; si no se pasa se genera uno. |
222
+ | `keepListOpen` | `boolean` | | `false` | |
223
+ | `label` | `string` | | | |
224
+ | `labelAction` | `ReactNode` | | | Contenido junto a la etiqueta, a la derecha: un botón de ayuda ("?"), un enlace… No va dentro del `<label>`. |
225
+ | `labels` | `Partial<{ clear: string; open: string; close: string; }>` | | | Textos accesibles de los botones. |
226
+ | `loading` | `boolean` | | `false` | |
227
+ | `loadingText` | `string` | | `Cargando…` | |
228
+ | `maxHeight` | `string` | | `300px` | |
229
+ | `minSearchLength` | `number` | | `0` | |
230
+ | `name` | `string` | | | name del input. |
231
+ | `noResultsText` | `string` | | `Sin resultados` | |
232
+ | `onBlur` | `() => void` | | | |
233
+ | `onCreate` | `(searchTerm: string) => void` | | | |
234
+ | `onFocus` | `() => void` | | | |
235
+ | `onSearch` | `(searchTerm: string) => void` | | | |
236
+ | `options` | `AutocompleteOption[]` | | `[]` | |
237
+ | `placeholder` | `string` | | `Buscar o seleccionar…` | |
238
+ | `position` | `"bottom" \| "top"` | | `bottom` | |
239
+ | `readOnly` | `boolean` | | `false` | |
240
+ | `renderOption` | `(option: AutocompleteOption, isSelected: boolean) => ReactNode` | | | |
241
+ | `required` | `boolean` | | `false` | |
242
+ | `searchable` | `boolean` | | `true` | |
243
+ | `warning` | `string` | | | |
243
244
 
244
245
  Tipos: `AutocompleteOption`, `AutocompleteProps`.
245
246
 
@@ -1256,19 +1257,22 @@ Pestañas para alternar entre secciones de una misma vista.
1256
1257
  import { Tabs } from "@rubenpazch/ui";
1257
1258
  ```
1258
1259
 
1259
- | Prop | Tipo | Req. | Por defecto | Descripción |
1260
- | ------------------ | ------------------------------------------ | ---- | ------------ | --------------------------------------------------------------------- |
1261
- | `tabs` | `Tab[]` | sí | | |
1262
- | `ariaLabel` | `string` | | `Pestañas` | Nombre accesible del grupo de pestañas (por defecto "Pestañas"). |
1263
- | `className` | `string` | | | |
1264
- | `defaultTab` | `string` | | | |
1265
- | `lazy` | `boolean` | | `false` | Lazy mode - only calls onLoad when tab is first visited |
1266
- | `loading` | `boolean` | | `false` | Loading state for the active tab content |
1267
- | `loadingComponent` | `ReactNode` | | | Custom loading component |
1268
- | `onChange` | `(tabId: string) => void` | | | |
1269
- | `onLoad` | `(tabId: string) => void \| Promise<void>` | | | Called when a tab is activated. Use for lazy loading data |
1270
- | `orientation` | `"horizontal" \| "vertical"` | | `horizontal` | Orientation of tabs - horizontal (default) or vertical (left-aligned) |
1271
- | `renderContent` | `(tabId: string) => ReactNode` | | | Render function for tab content (alternative to content prop in Tab) |
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) |
1273
+ | `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. |
1274
+
1275
+ Tipos: `Tab`, `TabOrientation`, `TabsProps`.
1272
1276
 
1273
1277
  ## Retroalimentación
1274
1278
 
@@ -398,6 +398,13 @@
398
398
  "porDefecto": null,
399
399
  "descripcion": ""
400
400
  },
401
+ {
402
+ "nombre": "freeSolo",
403
+ "tipo": "boolean",
404
+ "requerido": false,
405
+ "porDefecto": "false",
406
+ "descripcion": "Texto libre con sugerencias: el valor es lo escrito (`onChange(texto)` en cada cambio) y las\nopciones solo ayudan a completarlo. Útil para un destinatario que puede ser un usuario de la\nlista o un nombre externo. Escape, Tab y salir del campo no borran lo escrito."
407
+ },
401
408
  {
402
409
  "nombre": "highlightMatch",
403
410
  "tipo": "boolean",
@@ -8056,12 +8063,19 @@
8056
8063
  "requerido": false,
8057
8064
  "porDefecto": null,
8058
8065
  "descripcion": "Render function for tab content (alternative to content prop in Tab)"
8066
+ },
8067
+ {
8068
+ "nombre": "value",
8069
+ "tipo": "string",
8070
+ "requerido": false,
8071
+ "porDefecto": null,
8072
+ "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."
8059
8073
  }
8060
8074
  ]
8061
8075
  }
8062
8076
  ],
8063
8077
  "otrosValores": [],
8064
- "tipos": []
8078
+ "tipos": ["Tab", "TabOrientation", "TabsProps"]
8065
8079
  },
8066
8080
  {
8067
8081
  "paquete": "@rubenpazch/text-input",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rubenpazch/ui",
3
- "version": "0.9.0",
3
+ "version": "0.11.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",
@@ -37,64 +37,64 @@
37
37
  "react-dom": "^19.2.3"
38
38
  },
39
39
  "dependencies": {
40
- "@rubenpazch/app-shell": "^0.3.1",
41
40
  "@rubenpazch/auth-gate": "^0.1.1",
42
- "@rubenpazch/avatar": "^3.1.3",
43
- "@rubenpazch/autocomplete": "^5.2.0",
44
41
  "@rubenpazch/alert": "^0.2.1",
42
+ "@rubenpazch/autocomplete": "^5.3.0",
43
+ "@rubenpazch/app-shell": "^0.3.1",
44
+ "@rubenpazch/avatar": "^3.1.3",
45
+ "@rubenpazch/card": "^0.1.2",
45
46
  "@rubenpazch/badge": "^0.1.2",
46
47
  "@rubenpazch/button": "^6.2.4",
47
48
  "@rubenpazch/checkbox-input": "^3.2.4",
48
- "@rubenpazch/card": "^0.1.2",
49
+ "@rubenpazch/confirmation-dialog": "^3.1.5",
49
50
  "@rubenpazch/chip": "^4.0.7",
50
51
  "@rubenpazch/data-table": "^0.1.2",
51
- "@rubenpazch/confirmation-dialog": "^3.1.5",
52
+ "@rubenpazch/date-input": "^3.2.1",
52
53
  "@rubenpazch/date-picker": "^3.2.1",
53
- "@rubenpazch/date-range-picker": "^0.1.1",
54
54
  "@rubenpazch/description-list": "^0.1.0",
55
- "@rubenpazch/date-input": "^3.2.1",
56
- "@rubenpazch/draggable-list": "^3.0.4",
57
55
  "@rubenpazch/drawer": "^4.2.5",
58
- "@rubenpazch/file-upload": "^0.1.0",
59
56
  "@rubenpazch/empty-state": "^0.1.2",
57
+ "@rubenpazch/file-upload": "^0.1.0",
60
58
  "@rubenpazch/form-field": "^0.1.2",
61
59
  "@rubenpazch/icon-button": "^4.2.2",
60
+ "@rubenpazch/draggable-list": "^3.0.4",
62
61
  "@rubenpazch/icons": "^6.4.1",
63
- "@rubenpazch/info-row": "^3.0.4",
64
62
  "@rubenpazch/identification-input": "^2.1.0",
65
63
  "@rubenpazch/image-upload": "^3.1.1",
64
+ "@rubenpazch/date-range-picker": "^0.1.1",
65
+ "@rubenpazch/info-row": "^3.0.4",
66
+ "@rubenpazch/loading-spinner": "^4.1.0",
66
67
  "@rubenpazch/menu": "^0.1.2",
67
68
  "@rubenpazch/modal": "^0.1.3",
68
- "@rubenpazch/money-input": "^0.1.2",
69
- "@rubenpazch/loading-spinner": "^4.1.0",
70
69
  "@rubenpazch/month-navigator": "^0.1.2",
71
- "@rubenpazch/overlay-loader": "^1.1.4",
72
- "@rubenpazch/page-header": "^0.1.2",
73
70
  "@rubenpazch/numeric-picker": "^5.1.3",
74
71
  "@rubenpazch/numeric-up-picker": "^6.1.4",
72
+ "@rubenpazch/money-input": "^0.1.2",
73
+ "@rubenpazch/overlay-loader": "^1.1.4",
75
74
  "@rubenpazch/pagination": "^3.2.4",
76
- "@rubenpazch/patient-search": "^3.0.6",
75
+ "@rubenpazch/page-header": "^0.1.2",
77
76
  "@rubenpazch/patient-details": "^3.1.3",
78
- "@rubenpazch/prescription-card": "^3.0.5",
77
+ "@rubenpazch/patient-search": "^3.0.6",
79
78
  "@rubenpazch/prescription-eye-card": "^3.0.7",
80
- "@rubenpazch/segmented-control": "^0.1.2",
79
+ "@rubenpazch/prescription-card": "^3.0.5",
81
80
  "@rubenpazch/progress-bar": "^0.1.2",
81
+ "@rubenpazch/segmented-control": "^0.1.2",
82
82
  "@rubenpazch/select": "^1.3.0",
83
83
  "@rubenpazch/radio-button": "^4.2.1",
84
- "@rubenpazch/shared": "^5.3.0",
85
84
  "@rubenpazch/sidebar": "^0.1.3",
86
85
  "@rubenpazch/skeleton": "^0.1.2",
87
86
  "@rubenpazch/switch": "^0.1.2",
88
- "@rubenpazch/tabs": "^3.1.1",
89
- "@rubenpazch/text-input": "^6.4.0",
87
+ "@rubenpazch/shared": "^5.3.0",
90
88
  "@rubenpazch/textarea": "^0.1.2",
89
+ "@rubenpazch/tabs": "^3.2.0",
90
+ "@rubenpazch/toast": "^4.1.1",
91
+ "@rubenpazch/text-input": "^6.4.0",
91
92
  "@rubenpazch/timeline": "^0.1.0",
92
93
  "@rubenpazch/stepper": "^4.1.2",
93
94
  "@rubenpazch/tokens": "^0.5.0",
94
95
  "@rubenpazch/tooltip": "^0.1.2",
95
96
  "@rubenpazch/turnstile": "^0.1.0",
96
- "@rubenpazch/user-card": "^0.1.1",
97
- "@rubenpazch/toast": "^4.1.1"
97
+ "@rubenpazch/user-card": "^0.1.1"
98
98
  },
99
99
  "devDependencies": {
100
100
  "@rollup/plugin-typescript": "^12.3.0",