@nutui/nutui-react-taro 2.0.0-alpha.11 → 2.0.0-alpha.12

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 (103) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/esm/ActionSheet/style/style.css +1 -1
  3. package/dist/esm/ActionSheet.js +1 -3
  4. package/dist/esm/CountDown/style/style.css +1 -1
  5. package/dist/esm/CountDown.js +2 -3
  6. package/dist/esm/Ellipsis/style/style.css +1 -1
  7. package/dist/esm/Ellipsis.js +1 -1
  8. package/dist/esm/SearchBar/style/style.css +1 -1
  9. package/dist/esm/SearchBar.js +1 -4
  10. package/dist/esm/ShortPassword/style/style.css +1 -1
  11. package/dist/esm/ShortPassword.js +3 -4
  12. package/dist/esm/Toast/style/style.css +1 -1
  13. package/dist/esm/Toast.js +2 -3
  14. package/dist/esm/VirtualList/style/style.css +1 -1
  15. package/dist/esm/VirtualList.js +2 -2
  16. package/dist/esm/actionsheet.taro-697a594b.js +54 -0
  17. package/dist/esm/{countdown.taro-22200811.js → countdown.taro-c399cc08.js} +17 -10
  18. package/dist/esm/{ellipsis.taro-02765890.js → ellipsis.taro-f423affa.js} +13 -6
  19. package/dist/esm/nutui-react.es.js +7 -7
  20. package/dist/esm/searchbar.taro-09468fff.js +122 -0
  21. package/dist/esm/shortpassword.taro-eabbde1b.js +90 -0
  22. package/dist/esm/toast.taro-b2937e7c.js +171 -0
  23. package/dist/esm/types/src/packages/actionsheet/actionsheet.d.ts +11 -15
  24. package/dist/esm/types/src/packages/actionsheet/actionsheet.taro.d.ts +11 -15
  25. package/dist/esm/types/src/packages/actionsheet/index.d.ts +1 -0
  26. package/dist/esm/types/src/packages/actionsheet/index.taro.d.ts +1 -0
  27. package/dist/esm/types/src/packages/configprovider/configprovider.d.ts +2 -1
  28. package/dist/esm/types/src/packages/configprovider/configprovider.taro.d.ts +2 -1
  29. package/dist/esm/types/src/packages/configprovider/index.d.ts +1 -0
  30. package/dist/esm/types/src/packages/configprovider/index.taro.d.ts +1 -0
  31. package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -0
  32. package/dist/esm/types/src/packages/countdown/countdown.d.ts +5 -4
  33. package/dist/esm/types/src/packages/countdown/countdown.taro.d.ts +5 -4
  34. package/dist/esm/types/src/packages/countdown/index.d.ts +1 -0
  35. package/dist/esm/types/src/packages/countdown/index.taro.d.ts +1 -0
  36. package/dist/esm/types/src/packages/ellipsis/ellipsis.taro.d.ts +1 -0
  37. package/dist/esm/types/src/packages/searchbar/index.d.ts +1 -0
  38. package/dist/esm/types/src/packages/searchbar/index.taro.d.ts +1 -0
  39. package/dist/esm/types/src/packages/searchbar/searchbar.d.ts +4 -31
  40. package/dist/esm/types/src/packages/searchbar/searchbar.taro.d.ts +4 -31
  41. package/dist/esm/types/src/packages/shortpassword/index.d.ts +1 -0
  42. package/dist/esm/types/src/packages/shortpassword/index.taro.d.ts +1 -0
  43. package/dist/esm/types/src/packages/shortpassword/shortpassword.d.ts +17 -20
  44. package/dist/esm/types/src/packages/shortpassword/shortpassword.taro.d.ts +17 -20
  45. package/dist/esm/types/src/packages/toast/Notification.d.ts +9 -13
  46. package/dist/esm/types/src/packages/toast/index.d.ts +1 -0
  47. package/dist/esm/types/src/packages/toast/index.taro.d.ts +1 -0
  48. package/dist/esm/types/src/packages/toast/toast.d.ts +19 -26
  49. package/dist/esm/types/src/packages/toast/toast.taro.d.ts +9 -11
  50. package/dist/esm/types/src/packages/virtuallist/index.d.ts +1 -0
  51. package/dist/esm/types/src/packages/virtuallist/index.taro.d.ts +1 -0
  52. package/dist/esm/types/src/packages/virtuallist/type.d.ts +0 -18
  53. package/dist/esm/types/src/packages/virtuallist/utils.d.ts +3 -3
  54. package/dist/esm/types/src/packages/virtuallist/virtuallist.d.ts +15 -4
  55. package/dist/esm/types/src/packages/virtuallist/virtuallist.taro.d.ts +13 -14
  56. package/dist/esm/{virtuallist.taro-99f03769.js → virtuallist.taro-97d3403a.js} +27 -30
  57. package/dist/locales/base.js +1 -1
  58. package/dist/locales/en-US.js +1 -1
  59. package/dist/locales/id-ID.js +1 -1
  60. package/dist/locales/tr-TR.js +10 -2
  61. package/dist/locales/zh-CN.js +1 -1
  62. package/dist/locales/zh-TW.js +1 -1
  63. package/dist/locales/zh-UG.js +1 -1
  64. package/dist/nutui.react.es.js +393 -422
  65. package/dist/nutui.react.umd.js +393 -422
  66. package/dist/packages/actionsheet/actionsheet.scss +26 -73
  67. package/dist/packages/countdown/countdown.scss +2 -0
  68. package/dist/packages/ellipsis/ellipsis.scss +4 -0
  69. package/dist/packages/searchbar/searchbar.scss +13 -71
  70. package/dist/packages/shortpassword/shortpassword.scss +1 -88
  71. package/dist/packages/toast/toast.scss +20 -7
  72. package/dist/packages/virtuallist/virtuallist.scss +0 -12
  73. package/dist/style.css +1 -1
  74. package/dist/style.mjs +1 -1
  75. package/dist/styles/variables-jmapp.scss +56 -60
  76. package/dist/styles/variables.scss +30 -53
  77. package/dist/types/packages/actionsheet/actionsheet.taro.d.ts +11 -15
  78. package/dist/types/packages/actionsheet/index.taro.d.ts +1 -0
  79. package/dist/types/packages/configprovider/configprovider.d.ts +2 -1
  80. package/dist/types/packages/configprovider/configprovider.taro.d.ts +2 -1
  81. package/dist/types/packages/configprovider/index.d.ts +1 -0
  82. package/dist/types/packages/configprovider/index.taro.d.ts +1 -0
  83. package/dist/types/packages/configprovider/types.d.ts +1 -0
  84. package/dist/types/packages/countdown/countdown.taro.d.ts +5 -4
  85. package/dist/types/packages/countdown/index.taro.d.ts +1 -0
  86. package/dist/types/packages/ellipsis/ellipsis.taro.d.ts +1 -0
  87. package/dist/types/packages/overlay/index.d.ts +3 -0
  88. package/dist/types/packages/overlay/overlay.d.ts +14 -0
  89. package/dist/types/packages/searchbar/index.taro.d.ts +1 -0
  90. package/dist/types/packages/searchbar/searchbar.taro.d.ts +4 -31
  91. package/dist/types/packages/shortpassword/index.taro.d.ts +1 -0
  92. package/dist/types/packages/shortpassword/shortpassword.taro.d.ts +17 -20
  93. package/dist/types/packages/toast/index.taro.d.ts +1 -0
  94. package/dist/types/packages/toast/toast.taro.d.ts +9 -11
  95. package/dist/types/packages/virtuallist/index.taro.d.ts +1 -0
  96. package/dist/types/packages/virtuallist/type.d.ts +0 -17
  97. package/dist/types/packages/virtuallist/utils.d.ts +3 -3
  98. package/dist/types/packages/virtuallist/virtuallist.taro.d.ts +13 -14
  99. package/package.json +1 -1
  100. package/dist/esm/actionsheet.taro-d2217152.js +0 -61
  101. package/dist/esm/searchbar.taro-37ade36e.js +0 -159
  102. package/dist/esm/shortpassword.taro-f7292032.js +0 -146
  103. package/dist/esm/toast.taro-92c10e1d.js +0 -114
