@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.
Files changed (54) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/esm/Input.js +3 -1
  3. package/dist/esm/NumberKeyboard.js +1 -1
  4. package/dist/esm/Popover.js +36 -3
  5. package/dist/esm/Switch.js +5 -3
  6. package/dist/esm/Tour/style/css.js +1 -0
  7. package/dist/esm/Tour/style/index.js +2 -0
  8. package/dist/esm/Tour/style/style.css +1 -0
  9. package/dist/esm/Tour.js +183 -0
  10. package/dist/esm/Uploader/style/style.css +1 -1
  11. package/dist/esm/Uploader.js +1 -1
  12. package/dist/esm/configprovider2.js +5 -0
  13. package/dist/esm/nutui-react.es.js +18 -16
  14. package/dist/esm/tabbaritem2.js +5 -3
  15. package/dist/esm/types/src/locales/base.d.ts +5 -0
  16. package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
  17. package/dist/esm/types/src/packages/nutui.react.build.d.ts +2 -1
  18. package/dist/esm/types/src/packages/nutui.react.d.ts +3 -1
  19. package/dist/esm/types/src/packages/nutui.react.scss.d.ts +1 -0
  20. package/dist/esm/types/src/packages/popover/popover.d.ts +1 -0
  21. package/dist/esm/types/src/packages/popover/popover.taro.d.ts +1 -0
  22. package/dist/esm/types/src/packages/tour/__test__/tour.spec.d.ts +1 -0
  23. package/dist/esm/types/src/packages/tour/demo.d.ts +4 -0
  24. package/dist/esm/types/src/packages/tour/demo.taro.d.ts +4 -0
  25. package/dist/esm/types/src/packages/tour/index.d.ts +3 -0
  26. package/dist/esm/types/src/packages/tour/index.taro.d.ts +3 -0
  27. package/dist/esm/types/src/packages/tour/tour.d.ts +31 -0
  28. package/dist/esm/types/src/packages/tour/tour.taro.d.ts +31 -0
  29. package/dist/esm/types/src/utils/typings.d.ts +1 -0
  30. package/dist/esm/types/src/utils/use-taro-rect.d.ts +1 -0
  31. package/dist/locales/base.d.ts +5 -0
  32. package/dist/locales/base.js +1 -1
  33. package/dist/locales/en-US.js +6 -1
  34. package/dist/locales/id-ID.js +6 -1
  35. package/dist/locales/tr-TR.js +6 -1
  36. package/dist/locales/zh-CN.js +6 -1
  37. package/dist/locales/zh-TW.js +6 -1
  38. package/dist/locales/zh-UG.js +6 -1
  39. package/dist/nutui.react.es.js +552 -341
  40. package/dist/nutui.react.umd.js +552 -341
  41. package/dist/packages/tour/tour.scss +78 -0
  42. package/dist/packages/uploader/uploader.scss +1 -0
  43. package/dist/style.css +1 -1
  44. package/dist/style.mjs +1 -1
  45. package/dist/styles/themes/default.scss +1 -0
  46. package/dist/styles/variables.scss +33 -0
  47. package/dist/types/index.d.ts +3 -1
  48. package/dist/types/locales/base.d.ts +5 -0
  49. package/dist/types/packages/configprovider/types.d.ts +1 -1
  50. package/dist/types/packages/popover/popover.d.ts +5 -0
  51. package/dist/types/packages/tour/index.d.ts +3 -0
  52. package/dist/types/packages/tour/tour.d.ts +95 -0
  53. package/dist/types/utils/typings.d.ts +1 -0
  54. 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
+ }
@@ -170,6 +170,7 @@
170
170
  &__c {
171
171
  width: 100%;
172
172
  height: 100%;
173
+ position: initial;
173
174
  border-radius: 6px;
174
175
  }
175
176