gotrip-fx-transaction-form 1.0.247-dev → 1.0.249-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.247-dev",
3
+ "version": "1.0.249-dev",
4
4
  "description": "FX Transaction Form ES6 module",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -8,6 +8,7 @@ type MultiTagComboboxProps = {
8
8
  placeholder?: string;
9
9
  emptyText?: string;
10
10
  onChange: (nextValues: string[]) => void;
11
+ controlBorderRadius?: string;
11
12
  };
12
- export declare const MultiTagCombobox: ({ options, values, placeholder, emptyText, onChange, }: MultiTagComboboxProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const MultiTagCombobox: ({ options, values, placeholder, emptyText, onChange, controlBorderRadius, }: MultiTagComboboxProps) => import("react/jsx-runtime").JSX.Element;
13
14
  export {};
@@ -0,0 +1,15 @@
1
+ interface PrimaryRadioGroupOption<T extends string> {
2
+ value: T;
3
+ label: string;
4
+ disabled?: boolean;
5
+ }
6
+ interface PrimaryRadioGroupProps<T extends string> {
7
+ value: T;
8
+ onValueChange: (value: T) => void;
9
+ options: PrimaryRadioGroupOption<T>[];
10
+ direction?: 'row' | 'column';
11
+ gap?: number;
12
+ disabled?: boolean;
13
+ }
14
+ export declare function PrimaryRadioGroup<T extends string>({ value, onValueChange, options, direction, gap, disabled, }: PrimaryRadioGroupProps<T>): import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -11,6 +11,7 @@ type TimeRangeSelectProps = {
11
11
  error?: string;
12
12
  startLabel?: string;
13
13
  endLabel?: string;
14
+ fieldBorderRadius?: string;
14
15
  };
15
- export declare const TimeRangeSelect: ({ startValue, endValue, options, onStartChange, onEndChange, error, startLabel, endLabel, }: TimeRangeSelectProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const TimeRangeSelect: ({ startValue, endValue, options, onStartChange, onEndChange, error, startLabel, endLabel, fieldBorderRadius, }: TimeRangeSelectProps) => import("react/jsx-runtime").JSX.Element;
16
17
  export {};
@@ -3,7 +3,7 @@ export interface DatePickerInputProps {
3
3
  value?: string;
4
4
  onClick?: () => void;
5
5
  placeholder?: string;
6
+ borderRadius?: string;
6
7
  }
7
- /** Shared date picker input with calendar icon. Use as customInput for react-datepicker. */
8
8
  export declare const DatePickerInput: import('react').ForwardRefExoticComponent<DatePickerInputProps & import('react').RefAttributes<HTMLInputElement>>;
9
9
  export { DatePicker };
@@ -15,6 +15,7 @@ export interface StepFourPaymentProps {
15
15
  code: string;
16
16
  discountAmount: number;
17
17
  finalAmount: number;
18
+ description?: string | null;
18
19
  } | null) => void;
19
20
  }
20
21
  export declare const StepFourPayment: ({ travelScope, travelPlan, selectedPlan, buyerInfo, insuredPeople, onBack, onPayment, isProcessing, onPremiumUpdate, onCouponChange, }: StepFourPaymentProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- export { InsuranceRadioGroup } from './InsuranceRadioGroup';
2
1
  export { PaymentMethodSelector } from './PaymentMethodSelector';
3
2
  export { InfoBlockCard } from './InfoBlockCard';
4
3
  export { StepFooter } from './StepFooter';
@@ -18,6 +18,7 @@ export declare const useCoupon: (id?: string, isEdit?: boolean) => {
18
18
  }>;
19
19
  formLoading: boolean;
20
20
  saving: boolean;
21
+ patchingStatus: boolean;
21
22
  fetchCoupon: () => Promise<{
22
23
  ok: true;
23
24
  data: TCouponDetail | undefined;
@@ -32,4 +33,11 @@ export declare const useCoupon: (id?: string, isEdit?: boolean) => {
32
33
  ok: false;
33
34
  error: unknown;
34
35
  }>;
36
+ patchCouponStatus: (nextStatus: "active" | "inactive") => Promise<{
37
+ ok: true;
38
+ error?: undefined;
39
+ } | {
40
+ ok: false;
41
+ error: unknown;
42
+ }>;
35
43
  };
@@ -10,6 +10,7 @@ type ValidateCouponResult = {
10
10
  finalAmount: number;
11
11
  couponId: number;
12
12
  couponCode: string;
13
+ description?: string | null;
13
14
  };
14
15
  export declare const useCouponValidation: () => {
15
16
  isApplyingCoupon: boolean;
@@ -37,6 +37,7 @@ export type TCouponAdminSummary = {
37
37
  export type TCouponDetail = {
38
38
  code: string;
39
39
  name: string;
40
+ description?: string | null;
40
41
  status?: TCouponStatus;
41
42
  startAt: string;
42
43
  expireAt: string;
@@ -1,15 +0,0 @@
1
- interface InsuranceRadioGroupOption<T extends string> {
2
- value: T;
3
- label: string;
4
- disabled?: boolean;
5
- }
6
- interface InsuranceRadioGroupProps<T extends string> {
7
- value: T;
8
- onValueChange: (value: T) => void;
9
- options: InsuranceRadioGroupOption<T>[];
10
- direction?: 'row' | 'column';
11
- gap?: number;
12
- disabled?: boolean;
13
- }
14
- export declare function InsuranceRadioGroup<T extends string>({ value, onValueChange, options, direction, gap, disabled, }: InsuranceRadioGroupProps<T>): import("react/jsx-runtime").JSX.Element;
15
- export {};