@nutui/nutui-react-taro 3.0.11-patch.0 → 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 (108) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/packages/configprovider/types.d.ts +1 -1
  3. package/dist/cjs/packages/progress/progress.js +69 -33
  4. package/dist/cjs/packages/progress/style/progress.scss +5 -21
  5. package/dist/cjs/packages/progress/style/style.css +5 -19
  6. package/dist/cjs/packages/progress/style/style.harmony.css +5 -19
  7. package/dist/cjs/packages/progress/style-jmapp/progress.scss +5 -21
  8. package/dist/cjs/packages/progress/style-jmapp/style.css +4 -18
  9. package/dist/cjs/packages/progress/style-jrkf/progress.scss +5 -21
  10. package/dist/cjs/packages/progress/style-jrkf/style.css +4 -18
  11. package/dist/cjs/packages/range/range.js +163 -175
  12. package/dist/cjs/packages/range/style/range.scss +6 -2
  13. package/dist/cjs/packages/range/style/style.css +3 -1
  14. package/dist/cjs/packages/range/style/style.harmony.css +3 -1
  15. package/dist/cjs/packages/range/style-jmapp/range.scss +6 -2
  16. package/dist/cjs/packages/range/style-jmapp/style.css +3 -1
  17. package/dist/cjs/packages/range/style-jrkf/range.scss +6 -2
  18. package/dist/cjs/packages/range/style-jrkf/style.css +3 -1
  19. package/dist/cjs/packages/range/utils.d.ts +3 -0
  20. package/dist/cjs/packages/searchbar/searchbar.js +181 -77
  21. package/dist/cjs/packages/searchbar/style/searchbar.scss +99 -25
  22. package/dist/cjs/packages/searchbar/style/style.css +102 -38
  23. package/dist/cjs/packages/searchbar/style/style.harmony.css +127 -68
  24. package/dist/cjs/packages/searchbar/style-jmapp/searchbar.scss +99 -25
  25. package/dist/cjs/packages/searchbar/style-jmapp/style.css +85 -21
  26. package/dist/cjs/packages/searchbar/style-jrkf/searchbar.scss +99 -25
  27. package/dist/cjs/packages/searchbar/style-jrkf/style.css +85 -21
  28. package/dist/cjs/packages/step/step.d.ts +2 -2
  29. package/dist/cjs/packages/step/step.js +80 -45
  30. package/dist/cjs/packages/step/style/step.scss +104 -195
  31. package/dist/cjs/packages/step/style/style.css +85 -159
  32. package/dist/cjs/packages/step/style/style.harmony.css +103 -159
  33. package/dist/cjs/packages/step/style-jmapp/step.scss +104 -195
  34. package/dist/cjs/packages/step/style-jmapp/style.css +88 -162
  35. package/dist/cjs/packages/step/style-jrkf/step.scss +104 -195
  36. package/dist/cjs/packages/step/style-jrkf/style.css +88 -162
  37. package/dist/cjs/packages/steps/steps.js +23 -8
  38. package/dist/cjs/packages/steps/style/steps.scss +328 -4
  39. package/dist/cjs/packages/steps/style/style.css +219 -2
  40. package/dist/cjs/packages/steps/style/style.harmony.css +256 -2
  41. package/dist/cjs/packages/steps/style-jmapp/steps.scss +328 -4
  42. package/dist/cjs/packages/steps/style-jmapp/style.css +219 -2
  43. package/dist/cjs/packages/steps/style-jrkf/steps.scss +328 -4
  44. package/dist/cjs/packages/steps/style-jrkf/style.css +219 -2
  45. package/dist/cjs/packages/uploader/uploader.js +21 -27
  46. package/dist/cjs/types/spec/progress/base.d.ts +6 -0
  47. package/dist/cjs/types/spec/progress/taro.d.ts +4 -0
  48. package/dist/cjs/types/spec/searchbar/base.d.ts +3 -0
  49. package/dist/cjs/types/spec/steps/base.d.ts +11 -2
  50. package/dist/es/packages/configprovider/types.d.ts +1 -1
  51. package/dist/es/packages/progress/progress.js +70 -34
  52. package/dist/es/packages/progress/style/progress.scss +5 -21
  53. package/dist/es/packages/progress/style/style.css +5 -19
  54. package/dist/es/packages/progress/style/style.harmony.css +5 -19
  55. package/dist/es/packages/progress/style-jmapp/progress.scss +5 -21
  56. package/dist/es/packages/progress/style-jmapp/style.css +4 -18
  57. package/dist/es/packages/progress/style-jrkf/progress.scss +5 -21
  58. package/dist/es/packages/progress/style-jrkf/style.css +4 -18
  59. package/dist/es/packages/range/range.js +163 -175
  60. package/dist/es/packages/range/style/range.scss +6 -2
  61. package/dist/es/packages/range/style/style.css +3 -1
  62. package/dist/es/packages/range/style/style.harmony.css +3 -1
  63. package/dist/es/packages/range/style-jmapp/range.scss +6 -2
  64. package/dist/es/packages/range/style-jmapp/style.css +3 -1
  65. package/dist/es/packages/range/style-jrkf/range.scss +6 -2
  66. package/dist/es/packages/range/style-jrkf/style.css +3 -1
  67. package/dist/es/packages/range/utils.d.ts +3 -0
  68. package/dist/es/packages/searchbar/searchbar.js +183 -79
  69. package/dist/es/packages/searchbar/style/searchbar.scss +99 -25
  70. package/dist/es/packages/searchbar/style/style.css +102 -38
  71. package/dist/es/packages/searchbar/style/style.harmony.css +127 -68
  72. package/dist/es/packages/searchbar/style-jmapp/searchbar.scss +99 -25
  73. package/dist/es/packages/searchbar/style-jmapp/style.css +85 -21
  74. package/dist/es/packages/searchbar/style-jrkf/searchbar.scss +99 -25
  75. package/dist/es/packages/searchbar/style-jrkf/style.css +85 -21
  76. package/dist/es/packages/step/step.d.ts +2 -2
  77. package/dist/es/packages/step/step.js +81 -46
  78. package/dist/es/packages/step/style/step.scss +104 -195
  79. package/dist/es/packages/step/style/style.css +85 -159
  80. package/dist/es/packages/step/style/style.harmony.css +103 -159
  81. package/dist/es/packages/step/style-jmapp/step.scss +104 -195
  82. package/dist/es/packages/step/style-jmapp/style.css +88 -162
  83. package/dist/es/packages/step/style-jrkf/step.scss +104 -195
  84. package/dist/es/packages/step/style-jrkf/style.css +88 -162
  85. package/dist/es/packages/steps/steps.js +23 -8
  86. package/dist/es/packages/steps/style/steps.scss +328 -4
  87. package/dist/es/packages/steps/style/style.css +219 -2
  88. package/dist/es/packages/steps/style/style.harmony.css +256 -2
  89. package/dist/es/packages/steps/style-jmapp/steps.scss +328 -4
  90. package/dist/es/packages/steps/style-jmapp/style.css +219 -2
  91. package/dist/es/packages/steps/style-jrkf/steps.scss +328 -4
  92. package/dist/es/packages/steps/style-jrkf/style.css +219 -2
  93. package/dist/es/packages/uploader/uploader.js +21 -27
  94. package/dist/es/types/spec/progress/base.d.ts +24 -0
  95. package/dist/es/types/spec/progress/taro.d.ts +4 -0
  96. package/dist/es/types/spec/searchbar/base.d.ts +10 -1
  97. package/dist/es/types/spec/steps/base.d.ts +26 -5
  98. package/dist/nutui.react.umd.js +530 -391
  99. package/dist/style-jmapp.css +1 -1
  100. package/dist/style-jmapp.scss +42 -42
  101. package/dist/style-jrkf.css +1 -1
  102. package/dist/style-jrkf.scss +41 -41
  103. package/dist/style.css +1 -1
  104. package/dist/style.scss +37 -37
  105. package/dist/styles/variables-jmapp.scss +133 -79
  106. package/dist/styles/variables-jrkf.scss +134 -80
  107. package/dist/styles/variables.scss +148 -89
  108. package/package.json +1 -1
