ui-mathilde-web 0.13.1 → 0.13.3

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 { ComponentType } from 'react';
1
2
  import { default as default_2 } from 'react';
2
3
  import { FormikProps } from 'formik';
3
4
  import { ForwardRefExoticComponent } from 'react';
@@ -5,6 +6,7 @@ import { IconBaseProps as IconBaseProps_2 } from '../..';
5
6
  import { IconType } from 'react-icons';
6
7
  import { ImgHTMLAttributes } from 'react';
7
8
  import { JSX as JSX_2 } from 'react/jsx-runtime';
9
+ import { LabelProps as LabelProps_2 } from 'flowbite-react';
8
10
  import * as React_2 from 'react';
9
11
  import { ReactNode } from 'react';
10
12
  import { RefAttributes } from 'react';
@@ -167,6 +169,11 @@ export declare const BUILT_IN_IMAGE_ICON_SRC: {
167
169
 
168
170
  export declare const ButtonFormat: default_2.FC<ButtonFormatProps>;
169
171
 
172
+ /** Elemento JSX (con props), componente con `size`, o string (URL o clave resuelta con getImageIconSrc). */
173
+ declare type ButtonFormatIconProp = ReactNode | ComponentType<{
174
+ size?: number;
175
+ }>;
176
+
170
177
  declare interface ButtonFormatProps {
171
178
  txtBtn: string;
172
179
  typeButton: string;
@@ -176,12 +183,8 @@ declare interface ButtonFormatProps {
176
183
  classes?: string;
177
184
  type: string;
178
185
  onClick?: () => void;
179
- leftIcon?: React.ComponentType<{
180
- size?: number;
181
- }> | string;
182
- rightIcon?: React.ComponentType<{
183
- size?: number;
184
- }> | string;
186
+ leftIcon?: ButtonFormatIconProp;
187
+ rightIcon?: ButtonFormatIconProp;
185
188
  iconSize?: number;
186
189
  }
187
190
 
@@ -522,6 +525,21 @@ declare interface DropzoneProps {
522
525
  disabled?: boolean;
523
526
  }
524
527
 
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
+ };
542
+
525
543
  export declare const FacebookIcon: {
526
544
  ({ size, width, height, alt, ...props }: IconBaseProps_2): JSX_2.Element;
527
545
  displayName: string;
@@ -616,6 +634,20 @@ declare interface InputFormProps extends default_2.InputHTMLAttributes<HTMLInput
616
634
  maxLength?: number;
617
635
  }
618
636
 
637
+ export declare const Label: {
638
+ ({ text, icon, className, contentClassName, textClassName, ...props }: LabelProps): JSX_2.Element;
639
+ displayName: string;
640
+ };
641
+
642
+ declare type LabelProps = Omit<LabelProps_2, 'children'> & {
643
+ text: string;
644
+ icon?: ReactNode;
645
+ /** Clases en el contenedor que agrupa texto + icono (p. ej. `gap-3`, `items-end`). */
646
+ contentClassName?: string;
647
+ /** Clases solo sobre el texto (p. ej. `text-lg`, `font-bold`, `font-mono`). */
648
+ textClassName?: string;
649
+ };
650
+
619
651
  export declare const LayoutOutside: ({ content }: LayoutOutsideProps) => JSX_2.Element;
620
652
 
621
653
  declare interface LayoutOutsideProps {