@rubenpazch/ui 0.9.0 → 0.10.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/docs/COMPONENTES.md +37 -36
- package/docs/catalogo.json +7 -0
- package/package.json +22 -22
package/docs/COMPONENTES.md
CHANGED
|
@@ -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
|
-
| `
|
|
218
|
-
| `
|
|
219
|
-
| `
|
|
220
|
-
| `
|
|
221
|
-
| `
|
|
222
|
-
| `
|
|
223
|
-
| `
|
|
224
|
-
| `
|
|
225
|
-
| `
|
|
226
|
-
| `
|
|
227
|
-
| `
|
|
228
|
-
| `
|
|
229
|
-
| `
|
|
230
|
-
| `
|
|
231
|
-
| `
|
|
232
|
-
| `
|
|
233
|
-
| `
|
|
234
|
-
| `
|
|
235
|
-
| `
|
|
236
|
-
| `
|
|
237
|
-
| `
|
|
238
|
-
| `
|
|
239
|
-
| `
|
|
240
|
-
| `
|
|
241
|
-
| `
|
|
242
|
-
| `
|
|
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
|
|
package/docs/catalogo.json
CHANGED
|
@@ -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",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rubenpazch/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.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/
|
|
40
|
+
"@rubenpazch/alert": "^0.2.1",
|
|
41
41
|
"@rubenpazch/auth-gate": "^0.1.1",
|
|
42
|
+
"@rubenpazch/app-shell": "^0.3.1",
|
|
43
|
+
"@rubenpazch/autocomplete": "^5.3.0",
|
|
42
44
|
"@rubenpazch/avatar": "^3.1.3",
|
|
43
|
-
"@rubenpazch/autocomplete": "^5.2.0",
|
|
44
|
-
"@rubenpazch/alert": "^0.2.1",
|
|
45
|
-
"@rubenpazch/badge": "^0.1.2",
|
|
46
45
|
"@rubenpazch/button": "^6.2.4",
|
|
47
|
-
"@rubenpazch/
|
|
46
|
+
"@rubenpazch/badge": "^0.1.2",
|
|
48
47
|
"@rubenpazch/card": "^0.1.2",
|
|
48
|
+
"@rubenpazch/checkbox-input": "^3.2.4",
|
|
49
49
|
"@rubenpazch/chip": "^4.0.7",
|
|
50
|
-
"@rubenpazch/data-table": "^0.1.2",
|
|
51
50
|
"@rubenpazch/confirmation-dialog": "^3.1.5",
|
|
51
|
+
"@rubenpazch/data-table": "^0.1.2",
|
|
52
|
+
"@rubenpazch/date-input": "^3.2.1",
|
|
52
53
|
"@rubenpazch/date-picker": "^3.2.1",
|
|
53
54
|
"@rubenpazch/date-range-picker": "^0.1.1",
|
|
54
55
|
"@rubenpazch/description-list": "^0.1.0",
|
|
55
|
-
"@rubenpazch/date-input": "^3.2.1",
|
|
56
56
|
"@rubenpazch/draggable-list": "^3.0.4",
|
|
57
57
|
"@rubenpazch/drawer": "^4.2.5",
|
|
58
|
-
"@rubenpazch/file-upload": "^0.1.0",
|
|
59
58
|
"@rubenpazch/empty-state": "^0.1.2",
|
|
60
59
|
"@rubenpazch/form-field": "^0.1.2",
|
|
61
60
|
"@rubenpazch/icon-button": "^4.2.2",
|
|
62
61
|
"@rubenpazch/icons": "^6.4.1",
|
|
63
|
-
"@rubenpazch/
|
|
62
|
+
"@rubenpazch/file-upload": "^0.1.0",
|
|
64
63
|
"@rubenpazch/identification-input": "^2.1.0",
|
|
65
64
|
"@rubenpazch/image-upload": "^3.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
69
|
"@rubenpazch/money-input": "^0.1.2",
|
|
69
|
-
"@rubenpazch/loading-spinner": "^4.1.0",
|
|
70
70
|
"@rubenpazch/month-navigator": "^0.1.2",
|
|
71
|
-
"@rubenpazch/overlay-loader": "^1.1.4",
|
|
72
|
-
"@rubenpazch/page-header": "^0.1.2",
|
|
73
71
|
"@rubenpazch/numeric-picker": "^5.1.3",
|
|
74
72
|
"@rubenpazch/numeric-up-picker": "^6.1.4",
|
|
73
|
+
"@rubenpazch/overlay-loader": "^1.1.4",
|
|
74
|
+
"@rubenpazch/page-header": "^0.1.2",
|
|
75
75
|
"@rubenpazch/pagination": "^3.2.4",
|
|
76
|
-
"@rubenpazch/patient-search": "^3.0.6",
|
|
77
76
|
"@rubenpazch/patient-details": "^3.1.3",
|
|
77
|
+
"@rubenpazch/patient-search": "^3.0.6",
|
|
78
78
|
"@rubenpazch/prescription-card": "^3.0.5",
|
|
79
79
|
"@rubenpazch/prescription-eye-card": "^3.0.7",
|
|
80
|
-
"@rubenpazch/segmented-control": "^0.1.2",
|
|
81
80
|
"@rubenpazch/progress-bar": "^0.1.2",
|
|
82
|
-
"@rubenpazch/select": "^1.3.0",
|
|
83
81
|
"@rubenpazch/radio-button": "^4.2.1",
|
|
84
82
|
"@rubenpazch/shared": "^5.3.0",
|
|
85
|
-
"@rubenpazch/
|
|
83
|
+
"@rubenpazch/segmented-control": "^0.1.2",
|
|
84
|
+
"@rubenpazch/select": "^1.3.0",
|
|
86
85
|
"@rubenpazch/skeleton": "^0.1.2",
|
|
87
|
-
"@rubenpazch/
|
|
86
|
+
"@rubenpazch/sidebar": "^0.1.3",
|
|
87
|
+
"@rubenpazch/stepper": "^4.1.2",
|
|
88
88
|
"@rubenpazch/tabs": "^3.1.1",
|
|
89
|
+
"@rubenpazch/switch": "^0.1.2",
|
|
89
90
|
"@rubenpazch/text-input": "^6.4.0",
|
|
90
91
|
"@rubenpazch/textarea": "^0.1.2",
|
|
91
92
|
"@rubenpazch/timeline": "^0.1.0",
|
|
92
|
-
"@rubenpazch/
|
|
93
|
-
"@rubenpazch/tokens": "^0.5.0",
|
|
93
|
+
"@rubenpazch/toast": "^4.1.1",
|
|
94
94
|
"@rubenpazch/tooltip": "^0.1.2",
|
|
95
|
+
"@rubenpazch/tokens": "^0.5.0",
|
|
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",
|