@nutui/nutui-react 2.0.9 → 2.0.10
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 +9 -0
- package/dist/esm/Calendar/style/style.css +1 -1
- package/dist/esm/Calendar.js +2 -1
- package/dist/esm/CalendarItem.js +2 -2
- package/dist/esm/Elevator.js +1 -1
- package/dist/esm/Loading/style/css.js +1 -0
- package/dist/esm/Loading/style/index.js +2 -0
- package/dist/esm/Loading/style/style.css +1 -0
- package/dist/esm/Loading.js +57 -0
- package/dist/esm/nutui-react.es.js +76 -74
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
- package/dist/esm/types/src/packages/loading/__test__/loading.spec.d.ts +1 -0
- package/dist/esm/types/src/packages/loading/demo.d.ts +3 -0
- package/dist/esm/types/src/packages/loading/demo.taro.d.ts +3 -0
- package/dist/esm/types/src/packages/loading/index.d.ts +3 -0
- package/dist/esm/types/src/packages/loading/index.taro.d.ts +3 -0
- package/dist/esm/types/src/packages/loading/loading.d.ts +10 -0
- package/dist/esm/types/src/packages/loading/loading.taro.d.ts +10 -0
- package/dist/esm/types/src/packages/nutui.react.build.d.ts +2 -1
- package/dist/esm/types/src/packages/nutui.react.d.ts +3 -1
- package/dist/esm/types/src/packages/nutui.react.scss.d.ts +1 -0
- package/dist/esm/types/src/packages/nutui.react.taro.d.ts +3 -1
- package/dist/esm/types/src/packages/nutui.react.taro.scss.d.ts +1 -0
- package/dist/esm/types/src/packages/nutui.taro.react.build.d.ts +2 -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/tr-TR.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.es.js +318 -234
- package/dist/nutui.react.umd.js +318 -234
- package/dist/packages/calendar/calendar.scss +1 -6
- package/dist/packages/loading/loading.scss +34 -0
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/themes/default.scss +1 -0
- package/dist/styles/variables.scss +6 -0
- package/dist/types/index.d.ts +3 -1
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/loading/index.d.ts +3 -0
- package/dist/types/packages/loading/loading.d.ts +10 -0
- package/package.json +1 -1
package/dist/nutui.react.umd.js
CHANGED
|
@@ -9,7 +9,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9
9
|
return value;
|
|
10
10
|
};
|
|
11
11
|
/*!
|
|
12
|
-
* @nutui/nutui-react v2.0.
|
|
12
|
+
* @nutui/nutui-react v2.0.10 Fri Aug 04 2023 14:06:57 GMT+0800 (China Standard Time)
|
|
13
13
|
* (c) 2023 @jdf2e.
|
|
14
14
|
* Released under the MIT License.
|
|
15
15
|
*/
|
|
@@ -725,7 +725,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
725
725
|
process.env.NODE_ENV === "production" ? h.exports = ur() : h.exports = sr();
|
|
726
726
|
})(ir);
|
|
727
727
|
const lr = D.Fragment, cr = D.jsx, vr = D.jsxs;
|
|
728
|
-
const a$
|
|
728
|
+
const a$y = {
|
|
729
729
|
className: "",
|
|
730
730
|
style: void 0,
|
|
731
731
|
name: "ArrowDown2",
|
|
@@ -733,8 +733,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
733
733
|
height: "",
|
|
734
734
|
onClick: () => {
|
|
735
735
|
}
|
|
736
|
-
}, y$
|
|
737
|
-
const { className: r, style: d, name: e, color: p, width: m, height: w, onClick: n } = { ...a$
|
|
736
|
+
}, y$a = (h) => {
|
|
737
|
+
const { className: r, style: d, name: e, color: p, width: m, height: w, onClick: n } = { ...a$y, ...h }, f = (t) => {
|
|
738
738
|
n && n(t);
|
|
739
739
|
}, c = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
|
|
740
740
|
const t = "nut-icon";
|
|
@@ -771,8 +771,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
771
771
|
}
|
|
772
772
|
) });
|
|
773
773
|
};
|
|
774
|
-
y$
|
|
775
|
-
const a$
|
|
774
|
+
y$a.defaultProps = a$y;
|
|
775
|
+
const a$x = {
|
|
776
776
|
className: "",
|
|
777
777
|
style: void 0,
|
|
778
778
|
name: "ArrowUp2",
|
|
@@ -781,7 +781,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
781
781
|
onClick: () => {
|
|
782
782
|
}
|
|
783
783
|
}, x$h = (h) => {
|
|
784
|
-
const { className: o, style: p, name: e, color: d, width: m, height: f, onClick: n } = { ...a$
|
|
784
|
+
const { className: o, style: p, name: e, color: d, width: m, height: f, onClick: n } = { ...a$x, ...h }, g = (t) => {
|
|
785
785
|
n && n(t);
|
|
786
786
|
}, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", w = () => {
|
|
787
787
|
const t = "nut-icon";
|
|
@@ -818,8 +818,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
818
818
|
}
|
|
819
819
|
) });
|
|
820
820
|
};
|
|
821
|
-
x$h.defaultProps = a$
|
|
822
|
-
const a$
|
|
821
|
+
x$h.defaultProps = a$x;
|
|
822
|
+
const a$w = {
|
|
823
823
|
className: "",
|
|
824
824
|
style: void 0,
|
|
825
825
|
name: "CheckChecked",
|
|
@@ -827,8 +827,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
827
827
|
height: "",
|
|
828
828
|
onClick: () => {
|
|
829
829
|
}
|
|
830
|
-
}, y$
|
|
831
|
-
const { className: r, style: d, name: e, color: p, width: m, height: f, onClick: o } = { ...a$
|
|
830
|
+
}, y$9 = (h) => {
|
|
831
|
+
const { className: r, style: d, name: e, color: p, width: m, height: f, onClick: o } = { ...a$w, ...h }, C = (t) => {
|
|
832
832
|
o && o(t);
|
|
833
833
|
}, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", k2 = () => {
|
|
834
834
|
const t = "nut-icon";
|
|
@@ -876,8 +876,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
876
876
|
}
|
|
877
877
|
) });
|
|
878
878
|
};
|
|
879
|
-
y$
|
|
880
|
-
const a$
|
|
879
|
+
y$9.defaultProps = a$w;
|
|
880
|
+
const a$v = {
|
|
881
881
|
className: "",
|
|
882
882
|
style: void 0,
|
|
883
883
|
name: "CheckDisabled",
|
|
@@ -886,7 +886,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
886
886
|
onClick: () => {
|
|
887
887
|
}
|
|
888
888
|
}, x$g = (h) => {
|
|
889
|
-
const { className: i, style: d, name: e, color: m, width: p, height: f, onClick: o } = { ...a$
|
|
889
|
+
const { className: i, style: d, name: e, color: m, width: p, height: f, onClick: o } = { ...a$v, ...h }, g = (t) => {
|
|
890
890
|
o && o(t);
|
|
891
891
|
}, r = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", C = () => {
|
|
892
892
|
const t = "nut-icon";
|
|
@@ -923,8 +923,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
923
923
|
}
|
|
924
924
|
) });
|
|
925
925
|
};
|
|
926
|
-
x$g.defaultProps = a$
|
|
927
|
-
const a$
|
|
926
|
+
x$g.defaultProps = a$v;
|
|
927
|
+
const a$u = {
|
|
928
928
|
className: "",
|
|
929
929
|
style: void 0,
|
|
930
930
|
name: "CheckNormal",
|
|
@@ -933,7 +933,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
933
933
|
onClick: () => {
|
|
934
934
|
}
|
|
935
935
|
}, N = (h) => {
|
|
936
|
-
const { className: o, style: m, name: e, color: d, width: p, height: C, onClick: r } = { ...a$
|
|
936
|
+
const { className: o, style: m, name: e, color: d, width: p, height: C, onClick: r } = { ...a$u, ...h }, f = (t) => {
|
|
937
937
|
r && r(t);
|
|
938
938
|
}, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
|
|
939
939
|
const t = "nut-icon";
|
|
@@ -970,8 +970,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
970
970
|
}
|
|
971
971
|
) });
|
|
972
972
|
};
|
|
973
|
-
N.defaultProps = a$
|
|
974
|
-
const a$
|
|
973
|
+
N.defaultProps = a$u;
|
|
974
|
+
const a$t = {
|
|
975
975
|
className: "",
|
|
976
976
|
style: void 0,
|
|
977
977
|
name: "Check",
|
|
@@ -980,7 +980,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
980
980
|
onClick: () => {
|
|
981
981
|
}
|
|
982
982
|
}, x$f = (h) => {
|
|
983
|
-
const { className: o, style: d, name: e, color: p, width: m, height: f, onClick: r } = { ...a$
|
|
983
|
+
const { className: o, style: d, name: e, color: p, width: m, height: f, onClick: r } = { ...a$t, ...h }, g = (t) => {
|
|
984
984
|
r && r(t);
|
|
985
985
|
}, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", C = () => {
|
|
986
986
|
const t = "nut-icon";
|
|
@@ -1017,8 +1017,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1017
1017
|
}
|
|
1018
1018
|
) });
|
|
1019
1019
|
};
|
|
1020
|
-
x$f.defaultProps = a$
|
|
1021
|
-
const a$
|
|
1020
|
+
x$f.defaultProps = a$t;
|
|
1021
|
+
const a$s = {
|
|
1022
1022
|
className: "",
|
|
1023
1023
|
style: void 0,
|
|
1024
1024
|
name: "Checked",
|
|
@@ -1027,7 +1027,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1027
1027
|
onClick: () => {
|
|
1028
1028
|
}
|
|
1029
1029
|
}, x$e = (h) => {
|
|
1030
|
-
const { className: o, style: d, name: e, color: m, width: p, height: C, onClick: r } = { ...a$
|
|
1030
|
+
const { className: o, style: d, name: e, color: m, width: p, height: C, onClick: r } = { ...a$s, ...h }, f = (t) => {
|
|
1031
1031
|
r && r(t);
|
|
1032
1032
|
}, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
|
|
1033
1033
|
const t = "nut-icon";
|
|
@@ -1064,8 +1064,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1064
1064
|
}
|
|
1065
1065
|
) });
|
|
1066
1066
|
};
|
|
1067
|
-
x$e.defaultProps = a$
|
|
1068
|
-
const a$
|
|
1067
|
+
x$e.defaultProps = a$s;
|
|
1068
|
+
const a$r = {
|
|
1069
1069
|
className: "",
|
|
1070
1070
|
style: void 0,
|
|
1071
1071
|
name: "Checklist",
|
|
@@ -1074,7 +1074,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1074
1074
|
onClick: () => {
|
|
1075
1075
|
}
|
|
1076
1076
|
}, x$d = (h) => {
|
|
1077
|
-
const { className: i, style: d, name: e, color: p, width: m, height: f, onClick: o } = { ...a$
|
|
1077
|
+
const { className: i, style: d, name: e, color: p, width: m, height: f, onClick: o } = { ...a$r, ...h }, g = (t) => {
|
|
1078
1078
|
o && o(t);
|
|
1079
1079
|
}, r = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", k2 = () => {
|
|
1080
1080
|
const t = "nut-icon";
|
|
@@ -1111,8 +1111,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1111
1111
|
}
|
|
1112
1112
|
) });
|
|
1113
1113
|
};
|
|
1114
|
-
x$d.defaultProps = a$
|
|
1115
|
-
const a$
|
|
1114
|
+
x$d.defaultProps = a$r;
|
|
1115
|
+
const a$q = {
|
|
1116
1116
|
className: "",
|
|
1117
1117
|
style: void 0,
|
|
1118
1118
|
name: "CircleClose",
|
|
@@ -1121,7 +1121,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1121
1121
|
onClick: () => {
|
|
1122
1122
|
}
|
|
1123
1123
|
}, x$c = (h) => {
|
|
1124
|
-
const { className: l2, style: m, name: e, color: d, width: p, height: C, onClick: o } = { ...a$
|
|
1124
|
+
const { className: l2, style: m, name: e, color: d, width: p, height: C, onClick: o } = { ...a$q, ...h }, f = (t) => {
|
|
1125
1125
|
o && o(t);
|
|
1126
1126
|
}, r = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
|
|
1127
1127
|
const t = "nut-icon";
|
|
@@ -1158,8 +1158,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1158
1158
|
}
|
|
1159
1159
|
) });
|
|
1160
1160
|
};
|
|
1161
|
-
x$c.defaultProps = a$
|
|
1162
|
-
const a$
|
|
1161
|
+
x$c.defaultProps = a$q;
|
|
1162
|
+
const a$p = {
|
|
1163
1163
|
className: "",
|
|
1164
1164
|
style: void 0,
|
|
1165
1165
|
name: "Close",
|
|
@@ -1168,7 +1168,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1168
1168
|
onClick: () => {
|
|
1169
1169
|
}
|
|
1170
1170
|
}, x$b = (h) => {
|
|
1171
|
-
const { className: o, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$
|
|
1171
|
+
const { className: o, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$p, ...h }, g = (t) => {
|
|
1172
1172
|
r && r(t);
|
|
1173
1173
|
}, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", C = () => {
|
|
1174
1174
|
const t = "nut-icon";
|
|
@@ -1205,8 +1205,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1205
1205
|
}
|
|
1206
1206
|
) });
|
|
1207
1207
|
};
|
|
1208
|
-
x$b.defaultProps = a$
|
|
1209
|
-
const a$
|
|
1208
|
+
x$b.defaultProps = a$p;
|
|
1209
|
+
const a$o = {
|
|
1210
1210
|
className: "",
|
|
1211
1211
|
style: void 0,
|
|
1212
1212
|
name: "Del",
|
|
@@ -1214,8 +1214,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1214
1214
|
height: "",
|
|
1215
1215
|
onClick: () => {
|
|
1216
1216
|
}
|
|
1217
|
-
}, y$
|
|
1218
|
-
const { className: o, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$
|
|
1217
|
+
}, y$8 = (h) => {
|
|
1218
|
+
const { className: o, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$o, ...h }, g = (t) => {
|
|
1219
1219
|
r && r(t);
|
|
1220
1220
|
}, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
|
|
1221
1221
|
const t = "nut-icon";
|
|
@@ -1252,8 +1252,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1252
1252
|
}
|
|
1253
1253
|
) });
|
|
1254
1254
|
};
|
|
1255
|
-
y$
|
|
1256
|
-
const a$
|
|
1255
|
+
y$8.defaultProps = a$o;
|
|
1256
|
+
const a$n = {
|
|
1257
1257
|
className: "",
|
|
1258
1258
|
style: void 0,
|
|
1259
1259
|
name: "DownArrow",
|
|
@@ -1262,7 +1262,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1262
1262
|
onClick: () => {
|
|
1263
1263
|
}
|
|
1264
1264
|
}, x$a = (h) => {
|
|
1265
|
-
const { className: r, style: d, name: e, color: p, width: m, height: w, onClick: n } = { ...a$
|
|
1265
|
+
const { className: r, style: d, name: e, color: p, width: m, height: w, onClick: n } = { ...a$n, ...h }, f = (t) => {
|
|
1266
1266
|
n && n(t);
|
|
1267
1267
|
}, c = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
|
|
1268
1268
|
const t = "nut-icon";
|
|
@@ -1299,8 +1299,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1299
1299
|
}
|
|
1300
1300
|
) });
|
|
1301
1301
|
};
|
|
1302
|
-
x$a.defaultProps = a$
|
|
1303
|
-
const a$
|
|
1302
|
+
x$a.defaultProps = a$n;
|
|
1303
|
+
const a$m = {
|
|
1304
1304
|
className: "",
|
|
1305
1305
|
style: void 0,
|
|
1306
1306
|
name: "Failure",
|
|
@@ -1309,7 +1309,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1309
1309
|
onClick: () => {
|
|
1310
1310
|
}
|
|
1311
1311
|
}, x$9 = (h) => {
|
|
1312
|
-
const { className: r, style: d, name: e, color: m, width: p, height: f, onClick: l2 } = { ...a$
|
|
1312
|
+
const { className: r, style: d, name: e, color: m, width: p, height: f, onClick: l2 } = { ...a$m, ...h }, u = (t) => {
|
|
1313
1313
|
l2 && l2(t);
|
|
1314
1314
|
}, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
|
|
1315
1315
|
const t = "nut-icon";
|
|
@@ -1346,8 +1346,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1346
1346
|
}
|
|
1347
1347
|
) });
|
|
1348
1348
|
};
|
|
1349
|
-
x$9.defaultProps = a$
|
|
1350
|
-
const a$
|
|
1349
|
+
x$9.defaultProps = a$m;
|
|
1350
|
+
const a$l = {
|
|
1351
1351
|
className: "",
|
|
1352
1352
|
style: void 0,
|
|
1353
1353
|
name: "ImageError",
|
|
@@ -1356,7 +1356,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1356
1356
|
onClick: () => {
|
|
1357
1357
|
}
|
|
1358
1358
|
}, k$5 = (h) => {
|
|
1359
|
-
const { className: s, style: d, name: e, color: m, width: p, height: f, onClick: o } = { ...a$
|
|
1359
|
+
const { className: s, style: d, name: e, color: m, width: p, height: f, onClick: o } = { ...a$l, ...h }, g = (t) => {
|
|
1360
1360
|
o && o(t);
|
|
1361
1361
|
}, c = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
|
|
1362
1362
|
const t = "nut-icon";
|
|
@@ -1404,8 +1404,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1404
1404
|
}
|
|
1405
1405
|
) });
|
|
1406
1406
|
};
|
|
1407
|
-
k$5.defaultProps = a$
|
|
1408
|
-
const a$
|
|
1407
|
+
k$5.defaultProps = a$l;
|
|
1408
|
+
const a$k = {
|
|
1409
1409
|
className: "",
|
|
1410
1410
|
style: void 0,
|
|
1411
1411
|
name: "Image",
|
|
@@ -1414,7 +1414,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1414
1414
|
onClick: () => {
|
|
1415
1415
|
}
|
|
1416
1416
|
}, k$4 = (h) => {
|
|
1417
|
-
const { className: l2, style: d, name: c, color: m, width: p, height: f, onClick: r } = { ...a$
|
|
1417
|
+
const { className: l2, style: d, name: c, color: m, width: p, height: f, onClick: r } = { ...a$k, ...h }, g = (t) => {
|
|
1418
1418
|
r && r(t);
|
|
1419
1419
|
}, o = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
|
|
1420
1420
|
const t = "nut-icon";
|
|
@@ -1462,8 +1462,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1462
1462
|
}
|
|
1463
1463
|
) });
|
|
1464
1464
|
};
|
|
1465
|
-
k$4.defaultProps = a$
|
|
1466
|
-
const a$
|
|
1465
|
+
k$4.defaultProps = a$k;
|
|
1466
|
+
const a$j = {
|
|
1467
1467
|
className: "",
|
|
1468
1468
|
style: void 0,
|
|
1469
1469
|
name: "Issue",
|
|
@@ -1472,7 +1472,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1472
1472
|
onClick: () => {
|
|
1473
1473
|
}
|
|
1474
1474
|
}, x$8 = (h) => {
|
|
1475
|
-
const { className: o, style: m, name: s, color: d, width: p, height: f, onClick: r } = { ...a$
|
|
1475
|
+
const { className: o, style: m, name: s, color: d, width: p, height: f, onClick: r } = { ...a$j, ...h }, u = (t) => {
|
|
1476
1476
|
r && r(t);
|
|
1477
1477
|
}, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
|
|
1478
1478
|
const t = "nut-icon";
|
|
@@ -1509,8 +1509,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1509
1509
|
}
|
|
1510
1510
|
) });
|
|
1511
1511
|
};
|
|
1512
|
-
x$8.defaultProps = a$
|
|
1513
|
-
const a$
|
|
1512
|
+
x$8.defaultProps = a$j;
|
|
1513
|
+
const a$i = {
|
|
1514
1514
|
className: "",
|
|
1515
1515
|
style: void 0,
|
|
1516
1516
|
name: "JoySmile",
|
|
@@ -1519,7 +1519,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1519
1519
|
onClick: () => {
|
|
1520
1520
|
}
|
|
1521
1521
|
}, x$7 = (h) => {
|
|
1522
|
-
const { className: i, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$
|
|
1522
|
+
const { className: i, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$i, ...h }, g = (t) => {
|
|
1523
1523
|
r && r(t);
|
|
1524
1524
|
}, c = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
|
|
1525
1525
|
const t = "nut-icon";
|
|
@@ -1556,8 +1556,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1556
1556
|
}
|
|
1557
1557
|
) });
|
|
1558
1558
|
};
|
|
1559
|
-
x$7.defaultProps = a$
|
|
1560
|
-
const a$
|
|
1559
|
+
x$7.defaultProps = a$i;
|
|
1560
|
+
const a$h = {
|
|
1561
1561
|
className: "",
|
|
1562
1562
|
style: void 0,
|
|
1563
1563
|
name: "Left",
|
|
@@ -1565,8 +1565,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1565
1565
|
height: "",
|
|
1566
1566
|
onClick: () => {
|
|
1567
1567
|
}
|
|
1568
|
-
}, y$
|
|
1569
|
-
const { className: r, style: d, name: e, color: p, width: m, height: f, onClick: n } = { ...a$
|
|
1568
|
+
}, y$7 = (h) => {
|
|
1569
|
+
const { className: r, style: d, name: e, color: p, width: m, height: f, onClick: n } = { ...a$h, ...h }, g = (t) => {
|
|
1570
1570
|
n && n(t);
|
|
1571
1571
|
}, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
|
|
1572
1572
|
const t = "nut-icon";
|
|
@@ -1603,8 +1603,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1603
1603
|
}
|
|
1604
1604
|
) });
|
|
1605
1605
|
};
|
|
1606
|
-
y$
|
|
1607
|
-
const a$
|
|
1606
|
+
y$7.defaultProps = a$h;
|
|
1607
|
+
const a$g = {
|
|
1608
1608
|
className: "",
|
|
1609
1609
|
style: void 0,
|
|
1610
1610
|
name: "Link",
|
|
@@ -1613,7 +1613,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1613
1613
|
onClick: () => {
|
|
1614
1614
|
}
|
|
1615
1615
|
}, x$6 = (h) => {
|
|
1616
|
-
const { className: s, style: d, name: c, color: m, width: p, height: f, onClick: n } = { ...a$
|
|
1616
|
+
const { className: s, style: d, name: c, color: m, width: p, height: f, onClick: n } = { ...a$g, ...h }, g = (t) => {
|
|
1617
1617
|
n && n(t);
|
|
1618
1618
|
}, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", k2 = () => {
|
|
1619
1619
|
const t = "nut-icon";
|
|
@@ -1650,8 +1650,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1650
1650
|
}
|
|
1651
1651
|
) });
|
|
1652
1652
|
};
|
|
1653
|
-
x$6.defaultProps = a$
|
|
1654
|
-
const a$
|
|
1653
|
+
x$6.defaultProps = a$g;
|
|
1654
|
+
const a$f = {
|
|
1655
1655
|
className: "",
|
|
1656
1656
|
style: void 0,
|
|
1657
1657
|
name: "Loading",
|
|
@@ -1660,7 +1660,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1660
1660
|
onClick: () => {
|
|
1661
1661
|
}
|
|
1662
1662
|
}, k$3 = (h) => {
|
|
1663
|
-
const { className: l2, style: m, name: t, color: d, width: p, height: g, onClick: o } = { ...a$
|
|
1663
|
+
const { className: l2, style: m, name: t, color: d, width: p, height: g, onClick: o } = { ...a$f, ...h }, f = (c) => {
|
|
1664
1664
|
o && o(c);
|
|
1665
1665
|
}, n = (c) => c === "" ? "" : isNaN(Number(c)) ? String(c) : c + "px", z = () => {
|
|
1666
1666
|
const c = "nut-icon";
|
|
@@ -1697,7 +1697,54 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1697
1697
|
}
|
|
1698
1698
|
) });
|
|
1699
1699
|
};
|
|
1700
|
-
k$3.defaultProps = a$
|
|
1700
|
+
k$3.defaultProps = a$f;
|
|
1701
|
+
const a$e = {
|
|
1702
|
+
className: "",
|
|
1703
|
+
style: void 0,
|
|
1704
|
+
name: "Loading1",
|
|
1705
|
+
width: "",
|
|
1706
|
+
height: "",
|
|
1707
|
+
onClick: () => {
|
|
1708
|
+
}
|
|
1709
|
+
}, y$6 = (h) => {
|
|
1710
|
+
const { className: o, style: d, name: e, color: p, width: m, height: g, onClick: n } = { ...a$e, ...h }, f = (t) => {
|
|
1711
|
+
n && n(t);
|
|
1712
|
+
}, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
|
|
1713
|
+
const t = "nut-icon";
|
|
1714
|
+
return classNames({
|
|
1715
|
+
[`${o}`]: o,
|
|
1716
|
+
[t]: true,
|
|
1717
|
+
[t + "-" + e]: e
|
|
1718
|
+
});
|
|
1719
|
+
}, s = {}, r = i(m || ""), l2 = i(g || "");
|
|
1720
|
+
r && (s.width = r), l2 && (s.height = l2);
|
|
1721
|
+
const w = () => ({
|
|
1722
|
+
...d,
|
|
1723
|
+
...s
|
|
1724
|
+
});
|
|
1725
|
+
return /* @__PURE__ */ cr(lr, { children: /* @__PURE__ */ cr(
|
|
1726
|
+
"svg",
|
|
1727
|
+
{
|
|
1728
|
+
className: u(),
|
|
1729
|
+
style: w(),
|
|
1730
|
+
onClick: f,
|
|
1731
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1732
|
+
color: p,
|
|
1733
|
+
viewBox: "0 0 1024 1024",
|
|
1734
|
+
"aria-labelledby": e,
|
|
1735
|
+
role: "presentation",
|
|
1736
|
+
children: /* @__PURE__ */ cr(
|
|
1737
|
+
"path",
|
|
1738
|
+
{
|
|
1739
|
+
d: "M520.665 64.564a29.244 29.244 0 0 0-7.071-.894c-16.211 0-29.35 13.14-29.35 29.35 0 15.83 12.538 28.696 28.223 29.293v.073c.375 0 .751-.014 1.127-.014 216.493 0 389.629 173.942 389.629 390.433 0 216.496-173.136 388.827-389.63 388.827s-389.63-172.333-389.63-388.829c0-.27.01-.536.01-.804h-.01c0-16.209-13.141-29.35-29.35-29.35s-29.35 13.139-29.35 29.35c0 .055.007.11.007.164-.001.214-.007.425-.007.64 0 247.609 200.722 448.331 448.33 448.331 247.607 0 448.33-200.722 448.33-448.33-.002-245.242-196.917-444.456-441.258-448.24z",
|
|
1740
|
+
fill: "currentColor",
|
|
1741
|
+
fillOpacity: "0.9"
|
|
1742
|
+
}
|
|
1743
|
+
)
|
|
1744
|
+
}
|
|
1745
|
+
) });
|
|
1746
|
+
};
|
|
1747
|
+
y$6.defaultProps = a$e;
|
|
1701
1748
|
const a$d = {
|
|
1702
1749
|
className: "",
|
|
1703
1750
|
style: void 0,
|
|
@@ -2409,7 +2456,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2409
2456
|
style: {}
|
|
2410
2457
|
};
|
|
2411
2458
|
const prefixCls$1 = "nut-button";
|
|
2412
|
-
const defaultProps$
|
|
2459
|
+
const defaultProps$1r = {
|
|
2413
2460
|
...ComponentDefaults,
|
|
2414
2461
|
color: "",
|
|
2415
2462
|
type: "default",
|
|
@@ -2443,7 +2490,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2443
2490
|
nativeType,
|
|
2444
2491
|
...rest
|
|
2445
2492
|
} = {
|
|
2446
|
-
...defaultProps$
|
|
2493
|
+
...defaultProps$1r,
|
|
2447
2494
|
...props
|
|
2448
2495
|
};
|
|
2449
2496
|
const getStyle = React.useCallback(() => {
|
|
@@ -2494,7 +2541,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2494
2541
|
}
|
|
2495
2542
|
);
|
|
2496
2543
|
Button.displayName = "NutButton";
|
|
2497
|
-
const defaultProps$
|
|
2544
|
+
const defaultProps$1q = {
|
|
2498
2545
|
...ComponentDefaults,
|
|
2499
2546
|
title: "",
|
|
2500
2547
|
description: "",
|
|
@@ -2503,7 +2550,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2503
2550
|
const classPrefix$o = "nut-cell-group";
|
|
2504
2551
|
const CellGroup = (props) => {
|
|
2505
2552
|
const { children, className, style, title, description, divider, ...rest } = {
|
|
2506
|
-
...defaultProps$
|
|
2553
|
+
...defaultProps$1q,
|
|
2507
2554
|
...props
|
|
2508
2555
|
};
|
|
2509
2556
|
return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix$o, className), ...rest }, title ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$o}__title` }, title) : null, description ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$o}__description` }, description) : null, /* @__PURE__ */ React.createElement(
|
|
@@ -2514,9 +2561,9 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2514
2561
|
children
|
|
2515
2562
|
));
|
|
2516
2563
|
};
|
|
2517
|
-
CellGroup.defaultProps = defaultProps$
|
|
2564
|
+
CellGroup.defaultProps = defaultProps$1q;
|
|
2518
2565
|
CellGroup.displayName = "NutCellGroup";
|
|
2519
|
-
const defaultProps$
|
|
2566
|
+
const defaultProps$1p = {
|
|
2520
2567
|
...ComponentDefaults,
|
|
2521
2568
|
title: null,
|
|
2522
2569
|
description: null,
|
|
@@ -2540,7 +2587,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2540
2587
|
style,
|
|
2541
2588
|
...rest
|
|
2542
2589
|
} = {
|
|
2543
|
-
...defaultProps$
|
|
2590
|
+
...defaultProps$1p,
|
|
2544
2591
|
...props
|
|
2545
2592
|
};
|
|
2546
2593
|
const handleClick2 = (event) => {
|
|
@@ -2572,7 +2619,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2572
2619
|
) : null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$n}__divider` }))
|
|
2573
2620
|
);
|
|
2574
2621
|
};
|
|
2575
|
-
Cell.defaultProps = defaultProps$
|
|
2622
|
+
Cell.defaultProps = defaultProps$1p;
|
|
2576
2623
|
Cell.displayName = "NutCell";
|
|
2577
2624
|
Cell.Group = CellGroup;
|
|
2578
2625
|
var INFINITY = 1 / 0;
|
|
@@ -3708,7 +3755,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
3708
3755
|
const pxCheck = (value) => {
|
|
3709
3756
|
return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
3710
3757
|
};
|
|
3711
|
-
const defaultProps$
|
|
3758
|
+
const defaultProps$1o = {
|
|
3712
3759
|
...ComponentDefaults,
|
|
3713
3760
|
fit: "fill",
|
|
3714
3761
|
position: "center",
|
|
@@ -3737,7 +3784,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
3737
3784
|
onClick,
|
|
3738
3785
|
onLoad,
|
|
3739
3786
|
onError
|
|
3740
|
-
} = { ...defaultProps$
|
|
3787
|
+
} = { ...defaultProps$1o, ...props };
|
|
3741
3788
|
const [innerLoading, setInnerLoading] = React.useState(true);
|
|
3742
3789
|
const [isError, setIsError] = React.useState(false);
|
|
3743
3790
|
const imgRef = React.useRef(null);
|
|
@@ -3864,7 +3911,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
3864
3911
|
renderErrorImg()
|
|
3865
3912
|
);
|
|
3866
3913
|
};
|
|
3867
|
-
Image$1.defaultProps = defaultProps$
|
|
3914
|
+
Image$1.defaultProps = defaultProps$1o;
|
|
3868
3915
|
Image$1.displayName = "NutImage";
|
|
3869
3916
|
function _extends$4() {
|
|
3870
3917
|
_extends$4 = Object.assign ? Object.assign.bind() : function(target) {
|
|
@@ -5689,7 +5736,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5689
5736
|
Overlay.defaultProps = defaultOverlayProps;
|
|
5690
5737
|
Overlay.displayName = "NutOverlay";
|
|
5691
5738
|
const DataContext$2 = React.createContext({});
|
|
5692
|
-
const defaultProps$
|
|
5739
|
+
const defaultProps$1n = {
|
|
5693
5740
|
...ComponentDefaults,
|
|
5694
5741
|
span: "24",
|
|
5695
5742
|
offset: "0",
|
|
@@ -5697,7 +5744,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5697
5744
|
};
|
|
5698
5745
|
const Col = (props) => {
|
|
5699
5746
|
const { className, style, span, offset, children, onClick } = {
|
|
5700
|
-
...defaultProps$
|
|
5747
|
+
...defaultProps$1n,
|
|
5701
5748
|
...props
|
|
5702
5749
|
};
|
|
5703
5750
|
const [colName, setColName] = React.useState("");
|
|
@@ -5729,9 +5776,9 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5729
5776
|
children
|
|
5730
5777
|
);
|
|
5731
5778
|
};
|
|
5732
|
-
Col.defaultProps = defaultProps$
|
|
5779
|
+
Col.defaultProps = defaultProps$1n;
|
|
5733
5780
|
Col.displayName = "NutCol";
|
|
5734
|
-
const defaultProps$
|
|
5781
|
+
const defaultProps$1m = {
|
|
5735
5782
|
...ComponentDefaults,
|
|
5736
5783
|
contentPosition: "center",
|
|
5737
5784
|
direction: "horizontal"
|
|
@@ -5739,7 +5786,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5739
5786
|
const classPrefix$k = `nut-divider`;
|
|
5740
5787
|
const Divider = (props) => {
|
|
5741
5788
|
const { children, contentPosition, style, className, direction, ...rest } = {
|
|
5742
|
-
...defaultProps$
|
|
5789
|
+
...defaultProps$1m,
|
|
5743
5790
|
...props
|
|
5744
5791
|
};
|
|
5745
5792
|
const classes = direction === "horizontal" ? classNames({
|
|
@@ -5754,14 +5801,14 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5754
5801
|
});
|
|
5755
5802
|
return /* @__PURE__ */ React.createElement("div", { className: `${classes} ${className || ""}`, style, ...rest }, children);
|
|
5756
5803
|
};
|
|
5757
|
-
Divider.defaultProps = defaultProps$
|
|
5804
|
+
Divider.defaultProps = defaultProps$1m;
|
|
5758
5805
|
Divider.displayName = "NutDivider";
|
|
5759
5806
|
const gridContext = {
|
|
5760
5807
|
onClick: (item, index) => {
|
|
5761
5808
|
}
|
|
5762
5809
|
};
|
|
5763
5810
|
const GridContext = React.createContext(gridContext);
|
|
5764
|
-
const defaultProps$
|
|
5811
|
+
const defaultProps$1l = {
|
|
5765
5812
|
text: "",
|
|
5766
5813
|
columns: 4,
|
|
5767
5814
|
gap: 0,
|
|
@@ -5787,7 +5834,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5787
5834
|
onClick,
|
|
5788
5835
|
...rest
|
|
5789
5836
|
} = {
|
|
5790
|
-
...defaultProps$
|
|
5837
|
+
...defaultProps$1l,
|
|
5791
5838
|
...props
|
|
5792
5839
|
};
|
|
5793
5840
|
const classPrefix2 = "nut-grid-item";
|
|
@@ -5845,9 +5892,9 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5845
5892
|
/* @__PURE__ */ React.createElement("div", { className: contentClass() }, children && /* @__PURE__ */ React.createElement(React.Fragment, null, children), text && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__text` }, text))
|
|
5846
5893
|
);
|
|
5847
5894
|
};
|
|
5848
|
-
GridItem.defaultProps = defaultProps$
|
|
5895
|
+
GridItem.defaultProps = defaultProps$1l;
|
|
5849
5896
|
GridItem.displayName = "NutGridItem";
|
|
5850
|
-
const defaultProps$
|
|
5897
|
+
const defaultProps$1k = {
|
|
5851
5898
|
columns: 4,
|
|
5852
5899
|
gap: 0,
|
|
5853
5900
|
center: true,
|
|
@@ -5868,7 +5915,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5868
5915
|
className,
|
|
5869
5916
|
onClick,
|
|
5870
5917
|
...rest
|
|
5871
|
-
} = { ...defaultProps$
|
|
5918
|
+
} = { ...defaultProps$1k, ...props };
|
|
5872
5919
|
const childrenDom = React.Children.toArray(children);
|
|
5873
5920
|
const classPrefix2 = "nut-grid";
|
|
5874
5921
|
const rootClass = () => {
|
|
@@ -5898,18 +5945,18 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5898
5945
|
});
|
|
5899
5946
|
})));
|
|
5900
5947
|
};
|
|
5901
|
-
Grid.defaultProps = defaultProps$
|
|
5948
|
+
Grid.defaultProps = defaultProps$1k;
|
|
5902
5949
|
Grid.displayName = "NutGrid";
|
|
5903
5950
|
Grid.Item = GridItem;
|
|
5904
|
-
const defaultProps$
|
|
5951
|
+
const defaultProps$1j = {};
|
|
5905
5952
|
const Layout = (props) => {
|
|
5906
|
-
({ ...defaultProps$
|
|
5953
|
+
({ ...defaultProps$1j, ...props });
|
|
5907
5954
|
return /* @__PURE__ */ React.createElement("div", { className: "nut-layout" }, "Layout");
|
|
5908
5955
|
};
|
|
5909
|
-
Layout.defaultProps = defaultProps$
|
|
5956
|
+
Layout.defaultProps = defaultProps$1j;
|
|
5910
5957
|
Layout.displayName = "NutLayout";
|
|
5911
5958
|
const classPrefix$j = "nut-row";
|
|
5912
|
-
const defaultProps$
|
|
5959
|
+
const defaultProps$1i = {
|
|
5913
5960
|
...ComponentDefaults,
|
|
5914
5961
|
type: "",
|
|
5915
5962
|
justify: "start",
|
|
@@ -5929,7 +5976,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5929
5976
|
gutter,
|
|
5930
5977
|
onClick
|
|
5931
5978
|
} = {
|
|
5932
|
-
...defaultProps$
|
|
5979
|
+
...defaultProps$1i,
|
|
5933
5980
|
...props
|
|
5934
5981
|
};
|
|
5935
5982
|
const getClass = (prefix2, type22) => {
|
|
@@ -5961,15 +6008,15 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5961
6008
|
children
|
|
5962
6009
|
));
|
|
5963
6010
|
};
|
|
5964
|
-
Row.defaultProps = defaultProps$
|
|
6011
|
+
Row.defaultProps = defaultProps$1i;
|
|
5965
6012
|
Row.displayName = "NutRow";
|
|
5966
6013
|
const prefixCls = "nut-space";
|
|
5967
|
-
const defaultProps$
|
|
6014
|
+
const defaultProps$1h = {
|
|
5968
6015
|
direction: "horizontal"
|
|
5969
6016
|
};
|
|
5970
6017
|
const Space = (props) => {
|
|
5971
6018
|
const { className, style, children, wrap, align, direction, justify } = {
|
|
5972
|
-
...defaultProps$
|
|
6019
|
+
...defaultProps$1h,
|
|
5973
6020
|
...props
|
|
5974
6021
|
};
|
|
5975
6022
|
const cls = classNames(
|
|
@@ -5984,7 +6031,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5984
6031
|
return child !== null && child !== void 0 && /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-item` }, child);
|
|
5985
6032
|
}));
|
|
5986
6033
|
};
|
|
5987
|
-
Space.defaultProps = defaultProps$
|
|
6034
|
+
Space.defaultProps = defaultProps$1h;
|
|
5988
6035
|
Space.displayName = "NutSpace";
|
|
5989
6036
|
const canUseDom = !!(typeof window !== "undefined" && typeof document !== "undefined" && window.document && window.document.createElement);
|
|
5990
6037
|
const defaultRoot = canUseDom ? window : void 0;
|
|
@@ -6059,7 +6106,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
6059
6106
|
stop2.current = true;
|
|
6060
6107
|
};
|
|
6061
6108
|
}
|
|
6062
|
-
const defaultProps$
|
|
6109
|
+
const defaultProps$1g = {
|
|
6063
6110
|
...ComponentDefaults,
|
|
6064
6111
|
position: "top",
|
|
6065
6112
|
threshold: 0,
|
|
@@ -6077,7 +6124,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
6077
6124
|
threshold,
|
|
6078
6125
|
onChange,
|
|
6079
6126
|
...rest
|
|
6080
|
-
} = { ...defaultProps$
|
|
6127
|
+
} = { ...defaultProps$1g, ...props };
|
|
6081
6128
|
const stickyRef = React.useRef(null);
|
|
6082
6129
|
const rootRef = React.useRef(null);
|
|
6083
6130
|
const [isFixed, setIsFixed] = React.useState(false);
|
|
@@ -6193,9 +6240,9 @@ Check the top-level render call using <` + t + ">.");
|
|
|
6193
6240
|
/* @__PURE__ */ React.createElement("div", { className: "nut-sticky--box", ref: stickyRef, style: stickyStyle }, children)
|
|
6194
6241
|
);
|
|
6195
6242
|
};
|
|
6196
|
-
Sticky.defaultProps = defaultProps$
|
|
6243
|
+
Sticky.defaultProps = defaultProps$1g;
|
|
6197
6244
|
Sticky.displayName = "NutSticky";
|
|
6198
|
-
const defaultProps$
|
|
6245
|
+
const defaultProps$1f = {
|
|
6199
6246
|
...ComponentDefaults,
|
|
6200
6247
|
target: "",
|
|
6201
6248
|
threshold: 200,
|
|
@@ -6213,7 +6260,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
6213
6260
|
style,
|
|
6214
6261
|
onClick
|
|
6215
6262
|
} = {
|
|
6216
|
-
...defaultProps$
|
|
6263
|
+
...defaultProps$1f,
|
|
6217
6264
|
...props
|
|
6218
6265
|
};
|
|
6219
6266
|
const classPrefix2 = "nut-backtop";
|
|
@@ -6311,7 +6358,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
6311
6358
|
children || /* @__PURE__ */ React.createElement(y$2, { width: 19, height: 19, className: "nut-backtop-main" })
|
|
6312
6359
|
);
|
|
6313
6360
|
};
|
|
6314
|
-
BackTop.defaultProps = defaultProps$
|
|
6361
|
+
BackTop.defaultProps = defaultProps$1f;
|
|
6315
6362
|
BackTop.displayName = "NutBackTop";
|
|
6316
6363
|
function clamp$1(v, min, max) {
|
|
6317
6364
|
return Math.max(min, Math.min(v, max));
|
|
@@ -11429,7 +11476,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11429
11476
|
});
|
|
11430
11477
|
const animated = host.animated;
|
|
11431
11478
|
const elevatorContext = React.createContext({});
|
|
11432
|
-
const defaultProps$
|
|
11479
|
+
const defaultProps$1e = {
|
|
11433
11480
|
...ComponentDefaults,
|
|
11434
11481
|
height: "200px",
|
|
11435
11482
|
floorKey: "title",
|
|
@@ -11455,7 +11502,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11455
11502
|
children,
|
|
11456
11503
|
...rest
|
|
11457
11504
|
} = {
|
|
11458
|
-
...defaultProps$
|
|
11505
|
+
...defaultProps$1e,
|
|
11459
11506
|
...props
|
|
11460
11507
|
};
|
|
11461
11508
|
const classPrefix2 = "nut-elevator";
|
|
@@ -11507,7 +11554,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11507
11554
|
cacheIndex = 0;
|
|
11508
11555
|
}
|
|
11509
11556
|
if (index > state.current.listHeight.length - 2) {
|
|
11510
|
-
cacheIndex = state.current.listHeight.length - 2;
|
|
11557
|
+
cacheIndex = Math.max(0, state.current.listHeight.length - 2);
|
|
11511
11558
|
}
|
|
11512
11559
|
setCodeIndex(cacheIndex);
|
|
11513
11560
|
if (listview.current) {
|
|
@@ -11630,10 +11677,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11630
11677
|
})
|
|
11631
11678
|
))) : null);
|
|
11632
11679
|
};
|
|
11633
|
-
Elevator.defaultProps = defaultProps$
|
|
11680
|
+
Elevator.defaultProps = defaultProps$1e;
|
|
11634
11681
|
Elevator.displayName = "NutElevator";
|
|
11635
11682
|
Elevator.Context = elevatorContext;
|
|
11636
|
-
const defaultProps$
|
|
11683
|
+
const defaultProps$1d = {
|
|
11637
11684
|
...ComponentDefaults,
|
|
11638
11685
|
activeText: "",
|
|
11639
11686
|
inactiveText: "",
|
|
@@ -11661,7 +11708,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11661
11708
|
content,
|
|
11662
11709
|
...rest
|
|
11663
11710
|
} = {
|
|
11664
|
-
...defaultProps$
|
|
11711
|
+
...defaultProps$1d,
|
|
11665
11712
|
...props
|
|
11666
11713
|
};
|
|
11667
11714
|
const classPrefix2 = "nut-fixednav";
|
|
@@ -11710,12 +11757,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11710
11757
|
item.num && /* @__PURE__ */ React.createElement("div", { className: "b" }, item.num)
|
|
11711
11758
|
);
|
|
11712
11759
|
}))),
|
|
11713
|
-
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__btn`, onClick: () => onUpdateValue() }, content || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(y$
|
|
11760
|
+
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__btn`, onClick: () => onUpdateValue() }, content || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(y$7, { color: "#fff" }), /* @__PURE__ */ React.createElement("div", { className: "text" }, visible ? activeText || locale.fixednav.activeText : inactiveText || locale.fixednav.inactiveText)))
|
|
11714
11761
|
);
|
|
11715
11762
|
};
|
|
11716
|
-
FixedNav.defaultProps = defaultProps$
|
|
11763
|
+
FixedNav.defaultProps = defaultProps$1d;
|
|
11717
11764
|
FixedNav.displayName = "NutFixedNav";
|
|
11718
|
-
const defaultProps$
|
|
11765
|
+
const defaultProps$1c = {
|
|
11719
11766
|
...ComponentDefaults,
|
|
11720
11767
|
left: "",
|
|
11721
11768
|
right: "",
|
|
@@ -11738,7 +11785,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11738
11785
|
zIndex,
|
|
11739
11786
|
onBackClick
|
|
11740
11787
|
} = {
|
|
11741
|
-
...defaultProps$
|
|
11788
|
+
...defaultProps$1c,
|
|
11742
11789
|
...props
|
|
11743
11790
|
};
|
|
11744
11791
|
const classPrefix2 = "nut-navbar";
|
|
@@ -11775,9 +11822,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11775
11822
|
const cls = classNames(classPrefix2, classes, className);
|
|
11776
11823
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, fixed && placeholder ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}--placeholder` }, renderWrapper()) : renderWrapper());
|
|
11777
11824
|
};
|
|
11778
|
-
NavBar.defaultProps = defaultProps$
|
|
11825
|
+
NavBar.defaultProps = defaultProps$1c;
|
|
11779
11826
|
NavBar.displayName = "NutNavBar";
|
|
11780
|
-
const defaultProps$
|
|
11827
|
+
const defaultProps$1b = {
|
|
11781
11828
|
...ComponentDefaults,
|
|
11782
11829
|
position: "center",
|
|
11783
11830
|
transition: "",
|
|
@@ -11829,7 +11876,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11829
11876
|
afterShow,
|
|
11830
11877
|
afterClose,
|
|
11831
11878
|
onClick
|
|
11832
|
-
} = { ...defaultProps$
|
|
11879
|
+
} = { ...defaultProps$1b, ...props };
|
|
11833
11880
|
const [index, setIndex] = React.useState(zIndex || _zIndex);
|
|
11834
11881
|
const [innerVisible, setInnerVisible] = React.useState(visible);
|
|
11835
11882
|
const [showChildren, setShowChildren] = React.useState(true);
|
|
@@ -11955,7 +12002,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11955
12002
|
}, [position, transition]);
|
|
11956
12003
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, renderToContainer(portal, renderNode()));
|
|
11957
12004
|
};
|
|
11958
|
-
Popup.defaultProps = defaultProps$
|
|
12005
|
+
Popup.defaultProps = defaultProps$1b;
|
|
11959
12006
|
Popup.displayName = "NutPopup";
|
|
11960
12007
|
const handleClick = (e) => {
|
|
11961
12008
|
e.stopPropagation();
|
|
@@ -11971,7 +12018,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11971
12018
|
}
|
|
11972
12019
|
};
|
|
11973
12020
|
const OffsetContext = React.createContext(20);
|
|
11974
|
-
const defaultProps$
|
|
12021
|
+
const defaultProps$1a = {
|
|
11975
12022
|
...ComponentDefaults,
|
|
11976
12023
|
position: "left",
|
|
11977
12024
|
width: "80%"
|
|
@@ -11988,7 +12035,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11988
12035
|
onClose,
|
|
11989
12036
|
...rest
|
|
11990
12037
|
} = {
|
|
11991
|
-
...defaultProps$
|
|
12038
|
+
...defaultProps$1a,
|
|
11992
12039
|
...props
|
|
11993
12040
|
};
|
|
11994
12041
|
const indent = props.indent ? Number(props.indent) : 20;
|
|
@@ -12020,7 +12067,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12020
12067
|
)))
|
|
12021
12068
|
);
|
|
12022
12069
|
};
|
|
12023
|
-
SideNavBar.defaultProps = defaultProps$
|
|
12070
|
+
SideNavBar.defaultProps = defaultProps$1a;
|
|
12024
12071
|
SideNavBar.displayName = "NutSideNavBar";
|
|
12025
12072
|
const SideNavBarItem = (props) => {
|
|
12026
12073
|
const classPrefix2 = "nut-subsidenavbar";
|
|
@@ -12039,13 +12086,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12039
12086
|
title
|
|
12040
12087
|
);
|
|
12041
12088
|
};
|
|
12042
|
-
const defaultProps$
|
|
12089
|
+
const defaultProps$19 = {
|
|
12043
12090
|
open: true
|
|
12044
12091
|
};
|
|
12045
12092
|
const SubSideNavBar = (props) => {
|
|
12046
12093
|
const classPrefix2 = "nut-subsidenavbar";
|
|
12047
12094
|
const { title, value, children, onClick, open, ...rest } = {
|
|
12048
|
-
...defaultProps$
|
|
12095
|
+
...defaultProps$19,
|
|
12049
12096
|
...props
|
|
12050
12097
|
};
|
|
12051
12098
|
const offset = React.useContext(OffsetContext);
|
|
@@ -12122,7 +12169,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12122
12169
|
);
|
|
12123
12170
|
return [stateRef.current, setState];
|
|
12124
12171
|
}
|
|
12125
|
-
const defaultProps$
|
|
12172
|
+
const defaultProps$18 = {
|
|
12126
12173
|
...ComponentDefaults,
|
|
12127
12174
|
value: "",
|
|
12128
12175
|
dot: false,
|
|
@@ -12133,7 +12180,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12133
12180
|
};
|
|
12134
12181
|
const Badge = (props) => {
|
|
12135
12182
|
const { className, style, value, max, children, dot, top, right, color } = {
|
|
12136
|
-
...defaultProps$
|
|
12183
|
+
...defaultProps$18,
|
|
12137
12184
|
...props
|
|
12138
12185
|
};
|
|
12139
12186
|
const classPrefix2 = "nut-badge";
|
|
@@ -12160,9 +12207,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12160
12207
|
};
|
|
12161
12208
|
return /* @__PURE__ */ React.createElement("div", { className: classes, style }, typeof value === "object" && value && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__icon` }, value), /* @__PURE__ */ React.createElement("div", null, children), /* @__PURE__ */ React.createElement("div", { className: contentClasses, style: getStyle() }, content()));
|
|
12162
12209
|
};
|
|
12163
|
-
Badge.defaultProps = defaultProps$
|
|
12210
|
+
Badge.defaultProps = defaultProps$18;
|
|
12164
12211
|
Badge.displayName = "NutBadge";
|
|
12165
|
-
const defaultProps$
|
|
12212
|
+
const defaultProps$17 = {
|
|
12166
12213
|
...ComponentDefaults,
|
|
12167
12214
|
title: "",
|
|
12168
12215
|
icon: null,
|
|
@@ -12191,7 +12238,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12191
12238
|
right,
|
|
12192
12239
|
handleClick: handleClick2
|
|
12193
12240
|
} = {
|
|
12194
|
-
...defaultProps$
|
|
12241
|
+
...defaultProps$17,
|
|
12195
12242
|
...props
|
|
12196
12243
|
};
|
|
12197
12244
|
const classPrefix2 = "nut-tabbar-item";
|
|
@@ -12223,7 +12270,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12223
12270
|
icon ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Badge, { ...badgeProps }, /* @__PURE__ */ React.createElement("div", { className: boxPrefix }, icon)), /* @__PURE__ */ React.createElement("div", { className: titleClass }, title)) : /* @__PURE__ */ React.createElement(Badge, { ...badgeProps }, /* @__PURE__ */ React.createElement("div", { className: titleClass }, title))
|
|
12224
12271
|
);
|
|
12225
12272
|
};
|
|
12226
|
-
const defaultProps$
|
|
12273
|
+
const defaultProps$16 = {
|
|
12227
12274
|
...ComponentDefaults,
|
|
12228
12275
|
defaultValue: 0,
|
|
12229
12276
|
fixed: false,
|
|
@@ -12246,7 +12293,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12246
12293
|
style,
|
|
12247
12294
|
onSwitch
|
|
12248
12295
|
} = {
|
|
12249
|
-
...defaultProps$
|
|
12296
|
+
...defaultProps$16,
|
|
12250
12297
|
...props
|
|
12251
12298
|
};
|
|
12252
12299
|
const classPrefix2 = "nut-tabbar";
|
|
@@ -12281,17 +12328,17 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12281
12328
|
(fixed || safeArea) && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__safe-area` })
|
|
12282
12329
|
);
|
|
12283
12330
|
};
|
|
12284
|
-
Tabbar.defaultProps = defaultProps$
|
|
12331
|
+
Tabbar.defaultProps = defaultProps$16;
|
|
12285
12332
|
Tabbar.displayName = "NutTabbar";
|
|
12286
12333
|
Tabbar.Item = TabbarItem;
|
|
12287
|
-
const defaultProps$
|
|
12334
|
+
const defaultProps$15 = {
|
|
12288
12335
|
title: "",
|
|
12289
12336
|
value: "",
|
|
12290
12337
|
disabled: false
|
|
12291
12338
|
};
|
|
12292
12339
|
const TabPane = (props) => {
|
|
12293
12340
|
const { children, autoHeightClassName, className, disabled } = {
|
|
12294
|
-
...defaultProps$
|
|
12341
|
+
...defaultProps$15,
|
|
12295
12342
|
...props
|
|
12296
12343
|
};
|
|
12297
12344
|
const classPrefix2 = "nut-tabpane";
|
|
@@ -12317,7 +12364,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12317
12364
|
};
|
|
12318
12365
|
}
|
|
12319
12366
|
const requestAniFrame$1 = requestAniFrame();
|
|
12320
|
-
const defaultProps$
|
|
12367
|
+
const defaultProps$14 = {
|
|
12321
12368
|
...ComponentDefaults,
|
|
12322
12369
|
tabStyle: {},
|
|
12323
12370
|
activeColor: "",
|
|
@@ -12343,7 +12390,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12343
12390
|
autoHeight,
|
|
12344
12391
|
...rest
|
|
12345
12392
|
} = {
|
|
12346
|
-
...defaultProps$
|
|
12393
|
+
...defaultProps$14,
|
|
12347
12394
|
...props
|
|
12348
12395
|
};
|
|
12349
12396
|
const [value, setValue] = usePropsValue({
|
|
@@ -12510,7 +12557,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12510
12557
|
return React.cloneElement(child, childProps);
|
|
12511
12558
|
}))));
|
|
12512
12559
|
};
|
|
12513
|
-
Tabs.defaultProps = defaultProps$
|
|
12560
|
+
Tabs.defaultProps = defaultProps$14;
|
|
12514
12561
|
Tabs.displayName = "NutTabs";
|
|
12515
12562
|
Tabs.TabPane = TabPane;
|
|
12516
12563
|
const formatTree = (tree, parent, config2) => tree.map((node) => {
|
|
@@ -12649,7 +12696,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12649
12696
|
}
|
|
12650
12697
|
}
|
|
12651
12698
|
const Tree$1 = Tree;
|
|
12652
|
-
const defaultProps$
|
|
12699
|
+
const defaultProps$13 = {
|
|
12653
12700
|
...ComponentDefaults,
|
|
12654
12701
|
activeColor: "",
|
|
12655
12702
|
activeIcon: "checklist",
|
|
@@ -12692,7 +12739,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12692
12739
|
onClose,
|
|
12693
12740
|
onChange,
|
|
12694
12741
|
onPathChange
|
|
12695
|
-
} = { ...defaultProps$
|
|
12742
|
+
} = { ...defaultProps$13, ...props };
|
|
12696
12743
|
const [tabvalue, setTabvalue] = React.useState("c1");
|
|
12697
12744
|
const [optionsData, setOptionsData] = React.useState([]);
|
|
12698
12745
|
const isLazy = () => state.configs.lazy && Boolean(state.configs.onLoad);
|
|
@@ -12988,9 +13035,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12988
13035
|
) : renderTabs());
|
|
12989
13036
|
};
|
|
12990
13037
|
const Cascader = React.forwardRef(InternalCascader);
|
|
12991
|
-
Cascader.defaultProps = defaultProps$
|
|
13038
|
+
Cascader.defaultProps = defaultProps$13;
|
|
12992
13039
|
Cascader.displayName = "NutCascader";
|
|
12993
|
-
const defaultProps$
|
|
13040
|
+
const defaultProps$12 = {
|
|
12994
13041
|
...ComponentDefaults,
|
|
12995
13042
|
visible: false,
|
|
12996
13043
|
type: "custom",
|
|
@@ -13017,7 +13064,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13017
13064
|
onPathChange,
|
|
13018
13065
|
...rest
|
|
13019
13066
|
} = {
|
|
13020
|
-
...defaultProps$
|
|
13067
|
+
...defaultProps$12,
|
|
13021
13068
|
...props
|
|
13022
13069
|
};
|
|
13023
13070
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, type2 === "custom" && /* @__PURE__ */ React.createElement(
|
|
@@ -13042,7 +13089,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13042
13089
|
}
|
|
13043
13090
|
));
|
|
13044
13091
|
};
|
|
13045
|
-
const defaultProps$
|
|
13092
|
+
const defaultProps$11 = {
|
|
13046
13093
|
type: "custom",
|
|
13047
13094
|
existList: [],
|
|
13048
13095
|
defaultIcon: null,
|
|
@@ -13061,7 +13108,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13061
13108
|
onSelect,
|
|
13062
13109
|
onSwitch,
|
|
13063
13110
|
...rest
|
|
13064
|
-
} = { ...defaultProps$
|
|
13111
|
+
} = { ...defaultProps$11, ...props };
|
|
13065
13112
|
const classPrefix2 = "nut-address";
|
|
13066
13113
|
const selectedExist = (item) => {
|
|
13067
13114
|
existList.forEach((list, index) => {
|
|
@@ -13086,7 +13133,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13086
13133
|
);
|
|
13087
13134
|
})), (custom || custom && locale.address.chooseAnotherAddress) && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer`, onClick }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer-btn` }, custom)));
|
|
13088
13135
|
};
|
|
13089
|
-
const defaultProps
|
|
13136
|
+
const defaultProps$10 = {
|
|
13090
13137
|
...ComponentDefaults,
|
|
13091
13138
|
defaultValue: [],
|
|
13092
13139
|
type: "custom",
|
|
@@ -13128,7 +13175,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13128
13175
|
className,
|
|
13129
13176
|
...rest
|
|
13130
13177
|
} = {
|
|
13131
|
-
...defaultProps
|
|
13178
|
+
...defaultProps$10,
|
|
13132
13179
|
...props
|
|
13133
13180
|
};
|
|
13134
13181
|
const classPrefix2 = "nut-address";
|
|
@@ -13153,7 +13200,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13153
13200
|
onClose && onClose();
|
|
13154
13201
|
};
|
|
13155
13202
|
const renderLeftOnCustomSwitch = () => {
|
|
13156
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, custom && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-left-icon`, onClick: onSwitchModule }, React.isValidElement(backIcon) ? backIcon : /* @__PURE__ */ React.createElement(y$
|
|
13203
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, custom && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-left-icon`, onClick: onSwitchModule }, React.isValidElement(backIcon) ? backIcon : /* @__PURE__ */ React.createElement(y$7, { color: "#cccccc" })));
|
|
13157
13204
|
};
|
|
13158
13205
|
const selectedExistItem = (data) => {
|
|
13159
13206
|
onExistSelect && onExistSelect(data);
|
|
@@ -13219,7 +13266,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13219
13266
|
));
|
|
13220
13267
|
};
|
|
13221
13268
|
const Address = React.forwardRef(InternalAddress);
|
|
13222
|
-
Address.defaultProps = defaultProps
|
|
13269
|
+
Address.defaultProps = defaultProps$10;
|
|
13223
13270
|
Address.displayName = "NutAddress";
|
|
13224
13271
|
const Utils = {
|
|
13225
13272
|
/**
|
|
@@ -13469,7 +13516,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13469
13516
|
const isStartAndEnd = (days) => {
|
|
13470
13517
|
return days.length >= 2 && Utils.isEqual(days[0], days[1]);
|
|
13471
13518
|
};
|
|
13472
|
-
const defaultProps
|
|
13519
|
+
const defaultProps$$ = {
|
|
13473
13520
|
...ComponentDefaults,
|
|
13474
13521
|
type: "single",
|
|
13475
13522
|
autoBackfill: false,
|
|
@@ -13504,6 +13551,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13504
13551
|
const {
|
|
13505
13552
|
style,
|
|
13506
13553
|
className,
|
|
13554
|
+
children,
|
|
13507
13555
|
popup,
|
|
13508
13556
|
type: type2,
|
|
13509
13557
|
autoBackfill,
|
|
@@ -13528,7 +13576,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13528
13576
|
onUpdate,
|
|
13529
13577
|
onDayClick,
|
|
13530
13578
|
onPageChange
|
|
13531
|
-
} = { ...defaultProps
|
|
13579
|
+
} = { ...defaultProps$$, ...props };
|
|
13532
13580
|
const weekdays = locale.calendaritem.weekdays;
|
|
13533
13581
|
const weeks = [
|
|
13534
13582
|
...weekdays.slice(firstDayOfWeek, 7),
|
|
@@ -14058,13 +14106,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14058
14106
|
);
|
|
14059
14107
|
};
|
|
14060
14108
|
const renderFooter = () => {
|
|
14061
|
-
return /* @__PURE__ */ React.createElement("div", { className: "nut-calendar-footer" }, /* @__PURE__ */ React.createElement("div", { className: "calendar-confirm-btn", onClick: confirm2 }, confirmText || locale.confirm));
|
|
14109
|
+
return /* @__PURE__ */ React.createElement("div", { className: "nut-calendar-footer" }, children, /* @__PURE__ */ React.createElement("div", { className: "calendar-confirm-btn", onClick: confirm2 }, confirmText || locale.confirm));
|
|
14062
14110
|
};
|
|
14063
14111
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: classes, style }, renderHeader(), renderContent(), popup && !autoBackfill ? renderFooter() : ""));
|
|
14064
14112
|
});
|
|
14065
|
-
CalendarItem.defaultProps = defaultProps
|
|
14113
|
+
CalendarItem.defaultProps = defaultProps$$;
|
|
14066
14114
|
CalendarItem.displayName = "NutCalendarItem";
|
|
14067
|
-
const defaultProps$
|
|
14115
|
+
const defaultProps$_ = {
|
|
14068
14116
|
...ComponentDefaults,
|
|
14069
14117
|
type: "single",
|
|
14070
14118
|
autoBackfill: false,
|
|
@@ -14101,6 +14149,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14101
14149
|
const {
|
|
14102
14150
|
style,
|
|
14103
14151
|
className,
|
|
14152
|
+
children,
|
|
14104
14153
|
popup,
|
|
14105
14154
|
visible,
|
|
14106
14155
|
type: type2,
|
|
@@ -14126,7 +14175,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14126
14175
|
onConfirm,
|
|
14127
14176
|
onDayClick,
|
|
14128
14177
|
onPageChange
|
|
14129
|
-
} = { ...defaultProps$
|
|
14178
|
+
} = { ...defaultProps$_, ...props };
|
|
14130
14179
|
const calendarRef = React.useRef(null);
|
|
14131
14180
|
const close = () => {
|
|
14132
14181
|
onClose && onClose();
|
|
@@ -14158,6 +14207,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14158
14207
|
ref: calendarRef,
|
|
14159
14208
|
style,
|
|
14160
14209
|
className,
|
|
14210
|
+
children,
|
|
14161
14211
|
type: type2,
|
|
14162
14212
|
autoBackfill,
|
|
14163
14213
|
popup,
|
|
@@ -14199,11 +14249,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14199
14249
|
renderItem()
|
|
14200
14250
|
) : renderItem());
|
|
14201
14251
|
});
|
|
14202
|
-
Calendar.defaultProps = defaultProps$
|
|
14252
|
+
Calendar.defaultProps = defaultProps$_;
|
|
14203
14253
|
Calendar.displayName = "NutCalendar";
|
|
14204
14254
|
const CheckboxGroupContext = React.createContext(null);
|
|
14205
14255
|
const Context$1 = CheckboxGroupContext;
|
|
14206
|
-
const defaultProps$
|
|
14256
|
+
const defaultProps$Z = {
|
|
14207
14257
|
max: void 0,
|
|
14208
14258
|
labelPosition: "right",
|
|
14209
14259
|
direction: "vertical",
|
|
@@ -14214,7 +14264,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14214
14264
|
const classPrefix$g = "nut-checkboxgroup";
|
|
14215
14265
|
const CheckboxGroup = React.forwardRef(
|
|
14216
14266
|
(props, ref) => {
|
|
14217
|
-
const { children } = { ...defaultProps$
|
|
14267
|
+
const { children } = { ...defaultProps$Z, ...props };
|
|
14218
14268
|
const {
|
|
14219
14269
|
className,
|
|
14220
14270
|
disabled,
|
|
@@ -14303,9 +14353,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14303
14353
|
);
|
|
14304
14354
|
}
|
|
14305
14355
|
);
|
|
14306
|
-
CheckboxGroup.defaultProps = defaultProps$
|
|
14356
|
+
CheckboxGroup.defaultProps = defaultProps$Z;
|
|
14307
14357
|
CheckboxGroup.displayName = "NutCheckboxGroup";
|
|
14308
|
-
const defaultProps$
|
|
14358
|
+
const defaultProps$Y = {
|
|
14309
14359
|
...ComponentDefaults,
|
|
14310
14360
|
disabled: false,
|
|
14311
14361
|
labelPosition: "right",
|
|
@@ -14318,7 +14368,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14318
14368
|
const classPrefix$f = "nut-checkbox";
|
|
14319
14369
|
const Checkbox = (props) => {
|
|
14320
14370
|
const { children } = {
|
|
14321
|
-
...defaultProps$
|
|
14371
|
+
...defaultProps$Y,
|
|
14322
14372
|
...props
|
|
14323
14373
|
};
|
|
14324
14374
|
const {
|
|
@@ -14421,7 +14471,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14421
14471
|
renderLabel()
|
|
14422
14472
|
);
|
|
14423
14473
|
};
|
|
14424
|
-
Checkbox.defaultProps = defaultProps$
|
|
14474
|
+
Checkbox.defaultProps = defaultProps$Y;
|
|
14425
14475
|
Checkbox.displayName = "NutCheckBox";
|
|
14426
14476
|
Checkbox.Group = CheckboxGroup;
|
|
14427
14477
|
const MIN_DISTANCE = 10;
|
|
@@ -14715,7 +14765,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14715
14765
|
}, []);
|
|
14716
14766
|
return [refs.current, setRefs, reset];
|
|
14717
14767
|
}
|
|
14718
|
-
const defaultProps$
|
|
14768
|
+
const defaultProps$X = {
|
|
14719
14769
|
...ComponentDefaults,
|
|
14720
14770
|
title: "",
|
|
14721
14771
|
options: [],
|
|
@@ -14741,7 +14791,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14741
14791
|
afterClose,
|
|
14742
14792
|
onChange,
|
|
14743
14793
|
...rest
|
|
14744
|
-
} = { ...defaultProps$
|
|
14794
|
+
} = { ...defaultProps$X, ...props };
|
|
14745
14795
|
const classPrefix2 = "nut-picker";
|
|
14746
14796
|
const classes = classNames(classPrefix2, className);
|
|
14747
14797
|
const [selectedValue, setSelectedValue] = usePropsValue({
|
|
@@ -14968,7 +15018,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14968
15018
|
const Picker = React.forwardRef(InternalPicker);
|
|
14969
15019
|
const Picker$1 = Picker;
|
|
14970
15020
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
14971
|
-
const defaultProps$
|
|
15021
|
+
const defaultProps$W = {
|
|
14972
15022
|
...ComponentDefaults,
|
|
14973
15023
|
visible: false,
|
|
14974
15024
|
title: "",
|
|
@@ -14999,7 +15049,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14999
15049
|
style,
|
|
15000
15050
|
...rest
|
|
15001
15051
|
} = {
|
|
15002
|
-
...defaultProps$
|
|
15052
|
+
...defaultProps$W,
|
|
15003
15053
|
...props
|
|
15004
15054
|
};
|
|
15005
15055
|
const { locale } = useConfig();
|
|
@@ -15272,7 +15322,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
15272
15322
|
}
|
|
15273
15323
|
));
|
|
15274
15324
|
};
|
|
15275
|
-
DatePicker.defaultProps = defaultProps$
|
|
15325
|
+
DatePicker.defaultProps = defaultProps$W;
|
|
15276
15326
|
DatePicker.displayName = "NutDatePicker";
|
|
15277
15327
|
const Context = React.createContext({});
|
|
15278
15328
|
function _extends() {
|
|
@@ -16483,7 +16533,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16483
16533
|
}
|
|
16484
16534
|
).$$typeof === component.type.$$typeof;
|
|
16485
16535
|
}
|
|
16486
|
-
const defaultProps$
|
|
16536
|
+
const defaultProps$V = {
|
|
16487
16537
|
...ComponentDefaults,
|
|
16488
16538
|
required: false,
|
|
16489
16539
|
name: "",
|
|
@@ -16551,7 +16601,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16551
16601
|
__publicField(this, "renderLayout", (childNode) => {
|
|
16552
16602
|
var _a2, _b;
|
|
16553
16603
|
const { label, name, required: required2, className, style, errorMessageAlign } = {
|
|
16554
|
-
...defaultProps$
|
|
16604
|
+
...defaultProps$V,
|
|
16555
16605
|
...this.props
|
|
16556
16606
|
};
|
|
16557
16607
|
const item = ((_a2 = this.context.errors) == null ? void 0 : _a2.length) > 0 && ((_b = this.context.errors) == null ? void 0 : _b.filter((item2) => {
|
|
@@ -16601,9 +16651,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16601
16651
|
return /* @__PURE__ */ React.createElement(React.Fragment, { key: this.state.resetCount }, this.renderLayout(returnChildNode));
|
|
16602
16652
|
}
|
|
16603
16653
|
}
|
|
16604
|
-
__publicField(FormItem, "defaultProps", defaultProps$
|
|
16654
|
+
__publicField(FormItem, "defaultProps", defaultProps$V);
|
|
16605
16655
|
__publicField(FormItem, "contextType", Context);
|
|
16606
|
-
const defaultProps$
|
|
16656
|
+
const defaultProps$U = {
|
|
16607
16657
|
...ComponentDefaults,
|
|
16608
16658
|
labelPosition: "right",
|
|
16609
16659
|
starPosition: "left",
|
|
@@ -16631,7 +16681,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16631
16681
|
starPosition,
|
|
16632
16682
|
form
|
|
16633
16683
|
} = {
|
|
16634
|
-
...defaultProps$
|
|
16684
|
+
...defaultProps$U,
|
|
16635
16685
|
...props
|
|
16636
16686
|
};
|
|
16637
16687
|
let formInstance;
|
|
@@ -16674,7 +16724,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16674
16724
|
/* @__PURE__ */ React.createElement(Cell.Group, null, /* @__PURE__ */ React.createElement(Context.Provider, { value: formInstance }, children), footer ? /* @__PURE__ */ React.createElement(Cell, null, footer) : null)
|
|
16675
16725
|
);
|
|
16676
16726
|
};
|
|
16677
|
-
Form.defaultProps = defaultProps$
|
|
16727
|
+
Form.defaultProps = defaultProps$U;
|
|
16678
16728
|
Form.displayName = "NutForm";
|
|
16679
16729
|
Form.Item = FormItem;
|
|
16680
16730
|
Form.useForm = useForm;
|
|
@@ -16702,7 +16752,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16702
16752
|
const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
16703
16753
|
return value.replace(regExp, "");
|
|
16704
16754
|
}
|
|
16705
|
-
const defaultProps$
|
|
16755
|
+
const defaultProps$T = {
|
|
16706
16756
|
...ComponentDefaults,
|
|
16707
16757
|
type: "text",
|
|
16708
16758
|
name: "",
|
|
@@ -16745,7 +16795,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16745
16795
|
value: _value,
|
|
16746
16796
|
...rest
|
|
16747
16797
|
} = {
|
|
16748
|
-
...defaultProps$
|
|
16798
|
+
...defaultProps$T,
|
|
16749
16799
|
...props
|
|
16750
16800
|
};
|
|
16751
16801
|
const [value, setValue] = usePropsValue({
|
|
@@ -16880,9 +16930,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16880
16930
|
);
|
|
16881
16931
|
}
|
|
16882
16932
|
);
|
|
16883
|
-
Input.defaultProps = defaultProps$
|
|
16933
|
+
Input.defaultProps = defaultProps$T;
|
|
16884
16934
|
Input.displayName = "NutInput";
|
|
16885
|
-
const defaultProps$
|
|
16935
|
+
const defaultProps$S = {
|
|
16886
16936
|
...ComponentDefaults,
|
|
16887
16937
|
disabled: false,
|
|
16888
16938
|
min: 1,
|
|
@@ -16919,7 +16969,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16919
16969
|
onChange,
|
|
16920
16970
|
...restProps
|
|
16921
16971
|
} = {
|
|
16922
|
-
...defaultProps$
|
|
16972
|
+
...defaultProps$S,
|
|
16923
16973
|
...props
|
|
16924
16974
|
};
|
|
16925
16975
|
const inputRef = React.useRef("");
|
|
@@ -17116,7 +17166,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17116
17166
|
}
|
|
17117
17167
|
)), /* @__PURE__ */ React.createElement("div", { className: "nut-input-add" }, /* @__PURE__ */ React.createElement(y$4, { className: iconAddClasses, onClick: (e) => addNumber(e) })));
|
|
17118
17168
|
};
|
|
17119
|
-
InputNumber.defaultProps = defaultProps$
|
|
17169
|
+
InputNumber.defaultProps = defaultProps$S;
|
|
17120
17170
|
InputNumber.displayName = "NutInputNumber";
|
|
17121
17171
|
const isObject = (val) => val !== null && typeof val === "object";
|
|
17122
17172
|
const isFunction = (val) => typeof val === "function";
|
|
@@ -17158,7 +17208,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17158
17208
|
};
|
|
17159
17209
|
}, [target]);
|
|
17160
17210
|
}
|
|
17161
|
-
const defaultProps$
|
|
17211
|
+
const defaultProps$R = {
|
|
17162
17212
|
...ComponentDefaults,
|
|
17163
17213
|
columns: 1,
|
|
17164
17214
|
direction: "down",
|
|
@@ -17187,7 +17237,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17187
17237
|
parent,
|
|
17188
17238
|
index
|
|
17189
17239
|
} = {
|
|
17190
|
-
...defaultProps$
|
|
17240
|
+
...defaultProps$R,
|
|
17191
17241
|
...props
|
|
17192
17242
|
};
|
|
17193
17243
|
const [showPopup, setShowPopup] = React.useState(show2);
|
|
@@ -17338,9 +17388,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17338
17388
|
)
|
|
17339
17389
|
);
|
|
17340
17390
|
});
|
|
17341
|
-
MenuItem.defaultProps = defaultProps$
|
|
17391
|
+
MenuItem.defaultProps = defaultProps$R;
|
|
17342
17392
|
MenuItem.displayName = "NutMenuItem";
|
|
17343
|
-
const defaultProps$
|
|
17393
|
+
const defaultProps$Q = {
|
|
17344
17394
|
...ComponentDefaults,
|
|
17345
17395
|
activeColor: "",
|
|
17346
17396
|
closeOnOverlayClick: true,
|
|
@@ -17365,7 +17415,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17365
17415
|
onOpen,
|
|
17366
17416
|
...rest
|
|
17367
17417
|
} = {
|
|
17368
|
-
...defaultProps$
|
|
17418
|
+
...defaultProps$Q,
|
|
17369
17419
|
...props
|
|
17370
17420
|
};
|
|
17371
17421
|
const menuRef = React.useRef(null);
|
|
@@ -17465,7 +17515,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17465
17515
|
})
|
|
17466
17516
|
},
|
|
17467
17517
|
/* @__PURE__ */ React.createElement("div", { className: "nut-menu__title-text" }, finallyTitle()),
|
|
17468
|
-
icon || (direction === "up" ? /* @__PURE__ */ React.createElement(x$h, { className: "nut-menu__title-icon" }) : /* @__PURE__ */ React.createElement(y$
|
|
17518
|
+
icon || (direction === "up" ? /* @__PURE__ */ React.createElement(x$h, { className: "nut-menu__title-icon" }) : /* @__PURE__ */ React.createElement(y$a, { className: "nut-menu__title-icon" }))
|
|
17469
17519
|
)
|
|
17470
17520
|
);
|
|
17471
17521
|
}
|
|
@@ -17492,10 +17542,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17492
17542
|
), cloneChildren())
|
|
17493
17543
|
);
|
|
17494
17544
|
};
|
|
17495
|
-
Menu.defaultProps = defaultProps$
|
|
17545
|
+
Menu.defaultProps = defaultProps$Q;
|
|
17496
17546
|
Menu.displayName = "NutMenu";
|
|
17497
17547
|
Menu.Item = MenuItem;
|
|
17498
|
-
const defaultProps$
|
|
17548
|
+
const defaultProps$P = {
|
|
17499
17549
|
...ComponentDefaults,
|
|
17500
17550
|
visible: false,
|
|
17501
17551
|
type: "default",
|
|
@@ -17646,10 +17696,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17646
17696
|
))))
|
|
17647
17697
|
);
|
|
17648
17698
|
};
|
|
17649
|
-
NumberKeyboard.defaultProps = defaultProps$
|
|
17699
|
+
NumberKeyboard.defaultProps = defaultProps$P;
|
|
17650
17700
|
NumberKeyboard.displayName = "NutNumberKeyboard";
|
|
17651
17701
|
const RadioContext = React.createContext(null);
|
|
17652
|
-
const defaultProps$
|
|
17702
|
+
const defaultProps$O = {
|
|
17653
17703
|
labelPosition: "right",
|
|
17654
17704
|
onChange: (value) => {
|
|
17655
17705
|
},
|
|
@@ -17670,7 +17720,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17670
17720
|
options: options2,
|
|
17671
17721
|
disabled,
|
|
17672
17722
|
...rest
|
|
17673
|
-
} = { ...defaultProps$
|
|
17723
|
+
} = { ...defaultProps$O, ...props };
|
|
17674
17724
|
const [val2State, setVal2State] = usePropsValue({
|
|
17675
17725
|
defaultValue: props.defaultValue,
|
|
17676
17726
|
value: props.value,
|
|
@@ -17722,9 +17772,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17722
17772
|
);
|
|
17723
17773
|
}
|
|
17724
17774
|
);
|
|
17725
|
-
RadioGroup.defaultProps = defaultProps$
|
|
17775
|
+
RadioGroup.defaultProps = defaultProps$O;
|
|
17726
17776
|
RadioGroup.displayName = "NutRadioGroup";
|
|
17727
|
-
const defaultProps$
|
|
17777
|
+
const defaultProps$N = {
|
|
17728
17778
|
...ComponentDefaults,
|
|
17729
17779
|
disabled: false,
|
|
17730
17780
|
shape: "round",
|
|
@@ -17750,7 +17800,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17750
17800
|
onChange,
|
|
17751
17801
|
...others
|
|
17752
17802
|
} = {
|
|
17753
|
-
...defaultProps$
|
|
17803
|
+
...defaultProps$N,
|
|
17754
17804
|
...props
|
|
17755
17805
|
};
|
|
17756
17806
|
let { labelPosition, disabled, ...rest } = others;
|
|
@@ -17813,7 +17863,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17813
17863
|
return React.isValidElement(activeIcon2) ? React.cloneElement(activeIcon2, {
|
|
17814
17864
|
...activeIcon2.props,
|
|
17815
17865
|
className: classNames(color())
|
|
17816
|
-
}) : /* @__PURE__ */ React.createElement(y$
|
|
17866
|
+
}) : /* @__PURE__ */ React.createElement(y$9, { className: classNames(color()) });
|
|
17817
17867
|
}
|
|
17818
17868
|
return React.isValidElement(icon2) ? React.cloneElement(icon2, {
|
|
17819
17869
|
...icon2.props,
|
|
@@ -17846,10 +17896,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17846
17896
|
renderRadioItem()
|
|
17847
17897
|
);
|
|
17848
17898
|
};
|
|
17849
|
-
Radio.defaultProps = defaultProps$
|
|
17899
|
+
Radio.defaultProps = defaultProps$N;
|
|
17850
17900
|
Radio.displayName = "NutRadio";
|
|
17851
17901
|
Radio.Group = RadioGroup;
|
|
17852
|
-
const defaultProps$
|
|
17902
|
+
const defaultProps$M = {
|
|
17853
17903
|
...ComponentDefaults,
|
|
17854
17904
|
range: false,
|
|
17855
17905
|
min: 0,
|
|
@@ -17877,7 +17927,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17877
17927
|
step,
|
|
17878
17928
|
value,
|
|
17879
17929
|
defaultValue
|
|
17880
|
-
} = { ...defaultProps$
|
|
17930
|
+
} = { ...defaultProps$M, ...props };
|
|
17881
17931
|
const classPrefix2 = "nut-range";
|
|
17882
17932
|
const [buttonIndex, setButtonIndex] = React.useState(0);
|
|
17883
17933
|
const [dragStatus, setDragStatus] = React.useState("start");
|
|
@@ -18141,9 +18191,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18141
18191
|
renderButton()
|
|
18142
18192
|
))), maxDescription !== null && /* @__PURE__ */ React.createElement("div", { className: "max" }, maxDescription || max));
|
|
18143
18193
|
};
|
|
18144
|
-
Range.defaultProps = defaultProps$
|
|
18194
|
+
Range.defaultProps = defaultProps$M;
|
|
18145
18195
|
Range.displayName = "NutRange";
|
|
18146
|
-
const defaultProps$
|
|
18196
|
+
const defaultProps$L = {
|
|
18147
18197
|
...ComponentDefaults,
|
|
18148
18198
|
count: 5,
|
|
18149
18199
|
min: 0,
|
|
@@ -18168,7 +18218,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18168
18218
|
allowHalf,
|
|
18169
18219
|
onChange
|
|
18170
18220
|
} = {
|
|
18171
|
-
...defaultProps$
|
|
18221
|
+
...defaultProps$L,
|
|
18172
18222
|
...props
|
|
18173
18223
|
};
|
|
18174
18224
|
const classPrefix2 = "nut-rate";
|
|
@@ -18251,9 +18301,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18251
18301
|
})
|
|
18252
18302
|
);
|
|
18253
18303
|
};
|
|
18254
|
-
Rate.defaultProps = defaultProps$
|
|
18304
|
+
Rate.defaultProps = defaultProps$L;
|
|
18255
18305
|
Rate.displayName = "NutRate";
|
|
18256
|
-
const defaultProps$
|
|
18306
|
+
const defaultProps$K = {
|
|
18257
18307
|
...ComponentDefaults,
|
|
18258
18308
|
placeholder: "",
|
|
18259
18309
|
shape: "square",
|
|
@@ -18292,7 +18342,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18292
18342
|
onSearch,
|
|
18293
18343
|
onInputClick
|
|
18294
18344
|
} = {
|
|
18295
|
-
...defaultProps$
|
|
18345
|
+
...defaultProps$K,
|
|
18296
18346
|
...props
|
|
18297
18347
|
};
|
|
18298
18348
|
const forceFocus = () => {
|
|
@@ -18410,9 +18460,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18410
18460
|
renderRight()
|
|
18411
18461
|
);
|
|
18412
18462
|
};
|
|
18413
|
-
SearchBar.defaultProps = defaultProps$
|
|
18463
|
+
SearchBar.defaultProps = defaultProps$K;
|
|
18414
18464
|
SearchBar.displayName = "NutSearchBar";
|
|
18415
|
-
const defaultProps$
|
|
18465
|
+
const defaultProps$J = {
|
|
18416
18466
|
...ComponentDefaults,
|
|
18417
18467
|
value: "",
|
|
18418
18468
|
visible: false,
|
|
@@ -18449,7 +18499,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18449
18499
|
onCloseIconClick,
|
|
18450
18500
|
...rest
|
|
18451
18501
|
} = {
|
|
18452
|
-
...defaultProps$
|
|
18502
|
+
...defaultProps$J,
|
|
18453
18503
|
...props
|
|
18454
18504
|
};
|
|
18455
18505
|
const classPrefix2 = "nut-shortpassword";
|
|
@@ -18506,9 +18556,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18506
18556
|
), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__footer__sure`, onClick: sure }, locale.confirm)))
|
|
18507
18557
|
);
|
|
18508
18558
|
};
|
|
18509
|
-
ShortPassword.defaultProps = defaultProps$
|
|
18559
|
+
ShortPassword.defaultProps = defaultProps$J;
|
|
18510
18560
|
ShortPassword.displayName = "NutShortPassword";
|
|
18511
|
-
const defaultProps$
|
|
18561
|
+
const defaultProps$I = {
|
|
18512
18562
|
...ComponentDefaults,
|
|
18513
18563
|
type: "png",
|
|
18514
18564
|
lineWidth: 2,
|
|
@@ -18528,7 +18578,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18528
18578
|
onClear,
|
|
18529
18579
|
...rest
|
|
18530
18580
|
} = {
|
|
18531
|
-
...defaultProps$
|
|
18581
|
+
...defaultProps$I,
|
|
18532
18582
|
...props
|
|
18533
18583
|
};
|
|
18534
18584
|
const classPrefix2 = `nut-signature`;
|
|
@@ -18626,9 +18676,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18626
18676
|
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2} ${className}`, style, ...rest }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__inner`, ref: wrapRef }, isCanvasSupported() ? /* @__PURE__ */ React.createElement("canvas", { ref: canvasRef, height: canvasHeight, width: canvasWidth }) : /* @__PURE__ */ React.createElement(React.Fragment, null, unsupported || /* @__PURE__ */ React.createElement("p", { className: `${classPrefix2}__unsupport` }, locale.signature.unsupported))));
|
|
18627
18677
|
};
|
|
18628
18678
|
const Signature = React.forwardRef(InternalSignature);
|
|
18629
|
-
Signature.defaultProps = defaultProps$
|
|
18679
|
+
Signature.defaultProps = defaultProps$I;
|
|
18630
18680
|
Signature.displayName = "NutSignature";
|
|
18631
|
-
const defaultProps$
|
|
18681
|
+
const defaultProps$H = {
|
|
18632
18682
|
...ComponentDefaults,
|
|
18633
18683
|
disabled: false,
|
|
18634
18684
|
activeText: "",
|
|
@@ -18645,7 +18695,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18645
18695
|
style,
|
|
18646
18696
|
onChange
|
|
18647
18697
|
} = {
|
|
18648
|
-
...defaultProps$
|
|
18698
|
+
...defaultProps$H,
|
|
18649
18699
|
...props
|
|
18650
18700
|
};
|
|
18651
18701
|
const classPrefix2 = "nut-switch";
|
|
@@ -18664,9 +18714,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18664
18714
|
};
|
|
18665
18715
|
return /* @__PURE__ */ React.createElement("div", { className: classes(), onClick: (e) => onClick(e), style }, /* @__PURE__ */ React.createElement("div", { className: "switch-button" }, !value && /* @__PURE__ */ React.createElement("div", { className: "close-line" }), activeText && /* @__PURE__ */ React.createElement(React.Fragment, null, value ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__label open` }, activeText) : /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__label close` }, inactiveText))));
|
|
18666
18716
|
};
|
|
18667
|
-
Switch.defaultProps = defaultProps$
|
|
18717
|
+
Switch.defaultProps = defaultProps$H;
|
|
18668
18718
|
Switch.displayName = "NutSwitch";
|
|
18669
|
-
const defaultProps$
|
|
18719
|
+
const defaultProps$G = {
|
|
18670
18720
|
...ComponentDefaults,
|
|
18671
18721
|
defaultValue: "",
|
|
18672
18722
|
showCount: false,
|
|
@@ -18695,7 +18745,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18695
18745
|
onBlur,
|
|
18696
18746
|
onFocus,
|
|
18697
18747
|
...rest
|
|
18698
|
-
} = { ...defaultProps$
|
|
18748
|
+
} = { ...defaultProps$G, ...props };
|
|
18699
18749
|
const classPrefix2 = "nut-textarea";
|
|
18700
18750
|
const textareaRef = React.useRef(null);
|
|
18701
18751
|
const compositionRef = React.useRef(false);
|
|
@@ -18779,9 +18829,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18779
18829
|
showCount && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__limit` }, inputValue.length, "/", maxLength < 0 ? 0 : maxLength)
|
|
18780
18830
|
);
|
|
18781
18831
|
};
|
|
18782
|
-
TextArea.defaultProps = defaultProps$
|
|
18832
|
+
TextArea.defaultProps = defaultProps$G;
|
|
18783
18833
|
TextArea.displayName = "NutTextArea";
|
|
18784
|
-
const defaultProps$
|
|
18834
|
+
const defaultProps$F = {
|
|
18785
18835
|
...ComponentDefaults,
|
|
18786
18836
|
percent: 0,
|
|
18787
18837
|
showText: false,
|
|
@@ -18804,7 +18854,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18804
18854
|
delay,
|
|
18805
18855
|
...rest
|
|
18806
18856
|
} = {
|
|
18807
|
-
...defaultProps$
|
|
18857
|
+
...defaultProps$F,
|
|
18808
18858
|
...props
|
|
18809
18859
|
};
|
|
18810
18860
|
const classPrefix2 = "nut-progress";
|
|
@@ -18899,7 +18949,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18899
18949
|
)))
|
|
18900
18950
|
);
|
|
18901
18951
|
};
|
|
18902
|
-
Progress.defaultProps = defaultProps$
|
|
18952
|
+
Progress.defaultProps = defaultProps$F;
|
|
18903
18953
|
Progress.displayName = "NutProgress";
|
|
18904
18954
|
class UploadOptions {
|
|
18905
18955
|
constructor() {
|
|
@@ -18991,7 +19041,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18991
19041
|
done();
|
|
18992
19042
|
}
|
|
18993
19043
|
};
|
|
18994
|
-
const defaultProps$
|
|
19044
|
+
const defaultProps$E = {
|
|
18995
19045
|
...ComponentDefaults,
|
|
18996
19046
|
url: "",
|
|
18997
19047
|
maxCount: 1,
|
|
@@ -19074,7 +19124,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19074
19124
|
beforeXhrUpload,
|
|
19075
19125
|
beforeDelete,
|
|
19076
19126
|
...restProps
|
|
19077
|
-
} = { ...defaultProps$
|
|
19127
|
+
} = { ...defaultProps$E, ...props };
|
|
19078
19128
|
const [fileList, setFileList] = React.useState(defaultValue || []);
|
|
19079
19129
|
const [uploadQueue, setUploadQueue] = React.useState([]);
|
|
19080
19130
|
React.useEffect(() => {
|
|
@@ -19370,7 +19420,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19370
19420
|
" ",
|
|
19371
19421
|
item.name
|
|
19372
19422
|
), deletable && /* @__PURE__ */ React.createElement(
|
|
19373
|
-
y$
|
|
19423
|
+
y$8,
|
|
19374
19424
|
{
|
|
19375
19425
|
color: "#808080",
|
|
19376
19426
|
className: "nut-uploader__preview-img__file__del",
|
|
@@ -19418,9 +19468,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19418
19468
|
));
|
|
19419
19469
|
};
|
|
19420
19470
|
const Uploader = React.forwardRef(InternalUploader);
|
|
19421
|
-
Uploader.defaultProps = defaultProps$
|
|
19471
|
+
Uploader.defaultProps = defaultProps$E;
|
|
19422
19472
|
Uploader.displayName = "NutUploader";
|
|
19423
|
-
const defaultProps$
|
|
19473
|
+
const defaultProps$D = {
|
|
19424
19474
|
...ComponentDefaults,
|
|
19425
19475
|
visible: false,
|
|
19426
19476
|
description: "",
|
|
@@ -19446,7 +19496,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19446
19496
|
className,
|
|
19447
19497
|
style,
|
|
19448
19498
|
...rest
|
|
19449
|
-
} = { ...defaultProps$
|
|
19499
|
+
} = { ...defaultProps$D, ...props };
|
|
19450
19500
|
const classPrefix2 = "nut-actionsheet";
|
|
19451
19501
|
const cancelActionSheet = () => {
|
|
19452
19502
|
onCancel && onCancel();
|
|
@@ -19489,7 +19539,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19489
19539
|
))
|
|
19490
19540
|
);
|
|
19491
19541
|
};
|
|
19492
|
-
ActionSheet.defaultProps = defaultProps$
|
|
19542
|
+
ActionSheet.defaultProps = defaultProps$D;
|
|
19493
19543
|
ActionSheet.displayName = "NutActionSheet";
|
|
19494
19544
|
const fullClone = {
|
|
19495
19545
|
...ReactDOM__namespace
|
|
@@ -19722,7 +19772,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19722
19772
|
};
|
|
19723
19773
|
DialogWrap.defaultProps = defaultDialogProps;
|
|
19724
19774
|
DialogWrap.displayName = "NutDialogWrap";
|
|
19725
|
-
const defaultProps$
|
|
19775
|
+
const defaultProps$C = {
|
|
19726
19776
|
confirmText: "",
|
|
19727
19777
|
cancelText: "",
|
|
19728
19778
|
overlay: true,
|
|
@@ -19821,9 +19871,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19821
19871
|
});
|
|
19822
19872
|
};
|
|
19823
19873
|
});
|
|
19824
|
-
Dialog.defaultProps = defaultProps$
|
|
19874
|
+
Dialog.defaultProps = defaultProps$C;
|
|
19825
19875
|
Dialog.displayName = "NutDialog";
|
|
19826
|
-
const defaultProps$
|
|
19876
|
+
const defaultProps$B = {
|
|
19827
19877
|
...ComponentDefaults,
|
|
19828
19878
|
attract: false,
|
|
19829
19879
|
direction: void 0,
|
|
@@ -19836,7 +19886,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19836
19886
|
};
|
|
19837
19887
|
const Drag = (props) => {
|
|
19838
19888
|
const { attract, direction, boundary, children, className, style, ...reset } = {
|
|
19839
|
-
...defaultProps$
|
|
19889
|
+
...defaultProps$B,
|
|
19840
19890
|
...props
|
|
19841
19891
|
};
|
|
19842
19892
|
const classPrefix2 = "nut-drag";
|
|
@@ -19899,14 +19949,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19899
19949
|
/* @__PURE__ */ React.createElement(animated.div, { style: currstyle, ...bind() }, children)
|
|
19900
19950
|
);
|
|
19901
19951
|
};
|
|
19902
|
-
Drag.defaultProps = defaultProps$
|
|
19952
|
+
Drag.defaultProps = defaultProps$B;
|
|
19903
19953
|
Drag.displayName = "NutDrag";
|
|
19904
19954
|
const defaultStatus = {
|
|
19905
19955
|
empty: "https://static-ftcms.jd.com/p/files/61a9e3183985005b3958672b.png",
|
|
19906
19956
|
error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
|
|
19907
19957
|
network: "https://static-ftcms.jd.com/p/files/61a9e31de7dcdbcc0ce62734.png"
|
|
19908
19958
|
};
|
|
19909
|
-
const defaultProps$
|
|
19959
|
+
const defaultProps$A = {
|
|
19910
19960
|
...ComponentDefaults,
|
|
19911
19961
|
description: "",
|
|
19912
19962
|
imageSize: "",
|
|
@@ -19924,7 +19974,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19924
19974
|
status,
|
|
19925
19975
|
...rest
|
|
19926
19976
|
} = {
|
|
19927
|
-
...defaultProps$
|
|
19977
|
+
...defaultProps$A,
|
|
19928
19978
|
...props
|
|
19929
19979
|
};
|
|
19930
19980
|
const [imgStyle, setImgStyle] = React.useState({});
|
|
@@ -19949,9 +19999,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19949
19999
|
}, [imageSize]);
|
|
19950
20000
|
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$c} ${className}`, ...rest }, /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$c}__image`, style: imgStyle }, imageNode), typeof description === "string" ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$c}__description` }, description || locale.noData) : description, children));
|
|
19951
20001
|
};
|
|
19952
|
-
Empty.defaultProps = defaultProps$
|
|
20002
|
+
Empty.defaultProps = defaultProps$A;
|
|
19953
20003
|
Empty.displayName = "NutEmpty";
|
|
19954
|
-
const defaultProps$
|
|
20004
|
+
const defaultProps$z = {
|
|
19955
20005
|
...ComponentDefaults,
|
|
19956
20006
|
hasMore: true,
|
|
19957
20007
|
threshold: 200,
|
|
@@ -19978,7 +20028,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19978
20028
|
onScroll,
|
|
19979
20029
|
...restProps
|
|
19980
20030
|
} = {
|
|
19981
|
-
...defaultProps$
|
|
20031
|
+
...defaultProps$z,
|
|
19982
20032
|
...props
|
|
19983
20033
|
};
|
|
19984
20034
|
const [isInfiniting, setIsInfiniting] = React.useState(false);
|
|
@@ -20116,8 +20166,41 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20116
20166
|
/* @__PURE__ */ React.createElement("div", { className: "nut-infinite-bottom" }, isInfiniting ? /* @__PURE__ */ React.createElement("div", { className: "bottom-box" }, loadingText || locale.infiniteloading.loadText) : !hasMore && /* @__PURE__ */ React.createElement("div", { className: "tips" }, loadMoreText || locale.infiniteloading.loadMoreText))
|
|
20117
20167
|
);
|
|
20118
20168
|
};
|
|
20119
|
-
InfiniteLoading.defaultProps = defaultProps$
|
|
20169
|
+
InfiniteLoading.defaultProps = defaultProps$z;
|
|
20120
20170
|
InfiniteLoading.displayName = "NutInfiniteLoading";
|
|
20171
|
+
const loadingMap = {
|
|
20172
|
+
circular: y$6,
|
|
20173
|
+
spinner: k$3
|
|
20174
|
+
};
|
|
20175
|
+
const defaultProps$y = {
|
|
20176
|
+
...ComponentDefaults,
|
|
20177
|
+
// 对比一下,个人感觉还是Loading1比较好看一些,所以用它作为了默认的loading图标
|
|
20178
|
+
type: "circular",
|
|
20179
|
+
direction: "horizontal"
|
|
20180
|
+
};
|
|
20181
|
+
const Loading = (props) => {
|
|
20182
|
+
const { className, style, children, direction, icon, ...rest } = {
|
|
20183
|
+
...defaultProps$y,
|
|
20184
|
+
...props
|
|
20185
|
+
};
|
|
20186
|
+
const classPrefix2 = "nut-loading";
|
|
20187
|
+
const CurLoadingIcon = loadingMap[rest.type] || y$6;
|
|
20188
|
+
return /* @__PURE__ */ React.createElement(
|
|
20189
|
+
"div",
|
|
20190
|
+
{
|
|
20191
|
+
className: classNames(
|
|
20192
|
+
classPrefix2,
|
|
20193
|
+
className,
|
|
20194
|
+
direction === "vertical" ? `${classPrefix2}-vertical` : ""
|
|
20195
|
+
),
|
|
20196
|
+
style
|
|
20197
|
+
},
|
|
20198
|
+
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-icon-box` }, icon || /* @__PURE__ */ React.createElement(CurLoadingIcon, { className: `${classPrefix2}-icon` })),
|
|
20199
|
+
children ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-text` }, children) : ""
|
|
20200
|
+
);
|
|
20201
|
+
};
|
|
20202
|
+
Loading.defaultProps = defaultProps$y;
|
|
20203
|
+
Loading.displayName = "NutLoading";
|
|
20121
20204
|
const defaultProps$x = {
|
|
20122
20205
|
...ComponentDefaults,
|
|
20123
20206
|
direction: "horizontal",
|
|
@@ -24939,6 +25022,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24939
25022
|
exports2.Input = Input;
|
|
24940
25023
|
exports2.InputNumber = InputNumber;
|
|
24941
25024
|
exports2.Layout = Layout;
|
|
25025
|
+
exports2.Loading = Loading;
|
|
24942
25026
|
exports2.Menu = Menu;
|
|
24943
25027
|
exports2.MenuItem = MenuItem;
|
|
24944
25028
|
exports2.NavBar = NavBar;
|