antd-mobile 5.29.0 → 5.29.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 (68) hide show
  1. package/2x/bundle/antd-mobile.cjs.development.js +27 -25
  2. package/2x/bundle/antd-mobile.cjs.js +3 -3
  3. package/2x/bundle/antd-mobile.es.development.js +27 -25
  4. package/2x/bundle/antd-mobile.es.js +22 -8
  5. package/2x/bundle/antd-mobile.umd.development.js +27 -25
  6. package/2x/bundle/antd-mobile.umd.js +3 -3
  7. package/2x/cjs/components/calendar/calendar.js +1 -1
  8. package/2x/cjs/components/number-keyboard/number-keyboard.js +5 -3
  9. package/2x/cjs/components/popup/popup.js +13 -11
  10. package/2x/cjs/components/text-area/text-area.js +1 -0
  11. package/2x/cjs/components/virtual-input/virtual-input.js +1 -2
  12. package/2x/cjs/locales/da-DK.d.ts +134 -0
  13. package/2x/cjs/locales/da-DK.js +132 -0
  14. package/2x/cjs/locales/it-IT.d.ts +134 -0
  15. package/2x/cjs/locales/it-IT.js +144 -0
  16. package/2x/cjs/locales/nb-NO.d.ts +134 -0
  17. package/2x/cjs/locales/nb-NO.js +144 -0
  18. package/2x/cjs/locales/nl-NL.d.ts +134 -0
  19. package/2x/cjs/locales/nl-NL.js +144 -0
  20. package/2x/es/components/calendar/calendar.js +1 -1
  21. package/2x/es/components/number-keyboard/number-keyboard.js +5 -3
  22. package/2x/es/components/popup/popup.js +13 -11
  23. package/2x/es/components/text-area/text-area.js +1 -0
  24. package/2x/es/components/virtual-input/virtual-input.js +1 -2
  25. package/2x/es/locales/da-DK.d.ts +134 -0
  26. package/2x/es/locales/da-DK.js +125 -0
  27. package/2x/es/locales/it-IT.d.ts +134 -0
  28. package/2x/es/locales/it-IT.js +137 -0
  29. package/2x/es/locales/nb-NO.d.ts +134 -0
  30. package/2x/es/locales/nb-NO.js +137 -0
  31. package/2x/es/locales/nl-NL.d.ts +134 -0
  32. package/2x/es/locales/nl-NL.js +137 -0
  33. package/2x/package.json +1 -1
  34. package/bundle/antd-mobile.cjs.development.js +27 -25
  35. package/bundle/antd-mobile.cjs.js +3 -3
  36. package/bundle/antd-mobile.compatible.umd.js +1 -1
  37. package/bundle/antd-mobile.es.development.js +27 -25
  38. package/bundle/antd-mobile.es.js +22 -8
  39. package/bundle/antd-mobile.umd.development.js +27 -25
  40. package/bundle/antd-mobile.umd.js +3 -3
  41. package/cjs/components/calendar/calendar.js +1 -1
  42. package/cjs/components/number-keyboard/number-keyboard.js +5 -3
  43. package/cjs/components/popup/popup.js +13 -11
  44. package/cjs/components/text-area/text-area.js +1 -0
  45. package/cjs/components/virtual-input/virtual-input.js +1 -2
  46. package/cjs/locales/da-DK.d.ts +134 -0
  47. package/cjs/locales/da-DK.js +132 -0
  48. package/cjs/locales/it-IT.d.ts +134 -0
  49. package/cjs/locales/it-IT.js +144 -0
  50. package/cjs/locales/nb-NO.d.ts +134 -0
  51. package/cjs/locales/nb-NO.js +144 -0
  52. package/cjs/locales/nl-NL.d.ts +134 -0
  53. package/cjs/locales/nl-NL.js +144 -0
  54. package/es/components/calendar/calendar.js +1 -1
  55. package/es/components/number-keyboard/number-keyboard.js +5 -3
  56. package/es/components/popup/popup.js +13 -11
  57. package/es/components/text-area/text-area.js +1 -0
  58. package/es/components/virtual-input/virtual-input.js +1 -2
  59. package/es/locales/da-DK.d.ts +134 -0
  60. package/es/locales/da-DK.js +125 -0
  61. package/es/locales/it-IT.d.ts +134 -0
  62. package/es/locales/it-IT.js +137 -0
  63. package/es/locales/nb-NO.d.ts +134 -0
  64. package/es/locales/nb-NO.js +137 -0
  65. package/es/locales/nl-NL.d.ts +134 -0
  66. package/es/locales/nl-NL.js +137 -0
  67. package/package.json +1 -1
  68. package/umd/antd-mobile.js +1 -1
