@nutui/nutui-react-taro 1.4.6-beta.2 → 1.4.7-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.
Files changed (63) hide show
  1. package/dist/esm/Address.js +3 -3
  2. package/dist/esm/Audio.js +3 -3
  3. package/dist/esm/Avatar.js +3 -3
  4. package/dist/esm/Button.js +2 -2
  5. package/dist/esm/Dialog.js +3 -3
  6. package/dist/esm/Elevator.js +2 -2
  7. package/dist/esm/ImagePreview.js +3 -3
  8. package/dist/esm/Notify.js +2 -2
  9. package/dist/esm/NumberKeyboard.js +2 -2
  10. package/dist/esm/Signature.js +3 -3
  11. package/dist/esm/Skeleton.js +4 -4
  12. package/dist/esm/Swipe.js +2 -2
  13. package/dist/esm/Swiper.js +2 -2
  14. package/dist/esm/Tabbar.js +2 -2
  15. package/dist/esm/TabbarItem.js +2 -2
  16. package/dist/esm/Uploader.js +3 -3
  17. package/dist/esm/{address.taro-1765a37c.js → address.taro-15ad9509.js} +1 -1
  18. package/dist/esm/{audio.taro-cf530b91.js → audio.taro-c2cdbe18.js} +1 -1
  19. package/dist/esm/{avatar.taro-1d2bf09a.js → avatar.taro-c17c3d15.js} +1 -1
  20. package/dist/esm/{button.taro-b7c5f5a7.js → button.taro-dc4795a3.js} +4 -2
  21. package/dist/esm/{dialog.taro-0f64e21a.js → dialog.taro-54df2e3f.js} +1 -1
  22. package/dist/esm/{elevator.taro-68cfaaee.js → elevator.taro-1d749ab0.js} +1 -0
  23. package/dist/esm/{imagepreview.taro-83481e13.js → imagepreview.taro-e7ae4705.js} +1 -1
  24. package/dist/esm/{notify.taro-308e5892.js → notify.taro-c9ea8d68.js} +1 -1
  25. package/dist/esm/{numberkeyboard.taro-d2ccbce5.js → numberkeyboard.taro-fd9a4c1a.js} +3 -2
  26. package/dist/esm/nutui-react.es.js +16 -16
  27. package/dist/esm/{signature.taro-d7a70ce0.js → signature.taro-45d1dde3.js} +1 -1
  28. package/dist/esm/{skeleton.taro-6821b2c6.js → skeleton.taro-38e2fca2.js} +1 -1
  29. package/dist/esm/{swipe.taro-e6c2b808.js → swipe.taro-1eb95b21.js} +5 -2
  30. package/dist/esm/{swiper.taro-852f6615.js → swiper.taro-8164df5b.js} +4 -0
  31. package/dist/esm/{tabbar.taro-86cece39.js → tabbar.taro-08e48c43.js} +1 -1
  32. package/dist/esm/{tabbaritem.taro-f4a91070.js → tabbaritem.taro-3643f585.js} +7 -7
  33. package/dist/esm/types/src/packages/button/button.d.ts +1 -0
  34. package/dist/esm/types/src/packages/button/button.taro.d.ts +1 -0
  35. package/dist/esm/types/src/packages/elevator/elevator.d.ts +3 -1
  36. package/dist/esm/types/src/packages/elevator/elevator.taro.d.ts +3 -1
  37. package/dist/esm/types/src/packages/notify/notify.d.ts +0 -1
  38. package/dist/esm/types/src/packages/numberkeyboard/numberkeyboard.d.ts +1 -0
  39. package/dist/esm/types/src/packages/numberkeyboard/numberkeyboard.taro.d.ts +1 -0
  40. package/dist/esm/types/src/packages/swipe/swipe.d.ts +4 -1
  41. package/dist/esm/types/src/packages/swipe/swipe.taro.d.ts +4 -1
  42. package/dist/esm/types/src/packages/tabbar/demo.d.ts +1 -0
  43. package/dist/esm/types/src/packages/tabbaritem/tabbaritem.d.ts +1 -0
  44. package/dist/esm/types/src/packages/tabbaritem/tabbaritem.taro.d.ts +1 -0
  45. package/dist/esm/{uploader.taro-1d745f4a.js → uploader.taro-c70d040d.js} +1 -1
  46. package/dist/locales/base.js +1 -1
  47. package/dist/locales/en-US.js +1 -1
  48. package/dist/locales/id-ID.js +1 -1
  49. package/dist/locales/zh-CN.js +1 -1
  50. package/dist/locales/zh-TW.js +1 -1
  51. package/dist/locales/zh-UG.js +1 -1
  52. package/dist/nutui.react.es.js +58 -28
  53. package/dist/nutui.react.umd.js +58 -28
  54. package/dist/packages/button/button.scss +23 -1
  55. package/dist/packages/elevator/elevator.scss +1 -1
  56. package/dist/packages/tabbar/tabbar.scss +17 -3
  57. package/dist/packages/tabbaritem/tabbaritem.scss +23 -14
  58. package/dist/style.css +1 -1
  59. package/dist/style.es.js +1 -1
  60. package/dist/styles/variables.scss +20 -2
  61. package/dist/types/index.d.ts +11 -2
  62. package/package.json +8 -7
  63. package/dist/styles/temp.scss +0 -2340
