@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
  */
@@ -8874,7 +8874,6 @@ const Range = (props) => {
8874
8874
  button,
8875
8875
  vertical,
8876
8876
  marks,
8877
- change,
8878
8877
  dragStart,
8879
8878
  dragEnd,
8880
8879
  onChange,
@@ -8901,7 +8900,7 @@ const Range = (props) => {
8901
8900
  SetShow(true);
8902
8901
  };
8903
8902
  useEffect(() => {
8904
- if (modelValue) {
8903
+ if (typeof modelValue === "number") {
8905
8904
  if (!range && (modelValue < min || modelValue > max)) {
8906
8905
  SetInitValue(0);
8907
8906
  toastShow(`${modelValue} ${locale.range.rangeText}`);
@@ -9051,7 +9050,6 @@ const Range = (props) => {
9051
9050
  SetInitValue(value);
9052
9051
  }
9053
9052
  if ((marks || end) && !isSameValue(value, startValue)) {
9054
- change && change(value);
9055
9053
  onChange && onChange(value);
9056
9054
  }
9057
9055
  };
@@ -11161,7 +11159,8 @@ const Input = forwardRef((props, ref) => {
11161
11159
  `${disabled ? `${prefixCls}-disabled` : ""}`,
11162
11160
  `${required ? `${prefixCls}-required` : ""}`,
11163
11161
  `${error ? `${prefixCls}-error` : ""}`,
11164
- `${border ? `${prefixCls}-border` : ""}`
11162
+ `${border ? `${prefixCls}-border` : ""}`,
11163
+ `${slotButton || rightIcon ? `${prefixCls}-right-mark` : ""}`
11165
11164
  ].filter(Boolean).join(" ");
11166
11165
  }, [disabled, required, error, border]);
11167
11166
  const updateValue = (value, trigger = "onChange") => {
@@ -11336,7 +11335,7 @@ const Input = forwardRef((props, ref) => {
11336
11335
  onClick: (e2) => {
11337
11336
  handleClear(e2);
11338
11337
  }
11339
- }) : null, rightIcon && rightIcon.length > 0 ? /* @__PURE__ */ React__default.createElement("div", {
11338
+ }) : null), rightIcon && rightIcon.length > 0 ? /* @__PURE__ */ React__default.createElement("div", {
11340
11339
  className: "nut-input-right-icon",
11341
11340
  onClick: (e2) => {
11342
11341
  handleClickRightIcon(e2);
@@ -11348,7 +11347,7 @@ const Input = forwardRef((props, ref) => {
11348
11347
  size: rightIconSize
11349
11348
  })) : null, slotButton ? /* @__PURE__ */ React__default.createElement("div", {
11350
11349
  className: "nut-input-button"
11351
- }, slotButton) : null), showWordLimit && maxlength ? /* @__PURE__ */ React__default.createElement("div", {
11350
+ }, slotButton) : null, showWordLimit && maxlength ? /* @__PURE__ */ React__default.createElement("div", {
11352
11351
  className: "nut-input-word-limit"
11353
11352
  }, /* @__PURE__ */ React__default.createElement("span", {
11354
11353
  className: "nut-input-word-num"
@@ -14580,7 +14579,7 @@ const Swipe = forwardRef((props, instanceRef) => {
14580
14579
  });
14581
14580
  Swipe.defaultProps = defaultProps$C;
14582
14581
  Swipe.displayName = "NutSwipe";
14583
- function clamp(v, min, max) {
14582
+ function clamp$1(v, min, max) {
14584
14583
  return Math.max(min, Math.min(v, max));
14585
14584
  }
14586
14585
  const V = {
@@ -14611,7 +14610,7 @@ function rubberband$1(distance, dimension, constant) {
14611
14610
  }
14612
14611
  function rubberbandIfOutOfBounds$1(position, min, max, constant = 0.15) {
14613
14612
  if (constant === 0)
14614
- return clamp(position, min, max);
14613
+ return clamp$1(position, min, max);
14615
14614
  if (position < min)
14616
14615
  return -rubberband$1(min - position, max - min, constant) + min;
14617
14616
  if (position > max)
@@ -15455,15 +15454,14 @@ const dragConfigResolver = _objectSpread2(_objectSpread2({}, coordinatesConfigRe
15455
15454
  pointerCapture(_v, _k, {
15456
15455
  pointer: {
15457
15456
  capture = true,
15458
- buttons = 1
15457
+ buttons = 1,
15458
+ keys = true
15459
15459
  } = {}
15460
15460
  }) {
15461
15461
  this.pointerButtons = buttons;
15462
+ this.keys = keys;
15462
15463
  return !this.pointerLock && this.device === "pointer" && capture;
15463
15464
  },
15464
- keys(value = true) {
15465
- return value;
15466
- },
15467
15465
  threshold(value, _k, {
15468
15466
  filterTaps = false,
15469
15467
  tapsThreshold = 3,
@@ -15631,7 +15629,7 @@ const sharedConfigResolver = {
15631
15629
  return value;
15632
15630
  }
15633
15631
  };
15634
- const _excluded$4 = ["target", "eventOptions", "window", "enabled", "transform"];
15632
+ const _excluded$3 = ["target", "eventOptions", "window", "enabled", "transform"];
15635
15633
  function resolveWith(config2 = {}, resolvers) {
15636
15634
  const result = {};
15637
15635
  for (const [key, resolver] of Object.entries(resolvers)) {
@@ -15659,7 +15657,7 @@ function parse(newConfig, gestureKey, _config = {}) {
15659
15657
  window: window2,
15660
15658
  enabled,
15661
15659
  transform
15662
- } = _ref, rest = _objectWithoutProperties(_ref, _excluded$4);
15660
+ } = _ref, rest = _objectWithoutProperties(_ref, _excluded$3);
15663
15661
  _config.shared = resolveWith({
15664
15662
  target,
15665
15663
  eventOptions,
@@ -16194,6 +16192,7 @@ function findIndex(arr, test) {
16194
16192
  const index = arr.findIndex(test);
16195
16193
  return index < 0 ? arr.length : index;
16196
16194
  }
16195
+ const clamp = (min, max, v) => Math.min(Math.max(v, min), max);
16197
16196
  const colors = {
16198
16197
  transparent: 0,
16199
16198
  aliceblue: 4042850303,
@@ -16515,6 +16514,64 @@ function findRange(input, inputRange) {
16515
16514
  break;
16516
16515
  return i - 1;
16517
16516
  }
16517
+ const steps = (steps2, direction = "end") => (progress) => {
16518
+ progress = direction === "end" ? Math.min(progress, 0.999) : Math.max(progress, 1e-3);
16519
+ const expanded = progress * steps2;
16520
+ const rounded = direction === "end" ? Math.floor(expanded) : Math.ceil(expanded);
16521
+ return clamp(0, 1, rounded / steps2);
16522
+ };
16523
+ const c1 = 1.70158;
16524
+ const c2 = c1 * 1.525;
16525
+ const c3 = c1 + 1;
16526
+ const c4 = 2 * Math.PI / 3;
16527
+ const c5 = 2 * Math.PI / 4.5;
16528
+ const bounceOut = (x) => {
16529
+ const n1 = 7.5625;
16530
+ const d1 = 2.75;
16531
+ if (x < 1 / d1) {
16532
+ return n1 * x * x;
16533
+ } else if (x < 2 / d1) {
16534
+ return n1 * (x -= 1.5 / d1) * x + 0.75;
16535
+ } else if (x < 2.5 / d1) {
16536
+ return n1 * (x -= 2.25 / d1) * x + 0.9375;
16537
+ } else {
16538
+ return n1 * (x -= 2.625 / d1) * x + 0.984375;
16539
+ }
16540
+ };
16541
+ const easings = {
16542
+ linear: (x) => x,
16543
+ easeInQuad: (x) => x * x,
16544
+ easeOutQuad: (x) => 1 - (1 - x) * (1 - x),
16545
+ easeInOutQuad: (x) => x < 0.5 ? 2 * x * x : 1 - Math.pow(-2 * x + 2, 2) / 2,
16546
+ easeInCubic: (x) => x * x * x,
16547
+ easeOutCubic: (x) => 1 - Math.pow(1 - x, 3),
16548
+ easeInOutCubic: (x) => x < 0.5 ? 4 * x * x * x : 1 - Math.pow(-2 * x + 2, 3) / 2,
16549
+ easeInQuart: (x) => x * x * x * x,
16550
+ easeOutQuart: (x) => 1 - Math.pow(1 - x, 4),
16551
+ easeInOutQuart: (x) => x < 0.5 ? 8 * x * x * x * x : 1 - Math.pow(-2 * x + 2, 4) / 2,
16552
+ easeInQuint: (x) => x * x * x * x * x,
16553
+ easeOutQuint: (x) => 1 - Math.pow(1 - x, 5),
16554
+ easeInOutQuint: (x) => x < 0.5 ? 16 * x * x * x * x * x : 1 - Math.pow(-2 * x + 2, 5) / 2,
16555
+ easeInSine: (x) => 1 - Math.cos(x * Math.PI / 2),
16556
+ easeOutSine: (x) => Math.sin(x * Math.PI / 2),
16557
+ easeInOutSine: (x) => -(Math.cos(Math.PI * x) - 1) / 2,
16558
+ easeInExpo: (x) => x === 0 ? 0 : Math.pow(2, 10 * x - 10),
16559
+ easeOutExpo: (x) => x === 1 ? 1 : 1 - Math.pow(2, -10 * x),
16560
+ 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,
16561
+ easeInCirc: (x) => 1 - Math.sqrt(1 - Math.pow(x, 2)),
16562
+ easeOutCirc: (x) => Math.sqrt(1 - Math.pow(x - 1, 2)),
16563
+ 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,
16564
+ easeInBack: (x) => c3 * x * x * x - c1 * x * x,
16565
+ easeOutBack: (x) => 1 + c3 * Math.pow(x - 1, 3) + c1 * Math.pow(x - 1, 2),
16566
+ 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,
16567
+ easeInElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : -Math.pow(2, 10 * x - 10) * Math.sin((x * 10 - 10.75) * c4),
16568
+ easeOutElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : Math.pow(2, -10 * x) * Math.sin((x * 10 - 0.75) * c4) + 1,
16569
+ 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,
16570
+ easeInBounce: (x) => 1 - bounceOut(1 - x),
16571
+ easeOutBounce: bounceOut,
16572
+ easeInOutBounce: (x) => x < 0.5 ? (1 - bounceOut(1 - 2 * x)) / 2 : (1 + bounceOut(2 * x - 1)) / 2,
16573
+ steps
16574
+ };
16518
16575
  function _extends$2() {
16519
16576
  _extends$2 = Object.assign ? Object.assign.bind() : function(target) {
16520
16577
  for (var i = 1; i < arguments.length; i++) {
@@ -17196,57 +17253,6 @@ const config = {
17196
17253
  friction: 120
17197
17254
  }
17198
17255
  };
17199
- const c1 = 1.70158;
17200
- const c2 = c1 * 1.525;
17201
- const c3 = c1 + 1;
17202
- const c4 = 2 * Math.PI / 3;
17203
- const c5 = 2 * Math.PI / 4.5;
17204
- const bounceOut = (x) => {
17205
- const n1 = 7.5625;
17206
- const d1 = 2.75;
17207
- if (x < 1 / d1) {
17208
- return n1 * x * x;
17209
- } else if (x < 2 / d1) {
17210
- return n1 * (x -= 1.5 / d1) * x + 0.75;
17211
- } else if (x < 2.5 / d1) {
17212
- return n1 * (x -= 2.25 / d1) * x + 0.9375;
17213
- } else {
17214
- return n1 * (x -= 2.625 / d1) * x + 0.984375;
17215
- }
17216
- };
17217
- const easings = {
17218
- linear: (x) => x,
17219
- easeInQuad: (x) => x * x,
17220
- easeOutQuad: (x) => 1 - (1 - x) * (1 - x),
17221
- easeInOutQuad: (x) => x < 0.5 ? 2 * x * x : 1 - Math.pow(-2 * x + 2, 2) / 2,
17222
- easeInCubic: (x) => x * x * x,
17223
- easeOutCubic: (x) => 1 - Math.pow(1 - x, 3),
17224
- easeInOutCubic: (x) => x < 0.5 ? 4 * x * x * x : 1 - Math.pow(-2 * x + 2, 3) / 2,
17225
- easeInQuart: (x) => x * x * x * x,
17226
- easeOutQuart: (x) => 1 - Math.pow(1 - x, 4),
17227
- easeInOutQuart: (x) => x < 0.5 ? 8 * x * x * x * x : 1 - Math.pow(-2 * x + 2, 4) / 2,
17228
- easeInQuint: (x) => x * x * x * x * x,
17229
- easeOutQuint: (x) => 1 - Math.pow(1 - x, 5),
17230
- easeInOutQuint: (x) => x < 0.5 ? 16 * x * x * x * x * x : 1 - Math.pow(-2 * x + 2, 5) / 2,
17231
- easeInSine: (x) => 1 - Math.cos(x * Math.PI / 2),
17232
- easeOutSine: (x) => Math.sin(x * Math.PI / 2),
17233
- easeInOutSine: (x) => -(Math.cos(Math.PI * x) - 1) / 2,
17234
- easeInExpo: (x) => x === 0 ? 0 : Math.pow(2, 10 * x - 10),
17235
- easeOutExpo: (x) => x === 1 ? 1 : 1 - Math.pow(2, -10 * x),
17236
- 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,
17237
- easeInCirc: (x) => 1 - Math.sqrt(1 - Math.pow(x, 2)),
17238
- easeOutCirc: (x) => Math.sqrt(1 - Math.pow(x - 1, 2)),
17239
- 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,
17240
- easeInBack: (x) => c3 * x * x * x - c1 * x * x,
17241
- easeOutBack: (x) => 1 + c3 * Math.pow(x - 1, 3) + c1 * Math.pow(x - 1, 2),
17242
- 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,
17243
- easeInElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : -Math.pow(2, 10 * x - 10) * Math.sin((x * 10 - 10.75) * c4),
17244
- easeOutElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : Math.pow(2, -10 * x) * Math.sin((x * 10 - 0.75) * c4) + 1,
17245
- 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,
17246
- easeInBounce: (x) => 1 - bounceOut(1 - x),
17247
- easeOutBounce: bounceOut,
17248
- easeInOutBounce: (x) => x < 0.5 ? (1 - bounceOut(1 - 2 * x)) / 2 : (1 + bounceOut(2 * x - 1)) / 2
17249
- };
17250
17256
  const defaults = _extends({}, config.default, {
17251
17257
  mass: 1,
17252
17258
  damping: 1,
@@ -17442,7 +17448,7 @@ function runAsync(to2, props, state, target) {
17442
17448
  };
17443
17449
  const animate = (arg1, arg2) => {
17444
17450
  const bailSignal = new BailSignal();
17445
- const skipAnimationSignal = new SkipAniamtionSignal();
17451
+ const skipAnimationSignal = new SkipAnimationSignal();
17446
17452
  return (async () => {
17447
17453
  if (globals.skipAnimation) {
17448
17454
  stopAsync(state);
@@ -17491,7 +17497,7 @@ function runAsync(to2, props, state, target) {
17491
17497
  } catch (err) {
17492
17498
  if (err instanceof BailSignal) {
17493
17499
  result = err.result;
17494
- } else if (err instanceof SkipAniamtionSignal) {
17500
+ } else if (err instanceof SkipAnimationSignal) {
17495
17501
  result = err.result;
17496
17502
  } else {
17497
17503
  throw err;
@@ -17525,7 +17531,7 @@ class BailSignal extends Error {
17525
17531
  this.result = void 0;
17526
17532
  }
17527
17533
  }
17528
- class SkipAniamtionSignal extends Error {
17534
+ class SkipAnimationSignal extends Error {
17529
17535
  constructor() {
17530
17536
  super("SkipAnimationSignal");
17531
17537
  this.result = void 0;
@@ -18556,11 +18562,11 @@ function _objectWithoutPropertiesLoose$1(source, excluded) {
18556
18562
  }
18557
18563
  return target;
18558
18564
  }
18559
- const _excluded$3 = ["children"];
18565
+ const _excluded$6 = ["children"];
18560
18566
  const SpringContext = (_ref) => {
18561
18567
  let {
18562
18568
  children
18563
- } = _ref, props = _objectWithoutPropertiesLoose$1(_ref, _excluded$3);
18569
+ } = _ref, props = _objectWithoutPropertiesLoose$1(_ref, _excluded$6);
18564
18570
  const inherited = useContext(ctx);
18565
18571
  const pause = props.pause || !!inherited.pause, immediate = props.immediate || !!inherited.immediate;
18566
18572
  props = useMemoOne(() => ({
@@ -18863,7 +18869,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
18863
18869
  }
18864
18870
  return target;
18865
18871
  }
18866
- const _excluded$2 = ["style", "children", "scrollTop", "scrollLeft"];
18872
+ const _excluded$2 = ["style", "children", "scrollTop", "scrollLeft", "viewBox"];
18867
18873
  const isCustomPropRE = /^--/;
18868
18874
  function dangerousStyleValue(name, value) {
18869
18875
  if (value == null || typeof value === "boolean" || value === "")
@@ -18882,7 +18888,8 @@ function applyAnimatedValues(instance, props) {
18882
18888
  style,
18883
18889
  children,
18884
18890
  scrollTop,
18885
- scrollLeft
18891
+ scrollLeft,
18892
+ viewBox
18886
18893
  } = _ref, attributes = _objectWithoutPropertiesLoose(_ref, _excluded$2);
18887
18894
  const values = Object.values(attributes);
18888
18895
  const names = Object.keys(attributes).map((name) => isFilterElement || instance.hasAttribute(name) ? name : attributeCache[name] || (attributeCache[name] = name.replace(/([A-Z])/g, (n) => "-" + n.toLowerCase())));
@@ -18908,6 +18915,9 @@ function applyAnimatedValues(instance, props) {
18908
18915
  if (scrollLeft !== void 0) {
18909
18916
  instance.scrollLeft = scrollLeft;
18910
18917
  }
18918
+ if (viewBox !== void 0) {
18919
+ instance.setAttribute("viewBox", viewBox);
18920
+ }
18911
18921
  }
18912
18922
  let isUnitlessNumber = {
18913
18923
  animationIterationCount: true,
@@ -19831,6 +19841,7 @@ const defaultProps$w = {
19831
19841
  autoPlay: 0,
19832
19842
  direction: "horizontal",
19833
19843
  paginationColor: "#fff",
19844
+ paginationBgColor: "#ddd",
19834
19845
  paginationVisible: false,
19835
19846
  loop: true,
19836
19847
  touchable: true,
@@ -20149,7 +20160,7 @@ const Swiper = React__default.forwardRef((props, ref) => {
20149
20160
  return new Promise((resolve) => {
20150
20161
  const query = createSelectorQuery();
20151
20162
  query.select(`#${element.id}`) && query.select(`#${element.id}`).boundingClientRect();
20152
- query.exec(function(res) {
20163
+ query.exec((res) => {
20153
20164
  resolve(res[0]);
20154
20165
  });
20155
20166
  });
@@ -20226,7 +20237,7 @@ const Swiper = React__default.forwardRef((props, ref) => {
20226
20237
  }));
20227
20238
  return /* @__PURE__ */ React__default.createElement(DataContext.Provider, {
20228
20239
  value: parent
20229
- }, /* @__PURE__ */ React__default.createElement("view", {
20240
+ }, /* @__PURE__ */ React__default.createElement("div", {
20230
20241
  className: `${classes} ${className}`,
20231
20242
  ref: container,
20232
20243
  ...rest,
@@ -20253,9 +20264,10 @@ const Swiper = React__default.forwardRef((props, ref) => {
20253
20264
  return /* @__PURE__ */ React__default.createElement("i", {
20254
20265
  style: (active + childCount) % childCount === index ? {
20255
20266
  backgroundColor: propSwiper.paginationColor
20256
- } : void 0,
20267
+ } : {
20268
+ backgroundColor: propSwiper.paginationBgColor
20269
+ },
20257
20270
  className: classNames({
20258
- [`${b2("pagination-item")}`]: true,
20259
20271
  active: (active + childCount) % childCount === index
20260
20272
  }),
20261
20273
  key: index