@nutui/nutui-react 2.0.9 → 2.0.11-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/CHANGELOG.md +24 -0
- package/dist/esm/Calendar/style/style.css +1 -1
- package/dist/esm/Calendar.js +2 -1
- package/dist/esm/CalendarItem.js +2 -2
- package/dist/esm/Elevator.js +1 -1
- package/dist/esm/Input.js +3 -1
- package/dist/esm/Loading/style/css.js +1 -0
- package/dist/esm/Loading/style/index.js +2 -0
- package/dist/esm/Loading/style/style.css +1 -0
- package/dist/esm/Loading.js +57 -0
- package/dist/esm/NumberKeyboard.js +1 -1
- package/dist/esm/Popover.js +36 -3
- package/dist/esm/Switch.js +5 -3
- package/dist/esm/Tour/style/css.js +1 -0
- package/dist/esm/Tour/style/index.js +2 -0
- package/dist/esm/Tour/style/style.css +1 -0
- package/dist/esm/Tour.js +183 -0
- package/dist/esm/Uploader/style/style.css +1 -1
- package/dist/esm/Uploader.js +1 -1
- package/dist/esm/configprovider2.js +5 -0
- package/dist/esm/nutui-react.es.js +78 -74
- package/dist/esm/tabbaritem2.js +5 -3
- package/dist/esm/types/src/locales/base.d.ts +5 -0
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
- package/dist/esm/types/src/packages/loading/__test__/loading.spec.d.ts +1 -0
- package/dist/esm/types/src/packages/loading/demo.d.ts +3 -0
- package/dist/esm/types/src/packages/loading/demo.taro.d.ts +3 -0
- package/dist/esm/types/src/packages/loading/index.d.ts +3 -0
- package/dist/esm/types/src/packages/loading/index.taro.d.ts +3 -0
- package/dist/esm/types/src/packages/loading/loading.d.ts +10 -0
- package/dist/esm/types/src/packages/loading/loading.taro.d.ts +10 -0
- package/dist/esm/types/src/packages/nutui.react.build.d.ts +3 -1
- package/dist/esm/types/src/packages/nutui.react.d.ts +5 -1
- package/dist/esm/types/src/packages/nutui.react.scss.d.ts +2 -0
- package/dist/esm/types/src/packages/nutui.react.taro.d.ts +3 -1
- package/dist/esm/types/src/packages/nutui.react.taro.scss.d.ts +1 -0
- package/dist/esm/types/src/packages/nutui.taro.react.build.d.ts +2 -1
- package/dist/esm/types/src/packages/popover/popover.d.ts +1 -0
- package/dist/esm/types/src/packages/popover/popover.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/tour/__test__/tour.spec.d.ts +1 -0
- package/dist/esm/types/src/packages/tour/demo.d.ts +4 -0
- package/dist/esm/types/src/packages/tour/demo.taro.d.ts +4 -0
- package/dist/esm/types/src/packages/tour/index.d.ts +3 -0
- package/dist/esm/types/src/packages/tour/index.taro.d.ts +3 -0
- package/dist/esm/types/src/packages/tour/tour.d.ts +31 -0
- package/dist/esm/types/src/packages/tour/tour.taro.d.ts +31 -0
- package/dist/esm/types/src/utils/typings.d.ts +1 -0
- package/dist/esm/types/src/utils/use-taro-rect.d.ts +1 -0
- package/dist/locales/base.d.ts +5 -0
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +6 -1
- package/dist/locales/id-ID.js +6 -1
- package/dist/locales/tr-TR.js +6 -1
- package/dist/locales/zh-CN.js +6 -1
- package/dist/locales/zh-TW.js +6 -1
- package/dist/locales/zh-UG.js +6 -1
- package/dist/nutui.react.es.js +704 -409
- package/dist/nutui.react.umd.js +704 -409
- package/dist/packages/calendar/calendar.scss +1 -6
- package/dist/packages/loading/loading.scss +34 -0
- package/dist/packages/tour/tour.scss +78 -0
- package/dist/packages/uploader/uploader.scss +1 -0
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/themes/default.scss +2 -0
- package/dist/styles/variables.scss +39 -0
- package/dist/types/index.d.ts +5 -1
- package/dist/types/locales/base.d.ts +5 -0
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/loading/index.d.ts +3 -0
- package/dist/types/packages/loading/loading.d.ts +10 -0
- package/dist/types/packages/popover/popover.d.ts +5 -0
- package/dist/types/packages/tour/index.d.ts +3 -0
- package/dist/types/packages/tour/tour.d.ts +95 -0
- package/dist/types/utils/typings.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React, { ReactNode, FunctionComponent } from 'react';
|
|
2
|
+
import type { MouseEvent } from 'react';
|
|
3
|
+
import { PopoverLocation } from '@/packages/popover/popover';
|
|
4
|
+
import { BasicComponent } from '@/utils/typings';
|
|
5
|
+
export interface ListOptions {
|
|
6
|
+
target: Element | string;
|
|
7
|
+
content?: string;
|
|
8
|
+
location?: string;
|
|
9
|
+
popoverOffset?: number[];
|
|
10
|
+
arrowOffset?: number;
|
|
11
|
+
}
|
|
12
|
+
export type TourType = 'step' | 'tile';
|
|
13
|
+
export interface TourProps extends BasicComponent {
|
|
14
|
+
visible: boolean;
|
|
15
|
+
type: TourType;
|
|
16
|
+
location: PopoverLocation | string;
|
|
17
|
+
mask: boolean;
|
|
18
|
+
maskWidth: number | string;
|
|
19
|
+
maskHeight: number | string;
|
|
20
|
+
offset: number[];
|
|
21
|
+
list: ListOptions[];
|
|
22
|
+
title: ReactNode;
|
|
23
|
+
next: ReactNode;
|
|
24
|
+
prev: ReactNode;
|
|
25
|
+
complete: ReactNode;
|
|
26
|
+
showPrev: boolean;
|
|
27
|
+
closeOnOverlayClick: boolean;
|
|
28
|
+
onClose: (e: MouseEvent<HTMLDivElement>) => void;
|
|
29
|
+
onChange: (value: number) => void;
|
|
30
|
+
}
|
|
31
|
+
export declare const Tour: FunctionComponent<Partial<TourProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'onChange'>>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React, { ReactNode, FunctionComponent } from 'react';
|
|
2
|
+
import type { MouseEvent } from 'react';
|
|
3
|
+
import { PopoverLocation } from '@/packages/popover/index.taro';
|
|
4
|
+
import { BasicComponent } from '@/utils/typings';
|
|
5
|
+
export interface ListOptions {
|
|
6
|
+
target: Element | string;
|
|
7
|
+
content?: string;
|
|
8
|
+
location?: string;
|
|
9
|
+
popoverOffset?: number[];
|
|
10
|
+
arrowOffset?: number;
|
|
11
|
+
}
|
|
12
|
+
export type TourType = 'step' | 'tile';
|
|
13
|
+
export interface TourProps extends BasicComponent {
|
|
14
|
+
visible: boolean;
|
|
15
|
+
type: TourType;
|
|
16
|
+
location: PopoverLocation | string;
|
|
17
|
+
mask: boolean;
|
|
18
|
+
maskWidth: number | string;
|
|
19
|
+
maskHeight: number | string;
|
|
20
|
+
offset: number[];
|
|
21
|
+
list: ListOptions[];
|
|
22
|
+
title: ReactNode;
|
|
23
|
+
next: ReactNode;
|
|
24
|
+
prev: ReactNode;
|
|
25
|
+
complete: ReactNode;
|
|
26
|
+
showPrev: boolean;
|
|
27
|
+
closeOnOverlayClick: boolean;
|
|
28
|
+
onClose: (e: MouseEvent<HTMLDivElement>) => void;
|
|
29
|
+
onChange: (value: number) => void;
|
|
30
|
+
}
|
|
31
|
+
export declare const Tour: FunctionComponent<Partial<TourProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'onChange'>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getTaroRectById: (id: string) => Promise<unknown>;
|
package/dist/locales/base.d.ts
CHANGED
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react v2.0.
|
|
2
|
+
* @nutui/nutui-react v2.0.11 Wed Aug 09 2023 13:49:13 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -126,6 +126,11 @@ const o = {
|
|
|
126
126
|
refreshingText: "Loading...",
|
|
127
127
|
completeText: "Refresh successful"
|
|
128
128
|
},
|
|
129
|
+
tour: {
|
|
130
|
+
prevStepText: "Previous",
|
|
131
|
+
completeText: "Finish",
|
|
132
|
+
nextStepText: "Next step"
|
|
133
|
+
},
|
|
129
134
|
watermark: {
|
|
130
135
|
errorCanvasTips: "Canvas is not supported in the current environment"
|
|
131
136
|
}
|
package/dist/locales/id-ID.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react v2.0.
|
|
2
|
+
* @nutui/nutui-react v2.0.11 Wed Aug 09 2023 13:49:13 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -126,6 +126,11 @@ const n = {
|
|
|
126
126
|
refreshingText: "Memuat...",
|
|
127
127
|
completeText: "Penyegaran berhasil"
|
|
128
128
|
},
|
|
129
|
+
tour: {
|
|
130
|
+
prevStepText: "Sebelumnya",
|
|
131
|
+
completeText: "Menyelesaikan",
|
|
132
|
+
nextStepText: "Langkah berikutnya"
|
|
133
|
+
},
|
|
129
134
|
watermark: {
|
|
130
135
|
errorCanvasTips: "Canvas is not supported in the current environment"
|
|
131
136
|
}
|
package/dist/locales/tr-TR.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react v2.0.
|
|
2
|
+
* @nutui/nutui-react v2.0.11 Wed Aug 09 2023 13:49:13 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -134,6 +134,11 @@ const i = {
|
|
|
134
134
|
refreshingText: "Yükleniyor...",
|
|
135
135
|
completeText: "Yenileme başarılı"
|
|
136
136
|
},
|
|
137
|
+
tour: {
|
|
138
|
+
prevStepText: "Sonraki adım",
|
|
139
|
+
completeText: "Sona ermek",
|
|
140
|
+
nextStepText: "Sonraki adım"
|
|
141
|
+
},
|
|
137
142
|
watermark: {
|
|
138
143
|
errorCanvasTips: "Geçerli ortam Canvası desteklemiyor"
|
|
139
144
|
}
|
package/dist/locales/zh-CN.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react v2.0.
|
|
2
|
+
* @nutui/nutui-react v2.0.11 Wed Aug 09 2023 13:49:13 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -128,6 +128,11 @@ const a = {
|
|
|
128
128
|
refreshingText: "加载中...",
|
|
129
129
|
completeText: "刷新成功"
|
|
130
130
|
},
|
|
131
|
+
tour: {
|
|
132
|
+
prevStepText: "上一步",
|
|
133
|
+
completeText: "完成",
|
|
134
|
+
nextStepText: "下一步"
|
|
135
|
+
},
|
|
131
136
|
watermark: {
|
|
132
137
|
errorCanvasTips: "当前环境不支持Canvas"
|
|
133
138
|
}
|
package/dist/locales/zh-TW.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react v2.0.
|
|
2
|
+
* @nutui/nutui-react v2.0.11 Wed Aug 09 2023 13:49:13 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -126,6 +126,11 @@ const a = {
|
|
|
126
126
|
refreshingText: "加載中...",
|
|
127
127
|
completeText: "刷新成功"
|
|
128
128
|
},
|
|
129
|
+
tour: {
|
|
130
|
+
prevStepText: "上一步",
|
|
131
|
+
completeText: "完成",
|
|
132
|
+
nextStepText: "下一步"
|
|
133
|
+
},
|
|
129
134
|
watermark: {
|
|
130
135
|
errorCanvasTips: "當前環境不支持Canvas"
|
|
131
136
|
}
|
package/dist/locales/zh-UG.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react v2.0.
|
|
2
|
+
* @nutui/nutui-react v2.0.11 Wed Aug 09 2023 13:49:13 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -126,6 +126,11 @@ const a = {
|
|
|
126
126
|
refreshingText: "يېڭىلىنىۋاتىدۇ...",
|
|
127
127
|
completeText: "تامام"
|
|
128
128
|
},
|
|
129
|
+
tour: {
|
|
130
|
+
prevStepText: "ئالدىنقى",
|
|
131
|
+
completeText: "تامام",
|
|
132
|
+
nextStepText: "كېيىنكى قەدەم"
|
|
133
|
+
},
|
|
129
134
|
watermark: {
|
|
130
135
|
errorCanvasTips: "Canvas نى قوللىمايدۇ"
|
|
131
136
|
}
|