enwawa-ui 1.7.0 → 1.8.0

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 CHANGED
@@ -7,6 +7,7 @@ import * as Icons from "@ant-design/icons";
7
7
  import { ValueType } from "@rc-component/mini-decimal";
8
8
  import { RadioChangeEvent } from "antd/es/radio";
9
9
  import { DefaultOptionType, LabeledValue } from "antd/es/select";
10
+ import { SwitchProps } from "antd/lib";
10
11
  import { BlockProps, EllipsisConfig, BaseType } from "antd/es/typography/Base";
11
12
  import { DotPosition } from "antd/es/carousel";
12
13
  import { CheckboxGroupProps } from "antd/es/checkbox/Group";
@@ -901,6 +902,25 @@ export interface AtSelectProps {
901
902
  $textColor?: 'white' | 'violet';
902
903
  }
903
904
  export const AtSelect: React.FC<AtSelectProps>;
905
+ export interface AtSwitchProps extends SwitchProps {
906
+ /**
907
+ * Whether get focus when component mounted
908
+ */
909
+ autoFocus?: boolean;
910
+ /**
911
+ * Determine whether the Switch is checked
912
+ */
913
+ checked?: boolean;
914
+ /**
915
+ * Determine whether the Switch is checked
916
+ */
917
+ disabled?: boolean;
918
+ /**
919
+ * Trigger when the checked state is changing
920
+ */
921
+ onChange?: SwitchProps['onChange'];
922
+ }
923
+ export const AtSwitch: React.FC<AtSwitchProps>;
904
924
  export interface AtTagProps {
905
925
  /**
906
926
  * Custom close icon. 5.7.0: close button will be hidden when setting to null or false
@@ -2944,9 +2964,17 @@ export interface OrLoginLayoutProps {
2944
2964
  */
2945
2965
  $carouselBackgroundSrc?: string;
2946
2966
  /**
2947
- * Images to show into carousel
2967
+ * Images to show into carousel
2968
+ */
2969
+ carouselImages: string[] | {
2970
+ src?: string;
2971
+ component?: React.ReactNode;
2972
+ text?: string;
2973
+ }[];
2974
+ /**
2975
+ * Carousel text props
2948
2976
  */
2949
- carouselImages: string[];
2977
+ carouselTextProps?: AtTextProps;
2950
2978
  /**
2951
2979
  * Content to render into layout
2952
2980
  */
@@ -3671,8 +3699,9 @@ export interface TmRechargePageProps<FormType = any> {
3671
3699
  */
3672
3700
  onClickLeftArrow?: () => void;
3673
3701
  editable?: boolean;
3702
+ rate?: number;
3674
3703
  }
3675
- 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, }: TmRechargePageProps<FormType>) => import("react/jsx-runtime").JSX.Element;
3704
+ 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 }: TmRechargePageProps<FormType>) => import("react/jsx-runtime").JSX.Element;
3676
3705
  export interface PaymentMethod {
3677
3706
  value: string;
3678
3707
  icon?: React.ReactNode;