antd-mobile 5.28.0 → 5.28.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/2x/bundle/antd-mobile.cjs.development.js +341 -284
  2. package/2x/bundle/antd-mobile.cjs.js +10 -9
  3. package/2x/bundle/antd-mobile.es.development.js +341 -284
  4. package/2x/bundle/antd-mobile.es.js +4969 -4923
  5. package/2x/bundle/antd-mobile.umd.development.js +341 -284
  6. package/2x/bundle/antd-mobile.umd.js +10 -9
  7. package/2x/bundle/css-vars-patch.css +1 -0
  8. package/2x/bundle/style.css +9 -2
  9. package/2x/cjs/components/ellipsis/ellipsis.d.ts +1 -0
  10. package/2x/cjs/components/ellipsis/ellipsis.js +3 -2
  11. package/2x/cjs/components/nav-bar/nav-bar.d.ts +2 -2
  12. package/2x/cjs/components/popover/popover.css +1 -1
  13. package/2x/cjs/components/popover/popover.patch.css +1 -0
  14. package/2x/cjs/components/popup/popup.js +7 -1
  15. package/2x/cjs/components/pull-to-refresh/pull-to-refresh.js +15 -16
  16. package/2x/cjs/components/stepper/index.d.ts +1 -1
  17. package/2x/cjs/components/stepper/stepper.d.ts +4 -2
  18. package/2x/cjs/components/stepper/stepper.js +21 -3
  19. package/2x/cjs/components/steps/steps.css +0 -1
  20. package/2x/cjs/components/swiper/swiper.js +6 -3
  21. package/2x/cjs/components/text-area/text-area.css +8 -0
  22. package/2x/cjs/components/text-area/text-area.js +16 -3
  23. package/2x/cjs/global/css-vars-patch.css +1 -0
  24. package/2x/cjs/index.d.ts +1 -1
  25. package/2x/cjs/locales/base.d.ts +1 -0
  26. package/2x/cjs/locales/base.js +2 -1
  27. package/2x/cjs/locales/en-US.d.ts +1 -0
  28. package/2x/cjs/locales/es-ES.d.ts +1 -0
  29. package/2x/cjs/locales/fa-IR.d.ts +1 -0
  30. package/2x/cjs/locales/fr-FR.d.ts +1 -0
  31. package/2x/cjs/locales/id-ID.d.ts +1 -0
  32. package/2x/cjs/locales/ja-JP.d.ts +1 -0
  33. package/2x/cjs/locales/kk-KZ.d.ts +1 -0
  34. package/2x/cjs/locales/ko-KR.d.ts +1 -0
  35. package/2x/cjs/locales/ko-KR.js +31 -2
  36. package/2x/cjs/locales/zh-CN.d.ts +1 -0
  37. package/2x/cjs/locales/zh-CN.js +2 -1
  38. package/2x/cjs/locales/zh-HK.d.ts +1 -0
  39. package/2x/cjs/locales/zh-HK.js +2 -1
  40. package/2x/cjs/locales/zh-TW.d.ts +1 -0
  41. package/2x/cjs/locales/zh-TW.js +2 -1
  42. package/2x/cjs/utils/reduce-and-restore-motion.js +7 -6
  43. package/2x/cjs/utils/render-imperatively.js +9 -3
  44. package/2x/es/components/ellipsis/ellipsis.d.ts +1 -0
  45. package/2x/es/components/ellipsis/ellipsis.js +3 -2
  46. package/2x/es/components/nav-bar/nav-bar.d.ts +2 -2
  47. package/2x/es/components/popover/popover.css +1 -1
  48. package/2x/es/components/popover/popover.patch.css +1 -0
  49. package/2x/es/components/popup/popup.js +7 -1
  50. package/2x/es/components/pull-to-refresh/pull-to-refresh.js +15 -16
  51. package/2x/es/components/stepper/index.d.ts +1 -1
  52. package/2x/es/components/stepper/stepper.d.ts +4 -2
  53. package/2x/es/components/stepper/stepper.js +19 -3
  54. package/2x/es/components/steps/steps.css +0 -1
  55. package/2x/es/components/swiper/swiper.js +6 -3
  56. package/2x/es/components/text-area/text-area.css +8 -0
  57. package/2x/es/components/text-area/text-area.js +16 -3
  58. package/2x/es/global/css-vars-patch.css +1 -0
  59. package/2x/es/index.d.ts +1 -1
  60. package/2x/es/locales/base.d.ts +1 -0
  61. package/2x/es/locales/base.js +2 -1
  62. package/2x/es/locales/en-US.d.ts +1 -0
  63. package/2x/es/locales/es-ES.d.ts +1 -0
  64. package/2x/es/locales/fa-IR.d.ts +1 -0
  65. package/2x/es/locales/fr-FR.d.ts +1 -0
  66. package/2x/es/locales/id-ID.d.ts +1 -0
  67. package/2x/es/locales/ja-JP.d.ts +1 -0
  68. package/2x/es/locales/kk-KZ.d.ts +1 -0
  69. package/2x/es/locales/ko-KR.d.ts +1 -0
  70. package/2x/es/locales/ko-KR.js +31 -2
  71. package/2x/es/locales/zh-CN.d.ts +1 -0
  72. package/2x/es/locales/zh-CN.js +2 -1
  73. package/2x/es/locales/zh-HK.d.ts +1 -0
  74. package/2x/es/locales/zh-HK.js +2 -1
  75. package/2x/es/locales/zh-TW.d.ts +1 -0
  76. package/2x/es/locales/zh-TW.js +2 -1
  77. package/2x/es/utils/reduce-and-restore-motion.js +7 -6
  78. package/2x/es/utils/render-imperatively.js +9 -3
  79. package/2x/package.json +3 -3
  80. package/bundle/antd-mobile.cjs.development.js +341 -284
  81. package/bundle/antd-mobile.cjs.js +10 -9
  82. package/bundle/antd-mobile.compatible.umd.js +1 -1
  83. package/bundle/antd-mobile.es.development.js +341 -284
  84. package/bundle/antd-mobile.es.js +4969 -4923
  85. package/bundle/antd-mobile.umd.development.js +341 -284
  86. package/bundle/antd-mobile.umd.js +10 -9
  87. package/bundle/css-vars-patch.css +1 -0
  88. package/bundle/style.css +1 -1
  89. package/cjs/components/ellipsis/ellipsis.d.ts +1 -0
  90. package/cjs/components/ellipsis/ellipsis.js +3 -2
  91. package/cjs/components/nav-bar/nav-bar.d.ts +2 -2
  92. package/cjs/components/popover/popover.css +1 -1
  93. package/cjs/components/popover/popover.patch.css +1 -0
  94. package/cjs/components/popup/popup.js +7 -1
  95. package/cjs/components/pull-to-refresh/pull-to-refresh.js +15 -16
  96. package/cjs/components/stepper/index.d.ts +1 -1
  97. package/cjs/components/stepper/stepper.d.ts +4 -2
  98. package/cjs/components/stepper/stepper.js +21 -3
  99. package/cjs/components/steps/steps.css +0 -1
  100. package/cjs/components/swiper/swiper.js +6 -3
  101. package/cjs/components/text-area/text-area.css +7 -0
  102. package/cjs/components/text-area/text-area.js +16 -3
  103. package/cjs/global/css-vars-patch.css +1 -0
  104. package/cjs/index.d.ts +1 -1
  105. package/cjs/locales/base.d.ts +1 -0
  106. package/cjs/locales/base.js +2 -1
  107. package/cjs/locales/en-US.d.ts +1 -0
  108. package/cjs/locales/es-ES.d.ts +1 -0
  109. package/cjs/locales/fa-IR.d.ts +1 -0
  110. package/cjs/locales/fr-FR.d.ts +1 -0
  111. package/cjs/locales/id-ID.d.ts +1 -0
  112. package/cjs/locales/ja-JP.d.ts +1 -0
  113. package/cjs/locales/kk-KZ.d.ts +1 -0
  114. package/cjs/locales/ko-KR.d.ts +1 -0
  115. package/cjs/locales/ko-KR.js +31 -2
  116. package/cjs/locales/zh-CN.d.ts +1 -0
  117. package/cjs/locales/zh-CN.js +2 -1
  118. package/cjs/locales/zh-HK.d.ts +1 -0
  119. package/cjs/locales/zh-HK.js +2 -1
  120. package/cjs/locales/zh-TW.d.ts +1 -0
  121. package/cjs/locales/zh-TW.js +2 -1
  122. package/cjs/utils/reduce-and-restore-motion.js +7 -6
  123. package/cjs/utils/render-imperatively.js +9 -3
  124. package/es/components/ellipsis/ellipsis.d.ts +1 -0
  125. package/es/components/ellipsis/ellipsis.js +3 -2
  126. package/es/components/nav-bar/nav-bar.d.ts +2 -2
  127. package/es/components/popover/popover.css +1 -1
  128. package/es/components/popover/popover.patch.css +1 -0
  129. package/es/components/popup/popup.js +7 -1
  130. package/es/components/pull-to-refresh/pull-to-refresh.js +15 -16
  131. package/es/components/stepper/index.d.ts +1 -1
  132. package/es/components/stepper/stepper.d.ts +4 -2
  133. package/es/components/stepper/stepper.js +19 -3
  134. package/es/components/steps/steps.css +0 -1
  135. package/es/components/swiper/swiper.js +6 -3
  136. package/es/components/text-area/text-area.css +7 -0
  137. package/es/components/text-area/text-area.js +16 -3
  138. package/es/global/css-vars-patch.css +1 -0
  139. package/es/index.d.ts +1 -1
  140. package/es/locales/base.d.ts +1 -0
  141. package/es/locales/base.js +2 -1
  142. package/es/locales/en-US.d.ts +1 -0
  143. package/es/locales/es-ES.d.ts +1 -0
  144. package/es/locales/fa-IR.d.ts +1 -0
  145. package/es/locales/fr-FR.d.ts +1 -0
  146. package/es/locales/id-ID.d.ts +1 -0
  147. package/es/locales/ja-JP.d.ts +1 -0
  148. package/es/locales/kk-KZ.d.ts +1 -0
  149. package/es/locales/ko-KR.d.ts +1 -0
  150. package/es/locales/ko-KR.js +31 -2
  151. package/es/locales/zh-CN.d.ts +1 -0
  152. package/es/locales/zh-CN.js +2 -1
  153. package/es/locales/zh-HK.d.ts +1 -0
  154. package/es/locales/zh-HK.js +2 -1
  155. package/es/locales/zh-TW.d.ts +1 -0
  156. package/es/locales/zh-TW.js +2 -1
  157. package/es/utils/reduce-and-restore-motion.js +7 -6
  158. package/es/utils/render-imperatively.js +9 -3
  159. package/package.json +3 -3
  160. package/umd/antd-mobile.js +1 -1
  161. package/umd/antd-mobile.js.LICENSE.txt +5 -4
