@trionesdev/antd-mobile-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 (69) hide show
  1. package/LICENSE +21 -21
  2. package/dist/ActionSheet/style.scss +52 -52
  3. package/dist/Avatar/demo/base.js +2 -2
  4. package/dist/Avatar/demo/style.scss +6 -6
  5. package/dist/Badge/demo/base.js +2 -2
  6. package/dist/Badge/demo/base.scss +6 -6
  7. package/dist/Button/demo/base.js +2 -2
  8. package/dist/Button/style.scss +234 -234
  9. package/dist/Calendar/style.scss +85 -85
  10. package/dist/Calendar/touchable-calendar-grid.js +9 -9
  11. package/dist/CalendarDatetimePicker/style.scss +54 -54
  12. package/dist/CalendarDatetimePickerCell/style.scss +10 -10
  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/CascaderPicker/style.scss +45 -45
  17. package/dist/CascaderPickerCell/style.scss +24 -24
  18. package/dist/Checkbox/demo/base.js +2 -2
  19. package/dist/ConfigProvider/demo/base.js +2 -2
  20. package/dist/DemoBlock/index.scss +20 -20
  21. package/dist/DemoDescription/index.scss +3 -3
  22. package/dist/Divider/demo/base.js +2 -2
  23. package/dist/Ellipsis/demo/base.js +2 -2
  24. package/dist/Empty/demo/base.js +2 -2
  25. package/dist/ErrorBlock/demo/base.js +2 -2
  26. package/dist/FetchPicker/styles.scss +118 -118
  27. package/dist/FloatButton/style.scss +123 -123
  28. package/dist/Footer/demo/base.js +2 -2
  29. package/dist/Form/style.scss +106 -106
  30. package/dist/Grid/demo/base.js +2 -2
  31. package/dist/Grid/demo/base.scss +7 -7
  32. package/dist/Icon/demo/base.js +2 -2
  33. package/dist/Image/demo/base.js +2 -2
  34. package/dist/Image/demo/base.scss +4 -4
  35. package/dist/Image/style.scss +30 -30
  36. package/dist/ImagesPreview/style.scss +34 -34
  37. package/dist/ImagesWall/style.scss +70 -70
  38. package/dist/Input/demo/base.js +2 -2
  39. package/dist/Input/index.scss +240 -240
  40. package/dist/NavBar/demo/base.scss +5 -5
  41. package/dist/NoticeBar/demo/base.js +2 -2
  42. package/dist/Overlay/style.scss +20 -20
  43. package/dist/PageIndicator/demo/base.js +2 -2
  44. package/dist/Picker/style.scss +44 -44
  45. package/dist/PickerView/style.scss +72 -72
  46. package/dist/Popup/demo/base.js +2 -2
  47. package/dist/Popup/style.scss +129 -129
  48. package/dist/Radio/demo/base.scss +4 -4
  49. package/dist/Result/demo/base.js +2 -2
  50. package/dist/SafeArea/demo/base.scss +18 -18
  51. package/dist/ScrollView/style.scss +19 -19
  52. package/dist/SideBar/side-bar.js +6 -6
  53. package/dist/SideBar/style.scss +85 -85
  54. package/dist/Space/demo/base.js +2 -2
  55. package/dist/Swiper/style.scss +54 -54
  56. package/dist/Switch/demo/base.js +2 -2
  57. package/dist/TabBar/demo/base.js +2 -2
  58. package/dist/Tag/demo/base.js +2 -2
  59. package/dist/Tag/demo/style.scss +8 -8
  60. package/dist/Toast/style.scss +63 -63
  61. package/dist/VerificationCodeInput/style.scss +20 -20
  62. package/dist/WaterMark/demo/demo1.js +2 -2
  63. package/dist/WaterMark/demo/demo1.scss +6 -6
  64. package/dist/WaterMark/demo/demo2.js +2 -2
  65. package/dist/style/variable.scss +1 -1
  66. package/dist/utils/type.js +36 -36
  67. package/dist/utils/with-default-props.js +4 -4
  68. package/package.json +23 -25
  69. package/readme.md +43 -43
