enwawa-ui 1.16.0 → 1.16.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 +31 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.es.js +115 -43
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +113 -41
- package/lib/index.js.map +1 -1
- package/package.json +4 -3
- package/CHANGELOG.md +0 -844
package/lib/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { DotPosition } from "antd/es/carousel";
|
|
|
11
11
|
import { CheckboxGroupProps } from "antd/es/checkbox/Group";
|
|
12
12
|
import { ValueType } from "@rc-component/mini-decimal";
|
|
13
13
|
import { NamePath, Store, StoreValue } from "antd/es/form/interface";
|
|
14
|
-
import {
|
|
14
|
+
import { RuleObject } from "antd/es/form";
|
|
15
15
|
import { LabelTooltipType } from "antd/es/form/FormItemLabel";
|
|
16
16
|
import { Gutter } from "antd/es/grid/row";
|
|
17
17
|
import { BlockProps, EllipsisConfig, BaseType } from "antd/es/typography/Base";
|
|
@@ -1228,7 +1228,7 @@ export interface MlFromItemProps {
|
|
|
1228
1228
|
/**
|
|
1229
1229
|
* Rules for field validation. Click [here](https://ant.design/components/form#components-form-demo-basic) to see an example
|
|
1230
1230
|
*/
|
|
1231
|
-
rules?:
|
|
1231
|
+
rules?: RuleObject[];
|
|
1232
1232
|
/**
|
|
1233
1233
|
* Config tooltip info
|
|
1234
1234
|
*/
|
|
@@ -1262,7 +1262,7 @@ export interface MlFromItemProps {
|
|
|
1262
1262
|
*/
|
|
1263
1263
|
getValueFromEvent?: (...args: any[]) => any;
|
|
1264
1264
|
/**
|
|
1265
|
-
*
|
|
1265
|
+
* Fullwidth button
|
|
1266
1266
|
*/
|
|
1267
1267
|
$fullWidth?: boolean;
|
|
1268
1268
|
}
|
|
@@ -2436,6 +2436,17 @@ export interface OrDrawerProps {
|
|
|
2436
2436
|
children?: React.ReactNode;
|
|
2437
2437
|
}
|
|
2438
2438
|
export const OrDrawer: React.FC<OrDrawerProps>;
|
|
2439
|
+
export interface OrEmptyProps {
|
|
2440
|
+
/**
|
|
2441
|
+
* The main text of the empty card
|
|
2442
|
+
*/
|
|
2443
|
+
title: string;
|
|
2444
|
+
/**
|
|
2445
|
+
* The additional text of the empty card
|
|
2446
|
+
*/
|
|
2447
|
+
description: string;
|
|
2448
|
+
}
|
|
2449
|
+
export const OrEmpty: React.FC<OrEmptyProps>;
|
|
2439
2450
|
export interface OrFlagGridProps {
|
|
2440
2451
|
/**
|
|
2441
2452
|
* The ID for cards
|
|
@@ -2594,10 +2605,17 @@ export interface OrFormInLineItem {
|
|
|
2594
2605
|
*/
|
|
2595
2606
|
beforeUpload?: UploadProps['beforeUpload'];
|
|
2596
2607
|
/**
|
|
2597
|
-
*
|
|
2608
|
+
* Enables full width
|
|
2598
2609
|
*/
|
|
2599
2610
|
fullWidth?: boolean;
|
|
2611
|
+
/**
|
|
2612
|
+
* Type of the status info
|
|
2613
|
+
*/
|
|
2600
2614
|
type?: 'success' | 'warning' | 'danger' | 'info';
|
|
2615
|
+
/**
|
|
2616
|
+
* Tooltip of the label
|
|
2617
|
+
*/
|
|
2618
|
+
tooltip?: MlFromItemProps['tooltip'];
|
|
2601
2619
|
}
|
|
2602
2620
|
export interface OrFormItemsInlineProps {
|
|
2603
2621
|
inputs?: Array<OrFormInLineItem | OrFormInLineItem[]>;
|
|
@@ -3445,6 +3463,14 @@ export interface TmRechargePageProps<FormType = any> {
|
|
|
3445
3463
|
* The input content value
|
|
3446
3464
|
*/
|
|
3447
3465
|
value?: number;
|
|
3466
|
+
/**
|
|
3467
|
+
* Custom values for amounts
|
|
3468
|
+
*/
|
|
3469
|
+
values?: {
|
|
3470
|
+
label: string;
|
|
3471
|
+
value: number;
|
|
3472
|
+
type: 'VALUE' | 'PERCENTAGE';
|
|
3473
|
+
}[];
|
|
3448
3474
|
/**
|
|
3449
3475
|
* font size of the input
|
|
3450
3476
|
*/
|
|
@@ -3585,7 +3611,7 @@ export interface TmRechargePageProps<FormType = any> {
|
|
|
3585
3611
|
editable?: boolean;
|
|
3586
3612
|
rate?: number;
|
|
3587
3613
|
}
|
|
3588
|
-
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;
|
|
3614
|
+
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;
|
|
3589
3615
|
export interface PaymentMethod {
|
|
3590
3616
|
value: string;
|
|
3591
3617
|
icon?: React.ReactNode;
|