@rubenpazch/ui 0.17.0 → 0.19.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 +3 -3
- package/docs/COMPONENTES.md +65 -63
- package/docs/catalogo.json +26 -6
- package/package.json +25 -25
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { default as Badge, BadgeColor, BadgeProps, BadgeVariant } from '@rubenpa
|
|
|
7
7
|
export { default as BottomNavigation, BottomNavigationItem, BottomNavigationProps } from '@rubenpazch/bottom-navigation';
|
|
8
8
|
export { default as Button, ButtonColor, ButtonProps, ButtonSize, ButtonSizeProp, ButtonVariant } from '@rubenpazch/button';
|
|
9
9
|
export { default as Card, CardBody, CardFooter, CardHeader, CardHeaderProps, CardProps } from '@rubenpazch/card';
|
|
10
|
-
export { CheckboxGroup, CheckboxGroupProps, default as CheckboxInput, CheckboxInputProps, CheckboxOption } from '@rubenpazch/checkbox-input';
|
|
10
|
+
export { CheckboxGroup, CheckboxGroupProps, default as CheckboxInput, CheckboxInputNativeProps, CheckboxInputProps, CheckboxOption } from '@rubenpazch/checkbox-input';
|
|
11
11
|
export { default as Chip, ChipColor, ChipProps, ChipSize, ChipVariant } from '@rubenpazch/chip';
|
|
12
12
|
export { default as Collapsible, CollapsibleProps } from '@rubenpazch/collapsible';
|
|
13
13
|
export { default as ConfirmationDialog, ConfirmationDialogProps } from '@rubenpazch/confirmation-dialog';
|
|
@@ -46,9 +46,9 @@ export { default as PinInput, PinInputProps } from '@rubenpazch/pin-input';
|
|
|
46
46
|
export { default as PrescriptionCard } from '@rubenpazch/prescription-card';
|
|
47
47
|
export { default as PrescriptionEyeCard, PrescriptionEyeCardLabels, PrescriptionEyeCardProps, PrescriptionEyeInfo } from '@rubenpazch/prescription-eye-card';
|
|
48
48
|
export { default as ProgressBar, ProgressBarProps } from '@rubenpazch/progress-bar';
|
|
49
|
-
export { default as RadioButton, RadioButtonProps, RadioGroup, RadioGroupOrientation, RadioGroupProps, RadioOption, RadioSize, RadioVariant } from '@rubenpazch/radio-button';
|
|
49
|
+
export { default as RadioButton, RadioButtonNativeProps, 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
|
@@ -487,13 +487,13 @@ import { CheckboxGroup } from "@rubenpazch/ui";
|
|
|
487
487
|
| `labels` | `Partial<{ selectAll: string; }>` | | | Textos de la interfaz. Por defecto, los del idioma activo (`UiLocaleProvider`); también se cambian para toda la app con su prop `messages`. |
|
|
488
488
|
| `maxSelected` | `number` | | | Máximo de opciones marcadas: al llegar, las demás se deshabilitan. |
|
|
489
489
|
| `name` | `string` | | | name de cada casilla (formularios nativos: se envía una vez por valor marcado). |
|
|
490
|
-
| `orientation` | `"
|
|
490
|
+
| `orientation` | `"horizontal" \| "vertical"` | | `vertical` | `vertical` (por defecto) o `horizontal` (se ajusta a la siguiente línea). |
|
|
491
491
|
| `required` | `boolean` | | `false` | Marca el grupo como obligatorio (muestra *); la validación "al menos uno" va en `error`. |
|
|
492
492
|
| `selectAll` | `boolean \| string` | | `false` | Agrega una casilla "Seleccionar todos" (queda indeterminada si hay algunas marcadas). `true` usa el texto por defecto; un texto lo reemplaza. |
|
|
493
493
|
| `size` | `"sm" \| "md" \| "lg"` | | `md` | Tamaño de las casillas. |
|
|
494
494
|
| `variant` | `"default" \| "primary" \| "success" \| "warning" \| "danger"` | | `primary` | Color de las casillas marcadas. |
|
|
495
495
|
|
|
496
|
-
Tipos: `CheckboxInputProps`, `CheckboxGroupProps`, `CheckboxOption`.
|
|
496
|
+
Tipos: `CheckboxInputProps`, `CheckboxInputNativeProps`, `CheckboxGroupProps`, `CheckboxOption`.
|
|
497
497
|
|
|
498
498
|
### @rubenpazch/date-input
|
|
499
499
|
|
|
@@ -925,26 +925,26 @@ va arriba del número.
|
|
|
925
925
|
import { PhoneInput } from "@rubenpazch/ui";
|
|
926
926
|
```
|
|
927
927
|
|
|
928
|
-
| Prop | Tipo | Req. | Por defecto
|
|
929
|
-
| ------------------- | --------------------------- | ---- |
|
|
930
|
-
| `country` | `string` | sí |
|
|
931
|
-
| `onChange` | `(value: string) => void` | sí |
|
|
932
|
-
| `onCountryChange` | `(country: string) => void` | sí |
|
|
933
|
-
| `value` | `string` | sí |
|
|
934
|
-
| `className` | `string` | |
|
|
935
|
-
| `countries` | `PhoneCountry[]` | | `[ {
|
|
936
|
-
| `disabled` | `boolean` | | `false`
|
|
937
|
-
| `error` | `string` | |
|
|
938
|
-
| `hint` | `string` | |
|
|
939
|
-
| `id` | `string` | |
|
|
940
|
-
| `label` | `string` | |
|
|
941
|
-
| `labels` | `Partial<PhoneInputLabels>` | |
|
|
942
|
-
| `name` | `string` | |
|
|
943
|
-
| `onBlur` | `() => void` | |
|
|
944
|
-
| `onFocus` | `() => void` | |
|
|
945
|
-
| `required` | `boolean` | | `false`
|
|
946
|
-
| `showInternational` | `boolean` | | `true`
|
|
947
|
-
| `warning` | `string` | |
|
|
928
|
+
| Prop | Tipo | Req. | Por defecto | Descripción |
|
|
929
|
+
| ------------------- | --------------------------- | ---- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
|
|
930
|
+
| `country` | `string` | sí | | Código del país elegido (`"PE"`). |
|
|
931
|
+
| `onChange` | `(value: string) => void` | sí | | Recibe el número formateado con la máscara del país. |
|
|
932
|
+
| `onCountryChange` | `(country: string) => void` | sí | | |
|
|
933
|
+
| `value` | `string` | sí | | Número nacional ya formateado (lo que devuelve `onChange`). |
|
|
934
|
+
| `className` | `string` | | | |
|
|
935
|
+
| `countries` | `PhoneCountry[]` | | `[ { code: "PE", dialCode: "+51", digits: 9, mask: "### ### ###", example: "912345678", }, { code: "MX", dialCode: "+52", digits: 10, mask: "### ### ####", example: "5551234567", }, { code: "CO", dialCode: "+57", digits: 10, mask: "### ### ####", example: "3001234567", }, { code: "CL", dialCode: "+56", digits: 9, mask: "# #### ####", example: "912345678", }, { code: "AR", dialCode: "+54", digits: 10, mask: "### ### ####", example: "9112345678", }, { code: "BR", dialCode: "+55", digits: 11, mask: "(##) ##### ####", example: "11999998888", }, { code: "ES", dialCode: "+34", digits: 9, mask: "### ### ###", example: "612345678", }, { code: "US", dialCode: "+1", digits: 10, mask: "(###) ###-####", example: "2015550123", }, { code: "CA", dialCode: "+1", digits: 10, mask: "(###) ###-####", example: "2015550123", }, ]` | Países del selector; por defecto `PHONE_COUNTRIES`. |
|
|
936
|
+
| `disabled` | `boolean` | | `false` | |
|
|
937
|
+
| `error` | `string` | | | Error externo; tiene prioridad sobre el de formato. |
|
|
938
|
+
| `hint` | `string` | | | Ayuda bajo el campo; por defecto, los dígitos que pide el país. |
|
|
939
|
+
| `id` | `string` | | | |
|
|
940
|
+
| `label` | `string` | | | |
|
|
941
|
+
| `labels` | `Partial<PhoneInputLabels>` | | | Textos de la interfaz; por defecto en español. |
|
|
942
|
+
| `name` | `string` | | | `name` del campo del número (el país va en `${name}-pais`). |
|
|
943
|
+
| `onBlur` | `() => void` | | | Al salir del campo del número (para marcarlo como "tocado"). |
|
|
944
|
+
| `onFocus` | `() => void` | | | |
|
|
945
|
+
| `required` | `boolean` | | `false` | |
|
|
946
|
+
| `showInternational` | `boolean` | | `true` | Muestra el número completo con prefijo ("+51 912 345 678") cuando es válido. Por defecto `true`. |
|
|
947
|
+
| `warning` | `string` | | | Advertencia que no bloquea el envío. |
|
|
948
948
|
|
|
949
949
|
#### DEFAULT_PHONE_INPUT_LABELS
|
|
950
950
|
|
|
@@ -1060,7 +1060,7 @@ import { RadioGroup } from "@rubenpazch/ui";
|
|
|
1060
1060
|
| `id` | `string` | | | |
|
|
1061
1061
|
| `label` | `string` | | | Etiqueta del grupo (alias de `groupLabel`). |
|
|
1062
1062
|
| `labels` | `Partial<{ selected: string; none: string; }>` | | | Textos de la interfaz. Por defecto, los del idioma activo (`UiLocaleProvider`); también se cambian para toda la app con su prop `messages`. |
|
|
1063
|
-
| `orientation` | `"
|
|
1063
|
+
| `orientation` | `"horizontal" \| "vertical"` | | `vertical` | |
|
|
1064
1064
|
| `required` | `boolean` | | `false` | |
|
|
1065
1065
|
| `selectedLabelText` | `string` | | | |
|
|
1066
1066
|
| `showSelectedLabel` | `boolean` | | `false` | |
|
|
@@ -1068,7 +1068,7 @@ import { RadioGroup } from "@rubenpazch/ui";
|
|
|
1068
1068
|
| `value` | `string` | | | |
|
|
1069
1069
|
| `variant` | `"default" \| "primary" \| "success" \| "warning" \| "danger"` | | `default` | |
|
|
1070
1070
|
|
|
1071
|
-
Tipos: `RadioButtonProps`, `RadioSize`, `RadioVariant`, `RadioGroupProps`, `RadioOption`, `RadioGroupOrientation`.
|
|
1071
|
+
Tipos: `RadioButtonProps`, `RadioButtonNativeProps`, `RadioSize`, `RadioVariant`, `RadioGroupProps`, `RadioOption`, `RadioGroupOrientation`.
|
|
1072
1072
|
|
|
1073
1073
|
### @rubenpazch/segmented-control
|
|
1074
1074
|
|
|
@@ -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
|
|
|
@@ -1215,7 +1216,7 @@ import { TextInput } from "@rubenpazch/ui";
|
|
|
1215
1216
|
| `step` | `number` | | | |
|
|
1216
1217
|
| `strengthLabelPrefix` | `string` | | | |
|
|
1217
1218
|
| `strengthLabels` | `Partial<Record<PasswordStrengthKey, string>>` | | | |
|
|
1218
|
-
| `type` | `"number" \| "text" \| "email" \| "tel" \| "password" \| "url"`
|
|
1219
|
+
| `type` | `"number" \| "text" \| "email" \| "tel" \| "password" \| "url" \| "search"` | | `text` | |
|
|
1219
1220
|
| `validateEmail` | `boolean` | | `false` | |
|
|
1220
1221
|
| `warning` | `string` | | | |
|
|
1221
1222
|
|
|
@@ -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
|
@@ -1330,7 +1330,7 @@
|
|
|
1330
1330
|
},
|
|
1331
1331
|
{
|
|
1332
1332
|
"nombre": "orientation",
|
|
1333
|
-
"tipo": "\"
|
|
1333
|
+
"tipo": "\"horizontal\" | \"vertical\"",
|
|
1334
1334
|
"requerido": false,
|
|
1335
1335
|
"porDefecto": "vertical",
|
|
1336
1336
|
"descripcion": "`vertical` (por defecto) o `horizontal` (se ajusta a la siguiente línea)."
|
|
@@ -1367,7 +1367,12 @@
|
|
|
1367
1367
|
}
|
|
1368
1368
|
],
|
|
1369
1369
|
"otrosValores": [],
|
|
1370
|
-
"tipos": [
|
|
1370
|
+
"tipos": [
|
|
1371
|
+
"CheckboxInputProps",
|
|
1372
|
+
"CheckboxInputNativeProps",
|
|
1373
|
+
"CheckboxGroupProps",
|
|
1374
|
+
"CheckboxOption"
|
|
1375
|
+
]
|
|
1371
1376
|
},
|
|
1372
1377
|
{
|
|
1373
1378
|
"paquete": "@rubenpazch/chip",
|
|
@@ -2437,6 +2442,13 @@
|
|
|
2437
2442
|
"porDefecto": "space-between",
|
|
2438
2443
|
"descripcion": "Header alignment (how to position title and close button)"
|
|
2439
2444
|
},
|
|
2445
|
+
{
|
|
2446
|
+
"nombre": "keepMounted",
|
|
2447
|
+
"tipo": "boolean",
|
|
2448
|
+
"requerido": false,
|
|
2449
|
+
"porDefecto": "false",
|
|
2450
|
+
"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."
|
|
2451
|
+
},
|
|
2440
2452
|
{
|
|
2441
2453
|
"nombre": "labels",
|
|
2442
2454
|
"tipo": "Partial<{ close: string; }>",
|
|
@@ -8519,7 +8531,7 @@
|
|
|
8519
8531
|
"nombre": "countries",
|
|
8520
8532
|
"tipo": "PhoneCountry[]",
|
|
8521
8533
|
"requerido": false,
|
|
8522
|
-
"porDefecto": "[\n {
|
|
8534
|
+
"porDefecto": "[\n {\n code: \"PE\",\n dialCode: \"+51\",\n digits: 9,\n mask: \"### ### ###\",\n example: \"912345678\",\n },\n {\n code: \"MX\",\n dialCode: \"+52\",\n digits: 10,\n mask: \"### ### ####\",\n example: \"5551234567\",\n },\n {\n code: \"CO\",\n dialCode: \"+57\",\n digits: 10,\n mask: \"### ### ####\",\n example: \"3001234567\",\n },\n {\n code: \"CL\",\n dialCode: \"+56\",\n digits: 9,\n mask: \"# #### ####\",\n example: \"912345678\",\n },\n {\n code: \"AR\",\n dialCode: \"+54\",\n digits: 10,\n mask: \"### ### ####\",\n example: \"9112345678\",\n },\n {\n code: \"BR\",\n dialCode: \"+55\",\n digits: 11,\n mask: \"(##) ##### ####\",\n example: \"11999998888\",\n },\n {\n code: \"ES\",\n dialCode: \"+34\",\n digits: 9,\n mask: \"### ### ###\",\n example: \"612345678\",\n },\n {\n code: \"US\",\n dialCode: \"+1\",\n digits: 10,\n mask: \"(###) ###-####\",\n example: \"2015550123\",\n },\n {\n code: \"CA\",\n dialCode: \"+1\",\n digits: 10,\n mask: \"(###) ###-####\",\n example: \"2015550123\",\n },\n]",
|
|
8523
8535
|
"descripcion": "Países del selector; por defecto `PHONE_COUNTRIES`."
|
|
8524
8536
|
},
|
|
8525
8537
|
{
|
|
@@ -9228,7 +9240,7 @@
|
|
|
9228
9240
|
},
|
|
9229
9241
|
{
|
|
9230
9242
|
"nombre": "orientation",
|
|
9231
|
-
"tipo": "\"
|
|
9243
|
+
"tipo": "\"horizontal\" | \"vertical\"",
|
|
9232
9244
|
"requerido": false,
|
|
9233
9245
|
"porDefecto": "vertical",
|
|
9234
9246
|
"descripcion": ""
|
|
@@ -9281,6 +9293,7 @@
|
|
|
9281
9293
|
"otrosValores": [],
|
|
9282
9294
|
"tipos": [
|
|
9283
9295
|
"RadioButtonProps",
|
|
9296
|
+
"RadioButtonNativeProps",
|
|
9284
9297
|
"RadioSize",
|
|
9285
9298
|
"RadioVariant",
|
|
9286
9299
|
"RadioGroupProps",
|
|
@@ -9474,6 +9487,13 @@
|
|
|
9474
9487
|
"porDefecto": "false",
|
|
9475
9488
|
"descripcion": ""
|
|
9476
9489
|
},
|
|
9490
|
+
{
|
|
9491
|
+
"nombre": "size",
|
|
9492
|
+
"tipo": "\"sm\" | \"md\" | \"lg\" | \"small\" | \"medium\" | \"large\"",
|
|
9493
|
+
"requerido": false,
|
|
9494
|
+
"porDefecto": null,
|
|
9495
|
+
"descripcion": "Tamaño: sm (en filas compactas, p. ej. dentro de un panel), md (por defecto) o lg; también small, medium, large."
|
|
9496
|
+
},
|
|
9477
9497
|
{
|
|
9478
9498
|
"nombre": "warning",
|
|
9479
9499
|
"tipo": "string",
|
|
@@ -9485,7 +9505,7 @@
|
|
|
9485
9505
|
}
|
|
9486
9506
|
],
|
|
9487
9507
|
"otrosValores": [],
|
|
9488
|
-
"tipos": ["SelectOption", "SelectProps"]
|
|
9508
|
+
"tipos": ["SelectOption", "SelectProps", "SelectSize"]
|
|
9489
9509
|
},
|
|
9490
9510
|
{
|
|
9491
9511
|
"paquete": "@rubenpazch/shared",
|
|
@@ -10281,7 +10301,7 @@
|
|
|
10281
10301
|
},
|
|
10282
10302
|
{
|
|
10283
10303
|
"nombre": "type",
|
|
10284
|
-
"tipo": "\"number\" | \"text\" | \"email\" | \"tel\" | \"password\" | \"url\"",
|
|
10304
|
+
"tipo": "\"number\" | \"text\" | \"email\" | \"tel\" | \"password\" | \"url\" | \"search\"",
|
|
10285
10305
|
"requerido": false,
|
|
10286
10306
|
"porDefecto": "text",
|
|
10287
10307
|
"descripcion": ""
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rubenpazch/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.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,68 +37,68 @@
|
|
|
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",
|
|
42
41
|
"@rubenpazch/auth-gate": "^0.3.0",
|
|
43
42
|
"@rubenpazch/autocomplete": "^5.4.0",
|
|
44
43
|
"@rubenpazch/avatar": "^3.1.3",
|
|
44
|
+
"@rubenpazch/alert": "^0.3.0",
|
|
45
|
+
"@rubenpazch/badge": "^0.1.3",
|
|
45
46
|
"@rubenpazch/bottom-navigation": "^0.2.0",
|
|
46
47
|
"@rubenpazch/button": "^6.2.6",
|
|
47
48
|
"@rubenpazch/card": "^0.1.3",
|
|
48
|
-
"@rubenpazch/checkbox-input": "^3.
|
|
49
|
+
"@rubenpazch/checkbox-input": "^3.5.0",
|
|
49
50
|
"@rubenpazch/chip": "^4.1.0",
|
|
50
|
-
"@rubenpazch/confirmation-dialog": "^3.2.0",
|
|
51
51
|
"@rubenpazch/collapsible": "^0.1.1",
|
|
52
|
-
"@rubenpazch/
|
|
53
|
-
"@rubenpazch/date-input": "^3.3.
|
|
54
|
-
"@rubenpazch/date-picker": "^3.3.
|
|
55
|
-
"@rubenpazch/date-range-picker": "^0.2.
|
|
56
|
-
"@rubenpazch/draggable-list": "^3.0.4",
|
|
52
|
+
"@rubenpazch/confirmation-dialog": "^3.2.0",
|
|
53
|
+
"@rubenpazch/date-input": "^3.3.1",
|
|
54
|
+
"@rubenpazch/date-picker": "^3.3.1",
|
|
55
|
+
"@rubenpazch/date-range-picker": "^0.2.1",
|
|
57
56
|
"@rubenpazch/description-list": "^0.2.0",
|
|
58
|
-
"@rubenpazch/
|
|
59
|
-
"@rubenpazch/
|
|
57
|
+
"@rubenpazch/draggable-list": "^3.0.4",
|
|
58
|
+
"@rubenpazch/data-table": "^0.2.0",
|
|
59
|
+
"@rubenpazch/drawer": "^4.4.0",
|
|
60
60
|
"@rubenpazch/empty-state": "^0.1.3",
|
|
61
61
|
"@rubenpazch/file-upload": "^0.2.0",
|
|
62
|
-
"@rubenpazch/icon-button": "^4.2.3",
|
|
63
62
|
"@rubenpazch/form-field": "^0.1.3",
|
|
63
|
+
"@rubenpazch/icons": "^6.6.1",
|
|
64
64
|
"@rubenpazch/image-upload": "^3.3.0",
|
|
65
65
|
"@rubenpazch/identification-input": "^2.2.0",
|
|
66
|
-
"@rubenpazch/image-viewer": "^1.2.
|
|
66
|
+
"@rubenpazch/image-viewer": "^1.2.1",
|
|
67
|
+
"@rubenpazch/icon-button": "^4.2.4",
|
|
67
68
|
"@rubenpazch/info-row": "^3.1.0",
|
|
68
|
-
"@rubenpazch/
|
|
69
|
+
"@rubenpazch/loading-spinner": "^4.1.0",
|
|
69
70
|
"@rubenpazch/list": "^0.1.1",
|
|
70
|
-
"@rubenpazch/layout": "^0.1.1",
|
|
71
71
|
"@rubenpazch/menu": "^0.2.0",
|
|
72
72
|
"@rubenpazch/modal": "^0.2.0",
|
|
73
|
+
"@rubenpazch/layout": "^0.1.1",
|
|
73
74
|
"@rubenpazch/money-input": "^0.2.0",
|
|
74
75
|
"@rubenpazch/numeric-picker": "^5.2.0",
|
|
75
76
|
"@rubenpazch/numeric-up-picker": "^6.2.0",
|
|
76
77
|
"@rubenpazch/month-navigator": "^0.2.0",
|
|
77
78
|
"@rubenpazch/overlay-loader": "^1.2.0",
|
|
78
|
-
"@rubenpazch/loading-spinner": "^4.1.0",
|
|
79
79
|
"@rubenpazch/page-header": "^0.2.0",
|
|
80
|
-
"@rubenpazch/
|
|
80
|
+
"@rubenpazch/pagination": "^3.4.0",
|
|
81
81
|
"@rubenpazch/patient-search": "^3.0.9",
|
|
82
|
-
"@rubenpazch/phone-input": "^1.
|
|
82
|
+
"@rubenpazch/phone-input": "^1.3.0",
|
|
83
83
|
"@rubenpazch/pin-input": "^0.2.0",
|
|
84
|
+
"@rubenpazch/patient-details": "^3.1.4",
|
|
84
85
|
"@rubenpazch/prescription-card": "^3.0.6",
|
|
86
|
+
"@rubenpazch/prescription-eye-card": "^3.0.12",
|
|
85
87
|
"@rubenpazch/progress-bar": "^0.1.3",
|
|
86
|
-
"@rubenpazch/
|
|
87
|
-
"@rubenpazch/radio-button": "^4.3.0",
|
|
88
|
-
"@rubenpazch/pagination": "^3.4.0",
|
|
88
|
+
"@rubenpazch/radio-button": "^4.4.0",
|
|
89
89
|
"@rubenpazch/segmented-control": "^0.1.3",
|
|
90
|
-
"@rubenpazch/select": "^1.4.0",
|
|
91
90
|
"@rubenpazch/shared": "^5.4.0",
|
|
91
|
+
"@rubenpazch/select": "^1.5.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.
|
|
97
|
+
"@rubenpazch/text-input": "^6.8.0",
|
|
98
98
|
"@rubenpazch/textarea": "^0.1.3",
|
|
99
99
|
"@rubenpazch/timeline": "^0.2.0",
|
|
100
|
-
"@rubenpazch/tokens": "^0.5.0",
|
|
101
100
|
"@rubenpazch/toast": "^4.2.0",
|
|
101
|
+
"@rubenpazch/tokens": "^0.5.0",
|
|
102
102
|
"@rubenpazch/tooltip": "^0.1.3",
|
|
103
103
|
"@rubenpazch/turnstile": "^0.2.0",
|
|
104
104
|
"@rubenpazch/user-card": "^0.2.0"
|