vrfi-design-system 1.0.29 → 1.0.30

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
@@ -51,6 +51,8 @@ import { PasswordProps } from 'antd/es/input';
51
51
  import { ProfileDetailFooterTypes } from '../../enums/profileDetailFooter.enum';
52
52
  import { PropsWithChildren } from 'react';
53
53
  import { Radio as Radio_2 } from 'antd';
54
+ import { RadioChangeEvent } from 'antd';
55
+ import { RadioGroupProps } from 'antd';
54
56
  import { RadioProps as RadioProps_2 } from 'antd';
55
57
  import { ReactElement } from 'react';
56
58
  import { ReactNode } from 'react';
@@ -230,7 +232,7 @@ declare interface CustomUploadProps extends Omit<UploadProps, 'onChange'> {
230
232
  loading?: boolean;
231
233
  }
232
234
 
233
- export declare const DatePicker: (props: CustomInputProps & DatePickerProps) => default_2.JSX.Element;
235
+ export declare const DatePicker: ({ name, label, required, control, rules, customOnChange, ...props }: CustomInputProps & DatePickerProps) => default_2.JSX.Element;
234
236
 
235
237
  export { DatePickerAntd }
236
238
 
@@ -320,6 +322,7 @@ export declare interface FloatingLabelProps {
320
322
  label?: string;
321
323
  value: string;
322
324
  prefix?: ReactNode;
325
+ required?: boolean;
323
326
  }
324
327
 
325
328
  export { FooterDetailsProps }
@@ -349,7 +352,7 @@ export declare interface INotification {
349
352
  type: string;
350
353
  }
351
354
 
352
- export declare const InputField: ({ label, type, placeholder, prefix, ...rest }: CustomInputProps & InputProps) => default_2.JSX.Element;
355
+ export declare const InputField: ({ label, type, placeholder, prefix, required, ...rest }: CustomInputProps & InputProps) => default_2.JSX.Element;
353
356
 
354
357
  export { InputTypes }
355
358
 
@@ -419,7 +422,9 @@ export declare interface OfflineProps {
419
422
  isOffline: boolean;
420
423
  }
421
424
 
422
- export declare const Password: ({ label, placeholder, ...rest }: CustomInputProps & PasswordProps) => default_2.JSX.Element;
425
+ declare const PasswordField: ({ label, placeholder, required, ...rest }: CustomInputProps & PasswordProps) => default_2.JSX.Element;
426
+ export { PasswordField as Password }
427
+ export { PasswordField }
423
428
 
424
429
  export declare const PasswordValidation: default_2.FC<PasswordValidationProps>;
425
430
 
@@ -428,6 +433,13 @@ export declare interface PasswordValidationProps {
428
433
  validationRules: ValidationRuleProps[];
429
434
  }
430
435
 
436
+ export declare const PreviewDocumentsCard: default_2.FC<PreviewDocumentsCardProps>;
437
+
438
+ export declare interface PreviewDocumentsCardProps {
439
+ fileName: string;
440
+ onRemove: () => void;
441
+ }
442
+
431
443
  export declare function ProfileAssignedCard({ name }: ProfileAssignedCardProps): default_2.JSX.Element;
432
444
 
433
445
  export declare interface ProfileAssignedCardProps {
@@ -468,8 +480,17 @@ declare interface RadioButtonProps {
468
480
  label?: string;
469
481
  }
470
482
 
483
+ export declare function RadioGroup({ name, required, label, options, customOnChange, ...rest }: RadioProps_3): default_2.JSX.Element;
484
+
471
485
  export declare type RadioProps = RadioButtonProps & ComponentProps<typeof Radio_2.Group>;
472
486
 
487
+ declare interface RadioProps_3 extends RadioProps_2, Pick<RadioGroupProps, 'options'> {
488
+ name: string;
489
+ label?: string;
490
+ required?: boolean;
491
+ customOnChange?: (event: RadioChangeEvent | null, field: ControllerRenderProps<FieldValues, string>) => void;
492
+ }
493
+
473
494
  export { Row }
474
495
 
475
496
  export { RowProps }
@@ -483,11 +504,12 @@ export declare interface SearchComponentProps {
483
504
 
484
505
  export declare const SearchField: FC<SearchComponentProps>;
485
506
 
486
- export declare const Select: (props: SelectPropsBase) => default_2.JSX.Element;
507
+ export declare const Select: ({ name, label, required, customOnChange, options, ...props }: SelectPropsBase) => default_2.JSX.Element;
487
508
 
488
509
  declare interface SelectPropsBase extends SelectProps {
489
510
  name: string;
490
511
  label: string;
512
+ required?: boolean;
491
513
  customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement> | string | number, field: ControllerRenderProps<FieldValues, string>) => void;
492
514
  }
493
515
 
@@ -513,7 +535,7 @@ export { SortOrder }
513
535
 
514
536
  export { Space }
515
537
 
516
- declare interface Stats {
538
+ export declare interface Stats {
517
539
  label: string;
518
540
  value: string | number;
519
541
  }
@@ -546,7 +568,7 @@ export { SwitchProps }
546
568
 
547
569
  export declare const Table: <T extends object>(props: TableProps_3<T>) => default_2.JSX.Element;
548
570
 
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;
571
+ export declare const TableComponent: <T extends object>({ dataSource, columns, pagination, loading, onRow, onChange, loadingCount, size, type, scroll, rowClassName, noDataComponent, ...restProps }: TableComponentProps<T>) => default_2.JSX.Element;
550
572
 
551
573
  export declare interface TableComponentProps<T> extends Omit<TableProps<T>, "onRow"> {
552
574
  dataSource?: T[];
@@ -562,6 +584,7 @@ export declare interface TableComponentProps<T> extends Omit<TableProps<T>, "onR
562
584
  onChange?: (pagination?: TablePaginationConfig_2, filters?: Record<string, FilterValue | null>, sorter?: SorterResult<T> | SorterResult<T>[], extra?: TableCurrentDataSource<T>) => void;
563
585
  loadingCount?: number;
564
586
  size?: SizeType;
587
+ noDataComponent?: default_2.ReactNode;
565
588
  }
566
589
 
567
590
  export { TablePaginationConfig }