@trionesdev/antd-mobile-base-react 0.0.2-beta.22 → 0.0.2-beta.24

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 (54) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +23 -23
  3. package/dist/Alert/style.scss +69 -69
  4. package/dist/Avatar/style.scss +17 -17
  5. package/dist/Badge/style.scss +100 -100
  6. package/dist/Card/style.scss +35 -35
  7. package/dist/CascaderView/style.scss +22 -22
  8. package/dist/Cell/styles.scss +81 -81
  9. package/dist/Checkbox/index.scss +173 -165
  10. package/dist/Checkbox/types.d.ts +1 -1
  11. package/dist/DemoBlock/index.scss +20 -20
  12. package/dist/DemoDescription/index.scss +3 -3
  13. package/dist/Descriptions/style.scss +65 -65
  14. package/dist/Divider/style.scss +62 -62
  15. package/dist/Ellipsis/style.scss +13 -13
  16. package/dist/Empty/style.scss +29 -29
  17. package/dist/ErrorBlock/demo/base.js +2 -2
  18. package/dist/ErrorBlock/style.scss +62 -62
  19. package/dist/Footer/style.scss +55 -55
  20. package/dist/Form/styles.scss +11 -11
  21. package/dist/FormCell/styles.scss +103 -103
  22. package/dist/Grid/style.scss +17 -17
  23. package/dist/Icon/demo/base.js +2 -2
  24. package/dist/InputNumber/style.scss +100 -100
  25. package/dist/Loading/style.scss +113 -113
  26. package/dist/NavBar/style.scss +65 -65
  27. package/dist/NoticeBar/style.scss +130 -130
  28. package/dist/PageIndicator/style.scss +59 -59
  29. package/dist/Progress/style.scss +33 -33
  30. package/dist/Radio/style.scss +154 -154
  31. package/dist/Rate/style.scss +37 -37
  32. package/dist/Result/demo/base.js +2 -2
  33. package/dist/Result/style.scss +73 -73
  34. package/dist/SafeArea/style.scss +20 -20
  35. package/dist/Scaffold/style.scss +17 -17
  36. package/dist/Segmented/style.scss +75 -75
  37. package/dist/Skeleton/style.scss +215 -215
  38. package/dist/Space/style.scss +101 -101
  39. package/dist/Stepper/style.scss +100 -100
  40. package/dist/Steps/style.scss +153 -153
  41. package/dist/Switch/style.scss +127 -127
  42. package/dist/TabBar/demo/base.js +2 -2
  43. package/dist/TabBar/index.scss +37 -37
  44. package/dist/Tabs/style.scss +108 -108
  45. package/dist/Tag/style.scss +110 -110
  46. package/dist/WaterMark/style.scss +17 -17
  47. package/dist/style/css-variable.scss +6 -6
  48. package/dist/style/style.scss +52 -52
  49. package/dist/style/theme-dark.scss +24 -24
  50. package/dist/style/theme-default.scss +54 -54
  51. package/dist/style/variable.scss +180 -180
  52. package/dist/utils/type.js +36 -36
  53. package/dist/utils/with-default-props.js +4 -4
  54. package/package.json +13 -11
@@ -1,65 +1,65 @@
1
- @use "../style/variable" as 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: variable.$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 variable.$trionesBorderColor;
42
- border-radius: variable.$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 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: variable.$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 variable.$trionesBorderColor;
42
+ border-radius: variable.$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
- @use "../style/variable" as 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: variable.$trionesBorderColor;
10
- border: 0 solid variable.$trionesBorderColor ;
11
- width: 100%;
12
-
13
- &::before,
14
- &::after {
15
- content: '';
16
- border-style: inherit;
17
- border-color: inherit;
18
- border-width: 1PX 0 0;
19
- height: 1PX;
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 variable.$trionesBorderColor;
59
- margin: 0 8PX;
60
- vertical-align: middle;
61
- }
62
- }
1
+ @use "../style/variable" as 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: variable.$trionesBorderColor;
10
+ border: 0 solid variable.$trionesBorderColor ;
11
+ width: 100%;
12
+
13
+ &::before,
14
+ &::after {
15
+ content: '';
16
+ border-style: inherit;
17
+ border-color: inherit;
18
+ border-width: 1PX 0 0;
19
+ height: 1PX;
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 variable.$trionesBorderColor;
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
+ }
@@ -1,11 +1,11 @@
1
- @use "../style/variable" as variable;
2
-
3
- .triones-antm-form{
4
- &-item{
5
- &-explain-error{
6
- font-size: variable.$trionesFontSizeSm;
7
- color: variable.$trionesColorError;
8
- }
9
- }
10
-
11
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ .triones-antm-form{
4
+ &-item{
5
+ &-explain-error{
6
+ font-size: variable.$trionesFontSizeSm;
7
+ color: variable.$trionesColorError;
8
+ }
9
+ }
10
+
11
+ }