vrfi-design-system 1.0.73 → 1.0.75

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 CHANGED
@@ -16,6 +16,7 @@ import { CheckboxOptionType } from 'antd/lib/checkbox/Group';
16
16
  import { default as Col } from 'antd/lib/col';
17
17
  import { Colors } from '../../enums/colors.enum';
18
18
  import { ColProps } from 'antd/lib/col';
19
+ import { ColumnSortOrder } from './../../enums/columnSortOrder.enum';
19
20
  import { ColumnsType } from 'antd/es/table/InternalTable';
20
21
  import { ColumnType } from 'antd/lib/table';
21
22
  import { ComponentProps } from 'react';
@@ -45,6 +46,8 @@ import { Icons } from '../../enums/icons.enum';
45
46
  import { Icons as Icons_2 } from '../../../enums/icons.enum';
46
47
  import { InputProps } from 'antd/lib';
47
48
  import { InputProps as InputProps_2 } from 'antd';
49
+ import { InputRef } from 'antd';
50
+ import { InputRef as InputRef_2 } from 'antd/lib/input';
48
51
  import { InputTypes } from '../../enums/inputType.enum';
49
52
  import { InputTypes as InputTypes_2 } from '../../../enums/inputType.enum';
50
53
  import { JobTypeEnum } from '../../enums/jobType.enum';
@@ -55,18 +58,23 @@ import { LabelType } from './../../enums/labelType.enum';
55
58
  import { LabelType as LabelType_2 } from '../../../enums/labelType.enum';
56
59
  import { LoaderSizes } from '../../../enums/LoaderSizes';
57
60
  import { MenuProps } from 'antd/lib';
61
+ import { Meta } from '../../models/Meta/meta.model';
62
+ import { Meta as Meta_2 } from '../../../models/Meta/meta.model';
58
63
  import { MobileInputValue } from '../types/mobileInputValue.type';
59
64
  import { MobileInputValue as MobileInputValue_2 } from '../../../types/mobileInputValue.type';
60
65
  import { ModalProps as ModalProps_2 } from 'antd/lib/modal';
61
66
  import { MouseEvent as MouseEvent_2 } from 'react';
62
67
  import { NotificationTypes } from '../../enums/notificationTypes';
68
+ import { PaginationMeta } from '../../models/PaginationMeta/paginationMeta.model';
69
+ import { PaginationMeta as PaginationMeta_2 } from '../../../models/PaginationMeta/paginationMeta.model';
63
70
  import { PasswordProps } from 'antd/es/input';
64
71
  import { Placement } from '../../enums/placement';
65
72
  import { default as Popover } from 'antd/lib/popover';
66
73
  import { PopoverProps } from 'antd';
67
74
  import { ProfileDetailFooterTypes } from '../../enums/profileDetailFooter.enum';
68
75
  import { PropsWithChildren } from 'react';
69
- import { Radio as Radio_2 } from 'antd';
76
+ import { QueryParams } from '../../models/QueryParams/queryParams.model';
77
+ import { QueryParams as QueryParams_2 } from '../../../models/QueryParams/queryParams.model';
70
78
  import { RadioChangeEvent } from 'antd';
71
79
  import { RadioGroupProps } from 'antd';
72
80
  import { RadioProps as RadioProps_2 } from 'antd';
@@ -87,6 +95,7 @@ import { SizeType as SizeType_2 } from 'antd/es/config-provider/SizeContext';
87
95
  import { SkeletonProps } from 'antd';
88
96
  import { SorterResult } from 'antd/lib/table/interface';
89
97
  import { SortOrder } from 'antd/lib/table/interface';
98
+ import { SortOrderKeys } from './../../enums/sortOrderKeys.enum';
90
99
  import { default as Space } from 'antd/lib/space';
91
100
  import { StatusTypes } from '../../enums/statusTypes.enum';
92
101
  import { StatusTypes as StatusTypes_2 } from '../../../enums/statusTypes.enum';
@@ -116,6 +125,7 @@ import { default as useForm } from '../hooks/useForm';
116
125
  import { UseFormProps } from 'react-hook-form';
117
126
  import { useFormProps } from '../hooks/useForm';
118
127
  import { UseFormReturn } from 'react-hook-form';
128
+ import { UseInfiniteQueryOptions } from '@tanstack/react-query';
119
129
  import { VerificationTypes } from '../../enums/verificationTypes.enum';
120
130
  import { VerificationTypes as VerificationTypes_2 } from '../../../enums/verificationTypes.enum';
121
131
  import * as Yup from 'yup';
@@ -231,6 +241,8 @@ export { Colors }
231
241
 
232
242
  export { ColProps }
233
243
 
244
+ export { ColumnSortOrder }
245
+
234
246
  export { ColumnType }
235
247
 
236
248
  export declare const CustomAvatar: ({ name, size, imageUrl, isExtra }: CustomAvatarProps) => default_2.JSX.Element;
