@nutui/nutui-react-taro 1.4.6 → 1.4.7-beta.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 (116) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/esm/ActionSheet.js +3 -3
  3. package/dist/esm/Address.js +4 -4
  4. package/dist/esm/Audio.js +3 -3
  5. package/dist/esm/Avatar.js +3 -3
  6. package/dist/esm/Button.js +2 -2
  7. package/dist/esm/Calendar.js +3 -3
  8. package/dist/esm/Card.js +4 -4
  9. package/dist/esm/Cascader.js +3 -3
  10. package/dist/esm/DatePicker.js +4 -4
  11. package/dist/esm/Dialog.js +3 -3
  12. package/dist/esm/Elevator.js +2 -2
  13. package/dist/esm/ImagePreview.js +4 -4
  14. package/dist/esm/Notify.js +2 -2
  15. package/dist/esm/NumberKeyboard.js +3 -3
  16. package/dist/esm/Picker.js +3 -3
  17. package/dist/esm/Popup.js +2 -2
  18. package/dist/esm/Progress.js +3 -3
  19. package/dist/esm/Radio.js +1 -1
  20. package/dist/esm/RadioGroup.js +2 -2
  21. package/dist/esm/SearchBar.js +2 -2
  22. package/dist/esm/ShortPassword.js +3 -3
  23. package/dist/esm/SideNavBar.js +3 -3
  24. package/dist/esm/Signature.js +3 -3
  25. package/dist/esm/Skeleton.js +4 -4
  26. package/dist/esm/Swipe.js +2 -2
  27. package/dist/esm/Swiper.js +2 -2
  28. package/dist/esm/Tabbar.js +2 -2
  29. package/dist/esm/TabbarItem.js +2 -2
  30. package/dist/esm/Tag.js +3 -3
  31. package/dist/esm/TimeSelect.js +3 -3
  32. package/dist/esm/Uploader.js +4 -5
  33. package/dist/esm/{actionsheet.taro-27121a38.js → actionsheet.taro-166ce936.js} +1 -1
  34. package/dist/esm/{address.taro-1765a37c.js → address.taro-55f308f1.js} +2 -2
  35. package/dist/esm/{audio.taro-cf530b91.js → audio.taro-c2cdbe18.js} +1 -1
  36. package/dist/esm/{avatar.taro-1d2bf09a.js → avatar.taro-c17c3d15.js} +1 -1
  37. package/dist/esm/{button.taro-b7c5f5a7.js → button.taro-dc4795a3.js} +4 -2
  38. package/dist/esm/{calendar.taro-05c40d76.js → calendar.taro-02479e8b.js} +1 -1
  39. package/dist/esm/{card.taro-7e85c3da.js → card.taro-a03f0dfc.js} +1 -1
  40. package/dist/esm/{cascader.taro-66462c03.js → cascader.taro-e6610dd1.js} +1 -1
  41. package/dist/esm/{datepicker.taro-8507d826.js → datepicker.taro-c61c6586.js} +1 -1
  42. package/dist/esm/{dialog.taro-0f64e21a.js → dialog.taro-54df2e3f.js} +1 -1
  43. package/dist/esm/{elevator.taro-68cfaaee.js → elevator.taro-1d749ab0.js} +1 -0
  44. package/dist/esm/{imagepreview.taro-83481e13.js → imagepreview.taro-2d23d0ae.js} +2 -2
  45. package/dist/esm/{index.taro-cd52b23f.js → index.taro-84346556.js} +8 -4
  46. package/dist/esm/{notify.taro-308e5892.js → notify.taro-c9ea8d68.js} +1 -1
  47. package/dist/esm/{numberkeyboard.taro-d2ccbce5.js → numberkeyboard.taro-c6b5b0e1.js} +4 -3
  48. package/dist/esm/nutui-react.es.js +30 -30
  49. package/dist/esm/{picker.taro-6128297f.js → picker.taro-fa937ea1.js} +1 -1
  50. package/dist/esm/{popup.taro-89809b25.js → popup.taro-4c18f46c.js} +3 -2
  51. package/dist/esm/{progress.taro-18e015e4.js → progress.taro-773482ed.js} +4 -7
  52. package/dist/esm/{searchbar.taro-141827e2.js → searchbar.taro-6864f7bc.js} +3 -2
  53. package/dist/esm/{shortpassword.taro-e1f53ee7.js → shortpassword.taro-02ea4499.js} +1 -1
  54. package/dist/esm/{sidenavbar.taro-f44d12ac.js → sidenavbar.taro-51a133e6.js} +1 -1
  55. package/dist/esm/{signature.taro-d7a70ce0.js → signature.taro-45d1dde3.js} +1 -1
  56. package/dist/esm/{skeleton.taro-6821b2c6.js → skeleton.taro-38e2fca2.js} +1 -1
  57. package/dist/esm/{swipe.taro-e6c2b808.js → swipe.taro-1eb95b21.js} +5 -2
  58. package/dist/esm/{swiper.taro-852f6615.js → swiper.taro-8164df5b.js} +4 -0
  59. package/dist/esm/{tabbar.taro-86cece39.js → tabbar.taro-08e48c43.js} +1 -1
  60. package/dist/esm/{tabbaritem.taro-f4a91070.js → tabbaritem.taro-3643f585.js} +7 -7
  61. package/dist/esm/{tag.taro-213ec444.js → tag.taro-64f37bd9.js} +5 -3
  62. package/dist/esm/{timeselect.taro-b04b1538.js → timeselect.taro-4fb46162.js} +1 -1
  63. package/dist/esm/types/src/packages/button/button.d.ts +1 -0
  64. package/dist/esm/types/src/packages/button/button.taro.d.ts +1 -0
  65. package/dist/esm/types/src/packages/elevator/elevator.d.ts +3 -1
  66. package/dist/esm/types/src/packages/elevator/elevator.taro.d.ts +3 -1
  67. package/dist/esm/types/src/packages/formitem/formitem.d.ts +1 -0
  68. package/dist/esm/types/src/packages/notify/notify.d.ts +0 -1
  69. package/dist/esm/types/src/packages/numberkeyboard/numberkeyboard.d.ts +1 -0
  70. package/dist/esm/types/src/packages/numberkeyboard/numberkeyboard.taro.d.ts +1 -0
  71. package/dist/esm/types/src/packages/popup/popup.d.ts +1 -0
  72. package/dist/esm/types/src/packages/popup/popup.taro.d.ts +1 -0
  73. package/dist/esm/types/src/packages/progress/progress.d.ts +0 -1
  74. package/dist/esm/types/src/packages/progress/progress.taro.d.ts +0 -1
  75. package/dist/esm/types/src/packages/searchbar/searchbar.d.ts +1 -0
  76. package/dist/esm/types/src/packages/searchbar/searchbar.taro.d.ts +1 -0
  77. package/dist/esm/types/src/packages/swipe/swipe.d.ts +4 -1
  78. package/dist/esm/types/src/packages/swipe/swipe.taro.d.ts +4 -1
  79. package/dist/esm/types/src/packages/tabbar/demo.d.ts +1 -0
  80. package/dist/esm/types/src/packages/tabbaritem/tabbaritem.d.ts +1 -0
  81. package/dist/esm/types/src/packages/tabbaritem/tabbaritem.taro.d.ts +1 -0
  82. package/dist/esm/types/src/packages/tag/tag.d.ts +1 -0
  83. package/dist/esm/types/src/packages/tag/tag.taro.d.ts +1 -0
  84. package/dist/esm/{uploader.taro-1d745f4a.js → uploader.taro-b7b770e6.js} +2 -2
  85. package/dist/locales/base.js +1 -1
  86. package/dist/locales/en-US.js +1 -1
  87. package/dist/locales/id-ID.js +1 -1
  88. package/dist/locales/zh-CN.js +1 -1
  89. package/dist/locales/zh-TW.js +1 -1
  90. package/dist/locales/zh-UG.js +1 -1
  91. package/dist/nutui.react.es.js +78 -43
  92. package/dist/nutui.react.umd.js +78 -43
  93. package/dist/packages/address/address.scss +23 -2
  94. package/dist/packages/button/button.scss +23 -1
  95. package/dist/packages/calendar/calendar.scss +3 -3
  96. package/dist/packages/elevator/elevator.scss +1 -1
  97. package/dist/packages/numberkeyboard/numberkeyboard.scss +10 -2
  98. package/dist/packages/popup/popup.scss +4 -4
  99. package/dist/packages/progress/progress.scss +26 -3
  100. package/dist/packages/radio/radio.scss +1 -1
  101. package/dist/packages/radiogroup/radiogroup.scss +15 -2
  102. package/dist/packages/searchbar/searchbar.scss +35 -7
  103. package/dist/packages/shortpassword/shortpassword.scss +12 -1
  104. package/dist/packages/swiper/swiper.scss +1 -1
  105. package/dist/packages/switch/switch.scss +15 -2
  106. package/dist/packages/tabbar/tabbar.scss +17 -3
  107. package/dist/packages/tabbaritem/tabbaritem.scss +26 -17
  108. package/dist/packages/tag/tag.scss +3 -1
  109. package/dist/style.css +1 -1
  110. package/dist/style.es.js +1 -1
  111. package/dist/styles/theme-dark.scss +1 -0
  112. package/dist/styles/theme-default.scss +1 -0
  113. package/dist/styles/variables.scss +100 -19
  114. package/dist/types/index.d.ts +14 -3
  115. package/package.json +8 -7
  116. package/dist/styles/temp.scss +0 -2340
