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.
Files changed (144) hide show
  1. package/2x/bundle/antd-mobile.cjs.development.js +427 -1385
  2. package/2x/bundle/antd-mobile.cjs.js +7 -7
  3. package/2x/bundle/antd-mobile.es.development.js +428 -1386
  4. package/2x/bundle/antd-mobile.es.js +6409 -7003
  5. package/2x/bundle/antd-mobile.umd.development.js +427 -1385
  6. package/2x/bundle/antd-mobile.umd.js +7 -7
  7. package/2x/bundle/css-vars-patch.css +3 -3
  8. package/2x/bundle/style.css +6 -10
  9. package/2x/cjs/components/button/button.d.ts +1 -1
  10. package/2x/cjs/components/button/button.patch.css +3 -3
  11. package/2x/cjs/components/cascader-view/use-cascader-value-extend.js +10 -5
  12. package/2x/cjs/components/checkbox/native-input.js +1 -1
  13. package/2x/cjs/components/config-provider/config-provider.d.ts +3 -2
  14. package/2x/cjs/components/error-block/create-error-block.d.ts +1 -0
  15. package/2x/cjs/components/error-block/create-error-block.js +1 -0
  16. package/2x/cjs/components/error-block/index.d.ts +0 -1
  17. package/2x/cjs/components/error-block/index.js +2 -3
  18. package/2x/cjs/components/form/form-item.js +1 -0
  19. package/2x/cjs/components/form/form.js +2 -2
  20. package/2x/cjs/components/infinite-scroll/infinite-scroll.js +8 -4
  21. package/2x/cjs/components/picker-view/wheel.js +7 -4
  22. package/2x/cjs/components/popover/index.d.ts +1 -1
  23. package/2x/cjs/components/popover/popover.d.ts +1 -1
  24. package/2x/cjs/components/radio/radio.css +1 -1
  25. package/2x/cjs/components/radio/radio.d.ts +1 -1
  26. package/2x/cjs/components/radio/radio.js +5 -5
  27. package/2x/cjs/components/result-page/result-page.css +5 -5
  28. package/2x/cjs/components/swipe-action/swipe-action.d.ts +1 -1
  29. package/2x/cjs/components/text-area/text-area.css +0 -4
  30. package/2x/cjs/global/css-vars-patch.css +3 -3
  31. package/2x/cjs/index.d.ts +1 -1
  32. package/2x/cjs/index.js +6 -0
  33. package/2x/cjs/locales/hu-HU.d.ts +139 -0
  34. package/2x/cjs/locales/hu-HU.js +148 -0
  35. package/2x/cjs/locales/th-TH.d.ts +139 -0
  36. package/2x/cjs/locales/th-TH.js +149 -0
  37. package/2x/cjs/utils/with-default-props.js +8 -9
  38. package/2x/cjs/utils/with-stop-propagation.d.ts +1 -1
  39. package/2x/cjs/utils/with-stop-propagation.js +2 -1
  40. package/2x/es/components/button/button.d.ts +1 -1
  41. package/2x/es/components/button/button.patch.css +3 -3
  42. package/2x/es/components/cascader-view/use-cascader-value-extend.js +8 -3
  43. package/2x/es/components/checkbox/native-input.js +1 -1
  44. package/2x/es/components/config-provider/config-provider.d.ts +3 -2
  45. package/2x/es/components/error-block/create-error-block.d.ts +1 -0
  46. package/2x/es/components/error-block/create-error-block.js +1 -0
  47. package/2x/es/components/error-block/index.d.ts +0 -1
  48. package/2x/es/components/error-block/index.js +0 -1
  49. package/2x/es/components/form/form-item.js +1 -0
  50. package/2x/es/components/form/form.js +2 -2
  51. package/2x/es/components/infinite-scroll/infinite-scroll.js +8 -4
  52. package/2x/es/components/picker-view/wheel.js +6 -3
  53. package/2x/es/components/popover/index.d.ts +1 -1
  54. package/2x/es/components/popover/popover.d.ts +1 -1
  55. package/2x/es/components/radio/radio.css +1 -1
  56. package/2x/es/components/radio/radio.d.ts +1 -1
  57. package/2x/es/components/radio/radio.js +4 -4
  58. package/2x/es/components/result-page/result-page.css +5 -5
  59. package/2x/es/components/swipe-action/swipe-action.d.ts +1 -1
  60. package/2x/es/components/text-area/text-area.css +0 -4
  61. package/2x/es/global/css-vars-patch.css +3 -3
  62. package/2x/es/index.d.ts +1 -1
  63. package/2x/es/index.js +1 -1
  64. package/2x/es/locales/hu-HU.d.ts +139 -0
  65. package/2x/es/locales/hu-HU.js +140 -0
  66. package/2x/es/locales/th-TH.d.ts +139 -0
  67. package/2x/es/locales/th-TH.js +142 -0
  68. package/2x/es/utils/with-default-props.js +8 -8
  69. package/2x/es/utils/with-stop-propagation.d.ts +1 -1
  70. package/2x/es/utils/with-stop-propagation.js +2 -1
  71. package/2x/package.json +11 -3
  72. package/bundle/antd-mobile.cjs.development.js +427 -1385
  73. package/bundle/antd-mobile.cjs.js +7 -7
  74. package/bundle/antd-mobile.compatible.umd.js +1 -1
  75. package/bundle/antd-mobile.es.development.js +428 -1386
  76. package/bundle/antd-mobile.es.js +6409 -7003
  77. package/bundle/antd-mobile.umd.development.js +427 -1385
  78. package/bundle/antd-mobile.umd.js +7 -7
  79. package/bundle/css-vars-patch.css +3 -3
  80. package/bundle/style.css +1 -1
  81. package/cjs/components/button/button.d.ts +1 -1
  82. package/cjs/components/button/button.patch.css +3 -3
  83. package/cjs/components/cascader-view/use-cascader-value-extend.js +10 -5
  84. package/cjs/components/checkbox/native-input.js +1 -1
  85. package/cjs/components/config-provider/config-provider.d.ts +3 -2
  86. package/cjs/components/error-block/create-error-block.d.ts +1 -0
  87. package/cjs/components/error-block/create-error-block.js +1 -0
  88. package/cjs/components/error-block/index.d.ts +0 -1
  89. package/cjs/components/error-block/index.js +2 -3
  90. package/cjs/components/form/form-item.js +1 -0
  91. package/cjs/components/form/form.js +2 -2
  92. package/cjs/components/infinite-scroll/infinite-scroll.js +8 -4
  93. package/cjs/components/picker-view/wheel.js +7 -4
  94. package/cjs/components/popover/index.d.ts +1 -1
  95. package/cjs/components/popover/popover.d.ts +1 -1
  96. package/cjs/components/radio/radio.css +1 -1
  97. package/cjs/components/radio/radio.d.ts +1 -1
  98. package/cjs/components/radio/radio.js +5 -5
  99. package/cjs/components/result-page/result-page.css +5 -5
  100. package/cjs/components/swipe-action/swipe-action.d.ts +1 -1
  101. package/cjs/components/text-area/text-area.css +0 -3
  102. package/cjs/global/css-vars-patch.css +3 -3
  103. package/cjs/index.d.ts +1 -1
  104. package/cjs/index.js +6 -0
  105. package/cjs/locales/hu-HU.d.ts +139 -0
  106. package/cjs/locales/hu-HU.js +148 -0
  107. package/cjs/locales/th-TH.d.ts +139 -0
  108. package/cjs/locales/th-TH.js +149 -0
  109. package/cjs/utils/with-default-props.js +8 -9
  110. package/cjs/utils/with-stop-propagation.d.ts +1 -1
  111. package/cjs/utils/with-stop-propagation.js +2 -1
  112. package/es/components/button/button.d.ts +1 -1
  113. package/es/components/button/button.patch.css +3 -3
  114. package/es/components/cascader-view/use-cascader-value-extend.js +8 -3
  115. package/es/components/checkbox/native-input.js +1 -1
  116. package/es/components/config-provider/config-provider.d.ts +3 -2
  117. package/es/components/error-block/create-error-block.d.ts +1 -0
  118. package/es/components/error-block/create-error-block.js +1 -0
  119. package/es/components/error-block/index.d.ts +0 -1
  120. package/es/components/error-block/index.js +0 -1
  121. package/es/components/form/form-item.js +1 -0
  122. package/es/components/form/form.js +2 -2
  123. package/es/components/infinite-scroll/infinite-scroll.js +8 -4
  124. package/es/components/picker-view/wheel.js +6 -3
  125. package/es/components/popover/index.d.ts +1 -1
  126. package/es/components/popover/popover.d.ts +1 -1
  127. package/es/components/radio/radio.css +1 -1
  128. package/es/components/radio/radio.d.ts +1 -1
  129. package/es/components/radio/radio.js +4 -4
  130. package/es/components/result-page/result-page.css +5 -5
  131. package/es/components/swipe-action/swipe-action.d.ts +1 -1
  132. package/es/components/text-area/text-area.css +0 -3
  133. package/es/global/css-vars-patch.css +3 -3
  134. package/es/index.d.ts +1 -1
  135. package/es/index.js +1 -1
  136. package/es/locales/hu-HU.d.ts +139 -0
  137. package/es/locales/hu-HU.js +140 -0
  138. package/es/locales/th-TH.d.ts +139 -0
  139. package/es/locales/th-TH.js +142 -0
  140. package/es/utils/with-default-props.js +8 -8
  141. package/es/utils/with-stop-propagation.d.ts +1 -1
  142. package/es/utils/with-stop-propagation.js +2 -1
  143. package/package.json +11 -3
  144. package/umd/antd-mobile.js +1 -1
