react-vant-nova 1.0.9 → 1.1.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/bundle/index.css +52 -0
- package/bundle/index.min.css +1 -1
- package/bundle/react-vant-nova.es.js +561 -498
- package/bundle/react-vant-nova.js +85 -21
- package/bundle/react-vant-nova.min.js +2 -2
- package/es/avatar/Avatar.d.ts +4 -0
- package/es/avatar/Avatar.js +68 -0
- package/es/avatar/PropsType.d.ts +34 -0
- package/es/avatar/PropsType.js +1 -0
- package/es/avatar/index.d.ts +5 -0
- package/es/avatar/index.js +4 -0
- package/es/avatar/style/index.css +52 -0
- package/es/avatar/style/var.css +0 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/lib/avatar/Avatar.d.ts +4 -0
- package/lib/avatar/Avatar.js +94 -0
- package/lib/avatar/PropsType.d.ts +34 -0
- package/lib/avatar/PropsType.js +6 -0
- package/lib/avatar/index.d.ts +5 -0
- package/lib/avatar/index.js +16 -0
- package/lib/avatar/style/index.css +52 -0
- package/lib/avatar/style/var.css +0 -0
- package/lib/index.css +52 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +12 -0
- package/lib/index.min.css +1 -1
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useRef, useEffect, useState, useMemo, useCallback, useContext, createContext, forwardRef, useImperativeHandle, memo, isValidElement, Children, cloneElement } from "react";
|
|
2
|
-
import
|
|
2
|
+
import clsx from "clsx";
|
|
3
3
|
import { ArrowLeft, ArrowUp, ArrowDown, Arrow, Cross, Clear, QuestionO, PhotoFail, Photo, Checked, Success, Search as Search$1, Star, StarO, Close, Description, Photograph, ExpandO } from "@react-vant/icons";
|
|
4
4
|
import { CSSTransition } from "react-transition-group";
|
|
5
5
|
import * as require$$0 from "react-dom";
|
|
@@ -915,7 +915,7 @@ function usePropsValue(options) {
|
|
|
915
915
|
);
|
|
916
916
|
return [stateRef.current, setState];
|
|
917
917
|
}
|
|
918
|
-
var index$
|
|
918
|
+
var index$18 = {
|
|
919
919
|
useClickAway,
|
|
920
920
|
useCountDown,
|
|
921
921
|
useEventListener,
|
|
@@ -934,14 +934,14 @@ var index$17 = {
|
|
|
934
934
|
useMemoizedFn,
|
|
935
935
|
usePropsValue
|
|
936
936
|
};
|
|
937
|
+
var index$17 = "";
|
|
937
938
|
var index$16 = "";
|
|
938
|
-
var index$15 = "";
|
|
939
939
|
const SpinIcon = ({ bem: bem2 }) => /* @__PURE__ */ React.createElement(React.Fragment, null, Array(12).fill(null).map((_, index2) => /* @__PURE__ */ React.createElement("i", {
|
|
940
940
|
key: index2,
|
|
941
|
-
className:
|
|
941
|
+
className: clsx(bem2("line", String(index2 + 1)))
|
|
942
942
|
})));
|
|
943
943
|
const CircularIcon = ({ bem: bem2 }) => /* @__PURE__ */ React.createElement("svg", {
|
|
944
|
-
className:
|
|
944
|
+
className: clsx(bem2("circular")),
|
|
945
945
|
viewBox: "25 25 50 50"
|
|
946
946
|
}, /* @__PURE__ */ React.createElement("circle", {
|
|
947
947
|
cx: "50",
|
|
@@ -950,7 +950,7 @@ const CircularIcon = ({ bem: bem2 }) => /* @__PURE__ */ React.createElement("svg
|
|
|
950
950
|
fill: "none"
|
|
951
951
|
}));
|
|
952
952
|
const BallIcon = ({ bem: bem2 }) => /* @__PURE__ */ React.createElement("div", {
|
|
953
|
-
className:
|
|
953
|
+
className: clsx(bem2("ball"))
|
|
954
954
|
}, /* @__PURE__ */ React.createElement("div", null), /* @__PURE__ */ React.createElement("div", null), /* @__PURE__ */ React.createElement("div", null));
|
|
955
955
|
const Icon = (bem2) => ({
|
|
956
956
|
spinner: /* @__PURE__ */ React.createElement(SpinIcon, {
|
|
@@ -963,7 +963,7 @@ const Icon = (bem2) => ({
|
|
|
963
963
|
bem: bem2
|
|
964
964
|
})
|
|
965
965
|
});
|
|
966
|
-
const [bem$
|
|
966
|
+
const [bem$1G] = createNamespace("loading");
|
|
967
967
|
const Loading = (props) => {
|
|
968
968
|
const {
|
|
969
969
|
className,
|
|
@@ -985,7 +985,7 @@ const Loading = (props) => {
|
|
|
985
985
|
const renderText = () => {
|
|
986
986
|
if (children) {
|
|
987
987
|
return /* @__PURE__ */ React.createElement("span", {
|
|
988
|
-
className:
|
|
988
|
+
className: clsx(bem$1G("text")),
|
|
989
989
|
style: {
|
|
990
990
|
fontSize: addUnit(textSize),
|
|
991
991
|
color: textColor != null ? textColor : color
|
|
@@ -995,12 +995,12 @@ const Loading = (props) => {
|
|
|
995
995
|
return null;
|
|
996
996
|
};
|
|
997
997
|
return /* @__PURE__ */ React.createElement("div", {
|
|
998
|
-
className:
|
|
998
|
+
className: clsx(className, bem$1G([type, { vertical }])),
|
|
999
999
|
style: props.style
|
|
1000
1000
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
1001
|
-
className:
|
|
1001
|
+
className: clsx(bem$1G("spinner", type)),
|
|
1002
1002
|
style: spinnerStyle
|
|
1003
|
-
}, Icon(bem$
|
|
1003
|
+
}, Icon(bem$1G)[type]), renderText());
|
|
1004
1004
|
};
|
|
1005
1005
|
const WHITE = "#fff";
|
|
1006
1006
|
const BORDER = "rv-hairline";
|
|
@@ -1013,7 +1013,7 @@ const BORDER_UNSET_TOP_BOTTOM = `${BORDER}-unset--top-bottom`;
|
|
|
1013
1013
|
const SHADOW = "rv-shadow";
|
|
1014
1014
|
const COMPONENT_TYPE_KEY = "__REACT_VANT_COMPONENT";
|
|
1015
1015
|
const ButtonContext = React.createContext({});
|
|
1016
|
-
const [bem$
|
|
1016
|
+
const [bem$1F] = createNamespace("button");
|
|
1017
1017
|
const Button$1 = (props) => {
|
|
1018
1018
|
const {
|
|
1019
1019
|
color,
|
|
@@ -1067,9 +1067,9 @@ const Button$1 = (props) => {
|
|
|
1067
1067
|
[parent == null ? void 0 : parent.tag, props.tag]
|
|
1068
1068
|
);
|
|
1069
1069
|
const TagElement = tag;
|
|
1070
|
-
const classes =
|
|
1070
|
+
const classes = clsx(
|
|
1071
1071
|
className,
|
|
1072
|
-
bem$
|
|
1072
|
+
bem$1F([
|
|
1073
1073
|
type,
|
|
1074
1074
|
size,
|
|
1075
1075
|
{
|
|
@@ -1106,7 +1106,7 @@ const Button$1 = (props) => {
|
|
|
1106
1106
|
if (loading) {
|
|
1107
1107
|
const { loadingSize = "20px" } = props;
|
|
1108
1108
|
return /* @__PURE__ */ React.createElement(Loading, {
|
|
1109
|
-
className:
|
|
1109
|
+
className: clsx(bem$1F("loading")),
|
|
1110
1110
|
size: loadingSize,
|
|
1111
1111
|
type: loadingType,
|
|
1112
1112
|
color: type === "default" ? void 0 : ""
|
|
@@ -1120,7 +1120,7 @@ const Button$1 = (props) => {
|
|
|
1120
1120
|
}
|
|
1121
1121
|
if (props.icon) {
|
|
1122
1122
|
return React.cloneElement(props.icon, {
|
|
1123
|
-
className:
|
|
1123
|
+
className: clsx(bem$1F("icon"))
|
|
1124
1124
|
});
|
|
1125
1125
|
}
|
|
1126
1126
|
return null;
|
|
@@ -1135,13 +1135,13 @@ const Button$1 = (props) => {
|
|
|
1135
1135
|
if (text) {
|
|
1136
1136
|
return /* @__PURE__ */ React.createElement("span", {
|
|
1137
1137
|
key: "text",
|
|
1138
|
-
className:
|
|
1138
|
+
className: clsx(bem$1F("text"))
|
|
1139
1139
|
}, text);
|
|
1140
1140
|
}
|
|
1141
1141
|
return null;
|
|
1142
1142
|
};
|
|
1143
1143
|
const renderContent = () => /* @__PURE__ */ React.createElement("div", {
|
|
1144
|
-
className:
|
|
1144
|
+
className: clsx(bem$1F("content"))
|
|
1145
1145
|
}, iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon());
|
|
1146
1146
|
const ValidTagElement = TagElement;
|
|
1147
1147
|
return /* @__PURE__ */ React.createElement(ValidTagElement, {
|
|
@@ -1153,7 +1153,7 @@ const Button$1 = (props) => {
|
|
|
1153
1153
|
onClick
|
|
1154
1154
|
}, renderContent());
|
|
1155
1155
|
};
|
|
1156
|
-
const [bem$
|
|
1156
|
+
const [bem$1E] = createNamespace("button-group");
|
|
1157
1157
|
const ButtonGroup = ({
|
|
1158
1158
|
className,
|
|
1159
1159
|
style,
|
|
@@ -1169,9 +1169,9 @@ const ButtonGroup = ({
|
|
|
1169
1169
|
return /* @__PURE__ */ React.createElement("div", {
|
|
1170
1170
|
onClick: internalClick,
|
|
1171
1171
|
style,
|
|
1172
|
-
className:
|
|
1172
|
+
className: clsx(
|
|
1173
1173
|
className,
|
|
1174
|
-
bem$
|
|
1174
|
+
bem$1E([
|
|
1175
1175
|
props.type,
|
|
1176
1176
|
{
|
|
1177
1177
|
round: props.round,
|
|
@@ -1186,7 +1186,7 @@ const ButtonGroup = ({
|
|
|
1186
1186
|
}, children));
|
|
1187
1187
|
};
|
|
1188
1188
|
const Button = Object.assign(Button$1, { Group: ButtonGroup });
|
|
1189
|
-
var index$
|
|
1189
|
+
var index$15 = "";
|
|
1190
1190
|
function mergeProps(...items) {
|
|
1191
1191
|
const result = { ...items[0] };
|
|
1192
1192
|
items.forEach((item) => {
|
|
@@ -1197,7 +1197,7 @@ function mergeProps(...items) {
|
|
|
1197
1197
|
});
|
|
1198
1198
|
return result;
|
|
1199
1199
|
}
|
|
1200
|
-
const [bem$
|
|
1200
|
+
const [bem$1D] = createNamespace("badge");
|
|
1201
1201
|
const Badge = (p) => {
|
|
1202
1202
|
const props = mergeProps(p, {
|
|
1203
1203
|
tag: "div",
|
|
@@ -1239,11 +1239,11 @@ const Badge = (p) => {
|
|
|
1239
1239
|
style = { ...props.style, ...style };
|
|
1240
1240
|
}
|
|
1241
1241
|
return /* @__PURE__ */ React.createElement("div", {
|
|
1242
|
-
className:
|
|
1242
|
+
className: clsx(
|
|
1243
1243
|
{
|
|
1244
1244
|
[props.className]: props.className && !props.children
|
|
1245
1245
|
},
|
|
1246
|
-
bem$
|
|
1246
|
+
bem$1D({ dot: props.dot, fixed: !!props.children })
|
|
1247
1247
|
),
|
|
1248
1248
|
style
|
|
1249
1249
|
}, renderContent());
|
|
@@ -1253,7 +1253,7 @@ const Badge = (p) => {
|
|
|
1253
1253
|
if (props.children) {
|
|
1254
1254
|
const ValidTagElement = TagElement;
|
|
1255
1255
|
return /* @__PURE__ */ React.createElement(ValidTagElement, {
|
|
1256
|
-
className:
|
|
1256
|
+
className: clsx(bem$1D("wrapper"), props.className),
|
|
1257
1257
|
style: props.style,
|
|
1258
1258
|
onClick: props.onClick,
|
|
1259
1259
|
onTouchStart: props.onTouchStart
|
|
@@ -1261,6 +1261,69 @@ const Badge = (p) => {
|
|
|
1261
1261
|
}
|
|
1262
1262
|
return renderBadge();
|
|
1263
1263
|
};
|
|
1264
|
+
var index$14 = "";
|
|
1265
|
+
const [bem$1C] = createNamespace("avatar");
|
|
1266
|
+
const presetSizes = ["mini", "small", "normal", "large"];
|
|
1267
|
+
const Avatar = (props) => {
|
|
1268
|
+
const {
|
|
1269
|
+
alt,
|
|
1270
|
+
children,
|
|
1271
|
+
className,
|
|
1272
|
+
fallback,
|
|
1273
|
+
fit = "cover",
|
|
1274
|
+
shape = "circle",
|
|
1275
|
+
size = "normal",
|
|
1276
|
+
src,
|
|
1277
|
+
style,
|
|
1278
|
+
onClick,
|
|
1279
|
+
onError,
|
|
1280
|
+
onLoad
|
|
1281
|
+
} = props;
|
|
1282
|
+
const [failed, setFailed] = useState(false);
|
|
1283
|
+
useEffect(() => {
|
|
1284
|
+
setFailed(false);
|
|
1285
|
+
}, [src]);
|
|
1286
|
+
const avatarStyle = useMemo(() => {
|
|
1287
|
+
const internalStyle = { ...style };
|
|
1288
|
+
if (!presetSizes.includes(String(size))) {
|
|
1289
|
+
const sizeValue = addUnit(size);
|
|
1290
|
+
internalStyle.width = sizeValue;
|
|
1291
|
+
internalStyle.height = sizeValue;
|
|
1292
|
+
}
|
|
1293
|
+
return internalStyle;
|
|
1294
|
+
}, [style, size]);
|
|
1295
|
+
const handleLoad = (event) => {
|
|
1296
|
+
onLoad == null ? void 0 : onLoad(event);
|
|
1297
|
+
};
|
|
1298
|
+
const handleError = (event) => {
|
|
1299
|
+
setFailed(true);
|
|
1300
|
+
onError == null ? void 0 : onError(event);
|
|
1301
|
+
};
|
|
1302
|
+
const renderContent = () => {
|
|
1303
|
+
if (src && !failed) {
|
|
1304
|
+
return /* @__PURE__ */ React.createElement("img", {
|
|
1305
|
+
className: clsx(bem$1C("img")),
|
|
1306
|
+
src,
|
|
1307
|
+
alt: alt || "",
|
|
1308
|
+
style: { objectFit: fit },
|
|
1309
|
+
onLoad: handleLoad,
|
|
1310
|
+
onError: handleError
|
|
1311
|
+
});
|
|
1312
|
+
}
|
|
1313
|
+
return fallback != null ? fallback : children;
|
|
1314
|
+
};
|
|
1315
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
1316
|
+
className: clsx(
|
|
1317
|
+
className,
|
|
1318
|
+
bem$1C({
|
|
1319
|
+
[shape]: !!shape,
|
|
1320
|
+
[String(size)]: presetSizes.includes(String(size))
|
|
1321
|
+
})
|
|
1322
|
+
),
|
|
1323
|
+
style: avatarStyle,
|
|
1324
|
+
onClick
|
|
1325
|
+
}, renderContent());
|
|
1326
|
+
};
|
|
1264
1327
|
var index$13 = "";
|
|
1265
1328
|
var index$12 = "";
|
|
1266
1329
|
const [bem$1B] = createNamespace("cell-group");
|
|
@@ -1271,14 +1334,14 @@ const CellGroup = (p) => {
|
|
|
1271
1334
|
const { title, border, inset: insetP, card } = props;
|
|
1272
1335
|
const inset = card || insetP;
|
|
1273
1336
|
const renderGroup = () => /* @__PURE__ */ React.createElement("div", {
|
|
1274
|
-
className:
|
|
1337
|
+
className: clsx(bem$1B({ inset }), {
|
|
1275
1338
|
[BORDER_TOP_BOTTOM]: !inset && border
|
|
1276
1339
|
})
|
|
1277
1340
|
}, props.children);
|
|
1278
1341
|
const renderTitle = () => {
|
|
1279
1342
|
if (title)
|
|
1280
1343
|
return /* @__PURE__ */ React.createElement("div", {
|
|
1281
|
-
className:
|
|
1344
|
+
className: clsx(bem$1B("title"))
|
|
1282
1345
|
}, title);
|
|
1283
1346
|
return null;
|
|
1284
1347
|
};
|
|
@@ -1293,7 +1356,7 @@ const Cell$1 = (props) => {
|
|
|
1293
1356
|
const showLabel = isDef(props.label);
|
|
1294
1357
|
if (showLabel) {
|
|
1295
1358
|
return /* @__PURE__ */ React.createElement("div", {
|
|
1296
|
-
className:
|
|
1359
|
+
className: clsx(bem$1A("label"), props.labelClass)
|
|
1297
1360
|
}, props.label);
|
|
1298
1361
|
}
|
|
1299
1362
|
return null;
|
|
@@ -1301,7 +1364,7 @@ const Cell$1 = (props) => {
|
|
|
1301
1364
|
const renderTitle = () => {
|
|
1302
1365
|
if (isDef(props.title)) {
|
|
1303
1366
|
return /* @__PURE__ */ React.createElement("div", {
|
|
1304
|
-
className:
|
|
1367
|
+
className: clsx(bem$1A("title"), props.titleClass),
|
|
1305
1368
|
style: props.titleStyle
|
|
1306
1369
|
}, props.title, renderLabel());
|
|
1307
1370
|
}
|
|
@@ -1312,7 +1375,7 @@ const Cell$1 = (props) => {
|
|
|
1312
1375
|
const hasValue = isDef(props.children) || isDef(props.value);
|
|
1313
1376
|
if (hasValue) {
|
|
1314
1377
|
return /* @__PURE__ */ React.createElement("div", {
|
|
1315
|
-
className:
|
|
1378
|
+
className: clsx(bem$1A("value", { alone: !hasTitle }), props.valueClass)
|
|
1316
1379
|
}, isDef(props.children) ? props.children : /* @__PURE__ */ React.createElement("span", null, props.value));
|
|
1317
1380
|
}
|
|
1318
1381
|
return null;
|
|
@@ -1321,7 +1384,7 @@ const Cell$1 = (props) => {
|
|
|
1321
1384
|
var _a, _b, _c;
|
|
1322
1385
|
if (props.icon) {
|
|
1323
1386
|
return React.cloneElement(props.icon, {
|
|
1324
|
-
className:
|
|
1387
|
+
className: clsx((_c = (_b = (_a = props.icon) == null ? void 0 : _a.props) == null ? void 0 : _b.className) != null ? _c : "", bem$1A("left-icon"))
|
|
1325
1388
|
});
|
|
1326
1389
|
}
|
|
1327
1390
|
return null;
|
|
@@ -1331,7 +1394,7 @@ const Cell$1 = (props) => {
|
|
|
1331
1394
|
return props.rightIcon;
|
|
1332
1395
|
}
|
|
1333
1396
|
if (props.isLink) {
|
|
1334
|
-
const className2 =
|
|
1397
|
+
const className2 = clsx(bem$1A("right-icon"));
|
|
1335
1398
|
if (props.arrowDirection === "left")
|
|
1336
1399
|
return /* @__PURE__ */ React.createElement(ArrowLeft, {
|
|
1337
1400
|
className: className2
|
|
@@ -1372,7 +1435,7 @@ const Cell$1 = (props) => {
|
|
|
1372
1435
|
}
|
|
1373
1436
|
return /* @__PURE__ */ React.createElement("div", {
|
|
1374
1437
|
style,
|
|
1375
|
-
className:
|
|
1438
|
+
className: clsx(bem$1A(classes), className),
|
|
1376
1439
|
role: clickable ? "button" : void 0,
|
|
1377
1440
|
onClick
|
|
1378
1441
|
}, renderLeftIcon(), renderTitle(), renderValue(), renderRightIcon(), props.extra);
|
|
@@ -1416,7 +1479,7 @@ const Overlay = (p) => {
|
|
|
1416
1479
|
(_a = props.onClick) == null ? void 0 : _a.call(props, e);
|
|
1417
1480
|
}
|
|
1418
1481
|
},
|
|
1419
|
-
className:
|
|
1482
|
+
className: clsx(bem$1z(), props.className)
|
|
1420
1483
|
}, props.children)
|
|
1421
1484
|
);
|
|
1422
1485
|
};
|
|
@@ -1651,7 +1714,7 @@ const Popup = forwardRef((p, ref) => {
|
|
|
1651
1714
|
const { closeIconPosition } = props;
|
|
1652
1715
|
if (closeIcon) {
|
|
1653
1716
|
return /* @__PURE__ */ React.createElement("div", {
|
|
1654
|
-
className:
|
|
1717
|
+
className: clsx(bem$1y("close-icon", closeIconPosition)),
|
|
1655
1718
|
onClick: onClickCloseIcon
|
|
1656
1719
|
}, closeIcon);
|
|
1657
1720
|
}
|
|
@@ -1662,7 +1725,7 @@ const Popup = forwardRef((p, ref) => {
|
|
|
1662
1725
|
const renderTitle = () => {
|
|
1663
1726
|
if (title) {
|
|
1664
1727
|
return /* @__PURE__ */ React.createElement("div", {
|
|
1665
|
-
className:
|
|
1728
|
+
className: clsx(bem$1y("title"))
|
|
1666
1729
|
}, title);
|
|
1667
1730
|
}
|
|
1668
1731
|
return null;
|
|
@@ -1670,7 +1733,7 @@ const Popup = forwardRef((p, ref) => {
|
|
|
1670
1733
|
const renderDescription = () => {
|
|
1671
1734
|
if (description) {
|
|
1672
1735
|
return /* @__PURE__ */ React.createElement("div", {
|
|
1673
|
-
className:
|
|
1736
|
+
className: clsx(bem$1y("description"))
|
|
1674
1737
|
}, description);
|
|
1675
1738
|
}
|
|
1676
1739
|
return null;
|
|
@@ -1685,7 +1748,7 @@ const Popup = forwardRef((p, ref) => {
|
|
|
1685
1748
|
...style,
|
|
1686
1749
|
display: !visible && !animatedVisible ? "none" : void 0
|
|
1687
1750
|
},
|
|
1688
|
-
className:
|
|
1751
|
+
className: clsx(
|
|
1689
1752
|
bem$1y({
|
|
1690
1753
|
round,
|
|
1691
1754
|
[position]: position
|
|
@@ -1754,7 +1817,7 @@ const ActionBar$1 = (p) => {
|
|
|
1754
1817
|
return /* @__PURE__ */ React.createElement(ActionButtonContext.Provider, {
|
|
1755
1818
|
value: { parent: { children } }
|
|
1756
1819
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
1757
|
-
className:
|
|
1820
|
+
className: clsx(props.className, bem$1x(), {
|
|
1758
1821
|
"rv-safe-area-bottom": props.safeAreaInsetBottom
|
|
1759
1822
|
}),
|
|
1760
1823
|
style: props.style
|
|
@@ -1771,14 +1834,14 @@ const ActionBarIcon = (props) => {
|
|
|
1771
1834
|
if (icon) {
|
|
1772
1835
|
return /* @__PURE__ */ React.createElement(Badge, {
|
|
1773
1836
|
...badge,
|
|
1774
|
-
className:
|
|
1837
|
+
className: clsx(bem$1w("icon"))
|
|
1775
1838
|
}, icon);
|
|
1776
1839
|
}
|
|
1777
1840
|
return null;
|
|
1778
1841
|
};
|
|
1779
1842
|
return /* @__PURE__ */ React.createElement("div", {
|
|
1780
1843
|
role: "button",
|
|
1781
|
-
className:
|
|
1844
|
+
className: clsx(props.className, bem$1w()),
|
|
1782
1845
|
style: props.style,
|
|
1783
1846
|
tabIndex: 0,
|
|
1784
1847
|
onClick: props.onClick
|
|
@@ -1803,7 +1866,7 @@ const ActionBarButton = (props) => {
|
|
|
1803
1866
|
return false;
|
|
1804
1867
|
}, [index2, parent]);
|
|
1805
1868
|
return /* @__PURE__ */ React.createElement(Button, {
|
|
1806
|
-
className:
|
|
1869
|
+
className: clsx(
|
|
1807
1870
|
props.className,
|
|
1808
1871
|
bem$1v([
|
|
1809
1872
|
type,
|
|
@@ -1949,7 +2012,7 @@ const Dialog$1 = (p) => {
|
|
|
1949
2012
|
const renderTitle = () => {
|
|
1950
2013
|
if (props.title) {
|
|
1951
2014
|
return /* @__PURE__ */ React.createElement("div", {
|
|
1952
|
-
className:
|
|
2015
|
+
className: clsx(
|
|
1953
2016
|
bem$1u("header", {
|
|
1954
2017
|
isolated: !props.message && !props.children
|
|
1955
2018
|
})
|
|
@@ -1961,14 +2024,14 @@ const Dialog$1 = (p) => {
|
|
|
1961
2024
|
const renderContent = () => {
|
|
1962
2025
|
if (props.children) {
|
|
1963
2026
|
return /* @__PURE__ */ React.createElement("div", {
|
|
1964
|
-
className:
|
|
2027
|
+
className: clsx(bem$1u("content"))
|
|
1965
2028
|
}, props.children);
|
|
1966
2029
|
}
|
|
1967
2030
|
if (message) {
|
|
1968
2031
|
return /* @__PURE__ */ React.createElement("div", {
|
|
1969
|
-
className:
|
|
2032
|
+
className: clsx(bem$1u("content", { isolated: !title }))
|
|
1970
2033
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
1971
|
-
className:
|
|
2034
|
+
className: clsx(
|
|
1972
2035
|
bem$1u("message", {
|
|
1973
2036
|
"has-title": title,
|
|
1974
2037
|
[messageAlign]: messageAlign
|
|
@@ -1981,11 +2044,11 @@ const Dialog$1 = (p) => {
|
|
|
1981
2044
|
const renderButtons = () => {
|
|
1982
2045
|
var _a, _b, _c, _d, _e, _f;
|
|
1983
2046
|
return /* @__PURE__ */ React.createElement("div", {
|
|
1984
|
-
className:
|
|
2047
|
+
className: clsx(BORDER_TOP, bem$1u("footer"))
|
|
1985
2048
|
}, props.showCancelButton && /* @__PURE__ */ React.createElement(Button, {
|
|
1986
2049
|
size: "large",
|
|
1987
2050
|
text: props.cancelButtonText || locale.cancel,
|
|
1988
|
-
className:
|
|
2051
|
+
className: clsx(bem$1u("cancel")),
|
|
1989
2052
|
style: { color: props.cancelButtonColor },
|
|
1990
2053
|
loading: (_a = props.cancelProps) == null ? void 0 : _a.loading,
|
|
1991
2054
|
disabled: (_b = props.cancelProps) == null ? void 0 : _b.disabled,
|
|
@@ -1993,7 +2056,7 @@ const Dialog$1 = (p) => {
|
|
|
1993
2056
|
}), props.showConfirmButton && /* @__PURE__ */ React.createElement(Button, {
|
|
1994
2057
|
size: "large",
|
|
1995
2058
|
text: props.confirmButtonText || locale.confirm,
|
|
1996
|
-
className:
|
|
2059
|
+
className: clsx(bem$1u("confirm"), {
|
|
1997
2060
|
[BORDER_LEFT]: props.showCancelButton
|
|
1998
2061
|
}),
|
|
1999
2062
|
round: theme === "round-button" || void 0,
|
|
@@ -2006,11 +2069,11 @@ const Dialog$1 = (p) => {
|
|
|
2006
2069
|
const renderRoundButtons = () => {
|
|
2007
2070
|
var _a, _b, _c, _d, _e, _f;
|
|
2008
2071
|
return /* @__PURE__ */ React.createElement(ActionBar, {
|
|
2009
|
-
className:
|
|
2072
|
+
className: clsx(bem$1u("footer"))
|
|
2010
2073
|
}, props.showCancelButton && /* @__PURE__ */ React.createElement(ActionBar.Button, {
|
|
2011
2074
|
type: "warning",
|
|
2012
2075
|
text: props.cancelButtonText || locale.cancel,
|
|
2013
|
-
className:
|
|
2076
|
+
className: clsx(bem$1u("cancel")),
|
|
2014
2077
|
color: props.cancelButtonColor,
|
|
2015
2078
|
loading: (_a = props.cancelProps) == null ? void 0 : _a.loading,
|
|
2016
2079
|
disabled: (_b = props.cancelProps) == null ? void 0 : _b.disabled,
|
|
@@ -2018,7 +2081,7 @@ const Dialog$1 = (p) => {
|
|
|
2018
2081
|
}), props.showConfirmButton && /* @__PURE__ */ React.createElement(ActionBar.Button, {
|
|
2019
2082
|
type: "danger",
|
|
2020
2083
|
text: props.confirmButtonText || locale.confirm,
|
|
2021
|
-
className:
|
|
2084
|
+
className: clsx(bem$1u("confirm")),
|
|
2022
2085
|
color: props.confirmButtonColor,
|
|
2023
2086
|
loading: (_d = props.confirmProps) == null ? void 0 : _d.loading,
|
|
2024
2087
|
disabled: (_e = props.confirmProps) == null ? void 0 : _e.disabled,
|
|
@@ -2033,7 +2096,7 @@ const Dialog$1 = (p) => {
|
|
|
2033
2096
|
return /* @__PURE__ */ React.createElement(Popup, {
|
|
2034
2097
|
...others,
|
|
2035
2098
|
visible,
|
|
2036
|
-
className:
|
|
2099
|
+
className: clsx(bem$1u([theme]), className),
|
|
2037
2100
|
style: { width: addUnit(width) },
|
|
2038
2101
|
"aria-labelledby": title || message,
|
|
2039
2102
|
closeOnClickOverlay,
|
|
@@ -2328,7 +2391,7 @@ const Input$1 = forwardRef((p, ref) => {
|
|
|
2328
2391
|
inputMode,
|
|
2329
2392
|
ref: inputRef,
|
|
2330
2393
|
name,
|
|
2331
|
-
className:
|
|
2394
|
+
className: clsx(bem$1t("control")),
|
|
2332
2395
|
disabled,
|
|
2333
2396
|
autoFocus,
|
|
2334
2397
|
readOnly,
|
|
@@ -2364,18 +2427,18 @@ const Input$1 = forwardRef((p, ref) => {
|
|
|
2364
2427
|
(_a = props.onClear) == null ? void 0 : _a.call(props, e);
|
|
2365
2428
|
};
|
|
2366
2429
|
return /* @__PURE__ */ React.createElement("div", {
|
|
2367
|
-
className:
|
|
2430
|
+
className: clsx(bem$1t([align]), className),
|
|
2368
2431
|
style
|
|
2369
2432
|
}, props.prefix && /* @__PURE__ */ React.createElement("div", {
|
|
2370
|
-
className:
|
|
2433
|
+
className: clsx(bem$1t("prefix"))
|
|
2371
2434
|
}, props.prefix), renderInput(), showClear && React.cloneElement(
|
|
2372
2435
|
props.clearIcon || /* @__PURE__ */ React.createElement(Clear, null),
|
|
2373
2436
|
{
|
|
2374
|
-
className:
|
|
2437
|
+
className: clsx(bem$1t("clear")),
|
|
2375
2438
|
onTouchStart: handleClear
|
|
2376
2439
|
}
|
|
2377
2440
|
), props.suffix && /* @__PURE__ */ React.createElement("div", {
|
|
2378
|
-
className:
|
|
2441
|
+
className: clsx(bem$1t("suffix"))
|
|
2379
2442
|
}, props.suffix));
|
|
2380
2443
|
});
|
|
2381
2444
|
const [bem$1s] = createNamespace("textarea");
|
|
@@ -2481,9 +2544,9 @@ const TextArea = forwardRef((p, ref) => {
|
|
|
2481
2544
|
if (showWordLimit) {
|
|
2482
2545
|
const currentCount = (value ? `${value}` : "").length;
|
|
2483
2546
|
return /* @__PURE__ */ React.createElement("div", {
|
|
2484
|
-
className:
|
|
2547
|
+
className: clsx(bem$1s("word-limit"))
|
|
2485
2548
|
}, typeof showWordLimit === "function" ? showWordLimit({ currentCount, maxLength }) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("span", {
|
|
2486
|
-
className:
|
|
2549
|
+
className: clsx(bem$1s("word-num"))
|
|
2487
2550
|
}, currentCount), maxLength ? `/${maxLength}` : false));
|
|
2488
2551
|
}
|
|
2489
2552
|
return null;
|
|
@@ -2502,13 +2565,13 @@ const TextArea = forwardRef((p, ref) => {
|
|
|
2502
2565
|
return false;
|
|
2503
2566
|
}, [value, props.clearTrigger, hasFocus]);
|
|
2504
2567
|
return /* @__PURE__ */ React.createElement("div", {
|
|
2505
|
-
className:
|
|
2568
|
+
className: clsx(bem$1s(), className),
|
|
2506
2569
|
style
|
|
2507
2570
|
}, /* @__PURE__ */ React.createElement("textarea", {
|
|
2508
2571
|
ref: nativeTextAreaRef,
|
|
2509
2572
|
name,
|
|
2510
2573
|
rows,
|
|
2511
|
-
className:
|
|
2574
|
+
className: clsx(controlClass),
|
|
2512
2575
|
value,
|
|
2513
2576
|
disabled,
|
|
2514
2577
|
autoFocus,
|
|
@@ -2537,7 +2600,7 @@ const TextArea = forwardRef((p, ref) => {
|
|
|
2537
2600
|
},
|
|
2538
2601
|
onClick: props.onClick
|
|
2539
2602
|
}), showClear && React.cloneElement(props.clearIcon, {
|
|
2540
|
-
className:
|
|
2603
|
+
className: clsx(bem$1s("clear")),
|
|
2541
2604
|
onTouchStart: handleClear
|
|
2542
2605
|
}), renderWordLimit());
|
|
2543
2606
|
});
|
|
@@ -2626,7 +2689,7 @@ const Field = forwardRef((p, ref) => {
|
|
|
2626
2689
|
} = props;
|
|
2627
2690
|
if (isDef(props.children)) {
|
|
2628
2691
|
return /* @__PURE__ */ React.createElement("div", {
|
|
2629
|
-
className:
|
|
2692
|
+
className: clsx(bem$1r("children"))
|
|
2630
2693
|
}, props.children);
|
|
2631
2694
|
}
|
|
2632
2695
|
const commonProps = {
|
|
@@ -2670,7 +2733,7 @@ const Field = forwardRef((p, ref) => {
|
|
|
2670
2733
|
if (!leftIcon)
|
|
2671
2734
|
return null;
|
|
2672
2735
|
return /* @__PURE__ */ React.createElement("div", {
|
|
2673
|
-
className:
|
|
2736
|
+
className: clsx(bem$1r("left-icon")),
|
|
2674
2737
|
onClick: onClickLeftIcon
|
|
2675
2738
|
}, leftIcon);
|
|
2676
2739
|
};
|
|
@@ -2679,7 +2742,7 @@ const Field = forwardRef((p, ref) => {
|
|
|
2679
2742
|
if (!rightIcon)
|
|
2680
2743
|
return null;
|
|
2681
2744
|
return /* @__PURE__ */ React.createElement("div", {
|
|
2682
|
-
className:
|
|
2745
|
+
className: clsx(bem$1r("right-icon")),
|
|
2683
2746
|
onClick: onClickRightIcon
|
|
2684
2747
|
}, rightIcon);
|
|
2685
2748
|
};
|
|
@@ -2687,7 +2750,7 @@ const Field = forwardRef((p, ref) => {
|
|
|
2687
2750
|
const message = props.errorMessage;
|
|
2688
2751
|
if (message) {
|
|
2689
2752
|
return /* @__PURE__ */ React.createElement("div", {
|
|
2690
|
-
className:
|
|
2753
|
+
className: clsx(bem$1r("error-message"))
|
|
2691
2754
|
}, message);
|
|
2692
2755
|
}
|
|
2693
2756
|
return null;
|
|
@@ -2695,7 +2758,7 @@ const Field = forwardRef((p, ref) => {
|
|
|
2695
2758
|
const renderIntro = () => {
|
|
2696
2759
|
if (props.intro) {
|
|
2697
2760
|
return /* @__PURE__ */ React.createElement("div", {
|
|
2698
|
-
className:
|
|
2761
|
+
className: clsx(bem$1r("intro"))
|
|
2699
2762
|
}, props.intro);
|
|
2700
2763
|
}
|
|
2701
2764
|
return null;
|
|
@@ -2711,7 +2774,7 @@ const Field = forwardRef((p, ref) => {
|
|
|
2711
2774
|
dialogProps = customDialogProps;
|
|
2712
2775
|
}
|
|
2713
2776
|
return /* @__PURE__ */ React.createElement("div", {
|
|
2714
|
-
className:
|
|
2777
|
+
className: clsx(bem$1r("tooltip")),
|
|
2715
2778
|
onClick: () => Dialog.show(dialogProps)
|
|
2716
2779
|
}, icon);
|
|
2717
2780
|
}
|
|
@@ -2753,12 +2816,12 @@ const Field = forwardRef((p, ref) => {
|
|
|
2753
2816
|
clickable,
|
|
2754
2817
|
extra: props.extra,
|
|
2755
2818
|
titleStyle: { ...labelStyle(), ...titleStyle },
|
|
2756
|
-
valueClass:
|
|
2757
|
-
titleClass:
|
|
2819
|
+
valueClass: clsx(bem$1r("value", [controlAlign]), valueClass),
|
|
2820
|
+
titleClass: clsx(bem$1r("label", labelAlign), labelClass),
|
|
2758
2821
|
arrowDirection,
|
|
2759
2822
|
onClick: props.onClick,
|
|
2760
2823
|
style: props.style,
|
|
2761
|
-
className:
|
|
2824
|
+
className: clsx(
|
|
2762
2825
|
bem$1r({
|
|
2763
2826
|
error,
|
|
2764
2827
|
disabled,
|
|
@@ -2767,13 +2830,13 @@ const Field = forwardRef((p, ref) => {
|
|
|
2767
2830
|
className
|
|
2768
2831
|
)
|
|
2769
2832
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
2770
|
-
className:
|
|
2833
|
+
className: clsx(bem$1r("body"))
|
|
2771
2834
|
}, props.prefix && /* @__PURE__ */ React.createElement("div", {
|
|
2772
|
-
className:
|
|
2835
|
+
className: clsx(bem$1r("prefix"))
|
|
2773
2836
|
}, props.prefix), /* @__PURE__ */ React.createElement("div", {
|
|
2774
|
-
className:
|
|
2837
|
+
className: clsx(bem$1r("control-wrapper"))
|
|
2775
2838
|
}, renderInput()), renderRightIcon(), suffix && /* @__PURE__ */ React.createElement("div", {
|
|
2776
|
-
className:
|
|
2839
|
+
className: clsx(bem$1r("suffix"))
|
|
2777
2840
|
}, suffix)), renderMessage(), renderIntro());
|
|
2778
2841
|
});
|
|
2779
2842
|
const FIELD_KEY = Symbol("field");
|
|
@@ -2808,7 +2871,7 @@ const Flex$1 = (props) => {
|
|
|
2808
2871
|
} : {},
|
|
2809
2872
|
...style
|
|
2810
2873
|
};
|
|
2811
|
-
const wrapCls =
|
|
2874
|
+
const wrapCls = clsx(
|
|
2812
2875
|
className,
|
|
2813
2876
|
bem$1q([
|
|
2814
2877
|
direction,
|
|
@@ -2828,7 +2891,7 @@ const Flex$1 = (props) => {
|
|
|
2828
2891
|
const [bem$1p] = createNamespace("flexitem");
|
|
2829
2892
|
const FlexItem = (props) => {
|
|
2830
2893
|
const { style, className, span, children, flex, ...others } = props;
|
|
2831
|
-
const classes =
|
|
2894
|
+
const classes = clsx(bem$1p([span == null ? void 0 : span.toString()]), className);
|
|
2832
2895
|
const parseFlex = (_flex) => {
|
|
2833
2896
|
if (typeof _flex === "number") {
|
|
2834
2897
|
return `${_flex} ${_flex} auto`;
|
|
@@ -2892,7 +2955,7 @@ const Space = (props) => {
|
|
|
2892
2955
|
[props.children]
|
|
2893
2956
|
);
|
|
2894
2957
|
return /* @__PURE__ */ React.createElement("div", {
|
|
2895
|
-
className:
|
|
2958
|
+
className: clsx(
|
|
2896
2959
|
props.className,
|
|
2897
2960
|
bem$1o({
|
|
2898
2961
|
wrap,
|
|
@@ -2908,9 +2971,9 @@ const Space = (props) => {
|
|
|
2908
2971
|
return /* @__PURE__ */ React.createElement(React.Fragment, {
|
|
2909
2972
|
key: idx
|
|
2910
2973
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
2911
|
-
className:
|
|
2974
|
+
className: clsx(bem$1o("item"))
|
|
2912
2975
|
}, child), !!props.divider && idx !== childList.length - 1 && /* @__PURE__ */ React.createElement("div", {
|
|
2913
|
-
className:
|
|
2976
|
+
className: clsx(bem$1o("item-divider"))
|
|
2914
2977
|
}, props.divider));
|
|
2915
2978
|
}));
|
|
2916
2979
|
};
|
|
@@ -2966,7 +3029,7 @@ const Selector = (p) => {
|
|
|
2966
3029
|
const items = props.options.map((option) => {
|
|
2967
3030
|
const active = (value || []).includes(option.value);
|
|
2968
3031
|
const disabled = option.disabled || props.disabled;
|
|
2969
|
-
const itemCls =
|
|
3032
|
+
const itemCls = clsx(
|
|
2970
3033
|
bem$1n("item", {
|
|
2971
3034
|
active: active && !props.multiple,
|
|
2972
3035
|
"multiple-active": active && props.multiple,
|
|
@@ -2989,13 +3052,13 @@ const Selector = (p) => {
|
|
|
2989
3052
|
}
|
|
2990
3053
|
}
|
|
2991
3054
|
}, option.label, option.description && /* @__PURE__ */ React.createElement("div", {
|
|
2992
|
-
className:
|
|
3055
|
+
className: clsx(bem$1n("item-description"))
|
|
2993
3056
|
}, option.description), active && props.showCheckMark && /* @__PURE__ */ React.createElement("div", {
|
|
2994
|
-
className:
|
|
3057
|
+
className: clsx(bem$1n("check-mark-wrapper"))
|
|
2995
3058
|
}, /* @__PURE__ */ React.createElement(CheckMark, null)));
|
|
2996
3059
|
});
|
|
2997
3060
|
return /* @__PURE__ */ React.createElement("div", {
|
|
2998
|
-
className:
|
|
3061
|
+
className: clsx(bem$1n(), props.className),
|
|
2999
3062
|
style: props.style
|
|
3000
3063
|
}, items);
|
|
3001
3064
|
};
|
|
@@ -3134,7 +3197,7 @@ const Ellipsis = (p) => {
|
|
|
3134
3197
|
};
|
|
3135
3198
|
return /* @__PURE__ */ React.createElement("div", {
|
|
3136
3199
|
ref: rootRef,
|
|
3137
|
-
className:
|
|
3200
|
+
className: clsx("rv-typography__ellipsis", props.className),
|
|
3138
3201
|
style: props.style
|
|
3139
3202
|
}, renderContent());
|
|
3140
3203
|
};
|
|
@@ -3221,7 +3284,7 @@ const TypographyBase = ({
|
|
|
3221
3284
|
if (isEnhanceEllipsis)
|
|
3222
3285
|
return /* @__PURE__ */ React.createElement(Ellipsis, {
|
|
3223
3286
|
onContentClick: internalClick,
|
|
3224
|
-
className:
|
|
3287
|
+
className: clsx(
|
|
3225
3288
|
className,
|
|
3226
3289
|
`rv-typography__${renderType}`,
|
|
3227
3290
|
bem$1m([
|
|
@@ -3242,7 +3305,7 @@ const TypographyBase = ({
|
|
|
3242
3305
|
style: measureStyle
|
|
3243
3306
|
}, children);
|
|
3244
3307
|
return /* @__PURE__ */ React.createElement(TagElement, {
|
|
3245
|
-
className:
|
|
3308
|
+
className: clsx(
|
|
3246
3309
|
className,
|
|
3247
3310
|
`rv-typography__${renderType}`,
|
|
3248
3311
|
bem$1m([
|
|
@@ -3355,7 +3418,7 @@ const CountDown = forwardRef((p, ref) => {
|
|
|
3355
3418
|
reset: resetTime
|
|
3356
3419
|
}));
|
|
3357
3420
|
return /* @__PURE__ */ React.createElement("div", {
|
|
3358
|
-
className:
|
|
3421
|
+
className: clsx(props.className, bem$1l()),
|
|
3359
3422
|
style: props.style
|
|
3360
3423
|
}, props.children ? props.children(current) : timeText);
|
|
3361
3424
|
});
|
|
@@ -3372,7 +3435,7 @@ const Divider = ({
|
|
|
3372
3435
|
}) => {
|
|
3373
3436
|
return /* @__PURE__ */ React.createElement("div", {
|
|
3374
3437
|
role: "separator",
|
|
3375
|
-
className:
|
|
3438
|
+
className: clsx(
|
|
3376
3439
|
className,
|
|
3377
3440
|
bem$1k({
|
|
3378
3441
|
dashed,
|
|
@@ -3428,7 +3491,7 @@ const Image$1 = (props) => {
|
|
|
3428
3491
|
const renderLoadingIcon = () => {
|
|
3429
3492
|
if (loadingIcon)
|
|
3430
3493
|
return React.cloneElement(loadingIcon, {
|
|
3431
|
-
className:
|
|
3494
|
+
className: clsx(bem$1j("loading-icon")),
|
|
3432
3495
|
fontSize: props.iconSize
|
|
3433
3496
|
});
|
|
3434
3497
|
return null;
|
|
@@ -3436,7 +3499,7 @@ const Image$1 = (props) => {
|
|
|
3436
3499
|
const renderErrorIcon = () => {
|
|
3437
3500
|
if (errorIcon) {
|
|
3438
3501
|
return React.cloneElement(errorIcon, {
|
|
3439
|
-
className:
|
|
3502
|
+
className: clsx(bem$1j("error-icon")),
|
|
3440
3503
|
fontSize: props.iconSize
|
|
3441
3504
|
});
|
|
3442
3505
|
}
|
|
@@ -3445,13 +3508,13 @@ const Image$1 = (props) => {
|
|
|
3445
3508
|
const renderPlaceholder = () => {
|
|
3446
3509
|
if (status.loading && showLoading) {
|
|
3447
3510
|
return /* @__PURE__ */ React.createElement("div", {
|
|
3448
|
-
className:
|
|
3511
|
+
className: clsx(bem$1j("loading")),
|
|
3449
3512
|
onClick: props.onClick
|
|
3450
3513
|
}, renderLoadingIcon());
|
|
3451
3514
|
}
|
|
3452
3515
|
if (status.error && showError) {
|
|
3453
3516
|
return /* @__PURE__ */ React.createElement("div", {
|
|
3454
|
-
className:
|
|
3517
|
+
className: clsx(bem$1j("error")),
|
|
3455
3518
|
onClick: props.onClick
|
|
3456
3519
|
}, renderErrorIcon());
|
|
3457
3520
|
}
|
|
@@ -3462,7 +3525,7 @@ const Image$1 = (props) => {
|
|
|
3462
3525
|
return null;
|
|
3463
3526
|
}
|
|
3464
3527
|
const attrs = {
|
|
3465
|
-
className:
|
|
3528
|
+
className: clsx(bem$1j("img")),
|
|
3466
3529
|
style: {
|
|
3467
3530
|
objectFit: fit
|
|
3468
3531
|
}
|
|
@@ -3477,7 +3540,7 @@ const Image$1 = (props) => {
|
|
|
3477
3540
|
});
|
|
3478
3541
|
};
|
|
3479
3542
|
return /* @__PURE__ */ React.createElement("div", {
|
|
3480
|
-
className:
|
|
3543
|
+
className: clsx(
|
|
3481
3544
|
props.className,
|
|
3482
3545
|
bem$1j({
|
|
3483
3546
|
block,
|
|
@@ -3527,7 +3590,7 @@ const Skeleton = ({
|
|
|
3527
3590
|
const renderAvatar = () => {
|
|
3528
3591
|
if (props.avatar) {
|
|
3529
3592
|
return /* @__PURE__ */ React.createElement("div", {
|
|
3530
|
-
className:
|
|
3593
|
+
className: clsx(bem$1i("avatar", props.avatarShape)),
|
|
3531
3594
|
style: getSizeStyle(props.avatarSize)
|
|
3532
3595
|
});
|
|
3533
3596
|
}
|
|
@@ -3538,7 +3601,7 @@ const Skeleton = ({
|
|
|
3538
3601
|
const width = addUnit(props.titleWidth);
|
|
3539
3602
|
const height = addUnit(getRowHeight(0));
|
|
3540
3603
|
return /* @__PURE__ */ React.createElement("div", {
|
|
3541
|
-
className:
|
|
3604
|
+
className: clsx(bem$1i("title")),
|
|
3542
3605
|
style: { width, height }
|
|
3543
3606
|
});
|
|
3544
3607
|
}
|
|
@@ -3549,20 +3612,20 @@ const Skeleton = ({
|
|
|
3549
3612
|
const height = addUnit(getRowHeight(i));
|
|
3550
3613
|
return /* @__PURE__ */ React.createElement("div", {
|
|
3551
3614
|
key: i,
|
|
3552
|
-
className:
|
|
3615
|
+
className: clsx(bem$1i("row")),
|
|
3553
3616
|
style: { width, height }
|
|
3554
3617
|
});
|
|
3555
3618
|
});
|
|
3556
3619
|
if (!props.loading)
|
|
3557
3620
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
|
|
3558
3621
|
return /* @__PURE__ */ React.createElement("div", {
|
|
3559
|
-
className:
|
|
3622
|
+
className: clsx(
|
|
3560
3623
|
className,
|
|
3561
3624
|
bem$1i({ animate: props.animate, round: props.round })
|
|
3562
3625
|
),
|
|
3563
3626
|
style
|
|
3564
3627
|
}, renderAvatar(), /* @__PURE__ */ React.createElement("div", {
|
|
3565
|
-
className:
|
|
3628
|
+
className: clsx(bem$1i("content"))
|
|
3566
3629
|
}, renderTitle(), renderRows()));
|
|
3567
3630
|
};
|
|
3568
3631
|
const [bem$1h] = createNamespace("lazyload");
|
|
@@ -3577,14 +3640,14 @@ const Lazyload = (p) => {
|
|
|
3577
3640
|
const { height, placeholder, children, className, style } = props;
|
|
3578
3641
|
return inViewPort ? /* @__PURE__ */ React.createElement(React.Fragment, null, children) : /* @__PURE__ */ React.createElement("div", {
|
|
3579
3642
|
ref,
|
|
3580
|
-
className:
|
|
3643
|
+
className: clsx(bem$1h(), className),
|
|
3581
3644
|
style: { height, ...style }
|
|
3582
3645
|
}, placeholder);
|
|
3583
3646
|
};
|
|
3584
3647
|
const getLazyImagePlaceholder = (bem2) => /* @__PURE__ */ React.createElement("div", {
|
|
3585
|
-
className:
|
|
3648
|
+
className: clsx(bem2("loading"))
|
|
3586
3649
|
}, /* @__PURE__ */ React.createElement(Photo, {
|
|
3587
|
-
className:
|
|
3650
|
+
className: clsx(bem2("loading-icon"))
|
|
3588
3651
|
}));
|
|
3589
3652
|
const [bem$1g] = createNamespace("image");
|
|
3590
3653
|
const LazyImage = (p) => {
|
|
@@ -3605,7 +3668,7 @@ const LazyImage = (p) => {
|
|
|
3605
3668
|
if (lazyload) {
|
|
3606
3669
|
const { className, style, height, width } = imageProps;
|
|
3607
3670
|
const attrs = {
|
|
3608
|
-
className:
|
|
3671
|
+
className: clsx(className, bem$1g({ block: imageProps.block })),
|
|
3609
3672
|
style: { ...style, height, width }
|
|
3610
3673
|
};
|
|
3611
3674
|
return /* @__PURE__ */ React.createElement(Lazyload, {
|
|
@@ -3771,17 +3834,17 @@ const Slide = (props) => {
|
|
|
3771
3834
|
return lazyload.placeholder || getLazyImagePlaceholder(bem$1f);
|
|
3772
3835
|
};
|
|
3773
3836
|
return /* @__PURE__ */ React.createElement("div", {
|
|
3774
|
-
className:
|
|
3837
|
+
className: clsx(bem$1f("slide")),
|
|
3775
3838
|
onPointerMove: (e) => {
|
|
3776
3839
|
if (zoom.get() !== 1) {
|
|
3777
3840
|
e.stopPropagation();
|
|
3778
3841
|
}
|
|
3779
3842
|
}
|
|
3780
3843
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
3781
|
-
className:
|
|
3844
|
+
className: clsx(bem$1f("control")),
|
|
3782
3845
|
ref: controlRef
|
|
3783
3846
|
}, /* @__PURE__ */ React.createElement(animated.div, {
|
|
3784
|
-
className:
|
|
3847
|
+
className: clsx(bem$1f("image-wrapper")),
|
|
3785
3848
|
style: {
|
|
3786
3849
|
translateX: x,
|
|
3787
3850
|
translateY: y,
|
|
@@ -3863,10 +3926,10 @@ const Slides = forwardRef((props, ref) => {
|
|
|
3863
3926
|
}
|
|
3864
3927
|
);
|
|
3865
3928
|
return /* @__PURE__ */ React.createElement("div", {
|
|
3866
|
-
className:
|
|
3929
|
+
className: clsx(bem$1e("slides")),
|
|
3867
3930
|
...bind()
|
|
3868
3931
|
}, /* @__PURE__ */ React.createElement(animated.div, {
|
|
3869
|
-
className:
|
|
3932
|
+
className: clsx(bem$1e("slides-inner")),
|
|
3870
3933
|
style: { x: x.to((x2) => -x2) }
|
|
3871
3934
|
}, props.images.map((image, idx) => /* @__PURE__ */ React.createElement(Slide, {
|
|
3872
3935
|
key: `${image}${idx}`,
|
|
@@ -3893,7 +3956,7 @@ const SwiperPagIndicator = React.memo(
|
|
|
3893
3956
|
dots.push(
|
|
3894
3957
|
/* @__PURE__ */ React.createElement("div", {
|
|
3895
3958
|
key: i,
|
|
3896
|
-
className:
|
|
3959
|
+
className: clsx(
|
|
3897
3960
|
bem$1d("dot", {
|
|
3898
3961
|
active: props.current === i
|
|
3899
3962
|
})
|
|
@@ -3902,7 +3965,7 @@ const SwiperPagIndicator = React.memo(
|
|
|
3902
3965
|
);
|
|
3903
3966
|
}
|
|
3904
3967
|
return /* @__PURE__ */ React.createElement("div", {
|
|
3905
|
-
className:
|
|
3968
|
+
className: clsx(props.className, bem$1d({ vertical })),
|
|
3906
3969
|
style: props.style
|
|
3907
3970
|
}, dots);
|
|
3908
3971
|
}
|
|
@@ -3939,7 +4002,7 @@ const ImagePreview$1 = React.forwardRef(
|
|
|
3939
4002
|
(_a = props.onClose) == null ? void 0 : _a.call(props, { url: currentImage, index: active });
|
|
3940
4003
|
};
|
|
3941
4004
|
const renderContent = () => /* @__PURE__ */ React.createElement("div", {
|
|
3942
|
-
className:
|
|
4005
|
+
className: clsx(bem$1c("content"))
|
|
3943
4006
|
}, props.images && /* @__PURE__ */ React.createElement(Slides, {
|
|
3944
4007
|
ref: slidesRef,
|
|
3945
4008
|
defaultIndex: props.startPosition,
|
|
@@ -3956,7 +4019,7 @@ const ImagePreview$1 = React.forwardRef(
|
|
|
3956
4019
|
const renderClose = () => {
|
|
3957
4020
|
if (props.closeable) {
|
|
3958
4021
|
return React.cloneElement(props.closeIcon, {
|
|
3959
|
-
className:
|
|
4022
|
+
className: clsx(bem$1c("close-icon", props.closeIconPosition)),
|
|
3960
4023
|
onClick: onClose
|
|
3961
4024
|
});
|
|
3962
4025
|
}
|
|
@@ -3965,7 +4028,7 @@ const ImagePreview$1 = React.forwardRef(
|
|
|
3965
4028
|
const renderIndex = () => {
|
|
3966
4029
|
if (props.showIndex) {
|
|
3967
4030
|
return /* @__PURE__ */ React.createElement("div", {
|
|
3968
|
-
className:
|
|
4031
|
+
className: clsx(bem$1c("index"))
|
|
3969
4032
|
}, props.indexRender ? props.indexRender({ index: active, len: props.images.length }) : `${active + 1} / ${props.images.length}`);
|
|
3970
4033
|
}
|
|
3971
4034
|
return null;
|
|
@@ -3973,7 +4036,7 @@ const ImagePreview$1 = React.forwardRef(
|
|
|
3973
4036
|
const renderIndicator = () => {
|
|
3974
4037
|
if (props.showIndicators) {
|
|
3975
4038
|
return /* @__PURE__ */ React.createElement("div", {
|
|
3976
|
-
className:
|
|
4039
|
+
className: clsx(bem$1c("indicator"))
|
|
3977
4040
|
}, /* @__PURE__ */ React.createElement(SwiperPagIndicator, {
|
|
3978
4041
|
total: props.images.length,
|
|
3979
4042
|
current: active
|
|
@@ -3989,8 +4052,8 @@ const ImagePreview$1 = React.forwardRef(
|
|
|
3989
4052
|
}
|
|
3990
4053
|
}));
|
|
3991
4054
|
return /* @__PURE__ */ React.createElement(Popup, {
|
|
3992
|
-
className:
|
|
3993
|
-
overlayClass:
|
|
4055
|
+
className: clsx(bem$1c(), props.className),
|
|
4056
|
+
overlayClass: clsx(bem$1c("overlay")),
|
|
3994
4057
|
...pick(props, [
|
|
3995
4058
|
"visible",
|
|
3996
4059
|
"overlayStyle",
|
|
@@ -4199,7 +4262,7 @@ const Empty = (p) => {
|
|
|
4199
4262
|
const renderDescription = () => {
|
|
4200
4263
|
if (props.description) {
|
|
4201
4264
|
return /* @__PURE__ */ React.createElement("div", {
|
|
4202
|
-
className:
|
|
4265
|
+
className: clsx(bem$1b("description"))
|
|
4203
4266
|
}, props.description);
|
|
4204
4267
|
}
|
|
4205
4268
|
return null;
|
|
@@ -4207,16 +4270,16 @@ const Empty = (p) => {
|
|
|
4207
4270
|
const renderBottom = () => {
|
|
4208
4271
|
if (props.children) {
|
|
4209
4272
|
return /* @__PURE__ */ React.createElement("div", {
|
|
4210
|
-
className:
|
|
4273
|
+
className: clsx(bem$1b("bottom"))
|
|
4211
4274
|
}, props.children);
|
|
4212
4275
|
}
|
|
4213
4276
|
return null;
|
|
4214
4277
|
};
|
|
4215
4278
|
return /* @__PURE__ */ React.createElement("div", {
|
|
4216
|
-
className:
|
|
4279
|
+
className: clsx(props.className, bem$1b()),
|
|
4217
4280
|
style: props.style
|
|
4218
4281
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
4219
|
-
className:
|
|
4282
|
+
className: clsx(bem$1b("image")),
|
|
4220
4283
|
style: getSizeStyle(props.imageSize)
|
|
4221
4284
|
}, renderImage()), renderDescription(), renderBottom());
|
|
4222
4285
|
};
|
|
@@ -4247,7 +4310,7 @@ const Notify = ({
|
|
|
4247
4310
|
onClosed: props.onClosed,
|
|
4248
4311
|
teleport: props.teleport
|
|
4249
4312
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
4250
|
-
className:
|
|
4313
|
+
className: clsx(bem$1a([props.type]), props.className)
|
|
4251
4314
|
}, children || props.message));
|
|
4252
4315
|
};
|
|
4253
4316
|
let lockCount = 0;
|
|
@@ -4433,7 +4496,7 @@ const PullRefresh = (p) => {
|
|
|
4433
4496
|
nodes.push(
|
|
4434
4497
|
/* @__PURE__ */ React.createElement("div", {
|
|
4435
4498
|
key: "text",
|
|
4436
|
-
className:
|
|
4499
|
+
className: clsx(bem$19("text"))
|
|
4437
4500
|
}, getStatusText())
|
|
4438
4501
|
);
|
|
4439
4502
|
}
|
|
@@ -4441,7 +4504,7 @@ const PullRefresh = (p) => {
|
|
|
4441
4504
|
nodes.push(
|
|
4442
4505
|
/* @__PURE__ */ React.createElement(Loading, {
|
|
4443
4506
|
key: "loading",
|
|
4444
|
-
className:
|
|
4507
|
+
className: clsx(bem$19("loading"))
|
|
4445
4508
|
}, getStatusText())
|
|
4446
4509
|
);
|
|
4447
4510
|
}
|
|
@@ -4530,17 +4593,17 @@ const PullRefresh = (p) => {
|
|
|
4530
4593
|
);
|
|
4531
4594
|
return /* @__PURE__ */ React.createElement("div", {
|
|
4532
4595
|
ref: root2,
|
|
4533
|
-
className:
|
|
4596
|
+
className: clsx(props.className, bem$19()),
|
|
4534
4597
|
style: props.style
|
|
4535
4598
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
4536
4599
|
ref: track,
|
|
4537
|
-
className:
|
|
4600
|
+
className: clsx(bem$19("track")),
|
|
4538
4601
|
style: trackStyle,
|
|
4539
4602
|
onTouchStart,
|
|
4540
4603
|
onTouchEnd,
|
|
4541
4604
|
onTouchCancel: onTouchEnd
|
|
4542
4605
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
4543
|
-
className:
|
|
4606
|
+
className: clsx(bem$19("head")),
|
|
4544
4607
|
style: getHeadStyle()
|
|
4545
4608
|
}, renderStatus()), props.children));
|
|
4546
4609
|
};
|
|
@@ -4699,7 +4762,7 @@ const SwipeCell = forwardRef(
|
|
|
4699
4762
|
if (props[`${side}Action`]) {
|
|
4700
4763
|
return /* @__PURE__ */ React.createElement("div", {
|
|
4701
4764
|
ref: measuredRef,
|
|
4702
|
-
className:
|
|
4765
|
+
className: clsx(bem$18(side)),
|
|
4703
4766
|
onClick: getClickHandler(side, true)
|
|
4704
4767
|
}, props[`${side}Action`]);
|
|
4705
4768
|
}
|
|
@@ -4720,13 +4783,13 @@ const SwipeCell = forwardRef(
|
|
|
4720
4783
|
});
|
|
4721
4784
|
return /* @__PURE__ */ React.createElement("div", {
|
|
4722
4785
|
ref: root2,
|
|
4723
|
-
className:
|
|
4786
|
+
className: clsx(bem$18()),
|
|
4724
4787
|
onClick: getClickHandler("cell"),
|
|
4725
4788
|
onTouchStart,
|
|
4726
4789
|
onTouchEnd,
|
|
4727
4790
|
onTouchCancel: onTouchEnd
|
|
4728
4791
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
4729
|
-
className:
|
|
4792
|
+
className: clsx(bem$18("wrapper")),
|
|
4730
4793
|
style: wrapperStyle
|
|
4731
4794
|
}, renderSideContent("left", leftRef), props.children, renderSideContent("right", rightRef)));
|
|
4732
4795
|
}
|
|
@@ -4770,11 +4833,11 @@ const ShareSheet = (p) => {
|
|
|
4770
4833
|
const { title, description } = props;
|
|
4771
4834
|
if (title || description) {
|
|
4772
4835
|
return /* @__PURE__ */ React.createElement("div", {
|
|
4773
|
-
className:
|
|
4836
|
+
className: clsx(bem$17("header"))
|
|
4774
4837
|
}, title && /* @__PURE__ */ React.createElement("div", {
|
|
4775
|
-
className:
|
|
4838
|
+
className: clsx(bem$17("title"))
|
|
4776
4839
|
}, title), description && /* @__PURE__ */ React.createElement("div", {
|
|
4777
|
-
className:
|
|
4840
|
+
className: clsx(bem$17("description"))
|
|
4778
4841
|
}, description));
|
|
4779
4842
|
}
|
|
4780
4843
|
return null;
|
|
@@ -4785,21 +4848,21 @@ const ShareSheet = (p) => {
|
|
|
4785
4848
|
key: index2,
|
|
4786
4849
|
role: "button",
|
|
4787
4850
|
tabIndex: 0,
|
|
4788
|
-
className:
|
|
4851
|
+
className: clsx([bem$17("option"), className]),
|
|
4789
4852
|
onClick: () => onSelect(option, index2)
|
|
4790
4853
|
}, typeof icon === "string" ? /* @__PURE__ */ React.createElement("img", {
|
|
4791
4854
|
alt: "share sheet icon",
|
|
4792
4855
|
src: getIconURL(icon),
|
|
4793
|
-
className:
|
|
4856
|
+
className: clsx(bem$17("icon"))
|
|
4794
4857
|
}) : icon, name && /* @__PURE__ */ React.createElement("span", {
|
|
4795
|
-
className:
|
|
4858
|
+
className: clsx(bem$17("name"))
|
|
4796
4859
|
}, name), description && /* @__PURE__ */ React.createElement("span", {
|
|
4797
|
-
className:
|
|
4860
|
+
className: clsx(bem$17("option-description"))
|
|
4798
4861
|
}, description));
|
|
4799
4862
|
};
|
|
4800
4863
|
const renderOptions = (options, border, key) => /* @__PURE__ */ React.createElement("div", {
|
|
4801
4864
|
key,
|
|
4802
|
-
className:
|
|
4865
|
+
className: clsx(bem$17("options", { border }))
|
|
4803
4866
|
}, options.map(renderOption));
|
|
4804
4867
|
const renderRows = () => {
|
|
4805
4868
|
const { options } = props;
|
|
@@ -4815,7 +4878,7 @@ const ShareSheet = (p) => {
|
|
|
4815
4878
|
if (cancelText) {
|
|
4816
4879
|
return /* @__PURE__ */ React.createElement("button", {
|
|
4817
4880
|
type: "button",
|
|
4818
|
-
className:
|
|
4881
|
+
className: clsx(bem$17("cancel")),
|
|
4819
4882
|
onClick: onCancel
|
|
4820
4883
|
}, cancelText);
|
|
4821
4884
|
}
|
|
@@ -4823,7 +4886,7 @@ const ShareSheet = (p) => {
|
|
|
4823
4886
|
};
|
|
4824
4887
|
return /* @__PURE__ */ React.createElement(Popup, {
|
|
4825
4888
|
round: true,
|
|
4826
|
-
className:
|
|
4889
|
+
className: clsx(bem$17()),
|
|
4827
4890
|
position: "bottom",
|
|
4828
4891
|
onClose: onCancel,
|
|
4829
4892
|
...pick(props, [
|
|
@@ -4871,7 +4934,7 @@ const NoticeBar = forwardRef((p, ref) => {
|
|
|
4871
4934
|
const renderLeftIcon = () => {
|
|
4872
4935
|
if (props.leftIcon) {
|
|
4873
4936
|
return React.cloneElement(props.leftIcon, {
|
|
4874
|
-
className:
|
|
4937
|
+
className: clsx(bem$16("left-icon"))
|
|
4875
4938
|
});
|
|
4876
4939
|
}
|
|
4877
4940
|
return null;
|
|
@@ -4900,7 +4963,7 @@ const NoticeBar = forwardRef((p, ref) => {
|
|
|
4900
4963
|
const finalRightIcon = props.rightIcon || getRightIcon();
|
|
4901
4964
|
if (finalRightIcon) {
|
|
4902
4965
|
return React.cloneElement(finalRightIcon, {
|
|
4903
|
-
className:
|
|
4966
|
+
className: clsx(bem$16("right-icon")),
|
|
4904
4967
|
onClick: onClickRightIcon
|
|
4905
4968
|
});
|
|
4906
4969
|
}
|
|
@@ -4930,10 +4993,10 @@ const NoticeBar = forwardRef((p, ref) => {
|
|
|
4930
4993
|
transitionDuration: `${state.duration}s`
|
|
4931
4994
|
};
|
|
4932
4995
|
return /* @__PURE__ */ React.createElement("div", {
|
|
4933
|
-
className:
|
|
4996
|
+
className: clsx(bem$16("wrap")),
|
|
4934
4997
|
ref: wrapRef
|
|
4935
4998
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
4936
|
-
className:
|
|
4999
|
+
className: clsx(bem$16("content"), { "rv-ellipsis": ellipsis }),
|
|
4937
5000
|
ref: contentRef,
|
|
4938
5001
|
style,
|
|
4939
5002
|
onTransitionEnd
|
|
@@ -4978,7 +5041,7 @@ const NoticeBar = forwardRef((p, ref) => {
|
|
|
4978
5041
|
}));
|
|
4979
5042
|
return state.show && /* @__PURE__ */ React.createElement("div", {
|
|
4980
5043
|
role: "alert",
|
|
4981
|
-
className:
|
|
5044
|
+
className: clsx(bem$16({ wrapable }), props.className),
|
|
4982
5045
|
style: { color, background, ...props.style },
|
|
4983
5046
|
onClick: props.onClick
|
|
4984
5047
|
}, renderLeftIcon(), renderMarquee(), renderRightIcon());
|
|
@@ -5091,16 +5154,16 @@ const Popover = forwardRef(
|
|
|
5091
5154
|
const { icon, text, color, disabled, className: actionClassname } = action;
|
|
5092
5155
|
return /* @__PURE__ */ React.createElement("div", {
|
|
5093
5156
|
key: index2,
|
|
5094
|
-
className:
|
|
5157
|
+
className: clsx(
|
|
5095
5158
|
bem$15("action", { disabled, "with-icon": icon }),
|
|
5096
5159
|
actionClassname
|
|
5097
5160
|
),
|
|
5098
5161
|
style: { color },
|
|
5099
5162
|
onClick: () => onClickAction(action, index2)
|
|
5100
5163
|
}, icon ? React.cloneElement(icon, {
|
|
5101
|
-
className:
|
|
5164
|
+
className: clsx(bem$15("action-icon"))
|
|
5102
5165
|
}) : null, /* @__PURE__ */ React.createElement("div", {
|
|
5103
|
-
className:
|
|
5166
|
+
className: clsx(bem$15("action-text"), BORDER_BOTTOM)
|
|
5104
5167
|
}, text));
|
|
5105
5168
|
};
|
|
5106
5169
|
useEffect(() => {
|
|
@@ -5141,12 +5204,12 @@ const Popover = forwardRef(
|
|
|
5141
5204
|
useClickAway(wrapperRef, onClickAway, "touchstart");
|
|
5142
5205
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("span", {
|
|
5143
5206
|
ref: wrapperRef,
|
|
5144
|
-
className:
|
|
5207
|
+
className: clsx(bem$15("wrapper")),
|
|
5145
5208
|
onClick: onClickWrapper
|
|
5146
5209
|
}, props.reference), /* @__PURE__ */ React.createElement(Popup, {
|
|
5147
5210
|
ref: popoverRef,
|
|
5148
5211
|
visible,
|
|
5149
|
-
className:
|
|
5212
|
+
className: clsx(className, bem$15([props.theme])),
|
|
5150
5213
|
position: "",
|
|
5151
5214
|
transition: "rv-zoom",
|
|
5152
5215
|
lockScroll: false,
|
|
@@ -5154,10 +5217,10 @@ const Popover = forwardRef(
|
|
|
5154
5217
|
onClose: onInternalClose,
|
|
5155
5218
|
...pick(props, popupProps)
|
|
5156
5219
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
5157
|
-
className:
|
|
5220
|
+
className: clsx(bem$15("arrow"))
|
|
5158
5221
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
5159
5222
|
role: "menu",
|
|
5160
|
-
className:
|
|
5223
|
+
className: clsx(bem$15("content"))
|
|
5161
5224
|
}, children || props.actions.map(renderAction))));
|
|
5162
5225
|
}
|
|
5163
5226
|
);
|
|
@@ -5405,7 +5468,7 @@ const LoadMore = React.forwardRef((p, ref) => {
|
|
|
5405
5468
|
const renderDone = () => {
|
|
5406
5469
|
if (props.finishedText) {
|
|
5407
5470
|
return /* @__PURE__ */ React.createElement("div", {
|
|
5408
|
-
className:
|
|
5471
|
+
className: clsx(bem$14("finished"))
|
|
5409
5472
|
}, props.finishedText);
|
|
5410
5473
|
}
|
|
5411
5474
|
return null;
|
|
@@ -5416,14 +5479,14 @@ const LoadMore = React.forwardRef((p, ref) => {
|
|
|
5416
5479
|
return props.errorText(retry);
|
|
5417
5480
|
return /* @__PURE__ */ React.createElement("div", {
|
|
5418
5481
|
onClick: retry,
|
|
5419
|
-
className:
|
|
5482
|
+
className: clsx(bem$14("error"))
|
|
5420
5483
|
}, props.errorText);
|
|
5421
5484
|
}
|
|
5422
5485
|
return null;
|
|
5423
5486
|
};
|
|
5424
5487
|
const renderLoading = () => {
|
|
5425
5488
|
return /* @__PURE__ */ React.createElement(Loading, {
|
|
5426
|
-
className:
|
|
5489
|
+
className: clsx(bem$14("loading")),
|
|
5427
5490
|
size: 16
|
|
5428
5491
|
}, props.loadingText || locale.loading);
|
|
5429
5492
|
};
|
|
@@ -5436,10 +5499,10 @@ const LoadMore = React.forwardRef((p, ref) => {
|
|
|
5436
5499
|
};
|
|
5437
5500
|
React.useImperativeHandle(ref, () => ({ check }));
|
|
5438
5501
|
return /* @__PURE__ */ React.createElement("div", {
|
|
5439
|
-
className:
|
|
5502
|
+
className: clsx(props.className, bem$14()),
|
|
5440
5503
|
style: props.style
|
|
5441
5504
|
}, props.children, /* @__PURE__ */ React.createElement("div", {
|
|
5442
|
-
className:
|
|
5505
|
+
className: clsx(props.className, bem$14("loadmore")),
|
|
5443
5506
|
ref: elementRef
|
|
5444
5507
|
}, renderPlaceholder()));
|
|
5445
5508
|
});
|
|
@@ -5449,7 +5512,7 @@ const List = forwardRef((p, ref) => {
|
|
|
5449
5512
|
});
|
|
5450
5513
|
return /* @__PURE__ */ React.createElement(LoadMore, {
|
|
5451
5514
|
ref,
|
|
5452
|
-
className:
|
|
5515
|
+
className: clsx(props.className),
|
|
5453
5516
|
style: props.style,
|
|
5454
5517
|
onLoad: props.onLoad,
|
|
5455
5518
|
threshold: props.offset,
|
|
@@ -5468,10 +5531,10 @@ const Steps$1 = ({ children, className, style, ...p }) => {
|
|
|
5468
5531
|
activeIcon: /* @__PURE__ */ React.createElement(Checked, null)
|
|
5469
5532
|
});
|
|
5470
5533
|
return /* @__PURE__ */ React.createElement("div", {
|
|
5471
|
-
className:
|
|
5534
|
+
className: clsx(className, bem$13([props.direction])),
|
|
5472
5535
|
style
|
|
5473
5536
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
5474
|
-
className:
|
|
5537
|
+
className: clsx(bem$13("items"))
|
|
5475
5538
|
}, React.Children.toArray(children).filter(Boolean).map(
|
|
5476
5539
|
(child, index2) => React.cloneElement(child, {
|
|
5477
5540
|
index: index2,
|
|
@@ -5528,7 +5591,7 @@ const StepsItem = ({ children, ...props }) => {
|
|
|
5528
5591
|
if (isActive()) {
|
|
5529
5592
|
if (activeIcon) {
|
|
5530
5593
|
return React.cloneElement(activeIcon, {
|
|
5531
|
-
className:
|
|
5594
|
+
className: clsx(bem$12("icon", "active")),
|
|
5532
5595
|
color: activeColor,
|
|
5533
5596
|
style: {
|
|
5534
5597
|
color: activeColor
|
|
@@ -5538,7 +5601,7 @@ const StepsItem = ({ children, ...props }) => {
|
|
|
5538
5601
|
}
|
|
5539
5602
|
if (getStatus() === "finish" && finishIcon) {
|
|
5540
5603
|
return React.cloneElement(finishIcon, {
|
|
5541
|
-
className:
|
|
5604
|
+
className: clsx(bem$12("icon", "finish")),
|
|
5542
5605
|
color: activeColor,
|
|
5543
5606
|
style: {
|
|
5544
5607
|
color: activeColor
|
|
@@ -5547,7 +5610,7 @@ const StepsItem = ({ children, ...props }) => {
|
|
|
5547
5610
|
}
|
|
5548
5611
|
if (inactiveIcon) {
|
|
5549
5612
|
return React.cloneElement(inactiveIcon, {
|
|
5550
|
-
className:
|
|
5613
|
+
className: clsx(bem$12("icon")),
|
|
5551
5614
|
color: activeColor,
|
|
5552
5615
|
style: {
|
|
5553
5616
|
color: activeColor
|
|
@@ -5555,27 +5618,27 @@ const StepsItem = ({ children, ...props }) => {
|
|
|
5555
5618
|
});
|
|
5556
5619
|
}
|
|
5557
5620
|
return /* @__PURE__ */ React.createElement("i", {
|
|
5558
|
-
className:
|
|
5621
|
+
className: clsx(bem$12("circle")),
|
|
5559
5622
|
style: lineStyle
|
|
5560
5623
|
});
|
|
5561
5624
|
};
|
|
5562
5625
|
const status = getStatus();
|
|
5563
5626
|
return /* @__PURE__ */ React.createElement("div", {
|
|
5564
5627
|
style: props.style,
|
|
5565
|
-
className:
|
|
5628
|
+
className: clsx(
|
|
5566
5629
|
props.className,
|
|
5567
5630
|
BORDER,
|
|
5568
5631
|
bem$12([parentProps.direction, { [status]: status }])
|
|
5569
5632
|
)
|
|
5570
5633
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
5571
|
-
className:
|
|
5634
|
+
className: clsx(bem$12("title", { active: isActive() })),
|
|
5572
5635
|
style: titleStyle,
|
|
5573
5636
|
onClick: onClickStep
|
|
5574
5637
|
}, children), /* @__PURE__ */ React.createElement("div", {
|
|
5575
|
-
className:
|
|
5638
|
+
className: clsx(bem$12("circle-container")),
|
|
5576
5639
|
onClick: onClickStep
|
|
5577
5640
|
}, renderCircle()), /* @__PURE__ */ React.createElement("div", {
|
|
5578
|
-
className:
|
|
5641
|
+
className: clsx(bem$12("line")),
|
|
5579
5642
|
style: lineStyle
|
|
5580
5643
|
}));
|
|
5581
5644
|
};
|
|
@@ -5614,13 +5677,13 @@ const Toast$1 = (p) => {
|
|
|
5614
5677
|
if (hasIcon) {
|
|
5615
5678
|
const buildInIcon = type === "fail" ? /* @__PURE__ */ React.createElement(Cross, null) : /* @__PURE__ */ React.createElement(Success, null);
|
|
5616
5679
|
return React.cloneElement(icon || buildInIcon, {
|
|
5617
|
-
className:
|
|
5680
|
+
className: clsx(bem$11("icon")),
|
|
5618
5681
|
fontSize: iconSize
|
|
5619
5682
|
});
|
|
5620
5683
|
}
|
|
5621
5684
|
if (type === "loading") {
|
|
5622
5685
|
return /* @__PURE__ */ React.createElement(Loading, {
|
|
5623
|
-
className:
|
|
5686
|
+
className: clsx(bem$11("loading")),
|
|
5624
5687
|
type: loadingType
|
|
5625
5688
|
});
|
|
5626
5689
|
}
|
|
@@ -5630,13 +5693,13 @@ const Toast$1 = (p) => {
|
|
|
5630
5693
|
const { message } = props;
|
|
5631
5694
|
if (isDef(message) && message !== "") {
|
|
5632
5695
|
return /* @__PURE__ */ React.createElement("div", {
|
|
5633
|
-
className:
|
|
5696
|
+
className: clsx(bem$11("info"))
|
|
5634
5697
|
}, message);
|
|
5635
5698
|
}
|
|
5636
5699
|
return null;
|
|
5637
5700
|
};
|
|
5638
5701
|
return /* @__PURE__ */ React.createElement(Popup, {
|
|
5639
|
-
className:
|
|
5702
|
+
className: clsx([
|
|
5640
5703
|
bem$11([props.position, { [props.type]: !props.icon }]),
|
|
5641
5704
|
props.className
|
|
5642
5705
|
]),
|
|
@@ -5806,9 +5869,9 @@ const ActionSheet = (p) => {
|
|
|
5806
5869
|
if (!props.title)
|
|
5807
5870
|
return null;
|
|
5808
5871
|
return /* @__PURE__ */ React.createElement("div", {
|
|
5809
|
-
className:
|
|
5872
|
+
className: clsx(bem$10("header"))
|
|
5810
5873
|
}, props.title, props.closeable && React.cloneElement(props.closeIcon, {
|
|
5811
|
-
className:
|
|
5874
|
+
className: clsx(bem$10("clear")),
|
|
5812
5875
|
onClick: onCancel
|
|
5813
5876
|
}));
|
|
5814
5877
|
};
|
|
@@ -5818,12 +5881,12 @@ const ActionSheet = (p) => {
|
|
|
5818
5881
|
return [
|
|
5819
5882
|
/* @__PURE__ */ React.createElement("div", {
|
|
5820
5883
|
key: "cancel-gap",
|
|
5821
|
-
className:
|
|
5884
|
+
className: clsx(bem$10("gap"))
|
|
5822
5885
|
}),
|
|
5823
5886
|
/* @__PURE__ */ React.createElement("button", {
|
|
5824
5887
|
key: "cancel-btn",
|
|
5825
5888
|
type: "button",
|
|
5826
|
-
className:
|
|
5889
|
+
className: clsx(bem$10("cancel")),
|
|
5827
5890
|
onClick: onCancel
|
|
5828
5891
|
}, props.cancelText)
|
|
5829
5892
|
];
|
|
@@ -5840,15 +5903,15 @@ const ActionSheet = (p) => {
|
|
|
5840
5903
|
style
|
|
5841
5904
|
} = item;
|
|
5842
5905
|
const Content = loading ? /* @__PURE__ */ React.createElement(Loading, {
|
|
5843
|
-
className:
|
|
5906
|
+
className: clsx(bem$10("loading-icon"))
|
|
5844
5907
|
}) : [
|
|
5845
5908
|
/* @__PURE__ */ React.createElement("span", {
|
|
5846
5909
|
key: `${index2}-1`,
|
|
5847
|
-
className:
|
|
5910
|
+
className: clsx(bem$10("name"))
|
|
5848
5911
|
}, name),
|
|
5849
5912
|
subname && /* @__PURE__ */ React.createElement("div", {
|
|
5850
5913
|
key: `${index2}-2`,
|
|
5851
|
-
className:
|
|
5914
|
+
className: clsx(bem$10("subname"))
|
|
5852
5915
|
}, subname)
|
|
5853
5916
|
];
|
|
5854
5917
|
const onClick = () => {
|
|
@@ -5870,14 +5933,14 @@ const ActionSheet = (p) => {
|
|
|
5870
5933
|
key: index2,
|
|
5871
5934
|
type: "button",
|
|
5872
5935
|
style: { color, ...style },
|
|
5873
|
-
className:
|
|
5936
|
+
className: clsx(bem$10("item", { loading, disabled }), className),
|
|
5874
5937
|
onClick
|
|
5875
5938
|
}, Content);
|
|
5876
5939
|
};
|
|
5877
5940
|
const renderDescription = () => {
|
|
5878
5941
|
if (props.description) {
|
|
5879
5942
|
return /* @__PURE__ */ React.createElement("div", {
|
|
5880
|
-
className:
|
|
5943
|
+
className: clsx(bem$10("description"))
|
|
5881
5944
|
}, props.description);
|
|
5882
5945
|
}
|
|
5883
5946
|
return null;
|
|
@@ -5890,16 +5953,16 @@ const ActionSheet = (p) => {
|
|
|
5890
5953
|
};
|
|
5891
5954
|
return /* @__PURE__ */ React.createElement(Popup, {
|
|
5892
5955
|
visible: props.visible,
|
|
5893
|
-
className:
|
|
5956
|
+
className: clsx(bem$10("wrapper")),
|
|
5894
5957
|
position: "bottom",
|
|
5895
5958
|
...pick(props, sharedPopupProps),
|
|
5896
5959
|
onClose: onCancel,
|
|
5897
5960
|
closeable: false
|
|
5898
5961
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
5899
|
-
className:
|
|
5962
|
+
className: clsx(bem$10(), props.className),
|
|
5900
5963
|
style: props.style
|
|
5901
5964
|
}, renderHeader(), renderDescription(), /* @__PURE__ */ React.createElement("div", {
|
|
5902
|
-
className:
|
|
5965
|
+
className: clsx(bem$10("content"))
|
|
5903
5966
|
}, renderOptions(), props.children), renderCancel()));
|
|
5904
5967
|
};
|
|
5905
5968
|
var index$C = "";
|
|
@@ -6040,14 +6103,14 @@ const DropdownMenu$1 = forwardRef(
|
|
|
6040
6103
|
key: index2,
|
|
6041
6104
|
role: "button",
|
|
6042
6105
|
tabIndex: disabled ? -1 : 0,
|
|
6043
|
-
className:
|
|
6106
|
+
className: clsx(bem$$("item", { disabled })),
|
|
6044
6107
|
onClick: () => {
|
|
6045
6108
|
if (!disabled) {
|
|
6046
6109
|
toggleItem(index2);
|
|
6047
6110
|
}
|
|
6048
6111
|
}
|
|
6049
6112
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
6050
|
-
className:
|
|
6113
|
+
className: clsx(
|
|
6051
6114
|
bem$$("title", {
|
|
6052
6115
|
down: showPopup === (props.direction === "down"),
|
|
6053
6116
|
active: showPopup
|
|
@@ -6094,12 +6157,12 @@ const DropdownMenu$1 = forwardRef(
|
|
|
6094
6157
|
value: { props, value: innerValue, onChange: onInnerChange, close }
|
|
6095
6158
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
6096
6159
|
ref: root2,
|
|
6097
|
-
className:
|
|
6160
|
+
className: clsx(bem$$(), props.className),
|
|
6098
6161
|
style: { ...props.style }
|
|
6099
6162
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
6100
6163
|
ref: barRef,
|
|
6101
6164
|
style: barStyle(),
|
|
6102
|
-
className:
|
|
6165
|
+
className: clsx(bem$$("bar", { opened }))
|
|
6103
6166
|
}, Children.toArray(props.children).filter(Boolean).map((child, index2) => {
|
|
6104
6167
|
return renderTitle(child.props, index2);
|
|
6105
6168
|
})), Children.toArray(props.children).filter(Boolean).map(
|
|
@@ -6184,11 +6247,11 @@ const DropdownMenuItem = forwardRef(({ options = [], placeholder = "\u8BF7\u9009
|
|
|
6184
6247
|
key: option.value,
|
|
6185
6248
|
icon: option.icon,
|
|
6186
6249
|
title: option.text,
|
|
6187
|
-
className:
|
|
6250
|
+
className: clsx(bem$_("option", { active })),
|
|
6188
6251
|
style: { color: active ? activeColor : "" },
|
|
6189
6252
|
onClick
|
|
6190
6253
|
}, active && (activeIcon || /* @__PURE__ */ React.createElement(Success, {
|
|
6191
|
-
className:
|
|
6254
|
+
className: clsx(bem$_("icon")),
|
|
6192
6255
|
color: activeColor
|
|
6193
6256
|
})));
|
|
6194
6257
|
};
|
|
@@ -6204,12 +6267,12 @@ const DropdownMenuItem = forwardRef(({ options = [], placeholder = "\u8BF7\u9009
|
|
|
6204
6267
|
const attrs = pick(inheritProps(parent.props, props), inheritPropsKey);
|
|
6205
6268
|
return /* @__PURE__ */ React.createElement("div", {
|
|
6206
6269
|
style: { ...style, display: state.showWrapper ? "block" : "none" },
|
|
6207
|
-
className:
|
|
6270
|
+
className: clsx(bem$_([direction])),
|
|
6208
6271
|
onClick: onClickWrapper
|
|
6209
6272
|
}, /* @__PURE__ */ React.createElement(Popup, {
|
|
6210
6273
|
...attrs,
|
|
6211
6274
|
visible: props.showPopup,
|
|
6212
|
-
className:
|
|
6275
|
+
className: clsx(bem$_("content")),
|
|
6213
6276
|
position: direction === "down" ? "top" : "bottom",
|
|
6214
6277
|
duration: state.transition ? +duration : 0,
|
|
6215
6278
|
overlayStyle: { position: "absolute", ...overlayStyle },
|
|
@@ -6281,7 +6344,7 @@ const Search = forwardRef((p, ref) => {
|
|
|
6281
6344
|
const renderLabel = () => {
|
|
6282
6345
|
if (props.label) {
|
|
6283
6346
|
return /* @__PURE__ */ React.createElement("div", {
|
|
6284
|
-
className:
|
|
6347
|
+
className: clsx(bem$Z("label"))
|
|
6285
6348
|
}, props.label);
|
|
6286
6349
|
}
|
|
6287
6350
|
return null;
|
|
@@ -6291,7 +6354,7 @@ const Search = forwardRef((p, ref) => {
|
|
|
6291
6354
|
return props.action;
|
|
6292
6355
|
if (props.showAction) {
|
|
6293
6356
|
return /* @__PURE__ */ React.createElement("div", {
|
|
6294
|
-
className:
|
|
6357
|
+
className: clsx(bem$Z("action")),
|
|
6295
6358
|
role: "button",
|
|
6296
6359
|
tabIndex: 0,
|
|
6297
6360
|
onClick: onCancel
|
|
@@ -6336,7 +6399,7 @@ const Search = forwardRef((p, ref) => {
|
|
|
6336
6399
|
const renderField = () => {
|
|
6337
6400
|
return /* @__PURE__ */ React.createElement(FieldNamespace, {
|
|
6338
6401
|
ref: filedRef,
|
|
6339
|
-
className:
|
|
6402
|
+
className: clsx(bem$Z("field")),
|
|
6340
6403
|
type: "search",
|
|
6341
6404
|
rows: 1,
|
|
6342
6405
|
value: value || "",
|
|
@@ -6362,13 +6425,13 @@ const Search = forwardRef((p, ref) => {
|
|
|
6362
6425
|
blur
|
|
6363
6426
|
}));
|
|
6364
6427
|
return /* @__PURE__ */ React.createElement("div", {
|
|
6365
|
-
className:
|
|
6428
|
+
className: clsx(
|
|
6366
6429
|
props.className,
|
|
6367
6430
|
bem$Z({ "show-action": props.showAction })
|
|
6368
6431
|
),
|
|
6369
6432
|
style: { ...props.style, background: props.background }
|
|
6370
6433
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
6371
|
-
className:
|
|
6434
|
+
className: clsx(bem$Z("content", props.shape))
|
|
6372
6435
|
}, renderLabel(), renderField()), renderAction());
|
|
6373
6436
|
});
|
|
6374
6437
|
var index$A = "";
|
|
@@ -6386,12 +6449,12 @@ const SidebarItem = (props) => {
|
|
|
6386
6449
|
const { dot, badge, title, disabled } = props;
|
|
6387
6450
|
const selected = index2 === parent.getActive();
|
|
6388
6451
|
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("a", {
|
|
6389
|
-
className:
|
|
6452
|
+
className: clsx(bem$Y({ select: selected, disabled })),
|
|
6390
6453
|
onClick
|
|
6391
6454
|
}, /* @__PURE__ */ React.createElement(Badge, {
|
|
6392
6455
|
dot,
|
|
6393
6456
|
content: badge,
|
|
6394
|
-
className:
|
|
6457
|
+
className: clsx(bem$Y("text"))
|
|
6395
6458
|
}, title)));
|
|
6396
6459
|
};
|
|
6397
6460
|
const [bem$X] = createNamespace("sidebar");
|
|
@@ -6425,10 +6488,10 @@ const Sidebar$1 = ({
|
|
|
6425
6488
|
[children]
|
|
6426
6489
|
);
|
|
6427
6490
|
return /* @__PURE__ */ React.createElement("div", {
|
|
6428
|
-
className:
|
|
6491
|
+
className: clsx(className, bem$X("wrapper")),
|
|
6429
6492
|
style
|
|
6430
6493
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
6431
|
-
className:
|
|
6494
|
+
className: clsx(props.sideClassName, bem$X()),
|
|
6432
6495
|
style: props.sideStyle
|
|
6433
6496
|
}, validChildren.map(
|
|
6434
6497
|
(child, index2) => React.cloneElement(child, {
|
|
@@ -6441,7 +6504,7 @@ const Sidebar$1 = ({
|
|
|
6441
6504
|
)), validChildren.map(
|
|
6442
6505
|
(child, index2) => {
|
|
6443
6506
|
return /* @__PURE__ */ React.createElement("div", {
|
|
6444
|
-
className:
|
|
6507
|
+
className: clsx(child.props.contentClassName, bem$X("content")),
|
|
6445
6508
|
key: child.key,
|
|
6446
6509
|
style: {
|
|
6447
6510
|
...child.props.contentStyle,
|
|
@@ -6558,7 +6621,7 @@ const Sticky = (p) => {
|
|
|
6558
6621
|
ref: root2,
|
|
6559
6622
|
style: rootStyle
|
|
6560
6623
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
6561
|
-
className:
|
|
6624
|
+
className: clsx(bem$W({ fixed: state.fixed })),
|
|
6562
6625
|
style: stickyStyle
|
|
6563
6626
|
}, props.children));
|
|
6564
6627
|
};
|
|
@@ -6601,7 +6664,7 @@ const TabsTitle = forwardRef((props, ref) => {
|
|
|
6601
6664
|
}, [type, color, disabled, isActive, activeColor, inactiveColor]);
|
|
6602
6665
|
const renderText = () => {
|
|
6603
6666
|
const Title2 = /* @__PURE__ */ React.createElement("span", {
|
|
6604
|
-
className:
|
|
6667
|
+
className: clsx(
|
|
6605
6668
|
bem$V("text", { ellipsis: !props.scrollable && props.type !== "jumbo" })
|
|
6606
6669
|
),
|
|
6607
6670
|
style: {
|
|
@@ -6614,7 +6677,7 @@ const TabsTitle = forwardRef((props, ref) => {
|
|
|
6614
6677
|
return props.title;
|
|
6615
6678
|
})());
|
|
6616
6679
|
const Description2 = props.type === "jumbo" && !!props.description ? /* @__PURE__ */ React.createElement("div", {
|
|
6617
|
-
className:
|
|
6680
|
+
className: clsx(bem$V("description")),
|
|
6618
6681
|
style: { backgroundColor: isActive && color }
|
|
6619
6682
|
}, (() => {
|
|
6620
6683
|
if (typeof props.description === "function") {
|
|
@@ -6633,7 +6696,7 @@ const TabsTitle = forwardRef((props, ref) => {
|
|
|
6633
6696
|
};
|
|
6634
6697
|
return /* @__PURE__ */ React.createElement("div", {
|
|
6635
6698
|
ref,
|
|
6636
|
-
className:
|
|
6699
|
+
className: clsx([
|
|
6637
6700
|
bem$V({
|
|
6638
6701
|
active: props.isActive,
|
|
6639
6702
|
disabled: props.disabled
|
|
@@ -6663,7 +6726,7 @@ const SwiperItem = React.forwardRef(
|
|
|
6663
6726
|
});
|
|
6664
6727
|
return /* @__PURE__ */ React.createElement("div", {
|
|
6665
6728
|
ref: wrapperRef,
|
|
6666
|
-
className:
|
|
6729
|
+
className: clsx(
|
|
6667
6730
|
props.className,
|
|
6668
6731
|
bem$U({
|
|
6669
6732
|
hidden: props.autoHeight && show2 === false
|
|
@@ -6831,7 +6894,7 @@ const Swiper$1 = forwardRef((p, ref) => {
|
|
|
6831
6894
|
const renderIndicator = () => {
|
|
6832
6895
|
if (props.indicator === void 0 || props.indicator === true) {
|
|
6833
6896
|
return /* @__PURE__ */ React.createElement("div", {
|
|
6834
|
-
className:
|
|
6897
|
+
className: clsx(bem$T("indicator", { vertical }))
|
|
6835
6898
|
}, /* @__PURE__ */ React.createElement(SwiperPagIndicator, {
|
|
6836
6899
|
...props.indicatorProps,
|
|
6837
6900
|
vertical,
|
|
@@ -6895,14 +6958,14 @@ const Swiper$1 = forwardRef((p, ref) => {
|
|
|
6895
6958
|
const renderTrackInner = () => {
|
|
6896
6959
|
if (loop) {
|
|
6897
6960
|
return /* @__PURE__ */ React.createElement("div", {
|
|
6898
|
-
className:
|
|
6961
|
+
className: clsx(
|
|
6899
6962
|
bem$T("track-inner", {
|
|
6900
6963
|
vertical
|
|
6901
6964
|
})
|
|
6902
6965
|
)
|
|
6903
6966
|
}, React.Children.map(validChildren, (child, index2) => {
|
|
6904
6967
|
return /* @__PURE__ */ React.createElement(animated.div, {
|
|
6905
|
-
className:
|
|
6968
|
+
className: clsx(bem$T("slide")),
|
|
6906
6969
|
style: {
|
|
6907
6970
|
[axis]: position.to((pos) => {
|
|
6908
6971
|
let finalPosition = -pos + index2 * 100;
|
|
@@ -6921,13 +6984,13 @@ const Swiper$1 = forwardRef((p, ref) => {
|
|
|
6921
6984
|
}));
|
|
6922
6985
|
}
|
|
6923
6986
|
return /* @__PURE__ */ React.createElement(animated.div, {
|
|
6924
|
-
className:
|
|
6987
|
+
className: clsx(bem$T("track-inner")),
|
|
6925
6988
|
style: {
|
|
6926
6989
|
[axis]: position.to((position2) => `${-position2}%`)
|
|
6927
6990
|
}
|
|
6928
6991
|
}, React.Children.map(validChildren, (child, index2) => {
|
|
6929
6992
|
return /* @__PURE__ */ React.createElement("div", {
|
|
6930
|
-
className:
|
|
6993
|
+
className: clsx(bem$T("slide"))
|
|
6931
6994
|
}, React.cloneElement(child, {
|
|
6932
6995
|
ref: setChildrenRefs(index2),
|
|
6933
6996
|
autoHeight
|
|
@@ -6935,11 +6998,11 @@ const Swiper$1 = forwardRef((p, ref) => {
|
|
|
6935
6998
|
}));
|
|
6936
6999
|
};
|
|
6937
7000
|
return /* @__PURE__ */ React.createElement("div", {
|
|
6938
|
-
className:
|
|
7001
|
+
className: clsx(props.className, bem$T({ vertical })),
|
|
6939
7002
|
style: computedStyle
|
|
6940
7003
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
6941
7004
|
ref: trackRef,
|
|
6942
|
-
className:
|
|
7005
|
+
className: clsx(
|
|
6943
7006
|
bem$T("track", {
|
|
6944
7007
|
"allow-touch-move": props.touchable
|
|
6945
7008
|
})
|
|
@@ -6983,7 +7046,7 @@ const TabsContent = (props) => {
|
|
|
6983
7046
|
loop: false,
|
|
6984
7047
|
autoplay: false,
|
|
6985
7048
|
touchable: !!swipeable,
|
|
6986
|
-
className:
|
|
7049
|
+
className: clsx(bem$S("track")),
|
|
6987
7050
|
duration: +duration,
|
|
6988
7051
|
indicator: false,
|
|
6989
7052
|
onChange: (idx) => {
|
|
@@ -6996,7 +7059,7 @@ const TabsContent = (props) => {
|
|
|
6996
7059
|
}
|
|
6997
7060
|
}, React.Children.map(props.children, (child) => /* @__PURE__ */ React.createElement(Swiper.Item, {
|
|
6998
7061
|
style: { cursor: !swipeable ? "auto" : void 0 },
|
|
6999
|
-
className:
|
|
7062
|
+
className: clsx(bem$S("pane-wrapper"))
|
|
7000
7063
|
}, child)));
|
|
7001
7064
|
}
|
|
7002
7065
|
return props.children;
|
|
@@ -7014,7 +7077,7 @@ const TabsContent = (props) => {
|
|
|
7014
7077
|
swipeToCurrentTab(props.currentIndex);
|
|
7015
7078
|
}, [props.currentIndex]);
|
|
7016
7079
|
return /* @__PURE__ */ React.createElement("div", {
|
|
7017
|
-
className:
|
|
7080
|
+
className: clsx(
|
|
7018
7081
|
bem$S("content", {
|
|
7019
7082
|
animated: animated2 || swipeable
|
|
7020
7083
|
})
|
|
@@ -7289,14 +7352,14 @@ const Tabs$1 = forwardRef((p, ref) => {
|
|
|
7289
7352
|
const { type, border } = props;
|
|
7290
7353
|
return /* @__PURE__ */ React.createElement("div", {
|
|
7291
7354
|
ref: wrapRef,
|
|
7292
|
-
className:
|
|
7355
|
+
className: clsx([
|
|
7293
7356
|
bem$R("wrap", { scrollable }),
|
|
7294
7357
|
{ [BORDER_TOP_BOTTOM]: type !== "card" && border }
|
|
7295
7358
|
])
|
|
7296
7359
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
7297
7360
|
ref: navRef,
|
|
7298
7361
|
role: "tablist",
|
|
7299
|
-
className:
|
|
7362
|
+
className: clsx(
|
|
7300
7363
|
bem$R("nav", [
|
|
7301
7364
|
type,
|
|
7302
7365
|
{ complete: scrollable, start: align === "start" }
|
|
@@ -7304,7 +7367,7 @@ const Tabs$1 = forwardRef((p, ref) => {
|
|
|
7304
7367
|
),
|
|
7305
7368
|
style: navStyle
|
|
7306
7369
|
}, props.navLeft, renderNav(), type === "line" && !immediateRef.current && /* @__PURE__ */ React.createElement("div", {
|
|
7307
|
-
className:
|
|
7370
|
+
className: clsx(bem$R("line")),
|
|
7308
7371
|
style: lineStyle
|
|
7309
7372
|
}), props.navRight));
|
|
7310
7373
|
};
|
|
@@ -7357,7 +7420,7 @@ const Tabs$1 = forwardRef((p, ref) => {
|
|
|
7357
7420
|
value: { props, currentName, scrollIntoView }
|
|
7358
7421
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
7359
7422
|
ref: root2,
|
|
7360
|
-
className:
|
|
7423
|
+
className: clsx(props.className, bem$R([props.type])),
|
|
7361
7424
|
style: props.style
|
|
7362
7425
|
}, props.sticky ? /* @__PURE__ */ React.createElement(Sticky, {
|
|
7363
7426
|
container: root2,
|
|
@@ -7409,14 +7472,14 @@ const TabPane = forwardRef((props, ref) => {
|
|
|
7409
7472
|
return /* @__PURE__ */ React.createElement("div", {
|
|
7410
7473
|
ref,
|
|
7411
7474
|
role: "tabpanel",
|
|
7412
|
-
className:
|
|
7475
|
+
className: clsx(bem$Q("pane"))
|
|
7413
7476
|
}, Content);
|
|
7414
7477
|
}
|
|
7415
7478
|
return /* @__PURE__ */ React.createElement("div", {
|
|
7416
7479
|
ref,
|
|
7417
7480
|
style: { display: show2 ? "block" : "none" },
|
|
7418
7481
|
role: "tabpanel",
|
|
7419
|
-
className:
|
|
7482
|
+
className: clsx(bem$Q("pane"))
|
|
7420
7483
|
}, Content);
|
|
7421
7484
|
});
|
|
7422
7485
|
const Tabs = Object.assign(Tabs$1, { TabPane });
|
|
@@ -7453,11 +7516,11 @@ const NavBar = (p) => {
|
|
|
7453
7516
|
return [
|
|
7454
7517
|
props.leftArrow && React.cloneElement(props.leftArrow, {
|
|
7455
7518
|
key: "arroe",
|
|
7456
|
-
className:
|
|
7519
|
+
className: clsx(bem$P("arrow"))
|
|
7457
7520
|
}),
|
|
7458
7521
|
props.leftText && /* @__PURE__ */ React.createElement("span", {
|
|
7459
7522
|
key: "text",
|
|
7460
|
-
className:
|
|
7523
|
+
className: clsx(bem$P("text"))
|
|
7461
7524
|
}, props.leftText)
|
|
7462
7525
|
];
|
|
7463
7526
|
};
|
|
@@ -7466,7 +7529,7 @@ const NavBar = (p) => {
|
|
|
7466
7529
|
return props.rightText;
|
|
7467
7530
|
}
|
|
7468
7531
|
return /* @__PURE__ */ React.createElement("span", {
|
|
7469
|
-
className:
|
|
7532
|
+
className: clsx(bem$P("text"))
|
|
7470
7533
|
}, props.rightText);
|
|
7471
7534
|
};
|
|
7472
7535
|
const renderNavBar = () => {
|
|
@@ -7480,7 +7543,7 @@ const NavBar = (p) => {
|
|
|
7480
7543
|
return /* @__PURE__ */ React.createElement("div", {
|
|
7481
7544
|
ref: navBarRef,
|
|
7482
7545
|
style,
|
|
7483
|
-
className:
|
|
7546
|
+
className: clsx(
|
|
7484
7547
|
bem$P({ fixed, "safe-area-inset-top": props.safeAreaInsetTop }),
|
|
7485
7548
|
{
|
|
7486
7549
|
[BORDER_BOTTOM]: border
|
|
@@ -7488,21 +7551,21 @@ const NavBar = (p) => {
|
|
|
7488
7551
|
props.className
|
|
7489
7552
|
)
|
|
7490
7553
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
7491
|
-
className:
|
|
7554
|
+
className: clsx(bem$P("content"))
|
|
7492
7555
|
}, hasLeft && /* @__PURE__ */ React.createElement("div", {
|
|
7493
|
-
className:
|
|
7556
|
+
className: clsx(bem$P("left")),
|
|
7494
7557
|
onClick: onClickLeft
|
|
7495
7558
|
}, renderLeft()), /* @__PURE__ */ React.createElement("div", {
|
|
7496
|
-
className:
|
|
7559
|
+
className: clsx(bem$P("title"), "rv-ellipsis")
|
|
7497
7560
|
}, title), hasRight && /* @__PURE__ */ React.createElement("div", {
|
|
7498
|
-
className:
|
|
7561
|
+
className: clsx(bem$P("right")),
|
|
7499
7562
|
onClick: onClickRight
|
|
7500
7563
|
}, renderRight())));
|
|
7501
7564
|
};
|
|
7502
7565
|
const renderPlaceholder = () => {
|
|
7503
7566
|
if (props.fixed && props.placeholder) {
|
|
7504
7567
|
return /* @__PURE__ */ React.createElement("div", {
|
|
7505
|
-
className:
|
|
7568
|
+
className: clsx(bem$P("placeholder")),
|
|
7506
7569
|
style: { height: navBarHeight ? `${navBarHeight}px` : void 0 }
|
|
7507
7570
|
});
|
|
7508
7571
|
}
|
|
@@ -7547,13 +7610,13 @@ const Tag = (p) => {
|
|
|
7547
7610
|
classes[size] = size;
|
|
7548
7611
|
}
|
|
7549
7612
|
const CloseIcon = closeable && /* @__PURE__ */ React.createElement(Cross, {
|
|
7550
|
-
className:
|
|
7613
|
+
className: clsx(bem$O("close")),
|
|
7551
7614
|
onClick: onClose
|
|
7552
7615
|
});
|
|
7553
7616
|
return /* @__PURE__ */ React.createElement("span", {
|
|
7554
7617
|
ref: nodeRef,
|
|
7555
7618
|
style: { ...getStyle, ...props.style },
|
|
7556
|
-
className:
|
|
7619
|
+
className: clsx(props.className, bem$O([classes, type])),
|
|
7557
7620
|
onClick: props.onClick
|
|
7558
7621
|
}, props.children, CloseIcon);
|
|
7559
7622
|
};
|
|
@@ -7575,7 +7638,7 @@ const Grid = ({ children, className, style, ...p }) => {
|
|
|
7575
7638
|
});
|
|
7576
7639
|
return /* @__PURE__ */ React.createElement("div", {
|
|
7577
7640
|
style: { paddingLeft: addUnit(props.gutter), ...style },
|
|
7578
|
-
className:
|
|
7641
|
+
className: clsx(className, bem$N(), {
|
|
7579
7642
|
[BORDER_TOP]: props.border && !props.gutter
|
|
7580
7643
|
})
|
|
7581
7644
|
}, React.Children.toArray(children).filter(Boolean).map(
|
|
@@ -7629,7 +7692,7 @@ const GridItem = ({
|
|
|
7629
7692
|
return /* @__PURE__ */ React.createElement(Badge, {
|
|
7630
7693
|
...props.badge
|
|
7631
7694
|
}, React.cloneElement(props.icon, {
|
|
7632
|
-
className:
|
|
7695
|
+
className: clsx(bem$M("icon")),
|
|
7633
7696
|
color: props.iconColor,
|
|
7634
7697
|
fontSize: parent.iconSize
|
|
7635
7698
|
}));
|
|
@@ -7642,7 +7705,7 @@ const GridItem = ({
|
|
|
7642
7705
|
}
|
|
7643
7706
|
if (props.text) {
|
|
7644
7707
|
return /* @__PURE__ */ React.createElement("span", {
|
|
7645
|
-
className:
|
|
7708
|
+
className: clsx(bem$M("text"))
|
|
7646
7709
|
}, props.text);
|
|
7647
7710
|
}
|
|
7648
7711
|
return null;
|
|
@@ -7654,7 +7717,7 @@ const GridItem = ({
|
|
|
7654
7717
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, renderIcon(), renderText());
|
|
7655
7718
|
};
|
|
7656
7719
|
const { center, border, square, gutter, reverse, direction } = parent;
|
|
7657
|
-
const classes =
|
|
7720
|
+
const classes = clsx(
|
|
7658
7721
|
props.contentClassName,
|
|
7659
7722
|
bem$M("content", [
|
|
7660
7723
|
direction,
|
|
@@ -7669,7 +7732,7 @@ const GridItem = ({
|
|
|
7669
7732
|
{ [BORDER]: border }
|
|
7670
7733
|
);
|
|
7671
7734
|
return /* @__PURE__ */ React.createElement("div", {
|
|
7672
|
-
className:
|
|
7735
|
+
className: clsx(className, bem$M({ square })),
|
|
7673
7736
|
style: rootStyle
|
|
7674
7737
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
7675
7738
|
role: props.onClick ? "button" : void 0,
|
|
@@ -7743,7 +7806,7 @@ const IndexAnchor = forwardRef((props, ref) => {
|
|
|
7743
7806
|
}
|
|
7744
7807
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
7745
7808
|
style: anchorStyle,
|
|
7746
|
-
className:
|
|
7809
|
+
className: clsx(bem$L({ sticky }), { [BORDER_BOTTOM]: sticky })
|
|
7747
7810
|
}, props.children || props.index));
|
|
7748
7811
|
});
|
|
7749
7812
|
IndexAnchor[COMPONENT_TYPE_KEY] = INDEX_ANCHORE_KEY;
|
|
@@ -7841,7 +7904,7 @@ const IndexBar$1 = forwardRef((p, ref) => {
|
|
|
7841
7904
|
const active = index2 === activeAnchor;
|
|
7842
7905
|
return /* @__PURE__ */ React.createElement("span", {
|
|
7843
7906
|
key: index2,
|
|
7844
|
-
className:
|
|
7907
|
+
className: clsx(bem$K("index", { active })),
|
|
7845
7908
|
style: active ? highlightStyle : null,
|
|
7846
7909
|
"data-index": index2
|
|
7847
7910
|
}, props.itemRender ? props.itemRender(index2, active) : index2);
|
|
@@ -7929,13 +7992,13 @@ const IndexBar$1 = forwardRef((p, ref) => {
|
|
|
7929
7992
|
value: { zIndex, highlightColor, sticky }
|
|
7930
7993
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
7931
7994
|
ref: root2,
|
|
7932
|
-
className:
|
|
7995
|
+
className: clsx(bem$K(), props.className),
|
|
7933
7996
|
style: props.style
|
|
7934
7997
|
}, renderToContainer(
|
|
7935
7998
|
props.teleport,
|
|
7936
7999
|
/* @__PURE__ */ React.createElement("div", {
|
|
7937
8000
|
ref: sidebar,
|
|
7938
|
-
className:
|
|
8001
|
+
className: clsx(bem$K("sidebar")),
|
|
7939
8002
|
style: sidebarStyle,
|
|
7940
8003
|
onClick: onClickSidebar,
|
|
7941
8004
|
onTouchStart
|
|
@@ -8000,7 +8063,7 @@ const Collapse$1 = (p) => {
|
|
|
8000
8063
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
8001
8064
|
style: props.style,
|
|
8002
8065
|
ref: props.nativeRef,
|
|
8003
|
-
className:
|
|
8066
|
+
className: clsx(bem$J(), props.className, {
|
|
8004
8067
|
[BORDER_TOP_BOTTOM]: props.border
|
|
8005
8068
|
})
|
|
8006
8069
|
}, React.Children.toArray(props.children).filter(Boolean).map(
|
|
@@ -8079,7 +8142,7 @@ const CollapseItem = forwardRef(
|
|
|
8079
8142
|
const renderTitle = () => {
|
|
8080
8143
|
const { border, disabled, children, readOnly, ...others } = props;
|
|
8081
8144
|
return /* @__PURE__ */ React.createElement(Cell, {
|
|
8082
|
-
className:
|
|
8145
|
+
className: clsx(
|
|
8083
8146
|
bem$I("title", {
|
|
8084
8147
|
disabled,
|
|
8085
8148
|
expanded,
|
|
@@ -8095,18 +8158,18 @@ const CollapseItem = forwardRef(
|
|
|
8095
8158
|
};
|
|
8096
8159
|
const renderContent = lazyRender(() => /* @__PURE__ */ React.createElement("div", {
|
|
8097
8160
|
ref: wrapperRef,
|
|
8098
|
-
className:
|
|
8161
|
+
className: clsx(bem$I("wrapper")),
|
|
8099
8162
|
onTransitionEnd
|
|
8100
8163
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
8101
8164
|
ref: contentRef,
|
|
8102
|
-
className:
|
|
8165
|
+
className: clsx(bem$I("content"))
|
|
8103
8166
|
}, props.children)));
|
|
8104
8167
|
useImperativeHandle(ref, () => ({
|
|
8105
8168
|
toggle
|
|
8106
8169
|
}));
|
|
8107
8170
|
return /* @__PURE__ */ React.createElement("div", {
|
|
8108
8171
|
style,
|
|
8109
|
-
className:
|
|
8172
|
+
className: clsx(className, bem$I({ border: index2 && props.border }))
|
|
8110
8173
|
}, renderTitle(), renderContent());
|
|
8111
8174
|
}
|
|
8112
8175
|
);
|
|
@@ -8127,7 +8190,7 @@ function RadioGroup(props) {
|
|
|
8127
8190
|
return /* @__PURE__ */ React.createElement(RadioContext.Provider, {
|
|
8128
8191
|
value: { parent: { props }, toggle, checked }
|
|
8129
8192
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
8130
|
-
className:
|
|
8193
|
+
className: clsx(props.className, bem$H([props.direction])),
|
|
8131
8194
|
style: props.style,
|
|
8132
8195
|
role: "radiogroup"
|
|
8133
8196
|
}, props.children));
|
|
@@ -8180,7 +8243,7 @@ const Checker = (p) => {
|
|
|
8180
8243
|
const iconSize = props.iconSize || getParentProp("iconSize");
|
|
8181
8244
|
return /* @__PURE__ */ React.createElement("div", {
|
|
8182
8245
|
ref: iconRef,
|
|
8183
|
-
className:
|
|
8246
|
+
className: clsx(bem2("icon", [shape, { disabled, checked }])),
|
|
8184
8247
|
style: { fontSize: addUnit(iconSize) }
|
|
8185
8248
|
}, props.iconRender ? props.iconRender({ checked, disabled }) : /* @__PURE__ */ React.createElement(Success, {
|
|
8186
8249
|
style: iconStyle
|
|
@@ -8196,7 +8259,7 @@ const Checker = (p) => {
|
|
|
8196
8259
|
};
|
|
8197
8260
|
return /* @__PURE__ */ React.createElement("div", {
|
|
8198
8261
|
role: props.role,
|
|
8199
|
-
className:
|
|
8262
|
+
className: clsx(
|
|
8200
8263
|
props.bem([
|
|
8201
8264
|
{
|
|
8202
8265
|
disabled,
|
|
@@ -8355,25 +8418,25 @@ const Rate = ({
|
|
|
8355
8418
|
ref: setItemRefs(index2),
|
|
8356
8419
|
role: "radio",
|
|
8357
8420
|
style,
|
|
8358
|
-
className:
|
|
8421
|
+
className: clsx(bem$F("item")),
|
|
8359
8422
|
tabIndex: 0,
|
|
8360
8423
|
"aria-setsize": parseInt(count == null ? void 0 : count.toString(), 10),
|
|
8361
8424
|
"aria-posinset": score,
|
|
8362
8425
|
"aria-checked": !isVoid,
|
|
8363
8426
|
onClick: onClickItem
|
|
8364
8427
|
}, React.cloneElement(isFull ? icon : voidIcon, {
|
|
8365
|
-
className:
|
|
8428
|
+
className: clsx(bem$F("icon", { disabled, full: isFull })),
|
|
8366
8429
|
style: {
|
|
8367
8430
|
color: disabled ? disabledColor : isFull ? color : voidColor,
|
|
8368
8431
|
fontSize: size
|
|
8369
8432
|
}
|
|
8370
8433
|
}), renderHalf && /* @__PURE__ */ React.createElement("div", {
|
|
8371
|
-
className:
|
|
8434
|
+
className: clsx(bem$F("icon", ["half"])),
|
|
8372
8435
|
style: { width: `${item.value * 100}%` }
|
|
8373
8436
|
}, React.cloneElement(
|
|
8374
8437
|
isVoid ? voidIcon : icon,
|
|
8375
8438
|
{
|
|
8376
|
-
className:
|
|
8439
|
+
className: clsx(bem$F("icon", [{ disabled, full: !isVoid }])),
|
|
8377
8440
|
style: {
|
|
8378
8441
|
color: disabled ? disabledColor : isVoid ? voidColor : color,
|
|
8379
8442
|
fontSize: size
|
|
@@ -8388,7 +8451,7 @@ const Rate = ({
|
|
|
8388
8451
|
return /* @__PURE__ */ React.createElement("div", {
|
|
8389
8452
|
ref: root2,
|
|
8390
8453
|
role: "radiogroup",
|
|
8391
|
-
className:
|
|
8454
|
+
className: clsx(
|
|
8392
8455
|
bem$F({
|
|
8393
8456
|
readOnly: props.readOnly,
|
|
8394
8457
|
disabled: props.disabled
|
|
@@ -8507,7 +8570,7 @@ const CalenderDay = (p) => {
|
|
|
8507
8570
|
const { topInfo } = props.item;
|
|
8508
8571
|
if (topInfo || props.topInfoRender) {
|
|
8509
8572
|
return /* @__PURE__ */ React.createElement("div", {
|
|
8510
|
-
className:
|
|
8573
|
+
className: clsx(bem$E("top-info"))
|
|
8511
8574
|
}, props.topInfoRender ? props.topInfoRender(props.item) : topInfo);
|
|
8512
8575
|
}
|
|
8513
8576
|
return null;
|
|
@@ -8516,7 +8579,7 @@ const CalenderDay = (p) => {
|
|
|
8516
8579
|
const { bottomInfo } = props.item;
|
|
8517
8580
|
if (bottomInfo || props.bottomInfoRender) {
|
|
8518
8581
|
return /* @__PURE__ */ React.createElement("div", {
|
|
8519
|
-
className:
|
|
8582
|
+
className: clsx(bem$E("bottom-info"))
|
|
8520
8583
|
}, props.bottomInfoRender ? props.bottomInfoRender(props.item) : bottomInfo);
|
|
8521
8584
|
}
|
|
8522
8585
|
return null;
|
|
@@ -8527,7 +8590,7 @@ const CalenderDay = (p) => {
|
|
|
8527
8590
|
const Nodes = /* @__PURE__ */ React.createElement(React.Fragment, null, renderTopInfo(), text, renderBottomInfo());
|
|
8528
8591
|
if (type2 === "selected") {
|
|
8529
8592
|
return /* @__PURE__ */ React.createElement("div", {
|
|
8530
|
-
className:
|
|
8593
|
+
className: clsx(bem$E("selected-day")),
|
|
8531
8594
|
style: {
|
|
8532
8595
|
width: rowHeight,
|
|
8533
8596
|
height: rowHeight,
|
|
@@ -8540,14 +8603,14 @@ const CalenderDay = (p) => {
|
|
|
8540
8603
|
const { type, className } = props.item;
|
|
8541
8604
|
if (type === "placeholder") {
|
|
8542
8605
|
return /* @__PURE__ */ React.createElement("div", {
|
|
8543
|
-
className:
|
|
8606
|
+
className: clsx(bem$E("day")),
|
|
8544
8607
|
style
|
|
8545
8608
|
});
|
|
8546
8609
|
}
|
|
8547
8610
|
return /* @__PURE__ */ React.createElement("div", {
|
|
8548
8611
|
role: "gridcell",
|
|
8549
8612
|
style,
|
|
8550
|
-
className:
|
|
8613
|
+
className: clsx(bem$E("day", type), className),
|
|
8551
8614
|
tabIndex: type === "disabled" ? void 0 : -1,
|
|
8552
8615
|
onClick
|
|
8553
8616
|
}, renderContent());
|
|
@@ -8667,7 +8730,7 @@ const CalenderMonth = forwardRef((props, ref) => {
|
|
|
8667
8730
|
const renderTitle = () => {
|
|
8668
8731
|
if (props.showMonthTitle) {
|
|
8669
8732
|
return /* @__PURE__ */ React.createElement("div", {
|
|
8670
|
-
className:
|
|
8733
|
+
className: clsx(bem$D("month-title"))
|
|
8671
8734
|
}, title);
|
|
8672
8735
|
}
|
|
8673
8736
|
return null;
|
|
@@ -8675,7 +8738,7 @@ const CalenderMonth = forwardRef((props, ref) => {
|
|
|
8675
8738
|
const renderMark = () => {
|
|
8676
8739
|
if (props.showMark && shouldRender) {
|
|
8677
8740
|
return /* @__PURE__ */ React.createElement("div", {
|
|
8678
|
-
className:
|
|
8741
|
+
className: clsx(bem$D("month-mark"))
|
|
8679
8742
|
}, props.date.getMonth() + 1);
|
|
8680
8743
|
}
|
|
8681
8744
|
return null;
|
|
@@ -8718,7 +8781,7 @@ const CalenderMonth = forwardRef((props, ref) => {
|
|
|
8718
8781
|
const renderDays = () => /* @__PURE__ */ React.createElement("div", {
|
|
8719
8782
|
ref: daysRef,
|
|
8720
8783
|
role: "grid",
|
|
8721
|
-
className:
|
|
8784
|
+
className: clsx(bem$D("days"))
|
|
8722
8785
|
}, renderMark(), (shouldRender ? days : placeholders).map(renderDay));
|
|
8723
8786
|
useImperativeHandle(ref, () => ({
|
|
8724
8787
|
getTitle,
|
|
@@ -8727,7 +8790,7 @@ const CalenderMonth = forwardRef((props, ref) => {
|
|
|
8727
8790
|
scrollIntoView
|
|
8728
8791
|
}));
|
|
8729
8792
|
return /* @__PURE__ */ React.createElement("div", {
|
|
8730
|
-
className:
|
|
8793
|
+
className: clsx(bem$D("month")),
|
|
8731
8794
|
ref: setMonthRef
|
|
8732
8795
|
}, renderTitle(), renderDays());
|
|
8733
8796
|
});
|
|
@@ -8738,7 +8801,7 @@ const CalenderHeader = (props) => {
|
|
|
8738
8801
|
if (props.showTitle) {
|
|
8739
8802
|
const text = props.title || locale.vanCalendar.title;
|
|
8740
8803
|
return /* @__PURE__ */ React.createElement("div", {
|
|
8741
|
-
className:
|
|
8804
|
+
className: clsx(bem$C("header-title"))
|
|
8742
8805
|
}, text);
|
|
8743
8806
|
}
|
|
8744
8807
|
return null;
|
|
@@ -8750,7 +8813,7 @@ const CalenderHeader = (props) => {
|
|
|
8750
8813
|
const renderSubtitle = () => {
|
|
8751
8814
|
if (props.showSubtitle) {
|
|
8752
8815
|
return /* @__PURE__ */ React.createElement("div", {
|
|
8753
|
-
className:
|
|
8816
|
+
className: clsx(bem$C("header-subtitle")),
|
|
8754
8817
|
onClick: onClickSubtitle
|
|
8755
8818
|
}, props.subtitle);
|
|
8756
8819
|
}
|
|
@@ -8765,14 +8828,14 @@ const CalenderHeader = (props) => {
|
|
|
8765
8828
|
...weekdays.slice(0, firstDayOfWeek)
|
|
8766
8829
|
];
|
|
8767
8830
|
return /* @__PURE__ */ React.createElement("div", {
|
|
8768
|
-
className:
|
|
8831
|
+
className: clsx(bem$C("weekdays"))
|
|
8769
8832
|
}, renderWeekDaysContent.map((text, i) => /* @__PURE__ */ React.createElement("span", {
|
|
8770
8833
|
key: i,
|
|
8771
|
-
className:
|
|
8834
|
+
className: clsx(bem$C("weekday"))
|
|
8772
8835
|
}, text)));
|
|
8773
8836
|
};
|
|
8774
8837
|
return /* @__PURE__ */ React.createElement("div", {
|
|
8775
|
-
className:
|
|
8838
|
+
className: clsx(bem$C("header"))
|
|
8776
8839
|
}, renderTitle(), renderSubtitle(), renderWeekDays());
|
|
8777
8840
|
};
|
|
8778
8841
|
const [bem$B] = createNamespace("calendar");
|
|
@@ -9116,7 +9179,7 @@ const Calendar = forwardRef(
|
|
|
9116
9179
|
block: true,
|
|
9117
9180
|
type: "danger",
|
|
9118
9181
|
color: props.color,
|
|
9119
|
-
className:
|
|
9182
|
+
className: clsx(bem$B("confirm")),
|
|
9120
9183
|
disabled: buttonDisabled,
|
|
9121
9184
|
nativeType: "button",
|
|
9122
9185
|
onClick: onConfirm
|
|
@@ -9125,12 +9188,12 @@ const Calendar = forwardRef(
|
|
|
9125
9188
|
return null;
|
|
9126
9189
|
};
|
|
9127
9190
|
const renderFooter = () => /* @__PURE__ */ React.createElement("div", {
|
|
9128
|
-
className:
|
|
9191
|
+
className: clsx(bem$B("footer"), {
|
|
9129
9192
|
"rv-safe-area-bottom": props.safeAreaInsetBottom
|
|
9130
9193
|
})
|
|
9131
9194
|
}, renderFooterButton());
|
|
9132
9195
|
const renderCalendar = () => /* @__PURE__ */ React.createElement("div", {
|
|
9133
|
-
className:
|
|
9196
|
+
className: clsx(className, bem$B()),
|
|
9134
9197
|
style
|
|
9135
9198
|
}, /* @__PURE__ */ React.createElement(CalenderHeader, {
|
|
9136
9199
|
weekdays: props.weekdays,
|
|
@@ -9145,7 +9208,7 @@ const Calendar = forwardRef(
|
|
|
9145
9208
|
}
|
|
9146
9209
|
}), props.horizontal ? /* @__PURE__ */ React.createElement("div", {
|
|
9147
9210
|
ref: bodyRef,
|
|
9148
|
-
className:
|
|
9211
|
+
className: clsx(bem$B("horizontal-body"))
|
|
9149
9212
|
}, /* @__PURE__ */ React.createElement(Swiper, {
|
|
9150
9213
|
indicator: () => null,
|
|
9151
9214
|
onChange: (index2) => {
|
|
@@ -9155,7 +9218,7 @@ const Calendar = forwardRef(
|
|
|
9155
9218
|
key: month
|
|
9156
9219
|
}, renderMonth(month, index2))))) : /* @__PURE__ */ React.createElement("div", {
|
|
9157
9220
|
ref: bodyRef,
|
|
9158
|
-
className:
|
|
9221
|
+
className: clsx(bem$B("body")),
|
|
9159
9222
|
onScroll
|
|
9160
9223
|
}, months.map(renderMonth)), renderFooter());
|
|
9161
9224
|
const actions = {
|
|
@@ -9195,7 +9258,7 @@ const Calendar = forwardRef(
|
|
|
9195
9258
|
if (props.poppable) {
|
|
9196
9259
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Popup, {
|
|
9197
9260
|
visible,
|
|
9198
|
-
className:
|
|
9261
|
+
className: clsx(bem$B("popup")),
|
|
9199
9262
|
round: props.round,
|
|
9200
9263
|
position: props.position,
|
|
9201
9264
|
closeable: props.showTitle || props.showSubtitle,
|
|
@@ -9368,26 +9431,26 @@ const Cascader = (props) => {
|
|
|
9368
9431
|
return null;
|
|
9369
9432
|
if (props.closeIcon) {
|
|
9370
9433
|
return React.cloneElement(props.closeIcon, {
|
|
9371
|
-
className:
|
|
9434
|
+
className: clsx(bem$A("close-icon")),
|
|
9372
9435
|
onClick: props.onClose
|
|
9373
9436
|
});
|
|
9374
9437
|
}
|
|
9375
9438
|
return /* @__PURE__ */ React.createElement(Cross, {
|
|
9376
|
-
className:
|
|
9439
|
+
className: clsx(bem$A("close-icon")),
|
|
9377
9440
|
onClick: props.onClose
|
|
9378
9441
|
});
|
|
9379
9442
|
};
|
|
9380
9443
|
const renderHeader = () => /* @__PURE__ */ React.createElement("div", {
|
|
9381
|
-
className:
|
|
9444
|
+
className: clsx(bem$A("header"))
|
|
9382
9445
|
}, /* @__PURE__ */ React.createElement("h2", {
|
|
9383
|
-
className:
|
|
9446
|
+
className: clsx(bem$A("title"))
|
|
9384
9447
|
}, props.title), renderCloseIcon());
|
|
9385
9448
|
const renderOption = (option, selected, tabIndex) => {
|
|
9386
9449
|
const color = option.color || (selected ? props.activeColor : void 0);
|
|
9387
9450
|
const Text2 = props.optionRender ? props.optionRender({ option, selected }) : /* @__PURE__ */ React.createElement("span", null, option[textKey]);
|
|
9388
9451
|
return /* @__PURE__ */ React.createElement("li", {
|
|
9389
9452
|
key: option[valueKey],
|
|
9390
|
-
className:
|
|
9453
|
+
className: clsx(
|
|
9391
9454
|
bem$A("option", {
|
|
9392
9455
|
selected,
|
|
9393
9456
|
disabled: option.disabled
|
|
@@ -9397,12 +9460,12 @@ const Cascader = (props) => {
|
|
|
9397
9460
|
style: { color },
|
|
9398
9461
|
onClick: () => onSelect(option, tabIndex)
|
|
9399
9462
|
}, Text2, selected ? /* @__PURE__ */ React.createElement(Success, {
|
|
9400
|
-
className:
|
|
9463
|
+
className: clsx(bem$A("selected-icon"))
|
|
9401
9464
|
}) : null);
|
|
9402
9465
|
};
|
|
9403
9466
|
const renderOptions = (options, selectedOption, tabIndex) => /* @__PURE__ */ React.createElement("ul", {
|
|
9404
9467
|
key: tabIndex,
|
|
9405
|
-
className:
|
|
9468
|
+
className: clsx(bem$A("options"))
|
|
9406
9469
|
}, options.map(
|
|
9407
9470
|
(option) => renderOption(
|
|
9408
9471
|
option,
|
|
@@ -9416,7 +9479,7 @@ const Cascader = (props) => {
|
|
|
9416
9479
|
return /* @__PURE__ */ React.createElement(Tabs.TabPane, {
|
|
9417
9480
|
key: tabIndex,
|
|
9418
9481
|
title,
|
|
9419
|
-
titleClass:
|
|
9482
|
+
titleClass: clsx(
|
|
9420
9483
|
bem$A("tab", {
|
|
9421
9484
|
unselected: !selectedOption
|
|
9422
9485
|
})
|
|
@@ -9426,7 +9489,7 @@ const Cascader = (props) => {
|
|
|
9426
9489
|
const renderTabs = () => /* @__PURE__ */ React.createElement(Tabs, {
|
|
9427
9490
|
animated: true,
|
|
9428
9491
|
active: activeTab,
|
|
9429
|
-
className:
|
|
9492
|
+
className: clsx(bem$A("tabs")),
|
|
9430
9493
|
color: props.activeColor,
|
|
9431
9494
|
swipeThreshold: 0,
|
|
9432
9495
|
swipeable: props.swipeable,
|
|
@@ -9434,7 +9497,7 @@ const Cascader = (props) => {
|
|
|
9434
9497
|
onClickTab
|
|
9435
9498
|
}, tabs.map(renderTab));
|
|
9436
9499
|
return /* @__PURE__ */ React.createElement("div", {
|
|
9437
|
-
className:
|
|
9500
|
+
className: clsx(bem$A())
|
|
9438
9501
|
}, renderHeader(), tabs.length ? renderTabs() : null);
|
|
9439
9502
|
};
|
|
9440
9503
|
const CascaderPopup = React.forwardRef(
|
|
@@ -9589,7 +9652,7 @@ const CheckBoxGroup = forwardRef(
|
|
|
9589
9652
|
return /* @__PURE__ */ React.createElement(CheckboxContext.Provider, {
|
|
9590
9653
|
value: { parent: { props }, toggle, checked: checked || [] }
|
|
9591
9654
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
9592
|
-
className:
|
|
9655
|
+
className: clsx(props.className, bem$z([props.direction]))
|
|
9593
9656
|
}, React.Children.toArray(props.children).filter(Boolean).map((child, index2) => {
|
|
9594
9657
|
var _a;
|
|
9595
9658
|
if (((_a = child.type) == null ? void 0 : _a.displayName) !== "Checkbox")
|
|
@@ -9855,7 +9918,7 @@ const PickerColumn = memo(
|
|
|
9855
9918
|
role: "button",
|
|
9856
9919
|
style: optionStyle,
|
|
9857
9920
|
tabIndex: disabled ? -1 : 0,
|
|
9858
|
-
className:
|
|
9921
|
+
className: clsx(
|
|
9859
9922
|
bem$x("item", {
|
|
9860
9923
|
disabled,
|
|
9861
9924
|
selected: option[valueKey] === value
|
|
@@ -9881,7 +9944,7 @@ const PickerColumn = memo(
|
|
|
9881
9944
|
stopMomentum
|
|
9882
9945
|
}));
|
|
9883
9946
|
return /* @__PURE__ */ React.createElement("div", {
|
|
9884
|
-
className:
|
|
9947
|
+
className: clsx(bem$x(), props.className),
|
|
9885
9948
|
onTouchStart,
|
|
9886
9949
|
onTouchMove,
|
|
9887
9950
|
onTouchEnd,
|
|
@@ -9893,7 +9956,7 @@ const PickerColumn = memo(
|
|
|
9893
9956
|
transitionDuration: `${state.duration}ms`,
|
|
9894
9957
|
transitionProperty: state.duration ? "all" : "none"
|
|
9895
9958
|
},
|
|
9896
|
-
className:
|
|
9959
|
+
className: clsx(bem$x("wrapper")),
|
|
9897
9960
|
onTransitionEnd: stopMomentum
|
|
9898
9961
|
}, renderOptions()));
|
|
9899
9962
|
}),
|
|
@@ -9990,10 +10053,10 @@ function withCache(generate) {
|
|
|
9990
10053
|
function generateColumnsExtend(rawColumns, keys, val) {
|
|
9991
10054
|
const { textKey, valueKey } = keys;
|
|
9992
10055
|
const columns = withCache(() => {
|
|
9993
|
-
let
|
|
9994
|
-
if (!Array.isArray(
|
|
9995
|
-
|
|
9996
|
-
return
|
|
10056
|
+
let cls = typeof rawColumns === "function" ? rawColumns(val) : rawColumns;
|
|
10057
|
+
if (!Array.isArray(cls[0]))
|
|
10058
|
+
cls = [cls];
|
|
10059
|
+
return cls.map(
|
|
9997
10060
|
(column) => column.map((item) => {
|
|
9998
10061
|
if (typeof item === "string")
|
|
9999
10062
|
return { [textKey]: item, [valueKey]: item };
|
|
@@ -10109,7 +10172,7 @@ function PickerInner(props) {
|
|
|
10109
10172
|
const renderTitle = () => {
|
|
10110
10173
|
if (props.title) {
|
|
10111
10174
|
return /* @__PURE__ */ React.createElement("div", {
|
|
10112
|
-
className:
|
|
10175
|
+
className: clsx(bem$w("title"), "rv-ellipsis")
|
|
10113
10176
|
}, props.title);
|
|
10114
10177
|
}
|
|
10115
10178
|
return null;
|
|
@@ -10118,7 +10181,7 @@ function PickerInner(props) {
|
|
|
10118
10181
|
const text = props.cancelButtonText || locale.cancel;
|
|
10119
10182
|
return /* @__PURE__ */ React.createElement("button", {
|
|
10120
10183
|
type: "button",
|
|
10121
|
-
className:
|
|
10184
|
+
className: clsx(bem$w("cancel")),
|
|
10122
10185
|
onClick: cancel
|
|
10123
10186
|
}, text);
|
|
10124
10187
|
};
|
|
@@ -10126,14 +10189,14 @@ function PickerInner(props) {
|
|
|
10126
10189
|
const text = props.confirmButtonText || locale.confirm;
|
|
10127
10190
|
return /* @__PURE__ */ React.createElement("button", {
|
|
10128
10191
|
type: "button",
|
|
10129
|
-
className:
|
|
10192
|
+
className: clsx(bem$w("confirm")),
|
|
10130
10193
|
onClick: confirm
|
|
10131
10194
|
}, text);
|
|
10132
10195
|
};
|
|
10133
10196
|
const renderToolbar = () => {
|
|
10134
10197
|
if (props.showToolbar) {
|
|
10135
10198
|
return /* @__PURE__ */ React.createElement("div", {
|
|
10136
|
-
className:
|
|
10199
|
+
className: clsx(bem$w("toolbar"))
|
|
10137
10200
|
}, props.toolbar || /* @__PURE__ */ React.createElement(React.Fragment, null, renderCancel(), renderTitle(), renderConfirm()));
|
|
10138
10201
|
}
|
|
10139
10202
|
return null;
|
|
@@ -10168,13 +10231,13 @@ function PickerInner(props) {
|
|
|
10168
10231
|
};
|
|
10169
10232
|
return /* @__PURE__ */ React.createElement("div", {
|
|
10170
10233
|
ref: wrapper,
|
|
10171
|
-
className:
|
|
10234
|
+
className: clsx(bem$w("columns")),
|
|
10172
10235
|
style: columnsStyle
|
|
10173
10236
|
}, renderColumnItems(), /* @__PURE__ */ React.createElement("div", {
|
|
10174
|
-
className:
|
|
10237
|
+
className: clsx(bem$w("mask")),
|
|
10175
10238
|
style: maskStyle
|
|
10176
10239
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
10177
|
-
className:
|
|
10240
|
+
className: clsx(BORDER_UNSET_TOP_BOTTOM, bem$w("frame")),
|
|
10178
10241
|
style: frameStyle
|
|
10179
10242
|
}));
|
|
10180
10243
|
};
|
|
@@ -10182,9 +10245,9 @@ function PickerInner(props) {
|
|
|
10182
10245
|
target: wrapper.current
|
|
10183
10246
|
});
|
|
10184
10247
|
return /* @__PURE__ */ React.createElement("div", {
|
|
10185
|
-
className:
|
|
10248
|
+
className: clsx(bem$w(), props.className)
|
|
10186
10249
|
}, props.toolbarPosition === "top" ? renderToolbar() : null, props.loading ? /* @__PURE__ */ React.createElement(Loading, {
|
|
10187
|
-
className:
|
|
10250
|
+
className: clsx(bem$w("loading"))
|
|
10188
10251
|
}) : null, props.columnsTop, renderColumns(), props.columnsBottom, props.toolbarPosition === "bottom" ? renderToolbar() : null);
|
|
10189
10252
|
}
|
|
10190
10253
|
function PopupPicker(p, ref) {
|
|
@@ -10673,12 +10736,12 @@ const DateTimePicker = forwardRef(
|
|
|
10673
10736
|
if (isTimePicker)
|
|
10674
10737
|
return /* @__PURE__ */ React.createElement(TimePicker, {
|
|
10675
10738
|
ref,
|
|
10676
|
-
className:
|
|
10739
|
+
className: clsx(bem$v()),
|
|
10677
10740
|
...props
|
|
10678
10741
|
});
|
|
10679
10742
|
return /* @__PURE__ */ React.createElement(DatePicker, {
|
|
10680
10743
|
ref,
|
|
10681
|
-
className:
|
|
10744
|
+
className: clsx(bem$v()),
|
|
10682
10745
|
...props
|
|
10683
10746
|
});
|
|
10684
10747
|
}
|
|
@@ -10761,7 +10824,7 @@ const PasswordInput = forwardRef(
|
|
|
10761
10824
|
Points.push(
|
|
10762
10825
|
/* @__PURE__ */ React.createElement("li", {
|
|
10763
10826
|
key: i,
|
|
10764
|
-
className:
|
|
10827
|
+
className: clsx(
|
|
10765
10828
|
{
|
|
10766
10829
|
[BORDER_LEFT]: showBorder,
|
|
10767
10830
|
[props.highlightClass]: props.highlightClass && char && !props.mask
|
|
@@ -10772,7 +10835,7 @@ const PasswordInput = forwardRef(
|
|
|
10772
10835
|
}, mask ? /* @__PURE__ */ React.createElement("i", {
|
|
10773
10836
|
style: { visibility: char ? "visible" : "hidden" }
|
|
10774
10837
|
}) : char, showCursor && /* @__PURE__ */ React.createElement("div", {
|
|
10775
|
-
className:
|
|
10838
|
+
className: clsx(bem$u("cursor"))
|
|
10776
10839
|
}))
|
|
10777
10840
|
);
|
|
10778
10841
|
}
|
|
@@ -10807,10 +10870,10 @@ const PasswordInput = forwardRef(
|
|
|
10807
10870
|
}));
|
|
10808
10871
|
const info = props.errorInfo || props.info;
|
|
10809
10872
|
return /* @__PURE__ */ React.createElement("div", {
|
|
10810
|
-
className:
|
|
10873
|
+
className: clsx(bem$u(), props.className),
|
|
10811
10874
|
style: props.style
|
|
10812
10875
|
}, /* @__PURE__ */ React.createElement("ul", {
|
|
10813
|
-
className:
|
|
10876
|
+
className: clsx(bem$u("security"), {
|
|
10814
10877
|
[BORDER_SURROUND]: !props.gutter
|
|
10815
10878
|
})
|
|
10816
10879
|
}, renderPoints(), /* @__PURE__ */ React.createElement("input", {
|
|
@@ -10837,20 +10900,20 @@ const PasswordInput = forwardRef(
|
|
|
10837
10900
|
(_a = props.onBlur) == null ? void 0 : _a.call(props, e);
|
|
10838
10901
|
}
|
|
10839
10902
|
})), info ? /* @__PURE__ */ React.createElement("div", {
|
|
10840
|
-
className:
|
|
10903
|
+
className: clsx(bem$u(props.errorInfo ? "error-info" : "info"))
|
|
10841
10904
|
}, info) : null);
|
|
10842
10905
|
}
|
|
10843
10906
|
);
|
|
10844
10907
|
var index$k = "";
|
|
10845
10908
|
const CollapseIcon = ({ bem: bem2 }) => /* @__PURE__ */ React.createElement("svg", {
|
|
10846
|
-
className:
|
|
10909
|
+
className: clsx(bem2("collapse-icon")),
|
|
10847
10910
|
viewBox: "0 0 30 24"
|
|
10848
10911
|
}, /* @__PURE__ */ React.createElement("path", {
|
|
10849
10912
|
d: "M25.877 12.843h-1.502c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.5c.187 0 .187 0 .187-.188v-1.511c0-.19 0-.191-.185-.191zM17.999 10.2c0 .188 0 .188.188.188h1.687c.188 0 .188 0 .188-.188V8.688c0-.187.004-.187-.186-.19h-1.69c-.187 0-.187 0-.187.19V10.2zm2.25-3.967h1.5c.188 0 .188 0 .188-.188v-1.7c0-.19 0-.19-.188-.19h-1.5c-.189 0-.189 0-.189.19v1.7c0 .188 0 .188.19.188zm2.063 4.157h3.563c.187 0 .187 0 .187-.189V4.346c0-.19.004-.19-.185-.19h-1.69c-.187 0-.187 0-.187.188v4.155h-1.688c-.187 0-.187 0-.187.189v1.514c0 .19 0 .19.187.19zM14.812 24l2.812-3.4H12l2.813 3.4zm-9-11.157H4.31c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.502c.187 0 .187 0 .187-.188v-1.511c0-.19.01-.191-.189-.191zm15.937 0H8.25c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h13.5c.188 0 .188 0 .188-.188v-1.511c0-.19 0-.191-.188-.191zm-11.438-2.454h1.5c.188 0 .188 0 .188-.188V8.688c0-.187 0-.187-.188-.189h-1.5c-.187 0-.187 0-.187.189V10.2c0 .188 0 .188.187.188zM27.94 0c.563 0 .917.21 1.313.567.518.466.748.757.748 1.51v14.92c0 .567-.188 1.134-.562 1.512-.376.378-.938.566-1.313.566H2.063c-.563 0-.938-.188-1.313-.566-.562-.378-.75-.945-.75-1.511V2.078C0 1.51.188.944.562.567.938.189 1.5 0 1.875 0zm-.062 2H2v14.92h25.877V2zM5.81 4.157c.19 0 .19 0 .19.189v1.762c-.003.126-.024.126-.188.126H4.249c-.126-.003-.126-.023-.126-.188v-1.7c-.187-.19 0-.19.188-.19zm10.5 2.077h1.503c.187 0 .187 0 .187-.188v-1.7c0-.19 0-.19-.187-.19h-1.502c-.188 0-.188.001-.188.19v1.7c0 .188 0 .188.188.188zM7.875 8.5c.187 0 .187.002.187.189V10.2c0 .188 0 .188-.187.188H4.249c-.126-.002-.126-.023-.126-.188V8.625c.003-.126.024-.126.188-.126zm7.875 0c.19.002.19.002.19.189v1.575c-.003.126-.024.126-.19.126h-1.563c-.126-.002-.126-.023-.126-.188V8.625c.002-.126.023-.126.189-.126zm-6-4.342c.187 0 .187 0 .187.189v1.7c0 .188 0 .188-.187.188H8.187c-.126-.003-.126-.023-.126-.188V4.283c.003-.126.024-.126.188-.126zm3.94 0c.185 0 .372 0 .372.189v1.762c-.002.126-.023.126-.187.126h-1.75C12 6.231 12 6.211 12 6.046v-1.7c0-.19.187-.19.187-.19z",
|
|
10850
10913
|
fill: "currentColor"
|
|
10851
10914
|
}));
|
|
10852
10915
|
const DeleteIcon = ({ bem: bem2 }) => /* @__PURE__ */ React.createElement("svg", {
|
|
10853
|
-
className:
|
|
10916
|
+
className: clsx(bem2("delete-icon")),
|
|
10854
10917
|
viewBox: "0 0 32 22"
|
|
10855
10918
|
}, /* @__PURE__ */ React.createElement("path", {
|
|
10856
10919
|
d: "M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z",
|
|
@@ -10888,7 +10951,7 @@ const NumberKeyboardKey = ({
|
|
|
10888
10951
|
const renderContent = () => {
|
|
10889
10952
|
if (props.loading) {
|
|
10890
10953
|
return /* @__PURE__ */ React.createElement(Loading, {
|
|
10891
|
-
className:
|
|
10954
|
+
className: clsx(bem$t("loading-icon"))
|
|
10892
10955
|
});
|
|
10893
10956
|
}
|
|
10894
10957
|
const text = children || props.text;
|
|
@@ -10907,7 +10970,7 @@ const NumberKeyboardKey = ({
|
|
|
10907
10970
|
};
|
|
10908
10971
|
return /* @__PURE__ */ React.createElement("div", {
|
|
10909
10972
|
style,
|
|
10910
|
-
className:
|
|
10973
|
+
className: clsx(className, bem$t("wrapper", { wider: props.wider })),
|
|
10911
10974
|
onTouchStart,
|
|
10912
10975
|
onTouchMove,
|
|
10913
10976
|
onTouchEnd,
|
|
@@ -10915,7 +10978,7 @@ const NumberKeyboardKey = ({
|
|
|
10915
10978
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
10916
10979
|
role: "button",
|
|
10917
10980
|
tabIndex: 0,
|
|
10918
|
-
className:
|
|
10981
|
+
className: clsx(
|
|
10919
10982
|
bem$t([
|
|
10920
10983
|
props.color,
|
|
10921
10984
|
{
|
|
@@ -11024,12 +11087,12 @@ const NumberKeyboard = ({
|
|
|
11024
11087
|
return null;
|
|
11025
11088
|
}
|
|
11026
11089
|
return /* @__PURE__ */ React.createElement("div", {
|
|
11027
|
-
className:
|
|
11090
|
+
className: clsx(bem$s("header"))
|
|
11028
11091
|
}, title && /* @__PURE__ */ React.createElement("h2", {
|
|
11029
|
-
className:
|
|
11092
|
+
className: clsx(bem$s("title"))
|
|
11030
11093
|
}, title), showClose && /* @__PURE__ */ React.createElement("button", {
|
|
11031
11094
|
type: "button",
|
|
11032
|
-
className:
|
|
11095
|
+
className: clsx(bem$s("close")),
|
|
11033
11096
|
onClick: onClose
|
|
11034
11097
|
}, closeButtonText));
|
|
11035
11098
|
};
|
|
@@ -11058,7 +11121,7 @@ const NumberKeyboard = ({
|
|
|
11058
11121
|
const renderSidebar = () => {
|
|
11059
11122
|
if (props.theme === "custom") {
|
|
11060
11123
|
return /* @__PURE__ */ React.createElement("div", {
|
|
11061
|
-
className:
|
|
11124
|
+
className: clsx(bem$s("sidebar"))
|
|
11062
11125
|
}, props.showDeleteKey && /* @__PURE__ */ React.createElement(NumberKeyboardKey, {
|
|
11063
11126
|
large: true,
|
|
11064
11127
|
text: props.deleteButtonText,
|
|
@@ -11094,7 +11157,7 @@ const NumberKeyboard = ({
|
|
|
11094
11157
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
11095
11158
|
ref: root2,
|
|
11096
11159
|
style: { ...style, ...getZIndexStyle(props.zIndex) },
|
|
11097
|
-
className:
|
|
11160
|
+
className: clsx(
|
|
11098
11161
|
className,
|
|
11099
11162
|
bem$s({
|
|
11100
11163
|
unfit: !props.safeAreaInsetBottom,
|
|
@@ -11103,9 +11166,9 @@ const NumberKeyboard = ({
|
|
|
11103
11166
|
),
|
|
11104
11167
|
onTouchStart: stopPropagation
|
|
11105
11168
|
}, Title2, /* @__PURE__ */ React.createElement("div", {
|
|
11106
|
-
className:
|
|
11169
|
+
className: clsx(bem$s("body"))
|
|
11107
11170
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
11108
|
-
className:
|
|
11171
|
+
className: clsx(bem$s("keys"))
|
|
11109
11172
|
}, renderKeys()), renderSidebar())));
|
|
11110
11173
|
return Content;
|
|
11111
11174
|
};
|
|
@@ -11308,7 +11371,7 @@ const Slider = (p) => {
|
|
|
11308
11371
|
return props.button;
|
|
11309
11372
|
}
|
|
11310
11373
|
return /* @__PURE__ */ React.createElement("div", {
|
|
11311
|
-
className:
|
|
11374
|
+
className: clsx(bem$r("button")),
|
|
11312
11375
|
style: getSizeStyle(props.buttonSize)
|
|
11313
11376
|
});
|
|
11314
11377
|
};
|
|
@@ -11318,7 +11381,7 @@ const Slider = (p) => {
|
|
|
11318
11381
|
ref: buttounRef,
|
|
11319
11382
|
key: index2,
|
|
11320
11383
|
role: "slider",
|
|
11321
|
-
className:
|
|
11384
|
+
className: clsx(getButtonClassName(index2)),
|
|
11322
11385
|
tabIndex: props.disabled || props.readOnly ? -1 : 0,
|
|
11323
11386
|
"aria-valuemin": props.min,
|
|
11324
11387
|
"aria-valuenow": value,
|
|
@@ -11356,7 +11419,7 @@ const Slider = (p) => {
|
|
|
11356
11419
|
return /* @__PURE__ */ React.createElement("div", {
|
|
11357
11420
|
ref: root2,
|
|
11358
11421
|
style: wrapperStyle,
|
|
11359
|
-
className:
|
|
11422
|
+
className: clsx(
|
|
11360
11423
|
props.className,
|
|
11361
11424
|
bem$r({
|
|
11362
11425
|
vertical: props.vertical,
|
|
@@ -11365,7 +11428,7 @@ const Slider = (p) => {
|
|
|
11365
11428
|
),
|
|
11366
11429
|
onClick
|
|
11367
11430
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
11368
|
-
className:
|
|
11431
|
+
className: clsx(bem$r("bar")),
|
|
11369
11432
|
style: barStyle
|
|
11370
11433
|
}, props.range ? [renderButton(setButtonRef1, 0), renderButton(setButtonRef2, 1)] : renderButton(setButtonRef1)));
|
|
11371
11434
|
};
|
|
@@ -11545,19 +11608,19 @@ const Stepper = React.forwardRef((p, ref) => {
|
|
|
11545
11608
|
blur: () => inputRef.current.blur()
|
|
11546
11609
|
}));
|
|
11547
11610
|
return /* @__PURE__ */ React.createElement("div", {
|
|
11548
|
-
className:
|
|
11611
|
+
className: clsx(props.className, bem$q([props.theme])),
|
|
11549
11612
|
style: props.style
|
|
11550
11613
|
}, props.showMinus && /* @__PURE__ */ React.createElement("button", {
|
|
11551
11614
|
type: "button",
|
|
11552
11615
|
"aria-label": "minus",
|
|
11553
11616
|
style: buttonStyle,
|
|
11554
|
-
className:
|
|
11617
|
+
className: clsx(bem$q("minus", { disabled: minusDisabled })),
|
|
11555
11618
|
...createListeners("minus")
|
|
11556
11619
|
}), props.showInput && /* @__PURE__ */ React.createElement("input", {
|
|
11557
11620
|
ref: inputRef,
|
|
11558
11621
|
type: props.integer ? "tel" : "text",
|
|
11559
11622
|
role: "spinbutton",
|
|
11560
|
-
className:
|
|
11623
|
+
className: clsx(bem$q("input")),
|
|
11561
11624
|
value: inputValue,
|
|
11562
11625
|
style: inputStyle,
|
|
11563
11626
|
disabled: props.disabled || props.disableInput,
|
|
@@ -11576,7 +11639,7 @@ const Stepper = React.forwardRef((p, ref) => {
|
|
|
11576
11639
|
type: "button",
|
|
11577
11640
|
"aria-label": "add",
|
|
11578
11641
|
style: buttonStyle,
|
|
11579
|
-
className:
|
|
11642
|
+
className: clsx(bem$q("plus", { disabled: plusDisabled })),
|
|
11580
11643
|
...createListeners("plus")
|
|
11581
11644
|
}));
|
|
11582
11645
|
});
|
|
@@ -11629,7 +11692,7 @@ const Swtich = (p) => {
|
|
|
11629
11692
|
if (props.loading) {
|
|
11630
11693
|
const color = isChecked ? props.activeColor : props.inactiveColor;
|
|
11631
11694
|
return /* @__PURE__ */ React.createElement(Loading, {
|
|
11632
|
-
className:
|
|
11695
|
+
className: clsx(bem$p("loading")),
|
|
11633
11696
|
color
|
|
11634
11697
|
});
|
|
11635
11698
|
}
|
|
@@ -11638,7 +11701,7 @@ const Swtich = (p) => {
|
|
|
11638
11701
|
return /* @__PURE__ */ React.createElement("div", {
|
|
11639
11702
|
role: "switch",
|
|
11640
11703
|
tabIndex: 0,
|
|
11641
|
-
className:
|
|
11704
|
+
className: clsx(
|
|
11642
11705
|
props.className,
|
|
11643
11706
|
bem$p({
|
|
11644
11707
|
on: isChecked,
|
|
@@ -11650,7 +11713,7 @@ const Swtich = (p) => {
|
|
|
11650
11713
|
"aria-checked": isChecked,
|
|
11651
11714
|
onClick
|
|
11652
11715
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
11653
|
-
className:
|
|
11716
|
+
className: clsx(bem$p("node"))
|
|
11654
11717
|
}, renderLoading()));
|
|
11655
11718
|
};
|
|
11656
11719
|
var index$h = "";
|
|
@@ -11740,14 +11803,14 @@ const UploaderPreviewItem = (props) => {
|
|
|
11740
11803
|
const renderMask = () => {
|
|
11741
11804
|
if (status === "failed" || status === "pending") {
|
|
11742
11805
|
const MaskIcon = status === "failed" ? /* @__PURE__ */ React.createElement(Close, {
|
|
11743
|
-
className:
|
|
11806
|
+
className: clsx(bem$o("mask-icon"))
|
|
11744
11807
|
}) : /* @__PURE__ */ React.createElement(Loading, {
|
|
11745
|
-
className:
|
|
11808
|
+
className: clsx(bem$o("loading"))
|
|
11746
11809
|
});
|
|
11747
11810
|
return /* @__PURE__ */ React.createElement("div", {
|
|
11748
|
-
className:
|
|
11811
|
+
className: clsx(bem$o("mask"))
|
|
11749
11812
|
}, MaskIcon, statusTextRender && /* @__PURE__ */ React.createElement("div", {
|
|
11750
|
-
className:
|
|
11813
|
+
className: clsx(bem$o("mask-message"))
|
|
11751
11814
|
}, statusTextRender(status)));
|
|
11752
11815
|
}
|
|
11753
11816
|
return null;
|
|
@@ -11755,10 +11818,10 @@ const UploaderPreviewItem = (props) => {
|
|
|
11755
11818
|
const renderDeleteIcon = () => {
|
|
11756
11819
|
if (props.deletable) {
|
|
11757
11820
|
return props.deleteRender ? props.deleteRender(props.onDelete) : /* @__PURE__ */ React.createElement("div", {
|
|
11758
|
-
className:
|
|
11821
|
+
className: clsx(bem$o("preview-delete")),
|
|
11759
11822
|
onClick: props.onDelete
|
|
11760
11823
|
}, /* @__PURE__ */ React.createElement(Cross, {
|
|
11761
|
-
className:
|
|
11824
|
+
className: clsx(bem$o("preview-delete-icon"))
|
|
11762
11825
|
}));
|
|
11763
11826
|
}
|
|
11764
11827
|
return null;
|
|
@@ -11772,23 +11835,23 @@ const UploaderPreviewItem = (props) => {
|
|
|
11772
11835
|
return /* @__PURE__ */ React.createElement(ImageNamespace, {
|
|
11773
11836
|
fit: props.imageFit,
|
|
11774
11837
|
src: imageSrc,
|
|
11775
|
-
className:
|
|
11838
|
+
className: clsx(bem$o("preview-image")),
|
|
11776
11839
|
width: props.previewSize,
|
|
11777
11840
|
height: props.previewSize,
|
|
11778
11841
|
onClick: onPreview
|
|
11779
11842
|
}, renderCover());
|
|
11780
11843
|
}
|
|
11781
11844
|
return /* @__PURE__ */ React.createElement("div", {
|
|
11782
|
-
className:
|
|
11845
|
+
className: clsx(bem$o("file")),
|
|
11783
11846
|
style: getSizeStyle(props.previewSize)
|
|
11784
11847
|
}, /* @__PURE__ */ React.createElement(Description, {
|
|
11785
|
-
className:
|
|
11848
|
+
className: clsx(bem$o("file-icon"))
|
|
11786
11849
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
11787
|
-
className:
|
|
11850
|
+
className: clsx(bem$o("file-name"), "rv-ellipsis")
|
|
11788
11851
|
}, file ? file.name : url), renderCover());
|
|
11789
11852
|
};
|
|
11790
11853
|
return /* @__PURE__ */ React.createElement("div", {
|
|
11791
|
-
className:
|
|
11854
|
+
className: clsx(bem$o("preview")),
|
|
11792
11855
|
onClick: props.onClick
|
|
11793
11856
|
}, renderPreview(), renderMask(), renderDeleteIcon());
|
|
11794
11857
|
};
|
|
@@ -12001,7 +12064,7 @@ const Uploader = forwardRef((p, ref) => {
|
|
|
12001
12064
|
const renderUploadIcon = () => {
|
|
12002
12065
|
if (props.uploadIcon) {
|
|
12003
12066
|
return React.cloneElement(props.uploadIcon, {
|
|
12004
|
-
className:
|
|
12067
|
+
className: clsx(bem$n("upload-icon"))
|
|
12005
12068
|
});
|
|
12006
12069
|
}
|
|
12007
12070
|
return null;
|
|
@@ -12011,7 +12074,7 @@ const Uploader = forwardRef((p, ref) => {
|
|
|
12011
12074
|
const Input2 = props.readOnly ? null : /* @__PURE__ */ React.createElement("input", {
|
|
12012
12075
|
ref: inputRef,
|
|
12013
12076
|
type: "file",
|
|
12014
|
-
className:
|
|
12077
|
+
className: clsx(bem$n("input")),
|
|
12015
12078
|
accept: props.accept,
|
|
12016
12079
|
capture: props.capture,
|
|
12017
12080
|
multiple: props.multiple,
|
|
@@ -12020,16 +12083,16 @@ const Uploader = forwardRef((p, ref) => {
|
|
|
12020
12083
|
});
|
|
12021
12084
|
if (props.children) {
|
|
12022
12085
|
return /* @__PURE__ */ React.createElement("div", {
|
|
12023
|
-
className:
|
|
12086
|
+
className: clsx(bem$n("input-wrapper")),
|
|
12024
12087
|
onClick: props.onClickUpload
|
|
12025
12088
|
}, props.children, Input2);
|
|
12026
12089
|
}
|
|
12027
12090
|
return /* @__PURE__ */ React.createElement("div", {
|
|
12028
|
-
className:
|
|
12091
|
+
className: clsx(bem$n("upload", { readOnly: props.readOnly })),
|
|
12029
12092
|
style: getSizeStyle(props.previewSize),
|
|
12030
12093
|
onClick: props.onClickUpload
|
|
12031
12094
|
}, renderUploadIcon(), props.uploadText && /* @__PURE__ */ React.createElement("span", {
|
|
12032
|
-
className:
|
|
12095
|
+
className: clsx(bem$n("upload-text"))
|
|
12033
12096
|
}, props.uploadText), Input2);
|
|
12034
12097
|
}
|
|
12035
12098
|
return null;
|
|
@@ -12044,9 +12107,9 @@ const Uploader = forwardRef((p, ref) => {
|
|
|
12044
12107
|
closeImagePreview
|
|
12045
12108
|
}));
|
|
12046
12109
|
return /* @__PURE__ */ React.createElement("div", {
|
|
12047
|
-
className:
|
|
12110
|
+
className: clsx(bem$n())
|
|
12048
12111
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
12049
|
-
className:
|
|
12112
|
+
className: clsx(bem$n("wrapper", { disabled: props.disabled }))
|
|
12050
12113
|
}, renderPreviewList(), renderUpload()));
|
|
12051
12114
|
});
|
|
12052
12115
|
var index$f = "";
|
|
@@ -12072,7 +12135,7 @@ const Progress = (p) => {
|
|
|
12072
12135
|
};
|
|
12073
12136
|
return /* @__PURE__ */ React.createElement("span", {
|
|
12074
12137
|
style,
|
|
12075
|
-
className:
|
|
12138
|
+
className: clsx(bem$m("pivot"))
|
|
12076
12139
|
}, text);
|
|
12077
12140
|
}
|
|
12078
12141
|
return null;
|
|
@@ -12088,10 +12151,10 @@ const Progress = (p) => {
|
|
|
12088
12151
|
transform: `scaleX(${+percentage / 100})`
|
|
12089
12152
|
};
|
|
12090
12153
|
return /* @__PURE__ */ React.createElement("div", {
|
|
12091
|
-
className:
|
|
12154
|
+
className: clsx(bem$m(), props.className),
|
|
12092
12155
|
style: rootStyle
|
|
12093
12156
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
12094
|
-
className:
|
|
12157
|
+
className: clsx(bem$m("portion")),
|
|
12095
12158
|
style: portionStyle
|
|
12096
12159
|
}), renderPivot());
|
|
12097
12160
|
};
|
|
@@ -12184,7 +12247,7 @@ const Circle = (p) => {
|
|
|
12184
12247
|
return /* @__PURE__ */ React.createElement("path", {
|
|
12185
12248
|
d: path,
|
|
12186
12249
|
style,
|
|
12187
|
-
className:
|
|
12250
|
+
className: clsx(bem$l("hover")),
|
|
12188
12251
|
stroke: color
|
|
12189
12252
|
});
|
|
12190
12253
|
};
|
|
@@ -12195,7 +12258,7 @@ const Circle = (p) => {
|
|
|
12195
12258
|
strokeWidth: `${props.strokeWidth}px`
|
|
12196
12259
|
};
|
|
12197
12260
|
return /* @__PURE__ */ React.createElement("path", {
|
|
12198
|
-
className:
|
|
12261
|
+
className: clsx(bem$l("layer")),
|
|
12199
12262
|
style,
|
|
12200
12263
|
d: path
|
|
12201
12264
|
});
|
|
@@ -12221,13 +12284,13 @@ const Circle = (p) => {
|
|
|
12221
12284
|
const renderText = () => {
|
|
12222
12285
|
if (props.text) {
|
|
12223
12286
|
return /* @__PURE__ */ React.createElement("div", {
|
|
12224
|
-
className:
|
|
12287
|
+
className: clsx(bem$l("text"))
|
|
12225
12288
|
}, props.text);
|
|
12226
12289
|
}
|
|
12227
12290
|
return props.children;
|
|
12228
12291
|
};
|
|
12229
12292
|
return /* @__PURE__ */ React.createElement("div", {
|
|
12230
|
-
className:
|
|
12293
|
+
className: clsx(bem$l(), props.className),
|
|
12231
12294
|
style: { ...props.style, ...getSizeStyle(props.size) }
|
|
12232
12295
|
}, /* @__PURE__ */ React.createElement("svg", {
|
|
12233
12296
|
viewBox: `0 0 ${viewBoxSize} ${viewBoxSize}`,
|
|
@@ -12303,7 +12366,7 @@ const Pagination = (p) => {
|
|
|
12303
12366
|
const renderDesc = () => {
|
|
12304
12367
|
if (props.mode !== "multi") {
|
|
12305
12368
|
return /* @__PURE__ */ React.createElement("li", {
|
|
12306
|
-
className:
|
|
12369
|
+
className: clsx(bem$k("page-desc"))
|
|
12307
12370
|
}, props.pageDesc ? props.pageDesc : `${props.value}/${count}`);
|
|
12308
12371
|
}
|
|
12309
12372
|
return null;
|
|
@@ -12312,9 +12375,9 @@ const Pagination = (p) => {
|
|
|
12312
12375
|
const onSelect = (value2) => () => select(value2, true);
|
|
12313
12376
|
const { value } = props;
|
|
12314
12377
|
return /* @__PURE__ */ React.createElement("ul", {
|
|
12315
|
-
className:
|
|
12378
|
+
className: clsx(bem$k({ simple }))
|
|
12316
12379
|
}, /* @__PURE__ */ React.createElement("li", {
|
|
12317
|
-
className:
|
|
12380
|
+
className: clsx(
|
|
12318
12381
|
bem$k("item", { disabled: value === 1 }),
|
|
12319
12382
|
bem$k("prev"),
|
|
12320
12383
|
BORDER
|
|
@@ -12322,14 +12385,14 @@ const Pagination = (p) => {
|
|
|
12322
12385
|
onClick: onSelect(value - 1)
|
|
12323
12386
|
}, props.prevText || locale.vanPagination.prev), pages.map((page, index2) => /* @__PURE__ */ React.createElement("li", {
|
|
12324
12387
|
key: index2,
|
|
12325
|
-
className:
|
|
12388
|
+
className: clsx(
|
|
12326
12389
|
bem$k("item", { active: page.active }),
|
|
12327
12390
|
bem$k("page"),
|
|
12328
12391
|
BORDER
|
|
12329
12392
|
),
|
|
12330
12393
|
onClick: onSelect(page.number)
|
|
12331
12394
|
}, props.pageRender ? props.pageRender(page) : page.text)), renderDesc(), /* @__PURE__ */ React.createElement("li", {
|
|
12332
|
-
className:
|
|
12395
|
+
className: clsx(
|
|
12333
12396
|
bem$k("item", { disabled: value === count }),
|
|
12334
12397
|
bem$k("next"),
|
|
12335
12398
|
BORDER
|
|
@@ -12354,7 +12417,7 @@ const Tabbar$1 = (p) => {
|
|
|
12354
12417
|
const height = useHeight(root2);
|
|
12355
12418
|
const renderPlaceholder = (renderContent) => {
|
|
12356
12419
|
return /* @__PURE__ */ React.createElement("div", {
|
|
12357
|
-
className:
|
|
12420
|
+
className: clsx(bem$j("placeholder")),
|
|
12358
12421
|
style: { height }
|
|
12359
12422
|
}, renderContent());
|
|
12360
12423
|
};
|
|
@@ -12376,7 +12439,7 @@ const Tabbar$1 = (p) => {
|
|
|
12376
12439
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
12377
12440
|
ref: root2,
|
|
12378
12441
|
style: { ...props.style, ...getZIndexStyle(zIndex) },
|
|
12379
|
-
className:
|
|
12442
|
+
className: clsx(props.className, bem$j({ fixed }), {
|
|
12380
12443
|
[BORDER_TOP_BOTTOM]: border,
|
|
12381
12444
|
"rv-safe-area-bottom": enableSafeArea()
|
|
12382
12445
|
})
|
|
@@ -12416,14 +12479,14 @@ const TabbarItem = (props) => {
|
|
|
12416
12479
|
};
|
|
12417
12480
|
const color = active ? activeColor : inactiveColor;
|
|
12418
12481
|
return /* @__PURE__ */ React.createElement("div", {
|
|
12419
|
-
className:
|
|
12482
|
+
className: clsx(props.className, bem$i({ active })),
|
|
12420
12483
|
style: { ...props.style, color },
|
|
12421
12484
|
onClick
|
|
12422
12485
|
}, /* @__PURE__ */ React.createElement(Badge, {
|
|
12423
12486
|
...props.badge,
|
|
12424
|
-
className:
|
|
12487
|
+
className: clsx(bem$i("icon"))
|
|
12425
12488
|
}, renderIcon()), /* @__PURE__ */ React.createElement("div", {
|
|
12426
|
-
className:
|
|
12489
|
+
className: clsx(bem$i("text"))
|
|
12427
12490
|
}, typeof props.children === "function" ? props.children(active) : props.children));
|
|
12428
12491
|
};
|
|
12429
12492
|
const Tabbar = Object.assign(Tabbar$1, { Item: TabbarItem });
|
|
@@ -12503,7 +12566,7 @@ const Form$1 = forwardRef((props, ref) => {
|
|
|
12503
12566
|
...formProps
|
|
12504
12567
|
} = props;
|
|
12505
12568
|
return /* @__PURE__ */ React.createElement(RcForm, {
|
|
12506
|
-
className:
|
|
12569
|
+
className: clsx(bem$h(), className),
|
|
12507
12570
|
style,
|
|
12508
12571
|
ref,
|
|
12509
12572
|
...formProps
|
|
@@ -12518,7 +12581,7 @@ const Form$1 = forwardRef((props, ref) => {
|
|
|
12518
12581
|
labelAlign
|
|
12519
12582
|
}
|
|
12520
12583
|
}, children), footer && /* @__PURE__ */ React.createElement("div", {
|
|
12521
|
-
className:
|
|
12584
|
+
className: clsx(bem$h("footer"))
|
|
12522
12585
|
}, footer));
|
|
12523
12586
|
});
|
|
12524
12587
|
function shouldConstruct(Component) {
|
|
@@ -12567,7 +12630,7 @@ const FormItemLayout = (props) => {
|
|
|
12567
12630
|
const errorMessage = showValidateMessage && error ? meta.errors[0] : null;
|
|
12568
12631
|
const attrs = {
|
|
12569
12632
|
...fieldProps,
|
|
12570
|
-
className:
|
|
12633
|
+
className: clsx(bem$g({ vertical: layout === "vertical" }), props.className),
|
|
12571
12634
|
colon,
|
|
12572
12635
|
error: showValidateMessage ? false : error,
|
|
12573
12636
|
errorMessage,
|
|
@@ -12809,7 +12872,7 @@ const Area = forwardRef((p, ref) => {
|
|
|
12809
12872
|
return /* @__PURE__ */ React.createElement(Picker, {
|
|
12810
12873
|
ref,
|
|
12811
12874
|
style: props.style,
|
|
12812
|
-
className:
|
|
12875
|
+
className: clsx(bem$f(), props.className),
|
|
12813
12876
|
columns,
|
|
12814
12877
|
...pick(props, INHERIT_PROPS)
|
|
12815
12878
|
});
|
|
@@ -12818,19 +12881,19 @@ var index$a = "";
|
|
|
12818
12881
|
const CardHeader = (props) => {
|
|
12819
12882
|
const [bem2] = createNamespace("card-header");
|
|
12820
12883
|
return /* @__PURE__ */ React.createElement("div", {
|
|
12821
|
-
className:
|
|
12884
|
+
className: clsx(props.className, bem2(), { [BORDER_BOTTOM]: props.border }),
|
|
12822
12885
|
style: props.style,
|
|
12823
12886
|
onClick: props.onClick
|
|
12824
12887
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
12825
|
-
className:
|
|
12888
|
+
className: clsx(bem2("content"))
|
|
12826
12889
|
}, props.children), props.extra && /* @__PURE__ */ React.createElement("div", {
|
|
12827
|
-
className:
|
|
12890
|
+
className: clsx(bem2("extra"))
|
|
12828
12891
|
}, props.extra));
|
|
12829
12892
|
};
|
|
12830
12893
|
const CardBody = (props) => {
|
|
12831
12894
|
const [bem2] = createNamespace("card-body");
|
|
12832
12895
|
return /* @__PURE__ */ React.createElement("div", {
|
|
12833
|
-
className:
|
|
12896
|
+
className: clsx(props.className, bem2()),
|
|
12834
12897
|
style: props.style,
|
|
12835
12898
|
onClick: props.onClick
|
|
12836
12899
|
}, props.children);
|
|
@@ -12838,7 +12901,7 @@ const CardBody = (props) => {
|
|
|
12838
12901
|
const CardFooter = (props) => {
|
|
12839
12902
|
const [bem2] = createNamespace("card-footer");
|
|
12840
12903
|
return /* @__PURE__ */ React.createElement("div", {
|
|
12841
|
-
className:
|
|
12904
|
+
className: clsx(props.className, bem2({ compact: props.compact }), {
|
|
12842
12905
|
[BORDER_TOP]: props.border
|
|
12843
12906
|
}),
|
|
12844
12907
|
style: props.style,
|
|
@@ -12848,7 +12911,7 @@ const CardFooter = (props) => {
|
|
|
12848
12911
|
const CardCover = (props) => {
|
|
12849
12912
|
const [bem2] = createNamespace("card-cover");
|
|
12850
12913
|
return /* @__PURE__ */ React.createElement("div", {
|
|
12851
|
-
className:
|
|
12914
|
+
className: clsx(props.className, bem2()),
|
|
12852
12915
|
style: props.style,
|
|
12853
12916
|
onClick: props.onClick
|
|
12854
12917
|
}, props.children);
|
|
@@ -12857,7 +12920,7 @@ const Card$1 = (props) => {
|
|
|
12857
12920
|
const [bem2] = createNamespace("card");
|
|
12858
12921
|
const { className, style, round, border, children } = props;
|
|
12859
12922
|
return /* @__PURE__ */ React.createElement("div", {
|
|
12860
|
-
className:
|
|
12923
|
+
className: clsx(bem2({ round, border }), className),
|
|
12861
12924
|
style,
|
|
12862
12925
|
onClick: props.onClick
|
|
12863
12926
|
}, children);
|
|
@@ -12881,7 +12944,7 @@ const ProductCard = (p) => {
|
|
|
12881
12944
|
const renderTitle = () => {
|
|
12882
12945
|
if (props.title) {
|
|
12883
12946
|
return /* @__PURE__ */ React.createElement("div", {
|
|
12884
|
-
className:
|
|
12947
|
+
className: clsx(bem$e("title"), "rv-multi-ellipsis--l2")
|
|
12885
12948
|
}, props.title);
|
|
12886
12949
|
}
|
|
12887
12950
|
return null;
|
|
@@ -12889,7 +12952,7 @@ const ProductCard = (p) => {
|
|
|
12889
12952
|
const renderThumbTag = () => {
|
|
12890
12953
|
if (props.tag) {
|
|
12891
12954
|
return /* @__PURE__ */ React.createElement("div", {
|
|
12892
|
-
className:
|
|
12955
|
+
className: clsx(bem$e("tag"))
|
|
12893
12956
|
}, isStringOrNumber(props.tag) ? /* @__PURE__ */ React.createElement(Tag, {
|
|
12894
12957
|
mark: true,
|
|
12895
12958
|
type: "danger"
|
|
@@ -12915,7 +12978,7 @@ const ProductCard = (p) => {
|
|
|
12915
12978
|
if (props.thumb) {
|
|
12916
12979
|
return /* @__PURE__ */ React.createElement("a", {
|
|
12917
12980
|
href: props.thumbLink,
|
|
12918
|
-
className:
|
|
12981
|
+
className: clsx(bem$e("thumb")),
|
|
12919
12982
|
onClick: props.onClickThumb
|
|
12920
12983
|
}, renderThumbImage(), renderThumbTag());
|
|
12921
12984
|
}
|
|
@@ -12924,7 +12987,7 @@ const ProductCard = (p) => {
|
|
|
12924
12987
|
const renderDesc = () => {
|
|
12925
12988
|
if (props.desc) {
|
|
12926
12989
|
return /* @__PURE__ */ React.createElement("div", {
|
|
12927
|
-
className:
|
|
12990
|
+
className: clsx(bem$e("desc"), "rv-ellipsis")
|
|
12928
12991
|
}, props.desc);
|
|
12929
12992
|
}
|
|
12930
12993
|
return null;
|
|
@@ -12933,18 +12996,18 @@ const ProductCard = (p) => {
|
|
|
12933
12996
|
if (isStringOrNumber(props.price)) {
|
|
12934
12997
|
const priceArr = props.price.toString().split(".");
|
|
12935
12998
|
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("span", {
|
|
12936
|
-
className:
|
|
12999
|
+
className: clsx(bem$e("price-currency"))
|
|
12937
13000
|
}, props.currency), /* @__PURE__ */ React.createElement("span", {
|
|
12938
|
-
className:
|
|
13001
|
+
className: clsx(bem$e("price-integer"))
|
|
12939
13002
|
}, priceArr[0]), props.decimal && /* @__PURE__ */ React.createElement(React.Fragment, null, ".", /* @__PURE__ */ React.createElement("span", {
|
|
12940
|
-
className:
|
|
13003
|
+
className: clsx(bem$e("price-decimal"))
|
|
12941
13004
|
}, priceArr[1] || "00")));
|
|
12942
13005
|
}
|
|
12943
13006
|
return props.price;
|
|
12944
13007
|
};
|
|
12945
13008
|
const renderOriginalPrice = () => {
|
|
12946
13009
|
return /* @__PURE__ */ React.createElement("div", {
|
|
12947
|
-
className:
|
|
13010
|
+
className: clsx(bem$e("origin-price"))
|
|
12948
13011
|
}, isStringOrNumber(props.originPrice) ? `${props.currency} ${props.originPrice}` : props.originPrice);
|
|
12949
13012
|
};
|
|
12950
13013
|
const showNum = isDef(props.num);
|
|
@@ -12952,26 +13015,26 @@ const ProductCard = (p) => {
|
|
|
12952
13015
|
const showOriginPrice = isDef(props.originPrice);
|
|
12953
13016
|
const showBottom = showNum || showPrice || showOriginPrice || props.bottom;
|
|
12954
13017
|
const Price = showPrice && /* @__PURE__ */ React.createElement("div", {
|
|
12955
|
-
className:
|
|
13018
|
+
className: clsx(bem$e("price"))
|
|
12956
13019
|
}, renderPriceText());
|
|
12957
13020
|
const OriginPrice = showOriginPrice && renderOriginalPrice();
|
|
12958
13021
|
const Num = showNum && /* @__PURE__ */ React.createElement("div", {
|
|
12959
|
-
className:
|
|
13022
|
+
className: clsx(bem$e("num"))
|
|
12960
13023
|
}, isStringOrNumber(props.num) ? `x${props.num}` : props.num);
|
|
12961
13024
|
const Footer = props.footer && /* @__PURE__ */ React.createElement("div", {
|
|
12962
|
-
className:
|
|
13025
|
+
className: clsx(bem$e("footer"))
|
|
12963
13026
|
}, props.footer);
|
|
12964
13027
|
const Bottom = showBottom && /* @__PURE__ */ React.createElement("div", {
|
|
12965
|
-
className:
|
|
13028
|
+
className: clsx(bem$e("bottom"))
|
|
12966
13029
|
}, props.priceTop, Price, OriginPrice, Num, props.bottom);
|
|
12967
13030
|
return /* @__PURE__ */ React.createElement("div", {
|
|
12968
|
-
className:
|
|
13031
|
+
className: clsx(bem$e(), props.className),
|
|
12969
13032
|
style: props.style,
|
|
12970
13033
|
onClick: props.onClick
|
|
12971
13034
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
12972
|
-
className:
|
|
13035
|
+
className: clsx(bem$e("header"))
|
|
12973
13036
|
}, renderThumb(), /* @__PURE__ */ React.createElement("div", {
|
|
12974
|
-
className:
|
|
13037
|
+
className: clsx(bem$e("content", { centered: props.centered }))
|
|
12975
13038
|
}, /* @__PURE__ */ React.createElement("div", null, renderTitle(), renderDesc(), props.tags), Bottom)), Footer);
|
|
12976
13039
|
};
|
|
12977
13040
|
var index$8 = "";
|
|
@@ -12990,14 +13053,14 @@ const SubmitBar = (p) => {
|
|
|
12990
13053
|
const pricePair = (+price / 100).toFixed(+decimalLength).split(".");
|
|
12991
13054
|
const decimal = decimalLength ? `.${pricePair[1]}` : "";
|
|
12992
13055
|
return /* @__PURE__ */ React.createElement("div", {
|
|
12993
|
-
className:
|
|
13056
|
+
className: clsx(bem$d("text")),
|
|
12994
13057
|
style: { textAlign }
|
|
12995
13058
|
}, /* @__PURE__ */ React.createElement("span", null, label || locale.vanSubmitBar.label), /* @__PURE__ */ React.createElement("span", {
|
|
12996
|
-
className:
|
|
13059
|
+
className: clsx(bem$d("price"))
|
|
12997
13060
|
}, currency, /* @__PURE__ */ React.createElement("span", {
|
|
12998
|
-
className:
|
|
13061
|
+
className: clsx(bem$d("price-integer"))
|
|
12999
13062
|
}, pricePair[0]), decimal), suffixLabel && /* @__PURE__ */ React.createElement("span", {
|
|
13000
|
-
className:
|
|
13063
|
+
className: clsx(bem$d("suffix-label"))
|
|
13001
13064
|
}, suffixLabel));
|
|
13002
13065
|
}
|
|
13003
13066
|
return null;
|
|
@@ -13006,11 +13069,11 @@ const SubmitBar = (p) => {
|
|
|
13006
13069
|
const { tip, tipIcon } = props;
|
|
13007
13070
|
if (tip) {
|
|
13008
13071
|
return /* @__PURE__ */ React.createElement("div", {
|
|
13009
|
-
className:
|
|
13072
|
+
className: clsx(bem$d("tip"))
|
|
13010
13073
|
}, tipIcon && React.cloneElement(tipIcon, {
|
|
13011
|
-
className:
|
|
13074
|
+
className: clsx(bem$d("tip-icon"))
|
|
13012
13075
|
}), tip && /* @__PURE__ */ React.createElement("span", {
|
|
13013
|
-
className:
|
|
13076
|
+
className: clsx(bem$d("tip-text"))
|
|
13014
13077
|
}, tip));
|
|
13015
13078
|
}
|
|
13016
13079
|
return null;
|
|
@@ -13024,7 +13087,7 @@ const SubmitBar = (p) => {
|
|
|
13024
13087
|
round: true,
|
|
13025
13088
|
type: props.buttonType,
|
|
13026
13089
|
text: props.buttonText,
|
|
13027
|
-
className:
|
|
13090
|
+
className: clsx(bem$d("button", props.buttonType)),
|
|
13028
13091
|
color: props.buttonColor,
|
|
13029
13092
|
loading: props.loading,
|
|
13030
13093
|
disabled: props.disabled,
|
|
@@ -13032,12 +13095,12 @@ const SubmitBar = (p) => {
|
|
|
13032
13095
|
});
|
|
13033
13096
|
};
|
|
13034
13097
|
return /* @__PURE__ */ React.createElement("div", {
|
|
13035
|
-
className:
|
|
13098
|
+
className: clsx(props.className, bem$d(), {
|
|
13036
13099
|
"rv-safe-area-bottom": props.safeAreaInsetBottom
|
|
13037
13100
|
}),
|
|
13038
13101
|
style: props.style
|
|
13039
13102
|
}, props.top, renderTip(), /* @__PURE__ */ React.createElement("div", {
|
|
13040
|
-
className:
|
|
13103
|
+
className: clsx(bem$d("bar"))
|
|
13041
13104
|
}, props.children, renderText(), renderButton()));
|
|
13042
13105
|
};
|
|
13043
13106
|
var index$7 = "";
|
|
@@ -13073,12 +13136,12 @@ const CouponCell = (p) => {
|
|
|
13073
13136
|
);
|
|
13074
13137
|
return /* @__PURE__ */ React.createElement(Cell, {
|
|
13075
13138
|
style: props.style,
|
|
13076
|
-
className:
|
|
13139
|
+
className: clsx(bem$c(), props.className),
|
|
13077
13140
|
value,
|
|
13078
13141
|
title: props.title || locale.vanCouponCell.title,
|
|
13079
13142
|
border: props.border,
|
|
13080
13143
|
isLink: props.editable,
|
|
13081
|
-
valueClass:
|
|
13144
|
+
valueClass: clsx(bem$c("value", { selected })),
|
|
13082
13145
|
onClick: props.onClick
|
|
13083
13146
|
});
|
|
13084
13147
|
};
|
|
@@ -13128,28 +13191,28 @@ const Coupon = (p) => {
|
|
|
13128
13191
|
const { chosen, coupon, disabled } = props;
|
|
13129
13192
|
const description = disabled && coupon.reason || coupon.description;
|
|
13130
13193
|
return /* @__PURE__ */ React.createElement("div", {
|
|
13131
|
-
className:
|
|
13194
|
+
className: clsx(props.className, bem$b({ disabled })),
|
|
13132
13195
|
style: props.style,
|
|
13133
13196
|
onClick: props.onClick
|
|
13134
13197
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
13135
|
-
className:
|
|
13198
|
+
className: clsx(bem$b("content"))
|
|
13136
13199
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
13137
|
-
className:
|
|
13200
|
+
className: clsx(bem$b("head"))
|
|
13138
13201
|
}, /* @__PURE__ */ React.createElement("h2", {
|
|
13139
|
-
className:
|
|
13202
|
+
className: clsx(bem$b("amount"))
|
|
13140
13203
|
}, faceAmount), /* @__PURE__ */ React.createElement("p", {
|
|
13141
|
-
className:
|
|
13204
|
+
className: clsx(bem$b("condition"))
|
|
13142
13205
|
}, coupon.condition || conditionMessage)), /* @__PURE__ */ React.createElement("div", {
|
|
13143
|
-
className:
|
|
13206
|
+
className: clsx(bem$b("body"))
|
|
13144
13207
|
}, /* @__PURE__ */ React.createElement("p", {
|
|
13145
|
-
className:
|
|
13208
|
+
className: clsx(bem$b("name"))
|
|
13146
13209
|
}, coupon.name), /* @__PURE__ */ React.createElement("p", {
|
|
13147
|
-
className:
|
|
13210
|
+
className: clsx(bem$b("valid"))
|
|
13148
13211
|
}, validPeriod), !disabled && /* @__PURE__ */ React.createElement(Checkbox, {
|
|
13149
|
-
className:
|
|
13212
|
+
className: clsx(bem$b("corner")),
|
|
13150
13213
|
checked: chosen
|
|
13151
13214
|
}))), description && /* @__PURE__ */ React.createElement("p", {
|
|
13152
|
-
className:
|
|
13215
|
+
className: clsx(bem$b("description"))
|
|
13153
13216
|
}, description));
|
|
13154
13217
|
};
|
|
13155
13218
|
const [bem$a] = createNamespace("coupon-list");
|
|
@@ -13195,7 +13258,7 @@ const CouponList = (p) => {
|
|
|
13195
13258
|
}
|
|
13196
13259
|
};
|
|
13197
13260
|
const renderEmpty = () => /* @__PURE__ */ React.createElement("div", {
|
|
13198
|
-
className:
|
|
13261
|
+
className: clsx(bem$a("empty"))
|
|
13199
13262
|
}, /* @__PURE__ */ React.createElement("img", {
|
|
13200
13263
|
alt: "empty",
|
|
13201
13264
|
src: props.emptyImage
|
|
@@ -13203,19 +13266,19 @@ const CouponList = (p) => {
|
|
|
13203
13266
|
const renderExchangeBar = () => {
|
|
13204
13267
|
if (props.showExchangeBar) {
|
|
13205
13268
|
return /* @__PURE__ */ React.createElement("div", {
|
|
13206
|
-
className:
|
|
13269
|
+
className: clsx(bem$a("exchange-bar"))
|
|
13207
13270
|
}, /* @__PURE__ */ React.createElement(FieldNamespace, {
|
|
13208
13271
|
value: state.code,
|
|
13209
13272
|
onChange: innerChange,
|
|
13210
13273
|
clearable: true,
|
|
13211
13274
|
border: false,
|
|
13212
|
-
className:
|
|
13275
|
+
className: clsx(bem$a("field")),
|
|
13213
13276
|
placeholder: props.inputPlaceholder || locale.vanCouponList.placeholder,
|
|
13214
13277
|
maxLength: 20
|
|
13215
13278
|
}), /* @__PURE__ */ React.createElement(Button, {
|
|
13216
13279
|
plain: true,
|
|
13217
13280
|
type: "primary",
|
|
13218
|
-
className:
|
|
13281
|
+
className: clsx(bem$a("exchange")),
|
|
13219
13282
|
text: props.exchangeButtonText || locale.vanCouponList.exchange,
|
|
13220
13283
|
loading: props.exchangeButtonLoading,
|
|
13221
13284
|
disabled: buttonDisabled,
|
|
@@ -13231,7 +13294,7 @@ const CouponList = (p) => {
|
|
|
13231
13294
|
return /* @__PURE__ */ React.createElement(Tabs.TabPane, {
|
|
13232
13295
|
title
|
|
13233
13296
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
13234
|
-
className:
|
|
13297
|
+
className: clsx(
|
|
13235
13298
|
bem$a("list", {
|
|
13236
13299
|
"with-bar": props.showExchangeBar,
|
|
13237
13300
|
"with-bottom": props.showCloseButton
|
|
@@ -13252,7 +13315,7 @@ const CouponList = (p) => {
|
|
|
13252
13315
|
return /* @__PURE__ */ React.createElement(Tabs.TabPane, {
|
|
13253
13316
|
title
|
|
13254
13317
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
13255
|
-
className:
|
|
13318
|
+
className: clsx(
|
|
13256
13319
|
bem$a("list", {
|
|
13257
13320
|
"with-bar": props.showExchangeBar,
|
|
13258
13321
|
"with-bottom": props.showCloseButton
|
|
@@ -13273,21 +13336,21 @@ const CouponList = (p) => {
|
|
|
13273
13336
|
updateState({ code: props.code });
|
|
13274
13337
|
}, [props.code]);
|
|
13275
13338
|
return /* @__PURE__ */ React.createElement("div", {
|
|
13276
|
-
className:
|
|
13339
|
+
className: clsx(bem$a(), props.className),
|
|
13277
13340
|
style: props.style
|
|
13278
13341
|
}, renderExchangeBar(), /* @__PURE__ */ React.createElement(Tabs, {
|
|
13279
13342
|
active: state.tab,
|
|
13280
13343
|
border: false,
|
|
13281
13344
|
...props.tabsProps,
|
|
13282
|
-
className:
|
|
13345
|
+
className: clsx(bem$a("tab"), (_a = props.tabsProps) == null ? void 0 : _a.className)
|
|
13283
13346
|
}, renderCouponTab(), renderDisabledTab()), /* @__PURE__ */ React.createElement("div", {
|
|
13284
|
-
className:
|
|
13347
|
+
className: clsx(bem$a("bottom"))
|
|
13285
13348
|
}, /* @__PURE__ */ React.createElement(Button, {
|
|
13286
13349
|
"v-show": props.showCloseButton,
|
|
13287
13350
|
round: true,
|
|
13288
13351
|
block: true,
|
|
13289
13352
|
type: "primary",
|
|
13290
|
-
className:
|
|
13353
|
+
className: clsx(bem$a("close")),
|
|
13291
13354
|
text: props.closeButtonText || locale.vanCouponList.close,
|
|
13292
13355
|
onClick: () => {
|
|
13293
13356
|
var _a2;
|
|
@@ -13422,21 +13485,21 @@ const SkuRow = (props) => {
|
|
|
13422
13485
|
const { skuRow } = props;
|
|
13423
13486
|
const renderTitle = () => {
|
|
13424
13487
|
return /* @__PURE__ */ React.createElement("div", {
|
|
13425
|
-
className:
|
|
13488
|
+
className: clsx(bem$9("title"))
|
|
13426
13489
|
}, skuRow.k, skuRow.is_multiple && /* @__PURE__ */ React.createElement("span", {
|
|
13427
|
-
className:
|
|
13490
|
+
className: clsx(bem$9("title-multiple"))
|
|
13428
13491
|
}, "\uFF08\u53EF\u591A\u9009\uFF09"));
|
|
13429
13492
|
};
|
|
13430
13493
|
const renderContent = () => {
|
|
13431
13494
|
const { largeImageMode } = skuRow;
|
|
13432
13495
|
return largeImageMode ? /* @__PURE__ */ React.createElement("div", {
|
|
13433
|
-
className:
|
|
13496
|
+
className: clsx(bem$9("scroller"))
|
|
13434
13497
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
13435
|
-
className:
|
|
13498
|
+
className: clsx(bem$9("row"))
|
|
13436
13499
|
}, props.children)) : props.children;
|
|
13437
13500
|
};
|
|
13438
13501
|
return /* @__PURE__ */ React.createElement("div", {
|
|
13439
|
-
className:
|
|
13502
|
+
className: clsx(bem$9(), BORDER_BOTTOM)
|
|
13440
13503
|
}, renderTitle(), renderContent());
|
|
13441
13504
|
};
|
|
13442
13505
|
const [bem$8] = createNamespace("sku-row");
|
|
@@ -13466,7 +13529,7 @@ const SkuRowItem = (props) => {
|
|
|
13466
13529
|
fit: "cover",
|
|
13467
13530
|
src: imgUrl,
|
|
13468
13531
|
lazyload: props.lazyload,
|
|
13469
|
-
className:
|
|
13532
|
+
className: clsx(bem$8(`${classPrefix}-img`))
|
|
13470
13533
|
});
|
|
13471
13534
|
}
|
|
13472
13535
|
return null;
|
|
@@ -13487,7 +13550,7 @@ const SkuRowItem = (props) => {
|
|
|
13487
13550
|
};
|
|
13488
13551
|
const choosed = props.skuValue.id === props.selectedSku[props.skuKeyStr];
|
|
13489
13552
|
return /* @__PURE__ */ React.createElement("span", {
|
|
13490
|
-
className:
|
|
13553
|
+
className: clsx(
|
|
13491
13554
|
bem$8(classPrefix, {
|
|
13492
13555
|
active: choosed,
|
|
13493
13556
|
disabled: !choosable
|
|
@@ -13495,11 +13558,11 @@ const SkuRowItem = (props) => {
|
|
|
13495
13558
|
),
|
|
13496
13559
|
onClick: onSelect
|
|
13497
13560
|
}, imageRender(), /* @__PURE__ */ React.createElement("div", {
|
|
13498
|
-
className:
|
|
13561
|
+
className: clsx(bem$8(`${classPrefix}-name`))
|
|
13499
13562
|
}, props.largeImageMode ? /* @__PURE__ */ React.createElement("span", {
|
|
13500
|
-
className:
|
|
13563
|
+
className: clsx("rv-multi-ellipsis--l2")
|
|
13501
13564
|
}, (_a = props.skuValue) == null ? void 0 : _a.name) : (_b = props.skuValue) == null ? void 0 : _b.name), props.largeImageMode && (props.previewIcon || /* @__PURE__ */ React.createElement(ExpandO, {
|
|
13502
|
-
className:
|
|
13565
|
+
className: clsx(bem$8(`${classPrefix}-img-icon`)),
|
|
13503
13566
|
onClick: onPreviewImg
|
|
13504
13567
|
})));
|
|
13505
13568
|
};
|
|
@@ -13525,14 +13588,14 @@ const SkuRowPropItem = (props) => {
|
|
|
13525
13588
|
});
|
|
13526
13589
|
};
|
|
13527
13590
|
return /* @__PURE__ */ React.createElement("span", {
|
|
13528
|
-
className:
|
|
13591
|
+
className: clsx(
|
|
13529
13592
|
bem$7("item", {
|
|
13530
13593
|
active: choosed
|
|
13531
13594
|
})
|
|
13532
13595
|
),
|
|
13533
13596
|
onClick: onSelect
|
|
13534
13597
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
13535
|
-
className:
|
|
13598
|
+
className: clsx(bem$7("item-name"))
|
|
13536
13599
|
}, (_a = props.skuValue) == null ? void 0 : _a.name));
|
|
13537
13600
|
};
|
|
13538
13601
|
const { QUOTA_LIMIT: QUOTA_LIMIT$1, STOCK_LIMIT } = LIMIT_TYPE;
|
|
@@ -13622,19 +13685,19 @@ const SkuStepper = (p) => {
|
|
|
13622
13685
|
});
|
|
13623
13686
|
};
|
|
13624
13687
|
return /* @__PURE__ */ React.createElement("div", {
|
|
13625
|
-
className:
|
|
13688
|
+
className: clsx(bem$6("stepper-stock"))
|
|
13626
13689
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
13627
|
-
className:
|
|
13690
|
+
className: clsx(bem$6("stepper-title"))
|
|
13628
13691
|
}, props.stepperTitle), /* @__PURE__ */ React.createElement(Stepper, {
|
|
13629
13692
|
min: stepperMinLimit,
|
|
13630
13693
|
max: stepperLimit,
|
|
13631
|
-
className:
|
|
13694
|
+
className: clsx(bem$6("stepper")),
|
|
13632
13695
|
disableInput: props.disableStepperInput,
|
|
13633
13696
|
value: props.currentNum,
|
|
13634
13697
|
onChange,
|
|
13635
13698
|
onOverlimit: onOverLimit
|
|
13636
13699
|
}), !props.hideQuotaText && quotaContent && /* @__PURE__ */ React.createElement("span", {
|
|
13637
|
-
className:
|
|
13700
|
+
className: clsx(bem$6("stepper-quota"))
|
|
13638
13701
|
}, quotaContent));
|
|
13639
13702
|
};
|
|
13640
13703
|
const { QUOTA_LIMIT } = LIMIT_TYPE;
|
|
@@ -13782,7 +13845,7 @@ const Sku = forwardRef((p, ref) => {
|
|
|
13782
13845
|
return props.stockRender(stock);
|
|
13783
13846
|
}
|
|
13784
13847
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, "\u5269\u4F59", /* @__PURE__ */ React.createElement("span", {
|
|
13785
|
-
className:
|
|
13848
|
+
className: clsx(
|
|
13786
13849
|
bem$5("stock-num", {
|
|
13787
13850
|
highlight: stock < props.stockThreshold
|
|
13788
13851
|
})
|
|
@@ -13968,21 +14031,21 @@ const Sku = forwardRef((p, ref) => {
|
|
|
13968
14031
|
const renderHeaderInfo = () => {
|
|
13969
14032
|
var _a2;
|
|
13970
14033
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, ((_a2 = props.skuHeaderPriceRender) == null ? void 0 : _a2.call(props, price)) || /* @__PURE__ */ React.createElement("div", {
|
|
13971
|
-
className:
|
|
14034
|
+
className: clsx(bem$5("goods-price"))
|
|
13972
14035
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
13973
|
-
className:
|
|
14036
|
+
className: clsx(bem$5("price-symbol"))
|
|
13974
14037
|
}, "\uFFE5"), /* @__PURE__ */ React.createElement("span", {
|
|
13975
|
-
className:
|
|
14038
|
+
className: clsx(bem$5("price-num"))
|
|
13976
14039
|
}, price), props.priceTag && /* @__PURE__ */ React.createElement("span", {
|
|
13977
|
-
className:
|
|
14040
|
+
className: clsx(bem$5("price-tag"))
|
|
13978
14041
|
}, props.priceTag)), props.skuHeaderOriginPrice && /* @__PURE__ */ React.createElement("div", {
|
|
13979
|
-
className:
|
|
14042
|
+
className: clsx(bem$5("header-item"))
|
|
13980
14043
|
}, props.skuHeaderOriginPrice), !props.hideStock && /* @__PURE__ */ React.createElement("div", {
|
|
13981
|
-
className:
|
|
14044
|
+
className: clsx(bem$5("header-item"))
|
|
13982
14045
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
13983
|
-
className:
|
|
14046
|
+
className: clsx(bem$5("stock"))
|
|
13984
14047
|
}, stockContent)), !props.hideSelectedText && /* @__PURE__ */ React.createElement("div", {
|
|
13985
|
-
className:
|
|
14048
|
+
className: clsx(bem$5("header-item"))
|
|
13986
14049
|
}, selectedText));
|
|
13987
14050
|
};
|
|
13988
14051
|
const renderHeader = () => {
|
|
@@ -13991,19 +14054,19 @@ const Sku = forwardRef((p, ref) => {
|
|
|
13991
14054
|
const selectedValue = getSkuImgValue(sku, state.selectedSku);
|
|
13992
14055
|
const imgUrl = selectedValue ? selectedValue.imgUrl : props.goods.picture;
|
|
13993
14056
|
return /* @__PURE__ */ React.createElement("div", {
|
|
13994
|
-
className:
|
|
14057
|
+
className: clsx(bem$5("header"), BORDER_BOTTOM)
|
|
13995
14058
|
}, props.showHeaderImage && /* @__PURE__ */ React.createElement(ImageNamespace, {
|
|
13996
14059
|
fit: "cover",
|
|
13997
14060
|
src: imgUrl,
|
|
13998
|
-
className:
|
|
14061
|
+
className: clsx(bem$5("header__img-wrap")),
|
|
13999
14062
|
onClick: () => onPreviewImage(selectedValue)
|
|
14000
14063
|
}, props.skuHeaderImageExtra), /* @__PURE__ */ React.createElement("div", {
|
|
14001
|
-
className:
|
|
14064
|
+
className: clsx(bem$5("header__goods-info"))
|
|
14002
14065
|
}, renderHeaderInfo(), props.skuHeaderExtra));
|
|
14003
14066
|
};
|
|
14004
14067
|
const renderGroup = () => {
|
|
14005
14068
|
return props.skuGroup || hasSkuOrAttr && /* @__PURE__ */ React.createElement("div", {
|
|
14006
|
-
className:
|
|
14069
|
+
className: clsx(
|
|
14007
14070
|
bem$5("group-container", {
|
|
14008
14071
|
"hide-soldout": !props.showSoldoutSku
|
|
14009
14072
|
})
|
|
@@ -14054,13 +14117,13 @@ const Sku = forwardRef((p, ref) => {
|
|
|
14054
14117
|
});
|
|
14055
14118
|
const renderBody = () => {
|
|
14056
14119
|
return /* @__PURE__ */ React.createElement("div", {
|
|
14057
|
-
className:
|
|
14120
|
+
className: clsx(bem$5("body")),
|
|
14058
14121
|
style: bodyStyle
|
|
14059
14122
|
}, props.skuBodyTop, renderGroup(), props.skuGroupExtra, renderStepper());
|
|
14060
14123
|
};
|
|
14061
14124
|
const renderActions = () => {
|
|
14062
14125
|
return props.skuActions || /* @__PURE__ */ React.createElement("div", {
|
|
14063
|
-
className:
|
|
14126
|
+
className: clsx(bem$5("actions"))
|
|
14064
14127
|
}, /* @__PURE__ */ React.createElement(ActionBar, null, props.showAddCartBtn && /* @__PURE__ */ React.createElement(ActionBar.Button, {
|
|
14065
14128
|
type: "warning",
|
|
14066
14129
|
text: props.addCartText || "\u52A0\u5165\u8D2D\u7269\u8F66",
|
|
@@ -14090,7 +14153,7 @@ const Sku = forwardRef((p, ref) => {
|
|
|
14090
14153
|
visible,
|
|
14091
14154
|
onClose: onPopupClose,
|
|
14092
14155
|
onClosed: onPopupClosed,
|
|
14093
|
-
className:
|
|
14156
|
+
className: clsx((_b = props.popupProps) == null ? void 0 : _b.className, bem$5("container"))
|
|
14094
14157
|
}, renderHeader(), renderBody(), props.skuActionsTop, renderActions(), props.skuActionsBottom);
|
|
14095
14158
|
});
|
|
14096
14159
|
var index$4 = "";
|
|
@@ -14101,7 +14164,7 @@ var FloatingBallItem = (props) => {
|
|
|
14101
14164
|
parent == null ? void 0 : parent.close();
|
|
14102
14165
|
};
|
|
14103
14166
|
return /* @__PURE__ */ React.createElement("div", {
|
|
14104
|
-
className:
|
|
14167
|
+
className: clsx("rv-floating-ball__menu__item"),
|
|
14105
14168
|
onClick: handleItemClick
|
|
14106
14169
|
}, props.children);
|
|
14107
14170
|
};
|
|
@@ -14266,7 +14329,7 @@ const FloatingBall = forwardRef(
|
|
|
14266
14329
|
return null;
|
|
14267
14330
|
const [position1, position2] = position.split(" ");
|
|
14268
14331
|
return /* @__PURE__ */ React.createElement("div", {
|
|
14269
|
-
className:
|
|
14332
|
+
className: clsx(
|
|
14270
14333
|
bem$4("menu", {
|
|
14271
14334
|
[(_a2 = props.menu) == null ? void 0 : _a2.direction]: !!((_b2 = props.menu) == null ? void 0 : _b2.direction),
|
|
14272
14335
|
[position1]: !!position1,
|
|
@@ -14426,14 +14489,14 @@ const FloatingBall = forwardRef(
|
|
|
14426
14489
|
}
|
|
14427
14490
|
}
|
|
14428
14491
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
14429
|
-
className:
|
|
14492
|
+
className: clsx(props.className, indentClassName, bem$4({ active })),
|
|
14430
14493
|
style: trackStyle,
|
|
14431
14494
|
ref: setContainer,
|
|
14432
14495
|
onTouchStart,
|
|
14433
14496
|
onTouchEnd,
|
|
14434
14497
|
onTouchCancel: onTouchEnd
|
|
14435
14498
|
}, renderMenus(), /* @__PURE__ */ React.createElement("div", {
|
|
14436
|
-
className:
|
|
14499
|
+
className: clsx(
|
|
14437
14500
|
bem$4("base", {
|
|
14438
14501
|
[props.disabledClassName]: props.disabled
|
|
14439
14502
|
})
|
|
@@ -14513,7 +14576,7 @@ const WaterMark = (p) => {
|
|
|
14513
14576
|
}
|
|
14514
14577
|
}, [gapX, gapY, rotate, width, height, image, content, font]);
|
|
14515
14578
|
return /* @__PURE__ */ React.createElement("div", {
|
|
14516
|
-
className:
|
|
14579
|
+
className: clsx(
|
|
14517
14580
|
bem$3({
|
|
14518
14581
|
full: props.fullPage
|
|
14519
14582
|
})
|
|
@@ -14604,7 +14667,7 @@ const FloatingPanel = forwardRef(
|
|
|
14604
14667
|
useEventListener("touchend", onTouchEnd, { target: root2, passive: false });
|
|
14605
14668
|
return /* @__PURE__ */ React.createElement(animated.div, {
|
|
14606
14669
|
ref: root2,
|
|
14607
|
-
className:
|
|
14670
|
+
className: clsx(bem$2(), className),
|
|
14608
14671
|
style: {
|
|
14609
14672
|
height: maxAnchor,
|
|
14610
14673
|
transform: visibleH.to((h) => `translateY(calc(100% - ${h}px))`),
|
|
@@ -14612,12 +14675,12 @@ const FloatingPanel = forwardRef(
|
|
|
14612
14675
|
}
|
|
14613
14676
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
14614
14677
|
ref: header,
|
|
14615
|
-
className:
|
|
14678
|
+
className: clsx(bem$2("header"))
|
|
14616
14679
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
14617
|
-
className:
|
|
14680
|
+
className: clsx(bem$2("thumb"))
|
|
14618
14681
|
})), /* @__PURE__ */ React.createElement(animated.div, {
|
|
14619
14682
|
ref: body,
|
|
14620
|
-
className:
|
|
14683
|
+
className: clsx(bem$2("body"))
|
|
14621
14684
|
}, props.children));
|
|
14622
14685
|
}
|
|
14623
14686
|
);
|
|
@@ -14710,10 +14773,10 @@ const Table = (props) => {
|
|
|
14710
14773
|
if (!showHeader)
|
|
14711
14774
|
return null;
|
|
14712
14775
|
return /* @__PURE__ */ React.createElement("thead", {
|
|
14713
|
-
className:
|
|
14776
|
+
className: clsx(bem$1("header"))
|
|
14714
14777
|
}, /* @__PURE__ */ React.createElement("tr", null, columns.map((column, index2) => /* @__PURE__ */ React.createElement("th", {
|
|
14715
14778
|
key: column.dataIndex || index2,
|
|
14716
|
-
className:
|
|
14779
|
+
className: clsx(bem$1("header-cell")),
|
|
14717
14780
|
style: {
|
|
14718
14781
|
...columnStyles[index2],
|
|
14719
14782
|
textAlign: column.align || "left"
|
|
@@ -14723,26 +14786,26 @@ const Table = (props) => {
|
|
|
14723
14786
|
const renderBody = () => {
|
|
14724
14787
|
if (dataSource.length === 0) {
|
|
14725
14788
|
return /* @__PURE__ */ React.createElement("tbody", {
|
|
14726
|
-
className:
|
|
14789
|
+
className: clsx(bem$1("body"))
|
|
14727
14790
|
}, /* @__PURE__ */ React.createElement("tr", null, /* @__PURE__ */ React.createElement("td", {
|
|
14728
14791
|
colSpan: columns.length,
|
|
14729
|
-
className:
|
|
14792
|
+
className: clsx(bem$1("empty-cell"))
|
|
14730
14793
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
14731
|
-
className:
|
|
14794
|
+
className: clsx(bem$1("empty-image"))
|
|
14732
14795
|
}, emptyImage && /* @__PURE__ */ React.createElement("img", {
|
|
14733
14796
|
src: emptyImage
|
|
14734
14797
|
})), /* @__PURE__ */ React.createElement("div", null, emptyText))));
|
|
14735
14798
|
}
|
|
14736
14799
|
return /* @__PURE__ */ React.createElement("tbody", {
|
|
14737
|
-
className:
|
|
14800
|
+
className: clsx(bem$1("body"))
|
|
14738
14801
|
}, dataSource.map((record, rowIndex) => /* @__PURE__ */ React.createElement("tr", {
|
|
14739
14802
|
key: getRowKey(record, rowIndex),
|
|
14740
|
-
className:
|
|
14803
|
+
className: clsx(bem$1("row"))
|
|
14741
14804
|
}, columns.map((column, colIndex) => {
|
|
14742
14805
|
const text = record[column.dataIndex];
|
|
14743
14806
|
return /* @__PURE__ */ React.createElement("td", {
|
|
14744
14807
|
key: column.dataIndex || colIndex,
|
|
14745
|
-
className:
|
|
14808
|
+
className: clsx(bem$1("cell")),
|
|
14746
14809
|
style: {
|
|
14747
14810
|
...columnStyles[colIndex],
|
|
14748
14811
|
textAlign: column.align || "left"
|
|
@@ -14750,7 +14813,7 @@ const Table = (props) => {
|
|
|
14750
14813
|
}, column.render ? column.render(text, record, rowIndex) : text);
|
|
14751
14814
|
}))));
|
|
14752
14815
|
};
|
|
14753
|
-
const classes =
|
|
14816
|
+
const classes = clsx(
|
|
14754
14817
|
className,
|
|
14755
14818
|
bem$1([
|
|
14756
14819
|
{
|
|
@@ -14759,7 +14822,7 @@ const Table = (props) => {
|
|
|
14759
14822
|
])
|
|
14760
14823
|
);
|
|
14761
14824
|
return /* @__PURE__ */ React.createElement("div", {
|
|
14762
|
-
className:
|
|
14825
|
+
className: clsx(bem$1("wrapper")),
|
|
14763
14826
|
ref: containerRef
|
|
14764
14827
|
}, /* @__PURE__ */ React.createElement("table", {
|
|
14765
14828
|
className: classes,
|
|
@@ -14794,9 +14857,9 @@ const TreeSelectItem = ({
|
|
|
14794
14857
|
}
|
|
14795
14858
|
};
|
|
14796
14859
|
return /* @__PURE__ */ React.createElement("div", {
|
|
14797
|
-
className:
|
|
14860
|
+
className: clsx(bem("item-wrapper"))
|
|
14798
14861
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
14799
|
-
className:
|
|
14862
|
+
className: clsx(
|
|
14800
14863
|
bem("item", {
|
|
14801
14864
|
active: selected,
|
|
14802
14865
|
disabled: node.disabled,
|
|
@@ -14807,21 +14870,21 @@ const TreeSelectItem = ({
|
|
|
14807
14870
|
style: node.style,
|
|
14808
14871
|
onClick: handleClick
|
|
14809
14872
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
14810
|
-
className:
|
|
14873
|
+
className: clsx(bem("item-content"))
|
|
14811
14874
|
}, node.icon && /* @__PURE__ */ React.createElement("span", {
|
|
14812
|
-
className:
|
|
14875
|
+
className: clsx(bem("item-icon"))
|
|
14813
14876
|
}, node.icon), /* @__PURE__ */ React.createElement("span", {
|
|
14814
|
-
className:
|
|
14877
|
+
className: clsx(bem("item-title"))
|
|
14815
14878
|
}, title)), selected && !multiple && /* @__PURE__ */ React.createElement(Success, {
|
|
14816
|
-
className:
|
|
14879
|
+
className: clsx(bem("item-selected-icon"))
|
|
14817
14880
|
}), multiple && /* @__PURE__ */ React.createElement("input", {
|
|
14818
14881
|
type: "checkbox",
|
|
14819
14882
|
checked: selected,
|
|
14820
14883
|
disabled: node.disabled,
|
|
14821
|
-
className:
|
|
14884
|
+
className: clsx(bem("item-checkbox")),
|
|
14822
14885
|
readOnly: true
|
|
14823
14886
|
})), hasChildren && /* @__PURE__ */ React.createElement("div", {
|
|
14824
|
-
className:
|
|
14887
|
+
className: clsx(bem("item-children"))
|
|
14825
14888
|
}, children.map((child, index2) => /* @__PURE__ */ React.createElement(TreeSelectItem, {
|
|
14826
14889
|
key: child[valueKey] || index2,
|
|
14827
14890
|
node: child,
|
|
@@ -14931,7 +14994,7 @@ const TreeSelect = (p) => {
|
|
|
14931
14994
|
(_a = props.onChange) == null ? void 0 : _a.call(props, newValue, selectedNodes);
|
|
14932
14995
|
});
|
|
14933
14996
|
const renderNav = () => /* @__PURE__ */ React.createElement("div", {
|
|
14934
|
-
className:
|
|
14997
|
+
className: clsx(bem("nav"), props.navClassName),
|
|
14935
14998
|
style: {
|
|
14936
14999
|
width: props.navWidth,
|
|
14937
15000
|
height: props.height,
|
|
@@ -14942,7 +15005,7 @@ const TreeSelect = (p) => {
|
|
|
14942
15005
|
const title = item[titleKey];
|
|
14943
15006
|
return /* @__PURE__ */ React.createElement("div", {
|
|
14944
15007
|
key: item[keyKey] || item[valueKey] || index2,
|
|
14945
|
-
className:
|
|
15008
|
+
className: clsx(
|
|
14946
15009
|
bem("nav-item", {
|
|
14947
15010
|
active: isActive,
|
|
14948
15011
|
disabled: item.disabled
|
|
@@ -14952,18 +15015,18 @@ const TreeSelect = (p) => {
|
|
|
14952
15015
|
style: item.style,
|
|
14953
15016
|
onClick: () => !item.disabled && handleNavClick(index2)
|
|
14954
15017
|
}, item.icon && /* @__PURE__ */ React.createElement("span", {
|
|
14955
|
-
className:
|
|
15018
|
+
className: clsx(bem("nav-icon"))
|
|
14956
15019
|
}, item.icon), /* @__PURE__ */ React.createElement("span", {
|
|
14957
|
-
className:
|
|
15020
|
+
className: clsx(bem("nav-text"))
|
|
14958
15021
|
}, title), item.badge && /* @__PURE__ */ React.createElement("span", {
|
|
14959
|
-
className:
|
|
15022
|
+
className: clsx(bem("nav-badge"))
|
|
14960
15023
|
}, item.badge));
|
|
14961
15024
|
}));
|
|
14962
15025
|
const renderContent = () => {
|
|
14963
15026
|
const currentNav = navItems[activeIndex];
|
|
14964
15027
|
if (props.contentRender && currentNav) {
|
|
14965
15028
|
return /* @__PURE__ */ React.createElement("div", {
|
|
14966
|
-
className:
|
|
15029
|
+
className: clsx(bem("content"), props.contentClassName),
|
|
14967
15030
|
style: {
|
|
14968
15031
|
height: props.height,
|
|
14969
15032
|
...props.contentStyle
|
|
@@ -14971,13 +15034,13 @@ const TreeSelect = (p) => {
|
|
|
14971
15034
|
}, props.contentRender(currentNav));
|
|
14972
15035
|
}
|
|
14973
15036
|
return /* @__PURE__ */ React.createElement("div", {
|
|
14974
|
-
className:
|
|
15037
|
+
className: clsx(bem("content"), props.contentClassName),
|
|
14975
15038
|
style: {
|
|
14976
15039
|
height: props.height,
|
|
14977
15040
|
...props.contentStyle
|
|
14978
15041
|
}
|
|
14979
15042
|
}, contentItems.length > 0 ? /* @__PURE__ */ React.createElement("div", {
|
|
14980
|
-
className:
|
|
15043
|
+
className: clsx(bem("items"))
|
|
14981
15044
|
}, contentItems.map((item, index2) => {
|
|
14982
15045
|
const value = item[valueKey];
|
|
14983
15046
|
const selected = isValueSelected(value);
|
|
@@ -14990,12 +15053,12 @@ const TreeSelect = (p) => {
|
|
|
14990
15053
|
fieldNames: props.fieldNames
|
|
14991
15054
|
});
|
|
14992
15055
|
})) : /* @__PURE__ */ React.createElement("div", {
|
|
14993
|
-
className:
|
|
15056
|
+
className: clsx(bem("content-empty"))
|
|
14994
15057
|
}, props.placeholder || "\u6682\u65E0\u6570\u636E"));
|
|
14995
15058
|
};
|
|
14996
15059
|
return /* @__PURE__ */ React.createElement("div", {
|
|
14997
|
-
className:
|
|
15060
|
+
className: clsx(props.className, bem()),
|
|
14998
15061
|
style: props.style
|
|
14999
15062
|
}, renderNav(), renderContent());
|
|
15000
15063
|
};
|
|
15001
|
-
export { ActionBar, ActionSheet, Area, Badge, Button, Calendar, Card, CascaderPopup as Cascader, Cell, CellGroup, Checkbox, CheckBoxGroup as CheckboxGroup, Circle, Collapse, CollapseItem, ConfigProvider, CountDown, CouponCell, CouponList, DateTimePicker as DatetimePicker, Dialog, Divider, DropdownMenu, Empty, FieldNamespace as Field, Flex, FloatingBall, FloatingPanel, Form, GridNamespace as Grid, GridItem, ImageNamespace as Image, ImagePreview, IndexAnchor, IndexBar, Input, Lazyload, List, Loading, NavBar, NoticeBar, exportNotifyNamespace as Notify, NumberKeyboard, Overlay, Pagination, PasswordInput, Picker, Popover, Popup, ProductCard, Progress, PullRefresh, Radio, RadioGroup, Rate, Search, Selector, ShareSheet, Sidebar, SidebarItem, Skeleton, Sku, Slider, Space, Stepper, Steps, StepsItem, Sticky, SubmitBar, SwipeCell, Swiper, Swtich as Switch, Tabbar, TabbarItem, Table, Tabs, Tag, Toast, TreeSelect, TypographyNamespace as Typography, Uploader, WaterMark, index$
|
|
15064
|
+
export { ActionBar, ActionSheet, Area, Avatar, Badge, Button, Calendar, Card, CascaderPopup as Cascader, Cell, CellGroup, Checkbox, CheckBoxGroup as CheckboxGroup, Circle, Collapse, CollapseItem, ConfigProvider, CountDown, CouponCell, CouponList, DateTimePicker as DatetimePicker, Dialog, Divider, DropdownMenu, Empty, FieldNamespace as Field, Flex, FloatingBall, FloatingPanel, Form, GridNamespace as Grid, GridItem, ImageNamespace as Image, ImagePreview, IndexAnchor, IndexBar, Input, Lazyload, List, Loading, NavBar, NoticeBar, exportNotifyNamespace as Notify, NumberKeyboard, Overlay, Pagination, PasswordInput, Picker, Popover, Popup, ProductCard, Progress, PullRefresh, Radio, RadioGroup, Rate, Search, Selector, ShareSheet, Sidebar, SidebarItem, Skeleton, Sku, Slider, Space, Stepper, Steps, StepsItem, Sticky, SubmitBar, SwipeCell, Swiper, Swtich as Switch, Tabbar, TabbarItem, Table, Tabs, Tag, Toast, TreeSelect, TypographyNamespace as Typography, Uploader, WaterMark, index$18 as hooks };
|