@nickeylin/antd-mobile-pro 2.1.2 → 2.1.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/dist/cjs/components/icon/file-excel-colored.d.ts +5 -0
- package/dist/cjs/components/icon/file-excel-colored.js +73 -0
- package/dist/cjs/components/icon/file-image-colored.d.ts +5 -0
- package/dist/cjs/components/icon/file-image-colored.js +80 -0
- package/dist/cjs/components/icon/file-link-colored.d.ts +5 -0
- package/dist/cjs/components/icon/file-link-colored.js +73 -0
- package/dist/cjs/components/icon/file-music-colored.d.ts +5 -0
- package/dist/cjs/components/icon/file-music-colored.js +73 -0
- package/dist/cjs/components/icon/file-pdf-colored.d.ts +5 -0
- package/dist/cjs/components/icon/file-pdf-colored.js +73 -0
- package/dist/cjs/components/icon/file-ppt-colored.d.ts +5 -0
- package/dist/cjs/components/icon/file-ppt-colored.js +73 -0
- package/dist/cjs/components/icon/file-txt-colored.d.ts +5 -0
- package/dist/cjs/components/icon/file-txt-colored.js +73 -0
- package/dist/cjs/components/icon/file-unknown-colored.d.ts +5 -0
- package/dist/cjs/components/icon/file-unknown-colored.js +73 -0
- package/dist/cjs/components/icon/file-video-colored.d.ts +5 -0
- package/dist/cjs/components/icon/file-video-colored.js +73 -0
- package/dist/cjs/components/icon/file-word-colored.d.ts +5 -0
- package/dist/cjs/components/icon/file-word-colored.js +73 -0
- package/dist/cjs/components/icon/file-zip-colored.d.ts +5 -0
- package/dist/cjs/components/icon/file-zip-colored.js +73 -0
- package/dist/cjs/components/icon/index.d.ts +11 -0
- package/dist/cjs/components/icon/index.js +69 -0
- package/dist/cjs/components/index.d.ts +1 -0
- package/dist/cjs/components/index.js +2 -0
- package/dist/cjs/components/pro-form/pro-form.d.ts +12 -17
- package/dist/cjs/components/pro-form/pro-form.js +5 -3
- package/dist/es/components/icon/file-excel-colored.d.ts +5 -0
- package/dist/es/components/icon/file-excel-colored.js +50 -0
- package/dist/es/components/icon/file-image-colored.d.ts +5 -0
- package/dist/es/components/icon/file-image-colored.js +54 -0
- package/dist/es/components/icon/file-link-colored.d.ts +5 -0
- package/dist/es/components/icon/file-link-colored.js +50 -0
- package/dist/es/components/icon/file-music-colored.d.ts +5 -0
- package/dist/es/components/icon/file-music-colored.js +50 -0
- package/dist/es/components/icon/file-pdf-colored.d.ts +5 -0
- package/dist/es/components/icon/file-pdf-colored.js +50 -0
- package/dist/es/components/icon/file-ppt-colored.d.ts +5 -0
- package/dist/es/components/icon/file-ppt-colored.js +50 -0
- package/dist/es/components/icon/file-txt-colored.d.ts +5 -0
- package/dist/es/components/icon/file-txt-colored.js +50 -0
- package/dist/es/components/icon/file-unknown-colored.d.ts +5 -0
- package/dist/es/components/icon/file-unknown-colored.js +50 -0
- package/dist/es/components/icon/file-video-colored.d.ts +5 -0
- package/dist/es/components/icon/file-video-colored.js +50 -0
- package/dist/es/components/icon/file-word-colored.d.ts +5 -0
- package/dist/es/components/icon/file-word-colored.js +50 -0
- package/dist/es/components/icon/file-zip-colored.d.ts +5 -0
- package/dist/es/components/icon/file-zip-colored.js +50 -0
- package/dist/es/components/icon/index.d.ts +11 -0
- package/dist/es/components/icon/index.js +11 -0
- package/dist/es/components/index.d.ts +1 -0
- package/dist/es/components/index.js +1 -0
- package/dist/es/components/pro-form/pro-form.d.ts +12 -17
- package/dist/es/components/pro-form/pro-form.js +9 -3
- package/dist/umd/antd-mobile-pro.min.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
import Icon from '@ant-design/icons';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
var FileWordColoredSvg = function FileWordColoredSvg() {
|
|
8
|
+
return /*#__PURE__*/_jsxs("svg", {
|
|
9
|
+
width: "1em",
|
|
10
|
+
height: "1em",
|
|
11
|
+
viewBox: "0 0 24 24",
|
|
12
|
+
version: "1.1",
|
|
13
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
15
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
16
|
+
children: "file-word-colored"
|
|
17
|
+
}), /*#__PURE__*/_jsx("g", {
|
|
18
|
+
id: "\u56FE\u6807",
|
|
19
|
+
stroke: "none",
|
|
20
|
+
strokeWidth: "1",
|
|
21
|
+
fill: "none",
|
|
22
|
+
fillRule: "evenodd",
|
|
23
|
+
children: /*#__PURE__*/_jsxs("g", {
|
|
24
|
+
id: "file-word-colored",
|
|
25
|
+
fillRule: "nonzero",
|
|
26
|
+
children: [/*#__PURE__*/_jsx("path", {
|
|
27
|
+
d: "M4.38461538,2 L15.4615385,2 L21,7 L21,20.75 C21,21.440375 20.3801077,22 19.6153846,22 L4.38461538,22 C3.61989231,22 3,21.440375 3,20.75 L3,3.25 C3,2.559625 3.61989231,2 4.38461538,2 Z",
|
|
28
|
+
id: "\u8DEF\u5F84",
|
|
29
|
+
fill: "#4876F9"
|
|
30
|
+
}), /*#__PURE__*/_jsx("polygon", {
|
|
31
|
+
id: "\u8DEF\u5F84",
|
|
32
|
+
fill: "#FFFFFF",
|
|
33
|
+
points: "10.1831077 17 11.8512923 11.479125 11.8820308 11.479125 13.5399692 17 14.4712615 17 16.5692308 10.375 15.6276923 10.375 14.0209846 15.933 13.98 15.933 12.3220615 10.375 11.4112615 10.375 9.74307692 15.933 9.70209231 15.933 8.09538462 10.375 7.15384615 10.375 9.25181538 17"
|
|
34
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
35
|
+
d: "M15.4615385,2 L21,7 L16.8461538,7 C16.0814308,7 15.4615385,6.440375 15.4615385,5.75 L15.4615385,2 Z",
|
|
36
|
+
id: "\u8DEF\u5F84",
|
|
37
|
+
fill: "#B5C8FC"
|
|
38
|
+
})]
|
|
39
|
+
})
|
|
40
|
+
})]
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** */
|
|
45
|
+
var FileWordColored = function FileWordColored(props) {
|
|
46
|
+
return /*#__PURE__*/_jsx(Icon, _objectSpread({
|
|
47
|
+
component: FileWordColoredSvg
|
|
48
|
+
}, props));
|
|
49
|
+
};
|
|
50
|
+
export default FileWordColored;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
/** */
|
|
4
|
+
declare const FileZipColored: FC<Partial<CustomIconComponentProps>>;
|
|
5
|
+
export default FileZipColored;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
import Icon from '@ant-design/icons';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
var FileZipColoredSvg = function FileZipColoredSvg() {
|
|
8
|
+
return /*#__PURE__*/_jsxs("svg", {
|
|
9
|
+
width: "1em",
|
|
10
|
+
height: "1em",
|
|
11
|
+
viewBox: "0 0 24 24",
|
|
12
|
+
version: "1.1",
|
|
13
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
15
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
16
|
+
children: "file-zip-colored"
|
|
17
|
+
}), /*#__PURE__*/_jsx("g", {
|
|
18
|
+
id: "\u56FE\u6807",
|
|
19
|
+
stroke: "none",
|
|
20
|
+
strokeWidth: "1",
|
|
21
|
+
fill: "none",
|
|
22
|
+
fillRule: "evenodd",
|
|
23
|
+
children: /*#__PURE__*/_jsxs("g", {
|
|
24
|
+
id: "file-zip-colored",
|
|
25
|
+
fillRule: "nonzero",
|
|
26
|
+
children: [/*#__PURE__*/_jsx("path", {
|
|
27
|
+
d: "M4.38461538,2 L15.4615385,2 L21,7 L21,20.75 C21,21.440375 20.3801077,22 19.6153846,22 L4.38461538,22 C3.61989231,22 3,21.440375 3,20.75 L3,3.25 C3,2.559625 3.61989231,2 4.38461538,2 Z",
|
|
28
|
+
id: "\u8DEF\u5F84",
|
|
29
|
+
fill: "#576A95"
|
|
30
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
31
|
+
d: "M13.5230769,14.290125 L13.5230769,17.006125 C13.523006,17.1862924 13.443549,17.3590339 13.3022308,17.48625 C13.160814,17.6136271 12.9691967,17.685125 12.7694308,17.685125 L11.2305692,17.685125 C11.0308292,17.685125 10.8392258,17.6136831 10.6977692,17.486375 C10.5563831,17.3590978 10.4769231,17.1862541 10.4769231,17.006 L10.4769231,14.290125 L13.5230769,14.290125 L13.5230769,14.290125 Z M12.7694308,15.846125 L11.2305692,15.846125 L11.2305692,17.209875 L12.7694308,17.209875 L12.7694308,15.846125 Z M13.4978769,11.574125 L13.4978769,12.937875 L11.9843538,12.937875 L11.9843538,11.574125 L13.4978769,11.574125 L13.4978769,11.574125 Z M12.0031846,2 L12.0031846,3.375 L13.5230769,3.375 L13.5230769,4.75 L12.0030462,4.75 L12.0030462,6.023125 L13.5230769,6.023125 L13.5230769,7.398125 L12.0031846,7.398125 L12.0031846,8.75625 L13.5230769,8.75625 L13.5230769,10.114375 L12.0031846,10.114375 L12.0031846,11.472375 L10.4769231,11.472375 L10.4769231,10.11425 L11.9968154,10.11425 L11.9968154,8.756125 L10.4769231,8.756125 L10.4769231,7.398125 L11.9968154,7.398125 L11.9968154,6.023125 L10.4769231,6.023125 L10.4769231,4.648125 L11.9968154,4.648125 L11.9968154,3.375 L10.4769231,3.375 L10.4769231,2 L12.0031846,2 Z",
|
|
32
|
+
id: "\u5F62\u72B6",
|
|
33
|
+
fill: "#FFFFFF"
|
|
34
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
35
|
+
d: "M15.4615385,2 L21,7 L16.8461538,7 C16.0814308,7 15.4615385,6.440375 15.4615385,5.75 L15.4615385,2 Z",
|
|
36
|
+
id: "\u8DEF\u5F84",
|
|
37
|
+
fill: "#BBC3D4"
|
|
38
|
+
})]
|
|
39
|
+
})
|
|
40
|
+
})]
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** */
|
|
45
|
+
var FileZipColored = function FileZipColored(props) {
|
|
46
|
+
return /*#__PURE__*/_jsx(Icon, _objectSpread({
|
|
47
|
+
component: FileZipColoredSvg
|
|
48
|
+
}, props));
|
|
49
|
+
};
|
|
50
|
+
export default FileZipColored;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { default as FileExcelColored } from './file-excel-colored';
|
|
2
|
+
export { default as FileImageColored } from './file-image-colored';
|
|
3
|
+
export { default as FileLinkColored } from './file-link-colored';
|
|
4
|
+
export { default as FileMusicColored } from './file-music-colored';
|
|
5
|
+
export { default as FilePdfColored } from './file-pdf-colored';
|
|
6
|
+
export { default as FilePptColored } from './file-ppt-colored';
|
|
7
|
+
export { default as FileTxtColored } from './file-txt-colored';
|
|
8
|
+
export { default as FileUnknownColored } from './file-unknown-colored';
|
|
9
|
+
export { default as FileVideoColored } from './file-video-colored';
|
|
10
|
+
export { default as FileWordColored } from './file-word-colored';
|
|
11
|
+
export { default as FileZipColored } from './file-zip-colored';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { default as FileExcelColored } from "./file-excel-colored";
|
|
2
|
+
export { default as FileImageColored } from "./file-image-colored";
|
|
3
|
+
export { default as FileLinkColored } from "./file-link-colored";
|
|
4
|
+
export { default as FileMusicColored } from "./file-music-colored";
|
|
5
|
+
export { default as FilePdfColored } from "./file-pdf-colored";
|
|
6
|
+
export { default as FilePptColored } from "./file-ppt-colored";
|
|
7
|
+
export { default as FileTxtColored } from "./file-txt-colored";
|
|
8
|
+
export { default as FileUnknownColored } from "./file-unknown-colored";
|
|
9
|
+
export { default as FileVideoColored } from "./file-video-colored";
|
|
10
|
+
export { default as FileWordColored } from "./file-word-colored";
|
|
11
|
+
export { default as FileZipColored } from "./file-zip-colored";
|
|
@@ -12,6 +12,7 @@ export { default as Descriptions, type DescriptionItem, type DescriptionsProps,
|
|
|
12
12
|
export { default as DropdownMenu, type DropdownMenuItem, type DropdownMenuProps, type DropdownMenuRef, } from './dropdown-menu';
|
|
13
13
|
export { default as ErrorBlock, createErrorBlock } from './error-block';
|
|
14
14
|
export { default as GridMenu, type GridMenuItemProps, type GridMenuProps, } from './grid-menu';
|
|
15
|
+
export * from './icon';
|
|
15
16
|
export { default as InputCaptcha, type InputCaptchaAction, type InputCaptchaProps, } from './input-captcha';
|
|
16
17
|
export { default as InputNumber, type InputMoneyProps, type InputNumberProps, type InputNumberRef, } from './input-number';
|
|
17
18
|
export { default as InputPassword, type InputPasswordProps, } from './input-password';
|
|
@@ -12,6 +12,7 @@ export { default as Descriptions } from "./descriptions";
|
|
|
12
12
|
export { default as DropdownMenu } from "./dropdown-menu";
|
|
13
13
|
export { default as ErrorBlock, createErrorBlock } from "./error-block";
|
|
14
14
|
export { default as GridMenu } from "./grid-menu";
|
|
15
|
+
export * from "./icon";
|
|
15
16
|
export { default as InputCaptcha } from "./input-captcha";
|
|
16
17
|
export { default as InputNumber } from "./input-number";
|
|
17
18
|
export { default as InputPassword } from "./input-password";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { FormProps } from 'antd-mobile';
|
|
1
|
+
import { Form, FormProps } from 'antd-mobile';
|
|
2
2
|
import { FormProps as RcFormProps } from 'rc-field-form';
|
|
3
3
|
import { ForwardedRef } from 'react';
|
|
4
4
|
import { SubmitterProps } from './default-submitter';
|
|
5
5
|
import { ProFormContextType } from './pro-form-context';
|
|
6
|
+
import ProFormItem, { ProFormItemValue } from './pro-form-item';
|
|
6
7
|
import { ProFormInstance } from './types';
|
|
7
8
|
import { useFormInstace } from './use-form-instance';
|
|
8
9
|
export type ProFormProps<Values extends object = any> = Omit<FormProps, 'onFinish' | 'onValuesChange' | 'onFinishFailed'> & Pick<RcFormProps<Values>, 'form' | 'onValuesChange' | 'onFinishFailed'> & ProFormContextType & {
|
|
@@ -15,20 +16,14 @@ export type ProFormProps<Values extends object = any> = Omit<FormProps, 'onFinis
|
|
|
15
16
|
*/
|
|
16
17
|
submitter?: false | SubmitterProps;
|
|
17
18
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
var ItemValue: import("react").FC<{
|
|
27
|
-
value?: import("react").ReactNode;
|
|
28
|
-
placeholder?: string | undefined;
|
|
29
|
-
readonly?: boolean | undefined;
|
|
30
|
-
}>;
|
|
31
|
-
var Subscribe: import("react").FC<import("antd-mobile/es/components/form").FormSubscribeProps>;
|
|
32
|
-
var useFormInstance: typeof useFormInstace;
|
|
19
|
+
interface ProFormWithHooks<Values extends object = any> extends React.FC<ProFormProps<Values>> {
|
|
20
|
+
useForm: typeof Form.useForm;
|
|
21
|
+
useWatch: typeof Form.useWatch;
|
|
22
|
+
Header: typeof Form.Header;
|
|
23
|
+
Item: typeof ProFormItem;
|
|
24
|
+
ItemValue: typeof ProFormItemValue;
|
|
25
|
+
Subscribe: typeof Form.Subscribe;
|
|
26
|
+
useFormInstance: typeof useFormInstace;
|
|
33
27
|
}
|
|
34
|
-
|
|
28
|
+
declare const TypedProForm: ProFormWithHooks<any>;
|
|
29
|
+
export default TypedProForm;
|
|
@@ -225,11 +225,17 @@ function ProForm(_ref) {
|
|
|
225
225
|
})
|
|
226
226
|
});
|
|
227
227
|
}
|
|
228
|
-
|
|
229
|
-
|
|
228
|
+
var useForm = Form.useForm,
|
|
229
|
+
useWatch = Form.useWatch;
|
|
230
|
+
ProForm.useForm = useForm;
|
|
231
|
+
ProForm.useWatch = useWatch;
|
|
230
232
|
ProForm.Header = Form.Header;
|
|
231
233
|
ProForm.Item = ProFormItem;
|
|
232
234
|
ProForm.ItemValue = ProFormItemValue;
|
|
233
235
|
ProForm.Subscribe = Form.Subscribe;
|
|
234
236
|
ProForm.useFormInstance = useFormInstace;
|
|
235
|
-
|
|
237
|
+
|
|
238
|
+
// Define proper types for the namespace properties
|
|
239
|
+
|
|
240
|
+
var TypedProForm = ProForm;
|
|
241
|
+
export default TypedProForm;
|