@nutui/nutui-react-taro 1.5.10 → 1.5.11-beta.1
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 +7 -0
- package/dist/esm/MenuItem.js +1 -1
- package/dist/esm/SearchBar.js +1 -1
- package/dist/esm/{menuitem.taro-fed68a19.js → menuitem.taro-c1003fa4.js} +2 -2
- package/dist/esm/nutui-react.es.js +2 -2
- package/dist/esm/{searchbar.taro-0c25927b.js → searchbar.taro-4b892018.js} +1 -1
- 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/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.mjs +22 -21
- package/dist/nutui.react.umd.js +22 -21
- package/dist/packages/popover/popover.scss +1 -0
- package/dist/packages/searchbar/searchbar.scss +8 -0
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/esm/MenuItem.js
CHANGED
package/dist/esm/SearchBar.js
CHANGED
|
@@ -75,12 +75,12 @@ const MenuItem = forwardRef((props, ref) => {
|
|
|
75
75
|
};
|
|
76
76
|
const getPosition = () => {
|
|
77
77
|
return direction === 'down'
|
|
78
|
-
? { position: 'absolute', height:
|
|
78
|
+
? { position: 'absolute', height: `100vh` }
|
|
79
79
|
: {
|
|
80
80
|
position: 'absolute',
|
|
81
81
|
bottom: '100%',
|
|
82
82
|
top: 'auto',
|
|
83
|
-
height:
|
|
83
|
+
height: `100vh`,
|
|
84
84
|
};
|
|
85
85
|
};
|
|
86
86
|
const placeholderStyle = () => {
|
|
@@ -17,7 +17,7 @@ export { E as Elevator } from './elevator.taro-a883f7ad.js';
|
|
|
17
17
|
export { F as FixedNav } from './fixednav.taro-1f05acaf.js';
|
|
18
18
|
export { I as Indicator } from './indicator.taro-cba8b010.js';
|
|
19
19
|
export { M as Menu } from './menu.taro-7e4038a1.js';
|
|
20
|
-
export { M as MenuItem } from './menuitem.taro-
|
|
20
|
+
export { M as MenuItem } from './menuitem.taro-c1003fa4.js';
|
|
21
21
|
export { N as NavBar } from './navbar.taro-777c4705.js';
|
|
22
22
|
export { P as Pagination } from './pagination.taro-715a173b.js';
|
|
23
23
|
export { S as SideNavBar } from './sidenavbar.taro-c307b35e.js';
|
|
@@ -41,7 +41,7 @@ export { P as Picker } from './picker.taro-6bb0a2a4.js';
|
|
|
41
41
|
export { R as Radio, a as RadioGroup } from './radio.taro-a6eff96c.js';
|
|
42
42
|
export { R as Range } from './range.taro-5ab0e79e.js';
|
|
43
43
|
export { R as Rate } from './rate.taro-6cdf03bd.js';
|
|
44
|
-
export { S as SearchBar } from './searchbar.taro-
|
|
44
|
+
export { S as SearchBar } from './searchbar.taro-4b892018.js';
|
|
45
45
|
export { S as ShortPassword } from './shortpassword.taro-9ee034f7.js';
|
|
46
46
|
export { T as TextArea } from './textarea.taro-442e7350.js';
|
|
47
47
|
export { U as Uploader } from './uploader.taro-587e6bf3.js';
|
|
@@ -116,7 +116,7 @@ const SearchBar = (props) => {
|
|
|
116
116
|
return null;
|
|
117
117
|
};
|
|
118
118
|
const onKeypress = (e) => {
|
|
119
|
-
if (e.keyCode === 13) {
|
|
119
|
+
if (e.key === 'Enter' || e.keyCode === 13) {
|
|
120
120
|
if (typeof e.cancelable !== 'boolean' || e.cancelable) {
|
|
121
121
|
e.preventDefault();
|
|
122
122
|
}
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/locales/zh-UG.js
CHANGED
package/dist/nutui.react.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
/*!
|
|
8
|
-
* @nutui/nutui-react-taro v1.5.
|
|
8
|
+
* @nutui/nutui-react-taro v1.5.11-beta.1 Thu Jul 06 2023 09:52:42 GMT+0800 (China Standard Time)
|
|
9
9
|
* (c) 2023 @jdf2e.
|
|
10
10
|
* Released under the MIT License.
|
|
11
11
|
*/
|
|
@@ -31,37 +31,37 @@ function requireClassname_production_min() {
|
|
|
31
31
|
return classname_production_min;
|
|
32
32
|
hasRequiredClassname_production_min = 1;
|
|
33
33
|
function r(r2) {
|
|
34
|
-
function
|
|
35
|
-
var f = i ?
|
|
34
|
+
function t2(t3, i, a, o) {
|
|
35
|
+
var f = i ? e + t3 + r2.e + i : e + t3, v = f;
|
|
36
36
|
if (a) {
|
|
37
|
-
var
|
|
38
|
-
for (var
|
|
39
|
-
if (a.hasOwnProperty(
|
|
40
|
-
var p = a[
|
|
41
|
-
true === p ? v +=
|
|
37
|
+
var s = " " + v + r2.m;
|
|
38
|
+
for (var u in a)
|
|
39
|
+
if (a.hasOwnProperty(u)) {
|
|
40
|
+
var p = a[u];
|
|
41
|
+
true === p ? v += s + u : p && (v += s + u + n + p);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
if (void 0 !== o)
|
|
45
|
-
for (var
|
|
46
|
-
var
|
|
47
|
-
if (
|
|
48
|
-
for (var g =
|
|
45
|
+
for (var y = 0, c = (o = Array.isArray(o) ? o : [o]).length; y < c; y++) {
|
|
46
|
+
var l = o[y];
|
|
47
|
+
if (l && "string" == typeof l.valueOf())
|
|
48
|
+
for (var g = l.valueOf().split(" "), d = 0; d < g.length; d++) {
|
|
49
49
|
var h = g[d];
|
|
50
50
|
h !== f && (v += " " + h);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
return v;
|
|
54
54
|
}
|
|
55
|
-
var
|
|
56
|
-
return function(r3,
|
|
55
|
+
var e = r2.n || "", n = r2.v || r2.m;
|
|
56
|
+
return function(r3, e2) {
|
|
57
57
|
return function(n2, i, a) {
|
|
58
|
-
return "string" == typeof n2 ? Array.isArray(i) ?
|
|
58
|
+
return "string" == typeof n2 ? "string" == typeof i || Array.isArray(i) ? t2(r3, n2, void 0, i) : t2(r3, n2, i, a) : t2(r3, e2, n2, i);
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
Object.defineProperty(classname_production_min, "__esModule", { value: true });
|
|
63
|
-
var
|
|
64
|
-
classname_production_min.cn =
|
|
63
|
+
var t = r({ e: "-", m: "_" });
|
|
64
|
+
classname_production_min.cn = t, classname_production_min.withNaming = r;
|
|
65
65
|
return classname_production_min;
|
|
66
66
|
}
|
|
67
67
|
var classname_development = {};
|
|
@@ -91,6 +91,7 @@ function requireClassname_development() {
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
if (mix !== void 0) {
|
|
94
|
+
mix = Array.isArray(mix) ? mix : [mix];
|
|
94
95
|
for (var i = 0, len = mix.length; i < len; i++) {
|
|
95
96
|
var value = mix[i];
|
|
96
97
|
if (!value || typeof value.valueOf() !== "string")
|
|
@@ -109,7 +110,7 @@ function requireClassname_development() {
|
|
|
109
110
|
return function cnGenerator(b2, e) {
|
|
110
111
|
return function(elemOrMods, elemModsOrBlockMix, elemMix) {
|
|
111
112
|
if (typeof elemOrMods === "string") {
|
|
112
|
-
if (Array.isArray(elemModsOrBlockMix)) {
|
|
113
|
+
if (typeof elemModsOrBlockMix === "string" || Array.isArray(elemModsOrBlockMix)) {
|
|
113
114
|
return stringify(b2, elemOrMods, void 0, elemModsOrBlockMix);
|
|
114
115
|
}
|
|
115
116
|
return stringify(b2, elemOrMods, elemModsOrBlockMix, elemMix);
|
|
@@ -4170,11 +4171,11 @@ const MenuItem = forwardRef((props, ref) => {
|
|
|
4170
4171
|
return { display: "none" };
|
|
4171
4172
|
};
|
|
4172
4173
|
const getPosition = () => {
|
|
4173
|
-
return direction === "down" ? { position: "absolute", height:
|
|
4174
|
+
return direction === "down" ? { position: "absolute", height: `100vh` } : {
|
|
4174
4175
|
position: "absolute",
|
|
4175
4176
|
bottom: "100%",
|
|
4176
4177
|
top: "auto",
|
|
4177
|
-
height:
|
|
4178
|
+
height: `100vh`
|
|
4178
4179
|
};
|
|
4179
4180
|
};
|
|
4180
4181
|
const placeholderStyle = () => {
|
|
@@ -9761,7 +9762,7 @@ const SearchBar = (props) => {
|
|
|
9761
9762
|
return null;
|
|
9762
9763
|
};
|
|
9763
9764
|
const onKeypress = (e) => {
|
|
9764
|
-
if (e.keyCode === 13) {
|
|
9765
|
+
if (e.key === "Enter" || e.keyCode === 13) {
|
|
9765
9766
|
if (typeof e.cancelable !== "boolean" || e.cancelable) {
|
|
9766
9767
|
e.preventDefault();
|
|
9767
9768
|
}
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -8,7 +8,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8
8
|
return value;
|
|
9
9
|
};
|
|
10
10
|
/*!
|
|
11
|
-
* @nutui/nutui-react-taro v1.5.
|
|
11
|
+
* @nutui/nutui-react-taro v1.5.11-beta.1 Thu Jul 06 2023 09:52:42 GMT+0800 (China Standard Time)
|
|
12
12
|
* (c) 2023 @jdf2e.
|
|
13
13
|
* Released under the MIT License.
|
|
14
14
|
*/
|
|
@@ -47,37 +47,37 @@ var __publicField = (obj, key, value) => {
|
|
|
47
47
|
return classname_production_min;
|
|
48
48
|
hasRequiredClassname_production_min = 1;
|
|
49
49
|
function r(r2) {
|
|
50
|
-
function
|
|
51
|
-
var f = i ?
|
|
50
|
+
function t2(t3, i, a, o) {
|
|
51
|
+
var f = i ? e + t3 + r2.e + i : e + t3, v = f;
|
|
52
52
|
if (a) {
|
|
53
|
-
var
|
|
54
|
-
for (var
|
|
55
|
-
if (a.hasOwnProperty(
|
|
56
|
-
var p = a[
|
|
57
|
-
true === p ? v +=
|
|
53
|
+
var s = " " + v + r2.m;
|
|
54
|
+
for (var u in a)
|
|
55
|
+
if (a.hasOwnProperty(u)) {
|
|
56
|
+
var p = a[u];
|
|
57
|
+
true === p ? v += s + u : p && (v += s + u + n + p);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
if (void 0 !== o)
|
|
61
|
-
for (var
|
|
62
|
-
var
|
|
63
|
-
if (
|
|
64
|
-
for (var g =
|
|
61
|
+
for (var y = 0, c = (o = Array.isArray(o) ? o : [o]).length; y < c; y++) {
|
|
62
|
+
var l = o[y];
|
|
63
|
+
if (l && "string" == typeof l.valueOf())
|
|
64
|
+
for (var g = l.valueOf().split(" "), d = 0; d < g.length; d++) {
|
|
65
65
|
var h = g[d];
|
|
66
66
|
h !== f && (v += " " + h);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
return v;
|
|
70
70
|
}
|
|
71
|
-
var
|
|
72
|
-
return function(r3,
|
|
71
|
+
var e = r2.n || "", n = r2.v || r2.m;
|
|
72
|
+
return function(r3, e2) {
|
|
73
73
|
return function(n2, i, a) {
|
|
74
|
-
return "string" == typeof n2 ? Array.isArray(i) ?
|
|
74
|
+
return "string" == typeof n2 ? "string" == typeof i || Array.isArray(i) ? t2(r3, n2, void 0, i) : t2(r3, n2, i, a) : t2(r3, e2, n2, i);
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
Object.defineProperty(classname_production_min, "__esModule", { value: true });
|
|
79
|
-
var
|
|
80
|
-
classname_production_min.cn =
|
|
79
|
+
var t = r({ e: "-", m: "_" });
|
|
80
|
+
classname_production_min.cn = t, classname_production_min.withNaming = r;
|
|
81
81
|
return classname_production_min;
|
|
82
82
|
}
|
|
83
83
|
var classname_development = {};
|
|
@@ -107,6 +107,7 @@ var __publicField = (obj, key, value) => {
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
if (mix !== void 0) {
|
|
110
|
+
mix = Array.isArray(mix) ? mix : [mix];
|
|
110
111
|
for (var i = 0, len = mix.length; i < len; i++) {
|
|
111
112
|
var value = mix[i];
|
|
112
113
|
if (!value || typeof value.valueOf() !== "string")
|
|
@@ -125,7 +126,7 @@ var __publicField = (obj, key, value) => {
|
|
|
125
126
|
return function cnGenerator(b2, e) {
|
|
126
127
|
return function(elemOrMods, elemModsOrBlockMix, elemMix) {
|
|
127
128
|
if (typeof elemOrMods === "string") {
|
|
128
|
-
if (Array.isArray(elemModsOrBlockMix)) {
|
|
129
|
+
if (typeof elemModsOrBlockMix === "string" || Array.isArray(elemModsOrBlockMix)) {
|
|
129
130
|
return stringify(b2, elemOrMods, void 0, elemModsOrBlockMix);
|
|
130
131
|
}
|
|
131
132
|
return stringify(b2, elemOrMods, elemModsOrBlockMix, elemMix);
|
|
@@ -4186,11 +4187,11 @@ var __publicField = (obj, key, value) => {
|
|
|
4186
4187
|
return { display: "none" };
|
|
4187
4188
|
};
|
|
4188
4189
|
const getPosition = () => {
|
|
4189
|
-
return direction === "down" ? { position: "absolute", height:
|
|
4190
|
+
return direction === "down" ? { position: "absolute", height: `100vh` } : {
|
|
4190
4191
|
position: "absolute",
|
|
4191
4192
|
bottom: "100%",
|
|
4192
4193
|
top: "auto",
|
|
4193
|
-
height:
|
|
4194
|
+
height: `100vh`
|
|
4194
4195
|
};
|
|
4195
4196
|
};
|
|
4196
4197
|
const placeholderStyle = () => {
|
|
@@ -9777,7 +9778,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9777
9778
|
return null;
|
|
9778
9779
|
};
|
|
9779
9780
|
const onKeypress = (e) => {
|
|
9780
|
-
if (e.keyCode === 13) {
|
|
9781
|
+
if (e.key === "Enter" || e.keyCode === 13) {
|
|
9781
9782
|
if (typeof e.cancelable !== "boolean" || e.cancelable) {
|
|
9782
9783
|
e.preventDefault();
|
|
9783
9784
|
}
|
|
@@ -64,10 +64,14 @@
|
|
|
64
64
|
|
|
65
65
|
&__icon {
|
|
66
66
|
padding: 0 5px 0 10px;
|
|
67
|
+
display: flex;
|
|
68
|
+
justify-content: center;
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
&__rightin-icon {
|
|
70
72
|
padding: 0 5px;
|
|
73
|
+
display: flex;
|
|
74
|
+
justify-content: center;
|
|
71
75
|
}
|
|
72
76
|
|
|
73
77
|
.nut-searchbar__input-box {
|
|
@@ -138,9 +142,13 @@
|
|
|
138
142
|
|
|
139
143
|
&__leftout-icon {
|
|
140
144
|
margin-right: 10px;
|
|
145
|
+
display: flex;
|
|
146
|
+
justify-content: center;
|
|
141
147
|
}
|
|
142
148
|
|
|
143
149
|
&__rightout-icon {
|
|
144
150
|
margin-left: 10px;
|
|
151
|
+
display: flex;
|
|
152
|
+
justify-content: center;
|
|
145
153
|
}
|
|
146
154
|
}
|