@trionesdev/antd-mobile-react 0.0.2-beta.19 → 0.0.2-beta.20

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 (73) 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/FetchPicker.d.ts +113 -0
  27. package/dist/FetchPicker/FetchPicker.js +319 -0
  28. package/dist/FetchPicker/index.d.ts +4 -0
  29. package/dist/FetchPicker/index.js +3 -0
  30. package/dist/FetchPicker/styles.scss +118 -0
  31. package/dist/FloatButton/style.scss +123 -123
  32. package/dist/Footer/demo/base.js +2 -2
  33. package/dist/Form/style.scss +106 -106
  34. package/dist/Grid/demo/base.js +2 -2
  35. package/dist/Grid/demo/base.scss +7 -7
  36. package/dist/Icon/demo/base.js +2 -2
  37. package/dist/Image/demo/base.js +2 -2
  38. package/dist/Image/demo/base.scss +4 -4
  39. package/dist/Image/style.scss +30 -30
  40. package/dist/ImagesPreview/style.scss +34 -34
  41. package/dist/ImagesWall/style.scss +70 -70
  42. package/dist/Input/demo/base.js +2 -2
  43. package/dist/Input/index.scss +240 -240
  44. package/dist/NavBar/demo/base.scss +5 -5
  45. package/dist/NoticeBar/demo/base.js +2 -2
  46. package/dist/Overlay/style.scss +20 -20
  47. package/dist/PageIndicator/demo/base.js +2 -2
  48. package/dist/Picker/style.scss +44 -44
  49. package/dist/PickerView/style.scss +72 -72
  50. package/dist/Popup/demo/base.js +2 -2
  51. package/dist/Popup/style.scss +129 -129
  52. package/dist/Radio/demo/base.scss +4 -4
  53. package/dist/Result/demo/base.js +2 -2
  54. package/dist/SafeArea/demo/base.scss +18 -18
  55. package/dist/ScrollView/style.scss +19 -19
  56. package/dist/SideBar/side-bar.js +6 -6
  57. package/dist/SideBar/style.scss +85 -85
  58. package/dist/Space/demo/base.js +2 -2
  59. package/dist/Swiper/style.scss +54 -54
  60. package/dist/Switch/demo/base.js +2 -2
  61. package/dist/TabBar/demo/base.js +2 -2
  62. package/dist/Tag/demo/base.js +2 -2
  63. package/dist/Tag/demo/style.scss +8 -8
  64. package/dist/Toast/style.scss +63 -63
  65. package/dist/VerificationCodeInput/style.scss +20 -20
  66. package/dist/WaterMark/demo/demo1.js +2 -2
  67. package/dist/WaterMark/demo/demo1.scss +6 -6
  68. package/dist/WaterMark/demo/demo2.js +2 -2
  69. package/dist/style/variable.scss +1 -1
  70. package/dist/utils/type.js +36 -36
  71. package/dist/utils/with-default-props.js +4 -4
  72. package/package.json +4 -4
  73. package/readme.md +43 -43
@@ -1,70 +1,70 @@
1
- @use "../style/variable" as variable;
2
-
3
- $imagesWallCls: 'triones-antm-images-wall';
4
-
5
- .#{$imagesWallCls} {
6
- display: grid;
7
- grid-gap: 4PX;
8
- width: 100%;
9
-
10
- &-item {
11
- aspect-ratio: 1;
12
- border-radius: variable.$trionesBorderRadius;
13
- overflow: hidden;
14
- position: relative;
15
-
16
- &-inner {
17
- width: 100%;
18
- height: 100%;
19
- }
20
-
21
- &-close {
22
- position: absolute;
23
- top: 0;
24
- right: 0;
25
- background-color: rgb(0 0 0 / 63%);
26
- width: 20Px;
27
- height: 20Px;
28
- border-bottom-left-radius: variable.$trionesBorderRadius;
29
- display: flex;
30
- justify-content: center;
31
- align-items: center;
32
-
33
- .triones-antm-icon {
34
- color: white;
35
- font-size: 12Px;
36
- }
37
- }
38
-
39
- &-input {
40
- position: absolute;
41
- width: 100%;
42
- height: 100%;
43
- top: 0;
44
- left: 0;
45
- margin: 0;
46
- padding: 0;
47
- z-index: 1;
48
- opacity: 0;
49
- }
50
-
51
- &-image {
52
- width: 100%;
53
- height: 100%;
54
- object-fit: cover;
55
- }
56
- }
57
-
58
- &-upload {
59
- display: flex;
60
- justify-content: center;
61
- align-items: center;
62
- background-color: variable.$trionesColorBgTextActive;
63
- }
64
-
65
- &-action-sheet {
66
-
67
- }
68
- }
69
-
70
-
1
+ @use "../style/variable" as variable;
2
+
3
+ $imagesWallCls: 'triones-antm-images-wall';
4
+
5
+ .#{$imagesWallCls} {
6
+ display: grid;
7
+ grid-gap: 4PX;
8
+ width: 100%;
9
+
10
+ &-item {
11
+ aspect-ratio: 1;
12
+ border-radius: variable.$trionesBorderRadius;
13
+ overflow: hidden;
14
+ position: relative;
15
+
16
+ &-inner {
17
+ width: 100%;
18
+ height: 100%;
19
+ }
20
+
21
+ &-close {
22
+ position: absolute;
23
+ top: 0;
24
+ right: 0;
25
+ background-color: rgb(0 0 0 / 63%);
26
+ width: 20Px;
27
+ height: 20Px;
28
+ border-bottom-left-radius: variable.$trionesBorderRadius;
29
+ display: flex;
30
+ justify-content: center;
31
+ align-items: center;
32
+
33
+ .triones-antm-icon {
34
+ color: white;
35
+ font-size: 12Px;
36
+ }
37
+ }
38
+
39
+ &-input {
40
+ position: absolute;
41
+ width: 100%;
42
+ height: 100%;
43
+ top: 0;
44
+ left: 0;
45
+ margin: 0;
46
+ padding: 0;
47
+ z-index: 1;
48
+ opacity: 0;
49
+ }
50
+
51
+ &-image {
52
+ width: 100%;
53
+ height: 100%;
54
+ object-fit: cover;
55
+ }
56
+ }
57
+
58
+ &-upload {
59
+ display: flex;
60
+ justify-content: center;
61
+ align-items: center;
62
+ background-color: variable.$trionesColorBgTextActive;
63
+ }
64
+
65
+ &-action-sheet {
66
+
67
+ }
68
+ }
69
+
70
+
@@ -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,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
+ }