@trionesdev/antd-mobile-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 (60) hide show
  1. package/LICENSE +21 -21
  2. package/dist/Avatar/demo/base.js +2 -2
  3. package/dist/Avatar/demo/style.scss +6 -6
  4. package/dist/Badge/demo/base.js +2 -2
  5. package/dist/Badge/demo/base.scss +6 -6
  6. package/dist/Button/demo/base.js +2 -2
  7. package/dist/Button/style.scss +232 -231
  8. package/dist/Calendar/calendar-grid.js +2 -2
  9. package/dist/Calendar/calendar-range.js +2 -2
  10. package/dist/Calendar/style.scss +85 -85
  11. package/dist/Calendar/touchable-calendar-grid.js +9 -9
  12. package/dist/CalendarDatetimePicker/style.scss +54 -54
  13. package/dist/CalendarPicker/style.scss +31 -31
  14. package/dist/Card/demo/base.js +2 -2
  15. package/dist/Card/demo/base.scss +18 -18
  16. package/dist/Checkbox/demo/base.js +2 -2
  17. package/dist/ConfigProvider/demo/base.js +2 -2
  18. package/dist/DemoBlock/index.scss +20 -20
  19. package/dist/DemoDescription/index.scss +3 -3
  20. package/dist/Divider/demo/base.js +2 -2
  21. package/dist/Ellipsis/demo/base.js +2 -2
  22. package/dist/Empty/demo/base.js +2 -2
  23. package/dist/ErrorBlock/demo/base.js +2 -2
  24. package/dist/Footer/demo/base.js +2 -2
  25. package/dist/Grid/demo/base.js +2 -2
  26. package/dist/Grid/demo/base.scss +7 -7
  27. package/dist/Icon/demo/base.js +4 -4
  28. package/dist/Image/demo/base.js +2 -2
  29. package/dist/Image/demo/base.scss +4 -4
  30. package/dist/Image/style.scss +30 -30
  31. package/dist/ImagesPreview/style.scss +34 -34
  32. package/dist/ImagesWall/ImagesWall.js +1 -1
  33. package/dist/ImagesWall/style.scss +70 -70
  34. package/dist/Input/demo/base.js +2 -2
  35. package/dist/NavBar/demo/base.scss +5 -5
  36. package/dist/NoticeBar/demo/base.js +2 -2
  37. package/dist/PageIndicator/demo/base.js +2 -2
  38. package/dist/Popup/demo/base.js +2 -2
  39. package/dist/Progress/style.scss +33 -33
  40. package/dist/Radio/demo/base.scss +4 -4
  41. package/dist/Result/demo/base.js +2 -2
  42. package/dist/SafeArea/demo/base.scss +18 -18
  43. package/dist/SideBar/side-bar.js +6 -6
  44. package/dist/SideBar/style.scss +85 -85
  45. package/dist/Space/demo/base.js +2 -2
  46. package/dist/Swiper/style.scss +54 -54
  47. package/dist/Switch/demo/base.js +2 -2
  48. package/dist/TabBar/demo/base.js +2 -2
  49. package/dist/Tag/demo/base.js +2 -2
  50. package/dist/Tag/demo/style.scss +8 -8
  51. package/dist/Toast/style.scss +63 -63
  52. package/dist/WaterMark/demo/demo1.js +2 -2
  53. package/dist/WaterMark/demo/demo1.scss +6 -6
  54. package/dist/WaterMark/demo/demo2.js +2 -2
  55. package/dist/style/variable.scss +1 -0
  56. package/dist/utils/type.js +36 -36
  57. package/dist/utils/use-isomorphic-update-layout-effect.d.ts +1 -1
  58. package/dist/utils/with-default-props.js +4 -4
  59. package/package.json +8 -8
  60. package/readme.md +43 -43
