@nutui/nutui-react 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 (74) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/esm/Icon/style/index.js +1 -2
  3. package/dist/esm/Input.js +3 -3
  4. package/dist/esm/MenuItem.js +1 -1
  5. package/dist/esm/Overlay.js +2 -2
  6. package/dist/esm/Popup.js +3 -2
  7. package/dist/esm/Range.js +1 -3
  8. package/dist/esm/Swiper.js +8 -4
  9. package/dist/esm/{overlay-ed3eb37d.js → overlay-41da5070.js} +1 -1
  10. package/dist/esm/types/src/packages/actionsheet/actionsheet.d.ts +1 -1
  11. package/dist/esm/types/src/packages/animate/type.d.ts +2 -2
  12. package/dist/esm/types/src/packages/animatingnumbers/animatingnumbers.d.ts +1 -1
  13. package/dist/esm/types/src/packages/avatar/avatar.d.ts +1 -1
  14. package/dist/esm/types/src/packages/badge/badge.d.ts +1 -1
  15. package/dist/esm/types/src/packages/button/button.d.ts +3 -3
  16. package/dist/esm/types/src/packages/calendar/calendar.d.ts +1 -1
  17. package/dist/esm/types/src/packages/calendaritem/calendaritem.d.ts +2 -2
  18. package/dist/esm/types/src/packages/cascader/types.d.ts +1 -1
  19. package/dist/esm/types/src/packages/col/col.d.ts +1 -1
  20. package/dist/esm/types/src/packages/dialog/Mask.d.ts +1 -1
  21. package/dist/esm/types/src/packages/dialog/config.d.ts +2 -2
  22. package/dist/esm/types/src/packages/dialog/dialog.d.ts +1 -1
  23. package/dist/esm/types/src/packages/divider/divider.d.ts +2 -2
  24. package/dist/esm/types/src/packages/ellipsis/ellipsis.d.ts +1 -1
  25. package/dist/esm/types/src/packages/fixednav/fixednav.d.ts +2 -2
  26. package/dist/esm/types/src/packages/form/types.d.ts +2 -2
  27. package/dist/esm/types/src/packages/formitem/formitem.d.ts +2 -2
  28. package/dist/esm/types/src/packages/formitem/types.d.ts +2 -2
  29. package/dist/esm/types/src/packages/grid/grid.d.ts +1 -1
  30. package/dist/esm/types/src/packages/griditem/griditem.d.ts +1 -1
  31. package/dist/esm/types/src/packages/image/image.d.ts +2 -2
  32. package/dist/esm/types/src/packages/input/input.d.ts +5 -5
  33. package/dist/esm/types/src/packages/popover/popover.d.ts +2 -2
  34. package/dist/esm/types/src/packages/popup/popup.d.ts +1 -1
  35. package/dist/esm/types/src/packages/progress/progress.d.ts +2 -2
  36. package/dist/esm/types/src/packages/pulltorefresh/pulltorefresh.d.ts +1 -1
  37. package/dist/esm/types/src/packages/radio/radio.d.ts +2 -2
  38. package/dist/esm/types/src/packages/radiogroup/radiogroup.d.ts +2 -2
  39. package/dist/esm/types/src/packages/range/range.d.ts +1 -2
  40. package/dist/esm/types/src/packages/row/row.d.ts +1 -1
  41. package/dist/esm/types/src/packages/sidenavbar/sidenavbar.d.ts +1 -1
  42. package/dist/esm/types/src/packages/sidenavbar/type.d.ts +3 -3
  43. package/dist/esm/types/src/packages/sidenavbaritem/sidenavbaritem.d.ts +1 -1
  44. package/dist/esm/types/src/packages/skeleton/skeleton.d.ts +1 -1
  45. package/dist/esm/types/src/packages/subsidenavbar/subsidenavbar.d.ts +1 -1
  46. package/dist/esm/types/src/packages/swipe/swipe.d.ts +2 -2
  47. package/dist/esm/types/src/packages/swiper/swiper.d.ts +2 -1
  48. package/dist/esm/types/src/packages/table/table.d.ts +1 -1
  49. package/dist/esm/types/src/packages/tabs/tabs.d.ts +1 -1
  50. package/dist/esm/types/src/packages/tag/tag.d.ts +1 -1
  51. package/dist/esm/types/src/packages/uploader/uploader.d.ts +2 -2
  52. package/dist/esm/types/src/packages/virtuallist/type.d.ts +1 -1
  53. package/dist/esm/types/src/packages/virtuallist/virtuallist.d.ts +1 -1
  54. package/dist/esm/types/src/utils/get-scroll-parent.d.ts +1 -1
  55. package/dist/esm/types/src/utils/render.d.ts +1 -1
  56. package/dist/esm/types/src/utils/useTouch.d.ts +1 -1
  57. package/dist/esm/types/src/utils/useWatch.d.ts +2 -2
  58. package/dist/locales/base.js +1 -1
  59. package/dist/locales/en-US.js +1 -1
  60. package/dist/locales/id-ID.js +1 -1
  61. package/dist/locales/zh-CN.js +1 -1
  62. package/dist/locales/zh-TW.js +1 -1
  63. package/dist/locales/zh-UG.js +1 -1
  64. package/dist/nutui.react.es.js +90 -78
  65. package/dist/nutui.react.umd.js +90 -78
  66. package/dist/packages/input/input.scss +15 -0
  67. package/dist/packages/searchbar/searchbar.scss +6 -13
  68. package/dist/packages/swiper/swiper.scss +0 -3
  69. package/dist/style.css +1 -1
  70. package/dist/style.es.js +1 -1
  71. package/dist/styles/themes/default.scss +1 -0
  72. package/dist/styles/variables.scss +8 -4
  73. package/dist/types/index.d.ts +56 -56
  74. package/package.json +2 -1
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type Data = any;
2
+ export type Data = any;
3
3
  export interface VirtualListState {
4
4
  startOffset: number;
5
5
  startIndex: number;
@@ -1,4 +1,4 @@
1
1
  import { FunctionComponent } from 'react';
2
2
  import { BasicVirtualListProps } from './type';
3
- export declare type VirtualListProps = BasicVirtualListProps;
3
+ export type VirtualListProps = BasicVirtualListProps;
4
4
  export declare const VirtualList: FunctionComponent<VirtualListProps>;
@@ -1,3 +1,3 @@
1
- declare type ScrollElement = HTMLElement | Window;
1
+ type ScrollElement = HTMLElement | Window;
2
2
  export declare function getScrollParent(el: Element, root?: ScrollElement | null | undefined): Window | Element | null | undefined;
3
3
  export {};
@@ -1,7 +1,7 @@
1
1
  import { ReactElement } from 'react';
2
2
  import type { Root } from 'react-dom/client';
3
3
  declare const MARK = "__nutui_react_root__";
4
- declare type ContainerType = (Element | DocumentFragment) & {
4
+ type ContainerType = (Element | DocumentFragment) & {
5
5
  [MARK]?: Root;
6
6
  };
7
7
  export declare function render(node: ReactElement, container: ContainerType): void;
@@ -1,4 +1,4 @@
1
- declare type Direction = '' | 'vertical' | 'horizontal';
1
+ type Direction = '' | 'vertical' | 'horizontal';
2
2
  export declare function useTouch(): {
3
3
  move: EventListener;
4
4
  start: EventListener;
@@ -1,5 +1,5 @@
1
- declare type Callback<T> = (prev: T | undefined) => void;
2
- declare type Config = {
1
+ type Callback<T> = (prev: T | undefined) => void;
2
+ type Config = {
3
3
  immediate: boolean;
4
4
  };
5
5
  declare function useWatch<T>(dep: T, callback: Callback<T>, config?: Config): () => void;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.4.0-beta.1 Wed Dec 21 2022 14:30:05 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.4.1-beta.0 Wed Dec 28 2022 16:48:51 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.4.0-beta.1 Wed Dec 21 2022 14:30:05 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.4.1-beta.0 Wed Dec 28 2022 16:48:51 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.4.0-beta.1 Wed Dec 21 2022 14:30:05 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.4.1-beta.0 Wed Dec 28 2022 16:48:51 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.4.0-beta.1 Wed Dec 21 2022 14:30:05 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.4.1-beta.0 Wed Dec 28 2022 16:48:51 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.4.0-beta.1 Wed Dec 21 2022 14:30:05 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.4.1-beta.0 Wed Dec 28 2022 16:48:51 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.4.0-beta.1 Wed Dec 21 2022 14:30:05 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.4.1-beta.0 Wed Dec 28 2022 16:48:51 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.4.0-beta.1 Wed Dec 21 2022 14:29:34 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.4.1-beta.0 Wed Dec 28 2022 16:47:00 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -398,7 +398,7 @@ var classnames = { exports: {} };
398
398
  })(classnames);
399
399
  var classNames = classnames.exports;
400
400
  const defaultOverlayProps = {
401
- zIndex: 2e3,
401
+ zIndex: 1e3,
402
402
  duration: 0.3,
403
403
  overlayClass: "",
404
404
  closeOnClickOverlay: true,
@@ -969,7 +969,7 @@ const defaultProps$1o = {
969
969
  },
970
970
  ...defaultOverlayProps
971
971
  };
972
- let _zIndex = 2e3;
972
+ let _zIndex = 1e3;
973
973
  const Popup = (props) => {
974
974
  const {
975
975
  children,
@@ -7704,7 +7704,7 @@ const TabbarItem = (props) => {
7704
7704
  ])
7705
7705
  }, tabTitle)));