@@ -25,6 +25,7 @@
25
25
  &--warning {
26
26
  color: $dark6;
27
27
  }
28
+
28
29
  &--plain {
29
30
  background: $dark6;
30
31
 
@@ -55,6 +56,7 @@
55
56
  }
56
57
  }
57
58
  }
59
+
58
60
  .nut-button {
59
61
  position: relative;
60
62
  display: inline-block;
@@ -73,7 +75,7 @@
73
75
  touch-action: manipulation;
74
76
 
75
77
  .text {
76
- margin-left: 5px;
78
+ margin-left: $button-text-icon-width;
77
79
  }
78
80
 
79
81
  &::before {
@@ -90,6 +92,7 @@
90
92
  opacity: 0;
91
93
  content: ' ';
92
94
  }
95
+
93
96
  &::after {
94
97
  border: none;
95
98
  }
@@ -182,6 +185,10 @@
182
185
  width: 100%;
183
186
  height: $button-large-height;
184
187
  line-height: $button-large-line-height;
188
+
189
+ .text {
190
+ margin-left: $button-text-icon-large-width;
191
+ }
185
192
  }
186
193
 
187
194
  &--normal {
@@ -194,6 +201,21 @@
194
201
  line-height: $button-small-line-height;
195
202
  padding: $button-small-padding;
196
203
  font-size: $button-small-font-size;
204
+
205
+ .text {
206
+ margin-left: $button-text-icon-small-width;
207
+ }
208
+ }
209
+
210
+ &--mini {
211
+ height: $button-mini-height;
212
+ line-height: $button-mini-line-height;
213
+ padding: $button-mini-padding;
214
+ font-size: $button-mini-font-size;
215
+
216
+ .text {
217
+ margin-left: $button-text-icon-mini-width;
218
+ }
197
219
  }
198
220
 
199
221
  &--block {
@@ -32,7 +32,7 @@
32
32
  width: 100%;
33
33
  display: block;
34
34
  background-color: $elevator-list-inner-bg-color;
35
- // overflow: auto;
35
+ overflow: auto;
36
36
  }
37
37
  &__item {
38
38
  display: block;
@@ -3,14 +3,17 @@
3
3
  background: $dark4;
4
4
  }
5
5
  }
6
+
6
7
  .nut-tabbar {
7
8
  border: 0px;
8
9
  box-shadow: $tabbar-box-shadow;
9
10
  border-bottom: $tabbar-border-bottom;
10
11
  border-top: $tabbar-border-top;
12
+ height: $tabbar-height;
11
13
  width: 100%;
12
14
  display: flex;
13
- padding: 7px 0;
15
+ justify-content: center;
16
+ align-items: center;
14
17
  box-sizing: border-box;
15
18
  background: $white;
16
19
 
@@ -26,7 +29,18 @@
26
29
  }
