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

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/checkbox.js +8 -1
  10. package/dist/Checkbox/index.scss +165 -165
  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 +11 -13
@@ -1,103 +1,103 @@
1
- @use "../style/variable" as variable;
2
-
3
- $cellCls: 'triones-antm-form-cell';
4
-
5
- .#{$cellCls} {
6
- width: 100%;
7
- display: flex;
8
- flex-direction: row;
9
- gap: 4Px;
10
- align-items: center;
11
-
12
- &-content {
13
- flex: 1 auto;
14
- display: flex;
15
- align-items: center;
16
- min-height: 20Px;
17
- }
18
-
19
- &-placeholder {
20
- font-size: variable.$trionesFontSize;
21
- color: variable.$trionesColorTextPlaceholder;
22
- //width: 100%;
23
- }
24
-
25
- &-extra {
26
- flex-shrink: 0;
27
- }
28
-
29
- &-arrow {
30
- flex-shrink: 0;
31
-
32
- .triones-antm-icon {
33
- color: variable.$trionesColorTextPlaceholder;
34
- font-size: variable.$trionesFontSize;
35
- }
36
- }
37
-
38
- &-small {
39
- min-height: 20Px;
40
- }
41
-
42
- &-medium {
43
- //min-height: 32Px;
44
- }
45
-
46
- &-large {
47
- min-height: 40Px;
48
- }
49
-
50
- &-start {
51
- .#{$cellCls} {
52
- &-content {
53
- justify-content: flex-start;
54
- }
55
- }
56
- }
57
-
58
- &-center {
59
- .#{$cellCls} {
60
- &-content {
61
- justify-content: center;
62
- }
63
- }
64
- }
65
-
66
- &-end {
67
- .#{$cellCls} {
68
- &-content {
69
- justify-content: flex-end;
70
- }
71
- }
72
- }
73
-
74
- &-borderless {
75
- border: 0;
76
- }
77
-
78
- &-outlined {
79
- border-radius: variable.$trionesBorderRadius;
80
- border: 1Px solid variable.$trionesBorderColor;
81
- padding-inline: 4Px;
82
- box-sizing: border-box;
83
- min-height: variable.$trionesControlHeight;
84
- }
85
-
86
- &-filled {
87
- border-radius: variable.$trionesBorderRadius;
88
- background-color: variable.$trionesColorFillTertiary;
89
- padding-inline: 4Px;
90
- box-sizing: border-box;
91
- border: 0;
92
- min-height: variable.$trionesControlHeight;
93
- }
94
-
95
- &-underlined {
96
- border-top: 0;
97
- border-left: 0;
98
- border-right: 0;
99
- border-bottom: 1Px solid variable.$trionesBorderColor;
100
- box-sizing: border-box;
101
- min-height: variable.$trionesControlHeight;
102
- }
103
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ $cellCls: 'triones-antm-form-cell';
4
+
5
+ .#{$cellCls} {
6
+ width: 100%;
7
+ display: flex;
8
+ flex-direction: row;
9
+ gap: 4Px;
10
+ align-items: center;
11
+
12
+ &-content {
13
+ flex: 1 auto;
14
+ display: flex;
15
+ align-items: center;
16
+ min-height: 20Px;
17
+ }
18
+
19
+ &-placeholder {
20
+ font-size: variable.$trionesFontSize;
21
+ color: variable.$trionesColorTextPlaceholder;
22
+ //width: 100%;
23
+ }
24
+
25
+ &-extra {
26
+ flex-shrink: 0;
27
+ }
28
+
29
+ &-arrow {
30
+ flex-shrink: 0;
31
+
32
+ .triones-antm-icon {
33
+ color: variable.$trionesColorTextPlaceholder;
34
+ font-size: variable.$trionesFontSize;
35
+ }
36
+ }
37
+
38
+ &-small {
39
+ min-height: 20Px;
40
+ }
41
+
42
+ &-medium {
43
+ //min-height: 32Px;
44
+ }
45
+
46
+ &-large {
47
+ min-height: 40Px;
48
+ }
49
+
50
+ &-start {
51
+ .#{$cellCls} {
52
+ &-content {
53
+ justify-content: flex-start;
54
+ }
55
+ }
56
+ }
57
+
58
+ &-center {
59
+ .#{$cellCls} {
60
+ &-content {
61
+ justify-content: center;
62
+ }
63
+ }
64
+ }
65
+
66
+ &-end {
67
+ .#{$cellCls} {
68
+ &-content {
69
+ justify-content: flex-end;
70
+ }
71
+ }
72
+ }
73
+
74
+ &-borderless {
75
+ border: 0;
76
+ }
77
+
78
+ &-outlined {
79
+ border-radius: variable.$trionesBorderRadius;
80
+ border: 1Px solid variable.$trionesBorderColor;
81
+ padding-inline: 4Px;
82
+ box-sizing: border-box;
83
+ min-height: variable.$trionesControlHeight;
84
+ }
85
+
86
+ &-filled {
87
+ border-radius: variable.$trionesBorderRadius;
88
+ background-color: variable.$trionesColorFillTertiary;
89
+ padding-inline: 4Px;
90
+ box-sizing: border-box;
91
+ border: 0;
92
+ min-height: variable.$trionesControlHeight;
93
+ }
94
+
95
+ &-underlined {
96
+ border-top: 0;
97
+ border-left: 0;
98
+ border-right: 0;
99
+ border-bottom: 1Px solid variable.$trionesBorderColor;
100
+ box-sizing: border-box;
101
+ min-height: variable.$trionesControlHeight;
102
+ }
103
+ }
@@ -1,17 +1,17 @@
1
- $class-prefix-grid: 'triones-antm-grid';
2
- /* prettier-ignore */
3
- .#{$class-prefix-grid} {
4
- --gap: 0;
5
- --gap-horizontal: var(--gap);
6
- --gap-vertical: var(--gap);
7
-
8
- display: grid;
9
- grid-gap: 10PX;
10
- column-gap: var(--gap-horizontal);
11
- row-gap: var(--gap-vertical);
12
- grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
13
- align-items: stretch;
14
- &-item {
15
- grid-column-end: span var(--item-span);
16
- }
17
- }
1
+ $class-prefix-grid: 'triones-antm-grid';
2
+ /* prettier-ignore */
3
+ .#{$class-prefix-grid} {
4
+ --gap: 0;
5
+ --gap-horizontal: var(--gap);
6
+ --gap-vertical: var(--gap);
7
+
8
+ display: grid;
9
+ grid-gap: 10PX;
10
+ column-gap: var(--gap-horizontal);
11
+ row-gap: var(--gap-vertical);
12
+ grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
13
+ align-items: stretch;
14
+ &-item {
15
+ grid-column-end: span var(--item-span);
16
+ }
17
+ }
@@ -1,5 +1,5 @@
1
- /**
2
- * compact: true
1
+ /**
2
+ * compact: true
3
3
  */
