@nutui/nutui-react 3.0.11 → 3.0.12

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 (134) hide show
  1. package/CHANGELOG.md +20 -7
  2. package/dist/cjs/packages/address/style/address.scss +114 -0
  3. package/dist/cjs/packages/address/style/style.css +103 -0
  4. package/dist/cjs/packages/address/style-jmapp/address.scss +114 -0
  5. package/dist/cjs/packages/address/style-jmapp/style.css +103 -0
  6. package/dist/cjs/packages/address/style-jrkf/address.scss +114 -0
  7. package/dist/cjs/packages/address/style-jrkf/style.css +103 -0
  8. package/dist/cjs/packages/configprovider/types.d.ts +1 -1
  9. package/dist/cjs/packages/elevator/style/css.js +0 -2
  10. package/dist/cjs/packages/elevator/style/elevator.scss +116 -95
  11. package/dist/cjs/packages/elevator/style/index.js +0 -2
  12. package/dist/cjs/packages/elevator/style/style.css +98 -83
  13. package/dist/cjs/packages/elevator/style-jmapp/css.js +0 -2
  14. package/dist/cjs/packages/elevator/style-jmapp/elevator.scss +116 -95
  15. package/dist/cjs/packages/elevator/style-jmapp/index.js +0 -2
  16. package/dist/cjs/packages/elevator/style-jmapp/style.css +98 -83
  17. package/dist/cjs/packages/elevator/style-jrkf/css.js +0 -2
  18. package/dist/cjs/packages/elevator/style-jrkf/elevator.scss +116 -95
  19. package/dist/cjs/packages/elevator/style-jrkf/index.js +0 -2
  20. package/dist/cjs/packages/elevator/style-jrkf/style.css +98 -83
  21. package/dist/cjs/packages/progress/progress.js +38 -17
  22. package/dist/cjs/packages/progress/style/progress.scss +5 -21
  23. package/dist/cjs/packages/progress/style/style.css +5 -19
  24. package/dist/cjs/packages/progress/style-jmapp/progress.scss +5 -21
  25. package/dist/cjs/packages/progress/style-jmapp/style.css +4 -18
  26. package/dist/cjs/packages/progress/style-jrkf/progress.scss +5 -21
  27. package/dist/cjs/packages/progress/style-jrkf/style.css +4 -18
  28. package/dist/cjs/packages/range/range.js +5 -11
  29. package/dist/cjs/packages/range/style/range.scss +6 -2
  30. package/dist/cjs/packages/range/style/style.css +3 -1
  31. package/dist/cjs/packages/range/style-jmapp/range.scss +6 -2
  32. package/dist/cjs/packages/range/style-jmapp/style.css +3 -1
  33. package/dist/cjs/packages/range/style-jrkf/range.scss +6 -2
  34. package/dist/cjs/packages/range/style-jrkf/style.css +3 -1
  35. package/dist/cjs/packages/range/utils.d.ts +3 -0
  36. package/dist/cjs/packages/range/utils.js +24 -0
  37. package/dist/cjs/packages/searchbar/searchbar.js +162 -87
  38. package/dist/cjs/packages/searchbar/style/searchbar.scss +99 -25
  39. package/dist/cjs/packages/searchbar/style/style.css +102 -38
  40. package/dist/cjs/packages/searchbar/style-jmapp/searchbar.scss +99 -25
  41. package/dist/cjs/packages/searchbar/style-jmapp/style.css +85 -21
  42. package/dist/cjs/packages/searchbar/style-jrkf/searchbar.scss +99 -25
  43. package/dist/cjs/packages/searchbar/style-jrkf/style.css +85 -21
  44. package/dist/cjs/packages/step/step.js +74 -33
  45. package/dist/cjs/packages/step/style/step.scss +104 -195
  46. package/dist/cjs/packages/step/style/style.css +85 -159
  47. package/dist/cjs/packages/step/style-jmapp/step.scss +104 -195
  48. package/dist/cjs/packages/step/style-jmapp/style.css +88 -162
  49. package/dist/cjs/packages/step/style-jrkf/step.scss +104 -195
  50. package/dist/cjs/packages/step/style-jrkf/style.css +88 -162
  51. package/dist/cjs/packages/steps/steps.js +23 -8
  52. package/dist/cjs/packages/steps/style/steps.scss +328 -4
  53. package/dist/cjs/packages/steps/style/style.css +219 -2
  54. package/dist/cjs/packages/steps/style-jmapp/steps.scss +328 -4
  55. package/dist/cjs/packages/steps/style-jmapp/style.css +219 -2
  56. package/dist/cjs/packages/steps/style-jrkf/steps.scss +328 -4
  57. package/dist/cjs/packages/steps/style-jrkf/style.css +219 -2
  58. package/dist/cjs/packages/uploader/uploader.js +20 -9
  59. package/dist/cjs/types/spec/progress/base.d.ts +6 -0
  60. package/dist/cjs/types/spec/progress/taro.d.ts +4 -0
  61. package/dist/cjs/types/spec/searchbar/base.d.ts +3 -0
  62. package/dist/cjs/types/spec/steps/base.d.ts +11 -2
  63. package/dist/es/packages/address/style/address.scss +114 -0
  64. package/dist/es/packages/address/style/style.css +103 -0
  65. package/dist/es/packages/address/style-jmapp/address.scss +114 -0
  66. package/dist/es/packages/address/style-jmapp/style.css +103 -0
  67. package/dist/es/packages/address/style-jrkf/address.scss +114 -0
  68. package/dist/es/packages/address/style-jrkf/style.css +103 -0
  69. package/dist/es/packages/configprovider/types.d.ts +1 -1
  70. package/dist/es/packages/elevator/style/css.js +0 -2
  71. package/dist/es/packages/elevator/style/elevator.scss +116 -95
  72. package/dist/es/packages/elevator/style/index.js +0 -2
  73. package/dist/es/packages/elevator/style/style.css +98 -83
  74. package/dist/es/packages/elevator/style-jmapp/css.js +0 -2
  75. package/dist/es/packages/elevator/style-jmapp/elevator.scss +116 -95
  76. package/dist/es/packages/elevator/style-jmapp/index.js +0 -2
  77. package/dist/es/packages/elevator/style-jmapp/style.css +98 -83
  78. package/dist/es/packages/elevator/style-jrkf/css.js +0 -2
  79. package/dist/es/packages/elevator/style-jrkf/elevator.scss +116 -95
  80. package/dist/es/packages/elevator/style-jrkf/index.js +0 -2
  81. package/dist/es/packages/elevator/style-jrkf/style.css +98 -83
  82. package/dist/es/packages/progress/progress.js +38 -17
  83. package/dist/es/packages/progress/style/progress.scss +5 -21
  84. package/dist/es/packages/progress/style/style.css +5 -19
  85. package/dist/es/packages/progress/style-jmapp/progress.scss +5 -21
  86. package/dist/es/packages/progress/style-jmapp/style.css +4 -18
  87. package/dist/es/packages/progress/style-jrkf/progress.scss +5 -21
  88. package/dist/es/packages/progress/style-jrkf/style.css +4 -18
  89. package/dist/es/packages/range/range.js +5 -11
  90. package/dist/es/packages/range/style/range.scss +6 -2
  91. package/dist/es/packages/range/style/style.css +3 -1
  92. package/dist/es/packages/range/style-jmapp/range.scss +6 -2
  93. package/dist/es/packages/range/style-jmapp/style.css +3 -1
  94. package/dist/es/packages/range/style-jrkf/range.scss +6 -2
  95. package/dist/es/packages/range/style-jrkf/style.css +3 -1
  96. package/dist/es/packages/range/utils.d.ts +3 -0
  97. package/dist/es/packages/range/utils.js +6 -0
  98. package/dist/es/packages/searchbar/searchbar.js +163 -89
  99. package/dist/es/packages/searchbar/style/searchbar.scss +99 -25
  100. package/dist/es/packages/searchbar/style/style.css +102 -38
  101. package/dist/es/packages/searchbar/style-jmapp/searchbar.scss +99 -25
  102. package/dist/es/packages/searchbar/style-jmapp/style.css +85 -21
  103. package/dist/es/packages/searchbar/style-jrkf/searchbar.scss +99 -25
  104. package/dist/es/packages/searchbar/style-jrkf/style.css +85 -21
  105. package/dist/es/packages/step/step.js +75 -34
  106. package/dist/es/packages/step/style/step.scss +104 -195
  107. package/dist/es/packages/step/style/style.css +85 -159
  108. package/dist/es/packages/step/style-jmapp/step.scss +104 -195
  109. package/dist/es/packages/step/style-jmapp/style.css +88 -162
  110. package/dist/es/packages/step/style-jrkf/step.scss +104 -195
  111. package/dist/es/packages/step/style-jrkf/style.css +88 -162
  112. package/dist/es/packages/steps/steps.js +23 -8
  113. package/dist/es/packages/steps/style/steps.scss +328 -4
  114. package/dist/es/packages/steps/style/style.css +219 -2
  115. package/dist/es/packages/steps/style-jmapp/steps.scss +328 -4
  116. package/dist/es/packages/steps/style-jmapp/style.css +219 -2
  117. package/dist/es/packages/steps/style-jrkf/steps.scss +328 -4
  118. package/dist/es/packages/steps/style-jrkf/style.css +219 -2
  119. package/dist/es/packages/uploader/uploader.js +20 -9
  120. package/dist/es/types/spec/progress/base.d.ts +24 -0
  121. package/dist/es/types/spec/progress/taro.d.ts +4 -0
  122. package/dist/es/types/spec/searchbar/base.d.ts +10 -1
  123. package/dist/es/types/spec/steps/base.d.ts +26 -5
  124. package/dist/nutui.react.umd.js +317 -167
  125. package/dist/style-jmapp.css +1 -1
  126. package/dist/style-jmapp.scss +44 -44
  127. package/dist/style-jrkf.css +1 -1
  128. package/dist/style-jrkf.scss +46 -46
  129. package/dist/style.css +1 -1
  130. package/dist/style.scss +37 -37
  131. package/dist/styles/variables-jmapp.scss +133 -79
  132. package/dist/styles/variables-jrkf.scss +134 -80
  133. package/dist/styles/variables.scss +148 -89
  134. package/package.json +1 -1
