finance-shared 0.0.11 → 0.0.12

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
@@ -60,6 +60,7 @@ declare type CommonAutocompleteProps = {
60
60
  ref?: React_2.Ref<HTMLElement>;
61
61
  disableClearable?: boolean;
62
62
  value?: string | number | null;
63
+ optionTestId?: string;
63
64
  };
64
65
 
65
66
  export declare const CommonStatusChangeDialog: default_2.FC<CommonStatusChangeDialogProps>;
@@ -129,6 +130,12 @@ export declare interface CustomDatePickerProps {
129
130
  locale?: Locale_2;
130
131
  dataTestId?: string;
131
132
  iconColor?: string;
133
+ open?: boolean;
134
+ anchorEl?: HTMLElement | null;
135
+ onClose?: () => void;
136
+ hideTextField?: boolean;
137
+ applyCustomStyling?: boolean;
138
+ style?: default_2.CSSProperties | object;
132
139
  }
133
140
 
134
141
  export declare function CustomDialog({ open, onClose, content, size, maxWidth, hideCloseIcon }: CustomDialogProps): JSX.Element;
@@ -367,7 +374,7 @@ export declare interface ImageUploadProps {
367
374
  t?: (key: string) => string;
368
375
  }
369
376
 
370
- export declare function InfoDialog({ open, onClose, title, message, buttonText, onButtonClick, icon: Icon, color, isLoading, t, discardText, }: InfoDialogProps): JSX.Element;
377
+ export declare function InfoDialog({ open, onClose, title, message, buttonText, onButtonClick, icon: Icon, color, isLoading, t, discardText, buttonDataTestId, }: InfoDialogProps): JSX.Element;
371
378
 
372
379
  export declare interface InfoDialogProps {
373
380
  open: boolean;
@@ -381,6 +388,7 @@ export declare interface InfoDialogProps {
381
388
  isLoading?: boolean;
382
389
  t?: (key: string) => string;
383
390
  discardText?: string;
391
+ buttonDataTestId?: string;
384
392
  }
385
393
 
386
394
  /**
@@ -416,7 +424,7 @@ export declare interface MediaDialogProps {
416
424
  onClose?: () => void;
417
425
  }
418
426
 
419
- export declare const MemberAutoComplete: ({ label, roleIds, onChange, value, error, required, style, isTooltipShow, variant, dataTestId, tenantId, initialSearchTerm }: MemberAutoCompleteProps) => JSX.Element;
427
+ export declare const MemberAutoComplete: ({ label, roleIds, onChange, value, error, required, style, isTooltipShow, variant, dataTestId, optionTestId, tenantId, initialSearchTerm }: MemberAutoCompleteProps) => JSX.Element;
420
428
 
421
429
  declare type MemberAutoCompleteProps = {
422
430
  label: string;
@@ -429,6 +437,7 @@ declare type MemberAutoCompleteProps = {
429
437
  isTooltipShow?: boolean;
430
438
  variant?: TextFieldVariants;
431
439
  dataTestId?: string;
440
+ optionTestId?: string;
432
441
  tenantId?: string;
433
442
  initialSearchTerm?: string;
434
443
  };
@@ -552,7 +561,19 @@ declare interface RemarkType_2 {
552
561
  financeApplicationId?: string;
553
562
  }
554
563
 
555
- export declare const SearchableAutocomplete: MemoExoticComponent<({ dataTestId, label, value, variant, isTooltipShow, onChange, fetchOptions, isParentLoading, error, required, isSmall, style, pagination, ref, disableClearable, initialSearchTerm, }: SearchableAutocompleteProps) => JSX.Element>;
564
+ export declare const SaveButton: default_2.FC<SaveButtonProps>;
565
+
566
+ export declare interface SaveButtonProps {
567
+ variant: 'text' | 'outlined' | 'contained';
568
+ onClick?: () => void;
569
+ disabled?: boolean;
570
+ isLoading: boolean;
571
+ text: string;
572
+ size?: 'small' | 'medium' | 'large';
573
+ dataTestId?: string;
574
+ }
575
+
576
+ export declare const SearchableAutocomplete: MemoExoticComponent<({ dataTestId, optionTestId, label, value, variant, isTooltipShow, onChange, fetchOptions, isParentLoading, error, required, isSmall, style, pagination, ref, disableClearable, initialSearchTerm, }: SearchableAutocompleteProps) => JSX.Element>;
556
577
 
557
578
  declare type SearchableAutocompleteProps = {
558
579
  label: string;
@@ -568,6 +589,7 @@ declare type SearchableAutocompleteProps = {
568
589
  isSmall?: boolean;
569
590
  style?: React.CSSProperties;
570
591
  dataTestId?: string;
592
+ optionTestId?: string;
571
593
  pagination?: {
572
594
  pageIndex: number;
573
595
  pageSize: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "finance-shared",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/"