4
4
  import React from "react";
5
5
  import * as icons from "../../../../antd-mobile-icons-react";
@@ -1,100 +1,100 @@
1
- @use "../style/variable" as variable;
2
-
3
- $trionesInputNumberCls: 'triones-antm-input-number';
4
-
5
- $inputNumberBg: #F5F5F5;
6
- $inputSm: 24Px;
7
- $inputLg: 40Px;
8
- $inputNumberControlHeight: 28Px;
9
-
10
- .#{$trionesInputNumberCls} {
11
- display: inline-flex;
12
- align-items: stretch;
13
- gap: 2Px;
14
- border-radius: variable.$trionesBorderRadiusXs;
15
- overflow: hidden;
16
-
17
- &--block {
18
- display: flex;
19
- width: 100%;
20
-
21
- .#{$trionesInputNumberCls}-input {
22
- flex: 1 1 auto;
23
- min-width: 0;
24
- }
25
- }
26
-
27
- &-input {
28
- display: flex;
29
- align-items: stretch;
30
- flex: 0 1 auto;
31
- min-width: 36Px;
32
- min-height: $inputNumberControlHeight;
33
-
34
- input {
35
- width: 100%;
36
- min-width: 0;
37
- height: 100%;
38
- min-height: $inputNumberControlHeight;
39
- box-sizing: border-box;
40
- margin: 0;
41
- padding: 0 8Px;
42
- border: 0;
43
- border-radius: variable.$trionesBorderRadiusXs;
44
- background-color: $inputNumberBg;
45
- color: variable.$trionesColorText;
46
- font-size: 14Px;
47
- line-height: $inputNumberControlHeight;
48
- text-align: center;
49
- -moz-appearance: textfield;
50
- appearance: textfield;
51
-
52
- &::-webkit-outer-spin-button,
53
- &::-webkit-inner-spin-button {
54
- -webkit-appearance: none;
55
- margin: 0;
56
- }
57
-
58
- &:focus {
59
- outline: none;
60
- }
61
-
62
- &:disabled {
63
- color: variable.$trionesColorTextDisabled;
64
- cursor: not-allowed;
65
- }
66
- }
67
- }
68
-
69
- &-button {
70
- cursor: pointer;
71
- display: flex;
72
- flex-shrink: 0;
73
- font-size: 10Px;
74
- height: $inputNumberControlHeight;
75
- width: $inputNumberControlHeight;
76
- justify-content: center;
77
- align-items: center;
78
- background-color: $inputNumberBg;
79
- border-radius: variable.$trionesBorderRadiusXs;
80
-
81
- &-sm {
82
- width: $inputSm;
83
- height: $inputSm;
84
- }
85
-
86
- &-lg {
87
- width: $inputLg;
88
- height: $inputLg;
89
- }
90
-
91
- &-disabled {
92
- cursor: not-allowed;
93
- color: variable.$trionesColorTextDisabled;
94
- }
95
-
96
- .triones-antm-icon {
97
- font-size: 10Px !important;
98
- }
99
- }
100
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ $trionesInputNumberCls: 'triones-antm-input-number';
4
+
5
+ $inputNumberBg: #F5F5F5;
6
+ $inputSm: 24Px;
7
+ $inputLg: 40Px;
8
+ $inputNumberControlHeight: 28Px;
9
+
10
+ .#{$trionesInputNumberCls} {
11
+ display: inline-flex;
12
+ align-items: stretch;
13
+ gap: 2Px;
14
+ border-radius: variable.$trionesBorderRadiusXs;
15
+ overflow: hidden;
16
+
17
+ &--block {
18
+ display: flex;
19
+ width: 100%;
20
+
21
+ .#{$trionesInputNumberCls}-input {
22
+ flex: 1 1 auto;
23
+ min-width: 0;
24
+ }
25
+ }
26
+
27
+ &-input {
28
+ display: flex;
29
+ align-items: stretch;
30
+ flex: 0 1 auto;
31
+ min-width: 36Px;
32
+ min-height: $inputNumberControlHeight;
33
+
34
+ input {
35
+ width: 100%;
36
+ min-width: 0;
37
+ height: 100%;
38
+ min-height: $inputNumberControlHeight;
39
+ box-sizing: border-box;
40
+ margin: 0;
41
+ padding: 0 8Px;
42
+ border: 0;
43
+ border-radius: variable.$trionesBorderRadiusXs;
44
+ background-color: $inputNumberBg;
45
+ color: variable.$trionesColorText;
46
+ font-size: 14Px;
47
+ line-height: $inputNumberControlHeight;
48
+ text-align: center;
49
+ -moz-appearance: textfield;
50
+ appearance: textfield;
51
+
52
+ &::-webkit-outer-spin-button,
53
+ &::-webkit-inner-spin-button {
54
+ -webkit-appearance: none;
55
+ margin: 0;
56
+ }
57
+
58
+ &:focus {
59
+ outline: none;
60
+ }
61
+
62
+ &:disabled {
63
+ color: variable.$trionesColorTextDisabled;
64
+ cursor: not-allowed;
65
+ }
66
+ }
67
+ }
68
+
69
+ &-button {
70
+ cursor: pointer;
71
+ display: flex;
72
+ flex-shrink: 0;
73
+ font-size: 10Px;
74
+ height: $inputNumberControlHeight;
75
+ width: $inputNumberControlHeight;
76
+ justify-content: center;
77
+ align-items: center;
78
+ background-color: $inputNumberBg;
79
+ border-radius: variable.$trionesBorderRadiusXs;
80
+
81
+ &-sm {
82
+ width: $inputSm;
83
+ height: $inputSm;
84
+ }
85
+
86
+ &-lg {
87
+ width: $inputLg;
88
+ height: $inputLg;
89
+ }
90
+
91
+ &-disabled {
92
+ cursor: not-allowed;
93
+ color: variable.$trionesColorTextDisabled;
94
+ }
95
+
96
+ .triones-antm-icon {
97
+ font-size: 10Px !important;
98
+ }
99
+ }
100
+ }
@@ -1,113 +1,113 @@
1
- @use "../style/variable";
2
-
3
- $dotLoadingCls: triones-antm-dot-loading;
4
- $spinLoadingCls: triones-antm-spin-loading;
5
-
6
- .#{$dotLoadingCls} {
7
- display: inline-flex;
8
- align-items: center;
9
- height: 1em;
10
- vertical-align: -0.125em;
11
- /* 18 / 40 * 1em — horizontal gap between dots in antd-mobile viewBox */
12
- gap: 0.45em;
13
-
14
- &-default {
15
- color: #9D9D9D;
16
- }
17
-
18
- &-primary {
19
- color: variable.$trionesColorPrimary;
20
- }
21
-
22
- &-white {
23
- color: white;
24
- }
25
-
26
- &-dot {
27
- display: block;
28
- flex-shrink: 0;
29
- /* 8×8 in a 40-unit-tall viewBox, height = 1em */
30
- width: 0.2em;
31
- height: 0.2em;
32
- background: currentColor;
33
- //mask-image: var(--dotLoadingMask);
34
- //-webkit-mask-image: var(--dotLoadingMask);
35
- mask-repeat: no-repeat;
36
- -webkit-mask-repeat: no-repeat;
37
- mask-size: 100% 100%;
38
- -webkit-mask-size: 100% 100%;
39
- mask-position: center;
40
- -webkit-mask-position: center;
41
- animation: triones-antm-dot-loading-bounce 2s infinite linear;
42
- animation-fill-mode: backwards;
43
- }
44
-
45
- &-dot-0 {
46
- animation-delay: 0s;
47
- }
48
-
49
- &-dot-1 {
50
- animation-delay: 0.2s;
51
- }
52
-
53
- &-dot-2 {
54
- animation-delay: 0.4s;
55
- }
56
- }
57
-
58
- /* Mirrors antd-mobile SMIL: values 16;6;26;16;16, keyTimes 0;0.1;0.3;0.4;1, viewBox height 40 */
59
- @keyframes triones-antm-dot-loading-bounce {
60
- 0%,
61
- 40%,
62
- 100% {
63
- transform: translateY(0);
64
- }
65
-
66
- 10% {
67
- transform: translateY(-0.25em);
68
- }
69
-
70
- 30% {
71
- transform: translateY(0.25em);
72
- }
73
- }
74
-
75
-
76
-
77
-
78
- .#{$spinLoadingCls} {
79
- --size: 32Px;
80
- width: var(--size);
81
- height: var(--size);
82
-
83
- &-default{
84
- color: #9D9D9D;
85
- }
86
- &-primary{
87
- color: variable.$trionesColorPrimary;
88
- }
89
- &-white{
90
- color: #ffffff;
91
- }
92
-
93
- &-spin {
94
- //color: var(--color);
95
- display: inline-block;
96
- height: 100%;
97
- width: 100%;
98
- background: currentColor;
99
- mask-image: var(--maskImage);
100
- -webkit-mask-image: var(--maskImage);
101
- animation: adm-spin-loading-rotate 2s infinite linear;
102
- }
103
-
104
- }
105
-
106
- @keyframes adm-spin-loading-rotate {
107
- from {
108
- transform: rotate(0deg);
109
- }
110
- to {
111
- transform: rotate(360deg);
112
- }
113
- }
1
+ @use "../style/variable";
2
+
3
+ $dotLoadingCls: triones-antm-dot-loading;
4
+ $spinLoadingCls: triones-antm-spin-loading;
5
+
6
+ .#{$dotLoadingCls} {
7
+ display: inline-flex;
8
+ align-items: center;
9
+ height: 1em;
10
+ vertical-align: -0.125em;
11
+ /* 18 / 40 * 1em — horizontal gap between dots in antd-mobile viewBox */
12
+ gap: 0.45em;
13
+
14
+ &-default {
15
+ color: #9D9D9D;
16
+ }
17
+
18
+ &-primary {
19
+ color: variable.$trionesColorPrimary;
20
+ }
21
+
22
+ &-white {
23
+ color: white;
24
+ }
25
+
26
+ &-dot {
27
+ display: block;
28
+ flex-shrink: 0;
29
+ /* 8×8 in a 40-unit-tall viewBox, height = 1em */
30
+ width: 0.2em;
31
+ height: 0.2em;
32
+ background: currentColor;
33
+ //mask-image: var(--dotLoadingMask);
34
+ //-webkit-mask-image: var(--dotLoadingMask);
35
+ mask-repeat: no-repeat;
36
+ -webkit-mask-repeat: no-repeat;
37
+ mask-size: 100% 100%;
38
+ -webkit-mask-size: 100% 100%;
39
+ mask-position: center;
40
+ -webkit-mask-position: center;
41
+ animation: triones-antm-dot-loading-bounce 2s infinite linear;
42
+ animation-fill-mode: backwards;
43
+ }
44
+
45
+ &-dot-0 {
46
+ animation-delay: 0s;
47
+ }
48
+
49
+ &-dot-1 {
50
+ animation-delay: 0.2s;
51
+ }
52
+
53
+ &-dot-2 {
54
+ animation-delay: 0.4s;
55
+ }
56
+ }
57
+
58
+ /* Mirrors antd-mobile SMIL: values 16;6;26;16;16, keyTimes 0;0.1;0.3;0.4;1, viewBox height 40 */
59
+ @keyframes triones-antm-dot-loading-bounce {
60
+ 0%,
61
+ 40%,
62
+ 100% {
63
+ transform: translateY(0);
64
+ }
65
+
66
+ 10% {
67
+ transform: translateY(-0.25em);
68
+ }
69
+
70
+ 30% {
71
+ transform: translateY(0.25em);
72
+ }
73
+ }
74
+
75
+
76
+
77
+
78
+ .#{$spinLoadingCls} {
79
+ --size: 32Px;
80
+ width: var(--size);
81
+ height: var(--size);
82
+
83
+ &-default{
84
+ color: #9D9D9D;
85
+ }
86
+ &-primary{
87
+ color: variable.$trionesColorPrimary;
88
+ }
89
+ &-white{
90
+ color: #ffffff;
91
+ }
92
+
93
+ &-spin {
94
+ //color: var(--color);
95
+ display: inline-block;
96
+ height: 100%;
97
+ width: 100%;
98
+ background: currentColor;
99
+ mask-image: var(--maskImage);
100
+ -webkit-mask-image: var(--maskImage);
101
+ animation: adm-spin-loading-rotate 2s infinite linear;
102
+ }
103
+
104
+ }
105
+
106
+ @keyframes adm-spin-loading-rotate {
107
+ from {
108
+ transform: rotate(0deg);
109
+ }
110
+ to {
111
+ transform: rotate(360deg);
112
+ }
113
+ }