enwawa-ui 1.17.2 → 1.17.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/CHANGELOG.md +8 -0
- package/lib/index.d.ts +74 -24
- package/lib/index.d.ts.map +1 -1
- package/lib/index.es.js +191 -20
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +189 -18
- package/lib/index.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
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, AlertProps, BreadcrumbProps, InputNumberProps, DropdownProps, MenuProps, ColProps, PaginationProps, RadioChangeEvent, TooltipProps, RowProps, CollapseProps, LayoutProps, SiderProps, SpaceProps, FormProps,
|
|
3
|
+
import { CheckboxProps, CountdownProps, DatePickerProps, ImageProps, AlertProps, BreadcrumbProps, InputNumberProps, DropdownProps, MenuProps, ColProps, PaginationProps, RadioChangeEvent, TooltipProps, UploadProps, RowProps, CollapseProps, LayoutProps, SiderProps, SpaceProps, FormProps, TableProps, ModalFuncProps, ModalProps as _ModalProps1, StepsProps, FormInstance, SelectProps, TagProps } from "antd";
|
|
4
4
|
import { Dayjs } from "dayjs";
|
|
5
5
|
import { RangePickerProps } from "antd/lib/date-picker";
|
|
6
6
|
import { IconComponentProps } from "@ant-design/icons/lib/components/Icon";
|
|
@@ -25,8 +25,8 @@ import { GoogleMap, GoogleMapProps } from "@react-google-maps/api";
|
|
|
25
25
|
import { WatchOptions } from "rc-field-form/es/interface";
|
|
26
26
|
import { CheckboxChangeEvent } from "antd/es/checkbox";
|
|
27
27
|
import { RadioChangeEvent as _RadioChangeEvent1 } from "antd/es/radio";
|
|
28
|
-
import { SwitchProps } from "antd/lib";
|
|
29
28
|
import { SegmentedProps, SegmentedValue } from "antd/lib/segmented";
|
|
29
|
+
import { SwitchProps } from "antd/lib";
|
|
30
30
|
export interface AtAvatarProps {
|
|
31
31
|
/**
|
|
32
32
|
* This attribute defines the alternative text describing the image
|
|
@@ -1273,7 +1273,7 @@ export interface MlFromItemProps {
|
|
|
1273
1273
|
/**
|
|
1274
1274
|
* Specify how to get value from event or other onChange arguments
|
|
1275
1275
|
*/
|
|
1276
|
-
getValueFromEvent?: (
|
|
1276
|
+
getValueFromEvent?: (e: any) => any;
|
|
1277
1277
|
/**
|
|
1278
1278
|
* Fullwidth button
|
|
1279
1279
|
*/
|
|
@@ -1545,6 +1545,52 @@ export interface MlTooltipProps {
|
|
|
1545
1545
|
placement?: TooltipProps['placement'];
|
|
1546
1546
|
}
|
|
1547
1547
|
export const MlTooltip: React.FC<MlTooltipProps>;
|
|
1548
|
+
export interface MlUploadProps extends UploadProps {
|
|
1549
|
+
/**
|
|
1550
|
+
* The type of upload
|
|
1551
|
+
*/
|
|
1552
|
+
mode?: 'drag' | 'basic';
|
|
1553
|
+
/**
|
|
1554
|
+
* The title of the upload
|
|
1555
|
+
*/
|
|
1556
|
+
title?: string;
|
|
1557
|
+
/**
|
|
1558
|
+
* The hint of the upload
|
|
1559
|
+
*/
|
|
1560
|
+
hint?: string;
|
|
1561
|
+
/**
|
|
1562
|
+
* The width of the upload
|
|
1563
|
+
*/
|
|
1564
|
+
$fullWidth?: boolean;
|
|
1565
|
+
/**
|
|
1566
|
+
* The maximum number of files to upload
|
|
1567
|
+
*/
|
|
1568
|
+
maxCount?: number;
|
|
1569
|
+
/**
|
|
1570
|
+
* The name of the field
|
|
1571
|
+
*/
|
|
1572
|
+
fieldName?: string;
|
|
1573
|
+
/**
|
|
1574
|
+
* The type of the list
|
|
1575
|
+
*/
|
|
1576
|
+
listType?: UploadProps['listType'];
|
|
1577
|
+
}
|
|
1578
|
+
export const MlUpload: React.FC<MlUploadProps>;
|
|
1579
|
+
interface MlDownloadProps {
|
|
1580
|
+
/**
|
|
1581
|
+
* The function to call when the download button is clicked
|
|
1582
|
+
*/
|
|
1583
|
+
downloadOnClick?: () => any;
|
|
1584
|
+
/**
|
|
1585
|
+
* The text to display on the download button
|
|
1586
|
+
*/
|
|
1587
|
+
downloadText: string;
|
|
1588
|
+
}
|
|
1589
|
+
export interface MlDownloadUploadProps {
|
|
1590
|
+
downloadProps: MlDownloadProps;
|
|
1591
|
+
uploadProps: MlUploadProps;
|
|
1592
|
+
}
|
|
1593
|
+
export const MlDownloadUpload: React.FC<MlDownloadUploadProps>;
|
|
1548
1594
|
export interface OrPlanCardsProps {
|
|
1549
1595
|
/**
|
|
1550
1596
|
* Active subscriptions
|
|
@@ -2554,7 +2600,7 @@ export interface OrFormInLineItem {
|
|
|
2554
2600
|
/**
|
|
2555
2601
|
* Type of components available for the form
|
|
2556
2602
|
*/
|
|
2557
|
-
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';
|
|
2603
|
+
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';
|
|
2558
2604
|
/**
|
|
2559
2605
|
* Label of the field
|
|
2560
2606
|
*/
|
|
@@ -2612,7 +2658,7 @@ export interface OrFormInLineItem {
|
|
|
2612
2658
|
/**
|
|
2613
2659
|
* Specify how to get value from event or other onChange arguments
|
|
2614
2660
|
*/
|
|
2615
|
-
getValueFromEvent?: (
|
|
2661
|
+
getValueFromEvent?: (e: any) => any;
|
|
2616
2662
|
/**
|
|
2617
2663
|
* Hook function which will be executed before uploading. Uploading will be stopped with false or a rejected Promise returned. When returned value is Upload.LIST_IGNORE, the list of files that have been uploaded will ignore it. Warning:this function is not supported in IE9
|
|
2618
2664
|
*/
|
|
@@ -2629,6 +2675,10 @@ export interface OrFormInLineItem {
|
|
|
2629
2675
|
* Tooltip of the label
|
|
2630
2676
|
*/
|
|
2631
2677
|
tooltip?: MlFromItemProps['tooltip'];
|
|
2678
|
+
/**
|
|
2679
|
+
* Title of the download-upload
|
|
2680
|
+
*/
|
|
2681
|
+
title?: string;
|
|
2632
2682
|
}
|
|
2633
2683
|
export interface OrFormItemsInlineProps {
|
|
2634
2684
|
inputs?: Array<OrFormInLineItem | OrFormInLineItem[]>;
|
|
@@ -3928,6 +3978,25 @@ export interface AtResultProps {
|
|
|
3928
3978
|
extra?: React.ReactNode;
|
|
3929
3979
|
}
|
|
3930
3980
|
export const AtResult: React.FC<AtResultProps>;
|
|
3981
|
+
export interface AtSegmentedProps {
|
|
3982
|
+
/**
|
|
3983
|
+
* State for the current value of the segmented
|
|
3984
|
+
*/
|
|
3985
|
+
value?: SegmentedValue;
|
|
3986
|
+
/**
|
|
3987
|
+
* On change callback
|
|
3988
|
+
*/
|
|
3989
|
+
onChange?: (value: SegmentedValue) => void;
|
|
3990
|
+
/**
|
|
3991
|
+
* List of options for the segmented
|
|
3992
|
+
*/
|
|
3993
|
+
options: SegmentedProps['options'];
|
|
3994
|
+
/**
|
|
3995
|
+
* Disable the segmented
|
|
3996
|
+
*/
|
|
3997
|
+
disabled?: SegmentedProps['disabled'];
|
|
3998
|
+
}
|
|
3999
|
+
export const AtSegmented: React.FC<AtSegmentedProps>;
|
|
3931
4000
|
export interface AtSelectProps {
|
|
3932
4001
|
/**
|
|
3933
4002
|
* The ID for input
|
|
@@ -4234,24 +4303,5 @@ export interface AtTitleProps {
|
|
|
4234
4303
|
$textAlign?: string;
|
|
4235
4304
|
}
|
|
4236
4305
|
export const AtTitle: React.FC<AtTitleProps>;
|
|
4237
|
-
export interface AtSegmentedProps {
|
|
4238
|
-
/**
|
|
4239
|
-
* State for the current value of the segmented
|
|
4240
|
-
*/
|
|
4241
|
-
value?: SegmentedValue;
|
|
4242
|
-
/**
|
|
4243
|
-
* On change callback
|
|
4244
|
-
*/
|
|
4245
|
-
onChange?: (value: SegmentedValue) => void;
|
|
4246
|
-
/**
|
|
4247
|
-
* List of options for the segmented
|
|
4248
|
-
*/
|
|
4249
|
-
options: SegmentedProps['options'];
|
|
4250
|
-
/**
|
|
4251
|
-
* Disable the segmented
|
|
4252
|
-
*/
|
|
4253
|
-
disabled?: SegmentedProps['disabled'];
|
|
4254
|
-
}
|
|
4255
|
-
export const AtSegmented: React.FC<AtSegmentedProps>;
|
|
4256
4306
|
|
|
4257
4307
|
//# sourceMappingURL=index.d.ts.map
|