ui-mathilde-web 0.13.3 → 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.
@@ -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,10 +50,14 @@ 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;
55
58
 
59
+ export declare const AlertCircleSvgIcon: ({ size, width, height, color, style, ...props }: SvgIconBaseProps) => JSX_2.Element;
60
+
56
61
  declare type AlertIcon = "success" | "error" | "warning" | "info" | "question";
57
62
 
58
63
  /**
@@ -167,6 +172,8 @@ export declare const BUILT_IN_IMAGE_ICON_SRC: {
167
172
  readonly tiktok: string;
168
173
  };
169
174
 
175
+ export declare const Button: ({ variant, iconPosition, icon, children, full, ...htmlProps }: ButtonProps) => JSX_2.Element;
176
+
170
177
  export declare const ButtonFormat: default_2.FC<ButtonFormatProps>;
171
178
 
172
179
  /** Elemento JSX (con props), componente con `size`, o string (URL o clave resuelta con getImageIconSrc). */
@@ -188,6 +195,25 @@ declare interface ButtonFormatProps {
188
195
  iconSize?: number;
189
196
  }
190
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
+
215
+ export declare const CancelSquareSvgIcon: ({ size, width, height, color, style, ...props }: SvgIconBaseProps) => JSX_2.Element;
216
+
191
217
  export declare const Card: ForwardRefExoticComponent<CardProps & RefAttributes<HTMLDivElement>>;
192
218
 
193
219
  export declare const CardIndicator: React.FC<CardIndicatorProps>;
@@ -225,7 +251,7 @@ declare interface CardProps {
225
251
  iconPosition?: 'start' | 'center' | 'end';
226
252
  imagePosition?: 'ml-auto' | 'mr-auto' | 'mx-auto';
227
253
  tooltip?: boolean;
228
- tooltipContent?: string;
254
+ messageContent?: string;
229
255
  tooltipTrigger?: 'hover' | 'click';
230
256
  }
231
257
 
@@ -262,6 +288,8 @@ declare interface CheckboxProps {
262
288
  icono?: string;
263
289
  }
264
290
 
291
+ export declare const CheckmarkCircleSvgIcon: ({ size, width, height, color, style, ...props }: SvgIconBaseProps) => JSX_2.Element;
292
+
265
293
  export declare const CheckmarkSvgIcon: ({ size, width, height, color, style, ...props }: SvgIconBaseProps) => JSX_2.Element;
266
294
 
267
295
  declare interface ChipColors {
@@ -427,7 +455,7 @@ declare interface DateRangePickerProps {
427
455
  className?: string;
428
456
  }
429
457
 
430
- export declare const DragAndDrop: ({ categories, onQueryChange, maxGroups, titleCategories, isToolTipOpen, toolTipContent, }: DragAndDropProps) => JSX_2.Element;
458
+ export declare const DragAndDrop: ({ categories, onQueryChange, maxGroups, titleCategories, isToolTipOpen, messageContent, }: DragAndDropProps) => JSX_2.Element;
431
459
 
432
460
  declare interface DragAndDropProps {
433
461
  categories: Category_2[];
@@ -435,7 +463,7 @@ declare interface DragAndDropProps {
435
463
  maxGroups?: number;
436
464
  titleCategories?: string;
437
465
  isToolTipOpen?: boolean;
438
- toolTipContent?: string;
466
+ messageContent?: string;
439
467
  }
440
468
 
441
469
  export declare const DropdownButton: ({ label, dismissOnClick, items, size, className, styles, mode, columns, onSelectionChange, selectedItems, activeChevron, icon, iconSize, }: DropdownProps) => JSX_2.Element;
@@ -525,20 +553,7 @@ declare interface DropzoneProps {
525
553
  disabled?: boolean;
526
554
  }
527
555
 
528
- /** Variables CSS leídas por el SVG (útiles desde Tailwind: `[--mth-edit-surface:#…]`) */
529
- export declare const EDIT_ICON_CSS_VARS: {
530
- readonly surface: "--mth-edit-surface";
531
- readonly ink: "--mth-edit-ink";
532
- };
533
-
534
- export declare const EditSvgIcon: ({ size, width, height, color, style, surfaceColor, inkColor, ...props }: EditSvgIconProps) => JSX_2.Element;
535
-
536
- export declare type EditSvgIconProps = SvgIconBaseProps & {
537
- /** Color del fondo redondeado (rect). */
538
- surfaceColor?: string;
539
- /** Color del lápiz (paths / line). Si no se pasa, se usa `color` del SVG si existe. */
540
- inkColor?: string;
541
- };
556
+ export declare const EditSvgIcon: ({ size, width, height, color, style, ...props }: SvgIconBaseProps) => JSX_2.Element;
542
557
 
543
558
  export declare const FacebookIcon: {
544
559
  ({ size, width, height, alt, ...props }: IconBaseProps_2): JSX_2.Element;