27
30
 
28
31
  &__safebottom {
29
- padding-bottom: constant(safe-area-inset-bottom);
30
- padding-bottom: env(safe-area-inset-bottom);
32
+ bottom: constant(safe-area-inset-bottom);
33
+ bottom: env(safe-area-inset-bottom);
34
+
35
+ &::after {
36
+ content: '';
37
+ z-index: 90;
38
+ position: fixed;
39
+ left: 0;
40
+ bottom: 0;
41
+ height: env(safe-area-inset-bottom);
42
+ width: 100%;
43
+ background-color: #fff;
44
+ }
31
45
  }
32
46
  }
@@ -1,6 +1,8 @@
1
+
1
2
  .nut-theme-dark {
2
3
  .nut-tabbar-item {
3
4
  color: $dark1;
5
+
4
6
  &--active {
5
7
  color: $primary-color;
6
8
  }
@@ -8,14 +10,15 @@
8
10
  }
9
11
 
10
12
  .nut-tabbar-item {
13
+ display: flex;
14
+ flex-direction: column;
15
+ justify-content: center;
16
+ align-items: center;
11
17
  flex: 1;
12
18
  text-align: center;
13
19
  text-decoration: none;
14
20
  color: $gray1;
15
21
  height: 100%;
16
- display: flex;
17
- justify-content: center;
18
- align-items: center;
19
22
 
20
23
  &--active {
21
24
  color: $primary-color;
@@ -34,26 +37,24 @@
34
37
  border: 1px solid $white;
35
38
  border-radius: 7px;
36
39
  text-align: center;
37
- top: -2px;
38
- right: -7px;
40
+ top: calc(50% - 6px);
41
+ right: calc(50% - 16px);
39
42
  box-shadow: 0 0 0 1px $white;
40
43
  font-size: $font-size-1;
41
44
  color: $white;
42
45
  z-index: 1;
43
46
  }
47
+
44
48
  &__dot {
45
49
  position: absolute;
46
50
  width: 7px;
47
51
  height: 7px;
52
+ border: 0;
48
53
  border-radius: 7px;
49
54
  padding: 0px;
50
55
  background: $tabbar-active-color;
51
- text-align: center;
52
- font-size: 12px;
53
- font-weight: normal;
54
- color: #fff;
55
- top: 0;
56
- right: 0;
56
+ top: $tabbar-dot-top;
57
+ right: calc(50% - $tabbar-dot-right);
57
58
  transform: translate(50%, -50%);
58
59
  }
59
60
 
@@ -62,6 +63,8 @@
62
63
  font-size: $tabbar-item-text-font-size;
63
64
  color: $white;
64
65
  padding: 1px 2px 2px 3px;
66
+ top: calc(-50% + 6px);
67
+ right: calc(-50%);
65
68
  }
66
69
 
67
70
  &__nums {
@@ -69,20 +72,26 @@
69
72
  font-size: $tabbar-item-text-font-size;
70
73
  color: $white;
71
74
  padding: 2px 1px 2px 2px;
75
+ top: calc(-50% + 6px);
76
+ right: calc(-50% - 8px);
72
77
  }
78
+
73
79
  &__icon {
74
80
  display: block;
75
81
  background-size: 100% 100%;
76
82
  background-position: center center;
77
83
  }
84
+
78
85
  &--nav-word {
79
- font-size: $font-size-0;
80
- line-height: $tabbar-item-text-line-height;
81
86
  display: block;
87
+ font-size: $font-size-0;
88
+ margin-top: $tabbar-word-margin-top;
82
89
  }
90
+
83
91
  &--big-word {
84
92
  font-size: $font-size-large;
85
- line-height: 1;
93
+ margin-top: 0;
94
+ line-height: $tabbar-item-text-line-height;
86
95
  }
87
96
  }
88
97
  }