@nutui/nutui-react 1.1.3 → 1.1.4-beta.0
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/Address.js +22 -28
- package/dist/esm/Badge.js +0 -2
- package/dist/esm/Calendar.js +6 -2
- package/dist/esm/CalendarItem.js +14 -13
- package/dist/esm/CheckboxGroup.js +1 -1
- package/dist/esm/Collapse.js +2 -2
- package/dist/esm/ConfigProvider/style/index.js +2 -0
- package/dist/esm/ConfigProvider.js +146 -0
- package/dist/esm/CountDown.js +8 -4
- package/dist/esm/Dialog.js +7 -3
- package/dist/esm/FixedNav.js +5 -1
- package/dist/esm/Infiniteloading.js +7 -3
- package/dist/esm/Input.js +5 -1
- package/dist/esm/NoticeBar.js +1 -1
- package/dist/esm/Pagination.js +6 -2
- package/dist/esm/Picker.js +6 -2
- package/dist/esm/Range.js +5 -1
- package/dist/esm/ShortPassword.js +9 -5
- package/dist/esm/Signature.js +7 -3
- package/dist/esm/TextArea.js +5 -1
- package/dist/esm/Toast.js +4 -10
- package/dist/esm/nutui-react.es.js +1 -0
- package/dist/locales/base.d.ts +91 -0
- package/dist/locales/base.js +5 -0
- package/dist/locales/en-US.d.ts +3 -0
- package/dist/locales/en-US.js +95 -0
- package/dist/locales/zh-CN.d.ts +3 -0
- package/dist/locales/zh-CN.js +97 -0
- package/dist/locales/zh-TW.d.ts +3 -0
- package/dist/locales/zh-TW.js +95 -0
- package/dist/nutui.react.es.js +221 -104
- package/dist/nutui.react.umd.js +26 -26
- package/dist/packages/configprovider/configprovider.scss +2 -0
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +1 -0
- package/dist/styles/variables-jdw.scss +376 -0
- package/dist/types/configprovider/configprovider.d.ts +12 -0
- package/dist/types/configprovider/index.d.ts +3 -0
- package/dist/types/nutui.react.d.ts +2 -1
- package/dist/types/toast/Notification.d.ts +1 -7
- package/package.json +5 -3
package/dist/style.es.js
CHANGED
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
@import '../../packages/collapse/collapse.scss';
|
|
57
57
|
@import '../../packages/collapseitem/collapseitem.scss';
|
|
58
58
|
@import '../../packages/animatingnumbers/animatingnumbers.scss';
|
|
59
|
+
@import '../../packages/configprovider/configprovider.scss';
|
|
59
60
|
@import '../../packages/address/address.scss';
|
|
60
61
|
@import '../../packages/barrage/barrage.scss';
|
|
61
62
|
@import '../../packages/signature/signature.scss';
|
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
// color
|
|
2
|
+
|
|
3
|
+
// 主色调
|
|
4
|
+
$primary-color: #fa2c19 !default;
|
|
5
|
+
$primary-color-end: #fa6419 !default;
|
|
6
|
+
// 辅助色
|
|
7
|
+
$help-color: #f5f5f5 !default;
|
|
8
|
+
// 标题常规文字
|
|
9
|
+
$title-color: #1a1a1a !default;
|
|
10
|
+
// 副标题
|
|
11
|
+
$title-color2: #666666 !default;
|
|
12
|
+
// 次内容
|
|
13
|
+
$text-color: #808080 !default;
|
|
14
|
+
// 特殊禁用色
|
|
15
|
+
$disable-color: #cccccc !default;
|
|
16
|
+
$white: #fff;
|
|
17
|
+
$black: #000;
|
|
18
|
+
|
|
19
|
+
// padding
|
|
20
|
+
$padding-xs: 12px;
|
|
21
|
+
|
|
22
|
+
$font-family: PingFang SC, Microsoft YaHei, Helvetica, Hiragino Sans GB, SimSun, sans-serif !default;
|
|
23
|
+
|
|
24
|
+
// ---- Animation ----
|
|
25
|
+
$animation-duration: 0.25s !default;
|
|
26
|
+
$animation-timing-fun: cubic-bezier(0.55, 0.085, 0.68, 0.53) !default;
|
|
27
|
+
|
|
28
|
+
// Font
|
|
29
|
+
$font-size-0: 10px;
|
|
30
|
+
$font-size-1: 12px;
|
|
31
|
+
$font-size-2: 14px;
|
|
32
|
+
$font-size-3: 16px;
|
|
33
|
+
$font-size-4: 18px;
|
|
34
|
+
$font-weight-bold: 400;
|
|
35
|
+
|
|
36
|
+
$font-size-small: $font-size-1;
|
|
37
|
+
$font-size-base: $font-size-2;
|
|
38
|
+
$font-size-large: $font-size-3;
|
|
39
|
+
$line-height-base: 1.5 !default;
|
|
40
|
+
// button
|
|
41
|
+
$button-border-radius: 25px;
|
|
42
|
+
$button-border-width: 1px;
|
|
43
|
+
$button-default-bg-color: $white;
|
|
44
|
+
$button-default-border-color: rgba(204, 204, 204, 1);
|
|
45
|
+
$button-default-color: rgba(102, 102, 102, 1);
|
|
46
|
+
$button-small-height: 28px;
|
|
47
|
+
$button-default-height: 38px;
|
|
48
|
+
$button-large-height: 48px;
|
|
49
|
+
$button-large-line-height: 46px;
|
|
50
|
+
$button-small-line-height: 26px;
|
|
51
|
+
$button-block-height: 48px;
|
|
52
|
+
$button-default-line-height: 36px;
|
|
53
|
+
$button-block-line-height: 46px;
|
|
54
|
+
$button-default-font-size: $font-size-2;
|
|
55
|
+
$button-disabled-opacity: 0.68;
|
|
56
|
+
$button-primary-color: $white;
|
|
57
|
+
$button-primary-border-color: $primary-color;
|
|
58
|
+
$button-primary-background-color: linear-gradient(
|
|
59
|
+
135deg,
|
|
60
|
+
$primary-color 0%,
|
|
61
|
+
$primary-color-end 100%
|
|
62
|
+
);
|
|
63
|
+
$button-info-color: $white;
|
|
64
|
+
$button-info-border-color: rgba(73, 106, 242, 1);
|
|
65
|
+
$button-info-background-color: linear-gradient(
|
|
66
|
+
315deg,
|
|
67
|
+
rgba(73, 143, 242, 1) 0%,
|
|
68
|
+
rgba(73, 101, 242, 1) 100%
|
|
69
|
+
);
|
|
70
|
+
$button-success-color: $white;
|
|
71
|
+
$button-success-border-color: rgba(38, 191, 38, 1);
|
|
72
|
+
$button-success-background-color: linear-gradient(
|
|
73
|
+
135deg,
|
|
74
|
+
rgba(38, 191, 38, 1) 0%,
|
|
75
|
+
rgba(39, 197, 48, 1) 45%,
|
|
76
|
+
rgba(40, 207, 63, 1) 83%,
|
|
77
|
+
rgba(41, 212, 70, 1) 100%
|
|
78
|
+
);
|
|
79
|
+
|
|
80
|
+
$button-danger-color: $white;
|
|
81
|
+
$button-danger-border-color: rgba(250, 44, 25, 1);
|
|
82
|
+
$button-danger-background-color: rgba(250, 44, 25, 1);
|
|
83
|
+
$button-warning-color: $white;
|
|
84
|
+
$button-warning-border-color: rgba(255, 158, 13, 1);
|
|
85
|
+
$button-warning-background-color: linear-gradient(
|
|
86
|
+
135deg,
|
|
87
|
+
rgba(255, 158, 13, 1) 0%,
|
|
88
|
+
rgba(255, 167, 13, 1) 45%,
|
|
89
|
+
rgba(255, 182, 13, 1) 83%,
|
|
90
|
+
rgba(255, 190, 13, 1) 100%
|
|
91
|
+
);
|
|
92
|
+
$button-plain-background-color: #fff;
|
|
93
|
+
$button-plain-background-color: $white;
|
|
94
|
+
|
|
95
|
+
// cell
|
|
96
|
+
|
|
97
|
+
$cell-color: $title-color2;
|
|
98
|
+
$cell-title-font: $font-size-2;
|
|
99
|
+
$cell-title-desc-font: $font-size-1;
|
|
100
|
+
$cell-desc-font: $font-size-2;
|
|
101
|
+
$cell-desc-color: $disable-color;
|
|
102
|
+
$cell-border-radius: 6px;
|
|
103
|
+
|
|
104
|
+
// cell-group
|
|
105
|
+
|
|
106
|
+
$cell-group-title-padding: 0 10px;
|
|
107
|
+
$cell-group-title-color: #909ca4;
|
|
108
|
+
$cell-group-title-font-size: $font-size-2;
|
|
109
|
+
$cell-group-title-line-height: 20px;
|
|
110
|
+
$cell-group-background-color: $white;
|
|
111
|
+
|
|
112
|
+
// icon
|
|
113
|
+
|
|
114
|
+
$icon-height: 20px;
|
|
115
|
+
$icon-width: 20px;
|
|
116
|
+
$icon-line-height: 20px;
|
|
117
|
+
|
|
118
|
+
// uploader
|
|
119
|
+
|
|
120
|
+
$uploader-width: 100px;
|
|
121
|
+
$uploader-height: 100px;
|
|
122
|
+
$uploader-background: #f7f8fa;
|
|
123
|
+
|
|
124
|
+
//input
|
|
125
|
+
$input-border-bottom: #eaf0fb;
|
|
126
|
+
$input-disabled-color: #c8c9cc;
|
|
127
|
+
|
|
128
|
+
// textarea
|
|
129
|
+
|
|
130
|
+
$textarea-font: $font-size-2;
|
|
131
|
+
$textarea-height: 100px;
|
|
132
|
+
$textarea-limit-color: $text-color;
|
|
133
|
+
$textarea-text-color: $title-color;
|
|
134
|
+
$textarea-disabled-color: $disable-color;
|
|
135
|
+
|
|
136
|
+
// inputnumber
|
|
137
|
+
|
|
138
|
+
$inputnumber-icon-color: $title-color;
|
|
139
|
+
$inputnumber-icon-void-color: $disable-color;
|
|
140
|
+
$inputnumber-input-background-color: $help-color;
|
|
141
|
+
$inputnumber-input-border-radius: 4px;
|
|
142
|
+
$inputnumber-input-width: 40px;
|
|
143
|
+
$inputnumber-icon-size: 20px;
|
|
144
|
+
|
|
145
|
+
// actionsheet
|
|
146
|
+
$zindex-actionsheet: 10001 !default;
|
|
147
|
+
$body-background: #f6f6f6 !default;
|
|
148
|
+
$light-color: #f6f6f6 !default;
|
|
149
|
+
$font-size-base: $font-size-2;
|
|
150
|
+
$font-size-small: $font-size-1;
|
|
151
|
+
|
|
152
|
+
//shortpassword
|
|
153
|
+
$shortpsd-background-color: rgba(245, 245, 245, 1);
|
|
154
|
+
$shortpsd-border-color: #ddd;
|
|
155
|
+
$shortpsd-error: rgba(242, 39, 12, 1);
|
|
156
|
+
$shortpsd-forget: rgba(128, 128, 128, 1);
|
|
157
|
+
|
|
158
|
+
//price
|
|
159
|
+
$price-big-size: 24px;
|
|
160
|
+
|
|
161
|
+
//avatar
|
|
162
|
+
$avatar-square: 5px;
|
|
163
|
+
$avatar-large-width: 60px;
|
|
164
|
+
$avatar-large-height: 60px;
|
|
165
|
+
$avatar-small-width: 32px;
|
|
166
|
+
$avatar-small-height: 32px;
|
|
167
|
+
$avatar-normal-width: 40px;
|
|
168
|
+
$avatar-normal-height: 40px;
|
|
169
|
+
|
|
170
|
+
//switch
|
|
171
|
+
$switch-close-bg-color: #ebebeb;
|
|
172
|
+
$switch-close--cline-bg-color: #f0f0f0;
|
|
173
|
+
|
|
174
|
+
//backtop
|
|
175
|
+
$backtop-border-color: #e0e0e0;
|
|
176
|
+
|
|
177
|
+
// calendar
|
|
178
|
+
$calendar-primary-color: $primary-color;
|
|
179
|
+
$calendar-choose-color: #fef6f6;
|
|
180
|
+
$calendar-base-color: #333333;
|
|
181
|
+
$calendar-disable-color: #d1d0d0;
|
|
182
|
+
$calendar-title-font: $font-size-4;
|
|
183
|
+
$calendar-base-font: $font-size-3;
|
|
184
|
+
$calendar-text-font: $font-size-1;
|
|
185
|
+
$calendar-day-font: 18px;
|
|
186
|
+
|
|
187
|
+
//overlay
|
|
188
|
+
$overlay-bg-color: rgba(0, 0, 0, 0.7);
|
|
189
|
+
|
|
190
|
+
//popup
|
|
191
|
+
$popup-close-icon-margin: 16px;
|
|
192
|
+
$popup-border-radius: 20px;
|
|
193
|
+
|
|
194
|
+
// Notify
|
|
195
|
+
$notify-text-color: $white;
|
|
196
|
+
$notify-padding: 12px 0;
|
|
197
|
+
$notify-font-size: 14px;
|
|
198
|
+
$notify-height: 44px;
|
|
199
|
+
|
|
200
|
+
// NoticeBar
|
|
201
|
+
$noticeBar-font-size: 14px !default;
|
|
202
|
+
$noticeBar-height: 40px !default;
|
|
203
|
+
$noticeBar-line-height: 24px !default;
|
|
204
|
+
$noticeBar-left-icon-width: 16px !default;
|
|
205
|
+
$noticeBar-right-icon-width: 16px !default;
|
|
206
|
+
|
|
207
|
+
$notify-base-background-color: linear-gradient(
|
|
208
|
+
135deg,
|
|
209
|
+
rgba(250, 44, 25, 1) 0%,
|
|
210
|
+
rgba(250, 63, 25, 1) 45%,
|
|
211
|
+
rgba(250, 89, 25, 1) 83%,
|
|
212
|
+
rgba(250, 100, 25, 1) 100%
|
|
213
|
+
);
|
|
214
|
+
$notify-primary-background-color: linear-gradient(
|
|
215
|
+
315deg,
|
|
216
|
+
rgba(73, 143, 242, 1) 0%,
|
|
217
|
+
rgba(73, 101, 242, 1) 100%
|
|
218
|
+
);
|
|
219
|
+
$notify-success-background-color: linear-gradient(
|
|
220
|
+
135deg,
|
|
221
|
+
rgba(38, 191, 38, 1) 0%,
|
|
222
|
+
rgba(39, 197, 48, 1) 45%,
|
|
223
|
+
rgba(40, 207, 63, 1) 83%,
|
|
224
|
+
rgba(41, 212, 70, 1) 100%
|
|
225
|
+
);
|
|
226
|
+
$notify-danger-background-color: rgba(250, 50, 25, 1);
|
|
227
|
+
$notify-warning-background-color: linear-gradient(
|
|
228
|
+
135deg,
|
|
229
|
+
rgba(255, 93, 13, 1) 0%,
|
|
230
|
+
rgba(255, 154, 13, 1) 100%
|
|
231
|
+
);
|
|
232
|
+
|
|
233
|
+
// rate
|
|
234
|
+
|
|
235
|
+
$rate-icon-color: $primary-color;
|
|
236
|
+
$rate-icon-void-color: $disable-color;
|
|
237
|
+
|
|
238
|
+
// tabbar
|
|
239
|
+
|
|
240
|
+
$tabbar-active-color: $primary-color;
|
|
241
|
+
$tabbar-border-color: #eee;
|
|
242
|
+
|
|
243
|
+
//infiniteloading
|
|
244
|
+
$infinite-bottom-color: #c8c8c8;
|
|
245
|
+
|
|
246
|
+
//range
|
|
247
|
+
$range-max: #333333;
|
|
248
|
+
$rang-bg-color: rgba($primary-color, 0.5);
|
|
249
|
+
$rang-bar-bg-color: linear-gradient(135deg, $primary-color 0%, $primary-color-end 100%);
|
|
250
|
+
|
|
251
|
+
//address
|
|
252
|
+
$address-region-tab-line: linear-gradient(90deg, $primary-color 0%, $primary-color-end 100%);
|
|
253
|
+
|
|
254
|
+
//steps
|
|
255
|
+
$step-wait-bg-color: #959fb1;
|
|
256
|
+
|
|
257
|
+
// dialog
|
|
258
|
+
$dialog-width: 296px;
|
|
259
|
+
|
|
260
|
+
// checkbox
|
|
261
|
+
$checkbox-label-color: #1d1e1e;
|
|
262
|
+
$checkbox-label-disable-color: #999;
|
|
263
|
+
|
|
264
|
+
//radio
|
|
265
|
+
$radio-label-font-color: #1d1e1e !default;
|
|
266
|
+
$radio-label-font-active-color: #f0250f !default;
|
|
267
|
+
$radio-label-disable-color: #999 !default;
|
|
268
|
+
$radio-icon-disable-color: #d6d6d6 !default;
|
|
269
|
+
|
|
270
|
+
$radio-label-button-border-color: #f0250f !default;
|
|
271
|
+
$radio-label-button-background: rgba(240, 37, 15, 0.05) !default;
|
|
272
|
+
|
|
273
|
+
// signature
|
|
274
|
+
$signature-border-color: #dadada;
|
|
275
|
+
|
|
276
|
+
//fixednav
|
|
277
|
+
$fixednav-bg-color: $white;
|
|
278
|
+
$fixednav-font-color: $black;
|
|
279
|
+
$fixednav-index: 201;
|
|
280
|
+
$fixednav-btn-bg: linear-gradient(135deg, rgba(250, 25, 44, 1) 0%, rgba(250, 63, 25, 1) 100%);
|
|
281
|
+
|
|
282
|
+
// Tag
|
|
283
|
+
$tag-font-size: 12px !default;
|
|
284
|
+
$tag-default-background-color: #000000 !default;
|
|
285
|
+
$tag-primary-background-color: #3460fa !default;
|
|
286
|
+
$tag-success-background-color: #4fc08d !default;
|
|
287
|
+
$tag-danger-background-color: linear-gradient(
|
|
288
|
+
135deg,
|
|
289
|
+
rgba(242, 20, 12, 1) 0%,
|
|
290
|
+
rgba(232, 34, 14, 1) 69.83950099728881%,
|
|
291
|
+
rgba(242, 77, 12, 1) 100%
|
|
292
|
+
) !default;
|
|
293
|
+
$tag-warning-background-color: #f3812e !default;
|
|
294
|
+
$tag-default-color: #ffffff !default;
|
|
295
|
+
$tag-border-width: 1px !default;
|
|
296
|
+
|
|
297
|
+
$tag-plain-background-color: #fff !default;
|
|
298
|
+
$tag-plain-color: rgb(250, 36, 0) !default;
|
|
299
|
+
|
|
300
|
+
//badge
|
|
301
|
+
$badge-background-color: linear-gradient(
|
|
302
|
+
135deg,
|
|
303
|
+
$primary-color 0%,
|
|
304
|
+
$primary-color-end 100%
|
|
305
|
+
) !default;
|
|
306
|
+
$badge-font-size: $font-size-1 !default;
|
|
307
|
+
$badge-default-background-color: rgba(255, 255, 255, 1) !default;
|
|
308
|
+
|
|
309
|
+
//popover
|
|
310
|
+
$popover-white-background-color: rgba(255, 255, 255, 1) !default;
|
|
311
|
+
$popover-dark-background-color: rgba(75, 76, 77, 1) !default;
|
|
312
|
+
$popover-border-bottom-color: rgba(229, 229, 229, 1) !default;
|
|
313
|
+
$popover-primary-text-color: rgba(51, 51, 51, 1) !default;
|
|
314
|
+
$popover-disable-color: rgba(154, 155, 157, 1) !default;
|
|
315
|
+
|
|
316
|
+
//pagination
|
|
317
|
+
$pagination-color: $primary-color !default;
|
|
318
|
+
$pagination-font-size: $font-size-2 !default;
|
|
319
|
+
$pagination-item-border-color: #e4e7eb !default;
|
|
320
|
+
$pagination-active-background-color: linear-gradient(
|
|
321
|
+
135deg,
|
|
322
|
+
rgba(250, 44, 25, 1) 0%,
|
|
323
|
+
rgba(250, 63, 25, 1) 44.59259259%,
|
|
324
|
+
rgba(250, 89, 25, 1) 83.40740741%,
|
|
325
|
+
rgba(250, 100, 25, 1) 100%
|
|
326
|
+
) !default;
|
|
327
|
+
$pagination-disable-color: rgba(116, 116, 116, 0.31) !default;
|
|
328
|
+
$pagination-disable-background-color: #f7f8fa !default;
|
|
329
|
+
$pagination-item-border-width: 1px !default;
|
|
330
|
+
$pagination-item-border-radius: 2px !default;
|
|
331
|
+
$pagination-prev-next-padding: 0 11px !default;
|
|
332
|
+
|
|
333
|
+
// dialog
|
|
334
|
+
$dialog-min-height: 156px !default;
|
|
335
|
+
$dialog-padding: 28px 24px 16px 24px !default;
|
|
336
|
+
$dialog-header-height: 20px !default;
|
|
337
|
+
$dialog-header-color: rgba(38, 38, 38, 1) !default;
|
|
338
|
+
$dialog-content-margin: 20px 0 !default;
|
|
339
|
+
$dialog-content-max-height: 268px !default;
|
|
340
|
+
$dialog-content-line-height: 16px !default;
|
|
341
|
+
$dialog-mask-z-index: 1050 !default;
|
|
342
|
+
$dialog-mask-background-color: rgba($black, 0.7) !default;
|
|
343
|
+
$dialog-outer-z-index: 2000 !default;
|
|
344
|
+
$dialog-outer-bordder-radius: 20px !default;
|
|
345
|
+
$dialog-vertical-footer-ok-margin-top: 10px !default;
|
|
346
|
+
$dialog-footer-button-min-width: 100px !default;
|
|
347
|
+
$dialog-footer-cancel-margin-right: 20px !default;
|
|
348
|
+
$dialog-footer-ok-max-width: 128px !default;
|
|
349
|
+
// 在组件中import
|
|
350
|
+
//@import './mixins/index';
|
|
351
|
+
//@import './animation/index';
|
|
352
|
+
|
|
353
|
+
// tabs
|
|
354
|
+
$tabs-tab-smile-color: $primary-color !default;
|
|
355
|
+
$tabs-titles-border-radius: 0 !default;
|
|
356
|
+
$tabs-titles-item-large-font-size: $font-size-3 !default;
|
|
357
|
+
$tabs-titles-item-font-size: $font-size-2 !default;
|
|
358
|
+
$tabs-titles-item-small-font-size: $font-size-1 !default;
|
|
359
|
+
$tabs-titles-item-color: $title-color !default;
|
|
360
|
+
$tabs-titles-background-color: $help-color !default;
|
|
361
|
+
$tabs-horizontal-tab-line-color: linear-gradient(
|
|
362
|
+
90deg,
|
|
363
|
+
$primary-color 0%,
|
|
364
|
+
rgba($primary-color, 0.15) 100%
|
|
365
|
+
) !default;
|
|
366
|
+
$tabs-horizontal-titles-height: 46px !default;
|
|
367
|
+
$tabs-horizontal-titles-item-min-width: 50px !default;
|
|
368
|
+
$tabs-horizontal-titles-item-active-line-width: 40px !default;
|
|
369
|
+
$tabs-vertical-tab-line-color: linear-gradient(
|
|
370
|
+
180deg,
|
|
371
|
+
$primary-color 0%,
|
|
372
|
+
rgba($primary-color, 0.15) 100%
|
|
373
|
+
) !default;
|
|
374
|
+
$tabs-vertical-titles-item-height: 40px !default;
|
|
375
|
+
$tabs-vertical-titles-item-active-line-height: 14px !default;
|
|
376
|
+
$tabs-vertical-titles-width: 100px !default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
import { BaseLang } from '@/locales/base';
|
|
3
|
+
export interface ConfigProviderProps {
|
|
4
|
+
locale: BaseLang;
|
|
5
|
+
}
|
|
6
|
+
export declare const defaultConfigRef: {
|
|
7
|
+
current: ConfigProviderProps;
|
|
8
|
+
};
|
|
9
|
+
export declare const setDefaultConfig: (config: ConfigProviderProps) => void;
|
|
10
|
+
export declare const getDefaultConfig: () => ConfigProviderProps;
|
|
11
|
+
export declare const useConfig: () => ConfigProviderProps;
|
|
12
|
+
export declare const ConfigProvider: FunctionComponent<Partial<ConfigProviderProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -55,8 +55,9 @@ import CountDown from './countdown';
|
|
|
55
55
|
import Collapse from './collapse';
|
|
56
56
|
import CollapseItem from './collapseitem';
|
|
57
57
|
import AnimatingNumbers from './animatingnumbers';
|
|
58
|
+
import ConfigProvider from './configprovider';
|
|
58
59
|
import Address from './address';
|
|
59
60
|
import Barrage from './barrage';
|
|
60
61
|
import Signature from './signature';
|
|
61
62
|
import Card from './card';
|
|
62
|
-
export { Button, Cell, CellGroup, Icon, Overlay, Popup, Layout, Col, Row, Divider, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, Address, Barrage, Signature, Card };
|
|
63
|
+
export { Button, Cell, CellGroup, Icon, Overlay, Popup, Layout, Col, Row, Divider, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, ConfigProvider, Address, Barrage, Signature, Card };
|
|
@@ -11,18 +11,13 @@ export interface NotificationProps {
|
|
|
11
11
|
customClass: string;
|
|
12
12
|
size: string | number;
|
|
13
13
|
textAlignCenter: boolean;
|
|
14
|
-
loadingRotate: boolean;
|
|
15
14
|
bgColor: string;
|
|
16
15
|
cover: boolean;
|
|
17
16
|
coverColor: string;
|
|
18
17
|
closeOnClickOverlay: boolean;
|
|
19
18
|
onClose: () => void;
|
|
20
|
-
className?: string;
|
|
21
19
|
}
|
|
22
|
-
|
|
23
|
-
show: boolean;
|
|
24
|
-
}
|
|
25
|
-
export default class Notification extends React.PureComponent<NotificationProps, State> {
|
|
20
|
+
export default class Notification extends React.PureComponent<NotificationProps> {
|
|
26
21
|
private closeTimer;
|
|
27
22
|
static newInstance: (properties: NotificationProps, callback: any) => void;
|
|
28
23
|
constructor(props: NotificationProps);
|
|
@@ -34,4 +29,3 @@ export default class Notification extends React.PureComponent<NotificationProps,
|
|
|
34
29
|
componentWillUnmount(): void;
|
|
35
30
|
render(): JSX.Element;
|
|
36
31
|
}
|
|
37
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nutui/nutui-react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4-beta.0",
|
|
4
4
|
"style": "dist/style.css",
|
|
5
5
|
"main": "dist/nutui.react.umd.js",
|
|
6
6
|
"module": "dist/esm/nutui-react.es.js",
|
|
@@ -49,7 +49,8 @@
|
|
|
49
49
|
"build:css": "npm run generate:themes && vite build --config vite.config.build.css.ts && npm run build:replace ",
|
|
50
50
|
"build:replace": "npm run replace:scss",
|
|
51
51
|
"build:es": "npx rollup -c rollup.config.es.js",
|
|
52
|
-
"build": "
|
|
52
|
+
"build:locales": "vite build --config vite.config.build.locales.ts",
|
|
53
|
+
"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:types && npm run build:locales",
|
|
53
54
|
"build:site": "npm run checked && vite build --config vite.config.build.site.ts",
|
|
54
55
|
"lint": "eslint .",
|
|
55
56
|
"lint:fix": "eslint --fix .",
|
|
@@ -139,6 +140,7 @@
|
|
|
139
140
|
"typescript": "^4.1.2",
|
|
140
141
|
"unist-util-visit": "^4.1.0",
|
|
141
142
|
"vinyl-fs": "^3.0.3",
|
|
142
|
-
"vite": "^2.1.5"
|
|
143
|
+
"vite": "^2.1.5",
|
|
144
|
+
"vite-plugin-dts": "^1.1.1"
|
|
143
145
|
}
|
|
144
146
|
}
|