enwawa-ui 2.0.1 → 2.0.2
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 +228 -154
- package/lib/index.d.ts.map +1 -1
- package/lib/index.es.js +1117 -867
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +1115 -865
- package/lib/index.js.map +1 -1
- package/lib/{wawa-isotype.28dcf3ba.svg → wawa-isotype.412829c2.svg} +4 -4
- package/lib/wawa-isotype.b3306037.svg +4 -0
- package/lib/wawa-isotype.da9ebd6e.svg +4 -0
- package/lib/{wawa-logo.f82ab6f2.svg → wawa-logo.26a17016.svg} +6 -6
- package/lib/wawa-logo.66641d13.svg +6 -0
- package/lib/wawa-logo.bb8f5a4d.svg +6 -0
- package/package.json +125 -124
- package/readme.md +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { CSSProperties, ReactNode, ChangeEvent, JSXElementConstructor, ReactElement } from "react";
|
|
2
2
|
import { ButtonShape, ButtonSize, ButtonType } from "antd/es/button";
|
|
3
|
-
import {
|
|
3
|
+
import { ButtonProps, SwitchProps } from "antd/lib";
|
|
4
|
+
import { CheckboxProps, CountdownProps, DatePickerProps, ImageProps, AlertProps, BreadcrumbProps, InputNumberProps, DropdownProps, MenuProps, ColProps, PaginationProps, RadioChangeEvent, TooltipProps, UploadProps, RowProps, CollapseProps, LayoutProps, SiderProps, SpaceProps, FormProps, ModalFuncProps, FormInstance, TableProps, ModalProps as _ModalProps1, StepsProps, SelectProps, TagProps } from "antd";
|
|
4
5
|
import { Dayjs } from "dayjs";
|
|
5
6
|
import { RangePickerProps } from "antd/lib/date-picker";
|
|
6
7
|
import { IconComponentProps } from "@ant-design/icons/lib/components/Icon";
|
|
@@ -18,16 +19,15 @@ import { Gutter } from "antd/es/grid/row";
|
|
|
18
19
|
import { BlockProps, EllipsisConfig, BaseType } from "antd/es/typography/Base";
|
|
19
20
|
import { TextProps } from "antd/es/typography/Text";
|
|
20
21
|
import { DrawerProps } from "antd/es/drawer";
|
|
21
|
-
import { DefaultOptionType, LabeledValue } from "antd/es/select";
|
|
22
22
|
import { GoogleMapProps, GoogleMap } from "@react-google-maps/api";
|
|
23
|
+
import { WatchOptions } from "rc-field-form/es/interface";
|
|
23
24
|
import { AnyObject } from "antd/es/_util/type";
|
|
24
25
|
import { ColumnsType, TablePaginationConfig } from "antd/es/table";
|
|
25
26
|
import { FilterValue, SorterResult, TableCurrentDataSource, TableRowSelection } from "antd/es/table/interface";
|
|
26
|
-
import {
|
|
27
|
+
import { DefaultOptionType, LabeledValue } from "antd/es/select";
|
|
27
28
|
import { CheckboxChangeEvent } from "antd/es/checkbox";
|
|
28
29
|
import { RadioChangeEvent as _RadioChangeEvent1 } from "antd/es/radio";
|
|
29
30
|
import { SegmentedProps, SegmentedValue } from "antd/lib/segmented";
|
|
30
|
-
import { SwitchProps } from "antd/lib";
|
|
31
31
|
export interface AtAvatarProps {
|
|
32
32
|
/**
|
|
33
33
|
* This attribute defines the alternative text describing the image
|
|
@@ -92,10 +92,6 @@ export interface AtButtonProps {
|
|
|
92
92
|
* Set the original html type of button, see: MDN
|
|
93
93
|
*/
|
|
94
94
|
htmlType?: string;
|
|
95
|
-
/**
|
|
96
|
-
* Set the icon component of button
|
|
97
|
-
*/
|
|
98
|
-
icon?: React.ReactNode;
|
|
99
95
|
/**
|
|
100
96
|
* Set the loading status of button
|
|
101
97
|
*/
|
|
@@ -128,6 +124,7 @@ export interface AtButtonProps {
|
|
|
128
124
|
* Set the button width
|
|
129
125
|
*/
|
|
130
126
|
$width?: string | number;
|
|
127
|
+
icon?: ButtonProps['icon'];
|
|
131
128
|
}
|
|
132
129
|
export const AtButton: React.FC<AtButtonProps>;
|
|
133
130
|
export interface AtCheckboxProps extends CheckboxProps {
|
|
@@ -873,7 +870,7 @@ export interface MlAutocompleteSearchProps {
|
|
|
873
870
|
/**
|
|
874
871
|
* Country code
|
|
875
872
|
*/
|
|
876
|
-
country
|
|
873
|
+
country?: string;
|
|
877
874
|
/**
|
|
878
875
|
* Select props
|
|
879
876
|
*/
|
|
@@ -2329,6 +2326,10 @@ export interface AtSpaceProps {
|
|
|
2329
2326
|
* Children of the OrSpace
|
|
2330
2327
|
*/
|
|
2331
2328
|
children?: React.ReactNode;
|
|
2329
|
+
/**
|
|
2330
|
+
* width of the OrSpace
|
|
2331
|
+
*/
|
|
2332
|
+
$width?: string;
|
|
2332
2333
|
}
|
|
2333
2334
|
export const OrSpace: React.FC<AtSpaceProps>;
|
|
2334
2335
|
export interface OrHeaderProps {
|
|
@@ -2725,11 +2726,157 @@ export interface OrSelectInputProps {
|
|
|
2725
2726
|
selectProps?: AtSelectProps;
|
|
2726
2727
|
}
|
|
2727
2728
|
export const OrSelectInput: React.FC<OrSelectInputProps>;
|
|
2729
|
+
type _Size1 = 'large' | 'middle' | 'small';
|
|
2730
|
+
export interface OrMarkProps {
|
|
2731
|
+
id?: string;
|
|
2732
|
+
text?: string;
|
|
2733
|
+
color?: AtTextProps['color'];
|
|
2734
|
+
backgroundColor?: string;
|
|
2735
|
+
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
2736
|
+
size?: _Size1;
|
|
2737
|
+
position: {
|
|
2738
|
+
lat: number;
|
|
2739
|
+
lng: number;
|
|
2740
|
+
};
|
|
2741
|
+
component?: React.ReactNode;
|
|
2742
|
+
hasOverlay?: boolean;
|
|
2743
|
+
translate?: number[];
|
|
2744
|
+
}
|
|
2745
|
+
export const OrMark: React.FC<OrMarkProps>;
|
|
2746
|
+
export enum MarkSize {
|
|
2747
|
+
Large = "large",
|
|
2748
|
+
Middle = "middle",
|
|
2749
|
+
Small = "small"
|
|
2750
|
+
}
|
|
2751
|
+
export interface MarkersGroup {
|
|
2752
|
+
color?: OrMarkProps['color'];
|
|
2753
|
+
backgroundColor?: string;
|
|
2754
|
+
size?: OrMarkProps['size'];
|
|
2755
|
+
marks: OrMarkProps[];
|
|
2756
|
+
polyLine: boolean;
|
|
2757
|
+
}
|
|
2758
|
+
export interface OrGoogleMapsProps extends GoogleMapProps {
|
|
2759
|
+
/**
|
|
2760
|
+
* The origin of the route.
|
|
2761
|
+
*/
|
|
2762
|
+
origin?: string | google.maps.LatLng | google.maps.Place | google.maps.LatLngLiteral;
|
|
2763
|
+
/**
|
|
2764
|
+
* The destination of the route.
|
|
2765
|
+
*/
|
|
2766
|
+
destination?: string | google.maps.LatLng | google.maps.Place | google.maps.LatLngLiteral;
|
|
2767
|
+
/**
|
|
2768
|
+
* Type of routing requested.
|
|
2769
|
+
*/
|
|
2770
|
+
travelMode?: google.maps.TravelMode;
|
|
2771
|
+
/**
|
|
2772
|
+
* The stroke color.
|
|
2773
|
+
*/
|
|
2774
|
+
strokeColor?: string | null;
|
|
2775
|
+
/**
|
|
2776
|
+
* The stroke opacity between 0.0 and 1.0.
|
|
2777
|
+
*/
|
|
2778
|
+
strokeOpacity?: number | null;
|
|
2779
|
+
/**
|
|
2780
|
+
* The stroke width in pixels.
|
|
2781
|
+
*/
|
|
2782
|
+
strokeWeight?: number | null;
|
|
2783
|
+
/**
|
|
2784
|
+
* The Google Maps API key.
|
|
2785
|
+
*/
|
|
2786
|
+
GOOGLE_MAPS_API_KEY: string;
|
|
2787
|
+
/**
|
|
2788
|
+
* Static markers.
|
|
2789
|
+
*/
|
|
2790
|
+
staticMarkers?: MarkersGroup[];
|
|
2791
|
+
/**
|
|
2792
|
+
* Realtime markers.
|
|
2793
|
+
*/
|
|
2794
|
+
realtimeMarkers?: MarkersGroup[];
|
|
2795
|
+
}
|
|
2796
|
+
export const OrGoogleMaps: React.FC<OrGoogleMapsProps>;
|
|
2797
|
+
export const useMessage: () => readonly [import("antd/es/message/interface").MessageInstance, import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>];
|
|
2798
|
+
export interface ModalProps extends ModalFuncProps {
|
|
2799
|
+
variant: 'confirm' | 'warning' | 'info' | 'error';
|
|
2800
|
+
}
|
|
2801
|
+
export const useModal: () => {
|
|
2802
|
+
show: (config: ModalFuncProps) => {
|
|
2803
|
+
destroy: () => void;
|
|
2804
|
+
update: (configUpdate: ModalFuncProps | ((prevConfig: ModalFuncProps) => ModalFuncProps)) => void;
|
|
2805
|
+
} & {
|
|
2806
|
+
then<T>(resolve: (confirmed: boolean) => T, reject: VoidFunction): Promise<T>;
|
|
2807
|
+
};
|
|
2808
|
+
setVariant: import("react").Dispatch<import("react").SetStateAction<"warning" | "error" | "info" | "confirm">>;
|
|
2809
|
+
contextHolder: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
2810
|
+
};
|
|
2811
|
+
export const useForm: <T = any>() => [import("antd").FormInstance<T>];
|
|
2812
|
+
export const useFormWatch: <T = any>(name: string | string[], form?: FormInstance | WatchOptions<FormInstance>) => T;
|
|
2813
|
+
export type OrColumnsType<T = unknown> = ColumnsType<T>;
|
|
2814
|
+
export type OnChangeTable<RecordType = AnyObject> = (pagination: TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter: SorterResult<RecordType> | SorterResult<RecordType>[], extra: TableCurrentDataSource<RecordType>) => void;
|
|
2815
|
+
export interface OrTableProps<RecordType = AnyObject> {
|
|
2816
|
+
/**
|
|
2817
|
+
* Whether to show all table borders
|
|
2818
|
+
*/
|
|
2819
|
+
bordered?: boolean;
|
|
2820
|
+
/**
|
|
2821
|
+
* Columns of table
|
|
2822
|
+
*/
|
|
2823
|
+
columns: TableProps<RecordType>['columns'];
|
|
2824
|
+
/**
|
|
2825
|
+
* Data record array to be displayed
|
|
2826
|
+
*/
|
|
2827
|
+
dataSource: TableProps<RecordType>['dataSource'];
|
|
2828
|
+
/**
|
|
2829
|
+
* Loading status of table
|
|
2830
|
+
*/
|
|
2831
|
+
loading?: TableProps<RecordType>['loading'];
|
|
2832
|
+
/**
|
|
2833
|
+
* Config of pagination. You can ref table pagination config or full pagination document, hide it by setting it to false
|
|
2834
|
+
*/
|
|
2835
|
+
pagination?: TableProps<RecordType>['pagination'];
|
|
2836
|
+
/**
|
|
2837
|
+
* Row's unique key, could be a string or function that returns a string
|
|
2838
|
+
*/
|
|
2839
|
+
rowKey?: TableProps<RecordType>['rowKey'];
|
|
2840
|
+
/**
|
|
2841
|
+
* Size of table
|
|
2842
|
+
*/
|
|
2843
|
+
size?: 'large' | 'middle' | 'small';
|
|
2844
|
+
/**
|
|
2845
|
+
* Set sticky header and scroll bar
|
|
2846
|
+
*/
|
|
2847
|
+
sticky?: boolean;
|
|
2848
|
+
/**
|
|
2849
|
+
* Table title renderer
|
|
2850
|
+
*/
|
|
2851
|
+
title?: TableProps<RecordType>['title'];
|
|
2852
|
+
/**
|
|
2853
|
+
* Callback executed when pagination, filters or sorter is changed
|
|
2854
|
+
*/
|
|
2855
|
+
onChange?: OnChangeTable<RecordType>;
|
|
2856
|
+
/**
|
|
2857
|
+
* row selection config
|
|
2858
|
+
*/
|
|
2859
|
+
rowSelection?: TableProps<RecordType>['rowSelection'];
|
|
2860
|
+
}
|
|
2861
|
+
export const OrTable: <RecordType extends AnyObject>({ bordered, loading, pagination, size, sticky, rowSelection, ...props }: OrTableProps<RecordType>) => import("react/jsx-runtime").JSX.Element;
|
|
2862
|
+
export type OrSelectTableOption<T = any> = {
|
|
2863
|
+
label: string;
|
|
2864
|
+
value: string;
|
|
2865
|
+
fullData: T;
|
|
2866
|
+
};
|
|
2867
|
+
export interface OrSelectTableProps<T = any> extends AtSelectProps {
|
|
2868
|
+
columns?: OrTableProps['columns'];
|
|
2869
|
+
data?: OrTableProps['dataSource'];
|
|
2870
|
+
options?: OrSelectTableOption<T>[];
|
|
2871
|
+
fieldName: string;
|
|
2872
|
+
rules?: MlFromItemProps['rules'][];
|
|
2873
|
+
}
|
|
2874
|
+
export const OrSelectTable: React.FC<OrSelectTableProps>;
|
|
2728
2875
|
export interface OrFormInLineItem {
|
|
2729
2876
|
/**
|
|
2730
2877
|
* Type of components available for the form
|
|
2731
2878
|
*/
|
|
2732
|
-
component: 'radio' | 'number-input' | 'checkbox' | 'select' | 'select-multiple' | 'text' | 'phone' | 'date-picker' | 'date-range-picker' | 'cvc' | 'name' | 'select-input' | 'info' | 'copy-info' | 'status-info' | 'file-input' | 'collapse' | 'download-upload' | 'summary' | 'qr-code';
|
|
2879
|
+
component: 'radio' | 'number-input' | 'checkbox' | 'select' | 'select-multiple' | 'text' | 'phone' | 'date-picker' | 'date-range-picker' | 'cvc' | 'name' | 'select-input' | 'info' | 'copy-info' | 'status-info' | 'file-input' | 'collapse' | 'download-upload' | 'summary' | 'qr-code' | 'select-table' | 'google-map' | 'google-autocomplete-search';
|
|
2733
2880
|
/**
|
|
2734
2881
|
* Label of the field
|
|
2735
2882
|
*/
|
|
@@ -2753,7 +2900,7 @@ export interface OrFormInLineItem {
|
|
|
2753
2900
|
/**
|
|
2754
2901
|
* Specifies options for fields that allows options
|
|
2755
2902
|
*/
|
|
2756
|
-
options?: MlRadioGroupProps['options'] | MlCheckboxGroup['options'] | AtSelectProps['options'];
|
|
2903
|
+
options?: MlRadioGroupProps['options'] | MlCheckboxGroup['options'] | AtSelectProps['options'] | OrSelectTableOption[];
|
|
2757
2904
|
/**
|
|
2758
2905
|
* Rules for field validation. Click [here](https://ant.design/components/form#components-form-demo-basic) to see an example
|
|
2759
2906
|
*/
|
|
@@ -2829,76 +2976,40 @@ export interface OrFormInLineItem {
|
|
|
2829
2976
|
*/
|
|
2830
2977
|
extraInfo?: string;
|
|
2831
2978
|
/**
|
|
2832
|
-
* The
|
|
2833
|
-
*/
|
|
2834
|
-
size?: number;
|
|
2835
|
-
}
|
|
2836
|
-
export interface OrFormItemsInlineProps {
|
|
2837
|
-
inputs?: Array<OrFormInLineItem | Array<OrFormInLineItem | OrFormInLineItem[]>>;
|
|
2838
|
-
}
|
|
2839
|
-
export const OrFormItemsInline: React.FC<OrFormItemsInlineProps>;
|
|
2840
|
-
type _Size1 = 'large' | 'middle' | 'small';
|
|
2841
|
-
export interface OrMarkProps {
|
|
2842
|
-
id?: string;
|
|
2843
|
-
text?: string;
|
|
2844
|
-
color?: AtTextProps['color'];
|
|
2845
|
-
backgroundColor?: string;
|
|
2846
|
-
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
2847
|
-
size?: _Size1;
|
|
2848
|
-
position: {
|
|
2849
|
-
lat: number;
|
|
2850
|
-
lng: number;
|
|
2851
|
-
};
|
|
2852
|
-
component?: React.ReactNode;
|
|
2853
|
-
hasOverlay?: boolean;
|
|
2854
|
-
translate?: number[];
|
|
2855
|
-
}
|
|
2856
|
-
export const OrMark: React.FC<OrMarkProps>;
|
|
2857
|
-
export enum MarkSize {
|
|
2858
|
-
Large = "large",
|
|
2859
|
-
Middle = "middle",
|
|
2860
|
-
Small = "small"
|
|
2861
|
-
}
|
|
2862
|
-
export interface MarkersGroup {
|
|
2863
|
-
color?: OrMarkProps['color'];
|
|
2864
|
-
backgroundColor?: string;
|
|
2865
|
-
size?: OrMarkProps['size'];
|
|
2866
|
-
marks: OrMarkProps[];
|
|
2867
|
-
polyLine: boolean;
|
|
2868
|
-
}
|
|
2869
|
-
export interface OrGoogleMapsProps extends GoogleMapProps {
|
|
2870
|
-
/**
|
|
2871
|
-
* The origin of the route.
|
|
2979
|
+
* The Google Maps props
|
|
2872
2980
|
*/
|
|
2873
|
-
|
|
2981
|
+
mapsProps?: OrGoogleMapsProps;
|
|
2874
2982
|
/**
|
|
2875
|
-
* The
|
|
2983
|
+
* The Google Maps API key.
|
|
2876
2984
|
*/
|
|
2877
|
-
|
|
2985
|
+
GOOGLE_MAPS_API_KEY?: string;
|
|
2878
2986
|
/**
|
|
2879
|
-
*
|
|
2987
|
+
* Country code
|
|
2880
2988
|
*/
|
|
2881
|
-
|
|
2989
|
+
country?: string;
|
|
2882
2990
|
/**
|
|
2883
|
-
* The
|
|
2991
|
+
* The props for the autocomplete search
|
|
2884
2992
|
*/
|
|
2885
|
-
|
|
2993
|
+
autocompleteProps?: MlAutocompleteSearchProps & {
|
|
2994
|
+
fetchPlaceDetails?: (data: any) => void;
|
|
2995
|
+
};
|
|
2886
2996
|
/**
|
|
2887
|
-
* The
|
|
2997
|
+
* The size of the QR code
|
|
2888
2998
|
*/
|
|
2889
|
-
|
|
2999
|
+
size?: number;
|
|
2890
3000
|
/**
|
|
2891
|
-
*
|
|
3001
|
+
* Columns for the table (select-table component)
|
|
2892
3002
|
*/
|
|
2893
|
-
|
|
3003
|
+
columns?: OrTableProps['columns'];
|
|
2894
3004
|
/**
|
|
2895
|
-
*
|
|
3005
|
+
* Data for the table (select-table component)
|
|
2896
3006
|
*/
|
|
2897
|
-
|
|
2898
|
-
staticMarkers?: MarkersGroup[];
|
|
2899
|
-
realtimeMarkers?: MarkersGroup[];
|
|
3007
|
+
data?: OrTableProps['dataSource'];
|
|
2900
3008
|
}
|
|
2901
|
-
export
|
|
3009
|
+
export interface OrFormItemsInlineProps {
|
|
3010
|
+
inputs?: Array<OrFormInLineItem | Array<OrFormInLineItem | OrFormInLineItem[]>>;
|
|
3011
|
+
}
|
|
3012
|
+
export const OrFormItemsInline: React.FC<OrFormItemsInlineProps>;
|
|
2902
3013
|
type _Size2 = 'large' | 'middle' | 'small';
|
|
2903
3014
|
export interface OrLabelTextBoxProps {
|
|
2904
3015
|
title?: string;
|
|
@@ -2977,55 +3088,6 @@ export interface OrModuleTableHeaderProps {
|
|
|
2977
3088
|
secondaryButtonIcon?: string;
|
|
2978
3089
|
}
|
|
2979
3090
|
export const OrModuleTableHeader: React.FC<OrModuleTableHeaderProps>;
|
|
2980
|
-
export type OrColumnsType<T = unknown> = ColumnsType<T>;
|
|
2981
|
-
export type OnChangeTable<RecordType = AnyObject> = (pagination: TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter: SorterResult<RecordType> | SorterResult<RecordType>[], extra: TableCurrentDataSource<RecordType>) => void;
|
|
2982
|
-
export interface OrTableProps<RecordType = AnyObject> {
|
|
2983
|
-
/**
|
|
2984
|
-
* Whether to show all table borders
|
|
2985
|
-
*/
|
|
2986
|
-
bordered?: boolean;
|
|
2987
|
-
/**
|
|
2988
|
-
* Columns of table
|
|
2989
|
-
*/
|
|
2990
|
-
columns: TableProps<RecordType>['columns'];
|
|
2991
|
-
/**
|
|
2992
|
-
* Data record array to be displayed
|
|
2993
|
-
*/
|
|
2994
|
-
dataSource: TableProps<RecordType>['dataSource'];
|
|
2995
|
-
/**
|
|
2996
|
-
* Loading status of table
|
|
2997
|
-
*/
|
|
2998
|
-
loading?: TableProps<RecordType>['loading'];
|
|
2999
|
-
/**
|
|
3000
|
-
* Config of pagination. You can ref table pagination config or full pagination document, hide it by setting it to false
|
|
3001
|
-
*/
|
|
3002
|
-
pagination?: TableProps<RecordType>['pagination'];
|
|
3003
|
-
/**
|
|
3004
|
-
* Row's unique key, could be a string or function that returns a string
|
|
3005
|
-
*/
|
|
3006
|
-
rowKey?: TableProps<RecordType>['rowKey'];
|
|
3007
|
-
/**
|
|
3008
|
-
* Size of table
|
|
3009
|
-
*/
|
|
3010
|
-
size?: 'large' | 'middle' | 'small';
|
|
3011
|
-
/**
|
|
3012
|
-
* Set sticky header and scroll bar
|
|
3013
|
-
*/
|
|
3014
|
-
sticky?: boolean;
|
|
3015
|
-
/**
|
|
3016
|
-
* Table title renderer
|
|
3017
|
-
*/
|
|
3018
|
-
title?: TableProps<RecordType>['title'];
|
|
3019
|
-
/**
|
|
3020
|
-
* Callback executed when pagination, filters or sorter is changed
|
|
3021
|
-
*/
|
|
3022
|
-
onChange?: OnChangeTable<RecordType>;
|
|
3023
|
-
/**
|
|
3024
|
-
* row selection config
|
|
3025
|
-
*/
|
|
3026
|
-
rowSelection?: TableProps<RecordType>['rowSelection'];
|
|
3027
|
-
}
|
|
3028
|
-
export const OrTable: <RecordType extends AnyObject>({ bordered, loading, pagination, size, sticky, rowSelection, ...props }: OrTableProps<RecordType>) => import("react/jsx-runtime").JSX.Element;
|
|
3029
3091
|
export interface OrListSelectionProps {
|
|
3030
3092
|
/**
|
|
3031
3093
|
* Text of button to add
|
|
@@ -3692,22 +3754,6 @@ export interface TmMapPageProps {
|
|
|
3692
3754
|
realtimeMarkers?: MarkersArray[];
|
|
3693
3755
|
}
|
|
3694
3756
|
export const TmMapPage: React.FC<TmMapPageProps>;
|
|
3695
|
-
export const useMessage: () => readonly [import("antd/es/message/interface").MessageInstance, import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>];
|
|
3696
|
-
export interface ModalProps extends ModalFuncProps {
|
|
3697
|
-
variant: 'confirm' | 'warning' | 'info' | 'error';
|
|
3698
|
-
}
|
|
3699
|
-
export const useModal: () => {
|
|
3700
|
-
show: (config: ModalFuncProps) => {
|
|
3701
|
-
destroy: () => void;
|
|
3702
|
-
update: (configUpdate: ModalFuncProps | ((prevConfig: ModalFuncProps) => ModalFuncProps)) => void;
|
|
3703
|
-
} & {
|
|
3704
|
-
then<T>(resolve: (confirmed: boolean) => T, reject: VoidFunction): Promise<T>;
|
|
3705
|
-
};
|
|
3706
|
-
setVariant: import("react").Dispatch<import("react").SetStateAction<"warning" | "error" | "info" | "confirm">>;
|
|
3707
|
-
contextHolder: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
3708
|
-
};
|
|
3709
|
-
export const useForm: <T = any>() => [import("antd").FormInstance<T>];
|
|
3710
|
-
export const useFormWatch: <T = any>(name: string, form?: FormInstance | WatchOptions<FormInstance>) => T;
|
|
3711
3757
|
export interface TmRechargePageProps<FormType = any> {
|
|
3712
3758
|
/**
|
|
3713
3759
|
* Page title
|
|
@@ -3882,6 +3928,44 @@ export interface TmRechargePageProps<FormType = any> {
|
|
|
3882
3928
|
rate?: number;
|
|
3883
3929
|
}
|
|
3884
3930
|
export const TmRechargePage: <FormType extends Store>({ title, subtitle, balance, cardTitle, fontSize, height, ruleAmount, form, initialValues, onFinish, amountPlaceholder, currenciesOptions, defaultCurrency, amountToPayText, amountToPay, couponText, discount, totalText, taxText, tax, payBtn, drawerTitle, open, paymentMethods, currentPaymentSelectedFields, disabledButton, showPaymentMethods, termsDisclaimer, onCloseDrawer, showLeftArrow, onClickLeftArrow, editable, rate, values }: TmRechargePageProps<FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
3931
|
+
export interface OrRentalLayoutProps {
|
|
3932
|
+
/**
|
|
3933
|
+
* Children component
|
|
3934
|
+
*/
|
|
3935
|
+
children?: React.ReactNode;
|
|
3936
|
+
/**
|
|
3937
|
+
* Background source
|
|
3938
|
+
*/
|
|
3939
|
+
$backgroundSrc?: string;
|
|
3940
|
+
}
|
|
3941
|
+
export const OrRentalLayout: React.FC<OrRentalLayoutProps>;
|
|
3942
|
+
export interface TmRentalsPageProps<FormType = any> {
|
|
3943
|
+
/**
|
|
3944
|
+
* Form Steps info
|
|
3945
|
+
*/
|
|
3946
|
+
formSteps?: IFormStep<FormType>[];
|
|
3947
|
+
/**
|
|
3948
|
+
* On change form content
|
|
3949
|
+
*/
|
|
3950
|
+
onValuesChange?: OrFormProps['onValuesChange'];
|
|
3951
|
+
/**
|
|
3952
|
+
* Current step
|
|
3953
|
+
*/
|
|
3954
|
+
currentFormStep?: number;
|
|
3955
|
+
/**
|
|
3956
|
+
* Disabled buttons
|
|
3957
|
+
*/
|
|
3958
|
+
disabledButtons?: boolean;
|
|
3959
|
+
/**
|
|
3960
|
+
* button optional text
|
|
3961
|
+
*/
|
|
3962
|
+
showFormStepper?: boolean;
|
|
3963
|
+
/**
|
|
3964
|
+
* Background source
|
|
3965
|
+
*/
|
|
3966
|
+
$backgroundSrc?: string;
|
|
3967
|
+
}
|
|
3968
|
+
export const TmRentalsPage: <FormType extends Store>({ formSteps, onValuesChange, currentFormStep, disabledButtons, showFormStepper, $backgroundSrc, }: TmRentalsPageProps<FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
3885
3969
|
export interface PaymentMethod {
|
|
3886
3970
|
value: string;
|
|
3887
3971
|
icon?: React.ReactNode;
|
|
@@ -4088,17 +4172,6 @@ export interface OrRechargeProps {
|
|
|
4088
4172
|
onChangeRadio?: MlRadioGroupProps['onChange'];
|
|
4089
4173
|
}
|
|
4090
4174
|
export const OrRecharge: React.FC<OrRechargeProps>;
|
|
4091
|
-
export interface OrRentalLayoutProps {
|
|
4092
|
-
/**
|
|
4093
|
-
* Children component
|
|
4094
|
-
*/
|
|
4095
|
-
children?: React.ReactNode;
|
|
4096
|
-
/**
|
|
4097
|
-
* Background source
|
|
4098
|
-
*/
|
|
4099
|
-
$backgroundSrc?: string;
|
|
4100
|
-
}
|
|
4101
|
-
export const OrRentalLayout: React.FC<OrRentalLayoutProps>;
|
|
4102
4175
|
export interface OrRentalResultProps {
|
|
4103
4176
|
/**
|
|
4104
4177
|
* Children component
|
|
@@ -4195,6 +4268,17 @@ type AtPasswordInputProp = AtTextInputProps & {
|
|
|
4195
4268
|
iconRender?: (visible: boolean) => React.ReactNode;
|
|
4196
4269
|
};
|
|
4197
4270
|
export const AtPasswordInput: React.FC<AtPasswordInputProp>;
|
|
4271
|
+
export interface AtQrCodeProps {
|
|
4272
|
+
/**
|
|
4273
|
+
* The text to encode
|
|
4274
|
+
*/
|
|
4275
|
+
text: string;
|
|
4276
|
+
/**
|
|
4277
|
+
* The size of the QR code
|
|
4278
|
+
*/
|
|
4279
|
+
size?: number;
|
|
4280
|
+
}
|
|
4281
|
+
export const AtQrCode: React.FC<AtQrCodeProps>;
|
|
4198
4282
|
export interface AtRadioProps {
|
|
4199
4283
|
/**
|
|
4200
4284
|
* The ID for input
|
|
@@ -4462,6 +4546,7 @@ export interface AtSelectProps {
|
|
|
4462
4546
|
* text color
|
|
4463
4547
|
*/
|
|
4464
4548
|
$textColor?: 'white' | 'violet';
|
|
4549
|
+
variant?: SelectProps['variant'];
|
|
4465
4550
|
}
|
|
4466
4551
|
export const AtSelect: React.FC<AtSelectProps>;
|
|
4467
4552
|
export interface AtSwitchProps extends SwitchProps {
|
|
@@ -4581,16 +4666,5 @@ export interface AtTitleProps {
|
|
|
4581
4666
|
className?: string;
|
|
4582
4667
|
}
|
|
4583
4668
|
export const AtTitle: React.FC<AtTitleProps>;
|
|
4584
|
-
export interface AtQrCodeProps {
|
|
4585
|
-
/**
|
|
4586
|
-
* The text to encode
|
|
4587
|
-
*/
|
|
4588
|
-
text: string;
|
|
4589
|
-
/**
|
|
4590
|
-
* The size of the QR code
|
|
4591
|
-
*/
|
|
4592
|
-
size?: number;
|
|
4593
|
-
}
|
|
4594
|
-
export const AtQrCode: React.FC<AtQrCodeProps>;
|
|
4595
4669
|
|
|
4596
4670
|
//# sourceMappingURL=index.d.ts.map
|