@@ -1,54 +1,54 @@
1
- @import "@trionesdev/antd-mobile-base-react/dist/style/variable";
2
- $swiperCls: 'triones-antm-swiper';
3
-
4
- .#{$swiperCls} {
5
- max-height: 100%;
6
- display: flex;
7
- justify-items: center;
8
- align-items: center;
9
- }
10
- .#{$swiperCls}-core {
11
- position: relative;
12
- width: 100%;
13
- height: 100%;
14
- overflow: hidden;
15
- box-sizing: border-box;
16
- &-box{
17
- position: relative;
18
- width: 100%;
19
- height: 100%;
20
- }
21
- &-wrapper{
22
- position: relative;
23
- width: 100%;
24
- height: 100%;
25
- display: flex;
26
- transition-property: transform;
27
- justify-content: center;
28
- align-items: center;
29
- &-horizontal{
30
- flex-direction: row;
31
- touch-action: pan-x;
32
- }
33
- &-vertical{
34
- flex-direction: column;
35
- touch-action: pan-y;
36
- }
37
- }
38
- &-item {
39
- position: relative;
40
- flex-shrink: 0;
41
- display: flex;
42
- justify-content: center;
43
- align-items: center;
44
- }
45
- }
46
-
47
- .#{$swiperCls}-taro {
48
- width: 100%;
49
- height: 100%;
50
- &-item{
51
- display: flex;
52
- align-items: center;
53
- }
54
- }
1
+ @use "../style/variable" as *;
2
+ $swiperCls: 'triones-antm-swiper';
3
+
4
+ .#{$swiperCls} {
5
+ max-height: 100%;
6
+ display: flex;
7
+ justify-items: center;
8
+ align-items: center;
9
+ }
10
+ .#{$swiperCls}-core {
11
+ position: relative;
12
+ width: 100%;
13
+ height: 100%;
14
+ overflow: hidden;
15
+ box-sizing: border-box;
16
+ &-box{
17
+ position: relative;
18
+ width: 100%;
19
+ height: 100%;
20
+ }
21
+ &-wrapper{
22
+ position: relative;
23
+ width: 100%;
24
+ height: 100%;
25
+ display: flex;
26
+ transition-property: transform;
27
+ justify-content: center;
28
+ align-items: center;
29
+ &-horizontal{
30
+ flex-direction: row;
31
+ touch-action: pan-x;
32
+ }
33
+ &-vertical{
34
+ flex-direction: column;
35
+ touch-action: pan-y;
36
+ }
37
+ }
38
+ &-item {
39
+ position: relative;
40
+ flex-shrink: 0;
41
+ display: flex;
42
+ justify-content: center;
43
+ align-items: center;
44
+ }
45
+ }
46
+
47
+ .#{$swiperCls}-taro {
48
+ width: 100%;
49
+ height: 100%;
50
+ &-item{
51
+ display: flex;
52
+ align-items: center;
53
+ }
54
+ }
@@ -8,8 +8,8 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
8
8
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
9
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
10
10
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
- /**
12
- * compact: true
11
+ /**
12
+ * compact: true
13
13
  */
14
14
  import { CheckOutline, CloseOutline } from '@trionesdev/antd-mobile-icons-react';
15
15
  import { DemoBlock } from "../../DemoBlock";
@@ -1,5 +1,5 @@
1
- /**
2
- * compact: true
1
+ /**
2
+ * compact: true
3
3
  */
4
4
  import React from "react";
5
5
  import { FaceRecognitionOutline, AppstoreOutline, UserOutline } from "../../../../antd-mobile-icons-react";
@@ -1,5 +1,5 @@
1
- /**
2
- * compact: true
1
+ /**
2
+ * compact: true
3
3
  */
4
4
  import React from 'react';
5
5
  import "./style.scss";
