@nutui/nutui-react 2.0.0-alpha.1 → 2.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/esm/Address.js +1 -1
- package/dist/esm/Animate.js +6 -7
- package/dist/esm/Badge.js +15 -22
- package/dist/esm/Divider.js +4 -3
- package/dist/esm/Drag.js +7 -9
- package/dist/esm/Elevator.js +38 -41
- package/dist/esm/Menu.js +75 -73
- package/dist/esm/MenuItem.js +29 -27
- package/dist/esm/NavBar.js +17 -48
- package/dist/esm/Progress.js +20 -68
- package/dist/esm/Uploader.js +2 -3
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.mjs +603 -708
- package/dist/nutui.react.umd.js +603 -708
- package/dist/packages/badge/badge.scss +8 -17
- package/dist/packages/elevator/elevator.scss +2 -28
- package/dist/packages/menu/menu.scss +44 -55
- package/dist/packages/menuitem/menuitem.scss +16 -26
- package/dist/packages/navbar/navbar.scss +16 -115
- package/dist/packages/progress/progress.scss +19 -58
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/variables-jmapp.scss +23 -114
- package/dist/styles/variables.scss +31 -122
- package/dist/types/index.d.ts +19 -53
- package/package.json +1 -1
package/dist/nutui.react.umd.js
CHANGED
|
@@ -9,7 +9,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9
9
|
return value;
|
|
10
10
|
};
|
|
11
11
|
/*!
|
|
12
|
-
* @nutui/nutui-react v2.0.0-alpha.
|
|
12
|
+
* @nutui/nutui-react v2.0.0-alpha.2 Wed Apr 26 2023 18:36:40 GMT+0800 (China Standard Time)
|
|
13
13
|
* (c) 2023 @jdf2e.
|
|
14
14
|
* Released under the MIT License.
|
|
15
15
|
*/
|
|
@@ -333,29 +333,29 @@ var __publicField = (obj, key, value) => {
|
|
|
333
333
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
334
334
|
try {
|
|
335
335
|
Reflect.construct(o, []);
|
|
336
|
-
} catch (
|
|
337
|
-
n =
|
|
336
|
+
} catch (b) {
|
|
337
|
+
n = b;
|
|
338
338
|
}
|
|
339
339
|
Reflect.construct(e, [], o);
|
|
340
340
|
} else {
|
|
341
341
|
try {
|
|
342
342
|
o.call();
|
|
343
|
-
} catch (
|
|
344
|
-
n =
|
|
343
|
+
} catch (b) {
|
|
344
|
+
n = b;
|
|
345
345
|
}
|
|
346
346
|
e.call(o.prototype);
|
|
347
347
|
}
|
|
348
348
|
} else {
|
|
349
349
|
try {
|
|
350
350
|
throw Error();
|
|
351
|
-
} catch (
|
|
352
|
-
n =
|
|
351
|
+
} catch (b) {
|
|
352
|
+
n = b;
|
|
353
353
|
}
|
|
354
354
|
e();
|
|
355
355
|
}
|
|
356
|
-
} catch (
|
|
357
|
-
if (
|
|
358
|
-
for (var a2 =
|
|
356
|
+
} catch (b) {
|
|
357
|
+
if (b && n && typeof b.stack == "string") {
|
|
358
|
+
for (var a2 = b.stack.split(`
|
|
359
359
|
`), v = n.stack.split(`
|
|
360
360
|
`), s = a2.length - 1, f = v.length - 1; s >= 1 && f >= 0 && a2[s] !== v[f]; )
|
|
361
361
|
f--;
|
|
@@ -2292,15 +2292,15 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2292
2292
|
hasRequiredReactJsxRuntime_production_min = 1;
|
|
2293
2293
|
var f = React, k2 = Symbol.for("react.element"), l2 = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: true, ref: true, __self: true, __source: true };
|
|
2294
2294
|
function q(c, a2, g) {
|
|
2295
|
-
var
|
|
2295
|
+
var b, d = {}, e = null, h = null;
|
|
2296
2296
|
void 0 !== g && (e = "" + g);
|
|
2297
2297
|
void 0 !== a2.key && (e = "" + a2.key);
|
|
2298
2298
|
void 0 !== a2.ref && (h = a2.ref);
|
|
2299
|
-
for (
|
|
2300
|
-
m.call(a2,
|
|
2299
|
+
for (b in a2)
|
|
2300
|
+
m.call(a2, b) && !p.hasOwnProperty(b) && (d[b] = a2[b]);
|
|
2301
2301
|
if (c && c.defaultProps)
|
|
2302
|
-
for (
|
|
2303
|
-
void 0 === d[
|
|
2302
|
+
for (b in a2 = c.defaultProps, a2)
|
|
2303
|
+
void 0 === d[b] && (d[b] = a2[b]);
|
|
2304
2304
|
return { $$typeof: k2, type: c, key: e, ref: h, props: d, _owner: n.current };
|
|
2305
2305
|
}
|
|
2306
2306
|
reactJsxRuntime_production_min.Fragment = l2;
|
|
@@ -3301,7 +3301,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
3301
3301
|
onClick: (event) => {
|
|
3302
3302
|
}
|
|
3303
3303
|
};
|
|
3304
|
-
const classPrefix$
|
|
3304
|
+
const classPrefix$9 = "nut-cell";
|
|
3305
3305
|
const Cell = (props) => {
|
|
3306
3306
|
const {
|
|
3307
3307
|
children,
|
|
@@ -3330,26 +3330,26 @@ Check the top-level render call using <` + t + ">.");
|
|
|
3330
3330
|
flex: 1
|
|
3331
3331
|
};
|
|
3332
3332
|
return /* @__PURE__ */ jsx("div", {
|
|
3333
|
-
className: classNames(classPrefix$
|
|
3333
|
+
className: classNames(classPrefix$9, className),
|
|
3334
3334
|
onClick: (event) => handleClick2(event),
|
|
3335
3335
|
style: baseStyle,
|
|
3336
3336
|
...rest,
|
|
3337
3337
|
children: children || /* @__PURE__ */ jsxs(Fragment, {
|
|
3338
3338
|
children: [title || description ? /* @__PURE__ */ jsxs("div", {
|
|
3339
|
-
className: `${classPrefix$
|
|
3339
|
+
className: `${classPrefix$9}__left`,
|
|
3340
3340
|
children: [title ? /* @__PURE__ */ jsx("div", {
|
|
3341
|
-
className: `${classPrefix$
|
|
3341
|
+
className: `${classPrefix$9}__title`,
|
|
3342
3342
|
children: title
|
|
3343
3343
|
}) : null, description ? /* @__PURE__ */ jsx("div", {
|
|
3344
|
-
className: `${classPrefix$
|
|
3344
|
+
className: `${classPrefix$9}__description`,
|
|
3345
3345
|
children: description
|
|
3346
3346
|
}) : null]
|
|
3347
3347
|
}) : null, extra ? /* @__PURE__ */ jsx("div", {
|
|
3348
|
-
className: `${classPrefix$
|
|
3348
|
+
className: `${classPrefix$9}__extra`,
|
|
3349
3349
|
style: styles,
|
|
3350
3350
|
children: extra
|
|
3351
3351
|
}) : null, /* @__PURE__ */ jsx("div", {
|
|
3352
|
-
className: `${classPrefix$
|
|
3352
|
+
className: `${classPrefix$9}__divider`
|
|
3353
3353
|
})]
|
|
3354
3354
|
})
|
|
3355
3355
|
});
|
|
@@ -3361,7 +3361,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
3361
3361
|
title: "",
|
|
3362
3362
|
description: ""
|
|
3363
3363
|
};
|
|
3364
|
-
const classPrefix$
|
|
3364
|
+
const classPrefix$8 = "nut-cell-group";
|
|
3365
3365
|
const CellGroup = (props) => {
|
|
3366
3366
|
const {
|
|
3367
3367
|
children,
|
|
@@ -3375,16 +3375,16 @@ Check the top-level render call using <` + t + ">.");
|
|
|
3375
3375
|
...props
|
|
3376
3376
|
};
|
|
3377
3377
|
return /* @__PURE__ */ jsxs("div", {
|
|
3378
|
-
className: classNames(classPrefix$
|
|
3378
|
+
className: classNames(classPrefix$8, className),
|
|
3379
3379
|
...rest,
|
|
3380
3380
|
children: [title ? /* @__PURE__ */ jsx("div", {
|
|
3381
|
-
className: `${classPrefix$
|
|
3381
|
+
className: `${classPrefix$8}__title`,
|
|
3382
3382
|
children: title
|
|
3383
3383
|
}) : null, description ? /* @__PURE__ */ jsx("div", {
|
|
3384
|
-
className: `${classPrefix$
|
|
3384
|
+
className: `${classPrefix$8}__description`,
|
|
3385
3385
|
children: description
|
|
3386
3386
|
}) : null, /* @__PURE__ */ jsx("div", {
|
|
3387
|
-
className: `${classPrefix$
|
|
3387
|
+
className: `${classPrefix$8}__wrap`,
|
|
3388
3388
|
children
|
|
3389
3389
|
})]
|
|
3390
3390
|
});
|
|
@@ -3864,7 +3864,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
3864
3864
|
loading: true,
|
|
3865
3865
|
lazy: false
|
|
3866
3866
|
};
|
|
3867
|
-
const classPrefix$
|
|
3867
|
+
const classPrefix$7 = "nut-image";
|
|
3868
3868
|
const Image$1 = (props) => {
|
|
3869
3869
|
const {
|
|
3870
3870
|
className,
|
|
@@ -3993,7 +3993,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
3993
3993
|
return null;
|
|
3994
3994
|
}, [loading, innerLoading]);
|
|
3995
3995
|
return /* @__PURE__ */ jsxs("div", {
|
|
3996
|
-
className: classNames(classPrefix$
|
|
3996
|
+
className: classNames(classPrefix$7, className),
|
|
3997
3997
|
style: containerStyle,
|
|
3998
3998
|
onClick: (e) => {
|
|
3999
3999
|
imageClick(e);
|
|
@@ -4028,7 +4028,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
4028
4028
|
visible: false,
|
|
4029
4029
|
lockScroll: true
|
|
4030
4030
|
};
|
|
4031
|
-
const classPrefix$
|
|
4031
|
+
const classPrefix$6 = `nut-overlay`;
|
|
4032
4032
|
const Overlay = (props) => {
|
|
4033
4033
|
const {
|
|
4034
4034
|
children,
|
|
@@ -4071,7 +4071,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
4071
4071
|
"overlay-fade-enter-active": visible,
|
|
4072
4072
|
"first-render": renderRef.current && !visible,
|
|
4073
4073
|
"hidden-render": !visible
|
|
4074
|
-
}, className, classPrefix$
|
|
4074
|
+
}, className, classPrefix$6);
|
|
4075
4075
|
const styles = {
|
|
4076
4076
|
zIndex,
|
|
4077
4077
|
animationDuration: `${props.duration}s`,
|
|
@@ -4178,7 +4178,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
4178
4178
|
if (hasRequiredReactIs_production_min)
|
|
4179
4179
|
return reactIs_production_min;
|
|
4180
4180
|
hasRequiredReactIs_production_min = 1;
|
|
4181
|
-
var
|
|
4181
|
+
var b = "function" === typeof Symbol && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k2 = b ? Symbol.for("react.context") : 60110, l2 = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x2 = b ? Symbol.for("react.responder") : 60118, y2 = b ? Symbol.for("react.scope") : 60119;
|
|
4182
4182
|
function z(a2) {
|
|
4183
4183
|
if ("object" === typeof a2 && null !== a2) {
|
|
4184
4184
|
var u = a2.$$typeof;
|
|
@@ -6091,10 +6091,11 @@ Check the top-level render call using <` + t + ">.");
|
|
|
6091
6091
|
Col.defaultProps = defaultProps$1l;
|
|
6092
6092
|
Col.displayName = "NutCol";
|
|
6093
6093
|
const defaultProps$1k = {
|
|
6094
|
+
...ComponentDefaults,
|
|
6094
6095
|
contentPosition: "center",
|
|
6095
6096
|
direction: "horizontal"
|
|
6096
6097
|
};
|
|
6097
|
-
const classPrefix$
|
|
6098
|
+
const classPrefix$5 = `nut-divider`;
|
|
6098
6099
|
const Divider = (props) => {
|
|
6099
6100
|
const {
|
|
6100
6101
|
children,
|
|
@@ -6108,14 +6109,14 @@ Check the top-level render call using <` + t + ">.");
|
|
|
6108
6109
|
...props
|
|
6109
6110
|
};
|
|
6110
6111
|
const classes = direction === "horizontal" ? classNames({
|
|
6111
|
-
[`${classPrefix$
|
|
6112
|
-
[`${classPrefix$
|
|
6113
|
-
[`${classPrefix$
|
|
6114
|
-
[`${classPrefix$
|
|
6115
|
-
[`${classPrefix$
|
|
6112
|
+
[`${classPrefix$5}`]: true,
|
|
6113
|
+
[`${classPrefix$5}__center`]: children,
|
|
6114
|
+
[`${classPrefix$5}__left`]: contentPosition === "left",
|
|
6115
|
+
[`${classPrefix$5}__right`]: contentPosition === "right",
|
|
6116
|
+
[`${classPrefix$5}__hairline`]: true
|
|
6116
6117
|
}) : classNames({
|
|
6117
|
-
[`${classPrefix$
|
|
6118
|
-
[`${classPrefix$
|
|
6118
|
+
[`${classPrefix$5}`]: true,
|
|
6119
|
+
[`${classPrefix$5}__vertical`]: direction === "vertical"
|
|
6119
6120
|
});
|
|
6120
6121
|
return /* @__PURE__ */ jsx("div", {
|
|
6121
6122
|
className: `${classes} ${className || ""}`,
|
|
@@ -6299,7 +6300,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
6299
6300
|
};
|
|
6300
6301
|
Layout.defaultProps = defaultProps$1h;
|
|
6301
6302
|
Layout.displayName = "NutLayout";
|
|
6302
|
-
const classPrefix$
|
|
6303
|
+
const classPrefix$4 = "nut-row";
|
|
6303
6304
|
const defaultProps$1g = {
|
|
6304
6305
|
...ComponentDefaults,
|
|
6305
6306
|
type: "",
|
|
@@ -6334,7 +6335,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
6334
6335
|
${getClass("justify", justify)}
|
|
6335
6336
|
${getClass("align", align)}
|
|
6336
6337
|
${getClass("flex", wrap)}
|
|
6337
|
-
${classPrefix$
|
|
6338
|
+
${classPrefix$4}
|
|
6338
6339
|
`;
|
|
6339
6340
|
};
|
|
6340
6341
|
const parentRow = {
|
|
@@ -6436,7 +6437,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
6436
6437
|
threshold: 0,
|
|
6437
6438
|
zIndex: 2e3
|
|
6438
6439
|
};
|
|
6439
|
-
const classPrefix$
|
|
6440
|
+
const classPrefix$3 = "nut-sticky";
|
|
6440
6441
|
const Sticky = (props) => {
|
|
6441
6442
|
const {
|
|
6442
6443
|
position,
|
|
@@ -6566,7 +6567,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
6566
6567
|
...style,
|
|
6567
6568
|
...rootStyle
|
|
6568
6569
|
},
|
|
6569
|
-
className: classNames(classPrefix$
|
|
6570
|
+
className: classNames(classPrefix$3, className),
|
|
6570
6571
|
...rest,
|
|
6571
6572
|
children: /* @__PURE__ */ jsx("div", {
|
|
6572
6573
|
className: "nut-sticky--box",
|
|
@@ -8678,17 +8679,17 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
8678
8679
|
num: (a2) => typeof a2 === "number",
|
|
8679
8680
|
und: (a2) => a2 === void 0
|
|
8680
8681
|
};
|
|
8681
|
-
function isEqual(a2,
|
|
8682
|
+
function isEqual(a2, b) {
|
|
8682
8683
|
if (is.arr(a2)) {
|
|
8683
|
-
if (!is.arr(
|
|
8684
|
+
if (!is.arr(b) || a2.length !== b.length)
|
|
8684
8685
|
return false;
|
|
8685
8686
|
for (let i = 0; i < a2.length; i++) {
|
|
8686
|
-
if (a2[i] !==
|
|
8687
|
+
if (a2[i] !== b[i])
|
|
8687
8688
|
return false;
|
|
8688
8689
|
}
|
|
8689
8690
|
return true;
|
|
8690
8691
|
}
|
|
8691
|
-
return a2 ===
|
|
8692
|
+
return a2 === b;
|
|
8692
8693
|
}
|
|
8693
8694
|
const each = (obj, fn) => obj.forEach(fn);
|
|
8694
8695
|
function eachProp(obj, fn, ctx2) {
|
|
@@ -9043,8 +9044,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
9043
9044
|
const p = 2 * l2 - q;
|
|
9044
9045
|
const r = hue2rgb(p, q, h + 1 / 3);
|
|
9045
9046
|
const g = hue2rgb(p, q, h);
|
|
9046
|
-
const
|
|
9047
|
-
return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(
|
|
9047
|
+
const b = hue2rgb(p, q, h - 1 / 3);
|
|
9048
|
+
return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b * 255) << 8;
|
|
9048
9049
|
}
|
|
9049
9050
|
function parse255(str) {
|
|
9050
9051
|
const int = parseInt(str, 10);
|
|
@@ -9081,9 +9082,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
9081
9082
|
int32Color = int32Color || 0;
|
|
9082
9083
|
let r = (int32Color & 4278190080) >>> 24;
|
|
9083
9084
|
let g = (int32Color & 16711680) >>> 16;
|
|
9084
|
-
let
|
|
9085
|
+
let b = (int32Color & 65280) >>> 8;
|
|
9085
9086
|
let a2 = (int32Color & 255) / 255;
|
|
9086
|
-
return `rgba(${r}, ${g}, ${
|
|
9087
|
+
return `rgba(${r}, ${g}, ${b}, ${a2})`;
|
|
9087
9088
|
}
|
|
9088
9089
|
const createInterpolator = (range2, output, extrapolate) => {
|
|
9089
9090
|
if (is.fun(range2)) {
|
|
@@ -11693,145 +11694,26 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11693
11694
|
}
|
|
11694
11695
|
});
|
|
11695
11696
|
const animated = host.animated;
|
|
11696
|
-
var classnameExports = {};
|
|
11697
|
-
var classname = {
|
|
11698
|
-
get exports() {
|
|
11699
|
-
return classnameExports;
|
|
11700
|
-
},
|
|
11701
|
-
set exports(v) {
|
|
11702
|
-
classnameExports = v;
|
|
11703
|
-
}
|
|
11704
|
-
};
|
|
11705
|
-
var classname_production_min = {};
|
|
11706
|
-
var hasRequiredClassname_production_min;
|
|
11707
|
-
function requireClassname_production_min() {
|
|
11708
|
-
if (hasRequiredClassname_production_min)
|
|
11709
|
-
return classname_production_min;
|
|
11710
|
-
hasRequiredClassname_production_min = 1;
|
|
11711
|
-
function r(r2) {
|
|
11712
|
-
function t2(t3, i, a2, o) {
|
|
11713
|
-
var f = i ? e + t3 + r2.e + i : e + t3, v = f;
|
|
11714
|
-
if (a2) {
|
|
11715
|
-
var s = " " + v + r2.m;
|
|
11716
|
-
for (var u in a2)
|
|
11717
|
-
if (a2.hasOwnProperty(u)) {
|
|
11718
|
-
var p = a2[u];
|
|
11719
|
-
true === p ? v += s + u : p && (v += s + u + n + p);
|
|
11720
|
-
}
|
|
11721
|
-
}
|
|
11722
|
-
if (void 0 !== o)
|
|
11723
|
-
for (var y2 = 0, c = (o = Array.isArray(o) ? o : [o]).length; y2 < c; y2++) {
|
|
11724
|
-
var l2 = o[y2];
|
|
11725
|
-
if (l2 && "string" == typeof l2.valueOf())
|
|
11726
|
-
for (var g = l2.valueOf().split(" "), d = 0; d < g.length; d++) {
|
|
11727
|
-
var h = g[d];
|
|
11728
|
-
h !== f && (v += " " + h);
|
|
11729
|
-
}
|
|
11730
|
-
}
|
|
11731
|
-
return v;
|
|
11732
|
-
}
|
|
11733
|
-
var e = r2.n || "", n = r2.v || r2.m;
|
|
11734
|
-
return function(r3, e2) {
|
|
11735
|
-
return function(n2, i, a2) {
|
|
11736
|
-
return "string" == typeof n2 ? "string" == typeof i || Array.isArray(i) ? t2(r3, n2, void 0, i) : t2(r3, n2, i, a2) : t2(r3, e2, n2, i);
|
|
11737
|
-
};
|
|
11738
|
-
};
|
|
11739
|
-
}
|
|
11740
|
-
Object.defineProperty(classname_production_min, "__esModule", { value: true });
|
|
11741
|
-
var t = r({ e: "-", m: "_" });
|
|
11742
|
-
classname_production_min.cn = t, classname_production_min.withNaming = r;
|
|
11743
|
-
return classname_production_min;
|
|
11744
|
-
}
|
|
11745
|
-
var classname_development = {};
|
|
11746
|
-
var hasRequiredClassname_development;
|
|
11747
|
-
function requireClassname_development() {
|
|
11748
|
-
if (hasRequiredClassname_development)
|
|
11749
|
-
return classname_development;
|
|
11750
|
-
hasRequiredClassname_development = 1;
|
|
11751
|
-
Object.defineProperty(classname_development, "__esModule", { value: true });
|
|
11752
|
-
function withNaming(preset) {
|
|
11753
|
-
var nameSpace = preset.n || "";
|
|
11754
|
-
var modValueDelimiter = preset.v || preset.m;
|
|
11755
|
-
function stringify(b2, e, m, mix) {
|
|
11756
|
-
var entityName = e ? nameSpace + b2 + preset.e + e : nameSpace + b2;
|
|
11757
|
-
var className = entityName;
|
|
11758
|
-
if (m) {
|
|
11759
|
-
var modPrefix = " " + className + preset.m;
|
|
11760
|
-
for (var k2 in m) {
|
|
11761
|
-
if (m.hasOwnProperty(k2)) {
|
|
11762
|
-
var modVal = m[k2];
|
|
11763
|
-
if (modVal === true) {
|
|
11764
|
-
className += modPrefix + k2;
|
|
11765
|
-
} else if (modVal) {
|
|
11766
|
-
className += modPrefix + k2 + modValueDelimiter + modVal;
|
|
11767
|
-
}
|
|
11768
|
-
}
|
|
11769
|
-
}
|
|
11770
|
-
}
|
|
11771
|
-
if (mix !== void 0) {
|
|
11772
|
-
mix = Array.isArray(mix) ? mix : [mix];
|
|
11773
|
-
for (var i = 0, len = mix.length; i < len; i++) {
|
|
11774
|
-
var value = mix[i];
|
|
11775
|
-
if (!value || typeof value.valueOf() !== "string")
|
|
11776
|
-
continue;
|
|
11777
|
-
var mixes = value.valueOf().split(" ");
|
|
11778
|
-
for (var j = 0; j < mixes.length; j++) {
|
|
11779
|
-
var val = mixes[j];
|
|
11780
|
-
if (val !== entityName) {
|
|
11781
|
-
className += " " + val;
|
|
11782
|
-
}
|
|
11783
|
-
}
|
|
11784
|
-
}
|
|
11785
|
-
}
|
|
11786
|
-
return className;
|
|
11787
|
-
}
|
|
11788
|
-
return function cnGenerator(b2, e) {
|
|
11789
|
-
return function(elemOrMods, elemModsOrBlockMix, elemMix) {
|
|
11790
|
-
if (typeof elemOrMods === "string") {
|
|
11791
|
-
if (typeof elemModsOrBlockMix === "string" || Array.isArray(elemModsOrBlockMix)) {
|
|
11792
|
-
return stringify(b2, elemOrMods, void 0, elemModsOrBlockMix);
|
|
11793
|
-
}
|
|
11794
|
-
return stringify(b2, elemOrMods, elemModsOrBlockMix, elemMix);
|
|
11795
|
-
}
|
|
11796
|
-
return stringify(b2, e, elemOrMods, elemModsOrBlockMix);
|
|
11797
|
-
};
|
|
11798
|
-
};
|
|
11799
|
-
}
|
|
11800
|
-
var cn2 = withNaming({
|
|
11801
|
-
e: "-",
|
|
11802
|
-
m: "_"
|
|
11803
|
-
});
|
|
11804
|
-
classname_development.cn = cn2;
|
|
11805
|
-
classname_development.withNaming = withNaming;
|
|
11806
|
-
return classname_development;
|
|
11807
|
-
}
|
|
11808
|
-
(function(module2) {
|
|
11809
|
-
if (process.env.NODE_ENV === "production") {
|
|
11810
|
-
module2.exports = requireClassname_production_min();
|
|
11811
|
-
} else {
|
|
11812
|
-
module2.exports = requireClassname_development();
|
|
11813
|
-
}
|
|
11814
|
-
})(classname);
|
|
11815
|
-
const cn = classnameExports.withNaming({ n: "nut-", e: "__", m: "--", v: "-" });
|
|
11816
11697
|
const elevatorContext = React.createContext({});
|
|
11817
11698
|
const defaultProps$1e = {
|
|
11699
|
+
...ComponentDefaults,
|
|
11818
11700
|
height: "200px",
|
|
11819
|
-
|
|
11820
|
-
|
|
11821
|
-
|
|
11701
|
+
floorKey: "title",
|
|
11702
|
+
list: [],
|
|
11703
|
+
sticky: false,
|
|
11822
11704
|
spaceHeight: 23,
|
|
11823
|
-
titleHeight: 35
|
|
11824
|
-
className: ""
|
|
11705
|
+
titleHeight: 35
|
|
11825
11706
|
};
|
|
11826
11707
|
const Elevator = (props) => {
|
|
11827
11708
|
const {
|
|
11828
11709
|
height,
|
|
11829
|
-
|
|
11830
|
-
|
|
11831
|
-
|
|
11710
|
+
floorKey,
|
|
11711
|
+
list,
|
|
11712
|
+
sticky,
|
|
11832
11713
|
spaceHeight,
|
|
11833
11714
|
titleHeight,
|
|
11834
11715
|
className,
|
|
11716
|
+
style,
|
|
11835
11717
|
onClickItem,
|
|
11836
11718
|
onClickIndex,
|
|
11837
11719
|
children,
|
|
@@ -11840,7 +11722,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11840
11722
|
...defaultProps$1e,
|
|
11841
11723
|
...props
|
|
11842
11724
|
};
|
|
11843
|
-
const
|
|
11725
|
+
const classPrefix2 = "nut-elevator";
|
|
11844
11726
|
const listview = React.useRef(null);
|
|
11845
11727
|
const initData = {
|
|
11846
11728
|
anchorIndex: 0,
|
|
@@ -11965,35 +11847,37 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11965
11847
|
}
|
|
11966
11848
|
}, [listview]);
|
|
11967
11849
|
return /* @__PURE__ */ jsxs("div", {
|
|
11968
|
-
className: `${
|
|
11850
|
+
className: `${classPrefix2} ${className}`,
|
|
11851
|
+
style,
|
|
11969
11852
|
...rest,
|
|
11970
|
-
children: [
|
|
11971
|
-
className:
|
|
11853
|
+
children: [sticky && scrollY > 0 ? /* @__PURE__ */ jsx("div", {
|
|
11854
|
+
className: `${classPrefix2}__list__fixed`,
|
|
11972
11855
|
children: /* @__PURE__ */ jsx("span", {
|
|
11973
|
-
className:
|
|
11974
|
-
children:
|
|
11856
|
+
className: `${classPrefix2}__list__fixed__title`,
|
|
11857
|
+
children: list[currentIndex][floorKey]
|
|
11975
11858
|
})
|
|
11976
11859
|
}) : null, /* @__PURE__ */ jsx("div", {
|
|
11977
|
-
className:
|
|
11860
|
+
className: `${classPrefix2}__list`,
|
|
11978
11861
|
style: {
|
|
11979
11862
|
height: Number.isNaN(+height) ? height : `${height}px`
|
|
11980
11863
|
},
|
|
11981
11864
|
children: /* @__PURE__ */ jsx("div", {
|
|
11982
|
-
className:
|
|
11865
|
+
className: `${classPrefix2}__list__inner`,
|
|
11983
11866
|
ref: listview,
|
|
11984
|
-
children:
|
|
11867
|
+
children: list.map((item, idx) => {
|
|
11985
11868
|
return /* @__PURE__ */ jsxs("div", {
|
|
11986
|
-
className:
|
|
11869
|
+
className: `${classPrefix2}__list__item`,
|
|
11987
11870
|
children: [/* @__PURE__ */ jsx("div", {
|
|
11988
|
-
className:
|
|
11989
|
-
children: item[
|
|
11871
|
+
className: `${classPrefix2}__list__item__code`,
|
|
11872
|
+
children: item[floorKey]
|
|
11990
11873
|
}), /* @__PURE__ */ jsx(Fragment, {
|
|
11991
11874
|
children: item.list.map((subitem) => {
|
|
11992
11875
|
return /* @__PURE__ */ jsx("div", {
|
|
11993
|
-
className:
|
|
11994
|
-
|
|
11876
|
+
className: classNames({
|
|
11877
|
+
[`${classPrefix2}__list__item__name`]: true,
|
|
11878
|
+
[`${classPrefix2}__list__item__name--highcolor`]: currentData.id === subitem.id && currentKey === item[floorKey]
|
|
11995
11879
|
}),
|
|
11996
|
-
onClick: () => handleClickItem(item[
|
|
11880
|
+
onClick: () => handleClickItem(item[floorKey], subitem),
|
|
11997
11881
|
children: children ? /* @__PURE__ */ jsx(Fragment, {
|
|
11998
11882
|
children: /* @__PURE__ */ jsx(elevatorContext.Provider, {
|
|
11999
11883
|
value: subitem,
|
|
@@ -12006,27 +11890,29 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12006
11890
|
}, idx);
|
|
12007
11891
|
})
|
|
12008
11892
|
})
|
|
12009
|
-
}),
|
|
12010
|
-
className:
|
|
12011
|
-
current: true
|
|
11893
|
+
}), list.length && scrollStart ? /* @__PURE__ */ jsx("div", {
|
|
11894
|
+
className: classNames({
|
|
11895
|
+
[`${classPrefix2}__code--current`]: true,
|
|
11896
|
+
[`${classPrefix2}__code--current--current`]: true
|
|
12012
11897
|
}),
|
|
12013
|
-
children:
|
|
11898
|
+
children: list[codeIndex][floorKey]
|
|
12014
11899
|
}) : null, /* @__PURE__ */ jsx("div", {
|
|
12015
|
-
className:
|
|
11900
|
+
className: `${classPrefix2}__bars`,
|
|
12016
11901
|
children: /* @__PURE__ */ jsx(animated.div, {
|
|
12017
|
-
className:
|
|
11902
|
+
className: `${classPrefix2}__bars__inner`,
|
|
12018
11903
|
...bind(),
|
|
12019
11904
|
style: {
|
|
12020
11905
|
touchAction: "pan-y"
|
|
12021
11906
|
},
|
|
12022
|
-
children:
|
|
11907
|
+
children: list.map((item, index) => {
|
|
12023
11908
|
return /* @__PURE__ */ jsx("div", {
|
|
12024
|
-
className:
|
|
12025
|
-
|
|
11909
|
+
className: classNames({
|
|
11910
|
+
[`${classPrefix2}__bars__inner__item`]: true,
|
|
11911
|
+
[`${classPrefix2}__bars__inner__item--active`]: item[floorKey] === list[currentIndex][floorKey]
|
|
12026
11912
|
}),
|
|
12027
11913
|
"data-index": index,
|
|
12028
|
-
onClick: () => handleClickIndex(item[
|
|
12029
|
-
children: item[
|
|
11914
|
+
onClick: () => handleClickIndex(item[floorKey]),
|
|
11915
|
+
children: item[floorKey]
|
|
12030
11916
|
}, index);
|
|
12031
11917
|
})
|
|
12032
11918
|
})
|
|
@@ -12132,7 +12018,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12132
12018
|
current: 1,
|
|
12133
12019
|
direction: "horizontal"
|
|
12134
12020
|
};
|
|
12135
|
-
const classPrefix$
|
|
12021
|
+
const classPrefix$2 = `nut-indicator`;
|
|
12136
12022
|
const Indicator = (props) => {
|
|
12137
12023
|
const {
|
|
12138
12024
|
total,
|
|
@@ -12146,17 +12032,17 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12146
12032
|
...props
|
|
12147
12033
|
};
|
|
12148
12034
|
const classes = classNames({
|
|
12149
|
-
[`${classPrefix$
|
|
12035
|
+
[`${classPrefix$2}__vertical`]: direction === "vertical"
|
|
12150
12036
|
});
|
|
12151
12037
|
const renderElement = () => {
|
|
12152
12038
|
const childs = [];
|
|
12153
12039
|
for (let item = 1; item <= total; item++) {
|
|
12154
12040
|
childs.push(item === current ? /* @__PURE__ */ jsx(Fragment, {
|
|
12155
12041
|
children: children || /* @__PURE__ */ jsx("div", {
|
|
12156
|
-
className: `${classPrefix$
|
|
12042
|
+
className: `${classPrefix$2}__dot ${classPrefix$2}__active`
|
|
12157
12043
|
}, item)
|
|
12158
12044
|
}) : /* @__PURE__ */ jsx("div", {
|
|
12159
|
-
className: `${classPrefix$
|
|
12045
|
+
className: `${classPrefix$2}__dot`
|
|
12160
12046
|
}, item));
|
|
12161
12047
|
}
|
|
12162
12048
|
return childs;
|
|
@@ -12171,21 +12057,19 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12171
12057
|
Indicator.displayName = "NutIndicator";
|
|
12172
12058
|
const defaultProps$1b = {
|
|
12173
12059
|
...ComponentDefaults,
|
|
12174
|
-
className: "",
|
|
12175
|
-
style: {},
|
|
12176
12060
|
activeColor: "",
|
|
12177
|
-
|
|
12061
|
+
closeOnOverlayClick: true,
|
|
12178
12062
|
scrollFixed: false,
|
|
12179
12063
|
lockScroll: true,
|
|
12180
|
-
|
|
12064
|
+
icon: null
|
|
12181
12065
|
};
|
|
12182
12066
|
const Menu = (props) => {
|
|
12183
12067
|
const {
|
|
12184
12068
|
className,
|
|
12185
|
-
|
|
12069
|
+
icon,
|
|
12186
12070
|
scrollFixed,
|
|
12187
12071
|
lockScroll,
|
|
12188
|
-
|
|
12072
|
+
closeOnOverlayClick,
|
|
12189
12073
|
children,
|
|
12190
12074
|
activeColor,
|
|
12191
12075
|
...rest
|
|
@@ -12193,7 +12077,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12193
12077
|
...defaultProps$1b,
|
|
12194
12078
|
...props
|
|
12195
12079
|
};
|
|
12196
|
-
const
|
|
12080
|
+
const menuRef = React.useRef(null);
|
|
12197
12081
|
const [isScrollFixed, setIsScrollFixed] = React.useState(false);
|
|
12198
12082
|
const getScrollTop = (el) => {
|
|
12199
12083
|
return Math.max(0, "scrollTop" in el ? el.scrollTop : el.pageYOffset);
|
|
@@ -12212,99 +12096,101 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12212
12096
|
}
|
|
12213
12097
|
return () => window.removeEventListener("scroll", onScroll);
|
|
12214
12098
|
}, []);
|
|
12215
|
-
const [
|
|
12216
|
-
const [
|
|
12217
|
-
const
|
|
12218
|
-
|
|
12219
|
-
const temp =
|
|
12220
|
-
|
|
12099
|
+
const [showMenuItem, setShowMenuItem] = React.useState([]);
|
|
12100
|
+
const [menuItemTitle, setMenuItemTitle] = React.useState([]);
|
|
12101
|
+
const toggleMenuItem = (index) => {
|
|
12102
|
+
showMenuItem[index] = !showMenuItem[index];
|
|
12103
|
+
const temp = showMenuItem.map((i, idx) => idx === index ? i : false);
|
|
12104
|
+
setShowMenuItem([...temp]);
|
|
12221
12105
|
};
|
|
12222
|
-
const
|
|
12223
|
-
|
|
12224
|
-
|
|
12106
|
+
const hideMenuItem = (index) => {
|
|
12107
|
+
showMenuItem[index] = false;
|
|
12108
|
+
setShowMenuItem([...showMenuItem]);
|
|
12225
12109
|
};
|
|
12226
12110
|
const updateTitle = (text, index) => {
|
|
12227
|
-
|
|
12228
|
-
|
|
12229
|
-
};
|
|
12230
|
-
const parent = () => {
|
|
12231
|
-
return parentRef;
|
|
12111
|
+
menuItemTitle[index] = text;
|
|
12112
|
+
setMenuItemTitle([...menuItemTitle]);
|
|
12232
12113
|
};
|
|
12233
12114
|
const cloneChildren = () => {
|
|
12234
12115
|
return React.Children.map(children, (child, index) => {
|
|
12235
12116
|
return React.cloneElement(child, {
|
|
12236
|
-
|
|
12237
|
-
|
|
12117
|
+
show: showMenuItem[index],
|
|
12118
|
+
index,
|
|
12238
12119
|
activeColor,
|
|
12239
12120
|
parent: {
|
|
12240
|
-
|
|
12121
|
+
closeOnOverlayClick,
|
|
12241
12122
|
lockScroll,
|
|
12242
|
-
|
|
12123
|
+
toggleMenuItem,
|
|
12243
12124
|
updateTitle,
|
|
12244
|
-
|
|
12245
|
-
|
|
12125
|
+
hideMenuItem,
|
|
12126
|
+
menuRef
|
|
12246
12127
|
}
|
|
12247
12128
|
});
|
|
12248
12129
|
});
|
|
12249
12130
|
};
|
|
12131
|
+
const menuTitle = () => {
|
|
12132
|
+
return React.Children.map(children, (child, index) => {
|
|
12133
|
+
if (React.isValidElement(child)) {
|
|
12134
|
+
const {
|
|
12135
|
+
title,
|
|
12136
|
+
options: options2,
|
|
12137
|
+
value,
|
|
12138
|
+
disabled,
|
|
12139
|
+
direction
|
|
12140
|
+
} = child.props;
|
|
12141
|
+
const selected = options2 == null ? void 0 : options2.filter((option) => option.value === value);
|
|
12142
|
+
const finallyTitle = () => {
|
|
12143
|
+
if (title)
|
|
12144
|
+
return title;
|
|
12145
|
+
if (menuItemTitle && menuItemTitle[index])
|
|
12146
|
+
return menuItemTitle[index];
|
|
12147
|
+
if (selected && selected.length && selected[0].text)
|
|
12148
|
+
return selected[0].text;
|
|
12149
|
+
return "";
|
|
12150
|
+
};
|
|
12151
|
+
return /* @__PURE__ */ jsx("div", {
|
|
12152
|
+
className: classNames("nut-menu__item ", className, {
|
|
12153
|
+
active: showMenuItem[index],
|
|
12154
|
+
disabled
|
|
12155
|
+
}),
|
|
12156
|
+
style: {
|
|
12157
|
+
color: showMenuItem[index] ? activeColor : ""
|
|
12158
|
+
},
|
|
12159
|
+
onClick: () => {
|
|
12160
|
+
!disabled && toggleMenuItem(index);
|
|
12161
|
+
},
|
|
12162
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
12163
|
+
className: classNames("nut-menu__title ", {
|
|
12164
|
+
active: showMenuItem[index],
|
|
12165
|
+
disabled
|
|
12166
|
+
}),
|
|
12167
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
12168
|
+
className: "nut-menu__title-text",
|
|
12169
|
+
children: finallyTitle()
|
|
12170
|
+
}), icon || (direction === "up" ? /* @__PURE__ */ jsx(x$g, {
|
|
12171
|
+
className: "nut-menu__title-icon"
|
|
12172
|
+
}) : /* @__PURE__ */ jsx(y$8, {
|
|
12173
|
+
className: "nut-menu__title-icon"
|
|
12174
|
+
}))]
|
|
12175
|
+
})
|
|
12176
|
+
}, index);
|
|
12177
|
+
}
|
|
12178
|
+
return null;
|
|
12179
|
+
});
|
|
12180
|
+
};
|
|
12250
12181
|
return /* @__PURE__ */ jsx("div", {
|
|
12251
|
-
className: `nut-menu ${className} ${isScrollFixed ? "scroll-fixed" : ""}`,
|
|
12252
12182
|
...rest,
|
|
12253
|
-
|
|
12183
|
+
className: classNames(`nut-menu`, className, {
|
|
12184
|
+
"scroll-fixed": isScrollFixed
|
|
12185
|
+
}),
|
|
12186
|
+
ref: menuRef,
|
|
12254
12187
|
children: /* @__PURE__ */ jsxs("div", {
|
|
12255
12188
|
className: "nut-menu-relative",
|
|
12256
12189
|
children: [/* @__PURE__ */ jsx("div", {
|
|
12257
|
-
className:
|
|
12258
|
-
|
|
12259
|
-
|
|
12260
|
-
|
|
12261
|
-
const {
|
|
12262
|
-
disabled,
|
|
12263
|
-
title,
|
|
12264
|
-
value,
|
|
12265
|
-
direction,
|
|
12266
|
-
options: options2,
|
|
12267
|
-
className: className2
|
|
12268
|
-
} = child.props;
|
|
12269
|
-
const currentTitle = options2 == null ? void 0 : options2.filter((option) => option.value === value);
|
|
12270
|
-
function finallyTitle() {
|
|
12271
|
-
if (title)
|
|
12272
|
-
return title;
|
|
12273
|
-
if (itemTitle && itemTitle[index])
|
|
12274
|
-
return itemTitle[index];
|
|
12275
|
-
if (currentTitle && currentTitle[0] && currentTitle[0].text)
|
|
12276
|
-
return currentTitle[0].text;
|
|
12277
|
-
return "";
|
|
12278
|
-
}
|
|
12279
|
-
return /* @__PURE__ */ jsx("div", {
|
|
12280
|
-
className: `nut-menu__item ${classNames({
|
|
12281
|
-
active: itemShow[index],
|
|
12282
|
-
disabled
|
|
12283
|
-
})} ${className2}`,
|
|
12284
|
-
style: {
|
|
12285
|
-
color: itemShow[index] ? activeColor : ""
|
|
12286
|
-
},
|
|
12287
|
-
onClick: () => {
|
|
12288
|
-
!disabled && toggleItemShow(index);
|
|
12289
|
-
},
|
|
12290
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
12291
|
-
className: `nut-menu__title ${classNames({
|
|
12292
|
-
active: itemShow[index],
|
|
12293
|
-
disabled
|
|
12294
|
-
})}`,
|
|
12295
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
12296
|
-
className: "nut-menu__title-text",
|
|
12297
|
-
children: finallyTitle()
|
|
12298
|
-
}), titleIcon || /* @__PURE__ */ jsx(Fragment, {
|
|
12299
|
-
children: direction === "up" ? /* @__PURE__ */ jsx(x$g, {
|
|
12300
|
-
className: "nut-menu__title-icon"
|
|
12301
|
-
}) : /* @__PURE__ */ jsx(y$8, {
|
|
12302
|
-
className: "nut-menu__title-icon"
|
|
12303
|
-
})
|
|
12304
|
-
})]
|
|
12305
|
-
})
|
|
12306
|
-
}, index);
|
|
12307
|
-
})
|
|
12190
|
+
className: classNames("nut-menu__bar", {
|
|
12191
|
+
opened: showMenuItem.includes(true)
|
|
12192
|
+
}),
|
|
12193
|
+
children: menuTitle()
|
|
12308
12194
|
}), cloneChildren()]
|
|
12309
12195
|
})
|
|
12310
12196
|
});
|
|
@@ -12313,52 +12199,47 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12313
12199
|
Menu.displayName = "NutMenu";
|
|
12314
12200
|
const defaultProps$1a = {
|
|
12315
12201
|
...ComponentDefaults,
|
|
12316
|
-
className: "",
|
|
12317
|
-
style: {},
|
|
12318
12202
|
columns: 1,
|
|
12319
12203
|
direction: "down",
|
|
12320
|
-
|
|
12204
|
+
icon: null,
|
|
12205
|
+
closeOnClickAway: false,
|
|
12321
12206
|
activeTitleClass: "",
|
|
12322
12207
|
inactiveTitleClass: "",
|
|
12323
12208
|
onChange: (value) => void 0
|
|
12324
12209
|
};
|
|
12325
12210
|
const MenuItem = React.forwardRef((props, ref) => {
|
|
12326
|
-
const mergedProps = {
|
|
12327
|
-
...defaultProps$1a,
|
|
12328
|
-
...props
|
|
12329
|
-
};
|
|
12330
12211
|
const {
|
|
12212
|
+
className,
|
|
12331
12213
|
style,
|
|
12332
12214
|
options: options2,
|
|
12333
12215
|
value,
|
|
12334
12216
|
columns,
|
|
12335
12217
|
title,
|
|
12336
|
-
|
|
12218
|
+
icon,
|
|
12337
12219
|
direction,
|
|
12338
12220
|
onChange,
|
|
12339
12221
|
activeTitleClass,
|
|
12340
12222
|
inactiveTitleClass,
|
|
12341
|
-
|
|
12223
|
+
closeOnClickAway,
|
|
12224
|
+
children,
|
|
12225
|
+
activeColor,
|
|
12226
|
+
show,
|
|
12227
|
+
parent,
|
|
12228
|
+
index
|
|
12342
12229
|
} = {
|
|
12343
12230
|
...defaultProps$1a,
|
|
12344
12231
|
...props
|
|
12345
12232
|
};
|
|
12346
|
-
const
|
|
12347
|
-
activeColor,
|
|
12348
|
-
showPopup,
|
|
12349
|
-
parent,
|
|
12350
|
-
orderKey
|
|
12351
|
-
} = mergedProps;
|
|
12352
|
-
const [_showPopup, setShowPopup] = React.useState(showPopup);
|
|
12233
|
+
const [_showPopup, setShowPopup] = React.useState(show);
|
|
12353
12234
|
const [_value, setValue] = React.useState(value);
|
|
12354
12235
|
React.useEffect(() => {
|
|
12355
|
-
setShowPopup(
|
|
12356
|
-
}, [
|
|
12236
|
+
setShowPopup(show);
|
|
12237
|
+
}, [show]);
|
|
12357
12238
|
React.useEffect(() => {
|
|
12358
12239
|
getParentOffset();
|
|
12359
12240
|
}, [_showPopup]);
|
|
12360
12241
|
React.useImperativeHandle(ref, () => ({
|
|
12361
|
-
toggle: parent.
|
|
12242
|
+
toggle: parent.toggleMenuItem
|
|
12362
12243
|
}));
|
|
12363
12244
|
const getIconCName = (optionVal, value2) => {
|
|
12364
12245
|
return classNames({
|
|
@@ -12368,11 +12249,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12368
12249
|
};
|
|
12369
12250
|
const setTitle = (text) => {
|
|
12370
12251
|
if (!title) {
|
|
12371
|
-
parent.updateTitle(text,
|
|
12252
|
+
parent.updateTitle(text, index);
|
|
12372
12253
|
}
|
|
12373
12254
|
};
|
|
12374
12255
|
const handleClick2 = (item) => {
|
|
12375
|
-
parent.
|
|
12256
|
+
parent.toggleMenuItem(index);
|
|
12376
12257
|
setTitle(item.text);
|
|
12377
12258
|
setValue(item.value);
|
|
12378
12259
|
onChange && onChange(item);
|
|
@@ -12383,7 +12264,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12383
12264
|
});
|
|
12384
12265
|
const getParentOffset = () => {
|
|
12385
12266
|
setTimeout(() => {
|
|
12386
|
-
const p = parent.
|
|
12267
|
+
const p = parent.menuRef.current;
|
|
12387
12268
|
const rect = p.getBoundingClientRect();
|
|
12388
12269
|
setPosition({
|
|
12389
12270
|
height: rect.height,
|
|
@@ -12410,37 +12291,40 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12410
12291
|
if (direction === "down") {
|
|
12411
12292
|
return {
|
|
12412
12293
|
height: `${position.top + position.height}px`,
|
|
12413
|
-
|
|
12414
|
-
...
|
|
12294
|
+
top: 0,
|
|
12295
|
+
...isShow()
|
|
12415
12296
|
};
|
|
12416
12297
|
}
|
|
12417
12298
|
return {
|
|
12418
12299
|
height: `${window.innerHeight - position.top}px`,
|
|
12300
|
+
bottom: `0px`,
|
|
12419
12301
|
top: "auto",
|
|
12420
|
-
...isShow()
|
|
12421
|
-
...style
|
|
12302
|
+
...isShow()
|
|
12422
12303
|
};
|
|
12423
12304
|
};
|
|
12424
12305
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
12425
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
12306
|
+
children: [closeOnClickAway ? /* @__PURE__ */ jsx("div", {
|
|
12426
12307
|
className: `placeholder-element ${classNames({
|
|
12427
12308
|
up: direction === "up"
|
|
12428
12309
|
})}`,
|
|
12429
12310
|
style: placeholderStyle(),
|
|
12430
|
-
onClick: () => parent.
|
|
12431
|
-
}), /* @__PURE__ */ jsx(Overlay, {
|
|
12311
|
+
onClick: () => parent.toggleMenuItem(index)
|
|
12312
|
+
}) : null, /* @__PURE__ */ jsx(Overlay, {
|
|
12432
12313
|
className: "nut-menu__overlay",
|
|
12433
12314
|
style: getPosition(),
|
|
12434
12315
|
lockScroll: parent.lockScroll,
|
|
12435
12316
|
visible: _showPopup,
|
|
12436
|
-
closeOnOverlayClick: parent.
|
|
12317
|
+
closeOnOverlayClick: parent.closeOnOverlayClick,
|
|
12437
12318
|
onClick: () => {
|
|
12438
|
-
parent.
|
|
12319
|
+
parent.closeOnOverlayClick && parent.toggleMenuItem(index);
|
|
12439
12320
|
}
|
|
12440
12321
|
}), /* @__PURE__ */ jsx("div", {
|
|
12441
|
-
className:
|
|
12322
|
+
className: classNames(className, {
|
|
12323
|
+
"nut-menu-item__wrap": direction === "down",
|
|
12324
|
+
"nut-menu-item__wrap-up": direction !== "down"
|
|
12325
|
+
}),
|
|
12442
12326
|
style: {
|
|
12443
|
-
|
|
12327
|
+
...style,
|
|
12444
12328
|
...isShow()
|
|
12445
12329
|
},
|
|
12446
12330
|
children: /* @__PURE__ */ jsx(CSSTransition$1, {
|
|
@@ -12449,7 +12333,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12449
12333
|
classNames: direction === "down" ? "menu-item" : "menu-item-up",
|
|
12450
12334
|
children: /* @__PURE__ */ jsxs("div", {
|
|
12451
12335
|
className: "nut-menu-item__content",
|
|
12452
|
-
children: [options2 == null ? void 0 : options2.map((item,
|
|
12336
|
+
children: [options2 == null ? void 0 : options2.map((item, index2) => {
|
|
12453
12337
|
return /* @__PURE__ */ jsxs("div", {
|
|
12454
12338
|
className: `nut-menu-item__option ${classNames({
|
|
12455
12339
|
active: item.value === _value
|
|
@@ -12461,7 +12345,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12461
12345
|
handleClick2(item);
|
|
12462
12346
|
},
|
|
12463
12347
|
children: [item.value === _value ? /* @__PURE__ */ jsx("i", {
|
|
12464
|
-
children:
|
|
12348
|
+
children: icon || /* @__PURE__ */ jsx(x$e, {
|
|
12465
12349
|
color: activeColor,
|
|
12466
12350
|
className: getIconCName(item.value, value)
|
|
12467
12351
|
})
|
|
@@ -12483,48 +12367,32 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12483
12367
|
MenuItem.displayName = "NutMenuItem";
|
|
12484
12368
|
const defaultProps$19 = {
|
|
12485
12369
|
...ComponentDefaults,
|
|
12486
|
-
|
|
12487
|
-
|
|
12488
|
-
|
|
12489
|
-
className: "",
|
|
12490
|
-
leftText: "",
|
|
12370
|
+
left: "",
|
|
12371
|
+
right: "",
|
|
12372
|
+
back: "",
|
|
12491
12373
|
fixed: false,
|
|
12492
12374
|
safeAreaInsetTop: false,
|
|
12493
|
-
border: false,
|
|
12494
12375
|
placeholder: false,
|
|
12495
|
-
zIndex: 10
|
|
12496
|
-
style: {}
|
|
12376
|
+
zIndex: 10
|
|
12497
12377
|
};
|
|
12498
12378
|
const NavBar = (props) => {
|
|
12499
12379
|
const {
|
|
12500
|
-
|
|
12501
|
-
|
|
12502
|
-
leftShow,
|
|
12380
|
+
right,
|
|
12381
|
+
left,
|
|
12503
12382
|
className,
|
|
12504
12383
|
style,
|
|
12505
|
-
|
|
12384
|
+
back,
|
|
12506
12385
|
fixed,
|
|
12507
12386
|
safeAreaInsetTop,
|
|
12508
|
-
border,
|
|
12509
12387
|
placeholder,
|
|
12510
12388
|
zIndex,
|
|
12511
|
-
|
|
12512
|
-
onClickIcon,
|
|
12513
|
-
onClickBack,
|
|
12514
|
-
onClickRight
|
|
12389
|
+
onClickBack
|
|
12515
12390
|
} = {
|
|
12516
12391
|
...defaultProps$19,
|
|
12517
12392
|
...props
|
|
12518
12393
|
};
|
|
12519
|
-
const
|
|
12394
|
+
const classPrefix2 = "nut-navbar";
|
|
12520
12395
|
const children = Array.isArray(props.children) ? props.children : [props.children];
|
|
12521
|
-
const slot = children.reduce((slot2, item) => {
|
|
12522
|
-
const data = slot2;
|
|
12523
|
-
if (item && item.props) {
|
|
12524
|
-
data[item.props.slot] = item.props.children;
|
|
12525
|
-
}
|
|
12526
|
-
return data;
|
|
12527
|
-
}, {});
|
|
12528
12396
|
const styles = () => {
|
|
12529
12397
|
return {
|
|
12530
12398
|
...style,
|
|
@@ -12533,38 +12401,24 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12533
12401
|
};
|
|
12534
12402
|
const renderLeft = () => {
|
|
12535
12403
|
return /* @__PURE__ */ jsxs("div", {
|
|
12536
|
-
className: `${
|
|
12537
|
-
|
|
12538
|
-
|
|
12539
|
-
|
|
12540
|
-
|
|
12541
|
-
}),
|
|
12542
|
-
className: `${b2("text")}`,
|
|
12543
|
-
children: leftText
|
|
12544
|
-
}), slot.left]
|
|
12404
|
+
className: `${classPrefix2}__left`,
|
|
12405
|
+
children: [back && /* @__PURE__ */ jsx("div", {
|
|
12406
|
+
className: `${classPrefix2}__left__back`,
|
|
12407
|
+
onClick: (e) => onClickBack(e),
|
|
12408
|
+
children: back
|
|
12409
|
+
}), left]
|
|
12545
12410
|
});
|
|
12546
12411
|
};
|
|
12547
12412
|
const renderContent = () => {
|
|
12548
|
-
return /* @__PURE__ */
|
|
12549
|
-
className: `${
|
|
12550
|
-
children
|
|
12551
|
-
className: "title",
|
|
12552
|
-
onClick: (e) => onClickTitle(e),
|
|
12553
|
-
children: title
|
|
12554
|
-
}), slot.titleIcon && /* @__PURE__ */ jsx("div", {
|
|
12555
|
-
onClick: (e) => onClickIcon(e),
|
|
12556
|
-
children: slot.titleIcon
|
|
12557
|
-
}), slot.content]
|
|
12413
|
+
return /* @__PURE__ */ jsx("div", {
|
|
12414
|
+
className: `${classPrefix2}__title`,
|
|
12415
|
+
children
|
|
12558
12416
|
});
|
|
12559
12417
|
};
|
|
12560
12418
|
const renderRight = () => {
|
|
12561
|
-
return /* @__PURE__ */
|
|
12562
|
-
className: `${
|
|
12563
|
-
|
|
12564
|
-
children: [description && /* @__PURE__ */ jsx("div", {
|
|
12565
|
-
className: `${b2("text")}`,
|
|
12566
|
-
children: description
|
|
12567
|
-
}), slot.right]
|
|
12419
|
+
return /* @__PURE__ */ jsx("div", {
|
|
12420
|
+
className: `${classPrefix2}__right`,
|
|
12421
|
+
children: right
|
|
12568
12422
|
});
|
|
12569
12423
|
};
|
|
12570
12424
|
const renderWrapper = () => {
|
|
@@ -12575,14 +12429,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12575
12429
|
});
|
|
12576
12430
|
};
|
|
12577
12431
|
const classes = classNames({
|
|
12578
|
-
[
|
|
12579
|
-
[
|
|
12580
|
-
[`nut-navbar--safe-area-inset-top`]: safeAreaInsetTop
|
|
12432
|
+
[`${classPrefix2}--fixed`]: fixed,
|
|
12433
|
+
[`${classPrefix2}--safe-area-inset-top`]: safeAreaInsetTop
|
|
12581
12434
|
});
|
|
12582
|
-
const cls = classNames(
|
|
12435
|
+
const cls = classNames(classPrefix2, classes, className);
|
|
12583
12436
|
return /* @__PURE__ */ jsx(Fragment, {
|
|
12584
12437
|
children: fixed && placeholder ? /* @__PURE__ */ jsx("div", {
|
|
12585
|
-
className: `${
|
|
12438
|
+
className: `${classPrefix2}--placeholder`,
|
|
12586
12439
|
children: renderWrapper()
|
|
12587
12440
|
}) : renderWrapper()
|
|
12588
12441
|
});
|
|
@@ -12895,6 +12748,126 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12895
12748
|
})]
|
|
12896
12749
|
});
|
|
12897
12750
|
};
|
|
12751
|
+
var classnameExports = {};
|
|
12752
|
+
var classname = {
|
|
12753
|
+
get exports() {
|
|
12754
|
+
return classnameExports;
|
|
12755
|
+
},
|
|
12756
|
+
set exports(v) {
|
|
12757
|
+
classnameExports = v;
|
|
12758
|
+
}
|
|
12759
|
+
};
|
|
12760
|
+
var classname_production_min = {};
|
|
12761
|
+
var hasRequiredClassname_production_min;
|
|
12762
|
+
function requireClassname_production_min() {
|
|
12763
|
+
if (hasRequiredClassname_production_min)
|
|
12764
|
+
return classname_production_min;
|
|
12765
|
+
hasRequiredClassname_production_min = 1;
|
|
12766
|
+
function r(r2) {
|
|
12767
|
+
function t2(t3, i, a2, o) {
|
|
12768
|
+
var f = i ? e + t3 + r2.e + i : e + t3, v = f;
|
|
12769
|
+
if (a2) {
|
|
12770
|
+
var s = " " + v + r2.m;
|
|
12771
|
+
for (var u in a2)
|
|
12772
|
+
if (a2.hasOwnProperty(u)) {
|
|
12773
|
+
var p = a2[u];
|
|
12774
|
+
true === p ? v += s + u : p && (v += s + u + n + p);
|
|
12775
|
+
}
|
|
12776
|
+
}
|
|
12777
|
+
if (void 0 !== o)
|
|
12778
|
+
for (var y2 = 0, c = (o = Array.isArray(o) ? o : [o]).length; y2 < c; y2++) {
|
|
12779
|
+
var l2 = o[y2];
|
|
12780
|
+
if (l2 && "string" == typeof l2.valueOf())
|
|
12781
|
+
for (var g = l2.valueOf().split(" "), d = 0; d < g.length; d++) {
|
|
12782
|
+
var h = g[d];
|
|
12783
|
+
h !== f && (v += " " + h);
|
|
12784
|
+
}
|
|
12785
|
+
}
|
|
12786
|
+
return v;
|
|
12787
|
+
}
|
|
12788
|
+
var e = r2.n || "", n = r2.v || r2.m;
|
|
12789
|
+
return function(r3, e2) {
|
|
12790
|
+
return function(n2, i, a2) {
|
|
12791
|
+
return "string" == typeof n2 ? "string" == typeof i || Array.isArray(i) ? t2(r3, n2, void 0, i) : t2(r3, n2, i, a2) : t2(r3, e2, n2, i);
|
|
12792
|
+
};
|
|
12793
|
+
};
|
|
12794
|
+
}
|
|
12795
|
+
Object.defineProperty(classname_production_min, "__esModule", { value: true });
|
|
12796
|
+
var t = r({ e: "-", m: "_" });
|
|
12797
|
+
classname_production_min.cn = t, classname_production_min.withNaming = r;
|
|
12798
|
+
return classname_production_min;
|
|
12799
|
+
}
|
|
12800
|
+
var classname_development = {};
|
|
12801
|
+
var hasRequiredClassname_development;
|
|
12802
|
+
function requireClassname_development() {
|
|
12803
|
+
if (hasRequiredClassname_development)
|
|
12804
|
+
return classname_development;
|
|
12805
|
+
hasRequiredClassname_development = 1;
|
|
12806
|
+
Object.defineProperty(classname_development, "__esModule", { value: true });
|
|
12807
|
+
function withNaming(preset) {
|
|
12808
|
+
var nameSpace = preset.n || "";
|
|
12809
|
+
var modValueDelimiter = preset.v || preset.m;
|
|
12810
|
+
function stringify(b, e, m, mix) {
|
|
12811
|
+
var entityName = e ? nameSpace + b + preset.e + e : nameSpace + b;
|
|
12812
|
+
var className = entityName;
|
|
12813
|
+
if (m) {
|
|
12814
|
+
var modPrefix = " " + className + preset.m;
|
|
12815
|
+
for (var k2 in m) {
|
|
12816
|
+
if (m.hasOwnProperty(k2)) {
|
|
12817
|
+
var modVal = m[k2];
|
|
12818
|
+
if (modVal === true) {
|
|
12819
|
+
className += modPrefix + k2;
|
|
12820
|
+
} else if (modVal) {
|
|
12821
|
+
className += modPrefix + k2 + modValueDelimiter + modVal;
|
|
12822
|
+
}
|
|
12823
|
+
}
|
|
12824
|
+
}
|
|
12825
|
+
}
|
|
12826
|
+
if (mix !== void 0) {
|
|
12827
|
+
mix = Array.isArray(mix) ? mix : [mix];
|
|
12828
|
+
for (var i = 0, len = mix.length; i < len; i++) {
|
|
12829
|
+
var value = mix[i];
|
|
12830
|
+
if (!value || typeof value.valueOf() !== "string")
|
|
12831
|
+
continue;
|
|
12832
|
+
var mixes = value.valueOf().split(" ");
|
|
12833
|
+
for (var j = 0; j < mixes.length; j++) {
|
|
12834
|
+
var val = mixes[j];
|
|
12835
|
+
if (val !== entityName) {
|
|
12836
|
+
className += " " + val;
|
|
12837
|
+
}
|
|
12838
|
+
}
|
|
12839
|
+
}
|
|
12840
|
+
}
|
|
12841
|
+
return className;
|
|
12842
|
+
}
|
|
12843
|
+
return function cnGenerator(b, e) {
|
|
12844
|
+
return function(elemOrMods, elemModsOrBlockMix, elemMix) {
|
|
12845
|
+
if (typeof elemOrMods === "string") {
|
|
12846
|
+
if (typeof elemModsOrBlockMix === "string" || Array.isArray(elemModsOrBlockMix)) {
|
|
12847
|
+
return stringify(b, elemOrMods, void 0, elemModsOrBlockMix);
|
|
12848
|
+
}
|
|
12849
|
+
return stringify(b, elemOrMods, elemModsOrBlockMix, elemMix);
|
|
12850
|
+
}
|
|
12851
|
+
return stringify(b, e, elemOrMods, elemModsOrBlockMix);
|
|
12852
|
+
};
|
|
12853
|
+
};
|
|
12854
|
+
}
|
|
12855
|
+
var cn2 = withNaming({
|
|
12856
|
+
e: "-",
|
|
12857
|
+
m: "_"
|
|
12858
|
+
});
|
|
12859
|
+
classname_development.cn = cn2;
|
|
12860
|
+
classname_development.withNaming = withNaming;
|
|
12861
|
+
return classname_development;
|
|
12862
|
+
}
|
|
12863
|
+
(function(module2) {
|
|
12864
|
+
if (process.env.NODE_ENV === "production") {
|
|
12865
|
+
module2.exports = requireClassname_production_min();
|
|
12866
|
+
} else {
|
|
12867
|
+
module2.exports = requireClassname_development();
|
|
12868
|
+
}
|
|
12869
|
+
})(classname);
|
|
12870
|
+
const cn = classnameExports.withNaming({ n: "nut-", e: "__", m: "--", v: "-" });
|
|
12898
12871
|
const defaultProps$15 = {
|
|
12899
12872
|
visible: 0,
|
|
12900
12873
|
bottom: false,
|
|
@@ -12924,7 +12897,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12924
12897
|
...defaultProps$15,
|
|
12925
12898
|
...props
|
|
12926
12899
|
};
|
|
12927
|
-
const
|
|
12900
|
+
const b = cn("tabbar");
|
|
12928
12901
|
const [selectIndex, setSelectIndex] = React.useState(activeVisible || visible);
|
|
12929
12902
|
const handleClick2 = (idx) => {
|
|
12930
12903
|
if (!("activeVisible" in props)) {
|
|
@@ -12937,7 +12910,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12937
12910
|
}
|
|
12938
12911
|
}, [activeVisible]);
|
|
12939
12912
|
return /* @__PURE__ */ jsx("div", {
|
|
12940
|
-
className: [`${
|
|
12913
|
+
className: [`${b()}`, bottom ? `${b("bottom")}` : "", safeAreaInsetBottom ? `${b("bottom")} ${b("safebottom")}` : "", className].join(" "),
|
|
12941
12914
|
style,
|
|
12942
12915
|
children: React.Children.map(children, (child, idx) => {
|
|
12943
12916
|
if (!React.isValidElement(child)) {
|
|
@@ -12994,7 +12967,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12994
12967
|
...defaultProps$14,
|
|
12995
12968
|
...props
|
|
12996
12969
|
};
|
|
12997
|
-
const
|
|
12970
|
+
const b = cn("tabbar-item");
|
|
12998
12971
|
const bIcon = cn("tabbar-item__icon-box");
|
|
12999
12972
|
React.useEffect(() => {
|
|
13000
12973
|
if (active && href) {
|
|
@@ -13002,7 +12975,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13002
12975
|
}
|
|
13003
12976
|
}, [active, href]);
|
|
13004
12977
|
return /* @__PURE__ */ jsxs("div", {
|
|
13005
|
-
className: `${
|
|
12978
|
+
className: `${b({
|
|
13006
12979
|
active
|
|
13007
12980
|
})} ${className}`,
|
|
13008
12981
|
style: {
|
|
@@ -13053,10 +13026,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13053
13026
|
...defaultProps$13,
|
|
13054
13027
|
...props
|
|
13055
13028
|
};
|
|
13056
|
-
const
|
|
13029
|
+
const b = cn("tabpane");
|
|
13057
13030
|
const classes = classNames({
|
|
13058
13031
|
active: !disabled && paneKey === activeKey
|
|
13059
|
-
},
|
|
13032
|
+
}, b(""), autoHeightClassName, className);
|
|
13060
13033
|
return /* @__PURE__ */ jsx("div", {
|
|
13061
13034
|
className: classes,
|
|
13062
13035
|
children: !disabled && children
|
|
@@ -13141,13 +13114,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13141
13114
|
});
|
|
13142
13115
|
setCurrentItem(titles.current[currentIndex]);
|
|
13143
13116
|
}, [children]);
|
|
13144
|
-
const
|
|
13145
|
-
const classes = classNames(direction,
|
|
13117
|
+
const b = cn("tabs");
|
|
13118
|
+
const classes = classNames(direction, b(""), className);
|
|
13146
13119
|
const classesTitle = classNames({
|
|
13147
13120
|
[type2]: type2,
|
|
13148
13121
|
scrollable: titleScroll,
|
|
13149
13122
|
[size]: size
|
|
13150
|
-
}, `${
|
|
13123
|
+
}, `${b("")}__titles`);
|
|
13151
13124
|
const titleStyle = {
|
|
13152
13125
|
marginLeft: pxCheck(titleGutter),
|
|
13153
13126
|
marginRight: pxCheck(titleGutter)
|
|
@@ -13186,12 +13159,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13186
13159
|
active: !item.disabled && String(item.paneKey) === String(value),
|
|
13187
13160
|
disabled: item.disabled,
|
|
13188
13161
|
"nut-tabs__titles-item-left-align": leftAlign
|
|
13189
|
-
}, `${
|
|
13162
|
+
}, `${b("")}__titles-item`),
|
|
13190
13163
|
children: [type2 === "line" && /* @__PURE__ */ jsx("div", {
|
|
13191
|
-
className: `${
|
|
13164
|
+
className: `${b("")}__titles-item__line`,
|
|
13192
13165
|
style: tabsActiveStyle
|
|
13193
13166
|
}), type2 === "smile" && /* @__PURE__ */ jsx("div", {
|
|
13194
|
-
className: `${
|
|
13167
|
+
className: `${b("")}__titles-item__smile`,
|
|
13195
13168
|
style: tabsActiveStyle,
|
|
13196
13169
|
children: /* @__PURE__ */ jsx(x$7, {
|
|
13197
13170
|
color
|
|
@@ -13199,15 +13172,15 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13199
13172
|
}), /* @__PURE__ */ jsx("div", {
|
|
13200
13173
|
className: classNames({
|
|
13201
13174
|
ellipsis: ellipsis && !titleScroll && direction === "horizontal"
|
|
13202
|
-
}, `${
|
|
13175
|
+
}, `${b("")}__titles-item__text`),
|
|
13203
13176
|
children: item.title
|
|
13204
13177
|
})]
|
|
13205
13178
|
}, item.paneKey);
|
|
13206
13179
|
})
|
|
13207
13180
|
}), /* @__PURE__ */ jsx("div", {
|
|
13208
|
-
className: `${
|
|
13181
|
+
className: `${b("")}__content__wrap`,
|
|
13209
13182
|
children: /* @__PURE__ */ jsx("div", {
|
|
13210
|
-
className: `${
|
|
13183
|
+
className: `${b("")}__content`,
|
|
13211
13184
|
style: contentStyle,
|
|
13212
13185
|
children: React.Children.map(children, (child, idx) => {
|
|
13213
13186
|
var _a2;
|
|
@@ -13457,14 +13430,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13457
13430
|
const monthsPanel = React.useRef(null);
|
|
13458
13431
|
const viewArea = React.useRef(null);
|
|
13459
13432
|
let viewHeight = 0;
|
|
13460
|
-
const
|
|
13433
|
+
const b = cn("calendar");
|
|
13461
13434
|
const classes = classNames({
|
|
13462
|
-
[`${
|
|
13463
|
-
[`${
|
|
13464
|
-
},
|
|
13435
|
+
[`${b("")}-tile`]: !poppable,
|
|
13436
|
+
[`${b("")}-nofooter`]: !!isAutoBackFill
|
|
13437
|
+
}, b(""));
|
|
13465
13438
|
const headerClasses = classNames({
|
|
13466
|
-
[`${
|
|
13467
|
-
[`${
|
|
13439
|
+
[`${b("")}-header`]: true,
|
|
13440
|
+
[`${b("")}-header-tile`]: !poppable
|
|
13468
13441
|
});
|
|
13469
13442
|
const monthitemclasses = classNames({
|
|
13470
13443
|
"calendar-month-item": true,
|
|
@@ -14176,13 +14149,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14176
14149
|
...defaultProps$$,
|
|
14177
14150
|
...props
|
|
14178
14151
|
};
|
|
14179
|
-
const
|
|
14152
|
+
const b = cn("cascader-item");
|
|
14180
14153
|
const classes = classNames({
|
|
14181
14154
|
active: checked,
|
|
14182
14155
|
disabled: data.disabled
|
|
14183
|
-
},
|
|
14156
|
+
}, b(""));
|
|
14184
14157
|
const classesTitle = classNames({
|
|
14185
|
-
[`${
|
|
14158
|
+
[`${b("")}__title`]: true
|
|
14186
14159
|
});
|
|
14187
14160
|
const renderIcon = () => {
|
|
14188
14161
|
if (checked) {
|
|
@@ -14190,7 +14163,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14190
14163
|
return checkedIcon;
|
|
14191
14164
|
}
|
|
14192
14165
|
return /* @__PURE__ */ jsx(x$c, {
|
|
14193
|
-
className: `${checked ?
|
|
14166
|
+
className: `${checked ? b("icon-check") : ""}`
|
|
14194
14167
|
});
|
|
14195
14168
|
}
|
|
14196
14169
|
return null;
|
|
@@ -14280,7 +14253,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14280
14253
|
if (sortKey) {
|
|
14281
14254
|
Object.keys(map).forEach((i) => {
|
|
14282
14255
|
if (map[i].length > 1) {
|
|
14283
|
-
map[i].sort((a2,
|
|
14256
|
+
map[i].sort((a2, b) => a2[sortKey] - b[sortKey]);
|
|
14284
14257
|
}
|
|
14285
14258
|
});
|
|
14286
14259
|
}
|
|
@@ -14432,10 +14405,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14432
14405
|
},
|
|
14433
14406
|
lazyLoadMap: /* @__PURE__ */ new Map()
|
|
14434
14407
|
});
|
|
14435
|
-
const
|
|
14436
|
-
const classes = classNames(
|
|
14408
|
+
const b = cn("cascader");
|
|
14409
|
+
const classes = classNames(b(""));
|
|
14437
14410
|
const classesPane = classNames({
|
|
14438
|
-
[`${
|
|
14411
|
+
[`${b("")}-pane`]: true
|
|
14439
14412
|
});
|
|
14440
14413
|
React.useEffect(() => {
|
|
14441
14414
|
initData();
|
|
@@ -14603,7 +14576,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14603
14576
|
className: `${classes} ${className}`,
|
|
14604
14577
|
style,
|
|
14605
14578
|
children: [poppable && /* @__PURE__ */ jsx("div", {
|
|
14606
|
-
className:
|
|
14579
|
+
className: b("title"),
|
|
14607
14580
|
children: title
|
|
14608
14581
|
}), /* @__PURE__ */ jsx(Tabs, {
|
|
14609
14582
|
value: tabvalue,
|
|
@@ -14686,7 +14659,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14686
14659
|
...defaultProps$Z,
|
|
14687
14660
|
...props
|
|
14688
14661
|
};
|
|
14689
|
-
const
|
|
14662
|
+
const b = cn("checkboxgroup");
|
|
14690
14663
|
const {
|
|
14691
14664
|
className,
|
|
14692
14665
|
disabled,
|
|
@@ -14761,7 +14734,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14761
14734
|
}
|
|
14762
14735
|
},
|
|
14763
14736
|
children: /* @__PURE__ */ jsx("div", {
|
|
14764
|
-
className: `${
|
|
14737
|
+
className: `${b()} nut-checkboxgroup--${props.direction} ${className || ""}`,
|
|
14765
14738
|
...rest,
|
|
14766
14739
|
children: (options2 == null ? void 0 : options2.length) ? renderOptions() : children
|
|
14767
14740
|
})
|
|
@@ -14789,7 +14762,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14789
14762
|
...defaultProps$Y,
|
|
14790
14763
|
...props
|
|
14791
14764
|
};
|
|
14792
|
-
const
|
|
14765
|
+
const b = cn("checkbox");
|
|
14793
14766
|
const {
|
|
14794
14767
|
icon,
|
|
14795
14768
|
iconSize,
|
|
@@ -14874,7 +14847,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14874
14847
|
};
|
|
14875
14848
|
const renderLabel = () => {
|
|
14876
14849
|
return /* @__PURE__ */ jsx("span", {
|
|
14877
|
-
className: `${
|
|
14850
|
+
className: `${b("label", {
|
|
14878
14851
|
disabled: innerDisabled
|
|
14879
14852
|
})} `,
|
|
14880
14853
|
children: children || label
|
|
@@ -14892,7 +14865,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14892
14865
|
setChecked(latestChecked);
|
|
14893
14866
|
};
|
|
14894
14867
|
return /* @__PURE__ */ jsxs("div", {
|
|
14895
|
-
className: `${
|
|
14868
|
+
className: `${b({
|
|
14896
14869
|
reverse: textPosition === "left"
|
|
14897
14870
|
})} ${className || ""}`,
|
|
14898
14871
|
...rest,
|
|
@@ -15210,7 +15183,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
15210
15183
|
const pickerRef = React.useRef(null);
|
|
15211
15184
|
const [refs, setRefs] = useRefs();
|
|
15212
15185
|
const [columnsList, setColumnsList] = React.useState([]);
|
|
15213
|
-
const
|
|
15186
|
+
const b = cn("picker");
|
|
15214
15187
|
const isConfirmEvent = React.useRef(false);
|
|
15215
15188
|
React.useEffect(() => {
|
|
15216
15189
|
if (defaultValueData && defaultValueData.length !== 0 && defaultValueData.toString() !== chooseValueData.toString()) {
|
|
@@ -15352,16 +15325,16 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
15352
15325
|
};
|
|
15353
15326
|
const renderToolbar = () => {
|
|
15354
15327
|
return /* @__PURE__ */ jsxs("div", {
|
|
15355
|
-
className:
|
|
15328
|
+
className: b("control"),
|
|
15356
15329
|
children: [/* @__PURE__ */ jsx("span", {
|
|
15357
|
-
className:
|
|
15330
|
+
className: b("cancel-btn"),
|
|
15358
15331
|
onClick: () => closeActionSheet(),
|
|
15359
15332
|
children: locale.cancel
|
|
15360
15333
|
}), /* @__PURE__ */ jsx("div", {
|
|
15361
|
-
className:
|
|
15334
|
+
className: b("title"),
|
|
15362
15335
|
children: title || ""
|
|
15363
15336
|
}), /* @__PURE__ */ jsx("span", {
|
|
15364
|
-
className:
|
|
15337
|
+
className: b("confirm-btn"),
|
|
15365
15338
|
onClick: confirm2,
|
|
15366
15339
|
children: locale.confirm
|
|
15367
15340
|
})]
|
|
@@ -15374,11 +15347,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
15374
15347
|
closeActionSheet();
|
|
15375
15348
|
},
|
|
15376
15349
|
children: /* @__PURE__ */ jsxs("div", {
|
|
15377
|
-
className: `${
|
|
15350
|
+
className: `${b()} ${className || ""}`,
|
|
15378
15351
|
style,
|
|
15379
15352
|
...rest,
|
|
15380
15353
|
children: [renderToolbar(), /* @__PURE__ */ jsx("div", {
|
|
15381
|
-
className:
|
|
15354
|
+
className: b("panel"),
|
|
15382
15355
|
ref: pickerRef,
|
|
15383
15356
|
children: columnsList == null ? void 0 : columnsList.map((item, index) => {
|
|
15384
15357
|
return /* @__PURE__ */ jsx(PickerSlot$1, {
|
|
@@ -16029,7 +16002,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16029
16002
|
return urlReg;
|
|
16030
16003
|
}
|
|
16031
16004
|
var word = "[a-fA-F\\d:]";
|
|
16032
|
-
var
|
|
16005
|
+
var b = function b2(options2) {
|
|
16033
16006
|
return options2 && options2.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
|
|
16034
16007
|
};
|
|
16035
16008
|
var v4 = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}";
|
|
@@ -16039,13 +16012,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16039
16012
|
var v4exact = new RegExp("^" + v4 + "$");
|
|
16040
16013
|
var v6exact = new RegExp("^" + v6 + "$");
|
|
16041
16014
|
var ip = function ip2(options2) {
|
|
16042
|
-
return options2 && options2.exact ? v46Exact : new RegExp("(?:" +
|
|
16015
|
+
return options2 && options2.exact ? v46Exact : new RegExp("(?:" + b(options2) + v4 + b(options2) + ")|(?:" + b(options2) + v6 + b(options2) + ")", "g");
|
|
16043
16016
|
};
|
|
16044
16017
|
ip.v4 = function(options2) {
|
|
16045
|
-
return options2 && options2.exact ? v4exact : new RegExp("" +
|
|
16018
|
+
return options2 && options2.exact ? v4exact : new RegExp("" + b(options2) + v4 + b(options2), "g");
|
|
16046
16019
|
};
|
|
16047
16020
|
ip.v6 = function(options2) {
|
|
16048
|
-
return options2 && options2.exact ? v6exact : new RegExp("" +
|
|
16021
|
+
return options2 && options2.exact ? v6exact : new RegExp("" + b(options2) + v6 + b(options2), "g");
|
|
16049
16022
|
};
|
|
16050
16023
|
var protocol = "(?:(?:[a-z]+:)?//)";
|
|
16051
16024
|
var auth = "(?:\\S+(?::\\S*)?@)?";
|
|
@@ -17457,7 +17430,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17457
17430
|
digits: 0,
|
|
17458
17431
|
async: false
|
|
17459
17432
|
};
|
|
17460
|
-
const classPrefix = `nut-inputnumber`;
|
|
17433
|
+
const classPrefix$1 = `nut-inputnumber`;
|
|
17461
17434
|
const InputNumber = (props) => {
|
|
17462
17435
|
const {
|
|
17463
17436
|
children,
|
|
@@ -17499,8 +17472,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17499
17472
|
}
|
|
17500
17473
|
}, []);
|
|
17501
17474
|
const classes = classNames({
|
|
17502
|
-
[`${classPrefix}`]: true,
|
|
17503
|
-
[`${classPrefix}--disabled`]: disabled
|
|
17475
|
+
[`${classPrefix$1}`]: true,
|
|
17476
|
+
[`${classPrefix$1}--disabled`]: disabled
|
|
17504
17477
|
}, className);
|
|
17505
17478
|
const styles = {
|
|
17506
17479
|
...style
|
|
@@ -17717,7 +17690,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17717
17690
|
onDelete,
|
|
17718
17691
|
onClose
|
|
17719
17692
|
} = props;
|
|
17720
|
-
const
|
|
17693
|
+
const b = cn("numberkeyboard");
|
|
17721
17694
|
const [show, setShow] = React.useState(visible);
|
|
17722
17695
|
const [clickKeyIndex, setClickKeyIndex] = React.useState(void 0);
|
|
17723
17696
|
const [keysList, setKeysList] = React.useState([]);
|
|
@@ -17845,24 +17818,24 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17845
17818
|
backgroundColor: "rgba(0, 0, 0, 0)"
|
|
17846
17819
|
},
|
|
17847
17820
|
children: /* @__PURE__ */ jsxs("div", {
|
|
17848
|
-
className: `${
|
|
17821
|
+
className: `${b()} ${className}`,
|
|
17849
17822
|
style: {
|
|
17850
17823
|
...style
|
|
17851
17824
|
},
|
|
17852
17825
|
children: [title ? /* @__PURE__ */ jsxs("div", {
|
|
17853
|
-
className:
|
|
17826
|
+
className: b("header"),
|
|
17854
17827
|
children: [/* @__PURE__ */ jsx("h3", {
|
|
17855
|
-
className:
|
|
17828
|
+
className: b("header__tit"),
|
|
17856
17829
|
children: title
|
|
17857
17830
|
}), type2 === "default" ? /* @__PURE__ */ jsx("span", {
|
|
17858
|
-
className:
|
|
17831
|
+
className: b("header__close"),
|
|
17859
17832
|
onClick: onClose,
|
|
17860
17833
|
children: locale.done
|
|
17861
17834
|
}) : null]
|
|
17862
17835
|
}) : null, /* @__PURE__ */ jsxs("div", {
|
|
17863
|
-
className:
|
|
17836
|
+
className: b("body"),
|
|
17864
17837
|
children: [/* @__PURE__ */ jsx("div", {
|
|
17865
|
-
className:
|
|
17838
|
+
className: b("body__keys"),
|
|
17866
17839
|
children: keysList == null ? void 0 : keysList.map((item, index) => {
|
|
17867
17840
|
return /* @__PURE__ */ jsx("div", {
|
|
17868
17841
|
className: classNames({
|
|
@@ -17892,7 +17865,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17892
17865
|
}, index);
|
|
17893
17866
|
})
|
|
17894
17867
|
}), type2 === "rightColumn" ? /* @__PURE__ */ jsxs("div", {
|
|
17895
|
-
className:
|
|
17868
|
+
className: b("sidebar"),
|
|
17896
17869
|
children: [/* @__PURE__ */ jsx("div", {
|
|
17897
17870
|
className: "key-board-wrapper",
|
|
17898
17871
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -18521,7 +18494,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18521
18494
|
React.useEffect(() => {
|
|
18522
18495
|
if (marks) {
|
|
18523
18496
|
const marksKeys = Object.keys(marks);
|
|
18524
|
-
const list = marksKeys.map(parseFloat).sort((a2,
|
|
18497
|
+
const list = marksKeys.map(parseFloat).sort((a2, b) => a2 - b).filter((point) => point >= min && point <= max);
|
|
18525
18498
|
SetMarksList(list);
|
|
18526
18499
|
}
|
|
18527
18500
|
}, [marks]);
|
|
@@ -19212,7 +19185,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19212
19185
|
autoFocus,
|
|
19213
19186
|
...reset
|
|
19214
19187
|
} = props;
|
|
19215
|
-
const
|
|
19188
|
+
const b = cn("shortpassword");
|
|
19216
19189
|
const textInput = React.useRef(null);
|
|
19217
19190
|
const range2 = (val) => {
|
|
19218
19191
|
return Math.min(Math.max(4, val), 6);
|
|
@@ -19288,22 +19261,22 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19288
19261
|
onClickOverlay: onClose,
|
|
19289
19262
|
onClickCloseIcon: onClose,
|
|
19290
19263
|
children: /* @__PURE__ */ jsxs("div", {
|
|
19291
|
-
className: `${
|
|
19264
|
+
className: `${b()} ${className}`,
|
|
19292
19265
|
style: {
|
|
19293
19266
|
...style
|
|
19294
19267
|
},
|
|
19295
19268
|
...reset,
|
|
19296
19269
|
children: [/* @__PURE__ */ jsx("div", {
|
|
19297
|
-
className:
|
|
19270
|
+
className: b("title"),
|
|
19298
19271
|
children: title || locale.shortpassword.title
|
|
19299
19272
|
}), /* @__PURE__ */ jsx("div", {
|
|
19300
|
-
className:
|
|
19273
|
+
className: b("subtitle"),
|
|
19301
19274
|
children: description || locale.shortpassword.description
|
|
19302
19275
|
}), /* @__PURE__ */ jsxs("div", {
|
|
19303
|
-
className:
|
|
19276
|
+
className: b("input"),
|
|
19304
19277
|
children: [/* @__PURE__ */ jsx("input", {
|
|
19305
19278
|
ref: textInput,
|
|
19306
|
-
className:
|
|
19279
|
+
className: b("input-real"),
|
|
19307
19280
|
type: "number",
|
|
19308
19281
|
style: systemStyle(),
|
|
19309
19282
|
maxLength: 6,
|
|
@@ -19311,40 +19284,40 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19311
19284
|
autoFocus,
|
|
19312
19285
|
onChange: (e) => changeValue(e)
|
|
19313
19286
|
}), /* @__PURE__ */ jsx("div", {
|
|
19314
|
-
className:
|
|
19287
|
+
className: b("input-site")
|
|
19315
19288
|
}), /* @__PURE__ */ jsx("div", {
|
|
19316
|
-
className:
|
|
19289
|
+
className: b("input-fake"),
|
|
19317
19290
|
onClick: () => focus(),
|
|
19318
19291
|
children: [...new Array(comLen).keys()].map((item, index) => {
|
|
19319
19292
|
return /* @__PURE__ */ jsx("div", {
|
|
19320
|
-
className:
|
|
19293
|
+
className: b("input-fake__li"),
|
|
19321
19294
|
children: String(inputValue).length > index ? /* @__PURE__ */ jsx("div", {
|
|
19322
|
-
className:
|
|
19295
|
+
className: b("input-fake__li__icon")
|
|
19323
19296
|
}) : null
|
|
19324
19297
|
}, index);
|
|
19325
19298
|
})
|
|
19326
19299
|
})]
|
|
19327
19300
|
}), /* @__PURE__ */ jsxs("div", {
|
|
19328
|
-
className:
|
|
19301
|
+
className: b("message"),
|
|
19329
19302
|
children: [/* @__PURE__ */ jsx("div", {
|
|
19330
|
-
className:
|
|
19303
|
+
className: b("message__error"),
|
|
19331
19304
|
children: errorMsg2
|
|
19332
19305
|
}), tips || locale.shortpassword.tips ? /* @__PURE__ */ jsxs("div", {
|
|
19333
|
-
className:
|
|
19306
|
+
className: b("message__forget"),
|
|
19334
19307
|
children: [renderIcon(iconSize), /* @__PURE__ */ jsx("div", {
|
|
19335
|
-
className:
|
|
19308
|
+
className: b("message__forget-tips"),
|
|
19336
19309
|
onClick: onTips,
|
|
19337
19310
|
children: tips || locale.shortpassword.tips
|
|
19338
19311
|
})]
|
|
19339
19312
|
}) : null]
|
|
19340
19313
|
}), !noButton ? /* @__PURE__ */ jsxs("div", {
|
|
19341
|
-
className:
|
|
19314
|
+
className: b("footer"),
|
|
19342
19315
|
children: [/* @__PURE__ */ jsx("div", {
|
|
19343
|
-
className:
|
|
19316
|
+
className: b("footer__cancel"),
|
|
19344
19317
|
onClick: onCancel,
|
|
19345
19318
|
children: locale.cancel
|
|
19346
19319
|
}), /* @__PURE__ */ jsx("div", {
|
|
19347
|
-
className:
|
|
19320
|
+
className: b("footer__sure"),
|
|
19348
19321
|
onClick: () => sure(),
|
|
19349
19322
|
children: locale.confirm
|
|
19350
19323
|
})]
|
|
@@ -19500,134 +19473,64 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19500
19473
|
TextArea.displayName = "NutTextArea";
|
|
19501
19474
|
const defaultProps$K = {
|
|
19502
19475
|
...ComponentDefaults,
|
|
19503
|
-
|
|
19504
|
-
|
|
19505
|
-
|
|
19506
|
-
percentage: 0,
|
|
19507
|
-
fillColor: "#f3f3f3",
|
|
19508
|
-
strokeColor: "linear-gradient(135deg, #fa2c19 0%, #fa6419 100%)",
|
|
19509
|
-
strokeWidth: "",
|
|
19510
|
-
textColor: "",
|
|
19511
|
-
textWidth: "",
|
|
19512
|
-
showText: true,
|
|
19513
|
-
textInside: false,
|
|
19514
|
-
textBackground: "linear-gradient(135deg, #fa2c19 0%, #fa6419 100%)",
|
|
19515
|
-
textType: "text",
|
|
19516
|
-
status: false,
|
|
19517
|
-
icon: null,
|
|
19518
|
-
children: void 0
|
|
19476
|
+
percent: 0,
|
|
19477
|
+
showText: false,
|
|
19478
|
+
animated: false
|
|
19519
19479
|
};
|
|
19520
19480
|
const Progress = (props) => {
|
|
19521
19481
|
const {
|
|
19522
19482
|
className,
|
|
19523
19483
|
style,
|
|
19524
|
-
|
|
19525
|
-
|
|
19526
|
-
|
|
19527
|
-
strokeColor,
|
|
19484
|
+
percent,
|
|
19485
|
+
background,
|
|
19486
|
+
color,
|
|
19528
19487
|
strokeWidth,
|
|
19529
|
-
size,
|
|
19530
|
-
textColor,
|
|
19531
|
-
textWidth,
|
|
19532
19488
|
showText,
|
|
19533
|
-
|
|
19534
|
-
textBackground,
|
|
19535
|
-
textType,
|
|
19536
|
-
status,
|
|
19537
|
-
icon,
|
|
19489
|
+
animated: animated2,
|
|
19538
19490
|
children,
|
|
19539
19491
|
...rest
|
|
19540
19492
|
} = {
|
|
19541
19493
|
...defaultProps$K,
|
|
19542
19494
|
...props
|
|
19543
19495
|
};
|
|
19544
|
-
const
|
|
19545
|
-
const classes = classNames(b2(""));
|
|
19546
|
-
const classesOuter = classNames({
|
|
19547
|
-
[`${b2("")}-outer`]: true,
|
|
19548
|
-
[`${b2("")}-${size || "base"}`]: true
|
|
19549
|
-
});
|
|
19496
|
+
const classPrefix2 = "nut-progress";
|
|
19550
19497
|
const classesInner = classNames({
|
|
19551
|
-
[`${
|
|
19552
|
-
[`${
|
|
19553
|
-
});
|
|
19554
|
-
const classesText = classNames({
|
|
19555
|
-
[`${b2("")}-text`]: true
|
|
19556
|
-
});
|
|
19557
|
-
const classesInsideText = classNames({
|
|
19558
|
-
[`${b2("")}-text`]: true,
|
|
19559
|
-
[`${b2("")}-insidetext`]: true
|
|
19560
|
-
});
|
|
19561
|
-
const classesTextInner = classNames({
|
|
19562
|
-
[`${b2("")}-text__inner`]: true
|
|
19498
|
+
[`${classPrefix2}-inner`]: true,
|
|
19499
|
+
[`${classPrefix2}-active`]: animated2
|
|
19563
19500
|
});
|
|
19564
19501
|
const stylesOuter = {
|
|
19565
19502
|
height: `${strokeWidth}px`,
|
|
19566
|
-
|
|
19567
|
-
background: `${fillColor}`
|
|
19503
|
+
background
|
|
19568
19504
|
};
|
|
19569
19505
|
const stylesInner = {
|
|
19570
|
-
width: `${
|
|
19571
|
-
|
|
19572
|
-
background: `${strokeColor}`
|
|
19573
|
-
};
|
|
19574
|
-
const stylesInsideText = {
|
|
19575
|
-
width: `${textWidth}px`,
|
|
19576
|
-
left: `${percentage}%`,
|
|
19577
|
-
background: textBackground || strokeColor
|
|
19578
|
-
};
|
|
19579
|
-
const stylesInsideIcon = {
|
|
19580
|
-
width: `${textWidth}px`,
|
|
19581
|
-
left: `${percentage}%`
|
|
19506
|
+
width: `${percent}%`,
|
|
19507
|
+
background: color
|
|
19582
19508
|
};
|
|
19583
|
-
|
|
19584
|
-
|
|
19585
|
-
};
|
|
19586
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
19587
|
-
className: `${classes} ${className}`,
|
|
19509
|
+
return /* @__PURE__ */ jsx("div", {
|
|
19510
|
+
className: classNames(classPrefix2, className),
|
|
19588
19511
|
style,
|
|
19589
19512
|
...rest,
|
|
19590
|
-
children:
|
|
19591
|
-
className:
|
|
19513
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
19514
|
+
className: `${classPrefix2}-outer`,
|
|
19592
19515
|
style: stylesOuter,
|
|
19593
19516
|
children: /* @__PURE__ */ jsx("div", {
|
|
19594
19517
|
className: classesInner,
|
|
19595
19518
|
style: stylesInner,
|
|
19596
|
-
children: showText &&
|
|
19597
|
-
|
|
19598
|
-
|
|
19599
|
-
|
|
19600
|
-
|
|
19601
|
-
|
|
19602
|
-
className:
|
|
19603
|
-
style:
|
|
19604
|
-
|
|
19605
|
-
|
|
19606
|
-
|
|
19607
|
-
color: textColor
|
|
19608
|
-
},
|
|
19609
|
-
children: [percentage, isShowPercentage ? "%" : ""]
|
|
19610
|
-
})
|
|
19519
|
+
children: showText && /* @__PURE__ */ jsx("div", {
|
|
19520
|
+
className: `${classPrefix2}-text`,
|
|
19521
|
+
style: {
|
|
19522
|
+
left: `${percent}%`
|
|
19523
|
+
},
|
|
19524
|
+
children: children || /* @__PURE__ */ jsxs("div", {
|
|
19525
|
+
className: `${classPrefix2}-text__inner`,
|
|
19526
|
+
style: {
|
|
19527
|
+
background: color
|
|
19528
|
+
},
|
|
19529
|
+
children: [percent, "%"]
|
|
19611
19530
|
})
|
|
19612
19531
|
})
|
|
19613
19532
|
})
|
|
19614
|
-
})
|
|
19615
|
-
className: classesText,
|
|
19616
|
-
style: stylesText,
|
|
19617
|
-
children: [textType === "text" && /* @__PURE__ */ jsxs("span", {
|
|
19618
|
-
className: classesTextInner,
|
|
19619
|
-
style: {
|
|
19620
|
-
color: textColor
|
|
19621
|
-
},
|
|
19622
|
-
children: [percentage, isShowPercentage ? "%" : ""]
|
|
19623
|
-
}), textType === "icon" && /* @__PURE__ */ jsx(Fragment, {
|
|
19624
|
-
children: icon || /* @__PURE__ */ jsx(x$d, {
|
|
19625
|
-
width: 16,
|
|
19626
|
-
height: 16,
|
|
19627
|
-
color: "#439422"
|
|
19628
|
-
})
|
|
19629
|
-
})]
|
|
19630
|
-
})]
|
|
19533
|
+
})
|
|
19631
19534
|
});
|
|
19632
19535
|
};
|
|
19633
19536
|
Progress.defaultProps = defaultProps$K;
|
|
@@ -20126,9 +20029,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20126
20029
|
className: "nut-uploader__preview-img__file__del",
|
|
20127
20030
|
onClick: () => onDeleteItem(item, index)
|
|
20128
20031
|
}), item.status === "uploading" && /* @__PURE__ */ jsx(Progress, {
|
|
20129
|
-
|
|
20130
|
-
|
|
20131
|
-
strokeColor: "linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)",
|
|
20032
|
+
percent: item.percentage,
|
|
20033
|
+
color: "linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)",
|
|
20132
20034
|
showText: false
|
|
20133
20035
|
})]
|
|
20134
20036
|
})]
|
|
@@ -20207,7 +20109,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20207
20109
|
...defaultProps$I,
|
|
20208
20110
|
...props
|
|
20209
20111
|
};
|
|
20210
|
-
const
|
|
20112
|
+
const b = cn("actionsheet");
|
|
20211
20113
|
const isHighlight = (item) => {
|
|
20212
20114
|
return props.chooseTagValue && props.chooseTagValue === item[props.optionTag || "name"] ? props.color : "$dark1";
|
|
20213
20115
|
};
|
|
@@ -20227,20 +20129,20 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20227
20129
|
onCancel && onCancel();
|
|
20228
20130
|
},
|
|
20229
20131
|
children: /* @__PURE__ */ jsxs("div", {
|
|
20230
|
-
className: `${
|
|
20132
|
+
className: `${b()} ${className}`,
|
|
20231
20133
|
style,
|
|
20232
20134
|
...rest,
|
|
20233
20135
|
children: [title && /* @__PURE__ */ jsx("div", {
|
|
20234
|
-
className:
|
|
20136
|
+
className: b("title"),
|
|
20235
20137
|
children: title
|
|
20236
20138
|
}), description && /* @__PURE__ */ jsx("div", {
|
|
20237
|
-
className: `${
|
|
20139
|
+
className: `${b("item")} description`,
|
|
20238
20140
|
children: description
|
|
20239
20141
|
}), menuItems.length ? /* @__PURE__ */ jsx("div", {
|
|
20240
|
-
className:
|
|
20142
|
+
className: b("menu"),
|
|
20241
20143
|
children: menuItems.map((item, index) => {
|
|
20242
20144
|
return /* @__PURE__ */ jsxs("div", {
|
|
20243
|
-
className: `${
|
|
20145
|
+
className: `${b("item")} ${item.disable ? b("item-disabled") : ""}`,
|
|
20244
20146
|
style: {
|
|
20245
20147
|
color: isHighlight(item)
|
|
20246
20148
|
},
|
|
@@ -20252,7 +20154,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20252
20154
|
}, index);
|
|
20253
20155
|
})
|
|
20254
20156
|
}) : children, cancelText && /* @__PURE__ */ jsx("div", {
|
|
20255
|
-
className:
|
|
20157
|
+
className: b("cancel"),
|
|
20256
20158
|
onClick: () => cancelActionSheet(),
|
|
20257
20159
|
children: cancelText
|
|
20258
20160
|
})]
|
|
@@ -20706,6 +20608,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20706
20608
|
Dialog.defaultProps = defaultProps$G;
|
|
20707
20609
|
Dialog.displayName = "NutDialog";
|
|
20708
20610
|
const defaultProps$F = {
|
|
20611
|
+
...ComponentDefaults,
|
|
20709
20612
|
attract: false,
|
|
20710
20613
|
direction: void 0,
|
|
20711
20614
|
boundary: {
|
|
@@ -20713,8 +20616,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20713
20616
|
left: 0,
|
|
20714
20617
|
right: 0,
|
|
20715
20618
|
bottom: 0
|
|
20716
|
-
}
|
|
20717
|
-
className: ""
|
|
20619
|
+
}
|
|
20718
20620
|
};
|
|
20719
20621
|
const Drag = (props) => {
|
|
20720
20622
|
const {
|
|
@@ -20729,7 +20631,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20729
20631
|
...defaultProps$F,
|
|
20730
20632
|
...props
|
|
20731
20633
|
};
|
|
20732
|
-
const
|
|
20634
|
+
const classPrefix2 = "nut-drag";
|
|
20733
20635
|
const [boundaryState, setBoundaryState] = React.useState(boundary);
|
|
20734
20636
|
const myDrag = React.useRef(null);
|
|
20735
20637
|
const [currstyle, api] = useSpring(() => ({
|
|
@@ -20802,7 +20704,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20802
20704
|
}, [myDrag]);
|
|
20803
20705
|
return /* @__PURE__ */ jsx("div", {
|
|
20804
20706
|
style,
|
|
20805
|
-
className: `${
|
|
20707
|
+
className: `${classPrefix2} ${className}`,
|
|
20806
20708
|
...reset,
|
|
20807
20709
|
ref: myDrag,
|
|
20808
20710
|
children: /* @__PURE__ */ jsx(animated.div, {
|
|
@@ -20863,8 +20765,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20863
20765
|
const refreshMaxH = React.useRef(0);
|
|
20864
20766
|
const y2 = React.useRef(0);
|
|
20865
20767
|
const distance = React.useRef(0);
|
|
20866
|
-
const
|
|
20867
|
-
const classes = classNames(className,
|
|
20768
|
+
const b = cn("infiniteloading");
|
|
20769
|
+
const classes = classNames(className, b());
|
|
20868
20770
|
React.useEffect(() => {
|
|
20869
20771
|
const parentElement = getParentElement(scroller.current);
|
|
20870
20772
|
scrollEl.current = useWindow ? window : parentElement;
|
|
@@ -21671,12 +21573,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21671
21573
|
...props
|
|
21672
21574
|
};
|
|
21673
21575
|
const [value, setValue] = React.useState(false);
|
|
21674
|
-
const
|
|
21576
|
+
const b = cn("switch");
|
|
21675
21577
|
React.useEffect(() => {
|
|
21676
21578
|
setValue(checked);
|
|
21677
21579
|
}, [checked]);
|
|
21678
21580
|
const classes = () => {
|
|
21679
|
-
return `${
|
|
21581
|
+
return `${b()} ${value ? "switch-open" : "switch-close"} ${disable ? `${b()}-disable` : ""} ${`${b()}-base`} ${className}`;
|
|
21680
21582
|
};
|
|
21681
21583
|
const styles = () => {
|
|
21682
21584
|
const myStyle = {
|
|
@@ -21703,10 +21605,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21703
21605
|
className: "close-line"
|
|
21704
21606
|
}), activeText && /* @__PURE__ */ jsx(Fragment, {
|
|
21705
21607
|
children: value ? /* @__PURE__ */ jsx("div", {
|
|
21706
|
-
className: `${
|
|
21608
|
+
className: `${b("label")} open`,
|
|
21707
21609
|
children: activeText
|
|
21708
21610
|
}) : /* @__PURE__ */ jsx("div", {
|
|
21709
|
-
className: `${
|
|
21611
|
+
className: `${b("label")} close`,
|
|
21710
21612
|
children: inactiveText
|
|
21711
21613
|
})
|
|
21712
21614
|
})]
|
|
@@ -21716,12 +21618,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21716
21618
|
Switch.defaultProps = defaultProps$B;
|
|
21717
21619
|
Switch.displayName = "NutSwitch";
|
|
21718
21620
|
const defaultProps$A = {
|
|
21621
|
+
...ComponentDefaults,
|
|
21719
21622
|
type: "shake",
|
|
21720
21623
|
action: "initial",
|
|
21721
21624
|
loop: false,
|
|
21722
21625
|
onClick: (event) => {
|
|
21723
21626
|
}
|
|
21724
21627
|
};
|
|
21628
|
+
const classPrefix = `nut-animate`;
|
|
21725
21629
|
const Animate = (props) => {
|
|
21726
21630
|
const {
|
|
21727
21631
|
className,
|
|
@@ -21736,10 +21640,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21736
21640
|
...props
|
|
21737
21641
|
};
|
|
21738
21642
|
const [clicked, setClicked] = React.useState(false);
|
|
21739
|
-
const b2 = cn("animate");
|
|
21740
21643
|
const classes = classNames({
|
|
21741
21644
|
"nut-ani-container": true,
|
|
21742
|
-
[`${
|
|
21645
|
+
[`${classPrefix}-${type2}`]: action === "initial" || clicked ? type2 : false,
|
|
21743
21646
|
loop: loop2
|
|
21744
21647
|
});
|
|
21745
21648
|
const cls = classNames(classes, className);
|
|
@@ -21785,7 +21688,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21785
21688
|
...defaultProps$z,
|
|
21786
21689
|
...props
|
|
21787
21690
|
};
|
|
21788
|
-
const
|
|
21691
|
+
const b = cn("countup");
|
|
21789
21692
|
const countupRef = React.useRef(null);
|
|
21790
21693
|
const timerRef = React.useRef(0);
|
|
21791
21694
|
const numbers = Array.from({
|
|
@@ -21825,17 +21728,17 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21825
21728
|
};
|
|
21826
21729
|
}, [numerArr]);
|
|
21827
21730
|
return /* @__PURE__ */ jsx("div", {
|
|
21828
|
-
className: `${
|
|
21731
|
+
className: `${b()} ${className}`,
|
|
21829
21732
|
ref: countupRef,
|
|
21830
21733
|
children: /* @__PURE__ */ jsx("ul", {
|
|
21831
|
-
className:
|
|
21734
|
+
className: b("list"),
|
|
21832
21735
|
children: numerArr.map((item, idx) => {
|
|
21833
21736
|
return /* @__PURE__ */ jsx("li", {
|
|
21834
|
-
className: `${
|
|
21737
|
+
className: `${b("listitem", {
|
|
21835
21738
|
number: !Number.isNaN(Number(item))
|
|
21836
21739
|
})}`,
|
|
21837
21740
|
children: !Number.isNaN(Number(item)) ? /* @__PURE__ */ jsx("span", {
|
|
21838
|
-
className:
|
|
21741
|
+
className: b("number"),
|
|
21839
21742
|
style: numberEaseStyle,
|
|
21840
21743
|
children: [...numbers, ...numbers].map((number2, subidx) => {
|
|
21841
21744
|
return /* @__PURE__ */ jsx("span", {
|
|
@@ -21843,7 +21746,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21843
21746
|
}, subidx);
|
|
21844
21747
|
})
|
|
21845
21748
|
}) : /* @__PURE__ */ jsx("span", {
|
|
21846
|
-
className:
|
|
21749
|
+
className: b("separator"),
|
|
21847
21750
|
children: item
|
|
21848
21751
|
})
|
|
21849
21752
|
}, idx);
|
|
@@ -22159,12 +22062,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22159
22062
|
const [avatarIndex, setAvatarIndex] = React.useState(1);
|
|
22160
22063
|
const avatarRef = React.useRef(null);
|
|
22161
22064
|
const parent = React.useContext(AvatarContext);
|
|
22162
|
-
const
|
|
22065
|
+
const b = cn("avatar");
|
|
22163
22066
|
const classes = classNames({
|
|
22164
22067
|
[`nut-avatar-${size || ((_a2 = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _a2.size) || "normal"}`]: true,
|
|
22165
22068
|
[`nut-avatar-${shape || ((_b = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _b.shape) || "round"}`]: true
|
|
22166
22069
|
});
|
|
22167
|
-
const cls = classNames(
|
|
22070
|
+
const cls = classNames(b(""), classes, className);
|
|
22168
22071
|
const sizeValue = ["large", "normal", "small"];
|
|
22169
22072
|
const styles = {
|
|
22170
22073
|
width: sizeValue.indexOf(size) > -1 ? "" : `${size}px`,
|
|
@@ -22261,8 +22164,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22261
22164
|
children
|
|
22262
22165
|
} = propAvatarGroup;
|
|
22263
22166
|
const avatarGroupRef = React.useRef(null);
|
|
22264
|
-
const
|
|
22265
|
-
const cls = classNames(
|
|
22167
|
+
const b = cn("avatar-group");
|
|
22168
|
+
const cls = classNames(b(""), className);
|
|
22266
22169
|
const parentAvatar = {
|
|
22267
22170
|
propAvatarGroup,
|
|
22268
22171
|
avatarGroupRef
|
|
@@ -22281,41 +22184,36 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22281
22184
|
AvatarGroup.displayName = "NutAvatarGroup";
|
|
22282
22185
|
const defaultProps$u = {
|
|
22283
22186
|
...ComponentDefaults,
|
|
22284
|
-
className: "",
|
|
22285
22187
|
value: "",
|
|
22286
22188
|
dot: false,
|
|
22287
|
-
max:
|
|
22189
|
+
max: 99,
|
|
22288
22190
|
top: "0",
|
|
22289
|
-
right: "
|
|
22290
|
-
|
|
22291
|
-
color: "",
|
|
22292
|
-
icon: null
|
|
22191
|
+
right: "5",
|
|
22192
|
+
color: ""
|
|
22293
22193
|
};
|
|
22294
|
-
const b = cn("badge");
|
|
22295
22194
|
const Badge = (props) => {
|
|
22296
22195
|
const {
|
|
22297
22196
|
className,
|
|
22298
22197
|
style,
|
|
22198
|
+
value,
|
|
22199
|
+
max,
|
|
22299
22200
|
children,
|
|
22300
22201
|
dot,
|
|
22301
22202
|
top,
|
|
22302
22203
|
right,
|
|
22303
|
-
|
|
22304
|
-
color,
|
|
22305
|
-
icon
|
|
22204
|
+
color
|
|
22306
22205
|
} = {
|
|
22307
22206
|
...defaultProps$u,
|
|
22308
22207
|
...props
|
|
22309
22208
|
};
|
|
22209
|
+
const classPrefix2 = "nut-badge";
|
|
22210
|
+
const classes = classNames(classPrefix2, className);
|
|
22211
|
+
const contentClasses = classNames({
|
|
22212
|
+
[`${classPrefix2}__dot`]: dot
|
|
22213
|
+
}, `${classPrefix2}__content`, `${classPrefix2}__sup`);
|
|
22310
22214
|
function content() {
|
|
22311
|
-
if (dot)
|
|
22312
|
-
return
|
|
22313
|
-
const {
|
|
22314
|
-
value
|
|
22315
|
-
} = props;
|
|
22316
|
-
const {
|
|
22317
|
-
max
|
|
22318
|
-
} = props;
|
|
22215
|
+
if (dot || typeof value === "object")
|
|
22216
|
+
return null;
|
|
22319
22217
|
if (typeof value === "number" && typeof max === "number") {
|
|
22320
22218
|
return max < value ? `${max}+` : value;
|
|
22321
22219
|
}
|
|
@@ -22325,22 +22223,19 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22325
22223
|
const style2 = {};
|
|
22326
22224
|
style2.top = `${Number(top) || parseFloat(top) || 0}px`;
|
|
22327
22225
|
style2.right = `${Number(right) || parseFloat(right) || 0}px`;
|
|
22328
|
-
style2.zIndex = zIndex;
|
|
22329
22226
|
style2.background = color;
|
|
22330
22227
|
return style2;
|
|
22331
22228
|
};
|
|
22332
22229
|
return /* @__PURE__ */ jsxs("div", {
|
|
22333
|
-
className:
|
|
22230
|
+
className: classes,
|
|
22334
22231
|
style,
|
|
22335
|
-
children: [
|
|
22336
|
-
className:
|
|
22337
|
-
children:
|
|
22232
|
+
children: [typeof value === "object" && value && /* @__PURE__ */ jsx("div", {
|
|
22233
|
+
className: `${classPrefix2}__icon`,
|
|
22234
|
+
children: value
|
|
22338
22235
|
}), /* @__PURE__ */ jsx("div", {
|
|
22339
22236
|
children
|
|
22340
22237
|
}), /* @__PURE__ */ jsx("div", {
|
|
22341
|
-
className:
|
|
22342
|
-
"is-dot": dot
|
|
22343
|
-
}, b("content"), "sup"),
|
|
22238
|
+
className: contentClasses,
|
|
22344
22239
|
style: getStyle(),
|
|
22345
22240
|
children: content()
|
|
22346
22241
|
})]
|
|
@@ -22374,8 +22269,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22374
22269
|
...defaultProps$t,
|
|
22375
22270
|
...props
|
|
22376
22271
|
};
|
|
22377
|
-
const
|
|
22378
|
-
const classes = classNames(className,
|
|
22272
|
+
const b = cn("circleprogress");
|
|
22273
|
+
const classes = classNames(className, b(""));
|
|
22379
22274
|
const refRandomId = Math.random().toString(36).slice(-8);
|
|
22380
22275
|
const styles = {
|
|
22381
22276
|
height: `${Number(radius) * 2}px`,
|
|
@@ -22405,7 +22300,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22405
22300
|
return;
|
|
22406
22301
|
}
|
|
22407
22302
|
const color = circleColor;
|
|
22408
|
-
const colorArr = Object.keys(color).sort((a2,
|
|
22303
|
+
const colorArr = Object.keys(color).sort((a2, b2) => parseFloat(a2) - parseFloat(b2));
|
|
22409
22304
|
const stopArr = [];
|
|
22410
22305
|
colorArr.map((item) => {
|
|
22411
22306
|
const obj = {
|
|
@@ -22675,7 +22570,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22675
22570
|
...defaultProps$q,
|
|
22676
22571
|
...props
|
|
22677
22572
|
};
|
|
22678
|
-
const
|
|
22573
|
+
const b = cn("countdown");
|
|
22679
22574
|
const [restTimeStamp, setRestTime] = React.useState(0);
|
|
22680
22575
|
const stateRef = React.useRef({
|
|
22681
22576
|
pauseTime: 0,
|
|
@@ -22869,13 +22764,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22869
22764
|
return formatRemainTime(stateRef.current.restTime);
|
|
22870
22765
|
})();
|
|
22871
22766
|
return /* @__PURE__ */ jsx("div", {
|
|
22872
|
-
className: `${
|
|
22767
|
+
className: `${b()} ${className || ""}`,
|
|
22873
22768
|
style: {
|
|
22874
22769
|
...style
|
|
22875
22770
|
},
|
|
22876
22771
|
...rest,
|
|
22877
22772
|
children: children || /* @__PURE__ */ jsx("div", {
|
|
22878
|
-
className:
|
|
22773
|
+
className: b("block"),
|
|
22879
22774
|
dangerouslySetInnerHTML: {
|
|
22880
22775
|
__html: `${renderTime}`
|
|
22881
22776
|
}
|
|
@@ -23085,7 +22980,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23085
22980
|
...props
|
|
23086
22981
|
};
|
|
23087
22982
|
const [imgStyle, setImgStyle] = React.useState({});
|
|
23088
|
-
const
|
|
22983
|
+
const b = cn("empty");
|
|
23089
22984
|
let imageNode = image;
|
|
23090
22985
|
if (typeof image === "string") {
|
|
23091
22986
|
const isHttpUrl = image.startsWith("https://") || image.startsWith("http://") || image.startsWith("//");
|
|
@@ -23114,15 +23009,15 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23114
23009
|
});
|
|
23115
23010
|
}, [imageSize]);
|
|
23116
23011
|
return /* @__PURE__ */ jsx("div", {
|
|
23117
|
-
className: `${
|
|
23012
|
+
className: `${b()} ${className}`,
|
|
23118
23013
|
...rest,
|
|
23119
23014
|
children: /* @__PURE__ */ jsxs(Fragment, {
|
|
23120
23015
|
children: [/* @__PURE__ */ jsx("div", {
|
|
23121
|
-
className:
|
|
23016
|
+
className: b("image"),
|
|
23122
23017
|
style: imgStyle,
|
|
23123
23018
|
children: imageNode
|
|
23124
23019
|
}), typeof description === "string" ? /* @__PURE__ */ jsx("div", {
|
|
23125
|
-
className:
|
|
23020
|
+
className: b("description"),
|
|
23126
23021
|
children: description || locale.noData
|
|
23127
23022
|
}) : {
|
|
23128
23023
|
description
|
|
@@ -23165,8 +23060,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23165
23060
|
...props
|
|
23166
23061
|
};
|
|
23167
23062
|
const rootRef = React.useRef(null);
|
|
23168
|
-
const
|
|
23169
|
-
const classes = classNames(className,
|
|
23063
|
+
const b = cn("video");
|
|
23064
|
+
const classes = classNames(className, b(""));
|
|
23170
23065
|
React.useEffect(() => {
|
|
23171
23066
|
init();
|
|
23172
23067
|
}, []);
|
|
@@ -23484,11 +23379,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23484
23379
|
touch.stateDirection = getDirection2(touch.offsetX, touch.offsetY);
|
|
23485
23380
|
}
|
|
23486
23381
|
};
|
|
23487
|
-
const
|
|
23488
|
-
const classes = classNames(
|
|
23382
|
+
const b = cn("swiper");
|
|
23383
|
+
const classes = classNames(b(""));
|
|
23489
23384
|
const contentClass = classNames({
|
|
23490
|
-
[`${
|
|
23491
|
-
[`${
|
|
23385
|
+
[`${b("inner")}`]: true,
|
|
23386
|
+
[`${b("vertical")}`]: isVertical
|
|
23492
23387
|
});
|
|
23493
23388
|
const getStyle = (moveOffset = offset) => {
|
|
23494
23389
|
const target = innerRef.current;
|
|
@@ -23647,15 +23542,15 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23647
23542
|
ref: innerRef,
|
|
23648
23543
|
children: React.Children.map(childs, (child, index) => {
|
|
23649
23544
|
return /* @__PURE__ */ jsx("div", {
|
|
23650
|
-
className:
|
|
23545
|
+
className: b("item-wrapper"),
|
|
23651
23546
|
style: itemStyle(index),
|
|
23652
23547
|
children: child
|
|
23653
23548
|
}, index);
|
|
23654
23549
|
})
|
|
23655
23550
|
}), propSwiper.paginationVisible && !("pageContent" in propSwiper) ? /* @__PURE__ */ jsx("div", {
|
|
23656
23551
|
className: classNames({
|
|
23657
|
-
[`${
|
|
23658
|
-
[`${
|
|
23552
|
+
[`${b("pagination")}`]: true,
|
|
23553
|
+
[`${b("pagination-vertical")}`]: isVertical
|
|
23659
23554
|
}),
|
|
23660
23555
|
children: React.Children.map(childs, (item, index) => {
|
|
23661
23556
|
return /* @__PURE__ */ jsx("i", {
|
|
@@ -23693,8 +23588,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23693
23588
|
size
|
|
23694
23589
|
} = _props;
|
|
23695
23590
|
const parent = React.useContext(DataContext$1);
|
|
23696
|
-
const
|
|
23697
|
-
const classes = classNames(
|
|
23591
|
+
const b = cn("swiper-item");
|
|
23592
|
+
const classes = classNames(b(""), className);
|
|
23698
23593
|
const getStyle = () => {
|
|
23699
23594
|
const style2 = {};
|
|
23700
23595
|
const _direction = (parent == null ? void 0 : parent.propSwiper.direction) || direction;
|
|
@@ -24268,7 +24163,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24268
24163
|
});
|
|
24269
24164
|
}
|
|
24270
24165
|
};
|
|
24271
|
-
const
|
|
24166
|
+
const b = cn("noticebar");
|
|
24272
24167
|
const noticebarClass = classNames({
|
|
24273
24168
|
"nut-noticebar-page": true,
|
|
24274
24169
|
withicon: closeMode,
|
|
@@ -24281,7 +24176,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24281
24176
|
};
|
|
24282
24177
|
}, []);
|
|
24283
24178
|
return /* @__PURE__ */ jsxs("div", {
|
|
24284
|
-
className: `${
|
|
24179
|
+
className: `${b()} ${className || ""}`,
|
|
24285
24180
|
style,
|
|
24286
24181
|
children: [showNoticeBar && direction === "across" ? /* @__PURE__ */ jsxs("div", {
|
|
24287
24182
|
className: noticebarClass,
|
|
@@ -24571,7 +24466,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24571
24466
|
...defaultProps$h,
|
|
24572
24467
|
...props
|
|
24573
24468
|
};
|
|
24574
|
-
const
|
|
24469
|
+
const b = cn("price");
|
|
24575
24470
|
const showSymbol = () => {
|
|
24576
24471
|
return {
|
|
24577
24472
|
__html: needSymbol ? symbol : ""
|
|
@@ -24611,21 +24506,21 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24611
24506
|
};
|
|
24612
24507
|
const renderSymbol = () => {
|
|
24613
24508
|
return /* @__PURE__ */ jsx("div", {
|
|
24614
|
-
className: `${
|
|
24509
|
+
className: `${b("symbol")} ${b(`symbol-${size}`)}`,
|
|
24615
24510
|
dangerouslySetInnerHTML: showSymbol()
|
|
24616
24511
|
});
|
|
24617
24512
|
};
|
|
24618
24513
|
return /* @__PURE__ */ jsxs("div", {
|
|
24619
|
-
className: `${
|
|
24514
|
+
className: `${b()} ${className}`,
|
|
24620
24515
|
...rest,
|
|
24621
24516
|
children: [needSymbol && position === "before" ? renderSymbol() : null, /* @__PURE__ */ jsx("div", {
|
|
24622
|
-
className: `${
|
|
24517
|
+
className: `${b("integer")} ${b(`integer-${size}`)}`,
|
|
24623
24518
|
children: formatThousands(price)
|
|
24624
24519
|
}), decimalDigits !== 0 ? /* @__PURE__ */ jsx("div", {
|
|
24625
|
-
className: `${
|
|
24520
|
+
className: `${b("decimal")} ${b(`decimal-${size}`)}`,
|
|
24626
24521
|
children: "."
|
|
24627
24522
|
}) : null, /* @__PURE__ */ jsx("div", {
|
|
24628
|
-
className: `${
|
|
24523
|
+
className: `${b("decimal")} ${b(`decimal-${size}`)}`,
|
|
24629
24524
|
children: formatDecimal(price)
|
|
24630
24525
|
}), needSymbol && position === "after" ? renderSymbol() : null]
|
|
24631
24526
|
});
|
|
@@ -24663,8 +24558,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24663
24558
|
...defaultProps$g,
|
|
24664
24559
|
...props
|
|
24665
24560
|
};
|
|
24666
|
-
const
|
|
24667
|
-
const classes = classNames(className,
|
|
24561
|
+
const b = cn("skeleton");
|
|
24562
|
+
const classes = classNames(className, b());
|
|
24668
24563
|
const blockClass = classNames({
|
|
24669
24564
|
blockClass: true,
|
|
24670
24565
|
"blockClass--round": round
|
|
@@ -24766,10 +24661,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24766
24661
|
((_a2 = parent.propSteps) == null ? void 0 : _a2.onClickStep) && ((_b = parent.propSteps) == null ? void 0 : _b.onClickStep(activeIndex));
|
|
24767
24662
|
((_c = parent.propSteps) == null ? void 0 : _c.clickStep) && ((_d = parent.propSteps) == null ? void 0 : _d.clickStep(activeIndex));
|
|
24768
24663
|
};
|
|
24769
|
-
const
|
|
24664
|
+
const b = cn("step");
|
|
24770
24665
|
const classes = classNames({
|
|
24771
|
-
[`${
|
|
24772
|
-
}, className,
|
|
24666
|
+
[`${b("")}-${getCurrentStatus()}`]: true
|
|
24667
|
+
}, className, b(""));
|
|
24773
24668
|
const renderIconClass = () => {
|
|
24774
24669
|
if (!dot && icon) {
|
|
24775
24670
|
return "nut-step-icon is-icon";
|
|
@@ -24834,11 +24729,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24834
24729
|
const parentSteps = {
|
|
24835
24730
|
propSteps
|
|
24836
24731
|
};
|
|
24837
|
-
const
|
|
24732
|
+
const b = cn("steps");
|
|
24838
24733
|
const classes = classNames({
|
|
24839
|
-
[`${
|
|
24840
|
-
[`${
|
|
24841
|
-
}, className,
|
|
24734
|
+
[`${b("")}-${direction}`]: true,
|
|
24735
|
+
[`${b("")}-dot`]: !!props.progressDot
|
|
24736
|
+
}, className, b(""));
|
|
24842
24737
|
return /* @__PURE__ */ jsx(DataContext.Provider, {
|
|
24843
24738
|
value: parentSteps,
|
|
24844
24739
|
children: React.createElement("div", {
|
|
@@ -24890,9 +24785,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24890
24785
|
setCurData(data);
|
|
24891
24786
|
}
|
|
24892
24787
|
}, [data]);
|
|
24893
|
-
const
|
|
24788
|
+
const b = cn("table");
|
|
24894
24789
|
const classes = classNames({});
|
|
24895
|
-
const cls = classNames(
|
|
24790
|
+
const cls = classNames(b(), classes, className);
|
|
24896
24791
|
const handleSorterClick = (item) => {
|
|
24897
24792
|
if (item.sorter) {
|
|
24898
24793
|
onSorter && onSorter(item, curData);
|
|
@@ -25134,7 +25029,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25134
25029
|
...defaultProps$b,
|
|
25135
25030
|
...props
|
|
25136
25031
|
};
|
|
25137
|
-
const
|
|
25032
|
+
const b = cn("trendarrow");
|
|
25138
25033
|
const handleClick2 = () => {
|
|
25139
25034
|
};
|
|
25140
25035
|
const rateTrend = React.useRef(rate > 0);
|
|
@@ -25173,13 +25068,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25173
25068
|
const renderContent = (arrowLeft2) => {
|
|
25174
25069
|
const classNameSuffix = !arrowLeft2 ? "icon-after" : "icon-before";
|
|
25175
25070
|
return /* @__PURE__ */ jsx("span", {
|
|
25176
|
-
className: `${
|
|
25071
|
+
className: `${b(classNameSuffix)} ${b("rate")}`,
|
|
25177
25072
|
style: calcStyle,
|
|
25178
25073
|
children: calcRate
|
|
25179
25074
|
});
|
|
25180
25075
|
};
|
|
25181
25076
|
return /* @__PURE__ */ jsxs("div", {
|
|
25182
|
-
className: `${
|
|
25077
|
+
className: `${b()} ${className}`,
|
|
25183
25078
|
...rest,
|
|
25184
25079
|
onClick: handleClick2,
|
|
25185
25080
|
children: [!arrowLeft && renderContent(!arrowLeft), children || /* @__PURE__ */ jsx(Fragment, {
|
|
@@ -25522,10 +25417,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25522
25417
|
...props
|
|
25523
25418
|
};
|
|
25524
25419
|
const [base64Url, setBase64Url] = React.useState("");
|
|
25525
|
-
const
|
|
25420
|
+
const b = cn("watermark");
|
|
25526
25421
|
const classes = classNames({
|
|
25527
|
-
[`${
|
|
25528
|
-
[`${
|
|
25422
|
+
[`${b("")}`]: true,
|
|
25423
|
+
[`${b("")}-full-page`]: fullPage
|
|
25529
25424
|
});
|
|
25530
25425
|
const cls = classNames(classes, className);
|
|
25531
25426
|
React.useEffect(() => {
|
|
@@ -25610,7 +25505,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25610
25505
|
...defaultProps$8,
|
|
25611
25506
|
...props
|
|
25612
25507
|
};
|
|
25613
|
-
const
|
|
25508
|
+
const b = cn("address");
|
|
25614
25509
|
const selectedExist = (item) => {
|
|
25615
25510
|
const copyExistAdd = existAddress;
|
|
25616
25511
|
let prevExistAdd = {
|
|
@@ -25638,18 +25533,18 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25638
25533
|
React.useEffect(() => {
|
|
25639
25534
|
}, [existAddress]);
|
|
25640
25535
|
return /* @__PURE__ */ jsxs("div", {
|
|
25641
|
-
className:
|
|
25536
|
+
className: b("exist"),
|
|
25642
25537
|
children: [/* @__PURE__ */ jsx("div", {
|
|
25643
|
-
className:
|
|
25538
|
+
className: b("exist-group"),
|
|
25644
25539
|
children: /* @__PURE__ */ jsx("ul", {
|
|
25645
|
-
className:
|
|
25540
|
+
className: b("exist-ul"),
|
|
25646
25541
|
children: existAddress.map((item, index) => {
|
|
25647
25542
|
return /* @__PURE__ */ jsx("li", {
|
|
25648
|
-
className:
|
|
25543
|
+
className: b("exist-item"),
|
|
25649
25544
|
children: /* @__PURE__ */ jsxs("div", {
|
|
25650
25545
|
onClick: () => selectedExist(item),
|
|
25651
25546
|
children: [item.selectedAddress ? selectedIcon : defaultIcon, /* @__PURE__ */ jsxs("div", {
|
|
25652
|
-
className:
|
|
25547
|
+
className: b("exist-item-info"),
|
|
25653
25548
|
children: [item.name && item.phone && /* @__PURE__ */ jsxs("div", {
|
|
25654
25549
|
className: "exist-item-info-top",
|
|
25655
25550
|
children: [/* @__PURE__ */ jsx("div", {
|
|
@@ -25671,10 +25566,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25671
25566
|
})
|
|
25672
25567
|
})
|
|
25673
25568
|
}), isShowCustomAddress && /* @__PURE__ */ jsx("div", {
|
|
25674
|
-
className:
|
|
25569
|
+
className: b("choose-other"),
|
|
25675
25570
|
onClick: onSwitch,
|
|
25676
25571
|
children: /* @__PURE__ */ jsx("div", {
|
|
25677
|
-
className:
|
|
25572
|
+
className: b("choose-other-btn"),
|
|
25678
25573
|
children: customAndExistTitle || locale.address.chooseAnotherAddress
|
|
25679
25574
|
})
|
|
25680
25575
|
})]
|
|
@@ -25710,7 +25605,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25710
25605
|
...defaultProps$7,
|
|
25711
25606
|
...props
|
|
25712
25607
|
};
|
|
25713
|
-
const
|
|
25608
|
+
const b = cn("address");
|
|
25714
25609
|
const [privateType] = React.useState(type2);
|
|
25715
25610
|
const [tabIndex, setTabIndex] = React.useState(0);
|
|
25716
25611
|
const [tabName] = React.useState(["province", "city", "country", "town"]);
|
|
@@ -25733,8 +25628,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25733
25628
|
}
|
|
25734
25629
|
});
|
|
25735
25630
|
const newData = [];
|
|
25736
|
-
data = data.sort((a2,
|
|
25737
|
-
return a2.title.localeCompare(
|
|
25631
|
+
data = data.sort((a2, b2) => {
|
|
25632
|
+
return a2.title.localeCompare(b2.title);
|
|
25738
25633
|
});
|
|
25739
25634
|
data.forEach((item) => {
|
|
25740
25635
|
const index = newData.findIndex((value) => value.title === item.title);
|
|
@@ -25929,12 +25824,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25929
25824
|
initCustomSelected();
|
|
25930
25825
|
}, [modelValue]);
|
|
25931
25826
|
return /* @__PURE__ */ jsxs("div", {
|
|
25932
|
-
className:
|
|
25827
|
+
className: b("custom"),
|
|
25933
25828
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
25934
|
-
className:
|
|
25829
|
+
className: b("region-tab"),
|
|
25935
25830
|
children: [selectedRegion && Object.keys(selectedRegion).map((key, index) => {
|
|
25936
25831
|
return /* @__PURE__ */ jsx("div", {
|
|
25937
|
-
className: `${
|
|
25832
|
+
className: `${b("tab-item")} ${index === tabIndex ? "active" : ""}`,
|
|
25938
25833
|
ref: mapRef[key],
|
|
25939
25834
|
onClick: () => changeRegionTab(selectedRegion[key], index, key),
|
|
25940
25835
|
children: index <= tabIndex && /* @__PURE__ */ jsx("div", {
|
|
@@ -25942,25 +25837,25 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25942
25837
|
})
|
|
25943
25838
|
}, index);
|
|
25944
25839
|
}), /* @__PURE__ */ jsx("div", {
|
|
25945
|
-
className:
|
|
25840
|
+
className: b("tab-line"),
|
|
25946
25841
|
ref: regionLine,
|
|
25947
25842
|
style: {
|
|
25948
25843
|
left: `${lineDistance}px`
|
|
25949
25844
|
}
|
|
25950
25845
|
})]
|
|
25951
25846
|
}), privateType === "custom" && /* @__PURE__ */ jsx("div", {
|
|
25952
|
-
className:
|
|
25847
|
+
className: b("region-con"),
|
|
25953
25848
|
children: /* @__PURE__ */ jsx("ul", {
|
|
25954
|
-
className:
|
|
25849
|
+
className: b("region-group"),
|
|
25955
25850
|
children: regionList[tabName[tabIndex]].map((item, index) => {
|
|
25956
25851
|
return /* @__PURE__ */ jsx("li", {
|
|
25957
|
-
className:
|
|
25852
|
+
className: b("region-item"),
|
|
25958
25853
|
children: /* @__PURE__ */ jsxs("div", {
|
|
25959
25854
|
onClick: () => {
|
|
25960
25855
|
nextAreaList(item);
|
|
25961
25856
|
},
|
|
25962
25857
|
children: [selectedRegion && selectedRegion[tabName[tabIndex]].id === item.id && /* @__PURE__ */ jsx(x$e, {
|
|
25963
|
-
className:
|
|
25858
|
+
className: b("region-item--icon"),
|
|
25964
25859
|
color: "var(--nutui-brand-color)",
|
|
25965
25860
|
width: 13,
|
|
25966
25861
|
height: 13
|
|
@@ -25970,10 +25865,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25970
25865
|
})
|
|
25971
25866
|
})
|
|
25972
25867
|
}), privateType === "custom2" && /* @__PURE__ */ jsx("div", {
|
|
25973
|
-
className:
|
|
25868
|
+
className: b("elevator-group"),
|
|
25974
25869
|
children: /* @__PURE__ */ jsx(Elevator, {
|
|
25975
25870
|
height,
|
|
25976
|
-
|
|
25871
|
+
list: regionList[tabName[tabIndex]],
|
|
25977
25872
|
onClickItem: handleElevatorItem
|
|
25978
25873
|
})
|
|
25979
25874
|
})]
|
|
@@ -26035,7 +25930,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26035
25930
|
...defaultProps$6,
|
|
26036
25931
|
...props
|
|
26037
25932
|
};
|
|
26038
|
-
const
|
|
25933
|
+
const b = cn("address");
|
|
26039
25934
|
const [privateType, setPrivateType] = React.useState(type2);
|
|
26040
25935
|
const [tabName] = React.useState(["province", "city", "country", "town"]);
|
|
26041
25936
|
const [showPopup, setShowPopup] = React.useState(modelValue);
|
|
@@ -26129,7 +26024,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26129
26024
|
};
|
|
26130
26025
|
const headerRender = () => {
|
|
26131
26026
|
return /* @__PURE__ */ jsxs("div", {
|
|
26132
|
-
className:
|
|
26027
|
+
className: b("header"),
|
|
26133
26028
|
children: [/* @__PURE__ */ jsx("div", {
|
|
26134
26029
|
className: "arrow-back",
|
|
26135
26030
|
onClick: onSwitchModule,
|
|
@@ -26137,7 +26032,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26137
26032
|
color: "#cccccc"
|
|
26138
26033
|
}))
|
|
26139
26034
|
}), /* @__PURE__ */ jsx("div", {
|
|
26140
|
-
className:
|
|
26035
|
+
className: b("header__title"),
|
|
26141
26036
|
children: privateType === "custom" ? customAddressTitle || locale.address.selectRegion : existAddressTitle || locale.address.deliveryTo
|
|
26142
26037
|
}), /* @__PURE__ */ jsx("div", {
|
|
26143
26038
|
onClick: () => handClose(),
|
|
@@ -26166,7 +26061,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26166
26061
|
closeFun();
|
|
26167
26062
|
},
|
|
26168
26063
|
children: /* @__PURE__ */ jsxs("div", {
|
|
26169
|
-
className: `${
|
|
26064
|
+
className: `${b()} ${className || ""}`,
|
|
26170
26065
|
style: {
|
|
26171
26066
|
...style
|
|
26172
26067
|
},
|
|
@@ -26231,8 +26126,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26231
26126
|
const barrageCWidth = React.useRef(0);
|
|
26232
26127
|
const timer = React.useRef(0);
|
|
26233
26128
|
const index = React.useRef(0);
|
|
26234
|
-
const
|
|
26235
|
-
const classes = classNames(className,
|
|
26129
|
+
const b = cn("barrage");
|
|
26130
|
+
const classes = classNames(className, b(""));
|
|
26236
26131
|
React.useImperativeHandle(ref, () => ({
|
|
26237
26132
|
add: (word) => {
|
|
26238
26133
|
const _index = index.current % barrageList.length;
|
|
@@ -26318,32 +26213,32 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26318
26213
|
...defaultProps$4,
|
|
26319
26214
|
...props
|
|
26320
26215
|
};
|
|
26321
|
-
const
|
|
26216
|
+
const b = cn("card");
|
|
26322
26217
|
return /* @__PURE__ */ jsxs("div", {
|
|
26323
|
-
className: classNames(
|
|
26218
|
+
className: classNames(b(), className),
|
|
26324
26219
|
style,
|
|
26325
26220
|
...rest,
|
|
26326
26221
|
children: [/* @__PURE__ */ jsx("div", {
|
|
26327
|
-
className:
|
|
26222
|
+
className: b("left"),
|
|
26328
26223
|
children: /* @__PURE__ */ jsx("img", {
|
|
26329
26224
|
src: imgUrl,
|
|
26330
26225
|
alt: ""
|
|
26331
26226
|
})
|
|
26332
26227
|
}), /* @__PURE__ */ jsxs("div", {
|
|
26333
|
-
className:
|
|
26228
|
+
className: b("right"),
|
|
26334
26229
|
children: [/* @__PURE__ */ jsx("div", {
|
|
26335
|
-
className:
|
|
26230
|
+
className: b("right__title"),
|
|
26336
26231
|
children: title
|
|
26337
26232
|
}), prolistTpl, /* @__PURE__ */ jsxs("div", {
|
|
26338
|
-
className:
|
|
26233
|
+
className: b("right__price"),
|
|
26339
26234
|
children: [/* @__PURE__ */ jsx(Price, {
|
|
26340
26235
|
price
|
|
26341
26236
|
}), originTpl || /* @__PURE__ */ jsx(Price, {
|
|
26342
|
-
className:
|
|
26237
|
+
className: b("right__price__origin"),
|
|
26343
26238
|
price: vipPrice
|
|
26344
26239
|
})]
|
|
26345
26240
|
}), /* @__PURE__ */ jsx("div", {
|
|
26346
|
-
className:
|
|
26241
|
+
className: b("right__other"),
|
|
26347
26242
|
children: shopTagTpl || /* @__PURE__ */ jsxs(Fragment, {
|
|
26348
26243
|
children: [/* @__PURE__ */ jsx(Tag, {
|
|
26349
26244
|
type: "danger",
|
|
@@ -26354,9 +26249,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26354
26249
|
})]
|
|
26355
26250
|
})
|
|
26356
26251
|
}), /* @__PURE__ */ jsxs("div", {
|
|
26357
|
-
className:
|
|
26252
|
+
className: b("right__shop"),
|
|
26358
26253
|
children: [/* @__PURE__ */ jsx("div", {
|
|
26359
|
-
className:
|
|
26254
|
+
className: b("right__shop__name"),
|
|
26360
26255
|
children: shopName
|
|
26361
26256
|
}), footerTpl]
|
|
26362
26257
|
})]
|
|
@@ -26391,7 +26286,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26391
26286
|
...defaultProps$3,
|
|
26392
26287
|
...props
|
|
26393
26288
|
};
|
|
26394
|
-
const
|
|
26289
|
+
const b = cn("signature");
|
|
26395
26290
|
const canvasRef = React.useRef(null);
|
|
26396
26291
|
const wrapRef = React.useRef(null);
|
|
26397
26292
|
const [canvasHeight, setCanvasHeight] = React.useState(0);
|
|
@@ -26481,26 +26376,26 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26481
26376
|
onConfirm && onConfirm(canvas, dataurl);
|
|
26482
26377
|
};
|
|
26483
26378
|
return /* @__PURE__ */ jsxs("div", {
|
|
26484
|
-
className: `${
|
|
26379
|
+
className: `${b()} ${className}`,
|
|
26485
26380
|
...rest,
|
|
26486
26381
|
children: [/* @__PURE__ */ jsx("div", {
|
|
26487
|
-
className: `${
|
|
26382
|
+
className: `${b("inner")}`,
|
|
26488
26383
|
ref: wrapRef,
|
|
26489
26384
|
children: isCanvasSupported() ? /* @__PURE__ */ jsx("canvas", {
|
|
26490
26385
|
ref: canvasRef,
|
|
26491
26386
|
height: canvasHeight,
|
|
26492
26387
|
width: canvasWidth
|
|
26493
26388
|
}) : /* @__PURE__ */ jsx("p", {
|
|
26494
|
-
className: `${
|
|
26389
|
+
className: `${b("unsopport")}`,
|
|
26495
26390
|
children: locale.signature.unSupportTpl || unSupportTpl
|
|
26496
26391
|
})
|
|
26497
26392
|
}), /* @__PURE__ */ jsx(Button, {
|
|
26498
|
-
className: `${
|
|
26393
|
+
className: `${b("btn")}`,
|
|
26499
26394
|
type: "default",
|
|
26500
26395
|
onClick: () => handleClearBtn(),
|
|
26501
26396
|
children: locale.signature.reSign
|
|
26502
26397
|
}), /* @__PURE__ */ jsx(Button, {
|
|
26503
|
-
className: `${
|
|
26398
|
+
className: `${b("btn")}`,
|
|
26504
26399
|
type: "primary",
|
|
26505
26400
|
onClick: () => handleConfirmBtn(),
|
|
26506
26401
|
children: locale.confirm
|
|
@@ -26529,7 +26424,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26529
26424
|
...defaultProps$2,
|
|
26530
26425
|
...props
|
|
26531
26426
|
};
|
|
26532
|
-
const
|
|
26427
|
+
const b = cn("timedetail");
|
|
26533
26428
|
const [renderData, setRenderData] = React.useState([]);
|
|
26534
26429
|
React.useEffect(() => {
|
|
26535
26430
|
const currentData = times.find((timesItem) => String(timesItem.key) === String(currentKey));
|
|
@@ -26548,7 +26443,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26548
26443
|
return initClass;
|
|
26549
26444
|
};
|
|
26550
26445
|
return /* @__PURE__ */ jsx("div", {
|
|
26551
|
-
className: `${
|
|
26446
|
+
className: `${b()} ${className || ""}`,
|
|
26552
26447
|
children: renderData.map((item, index) => /* @__PURE__ */ jsx("span", {
|
|
26553
26448
|
className: getDetailClass(item),
|
|
26554
26449
|
onClick: () => handleTime(item),
|
|
@@ -26575,9 +26470,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26575
26470
|
...defaultProps$1,
|
|
26576
26471
|
...props
|
|
26577
26472
|
};
|
|
26578
|
-
const
|
|
26473
|
+
const b = cn("timepannel");
|
|
26579
26474
|
return /* @__PURE__ */ jsx("div", {
|
|
26580
|
-
className: `${
|
|
26475
|
+
className: `${b()} ${className || ""}`,
|
|
26581
26476
|
onClick: () => change(curKey),
|
|
26582
26477
|
children: date2
|
|
26583
26478
|
});
|
|
@@ -26628,7 +26523,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26628
26523
|
width: "100%",
|
|
26629
26524
|
height
|
|
26630
26525
|
};
|
|
26631
|
-
const
|
|
26526
|
+
const b = cn("timeselect");
|
|
26632
26527
|
const closeFun = () => {
|
|
26633
26528
|
if (onSelect) {
|
|
26634
26529
|
onSelect(activeTime);
|
|
@@ -26707,7 +26602,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26707
26602
|
closeFun();
|
|
26708
26603
|
},
|
|
26709
26604
|
children: /* @__PURE__ */ jsxs("div", {
|
|
26710
|
-
className: `${
|
|
26605
|
+
className: `${b()} ${className || ""}`,
|
|
26711
26606
|
children: [/* @__PURE__ */ jsx("div", {
|
|
26712
26607
|
className: "nut-timeselect__title",
|
|
26713
26608
|
children: title
|