@nutui/nutui-react-taro 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/esm/Audio.js +3 -3
  3. package/dist/esm/Icon/style/index.js +1 -2
  4. package/dist/esm/ImagePreview.js +3 -3
  5. package/dist/esm/Input.js +2 -2
  6. package/dist/esm/Range.js +2 -2
  7. package/dist/esm/Swiper.js +2 -2
  8. package/dist/esm/{audio.taro-c94fc58b.js → audio.taro-20890c93.js} +1 -1
  9. package/dist/esm/{imagepreview.taro-69d47ab0.js → imagepreview.taro-68e776f5.js} +1 -1
  10. package/dist/esm/{input.taro-eef88020.js → input.taro-65db24c3.js} +3 -3
  11. package/dist/esm/nutui-react.es.js +5 -5
  12. package/dist/esm/{range.taro-3e610b5c.js → range.taro-4cbe2469.js} +1 -4
  13. package/dist/esm/{swiper.taro-f314d67a.js → swiper.taro-852f6615.js} +8 -4
  14. package/dist/esm/types/src/packages/actionsheet/actionsheet.d.ts +1 -1
  15. package/dist/esm/types/src/packages/actionsheet/actionsheet.taro.d.ts +1 -1
  16. package/dist/esm/types/src/packages/animate/type.d.ts +2 -2
  17. package/dist/esm/types/src/packages/animatingnumbers/animatingnumbers.d.ts +1 -1
  18. package/dist/esm/types/src/packages/animatingnumbers/animatingnumbers.taro.d.ts +1 -1
  19. package/dist/esm/types/src/packages/avatar/avatar.d.ts +1 -1
  20. package/dist/esm/types/src/packages/avatar/avatar.taro.d.ts +1 -1
  21. package/dist/esm/types/src/packages/badge/badge.d.ts +1 -1
  22. package/dist/esm/types/src/packages/badge/badge.taro.d.ts +1 -1
  23. package/dist/esm/types/src/packages/button/button.d.ts +3 -3
  24. package/dist/esm/types/src/packages/button/button.taro.d.ts +4 -4
  25. package/dist/esm/types/src/packages/calendar/calendar.d.ts +1 -1
  26. package/dist/esm/types/src/packages/calendaritem/calendaritem.d.ts +2 -2
  27. package/dist/esm/types/src/packages/calendaritem/calendaritem.taro.d.ts +1 -1
  28. package/dist/esm/types/src/packages/cascader/types.d.ts +1 -1
  29. package/dist/esm/types/src/packages/col/col.d.ts +1 -1
  30. package/dist/esm/types/src/packages/col/col.taro.d.ts +1 -1
  31. package/dist/esm/types/src/packages/dialog/Mask.d.ts +1 -1
  32. package/dist/esm/types/src/packages/dialog/config.d.ts +2 -2
  33. package/dist/esm/types/src/packages/dialog/dialog.d.ts +1 -1
  34. package/dist/esm/types/src/packages/dialog/dialog.taro.d.ts +1 -1
  35. package/dist/esm/types/src/packages/divider/divider.d.ts +2 -2
  36. package/dist/esm/types/src/packages/divider/divider.taro.d.ts +2 -2
  37. package/dist/esm/types/src/packages/ellipsis/ellipsis.d.ts +1 -1
  38. package/dist/esm/types/src/packages/ellipsis/ellipsis.taro.d.ts +1 -1
  39. package/dist/esm/types/src/packages/fixednav/fixednav.d.ts +2 -2
  40. package/dist/esm/types/src/packages/fixednav/fixednav.taro.d.ts +2 -2
  41. package/dist/esm/types/src/packages/form/types.d.ts +2 -2
  42. package/dist/esm/types/src/packages/formitem/formitem.d.ts +2 -2
  43. package/dist/esm/types/src/packages/formitem/formitem.taro.d.ts +2 -2
  44. package/dist/esm/types/src/packages/formitem/types.d.ts +2 -2
  45. package/dist/esm/types/src/packages/grid/grid.d.ts +1 -1
  46. package/dist/esm/types/src/packages/grid/grid.taro.d.ts +1 -1
  47. package/dist/esm/types/src/packages/griditem/griditem.d.ts +1 -1
  48. package/dist/esm/types/src/packages/griditem/griditem.taro.d.ts +1 -1
  49. package/dist/esm/types/src/packages/image/image.d.ts +2 -2
  50. package/dist/esm/types/src/packages/image/image.taro.d.ts +2 -2
  51. package/dist/esm/types/src/packages/input/input.d.ts +5 -5
  52. package/dist/esm/types/src/packages/input/input.taro.d.ts +5 -5
  53. package/dist/esm/types/src/packages/popover/popover.d.ts +2 -2
  54. package/dist/esm/types/src/packages/popover/popover.taro.d.ts +2 -2
  55. package/dist/esm/types/src/packages/popup/popup.d.ts +1 -1
  56. package/dist/esm/types/src/packages/popup/popup.taro.d.ts +1 -1
  57. package/dist/esm/types/src/packages/progress/progress.d.ts +2 -2
  58. package/dist/esm/types/src/packages/progress/progress.taro.d.ts +2 -2
  59. package/dist/esm/types/src/packages/pulltorefresh/pulltorefresh.d.ts +1 -1
  60. package/dist/esm/types/src/packages/pulltorefresh/pulltorefresh.taro.d.ts +1 -1
  61. package/dist/esm/types/src/packages/radio/radio.d.ts +2 -2
  62. package/dist/esm/types/src/packages/radio/radio.taro.d.ts +2 -2
  63. package/dist/esm/types/src/packages/radiogroup/radiogroup.d.ts +2 -2
  64. package/dist/esm/types/src/packages/radiogroup/radiogroup.taro.d.ts +2 -2
  65. package/dist/esm/types/src/packages/range/range.d.ts +1 -2
  66. package/dist/esm/types/src/packages/range/range.taro.d.ts +1 -2
  67. package/dist/esm/types/src/packages/row/row.d.ts +1 -1
  68. package/dist/esm/types/src/packages/row/row.taro.d.ts +1 -1
  69. package/dist/esm/types/src/packages/sidenavbar/sidenavbar.d.ts +1 -1
  70. package/dist/esm/types/src/packages/sidenavbar/sidenavbar.taro.d.ts +1 -1
  71. package/dist/esm/types/src/packages/sidenavbar/type.d.ts +3 -3
  72. package/dist/esm/types/src/packages/sidenavbaritem/sidenavbaritem.d.ts +1 -1
  73. package/dist/esm/types/src/packages/sidenavbaritem/sidenavbaritem.taro.d.ts +1 -1
  74. package/dist/esm/types/src/packages/skeleton/skeleton.d.ts +1 -1
  75. package/dist/esm/types/src/packages/skeleton/skeleton.taro.d.ts +1 -1
  76. package/dist/esm/types/src/packages/subsidenavbar/subsidenavbar.d.ts +1 -1
  77. package/dist/esm/types/src/packages/subsidenavbar/subsidenavbar.taro.d.ts +1 -1
  78. package/dist/esm/types/src/packages/swipe/swipe.d.ts +2 -2
  79. package/dist/esm/types/src/packages/swipe/swipe.taro.d.ts +2 -2
  80. package/dist/esm/types/src/packages/swiper/swiper.d.ts +2 -1
  81. package/dist/esm/types/src/packages/swiper/swiper.taro.d.ts +2 -1
  82. package/dist/esm/types/src/packages/table/table.d.ts +1 -1
  83. package/dist/esm/types/src/packages/table/table.taro.d.ts +1 -1
  84. package/dist/esm/types/src/packages/tabs/tabs.d.ts +1 -1
  85. package/dist/esm/types/src/packages/tabs/tabs.taro.d.ts +1 -1
  86. package/dist/esm/types/src/packages/tag/tag.d.ts +1 -1
  87. package/dist/esm/types/src/packages/tag/tag.taro.d.ts +1 -1
  88. package/dist/esm/types/src/packages/uploader/uploader.d.ts +2 -2
  89. package/dist/esm/types/src/packages/uploader/uploader.taro.d.ts +2 -2
  90. package/dist/esm/types/src/packages/virtuallist/type.d.ts +1 -1
  91. package/dist/esm/types/src/packages/virtuallist/virtuallist.d.ts +1 -1
  92. package/dist/esm/types/src/packages/virtuallist/virtuallist.taro.d.ts +1 -1
  93. package/dist/esm/types/src/utils/get-scroll-parent.d.ts +1 -1
  94. package/dist/esm/types/src/utils/render.d.ts +1 -1
  95. package/dist/esm/types/src/utils/useTouch.d.ts +1 -1
  96. package/dist/esm/types/src/utils/useWatch.d.ts +2 -2
  97. package/dist/locales/base.js +1 -1
  98. package/dist/locales/en-US.js +1 -1
  99. package/dist/locales/id-ID.js +1 -1
  100. package/dist/locales/zh-CN.js +1 -1
  101. package/dist/locales/zh-TW.js +1 -1
  102. package/dist/locales/zh-UG.js +1 -1
  103. package/dist/nutui.react.es.js +89 -77
  104. package/dist/nutui.react.umd.js +89 -77
  105. package/dist/packages/input/input.scss +15 -0
  106. package/dist/packages/searchbar/searchbar.scss +6 -13
  107. package/dist/packages/swiper/swiper.scss +0 -3
  108. package/dist/style.css +1 -1
  109. package/dist/style.es.js +1 -1
  110. package/dist/styles/themes/default.scss +1 -0
  111. package/dist/styles/variables.scss +8 -4
  112. package/dist/types/index.d.ts +55 -55
  113. package/package.json +2 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.0-beta.0 Wed Dec 21 2022 14:37:52 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.1-beta.0 Wed Dec 28 2022 17:08:56 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -8901,7 +8901,6 @@