@@ -440,7 +452,9 @@ export declare interface INotification {
440
452
  type: string;
441
453
  }
442
454
 
443
- export declare const InputField: ({ label, type, placeholder, prefix, required, textLabel, className, ...rest }: CustomInputProps & InputProps) => default_2.JSX.Element;
455
+ export declare const InputField: default_2.ForwardRefExoticComponent<CustomInputProps & InputProps & default_2.RefAttributes<InputRef>>;
456
+
457
+ export { InputRef }
444
458
 
445
459
  export { InputTypes }
446
460
 
@@ -466,6 +480,7 @@ export declare interface ListingTableHeaderProps {
466
480
  searchPlaceholder?: string;
467
481
  searchValue?: string;
468
482
  actionButtons?: ReactNode;
483
+ className?: string;
469
484
  }
470
485
 
471
486
  export declare const ListItem: ({ text, iconName, className, ...props }: ListItemProps) => default_2.JSX.Element;
@@ -483,13 +498,15 @@ export declare interface LoaderProps {
483
498
  tip?: string;
484
499
  }
485
500
 
501
+ export { Meta }
502
+
486
503
  export { MobileInputValue }
487
504
 
488
505
  export declare const Modal: default_2.FC<ModalProps>;
489
506
 
490
507
  export declare interface ModalProps extends ModalProps_2 {
491
508
  children?: default_2.ReactNode;
492
- onClose: () => void;
509
+ onClose?: () => void;
493
510
  onOK?: () => void;
494
511
  visible: boolean;
495
512
  width?: number;
@@ -526,7 +543,7 @@ export declare interface NoRecordsProps {
526
543
  headingText?: string;
527
544
  }
528
545
 
529
- declare const Notification_2: ({ message, description, type }: INotification) => unknown;
546
+ declare const Notification_2: ({ message, description, type, }: INotification) => unknown;
530
547
  export { Notification_2 as Notification }
531
548
 
532
549
  export { NotificationTypes }
@@ -538,7 +555,16 @@ declare interface OfflineProps {
538
555
 
539
556
  declare type OutlineType = "primary" | "danger" | "success";
540
557
 
541
- declare const PasswordField: ({ label, placeholder, required, ...rest }: CustomInputProps & PasswordProps) => default_2.JSX.Element;
558
+ export declare const PaginatedDropdown: <T extends Meta_2>({ enabled, onPageUpdate, queryKey, params, onSearch, ...props }: PaginatedDropdownProps<T>) => default_2.JSX.Element;
559
+
560
+ declare interface PaginatedDropdownProps<T> extends Omit<ComponentProps<typeof Select>, "options">, Pick<UseInfiniteQueryOptions<Response_2<T>>, "queryKey" | "enabled"> {
561
+ onPageUpdate: (params: QueryParams_2) => Promise<Response_2<T>>;
562
+ params?: QueryParams_2;
563
+ }
564
+
565
+ export { PaginationMeta }
566
+
567
+ declare const PasswordField: default_2.ForwardRefExoticComponent<CustomInputProps & PasswordProps & default_2.RefAttributes<InputRef_2>>;
542
568
  export { PasswordField as Password }
543
569
  export { PasswordField }
544
570
 
@@ -612,23 +638,22 @@ export declare interface ProfileDetailProps {
612
638
  verified: boolean;
613
639
  }
614
640
 
615
- export declare const Radio: (props: CustomInputProps & RadioProps_2) => default_2.JSX.Element;
616
-
617
- declare interface RadioButtonProps {
618
- label?: string;
619
- }
620
-
621
- export declare function RadioGroup({ name, required, label, options, customOnChange, ...rest }: RadioProps_3): default_2.JSX.Element;
641
+ export { QueryParams }
622
642
 
623
- export declare type RadioProps = RadioButtonProps & ComponentProps<typeof Radio_2.Group>;
643
+ export declare function RadioGroup({ name, required, label, options, customOnChange, ...rest }: RadioProps): default_2.JSX.Element;
624
644
 
625
- declare interface RadioProps_3 extends RadioProps_2, Pick<RadioGroupProps, 'options'> {
645
+ declare interface RadioProps extends RadioProps_2, Pick<RadioGroupProps, 'options'> {
626
646
  name: string;
627
647
  label?: string;
628
648
  required?: boolean;
629
649
  customOnChange?: (event: RadioChangeEvent | null, field: ControllerRenderProps<FieldValues, string>) => void;
630
650
  }
631
651
 
652
+ declare interface Response_2<T> {
653
+ data: T[];
654
+ meta: PaginationMeta_2;
655
+ }
656
+
632
657
  export { Row }
633
658
 
634
659
  export { RowProps }
@@ -675,6 +700,8 @@ export { SorterResult }
675
700
 
676
701
  export { SortOrder }
677
702
 
703
+ export { SortOrderKeys }
704
+
678
705
  export { Space }
679
706
 
680
707
  export declare interface Stats {