@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.
Files changed (71) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +23 -23
  3. package/dist/ActionSheet/style.scss +51 -51
  4. package/dist/Alert/style.scss +69 -69
  5. package/dist/Avatar/style.scss +16 -16
  6. package/dist/Badge/style.scss +100 -100
  7. package/dist/Card/style.scss +35 -35
  8. package/dist/CascaderPicker/cascader-picker.js +1 -1
  9. package/dist/CascaderPicker/style.scss +42 -42
  10. package/dist/CascaderView/cascader-view.js +1 -1
  11. package/dist/CascaderView/style.scss +22 -22
  12. package/dist/Cell/styles.scss +52 -52
  13. package/dist/Checkbox/index.scss +151 -151
  14. package/dist/DemoBlock/index.scss +20 -20
  15. package/dist/DemoDescription/index.scss +3 -3
  16. package/dist/Descriptions/style.scss +65 -65
  17. package/dist/Divider/style.scss +62 -62
  18. package/dist/Ellipsis/style.scss +13 -13
  19. package/dist/Empty/style.scss +29 -29
  20. package/dist/ErrorBlock/demo/base.js +2 -2
  21. package/dist/ErrorBlock/style.scss +62 -62
  22. package/dist/Footer/style.scss +55 -55
  23. package/dist/Form/FormItem/form-item-input.js +1 -1
  24. package/dist/Form/FormItem/form-item-label.js +1 -1
  25. package/dist/Form/style.scss +45 -45
  26. package/dist/Grid/style.scss +17 -17
  27. package/dist/Icon/demo/base.js +3 -3
  28. package/dist/Input/index.scss +173 -173
  29. package/dist/InputNumber/style.scss +43 -43
  30. package/dist/Mask/style.scss +20 -20
  31. package/dist/NavBar/style.scss +61 -61
  32. package/dist/NoticeBar/style.scss +130 -130
  33. package/dist/PageIndicator/style.scss +59 -59
  34. package/dist/Picker/picker.js +1 -1
  35. package/dist/Picker/style.scss +41 -41
  36. package/dist/PickerView/picker-view-column.js +1 -1
  37. package/dist/PickerView/picker-view.js +1 -1
  38. package/dist/PickerView/style.scss +72 -72
  39. package/dist/Popup/style.scss +53 -53
  40. package/dist/Radio/style.scss +138 -138
  41. package/dist/Rate/style.scss +37 -37
  42. package/dist/Result/demo/base.js +2 -2
  43. package/dist/Result/style.scss +73 -73
  44. package/dist/SafeArea/style.scss +18 -18
  45. package/dist/Scaffold/style.scss +16 -16
  46. package/dist/ScrollView/style.scss +19 -19
  47. package/dist/SideBar/side-bar.js +6 -6
  48. package/dist/SideBar/style.scss +85 -85
  49. package/dist/Space/style.scss +77 -77
  50. package/dist/SpinLoading/spin-loading.scss +40 -40
  51. package/dist/Steps/style.scss +146 -146
  52. package/dist/Switch/style.scss +128 -128
  53. package/dist/TabBar/demo/base.js +2 -2
  54. package/dist/TabBar/index.scss +36 -36
  55. package/dist/TabBar/tab-bar.d.ts +1 -1
  56. package/dist/TabBar/tab-bar.js +3 -2
  57. package/dist/Tabs/style.scss +108 -108
  58. package/dist/Tabs/tabs.js +1 -1
  59. package/dist/Tag/demo/base.js +2 -2
  60. package/dist/Tag/demo/style.scss +8 -8
  61. package/dist/Tag/style.scss +86 -86
  62. package/dist/Toast/style.scss +63 -63
  63. package/dist/VerificationCodeInput/style.scss +20 -20
  64. package/dist/WaterMark/style.scss +17 -17
  65. package/dist/style/style.scss +52 -52
  66. package/dist/style/theme-dark.scss +24 -24
  67. package/dist/style/theme-default.scss +54 -54
  68. package/dist/style/variable.scss +168 -168
  69. package/dist/utils/type.js +36 -36
  70. package/dist/utils/with-default-props.js +4 -4
  71. package/package.json +5 -6
@@ -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.0",
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.14",
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.0"
51
+ "@trionesdev/antd-mobile-icons-react": "0.0.2-beta.2"
53
52
  },
54
- "gitHead": "77b0c4571a03a037fd0f54ce4bc0a330ba855ab2"
53
+ "gitHead": "750643002ea1b4b0092d84ec95e8d135b9b83750"
55
54
  }