@@ -3,6 +3,7 @@ import { BasicComponent } from '@/utils/typings';
3
3
  export interface TabbarItemProps extends BasicComponent {
4
4
  dot: boolean;
5
5
  size: string | number;
6
+ iconSize: string | number;
6
7
  className: string;
7
8
  tabTitle: string;
8
9
  icon: string;
@@ -3,6 +3,7 @@ import { BasicComponent } from '@/utils/typings';
3
3
  export interface TabbarItemProps extends BasicComponent {
4
4
  dot: boolean;
5
5
  size: string | number;
6
+ iconSize: string | number;
6
7
  className: string;
7
8
  tabTitle: string;
8
9
  icon: string;
@@ -8,6 +8,7 @@ export interface TagProps extends BasicComponent {
8
8
  round: boolean;
9
9
  mark: boolean;
10
10
  closeable: boolean;
11
+ iconSize?: string | number;
11
12
  prefixCls: string;
12
13
  onClick: (e: MouseEvent) => void;
13
14
  onClose: (e?: any) => void;
@@ -8,6 +8,7 @@ export interface TagProps extends BasicComponent {
8
8
  round: boolean;
9
9
  mark: boolean;
10
10
  closeable: boolean;
11
+ iconSize?: string | number;
11
12
  prefixCls: string;
12
13
  onClick: (e: MouseEvent) => void;
13
14
  onClose: (e?: any) => void;
@@ -2,8 +2,8 @@ import React__default, { useState, useEffect, useImperativeHandle } from 'react'
2
2
  import classNames from 'classnames';
3
3
  import { uploadFile, getEnv, chooseImage } from '@tarojs/taro';
4
4
  import { I as Icon } from './icon.taro-c9254a81.js';
5
- import { B as Button } from './button.taro-b7c5f5a7.js';
6
- import { P as Progress } from './progress.taro-18e015e4.js';
5
+ import { B as Button } from './button.taro-dc4795a3.js';
6
+ import { P as Progress } from './progress.taro-773482ed.js';
7
7
  import { c as cn } from './bem-893ad28d.js';
8
8
  import { u as useConfig } from './configprovider.taro-26882dd2.js';
9
9
  import { C as ComponentDefaults } from './typings-1c5f2628.js';
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.6 Wed Feb 08 2023 16:05:25 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.7-beta.1 Wed Feb 15 2023 16:25:41 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.6 Wed Feb 08 2023 16:05:25 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.7-beta.1 Wed Feb 15 2023 16:25:41 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.6 Wed Feb 08 2023 16:05:25 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.7-beta.1 Wed Feb 15 2023 16:25:41 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.6 Wed Feb 08 2023 16:05:25 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.7-beta.1 Wed Feb 15 2023 16:25:41 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.6 Wed Feb 08 2023 16:05:25 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.7-beta.1 Wed Feb 15 2023 16:25:41 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.6 Wed Feb 08 2023 16:05:25 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.7-beta.1 Wed Feb 15 2023 16:25:41 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.6 Wed Feb 08 2023 16:05:05 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.7-beta.1 Wed Feb 15 2023 16:25:20 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -150,6 +150,7 @@ const defaultProps$1u = {
150
150
  size: "normal",
151
151
  block: false,
152
152
  icon: "",
153
+ iconSize: "16",
153
154
  style: {},
154
155
  children: void 0,
155
156
  onClick: (e2) => {
@@ -166,6 +167,7 @@ const Button = (props) => {
166
167
  size,
167
168
  block,
168
169
  icon,
170
+ iconSize,
169
171
  children,
170
172
  onClick,
171
173
  className,
@@ -223,6 +225,7 @@ const Button = (props) => {
223
225
  size,
224
226
  block,
225
227
  icon,
228
+ iconSize,
226
229
  children,
227
230
  onClick,
228
231
  classes,
@@ -248,7 +251,8 @@ const Button = (props) => {
248
251
  }), !loading && icon ? /* @__PURE__ */ React__default.createElement(Icon$1, {
249
252
  classPrefix: iconClassPrefix,
250
253
  fontClassName: iconFontClassName,
251
- name: icon
254
+ name: icon,
255
+ size: iconSize
252
256
  }) : "", children && /* @__PURE__ */ React__default.createElement("div", {
253
257
  className: icon || loading ? "text" : ""
254
258
  }, children)));
@@ -1526,6 +1530,7 @@ const defaultProps$1p = {
1526
1530
  closeable: false,
1527
1531
  closeIconPosition: "top-right",
1528
1532
  closeIcon: "close",
1533
+ closeIconSize: "12px",
1529
1534
  destroyOnClose: true,
1530
1535
  teleport: null,
1531
1536
  overlay: true,
@@ -1575,7 +1580,8 @@ const Popup = (props) => {
1575
1580
  onClosed,
1576
1581
  onClick,
1577
1582
  iconClassPrefix,
1578
- iconFontClassName
1583
+ iconFontClassName,
1584
+ closeIconSize
1579
1585
  } = props;
1580
1586
  const [index, setIndex] = useState(zIndex || _zIndex);
1581
1587
  const [innerVisible, setInnerVisible] = useState(visible);
@@ -1677,7 +1683,7 @@ const Popup = (props) => {
1677
1683
  classPrefix: iconClassPrefix,
1678
1684
  fontClassName: iconFontClassName,
1679
1685
  name: closeIcon,
1680
- size: "12px"
1686
+ size: closeIconSize
1681
1687
  })) : ""));
1682
1688
  };
1683
1689
  const renderNode = () => {
@@ -2438,6 +2444,7 @@ const Elevator = (props) => {
2438
2444
  };
2439
2445
  Elevator.defaultProps = defaultProps$1h;
2440
2446
  Elevator.displayName = "NutElevator";
2447
+ Elevator.Context = elevatorContext;
2441
2448
  const defaultProps$1g = {
2442
2449
  ...ComponentDefaults,
2443
2450
  fixednavClass: "nut-fixednav",
@@ -3269,7 +3276,7 @@ const Tabbar = (props) => {
3269
3276
  className: [
3270
3277
  `${b2()}`,
3271
3278
  bottom ? `${b2("bottom")}` : "",
3272
- safeAreaInsetBottom ? `${b2("safebottom")}` : "",
3279
+ safeAreaInsetBottom ? `${b2("bottom")} ${b2("safebottom")}` : "",
3273
3280
  className
3274
3281
  ].join(" "),
3275
3282
  style
@@ -3299,6 +3306,7 @@ const defaultProps$17 = {
3299
3306
  ...ComponentDefaults,
3300
3307
  dot: false,
3301
3308
  size: "",
3309
+ iconSize: "",
3302
3310
  className: "",
3303
3311
  tabTitle: "",
3304
3312
  icon: "",
@@ -3316,6 +3324,7 @@ const TabbarItem = (props) => {
3316
3324
  const {
3317
3325
  dot,
3318
3326
  size,
3327
+ iconSize,
3319
3328
  className,
3320
3329
  style,
3321
3330
  tabTitle,
@@ -3363,17 +3372,17 @@ const TabbarItem = (props) => {
3363
3372
  }, num), num && num >= 100 && /* @__PURE__ */ React__default.createElement("div", {
3364
3373
  className: `${bIcon("tips", [bIcon("nums")])}`
3365
3374
  }, "99+")) : /* @__PURE__ */ React__default.createElement("div", {
3366
- className: `${bIcon("dot")}`
3367
- }), icon && /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(Icon$1, {
3375
+ className: `${bIcon("tips", [bIcon("dot")])}`
3376
+ }), icon && /* @__PURE__ */ React__default.createElement(Icon$1, {
3368
3377
  classPrefix: iconClassPrefix,
3369
3378
  fontClassName: iconFontClassName,
3370
- size,
3379
+ size: iconSize || size,
3371
3380
  name: icon
3372
- })), /* @__PURE__ */ React__default.createElement("div", {
3381
+ })), tabTitle && /* @__PURE__ */ React__default.createElement("div", {
3373
3382
  className: bIcon({ "nav-word": true }, [
3374
3383
  bIcon({ "big-word": !icon })
3375
3384
  ])
3376
- }, tabTitle)));
3385
+ }, tabTitle));
3377
3386
  };
