@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.umd.js
CHANGED
|
@@ -9,7 +9,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9
9
|
return value;
|
|
10
10
|
};
|
|
11
11
|
/*!
|
|
12
|
-
* @nutui/nutui-react v2.0.
|
|
12
|
+
* @nutui/nutui-react v2.0.11 Wed Aug 09 2023 13:48:21 GMT+0800 (China Standard Time)
|
|
13
13
|
* (c) 2023 @jdf2e.
|
|
14
14
|
* Released under the MIT License.
|
|
15
15
|
*/
|
|
@@ -725,7 +725,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
725
725
|
process.env.NODE_ENV === "production" ? h.exports = ur() : h.exports = sr();
|
|
726
726
|
})(ir);
|
|
727
727
|
const lr = D.Fragment, cr = D.jsx, vr = D.jsxs;
|
|
728
|
-
const a$
|
|
728
|
+
const a$y = {
|
|
729
729
|
className: "",
|
|
730
730
|
style: void 0,
|
|
731
731
|
name: "ArrowDown2",
|
|
@@ -733,8 +733,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
733
733
|
height: "",
|
|
734
734
|
onClick: () => {
|
|
735
735
|
}
|
|
736
|
-
}, y$
|
|
737
|
-
const { className: r, style: d, name: e, color: p, width: m, height: w, onClick: n } = { ...a$
|
|
736
|
+
}, y$a = (h) => {
|
|
737
|
+
const { className: r, style: d, name: e, color: p, width: m, height: w, onClick: n } = { ...a$y, ...h }, f = (t) => {
|
|
738
738
|
n && n(t);
|
|
739
739
|
}, c = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
|
|
740
740
|
const t = "nut-icon";
|
|
@@ -771,8 +771,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
771
771
|
}
|
|
772
772
|
) });
|
|
773
773
|
};
|
|
774
|
-
y$
|
|
775
|
-
const a$
|
|
774
|
+
y$a.defaultProps = a$y;
|
|
775
|
+
const a$x = {
|
|
776
776
|
className: "",
|
|
777
777
|
style: void 0,
|
|
778
778
|
name: "ArrowUp2",
|
|
@@ -781,7 +781,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
781
781
|
onClick: () => {
|
|
782
782
|
}
|
|
783
783
|
}, x$h = (h) => {
|
|
784
|
-
const { className: o, style: p, name: e, color: d, width: m, height: f, onClick: n } = { ...a$
|
|
784
|
+
const { className: o, style: p, name: e, color: d, width: m, height: f, onClick: n } = { ...a$x, ...h }, g = (t) => {
|
|
785
785
|
n && n(t);
|
|
786
786
|
}, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", w = () => {
|
|
787
787
|
const t = "nut-icon";
|
|
@@ -818,8 +818,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
818
818
|
}
|
|
819
819
|
) });
|
|
820
820
|
};
|
|
821
|
-
x$h.defaultProps = a$
|
|
822
|
-
const a$
|
|
821
|
+
x$h.defaultProps = a$x;
|
|
822
|
+
const a$w = {
|
|
823
823
|
className: "",
|
|
824
824
|
style: void 0,
|
|
825
825
|
name: "CheckChecked",
|
|
@@ -827,8 +827,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
827
827
|
height: "",
|
|
828
828
|
onClick: () => {
|
|
829
829
|
}
|
|
830
|
-
}, y$
|
|
831
|
-
const { className: r, style: d, name: e, color: p, width: m, height: f, onClick: o } = { ...a$
|
|
830
|
+
}, y$9 = (h) => {
|
|
831
|
+
const { className: r, style: d, name: e, color: p, width: m, height: f, onClick: o } = { ...a$w, ...h }, C = (t) => {
|
|
832
832
|
o && o(t);
|
|
833
833
|
}, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", k2 = () => {
|
|
834
834
|
const t = "nut-icon";
|
|
@@ -876,8 +876,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
876
876
|
}
|
|
877
877
|
) });
|
|
878
878
|
};
|
|
879
|
-
y$
|
|
880
|
-
const a$
|
|
879
|
+
y$9.defaultProps = a$w;
|
|
880
|
+
const a$v = {
|
|
881
881
|
className: "",
|
|
882
882
|
style: void 0,
|
|
883
883
|
name: "CheckDisabled",
|
|
@@ -886,7 +886,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
886
886
|
onClick: () => {
|
|
887
887
|
}
|
|
888
888
|
}, x$g = (h) => {
|
|
889
|
-
const { className: i, style: d, name: e, color: m, width: p, height: f, onClick: o } = { ...a$
|
|
889
|
+
const { className: i, style: d, name: e, color: m, width: p, height: f, onClick: o } = { ...a$v, ...h }, g = (t) => {
|
|
890
890
|
o && o(t);
|
|
891
891
|
}, r = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", C = () => {
|
|
892
892
|
const t = "nut-icon";
|
|
@@ -923,8 +923,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
923
923
|
}
|
|
924
924
|
) });
|
|
925
925
|
};
|
|
926
|
-
x$g.defaultProps = a$
|
|
927
|
-
const a$
|
|
926
|
+
x$g.defaultProps = a$v;
|
|
927
|
+
const a$u = {
|
|
928
928
|
className: "",
|
|
929
929
|
style: void 0,
|
|
930
930
|
name: "CheckNormal",
|
|
@@ -933,7 +933,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
933
933
|
onClick: () => {
|
|
934
934
|
}
|
|
935
935
|
}, N = (h) => {
|
|
936
|
-
const { className: o, style: m, name: e, color: d, width: p, height: C, onClick: r } = { ...a$
|
|
936
|
+
const { className: o, style: m, name: e, color: d, width: p, height: C, onClick: r } = { ...a$u, ...h }, f = (t) => {
|
|
937
937
|
r && r(t);
|
|
938
938
|
}, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
|
|
939
939
|
const t = "nut-icon";
|
|
@@ -970,8 +970,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
970
970
|
}
|
|
971
971
|
) });
|
|
972
972
|
};
|
|
973
|
-
N.defaultProps = a$
|
|
974
|
-
const a$
|
|
973
|
+
N.defaultProps = a$u;
|
|
974
|
+
const a$t = {
|
|
975
975
|
className: "",
|
|
976
976
|
style: void 0,
|
|
977
977
|
name: "Check",
|
|
@@ -980,7 +980,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
980
980
|
onClick: () => {
|
|
981
981
|
}
|
|
982
982
|
}, x$f = (h) => {
|
|
983
|
-
const { className: o, style: d, name: e, color: p, width: m, height: f, onClick: r } = { ...a$
|
|
983
|
+
const { className: o, style: d, name: e, color: p, width: m, height: f, onClick: r } = { ...a$t, ...h }, g = (t) => {
|
|
984
984
|
r && r(t);
|
|
985
985
|
}, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", C = () => {
|
|
986
986
|
const t = "nut-icon";
|
|
@@ -1017,8 +1017,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1017
1017
|
}
|
|
1018
1018
|
) });
|
|
1019
1019
|
};
|
|
1020
|
-
x$f.defaultProps = a$
|
|
1021
|
-
const a$
|
|
1020
|
+
x$f.defaultProps = a$t;
|
|
1021
|
+
const a$s = {
|
|
1022
1022
|
className: "",
|
|
1023
1023
|
style: void 0,
|
|
1024
1024
|
name: "Checked",
|
|
@@ -1027,7 +1027,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1027
1027
|
onClick: () => {
|
|
1028
1028
|
}
|
|
1029
1029
|
}, x$e = (h) => {
|
|
1030
|
-
const { className: o, style: d, name: e, color: m, width: p, height: C, onClick: r } = { ...a$
|
|
1030
|
+
const { className: o, style: d, name: e, color: m, width: p, height: C, onClick: r } = { ...a$s, ...h }, f = (t) => {
|
|
1031
1031
|
r && r(t);
|
|
1032
1032
|
}, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
|
|
1033
1033
|
const t = "nut-icon";
|
|
@@ -1064,8 +1064,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1064
1064
|
}
|
|
1065
1065
|
) });
|
|
1066
1066
|
};
|
|
1067
|
-
x$e.defaultProps = a$
|
|
1068
|
-
const a$
|
|
1067
|
+
x$e.defaultProps = a$s;
|
|
1068
|
+
const a$r = {
|
|
1069
1069
|
className: "",
|
|
1070
1070
|
style: void 0,
|
|
1071
1071
|
name: "Checklist",
|
|
@@ -1074,7 +1074,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1074
1074
|
onClick: () => {
|
|
1075
1075
|
}
|
|
1076
1076
|
}, x$d = (h) => {
|
|
1077
|
-
const { className: i, style: d, name: e, color: p, width: m, height: f, onClick: o } = { ...a$
|
|
1077
|
+
const { className: i, style: d, name: e, color: p, width: m, height: f, onClick: o } = { ...a$r, ...h }, g = (t) => {
|
|
1078
1078
|
o && o(t);
|
|
1079
1079
|
}, r = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", k2 = () => {
|
|
1080
1080
|
const t = "nut-icon";
|
|
@@ -1111,8 +1111,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1111
1111
|
}
|
|
1112
1112
|
) });
|
|
1113
1113
|
};
|
|
1114
|
-
x$d.defaultProps = a$
|
|
1115
|
-
const a$
|
|
1114
|
+
x$d.defaultProps = a$r;
|
|
1115
|
+
const a$q = {
|
|
1116
1116
|
className: "",
|
|
1117
1117
|
style: void 0,
|
|
1118
1118
|
name: "CircleClose",
|
|
@@ -1121,7 +1121,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1121
1121
|
onClick: () => {
|
|
1122
1122
|
}
|
|
1123
1123
|
}, x$c = (h) => {
|
|
1124
|
-
const { className: l2, style: m, name: e, color: d, width: p, height: C, onClick: o } = { ...a$
|
|
1124
|
+
const { className: l2, style: m, name: e, color: d, width: p, height: C, onClick: o } = { ...a$q, ...h }, f = (t) => {
|
|
1125
1125
|
o && o(t);
|
|
1126
1126
|
}, r = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
|
|
1127
1127
|
const t = "nut-icon";
|
|
@@ -1158,8 +1158,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1158
1158
|
}
|
|
1159
1159
|
) });
|
|
1160
1160
|
};
|
|
1161
|
-
x$c.defaultProps = a$
|
|
1162
|
-
const a$
|
|
1161
|
+
x$c.defaultProps = a$q;
|
|
1162
|
+
const a$p = {
|
|
1163
1163
|
className: "",
|
|
1164
1164
|
style: void 0,
|
|
1165
1165
|
name: "Close",
|
|
@@ -1168,7 +1168,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1168
1168
|
onClick: () => {
|
|
1169
1169
|
}
|
|
1170
1170
|
}, x$b = (h) => {
|
|
1171
|
-
const { className: o, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$
|
|
1171
|
+
const { className: o, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$p, ...h }, g = (t) => {
|
|
1172
1172
|
r && r(t);
|
|
1173
1173
|
}, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", C = () => {
|
|
1174
1174
|
const t = "nut-icon";
|
|
@@ -1205,8 +1205,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1205
1205
|
}
|
|
1206
1206
|
) });
|
|
1207
1207
|
};
|
|
1208
|
-
x$b.defaultProps = a$
|
|
1209
|
-
const a$
|
|
1208
|
+
x$b.defaultProps = a$p;
|
|
1209
|
+
const a$o = {
|
|
1210
1210
|
className: "",
|
|
1211
1211
|
style: void 0,
|
|
1212
1212
|
name: "Del",
|
|
@@ -1214,8 +1214,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1214
1214
|
height: "",
|
|
1215
1215
|
onClick: () => {
|
|
1216
1216
|
}
|
|
1217
|
-
}, y$
|
|
1218
|
-
const { className: o, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$
|
|
1217
|
+
}, y$8 = (h) => {
|
|
1218
|
+
const { className: o, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$o, ...h }, g = (t) => {
|
|
1219
1219
|
r && r(t);
|
|
1220
1220
|
}, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
|
|
1221
1221
|
const t = "nut-icon";
|
|
@@ -1252,8 +1252,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1252
1252
|
}
|
|
1253
1253
|
) });
|
|
1254
1254
|
};
|
|
1255
|
-
y$
|
|
1256
|
-
const a$
|
|
1255
|
+
y$8.defaultProps = a$o;
|
|
1256
|
+
const a$n = {
|
|
1257
1257
|
className: "",
|
|
1258
1258
|
style: void 0,
|
|
1259
1259
|
name: "DownArrow",
|
|
@@ -1262,7 +1262,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1262
1262
|
onClick: () => {
|
|
1263
1263
|
}
|
|
1264
1264
|
}, x$a = (h) => {
|
|
1265
|
-
const { className: r, style: d, name: e, color: p, width: m, height: w, onClick: n } = { ...a$
|
|
1265
|
+
const { className: r, style: d, name: e, color: p, width: m, height: w, onClick: n } = { ...a$n, ...h }, f = (t) => {
|
|
1266
1266
|
n && n(t);
|
|
1267
1267
|
}, c = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
|
|
1268
1268
|
const t = "nut-icon";
|
|
@@ -1299,8 +1299,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1299
1299
|
}
|
|
1300
1300
|
) });
|
|
1301
1301
|
};
|
|
1302
|
-
x$a.defaultProps = a$
|
|
1303
|
-
const a$
|
|
1302
|
+
x$a.defaultProps = a$n;
|
|
1303
|
+
const a$m = {
|
|
1304
1304
|
className: "",
|
|
1305
1305
|
style: void 0,
|
|
1306
1306
|
name: "Failure",
|
|
@@ -1309,7 +1309,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1309
1309
|
onClick: () => {
|
|
1310
1310
|
}
|
|
1311
1311
|
}, x$9 = (h) => {
|
|
1312
|
-
const { className: r, style: d, name: e, color: m, width: p, height: f, onClick: l2 } = { ...a$
|
|
1312
|
+
const { className: r, style: d, name: e, color: m, width: p, height: f, onClick: l2 } = { ...a$m, ...h }, u = (t) => {
|
|
1313
1313
|
l2 && l2(t);
|
|
1314
1314
|
}, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
|
|
1315
1315
|
const t = "nut-icon";
|
|
@@ -1346,8 +1346,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1346
1346
|
}
|
|
1347
1347
|
) });
|
|
1348
1348
|
};
|
|
1349
|
-
x$9.defaultProps = a$
|
|
1350
|
-
const a$
|
|
1349
|
+
x$9.defaultProps = a$m;
|
|
1350
|
+
const a$l = {
|
|
1351
1351
|
className: "",
|
|
1352
1352
|
style: void 0,
|
|
1353
1353
|
name: "ImageError",
|
|
@@ -1356,7 +1356,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1356
1356
|
onClick: () => {
|
|
1357
1357
|
}
|
|
1358
1358
|
}, k$5 = (h) => {
|
|
1359
|
-
const { className: s, style: d, name: e, color: m, width: p, height: f, onClick: o } = { ...a$
|
|
1359
|
+
const { className: s, style: d, name: e, color: m, width: p, height: f, onClick: o } = { ...a$l, ...h }, g = (t) => {
|
|
1360
1360
|
o && o(t);
|
|
1361
1361
|
}, c = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
|
|
1362
1362
|
const t = "nut-icon";
|
|
@@ -1404,8 +1404,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1404
1404
|
}
|
|
1405
1405
|
) });
|
|
1406
1406
|
};
|
|
1407
|
-
k$5.defaultProps = a$
|
|
1408
|
-
const a$
|
|
1407
|
+
k$5.defaultProps = a$l;
|
|
1408
|
+
const a$k = {
|
|
1409
1409
|
className: "",
|
|
1410
1410
|
style: void 0,
|
|
1411
1411
|
name: "Image",
|
|
@@ -1414,7 +1414,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1414
1414
|
onClick: () => {
|
|
1415
1415
|
}
|
|
1416
1416
|
}, k$4 = (h) => {
|
|
1417
|
-
const { className: l2, style: d, name: c, color: m, width: p, height: f, onClick: r } = { ...a$
|
|
1417
|
+
const { className: l2, style: d, name: c, color: m, width: p, height: f, onClick: r } = { ...a$k, ...h }, g = (t) => {
|
|
1418
1418
|
r && r(t);
|
|
1419
1419
|
}, o = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
|
|
1420
1420
|
const t = "nut-icon";
|
|
@@ -1462,8 +1462,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1462
1462
|
}
|
|
1463
1463
|
) });
|
|
1464
1464
|
};
|
|
1465
|
-
k$4.defaultProps = a$
|
|
1466
|
-
const a$
|
|
1465
|
+
k$4.defaultProps = a$k;
|
|
1466
|
+
const a$j = {
|
|
1467
1467
|
className: "",
|
|
1468
1468
|
style: void 0,
|
|
1469
1469
|
name: "Issue",
|
|
@@ -1472,7 +1472,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1472
1472
|
onClick: () => {
|
|
1473
1473
|
}
|
|
1474
1474
|
}, x$8 = (h) => {
|
|
1475
|
-
const { className: o, style: m, name: s, color: d, width: p, height: f, onClick: r } = { ...a$
|
|
1475
|
+
const { className: o, style: m, name: s, color: d, width: p, height: f, onClick: r } = { ...a$j, ...h }, u = (t) => {
|
|
1476
1476
|
r && r(t);
|
|
1477
1477
|
}, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
|
|
1478
1478
|
const t = "nut-icon";
|
|
@@ -1509,8 +1509,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1509
1509
|
}
|
|
1510
1510
|
) });
|
|
1511
1511
|
};
|
|
1512
|
-
x$8.defaultProps = a$
|
|
1513
|
-
const a$
|
|
1512
|
+
x$8.defaultProps = a$j;
|
|
1513
|
+
const a$i = {
|
|
1514
1514
|
className: "",
|
|
1515
1515
|
style: void 0,
|
|
1516
1516
|
name: "JoySmile",
|
|
@@ -1519,7 +1519,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1519
1519
|
onClick: () => {
|
|
1520
1520
|
}
|
|
1521
1521
|
}, x$7 = (h) => {
|
|
1522
|
-
const { className: i, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$
|
|
1522
|
+
const { className: i, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$i, ...h }, g = (t) => {
|
|
1523
1523
|
r && r(t);
|
|
1524
1524
|
}, c = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
|
|
1525
1525
|
const t = "nut-icon";
|
|
@@ -1556,8 +1556,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1556
1556
|
}
|
|
1557
1557
|
) });
|
|
1558
1558
|
};
|
|
1559
|
-
x$7.defaultProps = a$
|
|
1560
|
-
const a$
|
|
1559
|
+
x$7.defaultProps = a$i;
|
|
1560
|
+
const a$h = {
|
|
1561
1561
|
className: "",
|
|
1562
1562
|
style: void 0,
|
|
1563
1563
|
name: "Left",
|
|
@@ -1565,8 +1565,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1565
1565
|
height: "",
|
|
1566
1566
|
onClick: () => {
|
|
1567
1567
|
}
|
|
1568
|
-
}, y$
|
|
1569
|
-
const { className: r, style: d, name: e, color: p, width: m, height: f, onClick: n } = { ...a$
|
|
1568
|
+
}, y$7 = (h) => {
|
|
1569
|
+
const { className: r, style: d, name: e, color: p, width: m, height: f, onClick: n } = { ...a$h, ...h }, g = (t) => {
|
|
1570
1570
|
n && n(t);
|
|
1571
1571
|
}, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
|
|
1572
1572
|
const t = "nut-icon";
|
|
@@ -1603,8 +1603,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1603
1603
|
}
|
|
1604
1604
|
) });
|
|
1605
1605
|
};
|
|
1606
|
-
y$
|
|
1607
|
-
const a$
|
|
1606
|
+
y$7.defaultProps = a$h;
|
|
1607
|
+
const a$g = {
|
|
1608
1608
|
className: "",
|
|
1609
1609
|
style: void 0,
|
|
1610
1610
|
name: "Link",
|
|
@@ -1613,7 +1613,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1613
1613
|
onClick: () => {
|
|
1614
1614
|
}
|
|
1615
1615
|
}, x$6 = (h) => {
|
|
1616
|
-
const { className: s, style: d, name: c, color: m, width: p, height: f, onClick: n } = { ...a$
|
|
1616
|
+
const { className: s, style: d, name: c, color: m, width: p, height: f, onClick: n } = { ...a$g, ...h }, g = (t) => {
|
|
1617
1617
|
n && n(t);
|
|
1618
1618
|
}, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", k2 = () => {
|
|
1619
1619
|
const t = "nut-icon";
|
|
@@ -1650,8 +1650,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1650
1650
|
}
|
|
1651
1651
|
) });
|
|
1652
1652
|
};
|
|
1653
|
-
x$6.defaultProps = a$
|
|
1654
|
-
const a$
|
|
1653
|
+
x$6.defaultProps = a$g;
|
|
1654
|
+
const a$f = {
|
|
1655
1655
|
className: "",
|
|
1656
1656
|
style: void 0,
|
|
1657
1657
|
name: "Loading",
|
|
@@ -1660,7 +1660,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1660
1660
|
onClick: () => {
|
|
1661
1661
|
}
|
|
1662
1662
|
}, k$3 = (h) => {
|
|
1663
|
-
const { className: l2, style: m, name: t, color: d, width: p, height: g, onClick: o } = { ...a$
|
|
1663
|
+
const { className: l2, style: m, name: t, color: d, width: p, height: g, onClick: o } = { ...a$f, ...h }, f = (c) => {
|
|
1664
1664
|
o && o(c);
|
|
1665
1665
|
}, n = (c) => c === "" ? "" : isNaN(Number(c)) ? String(c) : c + "px", z = () => {
|
|
1666
1666
|
const c = "nut-icon";
|
|
@@ -1697,7 +1697,54 @@ Check the top-level render call using <` + t + ">.");
|
|
|
1697
1697
|
}
|
|
1698
1698
|
) });
|
|
1699
1699
|
};
|
|
1700
|
-
k$3.defaultProps = a$
|
|
1700
|
+
k$3.defaultProps = a$f;
|
|
1701
|
+
const a$e = {
|
|
1702
|
+
className: "",
|
|
1703
|
+
style: void 0,
|
|
1704
|
+
name: "Loading1",
|
|
1705
|
+
width: "",
|
|
1706
|
+
height: "",
|
|
1707
|
+
onClick: () => {
|
|
1708
|
+
}
|
|
1709
|
+
}, y$6 = (h) => {
|
|
1710
|
+
const { className: o, style: d, name: e, color: p, width: m, height: g, onClick: n } = { ...a$e, ...h }, f = (t) => {
|
|
1711
|
+
n && n(t);
|
|
1712
|
+
}, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
|
|
1713
|
+
const t = "nut-icon";
|
|
1714
|
+
return classNames({
|
|
1715
|
+
[`${o}`]: o,
|
|
1716
|
+
[t]: true,
|
|
1717
|
+
[t + "-" + e]: e
|
|
1718
|
+
});
|
|
1719
|
+
}, s = {}, r = i(m || ""), l2 = i(g || "");
|
|
1720
|
+
r && (s.width = r), l2 && (s.height = l2);
|
|
1721
|
+
const w = () => ({
|
|
1722
|
+
...d,
|
|
1723
|
+
...s
|
|
1724
|
+
});
|
|
1725
|
+
return /* @__PURE__ */ cr(lr, { children: /* @__PURE__ */ cr(
|
|
1726
|
+
"svg",
|
|
1727
|
+
{
|
|
1728
|
+
className: u(),
|
|
1729
|
+
style: w(),
|
|
1730
|
+
onClick: f,
|
|
1731
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1732
|
+
color: p,
|
|
1733
|
+
viewBox: "0 0 1024 1024",
|
|
1734
|
+
"aria-labelledby": e,
|
|
1735
|
+
role: "presentation",
|
|
1736
|
+
children: /* @__PURE__ */ cr(
|
|
1737
|
+
"path",
|
|
1738
|
+
{
|
|
1739
|
+
d: "M520.665 64.564a29.244 29.244 0 0 0-7.071-.894c-16.211 0-29.35 13.14-29.35 29.35 0 15.83 12.538 28.696 28.223 29.293v.073c.375 0 .751-.014 1.127-.014 216.493 0 389.629 173.942 389.629 390.433 0 216.496-173.136 388.827-389.63 388.827s-389.63-172.333-389.63-388.829c0-.27.01-.536.01-.804h-.01c0-16.209-13.141-29.35-29.35-29.35s-29.35 13.139-29.35 29.35c0 .055.007.11.007.164-.001.214-.007.425-.007.64 0 247.609 200.722 448.331 448.33 448.331 247.607 0 448.33-200.722 448.33-448.33-.002-245.242-196.917-444.456-441.258-448.24z",
|
|
1740
|
+
fill: "currentColor",
|
|
1741
|
+
fillOpacity: "0.9"
|
|
1742
|
+
}
|
|
1743
|
+
)
|
|
1744
|
+
}
|
|
1745
|
+
) });
|
|
1746
|
+
};
|
|
1747
|
+
y$6.defaultProps = a$e;
|
|
1701
1748
|
const a$d = {
|
|
1702
1749
|
className: "",
|
|
1703
1750
|
style: void 0,
|
|
@@ -2409,7 +2456,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2409
2456
|
style: {}
|
|
2410
2457
|
};
|
|
2411
2458
|
const prefixCls$1 = "nut-button";
|
|
2412
|
-
const defaultProps$
|
|
2459
|
+
const defaultProps$1s = {
|
|
2413
2460
|
...ComponentDefaults,
|
|
2414
2461
|
color: "",
|
|
2415
2462
|
type: "default",
|
|
@@ -2443,7 +2490,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2443
2490
|
nativeType,
|
|
2444
2491
|
...rest
|
|
2445
2492
|
} = {
|
|
2446
|
-
...defaultProps$
|
|
2493
|
+
...defaultProps$1s,
|
|
2447
2494
|
...props
|
|
2448
2495
|
};
|
|
2449
2496
|
const getStyle = React.useCallback(() => {
|
|
@@ -2494,29 +2541,29 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2494
2541
|
}
|
|
2495
2542
|
);
|
|
2496
2543
|
Button.displayName = "NutButton";
|
|
2497
|
-
const defaultProps$
|
|
2544
|
+
const defaultProps$1r = {
|
|
2498
2545
|
...ComponentDefaults,
|
|
2499
2546
|
title: "",
|
|
2500
2547
|
description: "",
|
|
2501
2548
|
divider: true
|
|
2502
2549
|
};
|
|
2503
|
-
const classPrefix$
|
|
2550
|
+
const classPrefix$p = "nut-cell-group";
|
|
2504
2551
|
const CellGroup = (props) => {
|
|
2505
2552
|
const { children, className, style, title, description, divider, ...rest } = {
|
|
2506
|
-
...defaultProps$
|
|
2553
|
+
...defaultProps$1r,
|
|
2507
2554
|
...props
|
|
2508
2555
|
};
|
|
2509
|
-
return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix$
|
|
2556
|
+
return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix$p, className), ...rest }, title ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$p}__title` }, title) : null, description ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$p}__description` }, description) : null, /* @__PURE__ */ React.createElement(
|
|
2510
2557
|
"div",
|
|
2511
2558
|
{
|
|
2512
|
-
className: `${classPrefix$
|
|
2559
|
+
className: `${classPrefix$p}__wrap ${divider ? `${classPrefix$p}__wrap--divider` : ""}`
|
|
2513
2560
|
},
|
|
2514
2561
|
children
|
|
2515
2562
|
));
|
|
2516
2563
|
};
|
|
2517
|
-
CellGroup.defaultProps = defaultProps$
|
|
2564
|
+
CellGroup.defaultProps = defaultProps$1r;
|
|
2518
2565
|
CellGroup.displayName = "NutCellGroup";
|
|
2519
|
-
const defaultProps$
|
|
2566
|
+
const defaultProps$1q = {
|
|
2520
2567
|
...ComponentDefaults,
|
|
2521
2568
|
title: null,
|
|
2522
2569
|
description: null,
|
|
@@ -2526,7 +2573,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2526
2573
|
onClick: (event) => {
|
|
2527
2574
|
}
|
|
2528
2575
|
};
|
|
2529
|
-
const classPrefix$
|
|
2576
|
+
const classPrefix$o = "nut-cell";
|
|
2530
2577
|
const Cell = (props) => {
|
|
2531
2578
|
const {
|
|
2532
2579
|
children,
|
|
@@ -2540,7 +2587,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2540
2587
|
style,
|
|
2541
2588
|
...rest
|
|
2542
2589
|
} = {
|
|
2543
|
-
...defaultProps$
|
|
2590
|
+
...defaultProps$1q,
|
|
2544
2591
|
...props
|
|
2545
2592
|
};
|
|
2546
2593
|
const handleClick2 = (event) => {
|
|
@@ -2557,22 +2604,22 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2557
2604
|
return /* @__PURE__ */ React.createElement(
|
|
2558
2605
|
"div",
|
|
2559
2606
|
{
|
|
2560
|
-
className: classNames(classPrefix$
|
|
2607
|
+
className: classNames(classPrefix$o, className),
|
|
2561
2608
|
onClick: (event) => handleClick2(event),
|
|
2562
2609
|
style: baseStyle,
|
|
2563
2610
|
...rest
|
|
2564
2611
|
},
|
|
2565
|
-
children || /* @__PURE__ */ React.createElement(React.Fragment, null, title || description ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$
|
|
2612
|
+
children || /* @__PURE__ */ React.createElement(React.Fragment, null, title || description ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$o}__left` }, title ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$o}__title` }, title) : null, description ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$o}__description` }, description) : null) : null, extra ? /* @__PURE__ */ React.createElement(
|
|
2566
2613
|
"div",
|
|
2567
2614
|
{
|
|
2568
|
-
className: `${classPrefix$
|
|
2615
|
+
className: `${classPrefix$o}__extra`,
|
|
2569
2616
|
style: styles
|
|
2570
2617
|
},
|
|
2571
2618
|
extra
|
|
2572
|
-
) : null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$
|
|
2619
|
+
) : null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$o}__divider` }))
|
|
2573
2620
|
);
|
|
2574
2621
|
};
|
|
2575
|
-
Cell.defaultProps = defaultProps$
|
|
2622
|
+
Cell.defaultProps = defaultProps$1q;
|
|
2576
2623
|
Cell.displayName = "NutCell";
|
|
2577
2624
|
Cell.Group = CellGroup;
|
|
2578
2625
|
var INFINITY = 1 / 0;
|
|
@@ -3650,11 +3697,16 @@ Check the top-level render call using <` + t + ">.");
|
|
|
3650
3697
|
refreshingText: "加载中...",
|
|
3651
3698
|
completeText: "刷新成功"
|
|
3652
3699
|
},
|
|
3700
|
+
tour: {
|
|
3701
|
+
prevStepText: "上一步",
|
|
3702
|
+
completeText: "完成",
|
|
3703
|
+
nextStepText: "下一步"
|
|
3704
|
+
},
|
|
3653
3705
|
watermark: {
|
|
3654
3706
|
errorCanvasTips: "当前环境不支持Canvas"
|
|
3655
3707
|
}
|
|
3656
3708
|
};
|
|
3657
|
-
const classPrefix$
|
|
3709
|
+
const classPrefix$n = "nut-configprovider";
|
|
3658
3710
|
const defaultConfigRef = {
|
|
3659
3711
|
current: {
|
|
3660
3712
|
locale: zhCN
|
|
@@ -3695,7 +3747,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
3695
3747
|
return /* @__PURE__ */ React.createElement(ConfigContext.Provider, { value: mergedConfig }, /* @__PURE__ */ React.createElement(
|
|
3696
3748
|
"div",
|
|
3697
3749
|
{
|
|
3698
|
-
className: classNames(classPrefix$
|
|
3750
|
+
className: classNames(classPrefix$n, className),
|
|
3699
3751
|
style: {
|
|
3700
3752
|
...cssVarStyle,
|
|
3701
3753
|
...style
|
|
@@ -3708,7 +3760,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
3708
3760
|
const pxCheck = (value) => {
|
|
3709
3761
|
return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
3710
3762
|
};
|
|
3711
|
-
const defaultProps$
|
|
3763
|
+
const defaultProps$1p = {
|
|
3712
3764
|
...ComponentDefaults,
|
|
3713
3765
|
fit: "fill",
|
|
3714
3766
|
position: "center",
|
|
@@ -3719,7 +3771,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
3719
3771
|
loading: true,
|
|
3720
3772
|
lazy: false
|
|
3721
3773
|
};
|
|
3722
|
-
const classPrefix$
|
|
3774
|
+
const classPrefix$m = "nut-image";
|
|
3723
3775
|
const Image$1 = (props) => {
|
|
3724
3776
|
const {
|
|
3725
3777
|
className,
|
|
@@ -3737,7 +3789,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
3737
3789
|
onClick,
|
|
3738
3790
|
onLoad,
|
|
3739
3791
|
onError
|
|
3740
|
-
} = { ...defaultProps$
|
|
3792
|
+
} = { ...defaultProps$1p, ...props };
|
|
3741
3793
|
const [innerLoading, setInnerLoading] = React.useState(true);
|
|
3742
3794
|
const [isError, setIsError] = React.useState(false);
|
|
3743
3795
|
const imgRef = React.useRef(null);
|
|
@@ -3830,7 +3882,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
3830
3882
|
return /* @__PURE__ */ React.createElement(
|
|
3831
3883
|
"div",
|
|
3832
3884
|
{
|
|
3833
|
-
className: classNames(classPrefix$
|
|
3885
|
+
className: classNames(classPrefix$m, className),
|
|
3834
3886
|
style: containerStyle,
|
|
3835
3887
|
onClick: (e) => {
|
|
3836
3888
|
imageClick(e);
|
|
@@ -3864,7 +3916,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
3864
3916
|
renderErrorImg()
|
|
3865
3917
|
);
|
|
3866
3918
|
};
|
|
3867
|
-
Image$1.defaultProps = defaultProps$
|
|
3919
|
+
Image$1.defaultProps = defaultProps$1p;
|
|
3868
3920
|
Image$1.displayName = "NutImage";
|
|
3869
3921
|
function _extends$4() {
|
|
3870
3922
|
_extends$4 = Object.assign ? Object.assign.bind() : function(target) {
|
|
@@ -5689,7 +5741,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5689
5741
|
Overlay.defaultProps = defaultOverlayProps;
|
|
5690
5742
|
Overlay.displayName = "NutOverlay";
|
|
5691
5743
|
const DataContext$2 = React.createContext({});
|
|
5692
|
-
const defaultProps$
|
|
5744
|
+
const defaultProps$1o = {
|
|
5693
5745
|
...ComponentDefaults,
|
|
5694
5746
|
span: "24",
|
|
5695
5747
|
offset: "0",
|
|
@@ -5697,7 +5749,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5697
5749
|
};
|
|
5698
5750
|
const Col = (props) => {
|
|
5699
5751
|
const { className, style, span, offset, children, onClick } = {
|
|
5700
|
-
...defaultProps$
|
|
5752
|
+
...defaultProps$1o,
|
|
5701
5753
|
...props
|
|
5702
5754
|
};
|
|
5703
5755
|
const [colName, setColName] = React.useState("");
|
|
@@ -5729,39 +5781,39 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5729
5781
|
children
|
|
5730
5782
|
);
|
|
5731
5783
|
};
|
|
5732
|
-
Col.defaultProps = defaultProps$
|
|
5784
|
+
Col.defaultProps = defaultProps$1o;
|
|
5733
5785
|
Col.displayName = "NutCol";
|
|
5734
|
-
const defaultProps$
|
|
5786
|
+
const defaultProps$1n = {
|
|
5735
5787
|
...ComponentDefaults,
|
|
5736
5788
|
contentPosition: "center",
|
|
5737
5789
|
direction: "horizontal"
|
|
5738
5790
|
};
|
|
5739
|
-
const classPrefix$
|
|
5791
|
+
const classPrefix$l = `nut-divider`;
|
|
5740
5792
|
const Divider = (props) => {
|
|
5741
5793
|
const { children, contentPosition, style, className, direction, ...rest } = {
|
|
5742
|
-
...defaultProps$
|
|
5794
|
+
...defaultProps$1n,
|
|
5743
5795
|
...props
|
|
5744
5796
|
};
|
|
5745
5797
|
const classes = direction === "horizontal" ? classNames({
|
|
5746
|
-
[`${classPrefix$
|
|
5747
|
-
[`${classPrefix$
|
|
5748
|
-
[`${classPrefix$
|
|
5749
|
-
[`${classPrefix$
|
|
5750
|
-
[`${classPrefix$
|
|
5798
|
+
[`${classPrefix$l}`]: true,
|
|
5799
|
+
[`${classPrefix$l}__center`]: children,
|
|
5800
|
+
[`${classPrefix$l}__left`]: contentPosition === "left",
|
|
5801
|
+
[`${classPrefix$l}__right`]: contentPosition === "right",
|
|
5802
|
+
[`${classPrefix$l}__hairline`]: true
|
|
5751
5803
|
}) : classNames({
|
|
5752
|
-
[`${classPrefix$
|
|
5753
|
-
[`${classPrefix$
|
|
5804
|
+
[`${classPrefix$l}`]: true,
|
|
5805
|
+
[`${classPrefix$l}__vertical`]: direction === "vertical"
|
|
5754
5806
|
});
|
|
5755
5807
|
return /* @__PURE__ */ React.createElement("div", { className: `${classes} ${className || ""}`, style, ...rest }, children);
|
|
5756
5808
|
};
|
|
5757
|
-
Divider.defaultProps = defaultProps$
|
|
5809
|
+
Divider.defaultProps = defaultProps$1n;
|
|
5758
5810
|
Divider.displayName = "NutDivider";
|
|
5759
5811
|
const gridContext = {
|
|
5760
5812
|
onClick: (item, index) => {
|
|
5761
5813
|
}
|
|
5762
5814
|
};
|
|
5763
5815
|
const GridContext = React.createContext(gridContext);
|
|
5764
|
-
const defaultProps$
|
|
5816
|
+
const defaultProps$1m = {
|
|
5765
5817
|
text: "",
|
|
5766
5818
|
columns: 4,
|
|
5767
5819
|
gap: 0,
|
|
@@ -5787,7 +5839,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5787
5839
|
onClick,
|
|
5788
5840
|
...rest
|
|
5789
5841
|
} = {
|
|
5790
|
-
...defaultProps$
|
|
5842
|
+
...defaultProps$1m,
|
|
5791
5843
|
...props
|
|
5792
5844
|
};
|
|
5793
5845
|
const classPrefix2 = "nut-grid-item";
|
|
@@ -5845,9 +5897,9 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5845
5897
|
/* @__PURE__ */ React.createElement("div", { className: contentClass() }, children && /* @__PURE__ */ React.createElement(React.Fragment, null, children), text && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__text` }, text))
|
|
5846
5898
|
);
|
|
5847
5899
|
};
|
|
5848
|
-
GridItem.defaultProps = defaultProps$
|
|
5900
|
+
GridItem.defaultProps = defaultProps$1m;
|
|
5849
5901
|
GridItem.displayName = "NutGridItem";
|
|
5850
|
-
const defaultProps$
|
|
5902
|
+
const defaultProps$1l = {
|
|
5851
5903
|
columns: 4,
|
|
5852
5904
|
gap: 0,
|
|
5853
5905
|
center: true,
|
|
@@ -5868,7 +5920,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5868
5920
|
className,
|
|
5869
5921
|
onClick,
|
|
5870
5922
|
...rest
|
|
5871
|
-
} = { ...defaultProps$
|
|
5923
|
+
} = { ...defaultProps$1l, ...props };
|
|
5872
5924
|
const childrenDom = React.Children.toArray(children);
|
|
5873
5925
|
const classPrefix2 = "nut-grid";
|
|
5874
5926
|
const rootClass = () => {
|
|
@@ -5898,18 +5950,18 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5898
5950
|
});
|
|
5899
5951
|
})));
|
|
5900
5952
|
};
|
|
5901
|
-
Grid.defaultProps = defaultProps$
|
|
5953
|
+
Grid.defaultProps = defaultProps$1l;
|
|
5902
5954
|
Grid.displayName = "NutGrid";
|
|
5903
5955
|
Grid.Item = GridItem;
|
|
5904
|
-
const defaultProps$
|
|
5956
|
+
const defaultProps$1k = {};
|
|
5905
5957
|
const Layout = (props) => {
|
|
5906
|
-
({ ...defaultProps$
|
|
5958
|
+
({ ...defaultProps$1k, ...props });
|
|
5907
5959
|
return /* @__PURE__ */ React.createElement("div", { className: "nut-layout" }, "Layout");
|
|
5908
5960
|
};
|
|
5909
|
-
Layout.defaultProps = defaultProps$
|
|
5961
|
+
Layout.defaultProps = defaultProps$1k;
|
|
5910
5962
|
Layout.displayName = "NutLayout";
|
|
5911
|
-
const classPrefix$
|
|
5912
|
-
const defaultProps$
|
|
5963
|
+
const classPrefix$k = "nut-row";
|
|
5964
|
+
const defaultProps$1j = {
|
|
5913
5965
|
...ComponentDefaults,
|
|
5914
5966
|
type: "",
|
|
5915
5967
|
justify: "start",
|
|
@@ -5929,7 +5981,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5929
5981
|
gutter,
|
|
5930
5982
|
onClick
|
|
5931
5983
|
} = {
|
|
5932
|
-
...defaultProps$
|
|
5984
|
+
...defaultProps$1j,
|
|
5933
5985
|
...props
|
|
5934
5986
|
};
|
|
5935
5987
|
const getClass = (prefix2, type22) => {
|
|
@@ -5943,7 +5995,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5943
5995
|
${getClass("justify", justify)}
|
|
5944
5996
|
${getClass("align", align)}
|
|
5945
5997
|
${getClass("flex", wrap)}
|
|
5946
|
-
${classPrefix$
|
|
5998
|
+
${classPrefix$k}
|
|
5947
5999
|
`;
|
|
5948
6000
|
};
|
|
5949
6001
|
const parentRow = {
|
|
@@ -5961,15 +6013,15 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5961
6013
|
children
|
|
5962
6014
|
));
|
|
5963
6015
|
};
|
|
5964
|
-
Row.defaultProps = defaultProps$
|
|
6016
|
+
Row.defaultProps = defaultProps$1j;
|
|
5965
6017
|
Row.displayName = "NutRow";
|
|
5966
6018
|
const prefixCls = "nut-space";
|
|
5967
|
-
const defaultProps$
|
|
6019
|
+
const defaultProps$1i = {
|
|
5968
6020
|
direction: "horizontal"
|
|
5969
6021
|
};
|
|
5970
6022
|
const Space = (props) => {
|
|
5971
6023
|
const { className, style, children, wrap, align, direction, justify } = {
|
|
5972
|
-
...defaultProps$
|
|
6024
|
+
...defaultProps$1i,
|
|
5973
6025
|
...props
|
|
5974
6026
|
};
|
|
5975
6027
|
const cls = classNames(
|
|
@@ -5984,7 +6036,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5984
6036
|
return child !== null && child !== void 0 && /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-item` }, child);
|
|
5985
6037
|
}));
|
|
5986
6038
|
};
|
|
5987
|
-
Space.defaultProps = defaultProps$
|
|
6039
|
+
Space.defaultProps = defaultProps$1i;
|
|
5988
6040
|
Space.displayName = "NutSpace";
|
|
5989
6041
|
const canUseDom = !!(typeof window !== "undefined" && typeof document !== "undefined" && window.document && window.document.createElement);
|
|
5990
6042
|
const defaultRoot = canUseDom ? window : void 0;
|
|
@@ -6059,13 +6111,13 @@ Check the top-level render call using <` + t + ">.");
|
|
|
6059
6111
|
stop2.current = true;
|
|
6060
6112
|
};
|
|
6061
6113
|
}
|
|
6062
|
-
const defaultProps$
|
|
6114
|
+
const defaultProps$1h = {
|
|
6063
6115
|
...ComponentDefaults,
|
|
6064
6116
|
position: "top",
|
|
6065
6117
|
threshold: 0,
|
|
6066
6118
|
zIndex: 2e3
|
|
6067
6119
|
};
|
|
6068
|
-
const classPrefix$
|
|
6120
|
+
const classPrefix$j = "nut-sticky";
|
|
6069
6121
|
const Sticky = (props) => {
|
|
6070
6122
|
const {
|
|
6071
6123
|
position,
|
|
@@ -6077,7 +6129,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
6077
6129
|
threshold,
|
|
6078
6130
|
onChange,
|
|
6079
6131
|
...rest
|
|
6080
|
-
} = { ...defaultProps$
|
|
6132
|
+
} = { ...defaultProps$1h, ...props };
|
|
6081
6133
|
const stickyRef = React.useRef(null);
|
|
6082
6134
|
const rootRef = React.useRef(null);
|
|
6083
6135
|
const [isFixed, setIsFixed] = React.useState(false);
|
|
@@ -6187,15 +6239,15 @@ Check the top-level render call using <` + t + ">.");
|
|
|
6187
6239
|
{
|
|
6188
6240
|
ref: rootRef,
|
|
6189
6241
|
style: { ...style, ...rootStyle },
|
|
6190
|
-
className: classNames(classPrefix$
|
|
6242
|
+
className: classNames(classPrefix$j, className),
|
|
6191
6243
|
...rest
|
|
6192
6244
|
},
|
|
6193
6245
|
/* @__PURE__ */ React.createElement("div", { className: "nut-sticky--box", ref: stickyRef, style: stickyStyle }, children)
|
|
6194
6246
|
);
|
|
6195
6247
|
};
|
|
6196
|
-
Sticky.defaultProps = defaultProps$
|
|
6248
|
+
Sticky.defaultProps = defaultProps$1h;
|
|
6197
6249
|
Sticky.displayName = "NutSticky";
|
|
6198
|
-
const defaultProps$
|
|
6250
|
+
const defaultProps$1g = {
|
|
6199
6251
|
...ComponentDefaults,
|
|
6200
6252
|
target: "",
|
|
6201
6253
|
threshold: 200,
|
|
@@ -6213,7 +6265,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
6213
6265
|
style,
|
|
6214
6266
|
onClick
|
|
6215
6267
|
} = {
|
|
6216
|
-
...defaultProps$
|
|
6268
|
+
...defaultProps$1g,
|
|
6217
6269
|
...props
|
|
6218
6270
|
};
|
|
6219
6271
|
const classPrefix2 = "nut-backtop";
|
|
@@ -6311,7 +6363,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
6311
6363
|
children || /* @__PURE__ */ React.createElement(y$2, { width: 19, height: 19, className: "nut-backtop-main" })
|
|
6312
6364
|
);
|
|
6313
6365
|
};
|
|
6314
|
-
BackTop.defaultProps = defaultProps$
|
|
6366
|
+
BackTop.defaultProps = defaultProps$1g;
|
|
6315
6367
|
BackTop.displayName = "NutBackTop";
|
|
6316
6368
|
function clamp$1(v, min, max) {
|
|
6317
6369
|
return Math.max(min, Math.min(v, max));
|
|
@@ -11429,7 +11481,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11429
11481
|
});
|
|
11430
11482
|
const animated = host.animated;
|
|
11431
11483
|
const elevatorContext = React.createContext({});
|
|
11432
|
-
const defaultProps$
|
|
11484
|
+
const defaultProps$1f = {
|
|
11433
11485
|
...ComponentDefaults,
|
|
11434
11486
|
height: "200px",
|
|
11435
11487
|
floorKey: "title",
|
|
@@ -11455,7 +11507,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11455
11507
|
children,
|
|
11456
11508
|
...rest
|
|
11457
11509
|
} = {
|
|
11458
|
-
...defaultProps$
|
|
11510
|
+
...defaultProps$1f,
|
|
11459
11511
|
...props
|
|
11460
11512
|
};
|
|
11461
11513
|
const classPrefix2 = "nut-elevator";
|
|
@@ -11507,7 +11559,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11507
11559
|
cacheIndex = 0;
|
|
11508
11560
|
}
|
|
11509
11561
|
if (index > state.current.listHeight.length - 2) {
|
|
11510
|
-
cacheIndex = state.current.listHeight.length - 2;
|
|
11562
|
+
cacheIndex = Math.max(0, state.current.listHeight.length - 2);
|
|
11511
11563
|
}
|
|
11512
11564
|
setCodeIndex(cacheIndex);
|
|
11513
11565
|
if (listview.current) {
|
|
@@ -11630,10 +11682,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11630
11682
|
})
|
|
11631
11683
|
))) : null);
|
|
11632
11684
|
};
|
|
11633
|
-
Elevator.defaultProps = defaultProps$
|
|
11685
|
+
Elevator.defaultProps = defaultProps$1f;
|
|
11634
11686
|
Elevator.displayName = "NutElevator";
|
|
11635
11687
|
Elevator.Context = elevatorContext;
|
|
11636
|
-
const defaultProps$
|
|
11688
|
+
const defaultProps$1e = {
|
|
11637
11689
|
...ComponentDefaults,
|
|
11638
11690
|
activeText: "",
|
|
11639
11691
|
inactiveText: "",
|
|
@@ -11661,7 +11713,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11661
11713
|
content,
|
|
11662
11714
|
...rest
|
|
11663
11715
|
} = {
|
|
11664
|
-
...defaultProps$
|
|
11716
|
+
...defaultProps$1e,
|
|
11665
11717
|
...props
|
|
11666
11718
|
};
|
|
11667
11719
|
const classPrefix2 = "nut-fixednav";
|
|
@@ -11710,12 +11762,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11710
11762
|
item.num && /* @__PURE__ */ React.createElement("div", { className: "b" }, item.num)
|
|
11711
11763
|
);
|
|
11712
11764
|
}))),
|
|
11713
|
-
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__btn`, onClick: () => onUpdateValue() }, content || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(y$
|
|
11765
|
+
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__btn`, onClick: () => onUpdateValue() }, content || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(y$7, { color: "#fff" }), /* @__PURE__ */ React.createElement("div", { className: "text" }, visible ? activeText || locale.fixednav.activeText : inactiveText || locale.fixednav.inactiveText)))
|
|
11714
11766
|
);
|
|
11715
11767
|
};
|
|
11716
|
-
FixedNav.defaultProps = defaultProps$
|
|
11768
|
+
FixedNav.defaultProps = defaultProps$1e;
|
|
11717
11769
|
FixedNav.displayName = "NutFixedNav";
|
|
11718
|
-
const defaultProps$
|
|
11770
|
+
const defaultProps$1d = {
|
|
11719
11771
|
...ComponentDefaults,
|
|
11720
11772
|
left: "",
|
|
11721
11773
|
right: "",
|
|
@@ -11738,7 +11790,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11738
11790
|
zIndex,
|
|
11739
11791
|
onBackClick
|
|
11740
11792
|
} = {
|
|
11741
|
-
...defaultProps$
|
|
11793
|
+
...defaultProps$1d,
|
|
11742
11794
|
...props
|
|
11743
11795
|
};
|
|
11744
11796
|
const classPrefix2 = "nut-navbar";
|
|
@@ -11775,9 +11827,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11775
11827
|
const cls = classNames(classPrefix2, classes, className);
|
|
11776
11828
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, fixed && placeholder ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}--placeholder` }, renderWrapper()) : renderWrapper());
|
|
11777
11829
|
};
|
|
11778
|
-
NavBar.defaultProps = defaultProps$
|
|
11830
|
+
NavBar.defaultProps = defaultProps$1d;
|
|
11779
11831
|
NavBar.displayName = "NutNavBar";
|
|
11780
|
-
const defaultProps$
|
|
11832
|
+
const defaultProps$1c = {
|
|
11781
11833
|
...ComponentDefaults,
|
|
11782
11834
|
position: "center",
|
|
11783
11835
|
transition: "",
|
|
@@ -11829,7 +11881,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11829
11881
|
afterShow,
|
|
11830
11882
|
afterClose,
|
|
11831
11883
|
onClick
|
|
11832
|
-
} = { ...defaultProps$
|
|
11884
|
+
} = { ...defaultProps$1c, ...props };
|
|
11833
11885
|
const [index, setIndex] = React.useState(zIndex || _zIndex);
|
|
11834
11886
|
const [innerVisible, setInnerVisible] = React.useState(visible);
|
|
11835
11887
|
const [showChildren, setShowChildren] = React.useState(true);
|
|
@@ -11955,7 +12007,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11955
12007
|
}, [position, transition]);
|
|
11956
12008
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, renderToContainer(portal, renderNode()));
|
|
11957
12009
|
};
|
|
11958
|
-
Popup.defaultProps = defaultProps$
|
|
12010
|
+
Popup.defaultProps = defaultProps$1c;
|
|
11959
12011
|
Popup.displayName = "NutPopup";
|
|
11960
12012
|
const handleClick = (e) => {
|
|
11961
12013
|
e.stopPropagation();
|
|
@@ -11971,7 +12023,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11971
12023
|
}
|
|
11972
12024
|
};
|
|
11973
12025
|
const OffsetContext = React.createContext(20);
|
|
11974
|
-
const defaultProps$
|
|
12026
|
+
const defaultProps$1b = {
|
|
11975
12027
|
...ComponentDefaults,
|
|
11976
12028
|
position: "left",
|
|
11977
12029
|
width: "80%"
|
|
@@ -11988,7 +12040,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11988
12040
|
onClose,
|
|
11989
12041
|
...rest
|
|
11990
12042
|
} = {
|
|
11991
|
-
...defaultProps$
|
|
12043
|
+
...defaultProps$1b,
|
|
11992
12044
|
...props
|
|
11993
12045
|
};
|
|
11994
12046
|
const indent = props.indent ? Number(props.indent) : 20;
|
|
@@ -12020,7 +12072,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12020
12072
|
)))
|
|
12021
12073
|
);
|
|
12022
12074
|
};
|
|
12023
|
-
SideNavBar.defaultProps = defaultProps$
|
|
12075
|
+
SideNavBar.defaultProps = defaultProps$1b;
|
|
12024
12076
|
SideNavBar.displayName = "NutSideNavBar";
|
|
12025
12077
|
const SideNavBarItem = (props) => {
|
|
12026
12078
|
const classPrefix2 = "nut-subsidenavbar";
|
|
@@ -12039,13 +12091,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12039
12091
|
title
|
|
12040
12092
|
);
|
|
12041
12093
|
};
|
|
12042
|
-
const defaultProps$
|
|
12094
|
+
const defaultProps$1a = {
|
|
12043
12095
|
open: true
|
|
12044
12096
|
};
|
|
12045
12097
|
const SubSideNavBar = (props) => {
|
|
12046
12098
|
const classPrefix2 = "nut-subsidenavbar";
|
|
12047
12099
|
const { title, value, children, onClick, open, ...rest } = {
|
|
12048
|
-
...defaultProps$
|
|
12100
|
+
...defaultProps$1a,
|
|
12049
12101
|
...props
|
|
12050
12102
|
};
|
|
12051
12103
|
const offset = React.useContext(OffsetContext);
|
|
@@ -12122,7 +12174,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12122
12174
|
);
|
|
12123
12175
|
return [stateRef.current, setState];
|
|
12124
12176
|
}
|
|
12125
|
-
const defaultProps$
|
|
12177
|
+
const defaultProps$19 = {
|
|
12126
12178
|
...ComponentDefaults,
|
|
12127
12179
|
value: "",
|
|
12128
12180
|
dot: false,
|
|
@@ -12133,7 +12185,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12133
12185
|
};
|
|
12134
12186
|
const Badge = (props) => {
|
|
12135
12187
|
const { className, style, value, max, children, dot, top, right, color } = {
|
|
12136
|
-
...defaultProps$
|
|
12188
|
+
...defaultProps$19,
|
|
12137
12189
|
...props
|
|
12138
12190
|
};
|
|
12139
12191
|
const classPrefix2 = "nut-badge";
|
|
@@ -12160,9 +12212,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12160
12212
|
};
|
|
12161
12213
|
return /* @__PURE__ */ React.createElement("div", { className: classes, style }, typeof value === "object" && value && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__icon` }, value), /* @__PURE__ */ React.createElement("div", null, children), /* @__PURE__ */ React.createElement("div", { className: contentClasses, style: getStyle() }, content()));
|
|
12162
12214
|
};
|
|
12163
|
-
Badge.defaultProps = defaultProps$
|
|
12215
|
+
Badge.defaultProps = defaultProps$19;
|
|
12164
12216
|
Badge.displayName = "NutBadge";
|
|
12165
|
-
const defaultProps$
|
|
12217
|
+
const defaultProps$18 = {
|
|
12166
12218
|
...ComponentDefaults,
|
|
12167
12219
|
title: "",
|
|
12168
12220
|
icon: null,
|
|
@@ -12189,9 +12241,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12189
12241
|
max,
|
|
12190
12242
|
top,
|
|
12191
12243
|
right,
|
|
12192
|
-
handleClick: handleClick2
|
|
12244
|
+
handleClick: handleClick2,
|
|
12245
|
+
...rest
|
|
12193
12246
|
} = {
|
|
12194
|
-
...defaultProps$
|
|
12247
|
+
...defaultProps$18,
|
|
12195
12248
|
...props
|
|
12196
12249
|
};
|
|
12197
12250
|
const classPrefix2 = "nut-tabbar-item";
|
|
@@ -12218,12 +12271,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12218
12271
|
color: active ? activeColor : inactiveColor,
|
|
12219
12272
|
...style
|
|
12220
12273
|
},
|
|
12221
|
-
onClick: () => handleClick2(index)
|
|
12274
|
+
onClick: () => handleClick2(index),
|
|
12275
|
+
...rest
|
|
12222
12276
|
},
|
|
12223
12277
|
icon ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Badge, { ...badgeProps }, /* @__PURE__ */ React.createElement("div", { className: boxPrefix }, icon)), /* @__PURE__ */ React.createElement("div", { className: titleClass }, title)) : /* @__PURE__ */ React.createElement(Badge, { ...badgeProps }, /* @__PURE__ */ React.createElement("div", { className: titleClass }, title))
|
|
12224
12278
|
);
|
|
12225
12279
|
};
|
|
12226
|
-
const defaultProps$
|
|
12280
|
+
const defaultProps$17 = {
|
|
12227
12281
|
...ComponentDefaults,
|
|
12228
12282
|
defaultValue: 0,
|
|
12229
12283
|
fixed: false,
|
|
@@ -12246,7 +12300,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12246
12300
|
style,
|
|
12247
12301
|
onSwitch
|
|
12248
12302
|
} = {
|
|
12249
|
-
...defaultProps$
|
|
12303
|
+
...defaultProps$17,
|
|
12250
12304
|
...props
|
|
12251
12305
|
};
|
|
12252
12306
|
const classPrefix2 = "nut-tabbar";
|
|
@@ -12281,17 +12335,17 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12281
12335
|
(fixed || safeArea) && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__safe-area` })
|
|
12282
12336
|
);
|
|
12283
12337
|
};
|
|
12284
|
-
Tabbar.defaultProps = defaultProps$
|
|
12338
|
+
Tabbar.defaultProps = defaultProps$17;
|
|
12285
12339
|
Tabbar.displayName = "NutTabbar";
|
|
12286
12340
|
Tabbar.Item = TabbarItem;
|
|
12287
|
-
const defaultProps$
|
|
12341
|
+
const defaultProps$16 = {
|
|
12288
12342
|
title: "",
|
|
12289
12343
|
value: "",
|
|
12290
12344
|
disabled: false
|
|
12291
12345
|
};
|
|
12292
12346
|
const TabPane = (props) => {
|
|
12293
12347
|
const { children, autoHeightClassName, className, disabled } = {
|
|
12294
|
-
...defaultProps$
|
|
12348
|
+
...defaultProps$16,
|
|
12295
12349
|
...props
|
|
12296
12350
|
};
|
|
12297
12351
|
const classPrefix2 = "nut-tabpane";
|
|
@@ -12317,7 +12371,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12317
12371
|
};
|
|
12318
12372
|
}
|
|
12319
12373
|
const requestAniFrame$1 = requestAniFrame();
|
|
12320
|
-
const defaultProps$
|
|
12374
|
+
const defaultProps$15 = {
|
|
12321
12375
|
...ComponentDefaults,
|
|
12322
12376
|
tabStyle: {},
|
|
12323
12377
|
activeColor: "",
|
|
@@ -12326,7 +12380,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12326
12380
|
duration: 300,
|
|
12327
12381
|
autoHeight: false
|
|
12328
12382
|
};
|
|
12329
|
-
const classPrefix$
|
|
12383
|
+
const classPrefix$i = "nut-tabs";
|
|
12330
12384
|
const Tabs = (props) => {
|
|
12331
12385
|
const {
|
|
12332
12386
|
activeColor,
|
|
@@ -12343,7 +12397,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12343
12397
|
autoHeight,
|
|
12344
12398
|
...rest
|
|
12345
12399
|
} = {
|
|
12346
|
-
...defaultProps$
|
|
12400
|
+
...defaultProps$15,
|
|
12347
12401
|
...props
|
|
12348
12402
|
};
|
|
12349
12403
|
const [value, setValue] = usePropsValue({
|
|
@@ -12420,14 +12474,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12420
12474
|
}
|
|
12421
12475
|
}, [children]);
|
|
12422
12476
|
const classes = classNames(
|
|
12423
|
-
classPrefix$
|
|
12424
|
-
`${classPrefix$
|
|
12477
|
+
classPrefix$i,
|
|
12478
|
+
`${classPrefix$i}--${direction}`,
|
|
12425
12479
|
className
|
|
12426
12480
|
);
|
|
12427
|
-
const classesTitle = classNames(`${classPrefix$
|
|
12428
|
-
[`${classPrefix$
|
|
12429
|
-
[`${classPrefix$
|
|
12430
|
-
[`${classPrefix$
|
|
12481
|
+
const classesTitle = classNames(`${classPrefix$i}__titles`, {
|
|
12482
|
+
[`${classPrefix$i}__titles--${activeType}`]: activeType,
|
|
12483
|
+
[`${classPrefix$i}__titles--scrollable`]: true,
|
|
12484
|
+
[`${classPrefix$i}__titles--${align}`]: align
|
|
12431
12485
|
});
|
|
12432
12486
|
const tabsActiveStyle = {
|
|
12433
12487
|
color: activeType === "smile" ? activeColor : "",
|
|
@@ -12457,7 +12511,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12457
12511
|
onClick: () => {
|
|
12458
12512
|
tabChange(item);
|
|
12459
12513
|
},
|
|
12460
|
-
className: classNames(`${classPrefix$
|
|
12514
|
+
className: classNames(`${classPrefix$i}__titles-item`, {
|
|
12461
12515
|
[`nut-tabs__titles-item--active`]: !item.disabled && String(item.value) === String(value),
|
|
12462
12516
|
[`nut-tabs__titles-item--disabled`]: item.disabled,
|
|
12463
12517
|
[`nut-tabs__titles-item--${align}`]: align
|
|
@@ -12468,14 +12522,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12468
12522
|
activeType === "line" && /* @__PURE__ */ React.createElement(
|
|
12469
12523
|
"div",
|
|
12470
12524
|
{
|
|
12471
|
-
className: `${classPrefix$
|
|
12525
|
+
className: `${classPrefix$i}__titles-item__line`,
|
|
12472
12526
|
style: tabsActiveStyle
|
|
12473
12527
|
}
|
|
12474
12528
|
),
|
|
12475
12529
|
activeType === "smile" && /* @__PURE__ */ React.createElement(
|
|
12476
12530
|
"div",
|
|
12477
12531
|
{
|
|
12478
|
-
className: `${classPrefix$
|
|
12532
|
+
className: `${classPrefix$i}__titles-item__smile`,
|
|
12479
12533
|
style: tabsActiveStyle
|
|
12480
12534
|
},
|
|
12481
12535
|
/* @__PURE__ */ React.createElement(x$7, { color: activeColor, width: 40, height: 20 })
|
|
@@ -12487,13 +12541,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12487
12541
|
{
|
|
12488
12542
|
ellipsis: true
|
|
12489
12543
|
},
|
|
12490
|
-
`${classPrefix$
|
|
12544
|
+
`${classPrefix$i}__titles-item__text`
|
|
12491
12545
|
)
|
|
12492
12546
|
},
|
|
12493
12547
|
item.title
|
|
12494
12548
|
)
|
|
12495
12549
|
);
|
|
12496
|
-
})), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$
|
|
12550
|
+
})), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$i}__content__wrap` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$i}__content`, style: contentStyle }, React.Children.map(children, (child, idx) => {
|
|
12497
12551
|
if (!React.isValidElement(child)) {
|
|
12498
12552
|
return null;
|
|
12499
12553
|
}
|
|
@@ -12510,7 +12564,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12510
12564
|
return React.cloneElement(child, childProps);
|
|
12511
12565
|
}))));
|
|
12512
12566
|
};
|
|
12513
|
-
Tabs.defaultProps = defaultProps$
|
|
12567
|
+
Tabs.defaultProps = defaultProps$15;
|
|
12514
12568
|
Tabs.displayName = "NutTabs";
|
|
12515
12569
|
Tabs.TabPane = TabPane;
|
|
12516
12570
|
const formatTree = (tree, parent, config2) => tree.map((node) => {
|
|
@@ -12649,7 +12703,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12649
12703
|
}
|
|
12650
12704
|
}
|
|
12651
12705
|
const Tree$1 = Tree;
|
|
12652
|
-
const defaultProps$
|
|
12706
|
+
const defaultProps$14 = {
|
|
12653
12707
|
...ComponentDefaults,
|
|
12654
12708
|
activeColor: "",
|
|
12655
12709
|
activeIcon: "checklist",
|
|
@@ -12692,7 +12746,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12692
12746
|
onClose,
|
|
12693
12747
|
onChange,
|
|
12694
12748
|
onPathChange
|
|
12695
|
-
} = { ...defaultProps$
|
|
12749
|
+
} = { ...defaultProps$14, ...props };
|
|
12696
12750
|
const [tabvalue, setTabvalue] = React.useState("c1");
|
|
12697
12751
|
const [optionsData, setOptionsData] = React.useState([]);
|
|
12698
12752
|
const isLazy = () => state.configs.lazy && Boolean(state.configs.onLoad);
|
|
@@ -12988,9 +13042,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12988
13042
|
) : renderTabs());
|
|
12989
13043
|
};
|
|
12990
13044
|
const Cascader = React.forwardRef(InternalCascader);
|
|
12991
|
-
Cascader.defaultProps = defaultProps$
|
|
13045
|
+
Cascader.defaultProps = defaultProps$14;
|
|
12992
13046
|
Cascader.displayName = "NutCascader";
|
|
12993
|
-
const defaultProps$
|
|
13047
|
+
const defaultProps$13 = {
|
|
12994
13048
|
...ComponentDefaults,
|
|
12995
13049
|
visible: false,
|
|
12996
13050
|
type: "custom",
|
|
@@ -13017,7 +13071,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13017
13071
|
onPathChange,
|
|
13018
13072
|
...rest
|
|
13019
13073
|
} = {
|
|
13020
|
-
...defaultProps$
|
|
13074
|
+
...defaultProps$13,
|
|
13021
13075
|
...props
|
|
13022
13076
|
};
|
|
13023
13077
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, type2 === "custom" && /* @__PURE__ */ React.createElement(
|
|
@@ -13042,7 +13096,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13042
13096
|
}
|
|
13043
13097
|
));
|
|
13044
13098
|
};
|
|
13045
|
-
const defaultProps$
|
|
13099
|
+
const defaultProps$12 = {
|
|
13046
13100
|
type: "custom",
|
|
13047
13101
|
existList: [],
|
|
13048
13102
|
defaultIcon: null,
|
|
@@ -13061,7 +13115,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13061
13115
|
onSelect,
|
|
13062
13116
|
onSwitch,
|
|
13063
13117
|
...rest
|
|
13064
|
-
} = { ...defaultProps$
|
|
13118
|
+
} = { ...defaultProps$12, ...props };
|
|
13065
13119
|
const classPrefix2 = "nut-address";
|
|
13066
13120
|
const selectedExist = (item) => {
|
|
13067
13121
|
existList.forEach((list, index) => {
|
|
@@ -13086,7 +13140,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13086
13140
|
);
|
|
13087
13141
|
})), (custom || custom && locale.address.chooseAnotherAddress) && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer`, onClick }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer-btn` }, custom)));
|
|
13088
13142
|
};
|
|
13089
|
-
const defaultProps
|
|
13143
|
+
const defaultProps$11 = {
|
|
13090
13144
|
...ComponentDefaults,
|
|
13091
13145
|
defaultValue: [],
|
|
13092
13146
|
type: "custom",
|
|
@@ -13128,7 +13182,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13128
13182
|
className,
|
|
13129
13183
|
...rest
|
|
13130
13184
|
} = {
|
|
13131
|
-
...defaultProps
|
|
13185
|
+
...defaultProps$11,
|
|
13132
13186
|
...props
|
|
13133
13187
|
};
|
|
13134
13188
|
const classPrefix2 = "nut-address";
|
|
@@ -13153,7 +13207,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13153
13207
|
onClose && onClose();
|
|
13154
13208
|
};
|
|
13155
13209
|
const renderLeftOnCustomSwitch = () => {
|
|
13156
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, custom && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-left-icon`, onClick: onSwitchModule }, React.isValidElement(backIcon) ? backIcon : /* @__PURE__ */ React.createElement(y$
|
|
13210
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, custom && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-left-icon`, onClick: onSwitchModule }, React.isValidElement(backIcon) ? backIcon : /* @__PURE__ */ React.createElement(y$7, { color: "#cccccc" })));
|
|
13157
13211
|
};
|
|
13158
13212
|
const selectedExistItem = (data) => {
|
|
13159
13213
|
onExistSelect && onExistSelect(data);
|
|
@@ -13219,7 +13273,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13219
13273
|
));
|
|
13220
13274
|
};
|
|
13221
13275
|
const Address = React.forwardRef(InternalAddress);
|
|
13222
|
-
Address.defaultProps = defaultProps
|
|
13276
|
+
Address.defaultProps = defaultProps$11;
|
|
13223
13277
|
Address.displayName = "NutAddress";
|
|
13224
13278
|
const Utils = {
|
|
13225
13279
|
/**
|
|
@@ -13469,7 +13523,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13469
13523
|
const isStartAndEnd = (days) => {
|
|
13470
13524
|
return days.length >= 2 && Utils.isEqual(days[0], days[1]);
|
|
13471
13525
|
};
|
|
13472
|
-
const defaultProps$
|
|
13526
|
+
const defaultProps$10 = {
|
|
13473
13527
|
...ComponentDefaults,
|
|
13474
13528
|
type: "single",
|
|
13475
13529
|
autoBackfill: false,
|
|
@@ -13504,6 +13558,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13504
13558
|
const {
|
|
13505
13559
|
style,
|
|
13506
13560
|
className,
|
|
13561
|
+
children,
|
|
13507
13562
|
popup,
|
|
13508
13563
|
type: type2,
|
|
13509
13564
|
autoBackfill,
|
|
@@ -13528,7 +13583,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13528
13583
|
onUpdate,
|
|
13529
13584
|
onDayClick,
|
|
13530
13585
|
onPageChange
|
|
13531
|
-
} = { ...defaultProps$
|
|
13586
|
+
} = { ...defaultProps$10, ...props };
|
|
13532
13587
|
const weekdays = locale.calendaritem.weekdays;
|
|
13533
13588
|
const weeks = [
|
|
13534
13589
|
...weekdays.slice(firstDayOfWeek, 7),
|
|
@@ -14058,13 +14113,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14058
14113
|
);
|
|
14059
14114
|
};
|
|
14060
14115
|
const renderFooter = () => {
|
|
14061
|
-
return /* @__PURE__ */ React.createElement("div", { className: "nut-calendar-footer" }, /* @__PURE__ */ React.createElement("div", { className: "calendar-confirm-btn", onClick: confirm2 }, confirmText || locale.confirm));
|
|
14116
|
+
return /* @__PURE__ */ React.createElement("div", { className: "nut-calendar-footer" }, children, /* @__PURE__ */ React.createElement("div", { className: "calendar-confirm-btn", onClick: confirm2 }, confirmText || locale.confirm));
|
|
14062
14117
|
};
|
|
14063
14118
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: classes, style }, renderHeader(), renderContent(), popup && !autoBackfill ? renderFooter() : ""));
|
|
14064
14119
|
});
|
|
14065
|
-
CalendarItem.defaultProps = defaultProps$
|
|
14120
|
+
CalendarItem.defaultProps = defaultProps$10;
|
|
14066
14121
|
CalendarItem.displayName = "NutCalendarItem";
|
|
14067
|
-
const defaultProps
|
|
14122
|
+
const defaultProps$$ = {
|
|
14068
14123
|
...ComponentDefaults,
|
|
14069
14124
|
type: "single",
|
|
14070
14125
|
autoBackfill: false,
|
|
@@ -14101,6 +14156,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14101
14156
|
const {
|
|
14102
14157
|
style,
|
|
14103
14158
|
className,
|
|
14159
|
+
children,
|
|
14104
14160
|
popup,
|
|
14105
14161
|
visible,
|
|
14106
14162
|
type: type2,
|
|
@@ -14126,7 +14182,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14126
14182
|
onConfirm,
|
|
14127
14183
|
onDayClick,
|
|
14128
14184
|
onPageChange
|
|
14129
|
-
} = { ...defaultProps
|
|
14185
|
+
} = { ...defaultProps$$, ...props };
|
|
14130
14186
|
const calendarRef = React.useRef(null);
|
|
14131
14187
|
const close = () => {
|
|
14132
14188
|
onClose && onClose();
|
|
@@ -14158,6 +14214,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14158
14214
|
ref: calendarRef,
|
|
14159
14215
|
style,
|
|
14160
14216
|
className,
|
|
14217
|
+
children,
|
|
14161
14218
|
type: type2,
|
|
14162
14219
|
autoBackfill,
|
|
14163
14220
|
popup,
|
|
@@ -14199,11 +14256,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14199
14256
|
renderItem()
|
|
14200
14257
|
) : renderItem());
|
|
14201
14258
|
});
|
|
14202
|
-
Calendar.defaultProps = defaultProps
|
|
14259
|
+
Calendar.defaultProps = defaultProps$$;
|
|
14203
14260
|
Calendar.displayName = "NutCalendar";
|
|
14204
14261
|
const CheckboxGroupContext = React.createContext(null);
|
|
14205
14262
|
const Context$1 = CheckboxGroupContext;
|
|
14206
|
-
const defaultProps$
|
|
14263
|
+
const defaultProps$_ = {
|
|
14207
14264
|
max: void 0,
|
|
14208
14265
|
labelPosition: "right",
|
|
14209
14266
|
direction: "vertical",
|
|
@@ -14211,10 +14268,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14211
14268
|
},
|
|
14212
14269
|
options: []
|
|
14213
14270
|
};
|
|
14214
|
-
const classPrefix$
|
|
14271
|
+
const classPrefix$h = "nut-checkboxgroup";
|
|
14215
14272
|
const CheckboxGroup = React.forwardRef(
|
|
14216
14273
|
(props, ref) => {
|
|
14217
|
-
const { children } = { ...defaultProps$
|
|
14274
|
+
const { children } = { ...defaultProps$_, ...props };
|
|
14218
14275
|
const {
|
|
14219
14276
|
className,
|
|
14220
14277
|
disabled,
|
|
@@ -14293,7 +14350,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14293
14350
|
/* @__PURE__ */ React.createElement(
|
|
14294
14351
|
"div",
|
|
14295
14352
|
{
|
|
14296
|
-
className: classNames(classPrefix$
|
|
14353
|
+
className: classNames(classPrefix$h, className, {
|
|
14297
14354
|
[`nut-checkboxgroup--${props.direction}`]: props.direction
|
|
14298
14355
|
}),
|
|
14299
14356
|
...rest
|
|
@@ -14303,9 +14360,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14303
14360
|
);
|
|
14304
14361
|
}
|
|
14305
14362
|
);
|
|
14306
|
-
CheckboxGroup.defaultProps = defaultProps$
|
|
14363
|
+
CheckboxGroup.defaultProps = defaultProps$_;
|
|
14307
14364
|
CheckboxGroup.displayName = "NutCheckboxGroup";
|
|
14308
|
-
const defaultProps$
|
|
14365
|
+
const defaultProps$Z = {
|
|
14309
14366
|
...ComponentDefaults,
|
|
14310
14367
|
disabled: false,
|
|
14311
14368
|
labelPosition: "right",
|
|
@@ -14315,10 +14372,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14315
14372
|
onChange: (value) => {
|
|
14316
14373
|
}
|
|
14317
14374
|
};
|
|
14318
|
-
const classPrefix$
|
|
14375
|
+
const classPrefix$g = "nut-checkbox";
|
|
14319
14376
|
const Checkbox = (props) => {
|
|
14320
14377
|
const { children } = {
|
|
14321
|
-
...defaultProps$
|
|
14378
|
+
...defaultProps$Z,
|
|
14322
14379
|
...props
|
|
14323
14380
|
};
|
|
14324
14381
|
const {
|
|
@@ -14377,22 +14434,22 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14377
14434
|
};
|
|
14378
14435
|
const color = () => {
|
|
14379
14436
|
if (innerDisabled) {
|
|
14380
|
-
return `${classPrefix$
|
|
14437
|
+
return `${classPrefix$g}__icon--disable`;
|
|
14381
14438
|
}
|
|
14382
14439
|
if (innerChecked) {
|
|
14383
14440
|
if (innerIndeterminate) {
|
|
14384
|
-
return `${classPrefix$
|
|
14441
|
+
return `${classPrefix$g}__icon--indeterminate`;
|
|
14385
14442
|
}
|
|
14386
|
-
return `${classPrefix$
|
|
14443
|
+
return `${classPrefix$g}__icon`;
|
|
14387
14444
|
}
|
|
14388
|
-
return `${classPrefix$
|
|
14445
|
+
return `${classPrefix$g}__icon--unchecked`;
|
|
14389
14446
|
};
|
|
14390
14447
|
const renderLabel = () => {
|
|
14391
14448
|
return /* @__PURE__ */ React.createElement(
|
|
14392
14449
|
"span",
|
|
14393
14450
|
{
|
|
14394
|
-
className: classNames(`${classPrefix$
|
|
14395
|
-
[`${classPrefix$
|
|
14451
|
+
className: classNames(`${classPrefix$g}__label `, {
|
|
14452
|
+
[`${classPrefix$g}__label--disabled`]: innerDisabled
|
|
14396
14453
|
})
|
|
14397
14454
|
},
|
|
14398
14455
|
children || label
|
|
@@ -14411,8 +14468,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14411
14468
|
return /* @__PURE__ */ React.createElement(
|
|
14412
14469
|
"div",
|
|
14413
14470
|
{
|
|
14414
|
-
className: classNames(classPrefix$
|
|
14415
|
-
[`${classPrefix$
|
|
14471
|
+
className: classNames(classPrefix$g, className, {
|
|
14472
|
+
[`${classPrefix$g}--reverse`]: labelPosition === "left"
|
|
14416
14473
|
}),
|
|
14417
14474
|
...rest,
|
|
14418
14475
|
onClick: handleClick2
|
|
@@ -14421,7 +14478,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14421
14478
|
renderLabel()
|
|
14422
14479
|
);
|
|
14423
14480
|
};
|
|
14424
|
-
Checkbox.defaultProps = defaultProps$
|
|
14481
|
+
Checkbox.defaultProps = defaultProps$Z;
|
|
14425
14482
|
Checkbox.displayName = "NutCheckBox";
|
|
14426
14483
|
Checkbox.Group = CheckboxGroup;
|
|
14427
14484
|
const MIN_DISTANCE = 10;
|
|
@@ -14715,7 +14772,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14715
14772
|
}, []);
|
|
14716
14773
|
return [refs.current, setRefs, reset];
|
|
14717
14774
|
}
|
|
14718
|
-
const defaultProps$
|
|
14775
|
+
const defaultProps$Y = {
|
|
14719
14776
|
...ComponentDefaults,
|
|
14720
14777
|
title: "",
|
|
14721
14778
|
options: [],
|
|
@@ -14741,7 +14798,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14741
14798
|
afterClose,
|
|
14742
14799
|
onChange,
|
|
14743
14800
|
...rest
|
|
14744
|
-
} = { ...defaultProps$
|
|
14801
|
+
} = { ...defaultProps$Y, ...props };
|
|
14745
14802
|
const classPrefix2 = "nut-picker";
|
|
14746
14803
|
const classes = classNames(classPrefix2, className);
|
|
14747
14804
|
const [selectedValue, setSelectedValue] = usePropsValue({
|
|
@@ -14968,7 +15025,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14968
15025
|
const Picker = React.forwardRef(InternalPicker);
|
|
14969
15026
|
const Picker$1 = Picker;
|
|
14970
15027
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
14971
|
-
const defaultProps$
|
|
15028
|
+
const defaultProps$X = {
|
|
14972
15029
|
...ComponentDefaults,
|
|
14973
15030
|
visible: false,
|
|
14974
15031
|
title: "",
|
|
@@ -14999,7 +15056,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14999
15056
|
style,
|
|
15000
15057
|
...rest
|
|
15001
15058
|
} = {
|
|
15002
|
-
...defaultProps$
|
|
15059
|
+
...defaultProps$X,
|
|
15003
15060
|
...props
|
|
15004
15061
|
};
|
|
15005
15062
|
const { locale } = useConfig();
|
|
@@ -15272,7 +15329,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
15272
15329
|
}
|
|
15273
15330
|
));
|
|
15274
15331
|
};
|
|
15275
|
-
DatePicker.defaultProps = defaultProps$
|
|
15332
|
+
DatePicker.defaultProps = defaultProps$X;
|
|
15276
15333
|
DatePicker.displayName = "NutDatePicker";
|
|
15277
15334
|
const Context = React.createContext({});
|
|
15278
15335
|
function _extends() {
|
|
@@ -16483,7 +16540,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16483
16540
|
}
|
|
16484
16541
|
).$$typeof === component.type.$$typeof;
|
|
16485
16542
|
}
|
|
16486
|
-
const defaultProps$
|
|
16543
|
+
const defaultProps$W = {
|
|
16487
16544
|
...ComponentDefaults,
|
|
16488
16545
|
required: false,
|
|
16489
16546
|
name: "",
|
|
@@ -16551,7 +16608,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16551
16608
|
__publicField(this, "renderLayout", (childNode) => {
|
|
16552
16609
|
var _a2, _b;
|
|
16553
16610
|
const { label, name, required: required2, className, style, errorMessageAlign } = {
|
|
16554
|
-
...defaultProps$
|
|
16611
|
+
...defaultProps$W,
|
|
16555
16612
|
...this.props
|
|
16556
16613
|
};
|
|
16557
16614
|
const item = ((_a2 = this.context.errors) == null ? void 0 : _a2.length) > 0 && ((_b = this.context.errors) == null ? void 0 : _b.filter((item2) => {
|
|
@@ -16601,9 +16658,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16601
16658
|
return /* @__PURE__ */ React.createElement(React.Fragment, { key: this.state.resetCount }, this.renderLayout(returnChildNode));
|
|
16602
16659
|
}
|
|
16603
16660
|
}
|
|
16604
|
-
__publicField(FormItem, "defaultProps", defaultProps$
|
|
16661
|
+
__publicField(FormItem, "defaultProps", defaultProps$W);
|
|
16605
16662
|
__publicField(FormItem, "contextType", Context);
|
|
16606
|
-
const defaultProps$
|
|
16663
|
+
const defaultProps$V = {
|
|
16607
16664
|
...ComponentDefaults,
|
|
16608
16665
|
labelPosition: "right",
|
|
16609
16666
|
starPosition: "left",
|
|
@@ -16631,7 +16688,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16631
16688
|
starPosition,
|
|
16632
16689
|
form
|
|
16633
16690
|
} = {
|
|
16634
|
-
...defaultProps$
|
|
16691
|
+
...defaultProps$V,
|
|
16635
16692
|
...props
|
|
16636
16693
|
};
|
|
16637
16694
|
let formInstance;
|
|
@@ -16674,7 +16731,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16674
16731
|
/* @__PURE__ */ React.createElement(Cell.Group, null, /* @__PURE__ */ React.createElement(Context.Provider, { value: formInstance }, children), footer ? /* @__PURE__ */ React.createElement(Cell, null, footer) : null)
|
|
16675
16732
|
);
|
|
16676
16733
|
};
|
|
16677
|
-
Form.defaultProps = defaultProps$
|
|
16734
|
+
Form.defaultProps = defaultProps$V;
|
|
16678
16735
|
Form.displayName = "NutForm";
|
|
16679
16736
|
Form.Item = FormItem;
|
|
16680
16737
|
Form.useForm = useForm;
|
|
@@ -16702,7 +16759,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16702
16759
|
const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
16703
16760
|
return value.replace(regExp, "");
|
|
16704
16761
|
}
|
|
16705
|
-
const defaultProps$
|
|
16762
|
+
const defaultProps$U = {
|
|
16706
16763
|
...ComponentDefaults,
|
|
16707
16764
|
type: "text",
|
|
16708
16765
|
name: "",
|
|
@@ -16745,7 +16802,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16745
16802
|
value: _value,
|
|
16746
16803
|
...rest
|
|
16747
16804
|
} = {
|
|
16748
|
-
...defaultProps$
|
|
16805
|
+
...defaultProps$U,
|
|
16749
16806
|
...props
|
|
16750
16807
|
};
|
|
16751
16808
|
const [value, setValue] = usePropsValue({
|
|
@@ -16807,7 +16864,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16807
16864
|
const handleBlur = (event) => {
|
|
16808
16865
|
const val = event.target.value;
|
|
16809
16866
|
updateValue(val, "onBlur");
|
|
16810
|
-
|
|
16867
|
+
setTimeout(() => {
|
|
16868
|
+
setActive(false);
|
|
16869
|
+
}, 200);
|
|
16811
16870
|
};
|
|
16812
16871
|
const inputType = (type22) => {
|
|
16813
16872
|
if (type22 === "digit") {
|
|
@@ -16880,9 +16939,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16880
16939
|
);
|
|
16881
16940
|
}
|
|
16882
16941
|
);
|
|
16883
|
-
Input.defaultProps = defaultProps$
|
|
16942
|
+
Input.defaultProps = defaultProps$U;
|
|
16884
16943
|
Input.displayName = "NutInput";
|
|
16885
|
-
const defaultProps$
|
|
16944
|
+
const defaultProps$T = {
|
|
16886
16945
|
...ComponentDefaults,
|
|
16887
16946
|
disabled: false,
|
|
16888
16947
|
min: 1,
|
|
@@ -16894,7 +16953,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16894
16953
|
digits: 0,
|
|
16895
16954
|
async: false
|
|
16896
16955
|
};
|
|
16897
|
-
const classPrefix$
|
|
16956
|
+
const classPrefix$f = `nut-inputnumber`;
|
|
16898
16957
|
const InputNumber = (props) => {
|
|
16899
16958
|
const {
|
|
16900
16959
|
children,
|
|
@@ -16919,7 +16978,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16919
16978
|
onChange,
|
|
16920
16979
|
...restProps
|
|
16921
16980
|
} = {
|
|
16922
|
-
...defaultProps$
|
|
16981
|
+
...defaultProps$T,
|
|
16923
16982
|
...props
|
|
16924
16983
|
};
|
|
16925
16984
|
const inputRef = React.useRef("");
|
|
@@ -16937,8 +16996,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16937
16996
|
}, []);
|
|
16938
16997
|
const classes = classNames(
|
|
16939
16998
|
{
|
|
16940
|
-
[`${classPrefix$
|
|
16941
|
-
[`${classPrefix$
|
|
16999
|
+
[`${classPrefix$f}`]: true,
|
|
17000
|
+
[`${classPrefix$f}--disabled`]: disabled
|
|
16942
17001
|
},
|
|
16943
17002
|
className
|
|
16944
17003
|
);
|
|
@@ -17116,7 +17175,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17116
17175
|
}
|
|
17117
17176
|
)), /* @__PURE__ */ React.createElement("div", { className: "nut-input-add" }, /* @__PURE__ */ React.createElement(y$4, { className: iconAddClasses, onClick: (e) => addNumber(e) })));
|
|
17118
17177
|
};
|
|
17119
|
-
InputNumber.defaultProps = defaultProps$
|
|
17178
|
+
InputNumber.defaultProps = defaultProps$T;
|
|
17120
17179
|
InputNumber.displayName = "NutInputNumber";
|
|
17121
17180
|
const isObject = (val) => val !== null && typeof val === "object";
|
|
17122
17181
|
const isFunction = (val) => typeof val === "function";
|
|
@@ -17158,7 +17217,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17158
17217
|
};
|
|
17159
17218
|
}, [target]);
|
|
17160
17219
|
}
|
|
17161
|
-
const defaultProps$
|
|
17220
|
+
const defaultProps$S = {
|
|
17162
17221
|
...ComponentDefaults,
|
|
17163
17222
|
columns: 1,
|
|
17164
17223
|
direction: "down",
|
|
@@ -17187,7 +17246,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17187
17246
|
parent,
|
|
17188
17247
|
index
|
|
17189
17248
|
} = {
|
|
17190
|
-
...defaultProps$
|
|
17249
|
+
...defaultProps$S,
|
|
17191
17250
|
...props
|
|
17192
17251
|
};
|
|
17193
17252
|
const [showPopup, setShowPopup] = React.useState(show2);
|
|
@@ -17338,9 +17397,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17338
17397
|
)
|
|
17339
17398
|
);
|
|
17340
17399
|
});
|
|
17341
|
-
MenuItem.defaultProps = defaultProps$
|
|
17400
|
+
MenuItem.defaultProps = defaultProps$S;
|
|
17342
17401
|
MenuItem.displayName = "NutMenuItem";
|
|
17343
|
-
const defaultProps$
|
|
17402
|
+
const defaultProps$R = {
|
|
17344
17403
|
...ComponentDefaults,
|
|
17345
17404
|
activeColor: "",
|
|
17346
17405
|
closeOnOverlayClick: true,
|
|
@@ -17365,7 +17424,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17365
17424
|
onOpen,
|
|
17366
17425
|
...rest
|
|
17367
17426
|
} = {
|
|
17368
|
-
...defaultProps$
|
|
17427
|
+
...defaultProps$R,
|
|
17369
17428
|
...props
|
|
17370
17429
|
};
|
|
17371
17430
|
const menuRef = React.useRef(null);
|
|
@@ -17465,7 +17524,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17465
17524
|
})
|
|
17466
17525
|
},
|
|
17467
17526
|
/* @__PURE__ */ React.createElement("div", { className: "nut-menu__title-text" }, finallyTitle()),
|
|
17468
|
-
icon || (direction === "up" ? /* @__PURE__ */ React.createElement(x$h, { className: "nut-menu__title-icon" }) : /* @__PURE__ */ React.createElement(y$
|
|
17527
|
+
icon || (direction === "up" ? /* @__PURE__ */ React.createElement(x$h, { className: "nut-menu__title-icon" }) : /* @__PURE__ */ React.createElement(y$a, { className: "nut-menu__title-icon" }))
|
|
17469
17528
|
)
|
|
17470
17529
|
);
|
|
17471
17530
|
}
|
|
@@ -17492,10 +17551,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17492
17551
|
), cloneChildren())
|
|
17493
17552
|
);
|
|
17494
17553
|
};
|
|
17495
|
-
Menu.defaultProps = defaultProps$
|
|
17554
|
+
Menu.defaultProps = defaultProps$R;
|
|
17496
17555
|
Menu.displayName = "NutMenu";
|
|
17497
17556
|
Menu.Item = MenuItem;
|
|
17498
|
-
const defaultProps$
|
|
17557
|
+
const defaultProps$Q = {
|
|
17499
17558
|
...ComponentDefaults,
|
|
17500
17559
|
visible: false,
|
|
17501
17560
|
type: "default",
|
|
@@ -17620,7 +17679,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17620
17679
|
"span",
|
|
17621
17680
|
{
|
|
17622
17681
|
className: `${classPrefix2}__header__close`,
|
|
17623
|
-
onClick:
|
|
17682
|
+
onClick: onConfirm
|
|
17624
17683
|
},
|
|
17625
17684
|
locale.done
|
|
17626
17685
|
)), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__body` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__body__keys` }, keysList == null ? void 0 : keysList.map((item) => {
|
|
@@ -17646,17 +17705,17 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17646
17705
|
))))
|
|
17647
17706
|
);
|
|
17648
17707
|
};
|
|
17649
|
-
NumberKeyboard.defaultProps = defaultProps$
|
|
17708
|
+
NumberKeyboard.defaultProps = defaultProps$Q;
|
|
17650
17709
|
NumberKeyboard.displayName = "NutNumberKeyboard";
|
|
17651
17710
|
const RadioContext = React.createContext(null);
|
|
17652
|
-
const defaultProps$
|
|
17711
|
+
const defaultProps$P = {
|
|
17653
17712
|
labelPosition: "right",
|
|
17654
17713
|
onChange: (value) => {
|
|
17655
17714
|
},
|
|
17656
17715
|
direction: "vertical",
|
|
17657
17716
|
options: []
|
|
17658
17717
|
};
|
|
17659
|
-
const classPrefix$
|
|
17718
|
+
const classPrefix$e = "nut-radiogroup";
|
|
17660
17719
|
const RadioGroup = React.forwardRef(
|
|
17661
17720
|
(props, ref) => {
|
|
17662
17721
|
const {
|
|
@@ -17670,7 +17729,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17670
17729
|
options: options2,
|
|
17671
17730
|
disabled,
|
|
17672
17731
|
...rest
|
|
17673
|
-
} = { ...defaultProps$
|
|
17732
|
+
} = { ...defaultProps$P, ...props };
|
|
17674
17733
|
const [val2State, setVal2State] = usePropsValue({
|
|
17675
17734
|
defaultValue: props.defaultValue,
|
|
17676
17735
|
value: props.value,
|
|
@@ -17712,8 +17771,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17712
17771
|
/* @__PURE__ */ React.createElement(
|
|
17713
17772
|
"div",
|
|
17714
17773
|
{
|
|
17715
|
-
className: classNames(classPrefix$
|
|
17716
|
-
[`${classPrefix$
|
|
17774
|
+
className: classNames(classPrefix$e, className, {
|
|
17775
|
+
[`${classPrefix$e}--${props.direction}`]: props.direction
|
|
17717
17776
|
}),
|
|
17718
17777
|
...rest
|
|
17719
17778
|
},
|
|
@@ -17722,9 +17781,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17722
17781
|
);
|
|
17723
17782
|
}
|
|
17724
17783
|
);
|
|
17725
|
-
RadioGroup.defaultProps = defaultProps$
|
|
17784
|
+
RadioGroup.defaultProps = defaultProps$P;
|
|
17726
17785
|
RadioGroup.displayName = "NutRadioGroup";
|
|
17727
|
-
const defaultProps$
|
|
17786
|
+
const defaultProps$O = {
|
|
17728
17787
|
...ComponentDefaults,
|
|
17729
17788
|
disabled: false,
|
|
17730
17789
|
shape: "round",
|
|
@@ -17750,7 +17809,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17750
17809
|
onChange,
|
|
17751
17810
|
...others
|
|
17752
17811
|
} = {
|
|
17753
|
-
...defaultProps$
|
|
17812
|
+
...defaultProps$O,
|
|
17754
17813
|
...props
|
|
17755
17814
|
};
|
|
17756
17815
|
let { labelPosition, disabled, ...rest } = others;
|
|
@@ -17813,7 +17872,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17813
17872
|
return React.isValidElement(activeIcon2) ? React.cloneElement(activeIcon2, {
|
|
17814
17873
|
...activeIcon2.props,
|
|
17815
17874
|
className: classNames(color())
|
|
17816
|
-
}) : /* @__PURE__ */ React.createElement(y$
|
|
17875
|
+
}) : /* @__PURE__ */ React.createElement(y$9, { className: classNames(color()) });
|
|
17817
17876
|
}
|
|
17818
17877
|
return React.isValidElement(icon2) ? React.cloneElement(icon2, {
|
|
17819
17878
|
...icon2.props,
|
|
@@ -17846,10 +17905,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17846
17905
|
renderRadioItem()
|
|
17847
17906
|
);
|
|
17848
17907
|
};
|
|
17849
|
-
Radio.defaultProps = defaultProps$
|
|
17908
|
+
Radio.defaultProps = defaultProps$O;
|
|
17850
17909
|
Radio.displayName = "NutRadio";
|
|
17851
17910
|
Radio.Group = RadioGroup;
|
|
17852
|
-
const defaultProps$
|
|
17911
|
+
const defaultProps$N = {
|
|
17853
17912
|
...ComponentDefaults,
|
|
17854
17913
|
range: false,
|
|
17855
17914
|
min: 0,
|
|
@@ -17877,7 +17936,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17877
17936
|
step,
|
|
17878
17937
|
value,
|
|
17879
17938
|
defaultValue
|
|
17880
|
-
} = { ...defaultProps$
|
|
17939
|
+
} = { ...defaultProps$N, ...props };
|
|
17881
17940
|
const classPrefix2 = "nut-range";
|
|
17882
17941
|
const [buttonIndex, setButtonIndex] = React.useState(0);
|
|
17883
17942
|
const [dragStatus, setDragStatus] = React.useState("start");
|
|
@@ -18141,9 +18200,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18141
18200
|
renderButton()
|
|
18142
18201
|
))), maxDescription !== null && /* @__PURE__ */ React.createElement("div", { className: "max" }, maxDescription || max));
|
|
18143
18202
|
};
|
|
18144
|
-
Range.defaultProps = defaultProps$
|
|
18203
|
+
Range.defaultProps = defaultProps$N;
|
|
18145
18204
|
Range.displayName = "NutRange";
|
|
18146
|
-
const defaultProps$
|
|
18205
|
+
const defaultProps$M = {
|
|
18147
18206
|
...ComponentDefaults,
|
|
18148
18207
|
count: 5,
|
|
18149
18208
|
min: 0,
|
|
@@ -18168,7 +18227,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18168
18227
|
allowHalf,
|
|
18169
18228
|
onChange
|
|
18170
18229
|
} = {
|
|
18171
|
-
...defaultProps$
|
|
18230
|
+
...defaultProps$M,
|
|
18172
18231
|
...props
|
|
18173
18232
|
};
|
|
18174
18233
|
const classPrefix2 = "nut-rate";
|
|
@@ -18251,9 +18310,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18251
18310
|
})
|
|
18252
18311
|
);
|
|
18253
18312
|
};
|
|
18254
|
-
Rate.defaultProps = defaultProps$
|
|
18313
|
+
Rate.defaultProps = defaultProps$M;
|
|
18255
18314
|
Rate.displayName = "NutRate";
|
|
18256
|
-
const defaultProps$
|
|
18315
|
+
const defaultProps$L = {
|
|
18257
18316
|
...ComponentDefaults,
|
|
18258
18317
|
placeholder: "",
|
|
18259
18318
|
shape: "square",
|
|
@@ -18292,7 +18351,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18292
18351
|
onSearch,
|
|
18293
18352
|
onInputClick
|
|
18294
18353
|
} = {
|
|
18295
|
-
...defaultProps$
|
|
18354
|
+
...defaultProps$L,
|
|
18296
18355
|
...props
|
|
18297
18356
|
};
|
|
18298
18357
|
const forceFocus = () => {
|
|
@@ -18410,9 +18469,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18410
18469
|
renderRight()
|
|
18411
18470
|
);
|
|
18412
18471
|
};
|
|
18413
|
-
SearchBar.defaultProps = defaultProps$
|
|
18472
|
+
SearchBar.defaultProps = defaultProps$L;
|
|
18414
18473
|
SearchBar.displayName = "NutSearchBar";
|
|
18415
|
-
const defaultProps$
|
|
18474
|
+
const defaultProps$K = {
|
|
18416
18475
|
...ComponentDefaults,
|
|
18417
18476
|
value: "",
|
|
18418
18477
|
visible: false,
|
|
@@ -18449,7 +18508,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18449
18508
|
onCloseIconClick,
|
|
18450
18509
|
...rest
|
|
18451
18510
|
} = {
|
|
18452
|
-
...defaultProps$
|
|
18511
|
+
...defaultProps$K,
|
|
18453
18512
|
...props
|
|
18454
18513
|
};
|
|
18455
18514
|
const classPrefix2 = "nut-shortpassword";
|
|
@@ -18506,9 +18565,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18506
18565
|
), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__footer__sure`, onClick: sure }, locale.confirm)))
|
|
18507
18566
|
);
|
|
18508
18567
|
};
|
|
18509
|
-
ShortPassword.defaultProps = defaultProps$
|
|
18568
|
+
ShortPassword.defaultProps = defaultProps$K;
|
|
18510
18569
|
ShortPassword.displayName = "NutShortPassword";
|
|
18511
|
-
const defaultProps$
|
|
18570
|
+
const defaultProps$J = {
|
|
18512
18571
|
...ComponentDefaults,
|
|
18513
18572
|
type: "png",
|
|
18514
18573
|
lineWidth: 2,
|
|
@@ -18528,7 +18587,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18528
18587
|
onClear,
|
|
18529
18588
|
...rest
|
|
18530
18589
|
} = {
|
|
18531
|
-
...defaultProps$
|
|
18590
|
+
...defaultProps$J,
|
|
18532
18591
|
...props
|
|
18533
18592
|
};
|
|
18534
18593
|
const classPrefix2 = `nut-signature`;
|
|
@@ -18626,9 +18685,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18626
18685
|
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2} ${className}`, style, ...rest }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__inner`, ref: wrapRef }, isCanvasSupported() ? /* @__PURE__ */ React.createElement("canvas", { ref: canvasRef, height: canvasHeight, width: canvasWidth }) : /* @__PURE__ */ React.createElement(React.Fragment, null, unsupported || /* @__PURE__ */ React.createElement("p", { className: `${classPrefix2}__unsupport` }, locale.signature.unsupported))));
|
|
18627
18686
|
};
|
|
18628
18687
|
const Signature = React.forwardRef(InternalSignature);
|
|
18629
|
-
Signature.defaultProps = defaultProps$
|
|
18688
|
+
Signature.defaultProps = defaultProps$J;
|
|
18630
18689
|
Signature.displayName = "NutSignature";
|
|
18631
|
-
const defaultProps$
|
|
18690
|
+
const defaultProps$I = {
|
|
18632
18691
|
...ComponentDefaults,
|
|
18633
18692
|
disabled: false,
|
|
18634
18693
|
activeText: "",
|
|
@@ -18643,9 +18702,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18643
18702
|
inactiveText,
|
|
18644
18703
|
className,
|
|
18645
18704
|
style,
|
|
18646
|
-
onChange
|
|
18705
|
+
onChange,
|
|
18706
|
+
...rest
|
|
18647
18707
|
} = {
|
|
18648
|
-
...defaultProps$
|
|
18708
|
+
...defaultProps$I,
|
|
18649
18709
|
...props
|
|
18650
18710
|
};
|
|
18651
18711
|
const classPrefix2 = "nut-switch";
|
|
@@ -18662,11 +18722,20 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18662
18722
|
onChange && onChange(!value, event);
|
|
18663
18723
|
setValue(!value);
|
|
18664
18724
|
};
|
|
18665
|
-
return /* @__PURE__ */ React.createElement(
|
|
18725
|
+
return /* @__PURE__ */ React.createElement(
|
|
18726
|
+
"div",
|
|
18727
|
+
{
|
|
18728
|
+
className: classes(),
|
|
18729
|
+
onClick: (e) => onClick(e),
|
|
18730
|
+
style,
|
|
18731
|
+
...rest
|
|
18732
|
+
},
|
|
18733
|
+
/* @__PURE__ */ React.createElement("div", { className: "switch-button" }, !value && /* @__PURE__ */ React.createElement("div", { className: "close-line" }), activeText && /* @__PURE__ */ React.createElement(React.Fragment, null, value ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__label open` }, activeText) : /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__label close` }, inactiveText)))
|
|
18734
|
+
);
|
|
18666
18735
|
};
|
|
18667
|
-
Switch.defaultProps = defaultProps$
|
|
18736
|
+
Switch.defaultProps = defaultProps$I;
|
|
18668
18737
|
Switch.displayName = "NutSwitch";
|
|
18669
|
-
const defaultProps$
|
|
18738
|
+
const defaultProps$H = {
|
|
18670
18739
|
...ComponentDefaults,
|
|
18671
18740
|
defaultValue: "",
|
|
18672
18741
|
showCount: false,
|
|
@@ -18695,7 +18764,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18695
18764
|
onBlur,
|
|
18696
18765
|
onFocus,
|
|
18697
18766
|
...rest
|
|
18698
|
-
} = { ...defaultProps$
|
|
18767
|
+
} = { ...defaultProps$H, ...props };
|
|
18699
18768
|
const classPrefix2 = "nut-textarea";
|
|
18700
18769
|
const textareaRef = React.useRef(null);
|
|
18701
18770
|
const compositionRef = React.useRef(false);
|
|
@@ -18779,9 +18848,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18779
18848
|
showCount && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__limit` }, inputValue.length, "/", maxLength < 0 ? 0 : maxLength)
|
|
18780
18849
|
);
|
|
18781
18850
|
};
|
|
18782
|
-
TextArea.defaultProps = defaultProps$
|
|
18851
|
+
TextArea.defaultProps = defaultProps$H;
|
|
18783
18852
|
TextArea.displayName = "NutTextArea";
|
|
18784
|
-
const defaultProps$
|
|
18853
|
+
const defaultProps$G = {
|
|
18785
18854
|
...ComponentDefaults,
|
|
18786
18855
|
percent: 0,
|
|
18787
18856
|
showText: false,
|
|
@@ -18804,7 +18873,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18804
18873
|
delay,
|
|
18805
18874
|
...rest
|
|
18806
18875
|
} = {
|
|
18807
|
-
...defaultProps$
|
|
18876
|
+
...defaultProps$G,
|
|
18808
18877
|
...props
|
|
18809
18878
|
};
|
|
18810
18879
|
const classPrefix2 = "nut-progress";
|
|
@@ -18899,7 +18968,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18899
18968
|
)))
|
|
18900
18969
|
);
|
|
18901
18970
|
};
|
|
18902
|
-
Progress.defaultProps = defaultProps$
|
|
18971
|
+
Progress.defaultProps = defaultProps$G;
|
|
18903
18972
|
Progress.displayName = "NutProgress";
|
|
18904
18973
|
class UploadOptions {
|
|
18905
18974
|
constructor() {
|
|
@@ -18991,7 +19060,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18991
19060
|
done();
|
|
18992
19061
|
}
|
|
18993
19062
|
};
|
|
18994
|
-
const defaultProps$
|
|
19063
|
+
const defaultProps$F = {
|
|
18995
19064
|
...ComponentDefaults,
|
|
18996
19065
|
url: "",
|
|
18997
19066
|
maxCount: 1,
|
|
@@ -19074,7 +19143,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19074
19143
|
beforeXhrUpload,
|
|
19075
19144
|
beforeDelete,
|
|
19076
19145
|
...restProps
|
|
19077
|
-
} = { ...defaultProps$
|
|
19146
|
+
} = { ...defaultProps$F, ...props };
|
|
19078
19147
|
const [fileList, setFileList] = React.useState(defaultValue || []);
|
|
19079
19148
|
const [uploadQueue, setUploadQueue] = React.useState([]);
|
|
19080
19149
|
React.useEffect(() => {
|
|
@@ -19313,7 +19382,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19313
19382
|
multiple,
|
|
19314
19383
|
onChange: fileChange
|
|
19315
19384
|
}
|
|
19316
|
-
)))), fileList.length !== 0 && fileList.map((item, index) => {
|
|
19385
|
+
)))), fileList.length !== 0 && Array.isArray(fileList) && fileList.map((item, index) => {
|
|
19317
19386
|
return /* @__PURE__ */ React.createElement(
|
|
19318
19387
|
"div",
|
|
19319
19388
|
{
|
|
@@ -19370,7 +19439,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19370
19439
|
" ",
|
|
19371
19440
|
item.name
|
|
19372
19441
|
), deletable && /* @__PURE__ */ React.createElement(
|
|
19373
|
-
y$
|
|
19442
|
+
y$8,
|
|
19374
19443
|
{
|
|
19375
19444
|
color: "#808080",
|
|
19376
19445
|
className: "nut-uploader__preview-img__file__del",
|
|
@@ -19418,9 +19487,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19418
19487
|
));
|
|
19419
19488
|
};
|
|
19420
19489
|
const Uploader = React.forwardRef(InternalUploader);
|
|
19421
|
-
Uploader.defaultProps = defaultProps$
|
|
19490
|
+
Uploader.defaultProps = defaultProps$F;
|
|
19422
19491
|
Uploader.displayName = "NutUploader";
|
|
19423
|
-
const defaultProps$
|
|
19492
|
+
const defaultProps$E = {
|
|
19424
19493
|
...ComponentDefaults,
|
|
19425
19494
|
visible: false,
|
|
19426
19495
|
description: "",
|
|
@@ -19446,7 +19515,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19446
19515
|
className,
|
|
19447
19516
|
style,
|
|
19448
19517
|
...rest
|
|
19449
|
-
} = { ...defaultProps$
|
|
19518
|
+
} = { ...defaultProps$E, ...props };
|
|
19450
19519
|
const classPrefix2 = "nut-actionsheet";
|
|
19451
19520
|
const cancelActionSheet = () => {
|
|
19452
19521
|
onCancel && onCancel();
|
|
@@ -19489,7 +19558,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19489
19558
|
))
|
|
19490
19559
|
);
|
|
19491
19560
|
};
|
|
19492
|
-
ActionSheet.defaultProps = defaultProps$
|
|
19561
|
+
ActionSheet.defaultProps = defaultProps$E;
|
|
19493
19562
|
ActionSheet.displayName = "NutActionSheet";
|
|
19494
19563
|
const fullClone = {
|
|
19495
19564
|
...ReactDOM__namespace
|
|
@@ -19722,7 +19791,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19722
19791
|
};
|
|
19723
19792
|
DialogWrap.defaultProps = defaultDialogProps;
|
|
19724
19793
|
DialogWrap.displayName = "NutDialogWrap";
|
|
19725
|
-
const defaultProps$
|
|
19794
|
+
const defaultProps$D = {
|
|
19726
19795
|
confirmText: "",
|
|
19727
19796
|
cancelText: "",
|
|
19728
19797
|
overlay: true,
|
|
@@ -19821,9 +19890,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19821
19890
|
});
|
|
19822
19891
|
};
|
|
19823
19892
|
});
|
|
19824
|
-
Dialog.defaultProps = defaultProps$
|
|
19893
|
+
Dialog.defaultProps = defaultProps$D;
|
|
19825
19894
|
Dialog.displayName = "NutDialog";
|
|
19826
|
-
const defaultProps$
|
|
19895
|
+
const defaultProps$C = {
|
|
19827
19896
|
...ComponentDefaults,
|
|
19828
19897
|
attract: false,
|
|
19829
19898
|
direction: void 0,
|
|
@@ -19836,7 +19905,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19836
19905
|
};
|
|
19837
19906
|
const Drag = (props) => {
|
|
19838
19907
|
const { attract, direction, boundary, children, className, style, ...reset } = {
|
|
19839
|
-
...defaultProps$
|
|
19908
|
+
...defaultProps$C,
|
|
19840
19909
|
...props
|
|
19841
19910
|
};
|
|
19842
19911
|
const classPrefix2 = "nut-drag";
|
|
@@ -19899,20 +19968,20 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19899
19968
|
/* @__PURE__ */ React.createElement(animated.div, { style: currstyle, ...bind() }, children)
|
|
19900
19969
|
);
|
|
19901
19970
|
};
|
|
19902
|
-
Drag.defaultProps = defaultProps$
|
|
19971
|
+
Drag.defaultProps = defaultProps$C;
|
|
19903
19972
|
Drag.displayName = "NutDrag";
|
|
19904
19973
|
const defaultStatus = {
|
|
19905
19974
|
empty: "https://static-ftcms.jd.com/p/files/61a9e3183985005b3958672b.png",
|
|
19906
19975
|
error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
|
|
19907
19976
|
network: "https://static-ftcms.jd.com/p/files/61a9e31de7dcdbcc0ce62734.png"
|
|
19908
19977
|
};
|
|
19909
|
-
const defaultProps$
|
|
19978
|
+
const defaultProps$B = {
|
|
19910
19979
|
...ComponentDefaults,
|
|
19911
19980
|
description: "",
|
|
19912
19981
|
imageSize: "",
|
|
19913
19982
|
status: "empty"
|
|
19914
19983
|
};
|
|
19915
|
-
const classPrefix$
|
|
19984
|
+
const classPrefix$d = `nut-empty`;
|
|
19916
19985
|
const Empty = (props) => {
|
|
19917
19986
|
const { locale } = useConfig();
|
|
19918
19987
|
const {
|
|
@@ -19924,7 +19993,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19924
19993
|
status,
|
|
19925
19994
|
...rest
|
|
19926
19995
|
} = {
|
|
19927
|
-
...defaultProps$
|
|
19996
|
+
...defaultProps$B,
|
|
19928
19997
|
...props
|
|
19929
19998
|
};
|
|
19930
19999
|
const [imgStyle, setImgStyle] = React.useState({});
|
|
@@ -19947,11 +20016,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19947
20016
|
};
|
|
19948
20017
|
});
|
|
19949
20018
|
}, [imageSize]);
|
|
19950
|
-
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$
|
|
20019
|
+
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$d} ${className}`, ...rest }, /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$d}__image`, style: imgStyle }, imageNode), typeof description === "string" ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$d}__description` }, description || locale.noData) : description, children));
|
|
19951
20020
|
};
|
|
19952
|
-
Empty.defaultProps = defaultProps$
|
|
20021
|
+
Empty.defaultProps = defaultProps$B;
|
|
19953
20022
|
Empty.displayName = "NutEmpty";
|
|
19954
|
-
const defaultProps$
|
|
20023
|
+
const defaultProps$A = {
|
|
19955
20024
|
...ComponentDefaults,
|
|
19956
20025
|
hasMore: true,
|
|
19957
20026
|
threshold: 200,
|
|
@@ -19959,7 +20028,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19959
20028
|
capture: false,
|
|
19960
20029
|
pullRefresh: false
|
|
19961
20030
|
};
|
|
19962
|
-
const classPrefix$
|
|
20031
|
+
const classPrefix$c = `nut-infiniteloading`;
|
|
19963
20032
|
const InfiniteLoading = (props) => {
|
|
19964
20033
|
const { locale } = useConfig();
|
|
19965
20034
|
const {
|
|
@@ -19978,7 +20047,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19978
20047
|
onScroll,
|
|
19979
20048
|
...restProps
|
|
19980
20049
|
} = {
|
|
19981
|
-
...defaultProps$
|
|
20050
|
+
...defaultProps$A,
|
|
19982
20051
|
...props
|
|
19983
20052
|
};
|
|
19984
20053
|
const [isInfiniting, setIsInfiniting] = React.useState(false);
|
|
@@ -19990,7 +20059,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19990
20059
|
const refreshMaxH = React.useRef(0);
|
|
19991
20060
|
const y2 = React.useRef(0);
|
|
19992
20061
|
const distance = React.useRef(0);
|
|
19993
|
-
const classes = classNames(className, classPrefix$
|
|
20062
|
+
const classes = classNames(className, classPrefix$c);
|
|
19994
20063
|
React.useEffect(() => {
|
|
19995
20064
|
if (target && document.getElementById(target)) {
|
|
19996
20065
|
scrollEl.current = document.getElementById(target);
|
|
@@ -20116,9 +20185,42 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20116
20185
|
/* @__PURE__ */ React.createElement("div", { className: "nut-infinite-bottom" }, isInfiniting ? /* @__PURE__ */ React.createElement("div", { className: "bottom-box" }, loadingText || locale.infiniteloading.loadText) : !hasMore && /* @__PURE__ */ React.createElement("div", { className: "tips" }, loadMoreText || locale.infiniteloading.loadMoreText))
|
|
20117
20186
|
);
|
|
20118
20187
|
};
|
|
20119
|
-
InfiniteLoading.defaultProps = defaultProps$
|
|
20188
|
+
InfiniteLoading.defaultProps = defaultProps$A;
|
|
20120
20189
|
InfiniteLoading.displayName = "NutInfiniteLoading";
|
|
20121
|
-
const
|
|
20190
|
+
const loadingMap = {
|
|
20191
|
+
circular: y$6,
|
|
20192
|
+
spinner: k$3
|
|
20193
|
+
};
|
|
20194
|
+
const defaultProps$z = {
|
|
20195
|
+
...ComponentDefaults,
|
|
20196
|
+
// 对比一下,个人感觉还是Loading1比较好看一些,所以用它作为了默认的loading图标
|
|
20197
|
+
type: "circular",
|
|
20198
|
+
direction: "horizontal"
|
|
20199
|
+
};
|
|
20200
|
+
const Loading = (props) => {
|
|
20201
|
+
const { className, style, children, direction, icon, ...rest } = {
|
|
20202
|
+
...defaultProps$z,
|
|
20203
|
+
...props
|
|
20204
|
+
};
|
|
20205
|
+
const classPrefix2 = "nut-loading";
|
|
20206
|
+
const CurLoadingIcon = loadingMap[rest.type] || y$6;
|
|
20207
|
+
return /* @__PURE__ */ React.createElement(
|
|
20208
|
+
"div",
|
|
20209
|
+
{
|
|
20210
|
+
className: classNames(
|
|
20211
|
+
classPrefix2,
|
|
20212
|
+
className,
|
|
20213
|
+
direction === "vertical" ? `${classPrefix2}-vertical` : ""
|
|
20214
|
+
),
|
|
20215
|
+
style
|
|
20216
|
+
},
|
|
20217
|
+
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-icon-box` }, icon || /* @__PURE__ */ React.createElement(CurLoadingIcon, { className: `${classPrefix2}-icon` })),
|
|
20218
|
+
children ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-text` }, children) : ""
|
|
20219
|
+
);
|
|
20220
|
+
};
|
|
20221
|
+
Loading.defaultProps = defaultProps$z;
|
|
20222
|
+
Loading.displayName = "NutLoading";
|
|
20223
|
+
const defaultProps$y = {
|
|
20122
20224
|
...ComponentDefaults,
|
|
20123
20225
|
direction: "horizontal",
|
|
20124
20226
|
list: [],
|
|
@@ -20156,7 +20258,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20156
20258
|
onClick,
|
|
20157
20259
|
onItemClick
|
|
20158
20260
|
} = {
|
|
20159
|
-
...defaultProps$
|
|
20261
|
+
...defaultProps$y,
|
|
20160
20262
|
...props
|
|
20161
20263
|
};
|
|
20162
20264
|
const classPrefix2 = "nut-noticebar";
|
|
@@ -20507,9 +20609,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20507
20609
|
)
|
|
20508
20610
|
) : null);
|
|
20509
20611
|
};
|
|
20510
|
-
NoticeBar.defaultProps = defaultProps$
|
|
20612
|
+
NoticeBar.defaultProps = defaultProps$y;
|
|
20511
20613
|
NoticeBar.displayName = "NutNoticeBar";
|
|
20512
|
-
const classPrefix$
|
|
20614
|
+
const classPrefix$b = "nut-notify";
|
|
20513
20615
|
let Notification$1 = (_a = class extends React__namespace.PureComponent {
|
|
20514
20616
|
constructor(props) {
|
|
20515
20617
|
super(props);
|
|
@@ -20560,10 +20662,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20560
20662
|
const { style, message, type: type2, className, position } = this.props;
|
|
20561
20663
|
const { show: show2 } = this.state;
|
|
20562
20664
|
const classes = classNames({
|
|
20563
|
-
[`${classPrefix$
|
|
20564
|
-
[`${classPrefix$
|
|
20565
|
-
[`${classPrefix$
|
|
20566
|
-
[`${classPrefix$
|
|
20665
|
+
[`${classPrefix$b}--popup-top`]: position === "top",
|
|
20666
|
+
[`${classPrefix$b}--popup-bottom`]: position === "bottom",
|
|
20667
|
+
[`${classPrefix$b}`]: true,
|
|
20668
|
+
[`${classPrefix$b}--${type2}`]: true
|
|
20567
20669
|
});
|
|
20568
20670
|
return /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, null, /* @__PURE__ */ React__namespace.createElement(
|
|
20569
20671
|
CSSTransition$1,
|
|
@@ -20672,12 +20774,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20672
20774
|
}
|
|
20673
20775
|
}
|
|
20674
20776
|
};
|
|
20675
|
-
const defaultProps$
|
|
20777
|
+
const defaultProps$x = {
|
|
20676
20778
|
...ComponentDefaults,
|
|
20677
20779
|
list: [],
|
|
20678
20780
|
location: "bottom",
|
|
20679
20781
|
visible: false,
|
|
20680
20782
|
offset: [0, 12],
|
|
20783
|
+
arrowOffset: 0,
|
|
20681
20784
|
targetId: "",
|
|
20682
20785
|
showArrow: true,
|
|
20683
20786
|
closeOnOutsideClick: true,
|
|
@@ -20690,7 +20793,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20690
20793
|
onClose: () => {
|
|
20691
20794
|
}
|
|
20692
20795
|
};
|
|
20693
|
-
const classPrefix$
|
|
20796
|
+
const classPrefix$a = `nut-popover`;
|
|
20694
20797
|
const Popover = (props) => {
|
|
20695
20798
|
const {
|
|
20696
20799
|
children,
|
|
@@ -20698,6 +20801,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20698
20801
|
location,
|
|
20699
20802
|
visible,
|
|
20700
20803
|
offset,
|
|
20804
|
+
arrowOffset,
|
|
20701
20805
|
targetId,
|
|
20702
20806
|
overlay,
|
|
20703
20807
|
closeOnOutsideClick,
|
|
@@ -20711,7 +20815,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20711
20815
|
onSelect,
|
|
20712
20816
|
...rest
|
|
20713
20817
|
} = {
|
|
20714
|
-
...defaultProps$
|
|
20818
|
+
...defaultProps$x,
|
|
20715
20819
|
...props
|
|
20716
20820
|
};
|
|
20717
20821
|
const popoverRef = React.useRef(null);
|
|
@@ -20777,7 +20881,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20777
20881
|
};
|
|
20778
20882
|
const classes = classNames(
|
|
20779
20883
|
{
|
|
20780
|
-
[`${classPrefix$
|
|
20884
|
+
[`${classPrefix$a}`]: true
|
|
20781
20885
|
},
|
|
20782
20886
|
className
|
|
20783
20887
|
);
|
|
@@ -20832,6 +20936,37 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20832
20936
|
}
|
|
20833
20937
|
return styles;
|
|
20834
20938
|
};
|
|
20939
|
+
const popoverArrowStyle = () => {
|
|
20940
|
+
const styles = {};
|
|
20941
|
+
const direction = location.split("-")[0];
|
|
20942
|
+
const skew = location.split("-")[1];
|
|
20943
|
+
const base = 16;
|
|
20944
|
+
if (props.arrowOffset !== 0) {
|
|
20945
|
+
if (["bottom", "top"].includes(direction)) {
|
|
20946
|
+
if (!skew) {
|
|
20947
|
+
styles.left = `calc(50% + ${arrowOffset}px)`;
|
|
20948
|
+
}
|
|
20949
|
+
if (skew === "start") {
|
|
20950
|
+
styles.left = `${base + arrowOffset}px`;
|
|
20951
|
+
}
|
|
20952
|
+
if (skew === "end") {
|
|
20953
|
+
styles.right = `${base - arrowOffset}px`;
|
|
20954
|
+
}
|
|
20955
|
+
}
|
|
20956
|
+
if (["left", "right"].includes(direction)) {
|
|
20957
|
+
if (!skew) {
|
|
20958
|
+
styles.top = `calc(50% - ${arrowOffset}px)`;
|
|
20959
|
+
}
|
|
20960
|
+
if (skew === "start") {
|
|
20961
|
+
styles.top = `${base - arrowOffset}px`;
|
|
20962
|
+
}
|
|
20963
|
+
if (skew === "end") {
|
|
20964
|
+
styles.bottom = `${base + arrowOffset}px`;
|
|
20965
|
+
}
|
|
20966
|
+
}
|
|
20967
|
+
}
|
|
20968
|
+
return styles;
|
|
20969
|
+
};
|
|
20835
20970
|
const handleSelect = (item, index) => {
|
|
20836
20971
|
if (!item.disabled) {
|
|
20837
20972
|
onSelect && onSelect(item, index);
|
|
@@ -20866,7 +21001,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20866
21001
|
position: "default",
|
|
20867
21002
|
...rest
|
|
20868
21003
|
},
|
|
20869
|
-
/* @__PURE__ */ React.createElement("div", { className: "nut-popover-content-group", ref: popoverContentRef }, showArrow && /* @__PURE__ */ React.createElement("div", { className: popoverArrow() }), Array.isArray(children) ? children[1] : "", list.map((item, index) => {
|
|
21004
|
+
/* @__PURE__ */ React.createElement("div", { className: "nut-popover-content-group", ref: popoverContentRef }, showArrow && /* @__PURE__ */ React.createElement("div", { className: popoverArrow(), style: popoverArrowStyle() }), Array.isArray(children) ? children[1] : "", list.map((item, index) => {
|
|
20870
21005
|
return /* @__PURE__ */ React.createElement(
|
|
20871
21006
|
"div",
|
|
20872
21007
|
{
|
|
@@ -20886,7 +21021,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20886
21021
|
}))
|
|
20887
21022
|
)));
|
|
20888
21023
|
};
|
|
20889
|
-
Popover.defaultProps = defaultProps$
|
|
21024
|
+
Popover.defaultProps = defaultProps$x;
|
|
20890
21025
|
Popover.displayName = "NutPopover";
|
|
20891
21026
|
function bound(position, min, max) {
|
|
20892
21027
|
let ret = position;
|
|
@@ -20924,7 +21059,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20924
21059
|
console.log(e);
|
|
20925
21060
|
}
|
|
20926
21061
|
}
|
|
20927
|
-
const defaultProps$
|
|
21062
|
+
const defaultProps$w = {
|
|
20928
21063
|
...ComponentDefaults,
|
|
20929
21064
|
pullingText: "",
|
|
20930
21065
|
canReleaseText: "",
|
|
@@ -20941,7 +21076,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20941
21076
|
const classPrefix2 = "nut-pulltorefresh";
|
|
20942
21077
|
const { locale } = useConfig();
|
|
20943
21078
|
const props = {
|
|
20944
|
-
...defaultProps$
|
|
21079
|
+
...defaultProps$w,
|
|
20945
21080
|
...p,
|
|
20946
21081
|
...{
|
|
20947
21082
|
pullingText: p.pullingText || locale.pullToRefresh.pullingText,
|
|
@@ -21084,10 +21219,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21084
21219
|
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-content` }, props.children)
|
|
21085
21220
|
);
|
|
21086
21221
|
};
|
|
21087
|
-
PullToRefresh.defaultProps = defaultProps$
|
|
21222
|
+
PullToRefresh.defaultProps = defaultProps$w;
|
|
21088
21223
|
PullToRefresh.displayName = "NutPullToRefresh";
|
|
21089
21224
|
const AvatarContext = React.createContext({});
|
|
21090
|
-
const defaultProps$
|
|
21225
|
+
const defaultProps$v = {
|
|
21091
21226
|
...ComponentDefaults,
|
|
21092
21227
|
maxContent: "",
|
|
21093
21228
|
max: "",
|
|
@@ -21096,21 +21231,21 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21096
21231
|
gap: "-8",
|
|
21097
21232
|
level: "left"
|
|
21098
21233
|
};
|
|
21099
|
-
const classPrefix$
|
|
21234
|
+
const classPrefix$9 = `nut-avatar-group`;
|
|
21100
21235
|
const AvatarGroup = (props) => {
|
|
21101
|
-
const propAvatarGroup = { ...defaultProps$
|
|
21236
|
+
const propAvatarGroup = { ...defaultProps$v, ...props };
|
|
21102
21237
|
const { className, style, children } = propAvatarGroup;
|
|
21103
21238
|
const avatarGroupRef = React.useRef(null);
|
|
21104
|
-
const cls = classNames(classPrefix$
|
|
21239
|
+
const cls = classNames(classPrefix$9, className);
|
|
21105
21240
|
const parentAvatar = {
|
|
21106
21241
|
propAvatarGroup,
|
|
21107
21242
|
avatarGroupRef
|
|
21108
21243
|
};
|
|
21109
21244
|
return /* @__PURE__ */ React.createElement(AvatarContext.Provider, { value: parentAvatar }, /* @__PURE__ */ React.createElement("div", { className: cls, style, ref: avatarGroupRef }, children));
|
|
21110
21245
|
};
|
|
21111
|
-
AvatarGroup.defaultProps = defaultProps$
|
|
21246
|
+
AvatarGroup.defaultProps = defaultProps$v;
|
|
21112
21247
|
AvatarGroup.displayName = "NutAvatarGroup";
|
|
21113
|
-
const defaultProps$
|
|
21248
|
+
const defaultProps$u = {
|
|
21114
21249
|
...ComponentDefaults,
|
|
21115
21250
|
size: "",
|
|
21116
21251
|
shape: "round",
|
|
@@ -21121,7 +21256,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21121
21256
|
src: "",
|
|
21122
21257
|
alt: ""
|
|
21123
21258
|
};
|
|
21124
|
-
const classPrefix$
|
|
21259
|
+
const classPrefix$8 = `nut-avatar`;
|
|
21125
21260
|
const Avatar = (props) => {
|
|
21126
21261
|
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
21127
21262
|
const {
|
|
@@ -21140,7 +21275,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21140
21275
|
onError,
|
|
21141
21276
|
...rest
|
|
21142
21277
|
} = {
|
|
21143
|
-
...defaultProps$
|
|
21278
|
+
...defaultProps$u,
|
|
21144
21279
|
...props
|
|
21145
21280
|
};
|
|
21146
21281
|
const [maxSum, setMaxSum] = React.useState(0);
|
|
@@ -21153,7 +21288,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21153
21288
|
[`nut-avatar-${((_a2 = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _a2.size) || size || "normal"}`]: true,
|
|
21154
21289
|
[`nut-avatar-${((_b = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _b.shape) || shape}`]: true
|
|
21155
21290
|
});
|
|
21156
|
-
const cls = classNames(classPrefix$
|
|
21291
|
+
const cls = classNames(classPrefix$8, classes, className);
|
|
21157
21292
|
const styles = {
|
|
21158
21293
|
width: sizeValue.indexOf(size) > -1 ? "" : `${size}px`,
|
|
21159
21294
|
height: sizeValue.indexOf(size) > -1 ? "" : `${size}px`,
|
|
@@ -21222,10 +21357,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21222
21357
|
showMax && /* @__PURE__ */ React.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)}`)
|
|
21223
21358
|
));
|
|
21224
21359
|
};
|
|
21225
|
-
Avatar.defaultProps = defaultProps$
|
|
21360
|
+
Avatar.defaultProps = defaultProps$u;
|
|
21226
21361
|
Avatar.displayName = "NutAvatar";
|
|
21227
21362
|
Avatar.Group = AvatarGroup;
|
|
21228
|
-
const defaultProps$
|
|
21363
|
+
const defaultProps$t = {
|
|
21229
21364
|
...ComponentDefaults,
|
|
21230
21365
|
rows: 1,
|
|
21231
21366
|
animated: false,
|
|
@@ -21248,7 +21383,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21248
21383
|
avatarShape,
|
|
21249
21384
|
...rest
|
|
21250
21385
|
} = {
|
|
21251
|
-
...defaultProps$
|
|
21386
|
+
...defaultProps$t,
|
|
21252
21387
|
...props
|
|
21253
21388
|
};
|
|
21254
21389
|
const classPrefix2 = "nut-skeleton";
|
|
@@ -21284,7 +21419,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21284
21419
|
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__block`, key: index });
|
|
21285
21420
|
})))));
|
|
21286
21421
|
};
|
|
21287
|
-
Skeleton.defaultProps = defaultProps$
|
|
21422
|
+
Skeleton.defaultProps = defaultProps$t;
|
|
21288
21423
|
Skeleton.displayName = "NutSkeleton";
|
|
21289
21424
|
function preventDefault(event, isStopPropagation) {
|
|
21290
21425
|
if (typeof event.cancelable !== "boolean" || event.cancelable) {
|
|
@@ -21294,13 +21429,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21294
21429
|
event.stopPropagation();
|
|
21295
21430
|
}
|
|
21296
21431
|
}
|
|
21297
|
-
const defaultProps$
|
|
21432
|
+
const defaultProps$s = {
|
|
21298
21433
|
name: ""
|
|
21299
21434
|
};
|
|
21300
21435
|
const Swipe = React.forwardRef((props, instanceRef) => {
|
|
21301
21436
|
const classPrefix2 = "nut-swipe";
|
|
21302
21437
|
const touch = useTouch();
|
|
21303
|
-
const { children, className, style } = { ...defaultProps$
|
|
21438
|
+
const { children, className, style } = { ...defaultProps$s, ...props };
|
|
21304
21439
|
const root2 = React.useRef();
|
|
21305
21440
|
const opened = React.useRef(false);
|
|
21306
21441
|
const lockClick = React.useRef(false);
|
|
@@ -21468,9 +21603,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21468
21603
|
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__wrapper`, style: wrapperStyle }, renderActionContent("left", leftRef), children, renderActionContent("right", rightRef))
|
|
21469
21604
|
);
|
|
21470
21605
|
});
|
|
21471
|
-
Swipe.defaultProps = defaultProps$
|
|
21606
|
+
Swipe.defaultProps = defaultProps$s;
|
|
21472
21607
|
Swipe.displayName = "NutSwipe";
|
|
21473
|
-
const classPrefix$
|
|
21608
|
+
const classPrefix$7 = "nut-toast";
|
|
21474
21609
|
class Notification extends React__namespace.PureComponent {
|
|
21475
21610
|
constructor(props) {
|
|
21476
21611
|
super(props);
|
|
@@ -21532,7 +21667,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21532
21667
|
iconNode = /* @__PURE__ */ React__namespace.createElement(x$8, null);
|
|
21533
21668
|
break;
|
|
21534
21669
|
}
|
|
21535
|
-
return /* @__PURE__ */ React__namespace.createElement("p", { className: `${classPrefix$
|
|
21670
|
+
return /* @__PURE__ */ React__namespace.createElement("p", { className: `${classPrefix$7}__icon-wrapper` }, iconNode);
|
|
21536
21671
|
}
|
|
21537
21672
|
return icon;
|
|
21538
21673
|
}
|
|
@@ -21567,22 +21702,22 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21567
21702
|
{
|
|
21568
21703
|
visible: show2,
|
|
21569
21704
|
style,
|
|
21570
|
-
className: `${classPrefix$
|
|
21705
|
+
className: `${classPrefix$7}__overlay-default ${className}`,
|
|
21571
21706
|
onClick: () => {
|
|
21572
21707
|
this.clickCover();
|
|
21573
21708
|
},
|
|
21574
21709
|
closeOnOverlayClick,
|
|
21575
21710
|
lockScroll
|
|
21576
21711
|
},
|
|
21577
|
-
/* @__PURE__ */ React__namespace.createElement("div", { className: `${classPrefix$
|
|
21712
|
+
/* @__PURE__ */ React__namespace.createElement("div", { className: `${classPrefix$7} ${classes}`, id: `toast-${id}` }, /* @__PURE__ */ React__namespace.createElement(
|
|
21578
21713
|
"div",
|
|
21579
21714
|
{
|
|
21580
|
-
className: `${classPrefix$
|
|
21715
|
+
className: `${classPrefix$7}__inner ${classPrefix$7}-${position} ${contentClassName}`,
|
|
21581
21716
|
style: contentStyle
|
|
21582
21717
|
},
|
|
21583
21718
|
this.renderIcon(),
|
|
21584
|
-
title ? /* @__PURE__ */ React__namespace.createElement("div", { className: `${classPrefix$
|
|
21585
|
-
/* @__PURE__ */ React__namespace.createElement("span", { className: `${classPrefix$
|
|
21719
|
+
title ? /* @__PURE__ */ React__namespace.createElement("div", { className: `${classPrefix$7}-title` }, title) : null,
|
|
21720
|
+
/* @__PURE__ */ React__namespace.createElement("span", { className: `${classPrefix$7}-text` }, content)
|
|
21586
21721
|
))
|
|
21587
21722
|
));
|
|
21588
21723
|
}
|
|
@@ -21689,7 +21824,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21689
21824
|
}
|
|
21690
21825
|
}
|
|
21691
21826
|
};
|
|
21692
|
-
const defaultProps$
|
|
21827
|
+
const defaultProps$r = {
|
|
21693
21828
|
...ComponentDefaults,
|
|
21694
21829
|
type: "shake",
|
|
21695
21830
|
action: "initial",
|
|
@@ -21697,16 +21832,16 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21697
21832
|
onClick: (event) => {
|
|
21698
21833
|
}
|
|
21699
21834
|
};
|
|
21700
|
-
const classPrefix$
|
|
21835
|
+
const classPrefix$6 = `nut-animate`;
|
|
21701
21836
|
const Animate = (props) => {
|
|
21702
21837
|
const { className, type: type2, action, loop: loop2, onClick, children, ...rest } = {
|
|
21703
|
-
...defaultProps$
|
|
21838
|
+
...defaultProps$r,
|
|
21704
21839
|
...props
|
|
21705
21840
|
};
|
|
21706
21841
|
const [clicked, setClicked] = React.useState(false);
|
|
21707
21842
|
const classes = classNames({
|
|
21708
21843
|
"nut-ani-container": true,
|
|
21709
|
-
[`${classPrefix$
|
|
21844
|
+
[`${classPrefix$6}-${type2}`]: action === "initial" || clicked ? type2 : false,
|
|
21710
21845
|
loop: loop2
|
|
21711
21846
|
});
|
|
21712
21847
|
const cls = classNames(classes, className);
|
|
@@ -21721,9 +21856,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21721
21856
|
};
|
|
21722
21857
|
return /* @__PURE__ */ React.createElement("div", { className: "nut-animate" }, /* @__PURE__ */ React.createElement("div", { className: cls, onClick: handleClick2, ...rest }, children));
|
|
21723
21858
|
};
|
|
21724
|
-
Animate.defaultProps = defaultProps$
|
|
21859
|
+
Animate.defaultProps = defaultProps$r;
|
|
21725
21860
|
Animate.displayName = "NutAnimate";
|
|
21726
|
-
const defaultProps$
|
|
21861
|
+
const defaultProps$q = {
|
|
21727
21862
|
...ComponentDefaults,
|
|
21728
21863
|
length: 0,
|
|
21729
21864
|
value: "",
|
|
@@ -21742,7 +21877,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21742
21877
|
style,
|
|
21743
21878
|
...reset
|
|
21744
21879
|
} = {
|
|
21745
|
-
...defaultProps$
|
|
21880
|
+
...defaultProps$q,
|
|
21746
21881
|
...props
|
|
21747
21882
|
};
|
|
21748
21883
|
const classPrefix2 = "nut-countup";
|
|
@@ -21806,9 +21941,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21806
21941
|
);
|
|
21807
21942
|
})));
|
|
21808
21943
|
};
|
|
21809
|
-
CountUp.defaultProps = defaultProps$
|
|
21944
|
+
CountUp.defaultProps = defaultProps$q;
|
|
21810
21945
|
CountUp.displayName = "NutCountUp";
|
|
21811
|
-
const defaultProps$
|
|
21946
|
+
const defaultProps$p = {};
|
|
21812
21947
|
class AnimatingNumbers extends React.Component {
|
|
21813
21948
|
constructor(props) {
|
|
21814
21949
|
super(props);
|
|
@@ -21818,11 +21953,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21818
21953
|
return /* @__PURE__ */ React.createElement("div", { className: "nut-animatingnumbers" });
|
|
21819
21954
|
}
|
|
21820
21955
|
}
|
|
21821
|
-
__publicField(AnimatingNumbers, "defaultProps", defaultProps$
|
|
21956
|
+
__publicField(AnimatingNumbers, "defaultProps", defaultProps$p);
|
|
21822
21957
|
__publicField(AnimatingNumbers, "displayName", "NutAnimatingNumbers");
|
|
21823
21958
|
__publicField(AnimatingNumbers, "CountUp", CountUp);
|
|
21824
21959
|
AnimatingNumbers.CountUp = CountUp;
|
|
21825
|
-
const defaultProps$
|
|
21960
|
+
const defaultProps$o = {
|
|
21826
21961
|
...ComponentDefaults,
|
|
21827
21962
|
src: "",
|
|
21828
21963
|
muted: false,
|
|
@@ -21865,7 +22000,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21865
22000
|
children,
|
|
21866
22001
|
...rest
|
|
21867
22002
|
} = {
|
|
21868
|
-
...defaultProps$
|
|
22003
|
+
...defaultProps$o,
|
|
21869
22004
|
...props
|
|
21870
22005
|
};
|
|
21871
22006
|
const [playing, setPlaying] = React.useState(false);
|
|
@@ -22071,9 +22206,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22071
22206
|
/* @__PURE__ */ React.createElement("track", { kind: "captions" })
|
|
22072
22207
|
));
|
|
22073
22208
|
};
|
|
22074
|
-
Audio.defaultProps = defaultProps$
|
|
22209
|
+
Audio.defaultProps = defaultProps$o;
|
|
22075
22210
|
Audio.displayName = "NutAudio";
|
|
22076
|
-
const defaultProps$
|
|
22211
|
+
const defaultProps$n = {
|
|
22077
22212
|
...ComponentDefaults,
|
|
22078
22213
|
strokeWidth: 5,
|
|
22079
22214
|
radius: 50,
|
|
@@ -22082,7 +22217,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22082
22217
|
background: "#e5e9f2",
|
|
22083
22218
|
clockwise: true
|
|
22084
22219
|
};
|
|
22085
|
-
const classPrefix$
|
|
22220
|
+
const classPrefix$5 = `nut-circleprogress`;
|
|
22086
22221
|
const CircleProgress = (props) => {
|
|
22087
22222
|
var _a2;
|
|
22088
22223
|
const {
|
|
@@ -22098,10 +22233,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22098
22233
|
strokeLinecap,
|
|
22099
22234
|
...restProps
|
|
22100
22235
|
} = {
|
|
22101
|
-
...defaultProps$
|
|
22236
|
+
...defaultProps$n,
|
|
22102
22237
|
...props
|
|
22103
22238
|
};
|
|
22104
|
-
const classes = classNames(className, classPrefix$
|
|
22239
|
+
const classes = classNames(className, classPrefix$5);
|
|
22105
22240
|
const refRandomId = Math.random().toString(36).slice(-8);
|
|
22106
22241
|
const styles = {
|
|
22107
22242
|
height: `${Number(radius) * 2}px`,
|
|
@@ -22167,7 +22302,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22167
22302
|
}
|
|
22168
22303
|
)), /* @__PURE__ */ React.createElement("div", { className: "nut-circleprogress-text" }, children));
|
|
22169
22304
|
};
|
|
22170
|
-
CircleProgress.defaultProps = defaultProps$
|
|
22305
|
+
CircleProgress.defaultProps = defaultProps$n;
|
|
22171
22306
|
CircleProgress.displayName = "NutCircleProgress";
|
|
22172
22307
|
const collapseContext = {
|
|
22173
22308
|
isOpen: (name) => {
|
|
@@ -22179,7 +22314,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22179
22314
|
rotate: 180
|
|
22180
22315
|
};
|
|
22181
22316
|
const CollapseContext = React.createContext(collapseContext);
|
|
22182
|
-
const defaultProps$
|
|
22317
|
+
const defaultProps$m = {
|
|
22183
22318
|
...ComponentDefaults,
|
|
22184
22319
|
title: null,
|
|
22185
22320
|
name: "",
|
|
@@ -22200,7 +22335,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22200
22335
|
className,
|
|
22201
22336
|
...rest
|
|
22202
22337
|
} = {
|
|
22203
|
-
...defaultProps$
|
|
22338
|
+
...defaultProps$m,
|
|
22204
22339
|
...props
|
|
22205
22340
|
};
|
|
22206
22341
|
const classPrefix2 = "nut-collapse-item";
|
|
@@ -22277,9 +22412,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22277
22412
|
/* @__PURE__ */ React.createElement("div", { ref: contentRef, className: `${classPrefix2}__content-text` }, children)
|
|
22278
22413
|
));
|
|
22279
22414
|
};
|
|
22280
|
-
CollapseItem.defaultProps = defaultProps$
|
|
22415
|
+
CollapseItem.defaultProps = defaultProps$m;
|
|
22281
22416
|
CollapseItem.displayName = "NutCollapseItem";
|
|
22282
|
-
const defaultProps$
|
|
22417
|
+
const defaultProps$l = {
|
|
22283
22418
|
...ComponentDefaults,
|
|
22284
22419
|
defaultActiveName: [],
|
|
22285
22420
|
accordion: false,
|
|
@@ -22298,7 +22433,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22298
22433
|
rotate,
|
|
22299
22434
|
onChange
|
|
22300
22435
|
} = {
|
|
22301
|
-
...defaultProps$
|
|
22436
|
+
...defaultProps$l,
|
|
22302
22437
|
...props
|
|
22303
22438
|
};
|
|
22304
22439
|
const classPrefix2 = "nut-collapse";
|
|
@@ -22355,10 +22490,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22355
22490
|
/* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className), style }, children)
|
|
22356
22491
|
);
|
|
22357
22492
|
};
|
|
22358
|
-
Collapse.defaultProps = defaultProps$
|
|
22493
|
+
Collapse.defaultProps = defaultProps$l;
|
|
22359
22494
|
Collapse.displayName = "NutCollapse";
|
|
22360
22495
|
Collapse.Item = CollapseItem;
|
|
22361
|
-
const defaultProps$
|
|
22496
|
+
const defaultProps$k = {
|
|
22362
22497
|
...ComponentDefaults,
|
|
22363
22498
|
paused: false,
|
|
22364
22499
|
startTime: Date.now(),
|
|
@@ -22390,7 +22525,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22390
22525
|
onUpdate,
|
|
22391
22526
|
children,
|
|
22392
22527
|
...rest
|
|
22393
|
-
} = { ...defaultProps$
|
|
22528
|
+
} = { ...defaultProps$k, ...props };
|
|
22394
22529
|
const classPrefix2 = "nut-countdown";
|
|
22395
22530
|
const [restTimeStamp, setRestTime] = React.useState(0);
|
|
22396
22531
|
const stateRef = React.useRef({
|
|
@@ -22601,9 +22736,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22601
22736
|
);
|
|
22602
22737
|
};
|
|
22603
22738
|
const CountDown = React.forwardRef(InternalCountDown);
|
|
22604
|
-
CountDown.defaultProps = defaultProps$
|
|
22739
|
+
CountDown.defaultProps = defaultProps$k;
|
|
22605
22740
|
CountDown.displayName = "NutCountDown";
|
|
22606
|
-
const defaultProps$
|
|
22741
|
+
const defaultProps$j = {
|
|
22607
22742
|
...ComponentDefaults,
|
|
22608
22743
|
content: "",
|
|
22609
22744
|
direction: "end",
|
|
@@ -22613,7 +22748,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22613
22748
|
symbol: "...",
|
|
22614
22749
|
lineHeight: "20"
|
|
22615
22750
|
};
|
|
22616
|
-
const classPrefix$
|
|
22751
|
+
const classPrefix$4 = `nut-ellipsis`;
|
|
22617
22752
|
const Ellipsis = (props) => {
|
|
22618
22753
|
var _a2, _b;
|
|
22619
22754
|
const {
|
|
@@ -22629,14 +22764,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22629
22764
|
onClick,
|
|
22630
22765
|
onChange,
|
|
22631
22766
|
...rest
|
|
22632
|
-
} = { ...defaultProps$
|
|
22767
|
+
} = { ...defaultProps$j, ...props };
|
|
22633
22768
|
let container = null;
|
|
22634
22769
|
let maxHeight = 0;
|
|
22635
22770
|
const [exceeded, setExceeded] = React.useState(false);
|
|
22636
22771
|
const [expanded, setExpanded] = React.useState(false);
|
|
22637
22772
|
const ellipsis = React.useRef();
|
|
22638
22773
|
const root2 = React.useRef(null);
|
|
22639
|
-
const classes = classNames(classPrefix$
|
|
22774
|
+
const classes = classNames(classPrefix$4, className);
|
|
22640
22775
|
React.useLayoutEffect(() => {
|
|
22641
22776
|
if (content) {
|
|
22642
22777
|
createContainer();
|
|
@@ -22777,9 +22912,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22777
22912
|
collapseText
|
|
22778
22913
|
) : null) : null));
|
|
22779
22914
|
};
|
|
22780
|
-
Ellipsis.defaultProps = defaultProps$
|
|
22915
|
+
Ellipsis.defaultProps = defaultProps$j;
|
|
22781
22916
|
Ellipsis.displayName = "NutEllipsis";
|
|
22782
|
-
const defaultProps$
|
|
22917
|
+
const defaultProps$i = {
|
|
22783
22918
|
...ComponentDefaults,
|
|
22784
22919
|
source: {
|
|
22785
22920
|
type: {},
|
|
@@ -22795,7 +22930,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22795
22930
|
loop: false
|
|
22796
22931
|
}
|
|
22797
22932
|
};
|
|
22798
|
-
const classPrefix$
|
|
22933
|
+
const classPrefix$3 = `nut-video`;
|
|
22799
22934
|
const Video = (props) => {
|
|
22800
22935
|
const {
|
|
22801
22936
|
children,
|
|
@@ -22807,11 +22942,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22807
22942
|
onPlayEnd,
|
|
22808
22943
|
...restProps
|
|
22809
22944
|
} = {
|
|
22810
|
-
...defaultProps$
|
|
22945
|
+
...defaultProps$i,
|
|
22811
22946
|
...props
|
|
22812
22947
|
};
|
|
22813
22948
|
const rootRef = React.useRef(null);
|
|
22814
|
-
const classes = classNames(className, classPrefix$
|
|
22949
|
+
const classes = classNames(className, classPrefix$3);
|
|
22815
22950
|
React.useEffect(() => {
|
|
22816
22951
|
init();
|
|
22817
22952
|
}, []);
|
|
@@ -22857,22 +22992,22 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22857
22992
|
/* @__PURE__ */ React.createElement("track", { kind: "captions" })
|
|
22858
22993
|
));
|
|
22859
22994
|
};
|
|
22860
|
-
Video.defaultProps = defaultProps$
|
|
22995
|
+
Video.defaultProps = defaultProps$i;
|
|
22861
22996
|
Video.displayName = "NutVideo";
|
|
22862
22997
|
const DataContext$1 = React.createContext({});
|
|
22863
|
-
const defaultProps$
|
|
22998
|
+
const defaultProps$h = {
|
|
22864
22999
|
total: 3,
|
|
22865
23000
|
current: 0,
|
|
22866
23001
|
direction: "horizontal"
|
|
22867
23002
|
};
|
|
22868
|
-
const classPrefix$
|
|
23003
|
+
const classPrefix$2 = `nut-indicator`;
|
|
22869
23004
|
const Indicator = (props) => {
|
|
22870
23005
|
const { total, current, children, className, direction, ...rest } = {
|
|
22871
|
-
...defaultProps$
|
|
23006
|
+
...defaultProps$h,
|
|
22872
23007
|
...props
|
|
22873
23008
|
};
|
|
22874
23009
|
const classes = classNames({
|
|
22875
|
-
[`${classPrefix$
|
|
23010
|
+
[`${classPrefix$2}__vertical`]: direction === "vertical"
|
|
22876
23011
|
});
|
|
22877
23012
|
const renderElement = () => {
|
|
22878
23013
|
const childs = [];
|
|
@@ -22882,18 +23017,18 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22882
23017
|
"div",
|
|
22883
23018
|
{
|
|
22884
23019
|
key: item,
|
|
22885
|
-
className: `${classPrefix$
|
|
23020
|
+
className: `${classPrefix$2}__dot ${classPrefix$2}__active`
|
|
22886
23021
|
}
|
|
22887
|
-
) : /* @__PURE__ */ React.createElement("div", { key: item, className: `${classPrefix$
|
|
23022
|
+
) : /* @__PURE__ */ React.createElement("div", { key: item, className: `${classPrefix$2}__dot` })
|
|
22888
23023
|
);
|
|
22889
23024
|
}
|
|
22890
23025
|
return childs;
|
|
22891
23026
|
};
|
|
22892
23027
|
return /* @__PURE__ */ React.createElement("div", { className: classNames(classes, className), ...rest }, renderElement());
|
|
22893
23028
|
};
|
|
22894
|
-
Indicator.defaultProps = defaultProps$
|
|
23029
|
+
Indicator.defaultProps = defaultProps$h;
|
|
22895
23030
|
Indicator.displayName = "NutIndicator";
|
|
22896
|
-
const defaultProps$
|
|
23031
|
+
const defaultProps$g = {
|
|
22897
23032
|
width: typeof window === "object" ? window.innerWidth : 375,
|
|
22898
23033
|
height: 0,
|
|
22899
23034
|
duration: 500,
|
|
@@ -22910,7 +23045,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22910
23045
|
};
|
|
22911
23046
|
const DISTANCE = 5;
|
|
22912
23047
|
const Swiper = React.forwardRef((props, ref) => {
|
|
22913
|
-
const propSwiper = { ...defaultProps$
|
|
23048
|
+
const propSwiper = { ...defaultProps$g, ...props };
|
|
22914
23049
|
const {
|
|
22915
23050
|
children,
|
|
22916
23051
|
direction,
|
|
@@ -23323,14 +23458,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23323
23458
|
renderIndicator()
|
|
23324
23459
|
));
|
|
23325
23460
|
});
|
|
23326
|
-
Swiper.defaultProps = defaultProps$
|
|
23461
|
+
Swiper.defaultProps = defaultProps$g;
|
|
23327
23462
|
Swiper.displayName = "NutSwiper";
|
|
23328
|
-
const defaultProps$
|
|
23463
|
+
const defaultProps$f = {
|
|
23329
23464
|
direction: "horizontal"
|
|
23330
23465
|
};
|
|
23331
23466
|
const SwiperItem = React.forwardRef((props, ref) => {
|
|
23332
23467
|
const classPrefix2 = "nut-swiper-item";
|
|
23333
|
-
const _props = { ...defaultProps$
|
|
23468
|
+
const _props = { ...defaultProps$f, ...props };
|
|
23334
23469
|
const { className, style, children, direction, size } = _props;
|
|
23335
23470
|
const parent = React.useContext(DataContext$1);
|
|
23336
23471
|
const classes = classNames(classPrefix2, className);
|
|
@@ -23345,11 +23480,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23345
23480
|
};
|
|
23346
23481
|
return /* @__PURE__ */ React.createElement("div", { className: classes, style: { ...style, ...getStyle() } }, children);
|
|
23347
23482
|
});
|
|
23348
|
-
SwiperItem.defaultProps = defaultProps$
|
|
23483
|
+
SwiperItem.defaultProps = defaultProps$f;
|
|
23349
23484
|
SwiperItem.displayName = "NutSwiperItem";
|
|
23350
23485
|
const InnerSwiper = Swiper;
|
|
23351
23486
|
InnerSwiper.Item = SwiperItem;
|
|
23352
|
-
const defaultProps$
|
|
23487
|
+
const defaultProps$e = {
|
|
23353
23488
|
...ComponentDefaults,
|
|
23354
23489
|
images: [],
|
|
23355
23490
|
videos: [],
|
|
@@ -23551,9 +23686,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23551
23686
|
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-index` }, active, "/", (images ? images.length : 0) + (videos ? videos.length : 0))
|
|
23552
23687
|
);
|
|
23553
23688
|
};
|
|
23554
|
-
ImagePreview.defaultProps = defaultProps$
|
|
23689
|
+
ImagePreview.defaultProps = defaultProps$e;
|
|
23555
23690
|
ImagePreview.displayName = "NutImagePreview";
|
|
23556
|
-
const defaultProps$
|
|
23691
|
+
const defaultProps$d = {
|
|
23557
23692
|
...ComponentDefaults,
|
|
23558
23693
|
defaultValue: 1,
|
|
23559
23694
|
mode: "multi",
|
|
@@ -23581,7 +23716,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23581
23716
|
className,
|
|
23582
23717
|
...rest
|
|
23583
23718
|
} = {
|
|
23584
|
-
...defaultProps$
|
|
23719
|
+
...defaultProps$d,
|
|
23585
23720
|
...props
|
|
23586
23721
|
};
|
|
23587
23722
|
const classPrefix2 = "nut-pagination";
|
|
@@ -23663,9 +23798,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23663
23798
|
next || locale.pagination.next
|
|
23664
23799
|
));
|
|
23665
23800
|
};
|
|
23666
|
-
Pagination.defaultProps = defaultProps$
|
|
23801
|
+
Pagination.defaultProps = defaultProps$d;
|
|
23667
23802
|
Pagination.displayName = "NutPagination";
|
|
23668
|
-
const defaultProps$
|
|
23803
|
+
const defaultProps$c = {
|
|
23669
23804
|
...ComponentDefaults,
|
|
23670
23805
|
price: 0,
|
|
23671
23806
|
symbol: "¥",
|
|
@@ -23688,7 +23823,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23688
23823
|
style,
|
|
23689
23824
|
...rest
|
|
23690
23825
|
} = {
|
|
23691
|
-
...defaultProps$
|
|
23826
|
+
...defaultProps$c,
|
|
23692
23827
|
...props
|
|
23693
23828
|
};
|
|
23694
23829
|
const classPrefix2 = "nut-price";
|
|
@@ -23768,10 +23903,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23768
23903
|
symbol && position === "after" ? renderSymbol() : null
|
|
23769
23904
|
);
|
|
23770
23905
|
};
|
|
23771
|
-
Price.defaultProps = defaultProps$
|
|
23906
|
+
Price.defaultProps = defaultProps$c;
|
|
23772
23907
|
Price.displayName = "NutPrice";
|
|
23773
23908
|
const DataContext = React.createContext({});
|
|
23774
|
-
const defaultProps$
|
|
23909
|
+
const defaultProps$b = {
|
|
23775
23910
|
...ComponentDefaults,
|
|
23776
23911
|
title: "",
|
|
23777
23912
|
description: "",
|
|
@@ -23780,7 +23915,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23780
23915
|
};
|
|
23781
23916
|
const Step = (props) => {
|
|
23782
23917
|
const { children, title, description, value, icon, className, ...restProps } = {
|
|
23783
|
-
...defaultProps$
|
|
23918
|
+
...defaultProps$b,
|
|
23784
23919
|
...props
|
|
23785
23920
|
};
|
|
23786
23921
|
const parent = React.useContext(DataContext);
|
|
@@ -23814,16 +23949,16 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23814
23949
|
};
|
|
23815
23950
|
return /* @__PURE__ */ React.createElement("div", { className: classes, ...restProps, onClick: handleClickStep }, /* @__PURE__ */ React.createElement("div", { className: "nut-step-head" }, /* @__PURE__ */ React.createElement("div", { className: "nut-step-line" }), /* @__PURE__ */ React.createElement("div", { className: renderIconClass() }, icon || !dot && /* @__PURE__ */ React.createElement("span", { className: "nut-step-inner" }, value))), /* @__PURE__ */ React.createElement("div", { className: "nut-step-main" }, /* @__PURE__ */ React.createElement("span", { className: "nut-step-title" }, title), description && /* @__PURE__ */ React.createElement("span", { className: "nut-step-description" }, description)));
|
|
23816
23951
|
};
|
|
23817
|
-
Step.defaultProps = defaultProps$
|
|
23952
|
+
Step.defaultProps = defaultProps$b;
|
|
23818
23953
|
Step.displayName = "NutStep";
|
|
23819
|
-
const defaultProps$
|
|
23954
|
+
const defaultProps$a = {
|
|
23820
23955
|
...ComponentDefaults,
|
|
23821
23956
|
value: 0,
|
|
23822
23957
|
direction: "horizontal",
|
|
23823
23958
|
dot: false
|
|
23824
23959
|
};
|
|
23825
23960
|
const Steps = (props) => {
|
|
23826
|
-
const propSteps = { ...defaultProps$
|
|
23961
|
+
const propSteps = { ...defaultProps$a, ...props };
|
|
23827
23962
|
const {
|
|
23828
23963
|
children,
|
|
23829
23964
|
value,
|
|
@@ -23854,9 +23989,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23854
23989
|
children
|
|
23855
23990
|
));
|
|
23856
23991
|
};
|
|
23857
|
-
Steps.defaultProps = defaultProps$
|
|
23992
|
+
Steps.defaultProps = defaultProps$a;
|
|
23858
23993
|
Steps.displayName = "NutSteps";
|
|
23859
|
-
const defaultProps$
|
|
23994
|
+
const defaultProps$9 = {
|
|
23860
23995
|
...ComponentDefaults,
|
|
23861
23996
|
columns: [],
|
|
23862
23997
|
data: [],
|
|
@@ -23868,7 +24003,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23868
24003
|
};
|
|
23869
24004
|
const Table = (props) => {
|
|
23870
24005
|
const { locale } = useConfig();
|
|
23871
|
-
defaultProps$
|
|
24006
|
+
defaultProps$9.noData = locale.noData;
|
|
23872
24007
|
const {
|
|
23873
24008
|
children,
|
|
23874
24009
|
className,
|
|
@@ -23884,7 +24019,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23884
24019
|
onSort,
|
|
23885
24020
|
...rest
|
|
23886
24021
|
} = {
|
|
23887
|
-
...defaultProps$
|
|
24022
|
+
...defaultProps$9,
|
|
23888
24023
|
...props
|
|
23889
24024
|
};
|
|
23890
24025
|
const [curData, setCurData] = React.useState(data);
|
|
@@ -23967,9 +24102,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23967
24102
|
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__main__body` }, renderBoyTrs())
|
|
23968
24103
|
), (summary || curData.length === 0) && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__summary` }, summary || noData));
|
|
23969
24104
|
};
|
|
23970
|
-
Table.defaultProps = defaultProps$
|
|
24105
|
+
Table.defaultProps = defaultProps$9;
|
|
23971
24106
|
Table.displayName = "NutTable";
|
|
23972
|
-
const defaultProps$
|
|
24107
|
+
const defaultProps$8 = {
|
|
23973
24108
|
...ComponentDefaults,
|
|
23974
24109
|
type: "default",
|
|
23975
24110
|
background: "",
|
|
@@ -24000,7 +24135,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24000
24135
|
onClick,
|
|
24001
24136
|
onClose
|
|
24002
24137
|
} = {
|
|
24003
|
-
...defaultProps$
|
|
24138
|
+
...defaultProps$8,
|
|
24004
24139
|
...props
|
|
24005
24140
|
};
|
|
24006
24141
|
const [tagClass, setTagClass] = React.useState("");
|
|
@@ -24076,8 +24211,166 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24076
24211
|
children && /* @__PURE__ */ React.createElement("span", { className: `${classPrefix2}-text` }, children)
|
|
24077
24212
|
));
|
|
24078
24213
|
};
|
|
24079
|
-
Tag.defaultProps = defaultProps$
|
|
24214
|
+
Tag.defaultProps = defaultProps$8;
|
|
24080
24215
|
Tag.displayName = "NutTag";
|
|
24216
|
+
const defaultProps$7 = {
|
|
24217
|
+
...ComponentDefaults,
|
|
24218
|
+
visible: false,
|
|
24219
|
+
type: "step",
|
|
24220
|
+
location: "bottom",
|
|
24221
|
+
mask: true,
|
|
24222
|
+
maskWidth: "",
|
|
24223
|
+
maskHeight: "",
|
|
24224
|
+
offset: [8, 10],
|
|
24225
|
+
title: "",
|
|
24226
|
+
next: "",
|
|
24227
|
+
prev: "",
|
|
24228
|
+
complete: "",
|
|
24229
|
+
showPrev: true,
|
|
24230
|
+
closeOnOverlayClick: true
|
|
24231
|
+
};
|
|
24232
|
+
const classPrefix$1 = "nut-tour";
|
|
24233
|
+
const Tour = (props) => {
|
|
24234
|
+
const { locale } = useConfig();
|
|
24235
|
+
const {
|
|
24236
|
+
children,
|
|
24237
|
+
className,
|
|
24238
|
+
title,
|
|
24239
|
+
closeOnOverlayClick,
|
|
24240
|
+
showPrev,
|
|
24241
|
+
list,
|
|
24242
|
+
type: type2,
|
|
24243
|
+
location,
|
|
24244
|
+
visible,
|
|
24245
|
+
mask,
|
|
24246
|
+
maskWidth,
|
|
24247
|
+
maskHeight,
|
|
24248
|
+
offset,
|
|
24249
|
+
next,
|
|
24250
|
+
prev,
|
|
24251
|
+
complete,
|
|
24252
|
+
onClose,
|
|
24253
|
+
onChange,
|
|
24254
|
+
...rest
|
|
24255
|
+
} = {
|
|
24256
|
+
...defaultProps$7,
|
|
24257
|
+
...props
|
|
24258
|
+
};
|
|
24259
|
+
const [showTour, setShowTour] = React.useState(false);
|
|
24260
|
+
const [showPopup, setShowPopup] = React.useState(false);
|
|
24261
|
+
const [active, setActive] = React.useState(0);
|
|
24262
|
+
const [maskRect, setMaskRect] = React.useState({
|
|
24263
|
+
top: 0,
|
|
24264
|
+
left: 0,
|
|
24265
|
+
right: 0,
|
|
24266
|
+
bottom: 0,
|
|
24267
|
+
width: 0,
|
|
24268
|
+
height: 0
|
|
24269
|
+
});
|
|
24270
|
+
const classes = classNames(className, classPrefix$1);
|
|
24271
|
+
React.useEffect(() => {
|
|
24272
|
+
if (visible) {
|
|
24273
|
+
getRootPosition();
|
|
24274
|
+
}
|
|
24275
|
+
setActive(0);
|
|
24276
|
+
setShowTour(visible);
|
|
24277
|
+
setShowPopup(visible);
|
|
24278
|
+
}, [visible]);
|
|
24279
|
+
React.useEffect(() => {
|
|
24280
|
+
if (visible) {
|
|
24281
|
+
setShowPopup(true);
|
|
24282
|
+
getRootPosition();
|
|
24283
|
+
}
|
|
24284
|
+
}, [active]);
|
|
24285
|
+
const getRootPosition = () => {
|
|
24286
|
+
const el = document.querySelector(`#${list[active].target}`);
|
|
24287
|
+
const rect = getRect(el);
|
|
24288
|
+
setMaskRect(rect);
|
|
24289
|
+
};
|
|
24290
|
+
const maskStyle = () => {
|
|
24291
|
+
const { width, height, left, top } = maskRect;
|
|
24292
|
+
const center = [left + width / 2, top + height / 2];
|
|
24293
|
+
const w = Number(maskWidth || width);
|
|
24294
|
+
const h = Number(maskHeight || height);
|
|
24295
|
+
const styles = {
|
|
24296
|
+
width: `${w + +offset[1] * 2}px`,
|
|
24297
|
+
height: `${h + +offset[0] * 2}px`,
|
|
24298
|
+
top: `${center[1] - h / 2 - +offset[0]}px`,
|
|
24299
|
+
left: `${center[0] - w / 2 - +offset[1]}px`
|
|
24300
|
+
};
|
|
24301
|
+
return styles;
|
|
24302
|
+
};
|
|
24303
|
+
const maskClose = (e) => {
|
|
24304
|
+
setShowTour(false);
|
|
24305
|
+
setShowPopup(false);
|
|
24306
|
+
onClose && onClose(e);
|
|
24307
|
+
};
|
|
24308
|
+
const handleClickMask = (e) => {
|
|
24309
|
+
closeOnOverlayClick && maskClose(e);
|
|
24310
|
+
};
|
|
24311
|
+
const changeStep = (type22) => {
|
|
24312
|
+
if (type22 === "next") {
|
|
24313
|
+
setActive(active + 1);
|
|
24314
|
+
onChange && onChange(active + 1);
|
|
24315
|
+
} else {
|
|
24316
|
+
setActive(active - 1);
|
|
24317
|
+
onChange && onChange(active - 1);
|
|
24318
|
+
}
|
|
24319
|
+
setShowPopup(false);
|
|
24320
|
+
};
|
|
24321
|
+
return /* @__PURE__ */ React.createElement("div", { className: classes, ...rest }, /* @__PURE__ */ React.createElement(
|
|
24322
|
+
"div",
|
|
24323
|
+
{
|
|
24324
|
+
className: "nut-tour-masked",
|
|
24325
|
+
style: { display: showTour ? "block" : "none" },
|
|
24326
|
+
onClick: handleClickMask
|
|
24327
|
+
}
|
|
24328
|
+
), list.map((item, index) => {
|
|
24329
|
+
return /* @__PURE__ */ React.createElement("div", { key: index, style: { height: 0 } }, index === active && /* @__PURE__ */ React.createElement(React.Fragment, null, showTour && /* @__PURE__ */ React.createElement(
|
|
24330
|
+
"div",
|
|
24331
|
+
{
|
|
24332
|
+
className: `${mask ? "nut-tour-mask" : "nut-tour-mask nut-tour-mask-none"}`,
|
|
24333
|
+
id: "nut-tour-popid",
|
|
24334
|
+
style: maskStyle()
|
|
24335
|
+
}
|
|
24336
|
+
), /* @__PURE__ */ React.createElement(
|
|
24337
|
+
Popover,
|
|
24338
|
+
{
|
|
24339
|
+
visible: showPopup,
|
|
24340
|
+
location: item.location || location,
|
|
24341
|
+
targetId: "nut-tour-popid",
|
|
24342
|
+
closeOnOutsideClick: false,
|
|
24343
|
+
offset: item.popoverOffset || [0, 12],
|
|
24344
|
+
arrowOffset: item.arrowOffset || 0
|
|
24345
|
+
},
|
|
24346
|
+
/* @__PURE__ */ React.createElement(React.Fragment, null),
|
|
24347
|
+
/* @__PURE__ */ React.createElement(React.Fragment, null, children || /* @__PURE__ */ React.createElement(React.Fragment, null, type2 === "step" && /* @__PURE__ */ React.createElement("div", { className: "nut-tour-content" }, title && /* @__PURE__ */ React.createElement("div", { className: "nut-tour-content-top" }, /* @__PURE__ */ React.createElement("div", { onClick: (e) => maskClose(e) }, /* @__PURE__ */ React.createElement(x$b, { className: "nut-tour-content-top-close" }))), /* @__PURE__ */ React.createElement("div", { className: "nut-tour-content-inner" }, item.content), /* @__PURE__ */ React.createElement("div", { className: "nut-tour-content-bottom" }, /* @__PURE__ */ React.createElement("div", { className: "nut-tour-content-bottom-init" }, active + 1, "/", list.length), /* @__PURE__ */ React.createElement("div", { className: "nut-tour-content-bottom-operate" }, active !== 0 && showPrev && /* @__PURE__ */ React.createElement(
|
|
24348
|
+
"div",
|
|
24349
|
+
{
|
|
24350
|
+
className: "nut-tour-content-bottom-operate-btn",
|
|
24351
|
+
onClick: () => changeStep("prev")
|
|
24352
|
+
},
|
|
24353
|
+
prev || locale.tour.prevStepText
|
|
24354
|
+
), list.length - 1 === active && /* @__PURE__ */ React.createElement(
|
|
24355
|
+
"div",
|
|
24356
|
+
{
|
|
24357
|
+
className: "nut-tour-content-bottom-operate-btn active",
|
|
24358
|
+
onClick: (e) => maskClose(e)
|
|
24359
|
+
},
|
|
24360
|
+
complete || locale.tour.completeText
|
|
24361
|
+
), list.length - 1 !== active && /* @__PURE__ */ React.createElement(
|
|
24362
|
+
"div",
|
|
24363
|
+
{
|
|
24364
|
+
className: "nut-tour-content-bottom-operate-btn active",
|
|
24365
|
+
onClick: () => changeStep("next")
|
|
24366
|
+
},
|
|
24367
|
+
next || locale.tour.nextStepText
|
|
24368
|
+
)))), type2 === "tile" && /* @__PURE__ */ React.createElement("div", { className: "nut-tour-content nut-tour-content-tile" }, /* @__PURE__ */ React.createElement("div", { className: "nut-tour-content-inner" }, item.content))))
|
|
24369
|
+
)));
|
|
24370
|
+
}));
|
|
24371
|
+
};
|
|
24372
|
+
Tour.defaultProps = defaultProps$7;
|
|
24373
|
+
Tour.displayName = "NutTour";
|
|
24081
24374
|
const initPositinoCache = (reaItemSize, length = 0) => {
|
|
24082
24375
|
let index = 0;
|
|
24083
24376
|
const positions = Array(length);
|
|
@@ -24939,6 +25232,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24939
25232
|
exports2.Input = Input;
|
|
24940
25233
|
exports2.InputNumber = InputNumber;
|
|
24941
25234
|
exports2.Layout = Layout;
|
|
25235
|
+
exports2.Loading = Loading;
|
|
24942
25236
|
exports2.Menu = Menu;
|
|
24943
25237
|
exports2.MenuItem = MenuItem;
|
|
24944
25238
|
exports2.NavBar = NavBar;
|
|
@@ -24983,6 +25277,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24983
25277
|
exports2.TimeDetail = TimeDetail;
|
|
24984
25278
|
exports2.TimeSelect = TimeSelect;
|
|
24985
25279
|
exports2.Toast = Toast;
|
|
25280
|
+
exports2.Tour = Tour;
|
|
24986
25281
|
exports2.TrendArrow = TrendArrow;
|
|
24987
25282
|
exports2.Uploader = Uploader;
|
|
24988
25283
|
exports2.Video = Video;
|