@@ -1,74 +1,29 @@
1
1
 
2
- .nut-theme-dark {
3
- .nut-actionsheet {
4
- background-color: $dark5;
5
- color: $dark1;
6
-
7
- &__menu {
8
- .nut-actionsheet__item {
9
- background-color: $dark5;
10
- color: $dark1 !important;
11
-
12
- .subdesc {
13
- color: $dark2;
14
- }
15
- }
16
-
17
- .nut-actionsheet__item:hover {
18
- background-color: $dark5;
19
- }
20
- }
21
-
22
- .nut-actionsheet__cancel {
23
- background-color: $dark5;
24
- color: $dark2;
25
- border-top: none;
26
- }
27
-
28
- .nut-actionsheet__title {
29
- background-color: $dark5;
30
- color: $dark1;
31
- border-top: none;
32
- }
33
-
34
- .description {
35
- background-color: $dark5;
36
- color: $dark2;
37
- }
38
- }
39
- }
40
-
41
2
  .nut-actionsheet {
42
3
  display: block;
43
4
  padding-bottom: constant(safe-area-inset-bottom);
44
5
  padding-bottom: env(safe-area-inset-bottom);
6
+ text-align: center;
45
7
 
46
8
  .nut-actionsheet__title {
47
9
  display: block;
48
10
  padding: 10px;
49
11
  margin: 0;
50
- text-align: center;
51
12
  background-color: $white;
52
- border-bottom: 1px solid $light-color;
53
- font-size: $font-size-base;
13
+ border-bottom: 1px solid $actionsheet-border-color;
14
+ font-size: $font-size-large;
54
15
  color: $title-color;
55
16
  }
56
17
 
57
- .nut-actionsheet-modal {
58
- .nut-actionsheet__title,
59
- .nut-actionsheet-sub-title {
60
- padding: 5px 0;
61
- }
62
-
63
- .nut-actionsheet-sub-title {
64
- display: block;
65
- font-size: $font-size-small;
66
- color: $title-color;
67
- margin-inline-start: 0px;
68
- }
18
+ .nut-actionsheet__description {
19
+ padding: 10px;
20
+ display: block;
21
+ font-size: $font-size-base;
22
+ color: $title-color2;
23
+ margin-inline-start: 0px;
69
24
  }
70
25
 
71
- .nut-actionsheet__menu {
26
+ .nut-actionsheet__list {
72
27
  display: block;
73
28
  list-style: none;
74
29
  padding: 0;
@@ -78,34 +33,32 @@
78
33
  .nut-actionsheet__cancel,
79
34
  .nut-actionsheet__item {
80
35
  display: block;
81
- // height: 24px;
82
36
  padding: 10px;
83
- line-height: 24px;
37
+ text-align: $actionsheet-item-text-align;
38
+ line-height: $actionsheet-item-line-height;
84
39
  font-size: $font-size-base;
85
- color: $title-color;
86
- text-align: center;
40
+ color: $actionsheet-item-color;
87
41
  background-color: $background-color3;
88
42
  cursor: pointer;
89
- }
90
43
 
91
- .description {
92
- font-size: $font-size-2;
93
- color: $title-color2;
94
- }
44
+ &-description {
45
+ display: block;
46
+ font-size: $font-size-small;
47
+ color: $title-color2;
48
+ }
95
49
 
96
- .subdesc {
97
- display: block;
98
- font-size: $font-size-small;
99
- color: $title-color2;
100
- }
50
+ &.danger {
51
+ color: $actionsheet-item-danger;
52
+ }
101
53
 
102
- .nut-actionsheet__item-disabled {
103
- color: #e1e1e1 !important;
104
- cursor: not-allowed;
54
+ &.disabled {
55
+ color: #e1e1e1 !important;
56
+ cursor: not-allowed;
57
+ }
105
58
  }
106
59
 
107
60
  .nut-actionsheet__cancel {
108
61
  margin-top: 5px;
109
- border-top: 1px solid $light-color;
62
+ border-top: 1px solid $actionsheet-border-color;
110
63
  }
111
64
  }
@@ -1,3 +1,5 @@
1
1
  .nut-countdown {
2
2
  display: $countdown-display;
3
+ color: $countdown-color;
4
+ font-size: $countdown-font-size;
3
5
  }
@@ -15,3 +15,7 @@
15
15
  position: absolute;
16
16
  top: -999999px;
17
17
  }
18
+
19
+ .nut-ellipsis-width {
20
+ width: fit-content;
21
+ }
@@ -1,46 +1,3 @@
1
- .nut-theme-dark {
2
- .nut-searchbar {
3
- background: $dark5;
4
-
5
- &__label {
6
- color: $dark1;
7
- }
8
-
9
- &__action-text {
10
- color: $dark1;
11
- }
12
-
13
- .nut-searchbar__input-clear {
14
- & .nut-searchbar__nut-icon-mask-close {
15
- color: $dark1;
16
-
17
- &:hover {
18
- cursor: pointer;
19
- color: $dark1;
20
- }
21
- }
22
- }
23
-
24
- &__right-search-icon,
25
- &__left-search-icon {
26
- color: $dark1;
27
- }
28
-
29
- &__leftout-icon,
30
- &__rightout-icon {
31
- i {
32
- color: $dark1;
33
- }
34
- }
35
- }
36
- }
37
-
38
- .val-text {
39
- font-size: 12px;
40
- color: $title-color2;
41
- padding: 0 20px;
42
- }
43
-
44
1
  .nut-searchbar {
45
2
  display: flex;
46
3
  align-items: center;
@@ -49,6 +6,7 @@
49
6
  background: $searchbar-background;
50
7
  color: $gray1;
51
8
  box-sizing: border-box;
9
+ justify-content: center;
52
10
 
53
11
  &__content {
54
12
  position: relative;
@@ -65,11 +23,12 @@
65
23
  padding: 0 5px 0 10px;
66
24
  }
67
25
 
68
- &__rightin-icon {
26
+ &__rightin {
27
+ display: flex;
69
28
  padding: 0 5px;
70
29
  }
71
30
 
72
- .nut-searchbar__input-box {
31
+ &__input-box {
73
32
  display: flex;
74
33
  align-items: center;
75
34
  flex: 1;
@@ -89,6 +48,7 @@
89
48
  color: $searchbar-input-text-color;
90
49
  caret-color: $searchbar-input-curror-color;
91
50
  background: transparent;
51
+ text-align: $searchbar-input-text-align;
92
52
  }
93
53
 
94
54
  &__round {
@@ -112,34 +72,16 @@
112
72
  }
113
73
 
114
74
  &__left {
115
- text-align: left;
75
+ display: flex;
76
+ padding: $searchbar-left-padding;
77
+ font-size: $searchbar-left-fontsize;
78
+ color: $searchbar-left-color;
116
79
  }
117
80
 
118
81
  &__right {
119
- text-align: right;
120
- }
121
-
122
- &__center {
123
- text-align: center;
124
- }
125
-
126
- &__label {
127
- padding: $searchbar-label-padding;
128
- font-size: $searchbar-label-fontsize;
129
- color: $searchbar-label-color;
130
- }
131
-
132
- &__action-text {
133
- padding: $searchbar-action-text-padding;
134
- font-size: $searchbar-action-text-fontsize;
135
- color: $searchbar-action-text-color;
136
- }
137
-
138
- &__leftout-icon {
139
- margin-right: 10px;
140
- }
141
-
142
- &__rightout-icon {
143
- margin-left: 10px;
82
+ display: flex;
83
+ padding: $searchbar-right-padding;
84
+ font-size: $searchbar-right-fontsize;
85
+ color: $searchbar-right-color;
144
86
  }
145
87
  }
@@ -1,87 +1,4 @@
1
1
 
2
- .nut-theme-dark {
3
- .nut-shortpassword {
4
- &__title {
5
- color: $dark1;
6
- }
7
-
8
- &__subtitle {
9
- color: $dark2;
10
- }
11
-
12
- &__message__forget {
13
- color: $dark3;
14
- }
15
-
16
- &__input-real {
17
- background-color: $dark6;
18
- border-radius: 4px;
19
- }
20
-
21
- &__input-site {
22
- background-color: $dark6;
23
- }
24
-
25
- &__input-fake {
26
- border: none;
27
- background-color: $dark4;
28
-
29
- &__li__icon {
30
- background-color: $dark1;
31
- }
32
- }
33
-
34
- &__message__forget {
35
- color: $dark2;
36
- }
37
- }
38
- }
39
-
40
- .nut-shortpsd-title {
41
- line-height: 1;
42
- font-size: $font-size-3;
43
- color: $title-color;
44
- }
45
-
46
- .nut-shortpsd-subtitle {
47
- display: block;
48
- margin-top: 12px;
49
- margin-bottom: 24px;
50
- line-height: 1;
51
- font-size: $font-size-1;
52
- color: $text-color;
53
- }
54
-
55
- .nut-shortpsdWx-subtitle {
56
- display: block;
57
- margin-top: 12px;
58
- line-height: 1;
59
- font-size: $font-size-1;
60
- color: $text-color;
61
- }
62
-
63
- .nut-input-w {
64
- padding: 24px 0 10px 0;
65
- text-align: center;
66
- position: relative;
67
-
68
- .nut-input-site {
69
- width: 247px;
70
- height: 41px;
71
- border-radius: 4px;
72
- }
73
-
74
- .nut-input-real {
75
- position: absolute;
76
- right: 247px;
77
- width: 247px;
78
- height: 41px;
79
- outline: 0 none;
80
- border: 0;
81
- text-decoration: none;
82
- }
83
- }
84
-
85
2
  .nut-shortpassword {
86
3
  &__title {
87
4
  line-height: 1;
@@ -89,7 +6,7 @@
89
6
  color: $title-color;
90
7
  }
91
8
 
92
- &__subtitle {
9
+ &__description {
93
10
  margin-top: 12px;
94
11
  margin-bottom: 24px;
95
12
  line-height: 1;
@@ -168,10 +85,6 @@
168
85
  color: $shortpassword-forget;
169
86
  display: flex;
170
87
  align-items: center;
171
-
172
- &-tips {
173
- margin-left: 3px;
174
- }
175
88
  }
176
89
  }
177
90
 
@@ -10,11 +10,15 @@
10
10
  .nut-toast {
11
11
  position: fixed;
12
12
  left: 0;
13
- bottom: 150px;
13
+ top: 0;
14
14
  width: 100%;
15
+ height: 100%;
15
16
  text-align: center;
16
17
  pointer-events: none;
17
18
  z-index: 9999;
19
+ &__overlay-default {
20
+ --nutui-overlay-bg-color: rgba(0, 0, 0, 0);
21
+ }
18
22
  &-small {
19
23
  .nut-toast__inner {
20
24
  font-size: $font-size-small;
@@ -29,7 +33,7 @@
29
33
  display: flex;
30
34
  align-items: center;
31
35
  justify-content: center;
32
- pointer-events: auto;
36
+ pointer-events: none;
33
37
  height: 100%;
34
38
  background: $toast-cover-bg-color;
35
39
  }
@@ -38,12 +42,25 @@
38
42
  font-size: $toast-text-font-size;
39
43
  min-width: 40%;
40
44
  max-width: 65%;
41
- text-align: center;
45
+ text-align: $toast-inner-text-align;
42
46
  padding: $toast-inner-padding;
43
47
  word-break: break-all;
44
48
  background: $toast-inner-bg-color;
45
49
  border-radius: $toast-inner-border-radius;
46
50
  color: $toast-font-color;
51
+ position: absolute;
52
+ left: 50%;
53
+ top: $toast-inner-top;
54
+ transform: translate(-50%, -50%);
55
+ }
56
+ &-center {
57
+ top: var(--nutui-toast-inner-top, 50%);
58
+ }
59
+ &-bottom {
60
+ top: var(--nutui-toast-inner-top, 80%);
61
+ }
62
+ &-top {
63
+ top: var(--nutui-toast-inner-top, 20%);
47
64
  }
48
65
  &-text {
49
66
  font-size: $toast-text-font-size;
@@ -66,10 +83,6 @@
66
83
  margin-bottom: 8px;
67
84
  }
68
85
  }
69
- &-center {
70
- top: 50%;
71
- transform: translateY(-50%);
72
- }
73
86
  &-loading {
74
87
  .nut-toast__inner {
75
88
  display: inline-flex;
@@ -1,15 +1,3 @@
1
- .nut-theme-dark {
2
- .nut-virtualList-demo-box {
3
- li {
4
- background-color: $dark5;
5
- color: $dark1;
6
- }
7
- .nut-vertical-items li {
8
- box-shadow: 0 1px 6px 0 $dark5;
9
- }
10
- }
11
- }
12
-
13
1
  .nut-horizontal-items {
14
2
  float: left;
15
3
  li {