@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.
@@ -6,7 +6,7 @@ var __publicField = (obj, key, value) => {
6
6
  };
7
7
  var _a;
8
8
  /*!
9
- * @nutui/nutui-react v2.0.0-alpha.1 Fri Apr 21 2023 18:04:48 GMT+0800 (China Standard Time)
9
+ * @nutui/nutui-react v2.0.0-alpha.2 Wed Apr 26 2023 18:36:40 GMT+0800 (China Standard Time)
10
10
  * (c) 2023 @jdf2e.
11
11
  * Released under the MIT License.
12
12
  */
@@ -315,29 +315,29 @@ function sr() {
315
315
  }), typeof Reflect == "object" && Reflect.construct) {
316
316
  try {
317
317
  Reflect.construct(o, []);
318
- } catch (b2) {
319
- n = b2;
318
+ } catch (b) {
319
+ n = b;
320
320
  }
321
321
  Reflect.construct(e, [], o);
322
322
  } else {
323
323
  try {
324
324
  o.call();
325
- } catch (b2) {
326
- n = b2;
325
+ } catch (b) {
326
+ n = b;
327
327
  }
328
328
  e.call(o.prototype);
329
329
  }
330
330
  } else {
331
331
  try {
332
332
  throw Error();
333
- } catch (b2) {
334
- n = b2;
333
+ } catch (b) {
334
+ n = b;
335
335
  }
336
336
  e();
337
337
  }