@@ -9,28 +9,114 @@
9
9
  box-sizing: border-box;
10
10
  justify-content: center;
11
11
 
12
+ .nut-icon {
13
+ width: $searchbar-icon-size;
14
+ height: $searchbar-icon-size;
15
+ font-size: $searchbar-icon-size;
16
+ }
17
+
12
18
  &-content {
19
+ position: relative;
13
20
  flex: 1;
14
21
  display: flex;
15
22
  align-items: center;
16
23
  justify-content: center;
17
- padding: $searchbar-content-padding;
24
+ padding: 0 $searchbar-gap;
18
25
  height: $searchbar-input-height;
19
26
  background: $searchbar-content-background;
20
27
  border-radius: $searchbar-content-border-radius;
28
+ border: 1px solid $color-primary;
21
29
  }
22
30
 
23
31
  &-icon {
24
32
  display: flex;
25
33
  justify-content: center;
26
34
  align-items: center;
35
+ color: $color-primary;
36
+ }
37
+
38
+ &-leftin {
39
+ margin-right: $searchbar-inner-gap;
27
40
  }
28
41
 
29
- &-clear,
30
42
  &-rightin {
31
- width: 16px;
32
- height: 16px;
33
- color: var(--nutui-black-5);
43
+ font-size: 15px;
44
+ font-weight: 500;
45
+ color: $color-primary;
46
+
47
+ &.nut-searchbar-icon {
48
+ color: var(--nutui-black-5);
49
+ }
50
+ }
51
+
52
+ &-input-box,
53
+ &-input {
54
+ display: flex;
55
+ align-items: center;
56
+ flex: 1;
57
+ }
58
+
59
+ &-input {
60
+ border: 0;
61
+ outline: 0;
62
+ box-sizing: border-box;
63
+ width: 100%;
64
+ padding: 0;
65
+ margin: 0;
66
+ font-size: $searchbar-font-size;
67
+ color: $searchbar-input-text-color;
68
+ caret-color: $searchbar-input-curror-color;
69
+ background: transparent;
70
+ text-align: $searchbar-input-text-align;
71
+ }
72
+
73
+ &-clear {
74
+ &.nut-searchbar-icon {
75
+ position: relative;
76
+ .nut-icon {
77
+ width: 12px;
78
+ height: 12px;
79
+ color: var(--nutui-black-5);
80
+ margin-right: $searchbar-inner-gap;
81
+ }
82
+ &::after {
83
+ content: '';
84
+ position: absolute;
85
+ width: 100%;
86
+ height: 200%;
87
+ left: -20%;
88
+ }
89
+ }
90
+ }
91
+
92
+ &-values {
93
+ position: absolute;
94
+ display: flex;
95
+ flex-direction: row;
96
+ z-index: 2;
97
+ background-color: #fff;
98
+ top: 9px;
99
+ left: 6px;
100
+ font-size: 12px;
101
+ line-height: 12px;
102
+
103
+ .nut-searchbar-value {
104
+ display: flex;
105
+ flex-direction: row;
106
+ align-items: center;
107
+ padding: 4px 8px;
108
+ background-color: #f7f8fc;
109
+ border-radius: 4px;
110
+ margin-right: 2px;
111
+ }
112
+
113
+ .nut-icon {
114
+ width: 6px;
115
+ height: 6px;
116
+ font-size: 6px;
117
+ color: #c2c4cc;
118
+ margin-left: 4px;
119
+ }
34
120
  }
