ui-mathilde-web 0.13.5 → 0.13.6
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/style.css +1 -1
- package/dist/ui-mathilde-web.d.ts +25 -3
- package/dist/ui-mathilde-web.js +9138 -8709
- package/dist/ui-mathilde-web.umd.cjs +75 -75
- package/package.json +2 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
1
2
|
import { ComponentType } from 'react';
|
|
2
3
|
import { default as default_2 } from 'react';
|
|
3
4
|
import { FormikProps } from 'formik';
|
|
@@ -49,6 +50,8 @@ declare interface AccordionProps {
|
|
|
49
50
|
titleClasses?: string;
|
|
50
51
|
}
|
|
51
52
|
|
|
53
|
+
export declare const AddSvgIcon: ({ size, width, height, color, style, ...props }: SvgIconBaseProps) => JSX_2.Element;
|
|
54
|
+
|
|
52
55
|
export declare const AiChatSvgIcon: ({ size, width, height, color, style, ...props }: SvgIconBaseProps) => JSX_2.Element;
|
|
53
56
|
|
|
54
57
|
export declare const Alert: ({ isOpen, onConfirm, onCancel, onClose, ...options }: AlertProps) => null;
|
|
@@ -169,6 +172,8 @@ export declare const BUILT_IN_IMAGE_ICON_SRC: {
|
|
|
169
172
|
readonly tiktok: string;
|
|
170
173
|
};
|
|
171
174
|
|
|
175
|
+
export declare const Button: ({ variant, iconPosition, icon, children, full, ...htmlProps }: ButtonProps) => JSX_2.Element;
|
|
176
|
+
|
|
172
177
|
export declare const ButtonFormat: default_2.FC<ButtonFormatProps>;
|
|
173
178
|
|
|
174
179
|
/** Elemento JSX (con props), componente con `size`, o string (URL o clave resuelta con getImageIconSrc). */
|
|
@@ -190,6 +195,23 @@ declare interface ButtonFormatProps {
|
|
|
190
195
|
iconSize?: number;
|
|
191
196
|
}
|
|
192
197
|
|
|
198
|
+
declare type ButtonIconPosition = 'none' | 'left' | 'right' | 'icon-only';
|
|
199
|
+
|
|
200
|
+
declare interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'className'> {
|
|
201
|
+
/** Apariencia visual del botón */
|
|
202
|
+
variant?: ButtonVariant;
|
|
203
|
+
/** Dónde se renderiza el icono, o si el botón es solo icono */
|
|
204
|
+
iconPosition?: ButtonIconPosition;
|
|
205
|
+
/** Nodo del icono (SVG component, ReactElement, etc.) */
|
|
206
|
+
icon?: ReactNode;
|
|
207
|
+
/** Texto del botón. No aplica cuando iconPosition es 'icon-only' */
|
|
208
|
+
children?: ReactNode;
|
|
209
|
+
/** Si el botón ocupa el 100% del ancho del contenedor */
|
|
210
|
+
full?: boolean;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
declare type ButtonVariant = 'default' | 'secondary' | 'link';
|
|
214
|
+
|
|
193
215
|
export declare const CancelSquareSvgIcon: ({ size, width, height, color, style, ...props }: SvgIconBaseProps) => JSX_2.Element;
|
|
194
216
|
|
|
195
217
|
export declare const Card: ForwardRefExoticComponent<CardProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -229,7 +251,7 @@ declare interface CardProps {
|
|
|
229
251
|
iconPosition?: 'start' | 'center' | 'end';
|
|
230
252
|
imagePosition?: 'ml-auto' | 'mr-auto' | 'mx-auto';
|
|
231
253
|
tooltip?: boolean;
|
|
232
|
-
|
|
254
|
+
messageContent?: string;
|
|
233
255
|
tooltipTrigger?: 'hover' | 'click';
|
|
234
256
|
}
|
|
235
257
|
|
|
@@ -433,7 +455,7 @@ declare interface DateRangePickerProps {
|
|
|
433
455
|
className?: string;
|
|
434
456
|
}
|
|
435
457
|
|
|
436
|
-
export declare const DragAndDrop: ({ categories, onQueryChange, maxGroups, titleCategories, isToolTipOpen,
|
|
458
|
+
export declare const DragAndDrop: ({ categories, onQueryChange, maxGroups, titleCategories, isToolTipOpen, messageContent, }: DragAndDropProps) => JSX_2.Element;
|
|
437
459
|
|
|
438
460
|
declare interface DragAndDropProps {
|
|
439
461
|
categories: Category_2[];
|
|
@@ -441,7 +463,7 @@ declare interface DragAndDropProps {
|
|
|
441
463
|
maxGroups?: number;
|
|
442
464
|
titleCategories?: string;
|
|
443
465
|
isToolTipOpen?: boolean;
|
|
444
|
-
|
|
466
|
+
messageContent?: string;
|
|
445
467
|
}
|
|
446
468
|
|
|
447
469
|
export declare const DropdownButton: ({ label, dismissOnClick, items, size, className, styles, mode, columns, onSelectionChange, selectedItems, activeChevron, icon, iconSize, }: DropdownProps) => JSX_2.Element;
|