@nutui/nutui-react-taro 1.4.9-beta.0 → 1.4.9-beta.1

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.
@@ -1,7 +1,7 @@
1
- import { D as DatePicker } from './datepicker.taro-c61c6586.js';
2
- export { D as default } from './datepicker.taro-c61c6586.js';
1
+ import { D as DatePicker } from './datepicker.taro-324d9d98.js';
2
+ export { D as default } from './datepicker.taro-324d9d98.js';
3
3
  import 'react';
4
- import './picker.taro-fa937ea1.js';
4
+ import './picker.taro-33e33120.js';
5
5
  import './popup.taro-4c18f46c.js';
6
6
  import 'react-dom';
7
7
  import 'react-transition-group';
@@ -1,5 +1,5 @@
1
- import { P as Picker } from './picker.taro-fa937ea1.js';
2
- export { P as default } from './picker.taro-fa937ea1.js';
1
+ import { P as Picker } from './picker.taro-33e33120.js';
2
+ export { P as default } from './picker.taro-33e33120.js';
3
3
  import 'react';
4
4
  import './popup.taro-4c18f46c.js';
5
5
  import 'react-dom';
@@ -1,5 +1,5 @@
1
1
  import React__default, { useState, useRef, useEffect } from 'react';
2
- import { P as Picker } from './picker.taro-fa937ea1.js';
2
+ import { P as Picker } from './picker.taro-33e33120.js';
3
3
 
4
4
  const currentYear = new Date().getFullYear();
5
5
  const defaultProps = {
@@ -31,13 +31,13 @@ export { C as Calendar } from './calendar.taro-c95e6998.js';
31
31
  export { C as CalendarItem } from './calendaritem.taro-86412398.js';
32
32
  export { C as Cascader } from './cascader.taro-e0fb7e63.js';
33
33
  export { C as Checkbox, a as CheckboxGroup } from './checkbox.taro-b76b1c82.js';
34
- export { D as DatePicker } from './datepicker.taro-c61c6586.js';
34
+ export { D as DatePicker } from './datepicker.taro-324d9d98.js';
35
35
  export { F as Form } from './form.taro-ce791a58.js';
36
36
  export { F as FormItem } from './formitem.taro-f2ed02d4.js';
37
37
  export { I as Input } from './input.taro-991945d1.js';
38
38
  export { I as InputNumber } from './inputnumber.taro-94c75663.js';
39
39
  export { N as NumberKeyboard } from './numberkeyboard.taro-c6b5b0e1.js';
40
- export { P as Picker } from './picker.taro-fa937ea1.js';
40
+ export { P as Picker } from './picker.taro-33e33120.js';
41
41
  export { R as Radio, a as RadioGroup } from './index.taro-84346556.js';
42
42
  export { R as Range } from './range.taro-b628f1ed.js';
43
43
  export { R as Rate } from './rate.taro-17b84a51.js';
@@ -209,7 +209,7 @@ const InternalPickerSlot = (props, ref) => {
209
209
  }),
210
210
  !threeDimensional &&
