@rubenpazch/ui 0.17.0 → 0.18.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 +1 -1
- package/docs/COMPONENTES.md +40 -38
- package/docs/catalogo.json +15 -1
- package/package.json +25 -25
package/dist/index.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export { default as PrescriptionEyeCard, PrescriptionEyeCardLabels, Prescription
|
|
|
48
48
|
export { default as ProgressBar, ProgressBarProps } from '@rubenpazch/progress-bar';
|
|
49
49
|
export { default as RadioButton, RadioButtonProps, RadioGroup, RadioGroupOrientation, RadioGroupProps, RadioOption, RadioSize, RadioVariant } from '@rubenpazch/radio-button';
|
|
50
50
|
export { default as SegmentedControl, SegmentedControlProps, SegmentedOption } from '@rubenpazch/segmented-control';
|
|
51
|
-
export { Select, SelectOption, SelectProps } from '@rubenpazch/select';
|
|
51
|
+
export { Select, SelectOption, SelectProps, SelectSize } from '@rubenpazch/select';
|
|
52
52
|
export { Color, ComponentSize, DEFAULT_INTL_LOCALE, FieldIds, FieldProps, LegacySize, MOBILE_QUERY, Size, SizeProp, UiLocale, UiLocaleProvider, UiLocaleProviderProps, UiMessageSection, UiMessages, UiMessagesOverrides, Variant, classList, datePlaceholder, formatLocalDate, formatMessage, formatMonthYear, getUiMessages, isDayFirst, isSameDay, mergeRefs, normalizeSize, parseISODate, parseLocalDate, shortMonths, shortWeekdays, toISODate, toLegacySize, uiLocaleOf, uiMessagesEn, uiMessagesEs, useClickOutside, useEscapeKey, useFieldIds, useFocusTrap, useLockBodyScroll, useMediaQuery, useUiLocale, useUiMessages } from '@rubenpazch/shared';
|
|
53
53
|
export { default as Sidebar, SidebarItem, SidebarLabels, SidebarProps, SidebarSection } from '@rubenpazch/sidebar';
|
|
54
54
|
export { default as Skeleton, SkeletonProps } from '@rubenpazch/skeleton';
|
package/docs/COMPONENTES.md
CHANGED
|
@@ -1111,26 +1111,27 @@ Lista desplegable simple con etiqueta, placeholder y error.
|
|
|
1111
1111
|
import { Select } from "@rubenpazch/ui";
|
|
1112
1112
|
```
|
|
1113
1113
|
|
|
1114
|
-
| Prop | Tipo | Req. | Por defecto | Descripción
|
|
1115
|
-
| ------------- | --------------------------------------------------------- | ---- | ----------- |
|
|
1116
|
-
| `onChange` | `(value: string) => void` | sí | |
|
|
1117
|
-
| `options` | `SelectOption[]` | sí | |
|
|
1118
|
-
| `value` | `string` | sí | |
|
|
1119
|
-
| `className` | `string` | | |
|
|
1120
|
-
| `disabled` | `boolean` | | `false` |
|
|
1121
|
-
| `error` | `string` | | |
|
|
1122
|
-
| `hint` | `string` | | | Texto de ayuda bajo el campo.
|
|
1123
|
-
| `id` | `string` | | |
|
|
1124
|
-
| `label` | `string` | | |
|
|
1125
|
-
| `labelAction` | `ReactNode` | | | Contenido junto a la etiqueta, a la derecha: un botón de ayuda ("?"), un enlace… No va dentro del `<label>`.
|
|
1126
|
-
| `name` | `string` | | |
|
|
1127
|
-
| `onBlur` | `(event: FocusEvent<HTMLSelectElement, Element>) => void` | | |
|
|
1128
|
-
| `onFocus` | `(event: FocusEvent<HTMLSelectElement, Element>) => void` | | |
|
|
1129
|
-
| `placeholder` | `string` | | |
|
|
1130
|
-
| `required` | `boolean` | | `false` |
|
|
1131
|
-
| `
|
|
1132
|
-
|
|
1133
|
-
|
|
1114
|
+
| Prop | Tipo | Req. | Por defecto | Descripción |
|
|
1115
|
+
| ------------- | --------------------------------------------------------- | ---- | ----------- | ---------------------------------------------------------------------------------------------------------------- |
|
|
1116
|
+
| `onChange` | `(value: string) => void` | sí | | |
|
|
1117
|
+
| `options` | `SelectOption[]` | sí | | |
|
|
1118
|
+
| `value` | `string` | sí | | |
|
|
1119
|
+
| `className` | `string` | | | |
|
|
1120
|
+
| `disabled` | `boolean` | | `false` | |
|
|
1121
|
+
| `error` | `string` | | | |
|
|
1122
|
+
| `hint` | `string` | | | Texto de ayuda bajo el campo. |
|
|
1123
|
+
| `id` | `string` | | | |
|
|
1124
|
+
| `label` | `string` | | | |
|
|
1125
|
+
| `labelAction` | `ReactNode` | | | Contenido junto a la etiqueta, a la derecha: un botón de ayuda ("?"), un enlace… No va dentro del `<label>`. |
|
|
1126
|
+
| `name` | `string` | | | |
|
|
1127
|
+
| `onBlur` | `(event: FocusEvent<HTMLSelectElement, Element>) => void` | | | |
|
|
1128
|
+
| `onFocus` | `(event: FocusEvent<HTMLSelectElement, Element>) => void` | | | |
|
|
1129
|
+
| `placeholder` | `string` | | | |
|
|
1130
|
+
| `required` | `boolean` | | `false` | |
|
|
1131
|
+
| `size` | `"sm" \| "md" \| "lg" \| "small" \| "medium" \| "large"` | | | Tamaño: sm (en filas compactas, p. ej. dentro de un panel), md (por defecto) o lg; también small, medium, large. |
|
|
1132
|
+
| `warning` | `string` | | | Advertencia que no bloquea el envío; no se muestra si hay `error`. |
|
|
1133
|
+
|
|
1134
|
+
Tipos: `SelectOption`, `SelectProps`, `SelectSize`.
|
|
1134
1135
|
|
|
1135
1136
|
### @rubenpazch/switch
|
|
1136
1137
|
|
|
@@ -1433,24 +1434,25 @@ Panel lateral (izquierda/derecha/arriba/abajo) con animación y fondo.
|
|
|
1433
1434
|
import { Drawer } from "@rubenpazch/ui";
|
|
1434
1435
|
```
|
|
1435
1436
|
|
|
1436
|
-
| Prop | Tipo | Req. | Por defecto | Descripción
|
|
1437
|
-
| --------------------- | -------------------------------------------------- | ---- | --------------- |
|
|
1438
|
-
| `children` | `ReactNode` | sí | | Content to render in the drawer
|
|
1439
|
-
| `isOpen` | `boolean` | sí | | Whether the drawer is open
|
|
1440
|
-
| `onClose` | `() => void` | sí | | Function to close the drawer
|
|
1441
|
-
| `className` | `string` | | `` | Custom className for the drawer content
|
|
1442
|
-
| `closeLabel` | `string` | | | Texto accesible del botón de cerrar. @deprecated Usa `labels.close`.
|
|
1443
|
-
| `closeOnEscape` | `boolean` | | `true` | Whether pressing Escape closes the drawer
|
|
1444
|
-
| `closeOnOverlayClick` | `boolean` | | `true` | Whether clicking overlay closes the drawer
|
|
1445
|
-
| `contentContained` | `boolean` | | `false` | Whether the content (header, body, footer) should be contained in a max-width container
|
|
1446
|
-
| `footer` | `ReactNode` | | | Footer content (typically action buttons)
|
|
1447
|
-
| `footerAlign` | `"left" \| "right" \| "center" \| "space-between"` | | `right` | Footer alignment
|
|
1448
|
-
| `headerAlign` | `"left" \| "right" \| "center" \| "space-between"` | | `space-between` | Header alignment (how to position title and close button)
|
|
1449
|
-
| `
|
|
1450
|
-
| `
|
|
1451
|
-
| `
|
|
1452
|
-
| `
|
|
1453
|
-
| `
|
|
1437
|
+
| Prop | Tipo | Req. | Por defecto | Descripción |
|
|
1438
|
+
| --------------------- | -------------------------------------------------- | ---- | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1439
|
+
| `children` | `ReactNode` | sí | | Content to render in the drawer |
|
|
1440
|
+
| `isOpen` | `boolean` | sí | | Whether the drawer is open |
|
|
1441
|
+
| `onClose` | `() => void` | sí | | Function to close the drawer |
|
|
1442
|
+
| `className` | `string` | | `` | Custom className for the drawer content |
|
|
1443
|
+
| `closeLabel` | `string` | | | Texto accesible del botón de cerrar. @deprecated Usa `labels.close`. |
|
|
1444
|
+
| `closeOnEscape` | `boolean` | | `true` | Whether pressing Escape closes the drawer |
|
|
1445
|
+
| `closeOnOverlayClick` | `boolean` | | `true` | Whether clicking overlay closes the drawer |
|
|
1446
|
+
| `contentContained` | `boolean` | | `false` | Whether the content (header, body, footer) should be contained in a max-width container |
|
|
1447
|
+
| `footer` | `ReactNode` | | | Footer content (typically action buttons) |
|
|
1448
|
+
| `footerAlign` | `"left" \| "right" \| "center" \| "space-between"` | | `right` | Footer alignment |
|
|
1449
|
+
| `headerAlign` | `"left" \| "right" \| "center" \| "space-between"` | | `space-between` | Header alignment (how to position title and close button) |
|
|
1450
|
+
| `keepMounted` | `boolean` | | `false` | Mantiene el contenido en la página mientras está cerrado (oculto, fuera del teclado y de los lectores de pantalla): lo que el usuario escribió o eligió dentro sigue ahí al volver a abrirlo. Por defecto se quita al cerrar. |
|
|
1451
|
+
| `labels` | `Partial<{ close: string; }>` | | | Textos de la interfaz. Por defecto, los del idioma activo (`UiLocaleProvider`); también se cambian para toda la app con su prop `messages`. |
|
|
1452
|
+
| `position` | `"left" \| "right" \| "top" \| "bottom"` | | `right` | Position from which the drawer slides in |
|
|
1453
|
+
| `showOverlay` | `boolean` | | `true` | Whether to show overlay backdrop |
|
|
1454
|
+
| `size` | `"sm" \| "md" \| "lg" \| "xl" \| "full"` | | `md` | Size of the drawer |
|
|
1455
|
+
| `title` | `string` | | | Title displayed in the drawer header |
|
|
1454
1456
|
|
|
1455
1457
|
Tipos: `DrawerPosition`, `DrawerSize`, `DrawerAlign`, `DrawerProps`.
|
|
1456
1458
|
|
package/docs/catalogo.json
CHANGED
|
@@ -2437,6 +2437,13 @@
|
|
|
2437
2437
|
"porDefecto": "space-between",
|
|
2438
2438
|
"descripcion": "Header alignment (how to position title and close button)"
|
|
2439
2439
|
},
|
|
2440
|
+
{
|
|
2441
|
+
"nombre": "keepMounted",
|
|
2442
|
+
"tipo": "boolean",
|
|
2443
|
+
"requerido": false,
|
|
2444
|
+
"porDefecto": "false",
|
|
2445
|
+
"descripcion": "Mantiene el contenido en la página mientras está cerrado (oculto, fuera del\nteclado y de los lectores de pantalla): lo que el usuario escribió o eligió\ndentro sigue ahí al volver a abrirlo. Por defecto se quita al cerrar."
|
|
2446
|
+
},
|
|
2440
2447
|
{
|
|
2441
2448
|
"nombre": "labels",
|
|
2442
2449
|
"tipo": "Partial<{ close: string; }>",
|
|
@@ -9474,6 +9481,13 @@
|
|
|
9474
9481
|
"porDefecto": "false",
|
|
9475
9482
|
"descripcion": ""
|
|
9476
9483
|
},
|
|
9484
|
+
{
|
|
9485
|
+
"nombre": "size",
|
|
9486
|
+
"tipo": "\"sm\" | \"md\" | \"lg\" | \"small\" | \"medium\" | \"large\"",
|
|
9487
|
+
"requerido": false,
|
|
9488
|
+
"porDefecto": null,
|
|
9489
|
+
"descripcion": "Tamaño: sm (en filas compactas, p. ej. dentro de un panel), md (por defecto) o lg; también small, medium, large."
|
|
9490
|
+
},
|
|
9477
9491
|
{
|
|
9478
9492
|
"nombre": "warning",
|
|
9479
9493
|
"tipo": "string",
|
|
@@ -9485,7 +9499,7 @@
|
|
|
9485
9499
|
}
|
|
9486
9500
|
],
|
|
9487
9501
|
"otrosValores": [],
|
|
9488
|
-
"tipos": ["SelectOption", "SelectProps"]
|
|
9502
|
+
"tipos": ["SelectOption", "SelectProps", "SelectSize"]
|
|
9489
9503
|
},
|
|
9490
9504
|
{
|
|
9491
9505
|
"paquete": "@rubenpazch/shared",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rubenpazch/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.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,71 +37,71 @@
|
|
|
37
37
|
"react-dom": "^19.2.3"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@rubenpazch/alert": "^0.3.0",
|
|
41
40
|
"@rubenpazch/app-shell": "^0.5.0",
|
|
41
|
+
"@rubenpazch/alert": "^0.3.0",
|
|
42
42
|
"@rubenpazch/auth-gate": "^0.3.0",
|
|
43
43
|
"@rubenpazch/autocomplete": "^5.4.0",
|
|
44
44
|
"@rubenpazch/avatar": "^3.1.3",
|
|
45
45
|
"@rubenpazch/bottom-navigation": "^0.2.0",
|
|
46
|
+
"@rubenpazch/badge": "^0.1.3",
|
|
46
47
|
"@rubenpazch/button": "^6.2.6",
|
|
48
|
+
"@rubenpazch/chip": "^4.1.0",
|
|
47
49
|
"@rubenpazch/card": "^0.1.3",
|
|
48
50
|
"@rubenpazch/checkbox-input": "^3.4.0",
|
|
49
|
-
"@rubenpazch/chip": "^4.1.0",
|
|
50
|
-
"@rubenpazch/confirmation-dialog": "^3.2.0",
|
|
51
51
|
"@rubenpazch/collapsible": "^0.1.1",
|
|
52
|
+
"@rubenpazch/confirmation-dialog": "^3.2.0",
|
|
52
53
|
"@rubenpazch/data-table": "^0.2.0",
|
|
53
|
-
"@rubenpazch/date-input": "^3.3.0",
|
|
54
54
|
"@rubenpazch/date-picker": "^3.3.0",
|
|
55
55
|
"@rubenpazch/date-range-picker": "^0.2.0",
|
|
56
56
|
"@rubenpazch/draggable-list": "^3.0.4",
|
|
57
|
-
"@rubenpazch/description-list": "^0.2.0",
|
|
58
|
-
"@rubenpazch/badge": "^0.1.3",
|
|
59
|
-
"@rubenpazch/drawer": "^4.3.0",
|
|
60
57
|
"@rubenpazch/empty-state": "^0.1.3",
|
|
61
|
-
"@rubenpazch/
|
|
58
|
+
"@rubenpazch/drawer": "^4.4.0",
|
|
59
|
+
"@rubenpazch/date-input": "^3.3.0",
|
|
60
|
+
"@rubenpazch/description-list": "^0.2.0",
|
|
62
61
|
"@rubenpazch/icon-button": "^4.2.3",
|
|
62
|
+
"@rubenpazch/file-upload": "^0.2.0",
|
|
63
63
|
"@rubenpazch/form-field": "^0.1.3",
|
|
64
|
-
"@rubenpazch/
|
|
64
|
+
"@rubenpazch/icons": "^6.6.1",
|
|
65
65
|
"@rubenpazch/identification-input": "^2.2.0",
|
|
66
|
-
"@rubenpazch/image-
|
|
66
|
+
"@rubenpazch/image-upload": "^3.3.0",
|
|
67
67
|
"@rubenpazch/info-row": "^3.1.0",
|
|
68
|
-
"@rubenpazch/
|
|
68
|
+
"@rubenpazch/image-viewer": "^1.2.0",
|
|
69
69
|
"@rubenpazch/list": "^0.1.1",
|
|
70
70
|
"@rubenpazch/layout": "^0.1.1",
|
|
71
|
-
"@rubenpazch/
|
|
72
|
-
"@rubenpazch/modal": "^0.2.0",
|
|
71
|
+
"@rubenpazch/loading-spinner": "^4.1.0",
|
|
73
72
|
"@rubenpazch/money-input": "^0.2.0",
|
|
74
|
-
"@rubenpazch/numeric-picker": "^5.2.0",
|
|
75
|
-
"@rubenpazch/numeric-up-picker": "^6.2.0",
|
|
76
73
|
"@rubenpazch/month-navigator": "^0.2.0",
|
|
74
|
+
"@rubenpazch/modal": "^0.2.0",
|
|
77
75
|
"@rubenpazch/overlay-loader": "^1.2.0",
|
|
78
|
-
"@rubenpazch/
|
|
76
|
+
"@rubenpazch/numeric-up-picker": "^6.2.0",
|
|
77
|
+
"@rubenpazch/menu": "^0.2.0",
|
|
79
78
|
"@rubenpazch/page-header": "^0.2.0",
|
|
79
|
+
"@rubenpazch/numeric-picker": "^5.2.0",
|
|
80
80
|
"@rubenpazch/patient-details": "^3.1.4",
|
|
81
81
|
"@rubenpazch/patient-search": "^3.0.9",
|
|
82
|
+
"@rubenpazch/pagination": "^3.4.0",
|
|
82
83
|
"@rubenpazch/phone-input": "^1.2.0",
|
|
83
84
|
"@rubenpazch/pin-input": "^0.2.0",
|
|
84
85
|
"@rubenpazch/prescription-card": "^3.0.6",
|
|
85
|
-
"@rubenpazch/progress-bar": "^0.1.3",
|
|
86
86
|
"@rubenpazch/prescription-eye-card": "^3.0.11",
|
|
87
|
-
"@rubenpazch/
|
|
88
|
-
"@rubenpazch/pagination": "^3.4.0",
|
|
87
|
+
"@rubenpazch/progress-bar": "^0.1.3",
|
|
89
88
|
"@rubenpazch/segmented-control": "^0.1.3",
|
|
90
|
-
"@rubenpazch/select": "^1.
|
|
89
|
+
"@rubenpazch/select": "^1.5.0",
|
|
90
|
+
"@rubenpazch/radio-button": "^4.3.0",
|
|
91
91
|
"@rubenpazch/shared": "^5.4.0",
|
|
92
92
|
"@rubenpazch/sidebar": "^0.2.0",
|
|
93
|
-
"@rubenpazch/skeleton": "^0.1.3",
|
|
94
93
|
"@rubenpazch/stepper": "^4.2.0",
|
|
94
|
+
"@rubenpazch/skeleton": "^0.1.3",
|
|
95
95
|
"@rubenpazch/switch": "^0.1.3",
|
|
96
96
|
"@rubenpazch/tabs": "^3.3.0",
|
|
97
|
-
"@rubenpazch/text-input": "^6.7.0",
|
|
98
97
|
"@rubenpazch/textarea": "^0.1.3",
|
|
98
|
+
"@rubenpazch/text-input": "^6.7.0",
|
|
99
99
|
"@rubenpazch/timeline": "^0.2.0",
|
|
100
|
-
"@rubenpazch/tokens": "^0.5.0",
|
|
101
100
|
"@rubenpazch/toast": "^4.2.0",
|
|
102
101
|
"@rubenpazch/tooltip": "^0.1.3",
|
|
103
102
|
"@rubenpazch/turnstile": "^0.2.0",
|
|
104
|
-
"@rubenpazch/user-card": "^0.2.0"
|
|
103
|
+
"@rubenpazch/user-card": "^0.2.0",
|
|
104
|
+
"@rubenpazch/tokens": "^0.5.0"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
107
|
"@rollup/plugin-typescript": "^12.3.0",
|