@nutui/nutui-react 2.0.10 → 2.0.11
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 +15 -0
- package/dist/esm/Input.js +3 -1
- 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 +18 -16
- 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/nutui.react.build.d.ts +2 -1
- package/dist/esm/types/src/packages/nutui.react.d.ts +3 -1
- package/dist/esm/types/src/packages/nutui.react.scss.d.ts +1 -0
- 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 +552 -341
- package/dist/nutui.react.umd.js +552 -341
- 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 +1 -0
- package/dist/styles/variables.scss +33 -0
- package/dist/types/index.d.ts +3 -1
- package/dist/types/locales/base.d.ts +5 -0
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- 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,78 @@
|
|
|
1
|
+
.nut-tour {
|
|
2
|
+
&-mask {
|
|
3
|
+
position: fixed;
|
|
4
|
+
box-shadow: 0px 0px 0px 150vh rgba(0, 0, 0, 0.5);
|
|
5
|
+
border-radius: $tour-mask-border-radius;
|
|
6
|
+
z-index: 999;
|
|
7
|
+
&-none {
|
|
8
|
+
box-shadow: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&-hidden {
|
|
12
|
+
opacity: 0;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&-content {
|
|
17
|
+
display: block;
|
|
18
|
+
padding: $tour-content-padding;
|
|
19
|
+
min-width: $tour-content-min-width;
|
|
20
|
+
box-sizing: content-box;
|
|
21
|
+
|
|
22
|
+
&-top {
|
|
23
|
+
display: block;
|
|
24
|
+
text-align: right;
|
|
25
|
+
|
|
26
|
+
&-close {
|
|
27
|
+
--nut-icon-width: 10px;
|
|
28
|
+
--nut-icon-height: 10px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-inner {
|
|
33
|
+
margin: $tour-content-inner-margin;
|
|
34
|
+
font-size: $tour-content-inner-font-size;
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&-bottom {
|
|
39
|
+
margin-top: $tour-content-bottom-margin-top;
|
|
40
|
+
display: flex;
|
|
41
|
+
justify-content: space-between;
|
|
42
|
+
&-operate {
|
|
43
|
+
display: flex;
|
|
44
|
+
justify-content: flex-end;
|
|
45
|
+
&-btn {
|
|
46
|
+
display: inline-block;
|
|
47
|
+
border: 1px solid $disable-color;
|
|
48
|
+
margin-left: $tour-content-bottom-btn-margin-left;
|
|
49
|
+
padding: $tour-content-bottom-btn-padding;
|
|
50
|
+
font-size: $tour-content-bottom-btn-font-size;
|
|
51
|
+
border-radius: $tour-content-bottom-btn-border-radius;
|
|
52
|
+
color: $text-color;
|
|
53
|
+
&.active {
|
|
54
|
+
color: #fff;
|
|
55
|
+
border: 0;
|
|
56
|
+
background: $primary-color;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&-tile {
|
|
63
|
+
.nut-tour-content-inner {
|
|
64
|
+
margin: 0;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&-masked {
|
|
70
|
+
position: fixed;
|
|
71
|
+
width: 100vh;
|
|
72
|
+
height: 100vh;
|
|
73
|
+
z-index: 1000;
|
|
74
|
+
top: 0;
|
|
75
|
+
left: 0;
|
|
76
|
+
background: transparent;
|
|
77
|
+
}
|
|
78
|
+
}
|