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.
- package/2x/bundle/antd-mobile.cjs.development.js +27 -25
- package/2x/bundle/antd-mobile.cjs.js +3 -3
- package/2x/bundle/antd-mobile.es.development.js +27 -25
- package/2x/bundle/antd-mobile.es.js +22 -8
- package/2x/bundle/antd-mobile.umd.development.js +27 -25
- package/2x/bundle/antd-mobile.umd.js +3 -3
- package/2x/cjs/components/calendar/calendar.js +1 -1
- package/2x/cjs/components/number-keyboard/number-keyboard.js +5 -3
- package/2x/cjs/components/popup/popup.js +13 -11
- package/2x/cjs/components/text-area/text-area.js +1 -0
- package/2x/cjs/components/virtual-input/virtual-input.js +1 -2
- package/2x/cjs/locales/da-DK.d.ts +134 -0
- package/2x/cjs/locales/da-DK.js +132 -0
- package/2x/cjs/locales/it-IT.d.ts +134 -0
- package/2x/cjs/locales/it-IT.js +144 -0
- package/2x/cjs/locales/nb-NO.d.ts +134 -0
- package/2x/cjs/locales/nb-NO.js +144 -0
- package/2x/cjs/locales/nl-NL.d.ts +134 -0
- package/2x/cjs/locales/nl-NL.js +144 -0
- package/2x/es/components/calendar/calendar.js +1 -1
- package/2x/es/components/number-keyboard/number-keyboard.js +5 -3
- package/2x/es/components/popup/popup.js +13 -11
- package/2x/es/components/text-area/text-area.js +1 -0
- package/2x/es/components/virtual-input/virtual-input.js +1 -2
- package/2x/es/locales/da-DK.d.ts +134 -0
- package/2x/es/locales/da-DK.js +125 -0
- package/2x/es/locales/it-IT.d.ts +134 -0
- package/2x/es/locales/it-IT.js +137 -0
- package/2x/es/locales/nb-NO.d.ts +134 -0
- package/2x/es/locales/nb-NO.js +137 -0
- package/2x/es/locales/nl-NL.d.ts +134 -0
- package/2x/es/locales/nl-NL.js +137 -0
- package/2x/package.json +1 -1
- package/bundle/antd-mobile.cjs.development.js +27 -25
- package/bundle/antd-mobile.cjs.js +3 -3
- package/bundle/antd-mobile.compatible.umd.js +1 -1
- package/bundle/antd-mobile.es.development.js +27 -25
- package/bundle/antd-mobile.es.js +22 -8
- package/bundle/antd-mobile.umd.development.js +27 -25
- package/bundle/antd-mobile.umd.js +3 -3
- package/cjs/components/calendar/calendar.js +1 -1
- package/cjs/components/number-keyboard/number-keyboard.js +5 -3
- package/cjs/components/popup/popup.js +13 -11
- package/cjs/components/text-area/text-area.js +1 -0
- package/cjs/components/virtual-input/virtual-input.js +1 -2
- package/cjs/locales/da-DK.d.ts +134 -0
- package/cjs/locales/da-DK.js +132 -0
- package/cjs/locales/it-IT.d.ts +134 -0
- package/cjs/locales/it-IT.js +144 -0
- package/cjs/locales/nb-NO.d.ts +134 -0
- package/cjs/locales/nb-NO.js +144 -0
- package/cjs/locales/nl-NL.d.ts +134 -0
- package/cjs/locales/nl-NL.js +144 -0
- package/es/components/calendar/calendar.js +1 -1
- package/es/components/number-keyboard/number-keyboard.js +5 -3
- package/es/components/popup/popup.js +13 -11
- package/es/components/text-area/text-area.js +1 -0
- package/es/components/virtual-input/virtual-input.js +1 -2
- package/es/locales/da-DK.d.ts +134 -0
- package/es/locales/da-DK.js +125 -0
- package/es/locales/it-IT.d.ts +134 -0
- package/es/locales/it-IT.js +137 -0
- package/es/locales/nb-NO.d.ts +134 -0
- package/es/locales/nb-NO.js +137 -0
- package/es/locales/nl-NL.d.ts +134 -0
- package/es/locales/nl-NL.js +137 -0
- package/package.json +1 -1
- 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 (
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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", {
|