8901
8901
  button,
8902
8902
  vertical,
8903
8903
  marks,
8904
- change,
8905
8904
  dragStart,
8906
8905
  dragEnd,
8907
8906
  onChange,
@@ -8928,7 +8927,7 @@
8928
8927
  SetShow(true);
8929
8928
  };
8930
8929
  React.useEffect(() => {
8931
- if (modelValue) {
8930
+ if (typeof modelValue === "number") {
8932
8931
  if (!range && (modelValue < min || modelValue > max)) {
8933
8932
  SetInitValue(0);
8934
8933
  toastShow(`${modelValue} ${locale.range.rangeText}`);
@@ -9078,7 +9077,6 @@
9078
9077
  SetInitValue(value);
9079
9078
  }
9080
9079
  if ((marks || end) && !isSameValue(value, startValue)) {
9081
- change && change(value);
9082
9080
  onChange && onChange(value);
9083
9081
  }
9084
9082
  };
@@ -11188,7 +11186,8 @@
11188
11186
  `${disabled ? `${prefixCls}-disabled` : ""}`,
11189
11187
  `${required ? `${prefixCls}-required` : ""}`,
11190
11188
  `${error ? `${prefixCls}-error` : ""}`,
11191
- `${border ? `${prefixCls}-border` : ""}`
11189
+ `${border ? `${prefixCls}-border` : ""}`,
11190
+ `${slotButton || rightIcon ? `${prefixCls}-right-mark` : ""}`
11192
11191
  ].filter(Boolean).join(" ");
11193
11192
  }, [disabled, required, error, border]);
