@ballistix.digital/react-components 4.4.2 → 4.5.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/dist/index.d.ts +511 -578
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +5898 -14516
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5969 -14580
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +34 -84
- package/dist/lib/tsconfig.tsbuildinfo +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import React, { FC, ReactNode, RefObject, MouseEvent
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import React, { FC, ReactNode, RefObject, MouseEvent, ReactElement, ChangeEventHandler, FocusEventHandler, HTMLInputTypeAttribute, KeyboardEventHandler, MouseEventHandler, MutableRefObject, ChangeEvent, Dispatch, SetStateAction, ElementType } from "react";
|
|
2
|
+
import { IconName } from "@fortawesome/fontawesome-svg-core";
|
|
3
|
+
import { Placement } from "@floating-ui/react";
|
|
4
|
+
import { Menu } from "@headlessui/react";
|
|
5
|
+
import { AnchorProps } from "@headlessui/react/dist/internal/floating";
|
|
6
|
+
import { Option, SelectValue } from "react-tailwindcss-select/dist/components/type";
|
|
7
|
+
import { Table, ColumnDef, ColumnOrderState, SortingState, Row } from "@tanstack/react-table";
|
|
8
|
+
import { DragEndEvent } from "@dnd-kit/core";
|
|
9
|
+
import { FormikProps, FormikValues, FormikContextType } from "formik";
|
|
10
|
+
type TSelectMenuOption = {
|
|
11
|
+
label: string;
|
|
12
|
+
value: string;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export const fromSelectMenuOptionToStringValue: (value: TSelectMenuOption | TSelectMenuOption[]) => string | string[] | null;
|
|
16
|
+
type DeepPartialType<T> = {
|
|
17
|
+
[P in keyof T]?: DeepPartialType<T[P]>;
|
|
18
|
+
};
|
|
19
|
+
declare const base: {
|
|
19
20
|
loading: string;
|
|
20
21
|
spinner: string;
|
|
21
22
|
empty: string;
|
|
@@ -23,9 +24,8 @@ declare const base$s: {
|
|
|
23
24
|
container: string;
|
|
24
25
|
indicator: string;
|
|
25
26
|
};
|
|
26
|
-
type TAvatarElementStyles = DeepPartialType<typeof base
|
|
27
|
-
|
|
28
|
-
type TProps$h = {
|
|
27
|
+
type TAvatarElementStyles = DeepPartialType<typeof base>;
|
|
28
|
+
type TAvatarElementProps = {
|
|
29
29
|
src?: string | undefined;
|
|
30
30
|
placeholder?: string | undefined;
|
|
31
31
|
children?: ReactNode | ReactNode[] | string;
|
|
@@ -37,13 +37,19 @@ type TProps$h = {
|
|
|
37
37
|
isLoading?: boolean;
|
|
38
38
|
styles?: TAvatarElementStyles;
|
|
39
39
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
export const AvatarElement: FC<TAvatarElementProps>;
|
|
41
|
+
type TProps = {
|
|
42
|
+
accessor: IconName;
|
|
43
|
+
type?: 'brands' | 'light' | 'regular' | 'solid' | 'thin';
|
|
44
|
+
className?: string;
|
|
45
|
+
};
|
|
46
|
+
export const IconElement: FC<TProps>;
|
|
47
|
+
declare const _base1: {
|
|
43
48
|
container: string;
|
|
44
49
|
icon: string;
|
|
45
50
|
content: {
|
|
46
51
|
container: string;
|
|
52
|
+
iconContainer: string;
|
|
47
53
|
title: string;
|
|
48
54
|
message: string;
|
|
49
55
|
actions: string;
|
|
@@ -51,9 +57,8 @@ declare const base$r: {
|
|
|
51
57
|
inverted: string;
|
|
52
58
|
};
|
|
53
59
|
};
|
|
54
|
-
type TAlertElementStyles = DeepPartialType<typeof
|
|
55
|
-
|
|
56
|
-
type TProps$g = {
|
|
60
|
+
type TAlertElementStyles = DeepPartialType<typeof _base1>;
|
|
61
|
+
type TAlertElementProps = {
|
|
57
62
|
title: string;
|
|
58
63
|
message?: string;
|
|
59
64
|
iconAccessor?: IconName;
|
|
@@ -63,16 +68,14 @@ type TProps$g = {
|
|
|
63
68
|
onCollapse?: () => void;
|
|
64
69
|
styles?: TAlertElementStyles;
|
|
65
70
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
declare const base$q: {
|
|
71
|
+
export const AlertElement: FC<TAlertElementProps>;
|
|
72
|
+
declare const _base2: {
|
|
69
73
|
container: string;
|
|
70
74
|
indicator: string;
|
|
71
75
|
button: string;
|
|
72
76
|
};
|
|
73
|
-
type TBadgeElementStyles = DeepPartialType<typeof
|
|
74
|
-
|
|
75
|
-
type TProps$f = {
|
|
77
|
+
type TBadgeElementStyles = DeepPartialType<typeof _base2>;
|
|
78
|
+
type TBadgeElementProps = {
|
|
76
79
|
children: string | ReactNode;
|
|
77
80
|
color?: 'gray' | 'red' | 'yellow' | 'green' | 'blue' | 'indigo' | 'purple' | 'pink';
|
|
78
81
|
type?: 'normal' | 'indicator' | 'close';
|
|
@@ -84,9 +87,8 @@ type TProps$f = {
|
|
|
84
87
|
styles?: TBadgeElementStyles;
|
|
85
88
|
dataCy?: string;
|
|
86
89
|
};
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
declare const base$p: {
|
|
90
|
+
export const BadgeElement: FC<TBadgeElementProps>;
|
|
91
|
+
declare const _base3: {
|
|
90
92
|
container: string;
|
|
91
93
|
content: string;
|
|
92
94
|
arrow: {
|
|
@@ -95,9 +97,8 @@ declare const base$p: {
|
|
|
95
97
|
strokeWidth: string;
|
|
96
98
|
};
|
|
97
99
|
};
|
|
98
|
-
type TTooltipElementStyles = DeepPartialType<typeof
|
|
99
|
-
|
|
100
|
-
type TProps$e = {
|
|
100
|
+
type TTooltipElementStyles = DeepPartialType<typeof _base3>;
|
|
101
|
+
type _TProps1 = {
|
|
101
102
|
children: ReactNode;
|
|
102
103
|
content: ReactNode;
|
|
103
104
|
placement?: Placement;
|
|
@@ -106,9 +107,15 @@ type TProps$e = {
|
|
|
106
107
|
styles?: TTooltipElementStyles;
|
|
107
108
|
dataCy?: string;
|
|
108
109
|
};
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
export const TooltipElement: FC<_TProps1>;
|
|
111
|
+
declare const _base4: {
|
|
112
|
+
container: string;
|
|
113
|
+
content: string;
|
|
114
|
+
icon: string;
|
|
115
|
+
spinner: string;
|
|
116
|
+
};
|
|
117
|
+
type TButtonElementStyles = DeepPartialType<typeof _base4>;
|
|
118
|
+
export type TButtonElementProps = {
|
|
112
119
|
children: string | ReactNode;
|
|
113
120
|
innerRef?: RefObject<HTMLButtonElement>;
|
|
114
121
|
htmlType?: 'button' | 'submit';
|
|
@@ -119,42 +126,30 @@ type TButtonElementProps = {
|
|
|
119
126
|
isDisabled?: boolean;
|
|
120
127
|
dataCy?: string;
|
|
121
128
|
styles?: TButtonElementStyles;
|
|
122
|
-
onClick?: (e?: MouseEvent
|
|
129
|
+
onClick?: (e?: MouseEvent<HTMLButtonElement>) => void;
|
|
123
130
|
};
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
declare const base$o: {
|
|
127
|
-
container: string;
|
|
128
|
-
content: string;
|
|
129
|
-
icon: string;
|
|
130
|
-
spinner: string;
|
|
131
|
-
};
|
|
132
|
-
type TButtonElementStyles = DeepPartialType<typeof base$o>;
|
|
133
|
-
|
|
134
|
-
declare const base$n: {
|
|
131
|
+
export const ButtonElement: FC<TButtonElementProps>;
|
|
132
|
+
declare const _base5: {
|
|
135
133
|
container: string;
|
|
136
134
|
firstButton: string;
|
|
137
135
|
button: string;
|
|
138
136
|
lastButton: string;
|
|
139
137
|
};
|
|
140
|
-
type TButtonGroupElementStyles = DeepPartialType<typeof
|
|
141
|
-
|
|
142
|
-
type TProps$d = {
|
|
138
|
+
type TButtonGroupElementStyles = DeepPartialType<typeof _base5>;
|
|
139
|
+
type _TProps2 = {
|
|
143
140
|
children: ReactElement[];
|
|
144
141
|
styles?: TButtonGroupElementStyles;
|
|
145
142
|
};
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
declare const base$m: {
|
|
143
|
+
export const ButtonGroupElement: FC<_TProps2>;
|
|
144
|
+
declare const _base6: {
|
|
149
145
|
container: string;
|
|
150
146
|
button: string;
|
|
151
147
|
compact: string;
|
|
152
148
|
dots: string;
|
|
153
149
|
items: string;
|
|
154
150
|
};
|
|
155
|
-
type TDropdownElementStyles = DeepPartialType<typeof
|
|
156
|
-
|
|
157
|
-
type TProps$c = {
|
|
151
|
+
type TDropdownElementStyles = DeepPartialType<typeof _base6>;
|
|
152
|
+
type _TProps3 = {
|
|
158
153
|
children: ReactElement | ReactElement[];
|
|
159
154
|
label?: string | ReactElement;
|
|
160
155
|
trigger?: ReactNode;
|
|
@@ -164,19 +159,25 @@ type TProps$c = {
|
|
|
164
159
|
isEscapingOverflow?: boolean;
|
|
165
160
|
styles?: TDropdownElementStyles;
|
|
166
161
|
};
|
|
167
|
-
|
|
168
|
-
Container: FC<
|
|
162
|
+
export const DropdownElement: {
|
|
163
|
+
Container: FC<_TProps3>;
|
|
169
164
|
Item: typeof Menu.Item;
|
|
170
165
|
};
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
166
|
+
declare const _base7: {
|
|
167
|
+
container: string;
|
|
168
|
+
head: string;
|
|
169
|
+
body: string;
|
|
170
|
+
foot: string;
|
|
171
|
+
label: string;
|
|
172
|
+
hint: string;
|
|
173
|
+
leading: string;
|
|
174
|
+
input: string;
|
|
175
|
+
trailing: string;
|
|
176
|
+
description: string;
|
|
177
|
+
error: string;
|
|
176
178
|
};
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
type TInputGroupFormProps = {
|
|
179
|
+
export type TInputGroupStyles = DeepPartialType<typeof _base7>;
|
|
180
|
+
export type TInputGroupFormProps = {
|
|
180
181
|
name: string;
|
|
181
182
|
label?: string | ReactNode;
|
|
182
183
|
description?: string;
|
|
@@ -229,91 +230,66 @@ type TInputGroupFormProps = {
|
|
|
229
230
|
onClear?: never;
|
|
230
231
|
trailing?: string | ReactNode;
|
|
231
232
|
});
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
declare const base$l: {
|
|
235
|
-
container: string;
|
|
236
|
-
head: string;
|
|
237
|
-
body: string;
|
|
238
|
-
foot: string;
|
|
239
|
-
label: string;
|
|
240
|
-
hint: string;
|
|
241
|
-
leading: string;
|
|
242
|
-
input: string;
|
|
243
|
-
trailing: string;
|
|
244
|
-
description: string;
|
|
245
|
-
error: string;
|
|
246
|
-
};
|
|
247
|
-
type TInputGroupStyles = DeepPartialType<typeof base$l>;
|
|
248
|
-
|
|
249
|
-
declare const base$k: {
|
|
233
|
+
export const InputGroupForm: FC<TInputGroupFormProps>;
|
|
234
|
+
declare const _base8: {
|
|
250
235
|
container: string;
|
|
251
236
|
content: string;
|
|
252
237
|
};
|
|
253
|
-
type TContainerLayoutStyles = DeepPartialType<typeof
|
|
254
|
-
|
|
255
|
-
type TProps$a = {
|
|
238
|
+
type TContainerLayoutStyles = DeepPartialType<typeof _base8>;
|
|
239
|
+
type _TProps4 = {
|
|
256
240
|
children: ReactNode;
|
|
257
241
|
type?: 'break' | 'center' | 'fill';
|
|
258
242
|
styles?: TContainerLayoutStyles;
|
|
259
243
|
};
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
declare const base$j: {
|
|
244
|
+
export const ContainerLayout: FC<_TProps4>;
|
|
245
|
+
declare const _base9: {
|
|
263
246
|
container: string;
|
|
264
247
|
head: string;
|
|
265
248
|
line: string;
|
|
266
249
|
body: string;
|
|
267
250
|
content: string;
|
|
268
251
|
};
|
|
269
|
-
type TDividerLayoutStyles = DeepPartialType<typeof
|
|
270
|
-
|
|
271
|
-
type TProps$9 = {
|
|
252
|
+
type TDividerLayoutStyles = DeepPartialType<typeof _base9>;
|
|
253
|
+
type _TProps5 = {
|
|
272
254
|
children?: ReactNode;
|
|
273
255
|
type?: 'left' | 'center' | 'right';
|
|
274
256
|
styles?: TDividerLayoutStyles;
|
|
275
257
|
};
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
declare const base$i: {
|
|
258
|
+
export const DividerLayout: FC<_TProps5>;
|
|
259
|
+
declare const _base10: {
|
|
279
260
|
container: string;
|
|
280
261
|
list: string;
|
|
281
262
|
item: string;
|
|
282
263
|
};
|
|
283
|
-
type TListContainerLayoutStyles = DeepPartialType<typeof
|
|
284
|
-
|
|
285
|
-
type TProps$8 = {
|
|
264
|
+
type TListContainerLayoutStyles = DeepPartialType<typeof _base10>;
|
|
265
|
+
type _TProps6 = {
|
|
286
266
|
children: ReactElement | ReactElement[];
|
|
287
267
|
type?: 'fill' | 'fill-sticky' | 'center' | 'center-sticky' | 'card' | 'card-sticky';
|
|
288
268
|
styles?: TListContainerLayoutStyles;
|
|
289
269
|
};
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
declare const base$h: {
|
|
270
|
+
export const ListContainerLayout: FC<_TProps6>;
|
|
271
|
+
declare const _base11: {
|
|
293
272
|
container: string;
|
|
294
273
|
figure: string;
|
|
295
274
|
svg: string;
|
|
296
275
|
title: string;
|
|
297
276
|
paragraph: string;
|
|
298
277
|
};
|
|
299
|
-
type TMediaObjectLayoutStyles = DeepPartialType<typeof
|
|
300
|
-
|
|
301
|
-
type TProps$7 = {
|
|
278
|
+
type TMediaObjectLayoutStyles = DeepPartialType<typeof _base11>;
|
|
279
|
+
type _TProps7 = {
|
|
302
280
|
title: string;
|
|
303
281
|
paragraph: string;
|
|
304
282
|
figure?: ReactNode;
|
|
305
283
|
type?: 'top' | 'top-reversed' | 'center' | 'center-reversed' | 'bottom' | 'bottom-reversed' | 'stretch' | 'stretch-reversed' | 'responsive' | 'responsive-reversed' | 'wide' | 'wide-reversed';
|
|
306
284
|
styles?: TMediaObjectLayoutStyles;
|
|
307
285
|
};
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
declare const base$g: {
|
|
286
|
+
export const MediaObjectLayout: FC<_TProps7>;
|
|
287
|
+
declare const _base12: {
|
|
311
288
|
container: string;
|
|
312
289
|
section: string;
|
|
313
290
|
};
|
|
314
|
-
type TPanelLayoutStyles = DeepPartialType<typeof
|
|
315
|
-
|
|
316
|
-
type TContainerProps$2 = {
|
|
291
|
+
type TPanelLayoutStyles = DeepPartialType<typeof _base12>;
|
|
292
|
+
type TContainerProps = {
|
|
317
293
|
children: ReactNode;
|
|
318
294
|
type?: 'normal' | 'sticky';
|
|
319
295
|
styles?: TPanelLayoutStyles;
|
|
@@ -324,55 +300,170 @@ type TSectionProps = {
|
|
|
324
300
|
section: string;
|
|
325
301
|
};
|
|
326
302
|
};
|
|
327
|
-
|
|
328
|
-
Container: React.FC<TContainerProps
|
|
303
|
+
export const PanelLayout: {
|
|
304
|
+
Container: React.FC<TContainerProps>;
|
|
329
305
|
Section: React.FC<TSectionProps>;
|
|
330
306
|
};
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
307
|
+
declare const _base13: {
|
|
308
|
+
container: string;
|
|
309
|
+
left: {
|
|
310
|
+
container: string;
|
|
311
|
+
button: string;
|
|
312
|
+
icon: string;
|
|
313
|
+
};
|
|
314
|
+
center: {
|
|
315
|
+
container: string;
|
|
316
|
+
};
|
|
317
|
+
right: {
|
|
318
|
+
container: string;
|
|
319
|
+
button: string;
|
|
320
|
+
icon: string;
|
|
321
|
+
};
|
|
322
|
+
button: {
|
|
323
|
+
default: string;
|
|
324
|
+
active: string;
|
|
325
|
+
disabled: string;
|
|
326
|
+
};
|
|
327
|
+
divider: string;
|
|
335
328
|
};
|
|
336
|
-
type
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
329
|
+
type TPagePaginationNavigationStyles = DeepPartialType<typeof _base13>;
|
|
330
|
+
type _TProps8 = {
|
|
331
|
+
min?: number;
|
|
332
|
+
max: number;
|
|
333
|
+
styles?: TPagePaginationNavigationStyles;
|
|
334
|
+
onChange?: (current: number) => void;
|
|
335
|
+
};
|
|
336
|
+
export const PagePaginationNavigation: React.FC<_TProps8>;
|
|
337
|
+
declare const _base14: {
|
|
338
|
+
container: string;
|
|
339
|
+
mobile: {
|
|
340
|
+
container: string;
|
|
341
|
+
button: string;
|
|
343
342
|
};
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
343
|
+
desktop: {
|
|
344
|
+
container: string;
|
|
345
|
+
outerRightButton: string;
|
|
346
|
+
outerLeftButton: string;
|
|
347
|
+
innerButton: string;
|
|
348
|
+
navigation: string;
|
|
349
|
+
};
|
|
350
|
+
button: {
|
|
351
|
+
default: string;
|
|
352
|
+
active: string;
|
|
353
|
+
disabled: string;
|
|
354
|
+
};
|
|
355
|
+
divider: string;
|
|
356
|
+
label: string;
|
|
357
|
+
icon: string;
|
|
358
|
+
pageSizeList: string;
|
|
359
|
+
};
|
|
360
|
+
type TPanelPaginationNavigationStyles = DeepPartialType<typeof _base14>;
|
|
361
|
+
export type TSelectMenuFormProps = {
|
|
362
|
+
name: string;
|
|
363
|
+
label?: string;
|
|
364
|
+
description?: string;
|
|
365
|
+
placeholder?: {
|
|
366
|
+
select?: string;
|
|
367
|
+
searchInput?: string;
|
|
368
|
+
emptyState?: string;
|
|
369
|
+
};
|
|
370
|
+
options: {
|
|
371
|
+
value: string;
|
|
372
|
+
label: string;
|
|
373
|
+
}[];
|
|
374
|
+
required?: ({ isRequired }: {
|
|
375
|
+
isRequired: boolean;
|
|
376
|
+
}) => string | ReactNode;
|
|
377
|
+
value: {
|
|
378
|
+
label: string;
|
|
379
|
+
value: string;
|
|
380
|
+
disabled?: boolean;
|
|
381
|
+
};
|
|
382
|
+
error?: string | Option | Option[];
|
|
383
|
+
isLoading?: boolean;
|
|
384
|
+
isRequired?: boolean;
|
|
385
|
+
isTouched?: boolean;
|
|
386
|
+
isDisabled?: boolean;
|
|
387
|
+
isClearable?: boolean;
|
|
388
|
+
isSearchable?: boolean;
|
|
389
|
+
isMultiple?: boolean;
|
|
390
|
+
isDarkMode?: boolean;
|
|
391
|
+
isSolo?: boolean;
|
|
392
|
+
onChange?: (value: SelectValue) => void;
|
|
393
|
+
onSearchInputChange?: ((e: ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
394
|
+
onClear: (name: string) => void;
|
|
395
|
+
onBlur?: any;
|
|
396
|
+
styles?: TSelectMenuFormStyles;
|
|
397
|
+
};
|
|
398
|
+
export const SelectMenuForm: FC<TSelectMenuFormProps>;
|
|
399
|
+
declare const _base15: {
|
|
400
|
+
container: string;
|
|
401
|
+
head: string;
|
|
402
|
+
body: string;
|
|
403
|
+
foot: string;
|
|
404
|
+
label: string;
|
|
405
|
+
hint: string;
|
|
406
|
+
leading: string;
|
|
407
|
+
input: string;
|
|
408
|
+
menuButton: string;
|
|
409
|
+
menu: string;
|
|
410
|
+
tagItem: string;
|
|
411
|
+
tagItemText: string;
|
|
412
|
+
tagItemIconContainer: string;
|
|
413
|
+
tagItemIcon: string;
|
|
414
|
+
list: string;
|
|
415
|
+
listGroupLabel: string;
|
|
416
|
+
listItem: string;
|
|
417
|
+
listDisabledItem: string;
|
|
418
|
+
searchContainer: string;
|
|
419
|
+
searchBox: string;
|
|
420
|
+
searchIcon: string;
|
|
421
|
+
closeIcon: string;
|
|
422
|
+
emptyState: string;
|
|
423
|
+
trailing: string;
|
|
424
|
+
description: string;
|
|
425
|
+
error: string;
|
|
426
|
+
};
|
|
427
|
+
export type TSelectMenuFormStyles = DeepPartialType<typeof _base15>;
|
|
428
|
+
type _TProps9 = {
|
|
429
|
+
current?: number;
|
|
430
|
+
min?: number;
|
|
431
|
+
max: number;
|
|
432
|
+
children: ({ min, max, current }: {
|
|
348
433
|
min: number;
|
|
349
434
|
max: number;
|
|
350
435
|
current: number;
|
|
351
436
|
}) => ReactNode;
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
hasVerticalSeparators?: boolean;
|
|
358
|
-
areControlsVisible?: boolean;
|
|
359
|
-
styles?: TTableListStyles$1 & {
|
|
360
|
-
components: {
|
|
361
|
-
buttonElement: TButtonElementStyles$1;
|
|
362
|
-
dropdownElement: TDropdownElementStyles$1;
|
|
363
|
-
panelPaginationNavigation: TPagePaginationNavigationStyles$1;
|
|
364
|
-
};
|
|
365
|
-
};
|
|
366
|
-
onChange?: ({ sorting, visibility, order, }: {
|
|
367
|
-
sorting: SortingState;
|
|
368
|
-
visibility: VisibilityState$1;
|
|
369
|
-
order: ColumnOrderState;
|
|
370
|
-
}) => void;
|
|
371
|
-
onPaginate?: (current: number) => void;
|
|
437
|
+
pageSizeOptions?: number[];
|
|
438
|
+
defaultPageSize?: number;
|
|
439
|
+
onChangePageSize?: (pageSize: number) => void;
|
|
440
|
+
styles?: TPanelPaginationNavigationStyles;
|
|
441
|
+
onChange?: (current: number) => void;
|
|
372
442
|
};
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
443
|
+
export const PanelPaginationNavigation: React.FC<_TProps9>;
|
|
444
|
+
export type TExcelCell = {
|
|
445
|
+
value: number | string;
|
|
446
|
+
type?: 'boolean' | 'number' | 'error' | 'string' | 'date';
|
|
447
|
+
formula?: string;
|
|
448
|
+
comments?: string;
|
|
449
|
+
format?: string;
|
|
450
|
+
link?: string;
|
|
451
|
+
style?: string;
|
|
452
|
+
};
|
|
453
|
+
export type TExcelRow = TExcelCell[];
|
|
454
|
+
export type TExcelSheet = {
|
|
455
|
+
title: string;
|
|
456
|
+
rows: TExcelRow[];
|
|
457
|
+
};
|
|
458
|
+
type TOptions = {
|
|
459
|
+
fileName: string;
|
|
460
|
+
};
|
|
461
|
+
type TReturn<TData> = {
|
|
462
|
+
generate: (table: Table<TData>, exportData?: TData[]) => TExcelSheet[];
|
|
463
|
+
write: (sheets: TExcelSheet[], options: TOptions) => void;
|
|
464
|
+
};
|
|
465
|
+
export const useExcel: <TData extends object>() => TReturn<TData>;
|
|
466
|
+
declare const _base16: {
|
|
376
467
|
container: string;
|
|
377
468
|
head: {
|
|
378
469
|
container: string;
|
|
@@ -426,68 +517,48 @@ declare const base$f: {
|
|
|
426
517
|
};
|
|
427
518
|
};
|
|
428
519
|
};
|
|
429
|
-
type TTableListStyles
|
|
430
|
-
|
|
520
|
+
export type TTableListStyles = DeepPartialType<typeof _base16>;
|
|
431
521
|
type TData = any;
|
|
432
|
-
type VisibilityState =
|
|
433
|
-
|
|
434
|
-
};
|
|
435
|
-
type Params = {
|
|
436
|
-
table: Table<any>;
|
|
437
|
-
sorting: SortingState;
|
|
438
|
-
columnVisibility: VisibilityState;
|
|
439
|
-
columnOrder: ColumnOrderState;
|
|
440
|
-
setSorting: Dispatch<SetStateAction<SortingState>>;
|
|
441
|
-
setColumnVisibility: Dispatch<SetStateAction<VisibilityState>>;
|
|
442
|
-
setColumnOrder: Dispatch<SetStateAction<ColumnOrderState>>;
|
|
443
|
-
};
|
|
444
|
-
type TTableListProps<TData> = {
|
|
522
|
+
type VisibilityState = Record<string, boolean>;
|
|
523
|
+
export type TTableListProps<TData> = {
|
|
445
524
|
id: string;
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
defaultVisibility?: string[];
|
|
452
|
-
defaultSorting?: SortingState;
|
|
453
|
-
emptyComponent?: ReactNode;
|
|
454
|
-
isStriped?: boolean;
|
|
455
|
-
hasStickyHeader?: boolean;
|
|
456
|
-
hasVerticalSeparators?: boolean;
|
|
457
|
-
columnPinning?: {
|
|
458
|
-
left?: {
|
|
459
|
-
name: string;
|
|
460
|
-
size: number;
|
|
461
|
-
}[];
|
|
462
|
-
right?: {
|
|
463
|
-
name: string;
|
|
464
|
-
size: number;
|
|
465
|
-
}[];
|
|
466
|
-
};
|
|
467
|
-
};
|
|
525
|
+
columns: ColumnDef<TData>[];
|
|
526
|
+
data: TData[];
|
|
527
|
+
page: {
|
|
528
|
+
current?: number;
|
|
529
|
+
total: number;
|
|
468
530
|
};
|
|
531
|
+
defaultOrder?: string[];
|
|
532
|
+
defaultVisibility?: string[];
|
|
533
|
+
customControls?: ReactNode | ReactNode[];
|
|
534
|
+
children: ({ min, max, current }: {
|
|
535
|
+
min: number;
|
|
536
|
+
max: number;
|
|
537
|
+
current: number;
|
|
538
|
+
}) => ReactNode;
|
|
539
|
+
type?: 'normal' | 'panel' | 'full';
|
|
540
|
+
exportFileName?: string;
|
|
469
541
|
isLoading?: boolean;
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
header?: string;
|
|
481
|
-
handleDragEnd?: ({ oldIndex, newIndex, dragEndEvent, }: {
|
|
482
|
-
oldIndex?: number;
|
|
483
|
-
newIndex?: number;
|
|
484
|
-
dragEndEvent?: DragEndEvent;
|
|
485
|
-
}) => void;
|
|
542
|
+
isStriped?: boolean;
|
|
543
|
+
hasStickyHeader?: boolean;
|
|
544
|
+
hasVerticalSeparators?: boolean;
|
|
545
|
+
areControlsVisible?: boolean;
|
|
546
|
+
styles?: TTableListStyles & {
|
|
547
|
+
components: {
|
|
548
|
+
buttonElement: TButtonElementStyles;
|
|
549
|
+
dropdownElement: TDropdownElementStyles;
|
|
550
|
+
panelPaginationNavigation: TPagePaginationNavigationStyles;
|
|
551
|
+
};
|
|
486
552
|
};
|
|
553
|
+
onChange?: ({ sorting, visibility, order, }: {
|
|
554
|
+
sorting: SortingState;
|
|
555
|
+
visibility: VisibilityState;
|
|
556
|
+
order: ColumnOrderState;
|
|
557
|
+
}) => void;
|
|
558
|
+
onPaginate?: (current: number) => void;
|
|
487
559
|
};
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
declare const base$e: {
|
|
560
|
+
export const TableList: FC<TTableListProps<TData>>;
|
|
561
|
+
declare const _base17: {
|
|
491
562
|
container: string;
|
|
492
563
|
head: string;
|
|
493
564
|
body: {
|
|
@@ -545,9 +616,67 @@ declare const base$e: {
|
|
|
545
616
|
foot: string;
|
|
546
617
|
leftSide: string;
|
|
547
618
|
};
|
|
548
|
-
type
|
|
549
|
-
|
|
550
|
-
|
|
619
|
+
type _TTableListStyles1 = DeepPartialType<typeof _base17>;
|
|
620
|
+
type _TData1 = any;
|
|
621
|
+
type _VisibilityState1 = Record<string, boolean>;
|
|
622
|
+
type Params = {
|
|
623
|
+
table: Table<any>;
|
|
624
|
+
sorting: SortingState;
|
|
625
|
+
columnVisibility: _VisibilityState1;
|
|
626
|
+
columnOrder: ColumnOrderState;
|
|
627
|
+
setSorting: Dispatch<SetStateAction<SortingState>>;
|
|
628
|
+
setColumnVisibility: Dispatch<SetStateAction<_VisibilityState1>>;
|
|
629
|
+
setColumnOrder: Dispatch<SetStateAction<ColumnOrderState>>;
|
|
630
|
+
};
|
|
631
|
+
export type TTableList2Props<_TData1> = {
|
|
632
|
+
id: string;
|
|
633
|
+
table: {
|
|
634
|
+
columns: ColumnDef<_TData1>[];
|
|
635
|
+
data: _TData1[];
|
|
636
|
+
options?: {
|
|
637
|
+
defaultOrder?: string[];
|
|
638
|
+
defaultVisibility?: string[];
|
|
639
|
+
defaultSorting?: SortingState;
|
|
640
|
+
emptyComponent?: ReactNode;
|
|
641
|
+
isStriped?: boolean;
|
|
642
|
+
hasStickyHeader?: boolean;
|
|
643
|
+
hasVerticalSeparators?: boolean;
|
|
644
|
+
columnPinning?: {
|
|
645
|
+
disableShadow?: boolean;
|
|
646
|
+
customShadow?: string;
|
|
647
|
+
left?: {
|
|
648
|
+
name: string;
|
|
649
|
+
size: number;
|
|
650
|
+
}[];
|
|
651
|
+
right?: {
|
|
652
|
+
name: string;
|
|
653
|
+
size: number;
|
|
654
|
+
}[];
|
|
655
|
+
};
|
|
656
|
+
};
|
|
657
|
+
};
|
|
658
|
+
isLoading?: boolean;
|
|
659
|
+
head?: (params: Params) => ReactNode;
|
|
660
|
+
foot?: (params: Params) => ReactNode;
|
|
661
|
+
leftSide?: (params: Params) => ReactNode;
|
|
662
|
+
onRowClick?: (context: Row<_TData1>) => void;
|
|
663
|
+
onChange?: (params: Params) => void;
|
|
664
|
+
styles?: _TTableListStyles1;
|
|
665
|
+
dragConfig?: {
|
|
666
|
+
rowIdentifierKey: string;
|
|
667
|
+
iconAccessor?: IconName;
|
|
668
|
+
label?: ReactNode;
|
|
669
|
+
header?: string;
|
|
670
|
+
handleDragEnd?: ({ oldIndex, newIndex, dragEndEvent, }: {
|
|
671
|
+
oldIndex?: number;
|
|
672
|
+
newIndex?: number;
|
|
673
|
+
dragEndEvent?: DragEndEvent;
|
|
674
|
+
}) => void;
|
|
675
|
+
};
|
|
676
|
+
};
|
|
677
|
+
export const TableList2: FC<TTableList2Props<_TData1>>;
|
|
678
|
+
export const createColumnHelper: <TData>() => import("@tanstack/react-table").ColumnHelper<TData>;
|
|
679
|
+
declare const _base18: {
|
|
551
680
|
container: string;
|
|
552
681
|
list: string;
|
|
553
682
|
separator: string;
|
|
@@ -564,9 +693,8 @@ declare const base$d: {
|
|
|
564
693
|
link: string;
|
|
565
694
|
};
|
|
566
695
|
};
|
|
567
|
-
type TBreadcrumbsNavigationStyles = DeepPartialType<typeof
|
|
568
|
-
|
|
569
|
-
type TProps$6 = {
|
|
696
|
+
type TBreadcrumbsNavigationStyles = DeepPartialType<typeof _base18>;
|
|
697
|
+
type _TProps10 = {
|
|
570
698
|
href: string;
|
|
571
699
|
pages: {
|
|
572
700
|
name: string;
|
|
@@ -577,83 +705,8 @@ type TProps$6 = {
|
|
|
577
705
|
separator?: ReactNode;
|
|
578
706
|
styles?: TBreadcrumbsNavigationStyles;
|
|
579
707
|
};
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
declare const base$c: {
|
|
583
|
-
container: string;
|
|
584
|
-
mobile: {
|
|
585
|
-
container: string;
|
|
586
|
-
button: string;
|
|
587
|
-
};
|
|
588
|
-
desktop: {
|
|
589
|
-
container: string;
|
|
590
|
-
outerRightButton: string;
|
|
591
|
-
outerLeftButton: string;
|
|
592
|
-
innerButton: string;
|
|
593
|
-
navigation: string;
|
|
594
|
-
};
|
|
595
|
-
button: {
|
|
596
|
-
default: string;
|
|
597
|
-
active: string;
|
|
598
|
-
disabled: string;
|
|
599
|
-
};
|
|
600
|
-
divider: string;
|
|
601
|
-
label: string;
|
|
602
|
-
icon: string;
|
|
603
|
-
pageSizeList: string;
|
|
604
|
-
};
|
|
605
|
-
type TPanelPaginationNavigationStyles = DeepPartialType<typeof base$c>;
|
|
606
|
-
|
|
607
|
-
type TProps$5 = {
|
|
608
|
-
current?: number;
|
|
609
|
-
min?: number;
|
|
610
|
-
max: number;
|
|
611
|
-
children: ({ min, max, current, }: {
|
|
612
|
-
min: number;
|
|
613
|
-
max: number;
|
|
614
|
-
current: number;
|
|
615
|
-
}) => ReactNode;
|
|
616
|
-
pageSizeOptions?: number[];
|
|
617
|
-
defaultPageSize?: number;
|
|
618
|
-
onChangePageSize?: (pageSize: number) => void;
|
|
619
|
-
styles?: TPanelPaginationNavigationStyles;
|
|
620
|
-
onChange?: (current: number) => void;
|
|
621
|
-
};
|
|
622
|
-
declare const PanelPaginationNavigation: React.FC<TProps$5>;
|
|
623
|
-
|
|
624
|
-
declare const base$b: {
|
|
625
|
-
container: string;
|
|
626
|
-
left: {
|
|
627
|
-
container: string;
|
|
628
|
-
button: string;
|
|
629
|
-
icon: string;
|
|
630
|
-
};
|
|
631
|
-
center: {
|
|
632
|
-
container: string;
|
|
633
|
-
};
|
|
634
|
-
right: {
|
|
635
|
-
container: string;
|
|
636
|
-
button: string;
|
|
637
|
-
icon: string;
|
|
638
|
-
};
|
|
639
|
-
button: {
|
|
640
|
-
default: string;
|
|
641
|
-
active: string;
|
|
642
|
-
disabled: string;
|
|
643
|
-
};
|
|
644
|
-
divider: string;
|
|
645
|
-
};
|
|
646
|
-
type TPagePaginationNavigationStyles = DeepPartialType<typeof base$b>;
|
|
647
|
-
|
|
648
|
-
type TProps$4 = {
|
|
649
|
-
min?: number;
|
|
650
|
-
max: number;
|
|
651
|
-
styles?: TPagePaginationNavigationStyles;
|
|
652
|
-
onChange?: (current: number) => void;
|
|
653
|
-
};
|
|
654
|
-
declare const PagePaginationNavigation: React.FC<TProps$4>;
|
|
655
|
-
|
|
656
|
-
declare const base$a: {
|
|
708
|
+
export const BreadcrumbsNavigation: FC<_TProps10>;
|
|
709
|
+
declare const _base19: {
|
|
657
710
|
container: string;
|
|
658
711
|
list: {
|
|
659
712
|
container: string;
|
|
@@ -664,15 +717,14 @@ declare const base$a: {
|
|
|
664
717
|
navigation: string;
|
|
665
718
|
};
|
|
666
719
|
tab: {
|
|
667
|
-
|
|
720
|
+
_base19: string;
|
|
668
721
|
active: string;
|
|
669
722
|
inactive: string;
|
|
670
723
|
};
|
|
671
724
|
};
|
|
672
|
-
type TTabNavigationStyles = DeepPartialType<typeof
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
children: ({ active, setActive, }: {
|
|
725
|
+
type TTabNavigationStyles = DeepPartialType<typeof _base19>;
|
|
726
|
+
type _TContainerProps1 = {
|
|
727
|
+
children: ({ active, setActive }: {
|
|
676
728
|
active: string;
|
|
677
729
|
setActive: any;
|
|
678
730
|
}) => ReactNode | ReactNode[];
|
|
@@ -685,7 +737,7 @@ type TListProps = {
|
|
|
685
737
|
setActive: any;
|
|
686
738
|
styles?: Pick<TTabNavigationStyles, 'list'>;
|
|
687
739
|
};
|
|
688
|
-
type TNavigationItemProps
|
|
740
|
+
type TNavigationItemProps = {
|
|
689
741
|
accessor: string;
|
|
690
742
|
href?: string;
|
|
691
743
|
type?: 'underline' | 'pills' | 'buttons';
|
|
@@ -697,24 +749,22 @@ type TNavigationItemProps$1 = {
|
|
|
697
749
|
styles?: Pick<TTabNavigationStyles, 'tab'>;
|
|
698
750
|
isLoading?: boolean;
|
|
699
751
|
};
|
|
700
|
-
type TViewProps
|
|
752
|
+
type TViewProps = {
|
|
701
753
|
children: ReactNode;
|
|
702
754
|
};
|
|
703
|
-
|
|
704
|
-
Container: React.FC<
|
|
755
|
+
export const TabNavigation: {
|
|
756
|
+
Container: React.FC<_TContainerProps1>;
|
|
705
757
|
List: React.FC<TListProps>;
|
|
706
|
-
Item: React.FC<TNavigationItemProps
|
|
707
|
-
View: React.FC<TViewProps
|
|
758
|
+
Item: React.FC<TNavigationItemProps>;
|
|
759
|
+
View: React.FC<TViewProps>;
|
|
708
760
|
};
|
|
709
|
-
|
|
710
761
|
type ContainerStylesType = {
|
|
711
762
|
container: string;
|
|
712
763
|
};
|
|
713
764
|
type NavigationStylesType = {
|
|
714
765
|
list?: string;
|
|
715
766
|
};
|
|
716
|
-
|
|
717
|
-
type TContainerProps = {
|
|
767
|
+
type _TContainerProps2 = {
|
|
718
768
|
children: ({ active, setActive, }: {
|
|
719
769
|
active: string;
|
|
720
770
|
setActive: Dispatch<SetStateAction<string>>;
|
|
@@ -727,44 +777,26 @@ type TNavigationProps = {
|
|
|
727
777
|
setActive: Dispatch<SetStateAction<string>>;
|
|
728
778
|
styles?: NavigationStylesType;
|
|
729
779
|
};
|
|
730
|
-
type
|
|
780
|
+
type _TNavigationItemProps1 = {
|
|
731
781
|
accessor: string;
|
|
732
|
-
href?: string;
|
|
733
|
-
type?: string;
|
|
734
|
-
children: ReactNode | ReactNode[];
|
|
735
|
-
linkComponent?: ElementType;
|
|
736
|
-
isCurrent?: boolean;
|
|
737
|
-
isInitial?: boolean;
|
|
738
|
-
onClick?: (accessor: MouseEvent) => void;
|
|
739
|
-
};
|
|
740
|
-
type TViewProps = {
|
|
741
|
-
children: ReactNode;
|
|
742
|
-
};
|
|
743
|
-
declare const VerticalNavigation: {
|
|
744
|
-
Container: React.FC<TContainerProps>;
|
|
745
|
-
List: React.FC<TNavigationProps>;
|
|
746
|
-
Item: React.FC<TNavigationItemProps>;
|
|
747
|
-
View: React.FC<TViewProps>;
|
|
748
|
-
};
|
|
749
|
-
|
|
750
|
-
type TModalOverlayProps = {
|
|
751
|
-
trigger?: ({ handleOpen, handleClose, }: {
|
|
752
|
-
handleOpen: () => void;
|
|
753
|
-
handleClose: () => void;
|
|
754
|
-
}) => ReactNode;
|
|
755
|
-
children: ({ handleOpen, handleClose, }: {
|
|
756
|
-
handleOpen: () => void;
|
|
757
|
-
handleClose: () => void;
|
|
758
|
-
}) => ReactNode;
|
|
759
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
760
|
-
styles?: TModalOverlayStyles;
|
|
761
|
-
dataCy?: string;
|
|
762
|
-
onOpen?: () => void;
|
|
763
|
-
onClose?: () => void;
|
|
782
|
+
href?: string;
|
|
783
|
+
type?: string;
|
|
784
|
+
children: ReactNode | ReactNode[];
|
|
785
|
+
linkComponent?: ElementType;
|
|
786
|
+
isCurrent?: boolean;
|
|
787
|
+
isInitial?: boolean;
|
|
788
|
+
onClick?: (accessor: MouseEvent) => void;
|
|
764
789
|
};
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
790
|
+
type _TViewProps1 = {
|
|
791
|
+
children: ReactNode;
|
|
792
|
+
};
|
|
793
|
+
export const VerticalNavigation: {
|
|
794
|
+
Container: React.FC<_TContainerProps2>;
|
|
795
|
+
List: React.FC<TNavigationProps>;
|
|
796
|
+
Item: React.FC<_TNavigationItemProps1>;
|
|
797
|
+
View: React.FC<_TViewProps1>;
|
|
798
|
+
};
|
|
799
|
+
declare const _base20: {
|
|
768
800
|
container: string;
|
|
769
801
|
background: {
|
|
770
802
|
container: string;
|
|
@@ -793,9 +825,24 @@ declare const base$9: {
|
|
|
793
825
|
};
|
|
794
826
|
};
|
|
795
827
|
};
|
|
796
|
-
type TModalOverlayStyles = DeepPartialType<typeof
|
|
797
|
-
|
|
798
|
-
|
|
828
|
+
type TModalOverlayStyles = DeepPartialType<typeof _base20>;
|
|
829
|
+
export type TModalOverlayProps = {
|
|
830
|
+
trigger?: ({ handleOpen, handleClose }: {
|
|
831
|
+
handleOpen: () => void;
|
|
832
|
+
handleClose: () => void;
|
|
833
|
+
}) => ReactNode;
|
|
834
|
+
children: ({ handleOpen, handleClose }: {
|
|
835
|
+
handleOpen: () => void;
|
|
836
|
+
handleClose: () => void;
|
|
837
|
+
}) => ReactNode;
|
|
838
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
839
|
+
styles?: TModalOverlayStyles;
|
|
840
|
+
dataCy?: string;
|
|
841
|
+
onOpen?: () => void;
|
|
842
|
+
onClose?: () => void;
|
|
843
|
+
};
|
|
844
|
+
export const ModalOverlay: FC<TModalOverlayProps>;
|
|
845
|
+
declare const _base21: {
|
|
799
846
|
container: {
|
|
800
847
|
outer: string;
|
|
801
848
|
inner: string;
|
|
@@ -820,29 +867,27 @@ declare const base$8: {
|
|
|
820
867
|
};
|
|
821
868
|
};
|
|
822
869
|
};
|
|
823
|
-
type TNotificationOverlayStyles = DeepPartialType<typeof
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
trigger?: ({ onOpen, onClose, }: {
|
|
870
|
+
type TNotificationOverlayStyles = DeepPartialType<typeof _base21>;
|
|
871
|
+
type _TProps11 = {
|
|
872
|
+
trigger?: ({ onOpen, onClose }: {
|
|
827
873
|
onOpen: () => void;
|
|
828
874
|
onClose: () => void;
|
|
829
875
|
}) => ReactNode;
|
|
830
|
-
children: ({ onOpen, onClose
|
|
876
|
+
children: ({ onOpen, onClose }: {
|
|
831
877
|
onOpen: () => void;
|
|
832
878
|
onClose: () => void;
|
|
833
879
|
}) => ReactNode;
|
|
834
880
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
835
881
|
styles?: TNotificationOverlayStyles;
|
|
836
882
|
};
|
|
837
|
-
|
|
883
|
+
export const NotificationOverlay: {
|
|
838
884
|
Container: ({ children, styles: stylesOverrides, }: {
|
|
839
885
|
children: ReactNode;
|
|
840
886
|
styles?: TNotificationOverlayStyles;
|
|
841
|
-
}) =>
|
|
842
|
-
Item: React.FC<
|
|
887
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
888
|
+
Item: React.FC<_TProps11>;
|
|
843
889
|
};
|
|
844
|
-
|
|
845
|
-
declare const base$7: {
|
|
890
|
+
declare const _base22: {
|
|
846
891
|
container: string;
|
|
847
892
|
background: {
|
|
848
893
|
container: string;
|
|
@@ -872,23 +917,21 @@ declare const base$7: {
|
|
|
872
917
|
};
|
|
873
918
|
};
|
|
874
919
|
};
|
|
875
|
-
type TSlideOverOverlayStyles = DeepPartialType<typeof
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
trigger?: ({ handleOpen, handleClose, }: {
|
|
920
|
+
type TSlideOverOverlayStyles = DeepPartialType<typeof _base22>;
|
|
921
|
+
type _TProps12 = {
|
|
922
|
+
trigger?: ({ handleOpen, handleClose }: {
|
|
879
923
|
handleOpen: () => void;
|
|
880
924
|
handleClose: () => void;
|
|
881
925
|
}) => ReactNode;
|
|
882
|
-
children: ({ handleOpen, handleClose
|
|
926
|
+
children: ({ handleOpen, handleClose }: {
|
|
883
927
|
handleOpen: () => void;
|
|
884
928
|
handleClose: () => void;
|
|
885
929
|
}) => ReactNode;
|
|
886
930
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
887
931
|
styles?: TSlideOverOverlayStyles;
|
|
888
932
|
};
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
declare const styles$1: {
|
|
933
|
+
export const SlideOverOverlay: FC<_TProps12>;
|
|
934
|
+
declare const styles: {
|
|
892
935
|
controls: {
|
|
893
936
|
container: string;
|
|
894
937
|
content: string;
|
|
@@ -907,10 +950,8 @@ declare const styles$1: {
|
|
|
907
950
|
label: string;
|
|
908
951
|
icon: string;
|
|
909
952
|
};
|
|
910
|
-
|
|
911
|
-
type
|
|
912
|
-
|
|
913
|
-
type TProps$1 = {
|
|
953
|
+
type TTableColumnOptionsStyles = DeepPartialType<typeof styles>;
|
|
954
|
+
type _TProps13 = {
|
|
914
955
|
table: Table<any>;
|
|
915
956
|
setColumnOrder: Dispatch<SetStateAction<ColumnOrderState>>;
|
|
916
957
|
trigger: ReactNode;
|
|
@@ -921,94 +962,16 @@ type TProps$1 = {
|
|
|
921
962
|
onReset?: () => void;
|
|
922
963
|
};
|
|
923
964
|
};
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
type TProps<TData> = {
|
|
965
|
+
export const TableColumnOptionsCustom: FC<_TProps13>;
|
|
966
|
+
type _TProps14<TData> = {
|
|
927
967
|
table: Table<TData>;
|
|
928
968
|
fileName: string;
|
|
929
|
-
children: ({ handleExport
|
|
969
|
+
children: ({ handleExport }: {
|
|
930
970
|
handleExport: (exportData?: TData[]) => void;
|
|
931
971
|
}) => ReactNode;
|
|
932
972
|
};
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
type TSelectMenuFormProps = {
|
|
936
|
-
name: string;
|
|
937
|
-
label?: string;
|
|
938
|
-
description?: string;
|
|
939
|
-
placeholder?: {
|
|
940
|
-
select?: string;
|
|
941
|
-
searchInput?: string;
|
|
942
|
-
emptyState?: string;
|
|
943
|
-
};
|
|
944
|
-
options: {
|
|
945
|
-
value: string;
|
|
946
|
-
label: string;
|
|
947
|
-
}[];
|
|
948
|
-
required?: ({ isRequired }: {
|
|
949
|
-
isRequired: boolean;
|
|
950
|
-
}) => string | ReactNode;
|
|
951
|
-
value: {
|
|
952
|
-
label: string;
|
|
953
|
-
value: string;
|
|
954
|
-
disabled?: boolean;
|
|
955
|
-
};
|
|
956
|
-
error?: string | Option | Option[];
|
|
957
|
-
isLoading?: boolean;
|
|
958
|
-
isRequired?: boolean;
|
|
959
|
-
isTouched?: boolean;
|
|
960
|
-
isDisabled?: boolean;
|
|
961
|
-
isClearable?: boolean;
|
|
962
|
-
isSearchable?: boolean;
|
|
963
|
-
isMultiple?: boolean;
|
|
964
|
-
isDarkMode?: boolean;
|
|
965
|
-
isSolo?: boolean;
|
|
966
|
-
onChange?: (value: SelectValue) => void;
|
|
967
|
-
onSearchInputChange?: ((e: ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
968
|
-
onClear: (name: string) => void;
|
|
969
|
-
onBlur?: any;
|
|
970
|
-
styles?: TSelectMenuFormStyles;
|
|
971
|
-
};
|
|
972
|
-
declare const SelectMenuForm: FC<TSelectMenuFormProps>;
|
|
973
|
-
|
|
974
|
-
declare const base$6: {
|
|
975
|
-
container: string;
|
|
976
|
-
head: string;
|
|
977
|
-
body: string;
|
|
978
|
-
foot: string;
|
|
979
|
-
label: string;
|
|
980
|
-
hint: string;
|
|
981
|
-
leading: string;
|
|
982
|
-
input: string;
|
|
983
|
-
menuButton: string;
|
|
984
|
-
menu: string;
|
|
985
|
-
tagItem: string;
|
|
986
|
-
tagItemText: string;
|
|
987
|
-
tagItemIconContainer: string;
|
|
988
|
-
tagItemIcon: string;
|
|
989
|
-
list: string;
|
|
990
|
-
listGroupLabel: string;
|
|
991
|
-
listItem: string;
|
|
992
|
-
listDisabledItem: string;
|
|
993
|
-
searchContainer: string;
|
|
994
|
-
searchBox: string;
|
|
995
|
-
searchIcon: string;
|
|
996
|
-
closeIcon: string;
|
|
997
|
-
emptyState: string;
|
|
998
|
-
trailing: string;
|
|
999
|
-
description: string;
|
|
1000
|
-
error: string;
|
|
1001
|
-
};
|
|
1002
|
-
type TSelectMenuFormStyles = DeepPartialType<typeof base$6>;
|
|
1003
|
-
|
|
1004
|
-
type TDateMenuFormProps = Omit<TDateRangeMenuFormProps, 'value' | 'isRanged' | 'onChange'> & {
|
|
1005
|
-
value?: string;
|
|
1006
|
-
isRanged?: false;
|
|
1007
|
-
onChange?: (value: string) => void;
|
|
1008
|
-
};
|
|
1009
|
-
declare const DateMenuForm: FC<TDateMenuFormProps>;
|
|
1010
|
-
|
|
1011
|
-
declare const base$5: {
|
|
973
|
+
export const TableExportCustom: <TData extends object>(props: _TProps14<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
974
|
+
declare const _base23: {
|
|
1012
975
|
container: string;
|
|
1013
976
|
head: string;
|
|
1014
977
|
body: string;
|
|
@@ -1021,9 +984,8 @@ declare const base$5: {
|
|
|
1021
984
|
description: string;
|
|
1022
985
|
error: string;
|
|
1023
986
|
};
|
|
1024
|
-
type
|
|
1025
|
-
|
|
1026
|
-
type TDateRangeMenuFormProps = {
|
|
987
|
+
export type TDateMenuFormStyles = DeepPartialType<typeof _base23>;
|
|
988
|
+
export type TDateRangeMenuFormProps = {
|
|
1027
989
|
name: string;
|
|
1028
990
|
type?: 'normal' | 'inset' | 'overlapping' | 'pill' | 'floored';
|
|
1029
991
|
size?: 'compact' | 'expanded';
|
|
@@ -1059,26 +1021,16 @@ type TDateRangeMenuFormProps = {
|
|
|
1059
1021
|
onClear?: (name: string) => void;
|
|
1060
1022
|
onBlur?: () => void;
|
|
1061
1023
|
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
1062
|
-
styles?:
|
|
1024
|
+
styles?: TDateMenuFormStyles;
|
|
1063
1025
|
};
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
form: FormikProps<FormikValues>;
|
|
1069
|
-
options: {
|
|
1070
|
-
title: string;
|
|
1071
|
-
description?: string;
|
|
1072
|
-
value: string;
|
|
1073
|
-
}[];
|
|
1074
|
-
values: string[];
|
|
1075
|
-
isDisabled?: boolean;
|
|
1026
|
+
export const DateRangeMenuForm: FC<TDateRangeMenuFormProps>;
|
|
1027
|
+
export type TDateMenuFormProps = Omit<TDateRangeMenuFormProps, 'value' | 'isRanged' | 'onChange'> & {
|
|
1028
|
+
value?: string;
|
|
1029
|
+
isRanged?: false;
|
|
1076
1030
|
onChange?: (value: string) => void;
|
|
1077
|
-
styles?: TCheckboxInputGroupFormStyles;
|
|
1078
1031
|
};
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
declare const base$4: {
|
|
1032
|
+
export const DateMenuForm: FC<TDateMenuFormProps>;
|
|
1033
|
+
declare const _base24: {
|
|
1082
1034
|
container: string;
|
|
1083
1035
|
sr: string;
|
|
1084
1036
|
list: string;
|
|
@@ -1091,9 +1043,33 @@ declare const base$4: {
|
|
|
1091
1043
|
description: string;
|
|
1092
1044
|
};
|
|
1093
1045
|
};
|
|
1094
|
-
type TCheckboxInputGroupFormStyles = DeepPartialType<typeof
|
|
1095
|
-
|
|
1096
|
-
|
|
1046
|
+
export type TCheckboxInputGroupFormStyles = DeepPartialType<typeof _base24>;
|
|
1047
|
+
export type TCheckboxInputGroupFormProps = {
|
|
1048
|
+
name: string;
|
|
1049
|
+
form: FormikProps<FormikValues>;
|
|
1050
|
+
options: {
|
|
1051
|
+
title: string;
|
|
1052
|
+
description?: string;
|
|
1053
|
+
value: string;
|
|
1054
|
+
}[];
|
|
1055
|
+
values: string[];
|
|
1056
|
+
isDisabled?: boolean;
|
|
1057
|
+
onChange?: (value: string) => void;
|
|
1058
|
+
styles?: TCheckboxInputGroupFormStyles;
|
|
1059
|
+
};
|
|
1060
|
+
export const __DEPRECATED__CheckboxInputGroupForm: FC<TCheckboxInputGroupFormProps>;
|
|
1061
|
+
declare const _base25: {
|
|
1062
|
+
container: string;
|
|
1063
|
+
head: string;
|
|
1064
|
+
body: string;
|
|
1065
|
+
input: string;
|
|
1066
|
+
inputHidden: string;
|
|
1067
|
+
replacement: string;
|
|
1068
|
+
label: string;
|
|
1069
|
+
description: string;
|
|
1070
|
+
};
|
|
1071
|
+
export type TCheckboxInputFormStyles = DeepPartialType<typeof _base25>;
|
|
1072
|
+
export type TCheckboxInputFormProps = {
|
|
1097
1073
|
name: string;
|
|
1098
1074
|
title?: string;
|
|
1099
1075
|
description?: string;
|
|
@@ -1114,45 +1090,8 @@ type TCheckboxInputFormProps = {
|
|
|
1114
1090
|
indeterminableElement?: ReactNode;
|
|
1115
1091
|
isIndeterminable?: true;
|
|
1116
1092
|
});
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
declare const base$3: {
|
|
1120
|
-
container: string;
|
|
1121
|
-
head: string;
|
|
1122
|
-
body: string;
|
|
1123
|
-
input: string;
|
|
1124
|
-
inputHidden: string;
|
|
1125
|
-
replacement: string;
|
|
1126
|
-
label: string;
|
|
1127
|
-
description: string;
|
|
1128
|
-
};
|
|
1129
|
-
type TCheckboxInputFormStyles = DeepPartialType<typeof base$3>;
|
|
1130
|
-
|
|
1131
|
-
type TSwitchFormProps = {
|
|
1132
|
-
name: string;
|
|
1133
|
-
label?: string;
|
|
1134
|
-
description?: string;
|
|
1135
|
-
required?: ({ isRequired }: {
|
|
1136
|
-
isRequired: boolean;
|
|
1137
|
-
}) => string | ReactNode;
|
|
1138
|
-
isDisabled?: boolean;
|
|
1139
|
-
value: boolean;
|
|
1140
|
-
onChange: (value: boolean) => void;
|
|
1141
|
-
isRequired?: boolean;
|
|
1142
|
-
isTouched?: boolean;
|
|
1143
|
-
error?: string;
|
|
1144
|
-
styles?: TSwitchStylesForm;
|
|
1145
|
-
size?: 'sm' | 'md';
|
|
1146
|
-
} & ({
|
|
1147
|
-
iconAccessorChecked?: undefined;
|
|
1148
|
-
iconAccessorUnchecked?: undefined;
|
|
1149
|
-
} | {
|
|
1150
|
-
iconAccessorChecked: IconName;
|
|
1151
|
-
iconAccessorUnchecked: IconName;
|
|
1152
|
-
});
|
|
1153
|
-
declare const Switch: (props: TSwitchFormProps) => react_jsx_runtime.JSX.Element;
|
|
1154
|
-
|
|
1155
|
-
declare const styles: {
|
|
1093
|
+
export const CheckboxInput: FC<TCheckboxInputFormProps>;
|
|
1094
|
+
declare const _styles1: {
|
|
1156
1095
|
base: {
|
|
1157
1096
|
label: string;
|
|
1158
1097
|
container: string;
|
|
@@ -1198,8 +1137,44 @@ declare const styles: {
|
|
|
1198
1137
|
};
|
|
1199
1138
|
};
|
|
1200
1139
|
};
|
|
1201
|
-
type TSwitchStylesForm = DeepPartialType<typeof
|
|
1202
|
-
|
|
1140
|
+
export type TSwitchStylesForm = DeepPartialType<typeof _styles1>;
|
|
1141
|
+
export type TSwitchFormProps = {
|
|
1142
|
+
name: string;
|
|
1143
|
+
label?: string;
|
|
1144
|
+
description?: string;
|
|
1145
|
+
required?: ({ isRequired }: {
|
|
1146
|
+
isRequired: boolean;
|
|
1147
|
+
}) => string | ReactNode;
|
|
1148
|
+
isDisabled?: boolean;
|
|
1149
|
+
value: boolean;
|
|
1150
|
+
onChange: (value: boolean) => void;
|
|
1151
|
+
isRequired?: boolean;
|
|
1152
|
+
isTouched?: boolean;
|
|
1153
|
+
error?: string;
|
|
1154
|
+
styles?: TSwitchStylesForm;
|
|
1155
|
+
size?: 'sm' | 'md';
|
|
1156
|
+
} & ({
|
|
1157
|
+
iconAccessorChecked?: undefined;
|
|
1158
|
+
iconAccessorUnchecked?: undefined;
|
|
1159
|
+
} | {
|
|
1160
|
+
iconAccessorChecked: IconName;
|
|
1161
|
+
iconAccessorUnchecked: IconName;
|
|
1162
|
+
});
|
|
1163
|
+
export const SwitchForm: (props: TSwitchFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
1164
|
+
declare const _base26: {
|
|
1165
|
+
container: string;
|
|
1166
|
+
head: string;
|
|
1167
|
+
body: string;
|
|
1168
|
+
foot: string;
|
|
1169
|
+
label: string;
|
|
1170
|
+
hint: string;
|
|
1171
|
+
leading: string;
|
|
1172
|
+
input: string;
|
|
1173
|
+
trailing: string;
|
|
1174
|
+
description: string;
|
|
1175
|
+
error: string;
|
|
1176
|
+
};
|
|
1177
|
+
export type TFileInputGroupFormStyles = DeepPartialType<typeof _base26>;
|
|
1203
1178
|
type TFileType = {
|
|
1204
1179
|
name: string;
|
|
1205
1180
|
size: number;
|
|
@@ -1207,7 +1182,7 @@ type TFileType = {
|
|
|
1207
1182
|
blob: string | ArrayBuffer | null;
|
|
1208
1183
|
file: File;
|
|
1209
1184
|
};
|
|
1210
|
-
type TFileInputGroupFormProps = {
|
|
1185
|
+
export type TFileInputGroupFormProps = {
|
|
1211
1186
|
name: string;
|
|
1212
1187
|
label?: string | ReactNode;
|
|
1213
1188
|
description?: string;
|
|
@@ -1230,9 +1205,8 @@ type TFileInputGroupFormProps = {
|
|
|
1230
1205
|
onBlur: FocusEventHandler<HTMLInputElement>;
|
|
1231
1206
|
styles?: TFileInputGroupFormStyles;
|
|
1232
1207
|
};
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
declare const base$2: {
|
|
1208
|
+
export const FileInputGroupForm: FC<TFileInputGroupFormProps>;
|
|
1209
|
+
declare const _base27: {
|
|
1236
1210
|
container: string;
|
|
1237
1211
|
head: string;
|
|
1238
1212
|
body: string;
|
|
@@ -1245,9 +1219,8 @@ declare const base$2: {
|
|
|
1245
1219
|
description: string;
|
|
1246
1220
|
error: string;
|
|
1247
1221
|
};
|
|
1248
|
-
type
|
|
1249
|
-
|
|
1250
|
-
type TOpeningsHourInputGroupFormProps = {
|
|
1222
|
+
export type TOpeningsHourInputGroupFormStyles = DeepPartialType<typeof _base27>;
|
|
1223
|
+
export type TOpeningsHourInputGroupFormProps = {
|
|
1251
1224
|
form: FormikContextType<any>;
|
|
1252
1225
|
name: string;
|
|
1253
1226
|
label?: string | ReactNode;
|
|
@@ -1267,9 +1240,8 @@ type TOpeningsHourInputGroupFormProps = {
|
|
|
1267
1240
|
styles?: TOpeningsHourInputGroupFormStyles;
|
|
1268
1241
|
handleDelete?: (id: string) => void;
|
|
1269
1242
|
};
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
declare const base$1: {
|
|
1243
|
+
export const OpeningsHourInputGroupForm: FC<TOpeningsHourInputGroupFormProps>;
|
|
1244
|
+
declare const _base28: {
|
|
1273
1245
|
container: string;
|
|
1274
1246
|
head: string;
|
|
1275
1247
|
body: string;
|
|
@@ -1281,10 +1253,14 @@ declare const base$1: {
|
|
|
1281
1253
|
trailing: string;
|
|
1282
1254
|
description: string;
|
|
1283
1255
|
error: string;
|
|
1256
|
+
geosuggest: {
|
|
1257
|
+
suggestsClassName: string;
|
|
1258
|
+
suggestItemClassName: string;
|
|
1259
|
+
suggestsHiddenClassName: string;
|
|
1260
|
+
};
|
|
1284
1261
|
};
|
|
1285
|
-
type
|
|
1286
|
-
|
|
1287
|
-
type TAddressInputGroupFormValue = {
|
|
1262
|
+
export type TAddressInputGroupFormStyles = DeepPartialType<typeof _base28>;
|
|
1263
|
+
export type TAddressInputGroupFormValue = {
|
|
1288
1264
|
country: string;
|
|
1289
1265
|
city: string;
|
|
1290
1266
|
street: string;
|
|
@@ -1295,7 +1271,7 @@ type TAddressInputGroupFormValue = {
|
|
|
1295
1271
|
lng: number;
|
|
1296
1272
|
info?: string;
|
|
1297
1273
|
} | null;
|
|
1298
|
-
type TAddressInputGroupFormProps = {
|
|
1274
|
+
export type TAddressInputGroupFormProps = {
|
|
1299
1275
|
name: string;
|
|
1300
1276
|
label?: string | ReactNode;
|
|
1301
1277
|
description?: string;
|
|
@@ -1315,49 +1291,6 @@ type TAddressInputGroupFormProps = {
|
|
|
1315
1291
|
onFocus: any;
|
|
1316
1292
|
styles?: TAddressInputGroupFormStyles;
|
|
1317
1293
|
};
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
declare const base: {
|
|
1321
|
-
container: string;
|
|
1322
|
-
head: string;
|
|
1323
|
-
body: string;
|
|
1324
|
-
foot: string;
|
|
1325
|
-
label: string;
|
|
1326
|
-
hint: string;
|
|
1327
|
-
leading: string;
|
|
1328
|
-
input: string;
|
|
1329
|
-
trailing: string;
|
|
1330
|
-
description: string;
|
|
1331
|
-
error: string;
|
|
1332
|
-
geosuggest: {
|
|
1333
|
-
suggestsClassName: string;
|
|
1334
|
-
suggestItemClassName: string;
|
|
1335
|
-
suggestsHiddenClassName: string;
|
|
1336
|
-
};
|
|
1337
|
-
};
|
|
1338
|
-
type TAddressInputGroupFormStyles = DeepPartialType<typeof base>;
|
|
1339
|
-
|
|
1340
|
-
type TExcelCell = {
|
|
1341
|
-
value: number | string;
|
|
1342
|
-
type?: 'boolean' | 'number' | 'error' | 'string' | 'date';
|
|
1343
|
-
formula?: string;
|
|
1344
|
-
comments?: string;
|
|
1345
|
-
format?: string;
|
|
1346
|
-
link?: string;
|
|
1347
|
-
style?: string;
|
|
1348
|
-
};
|
|
1349
|
-
type TExcelRow = TExcelCell[];
|
|
1350
|
-
type TExcelSheet = {
|
|
1351
|
-
title: string;
|
|
1352
|
-
rows: TExcelRow[];
|
|
1353
|
-
};
|
|
1354
|
-
type TOptions = {
|
|
1355
|
-
fileName: string;
|
|
1356
|
-
};
|
|
1357
|
-
type TReturn<TData> = {
|
|
1358
|
-
generate: (table: Table<TData>, exportData?: TData[]) => TExcelSheet[];
|
|
1359
|
-
write: (sheets: TExcelSheet[], options: TOptions) => void;
|
|
1360
|
-
};
|
|
1361
|
-
declare const useExcel: <TData extends object>() => TReturn<TData>;
|
|
1294
|
+
export const AddressInputGroupForm: FC<TAddressInputGroupFormProps>;
|
|
1362
1295
|
|
|
1363
|
-
|
|
1296
|
+
//# sourceMappingURL=index.d.ts.map
|