vrfi-design-system 1.0.29 → 1.0.31

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
@@ -1,3 +1,4 @@
1
+ import { ActionType } from '../../enums/trigger';
1
2
  import { Align } from '../../enums/align.enum';
2
3
  import { default as AuthBanner } from '../../views/Auth/AuthBanner';
3
4
  import { default as AuthForm } from '../../views/Auth/AuthForm';
@@ -48,9 +49,12 @@ import { ModalProps as ModalProps_2 } from 'antd/lib/modal';
48
49
  import { MouseEvent as MouseEvent_2 } from 'react';
49
50
  import { NotificationTypes } from '../../enums/notificationTypes';
50
51
  import { PasswordProps } from 'antd/es/input';
52
+ import { Placement } from '../../enums/placement';
51
53
  import { ProfileDetailFooterTypes } from '../../enums/profileDetailFooter.enum';
52
54
  import { PropsWithChildren } from 'react';
53
55
  import { Radio as Radio_2 } from 'antd';
56
+ import { RadioChangeEvent } from 'antd';
57
+ import { RadioGroupProps } from 'antd';
54
58
  import { RadioProps as RadioProps_2 } from 'antd';
55
59
  import { ReactElement } from 'react';
56
60
  import { ReactNode } from 'react';
@@ -92,6 +96,8 @@ import { VerificationTypes } from '../../enums/verificationTypes.enum';
92
96
  import { VerificationTypes as VerificationTypes_2 } from '../../../enums/verificationTypes.enum';
93
97
  import * as Yup from 'yup';
94
98
 
99
+ export { ActionType }
100
+
95
101
  export { Align }
96
102
 
