@nutui/nutui-react 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.
- package/CHANGELOG.md +14 -0
- package/dist/esm/ActionSheet/style/style.css +1 -1
- package/dist/esm/ActionSheet.js +28 -37
- package/dist/esm/CountDown/style/style.css +1 -1
- package/dist/esm/CountDown.js +20 -15
- package/dist/esm/Ellipsis/style/style.css +1 -1
- package/dist/esm/SearchBar/style/style.css +1 -1
- package/dist/esm/SearchBar.js +33 -87
- package/dist/esm/ShortPassword/style/style.css +1 -1
- package/dist/esm/ShortPassword.js +65 -133
- package/dist/esm/Toast/style/style.css +1 -1
- package/dist/esm/Toast.js +86 -102
- package/dist/esm/VirtualList/style/style.css +1 -1
- package/dist/esm/VirtualList.js +29 -25
- package/dist/esm/types/src/packages/actionsheet/actionsheet.d.ts +11 -15
- package/dist/esm/types/src/packages/actionsheet/actionsheet.taro.d.ts +11 -15
- package/dist/esm/types/src/packages/actionsheet/index.d.ts +1 -0
- package/dist/esm/types/src/packages/actionsheet/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/configprovider/configprovider.d.ts +2 -1
- package/dist/esm/types/src/packages/configprovider/configprovider.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/configprovider/index.d.ts +1 -0
- package/dist/esm/types/src/packages/configprovider/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -0
- package/dist/esm/types/src/packages/countdown/countdown.d.ts +5 -4
- package/dist/esm/types/src/packages/countdown/countdown.taro.d.ts +5 -4
- package/dist/esm/types/src/packages/countdown/index.d.ts +1 -0
- package/dist/esm/types/src/packages/countdown/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/ellipsis/ellipsis.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/searchbar/index.d.ts +1 -0
- package/dist/esm/types/src/packages/searchbar/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/searchbar/searchbar.d.ts +4 -31
- package/dist/esm/types/src/packages/searchbar/searchbar.taro.d.ts +4 -31
- package/dist/esm/types/src/packages/shortpassword/index.d.ts +1 -0
- package/dist/esm/types/src/packages/shortpassword/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/shortpassword/shortpassword.d.ts +17 -20
- package/dist/esm/types/src/packages/shortpassword/shortpassword.taro.d.ts +17 -20
- package/dist/esm/types/src/packages/toast/Notification.d.ts +9 -13
- package/dist/esm/types/src/packages/toast/index.d.ts +1 -0
- package/dist/esm/types/src/packages/toast/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/toast/toast.d.ts +19 -26
- package/dist/esm/types/src/packages/toast/toast.taro.d.ts +9 -11
- package/dist/esm/types/src/packages/virtuallist/index.d.ts +1 -0
- package/dist/esm/types/src/packages/virtuallist/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/virtuallist/type.d.ts +0 -18
- package/dist/esm/types/src/packages/virtuallist/utils.d.ts +3 -3
- package/dist/esm/types/src/packages/virtuallist/virtuallist.d.ts +15 -4
- package/dist/esm/types/src/packages/virtuallist/virtuallist.taro.d.ts +13 -14
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +10 -2
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +442 -512
- package/dist/nutui.react.umd.js +442 -512
- package/dist/packages/actionsheet/actionsheet.scss +26 -73
- package/dist/packages/countdown/countdown.scss +2 -0
- package/dist/packages/ellipsis/ellipsis.scss +4 -0
- package/dist/packages/searchbar/searchbar.scss +13 -71
- package/dist/packages/shortpassword/shortpassword.scss +1 -88
- package/dist/packages/toast/toast.scss +20 -7
- package/dist/packages/virtuallist/virtuallist.scss +0 -12
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/variables-jmapp.scss +56 -60
- package/dist/styles/variables.scss +30 -53
- package/dist/types/packages/actionsheet/actionsheet.d.ts +11 -15
- package/dist/types/packages/actionsheet/index.d.ts +1 -0
- package/dist/types/packages/configprovider/configprovider.d.ts +2 -1
- package/dist/types/packages/configprovider/index.d.ts +1 -0
- package/dist/types/packages/configprovider/types.d.ts +1 -0
- package/dist/types/packages/countdown/countdown.d.ts +5 -4
- package/dist/types/packages/countdown/index.d.ts +1 -0
- package/dist/types/packages/searchbar/index.d.ts +1 -0
- package/dist/types/packages/searchbar/searchbar.d.ts +4 -31
- package/dist/types/packages/shortpassword/index.d.ts +1 -0
- package/dist/types/packages/shortpassword/shortpassword.d.ts +17 -20
- package/dist/types/packages/toast/Notification.d.ts +9 -13
- package/dist/types/packages/toast/index.d.ts +1 -0
- package/dist/types/packages/toast/toast.d.ts +19 -26
- package/dist/types/packages/virtuallist/index.d.ts +1 -0
- package/dist/types/packages/virtuallist/type.d.ts +0 -18
- package/dist/types/packages/virtuallist/utils.d.ts +3 -3
- package/dist/types/packages/virtuallist/virtuallist.d.ts +15 -4
- package/package.json +1 -1
|
@@ -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 $
|
|
53
|
-
font-size: $font-size-
|
|
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-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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-
|
|
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
|
-
|
|
37
|
+
text-align: $actionsheet-item-text-align;
|
|
38
|
+
line-height: $actionsheet-item-line-height;
|
|
84
39
|
font-size: $font-size-base;
|
|
85
|
-
color: $
|
|
86
|
-
text-align: center;
|
|
40
|
+
color: $actionsheet-item-color;
|
|
87
41
|
background-color: $background-color3;
|
|
88
42
|
cursor: pointer;
|
|
89
|
-
}
|
|
90
43
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
44
|
+
&-description {
|
|
45
|
+
display: block;
|
|
46
|
+
font-size: $font-size-small;
|
|
47
|
+
color: $title-color2;
|
|
48
|
+
}
|
|
95
49
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
color: $title-color2;
|
|
100
|
-
}
|
|
50
|
+
&.danger {
|
|
51
|
+
color: $actionsheet-item-danger;
|
|
52
|
+
}
|
|
101
53
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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 $
|
|
62
|
+
border-top: 1px solid $actionsheet-border-color;
|
|
110
63
|
}
|
|
111
64
|
}
|
|
@@ -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
|
|
26
|
+
&__rightin {
|
|
27
|
+
display: flex;
|
|
69
28
|
padding: 0 5px;
|
|
70
29
|
}
|
|
71
30
|
|
|
72
|
-
|
|
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
|
-
|
|
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
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
-
&
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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;
|