react-vant-nova 1.0.8 → 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/README.md +2 -2
- package/bundle/index.css +201 -0
- package/bundle/index.min.css +1 -1
- package/bundle/react-vant-nova.es.js +917 -626
- package/bundle/react-vant-nova.js +921 -628
- 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 +2 -0
- package/es/index.js +3 -1
- package/es/treeSelect/PropsType.d.ts +85 -0
- package/es/treeSelect/PropsType.js +1 -0
- package/es/treeSelect/TreeSelect.d.ts +4 -0
- package/es/treeSelect/TreeSelect.js +259 -0
- package/es/treeSelect/index.d.ts +5 -0
- package/es/treeSelect/index.js +4 -0
- package/es/treeSelect/style/index.css +149 -0
- package/es/treeSelect/style/var.css +0 -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 +201 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +24 -0
- package/lib/index.min.css +1 -1
- package/lib/treeSelect/PropsType.d.ts +85 -0
- package/lib/treeSelect/PropsType.js +6 -0
- package/lib/treeSelect/TreeSelect.d.ts +4 -0
- package/lib/treeSelect/TreeSelect.js +291 -0
- package/lib/treeSelect/index.d.ts +5 -0
- package/lib/treeSelect/index.js +16 -0
- package/lib/treeSelect/style/index.css +149 -0
- package/lib/treeSelect/style/var.css +0 -0
- package/package.json +5 -5
|
@@ -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,8 +934,8 @@ var index$16 = {
|
|
|
934
934
|
useMemoizedFn,
|
|
935
935
|
usePropsValue
|
|
936
936
|
};
|
|
937
|
-
var index$
|
|
938
|
-
var index$
|
|
937
|
+
var index$17 = "";
|
|
938
|
+
var index$16 = "";
|
|
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
941
|
className: clsx(bem2("line", String(index2 + 1)))
|
|
@@ -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: clsx(bem$
|
|
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: clsx(className, bem$
|
|
998
|
+
className: clsx(className, bem$1G([type, { vertical }])),
|
|
999
999
|
style: props.style
|
|
1000
1000
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
1001
|
-
className: clsx(bem$
|
|
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,
|
|
@@ -1069,7 +1069,7 @@ const Button$1 = (props) => {
|
|
|
1069
1069
|
const TagElement = tag;
|
|
1070
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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,
|
|
@@ -1171,7 +1171,7 @@ const ButtonGroup = ({
|
|
|
1171
1171
|
style,
|
|
1172
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",
|
|
@@ -1243,7 +1243,7 @@ const Badge = (p) => {
|
|
|
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: clsx(bem$
|
|
1256
|
+
className: clsx(bem$1D("wrapper"), props.className),
|
|
1257
1257
|
style: props.style,
|
|
1258
1258
|
onClick: props.onClick,
|
|
1259
1259
|
onTouchStart: props.onTouchStart
|
|
@@ -1261,9 +1261,72 @@ 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
|
+
};
|
|
1327
|
+
var index$13 = "";
|
|
1264
1328
|
var index$12 = "";
|
|
1265
|
-
|
|
1266
|
-
const [bem$1A] = createNamespace("cell-group");
|
|
1329
|
+
const [bem$1B] = createNamespace("cell-group");
|
|
1267
1330
|
const CellGroup = (p) => {
|
|
1268
1331
|
const props = mergeProps(p, {
|
|
1269
1332
|
border: true
|
|
@@ -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: clsx(bem$
|
|
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: clsx(bem$
|
|
1344
|
+
className: clsx(bem$1B("title"))
|
|
1282
1345
|
}, title);
|
|
1283
1346
|
return null;
|
|
1284
1347
|
};
|
|
@@ -1287,13 +1350,13 @@ const CellGroup = (p) => {
|
|
|
1287
1350
|
style: props.style
|
|
1288
1351
|
}, renderTitle(), renderGroup());
|
|
1289
1352
|
};
|
|
1290
|
-
const [bem$
|
|
1353
|
+
const [bem$1A] = createNamespace("cell");
|
|
1291
1354
|
const Cell$1 = (props) => {
|
|
1292
1355
|
const renderLabel = () => {
|
|
1293
1356
|
const showLabel = isDef(props.label);
|
|
1294
1357
|
if (showLabel) {
|
|
1295
1358
|
return /* @__PURE__ */ React.createElement("div", {
|
|
1296
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx((_c = (_b = (_a = props.icon) == null ? void 0 : _a.props) == null ? void 0 : _b.className) != null ? _c : "", bem$
|
|
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 = clsx(bem$
|
|
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,16 +1435,16 @@ const Cell$1 = (props) => {
|
|
|
1372
1435
|
}
|
|
1373
1436
|
return /* @__PURE__ */ React.createElement("div", {
|
|
1374
1437
|
style,
|
|
1375
|
-
className: clsx(bem$
|
|
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);
|
|
1379
1442
|
};
|
|
1380
1443
|
const Cell = Object.assign(Cell$1, { Group: CellGroup });
|
|
1444
|
+
var index$11 = "";
|
|
1381
1445
|
var index$10 = "";
|
|
1382
1446
|
var index$$ = "";
|
|
1383
|
-
|
|
1384
|
-
const [bem$1y] = createNamespace("overlay");
|
|
1447
|
+
const [bem$1z] = createNamespace("overlay");
|
|
1385
1448
|
const Overlay = (p) => {
|
|
1386
1449
|
const nodeRef = useRef(null);
|
|
1387
1450
|
const props = mergeProps(p, {
|
|
@@ -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: clsx(bem$
|
|
1482
|
+
className: clsx(bem$1z(), props.className)
|
|
1420
1483
|
}, props.children)
|
|
1421
1484
|
);
|
|
1422
1485
|
};
|
|
@@ -1559,7 +1622,7 @@ const sharedPopupProps = [
|
|
|
1559
1622
|
"beforeClose"
|
|
1560
1623
|
];
|
|
1561
1624
|
let globalZIndex = 2e3;
|
|
1562
|
-
const [bem$
|
|
1625
|
+
const [bem$1y] = createNamespace("popup");
|
|
1563
1626
|
const Popup = forwardRef((p, ref) => {
|
|
1564
1627
|
var _a;
|
|
1565
1628
|
const props = mergeProps(p, {
|
|
@@ -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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
1736
|
+
className: clsx(bem$1y("description"))
|
|
1674
1737
|
}, description);
|
|
1675
1738
|
}
|
|
1676
1739
|
return null;
|
|
@@ -1686,7 +1749,7 @@ const Popup = forwardRef((p, ref) => {
|
|
|
1686
1749
|
display: !visible && !animatedVisible ? "none" : void 0
|
|
1687
1750
|
},
|
|
1688
1751
|
className: clsx(
|
|
1689
|
-
bem$
|
|
1752
|
+
bem$1y({
|
|
1690
1753
|
round,
|
|
1691
1754
|
[position]: position
|
|
1692
1755
|
}),
|
|
@@ -1740,9 +1803,9 @@ const Popup = forwardRef((p, ref) => {
|
|
|
1740
1803
|
}, renderOverlay(), renderTransition())
|
|
1741
1804
|
);
|
|
1742
1805
|
});
|
|
1743
|
-
var index$
|
|
1806
|
+
var index$_ = "";
|
|
1744
1807
|
const ActionButtonContext = createContext({});
|
|
1745
|
-
const [bem$
|
|
1808
|
+
const [bem$1x] = createNamespace("action-bar");
|
|
1746
1809
|
const ActionBar$1 = (p) => {
|
|
1747
1810
|
const props = mergeProps(p, {
|
|
1748
1811
|
safeAreaInsetBottom: true
|
|
@@ -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: clsx(props.className, bem$
|
|
1820
|
+
className: clsx(props.className, bem$1x(), {
|
|
1758
1821
|
"rv-safe-area-bottom": props.safeAreaInsetBottom
|
|
1759
1822
|
}),
|
|
1760
1823
|
style: props.style
|
|
@@ -1764,27 +1827,27 @@ const ActionBar$1 = (p) => {
|
|
|
1764
1827
|
})
|
|
1765
1828
|
)));
|
|
1766
1829
|
};
|
|
1767
|
-
const [bem$
|
|
1830
|
+
const [bem$1w] = createNamespace("action-bar-icon");
|
|
1768
1831
|
const ActionBarIcon = (props) => {
|
|
1769
1832
|
const renderIcon = () => {
|
|
1770
1833
|
const { badge, icon } = props;
|
|
1771
1834
|
if (icon) {
|
|
1772
1835
|
return /* @__PURE__ */ React.createElement(Badge, {
|
|
1773
1836
|
...badge,
|
|
1774
|
-
className: clsx(bem$
|
|
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: clsx(props.className, bem$
|
|
1844
|
+
className: clsx(props.className, bem$1w()),
|
|
1782
1845
|
style: props.style,
|
|
1783
1846
|
tabIndex: 0,
|
|
1784
1847
|
onClick: props.onClick
|
|
1785
1848
|
}, renderIcon(), props.children || props.text);
|
|
1786
1849
|
};
|
|
1787
|
-
const [bem$
|
|
1850
|
+
const [bem$1v] = createNamespace("action-bar-button");
|
|
1788
1851
|
const ActionBarButton = (props) => {
|
|
1789
1852
|
const { type, icon, text, color, loading, disabled, index: index2 } = props;
|
|
1790
1853
|
const { parent } = useContext(ActionButtonContext);
|
|
@@ -1805,7 +1868,7 @@ const ActionBarButton = (props) => {
|
|
|
1805
1868
|
return /* @__PURE__ */ React.createElement(Button, {
|
|
1806
1869
|
className: clsx(
|
|
1807
1870
|
props.className,
|
|
1808
|
-
bem$
|
|
1871
|
+
bem$1v([
|
|
1809
1872
|
type,
|
|
1810
1873
|
{
|
|
1811
1874
|
last: isLast,
|
|
@@ -1926,7 +1989,7 @@ const INITIAL_STATE$1 = {
|
|
|
1926
1989
|
locale: zhCN
|
|
1927
1990
|
};
|
|
1928
1991
|
const ConfigProvider$1 = createContext(INITIAL_STATE$1);
|
|
1929
|
-
const [bem$
|
|
1992
|
+
const [bem$1u] = createNamespace("dialog");
|
|
1930
1993
|
const Dialog$1 = (p) => {
|
|
1931
1994
|
const { locale } = useContext(ConfigProvider$1);
|
|
1932
1995
|
const props = mergeProps(p, {
|
|
@@ -1950,7 +2013,7 @@ const Dialog$1 = (p) => {
|
|
|
1950
2013
|
if (props.title) {
|
|
1951
2014
|
return /* @__PURE__ */ React.createElement("div", {
|
|
1952
2015
|
className: clsx(
|
|
1953
|
-
bem$
|
|
2016
|
+
bem$1u("header", {
|
|
1954
2017
|
isolated: !props.message && !props.children
|
|
1955
2018
|
})
|
|
1956
2019
|
)
|
|
@@ -1961,15 +2024,15 @@ const Dialog$1 = (p) => {
|
|
|
1961
2024
|
const renderContent = () => {
|
|
1962
2025
|
if (props.children) {
|
|
1963
2026
|
return /* @__PURE__ */ React.createElement("div", {
|
|
1964
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
2032
|
+
className: clsx(bem$1u("content", { isolated: !title }))
|
|
1970
2033
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
1971
2034
|
className: clsx(
|
|
1972
|
-
bem$
|
|
2035
|
+
bem$1u("message", {
|
|
1973
2036
|
"has-title": title,
|
|
1974
2037
|
[messageAlign]: messageAlign
|
|
1975
2038
|
})
|
|
@@ -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: clsx(BORDER_TOP, bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
2099
|
+
className: clsx(bem$1u([theme]), className),
|
|
2037
2100
|
style: { width: addUnit(width) },
|
|
2038
2101
|
"aria-labelledby": title || message,
|
|
2039
2102
|
closeOnClickOverlay,
|
|
@@ -2221,7 +2284,7 @@ Dialog.confirm = (props) => {
|
|
|
2221
2284
|
});
|
|
2222
2285
|
});
|
|
2223
2286
|
};
|
|
2224
|
-
const [bem$
|
|
2287
|
+
const [bem$1t] = createNamespace("input");
|
|
2225
2288
|
const Input$1 = forwardRef((p, ref) => {
|
|
2226
2289
|
const props = mergeProps(p, {
|
|
2227
2290
|
clearIcon: /* @__PURE__ */ React.createElement(Clear, null),
|
|
@@ -2328,7 +2391,7 @@ const Input$1 = forwardRef((p, ref) => {
|
|
|
2328
2391
|
inputMode,
|
|
2329
2392
|
ref: inputRef,
|
|
2330
2393
|
name,
|
|
2331
|
-
className: clsx(bem$
|
|
2394
|
+
className: clsx(bem$1t("control")),
|
|
2332
2395
|
disabled,
|
|
2333
2396
|
autoFocus,
|
|
2334
2397
|
readOnly,
|
|
@@ -2364,21 +2427,21 @@ 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: clsx(bem$
|
|
2430
|
+
className: clsx(bem$1t([align]), className),
|
|
2368
2431
|
style
|
|
2369
2432
|
}, props.prefix && /* @__PURE__ */ React.createElement("div", {
|
|
2370
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
2437
|
+
className: clsx(bem$1t("clear")),
|
|
2375
2438
|
onTouchStart: handleClear
|
|
2376
2439
|
}
|
|
2377
2440
|
), props.suffix && /* @__PURE__ */ React.createElement("div", {
|
|
2378
|
-
className: clsx(bem$
|
|
2441
|
+
className: clsx(bem$1t("suffix"))
|
|
2379
2442
|
}, props.suffix));
|
|
2380
2443
|
});
|
|
2381
|
-
const [bem$
|
|
2444
|
+
const [bem$1s] = createNamespace("textarea");
|
|
2382
2445
|
const TextArea = forwardRef((p, ref) => {
|
|
2383
2446
|
const props = mergeProps(p, {
|
|
2384
2447
|
rows: 2,
|
|
@@ -2445,7 +2508,7 @@ const TextArea = forwardRef((p, ref) => {
|
|
|
2445
2508
|
adjustSize();
|
|
2446
2509
|
}, [value]);
|
|
2447
2510
|
const controlClass = React.useMemo(() => {
|
|
2448
|
-
return bem$
|
|
2511
|
+
return bem$1s("control", [
|
|
2449
2512
|
{
|
|
2450
2513
|
"min-height": !props.autoSize,
|
|
2451
2514
|
clear: props.clearable
|
|
@@ -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: clsx(bem$
|
|
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: clsx(bem$
|
|
2549
|
+
className: clsx(bem$1s("word-num"))
|
|
2487
2550
|
}, currentCount), maxLength ? `/${maxLength}` : false));
|
|
2488
2551
|
}
|
|
2489
2552
|
return null;
|
|
@@ -2502,7 +2565,7 @@ const TextArea = forwardRef((p, ref) => {
|
|
|
2502
2565
|
return false;
|
|
2503
2566
|
}, [value, props.clearTrigger, hasFocus]);
|
|
2504
2567
|
return /* @__PURE__ */ React.createElement("div", {
|
|
2505
|
-
className: clsx(bem$
|
|
2568
|
+
className: clsx(bem$1s(), className),
|
|
2506
2569
|
style
|
|
2507
2570
|
}, /* @__PURE__ */ React.createElement("textarea", {
|
|
2508
2571
|
ref: nativeTextAreaRef,
|
|
@@ -2537,14 +2600,14 @@ const TextArea = forwardRef((p, ref) => {
|
|
|
2537
2600
|
},
|
|
2538
2601
|
onClick: props.onClick
|
|
2539
2602
|
}), showClear && React.cloneElement(props.clearIcon, {
|
|
2540
|
-
className: clsx(bem$
|
|
2603
|
+
className: clsx(bem$1s("clear")),
|
|
2541
2604
|
onTouchStart: handleClear
|
|
2542
2605
|
}), renderWordLimit());
|
|
2543
2606
|
});
|
|
2607
|
+
var index$Z = "";
|
|
2544
2608
|
var index$Y = "";
|
|
2545
|
-
var index$X = "";
|
|
2546
2609
|
const Input = Object.assign(Input$1, { TextArea });
|
|
2547
|
-
const [bem$
|
|
2610
|
+
const [bem$1r] = createNamespace("field");
|
|
2548
2611
|
const Field = forwardRef((p, ref) => {
|
|
2549
2612
|
var _a;
|
|
2550
2613
|
const props = mergeProps(p, {
|
|
@@ -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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
2777
|
+
className: clsx(bem$1r("tooltip")),
|
|
2715
2778
|
onClick: () => Dialog.show(dialogProps)
|
|
2716
2779
|
}, icon);
|
|
2717
2780
|
}
|
|
@@ -2753,13 +2816,13 @@ const Field = forwardRef((p, ref) => {
|
|
|
2753
2816
|
clickable,
|
|
2754
2817
|
extra: props.extra,
|
|
2755
2818
|
titleStyle: { ...labelStyle(), ...titleStyle },
|
|
2756
|
-
valueClass: clsx(bem$
|
|
2757
|
-
titleClass: clsx(bem$
|
|
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
2824
|
className: clsx(
|
|
2762
|
-
bem$
|
|
2825
|
+
bem$1r({
|
|
2763
2826
|
error,
|
|
2764
2827
|
disabled,
|
|
2765
2828
|
[`label-${labelAlign}`]: labelAlign
|
|
@@ -2767,20 +2830,20 @@ const Field = forwardRef((p, ref) => {
|
|
|
2767
2830
|
className
|
|
2768
2831
|
)
|
|
2769
2832
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
2770
|
-
className: clsx(bem$
|
|
2833
|
+
className: clsx(bem$1r("body"))
|
|
2771
2834
|
}, props.prefix && /* @__PURE__ */ React.createElement("div", {
|
|
2772
|
-
className: clsx(bem$
|
|
2835
|
+
className: clsx(bem$1r("prefix"))
|
|
2773
2836
|
}, props.prefix), /* @__PURE__ */ React.createElement("div", {
|
|
2774
|
-
className: clsx(bem$
|
|
2837
|
+
className: clsx(bem$1r("control-wrapper"))
|
|
2775
2838
|
}, renderInput()), renderRightIcon(), suffix && /* @__PURE__ */ React.createElement("div", {
|
|
2776
|
-
className: clsx(bem$
|
|
2839
|
+
className: clsx(bem$1r("suffix"))
|
|
2777
2840
|
}, suffix)), renderMessage(), renderIntro());
|
|
2778
2841
|
});
|
|
2779
2842
|
const FIELD_KEY = Symbol("field");
|
|
2780
2843
|
const FieldNamespace = Object.assign(Field, { [COMPONENT_TYPE_KEY]: FIELD_KEY });
|
|
2781
|
-
var index$
|
|
2844
|
+
var index$X = "";
|
|
2782
2845
|
const FlexContext = createContext({});
|
|
2783
|
-
const [bem$
|
|
2846
|
+
const [bem$1q] = createNamespace("flexbox");
|
|
2784
2847
|
const Flex$1 = (props) => {
|
|
2785
2848
|
const {
|
|
2786
2849
|
direction,
|
|
@@ -2810,7 +2873,7 @@ const Flex$1 = (props) => {
|
|
|
2810
2873
|
};
|
|
2811
2874
|
const wrapCls = clsx(
|
|
2812
2875
|
className,
|
|
2813
|
-
bem$
|
|
2876
|
+
bem$1q([
|
|
2814
2877
|
direction,
|
|
2815
2878
|
wrap,
|
|
2816
2879
|
justify ? `justify-${justify}` : false,
|
|
@@ -2825,10 +2888,10 @@ const Flex$1 = (props) => {
|
|
|
2825
2888
|
...rest
|
|
2826
2889
|
}, children));
|
|
2827
2890
|
};
|
|
2828
|
-
const [bem$
|
|
2891
|
+
const [bem$1p] = createNamespace("flexitem");
|
|
2829
2892
|
const FlexItem = (props) => {
|
|
2830
2893
|
const { style, className, span, children, flex, ...others } = props;
|
|
2831
|
-
const classes = clsx(bem$
|
|
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`;
|
|
@@ -2864,9 +2927,9 @@ const FlexItem = (props) => {
|
|
|
2864
2927
|
});
|
|
2865
2928
|
};
|
|
2866
2929
|
const Flex = Object.assign(Flex$1, { Item: FlexItem });
|
|
2867
|
-
var index$
|
|
2930
|
+
var index$W = "";
|
|
2868
2931
|
const formatGap = (gap) => typeof gap === "number" ? `${gap}px` : gap;
|
|
2869
|
-
const [bem$
|
|
2932
|
+
const [bem$1o] = createNamespace("space");
|
|
2870
2933
|
const Space = (props) => {
|
|
2871
2934
|
const { wrap, block, direction = "horizontal", align, justify } = props;
|
|
2872
2935
|
const style = React.useMemo(() => {
|
|
@@ -2894,7 +2957,7 @@ const Space = (props) => {
|
|
|
2894
2957
|
return /* @__PURE__ */ React.createElement("div", {
|
|
2895
2958
|
className: clsx(
|
|
2896
2959
|
props.className,
|
|
2897
|
-
bem$
|
|
2960
|
+
bem$1o({
|
|
2898
2961
|
wrap,
|
|
2899
2962
|
block,
|
|
2900
2963
|
[`${direction}`]: !!direction,
|
|
@@ -2908,13 +2971,13 @@ const Space = (props) => {
|
|
|
2908
2971
|
return /* @__PURE__ */ React.createElement(React.Fragment, {
|
|
2909
2972
|
key: idx
|
|
2910
2973
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
2911
|
-
className: clsx(bem$
|
|
2974
|
+
className: clsx(bem$1o("item"))
|
|
2912
2975
|
}, child), !!props.divider && idx !== childList.length - 1 && /* @__PURE__ */ React.createElement("div", {
|
|
2913
|
-
className: clsx(bem$
|
|
2976
|
+
className: clsx(bem$1o("item-divider"))
|
|
2914
2977
|
}, props.divider));
|
|
2915
2978
|
}));
|
|
2916
2979
|
};
|
|
2917
|
-
var index$
|
|
2980
|
+
var index$V = "";
|
|
2918
2981
|
const CheckMark = memo(() => {
|
|
2919
2982
|
return /* @__PURE__ */ React.createElement("svg", {
|
|
2920
2983
|
width: "17px",
|
|
@@ -2943,7 +3006,7 @@ const CheckMark = memo(() => {
|
|
|
2943
3006
|
points: "34.2767388 22 24.797043 31.4796958 21 27.6826527"
|
|
2944
3007
|
})))))));
|
|
2945
3008
|
});
|
|
2946
|
-
const [bem$
|
|
3009
|
+
const [bem$1n] = createNamespace("selector");
|
|
2947
3010
|
const Selector = (p) => {
|
|
2948
3011
|
const props = mergeProps(p, {
|
|
2949
3012
|
multiple: false,
|
|
@@ -2967,7 +3030,7 @@ const Selector = (p) => {
|
|
|
2967
3030
|
const active = (value || []).includes(option.value);
|
|
2968
3031
|
const disabled = option.disabled || props.disabled;
|
|
2969
3032
|
const itemCls = clsx(
|
|
2970
|
-
bem$
|
|
3033
|
+
bem$1n("item", {
|
|
2971
3034
|
active: active && !props.multiple,
|
|
2972
3035
|
"multiple-active": active && props.multiple,
|
|
2973
3036
|
disabled
|
|
@@ -2989,17 +3052,17 @@ const Selector = (p) => {
|
|
|
2989
3052
|
}
|
|
2990
3053
|
}
|
|
2991
3054
|
}, option.label, option.description && /* @__PURE__ */ React.createElement("div", {
|
|
2992
|
-
className: clsx(bem$
|
|
3055
|
+
className: clsx(bem$1n("item-description"))
|
|
2993
3056
|
}, option.description), active && props.showCheckMark && /* @__PURE__ */ React.createElement("div", {
|
|
2994
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
3061
|
+
className: clsx(bem$1n(), props.className),
|
|
2999
3062
|
style: props.style
|
|
3000
3063
|
}, items);
|
|
3001
3064
|
};
|
|
3002
|
-
var index$
|
|
3065
|
+
var index$U = "";
|
|
3003
3066
|
function useResizeEffect(effect, targetRef) {
|
|
3004
3067
|
const fn = useMemoizedFn(effect);
|
|
3005
3068
|
useIsomorphicLayoutEffect(() => {
|
|
@@ -3144,7 +3207,7 @@ function pxToNumber(value) {
|
|
|
3144
3207
|
const match = value.match(/^\d*(\.\d*)?/);
|
|
3145
3208
|
return match ? Number(match[0]) : 0;
|
|
3146
3209
|
}
|
|
3147
|
-
const [bem$
|
|
3210
|
+
const [bem$1m] = createNamespace("typography");
|
|
3148
3211
|
const ellipsisDefaultValue = {
|
|
3149
3212
|
rows: 1
|
|
3150
3213
|
};
|
|
@@ -3224,7 +3287,7 @@ const TypographyBase = ({
|
|
|
3224
3287
|
className: clsx(
|
|
3225
3288
|
className,
|
|
3226
3289
|
`rv-typography__${renderType}`,
|
|
3227
|
-
bem$
|
|
3290
|
+
bem$1m([
|
|
3228
3291
|
type,
|
|
3229
3292
|
size,
|
|
3230
3293
|
{
|
|
@@ -3245,7 +3308,7 @@ const TypographyBase = ({
|
|
|
3245
3308
|
className: clsx(
|
|
3246
3309
|
className,
|
|
3247
3310
|
`rv-typography__${renderType}`,
|
|
3248
|
-
bem$
|
|
3311
|
+
bem$1m([
|
|
3249
3312
|
type,
|
|
3250
3313
|
size,
|
|
3251
3314
|
{
|
|
@@ -3285,7 +3348,7 @@ const Link = (props) => /* @__PURE__ */ React.createElement(TypographyBase, {
|
|
|
3285
3348
|
...props
|
|
3286
3349
|
});
|
|
3287
3350
|
const TypographyNamespace = Object.assign(TypographyBase, { Text, Title, Link });
|
|
3288
|
-
var index$
|
|
3351
|
+
var index$T = "";
|
|
3289
3352
|
function parseFormat(format2, currentTime) {
|
|
3290
3353
|
const { days } = currentTime;
|
|
3291
3354
|
let { hours, minutes, seconds, milliseconds } = currentTime;
|
|
@@ -3321,7 +3384,7 @@ function parseFormat(format2, currentTime) {
|
|
|
3321
3384
|
}
|
|
3322
3385
|
return format2;
|
|
3323
3386
|
}
|
|
3324
|
-
const [bem$
|
|
3387
|
+
const [bem$1l] = createNamespace("count-down");
|
|
3325
3388
|
const CountDown = forwardRef((p, ref) => {
|
|
3326
3389
|
const props = mergeProps(p, {
|
|
3327
3390
|
autoStart: true,
|
|
@@ -3355,12 +3418,12 @@ const CountDown = forwardRef((p, ref) => {
|
|
|
3355
3418
|
reset: resetTime
|
|
3356
3419
|
}));
|
|
3357
3420
|
return /* @__PURE__ */ React.createElement("div", {
|
|
3358
|
-
className: clsx(props.className, bem$
|
|
3421
|
+
className: clsx(props.className, bem$1l()),
|
|
3359
3422
|
style: props.style
|
|
3360
3423
|
}, props.children ? props.children(current) : timeText);
|
|
3361
3424
|
});
|
|
3362
|
-
var index$
|
|
3363
|
-
const [bem$
|
|
3425
|
+
var index$S = "";
|
|
3426
|
+
const [bem$1k] = createNamespace("divider");
|
|
3364
3427
|
const Divider = ({
|
|
3365
3428
|
children,
|
|
3366
3429
|
className,
|
|
@@ -3374,7 +3437,7 @@ const Divider = ({
|
|
|
3374
3437
|
role: "separator",
|
|
3375
3438
|
className: clsx(
|
|
3376
3439
|
className,
|
|
3377
|
-
bem$
|
|
3440
|
+
bem$1k({
|
|
3378
3441
|
dashed,
|
|
3379
3442
|
hairline,
|
|
3380
3443
|
"vertical": type === "vertical",
|
|
@@ -3384,8 +3447,8 @@ const Divider = ({
|
|
|
3384
3447
|
...props
|
|
3385
3448
|
}, children);
|
|
3386
3449
|
};
|
|
3387
|
-
var index$
|
|
3388
|
-
const [bem$
|
|
3450
|
+
var index$R = "";
|
|
3451
|
+
const [bem$1j] = createNamespace("image");
|
|
3389
3452
|
const Image$1 = (props) => {
|
|
3390
3453
|
const [status, setStatus] = useSetState({ loading: true, error: false });
|
|
3391
3454
|
const imgRef = useRef(null);
|
|
@@ -3428,7 +3491,7 @@ const Image$1 = (props) => {
|
|
|
3428
3491
|
const renderLoadingIcon = () => {
|
|
3429
3492
|
if (loadingIcon)
|
|
3430
3493
|
return React.cloneElement(loadingIcon, {
|
|
3431
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
3528
|
+
className: clsx(bem$1j("img")),
|
|
3466
3529
|
style: {
|
|
3467
3530
|
objectFit: fit
|
|
3468
3531
|
}
|
|
@@ -3479,7 +3542,7 @@ const Image$1 = (props) => {
|
|
|
3479
3542
|
return /* @__PURE__ */ React.createElement("div", {
|
|
3480
3543
|
className: clsx(
|
|
3481
3544
|
props.className,
|
|
3482
|
-
bem$
|
|
3545
|
+
bem$1j({
|
|
3483
3546
|
block,
|
|
3484
3547
|
round: props.round
|
|
3485
3548
|
})
|
|
@@ -3488,11 +3551,11 @@ const Image$1 = (props) => {
|
|
|
3488
3551
|
onClick: props.onClick
|
|
3489
3552
|
}, renderImage(), renderPlaceholder(), props.children);
|
|
3490
3553
|
};
|
|
3554
|
+
var index$Q = "";
|
|
3491
3555
|
var index$P = "";
|
|
3492
|
-
var index$O = "";
|
|
3493
3556
|
const DEFAULT_ROW_WIDTH = "100%";
|
|
3494
3557
|
const DEFAULT_LAST_ROW_WIDTH = "60%";
|
|
3495
|
-
const [bem$
|
|
3558
|
+
const [bem$1i] = createNamespace("skeleton");
|
|
3496
3559
|
const Skeleton = ({
|
|
3497
3560
|
children,
|
|
3498
3561
|
className,
|
|
@@ -3527,7 +3590,7 @@ const Skeleton = ({
|
|
|
3527
3590
|
const renderAvatar = () => {
|
|
3528
3591
|
if (props.avatar) {
|
|
3529
3592
|
return /* @__PURE__ */ React.createElement("div", {
|
|
3530
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
3604
|
+
className: clsx(bem$1i("title")),
|
|
3542
3605
|
style: { width, height }
|
|
3543
3606
|
});
|
|
3544
3607
|
}
|
|
@@ -3549,7 +3612,7 @@ const Skeleton = ({
|
|
|
3549
3612
|
const height = addUnit(getRowHeight(i));
|
|
3550
3613
|
return /* @__PURE__ */ React.createElement("div", {
|
|
3551
3614
|
key: i,
|
|
3552
|
-
className: clsx(bem$
|
|
3615
|
+
className: clsx(bem$1i("row")),
|
|
3553
3616
|
style: { width, height }
|
|
3554
3617
|
});
|
|
3555
3618
|
});
|
|
@@ -3558,14 +3621,14 @@ const Skeleton = ({
|
|
|
3558
3621
|
return /* @__PURE__ */ React.createElement("div", {
|
|
3559
3622
|
className: clsx(
|
|
3560
3623
|
className,
|
|
3561
|
-
bem$
|
|
3624
|
+
bem$1i({ animate: props.animate, round: props.round })
|
|
3562
3625
|
),
|
|
3563
3626
|
style
|
|
3564
3627
|
}, renderAvatar(), /* @__PURE__ */ React.createElement("div", {
|
|
3565
|
-
className: clsx(bem$
|
|
3628
|
+
className: clsx(bem$1i("content"))
|
|
3566
3629
|
}, renderTitle(), renderRows()));
|
|
3567
3630
|
};
|
|
3568
|
-
const [bem$
|
|
3631
|
+
const [bem$1h] = createNamespace("lazyload");
|
|
3569
3632
|
const Lazyload = (p) => {
|
|
3570
3633
|
const props = mergeProps(p, {
|
|
3571
3634
|
placeholder: /* @__PURE__ */ React.createElement(Skeleton, {
|
|
@@ -3577,7 +3640,7 @@ 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: clsx(bem$
|
|
3643
|
+
className: clsx(bem$1h(), className),
|
|
3581
3644
|
style: { height, ...style }
|
|
3582
3645
|
}, placeholder);
|
|
3583
3646
|
};
|
|
@@ -3586,7 +3649,7 @@ const getLazyImagePlaceholder = (bem2) => /* @__PURE__ */ React.createElement("d
|
|
|
3586
3649
|
}, /* @__PURE__ */ React.createElement(Photo, {
|
|
3587
3650
|
className: clsx(bem2("loading-icon"))
|
|
3588
3651
|
}));
|
|
3589
|
-
const [bem$
|
|
3652
|
+
const [bem$1g] = createNamespace("image");
|
|
3590
3653
|
const LazyImage = (p) => {
|
|
3591
3654
|
const props = mergeProps(p, {
|
|
3592
3655
|
fit: "fill",
|
|
@@ -3599,13 +3662,13 @@ const LazyImage = (p) => {
|
|
|
3599
3662
|
const { lazyload, ...imageProps } = props;
|
|
3600
3663
|
const renderPlaceholder = () => {
|
|
3601
3664
|
if (typeof lazyload === "boolean")
|
|
3602
|
-
return getLazyImagePlaceholder(bem$
|
|
3603
|
-
return lazyload.placeholder || getLazyImagePlaceholder(bem$
|
|
3665
|
+
return getLazyImagePlaceholder(bem$1g);
|
|
3666
|
+
return lazyload.placeholder || getLazyImagePlaceholder(bem$1g);
|
|
3604
3667
|
};
|
|
3605
3668
|
if (lazyload) {
|
|
3606
3669
|
const { className, style, height, width } = imageProps;
|
|
3607
3670
|
const attrs = {
|
|
3608
|
-
className: clsx(className, bem$
|
|
3671
|
+
className: clsx(className, bem$1g({ block: imageProps.block })),
|
|
3609
3672
|
style: { ...style, height, width }
|
|
3610
3673
|
};
|
|
3611
3674
|
return /* @__PURE__ */ React.createElement(Lazyload, {
|
|
@@ -3623,7 +3686,7 @@ const IMAGE_KEY = Symbol("image");
|
|
|
3623
3686
|
const ImageNamespace = Object.assign(LazyImage, {
|
|
3624
3687
|
[COMPONENT_TYPE_KEY]: IMAGE_KEY
|
|
3625
3688
|
});
|
|
3626
|
-
var index$
|
|
3689
|
+
var index$O = "";
|
|
3627
3690
|
const useDragAndPinch = createUseGesture([dragAction, pinchAction]);
|
|
3628
3691
|
function bound(position, min, max) {
|
|
3629
3692
|
let ret = position;
|
|
@@ -3647,7 +3710,7 @@ function rubberbandIfOutOfBounds(position, min, max, dimension, constant = 0.15)
|
|
|
3647
3710
|
return +rubberband(position - max, dimension, constant) + max;
|
|
3648
3711
|
return position;
|
|
3649
3712
|
}
|
|
3650
|
-
const [bem$
|
|
3713
|
+
const [bem$1f] = createNamespace("image-preview");
|
|
3651
3714
|
const Slide = (props) => {
|
|
3652
3715
|
const { dragLockRef } = props;
|
|
3653
3716
|
const controlRef = useRef(null);
|
|
@@ -3767,21 +3830,21 @@ const Slide = (props) => {
|
|
|
3767
3830
|
const { lazyload } = props;
|
|
3768
3831
|
const renderPlaceholder = () => {
|
|
3769
3832
|
if (typeof lazyload === "boolean")
|
|
3770
|
-
return getLazyImagePlaceholder(bem$
|
|
3771
|
-
return lazyload.placeholder || getLazyImagePlaceholder(bem$
|
|
3833
|
+
return getLazyImagePlaceholder(bem$1f);
|
|
3834
|
+
return lazyload.placeholder || getLazyImagePlaceholder(bem$1f);
|
|
3772
3835
|
};
|
|
3773
3836
|
return /* @__PURE__ */ React.createElement("div", {
|
|
3774
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
3844
|
+
className: clsx(bem$1f("control")),
|
|
3782
3845
|
ref: controlRef
|
|
3783
3846
|
}, /* @__PURE__ */ React.createElement(animated.div, {
|
|
3784
|
-
className: clsx(bem$
|
|
3847
|
+
className: clsx(bem$1f("image-wrapper")),
|
|
3785
3848
|
style: {
|
|
3786
3849
|
translateX: x,
|
|
3787
3850
|
translateY: y,
|
|
@@ -3801,7 +3864,7 @@ const Slide = (props) => {
|
|
|
3801
3864
|
alt: props.image
|
|
3802
3865
|
}))));
|
|
3803
3866
|
};
|
|
3804
|
-
const [bem$
|
|
3867
|
+
const [bem$1e] = createNamespace("image-preview");
|
|
3805
3868
|
const Slides = forwardRef((props, ref) => {
|
|
3806
3869
|
const slideWidth = window.innerWidth + unitToPx(16);
|
|
3807
3870
|
const [{ x }, api] = useSpring(() => ({
|
|
@@ -3863,10 +3926,10 @@ const Slides = forwardRef((props, ref) => {
|
|
|
3863
3926
|
}
|
|
3864
3927
|
);
|
|
3865
3928
|
return /* @__PURE__ */ React.createElement("div", {
|
|
3866
|
-
className: clsx(bem$
|
|
3929
|
+
className: clsx(bem$1e("slides")),
|
|
3867
3930
|
...bind()
|
|
3868
3931
|
}, /* @__PURE__ */ React.createElement(animated.div, {
|
|
3869
|
-
className: clsx(bem$
|
|
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}`,
|
|
@@ -3885,7 +3948,7 @@ const Slides = forwardRef((props, ref) => {
|
|
|
3885
3948
|
dragLockRef
|
|
3886
3949
|
}))));
|
|
3887
3950
|
});
|
|
3888
|
-
const [bem$
|
|
3951
|
+
const [bem$1d] = createNamespace("indicator");
|
|
3889
3952
|
const SwiperPagIndicator = React.memo(
|
|
3890
3953
|
({ vertical, ...props }) => {
|
|
3891
3954
|
const dots = [];
|
|
@@ -3894,7 +3957,7 @@ const SwiperPagIndicator = React.memo(
|
|
|
3894
3957
|
/* @__PURE__ */ React.createElement("div", {
|
|
3895
3958
|
key: i,
|
|
3896
3959
|
className: clsx(
|
|
3897
|
-
bem$
|
|
3960
|
+
bem$1d("dot", {
|
|
3898
3961
|
active: props.current === i
|
|
3899
3962
|
})
|
|
3900
3963
|
)
|
|
@@ -3902,12 +3965,12 @@ const SwiperPagIndicator = React.memo(
|
|
|
3902
3965
|
);
|
|
3903
3966
|
}
|
|
3904
3967
|
return /* @__PURE__ */ React.createElement("div", {
|
|
3905
|
-
className: clsx(props.className, bem$
|
|
3968
|
+
className: clsx(props.className, bem$1d({ vertical })),
|
|
3906
3969
|
style: props.style
|
|
3907
3970
|
}, dots);
|
|
3908
3971
|
}
|
|
3909
3972
|
);
|
|
3910
|
-
const [bem$
|
|
3973
|
+
const [bem$1c] = createNamespace("image-preview");
|
|
3911
3974
|
const ImagePreview$1 = React.forwardRef(
|
|
3912
3975
|
(p, ref) => {
|
|
3913
3976
|
const props = mergeProps(p, {
|
|
@@ -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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
3993
|
-
overlayClass: clsx(bem$
|
|
4055
|
+
className: clsx(bem$1c(), props.className),
|
|
4056
|
+
overlayClass: clsx(bem$1c("overlay")),
|
|
3994
4057
|
...pick(props, [
|
|
3995
4058
|
"visible",
|
|
3996
4059
|
"overlayStyle",
|
|
@@ -4057,7 +4120,7 @@ const open = (props) => {
|
|
|
4057
4120
|
const ImagePreview = Object.assign(ImagePreview$1, {
|
|
4058
4121
|
open
|
|
4059
4122
|
});
|
|
4060
|
-
var index$
|
|
4123
|
+
var index$N = "";
|
|
4061
4124
|
const prefix = "rv-empty-network-";
|
|
4062
4125
|
const renderStop = (color, offset, opacity) => /* @__PURE__ */ React.createElement("stop", {
|
|
4063
4126
|
stopColor: color,
|
|
@@ -4175,7 +4238,7 @@ const Network = /* @__PURE__ */ React.createElement("svg", {
|
|
|
4175
4238
|
rx: "1.114"
|
|
4176
4239
|
}))));
|
|
4177
4240
|
const PRESET_IMAGES = ["error", "search", "default"];
|
|
4178
|
-
const [bem$
|
|
4241
|
+
const [bem$1b] = createNamespace("empty");
|
|
4179
4242
|
const Empty = (p) => {
|
|
4180
4243
|
const props = mergeProps(p, {
|
|
4181
4244
|
image: "default"
|
|
@@ -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: clsx(bem$
|
|
4265
|
+
className: clsx(bem$1b("description"))
|
|
4203
4266
|
}, props.description);
|
|
4204
4267
|
}
|
|
4205
4268
|
return null;
|
|
@@ -4207,21 +4270,21 @@ const Empty = (p) => {
|
|
|
4207
4270
|
const renderBottom = () => {
|
|
4208
4271
|
if (props.children) {
|
|
4209
4272
|
return /* @__PURE__ */ React.createElement("div", {
|
|
4210
|
-
className: clsx(bem$
|
|
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: clsx(props.className, bem$
|
|
4279
|
+
className: clsx(props.className, bem$1b()),
|
|
4217
4280
|
style: props.style
|
|
4218
4281
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
4219
|
-
className: clsx(bem$
|
|
4282
|
+
className: clsx(bem$1b("image")),
|
|
4220
4283
|
style: getSizeStyle(props.imageSize)
|
|
4221
4284
|
}, renderImage()), renderDescription(), renderBottom());
|
|
4222
4285
|
};
|
|
4223
|
-
var index$
|
|
4224
|
-
const [bem$
|
|
4286
|
+
var index$M = "";
|
|
4287
|
+
const [bem$1a] = createNamespace("notify");
|
|
4225
4288
|
const Notify = ({
|
|
4226
4289
|
children,
|
|
4227
4290
|
...p
|
|
@@ -4247,7 +4310,7 @@ const Notify = ({
|
|
|
4247
4310
|
onClosed: props.onClosed,
|
|
4248
4311
|
teleport: props.teleport
|
|
4249
4312
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
4250
|
-
className: clsx(bem$
|
|
4313
|
+
className: clsx(bem$1a([props.type]), props.className)
|
|
4251
4314
|
}, children || props.message));
|
|
4252
4315
|
};
|
|
4253
4316
|
let lockCount = 0;
|
|
@@ -4358,10 +4421,10 @@ const exportNotifyNamespace = Object.assign(Notify, {
|
|
|
4358
4421
|
resetDefaultOptions,
|
|
4359
4422
|
clear
|
|
4360
4423
|
});
|
|
4361
|
-
var index$
|
|
4424
|
+
var index$L = "";
|
|
4362
4425
|
const DEFAULT_HEAD_HEIGHT = 50;
|
|
4363
4426
|
const TEXT_STATUS = ["pulling", "loosing", "success"];
|
|
4364
|
-
const [bem$
|
|
4427
|
+
const [bem$19] = createNamespace("pull-refresh");
|
|
4365
4428
|
const PullRefresh = (p) => {
|
|
4366
4429
|
const props = mergeProps(p, {
|
|
4367
4430
|
headHeight: 50,
|
|
@@ -4433,7 +4496,7 @@ const PullRefresh = (p) => {
|
|
|
4433
4496
|
nodes.push(
|
|
4434
4497
|
/* @__PURE__ */ React.createElement("div", {
|
|
4435
4498
|
key: "text",
|
|
4436
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
4507
|
+
className: clsx(bem$19("loading"))
|
|
4445
4508
|
}, getStatusText())
|
|
4446
4509
|
);
|
|
4447
4510
|
}
|
|
@@ -4530,21 +4593,21 @@ const PullRefresh = (p) => {
|
|
|
4530
4593
|
);
|
|
4531
4594
|
return /* @__PURE__ */ React.createElement("div", {
|
|
4532
4595
|
ref: root2,
|
|
4533
|
-
className: clsx(props.className, bem$
|
|
4596
|
+
className: clsx(props.className, bem$19()),
|
|
4534
4597
|
style: props.style
|
|
4535
4598
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
4536
4599
|
ref: track,
|
|
4537
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
4606
|
+
className: clsx(bem$19("head")),
|
|
4544
4607
|
style: getHeadStyle()
|
|
4545
4608
|
}, renderStatus()), props.children));
|
|
4546
4609
|
};
|
|
4547
|
-
var index$
|
|
4610
|
+
var index$K = "";
|
|
4548
4611
|
function isWindow$1(val) {
|
|
4549
4612
|
return val === window;
|
|
4550
4613
|
}
|
|
@@ -4574,7 +4637,7 @@ const useRect = (elementRef) => {
|
|
|
4574
4637
|
height: 0
|
|
4575
4638
|
};
|
|
4576
4639
|
};
|
|
4577
|
-
const [bem$
|
|
4640
|
+
const [bem$18] = createNamespace("swipe-cell");
|
|
4578
4641
|
const SwipeCell = forwardRef(
|
|
4579
4642
|
(p, instanceRef) => {
|
|
4580
4643
|
const props = mergeProps(p, {
|
|
@@ -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: clsx(bem$
|
|
4765
|
+
className: clsx(bem$18(side)),
|
|
4703
4766
|
onClick: getClickHandler(side, true)
|
|
4704
4767
|
}, props[`${side}Action`]);
|
|
4705
4768
|
}
|
|
@@ -4720,18 +4783,18 @@ const SwipeCell = forwardRef(
|
|
|
4720
4783
|
});
|
|
4721
4784
|
return /* @__PURE__ */ React.createElement("div", {
|
|
4722
4785
|
ref: root2,
|
|
4723
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
4792
|
+
className: clsx(bem$18("wrapper")),
|
|
4730
4793
|
style: wrapperStyle
|
|
4731
4794
|
}, renderSideContent("left", leftRef), props.children, renderSideContent("right", rightRef)));
|
|
4732
4795
|
}
|
|
4733
4796
|
);
|
|
4734
|
-
var index$
|
|
4797
|
+
var index$J = "";
|
|
4735
4798
|
const PRESET_ICONS = [
|
|
4736
4799
|
"qq",
|
|
4737
4800
|
"link",
|
|
@@ -4748,7 +4811,7 @@ function getIconURL(icon) {
|
|
|
4748
4811
|
}
|
|
4749
4812
|
return icon;
|
|
4750
4813
|
}
|
|
4751
|
-
const [bem$
|
|
4814
|
+
const [bem$17] = createNamespace("share-sheet");
|
|
4752
4815
|
const ShareSheet = (p) => {
|
|
4753
4816
|
const props = mergeProps(p, {
|
|
4754
4817
|
options: [],
|
|
@@ -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: clsx(bem$
|
|
4836
|
+
className: clsx(bem$17("header"))
|
|
4774
4837
|
}, title && /* @__PURE__ */ React.createElement("div", {
|
|
4775
|
-
className: clsx(bem$
|
|
4838
|
+
className: clsx(bem$17("title"))
|
|
4776
4839
|
}, title), description && /* @__PURE__ */ React.createElement("div", {
|
|
4777
|
-
className: clsx(bem$
|
|
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: clsx([bem$
|
|
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: clsx(bem$
|
|
4856
|
+
className: clsx(bem$17("icon"))
|
|
4794
4857
|
}) : icon, name && /* @__PURE__ */ React.createElement("span", {
|
|
4795
|
-
className: clsx(bem$
|
|
4858
|
+
className: clsx(bem$17("name"))
|
|
4796
4859
|
}, name), description && /* @__PURE__ */ React.createElement("span", {
|
|
4797
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
4889
|
+
className: clsx(bem$17()),
|
|
4827
4890
|
position: "bottom",
|
|
4828
4891
|
onClose: onCancel,
|
|
4829
4892
|
...pick(props, [
|
|
@@ -4839,8 +4902,8 @@ const ShareSheet = (p) => {
|
|
|
4839
4902
|
])
|
|
4840
4903
|
}, renderHeader(), renderRows(), renderCancelButton());
|
|
4841
4904
|
};
|
|
4842
|
-
var index$
|
|
4843
|
-
const [bem$
|
|
4905
|
+
var index$I = "";
|
|
4906
|
+
const [bem$16] = createNamespace("notice-bar");
|
|
4844
4907
|
const NoticeBar = forwardRef((p, ref) => {
|
|
4845
4908
|
const props = mergeProps(p, {
|
|
4846
4909
|
delay: 1,
|
|
@@ -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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
4996
|
+
className: clsx(bem$16("wrap")),
|
|
4934
4997
|
ref: wrapRef
|
|
4935
4998
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
4936
|
-
className: clsx(bem$
|
|
4999
|
+
className: clsx(bem$16("content"), { "rv-ellipsis": ellipsis }),
|
|
4937
5000
|
ref: contentRef,
|
|
4938
5001
|
style,
|
|
4939
5002
|
onTransitionEnd
|
|
@@ -4978,12 +5041,12 @@ const NoticeBar = forwardRef((p, ref) => {
|
|
|
4978
5041
|
}));
|
|
4979
5042
|
return state.show && /* @__PURE__ */ React.createElement("div", {
|
|
4980
5043
|
role: "alert",
|
|
4981
|
-
className: clsx(bem$
|
|
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());
|
|
4985
5048
|
});
|
|
4986
|
-
var index$
|
|
5049
|
+
var index$H = "";
|
|
4987
5050
|
const useLazyEffect = (effect, deps) => {
|
|
4988
5051
|
const [c, setC] = useState(0);
|
|
4989
5052
|
useEffect(() => {
|
|
@@ -5004,7 +5067,7 @@ const popupProps = [
|
|
|
5004
5067
|
"onOpened",
|
|
5005
5068
|
"onClickOverlay"
|
|
5006
5069
|
];
|
|
5007
|
-
const [bem$
|
|
5070
|
+
const [bem$15] = createNamespace("popover");
|
|
5008
5071
|
const Popover = forwardRef(
|
|
5009
5072
|
({ children, className, ...p }, ref) => {
|
|
5010
5073
|
const props = mergeProps(p, {
|
|
@@ -5092,15 +5155,15 @@ const Popover = forwardRef(
|
|
|
5092
5155
|
return /* @__PURE__ */ React.createElement("div", {
|
|
5093
5156
|
key: index2,
|
|
5094
5157
|
className: clsx(
|
|
5095
|
-
bem$
|
|
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: clsx(bem$
|
|
5164
|
+
className: clsx(bem$15("action-icon"))
|
|
5102
5165
|
}) : null, /* @__PURE__ */ React.createElement("div", {
|
|
5103
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(className, bem$
|
|
5212
|
+
className: clsx(className, bem$15([props.theme])),
|
|
5150
5213
|
position: "",
|
|
5151
5214
|
transition: "rv-zoom",
|
|
5152
5215
|
lockScroll: false,
|
|
@@ -5154,14 +5217,14 @@ const Popover = forwardRef(
|
|
|
5154
5217
|
onClose: onInternalClose,
|
|
5155
5218
|
...pick(props, popupProps)
|
|
5156
5219
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
5157
|
-
className: clsx(bem$
|
|
5220
|
+
className: clsx(bem$15("arrow"))
|
|
5158
5221
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
5159
5222
|
role: "menu",
|
|
5160
|
-
className: clsx(bem$
|
|
5223
|
+
className: clsx(bem$15("content"))
|
|
5161
5224
|
}, children || props.actions.map(renderAction))));
|
|
5162
5225
|
}
|
|
5163
5226
|
);
|
|
5164
|
-
var index$
|
|
5227
|
+
var index$G = "";
|
|
5165
5228
|
function useLockFn(fn) {
|
|
5166
5229
|
const lockRef = useRef(false);
|
|
5167
5230
|
return useCallback(
|
|
@@ -5327,7 +5390,7 @@ function useThrottleFn(fn, options) {
|
|
|
5327
5390
|
flush: throttled.flush
|
|
5328
5391
|
};
|
|
5329
5392
|
}
|
|
5330
|
-
const [bem$
|
|
5393
|
+
const [bem$14] = createNamespace("list");
|
|
5331
5394
|
function isWindow(element) {
|
|
5332
5395
|
return element === window;
|
|
5333
5396
|
}
|
|
@@ -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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(props.className, bem$
|
|
5502
|
+
className: clsx(props.className, bem$14()),
|
|
5440
5503
|
style: props.style
|
|
5441
5504
|
}, props.children, /* @__PURE__ */ React.createElement("div", {
|
|
5442
|
-
className: clsx(props.className, bem$
|
|
5505
|
+
className: clsx(props.className, bem$14("loadmore")),
|
|
5443
5506
|
ref: elementRef
|
|
5444
5507
|
}, renderPlaceholder()));
|
|
5445
5508
|
});
|
|
@@ -5459,8 +5522,8 @@ const List = forwardRef((p, ref) => {
|
|
|
5459
5522
|
errorText: props.errorText
|
|
5460
5523
|
}, props.children);
|
|
5461
5524
|
});
|
|
5462
|
-
var index$
|
|
5463
|
-
const [bem$
|
|
5525
|
+
var index$F = "";
|
|
5526
|
+
const [bem$13] = createNamespace("steps");
|
|
5464
5527
|
const Steps$1 = ({ children, className, style, ...p }) => {
|
|
5465
5528
|
const props = mergeProps(p, {
|
|
5466
5529
|
active: 0,
|
|
@@ -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: clsx(className, bem$
|
|
5534
|
+
className: clsx(className, bem$13([props.direction])),
|
|
5472
5535
|
style
|
|
5473
5536
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
5474
|
-
className: clsx(bem$
|
|
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,
|
|
@@ -5479,7 +5542,7 @@ const Steps$1 = ({ children, className, style, ...p }) => {
|
|
|
5479
5542
|
})
|
|
5480
5543
|
)));
|
|
5481
5544
|
};
|
|
5482
|
-
const [bem$
|
|
5545
|
+
const [bem$12] = createNamespace("step");
|
|
5483
5546
|
const StepsItem = ({ children, ...props }) => {
|
|
5484
5547
|
const { index: index2, parent: parentProps } = props;
|
|
5485
5548
|
const getStatus = () => {
|
|
@@ -5528,7 +5591,7 @@ const StepsItem = ({ children, ...props }) => {
|
|
|
5528
5591
|
if (isActive()) {
|
|
5529
5592
|
if (activeIcon) {
|
|
5530
5593
|
return React.cloneElement(activeIcon, {
|
|
5531
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
5613
|
+
className: clsx(bem$12("icon")),
|
|
5551
5614
|
color: activeColor,
|
|
5552
5615
|
style: {
|
|
5553
5616
|
color: activeColor
|
|
@@ -5555,7 +5618,7 @@ const StepsItem = ({ children, ...props }) => {
|
|
|
5555
5618
|
});
|
|
5556
5619
|
}
|
|
5557
5620
|
return /* @__PURE__ */ React.createElement("i", {
|
|
5558
|
-
className: clsx(bem$
|
|
5621
|
+
className: clsx(bem$12("circle")),
|
|
5559
5622
|
style: lineStyle
|
|
5560
5623
|
});
|
|
5561
5624
|
};
|
|
@@ -5565,23 +5628,23 @@ const StepsItem = ({ children, ...props }) => {
|
|
|
5565
5628
|
className: clsx(
|
|
5566
5629
|
props.className,
|
|
5567
5630
|
BORDER,
|
|
5568
|
-
bem$
|
|
5631
|
+
bem$12([parentProps.direction, { [status]: status }])
|
|
5569
5632
|
)
|
|
5570
5633
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
5571
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
5638
|
+
className: clsx(bem$12("circle-container")),
|
|
5576
5639
|
onClick: onClickStep
|
|
5577
5640
|
}, renderCircle()), /* @__PURE__ */ React.createElement("div", {
|
|
5578
|
-
className: clsx(bem$
|
|
5641
|
+
className: clsx(bem$12("line")),
|
|
5579
5642
|
style: lineStyle
|
|
5580
5643
|
}));
|
|
5581
5644
|
};
|
|
5582
5645
|
const Steps = Object.assign(Steps$1, { Item: StepsItem });
|
|
5583
|
-
var index$
|
|
5584
|
-
const [bem$
|
|
5646
|
+
var index$E = "";
|
|
5647
|
+
const [bem$11] = createNamespace("toast");
|
|
5585
5648
|
const Toast$1 = (p) => {
|
|
5586
5649
|
const props = mergeProps(p, {
|
|
5587
5650
|
type: "info",
|
|
@@ -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: clsx(bem$
|
|
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: clsx(bem$
|
|
5686
|
+
className: clsx(bem$11("loading")),
|
|
5624
5687
|
type: loadingType
|
|
5625
5688
|
});
|
|
5626
5689
|
}
|
|
@@ -5630,14 +5693,14 @@ const Toast$1 = (p) => {
|
|
|
5630
5693
|
const { message } = props;
|
|
5631
5694
|
if (isDef(message) && message !== "") {
|
|
5632
5695
|
return /* @__PURE__ */ React.createElement("div", {
|
|
5633
|
-
className: clsx(bem$
|
|
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
5702
|
className: clsx([
|
|
5640
|
-
bem$
|
|
5703
|
+
bem$11([props.position, { [props.type]: !props.icon }]),
|
|
5641
5704
|
props.className
|
|
5642
5705
|
]),
|
|
5643
5706
|
visible: props.visible,
|
|
@@ -5785,8 +5848,8 @@ ToastObj.resetDefaultOptions = (type) => {
|
|
|
5785
5848
|
}
|
|
5786
5849
|
};
|
|
5787
5850
|
const Toast = ToastObj;
|
|
5788
|
-
var index$
|
|
5789
|
-
const [bem
|
|
5851
|
+
var index$D = "";
|
|
5852
|
+
const [bem$10] = createNamespace("action-sheet");
|
|
5790
5853
|
const ActionSheet = (p) => {
|
|
5791
5854
|
const props = mergeProps(p, {
|
|
5792
5855
|
closeable: true,
|
|
@@ -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: clsx(bem
|
|
5872
|
+
className: clsx(bem$10("header"))
|
|
5810
5873
|
}, props.title, props.closeable && React.cloneElement(props.closeIcon, {
|
|
5811
|
-
className: clsx(bem
|
|
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: clsx(bem
|
|
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: clsx(bem
|
|
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: clsx(bem
|
|
5906
|
+
className: clsx(bem$10("loading-icon"))
|
|
5844
5907
|
}) : [
|
|
5845
5908
|
/* @__PURE__ */ React.createElement("span", {
|
|
5846
5909
|
key: `${index2}-1`,
|
|
5847
|
-
className: clsx(bem
|
|
5910
|
+
className: clsx(bem$10("name"))
|
|
5848
5911
|
}, name),
|
|
5849
5912
|
subname && /* @__PURE__ */ React.createElement("div", {
|
|
5850
5913
|
key: `${index2}-2`,
|
|
5851
|
-
className: clsx(bem
|
|
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: clsx(bem
|
|
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: clsx(bem
|
|
5943
|
+
className: clsx(bem$10("description"))
|
|
5881
5944
|
}, props.description);
|
|
5882
5945
|
}
|
|
5883
5946
|
return null;
|
|
@@ -5890,19 +5953,19 @@ const ActionSheet = (p) => {
|
|
|
5890
5953
|
};
|
|
5891
5954
|
return /* @__PURE__ */ React.createElement(Popup, {
|
|
5892
5955
|
visible: props.visible,
|
|
5893
|
-
className: clsx(bem
|
|
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: clsx(bem
|
|
5962
|
+
className: clsx(bem$10(), props.className),
|
|
5900
5963
|
style: props.style
|
|
5901
5964
|
}, renderHeader(), renderDescription(), /* @__PURE__ */ React.createElement("div", {
|
|
5902
|
-
className: clsx(bem
|
|
5965
|
+
className: clsx(bem$10("content"))
|
|
5903
5966
|
}, renderOptions(), props.children), renderCancel()));
|
|
5904
5967
|
};
|
|
5905
|
-
var index$
|
|
5968
|
+
var index$C = "";
|
|
5906
5969
|
function useRefs() {
|
|
5907
5970
|
const refs = React.useRef([]);
|
|
5908
5971
|
const setRefs = React.useCallback(
|
|
@@ -5935,7 +5998,7 @@ const useMergedState = (option) => {
|
|
|
5935
5998
|
}
|
|
5936
5999
|
return [mergedValue, triggerChange];
|
|
5937
6000
|
};
|
|
5938
|
-
const [bem
|
|
6001
|
+
const [bem$$] = createNamespace("dropdown-menu");
|
|
5939
6002
|
const DropdownMenu$1 = forwardRef(
|
|
5940
6003
|
(p, ref) => {
|
|
5941
6004
|
const props = mergeProps(p, {
|
|
@@ -6040,7 +6103,7 @@ const DropdownMenu$1 = forwardRef(
|
|
|
6040
6103
|
key: index2,
|
|
6041
6104
|
role: "button",
|
|
6042
6105
|
tabIndex: disabled ? -1 : 0,
|
|
6043
|
-
className: clsx(bem
|
|
6106
|
+
className: clsx(bem$$("item", { disabled })),
|
|
6044
6107
|
onClick: () => {
|
|
6045
6108
|
if (!disabled) {
|
|
6046
6109
|
toggleItem(index2);
|
|
@@ -6048,7 +6111,7 @@ const DropdownMenu$1 = forwardRef(
|
|
|
6048
6111
|
}
|
|
6049
6112
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
6050
6113
|
className: clsx(
|
|
6051
|
-
bem
|
|
6114
|
+
bem$$("title", {
|
|
6052
6115
|
down: showPopup === (props.direction === "down"),
|
|
6053
6116
|
active: showPopup
|
|
6054
6117
|
}),
|
|
@@ -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: clsx(bem
|
|
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: clsx(bem
|
|
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(
|
|
@@ -6126,7 +6189,7 @@ const inheritPropsKey = [
|
|
|
6126
6189
|
function inheritProps(parentProps, props) {
|
|
6127
6190
|
return { ...parentProps, ...props };
|
|
6128
6191
|
}
|
|
6129
|
-
const [bem$
|
|
6192
|
+
const [bem$_] = createNamespace("dropdown-item");
|
|
6130
6193
|
const DropdownMenuItem = forwardRef(({ options = [], placeholder = "\u8BF7\u9009\u62E9", ...props }, ref) => {
|
|
6131
6194
|
var _a;
|
|
6132
6195
|
const [state, setState] = useSetState({
|
|
@@ -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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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 },
|
|
@@ -6231,8 +6294,8 @@ const DropdownMenuItem = forwardRef(({ options = [], placeholder = "\u8BF7\u9009
|
|
|
6231
6294
|
return renderContent();
|
|
6232
6295
|
});
|
|
6233
6296
|
const DropdownMenu = Object.assign(DropdownMenu$1, { Item: DropdownMenuItem });
|
|
6234
|
-
var index$
|
|
6235
|
-
const [bem$
|
|
6297
|
+
var index$B = "";
|
|
6298
|
+
const [bem$Z] = createNamespace("search");
|
|
6236
6299
|
const Search = forwardRef((p, ref) => {
|
|
6237
6300
|
const props = mergeProps(p, {
|
|
6238
6301
|
shape: "square",
|
|
@@ -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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
6402
|
+
className: clsx(bem$Z("field")),
|
|
6340
6403
|
type: "search",
|
|
6341
6404
|
rows: 1,
|
|
6342
6405
|
value: value || "",
|
|
@@ -6364,15 +6427,15 @@ const Search = forwardRef((p, ref) => {
|
|
|
6364
6427
|
return /* @__PURE__ */ React.createElement("div", {
|
|
6365
6428
|
className: clsx(
|
|
6366
6429
|
props.className,
|
|
6367
|
-
bem$
|
|
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: clsx(bem$
|
|
6434
|
+
className: clsx(bem$Z("content", props.shape))
|
|
6372
6435
|
}, renderLabel(), renderField()), renderAction());
|
|
6373
6436
|
});
|
|
6374
|
-
var index$
|
|
6375
|
-
const [bem$
|
|
6437
|
+
var index$A = "";
|
|
6438
|
+
const [bem$Y] = createNamespace("sidebar-item");
|
|
6376
6439
|
const SidebarItem = (props) => {
|
|
6377
6440
|
const { parent, index: index2 } = props;
|
|
6378
6441
|
const onClick = () => {
|
|
@@ -6386,15 +6449,15 @@ 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: clsx(bem$
|
|
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: clsx(bem$
|
|
6457
|
+
className: clsx(bem$Y("text"))
|
|
6395
6458
|
}, title)));
|
|
6396
6459
|
};
|
|
6397
|
-
const [bem$
|
|
6460
|
+
const [bem$X] = createNamespace("sidebar");
|
|
6398
6461
|
const Sidebar$1 = ({
|
|
6399
6462
|
children,
|
|
6400
6463
|
className,
|
|
@@ -6425,10 +6488,10 @@ const Sidebar$1 = ({
|
|
|
6425
6488
|
[children]
|
|
6426
6489
|
);
|
|
6427
6490
|
return /* @__PURE__ */ React.createElement("div", {
|
|
6428
|
-
className: clsx(className, bem$
|
|
6491
|
+
className: clsx(className, bem$X("wrapper")),
|
|
6429
6492
|
style
|
|
6430
6493
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
6431
|
-
className: clsx(props.sideClassName, bem$
|
|
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: clsx(child.props.contentClassName, bem$
|
|
6507
|
+
className: clsx(child.props.contentClassName, bem$X("content")),
|
|
6445
6508
|
key: child.key,
|
|
6446
6509
|
style: {
|
|
6447
6510
|
...child.props.contentStyle,
|
|
@@ -6452,9 +6515,9 @@ const Sidebar$1 = ({
|
|
|
6452
6515
|
));
|
|
6453
6516
|
};
|
|
6454
6517
|
const Sidebar = Object.assign(Sidebar$1, { Item: SidebarItem });
|
|
6518
|
+
var index$z = "";
|
|
6455
6519
|
var index$y = "";
|
|
6456
|
-
|
|
6457
|
-
const [bem$V] = createNamespace("sticky");
|
|
6520
|
+
const [bem$W] = createNamespace("sticky");
|
|
6458
6521
|
const Sticky = (p) => {
|
|
6459
6522
|
const props = mergeProps(p, {
|
|
6460
6523
|
offsetTop: 0,
|
|
@@ -6558,11 +6621,11 @@ const Sticky = (p) => {
|
|
|
6558
6621
|
ref: root2,
|
|
6559
6622
|
style: rootStyle
|
|
6560
6623
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
6561
|
-
className: clsx(bem$
|
|
6624
|
+
className: clsx(bem$W({ fixed: state.fixed })),
|
|
6562
6625
|
style: stickyStyle
|
|
6563
6626
|
}, props.children));
|
|
6564
6627
|
};
|
|
6565
|
-
const [bem$
|
|
6628
|
+
const [bem$V] = createNamespace("tab");
|
|
6566
6629
|
const TabsTitle = forwardRef((props, ref) => {
|
|
6567
6630
|
const {
|
|
6568
6631
|
type,
|
|
@@ -6602,7 +6665,7 @@ const TabsTitle = forwardRef((props, ref) => {
|
|
|
6602
6665
|
const renderText = () => {
|
|
6603
6666
|
const Title2 = /* @__PURE__ */ React.createElement("span", {
|
|
6604
6667
|
className: clsx(
|
|
6605
|
-
bem$
|
|
6668
|
+
bem$V("text", { ellipsis: !props.scrollable && props.type !== "jumbo" })
|
|
6606
6669
|
),
|
|
6607
6670
|
style: {
|
|
6608
6671
|
backgroundColor: props.type === "capsule" && isActive && color
|
|
@@ -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: clsx(bem$
|
|
6680
|
+
className: clsx(bem$V("description")),
|
|
6618
6681
|
style: { backgroundColor: isActive && color }
|
|
6619
6682
|
}, (() => {
|
|
6620
6683
|
if (typeof props.description === "function") {
|
|
@@ -6634,7 +6697,7 @@ const TabsTitle = forwardRef((props, ref) => {
|
|
|
6634
6697
|
return /* @__PURE__ */ React.createElement("div", {
|
|
6635
6698
|
ref,
|
|
6636
6699
|
className: clsx([
|
|
6637
|
-
bem$
|
|
6700
|
+
bem$V({
|
|
6638
6701
|
active: props.isActive,
|
|
6639
6702
|
disabled: props.disabled
|
|
6640
6703
|
}),
|
|
@@ -6645,8 +6708,8 @@ const TabsTitle = forwardRef((props, ref) => {
|
|
|
6645
6708
|
onClick: props.onClick
|
|
6646
6709
|
}, renderText());
|
|
6647
6710
|
});
|
|
6648
|
-
var index$
|
|
6649
|
-
const [bem$
|
|
6711
|
+
var index$x = "";
|
|
6712
|
+
const [bem$U] = createNamespace("swiper-item");
|
|
6650
6713
|
const SwiperItem = React.forwardRef(
|
|
6651
6714
|
(props, ref) => {
|
|
6652
6715
|
const wrapperRef = React.useRef(null);
|
|
@@ -6665,7 +6728,7 @@ const SwiperItem = React.forwardRef(
|
|
|
6665
6728
|
ref: wrapperRef,
|
|
6666
6729
|
className: clsx(
|
|
6667
6730
|
props.className,
|
|
6668
|
-
bem$
|
|
6731
|
+
bem$U({
|
|
6669
6732
|
hidden: props.autoHeight && show2 === false
|
|
6670
6733
|
})
|
|
6671
6734
|
),
|
|
@@ -6674,7 +6737,7 @@ const SwiperItem = React.forwardRef(
|
|
|
6674
6737
|
}, props.children);
|
|
6675
6738
|
}
|
|
6676
6739
|
);
|
|
6677
|
-
const [bem$
|
|
6740
|
+
const [bem$T] = createNamespace("swiper");
|
|
6678
6741
|
const Swiper$1 = forwardRef((p, ref) => {
|
|
6679
6742
|
const props = mergeProps(p, {
|
|
6680
6743
|
initialSwipe: 0,
|
|
@@ -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: clsx(bem$
|
|
6897
|
+
className: clsx(bem$T("indicator", { vertical }))
|
|
6835
6898
|
}, /* @__PURE__ */ React.createElement(SwiperPagIndicator, {
|
|
6836
6899
|
...props.indicatorProps,
|
|
6837
6900
|
vertical,
|
|
@@ -6896,13 +6959,13 @@ const Swiper$1 = forwardRef((p, ref) => {
|
|
|
6896
6959
|
if (loop) {
|
|
6897
6960
|
return /* @__PURE__ */ React.createElement("div", {
|
|
6898
6961
|
className: clsx(
|
|
6899
|
-
bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
6993
|
+
className: clsx(bem$T("slide"))
|
|
6931
6994
|
}, React.cloneElement(child, {
|
|
6932
6995
|
ref: setChildrenRefs(index2),
|
|
6933
6996
|
autoHeight
|
|
@@ -6935,12 +6998,12 @@ const Swiper$1 = forwardRef((p, ref) => {
|
|
|
6935
6998
|
}));
|
|
6936
6999
|
};
|
|
6937
7000
|
return /* @__PURE__ */ React.createElement("div", {
|
|
6938
|
-
className: clsx(props.className, bem$
|
|
7001
|
+
className: clsx(props.className, bem$T({ vertical })),
|
|
6939
7002
|
style: computedStyle
|
|
6940
7003
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
6941
7004
|
ref: trackRef,
|
|
6942
7005
|
className: clsx(
|
|
6943
|
-
bem$
|
|
7006
|
+
bem$T("track", {
|
|
6944
7007
|
"allow-touch-move": props.touchable
|
|
6945
7008
|
})
|
|
6946
7009
|
),
|
|
@@ -6968,7 +7031,7 @@ function isScrollTarget(element, parent) {
|
|
|
6968
7031
|
return false;
|
|
6969
7032
|
}
|
|
6970
7033
|
const Swiper = Object.assign(Swiper$1, { Item: SwiperItem });
|
|
6971
|
-
const [bem$
|
|
7034
|
+
const [bem$S] = createNamespace("tabs");
|
|
6972
7035
|
const TabsContent = (props) => {
|
|
6973
7036
|
const innerEffect = useRef(false);
|
|
6974
7037
|
const { animated: animated2, swipeable, duration, swiperRef } = props;
|
|
@@ -6983,7 +7046,7 @@ const TabsContent = (props) => {
|
|
|
6983
7046
|
loop: false,
|
|
6984
7047
|
autoplay: false,
|
|
6985
7048
|
touchable: !!swipeable,
|
|
6986
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
7062
|
+
className: clsx(bem$S("pane-wrapper"))
|
|
7000
7063
|
}, child)));
|
|
7001
7064
|
}
|
|
7002
7065
|
return props.children;
|
|
@@ -7015,7 +7078,7 @@ const TabsContent = (props) => {
|
|
|
7015
7078
|
}, [props.currentIndex]);
|
|
7016
7079
|
return /* @__PURE__ */ React.createElement("div", {
|
|
7017
7080
|
className: clsx(
|
|
7018
|
-
bem$
|
|
7081
|
+
bem$S("content", {
|
|
7019
7082
|
animated: animated2 || swipeable
|
|
7020
7083
|
})
|
|
7021
7084
|
)
|
|
@@ -7060,7 +7123,7 @@ function getWindowHeight() {
|
|
|
7060
7123
|
function isReachBottom(offset = 0) {
|
|
7061
7124
|
return getScrollTop() + getWindowHeight() + offset >= getScrollHeight();
|
|
7062
7125
|
}
|
|
7063
|
-
const [bem$
|
|
7126
|
+
const [bem$R] = createNamespace("tabs");
|
|
7064
7127
|
const getTabName = (tab, index2) => {
|
|
7065
7128
|
var _a;
|
|
7066
7129
|
return (_a = tab == null ? void 0 : tab.name) != null ? _a : index2;
|
|
@@ -7290,21 +7353,21 @@ const Tabs$1 = forwardRef((p, ref) => {
|
|
|
7290
7353
|
return /* @__PURE__ */ React.createElement("div", {
|
|
7291
7354
|
ref: wrapRef,
|
|
7292
7355
|
className: clsx([
|
|
7293
|
-
bem$
|
|
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
7362
|
className: clsx(
|
|
7300
|
-
bem$
|
|
7363
|
+
bem$R("nav", [
|
|
7301
7364
|
type,
|
|
7302
7365
|
{ complete: scrollable, start: align === "start" }
|
|
7303
7366
|
])
|
|
7304
7367
|
),
|
|
7305
7368
|
style: navStyle
|
|
7306
7369
|
}, props.navLeft, renderNav(), type === "line" && !immediateRef.current && /* @__PURE__ */ React.createElement("div", {
|
|
7307
|
-
className: clsx(bem$
|
|
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: clsx(props.className, bem$
|
|
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,
|
|
@@ -7379,7 +7442,7 @@ const Tabs$1 = forwardRef((p, ref) => {
|
|
|
7379
7442
|
})
|
|
7380
7443
|
))));
|
|
7381
7444
|
});
|
|
7382
|
-
const [bem$
|
|
7445
|
+
const [bem$Q] = createNamespace("tab");
|
|
7383
7446
|
const TabPane = forwardRef((props, ref) => {
|
|
7384
7447
|
const parent = useContext(TabsContext);
|
|
7385
7448
|
const { animated: animated2, swipeable, scrollspy, lazyRender, lazyRenderPlaceholder } = parent.props;
|
|
@@ -7409,18 +7472,18 @@ const TabPane = forwardRef((props, ref) => {
|
|
|
7409
7472
|
return /* @__PURE__ */ React.createElement("div", {
|
|
7410
7473
|
ref,
|
|
7411
7474
|
role: "tabpanel",
|
|
7412
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
7482
|
+
className: clsx(bem$Q("pane"))
|
|
7420
7483
|
}, Content);
|
|
7421
7484
|
});
|
|
7422
7485
|
const Tabs = Object.assign(Tabs$1, { TabPane });
|
|
7423
|
-
var index$
|
|
7486
|
+
var index$w = "";
|
|
7424
7487
|
const useHeight = (element) => {
|
|
7425
7488
|
const [height, setHeight] = useState(0);
|
|
7426
7489
|
useEffect(() => {
|
|
@@ -7430,7 +7493,7 @@ const useHeight = (element) => {
|
|
|
7430
7493
|
}, [element.current]);
|
|
7431
7494
|
return height;
|
|
7432
7495
|
};
|
|
7433
|
-
const [bem$
|
|
7496
|
+
const [bem$P] = createNamespace("nav-bar");
|
|
7434
7497
|
const NavBar = (p) => {
|
|
7435
7498
|
const props = mergeProps(p, {
|
|
7436
7499
|
border: true,
|
|
@@ -7453,11 +7516,11 @@ const NavBar = (p) => {
|
|
|
7453
7516
|
return [
|
|
7454
7517
|
props.leftArrow && React.cloneElement(props.leftArrow, {
|
|
7455
7518
|
key: "arroe",
|
|
7456
|
-
className: clsx(bem$
|
|
7519
|
+
className: clsx(bem$P("arrow"))
|
|
7457
7520
|
}),
|
|
7458
7521
|
props.leftText && /* @__PURE__ */ React.createElement("span", {
|
|
7459
7522
|
key: "text",
|
|
7460
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
7532
|
+
className: clsx(bem$P("text"))
|
|
7470
7533
|
}, props.rightText);
|
|
7471
7534
|
};
|
|
7472
7535
|
const renderNavBar = () => {
|
|
@@ -7481,28 +7544,28 @@ const NavBar = (p) => {
|
|
|
7481
7544
|
ref: navBarRef,
|
|
7482
7545
|
style,
|
|
7483
7546
|
className: clsx(
|
|
7484
|
-
bem$
|
|
7547
|
+
bem$P({ fixed, "safe-area-inset-top": props.safeAreaInsetTop }),
|
|
7485
7548
|
{
|
|
7486
7549
|
[BORDER_BOTTOM]: border
|
|
7487
7550
|
},
|
|
7488
7551
|
props.className
|
|
7489
7552
|
)
|
|
7490
7553
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
7491
|
-
className: clsx(bem$
|
|
7554
|
+
className: clsx(bem$P("content"))
|
|
7492
7555
|
}, hasLeft && /* @__PURE__ */ React.createElement("div", {
|
|
7493
|
-
className: clsx(bem$
|
|
7556
|
+
className: clsx(bem$P("left")),
|
|
7494
7557
|
onClick: onClickLeft
|
|
7495
7558
|
}, renderLeft()), /* @__PURE__ */ React.createElement("div", {
|
|
7496
|
-
className: clsx(bem$
|
|
7559
|
+
className: clsx(bem$P("title"), "rv-ellipsis")
|
|
7497
7560
|
}, title), hasRight && /* @__PURE__ */ React.createElement("div", {
|
|
7498
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
7568
|
+
className: clsx(bem$P("placeholder")),
|
|
7506
7569
|
style: { height: navBarHeight ? `${navBarHeight}px` : void 0 }
|
|
7507
7570
|
});
|
|
7508
7571
|
}
|
|
@@ -7510,8 +7573,8 @@ const NavBar = (p) => {
|
|
|
7510
7573
|
};
|
|
7511
7574
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, renderPlaceholder(), renderNavBar());
|
|
7512
7575
|
};
|
|
7513
|
-
var index$
|
|
7514
|
-
const [bem$
|
|
7576
|
+
var index$v = "";
|
|
7577
|
+
const [bem$O] = createNamespace("tag");
|
|
7515
7578
|
const Tag = (p) => {
|
|
7516
7579
|
const props = mergeProps(p, {
|
|
7517
7580
|
show: true,
|
|
@@ -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: clsx(bem$
|
|
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: clsx(props.className, bem$
|
|
7619
|
+
className: clsx(props.className, bem$O([classes, type])),
|
|
7557
7620
|
onClick: props.onClick
|
|
7558
7621
|
}, props.children, CloseIcon);
|
|
7559
7622
|
};
|
|
@@ -7565,8 +7628,8 @@ const Tag = (p) => {
|
|
|
7565
7628
|
unmountOnExit: true
|
|
7566
7629
|
}, renderTag());
|
|
7567
7630
|
};
|
|
7568
|
-
var index$
|
|
7569
|
-
const [bem$
|
|
7631
|
+
var index$u = "";
|
|
7632
|
+
const [bem$N] = createNamespace("grid");
|
|
7570
7633
|
const Grid = ({ children, className, style, ...p }) => {
|
|
7571
7634
|
const props = mergeProps(p, {
|
|
7572
7635
|
center: true,
|
|
@@ -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: clsx(className, bem$
|
|
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(
|
|
@@ -7585,7 +7648,7 @@ const Grid = ({ children, className, style, ...p }) => {
|
|
|
7585
7648
|
})
|
|
7586
7649
|
));
|
|
7587
7650
|
};
|
|
7588
|
-
const [bem$
|
|
7651
|
+
const [bem$M] = createNamespace("grid-item");
|
|
7589
7652
|
const GridItem = ({
|
|
7590
7653
|
children,
|
|
7591
7654
|
className,
|
|
@@ -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: clsx(bem$
|
|
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: clsx(bem$
|
|
7708
|
+
className: clsx(bem$M("text"))
|
|
7646
7709
|
}, props.text);
|
|
7647
7710
|
}
|
|
7648
7711
|
return null;
|
|
@@ -7656,7 +7719,7 @@ const GridItem = ({
|
|
|
7656
7719
|
const { center, border, square, gutter, reverse, direction } = parent;
|
|
7657
7720
|
const classes = clsx(
|
|
7658
7721
|
props.contentClassName,
|
|
7659
|
-
bem$
|
|
7722
|
+
bem$M("content", [
|
|
7660
7723
|
direction,
|
|
7661
7724
|
{
|
|
7662
7725
|
center,
|
|
@@ -7669,7 +7732,7 @@ const GridItem = ({
|
|
|
7669
7732
|
{ [BORDER]: border }
|
|
7670
7733
|
);
|
|
7671
7734
|
return /* @__PURE__ */ React.createElement("div", {
|
|
7672
|
-
className: clsx(className, bem$
|
|
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,
|
|
@@ -7679,10 +7742,10 @@ const GridItem = ({
|
|
|
7679
7742
|
}, renderContent()));
|
|
7680
7743
|
};
|
|
7681
7744
|
const GridNamespace = Object.assign(Grid, { Item: GridItem });
|
|
7682
|
-
var index$
|
|
7745
|
+
var index$t = "";
|
|
7683
7746
|
const IndexBarContext = createContext({});
|
|
7684
7747
|
const INDEX_ANCHORE_KEY = Symbol("index-anchor");
|
|
7685
|
-
const [bem$
|
|
7748
|
+
const [bem$L] = createNamespace("index-anchor");
|
|
7686
7749
|
const IndexAnchor = forwardRef((props, ref) => {
|
|
7687
7750
|
const root2 = useRef();
|
|
7688
7751
|
const height = useHeight(root2);
|
|
@@ -7743,11 +7806,11 @@ const IndexAnchor = forwardRef((props, ref) => {
|
|
|
7743
7806
|
}
|
|
7744
7807
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
7745
7808
|
style: anchorStyle,
|
|
7746
|
-
className: clsx(bem$
|
|
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;
|
|
7750
|
-
const [bem$
|
|
7813
|
+
const [bem$K] = createNamespace("index-bar");
|
|
7751
7814
|
const IndexBar$1 = forwardRef((p, ref) => {
|
|
7752
7815
|
const props = mergeProps(p, {
|
|
7753
7816
|
sticky: true,
|
|
@@ -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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
8001
|
+
className: clsx(bem$K("sidebar")),
|
|
7939
8002
|
style: sidebarStyle,
|
|
7940
8003
|
onClick: onClickSidebar,
|
|
7941
8004
|
onTouchStart
|
|
@@ -7951,9 +8014,9 @@ function genAlphabet() {
|
|
|
7951
8014
|
return indexList;
|
|
7952
8015
|
}
|
|
7953
8016
|
const IndexBar = Object.assign(IndexBar$1, { Anchor: IndexAnchor });
|
|
7954
|
-
var index$
|
|
8017
|
+
var index$s = "";
|
|
7955
8018
|
const CollapseContext = createContext({});
|
|
7956
|
-
const [bem$
|
|
8019
|
+
const [bem$J] = createNamespace("collapse");
|
|
7957
8020
|
const Collapse$1 = (p) => {
|
|
7958
8021
|
const props = mergeProps(p, {
|
|
7959
8022
|
border: true
|
|
@@ -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: clsx(bem$
|
|
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(
|
|
@@ -8018,7 +8081,7 @@ function useLazyRender(show2) {
|
|
|
8018
8081
|
}, [show2]);
|
|
8019
8082
|
return (render2) => () => inited ? render2() : null;
|
|
8020
8083
|
}
|
|
8021
|
-
const [bem$
|
|
8084
|
+
const [bem$I] = createNamespace("collapse-item");
|
|
8022
8085
|
const CollapseItem = forwardRef(
|
|
8023
8086
|
({ className, style, ...p }, ref) => {
|
|
8024
8087
|
const props = mergeProps(p, {
|
|
@@ -8080,7 +8143,7 @@ const CollapseItem = forwardRef(
|
|
|
8080
8143
|
const { border, disabled, children, readOnly, ...others } = props;
|
|
8081
8144
|
return /* @__PURE__ */ React.createElement(Cell, {
|
|
8082
8145
|
className: clsx(
|
|
8083
|
-
bem$
|
|
8146
|
+
bem$I("title", {
|
|
8084
8147
|
disabled,
|
|
8085
8148
|
expanded,
|
|
8086
8149
|
borderless: !border
|
|
@@ -8095,25 +8158,25 @@ const CollapseItem = forwardRef(
|
|
|
8095
8158
|
};
|
|
8096
8159
|
const renderContent = lazyRender(() => /* @__PURE__ */ React.createElement("div", {
|
|
8097
8160
|
ref: wrapperRef,
|
|
8098
|
-
className: clsx(bem$
|
|
8161
|
+
className: clsx(bem$I("wrapper")),
|
|
8099
8162
|
onTransitionEnd
|
|
8100
8163
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
8101
8164
|
ref: contentRef,
|
|
8102
|
-
className: clsx(bem$
|
|
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: clsx(className, bem$
|
|
8172
|
+
className: clsx(className, bem$I({ border: index2 && props.border }))
|
|
8110
8173
|
}, renderTitle(), renderContent());
|
|
8111
8174
|
}
|
|
8112
8175
|
);
|
|
8113
8176
|
const Collapse = Object.assign(Collapse$1, { Item: CollapseItem });
|
|
8114
|
-
var index$
|
|
8177
|
+
var index$r = "";
|
|
8115
8178
|
const RadioContext = createContext({});
|
|
8116
|
-
const [bem$
|
|
8179
|
+
const [bem$H] = createNamespace("radio-group");
|
|
8117
8180
|
function RadioGroup(props) {
|
|
8118
8181
|
const [checked, setChecked] = useMergedState({
|
|
8119
8182
|
value: props.value,
|
|
@@ -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: clsx(props.className, bem$
|
|
8193
|
+
className: clsx(props.className, bem$H([props.direction])),
|
|
8131
8194
|
style: props.style,
|
|
8132
8195
|
role: "radiogroup"
|
|
8133
8196
|
}, props.children));
|
|
@@ -8212,7 +8275,7 @@ const Checker = (p) => {
|
|
|
8212
8275
|
onClick
|
|
8213
8276
|
}, props.labelPosition === "left" && renderLabel(), renderIcon(), props.labelPosition !== "left" && renderLabel());
|
|
8214
8277
|
};
|
|
8215
|
-
const [bem$
|
|
8278
|
+
const [bem$G] = createNamespace("radio");
|
|
8216
8279
|
function Radio$1(props) {
|
|
8217
8280
|
const { parent, ...context } = useContext(RadioContext);
|
|
8218
8281
|
const checked = useMemo(() => {
|
|
@@ -8225,7 +8288,7 @@ function Radio$1(props) {
|
|
|
8225
8288
|
};
|
|
8226
8289
|
return /* @__PURE__ */ React.createElement(Checker, {
|
|
8227
8290
|
...props,
|
|
8228
|
-
bem: bem$
|
|
8291
|
+
bem: bem$G,
|
|
8229
8292
|
role: "radio",
|
|
8230
8293
|
parent,
|
|
8231
8294
|
checked,
|
|
@@ -8233,7 +8296,7 @@ function Radio$1(props) {
|
|
|
8233
8296
|
});
|
|
8234
8297
|
}
|
|
8235
8298
|
const Radio = Object.assign(Radio$1, { Group: RadioGroup });
|
|
8236
|
-
var index$
|
|
8299
|
+
var index$q = "";
|
|
8237
8300
|
function getRateStatus(value, index2, allowHalf, readOnly) {
|
|
8238
8301
|
if (value >= index2) {
|
|
8239
8302
|
return { status: "full", value: 1 };
|
|
@@ -8250,7 +8313,7 @@ function getRateStatus(value, index2, allowHalf, readOnly) {
|
|
|
8250
8313
|
}
|
|
8251
8314
|
return { status: "void", value: 0 };
|
|
8252
8315
|
}
|
|
8253
|
-
const [bem$
|
|
8316
|
+
const [bem$F] = createNamespace("rate");
|
|
8254
8317
|
const Rate = ({
|
|
8255
8318
|
count = 5,
|
|
8256
8319
|
touchable = true,
|
|
@@ -8355,25 +8418,25 @@ const Rate = ({
|
|
|
8355
8418
|
ref: setItemRefs(index2),
|
|
8356
8419
|
role: "radio",
|
|
8357
8420
|
style,
|
|
8358
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
8439
|
+
className: clsx(bem$F("icon", [{ disabled, full: !isVoid }])),
|
|
8377
8440
|
style: {
|
|
8378
8441
|
color: disabled ? disabledColor : isVoid ? voidColor : color,
|
|
8379
8442
|
fontSize: size
|
|
@@ -8389,7 +8452,7 @@ const Rate = ({
|
|
|
8389
8452
|
ref: root2,
|
|
8390
8453
|
role: "radiogroup",
|
|
8391
8454
|
className: clsx(
|
|
8392
|
-
bem$
|
|
8455
|
+
bem$F({
|
|
8393
8456
|
readOnly: props.readOnly,
|
|
8394
8457
|
disabled: props.disabled
|
|
8395
8458
|
})
|
|
@@ -8398,7 +8461,7 @@ const Rate = ({
|
|
|
8398
8461
|
onTouchStart
|
|
8399
8462
|
}, list.map(renderStar));
|
|
8400
8463
|
};
|
|
8401
|
-
var index$
|
|
8464
|
+
var index$p = "";
|
|
8402
8465
|
function formatMonthTitle(date) {
|
|
8403
8466
|
return [date.getFullYear(), date.getMonth() + 1];
|
|
8404
8467
|
}
|
|
@@ -8464,7 +8527,7 @@ function getTrueValue(value) {
|
|
|
8464
8527
|
function getMonthEndDay(year, month) {
|
|
8465
8528
|
return 32 - new Date(year, month - 1, 32).getDate();
|
|
8466
8529
|
}
|
|
8467
|
-
const [bem$
|
|
8530
|
+
const [bem$E] = createNamespace("calendar");
|
|
8468
8531
|
const CalenderDay = (p) => {
|
|
8469
8532
|
const props = mergeProps(p, {
|
|
8470
8533
|
offset: 0
|
|
@@ -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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
8593
|
+
className: clsx(bem$E("selected-day")),
|
|
8531
8594
|
style: {
|
|
8532
8595
|
width: rowHeight,
|
|
8533
8596
|
height: rowHeight,
|
|
@@ -8540,19 +8603,19 @@ const CalenderDay = (p) => {
|
|
|
8540
8603
|
const { type, className } = props.item;
|
|
8541
8604
|
if (type === "placeholder") {
|
|
8542
8605
|
return /* @__PURE__ */ React.createElement("div", {
|
|
8543
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
8613
|
+
className: clsx(bem$E("day", type), className),
|
|
8551
8614
|
tabIndex: type === "disabled" ? void 0 : -1,
|
|
8552
8615
|
onClick
|
|
8553
8616
|
}, renderContent());
|
|
8554
8617
|
};
|
|
8555
|
-
const [bem$
|
|
8618
|
+
const [bem$D] = createNamespace("calendar");
|
|
8556
8619
|
const CalenderMonth = forwardRef((props, ref) => {
|
|
8557
8620
|
const [visible, setVisible] = useState();
|
|
8558
8621
|
const daysRef = useRef();
|
|
@@ -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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
8784
|
+
className: clsx(bem$D("days"))
|
|
8722
8785
|
}, renderMark(), (shouldRender ? days : placeholders).map(renderDay));
|
|
8723
8786
|
useImperativeHandle(ref, () => ({
|
|
8724
8787
|
getTitle,
|
|
@@ -8727,18 +8790,18 @@ const CalenderMonth = forwardRef((props, ref) => {
|
|
|
8727
8790
|
scrollIntoView
|
|
8728
8791
|
}));
|
|
8729
8792
|
return /* @__PURE__ */ React.createElement("div", {
|
|
8730
|
-
className: clsx(bem$
|
|
8793
|
+
className: clsx(bem$D("month")),
|
|
8731
8794
|
ref: setMonthRef
|
|
8732
8795
|
}, renderTitle(), renderDays());
|
|
8733
8796
|
});
|
|
8734
|
-
const [bem$
|
|
8797
|
+
const [bem$C] = createNamespace("calendar");
|
|
8735
8798
|
const CalenderHeader = (props) => {
|
|
8736
8799
|
const { locale } = useContext(ConfigProvider$1);
|
|
8737
8800
|
const renderTitle = () => {
|
|
8738
8801
|
if (props.showTitle) {
|
|
8739
8802
|
const text = props.title || locale.vanCalendar.title;
|
|
8740
8803
|
return /* @__PURE__ */ React.createElement("div", {
|
|
8741
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
8816
|
+
className: clsx(bem$C("header-subtitle")),
|
|
8754
8817
|
onClick: onClickSubtitle
|
|
8755
8818
|
}, props.subtitle);
|
|
8756
8819
|
}
|
|
@@ -8765,17 +8828,17 @@ const CalenderHeader = (props) => {
|
|
|
8765
8828
|
...weekdays.slice(0, firstDayOfWeek)
|
|
8766
8829
|
];
|
|
8767
8830
|
return /* @__PURE__ */ React.createElement("div", {
|
|
8768
|
-
className: clsx(bem$
|
|
8831
|
+
className: clsx(bem$C("weekdays"))
|
|
8769
8832
|
}, renderWeekDaysContent.map((text, i) => /* @__PURE__ */ React.createElement("span", {
|
|
8770
8833
|
key: i,
|
|
8771
|
-
className: clsx(bem$
|
|
8834
|
+
className: clsx(bem$C("weekday"))
|
|
8772
8835
|
}, text)));
|
|
8773
8836
|
};
|
|
8774
8837
|
return /* @__PURE__ */ React.createElement("div", {
|
|
8775
|
-
className: clsx(bem$
|
|
8838
|
+
className: clsx(bem$C("header"))
|
|
8776
8839
|
}, renderTitle(), renderSubtitle(), renderWeekDays());
|
|
8777
8840
|
};
|
|
8778
|
-
const [bem$
|
|
8841
|
+
const [bem$B] = createNamespace("calendar");
|
|
8779
8842
|
const defaultMinDate = getToday();
|
|
8780
8843
|
const defaultMaxDate = (() => {
|
|
8781
8844
|
const now = getToday();
|
|
@@ -9116,7 +9179,7 @@ const Calendar = forwardRef(
|
|
|
9116
9179
|
block: true,
|
|
9117
9180
|
type: "danger",
|
|
9118
9181
|
color: props.color,
|
|
9119
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(className, bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
9261
|
+
className: clsx(bem$B("popup")),
|
|
9199
9262
|
round: props.round,
|
|
9200
9263
|
position: props.position,
|
|
9201
9264
|
closeable: props.showTitle || props.showSubtitle,
|
|
@@ -9214,7 +9277,7 @@ const Calendar = forwardRef(
|
|
|
9214
9277
|
return renderCalendar();
|
|
9215
9278
|
}
|
|
9216
9279
|
);
|
|
9217
|
-
var index$
|
|
9280
|
+
var index$o = "";
|
|
9218
9281
|
function useCascaderExtend(options, keys, value) {
|
|
9219
9282
|
const { childrenKey, valueKey } = keys;
|
|
9220
9283
|
const depth = useMemo(() => {
|
|
@@ -9290,7 +9353,7 @@ function useDebounceEffect(effect, deps, options) {
|
|
|
9290
9353
|
}, deps);
|
|
9291
9354
|
useUpdateEffect(effect, [flag]);
|
|
9292
9355
|
}
|
|
9293
|
-
const [bem$
|
|
9356
|
+
const [bem$A] = createNamespace("cascader");
|
|
9294
9357
|
const Cascader = (props) => {
|
|
9295
9358
|
const { locale } = useContext(ConfigProvider$1);
|
|
9296
9359
|
const [value, setValue] = useState(
|
|
@@ -9368,19 +9431,19 @@ const Cascader = (props) => {
|
|
|
9368
9431
|
return null;
|
|
9369
9432
|
if (props.closeIcon) {
|
|
9370
9433
|
return React.cloneElement(props.closeIcon, {
|
|
9371
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
9444
|
+
className: clsx(bem$A("header"))
|
|
9382
9445
|
}, /* @__PURE__ */ React.createElement("h2", {
|
|
9383
|
-
className: clsx(bem$
|
|
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);
|
|
@@ -9388,7 +9451,7 @@ const Cascader = (props) => {
|
|
|
9388
9451
|
return /* @__PURE__ */ React.createElement("li", {
|
|
9389
9452
|
key: option[valueKey],
|
|
9390
9453
|
className: clsx(
|
|
9391
|
-
bem$
|
|
9454
|
+
bem$A("option", {
|
|
9392
9455
|
selected,
|
|
9393
9456
|
disabled: option.disabled
|
|
9394
9457
|
}),
|
|
@@ -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: clsx(bem$
|
|
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: clsx(bem$
|
|
9468
|
+
className: clsx(bem$A("options"))
|
|
9406
9469
|
}, options.map(
|
|
9407
9470
|
(option) => renderOption(
|
|
9408
9471
|
option,
|
|
@@ -9417,7 +9480,7 @@ const Cascader = (props) => {
|
|
|
9417
9480
|
key: tabIndex,
|
|
9418
9481
|
title,
|
|
9419
9482
|
titleClass: clsx(
|
|
9420
|
-
bem$
|
|
9483
|
+
bem$A("tab", {
|
|
9421
9484
|
unselected: !selectedOption
|
|
9422
9485
|
})
|
|
9423
9486
|
)
|
|
@@ -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: clsx(bem$
|
|
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: clsx(bem$
|
|
9500
|
+
className: clsx(bem$A())
|
|
9438
9501
|
}, renderHeader(), tabs.length ? renderTabs() : null);
|
|
9439
9502
|
};
|
|
9440
9503
|
const CascaderPopup = React.forwardRef(
|
|
@@ -9550,9 +9613,9 @@ const CascaderPopup = React.forwardRef(
|
|
|
9550
9613
|
}, content), (_a = props.children) == null ? void 0 : _a.call(props, value, items, actions));
|
|
9551
9614
|
}
|
|
9552
9615
|
);
|
|
9553
|
-
var index$
|
|
9616
|
+
var index$n = "";
|
|
9554
9617
|
const CheckboxContext = createContext({});
|
|
9555
|
-
const [bem$
|
|
9618
|
+
const [bem$z] = createNamespace("checkbox-group");
|
|
9556
9619
|
const CheckBoxGroup = forwardRef(
|
|
9557
9620
|
(props, ref) => {
|
|
9558
9621
|
const [childrenRefs, setChildrenRefs] = useRefs();
|
|
@@ -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: clsx(props.className, bem$
|
|
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")
|
|
@@ -9598,7 +9661,7 @@ const CheckBoxGroup = forwardRef(
|
|
|
9598
9661
|
})));
|
|
9599
9662
|
}
|
|
9600
9663
|
);
|
|
9601
|
-
const [bem$
|
|
9664
|
+
const [bem$y] = createNamespace("checkbox");
|
|
9602
9665
|
const CheckBox = forwardRef((p, ref) => {
|
|
9603
9666
|
const props = mergeProps(p, {
|
|
9604
9667
|
bindGroup: true
|
|
@@ -9652,7 +9715,7 @@ const CheckBox = forwardRef((p, ref) => {
|
|
|
9652
9715
|
}));
|
|
9653
9716
|
return /* @__PURE__ */ React.createElement(Checker, {
|
|
9654
9717
|
...props,
|
|
9655
|
-
bem: bem$
|
|
9718
|
+
bem: bem$y,
|
|
9656
9719
|
role: "checkbox",
|
|
9657
9720
|
parent,
|
|
9658
9721
|
checked: isChecked,
|
|
@@ -9663,7 +9726,7 @@ const CheckBox = forwardRef((p, ref) => {
|
|
|
9663
9726
|
});
|
|
9664
9727
|
CheckBox.displayName = "Checkbox";
|
|
9665
9728
|
const Checkbox = Object.assign(CheckBox, { Group: CheckBoxGroup });
|
|
9666
|
-
var index$
|
|
9729
|
+
var index$m = "";
|
|
9667
9730
|
const DEFAULT_DURATION = 200;
|
|
9668
9731
|
const MOMENTUM_LIMIT_TIME = 300;
|
|
9669
9732
|
const MOMENTUM_LIMIT_DISTANCE = 15;
|
|
@@ -9673,7 +9736,7 @@ function getElementTranslateY(element) {
|
|
|
9673
9736
|
const translateY = transform.slice(7, transform.length - 1).split(", ")[5];
|
|
9674
9737
|
return Number(translateY);
|
|
9675
9738
|
}
|
|
9676
|
-
const [bem$
|
|
9739
|
+
const [bem$x] = createNamespace("picker-column");
|
|
9677
9740
|
const PickerColumn = memo(
|
|
9678
9741
|
forwardRef((props, ref) => {
|
|
9679
9742
|
const { locale } = useContext(ConfigProvider$1);
|
|
@@ -9856,7 +9919,7 @@ const PickerColumn = memo(
|
|
|
9856
9919
|
style: optionStyle,
|
|
9857
9920
|
tabIndex: disabled ? -1 : 0,
|
|
9858
9921
|
className: clsx(
|
|
9859
|
-
bem$
|
|
9922
|
+
bem$x("item", {
|
|
9860
9923
|
disabled,
|
|
9861
9924
|
selected: option[valueKey] === value
|
|
9862
9925
|
})
|
|
@@ -9881,7 +9944,7 @@ const PickerColumn = memo(
|
|
|
9881
9944
|
stopMomentum
|
|
9882
9945
|
}));
|
|
9883
9946
|
return /* @__PURE__ */ React.createElement("div", {
|
|
9884
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
9959
|
+
className: clsx(bem$x("wrapper")),
|
|
9897
9960
|
onTransitionEnd: stopMomentum
|
|
9898
9961
|
}, renderOptions()));
|
|
9899
9962
|
}),
|
|
@@ -10041,7 +10104,7 @@ function useColumnsExtend(columns, keys, value) {
|
|
|
10041
10104
|
[columns, keys, value]
|
|
10042
10105
|
);
|
|
10043
10106
|
}
|
|
10044
|
-
const [bem$
|
|
10107
|
+
const [bem$w] = createNamespace("picker");
|
|
10045
10108
|
function PickerInner(props) {
|
|
10046
10109
|
const { locale } = useContext(ConfigProvider$1);
|
|
10047
10110
|
const wrapper = useRef(null);
|
|
@@ -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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
10234
|
+
className: clsx(bem$w("columns")),
|
|
10172
10235
|
style: columnsStyle
|
|
10173
10236
|
}, renderColumnItems(), /* @__PURE__ */ React.createElement("div", {
|
|
10174
|
-
className: clsx(bem$
|
|
10237
|
+
className: clsx(bem$w("mask")),
|
|
10175
10238
|
style: maskStyle
|
|
10176
10239
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
10177
|
-
className: clsx(BORDER_UNSET_TOP_BOTTOM, bem$
|
|
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: clsx(bem$
|
|
10248
|
+
className: clsx(bem$w(), props.className)
|
|
10186
10249
|
}, props.toolbarPosition === "top" ? renderToolbar() : null, props.loading ? /* @__PURE__ */ React.createElement(Loading, {
|
|
10187
|
-
className: clsx(bem$
|
|
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) {
|
|
@@ -10666,25 +10729,25 @@ const TimePicker = forwardRef(
|
|
|
10666
10729
|
});
|
|
10667
10730
|
}
|
|
10668
10731
|
);
|
|
10669
|
-
const [bem$
|
|
10732
|
+
const [bem$v] = createNamespace("datetime-picker");
|
|
10670
10733
|
const DateTimePicker = forwardRef(
|
|
10671
10734
|
(props, ref) => {
|
|
10672
10735
|
const isTimePicker = props.type === "time";
|
|
10673
10736
|
if (isTimePicker)
|
|
10674
10737
|
return /* @__PURE__ */ React.createElement(TimePicker, {
|
|
10675
10738
|
ref,
|
|
10676
|
-
className: clsx(bem$
|
|
10739
|
+
className: clsx(bem$v()),
|
|
10677
10740
|
...props
|
|
10678
10741
|
});
|
|
10679
10742
|
return /* @__PURE__ */ React.createElement(DatePicker, {
|
|
10680
10743
|
ref,
|
|
10681
|
-
className: clsx(bem$
|
|
10744
|
+
className: clsx(bem$v()),
|
|
10682
10745
|
...props
|
|
10683
10746
|
});
|
|
10684
10747
|
}
|
|
10685
10748
|
);
|
|
10686
|
-
var index$
|
|
10687
|
-
const [bem$
|
|
10749
|
+
var index$l = "";
|
|
10750
|
+
const [bem$u] = createNamespace("password-input");
|
|
10688
10751
|
const PasswordInput = forwardRef(
|
|
10689
10752
|
(p, ref) => {
|
|
10690
10753
|
const props = mergeProps(p, {
|
|
@@ -10766,13 +10829,13 @@ const PasswordInput = forwardRef(
|
|
|
10766
10829
|
[BORDER_LEFT]: showBorder,
|
|
10767
10830
|
[props.highlightClass]: props.highlightClass && char && !props.mask
|
|
10768
10831
|
},
|
|
10769
|
-
bem$
|
|
10832
|
+
bem$u("item", { focus: showCursor })
|
|
10770
10833
|
),
|
|
10771
10834
|
style
|
|
10772
10835
|
}, mask ? /* @__PURE__ */ React.createElement("i", {
|
|
10773
10836
|
style: { visibility: char ? "visible" : "hidden" }
|
|
10774
10837
|
}) : char, showCursor && /* @__PURE__ */ React.createElement("div", {
|
|
10775
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
10873
|
+
className: clsx(bem$u(), props.className),
|
|
10811
10874
|
style: props.style
|
|
10812
10875
|
}, /* @__PURE__ */ React.createElement("ul", {
|
|
10813
|
-
className: clsx(bem$
|
|
10876
|
+
className: clsx(bem$u("security"), {
|
|
10814
10877
|
[BORDER_SURROUND]: !props.gutter
|
|
10815
10878
|
})
|
|
10816
10879
|
}, renderPoints(), /* @__PURE__ */ React.createElement("input", {
|
|
@@ -10837,11 +10900,11 @@ 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: clsx(bem$
|
|
10903
|
+
className: clsx(bem$u(props.errorInfo ? "error-info" : "info"))
|
|
10841
10904
|
}, info) : null);
|
|
10842
10905
|
}
|
|
10843
10906
|
);
|
|
10844
|
-
var index$
|
|
10907
|
+
var index$k = "";
|
|
10845
10908
|
const CollapseIcon = ({ bem: bem2 }) => /* @__PURE__ */ React.createElement("svg", {
|
|
10846
10909
|
className: clsx(bem2("collapse-icon")),
|
|
10847
10910
|
viewBox: "0 0 30 24"
|
|
@@ -10856,7 +10919,7 @@ const DeleteIcon = ({ bem: bem2 }) => /* @__PURE__ */ React.createElement("svg",
|
|
|
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",
|
|
10857
10920
|
fill: "currentColor"
|
|
10858
10921
|
}));
|
|
10859
|
-
const [bem$
|
|
10922
|
+
const [bem$t] = createNamespace("key");
|
|
10860
10923
|
const NumberKeyboardKey = ({
|
|
10861
10924
|
children,
|
|
10862
10925
|
className,
|
|
@@ -10888,18 +10951,18 @@ const NumberKeyboardKey = ({
|
|
|
10888
10951
|
const renderContent = () => {
|
|
10889
10952
|
if (props.loading) {
|
|
10890
10953
|
return /* @__PURE__ */ React.createElement(Loading, {
|
|
10891
|
-
className: clsx(bem$
|
|
10954
|
+
className: clsx(bem$t("loading-icon"))
|
|
10892
10955
|
});
|
|
10893
10956
|
}
|
|
10894
10957
|
const text = children || props.text;
|
|
10895
10958
|
switch (props.type) {
|
|
10896
10959
|
case "delete":
|
|
10897
10960
|
return text || /* @__PURE__ */ React.createElement(DeleteIcon, {
|
|
10898
|
-
bem: bem$
|
|
10961
|
+
bem: bem$t
|
|
10899
10962
|
});
|
|
10900
10963
|
case "extra":
|
|
10901
10964
|
return text || /* @__PURE__ */ React.createElement(CollapseIcon, {
|
|
10902
|
-
bem: bem$
|
|
10965
|
+
bem: bem$t
|
|
10903
10966
|
});
|
|
10904
10967
|
default:
|
|
10905
10968
|
return text;
|
|
@@ -10907,7 +10970,7 @@ const NumberKeyboardKey = ({
|
|
|
10907
10970
|
};
|
|
10908
10971
|
return /* @__PURE__ */ React.createElement("div", {
|
|
10909
10972
|
style,
|
|
10910
|
-
className: clsx(className, bem$
|
|
10973
|
+
className: clsx(className, bem$t("wrapper", { wider: props.wider })),
|
|
10911
10974
|
onTouchStart,
|
|
10912
10975
|
onTouchMove,
|
|
10913
10976
|
onTouchEnd,
|
|
@@ -10916,7 +10979,7 @@ const NumberKeyboardKey = ({
|
|
|
10916
10979
|
role: "button",
|
|
10917
10980
|
tabIndex: 0,
|
|
10918
10981
|
className: clsx(
|
|
10919
|
-
bem$
|
|
10982
|
+
bem$t([
|
|
10920
10983
|
props.color,
|
|
10921
10984
|
{
|
|
10922
10985
|
large: props.large,
|
|
@@ -10927,7 +10990,7 @@ const NumberKeyboardKey = ({
|
|
|
10927
10990
|
)
|
|
10928
10991
|
}, renderContent()));
|
|
10929
10992
|
};
|
|
10930
|
-
const [bem$
|
|
10993
|
+
const [bem$s] = createNamespace("number-keyboard");
|
|
10931
10994
|
const NumberKeyboard = ({
|
|
10932
10995
|
className,
|
|
10933
10996
|
style,
|
|
@@ -11024,12 +11087,12 @@ const NumberKeyboard = ({
|
|
|
11024
11087
|
return null;
|
|
11025
11088
|
}
|
|
11026
11089
|
return /* @__PURE__ */ React.createElement("div", {
|
|
11027
|
-
className: clsx(bem$
|
|
11090
|
+
className: clsx(bem$s("header"))
|
|
11028
11091
|
}, title && /* @__PURE__ */ React.createElement("h2", {
|
|
11029
|
-
className: clsx(bem$
|
|
11092
|
+
className: clsx(bem$s("title"))
|
|
11030
11093
|
}, title), showClose && /* @__PURE__ */ React.createElement("button", {
|
|
11031
11094
|
type: "button",
|
|
11032
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
11124
|
+
className: clsx(bem$s("sidebar"))
|
|
11062
11125
|
}, props.showDeleteKey && /* @__PURE__ */ React.createElement(NumberKeyboardKey, {
|
|
11063
11126
|
large: true,
|
|
11064
11127
|
text: props.deleteButtonText,
|
|
@@ -11096,21 +11159,21 @@ const NumberKeyboard = ({
|
|
|
11096
11159
|
style: { ...style, ...getZIndexStyle(props.zIndex) },
|
|
11097
11160
|
className: clsx(
|
|
11098
11161
|
className,
|
|
11099
|
-
bem$
|
|
11162
|
+
bem$s({
|
|
11100
11163
|
unfit: !props.safeAreaInsetBottom,
|
|
11101
11164
|
"with-title": !!Title2
|
|
11102
11165
|
})
|
|
11103
11166
|
),
|
|
11104
11167
|
onTouchStart: stopPropagation
|
|
11105
11168
|
}, Title2, /* @__PURE__ */ React.createElement("div", {
|
|
11106
|
-
className: clsx(bem$
|
|
11169
|
+
className: clsx(bem$s("body"))
|
|
11107
11170
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
11108
|
-
className: clsx(bem$
|
|
11171
|
+
className: clsx(bem$s("keys"))
|
|
11109
11172
|
}, renderKeys()), renderSidebar())));
|
|
11110
11173
|
return Content;
|
|
11111
11174
|
};
|
|
11112
|
-
var index$
|
|
11113
|
-
const [bem$
|
|
11175
|
+
var index$j = "";
|
|
11176
|
+
const [bem$r] = createNamespace("slider");
|
|
11114
11177
|
const Slider = (p) => {
|
|
11115
11178
|
const props = mergeProps(p, {
|
|
11116
11179
|
min: 0,
|
|
@@ -11290,9 +11353,9 @@ const Slider = (p) => {
|
|
|
11290
11353
|
const getButtonClassName = (index2) => {
|
|
11291
11354
|
if (typeof index2 === "number") {
|
|
11292
11355
|
const position = ["left", "right"];
|
|
11293
|
-
return bem$
|
|
11356
|
+
return bem$r("button-wrapper", position[index2]);
|
|
11294
11357
|
}
|
|
11295
|
-
return bem$
|
|
11358
|
+
return bem$r("button-wrapper", props.reverse ? "left" : "right");
|
|
11296
11359
|
};
|
|
11297
11360
|
const renderButtonContent = (value, index2) => {
|
|
11298
11361
|
if (typeof index2 === "number") {
|
|
@@ -11308,7 +11371,7 @@ const Slider = (p) => {
|
|
|
11308
11371
|
return props.button;
|
|
11309
11372
|
}
|
|
11310
11373
|
return /* @__PURE__ */ React.createElement("div", {
|
|
11311
|
-
className: clsx(bem$
|
|
11374
|
+
className: clsx(bem$r("button")),
|
|
11312
11375
|
style: getSizeStyle(props.buttonSize)
|
|
11313
11376
|
});
|
|
11314
11377
|
};
|
|
@@ -11358,25 +11421,25 @@ const Slider = (p) => {
|
|
|
11358
11421
|
style: wrapperStyle,
|
|
11359
11422
|
className: clsx(
|
|
11360
11423
|
props.className,
|
|
11361
|
-
bem$
|
|
11424
|
+
bem$r({
|
|
11362
11425
|
vertical: props.vertical,
|
|
11363
11426
|
disabled: props.disabled
|
|
11364
11427
|
})
|
|
11365
11428
|
),
|
|
11366
11429
|
onClick
|
|
11367
11430
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
11368
|
-
className: clsx(bem$
|
|
11431
|
+
className: clsx(bem$r("bar")),
|
|
11369
11432
|
style: barStyle
|
|
11370
11433
|
}, props.range ? [renderButton(setButtonRef1, 0), renderButton(setButtonRef2, 1)] : renderButton(setButtonRef1)));
|
|
11371
11434
|
};
|
|
11372
|
-
var index$
|
|
11435
|
+
var index$i = "";
|
|
11373
11436
|
const LONG_PRESS_INTERVAL = 100;
|
|
11374
11437
|
const LONG_PRESS_START_TIME = 600;
|
|
11375
11438
|
function add(num1, num2) {
|
|
11376
11439
|
const cardinal = 10 ** 10;
|
|
11377
11440
|
return Math.round((num1 + num2) * cardinal) / cardinal;
|
|
11378
11441
|
}
|
|
11379
|
-
const [bem$
|
|
11442
|
+
const [bem$q] = createNamespace("stepper");
|
|
11380
11443
|
const Stepper = React.forwardRef((p, ref) => {
|
|
11381
11444
|
const props = mergeProps(p, {
|
|
11382
11445
|
theme: "default",
|
|
@@ -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: clsx(props.className, bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
11642
|
+
className: clsx(bem$q("plus", { disabled: plusDisabled })),
|
|
11580
11643
|
...createListeners("plus")
|
|
11581
11644
|
}));
|
|
11582
11645
|
});
|
|
@@ -11594,7 +11657,7 @@ function convertTextToValue(text) {
|
|
|
11594
11657
|
return null;
|
|
11595
11658
|
return parseFloat(text);
|
|
11596
11659
|
}
|
|
11597
|
-
const [bem$
|
|
11660
|
+
const [bem$p] = createNamespace("switch");
|
|
11598
11661
|
const Swtich = (p) => {
|
|
11599
11662
|
const props = mergeProps(p, {
|
|
11600
11663
|
activeValue: true,
|
|
@@ -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: clsx(bem$
|
|
11695
|
+
className: clsx(bem$p("loading")),
|
|
11633
11696
|
color
|
|
11634
11697
|
});
|
|
11635
11698
|
}
|
|
@@ -11640,7 +11703,7 @@ const Swtich = (p) => {
|
|
|
11640
11703
|
tabIndex: 0,
|
|
11641
11704
|
className: clsx(
|
|
11642
11705
|
props.className,
|
|
11643
|
-
bem$
|
|
11706
|
+
bem$p({
|
|
11644
11707
|
on: isChecked,
|
|
11645
11708
|
loading,
|
|
11646
11709
|
disabled
|
|
@@ -11650,11 +11713,11 @@ const Swtich = (p) => {
|
|
|
11650
11713
|
"aria-checked": isChecked,
|
|
11651
11714
|
onClick
|
|
11652
11715
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
11653
|
-
className: clsx(bem$
|
|
11716
|
+
className: clsx(bem$p("node"))
|
|
11654
11717
|
}, renderLoading()));
|
|
11655
11718
|
};
|
|
11719
|
+
var index$h = "";
|
|
11656
11720
|
var index$g = "";
|
|
11657
|
-
var index$f = "";
|
|
11658
11721
|
function toArray(item) {
|
|
11659
11722
|
if (Array.isArray(item)) {
|
|
11660
11723
|
return item;
|
|
@@ -11724,7 +11787,7 @@ function isImageFile(item, isImage) {
|
|
|
11724
11787
|
}
|
|
11725
11788
|
return false;
|
|
11726
11789
|
}
|
|
11727
|
-
const [bem$
|
|
11790
|
+
const [bem$o] = createNamespace("uploader");
|
|
11728
11791
|
const UploaderPreviewItem = (props) => {
|
|
11729
11792
|
const { onPreview, statusTextRender, status, file, url } = props;
|
|
11730
11793
|
const isImage = useMemo(
|
|
@@ -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: clsx(bem$
|
|
11806
|
+
className: clsx(bem$o("mask-icon"))
|
|
11744
11807
|
}) : /* @__PURE__ */ React.createElement(Loading, {
|
|
11745
|
-
className: clsx(bem$
|
|
11808
|
+
className: clsx(bem$o("loading"))
|
|
11746
11809
|
});
|
|
11747
11810
|
return /* @__PURE__ */ React.createElement("div", {
|
|
11748
|
-
className: clsx(bem$
|
|
11811
|
+
className: clsx(bem$o("mask"))
|
|
11749
11812
|
}, MaskIcon, statusTextRender && /* @__PURE__ */ React.createElement("div", {
|
|
11750
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
11821
|
+
className: clsx(bem$o("preview-delete")),
|
|
11759
11822
|
onClick: props.onDelete
|
|
11760
11823
|
}, /* @__PURE__ */ React.createElement(Cross, {
|
|
11761
|
-
className: clsx(bem$
|
|
11824
|
+
className: clsx(bem$o("preview-delete-icon"))
|
|
11762
11825
|
}));
|
|
11763
11826
|
}
|
|
11764
11827
|
return null;
|
|
@@ -11772,27 +11835,27 @@ const UploaderPreviewItem = (props) => {
|
|
|
11772
11835
|
return /* @__PURE__ */ React.createElement(ImageNamespace, {
|
|
11773
11836
|
fit: props.imageFit,
|
|
11774
11837
|
src: imageSrc,
|
|
11775
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
11845
|
+
className: clsx(bem$o("file")),
|
|
11783
11846
|
style: getSizeStyle(props.previewSize)
|
|
11784
11847
|
}, /* @__PURE__ */ React.createElement(Description, {
|
|
11785
|
-
className: clsx(bem$
|
|
11848
|
+
className: clsx(bem$o("file-icon"))
|
|
11786
11849
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
11787
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
11854
|
+
className: clsx(bem$o("preview")),
|
|
11792
11855
|
onClick: props.onClick
|
|
11793
11856
|
}, renderPreview(), renderMask(), renderDeleteIcon());
|
|
11794
11857
|
};
|
|
11795
|
-
const [bem$
|
|
11858
|
+
const [bem$n] = createNamespace("uploader");
|
|
11796
11859
|
const Uploader = forwardRef((p, ref) => {
|
|
11797
11860
|
var _a;
|
|
11798
11861
|
const props = mergeProps(p, {
|
|
@@ -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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
12095
|
+
className: clsx(bem$n("upload-text"))
|
|
12033
12096
|
}, props.uploadText), Input2);
|
|
12034
12097
|
}
|
|
12035
12098
|
return null;
|
|
@@ -12044,13 +12107,13 @@ const Uploader = forwardRef((p, ref) => {
|
|
|
12044
12107
|
closeImagePreview
|
|
12045
12108
|
}));
|
|
12046
12109
|
return /* @__PURE__ */ React.createElement("div", {
|
|
12047
|
-
className: clsx(bem$
|
|
12110
|
+
className: clsx(bem$n())
|
|
12048
12111
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
12049
|
-
className: clsx(bem$
|
|
12112
|
+
className: clsx(bem$n("wrapper", { disabled: props.disabled }))
|
|
12050
12113
|
}, renderPreviewList(), renderUpload()));
|
|
12051
12114
|
});
|
|
12052
|
-
var index$
|
|
12053
|
-
const [bem$
|
|
12115
|
+
var index$f = "";
|
|
12116
|
+
const [bem$m] = createNamespace("progress");
|
|
12054
12117
|
const Progress = (p) => {
|
|
12055
12118
|
const props = mergeProps(p, {
|
|
12056
12119
|
showPivot: true,
|
|
@@ -12072,7 +12135,7 @@ const Progress = (p) => {
|
|
|
12072
12135
|
};
|
|
12073
12136
|
return /* @__PURE__ */ React.createElement("span", {
|
|
12074
12137
|
style,
|
|
12075
|
-
className: clsx(bem$
|
|
12138
|
+
className: clsx(bem$m("pivot"))
|
|
12076
12139
|
}, text);
|
|
12077
12140
|
}
|
|
12078
12141
|
return null;
|
|
@@ -12088,14 +12151,14 @@ const Progress = (p) => {
|
|
|
12088
12151
|
transform: `scaleX(${+percentage / 100})`
|
|
12089
12152
|
};
|
|
12090
12153
|
return /* @__PURE__ */ React.createElement("div", {
|
|
12091
|
-
className: clsx(bem$
|
|
12154
|
+
className: clsx(bem$m(), props.className),
|
|
12092
12155
|
style: rootStyle
|
|
12093
12156
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
12094
|
-
className: clsx(bem$
|
|
12157
|
+
className: clsx(bem$m("portion")),
|
|
12095
12158
|
style: portionStyle
|
|
12096
12159
|
}), renderPivot());
|
|
12097
12160
|
};
|
|
12098
|
-
var index$
|
|
12161
|
+
var index$e = "";
|
|
12099
12162
|
let uid = 0;
|
|
12100
12163
|
function format(rate) {
|
|
12101
12164
|
return Math.min(Math.max(+rate, 0), 100);
|
|
@@ -12110,7 +12173,7 @@ const ROTATE_ANGLE_MAP = {
|
|
|
12110
12173
|
bottom: 180,
|
|
12111
12174
|
left: 270
|
|
12112
12175
|
};
|
|
12113
|
-
const [bem$
|
|
12176
|
+
const [bem$l] = createNamespace("circle");
|
|
12114
12177
|
const Circle = (p) => {
|
|
12115
12178
|
const props = mergeProps(p, {
|
|
12116
12179
|
clockwise: true,
|
|
@@ -12184,7 +12247,7 @@ const Circle = (p) => {
|
|
|
12184
12247
|
return /* @__PURE__ */ React.createElement("path", {
|
|
12185
12248
|
d: path,
|
|
12186
12249
|
style,
|
|
12187
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
12261
|
+
className: clsx(bem$l("layer")),
|
|
12199
12262
|
style,
|
|
12200
12263
|
d: path
|
|
12201
12264
|
});
|
|
@@ -12221,24 +12284,24 @@ const Circle = (p) => {
|
|
|
12221
12284
|
const renderText = () => {
|
|
12222
12285
|
if (props.text) {
|
|
12223
12286
|
return /* @__PURE__ */ React.createElement("div", {
|
|
12224
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
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}`,
|
|
12234
12297
|
style: svgStyle
|
|
12235
12298
|
}, renderGradient(), renderLayer(), renderHover()), renderText());
|
|
12236
12299
|
};
|
|
12237
|
-
var index$
|
|
12300
|
+
var index$d = "";
|
|
12238
12301
|
function makePage(number, text, active) {
|
|
12239
12302
|
return { number, text, active };
|
|
12240
12303
|
}
|
|
12241
|
-
const [bem$
|
|
12304
|
+
const [bem$k] = createNamespace("pagination");
|
|
12242
12305
|
const Pagination = (p) => {
|
|
12243
12306
|
const props = mergeProps(p, {
|
|
12244
12307
|
mode: "multi",
|
|
@@ -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: clsx(bem$
|
|
12369
|
+
className: clsx(bem$k("page-desc"))
|
|
12307
12370
|
}, props.pageDesc ? props.pageDesc : `${props.value}/${count}`);
|
|
12308
12371
|
}
|
|
12309
12372
|
return null;
|
|
@@ -12312,34 +12375,34 @@ 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: clsx(bem$
|
|
12378
|
+
className: clsx(bem$k({ simple }))
|
|
12316
12379
|
}, /* @__PURE__ */ React.createElement("li", {
|
|
12317
12380
|
className: clsx(
|
|
12318
|
-
bem$
|
|
12319
|
-
bem$
|
|
12381
|
+
bem$k("item", { disabled: value === 1 }),
|
|
12382
|
+
bem$k("prev"),
|
|
12320
12383
|
BORDER
|
|
12321
12384
|
),
|
|
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
12388
|
className: clsx(
|
|
12326
|
-
bem$
|
|
12327
|
-
bem$
|
|
12389
|
+
bem$k("item", { active: page.active }),
|
|
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
12395
|
className: clsx(
|
|
12333
|
-
bem$
|
|
12334
|
-
bem$
|
|
12396
|
+
bem$k("item", { disabled: value === count }),
|
|
12397
|
+
bem$k("next"),
|
|
12335
12398
|
BORDER
|
|
12336
12399
|
),
|
|
12337
12400
|
onClick: onSelect(value + 1)
|
|
12338
12401
|
}, props.nextText || locale.vanPagination.next));
|
|
12339
12402
|
};
|
|
12340
|
-
var index$
|
|
12403
|
+
var index$c = "";
|
|
12341
12404
|
const TabbarContext = createContext({});
|
|
12342
|
-
const [bem$
|
|
12405
|
+
const [bem$j] = createNamespace("tabbar");
|
|
12343
12406
|
const Tabbar$1 = (p) => {
|
|
12344
12407
|
const props = mergeProps(p, {
|
|
12345
12408
|
fixed: true,
|
|
@@ -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: clsx(bem$
|
|
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: clsx(props.className, bem$
|
|
12442
|
+
className: clsx(props.className, bem$j({ fixed }), {
|
|
12380
12443
|
[BORDER_TOP_BOTTOM]: border,
|
|
12381
12444
|
"rv-safe-area-bottom": enableSafeArea()
|
|
12382
12445
|
})
|
|
@@ -12392,7 +12455,7 @@ const Tabbar$1 = (p) => {
|
|
|
12392
12455
|
}
|
|
12393
12456
|
return renderTabbar();
|
|
12394
12457
|
};
|
|
12395
|
-
const [bem$
|
|
12458
|
+
const [bem$i] = createNamespace("tabbar-item");
|
|
12396
12459
|
const TabbarItem = (props) => {
|
|
12397
12460
|
const { setActive, index: index2 } = props;
|
|
12398
12461
|
const { parent } = useContext(TabbarContext);
|
|
@@ -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: clsx(props.className, bem$
|
|
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: clsx(bem$
|
|
12487
|
+
className: clsx(bem$i("icon"))
|
|
12425
12488
|
}, renderIcon()), /* @__PURE__ */ React.createElement("div", {
|
|
12426
|
-
className: clsx(bem$
|
|
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 });
|
|
@@ -12460,7 +12523,7 @@ const ConfigProvider = ({
|
|
|
12460
12523
|
style: varStyle
|
|
12461
12524
|
}, children));
|
|
12462
12525
|
};
|
|
12463
|
-
var index$
|
|
12526
|
+
var index$b = "";
|
|
12464
12527
|
const FormSubscribe = (props) => {
|
|
12465
12528
|
const update = useUpdate();
|
|
12466
12529
|
const form = useContext(FieldContext);
|
|
@@ -12486,7 +12549,7 @@ const DEFAULT_FORM_CONTEXT = {
|
|
|
12486
12549
|
controlAlign: "left"
|
|
12487
12550
|
};
|
|
12488
12551
|
const FormContext = React.createContext(DEFAULT_FORM_CONTEXT);
|
|
12489
|
-
const [bem$
|
|
12552
|
+
const [bem$h] = createNamespace("form");
|
|
12490
12553
|
const Form$1 = forwardRef((props, ref) => {
|
|
12491
12554
|
const {
|
|
12492
12555
|
className,
|
|
@@ -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: clsx(bem$
|
|
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: clsx(bem$
|
|
12584
|
+
className: clsx(bem$h("footer"))
|
|
12522
12585
|
}, footer));
|
|
12523
12586
|
});
|
|
12524
12587
|
function shouldConstruct(Component) {
|
|
@@ -12552,7 +12615,7 @@ const MemoInput = React.memo(
|
|
|
12552
12615
|
),
|
|
12553
12616
|
(prev2, next) => prev2.value === next.value && prev2.update === next.update
|
|
12554
12617
|
);
|
|
12555
|
-
const [bem$
|
|
12618
|
+
const [bem$g] = createNamespace("form-item");
|
|
12556
12619
|
const FormItemLayout = (props) => {
|
|
12557
12620
|
var _a, _b, _c, _d, _e, _f;
|
|
12558
12621
|
const { meta, ...fieldProps } = props;
|
|
@@ -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: clsx(bem$
|
|
12633
|
+
className: clsx(bem$g({ vertical: layout === "vertical" }), props.className),
|
|
12571
12634
|
colon,
|
|
12572
12635
|
error: showValidateMessage ? false : error,
|
|
12573
12636
|
errorMessage,
|
|
@@ -12787,7 +12850,7 @@ function parseVanAreaList(data, columnsNum) {
|
|
|
12787
12850
|
}
|
|
12788
12851
|
return provinces;
|
|
12789
12852
|
}
|
|
12790
|
-
const [bem$
|
|
12853
|
+
const [bem$f] = createNamespace("area");
|
|
12791
12854
|
const Area = forwardRef((p, ref) => {
|
|
12792
12855
|
const props = mergeProps(p, {
|
|
12793
12856
|
areaList: {},
|
|
@@ -12809,12 +12872,12 @@ const Area = forwardRef((p, ref) => {
|
|
|
12809
12872
|
return /* @__PURE__ */ React.createElement(Picker, {
|
|
12810
12873
|
ref,
|
|
12811
12874
|
style: props.style,
|
|
12812
|
-
className: clsx(bem$
|
|
12875
|
+
className: clsx(bem$f(), props.className),
|
|
12813
12876
|
columns,
|
|
12814
12877
|
...pick(props, INHERIT_PROPS)
|
|
12815
12878
|
});
|
|
12816
12879
|
});
|
|
12817
|
-
var index$
|
|
12880
|
+
var index$a = "";
|
|
12818
12881
|
const CardHeader = (props) => {
|
|
12819
12882
|
const [bem2] = createNamespace("card-header");
|
|
12820
12883
|
return /* @__PURE__ */ React.createElement("div", {
|
|
@@ -12868,11 +12931,11 @@ const Card = Object.assign(Card$1, {
|
|
|
12868
12931
|
Footer: CardFooter,
|
|
12869
12932
|
Cover: CardCover
|
|
12870
12933
|
});
|
|
12871
|
-
var index$
|
|
12934
|
+
var index$9 = "";
|
|
12872
12935
|
function isStringOrNumber(target) {
|
|
12873
12936
|
return typeof target === "string" || typeof target === "number";
|
|
12874
12937
|
}
|
|
12875
|
-
const [bem$
|
|
12938
|
+
const [bem$e] = createNamespace("product-card");
|
|
12876
12939
|
const ProductCard = (p) => {
|
|
12877
12940
|
const props = mergeProps(p, {
|
|
12878
12941
|
currency: "\xA5",
|
|
@@ -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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
12999
|
+
className: clsx(bem$e("price-currency"))
|
|
12937
13000
|
}, props.currency), /* @__PURE__ */ React.createElement("span", {
|
|
12938
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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,30 +13015,30 @@ 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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
13025
|
+
className: clsx(bem$e("footer"))
|
|
12963
13026
|
}, props.footer);
|
|
12964
13027
|
const Bottom = showBottom && /* @__PURE__ */ React.createElement("div", {
|
|
12965
|
-
className: clsx(bem$
|
|
13028
|
+
className: clsx(bem$e("bottom"))
|
|
12966
13029
|
}, props.priceTop, Price, OriginPrice, Num, props.bottom);
|
|
12967
13030
|
return /* @__PURE__ */ React.createElement("div", {
|
|
12968
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
13035
|
+
className: clsx(bem$e("header"))
|
|
12973
13036
|
}, renderThumb(), /* @__PURE__ */ React.createElement("div", {
|
|
12974
|
-
className: clsx(bem$
|
|
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
|
-
var index$
|
|
12978
|
-
const [bem$
|
|
13040
|
+
var index$8 = "";
|
|
13041
|
+
const [bem$d] = createNamespace("submit-bar");
|
|
12979
13042
|
const SubmitBar = (p) => {
|
|
12980
13043
|
const props = mergeProps(p, {
|
|
12981
13044
|
buttonType: "danger",
|
|
@@ -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: clsx(bem$
|
|
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: clsx(bem$
|
|
13059
|
+
className: clsx(bem$d("price"))
|
|
12997
13060
|
}, currency, /* @__PURE__ */ React.createElement("span", {
|
|
12998
|
-
className: clsx(bem$
|
|
13061
|
+
className: clsx(bem$d("price-integer"))
|
|
12999
13062
|
}, pricePair[0]), decimal), suffixLabel && /* @__PURE__ */ React.createElement("span", {
|
|
13000
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
13072
|
+
className: clsx(bem$d("tip"))
|
|
13010
13073
|
}, tipIcon && React.cloneElement(tipIcon, {
|
|
13011
|
-
className: clsx(bem$
|
|
13074
|
+
className: clsx(bem$d("tip-icon"))
|
|
13012
13075
|
}), tip && /* @__PURE__ */ React.createElement("span", {
|
|
13013
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
13090
|
+
className: clsx(bem$d("button", props.buttonType)),
|
|
13028
13091
|
color: props.buttonColor,
|
|
13029
13092
|
loading: props.loading,
|
|
13030
13093
|
disabled: props.disabled,
|
|
@@ -13032,15 +13095,15 @@ const SubmitBar = (p) => {
|
|
|
13032
13095
|
});
|
|
13033
13096
|
};
|
|
13034
13097
|
return /* @__PURE__ */ React.createElement("div", {
|
|
13035
|
-
className: clsx(props.className, bem$
|
|
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: clsx(bem$
|
|
13103
|
+
className: clsx(bem$d("bar"))
|
|
13041
13104
|
}, props.children, renderText(), renderButton()));
|
|
13042
13105
|
};
|
|
13043
|
-
var index$
|
|
13106
|
+
var index$7 = "";
|
|
13044
13107
|
function formatValue(coupons, chosenCoupon, currency, locale) {
|
|
13045
13108
|
const coupon = coupons[+chosenCoupon];
|
|
13046
13109
|
if (coupon) {
|
|
@@ -13054,7 +13117,7 @@ function formatValue(coupons, chosenCoupon, currency, locale) {
|
|
|
13054
13117
|
}
|
|
13055
13118
|
return coupons.length === 0 ? locale.noCoupon : locale.vanCouponCell.count(coupons.length);
|
|
13056
13119
|
}
|
|
13057
|
-
const [bem$
|
|
13120
|
+
const [bem$c] = createNamespace("coupon-cell");
|
|
13058
13121
|
const CouponCell = (p) => {
|
|
13059
13122
|
const props = mergeProps(p, {
|
|
13060
13123
|
border: true,
|
|
@@ -13073,16 +13136,16 @@ const CouponCell = (p) => {
|
|
|
13073
13136
|
);
|
|
13074
13137
|
return /* @__PURE__ */ React.createElement(Cell, {
|
|
13075
13138
|
style: props.style,
|
|
13076
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
13144
|
+
valueClass: clsx(bem$c("value", { selected })),
|
|
13082
13145
|
onClick: props.onClick
|
|
13083
13146
|
});
|
|
13084
13147
|
};
|
|
13085
|
-
var index$
|
|
13148
|
+
var index$6 = "";
|
|
13086
13149
|
function getDate(timeStamp) {
|
|
13087
13150
|
const date = new Date(timeStamp * 1e3);
|
|
13088
13151
|
return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
|
|
@@ -13097,7 +13160,7 @@ function formatAmount(amount) {
|
|
|
13097
13160
|
amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2
|
|
13098
13161
|
);
|
|
13099
13162
|
}
|
|
13100
|
-
const [bem$
|
|
13163
|
+
const [bem$b] = createNamespace("coupon");
|
|
13101
13164
|
const Coupon = (p) => {
|
|
13102
13165
|
const props = mergeProps(p, {
|
|
13103
13166
|
currency: "\xA5"
|
|
@@ -13128,31 +13191,31 @@ 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: clsx(props.className, bem$
|
|
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: clsx(bem$
|
|
13198
|
+
className: clsx(bem$b("content"))
|
|
13136
13199
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
13137
|
-
className: clsx(bem$
|
|
13200
|
+
className: clsx(bem$b("head"))
|
|
13138
13201
|
}, /* @__PURE__ */ React.createElement("h2", {
|
|
13139
|
-
className: clsx(bem$
|
|
13202
|
+
className: clsx(bem$b("amount"))
|
|
13140
13203
|
}, faceAmount), /* @__PURE__ */ React.createElement("p", {
|
|
13141
|
-
className: clsx(bem$
|
|
13204
|
+
className: clsx(bem$b("condition"))
|
|
13142
13205
|
}, coupon.condition || conditionMessage)), /* @__PURE__ */ React.createElement("div", {
|
|
13143
|
-
className: clsx(bem$
|
|
13206
|
+
className: clsx(bem$b("body"))
|
|
13144
13207
|
}, /* @__PURE__ */ React.createElement("p", {
|
|
13145
|
-
className: clsx(bem$
|
|
13208
|
+
className: clsx(bem$b("name"))
|
|
13146
13209
|
}, coupon.name), /* @__PURE__ */ React.createElement("p", {
|
|
13147
|
-
className: clsx(bem$
|
|
13210
|
+
className: clsx(bem$b("valid"))
|
|
13148
13211
|
}, validPeriod), !disabled && /* @__PURE__ */ React.createElement(Checkbox, {
|
|
13149
|
-
className: clsx(bem$
|
|
13212
|
+
className: clsx(bem$b("corner")),
|
|
13150
13213
|
checked: chosen
|
|
13151
13214
|
}))), description && /* @__PURE__ */ React.createElement("p", {
|
|
13152
|
-
className: clsx(bem$
|
|
13215
|
+
className: clsx(bem$b("description"))
|
|
13153
13216
|
}, description));
|
|
13154
13217
|
};
|
|
13155
|
-
const [bem$
|
|
13218
|
+
const [bem$a] = createNamespace("coupon-list");
|
|
13156
13219
|
const CouponList = (p) => {
|
|
13157
13220
|
var _a;
|
|
13158
13221
|
const props = mergeProps(p, {
|
|
@@ -13195,7 +13258,7 @@ const CouponList = (p) => {
|
|
|
13195
13258
|
}
|
|
13196
13259
|
};
|
|
13197
13260
|
const renderEmpty = () => /* @__PURE__ */ React.createElement("div", {
|
|
13198
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
13281
|
+
className: clsx(bem$a("exchange")),
|
|
13219
13282
|
text: props.exchangeButtonText || locale.vanCouponList.exchange,
|
|
13220
13283
|
loading: props.exchangeButtonLoading,
|
|
13221
13284
|
disabled: buttonDisabled,
|
|
@@ -13232,7 +13295,7 @@ const CouponList = (p) => {
|
|
|
13232
13295
|
title
|
|
13233
13296
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
13234
13297
|
className: clsx(
|
|
13235
|
-
bem$
|
|
13298
|
+
bem$a("list", {
|
|
13236
13299
|
"with-bar": props.showExchangeBar,
|
|
13237
13300
|
"with-bottom": props.showCloseButton
|
|
13238
13301
|
})
|
|
@@ -13253,7 +13316,7 @@ const CouponList = (p) => {
|
|
|
13253
13316
|
title
|
|
13254
13317
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
13255
13318
|
className: clsx(
|
|
13256
|
-
bem$
|
|
13319
|
+
bem$a("list", {
|
|
13257
13320
|
"with-bar": props.showExchangeBar,
|
|
13258
13321
|
"with-bottom": props.showCloseButton
|
|
13259
13322
|
})
|
|
@@ -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: clsx(bem$
|
|
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: clsx(bem$
|
|
13345
|
+
className: clsx(bem$a("tab"), (_a = props.tabsProps) == null ? void 0 : _a.className)
|
|
13283
13346
|
}, renderCouponTab(), renderDisabledTab()), /* @__PURE__ */ React.createElement("div", {
|
|
13284
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
13353
|
+
className: clsx(bem$a("close")),
|
|
13291
13354
|
text: props.closeButtonText || locale.vanCouponList.close,
|
|
13292
13355
|
onClick: () => {
|
|
13293
13356
|
var _a2;
|
|
@@ -13296,7 +13359,7 @@ const CouponList = (p) => {
|
|
|
13296
13359
|
})));
|
|
13297
13360
|
};
|
|
13298
13361
|
const EMPTY_IMAGE = "https://img.yzcdn.cn/vant/coupon-empty.png";
|
|
13299
|
-
var index$
|
|
13362
|
+
var index$5 = "";
|
|
13300
13363
|
const LIMIT_TYPE = {
|
|
13301
13364
|
QUOTA_LIMIT: 0,
|
|
13302
13365
|
STOCK_LIMIT: 1
|
|
@@ -13417,29 +13480,29 @@ const getSelectedProperties = (propList, selectedProp) => {
|
|
|
13417
13480
|
});
|
|
13418
13481
|
return list;
|
|
13419
13482
|
};
|
|
13420
|
-
const [bem$
|
|
13483
|
+
const [bem$9] = createNamespace("sku-row");
|
|
13421
13484
|
const SkuRow = (props) => {
|
|
13422
13485
|
const { skuRow } = props;
|
|
13423
13486
|
const renderTitle = () => {
|
|
13424
13487
|
return /* @__PURE__ */ React.createElement("div", {
|
|
13425
|
-
className: clsx(bem$
|
|
13488
|
+
className: clsx(bem$9("title"))
|
|
13426
13489
|
}, skuRow.k, skuRow.is_multiple && /* @__PURE__ */ React.createElement("span", {
|
|
13427
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
13496
|
+
className: clsx(bem$9("scroller"))
|
|
13434
13497
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
13435
|
-
className: clsx(bem$
|
|
13498
|
+
className: clsx(bem$9("row"))
|
|
13436
13499
|
}, props.children)) : props.children;
|
|
13437
13500
|
};
|
|
13438
13501
|
return /* @__PURE__ */ React.createElement("div", {
|
|
13439
|
-
className: clsx(bem$
|
|
13502
|
+
className: clsx(bem$9(), BORDER_BOTTOM)
|
|
13440
13503
|
}, renderTitle(), renderContent());
|
|
13441
13504
|
};
|
|
13442
|
-
const [bem$
|
|
13505
|
+
const [bem$8] = createNamespace("sku-row");
|
|
13443
13506
|
const SkuRowItem = (props) => {
|
|
13444
13507
|
var _a, _b;
|
|
13445
13508
|
const classPrefix = props.largeImageMode ? "image-item" : "item";
|
|
@@ -13466,7 +13529,7 @@ const SkuRowItem = (props) => {
|
|
|
13466
13529
|
fit: "cover",
|
|
13467
13530
|
src: imgUrl,
|
|
13468
13531
|
lazyload: props.lazyload,
|
|
13469
|
-
className: clsx(bem$
|
|
13532
|
+
className: clsx(bem$8(`${classPrefix}-img`))
|
|
13470
13533
|
});
|
|
13471
13534
|
}
|
|
13472
13535
|
return null;
|
|
@@ -13488,22 +13551,22 @@ const SkuRowItem = (props) => {
|
|
|
13488
13551
|
const choosed = props.skuValue.id === props.selectedSku[props.skuKeyStr];
|
|
13489
13552
|
return /* @__PURE__ */ React.createElement("span", {
|
|
13490
13553
|
className: clsx(
|
|
13491
|
-
bem$
|
|
13554
|
+
bem$8(classPrefix, {
|
|
13492
13555
|
active: choosed,
|
|
13493
13556
|
disabled: !choosable
|
|
13494
13557
|
})
|
|
13495
13558
|
),
|
|
13496
13559
|
onClick: onSelect
|
|
13497
13560
|
}, imageRender(), /* @__PURE__ */ React.createElement("div", {
|
|
13498
|
-
className: clsx(bem$
|
|
13561
|
+
className: clsx(bem$8(`${classPrefix}-name`))
|
|
13499
13562
|
}, props.largeImageMode ? /* @__PURE__ */ React.createElement("span", {
|
|
13500
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: clsx(bem$
|
|
13565
|
+
className: clsx(bem$8(`${classPrefix}-img-icon`)),
|
|
13503
13566
|
onClick: onPreviewImg
|
|
13504
13567
|
})));
|
|
13505
13568
|
};
|
|
13506
|
-
const [bem$
|
|
13569
|
+
const [bem$7] = createNamespace("sku-row");
|
|
13507
13570
|
const SkuRowPropItem = (props) => {
|
|
13508
13571
|
var _a;
|
|
13509
13572
|
const choosed = useMemo(() => {
|
|
@@ -13526,17 +13589,17 @@ const SkuRowPropItem = (props) => {
|
|
|
13526
13589
|
};
|
|
13527
13590
|
return /* @__PURE__ */ React.createElement("span", {
|
|
13528
13591
|
className: clsx(
|
|
13529
|
-
bem$
|
|
13592
|
+
bem$7("item", {
|
|
13530
13593
|
active: choosed
|
|
13531
13594
|
})
|
|
13532
13595
|
),
|
|
13533
13596
|
onClick: onSelect
|
|
13534
13597
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
13535
|
-
className: clsx(bem$
|
|
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;
|
|
13539
|
-
const [bem$
|
|
13602
|
+
const [bem$6] = createNamespace("sku");
|
|
13540
13603
|
const SkuStepper = (p) => {
|
|
13541
13604
|
const props = mergeProps(p, {
|
|
13542
13605
|
quota: 0,
|
|
@@ -13622,23 +13685,23 @@ const SkuStepper = (p) => {
|
|
|
13622
13685
|
});
|
|
13623
13686
|
};
|
|
13624
13687
|
return /* @__PURE__ */ React.createElement("div", {
|
|
13625
|
-
className: clsx(bem$
|
|
13688
|
+
className: clsx(bem$6("stepper-stock"))
|
|
13626
13689
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
13627
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
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: clsx(bem$
|
|
13700
|
+
className: clsx(bem$6("stepper-quota"))
|
|
13638
13701
|
}, quotaContent));
|
|
13639
13702
|
};
|
|
13640
13703
|
const { QUOTA_LIMIT } = LIMIT_TYPE;
|
|
13641
|
-
const [bem$
|
|
13704
|
+
const [bem$5] = createNamespace("sku");
|
|
13642
13705
|
const Sku = forwardRef((p, ref) => {
|
|
13643
13706
|
var _a, _b;
|
|
13644
13707
|
const props = mergeProps(p, {
|
|
@@ -13783,7 +13846,7 @@ const Sku = forwardRef((p, ref) => {
|
|
|
13783
13846
|
}
|
|
13784
13847
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, "\u5269\u4F59", /* @__PURE__ */ React.createElement("span", {
|
|
13785
13848
|
className: clsx(
|
|
13786
|
-
bem$
|
|
13849
|
+
bem$5("stock-num", {
|
|
13787
13850
|
highlight: stock < props.stockThreshold
|
|
13788
13851
|
})
|
|
13789
13852
|
)
|
|
@@ -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: clsx(bem$
|
|
14034
|
+
className: clsx(bem$5("goods-price"))
|
|
13972
14035
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
13973
|
-
className: clsx(bem$
|
|
14036
|
+
className: clsx(bem$5("price-symbol"))
|
|
13974
14037
|
}, "\uFFE5"), /* @__PURE__ */ React.createElement("span", {
|
|
13975
|
-
className: clsx(bem$
|
|
14038
|
+
className: clsx(bem$5("price-num"))
|
|
13976
14039
|
}, price), props.priceTag && /* @__PURE__ */ React.createElement("span", {
|
|
13977
|
-
className: clsx(bem$
|
|
14040
|
+
className: clsx(bem$5("price-tag"))
|
|
13978
14041
|
}, props.priceTag)), props.skuHeaderOriginPrice && /* @__PURE__ */ React.createElement("div", {
|
|
13979
|
-
className: clsx(bem$
|
|
14042
|
+
className: clsx(bem$5("header-item"))
|
|
13980
14043
|
}, props.skuHeaderOriginPrice), !props.hideStock && /* @__PURE__ */ React.createElement("div", {
|
|
13981
|
-
className: clsx(bem$
|
|
14044
|
+
className: clsx(bem$5("header-item"))
|
|
13982
14045
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
13983
|
-
className: clsx(bem$
|
|
14046
|
+
className: clsx(bem$5("stock"))
|
|
13984
14047
|
}, stockContent)), !props.hideSelectedText && /* @__PURE__ */ React.createElement("div", {
|
|
13985
|
-
className: clsx(bem$
|
|
14048
|
+
className: clsx(bem$5("header-item"))
|
|
13986
14049
|
}, selectedText));
|
|
13987
14050
|
};
|
|
13988
14051
|
const renderHeader = () => {
|
|
@@ -13991,20 +14054,20 @@ 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: clsx(bem$
|
|
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: clsx(bem$
|
|
14061
|
+
className: clsx(bem$5("header__img-wrap")),
|
|
13999
14062
|
onClick: () => onPreviewImage(selectedValue)
|
|
14000
14063
|
}, props.skuHeaderImageExtra), /* @__PURE__ */ React.createElement("div", {
|
|
14001
|
-
className: clsx(bem$
|
|
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
14069
|
className: clsx(
|
|
14007
|
-
bem$
|
|
14070
|
+
bem$5("group-container", {
|
|
14008
14071
|
"hide-soldout": !props.showSoldoutSku
|
|
14009
14072
|
})
|
|
14010
14073
|
)
|
|
@@ -14054,13 +14117,13 @@ const Sku = forwardRef((p, ref) => {
|
|
|
14054
14117
|
});
|
|
14055
14118
|
const renderBody = () => {
|
|
14056
14119
|
return /* @__PURE__ */ React.createElement("div", {
|
|
14057
|
-
className: clsx(bem$
|
|
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: clsx(bem$
|
|
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,10 +14153,10 @@ const Sku = forwardRef((p, ref) => {
|
|
|
14090
14153
|
visible,
|
|
14091
14154
|
onClose: onPopupClose,
|
|
14092
14155
|
onClosed: onPopupClosed,
|
|
14093
|
-
className: clsx((_b = props.popupProps) == null ? void 0 : _b.className, bem$
|
|
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
|
-
var index$
|
|
14159
|
+
var index$4 = "";
|
|
14097
14160
|
const FloatingBallItem$1 = createContext({});
|
|
14098
14161
|
var FloatingBallItem = (props) => {
|
|
14099
14162
|
const parent = React.useContext(FloatingBallItem$1);
|
|
@@ -14215,7 +14278,7 @@ const useFloatingTouch = (props) => {
|
|
|
14215
14278
|
const TOUCH_DURATION = 0;
|
|
14216
14279
|
const TRANSITION_DURATION = 300;
|
|
14217
14280
|
const DEFAULT_ADSORB = { indent: 0.5, distance: 0 };
|
|
14218
|
-
const [bem$
|
|
14281
|
+
const [bem$4] = createNamespace("floating-ball");
|
|
14219
14282
|
const FloatingBall = forwardRef(
|
|
14220
14283
|
(p, ref) => {
|
|
14221
14284
|
var _a, _b, _c, _d;
|
|
@@ -14267,7 +14330,7 @@ const FloatingBall = forwardRef(
|
|
|
14267
14330
|
const [position1, position2] = position.split(" ");
|
|
14268
14331
|
return /* @__PURE__ */ React.createElement("div", {
|
|
14269
14332
|
className: clsx(
|
|
14270
|
-
bem$
|
|
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,
|
|
14273
14336
|
[position2]: !!position2
|
|
@@ -14426,7 +14489,7 @@ const FloatingBall = forwardRef(
|
|
|
14426
14489
|
}
|
|
14427
14490
|
}
|
|
14428
14491
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
14429
|
-
className: clsx(props.className, indentClassName, bem$
|
|
14492
|
+
className: clsx(props.className, indentClassName, bem$4({ active })),
|
|
14430
14493
|
style: trackStyle,
|
|
14431
14494
|
ref: setContainer,
|
|
14432
14495
|
onTouchStart,
|
|
@@ -14434,7 +14497,7 @@ const FloatingBall = forwardRef(
|
|
|
14434
14497
|
onTouchCancel: onTouchEnd
|
|
14435
14498
|
}, renderMenus(), /* @__PURE__ */ React.createElement("div", {
|
|
14436
14499
|
className: clsx(
|
|
14437
|
-
bem$
|
|
14500
|
+
bem$4("base", {
|
|
14438
14501
|
[props.disabledClassName]: props.disabled
|
|
14439
14502
|
})
|
|
14440
14503
|
),
|
|
@@ -14442,7 +14505,7 @@ const FloatingBall = forwardRef(
|
|
|
14442
14505
|
}, typeof props.children === "function" ? props.children({ active, indenting: state.indenting }) : props.children)));
|
|
14443
14506
|
}
|
|
14444
14507
|
);
|
|
14445
|
-
var index$
|
|
14508
|
+
var index$3 = "";
|
|
14446
14509
|
const DEFAULT_FONT = {
|
|
14447
14510
|
style: "normal",
|
|
14448
14511
|
weight: "normal",
|
|
@@ -14450,7 +14513,7 @@ const DEFAULT_FONT = {
|
|
|
14450
14513
|
size: 14,
|
|
14451
14514
|
family: "sans-serif"
|
|
14452
14515
|
};
|
|
14453
|
-
const [bem$
|
|
14516
|
+
const [bem$3] = createNamespace("water-mark");
|
|
14454
14517
|
const WaterMark = (p) => {
|
|
14455
14518
|
const props = mergeProps(p, {
|
|
14456
14519
|
zIndex: 2e3,
|
|
@@ -14514,7 +14577,7 @@ const WaterMark = (p) => {
|
|
|
14514
14577
|
}, [gapX, gapY, rotate, width, height, image, content, font]);
|
|
14515
14578
|
return /* @__PURE__ */ React.createElement("div", {
|
|
14516
14579
|
className: clsx(
|
|
14517
|
-
bem$
|
|
14580
|
+
bem$3({
|
|
14518
14581
|
full: props.fullPage
|
|
14519
14582
|
})
|
|
14520
14583
|
),
|
|
@@ -14525,8 +14588,8 @@ const WaterMark = (p) => {
|
|
|
14525
14588
|
}
|
|
14526
14589
|
});
|
|
14527
14590
|
};
|
|
14528
|
-
var index$
|
|
14529
|
-
const [bem$
|
|
14591
|
+
var index$2 = "";
|
|
14592
|
+
const [bem$2] = createNamespace("floating-panel");
|
|
14530
14593
|
function scrollReachBottom(el) {
|
|
14531
14594
|
const scrollTop = getScrollTop$1(el);
|
|
14532
14595
|
return scrollTop >= el.scrollHeight - getVisibleHeight(el);
|
|
@@ -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: clsx(bem$
|
|
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: clsx(bem$
|
|
14678
|
+
className: clsx(bem$2("header"))
|
|
14616
14679
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
14617
|
-
className: clsx(bem$
|
|
14680
|
+
className: clsx(bem$2("thumb"))
|
|
14618
14681
|
})), /* @__PURE__ */ React.createElement(animated.div, {
|
|
14619
14682
|
ref: body,
|
|
14620
|
-
className: clsx(bem$
|
|
14683
|
+
className: clsx(bem$2("body"))
|
|
14621
14684
|
}, props.children));
|
|
14622
14685
|
}
|
|
14623
14686
|
);
|
|
@@ -14626,8 +14689,8 @@ function findNearestAnchor(anchors, target) {
|
|
|
14626
14689
|
return Math.abs(target - pre) < Math.abs(target - cur) ? pre : cur;
|
|
14627
14690
|
});
|
|
14628
14691
|
}
|
|
14629
|
-
var index = "";
|
|
14630
|
-
const [bem] = createNamespace("table");
|
|
14692
|
+
var index$1 = "";
|
|
14693
|
+
const [bem$1] = createNamespace("table");
|
|
14631
14694
|
const Table = (props) => {
|
|
14632
14695
|
const containerRef = useRef(null);
|
|
14633
14696
|
const [containerWidth, setContainerWidth] = useState(0);
|
|
@@ -14710,10 +14773,10 @@ const Table = (props) => {
|
|
|
14710
14773
|
if (!showHeader)
|
|
14711
14774
|
return null;
|
|
14712
14775
|
return /* @__PURE__ */ React.createElement("thead", {
|
|
14713
|
-
className: clsx(bem("header"))
|
|
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: clsx(bem("header-cell")),
|
|
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: clsx(bem("body"))
|
|
14789
|
+
className: clsx(bem$1("body"))
|
|
14727
14790
|
}, /* @__PURE__ */ React.createElement("tr", null, /* @__PURE__ */ React.createElement("td", {
|
|
14728
14791
|
colSpan: columns.length,
|
|
14729
|
-
className: clsx(bem("empty-cell"))
|
|
14792
|
+
className: clsx(bem$1("empty-cell"))
|
|
14730
14793
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
14731
|
-
className: clsx(bem("empty-image"))
|
|
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: clsx(bem("body"))
|
|
14800
|
+
className: clsx(bem$1("body"))
|
|
14738
14801
|
}, dataSource.map((record, rowIndex) => /* @__PURE__ */ React.createElement("tr", {
|
|
14739
14802
|
key: getRowKey(record, rowIndex),
|
|
14740
|
-
className: clsx(bem("row"))
|
|
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: clsx(bem("cell")),
|
|
14808
|
+
className: clsx(bem$1("cell")),
|
|
14746
14809
|
style: {
|
|
14747
14810
|
...columnStyles[colIndex],
|
|
14748
14811
|
textAlign: column.align || "left"
|
|
@@ -14752,14 +14815,14 @@ const Table = (props) => {
|
|
|
14752
14815
|
};
|
|
14753
14816
|
const classes = clsx(
|
|
14754
14817
|
className,
|
|
14755
|
-
bem([
|
|
14818
|
+
bem$1([
|
|
14756
14819
|
{
|
|
14757
14820
|
bordered
|
|
14758
14821
|
}
|
|
14759
14822
|
])
|
|
14760
14823
|
);
|
|
14761
14824
|
return /* @__PURE__ */ React.createElement("div", {
|
|
14762
|
-
className: clsx(bem("wrapper")),
|
|
14825
|
+
className: clsx(bem$1("wrapper")),
|
|
14763
14826
|
ref: containerRef
|
|
14764
14827
|
}, /* @__PURE__ */ React.createElement("table", {
|
|
14765
14828
|
className: classes,
|
|
@@ -14770,4 +14833,232 @@ const Table = (props) => {
|
|
|
14770
14833
|
...restProps
|
|
14771
14834
|
}, renderHeader(), renderBody()));
|
|
14772
14835
|
};
|
|
14773
|
-
|
|
14836
|
+
var index = "";
|
|
14837
|
+
const [bem] = createNamespace("tree-select");
|
|
14838
|
+
const TreeSelectItem = ({
|
|
14839
|
+
node,
|
|
14840
|
+
selected,
|
|
14841
|
+
multiple,
|
|
14842
|
+
level = 0,
|
|
14843
|
+
onClick,
|
|
14844
|
+
fieldNames
|
|
14845
|
+
}) => {
|
|
14846
|
+
const {
|
|
14847
|
+
title: titleKey = "title",
|
|
14848
|
+
value: valueKey = "value",
|
|
14849
|
+
children: childrenKey = "children"
|
|
14850
|
+
} = fieldNames || {};
|
|
14851
|
+
const title = node[titleKey];
|
|
14852
|
+
const children = node[childrenKey];
|
|
14853
|
+
const hasChildren = children && children.length > 0;
|
|
14854
|
+
const handleClick = () => {
|
|
14855
|
+
if (!node.disabled) {
|
|
14856
|
+
onClick == null ? void 0 : onClick(node);
|
|
14857
|
+
}
|
|
14858
|
+
};
|
|
14859
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
14860
|
+
className: clsx(bem("item-wrapper"))
|
|
14861
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
14862
|
+
className: clsx(
|
|
14863
|
+
bem("item", {
|
|
14864
|
+
active: selected,
|
|
14865
|
+
disabled: node.disabled,
|
|
14866
|
+
level: `level-${level}`
|
|
14867
|
+
}),
|
|
14868
|
+
node.className
|
|
14869
|
+
),
|
|
14870
|
+
style: node.style,
|
|
14871
|
+
onClick: handleClick
|
|
14872
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
14873
|
+
className: clsx(bem("item-content"))
|
|
14874
|
+
}, node.icon && /* @__PURE__ */ React.createElement("span", {
|
|
14875
|
+
className: clsx(bem("item-icon"))
|
|
14876
|
+
}, node.icon), /* @__PURE__ */ React.createElement("span", {
|
|
14877
|
+
className: clsx(bem("item-title"))
|
|
14878
|
+
}, title)), selected && !multiple && /* @__PURE__ */ React.createElement(Success, {
|
|
14879
|
+
className: clsx(bem("item-selected-icon"))
|
|
14880
|
+
}), multiple && /* @__PURE__ */ React.createElement("input", {
|
|
14881
|
+
type: "checkbox",
|
|
14882
|
+
checked: selected,
|
|
14883
|
+
disabled: node.disabled,
|
|
14884
|
+
className: clsx(bem("item-checkbox")),
|
|
14885
|
+
readOnly: true
|
|
14886
|
+
})), hasChildren && /* @__PURE__ */ React.createElement("div", {
|
|
14887
|
+
className: clsx(bem("item-children"))
|
|
14888
|
+
}, children.map((child, index2) => /* @__PURE__ */ React.createElement(TreeSelectItem, {
|
|
14889
|
+
key: child[valueKey] || index2,
|
|
14890
|
+
node: child,
|
|
14891
|
+
selected: false,
|
|
14892
|
+
multiple,
|
|
14893
|
+
level: level + 1,
|
|
14894
|
+
onClick,
|
|
14895
|
+
fieldNames
|
|
14896
|
+
}))));
|
|
14897
|
+
};
|
|
14898
|
+
const TreeSelect = (p) => {
|
|
14899
|
+
const props = mergeProps(p, {
|
|
14900
|
+
treeData: [],
|
|
14901
|
+
height: 272,
|
|
14902
|
+
navWidth: 80,
|
|
14903
|
+
defaultActiveIndex: 0,
|
|
14904
|
+
fieldNames: {
|
|
14905
|
+
title: "title",
|
|
14906
|
+
value: "value",
|
|
14907
|
+
key: "key",
|
|
14908
|
+
children: "children"
|
|
14909
|
+
}
|
|
14910
|
+
});
|
|
14911
|
+
const {
|
|
14912
|
+
title: titleKey,
|
|
14913
|
+
value: valueKey,
|
|
14914
|
+
key: keyKey,
|
|
14915
|
+
children: childrenKey
|
|
14916
|
+
} = extend(
|
|
14917
|
+
{
|
|
14918
|
+
title: "title",
|
|
14919
|
+
value: "value",
|
|
14920
|
+
key: "key",
|
|
14921
|
+
children: "children"
|
|
14922
|
+
},
|
|
14923
|
+
props.fieldNames
|
|
14924
|
+
);
|
|
14925
|
+
const [selectedValue, setSelectedValue] = useMergedState({
|
|
14926
|
+
value: props.value,
|
|
14927
|
+
defaultValue: props.defaultValue
|
|
14928
|
+
});
|
|
14929
|
+
const [activeIndex, setActiveIndex] = useMergedState({
|
|
14930
|
+
value: props.activeIndex,
|
|
14931
|
+
defaultValue: props.defaultActiveIndex
|
|
14932
|
+
});
|
|
14933
|
+
const navItems = useMemo(() => {
|
|
14934
|
+
return props.treeData || [];
|
|
14935
|
+
}, [props.treeData]);
|
|
14936
|
+
const contentItems = useMemo(() => {
|
|
14937
|
+
const currentNav = navItems[activeIndex];
|
|
14938
|
+
return (currentNav == null ? void 0 : currentNav[childrenKey]) || [];
|
|
14939
|
+
}, [navItems, activeIndex, childrenKey]);
|
|
14940
|
+
const isValueSelected = useMemoizedFn((value) => {
|
|
14941
|
+
if (props.multiple) {
|
|
14942
|
+
return Array.isArray(selectedValue) && selectedValue.includes(value);
|
|
14943
|
+
}
|
|
14944
|
+
return selectedValue === value;
|
|
14945
|
+
});
|
|
14946
|
+
const findNode = useMemoizedFn(
|
|
14947
|
+
(nodes, value) => {
|
|
14948
|
+
for (const node of nodes) {
|
|
14949
|
+
if (node[valueKey] === value) {
|
|
14950
|
+
return node;
|
|
14951
|
+
}
|
|
14952
|
+
if (node[childrenKey]) {
|
|
14953
|
+
const found = findNode(node[childrenKey], value);
|
|
14954
|
+
if (found)
|
|
14955
|
+
return found;
|
|
14956
|
+
}
|
|
14957
|
+
}
|
|
14958
|
+
return null;
|
|
14959
|
+
}
|
|
14960
|
+
);
|
|
14961
|
+
const getSelectedNodes = useMemoizedFn(
|
|
14962
|
+
(value) => {
|
|
14963
|
+
const values = Array.isArray(value) ? value : [value];
|
|
14964
|
+
const nodes = [];
|
|
14965
|
+
values.forEach((val) => {
|
|
14966
|
+
const node = findNode(props.treeData || [], val);
|
|
14967
|
+
if (node)
|
|
14968
|
+
nodes.push(node);
|
|
14969
|
+
});
|
|
14970
|
+
return nodes;
|
|
14971
|
+
}
|
|
14972
|
+
);
|
|
14973
|
+
const handleNavClick = useMemoizedFn((index2) => {
|
|
14974
|
+
var _a;
|
|
14975
|
+
setActiveIndex(index2);
|
|
14976
|
+
(_a = props.onNavClick) == null ? void 0 : _a.call(props, index2);
|
|
14977
|
+
});
|
|
14978
|
+
const handleItemClick = useMemoizedFn((node) => {
|
|
14979
|
+
var _a;
|
|
14980
|
+
const value = node[valueKey];
|
|
14981
|
+
let newValue;
|
|
14982
|
+
if (props.multiple) {
|
|
14983
|
+
const currentValues = Array.isArray(selectedValue) ? selectedValue : [];
|
|
14984
|
+
if (currentValues.includes(value)) {
|
|
14985
|
+
newValue = currentValues.filter((v) => v !== value);
|
|
14986
|
+
} else {
|
|
14987
|
+
newValue = [...currentValues, value];
|
|
14988
|
+
}
|
|
14989
|
+
} else {
|
|
14990
|
+
newValue = value;
|
|
14991
|
+
}
|
|
14992
|
+
setSelectedValue(newValue);
|
|
14993
|
+
const selectedNodes = getSelectedNodes(newValue);
|
|
14994
|
+
(_a = props.onChange) == null ? void 0 : _a.call(props, newValue, selectedNodes);
|
|
14995
|
+
});
|
|
14996
|
+
const renderNav = () => /* @__PURE__ */ React.createElement("div", {
|
|
14997
|
+
className: clsx(bem("nav"), props.navClassName),
|
|
14998
|
+
style: {
|
|
14999
|
+
width: props.navWidth,
|
|
15000
|
+
height: props.height,
|
|
15001
|
+
...props.navStyle
|
|
15002
|
+
}
|
|
15003
|
+
}, navItems.map((item, index2) => {
|
|
15004
|
+
const isActive = index2 === activeIndex;
|
|
15005
|
+
const title = item[titleKey];
|
|
15006
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
15007
|
+
key: item[keyKey] || item[valueKey] || index2,
|
|
15008
|
+
className: clsx(
|
|
15009
|
+
bem("nav-item", {
|
|
15010
|
+
active: isActive,
|
|
15011
|
+
disabled: item.disabled
|
|
15012
|
+
}),
|
|
15013
|
+
item.className
|
|
15014
|
+
),
|
|
15015
|
+
style: item.style,
|
|
15016
|
+
onClick: () => !item.disabled && handleNavClick(index2)
|
|
15017
|
+
}, item.icon && /* @__PURE__ */ React.createElement("span", {
|
|
15018
|
+
className: clsx(bem("nav-icon"))
|
|
15019
|
+
}, item.icon), /* @__PURE__ */ React.createElement("span", {
|
|
15020
|
+
className: clsx(bem("nav-text"))
|
|
15021
|
+
}, title), item.badge && /* @__PURE__ */ React.createElement("span", {
|
|
15022
|
+
className: clsx(bem("nav-badge"))
|
|
15023
|
+
}, item.badge));
|
|
15024
|
+
}));
|
|
15025
|
+
const renderContent = () => {
|
|
15026
|
+
const currentNav = navItems[activeIndex];
|
|
15027
|
+
if (props.contentRender && currentNav) {
|
|
15028
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
15029
|
+
className: clsx(bem("content"), props.contentClassName),
|
|
15030
|
+
style: {
|
|
15031
|
+
height: props.height,
|
|
15032
|
+
...props.contentStyle
|
|
15033
|
+
}
|
|
15034
|
+
}, props.contentRender(currentNav));
|
|
15035
|
+
}
|
|
15036
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
15037
|
+
className: clsx(bem("content"), props.contentClassName),
|
|
15038
|
+
style: {
|
|
15039
|
+
height: props.height,
|
|
15040
|
+
...props.contentStyle
|
|
15041
|
+
}
|
|
15042
|
+
}, contentItems.length > 0 ? /* @__PURE__ */ React.createElement("div", {
|
|
15043
|
+
className: clsx(bem("items"))
|
|
15044
|
+
}, contentItems.map((item, index2) => {
|
|
15045
|
+
const value = item[valueKey];
|
|
15046
|
+
const selected = isValueSelected(value);
|
|
15047
|
+
return /* @__PURE__ */ React.createElement(TreeSelectItem, {
|
|
15048
|
+
key: item[keyKey] || value || index2,
|
|
15049
|
+
node: item,
|
|
15050
|
+
selected,
|
|
15051
|
+
multiple: props.multiple,
|
|
15052
|
+
onClick: handleItemClick,
|
|
15053
|
+
fieldNames: props.fieldNames
|
|
15054
|
+
});
|
|
15055
|
+
})) : /* @__PURE__ */ React.createElement("div", {
|
|
15056
|
+
className: clsx(bem("content-empty"))
|
|
15057
|
+
}, props.placeholder || "\u6682\u65E0\u6570\u636E"));
|
|
15058
|
+
};
|
|
15059
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
15060
|
+
className: clsx(props.className, bem()),
|
|
15061
|
+
style: props.style
|
|
15062
|
+
}, renderNav(), renderContent());
|
|
15063
|
+
};
|
|
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 };
|