@next-bricks/form 1.21.1 → 1.21.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/dist/bricks.json +13 -13
- package/dist/chunks/9949.c6f285e9.js.map +1 -1
- package/dist/chunks/eo-radio.f2527bfa.js.map +1 -1
- package/dist/examples.json +6 -6
- package/dist/{index.5e6c368b.js → index.64a9544d.js} +2 -2
- package/dist/{index.5e6c368b.js.map → index.64a9544d.js.map} +1 -1
- package/dist/manifest.json +252 -252
- package/dist/types.json +2065 -2065
- package/dist-types/jsx.d.ts +129 -0
- package/dist-types/radio/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import type { DetailedHTMLProps, HTMLAttributes } from "react";
|
|
2
|
+
import type { AutoComplete, AutoCompleteProps } from "./auto-complete";
|
|
3
|
+
import type { Checkbox, CheckboxProps, CheckboxOptionType } from "./checkbox";
|
|
4
|
+
import type { EoColorPicker, EoColorPickerProps } from "./color-picker";
|
|
5
|
+
import type { Form, FormProps } from "./form";
|
|
6
|
+
import type { IconSelect, IconSelectProps } from "./icon-select";
|
|
7
|
+
import type { Input, InputProps } from "./input/index.jsx";
|
|
8
|
+
import type { GeneralComplexOption, Radio, RadioProps } from "./radio";
|
|
9
|
+
import type { GeneralSearch, SearchProps } from "./search";
|
|
10
|
+
import type { Select, SelectProps } from "./select";
|
|
11
|
+
import type { Textarea, TextareaProps } from "./textarea";
|
|
12
|
+
import type { EoTimeRangePicker, EoTimeRangePickerProps, TimeRange } from "./time-range-picker";
|
|
13
|
+
import type { UploadImage, UploadImageProps } from "./upload/upload-image";
|
|
14
|
+
import type { ImageData } from "./upload/upload-image/utils.js";
|
|
15
|
+
import type { EoUploadFile, UploadFileProps } from "./upload/upload-file";
|
|
16
|
+
import type { FileData } from "./upload/utils.js";
|
|
17
|
+
import type { EoDatePicker } from "./date-picker";
|
|
18
|
+
import type { DynamicFormItem } from "./dynamic-form-item";
|
|
19
|
+
import type { SubmitButtons } from "./submit-buttons";
|
|
20
|
+
import type { GeneralSwitch } from "./general-switch";
|
|
21
|
+
import type { EoTimePicker } from "./time-picker";
|
|
22
|
+
import type { MessageBody } from "@next-shared/form";
|
|
23
|
+
declare global {
|
|
24
|
+
namespace JSX {
|
|
25
|
+
interface IntrinsicElements {
|
|
26
|
+
"eo-auto-complete": DetailedHTMLProps<HTMLAttributes<AutoComplete>, AutoComplete> & AutoCompleteProps & {
|
|
27
|
+
onChange?: (event: CustomEvent<string>) => void;
|
|
28
|
+
};
|
|
29
|
+
"eo-checkbox": DetailedHTMLProps<HTMLAttributes<Checkbox>, Checkbox> & CheckboxProps & {
|
|
30
|
+
onChange?: (event: CustomEvent<CheckboxOptionType[]>) => void;
|
|
31
|
+
};
|
|
32
|
+
"eo-color-picker": DetailedHTMLProps<HTMLAttributes<EoColorPicker>, EoColorPicker> & EoColorPickerProps & {
|
|
33
|
+
onChange?: (event: CustomEvent<string | undefined>) => void;
|
|
34
|
+
};
|
|
35
|
+
"eo-date-picker": DetailedHTMLProps<HTMLAttributes<EoDatePicker>, EoDatePicker> & {
|
|
36
|
+
onChange?: (event: CustomEvent<string>) => void;
|
|
37
|
+
onOk?: (event: CustomEvent<string>) => void;
|
|
38
|
+
};
|
|
39
|
+
"eo-dynamic-form-item": DetailedHTMLProps<HTMLAttributes<DynamicFormItem>, DynamicFormItem> & {
|
|
40
|
+
onChange?: (event: CustomEvent<Record<string, unknown>[]>) => void;
|
|
41
|
+
onRowAdd?: (event: CustomEvent<{
|
|
42
|
+
detail: Record<string, unknown>;
|
|
43
|
+
index: number;
|
|
44
|
+
}>) => void;
|
|
45
|
+
onRowRemove?: (event: CustomEvent<{
|
|
46
|
+
detail: Record<string, unknown>;
|
|
47
|
+
index: number;
|
|
48
|
+
}>) => void;
|
|
49
|
+
};
|
|
50
|
+
"eo-form": DetailedHTMLProps<HTMLAttributes<Form>, Form> & FormProps & {
|
|
51
|
+
onValuesChange?: (event: CustomEvent<Record<string, unknown>>) => void;
|
|
52
|
+
onValidateSuccess?: (event: CustomEvent<Record<string, unknown>>) => void;
|
|
53
|
+
onValidateError?: (event: CustomEvent<(MessageBody & {
|
|
54
|
+
name: string;
|
|
55
|
+
})[]>) => void;
|
|
56
|
+
};
|
|
57
|
+
"eo-icon-select": DetailedHTMLProps<HTMLAttributes<IconSelect>, IconSelect> & IconSelectProps & {
|
|
58
|
+
onChange?: (event: CustomEvent<{
|
|
59
|
+
lib: string;
|
|
60
|
+
icon: string;
|
|
61
|
+
theme: string;
|
|
62
|
+
category?: string;
|
|
63
|
+
color?: string;
|
|
64
|
+
} | undefined>) => void;
|
|
65
|
+
};
|
|
66
|
+
"eo-input": DetailedHTMLProps<HTMLAttributes<Input>, Input> & InputProps & {
|
|
67
|
+
onChange?: (event: CustomEvent<string>) => void;
|
|
68
|
+
};
|
|
69
|
+
"eo-radio": DetailedHTMLProps<HTMLAttributes<Radio>, Radio> & RadioProps & {
|
|
70
|
+
onChange?: (event: CustomEvent<GeneralComplexOption | undefined>) => void;
|
|
71
|
+
onOptionsChange?: (event: CustomEvent<{
|
|
72
|
+
options: {
|
|
73
|
+
label: string;
|
|
74
|
+
value: unknown;
|
|
75
|
+
[key: string]: unknown;
|
|
76
|
+
};
|
|
77
|
+
name: string;
|
|
78
|
+
}>) => void;
|
|
79
|
+
};
|
|
80
|
+
"eo-search": DetailedHTMLProps<HTMLAttributes<GeneralSearch>, GeneralSearch> & SearchProps & {
|
|
81
|
+
onChange?: (event: CustomEvent<string>) => void;
|
|
82
|
+
onSearch?: (event: CustomEvent<string>) => void;
|
|
83
|
+
};
|
|
84
|
+
"eo-select": DetailedHTMLProps<HTMLAttributes<Select>, Select> & SelectProps & {
|
|
85
|
+
onChange?: (event: CustomEvent<{
|
|
86
|
+
value: string | string[];
|
|
87
|
+
options: GeneralComplexOption[];
|
|
88
|
+
}>) => void;
|
|
89
|
+
onChangeV2?: (event: CustomEvent<string | string[]>) => void;
|
|
90
|
+
onSearch?: (event: CustomEvent<{
|
|
91
|
+
value: string;
|
|
92
|
+
}>) => void;
|
|
93
|
+
onSelectFocus?: (event: CustomEvent<void>) => void;
|
|
94
|
+
onOptionsChange?: (event: CustomEvent<{
|
|
95
|
+
options: {
|
|
96
|
+
label: string;
|
|
97
|
+
value: unknown;
|
|
98
|
+
[key: string]: unknown;
|
|
99
|
+
};
|
|
100
|
+
name: string;
|
|
101
|
+
}>) => void;
|
|
102
|
+
};
|
|
103
|
+
"eo-submit-buttons": DetailedHTMLProps<HTMLAttributes<SubmitButtons>, SubmitButtons> & {
|
|
104
|
+
onSubmit?: (event: CustomEvent<void>) => void;
|
|
105
|
+
onCancel?: (event: CustomEvent<void>) => void;
|
|
106
|
+
};
|
|
107
|
+
"eo-switch": DetailedHTMLProps<HTMLAttributes<GeneralSwitch>, GeneralSwitch> & {
|
|
108
|
+
onSwitch?: (event: CustomEvent<boolean>) => void;
|
|
109
|
+
};
|
|
110
|
+
"eo-textarea": DetailedHTMLProps<HTMLAttributes<Textarea>, Textarea> & TextareaProps & {
|
|
111
|
+
onChange?: (event: CustomEvent<string>) => void;
|
|
112
|
+
};
|
|
113
|
+
"eo-time-picker": DetailedHTMLProps<HTMLAttributes<EoTimePicker>, EoTimePicker> & {
|
|
114
|
+
onChange?: (event: CustomEvent<string>) => void;
|
|
115
|
+
onOpen?: (event: CustomEvent<string>) => void;
|
|
116
|
+
onClose?: (event: CustomEvent<string>) => void;
|
|
117
|
+
};
|
|
118
|
+
"eo-time-range-picker": DetailedHTMLProps<HTMLAttributes<EoTimeRangePicker>, EoTimeRangePicker> & EoTimeRangePickerProps & {
|
|
119
|
+
onChange?: (event: CustomEvent<TimeRange>) => void;
|
|
120
|
+
};
|
|
121
|
+
"eo-upload-file": DetailedHTMLProps<HTMLAttributes<EoUploadFile>, EoUploadFile> & UploadFileProps & {
|
|
122
|
+
onChange?: (event: CustomEvent<FileData[]>) => void;
|
|
123
|
+
};
|
|
124
|
+
"eo-upload-image": DetailedHTMLProps<HTMLAttributes<UploadImage>, UploadImage> & UploadImageProps & {
|
|
125
|
+
onChange?: (event: CustomEvent<ImageData[]>) => void;
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/form",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.2",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/form",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"@next-bricks/icons": "*",
|
|
47
47
|
"@next-bricks/illustrations": "*"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "acf4cd2e2492c1ff5cd58abfcb5c29d6e5ba9aea"
|
|
50
50
|
}
|