@nutui/nutui-react 1.4.4 → 1.4.5-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 (36) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/esm/Address.js +23 -21
  3. package/dist/esm/Cascader.js +234 -244
  4. package/dist/esm/Cell.js +3 -1
  5. package/dist/esm/ConfigProvider.js +2 -2
  6. package/dist/esm/NoticeBar.js +261 -32
  7. package/dist/esm/PullToRefresh.js +75 -81
  8. package/dist/esm/Tag.js +16 -11
  9. package/dist/esm/render-f8746530.js +10 -12
  10. package/dist/esm/types/src/packages/noticebar/noticebar.d.ts +5 -4
  11. package/dist/esm/types/src/packages/nutui.react.taro.d.ts +95 -95
  12. package/dist/esm/types/src/packages/nutui.react.taro.scss.d.ts +47 -47
  13. package/dist/esm/types/src/packages/nutui.taro.react.build.d.ts +48 -48
  14. package/dist/esm/types/src/packages/uploader/uploader.d.ts +1 -1
  15. package/dist/locales/base.js +1 -1
  16. package/dist/locales/en-US.js +1 -1
  17. package/dist/locales/id-ID.js +1 -1
  18. package/dist/locales/zh-CN.js +1 -1
  19. package/dist/locales/zh-TW.js +1 -1
  20. package/dist/locales/zh-UG.js +1 -1
  21. package/dist/nutui.react.es.js +536 -5512
  22. package/dist/nutui.react.umd.js +536 -5512
  23. package/dist/packages/noticebar/noticebar.scss +17 -0
  24. package/dist/packages/radio/radio.scss +3 -1
  25. package/dist/packages/row/row.scss +2 -0
  26. package/dist/packages/searchbar/searchbar.scss +1 -1
  27. package/dist/packages/tag/tag.scss +13 -5
  28. package/dist/packages/virtuallist/virtuallist.scss +24 -0
  29. package/dist/style.css +1 -1
  30. package/dist/style.es.js +1 -1
  31. package/dist/styles/temp.scss +2340 -0
  32. package/dist/styles/theme-dark.scss +7 -0
  33. package/dist/styles/theme-default.scss +11 -0
  34. package/dist/styles/variables.scss +1945 -710
  35. package/dist/types/index.d.ts +6 -5
  36. package/package.json +9 -4
@@ -116,6 +116,14 @@
116
116
  padding: $noticebar-box-padding;
117
117
  background: $noticebar-background;
118
118
  color: $noticebar-color;
119
+ .left-icon {
120
+ height: $noticebar-left-icon-width;
121
+ min-width: $noticebar-left-icon-width;
122
+ margin: $noticebar-lefticon-margin;
123
+ background-size: 100% 100%;
124
+ display: flex;
125
+ align-self: center;
126
+ }
119
127
  .horseLamp_list {
120
128
  margin: 0;
121
129
  padding: 0;
@@ -125,8 +133,17 @@
125
133
  display: flex;
126
134
  align-items: center;
127
135
  height: $noticebar-height;
136
+ width: 100%;
128
137
  }
129
138
  }
139
+ .nut-noticebar__inner {
140
+ display: flex;
141
+ height: 100%;
142
+ width: 100%;
143
+ -webkit-box-orient: vertical;
144
+ -webkit-box-direction: normal;
145
+ flex-direction: column;
146
+ }
130
147
 
131
148
  .go {
132
149
  align-self: center;
@@ -42,10 +42,12 @@
42
42
  align-items: center;
43
43
  padding: $radio-button-padding;
44
44
  font-size: $radio-button-font-size;
45
- background: #f6f7f9;
45
+ background: $radio-button-background;
46
46
  border-radius: $radio-button-border-radius;
47
47
  color: $radio-label-font-color;
48
48
  box-sizing: border-box;
49
+ border: 1px solid $radio-button-background;
50
+
49
51
  &--active {
50
52
  background: $radio-label-button-background;
51
53
  color: $radio-label-font-active-color;
@@ -20,6 +20,8 @@
20
20
  text-align: center;
21
21
  border-radius: $row-content-border-radius;
22
22
  background: $row-content-background-color;
23
+ font-size: 14px;
24
+
23
25
  &.flex-content-light {
24
26
  background: $row-content-light-background-color;
25
27
  }
@@ -120,7 +120,7 @@
120
120
  }
121
121
  .nut-searchbar-taro {
122
122
  .nut-searchbar__leftin-icon {
123
- top: 41%;
123
+ //top: 41%;
124
124
  }
125
125
  .nut-searchbar__rightin-icon {
126
126
  top: 41%;
@@ -5,39 +5,47 @@
5
5
  vertical-align: middle;
6
6
  margin-left: 4px;
7
7
  }
8
+
9
+ @mixin plain {
10
+ &.nut-tag--plain {
11
+ color: $tag-default-background-color;
12
+ border: $tag-border-width solid $tag-default-background-color;
13
+ }
14
+ }
15
+
8
16
  &--default {
9
17
  color: $tag-default-color;
10
18
  background: $tag-default-background-color;
11
19
  border: $tag-border-width solid transparent;
20
+ @include plain;
12
21
  }
13
22
 
14
23
  &--primary {
15
24
  color: $tag-default-color;
16
25
  background: $tag-primary-background-color;
17
26
  border: $tag-border-width solid transparent;
27
+ @include plain;
18
28
  }
19
29
 
20
30
  &--success {
21
31
  color: $tag-default-color;
22
32
  background: $tag-success-background-color;
23
33
  border: $tag-border-width solid transparent;
34
+ @include plain;
24
35
  }
25
36
 
26
37
  &--danger {
27
38
  color: $tag-default-color;
28
39
  background: $tag-danger-background-color;
29
40
  border: $tag-border-width solid transparent;
41
+ @include plain;
30
42
  }
31
43
 
32
44
  &--warning {
33
45
  color: $tag-default-color;
34
46
  background: $tag-warning-background-color;
35
47
  border: $tag-border-width solid transparent;
36
- }
37
- &--plain {
38
- color: $tag-plain-color;
39
- background: $tag-plain-background-color;
40
- border: $tag-border-width solid $tag-plain-color;
48
+ @include plain;
41
49
  }
42
50
  &--round {
43
51
  border-radius: 8px;
@@ -61,3 +61,27 @@
61
61
  }
62
62
  }
63
63
  }
64
+
65
+ .nut-virtuallist {
66
+ width: 100%;
67
+ overflow: scroll;
68
+ position: relative;
69
+ -webkit-overflow-scrolling: touch;
70
+ &-phantom {
71
+ position: absolute;
72
+ left: 0;
73
+ top: 0;
74
+ right: 0;
75
+ z-index: -1;
76
+ }
77
+ &-container {
78
+ left: 0;
79
+ right: 0;
80
+ top: 0;
81
+ position: absolute;
82
+ }
83
+ &-item {
84
+ overflow: hidden;
85
+ margin: $list-item-margin;
86
+ }
87
+ }