antd-mobile 5.37.1 → 5.38.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 (182) hide show
  1. package/2x/README.md +2 -2
  2. package/2x/bundle/antd-mobile.cjs.development.js +2155 -999
  3. package/2x/bundle/antd-mobile.cjs.js +7 -7
  4. package/2x/bundle/antd-mobile.es.development.js +2157 -1001
  5. package/2x/bundle/antd-mobile.es.js +7088 -6332
  6. package/2x/bundle/antd-mobile.umd.development.js +2155 -999
  7. package/2x/bundle/antd-mobile.umd.js +7 -7
  8. package/2x/bundle/css-vars-patch.css +42 -0
  9. package/2x/bundle/style.css +141 -4
  10. package/2x/cjs/components/calendar-picker-view/calendar-picker-view.d.ts +1 -1
  11. package/2x/cjs/components/calendar-picker-view/calendar-picker-view.js +31 -10
  12. package/2x/cjs/components/card/card.css +1 -0
  13. package/2x/cjs/components/card/card.d.ts +2 -1
  14. package/2x/cjs/components/card/card.js +7 -3
  15. package/2x/cjs/components/card/card.patch.css +8 -0
  16. package/2x/cjs/components/date-picker/date-picker-quarter-utils.d.ts +7 -0
  17. package/2x/cjs/components/date-picker/date-picker-quarter-utils.js +77 -0
  18. package/2x/cjs/components/date-picker/date-picker-utils.d.ts +3 -2
  19. package/2x/cjs/components/date-picker/date-picker-utils.js +7 -0
  20. package/2x/cjs/components/image-uploader/image-uploader.js +2 -2
  21. package/2x/cjs/components/input/input.d.ts +2 -2
  22. package/2x/cjs/components/input/input.js +1 -0
  23. package/2x/cjs/components/notice-bar/notice-bar.css +30 -4
  24. package/2x/cjs/components/notice-bar/notice-bar.d.ts +5 -1
  25. package/2x/cjs/components/notice-bar/notice-bar.js +7 -3
  26. package/2x/cjs/components/search-bar/search-bar.d.ts +2 -2
  27. package/2x/cjs/components/search-bar/search-bar.js +1 -0
  28. package/2x/cjs/components/segmented/index.d.ts +4 -0
  29. package/2x/cjs/components/segmented/index.js +10 -0
  30. package/2x/cjs/components/segmented/segmented.css +113 -0
  31. package/2x/cjs/components/segmented/segmented.d.ts +21 -0
  32. package/2x/cjs/components/segmented/segmented.js +57 -0
  33. package/2x/cjs/components/segmented/segmented.patch.css +41 -0
  34. package/2x/cjs/components/tab-bar/tab-bar.d.ts +1 -0
  35. package/2x/cjs/components/tab-bar/tab-bar.js +2 -0
  36. package/2x/cjs/components/tabs/tabs.js +1 -1
  37. package/2x/cjs/components/toast/methods.js +9 -3
  38. package/2x/cjs/global/css-vars-patch.css +42 -0
  39. package/2x/cjs/index.d.ts +2 -0
  40. package/2x/cjs/index.js +7 -0
  41. package/2x/cjs/locales/cnr-ME.d.ts +139 -0
  42. package/2x/cjs/locales/cnr-ME.js +149 -0
  43. package/2x/cjs/locales/hr-HR.d.ts +139 -0
  44. package/2x/cjs/locales/hr-HR.js +149 -0
  45. package/2x/cjs/locales/kk-KZ.js +6 -6
  46. package/2x/cjs/locales/sr-RS.d.ts +139 -0
  47. package/2x/cjs/locales/sr-RS.js +149 -0
  48. package/2x/cjs/utils/render-imperatively.d.ts +1 -0
  49. package/2x/cjs/utils/render-imperatively.js +6 -3
  50. package/2x/es/components/calendar-picker-view/calendar-picker-view.d.ts +1 -1
  51. package/2x/es/components/calendar-picker-view/calendar-picker-view.js +32 -11
  52. package/2x/es/components/card/card.css +1 -0
  53. package/2x/es/components/card/card.d.ts +2 -1
  54. package/2x/es/components/card/card.js +7 -3
  55. package/2x/es/components/card/card.patch.css +8 -0
  56. package/2x/es/components/date-picker/date-picker-quarter-utils.d.ts +7 -0
  57. package/2x/es/components/date-picker/date-picker-quarter-utils.js +68 -0
  58. package/2x/es/components/date-picker/date-picker-utils.d.ts +3 -2
  59. package/2x/es/components/date-picker/date-picker-utils.js +7 -0
  60. package/2x/es/components/image-uploader/image-uploader.js +2 -2
  61. package/2x/es/components/input/input.d.ts +2 -2
  62. package/2x/es/components/input/input.js +1 -0
  63. package/2x/es/components/notice-bar/notice-bar.css +30 -4
  64. package/2x/es/components/notice-bar/notice-bar.d.ts +5 -1
  65. package/2x/es/components/notice-bar/notice-bar.js +7 -3
  66. package/2x/es/components/search-bar/search-bar.d.ts +2 -2
  67. package/2x/es/components/search-bar/search-bar.js +1 -0
  68. package/2x/es/components/segmented/index.d.ts +4 -0
  69. package/2x/es/components/segmented/index.js +3 -0
  70. package/2x/es/components/segmented/segmented.css +113 -0
  71. package/2x/es/components/segmented/segmented.d.ts +21 -0
  72. package/2x/es/components/segmented/segmented.js +48 -0
  73. package/2x/es/components/segmented/segmented.patch.css +41 -0
  74. package/2x/es/components/tab-bar/tab-bar.d.ts +1 -0
  75. package/2x/es/components/tab-bar/tab-bar.js +2 -0
  76. package/2x/es/components/tabs/tabs.js +1 -1
  77. package/2x/es/components/toast/methods.js +9 -3
  78. package/2x/es/global/css-vars-patch.css +42 -0
  79. package/2x/es/index.d.ts +2 -0
  80. package/2x/es/index.js +1 -0
  81. package/2x/es/locales/cnr-ME.d.ts +139 -0
  82. package/2x/es/locales/cnr-ME.js +142 -0
  83. package/2x/es/locales/hr-HR.d.ts +139 -0
  84. package/2x/es/locales/hr-HR.js +142 -0
  85. package/2x/es/locales/kk-KZ.js +6 -6
  86. package/2x/es/locales/sr-RS.d.ts +139 -0
  87. package/2x/es/locales/sr-RS.js +142 -0
  88. package/2x/es/utils/render-imperatively.d.ts +1 -0
  89. package/2x/es/utils/render-imperatively.js +6 -3
  90. package/2x/package.json +3 -2
  91. package/README.md +2 -2
  92. package/bundle/antd-mobile.cjs.development.js +2155 -999
  93. package/bundle/antd-mobile.cjs.js +7 -7
  94. package/bundle/antd-mobile.compatible.umd.js +1 -1
  95. package/bundle/antd-mobile.es.development.js +2157 -1001
  96. package/bundle/antd-mobile.es.js +7088 -6332
  97. package/bundle/antd-mobile.umd.development.js +2155 -999
  98. package/bundle/antd-mobile.umd.js +7 -7
  99. package/bundle/css-vars-patch.css +32 -0
  100. package/bundle/style.css +1 -1
  101. package/cjs/components/calendar-picker-view/calendar-picker-view.d.ts +1 -1
  102. package/cjs/components/calendar-picker-view/calendar-picker-view.js +31 -10
  103. package/cjs/components/card/card.css +1 -0
  104. package/cjs/components/card/card.d.ts +2 -1
  105. package/cjs/components/card/card.js +7 -3
  106. package/cjs/components/card/card.patch.css +6 -0
  107. package/cjs/components/date-picker/date-picker-quarter-utils.d.ts +7 -0
  108. package/cjs/components/date-picker/date-picker-quarter-utils.js +77 -0
  109. package/cjs/components/date-picker/date-picker-utils.d.ts +3 -2
  110. package/cjs/components/date-picker/date-picker-utils.js +7 -0
  111. package/cjs/components/image-uploader/image-uploader.js +2 -2
  112. package/cjs/components/input/input.d.ts +2 -2
  113. package/cjs/components/input/input.js +1 -0
  114. package/cjs/components/notice-bar/notice-bar.css +25 -4
  115. package/cjs/components/notice-bar/notice-bar.d.ts +5 -1
  116. package/cjs/components/notice-bar/notice-bar.js +7 -3
  117. package/cjs/components/search-bar/search-bar.d.ts +2 -2
  118. package/cjs/components/search-bar/search-bar.js +1 -0
  119. package/cjs/components/segmented/index.d.ts +4 -0
  120. package/cjs/components/segmented/index.js +10 -0
  121. package/cjs/components/segmented/segmented.css +97 -0
  122. package/cjs/components/segmented/segmented.d.ts +21 -0
  123. package/cjs/components/segmented/segmented.js +57 -0
  124. package/cjs/components/segmented/segmented.patch.css +32 -0
  125. package/cjs/components/tab-bar/tab-bar.d.ts +1 -0
  126. package/cjs/components/tab-bar/tab-bar.js +2 -0
  127. package/cjs/components/tabs/tabs.js +1 -1
  128. package/cjs/components/toast/methods.js +9 -3
  129. package/cjs/global/css-vars-patch.css +32 -0
  130. package/cjs/index.d.ts +2 -0
  131. package/cjs/index.js +7 -0
  132. package/cjs/locales/cnr-ME.d.ts +139 -0
  133. package/cjs/locales/cnr-ME.js +149 -0
  134. package/cjs/locales/hr-HR.d.ts +139 -0
  135. package/cjs/locales/hr-HR.js +149 -0
  136. package/cjs/locales/kk-KZ.js +6 -6
  137. package/cjs/locales/sr-RS.d.ts +139 -0
  138. package/cjs/locales/sr-RS.js +149 -0
  139. package/cjs/utils/render-imperatively.d.ts +1 -0
  140. package/cjs/utils/render-imperatively.js +6 -3
  141. package/es/components/calendar-picker-view/calendar-picker-view.d.ts +1 -1
  142. package/es/components/calendar-picker-view/calendar-picker-view.js +32 -11
  143. package/es/components/card/card.css +1 -0
  144. package/es/components/card/card.d.ts +2 -1
  145. package/es/components/card/card.js +7 -3
  146. package/es/components/card/card.patch.css +6 -0
  147. package/es/components/date-picker/date-picker-quarter-utils.d.ts +7 -0
  148. package/es/components/date-picker/date-picker-quarter-utils.js +68 -0
  149. package/es/components/date-picker/date-picker-utils.d.ts +3 -2
  150. package/es/components/date-picker/date-picker-utils.js +7 -0
  151. package/es/components/image-uploader/image-uploader.js +2 -2
  152. package/es/components/input/input.d.ts +2 -2
  153. package/es/components/input/input.js +1 -0
  154. package/es/components/notice-bar/notice-bar.css +25 -4
  155. package/es/components/notice-bar/notice-bar.d.ts +5 -1
  156. package/es/components/notice-bar/notice-bar.js +7 -3
  157. package/es/components/search-bar/search-bar.d.ts +2 -2
  158. package/es/components/search-bar/search-bar.js +1 -0
  159. package/es/components/segmented/index.d.ts +4 -0
  160. package/es/components/segmented/index.js +3 -0
  161. package/es/components/segmented/segmented.css +97 -0
  162. package/es/components/segmented/segmented.d.ts +21 -0
  163. package/es/components/segmented/segmented.js +48 -0
  164. package/es/components/segmented/segmented.patch.css +32 -0
  165. package/es/components/tab-bar/tab-bar.d.ts +1 -0
  166. package/es/components/tab-bar/tab-bar.js +2 -0
  167. package/es/components/tabs/tabs.js +1 -1
  168. package/es/components/toast/methods.js +9 -3
  169. package/es/global/css-vars-patch.css +32 -0
  170. package/es/index.d.ts +2 -0
  171. package/es/index.js +1 -0
  172. package/es/locales/cnr-ME.d.ts +139 -0
  173. package/es/locales/cnr-ME.js +142 -0
  174. package/es/locales/hr-HR.d.ts +139 -0
  175. package/es/locales/hr-HR.js +142 -0
  176. package/es/locales/kk-KZ.js +6 -6
  177. package/es/locales/sr-RS.d.ts +139 -0
  178. package/es/locales/sr-RS.js +142 -0
  179. package/es/utils/render-imperatively.d.ts +1 -0
  180. package/es/utils/render-imperatively.js +6 -3
  181. package/package.json +3 -2
  182. package/umd/antd-mobile.js +1 -1
