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