35
121
 
36
122
  &-left,
@@ -93,26 +179,6 @@
93
179
  }
94
180
  }
95
181
 
96
- &-input-box,
97
- &-input {
98
- display: flex;
99
- align-items: center;
100
- flex: 1;
101
- }
102
-
103
- &-input {
104
- border: 0;
105
- outline: 0;
106
- box-sizing: border-box;
107
- width: 100%;
108
- padding: $searchbar-input-padding;
109
- font-size: $searchbar-font-size;
110
- color: $searchbar-input-text-color;
111
- caret-color: $searchbar-input-curror-color;
112
- background: transparent;
113
- text-align: $searchbar-input-text-align;
114
- }
115
-
116
182
  &-round {
117
183
  border-radius: $searchbar-content-round-border-radius;
118
184
  }
@@ -120,6 +186,14 @@
120
186
  &-disabled {
121
187
  cursor: not-allowed;
122
188
  }
189
+
190
+ &-focus {
191
+ padding: 5px $searchbar-gap;
192
+
193
+ .nut-searchbar-content {
194
+ border: 0.5px solid #ff5c67;
195
+ }
196
+ }
123
197
  }
124
198
 
125
199
  [dir='rtl'] .nut-searchbar,
@@ -13,26 +13,101 @@
13
13
  box-sizing: border-box;
