@nutui/nutui-react 2.0.8 → 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 +20 -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/notify/notify.taro.d.ts +11 -4
- 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/esm/types/src/utils/use-custom-event.d.ts +3 -0
- 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/cascader/cascader.d.ts +2 -2
- 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.es.js
CHANGED
|
@@ -6,7 +6,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6
6
|
};
|
|
7
7
|
var _a;
|
|
8
8
|
/*!
|
|
9
|
-
* @nutui/nutui-react v2.0.
|
|
9
|
+
* @nutui/nutui-react v2.0.10 Fri Aug 04 2023 14:06:57 GMT+0800 (China Standard Time)
|
|
10
10
|
* (c) 2023 @jdf2e.
|
|
11
11
|
* Released under the MIT License.
|
|
12
12
|
*/
|
|
@@ -707,7 +707,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
707
707
|
process.env.NODE_ENV === "production" ? h.exports = ur() : h.exports = sr();
|
|
708
708
|
})(ir);
|
|
709
709
|
const lr = D.Fragment, cr = D.jsx, vr = D.jsxs;
|
|
710
|
-
const a$
|
|
710
|
+
const a$y = {
|
|
711
711
|
className: "",
|
|
712
712
|
style: void 0,
|
|
713
713
|
name: "ArrowDown2",
|
|
@@ -715,8 +715,8 @@ const a$x = {
|
|
|
715
715
|
height: "",
|
|
716
716
|
onClick: () => {
|
|
717
717
|
}
|
|
718
|
-
}, y$
|
|
719
|
-
const { className: r, style: d, name: e, color: p, width: m, height: w, onClick: n } = { ...a$
|
|
718
|
+
}, y$a = (h) => {
|
|
719
|
+
const { className: r, style: d, name: e, color: p, width: m, height: w, onClick: n } = { ...a$y, ...h }, f = (t) => {
|
|
720
720
|
n && n(t);
|
|
721
721
|
}, c = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
|
|
722
722
|
const t = "nut-icon";
|
|
@@ -753,8 +753,8 @@ const a$x = {
|
|
|
753
753
|
}
|
|
754
754
|
) });
|
|
755
755
|
};
|
|
756
|
-
y$
|
|
757
|
-
const a$
|
|
756
|
+
y$a.defaultProps = a$y;
|
|
757
|
+
const a$x = {
|
|
758
758
|
className: "",
|
|
759
759
|
style: void 0,
|
|
760
760
|
name: "ArrowUp2",
|
|
@@ -763,7 +763,7 @@ const a$w = {
|
|
|
763
763
|
onClick: () => {
|
|
764
764
|
}
|
|
765
765
|
}, x$h = (h) => {
|
|
766
|
-
const { className: o, style: p, name: e, color: d, width: m, height: f, onClick: n } = { ...a$
|
|
766
|
+
const { className: o, style: p, name: e, color: d, width: m, height: f, onClick: n } = { ...a$x, ...h }, g = (t) => {
|
|
767
767
|
n && n(t);
|
|
768
768
|
}, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", w = () => {
|
|
769
769
|
const t = "nut-icon";
|
|
@@ -800,8 +800,8 @@ const a$w = {
|
|
|
800
800
|
}
|
|
801
801
|
) });
|
|
802
802
|
};
|
|
803
|
-
x$h.defaultProps = a$
|
|
804
|
-
const a$
|
|
803
|
+
x$h.defaultProps = a$x;
|
|
804
|
+
const a$w = {
|
|
805
805
|
className: "",
|
|
806
806
|
style: void 0,
|
|
807
807
|
name: "CheckChecked",
|
|
@@ -809,8 +809,8 @@ const a$v = {
|
|
|
809
809
|
height: "",
|
|
810
810
|
onClick: () => {
|
|
811
811
|
}
|
|
812
|
-
}, y$
|
|
813
|
-
const { className: r, style: d, name: e, color: p, width: m, height: f, onClick: o } = { ...a$
|
|
812
|
+
}, y$9 = (h) => {
|
|
813
|
+
const { className: r, style: d, name: e, color: p, width: m, height: f, onClick: o } = { ...a$w, ...h }, C = (t) => {
|
|
814
814
|
o && o(t);
|
|
815
815
|
}, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", k2 = () => {
|
|
816
816
|
const t = "nut-icon";
|
|
@@ -858,8 +858,8 @@ const a$v = {
|
|
|
858
858
|
}
|
|
859
859
|
) });
|
|
860
860
|
};
|
|
861
|
-
y$
|
|
862
|
-
const a$
|
|
861
|
+
y$9.defaultProps = a$w;
|
|
862
|
+
const a$v = {
|
|
863
863
|
className: "",
|
|
864
864
|
style: void 0,
|
|
865
865
|
name: "CheckDisabled",
|
|
@@ -868,7 +868,7 @@ const a$u = {
|
|
|
868
868
|
onClick: () => {
|
|
869
869
|
}
|
|
870
870
|
}, x$g = (h) => {
|
|
871
|
-
const { className: i, style: d, name: e, color: m, width: p, height: f, onClick: o } = { ...a$
|
|
871
|
+
const { className: i, style: d, name: e, color: m, width: p, height: f, onClick: o } = { ...a$v, ...h }, g = (t) => {
|
|
872
872
|
o && o(t);
|
|
873
873
|
}, r = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", C = () => {
|
|
874
874
|
const t = "nut-icon";
|
|
@@ -905,8 +905,8 @@ const a$u = {
|
|
|
905
905
|
}
|
|
906
906
|
) });
|
|
907
907
|
};
|
|
908
|
-
x$g.defaultProps = a$
|
|
909
|
-
const a$
|
|
908
|
+
x$g.defaultProps = a$v;
|
|
909
|
+
const a$u = {
|
|
910
910
|
className: "",
|
|
911
911
|
style: void 0,
|
|
912
912
|
name: "CheckNormal",
|
|
@@ -915,7 +915,7 @@ const a$t = {
|
|
|
915
915
|
onClick: () => {
|
|
916
916
|
}
|
|
917
917
|
}, N = (h) => {
|
|
918
|
-
const { className: o, style: m, name: e, color: d, width: p, height: C, onClick: r } = { ...a$
|
|
918
|
+
const { className: o, style: m, name: e, color: d, width: p, height: C, onClick: r } = { ...a$u, ...h }, f = (t) => {
|
|
919
919
|
r && r(t);
|
|
920
920
|
}, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
|
|
921
921
|
const t = "nut-icon";
|
|
@@ -952,8 +952,8 @@ const a$t = {
|
|
|
952
952
|
}
|
|
953
953
|
) });
|
|
954
954
|
};
|
|
955
|
-
N.defaultProps = a$
|
|
956
|
-
const a$
|
|
955
|
+
N.defaultProps = a$u;
|
|
956
|
+
const a$t = {
|
|
957
957
|
className: "",
|
|
958
958
|
style: void 0,
|
|
959
959
|
name: "Check",
|
|
@@ -962,7 +962,7 @@ const a$s = {
|
|
|
962
962
|
onClick: () => {
|
|
963
963
|
}
|
|
964
964
|
}, x$f = (h) => {
|
|
965
|
-
const { className: o, style: d, name: e, color: p, width: m, height: f, onClick: r } = { ...a$
|
|
965
|
+
const { className: o, style: d, name: e, color: p, width: m, height: f, onClick: r } = { ...a$t, ...h }, g = (t) => {
|
|
966
966
|
r && r(t);
|
|
967
967
|
}, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", C = () => {
|
|
968
968
|
const t = "nut-icon";
|
|
@@ -999,8 +999,8 @@ const a$s = {
|
|
|
999
999
|
}
|
|
1000
1000
|
) });
|
|
1001
1001
|
};
|
|
1002
|
-
x$f.defaultProps = a$
|
|
1003
|
-
const a$
|
|
1002
|
+
x$f.defaultProps = a$t;
|
|
1003
|
+
const a$s = {
|
|
1004
1004
|
className: "",
|
|
1005
1005
|
style: void 0,
|
|
1006
1006
|
name: "Checked",
|
|
@@ -1009,7 +1009,7 @@ const a$r = {
|
|
|
1009
1009
|
onClick: () => {
|
|
1010
1010
|
}
|
|
1011
1011
|
}, x$e = (h) => {
|
|
1012
|
-
const { className: o, style: d, name: e, color: m, width: p, height: C, onClick: r } = { ...a$
|
|
1012
|
+
const { className: o, style: d, name: e, color: m, width: p, height: C, onClick: r } = { ...a$s, ...h }, f = (t) => {
|
|
1013
1013
|
r && r(t);
|
|
1014
1014
|
}, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
|
|
1015
1015
|
const t = "nut-icon";
|
|
@@ -1046,8 +1046,8 @@ const a$r = {
|
|
|
1046
1046
|
}
|
|
1047
1047
|
) });
|
|
1048
1048
|
};
|
|
1049
|
-
x$e.defaultProps = a$
|
|
1050
|
-
const a$
|
|
1049
|
+
x$e.defaultProps = a$s;
|
|
1050
|
+
const a$r = {
|
|
1051
1051
|
className: "",
|
|
1052
1052
|
style: void 0,
|
|
1053
1053
|
name: "Checklist",
|
|
@@ -1056,7 +1056,7 @@ const a$q = {
|
|
|
1056
1056
|
onClick: () => {
|
|
1057
1057
|
}
|
|
1058
1058
|
}, x$d = (h) => {
|
|
1059
|
-
const { className: i, style: d, name: e, color: p, width: m, height: f, onClick: o } = { ...a$
|
|
1059
|
+
const { className: i, style: d, name: e, color: p, width: m, height: f, onClick: o } = { ...a$r, ...h }, g = (t) => {
|
|
1060
1060
|
o && o(t);
|
|
1061
1061
|
}, r = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", k2 = () => {
|
|
1062
1062
|
const t = "nut-icon";
|
|
@@ -1093,8 +1093,8 @@ const a$q = {
|
|
|
1093
1093
|
}
|
|
1094
1094
|
) });
|
|
1095
1095
|
};
|
|
1096
|
-
x$d.defaultProps = a$
|
|
1097
|
-
const a$
|
|
1096
|
+
x$d.defaultProps = a$r;
|
|
1097
|
+
const a$q = {
|
|
1098
1098
|
className: "",
|
|
1099
1099
|
style: void 0,
|
|
1100
1100
|
name: "CircleClose",
|
|
@@ -1103,7 +1103,7 @@ const a$p = {
|
|
|
1103
1103
|
onClick: () => {
|
|
1104
1104
|
}
|
|
1105
1105
|
}, x$c = (h) => {
|
|
1106
|
-
const { className: l2, style: m, name: e, color: d, width: p, height: C, onClick: o } = { ...a$
|
|
1106
|
+
const { className: l2, style: m, name: e, color: d, width: p, height: C, onClick: o } = { ...a$q, ...h }, f = (t) => {
|
|
1107
1107
|
o && o(t);
|
|
1108
1108
|
}, r = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
|
|
1109
1109
|
const t = "nut-icon";
|
|
@@ -1140,8 +1140,8 @@ const a$p = {
|
|
|
1140
1140
|
}
|
|
1141
1141
|
) });
|
|
1142
1142
|
};
|
|
1143
|
-
x$c.defaultProps = a$
|
|
1144
|
-
const a$
|
|
1143
|
+
x$c.defaultProps = a$q;
|
|
1144
|
+
const a$p = {
|
|
1145
1145
|
className: "",
|
|
1146
1146
|
style: void 0,
|
|
1147
1147
|
name: "Close",
|
|
@@ -1150,7 +1150,7 @@ const a$o = {
|
|
|
1150
1150
|
onClick: () => {
|
|
1151
1151
|
}
|
|
1152
1152
|
}, x$b = (h) => {
|
|
1153
|
-
const { className: o, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$
|
|
1153
|
+
const { className: o, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$p, ...h }, g = (t) => {
|
|
1154
1154
|
r && r(t);
|
|
1155
1155
|
}, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", C = () => {
|
|
1156
1156
|
const t = "nut-icon";
|
|
@@ -1187,8 +1187,8 @@ const a$o = {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
) });
|
|
1189
1189
|
};
|
|
1190
|
-
x$b.defaultProps = a$
|
|
1191
|
-
const a$
|
|
1190
|
+
x$b.defaultProps = a$p;
|
|
1191
|
+
const a$o = {
|
|
1192
1192
|
className: "",
|
|
1193
1193
|
style: void 0,
|
|
1194
1194
|
name: "Del",
|
|
@@ -1196,8 +1196,8 @@ const a$n = {
|
|
|
1196
1196
|
height: "",
|
|
1197
1197
|
onClick: () => {
|
|
1198
1198
|
}
|
|
1199
|
-
}, y$
|
|
1200
|
-
const { className: o, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$
|
|
1199
|
+
}, y$8 = (h) => {
|
|
1200
|
+
const { className: o, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$o, ...h }, g = (t) => {
|
|
1201
1201
|
r && r(t);
|
|
1202
1202
|
}, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
|
|
1203
1203
|
const t = "nut-icon";
|
|
@@ -1234,8 +1234,8 @@ const a$n = {
|
|
|
1234
1234
|
}
|
|
1235
1235
|
) });
|
|
1236
1236
|
};
|
|
1237
|
-
y$
|
|
1238
|
-
const a$
|
|
1237
|
+
y$8.defaultProps = a$o;
|
|
1238
|
+
const a$n = {
|
|
1239
1239
|
className: "",
|
|
1240
1240
|
style: void 0,
|
|
1241
1241
|
name: "DownArrow",
|
|
@@ -1244,7 +1244,7 @@ const a$m = {
|
|
|
1244
1244
|
onClick: () => {
|
|
1245
1245
|
}
|
|
1246
1246
|
}, x$a = (h) => {
|
|
1247
|
-
const { className: r, style: d, name: e, color: p, width: m, height: w, onClick: n } = { ...a$
|
|
1247
|
+
const { className: r, style: d, name: e, color: p, width: m, height: w, onClick: n } = { ...a$n, ...h }, f = (t) => {
|
|
1248
1248
|
n && n(t);
|
|
1249
1249
|
}, c = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
|
|
1250
1250
|
const t = "nut-icon";
|
|
@@ -1281,8 +1281,8 @@ const a$m = {
|
|
|
1281
1281
|
}
|
|
1282
1282
|
) });
|
|
1283
1283
|
};
|
|
1284
|
-
x$a.defaultProps = a$
|
|
1285
|
-
const a$
|
|
1284
|
+
x$a.defaultProps = a$n;
|
|
1285
|
+
const a$m = {
|
|
1286
1286
|
className: "",
|
|
1287
1287
|
style: void 0,
|
|
1288
1288
|
name: "Failure",
|
|
@@ -1291,7 +1291,7 @@ const a$l = {
|
|
|
1291
1291
|
onClick: () => {
|
|
1292
1292
|
}
|
|
1293
1293
|
}, x$9 = (h) => {
|
|
1294
|
-
const { className: r, style: d, name: e, color: m, width: p, height: f, onClick: l2 } = { ...a$
|
|
1294
|
+
const { className: r, style: d, name: e, color: m, width: p, height: f, onClick: l2 } = { ...a$m, ...h }, u = (t) => {
|
|
1295
1295
|
l2 && l2(t);
|
|
1296
1296
|
}, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
|
|
1297
1297
|
const t = "nut-icon";
|
|
@@ -1328,8 +1328,8 @@ const a$l = {
|
|
|
1328
1328
|
}
|
|
1329
1329
|
) });
|
|
1330
1330
|
};
|
|
1331
|
-
x$9.defaultProps = a$
|
|
1332
|
-
const a$
|
|
1331
|
+
x$9.defaultProps = a$m;
|
|
1332
|
+
const a$l = {
|
|
1333
1333
|
className: "",
|
|
1334
1334
|
style: void 0,
|
|
1335
1335
|
name: "ImageError",
|
|
@@ -1338,7 +1338,7 @@ const a$k = {
|
|
|
1338
1338
|
onClick: () => {
|
|
1339
1339
|
}
|
|
1340
1340
|
}, k$5 = (h) => {
|
|
1341
|
-
const { className: s, style: d, name: e, color: m, width: p, height: f, onClick: o } = { ...a$
|
|
1341
|
+
const { className: s, style: d, name: e, color: m, width: p, height: f, onClick: o } = { ...a$l, ...h }, g = (t) => {
|
|
1342
1342
|
o && o(t);
|
|
1343
1343
|
}, c = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
|
|
1344
1344
|
const t = "nut-icon";
|
|
@@ -1386,8 +1386,8 @@ const a$k = {
|
|
|
1386
1386
|
}
|
|
1387
1387
|
) });
|
|
1388
1388
|
};
|
|
1389
|
-
k$5.defaultProps = a$
|
|
1390
|
-
const a$
|
|
1389
|
+
k$5.defaultProps = a$l;
|
|
1390
|
+
const a$k = {
|
|
1391
1391
|
className: "",
|
|
1392
1392
|
style: void 0,
|
|
1393
1393
|
name: "Image",
|
|
@@ -1396,7 +1396,7 @@ const a$j = {
|
|
|
1396
1396
|
onClick: () => {
|
|
1397
1397
|
}
|
|
1398
1398
|
}, k$4 = (h) => {
|
|
1399
|
-
const { className: l2, style: d, name: c, color: m, width: p, height: f, onClick: r } = { ...a$
|
|
1399
|
+
const { className: l2, style: d, name: c, color: m, width: p, height: f, onClick: r } = { ...a$k, ...h }, g = (t) => {
|
|
1400
1400
|
r && r(t);
|
|
1401
1401
|
}, o = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
|
|
1402
1402
|
const t = "nut-icon";
|
|
@@ -1444,8 +1444,8 @@ const a$j = {
|
|
|
1444
1444
|
}
|
|
1445
1445
|
) });
|
|
1446
1446
|
};
|
|
1447
|
-
k$4.defaultProps = a$
|
|
1448
|
-
const a$
|
|
1447
|
+
k$4.defaultProps = a$k;
|
|
1448
|
+
const a$j = {
|
|
1449
1449
|
className: "",
|
|
1450
1450
|
style: void 0,
|
|
1451
1451
|
name: "Issue",
|
|
@@ -1454,7 +1454,7 @@ const a$i = {
|
|
|
1454
1454
|
onClick: () => {
|
|
1455
1455
|
}
|
|
1456
1456
|
}, x$8 = (h) => {
|
|
1457
|
-
const { className: o, style: m, name: s, color: d, width: p, height: f, onClick: r } = { ...a$
|
|
1457
|
+
const { className: o, style: m, name: s, color: d, width: p, height: f, onClick: r } = { ...a$j, ...h }, u = (t) => {
|
|
1458
1458
|
r && r(t);
|
|
1459
1459
|
}, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
|
|
1460
1460
|
const t = "nut-icon";
|
|
@@ -1491,8 +1491,8 @@ const a$i = {
|
|
|
1491
1491
|
}
|
|
1492
1492
|
) });
|
|
1493
1493
|
};
|
|
1494
|
-
x$8.defaultProps = a$
|
|
1495
|
-
const a$
|
|
1494
|
+
x$8.defaultProps = a$j;
|
|
1495
|
+
const a$i = {
|
|
1496
1496
|
className: "",
|
|
1497
1497
|
style: void 0,
|
|
1498
1498
|
name: "JoySmile",
|
|
@@ -1501,7 +1501,7 @@ const a$h = {
|
|
|
1501
1501
|
onClick: () => {
|
|
1502
1502
|
}
|
|
1503
1503
|
}, x$7 = (h) => {
|
|
1504
|
-
const { className: i, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$
|
|
1504
|
+
const { className: i, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$i, ...h }, g = (t) => {
|
|
1505
1505
|
r && r(t);
|
|
1506
1506
|
}, c = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
|
|
1507
1507
|
const t = "nut-icon";
|
|
@@ -1538,8 +1538,8 @@ const a$h = {
|
|
|
1538
1538
|
}
|
|
1539
1539
|
) });
|
|
1540
1540
|
};
|
|
1541
|
-
x$7.defaultProps = a$
|
|
1542
|
-
const a$
|
|
1541
|
+
x$7.defaultProps = a$i;
|
|
1542
|
+
const a$h = {
|
|
1543
1543
|
className: "",
|
|
1544
1544
|
style: void 0,
|
|
1545
1545
|
name: "Left",
|
|
@@ -1547,8 +1547,8 @@ const a$g = {
|
|
|
1547
1547
|
height: "",
|
|
1548
1548
|
onClick: () => {
|
|
1549
1549
|
}
|
|
1550
|
-
}, y$
|
|
1551
|
-
const { className: r, style: d, name: e, color: p, width: m, height: f, onClick: n } = { ...a$
|
|
1550
|
+
}, y$7 = (h) => {
|
|
1551
|
+
const { className: r, style: d, name: e, color: p, width: m, height: f, onClick: n } = { ...a$h, ...h }, g = (t) => {
|
|
1552
1552
|
n && n(t);
|
|
1553
1553
|
}, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
|
|
1554
1554
|
const t = "nut-icon";
|
|
@@ -1585,8 +1585,8 @@ const a$g = {
|
|
|
1585
1585
|
}
|
|
1586
1586
|
) });
|
|
1587
1587
|
};
|
|
1588
|
-
y$
|
|
1589
|
-
const a$
|
|
1588
|
+
y$7.defaultProps = a$h;
|
|
1589
|
+
const a$g = {
|
|
1590
1590
|
className: "",
|
|
1591
1591
|
style: void 0,
|
|
1592
1592
|
name: "Link",
|
|
@@ -1595,7 +1595,7 @@ const a$f = {
|
|
|
1595
1595
|
onClick: () => {
|
|
1596
1596
|
}
|
|
1597
1597
|
}, x$6 = (h) => {
|
|
1598
|
-
const { className: s, style: d, name: c, color: m, width: p, height: f, onClick: n } = { ...a$
|
|
1598
|
+
const { className: s, style: d, name: c, color: m, width: p, height: f, onClick: n } = { ...a$g, ...h }, g = (t) => {
|
|
1599
1599
|
n && n(t);
|
|
1600
1600
|
}, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", k2 = () => {
|
|
1601
1601
|
const t = "nut-icon";
|
|
@@ -1632,8 +1632,8 @@ const a$f = {
|
|
|
1632
1632
|
}
|
|
1633
1633
|
) });
|
|
1634
1634
|
};
|
|
1635
|
-
x$6.defaultProps = a$
|
|
1636
|
-
const a$
|
|
1635
|
+
x$6.defaultProps = a$g;
|
|
1636
|
+
const a$f = {
|
|
1637
1637
|
className: "",
|
|
1638
1638
|
style: void 0,
|
|
1639
1639
|
name: "Loading",
|
|
@@ -1642,7 +1642,7 @@ const a$e = {
|
|
|
1642
1642
|
onClick: () => {
|
|
1643
1643
|
}
|
|
1644
1644
|
}, k$3 = (h) => {
|
|
1645
|
-
const { className: l2, style: m, name: t, color: d, width: p, height: g, onClick: o } = { ...a$
|
|
1645
|
+
const { className: l2, style: m, name: t, color: d, width: p, height: g, onClick: o } = { ...a$f, ...h }, f = (c) => {
|
|
1646
1646
|
o && o(c);
|
|
1647
1647
|
}, n = (c) => c === "" ? "" : isNaN(Number(c)) ? String(c) : c + "px", z = () => {
|
|
1648
1648
|
const c = "nut-icon";
|
|
@@ -1679,7 +1679,54 @@ const a$e = {
|
|
|
1679
1679
|
}
|
|
1680
1680
|
) });
|
|
1681
1681
|
};
|
|
1682
|
-
k$3.defaultProps = a$
|
|
1682
|
+
k$3.defaultProps = a$f;
|
|
1683
|
+
const a$e = {
|
|
1684
|
+
className: "",
|
|
1685
|
+
style: void 0,
|
|
1686
|
+
name: "Loading1",
|
|
1687
|
+
width: "",
|
|
1688
|
+
height: "",
|
|
1689
|
+
onClick: () => {
|
|
1690
|
+
}
|
|
1691
|
+
}, y$6 = (h) => {
|
|
1692
|
+
const { className: o, style: d, name: e, color: p, width: m, height: g, onClick: n } = { ...a$e, ...h }, f = (t) => {
|
|
1693
|
+
n && n(t);
|
|
1694
|
+
}, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
|
|
1695
|
+
const t = "nut-icon";
|
|
1696
|
+
return classNames({
|
|
1697
|
+
[`${o}`]: o,
|
|
1698
|
+
[t]: true,
|
|
1699
|
+
[t + "-" + e]: e
|
|
1700
|
+
});
|
|
1701
|
+
}, s = {}, r = i(m || ""), l2 = i(g || "");
|
|
1702
|
+
r && (s.width = r), l2 && (s.height = l2);
|
|
1703
|
+
const w = () => ({
|
|
1704
|
+
...d,
|
|
1705
|
+
...s
|
|
1706
|
+
});
|
|
1707
|
+
return /* @__PURE__ */ cr(lr, { children: /* @__PURE__ */ cr(
|
|
1708
|
+
"svg",
|
|
1709
|
+
{
|
|
1710
|
+
className: u(),
|
|
1711
|
+
style: w(),
|
|
1712
|
+
onClick: f,
|
|
1713
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1714
|
+
color: p,
|
|
1715
|
+
viewBox: "0 0 1024 1024",
|
|
1716
|
+
"aria-labelledby": e,
|
|
1717
|
+
role: "presentation",
|
|
1718
|
+
children: /* @__PURE__ */ cr(
|
|
1719
|
+
"path",
|
|
1720
|
+
{
|
|
1721
|
+
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",
|
|
1722
|
+
fill: "currentColor",
|
|
1723
|
+
fillOpacity: "0.9"
|
|
1724
|
+
}
|
|
1725
|
+
)
|
|
1726
|
+
}
|
|
1727
|
+
) });
|
|
1728
|
+
};
|
|
1729
|
+
y$6.defaultProps = a$e;
|
|
1683
1730
|
const a$d = {
|
|
1684
1731
|
className: "",
|
|
1685
1732
|
style: void 0,
|
|
@@ -2391,7 +2438,7 @@ const ComponentDefaults = {
|
|
|
2391
2438
|
style: {}
|
|
2392
2439
|
};
|
|
2393
2440
|
const prefixCls$1 = "nut-button";
|
|
2394
|
-
const defaultProps$
|
|
2441
|
+
const defaultProps$1r = {
|
|
2395
2442
|
...ComponentDefaults,
|
|
2396
2443
|
color: "",
|
|
2397
2444
|
type: "default",
|
|
@@ -2425,7 +2472,7 @@ const Button = React__default.forwardRef(
|
|
|
2425
2472
|
nativeType,
|
|
2426
2473
|
...rest
|
|
2427
2474
|
} = {
|
|
2428
|
-
...defaultProps$
|
|
2475
|
+
...defaultProps$1r,
|
|
2429
2476
|
...props
|
|
2430
2477
|
};
|
|
2431
2478
|
const getStyle = useCallback(() => {
|
|
@@ -2476,7 +2523,7 @@ const Button = React__default.forwardRef(
|
|
|
2476
2523
|
}
|
|
2477
2524
|
);
|
|
2478
2525
|
Button.displayName = "NutButton";
|
|
2479
|
-
const defaultProps$
|
|
2526
|
+
const defaultProps$1q = {
|
|
2480
2527
|
...ComponentDefaults,
|
|
2481
2528
|
title: "",
|
|
2482
2529
|
description: "",
|
|
@@ -2485,7 +2532,7 @@ const defaultProps$1p = {
|
|
|
2485
2532
|
const classPrefix$o = "nut-cell-group";
|
|
2486
2533
|
const CellGroup = (props) => {
|
|
2487
2534
|
const { children, className, style, title, description, divider, ...rest } = {
|
|
2488
|
-
...defaultProps$
|
|
2535
|
+
...defaultProps$1q,
|
|
2489
2536
|
...props
|
|
2490
2537
|
};
|
|
2491
2538
|
return /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix$o, className), ...rest }, title ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$o}__title` }, title) : null, description ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$o}__description` }, description) : null, /* @__PURE__ */ React__default.createElement(
|
|
@@ -2496,9 +2543,9 @@ const CellGroup = (props) => {
|
|
|
2496
2543
|
children
|
|
2497
2544
|
));
|
|
2498
2545
|
};
|
|
2499
|
-
CellGroup.defaultProps = defaultProps$
|
|
2546
|
+
CellGroup.defaultProps = defaultProps$1q;
|
|
2500
2547
|
CellGroup.displayName = "NutCellGroup";
|
|
2501
|
-
const defaultProps$
|
|
2548
|
+
const defaultProps$1p = {
|
|
2502
2549
|
...ComponentDefaults,
|
|
2503
2550
|
title: null,
|
|
2504
2551
|
description: null,
|
|
@@ -2522,7 +2569,7 @@ const Cell = (props) => {
|
|
|
2522
2569
|
style,
|
|
2523
2570
|
...rest
|
|
2524
2571
|
} = {
|
|
2525
|
-
...defaultProps$
|
|
2572
|
+
...defaultProps$1p,
|
|
2526
2573
|
...props
|
|
2527
2574
|
};
|
|
2528
2575
|
const handleClick2 = (event) => {
|
|
@@ -2554,7 +2601,7 @@ const Cell = (props) => {
|
|
|
2554
2601
|
) : null, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$n}__divider` }))
|
|
2555
2602
|
);
|
|
2556
2603
|
};
|
|
2557
|
-
Cell.defaultProps = defaultProps$
|
|
2604
|
+
Cell.defaultProps = defaultProps$1p;
|
|
2558
2605
|
Cell.displayName = "NutCell";
|
|
2559
2606
|
Cell.Group = CellGroup;
|
|
2560
2607
|
var INFINITY = 1 / 0;
|
|
@@ -3690,7 +3737,7 @@ ConfigProvider.displayName = "NutConfigProvider";
|
|
|
3690
3737
|
const pxCheck = (value) => {
|
|
3691
3738
|
return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
3692
3739
|
};
|
|
3693
|
-
const defaultProps$
|
|
3740
|
+
const defaultProps$1o = {
|
|
3694
3741
|
...ComponentDefaults,
|
|
3695
3742
|
fit: "fill",
|
|
3696
3743
|
position: "center",
|
|
@@ -3719,7 +3766,7 @@ const Image$1 = (props) => {
|
|
|
3719
3766
|
onClick,
|
|
3720
3767
|
onLoad,
|
|
3721
3768
|
onError
|
|
3722
|
-
} = { ...defaultProps$
|
|
3769
|
+
} = { ...defaultProps$1o, ...props };
|
|
3723
3770
|
const [innerLoading, setInnerLoading] = useState(true);
|
|
3724
3771
|
const [isError, setIsError] = useState(false);
|
|
3725
3772
|
const imgRef = useRef(null);
|
|
@@ -3846,7 +3893,7 @@ const Image$1 = (props) => {
|
|
|
3846
3893
|
renderErrorImg()
|
|
3847
3894
|
);
|
|
3848
3895
|
};
|
|
3849
|
-
Image$1.defaultProps = defaultProps$
|
|
3896
|
+
Image$1.defaultProps = defaultProps$1o;
|
|
3850
3897
|
Image$1.displayName = "NutImage";
|
|
3851
3898
|
function _extends$4() {
|
|
3852
3899
|
_extends$4 = Object.assign ? Object.assign.bind() : function(target) {
|
|
@@ -5671,7 +5718,7 @@ const Overlay = (props) => {
|
|
|
5671
5718
|
Overlay.defaultProps = defaultOverlayProps;
|
|
5672
5719
|
Overlay.displayName = "NutOverlay";
|
|
5673
5720
|
const DataContext$2 = createContext({});
|
|
5674
|
-
const defaultProps$
|
|
5721
|
+
const defaultProps$1n = {
|
|
5675
5722
|
...ComponentDefaults,
|
|
5676
5723
|
span: "24",
|
|
5677
5724
|
offset: "0",
|
|
@@ -5679,7 +5726,7 @@ const defaultProps$1m = {
|
|
|
5679
5726
|
};
|
|
5680
5727
|
const Col = (props) => {
|
|
5681
5728
|
const { className, style, span, offset, children, onClick } = {
|
|
5682
|
-
...defaultProps$
|
|
5729
|
+
...defaultProps$1n,
|
|
5683
5730
|
...props
|
|
5684
5731
|
};
|
|
5685
5732
|
const [colName, setColName] = useState("");
|
|
@@ -5711,9 +5758,9 @@ const Col = (props) => {
|
|
|
5711
5758
|
children
|
|
5712
5759
|
);
|
|
5713
5760
|
};
|
|
5714
|
-
Col.defaultProps = defaultProps$
|
|
5761
|
+
Col.defaultProps = defaultProps$1n;
|
|
5715
5762
|
Col.displayName = "NutCol";
|
|
5716
|
-
const defaultProps$
|
|
5763
|
+
const defaultProps$1m = {
|
|
5717
5764
|
...ComponentDefaults,
|
|
5718
5765
|
contentPosition: "center",
|
|
5719
5766
|
direction: "horizontal"
|
|
@@ -5721,7 +5768,7 @@ const defaultProps$1l = {
|
|
|
5721
5768
|
const classPrefix$k = `nut-divider`;
|
|
5722
5769
|
const Divider = (props) => {
|
|
5723
5770
|
const { children, contentPosition, style, className, direction, ...rest } = {
|
|
5724
|
-
...defaultProps$
|
|
5771
|
+
...defaultProps$1m,
|
|
5725
5772
|
...props
|
|
5726
5773
|
};
|
|
5727
5774
|
const classes = direction === "horizontal" ? classNames({
|
|
@@ -5736,14 +5783,14 @@ const Divider = (props) => {
|
|
|
5736
5783
|
});
|
|
5737
5784
|
return /* @__PURE__ */ React__default.createElement("div", { className: `${classes} ${className || ""}`, style, ...rest }, children);
|
|
5738
5785
|
};
|
|
5739
|
-
Divider.defaultProps = defaultProps$
|
|
5786
|
+
Divider.defaultProps = defaultProps$1m;
|
|
5740
5787
|
Divider.displayName = "NutDivider";
|
|
5741
5788
|
const gridContext = {
|
|
5742
5789
|
onClick: (item, index) => {
|
|
5743
5790
|
}
|
|
5744
5791
|
};
|
|
5745
5792
|
const GridContext = React__default.createContext(gridContext);
|
|
5746
|
-
const defaultProps$
|
|
5793
|
+
const defaultProps$1l = {
|
|
5747
5794
|
text: "",
|
|
5748
5795
|
columns: 4,
|
|
5749
5796
|
gap: 0,
|
|
@@ -5769,7 +5816,7 @@ const GridItem = (props) => {
|
|
|
5769
5816
|
onClick,
|
|
5770
5817
|
...rest
|
|
5771
5818
|
} = {
|
|
5772
|
-
...defaultProps$
|
|
5819
|
+
...defaultProps$1l,
|
|
5773
5820
|
...props
|
|
5774
5821
|
};
|
|
5775
5822
|
const classPrefix2 = "nut-grid-item";
|
|
@@ -5827,9 +5874,9 @@ const GridItem = (props) => {
|
|
|
5827
5874
|
/* @__PURE__ */ React__default.createElement("div", { className: contentClass() }, children && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children), text && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__text` }, text))
|
|
5828
5875
|
);
|
|
5829
5876
|
};
|
|
5830
|
-
GridItem.defaultProps = defaultProps$
|
|
5877
|
+
GridItem.defaultProps = defaultProps$1l;
|
|
5831
5878
|
GridItem.displayName = "NutGridItem";
|
|
5832
|
-
const defaultProps$
|
|
5879
|
+
const defaultProps$1k = {
|
|
5833
5880
|
columns: 4,
|
|
5834
5881
|
gap: 0,
|
|
5835
5882
|
center: true,
|
|
@@ -5850,7 +5897,7 @@ const Grid = (props) => {
|
|
|
5850
5897
|
className,
|
|
5851
5898
|
onClick,
|
|
5852
5899
|
...rest
|
|
5853
|
-
} = { ...defaultProps$
|
|
5900
|
+
} = { ...defaultProps$1k, ...props };
|
|
5854
5901
|
const childrenDom = React__default.Children.toArray(children);
|
|
5855
5902
|
const classPrefix2 = "nut-grid";
|
|
5856
5903
|
const rootClass = () => {
|
|
@@ -5880,18 +5927,18 @@ const Grid = (props) => {
|
|
|
5880
5927
|
});
|
|
5881
5928
|
})));
|
|
5882
5929
|
};
|
|
5883
|
-
Grid.defaultProps = defaultProps$
|
|
5930
|
+
Grid.defaultProps = defaultProps$1k;
|
|
5884
5931
|
Grid.displayName = "NutGrid";
|
|
5885
5932
|
Grid.Item = GridItem;
|
|
5886
|
-
const defaultProps$
|
|
5933
|
+
const defaultProps$1j = {};
|
|
5887
5934
|
const Layout = (props) => {
|
|
5888
|
-
({ ...defaultProps$
|
|
5935
|
+
({ ...defaultProps$1j, ...props });
|
|
5889
5936
|
return /* @__PURE__ */ React__default.createElement("div", { className: "nut-layout" }, "Layout");
|
|
5890
5937
|
};
|
|
5891
|
-
Layout.defaultProps = defaultProps$
|
|
5938
|
+
Layout.defaultProps = defaultProps$1j;
|
|
5892
5939
|
Layout.displayName = "NutLayout";
|
|
5893
5940
|
const classPrefix$j = "nut-row";
|
|
5894
|
-
const defaultProps$
|
|
5941
|
+
const defaultProps$1i = {
|
|
5895
5942
|
...ComponentDefaults,
|
|
5896
5943
|
type: "",
|
|
5897
5944
|
justify: "start",
|
|
@@ -5911,7 +5958,7 @@ const Row = (props) => {
|
|
|
5911
5958
|
gutter,
|
|
5912
5959
|
onClick
|
|
5913
5960
|
} = {
|
|
5914
|
-
...defaultProps$
|
|
5961
|
+
...defaultProps$1i,
|
|
5915
5962
|
...props
|
|
5916
5963
|
};
|
|
5917
5964
|
const getClass = (prefix2, type22) => {
|
|
@@ -5943,15 +5990,15 @@ const Row = (props) => {
|
|
|
5943
5990
|
children
|
|
5944
5991
|
));
|
|
5945
5992
|
};
|
|
5946
|
-
Row.defaultProps = defaultProps$
|
|
5993
|
+
Row.defaultProps = defaultProps$1i;
|
|
5947
5994
|
Row.displayName = "NutRow";
|
|
5948
5995
|
const prefixCls = "nut-space";
|
|
5949
|
-
const defaultProps$
|
|
5996
|
+
const defaultProps$1h = {
|
|
5950
5997
|
direction: "horizontal"
|
|
5951
5998
|
};
|
|
5952
5999
|
const Space = (props) => {
|
|
5953
6000
|
const { className, style, children, wrap, align, direction, justify } = {
|
|
5954
|
-
...defaultProps$
|
|
6001
|
+
...defaultProps$1h,
|
|
5955
6002
|
...props
|
|
5956
6003
|
};
|
|
5957
6004
|
const cls = classNames(
|
|
@@ -5966,7 +6013,7 @@ const Space = (props) => {
|
|
|
5966
6013
|
return child !== null && child !== void 0 && /* @__PURE__ */ React__default.createElement("div", { className: `${prefixCls}-item` }, child);
|
|
5967
6014
|
}));
|
|
5968
6015
|
};
|
|
5969
|
-
Space.defaultProps = defaultProps$
|
|
6016
|
+
Space.defaultProps = defaultProps$1h;
|
|
5970
6017
|
Space.displayName = "NutSpace";
|
|
5971
6018
|
const canUseDom = !!(typeof window !== "undefined" && typeof document !== "undefined" && window.document && window.document.createElement);
|
|
5972
6019
|
const defaultRoot = canUseDom ? window : void 0;
|
|
@@ -6041,7 +6088,7 @@ function useWatch(dep, callback, config2 = { immediate: false }) {
|
|
|
6041
6088
|
stop2.current = true;
|
|
6042
6089
|
};
|
|
6043
6090
|
}
|
|
6044
|
-
const defaultProps$
|
|
6091
|
+
const defaultProps$1g = {
|
|
6045
6092
|
...ComponentDefaults,
|
|
6046
6093
|
position: "top",
|
|
6047
6094
|
threshold: 0,
|
|
@@ -6059,7 +6106,7 @@ const Sticky = (props) => {
|
|
|
6059
6106
|
threshold,
|
|
6060
6107
|
onChange,
|
|
6061
6108
|
...rest
|
|
6062
|
-
} = { ...defaultProps$
|
|
6109
|
+
} = { ...defaultProps$1g, ...props };
|
|
6063
6110
|
const stickyRef = useRef(null);
|
|
6064
6111
|
const rootRef = useRef(null);
|
|
6065
6112
|
const [isFixed, setIsFixed] = useState(false);
|
|
@@ -6175,9 +6222,9 @@ const Sticky = (props) => {
|
|
|
6175
6222
|
/* @__PURE__ */ React__default.createElement("div", { className: "nut-sticky--box", ref: stickyRef, style: stickyStyle }, children)
|
|
6176
6223
|
);
|
|
6177
6224
|
};
|
|
6178
|
-
Sticky.defaultProps = defaultProps$
|
|
6225
|
+
Sticky.defaultProps = defaultProps$1g;
|
|
6179
6226
|
Sticky.displayName = "NutSticky";
|
|
6180
|
-
const defaultProps$
|
|
6227
|
+
const defaultProps$1f = {
|
|
6181
6228
|
...ComponentDefaults,
|
|
6182
6229
|
target: "",
|
|
6183
6230
|
threshold: 200,
|
|
@@ -6195,7 +6242,7 @@ const BackTop = (props) => {
|
|
|
6195
6242
|
style,
|
|
6196
6243
|
onClick
|
|
6197
6244
|
} = {
|
|
6198
|
-
...defaultProps$
|
|
6245
|
+
...defaultProps$1f,
|
|
6199
6246
|
...props
|
|
6200
6247
|
};
|
|
6201
6248
|
const classPrefix2 = "nut-backtop";
|
|
@@ -6293,7 +6340,7 @@ const BackTop = (props) => {
|
|
|
6293
6340
|
children || /* @__PURE__ */ React__default.createElement(y$2, { width: 19, height: 19, className: "nut-backtop-main" })
|
|
6294
6341
|
);
|
|
6295
6342
|
};
|
|
6296
|
-
BackTop.defaultProps = defaultProps$
|
|
6343
|
+
BackTop.defaultProps = defaultProps$1f;
|
|
6297
6344
|
BackTop.displayName = "NutBackTop";
|
|
6298
6345
|
function clamp$1(v, min, max) {
|
|
6299
6346
|
return Math.max(min, Math.min(v, max));
|
|
@@ -11411,7 +11458,7 @@ const host = createHost(primitives, {
|
|
|
11411
11458
|
});
|
|
11412
11459
|
const animated = host.animated;
|
|
11413
11460
|
const elevatorContext = createContext({});
|
|
11414
|
-
const defaultProps$
|
|
11461
|
+
const defaultProps$1e = {
|
|
11415
11462
|
...ComponentDefaults,
|
|
11416
11463
|
height: "200px",
|
|
11417
11464
|
floorKey: "title",
|
|
@@ -11437,7 +11484,7 @@ const Elevator = (props) => {
|
|
|
11437
11484
|
children,
|
|
11438
11485
|
...rest
|
|
11439
11486
|
} = {
|
|
11440
|
-
...defaultProps$
|
|
11487
|
+
...defaultProps$1e,
|
|
11441
11488
|
...props
|
|
11442
11489
|
};
|
|
11443
11490
|
const classPrefix2 = "nut-elevator";
|
|
@@ -11489,7 +11536,7 @@ const Elevator = (props) => {
|
|
|
11489
11536
|
cacheIndex = 0;
|
|
11490
11537
|
}
|
|
11491
11538
|
if (index > state.current.listHeight.length - 2) {
|
|
11492
|
-
cacheIndex = state.current.listHeight.length - 2;
|
|
11539
|
+
cacheIndex = Math.max(0, state.current.listHeight.length - 2);
|
|
11493
11540
|
}
|
|
11494
11541
|
setCodeIndex(cacheIndex);
|
|
11495
11542
|
if (listview.current) {
|
|
@@ -11612,10 +11659,10 @@ const Elevator = (props) => {
|
|
|
11612
11659
|
})
|
|
11613
11660
|
))) : null);
|
|
11614
11661
|
};
|
|
11615
|
-
Elevator.defaultProps = defaultProps$
|
|
11662
|
+
Elevator.defaultProps = defaultProps$1e;
|
|
11616
11663
|
Elevator.displayName = "NutElevator";
|
|
11617
11664
|
Elevator.Context = elevatorContext;
|
|
11618
|
-
const defaultProps$
|
|
11665
|
+
const defaultProps$1d = {
|
|
11619
11666
|
...ComponentDefaults,
|
|
11620
11667
|
activeText: "",
|
|
11621
11668
|
inactiveText: "",
|
|
@@ -11643,7 +11690,7 @@ const FixedNav = (props) => {
|
|
|
11643
11690
|
content,
|
|
11644
11691
|
...rest
|
|
11645
11692
|
} = {
|
|
11646
|
-
...defaultProps$
|
|
11693
|
+
...defaultProps$1d,
|
|
11647
11694
|
...props
|
|
11648
11695
|
};
|
|
11649
11696
|
const classPrefix2 = "nut-fixednav";
|
|
@@ -11692,12 +11739,12 @@ const FixedNav = (props) => {
|
|
|
11692
11739
|
item.num && /* @__PURE__ */ React__default.createElement("div", { className: "b" }, item.num)
|
|
11693
11740
|
);
|
|
11694
11741
|
}))),
|
|
11695
|
-
/* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__btn`, onClick: () => onUpdateValue() }, content || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(y$
|
|
11742
|
+
/* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__btn`, onClick: () => onUpdateValue() }, content || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(y$7, { color: "#fff" }), /* @__PURE__ */ React__default.createElement("div", { className: "text" }, visible ? activeText || locale.fixednav.activeText : inactiveText || locale.fixednav.inactiveText)))
|
|
11696
11743
|
);
|
|
11697
11744
|
};
|
|
11698
|
-
FixedNav.defaultProps = defaultProps$
|
|
11745
|
+
FixedNav.defaultProps = defaultProps$1d;
|
|
11699
11746
|
FixedNav.displayName = "NutFixedNav";
|
|
11700
|
-
const defaultProps$
|
|
11747
|
+
const defaultProps$1c = {
|
|
11701
11748
|
...ComponentDefaults,
|
|
11702
11749
|
left: "",
|
|
11703
11750
|
right: "",
|
|
@@ -11720,7 +11767,7 @@ const NavBar = (props) => {
|
|
|
11720
11767
|
zIndex,
|
|
11721
11768
|
onBackClick
|
|
11722
11769
|
} = {
|
|
11723
|
-
...defaultProps$
|
|
11770
|
+
...defaultProps$1c,
|
|
11724
11771
|
...props
|
|
11725
11772
|
};
|
|
11726
11773
|
const classPrefix2 = "nut-navbar";
|
|
@@ -11757,9 +11804,9 @@ const NavBar = (props) => {
|
|
|
11757
11804
|
const cls = classNames(classPrefix2, classes, className);
|
|
11758
11805
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, fixed && placeholder ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}--placeholder` }, renderWrapper()) : renderWrapper());
|
|
11759
11806
|
};
|
|
11760
|
-
NavBar.defaultProps = defaultProps$
|
|
11807
|
+
NavBar.defaultProps = defaultProps$1c;
|
|
11761
11808
|
NavBar.displayName = "NutNavBar";
|
|
11762
|
-
const defaultProps$
|
|
11809
|
+
const defaultProps$1b = {
|
|
11763
11810
|
...ComponentDefaults,
|
|
11764
11811
|
position: "center",
|
|
11765
11812
|
transition: "",
|
|
@@ -11811,7 +11858,7 @@ const Popup = (props) => {
|
|
|
11811
11858
|
afterShow,
|
|
11812
11859
|
afterClose,
|
|
11813
11860
|
onClick
|
|
11814
|
-
} = { ...defaultProps$
|
|
11861
|
+
} = { ...defaultProps$1b, ...props };
|
|
11815
11862
|
const [index, setIndex] = useState(zIndex || _zIndex);
|
|
11816
11863
|
const [innerVisible, setInnerVisible] = useState(visible);
|
|
11817
11864
|
const [showChildren, setShowChildren] = useState(true);
|
|
@@ -11937,7 +11984,7 @@ const Popup = (props) => {
|
|
|
11937
11984
|
}, [position, transition]);
|
|
11938
11985
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, renderToContainer(portal, renderNode()));
|
|
11939
11986
|
};
|
|
11940
|
-
Popup.defaultProps = defaultProps$
|
|
11987
|
+
Popup.defaultProps = defaultProps$1b;
|
|
11941
11988
|
Popup.displayName = "NutPopup";
|
|
11942
11989
|
const handleClick = (e) => {
|
|
11943
11990
|
e.stopPropagation();
|
|
@@ -11953,7 +12000,7 @@ const handleClick = (e) => {
|
|
|
11953
12000
|
}
|
|
11954
12001
|
};
|
|
11955
12002
|
const OffsetContext = createContext(20);
|
|
11956
|
-
const defaultProps$
|
|
12003
|
+
const defaultProps$1a = {
|
|
11957
12004
|
...ComponentDefaults,
|
|
11958
12005
|
position: "left",
|
|
11959
12006
|
width: "80%"
|
|
@@ -11970,7 +12017,7 @@ const SideNavBar = (props) => {
|
|
|
11970
12017
|
onClose,
|
|
11971
12018
|
...rest
|
|
11972
12019
|
} = {
|
|
11973
|
-
...defaultProps$
|
|
12020
|
+
...defaultProps$1a,
|
|
11974
12021
|
...props
|
|
11975
12022
|
};
|
|
11976
12023
|
const indent = props.indent ? Number(props.indent) : 20;
|
|
@@ -12002,7 +12049,7 @@ const SideNavBar = (props) => {
|
|
|
12002
12049
|
)))
|
|
12003
12050
|
);
|
|
12004
12051
|
};
|
|
12005
|
-
SideNavBar.defaultProps = defaultProps$
|
|
12052
|
+
SideNavBar.defaultProps = defaultProps$1a;
|
|
12006
12053
|
SideNavBar.displayName = "NutSideNavBar";
|
|
12007
12054
|
const SideNavBarItem = (props) => {
|
|
12008
12055
|
const classPrefix2 = "nut-subsidenavbar";
|
|
@@ -12021,13 +12068,13 @@ const SideNavBarItem = (props) => {
|
|
|
12021
12068
|
title
|
|
12022
12069
|
);
|
|
12023
12070
|
};
|
|
12024
|
-
const defaultProps$
|
|
12071
|
+
const defaultProps$19 = {
|
|
12025
12072
|
open: true
|
|
12026
12073
|
};
|
|
12027
12074
|
const SubSideNavBar = (props) => {
|
|
12028
12075
|
const classPrefix2 = "nut-subsidenavbar";
|
|
12029
12076
|
const { title, value, children, onClick, open, ...rest } = {
|
|
12030
|
-
...defaultProps$
|
|
12077
|
+
...defaultProps$19,
|
|
12031
12078
|
...props
|
|
12032
12079
|
};
|
|
12033
12080
|
const offset = useContext(OffsetContext);
|
|
@@ -12104,7 +12151,7 @@ function usePropsValue({
|
|
|
12104
12151
|
);
|
|
12105
12152
|
return [stateRef.current, setState];
|
|
12106
12153
|
}
|
|
12107
|
-
const defaultProps$
|
|
12154
|
+
const defaultProps$18 = {
|
|
12108
12155
|
...ComponentDefaults,
|
|
12109
12156
|
value: "",
|
|
12110
12157
|
dot: false,
|
|
@@ -12115,7 +12162,7 @@ const defaultProps$17 = {
|
|
|
12115
12162
|
};
|
|
12116
12163
|
const Badge = (props) => {
|
|
12117
12164
|
const { className, style, value, max, children, dot, top, right, color } = {
|
|
12118
|
-
...defaultProps$
|
|
12165
|
+
...defaultProps$18,
|
|
12119
12166
|
...props
|
|
12120
12167
|
};
|
|
12121
12168
|
const classPrefix2 = "nut-badge";
|
|
@@ -12142,9 +12189,9 @@ const Badge = (props) => {
|
|
|
12142
12189
|
};
|
|
12143
12190
|
return /* @__PURE__ */ React__default.createElement("div", { className: classes, style }, typeof value === "object" && value && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__icon` }, value), /* @__PURE__ */ React__default.createElement("div", null, children), /* @__PURE__ */ React__default.createElement("div", { className: contentClasses, style: getStyle() }, content()));
|
|
12144
12191
|
};
|
|
12145
|
-
Badge.defaultProps = defaultProps$
|
|
12192
|
+
Badge.defaultProps = defaultProps$18;
|
|
12146
12193
|
Badge.displayName = "NutBadge";
|
|
12147
|
-
const defaultProps$
|
|
12194
|
+
const defaultProps$17 = {
|
|
12148
12195
|
...ComponentDefaults,
|
|
12149
12196
|
title: "",
|
|
12150
12197
|
icon: null,
|
|
@@ -12173,7 +12220,7 @@ const TabbarItem = (props) => {
|
|
|
12173
12220
|
right,
|
|
12174
12221
|
handleClick: handleClick2
|
|
12175
12222
|
} = {
|
|
12176
|
-
...defaultProps$
|
|
12223
|
+
...defaultProps$17,
|
|
12177
12224
|
...props
|
|
12178
12225
|
};
|
|
12179
12226
|
const classPrefix2 = "nut-tabbar-item";
|
|
@@ -12205,7 +12252,7 @@ const TabbarItem = (props) => {
|
|
|
12205
12252
|
icon ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Badge, { ...badgeProps }, /* @__PURE__ */ React__default.createElement("div", { className: boxPrefix }, icon)), /* @__PURE__ */ React__default.createElement("div", { className: titleClass }, title)) : /* @__PURE__ */ React__default.createElement(Badge, { ...badgeProps }, /* @__PURE__ */ React__default.createElement("div", { className: titleClass }, title))
|
|
12206
12253
|
);
|
|
12207
12254
|
};
|
|
12208
|
-
const defaultProps$
|
|
12255
|
+
const defaultProps$16 = {
|
|
12209
12256
|
...ComponentDefaults,
|
|
12210
12257
|
defaultValue: 0,
|
|
12211
12258
|
fixed: false,
|
|
@@ -12228,7 +12275,7 @@ const Tabbar = (props) => {
|
|
|
12228
12275
|
style,
|
|
12229
12276
|
onSwitch
|
|
12230
12277
|
} = {
|
|
12231
|
-
...defaultProps$
|
|
12278
|
+
...defaultProps$16,
|
|
12232
12279
|
...props
|
|
12233
12280
|
};
|
|
12234
12281
|
const classPrefix2 = "nut-tabbar";
|
|
@@ -12263,17 +12310,17 @@ const Tabbar = (props) => {
|
|
|
12263
12310
|
(fixed || safeArea) && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__safe-area` })
|
|
12264
12311
|
);
|
|
12265
12312
|
};
|
|
12266
|
-
Tabbar.defaultProps = defaultProps$
|
|
12313
|
+
Tabbar.defaultProps = defaultProps$16;
|
|
12267
12314
|
Tabbar.displayName = "NutTabbar";
|
|
12268
12315
|
Tabbar.Item = TabbarItem;
|
|
12269
|
-
const defaultProps$
|
|
12316
|
+
const defaultProps$15 = {
|
|
12270
12317
|
title: "",
|
|
12271
12318
|
value: "",
|
|
12272
12319
|
disabled: false
|
|
12273
12320
|
};
|
|
12274
12321
|
const TabPane = (props) => {
|
|
12275
12322
|
const { children, autoHeightClassName, className, disabled } = {
|
|
12276
|
-
...defaultProps$
|
|
12323
|
+
...defaultProps$15,
|
|
12277
12324
|
...props
|
|
12278
12325
|
};
|
|
12279
12326
|
const classPrefix2 = "nut-tabpane";
|
|
@@ -12299,7 +12346,7 @@ function requestAniFrame() {
|
|
|
12299
12346
|
};
|
|
12300
12347
|
}
|
|
12301
12348
|
const requestAniFrame$1 = requestAniFrame();
|
|
12302
|
-
const defaultProps$
|
|
12349
|
+
const defaultProps$14 = {
|
|
12303
12350
|
...ComponentDefaults,
|
|
12304
12351
|
tabStyle: {},
|
|
12305
12352
|
activeColor: "",
|
|
@@ -12325,7 +12372,7 @@ const Tabs = (props) => {
|
|
|
12325
12372
|
autoHeight,
|
|
12326
12373
|
...rest
|
|
12327
12374
|
} = {
|
|
12328
|
-
...defaultProps$
|
|
12375
|
+
...defaultProps$14,
|
|
12329
12376
|
...props
|
|
12330
12377
|
};
|
|
12331
12378
|
const [value, setValue] = usePropsValue({
|
|
@@ -12492,7 +12539,7 @@ const Tabs = (props) => {
|
|
|
12492
12539
|
return React__default.cloneElement(child, childProps);
|
|
12493
12540
|
}))));
|
|
12494
12541
|
};
|
|
12495
|
-
Tabs.defaultProps = defaultProps$
|
|
12542
|
+
Tabs.defaultProps = defaultProps$14;
|
|
12496
12543
|
Tabs.displayName = "NutTabs";
|
|
12497
12544
|
Tabs.TabPane = TabPane;
|
|
12498
12545
|
const formatTree = (tree, parent, config2) => tree.map((node) => {
|
|
@@ -12631,7 +12678,7 @@ class Tree {
|
|
|
12631
12678
|
}
|
|
12632
12679
|
}
|
|
12633
12680
|
const Tree$1 = Tree;
|
|
12634
|
-
const defaultProps$
|
|
12681
|
+
const defaultProps$13 = {
|
|
12635
12682
|
...ComponentDefaults,
|
|
12636
12683
|
activeColor: "",
|
|
12637
12684
|
activeIcon: "checklist",
|
|
@@ -12674,7 +12721,7 @@ const InternalCascader = (props, ref) => {
|
|
|
12674
12721
|
onClose,
|
|
12675
12722
|
onChange,
|
|
12676
12723
|
onPathChange
|
|
12677
|
-
} = { ...defaultProps$
|
|
12724
|
+
} = { ...defaultProps$13, ...props };
|
|
12678
12725
|
const [tabvalue, setTabvalue] = useState("c1");
|
|
12679
12726
|
const [optionsData, setOptionsData] = useState([]);
|
|
12680
12727
|
const isLazy = () => state.configs.lazy && Boolean(state.configs.onLoad);
|
|
@@ -12970,9 +13017,9 @@ const InternalCascader = (props, ref) => {
|
|
|
12970
13017
|
) : renderTabs());
|
|
12971
13018
|
};
|
|
12972
13019
|
const Cascader = React__default.forwardRef(InternalCascader);
|
|
12973
|
-
Cascader.defaultProps = defaultProps$
|
|
13020
|
+
Cascader.defaultProps = defaultProps$13;
|
|
12974
13021
|
Cascader.displayName = "NutCascader";
|
|
12975
|
-
const defaultProps$
|
|
13022
|
+
const defaultProps$12 = {
|
|
12976
13023
|
...ComponentDefaults,
|
|
12977
13024
|
visible: false,
|
|
12978
13025
|
type: "custom",
|
|
@@ -12999,7 +13046,7 @@ const CustomRender = (props) => {
|
|
|
12999
13046
|
onPathChange,
|
|
13000
13047
|
...rest
|
|
13001
13048
|
} = {
|
|
13002
|
-
...defaultProps$
|
|
13049
|
+
...defaultProps$12,
|
|
13003
13050
|
...props
|
|
13004
13051
|
};
|
|
13005
13052
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, type4 === "custom" && /* @__PURE__ */ React__default.createElement(
|
|
@@ -13024,7 +13071,7 @@ const CustomRender = (props) => {
|
|
|
13024
13071
|
}
|
|
13025
13072
|
));
|
|
13026
13073
|
};
|
|
13027
|
-
const defaultProps$
|
|
13074
|
+
const defaultProps$11 = {
|
|
13028
13075
|
type: "custom",
|
|
13029
13076
|
existList: [],
|
|
13030
13077
|
defaultIcon: null,
|
|
@@ -13043,7 +13090,7 @@ const ExistRender = (props) => {
|
|
|
13043
13090
|
onSelect,
|
|
13044
13091
|
onSwitch,
|
|
13045
13092
|
...rest
|
|
13046
|
-
} = { ...defaultProps$
|
|
13093
|
+
} = { ...defaultProps$11, ...props };
|
|
13047
13094
|
const classPrefix2 = "nut-address";
|
|
13048
13095
|
const selectedExist = (item) => {
|
|
13049
13096
|
existList.forEach((list, index) => {
|
|
@@ -13068,7 +13115,7 @@ const ExistRender = (props) => {
|
|
|
13068
13115
|
);
|
|
13069
13116
|
})), (custom || custom && locale.address.chooseAnotherAddress) && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-footer`, onClick }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-footer-btn` }, custom)));
|
|
13070
13117
|
};
|
|
13071
|
-
const defaultProps
|
|
13118
|
+
const defaultProps$10 = {
|
|
13072
13119
|
...ComponentDefaults,
|
|
13073
13120
|
defaultValue: [],
|
|
13074
13121
|
type: "custom",
|
|
@@ -13110,7 +13157,7 @@ const InternalAddress = (props, ref) => {
|
|
|
13110
13157
|
className,
|
|
13111
13158
|
...rest
|
|
13112
13159
|
} = {
|
|
13113
|
-
...defaultProps
|
|
13160
|
+
...defaultProps$10,
|
|
13114
13161
|
...props
|
|
13115
13162
|
};
|
|
13116
13163
|
const classPrefix2 = "nut-address";
|
|
@@ -13135,7 +13182,7 @@ const InternalAddress = (props, ref) => {
|
|
|
13135
13182
|
onClose && onClose();
|
|
13136
13183
|
};
|
|
13137
13184
|
const renderLeftOnCustomSwitch = () => {
|
|
13138
|
-
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, custom && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-left-icon`, onClick: onSwitchModule }, React__default.isValidElement(backIcon) ? backIcon : /* @__PURE__ */ React__default.createElement(y$
|
|
13185
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, custom && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-left-icon`, onClick: onSwitchModule }, React__default.isValidElement(backIcon) ? backIcon : /* @__PURE__ */ React__default.createElement(y$7, { color: "#cccccc" })));
|
|
13139
13186
|
};
|
|
13140
13187
|
const selectedExistItem = (data) => {
|
|
13141
13188
|
onExistSelect && onExistSelect(data);
|
|
@@ -13201,7 +13248,7 @@ const InternalAddress = (props, ref) => {
|
|
|
13201
13248
|
));
|
|
13202
13249
|
};
|
|
13203
13250
|
const Address = forwardRef(InternalAddress);
|
|
13204
|
-
Address.defaultProps = defaultProps
|
|
13251
|
+
Address.defaultProps = defaultProps$10;
|
|
13205
13252
|
Address.displayName = "NutAddress";
|
|
13206
13253
|
const Utils = {
|
|
13207
13254
|
/**
|
|
@@ -13451,7 +13498,7 @@ const isEnd = (day, days) => {
|
|
|
13451
13498
|
const isStartAndEnd = (days) => {
|
|
13452
13499
|
return days.length >= 2 && Utils.isEqual(days[0], days[1]);
|
|
13453
13500
|
};
|
|
13454
|
-
const defaultProps
|
|
13501
|
+
const defaultProps$$ = {
|
|
13455
13502
|
...ComponentDefaults,
|
|
13456
13503
|
type: "single",
|
|
13457
13504
|
autoBackfill: false,
|
|
@@ -13486,6 +13533,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
13486
13533
|
const {
|
|
13487
13534
|
style,
|
|
13488
13535
|
className,
|
|
13536
|
+
children,
|
|
13489
13537
|
popup,
|
|
13490
13538
|
type: type4,
|
|
13491
13539
|
autoBackfill,
|
|
@@ -13510,7 +13558,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
13510
13558
|
onUpdate,
|
|
13511
13559
|
onDayClick,
|
|
13512
13560
|
onPageChange
|
|
13513
|
-
} = { ...defaultProps
|
|
13561
|
+
} = { ...defaultProps$$, ...props };
|
|
13514
13562
|
const weekdays = locale.calendaritem.weekdays;
|
|
13515
13563
|
const weeks = [
|
|
13516
13564
|
...weekdays.slice(firstDayOfWeek, 7),
|
|
@@ -14040,13 +14088,13 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
14040
14088
|
);
|
|
14041
14089
|
};
|
|
14042
14090
|
const renderFooter = () => {
|
|
14043
|
-
return /* @__PURE__ */ React__default.createElement("div", { className: "nut-calendar-footer" }, /* @__PURE__ */ React__default.createElement("div", { className: "calendar-confirm-btn", onClick: confirm2 }, confirmText || locale.confirm));
|
|
14091
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: "nut-calendar-footer" }, children, /* @__PURE__ */ React__default.createElement("div", { className: "calendar-confirm-btn", onClick: confirm2 }, confirmText || locale.confirm));
|
|
14044
14092
|
};
|
|
14045
14093
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: classes, style }, renderHeader(), renderContent(), popup && !autoBackfill ? renderFooter() : ""));
|
|
14046
14094
|
});
|
|
14047
|
-
CalendarItem.defaultProps = defaultProps
|
|
14095
|
+
CalendarItem.defaultProps = defaultProps$$;
|
|
14048
14096
|
CalendarItem.displayName = "NutCalendarItem";
|
|
14049
|
-
const defaultProps$
|
|
14097
|
+
const defaultProps$_ = {
|
|
14050
14098
|
...ComponentDefaults,
|
|
14051
14099
|
type: "single",
|
|
14052
14100
|
autoBackfill: false,
|
|
@@ -14083,6 +14131,7 @@ const Calendar = React__default.forwardRef((props, ref) => {
|
|
|
14083
14131
|
const {
|
|
14084
14132
|
style,
|
|
14085
14133
|
className,
|
|
14134
|
+
children,
|
|
14086
14135
|
popup,
|
|
14087
14136
|
visible,
|
|
14088
14137
|
type: type4,
|
|
@@ -14108,7 +14157,7 @@ const Calendar = React__default.forwardRef((props, ref) => {
|
|
|
14108
14157
|
onConfirm,
|
|
14109
14158
|
onDayClick,
|
|
14110
14159
|
onPageChange
|
|
14111
|
-
} = { ...defaultProps$
|
|
14160
|
+
} = { ...defaultProps$_, ...props };
|
|
14112
14161
|
const calendarRef = useRef(null);
|
|
14113
14162
|
const close = () => {
|
|
14114
14163
|
onClose && onClose();
|
|
@@ -14140,6 +14189,7 @@ const Calendar = React__default.forwardRef((props, ref) => {
|
|
|
14140
14189
|
ref: calendarRef,
|
|
14141
14190
|
style,
|
|
14142
14191
|
className,
|
|
14192
|
+
children,
|
|
14143
14193
|
type: type4,
|
|
14144
14194
|
autoBackfill,
|
|
14145
14195
|
popup,
|
|
@@ -14181,11 +14231,11 @@ const Calendar = React__default.forwardRef((props, ref) => {
|
|
|
14181
14231
|
renderItem()
|
|
14182
14232
|
) : renderItem());
|
|
14183
14233
|
});
|
|
14184
|
-
Calendar.defaultProps = defaultProps$
|
|
14234
|
+
Calendar.defaultProps = defaultProps$_;
|
|
14185
14235
|
Calendar.displayName = "NutCalendar";
|
|
14186
14236
|
const CheckboxGroupContext = createContext(null);
|
|
14187
14237
|
const Context$1 = CheckboxGroupContext;
|
|
14188
|
-
const defaultProps$
|
|
14238
|
+
const defaultProps$Z = {
|
|
14189
14239
|
max: void 0,
|
|
14190
14240
|
labelPosition: "right",
|
|
14191
14241
|
direction: "vertical",
|
|
@@ -14196,7 +14246,7 @@ const defaultProps$Y = {
|
|
|
14196
14246
|
const classPrefix$g = "nut-checkboxgroup";
|
|
14197
14247
|
const CheckboxGroup = React__default.forwardRef(
|
|
14198
14248
|
(props, ref) => {
|
|
14199
|
-
const { children } = { ...defaultProps$
|
|
14249
|
+
const { children } = { ...defaultProps$Z, ...props };
|
|
14200
14250
|
const {
|
|
14201
14251
|
className,
|
|
14202
14252
|
disabled,
|
|
@@ -14285,9 +14335,9 @@ const CheckboxGroup = React__default.forwardRef(
|
|
|
14285
14335
|
);
|
|
14286
14336
|
}
|
|
14287
14337
|
);
|
|
14288
|
-
CheckboxGroup.defaultProps = defaultProps$
|
|
14338
|
+
CheckboxGroup.defaultProps = defaultProps$Z;
|
|
14289
14339
|
CheckboxGroup.displayName = "NutCheckboxGroup";
|
|
14290
|
-
const defaultProps$
|
|
14340
|
+
const defaultProps$Y = {
|
|
14291
14341
|
...ComponentDefaults,
|
|
14292
14342
|
disabled: false,
|
|
14293
14343
|
labelPosition: "right",
|
|
@@ -14300,7 +14350,7 @@ const defaultProps$X = {
|
|
|
14300
14350
|
const classPrefix$f = "nut-checkbox";
|
|
14301
14351
|
const Checkbox = (props) => {
|
|
14302
14352
|
const { children } = {
|
|
14303
|
-
...defaultProps$
|
|
14353
|
+
...defaultProps$Y,
|
|
14304
14354
|
...props
|
|
14305
14355
|
};
|
|
14306
14356
|
const {
|
|
@@ -14403,7 +14453,7 @@ const Checkbox = (props) => {
|
|
|
14403
14453
|
renderLabel()
|
|
14404
14454
|
);
|
|
14405
14455
|
};
|
|
14406
|
-
Checkbox.defaultProps = defaultProps$
|
|
14456
|
+
Checkbox.defaultProps = defaultProps$Y;
|
|
14407
14457
|
Checkbox.displayName = "NutCheckBox";
|
|
14408
14458
|
Checkbox.Group = CheckboxGroup;
|
|
14409
14459
|
const MIN_DISTANCE = 10;
|
|
@@ -14697,7 +14747,7 @@ function useRefs() {
|
|
|
14697
14747
|
}, []);
|
|
14698
14748
|
return [refs.current, setRefs, reset];
|
|
14699
14749
|
}
|
|
14700
|
-
const defaultProps$
|
|
14750
|
+
const defaultProps$X = {
|
|
14701
14751
|
...ComponentDefaults,
|
|
14702
14752
|
title: "",
|
|
14703
14753
|
options: [],
|
|
@@ -14723,7 +14773,7 @@ const InternalPicker = (props, ref) => {
|
|
|
14723
14773
|
afterClose,
|
|
14724
14774
|
onChange,
|
|
14725
14775
|
...rest
|
|
14726
|
-
} = { ...defaultProps$
|
|
14776
|
+
} = { ...defaultProps$X, ...props };
|
|
14727
14777
|
const classPrefix2 = "nut-picker";
|
|
14728
14778
|
const classes = classNames(classPrefix2, className);
|
|
14729
14779
|
const [selectedValue, setSelectedValue] = usePropsValue({
|
|
@@ -14950,7 +15000,7 @@ const InternalPicker = (props, ref) => {
|
|
|
14950
15000
|
const Picker = React__default.forwardRef(InternalPicker);
|
|
14951
15001
|
const Picker$1 = Picker;
|
|
14952
15002
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
14953
|
-
const defaultProps$
|
|
15003
|
+
const defaultProps$W = {
|
|
14954
15004
|
...ComponentDefaults,
|
|
14955
15005
|
visible: false,
|
|
14956
15006
|
title: "",
|
|
@@ -14981,7 +15031,7 @@ const DatePicker = (props) => {
|
|
|
14981
15031
|
style,
|
|
14982
15032
|
...rest
|
|
14983
15033
|
} = {
|
|
14984
|
-
...defaultProps$
|
|
15034
|
+
...defaultProps$W,
|
|
14985
15035
|
...props
|
|
14986
15036
|
};
|
|
14987
15037
|
const { locale } = useConfig();
|
|
@@ -15254,7 +15304,7 @@ const DatePicker = (props) => {
|
|
|
15254
15304
|
}
|
|
15255
15305
|
));
|
|
15256
15306
|
};
|
|
15257
|
-
DatePicker.defaultProps = defaultProps$
|
|
15307
|
+
DatePicker.defaultProps = defaultProps$W;
|
|
15258
15308
|
DatePicker.displayName = "NutDatePicker";
|
|
15259
15309
|
const Context = createContext({});
|
|
15260
15310
|
function _extends() {
|
|
@@ -16465,7 +16515,7 @@ function isForwardRefComponent(component) {
|
|
|
16465
16515
|
}
|
|
16466
16516
|
).$$typeof === component.type.$$typeof;
|
|
16467
16517
|
}
|
|
16468
|
-
const defaultProps$
|
|
16518
|
+
const defaultProps$V = {
|
|
16469
16519
|
...ComponentDefaults,
|
|
16470
16520
|
required: false,
|
|
16471
16521
|
name: "",
|
|
@@ -16533,7 +16583,7 @@ class FormItem extends React__default.Component {
|
|
|
16533
16583
|
__publicField(this, "renderLayout", (childNode) => {
|
|
16534
16584
|
var _a2, _b;
|
|
16535
16585
|
const { label, name, required: required4, className, style, errorMessageAlign } = {
|
|
16536
|
-
...defaultProps$
|
|
16586
|
+
...defaultProps$V,
|
|
16537
16587
|
...this.props
|
|
16538
16588
|
};
|
|
16539
16589
|
const item = ((_a2 = this.context.errors) == null ? void 0 : _a2.length) > 0 && ((_b = this.context.errors) == null ? void 0 : _b.filter((item2) => {
|
|
@@ -16583,9 +16633,9 @@ class FormItem extends React__default.Component {
|
|
|
16583
16633
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, { key: this.state.resetCount }, this.renderLayout(returnChildNode));
|
|
16584
16634
|
}
|
|
16585
16635
|
}
|
|
16586
|
-
__publicField(FormItem, "defaultProps", defaultProps$
|
|
16636
|
+
__publicField(FormItem, "defaultProps", defaultProps$V);
|
|
16587
16637
|
__publicField(FormItem, "contextType", Context);
|
|
16588
|
-
const defaultProps$
|
|
16638
|
+
const defaultProps$U = {
|
|
16589
16639
|
...ComponentDefaults,
|
|
16590
16640
|
labelPosition: "right",
|
|
16591
16641
|
starPosition: "left",
|
|
@@ -16613,7 +16663,7 @@ const Form = (props) => {
|
|
|
16613
16663
|
starPosition,
|
|
16614
16664
|
form
|
|
16615
16665
|
} = {
|
|
16616
|
-
...defaultProps$
|
|
16666
|
+
...defaultProps$U,
|
|
16617
16667
|
...props
|
|
16618
16668
|
};
|
|
16619
16669
|
let formInstance;
|
|
@@ -16656,7 +16706,7 @@ const Form = (props) => {
|
|
|
16656
16706
|
/* @__PURE__ */ React__default.createElement(Cell.Group, null, /* @__PURE__ */ React__default.createElement(Context.Provider, { value: formInstance }, children), footer ? /* @__PURE__ */ React__default.createElement(Cell, null, footer) : null)
|
|
16657
16707
|
);
|
|
16658
16708
|
};
|
|
16659
|
-
Form.defaultProps = defaultProps$
|
|
16709
|
+
Form.defaultProps = defaultProps$U;
|
|
16660
16710
|
Form.displayName = "NutForm";
|
|
16661
16711
|
Form.Item = FormItem;
|
|
16662
16712
|
Form.useForm = useForm;
|
|
@@ -16684,7 +16734,7 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
|
|
|
16684
16734
|
const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
16685
16735
|
return value.replace(regExp, "");
|
|
16686
16736
|
}
|
|
16687
|
-
const defaultProps$
|
|
16737
|
+
const defaultProps$T = {
|
|
16688
16738
|
...ComponentDefaults,
|
|
16689
16739
|
type: "text",
|
|
16690
16740
|
name: "",
|
|
@@ -16727,7 +16777,7 @@ const Input = forwardRef(
|
|
|
16727
16777
|
value: _value,
|
|
16728
16778
|
...rest
|
|
16729
16779
|
} = {
|
|
16730
|
-
...defaultProps$
|
|
16780
|
+
...defaultProps$T,
|
|
16731
16781
|
...props
|
|
16732
16782
|
};
|
|
16733
16783
|
const [value, setValue] = usePropsValue({
|
|
@@ -16862,9 +16912,9 @@ const Input = forwardRef(
|
|
|
16862
16912
|
);
|
|
16863
16913
|
}
|
|
16864
16914
|
);
|
|
16865
|
-
Input.defaultProps = defaultProps$
|
|
16915
|
+
Input.defaultProps = defaultProps$T;
|
|
16866
16916
|
Input.displayName = "NutInput";
|
|
16867
|
-
const defaultProps$
|
|
16917
|
+
const defaultProps$S = {
|
|
16868
16918
|
...ComponentDefaults,
|
|
16869
16919
|
disabled: false,
|
|
16870
16920
|
min: 1,
|
|
@@ -16901,7 +16951,7 @@ const InputNumber = (props) => {
|
|
|
16901
16951
|
onChange,
|
|
16902
16952
|
...restProps
|
|
16903
16953
|
} = {
|
|
16904
|
-
...defaultProps$
|
|
16954
|
+
...defaultProps$S,
|
|
16905
16955
|
...props
|
|
16906
16956
|
};
|
|
16907
16957
|
const inputRef = useRef("");
|
|
@@ -17098,7 +17148,7 @@ const InputNumber = (props) => {
|
|
|
17098
17148
|
}
|
|
17099
17149
|
)), /* @__PURE__ */ React__default.createElement("div", { className: "nut-input-add" }, /* @__PURE__ */ React__default.createElement(y$4, { className: iconAddClasses, onClick: (e) => addNumber(e) })));
|
|
17100
17150
|
};
|
|
17101
|
-
InputNumber.defaultProps = defaultProps$
|
|
17151
|
+
InputNumber.defaultProps = defaultProps$S;
|
|
17102
17152
|
InputNumber.displayName = "NutInputNumber";
|
|
17103
17153
|
const isObject = (val) => val !== null && typeof val === "object";
|
|
17104
17154
|
const isFunction = (val) => typeof val === "function";
|
|
@@ -17140,7 +17190,7 @@ function useClickAway(onClickAway, target, eventName = "click", useCapture, isLi
|
|
|
17140
17190
|
};
|
|
17141
17191
|
}, [target]);
|
|
17142
17192
|
}
|
|
17143
|
-
const defaultProps$
|
|
17193
|
+
const defaultProps$R = {
|
|
17144
17194
|
...ComponentDefaults,
|
|
17145
17195
|
columns: 1,
|
|
17146
17196
|
direction: "down",
|
|
@@ -17169,7 +17219,7 @@ const MenuItem = forwardRef((props, ref) => {
|
|
|
17169
17219
|
parent,
|
|
17170
17220
|
index
|
|
17171
17221
|
} = {
|
|
17172
|
-
...defaultProps$
|
|
17222
|
+
...defaultProps$R,
|
|
17173
17223
|
...props
|
|
17174
17224
|
};
|
|
17175
17225
|
const [showPopup, setShowPopup] = useState(show2);
|
|
@@ -17320,9 +17370,9 @@ const MenuItem = forwardRef((props, ref) => {
|
|
|
17320
17370
|
)
|
|
17321
17371
|
);
|
|
17322
17372
|
});
|
|
17323
|
-
MenuItem.defaultProps = defaultProps$
|
|
17373
|
+
MenuItem.defaultProps = defaultProps$R;
|
|
17324
17374
|
MenuItem.displayName = "NutMenuItem";
|
|
17325
|
-
const defaultProps$
|
|
17375
|
+
const defaultProps$Q = {
|
|
17326
17376
|
...ComponentDefaults,
|
|
17327
17377
|
activeColor: "",
|
|
17328
17378
|
closeOnOverlayClick: true,
|
|
@@ -17347,7 +17397,7 @@ const Menu = (props) => {
|
|
|
17347
17397
|
onOpen,
|
|
17348
17398
|
...rest
|
|
17349
17399
|
} = {
|
|
17350
|
-
...defaultProps$
|
|
17400
|
+
...defaultProps$Q,
|
|
17351
17401
|
...props
|
|
17352
17402
|
};
|
|
17353
17403
|
const menuRef = useRef(null);
|
|
@@ -17447,7 +17497,7 @@ const Menu = (props) => {
|
|
|
17447
17497
|
})
|
|
17448
17498
|
},
|
|
17449
17499
|
/* @__PURE__ */ React__default.createElement("div", { className: "nut-menu__title-text" }, finallyTitle()),
|
|
17450
|
-
icon || (direction === "up" ? /* @__PURE__ */ React__default.createElement(x$h, { className: "nut-menu__title-icon" }) : /* @__PURE__ */ React__default.createElement(y$
|
|
17500
|
+
icon || (direction === "up" ? /* @__PURE__ */ React__default.createElement(x$h, { className: "nut-menu__title-icon" }) : /* @__PURE__ */ React__default.createElement(y$a, { className: "nut-menu__title-icon" }))
|
|
17451
17501
|
)
|
|
17452
17502
|
);
|
|
17453
17503
|
}
|
|
@@ -17474,10 +17524,10 @@ const Menu = (props) => {
|
|
|
17474
17524
|
), cloneChildren())
|
|
17475
17525
|
);
|
|
17476
17526
|
};
|
|
17477
|
-
Menu.defaultProps = defaultProps$
|
|
17527
|
+
Menu.defaultProps = defaultProps$Q;
|
|
17478
17528
|
Menu.displayName = "NutMenu";
|
|
17479
17529
|
Menu.Item = MenuItem;
|
|
17480
|
-
const defaultProps$
|
|
17530
|
+
const defaultProps$P = {
|
|
17481
17531
|
...ComponentDefaults,
|
|
17482
17532
|
visible: false,
|
|
17483
17533
|
type: "default",
|
|
@@ -17628,10 +17678,10 @@ const NumberKeyboard = (props) => {
|
|
|
17628
17678
|
))))
|
|
17629
17679
|
);
|
|
17630
17680
|
};
|
|
17631
|
-
NumberKeyboard.defaultProps = defaultProps$
|
|
17681
|
+
NumberKeyboard.defaultProps = defaultProps$P;
|
|
17632
17682
|
NumberKeyboard.displayName = "NutNumberKeyboard";
|
|
17633
17683
|
const RadioContext = React__default.createContext(null);
|
|
17634
|
-
const defaultProps$
|
|
17684
|
+
const defaultProps$O = {
|
|
17635
17685
|
labelPosition: "right",
|
|
17636
17686
|
onChange: (value) => {
|
|
17637
17687
|
},
|
|
@@ -17652,7 +17702,7 @@ const RadioGroup = React__default.forwardRef(
|
|
|
17652
17702
|
options: options2,
|
|
17653
17703
|
disabled,
|
|
17654
17704
|
...rest
|
|
17655
|
-
} = { ...defaultProps$
|
|
17705
|
+
} = { ...defaultProps$O, ...props };
|
|
17656
17706
|
const [val2State, setVal2State] = usePropsValue({
|
|
17657
17707
|
defaultValue: props.defaultValue,
|
|
17658
17708
|
value: props.value,
|
|
@@ -17704,9 +17754,9 @@ const RadioGroup = React__default.forwardRef(
|
|
|
17704
17754
|
);
|
|
17705
17755
|
}
|
|
17706
17756
|
);
|
|
17707
|
-
RadioGroup.defaultProps = defaultProps$
|
|
17757
|
+
RadioGroup.defaultProps = defaultProps$O;
|
|
17708
17758
|
RadioGroup.displayName = "NutRadioGroup";
|
|
17709
|
-
const defaultProps$
|
|
17759
|
+
const defaultProps$N = {
|
|
17710
17760
|
...ComponentDefaults,
|
|
17711
17761
|
disabled: false,
|
|
17712
17762
|
shape: "round",
|
|
@@ -17732,7 +17782,7 @@ const Radio = (props) => {
|
|
|
17732
17782
|
onChange,
|
|
17733
17783
|
...others
|
|
17734
17784
|
} = {
|
|
17735
|
-
...defaultProps$
|
|
17785
|
+
...defaultProps$N,
|
|
17736
17786
|
...props
|
|
17737
17787
|
};
|
|
17738
17788
|
let { labelPosition, disabled, ...rest } = others;
|
|
@@ -17795,7 +17845,7 @@ const Radio = (props) => {
|
|
|
17795
17845
|
return React__default.isValidElement(activeIcon2) ? React__default.cloneElement(activeIcon2, {
|
|
17796
17846
|
...activeIcon2.props,
|
|
17797
17847
|
className: classNames(color())
|
|
17798
|
-
}) : /* @__PURE__ */ React__default.createElement(y$
|
|
17848
|
+
}) : /* @__PURE__ */ React__default.createElement(y$9, { className: classNames(color()) });
|
|
17799
17849
|
}
|
|
17800
17850
|
return React__default.isValidElement(icon2) ? React__default.cloneElement(icon2, {
|
|
17801
17851
|
...icon2.props,
|
|
@@ -17828,10 +17878,10 @@ const Radio = (props) => {
|
|
|
17828
17878
|
renderRadioItem()
|
|
17829
17879
|
);
|
|
17830
17880
|
};
|
|
17831
|
-
Radio.defaultProps = defaultProps$
|
|
17881
|
+
Radio.defaultProps = defaultProps$N;
|
|
17832
17882
|
Radio.displayName = "NutRadio";
|
|
17833
17883
|
Radio.Group = RadioGroup;
|
|
17834
|
-
const defaultProps$
|
|
17884
|
+
const defaultProps$M = {
|
|
17835
17885
|
...ComponentDefaults,
|
|
17836
17886
|
range: false,
|
|
17837
17887
|
min: 0,
|
|
@@ -17859,7 +17909,7 @@ const Range = (props) => {
|
|
|
17859
17909
|
step,
|
|
17860
17910
|
value,
|
|
17861
17911
|
defaultValue
|
|
17862
|
-
} = { ...defaultProps$
|
|
17912
|
+
} = { ...defaultProps$M, ...props };
|
|
17863
17913
|
const classPrefix2 = "nut-range";
|
|
17864
17914
|
const [buttonIndex, setButtonIndex] = useState(0);
|
|
17865
17915
|
const [dragStatus, setDragStatus] = useState("start");
|
|
@@ -18123,9 +18173,9 @@ const Range = (props) => {
|
|
|
18123
18173
|
renderButton()
|
|
18124
18174
|
))), maxDescription !== null && /* @__PURE__ */ React__default.createElement("div", { className: "max" }, maxDescription || max));
|
|
18125
18175
|
};
|
|
18126
|
-
Range.defaultProps = defaultProps$
|
|
18176
|
+
Range.defaultProps = defaultProps$M;
|
|
18127
18177
|
Range.displayName = "NutRange";
|
|
18128
|
-
const defaultProps$
|
|
18178
|
+
const defaultProps$L = {
|
|
18129
18179
|
...ComponentDefaults,
|
|
18130
18180
|
count: 5,
|
|
18131
18181
|
min: 0,
|
|
@@ -18150,7 +18200,7 @@ const Rate = (props) => {
|
|
|
18150
18200
|
allowHalf,
|
|
18151
18201
|
onChange
|
|
18152
18202
|
} = {
|
|
18153
|
-
...defaultProps$
|
|
18203
|
+
...defaultProps$L,
|
|
18154
18204
|
...props
|
|
18155
18205
|
};
|
|
18156
18206
|
const classPrefix2 = "nut-rate";
|
|
@@ -18233,9 +18283,9 @@ const Rate = (props) => {
|
|
|
18233
18283
|
})
|
|
18234
18284
|
);
|
|
18235
18285
|
};
|
|
18236
|
-
Rate.defaultProps = defaultProps$
|
|
18286
|
+
Rate.defaultProps = defaultProps$L;
|
|
18237
18287
|
Rate.displayName = "NutRate";
|
|
18238
|
-
const defaultProps$
|
|
18288
|
+
const defaultProps$K = {
|
|
18239
18289
|
...ComponentDefaults,
|
|
18240
18290
|
placeholder: "",
|
|
18241
18291
|
shape: "square",
|
|
@@ -18274,7 +18324,7 @@ const SearchBar = (props) => {
|
|
|
18274
18324
|
onSearch,
|
|
18275
18325
|
onInputClick
|
|
18276
18326
|
} = {
|
|
18277
|
-
...defaultProps$
|
|
18327
|
+
...defaultProps$K,
|
|
18278
18328
|
...props
|
|
18279
18329
|
};
|
|
18280
18330
|
const forceFocus = () => {
|
|
@@ -18392,9 +18442,9 @@ const SearchBar = (props) => {
|
|
|
18392
18442
|
renderRight()
|
|
18393
18443
|
);
|
|
18394
18444
|
};
|
|
18395
|
-
SearchBar.defaultProps = defaultProps$
|
|
18445
|
+
SearchBar.defaultProps = defaultProps$K;
|
|
18396
18446
|
SearchBar.displayName = "NutSearchBar";
|
|
18397
|
-
const defaultProps$
|
|
18447
|
+
const defaultProps$J = {
|
|
18398
18448
|
...ComponentDefaults,
|
|
18399
18449
|
value: "",
|
|
18400
18450
|
visible: false,
|
|
@@ -18431,7 +18481,7 @@ const ShortPassword = (props) => {
|
|
|
18431
18481
|
onCloseIconClick,
|
|
18432
18482
|
...rest
|
|
18433
18483
|
} = {
|
|
18434
|
-
...defaultProps$
|
|
18484
|
+
...defaultProps$J,
|
|
18435
18485
|
...props
|
|
18436
18486
|
};
|
|
18437
18487
|
const classPrefix2 = "nut-shortpassword";
|
|
@@ -18488,9 +18538,9 @@ const ShortPassword = (props) => {
|
|
|
18488
18538
|
), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__footer__sure`, onClick: sure }, locale.confirm)))
|
|
18489
18539
|
);
|
|
18490
18540
|
};
|
|
18491
|
-
ShortPassword.defaultProps = defaultProps$
|
|
18541
|
+
ShortPassword.defaultProps = defaultProps$J;
|
|
18492
18542
|
ShortPassword.displayName = "NutShortPassword";
|
|
18493
|
-
const defaultProps$
|
|
18543
|
+
const defaultProps$I = {
|
|
18494
18544
|
...ComponentDefaults,
|
|
18495
18545
|
type: "png",
|
|
18496
18546
|
lineWidth: 2,
|
|
@@ -18510,7 +18560,7 @@ const InternalSignature = (props, ref) => {
|
|
|
18510
18560
|
onClear,
|
|
18511
18561
|
...rest
|
|
18512
18562
|
} = {
|
|
18513
|
-
...defaultProps$
|
|
18563
|
+
...defaultProps$I,
|
|
18514
18564
|
...props
|
|
18515
18565
|
};
|
|
18516
18566
|
const classPrefix2 = `nut-signature`;
|
|
@@ -18608,9 +18658,9 @@ const InternalSignature = (props, ref) => {
|
|
|
18608
18658
|
return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2} ${className}`, style, ...rest }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__inner`, ref: wrapRef }, isCanvasSupported() ? /* @__PURE__ */ React__default.createElement("canvas", { ref: canvasRef, height: canvasHeight, width: canvasWidth }) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, unsupported || /* @__PURE__ */ React__default.createElement("p", { className: `${classPrefix2}__unsupport` }, locale.signature.unsupported))));
|
|
18609
18659
|
};
|
|
18610
18660
|
const Signature = React__default.forwardRef(InternalSignature);
|
|
18611
|
-
Signature.defaultProps = defaultProps$
|
|
18661
|
+
Signature.defaultProps = defaultProps$I;
|
|
18612
18662
|
Signature.displayName = "NutSignature";
|
|
18613
|
-
const defaultProps$
|
|
18663
|
+
const defaultProps$H = {
|
|
18614
18664
|
...ComponentDefaults,
|
|
18615
18665
|
disabled: false,
|
|
18616
18666
|
activeText: "",
|
|
@@ -18627,7 +18677,7 @@ const Switch = (props) => {
|
|
|
18627
18677
|
style,
|
|
18628
18678
|
onChange
|
|
18629
18679
|
} = {
|
|
18630
|
-
...defaultProps$
|
|
18680
|
+
...defaultProps$H,
|
|
18631
18681
|
...props
|
|
18632
18682
|
};
|
|
18633
18683
|
const classPrefix2 = "nut-switch";
|
|
@@ -18646,9 +18696,9 @@ const Switch = (props) => {
|
|
|
18646
18696
|
};
|
|
18647
18697
|
return /* @__PURE__ */ React__default.createElement("div", { className: classes(), onClick: (e) => onClick(e), style }, /* @__PURE__ */ React__default.createElement("div", { className: "switch-button" }, !value && /* @__PURE__ */ React__default.createElement("div", { className: "close-line" }), activeText && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, value ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__label open` }, activeText) : /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__label close` }, inactiveText))));
|
|
18648
18698
|
};
|
|
18649
|
-
Switch.defaultProps = defaultProps$
|
|
18699
|
+
Switch.defaultProps = defaultProps$H;
|
|
18650
18700
|
Switch.displayName = "NutSwitch";
|
|
18651
|
-
const defaultProps$
|
|
18701
|
+
const defaultProps$G = {
|
|
18652
18702
|
...ComponentDefaults,
|
|
18653
18703
|
defaultValue: "",
|
|
18654
18704
|
showCount: false,
|
|
@@ -18677,7 +18727,7 @@ const TextArea = (props) => {
|
|
|
18677
18727
|
onBlur,
|
|
18678
18728
|
onFocus,
|
|
18679
18729
|
...rest
|
|
18680
|
-
} = { ...defaultProps$
|
|
18730
|
+
} = { ...defaultProps$G, ...props };
|
|
18681
18731
|
const classPrefix2 = "nut-textarea";
|
|
18682
18732
|
const textareaRef = useRef(null);
|
|
18683
18733
|
const compositionRef = useRef(false);
|
|
@@ -18761,9 +18811,9 @@ const TextArea = (props) => {
|
|
|
18761
18811
|
showCount && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__limit` }, inputValue.length, "/", maxLength < 0 ? 0 : maxLength)
|
|
18762
18812
|
);
|
|
18763
18813
|
};
|
|
18764
|
-
TextArea.defaultProps = defaultProps$
|
|
18814
|
+
TextArea.defaultProps = defaultProps$G;
|
|
18765
18815
|
TextArea.displayName = "NutTextArea";
|
|
18766
|
-
const defaultProps$
|
|
18816
|
+
const defaultProps$F = {
|
|
18767
18817
|
...ComponentDefaults,
|
|
18768
18818
|
percent: 0,
|
|
18769
18819
|
showText: false,
|
|
@@ -18786,7 +18836,7 @@ const Progress = (props) => {
|
|
|
18786
18836
|
delay,
|
|
18787
18837
|
...rest
|
|
18788
18838
|
} = {
|
|
18789
|
-
...defaultProps$
|
|
18839
|
+
...defaultProps$F,
|
|
18790
18840
|
...props
|
|
18791
18841
|
};
|
|
18792
18842
|
const classPrefix2 = "nut-progress";
|
|
@@ -18881,7 +18931,7 @@ const Progress = (props) => {
|
|
|
18881
18931
|
)))
|
|
18882
18932
|
);
|
|
18883
18933
|
};
|
|
18884
|
-
Progress.defaultProps = defaultProps$
|
|
18934
|
+
Progress.defaultProps = defaultProps$F;
|
|
18885
18935
|
Progress.displayName = "NutProgress";
|
|
18886
18936
|
class UploadOptions {
|
|
18887
18937
|
constructor() {
|
|
@@ -18973,7 +19023,7 @@ const funcInterceptor = (interceptor, {
|
|
|
18973
19023
|
done();
|
|
18974
19024
|
}
|
|
18975
19025
|
};
|
|
18976
|
-
const defaultProps$
|
|
19026
|
+
const defaultProps$E = {
|
|
18977
19027
|
...ComponentDefaults,
|
|
18978
19028
|
url: "",
|
|
18979
19029
|
maxCount: 1,
|
|
@@ -19056,7 +19106,7 @@ const InternalUploader = (props, ref) => {
|
|
|
19056
19106
|
beforeXhrUpload,
|
|
19057
19107
|
beforeDelete,
|
|
19058
19108
|
...restProps
|
|
19059
|
-
} = { ...defaultProps$
|
|
19109
|
+
} = { ...defaultProps$E, ...props };
|
|
19060
19110
|
const [fileList, setFileList] = useState(defaultValue || []);
|
|
19061
19111
|
const [uploadQueue, setUploadQueue] = useState([]);
|
|
19062
19112
|
useEffect(() => {
|
|
@@ -19352,7 +19402,7 @@ const InternalUploader = (props, ref) => {
|
|
|
19352
19402
|
" ",
|
|
19353
19403
|
item.name
|
|
19354
19404
|
), deletable && /* @__PURE__ */ React__default.createElement(
|
|
19355
|
-
y$
|
|
19405
|
+
y$8,
|
|
19356
19406
|
{
|
|
19357
19407
|
color: "#808080",
|
|
19358
19408
|
className: "nut-uploader__preview-img__file__del",
|
|
@@ -19400,9 +19450,9 @@ const InternalUploader = (props, ref) => {
|
|
|
19400
19450
|
));
|
|
19401
19451
|
};
|
|
19402
19452
|
const Uploader = React__default.forwardRef(InternalUploader);
|
|
19403
|
-
Uploader.defaultProps = defaultProps$
|
|
19453
|
+
Uploader.defaultProps = defaultProps$E;
|
|
19404
19454
|
Uploader.displayName = "NutUploader";
|
|
19405
|
-
const defaultProps$
|
|
19455
|
+
const defaultProps$D = {
|
|
19406
19456
|
...ComponentDefaults,
|
|
19407
19457
|
visible: false,
|
|
19408
19458
|
description: "",
|
|
@@ -19428,7 +19478,7 @@ const ActionSheet = (props) => {
|
|
|
19428
19478
|
className,
|
|
19429
19479
|
style,
|
|
19430
19480
|
...rest
|
|
19431
|
-
} = { ...defaultProps$
|
|
19481
|
+
} = { ...defaultProps$D, ...props };
|
|
19432
19482
|
const classPrefix2 = "nut-actionsheet";
|
|
19433
19483
|
const cancelActionSheet = () => {
|
|
19434
19484
|
onCancel && onCancel();
|
|
@@ -19471,7 +19521,7 @@ const ActionSheet = (props) => {
|
|
|
19471
19521
|
))
|
|
19472
19522
|
);
|
|
19473
19523
|
};
|
|
19474
|
-
ActionSheet.defaultProps = defaultProps$
|
|
19524
|
+
ActionSheet.defaultProps = defaultProps$D;
|
|
19475
19525
|
ActionSheet.displayName = "NutActionSheet";
|
|
19476
19526
|
const fullClone = {
|
|
19477
19527
|
...ReactDOM
|
|
@@ -19704,7 +19754,7 @@ const DialogWrap = (props) => {
|
|
|
19704
19754
|
};
|
|
19705
19755
|
DialogWrap.defaultProps = defaultDialogProps;
|
|
19706
19756
|
DialogWrap.displayName = "NutDialogWrap";
|
|
19707
|
-
const defaultProps$
|
|
19757
|
+
const defaultProps$C = {
|
|
19708
19758
|
confirmText: "",
|
|
19709
19759
|
cancelText: "",
|
|
19710
19760
|
overlay: true,
|
|
@@ -19803,9 +19853,9 @@ Dialog.confirm = (props) => {
|
|
|
19803
19853
|
});
|
|
19804
19854
|
};
|
|
19805
19855
|
});
|
|
19806
|
-
Dialog.defaultProps = defaultProps$
|
|
19856
|
+
Dialog.defaultProps = defaultProps$C;
|
|
19807
19857
|
Dialog.displayName = "NutDialog";
|
|
19808
|
-
const defaultProps$
|
|
19858
|
+
const defaultProps$B = {
|
|
19809
19859
|
...ComponentDefaults,
|
|
19810
19860
|
attract: false,
|
|
19811
19861
|
direction: void 0,
|
|
@@ -19818,7 +19868,7 @@ const defaultProps$A = {
|
|
|
19818
19868
|
};
|
|
19819
19869
|
const Drag = (props) => {
|
|
19820
19870
|
const { attract, direction, boundary, children, className, style, ...reset } = {
|
|
19821
|
-
...defaultProps$
|
|
19871
|
+
...defaultProps$B,
|
|
19822
19872
|
...props
|
|
19823
19873
|
};
|
|
19824
19874
|
const classPrefix2 = "nut-drag";
|
|
@@ -19881,14 +19931,14 @@ const Drag = (props) => {
|
|
|
19881
19931
|
/* @__PURE__ */ React__default.createElement(animated.div, { style: currstyle, ...bind() }, children)
|
|
19882
19932
|
);
|
|
19883
19933
|
};
|
|
19884
|
-
Drag.defaultProps = defaultProps$
|
|
19934
|
+
Drag.defaultProps = defaultProps$B;
|
|
19885
19935
|
Drag.displayName = "NutDrag";
|
|
19886
19936
|
const defaultStatus = {
|
|
19887
19937
|
empty: "https://static-ftcms.jd.com/p/files/61a9e3183985005b3958672b.png",
|
|
19888
19938
|
error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
|
|
19889
19939
|
network: "https://static-ftcms.jd.com/p/files/61a9e31de7dcdbcc0ce62734.png"
|
|
19890
19940
|
};
|
|
19891
|
-
const defaultProps$
|
|
19941
|
+
const defaultProps$A = {
|
|
19892
19942
|
...ComponentDefaults,
|
|
19893
19943
|
description: "",
|
|
19894
19944
|
imageSize: "",
|
|
@@ -19906,7 +19956,7 @@ const Empty = (props) => {
|
|
|
19906
19956
|
status,
|
|
19907
19957
|
...rest
|
|
19908
19958
|
} = {
|
|
19909
|
-
...defaultProps$
|
|
19959
|
+
...defaultProps$A,
|
|
19910
19960
|
...props
|
|
19911
19961
|
};
|
|
19912
19962
|
const [imgStyle, setImgStyle] = useState({});
|
|
@@ -19931,9 +19981,9 @@ const Empty = (props) => {
|
|
|
19931
19981
|
}, [imageSize]);
|
|
19932
19982
|
return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$c} ${className}`, ...rest }, /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$c}__image`, style: imgStyle }, imageNode), typeof description === "string" ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$c}__description` }, description || locale.noData) : description, children));
|
|
19933
19983
|
};
|
|
19934
|
-
Empty.defaultProps = defaultProps$
|
|
19984
|
+
Empty.defaultProps = defaultProps$A;
|
|
19935
19985
|
Empty.displayName = "NutEmpty";
|
|
19936
|
-
const defaultProps$
|
|
19986
|
+
const defaultProps$z = {
|
|
19937
19987
|
...ComponentDefaults,
|
|
19938
19988
|
hasMore: true,
|
|
19939
19989
|
threshold: 200,
|
|
@@ -19960,7 +20010,7 @@ const InfiniteLoading = (props) => {
|
|
|
19960
20010
|
onScroll,
|
|
19961
20011
|
...restProps
|
|
19962
20012
|
} = {
|
|
19963
|
-
...defaultProps$
|
|
20013
|
+
...defaultProps$z,
|
|
19964
20014
|
...props
|
|
19965
20015
|
};
|
|
19966
20016
|
const [isInfiniting, setIsInfiniting] = useState(false);
|
|
@@ -20098,8 +20148,41 @@ const InfiniteLoading = (props) => {
|
|
|
20098
20148
|
/* @__PURE__ */ React__default.createElement("div", { className: "nut-infinite-bottom" }, isInfiniting ? /* @__PURE__ */ React__default.createElement("div", { className: "bottom-box" }, loadingText || locale.infiniteloading.loadText) : !hasMore && /* @__PURE__ */ React__default.createElement("div", { className: "tips" }, loadMoreText || locale.infiniteloading.loadMoreText))
|
|
20099
20149
|
);
|
|
20100
20150
|
};
|
|
20101
|
-
InfiniteLoading.defaultProps = defaultProps$
|
|
20151
|
+
InfiniteLoading.defaultProps = defaultProps$z;
|
|
20102
20152
|
InfiniteLoading.displayName = "NutInfiniteLoading";
|
|
20153
|
+
const loadingMap = {
|
|
20154
|
+
circular: y$6,
|
|
20155
|
+
spinner: k$3
|
|
20156
|
+
};
|
|
20157
|
+
const defaultProps$y = {
|
|
20158
|
+
...ComponentDefaults,
|
|
20159
|
+
// 对比一下,个人感觉还是Loading1比较好看一些,所以用它作为了默认的loading图标
|
|
20160
|
+
type: "circular",
|
|
20161
|
+
direction: "horizontal"
|
|
20162
|
+
};
|
|
20163
|
+
const Loading = (props) => {
|
|
20164
|
+
const { className, style, children, direction, icon, ...rest } = {
|
|
20165
|
+
...defaultProps$y,
|
|
20166
|
+
...props
|
|
20167
|
+
};
|
|
20168
|
+
const classPrefix2 = "nut-loading";
|
|
20169
|
+
const CurLoadingIcon = loadingMap[rest.type] || y$6;
|
|
20170
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
20171
|
+
"div",
|
|
20172
|
+
{
|
|
20173
|
+
className: classNames(
|
|
20174
|
+
classPrefix2,
|
|
20175
|
+
className,
|
|
20176
|
+
direction === "vertical" ? `${classPrefix2}-vertical` : ""
|
|
20177
|
+
),
|
|
20178
|
+
style
|
|
20179
|
+
},
|
|
20180
|
+
/* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-icon-box` }, icon || /* @__PURE__ */ React__default.createElement(CurLoadingIcon, { className: `${classPrefix2}-icon` })),
|
|
20181
|
+
children ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-text` }, children) : ""
|
|
20182
|
+
);
|
|
20183
|
+
};
|
|
20184
|
+
Loading.defaultProps = defaultProps$y;
|
|
20185
|
+
Loading.displayName = "NutLoading";
|
|
20103
20186
|
const defaultProps$x = {
|
|
20104
20187
|
...ComponentDefaults,
|
|
20105
20188
|
direction: "horizontal",
|
|
@@ -24922,6 +25005,7 @@ export {
|
|
|
24922
25005
|
Input,
|
|
24923
25006
|
InputNumber,
|
|
24924
25007
|
Layout,
|
|
25008
|
+
Loading,
|
|
24925
25009
|
Menu,
|
|
24926
25010
|
MenuItem,
|
|
24927
25011
|
NavBar,
|