ui-mathilde-web 1.0.14 → 1.0.16
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 +151 -16
- package/dist/ui-mathilde-web.js +9065 -8091
- package/dist/ui-mathilde-web.umd.cjs +52 -52
- package/package.json +1 -1
|
@@ -53,6 +53,8 @@ declare interface AccordionProps {
|
|
|
53
53
|
|
|
54
54
|
export declare const AddSvgIcon: ({ size, width, height, color, style, ...props }: SvgIconBaseProps) => JSX_2.Element;
|
|
55
55
|
|
|
56
|
+
export declare const AgentDesk: ({ size, width, height, color, style, ...props }: SvgIconBaseProps) => JSX_2.Element;
|
|
57
|
+
|
|
56
58
|
export declare const AiChatSvgIcon: ({ size, width, height, color, style, ...props }: SvgIconBaseProps) => JSX_2.Element;
|
|
57
59
|
|
|
58
60
|
export declare const Alert: ({ isOpen, onConfirm, onCancel, onClose, ...options }: AlertProps) => null;
|
|
@@ -175,6 +177,8 @@ export declare const BUILT_IN_IMAGE_ICON_SRC: {
|
|
|
175
177
|
readonly tiktok: string;
|
|
176
178
|
};
|
|
177
179
|
|
|
180
|
+
export declare const Business: ({ size, width, height, color, style, ...props }: SvgIconBaseProps) => JSX_2.Element;
|
|
181
|
+
|
|
178
182
|
export declare const Button: ({ variant, iconPosition, icon, children, full, ...htmlProps }: ButtonProps) => JSX_2.Element;
|
|
179
183
|
|
|
180
184
|
export declare const ButtonFormat: FC<ButtonFormatProps>;
|
|
@@ -244,6 +248,16 @@ declare interface CardItem {
|
|
|
244
248
|
target?: '_blank' | '_self';
|
|
245
249
|
}
|
|
246
250
|
|
|
251
|
+
declare interface CardItem_2 {
|
|
252
|
+
id: string;
|
|
253
|
+
title: string;
|
|
254
|
+
description: string;
|
|
255
|
+
imageUrl: string;
|
|
256
|
+
action?: () => void;
|
|
257
|
+
href?: string;
|
|
258
|
+
target?: '_blank' | '_self';
|
|
259
|
+
}
|
|
260
|
+
|
|
247
261
|
declare interface CardProps {
|
|
248
262
|
imageUrl?: string;
|
|
249
263
|
width?: number;
|
|
@@ -651,6 +665,8 @@ export declare const GoogleIcon: {
|
|
|
651
665
|
|
|
652
666
|
export declare const HandSwipeRight: ({ size, width, height, color, style, ...props }: SvgIconBaseProps) => JSX_2.Element;
|
|
653
667
|
|
|
668
|
+
export declare const Headset: ({ size, width, height, color, style, ...props }: SvgIconBaseProps) => JSX_2.Element;
|
|
669
|
+
|
|
654
670
|
export declare type IconBaseProps = Omit<ImgHTMLAttributes<HTMLImageElement>, 'src'> & {
|
|
655
671
|
size?: number;
|
|
656
672
|
};
|
|
@@ -685,6 +701,8 @@ declare interface InputFormProps extends default_2.InputHTMLAttributes<HTMLInput
|
|
|
685
701
|
id?: string;
|
|
686
702
|
}
|
|
687
703
|
|
|
704
|
+
declare type ItemPosition = 'top' | 'bottom';
|
|
705
|
+
|
|
688
706
|
export declare const Label: {
|
|
689
707
|
({ text, icon, className, contentClassName, textClassName, ...props }: LabelProps): JSX_2.Element;
|
|
690
708
|
displayName: string;
|
|
@@ -705,6 +723,17 @@ declare interface LayoutOutsideProps {
|
|
|
705
723
|
content: React.ReactNode;
|
|
706
724
|
}
|
|
707
725
|
|
|
726
|
+
declare interface LegacyMenuItem {
|
|
727
|
+
id: string;
|
|
728
|
+
label: string;
|
|
729
|
+
icon: ElementType | string;
|
|
730
|
+
action?: () => void;
|
|
731
|
+
href?: string;
|
|
732
|
+
target?: '_blank' | '_self';
|
|
733
|
+
position: string;
|
|
734
|
+
subMenuSection?: SubMenuSection;
|
|
735
|
+
}
|
|
736
|
+
|
|
708
737
|
export declare const ListFile: default_2.FC<ListFileProps>;
|
|
709
738
|
|
|
710
739
|
declare interface ListFileProps {
|
|
@@ -715,12 +744,41 @@ declare interface ListFileProps {
|
|
|
715
744
|
|
|
716
745
|
export declare const Loader: () => JSX_2.Element;
|
|
717
746
|
|
|
747
|
+
declare interface LogoConfig {
|
|
748
|
+
src: {
|
|
749
|
+
collapsed: string;
|
|
750
|
+
expanded: string;
|
|
751
|
+
};
|
|
752
|
+
alt: string;
|
|
753
|
+
width: {
|
|
754
|
+
collapsed: number;
|
|
755
|
+
expanded: number;
|
|
756
|
+
};
|
|
757
|
+
height: {
|
|
758
|
+
collapsed: number;
|
|
759
|
+
expanded: number;
|
|
760
|
+
};
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
export declare const Logout: ({ size, width, height, color, style, ...props }: SvgIconBaseProps) => JSX_2.Element;
|
|
764
|
+
|
|
718
765
|
export declare const MathildeIcon: {
|
|
719
766
|
({ size, width, height, alt, ...props }: IconBaseProps): JSX_2.Element;
|
|
720
767
|
displayName: string;
|
|
721
768
|
};
|
|
722
769
|
|
|
770
|
+
export declare const Megaphone: ({ size, width, height, color, style, ...props }: SvgIconBaseProps) => JSX_2.Element;
|
|
771
|
+
|
|
723
772
|
declare interface MenuItem {
|
|
773
|
+
id: string;
|
|
774
|
+
title: string;
|
|
775
|
+
href: string;
|
|
776
|
+
isActive?: boolean;
|
|
777
|
+
icon?: IconType;
|
|
778
|
+
subItems?: MenuItem[];
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
declare interface MenuItem_2 {
|
|
724
782
|
id: string;
|
|
725
783
|
label: string;
|
|
726
784
|
icon: ElementType | string;
|
|
@@ -728,16 +786,7 @@ declare interface MenuItem {
|
|
|
728
786
|
href?: string;
|
|
729
787
|
target?: '_blank' | '_self';
|
|
730
788
|
position: string;
|
|
731
|
-
subMenuSection?:
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
declare interface MenuItem_2 {
|
|
735
|
-
id: string;
|
|
736
|
-
title: string;
|
|
737
|
-
href: string;
|
|
738
|
-
isActive?: boolean;
|
|
739
|
-
icon?: IconType;
|
|
740
|
-
subItems?: MenuItem_2[];
|
|
789
|
+
subMenuSection?: SubMenuSection_2;
|
|
741
790
|
}
|
|
742
791
|
|
|
743
792
|
export declare const ModalFormat: ForwardRefExoticComponent<ModalProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -770,6 +819,28 @@ declare interface MyDoughnutChartProps {
|
|
|
770
819
|
};
|
|
771
820
|
}
|
|
772
821
|
|
|
822
|
+
declare interface NavItem {
|
|
823
|
+
id: string;
|
|
824
|
+
label: string;
|
|
825
|
+
icon: ElementType | string;
|
|
826
|
+
type?: NavItemType;
|
|
827
|
+
href?: string;
|
|
828
|
+
target?: '_blank' | '_self';
|
|
829
|
+
onClick?: () => void;
|
|
830
|
+
position?: ItemPosition;
|
|
831
|
+
active?: boolean;
|
|
832
|
+
disabled?: boolean;
|
|
833
|
+
badge?: string | number;
|
|
834
|
+
tooltip?: string;
|
|
835
|
+
endContent?: ReactNode;
|
|
836
|
+
permissions?: string[];
|
|
837
|
+
featureFlag?: string;
|
|
838
|
+
children?: NavItem[];
|
|
839
|
+
subMenuMode?: SubMenuMode;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
declare type NavItemType = 'internal' | 'external' | 'action';
|
|
843
|
+
|
|
773
844
|
declare interface Option_2 {
|
|
774
845
|
value: string;
|
|
775
846
|
label: string;
|
|
@@ -791,6 +862,8 @@ declare interface PasswordInputProps extends default_2.InputHTMLAttributes<HTMLI
|
|
|
791
862
|
|
|
792
863
|
export declare const PasswordValidationList: default_2.FC<ValidationListProps>;
|
|
793
864
|
|
|
865
|
+
export declare const PlanningCalendar: ({ size, width, height, color, style, ...props }: SvgIconBaseProps) => JSX_2.Element;
|
|
866
|
+
|
|
794
867
|
export declare const ProgressBar: ({ start, end, current, type }: {
|
|
795
868
|
start: number;
|
|
796
869
|
end: number;
|
|
@@ -855,9 +928,57 @@ declare interface SelectFormProps extends React.SelectHTMLAttributes<HTMLSelectE
|
|
|
855
928
|
classDiv?: string;
|
|
856
929
|
}
|
|
857
930
|
|
|
858
|
-
export declare const
|
|
931
|
+
export declare const Sidebar: SidebarProComposite;
|
|
932
|
+
|
|
933
|
+
declare const SidebarFooter: FC<SidebarFooterProps>;
|
|
934
|
+
|
|
935
|
+
declare interface SidebarFooterProps {
|
|
936
|
+
onLogout?: () => void;
|
|
937
|
+
logoutIcon?: string;
|
|
938
|
+
children?: ReactNode;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
declare const SidebarHeader: FC<SidebarHeaderProps>;
|
|
942
|
+
|
|
943
|
+
declare interface SidebarHeaderProps {
|
|
944
|
+
logo: LogoConfig;
|
|
945
|
+
href?: string;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
declare const SidebarNavigation: FC<SidebarNavigationProps>;
|
|
949
|
+
|
|
950
|
+
declare interface SidebarNavigationProps {
|
|
951
|
+
items: NavItem[];
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
export declare const SidebarPro: FC<SidebarProProps_2>;
|
|
955
|
+
|
|
956
|
+
declare interface SidebarProComposite extends FC<SidebarProProps> {
|
|
957
|
+
Header: typeof SidebarHeader;
|
|
958
|
+
Navigation: typeof SidebarNavigation;
|
|
959
|
+
Footer: typeof SidebarFooter;
|
|
960
|
+
}
|
|
859
961
|
|
|
860
962
|
declare interface SidebarProProps {
|
|
963
|
+
aHref?: string;
|
|
964
|
+
logo: LogoConfig;
|
|
965
|
+
/** Prop preferida — modelo normalizado con soporte completo */
|
|
966
|
+
navItems?: NavItem[];
|
|
967
|
+
/** @deprecated Usar navItems. Se normaliza internamente para retrocompatibilidad */
|
|
968
|
+
menuItems?: LegacyMenuItem[];
|
|
969
|
+
campaignCards?: CardItem[];
|
|
970
|
+
onLogout?: () => void;
|
|
971
|
+
/** URL del icono de logout. Acepta cualquier SVG/imagen */
|
|
972
|
+
logoutIcon?: string;
|
|
973
|
+
defaultCollapsed?: boolean;
|
|
974
|
+
background?: string;
|
|
975
|
+
backgroundColor?: string;
|
|
976
|
+
textColor?: string;
|
|
977
|
+
className?: string;
|
|
978
|
+
children?: ReactNode;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
declare interface SidebarProProps_2 {
|
|
861
982
|
aHref?: string;
|
|
862
983
|
logo: {
|
|
863
984
|
src: {
|
|
@@ -874,9 +995,9 @@ declare interface SidebarProProps {
|
|
|
874
995
|
expanded: number;
|
|
875
996
|
};
|
|
876
997
|
};
|
|
877
|
-
menuItems:
|
|
878
|
-
subMenuSections?:
|
|
879
|
-
campaignCards?:
|
|
998
|
+
menuItems: MenuItem_2[];
|
|
999
|
+
subMenuSections?: SubMenuSection_2[];
|
|
1000
|
+
campaignCards?: CardItem_2[];
|
|
880
1001
|
onLogout?: () => void;
|
|
881
1002
|
defaultCollapsed?: boolean;
|
|
882
1003
|
background?: string;
|
|
@@ -897,6 +1018,8 @@ declare interface SpinnerProps_2 {
|
|
|
897
1018
|
description?: string;
|
|
898
1019
|
}
|
|
899
1020
|
|
|
1021
|
+
export declare const SquareListDashes: ({ size, width, height, color, style, ...props }: SvgIconBaseProps) => JSX_2.Element;
|
|
1022
|
+
|
|
900
1023
|
declare interface StepDefinition {
|
|
901
1024
|
title: string;
|
|
902
1025
|
description?: string;
|
|
@@ -933,10 +1056,18 @@ declare interface StepperProps {
|
|
|
933
1056
|
}) => React.ReactNode;
|
|
934
1057
|
}
|
|
935
1058
|
|
|
1059
|
+
declare type SubMenuMode = 'inline' | 'panel';
|
|
1060
|
+
|
|
936
1061
|
declare interface SubMenuSection {
|
|
937
1062
|
id: string;
|
|
938
1063
|
label: string;
|
|
939
|
-
items:
|
|
1064
|
+
items: LegacyMenuItem[];
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
declare interface SubMenuSection_2 {
|
|
1068
|
+
id: string;
|
|
1069
|
+
label: string;
|
|
1070
|
+
items: MenuItem_2[];
|
|
940
1071
|
}
|
|
941
1072
|
|
|
942
1073
|
export declare type SvgIconBaseProps = SVGProps<SVGSVGElement> & {
|
|
@@ -986,7 +1117,7 @@ declare interface TableData_2 extends Record<string, unknown> {
|
|
|
986
1117
|
export declare const TableOfContents: React.FC<TableOfContentsProps>;
|
|
987
1118
|
|
|
988
1119
|
declare interface TableOfContentsProps {
|
|
989
|
-
items:
|
|
1120
|
+
items: MenuItem[];
|
|
990
1121
|
}
|
|
991
1122
|
|
|
992
1123
|
export declare function TabsComponent({ tabs, classes, classesUl, tabItemClasses, activeTabStyles, inactiveTabStyles, contentClasses, defaultActiveTab, onTabChange }: TabsComponentProps): JSX_2.Element;
|
|
@@ -1074,6 +1205,10 @@ declare interface TooltipProps {
|
|
|
1074
1205
|
disabled?: boolean;
|
|
1075
1206
|
}
|
|
1076
1207
|
|
|
1208
|
+
export declare const UserCircle: ({ size, width, height, color, style, ...props }: SvgIconBaseProps) => JSX_2.Element;
|
|
1209
|
+
|
|
1210
|
+
export declare const UserGroup: ({ size, width, height, color, style, ...props }: SvgIconBaseProps) => JSX_2.Element;
|
|
1211
|
+
|
|
1077
1212
|
export declare const UserListSvgIcon: ({ size, width, height, color, style, ...props }: SvgIconBaseProps) => JSX_2.Element;
|
|
1078
1213
|
|
|
1079
1214
|
declare interface ValidationListProps {
|