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