14
14
  justify-content: center;
15
15
  }
16
+ .nut-searchbar .nut-icon {
17
+ width: var(--nutui-searchbar-icon-size, 20px);
18
+ height: var(--nutui-searchbar-icon-size, 20px);
19
+ font-size: var(--nutui-searchbar-icon-size, 20px);
20
+ }
16
21
  .nut-searchbar-content {
22
+ position: relative;
17
23
  flex: 1;
18
24
  display: flex;
19
25
  align-items: center;
20
26
  justify-content: center;
21
- padding: var(--nutui-searchbar-content-padding, 0 12px);
27
+ padding: 0 var(--nutui-searchbar-gap, 16px);
22
28
  height: var(--nutui-searchbar-input-height, 36px);
23
29
  background: var(--nutui-searchbar-content-background, var(--nutui-color-default-light));
24
30
  border-radius: var(--nutui-searchbar-content-border-radius, var(--nutui-radius-xs));
31
+ border: 1px solid var(--nutui-color-primary);
25
32
  }
26
33
  .nut-searchbar-icon {
27
34
  display: flex;
28
35
  justify-content: center;
29
36
  align-items: center;
37
+ color: var(--nutui-color-primary);
38
+ }
39
+ .nut-searchbar-leftin {
40
+ margin-right: var(--nutui-searchbar-inner-gap, 8px);
41
+ }
42
+ .nut-searchbar-rightin {
43
+ font-size: 15px;
44
+ font-weight: 500;
45
+ color: var(--nutui-color-primary);
30
46
  }