@@ -5,8 +5,225 @@
5
5
  .nut-steps {
6
6
  display: flex;
7
7
  }
8
-
8
+ .nut-steps-horizontal {
9
+ flex-flow: row;
10
+ }
11
+ .nut-steps-horizontal .nut-step-head {
12
+ background-color: var(--nutui-steps-background-color, #ffffff);
13
+ }
14
+ .nut-steps-horizontal .nut-step-head-icon .nut-icon {
15
+ height: 10px;
16
+ width: 10px;
17
+ }
18
+ .nut-steps-horizontal .nut-step-head-icon .nut-image {
19
+ width: 100%;
20
+ height: 100%;
21
+ background-color: var(--nutui-steps-background-color, #ffffff);
22
+ }
23
+ .nut-steps-horizontal .nut-step-head-icon .nut-image img {
24
+ vertical-align: top;
25
+ }
26
+ .nut-steps-horizontal .nut-step.nut-step-process .nut-step-title {
27
+ color: var(--nutui-steps-process-title-color, var(--nutui-color-primary, #ff6666));
28
+ }
29
+ .nut-steps-horizontal .nut-step.nut-step-process .nut-step-description {
30
+ color: var(--nutui-steps-process-description-color, var(--nutui-color-primary, #ff6666));
31
+ }
32
+ .nut-steps-horizontal .nut-step.nut-step-wait .nut-step-title {
33
+ color: var(--nutui-steps-wait-title-color, var(--nutui-color-title));
34
+ }
35
+ .nut-steps-horizontal .nut-step.nut-step-wait .nut-step-description {
36
+ color: var(--nutui-steps-wait-description-color, var(--nutui-color-text));
37
+ }
38
+ .nut-steps-horizontal-single .nut-step {
39
+ padding-right: var(--nutui-steps-horizontal-item-padding-right, 28px);
40
+ }
41
+ .nut-steps-horizontal-single .nut-step-last {
42
+ padding-right: 0 !important;
43
+ }
44
+ .nut-steps-horizontal-single .nut-step-line {
45
+ top: 0;
46
+ right: 0;
47
+ height: var(--nutui-steps-base-head-height, 14px);
48
+ width: var(--nutui-steps-horizontal-item-padding-right, 28px);
49
+ padding: var(--nutui-steps-horizontal-item-line-padding, 0 8px);
50
+ box-sizing: border-box;
51
+ }
52
+ .nut-steps-horizontal-single .nut-step-title, .nut-steps-horizontal-single .nut-step-description {
53
+ padding-left: 4px;
54
+ }
55
+ .nut-steps-horizontal-single .nut-step-special {
56
+ padding-right: var(--nutui-steps-horizontal-item-special-padding-right, 22px);
57
+ }
58
+ .nut-steps-horizontal-single .nut-step-special .nut-step-line {
59
+ width: 100%;
60
+ }
61
+ .nut-steps-horizontal-single .nut-step-special .nut-step-title {
62
+ padding-right: 8px;
63
+ width: fit-content;
64
+ }
65
+ .nut-steps-horizontal-single.nut-steps-horizontal-count-3 .nut-step-special {
66
+ padding-right: var(--nutui-steps-horizontal-item-special-3-padding-right, 9px);
67
+ }
68
+ .nut-steps-horizontal-double {
69
+ width: 100%;
70
+ justify-content: space-between;
71
+ }
72
+ .nut-steps-horizontal-double .nut-step {
73
+ flex-direction: column;
74
+ align-items: center;
75
+ flex: 1;
76
+ }
77
+ .nut-steps-horizontal-double .nut-step-line {
78
+ top: 0;
79
+ right: -50%;
80
+ height: var(--nutui-steps-base-head-height, 14px);
81
+ width: 100%;
82
+ }
83
+ .nut-steps-horizontal-double .nut-step-line-inner {
84
+ display: inline-flex;
85
+ height: var(--nutui-steps-base-line-height, 1px);
86
+ width: 100%;
87
+ background: var(--nutui-steps-base-line-background, var(--nutui-color-border));
88
+ }
89
+ .nut-steps-horizontal-double .nut-step-head {
90
+ justify-content: center;
91
+ margin-bottom: 6px;
92
+ }
93
+ .nut-steps-horizontal-double .nut-step-head-dot-wrap, .nut-steps-horizontal-double .nut-step-head-icon-wrap, .nut-steps-horizontal-double .nut-step-head-text-wrap {
94
+ background-color: var(--nutui-steps-background-color, #ffffff);
95
+ padding: var(--nutui-steps-horizontal-item-line-padding, 0 8px);
96
+ }
97
+ .nut-steps-horizontal-double .nut-step-head-icon {
98
+ height: var(--nutui-steps-base-head-icon-size-right, 20px);
99
+ width: var(--nutui-steps-base-head-icon-size-right, 20px);
100
+ }
101
+ .nut-steps-horizontal-double .nut-step-head-icon .nut-icon {
102
+ height: 12px;
103
+ width: 12px;
104
+ }
105
+ .nut-steps-horizontal-double .nut-step-main {
106
+ align-items: center;
107
+ margin-left: 0;
108
+ margin-top: 2px;
109
+ }
110
+ .nut-steps-horizontal-double.nut-steps-horizontal-icon .nut-step-head, .nut-steps-horizontal-double.nut-steps-horizontal-icon .nut-step-line {
111
+ height: var(--nutui-steps-base-head-icon-size-right, 20px);
112
+ }
113
+ .nut-steps-horizontal-double.nut-steps-horizontal-dot .nut-step-head, .nut-steps-horizontal-double.nut-steps-horizontal-dot .nut-step-line {
114
+ height: var(--nutui-steps-base-head-dot-size, 6px);
115
+ }
116
+ .nut-steps-horizontal-double.nut-steps-horizontal-text .nut-step-head, .nut-steps-horizontal-double.nut-steps-horizontal-text .nut-step-line {
117
+ height: var(--nutui-steps-base-head-text-size, 12px);
118
+ }
9
119
  .nut-steps-vertical {
120
+ /* #ifdef harmony*/
121
+ flex: 1;
122
+ min-width: 0;
123
+ /* #endif */
124
+ flex-direction: column;
125
+ }
126
+ .nut-steps-vertical .nut-step {
127
+ padding-bottom: var(--nutui-steps-vertical-item-padding-bottom, 13px);
128
+ }
129
+ .nut-steps-vertical .nut-step-last {
130
+ padding-bottom: 0 !important;
131
+ }
132
+ .nut-steps-vertical .nut-step-line {
133
+ height: calc(100% - 4px);
134
+ width: 1px;
135
+ bottom: 0;
136
+ }
137
+ .nut-steps-vertical .nut-step-line-inner {
10
138
  height: 100%;
11
- flex-flow: column;
139
+ }
140
+ .nut-steps-vertical .nut-step-head {
141
+ align-items: center;
142
+ justify-content: center;
143
+ height: 18px;
144
+ }
145
+ .nut-steps-vertical .nut-step-head-icon {
146
+ width: var(--nutui-steps-vertical-item-icon-size, 20px);
147
+ height: var(--nutui-steps-vertical-item-icon-size, 20px);
148
+ }
149
+ .nut-steps-vertical .nut-step-head-icon .nut-icon {
150
+ height: 12px;
151
+ width: 12px;
152
+ }
153
+ .nut-steps-vertical .nut-step-main {
154
+ flex: 1;
155
+ min-width: 0;
156
+ height: auto;
157
+ margin-left: 8px;
158
+ }
159
+ .nut-steps-vertical .nut-step-title {
160
+ display: flex;
161
+ align-items: center;
162
+ height: var(--nutui-steps-vertical-line-height, 18px);
163
+ font-size: var(--nutui-steps-vertical-title-font-size, var(--nutui-font-text-large));
164
+ overflow: auto;
165
+ font-weight: 500;
166
+ margin-bottom: var(--nutui-steps-vertical-title-margin-bottom, 4px);
167
+ }
168
+ .nut-steps-vertical .nut-step-description {
169
+ margin: var(--nutui-steps-vertical-description-margin, 0 0 1px);
170
+ height: auto;
171
+ line-height: var(--nutui-steps-vertical-line-height, 18px);
172
+ color: var(--nutui-color-title);
173
+ font-size: var(--nutui-steps-vertical-description-font-size, var(--nutui-font-text));
174
+ box-sizing: border-box;
175
+ }
176
+ .nut-steps-vertical .nut-step-head-dot-wrap, .nut-steps-vertical .nut-step-head-icon-wrap, .nut-steps-vertical .nut-step-head-text-wrap {
177
+ display: flex;
178
+ align-items: center;
179
+ justify-content: center;
180
+ width: 100%;
181
+ background-color: white;
182
+ position: relative;
183
+ z-index: 1;
184
+ }
185
+ .nut-steps-vertical .nut-step-head-dot-wrap {
186
+ height: calc(var(--nutui-steps-base-head-dot-size, 6px) + 8px);
187
+ }
188
+ .nut-steps-vertical .nut-step-head-icon-wrap {
189
+ height: calc(var(--nutui-steps-vertical-item-icon-size, 20px) + 8px);
190
+ }
191
+ .nut-steps-vertical .nut-step-head-text-wrap {
192
+ height: calc(var(--nutui-steps-base-head-text-size, 12px) + 8px);
193
+ }
194
+ .nut-steps-vertical-icon .nut-step-head {
195
+ width: calc(var(--nutui-steps-vertical-item-icon-size, 20px) + 1px);
196
+ min-width: calc(var(--nutui-steps-vertical-item-icon-size, 20px) + 1px);
197
+ }
198
+ .nut-steps-vertical-icon .nut-step-line {
199
+ left: calc(var(--nutui-steps-vertical-item-icon-size, 20px) / 2);
200
+ }
201
+ .nut-steps-vertical-dot .nut-step-head {
202
+ width: calc(var(--nutui-steps-base-head-dot-size, 6px) + 1px);
203
+ }
204
+ .nut-steps-vertical-dot .nut-step-line {
205
+ left: calc(var(--nutui-steps-base-head-dot-size, 6px) / 2);
206
+ }
207
+ .nut-steps-vertical-text .nut-step-head {
208
+ width: calc(var(--nutui-steps-base-head-text-size, 12px) + 1px);
209
+ min-width: calc(var(--nutui-steps-base-head-text-size, 12px) + 1px);
210
+ }
211
+ .nut-steps-vertical-text .nut-step-line {
212
+ left: calc(var(--nutui-steps-base-head-text-size, 12px) / 2);
213
+ }
214
+ .nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-icon,
215
+ .nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-text, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-icon,
216
+ .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-text {
217
+ background-color: var(--nutui-steps-enhanced-finish-head-background-color, var(--nutui-color-primary-light-pressed, #ffcccc));
218
+ }
219
+ .nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-icon .nut-icon,
220
+ .nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-text .nut-icon, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-icon .nut-icon,
221
+ .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-text .nut-icon {
222
+ color: var(--nutui-steps-enhanced-finish-head-icon-color, var(--nutui-color-primary-stop-1, #ff9999));
223
+ }
224
+ .nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-text, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-text {
225
+ color: var(--nutui-steps-enhanced-finish-head-text-color, var(--nutui-color-primary-stop-1, #ff9999));
226
+ }
227
+ .nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-dot, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-dot {
228
+ background-color: var(--nutui-steps-enhanced-finish-head-dot-background-color, var(--nutui-color-primary-disabled-special, #ffadbe));
12
229
  }
@@ -206,10 +206,21 @@ var InternalUploader = function InternalUploader(props, ref) {
206
206
  ];
207
207
  case 1:
208
208
  _files = _state.sent();
209
- if (!_files.length) $el.value = '';
210
- _state.label = 2;
209
+ if (!_files.length) {
210
+ $el.value = '';
211
+ return [
212
+ 2
213
+ ];
214
+ }
215
+ return [
216
+ 3,
217
+ 3
218
+ ];
211
219
  case 2:
212
- _files = filterFiles(filesArr);
220
+ _files = filesArr;
221
+ _state.label = 3;
222
+ case 3:
223
+ _files = filterFiles(_files);
213
224
  tasks = _files.map(function(file) {
214
225
  var _file_type;
215
226
  var info = {
@@ -236,22 +247,22 @@ var InternalUploader = function InternalUploader(props, ref) {
236
247
  });
237
248
  if (!!autoUpload) return [
238
249
  3,
239
- 3
250
+ 4
240
251
  ];
241
252
  setUploadQueue(tasks);
242
253
  return [
243
254
  3,
244
- 5
255
+ 6
245
256
  ];
246
- case 3:
257
+ case 4:
247
258
  return [
248
259
  4,
249
260
  uploadAction(tasks)
250
261
  ];
251
- case 4:
252
- _state.sent();
253
- _state.label = 5;
254
262
  case 5:
263
+ _state.sent();
264
+ _state.label = 6;
265
+ case 6:
255
266
  if (clearInput) {
256
267
  $el.value = '';
257
268
  }
@@ -8,4 +8,10 @@ export interface BaseProgress extends BaseProps {
8
8
  animated: boolean;
9
9
  lazy: boolean;
10
10
  delay: number;
11
+ borderRadius: string;
12
+ fontSize: string;
13
+ activeMode: string;
14
+ duration: number;
15
+ ariaLabel: string;
16
+ onActiveEnd: () => void;
11
17
  }
@@ -1,3 +1,7 @@
1
1
  import { BaseProgress } from './base';
2
2
  export interface TaroProgressProps extends BaseProgress {
3
+ showInfo: boolean;
4
+ activeColor: string;
5
+ backgroundColor: string;
6
+ active: boolean;
3
7
  }
@@ -3,6 +3,7 @@ import { UIRound } from '../../base/atoms';
3
3
  import { BaseProps } from '../../base/props';
4
4
  export interface BaseSearchBar extends BaseProps {
5
5
  value: string;
6
+ defaultValue: string;
6
7
  placeholder: string;
7
8
  shape: UIRound;
8
9
  disabled: boolean;
@@ -15,10 +16,12 @@ export interface BaseSearchBar extends BaseProps {
15
16
  right: ReactNode;
16
17
  leftIn: ReactNode;
17
18
  rightIn: ReactNode;
19
+ tag: boolean;
18
20
  onSearch: (val: string) => void;
19
21
  onChange: (value: string, e: any) => void;
20
22
  onFocus: (value: string, e: any) => void;
21
23
  onBlur: (value: string, e: any) => void;
22
24
  onClear: (e: any) => void;
23
25
  onInputClick: (e: any) => void;
26
+ onItemClick: (value: string, e: any) => void;
24
27
  }
@@ -1,14 +1,23 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { BaseProps } from '../../base/props';
3
+ export type StepStatus = 'wait' | 'process' | 'finish';
4
+ export type StepType = 'text' | 'dot' | 'icon';
5
+ export type StepLayout = 'single' | 'double';
6
+ export type StepDirection = 'horizontal' | 'vertical';
7
+ export type StepsStatus = 'default' | 'business' | 'dynamic' | 'enhanced';
3
8
  export interface BaseStep extends BaseProps {
4
9
  title: ReactNode;
5
10
  description: ReactNode;
6
11
  value: number;
7
12
  icon: ReactNode;
13
+ type: StepType;
8
14
  }
9
15
  export interface BaseSteps extends BaseProps {
16
+ status: StepsStatus;
17
+ direction: StepDirection;
10
18
  value: number;
11
- direction: string;
12
- dot: boolean;
19
+ type: StepType;
20
+ layout: StepLayout;
21
+ icon: ReactNode;
13
22
  onStepClick: (index: number) => void;
14
23
  }
@@ -44,6 +44,120 @@
44
44
  }
45
45
  }
46
46
 
47
+ .nut-address {
48
+ &-title {
49
+ font-size: 14px;
50
+ font-weight: 500;
51
+ padding: 16px 16px 12px 16px;
52
+ }
53
+ &-hotlist {
54
+ padding: 0 16px;
55
+ display: flex;
56
+ flex-wrap: wrap;
57
+ align-items: flex-start;
58
+ &-item {
59
+ display: flex;
60
+ justify-content: center;
61
+ align-items: center;
62
+ width: 63px;
63
+ height: 28px;
64
+ font-size: 12px;
65
+ border-radius: 4px;
66
+ margin-bottom: 7px;
67
+ /* #ifdef harmony*/
68
+ margin-right: 6px;
69
+ /* #endif */
70
+ /* #ifndef harmony*/
71
+ margin-right: 7px;
72
+ /* #endif */
73
+ background-color: $color-background-sunken;
74
+ color: $color-title;
75
+ &:nth-child(5n) {
76
+ margin-right: 0;
77
+ }
78
+ }
79
+
80
+ &.hotlist-more {
81
+ .nut-address-hotlist-item {
82
+ width: auto;
83
+ padding: 0 16px;
84
+ margin-right: 7px;
85
+ }
86
+ }
87
+ }
88
+
89
+ &-selected {
90
+ width: 100%;
91
+ height: 60px;
92
+ padding: 0 16px;
93
+ display: flex;
94
+ align-items: center;
95
+ border-bottom: 1px solid $color-border;
96
+ &-item {
97
+ font-size: 12px;
98
+ display: inline-block;
99
+ height: 28px;
100
+ line-height: 28px;
101
+ padding: 0 12px;
102
+ border-radius: 4px;
103
+ background-color: $color-background-sunken;
104
+
105
+ &.active {
106
+ border: 1px solid $color-primary;
107
+ background-color: $color-primary-light-pressed;
108
+ color: $color-primary;
109
+ }
110
+ }
111
+ &-border {
112
+ margin: 0 2px;
113
+ color: $color-text-disabled;
114
+ }
115
+ }
116
+
117
+ &-elevator {
118
+ margin-top: 0;
119
+ .nut-elevator-list {
120
+ &-item {
121
+ position: relative;
122
+ padding-left: 20px;
123
+ }
124
+ &-item-code {
125
+ display: inline;
126
+ position: absolute;
127
+ left: 0;
128
+ top: 0;
129
+ height: 30px;
130
+ line-height: 30px;
131
+ border-bottom: 0;
132
+ color: $color-text-help;
133
+ font-weight: 500;
134
+ }
135
+ }
136
+ .nut-elevator-bars {
137
+ top: 40%;
138
+ padding: 0;
139
+ background: none;
140
+
141
+ &-inner-item {
142
+ display: flex;
143
+ justify-content: center;
144
+ align-items: center;
145
+ width: 16px;
146
+ height: 16px;
147
+ font-size: 10px;
148
+ border-radius: 16px;
149
+ margin-bottom: 2px;
150
+ color: $color-text-help;
151
+ &-active {
152
+ background-color: $color-primary;
153
+ color: $color-background-overlay;
154
+ font-weight: 400;
155
+ }
156
+ }
157
+ }
158
+ }
159
+ }
160
+
47
161
  [dir='rtl'] .nut-address,
48
162
  .nut-rtl .nut-address {
49
163
  &-exist {
@@ -41,6 +41,109 @@
41
41
  color: #ffffff;
42
42
  }
43
43
 
44
+ .nut-address-title {
45
+ font-size: 14px;
46
+ font-weight: 500;
47
+ padding: 16px 16px 12px 16px;
48
+ }
49
+ .nut-address-hotlist {
50
+ padding: 0 16px;
51
+ display: flex;
52
+ flex-wrap: wrap;
53
+ align-items: flex-start;
54
+ }
55
+ .nut-address-hotlist-item {
56
+ display: flex;
57
+ justify-content: center;
58
+ align-items: center;
59
+ width: 63px;
60
+ height: 28px;
61
+ font-size: 12px;
62
+ border-radius: 4px;
63
+ margin-bottom: 7px;
64
+ /* #ifdef harmony*/
65
+ margin-right: 6px;
66
+ /* #endif */
67
+ /* #ifndef harmony*/
68
+ margin-right: 7px;
69
+ /* #endif */
70
+ background-color: var(--nutui-color-background-sunken, #f7f8fc);
71
+ color: var(--nutui-color-title, #1a1a1a);
72
+ }
73
+ .nut-address-hotlist-item:nth-child(5n) {
74
+ margin-right: 0;
75
+ }
76
+ .nut-address-hotlist.hotlist-more .nut-address-hotlist-item {
77
+ width: auto;
78
+ padding: 0 16px;
79
+ margin-right: 7px;
80
+ }
81
+ .nut-address-selected {
82
+ width: 100%;
83
+ height: 60px;
84
+ padding: 0 16px;
85
+ display: flex;
86
+ align-items: center;
87
+ border-bottom: 1px solid var(--nutui-color-border, rgba(0, 0, 0, 0.06));
88
+ }
89
+ .nut-address-selected-item {
90
+ font-size: 12px;
91
+ display: inline-block;
92
+ height: 28px;
93
+ line-height: 28px;
94
+ padding: 0 12px;
95
+ border-radius: 4px;
96
+ background-color: var(--nutui-color-background-sunken, #f7f8fc);
97
+ }
98
+ .nut-address-selected-item.active {
99
+ border: 1px solid var(--nutui-color-primary, #ff0f23);
100
+ background-color: var(--nutui-color-primary-light-pressed, #ffebf1);
101
+ color: var(--nutui-color-primary, #ff0f23);
102
+ }
103
+ .nut-address-selected-border {
104
+ margin: 0 2px;
105
+ color: var(--nutui-color-text-disabled, #c2c4cc);
106
+ }
107
+ .nut-address-elevator {
108
+ margin-top: 0;
109
+ }
110
+ .nut-address-elevator .nut-elevator-list-item {
111
+ position: relative;
112
+ padding-left: 20px;
113
+ }
114
+ .nut-address-elevator .nut-elevator-list-item-code {
115
+ display: inline;
116
+ position: absolute;
117
+ left: 0;
118
+ top: 0;
119
+ height: 30px;
120
+ line-height: 30px;
121
+ border-bottom: 0;
122
+ color: var(--nutui-color-text-help, #888b94);
123
+ font-weight: 500;
124
+ }
125
+ .nut-address-elevator .nut-elevator-bars {
126
+ top: 40%;
127
+ padding: 0;
128
+ background: none;
129
+ }
130
+ .nut-address-elevator .nut-elevator-bars-inner-item {
131
+ display: flex;
132
+ justify-content: center;
133
+ align-items: center;
134
+ width: 16px;
135
+ height: 16px;
136
+ font-size: 10px;
137
+ border-radius: 16px;
138
+ margin-bottom: 2px;
139
+ color: var(--nutui-color-text-help, #888b94);
140
+ }
141
+ .nut-address-elevator .nut-elevator-bars-inner-item-active {
142
+ background-color: var(--nutui-color-primary, #ff0f23);
143
+ color: var(--nutui-color-background-overlay, #ffffff);
144
+ font-weight: 400;
145
+ }
146
+
44
147
  [dir=rtl] .nut-address-exist-item-info,
45
148
  .nut-rtl .nut-address-exist-item-info {
46
149
  margin-left: 0;
@@ -44,6 +44,120 @@
44
44
  }
45
45
  }
46
46
 
47
+ .nut-address {
48
+ &-title {
49
+ font-size: 14px;
50
+ font-weight: 500;
51
+ padding: 16px 16px 12px 16px;
52
+ }
53
+ &-hotlist {
54
+ padding: 0 16px;
55
+ display: flex;
56
+ flex-wrap: wrap;
57
+ align-items: flex-start;
58
+ &-item {
59
+ display: flex;
60
+ justify-content: center;
61
+ align-items: center;
62
+ width: 63px;
63
+ height: 28px;
64
+ font-size: 12px;
65
+ border-radius: 4px;
66
+ margin-bottom: 7px;
67
+ /* #ifdef harmony*/
68
+ margin-right: 6px;
69
+ /* #endif */
70
+ /* #ifndef harmony*/
71
+ margin-right: 7px;
72
+ /* #endif */
73
+ background-color: $color-background-sunken;
74
+ color: $color-title;
75
+ &:nth-child(5n) {
76
+ margin-right: 0;
77
+ }
78
+ }
79
+
80
+ &.hotlist-more {
81
+ .nut-address-hotlist-item {
82
+ width: auto;
83
+ padding: 0 16px;
84
+ margin-right: 7px;
85
+ }
86
+ }
87
+ }
88
+
89
+ &-selected {
90
+ width: 100%;
91
+ height: 60px;
92
+ padding: 0 16px;
93
+ display: flex;
94
+ align-items: center;
95
+ border-bottom: 1px solid $color-border;
96
+ &-item {
97
+ font-size: 12px;
98
+ display: inline-block;
99
+ height: 28px;
100
+ line-height: 28px;
101
+ padding: 0 12px;
102
+ border-radius: 4px;
103
+ background-color: $color-background-sunken;
104
+
105
+ &.active {
106
+ border: 1px solid $color-primary;
107
+ background-color: $color-primary-light-pressed;
108
+ color: $color-primary;
109
+ }
110
+ }
111
+ &-border {
112
+ margin: 0 2px;
113
+ color: $color-text-disabled;
114
+ }
115
+ }
116
+
117
+ &-elevator {
118
+ margin-top: 0;
119
+ .nut-elevator-list {
120
+ &-item {
121
+ position: relative;
122
+ padding-left: 20px;
123
+ }
124
+ &-item-code {
125
+ display: inline;
126
+ position: absolute;
127
+ left: 0;
128
+ top: 0;
129
+ height: 30px;
130
+ line-height: 30px;
131
+ border-bottom: 0;
132
+ color: $color-text-help;
133
+ font-weight: 500;
134
+ }
135
+ }
136
+ .nut-elevator-bars {
137
+ top: 40%;
138
+ padding: 0;
139
+ background: none;
140
+
141
+ &-inner-item {
142
+ display: flex;
143
+ justify-content: center;
144
+ align-items: center;
145
+ width: 16px;
146
+ height: 16px;
147
+ font-size: 10px;
148
+ border-radius: 16px;
149
+ margin-bottom: 2px;
150
+ color: $color-text-help;
151
+ &-active {
152
+ background-color: $color-primary;
153
+ color: $color-background-overlay;
154
+ font-weight: 400;
155
+ }
156
+ }
157
+ }
158
+ }
159
+ }
160
+
47
161
  [dir='rtl'] .nut-address,
48
162
  .nut-rtl .nut-address {
49
163
  &-exist {