ui-mathilde-web 0.11.14 → 0.11.15
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/ui-mathilde-web.d.ts +43 -0
- package/dist/ui-mathilde-web.js +5887 -5826
- package/dist/ui-mathilde-web.umd.cjs +74 -74
- package/package.json +1 -1
|
@@ -48,6 +48,20 @@ export declare const Alert: ({ isOpen, onConfirm, onCancel, onClose, ...options
|
|
|
48
48
|
|
|
49
49
|
declare type AlertIcon = "success" | "error" | "warning" | "info" | "question";
|
|
50
50
|
|
|
51
|
+
/**
|
|
52
|
+
* Imágenes por defecto del Alert (SweetAlert `imageUrl` + tamaño).
|
|
53
|
+
* El consumidor solo pasa `imageIconKey` (p. ej. `"success"`); no hace falta registrar nada en el front.
|
|
54
|
+
*
|
|
55
|
+
* `registerAlertImageIcons` sigue disponible para sobrescribir o añadir claves en casos avanzados.
|
|
56
|
+
*/
|
|
57
|
+
export declare type AlertImageIconDefinition = {
|
|
58
|
+
url: string;
|
|
59
|
+
imageWidth?: number;
|
|
60
|
+
imageHeight?: number;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export declare type AlertImageIconKey = keyof typeof BUILT_IN_ALERT_IMAGE_ICONS;
|
|
64
|
+
|
|
51
65
|
declare interface AlertOptions {
|
|
52
66
|
title?: string;
|
|
53
67
|
text?: string;
|
|
@@ -56,6 +70,11 @@ declare interface AlertOptions {
|
|
|
56
70
|
imageUrl?: string;
|
|
57
71
|
imageWidth?: number;
|
|
58
72
|
imageHeight?: number;
|
|
73
|
+
/**
|
|
74
|
+
* Imagen del design system: URLs definidas en la librería (`BUILT_IN_ALERT_IMAGE_ICONS`).
|
|
75
|
+
* Si también pasas `imageUrl`, gana `imageUrl`.
|
|
76
|
+
*/
|
|
77
|
+
imageIconKey?: AlertImageIconKey;
|
|
59
78
|
showCancelButton?: boolean;
|
|
60
79
|
cancelButtonText?: string;
|
|
61
80
|
confirmButtonText?: string;
|
|
@@ -115,6 +134,25 @@ declare interface BadgeConfig {
|
|
|
115
134
|
multiple?: boolean;
|
|
116
135
|
}
|
|
117
136
|
|
|
137
|
+
/** Claves soportadas por la librería sin configuración en el consumidor. */
|
|
138
|
+
export declare const BUILT_IN_ALERT_IMAGE_ICONS: {
|
|
139
|
+
readonly success: {
|
|
140
|
+
readonly url: "https://ftp.mathilde-ads.com/382-fd0ab04039e5e3af316d454eb3ae0c89.svg";
|
|
141
|
+
readonly imageWidth: 70;
|
|
142
|
+
readonly imageHeight: 70;
|
|
143
|
+
};
|
|
144
|
+
readonly error: {
|
|
145
|
+
readonly url: "https://ftp.mathilde-ads.com/382-39f2a6acf3e4d6764f422b18995f0d78.svg";
|
|
146
|
+
readonly imageWidth: 70;
|
|
147
|
+
readonly imageHeight: 70;
|
|
148
|
+
};
|
|
149
|
+
readonly warning: {
|
|
150
|
+
readonly url: "https://ftp.mathilde-ads.com/382-2f512deea742dcc31826f8f0f612bbb9.svg";
|
|
151
|
+
readonly imageWidth: 70;
|
|
152
|
+
readonly imageHeight: 70;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
|
|
118
156
|
export declare const ButtonFormat: default_2.FC<ButtonFormatProps>;
|
|
119
157
|
|
|
120
158
|
declare interface ButtonFormatProps {
|
|
@@ -234,6 +272,9 @@ declare interface ChipListProps {
|
|
|
234
272
|
showTitle?: boolean;
|
|
235
273
|
}
|
|
236
274
|
|
|
275
|
+
/** Solo útil en tests o hot reload de Storybook. */
|
|
276
|
+
export declare function clearAlertImageIcons(): void;
|
|
277
|
+
|
|
237
278
|
declare type CollapseMode = "single" | "multi";
|
|
238
279
|
|
|
239
280
|
export declare const CollapsibleTable: React_2.FC<CollapsibleTableProps>;
|
|
@@ -645,6 +686,8 @@ declare interface RadioButtonProps {
|
|
|
645
686
|
className?: string;
|
|
646
687
|
}
|
|
647
688
|
|
|
689
|
+
export declare function registerAlertImageIcons(icons: Record<string, AlertImageIconDefinition>): void;
|
|
690
|
+
|
|
648
691
|
export declare const SelectForm: ForwardRefExoticComponent<SelectFormProps & RefAttributes<HTMLSelectElement>>;
|
|
649
692
|
|
|
650
693
|
declare interface SelectFormProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
|