7706
7706
  };
7707
- function clamp(v, min, max) {
7707
+ function clamp$1(v, min, max) {
7708
7708
  return Math.max(min, Math.min(v, max));
7709
7709
  }
7710
7710
  const V = {
@@ -7735,7 +7735,7 @@ function rubberband$1(distance, dimension, constant) {
7735
7735
  }
7736
7736
  function rubberbandIfOutOfBounds$1(position, min, max, constant = 0.15) {
7737
7737
  if (constant === 0)
7738
- return clamp(position, min, max);
7738
+ return clamp$1(position, min, max);
7739
7739
  if (position < min)
7740
7740
  return -rubberband$1(min - position, max - min, constant) + min;
7741
7741
  if (position > max)
@@ -8624,15 +8624,14 @@ const dragConfigResolver = _objectSpread2(_objectSpread2({}, coordinatesConfigRe
8624
8624
  pointerCapture(_v, _k, {
8625
8625
  pointer: {
8626
8626
  capture = true,
8627
- buttons = 1
8627
+ buttons = 1,
8628
+ keys = true
8628
8629
  } = {}
8629
8630
  }) {
8630
8631
  this.pointerButtons = buttons;
8632
+ this.keys = keys;
8631
8633
  return !this.pointerLock && this.device === "pointer" && capture;
8632
8634
  },
8633
- keys(value = true) {
8634
- return value;
8635
- },
8636
8635
  threshold(value, _k, {
8637
8636
  filterTaps = false,
8638
8637
  tapsThreshold = 3,
@@ -9233,7 +9232,7 @@ const sharedConfigResolver = {
9233
9232
  return value;
9234
9233
  }
9235
9234
  };
9236
- const _excluded$4 = ["target", "eventOptions", "window", "enabled", "transform"];
9235
+ const _excluded$3 = ["target", "eventOptions", "window", "enabled", "transform"];
9237
9236
  function resolveWith(config2 = {}, resolvers) {
9238
9237
  const result = {};
9239
9238
  for (const [key, resolver] of Object.entries(resolvers)) {
@@ -9261,7 +9260,7 @@ function parse(newConfig, gestureKey, _config = {}) {
9261
9260
  window: window2,
9262
9261
  enabled,
9263
9262
  transform
9264
- } = _ref, rest = _objectWithoutProperties(_ref, _excluded$4);
9263
+ } = _ref, rest = _objectWithoutProperties(_ref, _excluded$3);
9265
9264
  _config.shared = resolveWith({
9266
9265
  target,
9267
9266
  eventOptions,
@@ -9862,6 +9861,7 @@ function findIndex(arr, test) {
9862
9861
  const index = arr.findIndex(test);
9863
9862
  return index < 0 ? arr.length : index;
9864
9863
  }
9864
+ const clamp = (min, max, v) => Math.min(Math.max(v, min), max);
9865
9865
  const colors = {
9866
9866
  transparent: 0,
9867
9867
  aliceblue: 4042850303,
@@ -10183,6 +10183,64 @@ function findRange(input, inputRange) {
10183
10183
  break;
10184
10184
  return i - 1;
10185
10185
  }
10186
+ const steps = (steps2, direction = "end") => (progress) => {
10187
+ progress = direction === "end" ? Math.min(progress, 0.999) : Math.max(progress, 1e-3);
10188
+ const expanded = progress * steps2;
10189
+ const rounded = direction === "end" ? Math.floor(expanded) : Math.ceil(expanded);
10190
+ return clamp(0, 1, rounded / steps2);
10191
+ };
10192
+ const c1 = 1.70158;
10193
+ const c2 = c1 * 1.525;
10194
+ const c3 = c1 + 1;
10195
+ const c4 = 2 * Math.PI / 3;
10196
+ const c5 = 2 * Math.PI / 4.5;
10197
+ const bounceOut = (x) => {
10198
+ const n1 = 7.5625;
10199
+ const d1 = 2.75;
10200
+ if (x < 1 / d1) {
10201
+ return n1 * x * x;
10202
+ } else if (x < 2 / d1) {
10203
+ return n1 * (x -= 1.5 / d1) * x + 0.75;
10204
+ } else if (x < 2.5 / d1) {
10205
+ return n1 * (x -= 2.25 / d1) * x + 0.9375;
10206
+ } else {
10207
+ return n1 * (x -= 2.625 / d1) * x + 0.984375;
10208
+ }
10209
+ };
10210
+ const easings = {
10211
+ linear: (x) => x,
10212
+ easeInQuad: (x) => x * x,
10213
+ easeOutQuad: (x) => 1 - (1 - x) * (1 - x),
10214
+ easeInOutQuad: (x) => x < 0.5 ? 2 * x * x : 1 - Math.pow(-2 * x + 2, 2) / 2,
10215
+ easeInCubic: (x) => x * x * x,
10216
+ easeOutCubic: (x) => 1 - Math.pow(1 - x, 3),
10217
+ easeInOutCubic: (x) => x < 0.5 ? 4 * x * x * x : 1 - Math.pow(-2 * x + 2, 3) / 2,
10218
+ easeInQuart: (x) => x * x * x * x,
10219
+ easeOutQuart: (x) => 1 - Math.pow(1 - x, 4),
10220
+ easeInOutQuart: (x) => x < 0.5 ? 8 * x * x * x * x : 1 - Math.pow(-2 * x + 2, 4) / 2,
10221
+ easeInQuint: (x) => x * x * x * x * x,
10222
+ easeOutQuint: (x) => 1 - Math.pow(1 - x, 5),
10223
+ easeInOutQuint: (x) => x < 0.5 ? 16 * x * x * x * x * x : 1 - Math.pow(-2 * x + 2, 5) / 2,
10224
+ easeInSine: (x) => 1 - Math.cos(x * Math.PI / 2),
10225
+ easeOutSine: (x) => Math.sin(x * Math.PI / 2),
10226
+ easeInOutSine: (x) => -(Math.cos(Math.PI * x) - 1) / 2,
10227
+ easeInExpo: (x) => x === 0 ? 0 : Math.pow(2, 10 * x - 10),
10228
+ easeOutExpo: (x) => x === 1 ? 1 : 1 - Math.pow(2, -10 * x),
10229
+ 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,
10230
+ easeInCirc: (x) => 1 - Math.sqrt(1 - Math.pow(x, 2)),
10231
+ easeOutCirc: (x) => Math.sqrt(1 - Math.pow(x - 1, 2)),
10232
+ 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,
10233
+ easeInBack: (x) => c3 * x * x * x - c1 * x * x,
10234
+ easeOutBack: (x) => 1 + c3 * Math.pow(x - 1, 3) + c1 * Math.pow(x - 1, 2),
10235
+ 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,
10236
+ easeInElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : -Math.pow(2, 10 * x - 10) * Math.sin((x * 10 - 10.75) * c4),
10237
+ easeOutElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : Math.pow(2, -10 * x) * Math.sin((x * 10 - 0.75) * c4) + 1,
10238
+ 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,
10239
+ easeInBounce: (x) => 1 - bounceOut(1 - x),
10240
+ easeOutBounce: bounceOut,
10241
+ easeInOutBounce: (x) => x < 0.5 ? (1 - bounceOut(1 - 2 * x)) / 2 : (1 + bounceOut(2 * x - 1)) / 2,
10242
+ steps
10243
+ };
10186
10244
  function _extends$3() {
10187
10245
  _extends$3 = Object.assign ? Object.assign.bind() : function(target) {
10188
10246
  for (var i = 1; i < arguments.length; i++) {
@@ -10864,57 +10922,6 @@ const config = {
10864
10922
  friction: 120
10865
10923
  }
10866
10924
  };
10867
- const c1 = 1.70158;
10868
- const c2 = c1 * 1.525;
10869
- const c3 = c1 + 1;
10870
- const c4 = 2 * Math.PI / 3;
10871
- const c5 = 2 * Math.PI / 4.5;
10872
- const bounceOut = (x) => {
10873
- const n1 = 7.5625;
10874
- const d1 = 2.75;
10875
- if (x < 1 / d1) {
10876
- return n1 * x * x;
10877
- } else if (x < 2 / d1) {
10878
- return n1 * (x -= 1.5 / d1) * x + 0.75;
10879
- } else if (x < 2.5 / d1) {
10880
- return n1 * (x -= 2.25 / d1) * x + 0.9375;
10881
- } else {
10882
- return n1 * (x -= 2.625 / d1) * x + 0.984375;
10883
- }
10884
- };
10885
- const easings = {
10886
- linear: (x) => x,
10887
- easeInQuad: (x) => x * x,
10888
- easeOutQuad: (x) => 1 - (1 - x) * (1 - x),
10889
- easeInOutQuad: (x) => x < 0.5 ? 2 * x * x : 1 - Math.pow(-2 * x + 2, 2) / 2,
10890
- easeInCubic: (x) => x * x * x,
10891
- easeOutCubic: (x) => 1 - Math.pow(1 - x, 3),
10892
- easeInOutCubic: (x) => x < 0.5 ? 4 * x * x * x : 1 - Math.pow(-2 * x + 2, 3) / 2,
10893
- easeInQuart: (x) => x * x * x * x,
10894
- easeOutQuart: (x) => 1 - Math.pow(1 - x, 4),
10895
- easeInOutQuart: (x) => x < 0.5 ? 8 * x * x * x * x : 1 - Math.pow(-2 * x + 2, 4) / 2,
10896
- easeInQuint: (x) => x * x * x * x * x,
10897
- easeOutQuint: (x) => 1 - Math.pow(1 - x, 5),
10898
- easeInOutQuint: (x) => x < 0.5 ? 16 * x * x * x * x * x : 1 - Math.pow(-2 * x + 2, 5) / 2,
10899
- easeInSine: (x) => 1 - Math.cos(x * Math.PI / 2),
10900
- easeOutSine: (x) => Math.sin(x * Math.PI / 2),
10901
- easeInOutSine: (x) => -(Math.cos(Math.PI * x) - 1) / 2,
10902
- easeInExpo: (x) => x === 0 ? 0 : Math.pow(2, 10 * x - 10),
10903
- easeOutExpo: (x) => x === 1 ? 1 : 1 - Math.pow(2, -10 * x),
10904
- 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,
10905
- easeInCirc: (x) => 1 - Math.sqrt(1 - Math.pow(x, 2)),
10906
- easeOutCirc: (x) => Math.sqrt(1 - Math.pow(x - 1, 2)),
10907
- 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,
10908
- easeInBack: (x) => c3 * x * x * x - c1 * x * x,
10909
- easeOutBack: (x) => 1 + c3 * Math.pow(x - 1, 3) + c1 * Math.pow(x - 1, 2),
10910
- 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,
10911
- easeInElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : -Math.pow(2, 10 * x - 10) * Math.sin((x * 10 - 10.75) * c4),
10912
- easeOutElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : Math.pow(2, -10 * x) * Math.sin((x * 10 - 0.75) * c4) + 1,
10913
- 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,
10914
- easeInBounce: (x) => 1 - bounceOut(1 - x),
10915
- easeOutBounce: bounceOut,
10916
- easeInOutBounce: (x) => x < 0.5 ? (1 - bounceOut(1 - 2 * x)) / 2 : (1 + bounceOut(2 * x - 1)) / 2
10917
- };
10918
10925
  const defaults = _extends$1({}, config.default, {
10919
10926
  mass: 1,
10920
10927
  damping: 1,
@@ -11110,7 +11117,7 @@ function runAsync(to2, props, state, target) {
11110
11117
  };
11111
11118
  const animate = (arg1, arg2) => {
11112
11119
  const bailSignal = new BailSignal();
11113
- const skipAnimationSignal = new SkipAniamtionSignal();
11120
+ const skipAnimationSignal = new SkipAnimationSignal();
11114
11121
  return (async () => {
11115
11122
  if (globals.skipAnimation) {
11116
11123
  stopAsync(state);
@@ -11159,7 +11166,7 @@ function runAsync(to2, props, state, target) {
11159
11166
  } catch (err) {
11160
11167
  if (err instanceof BailSignal) {
11161
11168
  result = err.result;
11162
- } else if (err instanceof SkipAniamtionSignal) {
11169
+ } else if (err instanceof SkipAnimationSignal) {
11163
11170
  result = err.result;
11164
11171
  } else {
11165
11172
  throw err;
@@ -11193,7 +11200,7 @@ class BailSignal extends Error {
11193
11200
  this.result = void 0;
11194
11201
  }
11195
11202
  }
11196
- class SkipAniamtionSignal extends Error {
11203
+ class SkipAnimationSignal extends Error {
11197
11204
  constructor() {
11198
11205
  super("SkipAnimationSignal");
11199
11206
  this.result = void 0;
@@ -12224,11 +12231,11 @@ function _objectWithoutPropertiesLoose$1(source, excluded) {
12224
12231
  }
12225
12232
  return target;
12226
12233
  }
12227
- const _excluded$3 = ["children"];
12234
+ const _excluded$6 = ["children"];
12228
12235
  const SpringContext = (_ref) => {
12229
12236
  let {
12230
12237
  children
12231
- } = _ref, props = _objectWithoutPropertiesLoose$1(_ref, _excluded$3);
12238
+ } = _ref, props = _objectWithoutPropertiesLoose$1(_ref, _excluded$6);
12232
12239
  const inherited = useContext(ctx);
12233
12240
  const pause = props.pause || !!inherited.pause, immediate = props.immediate || !!inherited.immediate;
12234
12241
  props = useMemoOne(() => ({
@@ -12531,7 +12538,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
12531
12538
  }
12532
12539
  return target;
12533
12540
  }
12534
- const _excluded$2 = ["style", "children", "scrollTop", "scrollLeft"];
12541
+ const _excluded$2 = ["style", "children", "scrollTop", "scrollLeft", "viewBox"];
12535
12542
  const isCustomPropRE = /^--/;
12536
12543
  function dangerousStyleValue(name, value) {
12537
12544
  if (value == null || typeof value === "boolean" || value === "")
@@ -12550,7 +12557,8 @@ function applyAnimatedValues(instance, props) {
12550
12557
  style,
12551
12558
  children,
12552
12559
  scrollTop,
12553
- scrollLeft
12560
+ scrollLeft,
12561
+ viewBox
12554
12562
  } = _ref, attributes = _objectWithoutPropertiesLoose(_ref, _excluded$2);
12555
12563
  const values = Object.values(attributes);
12556
12564
  const names = Object.keys(attributes).map((name) => isFilterElement || instance.hasAttribute(name) ? name : attributeCache[name] || (attributeCache[name] = name.replace(/([A-Z])/g, (n) => "-" + n.toLowerCase())));
@@ -12576,6 +12584,9 @@ function applyAnimatedValues(instance, props) {
12576
12584
  if (scrollLeft !== void 0) {
12577
12585
  instance.scrollLeft = scrollLeft;
12578
12586
  }
12587
+ if (viewBox !== void 0) {
12588
+ instance.setAttribute("viewBox", viewBox);
12589
+ }
12579
12590
  }
12580
12591
  let isUnitlessNumber = {
12581
12592
  animationIterationCount: true,
@@ -14083,7 +14094,6 @@ const Range = (props) => {
14083
14094
  button,
14084
14095
  vertical,
14085
14096
  marks,
14086
- change,
14087
14097
  dragStart,
14088
14098
  dragEnd,
14089
14099
  onChange,
@@ -14104,7 +14114,7 @@ const Range = (props) => {
14104
14114
  const root = useRef(null);
14105
14115
  const [marksList, SetMarksList] = useState([]);
14106
14116
  useEffect(() => {
14107
- if (modelValue) {
14117
+ if (typeof modelValue === "number") {
14108
14118
  if (!range3 && (modelValue < min || modelValue > max)) {
14109
14119
  SetInitValue(0);
14110
14120
  Toast.text(`${modelValue} ${locale.range.rangeText}`);
@@ -14254,7 +14264,6 @@ const Range = (props) => {
14254
14264
  SetInitValue(value);
14255
14265
  }
14256
14266
  if ((marks || end) && !isSameValue(value, startValue)) {
14257
- change && change(value);
14258
14267
  onChange && onChange(value);
14259
14268
  }
14260
14269
  };
@@ -16557,7 +16566,8 @@ const Input = forwardRef((props, ref) => {
16557
16566
  `${disabled ? `${prefixCls}-disabled` : ""}`,
16558
16567
  `${required4 ? `${prefixCls}-required` : ""}`,
16559
16568
  `${error ? `${prefixCls}-error` : ""}`,
16560
- `${border ? `${prefixCls}-border` : ""}`
16569
+ `${border ? `${prefixCls}-border` : ""}`,
16570
+ `${slotButton || rightIcon ? `${prefixCls}-right-mark` : ""}`
16561
16571
  ].filter(Boolean).join(" ");
16562
16572
  }, [disabled, required4, error, border]);
16563
16573
  const updateValue = (value, trigger = "onChange") => {
@@ -16732,7 +16742,7 @@ const Input = forwardRef((props, ref) => {
16732
16742
  onClick: (e2) => {
16733
16743
  handleClear(e2);
16734
16744
  }
16735
- }) : null, rightIcon && rightIcon.length > 0 ? /* @__PURE__ */ React__default.createElement("div", {
16745
+ }) : null), rightIcon && rightIcon.length > 0 ? /* @__PURE__ */ React__default.createElement("div", {
16736
16746
  className: "nut-input-right-icon",
16737
16747
  onClick: (e2) => {
16738
16748
  handleClickRightIcon(e2);
@@ -16744,7 +16754,7 @@ const Input = forwardRef((props, ref) => {
16744
16754
  size: rightIconSize
16745
16755
  })) : null, slotButton ? /* @__PURE__ */ React__default.createElement("div", {
16746
16756
  className: "nut-input-button"
16747
- }, slotButton) : null), showWordLimit && maxlength ? /* @__PURE__ */ React__default.createElement("div", {
16757
+ }, slotButton) : null, showWordLimit && maxlength ? /* @__PURE__ */ React__default.createElement("div", {
16748
16758
  className: "nut-input-word-limit"
16749
16759
  }, /* @__PURE__ */ React__default.createElement("span", {
16750
16760
  className: "nut-input-word-num"
@@ -22166,6 +22176,7 @@ const defaultProps$w = {
22166
22176
  autoPlay: 0,
22167
22177
  direction: "horizontal",
22168
22178
  paginationColor: "#fff",
22179
+ paginationBgColor: "#ddd",
22169
22180
  paginationVisible: false,
22170
22181
  loop: true,
22171
22182
  touchable: true,
@@ -22420,10 +22431,10 @@ const Swiper = React__default.forwardRef((props, ref) => {
22420
22431
  const val = isVertical ? rect.height - _size : rect.width - _size;
22421
22432
  _offset = moveOffset + (active === childCount - 1 && !props.loop ? -val / 2 : val / 2);
22422
22433
  }
22423
- target.style.transform = `translate3D${!isVertical ? `(${_offset}px,0,0)` : `(0,${_offset}px,0)`}`;
22424
22434
  target.style.transitionDuration = `${_swiper.current.moving ? 0 : props.duration}ms`;
22425
22435
  target.style[isVertical ? "height" : "width"] = `${Number(size) * childCount}px`;
22426
22436
  target.style[isVertical ? "width" : "height"] = `${isVertical ? width : height}px`;
22437
+ target.style.transform = `translate3D${!isVertical ? `(${_offset}px,0,0)` : `(0,${_offset}px,0)`}`;
22427
22438
  };
22428
22439
  const onTouchStart = (e2) => {
22429
22440
  if (props.isPreventDefault)
@@ -22577,9 +22588,10 @@ const Swiper = React__default.forwardRef((props, ref) => {
22577
22588
  return /* @__PURE__ */ React__default.createElement("i", {
22578
22589
  style: (active + childCount) % childCount === index ? {
22579
22590
  backgroundColor: propSwiper.paginationColor
22580
- } : void 0,
22591
+ } : {
22592
+ backgroundColor: propSwiper.paginationBgColor
22593
+ },
22581
22594
  className: classNames({
22582
- [`${b("pagination-item")}`]: true,
22583
22595
  active: (active + childCount) % childCount === index
22584
22596
  }),
22585
22597
  key: index