@@ -0,0 +1,139 @@
1
+ declare const hrHR: {
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 hrHR;
@@ -0,0 +1,142 @@
1
+ import { mergeLocale } from '../utils/merge-locale';
2
+ import { base } from './base';
3
+ const typeTemplate = '${label} nije važeći ${type}';
4
+ const hrHR = mergeLocale(base, {
5
+ locale: 'hr',
6
+ common: {
7
+ confirm: 'Potvrdi',
8
+ cancel: 'Otkaži',
9
+ loading: 'Učitavanje',
10
+ close: 'Zatvori'
11
+ },
12
+ Calendar: {
13
+ title: 'Odabir datuma',
14
+ confirm: 'Potvrdi',
15
+ start: 'početak',
16
+ end: 'kraj',
17
+ today: 'danas',
18
+ markItems: ['Pon', 'Uto', 'Sri', 'Čet', 'Pet', 'Sub', 'Ned'],
19
+ yearAndMonth: '${year}/${month}'
20
+ },
21
+ Cascader: {
22
+ placeholder: 'Odabir'
23
+ },
24
+ Dialog: {
25
+ ok: 'U redu'
26
+ },
27
+ DatePicker: {
28
+ tillNow: 'Do sada'
29
+ },
30
+ ErrorBlock: {
31
+ default: {
32
+ title: 'Ups, nešto je pošlo po zlu',
33
+ description: 'Molimo pričekajte trenutak i pokušajte ponovo'
34
+ },
35
+ busy: {
36
+ title: 'Ups, nije učitano',
37
+ description: 'Pokušajte osvježiti stranicu'
38
+ },
39
+ disconnected: {
40
+ title: 'Mreža je zauzeta',
41
+ description: 'Pokušajte osvježiti stranicu'
42
+ },
43
+ empty: {
44
+ title: 'Hmm, nismo to pronašli...',
45
+ description: 'Želite li pokušati novu pretragu?'
46
+ }
47
+ },
48
+ Form: {
49
+ required: 'Obavezno',
50
+ optional: 'Opcionalno',
51
+ defaultValidateMessages: {
52
+ default: 'Greška pri validaciji za polje ${label}',
53
+ required: 'Molimo unesite ${label}',
54
+ enum: '${label} mora biti jedno od [${enum}]',
55
+ whitespace: '${label} ne može biti prazno',
56
+ date: {
57
+ format: '${label} format datuma nije važeći',
58
+ parse: '${label} ne može biti pretvoren u datum',
59
+ invalid: '${label} je nevažeći datum'
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} mora imati ${len} znakova',
78
+ min: '${label} mora imati najmanje ${min} znakova',
79
+ max: '${label} može imati najviše ${max} znakova',
80
+ range: '${label} mora biti između ${min}-${max} znakova'
81
+ },
82
+ number: {
83
+ len: '${label} mora biti jednak ${len}',
84
+ min: '${label} mora biti najmanje ${min}',
85
+ max: '${label} mora biti najviše ${max}',
86
+ range: '${label} mora biti između ${min}-${max}'
87
+ },
88
+ array: {
89
+ len: 'Mora biti ${len} ${label}',
90
+ min: 'Najmanje ${min} ${label}',
91
+ max: 'Najviše ${max} ${label}',
92
+ range: 'Količina ${label} mora biti između ${min}-${max}'
93
+ },
94
+ pattern: {
95
+ mismatch: '${label} ne odgovara uzorku ${pattern}'
96
+ }
97
+ }
98
+ },
99
+ ImageUploader: {
100
+ uploading: 'Učitavanje...',
101
+ upload: 'Učitaj'
102
+ },
103
+ InfiniteScroll: {
104
+ noMore: 'Nema više',
105
+ failedToLoad: 'Učitavanje nije uspjelo',
106
+ retry: 'Pokušaj ponovno'
107
+ },
108
+ Input: {
109
+ clear: 'očisti'
110
+ },
111
+ Mask: {
112
+ name: 'Maska'
113
+ },
114
+ Modal: {
115
+ ok: 'U redu'
116
+ },
117
+ PasscodeInput: {
118
+ name: 'Unos lozinke'
119
+ },
120
+ PullToRefresh: {
121
+ pulling: 'Povucite dolje za osvježavanje',
122
+ canRelease: 'Otpustite za trenutnu obnovu',
123
+ complete: 'Osvježavanje uspješno'
124
+ },
125
+ SearchBar: {
126
+ name: 'Traka za pretraživanje'
127
+ },
128
+ Slider: {
129
+ name: 'Klizač'
130
+ },
131
+ Stepper: {
132
+ decrease: 'smanji',
133
+ increase: 'povećaj'
134
+ },
135
+ Switch: {
136
+ name: 'Prekidač'
137
+ },
138
+ Selector: {
139
+ name: 'Selektor'
140
+ }
141
+ });
142
+ export default hrHR;
@@ -9,8 +9,8 @@ const kkKZ = mergeLocale(base, {
9
9
  loading: 'Жүктелуде'
10
10
  },
11
11
  Calendar: {
12
- markItems: ['Дү', 'Се', 'Сә', 'Бе', 'Жұ', 'Се', 'Же'],
13
- yearAndMonth: '${year}жыл${month}-ші ай'
12
+ markItems: ['Дс', 'Сс', 'Ср', 'Бс', 'Жм', 'Сб', 'Жс'],
13
+ yearAndMonth: '${year} жыл ${month} ай'
14
14
  },
15
15
  Cascader: {
16
16
  placeholder: 'Таңдаңыз'
@@ -29,11 +29,11 @@ const kkKZ = mergeLocale(base, {
29
29
  },
30
30
  disconnected: {
31
31
  title: 'Желі бос емес',
32
- description: 'Қалпына кетіру үшін түртіңіз'
32
+ description: 'Бетті жаңартып көріңіз'
33
33
  },
34
34
  empty: {
35
35
  title: 'Сізге қажетті нәрсе табылмады',
36
- description: 'Басқа нәрсені іздеп көріңіз'
36
+ description: 'Басқаша іздеп көріңіз'
37
37
  }
38
38
  },
39
39
  Form: {
@@ -103,8 +103,8 @@ const kkKZ = mergeLocale(base, {
103
103
  ok: 'Мен түсіндім'
104
104
  },
105
105
  PullToRefresh: {
106
- pulling: 'Төмен тартып жаңарту',
107
- canRelease: 'Босатып бірден жаңарту',
106
+ pulling: 'Жаңарту үшін тартыңыз',
107
+ canRelease: 'Жаңарту үшін жіберіңіз',
108
108
  complete: 'Сәтті жаңартылды'
109
109
  },
110
110
  Switch: {
@@ -0,0 +1,139 @@
1
+ declare const srRS: {
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 srRS;
@@ -0,0 +1,142 @@
1
+ import { mergeLocale } from '../utils/merge-locale';
2
+ import { base } from './base';
3
+ const typeTemplate = '${label} није ваљан ${type}';
4
+ const srRS = mergeLocale(base, {
5
+ locale: 'sr',
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 srRS;
@@ -8,6 +8,7 @@ declare type TargetElement = ReactElement<ImperativeProps>;
8
8
  export declare type ImperativeHandler = {
9
9
  close: () => void;
10
10
  replace: (element: TargetElement) => void;
11
+ isRendered?: () => boolean;
11
12
  };
12
13
  export declare function renderImperatively(element: TargetElement): ImperativeHandler;
13
14
  export {};
@@ -47,17 +47,20 @@ export function renderImperatively(element) {
47
47
  }));
48
48
  return {
49
49
  close: () => __awaiter(this, void 0, void 0, function* () {
50
- var _a;
50
+ var _a, _b, _c;
51
51
  if (!wrapperRef.current) {
52
52
  // it means the wrapper is not mounted yet, call `unmount` directly
53
53
  unmount();
54
+ // call `afterClose` to make sure the callback is called
55
+ (_b = (_a = element.props).afterClose) === null || _b === void 0 ? void 0 : _b.call(_a);
54
56
  } else {
55
- (_a = wrapperRef.current) === null || _a === void 0 ? void 0 : _a.close();
57
+ (_c = wrapperRef.current) === null || _c === void 0 ? void 0 : _c.close();
56
58
  }
57
59
  }),
58
60
  replace: element => {
59
61
  var _a;
60
62
  (_a = wrapperRef.current) === null || _a === void 0 ? void 0 : _a.replace(element);
61
- }
63
+ },
64
+ isRendered: () => !!wrapperRef.current
62
65
  };
63
66
  }
package/2x/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antd-mobile",
3
- "version": "5.37.1",
3
+ "version": "5.38.0",
4
4
  "homepage": "https://github.com/ant-design/ant-design-mobile#readme",
5
5
  "bugs": {
6
6
  "url": "https://github.com/ant-design/ant-design-mobile/issues"
@@ -42,7 +42,8 @@
42
42
  "dayjs": "^1.11.7",
43
43
  "deepmerge": "^4.3.1",
44
44
  "nano-memoize": "^3.0.16",
45
- "rc-field-form": "~1.27.4",
45
+ "rc-field-form": "^1.34.2",
46
+ "rc-segmented": "~2.4.1",
46
47
  "rc-util": "^5.38.1",
47
48
  "react-fast-compare": "^3.2.2",
48
49
  "react-is": "^18.2.0",
package/README.md CHANGED
@@ -21,7 +21,7 @@
21
21
  </div>
22
22
 
23
23
  ```bash
24
- $ npm install --save antd-mobile
24
+ $ npm install antd-mobile
25
25
  # or
26
26
  $ yarn add antd-mobile
27
27
  # or
@@ -39,7 +39,7 @@ You can also play with antd-mobile just in browser with [Codesandbox](https://co
39
39
 
40
40
  If you found bugs or would like to request some new features, please consider opening an [issue](https://github.com/ant-design/ant-design-mobile/issues/new).
41
41
 
42
- If you have some question about how to use ant-mobile, you can start a [discussion thread](https://github.com/ant-design/ant-design-mobile/discussions).
42
+ If you have some questions about how to use ant-mobile, you can start a [discussion thread](https://github.com/ant-design/ant-design-mobile/discussions).
43
43
 
44
44
  ---
45
45