@@ -68,7 +68,8 @@ const base = {
68
68
  common: {
69
69
  confirm: "Confirm",
70
70
  cancel: "Cancel",
71
- loading: "Loading"
71
+ loading: "Loading",
72
+ close: "Close"
72
73
  },
73
74
  Calendar: {
74
75
  markItems: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
@@ -198,7 +199,8 @@ const zhCN = mergeLocale(base, {
198
199
  common: {
199
200
  confirm: "\u786E\u5B9A",
200
201
  cancel: "\u53D6\u6D88",
201
- loading: "\u52A0\u8F7D\u4E2D"
202
+ loading: "\u52A0\u8F7D\u4E2D",
203
+ close: "\u5173\u95ED"
202
204
  },
203
205
  Calendar: {
204
206
  markItems: ["\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u65E5"],
@@ -3114,7 +3116,13 @@ const useLayoutEffectWithTarget = useEffectWithTarget;
3114
3116
  const useIsomorphicLayoutEffectWithTarget = isBrowser$3 ? useLayoutEffectWithTarget : useEffectWithTarget$2;
3115
3117
  const useIsomorphicLayoutEffectWithTarget$1 = useIsomorphicLayoutEffectWithTarget;
3116
3118
  function useSize(target) {
3117
- const [state, setState] = useRafState();
3119
+ const [state, setState] = useRafState(() => {
3120
+ const el = getTargetElement(target);
3121
+ return el ? {
3122
+ width: el.clientWidth,
3123
+ height: el.clientHeight
3124
+ } : void 0;
3125
+ });
3118
3126
  useIsomorphicLayoutEffectWithTarget$1(() => {
3119
3127
  const el = getTargetElement(target);
3120
3128
  if (!el) {
@@ -7287,6 +7295,9 @@ const defaultProps$12 = Object.assign(Object.assign({}, defaultPopupBaseProps),
7287
7295
  });
7288
7296
  const Popup$1 = (p) => {
7289
7297
  const props = mergeProps(defaultProps$12, p);
7298
+ const {
7299
+ locale
7300
+ } = useConfig();
7290
7301
  const bodyCls = classNames(`${classPrefix$1k}-body`, props.bodyClassName, `${classPrefix$1k}-body-position-${props.position}`);
7291
7302
  const [active, setActive] = useState$1(props.visible);
7292
7303
  useIsomorphicLayoutEffect$2(() => {
@@ -7366,7 +7377,9 @@ const Popup$1 = (p) => {
7366
7377
  onClick: () => {
7367
7378
  var _a;
7368
7379
  (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
7369
- }
7380
+ },
7381
+ role: "button",
7382
+ "aria-label": locale.common.close
7370
7383
  }, React__default.createElement(CloseOutline, null)), props.children))));
7371
7384
  return React__default.createElement(ShouldRender, {
7372
7385
  active,
@@ -7498,10 +7511,14 @@ function renderImperatively(element) {
7498
7511
  ref: wrapperRef
7499
7512
  }));
7500
7513
  return {
7501
- close: () => {
7514
+ close: () => __awaiter(this, void 0, void 0, function* () {
7502
7515
  var _a;
7503
- (_a = wrapperRef.current) === null || _a === void 0 ? void 0 : _a.close();
7504
- },
7516
+ if (!wrapperRef.current) {
7517
+ unmount2();
7518
+ } else {
7519
+ (_a = wrapperRef.current) === null || _a === void 0 ? void 0 : _a.close();
7520
+ }
7521
+ }),
7505
7522
  replace: (element2) => {
7506
7523
  var _a;
7507
7524
  (_a = wrapperRef.current) === null || _a === void 0 ? void 0 : _a.replace(element2);
@@ -8428,9 +8445,10 @@ const ScrollMask$1 = (props) => {
8428
8445
  }));
8429
8446
  };
8430
8447
  const ScrollMask = ScrollMask$1;
8431
- var _reactIs_17_0_2_reactIs = { exports: {} };
8448
+ var _reactIs_18_2_0_reactIs = { exports: {} };
8432
8449
  var reactIs_development$1 = {};
8433
- /** @license React v17.0.2
8450
+ /**
8451
+ * @license React
8434
8452
  * react-is.development.js
8435
8453
  *
8436
8454
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -8440,56 +8458,38 @@ var reactIs_development$1 = {};
8440
8458
  */
8441
8459
  {
8442
8460
  (function() {
8443
- var REACT_ELEMENT_TYPE = 60103;
8444
- var REACT_PORTAL_TYPE = 60106;
8445
- var REACT_FRAGMENT_TYPE = 60107;
8446
- var REACT_STRICT_MODE_TYPE = 60108;
8447
- var REACT_PROFILER_TYPE = 60114;
8448
- var REACT_PROVIDER_TYPE = 60109;
8449
- var REACT_CONTEXT_TYPE = 60110;
8450
- var REACT_FORWARD_REF_TYPE = 60112;
8451
- var REACT_SUSPENSE_TYPE = 60113;
8452
- var REACT_SUSPENSE_LIST_TYPE = 60120;
8453
- var REACT_MEMO_TYPE = 60115;
8454
- var REACT_LAZY_TYPE = 60116;
8455
- var REACT_BLOCK_TYPE = 60121;
8456
- var REACT_SERVER_BLOCK_TYPE = 60122;
8457
- var REACT_FUNDAMENTAL_TYPE = 60117;
8458
- var REACT_DEBUG_TRACING_MODE_TYPE = 60129;
8459
- var REACT_LEGACY_HIDDEN_TYPE = 60131;
8460
- if (typeof Symbol === "function" && Symbol.for) {
8461
- var symbolFor = Symbol.for;
8462
- REACT_ELEMENT_TYPE = symbolFor("react.element");
8463
- REACT_PORTAL_TYPE = symbolFor("react.portal");
8464
- REACT_FRAGMENT_TYPE = symbolFor("react.fragment");
8465
- REACT_STRICT_MODE_TYPE = symbolFor("react.strict_mode");
8466
- REACT_PROFILER_TYPE = symbolFor("react.profiler");
8467
- REACT_PROVIDER_TYPE = symbolFor("react.provider");
8468
- REACT_CONTEXT_TYPE = symbolFor("react.context");
8469
- REACT_FORWARD_REF_TYPE = symbolFor("react.forward_ref");
8470
- REACT_SUSPENSE_TYPE = symbolFor("react.suspense");
8471
- REACT_SUSPENSE_LIST_TYPE = symbolFor("react.suspense_list");
8472
- REACT_MEMO_TYPE = symbolFor("react.memo");
8473
- REACT_LAZY_TYPE = symbolFor("react.lazy");
8474
- REACT_BLOCK_TYPE = symbolFor("react.block");
8475
- REACT_SERVER_BLOCK_TYPE = symbolFor("react.server.block");
8476
- REACT_FUNDAMENTAL_TYPE = symbolFor("react.fundamental");
8477
- symbolFor("react.scope");
8478
- symbolFor("react.opaque.id");
8479
- REACT_DEBUG_TRACING_MODE_TYPE = symbolFor("react.debug_trace_mode");
8480
- symbolFor("react.offscreen");
8481
- REACT_LEGACY_HIDDEN_TYPE = symbolFor("react.legacy_hidden");
8482
- }
8461
+ var REACT_ELEMENT_TYPE = Symbol.for("react.element");
8462
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
8463
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
8464
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
8465
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
8466
+ var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
8467
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
8468
+ var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
8469
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
8470
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
8471
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
8472
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
8473
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
8474
+ var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
8483
8475
  var enableScopeAPI = false;
8476
+ var enableCacheElement = false;
8477
+ var enableTransitionTracing = false;
8478
+ var enableLegacyHidden = false;
8479
+ var enableDebugTracing = false;
8480
+ var REACT_MODULE_REFERENCE;
8481
+ {
8482
+ REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
8483
+ }
8484
8484
  function isValidElementType(type4) {
8485
8485
  if (typeof type4 === "string" || typeof type4 === "function") {
8486
8486
  return true;
8487
8487
  }
8488
- if (type4 === REACT_FRAGMENT_TYPE || type4 === REACT_PROFILER_TYPE || type4 === REACT_DEBUG_TRACING_MODE_TYPE || type4 === REACT_STRICT_MODE_TYPE || type4 === REACT_SUSPENSE_TYPE || type4 === REACT_SUSPENSE_LIST_TYPE || type4 === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {
8488
+ if (type4 === REACT_FRAGMENT_TYPE || type4 === REACT_PROFILER_TYPE || enableDebugTracing || type4 === REACT_STRICT_MODE_TYPE || type4 === REACT_SUSPENSE_TYPE || type4 === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type4 === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
8489
8489
  return true;
8490
8490
  }
8491
8491
  if (typeof type4 === "object" && type4 !== null) {
8492
- if (type4.$$typeof === REACT_LAZY_TYPE || type4.$$typeof === REACT_MEMO_TYPE || type4.$$typeof === REACT_PROVIDER_TYPE || type4.$$typeof === REACT_CONTEXT_TYPE || type4.$$typeof === REACT_FORWARD_REF_TYPE || type4.$$typeof === REACT_FUNDAMENTAL_TYPE || type4.$$typeof === REACT_BLOCK_TYPE || type4[0] === REACT_SERVER_BLOCK_TYPE) {
8492
+ if (type4.$$typeof === REACT_LAZY_TYPE || type4.$$typeof === REACT_MEMO_TYPE || type4.$$typeof === REACT_PROVIDER_TYPE || type4.$$typeof === REACT_CONTEXT_TYPE || type4.$$typeof === REACT_FORWARD_REF_TYPE || type4.$$typeof === REACT_MODULE_REFERENCE || type4.getModuleId !== void 0) {
8493
8493
  return true;
8494
8494
  }
8495
8495
  }
@@ -8511,6 +8511,7 @@ var reactIs_development$1 = {};
8511
8511
  default:
8512
8512
  var $$typeofType = type4 && type4.$$typeof;
8513
8513
  switch ($$typeofType) {
8514
+ case REACT_SERVER_CONTEXT_TYPE:
8514
8515
  case REACT_CONTEXT_TYPE:
8515
8516
  case REACT_FORWARD_REF_TYPE:
8516
8517
  case REACT_LAZY_TYPE:
@@ -8538,6 +8539,7 @@ var reactIs_development$1 = {};
8538
8539
  var Profiler = REACT_PROFILER_TYPE;
8539
8540
  var StrictMode = REACT_STRICT_MODE_TYPE;
8540
8541
  var Suspense = REACT_SUSPENSE_TYPE;
8542
+ var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
8541
8543
  var hasWarnedAboutDeprecatedIsAsyncMode = false;
8542
8544
  var hasWarnedAboutDeprecatedIsConcurrentMode = false;
8543
8545
  function isAsyncMode(object4) {
@@ -8591,6 +8593,9 @@ var reactIs_development$1 = {};
8591
8593
  function isSuspense(object4) {
8592
8594
  return typeOf(object4) === REACT_SUSPENSE_TYPE;
8593
8595
  }
8596
+ function isSuspenseList(object4) {
8597
+ return typeOf(object4) === REACT_SUSPENSE_LIST_TYPE;
8598
+ }
8594
8599
  reactIs_development$1.ContextConsumer = ContextConsumer;
8595
8600
  reactIs_development$1.ContextProvider = ContextProvider;
8596
8601
  reactIs_development$1.Element = Element2;
@@ -8602,6 +8607,7 @@ var reactIs_development$1 = {};
8602
8607
  reactIs_development$1.Profiler = Profiler;
8603
8608
  reactIs_development$1.StrictMode = StrictMode;
8604
8609
  reactIs_development$1.Suspense = Suspense;
8610
+ reactIs_development$1.SuspenseList = SuspenseList;
8605
8611
  reactIs_development$1.isAsyncMode = isAsyncMode;
8606
8612
  reactIs_development$1.isConcurrentMode = isConcurrentMode;
8607
8613
  reactIs_development$1.isContextConsumer = isContextConsumer;
@@ -8615,6 +8621,7 @@ var reactIs_development$1 = {};
8615
8621
  reactIs_development$1.isProfiler = isProfiler;
8616
8622
  reactIs_development$1.isStrictMode = isStrictMode;
8617
8623
  reactIs_development$1.isSuspense = isSuspense;
8624
+ reactIs_development$1.isSuspenseList = isSuspenseList;
8618
8625
  reactIs_development$1.isValidElementType = isValidElementType;
8619
8626
  reactIs_development$1.typeOf = typeOf;
8620
8627
  })();
@@ -8623,12 +8630,12 @@ var reactIs_development$1 = {};
8623
8630
  {
8624
8631
  module.exports = reactIs_development$1;
8625
8632
  }
8626
- })(_reactIs_17_0_2_reactIs);
8633
+ })(_reactIs_18_2_0_reactIs);
8627
8634
  function traverseReactNode(children, fn) {
8628
8635
  let i = 0;
8629
8636
  function handle(target) {
8630
8637
  React__default.Children.forEach(target, (child) => {
8631
- if (!_reactIs_17_0_2_reactIs.exports.isFragment(child)) {
8638
+ if (!_reactIs_18_2_0_reactIs.exports.isFragment(child)) {
8632
8639
  fn(child, i);
8633
8640
  i += 1;
8634
8641
  } else {
@@ -10882,7 +10889,7 @@ var useSyncExternalStoreShim_development = {};
10882
10889
  var useState2 = React2.useState, useEffect2 = React2.useEffect, useLayoutEffect2 = React2.useLayoutEffect, useDebugValue = React2.useDebugValue;
10883
10890
  var didWarnOld18Alpha = false;
10884
10891
  var didWarnUncachedGetSnapshot = false;
10885
- function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
10892
+ function useSyncExternalStore(subscribe2, getSnapshot, getServerSnapshot) {
10886
10893
  {
10887
10894
  if (!didWarnOld18Alpha) {
10888
10895
  if (React2.startTransition !== void 0) {
@@ -10915,7 +10922,7 @@ var useSyncExternalStoreShim_development = {};
10915
10922
  inst
10916
10923
  });
10917
10924
  }
10918
- }, [subscribe, value, getSnapshot]);
10925
+ }, [subscribe2, value, getSnapshot]);
10919
10926
  useEffect2(function() {
10920
10927
  if (checkIfSnapshotChanged(inst)) {
10921
10928
  forceUpdate({
@@ -10929,8 +10936,8 @@ var useSyncExternalStoreShim_development = {};
10929
10936
  });
10930
10937
  }
10931
10938
  };
10932
- return subscribe(handleStoreChange);
10933
- }, [subscribe]);
10939
+ return subscribe2(handleStoreChange);
10940
+ }, [subscribe2]);
10934
10941
  useDebugValue(value);
10935
10942
  return value;
10936
10943
  }
@@ -10944,7 +10951,7 @@ var useSyncExternalStoreShim_development = {};
10944
10951
  return true;
10945
10952
  }
10946
10953
  }
10947
- function useSyncExternalStore$1(subscribe, getSnapshot, getServerSnapshot) {
10954
+ function useSyncExternalStore$1(subscribe2, getSnapshot, getServerSnapshot) {
10948
10955
  return getSnapshot();
10949
10956
  }
10950
10957
  var canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
@@ -10986,13 +10993,14 @@ function restoreMotion() {
10986
10993
  function isMotionReduced() {
10987
10994
  return reduced;
10988
10995
  }
10996
+ function subscribe(onStoreChange) {
10997
+ subscribers.add(onStoreChange);
10998
+ return () => {
10999
+ subscribers.delete(onStoreChange);
11000
+ };
11001
+ }
10989
11002
  function useMotionReduced() {
10990
- return shim.exports.useSyncExternalStore((onStoreChange) => {
10991
- subscribers.add(onStoreChange);
10992
- return () => {
10993
- subscribers.delete(onStoreChange);
10994
- };
10995
- }, isMotionReduced);
11003
+ return shim.exports.useSyncExternalStore(subscribe, isMotionReduced);
10996
11004
  }
10997
11005
  const classPrefix$16 = "adm-spin-loading";
10998
11006
  const colorRecord$2 = {
@@ -13389,13 +13397,14 @@ const defaultProps$G = {
13389
13397
  collapseText: "",
13390
13398
  stopPropagationForActionButtons: [],
13391
13399
  onContentClick: () => {
13392
- }
13400
+ },
13401
+ defaultExpanded: false
13393
13402
  };
13394
13403
  const Ellipsis$1 = (p) => {
13395
13404
  const props = mergeProps(defaultProps$G, p);
13396
13405
  const rootRef = useRef(null);
13397
13406
  const [ellipsised, setEllipsised] = useState$1({});
13398
- const [expanded, setExpanded] = useState$1(false);
13407
+ const [expanded, setExpanded] = useState$1(props.defaultExpanded);
13399
13408
  const [exceeded, setExceeded] = useState$1(false);
13400
13409
  const chars = useMemo(() => _runes_0_4_3_runes.exports(props.content), [props.content]);
13401
13410
  function getSubString(start2, end) {
@@ -16451,7 +16460,7 @@ function _validateRule() {
16451
16460
  _validateRule = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee2(name, value, rule, options, messageVariables) {
16452
16461
  var cloneRule, originValidator, subRuleField, validator, messages2, result2, subResults, kv, fillVariableResult;
16453
16462
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
16454
- while (1) {
16463
+ while (1)
16455
16464
  switch (_context2.prev = _context2.next) {
16456
16465
  case 0:
16457
16466
  cloneRule = _objectSpread2({}, rule);
@@ -16524,7 +16533,6 @@ function _validateRule() {
16524
16533
  case "end":
16525
16534
  return _context2.stop();
16526
16535
  }
16527
- }
16528
16536
  }, _callee2, null, [[9, 14]]);
16529
16537
  }));
16530
16538
  return _validateRule.apply(this, arguments);
@@ -16580,7 +16588,7 @@ function validateRules(namePath, value, rules2, options, validateFirst, messageV
16580
16588
  var _ref3 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee(resolve, reject) {
16581
16589
  var i, rule, errors;
16582
16590
  return _regeneratorRuntime().wrap(function _callee$(_context) {
16583
- while (1) {
16591
+ while (1)
16584
16592
  switch (_context.prev = _context.next) {
16585
16593
  case 0:
16586
16594
  i = 0;
@@ -16613,7 +16621,6 @@ function validateRules(namePath, value, rules2, options, validateFirst, messageV
16613
16621
  case "end":
16614
16622
  return _context.stop();
16615
16623
  }
16616
- }
16617
16624
  }, _callee);
16618
16625
  }));
16619
16626
  return function(_x6, _x7) {
@@ -16644,7 +16651,7 @@ function finishOnAllFailed(_x8) {
16644
16651
  function _finishOnAllFailed() {
16645
16652
  _finishOnAllFailed = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee3(rulePromises) {
16646
16653
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
16647
- while (1) {
16654
+ while (1)
16648
16655
  switch (_context3.prev = _context3.next) {
16649
16656
  case 0:
16650
16657
  return _context3.abrupt("return", Promise.all(rulePromises).then(function(errorsList) {
@@ -16656,7 +16663,6 @@ function _finishOnAllFailed() {
16656
16663
  case "end":
16657
16664
  return _context3.stop();
16658
16665
  }
16659
- }
16660
16666
  }, _callee3);
16661
16667
  }));
16662
16668
  return _finishOnAllFailed.apply(this, arguments);
@@ -16668,7 +16674,7 @@ function _finishOnFirstFailed() {
16668
16674
  _finishOnFirstFailed = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee4(rulePromises) {
16669
16675
  var count;
16670
16676
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
16671
- while (1) {
16677
+ while (1)
16672
16678
  switch (_context4.prev = _context4.next) {
16673
16679
  case 0:
16674
16680
  count = 0;
@@ -16689,7 +16695,6 @@ function _finishOnFirstFailed() {
16689
16695
  case "end":
16690
16696
  return _context4.stop();
16691
16697
  }
16692
- }
16693
16698
  }, _callee4);
16694
16699
  }));
16695
16700
  return _finishOnFirstFailed.apply(this, arguments);
@@ -18202,6 +18207,11 @@ function stringify(value) {
18202
18207
  return Math.random();
18203
18208
  }
18204
18209
  }
18210
+ var useWatchWarning = function(namePath) {
18211
+ var fullyStr = namePath.join("__RC_FIELD_FORM_SPLIT__");
18212
+ var nameStrRef = useRef(fullyStr);
18213
+ warningOnce$1(nameStrRef.current === fullyStr, "`useWatch` is not support dynamic `namePath`. Please provide static instead.");
18214
+ };
18205
18215
  function useWatch() {
18206
18216
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
18207
18217
  args[_key] = arguments[_key];
@@ -18222,6 +18232,7 @@ function useWatch() {
18222
18232
  var namePath = getNamePath(dependencies);
18223
18233
  var namePathRef = useRef(namePath);
18224
18234
  namePathRef.current = namePath;
18235
+ useWatchWarning(namePath);
18225
18236
  useEffect(
18226
18237
  function() {
18227
18238
  if (!isValidForm) {
@@ -18757,9 +18768,9 @@ function isSimpleFunctionComponent(type4) {
18757
18768
  return typeof type4 === "function" && !shouldConstruct(type4) && type4.defaultProps === void 0;
18758
18769
  }
18759
18770
  function isSafeSetRefComponent(component) {
18760
- if (_reactIs_17_0_2_reactIs.exports.isFragment(component))
18771
+ if (_reactIs_18_2_0_reactIs.exports.isFragment(component))
18761
18772
  return false;
18762
- if (_reactIs_17_0_2_reactIs.exports.isMemo(component))
18773
+ if (_reactIs_18_2_0_reactIs.exports.isMemo(component))
18763
18774
  return isSafeSetRefComponent(component.type);
18764
18775
  return !isSimpleFunctionComponent(component.type);
18765
18776
  }
@@ -18971,7 +18982,7 @@ function rectToClientRect(rect) {
18971
18982
  bottom: rect.y + rect.height
18972
18983
  };
18973
18984
  }
18974
- async function detectOverflow(middlewareArguments, options) {
18985
+ async function detectOverflow(state, options) {
18975
18986
  var _await$platform$isEle;
18976
18987
  if (options === void 0) {
18977
18988
  options = {};
@@ -18983,7 +18994,7 @@ async function detectOverflow(middlewareArguments, options) {
18983
18994
  rects,
18984
18995
  elements,
18985
18996
  strategy
18986
- } = middlewareArguments;
18997
+ } = state;
18987
18998
  const {
18988
18999
  boundary = "clippingAncestors",
18989
19000
  rootBoundary = "viewport",
@@ -19033,7 +19044,7 @@ function within(min$1$1, value, max$1$1) {
19033
19044
  const arrow = (options) => ({
19034
19045
  name: "arrow",
19035
19046
  options,
19036
- async fn(middlewareArguments) {
19047
+ async fn(state) {
19037
19048
  const {
19038
19049
  element,
19039
19050
  padding = 0
@@ -19043,8 +19054,9 @@ const arrow = (options) => ({
19043
19054
  y,
19044
19055
  placement,
19045
19056
  rects,
19046
- platform: platform2
19047
- } = middlewareArguments;
19057
+ platform: platform2,
19058
+ elements
19059
+ } = state;
19048
19060
  if (element == null) {
19049
19061
  {
19050
19062
  console.warn("Floating UI: No `element` was passed to the `arrow` middleware.");
@@ -19059,14 +19071,16 @@ const arrow = (options) => ({
19059
19071
  const axis = getMainAxisFromPlacement(placement);
19060
19072
  const length = getLengthFromAxis(axis);
19061
19073
  const arrowDimensions = await platform2.getDimensions(element);
19062
- const minProp = axis === "y" ? "top" : "left";
19063
- const maxProp = axis === "y" ? "bottom" : "right";
19074
+ const isYAxis = axis === "y";
19075
+ const minProp = isYAxis ? "top" : "left";
19076
+ const maxProp = isYAxis ? "bottom" : "right";
19077
+ const clientProp = isYAxis ? "clientHeight" : "clientWidth";
19064
19078
  const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
19065
19079
  const startDiff = coords[axis] - rects.reference[axis];
19066
19080
  const arrowOffsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(element));
19067
- let clientSize = arrowOffsetParent ? axis === "y" ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
19068
- if (clientSize === 0) {
19069
- clientSize = rects.floating[length];
19081
+ let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
19082
+ if (!clientSize || !await (platform2.isElement == null ? void 0 : platform2.isElement(arrowOffsetParent))) {
19083
+ clientSize = elements.floating[clientProp] || rects.floating[length];
19070
19084
  }
19071
19085
  const centerToReference = endDiff / 2 - startDiff / 2;
19072
19086
  const min2 = paddingObject[minProp];
@@ -19157,7 +19171,7 @@ const flip = function(options) {
19157
19171
  return {
19158
19172
  name: "flip",
19159
19173
  options,
19160
- async fn(middlewareArguments) {
19174
+ async fn(state) {
19161
19175
  var _middlewareData$flip;
19162
19176
  const {
19163
19177
  placement,
@@ -19166,7 +19180,7 @@ const flip = function(options) {
19166
19180
  initialPlacement,
19167
19181
  platform: platform2,
19168
19182
  elements
19169
- } = middlewareArguments;
19183
+ } = state;
19170
19184
  const {
19171
19185
  mainAxis: checkMainAxis = true,
19172
19186
  crossAxis: checkCrossAxis = true,
@@ -19184,7 +19198,7 @@ const flip = function(options) {
19184
19198
  fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
19185
19199
  }
19186
19200
  const placements = [initialPlacement, ...fallbackPlacements];
19187
- const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
19201
+ const overflow = await detectOverflow(state, detectOverflowOptions);
19188
19202
  const overflows = [];
19189
19203
  let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
19190
19204
  if (checkMainAxis) {
@@ -19202,7 +19216,7 @@ const flip = function(options) {
19202
19216
  overflows
19203
19217
  }];
19204
19218
  if (!overflows.every((side2) => side2 <= 0)) {
19205
- var _middlewareData$flip2;
19219
+ var _middlewareData$flip2, _overflowsData$filter;
19206
19220
  const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
19207
19221
  const nextPlacement = placements[nextIndex];
19208
19222
  if (nextPlacement) {
@@ -19216,19 +19230,21 @@ const flip = function(options) {
19216
19230
  }
19217
19231
  };
19218
19232
  }
19219
- let resetPlacement = "bottom";
19220
- switch (fallbackStrategy) {
19221
- case "bestFit": {
19222
- var _overflowsData$map$so;
19223
- const placement2 = (_overflowsData$map$so = overflowsData.map((d) => [d, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0].placement;
19224
- if (placement2) {
19225
- resetPlacement = placement2;
19233
+ let resetPlacement = (_overflowsData$filter = overflowsData.filter((d) => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
19234
+ if (!resetPlacement) {
19235
+ switch (fallbackStrategy) {
19236
+ case "bestFit": {
19237
+ var _overflowsData$map$so;
19238
+ const placement2 = (_overflowsData$map$so = overflowsData.map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];
19239
+ if (placement2) {
19240
+ resetPlacement = placement2;
19241
+ }
19242
+ break;
19226
19243
  }
19227
- break;
19244
+ case "initialPlacement":
19245
+ resetPlacement = initialPlacement;
19246
+ break;
19228
19247
  }
19229
- case "initialPlacement":
19230
- resetPlacement = initialPlacement;
19231
- break;
19232
19248
  }
19233
19249
  if (placement !== resetPlacement) {
19234
19250
  return {
@@ -19260,17 +19276,17 @@ const hide = function(options) {
19260
19276
  return {
19261
19277
  name: "hide",
19262
19278
  options,
19263
- async fn(middlewareArguments) {
19279
+ async fn(state) {
19264
19280
  const {
19265
19281
  strategy = "referenceHidden",
19266
19282
  ...detectOverflowOptions
19267
19283
  } = options;
19268
19284
  const {
19269
19285
  rects
19270
- } = middlewareArguments;
19286
+ } = state;
19271
19287
  switch (strategy) {
19272
19288
  case "referenceHidden": {
19273
- const overflow = await detectOverflow(middlewareArguments, {
19289
+ const overflow = await detectOverflow(state, {
19274
19290
  ...detectOverflowOptions,
19275
19291
  elementContext: "reference"
19276
19292
  });
@@ -19283,7 +19299,7 @@ const hide = function(options) {
19283
19299
  };
19284
19300
  }
19285
19301
  case "escaped": {
19286
- const overflow = await detectOverflow(middlewareArguments, {
19302
+ const overflow = await detectOverflow(state, {
19287
19303
  ...detectOverflowOptions,
19288
19304
  altBoundary: true
19289
19305
  });
@@ -19302,19 +19318,19 @@ const hide = function(options) {
19302
19318
  }
19303
19319
  };
19304
19320
  };
19305
- async function convertValueToCoords(middlewareArguments, value) {
19321
+ async function convertValueToCoords(state, value) {
19306
19322
  const {
19307
19323
  placement,
19308
19324
  platform: platform2,
19309
19325
  elements
19310
- } = middlewareArguments;
19326
+ } = state;
19311
19327
  const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
19312
19328
  const side = getSide(placement);
19313
19329
  const alignment = getAlignment(placement);
19314
19330
  const isVertical = getMainAxisFromPlacement(placement) === "x";
19315
19331
  const mainAxisMulti = ["left", "top"].includes(side) ? -1 : 1;
19316
19332
  const crossAxisMulti = rtl && isVertical ? -1 : 1;
19317
- const rawValue = typeof value === "function" ? value(middlewareArguments) : value;
19333
+ const rawValue = typeof value === "function" ? value(state) : value;
19318
19334
  let {
19319
19335
  mainAxis,
19320
19336
  crossAxis,
@@ -19347,12 +19363,12 @@ const offset = function(value) {
19347
19363
  return {
19348
19364
  name: "offset",
19349
19365
  options: value,
19350
- async fn(middlewareArguments) {
19366
+ async fn(state) {
19351
19367
  const {
19352
19368
  x,
19353
19369
  y
19354
- } = middlewareArguments;
19355
- const diffCoords = await convertValueToCoords(middlewareArguments, value);
19370
+ } = state;
19371
+ const diffCoords = await convertValueToCoords(state, value);
19356
19372
  return {
19357
19373
  x: x + diffCoords.x,
19358
19374
  y: y + diffCoords.y,
@@ -19371,12 +19387,12 @@ const shift = function(options) {
19371
19387
  return {
19372
19388
  name: "shift",
19373
19389
  options,
19374
- async fn(middlewareArguments) {
19390
+ async fn(state) {
19375
19391
  const {
19376
19392
  x,
19377
19393
  y,
19378
19394
  placement
19379
- } = middlewareArguments;
19395
+ } = state;
19380
19396
  const {
19381
19397
  mainAxis: checkMainAxis = true,
19382
19398
  crossAxis: checkCrossAxis = false,
@@ -19398,7 +19414,7 @@ const shift = function(options) {
19398
19414
  x,
19399
19415
  y
19400
19416
  };
19401
- const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
19417
+ const overflow = await detectOverflow(state, detectOverflowOptions);
19402
19418
  const mainAxis = getMainAxisFromPlacement(getSide(placement));
19403
19419
  const crossAxis = getCrossAxis(mainAxis);
19404
19420
  let mainAxisCoord = coords[mainAxis];
@@ -19418,7 +19434,7 @@ const shift = function(options) {
19418
19434
  crossAxisCoord = within(min2, crossAxisCoord, max2);
19419
19435
  }
19420
19436
  const limitedCoords = limiter.fn({
19421
- ...middlewareArguments,
19437
+ ...state,
19422
19438
  [mainAxis]: mainAxisCoord,
19423
19439
  [crossAxis]: crossAxisCoord
19424
19440
  });
@@ -19438,14 +19454,14 @@ const limitShift = function(options) {
19438
19454
  }
19439
19455
  return {
19440
19456
  options,
19441
- fn(middlewareArguments) {
19457
+ fn(state) {
19442
19458
  const {
19443
19459
  x,
19444
19460
  y,
19445
19461
  placement,
19446
19462
  rects,
19447
19463
  middlewareData
19448
- } = middlewareArguments;
19464
+ } = state;
19449
19465
  const {
19450
19466
  offset: offset2 = 0,
19451
19467
  mainAxis: checkMainAxis = true,
@@ -19459,7 +19475,7 @@ const limitShift = function(options) {
19459
19475
  const crossAxis = getCrossAxis(mainAxis);
19460
19476
  let mainAxisCoord = coords[mainAxis];
19461
19477
  let crossAxisCoord = coords[crossAxis];
19462
- const rawOffset = typeof offset2 === "function" ? offset2(middlewareArguments) : offset2;
19478
+ const rawOffset = typeof offset2 === "function" ? offset2(state) : offset2;
19463
19479
  const computedOffset = typeof rawOffset === "number" ? {
19464
19480
  mainAxis: rawOffset,
19465
19481
  crossAxis: 0
@@ -19504,6 +19520,9 @@ function getWindow(node) {
19504
19520
  function getComputedStyle$1(element) {
19505
19521
  return getWindow(element).getComputedStyle(element);
19506
19522
  }
19523
+ function isNode(value) {
19524
+ return value instanceof getWindow(value).Node;
19525
+ }
19507
19526
  function getNodeName(node) {
19508
19527
  return isNode(node) ? (node.nodeName || "").toLowerCase() : "";
19509
19528
  }
@@ -19525,9 +19544,6 @@ function isHTMLElement(value) {
19525
19544
  function isElement(value) {
19526
19545
  return value instanceof getWindow(value).Element;
19527
19546
  }
19528
- function isNode(value) {
19529
- return value instanceof getWindow(value).Node;
19530
- }
19531
19547
  function isShadowRoot(node) {
19532
19548
  if (typeof ShadowRoot === "undefined") {
19533
19549
  return false;
@@ -19551,15 +19567,13 @@ function isContainingBlock(element) {
19551
19567
  const isFirefox = /firefox/i.test(getUAString());
19552
19568
  const css = getComputedStyle$1(element);
19553
19569
  const backdropFilter = css.backdropFilter || css.WebkitBackdropFilter;
19554
- return css.transform !== "none" || css.perspective !== "none" || (backdropFilter ? backdropFilter !== "none" : false) || isFirefox && css.willChange === "filter" || isFirefox && (css.filter ? css.filter !== "none" : false) || ["transform", "perspective"].some((value) => css.willChange.includes(value)) || ["paint", "layout", "strict", "content"].some(
19555
- (value) => {
19556
- const contain = css.contain;
19557
- return contain != null ? contain.includes(value) : false;
19558
- }
19559
- );
19570
+ return css.transform !== "none" || css.perspective !== "none" || (backdropFilter ? backdropFilter !== "none" : false) || isFirefox && css.willChange === "filter" || isFirefox && (css.filter ? css.filter !== "none" : false) || ["transform", "perspective"].some((value) => css.willChange.includes(value)) || ["paint", "layout", "strict", "content"].some((value) => {
19571
+ const contain = css.contain;
19572
+ return contain != null ? contain.includes(value) : false;
19573
+ });
19560
19574
  }
19561
- function isLayoutViewport() {
19562
- return !/^((?!chrome|android).)*safari/i.test(getUAString());
19575
+ function isClientRectVisualViewportBased() {
19576
+ return /^((?!chrome|android).)*safari/i.test(getUAString());
19563
19577
  }
19564
19578
  function isLastTraversableNode(node) {
19565
19579
  return ["html", "body", "#document"].includes(getNodeName(node));
@@ -19571,8 +19585,9 @@ function getCssDimensions(element) {
19571
19585
  const css = getComputedStyle$1(element);
19572
19586
  let width = parseFloat(css.width);
19573
19587
  let height = parseFloat(css.height);
19574
- const offsetWidth = element.offsetWidth;
19575
- const offsetHeight = element.offsetHeight;
19588
+ const hasOffset = isHTMLElement(element);
19589
+ const offsetWidth = hasOffset ? element.offsetWidth : width;
19590
+ const offsetHeight = hasOffset ? element.offsetHeight : height;
19576
19591
  const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
19577
19592
  if (shouldFallback) {
19578
19593
  width = offsetWidth;
@@ -19636,7 +19651,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
19636
19651
  }
19637
19652
  }
19638
19653
  const win = domElement ? getWindow(domElement) : window;
19639
- const addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
19654
+ const addVisualOffsets = isClientRectVisualViewportBased() && isFixedStrategy;
19640
19655
  let x = (clientRect.left + (addVisualOffsets ? ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0 : 0)) / scale2.x;
19641
19656
  let y = (clientRect.top + (addVisualOffsets ? ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0 : 0)) / scale2.y;
19642
19657
  let width = clientRect.width / scale2.x;
@@ -19660,16 +19675,12 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
19660
19675
  currentIFrame = getWindow(currentIFrame).frameElement;
19661
19676
  }
19662
19677
  }
19663
- return {
19678
+ return rectToClientRect({
19664
19679
  width,
19665
19680
  height,
19666
- top: y,
19667
- right: x + width,
19668
- bottom: y + height,
19669
- left: x,
19670
19681
  x,
19671
19682
  y
19672
- };
19683
+ });
19673
19684
  }
19674
19685
  function getDocumentElement(node) {
19675
19686
  return ((isNode(node) ? node.ownerDocument : node.document) || window.document).documentElement;
@@ -19686,78 +19697,6 @@ function getNodeScroll(element) {
19686
19697
  scrollTop: element.pageYOffset
19687
19698
  };
19688
19699
  }
19689
- function getWindowScrollBarX(element) {
19690
- return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
19691
- }
19692
- function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
19693
- const isOffsetParentAnElement = isHTMLElement(offsetParent);
19694
- const documentElement = getDocumentElement(offsetParent);
19695
- const rect = getBoundingClientRect(element, true, strategy === "fixed", offsetParent);
19696
- let scroll = {
19697
- scrollLeft: 0,
19698
- scrollTop: 0
19699
- };
19700
- const offsets = {
19701
- x: 0,
19702
- y: 0
19703
- };
19704
- if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== "fixed") {
19705
- if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
19706
- scroll = getNodeScroll(offsetParent);
19707
- }
19708
- if (isHTMLElement(offsetParent)) {
19709
- const offsetRect = getBoundingClientRect(offsetParent, true);
19710
- offsets.x = offsetRect.x + offsetParent.clientLeft;
19711
- offsets.y = offsetRect.y + offsetParent.clientTop;
19712
- } else if (documentElement) {
19713
- offsets.x = getWindowScrollBarX(documentElement);
19714
- }
19715
- }
19716
- return {
19717
- x: rect.left + scroll.scrollLeft - offsets.x,
19718
- y: rect.top + scroll.scrollTop - offsets.y,
19719
- width: rect.width,
19720
- height: rect.height
19721
- };
19722
- }
19723
- function getParentNode(node) {
19724
- if (getNodeName(node) === "html") {
19725
- return node;
19726
- }
19727
- const result2 = node.assignedSlot || node.parentNode || (isShadowRoot(node) ? node.host : null) || getDocumentElement(node);
19728
- return isShadowRoot(result2) ? result2.host : result2;
19729
- }
19730
- function getTrueOffsetParent(element) {
19731
- if (!isHTMLElement(element) || getComputedStyle$1(element).position === "fixed") {
19732
- return null;
19733
- }
19734
- return element.offsetParent;
19735
- }
19736
- function getContainingBlock(element) {
19737
- let currentNode = getParentNode(element);
19738
- while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
19739
- if (isContainingBlock(currentNode)) {
19740
- return currentNode;
19741
- } else {
19742
- currentNode = getParentNode(currentNode);
19743
- }
19744
- }
19745
- return null;
19746
- }
19747
- function getOffsetParent(element) {
19748
- const window2 = getWindow(element);
19749
- let offsetParent = getTrueOffsetParent(element);
19750
- while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === "static") {
19751
- offsetParent = getTrueOffsetParent(offsetParent);
19752
- }
19753
- if (offsetParent && (getNodeName(offsetParent) === "html" || getNodeName(offsetParent) === "body" && getComputedStyle$1(offsetParent).position === "static" && !isContainingBlock(offsetParent))) {
19754
- return window2;
19755
- }
19756
- return offsetParent || getContainingBlock(element) || window2;
19757
- }
19758
- function getDimensions(element) {
19759
- return getCssDimensions(element);
19760
- }
19761
19700
  function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
19762
19701
  let {
19763
19702
  rect,
@@ -19799,41 +19738,19 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
19799
19738
  y: rect.y * scale2.y - scroll.scrollTop * scale2.y + offsets.y
19800
19739
  };
19801
19740
  }
19802
- function getViewportRect(element, strategy) {
19803
- const win = getWindow(element);
19804
- const html = getDocumentElement(element);
19805
- const visualViewport = win.visualViewport;
19806
- let width = html.clientWidth;
19807
- let height = html.clientHeight;
19808
- let x = 0;
19809
- let y = 0;
19810
- if (visualViewport) {
19811
- width = visualViewport.width;
19812
- height = visualViewport.height;
19813
- const layoutViewport = isLayoutViewport();
19814
- if (layoutViewport || !layoutViewport && strategy === "fixed") {
19815
- x = visualViewport.offsetLeft;
19816
- y = visualViewport.offsetTop;
19817
- }
19818
- }
19819
- return {
19820
- width,
19821
- height,
19822
- x,
19823
- y
19824
- };
19741
+ function getWindowScrollBarX(element) {
19742
+ return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
19825
19743
  }
19826
19744
  function getDocumentRect(element) {
19827
- var _element$ownerDocumen;
19828
19745
  const html = getDocumentElement(element);
19829
19746
  const scroll = getNodeScroll(element);
19830
- const body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
19831
- const width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
19832
- const height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
19747
+ const body = element.ownerDocument.body;
19748
+ const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
19749
+ const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
19833
19750
  let x = -scroll.scrollLeft + getWindowScrollBarX(element);
19834
19751
  const y = -scroll.scrollTop;
19835
- if (getComputedStyle$1(body || html).direction === "rtl") {
19836
- x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
19752
+ if (getComputedStyle$1(body).direction === "rtl") {
19753
+ x += max(html.clientWidth, body.clientWidth) - width;
19837
19754
  }
19838
19755
  return {
19839
19756
  width,
@@ -19842,10 +19759,17 @@ function getDocumentRect(element) {
19842
19759
  y
19843
19760
  };
19844
19761
  }
19762
+ function getParentNode(node) {
19763
+ if (getNodeName(node) === "html") {
19764
+ return node;
19765
+ }
19766
+ const result2 = node.assignedSlot || node.parentNode || isShadowRoot(node) && node.host || getDocumentElement(node);
19767
+ return isShadowRoot(result2) ? result2.host : result2;
19768
+ }
19845
19769
  function getNearestOverflowAncestor(node) {
19846
19770
  const parentNode = getParentNode(node);
19847
19771
  if (isLastTraversableNode(parentNode)) {
19848
- return node.ownerDocument.body;
19772
+ return parentNode.ownerDocument.body;
19849
19773
  }
19850
19774
  if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
19851
19775
  return parentNode;
@@ -19865,6 +19789,30 @@ function getOverflowAncestors(node, list2) {
19865
19789
  }
19866
19790
  return list2.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
19867
19791
  }
19792
+ function getViewportRect(element, strategy) {
19793
+ const win = getWindow(element);
19794
+ const html = getDocumentElement(element);
19795
+ const visualViewport = win.visualViewport;
19796
+ let width = html.clientWidth;
19797
+ let height = html.clientHeight;
19798
+ let x = 0;
19799
+ let y = 0;
19800
+ if (visualViewport) {
19801
+ width = visualViewport.width;
19802
+ height = visualViewport.height;
19803
+ const visualViewportBased = isClientRectVisualViewportBased();
19804
+ if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
19805
+ x = visualViewport.offsetLeft;
19806
+ y = visualViewport.offsetTop;
19807
+ }
19808
+ }
19809
+ return {
19810
+ width,
19811
+ height,
19812
+ x,
19813
+ y
19814
+ };
19815
+ }
19868
19816
  function getInnerBoundingClientRect(element, strategy) {
19869
19817
  const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
19870
19818
  const top = clientRect.top + element.clientTop;
@@ -19878,24 +19826,33 @@ function getInnerBoundingClientRect(element, strategy) {
19878
19826
  const x = left * scale2.x;
19879
19827
  const y = top * scale2.y;
19880
19828
  return {
19881
- top: y,
19882
- left: x,
19883
- right: x + width,
19884
- bottom: y + height,
19885
- x,
19886
- y,
19887
19829
  width,
19888
- height
19830
+ height,
19831
+ x,
19832
+ y
19889
19833
  };
19890
19834
  }
19891
19835
  function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
19836
+ let rect;
19892
19837
  if (clippingAncestor === "viewport") {
19893
- return rectToClientRect(getViewportRect(element, strategy));
19894
- }
19895
- if (isElement(clippingAncestor)) {
19896
- return getInnerBoundingClientRect(clippingAncestor, strategy);
19838
+ rect = getViewportRect(element, strategy);
19839
+ } else if (clippingAncestor === "document") {
19840
+ rect = getDocumentRect(getDocumentElement(element));
19841
+ } else if (isElement(clippingAncestor)) {
19842
+ rect = getInnerBoundingClientRect(clippingAncestor, strategy);
19843
+ } else {
19844
+ const mutableRect = {
19845
+ ...clippingAncestor
19846
+ };
19847
+ if (isClientRectVisualViewportBased()) {
19848
+ var _win$visualViewport, _win$visualViewport2;
19849
+ const win = getWindow(element);
19850
+ mutableRect.x -= ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0;
19851
+ mutableRect.y -= ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0;
19852
+ }
19853
+ rect = mutableRect;
19897
19854
  }
19898
- return rectToClientRect(getDocumentRect(getDocumentElement(element)));
19855
+ return rectToClientRect(rect);
19899
19856
  }
19900
19857
  function getClippingElementAncestors(element, cache) {
19901
19858
  const cachedResult = cache.get(element);
@@ -19909,11 +19866,16 @@ function getClippingElementAncestors(element, cache) {
19909
19866
  while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
19910
19867
  const computedStyle = getComputedStyle$1(currentNode);
19911
19868
  const containingBlock = isContainingBlock(currentNode);
19912
- const shouldDropCurrentNode = elementIsFixed ? !containingBlock && !currentContainingBlockComputedStyle : !containingBlock && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && ["absolute", "fixed"].includes(currentContainingBlockComputedStyle.position);
19913
- if (shouldDropCurrentNode) {
19914
- result2 = result2.filter((ancestor) => ancestor !== currentNode);
19869
+ const shouldIgnoreCurrentNode = computedStyle.position === "fixed";
19870
+ if (shouldIgnoreCurrentNode) {
19871
+ currentContainingBlockComputedStyle = null;
19915
19872
  } else {
19916
- currentContainingBlockComputedStyle = computedStyle;
19873
+ const shouldDropCurrentNode = elementIsFixed ? !containingBlock && !currentContainingBlockComputedStyle : !containingBlock && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && ["absolute", "fixed"].includes(currentContainingBlockComputedStyle.position);
19874
+ if (shouldDropCurrentNode) {
19875
+ result2 = result2.filter((ancestor) => ancestor !== currentNode);
19876
+ } else {
19877
+ currentContainingBlockComputedStyle = computedStyle;
19878
+ }
19917
19879
  }
19918
19880
  currentNode = getParentNode(currentNode);
19919
19881
  }
@@ -19945,6 +19907,74 @@ function getClippingRect(_ref) {
19945
19907
  y: clippingRect.top
19946
19908
  };
19947
19909
  }
19910
+ function getDimensions(element) {
19911
+ return getCssDimensions(element);
19912
+ }
19913
+ function getTrueOffsetParent(element, polyfill) {
19914
+ if (!isHTMLElement(element) || getComputedStyle$1(element).position === "fixed") {
19915
+ return null;
19916
+ }
19917
+ if (polyfill) {
19918
+ return polyfill(element);
19919
+ }
19920
+ return element.offsetParent;
19921
+ }
19922
+ function getContainingBlock(element) {
19923
+ let currentNode = getParentNode(element);
19924
+ while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
19925
+ if (isContainingBlock(currentNode)) {
19926
+ return currentNode;
19927
+ } else {
19928
+ currentNode = getParentNode(currentNode);
19929
+ }
19930
+ }
19931
+ return null;
19932
+ }
19933
+ function getOffsetParent(element, polyfill) {
19934
+ const window2 = getWindow(element);
19935
+ if (!isHTMLElement(element)) {
19936
+ return window2;
19937
+ }
19938
+ let offsetParent = getTrueOffsetParent(element, polyfill);
19939
+ while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === "static") {
19940
+ offsetParent = getTrueOffsetParent(offsetParent, polyfill);
19941
+ }
19942
+ if (offsetParent && (getNodeName(offsetParent) === "html" || getNodeName(offsetParent) === "body" && getComputedStyle$1(offsetParent).position === "static" && !isContainingBlock(offsetParent))) {
19943
+ return window2;
19944
+ }
19945
+ return offsetParent || getContainingBlock(element) || window2;
19946
+ }
19947
+ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
19948
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
19949
+ const documentElement = getDocumentElement(offsetParent);
19950
+ const rect = getBoundingClientRect(element, true, strategy === "fixed", offsetParent);
19951
+ let scroll = {
19952
+ scrollLeft: 0,
19953
+ scrollTop: 0
19954
+ };
19955
+ const offsets = {
19956
+ x: 0,
19957
+ y: 0
19958
+ };
19959
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== "fixed") {
19960
+ if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
19961
+ scroll = getNodeScroll(offsetParent);
19962
+ }
19963
+ if (isHTMLElement(offsetParent)) {
19964
+ const offsetRect = getBoundingClientRect(offsetParent, true);
19965
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
19966
+ offsets.y = offsetRect.y + offsetParent.clientTop;
19967
+ } else if (documentElement) {
19968
+ offsets.x = getWindowScrollBarX(documentElement);
19969
+ }
19970
+ }
19971
+ return {
19972
+ x: rect.left + scroll.scrollLeft - offsets.x,
19973
+ y: rect.top + scroll.scrollTop - offsets.y,
19974
+ width: rect.width,
19975
+ height: rect.height
19976
+ };
19977
+ }
19948
19978
  const platform = {
19949
19979
  getClippingRect,
19950
19980
  convertOffsetParentRelativeRectToViewportRelativeRect,
@@ -19993,12 +20023,8 @@ function autoUpdate(reference, floating, update2, options) {
19993
20023
  });
19994
20024
  let observer = null;
19995
20025
  if (elementResize) {
19996
- let initialUpdate = true;
19997
20026
  observer = new ResizeObserver(() => {
19998
- if (!initialUpdate) {
19999
- update2();
20000
- }
20001
- initialUpdate = false;
20027
+ update2();
20002
20028
  });
20003
20029
  isElement(reference) && !animationFrame && observer.observe(reference);
20004
20030
  if (!isElement(reference) && reference.contextElement && !animationFrame) {
@@ -22563,6 +22589,19 @@ const PullToRefresh$1 = (p) => {
22563
22589
  (_a2 = elementRef.current) === null || _a2 === void 0 ? void 0 : _a2.addEventListener("touchmove", () => {
22564
22590
  });
22565
22591
  }, []);
22592
+ const reset = () => {
22593
+ return new Promise((resolve) => {
22594
+ api.start({
22595
+ to: {
22596
+ height: 0
22597
+ },
22598
+ onResolve() {
22599
+ setStatus("pulling");
22600
+ resolve();
22601
+ }
22602
+ });
22603
+ });
22604
+ };
22566
22605
  function doRefresh() {
22567
22606
  return __awaiter(this, void 0, void 0, function* () {
22568
22607
  api.start({
@@ -22573,27 +22612,13 @@ const PullToRefresh$1 = (p) => {
22573
22612
  yield props.onRefresh();
22574
22613
  setStatus("complete");
22575
22614
  } catch (e) {
22576
- api.start({
22577
- to: (next) => __awaiter(this, void 0, void 0, function* () {
22578
- yield next({
22579
- height: 0
22580
- });
22581
- setStatus("pulling");
22582
- })
22583
- });
22615
+ reset();
22584
22616
  throw e;
22585
22617
  }
22586
22618
  if (props.completeDelay > 0) {
22587
22619
  yield sleep(props.completeDelay);
22588
22620
  }
22589
- api.start({
22590
- to: (next) => __awaiter(this, void 0, void 0, function* () {
22591
- yield next({
22592
- height: 0
22593
- });
22594
- setStatus("pulling");
22595
- })
22596
- });
22621
+ reset();
22597
22622
  });
22598
22623
  }
22599
22624
  useDrag((state) => {
@@ -24147,7 +24172,7 @@ const defaultProps$d = {
24147
24172
  disabled: false,
24148
24173
  allowEmpty: false
24149
24174
  };
24150
- function Stepper(p) {
24175
+ function InnerStepper(p, ref) {
24151
24176
  const props = mergeProps(defaultProps$d, p);
24152
24177
  const {
24153
24178
  defaultValue = 0,
@@ -24166,6 +24191,20 @@ function Stepper(p) {
24166
24191
  const {
24167
24192
  locale
24168
24193
  } = useConfig();
24194
+ useImperativeHandle(ref, () => ({
24195
+ focus: () => {
24196
+ var _a;
24197
+ (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
24198
+ },
24199
+ blur: () => {
24200
+ var _a;
24201
+ (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.blur();
24202
+ },
24203
+ get nativeElement() {
24204
+ var _a, _b;
24205
+ return (_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.nativeElement) !== null && _b !== void 0 ? _b : null;
24206
+ }
24207
+ }));
24169
24208
  const fixedValue = (value2) => {
24170
24209
  const fixedValue2 = digits !== void 0 ? toFixed(value2.toString(), ".", digits) : value2;
24171
24210
  return fixedValue2.toString();
@@ -24330,6 +24369,8 @@ function Stepper(p) {
24330
24369
  "aria-label": locale.Stepper.increase
24331
24370
  }, React__default.createElement(AddOutline, null))));
24332
24371
  }
24372
+ const Stepper$1 = forwardRef(InnerStepper);
24373
+ const Stepper = Stepper$1;
24333
24374
  const steps = "";
24334
24375
  const classPrefix$d = `adm-step`;
24335
24376
  const Step = (props) => {
@@ -24828,11 +24869,15 @@ const Swiper = forwardRef(staged_1((p, ref) => {
24828
24869
  useEffect(() => {
24829
24870
  if (!autoplay || dragging)
24830
24871
  return;
24831
- const interval = window.setInterval(() => {
24872
+ let interval;
24873
+ function tick() {
24874
+ interval = window.setTimeout(tick, autoplayInterval);
24832
24875
  swipeNext();
24833
- }, autoplayInterval);
24876
+ }
24877
+ interval = window.setTimeout(tick, autoplayInterval);
24834
24878
  return () => {
24835
- window.clearInterval(interval);
24879
+ if (interval)
24880
+ window.clearTimeout(interval);
24836
24881
  };
24837
24882
  }, [autoplay, autoplayInterval, dragging, count]);
24838
24883
  function renderTrackInner() {
@@ -25133,6 +25178,8 @@ const TextArea$1 = forwardRef((p, ref) => {
25133
25178
  devError("TextArea", "`value` prop on `TextArea` should not be `null`. Consider using an empty string to clear the component.");
25134
25179
  }
25135
25180
  const nativeTextAreaRef = useRef(null);
25181
+ const heightRef = useRef("auto");
25182
+ const hiddenTextAreaRef = useRef(null);
25136
25183
  useImperativeHandle(ref, () => ({
25137
25184
  clear: () => {
25138
25185
  setValue2("");
@@ -25153,10 +25200,13 @@ const TextArea$1 = forwardRef((p, ref) => {
25153
25200
  if (!autoSize)
25154
25201
  return;
25155
25202
  const textArea2 = nativeTextAreaRef.current;
25203
+ const hiddenTextArea = hiddenTextAreaRef.current;
25156
25204
  if (!textArea2)
25157
25205
  return;
25158
- textArea2.style.height = "auto";
25159
- let height = textArea2.scrollHeight;
25206
+ textArea2.style.height = heightRef.current;
25207
+ if (!hiddenTextArea)
25208
+ return;
25209
+ let height = hiddenTextArea.scrollHeight;
25160
25210
  if (typeof autoSize === "object") {
25161
25211
  const computedStyle = window.getComputedStyle(textArea2);
25162
25212
  const lineHeight = parseFloat(computedStyle.lineHeight);
@@ -25167,6 +25217,7 @@ const TextArea$1 = forwardRef((p, ref) => {
25167
25217
  height = Math.min(height, autoSize.maxRows * lineHeight);
25168
25218
  }
25169
25219
  }
25220
+ heightRef.current = `${height}px`;
25170
25221
  textArea2.style.height = `${height}px`;
25171
25222
  }, [value, autoSize]);
25172
25223
  const compositingRef = useRef(false);
@@ -25217,7 +25268,13 @@ const TextArea$1 = forwardRef((p, ref) => {
25217
25268
  onFocus: props.onFocus,
25218
25269
  onBlur: props.onBlur,
25219
25270
  onClick: props.onClick
25220
- }), count));
25271
+ }), count, autoSize && React__default.createElement("textarea", {
25272
+ ref: hiddenTextAreaRef,
25273
+ className: `${classPrefix$6}-element ${classPrefix$6}-element-hidden`,
25274
+ value,
25275
+ "aria-hidden": true,
25276
+ readOnly: true
25277
+ })));
25221
25278
  });
25222
25279
  TextArea$1.defaultProps = defaultProps$6;
25223
25280
  const TextArea = TextArea$1;