@@ -7580,17 +7580,19 @@ const Popup$1 = (p) => {
7580
7580
  className: bodyCls,
7581
7581
  style: Object.assign(Object.assign({}, props.bodyStyle), {
7582
7582
  transform: percent.to((v) => {
7583
- if (props.position === "bottom") {
7584
- return `translate(0, ${v}%)`;
7585
- }
7586
- if (props.position === "top") {
7587
- return `translate(0, -${v}%)`;
7588
- }
7589
- if (props.position === "left") {
7590
- return `translate(-${v}%, 0)`;
7591
- }
7592
- if (props.position === "right") {
7593
- return `translate(${v}%, 0)`;
7583
+ if (v) {
7584
+ if (props.position === "bottom") {
7585
+ return `translate(0, ${v}%)`;
7586
+ }
7587
+ if (props.position === "top") {
7588
+ return `translate(0, -${v}%)`;
7589
+ }
7590
+ if (props.position === "left") {
7591
+ return `translate(-${v}%, 0)`;
7592
+ }
7593
+ if (props.position === "right") {
7594
+ return `translate(${v}%, 0)`;
7595
+ }
7594
7596
  }
7595
7597
  return "none";
7596
7598
  })
@@ -8383,7 +8385,7 @@ const Calendar$1 = React$4.forwardRef((p, ref) => {
8383
8385
  return;
8384
8386
  }
8385
8387
  }
8386
- setCurrent(current[action](num, type4));
8388
+ setCurrent(nxtCurrent);
8387
8389
  };
8388
8390
  const header = React__default.default.createElement("div", {
8389
8391
  className: `${classPrefix$1b}-header`
@@ -20078,16 +20080,14 @@ function getClippingElementAncestors(element, cache) {
20078
20080
  while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
20079
20081
  const computedStyle = getComputedStyle$1(currentNode);
20080
20082
  const containingBlock = isContainingBlock(currentNode);
20081
- const shouldIgnoreCurrentNode = computedStyle.position === "fixed";
20082
- if (shouldIgnoreCurrentNode) {
20083
+ if (computedStyle.position === "fixed") {
20083
20084
  currentContainingBlockComputedStyle = null;
20085
+ }
20086
+ const shouldDropCurrentNode = elementIsFixed ? !containingBlock && !currentContainingBlockComputedStyle : !containingBlock && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && ["absolute", "fixed"].includes(currentContainingBlockComputedStyle.position);
20087
+ if (shouldDropCurrentNode) {
20088
+ result2 = result2.filter((ancestor) => ancestor !== currentNode);
20084
20089
  } else {
20085
- const shouldDropCurrentNode = elementIsFixed ? !containingBlock && !currentContainingBlockComputedStyle : !containingBlock && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && ["absolute", "fixed"].includes(currentContainingBlockComputedStyle.position);
20086
- if (shouldDropCurrentNode) {
20087
- result2 = result2.filter((ancestor) => ancestor !== currentNode);
20088
- } else {
20089
- currentContainingBlockComputedStyle = computedStyle;
20090
- }
20090
+ currentContainingBlockComputedStyle = computedStyle;
20091
20091
  }
20092
20092
  currentNode = getParentNode(currentNode);
20093
20093
  }
@@ -22474,7 +22474,7 @@ const NumberKeyboard$1 = (p) => {
22474
22474
  var _a;
22475
22475
  (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
22476
22476
  },
22477
- role: "button",
22477
+ role: "grid",
22478
22478
  title: "CLOSE",
22479
22479
  tabIndex: -1
22480
22480
  }, React__default.default.createElement(DownOutline, null)));
@@ -22541,11 +22541,13 @@ const NumberKeyboard$1 = (p) => {
22541
22541
  onBackspacePressEnd();
22542
22542
  },
22543
22543
  title: "BACKSPACE",
22544
- role: "button"
22544
+ role: "grid",
22545
+ tabIndex: -1
22545
22546
  }, React__default.default.createElement(TextDeletionOutline, null)), React__default.default.createElement("div", {
22546
22547
  className: `${classPrefix$w}-key ${classPrefix$w}-key-extra ${classPrefix$w}-key-ok`,
22547
22548
  onTouchEnd: (e) => onKeyPress(e, "OK"),
22548
- role: "button",
22549
+ role: "grid",
22550
+ tabIndex: -1,
22549
22551
  "aria-label": confirmText
22550
22552
  }, confirmText))), props.safeArea && React__default.default.createElement("div", {
22551
22553
  className: `${classPrefix$w}-footer`
@@ -25495,6 +25497,7 @@ const TextArea$1 = React$4.forwardRef((p, ref) => {
25495
25497
  ref: hiddenTextAreaRef,
25496
25498
  className: `${classPrefix$6}-element ${classPrefix$6}-element-hidden`,
25497
25499
  value,
25500
+ rows: props.rows,
25498
25501
  "aria-hidden": true,
25499
25502
  readOnly: true
25500
25503
  })));
@@ -26048,14 +26051,13 @@ const VirtualInput$1 = React$4.forwardRef((p, ref) => {
26048
26051
  [`${classPrefix$2}-disabled`]: props.disabled
26049
26052
  }),
26050
26053
  tabIndex: props.disabled ? void 0 : 0,
26054
+ role: "option",
26051
26055
  onFocus,
26052
26056
  onBlur,
26053
26057
  onClick: props.onClick
26054
26058
  }, React__default.default.createElement("div", {
26055
26059
  className: `${classPrefix$2}-content`,
26056
26060
  ref: contentRef,
26057
- role: "option",
26058
- tabIndex: props.disabled ? void 0 : 0,
26059
26061
  "aria-disabled": props.disabled,
26060
26062
  "aria-label": props.placeholder
26061
26063
  }, value, React__default.default.createElement("div", {