@ballistix.digital/react-components 8.6.0 → 8.6.1-rc-311.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 +108 -109
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +821 -751
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +843 -773
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -8
- package/dist/lib/tsconfig.tsbuildinfo +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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
4
|
import { Menu, MenuItemsProps } from "@headlessui/react";
|
|
5
5
|
import { Option, SelectValue } from "react-tailwindcss-select/dist/components/type";
|
|
@@ -17,7 +17,7 @@ import { DateType } from "@ballistix.digital/react-tailwindcss-datepicker";
|
|
|
17
17
|
* @example
|
|
18
18
|
* toClassName("btn", false, "btn-primary"); // => "btn btn-primary"
|
|
19
19
|
*/
|
|
20
|
-
export const toClassName: (...values:
|
|
20
|
+
export const toClassName: (...values: (boolean | string | undefined)[]) => string;
|
|
21
21
|
/**
|
|
22
22
|
* Converts a file size in bytes to a human-readable string (e.g. "1.23 MB").
|
|
23
23
|
*
|
|
@@ -84,7 +84,7 @@ export const toUserName: (user?: TUser) => string;
|
|
|
84
84
|
* toUserInitials({ email: 'test@example.com' }); // => "t"
|
|
85
85
|
*/
|
|
86
86
|
export const toUserInitials: (user?: TUser) => string;
|
|
87
|
-
type
|
|
87
|
+
type TAddressInputGroupFormValue = {
|
|
88
88
|
street?: string;
|
|
89
89
|
houseNumber?: string;
|
|
90
90
|
busNumber?: string;
|
|
@@ -104,7 +104,7 @@ type _TAddressInputGroupFormValue1 = {
|
|
|
104
104
|
* toAddressString({ street: 'Main', houseNumber: '10', zipCode: '1000', city: 'Brussels', country: 'BE' })
|
|
105
105
|
* // => "Main 10, 1000 Brussels, BE"
|
|
106
106
|
*/
|
|
107
|
-
export const toAddressString: (value?: Partial<
|
|
107
|
+
export const toAddressString: (value?: Partial<TAddressInputGroupFormValue> | null) => string;
|
|
108
108
|
/**
|
|
109
109
|
* Generates a Google Maps search URL from an address object, using lat/lng if provided.
|
|
110
110
|
* Otherwise falls back to a text query of the address fields.
|
|
@@ -119,7 +119,13 @@ export const toAddressString: (value?: Partial<_TAddressInputGroupFormValue1> |
|
|
|
119
119
|
* toAddressUrl({ street: 'Main', houseNumber: '10', zipCode: '1000', city: 'Brussels', country: 'BE' });
|
|
120
120
|
* // => "https://www.google.com/maps/search/?api=1&query=Main%2010%201000%20Brussels%20BE"
|
|
121
121
|
*/
|
|
122
|
-
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>;
|
|
123
129
|
type DeepPartialType<T> = {
|
|
124
130
|
[P in keyof T]?: DeepPartialType<T[P]>;
|
|
125
131
|
};
|
|
@@ -131,8 +137,8 @@ declare const base: {
|
|
|
131
137
|
container: string;
|
|
132
138
|
indicator: string;
|
|
133
139
|
};
|
|
134
|
-
type
|
|
135
|
-
type
|
|
140
|
+
type TAvatarStyles = DeepPartialType<typeof base>;
|
|
141
|
+
type TAvatarProps = {
|
|
136
142
|
src?: string | undefined;
|
|
137
143
|
placeholder?: string | undefined;
|
|
138
144
|
children?: ReactNode | ReactNode[] | string;
|
|
@@ -142,15 +148,9 @@ type TAvatarElementProps = {
|
|
|
142
148
|
status?: 'offline' | 'online' | 'blocked';
|
|
143
149
|
isDisabled?: boolean;
|
|
144
150
|
isLoading?: boolean;
|
|
145
|
-
styles?:
|
|
151
|
+
styles?: TAvatarStyles;
|
|
146
152
|
};
|
|
147
|
-
export const
|
|
148
|
-
type TProps = {
|
|
149
|
-
accessor: IconName;
|
|
150
|
-
type?: 'brands' | 'light' | 'regular' | 'solid' | 'thin';
|
|
151
|
-
className?: string;
|
|
152
|
-
};
|
|
153
|
-
export const IconElement: FC<TProps>;
|
|
153
|
+
export const Avatar: FC<TAvatarProps>;
|
|
154
154
|
declare const _base1: {
|
|
155
155
|
container: string;
|
|
156
156
|
icon: string;
|
|
@@ -164,8 +164,8 @@ declare const _base1: {
|
|
|
164
164
|
inverted: string;
|
|
165
165
|
};
|
|
166
166
|
};
|
|
167
|
-
type
|
|
168
|
-
type
|
|
167
|
+
type TAlertStyles = DeepPartialType<typeof _base1>;
|
|
168
|
+
type TAlertProps = {
|
|
169
169
|
title?: ReactNode;
|
|
170
170
|
message?: ReactNode;
|
|
171
171
|
iconAccessor?: IconName;
|
|
@@ -173,20 +173,20 @@ type TAlertElementProps = {
|
|
|
173
173
|
isCollapsible?: boolean;
|
|
174
174
|
onClose?: () => void;
|
|
175
175
|
onCollapse?: () => void;
|
|
176
|
-
styles?:
|
|
176
|
+
styles?: TAlertStyles;
|
|
177
177
|
};
|
|
178
|
-
export const
|
|
178
|
+
export const Alert: FC<TAlertProps>;
|
|
179
179
|
declare const _base2: {
|
|
180
180
|
container: string;
|
|
181
181
|
indicator: string;
|
|
182
182
|
button: string;
|
|
183
183
|
closeIcon: string;
|
|
184
184
|
};
|
|
185
|
-
type
|
|
186
|
-
type
|
|
187
|
-
type
|
|
185
|
+
type TBadgeStyles = DeepPartialType<typeof _base2>;
|
|
186
|
+
type TBadgeColor = 'gray' | 'red' | 'yellow' | 'green' | 'blue' | 'indigo' | 'purple' | 'pink';
|
|
187
|
+
type TBadgeProps = {
|
|
188
188
|
children: ReactNode;
|
|
189
|
-
color?:
|
|
189
|
+
color?: TBadgeColor;
|
|
190
190
|
type?: 'normal' | 'indicator' | 'close';
|
|
191
191
|
size?: 'sm' | 'lg';
|
|
192
192
|
figure?: 'block' | 'rounded';
|
|
@@ -194,10 +194,10 @@ type TBadgeElementProps = {
|
|
|
194
194
|
isLoading?: boolean;
|
|
195
195
|
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
196
196
|
onClose?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
197
|
-
styles?:
|
|
197
|
+
styles?: TBadgeStyles;
|
|
198
198
|
dataCy?: string;
|
|
199
199
|
};
|
|
200
|
-
export const
|
|
200
|
+
export const Badge: FC<TBadgeProps>;
|
|
201
201
|
declare const _base3: {
|
|
202
202
|
container: string;
|
|
203
203
|
content: string;
|
|
@@ -207,25 +207,25 @@ declare const _base3: {
|
|
|
207
207
|
strokeWidth: string;
|
|
208
208
|
};
|
|
209
209
|
};
|
|
210
|
-
type
|
|
210
|
+
type TTooltipStyles = DeepPartialType<typeof _base3>;
|
|
211
211
|
type _TProps1 = {
|
|
212
212
|
children: ReactNode;
|
|
213
213
|
content: ReactNode;
|
|
214
214
|
placement?: Placement;
|
|
215
215
|
isPointing?: boolean;
|
|
216
216
|
isHidden?: boolean;
|
|
217
|
-
styles?:
|
|
217
|
+
styles?: TTooltipStyles;
|
|
218
218
|
dataCy?: string;
|
|
219
219
|
};
|
|
220
|
-
export const
|
|
220
|
+
export const Tooltip: FC<_TProps1>;
|
|
221
221
|
declare const _base4: {
|
|
222
222
|
container: string;
|
|
223
223
|
content: string;
|
|
224
224
|
icon: string;
|
|
225
225
|
spinner: string;
|
|
226
226
|
};
|
|
227
|
-
type
|
|
228
|
-
export type
|
|
227
|
+
type TButtonStyles = DeepPartialType<typeof _base4>;
|
|
228
|
+
export type TButtonProps = {
|
|
229
229
|
children: ReactNode;
|
|
230
230
|
innerRef?: RefObject<HTMLButtonElement | null>;
|
|
231
231
|
htmlType?: 'button' | 'submit';
|
|
@@ -235,22 +235,22 @@ export type TButtonElementProps = {
|
|
|
235
235
|
status?: 'idle' | 'loading' | 'success' | 'error';
|
|
236
236
|
isDisabled?: boolean;
|
|
237
237
|
dataCy?: string;
|
|
238
|
-
styles?:
|
|
238
|
+
styles?: TButtonStyles;
|
|
239
239
|
onClick?: (e?: MouseEvent<HTMLButtonElement>) => void;
|
|
240
240
|
};
|
|
241
|
-
export const
|
|
241
|
+
export const Button: FC<TButtonProps>;
|
|
242
242
|
declare const _base5: {
|
|
243
243
|
container: string;
|
|
244
244
|
firstButton: string;
|
|
245
245
|
button: string;
|
|
246
246
|
lastButton: string;
|
|
247
247
|
};
|
|
248
|
-
type
|
|
248
|
+
type TButtonGroupStyles = DeepPartialType<typeof _base5>;
|
|
249
249
|
type _TProps2 = {
|
|
250
250
|
children: ReactElement[];
|
|
251
|
-
styles?:
|
|
251
|
+
styles?: TButtonGroupStyles;
|
|
252
252
|
};
|
|
253
|
-
export const
|
|
253
|
+
export const ButtonGroup: FC<_TProps2>;
|
|
254
254
|
declare const _base6: {
|
|
255
255
|
container: string;
|
|
256
256
|
button: string;
|
|
@@ -258,7 +258,7 @@ declare const _base6: {
|
|
|
258
258
|
dots: string;
|
|
259
259
|
items: string;
|
|
260
260
|
};
|
|
261
|
-
type
|
|
261
|
+
type TDropdownStyles = DeepPartialType<typeof _base6>;
|
|
262
262
|
type _TProps3 = {
|
|
263
263
|
children: ReactElement | ReactElement[];
|
|
264
264
|
label?: ReactNode;
|
|
@@ -268,9 +268,9 @@ type _TProps3 = {
|
|
|
268
268
|
direction?: MenuItemsProps['anchor'];
|
|
269
269
|
isDisabled?: boolean;
|
|
270
270
|
isEscapingOverflow?: boolean;
|
|
271
|
-
styles?:
|
|
271
|
+
styles?: TDropdownStyles;
|
|
272
272
|
};
|
|
273
|
-
export const
|
|
273
|
+
export const Dropdown: {
|
|
274
274
|
Container: FC<_TProps3>;
|
|
275
275
|
Item: typeof Menu.Item;
|
|
276
276
|
};
|
|
@@ -282,18 +282,18 @@ declare const styles: {
|
|
|
282
282
|
svg: string;
|
|
283
283
|
};
|
|
284
284
|
};
|
|
285
|
-
type
|
|
285
|
+
type TCollapsibleStyles = DeepPartialType<typeof styles>;
|
|
286
286
|
type _TProps4 = {
|
|
287
287
|
children: ReactNode;
|
|
288
288
|
isDefaultOpen?: boolean;
|
|
289
|
-
styles?:
|
|
289
|
+
styles?: TCollapsibleStyles;
|
|
290
290
|
trigger: (props: {
|
|
291
291
|
handleToggle: () => void;
|
|
292
292
|
rotatingIcon: ReactNode;
|
|
293
293
|
isVisible: boolean;
|
|
294
294
|
}) => ReactNode;
|
|
295
295
|
};
|
|
296
|
-
export const
|
|
296
|
+
export const Collapsible: FC<_TProps4>;
|
|
297
297
|
declare const _base7: {
|
|
298
298
|
container: string;
|
|
299
299
|
icon: string;
|
|
@@ -358,7 +358,7 @@ declare const _base10: {
|
|
|
358
358
|
error: string;
|
|
359
359
|
};
|
|
360
360
|
export type TInputGroupStyles = DeepPartialType<typeof _base10 & TInputHeaderStyles & TInputFooterStyles>;
|
|
361
|
-
export type
|
|
361
|
+
export type TInputGroupProps = TInputHeaderSharedProps & TInputFooterSharedProps & {
|
|
362
362
|
name: string;
|
|
363
363
|
placeholder?: string;
|
|
364
364
|
leading?: ReactNode;
|
|
@@ -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;
|
|
@@ -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,14 +1387,14 @@ 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
1399
|
container: string;
|
|
1399
1400
|
head: string;
|
|
@@ -1404,29 +1405,27 @@ declare const _base26: {
|
|
|
1404
1405
|
label: string;
|
|
1405
1406
|
description: string;
|
|
1406
1407
|
};
|
|
1407
|
-
export type
|
|
1408
|
-
export type
|
|
1408
|
+
export type TCheckboxInputStyles = DeepPartialType<typeof _base26>;
|
|
1409
|
+
export type TCheckboxInputProps = {
|
|
1409
1410
|
name: string;
|
|
1410
1411
|
title?: string;
|
|
1411
1412
|
description?: string;
|
|
1412
1413
|
isDisabled?: boolean;
|
|
1413
|
-
styles?:
|
|
1414
|
-
} & ({
|
|
1415
|
-
value: boolean;
|
|
1416
|
-
onChange: (value: boolean) => void;
|
|
1414
|
+
styles?: TCheckboxInputStyles;
|
|
1417
1415
|
checkedElement?: ReactNode;
|
|
1418
1416
|
uncheckedElement?: ReactNode;
|
|
1417
|
+
} & ({
|
|
1418
|
+
value?: boolean;
|
|
1419
|
+
onChange?: (value: boolean) => void;
|
|
1419
1420
|
indeterminableElement?: never;
|
|
1420
1421
|
isIndeterminable?: false;
|
|
1421
1422
|
} | {
|
|
1422
|
-
value
|
|
1423
|
-
onChange
|
|
1424
|
-
checkedElement?: ReactNode;
|
|
1425
|
-
uncheckedElement?: ReactNode;
|
|
1423
|
+
value?: boolean | null;
|
|
1424
|
+
onChange?: (value: boolean | null) => void;
|
|
1426
1425
|
indeterminableElement?: ReactNode;
|
|
1427
1426
|
isIndeterminable?: true;
|
|
1428
1427
|
});
|
|
1429
|
-
export const CheckboxInput: FC<
|
|
1428
|
+
export const CheckboxInput: FC<TCheckboxInputProps>;
|
|
1430
1429
|
declare const _base27: {
|
|
1431
1430
|
container: string;
|
|
1432
1431
|
foot: string;
|
|
@@ -1450,18 +1449,18 @@ declare const _base27: {
|
|
|
1450
1449
|
icon: string;
|
|
1451
1450
|
};
|
|
1452
1451
|
};
|
|
1453
|
-
export type
|
|
1454
|
-
export type
|
|
1452
|
+
export type TSwitchStyles = DeepPartialType<typeof _base27 & TInputHeaderStyles & TInputFooterStyles>;
|
|
1453
|
+
export type TSwitchProps = TInputHeaderSharedProps & TInputFooterSharedProps & {
|
|
1455
1454
|
name: string;
|
|
1456
1455
|
isDisabled?: boolean;
|
|
1457
|
-
value
|
|
1458
|
-
onChange
|
|
1459
|
-
styles?:
|
|
1456
|
+
value?: boolean;
|
|
1457
|
+
onChange?: (value: boolean) => void;
|
|
1458
|
+
styles?: TSwitchStyles;
|
|
1460
1459
|
size?: 'sm' | 'md';
|
|
1461
1460
|
iconAccessorChecked?: IconName;
|
|
1462
1461
|
iconAccessorUnchecked?: IconName;
|
|
1463
1462
|
};
|
|
1464
|
-
export const
|
|
1463
|
+
export const Switch: (props: TSwitchProps) => JSX.Element;
|
|
1465
1464
|
declare const _base28: {
|
|
1466
1465
|
container: string;
|
|
1467
1466
|
textAreaWrapper: string;
|
|
@@ -1504,7 +1503,7 @@ declare const _base28: {
|
|
|
1504
1503
|
container: string;
|
|
1505
1504
|
};
|
|
1506
1505
|
};
|
|
1507
|
-
export type
|
|
1506
|
+
export type TRichTextAreaStyles = DeepPartialType<typeof _base28 & TInputHeaderStyles & TInputFooterStyles>;
|
|
1508
1507
|
type TRichTextToolbarItem = 'bold' | 'italic' | 'underline' | 'code' | 'heading-one' | 'heading-two' | 'block-quote' | 'numbered-list' | 'bulleted-list' | 'left' | 'center' | 'right' | 'justify';
|
|
1509
1508
|
export type TRichTextAreaProps = TInputHeaderSharedProps & TInputFooterSharedProps & {
|
|
1510
1509
|
name?: string;
|
|
@@ -1512,7 +1511,7 @@ export type TRichTextAreaProps = TInputHeaderSharedProps & TInputFooterSharedPro
|
|
|
1512
1511
|
onChange?: (value: string) => void;
|
|
1513
1512
|
placeholder?: string;
|
|
1514
1513
|
className?: string;
|
|
1515
|
-
styles?:
|
|
1514
|
+
styles?: TRichTextAreaStyles;
|
|
1516
1515
|
isReadOnly?: boolean;
|
|
1517
1516
|
toolbarConfig?: TRichTextToolbarItem[];
|
|
1518
1517
|
};
|
|
@@ -1531,7 +1530,7 @@ declare const _base29: {
|
|
|
1531
1530
|
description: string;
|
|
1532
1531
|
error: string;
|
|
1533
1532
|
};
|
|
1534
|
-
export type
|
|
1533
|
+
export type TFileInputGroupStyles = DeepPartialType<typeof _base29>;
|
|
1535
1534
|
type TFileType = {
|
|
1536
1535
|
name: string;
|
|
1537
1536
|
size: number;
|
|
@@ -1539,7 +1538,7 @@ type TFileType = {
|
|
|
1539
1538
|
blob: string | ArrayBuffer | null;
|
|
1540
1539
|
file: File;
|
|
1541
1540
|
};
|
|
1542
|
-
export type
|
|
1541
|
+
export type TFileInputGroupProps = {
|
|
1543
1542
|
name: string;
|
|
1544
1543
|
label?: ReactNode;
|
|
1545
1544
|
description?: string;
|
|
@@ -1559,11 +1558,11 @@ export type TFileInputGroupFormProps = {
|
|
|
1559
1558
|
value?: TFileType;
|
|
1560
1559
|
isDragging: boolean;
|
|
1561
1560
|
}) => ReactNode;
|
|
1562
|
-
onChange
|
|
1561
|
+
onChange?: (files: TFileType[]) => void;
|
|
1563
1562
|
onBlur: FocusEventHandler<HTMLInputElement>;
|
|
1564
|
-
styles?:
|
|
1563
|
+
styles?: TFileInputGroupStyles;
|
|
1565
1564
|
};
|
|
1566
|
-
export const
|
|
1565
|
+
export const FileInputGroup: FC<TFileInputGroupProps>;
|
|
1567
1566
|
declare const _base30: {
|
|
1568
1567
|
container: string;
|
|
1569
1568
|
head: string;
|
|
@@ -1582,8 +1581,8 @@ declare const _base30: {
|
|
|
1582
1581
|
suggestsHiddenClassName: string;
|
|
1583
1582
|
};
|
|
1584
1583
|
};
|
|
1585
|
-
export type
|
|
1586
|
-
export type
|
|
1584
|
+
export type TAddressInputGroupStyles = DeepPartialType<typeof _base30>;
|
|
1585
|
+
export type TAddressInputGroupValue = {
|
|
1587
1586
|
country: string;
|
|
1588
1587
|
city: string;
|
|
1589
1588
|
street: string;
|
|
@@ -1594,7 +1593,7 @@ export type TAddressInputGroupFormValue = {
|
|
|
1594
1593
|
lng: number;
|
|
1595
1594
|
info?: string;
|
|
1596
1595
|
} | null;
|
|
1597
|
-
export type
|
|
1596
|
+
export type TAddressInputGroupProps = {
|
|
1598
1597
|
name: string;
|
|
1599
1598
|
label?: ReactNode;
|
|
1600
1599
|
description?: string;
|
|
@@ -1609,17 +1608,17 @@ export type TAddressInputGroupFormProps = {
|
|
|
1609
1608
|
isDisabled?: boolean;
|
|
1610
1609
|
isRequired?: boolean;
|
|
1611
1610
|
isTouched?: boolean;
|
|
1612
|
-
onChange
|
|
1613
|
-
onBlur
|
|
1614
|
-
onFocus
|
|
1615
|
-
styles?:
|
|
1611
|
+
onChange?: any;
|
|
1612
|
+
onBlur?: any;
|
|
1613
|
+
onFocus?: any;
|
|
1614
|
+
styles?: TAddressInputGroupStyles;
|
|
1616
1615
|
};
|
|
1617
|
-
export const
|
|
1616
|
+
export const AddressInputGroup: FC<TAddressInputGroupProps>;
|
|
1618
1617
|
export type StringColumn = string | undefined | null;
|
|
1619
1618
|
export type BadgeColumn = {
|
|
1620
1619
|
value: string;
|
|
1621
1620
|
label: ReactNode;
|
|
1622
|
-
color?:
|
|
1621
|
+
color?: TBadgeColor;
|
|
1623
1622
|
} | undefined | null;
|
|
1624
1623
|
export type LinkColumn = {
|
|
1625
1624
|
label: ReactNode;
|