@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,72 +1,72 @@
1
- $pickerViewCls: 'triones-antm-picker-view';
2
- .#{$pickerViewCls} {
3
- width: 100%;
4
- height: var(--height,240Px);
5
- display: flex;
6
- position: relative;
7
- overflow: hidden;
8
- --item-height: 34Px;
9
- --item-font-size: 16Px;
10
-
11
- &-column {
12
- height: 100%;
13
- flex: 1 1;
14
- user-select: none;
15
- touch-action: none;
16
- position: relative;
17
- z-index: 0;
18
- &-wheel{
19
- width: 100%;
20
- cursor: grab;
21
- position: absolute;
22
- top: calc(50% - var(--item-height)/2);
23
- left: 0;
24
- }
25
-
26
- &-item {
27
- font-size: var(--item-font-size);
28
- padding: 0 6px;
29
- height: var(--item-height);
30
- display: flex;
31
- justify-content: center;
32
- align-items: center;
33
- &-label{
34
- overflow: hidden;
35
- text-overflow: ellipsis;
36
- white-space: nowrap;
37
- }
38
- }
39
- }
40
-
41
- &-mask {
42
- position: absolute;
43
- z-index: 10000;
44
- left: 0;
45
- top: 0;
46
- width: 100%;
47
- height: 100%;
48
- display: flex;
49
- flex-direction: column;
50
- pointer-events: none;
51
-
52
- &-top {
53
- background-color: white;
54
- flex: auto;
55
- mask: linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .8) 50%, #000);
56
- }
57
-
58
- &-middle {
59
- height: var(--item-height);
60
- box-sizing: border-box;
61
- flex: none;
62
- border-top: 1px solid #eee;
63
- border-bottom: 1px solid #eee;
64
- }
65
-
66
- &-bottom {
67
- background-color: white;
68
- flex: auto;
69
- mask: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .8) 50%, #000);
70
- }
71
- }
72
- }
1
+ $pickerViewCls: 'triones-antm-picker-view';
2
+ .#{$pickerViewCls} {
3
+ width: 100%;
4
+ height: var(--height,240Px);
5
+ display: flex;
6
+ position: relative;
7
+ overflow: hidden;
8
+ --item-height: 34Px;
9
+ --item-font-size: 16Px;
10
+
11
+ &-column {
12
+ height: 100%;
13
+ flex: 1 1;
14
+ user-select: none;
15
+ touch-action: none;
16
+ position: relative;
17
+ z-index: 0;
18
+ &-wheel{
19
+ width: 100%;
20
+ cursor: grab;
21
+ position: absolute;
22
+ top: calc(50% - var(--item-height)/2);
23
+ left: 0;
24
+ }
25
+
26
+ &-item {
27
+ font-size: var(--item-font-size);
28
+ padding: 0 6px;
29
+ height: var(--item-height);
30
+ display: flex;
31
+ justify-content: center;
32
+ align-items: center;
33
+ &-label{
34
+ overflow: hidden;
35
+ text-overflow: ellipsis;
36
+ white-space: nowrap;
37
+ }
38
+ }
39
+ }
40
+
41
+ &-mask {
42
+ position: absolute;
43
+ z-index: 10000;
44
+ left: 0;
45
+ top: 0;
46
+ width: 100%;
47
+ height: 100%;
48
+ display: flex;
49
+ flex-direction: column;
50
+ pointer-events: none;
51
+
52
+ &-top {
53
+ background-color: white;
54
+ flex: auto;
55
+ mask: linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .8) 50%, #000);
56
+ }
57
+
58
+ &-middle {
59
+ height: var(--item-height);
60
+ box-sizing: border-box;
61
+ flex: none;
62
+ border-top: 1px solid #eee;
63
+ border-bottom: 1px solid #eee;
64
+ }
65
+
66
+ &-bottom {
67
+ background-color: white;
68
+ flex: auto;
69
+ mask: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .8) 50%, #000);
70
+ }
71
+ }
72
+ }
@@ -1,53 +1,53 @@
1
- @import "../style/variable";
2
- $popupCls: 'triones-antm-popup';
3
-
4
- .#{$popupCls} {
5
- position: fixed;
6
- top: 0;
7
- left: 0;
8
- right: 0;
9
- bottom: 0;
10
-
11
- &-mask {
12
- height: 100%;
13
- width: 100%;
14
- background-color: rgba(0, 0, 0, .55);
15
- }
16
-
17
- &-close {
18
- position: absolute;
19
- right: 10Px;
20
- top: 10Px;
21
- }
22
-
23
- &-body {
24
- background-color: white;
25
- position: fixed;
26
- border-top-left-radius: $trionesBorderRadius;
27
- border-top-right-radius: $trionesBorderRadius;
28
- }
29
-
30
- &-top {
31
- top: 0;
32
- left: 0;
33
- right: 0;
34
- }
35
-
36
- &-bottom {
37
- bottom: 0;
38
- left: 0;
39
- right: 0;
40
- }
41
-
42
- &-left {
43
- left: 0;
44
- top: 0;
45
- bottom: 0;
46
- }
47
-
48
- &-right {
49
- right: 0;
50
- top: 0;
51
- bottom: 0;
52
- }
53
- }
1
+ @use "../style/variable" as *;
2
+ $popupCls: 'triones-antm-popup';
3
+
4
+ .#{$popupCls} {
5
+ position: fixed;
6
+ top: 0;
7
+ left: 0;
8
+ right: 0;
9
+ bottom: 0;
10
+
11
+ &-mask {
12
+ height: 100%;
13
+ width: 100%;
14
+ background-color: rgba(0, 0, 0, .55);
15
+ }
16
+
17
+ &-close {
18
+ position: absolute;
19
+ right: 10Px;
20
+ top: 10Px;
21
+ }
22
+
23
+ &-body {
24
+ background-color: white;
25
+ position: fixed;
26
+ border-top-left-radius: $trionesBorderRadius;
27
+ border-top-right-radius: $trionesBorderRadius;
28
+ }
29
+
30
+ &-top {
31
+ top: 0;
32
+ left: 0;
33
+ right: 0;
34
+ }
35
+
36
+ &-bottom {
37
+ bottom: 0;
38
+ left: 0;
39
+ right: 0;
40
+ }
41
+
42
+ &-left {
43
+ left: 0;
44
+ top: 0;
45
+ bottom: 0;
46
+ }
47
+
48
+ &-right {
49
+ right: 0;
50
+ top: 0;
51
+ bottom: 0;
52
+ }
53
+ }
@@ -1,138 +1,138 @@
1
- @import "../style/variable";
2
-
3
- $checkboxDisabledColor: rgba(0, 0, 0, 0.25) !default;
4
-
5
- $class-prefix-radio: 'triones-antm-radio';
6
-
7
- .#{$class-prefix-radio}-wrapper {
8
- cursor: pointer;
9
- display: flex;
10
- align-items: center;
11
- gap: 8Px;
12
-
13
- .#{$class-prefix-radio} {
14
- &-fake {
15
- width: 22PX;
16
- height: 22PX;
17
-
18
- .triones-antm-icon {
19
- //position: absolute;
20
- }
21
-
22
- &-checked {
23
- height: 100%;
24
- width: 100%;
25
- display: inline-flex;
26
- justify-content: center;
27
- align-items: center;
28
- background-color: $trionesColorPrimary;
29
- color: white;
30
- border-radius: 50vh;
31
- box-sizing: border-box;
32
- overflow: hidden;
33
-
34
- }
35
-
36
- &-unchecked {
37
- height: 100%;
38
- width: 100%;
39
- display: inline-flex;
40
- justify-content: center;
41
- align-items: center;
42
- border-radius: 50vh;
43
- border: 1PX solid $trionesBorderColor;
44
- box-sizing: border-box;
45
- }
46
-
47
- }
48
-
49
-
50
-
51
- &-label {
52
- flex: 1 auto;
53
- }
54
- }
55
-
56
- &.#{$class-prefix-radio} {
57
- &-disabled {
58
- color: $checkboxDisabledColor;
59
- pointer-events: none;
60
-
61
- .#{$class-prefix-radio}-fake-checked {
62
- background-color: $checkboxDisabledColor;
63
- }
64
- }
65
- &-block {
66
- width: 100%;
67
- }
68
- }
69
-
70
- }
71
-
72
-
73
- .#{$class-prefix-radio}-group {
74
- display: flex;
75
- gap: 8Px;
76
- &-horizontal{
77
- flex-direction: row;
78
- }
79
- &-vertical{
80
- flex-direction: column;
81
- }
82
- }
83
-
84
- .#{$class-prefix-radio}-button-group {
85
- display: flex;
86
- }
87
-
88
- .#{$class-prefix-radio}-button-wrapper {
89
- display: inline-flex;
90
- position: relative;
91
- border-top: 1PX solid $trionesBorderColor;
92
- border-bottom: 1PX solid $trionesBorderColor;
93
- border-right: 1PX solid $trionesBorderColor;
94
-
95
- &:first-child {
96
- border-left: 1PX solid $trionesBorderColor;
97
- border-top-left-radius: $trionesBorderRadius;
98
- border-bottom-left-radius: $trionesBorderRadius;
99
- }
100
-
101
- &:last-child {
102
- border-right: 1PX solid $trionesBorderColor;
103
- border-top-right-radius: $trionesBorderRadius;
104
- border-bottom-right-radius: $trionesBorderRadius;
105
- }
106
-
107
- &-checked {
108
- border-top: 1PX solid $trionesColorPrimary;
109
- border-bottom: 1PX solid $trionesColorPrimary;
110
- color: $trionesColorPrimary;
111
-
112
- &:first-child {
113
- border: 1PX solid $trionesColorPrimary;
114
- }
115
-
116
- &:not(:first-child) {
117
- &::before {
118
- content: " ";
119
- width: 1PX;
120
- background-color: $trionesColorPrimary;
121
- position: absolute;
122
- inset-block-start: -1Px;
123
- inset-inline-start: -1Px;
124
- height: 100%;
125
- padding-block: 1Px;
126
- }
127
-
128
- border-right: 1PX solid $trionesColorPrimary;
129
- }
130
- }
131
-
132
- .#{$class-prefix-radio}-button {
133
- cursor: pointer;
134
- display: inline-flex;
135
- padding: 8Px 12Px;
136
-
137
- }
138
- }
1
+ @use "../style/variable" as *;
2
+
3
+ $checkboxDisabledColor: rgba(0, 0, 0, 0.25) !default;
4
+
5
+ $class-prefix-radio: 'triones-antm-radio';
6
+
7
+ .#{$class-prefix-radio}-wrapper {
8
+ cursor: pointer;
9
+ display: flex;
10
+ align-items: center;
11
+ gap: 8Px;
12
+
13
+ .#{$class-prefix-radio} {
14
+ &-fake {
15
+ width: 22PX;
16
+ height: 22PX;
17
+
18
+ .triones-antm-icon {
19
+ //position: absolute;
20
+ }
21
+
22
+ &-checked {
23
+ height: 100%;
24
+ width: 100%;
25
+ display: inline-flex;
26
+ justify-content: center;
27
+ align-items: center;
28
+ background-color: $trionesColorPrimary;
29
+ color: white;
30
+ border-radius: 50vh;
31
+ box-sizing: border-box;
32
+ overflow: hidden;
33
+
34
+ }
35
+
36
+ &-unchecked {
37
+ height: 100%;
38
+ width: 100%;
39
+ display: inline-flex;
40
+ justify-content: center;
41
+ align-items: center;
42
+ border-radius: 50vh;
43
+ border: 1PX solid $trionesBorderColor;
44
+ box-sizing: border-box;
45
+ }
46
+
47
+ }
48
+
49
+
50
+
51
+ &-label {
52
+ flex: 1 auto;
53
+ }
54
+ }
55
+
56
+ &.#{$class-prefix-radio} {
57
+ &-disabled {
58
+ color: $checkboxDisabledColor;
59
+ pointer-events: none;
60
+
61
+ .#{$class-prefix-radio}-fake-checked {
62
+ background-color: $checkboxDisabledColor;
63
+ }
64
+ }
65
+ &-block {
66
+ width: 100%;
67
+ }
68
+ }
69
+
70
+ }
71
+
72
+
73
+ .#{$class-prefix-radio}-group {
74
+ display: flex;
75
+ gap: 8Px;
76
+ &-horizontal{
77
+ flex-direction: row;
78
+ }
79
+ &-vertical{
80
+ flex-direction: column;
81
+ }
82
+ }
83
+
84
+ .#{$class-prefix-radio}-button-group {
85
+ display: flex;
86
+ }
87
+
88
+ .#{$class-prefix-radio}-button-wrapper {
89
+ display: inline-flex;
90
+ position: relative;
91
+ border-top: 1PX solid $trionesBorderColor;
92
+ border-bottom: 1PX solid $trionesBorderColor;
93
+ border-right: 1PX solid $trionesBorderColor;
94
+
95
+ &:first-child {
96
+ border-left: 1PX solid $trionesBorderColor;
97
+ border-top-left-radius: $trionesBorderRadius;
98
+ border-bottom-left-radius: $trionesBorderRadius;
99
+ }
100
+
101
+ &:last-child {
102
+ border-right: 1PX solid $trionesBorderColor;
103
+ border-top-right-radius: $trionesBorderRadius;
104
+ border-bottom-right-radius: $trionesBorderRadius;
105
+ }
106
+
107
+ &-checked {
108
+ border-top: 1PX solid $trionesColorPrimary;
109
+ border-bottom: 1PX solid $trionesColorPrimary;
110
+ color: $trionesColorPrimary;
111
+
112
+ &:first-child {
113
+ border: 1PX solid $trionesColorPrimary;
114
+ }
115
+
116
+ &:not(:first-child) {
117
+ &::before {
118
+ content: " ";
119
+ width: 1PX;
120
+ background-color: $trionesColorPrimary;
121
+ position: absolute;
122
+ inset-block-start: -1Px;
123
+ inset-inline-start: -1Px;
124
+ height: 100%;
125
+ padding-block: 1Px;
126
+ }
127
+
128
+ border-right: 1PX solid $trionesColorPrimary;
129
+ }
130
+ }
131
+
132
+ .#{$class-prefix-radio}-button {
133
+ cursor: pointer;
134
+ display: inline-flex;
135
+ padding: 8Px 12Px;
136
+
137
+ }
138
+ }
@@ -1,37 +1,37 @@
1
- $rateCls: 'triones-antm-rate';
2
-
3
- .#{$rateCls} {
4
- display: inline-flex;
5
- align-items: center;
6
-
7
- &-star-wrapper {
8
- position: relative;
9
- padding: 0 2px;
10
- cursor: pointer;
11
- }
12
-
13
- &-star {
14
- font-size: 20px;
15
- color: var(--inactive-color, #e8e8e8);
16
- transition: color 0.3s;
17
-
18
- &-active {
19
- color: var(--active-color, #ffb400);
20
- }
21
- }
22
-
23
- &-star-half-item {
24
- position: absolute;
25
- left: 2px;
26
- top: 0;
27
- width: 42%;
28
- height: 100%;
29
- overflow: hidden;
30
- }
31
-
32
- &-readonly {
33
- .#{$rateCls}-star-wrapper {
34
- cursor: default;
35
- }
36
- }
37
- }
1
+ $rateCls: 'triones-antm-rate';
2
+
3
+ .#{$rateCls} {
4
+ display: inline-flex;
5
+ align-items: center;
6
+
7
+ &-star-wrapper {
8
+ position: relative;
9
+ padding: 0 2px;
10
+ cursor: pointer;
11
+ }
12
+
13
+ &-star {
14
+ font-size: 20px;
15
+ color: var(--inactive-color, #e8e8e8);
16
+ transition: color 0.3s;
17
+
18
+ &-active {
19
+ color: var(--active-color, #ffb400);
20
+ }
21
+ }
22
+
23
+ &-star-half-item {
24
+ position: absolute;
25
+ left: 2px;
26
+ top: 0;
27
+ width: 42%;
28
+ height: 100%;
29
+ overflow: hidden;
30
+ }
31
+
32
+ &-readonly {
33
+ .#{$rateCls}-star-wrapper {
34
+ cursor: default;
35
+ }
36
+ }
37
+ }
@@ -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';