@ballistix.digital/react-components 0.3.0 → 0.3.2
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/README.md +51 -26
- package/dist/index.d.ts +482 -410
- package/dist/index.esm.js +17198 -784
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +17220 -803
- package/dist/index.js.map +1 -1
- package/package.json +43 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,23 @@
|
|
|
1
|
-
import React, { FC, ReactNode, RefObject, ReactElement, Dispatch, SetStateAction
|
|
1
|
+
import React, { FC, ReactNode, RefObject, ReactElement, HTMLInputTypeAttribute, ElementType, Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { DeepPartial as DeepPartial$1 } from 'types/DeepPartial';
|
|
2
3
|
import { Menu } from '@headlessui/react';
|
|
4
|
+
import { IconName } from '@fortawesome/fontawesome-svg-core';
|
|
5
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
6
|
+
import { TButtonElementStyles as TButtonElementStyles$1 } from 'components/Element/Button';
|
|
7
|
+
import { TDropdownElementStyles as TDropdownElementStyles$1 } from 'components/Element/Dropdown';
|
|
8
|
+
import { TPagePaginationNavigationStyles as TPagePaginationNavigationStyles$1 } from 'components/Navigation/PagePagination';
|
|
9
|
+
|
|
10
|
+
declare const base$i: {
|
|
11
|
+
loading: string;
|
|
12
|
+
spinner: string;
|
|
13
|
+
empty: string;
|
|
14
|
+
placeholder: string;
|
|
15
|
+
container: string;
|
|
16
|
+
indicator: string;
|
|
17
|
+
};
|
|
18
|
+
type TAvatarElementStyles = DeepPartial$1<typeof base$i>;
|
|
3
19
|
|
|
4
|
-
type
|
|
5
|
-
loading?: string;
|
|
6
|
-
empty?: string;
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
container?: string;
|
|
9
|
-
indicator?: string;
|
|
10
|
-
spinner?: string;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
interface Props$e {
|
|
20
|
+
type TProps$h = {
|
|
14
21
|
src?: string | undefined;
|
|
15
22
|
placeholder?: string | undefined;
|
|
16
23
|
children?: ReactNode | ReactNode[] | string;
|
|
@@ -20,233 +27,308 @@ interface Props$e {
|
|
|
20
27
|
status?: 'offline' | 'online' | 'blocked';
|
|
21
28
|
isDisabled?: boolean;
|
|
22
29
|
isLoading?: boolean;
|
|
23
|
-
styles?:
|
|
24
|
-
}
|
|
25
|
-
declare const AvatarElement: FC<
|
|
30
|
+
styles?: TAvatarElementStyles;
|
|
31
|
+
};
|
|
32
|
+
declare const AvatarElement: FC<TProps$h>;
|
|
26
33
|
|
|
27
|
-
|
|
28
|
-
container
|
|
29
|
-
|
|
34
|
+
declare const base$h: {
|
|
35
|
+
container: string;
|
|
36
|
+
indicator: string;
|
|
37
|
+
button: string;
|
|
38
|
+
};
|
|
39
|
+
type TBadgeElementStyles = DeepPartial$1<typeof base$h>;
|
|
40
|
+
|
|
41
|
+
type TProps$g = {
|
|
42
|
+
children: string | ReactNode;
|
|
43
|
+
color?: 'gray' | 'red' | 'yellow' | 'green' | 'blue' | 'indigo' | 'purple' | 'pink';
|
|
44
|
+
type?: 'normal' | 'indicator' | 'close';
|
|
45
|
+
size?: 'sm' | 'lg';
|
|
46
|
+
figure?: 'block' | 'rounded';
|
|
47
|
+
isDisabled?: boolean;
|
|
48
|
+
isLoading?: boolean;
|
|
49
|
+
onClose?: () => void;
|
|
50
|
+
styles?: TBadgeElementStyles;
|
|
51
|
+
};
|
|
52
|
+
declare const BadgeElement: FC<TProps$g>;
|
|
53
|
+
|
|
54
|
+
declare const base$g: {
|
|
55
|
+
container: string;
|
|
56
|
+
content: string;
|
|
57
|
+
icon: string;
|
|
58
|
+
spinner: string;
|
|
59
|
+
};
|
|
60
|
+
type TButtonElementStyles = DeepPartial$1<typeof base$g>;
|
|
30
61
|
|
|
31
|
-
|
|
62
|
+
type TProps$f = {
|
|
32
63
|
children: string | ReactNode;
|
|
64
|
+
innerRef?: RefObject<HTMLButtonElement>;
|
|
33
65
|
type?: 'primary' | 'secondary' | 'outline';
|
|
34
66
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
35
67
|
figure?: 'block' | 'rounded';
|
|
36
68
|
status?: 'idle' | 'loading' | 'success' | 'error';
|
|
37
|
-
ref?: RefObject<HTMLButtonElement>;
|
|
38
69
|
isDisabled?: boolean;
|
|
39
|
-
styles?:
|
|
70
|
+
styles?: TButtonElementStyles;
|
|
40
71
|
onClick: () => void;
|
|
41
|
-
}
|
|
42
|
-
declare const ButtonElement: FC<
|
|
43
|
-
|
|
44
|
-
type StylesType$d = {
|
|
45
|
-
container?: string;
|
|
46
|
-
firstButton?: string;
|
|
47
|
-
button?: string;
|
|
48
|
-
lastButton?: string;
|
|
49
|
-
};
|
|
72
|
+
};
|
|
73
|
+
declare const ButtonElement: FC<TProps$f>;
|
|
50
74
|
|
|
51
|
-
|
|
75
|
+
declare const base$f: {
|
|
76
|
+
container: string;
|
|
77
|
+
firstButton: string;
|
|
78
|
+
button: string;
|
|
79
|
+
lastButton: string;
|
|
80
|
+
};
|
|
81
|
+
type TButtonGroupElementStyles = DeepPartial$1<typeof base$f>;
|
|
82
|
+
|
|
83
|
+
type TProps$e = {
|
|
52
84
|
children: ReactElement[];
|
|
53
|
-
styles?:
|
|
54
|
-
}
|
|
55
|
-
declare const ButtonGroupElement: FC<
|
|
56
|
-
|
|
57
|
-
type StylesType$c = {
|
|
58
|
-
container?: string;
|
|
59
|
-
button?: string;
|
|
60
|
-
compact?: string;
|
|
61
|
-
dots?: string;
|
|
62
|
-
items?: string;
|
|
63
|
-
left?: string;
|
|
64
|
-
right?: string;
|
|
65
|
-
};
|
|
85
|
+
styles?: TButtonGroupElementStyles;
|
|
86
|
+
};
|
|
87
|
+
declare const ButtonGroupElement: FC<TProps$e>;
|
|
66
88
|
|
|
67
|
-
|
|
89
|
+
declare const base$e: {
|
|
90
|
+
container: string;
|
|
91
|
+
button: string;
|
|
92
|
+
compact: string;
|
|
93
|
+
dots: string;
|
|
94
|
+
items: string;
|
|
95
|
+
};
|
|
96
|
+
type TDropdownElementStyles = DeepPartial$1<typeof base$e>;
|
|
97
|
+
|
|
98
|
+
type TProps$d = {
|
|
68
99
|
children: ReactElement | ReactElement[];
|
|
69
|
-
label: string;
|
|
100
|
+
label: string | ReactElement;
|
|
70
101
|
type?: 'button' | 'compact';
|
|
71
102
|
direction?: 'left' | 'right';
|
|
72
|
-
styles?:
|
|
73
|
-
}
|
|
103
|
+
styles?: TDropdownElementStyles;
|
|
104
|
+
};
|
|
74
105
|
declare const DropdownElement: {
|
|
75
|
-
Container: FC<
|
|
106
|
+
Container: FC<TProps$d>;
|
|
76
107
|
Item: typeof Menu.Item;
|
|
77
108
|
};
|
|
78
109
|
|
|
79
|
-
type
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
};
|
|
110
|
+
type TProps$c = {
|
|
111
|
+
accessor: IconName;
|
|
112
|
+
type: 'brands' | 'light' | 'regular' | 'solid';
|
|
113
|
+
className?: string;
|
|
114
|
+
};
|
|
115
|
+
declare const IconElement: FC<TProps$c>;
|
|
84
116
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
117
|
+
declare const base$d: {
|
|
118
|
+
container: string;
|
|
119
|
+
head: string;
|
|
120
|
+
body: string;
|
|
121
|
+
foot: string;
|
|
122
|
+
label: string;
|
|
123
|
+
hint: string;
|
|
124
|
+
leading: string;
|
|
125
|
+
input: string;
|
|
126
|
+
trailing: string;
|
|
127
|
+
description: string;
|
|
128
|
+
};
|
|
129
|
+
type TInputGroupStyles = DeepPartial$1<typeof base$d>;
|
|
130
|
+
|
|
131
|
+
type TProps$b = {
|
|
132
|
+
name: string;
|
|
133
|
+
htmlType: HTMLInputTypeAttribute;
|
|
134
|
+
label?: string;
|
|
135
|
+
description?: string;
|
|
136
|
+
placeholder?: string;
|
|
137
|
+
leading?: string;
|
|
138
|
+
trailing?: string;
|
|
139
|
+
value: string;
|
|
140
|
+
type: 'normal' | 'inset' | 'overlapping' | 'pill' | 'floored';
|
|
141
|
+
isValid?: boolean;
|
|
91
142
|
isDisabled?: boolean;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
styles?:
|
|
95
|
-
}
|
|
96
|
-
declare const
|
|
143
|
+
isRequired?: boolean;
|
|
144
|
+
onChange: any;
|
|
145
|
+
styles?: TInputGroupStyles;
|
|
146
|
+
};
|
|
147
|
+
declare const InputGroupForm: FC<TProps$b>;
|
|
97
148
|
|
|
98
|
-
|
|
99
|
-
container
|
|
100
|
-
content
|
|
101
|
-
};
|
|
149
|
+
declare const base$c: {
|
|
150
|
+
container: string;
|
|
151
|
+
content: string;
|
|
152
|
+
};
|
|
153
|
+
type TContainerLayoutStyles = DeepPartial$1<typeof base$c>;
|
|
102
154
|
|
|
103
|
-
|
|
155
|
+
type TProps$a = {
|
|
104
156
|
children: ReactNode;
|
|
105
157
|
type?: 'break' | 'center' | 'fill';
|
|
106
|
-
styles?:
|
|
107
|
-
}
|
|
108
|
-
declare const ContainerLayout: FC<
|
|
109
|
-
|
|
110
|
-
type StylesType$9 = {
|
|
111
|
-
container?: string;
|
|
112
|
-
head?: string;
|
|
113
|
-
line?: string;
|
|
114
|
-
body?: string;
|
|
115
|
-
content?: string;
|
|
116
|
-
};
|
|
158
|
+
styles?: TContainerLayoutStyles;
|
|
159
|
+
};
|
|
160
|
+
declare const ContainerLayout: FC<TProps$a>;
|
|
117
161
|
|
|
118
|
-
|
|
119
|
-
|
|
162
|
+
declare const base$b: {
|
|
163
|
+
container: string;
|
|
164
|
+
head: string;
|
|
165
|
+
line: string;
|
|
166
|
+
body: string;
|
|
167
|
+
content: string;
|
|
168
|
+
};
|
|
169
|
+
type TDividerLayoutStyles = DeepPartial$1<typeof base$b>;
|
|
170
|
+
|
|
171
|
+
type TProps$9 = {
|
|
172
|
+
children?: ReactNode;
|
|
120
173
|
type?: 'left' | 'center' | 'right';
|
|
121
|
-
styles?:
|
|
122
|
-
}
|
|
123
|
-
declare const DividerLayout: FC<
|
|
174
|
+
styles?: TDividerLayoutStyles;
|
|
175
|
+
};
|
|
176
|
+
declare const DividerLayout: FC<TProps$9>;
|
|
124
177
|
|
|
125
|
-
|
|
126
|
-
container
|
|
127
|
-
list
|
|
128
|
-
item
|
|
129
|
-
};
|
|
178
|
+
declare const base$a: {
|
|
179
|
+
container: string;
|
|
180
|
+
list: string;
|
|
181
|
+
item: string;
|
|
182
|
+
};
|
|
183
|
+
type TListContainerLayoutStyles = DeepPartial$1<typeof base$a>;
|
|
130
184
|
|
|
131
|
-
|
|
185
|
+
type TProps$8 = {
|
|
132
186
|
children: ReactElement | ReactElement[];
|
|
133
187
|
type?: 'fill' | 'fill-sticky' | 'center' | 'center-sticky' | 'card' | 'card-sticky';
|
|
134
|
-
styles?:
|
|
135
|
-
}
|
|
136
|
-
declare const ListContainerLayout: FC<
|
|
137
|
-
|
|
138
|
-
type StylesType$7 = {
|
|
139
|
-
container?: string;
|
|
140
|
-
figure?: string;
|
|
141
|
-
svg?: string;
|
|
142
|
-
title?: string;
|
|
143
|
-
paragraph?: string;
|
|
144
|
-
};
|
|
188
|
+
styles?: TListContainerLayoutStyles;
|
|
189
|
+
};
|
|
190
|
+
declare const ListContainerLayout: FC<TProps$8>;
|
|
145
191
|
|
|
146
|
-
|
|
192
|
+
declare const base$9: {
|
|
193
|
+
container: string;
|
|
194
|
+
figure: string;
|
|
195
|
+
svg: string;
|
|
196
|
+
title: string;
|
|
197
|
+
paragraph: string;
|
|
198
|
+
};
|
|
199
|
+
type TMediaObjectLayoutStyles = DeepPartial$1<typeof base$9>;
|
|
200
|
+
|
|
201
|
+
type TProps$7 = {
|
|
147
202
|
title: string;
|
|
148
203
|
paragraph: string;
|
|
149
204
|
figure?: ReactNode;
|
|
150
205
|
type?: 'top' | 'top-reversed' | 'center' | 'center-reversed' | 'bottom' | 'bottom-reversed' | 'stretch' | 'stretch-reversed' | 'responsive' | 'responsive-reversed' | 'wide' | 'wide-reversed';
|
|
151
|
-
styles?:
|
|
152
|
-
}
|
|
153
|
-
declare const MediaObjectLayout: FC<
|
|
206
|
+
styles?: TMediaObjectLayoutStyles;
|
|
207
|
+
};
|
|
208
|
+
declare const MediaObjectLayout: FC<TProps$7>;
|
|
154
209
|
|
|
155
|
-
|
|
156
|
-
container
|
|
157
|
-
section
|
|
158
|
-
};
|
|
210
|
+
declare const base$8: {
|
|
211
|
+
container: string;
|
|
212
|
+
section: string;
|
|
213
|
+
};
|
|
214
|
+
type TPanelLayoutStyles = DeepPartial$1<typeof base$8>;
|
|
159
215
|
|
|
160
|
-
|
|
216
|
+
type TContainerProps$2 = {
|
|
161
217
|
children: ReactNode;
|
|
162
218
|
type?: 'normal' | 'sticky';
|
|
163
|
-
styles?:
|
|
164
|
-
}
|
|
165
|
-
|
|
219
|
+
styles?: TPanelLayoutStyles;
|
|
220
|
+
};
|
|
221
|
+
type THeadProps = {
|
|
166
222
|
children: ReactNode;
|
|
167
|
-
styles?:
|
|
168
|
-
}
|
|
223
|
+
styles?: TPanelLayoutStyles;
|
|
224
|
+
};
|
|
169
225
|
declare const LayoutPanel: {
|
|
170
|
-
Container: React.FC<
|
|
171
|
-
Section: React.FC<
|
|
226
|
+
Container: React.FC<TContainerProps$2>;
|
|
227
|
+
Section: React.FC<THeadProps>;
|
|
172
228
|
};
|
|
173
229
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
link?: string;
|
|
183
|
-
icon?: string;
|
|
184
|
-
span?: string;
|
|
185
|
-
};
|
|
186
|
-
page?: {
|
|
187
|
-
container?: string;
|
|
188
|
-
content?: string;
|
|
189
|
-
link?: string;
|
|
190
|
-
span?: string;
|
|
191
|
-
};
|
|
230
|
+
declare const base$7: {
|
|
231
|
+
container: string;
|
|
232
|
+
head: {
|
|
233
|
+
container: string;
|
|
234
|
+
head: string;
|
|
235
|
+
body: string;
|
|
236
|
+
heading: string;
|
|
237
|
+
paragraph: string;
|
|
192
238
|
};
|
|
193
|
-
|
|
194
|
-
container
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
239
|
+
body: {
|
|
240
|
+
container: string;
|
|
241
|
+
wrapper: string;
|
|
242
|
+
content: string;
|
|
243
|
+
styleWrapper: string;
|
|
244
|
+
table: {
|
|
245
|
+
container: string;
|
|
246
|
+
head: {
|
|
247
|
+
container: string;
|
|
248
|
+
row: string;
|
|
249
|
+
cell: string;
|
|
250
|
+
checkbox: string;
|
|
251
|
+
};
|
|
252
|
+
body: {
|
|
253
|
+
container: string;
|
|
254
|
+
row: string;
|
|
255
|
+
cell: string;
|
|
256
|
+
checkbox: string;
|
|
257
|
+
indicator: string;
|
|
258
|
+
};
|
|
209
259
|
};
|
|
210
260
|
};
|
|
211
|
-
|
|
212
|
-
container
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
container
|
|
217
|
-
content?: string;
|
|
218
|
-
link?: string;
|
|
219
|
-
icon?: string;
|
|
220
|
-
span?: string;
|
|
221
|
-
};
|
|
222
|
-
page?: {
|
|
223
|
-
container?: string;
|
|
224
|
-
content?: string;
|
|
225
|
-
link?: string;
|
|
226
|
-
span?: string;
|
|
261
|
+
sortIndicator: {
|
|
262
|
+
container: string;
|
|
263
|
+
isSorted: string;
|
|
264
|
+
isNotSorted: string;
|
|
265
|
+
icon: {
|
|
266
|
+
container: string;
|
|
227
267
|
};
|
|
228
268
|
};
|
|
229
|
-
|
|
230
|
-
container
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
269
|
+
controls: {
|
|
270
|
+
container: string;
|
|
271
|
+
content: string;
|
|
272
|
+
dropdown: {
|
|
273
|
+
container: string;
|
|
274
|
+
input: string;
|
|
275
|
+
label: string;
|
|
276
|
+
actions: string;
|
|
277
|
+
upIcon: string;
|
|
278
|
+
downIcon: string;
|
|
239
279
|
};
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
type TTableListStyles = DeepPartial$1<typeof base$7>;
|
|
283
|
+
|
|
284
|
+
type TData = any;
|
|
285
|
+
type TProps$6<TData> = {
|
|
286
|
+
id: string;
|
|
287
|
+
columns: ColumnDef<TData>[];
|
|
288
|
+
data: TData[];
|
|
289
|
+
page: {
|
|
290
|
+
total: number;
|
|
291
|
+
};
|
|
292
|
+
children: ({ min, max, current, }: {
|
|
293
|
+
min: number;
|
|
294
|
+
max: number;
|
|
295
|
+
current: number;
|
|
296
|
+
}) => ReactNode;
|
|
297
|
+
type?: 'normal' | 'panel' | 'full';
|
|
298
|
+
isStriped?: boolean;
|
|
299
|
+
hasStickyHeader?: boolean;
|
|
300
|
+
hasVerticalSeparators?: boolean;
|
|
301
|
+
areControlsVisible?: boolean;
|
|
302
|
+
styles?: TTableListStyles & {
|
|
303
|
+
components: {
|
|
304
|
+
buttonElement: TButtonElementStyles$1;
|
|
305
|
+
dropdownElement: TDropdownElementStyles$1;
|
|
306
|
+
panelPaginationNavigation: TPagePaginationNavigationStyles$1;
|
|
245
307
|
};
|
|
246
308
|
};
|
|
247
|
-
};
|
|
309
|
+
};
|
|
310
|
+
declare const TableList: FC<TProps$6<TData>>;
|
|
248
311
|
|
|
249
|
-
|
|
312
|
+
declare const base$6: {
|
|
313
|
+
container: string;
|
|
314
|
+
list: string;
|
|
315
|
+
separator: string;
|
|
316
|
+
home: {
|
|
317
|
+
container: string;
|
|
318
|
+
content: string;
|
|
319
|
+
link: string;
|
|
320
|
+
icon: string;
|
|
321
|
+
span: string;
|
|
322
|
+
};
|
|
323
|
+
page: {
|
|
324
|
+
container: string;
|
|
325
|
+
content: string;
|
|
326
|
+
link: string;
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
type TBreadcrumbsNavigationStyles = DeepPartial$1<typeof base$6>;
|
|
330
|
+
|
|
331
|
+
type TProps$5 = {
|
|
250
332
|
href: string;
|
|
251
333
|
pages: {
|
|
252
334
|
name: string;
|
|
@@ -255,33 +337,34 @@ interface Props$5 {
|
|
|
255
337
|
}[];
|
|
256
338
|
type?: 'slashes' | 'chevrons' | 'panel' | 'bar';
|
|
257
339
|
separator?: ReactNode;
|
|
258
|
-
styles?:
|
|
259
|
-
}
|
|
260
|
-
declare const BreadcrumbsNavigation: FC<
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
container
|
|
264
|
-
mobile
|
|
265
|
-
container
|
|
266
|
-
button
|
|
340
|
+
styles?: TBreadcrumbsNavigationStyles;
|
|
341
|
+
};
|
|
342
|
+
declare const BreadcrumbsNavigation: FC<TProps$5>;
|
|
343
|
+
|
|
344
|
+
declare const base$5: {
|
|
345
|
+
container: string;
|
|
346
|
+
mobile: {
|
|
347
|
+
container: string;
|
|
348
|
+
button: string;
|
|
267
349
|
};
|
|
268
|
-
desktop
|
|
269
|
-
container
|
|
270
|
-
leftButton
|
|
271
|
-
rightButton
|
|
272
|
-
navigation
|
|
350
|
+
desktop: {
|
|
351
|
+
container: string;
|
|
352
|
+
leftButton: string;
|
|
353
|
+
rightButton: string;
|
|
354
|
+
navigation: string;
|
|
273
355
|
};
|
|
274
|
-
button
|
|
275
|
-
default
|
|
276
|
-
active
|
|
277
|
-
disabled
|
|
356
|
+
button: {
|
|
357
|
+
default: string;
|
|
358
|
+
active: string;
|
|
359
|
+
disabled: string;
|
|
278
360
|
};
|
|
279
|
-
divider
|
|
361
|
+
divider: string;
|
|
280
362
|
label: string;
|
|
281
363
|
icon: string;
|
|
282
|
-
};
|
|
364
|
+
};
|
|
365
|
+
type TPanelPaginationNavigationStyles = DeepPartial$1<typeof base$5>;
|
|
283
366
|
|
|
284
|
-
|
|
367
|
+
type TProps$4 = {
|
|
285
368
|
min?: number;
|
|
286
369
|
max: number;
|
|
287
370
|
children: ({ min, max, current, }: {
|
|
@@ -289,125 +372,94 @@ interface Props$4 {
|
|
|
289
372
|
max: number;
|
|
290
373
|
current: number;
|
|
291
374
|
}) => ReactNode;
|
|
292
|
-
styles?:
|
|
375
|
+
styles?: TPanelPaginationNavigationStyles;
|
|
293
376
|
onChange?: (current: number) => void;
|
|
294
|
-
}
|
|
295
|
-
declare const PanelPaginationNavigation: React.FC<
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
container
|
|
299
|
-
left
|
|
300
|
-
container
|
|
301
|
-
button
|
|
302
|
-
icon
|
|
377
|
+
};
|
|
378
|
+
declare const PanelPaginationNavigation: React.FC<TProps$4>;
|
|
379
|
+
|
|
380
|
+
declare const base$4: {
|
|
381
|
+
container: string;
|
|
382
|
+
left: {
|
|
383
|
+
container: string;
|
|
384
|
+
button: string;
|
|
385
|
+
icon: string;
|
|
303
386
|
};
|
|
304
|
-
center
|
|
305
|
-
container
|
|
387
|
+
center: {
|
|
388
|
+
container: string;
|
|
306
389
|
};
|
|
307
|
-
right
|
|
308
|
-
container
|
|
309
|
-
button
|
|
310
|
-
icon
|
|
390
|
+
right: {
|
|
391
|
+
container: string;
|
|
392
|
+
button: string;
|
|
393
|
+
icon: string;
|
|
311
394
|
};
|
|
312
|
-
button
|
|
313
|
-
default
|
|
314
|
-
active
|
|
315
|
-
disabled
|
|
395
|
+
button: {
|
|
396
|
+
default: string;
|
|
397
|
+
active: string;
|
|
398
|
+
disabled: string;
|
|
316
399
|
};
|
|
317
|
-
divider
|
|
318
|
-
};
|
|
400
|
+
divider: string;
|
|
401
|
+
};
|
|
402
|
+
type TPagePaginationNavigationStyles = DeepPartial$1<typeof base$4>;
|
|
319
403
|
|
|
320
|
-
|
|
404
|
+
type TProps$3 = {
|
|
321
405
|
min?: number;
|
|
322
406
|
max: number;
|
|
323
|
-
styles?:
|
|
407
|
+
styles?: TPagePaginationNavigationStyles;
|
|
324
408
|
onChange?: (current: number) => void;
|
|
325
|
-
}
|
|
326
|
-
declare const PagePaginationNavigation: React.FC<Props$3>;
|
|
327
|
-
|
|
328
|
-
type ContainerStylesType$2 = {
|
|
329
|
-
root?: string;
|
|
330
|
-
panel?: string;
|
|
331
|
-
container?: string;
|
|
332
|
-
content?: string;
|
|
333
409
|
};
|
|
334
|
-
|
|
335
|
-
list?: string;
|
|
336
|
-
};
|
|
337
|
-
|
|
338
|
-
interface ContainerProps$2 {
|
|
339
|
-
children: ({ active, setActive, }: {
|
|
340
|
-
active: string;
|
|
341
|
-
setActive: Dispatch<SetStateAction<string>>;
|
|
342
|
-
}) => ReactNode;
|
|
343
|
-
styles?: ContainerStylesType$2;
|
|
344
|
-
}
|
|
345
|
-
interface ListProps {
|
|
346
|
-
children: ReactElement;
|
|
347
|
-
active: string;
|
|
348
|
-
setActive: Dispatch<SetStateAction<string>>;
|
|
349
|
-
styles?: NavigationStylesType$2;
|
|
350
|
-
}
|
|
351
|
-
interface ItemProps {
|
|
352
|
-
accessor: string;
|
|
353
|
-
href?: string;
|
|
354
|
-
type?: string;
|
|
355
|
-
children: ReactNode;
|
|
356
|
-
linkComponent?: ElementType;
|
|
357
|
-
isCurrent?: boolean;
|
|
358
|
-
isInitial?: boolean;
|
|
359
|
-
onClick?: (accessor: MouseEvent) => void;
|
|
360
|
-
}
|
|
361
|
-
interface FooterProps {
|
|
362
|
-
children: ReactNode | ReactNode[];
|
|
363
|
-
styles?: NavigationStylesType$2;
|
|
364
|
-
}
|
|
365
|
-
declare const SidebarNavigation: {
|
|
366
|
-
Container: React.FC<ContainerProps$2>;
|
|
367
|
-
List: React.FC<ListProps>;
|
|
368
|
-
Item: React.FC<ItemProps>;
|
|
369
|
-
Footer: React.FC<FooterProps>;
|
|
370
|
-
};
|
|
410
|
+
declare const PagePaginationNavigation: React.FC<TProps$3>;
|
|
371
411
|
|
|
372
|
-
|
|
412
|
+
declare const base$3: {
|
|
373
413
|
container: string;
|
|
414
|
+
list: {
|
|
415
|
+
container: string;
|
|
416
|
+
head: string;
|
|
417
|
+
body: string;
|
|
418
|
+
label: string;
|
|
419
|
+
select: string;
|
|
420
|
+
navigation: string;
|
|
421
|
+
};
|
|
422
|
+
tab: {
|
|
423
|
+
base: string;
|
|
424
|
+
active: string;
|
|
425
|
+
inactive: string;
|
|
426
|
+
};
|
|
374
427
|
};
|
|
375
|
-
type
|
|
376
|
-
select?: string;
|
|
377
|
-
navigation?: string;
|
|
378
|
-
};
|
|
428
|
+
type TTabNavigationStyles = DeepPartial$1<typeof base$3>;
|
|
379
429
|
|
|
380
|
-
|
|
430
|
+
type TContainerProps$1 = {
|
|
381
431
|
children: ({ active, setActive, }: {
|
|
382
432
|
active: string;
|
|
383
|
-
setActive:
|
|
384
|
-
}) => ReactNode;
|
|
385
|
-
styles?:
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
|
|
433
|
+
setActive: any;
|
|
434
|
+
}) => ReactNode | ReactNode[];
|
|
435
|
+
styles?: Pick<TTabNavigationStyles, 'container'>;
|
|
436
|
+
};
|
|
437
|
+
type TListProps = {
|
|
438
|
+
name: string;
|
|
439
|
+
children: ReactNode | ReactNode[];
|
|
389
440
|
active: string;
|
|
390
|
-
setActive:
|
|
391
|
-
styles?:
|
|
392
|
-
}
|
|
393
|
-
|
|
441
|
+
setActive: any;
|
|
442
|
+
styles?: Pick<TTabNavigationStyles, 'list'>;
|
|
443
|
+
};
|
|
444
|
+
type TNavigationItemProps$1 = {
|
|
394
445
|
accessor: string;
|
|
395
446
|
href?: string;
|
|
396
447
|
type?: 'underline' | 'pills' | 'buttons';
|
|
397
448
|
children: ReactNode;
|
|
398
|
-
|
|
449
|
+
as?: ElementType;
|
|
399
450
|
isCurrent?: boolean;
|
|
400
451
|
isInitial?: boolean;
|
|
401
452
|
onClick?: (accessor: MouseEvent) => void;
|
|
402
|
-
|
|
403
|
-
|
|
453
|
+
styles?: Pick<TTabNavigationStyles, 'tab'>;
|
|
454
|
+
};
|
|
455
|
+
type TViewProps$1 = {
|
|
404
456
|
children: ReactNode;
|
|
405
|
-
}
|
|
457
|
+
};
|
|
406
458
|
declare const TabNavigation: {
|
|
407
|
-
Container: React.FC<
|
|
408
|
-
List: React.FC<
|
|
409
|
-
Item: React.FC<
|
|
410
|
-
View: React.FC<
|
|
459
|
+
Container: React.FC<TContainerProps$1>;
|
|
460
|
+
List: React.FC<TListProps>;
|
|
461
|
+
Item: React.FC<TNavigationItemProps$1>;
|
|
462
|
+
View: React.FC<TViewProps$1>;
|
|
411
463
|
};
|
|
412
464
|
|
|
413
465
|
type ContainerStylesType = {
|
|
@@ -417,70 +469,71 @@ type NavigationStylesType = {
|
|
|
417
469
|
list?: string;
|
|
418
470
|
};
|
|
419
471
|
|
|
420
|
-
|
|
472
|
+
type TContainerProps = {
|
|
421
473
|
children: ({ active, setActive, }: {
|
|
422
474
|
active: string;
|
|
423
475
|
setActive: Dispatch<SetStateAction<string>>;
|
|
424
|
-
}) => ReactNode;
|
|
476
|
+
}) => ReactNode | ReactNode[];
|
|
425
477
|
styles?: ContainerStylesType;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
children:
|
|
478
|
+
};
|
|
479
|
+
type TNavigationProps = {
|
|
480
|
+
children: ReactNode | ReactNode[];
|
|
429
481
|
active: string;
|
|
430
482
|
setActive: Dispatch<SetStateAction<string>>;
|
|
431
483
|
styles?: NavigationStylesType;
|
|
432
|
-
}
|
|
433
|
-
|
|
484
|
+
};
|
|
485
|
+
type TNavigationItemProps = {
|
|
434
486
|
accessor: string;
|
|
435
487
|
href?: string;
|
|
436
488
|
type?: string;
|
|
437
|
-
children: ReactNode;
|
|
489
|
+
children: ReactNode | ReactNode[];
|
|
438
490
|
linkComponent?: ElementType;
|
|
439
491
|
isCurrent?: boolean;
|
|
440
492
|
isInitial?: boolean;
|
|
441
493
|
onClick?: (accessor: MouseEvent) => void;
|
|
442
|
-
}
|
|
443
|
-
|
|
494
|
+
};
|
|
495
|
+
type TViewProps = {
|
|
444
496
|
children: ReactNode;
|
|
445
|
-
}
|
|
497
|
+
};
|
|
446
498
|
declare const VerticalNavigation: {
|
|
447
|
-
Container: React.FC<
|
|
448
|
-
List: React.FC<
|
|
449
|
-
Item: React.FC<
|
|
450
|
-
View: React.FC<
|
|
499
|
+
Container: React.FC<TContainerProps>;
|
|
500
|
+
List: React.FC<TNavigationProps>;
|
|
501
|
+
Item: React.FC<TNavigationItemProps>;
|
|
502
|
+
View: React.FC<TViewProps>;
|
|
451
503
|
};
|
|
452
504
|
|
|
453
|
-
|
|
454
|
-
container
|
|
455
|
-
background
|
|
456
|
-
container
|
|
457
|
-
transition
|
|
458
|
-
enter
|
|
459
|
-
enterFrom
|
|
460
|
-
enterTo
|
|
461
|
-
leave
|
|
462
|
-
leaveFrom
|
|
463
|
-
leaveTo
|
|
505
|
+
declare const base$2: {
|
|
506
|
+
container: string;
|
|
507
|
+
background: {
|
|
508
|
+
container: string;
|
|
509
|
+
transition: {
|
|
510
|
+
enter: string;
|
|
511
|
+
enterFrom: string;
|
|
512
|
+
enterTo: string;
|
|
513
|
+
leave: string;
|
|
514
|
+
leaveFrom: string;
|
|
515
|
+
leaveTo: string;
|
|
464
516
|
};
|
|
465
517
|
};
|
|
466
|
-
layout
|
|
467
|
-
container
|
|
468
|
-
content
|
|
518
|
+
layout: {
|
|
519
|
+
container: string;
|
|
520
|
+
content: string;
|
|
469
521
|
};
|
|
470
|
-
panel
|
|
471
|
-
container
|
|
472
|
-
transition
|
|
473
|
-
enter
|
|
474
|
-
enterFrom
|
|
475
|
-
enterTo
|
|
476
|
-
leave
|
|
477
|
-
leaveFrom
|
|
478
|
-
leaveTo
|
|
522
|
+
panel: {
|
|
523
|
+
container: string;
|
|
524
|
+
transition: {
|
|
525
|
+
enter: string;
|
|
526
|
+
enterFrom: string;
|
|
527
|
+
enterTo: string;
|
|
528
|
+
leave: string;
|
|
529
|
+
leaveFrom: string;
|
|
530
|
+
leaveTo: string;
|
|
479
531
|
};
|
|
480
532
|
};
|
|
481
|
-
};
|
|
533
|
+
};
|
|
534
|
+
type TModalOverlayStyles = DeepPartial$1<typeof base$2>;
|
|
482
535
|
|
|
483
|
-
|
|
536
|
+
type TProps$2 = {
|
|
484
537
|
trigger?: ({ onOpen, onClose, }: {
|
|
485
538
|
onOpen: () => void;
|
|
486
539
|
onClose: () => void;
|
|
@@ -490,48 +543,42 @@ interface Props$2 {
|
|
|
490
543
|
onClose: () => void;
|
|
491
544
|
}) => ReactNode;
|
|
492
545
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
493
|
-
styles?:
|
|
494
|
-
}
|
|
495
|
-
declare const ModalOverlay: FC<
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
container
|
|
499
|
-
outer
|
|
500
|
-
inner
|
|
546
|
+
styles?: TModalOverlayStyles;
|
|
547
|
+
};
|
|
548
|
+
declare const ModalOverlay: FC<TProps$2>;
|
|
549
|
+
|
|
550
|
+
declare const base$1: {
|
|
551
|
+
container: {
|
|
552
|
+
outer: string;
|
|
553
|
+
inner: string;
|
|
501
554
|
};
|
|
502
|
-
item
|
|
503
|
-
container
|
|
504
|
-
|
|
505
|
-
container
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
enterFrom?: string;
|
|
509
|
-
enterTo?: string;
|
|
510
|
-
leave?: string;
|
|
511
|
-
leaveFrom?: string;
|
|
512
|
-
leaveTo?: string;
|
|
513
|
-
};
|
|
555
|
+
item: {
|
|
556
|
+
container: string;
|
|
557
|
+
layout: {
|
|
558
|
+
container: string;
|
|
559
|
+
content: string;
|
|
560
|
+
inner: string;
|
|
514
561
|
};
|
|
515
|
-
|
|
516
|
-
container
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
enterFrom?: string;
|
|
525
|
-
enterTo?: string;
|
|
526
|
-
leave?: string;
|
|
527
|
-
leaveFrom?: string;
|
|
528
|
-
leaveTo?: string;
|
|
562
|
+
panel: {
|
|
563
|
+
container: string;
|
|
564
|
+
transition: {
|
|
565
|
+
enter: string;
|
|
566
|
+
enterFrom: string;
|
|
567
|
+
enterTo: string;
|
|
568
|
+
leave: string;
|
|
569
|
+
leaveFrom: string;
|
|
570
|
+
leaveTo: string;
|
|
529
571
|
};
|
|
530
572
|
};
|
|
531
573
|
};
|
|
574
|
+
};
|
|
575
|
+
type TNotificationOverlayStyles = DeepPartial$1<typeof base$1>;
|
|
576
|
+
|
|
577
|
+
type DeepPartial<T> = {
|
|
578
|
+
[P in keyof T]?: DeepPartial<T[P]>;
|
|
532
579
|
};
|
|
533
580
|
|
|
534
|
-
|
|
581
|
+
type TProps$1 = {
|
|
535
582
|
trigger?: ({ onOpen, onClose, }: {
|
|
536
583
|
onOpen: () => void;
|
|
537
584
|
onClose: () => void;
|
|
@@ -541,48 +588,73 @@ interface Props$1 {
|
|
|
541
588
|
onClose: () => void;
|
|
542
589
|
}) => ReactNode;
|
|
543
590
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
544
|
-
styles?:
|
|
545
|
-
}
|
|
546
|
-
declare const
|
|
591
|
+
styles?: TNotificationOverlayStyles;
|
|
592
|
+
};
|
|
593
|
+
declare const NotificationOverlay: {
|
|
547
594
|
Container: ({ children, styles: stylesOverrides, }: {
|
|
548
|
-
children:
|
|
549
|
-
styles?:
|
|
595
|
+
children: ReactNode;
|
|
596
|
+
styles?: DeepPartial<{
|
|
597
|
+
container: {
|
|
598
|
+
outer: string;
|
|
599
|
+
inner: string;
|
|
600
|
+
};
|
|
601
|
+
item: {
|
|
602
|
+
container: string;
|
|
603
|
+
layout: {
|
|
604
|
+
container: string;
|
|
605
|
+
content: string;
|
|
606
|
+
inner: string;
|
|
607
|
+
};
|
|
608
|
+
panel: {
|
|
609
|
+
container: string;
|
|
610
|
+
transition: {
|
|
611
|
+
enter: string;
|
|
612
|
+
enterFrom: string;
|
|
613
|
+
enterTo: string;
|
|
614
|
+
leave: string;
|
|
615
|
+
leaveFrom: string;
|
|
616
|
+
leaveTo: string;
|
|
617
|
+
};
|
|
618
|
+
};
|
|
619
|
+
};
|
|
620
|
+
}> | undefined;
|
|
550
621
|
}) => JSX.Element;
|
|
551
|
-
Item: React.FC<
|
|
622
|
+
Item: React.FC<TProps$1>;
|
|
552
623
|
};
|
|
553
624
|
|
|
554
|
-
|
|
555
|
-
container
|
|
556
|
-
background
|
|
557
|
-
container
|
|
558
|
-
transition
|
|
559
|
-
enter
|
|
560
|
-
enterFrom
|
|
561
|
-
enterTo
|
|
562
|
-
leave
|
|
563
|
-
leaveFrom
|
|
564
|
-
leaveTo
|
|
625
|
+
declare const base: {
|
|
626
|
+
container: string;
|
|
627
|
+
background: {
|
|
628
|
+
container: string;
|
|
629
|
+
transition: {
|
|
630
|
+
enter: string;
|
|
631
|
+
enterFrom: string;
|
|
632
|
+
enterTo: string;
|
|
633
|
+
leave: string;
|
|
634
|
+
leaveFrom: string;
|
|
635
|
+
leaveTo: string;
|
|
565
636
|
};
|
|
566
637
|
};
|
|
567
|
-
layout
|
|
568
|
-
container
|
|
569
|
-
content
|
|
570
|
-
inner
|
|
638
|
+
layout: {
|
|
639
|
+
container: string;
|
|
640
|
+
content: string;
|
|
641
|
+
inner: string;
|
|
571
642
|
};
|
|
572
|
-
panel
|
|
573
|
-
container
|
|
574
|
-
transition
|
|
575
|
-
enter
|
|
576
|
-
enterFrom
|
|
577
|
-
enterTo
|
|
578
|
-
leave
|
|
579
|
-
leaveFrom
|
|
580
|
-
leaveTo
|
|
643
|
+
panel: {
|
|
644
|
+
container: string;
|
|
645
|
+
transition: {
|
|
646
|
+
enter: string;
|
|
647
|
+
enterFrom: string;
|
|
648
|
+
enterTo: string;
|
|
649
|
+
leave: string;
|
|
650
|
+
leaveFrom: string;
|
|
651
|
+
leaveTo: string;
|
|
581
652
|
};
|
|
582
653
|
};
|
|
583
|
-
};
|
|
654
|
+
};
|
|
655
|
+
type TSlideOverOverlayStyles = DeepPartial$1<typeof base>;
|
|
584
656
|
|
|
585
|
-
|
|
657
|
+
type TProps = {
|
|
586
658
|
trigger?: ({ onOpen, onClose, }: {
|
|
587
659
|
onOpen: () => void;
|
|
588
660
|
onClose: () => void;
|
|
@@ -592,8 +664,8 @@ interface Props {
|
|
|
592
664
|
onClose: () => void;
|
|
593
665
|
}) => ReactNode;
|
|
594
666
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
595
|
-
styles?:
|
|
596
|
-
}
|
|
597
|
-
declare const SlideOverOverlay: FC<
|
|
667
|
+
styles?: TSlideOverOverlayStyles;
|
|
668
|
+
};
|
|
669
|
+
declare const SlideOverOverlay: FC<TProps>;
|
|
598
670
|
|
|
599
|
-
export { AvatarElement
|
|
671
|
+
export { AvatarElement, BadgeElement, BreadcrumbsNavigation, ButtonElement, ButtonGroupElement, ContainerLayout, DividerLayout, DropdownElement, IconElement, InputGroupForm, ListContainerLayout, MediaObjectLayout, ModalOverlay, NotificationOverlay, PagePaginationNavigation, LayoutPanel as PanelLayout, PanelPaginationNavigation, SlideOverOverlay, TabNavigation, TableList, VerticalNavigation };
|