3378
3387
  const defaultProps$16 = {
3379
3388
  title: "",
@@ -6495,6 +6504,7 @@ const defaultProps$V = {
6495
6504
  confirmText: "",
6496
6505
  title: "",
6497
6506
  visible: false,
6507
+ overlay: false,
6498
6508
  type: "default",
6499
6509
  customKey: [],
6500
6510
  className: "",
@@ -6509,6 +6519,7 @@ const NumberKeyboard = (props) => {
6509
6519
  title,
6510
6520
  confirmText,
6511
6521
  visible,
6522
+ overlay,
6512
6523
  type,
6513
6524
  customKey,
6514
6525
  randomKeys,
@@ -6620,6 +6631,7 @@ const NumberKeyboard = (props) => {
6620
6631
  };
6621
6632
  return /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(Popup, {
6622
6633
  visible: show,
6634
+ overlay,
6623
6635
  position: "bottom",
6624
6636
  popClass,
6625
6637
  onClickOverlay: onClose,
@@ -6775,6 +6787,8 @@ RadioGroup.defaultProps = defaultProps$U;
6775
6787
  RadioGroup.displayName = "NutRadioGroup";
6776
6788
  const defaultProps$T = {
6777
6789
  ...ComponentDefaults,
6790
+ className: "",
6791
+ style: {},
6778
6792
  disabled: false,
6779
6793
  checked: false,
6780
6794
  shape: "round",
@@ -6823,7 +6837,7 @@ const Radio$1 = (props) => {
6823
6837
  };
6824
6838
  const renderButton = () => {
6825
6839
  return /* @__PURE__ */ React__default.createElement("div", {
6826
- className: `${componentName}__button ${checkedStatement && `${componentName}__button--active`} ${disabledStatement ? `${componentName}__button--disabled` : ""}`
6840
+ className: `${componentName}__button ${!disabledStatement && checkedStatement && `${componentName}__button--active`} ${disabledStatement ? `${componentName}__button--disabled` : ""}`
6827
6841
  }, children);
6828
6842
  };
6829
6843
  const color = () => {
@@ -6840,11 +6854,12 @@ const Radio$1 = (props) => {
6840
6854
  return /* @__PURE__ */ React__default.createElement(Icon$1, {
6841
6855
  classPrefix: iconClassPrefix,
6842
6856
  fontClassName: iconFontClassName,
6843
- name: checkedStatement ? iconActiveName2 : iconName2,
6857
+ name: !disabledStatement && checkedStatement ? iconActiveName2 : iconName2,
6844
6858
  size: iconSize2,
6845
6859
  className: color()
6846
6860
  });
6847
6861
  };
6862
+ const reverseState = textPosition === "left";
6848
6863
  const renderRadioItem = () => {
6849
6864
  if (shape === "button") {
6850
6865
  return renderButton();
@@ -6861,9 +6876,8 @@ const Radio$1 = (props) => {
6861
6876
  onChange && onChange(e2);
6862
6877
  context && context.onChange(valueStatement);
6863
6878
  };
6864
- const reverseState = textPosition === "left";
6865
6879
  return /* @__PURE__ */ React__default.createElement("div", {
6866
- className: `nut-radio ${className}`,
6880
+ className: `nut-radio ${className} ${reverseState ? `${componentName}--reverse` : ""}`,
6867
6881
  onClick: handleClick,
6868
6882
  ...rest
6869
6883
  }, renderRadioItem());
@@ -7581,6 +7595,7 @@ const defaultProps$O = {
7581
7595
  disabled: false,
7582
7596
  maxLength: 9999,
7583
7597
  clearable: true,
7598
+ clearIconSize: "12px",
7584
7599
  align: "left",
7585
7600
  readonly: true,
7586
7601
  autoFocus: false,
@@ -7602,6 +7617,7 @@ const SearchBar = (props) => {
7602
7617
  disabled,
7603
7618
  maxLength,
7604
7619
  clearable,
7620
+ clearIconSize,
7605
7621
  align,
7606
7622
  readOnly,
7607
7623
  autoFocus,
@@ -7727,7 +7743,7 @@ const SearchBar = (props) => {
7727
7743
  classPrefix: iconClassPrefix,
7728
7744
  fontClassName: iconFontClassName,
7729
7745
  name: "circle-close",
7730
- size: "12",
7746
+ size: clearIconSize,
7731
7747
  color: "#555"
7732
7748
  }));
7733
7749
  };
@@ -8065,7 +8081,6 @@ const defaultProps$L = {
8065
8081
  iconName: "checked",
8066
8082
  iconColor: "#439422",
8067
8083
  iconSize: "16px",
8068
- rounded: true,
8069
8084
  children: void 0
8070
8085
  };
8071
8086
  const Progress = (props) => {
@@ -8088,7 +8103,6 @@ const Progress = (props) => {
8088
8103
  iconName,
8089
8104
  iconColor,
8090
8105
  iconSize,
8091
- rounded,
8092
8106
  children,
8093
8107
  iconClassPrefix,
8094
8108
  iconFontClassName,
@@ -8119,12 +8133,10 @@ const Progress = (props) => {
8119
8133
  });
8120
8134
  const stylesOuter = {
8121
8135
  height: `${strokeWidth}px`,
8122
- borderRadius: `${rounded ? rounded === true ? "12px" : rounded : 0}`,
8123
8136
  background: `${fillColor}`
8124
8137
  };
8125
8138
  const stylesInner = {
8126
8139
  width: `${percentage}%`,
8127
- borderRadius: `${rounded ? rounded === true ? "12px" : rounded : 0}`,
8128
8140
  background: `${strokeColor}`
8129
8141
  };
8130
8142
  const stylesInsideText = {
@@ -8157,14 +8169,14 @@ const Progress = (props) => {
8157
8169
  style: stylesInsideText
8158
8170
  }, /* @__PURE__ */ React__default.createElement("span", {
8159
8171
  className: classesTextInner,
8160
- style: { color: textColor || "#fff" }
8172
+ style: { color: textColor }
8161
8173
  }, percentage, isShowPercentage ? "%" : ""))))), showText && !textInside && /* @__PURE__ */ React__default.createElement("div", {
8162
8174
  className: classesText,
8163
8175
  style: stylesText
8164
8176
  }, textType === "text" && /* @__PURE__ */ React__default.createElement("span", {
8165
8177
  className: classesTextInner,
8166
- style: { color: textColor || "#333" }
8167
- }, percentage, isShowPercentage ? "%" : ""), textType === "icon" && /* @__PURE__ */ React__default.createElement(Icon, {
8178
+ style: { color: textColor }
8179
+ }, percentage, isShowPercentage ? "%" : ""), textType === "icon" && /* @__PURE__ */ React__default.createElement(Icon$1, {
8168
8180
  classPrefix: iconClassPrefix,
8169
8181
  fontClassName: iconFontClassName,
8170
8182
  size: iconSize,
@@ -9311,7 +9323,6 @@ const Notify = (props) => {
9311
9323
  unmountOnExit: true,
9312
9324
  appear: true,
9313
9325
  position,
9314
- isWrapTeleport,
9315
9326
  id
9316
9327
  }, /* @__PURE__ */ React__default.createElement("div", {
9317
9328
  className: `${classes} ${className}`,
@@ -9366,7 +9377,24 @@ function computeRubberband(bounds, [Vx, Vy], [Rx, Ry]) {
9366
9377
  const [[X0, X1], [Y0, Y1]] = bounds;
9367
9378
  return [rubberbandIfOutOfBounds$1(Vx, X0, X1, Rx), rubberbandIfOutOfBounds$1(Vy, Y0, Y1, Ry)];
9368
9379
  }
9380
+ function _toPrimitive(input, hint) {
9381
+ if (typeof input !== "object" || input === null)
9382
+ return input;
9383
+ var prim = input[Symbol.toPrimitive];
9384
+ if (prim !== void 0) {
9385
+ var res = prim.call(input, hint || "default");
9386
+ if (typeof res !== "object")
9387
+ return res;
9388
+ throw new TypeError("@@toPrimitive must return a primitive value.");
9389
+ }
9390
+ return (hint === "string" ? String : Number)(input);
9391
+ }
9392
+ function _toPropertyKey(arg) {
9393
+ var key = _toPrimitive(arg, "string");
9394
+ return typeof key === "symbol" ? key : String(key);
9395
+ }
9369
9396
  function _defineProperty(obj, key, value) {
9397
+ key = _toPropertyKey(key);
9370
9398
  if (key in obj) {
9371
9399
  Object.defineProperty(obj, key, {
9372
9400
  value,
@@ -9863,12 +9891,11 @@ const coordinatesConfigResolver = _objectSpread2(_objectSpread2({}, commonConfig
9863
9891
  return [[left, right], [top, bottom]];
9864
9892
  }
9865
9893
  });
9866
- const DISPLACEMENT = 10;
9867
9894
  const KEYS_DELTA_MAP = {
9868
- ArrowRight: (factor = 1) => [DISPLACEMENT * factor, 0],
9869
- ArrowLeft: (factor = 1) => [-DISPLACEMENT * factor, 0],
9870
- ArrowUp: (factor = 1) => [0, -DISPLACEMENT * factor],
9871
- ArrowDown: (factor = 1) => [0, DISPLACEMENT * factor]
9895
+ ArrowRight: (displacement, factor = 1) => [displacement * factor, 0],
9896
+ ArrowLeft: (displacement, factor = 1) => [-1 * displacement * factor, 0],
9897
+ ArrowUp: (displacement, factor = 1) => [0, -1 * displacement * factor],
9898
+ ArrowDown: (displacement, factor = 1) => [0, displacement * factor]
9872
9899
  };
9873
9900
  class DragEngine extends CoordinatesEngine {
9874
9901
  constructor(...args) {
@@ -10092,7 +10119,7 @@ class DragEngine extends CoordinatesEngine {
10092
10119
  const state = this.state;
10093
10120
  const factor = event.shiftKey ? 10 : event.altKey ? 0.1 : 1;
10094
10121
  this.start(event);
10095
- state._delta = deltaFn(factor);
10122
+ state._delta = deltaFn(this.config.keyboardDisplacement, factor);
10096
10123
  state._keyboardActive = true;
10097
10124
  V.addTo(state._movement, state._delta);
10098
10125
  this.compute(event);
@@ -10164,6 +10191,7 @@ const DEFAULT_DRAG_DELAY = 180;
10164
10191
  const DEFAULT_SWIPE_VELOCITY = 0.5;
10165
10192
  const DEFAULT_SWIPE_DISTANCE = 50;
10166
10193
  const DEFAULT_SWIPE_DURATION = 250;
10194
+ const DEFAULT_KEYBOARD_DISPLACEMENT = 10;
10167
10195
  const DEFAULT_DRAG_AXIS_THRESHOLD = {
10168
10196
  mouse: 0,
10169
10197
  touch: 0,
@@ -10242,6 +10270,9 @@ const dragConfigResolver = _objectSpread2(_objectSpread2({}, coordinatesConfigRe
10242
10270
  if (!value)
10243
10271
  return DEFAULT_DRAG_AXIS_THRESHOLD;
10244
10272
  return _objectSpread2(_objectSpread2({}, DEFAULT_DRAG_AXIS_THRESHOLD), value);
10273
+ },
10274
+ keyboardDisplacement(value = DEFAULT_KEYBOARD_DISPLACEMENT) {
10275
+ return value;
10245
10276
  }
10246
10277
  });
10247
10278
  _objectSpread2(_objectSpread2({}, commonConfigResolver), {}, {
@@ -10540,16 +10571,10 @@ class Controller$1 {
10540
10571
  }
10541
10572
  const nativeBindFunction = bindToProps(props, sharedConfig.eventOptions, !!target);
10542
10573
  for (const eventKey in this.nativeHandlers) {
10543
- nativeBindFunction(
10544
- eventKey,
10545
- "",
10546
- (event) => this.nativeHandlers[eventKey](_objectSpread2(_objectSpread2({}, this.state.shared), {}, {
10547
- event,
10548
- args
10549
- })),
10550
- void 0,
10551
- true
10552
- );
10574
+ nativeBindFunction(eventKey, "", (event) => this.nativeHandlers[eventKey](_objectSpread2(_objectSpread2({}, this.state.shared), {}, {
10575
+ event,
10576
+ args
10577
+ })), void 0, true);
10553
10578
  }
10554
10579
  }
10555
10580
  for (const handlerProp in props) {
@@ -14047,6 +14072,7 @@ const Swipe = forwardRef((props, instanceRef) => {
14047
14072
  if (!props.disabled) {
14048
14073
  startOffset.current = state.offset;
14049
14074
  touch.start(event);
14075
+ props.onTouchStart && props.onTouchStart(event);
14050
14076
  }
14051
14077
  };
14052
14078
  const onTouchMove = (event) => {
@@ -14054,6 +14080,7 @@ const Swipe = forwardRef((props, instanceRef) => {
14054
14080
  return;
14055
14081
  }
14056
14082
  touch.move(event);
14083
+ props.onTouchMove && props.onTouchMove(event);
14057
14084
  if (touch.isHorizontal()) {
14058
14085
  lockClick.current = true;
14059
14086
  const newState = { ...state, dragging: true };
@@ -14069,13 +14096,14 @@ const Swipe = forwardRef((props, instanceRef) => {
14069
14096
  setState(newState);
14070
14097
  }
14071
14098
  };
14072
- const onTouchEnd = () => {
14099
+ const onTouchEnd = (event) => {
14073
14100
  if (state.dragging) {
14074
14101
  setState((v) => ({ ...v, dragging: false }));
14075
14102
  toggle(state.offset > 0 ? "left" : "right");
14076
14103
  setTimeout(() => {
14077
14104
  lockClick.current = false;
14078
14105
  }, 0);
14106
+ props.onTouchEnd && props.onTouchEnd(event);
14079
14107
  }
14080
14108
  };
14081
14109
  const toggle = (side) => {
@@ -14156,7 +14184,7 @@ const Swipe = forwardRef((props, instanceRef) => {
14156
14184
  className: `${swipeBem()} ${className}`,
14157
14185
  onTouchStart: (e2) => onTouchStart(e2),
14158
14186
  onTouchMove: (e2) => onTouchMove(e2),
14159
- onTouchEnd,
14187
+ onTouchEnd: (e2) => onTouchEnd(e2),
14160
14188
  style
14161
14189
  }, /* @__PURE__ */ React__default.createElement("div", {
14162
14190
  className: `${swipeBem("wrapper")}`,
@@ -15836,6 +15864,9 @@ const Swiper = React__default.forwardRef((props, ref) => {
15836
15864
  });
15837
15865
  });
15838
15866
  };
15867
+ const resize = () => {
15868
+ init(active);
15869
+ };
15839
15870
  const move = ({
15840
15871
  pace = 0,
15841
15872
  offset: offset2 = 0,
@@ -16077,7 +16108,8 @@ const Swiper = React__default.forwardRef((props, ref) => {
16077
16108
  React__default.useImperativeHandle(ref, () => ({
16078
16109
  to: to2,
16079
16110
  next,
16080
- prev
16111
+ prev,
16112
+ resize
16081
16113
  }));
16082
16114
  return /* @__PURE__ */ React__default.createElement(DataContext$1.Provider, {
16083
16115
  value: parent
@@ -17423,6 +17455,7 @@ const defaultProps$d = {
17423
17455
  round: false,
17424
17456
  mark: false,
17425
17457
  closeable: false,
17458
+ iconSize: "12px",
17426
17459
  prefixCls: "nut-tag",
17427
17460
  onClose: (e2) => {
17428
17461
  },
@@ -17441,6 +17474,7 @@ const Tag = (props) => {
17441
17474
  children,
17442
17475
  mark,
17443
17476
  closeable,
17477
+ iconSize,
17444
17478
  textColor,
17445
17479
  onClick,
17446
17480
  onClose,
@@ -17462,6 +17496,7 @@ const Tag = (props) => {
17462
17496
  round,
17463
17497
  mark,
17464
17498
  closeable,
17499
+ iconSize,
17465
17500
  prefixCls,
17466
17501
  onClick,
17467
17502
  onClose
@@ -17509,7 +17544,7 @@ const Tag = (props) => {
17509
17544
  fontClassName: iconFontClassName,
17510
17545
  className: "_icon",
17511
17546
  name: "close",
17512
- size: "12",
17547
+ size: iconSize,
17513
17548
  onClick: (e2) => {
17514
17549
  setIsTagShow(false);
17515
17550
  if (props.onClose) {