@@ -1,240 +1,240 @@
1
- @use "../style/variable" as variable;
2
-
3
- $inputCls: 'triones-antm-input';
4
- $inputAffixWrapperCls: 'triones-antm-input-affix-wrapper';
5
- $inputGroupWrapperCls: 'triones-antm-input-group-wrapper';
6
- $inputPotCls: 'triones-antm-pot';
7
-
8
- $inputSm: 24Px;
9
- $inputMd: 32Px;
10
- $inputLg: 40Px;
11
-
12
- $placeholderColor: #CCCCCC;
13
-
14
- .#{$inputCls} {
15
- box-sizing: border-box;
16
- display: inline-block;
17
- position: relative;
18
- width: 100%;
19
- min-width: 0;
20
- transition: all .2s;
21
- outline: none;
22
- box-shadow: none;
23
- border: none;
24
- border-radius: variable.$trionesBorderRadius;
25
- font-size: variable.$trionesInputInputFontSize;
26
- //padding: variable.$trionesInputPaddingBlock 0;
27
-
28
- &-sm {
29
- max-height: $inputSm;
30
- //font-size: variable.$trionesInputPaddingInlineSm 0;
31
- }
32
-
33
- &-lg {
34
- max-height: $inputLg;
35
- //font-size: variable.$trionesInputPaddingInlineLg 0;
36
- }
37
-
38
- &::placeholder {
39
- font-size: variable.$trionesInputInputFontSize;
40
- color: $placeholderColor
41
- }
42
-
43
-
44
- }
45
-
46
-
47
- .#{$inputAffixWrapperCls} {
48
- box-sizing: border-box;
49
- position: relative;
50
- display: inline-flex;
51
- align-items: center;
52
- width: 100%;
53
- min-width: 0;
54
- //line-height: variable.$trionesLineHeight;
55
- //padding: variable.$trionesInputPaddingBlock 0;
56
- gap: 4Px;
57
-
58
- &-small {
59
- padding: variable.$trionesInputPaddingBlockSm 0;
60
- font-size: variable.$trionesInputInputFontSizeSm;
61
- }
62
-
63
- &-large {
64
- padding: variable.$trionesInputPaddingBlockLg 0;
65
- font-size: variable.$trionesInputInputFontSizeLg;
66
- }
67
-
68
- .#{$inputCls} {
69
- padding: 0;
70
- background-color: transparent;
71
-
72
- &-prifix {
73
- }
74
-
75
- &-suffix {
76
- display: inline-flex;
77
- align-items: center;
78
- flex-shrink: 0;
79
- gap: 4Px;
80
-
81
- .clear-icon {
82
- color: rgba(0, 0, 0, 0.25);
83
-
84
-
85
- &:hover {
86
- color: rgba(0, 0, 0, 0.45);
87
- }
88
- }
89
-
90
- .triones-antm-icon {
91
- cursor: pointer;
92
- }
93
- }
94
- }
95
-
96
- input {
97
- // height: 1.47059em;
98
- line-height: 1.47059;
99
-
100
- &::placeholder {
101
- font-size: variable.$trionesInputInputFontSize;
102
- color: $placeholderColor
103
- }
104
- }
105
- }
106
-
107
- .#{$inputCls} {
108
- &-outlined {
109
- padding-block: variable.$trionesInputPaddingBlock;
110
- border-radius: variable.$trionesBorderRadius;
111
- border: 1Px solid variable.$trionesBorderColor;
112
- padding-inline: 4Px;
113
- box-sizing: border-box;
114
- }
115
-
116
- &-filled {
117
- border-radius: variable.$trionesBorderRadius;
118
- background-color: variable.$trionesColorFillTertiary;
119
- padding-inline: variable.$trionesInputPaddingBlock;
120
- padding-block: variable.$trionesInputPaddingBlock;
121
- box-sizing: border-box;
122
- border: 0;
123
- }
124
-
125
- &-borderless {
126
- border: 0;
127
- }
128
-
129
- &-underlined {
130
- border-top: 0;
131
- border-left: 0;
132
- border-right: 0;
133
- border-bottom: 1Px solid variable.$trionesBorderColor;
134
- padding-block: variable.$trionesInputPaddingBlock;
135
- box-sizing: border-box;
136
- }
137
- }
138
-
139
-
140
-
141
- .#{$inputPotCls} {
142
- position: relative;
143
- display: inline-flex;
144
- vertical-align: middle;
145
-
146
- &-wrapper {
147
- position: relative;
148
- display: inline-flex;
149
- align-items: center;
150
- flex-wrap: nowrap;
151
- column-gap: 8Px;
152
- }
153
-
154
- &-input {
155
- position: absolute;
156
- background-color: transparent;
157
- z-index: -1;
158
- left: 0;
159
- top: 0;
160
- right: 0;
161
- bottom: 0;
162
- opacity: 0;
163
- -moz-appearance: textfield;
164
-
165
- &::-webkit-outer-spin-button,
166
- &::-webkit-inner-spin-button {
167
- -webkit-appearance: none;
168
- margin: 0;
169
- }
170
- }
171
-
172
- &-item {
173
- text-align: center;
174
- font-size: variable.$trionesInputInputFontSize;
175
- height: variable.$trionesControlHeight;
176
- width: variable.$trionesControlHeight;
177
- display: inline-flex;
178
- align-items: center;
179
- justify-content: center;
180
-
181
- &-sm {
182
- width: variable.$trionesControlHeightSm;
183
- height: variable.$trionesControlHeightSm;
184
- }
185
-
186
- &-lg {
187
- width: variable.$trionesControlHeightLg;
188
- height: variable.$trionesControlHeightLg;
189
- }
190
-
191
- &::placeholder {
192
- font-size: variable.$trionesInputInputFontSize;
193
- color: $placeholderColor
194
- }
195
-
196
- &-focus {
197
- &::after {
198
- content: ' ';
199
- height: 100%;
200
- width: 0.5Px;
201
- background-color: #0a0a0a;
202
- transition: transform 0.1s ease;
203
- animation: blink 1s step-end infinite;
204
- }
205
- }
206
-
207
- }
208
-
209
- .#{$inputCls}-outlined {
210
- font-size: variable.$trionesInputInputFontSize;
211
- color: rgba(0, 0, 0, 0.88);
212
- background: #ffffff;
213
- border-width: 1Px;
214
- border-style: solid;
215
- border-color: #d9d9d9;
216
- -webkit-appearance: none;
217
- -moz-appearance: none;
218
- appearance: none;
219
- }
220
- }
221
-
222
-
223
- .#{$inputCls}-textarea {
224
- box-sizing: border-box;
225
- width: 100%;
226
- outline: 0;
227
- //padding-block: variable.$trionesInputPaddingBlock;
228
- font-size: variable.$trionesInputInputFontSize;
229
-
230
- &::placeholder {
231
- font-size: variable.$trionesInputInputFontSize;
232
- color: $placeholderColor
233
- }
234
- }
235
-
236
- @keyframes blink {
237
- 50% {
238
- background-color: transparent;
239
- }
240
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ $inputCls: 'triones-antm-input';
4
+ $inputAffixWrapperCls: 'triones-antm-input-affix-wrapper';
5
+ $inputGroupWrapperCls: 'triones-antm-input-group-wrapper';
6
+ $inputPotCls: 'triones-antm-pot';
7
+
8
+ $inputSm: 24Px;
9
+ $inputMd: 32Px;
10
+ $inputLg: 40Px;
11
+
12
+ $placeholderColor: #CCCCCC;
13
+
14
+ .#{$inputCls} {
15
+ box-sizing: border-box;
16
+ display: inline-block;
17
+ position: relative;
18
+ width: 100%;
19
+ min-width: 0;
20
+ transition: all .2s;
21
+ outline: none;
22
+ box-shadow: none;
23
+ border: none;
24
+ border-radius: variable.$trionesBorderRadius;
25
+ font-size: variable.$trionesInputInputFontSize;
26
+ //padding: variable.$trionesInputPaddingBlock 0;
27
+
28
+ &-sm {
29
+ max-height: $inputSm;
30
+ //font-size: variable.$trionesInputPaddingInlineSm 0;
31
+ }
32
+
33
+ &-lg {
34
+ max-height: $inputLg;
35
+ //font-size: variable.$trionesInputPaddingInlineLg 0;
36
+ }
37
+
38
+ &::placeholder {
39
+ font-size: variable.$trionesInputInputFontSize;
40
+ color: $placeholderColor
41
+ }
42
+
43
+
44
+ }
45
+
46
+
47
+ .#{$inputAffixWrapperCls} {
48
+ box-sizing: border-box;
49
+ position: relative;
50
+ display: inline-flex;
51
+ align-items: center;
52
+ width: 100%;
53
+ min-width: 0;
54
+ //line-height: variable.$trionesLineHeight;
55
+ //padding: variable.$trionesInputPaddingBlock 0;
56
+ gap: 4Px;
57
+
58
+ &-small {
59
+ padding: variable.$trionesInputPaddingBlockSm 0;
60
+ font-size: variable.$trionesInputInputFontSizeSm;
61
+ }
62
+
63
+ &-large {
64
+ padding: variable.$trionesInputPaddingBlockLg 0;
65
+ font-size: variable.$trionesInputInputFontSizeLg;
66
+ }
67
+
68
+ .#{$inputCls} {
69
+ padding: 0;
70
+ background-color: transparent;
71
+
72
+ &-prifix {
73
+ }
74
+
75
+ &-suffix {
76
+ display: inline-flex;
77
+ align-items: center;
78
+ flex-shrink: 0;
79
+ gap: 4Px;
80
+
81
+ .clear-icon {
82
+ color: rgba(0, 0, 0, 0.25);
83
+
84
+
85
+ &:hover {
86
+ color: rgba(0, 0, 0, 0.45);
87
+ }
88
+ }
89
+
90
+ .triones-antm-icon {
91
+ cursor: pointer;
92
+ }
93
+ }
94
+ }
95
+
96
+ input {
97
+ // height: 1.47059em;
98
+ line-height: 1.47059;
99
+
100
+ &::placeholder {
101
+ font-size: variable.$trionesInputInputFontSize;
102
+ color: $placeholderColor
103
+ }
104
+ }
105
+ }
106
+
107
+ .#{$inputCls} {
108
+ &-outlined {
109
+ padding-block: variable.$trionesInputPaddingBlock;
110
+ border-radius: variable.$trionesBorderRadius;
111
+ border: 1Px solid variable.$trionesBorderColor;
112
+ padding-inline: 4Px;
113
+ box-sizing: border-box;
114
+ }
115
+
116
+ &-filled {
117
+ border-radius: variable.$trionesBorderRadius;
118
+ background-color: variable.$trionesColorFillTertiary;
119
+ padding-inline: variable.$trionesInputPaddingBlock;
120
+ padding-block: variable.$trionesInputPaddingBlock;
121
+ box-sizing: border-box;
122
+ border: 0;
123
+ }
124
+
125
+ &-borderless {
126
+ border: 0;
127
+ }
128
+
129
+ &-underlined {
130
+ border-top: 0;
131
+ border-left: 0;
132
+ border-right: 0;
133
+ border-bottom: 1Px solid variable.$trionesBorderColor;
134
+ padding-block: variable.$trionesInputPaddingBlock;
135
+ box-sizing: border-box;
136
+ }
137
+ }
138
+
139
+
140
+
141
+ .#{$inputPotCls} {
142
+ position: relative;
143
+ display: inline-flex;
144
+ vertical-align: middle;
145
+
146
+ &-wrapper {
147
+ position: relative;
148
+ display: inline-flex;
149
+ align-items: center;
150
+ flex-wrap: nowrap;
151
+ column-gap: 8Px;
152
+ }
153
+
154
+ &-input {
155
+ position: absolute;
156
+ background-color: transparent;
157
+ z-index: -1;
158
+ left: 0;
159
+ top: 0;
160
+ right: 0;
161
+ bottom: 0;
162
+ opacity: 0;
163
+ -moz-appearance: textfield;
164
+
165
+ &::-webkit-outer-spin-button,
166
+ &::-webkit-inner-spin-button {
167
+ -webkit-appearance: none;
168
+ margin: 0;
169
+ }
170
+ }
171
+
172
+ &-item {
173
+ text-align: center;
174
+ font-size: variable.$trionesInputInputFontSize;
175
+ height: variable.$trionesControlHeight;
176
+ width: variable.$trionesControlHeight;
177
+ display: inline-flex;
178
+ align-items: center;
179
+ justify-content: center;
180
+
181
+ &-sm {
182
+ width: variable.$trionesControlHeightSm;
183
+ height: variable.$trionesControlHeightSm;
184
+ }
185
+
186
+ &-lg {
187
+ width: variable.$trionesControlHeightLg;
188
+ height: variable.$trionesControlHeightLg;
189
+ }
190
+
191
+ &::placeholder {
192
+ font-size: variable.$trionesInputInputFontSize;
193
+ color: $placeholderColor
194
+ }
195
+
196
+ &-focus {
197
+ &::after {
198
+ content: ' ';
199
+ height: 100%;
200
+ width: 0.5Px;
201
+ background-color: #0a0a0a;
202
+ transition: transform 0.1s ease;
203
+ animation: blink 1s step-end infinite;
204
+ }
205
+ }
206
+
207
+ }
208
+
209
+ .#{$inputCls}-outlined {
210
+ font-size: variable.$trionesInputInputFontSize;
211
+ color: rgba(0, 0, 0, 0.88);
212
+ background: #ffffff;
213
+ border-width: 1Px;
214
+ border-style: solid;
215
+ border-color: #d9d9d9;
216
+ -webkit-appearance: none;
217
+ -moz-appearance: none;
218
+ appearance: none;
219
+ }
220
+ }
221
+
222
+
223
+ .#{$inputCls}-textarea {
224
+ box-sizing: border-box;
225
+ width: 100%;
226
+ outline: 0;
227
+ //padding-block: variable.$trionesInputPaddingBlock;
228
+ font-size: variable.$trionesInputInputFontSize;
229
+
230
+ &::placeholder {
231
+ font-size: variable.$trionesInputInputFontSize;
232
+ color: $placeholderColor
233
+ }
234
+ }
235
+
236
+ @keyframes blink {
237
+ 50% {
238
+ background-color: transparent;
239
+ }
240
+ }
@@ -1,5 +1,5 @@
1
- .my-nav-bar {
2
- &-subtitle {
3
- font-size: 12px;
4
- }
5
- }
1
+ .my-nav-bar {
2
+ &-subtitle {
3
+ font-size: 12px;
4
+ }
5
+ }
@@ -1,5 +1,5 @@
1
- /**
2
- * compact: true
1
+ /**
2
+ * compact: true
3
3
  */