31
- .nut-searchbar-clear, .nut-searchbar-rightin {
32
- width: 16px;
33
- height: 16px;
47
+ .nut-searchbar-rightin.nut-searchbar-icon {
34
48
  color: var(--nutui-black-5);
35
49
  }
50
+ .nut-searchbar-input-box, .nut-searchbar-input {
51
+ display: flex;
52
+ align-items: center;
53
+ flex: 1;
54
+ }
55
+ .nut-searchbar-input {
56
+ border: 0;
57
+ outline: 0;
58
+ box-sizing: border-box;
59
+ width: 100%;
60
+ padding: 0;
61
+ margin: 0;
62
+ font-size: var(--nutui-searchbar-font-size, var(--nutui-font-text));
63
+ color: var(--nutui-searchbar-input-text-color, var(--nutui-color-text));
64
+ caret-color: var(--nutui-searchbar-input-curror-color, var(--nutui-color-title));
65
+ background: transparent;
66
+ text-align: var(--nutui-searchbar-input-text-align, left);
67
+ }
68
+ .nut-searchbar-clear.nut-searchbar-icon {
69
+ position: relative;
70
+ }
71
+ .nut-searchbar-clear.nut-searchbar-icon .nut-icon {
72
+ width: 12px;
73
+ height: 12px;
74
+ color: var(--nutui-black-5);
75
+ margin-right: var(--nutui-searchbar-inner-gap, 8px);
76
+ }
77
+ .nut-searchbar-clear.nut-searchbar-icon::after {
78
+ content: "";
79
+ position: absolute;
80
+ width: 100%;
81
+ height: 200%;
82
+ left: -20%;
83
+ }
84
+ .nut-searchbar-values {
85
+ position: absolute;
86
+ display: flex;
87
+ flex-direction: row;
88
+ z-index: 2;
89
+ background-color: #fff;
90
+ top: 9px;
91
+ left: 6px;
92
+ font-size: 12px;
93
+ line-height: 12px;
94
+ }
95
+ .nut-searchbar-values .nut-searchbar-value {
96
+ display: flex;
97
+ flex-direction: row;
98
+ align-items: center;
99
+ padding: 4px 8px;
100
+ background-color: #f7f8fc;
101
+ border-radius: 4px;
102
+ margin-right: 2px;
103
+ }
104
+ .nut-searchbar-values .nut-icon {
105
+ width: 6px;
106
+ height: 6px;
107
+ font-size: 6px;
108
+ color: #c2c4cc;
109
+ margin-left: 4px;
110
+ }
36
111
  .nut-searchbar-left, .nut-searchbar-right {
37
112
  display: inline-flex;
38
113
  align-items: center;
@@ -75,29 +150,18 @@
75
150
  .nut-searchbar-right > text:first-child, .nut-searchbar-right > view:first-child {
76
151
  margin-left: 0;
77
152
  }
78
- .nut-searchbar-input-box, .nut-searchbar-input {
79
- display: flex;
80
- align-items: center;
81
- flex: 1;
82
- }
83
- .nut-searchbar-input {
84
- border: 0;
85
- outline: 0;
86
- box-sizing: border-box;
87
- width: 100%;
88
- padding: var(--nutui-searchbar-input-padding, 4px 8px);
89
- font-size: var(--nutui-searchbar-font-size, var(--nutui-font-text));
90
- color: var(--nutui-searchbar-input-text-color, var(--nutui-color-text));
91
- caret-color: var(--nutui-searchbar-input-curror-color, var(--nutui-color-title));
92
- background: transparent;
93
- text-align: var(--nutui-searchbar-input-text-align, left);
94
- }
95
153
  .nut-searchbar-round {
96
154
  border-radius: var(--nutui-searchbar-content-round-border-radius, 18px);
97
155
  }
98
156
  .nut-searchbar-disabled {
99
157
  cursor: not-allowed;
100
158
  }
159
+ .nut-searchbar-focus {
160
+ padding: 5px var(--nutui-searchbar-gap, 16px);
161
+ }
162
+ .nut-searchbar-focus .nut-searchbar-content {
163
+ border: 0.5px solid #ff5c67;
164
+ }
101
165
 
102
166
  [dir=rtl] .nut-searchbar-left,
103
167
  .nut-rtl .nut-searchbar-left {
@@ -9,28 +9,114 @@
9
9
  box-sizing: border-box;
10
10
  justify-content: center;
11
11
 
12
+ .nut-icon {
13
+ width: $searchbar-icon-size;
14
+ height: $searchbar-icon-size;
15
+ font-size: $searchbar-icon-size;
16
+ }
17
+
12
18
  &-content {
19
+ position: relative;
13
20
  flex: 1;
14
21
  display: flex;
15
22
  align-items: center;
16
23
  justify-content: center;
17
- padding: $searchbar-content-padding;
24
+ padding: 0 $searchbar-gap;
18
25
  height: $searchbar-input-height;
19
26
  background: $searchbar-content-background;
20
27
  border-radius: $searchbar-content-border-radius;
28
+ border: 1px solid $color-primary;
21
29
  }
22
30
 
23
31
  &-icon {
24
32
  display: flex;
25
33
  justify-content: center;
26
34
  align-items: center;
35
+ color: $color-primary;
36
+ }
37
+
38
+ &-leftin {
39
+ margin-right: $searchbar-inner-gap;
27
40
  }
28
41
 
29
- &-clear,
30
42
  &-rightin {
31
- width: 16px;
32
- height: 16px;
33
- color: var(--nutui-black-5);
43
+ font-size: 15px;
44
+ font-weight: 500;
45
+ color: $color-primary;
46
+
47
+ &.nut-searchbar-icon {
48
+ color: var(--nutui-black-5);
49
+ }
50
+ }
51
+
52
+ &-input-box,
53
+ &-input {
54
+ display: flex;
55
+ align-items: center;
56
+ flex: 1;
57
+ }
58
+
59
+ &-input {
60
+ border: 0;
61
+ outline: 0;
62
+ box-sizing: border-box;
63
+ width: 100%;
64
+ padding: 0;
65
+ margin: 0;
66
+ font-size: $searchbar-font-size;
67
+ color: $searchbar-input-text-color;
68
+ caret-color: $searchbar-input-curror-color;
69
+ background: transparent;
70
+ text-align: $searchbar-input-text-align;
71
+ }
72
+
73
+ &-clear {
74
+ &.nut-searchbar-icon {
75
+ position: relative;
76
+ .nut-icon {
77
+ width: 12px;
78
+ height: 12px;
79
+ color: var(--nutui-black-5);
80
+ margin-right: $searchbar-inner-gap;
81
+ }
82
+ &::after {
83
+ content: '';
84
+ position: absolute;
85
+ width: 100%;
86
+ height: 200%;
87
+ left: -20%;
88
+ }
89
+ }
90
+ }
91
+
92
+ &-values {
93
+ position: absolute;
94
+ display: flex;
95
+ flex-direction: row;
96
+ z-index: 2;
97
+ background-color: #fff;
98
+ top: 9px;
99
+ left: 6px;
100
+ font-size: 12px;
101
+ line-height: 12px;
102
+
103
+ .nut-searchbar-value {
104
+ display: flex;
105
+ flex-direction: row;
106
+ align-items: center;
107
+ padding: 4px 8px;
108
+ background-color: #f7f8fc;
109
+ border-radius: 4px;
110
+ margin-right: 2px;
111
+ }
112
+
113
+ .nut-icon {
114
+ width: 6px;
115
+ height: 6px;
116
+ font-size: 6px;
117
+ color: #c2c4cc;
118
+ margin-left: 4px;
119
+ }
34
120
  }
35
121
 
36
122
  &-left,
@@ -93,26 +179,6 @@
93
179
  }
94
180
  }
95
181
 
96
- &-input-box,
97
- &-input {
98
- display: flex;
99
- align-items: center;
100
- flex: 1;
101
- }
102
-
103
- &-input {
104
- border: 0;
105
- outline: 0;
106
- box-sizing: border-box;
107
- width: 100%;
108
- padding: $searchbar-input-padding;
109
- font-size: $searchbar-font-size;
110
- color: $searchbar-input-text-color;
111
- caret-color: $searchbar-input-curror-color;
112
- background: transparent;
113
- text-align: $searchbar-input-text-align;
114
- }
115
-
116
182
  &-round {
117
183
  border-radius: $searchbar-content-round-border-radius;
118
184
  }
@@ -120,6 +186,14 @@
120
186
  &-disabled {
121
187
  cursor: not-allowed;
122
188
  }
189
+
190
+ &-focus {
191
+ padding: 5px $searchbar-gap;
192
+
193
+ .nut-searchbar-content {
194
+ border: 0.5px solid #ff5c67;
195
+ }
196
+ }
123
197
  }
