enwawa-ui 1.6.1 → 1.6.3
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/lib/index.d.ts +69 -101
- package/lib/index.d.ts.map +1 -1
- package/lib/index.es.js +204 -190
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +202 -188
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { CSSProperties, ReactNode, ChangeEvent, JSXElementConstructor, ReactElement } from "react";
|
|
2
2
|
import { ButtonShape, ButtonSize, ButtonType } from "antd/es/button";
|
|
3
|
-
import { CheckboxProps, CountdownProps, DatePickerProps, ImageProps, InputNumberProps, SelectProps, TagProps, BreadcrumbProps, DropdownProps, MenuProps, ColProps, PaginationProps, RadioChangeEvent as _RadioChangeEvent1, TooltipProps, AlertProps, RowProps, LayoutProps, SiderProps, FormProps, TableProps, ModalFuncProps, ModalProps, StepsProps, SpaceProps } from "antd";
|
|
3
|
+
import { CheckboxProps, CountdownProps, DatePickerProps, ImageProps, InputNumberProps, SelectProps, TagProps, BreadcrumbProps, DropdownProps, MenuProps, ColProps, PaginationProps, RadioChangeEvent as _RadioChangeEvent1, TooltipProps, AlertProps, RowProps, LayoutProps, SiderProps, FormProps, TableProps, ModalFuncProps, ModalProps, StepsProps, FormInstance, SpaceProps } from "antd";
|
|
4
4
|
import { Dayjs } from "dayjs";
|
|
5
5
|
import { IconComponentProps } from "@ant-design/icons/lib/components/Icon";
|
|
6
6
|
import * as Icons from "@ant-design/icons";
|
|
@@ -19,9 +19,11 @@ import { LabelTooltipType } from "antd/es/form/FormItemLabel";
|
|
|
19
19
|
import { Gutter } from "antd/es/grid/row";
|
|
20
20
|
import { DrawerProps } from "antd/es/drawer";
|
|
21
21
|
import { AnyObject } from "antd/es/_util/type";
|
|
22
|
+
import { ColumnsType } from "antd/es/table";
|
|
22
23
|
import { TableRowSelection } from "antd/es/table/interface";
|
|
23
24
|
import { GoogleMap, GoogleMapProps } from "@react-google-maps/api";
|
|
24
25
|
import { CheckboxChangeEvent } from "antd/es/checkbox";
|
|
26
|
+
import { WatchOptions } from "rc-field-form/es/interface";
|
|
25
27
|
export interface AtAvatarProps {
|
|
26
28
|
/**
|
|
27
29
|
* This attribute defines the alternative text describing the image
|
|
@@ -468,10 +470,7 @@ export interface AtNumberInputProps {
|
|
|
468
470
|
/**
|
|
469
471
|
* Specifies the format of the value presented
|
|
470
472
|
*/
|
|
471
|
-
formatter?:
|
|
472
|
-
userTyping: boolean;
|
|
473
|
-
input: string;
|
|
474
|
-
}) => string;
|
|
473
|
+
formatter?: InputNumberProps['formatter'];
|
|
475
474
|
/**
|
|
476
475
|
* If enable keyboard behavior
|
|
477
476
|
*/
|
|
@@ -487,7 +486,7 @@ export interface AtNumberInputProps {
|
|
|
487
486
|
/**
|
|
488
487
|
* Specifies the value extracted from formatter
|
|
489
488
|
*/
|
|
490
|
-
parser?:
|
|
489
|
+
parser?: InputNumberProps['parser'];
|
|
491
490
|
/**
|
|
492
491
|
* The precision of input value. Will use formatter when config of formatter
|
|
493
492
|
*/
|
|
@@ -2308,6 +2307,7 @@ export interface OrMenuProps {
|
|
|
2308
2307
|
* Called when a menu item is selected
|
|
2309
2308
|
*/
|
|
2310
2309
|
onSelect?: MenuProps['onSelect'];
|
|
2310
|
+
selectedKeys?: MenuProps['selectedKeys'];
|
|
2311
2311
|
}
|
|
2312
2312
|
export const OrMenu: React.FC<OrMenuProps>;
|
|
2313
2313
|
export interface OrSiderMenuProps {
|
|
@@ -2339,6 +2339,7 @@ export interface OrSiderMenuProps {
|
|
|
2339
2339
|
* Called when a menu item is selected
|
|
2340
2340
|
*/
|
|
2341
2341
|
onSelect?: OrMenuProps['onSelect'];
|
|
2342
|
+
selectedKeys?: OrMenuProps['selectedKeys'];
|
|
2342
2343
|
children?: React.ReactNode;
|
|
2343
2344
|
}
|
|
2344
2345
|
export const OrSiderMenu: React.FC<OrSiderMenuProps>;
|
|
@@ -2451,6 +2452,7 @@ export interface OrDashboardLayoutProps {
|
|
|
2451
2452
|
* Nav item at the end of the sider
|
|
2452
2453
|
*/
|
|
2453
2454
|
bottomItems?: OrSiderMenuProps['bottomItems'];
|
|
2455
|
+
selectedKeys?: OrSiderMenuProps['selectedKeys'];
|
|
2454
2456
|
}
|
|
2455
2457
|
export const OrDashboardLayout: React.FC<OrDashboardLayoutProps>;
|
|
2456
2458
|
export interface OrDrawerProps {
|
|
@@ -2660,7 +2662,7 @@ export interface OrSelectInputProps {
|
|
|
2660
2662
|
/**
|
|
2661
2663
|
* Rules for validation
|
|
2662
2664
|
* @default []
|
|
2663
|
-
|
|
2665
|
+
*/
|
|
2664
2666
|
rules?: MlFromItemProps['rules'][];
|
|
2665
2667
|
type?: 'number' | 'text';
|
|
2666
2668
|
fieldName: string;
|
|
@@ -2701,6 +2703,8 @@ export interface OrFormInLineItem {
|
|
|
2701
2703
|
* Rules for field validation. Click [here](https://ant.design/components/form#components-form-demo-basic) to see an example
|
|
2702
2704
|
*/
|
|
2703
2705
|
rules?: MlFromItemProps['rules'];
|
|
2706
|
+
compositeRules?: [MlFromItemProps['rules'], MlFromItemProps['rules']];
|
|
2707
|
+
compositeType?: OrSelectInputProps['type'];
|
|
2704
2708
|
hidden?: boolean;
|
|
2705
2709
|
disabled?: boolean;
|
|
2706
2710
|
styles?: CSSProperties;
|
|
@@ -2708,6 +2712,10 @@ export interface OrFormInLineItem {
|
|
|
2708
2712
|
onSearch?: (value: string) => any;
|
|
2709
2713
|
showSearch?: boolean;
|
|
2710
2714
|
onChange?: (value: any, option: DefaultOptionType | Array<DefaultOptionType>) => any;
|
|
2715
|
+
filterOption?: AtSelectProps['filterOption'];
|
|
2716
|
+
disabledDate?: AtDatePickerPros['disabledDate'];
|
|
2717
|
+
formatter?: AtNumberInputProps['formatter'];
|
|
2718
|
+
parser?: AtNumberInputProps['parser'];
|
|
2711
2719
|
/**
|
|
2712
2720
|
* Format of the date
|
|
2713
2721
|
*/
|
|
@@ -2861,7 +2869,8 @@ export interface OrModuleTableHeaderProps {
|
|
|
2861
2869
|
secondaryButtonIcon?: string;
|
|
2862
2870
|
}
|
|
2863
2871
|
export const OrModuleTableHeader: React.FC<OrModuleTableHeaderProps>;
|
|
2864
|
-
export
|
|
2872
|
+
export type OrColumnsType<T = unknown> = ColumnsType<T>;
|
|
2873
|
+
export interface OrTableProps<RecordType = AnyObject> {
|
|
2865
2874
|
/**
|
|
2866
2875
|
* Whether to show all table borders
|
|
2867
2876
|
*/
|
|
@@ -2869,23 +2878,23 @@ export interface OrTableProps {
|
|
|
2869
2878
|
/**
|
|
2870
2879
|
* Columns of table
|
|
2871
2880
|
*/
|
|
2872
|
-
columns: TableProps<
|
|
2881
|
+
columns: TableProps<RecordType>['columns'];
|
|
2873
2882
|
/**
|
|
2874
2883
|
* Data record array to be displayed
|
|
2875
2884
|
*/
|
|
2876
|
-
dataSource: TableProps<
|
|
2885
|
+
dataSource: TableProps<RecordType>['dataSource'];
|
|
2877
2886
|
/**
|
|
2878
2887
|
* Loading status of table
|
|
2879
2888
|
*/
|
|
2880
|
-
loading?: TableProps<
|
|
2889
|
+
loading?: TableProps<RecordType>['loading'];
|
|
2881
2890
|
/**
|
|
2882
2891
|
* Config of pagination. You can ref table pagination config or full pagination document, hide it by setting it to false
|
|
2883
2892
|
*/
|
|
2884
|
-
pagination?: TableProps<
|
|
2893
|
+
pagination?: TableProps<RecordType>['pagination'];
|
|
2885
2894
|
/**
|
|
2886
2895
|
* Row's unique key, could be a string or function that returns a string
|
|
2887
2896
|
*/
|
|
2888
|
-
rowKey?: TableProps<
|
|
2897
|
+
rowKey?: TableProps<RecordType>['rowKey'];
|
|
2889
2898
|
/**
|
|
2890
2899
|
* Size of table
|
|
2891
2900
|
*/
|
|
@@ -2897,17 +2906,17 @@ export interface OrTableProps {
|
|
|
2897
2906
|
/**
|
|
2898
2907
|
* Table title renderer
|
|
2899
2908
|
*/
|
|
2900
|
-
title?: TableProps<
|
|
2909
|
+
title?: TableProps<RecordType>['title'];
|
|
2901
2910
|
/**
|
|
2902
2911
|
* Callback executed when pagination, filters or sorter is changed
|
|
2903
2912
|
*/
|
|
2904
|
-
onChange?: TableProps<
|
|
2913
|
+
onChange?: TableProps<RecordType>['onChange'];
|
|
2905
2914
|
/**
|
|
2906
2915
|
* row selection config
|
|
2907
2916
|
*/
|
|
2908
|
-
rowSelection?: TableProps<
|
|
2917
|
+
rowSelection?: TableProps<RecordType>['rowSelection'];
|
|
2909
2918
|
}
|
|
2910
|
-
export const OrTable:
|
|
2919
|
+
export const OrTable: <RecordType extends AnyObject>({ bordered, loading, pagination, size, sticky, rowSelection, ...props }: OrTableProps<RecordType>) => import("react/jsx-runtime").JSX.Element;
|
|
2911
2920
|
export interface OrListSelectionProps {
|
|
2912
2921
|
/**
|
|
2913
2922
|
* Text of button to add
|
|
@@ -3205,37 +3214,27 @@ export interface OrStepProp {
|
|
|
3205
3214
|
$margin?: string;
|
|
3206
3215
|
}
|
|
3207
3216
|
export const OrStep: React.FC<OrStepProp>;
|
|
3208
|
-
interface
|
|
3209
|
-
businessName?: string;
|
|
3210
|
-
name?: string;
|
|
3211
|
-
rif?: string;
|
|
3212
|
-
phone: {
|
|
3213
|
-
dialCode: string;
|
|
3214
|
-
phone: string;
|
|
3215
|
-
};
|
|
3216
|
-
city?: string;
|
|
3217
|
-
}
|
|
3218
|
-
export interface IFormStep {
|
|
3217
|
+
export interface IFormStep<T> {
|
|
3219
3218
|
title: string;
|
|
3220
3219
|
inputs?: OrFormItemsInlineProps['inputs'];
|
|
3221
3220
|
submitButtonText?: string;
|
|
3222
3221
|
image?: string;
|
|
3223
3222
|
cancelButtonText?: string;
|
|
3224
3223
|
onCancelClick?: () => void;
|
|
3225
|
-
formInitialItems?:
|
|
3224
|
+
formInitialItems?: T;
|
|
3226
3225
|
form?: OrFormProps['form'];
|
|
3227
3226
|
onFinish?: (e: any) => void;
|
|
3228
3227
|
cancelBtnIcon?: ReactNode;
|
|
3229
3228
|
}
|
|
3230
|
-
export interface TmCrudPageProps {
|
|
3229
|
+
export interface TmCrudPageProps<RecordType = AnyObject, FormType = any> {
|
|
3231
3230
|
/**
|
|
3232
3231
|
* Columns of table
|
|
3233
3232
|
*/
|
|
3234
|
-
columns: OrTableProps['columns'];
|
|
3233
|
+
columns: OrTableProps<RecordType>['columns'];
|
|
3235
3234
|
/**
|
|
3236
3235
|
* Data record array to be displayed
|
|
3237
3236
|
*/
|
|
3238
|
-
data: OrTableProps['dataSource'];
|
|
3237
|
+
data: OrTableProps<RecordType>['dataSource'];
|
|
3239
3238
|
/**
|
|
3240
3239
|
* Loading status of table
|
|
3241
3240
|
*/
|
|
@@ -3311,7 +3310,7 @@ export interface TmCrudPageProps {
|
|
|
3311
3310
|
/**
|
|
3312
3311
|
* Form Steps info
|
|
3313
3312
|
*/
|
|
3314
|
-
formSteps?: IFormStep[];
|
|
3313
|
+
formSteps?: IFormStep<FormType>[];
|
|
3315
3314
|
/**
|
|
3316
3315
|
* current step
|
|
3317
3316
|
*/
|
|
@@ -3401,7 +3400,7 @@ export interface TmCrudPageProps {
|
|
|
3401
3400
|
*/
|
|
3402
3401
|
secondaryOnClick?: () => void;
|
|
3403
3402
|
}
|
|
3404
|
-
export const TmCrudPage:
|
|
3403
|
+
export const TmCrudPage: <RecordType extends AnyObject, FormType extends Store>({ columns, data, loadingTable, formSteps, onValuesChange, onCloseLeftDrawer, leftDrawerContent, openLeftDrawer, subtitle, subContent, open, pageSize, currentPage, currentFormStep, titleLeftDrawer, leftDrawerWidth, drawerContent, showDrawerContent, showSearchBox, drawerTitle, drawerWidth, firstButtonText, secondButtonText, onClickFirstButton, onClickSecondButton, $margin, title, tableTitle, buttonAddText, addButtonOnClick, onChangePagination, total, showTotal, disabledButtons, searchBoxOnSearch, searchBoxPlaceholder, tableHeaderCustomLeftElements, pagination, handleCloseCallback, tableTitleLevel, secondaryButtonText, secondaryOnClick, }: TmCrudPageProps<RecordType, FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
3405
3404
|
export interface OrSimpleBannerProps {
|
|
3406
3405
|
/**
|
|
3407
3406
|
* Id of the OrSimpleBannerProps
|
|
@@ -3565,7 +3564,7 @@ export interface TmMapPageProps {
|
|
|
3565
3564
|
realtimeMarkers?: MarkersGroup[];
|
|
3566
3565
|
}
|
|
3567
3566
|
export const TmMapPage: React.FC<TmMapPageProps>;
|
|
3568
|
-
export interface TmRechargePageProps {
|
|
3567
|
+
export interface TmRechargePageProps<FormType = any> {
|
|
3569
3568
|
/**
|
|
3570
3569
|
* Page title
|
|
3571
3570
|
*/
|
|
@@ -3590,14 +3589,6 @@ export interface TmRechargePageProps {
|
|
|
3590
3589
|
* The input content value
|
|
3591
3590
|
*/
|
|
3592
3591
|
value?: number;
|
|
3593
|
-
/**
|
|
3594
|
-
* Callback when user input amount
|
|
3595
|
-
*/
|
|
3596
|
-
onChangeAmount?: ((value: string | number | null) => void) | undefined;
|
|
3597
|
-
/**
|
|
3598
|
-
* Callback when user input coupon
|
|
3599
|
-
*/
|
|
3600
|
-
couponOnChange?: ((e: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
3601
3592
|
/**
|
|
3602
3593
|
* font size of the input
|
|
3603
3594
|
*/
|
|
@@ -3641,11 +3632,16 @@ export interface TmRechargePageProps {
|
|
|
3641
3632
|
/**
|
|
3642
3633
|
* Radio group items
|
|
3643
3634
|
*/
|
|
3644
|
-
|
|
3635
|
+
currenciesOptions?: Array<{
|
|
3636
|
+
label: ReactNode;
|
|
3637
|
+
value: string;
|
|
3638
|
+
disabled?: boolean;
|
|
3639
|
+
symbol?: string;
|
|
3640
|
+
}>;
|
|
3645
3641
|
/**
|
|
3646
3642
|
* Radio group default value
|
|
3647
3643
|
*/
|
|
3648
|
-
|
|
3644
|
+
defaultCurrency?: number;
|
|
3649
3645
|
/**
|
|
3650
3646
|
* Amount to pay text
|
|
3651
3647
|
*/
|
|
@@ -3653,7 +3649,7 @@ export interface TmRechargePageProps {
|
|
|
3653
3649
|
/**
|
|
3654
3650
|
* Amount to pay
|
|
3655
3651
|
*/
|
|
3656
|
-
amountToPay?:
|
|
3652
|
+
amountToPay?: number;
|
|
3657
3653
|
/**
|
|
3658
3654
|
* Coupon text
|
|
3659
3655
|
*/
|
|
@@ -3661,7 +3657,7 @@ export interface TmRechargePageProps {
|
|
|
3661
3657
|
/**
|
|
3662
3658
|
* Discount
|
|
3663
3659
|
*/
|
|
3664
|
-
discount?:
|
|
3660
|
+
discount?: number;
|
|
3665
3661
|
/**
|
|
3666
3662
|
* Total text
|
|
3667
3663
|
*/
|
|
@@ -3669,7 +3665,7 @@ export interface TmRechargePageProps {
|
|
|
3669
3665
|
/**
|
|
3670
3666
|
* Total
|
|
3671
3667
|
*/
|
|
3672
|
-
total?:
|
|
3668
|
+
total?: number;
|
|
3673
3669
|
/**
|
|
3674
3670
|
* Tax text
|
|
3675
3671
|
*/
|
|
@@ -3677,7 +3673,7 @@ export interface TmRechargePageProps {
|
|
|
3677
3673
|
/**
|
|
3678
3674
|
* Tax
|
|
3679
3675
|
*/
|
|
3680
|
-
tax?:
|
|
3676
|
+
tax?: number;
|
|
3681
3677
|
/**
|
|
3682
3678
|
* Pay button text
|
|
3683
3679
|
*/
|
|
@@ -3686,10 +3682,6 @@ export interface TmRechargePageProps {
|
|
|
3686
3682
|
* Apply coupon click
|
|
3687
3683
|
*/
|
|
3688
3684
|
applyCouponClick?: () => void;
|
|
3689
|
-
/**
|
|
3690
|
-
* Pay click
|
|
3691
|
-
*/
|
|
3692
|
-
payClick?: () => void;
|
|
3693
3685
|
/**
|
|
3694
3686
|
* The title of the drawer
|
|
3695
3687
|
*/
|
|
@@ -3705,11 +3697,7 @@ export interface TmRechargePageProps {
|
|
|
3705
3697
|
/**
|
|
3706
3698
|
* Form Steps info
|
|
3707
3699
|
*/
|
|
3708
|
-
currentPaymentSelectedFields: IFormStep
|
|
3709
|
-
/**
|
|
3710
|
-
* on value change function
|
|
3711
|
-
*/
|
|
3712
|
-
onValuesChange?: (changedValues: any, allValues: any) => void;
|
|
3700
|
+
currentPaymentSelectedFields: IFormStep<FormType>;
|
|
3713
3701
|
/**
|
|
3714
3702
|
* Disable continue button drawer
|
|
3715
3703
|
*/
|
|
@@ -3730,10 +3718,6 @@ export interface TmRechargePageProps {
|
|
|
3730
3718
|
* onCloseDrawer function
|
|
3731
3719
|
*/
|
|
3732
3720
|
onCloseDrawer?: (e: React.MouseEvent | React.KeyboardEvent) => void;
|
|
3733
|
-
/**
|
|
3734
|
-
* onChange radio group
|
|
3735
|
-
*/
|
|
3736
|
-
onChangeRadio?: MlRadioGroupProps['onChange'];
|
|
3737
3721
|
/**
|
|
3738
3722
|
* whether to show left arrow
|
|
3739
3723
|
*/
|
|
@@ -3742,21 +3726,18 @@ export interface TmRechargePageProps {
|
|
|
3742
3726
|
* left arrow click event
|
|
3743
3727
|
*/
|
|
3744
3728
|
onClickLeftArrow?: () => void;
|
|
3729
|
+
editable?: boolean;
|
|
3745
3730
|
}
|
|
3746
|
-
export const TmRechargePage:
|
|
3731
|
+
export const TmRechargePage: <FormType extends Store>({ title, subtitle, balance, cardTitle, fontSize, height, ruleAmount, ruleCoupon, form, initialValues, onFinish, couponBtn, amountPlaceholder, couponPlaceholder, currenciesOptions, defaultCurrency, amountToPayText, amountToPay, couponText, discount, totalText, taxText, tax, payBtn, applyCouponClick, drawerTitle, open, paymentMethods, currentPaymentSelectedFields, disabledButton, showPaymentMethods, termsDisclaimer, onCloseDrawer, showLeftArrow, onClickLeftArrow, editable, }: TmRechargePageProps<FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
3732
|
+
export const useMessage: () => readonly [import("antd/es/message/interface").MessageInstance, import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>];
|
|
3733
|
+
export const useModal: () => readonly [instance: import("antd/es/modal/useModal").HookAPI, contextHolder: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>];
|
|
3734
|
+
export const useForm: <T = any>() => [import("antd").FormInstance<T>];
|
|
3735
|
+
export const useFormWatch: <T = any>(name: string, form?: FormInstance | WatchOptions<FormInstance>) => T;
|
|
3747
3736
|
export interface OrPaymentCardProps {
|
|
3748
3737
|
/**
|
|
3749
3738
|
* The title of the card
|
|
3750
3739
|
*/
|
|
3751
3740
|
cardTitle: string;
|
|
3752
|
-
/**
|
|
3753
|
-
* Callback when user input amount
|
|
3754
|
-
*/
|
|
3755
|
-
onChangeAmount?: ((value: string | number | null) => void) | undefined;
|
|
3756
|
-
/**
|
|
3757
|
-
* Callback when user input coupon
|
|
3758
|
-
*/
|
|
3759
|
-
couponOnChange?: ((e: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
3760
3741
|
/**
|
|
3761
3742
|
* font size of the input
|
|
3762
3743
|
*/
|
|
@@ -3800,11 +3781,16 @@ export interface OrPaymentCardProps {
|
|
|
3800
3781
|
/**
|
|
3801
3782
|
* Radio group items
|
|
3802
3783
|
*/
|
|
3803
|
-
|
|
3784
|
+
currenciesOptions?: Array<{
|
|
3785
|
+
label: ReactNode;
|
|
3786
|
+
value: string;
|
|
3787
|
+
disabled?: boolean;
|
|
3788
|
+
symbol?: string;
|
|
3789
|
+
}>;
|
|
3804
3790
|
/**
|
|
3805
3791
|
* Radio group default value
|
|
3806
3792
|
*/
|
|
3807
|
-
|
|
3793
|
+
defaultCurrency?: number;
|
|
3808
3794
|
/**
|
|
3809
3795
|
* Amount to pay text
|
|
3810
3796
|
*/
|
|
@@ -3812,7 +3798,7 @@ export interface OrPaymentCardProps {
|
|
|
3812
3798
|
/**
|
|
3813
3799
|
* Amount to pay
|
|
3814
3800
|
*/
|
|
3815
|
-
amountToPay?:
|
|
3801
|
+
amountToPay?: number;
|
|
3816
3802
|
/**
|
|
3817
3803
|
* Coupon text
|
|
3818
3804
|
*/
|
|
@@ -3820,7 +3806,7 @@ export interface OrPaymentCardProps {
|
|
|
3820
3806
|
/**
|
|
3821
3807
|
* Discount
|
|
3822
3808
|
*/
|
|
3823
|
-
discount?:
|
|
3809
|
+
discount?: number;
|
|
3824
3810
|
/**
|
|
3825
3811
|
* Total text
|
|
3826
3812
|
*/
|
|
@@ -3828,7 +3814,7 @@ export interface OrPaymentCardProps {
|
|
|
3828
3814
|
/**
|
|
3829
3815
|
* Total
|
|
3830
3816
|
*/
|
|
3831
|
-
total?:
|
|
3817
|
+
total?: number;
|
|
3832
3818
|
/**
|
|
3833
3819
|
* Tax text
|
|
3834
3820
|
*/
|
|
@@ -3836,7 +3822,7 @@ export interface OrPaymentCardProps {
|
|
|
3836
3822
|
/**
|
|
3837
3823
|
* Tax
|
|
3838
3824
|
*/
|
|
3839
|
-
tax?:
|
|
3825
|
+
tax?: number;
|
|
3840
3826
|
/**
|
|
3841
3827
|
* Pay button text
|
|
3842
3828
|
*/
|
|
@@ -3845,14 +3831,7 @@ export interface OrPaymentCardProps {
|
|
|
3845
3831
|
* Apply coupon click
|
|
3846
3832
|
*/
|
|
3847
3833
|
applyCouponClick?: () => void;
|
|
3848
|
-
|
|
3849
|
-
* Pay click
|
|
3850
|
-
*/
|
|
3851
|
-
payClick?: () => void;
|
|
3852
|
-
/**
|
|
3853
|
-
* onChange radio group
|
|
3854
|
-
*/
|
|
3855
|
-
onChangeRadio?: MlRadioGroupProps['onChange'];
|
|
3834
|
+
editable?: boolean;
|
|
3856
3835
|
}
|
|
3857
3836
|
export const OrPaymentCard: React.FC<OrPaymentCardProps>;
|
|
3858
3837
|
export interface PaymentMethod {
|
|
@@ -3860,7 +3839,7 @@ export interface PaymentMethod {
|
|
|
3860
3839
|
icon?: React.ReactNode;
|
|
3861
3840
|
onClick: (value: string) => void;
|
|
3862
3841
|
}
|
|
3863
|
-
export interface OrPaymentMethodsProps {
|
|
3842
|
+
export interface OrPaymentMethodsProps<FormType = any> {
|
|
3864
3843
|
/**
|
|
3865
3844
|
* The title of the drawer
|
|
3866
3845
|
*/
|
|
@@ -3876,11 +3855,7 @@ export interface OrPaymentMethodsProps {
|
|
|
3876
3855
|
/**
|
|
3877
3856
|
* Form Steps info
|
|
3878
3857
|
*/
|
|
3879
|
-
currentPaymentSelectedFields?: IFormStep
|
|
3880
|
-
/**
|
|
3881
|
-
* on value change function
|
|
3882
|
-
*/
|
|
3883
|
-
onValuesChange?: (changedValues: any, allValues: any) => void;
|
|
3858
|
+
currentPaymentSelectedFields?: IFormStep<FormType>;
|
|
3884
3859
|
/**
|
|
3885
3860
|
* Disable continue button drawer
|
|
3886
3861
|
*/
|
|
@@ -3894,15 +3869,11 @@ export interface OrPaymentMethodsProps {
|
|
|
3894
3869
|
*/
|
|
3895
3870
|
termsDisclaimer?: string;
|
|
3896
3871
|
/**
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
termsChange?: ((e: CheckboxChangeEvent) => void) | undefined;
|
|
3900
|
-
/**
|
|
3901
|
-
* onCloseDrawer function
|
|
3902
|
-
*/
|
|
3872
|
+
* onCloseDrawer function
|
|
3873
|
+
*/
|
|
3903
3874
|
onCloseDrawer?: (e: React.MouseEvent | React.KeyboardEvent) => void;
|
|
3904
3875
|
}
|
|
3905
|
-
export const OrPaymentMethods:
|
|
3876
|
+
export const OrPaymentMethods: <FormType extends Store>({ drawerTitle, open, paymentMethods, currentPaymentSelectedFields, showPaymentMethods, termsDisclaimer, onCloseDrawer, disabledButton, }: OrPaymentMethodsProps<FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
3906
3877
|
export interface OrRechargeProps {
|
|
3907
3878
|
/**
|
|
3908
3879
|
* Page title
|
|
@@ -4065,8 +4036,5 @@ export interface AtSpaceProps {
|
|
|
4065
4036
|
children?: React.ReactNode;
|
|
4066
4037
|
}
|
|
4067
4038
|
export const OrSpace: React.FC<AtSpaceProps>;
|
|
4068
|
-
export const useMessage: () => readonly [import("antd/es/message/interface").MessageInstance, import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>];
|
|
4069
|
-
export const useModal: () => readonly [instance: import("antd/es/modal/useModal").HookAPI, contextHolder: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>];
|
|
4070
|
-
export const useForm: <T = any>() => [import("antd").FormInstance<T>];
|
|
4071
4039
|
|
|
4072
4040
|
//# sourceMappingURL=index.d.ts.map
|