338
- } catch (b2) {
339
- if (b2 && n && typeof b2.stack == "string") {
340
- for (var a2 = b2.stack.split(`
338
+ } catch (b) {
339
+ if (b && n && typeof b.stack == "string") {
340
+ for (var a2 = b.stack.split(`
341
341
  `), v = n.stack.split(`
342
342
  `), s = a2.length - 1, f = v.length - 1; s >= 1 && f >= 0 && a2[s] !== v[f]; )
343
343
  f--;
@@ -2274,15 +2274,15 @@ function requireReactJsxRuntime_production_min() {
2274
2274
  hasRequiredReactJsxRuntime_production_min = 1;
2275
2275
  var f = React__default, 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 };
2276
2276
  function q(c, a2, g) {
2277
- var b2, d = {}, e = null, h = null;
2277
+ var b, d = {}, e = null, h = null;
2278
2278
  void 0 !== g && (e = "" + g);
2279
2279
  void 0 !== a2.key && (e = "" + a2.key);
2280
2280
  void 0 !== a2.ref && (h = a2.ref);
2281
- for (b2 in a2)
2282
- m.call(a2, b2) && !p.hasOwnProperty(b2) && (d[b2] = a2[b2]);
2281
+ for (b in a2)
2282
+ m.call(a2, b) && !p.hasOwnProperty(b) && (d[b] = a2[b]);
2283
2283
  if (c && c.defaultProps)
2284
- for (b2 in a2 = c.defaultProps, a2)
2285
- void 0 === d[b2] && (d[b2] = a2[b2]);
2284
+ for (b in a2 = c.defaultProps, a2)
2285
+ void 0 === d[b] && (d[b] = a2[b]);
2286
2286
  return { $$typeof: k2, type: c, key: e, ref: h, props: d, _owner: n.current };
2287
2287
  }
2288
2288
  reactJsxRuntime_production_min.Fragment = l2;
@@ -3283,7 +3283,7 @@ const defaultProps$1q = {
3283
3283
  onClick: (event) => {
3284
3284
  }
3285
3285
  };
3286
- const classPrefix$8 = "nut-cell";
3286
+ const classPrefix$9 = "nut-cell";
3287
3287
  const Cell = (props) => {
3288
3288
  const {
3289
3289
  children,
@@ -3312,26 +3312,26 @@ const Cell = (props) => {
3312
3312
  flex: 1
3313
3313
  };
3314
3314
  return /* @__PURE__ */ jsx("div", {
3315
- className: classNames(classPrefix$8, className),
3315
+ className: classNames(classPrefix$9, className),
3316
3316
  onClick: (event) => handleClick2(event),
3317
3317
  style: baseStyle,
3318
3318
  ...rest,
3319
3319
  children: children || /* @__PURE__ */ jsxs(Fragment, {
3320
3320
  children: [title || description ? /* @__PURE__ */ jsxs("div", {
3321
- className: `${classPrefix$8}__left`,
3321
+ className: `${classPrefix$9}__left`,
3322
3322
  children: [title ? /* @__PURE__ */ jsx("div", {
3323
- className: `${classPrefix$8}__title`,
3323
+ className: `${classPrefix$9}__title`,
3324
3324
  children: title
3325
3325
  }) : null, description ? /* @__PURE__ */ jsx("div", {
3326
- className: `${classPrefix$8}__description`,
3326
+ className: `${classPrefix$9}__description`,
3327
3327
  children: description
3328
3328
  }) : null]
3329
3329
  }) : null, extra ? /* @__PURE__ */ jsx("div", {
3330
- className: `${classPrefix$8}__extra`,
3330
+ className: `${classPrefix$9}__extra`,
3331
3331
  style: styles,
3332
3332
  children: extra
3333
3333
  }) : null, /* @__PURE__ */ jsx("div", {
3334
- className: `${classPrefix$8}__divider`
3334
+ className: `${classPrefix$9}__divider`
3335
3335
  })]
3336
3336
  })
3337
3337
  });
@@ -3343,7 +3343,7 @@ const defaultProps$1p = {
3343
3343
  title: "",
3344
3344
  description: ""
3345
3345
  };
3346
- const classPrefix$7 = "nut-cell-group";
3346
+ const classPrefix$8 = "nut-cell-group";
3347
3347
  const CellGroup = (props) => {
3348
3348
  const {
3349
3349
  children,
@@ -3357,16 +3357,16 @@ const CellGroup = (props) => {
3357
3357
  ...props
3358
3358
  };
3359
3359
  return /* @__PURE__ */ jsxs("div", {
3360
- className: classNames(classPrefix$7, className),
3360
+ className: classNames(classPrefix$8, className),
3361
3361
  ...rest,
3362
3362
  children: [title ? /* @__PURE__ */ jsx("div", {
3363
- className: `${classPrefix$7}__title`,
3363
+ className: `${classPrefix$8}__title`,
3364
3364
  children: title
3365
3365
  }) : null, description ? /* @__PURE__ */ jsx("div", {
3366
- className: `${classPrefix$7}__description`,
3366
+ className: `${classPrefix$8}__description`,
3367
3367
  children: description
3368
3368
  }) : null, /* @__PURE__ */ jsx("div", {
3369
- className: `${classPrefix$7}__wrap`,
3369
+ className: `${classPrefix$8}__wrap`,
3370
3370
  children
3371
3371
  })]
3372
3372
  });
@@ -3846,7 +3846,7 @@ const defaultProps$1n = {
3846
3846
  loading: true,
3847
3847
  lazy: false
3848
3848
  };
3849
- const classPrefix$6 = "nut-image";
3849
+ const classPrefix$7 = "nut-image";
3850
3850
  const Image$1 = (props) => {
3851
3851
  const {
3852
3852
  className,
@@ -3975,7 +3975,7 @@ const Image$1 = (props) => {
3975
3975
  return null;
3976
3976
  }, [loading, innerLoading]);
3977
3977
  return /* @__PURE__ */ jsxs("div", {
3978
- className: classNames(classPrefix$6, className),
3978
+ className: classNames(classPrefix$7, className),
3979
3979
  style: containerStyle,
3980
3980
  onClick: (e) => {
3981
3981
  imageClick(e);
@@ -4010,7 +4010,7 @@ const defaultOverlayProps = {
4010
4010
  visible: false,
4011
4011
  lockScroll: true
4012
4012
  };
4013
- const classPrefix$5 = `nut-overlay`;
4013
+ const classPrefix$6 = `nut-overlay`;
4014
4014
  const Overlay = (props) => {
4015
4015
  const {
4016
4016
  children,
@@ -4053,7 +4053,7 @@ const Overlay = (props) => {
4053
4053
  "overlay-fade-enter-active": visible,
4054
4054
  "first-render": renderRef.current && !visible,
4055
4055
  "hidden-render": !visible
4056
- }, className, classPrefix$5);
4056
+ }, className, classPrefix$6);
4057
4057
  const styles = {
4058
4058
  zIndex,
4059
4059
  animationDuration: `${props.duration}s`,
@@ -4160,7 +4160,7 @@ function requireReactIs_production_min() {
4160
4160
  if (hasRequiredReactIs_production_min)
4161
4161
  return reactIs_production_min;
4162
4162
  hasRequiredReactIs_production_min = 1;
4163
- var b2 = "function" === typeof Symbol && Symbol.for, c = b2 ? Symbol.for("react.element") : 60103, d = b2 ? Symbol.for("react.portal") : 60106, e = b2 ? Symbol.for("react.fragment") : 60107, f = b2 ? Symbol.for("react.strict_mode") : 60108, g = b2 ? Symbol.for("react.profiler") : 60114, h = b2 ? Symbol.for("react.provider") : 60109, k2 = b2 ? Symbol.for("react.context") : 60110, l2 = b2 ? Symbol.for("react.async_mode") : 60111, m = b2 ? Symbol.for("react.concurrent_mode") : 60111, n = b2 ? Symbol.for("react.forward_ref") : 60112, p = b2 ? Symbol.for("react.suspense") : 60113, q = b2 ? Symbol.for("react.suspense_list") : 60120, r = b2 ? Symbol.for("react.memo") : 60115, t = b2 ? Symbol.for("react.lazy") : 60116, v = b2 ? Symbol.for("react.block") : 60121, w = b2 ? Symbol.for("react.fundamental") : 60117, x2 = b2 ? Symbol.for("react.responder") : 60118, y2 = b2 ? Symbol.for("react.scope") : 60119;
4163
+ 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;
4164
4164
  function z(a2) {
4165
4165
  if ("object" === typeof a2 && null !== a2) {
4166
4166
  var u = a2.$$typeof;
@@ -6073,10 +6073,11 @@ const Col = (props) => {
6073
6073
  Col.defaultProps = defaultProps$1l;
6074
6074
  Col.displayName = "NutCol";
6075
6075
  const defaultProps$1k = {
6076
+ ...ComponentDefaults,
6076
6077
  contentPosition: "center",
6077
6078
  direction: "horizontal"
6078
6079
  };
6079
- const classPrefix$4 = `nut-divider`;
6080
+ const classPrefix$5 = `nut-divider`;
6080
6081
  const Divider = (props) => {
6081
6082
  const {
6082
6083
  children,
@@ -6090,14 +6091,14 @@ const Divider = (props) => {
6090
6091
  ...props
6091
6092
  };
6092
6093
  const classes = direction === "horizontal" ? classNames({
6093
- [`${classPrefix$4}`]: true,
6094
- [`${classPrefix$4}__center`]: children,
6095
- [`${classPrefix$4}__left`]: contentPosition === "left",
6096
- [`${classPrefix$4}__right`]: contentPosition === "right",
6097
- [`${classPrefix$4}__hairline`]: true
6094
+ [`${classPrefix$5}`]: true,
6095
+ [`${classPrefix$5}__center`]: children,
6096
+ [`${classPrefix$5}__left`]: contentPosition === "left",
6097
+ [`${classPrefix$5}__right`]: contentPosition === "right",
6098
+ [`${classPrefix$5}__hairline`]: true
6098
6099
  }) : classNames({
6099
- [`${classPrefix$4}`]: true,
6100
- [`${classPrefix$4}__vertical`]: direction === "vertical"
6100
+ [`${classPrefix$5}`]: true,
6101
+ [`${classPrefix$5}__vertical`]: direction === "vertical"
6101
6102
  });
6102
6103
  return /* @__PURE__ */ jsx("div", {
6103
6104
  className: `${classes} ${className || ""}`,
@@ -6281,7 +6282,7 @@ const Layout = (props) => {
6281
6282
  };
6282
6283
  Layout.defaultProps = defaultProps$1h;
6283
6284
  Layout.displayName = "NutLayout";
6284
- const classPrefix$3 = "nut-row";
6285
+ const classPrefix$4 = "nut-row";
6285
6286
  const defaultProps$1g = {
6286
6287
  ...ComponentDefaults,
6287
6288
  type: "",
@@ -6316,7 +6317,7 @@ const Row = (props) => {
6316
6317
  ${getClass("justify", justify)}
6317
6318
  ${getClass("align", align)}
6318
6319
  ${getClass("flex", wrap)}
6319
- ${classPrefix$3}
6320
+ ${classPrefix$4}
6320
6321
  `;
6321
6322
  };
6322
6323
  const parentRow = {
@@ -6418,7 +6419,7 @@ const defaultProps$1f = {
6418
6419
  threshold: 0,
6419
6420
  zIndex: 2e3
6420
6421
  };
6421
- const classPrefix$2 = "nut-sticky";
6422
+ const classPrefix$3 = "nut-sticky";
6422
6423
  const Sticky = (props) => {
6423
6424
  const {
6424
6425
  position,
@@ -6548,7 +6549,7 @@ const Sticky = (props) => {
6548
6549
  ...style,
6549
6550
  ...rootStyle
6550
6551
  },
6551
- className: classNames(classPrefix$2, className),
6552
+ className: classNames(classPrefix$3, className),
6552
6553
  ...rest,
6553
6554
  children: /* @__PURE__ */ jsx("div", {
6554
6555
  className: "nut-sticky--box",
@@ -8660,17 +8661,17 @@ const is = {
8660
8661
  num: (a2) => typeof a2 === "number",
8661
8662
  und: (a2) => a2 === void 0
8662
8663
  };
8663
- function isEqual(a2, b2) {
8664
+ function isEqual(a2, b) {
8664
8665
  if (is.arr(a2)) {
8665
- if (!is.arr(b2) || a2.length !== b2.length)
8666
+ if (!is.arr(b) || a2.length !== b.length)
8666
8667
  return false;
8667
8668
  for (let i = 0; i < a2.length; i++) {
8668
- if (a2[i] !== b2[i])
8669
+ if (a2[i] !== b[i])
8669
8670
  return false;
8670
8671
  }
8671
8672
  return true;
8672
8673
  }
8673
- return a2 === b2;
8674
+ return a2 === b;
8674
8675
  }
8675
8676
  const each = (obj, fn) => obj.forEach(fn);
8676
8677
  function eachProp(obj, fn, ctx2) {
@@ -9025,8 +9026,8 @@ function hslToRgb(h, s, l2) {
9025
9026
  const p = 2 * l2 - q;
9026
9027
  const r = hue2rgb(p, q, h + 1 / 3);
9027
9028
  const g = hue2rgb(p, q, h);
9028
- const b2 = hue2rgb(p, q, h - 1 / 3);
9029
- return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b2 * 255) << 8;
9029
+ const b = hue2rgb(p, q, h - 1 / 3);
9030
+ return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b * 255) << 8;
9030
9031
  }
9031
9032
  function parse255(str) {
9032
9033
  const int = parseInt(str, 10);
@@ -9063,9 +9064,9 @@ function colorToRgba(input) {
9063
9064
  int32Color = int32Color || 0;
9064
9065
  let r = (int32Color & 4278190080) >>> 24;
9065
9066
  let g = (int32Color & 16711680) >>> 16;
9066
- let b2 = (int32Color & 65280) >>> 8;
9067
+ let b = (int32Color & 65280) >>> 8;
9067
9068
  let a2 = (int32Color & 255) / 255;
9068
- return `rgba(${r}, ${g}, ${b2}, ${a2})`;
9069
+ return `rgba(${r}, ${g}, ${b}, ${a2})`;
9069
9070
  }
9070
9071
  const createInterpolator = (range3, output, extrapolate) => {
9071
9072
  if (is.fun(range3)) {
@@ -11675,145 +11676,26 @@ const host = createHost(primitives, {
11675
11676
  }
11676
11677
  });
11677
11678
  const animated = host.animated;
11678
- var classnameExports = {};
11679
- var classname = {
11680
- get exports() {
11681
- return classnameExports;
11682
- },
11683
- set exports(v) {
11684
- classnameExports = v;
11685
- }
11686
- };
11687
- var classname_production_min = {};
11688
- var hasRequiredClassname_production_min;
11689
- function requireClassname_production_min() {
11690
- if (hasRequiredClassname_production_min)
11691
- return classname_production_min;
11692
- hasRequiredClassname_production_min = 1;
11693
- function r(r2) {
11694
- function t2(t3, i, a2, o) {
11695
- var f = i ? e + t3 + r2.e + i : e + t3, v = f;
11696
- if (a2) {
11697
- var s = " " + v + r2.m;
11698
- for (var u in a2)
11699
- if (a2.hasOwnProperty(u)) {
11700
- var p = a2[u];
11701
- true === p ? v += s + u : p && (v += s + u + n + p);
11702
- }
11703
- }
11704
- if (void 0 !== o)
11705
- for (var y2 = 0, c = (o = Array.isArray(o) ? o : [o]).length; y2 < c; y2++) {
11706
- var l2 = o[y2];
11707
- if (l2 && "string" == typeof l2.valueOf())
11708
- for (var g = l2.valueOf().split(" "), d = 0; d < g.length; d++) {
11709
- var h = g[d];
11710
- h !== f && (v += " " + h);
11711
- }
11712
- }
11713
- return v;
11714
- }
11715
- var e = r2.n || "", n = r2.v || r2.m;
11716
- return function(r3, e2) {
11717
- return function(n2, i, a2) {
11718
- 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);
11719
- };
11720
- };
11721
- }
11722
- Object.defineProperty(classname_production_min, "__esModule", { value: true });
11723
- var t = r({ e: "-", m: "_" });
11724
- classname_production_min.cn = t, classname_production_min.withNaming = r;
11725
- return classname_production_min;
11726
- }
11727
- var classname_development = {};
11728
- var hasRequiredClassname_development;
11729
- function requireClassname_development() {
11730
- if (hasRequiredClassname_development)
11731
- return classname_development;
11732
- hasRequiredClassname_development = 1;
11733
- Object.defineProperty(classname_development, "__esModule", { value: true });
11734
- function withNaming(preset) {
11735
- var nameSpace = preset.n || "";
11736
- var modValueDelimiter = preset.v || preset.m;
11737
- function stringify(b2, e, m, mix) {
11738
- var entityName = e ? nameSpace + b2 + preset.e + e : nameSpace + b2;
11739
- var className = entityName;
11740
- if (m) {
11741
- var modPrefix = " " + className + preset.m;
11742
- for (var k2 in m) {
11743
- if (m.hasOwnProperty(k2)) {
11744
- var modVal = m[k2];
11745
- if (modVal === true) {
11746
- className += modPrefix + k2;
11747
- } else if (modVal) {
11748
- className += modPrefix + k2 + modValueDelimiter + modVal;
11749
- }
11750
- }
11751
- }
11752
- }
11753
- if (mix !== void 0) {
11754
- mix = Array.isArray(mix) ? mix : [mix];
11755
- for (var i = 0, len = mix.length; i < len; i++) {
11756
- var value = mix[i];
11757
- if (!value || typeof value.valueOf() !== "string")
11758
- continue;
11759
- var mixes = value.valueOf().split(" ");
11760
- for (var j = 0; j < mixes.length; j++) {
11761
- var val = mixes[j];
11762
- if (val !== entityName) {
11763
- className += " " + val;
11764
- }
11765
- }
11766
- }
11767
- }
11768
- return className;
11769
- }
11770
- return function cnGenerator(b2, e) {
11771
- return function(elemOrMods, elemModsOrBlockMix, elemMix) {
11772
- if (typeof elemOrMods === "string") {
11773
- if (typeof elemModsOrBlockMix === "string" || Array.isArray(elemModsOrBlockMix)) {
11774
- return stringify(b2, elemOrMods, void 0, elemModsOrBlockMix);
11775
- }
11776
- return stringify(b2, elemOrMods, elemModsOrBlockMix, elemMix);
11777
- }
11778
- return stringify(b2, e, elemOrMods, elemModsOrBlockMix);
11779
- };
11780
- };
11781
- }
11782
- var cn2 = withNaming({
11783
- e: "-",
11784
- m: "_"
11785
- });
11786
- classname_development.cn = cn2;
11787
- classname_development.withNaming = withNaming;
11788
- return classname_development;
11789
- }
11790
- (function(module) {
11791
- if (process.env.NODE_ENV === "production") {
11792
- module.exports = requireClassname_production_min();
11793
- } else {
11794
- module.exports = requireClassname_development();
11795
- }
11796
- })(classname);
11797
- const cn = classnameExports.withNaming({ n: "nut-", e: "__", m: "--", v: "-" });
11798
11679
  const elevatorContext = createContext({});
11799
11680
  const defaultProps$1e = {
11681
+ ...ComponentDefaults,
11800
11682
  height: "200px",
11801
- acceptKey: "title",
11802
- indexList: [],
11803
- isSticky: false,
11683
+ floorKey: "title",
11684
+ list: [],
11685
+ sticky: false,
11804
11686
  spaceHeight: 23,
11805
- titleHeight: 35,
11806
- className: ""
11687
+ titleHeight: 35
11807
11688
  };
11808
11689
  const Elevator = (props) => {
11809
11690
  const {
11810
11691
  height,
11811
- acceptKey,
11812
- indexList,
11813
- isSticky,
11692
+ floorKey,
11693
+ list,
11694
+ sticky,
11814
11695
  spaceHeight,
11815
11696
  titleHeight,
11816
11697
  className,
11698
+ style,
11817
11699
  onClickItem,
11818
11700
  onClickIndex,
11819
11701
  children,
@@ -11822,7 +11704,7 @@ const Elevator = (props) => {
11822
11704
  ...defaultProps$1e,
11823
11705
  ...props
11824
11706
  };
11825
- const b2 = cn("elevator");
11707
+ const classPrefix2 = "nut-elevator";
11826
11708
  const listview = useRef(null);
11827
11709
  const initData = {
11828
11710
  anchorIndex: 0,
@@ -11947,35 +11829,37 @@ const Elevator = (props) => {
11947
11829
  }
11948
11830
  }, [listview]);
11949
11831
  return /* @__PURE__ */ jsxs("div", {
11950
- className: `${b2()} ${className}`,
11832
+ className: `${classPrefix2} ${className}`,
11833
+ style,
11951
11834
  ...rest,
11952
- children: [isSticky && scrollY > 0 ? /* @__PURE__ */ jsx("div", {
11953
- className: b2("list__fixed"),
11835
+ children: [sticky && scrollY > 0 ? /* @__PURE__ */ jsx("div", {
11836
+ className: `${classPrefix2}__list__fixed`,
11954
11837
  children: /* @__PURE__ */ jsx("span", {
11955
- className: "fixed-title",
11956
- children: indexList[currentIndex][acceptKey]
11838
+ className: `${classPrefix2}__list__fixed__title`,
11839
+ children: list[currentIndex][floorKey]
11957
11840
  })
11958
11841
  }) : null, /* @__PURE__ */ jsx("div", {
11959
- className: b2("list"),
11842
+ className: `${classPrefix2}__list`,
11960
11843
  style: {
11961
11844
  height: Number.isNaN(+height) ? height : `${height}px`
11962
11845
  },
11963
11846
  children: /* @__PURE__ */ jsx("div", {
11964
- className: b2("list__inner"),
11847
+ className: `${classPrefix2}__list__inner`,
11965
11848
  ref: listview,
11966
- children: indexList.map((item, idx) => {
11849
+ children: list.map((item, idx) => {
11967
11850
  return /* @__PURE__ */ jsxs("div", {
11968
- className: b2("list__item"),
11851
+ className: `${classPrefix2}__list__item`,
11969
11852
  children: [/* @__PURE__ */ jsx("div", {
11970
- className: b2("list__item__code"),
11971
- children: item[acceptKey]
11853
+ className: `${classPrefix2}__list__item__code`,
11854
+ children: item[floorKey]
11972
11855
  }), /* @__PURE__ */ jsx(Fragment, {
11973
11856
  children: item.list.map((subitem) => {
11974
11857
  return /* @__PURE__ */ jsx("div", {
11975
- className: b2("list__item__name", {
11976
- highcolor: currentData.id === subitem.id && currentKey === item[acceptKey]
11858
+ className: classNames({
11859
+ [`${classPrefix2}__list__item__name`]: true,
11860
+ [`${classPrefix2}__list__item__name--highcolor`]: currentData.id === subitem.id && currentKey === item[floorKey]
11977
11861
  }),
11978
- onClick: () => handleClickItem(item[acceptKey], subitem),
11862
+ onClick: () => handleClickItem(item[floorKey], subitem),
11979
11863
  children: children ? /* @__PURE__ */ jsx(Fragment, {
11980
11864
  children: /* @__PURE__ */ jsx(elevatorContext.Provider, {
11981
11865
  value: subitem,
@@ -11988,27 +11872,29 @@ const Elevator = (props) => {
11988
11872
  }, idx);
11989
11873
  })
11990
11874
  })
11991
- }), indexList.length && scrollStart ? /* @__PURE__ */ jsx("div", {
11992
- className: b2("code--current", {
11993
- current: true
11875
+ }), list.length && scrollStart ? /* @__PURE__ */ jsx("div", {
11876
+ className: classNames({
11877
+ [`${classPrefix2}__code--current`]: true,
11878
+ [`${classPrefix2}__code--current--current`]: true
11994
11879
  }),
11995
- children: indexList[codeIndex][acceptKey]
11880
+ children: list[codeIndex][floorKey]
11996
11881
  }) : null, /* @__PURE__ */ jsx("div", {
11997
- className: b2("bars"),
11882
+ className: `${classPrefix2}__bars`,
11998
11883
  children: /* @__PURE__ */ jsx(animated.div, {
11999
- className: b2("bars__inner"),
11884
+ className: `${classPrefix2}__bars__inner`,
12000
11885
  ...bind(),
12001
11886
  style: {
12002
11887
  touchAction: "pan-y"
12003
11888
  },
12004
- children: indexList.map((item, index) => {
11889
+ children: list.map((item, index) => {
12005
11890
  return /* @__PURE__ */ jsx("div", {
12006
- className: b2("bars__inner__item", {
12007
- active: item[acceptKey] === indexList[currentIndex][acceptKey]
11891
+ className: classNames({
11892
+ [`${classPrefix2}__bars__inner__item`]: true,
11893
+ [`${classPrefix2}__bars__inner__item--active`]: item[floorKey] === list[currentIndex][floorKey]
12008
11894
  }),
12009
11895
  "data-index": index,
12010
- onClick: () => handleClickIndex(item[acceptKey]),
12011
- children: item[acceptKey]
11896
+ onClick: () => handleClickIndex(item[floorKey]),
11897
+ children: item[floorKey]
12012
11898
  }, index);
12013
11899
  })
12014
11900
  })
@@ -12114,7 +12000,7 @@ const defaultProps$1c = {
12114
12000
  current: 1,
12115
12001
  direction: "horizontal"
12116
12002
  };
12117
- const classPrefix$1 = `nut-indicator`;
12003
+ const classPrefix$2 = `nut-indicator`;
12118
12004
  const Indicator = (props) => {
12119
12005
  const {
12120
12006
  total,
@@ -12128,17 +12014,17 @@ const Indicator = (props) => {
12128
12014
  ...props
12129
12015
  };
12130
12016
  const classes = classNames({
12131
- [`${classPrefix$1}__vertical`]: direction === "vertical"
12017
+ [`${classPrefix$2}__vertical`]: direction === "vertical"
12132
12018
  });
12133
12019
  const renderElement = () => {
12134
12020
  const childs = [];
12135
12021
  for (let item = 1; item <= total; item++) {
12136
12022
  childs.push(item === current ? /* @__PURE__ */ jsx(Fragment, {
12137
12023
  children: children || /* @__PURE__ */ jsx("div", {
12138
- className: `${classPrefix$1}__dot ${classPrefix$1}__active`
12024
+ className: `${classPrefix$2}__dot ${classPrefix$2}__active`
12139
12025
  }, item)
12140
12026
  }) : /* @__PURE__ */ jsx("div", {
12141
- className: `${classPrefix$1}__dot`
12027
+ className: `${classPrefix$2}__dot`
12142
12028
  }, item));
12143
12029
  }
12144
12030
  return childs;
@@ -12153,21 +12039,19 @@ Indicator.defaultProps = defaultProps$1c;
12153
12039
  Indicator.displayName = "NutIndicator";
12154
12040
  const defaultProps$1b = {
12155
12041
  ...ComponentDefaults,
12156
- className: "",
12157
- style: {},
12158
12042
  activeColor: "",
12159
- closeOnClickOverlay: true,
12043
+ closeOnOverlayClick: true,
12160
12044
  scrollFixed: false,
12161
12045
  lockScroll: true,
12162
- titleIcon: null
12046
+ icon: null
12163
12047
  };
12164
12048
  const Menu = (props) => {
12165
12049
  const {
12166
12050
  className,
12167
- titleIcon,
12051
+ icon,
12168
12052
  scrollFixed,
12169
12053
  lockScroll,
12170
- closeOnClickOverlay,
12054
+ closeOnOverlayClick,
12171
12055
  children,
12172
12056
  activeColor,
12173
12057
  ...rest
@@ -12175,7 +12059,7 @@ const Menu = (props) => {
12175
12059
  ...defaultProps$1b,
12176
12060
  ...props
12177
12061
  };
12178
- const parentRef = useRef(null);
12062
+ const menuRef = useRef(null);
12179
12063
  const [isScrollFixed, setIsScrollFixed] = useState(false);
12180
12064
  const getScrollTop = (el) => {
12181
12065
  return Math.max(0, "scrollTop" in el ? el.scrollTop : el.pageYOffset);
@@ -12194,99 +12078,101 @@ const Menu = (props) => {
12194
12078
  }
12195
12079
  return () => window.removeEventListener("scroll", onScroll);
12196
12080
  }, []);
12197
- const [itemShow, setItemShow] = useState([]);
12198
- const [itemTitle, setItemTitle] = useState([]);
12199
- const toggleItemShow = (index) => {
12200
- itemShow[index] = !itemShow[index];
12201
- const temp = itemShow.map((i, idx) => idx === index ? i : false);
12202
- setItemShow([...temp]);
12081
+ const [showMenuItem, setShowMenuItem] = useState([]);
12082
+ const [menuItemTitle, setMenuItemTitle] = useState([]);
12083
+ const toggleMenuItem = (index) => {
12084
+ showMenuItem[index] = !showMenuItem[index];
12085
+ const temp = showMenuItem.map((i, idx) => idx === index ? i : false);
12086
+ setShowMenuItem([...temp]);
12203
12087
  };
12204
- const hideItemShow = (index) => {
12205
- itemShow[index] = false;
12206
- setItemShow([...itemShow]);
12088
+ const hideMenuItem = (index) => {
12089
+ showMenuItem[index] = false;
12090
+ setShowMenuItem([...showMenuItem]);
12207
12091
  };
12208
12092
  const updateTitle = (text, index) => {
12209
- itemTitle[index] = text;
12210
- setItemTitle([...itemTitle]);
12211
- };
12212
- const parent = () => {
12213
- return parentRef;
12093
+ menuItemTitle[index] = text;
12094
+ setMenuItemTitle([...menuItemTitle]);
12214
12095
  };
12215
12096
  const cloneChildren = () => {
12216
12097
  return React__default.Children.map(children, (child, index) => {
12217
12098
  return React__default.cloneElement(child, {
12218
- showPopup: itemShow[index],
12219
- orderKey: index,
12099
+ show: showMenuItem[index],
12100
+ index,
12220
12101
  activeColor,
12221
12102
  parent: {
12222
- closeOnClickOverlay,
12103
+ closeOnOverlayClick,
12223
12104
  lockScroll,
12224
- toggleItemShow,
12105
+ toggleMenuItem,
12225
12106
  updateTitle,
12226
- hideItemShow,
12227
- parent
12107
+ hideMenuItem,
12108
+ menuRef
12228
12109
  }
12229
12110
  });
12230
12111
  });
12231
12112
  };
12113
+ const menuTitle = () => {
12114
+ return React__default.Children.map(children, (child, index) => {
12115
+ if (React__default.isValidElement(child)) {
12116
+ const {
12117
+ title,
12118
+ options: options2,
12119
+ value,
12120
+ disabled,
12121
+ direction
12122
+ } = child.props;
12123
+ const selected = options2 == null ? void 0 : options2.filter((option) => option.value === value);
12124
+ const finallyTitle = () => {
12125
+ if (title)
12126
+ return title;
12127
+ if (menuItemTitle && menuItemTitle[index])
12128
+ return menuItemTitle[index];
12129
+ if (selected && selected.length && selected[0].text)
12130
+ return selected[0].text;
12131
+ return "";
12132
+ };
12133
+ return /* @__PURE__ */ jsx("div", {
12134
+ className: classNames("nut-menu__item ", className, {
12135
+ active: showMenuItem[index],
12136
+ disabled
12137
+ }),
12138
+ style: {
12139
+ color: showMenuItem[index] ? activeColor : ""
12140
+ },
12141
+ onClick: () => {
12142
+ !disabled && toggleMenuItem(index);
12143
+ },
12144
+ children: /* @__PURE__ */ jsxs("div", {
12145
+ className: classNames("nut-menu__title ", {
12146
+ active: showMenuItem[index],
12147
+ disabled
12148
+ }),
12149
+ children: [/* @__PURE__ */ jsx("div", {
12150
+ className: "nut-menu__title-text",
12151
+ children: finallyTitle()
12152
+ }), icon || (direction === "up" ? /* @__PURE__ */ jsx(x$g, {
12153
+ className: "nut-menu__title-icon"
12154
+ }) : /* @__PURE__ */ jsx(y$8, {
12155
+ className: "nut-menu__title-icon"
12156
+ }))]
12157
+ })
12158
+ }, index);
12159
+ }
12160
+ return null;
12161
+ });
12162
+ };
12232
12163
  return /* @__PURE__ */ jsx("div", {
12233
- className: `nut-menu ${className} ${isScrollFixed ? "scroll-fixed" : ""}`,
12234
12164
  ...rest,
12235
- ref: parentRef,
12165
+ className: classNames(`nut-menu`, className, {
12166
+ "scroll-fixed": isScrollFixed
12167
+ }),
12168
+ ref: menuRef,
12236
12169
  children: /* @__PURE__ */ jsxs("div", {
12237
12170
  className: "nut-menu-relative",
12238
12171
  children: [/* @__PURE__ */ jsx("div", {
12239
- className: `nut-menu__bar ${itemShow.includes(true) ? "opened" : ""} ${className}`,
12240
- children: React__default.Children.toArray(children).map((child, index) => {
12241
- if (!child)
12242
- return null;
12243
- const {
12244
- disabled,
12245
- title,
12246
- value,
12247
- direction,
12248
- options: options2,
12249
- className: className2
12250
- } = child.props;
12251
- const currentTitle = options2 == null ? void 0 : options2.filter((option) => option.value === value);
12252
- function finallyTitle() {
12253
- if (title)
12254
- return title;
12255
- if (itemTitle && itemTitle[index])
12256
- return itemTitle[index];
12257
- if (currentTitle && currentTitle[0] && currentTitle[0].text)
12258
- return currentTitle[0].text;
12259
- return "";
12260
- }
12261
- return /* @__PURE__ */ jsx("div", {
12262
- className: `nut-menu__item ${classNames({
12263
- active: itemShow[index],
12264
- disabled
12265
- })} ${className2}`,
12266
- style: {
12267
- color: itemShow[index] ? activeColor : ""
12268
- },
12269
- onClick: () => {
12270
- !disabled && toggleItemShow(index);
12271
- },
12272
- children: /* @__PURE__ */ jsxs("div", {
12273
- className: `nut-menu__title ${classNames({
12274
- active: itemShow[index],
12275
- disabled
12276
- })}`,
12277
- children: [/* @__PURE__ */ jsx("div", {
12278
- className: "nut-menu__title-text",
12279
- children: finallyTitle()
12280
- }), titleIcon || /* @__PURE__ */ jsx(Fragment, {
12281
- children: direction === "up" ? /* @__PURE__ */ jsx(x$g, {
12282
- className: "nut-menu__title-icon"
12283
- }) : /* @__PURE__ */ jsx(y$8, {
12284
- className: "nut-menu__title-icon"
12285
- })
12286
- })]
12287
- })
12288
- }, index);
12289
- })
12172
+ className: classNames("nut-menu__bar", {
12173
+ opened: showMenuItem.includes(true)
12174
+ }),
12175
+ children: menuTitle()
12290
12176
  }), cloneChildren()]
12291
12177
  })
12292
12178
  });
@@ -12295,52 +12181,47 @@ Menu.defaultProps = defaultProps$1b;
12295
12181
  Menu.displayName = "NutMenu";
12296
12182
  const defaultProps$1a = {
12297
12183
  ...ComponentDefaults,
12298
- className: "",
12299
- style: {},
12300
12184
  columns: 1,
12301
12185
  direction: "down",
12302
- optionsIcon: null,
12186
+ icon: null,
12187
+ closeOnClickAway: false,
12303
12188
  activeTitleClass: "",
12304
12189
  inactiveTitleClass: "",
12305
12190
  onChange: (value) => void 0
12306
12191
  };
12307
12192
  const MenuItem = forwardRef((props, ref) => {
12308
- const mergedProps = {
12309
- ...defaultProps$1a,
12310
- ...props
12311
- };
12312
12193
  const {
12194
+ className,
12313
12195
  style,
12314
12196
  options: options2,
12315
12197
  value,
12316
12198
  columns,
12317
12199
  title,
12318
- optionsIcon,
12200
+ icon,
12319
12201
  direction,
12320
12202
  onChange,
12321
12203
  activeTitleClass,
12322
12204
  inactiveTitleClass,
12323
- children
12205
+ closeOnClickAway,
12206
+ children,
12207
+ activeColor,
12208
+ show,
12209
+ parent,
12210
+ index
12324
12211
  } = {
12325
12212
  ...defaultProps$1a,
12326
12213
  ...props
12327
12214
  };
12328
- const {
12329
- activeColor,
12330
- showPopup,
12331
- parent,
12332
- orderKey
12333
- } = mergedProps;
12334
- const [_showPopup, setShowPopup] = useState(showPopup);
12215
+ const [_showPopup, setShowPopup] = useState(show);
12335
12216
  const [_value, setValue] = useState(value);
12336
12217
  useEffect(() => {
12337
- setShowPopup(showPopup);
12338
- }, [showPopup]);
12218
+ setShowPopup(show);
12219
+ }, [show]);
12339
12220
  useEffect(() => {
12340
12221
  getParentOffset();
12341
12222
  }, [_showPopup]);
12342
12223
  useImperativeHandle(ref, () => ({
12343
- toggle: parent.toggleItemShow
12224
+ toggle: parent.toggleMenuItem
12344
12225
  }));
12345
12226
  const getIconCName = (optionVal, value2) => {
12346
12227
  return classNames({
@@ -12350,11 +12231,11 @@ const MenuItem = forwardRef((props, ref) => {
12350
12231
  };
12351
12232
  const setTitle = (text) => {
12352
12233
  if (!title) {
12353
- parent.updateTitle(text, orderKey);
12234
+ parent.updateTitle(text, index);
12354
12235
  }
12355
12236
  };
12356
12237
  const handleClick2 = (item) => {
12357
- parent.toggleItemShow(orderKey);
12238
+ parent.toggleMenuItem(index);
12358
12239
  setTitle(item.text);
12359
12240
  setValue(item.value);
12360
12241
  onChange && onChange(item);
@@ -12365,7 +12246,7 @@ const MenuItem = forwardRef((props, ref) => {
12365
12246
  });
12366
12247
  const getParentOffset = () => {
12367
12248
  setTimeout(() => {
12368
- const p = parent.parent().current;
12249
+ const p = parent.menuRef.current;
12369
12250
  const rect = p.getBoundingClientRect();
12370
12251
  setPosition({
12371
12252
  height: rect.height,
@@ -12392,37 +12273,40 @@ const MenuItem = forwardRef((props, ref) => {
12392
12273
  if (direction === "down") {
12393
12274
  return {
12394
12275
  height: `${position.top + position.height}px`,
12395
- ...isShow(),
12396
- ...style
12276
+ top: 0,
12277
+ ...isShow()
12397
12278
  };
12398
12279
  }
12399
12280
  return {
12400
12281
  height: `${window.innerHeight - position.top}px`,
12282
+ bottom: `0px`,
12401
12283
  top: "auto",
12402
- ...isShow(),
12403
- ...style
12284
+ ...isShow()
12404
12285
  };
12405
12286
  };
12406
12287
  return /* @__PURE__ */ jsxs(Fragment, {
12407
- children: [/* @__PURE__ */ jsx("div", {
12288
+ children: [closeOnClickAway ? /* @__PURE__ */ jsx("div", {
12408
12289
  className: `placeholder-element ${classNames({
12409
12290
  up: direction === "up"
12410
12291
  })}`,
12411
12292
  style: placeholderStyle(),
12412
- onClick: () => parent.toggleItemShow(orderKey)
12413
- }), /* @__PURE__ */ jsx(Overlay, {
12293
+ onClick: () => parent.toggleMenuItem(index)
12294
+ }) : null, /* @__PURE__ */ jsx(Overlay, {
12414
12295
  className: "nut-menu__overlay",
12415
12296
  style: getPosition(),
12416
12297
  lockScroll: parent.lockScroll,
12417
12298
  visible: _showPopup,
12418
- closeOnOverlayClick: parent.closeOnClickOverlay,
12299
+ closeOnOverlayClick: parent.closeOnOverlayClick,
12419
12300
  onClick: () => {
12420
- parent.closeOnClickOverlay && parent.toggleItemShow(orderKey);
12301
+ parent.closeOnOverlayClick && parent.toggleMenuItem(index);
12421
12302
  }
12422
12303
  }), /* @__PURE__ */ jsx("div", {
12423
- className: direction === "down" ? "nut-menu-item__wrap" : "nut-menu-item__wrap-up",
12304
+ className: classNames(className, {
12305
+ "nut-menu-item__wrap": direction === "down",
12306
+ "nut-menu-item__wrap-up": direction !== "down"
12307
+ }),
12424
12308
  style: {
12425
- // ...getPosition(),
12309
+ ...style,
12426
12310
  ...isShow()
12427
12311
  },
12428
12312
  children: /* @__PURE__ */ jsx(CSSTransition$1, {
@@ -12431,7 +12315,7 @@ const MenuItem = forwardRef((props, ref) => {
12431
12315
  classNames: direction === "down" ? "menu-item" : "menu-item-up",
12432
12316
  children: /* @__PURE__ */ jsxs("div", {
12433
12317
  className: "nut-menu-item__content",
12434
- children: [options2 == null ? void 0 : options2.map((item, index) => {
12318
+ children: [options2 == null ? void 0 : options2.map((item, index2) => {
12435
12319
  return /* @__PURE__ */ jsxs("div", {
12436
12320
  className: `nut-menu-item__option ${classNames({
12437
12321
  active: item.value === _value
@@ -12443,7 +12327,7 @@ const MenuItem = forwardRef((props, ref) => {
12443
12327
  handleClick2(item);
12444
12328
  },
12445
12329
  children: [item.value === _value ? /* @__PURE__ */ jsx("i", {
12446
- children: optionsIcon || /* @__PURE__ */ jsx(x$e, {
12330
+ children: icon || /* @__PURE__ */ jsx(x$e, {
12447
12331
  color: activeColor,
12448
12332
  className: getIconCName(item.value, value)
12449
12333
  })
@@ -12465,48 +12349,32 @@ MenuItem.defaultProps = defaultProps$1a;
12465
12349
  MenuItem.displayName = "NutMenuItem";
12466
12350
  const defaultProps$19 = {
12467
12351
  ...ComponentDefaults,
12468
- title: "",
12469
- description: "",
12470
- leftShow: true,
12471
- className: "",
12472
- leftText: "",
12352
+ left: "",
12353
+ right: "",
12354
+ back: "",
12473
12355
  fixed: false,
12474
12356
  safeAreaInsetTop: false,
12475
- border: false,
12476
12357
  placeholder: false,
12477
- zIndex: 10,
12478
- style: {}
12358
+ zIndex: 10
12479
12359
  };
12480
12360
  const NavBar = (props) => {
12481
12361
  const {
12482
- description,
12483
- title,
12484
- leftShow,
12362
+ right,
12363
+ left,
12485
12364
  className,
12486
12365
  style,
12487
- leftText,
12366
+ back,
12488
12367
  fixed,
12489
12368
  safeAreaInsetTop,
12490
- border,
12491
12369
  placeholder,
12492
12370
  zIndex,
12493
- onClickTitle,
12494
- onClickIcon,
12495
- onClickBack,
12496
- onClickRight
12371
+ onClickBack
12497
12372
  } = {
12498
12373
  ...defaultProps$19,
12499
12374
  ...props
12500
12375
  };
12501
- const b2 = cn("navbar");
12376
+ const classPrefix2 = "nut-navbar";
12502
12377
  const children = Array.isArray(props.children) ? props.children : [props.children];
12503
- const slot = children.reduce((slot2, item) => {
12504
- const data = slot2;
12505
- if (item && item.props) {
12506
- data[item.props.slot] = item.props.children;
12507
- }
12508
- return data;
12509
- }, {});
12510
12378
  const styles = () => {
12511
12379
  return {
12512
12380
  ...style,
@@ -12515,38 +12383,24 @@ const NavBar = (props) => {
12515
12383
  };
12516
12384
  const renderLeft = () => {
12517
12385
  return /* @__PURE__ */ jsxs("div", {
12518
- className: `${b2("left")}`,
12519
- onClick: (e) => onClickBack(e),
12520
- children: [leftShow && /* @__PURE__ */ jsx(y$5, {
12521
- name: "left",
12522
- color: "#979797"
12523
- }), leftText && /* @__PURE__ */ jsx("div", {
12524
- className: `${b2("text")}`,
12525
- children: leftText
12526
- }), slot.left]
12386
+ className: `${classPrefix2}__left`,
12387
+ children: [back && /* @__PURE__ */ jsx("div", {
12388
+ className: `${classPrefix2}__left__back`,
12389
+ onClick: (e) => onClickBack(e),
12390
+ children: back
12391
+ }), left]
12527
12392
  });
12528
12393
  };
12529
12394
  const renderContent = () => {
12530
- return /* @__PURE__ */ jsxs("div", {
12531
- className: `${b2("title")}`,
12532
- children: [title && /* @__PURE__ */ jsx("div", {
12533
- className: "title",
12534
- onClick: (e) => onClickTitle(e),
12535
- children: title
12536
- }), slot.titleIcon && /* @__PURE__ */ jsx("div", {
12537
- onClick: (e) => onClickIcon(e),
12538
- children: slot.titleIcon
12539
- }), slot.content]
12395
+ return /* @__PURE__ */ jsx("div", {
12396
+ className: `${classPrefix2}__title`,
12397
+ children
12540
12398
  });
12541
12399
  };
12542
12400
  const renderRight = () => {
12543
- return /* @__PURE__ */ jsxs("div", {
12544
- className: `${b2("right")}`,
12545
- onClick: (e) => onClickRight(e),
12546
- children: [description && /* @__PURE__ */ jsx("div", {
12547
- className: `${b2("text")}`,
12548
- children: description
12549
- }), slot.right]
12401
+ return /* @__PURE__ */ jsx("div", {
12402
+ className: `${classPrefix2}__right`,
12403
+ children: right
12550
12404
  });
12551
12405
  };
12552
12406
  const renderWrapper = () => {
@@ -12557,14 +12411,13 @@ const NavBar = (props) => {
12557
12411
  });
12558
12412
  };
12559
12413
  const classes = classNames({
12560
- [`nut-navbar--border`]: border,
12561
- [`nut-navbar--fixed`]: fixed,
12562
- [`nut-navbar--safe-area-inset-top`]: safeAreaInsetTop
12414
+ [`${classPrefix2}--fixed`]: fixed,
12415
+ [`${classPrefix2}--safe-area-inset-top`]: safeAreaInsetTop
12563
12416
  });
12564
- const cls = classNames(b2(""), classes, className);
12417
+ const cls = classNames(classPrefix2, classes, className);
12565
12418
  return /* @__PURE__ */ jsx(Fragment, {
12566
12419
  children: fixed && placeholder ? /* @__PURE__ */ jsx("div", {
12567
- className: `${b2("")}--placeholder`,
12420
+ className: `${classPrefix2}--placeholder`,
12568
12421
  children: renderWrapper()
12569
12422
  }) : renderWrapper()
12570
12423
  });
@@ -12877,6 +12730,126 @@ const SubSideNavBar = (props) => {
12877
12730
  })]
12878
12731
  });
12879
12732
  };
12733
+ var classnameExports = {};
12734
+ var classname = {
12735
+ get exports() {
12736
+ return classnameExports;
12737
+ },
12738
+ set exports(v) {
12739
+ classnameExports = v;
12740
+ }
12741
+ };
12742
+ var classname_production_min = {};
12743
+ var hasRequiredClassname_production_min;
12744
+ function requireClassname_production_min() {
12745
+ if (hasRequiredClassname_production_min)
12746
+ return classname_production_min;
12747
+ hasRequiredClassname_production_min = 1;
12748
+ function r(r2) {
12749
+ function t2(t3, i, a2, o) {
12750
+ var f = i ? e + t3 + r2.e + i : e + t3, v = f;
12751
+ if (a2) {
12752
+ var s = " " + v + r2.m;
12753
+ for (var u in a2)
12754
+ if (a2.hasOwnProperty(u)) {
12755
+ var p = a2[u];
12756
+ true === p ? v += s + u : p && (v += s + u + n + p);
12757
+ }
12758
+ }
12759
+ if (void 0 !== o)
12760
+ for (var y2 = 0, c = (o = Array.isArray(o) ? o : [o]).length; y2 < c; y2++) {
12761
+ var l2 = o[y2];
12762
+ if (l2 && "string" == typeof l2.valueOf())
12763
+ for (var g = l2.valueOf().split(" "), d = 0; d < g.length; d++) {
12764
+ var h = g[d];
12765
+ h !== f && (v += " " + h);
12766
+ }
12767
+ }
12768
+ return v;
12769
+ }
12770
+ var e = r2.n || "", n = r2.v || r2.m;
12771
+ return function(r3, e2) {
12772
+ return function(n2, i, a2) {
12773
+ 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);
12774
+ };
12775
+ };
12776
+ }
12777
+ Object.defineProperty(classname_production_min, "__esModule", { value: true });
12778
+ var t = r({ e: "-", m: "_" });
12779
+ classname_production_min.cn = t, classname_production_min.withNaming = r;
12780
+ return classname_production_min;
12781
+ }
12782
+ var classname_development = {};
12783
+ var hasRequiredClassname_development;
12784
+ function requireClassname_development() {
12785
+ if (hasRequiredClassname_development)
12786
+ return classname_development;
12787
+ hasRequiredClassname_development = 1;
12788
+ Object.defineProperty(classname_development, "__esModule", { value: true });
12789
+ function withNaming(preset) {
12790
+ var nameSpace = preset.n || "";
12791
+ var modValueDelimiter = preset.v || preset.m;
12792
+ function stringify(b, e, m, mix) {
12793
+ var entityName = e ? nameSpace + b + preset.e + e : nameSpace + b;
12794
+ var className = entityName;
12795
+ if (m) {
12796
+ var modPrefix = " " + className + preset.m;
12797
+ for (var k2 in m) {
12798
+ if (m.hasOwnProperty(k2)) {
12799
+ var modVal = m[k2];
12800
+ if (modVal === true) {
12801
+ className += modPrefix + k2;
12802
+ } else if (modVal) {
12803
+ className += modPrefix + k2 + modValueDelimiter + modVal;
12804
+ }
12805
+ }
12806
+ }
12807
+ }
12808
+ if (mix !== void 0) {
12809
+ mix = Array.isArray(mix) ? mix : [mix];
12810
+ for (var i = 0, len = mix.length; i < len; i++) {
12811
+ var value = mix[i];
12812
+ if (!value || typeof value.valueOf() !== "string")
12813
+ continue;
12814
+ var mixes = value.valueOf().split(" ");
12815
+ for (var j = 0; j < mixes.length; j++) {
12816
+ var val = mixes[j];
12817
+ if (val !== entityName) {
12818
+ className += " " + val;
12819
+ }
12820
+ }
12821
+ }
12822
+ }
12823
+ return className;
12824
+ }
12825
+ return function cnGenerator(b, e) {
12826
+ return function(elemOrMods, elemModsOrBlockMix, elemMix) {
12827
+ if (typeof elemOrMods === "string") {
12828
+ if (typeof elemModsOrBlockMix === "string" || Array.isArray(elemModsOrBlockMix)) {
12829
+ return stringify(b, elemOrMods, void 0, elemModsOrBlockMix);
12830
+ }
12831
+ return stringify(b, elemOrMods, elemModsOrBlockMix, elemMix);
12832
+ }
12833
+ return stringify(b, e, elemOrMods, elemModsOrBlockMix);
12834
+ };
12835
+ };
12836
+ }
12837
+ var cn2 = withNaming({
12838
+ e: "-",
12839
+ m: "_"
12840
+ });
12841
+ classname_development.cn = cn2;
12842
+ classname_development.withNaming = withNaming;
12843
+ return classname_development;
12844
+ }
12845
+ (function(module) {
12846
+ if (process.env.NODE_ENV === "production") {
12847
+ module.exports = requireClassname_production_min();
12848
+ } else {
12849
+ module.exports = requireClassname_development();
12850
+ }
12851
+ })(classname);
12852
+ const cn = classnameExports.withNaming({ n: "nut-", e: "__", m: "--", v: "-" });
12880
12853
  const defaultProps$15 = {
12881
12854
  visible: 0,
12882
12855
  bottom: false,
@@ -12906,7 +12879,7 @@ const Tabbar = (props) => {
12906
12879
  ...defaultProps$15,
12907
12880
  ...props
12908
12881
  };
12909
- const b2 = cn("tabbar");
12882
+ const b = cn("tabbar");
12910
12883
  const [selectIndex, setSelectIndex] = useState(activeVisible || visible);
12911
12884
  const handleClick2 = (idx) => {
12912
12885
  if (!("activeVisible" in props)) {
@@ -12919,7 +12892,7 @@ const Tabbar = (props) => {
12919
12892
  }
12920
12893
  }, [activeVisible]);
12921
12894
  return /* @__PURE__ */ jsx("div", {
12922
- className: [`${b2()}`, bottom ? `${b2("bottom")}` : "", safeAreaInsetBottom ? `${b2("bottom")} ${b2("safebottom")}` : "", className].join(" "),
12895
+ className: [`${b()}`, bottom ? `${b("bottom")}` : "", safeAreaInsetBottom ? `${b("bottom")} ${b("safebottom")}` : "", className].join(" "),
12923
12896
  style,
12924
12897
  children: React__default.Children.map(children, (child, idx) => {
12925
12898
  if (!React__default.isValidElement(child)) {
@@ -12976,7 +12949,7 @@ const TabbarItem = (props) => {
12976
12949
  ...defaultProps$14,
12977
12950
  ...props
12978
12951
  };
12979
- const b2 = cn("tabbar-item");
12952
+ const b = cn("tabbar-item");
12980
12953
  const bIcon = cn("tabbar-item__icon-box");
12981
12954
  useEffect(() => {
12982
12955
  if (active && href) {
@@ -12984,7 +12957,7 @@ const TabbarItem = (props) => {
12984
12957
  }
12985
12958
  }, [active, href]);
12986
12959
  return /* @__PURE__ */ jsxs("div", {
12987
- className: `${b2({
12960
+ className: `${b({
12988
12961
  active
12989
12962
  })} ${className}`,
12990
12963
  style: {
@@ -13035,10 +13008,10 @@ const TabPane = (props) => {
13035
13008
  ...defaultProps$13,
13036
13009
  ...props
13037
13010
  };
13038
- const b2 = cn("tabpane");
13011
+ const b = cn("tabpane");
13039
13012
  const classes = classNames({
13040
13013
  active: !disabled && paneKey === activeKey
13041
- }, b2(""), autoHeightClassName, className);
13014
+ }, b(""), autoHeightClassName, className);
13042
13015
  return /* @__PURE__ */ jsx("div", {
13043
13016
  className: classes,
13044
13017
  children: !disabled && children
@@ -13123,13 +13096,13 @@ const Tabs = (props) => {
13123
13096
  });
13124
13097
  setCurrentItem(titles.current[currentIndex]);
13125
13098
  }, [children]);
13126
- const b2 = cn("tabs");
13127
- const classes = classNames(direction, b2(""), className);
13099
+ const b = cn("tabs");
13100
+ const classes = classNames(direction, b(""), className);
13128
13101
  const classesTitle = classNames({
13129
13102
  [type4]: type4,
13130
13103
  scrollable: titleScroll,
13131
13104
  [size]: size
13132
- }, `${b2("")}__titles`);
13105
+ }, `${b("")}__titles`);
13133
13106
  const titleStyle = {
13134
13107
  marginLeft: pxCheck(titleGutter),
13135
13108
  marginRight: pxCheck(titleGutter)
@@ -13168,12 +13141,12 @@ const Tabs = (props) => {
13168
13141
  active: !item.disabled && String(item.paneKey) === String(value),
13169
13142
  disabled: item.disabled,
13170
13143
  "nut-tabs__titles-item-left-align": leftAlign
13171
- }, `${b2("")}__titles-item`),
13144
+ }, `${b("")}__titles-item`),
13172
13145
  children: [type4 === "line" && /* @__PURE__ */ jsx("div", {
13173
- className: `${b2("")}__titles-item__line`,
13146
+ className: `${b("")}__titles-item__line`,
13174
13147
  style: tabsActiveStyle
13175
13148
  }), type4 === "smile" && /* @__PURE__ */ jsx("div", {
13176
- className: `${b2("")}__titles-item__smile`,
13149
+ className: `${b("")}__titles-item__smile`,
13177
13150
  style: tabsActiveStyle,
13178
13151
  children: /* @__PURE__ */ jsx(x$7, {
13179
13152
  color
@@ -13181,15 +13154,15 @@ const Tabs = (props) => {
13181
13154
  }), /* @__PURE__ */ jsx("div", {
13182
13155
  className: classNames({
13183
13156
  ellipsis: ellipsis && !titleScroll && direction === "horizontal"
13184
- }, `${b2("")}__titles-item__text`),
13157
+ }, `${b("")}__titles-item__text`),
13185
13158
  children: item.title
13186
13159
  })]
13187
13160
  }, item.paneKey);
13188
13161
  })
13189
13162
  }), /* @__PURE__ */ jsx("div", {
13190
- className: `${b2("")}__content__wrap`,
13163
+ className: `${b("")}__content__wrap`,
13191
13164
  children: /* @__PURE__ */ jsx("div", {
13192
- className: `${b2("")}__content`,
13165
+ className: `${b("")}__content`,
13193
13166
  style: contentStyle,
13194
13167
  children: React__default.Children.map(children, (child, idx) => {
13195
13168
  var _a2;
@@ -13439,14 +13412,14 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
13439
13412
  const monthsPanel = useRef(null);
13440
13413
  const viewArea = useRef(null);
13441
13414
  let viewHeight = 0;
13442
- const b2 = cn("calendar");
13415
+ const b = cn("calendar");
13443
13416
  const classes = classNames({
13444
- [`${b2("")}-tile`]: !poppable,
13445
- [`${b2("")}-nofooter`]: !!isAutoBackFill
13446
- }, b2(""));
13417
+ [`${b("")}-tile`]: !poppable,
13418
+ [`${b("")}-nofooter`]: !!isAutoBackFill
13419
+ }, b(""));
13447
13420
  const headerClasses = classNames({
13448
- [`${b2("")}-header`]: true,
13449
- [`${b2("")}-header-tile`]: !poppable
13421
+ [`${b("")}-header`]: true,
13422
+ [`${b("")}-header-tile`]: !poppable
13450
13423
  });
13451
13424
  const monthitemclasses = classNames({
13452
13425
  "calendar-month-item": true,
@@ -14158,13 +14131,13 @@ const InternalCascaderItem = (props, ref) => {
14158
14131
  ...defaultProps$$,
14159
14132
  ...props
14160
14133
  };
14161
- const b2 = cn("cascader-item");
14134
+ const b = cn("cascader-item");
14162
14135
  const classes = classNames({
14163
14136
  active: checked,
14164
14137
  disabled: data.disabled
14165
- }, b2(""));
14138
+ }, b(""));
14166
14139
  const classesTitle = classNames({
14167
- [`${b2("")}__title`]: true
14140
+ [`${b("")}__title`]: true
14168
14141
  });
14169
14142
  const renderIcon = () => {
14170
14143
  if (checked) {
@@ -14172,7 +14145,7 @@ const InternalCascaderItem = (props, ref) => {
14172
14145
  return checkedIcon;
14173
14146
  }
14174
14147
  return /* @__PURE__ */ jsx(x$c, {
14175
- className: `${checked ? b2("icon-check") : ""}`
14148
+ className: `${checked ? b("icon-check") : ""}`
14176
14149
  });
14177
14150
  }
14178
14151
  return null;
@@ -14262,7 +14235,7 @@ const convertListToOptions = (list, options2) => {
14262
14235
  if (sortKey) {
14263
14236
  Object.keys(map).forEach((i) => {
14264
14237
  if (map[i].length > 1) {
14265
- map[i].sort((a2, b2) => a2[sortKey] - b2[sortKey]);
14238
+ map[i].sort((a2, b) => a2[sortKey] - b[sortKey]);
14266
14239
  }
14267
14240
  });
14268
14241
  }
@@ -14414,10 +14387,10 @@ const InternalCascader = (props, ref) => {
14414
14387
  },
14415
14388
  lazyLoadMap: /* @__PURE__ */ new Map()
14416
14389
  });
14417
- const b2 = cn("cascader");
14418
- const classes = classNames(b2(""));
14390
+ const b = cn("cascader");
14391
+ const classes = classNames(b(""));
14419
14392
  const classesPane = classNames({
14420
- [`${b2("")}-pane`]: true
14393
+ [`${b("")}-pane`]: true
14421
14394
  });
14422
14395
  useEffect(() => {
14423
14396
  initData();
@@ -14585,7 +14558,7 @@ const InternalCascader = (props, ref) => {
14585
14558
  className: `${classes} ${className}`,
14586
14559
  style,
14587
14560
  children: [poppable && /* @__PURE__ */ jsx("div", {
14588
- className: b2("title"),
14561
+ className: b("title"),
14589
14562
  children: title
14590
14563
  }), /* @__PURE__ */ jsx(Tabs, {
14591
14564
  value: tabvalue,
@@ -14668,7 +14641,7 @@ const CheckboxGroup = React__default.forwardRef((props, ref) => {
14668
14641
  ...defaultProps$Z,
14669
14642
  ...props
14670
14643
  };
14671
- const b2 = cn("checkboxgroup");
14644
+ const b = cn("checkboxgroup");
14672
14645
  const {
14673
14646
  className,
14674
14647
  disabled,
@@ -14743,7 +14716,7 @@ const CheckboxGroup = React__default.forwardRef((props, ref) => {
14743
14716
  }
14744
14717
  },
14745
14718
  children: /* @__PURE__ */ jsx("div", {
14746
- className: `${b2()} nut-checkboxgroup--${props.direction} ${className || ""}`,
14719
+ className: `${b()} nut-checkboxgroup--${props.direction} ${className || ""}`,
14747
14720
  ...rest,
14748
14721
  children: (options2 == null ? void 0 : options2.length) ? renderOptions() : children
14749
14722
  })
@@ -14771,7 +14744,7 @@ const Checkbox = (props) => {
14771
14744
  ...defaultProps$Y,
14772
14745
  ...props
14773
14746
  };
14774
- const b2 = cn("checkbox");
14747
+ const b = cn("checkbox");
14775
14748
  const {
14776
14749
  icon,
14777
14750
  iconSize,
@@ -14856,7 +14829,7 @@ const Checkbox = (props) => {
14856
14829
  };
14857
14830
  const renderLabel = () => {
14858
14831
  return /* @__PURE__ */ jsx("span", {
14859
- className: `${b2("label", {
14832
+ className: `${b("label", {
14860
14833
  disabled: innerDisabled
14861
14834
  })} `,
14862
14835
  children: children || label
@@ -14874,7 +14847,7 @@ const Checkbox = (props) => {
14874
14847
  setChecked(latestChecked);
14875
14848
  };
14876
14849
  return /* @__PURE__ */ jsxs("div", {
14877
- className: `${b2({
14850
+ className: `${b({
14878
14851
  reverse: textPosition === "left"
14879
14852
  })} ${className || ""}`,
14880
14853
  ...rest,
@@ -15192,7 +15165,7 @@ const InternalPicker = (props, ref) => {
15192
15165
  const pickerRef = useRef(null);
15193
15166
  const [refs, setRefs] = useRefs();
15194
15167
  const [columnsList, setColumnsList] = useState([]);
15195
- const b2 = cn("picker");
15168
+ const b = cn("picker");
15196
15169
  const isConfirmEvent = useRef(false);
15197
15170
  useEffect(() => {
15198
15171
  if (defaultValueData && defaultValueData.length !== 0 && defaultValueData.toString() !== chooseValueData.toString()) {
@@ -15334,16 +15307,16 @@ const InternalPicker = (props, ref) => {
15334
15307
  };
15335
15308
  const renderToolbar = () => {
15336
15309
  return /* @__PURE__ */ jsxs("div", {
15337
- className: b2("control"),
15310
+ className: b("control"),
15338
15311
  children: [/* @__PURE__ */ jsx("span", {
15339
- className: b2("cancel-btn"),
15312
+ className: b("cancel-btn"),
15340
15313
  onClick: () => closeActionSheet(),
15341
15314
  children: locale.cancel
15342
15315
  }), /* @__PURE__ */ jsx("div", {
15343
- className: b2("title"),
15316
+ className: b("title"),
15344
15317
  children: title || ""
15345
15318
  }), /* @__PURE__ */ jsx("span", {
15346
- className: b2("confirm-btn"),
15319
+ className: b("confirm-btn"),
15347
15320
  onClick: confirm2,
15348
15321
  children: locale.confirm
15349
15322
  })]
@@ -15356,11 +15329,11 @@ const InternalPicker = (props, ref) => {
15356
15329
  closeActionSheet();
15357
15330
  },
15358
15331
  children: /* @__PURE__ */ jsxs("div", {
15359
- className: `${b2()} ${className || ""}`,
15332
+ className: `${b()} ${className || ""}`,
15360
15333
  style,
15361
15334
  ...rest,
15362
15335
  children: [renderToolbar(), /* @__PURE__ */ jsx("div", {
15363
- className: b2("panel"),
15336
+ className: b("panel"),
15364
15337
  ref: pickerRef,
15365
15338
  children: columnsList == null ? void 0 : columnsList.map((item, index) => {
15366
15339
  return /* @__PURE__ */ jsx(PickerSlot$1, {
@@ -16011,7 +15984,7 @@ var getUrlRegex = function() {
16011
15984
  return urlReg;
16012
15985
  }
16013
15986
  var word = "[a-fA-F\\d:]";
16014
- var b2 = function b3(options2) {
15987
+ var b = function b2(options2) {
16015
15988
  return options2 && options2.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
16016
15989
  };
16017
15990
  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}";
@@ -16021,13 +15994,13 @@ var getUrlRegex = function() {
16021
15994
  var v4exact = new RegExp("^" + v4 + "$");
16022
15995
  var v6exact = new RegExp("^" + v6 + "$");
16023
15996
  var ip = function ip2(options2) {
16024
- return options2 && options2.exact ? v46Exact : new RegExp("(?:" + b2(options2) + v4 + b2(options2) + ")|(?:" + b2(options2) + v6 + b2(options2) + ")", "g");
15997
+ return options2 && options2.exact ? v46Exact : new RegExp("(?:" + b(options2) + v4 + b(options2) + ")|(?:" + b(options2) + v6 + b(options2) + ")", "g");
16025
15998
  };
16026
15999
  ip.v4 = function(options2) {
16027
- return options2 && options2.exact ? v4exact : new RegExp("" + b2(options2) + v4 + b2(options2), "g");
16000
+ return options2 && options2.exact ? v4exact : new RegExp("" + b(options2) + v4 + b(options2), "g");
16028
16001
  };
16029
16002
  ip.v6 = function(options2) {
16030
- return options2 && options2.exact ? v6exact : new RegExp("" + b2(options2) + v6 + b2(options2), "g");
16003
+ return options2 && options2.exact ? v6exact : new RegExp("" + b(options2) + v6 + b(options2), "g");
16031
16004
  };
16032
16005
  var protocol = "(?:(?:[a-z]+:)?//)";
16033
16006
  var auth = "(?:\\S+(?::\\S*)?@)?";
@@ -17439,7 +17412,7 @@ const defaultProps$T = {
17439
17412
  digits: 0,
17440
17413
  async: false
17441
17414
  };
17442
- const classPrefix = `nut-inputnumber`;
17415
+ const classPrefix$1 = `nut-inputnumber`;
17443
17416
  const InputNumber = (props) => {
17444
17417
  const {
17445
17418
  children,
@@ -17481,8 +17454,8 @@ const InputNumber = (props) => {
17481
17454
  }
17482
17455
  }, []);
17483
17456
  const classes = classNames({
17484
- [`${classPrefix}`]: true,
17485
- [`${classPrefix}--disabled`]: disabled
17457
+ [`${classPrefix$1}`]: true,
17458
+ [`${classPrefix$1}--disabled`]: disabled
17486
17459
  }, className);
17487
17460
  const styles = {
17488
17461
  ...style
@@ -17699,7 +17672,7 @@ const NumberKeyboard = (props) => {
17699
17672
  onDelete,
17700
17673
  onClose
17701
17674
  } = props;
17702
- const b2 = cn("numberkeyboard");
17675
+ const b = cn("numberkeyboard");
17703
17676
  const [show, setShow] = useState(visible);
17704
17677
  const [clickKeyIndex, setClickKeyIndex] = useState(void 0);
17705
17678
  const [keysList, setKeysList] = useState([]);
@@ -17827,24 +17800,24 @@ const NumberKeyboard = (props) => {
17827
17800
  backgroundColor: "rgba(0, 0, 0, 0)"
17828
17801
  },
17829
17802
  children: /* @__PURE__ */ jsxs("div", {
17830
- className: `${b2()} ${className}`,
17803
+ className: `${b()} ${className}`,
17831
17804
  style: {
17832
17805
  ...style
17833
17806
  },
17834
17807
  children: [title ? /* @__PURE__ */ jsxs("div", {
17835
- className: b2("header"),
17808
+ className: b("header"),
17836
17809
  children: [/* @__PURE__ */ jsx("h3", {
17837
- className: b2("header__tit"),
17810
+ className: b("header__tit"),
17838
17811
  children: title
17839
17812
  }), type4 === "default" ? /* @__PURE__ */ jsx("span", {
17840
- className: b2("header__close"),
17813
+ className: b("header__close"),
17841
17814
  onClick: onClose,
17842
17815
  children: locale.done
17843
17816
  }) : null]
17844
17817
  }) : null, /* @__PURE__ */ jsxs("div", {
17845
- className: b2("body"),
17818
+ className: b("body"),
17846
17819
  children: [/* @__PURE__ */ jsx("div", {
17847
- className: b2("body__keys"),
17820
+ className: b("body__keys"),
17848
17821
  children: keysList == null ? void 0 : keysList.map((item, index) => {
17849
17822
  return /* @__PURE__ */ jsx("div", {
17850
17823
  className: classNames({
@@ -17874,7 +17847,7 @@ const NumberKeyboard = (props) => {
17874
17847
  }, index);
17875
17848
  })
17876
17849
  }), type4 === "rightColumn" ? /* @__PURE__ */ jsxs("div", {
17877
- className: b2("sidebar"),
17850
+ className: b("sidebar"),
17878
17851
  children: [/* @__PURE__ */ jsx("div", {
17879
17852
  className: "key-board-wrapper",
17880
17853
  children: /* @__PURE__ */ jsx("div", {
@@ -18503,7 +18476,7 @@ const Range = (props) => {
18503
18476
  useEffect(() => {
18504
18477
  if (marks) {
18505
18478
  const marksKeys = Object.keys(marks);
18506
- const list = marksKeys.map(parseFloat).sort((a2, b2) => a2 - b2).filter((point) => point >= min && point <= max);
18479
+ const list = marksKeys.map(parseFloat).sort((a2, b) => a2 - b).filter((point) => point >= min && point <= max);
18507
18480
  SetMarksList(list);
18508
18481
  }
18509
18482
  }, [marks]);
@@ -19194,7 +19167,7 @@ const ShortPassword = (props) => {
19194
19167
  autoFocus,
19195
19168
  ...reset
19196
19169
  } = props;
19197
- const b2 = cn("shortpassword");
19170
+ const b = cn("shortpassword");
19198
19171
  const textInput = useRef(null);
19199
19172
  const range3 = (val) => {
19200
19173
  return Math.min(Math.max(4, val), 6);
@@ -19270,22 +19243,22 @@ const ShortPassword = (props) => {
19270
19243
  onClickOverlay: onClose,
19271
19244
  onClickCloseIcon: onClose,
19272
19245
  children: /* @__PURE__ */ jsxs("div", {
19273
- className: `${b2()} ${className}`,
19246
+ className: `${b()} ${className}`,
19274
19247
  style: {
19275
19248
  ...style
19276
19249
  },
19277
19250
  ...reset,
19278
19251
  children: [/* @__PURE__ */ jsx("div", {
19279
- className: b2("title"),
19252
+ className: b("title"),
19280
19253
  children: title || locale.shortpassword.title
19281
19254
  }), /* @__PURE__ */ jsx("div", {
19282
- className: b2("subtitle"),
19255
+ className: b("subtitle"),
19283
19256
  children: description || locale.shortpassword.description
19284
19257
  }), /* @__PURE__ */ jsxs("div", {
19285
- className: b2("input"),
19258
+ className: b("input"),
19286
19259
  children: [/* @__PURE__ */ jsx("input", {
19287
19260
  ref: textInput,
19288
- className: b2("input-real"),
19261
+ className: b("input-real"),
19289
19262
  type: "number",
19290
19263
  style: systemStyle(),
19291
19264
  maxLength: 6,
@@ -19293,40 +19266,40 @@ const ShortPassword = (props) => {
19293
19266
  autoFocus,
19294
19267
  onChange: (e) => changeValue(e)
19295
19268
  }), /* @__PURE__ */ jsx("div", {
19296
- className: b2("input-site")
19269
+ className: b("input-site")
19297
19270
  }), /* @__PURE__ */ jsx("div", {
19298
- className: b2("input-fake"),
19271
+ className: b("input-fake"),
19299
19272
  onClick: () => focus(),
19300
19273
  children: [...new Array(comLen).keys()].map((item, index) => {
19301
19274
  return /* @__PURE__ */ jsx("div", {
19302
- className: b2("input-fake__li"),
19275
+ className: b("input-fake__li"),
19303
19276
  children: String(inputValue).length > index ? /* @__PURE__ */ jsx("div", {
19304
- className: b2("input-fake__li__icon")
19277
+ className: b("input-fake__li__icon")
19305
19278
  }) : null
19306
19279
  }, index);
19307
19280
  })
19308
19281
  })]
19309
19282
  }), /* @__PURE__ */ jsxs("div", {
19310
- className: b2("message"),
19283
+ className: b("message"),
19311
19284
  children: [/* @__PURE__ */ jsx("div", {
19312
- className: b2("message__error"),
19285
+ className: b("message__error"),
19313
19286
  children: errorMsg2
19314
19287
  }), tips || locale.shortpassword.tips ? /* @__PURE__ */ jsxs("div", {
19315
- className: b2("message__forget"),
19288
+ className: b("message__forget"),
19316
19289
  children: [renderIcon(iconSize), /* @__PURE__ */ jsx("div", {
19317
- className: b2("message__forget-tips"),
19290
+ className: b("message__forget-tips"),
19318
19291
  onClick: onTips,
19319
19292
  children: tips || locale.shortpassword.tips
19320
19293
  })]
19321
19294
  }) : null]
19322
19295
  }), !noButton ? /* @__PURE__ */ jsxs("div", {
19323
- className: b2("footer"),
19296
+ className: b("footer"),
19324
19297
  children: [/* @__PURE__ */ jsx("div", {
19325
- className: b2("footer__cancel"),
19298
+ className: b("footer__cancel"),
19326
19299
  onClick: onCancel,
19327
19300
  children: locale.cancel
19328
19301
  }), /* @__PURE__ */ jsx("div", {
19329
- className: b2("footer__sure"),
19302
+ className: b("footer__sure"),
19330
19303
  onClick: () => sure(),
19331
19304
  children: locale.confirm
19332
19305
  })]
@@ -19482,134 +19455,64 @@ TextArea.defaultProps = defaultProps$L;
19482
19455
  TextArea.displayName = "NutTextArea";
19483
19456
  const defaultProps$K = {
19484
19457
  ...ComponentDefaults,
19485
- className: "",
19486
- style: {},
19487
- isShowPercentage: true,
19488
- percentage: 0,
19489
- fillColor: "#f3f3f3",
19490
- strokeColor: "linear-gradient(135deg, #fa2c19 0%, #fa6419 100%)",
19491
- strokeWidth: "",
19492
- textColor: "",
19493
- textWidth: "",
19494
- showText: true,
19495
- textInside: false,
19496
- textBackground: "linear-gradient(135deg, #fa2c19 0%, #fa6419 100%)",
19497
- textType: "text",
19498
- status: false,
19499
- icon: null,
19500
- children: void 0
19458
+ percent: 0,
19459
+ showText: false,
19460
+ animated: false
19501
19461
  };
19502
19462
  const Progress = (props) => {
19503
19463
  const {
19504
19464
  className,
19505
19465
  style,
19506
- isShowPercentage,
19507
- percentage,
19508
- fillColor,
19509
- strokeColor,
19466
+ percent,
19467
+ background,
19468
+ color,
19510
19469
  strokeWidth,
19511
- size,
19512
- textColor,
19513
- textWidth,
19514
19470
  showText,
19515
- textInside,
19516
- textBackground,
19517
- textType,
19518
- status,
19519
- icon,
19471
+ animated: animated2,
19520
19472
  children,
19521
19473
  ...rest
19522
19474
  } = {
19523
19475
  ...defaultProps$K,
19524
19476
  ...props
19525
19477
  };
19526
- const b2 = cn("progress");
19527
- const classes = classNames(b2(""));
19528
- const classesOuter = classNames({
19529
- [`${b2("")}-outer`]: true,
19530
- [`${b2("")}-${size || "base"}`]: true
19531
- });
19478
+ const classPrefix2 = "nut-progress";
19532
19479
  const classesInner = classNames({
19533
- [`${b2("")}-inner`]: true,
19534
- [`${b2("")}-active`]: status
19535
- });
19536
- const classesText = classNames({
19537
- [`${b2("")}-text`]: true
19538
- });
19539
- const classesInsideText = classNames({
19540
- [`${b2("")}-text`]: true,
19541
- [`${b2("")}-insidetext`]: true
19542
- });
19543
- const classesTextInner = classNames({
19544
- [`${b2("")}-text__inner`]: true
19480
+ [`${classPrefix2}-inner`]: true,
19481
+ [`${classPrefix2}-active`]: animated2
19545
19482
  });
19546
19483
  const stylesOuter = {
19547
19484
  height: `${strokeWidth}px`,
19548
- // eslint-disable-next-line no-nested-ternary
19549
- background: `${fillColor}`
19485
+ background
19550
19486
  };
19551
19487
  const stylesInner = {
19552
- width: `${percentage}%`,
19553
- // eslint-disable-next-line no-nested-ternary
19554
- background: `${strokeColor}`
19555
- };
19556
- const stylesInsideText = {
19557
- width: `${textWidth}px`,
19558
- left: `${percentage}%`,
19559
- background: textBackground || strokeColor
19560
- };
19561
- const stylesInsideIcon = {
19562
- width: `${textWidth}px`,
19563
- left: `${percentage}%`
19488
+ width: `${percent}%`,
19489
+ background: color
19564
19490
  };
19565
- const stylesText = {
19566
- width: `${textWidth}px`
19567
- };
19568
- return /* @__PURE__ */ jsxs("div", {
19569
- className: `${classes} ${className}`,
19491
+ return /* @__PURE__ */ jsx("div", {
19492
+ className: classNames(classPrefix2, className),
19570
19493
  style,
19571
19494
  ...rest,
19572
- children: [/* @__PURE__ */ jsx("div", {
19573
- className: classesOuter,
19495
+ children: /* @__PURE__ */ jsx("div", {
19496
+ className: `${classPrefix2}-outer`,
19574
19497
  style: stylesOuter,
19575
19498
  children: /* @__PURE__ */ jsx("div", {
19576
19499
  className: classesInner,
19577
19500
  style: stylesInner,
19578
- children: showText && textInside && /* @__PURE__ */ jsx(Fragment, {
19579
- children: children ? /* @__PURE__ */ jsx("div", {
19580
- className: classesInsideText,
19581
- style: stylesInsideIcon,
19582
- children
19583
- }) : /* @__PURE__ */ jsx("div", {
19584
- className: classesInsideText,
19585
- style: stylesInsideText,
19586
- children: /* @__PURE__ */ jsxs("span", {
19587
- className: classesTextInner,
19588
- style: {
19589
- color: textColor
19590
- },
19591
- children: [percentage, isShowPercentage ? "%" : ""]
19592
- })
19501
+ children: showText && /* @__PURE__ */ jsx("div", {
19502
+ className: `${classPrefix2}-text`,
19503
+ style: {
19504
+ left: `${percent}%`
19505
+ },
19506
+ children: children || /* @__PURE__ */ jsxs("div", {
19507
+ className: `${classPrefix2}-text__inner`,
19508
+ style: {
19509
+ background: color
19510
+ },
19511
+ children: [percent, "%"]
19593
19512
  })
19594
19513
  })
19595
19514
  })
19596
- }), showText && !textInside && /* @__PURE__ */ jsxs("div", {
19597
- className: classesText,
19598
- style: stylesText,
19599
- children: [textType === "text" && /* @__PURE__ */ jsxs("span", {
19600
- className: classesTextInner,
19601
- style: {
19602
- color: textColor
19603
- },
19604
- children: [percentage, isShowPercentage ? "%" : ""]
19605
- }), textType === "icon" && /* @__PURE__ */ jsx(Fragment, {
19606
- children: icon || /* @__PURE__ */ jsx(x$d, {
19607
- width: 16,
19608
- height: 16,
19609
- color: "#439422"
19610
- })
19611
- })]
19612
- })]
19515
+ })
19613
19516
  });
19614
19517
  };
19615
19518
  Progress.defaultProps = defaultProps$K;
@@ -20108,9 +20011,8 @@ const InternalUploader = (props, ref) => {
20108
20011
  className: "nut-uploader__preview-img__file__del",
20109
20012
  onClick: () => onDeleteItem(item, index)
20110
20013
  }), item.status === "uploading" && /* @__PURE__ */ jsx(Progress, {
20111
- size: "small",
20112
- percentage: item.percentage,
20113
- strokeColor: "linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)",
20014
+ percent: item.percentage,
20015
+ color: "linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)",
20114
20016
  showText: false
20115
20017
  })]
20116
20018
  })]
@@ -20189,7 +20091,7 @@ const ActionSheet = (props) => {
20189
20091
  ...defaultProps$I,
20190
20092
  ...props
20191
20093
  };
20192
- const b2 = cn("actionsheet");
20094
+ const b = cn("actionsheet");
20193
20095
  const isHighlight = (item) => {
20194
20096
  return props.chooseTagValue && props.chooseTagValue === item[props.optionTag || "name"] ? props.color : "$dark1";
20195
20097
  };
@@ -20209,20 +20111,20 @@ const ActionSheet = (props) => {
20209
20111
  onCancel && onCancel();
20210
20112
  },
20211
20113
  children: /* @__PURE__ */ jsxs("div", {
20212
- className: `${b2()} ${className}`,
20114
+ className: `${b()} ${className}`,
20213
20115
  style,
20214
20116
  ...rest,
20215
20117
  children: [title && /* @__PURE__ */ jsx("div", {
20216
- className: b2("title"),
20118
+ className: b("title"),
20217
20119
  children: title
20218
20120
  }), description && /* @__PURE__ */ jsx("div", {
20219
- className: `${b2("item")} description`,
20121
+ className: `${b("item")} description`,
20220
20122
  children: description
20221
20123
  }), menuItems.length ? /* @__PURE__ */ jsx("div", {
20222
- className: b2("menu"),
20124
+ className: b("menu"),
20223
20125
  children: menuItems.map((item, index) => {
20224
20126
  return /* @__PURE__ */ jsxs("div", {
20225
- className: `${b2("item")} ${item.disable ? b2("item-disabled") : ""}`,
20127
+ className: `${b("item")} ${item.disable ? b("item-disabled") : ""}`,
20226
20128
  style: {
20227
20129
  color: isHighlight(item)
20228
20130
  },
@@ -20234,7 +20136,7 @@ const ActionSheet = (props) => {
20234
20136
  }, index);
20235
20137
  })
20236
20138
  }) : children, cancelText && /* @__PURE__ */ jsx("div", {
20237
- className: b2("cancel"),
20139
+ className: b("cancel"),
20238
20140
  onClick: () => cancelActionSheet(),
20239
20141
  children: cancelText
20240
20142
  })]
@@ -20688,6 +20590,7 @@ Dialog.confirm = (props) => {
20688
20590
  Dialog.defaultProps = defaultProps$G;
20689
20591
  Dialog.displayName = "NutDialog";
20690
20592
  const defaultProps$F = {
20593
+ ...ComponentDefaults,
20691
20594
  attract: false,
20692
20595
  direction: void 0,
20693
20596
  boundary: {
@@ -20695,8 +20598,7 @@ const defaultProps$F = {
20695
20598
  left: 0,
20696
20599
  right: 0,
20697
20600
  bottom: 0
20698
- },
20699
- className: ""
20601
+ }
20700
20602
  };
20701
20603
  const Drag = (props) => {
20702
20604
  const {
@@ -20711,7 +20613,7 @@ const Drag = (props) => {
20711
20613
  ...defaultProps$F,
20712
20614
  ...props
20713
20615
  };
20714
- const b2 = cn("drag");
20616
+ const classPrefix2 = "nut-drag";
20715
20617
  const [boundaryState, setBoundaryState] = useState(boundary);
20716
20618
  const myDrag = useRef(null);
20717
20619
  const [currstyle, api] = useSpring(() => ({
@@ -20784,7 +20686,7 @@ const Drag = (props) => {
20784
20686
  }, [myDrag]);
20785
20687
  return /* @__PURE__ */ jsx("div", {
20786
20688
  style,
20787
- className: `${b2()} ${className}`,
20689
+ className: `${classPrefix2} ${className}`,
20788
20690
  ...reset,
20789
20691
  ref: myDrag,
20790
20692
  children: /* @__PURE__ */ jsx(animated.div, {
@@ -20845,8 +20747,8 @@ const Infiniteloading = (props) => {
20845
20747
  const refreshMaxH = useRef(0);
20846
20748
  const y2 = useRef(0);
20847
20749
  const distance = useRef(0);
20848
- const b2 = cn("infiniteloading");
20849
- const classes = classNames(className, b2());
20750
+ const b = cn("infiniteloading");
20751
+ const classes = classNames(className, b());
20850
20752
  useEffect(() => {
20851
20753
  const parentElement = getParentElement(scroller.current);
20852
20754
  scrollEl.current = useWindow ? window : parentElement;
@@ -21653,12 +21555,12 @@ const Switch = (props) => {
21653
21555
  ...props
21654
21556
  };
21655
21557
  const [value, setValue] = useState(false);
21656
- const b2 = cn("switch");
21558
+ const b = cn("switch");
21657
21559
  useEffect(() => {
21658
21560
  setValue(checked);
21659
21561
  }, [checked]);
21660
21562
  const classes = () => {
21661
- return `${b2()} ${value ? "switch-open" : "switch-close"} ${disable ? `${b2()}-disable` : ""} ${`${b2()}-base`} ${className}`;
21563
+ return `${b()} ${value ? "switch-open" : "switch-close"} ${disable ? `${b()}-disable` : ""} ${`${b()}-base`} ${className}`;
21662
21564
  };
21663
21565
  const styles = () => {
21664
21566
  const myStyle = {
@@ -21685,10 +21587,10 @@ const Switch = (props) => {
21685
21587
  className: "close-line"
21686
21588
  }), activeText && /* @__PURE__ */ jsx(Fragment, {
21687
21589
  children: value ? /* @__PURE__ */ jsx("div", {
21688
- className: `${b2("label")} open`,
21590
+ className: `${b("label")} open`,
21689
21591
  children: activeText
21690
21592
  }) : /* @__PURE__ */ jsx("div", {
21691
- className: `${b2("label")} close`,
21593
+ className: `${b("label")} close`,
21692
21594
  children: inactiveText
21693
21595
  })
21694
21596
  })]
@@ -21698,12 +21600,14 @@ const Switch = (props) => {
21698
21600
  Switch.defaultProps = defaultProps$B;
21699
21601
  Switch.displayName = "NutSwitch";
21700
21602
  const defaultProps$A = {
21603
+ ...ComponentDefaults,
21701
21604
  type: "shake",
21702
21605
  action: "initial",
21703
21606
  loop: false,
21704
21607
  onClick: (event) => {
21705
21608
  }
21706
21609
  };
21610
+ const classPrefix = `nut-animate`;
21707
21611
  const Animate = (props) => {
21708
21612
  const {
21709
21613
  className,
@@ -21718,10 +21622,9 @@ const Animate = (props) => {
21718
21622
  ...props
21719
21623
  };
21720
21624
  const [clicked, setClicked] = useState(false);
21721
- const b2 = cn("animate");
21722
21625
  const classes = classNames({
21723
21626
  "nut-ani-container": true,
21724
- [`${b2("")}-${type4}`]: action === "initial" || clicked ? type4 : false,
21627
+ [`${classPrefix}-${type4}`]: action === "initial" || clicked ? type4 : false,
21725
21628
  loop: loop2
21726
21629
  });
21727
21630
  const cls = classNames(classes, className);
@@ -21767,7 +21670,7 @@ const CountUp = (props) => {
21767
21670
  ...defaultProps$z,
21768
21671
  ...props
21769
21672
  };
21770
- const b2 = cn("countup");
21673
+ const b = cn("countup");
21771
21674
  const countupRef = useRef(null);
21772
21675
  const timerRef = useRef(0);
21773
21676
  const numbers = Array.from({
@@ -21807,17 +21710,17 @@ const CountUp = (props) => {
21807
21710
  };
21808
21711
  }, [numerArr]);
21809
21712
  return /* @__PURE__ */ jsx("div", {
21810
- className: `${b2()} ${className}`,
21713
+ className: `${b()} ${className}`,
21811
21714
  ref: countupRef,
21812
21715
  children: /* @__PURE__ */ jsx("ul", {
21813
- className: b2("list"),
21716
+ className: b("list"),
21814
21717
  children: numerArr.map((item, idx) => {
21815
21718
  return /* @__PURE__ */ jsx("li", {
21816
- className: `${b2("listitem", {
21719
+ className: `${b("listitem", {
21817
21720
  number: !Number.isNaN(Number(item))
21818
21721
  })}`,
21819
21722
  children: !Number.isNaN(Number(item)) ? /* @__PURE__ */ jsx("span", {
21820
- className: b2("number"),
21723
+ className: b("number"),
21821
21724
  style: numberEaseStyle,
21822
21725
  children: [...numbers, ...numbers].map((number4, subidx) => {
21823
21726
  return /* @__PURE__ */ jsx("span", {
@@ -21825,7 +21728,7 @@ const CountUp = (props) => {
21825
21728
  }, subidx);
21826
21729
  })
21827
21730
  }) : /* @__PURE__ */ jsx("span", {
21828
- className: b2("separator"),
21731
+ className: b("separator"),
21829
21732
  children: item
21830
21733
  })
21831
21734
  }, idx);
@@ -22141,12 +22044,12 @@ const Avatar = (props) => {
22141
22044
  const [avatarIndex, setAvatarIndex] = useState(1);
22142
22045
  const avatarRef = useRef(null);
22143
22046
  const parent = useContext(AvatarContext);
22144
- const b2 = cn("avatar");
22047
+ const b = cn("avatar");
22145
22048
  const classes = classNames({
22146
22049
  [`nut-avatar-${size || ((_a2 = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _a2.size) || "normal"}`]: true,
22147
22050
  [`nut-avatar-${shape || ((_b = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _b.shape) || "round"}`]: true
22148
22051
  });
22149
- const cls = classNames(b2(""), classes, className);
22052
+ const cls = classNames(b(""), classes, className);
22150
22053
  const sizeValue = ["large", "normal", "small"];
22151
22054
  const styles = {
22152
22055
  width: sizeValue.indexOf(size) > -1 ? "" : `${size}px`,
@@ -22243,8 +22146,8 @@ const AvatarGroup = (props) => {
22243
22146
  children
22244
22147
  } = propAvatarGroup;
22245
22148
  const avatarGroupRef = useRef(null);
22246
- const b2 = cn("avatar-group");
22247
- const cls = classNames(b2(""), className);
22149
+ const b = cn("avatar-group");
22150
+ const cls = classNames(b(""), className);
22248
22151
  const parentAvatar = {
22249
22152
  propAvatarGroup,
22250
22153
  avatarGroupRef
@@ -22263,41 +22166,36 @@ AvatarGroup.defaultProps = defaultProps$v;
22263
22166
  AvatarGroup.displayName = "NutAvatarGroup";
22264
22167
  const defaultProps$u = {
22265
22168
  ...ComponentDefaults,
22266
- className: "",
22267
22169
  value: "",
22268
22170
  dot: false,
22269
- max: 1e4,
22171
+ max: 99,
22270
22172
  top: "0",
22271
- right: "0",
22272
- zIndex: "0",
22273
- color: "",
22274
- icon: null
22173
+ right: "5",
22174
+ color: ""
22275
22175
  };
22276
- const b = cn("badge");
22277
22176
  const Badge = (props) => {
22278
22177
  const {
22279
22178
  className,
22280
22179
  style,
22180
+ value,
22181
+ max,
22281
22182
  children,
22282
22183
  dot,
22283
22184
  top,
22284
22185
  right,
22285
- zIndex,
22286
- color,
22287
- icon
22186
+ color
22288
22187
  } = {
22289
22188
  ...defaultProps$u,
22290
22189
  ...props
22291
22190
  };
22191
+ const classPrefix2 = "nut-badge";
22192
+ const classes = classNames(classPrefix2, className);
22193
+ const contentClasses = classNames({
22194
+ [`${classPrefix2}__dot`]: dot
22195
+ }, `${classPrefix2}__content`, `${classPrefix2}__sup`);
22292
22196
  function content() {
22293
- if (dot)
22294
- return void 0;
22295
- const {
22296
- value
22297
- } = props;
22298
- const {
22299
- max
22300
- } = props;
22197
+ if (dot || typeof value === "object")
22198
+ return null;
22301
22199
  if (typeof value === "number" && typeof max === "number") {
22302
22200
  return max < value ? `${max}+` : value;
22303
22201
  }
@@ -22307,22 +22205,19 @@ const Badge = (props) => {
22307
22205
  const style2 = {};
22308
22206
  style2.top = `${Number(top) || parseFloat(top) || 0}px`;
22309
22207
  style2.right = `${Number(right) || parseFloat(right) || 0}px`;
22310
- style2.zIndex = zIndex;
22311
22208
  style2.background = color;
22312
22209
  return style2;
22313
22210
  };
22314
22211
  return /* @__PURE__ */ jsxs("div", {
22315
- className: classNames(b(), className),
22212
+ className: classes,
22316
22213
  style,
22317
- children: [icon && /* @__PURE__ */ jsx("div", {
22318
- className: "slot-icon",
22319
- children: icon
22214
+ children: [typeof value === "object" && value && /* @__PURE__ */ jsx("div", {
22215
+ className: `${classPrefix2}__icon`,
22216
+ children: value
22320
22217
  }), /* @__PURE__ */ jsx("div", {
22321
22218
  children
22322
22219
  }), /* @__PURE__ */ jsx("div", {
22323
- className: classNames({
22324
- "is-dot": dot
22325
- }, b("content"), "sup"),
22220
+ className: contentClasses,
22326
22221
  style: getStyle(),
22327
22222
  children: content()
22328
22223
  })]
@@ -22356,8 +22251,8 @@ const CircleProgress = (props) => {
22356
22251
  ...defaultProps$t,
22357
22252
  ...props
22358
22253
  };
22359
- const b2 = cn("circleprogress");
22360
- const classes = classNames(className, b2(""));
22254
+ const b = cn("circleprogress");
22255
+ const classes = classNames(className, b(""));
22361
22256
  const refRandomId = Math.random().toString(36).slice(-8);
22362
22257
  const styles = {
22363
22258
  height: `${Number(radius) * 2}px`,
@@ -22387,7 +22282,7 @@ const CircleProgress = (props) => {
22387
22282
  return;
22388
22283
  }
22389
22284
  const color = circleColor;
22390
- const colorArr = Object.keys(color).sort((a2, b22) => parseFloat(a2) - parseFloat(b22));
22285
+ const colorArr = Object.keys(color).sort((a2, b2) => parseFloat(a2) - parseFloat(b2));
22391
22286
  const stopArr = [];
22392
22287
  colorArr.map((item) => {
22393
22288
  const obj = {
@@ -22657,7 +22552,7 @@ const InternalCountDown = (props, ref) => {
22657
22552
  ...defaultProps$q,
22658
22553
  ...props
22659
22554
  };
22660
- const b2 = cn("countdown");
22555
+ const b = cn("countdown");
22661
22556
  const [restTimeStamp, setRestTime] = useState(0);
22662
22557
  const stateRef = useRef({
22663
22558
  pauseTime: 0,
@@ -22851,13 +22746,13 @@ const InternalCountDown = (props, ref) => {
22851
22746
  return formatRemainTime(stateRef.current.restTime);
22852
22747
  })();
22853
22748
  return /* @__PURE__ */ jsx("div", {
22854
- className: `${b2()} ${className || ""}`,
22749
+ className: `${b()} ${className || ""}`,
22855
22750
  style: {
22856
22751
  ...style
22857
22752
  },
22858
22753
  ...rest,
22859
22754
  children: children || /* @__PURE__ */ jsx("div", {
22860
- className: b2("block"),
22755
+ className: b("block"),
22861
22756
  dangerouslySetInnerHTML: {
22862
22757
  __html: `${renderTime}`
22863
22758
  }
@@ -23067,7 +22962,7 @@ const Empty = (props) => {
23067
22962
  ...props
23068
22963
  };
23069
22964
  const [imgStyle, setImgStyle] = useState({});
23070
- const b2 = cn("empty");
22965
+ const b = cn("empty");
23071
22966
  let imageNode = image;
23072
22967
  if (typeof image === "string") {
23073
22968
  const isHttpUrl = image.startsWith("https://") || image.startsWith("http://") || image.startsWith("//");
@@ -23096,15 +22991,15 @@ const Empty = (props) => {
23096
22991
  });
23097
22992
  }, [imageSize]);
23098
22993
  return /* @__PURE__ */ jsx("div", {
23099
- className: `${b2()} ${className}`,
22994
+ className: `${b()} ${className}`,
23100
22995
  ...rest,
23101
22996
  children: /* @__PURE__ */ jsxs(Fragment, {
23102
22997
  children: [/* @__PURE__ */ jsx("div", {
23103
- className: b2("image"),
22998
+ className: b("image"),
23104
22999
  style: imgStyle,
23105
23000
  children: imageNode
23106
23001
  }), typeof description === "string" ? /* @__PURE__ */ jsx("div", {
23107
- className: b2("description"),
23002
+ className: b("description"),
23108
23003
  children: description || locale.noData
23109
23004
  }) : {
23110
23005
  description
@@ -23147,8 +23042,8 @@ const Video = (props) => {
23147
23042
  ...props
23148
23043
  };
23149
23044
  const rootRef = useRef(null);
23150
- const b2 = cn("video");
23151
- const classes = classNames(className, b2(""));
23045
+ const b = cn("video");
23046
+ const classes = classNames(className, b(""));
23152
23047
  useEffect(() => {
23153
23048
  init();
23154
23049
  }, []);
@@ -23466,11 +23361,11 @@ const Swiper = React__default.forwardRef((props, ref) => {
23466
23361
  touch.stateDirection = getDirection2(touch.offsetX, touch.offsetY);
23467
23362
  }
23468
23363
  };
23469
- const b2 = cn("swiper");
23470
- const classes = classNames(b2(""));
23364
+ const b = cn("swiper");
23365
+ const classes = classNames(b(""));
23471
23366
  const contentClass = classNames({
23472
- [`${b2("inner")}`]: true,
23473
- [`${b2("vertical")}`]: isVertical
23367
+ [`${b("inner")}`]: true,
23368
+ [`${b("vertical")}`]: isVertical
23474
23369
  });
23475
23370
  const getStyle = (moveOffset = offset) => {
23476
23371
  const target = innerRef.current;
@@ -23629,15 +23524,15 @@ const Swiper = React__default.forwardRef((props, ref) => {
23629
23524
  ref: innerRef,
23630
23525
  children: React__default.Children.map(childs, (child, index) => {
23631
23526
  return /* @__PURE__ */ jsx("div", {
23632
- className: b2("item-wrapper"),
23527
+ className: b("item-wrapper"),
23633
23528
  style: itemStyle(index),
23634
23529
  children: child
23635
23530
  }, index);
23636
23531
  })
23637
23532
  }), propSwiper.paginationVisible && !("pageContent" in propSwiper) ? /* @__PURE__ */ jsx("div", {
23638
23533
  className: classNames({
23639
- [`${b2("pagination")}`]: true,
23640
- [`${b2("pagination-vertical")}`]: isVertical
23534
+ [`${b("pagination")}`]: true,
23535
+ [`${b("pagination-vertical")}`]: isVertical
23641
23536
  }),
23642
23537
  children: React__default.Children.map(childs, (item, index) => {
23643
23538
  return /* @__PURE__ */ jsx("i", {
@@ -23675,8 +23570,8 @@ const SwiperItem = React__default.forwardRef((props, ref) => {
23675
23570
  size
23676
23571
  } = _props;
23677
23572
  const parent = useContext(DataContext$1);
23678
- const b2 = cn("swiper-item");
23679
- const classes = classNames(b2(""), className);
23573
+ const b = cn("swiper-item");
23574
+ const classes = classNames(b(""), className);
23680
23575
  const getStyle = () => {
23681
23576
  const style2 = {};
23682
23577
  const _direction = (parent == null ? void 0 : parent.propSwiper.direction) || direction;
@@ -24250,7 +24145,7 @@ const NoticeBar = (props) => {
24250
24145
  });
24251
24146
  }
24252
24147
  };
24253
- const b2 = cn("noticebar");
24148
+ const b = cn("noticebar");
24254
24149
  const noticebarClass = classNames({
24255
24150
  "nut-noticebar-page": true,
24256
24151
  withicon: closeMode,
@@ -24263,7 +24158,7 @@ const NoticeBar = (props) => {
24263
24158
  };
24264
24159
  }, []);
24265
24160
  return /* @__PURE__ */ jsxs("div", {
24266
- className: `${b2()} ${className || ""}`,
24161
+ className: `${b()} ${className || ""}`,
24267
24162
  style,
24268
24163
  children: [showNoticeBar && direction === "across" ? /* @__PURE__ */ jsxs("div", {
24269
24164
  className: noticebarClass,
@@ -24553,7 +24448,7 @@ const Price = (props) => {
24553
24448
  ...defaultProps$h,
24554
24449
  ...props
24555
24450
  };
24556
- const b2 = cn("price");
24451
+ const b = cn("price");
24557
24452
  const showSymbol = () => {
24558
24453
  return {
24559
24454
  __html: needSymbol ? symbol : ""
@@ -24593,21 +24488,21 @@ const Price = (props) => {
24593
24488
  };
24594
24489
  const renderSymbol = () => {
24595
24490
  return /* @__PURE__ */ jsx("div", {
24596
- className: `${b2("symbol")} ${b2(`symbol-${size}`)}`,
24491
+ className: `${b("symbol")} ${b(`symbol-${size}`)}`,
24597
24492
  dangerouslySetInnerHTML: showSymbol()
24598
24493
  });
24599
24494
  };
24600
24495
  return /* @__PURE__ */ jsxs("div", {
24601
- className: `${b2()} ${className}`,
24496
+ className: `${b()} ${className}`,
24602
24497
  ...rest,
24603
24498
  children: [needSymbol && position === "before" ? renderSymbol() : null, /* @__PURE__ */ jsx("div", {
24604
- className: `${b2("integer")} ${b2(`integer-${size}`)}`,
24499
+ className: `${b("integer")} ${b(`integer-${size}`)}`,
24605
24500
  children: formatThousands(price)
24606
24501
  }), decimalDigits !== 0 ? /* @__PURE__ */ jsx("div", {
24607
- className: `${b2("decimal")} ${b2(`decimal-${size}`)}`,
24502
+ className: `${b("decimal")} ${b(`decimal-${size}`)}`,
24608
24503
  children: "."
24609
24504
  }) : null, /* @__PURE__ */ jsx("div", {
24610
- className: `${b2("decimal")} ${b2(`decimal-${size}`)}`,
24505
+ className: `${b("decimal")} ${b(`decimal-${size}`)}`,
24611
24506
  children: formatDecimal(price)
24612
24507
  }), needSymbol && position === "after" ? renderSymbol() : null]
24613
24508
  });
@@ -24645,8 +24540,8 @@ const Skeleton = (props) => {
24645
24540
  ...defaultProps$g,
24646
24541
  ...props
24647
24542
  };
24648
- const b2 = cn("skeleton");
24649
- const classes = classNames(className, b2());
24543
+ const b = cn("skeleton");
24544
+ const classes = classNames(className, b());
24650
24545
  const blockClass = classNames({
24651
24546
  blockClass: true,
24652
24547
  "blockClass--round": round
@@ -24748,10 +24643,10 @@ const Step = (props) => {
24748
24643
  ((_a2 = parent.propSteps) == null ? void 0 : _a2.onClickStep) && ((_b = parent.propSteps) == null ? void 0 : _b.onClickStep(activeIndex));
24749
24644
  ((_c = parent.propSteps) == null ? void 0 : _c.clickStep) && ((_d = parent.propSteps) == null ? void 0 : _d.clickStep(activeIndex));
24750
24645
  };
24751
- const b2 = cn("step");
24646
+ const b = cn("step");
24752
24647
  const classes = classNames({
24753
- [`${b2("")}-${getCurrentStatus()}`]: true
24754
- }, className, b2(""));
24648
+ [`${b("")}-${getCurrentStatus()}`]: true
24649
+ }, className, b(""));
24755
24650
  const renderIconClass = () => {
24756
24651
  if (!dot && icon) {
24757
24652
  return "nut-step-icon is-icon";
@@ -24816,11 +24711,11 @@ const Steps = (props) => {
24816
24711
  const parentSteps = {
24817
24712
  propSteps
24818
24713
  };
24819
- const b2 = cn("steps");
24714
+ const b = cn("steps");
24820
24715
  const classes = classNames({
24821
- [`${b2("")}-${direction}`]: true,
24822
- [`${b2("")}-dot`]: !!props.progressDot
24823
- }, className, b2(""));
24716
+ [`${b("")}-${direction}`]: true,
24717
+ [`${b("")}-dot`]: !!props.progressDot
24718
+ }, className, b(""));
24824
24719
  return /* @__PURE__ */ jsx(DataContext.Provider, {
24825
24720
  value: parentSteps,
24826
24721
  children: React__default.createElement("div", {
@@ -24872,9 +24767,9 @@ const Table = (props) => {
24872
24767
  setCurData(data);
24873
24768
  }
24874
24769
  }, [data]);
24875
- const b2 = cn("table");
24770
+ const b = cn("table");
24876
24771
  const classes = classNames({});
24877
- const cls = classNames(b2(), classes, className);
24772
+ const cls = classNames(b(), classes, className);
24878
24773
  const handleSorterClick = (item) => {
24879
24774
  if (item.sorter) {
24880
24775
  onSorter && onSorter(item, curData);
@@ -25116,7 +25011,7 @@ const TrendArrow = (props) => {
25116
25011
  ...defaultProps$b,
25117
25012
  ...props
25118
25013
  };
25119
- const b2 = cn("trendarrow");
25014
+ const b = cn("trendarrow");
25120
25015
  const handleClick2 = () => {
25121
25016
  };
25122
25017
  const rateTrend = useRef(rate > 0);
@@ -25155,13 +25050,13 @@ const TrendArrow = (props) => {
25155
25050
  const renderContent = (arrowLeft2) => {
25156
25051
  const classNameSuffix = !arrowLeft2 ? "icon-after" : "icon-before";
25157
25052
  return /* @__PURE__ */ jsx("span", {
25158
- className: `${b2(classNameSuffix)} ${b2("rate")}`,
25053
+ className: `${b(classNameSuffix)} ${b("rate")}`,
25159
25054
  style: calcStyle,
25160
25055
  children: calcRate
25161
25056
  });
25162
25057
  };
25163
25058
  return /* @__PURE__ */ jsxs("div", {
25164
- className: `${b2()} ${className}`,
25059
+ className: `${b()} ${className}`,
25165
25060
  ...rest,
25166
25061
  onClick: handleClick2,
25167
25062
  children: [!arrowLeft && renderContent(!arrowLeft), children || /* @__PURE__ */ jsx(Fragment, {
@@ -25504,10 +25399,10 @@ const WaterMark = (props) => {
25504
25399
  ...props
25505
25400
  };
25506
25401
  const [base64Url, setBase64Url] = useState("");
25507
- const b2 = cn("watermark");
25402
+ const b = cn("watermark");
25508
25403
  const classes = classNames({
25509
- [`${b2("")}`]: true,
25510
- [`${b2("")}-full-page`]: fullPage
25404
+ [`${b("")}`]: true,
25405
+ [`${b("")}-full-page`]: fullPage
25511
25406
  });
25512
25407
  const cls = classNames(classes, className);
25513
25408
  useEffect(() => {
@@ -25592,7 +25487,7 @@ const ExistRender = (props) => {
25592
25487
  ...defaultProps$8,
25593
25488
  ...props
25594
25489
  };
25595
- const b2 = cn("address");
25490
+ const b = cn("address");
25596
25491
  const selectedExist = (item) => {
25597
25492
  const copyExistAdd = existAddress;
25598
25493
  let prevExistAdd = {
@@ -25620,18 +25515,18 @@ const ExistRender = (props) => {
25620
25515
  useEffect(() => {
25621
25516
  }, [existAddress]);
25622
25517
  return /* @__PURE__ */ jsxs("div", {
25623
- className: b2("exist"),
25518
+ className: b("exist"),
25624
25519
  children: [/* @__PURE__ */ jsx("div", {
25625
- className: b2("exist-group"),
25520
+ className: b("exist-group"),
25626
25521
  children: /* @__PURE__ */ jsx("ul", {
25627
- className: b2("exist-ul"),
25522
+ className: b("exist-ul"),
25628
25523
  children: existAddress.map((item, index) => {
25629
25524
  return /* @__PURE__ */ jsx("li", {
25630
- className: b2("exist-item"),
25525
+ className: b("exist-item"),
25631
25526
  children: /* @__PURE__ */ jsxs("div", {
25632
25527
  onClick: () => selectedExist(item),
25633
25528
  children: [item.selectedAddress ? selectedIcon : defaultIcon, /* @__PURE__ */ jsxs("div", {
25634
- className: b2("exist-item-info"),
25529
+ className: b("exist-item-info"),
25635
25530
  children: [item.name && item.phone && /* @__PURE__ */ jsxs("div", {
25636
25531
  className: "exist-item-info-top",
25637
25532
  children: [/* @__PURE__ */ jsx("div", {
@@ -25653,10 +25548,10 @@ const ExistRender = (props) => {
25653
25548
  })
25654
25549
  })
25655
25550
  }), isShowCustomAddress && /* @__PURE__ */ jsx("div", {
25656
- className: b2("choose-other"),
25551
+ className: b("choose-other"),
25657
25552
  onClick: onSwitch,
25658
25553
  children: /* @__PURE__ */ jsx("div", {
25659
- className: b2("choose-other-btn"),
25554
+ className: b("choose-other-btn"),
25660
25555
  children: customAndExistTitle || locale.address.chooseAnotherAddress
25661
25556
  })
25662
25557
  })]
@@ -25692,7 +25587,7 @@ const CustomRender = (props) => {
25692
25587
  ...defaultProps$7,
25693
25588
  ...props
25694
25589
  };
25695
- const b2 = cn("address");
25590
+ const b = cn("address");
25696
25591
  const [privateType] = useState(type4);
25697
25592
  const [tabIndex, setTabIndex] = useState(0);
25698
25593
  const [tabName] = useState(["province", "city", "country", "town"]);
@@ -25715,8 +25610,8 @@ const CustomRender = (props) => {
25715
25610
  }
25716
25611
  });
25717
25612
  const newData = [];
25718
- data = data.sort((a2, b22) => {
25719
- return a2.title.localeCompare(b22.title);
25613
+ data = data.sort((a2, b2) => {
25614
+ return a2.title.localeCompare(b2.title);
25720
25615
  });
25721
25616
  data.forEach((item) => {
25722
25617
  const index = newData.findIndex((value) => value.title === item.title);
@@ -25911,12 +25806,12 @@ const CustomRender = (props) => {
25911
25806
  initCustomSelected();
25912
25807
  }, [modelValue]);
25913
25808
  return /* @__PURE__ */ jsxs("div", {
25914
- className: b2("custom"),
25809
+ className: b("custom"),
25915
25810
  children: [/* @__PURE__ */ jsxs("div", {
25916
- className: b2("region-tab"),
25811
+ className: b("region-tab"),
25917
25812
  children: [selectedRegion && Object.keys(selectedRegion).map((key, index) => {
25918
25813
  return /* @__PURE__ */ jsx("div", {
25919
- className: `${b2("tab-item")} ${index === tabIndex ? "active" : ""}`,
25814
+ className: `${b("tab-item")} ${index === tabIndex ? "active" : ""}`,
25920
25815
  ref: mapRef[key],
25921
25816
  onClick: () => changeRegionTab(selectedRegion[key], index, key),
25922
25817
  children: index <= tabIndex && /* @__PURE__ */ jsx("div", {
@@ -25924,25 +25819,25 @@ const CustomRender = (props) => {
25924
25819
  })
25925
25820
  }, index);
25926
25821
  }), /* @__PURE__ */ jsx("div", {
25927
- className: b2("tab-line"),
25822
+ className: b("tab-line"),
25928
25823
  ref: regionLine,
25929
25824
  style: {
25930
25825
  left: `${lineDistance}px`
25931
25826
  }
25932
25827
  })]
25933
25828
  }), privateType === "custom" && /* @__PURE__ */ jsx("div", {
25934
- className: b2("region-con"),
25829
+ className: b("region-con"),
25935
25830
  children: /* @__PURE__ */ jsx("ul", {
25936
- className: b2("region-group"),
25831
+ className: b("region-group"),
25937
25832
  children: regionList[tabName[tabIndex]].map((item, index) => {
25938
25833
  return /* @__PURE__ */ jsx("li", {
25939
- className: b2("region-item"),
25834
+ className: b("region-item"),
25940
25835
  children: /* @__PURE__ */ jsxs("div", {
25941
25836
  onClick: () => {
25942
25837
  nextAreaList(item);
25943
25838
  },
25944
25839
  children: [selectedRegion && selectedRegion[tabName[tabIndex]].id === item.id && /* @__PURE__ */ jsx(x$e, {
25945
- className: b2("region-item--icon"),
25840
+ className: b("region-item--icon"),
25946
25841
  color: "var(--nutui-brand-color)",
25947
25842
  width: 13,
25948
25843
  height: 13
@@ -25952,10 +25847,10 @@ const CustomRender = (props) => {
25952
25847
  })
25953
25848
  })
25954
25849
  }), privateType === "custom2" && /* @__PURE__ */ jsx("div", {
25955
- className: b2("elevator-group"),
25850
+ className: b("elevator-group"),
25956
25851
  children: /* @__PURE__ */ jsx(Elevator, {
25957
25852
  height,
25958
- indexList: regionList[tabName[tabIndex]],
25853
+ list: regionList[tabName[tabIndex]],
25959
25854
  onClickItem: handleElevatorItem
25960
25855
  })
25961
25856
  })]
@@ -26017,7 +25912,7 @@ const Address = (props) => {
26017
25912
  ...defaultProps$6,
26018
25913
  ...props
26019
25914
  };
26020
- const b2 = cn("address");
25915
+ const b = cn("address");
26021
25916
  const [privateType, setPrivateType] = useState(type4);
26022
25917
  const [tabName] = useState(["province", "city", "country", "town"]);
26023
25918
  const [showPopup, setShowPopup] = useState(modelValue);
@@ -26111,7 +26006,7 @@ const Address = (props) => {
26111
26006
  };
26112
26007
  const headerRender = () => {
26113
26008
  return /* @__PURE__ */ jsxs("div", {
26114
- className: b2("header"),
26009
+ className: b("header"),
26115
26010
  children: [/* @__PURE__ */ jsx("div", {
26116
26011
  className: "arrow-back",
26117
26012
  onClick: onSwitchModule,
@@ -26119,7 +26014,7 @@ const Address = (props) => {
26119
26014
  color: "#cccccc"
26120
26015
  }))
26121
26016
  }), /* @__PURE__ */ jsx("div", {
26122
- className: b2("header__title"),
26017
+ className: b("header__title"),
26123
26018
  children: privateType === "custom" ? customAddressTitle || locale.address.selectRegion : existAddressTitle || locale.address.deliveryTo
26124
26019
  }), /* @__PURE__ */ jsx("div", {
26125
26020
  onClick: () => handClose(),
@@ -26148,7 +26043,7 @@ const Address = (props) => {
26148
26043
  closeFun();
26149
26044
  },
26150
26045
  children: /* @__PURE__ */ jsxs("div", {
26151
- className: `${b2()} ${className || ""}`,
26046
+ className: `${b()} ${className || ""}`,
26152
26047
  style: {
26153
26048
  ...style
26154
26049
  },
@@ -26213,8 +26108,8 @@ const InternalBarrage = (props, ref) => {
26213
26108
  const barrageCWidth = useRef(0);
26214
26109
  const timer = useRef(0);
26215
26110
  const index = useRef(0);
26216
- const b2 = cn("barrage");
26217
- const classes = classNames(className, b2(""));
26111
+ const b = cn("barrage");
26112
+ const classes = classNames(className, b(""));
26218
26113
  useImperativeHandle(ref, () => ({
26219
26114
  add: (word) => {
26220
26115
  const _index = index.current % barrageList.length;
@@ -26300,32 +26195,32 @@ const Card = (props) => {
26300
26195
  ...defaultProps$4,
26301
26196
  ...props
26302
26197
  };
26303
- const b2 = cn("card");
26198
+ const b = cn("card");
26304
26199
  return /* @__PURE__ */ jsxs("div", {
26305
- className: classNames(b2(), className),
26200
+ className: classNames(b(), className),
26306
26201
  style,
26307
26202
  ...rest,
26308
26203
  children: [/* @__PURE__ */ jsx("div", {
26309
- className: b2("left"),
26204
+ className: b("left"),
26310
26205
  children: /* @__PURE__ */ jsx("img", {
26311
26206
  src: imgUrl,
26312
26207
  alt: ""
26313
26208
  })
26314
26209
  }), /* @__PURE__ */ jsxs("div", {
26315
- className: b2("right"),
26210
+ className: b("right"),
26316
26211
  children: [/* @__PURE__ */ jsx("div", {
26317
- className: b2("right__title"),
26212
+ className: b("right__title"),
26318
26213
  children: title
26319
26214
  }), prolistTpl, /* @__PURE__ */ jsxs("div", {
26320
- className: b2("right__price"),
26215
+ className: b("right__price"),
26321
26216
  children: [/* @__PURE__ */ jsx(Price, {
26322
26217
  price
26323
26218
  }), originTpl || /* @__PURE__ */ jsx(Price, {
26324
- className: b2("right__price__origin"),
26219
+ className: b("right__price__origin"),
26325
26220
  price: vipPrice
26326
26221
  })]
26327
26222
  }), /* @__PURE__ */ jsx("div", {
26328
- className: b2("right__other"),
26223
+ className: b("right__other"),
26329
26224
  children: shopTagTpl || /* @__PURE__ */ jsxs(Fragment, {
26330
26225
  children: [/* @__PURE__ */ jsx(Tag, {
26331
26226
  type: "danger",
@@ -26336,9 +26231,9 @@ const Card = (props) => {
26336
26231
  })]
26337
26232
  })
26338
26233
  }), /* @__PURE__ */ jsxs("div", {
26339
- className: b2("right__shop"),
26234
+ className: b("right__shop"),
26340
26235
  children: [/* @__PURE__ */ jsx("div", {
26341
- className: b2("right__shop__name"),
26236
+ className: b("right__shop__name"),
26342
26237
  children: shopName
26343
26238
  }), footerTpl]
26344
26239
  })]
@@ -26373,7 +26268,7 @@ const Signature = (props) => {
26373
26268
  ...defaultProps$3,
26374
26269
  ...props
26375
26270
  };
26376
- const b2 = cn("signature");
26271
+ const b = cn("signature");
26377
26272
  const canvasRef = useRef(null);
26378
26273
  const wrapRef = useRef(null);
26379
26274
  const [canvasHeight, setCanvasHeight] = useState(0);
@@ -26463,26 +26358,26 @@ const Signature = (props) => {
26463
26358
  onConfirm && onConfirm(canvas, dataurl);
26464
26359
  };
26465
26360
  return /* @__PURE__ */ jsxs("div", {
26466
- className: `${b2()} ${className}`,
26361
+ className: `${b()} ${className}`,
26467
26362
  ...rest,
26468
26363
  children: [/* @__PURE__ */ jsx("div", {
26469
- className: `${b2("inner")}`,
26364
+ className: `${b("inner")}`,
26470
26365
  ref: wrapRef,
26471
26366
  children: isCanvasSupported() ? /* @__PURE__ */ jsx("canvas", {
26472
26367
  ref: canvasRef,
26473
26368
  height: canvasHeight,
26474
26369
  width: canvasWidth
26475
26370
  }) : /* @__PURE__ */ jsx("p", {
26476
- className: `${b2("unsopport")}`,
26371
+ className: `${b("unsopport")}`,
26477
26372
  children: locale.signature.unSupportTpl || unSupportTpl
26478
26373
  })
26479
26374
  }), /* @__PURE__ */ jsx(Button, {
26480
- className: `${b2("btn")}`,
26375
+ className: `${b("btn")}`,
26481
26376
  type: "default",
26482
26377
  onClick: () => handleClearBtn(),
26483
26378
  children: locale.signature.reSign
26484
26379
  }), /* @__PURE__ */ jsx(Button, {
26485
- className: `${b2("btn")}`,
26380
+ className: `${b("btn")}`,
26486
26381
  type: "primary",
26487
26382
  onClick: () => handleConfirmBtn(),
26488
26383
  children: locale.confirm
@@ -26511,7 +26406,7 @@ const TimeDetail = (props) => {
26511
26406
  ...defaultProps$2,
26512
26407
  ...props
26513
26408
  };
26514
- const b2 = cn("timedetail");
26409
+ const b = cn("timedetail");
26515
26410
  const [renderData, setRenderData] = useState([]);
26516
26411
  useEffect(() => {
26517
26412
  const currentData = times.find((timesItem) => String(timesItem.key) === String(currentKey));
@@ -26530,7 +26425,7 @@ const TimeDetail = (props) => {
26530
26425
  return initClass;
26531
26426
  };
26532
26427
  return /* @__PURE__ */ jsx("div", {
26533
- className: `${b2()} ${className || ""}`,
26428
+ className: `${b()} ${className || ""}`,
26534
26429
  children: renderData.map((item, index) => /* @__PURE__ */ jsx("span", {
26535
26430
  className: getDetailClass(item),
26536
26431
  onClick: () => handleTime(item),
@@ -26557,9 +26452,9 @@ const TimePannel = (props) => {
26557
26452
  ...defaultProps$1,
26558
26453
  ...props
26559
26454
  };
26560
- const b2 = cn("timepannel");
26455
+ const b = cn("timepannel");
26561
26456
  return /* @__PURE__ */ jsx("div", {
26562
- className: `${b2()} ${className || ""}`,
26457
+ className: `${b()} ${className || ""}`,
26563
26458
  onClick: () => change(curKey),
26564
26459
  children: date4
26565
26460
  });
@@ -26610,7 +26505,7 @@ const TimeSelect = (props) => {
26610
26505
  width: "100%",
26611
26506
  height
26612
26507
  };
26613
- const b2 = cn("timeselect");
26508
+ const b = cn("timeselect");
26614
26509
  const closeFun = () => {
26615
26510
  if (onSelect) {
26616
26511
  onSelect(activeTime);
@@ -26689,7 +26584,7 @@ const TimeSelect = (props) => {
26689
26584
  closeFun();
26690
26585
  },
26691
26586
  children: /* @__PURE__ */ jsxs("div", {
26692
- className: `${b2()} ${className || ""}`,
26587
+ className: `${b()} ${className || ""}`,
26693
26588
  children: [/* @__PURE__ */ jsx("div", {
26694
26589
  className: "nut-timeselect__title",
26695
26590
  children: title