124
198
 
125
199
  [dir='rtl'] .nut-searchbar,
@@ -13,26 +13,101 @@
13
13
  box-sizing: border-box;
14
14
  justify-content: center;
15
15
  }
16
+ .nut-searchbar .nut-icon {
17
+ width: var(--nutui-searchbar-icon-size, 20px);
18
+ height: var(--nutui-searchbar-icon-size, 20px);
19
+ font-size: var(--nutui-searchbar-icon-size, 20px);
20
+ }
16
21
  .nut-searchbar-content {
22
+ position: relative;
17
23
  flex: 1;
18
24
  display: flex;
19
25
  align-items: center;
20
26
  justify-content: center;
21
- padding: var(--nutui-searchbar-content-padding, 0 12px);
27
+ padding: 0 var(--nutui-searchbar-gap, 16px);
22
28
  height: var(--nutui-searchbar-input-height, 36px);
23
29
  background: var(--nutui-searchbar-content-background, var(--nutui-color-default-light));
24
30
  border-radius: var(--nutui-searchbar-content-border-radius, var(--nutui-radius-xs));
31
+ border: 1px solid var(--nutui-color-primary, #ff6666);
25
32
  }
26
33
  .nut-searchbar-icon {
27
34
  display: flex;
28
35
  justify-content: center;
29
36
  align-items: center;
37
+ color: var(--nutui-color-primary, #ff6666);
38
+ }
39
+ .nut-searchbar-leftin {
40
+ margin-right: var(--nutui-searchbar-inner-gap, 8px);
41
+ }
42
+ .nut-searchbar-rightin {
43
+ font-size: 15px;
44
+ font-weight: 500;
45
+ color: var(--nutui-color-primary, #ff6666);
30
46
  }
31
- .nut-searchbar-clear, .nut-searchbar-rightin {
32
- width: 16px;
33
- height: 16px;
47
+ .nut-searchbar-rightin.nut-searchbar-icon {
34
48
  color: var(--nutui-black-5);
35
49
  }
50
+ .nut-searchbar-input-box, .nut-searchbar-input {
51
+ display: flex;
52
+ align-items: center;
53
+ flex: 1;
54
+ }
55
+ .nut-searchbar-input {
56
+ border: 0;
57
+ outline: 0;
58
+ box-sizing: border-box;
59
+ width: 100%;
60
+ padding: 0;
61
+ margin: 0;
62
+ font-size: var(--nutui-searchbar-font-size, var(--nutui-font-text));
63
+ color: var(--nutui-searchbar-input-text-color, var(--nutui-color-text));
64
+ caret-color: var(--nutui-searchbar-input-curror-color, var(--nutui-color-title));
65
+ background: transparent;
66
+ text-align: var(--nutui-searchbar-input-text-align, left);
67
+ }
68
+ .nut-searchbar-clear.nut-searchbar-icon {
69
+ position: relative;
70
+ }
71
+ .nut-searchbar-clear.nut-searchbar-icon .nut-icon {
72
+ width: 12px;
73
+ height: 12px;
74
+ color: var(--nutui-black-5);
75
+ margin-right: var(--nutui-searchbar-inner-gap, 8px);
76
+ }
77
+ .nut-searchbar-clear.nut-searchbar-icon::after {
78
+ content: "";
79
+ position: absolute;
80
+ width: 100%;
81
+ height: 200%;
82
+ left: -20%;
83
+ }
84
+ .nut-searchbar-values {
85
+ position: absolute;
86
+ display: flex;
87
+ flex-direction: row;
88
+ z-index: 2;
89
+ background-color: #fff;
90
+ top: 9px;
91
+ left: 6px;
92
+ font-size: 12px;
93
+ line-height: 12px;
94
+ }
95
+ .nut-searchbar-values .nut-searchbar-value {
96
+ display: flex;
97
+ flex-direction: row;
98
+ align-items: center;
99
+ padding: 4px 8px;
100
+ background-color: #f7f8fc;
101
+ border-radius: 4px;
102
+ margin-right: 2px;
103
+ }
104
+ .nut-searchbar-values .nut-icon {
105
+ width: 6px;
106
+ height: 6px;
107
+ font-size: 6px;
108
+ color: #c2c4cc;
109
+ margin-left: 4px;
110
+ }
36
111
  .nut-searchbar-left, .nut-searchbar-right {
37
112
  display: inline-flex;
38
113
  align-items: center;
@@ -75,29 +150,18 @@
75
150
  .nut-searchbar-right > text:first-child, .nut-searchbar-right > view:first-child {
76
151
  margin-left: 0;
77
152
  }
78
- .nut-searchbar-input-box, .nut-searchbar-input {
79
- display: flex;
80
- align-items: center;
81
- flex: 1;
82
- }
83
- .nut-searchbar-input {
84
- border: 0;
85
- outline: 0;
86
- box-sizing: border-box;
87
- width: 100%;
88
- padding: var(--nutui-searchbar-input-padding, 4px 8px);
89
- font-size: var(--nutui-searchbar-font-size, var(--nutui-font-text));
90
- color: var(--nutui-searchbar-input-text-color, var(--nutui-color-text));
91
- caret-color: var(--nutui-searchbar-input-curror-color, var(--nutui-color-title));
92
- background: transparent;
93
- text-align: var(--nutui-searchbar-input-text-align, left);
94
- }
95
153
  .nut-searchbar-round {
96
154
  border-radius: var(--nutui-searchbar-content-round-border-radius, 18px);
97
155
  }
98
156
  .nut-searchbar-disabled {
99
157
  cursor: not-allowed;
100
158
  }
159
+ .nut-searchbar-focus {
160
+ padding: 5px var(--nutui-searchbar-gap, 16px);
161
+ }
162
+ .nut-searchbar-focus .nut-searchbar-content {
163
+ border: 0.5px solid #ff5c67;
164
+ }
101
165
 
102
166
  [dir=rtl] .nut-searchbar-left,
103
167
  .nut-rtl .nut-searchbar-left {
@@ -1,3 +1,3 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- import { WebStepProps } from "../../types";
3
- export declare const Step: FunctionComponent<Partial<WebStepProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'title'>>;
2
+ import { TaroStepProps } from "../../types";
3
+ export declare const Step: FunctionComponent<Partial<TaroStepProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'title'>>;