ui-mathilde-web 0.1.9 → 0.1.11
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 +48 -8
- package/dist/ui-mathilde-web.js +48461 -9201
- package/dist/ui-mathilde-web.umd.cjs +1016 -44
- package/package.json +3 -1
|
@@ -22,7 +22,7 @@ declare interface ButtonFormatProps {
|
|
|
22
22
|
iconSize?: number;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
export declare const
|
|
25
|
+
export declare const Card: ForwardRefExoticComponent<CardProps & RefAttributes<HTMLDivElement>>;
|
|
26
26
|
|
|
27
27
|
export declare const CardIndicator: React.FC<CardIndicatorProps>;
|
|
28
28
|
|
|
@@ -35,11 +35,21 @@ declare interface CardIndicatorProps {
|
|
|
35
35
|
current: number;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
declare interface
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
declare interface CardItem {
|
|
39
|
+
id: string;
|
|
40
|
+
title: string;
|
|
41
|
+
description: string;
|
|
42
|
+
image: {
|
|
43
|
+
type: 'image';
|
|
41
44
|
name: string;
|
|
42
45
|
};
|
|
46
|
+
action?: () => void;
|
|
47
|
+
href?: string;
|
|
48
|
+
target?: '_blank' | '_self';
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare interface CardProps {
|
|
52
|
+
imageUrl?: string;
|
|
43
53
|
title: string;
|
|
44
54
|
description: string;
|
|
45
55
|
icon?: React.ComponentType<{
|
|
@@ -61,12 +71,17 @@ declare interface Column {
|
|
|
61
71
|
relation: string;
|
|
62
72
|
cell?: (row: Record<string, unknown>) => React_2.ReactNode;
|
|
63
73
|
isToggle?: boolean;
|
|
74
|
+
sortable?: boolean;
|
|
75
|
+
toggleText?: {
|
|
76
|
+
active: string;
|
|
77
|
+
inactive: string;
|
|
78
|
+
};
|
|
64
79
|
}
|
|
65
80
|
|
|
66
81
|
export declare const Dropzone: React.FC<DropzoneProps>;
|
|
67
82
|
|
|
68
83
|
declare interface DropzoneProps {
|
|
69
|
-
onChange?: (
|
|
84
|
+
onChange?: (files: File[]) => void;
|
|
70
85
|
accept?: FileType | FileType[];
|
|
71
86
|
maxSize?: number;
|
|
72
87
|
multiple?: boolean;
|
|
@@ -108,12 +123,21 @@ declare interface ListFileProps {
|
|
|
108
123
|
}
|
|
109
124
|
|
|
110
125
|
declare interface MenuItem {
|
|
126
|
+
id: string;
|
|
127
|
+
label: string;
|
|
128
|
+
icon: React.ReactNode;
|
|
129
|
+
action?: () => void;
|
|
130
|
+
href?: string;
|
|
131
|
+
target?: '_blank' | '_self';
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
declare interface MenuItem_2 {
|
|
111
135
|
id: string;
|
|
112
136
|
title: string;
|
|
113
137
|
href: string;
|
|
114
138
|
isActive?: boolean;
|
|
115
139
|
icon?: IconType;
|
|
116
|
-
subItems?:
|
|
140
|
+
subItems?: MenuItem_2[];
|
|
117
141
|
}
|
|
118
142
|
|
|
119
143
|
export declare const ModalFormat: ForwardRefExoticComponent<ModalProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -161,7 +185,23 @@ declare interface SelectFormProps extends React.SelectHTMLAttributes<HTMLSelectE
|
|
|
161
185
|
error?: string;
|
|
162
186
|
}
|
|
163
187
|
|
|
164
|
-
export declare const
|
|
188
|
+
export declare const SidebarPro: React.FC<SidebarProProps>;
|
|
189
|
+
|
|
190
|
+
declare interface SidebarProProps {
|
|
191
|
+
logo: {
|
|
192
|
+
src: string;
|
|
193
|
+
alt: string;
|
|
194
|
+
width: number;
|
|
195
|
+
height: number;
|
|
196
|
+
};
|
|
197
|
+
menuItems: MenuItem[];
|
|
198
|
+
campaignCards?: CardItem[];
|
|
199
|
+
onLogout?: () => void;
|
|
200
|
+
defaultCollapsed?: boolean;
|
|
201
|
+
backgroundColor?: string;
|
|
202
|
+
textColor?: string;
|
|
203
|
+
className?: string;
|
|
204
|
+
}
|
|
165
205
|
|
|
166
206
|
export declare const Spinner: ({ description }: SpinnerProps) => JSX_2.Element;
|
|
167
207
|
|
|
@@ -193,7 +233,7 @@ declare interface TableData extends Record<string, unknown> {
|
|
|
193
233
|
export declare const TableOfContents: React.FC<TableOfContentsProps>;
|
|
194
234
|
|
|
195
235
|
declare interface TableOfContentsProps {
|
|
196
|
-
items:
|
|
236
|
+
items: MenuItem_2[];
|
|
197
237
|
}
|
|
198
238
|
|
|
199
239
|
export declare function TabsComponent(): JSX_2.Element;
|