enwawa-ui 1.5.4 → 1.6.1
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 +90 -10
- package/lib/index.d.ts.map +1 -1
- package/lib/index.es.js +251 -60
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +250 -59
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -985,11 +985,15 @@ export interface AtTextProps {
|
|
|
985
985
|
/**
|
|
986
986
|
* Element width
|
|
987
987
|
*/
|
|
988
|
-
$width?: number;
|
|
988
|
+
$width?: number | string;
|
|
989
989
|
/**
|
|
990
990
|
* font size
|
|
991
991
|
*/
|
|
992
992
|
$fontSize?: number;
|
|
993
|
+
/**
|
|
994
|
+
* textAlign
|
|
995
|
+
*/
|
|
996
|
+
$textAlign?: "center" | "left" | "right" | "justify" | "initial" | "inherit" | "unset";
|
|
993
997
|
}
|
|
994
998
|
export const AtText: React.FC<AtTextProps>;
|
|
995
999
|
export interface AtTitleProps {
|
|
@@ -1834,6 +1838,24 @@ export interface OrTicketCardProps {
|
|
|
1834
1838
|
onChange?: (e: string | React.MouseEvent<HTMLAnchorElement, MouseEvent> | React.MouseEvent<HTMLButtonElement, MouseEvent> | number | null) => void;
|
|
1835
1839
|
}
|
|
1836
1840
|
export const OrTicketCard: React.FC<OrTicketCardProps>;
|
|
1841
|
+
export interface OrPlanCardsProps {
|
|
1842
|
+
/**
|
|
1843
|
+
* Active subscriptions
|
|
1844
|
+
*/
|
|
1845
|
+
activeSubscriptions?: Array<{
|
|
1846
|
+
title: string;
|
|
1847
|
+
description: string;
|
|
1848
|
+
}>;
|
|
1849
|
+
/**
|
|
1850
|
+
* subscriptions onChange event
|
|
1851
|
+
*/
|
|
1852
|
+
subscriptionOnChange?: (e: _RadioChangeEvent1) => void;
|
|
1853
|
+
/**
|
|
1854
|
+
* Plans and Subscriptions
|
|
1855
|
+
*/
|
|
1856
|
+
subscriptions: Array<MlSubscriptionCardProps>;
|
|
1857
|
+
}
|
|
1858
|
+
export const OrPlanCards: React.FC<OrPlanCardsProps>;
|
|
1837
1859
|
export interface OrCoinTableProps {
|
|
1838
1860
|
/**
|
|
1839
1861
|
* List of coins available
|
|
@@ -2160,6 +2182,22 @@ export interface OrContentProps extends LayoutProps {
|
|
|
2160
2182
|
$main?: boolean;
|
|
2161
2183
|
}
|
|
2162
2184
|
export const OrContent: React.FC<OrContentProps>;
|
|
2185
|
+
export type Size = 'large' | 'middle' | 'small';
|
|
2186
|
+
declare const sizes: {
|
|
2187
|
+
[key in Size]: {
|
|
2188
|
+
fontSize: number;
|
|
2189
|
+
height: number;
|
|
2190
|
+
};
|
|
2191
|
+
};
|
|
2192
|
+
export interface OrCopyInfoProps {
|
|
2193
|
+
text?: string;
|
|
2194
|
+
copyable?: boolean;
|
|
2195
|
+
size?: keyof typeof sizes;
|
|
2196
|
+
id?: string;
|
|
2197
|
+
onCopy?: () => {};
|
|
2198
|
+
textProps?: AtTextProps;
|
|
2199
|
+
}
|
|
2200
|
+
export const OrCopyInfo: React.FC<OrCopyInfoProps>;
|
|
2163
2201
|
export interface OrCountryCardProps {
|
|
2164
2202
|
/**
|
|
2165
2203
|
* The ID for card
|
|
@@ -2610,11 +2648,31 @@ export interface OrPhoneInputProps {
|
|
|
2610
2648
|
rules?: MlFromItemProps['rules'];
|
|
2611
2649
|
}
|
|
2612
2650
|
export const OrPhoneInput: React.FC<OrPhoneInputProps>;
|
|
2651
|
+
export interface OrSelectInputProps {
|
|
2652
|
+
/**
|
|
2653
|
+
* Dial codes options
|
|
2654
|
+
*/
|
|
2655
|
+
options: AtSelectProps['options'];
|
|
2656
|
+
/**
|
|
2657
|
+
* Disabled input
|
|
2658
|
+
*/
|
|
2659
|
+
disabled?: boolean;
|
|
2660
|
+
/**
|
|
2661
|
+
* Rules for validation
|
|
2662
|
+
* @default []
|
|
2663
|
+
*/
|
|
2664
|
+
rules?: MlFromItemProps['rules'][];
|
|
2665
|
+
type?: 'number' | 'text';
|
|
2666
|
+
fieldName: string;
|
|
2667
|
+
inputProps?: AtTextInputProps | AtNumberInputProps;
|
|
2668
|
+
selectProps?: AtSelectProps;
|
|
2669
|
+
}
|
|
2670
|
+
export const OrSelectInput: React.FC<OrSelectInputProps>;
|
|
2613
2671
|
export interface OrFormInLineItem {
|
|
2614
2672
|
/**
|
|
2615
2673
|
* Type of components available for the form
|
|
2616
2674
|
*/
|
|
2617
|
-
component: 'radio' | 'number-input' | 'checkbox' | 'select' | 'select-multiple' | 'text' | 'phone' | 'date-picker' | 'cvc' | 'name';
|
|
2675
|
+
component: 'radio' | 'number-input' | 'checkbox' | 'select' | 'select-multiple' | 'text' | 'phone' | 'date-picker' | 'cvc' | 'name' | 'select-input' | 'info' | 'copy-info';
|
|
2618
2676
|
/**
|
|
2619
2677
|
* Label of the field
|
|
2620
2678
|
*/
|
|
@@ -2654,6 +2712,10 @@ export interface OrFormInLineItem {
|
|
|
2654
2712
|
* Format of the date
|
|
2655
2713
|
*/
|
|
2656
2714
|
format?: string;
|
|
2715
|
+
textProps?: AtTextProps & {
|
|
2716
|
+
text?: string;
|
|
2717
|
+
};
|
|
2718
|
+
onClick?: () => any;
|
|
2657
2719
|
}
|
|
2658
2720
|
export interface OrFormItemsInlineProps {
|
|
2659
2721
|
inputs?: Array<OrFormInLineItem | OrFormInLineItem[]>;
|
|
@@ -2684,6 +2746,14 @@ export interface OrTableModuleLayoutProps {
|
|
|
2684
2746
|
* padding
|
|
2685
2747
|
*/
|
|
2686
2748
|
padding?: string;
|
|
2749
|
+
/**
|
|
2750
|
+
* whether to show left arrow
|
|
2751
|
+
*/
|
|
2752
|
+
leftArrow?: boolean;
|
|
2753
|
+
/**
|
|
2754
|
+
* left arrow click event
|
|
2755
|
+
*/
|
|
2756
|
+
onClickLeftArrow?: () => void;
|
|
2687
2757
|
}
|
|
2688
2758
|
export const OrTableModuleLayout: React.FC<OrTableModuleLayoutProps>;
|
|
2689
2759
|
export interface OrHeaderBalanceProps {
|
|
@@ -2703,6 +2773,14 @@ export interface OrHeaderBalanceProps {
|
|
|
2703
2773
|
* container padding
|
|
2704
2774
|
*/
|
|
2705
2775
|
padding?: string;
|
|
2776
|
+
/**
|
|
2777
|
+
* whether to show left arrow
|
|
2778
|
+
*/
|
|
2779
|
+
showLeftArrow?: boolean;
|
|
2780
|
+
/**
|
|
2781
|
+
* left arrow click event
|
|
2782
|
+
*/
|
|
2783
|
+
onClickLeftArrow?: () => void;
|
|
2706
2784
|
}
|
|
2707
2785
|
export const OrHeaderBalance: React.FC<OrHeaderBalanceProps>;
|
|
2708
2786
|
type _Size1 = 'large' | 'middle' | 'small';
|
|
@@ -2928,20 +3006,14 @@ export interface OrLoginLayoutProps {
|
|
|
2928
3006
|
children?: React.ReactNode;
|
|
2929
3007
|
}
|
|
2930
3008
|
export const OrLoginLayout: React.FC<OrLoginLayoutProps>;
|
|
2931
|
-
|
|
2932
|
-
export const sizes: {
|
|
2933
|
-
[key in Size]: {
|
|
2934
|
-
width: number;
|
|
2935
|
-
height: number;
|
|
2936
|
-
};
|
|
2937
|
-
};
|
|
3009
|
+
type _Size2 = 'large' | 'middle' | 'small';
|
|
2938
3010
|
export interface OrMarkProps {
|
|
2939
3011
|
id?: string;
|
|
2940
3012
|
text?: string;
|
|
2941
3013
|
color?: AtTextProps['color'];
|
|
2942
3014
|
backgroundColor?: string;
|
|
2943
3015
|
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
2944
|
-
size?:
|
|
3016
|
+
size?: _Size2;
|
|
2945
3017
|
position: {
|
|
2946
3018
|
lat: number;
|
|
2947
3019
|
lng: number;
|
|
@@ -3662,6 +3734,14 @@ export interface TmRechargePageProps {
|
|
|
3662
3734
|
* onChange radio group
|
|
3663
3735
|
*/
|
|
3664
3736
|
onChangeRadio?: MlRadioGroupProps['onChange'];
|
|
3737
|
+
/**
|
|
3738
|
+
* whether to show left arrow
|
|
3739
|
+
*/
|
|
3740
|
+
showLeftArrow?: boolean;
|
|
3741
|
+
/**
|
|
3742
|
+
* left arrow click event
|
|
3743
|
+
*/
|
|
3744
|
+
onClickLeftArrow?: () => void;
|
|
3665
3745
|
}
|
|
3666
3746
|
export const TmRechargePage: React.FC<TmRechargePageProps>;
|
|
3667
3747
|
export interface OrPaymentCardProps {
|