gotrip-fx-transaction-form 1.0.198-dev → 1.0.199-dev

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gotrip-fx-transaction-form",
3
- "version": "1.0.198-dev",
3
+ "version": "1.0.199-dev",
4
4
  "description": "FX Transaction Form ES6 module",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -0,0 +1,11 @@
1
+ import { EInsuranceProviderType } from '../../../types/insurance';
2
+ export type SortOrder = 'asc' | 'desc';
3
+ interface InsurancePlanFilterProps {
4
+ selectedProviders: EInsuranceProviderType[];
5
+ onProviderChange: (providers: EInsuranceProviderType[]) => void;
6
+ sortOrder: SortOrder;
7
+ onSortChange: (order: SortOrder) => void;
8
+ disabled?: boolean;
9
+ }
10
+ export declare const InsurancePlanFilter: ({ selectedProviders, onProviderChange, sortOrder, onSortChange, disabled, }: InsurancePlanFilterProps) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -1,2 +1,3 @@
1
1
  export { InsurancePlanCard, type InsurancePlan, type PriceDisplayType } from './InsurancePlanCard';
2
2
  export { InsurancePlanList } from './InsurancePlanList';
3
+ export { InsurancePlanFilter, type SortOrder } from './InsurancePlanFilter';
@@ -1,3 +1,5 @@
1
+ import { SortOrder } from './InsurancePlans';
2
+ import { EInsuranceProviderType } from '../../types/insurance';
1
3
  import { CoveragePlanPremium, CalculatePremiumRequest, TravelPlanFormValues } from './types';
2
4
  interface StepTwoPlansProps {
3
5
  requestPayload: CalculatePremiumRequest | null;
@@ -6,6 +8,11 @@ interface StepTwoPlansProps {
6
8
  insuranceType?: 'travel' | 'car' | 'motorcycle' | string;
7
9
  travelPlan?: TravelPlanFormValues | null;
8
10
  allowDiscount?: boolean;
11
+ onScrollToTop?: () => void;
12
+ selectedProviders: EInsuranceProviderType[];
13
+ onProviderChange: (providers: EInsuranceProviderType[]) => void;
14
+ sortOrder: SortOrder;
15
+ onSortChange: (sortOrder: SortOrder) => void;
9
16
  }
10
- export declare const StepTwoPlans: ({ requestPayload, selectedPlanId, onPlanSelect, insuranceType, travelPlan, allowDiscount, }: StepTwoPlansProps) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const StepTwoPlans: ({ requestPayload, selectedPlanId, onPlanSelect, insuranceType, travelPlan, allowDiscount, onScrollToTop, selectedProviders, onProviderChange, sortOrder, onSortChange, }: StepTwoPlansProps) => import("react/jsx-runtime").JSX.Element;
11
18
  export {};
@@ -91,6 +91,8 @@ export type CalculatePremiumRequest = {
91
91
  endDate: string;
92
92
  adultsCount: number;
93
93
  childrenCount: number;
94
+ providers?: string[];
95
+ sortOrder?: 'asc' | 'desc';
94
96
  };
95
97
  export type CoveragePlanPremium = {
96
98
  provider: string;