4
4
  import { CloseCircleOutline, SetOutline } from "../../../../antd-mobile-icons-react";
5
5
  import { DemoBlock } from "../../DemoBlock";
@@ -1,20 +1,20 @@
1
- @use "../style/variable" as variable;
2
-
3
- $trionesOverlayCls: 'triones-antm-overlay';
4
-
5
- .#{$trionesOverlayCls} {
6
- position: fixed;
7
- top: 0;
8
- left: 0;
9
- right: 0;
10
- bottom: 0;
11
- background-color: rgba(0, 0, 0, .55);
12
- opacity: 0;
13
- transition: opacity 0.3s ease;
14
- pointer-events: none; // 初始状态不可点击
15
-
16
- &-active {
17
- opacity: 1;
18
- pointer-events: auto;
19
- }
20
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ $trionesOverlayCls: 'triones-antm-overlay';
4
+
5
+ .#{$trionesOverlayCls} {
6
+ position: fixed;
7
+ top: 0;
8
+ left: 0;
9
+ right: 0;
10
+ bottom: 0;
11
+ background-color: rgba(0, 0, 0, .55);
12
+ opacity: 0;
13
+ transition: opacity 0.3s ease;
14
+ pointer-events: none; // 初始状态不可点击
15
+
16
+ &-active {
17
+ opacity: 1;
18
+ pointer-events: auto;
19
+ }
20
+ }
@@ -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,44 +1,44 @@
1
- @use "../style/variable" as variable;
2
- $pickerCls: 'triones-antm-picker';
3
-
4
- .#{$pickerCls} {
5
- width: 100%;
6
- height: 300Px;
7
- overflow: hidden;
8
- position: relative;
9
- display: flex;
10
- flex-direction: column;
11
-
12
- &-header {
13
- display: flex;
14
- justify-content: space-between;
15
- align-items: center;
16
- border-bottom: 1Px solid #eee;
17
- padding: 4Px;
18
-
19
- &-button {
20
- padding: 8Px;
21
- font-size: 12Px;
22
- &-cancel{
23
- color: variable.$trionesColorTextSecondary;
24
- }
25
- &-ok{
26
- color: variable.$trionesColorPrimary;
27
- }
28
- }
29
-
30
- &-title {
31
- }
32
- }
33
-
34
- &-body {
35
- flex: 1 1;
36
- width: 100%;
37
- height: 100%;
38
- pointer-events: unset;
39
- }
40
- &-view{
41
- --height: 100%;
42
- }
43
-
44
- }
1
+ @use "../style/variable" as variable;
2
+ $pickerCls: 'triones-antm-picker';
3
+
4
+ .#{$pickerCls} {
5
+ width: 100%;
6
+ height: 300Px;
7
+ overflow: hidden;
8
+ position: relative;
9
+ display: flex;
10
+ flex-direction: column;
11
+
12
+ &-header {
13
+ display: flex;
14
+ justify-content: space-between;
15
+ align-items: center;
16
+ border-bottom: 1Px solid #eee;
17
+ padding: 4Px;
18
+
19
+ &-button {
20
+ padding: 8Px;
21
+ font-size: 12Px;
22
+ &-cancel{
23
+ color: variable.$trionesColorTextSecondary;
24
+ }
25
+ &-ok{
26
+ color: variable.$trionesColorPrimary;
27
+ }
28
+ }
29
+
30
+ &-title {
31
+ }
32
+ }
33
+
34
+ &-body {
35
+ flex: 1 1;
36
+ width: 100%;
37
+ height: 100%;
38
+ pointer-events: unset;
39
+ }
40
+ &-view{
41
+ --height: 100%;
42
+ }
43
+
44
+ }