@nutui/nutui-react 1.3.8 → 1.3.9
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.
- package/dist/esm/Button.js +1 -2
- package/dist/esm/Card/style/index.js +2 -2
- package/dist/esm/CellGroup.js +5 -5
- package/dist/esm/DatePicker.js +3 -3
- package/dist/esm/GridItem.js +9 -3
- package/dist/esm/Input.js +4 -4
- package/dist/esm/date-710f8c7c.js +18 -9
- package/dist/esm/types/src/packages/cellgroup/cellgroup.d.ts +1 -1
- package/dist/esm/types/src/packages/datepicker/datepicker.d.ts +2 -2
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/nutui.react.es.js +19 -15
- package/dist/nutui.react.umd.js +19 -15
- package/dist/packages/actionsheet/actionsheet.scss +17 -0
- package/dist/packages/address/address.scss +42 -0
- package/dist/packages/badge/badge.scss +8 -0
- package/dist/packages/calendar/calendar.scss +27 -0
- package/dist/packages/card/card.scss +8 -0
- package/dist/packages/cascader/cascader.scss +16 -0
- package/dist/packages/cell/cell.scss +7 -0
- package/dist/packages/checkbox/checkbox.scss +11 -0
- package/dist/packages/circleprogress/circleprogress.scss +6 -0
- package/dist/packages/collapseitem/collapseitem.scss +21 -0
- package/dist/packages/elevator/elevator.scss +17 -1
- package/dist/packages/empty/empty.scss +6 -0
- package/dist/packages/infiniteloading/infiniteloading.scss +18 -0
- package/dist/packages/inputnumber/inputnumber.scss +22 -0
- package/dist/packages/navbar/navbar.scss +9 -0
- package/dist/packages/numberkeyboard/numberkeyboard.scss +10 -0
- package/dist/packages/pagination/pagination.scss +21 -1
- package/dist/packages/picker/picker.scss +39 -0
- package/dist/packages/popup/popup.scss +11 -0
- package/dist/packages/radio/radio.scss +18 -0
- package/dist/packages/shortpassword/shortpassword.scss +62 -0
- package/dist/packages/sidenavbaritem/sidenavbaritem.scss +9 -0
- package/dist/packages/subsidenavbar/subsidenavbar.scss +12 -0
- package/dist/packages/tabbar/tabbar.scss +5 -0
- package/dist/packages/tabbaritem/tabbaritem.scss +7 -0
- package/dist/packages/table/table.scss +38 -0
- package/dist/packages/tabpane/tabpane.scss +5 -0
- package/dist/packages/tabs/tabs.scss +28 -1
- package/dist/packages/timedetail/timedetail.scss +16 -0
- package/dist/packages/timepannel/timepannel.scss +10 -0
- package/dist/packages/timeselect/timeselect.scss +18 -0
- package/dist/packages/uploader/uploader.scss +9 -1
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/variables.scss +110 -101
- package/dist/types/index.d.ts +3 -3
- package/package.json +8 -1
package/dist/style.es.js
CHANGED
|
@@ -17,11 +17,18 @@ $white: #fff;
|
|
|
17
17
|
$black: #000;
|
|
18
18
|
$required-color: #fa2c19 !default;
|
|
19
19
|
|
|
20
|
-
$dark-background: #
|
|
21
|
-
$dark-background2: #
|
|
20
|
+
$dark-background: #131313 !default;
|
|
21
|
+
$dark-background2: #1b1b1b !default;
|
|
22
22
|
$dark-background3: #141414 !default;
|
|
23
|
+
$dark-background4: #323233 !default;
|
|
24
|
+
$dark-background5: #646566 !default;
|
|
25
|
+
$dark-background6: #380e08 !default;
|
|
26
|
+
$dark-background7: #707070 !default;
|
|
23
27
|
$dark-color: $white !default;
|
|
28
|
+
$dark-color2: #f2270c !default;
|
|
29
|
+
$dark-color3: rgba(232, 230, 227, 0.8) !default;
|
|
24
30
|
$dark-color-gray: $text-color !default;
|
|
31
|
+
$dark-calendar-choose-color: rgba(227, 227, 227, 0.2) !default;
|
|
25
32
|
|
|
26
33
|
// padding
|
|
27
34
|
$padding-xs: 12px;
|
|
@@ -34,71 +41,71 @@ $animation-duration: 0.25s !default;
|
|
|
34
41
|
$animation-timing-fun: cubic-bezier(0.55, 0.085, 0.68, 0.53) !default;
|
|
35
42
|
|
|
36
43
|
// Font
|
|
37
|
-
$font-size-0: 10px;
|
|
38
|
-
$font-size-1: 12px;
|
|
39
|
-
$font-size-2: 14px;
|
|
40
|
-
$font-size-3: 16px;
|
|
41
|
-
$font-size-4: 18px;
|
|
42
|
-
$font-weight-bold: 400;
|
|
43
|
-
|
|
44
|
-
$font-size-small: $font-size-1;
|
|
45
|
-
$font-size-base: $font-size-2;
|
|
46
|
-
$font-size-large: $font-size-3;
|
|
44
|
+
$font-size-0: 10px !default;
|
|
45
|
+
$font-size-1: 12px !default;
|
|
46
|
+
$font-size-2: 14px !default;
|
|
47
|
+
$font-size-3: 16px !default;
|
|
48
|
+
$font-size-4: 18px !default;
|
|
49
|
+
$font-weight-bold: 400 !default;
|
|
50
|
+
|
|
51
|
+
$font-size-small: $font-size-1 !default;
|
|
52
|
+
$font-size-base: $font-size-2 !default;
|
|
53
|
+
$font-size-large: $font-size-3 !default;
|
|
47
54
|
$line-height-base: 1.5 !default;
|
|
48
55
|
// button
|
|
49
|
-
$button-border-radius: 25px;
|
|
50
|
-
$button-border-width: 1px;
|
|
51
|
-
$button-default-bg-color: $white;
|
|
52
|
-
$button-default-border-color: rgba(204, 204, 204, 1);
|
|
53
|
-
$button-default-color: rgba(102, 102, 102, 1);
|
|
54
|
-
$button-small-height: 28px;
|
|
55
|
-
$button-default-height: 38px;
|
|
56
|
-
$button-large-height: 48px;
|
|
57
|
-
$button-large-line-height: 46px;
|
|
58
|
-
$button-small-line-height: 26px;
|
|
59
|
-
$button-block-height: 48px;
|
|
60
|
-
$button-default-line-height: 36px;
|
|
61
|
-
$button-block-line-height: 46px;
|
|
62
|
-
$button-default-font-size: $font-size-2;
|
|
63
|
-
$button-disabled-opacity: 0.68;
|
|
64
|
-
$button-primary-color: $white;
|
|
65
|
-
$button-primary-border-color: $primary-color;
|
|
56
|
+
$button-border-radius: 25px !default;
|
|
57
|
+
$button-border-width: 1px !default;
|
|
58
|
+
$button-default-bg-color: $white !default;
|
|
59
|
+
$button-default-border-color: rgba(204, 204, 204, 1) !default;
|
|
60
|
+
$button-default-color: rgba(102, 102, 102, 1) !default;
|
|
61
|
+
$button-small-height: 28px !default;
|
|
62
|
+
$button-default-height: 38px !default;
|
|
63
|
+
$button-large-height: 48px !default;
|
|
64
|
+
$button-large-line-height: 46px !default;
|
|
65
|
+
$button-small-line-height: 26px !default;
|
|
66
|
+
$button-block-height: 48px !default;
|
|
67
|
+
$button-default-line-height: 36px !default;
|
|
68
|
+
$button-block-line-height: 46px !default;
|
|
69
|
+
$button-default-font-size: $font-size-2 !default;
|
|
70
|
+
$button-disabled-opacity: 0.68 !default;
|
|
71
|
+
$button-primary-color: $white !default;
|
|
72
|
+
$button-primary-border-color: $primary-color !default;
|
|
66
73
|
$button-primary-background-color: linear-gradient(
|
|
67
74
|
135deg,
|
|
68
75
|
$primary-color 0%,
|
|
69
76
|
$primary-color-end 100%
|
|
70
|
-
);
|
|
71
|
-
$button-info-color: $white;
|
|
72
|
-
$button-info-border-color: #496af2;
|
|
77
|
+
) !default;
|
|
78
|
+
$button-info-color: $white !default;
|
|
79
|
+
$button-info-border-color: #496af2 !default;
|
|
73
80
|
$button-info-background-color: linear-gradient(
|
|
74
81
|
315deg,
|
|
75
82
|
rgba(73, 143, 242, 1) 0%,
|
|
76
83
|
rgba(73, 101, 242, 1) 100%
|
|
77
|
-
);
|
|
78
|
-
$button-success-color: $white;
|
|
79
|
-
$button-success-border-color: rgba(38, 191, 38, 1);
|
|
84
|
+
) !default;
|
|
85
|
+
$button-success-color: $white !default;
|
|
86
|
+
$button-success-border-color: rgba(38, 191, 38, 1) !default;
|
|
80
87
|
$button-success-background-color: linear-gradient(
|
|
81
88
|
135deg,
|
|
82
89
|
rgba(38, 191, 38, 1) 0%,
|
|
83
90
|
rgba(39, 197, 48, 1) 45%,
|
|
84
91
|
rgba(40, 207, 63, 1) 83%,
|
|
85
92
|
rgba(41, 212, 70, 1) 100%
|
|
86
|
-
);
|
|
93
|
+
) !default;
|
|
87
94
|
|
|
88
|
-
$button-danger-color: $white;
|
|
89
|
-
$button-danger-border-color: rgba(250, 44, 25, 1);
|
|
90
|
-
$button-danger-background-color: rgba(250, 44, 25, 1);
|
|
91
|
-
$button-warning-color: $white;
|
|
92
|
-
$button-warning-border-color: rgba(255, 158, 13, 1);
|
|
95
|
+
$button-danger-color: $white !default;
|
|
96
|
+
$button-danger-border-color: rgba(250, 44, 25, 1) !default;
|
|
97
|
+
$button-danger-background-color: rgba(250, 44, 25, 1) !default;
|
|
98
|
+
$button-warning-color: $white !default;
|
|
99
|
+
$button-warning-border-color: rgba(255, 158, 13, 1) !default;
|
|
93
100
|
$button-warning-background-color: linear-gradient(
|
|
94
101
|
135deg,
|
|
95
102
|
rgba(255, 158, 13, 1) 0%,
|
|
96
103
|
rgba(255, 167, 13, 1) 45%,
|
|
97
104
|
rgba(255, 182, 13, 1) 83%,
|
|
98
105
|
rgba(255, 190, 13, 1) 100%
|
|
99
|
-
);
|
|
100
|
-
$button-plain-background-color: #fff;
|
|
101
|
-
$button-plain-background-color: $white;
|
|
106
|
+
) !default;
|
|
107
|
+
$button-plain-background-color: #fff !default;
|
|
108
|
+
$button-plain-background-color: $white !default;
|
|
102
109
|
|
|
103
110
|
// cell
|
|
104
111
|
|
|
@@ -131,9 +138,9 @@ $cell-group-desc-line-height: 16px !default;
|
|
|
131
138
|
$cell-group-background-color: $white !default;
|
|
132
139
|
// icon
|
|
133
140
|
|
|
134
|
-
$icon-height: 20px;
|
|
135
|
-
$icon-width: 20px;
|
|
136
|
-
$icon-line-height: 20px;
|
|
141
|
+
$icon-height: 20px !default;
|
|
142
|
+
$icon-width: 20px !default;
|
|
143
|
+
$icon-line-height: 20px !default;
|
|
137
144
|
|
|
138
145
|
// uploader
|
|
139
146
|
|
|
@@ -150,49 +157,49 @@ $input-padding: 10px 25px !default;
|
|
|
150
157
|
|
|
151
158
|
// textarea
|
|
152
159
|
|
|
153
|
-
$textarea-font: $font-size-2;
|
|
154
|
-
$textarea-height: 100px;
|
|
155
|
-
$textarea-limit-color: $text-color;
|
|
156
|
-
$textarea-text-color: $title-color;
|
|
157
|
-
$textarea-disabled-color: $disable-color;
|
|
160
|
+
$textarea-font: $font-size-2 !default;
|
|
161
|
+
$textarea-height: 100px !default;
|
|
162
|
+
$textarea-limit-color: $text-color !default;
|
|
163
|
+
$textarea-text-color: $title-color !default;
|
|
164
|
+
$textarea-disabled-color: $disable-color !default;
|
|
158
165
|
|
|
159
166
|
// inputnumber
|
|
160
167
|
|
|
161
|
-
$inputnumber-icon-color: $title-color;
|
|
162
|
-
$inputnumber-icon-void-color: $disable-color;
|
|
163
|
-
$inputnumber-input-background-color: $help-color;
|
|
164
|
-
$inputnumber-input-border-radius: 4px;
|
|
165
|
-
$inputnumber-input-width: 40px;
|
|
166
|
-
$inputnumber-icon-size: 20px;
|
|
168
|
+
$inputnumber-icon-color: $title-color !default;
|
|
169
|
+
$inputnumber-icon-void-color: $disable-color !default;
|
|
170
|
+
$inputnumber-input-background-color: $help-color !default;
|
|
171
|
+
$inputnumber-input-border-radius: 4px !default;
|
|
172
|
+
$inputnumber-input-width: 40px !default;
|
|
173
|
+
$inputnumber-icon-size: 20px !default;
|
|
167
174
|
|
|
168
175
|
// actionsheet
|
|
169
176
|
$zindex-actionsheet: 10001 !default;
|
|
170
177
|
$body-background: #f6f6f6 !default;
|
|
171
178
|
$light-color: #f6f6f6 !default;
|
|
172
|
-
$font-size-base: $font-size-2;
|
|
173
|
-
$font-size-small: $font-size-1;
|
|
179
|
+
$font-size-base: $font-size-2 !default;
|
|
180
|
+
$font-size-small: $font-size-1 !default;
|
|
174
181
|
|
|
175
182
|
//shortpassword
|
|
176
|
-
$shortpsd-background-color: rgba(245, 245, 245, 1);
|
|
177
|
-
$shortpsd-border-color: #ddd;
|
|
178
|
-
$shortpsd-error: rgba(242, 39, 12, 1);
|
|
179
|
-
$shortpsd-forget: rgba(128, 128, 128, 1);
|
|
183
|
+
$shortpsd-background-color: rgba(245, 245, 245, 1) !default;
|
|
184
|
+
$shortpsd-border-color: #ddd !default;
|
|
185
|
+
$shortpsd-error: rgba(242, 39, 12, 1) !default;
|
|
186
|
+
$shortpsd-forget: rgba(128, 128, 128, 1) !default;
|
|
180
187
|
|
|
181
188
|
//price
|
|
182
|
-
$price-big-size: 24px;
|
|
189
|
+
$price-big-size: 24px !default;
|
|
183
190
|
|
|
184
191
|
//avatar
|
|
185
|
-
$avatar-square: 5px;
|
|
186
|
-
$avatar-large-width: 60px;
|
|
187
|
-
$avatar-large-height: 60px;
|
|
188
|
-
$avatar-small-width: 32px;
|
|
189
|
-
$avatar-small-height: 32px;
|
|
190
|
-
$avatar-normal-width: 40px;
|
|
191
|
-
$avatar-normal-height: 40px;
|
|
192
|
+
$avatar-square: 5px !default;
|
|
193
|
+
$avatar-large-width: 60px !default;
|
|
194
|
+
$avatar-large-height: 60px !default;
|
|
195
|
+
$avatar-small-width: 32px !default;
|
|
196
|
+
$avatar-small-height: 32px !default;
|
|
197
|
+
$avatar-normal-width: 40px !default;
|
|
198
|
+
$avatar-normal-height: 40px !default;
|
|
192
199
|
|
|
193
200
|
//switch
|
|
194
|
-
$switch-close-bg-color: #ebebeb;
|
|
195
|
-
$switch-close--cline-bg-color: #f0f0f0;
|
|
201
|
+
$switch-close-bg-color: #ebebeb !default;
|
|
202
|
+
$switch-close--cline-bg-color: #f0f0f0 !default;
|
|
196
203
|
|
|
197
204
|
// toast
|
|
198
205
|
$toast-title-font-size: 16px !default;
|
|
@@ -204,7 +211,7 @@ $toast-inner-border-radius: 12px !default;
|
|
|
204
211
|
$toast-cover-bg-color: rgba(0, 0, 0, 0) !default;
|
|
205
212
|
|
|
206
213
|
//backtop
|
|
207
|
-
$backtop-border-color: #e0e0e0;
|
|
214
|
+
$backtop-border-color: #e0e0e0 !default;
|
|
208
215
|
|
|
209
216
|
// calendar
|
|
210
217
|
$calendar-primary-color: $primary-color !default;
|
|
@@ -226,17 +233,17 @@ $calendar-day67-font-color: $primary-color !default;
|
|
|
226
233
|
$calendar-top-slot-height: 24px !default;
|
|
227
234
|
|
|
228
235
|
//overlay
|
|
229
|
-
$overlay-bg-color: rgba(0, 0, 0, 0.7);
|
|
236
|
+
$overlay-bg-color: rgba(0, 0, 0, 0.7) !default;
|
|
230
237
|
|
|
231
238
|
//popup
|
|
232
|
-
$popup-close-icon-margin: 16px;
|
|
233
|
-
$popup-border-radius: 20px;
|
|
239
|
+
$popup-close-icon-margin: 16px !default;
|
|
240
|
+
$popup-border-radius: 20px !default;
|
|
234
241
|
|
|
235
242
|
// Notify
|
|
236
|
-
$notify-text-color: $white;
|
|
237
|
-
$notify-padding: 12px 0;
|
|
238
|
-
$notify-font-size: 14px;
|
|
239
|
-
$notify-height: 44px;
|
|
243
|
+
$notify-text-color: $white !default;
|
|
244
|
+
$notify-padding: 12px 0 !default;
|
|
245
|
+
$notify-font-size: 14px !default;
|
|
246
|
+
$notify-height: 44px !default;
|
|
240
247
|
|
|
241
248
|
// NoticeBar
|
|
242
249
|
$noticebar-background: rgba(251, 248, 220, 1) !default;
|
|
@@ -258,30 +265,30 @@ $notify-base-background-color: linear-gradient(
|
|
|
258
265
|
rgba(250, 63, 25, 1) 45%,
|
|
259
266
|
rgba(250, 89, 25, 1) 83%,
|
|
260
267
|
rgba(250, 100, 25, 1) 100%
|
|
261
|
-
);
|
|
268
|
+
) !default;
|
|
262
269
|
$notify-primary-background-color: linear-gradient(
|
|
263
270
|
315deg,
|
|
264
271
|
rgba(73, 143, 242, 1) 0%,
|
|
265
272
|
rgba(73, 101, 242, 1) 100%
|
|
266
|
-
);
|
|
273
|
+
) !default;
|
|
267
274
|
$notify-success-background-color: linear-gradient(
|
|
268
275
|
135deg,
|
|
269
276
|
rgba(38, 191, 38, 1) 0%,
|
|
270
277
|
rgba(39, 197, 48, 1) 45%,
|
|
271
278
|
rgba(40, 207, 63, 1) 83%,
|
|
272
279
|
rgba(41, 212, 70, 1) 100%
|
|
273
|
-
);
|
|
274
|
-
$notify-danger-background-color: rgba(250, 50, 25, 1);
|
|
280
|
+
) !default;
|
|
281
|
+
$notify-danger-background-color: rgba(250, 50, 25, 1) !default;
|
|
275
282
|
$notify-warning-background-color: linear-gradient(
|
|
276
283
|
135deg,
|
|
277
284
|
rgba(255, 93, 13, 1) 0%,
|
|
278
285
|
rgba(255, 154, 13, 1) 100%
|
|
279
|
-
);
|
|
286
|
+
) !default;
|
|
280
287
|
|
|
281
288
|
// rate
|
|
282
289
|
|
|
283
|
-
$rate-icon-color: $primary-color;
|
|
284
|
-
$rate-icon-void-color: $disable-color;
|
|
290
|
+
$rate-icon-color: $primary-color !default;
|
|
291
|
+
$rate-icon-void-color: $disable-color !default;
|
|
285
292
|
|
|
286
293
|
// tabbar
|
|
287
294
|
|
|
@@ -294,7 +301,7 @@ $tabbar-item-text-font-size: $font-size-0 !default;
|
|
|
294
301
|
$tabbar-item-text-line-height: initial !default;
|
|
295
302
|
|
|
296
303
|
//infiniteloading
|
|
297
|
-
$infinite-bottom-color: #c8c8c8;
|
|
304
|
+
$infinite-bottom-color: #c8c8c8 !default;
|
|
298
305
|
|
|
299
306
|
//range
|
|
300
307
|
$range-tip-font-color: #333333 !default;
|
|
@@ -315,7 +322,7 @@ $address-region-tab-line: linear-gradient(
|
|
|
315
322
|
90deg,
|
|
316
323
|
$primary-color 0%,
|
|
317
324
|
$primary-color-end 100%
|
|
318
|
-
);
|
|
325
|
+
) !default;
|
|
319
326
|
|
|
320
327
|
//steps
|
|
321
328
|
$steps-base-icon-width: 25px !default;
|
|
@@ -347,7 +354,7 @@ $steps-process-title-color: $primary-color !default;
|
|
|
347
354
|
$steps-process-icon-text-color: $primary-color !default;
|
|
348
355
|
|
|
349
356
|
// dialog
|
|
350
|
-
$dialog-width: 296px;
|
|
357
|
+
$dialog-width: 296px !default;
|
|
351
358
|
|
|
352
359
|
// checkbox
|
|
353
360
|
$checkbox-label-color: #1d1e1e !default;
|
|
@@ -367,21 +374,21 @@ $radio-label-button-border-color: #f0250f !default;
|
|
|
367
374
|
$radio-label-button-background: rgba(240, 37, 15, 0.05) !default;
|
|
368
375
|
|
|
369
376
|
// signature
|
|
370
|
-
$signature-border-color: #dadada;
|
|
371
|
-
$signature-border-width: 1px;
|
|
372
|
-
$signature-height: 10rem;
|
|
373
|
-
$signature-margin-bottom: 1rem;
|
|
374
|
-
$signature-btn-margin-right: 15px;
|
|
377
|
+
$signature-border-color: #dadada !default;
|
|
378
|
+
$signature-border-width: 1px !default;
|
|
379
|
+
$signature-height: 10rem !default;
|
|
380
|
+
$signature-margin-bottom: 1rem !default;
|
|
381
|
+
$signature-btn-margin-right: 15px !default;
|
|
375
382
|
|
|
376
383
|
//fixednav
|
|
377
|
-
$fixednav-bg-color: $white;
|
|
378
|
-
$fixednav-font-color: $black;
|
|
379
|
-
$fixednav-index: 201;
|
|
384
|
+
$fixednav-bg-color: $white !default;
|
|
385
|
+
$fixednav-font-color: $black !default;
|
|
386
|
+
$fixednav-index: 201 !default;
|
|
380
387
|
$fixednav-btn-bg: linear-gradient(
|
|
381
388
|
135deg,
|
|
382
389
|
rgba(250, 25, 44, 1) 0%,
|
|
383
390
|
rgba(250, 63, 25, 1) 100%
|
|
384
|
-
);
|
|
391
|
+
) !default;
|
|
385
392
|
|
|
386
393
|
// Tag
|
|
387
394
|
$tag-font-size: 12px !default;
|
|
@@ -698,3 +705,5 @@ $grid-item-content-bg-color: $white !default;
|
|
|
698
705
|
$grid-item-text-margin: 8px !default;
|
|
699
706
|
$grid-item-text-color: $title-color2 !default;
|
|
700
707
|
$grid-item-text-font-size: $font-size-1 !default;
|
|
708
|
+
|
|
709
|
+
$timeselect-timedetail-item-cur-text-color: $primary-color !default;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ interface CellGroupProps {
|
|
|
55
55
|
desc: ReactNode;
|
|
56
56
|
titleSlot: ReactNode;
|
|
57
57
|
descSlot: ReactNode;
|
|
58
|
-
|
|
58
|
+
className: string;
|
|
59
59
|
children?: ReactNode;
|
|
60
60
|
}
|
|
61
61
|
declare const CellGroup: FunctionComponent<Partial<CellGroupProps>>;
|
|
@@ -674,9 +674,9 @@ interface DatePickerProps {
|
|
|
674
674
|
filter: (type: string, option: PickerOption$1[]) => PickerOption$1[];
|
|
675
675
|
onCloseDatePicker: () => void;
|
|
676
676
|
onConfirmDatePicker: (values: (string | number)[], options: PickerOption$1[]) => void;
|
|
677
|
-
|
|
677
|
+
onChange?: (columnIndex: string | number, values: (string | number)[], options: PickerOption$1[]) => void;
|
|
678
678
|
}
|
|
679
|
-
declare const DatePicker: FunctionComponent<Partial<DatePickerProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
679
|
+
declare const DatePicker: FunctionComponent<Partial<DatePickerProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
680
680
|
|
|
681
681
|
interface InputNumberProps extends IComponent {
|
|
682
682
|
disabled: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nutui/nutui-react",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
4
4
|
"style": "dist/style.css",
|
|
5
5
|
"main": "dist/nutui.react.umd.js",
|
|
6
6
|
"module": "dist/esm/nutui-react.es.js",
|
|
@@ -40,8 +40,10 @@
|
|
|
40
40
|
"add": "node scripts/createComponentMode.js",
|
|
41
41
|
"generate:file": "node scripts/generate-nutui.js",
|
|
42
42
|
"generate:themes": "node scripts/generate-themes.js",
|
|
43
|
+
"generate:themes-dev": "node scripts/generate-themes-dev.js",
|
|
43
44
|
"checked": "npm run generate:file && tsc",
|
|
44
45
|
"dev": "npm run checked && vite --open --force",
|
|
46
|
+
"dev:theme": "npm run generate:themes-dev && npm run checked && vite --config vite.config.theme.ts --open --force",
|
|
45
47
|
"replace:scss": "node scripts/replace-scss-alias.js",
|
|
46
48
|
"build:dts": "node scripts/export-props.js && npx rollup -c rollup.config.dts.js",
|
|
47
49
|
"build:loader-style": "node scripts/generate-loader-style.js",
|
|
@@ -52,6 +54,7 @@
|
|
|
52
54
|
"build:locales": "vite build --config vite.config.build.locales.ts",
|
|
53
55
|
"build": "npm run checked && vite build --config vite.config.build.ts && npm run build:es && npm run build:css && npm run build:loader-style && npm run build:dts && npm run build:locales",
|
|
54
56
|
"build:site": "npm run checked && vite build --config vite.config.build.site.ts",
|
|
57
|
+
"build:theme:site": "npm run checked && vite build --config vite.config.theme.ts && npm run generate:themes-dev",
|
|
55
58
|
"lint": "eslint ./src/packages/calendar",
|
|
56
59
|
"lint:fix": "eslint --fix ./src/packages/calendar",
|
|
57
60
|
"publish:beta": "npm publish --tag beta",
|
|
@@ -83,6 +86,7 @@
|
|
|
83
86
|
"@react-spring/web": "^9.3.2",
|
|
84
87
|
"@use-gesture/react": "^10.2.9",
|
|
85
88
|
"classnames": "^2.3.1",
|
|
89
|
+
"mobx-react-lite": "^3.4.0",
|
|
86
90
|
"react-router-dom": "^5.2.0",
|
|
87
91
|
"react-transition-group": "^4.4.2"
|
|
88
92
|
},
|
|
@@ -143,14 +147,17 @@
|
|
|
143
147
|
"lzutf8": "0.6.0",
|
|
144
148
|
"map-stream": "0.0.7",
|
|
145
149
|
"marked": "^2.0.3",
|
|
150
|
+
"mobx": "^6.6.2",
|
|
146
151
|
"postcss-import": "^14.0.2",
|
|
147
152
|
"postcss-modules": "^4.2.2",
|
|
148
153
|
"prettier": "2.3.0",
|
|
149
154
|
"react": "^18.2.0",
|
|
155
|
+
"react-color": "^2.19.3",
|
|
150
156
|
"react-dom": "^18.2.0",
|
|
151
157
|
"react-markdown": "^7.1.2",
|
|
152
158
|
"react-syntax-highlighter": "^15.4.5",
|
|
153
159
|
"react-test-renderer": "^18.2.0",
|
|
160
|
+
"reactcss": "^1.2.3",
|
|
154
161
|
"remark-directive": "^2.0.1",
|
|
155
162
|
"remark-gfm": "^3.0.1",
|
|
156
163
|
"rollup-plugin-delete": "^2.0.0",
|