@trionesdev/antd-mobile-base-react 0.0.2-beta.0 → 0.0.2-beta.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/LICENSE +21 -21
- package/README.md +23 -23
- package/dist/ActionSheet/style.scss +51 -51
- package/dist/Alert/style.scss +69 -69
- package/dist/Avatar/style.scss +16 -16
- package/dist/Badge/style.scss +100 -100
- package/dist/Card/style.scss +35 -35
- package/dist/CascaderPicker/cascader-picker.js +1 -1
- package/dist/CascaderPicker/style.scss +42 -42
- package/dist/CascaderView/cascader-view.js +1 -1
- package/dist/CascaderView/style.scss +22 -22
- package/dist/Cell/styles.scss +52 -52
- package/dist/Checkbox/index.scss +151 -151
- package/dist/DemoBlock/index.scss +20 -20
- package/dist/DemoDescription/index.scss +3 -3
- package/dist/Descriptions/style.scss +65 -65
- package/dist/Divider/style.scss +62 -62
- package/dist/Ellipsis/style.scss +13 -13
- package/dist/Empty/style.scss +29 -29
- package/dist/ErrorBlock/demo/base.js +2 -2
- package/dist/ErrorBlock/style.scss +62 -62
- package/dist/Footer/style.scss +55 -55
- package/dist/Form/FormItem/form-item-input.js +1 -1
- package/dist/Form/FormItem/form-item-label.js +1 -1
- package/dist/Form/style.scss +45 -45
- package/dist/Grid/style.scss +17 -17
- package/dist/Icon/demo/base.js +3 -3
- package/dist/Input/index.scss +173 -173
- package/dist/InputNumber/style.scss +43 -43
- package/dist/Mask/style.scss +20 -20
- package/dist/NavBar/style.scss +61 -61
- package/dist/NoticeBar/style.scss +130 -130
- package/dist/PageIndicator/style.scss +59 -59
- package/dist/Picker/picker.js +1 -1
- package/dist/Picker/style.scss +41 -41
- package/dist/PickerView/picker-view-column.js +1 -1
- package/dist/PickerView/picker-view.js +1 -1
- package/dist/PickerView/style.scss +72 -72
- package/dist/Popup/style.scss +53 -53
- package/dist/Radio/style.scss +138 -138
- package/dist/Rate/style.scss +37 -37
- package/dist/Result/demo/base.js +2 -2
- package/dist/Result/style.scss +73 -73
- package/dist/SafeArea/style.scss +18 -18
- package/dist/Scaffold/style.scss +16 -16
- package/dist/ScrollView/style.scss +19 -19
- package/dist/SideBar/side-bar.js +6 -6
- package/dist/SideBar/style.scss +85 -85
- package/dist/Space/style.scss +77 -77
- package/dist/SpinLoading/spin-loading.scss +40 -40
- package/dist/Steps/style.scss +146 -146
- package/dist/Switch/style.scss +128 -128
- package/dist/TabBar/demo/base.js +2 -2
- package/dist/TabBar/index.scss +36 -36
- package/dist/TabBar/tab-bar.d.ts +1 -1
- package/dist/TabBar/tab-bar.js +3 -2
- package/dist/Tabs/style.scss +108 -108
- package/dist/Tabs/tabs.js +1 -1
- package/dist/Tag/demo/base.js +2 -2
- package/dist/Tag/demo/style.scss +8 -8
- package/dist/Tag/style.scss +86 -86
- package/dist/Toast/style.scss +63 -63
- package/dist/VerificationCodeInput/style.scss +20 -20
- package/dist/WaterMark/style.scss +17 -17
- package/dist/style/style.scss +52 -52
- package/dist/style/theme-dark.scss +24 -24
- package/dist/style/theme-default.scss +54 -54
- package/dist/style/variable.scss +168 -168
- package/dist/utils/type.js +36 -36
- package/dist/utils/with-default-props.js +4 -4
- package/package.json +5 -6
package/dist/utils/type.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
/** https://github.com/Microsoft/TypeScript/issues/29729 */
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Get component props
|
|
5
|
-
* @example
|
|
6
|
-
* ```ts
|
|
7
|
-
* import { Checkbox } from 'antd'
|
|
8
|
-
* import type { GetProps } from 'antd';
|
|
9
|
-
*
|
|
10
|
-
* type CheckboxGroupProps = GetProps<typeof Checkbox.Group>
|
|
11
|
-
* ```
|
|
12
|
-
* @since 5.13.0
|
|
3
|
+
/**
|
|
4
|
+
* Get component props
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* import { Checkbox } from 'antd'
|
|
8
|
+
* import type { GetProps } from 'antd';
|
|
9
|
+
*
|
|
10
|
+
* type CheckboxGroupProps = GetProps<typeof Checkbox.Group>
|
|
11
|
+
* ```
|
|
12
|
+
* @since 5.13.0
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
/**
|
|
16
|
-
* Get component props by component name
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* import { Select } from 'antd';
|
|
20
|
-
* import type { GetProp, SelectProps } from 'antd';
|
|
21
|
-
*
|
|
22
|
-
* type SelectOption1 = GetProp<SelectProps, 'options'>[number];
|
|
23
|
-
* // or
|
|
24
|
-
* type SelectOption2 = GetProp<typeof Select, 'options'>[number];
|
|
25
|
-
*
|
|
26
|
-
* const onChange: GetProp<typeof Select, 'onChange'> = (value, option) => {
|
|
27
|
-
* // Do something
|
|
28
|
-
* };
|
|
29
|
-
* ```
|
|
30
|
-
* @since 5.13.0
|
|
15
|
+
/**
|
|
16
|
+
* Get component props by component name
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { Select } from 'antd';
|
|
20
|
+
* import type { GetProp, SelectProps } from 'antd';
|
|
21
|
+
*
|
|
22
|
+
* type SelectOption1 = GetProp<SelectProps, 'options'>[number];
|
|
23
|
+
* // or
|
|
24
|
+
* type SelectOption2 = GetProp<typeof Select, 'options'>[number];
|
|
25
|
+
*
|
|
26
|
+
* const onChange: GetProp<typeof Select, 'onChange'> = (value, option) => {
|
|
27
|
+
* // Do something
|
|
28
|
+
* };
|
|
29
|
+
* ```
|
|
30
|
+
* @since 5.13.0
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
|
-
/**
|
|
34
|
-
* Get component ref
|
|
35
|
-
* @example
|
|
36
|
-
* ```ts
|
|
37
|
-
* import { Input } from 'antd';
|
|
38
|
-
* import type { GetRef } from 'antd';
|
|
39
|
-
*
|
|
40
|
-
* type InputRef = GetRef<typeof Input>;
|
|
41
|
-
* ```
|
|
42
|
-
* @since 5.13.0
|
|
33
|
+
/**
|
|
34
|
+
* Get component ref
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* import { Input } from 'antd';
|
|
38
|
+
* import type { GetRef } from 'antd';
|
|
39
|
+
*
|
|
40
|
+
* type InputRef = GetRef<typeof Input>;
|
|
41
|
+
* ```
|
|
42
|
+
* @since 5.13.0
|
|
43
43
|
*/
|
|
44
44
|
|
|
45
45
|
export var ComponentDefaults = {
|
|
@@ -15,10 +15,10 @@ export function mergeProps() {
|
|
|
15
15
|
return ret;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
* Merge props and return the first non-undefined value.
|
|
20
|
-
* The later has higher priority. e.g. (10, 1, 5) => 5 wins.
|
|
21
|
-
* This is useful with legacy props that have been deprecated.
|
|
18
|
+
/**
|
|
19
|
+
* Merge props and return the first non-undefined value.
|
|
20
|
+
* The later has higher priority. e.g. (10, 1, 5) => 5 wins.
|
|
21
|
+
* This is useful with legacy props that have been deprecated.
|
|
22
22
|
*/
|
|
23
23
|
export function mergeProp(defaultProp) {
|
|
24
24
|
for (var _len2 = arguments.length, propList = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trionesdev/antd-mobile-base-react",
|
|
3
|
-
"version": "0.0.2-beta.
|
|
3
|
+
"version": "0.0.2-beta.2",
|
|
4
4
|
"description": "antd mobile base react",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,18 +26,17 @@
|
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"classnames": "^2.5.1",
|
|
29
|
-
"lodash": "^4.17.21",
|
|
29
|
+
"lodash-es": "^4.17.21",
|
|
30
30
|
"react": ">=16.9.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@trionesdev/antd-mobile-icons-react": "workspace:*",
|
|
34
34
|
"@types/crypto-js": "^4.2.2",
|
|
35
|
-
"@types/lodash": "^4.17.
|
|
35
|
+
"@types/lodash-es": "^4.17.12",
|
|
36
36
|
"@types/node": "^18.19.123",
|
|
37
37
|
"@types/react": "^18.0.0",
|
|
38
38
|
"classnames": "^2.5.1",
|
|
39
39
|
"father": "^4.6.3",
|
|
40
|
-
"lodash": "^4.17.21",
|
|
41
40
|
"react": "^18.0.0",
|
|
42
41
|
"stylelint": "^16.12.0"
|
|
43
42
|
},
|
|
@@ -49,7 +48,7 @@
|
|
|
49
48
|
"runes2": "^1.1.4"
|
|
50
49
|
},
|
|
51
50
|
"optionalDependencies": {
|
|
52
|
-
"@trionesdev/antd-mobile-icons-react": "0.0.2-beta.
|
|
51
|
+
"@trionesdev/antd-mobile-icons-react": "0.0.2-beta.2"
|
|
53
52
|
},
|
|
54
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "750643002ea1b4b0092d84ec95e8d135b9b83750"
|
|
55
54
|
}
|