enwawa-ui 2.1.0 → 2.3.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 +62 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.es.js +769 -719
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +767 -717
- 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 +126 -126
- package/readme.md +2 -2
- package/CHANGELOG.md +0 -1054
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 { ButtonProps, DescriptionsProps, SwitchProps } from "antd/lib";
|
|
3
|
+
import { ButtonProps, AutoCompleteProps, DescriptionsProps, SwitchProps } from "antd/lib";
|
|
4
4
|
import { CheckboxProps, CountdownProps, DatePickerProps, ImageProps, AlertProps, ColProps, BreadcrumbProps, InputNumberProps, DropdownProps, MenuProps, SelectProps, PaginationProps, RadioChangeEvent, TooltipProps, UploadProps, RowProps, CollapseProps, LayoutProps, SiderProps, SpaceProps, FormProps, ModalFuncProps, FormInstance, TableProps, StepsProps, ModalProps as _ModalProps1, TagProps } from "antd";
|
|
5
5
|
import { Dayjs } from "dayjs";
|
|
6
6
|
import { RangePickerProps } from "antd/lib/date-picker";
|
|
@@ -12,10 +12,10 @@ import { CardType } from "antd/es/card/Card";
|
|
|
12
12
|
import { NamePath, Store, StoreValue } from "antd/es/form/interface";
|
|
13
13
|
import { RuleObject } from "antd/es/form";
|
|
14
14
|
import { LabelTooltipType } from "antd/es/form/FormItemLabel";
|
|
15
|
+
import { DefaultOptionType, LabeledValue } from "antd/es/select";
|
|
15
16
|
import { DotPosition } from "antd/es/carousel";
|
|
16
17
|
import { CheckboxGroupProps } from "antd/es/checkbox/Group";
|
|
17
18
|
import { ValueType } from "@rc-component/mini-decimal";
|
|
18
|
-
import { LabeledValue, DefaultOptionType } from "antd/es/select";
|
|
19
19
|
import { Gutter } from "antd/es/grid/row";
|
|
20
20
|
import { BlockProps, EllipsisConfig, BaseType } from "antd/es/typography/Base";
|
|
21
21
|
import { TextProps as _TextProps1 } from "antd/es/typography/Text";
|
|
@@ -1026,6 +1026,61 @@ export interface MlAutocompleteSearchProps {
|
|
|
1026
1026
|
onSelectValue?: AtSelectProps['onSelect'];
|
|
1027
1027
|
}
|
|
1028
1028
|
export const MlAutocompleteSearch: React.FC<MlAutocompleteSearchProps>;
|
|
1029
|
+
export interface MlAutocompleteSearchTextProps {
|
|
1030
|
+
/**
|
|
1031
|
+
* The ID for input
|
|
1032
|
+
*/
|
|
1033
|
+
id?: string;
|
|
1034
|
+
/**
|
|
1035
|
+
* Select props
|
|
1036
|
+
*/
|
|
1037
|
+
selectProps?: AutoCompleteProps;
|
|
1038
|
+
/**
|
|
1039
|
+
* Field name
|
|
1040
|
+
*/
|
|
1041
|
+
fieldName?: string;
|
|
1042
|
+
/**
|
|
1043
|
+
* Rules
|
|
1044
|
+
*/
|
|
1045
|
+
rules?: RuleObject[];
|
|
1046
|
+
/**
|
|
1047
|
+
* Custom options
|
|
1048
|
+
*/
|
|
1049
|
+
options?: AutoCompleteProps['options'];
|
|
1050
|
+
/**
|
|
1051
|
+
* Placeholder of select
|
|
1052
|
+
*/
|
|
1053
|
+
placeholder?: ReactNode;
|
|
1054
|
+
/**
|
|
1055
|
+
* Whether disabled select
|
|
1056
|
+
*/
|
|
1057
|
+
disabled?: boolean;
|
|
1058
|
+
/**
|
|
1059
|
+
* The size of the input box. Note: in the context of a form, the middle size is used
|
|
1060
|
+
*/
|
|
1061
|
+
size?: 'large' | 'middle' | 'small';
|
|
1062
|
+
/**
|
|
1063
|
+
* Custom styles properties
|
|
1064
|
+
*/
|
|
1065
|
+
style?: React.CSSProperties;
|
|
1066
|
+
/**
|
|
1067
|
+
* Default options
|
|
1068
|
+
*/
|
|
1069
|
+
defaultOptions?: AutoCompleteProps['options'];
|
|
1070
|
+
/**
|
|
1071
|
+
* Callback function that is fired when input changed in order to fetch places
|
|
1072
|
+
*/
|
|
1073
|
+
onSearch?: (value: string) => any;
|
|
1074
|
+
/**
|
|
1075
|
+
* Callback function that is fired when input changed in order to fetch places
|
|
1076
|
+
*/
|
|
1077
|
+
onChange?: (value: any, option: DefaultOptionType | Array<DefaultOptionType>) => any;
|
|
1078
|
+
/**
|
|
1079
|
+
* Called when an option is selected, the params are option's value (or key) and option instance
|
|
1080
|
+
*/
|
|
1081
|
+
onSelectValue?: AutoCompleteProps['onSelect'];
|
|
1082
|
+
}
|
|
1083
|
+
export const MlAutocompleteSearchText: React.FC<MlAutocompleteSearchTextProps>;
|
|
1029
1084
|
export interface MlBreadcrumbProps {
|
|
1030
1085
|
/**
|
|
1031
1086
|
* Custom item renderer
|
|
@@ -3131,7 +3186,7 @@ export interface OrFormInLineItem {
|
|
|
3131
3186
|
/**
|
|
3132
3187
|
* Type of components available for the form
|
|
3133
3188
|
*/
|
|
3134
|
-
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' | 'stepper' | 'input-list' | 'button' | 'image' | 'time-range-picker';
|
|
3189
|
+
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' | 'stepper' | 'input-list' | 'button' | 'image' | 'time-range-picker' | 'autocomplete-search';
|
|
3135
3190
|
/**
|
|
3136
3191
|
* Label of the field
|
|
3137
3192
|
*/
|
|
@@ -3327,6 +3382,10 @@ export interface OrFormInLineItem {
|
|
|
3327
3382
|
* The props for the time range picker
|
|
3328
3383
|
*/
|
|
3329
3384
|
timeRangePickerProps?: AtTimeRangePickerProps;
|
|
3385
|
+
/**
|
|
3386
|
+
* Allow auto clear for a select field
|
|
3387
|
+
*/
|
|
3388
|
+
autoClearSearchValue?: boolean | undefined;
|
|
3330
3389
|
}
|
|
3331
3390
|
export interface OrFormItemsInlineProps {
|
|
3332
3391
|
inputs?: Array<OrFormInLineItem | Array<OrFormInLineItem | OrFormInLineItem[]>>;
|