@ballistix.digital/react-components 8.5.6 → 8.6.1-rc-141.0
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 +118 -182
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +823 -1370
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +845 -1394
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +32 -27
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import React, { FC, ReactNode, RefObject, MouseEvent, ReactElement, ChangeEventHandler, FocusEventHandler, HTMLInputTypeAttribute, KeyboardEventHandler, MouseEventHandler, ChangeEvent, Dispatch, SetStateAction, ElementType } from "react";
|
|
2
1
|
import { IconName } from "@fortawesome/fontawesome-svg-core";
|
|
2
|
+
import React, { FC, ReactNode, RefObject, MouseEvent, ReactElement, ChangeEventHandler, FocusEventHandler, HTMLInputTypeAttribute, KeyboardEventHandler, MouseEventHandler, ChangeEvent, Dispatch, SetStateAction, ElementType } from "react";
|
|
3
3
|
import { Placement } from "@floating-ui/react";
|
|
4
|
-
import { Menu } from "@headlessui/react";
|
|
5
|
-
import { AnchorProps } from "@headlessui/react/dist/internal/floating";
|
|
4
|
+
import { Menu, MenuItemsProps } from "@headlessui/react";
|
|
6
5
|
import { Option, SelectValue } from "react-tailwindcss-select/dist/components/type";
|
|
7
|
-
import { Table, ColumnDef, ColumnOrderState, SortingState, Row, GroupingState, ExpandedState,
|
|
6
|
+
import { Table, ColumnDef, ColumnOrderState, SortingState, Row, GroupingState, ExpandedState, AggregationFn, CellContext, ColumnDefTemplate, RowData } from "@tanstack/react-table";
|
|
8
7
|
import { DragEndEvent } from "@dnd-kit/core";
|
|
8
|
+
import { ColumnHelper } from "@tanstack/table-core";
|
|
9
9
|
import { JSX } from "react/jsx-runtime";
|
|
10
10
|
import { DateType } from "@ballistix.digital/react-tailwindcss-datepicker";
|
|
11
|
-
import { FormikProps, FormikValues, FormikContextType } from "formik";
|
|
12
11
|
/**
|
|
13
12
|
* Joins valid (truthy) items into a single string, separated by spaces.
|
|
14
13
|
*
|
|
@@ -18,7 +17,7 @@ import { FormikProps, FormikValues, FormikContextType } from "formik";
|
|
|
18
17
|
* @example
|
|
19
18
|
* toClassName("btn", false, "btn-primary"); // => "btn btn-primary"
|
|
20
19
|
*/
|
|
21
|
-
export const toClassName: (...values:
|
|
20
|
+
export const toClassName: (...values: (boolean | string | undefined)[]) => string;
|
|
22
21
|
/**
|
|
23
22
|
* Converts a file size in bytes to a human-readable string (e.g. "1.23 MB").
|
|
24
23
|
*
|
|
@@ -85,7 +84,7 @@ export const toUserName: (user?: TUser) => string;
|
|
|
85
84
|
* toUserInitials({ email: 'test@example.com' }); // => "t"
|
|
86
85
|
*/
|
|
87
86
|
export const toUserInitials: (user?: TUser) => string;
|
|
88
|
-
type
|
|
87
|
+
type TAddressInputGroupFormValue = {
|
|
89
88
|
street?: string;
|
|
90
89
|
houseNumber?: string;
|
|
91
90
|
busNumber?: string;
|
|
@@ -105,7 +104,7 @@ type _TAddressInputGroupFormValue1 = {
|
|
|
105
104
|
* toAddressString({ street: 'Main', houseNumber: '10', zipCode: '1000', city: 'Brussels', country: 'BE' })
|
|
106
105
|
* // => "Main 10, 1000 Brussels, BE"
|
|
107
106
|
*/
|
|
108
|
-
export const toAddressString: (value?: Partial<
|
|
107
|
+
export const toAddressString: (value?: Partial<TAddressInputGroupFormValue> | null) => string;
|
|
109
108
|
/**
|
|
110
109
|
* Generates a Google Maps search URL from an address object, using lat/lng if provided.
|
|
111
110
|
* Otherwise falls back to a text query of the address fields.
|
|
@@ -120,7 +119,13 @@ export const toAddressString: (value?: Partial<_TAddressInputGroupFormValue1> |
|
|
|
120
119
|
* toAddressUrl({ street: 'Main', houseNumber: '10', zipCode: '1000', city: 'Brussels', country: 'BE' });
|
|
121
120
|
* // => "https://www.google.com/maps/search/?api=1&query=Main%2010%201000%20Brussels%20BE"
|
|
122
121
|
*/
|
|
123
|
-
export const toAddressUrl: (value?: Partial<
|
|
122
|
+
export const toAddressUrl: (value?: Partial<TAddressInputGroupFormValue> | null) => string | undefined;
|
|
123
|
+
type TProps = {
|
|
124
|
+
accessor: IconName;
|
|
125
|
+
type?: 'brands' | 'light' | 'regular' | 'solid' | 'thin';
|
|
126
|
+
className?: string;
|
|
127
|
+
};
|
|
128
|
+
export const Icon: FC<TProps>;
|
|
124
129
|
type DeepPartialType<T> = {
|
|
125
130
|
[P in keyof T]?: DeepPartialType<T[P]>;
|
|
126
131
|
};
|
|
@@ -132,8 +137,8 @@ declare const base: {
|
|
|
132
137
|
container: string;
|
|
133
138
|
indicator: string;
|
|
134
139
|
};
|
|
135
|
-
type
|
|
136
|
-
type
|
|
140
|
+
type TAvatarStyles = DeepPartialType<typeof base>;
|
|
141
|
+
type TAvatarProps = {
|
|
137
142
|
src?: string | undefined;
|
|
138
143
|
placeholder?: string | undefined;
|
|
139
144
|
children?: ReactNode | ReactNode[] | string;
|
|
@@ -143,15 +148,9 @@ type TAvatarElementProps = {
|
|
|
143
148
|
status?: 'offline' | 'online' | 'blocked';
|
|
144
149
|
isDisabled?: boolean;
|
|
145
150
|
isLoading?: boolean;
|
|
146
|
-
styles?:
|
|
151
|
+
styles?: TAvatarStyles;
|
|
147
152
|
};
|
|
148
|
-
export const
|
|
149
|
-
type TProps = {
|
|
150
|
-
accessor: IconName;
|
|
151
|
-
type?: 'brands' | 'light' | 'regular' | 'solid' | 'thin';
|
|
152
|
-
className?: string;
|
|
153
|
-
};
|
|
154
|
-
export const IconElement: FC<TProps>;
|
|
153
|
+
export const Avatar: FC<TAvatarProps>;
|
|
155
154
|
declare const _base1: {
|
|
156
155
|
container: string;
|
|
157
156
|
icon: string;
|
|
@@ -165,8 +164,8 @@ declare const _base1: {
|
|
|
165
164
|
inverted: string;
|
|
166
165
|
};
|
|
167
166
|
};
|
|
168
|
-
type
|
|
169
|
-
type
|
|
167
|
+
type TAlertStyles = DeepPartialType<typeof _base1>;
|
|
168
|
+
type TAlertProps = {
|
|
170
169
|
title?: ReactNode;
|
|
171
170
|
message?: ReactNode;
|
|
172
171
|
iconAccessor?: IconName;
|
|
@@ -174,20 +173,20 @@ type TAlertElementProps = {
|
|
|
174
173
|
isCollapsible?: boolean;
|
|
175
174
|
onClose?: () => void;
|
|
176
175
|
onCollapse?: () => void;
|
|
177
|
-
styles?:
|
|
176
|
+
styles?: TAlertStyles;
|
|
178
177
|
};
|
|
179
|
-
export const
|
|
178
|
+
export const Alert: FC<TAlertProps>;
|
|
180
179
|
declare const _base2: {
|
|
181
180
|
container: string;
|
|
182
181
|
indicator: string;
|
|
183
182
|
button: string;
|
|
184
183
|
closeIcon: string;
|
|
185
184
|
};
|
|
186
|
-
type
|
|
187
|
-
type
|
|
188
|
-
type
|
|
185
|
+
type TBadgeStyles = DeepPartialType<typeof _base2>;
|
|
186
|
+
type TBadgeColor = 'gray' | 'red' | 'yellow' | 'green' | 'blue' | 'indigo' | 'purple' | 'pink';
|
|
187
|
+
type TBadgeProps = {
|
|
189
188
|
children: ReactNode;
|
|
190
|
-
color?:
|
|
189
|
+
color?: TBadgeColor;
|
|
191
190
|
type?: 'normal' | 'indicator' | 'close';
|
|
192
191
|
size?: 'sm' | 'lg';
|
|
193
192
|
figure?: 'block' | 'rounded';
|
|
@@ -195,10 +194,10 @@ type TBadgeElementProps = {
|
|
|
195
194
|
isLoading?: boolean;
|
|
196
195
|
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
197
196
|
onClose?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
198
|
-
styles?:
|
|
197
|
+
styles?: TBadgeStyles;
|
|
199
198
|
dataCy?: string;
|
|
200
199
|
};
|
|
201
|
-
export const
|
|
200
|
+
export const Badge: FC<TBadgeProps>;
|
|
202
201
|
declare const _base3: {
|
|
203
202
|
container: string;
|
|
204
203
|
content: string;
|
|
@@ -208,25 +207,25 @@ declare const _base3: {
|
|
|
208
207
|
strokeWidth: string;
|
|
209
208
|
};
|
|
210
209
|
};
|
|
211
|
-
type
|
|
210
|
+
type TTooltipStyles = DeepPartialType<typeof _base3>;
|
|
212
211
|
type _TProps1 = {
|
|
213
212
|
children: ReactNode;
|
|
214
213
|
content: ReactNode;
|
|
215
214
|
placement?: Placement;
|
|
216
215
|
isPointing?: boolean;
|
|
217
216
|
isHidden?: boolean;
|
|
218
|
-
styles?:
|
|
217
|
+
styles?: TTooltipStyles;
|
|
219
218
|
dataCy?: string;
|
|
220
219
|
};
|
|
221
|
-
export const
|
|
220
|
+
export const Tooltip: FC<_TProps1>;
|
|
222
221
|
declare const _base4: {
|
|
223
222
|
container: string;
|
|
224
223
|
content: string;
|
|
225
224
|
icon: string;
|
|
226
225
|
spinner: string;
|
|
227
226
|
};
|
|
228
|
-
type
|
|
229
|
-
export type
|
|
227
|
+
type TButtonStyles = DeepPartialType<typeof _base4>;
|
|
228
|
+
export type TButtonProps = {
|
|
230
229
|
children: ReactNode;
|
|
231
230
|
innerRef?: RefObject<HTMLButtonElement | null>;
|
|
232
231
|
htmlType?: 'button' | 'submit';
|
|
@@ -236,22 +235,22 @@ export type TButtonElementProps = {
|
|
|
236
235
|
status?: 'idle' | 'loading' | 'success' | 'error';
|
|
237
236
|
isDisabled?: boolean;
|
|
238
237
|
dataCy?: string;
|
|
239
|
-
styles?:
|
|
238
|
+
styles?: TButtonStyles;
|
|
240
239
|
onClick?: (e?: MouseEvent<HTMLButtonElement>) => void;
|
|
241
240
|
};
|
|
242
|
-
export const
|
|
241
|
+
export const Button: FC<TButtonProps>;
|
|
243
242
|
declare const _base5: {
|
|
244
243
|
container: string;
|
|
245
244
|
firstButton: string;
|
|
246
245
|
button: string;
|
|
247
246
|
lastButton: string;
|
|
248
247
|
};
|
|
249
|
-
type
|
|
248
|
+
type TButtonGroupStyles = DeepPartialType<typeof _base5>;
|
|
250
249
|
type _TProps2 = {
|
|
251
250
|
children: ReactElement[];
|
|
252
|
-
styles?:
|
|
251
|
+
styles?: TButtonGroupStyles;
|
|
253
252
|
};
|
|
254
|
-
export const
|
|
253
|
+
export const ButtonGroup: FC<_TProps2>;
|
|
255
254
|
declare const _base6: {
|
|
256
255
|
container: string;
|
|
257
256
|
button: string;
|
|
@@ -259,19 +258,19 @@ declare const _base6: {
|
|
|
259
258
|
dots: string;
|
|
260
259
|
items: string;
|
|
261
260
|
};
|
|
262
|
-
type
|
|
261
|
+
type TDropdownStyles = DeepPartialType<typeof _base6>;
|
|
263
262
|
type _TProps3 = {
|
|
264
263
|
children: ReactElement | ReactElement[];
|
|
265
264
|
label?: ReactNode;
|
|
266
265
|
trigger?: ReactNode;
|
|
267
266
|
dataCy?: string;
|
|
268
267
|
type?: 'button' | 'compact';
|
|
269
|
-
direction?:
|
|
268
|
+
direction?: MenuItemsProps['anchor'];
|
|
270
269
|
isDisabled?: boolean;
|
|
271
270
|
isEscapingOverflow?: boolean;
|
|
272
|
-
styles?:
|
|
271
|
+
styles?: TDropdownStyles;
|
|
273
272
|
};
|
|
274
|
-
export const
|
|
273
|
+
export const Dropdown: {
|
|
275
274
|
Container: FC<_TProps3>;
|
|
276
275
|
Item: typeof Menu.Item;
|
|
277
276
|
};
|
|
@@ -283,18 +282,18 @@ declare const styles: {
|
|
|
283
282
|
svg: string;
|
|
284
283
|
};
|
|
285
284
|
};
|
|
286
|
-
type
|
|
285
|
+
type TCollapsibleStyles = DeepPartialType<typeof styles>;
|
|
287
286
|
type _TProps4 = {
|
|
288
287
|
children: ReactNode;
|
|
289
288
|
isDefaultOpen?: boolean;
|
|
290
|
-
styles?:
|
|
289
|
+
styles?: TCollapsibleStyles;
|
|
291
290
|
trigger: (props: {
|
|
292
291
|
handleToggle: () => void;
|
|
293
292
|
rotatingIcon: ReactNode;
|
|
294
293
|
isVisible: boolean;
|
|
295
294
|
}) => ReactNode;
|
|
296
295
|
};
|
|
297
|
-
export const
|
|
296
|
+
export const Collapsible: FC<_TProps4>;
|
|
298
297
|
declare const _base7: {
|
|
299
298
|
container: string;
|
|
300
299
|
icon: string;
|
|
@@ -359,7 +358,7 @@ declare const _base10: {
|
|
|
359
358
|
error: string;
|
|
360
359
|
};
|
|
361
360
|
export type TInputGroupStyles = DeepPartialType<typeof _base10 & TInputHeaderStyles & TInputFooterStyles>;
|
|
362
|
-
export type
|
|
361
|
+
export type TInputGroupProps = TInputHeaderSharedProps & TInputFooterSharedProps & {
|
|
363
362
|
name: string;
|
|
364
363
|
placeholder?: string;
|
|
365
364
|
leading?: ReactNode;
|
|
@@ -371,6 +370,7 @@ export type TInputGroupFormProps = TInputHeaderSharedProps & TInputFooterSharedP
|
|
|
371
370
|
};
|
|
372
371
|
min?: number | string;
|
|
373
372
|
max?: number | string;
|
|
373
|
+
step?: number | string;
|
|
374
374
|
maxLength?: number;
|
|
375
375
|
rows?: number;
|
|
376
376
|
type: 'normal' | 'inset' | 'overlapping' | 'pill' | 'floored';
|
|
@@ -403,18 +403,18 @@ export type TInputGroupFormProps = TInputHeaderSharedProps & TInputFooterSharedP
|
|
|
403
403
|
onClear?: never;
|
|
404
404
|
trailing?: ReactNode;
|
|
405
405
|
});
|
|
406
|
-
export const
|
|
406
|
+
export const InputGroup: FC<TInputGroupProps>;
|
|
407
407
|
declare const _base11: {
|
|
408
408
|
container: string;
|
|
409
409
|
content: string;
|
|
410
410
|
};
|
|
411
|
-
type
|
|
411
|
+
type TContainerStyles = DeepPartialType<typeof _base11>;
|
|
412
412
|
type _TProps5 = {
|
|
413
413
|
children: ReactNode;
|
|
414
414
|
type?: 'break' | 'center' | 'fill';
|
|
415
|
-
styles?:
|
|
415
|
+
styles?: TContainerStyles;
|
|
416
416
|
};
|
|
417
|
-
export const
|
|
417
|
+
export const Container: FC<_TProps5>;
|
|
418
418
|
declare const _base12: {
|
|
419
419
|
container: string;
|
|
420
420
|
head: string;
|
|
@@ -422,25 +422,25 @@ declare const _base12: {
|
|
|
422
422
|
body: string;
|
|
423
423
|
content: string;
|
|
424
424
|
};
|
|
425
|
-
type
|
|
425
|
+
type TDividerStyles = DeepPartialType<typeof _base12>;
|
|
426
426
|
type _TProps6 = {
|
|
427
427
|
children?: ReactNode;
|
|
428
428
|
type?: 'left' | 'center' | 'right';
|
|
429
|
-
styles?:
|
|
429
|
+
styles?: TDividerStyles;
|
|
430
430
|
};
|
|
431
|
-
export const
|
|
431
|
+
export const Divider: FC<_TProps6>;
|
|
432
432
|
declare const _base13: {
|
|
433
433
|
container: string;
|
|
434
434
|
list: string;
|
|
435
435
|
item: string;
|
|
436
436
|
};
|
|
437
|
-
type
|
|
437
|
+
type TListContainerStyles = DeepPartialType<typeof _base13>;
|
|
438
438
|
type _TProps7 = {
|
|
439
439
|
children: ReactElement | ReactElement[];
|
|
440
440
|
type?: 'fill' | 'fill-sticky' | 'center' | 'center-sticky' | 'card' | 'card-sticky';
|
|
441
|
-
styles?:
|
|
441
|
+
styles?: TListContainerStyles;
|
|
442
442
|
};
|
|
443
|
-
export const
|
|
443
|
+
export const ListContainer: FC<_TProps7>;
|
|
444
444
|
declare const _base14: {
|
|
445
445
|
container: string;
|
|
446
446
|
figure: string;
|
|
@@ -448,24 +448,24 @@ declare const _base14: {
|
|
|
448
448
|
title: string;
|
|
449
449
|
paragraph: string;
|
|
450
450
|
};
|
|
451
|
-
type
|
|
451
|
+
type TMediaObjectStyles = DeepPartialType<typeof _base14>;
|
|
452
452
|
type _TProps8 = {
|
|
453
453
|
title: string;
|
|
454
454
|
paragraph: string;
|
|
455
455
|
figure?: ReactNode;
|
|
456
456
|
type?: 'top' | 'top-reversed' | 'center' | 'center-reversed' | 'bottom' | 'bottom-reversed' | 'stretch' | 'stretch-reversed' | 'responsive' | 'responsive-reversed' | 'wide' | 'wide-reversed';
|
|
457
|
-
styles?:
|
|
457
|
+
styles?: TMediaObjectStyles;
|
|
458
458
|
};
|
|
459
|
-
export const
|
|
459
|
+
export const MediaObject: FC<_TProps8>;
|
|
460
460
|
declare const _base15: {
|
|
461
461
|
container: string;
|
|
462
462
|
section: string;
|
|
463
463
|
};
|
|
464
|
-
type
|
|
464
|
+
type TPanelStyles = DeepPartialType<typeof _base15>;
|
|
465
465
|
type TContainerProps = {
|
|
466
466
|
children: ReactNode;
|
|
467
467
|
type?: 'normal' | 'sticky';
|
|
468
|
-
styles?:
|
|
468
|
+
styles?: TPanelStyles;
|
|
469
469
|
};
|
|
470
470
|
type TSectionProps = {
|
|
471
471
|
children: ReactNode;
|
|
@@ -473,7 +473,7 @@ type TSectionProps = {
|
|
|
473
473
|
section: string;
|
|
474
474
|
};
|
|
475
475
|
};
|
|
476
|
-
export const
|
|
476
|
+
export const Panel: {
|
|
477
477
|
Container: React.FC<TContainerProps>;
|
|
478
478
|
Section: React.FC<TSectionProps>;
|
|
479
479
|
};
|
|
@@ -554,8 +554,8 @@ declare const _base18: {
|
|
|
554
554
|
emptyState: string;
|
|
555
555
|
trailing: string;
|
|
556
556
|
};
|
|
557
|
-
export type
|
|
558
|
-
export type
|
|
557
|
+
export type TSelectMenuStyles = DeepPartialType<typeof _base18 & TInputHeaderStyles & TInputFooterStyles>;
|
|
558
|
+
export type TSelectMenuProps = TInputHeaderSharedProps & TInputFooterSharedProps & {
|
|
559
559
|
name: string;
|
|
560
560
|
iconAccessor?: IconName;
|
|
561
561
|
description?: string;
|
|
@@ -568,7 +568,7 @@ export type TSelectMenuFormProps = TInputHeaderSharedProps & TInputFooterSharedP
|
|
|
568
568
|
value: string;
|
|
569
569
|
label: string;
|
|
570
570
|
}[];
|
|
571
|
-
value
|
|
571
|
+
value?: {
|
|
572
572
|
label: string;
|
|
573
573
|
value: string;
|
|
574
574
|
disabled?: boolean;
|
|
@@ -585,9 +585,9 @@ export type TSelectMenuFormProps = TInputHeaderSharedProps & TInputFooterSharedP
|
|
|
585
585
|
onSearchInputChange?: ((e: ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
586
586
|
onClear: (name: string) => void;
|
|
587
587
|
onBlur?: any;
|
|
588
|
-
styles?:
|
|
588
|
+
styles?: TSelectMenuStyles;
|
|
589
589
|
};
|
|
590
|
-
export const
|
|
590
|
+
export const SelectMenu: FC<TSelectMenuProps>;
|
|
591
591
|
type _TProps10 = {
|
|
592
592
|
current?: number;
|
|
593
593
|
min?: number;
|
|
@@ -708,8 +708,8 @@ export type TTableListProps<TData> = {
|
|
|
708
708
|
areControlsVisible?: boolean;
|
|
709
709
|
styles?: TTableListStyles & {
|
|
710
710
|
components: {
|
|
711
|
-
buttonElement:
|
|
712
|
-
dropdownElement:
|
|
711
|
+
buttonElement: TButtonStyles;
|
|
712
|
+
dropdownElement: TDropdownStyles;
|
|
713
713
|
panelPaginationNavigation: TPagePaginationNavigationStyles;
|
|
714
714
|
};
|
|
715
715
|
};
|
|
@@ -773,6 +773,7 @@ declare const _base20: {
|
|
|
773
773
|
};
|
|
774
774
|
cell: string;
|
|
775
775
|
sticky: string;
|
|
776
|
+
groupedRow: string;
|
|
776
777
|
groupedCell: string;
|
|
777
778
|
groupedRowIcon: {
|
|
778
779
|
expand: string;
|
|
@@ -917,7 +918,7 @@ type TListProps = {
|
|
|
917
918
|
styles?: Pick<TTabNavigationStyles, 'list'>;
|
|
918
919
|
};
|
|
919
920
|
type TNavigationItemProps = {
|
|
920
|
-
label:
|
|
921
|
+
label: ReactNode;
|
|
921
922
|
icon?: ReactNode;
|
|
922
923
|
accessor: string;
|
|
923
924
|
href?: string;
|
|
@@ -1124,8 +1125,8 @@ declare const _styles1: {
|
|
|
1124
1125
|
input: string;
|
|
1125
1126
|
label: string;
|
|
1126
1127
|
actions: string;
|
|
1127
|
-
|
|
1128
|
-
|
|
1128
|
+
upIconContainer: string;
|
|
1129
|
+
downIconContainer: string;
|
|
1129
1130
|
};
|
|
1130
1131
|
};
|
|
1131
1132
|
label: string;
|
|
@@ -1342,14 +1343,14 @@ export const toTimeValue: TTimeFormatFunction;
|
|
|
1342
1343
|
* @example
|
|
1343
1344
|
* latestDateString(["2025-01-06", undefined, "2025-01-07"]); // => "2025-01-07"
|
|
1344
1345
|
*/
|
|
1345
|
-
export const latestDateString: (dates?:
|
|
1346
|
+
export const latestDateString: (dates?: (string | undefined)[]) => string;
|
|
1346
1347
|
declare const _base25: {
|
|
1347
1348
|
container: string;
|
|
1348
1349
|
inputWrapper: string;
|
|
1349
1350
|
input: string;
|
|
1350
1351
|
};
|
|
1351
|
-
export type
|
|
1352
|
-
export type
|
|
1352
|
+
export type TDateMenuStyles = DeepPartialType<typeof _base25 & TInputHeaderStyles & TInputFooterStyles>;
|
|
1353
|
+
export type TDateRangeMenuProps = TInputHeaderSharedProps & TInputFooterSharedProps & {
|
|
1353
1354
|
name: string;
|
|
1354
1355
|
type?: 'normal' | 'inset' | 'overlapping' | 'pill' | 'floored';
|
|
1355
1356
|
size?: 'compact' | 'expanded';
|
|
@@ -1369,7 +1370,7 @@ export type TDateRangeMenuFormProps = TInputHeaderSharedProps & TInputFooterShar
|
|
|
1369
1370
|
required?: ({ isRequired }: {
|
|
1370
1371
|
isRequired: boolean;
|
|
1371
1372
|
}) => ReactNode;
|
|
1372
|
-
value
|
|
1373
|
+
value?: {
|
|
1373
1374
|
startDate: DateType;
|
|
1374
1375
|
endDate: DateType;
|
|
1375
1376
|
};
|
|
@@ -1386,43 +1387,15 @@ export type TDateRangeMenuFormProps = TInputHeaderSharedProps & TInputFooterShar
|
|
|
1386
1387
|
onClear?: (name: string) => void;
|
|
1387
1388
|
onBlur?: () => void;
|
|
1388
1389
|
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
1389
|
-
styles?:
|
|
1390
|
+
styles?: TDateMenuStyles;
|
|
1390
1391
|
};
|
|
1391
|
-
export const
|
|
1392
|
-
export type
|
|
1393
|
-
value
|
|
1392
|
+
export const DateRangeMenu: FC<TDateRangeMenuProps>;
|
|
1393
|
+
export type TDateMenuProps = Omit<TDateRangeMenuProps, 'value' | 'isRanged' | 'onChange'> & {
|
|
1394
|
+
value?: DateType;
|
|
1394
1395
|
onChange?: (value: DateType) => void;
|
|
1395
1396
|
};
|
|
1396
|
-
export const
|
|
1397
|
+
export const DateMenu: FC<TDateMenuProps>;
|
|
1397
1398
|
declare const _base26: {
|
|
1398
|
-
container: string;
|
|
1399
|
-
sr: string;
|
|
1400
|
-
list: string;
|
|
1401
|
-
item: {
|
|
1402
|
-
container: string;
|
|
1403
|
-
head: string;
|
|
1404
|
-
body: string;
|
|
1405
|
-
input: string;
|
|
1406
|
-
label: string;
|
|
1407
|
-
description: string;
|
|
1408
|
-
};
|
|
1409
|
-
};
|
|
1410
|
-
export type TCheckboxInputGroupFormStyles = DeepPartialType<typeof _base26>;
|
|
1411
|
-
export type TCheckboxInputGroupFormProps = {
|
|
1412
|
-
name: string;
|
|
1413
|
-
form: FormikProps<FormikValues>;
|
|
1414
|
-
options: {
|
|
1415
|
-
title: string;
|
|
1416
|
-
description?: string;
|
|
1417
|
-
value: string;
|
|
1418
|
-
}[];
|
|
1419
|
-
values: string[];
|
|
1420
|
-
isDisabled?: boolean;
|
|
1421
|
-
onChange?: (value: string) => void;
|
|
1422
|
-
styles?: TCheckboxInputGroupFormStyles;
|
|
1423
|
-
};
|
|
1424
|
-
export const __DEPRECATED__CheckboxInputGroupForm: FC<TCheckboxInputGroupFormProps>;
|
|
1425
|
-
declare const _base27: {
|
|
1426
1399
|
container: string;
|
|
1427
1400
|
head: string;
|
|
1428
1401
|
body: string;
|
|
@@ -1432,30 +1405,28 @@ declare const _base27: {
|
|
|
1432
1405
|
label: string;
|
|
1433
1406
|
description: string;
|
|
1434
1407
|
};
|
|
1435
|
-
export type
|
|
1436
|
-
export type
|
|
1408
|
+
export type TCheckboxInputStyles = DeepPartialType<typeof _base26>;
|
|
1409
|
+
export type TCheckboxInputProps = {
|
|
1437
1410
|
name: string;
|
|
1438
1411
|
title?: string;
|
|
1439
1412
|
description?: string;
|
|
1440
1413
|
isDisabled?: boolean;
|
|
1441
|
-
styles?:
|
|
1442
|
-
} & ({
|
|
1443
|
-
value: boolean;
|
|
1444
|
-
onChange: (value: boolean) => void;
|
|
1414
|
+
styles?: TCheckboxInputStyles;
|
|
1445
1415
|
checkedElement?: ReactNode;
|
|
1446
1416
|
uncheckedElement?: ReactNode;
|
|
1417
|
+
} & ({
|
|
1418
|
+
value?: boolean;
|
|
1419
|
+
onChange?: (value: boolean) => void;
|
|
1447
1420
|
indeterminableElement?: never;
|
|
1448
1421
|
isIndeterminable?: false;
|
|
1449
1422
|
} | {
|
|
1450
|
-
value
|
|
1451
|
-
onChange
|
|
1452
|
-
checkedElement?: ReactNode;
|
|
1453
|
-
uncheckedElement?: ReactNode;
|
|
1423
|
+
value?: boolean | null;
|
|
1424
|
+
onChange?: (value: boolean | null) => void;
|
|
1454
1425
|
indeterminableElement?: ReactNode;
|
|
1455
1426
|
isIndeterminable?: true;
|
|
1456
1427
|
});
|
|
1457
|
-
export const CheckboxInput: FC<
|
|
1458
|
-
declare const
|
|
1428
|
+
export const CheckboxInput: FC<TCheckboxInputProps>;
|
|
1429
|
+
declare const _base27: {
|
|
1459
1430
|
container: string;
|
|
1460
1431
|
foot: string;
|
|
1461
1432
|
switch: {
|
|
@@ -1478,19 +1449,19 @@ declare const _base28: {
|
|
|
1478
1449
|
icon: string;
|
|
1479
1450
|
};
|
|
1480
1451
|
};
|
|
1481
|
-
export type
|
|
1482
|
-
export type
|
|
1452
|
+
export type TSwitchStyles = DeepPartialType<typeof _base27 & TInputHeaderStyles & TInputFooterStyles>;
|
|
1453
|
+
export type TSwitchProps = TInputHeaderSharedProps & TInputFooterSharedProps & {
|
|
1483
1454
|
name: string;
|
|
1484
1455
|
isDisabled?: boolean;
|
|
1485
|
-
value
|
|
1486
|
-
onChange
|
|
1487
|
-
styles?:
|
|
1456
|
+
value?: boolean;
|
|
1457
|
+
onChange?: (value: boolean) => void;
|
|
1458
|
+
styles?: TSwitchStyles;
|
|
1488
1459
|
size?: 'sm' | 'md';
|
|
1489
1460
|
iconAccessorChecked?: IconName;
|
|
1490
1461
|
iconAccessorUnchecked?: IconName;
|
|
1491
1462
|
};
|
|
1492
|
-
export const
|
|
1493
|
-
declare const
|
|
1463
|
+
export const Switch: (props: TSwitchProps) => JSX.Element;
|
|
1464
|
+
declare const _base28: {
|
|
1494
1465
|
container: string;
|
|
1495
1466
|
textAreaWrapper: string;
|
|
1496
1467
|
readOnlyWrapper: string;
|
|
@@ -1532,7 +1503,7 @@ declare const _base29: {
|
|
|
1532
1503
|
container: string;
|
|
1533
1504
|
};
|
|
1534
1505
|
};
|
|
1535
|
-
export type
|
|
1506
|
+
export type TRichTextAreaStyles = DeepPartialType<typeof _base28 & TInputHeaderStyles & TInputFooterStyles>;
|
|
1536
1507
|
type TRichTextToolbarItem = 'bold' | 'italic' | 'underline' | 'code' | 'heading-one' | 'heading-two' | 'block-quote' | 'numbered-list' | 'bulleted-list' | 'left' | 'center' | 'right' | 'justify';
|
|
1537
1508
|
export type TRichTextAreaProps = TInputHeaderSharedProps & TInputFooterSharedProps & {
|
|
1538
1509
|
name?: string;
|
|
@@ -1540,12 +1511,12 @@ export type TRichTextAreaProps = TInputHeaderSharedProps & TInputFooterSharedPro
|
|
|
1540
1511
|
onChange?: (value: string) => void;
|
|
1541
1512
|
placeholder?: string;
|
|
1542
1513
|
className?: string;
|
|
1543
|
-
styles?:
|
|
1514
|
+
styles?: TRichTextAreaStyles;
|
|
1544
1515
|
isReadOnly?: boolean;
|
|
1545
1516
|
toolbarConfig?: TRichTextToolbarItem[];
|
|
1546
1517
|
};
|
|
1547
1518
|
export const RichTextArea: FC<TRichTextAreaProps>;
|
|
1548
|
-
declare const
|
|
1519
|
+
declare const _base29: {
|
|
1549
1520
|
container: string;
|
|
1550
1521
|
head: string;
|
|
1551
1522
|
body: string;
|
|
@@ -1559,7 +1530,7 @@ declare const _base30: {
|
|
|
1559
1530
|
description: string;
|
|
1560
1531
|
error: string;
|
|
1561
1532
|
};
|
|
1562
|
-
export type
|
|
1533
|
+
export type TFileInputGroupStyles = DeepPartialType<typeof _base29>;
|
|
1563
1534
|
type TFileType = {
|
|
1564
1535
|
name: string;
|
|
1565
1536
|
size: number;
|
|
@@ -1567,7 +1538,7 @@ type TFileType = {
|
|
|
1567
1538
|
blob: string | ArrayBuffer | null;
|
|
1568
1539
|
file: File;
|
|
1569
1540
|
};
|
|
1570
|
-
export type
|
|
1541
|
+
export type TFileInputGroupProps = {
|
|
1571
1542
|
name: string;
|
|
1572
1543
|
label?: ReactNode;
|
|
1573
1544
|
description?: string;
|
|
@@ -1587,47 +1558,12 @@ export type TFileInputGroupFormProps = {
|
|
|
1587
1558
|
value?: TFileType;
|
|
1588
1559
|
isDragging: boolean;
|
|
1589
1560
|
}) => ReactNode;
|
|
1590
|
-
onChange
|
|
1561
|
+
onChange?: (files: TFileType[]) => void;
|
|
1591
1562
|
onBlur: FocusEventHandler<HTMLInputElement>;
|
|
1592
|
-
styles?:
|
|
1593
|
-
};
|
|
1594
|
-
export const FileInputGroupForm: FC<TFileInputGroupFormProps>;
|
|
1595
|
-
declare const _base31: {
|
|
1596
|
-
container: string;
|
|
1597
|
-
head: string;
|
|
1598
|
-
body: string;
|
|
1599
|
-
foot: string;
|
|
1600
|
-
label: string;
|
|
1601
|
-
hint: string;
|
|
1602
|
-
leading: string;
|
|
1603
|
-
input: string;
|
|
1604
|
-
trailing: string;
|
|
1605
|
-
description: string;
|
|
1606
|
-
error: string;
|
|
1607
|
-
};
|
|
1608
|
-
export type TOpeningsHourInputGroupFormStyles = DeepPartialType<typeof _base31>;
|
|
1609
|
-
export type TOpeningsHourInputGroupFormProps = {
|
|
1610
|
-
form: FormikContextType<any>;
|
|
1611
|
-
name: string;
|
|
1612
|
-
label?: ReactNode;
|
|
1613
|
-
description?: string;
|
|
1614
|
-
required?: ({ isRequired }: {
|
|
1615
|
-
isRequired: boolean;
|
|
1616
|
-
}) => ReactNode;
|
|
1617
|
-
value?: any[];
|
|
1618
|
-
error?: string;
|
|
1619
|
-
lang?: 'en' | 'nl';
|
|
1620
|
-
isValid?: boolean;
|
|
1621
|
-
isDisabled?: boolean;
|
|
1622
|
-
isRequired?: boolean;
|
|
1623
|
-
isTouched?: boolean;
|
|
1624
|
-
onChange: any;
|
|
1625
|
-
onBlur: any;
|
|
1626
|
-
styles?: TOpeningsHourInputGroupFormStyles;
|
|
1627
|
-
handleDelete?: (id: string) => void;
|
|
1563
|
+
styles?: TFileInputGroupStyles;
|
|
1628
1564
|
};
|
|
1629
|
-
export const
|
|
1630
|
-
declare const
|
|
1565
|
+
export const FileInputGroup: FC<TFileInputGroupProps>;
|
|
1566
|
+
declare const _base30: {
|
|
1631
1567
|
container: string;
|
|
1632
1568
|
head: string;
|
|
1633
1569
|
body: string;
|
|
@@ -1645,8 +1581,8 @@ declare const _base32: {
|
|
|
1645
1581
|
suggestsHiddenClassName: string;
|
|
1646
1582
|
};
|
|
1647
1583
|
};
|
|
1648
|
-
export type
|
|
1649
|
-
export type
|
|
1584
|
+
export type TAddressInputGroupStyles = DeepPartialType<typeof _base30>;
|
|
1585
|
+
export type TAddressInputGroupValue = {
|
|
1650
1586
|
country: string;
|
|
1651
1587
|
city: string;
|
|
1652
1588
|
street: string;
|
|
@@ -1657,7 +1593,7 @@ export type TAddressInputGroupFormValue = {
|
|
|
1657
1593
|
lng: number;
|
|
1658
1594
|
info?: string;
|
|
1659
1595
|
} | null;
|
|
1660
|
-
export type
|
|
1596
|
+
export type TAddressInputGroupProps = {
|
|
1661
1597
|
name: string;
|
|
1662
1598
|
label?: ReactNode;
|
|
1663
1599
|
description?: string;
|
|
@@ -1672,17 +1608,17 @@ export type TAddressInputGroupFormProps = {
|
|
|
1672
1608
|
isDisabled?: boolean;
|
|
1673
1609
|
isRequired?: boolean;
|
|
1674
1610
|
isTouched?: boolean;
|
|
1675
|
-
onChange
|
|
1676
|
-
onBlur
|
|
1677
|
-
onFocus
|
|
1678
|
-
styles?:
|
|
1611
|
+
onChange?: any;
|
|
1612
|
+
onBlur?: any;
|
|
1613
|
+
onFocus?: any;
|
|
1614
|
+
styles?: TAddressInputGroupStyles;
|
|
1679
1615
|
};
|
|
1680
|
-
export const
|
|
1616
|
+
export const AddressInputGroup: FC<TAddressInputGroupProps>;
|
|
1681
1617
|
export type StringColumn = string | undefined | null;
|
|
1682
1618
|
export type BadgeColumn = {
|
|
1683
1619
|
value: string;
|
|
1684
1620
|
label: ReactNode;
|
|
1685
|
-
color?:
|
|
1621
|
+
color?: TBadgeColor;
|
|
1686
1622
|
} | undefined | null;
|
|
1687
1623
|
export type LinkColumn = {
|
|
1688
1624
|
label: ReactNode;
|