antd-mobile 5.19.0 → 5.20.0
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.js +11 -11
- package/2x/bundle/antd-mobile.compatible.umd.js +2997 -2934
- package/2x/bundle/antd-mobile.es.js +2020 -1975
- package/2x/bundle/antd-mobile.umd.js +11 -11
- package/2x/bundle/style.css +1 -0
- package/2x/cjs/components/form/context.d.ts +1 -1
- package/2x/cjs/components/form/form-item.js +3 -0
- package/2x/cjs/components/image/test/image.test.js +57 -8
- package/2x/cjs/components/rate/rate.css +1 -0
- package/2x/cjs/components/rate/rate.js +32 -4
- package/2x/cjs/components/swipe-action/swipe-action.d.ts +2 -0
- package/2x/cjs/components/swipe-action/swipe-action.js +34 -6
- package/2x/cjs/components/swiper/swiper.js +14 -0
- package/2x/cjs/locales/id-ID.js +13 -0
- package/2x/cjs/utils/use-resize-effect.js +3 -1
- package/2x/es/components/form/context.d.ts +1 -1
- package/2x/es/components/form/form-item.js +3 -0
- package/2x/es/components/image/test/image.test.js +54 -8
- package/2x/es/components/rate/rate.css +1 -0
- package/2x/es/components/rate/rate.js +26 -4
- package/2x/es/components/swipe-action/swipe-action.d.ts +2 -0
- package/2x/es/components/swipe-action/swipe-action.js +34 -6
- package/2x/es/components/swiper/swiper.js +14 -0
- package/2x/es/locales/id-ID.js +13 -0
- package/2x/es/utils/use-resize-effect.js +3 -1
- package/2x/package.json +4 -4
- package/2x/umd/antd-mobile.js +2997 -2934
- package/bundle/antd-mobile.cjs.js +11 -11
- package/bundle/antd-mobile.compatible.umd.js +2997 -2934
- package/bundle/antd-mobile.es.js +2020 -1975
- package/bundle/antd-mobile.umd.js +11 -11
- package/bundle/style.css +1 -1
- package/cjs/components/form/context.d.ts +1 -1
- package/cjs/components/form/form-item.js +3 -0
- package/cjs/components/image/test/image.test.js +57 -8
- package/cjs/components/rate/rate.css +1 -0
- package/cjs/components/rate/rate.js +32 -4
- package/cjs/components/swipe-action/swipe-action.d.ts +2 -0
- package/cjs/components/swipe-action/swipe-action.js +34 -6
- package/cjs/components/swiper/swiper.js +14 -0
- package/cjs/locales/id-ID.js +13 -0
- package/cjs/utils/use-resize-effect.js +3 -1
- package/es/components/form/context.d.ts +1 -1
- package/es/components/form/form-item.js +3 -0
- package/es/components/image/test/image.test.js +54 -8
- package/es/components/rate/rate.css +1 -0
- package/es/components/rate/rate.js +26 -4
- package/es/components/swipe-action/swipe-action.d.ts +2 -0
- package/es/components/swipe-action/swipe-action.js +34 -6
- package/es/components/swiper/swiper.js +14 -0
- package/es/locales/id-ID.js +13 -0
- package/es/utils/use-resize-effect.js +3 -1
- package/package.json +4 -4
- package/umd/antd-mobile.js +1 -1
package/2x/es/locales/id-ID.js
CHANGED
|
@@ -106,6 +106,19 @@ const idID = mergeLocale(base, {
|
|
|
106
106
|
pulling: 'Tarik ke bawah untuk menyegarkan',
|
|
107
107
|
canRelease: 'Lepaskan untuk menyegarkan segera',
|
|
108
108
|
complete: 'Segarkan berhasil'
|
|
109
|
+
},
|
|
110
|
+
SearchBar: {
|
|
111
|
+
name: 'Bilah Pencarian'
|
|
112
|
+
},
|
|
113
|
+
Slider: {
|
|
114
|
+
name: 'Penggeser'
|
|
115
|
+
},
|
|
116
|
+
Stepper: {
|
|
117
|
+
decrease: 'mengurangi',
|
|
118
|
+
increase: 'meningkat'
|
|
119
|
+
},
|
|
120
|
+
Switch: {
|
|
121
|
+
name: 'Mengalihkan'
|
|
109
122
|
}
|
|
110
123
|
});
|
|
111
124
|
export default idID;
|
|
@@ -6,11 +6,13 @@ export function useResizeEffect(effect, targetRef) {
|
|
|
6
6
|
if (!target) return;
|
|
7
7
|
|
|
8
8
|
if (window.ResizeObserver) {
|
|
9
|
+
let animationFrame;
|
|
9
10
|
const observer = new ResizeObserver(() => {
|
|
10
|
-
fn(target);
|
|
11
|
+
animationFrame = window.requestAnimationFrame(() => fn(target));
|
|
11
12
|
});
|
|
12
13
|
observer.observe(target);
|
|
13
14
|
return () => {
|
|
15
|
+
window.cancelAnimationFrame(animationFrame);
|
|
14
16
|
observer.disconnect();
|
|
15
17
|
};
|
|
16
18
|
} else {
|
package/2x/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antd-mobile",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.20.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@floating-ui/dom": "^0.5.2",
|
|
6
6
|
"@react-spring/web": "^9.4.5",
|
|
7
|
-
"@use-gesture/react": "10.2.
|
|
7
|
+
"@use-gesture/react": "10.2.17",
|
|
8
8
|
"ahooks": "^3.5.2",
|
|
9
9
|
"antd-mobile-icons": "^0.3.0",
|
|
10
10
|
"antd-mobile-v5-count": "^1.0.1",
|
|
11
|
-
"big.js": "^6.
|
|
11
|
+
"big.js": "^6.2.1",
|
|
12
12
|
"classnames": "^2.3.1",
|
|
13
|
-
"dayjs": "^1.11.
|
|
13
|
+
"dayjs": "^1.11.4",
|
|
14
14
|
"lodash": "^4.17.21",
|
|
15
15
|
"rc-field-form": "~1.27.0",
|
|
16
16
|
"react-is": "^17.0.2",
|