@@ -1,8 +1,8 @@
1
- .tag-demo-style {
2
- &-content {
3
- display: flex;
4
- flex-wrap: wrap;
5
- gap: 8px;
6
- row-gap: 8px;
7
- }
8
- }
1
+ .tag-demo-style {
2
+ &-content {
3
+ display: flex;
4
+ flex-wrap: wrap;
5
+ gap: 8px;
6
+ row-gap: 8px;
7
+ }
8
+ }
@@ -1,63 +1,63 @@
1
- $toastCls: 'triones-antm-toast';
2
-
3
- .#{$toastCls} {
4
- position: fixed;
5
- top: 0;
6
- left: 0;
7
- width: 100%;
8
- height: 100%;
9
- text-align: center;
10
- pointer-events: none;
11
-
12
- &-main {
13
-
14
- padding: 12Px;
15
- display: inline-block;
16
- position: relative;
17
- top: 50%;
18
- transform: translateY(-50%);
19
- width: auto;
20
- max-width: 204px;
21
- max-height: 70%;
22
- overflow: auto;
23
- color: #fff;
24
- word-break: break-all;
25
- background-color: rgba(0, 0, 0, .7);
26
- border-radius: 8px;
27
- pointer-events: all;
28
- font-size: var(--adm-font-size-7);
29
- line-height: 1.5;
30
- box-sizing: border-box;
31
- &-icon{
32
- padding: 35Px 12Px;
33
- min-width: 150Px;
34
- .#{$toastCls}{
35
- &-center{
36
- &-center{
37
- text-align: initial;
38
- }
39
- }
40
- }
41
- }
42
- }
43
-
44
- &-center{
45
- display: flex;
46
- flex-direction: column;
47
- justify-content: center;
48
- align-items: center;
49
- gap: 8Px;
50
- &-icon{
51
- .triones-antm-icon{
52
- font-size: 36Px;
53
- }
54
- }
55
- &-content{
56
- display: inline-block;
57
- color: #fff;
58
- word-break: break-all;
59
- pointer-events: all;
60
- text-align: initial;
61
- }
62
- }
63
- }
1
+ $toastCls: 'triones-antm-toast';
2
+
3
+ .#{$toastCls} {
4
+ position: fixed;
5
+ top: 0;
6
+ left: 0;
7
+ width: 100%;
8
+ height: 100%;
9
+ text-align: center;
10
+ pointer-events: none;
11
+
12
+ &-main {
13
+
14
+ padding: 12Px;
15
+ display: inline-block;
16
+ position: relative;
17
+ top: 50%;
18
+ transform: translateY(-50%);
19
+ width: auto;
20
+ max-width: 204px;
21
+ max-height: 70%;
22
+ overflow: auto;
23
+ color: #fff;
24
+ word-break: break-all;
25
+ background-color: rgba(0, 0, 0, .7);
26
+ border-radius: 8px;
27
+ pointer-events: all;
28
+ font-size: var(--adm-font-size-7);
29
+ line-height: 1.5;
30
+ box-sizing: border-box;
31
+ &-icon{
32
+ padding: 35Px 12Px;
33
+ min-width: 150Px;
34
+ .#{$toastCls}{
35
+ &-center{
36
+ &-center{
37
+ text-align: initial;
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+
44
+ &-center{
45
+ display: flex;
46
+ flex-direction: column;
47
+ justify-content: center;
48
+ align-items: center;
49
+ gap: 8Px;
50
+ &-icon{
51
+ .triones-antm-icon{
52
+ font-size: 36Px;
53
+ }
54
+ }
55
+ &-content{
56
+ display: inline-block;
57
+ color: #fff;
58
+ word-break: break-all;
59
+ pointer-events: all;
60
+ text-align: initial;
61
+ }
62
+ }
63
+ }
@@ -4,8 +4,8 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
4
4
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
5
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- /**
8
- * compact: true
7
+ /**
8
+ * compact: true
9
9
  */
10
10
  import React, { useState } from 'react';
11
11
  import "./demo1.scss";
@@ -1,6 +1,6 @@
1
- .water-mark-overlay {
2
- padding: 12px;
3
- button {
4
- margin-bottom: 12px;
5
- }
6
- }
1
+ .water-mark-overlay {
2
+ padding: 12px;
3
+ button {
4
+ margin-bottom: 12px;
5
+ }
6
+ }
@@ -1,5 +1,5 @@
1
- /**
2
- * compact: true
1
+ /**
2
+ * compact: true
3
3
  */
4
4
  import { DemoBlock } from "../../DemoBlock";
5
5
  import React from 'react';
@@ -0,0 +1 @@
1
+ @forward "@trionesdev/antd-mobile-base-react/dist/style/variable" ;
@@ -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 = {
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const useIsomorphicUpdateLayoutEffect: typeof import("react").useEffect | typeof import("react").useLayoutEffect;
2
+ export declare const useIsomorphicUpdateLayoutEffect: typeof import("react").useLayoutEffect | typeof import("react").useEffect;
@@ -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-react",
3
- "version": "0.0.2-beta.0",
3
+ "version": "0.0.2-beta.2",
4
4
  "description": "antd mobile react ",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -55,7 +55,7 @@
55
55
  },
56
56
  "peerDependencies": {
57
57
  "classnames": "^2.5.1",
58
- "lodash": "^4.17.21",
58
+ "lodash-es": "^4.17.21",
59
59
  "react": ">=16.9.0",
60
60
  "react-dom": ">=16.9.0",
61
61
  "staged-components": "^1.1.3"
@@ -66,9 +66,10 @@
66
66
  "@trionesdev/antd-mobile-base-react": "workspace:*",
67
67
  "@trionesdev/antd-mobile-icons-react": "workspace:*",
68
68
  "@types/crypto-js": "^4.2.2",
69
- "@types/lodash": "^4.17.14",
69
+ "@types/lodash-es": "^4.17.12",
70
70
  "@types/react": "^18.0.0",
71
71
  "@types/react-dom": "^18.0.0",
72
+ "@types/uuid": "^10.0.0",
72
73
  "@umijs/lint": "^4.0.0",
73
74
  "classnames": "^2.5.1",
74
75
  "cross-env": "^7.0.3",
@@ -78,7 +79,7 @@
78
79
  "father": "^4.5.1",
79
80
  "husky": "^8.0.1",
80
81
  "lint-staged": "^13.0.3",
81
- "lodash": "^4.17.21",
82
+ "lodash-es": "^4.17.21",
82
83
  "prettier": "^3.4.2",
83
84
  "prettier-plugin-organize-imports": "^4.1.0",
84
85
  "prettier-plugin-packagejson": "^2.5.6",
@@ -88,8 +89,7 @@
88
89
  "stylelint": "^16.12.0"
89
90
  },
90
91
  "dependencies": {
91
- "@trionesdev/antd-mobile-base-react": "^0.0.2-beta.0",
92
- "@types/uuid": "^10.0.0",
92
+ "@trionesdev/antd-mobile-base-react": "^0.0.2-beta.2",
93
93
  "ahooks": "^3.8.4",
94
94
  "crypto-js": "^4.2.0",
95
95
  "rc-field-form": "^2.7.0",
@@ -98,7 +98,7 @@
98
98
  },
99
99
  "optionalDependencies": {
100
100
  "@trionesdev/antd-mobile-base-react": "workspace:*",
101
- "@trionesdev/antd-mobile-icons-react": "0.0.2-beta.0"
101
+ "@trionesdev/antd-mobile-icons-react": "0.0.2-beta.2"
102
102
  },
103
- "gitHead": "77b0c4571a03a037fd0f54ce4bc0a330ba855ab2"
103
+ "gitHead": "750643002ea1b4b0092d84ec95e8d135b9b83750"
104
104
  }
package/readme.md CHANGED
@@ -1,43 +1,43 @@
1
- # @trionesdev/antd-taro-react
2
-
3
- [![NPM version](https://img.shields.io/npm/v/@trionesdev/antd-taro-react.svg?style=flat)](https://npmjs.org/package/@trionesdev/antd-taro-react)
4
- [![NPM downloads](http://img.shields.io/npm/dm/@trionesdev/antd-taro-react.svg?style=flat)](https://npmjs.org/package/@trionesdev/antd-taro-react)
5
-
6
- antd taro react
7
-
8
- ## Usage
9
-
10
- TODO
11
-
12
- ## Options
13
-
14
- TODO
15
-
16
- ## Development
17
-
18
- ```bash
19
- # install dependencies
20
- $ pnpm install
21
-
22
- # develop library by docs demo
23
- $ pnpm start
24
-
25
- # build library source code
26
- $ pnpm run build
27
-
28
- # build library source code in watch mode
29
- $ pnpm run build:watch
30
-
31
- # build docs
32
- $ pnpm run docs:build
33
-
34
- # Locally preview the production build.
35
- $ pnpm run docs:preview
36
-
37
- # check your project for potential problems
38
- $ pnpm run doctor
39
- ```
40
-
41
- ## LICENSE
42
-
43
- MIT
1
+ # @trionesdev/antd-taro-react
2
+
3
+ [![NPM version](https://img.shields.io/npm/v/@trionesdev/antd-mobile-react.svg?style=flat)](https://npmjs.org/package/@trionesdev/antd-mobile-react)
4
+ [![NPM downloads](http://img.shields.io/npm/dm/@trionesdev/antd-mobile-react.svg?style=flat)](https://npmjs.org/package/@trionesdev/antd-mobile-react)
5
+
6
+ antd mobile react
7
+
8
+ ## Usage
9
+
10
+ TODO
11
+
12
+ ## Options
13
+
14
+ TODO
15
+
16
+ ## Development
17
+
18
+ ```bash
19
+ # install dependencies
20
+ $ pnpm install
21
+
22
+ # develop library by docs demo
23
+ $ pnpm start
24
+
25
+ # build library source code
26
+ $ pnpm run build
27
+
28
+ # build library source code in watch mode
29
+ $ pnpm run build:watch
30
+
31
+ # build docs
32
+ $ pnpm run docs:build
33
+
34
+ # Locally preview the production build.
35
+ $ pnpm run docs:preview
36
+
37
+ # check your project for potential problems
38
+ $ pnpm run doctor
39
+ ```
40
+
41
+ ## LICENSE
42
+
43
+ MIT