@nutui/nutui-react 2.0.9 → 2.0.11-beta.0
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 +24 -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/Input.js +3 -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/NumberKeyboard.js +1 -1
- package/dist/esm/Popover.js +36 -3
- package/dist/esm/Switch.js +5 -3
- package/dist/esm/Tour/style/css.js +1 -0
- package/dist/esm/Tour/style/index.js +2 -0
- package/dist/esm/Tour/style/style.css +1 -0
- package/dist/esm/Tour.js +183 -0
- package/dist/esm/Uploader/style/style.css +1 -1
- package/dist/esm/Uploader.js +1 -1
- package/dist/esm/configprovider2.js +5 -0
- package/dist/esm/nutui-react.es.js +78 -74
- package/dist/esm/tabbaritem2.js +5 -3
- package/dist/esm/types/src/locales/base.d.ts +5 -0
- 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 +3 -1
- package/dist/esm/types/src/packages/nutui.react.d.ts +5 -1
- package/dist/esm/types/src/packages/nutui.react.scss.d.ts +2 -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/packages/popover/popover.d.ts +1 -0
- package/dist/esm/types/src/packages/popover/popover.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/tour/__test__/tour.spec.d.ts +1 -0
- package/dist/esm/types/src/packages/tour/demo.d.ts +4 -0
- package/dist/esm/types/src/packages/tour/demo.taro.d.ts +4 -0
- package/dist/esm/types/src/packages/tour/index.d.ts +3 -0
- package/dist/esm/types/src/packages/tour/index.taro.d.ts +3 -0
- package/dist/esm/types/src/packages/tour/tour.d.ts +31 -0
- package/dist/esm/types/src/packages/tour/tour.taro.d.ts +31 -0
- package/dist/esm/types/src/utils/typings.d.ts +1 -0
- package/dist/esm/types/src/utils/use-taro-rect.d.ts +1 -0
- package/dist/locales/base.d.ts +5 -0
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +6 -1
- package/dist/locales/id-ID.js +6 -1
- package/dist/locales/tr-TR.js +6 -1
- package/dist/locales/zh-CN.js +6 -1
- package/dist/locales/zh-TW.js +6 -1
- package/dist/locales/zh-UG.js +6 -1
- package/dist/nutui.react.es.js +704 -409
- package/dist/nutui.react.umd.js +704 -409
- package/dist/packages/calendar/calendar.scss +1 -6
- package/dist/packages/loading/loading.scss +34 -0
- package/dist/packages/tour/tour.scss +78 -0
- package/dist/packages/uploader/uploader.scss +1 -0
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/themes/default.scss +2 -0
- package/dist/styles/variables.scss +39 -0
- package/dist/types/index.d.ts +5 -1
- package/dist/types/locales/base.d.ts +5 -0
- 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/dist/types/packages/popover/popover.d.ts +5 -0
- package/dist/types/packages/tour/index.d.ts +3 -0
- package/dist/types/packages/tour/tour.d.ts +95 -0
- package/dist/types/utils/typings.d.ts +1 -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.11 Wed Aug 09 2023 13:48:21 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$1s = {
|
|
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$1s,
|
|
2429
2476
|
...props
|
|
2430
2477
|
};
|
|
2431
2478
|
const getStyle = useCallback(() => {
|
|
@@ -2476,29 +2523,29 @@ const Button = React__default.forwardRef(
|
|
|
2476
2523
|
}
|
|
2477
2524
|
);
|
|
2478
2525
|
Button.displayName = "NutButton";
|
|
2479
|
-
const defaultProps$
|
|
2526
|
+
const defaultProps$1r = {
|
|
2480
2527
|
...ComponentDefaults,
|
|
2481
2528
|
title: "",
|
|
2482
2529
|
description: "",
|
|
2483
2530
|
divider: true
|
|
2484
2531
|
};
|
|
2485
|
-
const classPrefix$
|
|
2532
|
+
const classPrefix$p = "nut-cell-group";
|
|
2486
2533
|
const CellGroup = (props) => {
|
|
2487
2534
|
const { children, className, style, title, description, divider, ...rest } = {
|
|
2488
|
-
...defaultProps$
|
|
2535
|
+
...defaultProps$1r,
|
|
2489
2536
|
...props
|
|
2490
2537
|
};
|
|
2491
|
-
return /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix$
|
|
2538
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix$p, className), ...rest }, title ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$p}__title` }, title) : null, description ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$p}__description` }, description) : null, /* @__PURE__ */ React__default.createElement(
|
|
2492
2539
|
"div",
|
|
2493
2540
|
{
|
|
2494
|
-
className: `${classPrefix$
|
|
2541
|
+
className: `${classPrefix$p}__wrap ${divider ? `${classPrefix$p}__wrap--divider` : ""}`
|
|
2495
2542
|
},
|
|
2496
2543
|
children
|
|
2497
2544
|
));
|
|
2498
2545
|
};
|
|
2499
|
-
CellGroup.defaultProps = defaultProps$
|
|
2546
|
+
CellGroup.defaultProps = defaultProps$1r;
|
|
2500
2547
|
CellGroup.displayName = "NutCellGroup";
|
|
2501
|
-
const defaultProps$
|
|
2548
|
+
const defaultProps$1q = {
|
|
2502
2549
|
...ComponentDefaults,
|
|
2503
2550
|
title: null,
|
|
2504
2551
|
description: null,
|
|
@@ -2508,7 +2555,7 @@ const defaultProps$1o = {
|
|
|
2508
2555
|
onClick: (event) => {
|
|
2509
2556
|
}
|
|
2510
2557
|
};
|
|
2511
|
-
const classPrefix$
|
|
2558
|
+
const classPrefix$o = "nut-cell";
|
|
2512
2559
|
const Cell = (props) => {
|
|
2513
2560
|
const {
|
|
2514
2561
|
children,
|
|
@@ -2522,7 +2569,7 @@ const Cell = (props) => {
|
|
|
2522
2569
|
style,
|
|
2523
2570
|
...rest
|
|
2524
2571
|
} = {
|
|
2525
|
-
...defaultProps$
|
|
2572
|
+
...defaultProps$1q,
|
|
2526
2573
|
...props
|
|
2527
2574
|
};
|
|
2528
2575
|
const handleClick2 = (event) => {
|
|
@@ -2539,22 +2586,22 @@ const Cell = (props) => {
|
|
|
2539
2586
|
return /* @__PURE__ */ React__default.createElement(
|
|
2540
2587
|
"div",
|
|
2541
2588
|
{
|
|
2542
|
-
className: classNames(classPrefix$
|
|
2589
|
+
className: classNames(classPrefix$o, className),
|
|
2543
2590
|
onClick: (event) => handleClick2(event),
|
|
2544
2591
|
style: baseStyle,
|
|
2545
2592
|
...rest
|
|
2546
2593
|
},
|
|
2547
|
-
children || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, title || description ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$
|
|
2594
|
+
children || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, title || description ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$o}__left` }, title ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$o}__title` }, title) : null, description ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$o}__description` }, description) : null) : null, extra ? /* @__PURE__ */ React__default.createElement(
|
|
2548
2595
|
"div",
|
|
2549
2596
|
{
|
|
2550
|
-
className: `${classPrefix$
|
|
2597
|
+
className: `${classPrefix$o}__extra`,
|
|
2551
2598
|
style: styles
|
|
2552
2599
|
},
|
|
2553
2600
|
extra
|
|
2554
|
-
) : null, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$
|
|
2601
|
+
) : null, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$o}__divider` }))
|
|
2555
2602
|
);
|
|
2556
2603
|
};
|
|
2557
|
-
Cell.defaultProps = defaultProps$
|
|
2604
|
+
Cell.defaultProps = defaultProps$1q;
|
|
2558
2605
|
Cell.displayName = "NutCell";
|
|
2559
2606
|
Cell.Group = CellGroup;
|
|
2560
2607
|
var INFINITY = 1 / 0;
|
|
@@ -3632,11 +3679,16 @@ const zhCN = {
|
|
|
3632
3679
|
refreshingText: "加载中...",
|
|
3633
3680
|
completeText: "刷新成功"
|
|
3634
3681
|
},
|
|
3682
|
+
tour: {
|
|
3683
|
+
prevStepText: "上一步",
|
|
3684
|
+
completeText: "完成",
|
|
3685
|
+
nextStepText: "下一步"
|
|
3686
|
+
},
|
|
3635
3687
|
watermark: {
|
|
3636
3688
|
errorCanvasTips: "当前环境不支持Canvas"
|
|
3637
3689
|
}
|
|
3638
3690
|
};
|
|
3639
|
-
const classPrefix$
|
|
3691
|
+
const classPrefix$n = "nut-configprovider";
|
|
3640
3692
|
const defaultConfigRef = {
|
|
3641
3693
|
current: {
|
|
3642
3694
|
locale: zhCN
|
|
@@ -3677,7 +3729,7 @@ const ConfigProvider = (props) => {
|
|
|
3677
3729
|
return /* @__PURE__ */ React__default.createElement(ConfigContext.Provider, { value: mergedConfig }, /* @__PURE__ */ React__default.createElement(
|
|
3678
3730
|
"div",
|
|
3679
3731
|
{
|
|
3680
|
-
className: classNames(classPrefix$
|
|
3732
|
+
className: classNames(classPrefix$n, className),
|
|
3681
3733
|
style: {
|
|
3682
3734
|
...cssVarStyle,
|
|
3683
3735
|
...style
|
|
@@ -3690,7 +3742,7 @@ ConfigProvider.displayName = "NutConfigProvider";
|
|
|
3690
3742
|
const pxCheck = (value) => {
|
|
3691
3743
|
return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
3692
3744
|
};
|
|
3693
|
-
const defaultProps$
|
|
3745
|
+
const defaultProps$1p = {
|
|
3694
3746
|
...ComponentDefaults,
|
|
3695
3747
|
fit: "fill",
|
|
3696
3748
|
position: "center",
|
|
@@ -3701,7 +3753,7 @@ const defaultProps$1n = {
|
|
|
3701
3753
|
loading: true,
|
|
3702
3754
|
lazy: false
|
|
3703
3755
|
};
|
|
3704
|
-
const classPrefix$
|
|
3756
|
+
const classPrefix$m = "nut-image";
|
|
3705
3757
|
const Image$1 = (props) => {
|
|
3706
3758
|
const {
|
|
3707
3759
|
className,
|
|
@@ -3719,7 +3771,7 @@ const Image$1 = (props) => {
|
|
|
3719
3771
|
onClick,
|
|
3720
3772
|
onLoad,
|
|
3721
3773
|
onError
|
|
3722
|
-
} = { ...defaultProps$
|
|
3774
|
+
} = { ...defaultProps$1p, ...props };
|
|
3723
3775
|
const [innerLoading, setInnerLoading] = useState(true);
|
|
3724
3776
|
const [isError, setIsError] = useState(false);
|
|
3725
3777
|
const imgRef = useRef(null);
|
|
@@ -3812,7 +3864,7 @@ const Image$1 = (props) => {
|
|
|
3812
3864
|
return /* @__PURE__ */ React__default.createElement(
|
|
3813
3865
|
"div",
|
|
3814
3866
|
{
|
|
3815
|
-
className: classNames(classPrefix$
|
|
3867
|
+
className: classNames(classPrefix$m, className),
|
|
3816
3868
|
style: containerStyle,
|
|
3817
3869
|
onClick: (e) => {
|
|
3818
3870
|
imageClick(e);
|
|
@@ -3846,7 +3898,7 @@ const Image$1 = (props) => {
|
|
|
3846
3898
|
renderErrorImg()
|
|
3847
3899
|
);
|
|
3848
3900
|
};
|
|
3849
|
-
Image$1.defaultProps = defaultProps$
|
|
3901
|
+
Image$1.defaultProps = defaultProps$1p;
|
|
3850
3902
|
Image$1.displayName = "NutImage";
|
|
3851
3903
|
function _extends$4() {
|
|
3852
3904
|
_extends$4 = Object.assign ? Object.assign.bind() : function(target) {
|
|
@@ -5671,7 +5723,7 @@ const Overlay = (props) => {
|
|
|
5671
5723
|
Overlay.defaultProps = defaultOverlayProps;
|
|
5672
5724
|
Overlay.displayName = "NutOverlay";
|
|
5673
5725
|
const DataContext$2 = createContext({});
|
|
5674
|
-
const defaultProps$
|
|
5726
|
+
const defaultProps$1o = {
|
|
5675
5727
|
...ComponentDefaults,
|
|
5676
5728
|
span: "24",
|
|
5677
5729
|
offset: "0",
|
|
@@ -5679,7 +5731,7 @@ const defaultProps$1m = {
|
|
|
5679
5731
|
};
|
|
5680
5732
|
const Col = (props) => {
|
|
5681
5733
|
const { className, style, span, offset, children, onClick } = {
|
|
5682
|
-
...defaultProps$
|
|
5734
|
+
...defaultProps$1o,
|
|
5683
5735
|
...props
|
|
5684
5736
|
};
|
|
5685
5737
|
const [colName, setColName] = useState("");
|
|
@@ -5711,39 +5763,39 @@ const Col = (props) => {
|
|
|
5711
5763
|
children
|
|
5712
5764
|
);
|
|
5713
5765
|
};
|
|
5714
|
-
Col.defaultProps = defaultProps$
|
|
5766
|
+
Col.defaultProps = defaultProps$1o;
|
|
5715
5767
|
Col.displayName = "NutCol";
|
|
5716
|
-
const defaultProps$
|
|
5768
|
+
const defaultProps$1n = {
|
|
5717
5769
|
...ComponentDefaults,
|
|
5718
5770
|
contentPosition: "center",
|
|
5719
5771
|
direction: "horizontal"
|
|
5720
5772
|
};
|
|
5721
|
-
const classPrefix$
|
|
5773
|
+
const classPrefix$l = `nut-divider`;
|
|
5722
5774
|
const Divider = (props) => {
|
|
5723
5775
|
const { children, contentPosition, style, className, direction, ...rest } = {
|
|
5724
|
-
...defaultProps$
|
|
5776
|
+
...defaultProps$1n,
|
|
5725
5777
|
...props
|
|
5726
5778
|
};
|
|
5727
5779
|
const classes = direction === "horizontal" ? classNames({
|
|
5728
|
-
[`${classPrefix$
|
|
5729
|
-
[`${classPrefix$
|
|
5730
|
-
[`${classPrefix$
|
|
5731
|
-
[`${classPrefix$
|
|
5732
|
-
[`${classPrefix$
|
|
5780
|
+
[`${classPrefix$l}`]: true,
|
|
5781
|
+
[`${classPrefix$l}__center`]: children,
|
|
5782
|
+
[`${classPrefix$l}__left`]: contentPosition === "left",
|
|
5783
|
+
[`${classPrefix$l}__right`]: contentPosition === "right",
|
|
5784
|
+
[`${classPrefix$l}__hairline`]: true
|
|
5733
5785
|
}) : classNames({
|
|
5734
|
-
[`${classPrefix$
|
|
5735
|
-
[`${classPrefix$
|
|
5786
|
+
[`${classPrefix$l}`]: true,
|
|
5787
|
+
[`${classPrefix$l}__vertical`]: direction === "vertical"
|
|
5736
5788
|
});
|
|
5737
5789
|
return /* @__PURE__ */ React__default.createElement("div", { className: `${classes} ${className || ""}`, style, ...rest }, children);
|
|
5738
5790
|
};
|
|
5739
|
-
Divider.defaultProps = defaultProps$
|
|
5791
|
+
Divider.defaultProps = defaultProps$1n;
|
|
5740
5792
|
Divider.displayName = "NutDivider";
|
|
5741
5793
|
const gridContext = {
|
|
5742
5794
|
onClick: (item, index) => {
|
|
5743
5795
|
}
|
|
5744
5796
|
};
|
|
5745
5797
|
const GridContext = React__default.createContext(gridContext);
|
|
5746
|
-
const defaultProps$
|
|
5798
|
+
const defaultProps$1m = {
|
|
5747
5799
|
text: "",
|
|
5748
5800
|
columns: 4,
|
|
5749
5801
|
gap: 0,
|
|
@@ -5769,7 +5821,7 @@ const GridItem = (props) => {
|
|
|
5769
5821
|
onClick,
|
|
5770
5822
|
...rest
|
|
5771
5823
|
} = {
|
|
5772
|
-
...defaultProps$
|
|
5824
|
+
...defaultProps$1m,
|
|
5773
5825
|
...props
|
|
5774
5826
|
};
|
|
5775
5827
|
const classPrefix2 = "nut-grid-item";
|
|
@@ -5827,9 +5879,9 @@ const GridItem = (props) => {
|
|
|
5827
5879
|
/* @__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
5880
|
);
|
|
5829
5881
|
};
|
|
5830
|
-
GridItem.defaultProps = defaultProps$
|
|
5882
|
+
GridItem.defaultProps = defaultProps$1m;
|
|
5831
5883
|
GridItem.displayName = "NutGridItem";
|
|
5832
|
-
const defaultProps$
|
|
5884
|
+
const defaultProps$1l = {
|
|
5833
5885
|
columns: 4,
|
|
5834
5886
|
gap: 0,
|
|
5835
5887
|
center: true,
|
|
@@ -5850,7 +5902,7 @@ const Grid = (props) => {
|
|
|
5850
5902
|
className,
|
|
5851
5903
|
onClick,
|
|
5852
5904
|
...rest
|
|
5853
|
-
} = { ...defaultProps$
|
|
5905
|
+
} = { ...defaultProps$1l, ...props };
|
|
5854
5906
|
const childrenDom = React__default.Children.toArray(children);
|
|
5855
5907
|
const classPrefix2 = "nut-grid";
|
|
5856
5908
|
const rootClass = () => {
|
|
@@ -5880,18 +5932,18 @@ const Grid = (props) => {
|
|
|
5880
5932
|
});
|
|
5881
5933
|
})));
|
|
5882
5934
|
};
|
|
5883
|
-
Grid.defaultProps = defaultProps$
|
|
5935
|
+
Grid.defaultProps = defaultProps$1l;
|
|
5884
5936
|
Grid.displayName = "NutGrid";
|
|
5885
5937
|
Grid.Item = GridItem;
|
|
5886
|
-
const defaultProps$
|
|
5938
|
+
const defaultProps$1k = {};
|
|
5887
5939
|
const Layout = (props) => {
|
|
5888
|
-
({ ...defaultProps$
|
|
5940
|
+
({ ...defaultProps$1k, ...props });
|
|
5889
5941
|
return /* @__PURE__ */ React__default.createElement("div", { className: "nut-layout" }, "Layout");
|
|
5890
5942
|
};
|
|
5891
|
-
Layout.defaultProps = defaultProps$
|
|
5943
|
+
Layout.defaultProps = defaultProps$1k;
|
|
5892
5944
|
Layout.displayName = "NutLayout";
|
|
5893
|
-
const classPrefix$
|
|
5894
|
-
const defaultProps$
|
|
5945
|
+
const classPrefix$k = "nut-row";
|
|
5946
|
+
const defaultProps$1j = {
|
|
5895
5947
|
...ComponentDefaults,
|
|
5896
5948
|
type: "",
|
|
5897
5949
|
justify: "start",
|
|
@@ -5911,7 +5963,7 @@ const Row = (props) => {
|
|
|
5911
5963
|
gutter,
|
|
5912
5964
|
onClick
|
|
5913
5965
|
} = {
|
|
5914
|
-
...defaultProps$
|
|
5966
|
+
...defaultProps$1j,
|
|
5915
5967
|
...props
|
|
5916
5968
|
};
|
|
5917
5969
|
const getClass = (prefix2, type22) => {
|
|
@@ -5925,7 +5977,7 @@ const Row = (props) => {
|
|
|
5925
5977
|
${getClass("justify", justify)}
|
|
5926
5978
|
${getClass("align", align)}
|
|
5927
5979
|
${getClass("flex", wrap)}
|
|
5928
|
-
${classPrefix$
|
|
5980
|
+
${classPrefix$k}
|
|
5929
5981
|
`;
|
|
5930
5982
|
};
|
|
5931
5983
|
const parentRow = {
|
|
@@ -5943,15 +5995,15 @@ const Row = (props) => {
|
|
|
5943
5995
|
children
|
|
5944
5996
|
));
|
|
5945
5997
|
};
|
|
5946
|
-
Row.defaultProps = defaultProps$
|
|
5998
|
+
Row.defaultProps = defaultProps$1j;
|
|
5947
5999
|
Row.displayName = "NutRow";
|
|
5948
6000
|
const prefixCls = "nut-space";
|
|
5949
|
-
const defaultProps$
|
|
6001
|
+
const defaultProps$1i = {
|
|
5950
6002
|
direction: "horizontal"
|
|
5951
6003
|
};
|
|
5952
6004
|
const Space = (props) => {
|
|
5953
6005
|
const { className, style, children, wrap, align, direction, justify } = {
|
|
5954
|
-
...defaultProps$
|
|
6006
|
+
...defaultProps$1i,
|
|
5955
6007
|
...props
|
|
5956
6008
|
};
|
|
5957
6009
|
const cls = classNames(
|
|
@@ -5966,7 +6018,7 @@ const Space = (props) => {
|
|
|
5966
6018
|
return child !== null && child !== void 0 && /* @__PURE__ */ React__default.createElement("div", { className: `${prefixCls}-item` }, child);
|
|
5967
6019
|
}));
|
|
5968
6020
|
};
|
|
5969
|
-
Space.defaultProps = defaultProps$
|
|
6021
|
+
Space.defaultProps = defaultProps$1i;
|
|
5970
6022
|
Space.displayName = "NutSpace";
|
|
5971
6023
|
const canUseDom = !!(typeof window !== "undefined" && typeof document !== "undefined" && window.document && window.document.createElement);
|
|
5972
6024
|
const defaultRoot = canUseDom ? window : void 0;
|
|
@@ -6041,13 +6093,13 @@ function useWatch(dep, callback, config2 = { immediate: false }) {
|
|
|
6041
6093
|
stop2.current = true;
|
|
6042
6094
|
};
|
|
6043
6095
|
}
|
|
6044
|
-
const defaultProps$
|
|
6096
|
+
const defaultProps$1h = {
|
|
6045
6097
|
...ComponentDefaults,
|
|
6046
6098
|
position: "top",
|
|
6047
6099
|
threshold: 0,
|
|
6048
6100
|
zIndex: 2e3
|
|
6049
6101
|
};
|
|
6050
|
-
const classPrefix$
|
|
6102
|
+
const classPrefix$j = "nut-sticky";
|
|
6051
6103
|
const Sticky = (props) => {
|
|
6052
6104
|
const {
|
|
6053
6105
|
position,
|
|
@@ -6059,7 +6111,7 @@ const Sticky = (props) => {
|
|
|
6059
6111
|
threshold,
|
|
6060
6112
|
onChange,
|
|
6061
6113
|
...rest
|
|
6062
|
-
} = { ...defaultProps$
|
|
6114
|
+
} = { ...defaultProps$1h, ...props };
|
|
6063
6115
|
const stickyRef = useRef(null);
|
|
6064
6116
|
const rootRef = useRef(null);
|
|
6065
6117
|
const [isFixed, setIsFixed] = useState(false);
|
|
@@ -6169,15 +6221,15 @@ const Sticky = (props) => {
|
|
|
6169
6221
|
{
|
|
6170
6222
|
ref: rootRef,
|
|
6171
6223
|
style: { ...style, ...rootStyle },
|
|
6172
|
-
className: classNames(classPrefix$
|
|
6224
|
+
className: classNames(classPrefix$j, className),
|
|
6173
6225
|
...rest
|
|
6174
6226
|
},
|
|
6175
6227
|
/* @__PURE__ */ React__default.createElement("div", { className: "nut-sticky--box", ref: stickyRef, style: stickyStyle }, children)
|
|
6176
6228
|
);
|
|
6177
6229
|
};
|
|
6178
|
-
Sticky.defaultProps = defaultProps$
|
|
6230
|
+
Sticky.defaultProps = defaultProps$1h;
|
|
6179
6231
|
Sticky.displayName = "NutSticky";
|
|
6180
|
-
const defaultProps$
|
|
6232
|
+
const defaultProps$1g = {
|
|
6181
6233
|
...ComponentDefaults,
|
|
6182
6234
|
target: "",
|
|
6183
6235
|
threshold: 200,
|
|
@@ -6195,7 +6247,7 @@ const BackTop = (props) => {
|
|
|
6195
6247
|
style,
|
|
6196
6248
|
onClick
|
|
6197
6249
|
} = {
|
|
6198
|
-
...defaultProps$
|
|
6250
|
+
...defaultProps$1g,
|
|
6199
6251
|
...props
|
|
6200
6252
|
};
|
|
6201
6253
|
const classPrefix2 = "nut-backtop";
|
|
@@ -6293,7 +6345,7 @@ const BackTop = (props) => {
|
|
|
6293
6345
|
children || /* @__PURE__ */ React__default.createElement(y$2, { width: 19, height: 19, className: "nut-backtop-main" })
|
|
6294
6346
|
);
|
|
6295
6347
|
};
|
|
6296
|
-
BackTop.defaultProps = defaultProps$
|
|
6348
|
+
BackTop.defaultProps = defaultProps$1g;
|
|
6297
6349
|
BackTop.displayName = "NutBackTop";
|
|
6298
6350
|
function clamp$1(v, min, max) {
|
|
6299
6351
|
return Math.max(min, Math.min(v, max));
|
|
@@ -11411,7 +11463,7 @@ const host = createHost(primitives, {
|
|
|
11411
11463
|
});
|
|
11412
11464
|
const animated = host.animated;
|
|
11413
11465
|
const elevatorContext = createContext({});
|
|
11414
|
-
const defaultProps$
|
|
11466
|
+
const defaultProps$1f = {
|
|
11415
11467
|
...ComponentDefaults,
|
|
11416
11468
|
height: "200px",
|
|
11417
11469
|
floorKey: "title",
|
|
@@ -11437,7 +11489,7 @@ const Elevator = (props) => {
|
|
|
11437
11489
|
children,
|
|
11438
11490
|
...rest
|
|
11439
11491
|
} = {
|
|
11440
|
-
...defaultProps$
|
|
11492
|
+
...defaultProps$1f,
|
|
11441
11493
|
...props
|
|
11442
11494
|
};
|
|
11443
11495
|
const classPrefix2 = "nut-elevator";
|
|
@@ -11489,7 +11541,7 @@ const Elevator = (props) => {
|
|
|
11489
11541
|
cacheIndex = 0;
|
|
11490
11542
|
}
|
|
11491
11543
|
if (index > state.current.listHeight.length - 2) {
|
|
11492
|
-
cacheIndex = state.current.listHeight.length - 2;
|
|
11544
|
+
cacheIndex = Math.max(0, state.current.listHeight.length - 2);
|
|
11493
11545
|
}
|
|
11494
11546
|
setCodeIndex(cacheIndex);
|
|
11495
11547
|
if (listview.current) {
|
|
@@ -11612,10 +11664,10 @@ const Elevator = (props) => {
|
|
|
11612
11664
|
})
|
|
11613
11665
|
))) : null);
|
|
11614
11666
|
};
|
|
11615
|
-
Elevator.defaultProps = defaultProps$
|
|
11667
|
+
Elevator.defaultProps = defaultProps$1f;
|
|
11616
11668
|
Elevator.displayName = "NutElevator";
|
|
11617
11669
|
Elevator.Context = elevatorContext;
|
|
11618
|
-
const defaultProps$
|
|
11670
|
+
const defaultProps$1e = {
|
|
11619
11671
|
...ComponentDefaults,
|
|
11620
11672
|
activeText: "",
|
|
11621
11673
|
inactiveText: "",
|
|
@@ -11643,7 +11695,7 @@ const FixedNav = (props) => {
|
|
|
11643
11695
|
content,
|
|
11644
11696
|
...rest
|
|
11645
11697
|
} = {
|
|
11646
|
-
...defaultProps$
|
|
11698
|
+
...defaultProps$1e,
|
|
11647
11699
|
...props
|
|
11648
11700
|
};
|
|
11649
11701
|
const classPrefix2 = "nut-fixednav";
|
|
@@ -11692,12 +11744,12 @@ const FixedNav = (props) => {
|
|
|
11692
11744
|
item.num && /* @__PURE__ */ React__default.createElement("div", { className: "b" }, item.num)
|
|
11693
11745
|
);
|
|
11694
11746
|
}))),
|
|
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$
|
|
11747
|
+
/* @__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
11748
|
);
|
|
11697
11749
|
};
|
|
11698
|
-
FixedNav.defaultProps = defaultProps$
|
|
11750
|
+
FixedNav.defaultProps = defaultProps$1e;
|
|
11699
11751
|
FixedNav.displayName = "NutFixedNav";
|
|
11700
|
-
const defaultProps$
|
|
11752
|
+
const defaultProps$1d = {
|
|
11701
11753
|
...ComponentDefaults,
|
|
11702
11754
|
left: "",
|
|
11703
11755
|
right: "",
|
|
@@ -11720,7 +11772,7 @@ const NavBar = (props) => {
|
|
|
11720
11772
|
zIndex,
|
|
11721
11773
|
onBackClick
|
|
11722
11774
|
} = {
|
|
11723
|
-
...defaultProps$
|
|
11775
|
+
...defaultProps$1d,
|
|
11724
11776
|
...props
|
|
11725
11777
|
};
|
|
11726
11778
|
const classPrefix2 = "nut-navbar";
|
|
@@ -11757,9 +11809,9 @@ const NavBar = (props) => {
|
|
|
11757
11809
|
const cls = classNames(classPrefix2, classes, className);
|
|
11758
11810
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, fixed && placeholder ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}--placeholder` }, renderWrapper()) : renderWrapper());
|
|
11759
11811
|
};
|
|
11760
|
-
NavBar.defaultProps = defaultProps$
|
|
11812
|
+
NavBar.defaultProps = defaultProps$1d;
|
|
11761
11813
|
NavBar.displayName = "NutNavBar";
|
|
11762
|
-
const defaultProps$
|
|
11814
|
+
const defaultProps$1c = {
|
|
11763
11815
|
...ComponentDefaults,
|
|
11764
11816
|
position: "center",
|
|
11765
11817
|
transition: "",
|
|
@@ -11811,7 +11863,7 @@ const Popup = (props) => {
|
|
|
11811
11863
|
afterShow,
|
|
11812
11864
|
afterClose,
|
|
11813
11865
|
onClick
|
|
11814
|
-
} = { ...defaultProps$
|
|
11866
|
+
} = { ...defaultProps$1c, ...props };
|
|
11815
11867
|
const [index, setIndex] = useState(zIndex || _zIndex);
|
|
11816
11868
|
const [innerVisible, setInnerVisible] = useState(visible);
|
|
11817
11869
|
const [showChildren, setShowChildren] = useState(true);
|
|
@@ -11937,7 +11989,7 @@ const Popup = (props) => {
|
|
|
11937
11989
|
}, [position, transition]);
|
|
11938
11990
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, renderToContainer(portal, renderNode()));
|
|
11939
11991
|
};
|
|
11940
|
-
Popup.defaultProps = defaultProps$
|
|
11992
|
+
Popup.defaultProps = defaultProps$1c;
|
|
11941
11993
|
Popup.displayName = "NutPopup";
|
|
11942
11994
|
const handleClick = (e) => {
|
|
11943
11995
|
e.stopPropagation();
|
|
@@ -11953,7 +12005,7 @@ const handleClick = (e) => {
|
|
|
11953
12005
|
}
|
|
11954
12006
|
};
|
|
11955
12007
|
const OffsetContext = createContext(20);
|
|
11956
|
-
const defaultProps$
|
|
12008
|
+
const defaultProps$1b = {
|
|
11957
12009
|
...ComponentDefaults,
|
|
11958
12010
|
position: "left",
|
|
11959
12011
|
width: "80%"
|
|
@@ -11970,7 +12022,7 @@ const SideNavBar = (props) => {
|
|
|
11970
12022
|
onClose,
|
|
11971
12023
|
...rest
|
|
11972
12024
|
} = {
|
|
11973
|
-
...defaultProps$
|
|
12025
|
+
...defaultProps$1b,
|
|
11974
12026
|
...props
|
|
11975
12027
|
};
|
|
11976
12028
|
const indent = props.indent ? Number(props.indent) : 20;
|
|
@@ -12002,7 +12054,7 @@ const SideNavBar = (props) => {
|
|
|
12002
12054
|
)))
|
|
12003
12055
|
);
|
|
12004
12056
|
};
|
|
12005
|
-
SideNavBar.defaultProps = defaultProps$
|
|
12057
|
+
SideNavBar.defaultProps = defaultProps$1b;
|
|
12006
12058
|
SideNavBar.displayName = "NutSideNavBar";
|
|
12007
12059
|
const SideNavBarItem = (props) => {
|
|
12008
12060
|
const classPrefix2 = "nut-subsidenavbar";
|
|
@@ -12021,13 +12073,13 @@ const SideNavBarItem = (props) => {
|
|
|
12021
12073
|
title
|
|
12022
12074
|
);
|
|
12023
12075
|
};
|
|
12024
|
-
const defaultProps$
|
|
12076
|
+
const defaultProps$1a = {
|
|
12025
12077
|
open: true
|
|
12026
12078
|
};
|
|
12027
12079
|
const SubSideNavBar = (props) => {
|
|
12028
12080
|
const classPrefix2 = "nut-subsidenavbar";
|
|
12029
12081
|
const { title, value, children, onClick, open, ...rest } = {
|
|
12030
|
-
...defaultProps$
|
|
12082
|
+
...defaultProps$1a,
|
|
12031
12083
|
...props
|
|
12032
12084
|
};
|
|
12033
12085
|
const offset = useContext(OffsetContext);
|
|
@@ -12104,7 +12156,7 @@ function usePropsValue({
|
|
|
12104
12156
|
);
|
|
12105
12157
|
return [stateRef.current, setState];
|
|
12106
12158
|
}
|
|
12107
|
-
const defaultProps$
|
|
12159
|
+
const defaultProps$19 = {
|
|
12108
12160
|
...ComponentDefaults,
|
|
12109
12161
|
value: "",
|
|
12110
12162
|
dot: false,
|
|
@@ -12115,7 +12167,7 @@ const defaultProps$17 = {
|
|
|
12115
12167
|
};
|
|
12116
12168
|
const Badge = (props) => {
|
|
12117
12169
|
const { className, style, value, max, children, dot, top, right, color } = {
|
|
12118
|
-
...defaultProps$
|
|
12170
|
+
...defaultProps$19,
|
|
12119
12171
|
...props
|
|
12120
12172
|
};
|
|
12121
12173
|
const classPrefix2 = "nut-badge";
|
|
@@ -12142,9 +12194,9 @@ const Badge = (props) => {
|
|
|
12142
12194
|
};
|
|
12143
12195
|
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
12196
|
};
|
|
12145
|
-
Badge.defaultProps = defaultProps$
|
|
12197
|
+
Badge.defaultProps = defaultProps$19;
|
|
12146
12198
|
Badge.displayName = "NutBadge";
|
|
12147
|
-
const defaultProps$
|
|
12199
|
+
const defaultProps$18 = {
|
|
12148
12200
|
...ComponentDefaults,
|
|
12149
12201
|
title: "",
|
|
12150
12202
|
icon: null,
|
|
@@ -12171,9 +12223,10 @@ const TabbarItem = (props) => {
|
|
|
12171
12223
|
max,
|
|
12172
12224
|
top,
|
|
12173
12225
|
right,
|
|
12174
|
-
handleClick: handleClick2
|
|
12226
|
+
handleClick: handleClick2,
|
|
12227
|
+
...rest
|
|
12175
12228
|
} = {
|
|
12176
|
-
...defaultProps$
|
|
12229
|
+
...defaultProps$18,
|
|
12177
12230
|
...props
|
|
12178
12231
|
};
|
|
12179
12232
|
const classPrefix2 = "nut-tabbar-item";
|
|
@@ -12200,12 +12253,13 @@ const TabbarItem = (props) => {
|
|
|
12200
12253
|
color: active ? activeColor : inactiveColor,
|
|
12201
12254
|
...style
|
|
12202
12255
|
},
|
|
12203
|
-
onClick: () => handleClick2(index)
|
|
12256
|
+
onClick: () => handleClick2(index),
|
|
12257
|
+
...rest
|
|
12204
12258
|
},
|
|
12205
12259
|
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
12260
|
);
|
|
12207
12261
|
};
|
|
12208
|
-
const defaultProps$
|
|
12262
|
+
const defaultProps$17 = {
|
|
12209
12263
|
...ComponentDefaults,
|
|
12210
12264
|
defaultValue: 0,
|
|
12211
12265
|
fixed: false,
|
|
@@ -12228,7 +12282,7 @@ const Tabbar = (props) => {
|
|
|
12228
12282
|
style,
|
|
12229
12283
|
onSwitch
|
|
12230
12284
|
} = {
|
|
12231
|
-
...defaultProps$
|
|
12285
|
+
...defaultProps$17,
|
|
12232
12286
|
...props
|
|
12233
12287
|
};
|
|
12234
12288
|
const classPrefix2 = "nut-tabbar";
|
|
@@ -12263,17 +12317,17 @@ const Tabbar = (props) => {
|
|
|
12263
12317
|
(fixed || safeArea) && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__safe-area` })
|
|
12264
12318
|
);
|
|
12265
12319
|
};
|
|
12266
|
-
Tabbar.defaultProps = defaultProps$
|
|
12320
|
+
Tabbar.defaultProps = defaultProps$17;
|
|
12267
12321
|
Tabbar.displayName = "NutTabbar";
|
|
12268
12322
|
Tabbar.Item = TabbarItem;
|
|
12269
|
-
const defaultProps$
|
|
12323
|
+
const defaultProps$16 = {
|
|
12270
12324
|
title: "",
|
|
12271
12325
|
value: "",
|
|
12272
12326
|
disabled: false
|
|
12273
12327
|
};
|
|
12274
12328
|
const TabPane = (props) => {
|
|
12275
12329
|
const { children, autoHeightClassName, className, disabled } = {
|
|
12276
|
-
...defaultProps$
|
|
12330
|
+
...defaultProps$16,
|
|
12277
12331
|
...props
|
|
12278
12332
|
};
|
|
12279
12333
|
const classPrefix2 = "nut-tabpane";
|
|
@@ -12299,7 +12353,7 @@ function requestAniFrame() {
|
|
|
12299
12353
|
};
|
|
12300
12354
|
}
|
|
12301
12355
|
const requestAniFrame$1 = requestAniFrame();
|
|
12302
|
-
const defaultProps$
|
|
12356
|
+
const defaultProps$15 = {
|
|
12303
12357
|
...ComponentDefaults,
|
|
12304
12358
|
tabStyle: {},
|
|
12305
12359
|
activeColor: "",
|
|
@@ -12308,7 +12362,7 @@ const defaultProps$13 = {
|
|
|
12308
12362
|
duration: 300,
|
|
12309
12363
|
autoHeight: false
|
|
12310
12364
|
};
|
|
12311
|
-
const classPrefix$
|
|
12365
|
+
const classPrefix$i = "nut-tabs";
|
|
12312
12366
|
const Tabs = (props) => {
|
|
12313
12367
|
const {
|
|
12314
12368
|
activeColor,
|
|
@@ -12325,7 +12379,7 @@ const Tabs = (props) => {
|
|
|
12325
12379
|
autoHeight,
|
|
12326
12380
|
...rest
|
|
12327
12381
|
} = {
|
|
12328
|
-
...defaultProps$
|
|
12382
|
+
...defaultProps$15,
|
|
12329
12383
|
...props
|
|
12330
12384
|
};
|
|
12331
12385
|
const [value, setValue] = usePropsValue({
|
|
@@ -12402,14 +12456,14 @@ const Tabs = (props) => {
|
|
|
12402
12456
|
}
|
|
12403
12457
|
}, [children]);
|
|
12404
12458
|
const classes = classNames(
|
|
12405
|
-
classPrefix$
|
|
12406
|
-
`${classPrefix$
|
|
12459
|
+
classPrefix$i,
|
|
12460
|
+
`${classPrefix$i}--${direction}`,
|
|
12407
12461
|
className
|
|
12408
12462
|
);
|
|
12409
|
-
const classesTitle = classNames(`${classPrefix$
|
|
12410
|
-
[`${classPrefix$
|
|
12411
|
-
[`${classPrefix$
|
|
12412
|
-
[`${classPrefix$
|
|
12463
|
+
const classesTitle = classNames(`${classPrefix$i}__titles`, {
|
|
12464
|
+
[`${classPrefix$i}__titles--${activeType}`]: activeType,
|
|
12465
|
+
[`${classPrefix$i}__titles--scrollable`]: true,
|
|
12466
|
+
[`${classPrefix$i}__titles--${align}`]: align
|
|
12413
12467
|
});
|
|
12414
12468
|
const tabsActiveStyle = {
|
|
12415
12469
|
color: activeType === "smile" ? activeColor : "",
|
|
@@ -12439,7 +12493,7 @@ const Tabs = (props) => {
|
|
|
12439
12493
|
onClick: () => {
|
|
12440
12494
|
tabChange(item);
|
|
12441
12495
|
},
|
|
12442
|
-
className: classNames(`${classPrefix$
|
|
12496
|
+
className: classNames(`${classPrefix$i}__titles-item`, {
|
|
12443
12497
|
[`nut-tabs__titles-item--active`]: !item.disabled && String(item.value) === String(value),
|
|
12444
12498
|
[`nut-tabs__titles-item--disabled`]: item.disabled,
|
|
12445
12499
|
[`nut-tabs__titles-item--${align}`]: align
|
|
@@ -12450,14 +12504,14 @@ const Tabs = (props) => {
|
|
|
12450
12504
|
activeType === "line" && /* @__PURE__ */ React__default.createElement(
|
|
12451
12505
|
"div",
|
|
12452
12506
|
{
|
|
12453
|
-
className: `${classPrefix$
|
|
12507
|
+
className: `${classPrefix$i}__titles-item__line`,
|
|
12454
12508
|
style: tabsActiveStyle
|
|
12455
12509
|
}
|
|
12456
12510
|
),
|
|
12457
12511
|
activeType === "smile" && /* @__PURE__ */ React__default.createElement(
|
|
12458
12512
|
"div",
|
|
12459
12513
|
{
|
|
12460
|
-
className: `${classPrefix$
|
|
12514
|
+
className: `${classPrefix$i}__titles-item__smile`,
|
|
12461
12515
|
style: tabsActiveStyle
|
|
12462
12516
|
},
|
|
12463
12517
|
/* @__PURE__ */ React__default.createElement(x$7, { color: activeColor, width: 40, height: 20 })
|
|
@@ -12469,13 +12523,13 @@ const Tabs = (props) => {
|
|
|
12469
12523
|
{
|
|
12470
12524
|
ellipsis: true
|
|
12471
12525
|
},
|
|
12472
|
-
`${classPrefix$
|
|
12526
|
+
`${classPrefix$i}__titles-item__text`
|
|
12473
12527
|
)
|
|
12474
12528
|
},
|
|
12475
12529
|
item.title
|
|
12476
12530
|
)
|
|
12477
12531
|
);
|
|
12478
|
-
})), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$
|
|
12532
|
+
})), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$i}__content__wrap` }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$i}__content`, style: contentStyle }, React__default.Children.map(children, (child, idx) => {
|
|
12479
12533
|
if (!React__default.isValidElement(child)) {
|
|
12480
12534
|
return null;
|
|
12481
12535
|
}
|
|
@@ -12492,7 +12546,7 @@ const Tabs = (props) => {
|
|
|
12492
12546
|
return React__default.cloneElement(child, childProps);
|
|
12493
12547
|
}))));
|
|
12494
12548
|
};
|
|
12495
|
-
Tabs.defaultProps = defaultProps$
|
|
12549
|
+
Tabs.defaultProps = defaultProps$15;
|
|
12496
12550
|
Tabs.displayName = "NutTabs";
|
|
12497
12551
|
Tabs.TabPane = TabPane;
|
|
12498
12552
|
const formatTree = (tree, parent, config2) => tree.map((node) => {
|
|
@@ -12631,7 +12685,7 @@ class Tree {
|
|
|
12631
12685
|
}
|
|
12632
12686
|
}
|
|
12633
12687
|
const Tree$1 = Tree;
|
|
12634
|
-
const defaultProps$
|
|
12688
|
+
const defaultProps$14 = {
|
|
12635
12689
|
...ComponentDefaults,
|
|
12636
12690
|
activeColor: "",
|
|
12637
12691
|
activeIcon: "checklist",
|
|
@@ -12674,7 +12728,7 @@ const InternalCascader = (props, ref) => {
|
|
|
12674
12728
|
onClose,
|
|
12675
12729
|
onChange,
|
|
12676
12730
|
onPathChange
|
|
12677
|
-
} = { ...defaultProps$
|
|
12731
|
+
} = { ...defaultProps$14, ...props };
|
|
12678
12732
|
const [tabvalue, setTabvalue] = useState("c1");
|
|
12679
12733
|
const [optionsData, setOptionsData] = useState([]);
|
|
12680
12734
|
const isLazy = () => state.configs.lazy && Boolean(state.configs.onLoad);
|
|
@@ -12970,9 +13024,9 @@ const InternalCascader = (props, ref) => {
|
|
|
12970
13024
|
) : renderTabs());
|
|
12971
13025
|
};
|
|
12972
13026
|
const Cascader = React__default.forwardRef(InternalCascader);
|
|
12973
|
-
Cascader.defaultProps = defaultProps$
|
|
13027
|
+
Cascader.defaultProps = defaultProps$14;
|
|
12974
13028
|
Cascader.displayName = "NutCascader";
|
|
12975
|
-
const defaultProps$
|
|
13029
|
+
const defaultProps$13 = {
|
|
12976
13030
|
...ComponentDefaults,
|
|
12977
13031
|
visible: false,
|
|
12978
13032
|
type: "custom",
|
|
@@ -12999,7 +13053,7 @@ const CustomRender = (props) => {
|
|
|
12999
13053
|
onPathChange,
|
|
13000
13054
|
...rest
|
|
13001
13055
|
} = {
|
|
13002
|
-
...defaultProps$
|
|
13056
|
+
...defaultProps$13,
|
|
13003
13057
|
...props
|
|
13004
13058
|
};
|
|
13005
13059
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, type4 === "custom" && /* @__PURE__ */ React__default.createElement(
|
|
@@ -13024,7 +13078,7 @@ const CustomRender = (props) => {
|
|
|
13024
13078
|
}
|
|
13025
13079
|
));
|
|
13026
13080
|
};
|
|
13027
|
-
const defaultProps$
|
|
13081
|
+
const defaultProps$12 = {
|
|
13028
13082
|
type: "custom",
|
|
13029
13083
|
existList: [],
|
|
13030
13084
|
defaultIcon: null,
|
|
@@ -13043,7 +13097,7 @@ const ExistRender = (props) => {
|
|
|
13043
13097
|
onSelect,
|
|
13044
13098
|
onSwitch,
|
|
13045
13099
|
...rest
|
|
13046
|
-
} = { ...defaultProps$
|
|
13100
|
+
} = { ...defaultProps$12, ...props };
|
|
13047
13101
|
const classPrefix2 = "nut-address";
|
|
13048
13102
|
const selectedExist = (item) => {
|
|
13049
13103
|
existList.forEach((list, index) => {
|
|
@@ -13068,7 +13122,7 @@ const ExistRender = (props) => {
|
|
|
13068
13122
|
);
|
|
13069
13123
|
})), (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
13124
|
};
|
|
13071
|
-
const defaultProps
|
|
13125
|
+
const defaultProps$11 = {
|
|
13072
13126
|
...ComponentDefaults,
|
|
13073
13127
|
defaultValue: [],
|
|
13074
13128
|
type: "custom",
|
|
@@ -13110,7 +13164,7 @@ const InternalAddress = (props, ref) => {
|
|
|
13110
13164
|
className,
|
|
13111
13165
|
...rest
|
|
13112
13166
|
} = {
|
|
13113
|
-
...defaultProps
|
|
13167
|
+
...defaultProps$11,
|
|
13114
13168
|
...props
|
|
13115
13169
|
};
|
|
13116
13170
|
const classPrefix2 = "nut-address";
|
|
@@ -13135,7 +13189,7 @@ const InternalAddress = (props, ref) => {
|
|
|
13135
13189
|
onClose && onClose();
|
|
13136
13190
|
};
|
|
13137
13191
|
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$
|
|
13192
|
+
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
13193
|
};
|
|
13140
13194
|
const selectedExistItem = (data) => {
|
|
13141
13195
|
onExistSelect && onExistSelect(data);
|
|
@@ -13201,7 +13255,7 @@ const InternalAddress = (props, ref) => {
|
|
|
13201
13255
|
));
|
|
13202
13256
|
};
|
|
13203
13257
|
const Address = forwardRef(InternalAddress);
|
|
13204
|
-
Address.defaultProps = defaultProps
|
|
13258
|
+
Address.defaultProps = defaultProps$11;
|
|
13205
13259
|
Address.displayName = "NutAddress";
|
|
13206
13260
|
const Utils = {
|
|
13207
13261
|
/**
|
|
@@ -13451,7 +13505,7 @@ const isEnd = (day, days) => {
|
|
|
13451
13505
|
const isStartAndEnd = (days) => {
|
|
13452
13506
|
return days.length >= 2 && Utils.isEqual(days[0], days[1]);
|
|
13453
13507
|
};
|
|
13454
|
-
const defaultProps$
|
|
13508
|
+
const defaultProps$10 = {
|
|
13455
13509
|
...ComponentDefaults,
|
|
13456
13510
|
type: "single",
|
|
13457
13511
|
autoBackfill: false,
|
|
@@ -13486,6 +13540,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
13486
13540
|
const {
|
|
13487
13541
|
style,
|
|
13488
13542
|
className,
|
|
13543
|
+
children,
|
|
13489
13544
|
popup,
|
|
13490
13545
|
type: type4,
|
|
13491
13546
|
autoBackfill,
|
|
@@ -13510,7 +13565,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
13510
13565
|
onUpdate,
|
|
13511
13566
|
onDayClick,
|
|
13512
13567
|
onPageChange
|
|
13513
|
-
} = { ...defaultProps$
|
|
13568
|
+
} = { ...defaultProps$10, ...props };
|
|
13514
13569
|
const weekdays = locale.calendaritem.weekdays;
|
|
13515
13570
|
const weeks = [
|
|
13516
13571
|
...weekdays.slice(firstDayOfWeek, 7),
|
|
@@ -14040,13 +14095,13 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
14040
14095
|
);
|
|
14041
14096
|
};
|
|
14042
14097
|
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));
|
|
14098
|
+
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
14099
|
};
|
|
14045
14100
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: classes, style }, renderHeader(), renderContent(), popup && !autoBackfill ? renderFooter() : ""));
|
|
14046
14101
|
});
|
|
14047
|
-
CalendarItem.defaultProps = defaultProps$
|
|
14102
|
+
CalendarItem.defaultProps = defaultProps$10;
|
|
14048
14103
|
CalendarItem.displayName = "NutCalendarItem";
|
|
14049
|
-
const defaultProps
|
|
14104
|
+
const defaultProps$$ = {
|
|
14050
14105
|
...ComponentDefaults,
|
|
14051
14106
|
type: "single",
|
|
14052
14107
|
autoBackfill: false,
|
|
@@ -14083,6 +14138,7 @@ const Calendar = React__default.forwardRef((props, ref) => {
|
|
|
14083
14138
|
const {
|
|
14084
14139
|
style,
|
|
14085
14140
|
className,
|
|
14141
|
+
children,
|
|
14086
14142
|
popup,
|
|
14087
14143
|
visible,
|
|
14088
14144
|
type: type4,
|
|
@@ -14108,7 +14164,7 @@ const Calendar = React__default.forwardRef((props, ref) => {
|
|
|
14108
14164
|
onConfirm,
|
|
14109
14165
|
onDayClick,
|
|
14110
14166
|
onPageChange
|
|
14111
|
-
} = { ...defaultProps
|
|
14167
|
+
} = { ...defaultProps$$, ...props };
|
|
14112
14168
|
const calendarRef = useRef(null);
|
|
14113
14169
|
const close = () => {
|
|
14114
14170
|
onClose && onClose();
|
|
@@ -14140,6 +14196,7 @@ const Calendar = React__default.forwardRef((props, ref) => {
|
|
|
14140
14196
|
ref: calendarRef,
|
|
14141
14197
|
style,
|
|
14142
14198
|
className,
|
|
14199
|
+
children,
|
|
14143
14200
|
type: type4,
|
|
14144
14201
|
autoBackfill,
|
|
14145
14202
|
popup,
|
|
@@ -14181,11 +14238,11 @@ const Calendar = React__default.forwardRef((props, ref) => {
|
|
|
14181
14238
|
renderItem()
|
|
14182
14239
|
) : renderItem());
|
|
14183
14240
|
});
|
|
14184
|
-
Calendar.defaultProps = defaultProps
|
|
14241
|
+
Calendar.defaultProps = defaultProps$$;
|
|
14185
14242
|
Calendar.displayName = "NutCalendar";
|
|
14186
14243
|
const CheckboxGroupContext = createContext(null);
|
|
14187
14244
|
const Context$1 = CheckboxGroupContext;
|
|
14188
|
-
const defaultProps$
|
|
14245
|
+
const defaultProps$_ = {
|
|
14189
14246
|
max: void 0,
|
|
14190
14247
|
labelPosition: "right",
|
|
14191
14248
|
direction: "vertical",
|
|
@@ -14193,10 +14250,10 @@ const defaultProps$Y = {
|
|
|
14193
14250
|
},
|
|
14194
14251
|
options: []
|
|
14195
14252
|
};
|
|
14196
|
-
const classPrefix$
|
|
14253
|
+
const classPrefix$h = "nut-checkboxgroup";
|
|
14197
14254
|
const CheckboxGroup = React__default.forwardRef(
|
|
14198
14255
|
(props, ref) => {
|
|
14199
|
-
const { children } = { ...defaultProps$
|
|
14256
|
+
const { children } = { ...defaultProps$_, ...props };
|
|
14200
14257
|
const {
|
|
14201
14258
|
className,
|
|
14202
14259
|
disabled,
|
|
@@ -14275,7 +14332,7 @@ const CheckboxGroup = React__default.forwardRef(
|
|
|
14275
14332
|
/* @__PURE__ */ React__default.createElement(
|
|
14276
14333
|
"div",
|
|
14277
14334
|
{
|
|
14278
|
-
className: classNames(classPrefix$
|
|
14335
|
+
className: classNames(classPrefix$h, className, {
|
|
14279
14336
|
[`nut-checkboxgroup--${props.direction}`]: props.direction
|
|
14280
14337
|
}),
|
|
14281
14338
|
...rest
|
|
@@ -14285,9 +14342,9 @@ const CheckboxGroup = React__default.forwardRef(
|
|
|
14285
14342
|
);
|
|
14286
14343
|
}
|
|
14287
14344
|
);
|
|
14288
|
-
CheckboxGroup.defaultProps = defaultProps$
|
|
14345
|
+
CheckboxGroup.defaultProps = defaultProps$_;
|
|
14289
14346
|
CheckboxGroup.displayName = "NutCheckboxGroup";
|
|
14290
|
-
const defaultProps$
|
|
14347
|
+
const defaultProps$Z = {
|
|
14291
14348
|
...ComponentDefaults,
|
|
14292
14349
|
disabled: false,
|
|
14293
14350
|
labelPosition: "right",
|
|
@@ -14297,10 +14354,10 @@ const defaultProps$X = {
|
|
|
14297
14354
|
onChange: (value) => {
|
|
14298
14355
|
}
|
|
14299
14356
|
};
|
|
14300
|
-
const classPrefix$
|
|
14357
|
+
const classPrefix$g = "nut-checkbox";
|
|
14301
14358
|
const Checkbox = (props) => {
|
|
14302
14359
|
const { children } = {
|
|
14303
|
-
...defaultProps$
|
|
14360
|
+
...defaultProps$Z,
|
|
14304
14361
|
...props
|
|
14305
14362
|
};
|
|
14306
14363
|
const {
|
|
@@ -14359,22 +14416,22 @@ const Checkbox = (props) => {
|
|
|
14359
14416
|
};
|
|
14360
14417
|
const color = () => {
|
|
14361
14418
|
if (innerDisabled) {
|
|
14362
|
-
return `${classPrefix$
|
|
14419
|
+
return `${classPrefix$g}__icon--disable`;
|
|
14363
14420
|
}
|
|
14364
14421
|
if (innerChecked) {
|
|
14365
14422
|
if (innerIndeterminate) {
|
|
14366
|
-
return `${classPrefix$
|
|
14423
|
+
return `${classPrefix$g}__icon--indeterminate`;
|
|
14367
14424
|
}
|
|
14368
|
-
return `${classPrefix$
|
|
14425
|
+
return `${classPrefix$g}__icon`;
|
|
14369
14426
|
}
|
|
14370
|
-
return `${classPrefix$
|
|
14427
|
+
return `${classPrefix$g}__icon--unchecked`;
|
|
14371
14428
|
};
|
|
14372
14429
|
const renderLabel = () => {
|
|
14373
14430
|
return /* @__PURE__ */ React__default.createElement(
|
|
14374
14431
|
"span",
|
|
14375
14432
|
{
|
|
14376
|
-
className: classNames(`${classPrefix$
|
|
14377
|
-
[`${classPrefix$
|
|
14433
|
+
className: classNames(`${classPrefix$g}__label `, {
|
|
14434
|
+
[`${classPrefix$g}__label--disabled`]: innerDisabled
|
|
14378
14435
|
})
|
|
14379
14436
|
},
|
|
14380
14437
|
children || label
|
|
@@ -14393,8 +14450,8 @@ const Checkbox = (props) => {
|
|
|
14393
14450
|
return /* @__PURE__ */ React__default.createElement(
|
|
14394
14451
|
"div",
|
|
14395
14452
|
{
|
|
14396
|
-
className: classNames(classPrefix$
|
|
14397
|
-
[`${classPrefix$
|
|
14453
|
+
className: classNames(classPrefix$g, className, {
|
|
14454
|
+
[`${classPrefix$g}--reverse`]: labelPosition === "left"
|
|
14398
14455
|
}),
|
|
14399
14456
|
...rest,
|
|
14400
14457
|
onClick: handleClick2
|
|
@@ -14403,7 +14460,7 @@ const Checkbox = (props) => {
|
|
|
14403
14460
|
renderLabel()
|
|
14404
14461
|
);
|
|
14405
14462
|
};
|
|
14406
|
-
Checkbox.defaultProps = defaultProps$
|
|
14463
|
+
Checkbox.defaultProps = defaultProps$Z;
|
|
14407
14464
|
Checkbox.displayName = "NutCheckBox";
|
|
14408
14465
|
Checkbox.Group = CheckboxGroup;
|
|
14409
14466
|
const MIN_DISTANCE = 10;
|
|
@@ -14697,7 +14754,7 @@ function useRefs() {
|
|
|
14697
14754
|
}, []);
|
|
14698
14755
|
return [refs.current, setRefs, reset];
|
|
14699
14756
|
}
|
|
14700
|
-
const defaultProps$
|
|
14757
|
+
const defaultProps$Y = {
|
|
14701
14758
|
...ComponentDefaults,
|
|
14702
14759
|
title: "",
|
|
14703
14760
|
options: [],
|
|
@@ -14723,7 +14780,7 @@ const InternalPicker = (props, ref) => {
|
|
|
14723
14780
|
afterClose,
|
|
14724
14781
|
onChange,
|
|
14725
14782
|
...rest
|
|
14726
|
-
} = { ...defaultProps$
|
|
14783
|
+
} = { ...defaultProps$Y, ...props };
|
|
14727
14784
|
const classPrefix2 = "nut-picker";
|
|
14728
14785
|
const classes = classNames(classPrefix2, className);
|
|
14729
14786
|
const [selectedValue, setSelectedValue] = usePropsValue({
|
|
@@ -14950,7 +15007,7 @@ const InternalPicker = (props, ref) => {
|
|
|
14950
15007
|
const Picker = React__default.forwardRef(InternalPicker);
|
|
14951
15008
|
const Picker$1 = Picker;
|
|
14952
15009
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
14953
|
-
const defaultProps$
|
|
15010
|
+
const defaultProps$X = {
|
|
14954
15011
|
...ComponentDefaults,
|
|
14955
15012
|
visible: false,
|
|
14956
15013
|
title: "",
|
|
@@ -14981,7 +15038,7 @@ const DatePicker = (props) => {
|
|
|
14981
15038
|
style,
|
|
14982
15039
|
...rest
|
|
14983
15040
|
} = {
|
|
14984
|
-
...defaultProps$
|
|
15041
|
+
...defaultProps$X,
|
|
14985
15042
|
...props
|
|
14986
15043
|
};
|
|
14987
15044
|
const { locale } = useConfig();
|
|
@@ -15254,7 +15311,7 @@ const DatePicker = (props) => {
|
|
|
15254
15311
|
}
|
|
15255
15312
|
));
|
|
15256
15313
|
};
|
|
15257
|
-
DatePicker.defaultProps = defaultProps$
|
|
15314
|
+
DatePicker.defaultProps = defaultProps$X;
|
|
15258
15315
|
DatePicker.displayName = "NutDatePicker";
|
|
15259
15316
|
const Context = createContext({});
|
|
15260
15317
|
function _extends() {
|
|
@@ -16465,7 +16522,7 @@ function isForwardRefComponent(component) {
|
|
|
16465
16522
|
}
|
|
16466
16523
|
).$$typeof === component.type.$$typeof;
|
|
16467
16524
|
}
|
|
16468
|
-
const defaultProps$
|
|
16525
|
+
const defaultProps$W = {
|
|
16469
16526
|
...ComponentDefaults,
|
|
16470
16527
|
required: false,
|
|
16471
16528
|
name: "",
|
|
@@ -16533,7 +16590,7 @@ class FormItem extends React__default.Component {
|
|
|
16533
16590
|
__publicField(this, "renderLayout", (childNode) => {
|
|
16534
16591
|
var _a2, _b;
|
|
16535
16592
|
const { label, name, required: required4, className, style, errorMessageAlign } = {
|
|
16536
|
-
...defaultProps$
|
|
16593
|
+
...defaultProps$W,
|
|
16537
16594
|
...this.props
|
|
16538
16595
|
};
|
|
16539
16596
|
const item = ((_a2 = this.context.errors) == null ? void 0 : _a2.length) > 0 && ((_b = this.context.errors) == null ? void 0 : _b.filter((item2) => {
|
|
@@ -16583,9 +16640,9 @@ class FormItem extends React__default.Component {
|
|
|
16583
16640
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, { key: this.state.resetCount }, this.renderLayout(returnChildNode));
|
|
16584
16641
|
}
|
|
16585
16642
|
}
|
|
16586
|
-
__publicField(FormItem, "defaultProps", defaultProps$
|
|
16643
|
+
__publicField(FormItem, "defaultProps", defaultProps$W);
|
|
16587
16644
|
__publicField(FormItem, "contextType", Context);
|
|
16588
|
-
const defaultProps$
|
|
16645
|
+
const defaultProps$V = {
|
|
16589
16646
|
...ComponentDefaults,
|
|
16590
16647
|
labelPosition: "right",
|
|
16591
16648
|
starPosition: "left",
|
|
@@ -16613,7 +16670,7 @@ const Form = (props) => {
|
|
|
16613
16670
|
starPosition,
|
|
16614
16671
|
form
|
|
16615
16672
|
} = {
|
|
16616
|
-
...defaultProps$
|
|
16673
|
+
...defaultProps$V,
|
|
16617
16674
|
...props
|
|
16618
16675
|
};
|
|
16619
16676
|
let formInstance;
|
|
@@ -16656,7 +16713,7 @@ const Form = (props) => {
|
|
|
16656
16713
|
/* @__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
16714
|
);
|
|
16658
16715
|
};
|
|
16659
|
-
Form.defaultProps = defaultProps$
|
|
16716
|
+
Form.defaultProps = defaultProps$V;
|
|
16660
16717
|
Form.displayName = "NutForm";
|
|
16661
16718
|
Form.Item = FormItem;
|
|
16662
16719
|
Form.useForm = useForm;
|
|
@@ -16684,7 +16741,7 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
|
|
|
16684
16741
|
const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
16685
16742
|
return value.replace(regExp, "");
|
|
16686
16743
|
}
|
|
16687
|
-
const defaultProps$
|
|
16744
|
+
const defaultProps$U = {
|
|
16688
16745
|
...ComponentDefaults,
|
|
16689
16746
|
type: "text",
|
|
16690
16747
|
name: "",
|
|
@@ -16727,7 +16784,7 @@ const Input = forwardRef(
|
|
|
16727
16784
|
value: _value,
|
|
16728
16785
|
...rest
|
|
16729
16786
|
} = {
|
|
16730
|
-
...defaultProps$
|
|
16787
|
+
...defaultProps$U,
|
|
16731
16788
|
...props
|
|
16732
16789
|
};
|
|
16733
16790
|
const [value, setValue] = usePropsValue({
|
|
@@ -16789,7 +16846,9 @@ const Input = forwardRef(
|
|
|
16789
16846
|
const handleBlur = (event) => {
|
|
16790
16847
|
const val = event.target.value;
|
|
16791
16848
|
updateValue(val, "onBlur");
|
|
16792
|
-
|
|
16849
|
+
setTimeout(() => {
|
|
16850
|
+
setActive(false);
|
|
16851
|
+
}, 200);
|
|
16793
16852
|
};
|
|
16794
16853
|
const inputType = (type22) => {
|
|
16795
16854
|
if (type22 === "digit") {
|
|
@@ -16862,9 +16921,9 @@ const Input = forwardRef(
|
|
|
16862
16921
|
);
|
|
16863
16922
|
}
|
|
16864
16923
|
);
|
|
16865
|
-
Input.defaultProps = defaultProps$
|
|
16924
|
+
Input.defaultProps = defaultProps$U;
|
|
16866
16925
|
Input.displayName = "NutInput";
|
|
16867
|
-
const defaultProps$
|
|
16926
|
+
const defaultProps$T = {
|
|
16868
16927
|
...ComponentDefaults,
|
|
16869
16928
|
disabled: false,
|
|
16870
16929
|
min: 1,
|
|
@@ -16876,7 +16935,7 @@ const defaultProps$R = {
|
|
|
16876
16935
|
digits: 0,
|
|
16877
16936
|
async: false
|
|
16878
16937
|
};
|
|
16879
|
-
const classPrefix$
|
|
16938
|
+
const classPrefix$f = `nut-inputnumber`;
|
|
16880
16939
|
const InputNumber = (props) => {
|
|
16881
16940
|
const {
|
|
16882
16941
|
children,
|
|
@@ -16901,7 +16960,7 @@ const InputNumber = (props) => {
|
|
|
16901
16960
|
onChange,
|
|
16902
16961
|
...restProps
|
|
16903
16962
|
} = {
|
|
16904
|
-
...defaultProps$
|
|
16963
|
+
...defaultProps$T,
|
|
16905
16964
|
...props
|
|
16906
16965
|
};
|
|
16907
16966
|
const inputRef = useRef("");
|
|
@@ -16919,8 +16978,8 @@ const InputNumber = (props) => {
|
|
|
16919
16978
|
}, []);
|
|
16920
16979
|
const classes = classNames(
|
|
16921
16980
|
{
|
|
16922
|
-
[`${classPrefix$
|
|
16923
|
-
[`${classPrefix$
|
|
16981
|
+
[`${classPrefix$f}`]: true,
|
|
16982
|
+
[`${classPrefix$f}--disabled`]: disabled
|
|
16924
16983
|
},
|
|
16925
16984
|
className
|
|
16926
16985
|
);
|
|
@@ -17098,7 +17157,7 @@ const InputNumber = (props) => {
|
|
|
17098
17157
|
}
|
|
17099
17158
|
)), /* @__PURE__ */ React__default.createElement("div", { className: "nut-input-add" }, /* @__PURE__ */ React__default.createElement(y$4, { className: iconAddClasses, onClick: (e) => addNumber(e) })));
|
|
17100
17159
|
};
|
|
17101
|
-
InputNumber.defaultProps = defaultProps$
|
|
17160
|
+
InputNumber.defaultProps = defaultProps$T;
|
|
17102
17161
|
InputNumber.displayName = "NutInputNumber";
|
|
17103
17162
|
const isObject = (val) => val !== null && typeof val === "object";
|
|
17104
17163
|
const isFunction = (val) => typeof val === "function";
|
|
@@ -17140,7 +17199,7 @@ function useClickAway(onClickAway, target, eventName = "click", useCapture, isLi
|
|
|
17140
17199
|
};
|
|
17141
17200
|
}, [target]);
|
|
17142
17201
|
}
|
|
17143
|
-
const defaultProps$
|
|
17202
|
+
const defaultProps$S = {
|
|
17144
17203
|
...ComponentDefaults,
|
|
17145
17204
|
columns: 1,
|
|
17146
17205
|
direction: "down",
|
|
@@ -17169,7 +17228,7 @@ const MenuItem = forwardRef((props, ref) => {
|
|
|
17169
17228
|
parent,
|
|
17170
17229
|
index
|
|
17171
17230
|
} = {
|
|
17172
|
-
...defaultProps$
|
|
17231
|
+
...defaultProps$S,
|
|
17173
17232
|
...props
|
|
17174
17233
|
};
|
|
17175
17234
|
const [showPopup, setShowPopup] = useState(show2);
|
|
@@ -17320,9 +17379,9 @@ const MenuItem = forwardRef((props, ref) => {
|
|
|
17320
17379
|
)
|
|
17321
17380
|
);
|
|
17322
17381
|
});
|
|
17323
|
-
MenuItem.defaultProps = defaultProps$
|
|
17382
|
+
MenuItem.defaultProps = defaultProps$S;
|
|
17324
17383
|
MenuItem.displayName = "NutMenuItem";
|
|
17325
|
-
const defaultProps$
|
|
17384
|
+
const defaultProps$R = {
|
|
17326
17385
|
...ComponentDefaults,
|
|
17327
17386
|
activeColor: "",
|
|
17328
17387
|
closeOnOverlayClick: true,
|
|
@@ -17347,7 +17406,7 @@ const Menu = (props) => {
|
|
|
17347
17406
|
onOpen,
|
|
17348
17407
|
...rest
|
|
17349
17408
|
} = {
|
|
17350
|
-
...defaultProps$
|
|
17409
|
+
...defaultProps$R,
|
|
17351
17410
|
...props
|
|
17352
17411
|
};
|
|
17353
17412
|
const menuRef = useRef(null);
|
|
@@ -17447,7 +17506,7 @@ const Menu = (props) => {
|
|
|
17447
17506
|
})
|
|
17448
17507
|
},
|
|
17449
17508
|
/* @__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$
|
|
17509
|
+
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
17510
|
)
|
|
17452
17511
|
);
|
|
17453
17512
|
}
|
|
@@ -17474,10 +17533,10 @@ const Menu = (props) => {
|
|
|
17474
17533
|
), cloneChildren())
|
|
17475
17534
|
);
|
|
17476
17535
|
};
|
|
17477
|
-
Menu.defaultProps = defaultProps$
|
|
17536
|
+
Menu.defaultProps = defaultProps$R;
|
|
17478
17537
|
Menu.displayName = "NutMenu";
|
|
17479
17538
|
Menu.Item = MenuItem;
|
|
17480
|
-
const defaultProps$
|
|
17539
|
+
const defaultProps$Q = {
|
|
17481
17540
|
...ComponentDefaults,
|
|
17482
17541
|
visible: false,
|
|
17483
17542
|
type: "default",
|
|
@@ -17602,7 +17661,7 @@ const NumberKeyboard = (props) => {
|
|
|
17602
17661
|
"span",
|
|
17603
17662
|
{
|
|
17604
17663
|
className: `${classPrefix2}__header__close`,
|
|
17605
|
-
onClick:
|
|
17664
|
+
onClick: onConfirm
|
|
17606
17665
|
},
|
|
17607
17666
|
locale.done
|
|
17608
17667
|
)), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__body` }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__body__keys` }, keysList == null ? void 0 : keysList.map((item) => {
|
|
@@ -17628,17 +17687,17 @@ const NumberKeyboard = (props) => {
|
|
|
17628
17687
|
))))
|
|
17629
17688
|
);
|
|
17630
17689
|
};
|
|
17631
|
-
NumberKeyboard.defaultProps = defaultProps$
|
|
17690
|
+
NumberKeyboard.defaultProps = defaultProps$Q;
|
|
17632
17691
|
NumberKeyboard.displayName = "NutNumberKeyboard";
|
|
17633
17692
|
const RadioContext = React__default.createContext(null);
|
|
17634
|
-
const defaultProps$
|
|
17693
|
+
const defaultProps$P = {
|
|
17635
17694
|
labelPosition: "right",
|
|
17636
17695
|
onChange: (value) => {
|
|
17637
17696
|
},
|
|
17638
17697
|
direction: "vertical",
|
|
17639
17698
|
options: []
|
|
17640
17699
|
};
|
|
17641
|
-
const classPrefix$
|
|
17700
|
+
const classPrefix$e = "nut-radiogroup";
|
|
17642
17701
|
const RadioGroup = React__default.forwardRef(
|
|
17643
17702
|
(props, ref) => {
|
|
17644
17703
|
const {
|
|
@@ -17652,7 +17711,7 @@ const RadioGroup = React__default.forwardRef(
|
|
|
17652
17711
|
options: options2,
|
|
17653
17712
|
disabled,
|
|
17654
17713
|
...rest
|
|
17655
|
-
} = { ...defaultProps$
|
|
17714
|
+
} = { ...defaultProps$P, ...props };
|
|
17656
17715
|
const [val2State, setVal2State] = usePropsValue({
|
|
17657
17716
|
defaultValue: props.defaultValue,
|
|
17658
17717
|
value: props.value,
|
|
@@ -17694,8 +17753,8 @@ const RadioGroup = React__default.forwardRef(
|
|
|
17694
17753
|
/* @__PURE__ */ React__default.createElement(
|
|
17695
17754
|
"div",
|
|
17696
17755
|
{
|
|
17697
|
-
className: classNames(classPrefix$
|
|
17698
|
-
[`${classPrefix$
|
|
17756
|
+
className: classNames(classPrefix$e, className, {
|
|
17757
|
+
[`${classPrefix$e}--${props.direction}`]: props.direction
|
|
17699
17758
|
}),
|
|
17700
17759
|
...rest
|
|
17701
17760
|
},
|
|
@@ -17704,9 +17763,9 @@ const RadioGroup = React__default.forwardRef(
|
|
|
17704
17763
|
);
|
|
17705
17764
|
}
|
|
17706
17765
|
);
|
|
17707
|
-
RadioGroup.defaultProps = defaultProps$
|
|
17766
|
+
RadioGroup.defaultProps = defaultProps$P;
|
|
17708
17767
|
RadioGroup.displayName = "NutRadioGroup";
|
|
17709
|
-
const defaultProps$
|
|
17768
|
+
const defaultProps$O = {
|
|
17710
17769
|
...ComponentDefaults,
|
|
17711
17770
|
disabled: false,
|
|
17712
17771
|
shape: "round",
|
|
@@ -17732,7 +17791,7 @@ const Radio = (props) => {
|
|
|
17732
17791
|
onChange,
|
|
17733
17792
|
...others
|
|
17734
17793
|
} = {
|
|
17735
|
-
...defaultProps$
|
|
17794
|
+
...defaultProps$O,
|
|
17736
17795
|
...props
|
|
17737
17796
|
};
|
|
17738
17797
|
let { labelPosition, disabled, ...rest } = others;
|
|
@@ -17795,7 +17854,7 @@ const Radio = (props) => {
|
|
|
17795
17854
|
return React__default.isValidElement(activeIcon2) ? React__default.cloneElement(activeIcon2, {
|
|
17796
17855
|
...activeIcon2.props,
|
|
17797
17856
|
className: classNames(color())
|
|
17798
|
-
}) : /* @__PURE__ */ React__default.createElement(y$
|
|
17857
|
+
}) : /* @__PURE__ */ React__default.createElement(y$9, { className: classNames(color()) });
|
|
17799
17858
|
}
|
|
17800
17859
|
return React__default.isValidElement(icon2) ? React__default.cloneElement(icon2, {
|
|
17801
17860
|
...icon2.props,
|
|
@@ -17828,10 +17887,10 @@ const Radio = (props) => {
|
|
|
17828
17887
|
renderRadioItem()
|
|
17829
17888
|
);
|
|
17830
17889
|
};
|
|
17831
|
-
Radio.defaultProps = defaultProps$
|
|
17890
|
+
Radio.defaultProps = defaultProps$O;
|
|
17832
17891
|
Radio.displayName = "NutRadio";
|
|
17833
17892
|
Radio.Group = RadioGroup;
|
|
17834
|
-
const defaultProps$
|
|
17893
|
+
const defaultProps$N = {
|
|
17835
17894
|
...ComponentDefaults,
|
|
17836
17895
|
range: false,
|
|
17837
17896
|
min: 0,
|
|
@@ -17859,7 +17918,7 @@ const Range = (props) => {
|
|
|
17859
17918
|
step,
|
|
17860
17919
|
value,
|
|
17861
17920
|
defaultValue
|
|
17862
|
-
} = { ...defaultProps$
|
|
17921
|
+
} = { ...defaultProps$N, ...props };
|
|
17863
17922
|
const classPrefix2 = "nut-range";
|
|
17864
17923
|
const [buttonIndex, setButtonIndex] = useState(0);
|
|
17865
17924
|
const [dragStatus, setDragStatus] = useState("start");
|
|
@@ -18123,9 +18182,9 @@ const Range = (props) => {
|
|
|
18123
18182
|
renderButton()
|
|
18124
18183
|
))), maxDescription !== null && /* @__PURE__ */ React__default.createElement("div", { className: "max" }, maxDescription || max));
|
|
18125
18184
|
};
|
|
18126
|
-
Range.defaultProps = defaultProps$
|
|
18185
|
+
Range.defaultProps = defaultProps$N;
|
|
18127
18186
|
Range.displayName = "NutRange";
|
|
18128
|
-
const defaultProps$
|
|
18187
|
+
const defaultProps$M = {
|
|
18129
18188
|
...ComponentDefaults,
|
|
18130
18189
|
count: 5,
|
|
18131
18190
|
min: 0,
|
|
@@ -18150,7 +18209,7 @@ const Rate = (props) => {
|
|
|
18150
18209
|
allowHalf,
|
|
18151
18210
|
onChange
|
|
18152
18211
|
} = {
|
|
18153
|
-
...defaultProps$
|
|
18212
|
+
...defaultProps$M,
|
|
18154
18213
|
...props
|
|
18155
18214
|
};
|
|
18156
18215
|
const classPrefix2 = "nut-rate";
|
|
@@ -18233,9 +18292,9 @@ const Rate = (props) => {
|
|
|
18233
18292
|
})
|
|
18234
18293
|
);
|
|
18235
18294
|
};
|
|
18236
|
-
Rate.defaultProps = defaultProps$
|
|
18295
|
+
Rate.defaultProps = defaultProps$M;
|
|
18237
18296
|
Rate.displayName = "NutRate";
|
|
18238
|
-
const defaultProps$
|
|
18297
|
+
const defaultProps$L = {
|
|
18239
18298
|
...ComponentDefaults,
|
|
18240
18299
|
placeholder: "",
|
|
18241
18300
|
shape: "square",
|
|
@@ -18274,7 +18333,7 @@ const SearchBar = (props) => {
|
|
|
18274
18333
|
onSearch,
|
|
18275
18334
|
onInputClick
|
|
18276
18335
|
} = {
|
|
18277
|
-
...defaultProps$
|
|
18336
|
+
...defaultProps$L,
|
|
18278
18337
|
...props
|
|
18279
18338
|
};
|
|
18280
18339
|
const forceFocus = () => {
|
|
@@ -18392,9 +18451,9 @@ const SearchBar = (props) => {
|
|
|
18392
18451
|
renderRight()
|
|
18393
18452
|
);
|
|
18394
18453
|
};
|
|
18395
|
-
SearchBar.defaultProps = defaultProps$
|
|
18454
|
+
SearchBar.defaultProps = defaultProps$L;
|
|
18396
18455
|
SearchBar.displayName = "NutSearchBar";
|
|
18397
|
-
const defaultProps$
|
|
18456
|
+
const defaultProps$K = {
|
|
18398
18457
|
...ComponentDefaults,
|
|
18399
18458
|
value: "",
|
|
18400
18459
|
visible: false,
|
|
@@ -18431,7 +18490,7 @@ const ShortPassword = (props) => {
|
|
|
18431
18490
|
onCloseIconClick,
|
|
18432
18491
|
...rest
|
|
18433
18492
|
} = {
|
|
18434
|
-
...defaultProps$
|
|
18493
|
+
...defaultProps$K,
|
|
18435
18494
|
...props
|
|
18436
18495
|
};
|
|
18437
18496
|
const classPrefix2 = "nut-shortpassword";
|
|
@@ -18488,9 +18547,9 @@ const ShortPassword = (props) => {
|
|
|
18488
18547
|
), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__footer__sure`, onClick: sure }, locale.confirm)))
|
|
18489
18548
|
);
|
|
18490
18549
|
};
|
|
18491
|
-
ShortPassword.defaultProps = defaultProps$
|
|
18550
|
+
ShortPassword.defaultProps = defaultProps$K;
|
|
18492
18551
|
ShortPassword.displayName = "NutShortPassword";
|
|
18493
|
-
const defaultProps$
|
|
18552
|
+
const defaultProps$J = {
|
|
18494
18553
|
...ComponentDefaults,
|
|
18495
18554
|
type: "png",
|
|
18496
18555
|
lineWidth: 2,
|
|
@@ -18510,7 +18569,7 @@ const InternalSignature = (props, ref) => {
|
|
|
18510
18569
|
onClear,
|
|
18511
18570
|
...rest
|
|
18512
18571
|
} = {
|
|
18513
|
-
...defaultProps$
|
|
18572
|
+
...defaultProps$J,
|
|
18514
18573
|
...props
|
|
18515
18574
|
};
|
|
18516
18575
|
const classPrefix2 = `nut-signature`;
|
|
@@ -18608,9 +18667,9 @@ const InternalSignature = (props, ref) => {
|
|
|
18608
18667
|
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
18668
|
};
|
|
18610
18669
|
const Signature = React__default.forwardRef(InternalSignature);
|
|
18611
|
-
Signature.defaultProps = defaultProps$
|
|
18670
|
+
Signature.defaultProps = defaultProps$J;
|
|
18612
18671
|
Signature.displayName = "NutSignature";
|
|
18613
|
-
const defaultProps$
|
|
18672
|
+
const defaultProps$I = {
|
|
18614
18673
|
...ComponentDefaults,
|
|
18615
18674
|
disabled: false,
|
|
18616
18675
|
activeText: "",
|
|
@@ -18625,9 +18684,10 @@ const Switch = (props) => {
|
|
|
18625
18684
|
inactiveText,
|
|
18626
18685
|
className,
|
|
18627
18686
|
style,
|
|
18628
|
-
onChange
|
|
18687
|
+
onChange,
|
|
18688
|
+
...rest
|
|
18629
18689
|
} = {
|
|
18630
|
-
...defaultProps$
|
|
18690
|
+
...defaultProps$I,
|
|
18631
18691
|
...props
|
|
18632
18692
|
};
|
|
18633
18693
|
const classPrefix2 = "nut-switch";
|
|
@@ -18644,11 +18704,20 @@ const Switch = (props) => {
|
|
|
18644
18704
|
onChange && onChange(!value, event);
|
|
18645
18705
|
setValue(!value);
|
|
18646
18706
|
};
|
|
18647
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
18707
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
18708
|
+
"div",
|
|
18709
|
+
{
|
|
18710
|
+
className: classes(),
|
|
18711
|
+
onClick: (e) => onClick(e),
|
|
18712
|
+
style,
|
|
18713
|
+
...rest
|
|
18714
|
+
},
|
|
18715
|
+
/* @__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)))
|
|
18716
|
+
);
|
|
18648
18717
|
};
|
|
18649
|
-
Switch.defaultProps = defaultProps$
|
|
18718
|
+
Switch.defaultProps = defaultProps$I;
|
|
18650
18719
|
Switch.displayName = "NutSwitch";
|
|
18651
|
-
const defaultProps$
|
|
18720
|
+
const defaultProps$H = {
|
|
18652
18721
|
...ComponentDefaults,
|
|
18653
18722
|
defaultValue: "",
|
|
18654
18723
|
showCount: false,
|
|
@@ -18677,7 +18746,7 @@ const TextArea = (props) => {
|
|
|
18677
18746
|
onBlur,
|
|
18678
18747
|
onFocus,
|
|
18679
18748
|
...rest
|
|
18680
|
-
} = { ...defaultProps$
|
|
18749
|
+
} = { ...defaultProps$H, ...props };
|
|
18681
18750
|
const classPrefix2 = "nut-textarea";
|
|
18682
18751
|
const textareaRef = useRef(null);
|
|
18683
18752
|
const compositionRef = useRef(false);
|
|
@@ -18761,9 +18830,9 @@ const TextArea = (props) => {
|
|
|
18761
18830
|
showCount && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__limit` }, inputValue.length, "/", maxLength < 0 ? 0 : maxLength)
|
|
18762
18831
|
);
|
|
18763
18832
|
};
|
|
18764
|
-
TextArea.defaultProps = defaultProps$
|
|
18833
|
+
TextArea.defaultProps = defaultProps$H;
|
|
18765
18834
|
TextArea.displayName = "NutTextArea";
|
|
18766
|
-
const defaultProps$
|
|
18835
|
+
const defaultProps$G = {
|
|
18767
18836
|
...ComponentDefaults,
|
|
18768
18837
|
percent: 0,
|
|
18769
18838
|
showText: false,
|
|
@@ -18786,7 +18855,7 @@ const Progress = (props) => {
|
|
|
18786
18855
|
delay,
|
|
18787
18856
|
...rest
|
|
18788
18857
|
} = {
|
|
18789
|
-
...defaultProps$
|
|
18858
|
+
...defaultProps$G,
|
|
18790
18859
|
...props
|
|
18791
18860
|
};
|
|
18792
18861
|
const classPrefix2 = "nut-progress";
|
|
@@ -18881,7 +18950,7 @@ const Progress = (props) => {
|
|
|
18881
18950
|
)))
|
|
18882
18951
|
);
|
|
18883
18952
|
};
|
|
18884
|
-
Progress.defaultProps = defaultProps$
|
|
18953
|
+
Progress.defaultProps = defaultProps$G;
|
|
18885
18954
|
Progress.displayName = "NutProgress";
|
|
18886
18955
|
class UploadOptions {
|
|
18887
18956
|
constructor() {
|
|
@@ -18973,7 +19042,7 @@ const funcInterceptor = (interceptor, {
|
|
|
18973
19042
|
done();
|
|
18974
19043
|
}
|
|
18975
19044
|
};
|
|
18976
|
-
const defaultProps$
|
|
19045
|
+
const defaultProps$F = {
|
|
18977
19046
|
...ComponentDefaults,
|
|
18978
19047
|
url: "",
|
|
18979
19048
|
maxCount: 1,
|
|
@@ -19056,7 +19125,7 @@ const InternalUploader = (props, ref) => {
|
|
|
19056
19125
|
beforeXhrUpload,
|
|
19057
19126
|
beforeDelete,
|
|
19058
19127
|
...restProps
|
|
19059
|
-
} = { ...defaultProps$
|
|
19128
|
+
} = { ...defaultProps$F, ...props };
|
|
19060
19129
|
const [fileList, setFileList] = useState(defaultValue || []);
|
|
19061
19130
|
const [uploadQueue, setUploadQueue] = useState([]);
|
|
19062
19131
|
useEffect(() => {
|
|
@@ -19295,7 +19364,7 @@ const InternalUploader = (props, ref) => {
|
|
|
19295
19364
|
multiple,
|
|
19296
19365
|
onChange: fileChange
|
|
19297
19366
|
}
|
|
19298
|
-
)))), fileList.length !== 0 && fileList.map((item, index) => {
|
|
19367
|
+
)))), fileList.length !== 0 && Array.isArray(fileList) && fileList.map((item, index) => {
|
|
19299
19368
|
return /* @__PURE__ */ React__default.createElement(
|
|
19300
19369
|
"div",
|
|
19301
19370
|
{
|
|
@@ -19352,7 +19421,7 @@ const InternalUploader = (props, ref) => {
|
|
|
19352
19421
|
" ",
|
|
19353
19422
|
item.name
|
|
19354
19423
|
), deletable && /* @__PURE__ */ React__default.createElement(
|
|
19355
|
-
y$
|
|
19424
|
+
y$8,
|
|
19356
19425
|
{
|
|
19357
19426
|
color: "#808080",
|
|
19358
19427
|
className: "nut-uploader__preview-img__file__del",
|
|
@@ -19400,9 +19469,9 @@ const InternalUploader = (props, ref) => {
|
|
|
19400
19469
|
));
|
|
19401
19470
|
};
|
|
19402
19471
|
const Uploader = React__default.forwardRef(InternalUploader);
|
|
19403
|
-
Uploader.defaultProps = defaultProps$
|
|
19472
|
+
Uploader.defaultProps = defaultProps$F;
|
|
19404
19473
|
Uploader.displayName = "NutUploader";
|
|
19405
|
-
const defaultProps$
|
|
19474
|
+
const defaultProps$E = {
|
|
19406
19475
|
...ComponentDefaults,
|
|
19407
19476
|
visible: false,
|
|
19408
19477
|
description: "",
|
|
@@ -19428,7 +19497,7 @@ const ActionSheet = (props) => {
|
|
|
19428
19497
|
className,
|
|
19429
19498
|
style,
|
|
19430
19499
|
...rest
|
|
19431
|
-
} = { ...defaultProps$
|
|
19500
|
+
} = { ...defaultProps$E, ...props };
|
|
19432
19501
|
const classPrefix2 = "nut-actionsheet";
|
|
19433
19502
|
const cancelActionSheet = () => {
|
|
19434
19503
|
onCancel && onCancel();
|
|
@@ -19471,7 +19540,7 @@ const ActionSheet = (props) => {
|
|
|
19471
19540
|
))
|
|
19472
19541
|
);
|
|
19473
19542
|
};
|
|
19474
|
-
ActionSheet.defaultProps = defaultProps$
|
|
19543
|
+
ActionSheet.defaultProps = defaultProps$E;
|
|
19475
19544
|
ActionSheet.displayName = "NutActionSheet";
|
|
19476
19545
|
const fullClone = {
|
|
19477
19546
|
...ReactDOM
|
|
@@ -19704,7 +19773,7 @@ const DialogWrap = (props) => {
|
|
|
19704
19773
|
};
|
|
19705
19774
|
DialogWrap.defaultProps = defaultDialogProps;
|
|
19706
19775
|
DialogWrap.displayName = "NutDialogWrap";
|
|
19707
|
-
const defaultProps$
|
|
19776
|
+
const defaultProps$D = {
|
|
19708
19777
|
confirmText: "",
|
|
19709
19778
|
cancelText: "",
|
|
19710
19779
|
overlay: true,
|
|
@@ -19803,9 +19872,9 @@ Dialog.confirm = (props) => {
|
|
|
19803
19872
|
});
|
|
19804
19873
|
};
|
|
19805
19874
|
});
|
|
19806
|
-
Dialog.defaultProps = defaultProps$
|
|
19875
|
+
Dialog.defaultProps = defaultProps$D;
|
|
19807
19876
|
Dialog.displayName = "NutDialog";
|
|
19808
|
-
const defaultProps$
|
|
19877
|
+
const defaultProps$C = {
|
|
19809
19878
|
...ComponentDefaults,
|
|
19810
19879
|
attract: false,
|
|
19811
19880
|
direction: void 0,
|
|
@@ -19818,7 +19887,7 @@ const defaultProps$A = {
|
|
|
19818
19887
|
};
|
|
19819
19888
|
const Drag = (props) => {
|
|
19820
19889
|
const { attract, direction, boundary, children, className, style, ...reset } = {
|
|
19821
|
-
...defaultProps$
|
|
19890
|
+
...defaultProps$C,
|
|
19822
19891
|
...props
|
|
19823
19892
|
};
|
|
19824
19893
|
const classPrefix2 = "nut-drag";
|
|
@@ -19881,20 +19950,20 @@ const Drag = (props) => {
|
|
|
19881
19950
|
/* @__PURE__ */ React__default.createElement(animated.div, { style: currstyle, ...bind() }, children)
|
|
19882
19951
|
);
|
|
19883
19952
|
};
|
|
19884
|
-
Drag.defaultProps = defaultProps$
|
|
19953
|
+
Drag.defaultProps = defaultProps$C;
|
|
19885
19954
|
Drag.displayName = "NutDrag";
|
|
19886
19955
|
const defaultStatus = {
|
|
19887
19956
|
empty: "https://static-ftcms.jd.com/p/files/61a9e3183985005b3958672b.png",
|
|
19888
19957
|
error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
|
|
19889
19958
|
network: "https://static-ftcms.jd.com/p/files/61a9e31de7dcdbcc0ce62734.png"
|
|
19890
19959
|
};
|
|
19891
|
-
const defaultProps$
|
|
19960
|
+
const defaultProps$B = {
|
|
19892
19961
|
...ComponentDefaults,
|
|
19893
19962
|
description: "",
|
|
19894
19963
|
imageSize: "",
|
|
19895
19964
|
status: "empty"
|
|
19896
19965
|
};
|
|
19897
|
-
const classPrefix$
|
|
19966
|
+
const classPrefix$d = `nut-empty`;
|
|
19898
19967
|
const Empty = (props) => {
|
|
19899
19968
|
const { locale } = useConfig();
|
|
19900
19969
|
const {
|
|
@@ -19906,7 +19975,7 @@ const Empty = (props) => {
|
|
|
19906
19975
|
status,
|
|
19907
19976
|
...rest
|
|
19908
19977
|
} = {
|
|
19909
|
-
...defaultProps$
|
|
19978
|
+
...defaultProps$B,
|
|
19910
19979
|
...props
|
|
19911
19980
|
};
|
|
19912
19981
|
const [imgStyle, setImgStyle] = useState({});
|
|
@@ -19929,11 +19998,11 @@ const Empty = (props) => {
|
|
|
19929
19998
|
};
|
|
19930
19999
|
});
|
|
19931
20000
|
}, [imageSize]);
|
|
19932
|
-
return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$
|
|
20001
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$d} ${className}`, ...rest }, /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$d}__image`, style: imgStyle }, imageNode), typeof description === "string" ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$d}__description` }, description || locale.noData) : description, children));
|
|
19933
20002
|
};
|
|
19934
|
-
Empty.defaultProps = defaultProps$
|
|
20003
|
+
Empty.defaultProps = defaultProps$B;
|
|
19935
20004
|
Empty.displayName = "NutEmpty";
|
|
19936
|
-
const defaultProps$
|
|
20005
|
+
const defaultProps$A = {
|
|
19937
20006
|
...ComponentDefaults,
|
|
19938
20007
|
hasMore: true,
|
|
19939
20008
|
threshold: 200,
|
|
@@ -19941,7 +20010,7 @@ const defaultProps$y = {
|
|
|
19941
20010
|
capture: false,
|
|
19942
20011
|
pullRefresh: false
|
|
19943
20012
|
};
|
|
19944
|
-
const classPrefix$
|
|
20013
|
+
const classPrefix$c = `nut-infiniteloading`;
|
|
19945
20014
|
const InfiniteLoading = (props) => {
|
|
19946
20015
|
const { locale } = useConfig();
|
|
19947
20016
|
const {
|
|
@@ -19960,7 +20029,7 @@ const InfiniteLoading = (props) => {
|
|
|
19960
20029
|
onScroll,
|
|
19961
20030
|
...restProps
|
|
19962
20031
|
} = {
|
|
19963
|
-
...defaultProps$
|
|
20032
|
+
...defaultProps$A,
|
|
19964
20033
|
...props
|
|
19965
20034
|
};
|
|
19966
20035
|
const [isInfiniting, setIsInfiniting] = useState(false);
|
|
@@ -19972,7 +20041,7 @@ const InfiniteLoading = (props) => {
|
|
|
19972
20041
|
const refreshMaxH = useRef(0);
|
|
19973
20042
|
const y2 = useRef(0);
|
|
19974
20043
|
const distance = useRef(0);
|
|
19975
|
-
const classes = classNames(className, classPrefix$
|
|
20044
|
+
const classes = classNames(className, classPrefix$c);
|
|
19976
20045
|
useEffect(() => {
|
|
19977
20046
|
if (target && document.getElementById(target)) {
|
|
19978
20047
|
scrollEl.current = document.getElementById(target);
|
|
@@ -20098,9 +20167,42 @@ const InfiniteLoading = (props) => {
|
|
|
20098
20167
|
/* @__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
20168
|
);
|
|
20100
20169
|
};
|
|
20101
|
-
InfiniteLoading.defaultProps = defaultProps$
|
|
20170
|
+
InfiniteLoading.defaultProps = defaultProps$A;
|
|
20102
20171
|
InfiniteLoading.displayName = "NutInfiniteLoading";
|
|
20103
|
-
const
|
|
20172
|
+
const loadingMap = {
|
|
20173
|
+
circular: y$6,
|
|
20174
|
+
spinner: k$3
|
|
20175
|
+
};
|
|
20176
|
+
const defaultProps$z = {
|
|
20177
|
+
...ComponentDefaults,
|
|
20178
|
+
// 对比一下,个人感觉还是Loading1比较好看一些,所以用它作为了默认的loading图标
|
|
20179
|
+
type: "circular",
|
|
20180
|
+
direction: "horizontal"
|
|
20181
|
+
};
|
|
20182
|
+
const Loading = (props) => {
|
|
20183
|
+
const { className, style, children, direction, icon, ...rest } = {
|
|
20184
|
+
...defaultProps$z,
|
|
20185
|
+
...props
|
|
20186
|
+
};
|
|
20187
|
+
const classPrefix2 = "nut-loading";
|
|
20188
|
+
const CurLoadingIcon = loadingMap[rest.type] || y$6;
|
|
20189
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
20190
|
+
"div",
|
|
20191
|
+
{
|
|
20192
|
+
className: classNames(
|
|
20193
|
+
classPrefix2,
|
|
20194
|
+
className,
|
|
20195
|
+
direction === "vertical" ? `${classPrefix2}-vertical` : ""
|
|
20196
|
+
),
|
|
20197
|
+
style
|
|
20198
|
+
},
|
|
20199
|
+
/* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-icon-box` }, icon || /* @__PURE__ */ React__default.createElement(CurLoadingIcon, { className: `${classPrefix2}-icon` })),
|
|
20200
|
+
children ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-text` }, children) : ""
|
|
20201
|
+
);
|
|
20202
|
+
};
|
|
20203
|
+
Loading.defaultProps = defaultProps$z;
|
|
20204
|
+
Loading.displayName = "NutLoading";
|
|
20205
|
+
const defaultProps$y = {
|
|
20104
20206
|
...ComponentDefaults,
|
|
20105
20207
|
direction: "horizontal",
|
|
20106
20208
|
list: [],
|
|
@@ -20138,7 +20240,7 @@ const NoticeBar = (props) => {
|
|
|
20138
20240
|
onClick,
|
|
20139
20241
|
onItemClick
|
|
20140
20242
|
} = {
|
|
20141
|
-
...defaultProps$
|
|
20243
|
+
...defaultProps$y,
|
|
20142
20244
|
...props
|
|
20143
20245
|
};
|
|
20144
20246
|
const classPrefix2 = "nut-noticebar";
|
|
@@ -20489,9 +20591,9 @@ const NoticeBar = (props) => {
|
|
|
20489
20591
|
)
|
|
20490
20592
|
) : null);
|
|
20491
20593
|
};
|
|
20492
|
-
NoticeBar.defaultProps = defaultProps$
|
|
20594
|
+
NoticeBar.defaultProps = defaultProps$y;
|
|
20493
20595
|
NoticeBar.displayName = "NutNoticeBar";
|
|
20494
|
-
const classPrefix$
|
|
20596
|
+
const classPrefix$b = "nut-notify";
|
|
20495
20597
|
let Notification$1 = (_a = class extends React.PureComponent {
|
|
20496
20598
|
constructor(props) {
|
|
20497
20599
|
super(props);
|
|
@@ -20542,10 +20644,10 @@ let Notification$1 = (_a = class extends React.PureComponent {
|
|
|
20542
20644
|
const { style, message, type: type4, className, position } = this.props;
|
|
20543
20645
|
const { show: show2 } = this.state;
|
|
20544
20646
|
const classes = classNames({
|
|
20545
|
-
[`${classPrefix$
|
|
20546
|
-
[`${classPrefix$
|
|
20547
|
-
[`${classPrefix$
|
|
20548
|
-
[`${classPrefix$
|
|
20647
|
+
[`${classPrefix$b}--popup-top`]: position === "top",
|
|
20648
|
+
[`${classPrefix$b}--popup-bottom`]: position === "bottom",
|
|
20649
|
+
[`${classPrefix$b}`]: true,
|
|
20650
|
+
[`${classPrefix$b}--${type4}`]: true
|
|
20549
20651
|
});
|
|
20550
20652
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
20551
20653
|
CSSTransition$1,
|
|
@@ -20654,12 +20756,13 @@ const Notify = {
|
|
|
20654
20756
|
}
|
|
20655
20757
|
}
|
|
20656
20758
|
};
|
|
20657
|
-
const defaultProps$
|
|
20759
|
+
const defaultProps$x = {
|
|
20658
20760
|
...ComponentDefaults,
|
|
20659
20761
|
list: [],
|
|
20660
20762
|
location: "bottom",
|
|
20661
20763
|
visible: false,
|
|
20662
20764
|
offset: [0, 12],
|
|
20765
|
+
arrowOffset: 0,
|
|
20663
20766
|
targetId: "",
|
|
20664
20767
|
showArrow: true,
|
|
20665
20768
|
closeOnOutsideClick: true,
|
|
@@ -20672,7 +20775,7 @@ const defaultProps$w = {
|
|
|
20672
20775
|
onClose: () => {
|
|
20673
20776
|
}
|
|
20674
20777
|
};
|
|
20675
|
-
const classPrefix$
|
|
20778
|
+
const classPrefix$a = `nut-popover`;
|
|
20676
20779
|
const Popover = (props) => {
|
|
20677
20780
|
const {
|
|
20678
20781
|
children,
|
|
@@ -20680,6 +20783,7 @@ const Popover = (props) => {
|
|
|
20680
20783
|
location,
|
|
20681
20784
|
visible,
|
|
20682
20785
|
offset,
|
|
20786
|
+
arrowOffset,
|
|
20683
20787
|
targetId,
|
|
20684
20788
|
overlay,
|
|
20685
20789
|
closeOnOutsideClick,
|
|
@@ -20693,7 +20797,7 @@ const Popover = (props) => {
|
|
|
20693
20797
|
onSelect,
|
|
20694
20798
|
...rest
|
|
20695
20799
|
} = {
|
|
20696
|
-
...defaultProps$
|
|
20800
|
+
...defaultProps$x,
|
|
20697
20801
|
...props
|
|
20698
20802
|
};
|
|
20699
20803
|
const popoverRef = useRef(null);
|
|
@@ -20759,7 +20863,7 @@ const Popover = (props) => {
|
|
|
20759
20863
|
};
|
|
20760
20864
|
const classes = classNames(
|
|
20761
20865
|
{
|
|
20762
|
-
[`${classPrefix$
|
|
20866
|
+
[`${classPrefix$a}`]: true
|
|
20763
20867
|
},
|
|
20764
20868
|
className
|
|
20765
20869
|
);
|
|
@@ -20814,6 +20918,37 @@ const Popover = (props) => {
|
|
|
20814
20918
|
}
|
|
20815
20919
|
return styles;
|
|
20816
20920
|
};
|
|
20921
|
+
const popoverArrowStyle = () => {
|
|
20922
|
+
const styles = {};
|
|
20923
|
+
const direction = location.split("-")[0];
|
|
20924
|
+
const skew = location.split("-")[1];
|
|
20925
|
+
const base = 16;
|
|
20926
|
+
if (props.arrowOffset !== 0) {
|
|
20927
|
+
if (["bottom", "top"].includes(direction)) {
|
|
20928
|
+
if (!skew) {
|
|
20929
|
+
styles.left = `calc(50% + ${arrowOffset}px)`;
|
|
20930
|
+
}
|
|
20931
|
+
if (skew === "start") {
|
|
20932
|
+
styles.left = `${base + arrowOffset}px`;
|
|
20933
|
+
}
|
|
20934
|
+
if (skew === "end") {
|
|
20935
|
+
styles.right = `${base - arrowOffset}px`;
|
|
20936
|
+
}
|
|
20937
|
+
}
|
|
20938
|
+
if (["left", "right"].includes(direction)) {
|
|
20939
|
+
if (!skew) {
|
|
20940
|
+
styles.top = `calc(50% - ${arrowOffset}px)`;
|
|
20941
|
+
}
|
|
20942
|
+
if (skew === "start") {
|
|
20943
|
+
styles.top = `${base - arrowOffset}px`;
|
|
20944
|
+
}
|
|
20945
|
+
if (skew === "end") {
|
|
20946
|
+
styles.bottom = `${base + arrowOffset}px`;
|
|
20947
|
+
}
|
|
20948
|
+
}
|
|
20949
|
+
}
|
|
20950
|
+
return styles;
|
|
20951
|
+
};
|
|
20817
20952
|
const handleSelect = (item, index) => {
|
|
20818
20953
|
if (!item.disabled) {
|
|
20819
20954
|
onSelect && onSelect(item, index);
|
|
@@ -20848,7 +20983,7 @@ const Popover = (props) => {
|
|
|
20848
20983
|
position: "default",
|
|
20849
20984
|
...rest
|
|
20850
20985
|
},
|
|
20851
|
-
/* @__PURE__ */ React__default.createElement("div", { className: "nut-popover-content-group", ref: popoverContentRef }, showArrow && /* @__PURE__ */ React__default.createElement("div", { className: popoverArrow() }), Array.isArray(children) ? children[1] : "", list.map((item, index) => {
|
|
20986
|
+
/* @__PURE__ */ React__default.createElement("div", { className: "nut-popover-content-group", ref: popoverContentRef }, showArrow && /* @__PURE__ */ React__default.createElement("div", { className: popoverArrow(), style: popoverArrowStyle() }), Array.isArray(children) ? children[1] : "", list.map((item, index) => {
|
|
20852
20987
|
return /* @__PURE__ */ React__default.createElement(
|
|
20853
20988
|
"div",
|
|
20854
20989
|
{
|
|
@@ -20868,7 +21003,7 @@ const Popover = (props) => {
|
|
|
20868
21003
|
}))
|
|
20869
21004
|
)));
|
|
20870
21005
|
};
|
|
20871
|
-
Popover.defaultProps = defaultProps$
|
|
21006
|
+
Popover.defaultProps = defaultProps$x;
|
|
20872
21007
|
Popover.displayName = "NutPopover";
|
|
20873
21008
|
function bound(position, min, max) {
|
|
20874
21009
|
let ret = position;
|
|
@@ -20906,7 +21041,7 @@ if (canUseDom) {
|
|
|
20906
21041
|
console.log(e);
|
|
20907
21042
|
}
|
|
20908
21043
|
}
|
|
20909
|
-
const defaultProps$
|
|
21044
|
+
const defaultProps$w = {
|
|
20910
21045
|
...ComponentDefaults,
|
|
20911
21046
|
pullingText: "",
|
|
20912
21047
|
canReleaseText: "",
|
|
@@ -20923,7 +21058,7 @@ const PullToRefresh = (p) => {
|
|
|
20923
21058
|
const classPrefix2 = "nut-pulltorefresh";
|
|
20924
21059
|
const { locale } = useConfig();
|
|
20925
21060
|
const props = {
|
|
20926
|
-
...defaultProps$
|
|
21061
|
+
...defaultProps$w,
|
|
20927
21062
|
...p,
|
|
20928
21063
|
...{
|
|
20929
21064
|
pullingText: p.pullingText || locale.pullToRefresh.pullingText,
|
|
@@ -21066,10 +21201,10 @@ const PullToRefresh = (p) => {
|
|
|
21066
21201
|
/* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-content` }, props.children)
|
|
21067
21202
|
);
|
|
21068
21203
|
};
|
|
21069
|
-
PullToRefresh.defaultProps = defaultProps$
|
|
21204
|
+
PullToRefresh.defaultProps = defaultProps$w;
|
|
21070
21205
|
PullToRefresh.displayName = "NutPullToRefresh";
|
|
21071
21206
|
const AvatarContext = createContext({});
|
|
21072
|
-
const defaultProps$
|
|
21207
|
+
const defaultProps$v = {
|
|
21073
21208
|
...ComponentDefaults,
|
|
21074
21209
|
maxContent: "",
|
|
21075
21210
|
max: "",
|
|
@@ -21078,21 +21213,21 @@ const defaultProps$u = {
|
|
|
21078
21213
|
gap: "-8",
|
|
21079
21214
|
level: "left"
|
|
21080
21215
|
};
|
|
21081
|
-
const classPrefix$
|
|
21216
|
+
const classPrefix$9 = `nut-avatar-group`;
|
|
21082
21217
|
const AvatarGroup = (props) => {
|
|
21083
|
-
const propAvatarGroup = { ...defaultProps$
|
|
21218
|
+
const propAvatarGroup = { ...defaultProps$v, ...props };
|
|
21084
21219
|
const { className, style, children } = propAvatarGroup;
|
|
21085
21220
|
const avatarGroupRef = useRef(null);
|
|
21086
|
-
const cls = classNames(classPrefix$
|
|
21221
|
+
const cls = classNames(classPrefix$9, className);
|
|
21087
21222
|
const parentAvatar = {
|
|
21088
21223
|
propAvatarGroup,
|
|
21089
21224
|
avatarGroupRef
|
|
21090
21225
|
};
|
|
21091
21226
|
return /* @__PURE__ */ React__default.createElement(AvatarContext.Provider, { value: parentAvatar }, /* @__PURE__ */ React__default.createElement("div", { className: cls, style, ref: avatarGroupRef }, children));
|
|
21092
21227
|
};
|
|
21093
|
-
AvatarGroup.defaultProps = defaultProps$
|
|
21228
|
+
AvatarGroup.defaultProps = defaultProps$v;
|
|
21094
21229
|
AvatarGroup.displayName = "NutAvatarGroup";
|
|
21095
|
-
const defaultProps$
|
|
21230
|
+
const defaultProps$u = {
|
|
21096
21231
|
...ComponentDefaults,
|
|
21097
21232
|
size: "",
|
|
21098
21233
|
shape: "round",
|
|
@@ -21103,7 +21238,7 @@ const defaultProps$t = {
|
|
|
21103
21238
|
src: "",
|
|
21104
21239
|
alt: ""
|
|
21105
21240
|
};
|
|
21106
|
-
const classPrefix$
|
|
21241
|
+
const classPrefix$8 = `nut-avatar`;
|
|
21107
21242
|
const Avatar = (props) => {
|
|
21108
21243
|
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
21109
21244
|
const {
|
|
@@ -21122,7 +21257,7 @@ const Avatar = (props) => {
|
|
|
21122
21257
|
onError,
|
|
21123
21258
|
...rest
|
|
21124
21259
|
} = {
|
|
21125
|
-
...defaultProps$
|
|
21260
|
+
...defaultProps$u,
|
|
21126
21261
|
...props
|
|
21127
21262
|
};
|
|
21128
21263
|
const [maxSum, setMaxSum] = useState(0);
|
|
@@ -21135,7 +21270,7 @@ const Avatar = (props) => {
|
|
|
21135
21270
|
[`nut-avatar-${((_a2 = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _a2.size) || size || "normal"}`]: true,
|
|
21136
21271
|
[`nut-avatar-${((_b = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _b.shape) || shape}`]: true
|
|
21137
21272
|
});
|
|
21138
|
-
const cls = classNames(classPrefix$
|
|
21273
|
+
const cls = classNames(classPrefix$8, classes, className);
|
|
21139
21274
|
const styles = {
|
|
21140
21275
|
width: sizeValue.indexOf(size) > -1 ? "" : `${size}px`,
|
|
21141
21276
|
height: sizeValue.indexOf(size) > -1 ? "" : `${size}px`,
|
|
@@ -21204,10 +21339,10 @@ const Avatar = (props) => {
|
|
|
21204
21339
|
showMax && /* @__PURE__ */ React__default.createElement("div", { className: "text" }, ((_l = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _l.maxContent) ? (_m = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _m.maxContent : `+ ${avatarIndex - ((_n = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _n.max)}`)
|
|
21205
21340
|
));
|
|
21206
21341
|
};
|
|
21207
|
-
Avatar.defaultProps = defaultProps$
|
|
21342
|
+
Avatar.defaultProps = defaultProps$u;
|
|
21208
21343
|
Avatar.displayName = "NutAvatar";
|
|
21209
21344
|
Avatar.Group = AvatarGroup;
|
|
21210
|
-
const defaultProps$
|
|
21345
|
+
const defaultProps$t = {
|
|
21211
21346
|
...ComponentDefaults,
|
|
21212
21347
|
rows: 1,
|
|
21213
21348
|
animated: false,
|
|
@@ -21230,7 +21365,7 @@ const Skeleton = (props) => {
|
|
|
21230
21365
|
avatarShape,
|
|
21231
21366
|
...rest
|
|
21232
21367
|
} = {
|
|
21233
|
-
...defaultProps$
|
|
21368
|
+
...defaultProps$t,
|
|
21234
21369
|
...props
|
|
21235
21370
|
};
|
|
21236
21371
|
const classPrefix2 = "nut-skeleton";
|
|
@@ -21266,7 +21401,7 @@ const Skeleton = (props) => {
|
|
|
21266
21401
|
return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__block`, key: index });
|
|
21267
21402
|
})))));
|
|
21268
21403
|
};
|
|
21269
|
-
Skeleton.defaultProps = defaultProps$
|
|
21404
|
+
Skeleton.defaultProps = defaultProps$t;
|
|
21270
21405
|
Skeleton.displayName = "NutSkeleton";
|
|
21271
21406
|
function preventDefault(event, isStopPropagation) {
|
|
21272
21407
|
if (typeof event.cancelable !== "boolean" || event.cancelable) {
|
|
@@ -21276,13 +21411,13 @@ function preventDefault(event, isStopPropagation) {
|
|
|
21276
21411
|
event.stopPropagation();
|
|
21277
21412
|
}
|
|
21278
21413
|
}
|
|
21279
|
-
const defaultProps$
|
|
21414
|
+
const defaultProps$s = {
|
|
21280
21415
|
name: ""
|
|
21281
21416
|
};
|
|
21282
21417
|
const Swipe = forwardRef((props, instanceRef) => {
|
|
21283
21418
|
const classPrefix2 = "nut-swipe";
|
|
21284
21419
|
const touch = useTouch();
|
|
21285
|
-
const { children, className, style } = { ...defaultProps$
|
|
21420
|
+
const { children, className, style } = { ...defaultProps$s, ...props };
|
|
21286
21421
|
const root2 = useRef();
|
|
21287
21422
|
const opened = useRef(false);
|
|
21288
21423
|
const lockClick = useRef(false);
|
|
@@ -21450,9 +21585,9 @@ const Swipe = forwardRef((props, instanceRef) => {
|
|
|
21450
21585
|
/* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__wrapper`, style: wrapperStyle }, renderActionContent("left", leftRef), children, renderActionContent("right", rightRef))
|
|
21451
21586
|
);
|
|
21452
21587
|
});
|
|
21453
|
-
Swipe.defaultProps = defaultProps$
|
|
21588
|
+
Swipe.defaultProps = defaultProps$s;
|
|
21454
21589
|
Swipe.displayName = "NutSwipe";
|
|
21455
|
-
const classPrefix$
|
|
21590
|
+
const classPrefix$7 = "nut-toast";
|
|
21456
21591
|
class Notification extends React.PureComponent {
|
|
21457
21592
|
constructor(props) {
|
|
21458
21593
|
super(props);
|
|
@@ -21514,7 +21649,7 @@ class Notification extends React.PureComponent {
|
|
|
21514
21649
|
iconNode = /* @__PURE__ */ React.createElement(x$8, null);
|
|
21515
21650
|
break;
|
|
21516
21651
|
}
|
|
21517
|
-
return /* @__PURE__ */ React.createElement("p", { className: `${classPrefix$
|
|
21652
|
+
return /* @__PURE__ */ React.createElement("p", { className: `${classPrefix$7}__icon-wrapper` }, iconNode);
|
|
21518
21653
|
}
|
|
21519
21654
|
return icon;
|
|
21520
21655
|
}
|
|
@@ -21549,22 +21684,22 @@ class Notification extends React.PureComponent {
|
|
|
21549
21684
|
{
|
|
21550
21685
|
visible: show2,
|
|
21551
21686
|
style,
|
|
21552
|
-
className: `${classPrefix$
|
|
21687
|
+
className: `${classPrefix$7}__overlay-default ${className}`,
|
|
21553
21688
|
onClick: () => {
|
|
21554
21689
|
this.clickCover();
|
|
21555
21690
|
},
|
|
21556
21691
|
closeOnOverlayClick,
|
|
21557
21692
|
lockScroll
|
|
21558
21693
|
},
|
|
21559
|
-
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix$
|
|
21694
|
+
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix$7} ${classes}`, id: `toast-${id}` }, /* @__PURE__ */ React.createElement(
|
|
21560
21695
|
"div",
|
|
21561
21696
|
{
|
|
21562
|
-
className: `${classPrefix$
|
|
21697
|
+
className: `${classPrefix$7}__inner ${classPrefix$7}-${position} ${contentClassName}`,
|
|
21563
21698
|
style: contentStyle
|
|
21564
21699
|
},
|
|
21565
21700
|
this.renderIcon(),
|
|
21566
|
-
title ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$
|
|
21567
|
-
/* @__PURE__ */ React.createElement("span", { className: `${classPrefix$
|
|
21701
|
+
title ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$7}-title` }, title) : null,
|
|
21702
|
+
/* @__PURE__ */ React.createElement("span", { className: `${classPrefix$7}-text` }, content)
|
|
21568
21703
|
))
|
|
21569
21704
|
));
|
|
21570
21705
|
}
|
|
@@ -21671,7 +21806,7 @@ const Toast = {
|
|
|
21671
21806
|
}
|
|
21672
21807
|
}
|
|
21673
21808
|
};
|
|
21674
|
-
const defaultProps$
|
|
21809
|
+
const defaultProps$r = {
|
|
21675
21810
|
...ComponentDefaults,
|
|
21676
21811
|
type: "shake",
|
|
21677
21812
|
action: "initial",
|
|
@@ -21679,16 +21814,16 @@ const defaultProps$q = {
|
|
|
21679
21814
|
onClick: (event) => {
|
|
21680
21815
|
}
|
|
21681
21816
|
};
|
|
21682
|
-
const classPrefix$
|
|
21817
|
+
const classPrefix$6 = `nut-animate`;
|
|
21683
21818
|
const Animate = (props) => {
|
|
21684
21819
|
const { className, type: type4, action, loop: loop2, onClick, children, ...rest } = {
|
|
21685
|
-
...defaultProps$
|
|
21820
|
+
...defaultProps$r,
|
|
21686
21821
|
...props
|
|
21687
21822
|
};
|
|
21688
21823
|
const [clicked, setClicked] = useState(false);
|
|
21689
21824
|
const classes = classNames({
|
|
21690
21825
|
"nut-ani-container": true,
|
|
21691
|
-
[`${classPrefix$
|
|
21826
|
+
[`${classPrefix$6}-${type4}`]: action === "initial" || clicked ? type4 : false,
|
|
21692
21827
|
loop: loop2
|
|
21693
21828
|
});
|
|
21694
21829
|
const cls = classNames(classes, className);
|
|
@@ -21703,9 +21838,9 @@ const Animate = (props) => {
|
|
|
21703
21838
|
};
|
|
21704
21839
|
return /* @__PURE__ */ React__default.createElement("div", { className: "nut-animate" }, /* @__PURE__ */ React__default.createElement("div", { className: cls, onClick: handleClick2, ...rest }, children));
|
|
21705
21840
|
};
|
|
21706
|
-
Animate.defaultProps = defaultProps$
|
|
21841
|
+
Animate.defaultProps = defaultProps$r;
|
|
21707
21842
|
Animate.displayName = "NutAnimate";
|
|
21708
|
-
const defaultProps$
|
|
21843
|
+
const defaultProps$q = {
|
|
21709
21844
|
...ComponentDefaults,
|
|
21710
21845
|
length: 0,
|
|
21711
21846
|
value: "",
|
|
@@ -21724,7 +21859,7 @@ const CountUp = (props) => {
|
|
|
21724
21859
|
style,
|
|
21725
21860
|
...reset
|
|
21726
21861
|
} = {
|
|
21727
|
-
...defaultProps$
|
|
21862
|
+
...defaultProps$q,
|
|
21728
21863
|
...props
|
|
21729
21864
|
};
|
|
21730
21865
|
const classPrefix2 = "nut-countup";
|
|
@@ -21788,9 +21923,9 @@ const CountUp = (props) => {
|
|
|
21788
21923
|
);
|
|
21789
21924
|
})));
|
|
21790
21925
|
};
|
|
21791
|
-
CountUp.defaultProps = defaultProps$
|
|
21926
|
+
CountUp.defaultProps = defaultProps$q;
|
|
21792
21927
|
CountUp.displayName = "NutCountUp";
|
|
21793
|
-
const defaultProps$
|
|
21928
|
+
const defaultProps$p = {};
|
|
21794
21929
|
class AnimatingNumbers extends Component {
|
|
21795
21930
|
constructor(props) {
|
|
21796
21931
|
super(props);
|
|
@@ -21800,11 +21935,11 @@ class AnimatingNumbers extends Component {
|
|
|
21800
21935
|
return /* @__PURE__ */ React__default.createElement("div", { className: "nut-animatingnumbers" });
|
|
21801
21936
|
}
|
|
21802
21937
|
}
|
|
21803
|
-
__publicField(AnimatingNumbers, "defaultProps", defaultProps$
|
|
21938
|
+
__publicField(AnimatingNumbers, "defaultProps", defaultProps$p);
|
|
21804
21939
|
__publicField(AnimatingNumbers, "displayName", "NutAnimatingNumbers");
|
|
21805
21940
|
__publicField(AnimatingNumbers, "CountUp", CountUp);
|
|
21806
21941
|
AnimatingNumbers.CountUp = CountUp;
|
|
21807
|
-
const defaultProps$
|
|
21942
|
+
const defaultProps$o = {
|
|
21808
21943
|
...ComponentDefaults,
|
|
21809
21944
|
src: "",
|
|
21810
21945
|
muted: false,
|
|
@@ -21847,7 +21982,7 @@ const Audio = (props) => {
|
|
|
21847
21982
|
children,
|
|
21848
21983
|
...rest
|
|
21849
21984
|
} = {
|
|
21850
|
-
...defaultProps$
|
|
21985
|
+
...defaultProps$o,
|
|
21851
21986
|
...props
|
|
21852
21987
|
};
|
|
21853
21988
|
const [playing, setPlaying] = useState(false);
|
|
@@ -22053,9 +22188,9 @@ const Audio = (props) => {
|
|
|
22053
22188
|
/* @__PURE__ */ React__default.createElement("track", { kind: "captions" })
|
|
22054
22189
|
));
|
|
22055
22190
|
};
|
|
22056
|
-
Audio.defaultProps = defaultProps$
|
|
22191
|
+
Audio.defaultProps = defaultProps$o;
|
|
22057
22192
|
Audio.displayName = "NutAudio";
|
|
22058
|
-
const defaultProps$
|
|
22193
|
+
const defaultProps$n = {
|
|
22059
22194
|
...ComponentDefaults,
|
|
22060
22195
|
strokeWidth: 5,
|
|
22061
22196
|
radius: 50,
|
|
@@ -22064,7 +22199,7 @@ const defaultProps$m = {
|
|
|
22064
22199
|
background: "#e5e9f2",
|
|
22065
22200
|
clockwise: true
|
|
22066
22201
|
};
|
|
22067
|
-
const classPrefix$
|
|
22202
|
+
const classPrefix$5 = `nut-circleprogress`;
|
|
22068
22203
|
const CircleProgress = (props) => {
|
|
22069
22204
|
var _a2;
|
|
22070
22205
|
const {
|
|
@@ -22080,10 +22215,10 @@ const CircleProgress = (props) => {
|
|
|
22080
22215
|
strokeLinecap,
|
|
22081
22216
|
...restProps
|
|
22082
22217
|
} = {
|
|
22083
|
-
...defaultProps$
|
|
22218
|
+
...defaultProps$n,
|
|
22084
22219
|
...props
|
|
22085
22220
|
};
|
|
22086
|
-
const classes = classNames(className, classPrefix$
|
|
22221
|
+
const classes = classNames(className, classPrefix$5);
|
|
22087
22222
|
const refRandomId = Math.random().toString(36).slice(-8);
|
|
22088
22223
|
const styles = {
|
|
22089
22224
|
height: `${Number(radius) * 2}px`,
|
|
@@ -22149,7 +22284,7 @@ const CircleProgress = (props) => {
|
|
|
22149
22284
|
}
|
|
22150
22285
|
)), /* @__PURE__ */ React__default.createElement("div", { className: "nut-circleprogress-text" }, children));
|
|
22151
22286
|
};
|
|
22152
|
-
CircleProgress.defaultProps = defaultProps$
|
|
22287
|
+
CircleProgress.defaultProps = defaultProps$n;
|
|
22153
22288
|
CircleProgress.displayName = "NutCircleProgress";
|
|
22154
22289
|
const collapseContext = {
|
|
22155
22290
|
isOpen: (name) => {
|
|
@@ -22161,7 +22296,7 @@ const collapseContext = {
|
|
|
22161
22296
|
rotate: 180
|
|
22162
22297
|
};
|
|
22163
22298
|
const CollapseContext = createContext(collapseContext);
|
|
22164
|
-
const defaultProps$
|
|
22299
|
+
const defaultProps$m = {
|
|
22165
22300
|
...ComponentDefaults,
|
|
22166
22301
|
title: null,
|
|
22167
22302
|
name: "",
|
|
@@ -22182,7 +22317,7 @@ const CollapseItem = (props) => {
|
|
|
22182
22317
|
className,
|
|
22183
22318
|
...rest
|
|
22184
22319
|
} = {
|
|
22185
|
-
...defaultProps$
|
|
22320
|
+
...defaultProps$m,
|
|
22186
22321
|
...props
|
|
22187
22322
|
};
|
|
22188
22323
|
const classPrefix2 = "nut-collapse-item";
|
|
@@ -22259,9 +22394,9 @@ const CollapseItem = (props) => {
|
|
|
22259
22394
|
/* @__PURE__ */ React__default.createElement("div", { ref: contentRef, className: `${classPrefix2}__content-text` }, children)
|
|
22260
22395
|
));
|
|
22261
22396
|
};
|
|
22262
|
-
CollapseItem.defaultProps = defaultProps$
|
|
22397
|
+
CollapseItem.defaultProps = defaultProps$m;
|
|
22263
22398
|
CollapseItem.displayName = "NutCollapseItem";
|
|
22264
|
-
const defaultProps$
|
|
22399
|
+
const defaultProps$l = {
|
|
22265
22400
|
...ComponentDefaults,
|
|
22266
22401
|
defaultActiveName: [],
|
|
22267
22402
|
accordion: false,
|
|
@@ -22280,7 +22415,7 @@ const Collapse = (props) => {
|
|
|
22280
22415
|
rotate,
|
|
22281
22416
|
onChange
|
|
22282
22417
|
} = {
|
|
22283
|
-
...defaultProps$
|
|
22418
|
+
...defaultProps$l,
|
|
22284
22419
|
...props
|
|
22285
22420
|
};
|
|
22286
22421
|
const classPrefix2 = "nut-collapse";
|
|
@@ -22337,10 +22472,10 @@ const Collapse = (props) => {
|
|
|
22337
22472
|
/* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix2, className), style }, children)
|
|
22338
22473
|
);
|
|
22339
22474
|
};
|
|
22340
|
-
Collapse.defaultProps = defaultProps$
|
|
22475
|
+
Collapse.defaultProps = defaultProps$l;
|
|
22341
22476
|
Collapse.displayName = "NutCollapse";
|
|
22342
22477
|
Collapse.Item = CollapseItem;
|
|
22343
|
-
const defaultProps$
|
|
22478
|
+
const defaultProps$k = {
|
|
22344
22479
|
...ComponentDefaults,
|
|
22345
22480
|
paused: false,
|
|
22346
22481
|
startTime: Date.now(),
|
|
@@ -22372,7 +22507,7 @@ const InternalCountDown = (props, ref) => {
|
|
|
22372
22507
|
onUpdate,
|
|
22373
22508
|
children,
|
|
22374
22509
|
...rest
|
|
22375
|
-
} = { ...defaultProps$
|
|
22510
|
+
} = { ...defaultProps$k, ...props };
|
|
22376
22511
|
const classPrefix2 = "nut-countdown";
|
|
22377
22512
|
const [restTimeStamp, setRestTime] = useState(0);
|
|
22378
22513
|
const stateRef = useRef({
|
|
@@ -22583,9 +22718,9 @@ const InternalCountDown = (props, ref) => {
|
|
|
22583
22718
|
);
|
|
22584
22719
|
};
|
|
22585
22720
|
const CountDown = React__default.forwardRef(InternalCountDown);
|
|
22586
|
-
CountDown.defaultProps = defaultProps$
|
|
22721
|
+
CountDown.defaultProps = defaultProps$k;
|
|
22587
22722
|
CountDown.displayName = "NutCountDown";
|
|
22588
|
-
const defaultProps$
|
|
22723
|
+
const defaultProps$j = {
|
|
22589
22724
|
...ComponentDefaults,
|
|
22590
22725
|
content: "",
|
|
22591
22726
|
direction: "end",
|
|
@@ -22595,7 +22730,7 @@ const defaultProps$i = {
|
|
|
22595
22730
|
symbol: "...",
|
|
22596
22731
|
lineHeight: "20"
|
|
22597
22732
|
};
|
|
22598
|
-
const classPrefix$
|
|
22733
|
+
const classPrefix$4 = `nut-ellipsis`;
|
|
22599
22734
|
const Ellipsis = (props) => {
|
|
22600
22735
|
var _a2, _b;
|
|
22601
22736
|
const {
|
|
@@ -22611,14 +22746,14 @@ const Ellipsis = (props) => {
|
|
|
22611
22746
|
onClick,
|
|
22612
22747
|
onChange,
|
|
22613
22748
|
...rest
|
|
22614
|
-
} = { ...defaultProps$
|
|
22749
|
+
} = { ...defaultProps$j, ...props };
|
|
22615
22750
|
let container = null;
|
|
22616
22751
|
let maxHeight = 0;
|
|
22617
22752
|
const [exceeded, setExceeded] = useState(false);
|
|
22618
22753
|
const [expanded, setExpanded] = useState(false);
|
|
22619
22754
|
const ellipsis = useRef();
|
|
22620
22755
|
const root2 = useRef(null);
|
|
22621
|
-
const classes = classNames(classPrefix$
|
|
22756
|
+
const classes = classNames(classPrefix$4, className);
|
|
22622
22757
|
useLayoutEffect(() => {
|
|
22623
22758
|
if (content) {
|
|
22624
22759
|
createContainer();
|
|
@@ -22759,9 +22894,9 @@ const Ellipsis = (props) => {
|
|
|
22759
22894
|
collapseText
|
|
22760
22895
|
) : null) : null));
|
|
22761
22896
|
};
|
|
22762
|
-
Ellipsis.defaultProps = defaultProps$
|
|
22897
|
+
Ellipsis.defaultProps = defaultProps$j;
|
|
22763
22898
|
Ellipsis.displayName = "NutEllipsis";
|
|
22764
|
-
const defaultProps$
|
|
22899
|
+
const defaultProps$i = {
|
|
22765
22900
|
...ComponentDefaults,
|
|
22766
22901
|
source: {
|
|
22767
22902
|
type: {},
|
|
@@ -22777,7 +22912,7 @@ const defaultProps$h = {
|
|
|
22777
22912
|
loop: false
|
|
22778
22913
|
}
|
|
22779
22914
|
};
|
|
22780
|
-
const classPrefix$
|
|
22915
|
+
const classPrefix$3 = `nut-video`;
|
|
22781
22916
|
const Video = (props) => {
|
|
22782
22917
|
const {
|
|
22783
22918
|
children,
|
|
@@ -22789,11 +22924,11 @@ const Video = (props) => {
|
|
|
22789
22924
|
onPlayEnd,
|
|
22790
22925
|
...restProps
|
|
22791
22926
|
} = {
|
|
22792
|
-
...defaultProps$
|
|
22927
|
+
...defaultProps$i,
|
|
22793
22928
|
...props
|
|
22794
22929
|
};
|
|
22795
22930
|
const rootRef = useRef(null);
|
|
22796
|
-
const classes = classNames(className, classPrefix$
|
|
22931
|
+
const classes = classNames(className, classPrefix$3);
|
|
22797
22932
|
useEffect(() => {
|
|
22798
22933
|
init();
|
|
22799
22934
|
}, []);
|
|
@@ -22839,22 +22974,22 @@ const Video = (props) => {
|
|
|
22839
22974
|
/* @__PURE__ */ React__default.createElement("track", { kind: "captions" })
|
|
22840
22975
|
));
|
|
22841
22976
|
};
|
|
22842
|
-
Video.defaultProps = defaultProps$
|
|
22977
|
+
Video.defaultProps = defaultProps$i;
|
|
22843
22978
|
Video.displayName = "NutVideo";
|
|
22844
22979
|
const DataContext$1 = createContext({});
|
|
22845
|
-
const defaultProps$
|
|
22980
|
+
const defaultProps$h = {
|
|
22846
22981
|
total: 3,
|
|
22847
22982
|
current: 0,
|
|
22848
22983
|
direction: "horizontal"
|
|
22849
22984
|
};
|
|
22850
|
-
const classPrefix$
|
|
22985
|
+
const classPrefix$2 = `nut-indicator`;
|
|
22851
22986
|
const Indicator = (props) => {
|
|
22852
22987
|
const { total, current, children, className, direction, ...rest } = {
|
|
22853
|
-
...defaultProps$
|
|
22988
|
+
...defaultProps$h,
|
|
22854
22989
|
...props
|
|
22855
22990
|
};
|
|
22856
22991
|
const classes = classNames({
|
|
22857
|
-
[`${classPrefix$
|
|
22992
|
+
[`${classPrefix$2}__vertical`]: direction === "vertical"
|
|
22858
22993
|
});
|
|
22859
22994
|
const renderElement = () => {
|
|
22860
22995
|
const childs = [];
|
|
@@ -22864,18 +22999,18 @@ const Indicator = (props) => {
|
|
|
22864
22999
|
"div",
|
|
22865
23000
|
{
|
|
22866
23001
|
key: item,
|
|
22867
|
-
className: `${classPrefix$
|
|
23002
|
+
className: `${classPrefix$2}__dot ${classPrefix$2}__active`
|
|
22868
23003
|
}
|
|
22869
|
-
) : /* @__PURE__ */ React__default.createElement("div", { key: item, className: `${classPrefix$
|
|
23004
|
+
) : /* @__PURE__ */ React__default.createElement("div", { key: item, className: `${classPrefix$2}__dot` })
|
|
22870
23005
|
);
|
|
22871
23006
|
}
|
|
22872
23007
|
return childs;
|
|
22873
23008
|
};
|
|
22874
23009
|
return /* @__PURE__ */ React__default.createElement("div", { className: classNames(classes, className), ...rest }, renderElement());
|
|
22875
23010
|
};
|
|
22876
|
-
Indicator.defaultProps = defaultProps$
|
|
23011
|
+
Indicator.defaultProps = defaultProps$h;
|
|
22877
23012
|
Indicator.displayName = "NutIndicator";
|
|
22878
|
-
const defaultProps$
|
|
23013
|
+
const defaultProps$g = {
|
|
22879
23014
|
width: typeof window === "object" ? window.innerWidth : 375,
|
|
22880
23015
|
height: 0,
|
|
22881
23016
|
duration: 500,
|
|
@@ -22892,7 +23027,7 @@ const defaultProps$f = {
|
|
|
22892
23027
|
};
|
|
22893
23028
|
const DISTANCE = 5;
|
|
22894
23029
|
const Swiper = React__default.forwardRef((props, ref) => {
|
|
22895
|
-
const propSwiper = { ...defaultProps$
|
|
23030
|
+
const propSwiper = { ...defaultProps$g, ...props };
|
|
22896
23031
|
const {
|
|
22897
23032
|
children,
|
|
22898
23033
|
direction,
|
|
@@ -23305,14 +23440,14 @@ const Swiper = React__default.forwardRef((props, ref) => {
|
|
|
23305
23440
|
renderIndicator()
|
|
23306
23441
|
));
|
|
23307
23442
|
});
|
|
23308
|
-
Swiper.defaultProps = defaultProps$
|
|
23443
|
+
Swiper.defaultProps = defaultProps$g;
|
|
23309
23444
|
Swiper.displayName = "NutSwiper";
|
|
23310
|
-
const defaultProps$
|
|
23445
|
+
const defaultProps$f = {
|
|
23311
23446
|
direction: "horizontal"
|
|
23312
23447
|
};
|
|
23313
23448
|
const SwiperItem = React__default.forwardRef((props, ref) => {
|
|
23314
23449
|
const classPrefix2 = "nut-swiper-item";
|
|
23315
|
-
const _props = { ...defaultProps$
|
|
23450
|
+
const _props = { ...defaultProps$f, ...props };
|
|
23316
23451
|
const { className, style, children, direction, size } = _props;
|
|
23317
23452
|
const parent = useContext(DataContext$1);
|
|
23318
23453
|
const classes = classNames(classPrefix2, className);
|
|
@@ -23327,11 +23462,11 @@ const SwiperItem = React__default.forwardRef((props, ref) => {
|
|
|
23327
23462
|
};
|
|
23328
23463
|
return /* @__PURE__ */ React__default.createElement("div", { className: classes, style: { ...style, ...getStyle() } }, children);
|
|
23329
23464
|
});
|
|
23330
|
-
SwiperItem.defaultProps = defaultProps$
|
|
23465
|
+
SwiperItem.defaultProps = defaultProps$f;
|
|
23331
23466
|
SwiperItem.displayName = "NutSwiperItem";
|
|
23332
23467
|
const InnerSwiper = Swiper;
|
|
23333
23468
|
InnerSwiper.Item = SwiperItem;
|
|
23334
|
-
const defaultProps$
|
|
23469
|
+
const defaultProps$e = {
|
|
23335
23470
|
...ComponentDefaults,
|
|
23336
23471
|
images: [],
|
|
23337
23472
|
videos: [],
|
|
@@ -23533,9 +23668,9 @@ const ImagePreview = (props) => {
|
|
|
23533
23668
|
/* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-index` }, active, "/", (images ? images.length : 0) + (videos ? videos.length : 0))
|
|
23534
23669
|
);
|
|
23535
23670
|
};
|
|
23536
|
-
ImagePreview.defaultProps = defaultProps$
|
|
23671
|
+
ImagePreview.defaultProps = defaultProps$e;
|
|
23537
23672
|
ImagePreview.displayName = "NutImagePreview";
|
|
23538
|
-
const defaultProps$
|
|
23673
|
+
const defaultProps$d = {
|
|
23539
23674
|
...ComponentDefaults,
|
|
23540
23675
|
defaultValue: 1,
|
|
23541
23676
|
mode: "multi",
|
|
@@ -23563,7 +23698,7 @@ const Pagination = (props) => {
|
|
|
23563
23698
|
className,
|
|
23564
23699
|
...rest
|
|
23565
23700
|
} = {
|
|
23566
|
-
...defaultProps$
|
|
23701
|
+
...defaultProps$d,
|
|
23567
23702
|
...props
|
|
23568
23703
|
};
|
|
23569
23704
|
const classPrefix2 = "nut-pagination";
|
|
@@ -23645,9 +23780,9 @@ const Pagination = (props) => {
|
|
|
23645
23780
|
next || locale.pagination.next
|
|
23646
23781
|
));
|
|
23647
23782
|
};
|
|
23648
|
-
Pagination.defaultProps = defaultProps$
|
|
23783
|
+
Pagination.defaultProps = defaultProps$d;
|
|
23649
23784
|
Pagination.displayName = "NutPagination";
|
|
23650
|
-
const defaultProps$
|
|
23785
|
+
const defaultProps$c = {
|
|
23651
23786
|
...ComponentDefaults,
|
|
23652
23787
|
price: 0,
|
|
23653
23788
|
symbol: "¥",
|
|
@@ -23670,7 +23805,7 @@ const Price = (props) => {
|
|
|
23670
23805
|
style,
|
|
23671
23806
|
...rest
|
|
23672
23807
|
} = {
|
|
23673
|
-
...defaultProps$
|
|
23808
|
+
...defaultProps$c,
|
|
23674
23809
|
...props
|
|
23675
23810
|
};
|
|
23676
23811
|
const classPrefix2 = "nut-price";
|
|
@@ -23750,10 +23885,10 @@ const Price = (props) => {
|
|
|
23750
23885
|
symbol && position === "after" ? renderSymbol() : null
|
|
23751
23886
|
);
|
|
23752
23887
|
};
|
|
23753
|
-
Price.defaultProps = defaultProps$
|
|
23888
|
+
Price.defaultProps = defaultProps$c;
|
|
23754
23889
|
Price.displayName = "NutPrice";
|
|
23755
23890
|
const DataContext = createContext({});
|
|
23756
|
-
const defaultProps$
|
|
23891
|
+
const defaultProps$b = {
|
|
23757
23892
|
...ComponentDefaults,
|
|
23758
23893
|
title: "",
|
|
23759
23894
|
description: "",
|
|
@@ -23762,7 +23897,7 @@ const defaultProps$a = {
|
|
|
23762
23897
|
};
|
|
23763
23898
|
const Step = (props) => {
|
|
23764
23899
|
const { children, title, description, value, icon, className, ...restProps } = {
|
|
23765
|
-
...defaultProps$
|
|
23900
|
+
...defaultProps$b,
|
|
23766
23901
|
...props
|
|
23767
23902
|
};
|
|
23768
23903
|
const parent = useContext(DataContext);
|
|
@@ -23796,16 +23931,16 @@ const Step = (props) => {
|
|
|
23796
23931
|
};
|
|
23797
23932
|
return /* @__PURE__ */ React__default.createElement("div", { className: classes, ...restProps, onClick: handleClickStep }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-step-head" }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-step-line" }), /* @__PURE__ */ React__default.createElement("div", { className: renderIconClass() }, icon || !dot && /* @__PURE__ */ React__default.createElement("span", { className: "nut-step-inner" }, value))), /* @__PURE__ */ React__default.createElement("div", { className: "nut-step-main" }, /* @__PURE__ */ React__default.createElement("span", { className: "nut-step-title" }, title), description && /* @__PURE__ */ React__default.createElement("span", { className: "nut-step-description" }, description)));
|
|
23798
23933
|
};
|
|
23799
|
-
Step.defaultProps = defaultProps$
|
|
23934
|
+
Step.defaultProps = defaultProps$b;
|
|
23800
23935
|
Step.displayName = "NutStep";
|
|
23801
|
-
const defaultProps$
|
|
23936
|
+
const defaultProps$a = {
|
|
23802
23937
|
...ComponentDefaults,
|
|
23803
23938
|
value: 0,
|
|
23804
23939
|
direction: "horizontal",
|
|
23805
23940
|
dot: false
|
|
23806
23941
|
};
|
|
23807
23942
|
const Steps = (props) => {
|
|
23808
|
-
const propSteps = { ...defaultProps$
|
|
23943
|
+
const propSteps = { ...defaultProps$a, ...props };
|
|
23809
23944
|
const {
|
|
23810
23945
|
children,
|
|
23811
23946
|
value,
|
|
@@ -23836,9 +23971,9 @@ const Steps = (props) => {
|
|
|
23836
23971
|
children
|
|
23837
23972
|
));
|
|
23838
23973
|
};
|
|
23839
|
-
Steps.defaultProps = defaultProps$
|
|
23974
|
+
Steps.defaultProps = defaultProps$a;
|
|
23840
23975
|
Steps.displayName = "NutSteps";
|
|
23841
|
-
const defaultProps$
|
|
23976
|
+
const defaultProps$9 = {
|
|
23842
23977
|
...ComponentDefaults,
|
|
23843
23978
|
columns: [],
|
|
23844
23979
|
data: [],
|
|
@@ -23850,7 +23985,7 @@ const defaultProps$8 = {
|
|
|
23850
23985
|
};
|
|
23851
23986
|
const Table = (props) => {
|
|
23852
23987
|
const { locale } = useConfig();
|
|
23853
|
-
defaultProps$
|
|
23988
|
+
defaultProps$9.noData = locale.noData;
|
|
23854
23989
|
const {
|
|
23855
23990
|
children,
|
|
23856
23991
|
className,
|
|
@@ -23866,7 +24001,7 @@ const Table = (props) => {
|
|
|
23866
24001
|
onSort,
|
|
23867
24002
|
...rest
|
|
23868
24003
|
} = {
|
|
23869
|
-
...defaultProps$
|
|
24004
|
+
...defaultProps$9,
|
|
23870
24005
|
...props
|
|
23871
24006
|
};
|
|
23872
24007
|
const [curData, setCurData] = useState(data);
|
|
@@ -23949,9 +24084,9 @@ const Table = (props) => {
|
|
|
23949
24084
|
/* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__main__body` }, renderBoyTrs())
|
|
23950
24085
|
), (summary || curData.length === 0) && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__summary` }, summary || noData));
|
|
23951
24086
|
};
|
|
23952
|
-
Table.defaultProps = defaultProps$
|
|
24087
|
+
Table.defaultProps = defaultProps$9;
|
|
23953
24088
|
Table.displayName = "NutTable";
|
|
23954
|
-
const defaultProps$
|
|
24089
|
+
const defaultProps$8 = {
|
|
23955
24090
|
...ComponentDefaults,
|
|
23956
24091
|
type: "default",
|
|
23957
24092
|
background: "",
|
|
@@ -23982,7 +24117,7 @@ const Tag = (props) => {
|
|
|
23982
24117
|
onClick,
|
|
23983
24118
|
onClose
|
|
23984
24119
|
} = {
|
|
23985
|
-
...defaultProps$
|
|
24120
|
+
...defaultProps$8,
|
|
23986
24121
|
...props
|
|
23987
24122
|
};
|
|
23988
24123
|
const [tagClass, setTagClass] = useState("");
|
|
@@ -24058,8 +24193,166 @@ const Tag = (props) => {
|
|
|
24058
24193
|
children && /* @__PURE__ */ React__default.createElement("span", { className: `${classPrefix2}-text` }, children)
|
|
24059
24194
|
));
|
|
24060
24195
|
};
|
|
24061
|
-
Tag.defaultProps = defaultProps$
|
|
24196
|
+
Tag.defaultProps = defaultProps$8;
|
|
24062
24197
|
Tag.displayName = "NutTag";
|
|
24198
|
+
const defaultProps$7 = {
|
|
24199
|
+
...ComponentDefaults,
|
|
24200
|
+
visible: false,
|
|
24201
|
+
type: "step",
|
|
24202
|
+
location: "bottom",
|
|
24203
|
+
mask: true,
|
|
24204
|
+
maskWidth: "",
|
|
24205
|
+
maskHeight: "",
|
|
24206
|
+
offset: [8, 10],
|
|
24207
|
+
title: "",
|
|
24208
|
+
next: "",
|
|
24209
|
+
prev: "",
|
|
24210
|
+
complete: "",
|
|
24211
|
+
showPrev: true,
|
|
24212
|
+
closeOnOverlayClick: true
|
|
24213
|
+
};
|
|
24214
|
+
const classPrefix$1 = "nut-tour";
|
|
24215
|
+
const Tour = (props) => {
|
|
24216
|
+
const { locale } = useConfig();
|
|
24217
|
+
const {
|
|
24218
|
+
children,
|
|
24219
|
+
className,
|
|
24220
|
+
title,
|
|
24221
|
+
closeOnOverlayClick,
|
|
24222
|
+
showPrev,
|
|
24223
|
+
list,
|
|
24224
|
+
type: type4,
|
|
24225
|
+
location,
|
|
24226
|
+
visible,
|
|
24227
|
+
mask,
|
|
24228
|
+
maskWidth,
|
|
24229
|
+
maskHeight,
|
|
24230
|
+
offset,
|
|
24231
|
+
next,
|
|
24232
|
+
prev,
|
|
24233
|
+
complete,
|
|
24234
|
+
onClose,
|
|
24235
|
+
onChange,
|
|
24236
|
+
...rest
|
|
24237
|
+
} = {
|
|
24238
|
+
...defaultProps$7,
|
|
24239
|
+
...props
|
|
24240
|
+
};
|
|
24241
|
+
const [showTour, setShowTour] = useState(false);
|
|
24242
|
+
const [showPopup, setShowPopup] = useState(false);
|
|
24243
|
+
const [active, setActive] = useState(0);
|
|
24244
|
+
const [maskRect, setMaskRect] = useState({
|
|
24245
|
+
top: 0,
|
|
24246
|
+
left: 0,
|
|
24247
|
+
right: 0,
|
|
24248
|
+
bottom: 0,
|
|
24249
|
+
width: 0,
|
|
24250
|
+
height: 0
|
|
24251
|
+
});
|
|
24252
|
+
const classes = classNames(className, classPrefix$1);
|
|
24253
|
+
useEffect(() => {
|
|
24254
|
+
if (visible) {
|
|
24255
|
+
getRootPosition();
|
|
24256
|
+
}
|
|
24257
|
+
setActive(0);
|
|
24258
|
+
setShowTour(visible);
|
|
24259
|
+
setShowPopup(visible);
|
|
24260
|
+
}, [visible]);
|
|
24261
|
+
useEffect(() => {
|
|
24262
|
+
if (visible) {
|
|
24263
|
+
setShowPopup(true);
|
|
24264
|
+
getRootPosition();
|
|
24265
|
+
}
|
|
24266
|
+
}, [active]);
|
|
24267
|
+
const getRootPosition = () => {
|
|
24268
|
+
const el = document.querySelector(`#${list[active].target}`);
|
|
24269
|
+
const rect = getRect(el);
|
|
24270
|
+
setMaskRect(rect);
|
|
24271
|
+
};
|
|
24272
|
+
const maskStyle = () => {
|
|
24273
|
+
const { width, height, left, top } = maskRect;
|
|
24274
|
+
const center = [left + width / 2, top + height / 2];
|
|
24275
|
+
const w = Number(maskWidth || width);
|
|
24276
|
+
const h = Number(maskHeight || height);
|
|
24277
|
+
const styles = {
|
|
24278
|
+
width: `${w + +offset[1] * 2}px`,
|
|
24279
|
+
height: `${h + +offset[0] * 2}px`,
|
|
24280
|
+
top: `${center[1] - h / 2 - +offset[0]}px`,
|
|
24281
|
+
left: `${center[0] - w / 2 - +offset[1]}px`
|
|
24282
|
+
};
|
|
24283
|
+
return styles;
|
|
24284
|
+
};
|
|
24285
|
+
const maskClose = (e) => {
|
|
24286
|
+
setShowTour(false);
|
|
24287
|
+
setShowPopup(false);
|
|
24288
|
+
onClose && onClose(e);
|
|
24289
|
+
};
|
|
24290
|
+
const handleClickMask = (e) => {
|
|
24291
|
+
closeOnOverlayClick && maskClose(e);
|
|
24292
|
+
};
|
|
24293
|
+
const changeStep = (type22) => {
|
|
24294
|
+
if (type22 === "next") {
|
|
24295
|
+
setActive(active + 1);
|
|
24296
|
+
onChange && onChange(active + 1);
|
|
24297
|
+
} else {
|
|
24298
|
+
setActive(active - 1);
|
|
24299
|
+
onChange && onChange(active - 1);
|
|
24300
|
+
}
|
|
24301
|
+
setShowPopup(false);
|
|
24302
|
+
};
|
|
24303
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: classes, ...rest }, /* @__PURE__ */ React__default.createElement(
|
|
24304
|
+
"div",
|
|
24305
|
+
{
|
|
24306
|
+
className: "nut-tour-masked",
|
|
24307
|
+
style: { display: showTour ? "block" : "none" },
|
|
24308
|
+
onClick: handleClickMask
|
|
24309
|
+
}
|
|
24310
|
+
), list.map((item, index) => {
|
|
24311
|
+
return /* @__PURE__ */ React__default.createElement("div", { key: index, style: { height: 0 } }, index === active && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, showTour && /* @__PURE__ */ React__default.createElement(
|
|
24312
|
+
"div",
|
|
24313
|
+
{
|
|
24314
|
+
className: `${mask ? "nut-tour-mask" : "nut-tour-mask nut-tour-mask-none"}`,
|
|
24315
|
+
id: "nut-tour-popid",
|
|
24316
|
+
style: maskStyle()
|
|
24317
|
+
}
|
|
24318
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
24319
|
+
Popover,
|
|
24320
|
+
{
|
|
24321
|
+
visible: showPopup,
|
|
24322
|
+
location: item.location || location,
|
|
24323
|
+
targetId: "nut-tour-popid",
|
|
24324
|
+
closeOnOutsideClick: false,
|
|
24325
|
+
offset: item.popoverOffset || [0, 12],
|
|
24326
|
+
arrowOffset: item.arrowOffset || 0
|
|
24327
|
+
},
|
|
24328
|
+
/* @__PURE__ */ React__default.createElement(React__default.Fragment, null),
|
|
24329
|
+
/* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, type4 === "step" && /* @__PURE__ */ React__default.createElement("div", { className: "nut-tour-content" }, title && /* @__PURE__ */ React__default.createElement("div", { className: "nut-tour-content-top" }, /* @__PURE__ */ React__default.createElement("div", { onClick: (e) => maskClose(e) }, /* @__PURE__ */ React__default.createElement(x$b, { className: "nut-tour-content-top-close" }))), /* @__PURE__ */ React__default.createElement("div", { className: "nut-tour-content-inner" }, item.content), /* @__PURE__ */ React__default.createElement("div", { className: "nut-tour-content-bottom" }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-tour-content-bottom-init" }, active + 1, "/", list.length), /* @__PURE__ */ React__default.createElement("div", { className: "nut-tour-content-bottom-operate" }, active !== 0 && showPrev && /* @__PURE__ */ React__default.createElement(
|
|
24330
|
+
"div",
|
|
24331
|
+
{
|
|
24332
|
+
className: "nut-tour-content-bottom-operate-btn",
|
|
24333
|
+
onClick: () => changeStep("prev")
|
|
24334
|
+
},
|
|
24335
|
+
prev || locale.tour.prevStepText
|
|
24336
|
+
), list.length - 1 === active && /* @__PURE__ */ React__default.createElement(
|
|
24337
|
+
"div",
|
|
24338
|
+
{
|
|
24339
|
+
className: "nut-tour-content-bottom-operate-btn active",
|
|
24340
|
+
onClick: (e) => maskClose(e)
|
|
24341
|
+
},
|
|
24342
|
+
complete || locale.tour.completeText
|
|
24343
|
+
), list.length - 1 !== active && /* @__PURE__ */ React__default.createElement(
|
|
24344
|
+
"div",
|
|
24345
|
+
{
|
|
24346
|
+
className: "nut-tour-content-bottom-operate-btn active",
|
|
24347
|
+
onClick: () => changeStep("next")
|
|
24348
|
+
},
|
|
24349
|
+
next || locale.tour.nextStepText
|
|
24350
|
+
)))), type4 === "tile" && /* @__PURE__ */ React__default.createElement("div", { className: "nut-tour-content nut-tour-content-tile" }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-tour-content-inner" }, item.content))))
|
|
24351
|
+
)));
|
|
24352
|
+
}));
|
|
24353
|
+
};
|
|
24354
|
+
Tour.defaultProps = defaultProps$7;
|
|
24355
|
+
Tour.displayName = "NutTour";
|
|
24063
24356
|
const initPositinoCache = (reaItemSize, length = 0) => {
|
|
24064
24357
|
let index = 0;
|
|
24065
24358
|
const positions = Array(length);
|
|
@@ -24922,6 +25215,7 @@ export {
|
|
|
24922
25215
|
Input,
|
|
24923
25216
|
InputNumber,
|
|
24924
25217
|
Layout,
|
|
25218
|
+
Loading,
|
|
24925
25219
|
Menu,
|
|
24926
25220
|
MenuItem,
|
|
24927
25221
|
NavBar,
|
|
@@ -24966,6 +25260,7 @@ export {
|
|
|
24966
25260
|
TimeDetail,
|
|
24967
25261
|
TimeSelect,
|
|
24968
25262
|
Toast,
|
|
25263
|
+
Tour,
|
|
24969
25264
|
TrendArrow,
|
|
24970
25265
|
Uploader,
|
|
24971
25266
|
Video,
|