@@ -32,7 +32,7 @@ export declare const Popover: React.ForwardRefExoticComponent<{
32
32
  mode?: "dark" | "light" | undefined;
33
33
  trigger?: "click" | undefined;
34
34
  placement?: DeprecatedPlacement | Placement | undefined;
35
- stopPropagation?: "click"[] | undefined;
35
+ stopPropagation?: PropagationEvent[] | undefined;
36
36
  content: ReactNode;
37
37
  } & {
38
38
  className?: string | undefined;
@@ -8,7 +8,7 @@
8
8
  align-items: center;
9
9
  cursor: pointer;
10
10
  }
11
- .adm-radio input {
11
+ .adm-radio input[type='radio'] {
12
12
  display: none;
13
13
  }
14
14
  .adm-radio .adm-radio-icon {
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
1
  import type { FC, ReactNode } from 'react';
2
+ import React from 'react';
3
3
  import { NativeProps } from '../../utils/native-props';
4
4
  export declare type RadioValue = string | number;
5
5
  export declare type RadioProps = {
@@ -1,13 +1,13 @@
1
+ import classNames from 'classnames';
1
2
  import React, { useContext } from 'react';
3
+ import { devWarning } from '../../utils/dev-log';
4
+ import { isDev } from '../../utils/is-dev';
2
5
  import { withNativeProps } from '../../utils/native-props';
3
- import classNames from 'classnames';
4
- import { RadioGroupContext } from './group-context';
5
6
  import { usePropsValue } from '../../utils/use-props-value';
6
7
  import { mergeProps } from '../../utils/with-default-props';
7
8
  import { CheckIcon } from '../checkbox/check-icon';
8
- import { devWarning } from '../../utils/dev-log';
9
- import { isDev } from '../../utils/is-dev';
10
9
  import { NativeInput } from '../checkbox/native-input';
10
+ import { RadioGroupContext } from './group-context';
11
11
  const classPrefix = `adm-radio`;
12
12
  const defaultProps = {
13
13
  defaultChecked: false
@@ -17,7 +17,7 @@
17
17
  overflow: hidden;
18
18
  }
19
19
  .adm-result-page-icon {
20
- color: var(--adm-color-background);
20
+ color: var(--adm-color-text-light-solid);
21
21
  box-sizing: border-box;
22
22
  padding: 2px;
23
23
  margin-bottom: 8px;
@@ -27,7 +27,7 @@
27
27
  }
28
28
  .adm-result-page-title {
29
29
  font-size: var(--adm-font-size-10);
30
- color: var(--adm-color-background);
30
+ color: var(--adm-color-text-light-solid);
31
31
  line-height: 1.4;
32
32
  text-align: center;
33
33
  }
@@ -48,7 +48,7 @@
48
48
  flex-direction: row;
49
49
  justify-content: space-between;
50
50
  margin-bottom: 5px;
51
- color: var(--adm-color-background);
51
+ color: var(--adm-color-text-light-solid);
52
52
  font-size: var(--adm-font-size-6);
53
53
  }
54
54
  .adm-result-page-detail-bold {
@@ -60,8 +60,8 @@
60
60
  height: 10px;
61
61
  margin: auto;
62
62
  margin-bottom: 5px;
63
- border-top: 2px solid var(--adm-color-background);
64
- border-right: 2px solid var(--adm-color-background);
63
+ border-top: 2px solid var(--adm-color-text-light-solid);
64
+ border-right: 2px solid var(--adm-color-text-light-solid);
65
65
  transform: rotate(135deg);
66
66
  }
67
67
  .adm-result-page-collapse-active {
@@ -31,7 +31,7 @@ export declare const SwipeAction: React.ForwardRefExoticComponent<{
31
31
  closeOnTouchOutside?: boolean | undefined;
32
32
  closeOnAction?: boolean | undefined;
33
33
  children: ReactNode;
34
- stopPropagation?: "click"[] | undefined;
34
+ stopPropagation?: PropagationEvent[] | undefined;
35
35
  onActionsReveal?: ((side: SideType) => void) | undefined;
36
36
  } & {
37
37
  className?: string | undefined;
@@ -58,9 +58,6 @@
58
58
  .adm-text-area-element::-ms-clear {
59
59
  display: none;
60
60
  }
61
- .adm-text-area-element[readonly] {
62
- pointer-events: none;
63
- }
64
61
  .adm-text-area-element-hidden {
65
62
  visibility: hidden;
66
63
  position: absolute;
@@ -48,12 +48,12 @@
48
48
  color: #00b578;
49
49
  }
50
50
  .adm-button-danger {
51
- background-color: #00b578;
52
- border-color: #00b578;
51
+ background-color: #ff3141;
52
+ border-color: #ff3141;
53
53
  }
54
54
  .adm-button-danger.adm-button-fill-outline,
55
55
  .adm-button-danger.adm-button-fill-none {
56
- color: #00b578;
56
+ color: #ff3141;
57
57
  }
58
58
  .adm-button-warning {
59
59
  background-color: #ff8f1f;
package/es/index.d.ts CHANGED
@@ -36,7 +36,7 @@ export { default as Checkbox } from './components/checkbox';
36
36
  export type { CheckboxProps, CheckboxGroupProps, CheckboxRef, } from './components/checkbox';
37
37
  export { default as Collapse } from './components/collapse';
38
38
  export type { CollapseProps, CollapsePanelProps } from './components/collapse';
39
- export { default as ConfigProvider } from './components/config-provider';
39
+ export { default as ConfigProvider, useConfig } from './components/config-provider';
40
40
  export type { ConfigProviderProps } from './components/config-provider';
41
41
  export { default as DatePicker } from './components/date-picker';
42
42
  export type { DatePickerProps, DatePickerRef } from './components/date-picker';
package/es/index.js CHANGED
@@ -18,7 +18,7 @@ export { default as CenterPopup } from './components/center-popup';
18
18
  export { default as CheckList } from './components/check-list';
19
19
  export { default as Checkbox } from './components/checkbox';
20
20
  export { default as Collapse } from './components/collapse';
21
- export { default as ConfigProvider } from './components/config-provider';
21
+ export { default as ConfigProvider, useConfig } from './components/config-provider';
22
22
  export { default as DatePicker } from './components/date-picker';
23
23
  export { default as DatePickerView } from './components/date-picker-view';
24
24
  export { default as Dialog } from './components/dialog';
@@ -0,0 +1,139 @@
1
+ export declare const huHU: {
2
+ locale: string;
3
+ common: {
4
+ confirm: string;
5
+ cancel: string;
6
+ loading: string;
7
+ close: string;
8
+ };
9
+ Calendar: {
10
+ title: string;
11
+ confirm: string;
12
+ start: string;
13
+ end: string;
14
+ today: string;
15
+ markItems: string[];
16
+ yearAndMonth: string;
17
+ };
18
+ Cascader: {
19
+ placeholder: string;
20
+ };
21
+ Dialog: {
22
+ ok: string;
23
+ };
24
+ DatePicker: {
25
+ tillNow: string;
26
+ };
27
+ ErrorBlock: {
28
+ default: {
29
+ title: string;
30
+ description: string;
31
+ };
32
+ busy: {
33
+ title: string;
34
+ description: string;
35
+ };
36
+ disconnected: {
37
+ title: string;
38
+ description: string;
39
+ };
40
+ empty: {
41
+ title: string;
42
+ description: string;
43
+ };
44
+ };
45
+ Form: {
46
+ required: string;
47
+ optional: string;
48
+ defaultValidateMessages: {
49
+ default: string;
50
+ required: string;
51
+ enum: string;
52
+ whitespace: string;
53
+ date: {
54
+ format: string;
55
+ parse: string;
56
+ invalid: string;
57
+ };
58
+ types: {
59
+ string: string;
60
+ method: string;
61
+ array: string;
62
+ object: string;
63
+ number: string;
64
+ date: string;
65
+ boolean: string;
66
+ integer: string;
67
+ float: string;
68
+ regexp: string;
69
+ email: string;
70
+ url: string;
71
+ hex: string;
72
+ };
73
+ string: {
74
+ len: string;
75
+ min: string;
76
+ max: string;
77
+ range: string;
78
+ };
79
+ number: {
80
+ len: string;
81
+ min: string;
82
+ max: string;
83
+ range: string;
84
+ };
85
+ array: {
86
+ len: string;
87
+ min: string;
88
+ max: string;
89
+ range: string;
90
+ };
91
+ pattern: {
92
+ mismatch: string;
93
+ };
94
+ };
95
+ };
96
+ ImageUploader: {
97
+ uploading: string;
98
+ upload: string;
99
+ };
100
+ InfiniteScroll: {
101
+ noMore: string;
102
+ failedToLoad: string;
103
+ retry: string;
104
+ };
105
+ Input: {
106
+ clear: string;
107
+ };
108
+ Mask: {
109
+ name: string;
110
+ };
111
+ Modal: {
112
+ ok: string;
113
+ };
114
+ PasscodeInput: {
115
+ name: string;
116
+ };
117
+ PullToRefresh: {
118
+ pulling: string;
119
+ canRelease: string;
120
+ complete: string;
121
+ };
122
+ SearchBar: {
123
+ name: string;
124
+ };
125
+ Slider: {
126
+ name: string;
127
+ };
128
+ Stepper: {
129
+ decrease: string;
130
+ increase: string;
131
+ };
132
+ Switch: {
133
+ name: string;
134
+ };
135
+ Selector: {
136
+ name: string;
137
+ };
138
+ };
139
+ export default huHU;
@@ -0,0 +1,140 @@
1
+ import { mergeLocale } from '../utils/merge-locale';
2
+ import { base } from './base';
3
+ const typeTemplate = '${label} is not a valid ${type}';
4
+ export const huHU = mergeLocale(base, {
5
+ locale: 'hu',
6
+ common: {
7
+ confirm: 'Alkalmazás',
8
+ cancel: 'Visszavonás',
9
+ loading: 'Betöltés',
10
+ close: 'Bezárás'
11
+ },
12
+ Calendar: {
13
+ title: 'Dátum kiválasztása',
14
+ confirm: 'Alkalmazás',
15
+ today: 'ma',
16
+ markItems: ['Hét', 'Ked', 'Sze', 'Csü', 'Pén', 'Szo', 'Vas'],
17
+ yearAndMonth: '${year}-${month}'
18
+ },
19
+ Cascader: {
20
+ placeholder: 'Kiválasztás'
21
+ },
22
+ Dialog: {
23
+ ok: 'OK'
24
+ },
25
+ DatePicker: {
26
+ tillNow: 'Till Now'
27
+ },
28
+ ErrorBlock: {
29
+ default: {
30
+ title: 'Oopsz, valami hiba történt',
31
+ description: 'Kérjük, várjon egy percet, és próbálja újra'
32
+ },
33
+ busy: {
34
+ title: 'Oopsz, nem sikerült betölteni',
35
+ description: 'Próbálja meg frissíteni az oldalt'
36
+ },
37
+ disconnected: {
38
+ title: 'A hálózat elfoglalt',
39
+ description: 'Próbálja meg frissíteni az oldalt'
40
+ },
41
+ empty: {
42
+ title: "Hmm, nem találjuk amit keresel...",
43
+ description: 'Szeretnél új keresést indítani?'
44
+ }
45
+ },
46
+ Form: {
47
+ required: 'Kötelező',
48
+ optional: 'Opcionális',
49
+ defaultValidateMessages: {
50
+ default: 'Mező validációs hiba ${label}',
51
+ required: 'Mező kitöltése kötelező ${label}',
52
+ enum: '${label} tatroznia kell [${enum}]',
53
+ whitespace: '${label} nem lehet üres karakter',
54
+ date: {
55
+ format: '${label} dátum formátuma érvénytelen',
56
+ parse: '${label} nem alakítható dátummá',
57
+ invalid: '${label} nem érvényes dátum'
58
+ },
59
+ types: {
60
+ string: typeTemplate,
61
+ method: typeTemplate,
62
+ array: typeTemplate,
63
+ object: typeTemplate,
64
+ number: typeTemplate,
65
+ date: typeTemplate,
66
+ boolean: typeTemplate,
67
+ integer: typeTemplate,
68
+ float: typeTemplate,
69
+ regexp: typeTemplate,
70
+ email: typeTemplate,
71
+ url: typeTemplate,
72
+ hex: typeTemplate
73
+ },
74
+ string: {
75
+ len: '${label} muszáj hogy ${len} karakter hosszú legyen',
76
+ min: '${label} muszáj hogy legalább ${min} karakter hosszú legyen',
77
+ max: '${label} muszáj hogy maximum ${max} karakter hosszú legyen',
78
+ range: '${label} muszáj hogy ${min}-${max} karakter hosszú legyen'
79
+ },
80
+ number: {
81
+ len: '${label} muszáj hogy ${len} legyen',
82
+ min: '${label} legalább ${min} legyen',
83
+ max: '${label} maximum ${max} lehet',
84
+ range: '${label} muszáj hogy ${min}-${max} között legyen'
85
+ },
86
+ array: {
87
+ len: 'Muszáj ${len} legyen ${label}',
88
+ min: 'Legalább ${min} ${label}',
89
+ max: 'Maximum ${max} ${label}',
90
+ range: '${label} értéke ${min}-${max} között kell legyen'
91
+ },
92
+ pattern: {
93
+ mismatch: '${label} nem hasonlít ${pattern}'
94
+ }
95
+ }
96
+ },
97
+ ImageUploader: {
98
+ uploading: 'Feltöltés...',
99
+ upload: 'Feltöltés'
100
+ },
101
+ InfiniteScroll: {
102
+ noMore: 'Nincs több',
103
+ failedToLoad: 'Nem sikerült betölteni',
104
+ retry: 'Újra'
105
+ },
106
+ Input: {
107
+ clear: 'Törlés'
108
+ },
109
+ Mask: {
110
+ name: 'Maszk'
111
+ },
112
+ Modal: {
113
+ ok: 'OK'
114
+ },
115
+ PasscodeInput: {
116
+ name: 'PIN-kód'
117
+ },
118
+ PullToRefresh: {
119
+ pulling: 'Görgessen le a frissítéshez',
120
+ canRelease: 'Engedje el az azonnalli frissítéshez',
121
+ complete: 'Sikeresen frissítve'
122
+ },
123
+ SearchBar: {
124
+ name: 'Keresés'
125
+ },
126
+ Slider: {
127
+ name: 'Csúszka'
128
+ },
129
+ Stepper: {
130
+ decrease: 'csökkentés',
131
+ increase: 'növelés'
132
+ },
133
+ Switch: {
134
+ name: 'Kapcsoló'
135
+ },
136
+ Selector: {
137
+ name: 'Kiválasztás'
138
+ }
139
+ });
140
+ export default huHU;
@@ -0,0 +1,139 @@
1
+ declare const thTH: {
2
+ locale: string;
3
+ common: {
4
+ confirm: string;
5
+ cancel: string;
6
+ loading: string;
7
+ close: string;
8
+ };
9
+ Calendar: {
10
+ title: string;
11
+ confirm: string;
12
+ start: string;
13
+ end: string;
14
+ today: string;
15
+ markItems: string[];
16
+ yearAndMonth: string;
17
+ };
18
+ Cascader: {
19
+ placeholder: string;
20
+ };
21
+ Dialog: {
22
+ ok: string;
23
+ };
24
+ DatePicker: {
25
+ tillNow: string;
26
+ };
27
+ ErrorBlock: {
28
+ default: {
29
+ title: string;
30
+ description: string;
31
+ };
32
+ busy: {
33
+ title: string;
34
+ description: string;
35
+ };
36
+ disconnected: {
37
+ title: string;
38
+ description: string;
39
+ };
40
+ empty: {
41
+ title: string;
42
+ description: string;
43
+ };
44
+ };
45
+ Form: {
46
+ required: string;
47
+ optional: string;
48
+ defaultValidateMessages: {
49
+ default: string;
50
+ required: string;
51
+ enum: string;
52
+ whitespace: string;
53
+ date: {
54
+ format: string;
55
+ parse: string;
56
+ invalid: string;
57
+ };
58
+ types: {
59
+ string: string;
60
+ method: string;
61
+ array: string;
62
+ object: string;
63
+ number: string;
64
+ date: string;
65
+ boolean: string;
66
+ integer: string;
67
+ float: string;
68
+ regexp: string;
69
+ email: string;
70
+ url: string;
71
+ hex: string;
72
+ };
73
+ string: {
74
+ len: string;
75
+ min: string;
76
+ max: string;
77
+ range: string;
78
+ };
79
+ number: {
80
+ len: string;
81
+ min: string;
82
+ max: string;
83
+ range: string;
84
+ };
85
+ array: {
86
+ len: string;
87
+ min: string;
88
+ max: string;
89
+ range: string;
90
+ };
91
+ pattern: {
92
+ mismatch: string;
93
+ };
94
+ };
95
+ };
96
+ ImageUploader: {
97
+ uploading: string;
98
+ upload: string;
99
+ };
100
+ InfiniteScroll: {
101
+ noMore: string;
102
+ failedToLoad: string;
103
+ retry: string;
104
+ };
105
+ Input: {
106
+ clear: string;
107
+ };
108
+ Mask: {
109
+ name: string;
110
+ };
111
+ Modal: {
112
+ ok: string;
113
+ };
114
+ PasscodeInput: {
115
+ name: string;
116
+ };
117
+ PullToRefresh: {
118
+ pulling: string;
119
+ canRelease: string;
120
+ complete: string;
121
+ };
122
+ SearchBar: {
123
+ name: string;
124
+ };
125
+ Slider: {
126
+ name: string;
127
+ };
128
+ Stepper: {
129
+ decrease: string;
130
+ increase: string;
131
+ };
132
+ Switch: {
133
+ name: string;
134
+ };
135
+ Selector: {
136
+ name: string;
137
+ };
138
+ };
139
+ export default thTH;
@@ -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;