@nutui/nutui-react 2.0.24 → 2.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/esm/Avatar.js +1 -1
- package/dist/esm/AvatarCropper.js +0 -2
- package/dist/esm/BackTop/style/style.css +1 -1
- package/dist/esm/BackTop.js +2 -2
- package/dist/esm/Barrage/style/style.css +1 -1
- package/dist/esm/Button.js +1 -1
- package/dist/esm/Calendar/style/style.css +1 -1
- package/dist/esm/Calendar.js +2 -1
- package/dist/esm/CalendarCard.js +15 -14
- package/dist/esm/CalendarItem.js +1 -1
- package/dist/esm/CheckboxGroup.js +1 -1
- package/dist/esm/CircleProgress.js +1 -1
- package/dist/esm/DatePicker/style/style.css +1 -1
- package/dist/esm/FixedNav.js +2 -2
- package/dist/esm/Form.js +1 -1
- package/dist/esm/Grid.js +1 -1
- package/dist/esm/ImagePreview.js +4 -2
- package/dist/esm/InfiniteLoading.js +2 -2
- package/dist/esm/Loading.js +1 -1
- package/dist/esm/Menu.js +2 -2
- package/dist/esm/Picker/style/style.css +1 -1
- package/dist/esm/Picker.js +4 -1
- package/dist/esm/Price.js +1 -1
- package/dist/esm/Radio/style/style.css +1 -1
- package/dist/esm/RadioGroup.js +1 -1
- package/dist/esm/Range.js +1 -1
- package/dist/esm/Rate.js +2 -2
- package/dist/esm/SafeArea/style/css.js +1 -0
- package/dist/esm/SafeArea/style/index.js +2 -0
- package/dist/esm/SafeArea/style/style.css +1 -0
- package/dist/esm/SafeArea.js +6 -0
- package/dist/esm/SearchBar.js +2 -2
- package/dist/esm/ShortPassword.js +1 -1
- package/dist/esm/SideNavBar.js +1 -1
- package/dist/esm/Skeleton.js +1 -1
- package/dist/esm/Space.js +1 -1
- package/dist/esm/Step.js +1 -1
- package/dist/esm/Steps.js +1 -1
- package/dist/esm/TabPane.js +2 -2
- package/dist/esm/Tabbar.js +1 -1
- package/dist/esm/TextArea.js +1 -1
- package/dist/esm/Toast.js +3 -14
- package/dist/esm/Tour.js +1 -1
- package/dist/esm/Video.js +1 -1
- package/dist/esm/VirtualList.js +10 -3
- package/dist/esm/checkbox2.js +1 -1
- package/dist/esm/configprovider2.js +3 -3
- package/dist/esm/menuitem2.js +2 -2
- package/dist/esm/nutui-react.es.js +168 -166
- package/dist/esm/overlay2.js +1 -1
- package/dist/esm/radio2.js +1 -5
- package/dist/esm/safearea2.js +11 -0
- package/dist/esm/tabbaritem2.js +1 -1
- package/dist/esm/types/src/packages/button/button.d.ts +1 -1
- package/dist/esm/types/src/packages/button/button.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
- package/dist/esm/types/src/packages/nutui.react.build.d.ts +2 -1
- package/dist/esm/types/src/packages/nutui.react.d.ts +3 -1
- package/dist/esm/types/src/packages/nutui.react.scss.d.ts +1 -0
- package/dist/esm/types/src/packages/nutui.react.taro.d.ts +3 -1
- package/dist/esm/types/src/packages/nutui.react.taro.scss.d.ts +1 -0
- package/dist/esm/types/src/packages/nutui.taro.react.build.d.ts +2 -1
- package/dist/esm/types/src/packages/picker/doc.en.d.ts +3 -0
- package/dist/esm/types/src/packages/safearea/demo.d.ts +3 -0
- package/dist/esm/types/src/packages/safearea/demo.taro.d.ts +3 -0
- package/dist/esm/types/src/packages/safearea/index.d.ts +3 -0
- package/dist/esm/types/src/packages/safearea/index.taro.d.ts +3 -0
- package/dist/esm/types/src/packages/safearea/safearea.d.ts +6 -0
- package/dist/esm/types/src/packages/safearea/safearea.taro.d.ts +6 -0
- package/dist/esm/types/src/packages/toast/toast.d.ts +1 -1
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +4 -4
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +235 -189
- package/dist/nutui.react.umd.js +235 -189
- package/dist/packages/backtop/backtop.scss +7 -6
- package/dist/packages/barrage/barrage.scss +0 -1
- package/dist/packages/calendar/calendar.scss +1 -1
- package/dist/packages/picker/picker.scss +4 -5
- package/dist/packages/radio/radio.scss +1 -0
- package/dist/packages/safearea/safearea.scss +14 -0
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/themes/default.scss +1 -0
- package/dist/styles/variables.scss +0 -4
- package/dist/types/index.d.ts +3 -1
- package/dist/types/packages/button/button.d.ts +1 -1
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/infiniteloading/infiniteloading.d.ts +1 -1
- package/dist/types/packages/safearea/index.d.ts +3 -0
- package/dist/types/packages/safearea/safearea.d.ts +10 -0
- package/dist/types/packages/toast/toast.d.ts +1 -1
- package/package.json +1 -1
package/dist/nutui.react.umd.js
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
/*!
|
|
8
|
-
* @nutui/nutui-react v2.0
|
|
8
|
+
* @nutui/nutui-react v2.1.0 Fri Nov 17 2023 14:49:44 GMT+0800 (China Standard Time)
|
|
9
9
|
* (c) 2023 @jdf2e.
|
|
10
10
|
* Released under the MIT License.
|
|
11
11
|
*/
|
|
@@ -764,7 +764,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
764
764
|
}
|
|
765
765
|
) });
|
|
766
766
|
e$3.defaultProps = Pe;
|
|
767
|
-
const t$
|
|
767
|
+
const t$b = (a2) => /* @__PURE__ */ Oe(hr, { ...a2, name: a2.name || "ArrowUp2", viewBox: "0 0 2472 1024", children: /* @__PURE__ */ Oe(
|
|
768
768
|
"path",
|
|
769
769
|
{
|
|
770
770
|
d: "M623.406 815.479A129.722 129.722 0 1 1 487.068 594.95C691.9 468.083 896.73 341.993 1101.691 215.125a194.583 194.583 0 0 1 204.442 0l614.494 379.567a129.722 129.722 0 1 1-136.338 220.657l-580.506-358.292-580.377 358.422",
|
|
@@ -772,7 +772,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
772
772
|
fillOpacity: "0.9"
|
|
773
773
|
}
|
|
774
774
|
) });
|
|
775
|
-
t$
|
|
775
|
+
t$b.defaultProps = Pe;
|
|
776
776
|
const o$5 = (a2) => /* @__PURE__ */ pr(hr, { ...a2, name: a2.name || "CheckChecked", viewBox: "0 0 1032 1024", children: [
|
|
777
777
|
/* @__PURE__ */ Oe(
|
|
778
778
|
"path",
|
|
@@ -802,7 +802,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
802
802
|
}
|
|
803
803
|
) });
|
|
804
804
|
l$3.defaultProps = Pe;
|
|
805
|
-
const t$
|
|
805
|
+
const t$a = (a2) => /* @__PURE__ */ Oe(hr, { ...a2, name: a2.name || "CheckNormal", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Oe(
|
|
806
806
|
"path",
|
|
807
807
|
{
|
|
808
808
|
d: "M512 1024c-136.533 0-264.533-54.044-361.244-150.756C54.044 776.534 0 648.534 0 512c0-136.533 54.044-264.533 150.756-361.244C247.466 54.044 375.466 0 512 0c136.533 0 264.533 54.044 361.244 150.756C969.956 247.466 1024 375.466 1024 512s-54.044 264.533-150.756 361.244C776.534 969.956 648.534 1024 512 1024zm0-938.667c-113.778 0-221.867 45.511-301.511 125.156S85.333 398.222 85.333 512s45.511 221.867 125.156 301.511S398.222 938.667 512 938.667s221.867-45.511 301.511-125.156S938.667 625.778 938.667 512 893.156 290.133 813.51 210.489 625.778 85.333 512 85.333z",
|
|
@@ -810,7 +810,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
810
810
|
fillOpacity: "0.9"
|
|
811
811
|
}
|
|
812
812
|
) });
|
|
813
|
-
t$
|
|
813
|
+
t$a.defaultProps = Pe;
|
|
814
814
|
const o$4 = (a2) => /* @__PURE__ */ Oe(hr, { ...a2, name: a2.name || "Check", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Oe(
|
|
815
815
|
"path",
|
|
816
816
|
{
|
|
@@ -829,7 +829,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
829
829
|
}
|
|
830
830
|
) });
|
|
831
831
|
o$3.defaultProps = Pe;
|
|
832
|
-
const r$
|
|
832
|
+
const r$4 = (t2) => /* @__PURE__ */ Oe(hr, { ...t2, name: t2.name || "Checklist", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Oe(
|
|
833
833
|
"path",
|
|
834
834
|
{
|
|
835
835
|
d: "M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",
|
|
@@ -837,17 +837,8 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
837
837
|
fillOpacity: "0.9"
|
|
838
838
|
}
|
|
839
839
|
) });
|
|
840
|
-
r$5.defaultProps = Pe;
|
|
841
|
-
const r$4 = (c6) => /* @__PURE__ */ Oe(hr, { ...c6, name: c6.name || "CircleClose", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Oe(
|
|
842
|
-
"path",
|
|
843
|
-
{
|
|
844
|
-
d: "M511.492 73.063a438.425 438.425 0 0 1 310.545 748.953 439.16 439.16 0 1 1-621.09-621.073A435.695 435.695 0 0 1 511.492 73.046m0-73.063C267.49.018 57.468 172.408 9.87 411.717-37.713 651.042 90.39 890.658 315.823 984.03c225.45 93.355 485.444 14.472 621.005-188.416 135.543-202.906 108.885-473.293-63.659-645.82A509.645 509.645 0 0 0 511.492.002zm-175.7 635.495 299.673-299.674c12.049-12.049 24.115-12.049 36.164 0l15.496 15.497c12.05 12.066 12.05 24.115 0 36.18L387.47 687.122c-12.066 12.05-24.115 12.05-36.181 0l-15.497-15.496c-12.049-12.066-12.049-24.115 0-36.182zm0-284.177 15.496-15.497c12.066-12.049 24.115-12.049 36.18 0l299.64 299.674c12.05 12.049 12.05 24.098 0 36.164l-15.496 15.496c-12.05 12.05-24.115 12.05-36.182 0L335.808 387.465c-12.049-12.05-12.049-24.098 0-36.164z",
|
|
845
|
-
fill: "currentColor",
|
|
846
|
-
fillOpacity: "0.9"
|
|
847
|
-
}
|
|
848
|
-
) });
|
|
849
840
|
r$4.defaultProps = Pe;
|
|
850
|
-
const t$
|
|
841
|
+
const t$9 = (a2) => /* @__PURE__ */ Oe(hr, { ...a2, name: a2.name || "Close", viewBox: "0 0 1026 1024", children: /* @__PURE__ */ Oe(
|
|
851
842
|
"path",
|
|
852
843
|
{
|
|
853
844
|
d: "M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",
|
|
@@ -855,8 +846,8 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
855
846
|
fillOpacity: "0.9"
|
|
856
847
|
}
|
|
857
848
|
) });
|
|
858
|
-
t$
|
|
859
|
-
const t$
|
|
849
|
+
t$9.defaultProps = Pe;
|
|
850
|
+
const t$8 = (c6) => /* @__PURE__ */ Oe(hr, { ...c6, name: c6.name || "Del", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Oe(
|
|
860
851
|
"path",
|
|
861
852
|
{
|
|
862
853
|
d: "M668.444 1024H355.556c-142.223 0-256-113.778-256-256V170.667h824.888V768c0 142.222-113.777 256-256 256zM184.89 256v512c0 93.867 76.8 170.667 170.667 170.667h312.888c93.867 0 170.667-76.8 170.667-170.667V256H184.89zm753.778 0H85.333c-22.755 0-42.666-19.911-42.666-42.667s19.91-42.666 42.666-42.666h853.334c22.755 0 42.666 19.91 42.666 42.666S961.423 256 938.667 256zM625.777 85.333H398.223c-22.755 0-42.666-19.91-42.666-42.666S375.466 0 398.222 0h227.556c22.755 0 42.666 19.911 42.666 42.667s-19.91 42.666-42.666 42.666z",
|
|
@@ -864,7 +855,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
864
855
|
fillOpacity: "0.9"
|
|
865
856
|
}
|
|
866
857
|
) });
|
|
867
|
-
t$
|
|
858
|
+
t$8.defaultProps = Pe;
|
|
868
859
|
const e$2 = (r2) => /* @__PURE__ */ Oe(hr, { ...r2, name: r2.name || "DownArrow", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Oe(
|
|
869
860
|
"path",
|
|
870
861
|
{
|
|
@@ -874,7 +865,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
874
865
|
}
|
|
875
866
|
) });
|
|
876
867
|
e$2.defaultProps = Pe;
|
|
877
|
-
const t$
|
|
868
|
+
const t$7 = (l2) => /* @__PURE__ */ Oe(hr, { ...l2, name: l2.name || "Failure", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Oe(
|
|
878
869
|
"path",
|
|
879
870
|
{
|
|
880
871
|
d: "M512 1024C229.831 1024 0 794.169 0 512S229.831 0 512 0s512 229.831 512 512-229.831 512-512 512zm0-955.733C266.24 68.267 68.267 266.24 68.267 512S266.24 955.733 512 955.733 955.733 757.76 955.733 512 757.76 68.267 512 68.267zm111.502 282.169c13.654-13.654 34.134-13.654 47.787 0 11.378 11.377 13.653 31.857 2.275 45.51l-2.275 2.276-111.502 111.502 111.502 111.503c13.653 13.653 13.653 34.133 0 47.786-13.653 13.654-34.133 13.654-47.787 0L512 557.511 400.498 669.013c-11.378 11.378-31.858 13.654-45.511 2.276l-2.276-2.276c-11.378-11.377-13.653-31.857-2.275-45.51l2.275-2.276 111.502-111.503-111.502-111.502c-13.653-13.653-13.653-34.133 0-47.786s34.133-13.654 47.787 0L512 461.938l111.502-111.502z",
|
|
@@ -882,7 +873,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
882
873
|
fillOpacity: "0.9"
|
|
883
874
|
}
|
|
884
875
|
) });
|
|
885
|
-
t$
|
|
876
|
+
t$7.defaultProps = Pe;
|
|
886
877
|
const e$1 = (l2) => /* @__PURE__ */ pr(hr, { ...l2, name: l2.name || "ImageError", viewBox: "0 0 1024 1024", children: [
|
|
887
878
|
/* @__PURE__ */ Oe(
|
|
888
879
|
"path",
|
|
@@ -923,15 +914,6 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
923
914
|
)
|
|
924
915
|
] });
|
|
925
916
|
e.defaultProps = Pe;
|
|
926
|
-
const t$7 = (s) => /* @__PURE__ */ Oe(hr, { ...s, name: s.name || "Issue", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Oe(
|
|
927
|
-
"path",
|
|
928
|
-
{
|
|
929
|
-
d: "M512 1024C229.831 1024 0 794.169 0 512S229.831 0 512 0s512 229.831 512 512-229.831 512-512 512zm0-955.733C266.24 68.267 68.267 266.24 68.267 512S266.24 955.733 512 955.733 955.733 757.76 955.733 512 757.76 68.267 512 68.267zm31.858 377.742c18.204 0 34.133 15.929 34.133 34.133 0 2.276 0 15.93-2.275 18.205l-34.134 195.697h29.582c18.205 0 34.134 15.93 34.134 34.134s-15.93 34.133-34.134 34.133h-91.022c-18.204 0-34.133-15.929-34.133-34.133v-20.48L480.142 512H450.56c-18.204 0-34.133-15.929-34.133-34.133s15.929-34.134 34.133-34.134h93.298zm-34.134-207.076c38.685 0 68.267 29.583 68.267 68.267s-29.582 68.267-68.267 68.267-68.266-29.583-68.266-68.267 29.582-68.267 68.266-68.267z",
|
|
930
|
-
fill: "currentColor",
|
|
931
|
-
fillOpacity: "0.9"
|
|
932
|
-
}
|
|
933
|
-
) });
|
|
934
|
-
t$7.defaultProps = Pe;
|
|
935
917
|
const t$6 = (a2) => /* @__PURE__ */ Oe(hr, { ...a2, name: a2.name || "JoySmile", viewBox: "0 0 3072 1024", children: /* @__PURE__ */ Oe(
|
|
936
918
|
"path",
|
|
937
919
|
{
|
|
@@ -1117,7 +1099,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
1117
1099
|
className: "",
|
|
1118
1100
|
style: {}
|
|
1119
1101
|
};
|
|
1120
|
-
const prefixCls$
|
|
1102
|
+
const prefixCls$2 = "nut-button";
|
|
1121
1103
|
const defaultProps$1u = {
|
|
1122
1104
|
...ComponentDefaults,
|
|
1123
1105
|
color: "",
|
|
@@ -1183,17 +1165,17 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
1183
1165
|
ref,
|
|
1184
1166
|
type: nativeType,
|
|
1185
1167
|
className: classNames(
|
|
1186
|
-
prefixCls$
|
|
1187
|
-
|
|
1188
|
-
props.
|
|
1189
|
-
props.fill ? `${prefixCls$1}--${fill}` : null,
|
|
1168
|
+
prefixCls$2,
|
|
1169
|
+
props.type ? `${prefixCls$2}--${type2}` : null,
|
|
1170
|
+
props.fill ? `${prefixCls$2}--${fill}` : null,
|
|
1190
1171
|
{
|
|
1191
|
-
[`${prefixCls$
|
|
1192
|
-
[`${prefixCls$
|
|
1193
|
-
[`${prefixCls$
|
|
1194
|
-
[`${prefixCls$
|
|
1195
|
-
[`${prefixCls$
|
|
1196
|
-
}
|
|
1172
|
+
[`${prefixCls$2}--${size}`]: size,
|
|
1173
|
+
[`${prefixCls$2}--${shape}`]: shape,
|
|
1174
|
+
[`${prefixCls$2}--block`]: block,
|
|
1175
|
+
[`${prefixCls$2}--disabled`]: disabled,
|
|
1176
|
+
[`${prefixCls$2}--loading`]: loading
|
|
1177
|
+
},
|
|
1178
|
+
className
|
|
1197
1179
|
),
|
|
1198
1180
|
style: { ...getStyle(), ...style },
|
|
1199
1181
|
onClick: (e2) => handleClick2(e2)
|
|
@@ -1210,16 +1192,16 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
1210
1192
|
description: "",
|
|
1211
1193
|
divider: true
|
|
1212
1194
|
};
|
|
1213
|
-
const classPrefix$
|
|
1195
|
+
const classPrefix$r = "nut-cell-group";
|
|
1214
1196
|
const CellGroup = (props) => {
|
|
1215
1197
|
const { children, className, style, title, description, divider, ...rest } = {
|
|
1216
1198
|
...defaultProps$1t,
|
|
1217
1199
|
...props
|
|
1218
1200
|
};
|
|
1219
|
-
return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix$
|
|
1201
|
+
return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix$r, className), ...rest }, title ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$r}__title` }, title) : null, description ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$r}__description` }, description) : null, /* @__PURE__ */ React.createElement(
|
|
1220
1202
|
"div",
|
|
1221
1203
|
{
|
|
1222
|
-
className: `${classPrefix$
|
|
1204
|
+
className: `${classPrefix$r}__wrap ${divider ? `${classPrefix$r}__wrap--divider` : ""}`
|
|
1223
1205
|
},
|
|
1224
1206
|
/* @__PURE__ */ React.createElement(CellGroupContext.Provider, { value: { divider } }, children)
|
|
1225
1207
|
));
|
|
@@ -1236,7 +1218,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
1236
1218
|
onClick: (event) => {
|
|
1237
1219
|
}
|
|
1238
1220
|
};
|
|
1239
|
-
const classPrefix$
|
|
1221
|
+
const classPrefix$q = "nut-cell";
|
|
1240
1222
|
const Cell = (props) => {
|
|
1241
1223
|
const ctx2 = React.useContext(CellGroupContext);
|
|
1242
1224
|
const {
|
|
@@ -1268,20 +1250,20 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
1268
1250
|
return /* @__PURE__ */ React.createElement(
|
|
1269
1251
|
"div",
|
|
1270
1252
|
{
|
|
1271
|
-
className: classNames(classPrefix$
|
|
1253
|
+
className: classNames(classPrefix$q, className),
|
|
1272
1254
|
onClick: (event) => handleClick2(event),
|
|
1273
1255
|
style: baseStyle,
|
|
1274
1256
|
...rest
|
|
1275
1257
|
},
|
|
1276
|
-
children || /* @__PURE__ */ React.createElement(React.Fragment, null, title || description ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$
|
|
1258
|
+
children || /* @__PURE__ */ React.createElement(React.Fragment, null, title || description ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$q}__left` }, title ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$q}__title` }, title) : null, description ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$q}__description` }, description) : null) : null, extra ? /* @__PURE__ */ React.createElement(
|
|
1277
1259
|
"div",
|
|
1278
1260
|
{
|
|
1279
|
-
className: `${classPrefix$
|
|
1261
|
+
className: `${classPrefix$q}__extra`,
|
|
1280
1262
|
style: styles
|
|
1281
1263
|
},
|
|
1282
1264
|
extra
|
|
1283
1265
|
) : null),
|
|
1284
|
-
(ctx2 == null ? void 0 : ctx2.divider) ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$
|
|
1266
|
+
(ctx2 == null ? void 0 : ctx2.divider) ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$q}__divider` }) : null
|
|
1285
1267
|
);
|
|
1286
1268
|
};
|
|
1287
1269
|
Cell.defaultProps = defaultProps$1s;
|
|
@@ -2250,7 +2232,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
2250
2232
|
},
|
|
2251
2233
|
infiniteloading: {
|
|
2252
2234
|
pullRefreshText: "松开刷新",
|
|
2253
|
-
loadText: "
|
|
2235
|
+
loadText: "加载中",
|
|
2254
2236
|
loadMoreText: "哎呀,这里是底部了啦"
|
|
2255
2237
|
},
|
|
2256
2238
|
pagination: {
|
|
@@ -2353,8 +2335,8 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
2353
2335
|
},
|
|
2354
2336
|
pullToRefresh: {
|
|
2355
2337
|
pullingText: "下拉刷新",
|
|
2356
|
-
canReleaseText: "
|
|
2357
|
-
refreshingText: "
|
|
2338
|
+
canReleaseText: "松手刷新",
|
|
2339
|
+
refreshingText: "刷新中",
|
|
2358
2340
|
completeText: "刷新成功"
|
|
2359
2341
|
},
|
|
2360
2342
|
tour: {
|
|
@@ -2366,7 +2348,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
2366
2348
|
errorCanvasTips: "当前环境不支持Canvas"
|
|
2367
2349
|
}
|
|
2368
2350
|
};
|
|
2369
|
-
const classPrefix$
|
|
2351
|
+
const classPrefix$p = "nut-configprovider";
|
|
2370
2352
|
const defaultConfigRef = {
|
|
2371
2353
|
current: {
|
|
2372
2354
|
locale: zhCN
|
|
@@ -2407,7 +2389,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
2407
2389
|
return /* @__PURE__ */ React.createElement(ConfigContext.Provider, { value: mergedConfig }, /* @__PURE__ */ React.createElement(
|
|
2408
2390
|
"div",
|
|
2409
2391
|
{
|
|
2410
|
-
className: classNames(classPrefix$
|
|
2392
|
+
className: classNames(classPrefix$p, className),
|
|
2411
2393
|
style: {
|
|
2412
2394
|
...cssVarStyle,
|
|
2413
2395
|
...style
|
|
@@ -2431,7 +2413,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
2431
2413
|
loading: true,
|
|
2432
2414
|
lazy: false
|
|
2433
2415
|
};
|
|
2434
|
-
const classPrefix$
|
|
2416
|
+
const classPrefix$o = "nut-image";
|
|
2435
2417
|
const Image$1 = (props) => {
|
|
2436
2418
|
const {
|
|
2437
2419
|
className,
|
|
@@ -2556,7 +2538,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
2556
2538
|
return /* @__PURE__ */ React.createElement(
|
|
2557
2539
|
"div",
|
|
2558
2540
|
{
|
|
2559
|
-
className: classNames(classPrefix$
|
|
2541
|
+
className: classNames(classPrefix$o, className),
|
|
2560
2542
|
style: containerStyle,
|
|
2561
2543
|
onClick: (e2) => {
|
|
2562
2544
|
imageClick(e2);
|
|
@@ -4521,7 +4503,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4521
4503
|
}
|
|
4522
4504
|
}, [visible]);
|
|
4523
4505
|
useLockScroll(nodeRef, !!props.lockScroll && innerVisible);
|
|
4524
|
-
const classes = classNames(
|
|
4506
|
+
const classes = classNames(classPrefix2, className);
|
|
4525
4507
|
const styles = {
|
|
4526
4508
|
...style
|
|
4527
4509
|
};
|
|
@@ -4610,21 +4592,21 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4610
4592
|
contentPosition: "center",
|
|
4611
4593
|
direction: "horizontal"
|
|
4612
4594
|
};
|
|
4613
|
-
const classPrefix$
|
|
4595
|
+
const classPrefix$n = `nut-divider`;
|
|
4614
4596
|
const Divider = (props) => {
|
|
4615
4597
|
const { children, contentPosition, style, className, direction, ...rest } = {
|
|
4616
4598
|
...defaultProps$1p,
|
|
4617
4599
|
...props
|
|
4618
4600
|
};
|
|
4619
4601
|
const classes = direction === "horizontal" ? classNames({
|
|
4620
|
-
[`${classPrefix$
|
|
4621
|
-
[`${classPrefix$
|
|
4622
|
-
[`${classPrefix$
|
|
4623
|
-
[`${classPrefix$
|
|
4624
|
-
[`${classPrefix$
|
|
4602
|
+
[`${classPrefix$n}`]: true,
|
|
4603
|
+
[`${classPrefix$n}__center`]: children,
|
|
4604
|
+
[`${classPrefix$n}__left`]: contentPosition === "left",
|
|
4605
|
+
[`${classPrefix$n}__right`]: contentPosition === "right",
|
|
4606
|
+
[`${classPrefix$n}__hairline`]: true
|
|
4625
4607
|
}) : classNames({
|
|
4626
|
-
[`${classPrefix$
|
|
4627
|
-
[`${classPrefix$
|
|
4608
|
+
[`${classPrefix$n}`]: true,
|
|
4609
|
+
[`${classPrefix$n}__vertical`]: direction === "vertical"
|
|
4628
4610
|
});
|
|
4629
4611
|
return /* @__PURE__ */ React.createElement("div", { className: `${classes} ${className || ""}`, style, ...rest }, children);
|
|
4630
4612
|
};
|
|
@@ -4746,9 +4728,13 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4746
4728
|
const childrenDom = React.Children.toArray(children);
|
|
4747
4729
|
const classPrefix2 = "nut-grid";
|
|
4748
4730
|
const rootClass = () => {
|
|
4749
|
-
return classNames(
|
|
4750
|
-
|
|
4751
|
-
|
|
4731
|
+
return classNames(
|
|
4732
|
+
classPrefix2,
|
|
4733
|
+
{
|
|
4734
|
+
[`${classPrefix2}__border`]: !gap
|
|
4735
|
+
},
|
|
4736
|
+
className
|
|
4737
|
+
);
|
|
4752
4738
|
};
|
|
4753
4739
|
const rootStyle = () => {
|
|
4754
4740
|
let styleSelf = {};
|
|
@@ -4782,7 +4768,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4782
4768
|
};
|
|
4783
4769
|
Layout.defaultProps = defaultProps$1m;
|
|
4784
4770
|
Layout.displayName = "NutLayout";
|
|
4785
|
-
const classPrefix$
|
|
4771
|
+
const classPrefix$m = "nut-row";
|
|
4786
4772
|
const defaultProps$1l = {
|
|
4787
4773
|
...ComponentDefaults,
|
|
4788
4774
|
type: "",
|
|
@@ -4817,7 +4803,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4817
4803
|
${getClass("justify", justify)}
|
|
4818
4804
|
${getClass("align", align)}
|
|
4819
4805
|
${getClass("flex", wrap)}
|
|
4820
|
-
${classPrefix$
|
|
4806
|
+
${classPrefix$m}
|
|
4821
4807
|
`;
|
|
4822
4808
|
};
|
|
4823
4809
|
const parentRow = {
|
|
@@ -4837,7 +4823,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4837
4823
|
};
|
|
4838
4824
|
Row.defaultProps = defaultProps$1l;
|
|
4839
4825
|
Row.displayName = "NutRow";
|
|
4840
|
-
const prefixCls = "nut-space";
|
|
4826
|
+
const prefixCls$1 = "nut-space";
|
|
4841
4827
|
const defaultProps$1k = {
|
|
4842
4828
|
direction: "horizontal"
|
|
4843
4829
|
};
|
|
@@ -4847,15 +4833,15 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4847
4833
|
...props
|
|
4848
4834
|
};
|
|
4849
4835
|
const cls = classNames(
|
|
4850
|
-
|
|
4851
|
-
prefixCls
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4836
|
+
prefixCls$1,
|
|
4837
|
+
wrap && `${prefixCls$1}-wrap`,
|
|
4838
|
+
direction && `${prefixCls$1}-${direction}`,
|
|
4839
|
+
align && `${prefixCls$1}-align-${align}`,
|
|
4840
|
+
justify && `${prefixCls$1}-justify-${justify}`,
|
|
4841
|
+
className
|
|
4856
4842
|
);
|
|
4857
4843
|
return /* @__PURE__ */ React.createElement("div", { className: cls, style }, React.Children.map(children, (child) => {
|
|
4858
|
-
return child !== null && child !== void 0 && /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-item` }, child);
|
|
4844
|
+
return child !== null && child !== void 0 && /* @__PURE__ */ React.createElement("div", { className: `${prefixCls$1}-item` }, child);
|
|
4859
4845
|
}));
|
|
4860
4846
|
};
|
|
4861
4847
|
Space.defaultProps = defaultProps$1k;
|
|
@@ -4918,7 +4904,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4918
4904
|
threshold: 0,
|
|
4919
4905
|
zIndex: 900
|
|
4920
4906
|
};
|
|
4921
|
-
const classPrefix$
|
|
4907
|
+
const classPrefix$l = "nut-sticky";
|
|
4922
4908
|
const Sticky = (props) => {
|
|
4923
4909
|
const {
|
|
4924
4910
|
position,
|
|
@@ -5040,7 +5026,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5040
5026
|
{
|
|
5041
5027
|
ref: rootRef,
|
|
5042
5028
|
style: { ...style, ...rootStyle },
|
|
5043
|
-
className: classNames(classPrefix$
|
|
5029
|
+
className: classNames(classPrefix$l, className),
|
|
5044
5030
|
...rest
|
|
5045
5031
|
},
|
|
5046
5032
|
/* @__PURE__ */ React.createElement("div", { className: "nut-sticky--box", ref: stickyRef, style: stickyStyle }, children)
|
|
@@ -5048,6 +5034,18 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5048
5034
|
};
|
|
5049
5035
|
Sticky.defaultProps = defaultProps$1j;
|
|
5050
5036
|
Sticky.displayName = "NutSticky";
|
|
5037
|
+
const classPrefix$k = "nut-safe-area";
|
|
5038
|
+
const SafeArea = (props) => {
|
|
5039
|
+
return /* @__PURE__ */ React.createElement(
|
|
5040
|
+
"div",
|
|
5041
|
+
{
|
|
5042
|
+
className: classNames(
|
|
5043
|
+
classPrefix$k,
|
|
5044
|
+
`${classPrefix$k}-position-${props.position}`
|
|
5045
|
+
)
|
|
5046
|
+
}
|
|
5047
|
+
);
|
|
5048
|
+
};
|
|
5051
5049
|
const defaultProps$1i = {
|
|
5052
5050
|
...ComponentDefaults,
|
|
5053
5051
|
target: "",
|
|
@@ -5153,9 +5151,13 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5153
5151
|
return /* @__PURE__ */ React.createElement(
|
|
5154
5152
|
"div",
|
|
5155
5153
|
{
|
|
5156
|
-
className: classNames(
|
|
5157
|
-
|
|
5158
|
-
|
|
5154
|
+
className: classNames(
|
|
5155
|
+
classPrefix2,
|
|
5156
|
+
{
|
|
5157
|
+
show: backTop
|
|
5158
|
+
},
|
|
5159
|
+
className
|
|
5160
|
+
),
|
|
5159
5161
|
style: styles,
|
|
5160
5162
|
onClick: (e2) => {
|
|
5161
5163
|
goTop(e2);
|
|
@@ -10519,12 +10521,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10519
10521
|
};
|
|
10520
10522
|
const classPrefix2 = "nut-fixednav";
|
|
10521
10523
|
const classes = classNames(
|
|
10524
|
+
classPrefix2,
|
|
10522
10525
|
{
|
|
10523
10526
|
active: visible
|
|
10524
10527
|
},
|
|
10525
10528
|
type2,
|
|
10526
|
-
className
|
|
10527
|
-
classPrefix2
|
|
10529
|
+
className
|
|
10528
10530
|
);
|
|
10529
10531
|
const handleClick2 = (item, event) => {
|
|
10530
10532
|
onSelect(item, event);
|
|
@@ -10766,7 +10768,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10766
10768
|
};
|
|
10767
10769
|
const renderIcon = () => {
|
|
10768
10770
|
if (closeable) {
|
|
10769
|
-
return /* @__PURE__ */ React.createElement("div", { className: closeClasses, onClick: onHandleClickCloseIcon }, React.isValidElement(closeIcon) ? closeIcon : /* @__PURE__ */ React.createElement(t$
|
|
10771
|
+
return /* @__PURE__ */ React.createElement("div", { className: closeClasses, onClick: onHandleClickCloseIcon }, React.isValidElement(closeIcon) ? closeIcon : /* @__PURE__ */ React.createElement(t$9, { width: 12, height: 12 }));
|
|
10770
10772
|
}
|
|
10771
10773
|
return null;
|
|
10772
10774
|
};
|
|
@@ -10867,7 +10869,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10867
10869
|
position,
|
|
10868
10870
|
onClose
|
|
10869
10871
|
},
|
|
10870
|
-
/* @__PURE__ */ React.createElement("div", { className: classNames(
|
|
10872
|
+
/* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className), ...rest }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__content` }, /* @__PURE__ */ React.createElement(
|
|
10871
10873
|
"div",
|
|
10872
10874
|
{
|
|
10873
10875
|
className: `${classPrefix2}__list sidenavbar-show`,
|
|
@@ -11063,9 +11065,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11063
11065
|
...props
|
|
11064
11066
|
};
|
|
11065
11067
|
const classPrefix2 = "nut-tabbar-item";
|
|
11066
|
-
const tabbarItemClass = classNames(
|
|
11067
|
-
|
|
11068
|
-
|
|
11068
|
+
const tabbarItemClass = classNames(
|
|
11069
|
+
classPrefix2,
|
|
11070
|
+
{
|
|
11071
|
+
[`${classPrefix2}-active`]: active
|
|
11072
|
+
},
|
|
11073
|
+
className
|
|
11074
|
+
);
|
|
11069
11075
|
const boxPrefix = `${classPrefix2}__icon-box`;
|
|
11070
11076
|
const titleClass = classNames(boxPrefix, `${boxPrefix}-nav`, {
|
|
11071
11077
|
[`${boxPrefix}-large`]: !icon
|
|
@@ -11128,9 +11134,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11128
11134
|
return /* @__PURE__ */ React.createElement(
|
|
11129
11135
|
"div",
|
|
11130
11136
|
{
|
|
11131
|
-
className: classNames(
|
|
11132
|
-
|
|
11133
|
-
|
|
11137
|
+
className: classNames(
|
|
11138
|
+
classPrefix2,
|
|
11139
|
+
{
|
|
11140
|
+
[`${classPrefix2}__fixed`]: fixed
|
|
11141
|
+
},
|
|
11142
|
+
className
|
|
11143
|
+
),
|
|
11134
11144
|
style
|
|
11135
11145
|
},
|
|
11136
11146
|
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__wrap` }, React.Children.map(children, (child, idx) => {
|
|
@@ -11165,10 +11175,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11165
11175
|
};
|
|
11166
11176
|
const classPrefix2 = "nut-tabpane";
|
|
11167
11177
|
const classes = classNames(
|
|
11178
|
+
classPrefix2,
|
|
11168
11179
|
{
|
|
11169
11180
|
active: !disabled && props.active
|
|
11170
11181
|
},
|
|
11171
|
-
classPrefix2,
|
|
11172
11182
|
autoHeightClassName,
|
|
11173
11183
|
className
|
|
11174
11184
|
);
|
|
@@ -11781,7 +11791,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11781
11791
|
return activeIcon;
|
|
11782
11792
|
}
|
|
11783
11793
|
return /* @__PURE__ */ React.createElement(
|
|
11784
|
-
r$
|
|
11794
|
+
r$4,
|
|
11785
11795
|
{
|
|
11786
11796
|
className: `${checked ? `${classPrefix2}__icon-check` : ""}`
|
|
11787
11797
|
}
|
|
@@ -12871,8 +12881,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12871
12881
|
[`${classPrefix2}-title`]: !popup,
|
|
12872
12882
|
[`${classPrefix2}-nofooter`]: !!autoBackfill
|
|
12873
12883
|
},
|
|
12874
|
-
|
|
12875
|
-
|
|
12884
|
+
classPrefix2,
|
|
12885
|
+
className
|
|
12876
12886
|
);
|
|
12877
12887
|
const headerClasses = classNames({
|
|
12878
12888
|
[`${classPrefix2}-header`]: true,
|
|
@@ -13064,6 +13074,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13064
13074
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, popup ? /* @__PURE__ */ React.createElement(
|
|
13065
13075
|
Popup,
|
|
13066
13076
|
{
|
|
13077
|
+
className: "nut-calendar-popup",
|
|
13067
13078
|
visible,
|
|
13068
13079
|
position: "bottom",
|
|
13069
13080
|
round: true,
|
|
@@ -13071,7 +13082,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13071
13082
|
destroyOnClose: true,
|
|
13072
13083
|
onOverlayClick: closePopup,
|
|
13073
13084
|
onCloseIconClick: closePopup,
|
|
13074
|
-
style: { height: "
|
|
13085
|
+
style: { height: "83%" }
|
|
13075
13086
|
},
|
|
13076
13087
|
renderItem()
|
|
13077
13088
|
) : renderItem());
|
|
@@ -13187,10 +13198,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13187
13198
|
type: "single",
|
|
13188
13199
|
firstDayOfWeek: 0
|
|
13189
13200
|
};
|
|
13201
|
+
const prefixCls = "nut-calendarcard";
|
|
13190
13202
|
const CalendarCard = React.forwardRef((props, ref) => {
|
|
13191
13203
|
const { locale } = useConfig();
|
|
13192
13204
|
const {
|
|
13193
13205
|
style,
|
|
13206
|
+
className,
|
|
13194
13207
|
type: type2,
|
|
13195
13208
|
value,
|
|
13196
13209
|
defaultValue,
|
|
@@ -13442,7 +13455,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13442
13455
|
};
|
|
13443
13456
|
const monthTitle = locale.calendaritem.monthTitle;
|
|
13444
13457
|
const renderHeader = () => {
|
|
13445
|
-
return /* @__PURE__ */ React.createElement("div", { className:
|
|
13458
|
+
return /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-header` }, /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-header-left` }, /* @__PURE__ */ React.createElement("div", { className: "double-left", onClick: () => jump(-12) }, /* @__PURE__ */ React.createElement(DoubleLeft, null)), /* @__PURE__ */ React.createElement("div", { className: "left", onClick: () => jump(-1) }, /* @__PURE__ */ React.createElement(Left, null))), /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-header-title` }, monthTitle(month.year, month.month)), /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-header-right` }, /* @__PURE__ */ React.createElement("div", { className: "right", onClick: () => jump(1) }, /* @__PURE__ */ React.createElement(Right, null)), /* @__PURE__ */ React.createElement("div", { className: "double-right", onClick: () => jump(12) }, /* @__PURE__ */ React.createElement(DoubleRight, null))));
|
|
13446
13459
|
};
|
|
13447
13460
|
const [weekHeader] = React.useState(() => {
|
|
13448
13461
|
const weekdays = locale.calendaritem.weekdays.map((day, index) => {
|
|
@@ -13457,34 +13470,34 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13457
13470
|
];
|
|
13458
13471
|
});
|
|
13459
13472
|
const renderContent = () => {
|
|
13460
|
-
return /* @__PURE__ */ React.createElement("div", { className:
|
|
13473
|
+
return /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-content` }, /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-days` }, weekHeader.map((day) => {
|
|
13461
13474
|
return /* @__PURE__ */ React.createElement(
|
|
13462
13475
|
"div",
|
|
13463
13476
|
{
|
|
13464
|
-
className: classNames(
|
|
13477
|
+
className: classNames(`${prefixCls}-day`, "header", {
|
|
13465
13478
|
weekend: day.key === 0 || day.key === 6
|
|
13466
13479
|
}),
|
|
13467
13480
|
key: day.key
|
|
13468
13481
|
},
|
|
13469
13482
|
day.name
|
|
13470
13483
|
);
|
|
13471
|
-
})), /* @__PURE__ */ React.createElement("div", { className:
|
|
13484
|
+
})), /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-days` }, days.map((day) => /* @__PURE__ */ React.createElement(
|
|
13472
13485
|
"div",
|
|
13473
13486
|
{
|
|
13474
13487
|
className: classNames(
|
|
13475
|
-
|
|
13488
|
+
`${prefixCls}-day`,
|
|
13476
13489
|
day.type,
|
|
13477
13490
|
getClasses(day)
|
|
13478
13491
|
),
|
|
13479
13492
|
key: `${day.year}-${day.month}-${day.date}`,
|
|
13480
13493
|
onClick: () => handleDayClick(day)
|
|
13481
13494
|
},
|
|
13482
|
-
/* @__PURE__ */ React.createElement("div", { className:
|
|
13483
|
-
/* @__PURE__ */ React.createElement("div", { className:
|
|
13484
|
-
/* @__PURE__ */ React.createElement("div", { className:
|
|
13495
|
+
/* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-day-top` }, renderDayTop ? renderDayTop(day) : ""),
|
|
13496
|
+
/* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-day-inner` }, renderDay ? renderDay(day) : day.date),
|
|
13497
|
+
/* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-day-bottom` }, renderDayBottom ? renderDayBottom(day) : "")
|
|
13485
13498
|
))));
|
|
13486
13499
|
};
|
|
13487
|
-
return days.length > 0 ? /* @__PURE__ */ React.createElement("div", { className:
|
|
13500
|
+
return days.length > 0 ? /* @__PURE__ */ React.createElement("div", { className: classNames(prefixCls, className), style }, renderHeader(), renderContent()) : null;
|
|
13488
13501
|
});
|
|
13489
13502
|
CalendarCard.defaultProps = defaultProps$10;
|
|
13490
13503
|
CalendarCard.displayName = "NutCalendarCard";
|
|
@@ -13580,9 +13593,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13580
13593
|
/* @__PURE__ */ React.createElement(
|
|
13581
13594
|
"div",
|
|
13582
13595
|
{
|
|
13583
|
-
className: classNames(
|
|
13584
|
-
|
|
13585
|
-
|
|
13596
|
+
className: classNames(
|
|
13597
|
+
classPrefix$i,
|
|
13598
|
+
{
|
|
13599
|
+
[`nut-checkboxgroup--${props.direction}`]: props.direction
|
|
13600
|
+
},
|
|
13601
|
+
className
|
|
13602
|
+
),
|
|
13586
13603
|
...rest
|
|
13587
13604
|
},
|
|
13588
13605
|
(options2 == null ? void 0 : options2.length) ? renderOptions() : children
|
|
@@ -13655,7 +13672,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13655
13672
|
}
|
|
13656
13673
|
const renderIcon = () => {
|
|
13657
13674
|
if (!innerChecked) {
|
|
13658
|
-
return React.isValidElement(icon) ? icon : /* @__PURE__ */ React.createElement(t$
|
|
13675
|
+
return React.isValidElement(icon) ? icon : /* @__PURE__ */ React.createElement(t$a, { className: color() });
|
|
13659
13676
|
}
|
|
13660
13677
|
if (innerIndeterminate) {
|
|
13661
13678
|
return React.isValidElement(indeterminateIcon) ? indeterminateIcon : /* @__PURE__ */ React.createElement(l$3, { className: color() });
|
|
@@ -13698,9 +13715,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13698
13715
|
return /* @__PURE__ */ React.createElement(
|
|
13699
13716
|
"div",
|
|
13700
13717
|
{
|
|
13701
|
-
className: classNames(
|
|
13702
|
-
|
|
13703
|
-
|
|
13718
|
+
className: classNames(
|
|
13719
|
+
classPrefix$h,
|
|
13720
|
+
{
|
|
13721
|
+
[`${classPrefix$h}--reverse`]: labelPosition === "left"
|
|
13722
|
+
},
|
|
13723
|
+
className
|
|
13724
|
+
),
|
|
13704
13725
|
...rest,
|
|
13705
13726
|
onClick: handleClick2
|
|
13706
13727
|
},
|
|
@@ -14205,7 +14226,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14205
14226
|
keyIndex: index
|
|
14206
14227
|
}
|
|
14207
14228
|
);
|
|
14208
|
-
})))
|
|
14229
|
+
}))),
|
|
14230
|
+
/* @__PURE__ */ React.createElement(SafeArea, { position: "bottom" })
|
|
14209
14231
|
));
|
|
14210
14232
|
};
|
|
14211
14233
|
const Picker = React.forwardRef(InternalPicker);
|
|
@@ -15818,8 +15840,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
15818
15840
|
{
|
|
15819
15841
|
className: classNames(
|
|
15820
15842
|
classPrefix2,
|
|
15821
|
-
|
|
15822
|
-
|
|
15843
|
+
PositionInfo[labelPosition],
|
|
15844
|
+
className
|
|
15823
15845
|
),
|
|
15824
15846
|
style,
|
|
15825
15847
|
onSubmit: (e2) => {
|
|
@@ -16638,10 +16660,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16638
16660
|
/* @__PURE__ */ React.createElement(
|
|
16639
16661
|
"div",
|
|
16640
16662
|
{
|
|
16641
|
-
className: classNames(
|
|
16642
|
-
|
|
16643
|
-
|
|
16644
|
-
|
|
16663
|
+
className: classNames(
|
|
16664
|
+
{
|
|
16665
|
+
"nut-menu-item__wrap": direction === "down",
|
|
16666
|
+
"nut-menu-item__wrap-up": direction !== "down"
|
|
16667
|
+
},
|
|
16668
|
+
className
|
|
16669
|
+
),
|
|
16645
16670
|
style: {
|
|
16646
16671
|
...style,
|
|
16647
16672
|
...isShow()
|
|
@@ -16802,10 +16827,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16802
16827
|
return /* @__PURE__ */ React.createElement(
|
|
16803
16828
|
"div",
|
|
16804
16829
|
{
|
|
16805
|
-
className: classNames(
|
|
16806
|
-
|
|
16807
|
-
|
|
16808
|
-
|
|
16830
|
+
className: classNames(
|
|
16831
|
+
"nut-menu__item ",
|
|
16832
|
+
{
|
|
16833
|
+
active: showMenuItem[index],
|
|
16834
|
+
disabled
|
|
16835
|
+
},
|
|
16836
|
+
className
|
|
16837
|
+
),
|
|
16809
16838
|
style: { color: showMenuItem[index] ? activeColor : "" },
|
|
16810
16839
|
key: index,
|
|
16811
16840
|
onClick: (e2) => {
|
|
@@ -16824,7 +16853,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16824
16853
|
})
|
|
16825
16854
|
},
|
|
16826
16855
|
/* @__PURE__ */ React.createElement("div", { className: "nut-menu__title-text" }, finallyTitle()),
|
|
16827
|
-
icon || (direction === "up" ? /* @__PURE__ */ React.createElement(t$
|
|
16856
|
+
icon || (direction === "up" ? /* @__PURE__ */ React.createElement(t$b, { className: "nut-menu__title-icon" }) : /* @__PURE__ */ React.createElement(e$3, { className: "nut-menu__title-icon" }))
|
|
16828
16857
|
)
|
|
16829
16858
|
);
|
|
16830
16859
|
}
|
|
@@ -17071,9 +17100,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17071
17100
|
/* @__PURE__ */ React.createElement(
|
|
17072
17101
|
"div",
|
|
17073
17102
|
{
|
|
17074
|
-
className: classNames(
|
|
17075
|
-
|
|
17076
|
-
|
|
17103
|
+
className: classNames(
|
|
17104
|
+
classPrefix$f,
|
|
17105
|
+
{
|
|
17106
|
+
[`${classPrefix$f}--${props.direction}`]: props.direction
|
|
17107
|
+
},
|
|
17108
|
+
className
|
|
17109
|
+
),
|
|
17077
17110
|
...rest
|
|
17078
17111
|
},
|
|
17079
17112
|
(options2 == null ? void 0 : options2.length) ? renderOptionsChildren() : children
|
|
@@ -17177,16 +17210,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17177
17210
|
return React.isValidElement(icon2) ? React.cloneElement(icon2, {
|
|
17178
17211
|
...icon2.props,
|
|
17179
17212
|
className: classNames(color())
|
|
17180
|
-
}) : /* @__PURE__ */ React.createElement(t$
|
|
17213
|
+
}) : /* @__PURE__ */ React.createElement(t$a, { className: classNames(color()) });
|
|
17181
17214
|
};
|
|
17182
|
-
const reverse = labelPosition === "left";
|
|
17183
17215
|
const renderRadioItem = () => {
|
|
17184
17216
|
if (shape === "button") {
|
|
17185
17217
|
return renderButton();
|
|
17186
17218
|
}
|
|
17187
|
-
if (reverse) {
|
|
17188
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, renderLabel(), renderIcon());
|
|
17189
|
-
}
|
|
17190
17219
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, renderIcon(), renderLabel());
|
|
17191
17220
|
};
|
|
17192
17221
|
const handleClick2 = (e2) => {
|
|
@@ -17197,7 +17226,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17197
17226
|
return /* @__PURE__ */ React.createElement(
|
|
17198
17227
|
"div",
|
|
17199
17228
|
{
|
|
17200
|
-
className:
|
|
17229
|
+
className: classNames(
|
|
17230
|
+
classPrefix2,
|
|
17231
|
+
{
|
|
17232
|
+
[`${classPrefix2}--reverse`]: labelPosition === "left"
|
|
17233
|
+
},
|
|
17234
|
+
className
|
|
17235
|
+
),
|
|
17201
17236
|
style,
|
|
17202
17237
|
onClick: handleClick2,
|
|
17203
17238
|
...rest
|
|
@@ -17270,9 +17305,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17270
17305
|
[`${classPrefix2}-disabled`]: disabled,
|
|
17271
17306
|
[`${classPrefix2}-vertical`]: vertical
|
|
17272
17307
|
});
|
|
17273
|
-
const containerClasses = classNames(
|
|
17274
|
-
|
|
17275
|
-
|
|
17308
|
+
const containerClasses = classNames(
|
|
17309
|
+
`${classPrefix2}-container`,
|
|
17310
|
+
{
|
|
17311
|
+
[`${classPrefix2}-container-vertical`]: vertical
|
|
17312
|
+
},
|
|
17313
|
+
className
|
|
17314
|
+
);
|
|
17276
17315
|
const markClassName = React.useCallback(
|
|
17277
17316
|
(mark) => {
|
|
17278
17317
|
const classPrefix22 = "nut-range-mark";
|
|
@@ -17571,10 +17610,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17571
17610
|
return /* @__PURE__ */ React.createElement(
|
|
17572
17611
|
"div",
|
|
17573
17612
|
{
|
|
17574
|
-
className: classNames(
|
|
17575
|
-
|
|
17576
|
-
|
|
17577
|
-
|
|
17613
|
+
className: classNames(
|
|
17614
|
+
classPrefix2,
|
|
17615
|
+
{
|
|
17616
|
+
disabled,
|
|
17617
|
+
readonly: readOnly
|
|
17618
|
+
},
|
|
17619
|
+
className
|
|
17620
|
+
),
|
|
17578
17621
|
style
|
|
17579
17622
|
},
|
|
17580
17623
|
countArray.map((n) => {
|
|
@@ -17729,7 +17772,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17729
17772
|
className: `${classPrefix2}__clear ${rightIn ? "pos-right" : ""}`,
|
|
17730
17773
|
onClick: (e2) => clearaVal(e2)
|
|
17731
17774
|
},
|
|
17732
|
-
/* @__PURE__ */ React.createElement(
|
|
17775
|
+
/* @__PURE__ */ React.createElement(t$7, { color: "#555", width: 12, height: 12 })
|
|
17733
17776
|
);
|
|
17734
17777
|
};
|
|
17735
17778
|
const clearaVal = (event) => {
|
|
@@ -17848,7 +17891,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17848
17891
|
onCloseIconClick: onClose,
|
|
17849
17892
|
...rest
|
|
17850
17893
|
},
|
|
17851
|
-
/* @__PURE__ */ React.createElement("div", { className: classNames(
|
|
17894
|
+
/* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className), style }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__title` }, title || locale.shortpassword.title), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__description` }, description || locale.shortpassword.description), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__input`, onClick: onFocus }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__input-site` }), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__input-fake` }, [...new Array(comLen).keys()].map((item, index) => {
|
|
17852
17895
|
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__input-fake__li`, key: index }, inputValue.length > index && /* @__PURE__ */ React.createElement(React.Fragment, null, plain ? inputValue[index] : /* @__PURE__ */ React.createElement(
|
|
17853
17896
|
"div",
|
|
17854
17897
|
{
|
|
@@ -18123,9 +18166,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18123
18166
|
return /* @__PURE__ */ React.createElement(
|
|
18124
18167
|
"div",
|
|
18125
18168
|
{
|
|
18126
|
-
className: classNames(
|
|
18127
|
-
|
|
18128
|
-
|
|
18169
|
+
className: classNames(
|
|
18170
|
+
classPrefix2,
|
|
18171
|
+
{
|
|
18172
|
+
[`${classPrefix2}__disabled`]: disabled
|
|
18173
|
+
},
|
|
18174
|
+
className
|
|
18175
|
+
)
|
|
18129
18176
|
},
|
|
18130
18177
|
/* @__PURE__ */ React.createElement(
|
|
18131
18178
|
"textarea",
|
|
@@ -18380,7 +18427,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18380
18427
|
}) => {
|
|
18381
18428
|
const renderIcon = (item) => {
|
|
18382
18429
|
if (item.status === ERROR) {
|
|
18383
|
-
return item.failIcon || /* @__PURE__ */ React.createElement(t$
|
|
18430
|
+
return item.failIcon || /* @__PURE__ */ React.createElement(t$7, { color: "#fff" });
|
|
18384
18431
|
}
|
|
18385
18432
|
return item.loadingIcon || /* @__PURE__ */ React.createElement(o$2, { className: "nut-icon-loading", color: "#fff" });
|
|
18386
18433
|
};
|
|
@@ -18393,7 +18440,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18393
18440
|
key: item.uid
|
|
18394
18441
|
},
|
|
18395
18442
|
previewType === "picture" && deletable && /* @__PURE__ */ React.createElement(
|
|
18396
|
-
t$
|
|
18443
|
+
t$7,
|
|
18397
18444
|
{
|
|
18398
18445
|
color: "rgba(0,0,0,0.6)",
|
|
18399
18446
|
className: "close",
|
|
@@ -18435,7 +18482,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18435
18482
|
/* @__PURE__ */ React.createElement(t$5, null),
|
|
18436
18483
|
/* @__PURE__ */ React.createElement("span", null, " ", item.name)
|
|
18437
18484
|
), deletable && /* @__PURE__ */ React.createElement(
|
|
18438
|
-
t$
|
|
18485
|
+
t$8,
|
|
18439
18486
|
{
|
|
18440
18487
|
color: "#808080",
|
|
18441
18488
|
className: "nut-uploader__preview-img__file__del",
|
|
@@ -19376,7 +19423,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19376
19423
|
const refreshMaxH = React.useRef(0);
|
|
19377
19424
|
const y = React.useRef(0);
|
|
19378
19425
|
const distance = React.useRef(0);
|
|
19379
|
-
const classes = classNames(
|
|
19426
|
+
const classes = classNames(classPrefix$d, className);
|
|
19380
19427
|
React.useEffect(() => {
|
|
19381
19428
|
if (target && document.getElementById(target)) {
|
|
19382
19429
|
scrollEl.current = document.getElementById(target);
|
|
@@ -19387,7 +19434,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19387
19434
|
return () => {
|
|
19388
19435
|
scrollEl.current.removeEventListener("scroll", handleScroll, capture);
|
|
19389
19436
|
};
|
|
19390
|
-
}, [hasMore, isInfiniting]);
|
|
19437
|
+
}, [hasMore, isInfiniting, onLoadMore]);
|
|
19391
19438
|
React.useEffect(() => {
|
|
19392
19439
|
const element = scroller.current;
|
|
19393
19440
|
element.addEventListener("touchmove", touchMove, { passive: false });
|
|
@@ -19526,8 +19573,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19526
19573
|
{
|
|
19527
19574
|
className: classNames(
|
|
19528
19575
|
classPrefix2,
|
|
19529
|
-
|
|
19530
|
-
|
|
19576
|
+
direction === "vertical" ? `${classPrefix2}-vertical` : "",
|
|
19577
|
+
className
|
|
19531
19578
|
),
|
|
19532
19579
|
style
|
|
19533
19580
|
},
|
|
@@ -19881,7 +19928,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19881
19928
|
},
|
|
19882
19929
|
children,
|
|
19883
19930
|
content
|
|
19884
|
-
)), closeable || rightIcon ? /* @__PURE__ */ React.createElement("div", { className: "right-icon", onClick: onClickIcon }, rightIcon || /* @__PURE__ */ React.createElement(t$
|
|
19931
|
+
)), closeable || rightIcon ? /* @__PURE__ */ React.createElement("div", { className: "right-icon", onClick: onClickIcon }, rightIcon || /* @__PURE__ */ React.createElement(t$9, { width: 12, height: 12 })) : null) : null, showNoticeBar && scrollList.current.length > 0 && isVertical ? /* @__PURE__ */ React.createElement(
|
|
19885
19932
|
"div",
|
|
19886
19933
|
{
|
|
19887
19934
|
className: "nut-noticebar-vertical",
|
|
@@ -19928,7 +19975,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19928
19975
|
handleClickIcon(e2);
|
|
19929
19976
|
}
|
|
19930
19977
|
},
|
|
19931
|
-
rightIcon || (closeable ? /* @__PURE__ */ React.createElement(t$
|
|
19978
|
+
rightIcon || (closeable ? /* @__PURE__ */ React.createElement(t$9, { width: 12, height: 12 }) : null)
|
|
19932
19979
|
)
|
|
19933
19980
|
) : null);
|
|
19934
19981
|
};
|
|
@@ -20607,7 +20654,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20607
20654
|
width: sizeValue.indexOf(size) > -1 ? "" : `${size}px`,
|
|
20608
20655
|
height: sizeValue.indexOf(size) > -1 ? "" : `${size}px`,
|
|
20609
20656
|
backgroundColor: `${background}`,
|
|
20610
|
-
color
|
|
20657
|
+
color,
|
|
20611
20658
|
marginLeft: avatarIndex !== 1 && ((_c = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _c.gap) ? `${(_d = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _d.gap}px` : "",
|
|
20612
20659
|
zIndex: ((_e = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _e.level) === "right" ? `${Math.abs(maxSum - avatarIndex)}` : "",
|
|
20613
20660
|
...style
|
|
@@ -20701,7 +20748,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20701
20748
|
...props
|
|
20702
20749
|
};
|
|
20703
20750
|
const classPrefix2 = "nut-skeleton";
|
|
20704
|
-
const classes = classNames(
|
|
20751
|
+
const classes = classNames(classPrefix2, className);
|
|
20705
20752
|
const avatarClass = classNames({
|
|
20706
20753
|
avatar: true,
|
|
20707
20754
|
[`avatar--${avatarShape}`]: avatarShape
|
|
@@ -20978,10 +21025,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20978
21025
|
iconNode = /* @__PURE__ */ React__namespace.createElement(o$2, { className: "nut-icon-loading" });
|
|
20979
21026
|
break;
|
|
20980
21027
|
case "fail":
|
|
20981
|
-
iconNode = /* @__PURE__ */ React__namespace.createElement(t$
|
|
21028
|
+
iconNode = /* @__PURE__ */ React__namespace.createElement(t$7, null);
|
|
20982
21029
|
break;
|
|
20983
21030
|
case "warn":
|
|
20984
|
-
iconNode = /* @__PURE__ */ React__namespace.createElement(t$
|
|
21031
|
+
iconNode = /* @__PURE__ */ React__namespace.createElement(t$2, null);
|
|
20985
21032
|
break;
|
|
20986
21033
|
}
|
|
20987
21034
|
return /* @__PURE__ */ React__namespace.createElement("p", { className: `${classPrefix$8}__icon-wrapper` }, iconNode);
|
|
@@ -21064,7 +21111,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21064
21111
|
render(/* @__PURE__ */ React__namespace.createElement(Notification, { ...properties, ref }), element);
|
|
21065
21112
|
};
|
|
21066
21113
|
let messageInstance = null;
|
|
21067
|
-
|
|
21114
|
+
let options = {
|
|
21068
21115
|
...ComponentDefaults,
|
|
21069
21116
|
id: "",
|
|
21070
21117
|
duration: 2,
|
|
@@ -21120,18 +21167,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21120
21167
|
});
|
|
21121
21168
|
}
|
|
21122
21169
|
function config(config2) {
|
|
21123
|
-
|
|
21124
|
-
options.duration = config2.duration;
|
|
21125
|
-
}
|
|
21126
|
-
if (config2.position !== void 0) {
|
|
21127
|
-
options.position = config2.position;
|
|
21128
|
-
}
|
|
21129
|
-
if (config2.closeOnOverlayClick !== void 0) {
|
|
21130
|
-
options.closeOnOverlayClick = config2.closeOnOverlayClick;
|
|
21131
|
-
}
|
|
21132
|
-
if (config2.lockScroll !== void 0) {
|
|
21133
|
-
options.lockScroll = config2.lockScroll;
|
|
21134
|
-
}
|
|
21170
|
+
options = { ...options, ...config2 };
|
|
21135
21171
|
}
|
|
21136
21172
|
const Toast = {
|
|
21137
21173
|
show,
|
|
@@ -21554,7 +21590,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21554
21590
|
...defaultProps$o,
|
|
21555
21591
|
...props
|
|
21556
21592
|
};
|
|
21557
|
-
const classes = classNames(
|
|
21593
|
+
const classes = classNames(classPrefix$6, className);
|
|
21558
21594
|
const refRandomId = Math.random().toString(36).slice(-8);
|
|
21559
21595
|
const styles = {
|
|
21560
21596
|
height: `${Number(radius) * 2}px`,
|
|
@@ -22267,7 +22303,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22267
22303
|
...props
|
|
22268
22304
|
};
|
|
22269
22305
|
const rootRef = React.useRef(null);
|
|
22270
|
-
const classes = classNames(
|
|
22306
|
+
const classes = classNames(classPrefix$4, className);
|
|
22271
22307
|
React.useEffect(() => {
|
|
22272
22308
|
init();
|
|
22273
22309
|
}, []);
|
|
@@ -22822,6 +22858,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22822
22858
|
};
|
|
22823
22859
|
const ImagePreview = (props) => {
|
|
22824
22860
|
const {
|
|
22861
|
+
className,
|
|
22862
|
+
style,
|
|
22825
22863
|
images,
|
|
22826
22864
|
videos,
|
|
22827
22865
|
visible,
|
|
@@ -22979,7 +23017,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22979
23017
|
/* @__PURE__ */ React.createElement(
|
|
22980
23018
|
"div",
|
|
22981
23019
|
{
|
|
22982
|
-
className: classPrefix2,
|
|
23020
|
+
className: classNames(classPrefix2, className),
|
|
23021
|
+
style,
|
|
22983
23022
|
ref,
|
|
22984
23023
|
onClick: closeOnImg,
|
|
22985
23024
|
onTouchStart
|
|
@@ -23200,7 +23239,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23200
23239
|
return /* @__PURE__ */ React.createElement(
|
|
23201
23240
|
"div",
|
|
23202
23241
|
{
|
|
23203
|
-
className: `${classPrefix2} ${
|
|
23242
|
+
className: `${classPrefix2} ${line ? `${classPrefix2}--line` : ""} ${className}`,
|
|
23204
23243
|
style,
|
|
23205
23244
|
...rest
|
|
23206
23245
|
},
|
|
@@ -23258,11 +23297,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23258
23297
|
};
|
|
23259
23298
|
const classPrefix2 = `nut-step`;
|
|
23260
23299
|
const classes = classNames(
|
|
23300
|
+
classPrefix2,
|
|
23261
23301
|
{
|
|
23262
23302
|
[`${classPrefix2}-${getCurrentStatus()}`]: true
|
|
23263
23303
|
},
|
|
23264
|
-
className
|
|
23265
|
-
classPrefix2
|
|
23304
|
+
className
|
|
23266
23305
|
);
|
|
23267
23306
|
const renderIconClass = () => {
|
|
23268
23307
|
if (icon) {
|
|
@@ -23299,12 +23338,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23299
23338
|
};
|
|
23300
23339
|
const classPrefix2 = `nut-steps`;
|
|
23301
23340
|
const classes = classNames(
|
|
23341
|
+
classPrefix2,
|
|
23302
23342
|
{
|
|
23303
23343
|
[`${classPrefix2}-${direction}`]: true,
|
|
23304
23344
|
[`${classPrefix2}-dot`]: !!props.dot
|
|
23305
23345
|
},
|
|
23306
|
-
className
|
|
23307
|
-
classPrefix2
|
|
23346
|
+
className
|
|
23308
23347
|
);
|
|
23309
23348
|
return /* @__PURE__ */ React.createElement(DataContext.Provider, { value: parentSteps }, React.createElement(
|
|
23310
23349
|
"div",
|
|
@@ -23511,7 +23550,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23511
23550
|
},
|
|
23512
23551
|
closeIcon
|
|
23513
23552
|
) : /* @__PURE__ */ React.createElement(
|
|
23514
|
-
t$
|
|
23553
|
+
t$9,
|
|
23515
23554
|
{
|
|
23516
23555
|
width: 12,
|
|
23517
23556
|
height: 12,
|
|
@@ -23587,7 +23626,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23587
23626
|
width: 0,
|
|
23588
23627
|
height: 0
|
|
23589
23628
|
});
|
|
23590
|
-
const classes = classNames(
|
|
23629
|
+
const classes = classNames(classPrefix$2, className);
|
|
23591
23630
|
React.useEffect(() => {
|
|
23592
23631
|
if (visible) {
|
|
23593
23632
|
getRootPosition();
|
|
@@ -23664,7 +23703,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23664
23703
|
arrowOffset: item.arrowOffset || 0
|
|
23665
23704
|
},
|
|
23666
23705
|
/* @__PURE__ */ React.createElement(React.Fragment, null),
|
|
23667
|
-
/* @__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: (e2) => maskClose(e2) }, /* @__PURE__ */ React.createElement(t$
|
|
23706
|
+
/* @__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: (e2) => maskClose(e2) }, /* @__PURE__ */ React.createElement(t$9, { 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(
|
|
23668
23707
|
"div",
|
|
23669
23708
|
{
|
|
23670
23709
|
className: "nut-tour-content-bottom-operate-btn",
|
|
@@ -23941,7 +23980,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23941
23980
|
return /* @__PURE__ */ React.createElement(
|
|
23942
23981
|
"div",
|
|
23943
23982
|
{
|
|
23944
|
-
className:
|
|
23983
|
+
className: classNames("nut-virtualList-box", className),
|
|
23945
23984
|
...rest,
|
|
23946
23985
|
style: {
|
|
23947
23986
|
[sizeKey]: containerHeight ? `${offSetSize}px` : ""
|
|
@@ -23951,7 +23990,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23951
23990
|
"div",
|
|
23952
23991
|
{
|
|
23953
23992
|
ref: scrollRef,
|
|
23954
|
-
className:
|
|
23993
|
+
className: classNames({
|
|
23994
|
+
"nut-horizontal-box": horizontal,
|
|
23995
|
+
"nut-vertical-box": !horizontal
|
|
23996
|
+
}),
|
|
23955
23997
|
style: {
|
|
23956
23998
|
position: "relative",
|
|
23957
23999
|
[sizeKey]: `${listTotalSize}px`
|
|
@@ -23960,7 +24002,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23960
24002
|
/* @__PURE__ */ React.createElement(
|
|
23961
24003
|
"ul",
|
|
23962
24004
|
{
|
|
23963
|
-
className:
|
|
24005
|
+
className: classNames("nut-virtuallist-items", {
|
|
24006
|
+
"nut-horizontal-items": horizontal,
|
|
24007
|
+
"nut-vertical-items": !horizontal
|
|
24008
|
+
}),
|
|
23964
24009
|
ref: itemsRef,
|
|
23965
24010
|
style: {
|
|
23966
24011
|
transform: horizontal ? `translate3d(${options2.startOffset}px,0,0)` : `translate3d(0,${options2.startOffset}px,0)`
|
|
@@ -24516,8 +24561,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24516
24561
|
space: 10,
|
|
24517
24562
|
toolbar: [
|
|
24518
24563
|
/* @__PURE__ */ React.createElement(Button, { type: "danger", key: "cancel" }, "取消"),
|
|
24519
|
-
/* @__PURE__ */ React.createElement(Button, {
|
|
24520
|
-
/* @__PURE__ */ React.createElement(Button, {
|
|
24564
|
+
/* @__PURE__ */ React.createElement(Button, { key: "reset" }, "重置"),
|
|
24565
|
+
/* @__PURE__ */ React.createElement(Button, { key: "rotate" }, "旋转"),
|
|
24521
24566
|
/* @__PURE__ */ React.createElement(Button, { type: "success", key: "confirm" }, "确认")
|
|
24522
24567
|
],
|
|
24523
24568
|
toolbarPosition: "bottom",
|
|
@@ -24935,6 +24980,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24935
24980
|
exports2.Range = Range;
|
|
24936
24981
|
exports2.Rate = Rate;
|
|
24937
24982
|
exports2.Row = Row;
|
|
24983
|
+
exports2.SafeArea = SafeArea;
|
|
24938
24984
|
exports2.SearchBar = SearchBar;
|
|
24939
24985
|
exports2.ShortPassword = ShortPassword;
|
|
24940
24986
|
exports2.SideNavBar = SideNavBar;
|