11194
11193
  const updateValue = (value, trigger = "onChange") => {
@@ -11363,7 +11362,7 @@
11363
11362
  onClick: (e2) => {
11364
11363
  handleClear(e2);
11365
11364
  }
11366
- }) : null, rightIcon && rightIcon.length > 0 ? /* @__PURE__ */ React__default["default"].createElement("div", {
11365
+ }) : null), rightIcon && rightIcon.length > 0 ? /* @__PURE__ */ React__default["default"].createElement("div", {
11367
11366
  className: "nut-input-right-icon",
11368
11367
  onClick: (e2) => {
11369
11368
  handleClickRightIcon(e2);
@@ -11375,7 +11374,7 @@
11375
11374
  size: rightIconSize
11376
11375
  })) : null, slotButton ? /* @__PURE__ */ React__default["default"].createElement("div", {
11377
11376
  className: "nut-input-button"
11378
- }, slotButton) : null), showWordLimit && maxlength ? /* @__PURE__ */ React__default["default"].createElement("div", {
11377
+ }, slotButton) : null, showWordLimit && maxlength ? /* @__PURE__ */ React__default["default"].createElement("div", {
11379
11378
  className: "nut-input-word-limit"
11380
11379
  }, /* @__PURE__ */ React__default["default"].createElement("span", {
11381
11380
  className: "nut-input-word-num"
@@ -14607,7 +14606,7 @@
14607
14606
  });
14608
14607
  Swipe.defaultProps = defaultProps$C;
14609
14608
  Swipe.displayName = "NutSwipe";
14610
- function clamp(v, min, max) {
14609
+ function clamp$1(v, min, max) {
14611
14610
  return Math.max(min, Math.min(v, max));
14612
14611
  }
14613
14612
  const V = {
@@ -14638,7 +14637,7 @@
14638
14637
  }
14639
14638
  function rubberbandIfOutOfBounds$1(position, min, max, constant = 0.15) {
14640
14639
  if (constant === 0)
14641
- return clamp(position, min, max);
14640
+ return clamp$1(position, min, max);
14642
14641
  if (position < min)
14643
14642
  return -rubberband$1(min - position, max - min, constant) + min;
14644
14643
  if (position > max)
@@ -15482,15 +15481,14 @@
15482
15481
  pointerCapture(_v, _k, {
15483
15482
  pointer: {
15484
15483
  capture = true,
15485
- buttons = 1
15484
+ buttons = 1,
15485
+ keys = true
15486
15486
  } = {}
15487
15487
  }) {
15488
15488
  this.pointerButtons = buttons;
15489
+ this.keys = keys;
15489
15490
  return !this.pointerLock && this.device === "pointer" && capture;
15490
15491
  },
15491
- keys(value = true) {
15492
- return value;
15493
- },
15494
15492
  threshold(value, _k, {
15495
15493
  filterTaps = false,
15496
15494
  tapsThreshold = 3,
@@ -15658,7 +15656,7 @@
15658
15656
  return value;
15659
15657
  }
15660
15658
  };
15661
- const _excluded$4 = ["target", "eventOptions", "window", "enabled", "transform"];
15659
+ const _excluded$3 = ["target", "eventOptions", "window", "enabled", "transform"];
15662
15660
  function resolveWith(config2 = {}, resolvers) {
15663
15661
  const result = {};
15664
15662
  for (const [key, resolver] of Object.entries(resolvers)) {
@@ -15686,7 +15684,7 @@
15686
15684
  window: window2,
15687
15685
  enabled,
15688
15686
  transform
15689
- } = _ref, rest = _objectWithoutProperties(_ref, _excluded$4);
15687
+ } = _ref, rest = _objectWithoutProperties(_ref, _excluded$3);
15690
15688
  _config.shared = resolveWith({
15691
15689
  target,
15692
15690
  eventOptions,
@@ -16221,6 +16219,7 @@
16221
16219
  const index = arr.findIndex(test);
16222
16220
  return index < 0 ? arr.length : index;
16223
16221
  }
16222
+ const clamp = (min, max, v) => Math.min(Math.max(v, min), max);
16224
16223
  const colors = {
16225
16224
  transparent: 0,
16226
16225
  aliceblue: 4042850303,
@@ -16542,6 +16541,64 @@
16542
16541
  break;
16543
16542
  return i - 1;
16544
16543
  }
16544
+ const steps = (steps2, direction = "end") => (progress) => {
16545
+ progress = direction === "end" ? Math.min(progress, 0.999) : Math.max(progress, 1e-3);
16546
+ const expanded = progress * steps2;
16547
+ const rounded = direction === "end" ? Math.floor(expanded) : Math.ceil(expanded);
16548
+ return clamp(0, 1, rounded / steps2);
16549
+ };
16550
+ const c1 = 1.70158;
16551
+ const c2 = c1 * 1.525;
16552
+ const c3 = c1 + 1;
16553
+ const c4 = 2 * Math.PI / 3;
16554
+ const c5 = 2 * Math.PI / 4.5;
16555
+ const bounceOut = (x) => {
16556
+ const n1 = 7.5625;
16557
+ const d1 = 2.75;
16558
+ if (x < 1 / d1) {
16559
+ return n1 * x * x;
16560
+ } else if (x < 2 / d1) {
16561
+ return n1 * (x -= 1.5 / d1) * x + 0.75;
16562
+ } else if (x < 2.5 / d1) {
16563
+ return n1 * (x -= 2.25 / d1) * x + 0.9375;
16564
+ } else {
16565
+ return n1 * (x -= 2.625 / d1) * x + 0.984375;
16566
+ }
16567
+ };
16568
+ const easings = {
16569
+ linear: (x) => x,
16570
+ easeInQuad: (x) => x * x,
16571
+ easeOutQuad: (x) => 1 - (1 - x) * (1 - x),
16572
+ easeInOutQuad: (x) => x < 0.5 ? 2 * x * x : 1 - Math.pow(-2 * x + 2, 2) / 2,
16573
+ easeInCubic: (x) => x * x * x,
16574
+ easeOutCubic: (x) => 1 - Math.pow(1 - x, 3),
16575
+ easeInOutCubic: (x) => x < 0.5 ? 4 * x * x * x : 1 - Math.pow(-2 * x + 2, 3) / 2,
16576
+ easeInQuart: (x) => x * x * x * x,
16577
+ easeOutQuart: (x) => 1 - Math.pow(1 - x, 4),
16578
+ easeInOutQuart: (x) => x < 0.5 ? 8 * x * x * x * x : 1 - Math.pow(-2 * x + 2, 4) / 2,
16579
+ easeInQuint: (x) => x * x * x * x * x,
16580
+ easeOutQuint: (x) => 1 - Math.pow(1 - x, 5),
16581
+ easeInOutQuint: (x) => x < 0.5 ? 16 * x * x * x * x * x : 1 - Math.pow(-2 * x + 2, 5) / 2,
16582
+ easeInSine: (x) => 1 - Math.cos(x * Math.PI / 2),
16583
+ easeOutSine: (x) => Math.sin(x * Math.PI / 2),
16584
+ easeInOutSine: (x) => -(Math.cos(Math.PI * x) - 1) / 2,
16585
+ easeInExpo: (x) => x === 0 ? 0 : Math.pow(2, 10 * x - 10),
16586
+ easeOutExpo: (x) => x === 1 ? 1 : 1 - Math.pow(2, -10 * x),
16587
+ easeInOutExpo: (x) => x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ? Math.pow(2, 20 * x - 10) / 2 : (2 - Math.pow(2, -20 * x + 10)) / 2,
16588
+ easeInCirc: (x) => 1 - Math.sqrt(1 - Math.pow(x, 2)),
16589
+ easeOutCirc: (x) => Math.sqrt(1 - Math.pow(x - 1, 2)),
16590
+ easeInOutCirc: (x) => x < 0.5 ? (1 - Math.sqrt(1 - Math.pow(2 * x, 2))) / 2 : (Math.sqrt(1 - Math.pow(-2 * x + 2, 2)) + 1) / 2,
16591
+ easeInBack: (x) => c3 * x * x * x - c1 * x * x,
16592
+ easeOutBack: (x) => 1 + c3 * Math.pow(x - 1, 3) + c1 * Math.pow(x - 1, 2),
16593
+ easeInOutBack: (x) => x < 0.5 ? Math.pow(2 * x, 2) * ((c2 + 1) * 2 * x - c2) / 2 : (Math.pow(2 * x - 2, 2) * ((c2 + 1) * (x * 2 - 2) + c2) + 2) / 2,
16594
+ easeInElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : -Math.pow(2, 10 * x - 10) * Math.sin((x * 10 - 10.75) * c4),
16595
+ easeOutElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : Math.pow(2, -10 * x) * Math.sin((x * 10 - 0.75) * c4) + 1,
16596
+ easeInOutElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ? -(Math.pow(2, 20 * x - 10) * Math.sin((20 * x - 11.125) * c5)) / 2 : Math.pow(2, -20 * x + 10) * Math.sin((20 * x - 11.125) * c5) / 2 + 1,
16597
+ easeInBounce: (x) => 1 - bounceOut(1 - x),
16598
+ easeOutBounce: bounceOut,
16599
+ easeInOutBounce: (x) => x < 0.5 ? (1 - bounceOut(1 - 2 * x)) / 2 : (1 + bounceOut(2 * x - 1)) / 2,
16600
+ steps
16601
+ };
16545
16602
  function _extends$2() {
16546
16603
  _extends$2 = Object.assign ? Object.assign.bind() : function(target) {
16547
16604
  for (var i = 1; i < arguments.length; i++) {
@@ -17223,57 +17280,6 @@
17223
17280
  friction: 120
17224
17281
  }
17225
17282
  };
17226
- const c1 = 1.70158;
17227
- const c2 = c1 * 1.525;
17228
- const c3 = c1 + 1;
17229
- const c4 = 2 * Math.PI / 3;
17230
- const c5 = 2 * Math.PI / 4.5;
17231
- const bounceOut = (x) => {
17232
- const n1 = 7.5625;
17233
- const d1 = 2.75;
17234
- if (x < 1 / d1) {
17235
- return n1 * x * x;
17236
- } else if (x < 2 / d1) {
17237
- return n1 * (x -= 1.5 / d1) * x + 0.75;
17238
- } else if (x < 2.5 / d1) {
17239
- return n1 * (x -= 2.25 / d1) * x + 0.9375;
17240
- } else {
17241
- return n1 * (x -= 2.625 / d1) * x + 0.984375;
17242
- }
17243
- };
17244
- const easings = {
17245
- linear: (x) => x,
17246
- easeInQuad: (x) => x * x,
17247
- easeOutQuad: (x) => 1 - (1 - x) * (1 - x),
17248
- easeInOutQuad: (x) => x < 0.5 ? 2 * x * x : 1 - Math.pow(-2 * x + 2, 2) / 2,
17249
- easeInCubic: (x) => x * x * x,
17250
- easeOutCubic: (x) => 1 - Math.pow(1 - x, 3),
17251
- easeInOutCubic: (x) => x < 0.5 ? 4 * x * x * x : 1 - Math.pow(-2 * x + 2, 3) / 2,
17252
- easeInQuart: (x) => x * x * x * x,
17253
- easeOutQuart: (x) => 1 - Math.pow(1 - x, 4),
17254
- easeInOutQuart: (x) => x < 0.5 ? 8 * x * x * x * x : 1 - Math.pow(-2 * x + 2, 4) / 2,
17255
- easeInQuint: (x) => x * x * x * x * x,
17256
- easeOutQuint: (x) => 1 - Math.pow(1 - x, 5),
17257
- easeInOutQuint: (x) => x < 0.5 ? 16 * x * x * x * x * x : 1 - Math.pow(-2 * x + 2, 5) / 2,
17258
- easeInSine: (x) => 1 - Math.cos(x * Math.PI / 2),
17259
- easeOutSine: (x) => Math.sin(x * Math.PI / 2),
17260
- easeInOutSine: (x) => -(Math.cos(Math.PI * x) - 1) / 2,
17261
- easeInExpo: (x) => x === 0 ? 0 : Math.pow(2, 10 * x - 10),
17262
- easeOutExpo: (x) => x === 1 ? 1 : 1 - Math.pow(2, -10 * x),
17263
- easeInOutExpo: (x) => x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ? Math.pow(2, 20 * x - 10) / 2 : (2 - Math.pow(2, -20 * x + 10)) / 2,
17264
- easeInCirc: (x) => 1 - Math.sqrt(1 - Math.pow(x, 2)),
17265
- easeOutCirc: (x) => Math.sqrt(1 - Math.pow(x - 1, 2)),
17266
- easeInOutCirc: (x) => x < 0.5 ? (1 - Math.sqrt(1 - Math.pow(2 * x, 2))) / 2 : (Math.sqrt(1 - Math.pow(-2 * x + 2, 2)) + 1) / 2,
17267
- easeInBack: (x) => c3 * x * x * x - c1 * x * x,
17268
- easeOutBack: (x) => 1 + c3 * Math.pow(x - 1, 3) + c1 * Math.pow(x - 1, 2),
17269
- easeInOutBack: (x) => x < 0.5 ? Math.pow(2 * x, 2) * ((c2 + 1) * 2 * x - c2) / 2 : (Math.pow(2 * x - 2, 2) * ((c2 + 1) * (x * 2 - 2) + c2) + 2) / 2,
17270
- easeInElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : -Math.pow(2, 10 * x - 10) * Math.sin((x * 10 - 10.75) * c4),
17271
- easeOutElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : Math.pow(2, -10 * x) * Math.sin((x * 10 - 0.75) * c4) + 1,
17272
- easeInOutElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ? -(Math.pow(2, 20 * x - 10) * Math.sin((20 * x - 11.125) * c5)) / 2 : Math.pow(2, -20 * x + 10) * Math.sin((20 * x - 11.125) * c5) / 2 + 1,
17273
- easeInBounce: (x) => 1 - bounceOut(1 - x),
17274
- easeOutBounce: bounceOut,
17275
- easeInOutBounce: (x) => x < 0.5 ? (1 - bounceOut(1 - 2 * x)) / 2 : (1 + bounceOut(2 * x - 1)) / 2
17276
- };
17277
17283
  const defaults = _extends({}, config.default, {
17278
17284
  mass: 1,
17279
17285
  damping: 1,
@@ -17469,7 +17475,7 @@
17469
17475
  };
17470
17476
  const animate = (arg1, arg2) => {
17471
17477
  const bailSignal = new BailSignal();
17472
- const skipAnimationSignal = new SkipAniamtionSignal();
17478
+ const skipAnimationSignal = new SkipAnimationSignal();
17473
17479
  return (async () => {
17474
17480
  if (globals.skipAnimation) {
17475
17481
  stopAsync(state);
@@ -17518,7 +17524,7 @@
17518
17524
  } catch (err) {
17519
17525
  if (err instanceof BailSignal) {
17520
17526
  result = err.result;
17521
- } else if (err instanceof SkipAniamtionSignal) {
17527
+ } else if (err instanceof SkipAnimationSignal) {
17522
17528
  result = err.result;
17523
17529
  } else {
17524
17530
  throw err;
@@ -17552,7 +17558,7 @@
17552
17558
  this.result = void 0;
17553
17559
  }
17554
17560
  }
17555
- class SkipAniamtionSignal extends Error {
17561
+ class SkipAnimationSignal extends Error {
17556
17562
  constructor() {
17557
17563
  super("SkipAnimationSignal");
17558
17564
  this.result = void 0;
@@ -18583,11 +18589,11 @@
18583
18589
  }
18584
18590
  return target;
18585
18591
  }
18586
- const _excluded$3 = ["children"];
18592
+ const _excluded$6 = ["children"];
18587
18593
  const SpringContext = (_ref) => {
18588
18594
  let {
18589
18595
  children
18590
- } = _ref, props = _objectWithoutPropertiesLoose$1(_ref, _excluded$3);
18596
+ } = _ref, props = _objectWithoutPropertiesLoose$1(_ref, _excluded$6);
18591
18597
  const inherited = React.useContext(ctx);
18592
18598
  const pause = props.pause || !!inherited.pause, immediate = props.immediate || !!inherited.immediate;
18593
18599
  props = useMemoOne(() => ({
@@ -18890,7 +18896,7 @@
18890
18896
  }
18891
18897
  return target;
18892
18898
  }
18893
- const _excluded$2 = ["style", "children", "scrollTop", "scrollLeft"];
18899
+ const _excluded$2 = ["style", "children", "scrollTop", "scrollLeft", "viewBox"];
18894
18900
  const isCustomPropRE = /^--/;
18895
18901
  function dangerousStyleValue(name, value) {
18896
18902
  if (value == null || typeof value === "boolean" || value === "")
@@ -18909,7 +18915,8 @@
18909
18915
  style,
18910
18916
  children,
18911
18917
  scrollTop,
18912
- scrollLeft
18918
+ scrollLeft,
18919
+ viewBox
18913
18920
  } = _ref, attributes = _objectWithoutPropertiesLoose(_ref, _excluded$2);
18914
18921
  const values = Object.values(attributes);
18915
18922
  const names = Object.keys(attributes).map((name) => isFilterElement || instance.hasAttribute(name) ? name : attributeCache[name] || (attributeCache[name] = name.replace(/([A-Z])/g, (n) => "-" + n.toLowerCase())));
@@ -18935,6 +18942,9 @@
18935
18942
  if (scrollLeft !== void 0) {
18936
18943
  instance.scrollLeft = scrollLeft;
18937
18944
  }
18945
+ if (viewBox !== void 0) {
18946
+ instance.setAttribute("viewBox", viewBox);
18947
+ }
18938
18948
  }
18939
18949
  let isUnitlessNumber = {
18940
18950
  animationIterationCount: true,
@@ -19858,6 +19868,7 @@
19858
19868
  autoPlay: 0,
19859
19869
  direction: "horizontal",
19860
19870
  paginationColor: "#fff",
19871
+ paginationBgColor: "#ddd",
19861
19872
  paginationVisible: false,
19862
19873
  loop: true,
19863
19874
  touchable: true,
@@ -20176,7 +20187,7 @@
20176
20187
  return new Promise((resolve) => {
20177
20188
  const query = Taro.createSelectorQuery();
20178
20189
  query.select(`#${element.id}`) && query.select(`#${element.id}`).boundingClientRect();
20179
- query.exec(function(res) {
20190
+ query.exec((res) => {
20180
20191
  resolve(res[0]);
20181
20192
  });
20182
20193
  });
@@ -20253,7 +20264,7 @@
20253
20264
  }));
20254
20265
  return /* @__PURE__ */ React__default["default"].createElement(DataContext.Provider, {
20255
20266
  value: parent
20256
- }, /* @__PURE__ */ React__default["default"].createElement("view", {
20267
+ }, /* @__PURE__ */ React__default["default"].createElement("div", {
20257
20268
  className: `${classes} ${className}`,
20258
20269
  ref: container,
20259
20270
  ...rest,
@@ -20280,9 +20291,10 @@
20280
20291
  return /* @__PURE__ */ React__default["default"].createElement("i", {
20281
20292
  style: (active + childCount) % childCount === index ? {
20282
20293
  backgroundColor: propSwiper.paginationColor
20283
- } : void 0,
20294
+ } : {
20295
+ backgroundColor: propSwiper.paginationBgColor
20296
+ },
20284
20297
  className: classNames({
20285
- [`${b2("pagination-item")}`]: true,
20286
20298
  active: (active + childCount) % childCount === index
20287
20299
  }),
20288
20300
  key: index
@@ -112,6 +112,21 @@ textarea {
112
112
  flex: 1;
113
113
  vertical-align: middle;
114
114
  }
115
+ &-right-mark {
116
+ .nut-input-value {
117
+ display: flex;
118
+ align-items: center;
119
+ justify-content: space-between;
120
+ }
121
+
122
+ .nut-input-inner {
123
+ flex: 1;
124
+ }
125
+ .nut-input-button,
126
+ .nut-input-right-icon {
127
+ width: auto;
128
+ }
129
+ }
115
130
  &-inner {
116
131
  position: relative;
117
132
  display: flex;
@@ -34,7 +34,6 @@
34
34
  padding: 0 20px;
35
35
  }
36
36
  .nut-searchbar {
37
- position: relative;
38
37
  display: flex;
39
38
  align-items: center;
40
39
  width: $searchbar-width;
@@ -45,21 +44,19 @@
45
44
  &__content {
46
45
  position: relative;
47
46
  flex: 1;
47
+ display: flex;
48
+ align-items: center;
49
+ justify-content: center;
50
+ height: $searchbar-input-height;
48
51
  }
49
52
  &__icon {
50
53
  position: absolute !important;
51
- z-index: 888;
52
- transform: translate(-50%, -50%);
53
- width: 15px;
54
- overflow: hidden;
55
54
  }
56
55
  &__leftin-icon {
57
- left: 15px;
58
- top: 53%;
56
+ left: 10px;
59
57
  }
60
58
  &__rightin-icon {
61
59
  right: 5px;
62
- top: 53%;
63
60
  }
64
61
  .nut-searchbar__input-box {
65
62
  display: flex;
@@ -70,14 +67,12 @@
70
67
  border: 0;
71
68
  outline: 0;
72
69
  box-sizing: border-box;
73
-
74
70
  width: $searchbar-input-width;
75
71
  height: $searchbar-input-height;
76
72
  width: 100%;
77
73
  padding: $searchbar-input-padding;
78
74
  border-radius: 0;
79
75
  font-size: $font-size-small;
80
- // box-shadow: $searchbar-input-box-shadow;
81
76
  background: $searchbar-input-background;
82
77
  color: $searchbar-input-text-color;
83
78
  }
@@ -90,9 +85,7 @@
90
85
  &__clear {
91
86
  position: absolute !important;
92
87
  z-index: 888;
93
- right: 3px;
94
- top: 47%;
95
- transform: translate(-50%, -40%);
88
+ right: 8px;
96
89
  i {
97
90
  color: $gray1 !important;
98
91
  }
@@ -30,9 +30,6 @@
30
30
  }
31
31
  }
32
32
  }
33
- &__pagination-item {
34
- background-color: $swiper-pagination-item-background-color;
35
- }
36
33
  &__pagination-vertical {
37
34
  top: 50%;
38
35
  left: 12px;