97
103
  export declare interface AssignedEmployerProps {
@@ -230,7 +236,7 @@ declare interface CustomUploadProps extends Omit<UploadProps, 'onChange'> {
230
236
  loading?: boolean;
231
237
  }
232
238
 
233
- export declare const DatePicker: (props: CustomInputProps & DatePickerProps) => default_2.JSX.Element;
239
+ export declare const DatePicker: ({ name, label, required, control, rules, customOnChange, ...props }: CustomInputProps & DatePickerProps) => default_2.JSX.Element;
234
240
 
235
241
  export { DatePickerAntd }
236
242
 
@@ -320,6 +326,7 @@ export declare interface FloatingLabelProps {
320
326
  label?: string;
321
327
  value: string;
322
328
  prefix?: ReactNode;
329
+ required?: boolean;
323
330
  }
324
331
 
325
332
  export { FooterDetailsProps }
@@ -349,7 +356,7 @@ export declare interface INotification {
349
356
  type: string;
350
357
  }
351
358
 
352
- export declare const InputField: ({ label, type, placeholder, prefix, ...rest }: CustomInputProps & InputProps) => default_2.JSX.Element;
359
+ export declare const InputField: ({ label, type, placeholder, prefix, required, ...rest }: CustomInputProps & InputProps) => default_2.JSX.Element;
353
360
 
354
361
  export { InputTypes }
355
362
 
@@ -392,7 +399,7 @@ export declare interface ModalProps extends ModalProps_2 {
392
399
  modalType: ModalTypeEnum;
393
400
  }
394
401
 
395
- declare enum ModalTypeEnum {
402
+ export declare enum ModalTypeEnum {
396
403
  SUCCESS = "success",
397
404
  DANGER = "danger",
398
405
  BASIC = "basic"
@@ -419,7 +426,9 @@ export declare interface OfflineProps {
419
426
  isOffline: boolean;
420
427
  }
421
428
 
422
- export declare const Password: ({ label, placeholder, ...rest }: CustomInputProps & PasswordProps) => default_2.JSX.Element;
429
+ declare const PasswordField: ({ label, placeholder, required, ...rest }: CustomInputProps & PasswordProps) => default_2.JSX.Element;
430
+ export { PasswordField as Password }
431
+ export { PasswordField }
423
432
 
424
433
  export declare const PasswordValidation: default_2.FC<PasswordValidationProps>;
425
434
 
@@ -428,6 +437,15 @@ export declare interface PasswordValidationProps {
428
437
  validationRules: ValidationRuleProps[];
429
438
  }
430
439
 
440
+ export { Placement }
441
+
442
+ export declare const PreviewDocumentsCard: default_2.FC<PreviewDocumentsCardProps>;
443
+
444
+ export declare interface PreviewDocumentsCardProps {
445
+ fileName: string;
446
+ onRemove: () => void;
447
+ }
448
+
431
449
  export declare function ProfileAssignedCard({ name }: ProfileAssignedCardProps): default_2.JSX.Element;
432
450
 
433
451
  export declare interface ProfileAssignedCardProps {
@@ -468,8 +486,17 @@ declare interface RadioButtonProps {
468
486
  label?: string;
469
487
  }
470
488
 
489
+ export declare function RadioGroup({ name, required, label, options, customOnChange, ...rest }: RadioProps_3): default_2.JSX.Element;
490
+
471
491
  export declare type RadioProps = RadioButtonProps & ComponentProps<typeof Radio_2.Group>;
472
492
 
493
+ declare interface RadioProps_3 extends RadioProps_2, Pick<RadioGroupProps, 'options'> {
494
+ name: string;
495
+ label?: string;
496
+ required?: boolean;
497
+ customOnChange?: (event: RadioChangeEvent | null, field: ControllerRenderProps<FieldValues, string>) => void;
498
+ }
499
+
473
500
  export { Row }
474
501
 
475
502
  export { RowProps }
@@ -483,11 +510,12 @@ export declare interface SearchComponentProps {
483
510
 
484
511
  export declare const SearchField: FC<SearchComponentProps>;
485
512
 
486
- export declare const Select: (props: SelectPropsBase) => default_2.JSX.Element;
513
+ export declare const Select: ({ name, label, required, customOnChange, options, ...props }: SelectPropsBase) => default_2.JSX.Element;
487
514
 
488
515
  declare interface SelectPropsBase extends SelectProps {
489
516
  name: string;
490
517
  label: string;
518
+ required?: boolean;
491
519
  customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement> | string | number, field: ControllerRenderProps<FieldValues, string>) => void;
492
520
  }
493
521
 
@@ -513,7 +541,7 @@ export { SortOrder }
513
541
 
514
542
  export { Space }
515
543
 
516
- declare interface Stats {
544
+ export declare interface Stats {
517
545
  label: string;
518
546
  value: string | number;
519
547
  }
@@ -546,7 +574,7 @@ export { SwitchProps }
546
574
 
547
575
  export declare const Table: <T extends object>(props: TableProps_3<T>) => default_2.JSX.Element;
548
576
 
549
- export declare const TableComponent: <T extends object>({ dataSource, columns, pagination, loading, onRow, onChange, loadingCount, size, type, scroll, rowClassName, ...restProps }: TableComponentProps<T>) => default_2.JSX.Element;
577
+ export declare const TableComponent: <T extends object>({ dataSource, columns, pagination, loading, onRow, onChange, loadingCount, size, type, scroll, rowHoverable, rowClassName, noDataComponent, rowHoverAction, ...restProps }: TableComponentProps<T>) => default_2.JSX.Element;
550
578
 
551
579
  export declare interface TableComponentProps<T> extends Omit<TableProps<T>, "onRow"> {
552
580
  dataSource?: T[];
@@ -559,9 +587,12 @@ export declare interface TableComponentProps<T> extends Omit<TableProps<T>, "onR
559
587
  scroll?: TableProps_2<T>["scroll"] & {
560
588
  scrollToFirstRowOnChange?: boolean;
561
589
  };
590
+ rowHoverable?: boolean;
562
591
  onChange?: (pagination?: TablePaginationConfig_2, filters?: Record<string, FilterValue | null>, sorter?: SorterResult<T> | SorterResult<T>[], extra?: TableCurrentDataSource<T>) => void;
563
592
  loadingCount?: number;
564
593
  size?: SizeType;
594
+ noDataComponent?: default_2.ReactNode;
595
+ rowHoverAction?: default_2.ReactNode;
565
596
  }
566
597
 
567
598
  export { TablePaginationConfig }