@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,65 +1,65 @@
1
- @import "../style/variable";
2
-
3
- $descriptionsCls: 'triones-antm-descriptions';
4
- .#{$descriptionsCls} {
5
- &-header {
6
- }
7
-
8
- &-view {
9
- display: grid;
10
-
11
- .#{$descriptionsCls} {
12
- &-row {
13
- display: flex;
14
- }
15
-
16
- &-item {
17
- display: flex;
18
- align-items: center;
19
- padding: 4Px 4Px;
20
- overflow: hidden;
21
- &-label {
22
- color: $trionesColorTextSecondary;
23
- word-wrap: break-word; /* 允许长单词或URL换行 */
24
- overflow-wrap: break-word; /* 更标准的属性名 */
25
- white-space: normal; /* 默认换行行为 */
26
- flex-shrink: 0;
27
- }
28
-
29
- &-content {
30
- word-wrap: break-word; /* 允许长单词或URL换行 */
31
- overflow-wrap: break-word; /* 更标准的属性名 */
32
- white-space: normal; /* 默认换行行为 */
33
- flex: 1 auto;
34
- min-width: 0;
35
- }
36
- }
37
- }
38
- }
39
-
40
- &-bordered {
41
- border: 1Px solid $trionesBorderColor;
42
- border-radius: $trionesBorderRadius;
43
- overflow: hidden;
44
-
45
- .#{$descriptionsCls} {
46
- &-view{
47
- background-color: rgba(5,5,5,0.06);
48
- grid-gap: 1Px;
49
- }
50
- &-item {
51
- &-label {
52
- display: flex;
53
- background-color: rgb(250, 250, 250);
54
- align-items: center;
55
- padding: 4Px 4Px;
56
- }
57
- &-content {
58
- background-color: white;
59
- padding: 4Px 4Px;
60
- }
61
- }
62
- }
63
-
64
- }
65
- }
1
+ @use "../style/variable" as *;
2
+
3
+ $descriptionsCls: 'triones-antm-descriptions';
4
+ .#{$descriptionsCls} {
5
+ &-header {
6
+ }
7
+
8
+ &-view {
9
+ display: grid;
10
+
11
+ .#{$descriptionsCls} {
12
+ &-row {
13
+ display: flex;
14
+ }
15
+
16
+ &-item {
17
+ display: flex;
18
+ align-items: center;
19
+ padding: 4Px 4Px;
20
+ overflow: hidden;
21
+ &-label {
22
+ color: $trionesColorTextSecondary;
23
+ word-wrap: break-word; /* 允许长单词或URL换行 */
24
+ overflow-wrap: break-word; /* 更标准的属性名 */
25
+ white-space: normal; /* 默认换行行为 */
26
+ flex-shrink: 0;
27
+ }
28
+
29
+ &-content {
30
+ word-wrap: break-word; /* 允许长单词或URL换行 */
31
+ overflow-wrap: break-word; /* 更标准的属性名 */
32
+ white-space: normal; /* 默认换行行为 */
33
+ flex: 1 auto;
34
+ min-width: 0;
35
+ }
36
+ }
37
+ }
38
+ }
39
+
40
+ &-bordered {
41
+ border: 1Px solid $trionesBorderColor;
42
+ border-radius: $trionesBorderRadius;
43
+ overflow: hidden;
44
+
45
+ .#{$descriptionsCls} {
46
+ &-view{
47
+ background-color: rgba(5,5,5,0.06);
48
+ grid-gap: 1Px;
49
+ }
50
+ &-item {
51
+ &-label {
52
+ display: flex;
53
+ background-color: rgb(250, 250, 250);
54
+ align-items: center;
55
+ padding: 4Px 4Px;
56
+ }
57
+ &-content {
58
+ background-color: white;
59
+ padding: 4Px 4Px;
60
+ }
61
+ }
62
+ }
63
+
64
+ }
65
+ }
@@ -1,62 +1,62 @@
1
- @import "../style/variable";
2
-
3
- $dividerCls: 'triones-antm-divider';
4
- /* prettier-ignore */
5
- .#{$dividerCls} {
6
- display: flex;
7
- align-items: center;
8
- font-size: 14PX;
9
- color: $trionesBorderColor;
10
- border: 0 solid $trionesBorderColor ;
11
- width: 100%;
12
-
13
- &::before,
14
- &::after {
15
- content: '';
16
- border-style: inherit;
17
- border-color: inherit;
18
- border-width: 2PX 0 0;
19
- height: 2PX;
20
- flex: 1;
21
- }
22
-
23
- &-center,
24
- &-left,
25
- &-right {
26
- &::before {
27
- margin-right: 8PX;
28
- }
29
-
30
- &::after {
31
- margin-left: 8PX;
32
- }
33
- }
34
-
35
- &-left {
36
- &::before {
37
- max-width: 10%;
38
- }
39
- }
40
-
41
- &-right {
42
- &::after {
43
- max-width: 10%;
44
- }
45
- }
46
-
47
- &-hairline {
48
- &::before,
49
- &::after {
50
- transform: scaleY(0.5);
51
- }
52
- }
53
-
54
- &-vertical {
55
- display: inline-block;
56
- width: auto;
57
- height: 12PX;
58
- border-left: 1PX solid #eeeeee;
59
- margin: 0 8PX;
60
- vertical-align: middle;
61
- }
62
- }
1
+ @use "../style/variable" as *;
2
+
3
+ $dividerCls: 'triones-antm-divider';
4
+ /* prettier-ignore */
5
+ .#{$dividerCls} {
6
+ display: flex;
7
+ align-items: center;
8
+ font-size: 14PX;
9
+ color: $trionesBorderColor;
10
+ border: 0 solid $trionesBorderColor ;
11
+ width: 100%;
12
+
13
+ &::before,
14
+ &::after {
15
+ content: '';
16
+ border-style: inherit;
17
+ border-color: inherit;
18
+ border-width: 2PX 0 0;
19
+ height: 2PX;
20
+ flex: 1;
21
+ }
22
+
23
+ &-center,
24
+ &-left,
25
+ &-right {
26
+ &::before {
27
+ margin-right: 8PX;
28
+ }
29
+
30
+ &::after {
31
+ margin-left: 8PX;
32
+ }
33
+ }
34
+
35
+ &-left {
36
+ &::before {
37
+ max-width: 10%;
38
+ }
39
+ }
40
+
41
+ &-right {
42
+ &::after {
43
+ max-width: 10%;
44
+ }
45
+ }
46
+
47
+ &-hairline {
48
+ &::before,
49
+ &::after {
50
+ transform: scaleY(0.5);
51
+ }
52
+ }
53
+
54
+ &-vertical {
55
+ display: inline-block;
56
+ width: auto;
57
+ height: 12PX;
58
+ border-left: 1PX solid #eeeeee;
59
+ margin: 0 8PX;
60
+ vertical-align: middle;
61
+ }
62
+ }
@@ -1,13 +1,13 @@
1
- $class-prefix-ellipsis: 'triones-antm-ellipsis';
2
- /* prettier-ignore */
3
- .#{$class-prefix-ellipsis} {
4
- overflow: hidden;
5
- line-height: 1.5;
6
- word-break: break-word;
7
-
8
- &-icon {
9
- display: inline-block;
10
- color: #1677ff;
11
- cursor: pointer;
12
- }
13
- }
1
+ $class-prefix-ellipsis: 'triones-antm-ellipsis';
2
+ /* prettier-ignore */
3
+ .#{$class-prefix-ellipsis} {
4
+ overflow: hidden;
5
+ line-height: 1.5;
6
+ word-break: break-word;
7
+
8
+ &-icon {
9
+ display: inline-block;
10
+ color: #1677ff;
11
+ cursor: pointer;
12
+ }
13
+ }
@@ -1,29 +1,29 @@
1
- .triones-antm-empty {
2
- text-align: center;
3
-
4
- &-wrapper {
5
- width: 100%;
6
- height: 100%;
7
- display: flex;
8
- align-items: center;
9
- justify-content: space-around;
10
- }
11
-
12
- &-image {
13
- //margin-bottom: 8Px;
14
- :global {
15
- img,
16
- image {
17
- width: 100%;
18
- height: 100%;
19
- object-fit: cover;
20
- }
21
- }
22
- }
23
-
24
- &-description {
25
- color: rgba(0, 0, 0, 45%);
26
- font-size: 14Px;
27
- padding: 8Px;
28
- }
29
- }
1
+ .triones-antm-empty {
2
+ text-align: center;
3
+
4
+ &-wrapper {
5
+ width: 100%;
6
+ height: 100%;
7
+ display: flex;
8
+ align-items: center;
9
+ justify-content: space-around;
10
+ }
11
+
12
+ &-image {
13
+ //margin-bottom: 8Px;
14
+ :global {
15
+ img,
16
+ image {
17
+ width: 100%;
18
+ height: 100%;
19
+ object-fit: cover;
20
+ }
21
+ }
22
+ }
23
+
24
+ &-description {
25
+ color: rgba(0, 0, 0, 45%);
26
+ font-size: 14Px;
27
+ padding: 8Px;
28
+ }
29
+ }
@@ -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';
@@ -1,62 +1,62 @@
1
- $class-prefix-error-block: 'triones-antm-error-block';
2
- /* prettier-ignore */
3
- .#{$class-prefix-error-block} {
4
- --color: var(--triones-antm-color-text);
5
- --image-height: var(--triones-antm-error-block-image-height, 100PX);
6
- --image-height-full-page: var(
7
- --triones-antm-error-block-image-height-full-page,
8
- 200PX
9
- );
10
- --image-width: var(--triones-antm-error-block-image-width, auto);
11
- --image-width-full-page: var(
12
- --triones-antm-error-block-image-width-full-page,
13
- auto
14
- );
15
- width: 100%;
16
- box-sizing: border-box;
17
- text-align: center;
18
-
19
- &-image {
20
- height: var(--image-height);
21
- width: var(--image-width);
22
- max-width: 100%;
23
-
24
- & svg,
25
- img {
26
- height: 100%;
27
- }
28
- }
29
-
30
- &-description {
31
- font-size: var(--triones-antm-font-size-4);
32
- color: var(--triones-antm-color-weak);
33
- line-height: 1.4;
34
- margin-top: 12PX;
35
- &-title {
36
- font-size: var(--triones-antm-font-size-7);
37
- }
38
- &-subtitle {
39
- margin-top: 8PX;
40
- }
41
- }
42
-
43
- &-content {
44
- margin-top: 12PX;
45
- }
46
-
47
- &-full-page {
48
- padding-top: calc(50vh - var(--image-height-full-page));
49
- .#{$class-prefix-error-block}-image {
50
- height: var(--image-height-full-page);
51
- width: var(--image-width-full-page);
52
- }
53
- .#{$class-prefix-error-block}-description {
54
- margin-top: 20PX;
55
- font-size: var(--triones-antm-font-size-main);
56
- &-title {
57
- font-size: 20PX;
58
- color: var(--triones-antm-color-text);
59
- }
60
- }
61
- }
62
- }
1
+ $class-prefix-error-block: 'triones-antm-error-block';
2
+ /* prettier-ignore */
3
+ .#{$class-prefix-error-block} {
4
+ --color: var(--triones-antm-color-text);
5
+ --image-height: var(--triones-antm-error-block-image-height, 100PX);
6
+ --image-height-full-page: var(
7
+ --triones-antm-error-block-image-height-full-page,
8
+ 200PX
9
+ );
10
+ --image-width: var(--triones-antm-error-block-image-width, auto);
11
+ --image-width-full-page: var(
12
+ --triones-antm-error-block-image-width-full-page,
13
+ auto
14
+ );
15
+ width: 100%;
16
+ box-sizing: border-box;
17
+ text-align: center;
18
+
19
+ &-image {
20
+ height: var(--image-height);
21
+ width: var(--image-width);
22
+ max-width: 100%;
23
+
24
+ & svg,
25
+ img {
26
+ height: 100%;
27
+ }
28
+ }
29
+
30
+ &-description {
31
+ font-size: var(--triones-antm-font-size-4);
32
+ color: var(--triones-antm-color-weak);
33
+ line-height: 1.4;
34
+ margin-top: 12PX;
35
+ &-title {
36
+ font-size: var(--triones-antm-font-size-7);
37
+ }
38
+ &-subtitle {
39
+ margin-top: 8PX;
40
+ }
41
+ }
42
+
43
+ &-content {
44
+ margin-top: 12PX;
45
+ }
46
+
47
+ &-full-page {
48
+ padding-top: calc(50vh - var(--image-height-full-page));
49
+ .#{$class-prefix-error-block}-image {
50
+ height: var(--image-height-full-page);
51
+ width: var(--image-width-full-page);
52
+ }
53
+ .#{$class-prefix-error-block}-description {
54
+ margin-top: 20PX;
55
+ font-size: var(--triones-antm-font-size-main);
56
+ &-title {
57
+ font-size: 20PX;
58
+ color: var(--triones-antm-color-text);
59
+ }
60
+ }
61
+ }
62
+ }
@@ -1,55 +1,55 @@
1
- $class-prefix-footer: 'triones-antm-footer';
2
- /* prettier-ignore */
3
- .#{$class-prefix-footer} {
4
- --background-color: #ffffff;
5
-
6
- color: #333333;
7
- display: flex;
8
- flex-direction: column;
9
- align-items: center;
10
- background-color: var(--background-color);
11
-
12
- &-label {
13
- width: 100%;
14
- .triones-antm-divider {
15
- color: #cccccc;
16
- }
17
- }
18
- &-links {
19
- margin: 8PX 0;
20
- color: #1677ff;
21
- white-space: nowrap;
22
- &-item {
23
- display: inline-block;
24
- }
25
- }
26
- &-content {
27
- display: flex;
28
- align-items: center;
29
- margin: 8PX 0;
30
- color: #cccccc;
31
- }
32
- &-chips {
33
- display: flex;
34
- align-items: center;
35
- white-space: nowrap;
36
- margin: 8PX 0;
37
- }
38
- &-chip {
39
- white-space: nowrap;
40
- margin-right: 20PX;
41
- font-size: 12PX;
42
- background-color: #f5f5f5;
43
- color: #999999;
44
- padding: 4PX 12PX;
45
- border-radius: 100PX;
46
- &-link {
47
- cursor: pointer;
48
- background-color: #e7f1ff;
49
- color: #1677ff;
50
- }
51
- &:last-child {
52
- margin-right: 0;
53
- }
54
- }
55
- }
1
+ $class-prefix-footer: 'triones-antm-footer';
2
+ /* prettier-ignore */
3
+ .#{$class-prefix-footer} {
4
+ --background-color: #ffffff;
5
+
6
+ color: #333333;
7
+ display: flex;
8
+ flex-direction: column;
9
+ align-items: center;
10
+ background-color: var(--background-color);
11
+
12
+ &-label {
13
+ width: 100%;
14
+ .triones-antm-divider {
15
+ color: #cccccc;
16
+ }
17
+ }
18
+ &-links {
19
+ margin: 8PX 0;
20
+ color: #1677ff;
21
+ white-space: nowrap;
22
+ &-item {
23
+ display: inline-block;
24
+ }
25
+ }
26
+ &-content {
27
+ display: flex;
28
+ align-items: center;
29
+ margin: 8PX 0;
30
+ color: #cccccc;
31
+ }
32
+ &-chips {
33
+ display: flex;
34
+ align-items: center;
35
+ white-space: nowrap;
36
+ margin: 8PX 0;
37
+ }
38
+ &-chip {
39
+ white-space: nowrap;
40
+ margin-right: 20PX;
41
+ font-size: 12PX;
42
+ background-color: #f5f5f5;
43
+ color: #999999;
44
+ padding: 4PX 12PX;
45
+ border-radius: 100PX;
46
+ &-link {
47
+ cursor: pointer;
48
+ background-color: #e7f1ff;
49
+ color: #1677ff;
50
+ }
51
+ &:last-child {
52
+ margin-right: 0;
53
+ }
54
+ }
55
+ }
@@ -5,7 +5,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
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
7
  import classNames from 'classnames';
8
- import { isEmpty } from 'lodash';
8
+ import { isEmpty } from 'lodash-es';
9
9
  import { Field } from 'rc-field-form';
10
10
  import React, { useState } from 'react';
11
11
  export var FormItemInput = function FormItemInput(_ref) {
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import classNames from "classnames";
3
3
  import { useFormContext } from "../hooks/useFormContext";
4
- import { isFunction } from "lodash";
4
+ import { isFunction } from "lodash-es";
5
5
  export var FormItemLabel = function FormItemLabel(_ref) {
6
6
  var className = _ref.className,
7
7
  style = _ref.style,