211
211
  listData.map((item, index) => {
212
- return (React__default.createElement("div", { className: "nut-picker-roller-item-tile", key: item.value ? item.value : index, style: {
212
+ return (React__default.createElement("div", { className: "nut-picker-roller-item-title", key: item.value ? item.value : index, style: {
213
213
  height: `${lineSpacing.current}px`,
214
214
  lineHeight: `${lineSpacing.current}px`,
215
215
  } },
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.9-beta.0 Fri Feb 24 2023 14:01:26 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.9-beta.1 Fri Feb 24 2023 14:33:30 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.9-beta.0 Fri Feb 24 2023 14:01:26 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.9-beta.1 Fri Feb 24 2023 14:33:30 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.9-beta.0 Fri Feb 24 2023 14:01:26 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.9-beta.1 Fri Feb 24 2023 14:33:30 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.9-beta.0 Fri Feb 24 2023 14:01:26 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.9-beta.1 Fri Feb 24 2023 14:33:30 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.9-beta.0 Fri Feb 24 2023 14:01:26 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.9-beta.1 Fri Feb 24 2023 14:33:30 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.9-beta.0 Fri Feb 24 2023 14:01:26 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.9-beta.1 Fri Feb 24 2023 14:33:30 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.9-beta.0 Fri Feb 24 2023 14:00:57 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.9-beta.1 Fri Feb 24 2023 14:33:09 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -5424,7 +5424,7 @@ const InternalPickerSlot = (props, ref) => {
5424
5424
  }, /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, item.text ? item.text : item));
5425
5425
  }), !threeDimensional && listData.map((item, index) => {
5426
5426
  return /* @__PURE__ */ React__default.createElement("div", {
5427
- className: "nut-picker-roller-item-tile",
5427
+ className: "nut-picker-roller-item-title",
5428
5428
  key: item.value ? item.value : index,
5429
5429
  style: {
5430
5430
  height: `${lineSpacing.current}px`,
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.9-beta.0 Fri Feb 24 2023 14:00:57 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.9-beta.1 Fri Feb 24 2023 14:33:09 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -5451,7 +5451,7 @@
5451
5451
  }, /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, item.text ? item.text : item));
5452
5452
  }), !threeDimensional && listData.map((item, index) => {
5453
5453
  return /* @__PURE__ */ React__default["default"].createElement("div", {
5454
- className: "nut-picker-roller-item-tile",
5454
+ className: "nut-picker-roller-item-title",
5455
5455
  key: item.value ? item.value : index,
5456
5456
  style: {
5457
5457
  height: `${lineSpacing.current}px`,
@@ -2,22 +2,27 @@
2
2
  .nut-theme-dark {
3
3
  .nut-picker {
4
4
  background-color: $dark6;
5
+
5
6
  &__title {
6
7
  color: $dark1;
7
8
  }
9
+
8
10
  &__confirm-btn {
9
- color: $dark1;
11
+ color: $picker-ok-color;
10
12
  cursor: pointer;
11
13
  }
14
+
12
15
  .nut-picker__control {
13
16
  background-color: $dark10;
14
17
  }
18
+
15
19
  .nut-picker-indicator {
16
20
  background-color: $dark7;
17
21
  z-index: 0;
18
22
  border-top: 1px solid $gray2;
19
23
  border-bottom: 1px solid $gray2;
20
24
  }
25
+
21
26
  .nut-picker-mask {
22
27
  position: absolute;
23
28
  top: 0;
@@ -35,16 +40,19 @@
35
40
  background-repeat: no-repeat;
36
41
  z-index: 3;
37
42
  }
43
+
38
44
  .nut-picker-list {
39
45
  .nut-picker-roller {
40
46
  &-item {
41
47
  color: $white;
48
+
42
49
  &-tile {
43
50
  color: $white;
44
51
  }
45
52
  }
46
53
  }
47
54
  }
55
+
48
56
  &-roller-mask {
49
57
  background-image: linear-gradient(
50
58
  180deg,
@@ -61,6 +69,7 @@
61
69
  &-content {
62
70
  color: $dark1;
63
71
  }
72
+
64
73
  &-item {
65
74
  color: $dark1;
66
75
  }
@@ -71,25 +80,37 @@
71
80
  background-color: $background-color3;
72
81
  width: 100%;
73
82
  }
83
+
74
84
  .nut-picker__control {
75
85
  display: flex;
76
86
  height: 56px;
77
87
  font-size: 16px;
78
88
  align-items: center;
79
89
  justify-content: space-between;
80
- padding: 15px;
90
+ padding: $picker-bar-button-padding;
81
91
 
82
92
  .nut-picker__cancel-btn {
83
- color: #fa2c19;
93
+ color: $picker-cancel-color;
94
+ font-size: $picker-bar-cancel-font-size;
95
+ }
96
+
97
+ .nut-picker__confirm-btn {
98
+ color: $picker-ok-color;
99
+ font-size: $picker-bar-ok-font-size;
84
100
  }
101
+
85
102
  .nut-picker__title {
86
103
  flex: 1;
87
104
  overflow: hidden;
88
105
  text-overflow: ellipsis;
89
106
  white-space: nowrap;
90
107
  text-align: center;
108
+ color: $picker-bar-title-color;
109
+ font-size: $picker-bar-title-font-size;
110
+ font-weight: $picker-bar-title-font-weight;
91
111
  }
92
112
  }
113
+
93
114
  .nut-picker__panel {
94
115
  display: flex;
95
116
  position: relative;
@@ -97,10 +118,13 @@
97
118
  .nut-picker-indicator {
98
119
  position: absolute;
99
120
  top: 108px;
100
- height: 36px;
121
+ height: $picker-item-height;
101
122
  width: 100%;
102
- border-top: 1px solid #ececec;
103
- border-bottom: 1px solid #ececec;
123
+ border: $picker-item-active-line-border;
124
+ border-left: 0;
125
+ border-right: 0;
126
+ color: $picker-item-text-color;
127
+ font-size: $picker-item-text-font-size;
104
128
  z-index: 3;
105
129
  }
106
130
  }
@@ -108,12 +132,14 @@
108
132
  .nut-picker-list {
109
133
  flex: 1;
110
134
  position: relative;
111
- height: 252px;
135
+ height: $picker-list-height;
112
136
  overflow: hidden;
113
137
  text-align: center;
138
+
114
139
  .nut-picker-list-panel {
115
140
  transform-style: preserve-3d;
116
141
  }
142
+
117
143
  .nut-picker-mask {
118
144
  position: absolute;
119
145
  top: 0;
@@ -132,31 +158,36 @@
132
158
  position: absolute;
133
159
  top: 108px;
134
160
  width: 100%;
135
- height: 36px;
161
+ height: $picker-item-height;
136
162
  }
163
+
137
164
  .nut-picker-content {
138
165
  background: #fff;
139
166
  z-index: 2;
140
167
  overflow: hidden;
141
168
  }
169
+
142
170
  .nut-picker-item,
143
171
  .nut-picker-roller-item {
144
172
  white-space: nowrap;
145
173
  overflow: hidden;
146
174
  text-overflow: ellipsis;
147
- height: 36px;
148
- line-height: 36px;
149
- color: #262626;
150
- font-size: 14px;
175
+ height: $picker-item-height;
176
+ line-height: $picker-item-height;
177
+ color: $picker-item-text-color;
178
+ font-size: $picker-item-text-font-size;
151
179
  text-align: center;
152
180
  }
181
+
153
182
  .nut-picker-item {
154
183
  font-size: 16px;
155
184
  background: #fff;
156
185
  }
186
+
157
187
  .nut-picker-roller {
158
188
  z-index: 1;
159
189
  transform-style: preserve-3d;
190
+
160
191
  .nut-picker-roller-item {
161
192
  backface-visibility: hidden;
162
193
  -moz-backface-visibility: hidden;
@@ -167,20 +198,22 @@
167
198
  color: $gray1;
168
199
  }
169
200
 
170
- .nut-picker-roller-item-tile {
201
+ .nut-picker-roller-item-title {
171
202
  display: block;
172
203
  width: 100%;
173
204
  height: 36px;
174
205
  line-height: 36px;
175
206
  color: $gray1;
176
- font-size: 14px;
207
+ font-size: $picker-bar-title-font-size;
177
208
  }
209
+
178
210
  .nut-picker-roller-item-hidden {
179
211
  visibility: hidden;
180
212
  opacity: 0;
181
213
  }
182
214
  }
183
215
  }
216
+
184
217
  .nut-picker-placeholder {
185
218
  height: 1px;
186
219
  }
@@ -14,10 +14,6 @@
14
14
 
15
15
  &.active {
16
16
  color: $dark1;
17
-
18
- .nut-tabs__titles-item__text {
19
- color: $dark1;
20
- }
21
17
  }
22
18
 
23
19
  &__text {
@@ -62,15 +58,15 @@
62
58
  overflow-y: auto;
63
59
  }
64
60
 
65
- &-item {
61
+ .nut-tabs__titles-item {
66
62
  height: $tabs-vertical-titles-item-height;
67
63
  flex: none;
68
64
 
69
- &__smile {
65
+ .nut-tabs__titles-item__smile {
70
66
  transition: width 0.3s ease;
71
67
  }
72
68
 
73
- &__line {
69
+ .nut-tabs__titles-item__line {
74
70
  bottom: none;
75
71
  transform: translate(0, -50%);
76
72
  transition: height 0.3s ease;
@@ -79,13 +75,13 @@
79
75
  }
80
76
 
81
77
  &.active {
82
- background-color: $background-color3;
78
+ background-color: $tabs-horizontal-titles-item-active-background-color;
83
79
 
84
80
  .nut-tabs__titles-item__line {
85
81
  left: 10px;
86
- width: 3px;
87
- background: $tabs-vertical-tab-line-color;
82
+ width: $tabs-vertical-titles-item-active-line-width;
88
83
  height: $tabs-vertical-titles-item-active-line-height;
84
+ background: $tabs-vertical-tab-line-color;
89
85
  }
90
86
 
91
87
  .nut-tabs__titles-item__smile {
@@ -115,7 +111,7 @@
115
111
  }
116
112
  }
117
113
 
118
- &__titles {
114
+ .nut-tabs__titles {
119
115
  height: $tabs-horizontal-titles-height;
120
116
  padding: 0 10px;
121
117
  display: flex;
@@ -169,7 +165,7 @@
169
165
  }
170
166
  }
171
167
 
172
- &-item {
168
+ .nut-tabs__titles-item {
173
169
  position: relative;
174
170
  font-size: $tabs-titles-item-font-size;
175
171
  min-width: $tabs-horizontal-titles-item-min-width;
@@ -180,22 +176,16 @@
180
176
  flex: 1 0 auto;
181
177
  color: $tabs-titles-item-color;
182
178
 
183
- &-left-align {
184
- flex: none;
185
- }
186
-
187
- &__text {
188
- color: $gray1;
179
+ .nut-tabs__titles-item__text {
180
+ text-align: center;
189
181
 
190
182
  &.ellipsis {
191
183
  @include oneline-ellipsis();
192
184
  }
193
-
194
- text-align: center;
195
185
  }
196
186
 
197
- &__smile,
198
- &__line {
187
+ .nut-tabs__titles-item__smile,
188
+ .nut-tabs__titles-item__line {
199
189
  position: absolute;
200
190
  transition: width 0.3s ease;
201
191
  width: 0;
@@ -206,9 +196,10 @@
206
196
  transform: translate(-50%, 0);
207
197
  overflow: hidden;
208
198
  border-radius: $tabs-horizontal-tab-line-border-radius;
199
+ opacity: $tabs-horizontal-tab-line-opacity;
209
200
  }
210
201
 
211
- &__smile {
202
+ .nut-tabs__titles-item__smile {
212
203
  .nut-icon {
213
204
  position: absolute;
214
205
  font-size: 12px;
@@ -218,25 +209,22 @@
218
209
  }
219
210
  }
220
211
 
212
+ &.nut-tabs__titles-item-left-align {
213
+ flex: none;
214
+ }
215
+
221
216
  &.disabled {
222
217
  color: $disable-color;
223
-
224
- .nut-tabs__titles-item__text {
225
- color: $disable-color;
226
- }
227
218
  }
228
219
 
229
220
  &.active {
230
- font-weight: 600;
231
-
232
- .nut-tabs__titles-item__text {
233
- color: $gray1;
234
- }
221
+ color: $tabs-titles-item-active-color;
222
+ font-weight: $tabs-titles-item-active-font-weight;
235
223
 
236
224
  .nut-tabs__titles-item__line {
237
225
  content: ' ';
238
226
  width: $tabs-horizontal-titles-item-active-line-width;
239
- height: 3px;
227
+ height: $tabs-horizontal-titles-item-active-line-height;
240
228
  background: $tabs-horizontal-tab-line-color;
241
229
  }
242
230
  }