antd-mobile 5.34.0 → 5.35.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.development.js +427 -1385
- package/2x/bundle/antd-mobile.cjs.js +7 -7
- package/2x/bundle/antd-mobile.es.development.js +428 -1386
- package/2x/bundle/antd-mobile.es.js +6409 -7003
- package/2x/bundle/antd-mobile.umd.development.js +427 -1385
- package/2x/bundle/antd-mobile.umd.js +7 -7
- package/2x/bundle/css-vars-patch.css +3 -3
- package/2x/bundle/style.css +6 -10
- package/2x/cjs/components/button/button.d.ts +1 -1
- package/2x/cjs/components/button/button.patch.css +3 -3
- package/2x/cjs/components/cascader-view/use-cascader-value-extend.js +10 -5
- package/2x/cjs/components/checkbox/native-input.js +1 -1
- package/2x/cjs/components/config-provider/config-provider.d.ts +3 -2
- package/2x/cjs/components/error-block/create-error-block.d.ts +1 -0
- package/2x/cjs/components/error-block/create-error-block.js +1 -0
- package/2x/cjs/components/error-block/index.d.ts +0 -1
- package/2x/cjs/components/error-block/index.js +2 -3
- package/2x/cjs/components/form/form-item.js +1 -0
- package/2x/cjs/components/form/form.js +2 -2
- package/2x/cjs/components/infinite-scroll/infinite-scroll.js +8 -4
- package/2x/cjs/components/picker-view/wheel.js +7 -4
- package/2x/cjs/components/popover/index.d.ts +1 -1
- package/2x/cjs/components/popover/popover.d.ts +1 -1
- package/2x/cjs/components/radio/radio.css +1 -1
- package/2x/cjs/components/radio/radio.d.ts +1 -1
- package/2x/cjs/components/radio/radio.js +5 -5
- package/2x/cjs/components/result-page/result-page.css +5 -5
- package/2x/cjs/components/swipe-action/swipe-action.d.ts +1 -1
- package/2x/cjs/components/text-area/text-area.css +0 -4
- package/2x/cjs/global/css-vars-patch.css +3 -3
- package/2x/cjs/index.d.ts +1 -1
- package/2x/cjs/index.js +6 -0
- package/2x/cjs/locales/hu-HU.d.ts +139 -0
- package/2x/cjs/locales/hu-HU.js +148 -0
- package/2x/cjs/locales/th-TH.d.ts +139 -0
- package/2x/cjs/locales/th-TH.js +149 -0
- package/2x/cjs/utils/with-default-props.js +8 -9
- package/2x/cjs/utils/with-stop-propagation.d.ts +1 -1
- package/2x/cjs/utils/with-stop-propagation.js +2 -1
- package/2x/es/components/button/button.d.ts +1 -1
- package/2x/es/components/button/button.patch.css +3 -3
- package/2x/es/components/cascader-view/use-cascader-value-extend.js +8 -3
- package/2x/es/components/checkbox/native-input.js +1 -1
- package/2x/es/components/config-provider/config-provider.d.ts +3 -2
- package/2x/es/components/error-block/create-error-block.d.ts +1 -0
- package/2x/es/components/error-block/create-error-block.js +1 -0
- package/2x/es/components/error-block/index.d.ts +0 -1
- package/2x/es/components/error-block/index.js +0 -1
- package/2x/es/components/form/form-item.js +1 -0
- package/2x/es/components/form/form.js +2 -2
- package/2x/es/components/infinite-scroll/infinite-scroll.js +8 -4
- package/2x/es/components/picker-view/wheel.js +6 -3
- package/2x/es/components/popover/index.d.ts +1 -1
- package/2x/es/components/popover/popover.d.ts +1 -1
- package/2x/es/components/radio/radio.css +1 -1
- package/2x/es/components/radio/radio.d.ts +1 -1
- package/2x/es/components/radio/radio.js +4 -4
- package/2x/es/components/result-page/result-page.css +5 -5
- package/2x/es/components/swipe-action/swipe-action.d.ts +1 -1
- package/2x/es/components/text-area/text-area.css +0 -4
- package/2x/es/global/css-vars-patch.css +3 -3
- package/2x/es/index.d.ts +1 -1
- package/2x/es/index.js +1 -1
- package/2x/es/locales/hu-HU.d.ts +139 -0
- package/2x/es/locales/hu-HU.js +140 -0
- package/2x/es/locales/th-TH.d.ts +139 -0
- package/2x/es/locales/th-TH.js +142 -0
- package/2x/es/utils/with-default-props.js +8 -8
- package/2x/es/utils/with-stop-propagation.d.ts +1 -1
- package/2x/es/utils/with-stop-propagation.js +2 -1
- package/2x/package.json +11 -3
- package/bundle/antd-mobile.cjs.development.js +427 -1385
- package/bundle/antd-mobile.cjs.js +7 -7
- package/bundle/antd-mobile.compatible.umd.js +1 -1
- package/bundle/antd-mobile.es.development.js +428 -1386
- package/bundle/antd-mobile.es.js +6409 -7003
- package/bundle/antd-mobile.umd.development.js +427 -1385
- package/bundle/antd-mobile.umd.js +7 -7
- package/bundle/css-vars-patch.css +3 -3
- package/bundle/style.css +1 -1
- package/cjs/components/button/button.d.ts +1 -1
- package/cjs/components/button/button.patch.css +3 -3
- package/cjs/components/cascader-view/use-cascader-value-extend.js +10 -5
- package/cjs/components/checkbox/native-input.js +1 -1
- package/cjs/components/config-provider/config-provider.d.ts +3 -2
- package/cjs/components/error-block/create-error-block.d.ts +1 -0
- package/cjs/components/error-block/create-error-block.js +1 -0
- package/cjs/components/error-block/index.d.ts +0 -1
- package/cjs/components/error-block/index.js +2 -3
- package/cjs/components/form/form-item.js +1 -0
- package/cjs/components/form/form.js +2 -2
- package/cjs/components/infinite-scroll/infinite-scroll.js +8 -4
- package/cjs/components/picker-view/wheel.js +7 -4
- package/cjs/components/popover/index.d.ts +1 -1
- package/cjs/components/popover/popover.d.ts +1 -1
- package/cjs/components/radio/radio.css +1 -1
- package/cjs/components/radio/radio.d.ts +1 -1
- package/cjs/components/radio/radio.js +5 -5
- package/cjs/components/result-page/result-page.css +5 -5
- package/cjs/components/swipe-action/swipe-action.d.ts +1 -1
- package/cjs/components/text-area/text-area.css +0 -3
- package/cjs/global/css-vars-patch.css +3 -3
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +6 -0
- package/cjs/locales/hu-HU.d.ts +139 -0
- package/cjs/locales/hu-HU.js +148 -0
- package/cjs/locales/th-TH.d.ts +139 -0
- package/cjs/locales/th-TH.js +149 -0
- package/cjs/utils/with-default-props.js +8 -9
- package/cjs/utils/with-stop-propagation.d.ts +1 -1
- package/cjs/utils/with-stop-propagation.js +2 -1
- package/es/components/button/button.d.ts +1 -1
- package/es/components/button/button.patch.css +3 -3
- package/es/components/cascader-view/use-cascader-value-extend.js +8 -3
- package/es/components/checkbox/native-input.js +1 -1
- package/es/components/config-provider/config-provider.d.ts +3 -2
- package/es/components/error-block/create-error-block.d.ts +1 -0
- package/es/components/error-block/create-error-block.js +1 -0
- package/es/components/error-block/index.d.ts +0 -1
- package/es/components/error-block/index.js +0 -1
- package/es/components/form/form-item.js +1 -0
- package/es/components/form/form.js +2 -2
- package/es/components/infinite-scroll/infinite-scroll.js +8 -4
- package/es/components/picker-view/wheel.js +6 -3
- package/es/components/popover/index.d.ts +1 -1
- package/es/components/popover/popover.d.ts +1 -1
- package/es/components/radio/radio.css +1 -1
- package/es/components/radio/radio.d.ts +1 -1
- package/es/components/radio/radio.js +4 -4
- package/es/components/result-page/result-page.css +5 -5
- package/es/components/swipe-action/swipe-action.d.ts +1 -1
- package/es/components/text-area/text-area.css +0 -3
- package/es/global/css-vars-patch.css +3 -3
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/locales/hu-HU.d.ts +139 -0
- package/es/locales/hu-HU.js +140 -0
- package/es/locales/th-TH.d.ts +139 -0
- package/es/locales/th-TH.js +142 -0
- package/es/utils/with-default-props.js +8 -8
- package/es/utils/with-stop-propagation.d.ts +1 -1
- package/es/utils/with-stop-propagation.js +2 -1
- package/package.json +11 -3
- package/umd/antd-mobile.js +1 -1
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { mergeLocale } from '../utils/merge-locale';
|
|
2
|
+
import { base } from './base';
|
|
3
|
+
const typeTemplate = '${label}ไม่ใช่${type}ที่ถูกต้อง';
|
|
4
|
+
const thTH = mergeLocale(base, {
|
|
5
|
+
locale: 'th-TH',
|
|
6
|
+
common: {
|
|
7
|
+
confirm: 'ยืนยัน',
|
|
8
|
+
cancel: 'ยกเลิก',
|
|
9
|
+
loading: 'กำลังโหลด',
|
|
10
|
+
close: 'ปิด'
|
|
11
|
+
},
|
|
12
|
+
Calendar: {
|
|
13
|
+
title: 'เลือกวันที่',
|
|
14
|
+
confirm: 'ยืนยัน',
|
|
15
|
+
start: 'เริ่ม',
|
|
16
|
+
end: 'เสร็จ',
|
|
17
|
+
today: 'วันนี้',
|
|
18
|
+
markItems: ['วันจันทร์', 'วันอังคาร', 'วันพุธ', 'วันพฤหัสบดี', 'วันศุกร์', 'วันเสาร์', 'วันอาทิตย์'],
|
|
19
|
+
yearAndMonth: '${year}/${month}'
|
|
20
|
+
},
|
|
21
|
+
Cascader: {
|
|
22
|
+
placeholder: 'เลือก'
|
|
23
|
+
},
|
|
24
|
+
Dialog: {
|
|
25
|
+
ok: 'โอเค'
|
|
26
|
+
},
|
|
27
|
+
DatePicker: {
|
|
28
|
+
tillNow: 'จนถึงตอนนี้'
|
|
29
|
+
},
|
|
30
|
+
ErrorBlock: {
|
|
31
|
+
default: {
|
|
32
|
+
title: 'อุ๊ปส์, มีบางอย่างผิดพลาด',
|
|
33
|
+
description: 'กรุณารอสักครู่แล้วลองอีกครั้ง'
|
|
34
|
+
},
|
|
35
|
+
busy: {
|
|
36
|
+
title: 'อุ๊ปส์, ไม่ได้โหลด',
|
|
37
|
+
description: 'ลองรีเฟรชหน้า'
|
|
38
|
+
},
|
|
39
|
+
disconnected: {
|
|
40
|
+
title: 'เครือข่ายไม่ว่าง',
|
|
41
|
+
description: 'ลองรีเฟรชหน้า'
|
|
42
|
+
},
|
|
43
|
+
empty: {
|
|
44
|
+
title: 'อืมม, ไม่พบ...',
|
|
45
|
+
description: 'ลองค้นหาใหม่?'
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
Form: {
|
|
49
|
+
required: 'จำเป็น',
|
|
50
|
+
optional: 'ไม่จำเป็น',
|
|
51
|
+
defaultValidateMessages: {
|
|
52
|
+
default: 'ข้อผิดพลาดในการตรวจสอบฟิลด์ ${label}',
|
|
53
|
+
required: 'กรุณากรอก ${label}',
|
|
54
|
+
enum: '${label} ต้องเป็นหนึ่งใน [${enum}]',
|
|
55
|
+
whitespace: '${label} ต้องไม่มีช่องว่าง',
|
|
56
|
+
date: {
|
|
57
|
+
format: 'รูปแบบวันที่ ${label} ไม่ถูกต้อง',
|
|
58
|
+
parse: '${label} ไม่สามารถแปลงเป็นวันที่ได้',
|
|
59
|
+
invalid: '${label} เป็นวันที่ไม่ถูกต้อง'
|
|
60
|
+
},
|
|
61
|
+
types: {
|
|
62
|
+
string: typeTemplate,
|
|
63
|
+
method: typeTemplate,
|
|
64
|
+
array: typeTemplate,
|
|
65
|
+
object: typeTemplate,
|
|
66
|
+
number: typeTemplate,
|
|
67
|
+
date: typeTemplate,
|
|
68
|
+
boolean: typeTemplate,
|
|
69
|
+
integer: typeTemplate,
|
|
70
|
+
float: typeTemplate,
|
|
71
|
+
regexp: typeTemplate,
|
|
72
|
+
email: typeTemplate,
|
|
73
|
+
url: typeTemplate,
|
|
74
|
+
hex: typeTemplate
|
|
75
|
+
},
|
|
76
|
+
string: {
|
|
77
|
+
len: '${label} ต้องมี ${len} ตัวอักษร',
|
|
78
|
+
min: '${label} ต้องมีอย่างน้อย ${min} ตัวอักษร',
|
|
79
|
+
max: '${label} ต้องมีไม่เกิน ${max} ตัวอักษร',
|
|
80
|
+
range: '${label} ต้องอยู่ระหว่าง ${min}-${max} ตัวอักษร'
|
|
81
|
+
},
|
|
82
|
+
number: {
|
|
83
|
+
len: '${label} ต้องเท่ากับ ${len}',
|
|
84
|
+
min: '${label} ต้องมีอย่างน้อย ${min}',
|
|
85
|
+
max: '${label} ต้องมีไม่เกิน ${max}',
|
|
86
|
+
range: '${label} ต้องอยู่ระหว่าง ${min}-${max}'
|
|
87
|
+
},
|
|
88
|
+
array: {
|
|
89
|
+
len: 'ต้องมี ${len} ${label}',
|
|
90
|
+
min: 'อย่างน้อย ${min} ${label}',
|
|
91
|
+
max: 'มากสุด ${max} ${label}',
|
|
92
|
+
range: 'จำนวน ${label} ต้องอยู่ระหว่าง ${min}-${max}'
|
|
93
|
+
},
|
|
94
|
+
pattern: {
|
|
95
|
+
mismatch: '${label} ไม่ตรงกับรูปแบบ ${pattern}'
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
ImageUploader: {
|
|
100
|
+
uploading: 'กำลังอัปโหลด...',
|
|
101
|
+
upload: 'อัปโหลด'
|
|
102
|
+
},
|
|
103
|
+
InfiniteScroll: {
|
|
104
|
+
noMore: 'ไม่มีเพิ่มเติม',
|
|
105
|
+
failedToLoad: 'โหลดล้มเหลว',
|
|
106
|
+
retry: 'ลองใหม่'
|
|
107
|
+
},
|
|
108
|
+
Input: {
|
|
109
|
+
clear: 'ชัดเจน'
|
|
110
|
+
},
|
|
111
|
+
Mask: {
|
|
112
|
+
name: 'มาสก์'
|
|
113
|
+
},
|
|
114
|
+
Modal: {
|
|
115
|
+
ok: 'ตกลง'
|
|
116
|
+
},
|
|
117
|
+
PasscodeInput: {
|
|
118
|
+
name: 'ป้อนรหัสผ่าน'
|
|
119
|
+
},
|
|
120
|
+
PullToRefresh: {
|
|
121
|
+
pulling: 'ดึงลงเพื่อรีเฟรช',
|
|
122
|
+
canRelease: 'ปล่อยเพื่อรีเฟรชทันที',
|
|
123
|
+
complete: 'รีเฟรชสำเร็จ'
|
|
124
|
+
},
|
|
125
|
+
SearchBar: {
|
|
126
|
+
name: 'แถบค้นหา'
|
|
127
|
+
},
|
|
128
|
+
Slider: {
|
|
129
|
+
name: 'สไลด์เดอร์'
|
|
130
|
+
},
|
|
131
|
+
Stepper: {
|
|
132
|
+
decrease: 'ลด',
|
|
133
|
+
increase: 'เพิ่ม'
|
|
134
|
+
},
|
|
135
|
+
Switch: {
|
|
136
|
+
name: 'สวิตช์'
|
|
137
|
+
},
|
|
138
|
+
Selector: {
|
|
139
|
+
name: 'เลือก'
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
export default thTH;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import assignWith from 'lodash/assignWith';
|
|
2
1
|
export function mergeProps(...items) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
const ret = {};
|
|
3
|
+
items.forEach(item => {
|
|
4
|
+
Object.keys(item).forEach(key => {
|
|
5
|
+
if (item[key] !== undefined) {
|
|
6
|
+
ret[key] = item[key];
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
});
|
|
10
10
|
return ret;
|
|
11
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ReactElement } from 'react';
|
|
3
|
-
export declare type PropagationEvent = 'click';
|
|
3
|
+
export declare type PropagationEvent = 'click' | 'touchstart';
|
|
4
4
|
export declare function withStopPropagation(events: PropagationEvent[], element: ReactElement): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
package/2x/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antd-mobile",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.35.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@floating-ui/dom": "^1.4.2",
|
|
@@ -12,9 +12,11 @@
|
|
|
12
12
|
"antd-mobile-v5-count": "^1.0.1",
|
|
13
13
|
"classnames": "^2.3.2",
|
|
14
14
|
"dayjs": "^1.11.7",
|
|
15
|
-
"
|
|
15
|
+
"deepmerge": "^4.3.1",
|
|
16
|
+
"nano-memoize": "^3.0.16",
|
|
16
17
|
"rc-field-form": "~1.27.4",
|
|
17
18
|
"rc-util": "^5.38.1",
|
|
19
|
+
"react-fast-compare": "^3.2.2",
|
|
18
20
|
"react-is": "^18.2.0",
|
|
19
21
|
"runes2": "^1.1.2",
|
|
20
22
|
"staged-components": "^1.1.3",
|
|
@@ -43,5 +45,11 @@
|
|
|
43
45
|
"url": "git+https://github.com/ant-design/ant-design-mobile.git",
|
|
44
46
|
"branch": "master",
|
|
45
47
|
"platform": "github"
|
|
46
|
-
}
|
|
48
|
+
},
|
|
49
|
+
"size-limit": [
|
|
50
|
+
{
|
|
51
|
+
"path": "./lib/bundle/antd-mobile.es.js",
|
|
52
|
+
"limit": "200 kB"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
47
55
|
}
|