antd-mobile 5.15.1 → 5.16.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 (232) hide show
  1. package/2x/README.md +30 -16
  2. package/2x/bundle/antd-mobile.cjs.js +322 -193
  3. package/2x/bundle/antd-mobile.es.js +323 -194
  4. package/2x/bundle/style.css +66 -13
  5. package/2x/cjs/components/action-sheet/action-sheet.d.ts +2 -4
  6. package/2x/cjs/components/action-sheet/action-sheet.js +6 -2
  7. package/2x/cjs/components/cascader/cascader.d.ts +29 -4
  8. package/2x/cjs/components/cascader/cascader.js +41 -19
  9. package/2x/cjs/components/cascader/index.d.ts +21 -2
  10. package/2x/cjs/components/center-popup/center-popup.css +11 -0
  11. package/2x/cjs/components/center-popup/center-popup.d.ts +3 -20
  12. package/2x/cjs/components/center-popup/center-popup.js +24 -13
  13. package/2x/cjs/components/date-picker/date-picker.d.ts +2 -2
  14. package/2x/cjs/components/date-picker/date-picker.js +3 -1
  15. package/2x/cjs/components/date-picker/index.d.ts +1 -1
  16. package/2x/cjs/components/input/input.css +4 -0
  17. package/2x/cjs/components/input/input.d.ts +7 -4
  18. package/2x/cjs/components/input/input.js +5 -1
  19. package/2x/cjs/components/list/index.d.ts +10 -2
  20. package/2x/cjs/components/list/list.d.ts +13 -2
  21. package/2x/cjs/components/list/list.js +16 -6
  22. package/2x/cjs/components/modal/modal-action-button.d.ts +2 -2
  23. package/2x/cjs/components/modal/modal.css +0 -9
  24. package/2x/cjs/components/modal/modal.js +4 -11
  25. package/2x/cjs/components/number-keyboard/number-keyboard.d.ts +1 -5
  26. package/2x/cjs/components/number-keyboard/number-keyboard.js +13 -7
  27. package/2x/cjs/components/picker/index.d.ts +2 -6
  28. package/2x/cjs/components/picker/picker.d.ts +2 -6
  29. package/2x/cjs/components/picker/picker.js +8 -7
  30. package/2x/cjs/components/picker-view/picker-view.css +1 -0
  31. package/2x/cjs/components/picker-view/wheel.js +10 -8
  32. package/2x/cjs/components/popup/popup-base-props.d.ts +35 -0
  33. package/2x/cjs/components/popup/popup-base-props.js +18 -0
  34. package/2x/cjs/components/popup/popup.css +32 -0
  35. package/2x/cjs/components/popup/popup.d.ts +3 -19
  36. package/2x/cjs/components/popup/popup.js +43 -18
  37. package/2x/cjs/components/progress-bar/progress-bar.css +17 -3
  38. package/2x/cjs/components/progress-bar/progress-bar.d.ts +4 -2
  39. package/2x/cjs/components/progress-bar/progress-bar.js +27 -5
  40. package/2x/cjs/components/slider/slider.js +2 -1
  41. package/2x/cjs/components/slider/thumb.d.ts +2 -1
  42. package/2x/cjs/components/slider/thumb.js +13 -1
  43. package/2x/cjs/components/stepper/stepper.js +14 -3
  44. package/2x/cjs/components/steps/steps.css +1 -1
  45. package/2x/cjs/locales/base.d.ts +7 -0
  46. package/2x/cjs/locales/base.js +7 -0
  47. package/2x/cjs/locales/en-US.d.ts +7 -0
  48. package/2x/cjs/locales/es-ES.d.ts +7 -0
  49. package/2x/cjs/locales/fa-IR.d.ts +7 -0
  50. package/2x/cjs/locales/fr-FR.d.ts +7 -0
  51. package/2x/cjs/locales/id-ID.d.ts +118 -0
  52. package/2x/cjs/locales/id-ID.js +121 -0
  53. package/2x/cjs/locales/kk-KZ.d.ts +118 -0
  54. package/2x/cjs/locales/kk-KZ.js +124 -0
  55. package/2x/cjs/locales/ko-KR.d.ts +7 -0
  56. package/2x/cjs/locales/zh-CN.d.ts +7 -0
  57. package/2x/cjs/locales/zh-CN.js +7 -0
  58. package/2x/cjs/locales/zh-HK.d.ts +7 -0
  59. package/2x/cjs/locales/zh-TW.d.ts +7 -0
  60. package/2x/es/components/action-sheet/action-sheet.d.ts +2 -4
  61. package/2x/es/components/action-sheet/action-sheet.js +6 -2
  62. package/2x/es/components/cascader/cascader.d.ts +29 -4
  63. package/2x/es/components/cascader/cascader.js +42 -18
  64. package/2x/es/components/cascader/index.d.ts +21 -2
  65. package/2x/es/components/center-popup/center-popup.css +11 -0
  66. package/2x/es/components/center-popup/center-popup.d.ts +3 -20
  67. package/2x/es/components/center-popup/center-popup.js +22 -13
  68. package/2x/es/components/date-picker/date-picker.d.ts +2 -2
  69. package/2x/es/components/date-picker/date-picker.js +3 -1
  70. package/2x/es/components/date-picker/index.d.ts +1 -1
  71. package/2x/es/components/input/input.css +4 -0
  72. package/2x/es/components/input/input.d.ts +7 -4
  73. package/2x/es/components/input/input.js +5 -1
  74. package/2x/es/components/list/index.d.ts +10 -2
  75. package/2x/es/components/list/list.d.ts +13 -2
  76. package/2x/es/components/list/list.js +12 -4
  77. package/2x/es/components/modal/modal-action-button.d.ts +2 -2
  78. package/2x/es/components/modal/modal.css +0 -9
  79. package/2x/es/components/modal/modal.js +4 -10
  80. package/2x/es/components/number-keyboard/number-keyboard.d.ts +1 -5
  81. package/2x/es/components/number-keyboard/number-keyboard.js +13 -7
  82. package/2x/es/components/picker/index.d.ts +2 -6
  83. package/2x/es/components/picker/picker.d.ts +2 -6
  84. package/2x/es/components/picker/picker.js +8 -6
  85. package/2x/es/components/picker-view/picker-view.css +1 -0
  86. package/2x/es/components/picker-view/wheel.js +10 -8
  87. package/2x/es/components/popup/popup-base-props.d.ts +35 -0
  88. package/2x/es/components/popup/popup-base-props.js +11 -0
  89. package/2x/es/components/popup/popup.css +32 -0
  90. package/2x/es/components/popup/popup.d.ts +3 -19
  91. package/2x/es/components/popup/popup.js +41 -19
  92. package/2x/es/components/progress-bar/progress-bar.css +17 -3
  93. package/2x/es/components/progress-bar/progress-bar.d.ts +4 -2
  94. package/2x/es/components/progress-bar/progress-bar.js +25 -5
  95. package/2x/es/components/slider/slider.js +2 -1
  96. package/2x/es/components/slider/thumb.d.ts +2 -1
  97. package/2x/es/components/slider/thumb.js +12 -1
  98. package/2x/es/components/stepper/stepper.js +13 -3
  99. package/2x/es/components/steps/steps.css +1 -1
  100. package/2x/es/locales/base.d.ts +7 -0
  101. package/2x/es/locales/base.js +7 -0
  102. package/2x/es/locales/en-US.d.ts +7 -0
  103. package/2x/es/locales/es-ES.d.ts +7 -0
  104. package/2x/es/locales/fa-IR.d.ts +7 -0
  105. package/2x/es/locales/fr-FR.d.ts +7 -0
  106. package/2x/es/locales/id-ID.d.ts +118 -0
  107. package/2x/es/locales/id-ID.js +111 -0
  108. package/2x/es/locales/kk-KZ.d.ts +118 -0
  109. package/2x/es/locales/kk-KZ.js +114 -0
  110. package/2x/es/locales/ko-KR.d.ts +7 -0
  111. package/2x/es/locales/zh-CN.d.ts +7 -0
  112. package/2x/es/locales/zh-CN.js +7 -0
  113. package/2x/es/locales/zh-HK.d.ts +7 -0
  114. package/2x/es/locales/zh-TW.d.ts +7 -0
  115. package/2x/package.json +1 -1
  116. package/2x/umd/antd-mobile.js +1 -1
  117. package/README.md +30 -16
  118. package/bundle/antd-mobile.cjs.js +322 -193
  119. package/bundle/antd-mobile.es.js +323 -194
  120. package/bundle/style.css +56 -12
  121. package/cjs/components/action-sheet/action-sheet.d.ts +2 -4
  122. package/cjs/components/action-sheet/action-sheet.js +6 -2
  123. package/cjs/components/cascader/cascader.d.ts +29 -4
  124. package/cjs/components/cascader/cascader.js +41 -19
  125. package/cjs/components/cascader/index.d.ts +21 -2
  126. package/cjs/components/center-popup/center-popup.css +10 -0
  127. package/cjs/components/center-popup/center-popup.d.ts +3 -20
  128. package/cjs/components/center-popup/center-popup.js +24 -13
  129. package/cjs/components/date-picker/date-picker.d.ts +2 -2
  130. package/cjs/components/date-picker/date-picker.js +3 -1
  131. package/cjs/components/date-picker/index.d.ts +1 -1
  132. package/cjs/components/input/input.css +3 -0
  133. package/cjs/components/input/input.d.ts +7 -4
  134. package/cjs/components/input/input.js +5 -1
  135. package/cjs/components/list/index.d.ts +10 -2
  136. package/cjs/components/list/list.d.ts +13 -2
  137. package/cjs/components/list/list.js +16 -6
  138. package/cjs/components/modal/modal-action-button.d.ts +2 -2
  139. package/cjs/components/modal/modal.css +0 -8
  140. package/cjs/components/modal/modal.js +4 -11
  141. package/cjs/components/number-keyboard/number-keyboard.d.ts +1 -5
  142. package/cjs/components/number-keyboard/number-keyboard.js +13 -7
  143. package/cjs/components/picker/index.d.ts +2 -6
  144. package/cjs/components/picker/picker.d.ts +2 -6
  145. package/cjs/components/picker/picker.js +8 -7
  146. package/cjs/components/picker-view/picker-view.css +1 -0
  147. package/cjs/components/picker-view/wheel.js +10 -8
  148. package/cjs/components/popup/popup-base-props.d.ts +35 -0
  149. package/cjs/components/popup/popup-base-props.js +18 -0
  150. package/cjs/components/popup/popup.css +26 -0
  151. package/cjs/components/popup/popup.d.ts +3 -19
  152. package/cjs/components/popup/popup.js +43 -18
  153. package/cjs/components/progress-bar/progress-bar.css +15 -3
  154. package/cjs/components/progress-bar/progress-bar.d.ts +4 -2
  155. package/cjs/components/progress-bar/progress-bar.js +27 -5
  156. package/cjs/components/slider/slider.js +2 -1
  157. package/cjs/components/slider/thumb.d.ts +2 -1
  158. package/cjs/components/slider/thumb.js +13 -1
  159. package/cjs/components/stepper/stepper.js +14 -3
  160. package/cjs/components/steps/steps.css +1 -1
  161. package/cjs/locales/base.d.ts +7 -0
  162. package/cjs/locales/base.js +7 -0
  163. package/cjs/locales/en-US.d.ts +7 -0
  164. package/cjs/locales/es-ES.d.ts +7 -0
  165. package/cjs/locales/fa-IR.d.ts +7 -0
  166. package/cjs/locales/fr-FR.d.ts +7 -0
  167. package/cjs/locales/id-ID.d.ts +118 -0
  168. package/cjs/locales/id-ID.js +121 -0
  169. package/cjs/locales/kk-KZ.d.ts +118 -0
  170. package/cjs/locales/kk-KZ.js +124 -0
  171. package/cjs/locales/ko-KR.d.ts +7 -0
  172. package/cjs/locales/zh-CN.d.ts +7 -0
  173. package/cjs/locales/zh-CN.js +7 -0
  174. package/cjs/locales/zh-HK.d.ts +7 -0
  175. package/cjs/locales/zh-TW.d.ts +7 -0
  176. package/es/components/action-sheet/action-sheet.d.ts +2 -4
  177. package/es/components/action-sheet/action-sheet.js +6 -2
  178. package/es/components/cascader/cascader.d.ts +29 -4
  179. package/es/components/cascader/cascader.js +42 -18
  180. package/es/components/cascader/index.d.ts +21 -2
  181. package/es/components/center-popup/center-popup.css +10 -0
  182. package/es/components/center-popup/center-popup.d.ts +3 -20
  183. package/es/components/center-popup/center-popup.js +22 -13
  184. package/es/components/date-picker/date-picker.d.ts +2 -2
  185. package/es/components/date-picker/date-picker.js +3 -1
  186. package/es/components/date-picker/index.d.ts +1 -1
  187. package/es/components/input/input.css +3 -0
  188. package/es/components/input/input.d.ts +7 -4
  189. package/es/components/input/input.js +5 -1
  190. package/es/components/list/index.d.ts +10 -2
  191. package/es/components/list/list.d.ts +13 -2
  192. package/es/components/list/list.js +12 -4
  193. package/es/components/modal/modal-action-button.d.ts +2 -2
  194. package/es/components/modal/modal.css +0 -8
  195. package/es/components/modal/modal.js +4 -10
  196. package/es/components/number-keyboard/number-keyboard.d.ts +1 -5
  197. package/es/components/number-keyboard/number-keyboard.js +13 -7
  198. package/es/components/picker/index.d.ts +2 -6
  199. package/es/components/picker/picker.d.ts +2 -6
  200. package/es/components/picker/picker.js +8 -6
  201. package/es/components/picker-view/picker-view.css +1 -0
  202. package/es/components/picker-view/wheel.js +10 -8
  203. package/es/components/popup/popup-base-props.d.ts +35 -0
  204. package/es/components/popup/popup-base-props.js +11 -0
  205. package/es/components/popup/popup.css +26 -0
  206. package/es/components/popup/popup.d.ts +3 -19
  207. package/es/components/popup/popup.js +41 -19
  208. package/es/components/progress-bar/progress-bar.css +15 -3
  209. package/es/components/progress-bar/progress-bar.d.ts +4 -2
  210. package/es/components/progress-bar/progress-bar.js +25 -5
  211. package/es/components/slider/slider.js +2 -1
  212. package/es/components/slider/thumb.d.ts +2 -1
  213. package/es/components/slider/thumb.js +12 -1
  214. package/es/components/stepper/stepper.js +13 -3
  215. package/es/components/steps/steps.css +1 -1
  216. package/es/locales/base.d.ts +7 -0
  217. package/es/locales/base.js +7 -0
  218. package/es/locales/en-US.d.ts +7 -0
  219. package/es/locales/es-ES.d.ts +7 -0
  220. package/es/locales/fa-IR.d.ts +7 -0
  221. package/es/locales/fr-FR.d.ts +7 -0
  222. package/es/locales/id-ID.d.ts +118 -0
  223. package/es/locales/id-ID.js +111 -0
  224. package/es/locales/kk-KZ.d.ts +118 -0
  225. package/es/locales/kk-KZ.js +114 -0
  226. package/es/locales/ko-KR.d.ts +7 -0
  227. package/es/locales/zh-CN.d.ts +7 -0
  228. package/es/locales/zh-CN.js +7 -0
  229. package/es/locales/zh-HK.d.ts +7 -0
  230. package/es/locales/zh-TW.d.ts +7 -0
  231. package/package.json +1 -1
  232. package/umd/antd-mobile.js +1 -1
@@ -11,25 +11,47 @@ var _nativeProps = require("../../utils/native-props");
11
11
 
12
12
  var _withDefaultProps = require("../../utils/with-default-props");
13
13
 
14
+ var _classnames = _interopRequireDefault(require("classnames"));
15
+
16
+ var _isNodeWithContent = require("../../utils/is-node-with-content");
17
+
14
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
19
 
16
20
  const classPrefix = `adm-progress-bar`;
21
+ const defaultProps = {
22
+ percent: 0,
23
+ rounded: true,
24
+ text: false
25
+ };
17
26
 
18
27
  const ProgressBar = p => {
19
- const props = (0, _withDefaultProps.mergeProps)({
20
- percent: 0
21
- }, p);
28
+ const props = (0, _withDefaultProps.mergeProps)(defaultProps, p);
22
29
  const fillStyle = {
23
30
  width: `${props.percent}%`
24
31
  };
32
+
33
+ const textElement = function () {
34
+ if (props.text === true) {
35
+ return `${props.percent}%`;
36
+ }
37
+
38
+ if (typeof props.text === 'function') {
39
+ return props.text(props.percent);
40
+ }
41
+
42
+ return props.text;
43
+ }();
44
+
25
45
  return (0, _nativeProps.withNativeProps)(props, _react.default.createElement("div", {
26
- className: classPrefix
46
+ className: (0, _classnames.default)(classPrefix, props.rounded && `${classPrefix}-rounded`)
27
47
  }, _react.default.createElement("div", {
28
48
  className: `${classPrefix}-trail`
29
49
  }, _react.default.createElement("div", {
30
50
  className: `${classPrefix}-fill`,
31
51
  style: fillStyle
32
- }))));
52
+ })), (0, _isNodeWithContent.isNodeWithContent)(textElement) && _react.default.createElement("div", {
53
+ className: `${classPrefix}-text`
54
+ }, textElement)));
33
55
  };
34
56
 
35
57
  exports.ProgressBar = ProgressBar;
@@ -178,7 +178,8 @@ const Slider = p => {
178
178
  dragLockRef.current -= 1;
179
179
  }, 100);
180
180
  }
181
- }
181
+ },
182
+ "aria-label": props['aria-label']
182
183
  });
183
184
  };
184
185
 
@@ -1,4 +1,5 @@
1
1
  import React, { FC, RefObject, ReactNode } from 'react';
2
+ import { NativeProps } from '../../utils/native-props';
2
3
  declare type ThumbProps = {
3
4
  value: number;
4
5
  min: number;
@@ -8,6 +9,6 @@ declare type ThumbProps = {
8
9
  trackRef: RefObject<HTMLDivElement>;
9
10
  icon?: React.ReactNode;
10
11
  popover: boolean | ((value: number) => ReactNode);
11
- };
12
+ } & NativeProps;
12
13
  declare const Thumb: FC<ThumbProps>;
13
14
  export default Thumb;
@@ -13,6 +13,8 @@ var _thumbIcon = require("./thumb-icon");
13
13
 
14
14
  var _popover = require("../popover/popover");
15
15
 
16
+ var _configProvider = require("../config-provider");
17
+
16
18
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
19
 
18
20
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -29,6 +31,9 @@ const Thumb = props => {
29
31
  icon
30
32
  } = props;
31
33
  const prevValue = (0, _react.useRef)(value);
34
+ const {
35
+ locale
36
+ } = (0, _configProvider.useConfig)();
32
37
 
33
38
  const currentPosition = () => {
34
39
  return {
@@ -70,7 +75,14 @@ const Thumb = props => {
70
75
  return _react.default.createElement("div", Object.assign({
71
76
  className: `${classPrefix}-thumb-container`,
72
77
  style: currentPosition()
73
- }, bind()), renderPopoverContent ? _react.default.createElement(_popover.Popover, {
78
+ }, bind(), {
79
+ role: 'slider',
80
+ "aria-label": props['aria-label'] || locale.Slider.name,
81
+ "aria-valuemax": max,
82
+ "aria-valuemin": min,
83
+ "aria-valuenow": value,
84
+ "aria-disabled": disabled
85
+ }), renderPopoverContent ? _react.default.createElement(_popover.Popover, {
74
86
  content: renderPopoverContent(value),
75
87
  placement: 'top',
76
88
  visible: dragging,
@@ -25,6 +25,8 @@ var _button = _interopRequireDefault(require("../button"));
25
25
 
26
26
  var _big = _interopRequireDefault(require("big.js"));
27
27
 
28
+ var _configProvider = require("../config-provider");
29
+
28
30
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
29
31
 
30
32
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -48,6 +50,9 @@ const Stepper = p => {
48
50
  min,
49
51
  inputReadOnly
50
52
  } = props;
53
+ const {
54
+ locale
55
+ } = (0, _configProvider.useConfig)();
51
56
  const [value, setValue] = (0, _usePropsValue.usePropsValue)(props);
52
57
  const [inputValue, setInputValue] = (0, _react.useState)(() => convertValueToText(value, props.digits));
53
58
 
@@ -129,7 +134,8 @@ const Stepper = p => {
129
134
  disabled: minusDisabled(),
130
135
  fill: 'none',
131
136
  shape: 'rectangular',
132
- color: 'primary'
137
+ color: 'primary',
138
+ "aria-label": locale.Stepper.decrease
133
139
  }, _react.default.createElement(_antdMobileIcons.MinusOutline, null)), _react.default.createElement("div", {
134
140
  className: `${classPrefix}-middle`
135
141
  }, _react.default.createElement(_input.default, {
@@ -151,14 +157,19 @@ const Stepper = p => {
151
157
  setHasFocus(false);
152
158
  (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e);
153
159
  },
154
- readOnly: inputReadOnly
160
+ readOnly: inputReadOnly,
161
+ role: 'spinbutton',
162
+ "aria-valuenow": Number(inputValue),
163
+ "aria-valuemax": max,
164
+ "aria-valuemin": min
155
165
  })), _react.default.createElement(_button.default, {
156
166
  className: `${classPrefix}-plus`,
157
167
  onClick: handlePlus,
158
168
  disabled: plusDisabled(),
159
169
  fill: 'none',
160
170
  shape: 'rectangular',
161
- color: 'primary'
171
+ color: 'primary',
172
+ "aria-label": locale.Stepper.increase
162
173
  }, _react.default.createElement(_antdMobileIcons.AddOutline, null))));
163
174
  };
164
175
 
@@ -17,7 +17,7 @@
17
17
  .adm-step .adm-step-indicator .adm-step-icon-container {
18
18
  position: absolute;
19
19
  z-index: 1;
20
- background: var(--adm-color-white);
20
+ background: var(--adm-color-background);
21
21
  color: var(--icon-color);
22
22
  }
23
23
 
@@ -104,6 +104,13 @@ export declare const base: {
104
104
  canRelease: string;
105
105
  complete: string;
106
106
  };
107
+ Slider: {
108
+ name: string;
109
+ };
110
+ Stepper: {
111
+ decrease: string;
112
+ increase: string;
113
+ };
107
114
  Switch: {
108
115
  name: string;
109
116
  };
@@ -111,6 +111,13 @@ const base = {
111
111
  canRelease: 'Release to refresh immediately',
112
112
  complete: 'Refresh successful'
113
113
  },
114
+ Slider: {
115
+ name: 'Slider'
116
+ },
117
+ Stepper: {
118
+ decrease: 'decrease',
119
+ increase: 'increase'
120
+ },
114
121
  Switch: {
115
122
  name: 'Switch'
116
123
  }
@@ -104,6 +104,13 @@ declare const enUS: {
104
104
  canRelease: string;
105
105
  complete: string;
106
106
  };
107
+ Slider: {
108
+ name: string;
109
+ };
110
+ Stepper: {
111
+ decrease: string;
112
+ increase: string;
113
+ };
107
114
  Switch: {
108
115
  name: string;
109
116
  };
@@ -104,6 +104,13 @@ declare const esES: {
104
104
  canRelease: string;
105
105
  complete: string;
106
106
  };
107
+ Slider: {
108
+ name: string;
109
+ };
110
+ Stepper: {
111
+ decrease: string;
112
+ increase: string;
113
+ };
107
114
  Switch: {
108
115
  name: string;
109
116
  };
@@ -104,6 +104,13 @@ declare const faIR: {
104
104
  canRelease: string;
105
105
  complete: string;
106
106
  };
107
+ Slider: {
108
+ name: string;
109
+ };
110
+ Stepper: {
111
+ decrease: string;
112
+ increase: string;
113
+ };
107
114
  Switch: {
108
115
  name: string;
109
116
  };
@@ -104,6 +104,13 @@ declare const frFR: {
104
104
  canRelease: string;
105
105
  complete: string;
106
106
  };
107
+ Slider: {
108
+ name: string;
109
+ };
110
+ Stepper: {
111
+ decrease: string;
112
+ increase: string;
113
+ };
107
114
  Switch: {
108
115
  name: string;
109
116
  };
@@ -0,0 +1,118 @@
1
+ declare const idID: {
2
+ locale: string;
3
+ common: {
4
+ confirm: string;
5
+ cancel: string;
6
+ loading: string;
7
+ };
8
+ Calendar: {
9
+ markItems: string[];
10
+ renderYearAndMonth: (year: number, month: number) => string;
11
+ };
12
+ Cascader: {
13
+ placeholder: string;
14
+ };
15
+ Dialog: {
16
+ ok: string;
17
+ };
18
+ ErrorBlock: {
19
+ default: {
20
+ title: string;
21
+ description: string;
22
+ };
23
+ busy: {
24
+ title: string;
25
+ description: string;
26
+ };
27
+ disconnected: {
28
+ title: string;
29
+ description: string;
30
+ };
31
+ empty: {
32
+ title: string;
33
+ description: string;
34
+ };
35
+ };
36
+ Form: {
37
+ required: string;
38
+ optional: string;
39
+ defaultValidateMessages: {
40
+ default: string;
41
+ required: string;
42
+ enum: string;
43
+ whitespace: string;
44
+ date: {
45
+ format: string;
46
+ parse: string;
47
+ invalid: string;
48
+ };
49
+ types: {
50
+ string: string;
51
+ method: string;
52
+ array: string;
53
+ object: string;
54
+ number: string;
55
+ date: string;
56
+ boolean: string;
57
+ integer: string;
58
+ float: string;
59
+ regexp: string;
60
+ email: string;
61
+ url: string;
62
+ hex: string;
63
+ };
64
+ string: {
65
+ len: string;
66
+ min: string;
67
+ max: string;
68
+ range: string;
69
+ };
70
+ number: {
71
+ len: string;
72
+ min: string;
73
+ max: string;
74
+ range: string;
75
+ };
76
+ array: {
77
+ len: string;
78
+ min: string;
79
+ max: string;
80
+ range: string;
81
+ };
82
+ pattern: {
83
+ mismatch: string;
84
+ };
85
+ };
86
+ };
87
+ ImageUploader: {
88
+ uploading: string;
89
+ upload: string;
90
+ };
91
+ InfiniteScroll: {
92
+ noMore: string;
93
+ failedToLoad: string;
94
+ retry: string;
95
+ };
96
+ Mask: {
97
+ name: string;
98
+ };
99
+ Modal: {
100
+ ok: string;
101
+ };
102
+ PullToRefresh: {
103
+ pulling: string;
104
+ canRelease: string;
105
+ complete: string;
106
+ };
107
+ Slider: {
108
+ name: string;
109
+ };
110
+ Stepper: {
111
+ decrease: string;
112
+ increase: string;
113
+ };
114
+ Switch: {
115
+ name: string;
116
+ };
117
+ };
118
+ export default idID;
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _mergeLocale = require("../utils/merge-locale");
9
+
10
+ var _base = require("./base");
11
+
12
+ const typeTemplate = '${label} bukan ${type} yang valid';
13
+ const idID = (0, _mergeLocale.mergeLocale)(_base.base, {
14
+ locale: 'id-ID',
15
+ common: {
16
+ confirm: 'Yakin',
17
+ cancel: 'Batal ',
18
+ loading: 'memuat'
19
+ },
20
+ Calendar: {
21
+ markItems: ['Senin', 'Selasa', 'Rabu', 'Kamis', 'Jumat', 'Sabtu', 'Minggu'],
22
+ renderYearAndMonth: (year, month) => `${year} Tahun ${month} Bulan`
23
+ },
24
+ Cascader: {
25
+ placeholder: 'Silahkan Pilih'
26
+ },
27
+ Dialog: {
28
+ ok: 'Saya mendapatkannya'
29
+ },
30
+ ErrorBlock: {
31
+ default: {
32
+ title: 'Halaman mengalami beberapa permasalahan kecil',
33
+ description: 'Coba lagi nanti'
34
+ },
35
+ busy: {
36
+ title: 'kepadatan diawal',
37
+ description: 'Coba untuk menyegarkan'
38
+ },
39
+ disconnected: {
40
+ title: 'jaringan sedikit sibuk',
41
+ description: 'Gerakkan jari Anda untuk membantu memperbaiki'
42
+ },
43
+ empty: {
44
+ title: 'Itu tidak menemukan apa yang Anda butuhkan',
45
+ description: 'Silahkan cari yang lain'
46
+ }
47
+ },
48
+ Form: {
49
+ required: 'Diperlukan',
50
+ optional: 'opsional untuk diisi',
51
+ defaultValidateMessages: {
52
+ default: 'Kesalahan validasi bidang ${label}',
53
+ required: 'Harap masukkan ${label}',
54
+ enum: '${label} harus salah satu dari [${enum}]',
55
+ whitespace: '${label} tidak boleh berupa karakter kosong',
56
+ date: {
57
+ format: 'Format tanggal ${label} tidak valid',
58
+ parse: '${label} tidak dapat dikonversi ke tanggal',
59
+ invalid: '${label} adalah tanggal yang tidak valid'
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} harus berupa ${len} karakter',
78
+ min: '${label} Minimal ${min} karakter',
79
+ max: '${label}Maksimum ${max} karakter',
80
+ range: '${label} harus antara ${min}-${max} karakter'
81
+ },
82
+ number: {
83
+ len: '${label} harus sama dengan ${len}',
84
+ min: 'Nilai minimum ${label} adalah ${min}',
85
+ max: '${label} memiliki nilai maksimum ${max}',
86
+ range: '${label} harus antara ${min}-${max}'
87
+ },
88
+ array: {
89
+ len: 'Harus ${len} ${label}',
90
+ min: 'Minimal ${min} ${label}',
91
+ max: 'Hingga ${max} ${label}',
92
+ range: 'Jumlah ${label} harus antara ${min}-${max}'
93
+ },
94
+ pattern: {
95
+ mismatch: '${label} tidak cocok dengan pola ${pattern}'
96
+ }
97
+ }
98
+ },
99
+ ImageUploader: {
100
+ uploading: 'mengunggah...',
101
+ upload: 'diunggah'
102
+ },
103
+ InfiniteScroll: {
104
+ noMore: 'tidak ada lagi',
105
+ failedToLoad: 'Gagal memuat',
106
+ retry: 'memuat ulang'
107
+ },
108
+ Mask: {
109
+ name: 'lapisan pelindung'
110
+ },
111
+ Modal: {
112
+ ok: 'Saya mendapatkannya'
113
+ },
114
+ PullToRefresh: {
115
+ pulling: 'Tarik ke bawah untuk menyegarkan',
116
+ canRelease: 'Lepaskan untuk menyegarkan segera',
117
+ complete: 'Segarkan berhasil'
118
+ }
119
+ });
120
+ var _default = idID;
121
+ exports.default = _default;
@@ -0,0 +1,118 @@
1
+ declare const kkKZ: {
2
+ locale: string;
3
+ common: {
4
+ confirm: string;
5
+ cancel: string;
6
+ loading: string;
7
+ };
8
+ Calendar: {
9
+ markItems: string[];
10
+ renderYearAndMonth: (year: number, month: number) => string;
11
+ };
12
+ Cascader: {
13
+ placeholder: string;
14
+ };
15
+ Dialog: {
16
+ ok: string;
17
+ };
18
+ ErrorBlock: {
19
+ default: {
20
+ title: string;
21
+ description: string;
22
+ };
23
+ busy: {
24
+ title: string;
25
+ description: string;
26
+ };
27
+ disconnected: {
28
+ title: string;
29
+ description: string;
30
+ };
31
+ empty: {
32
+ title: string;
33
+ description: string;
34
+ };
35
+ };
36
+ Form: {
37
+ required: string;
38
+ optional: string;
39
+ defaultValidateMessages: {
40
+ default: string;
41
+ required: string;
42
+ enum: string;
43
+ whitespace: string;
44
+ date: {
45
+ format: string;
46
+ parse: string;
47
+ invalid: string;
48
+ };
49
+ types: {
50
+ string: string;
51
+ method: string;
52
+ array: string;
53
+ object: string;
54
+ number: string;
55
+ date: string;
56
+ boolean: string;
57
+ integer: string;
58
+ float: string;
59
+ regexp: string;
60
+ email: string;
61
+ url: string;
62
+ hex: string;
63
+ };
64
+ string: {
65
+ len: string;
66
+ min: string;
67
+ max: string;
68
+ range: string;
69
+ };
70
+ number: {
71
+ len: string;
72
+ min: string;
73
+ max: string;
74
+ range: string;
75
+ };
76
+ array: {
77
+ len: string;
78
+ min: string;
79
+ max: string;
80
+ range: string;
81
+ };
82
+ pattern: {
83
+ mismatch: string;
84
+ };
85
+ };
86
+ };
87
+ ImageUploader: {
88
+ uploading: string;
89
+ upload: string;
90
+ };
91
+ InfiniteScroll: {
92
+ noMore: string;
93
+ failedToLoad: string;
94
+ retry: string;
95
+ };
96
+ Mask: {
97
+ name: string;
98
+ };
99
+ Modal: {
100
+ ok: string;
101
+ };
102
+ PullToRefresh: {
103
+ pulling: string;
104
+ canRelease: string;
105
+ complete: string;
106
+ };
107
+ Slider: {
108
+ name: string;
109
+ };
110
+ Stepper: {
111
+ decrease: string;
112
+ increase: string;
113
+ };
114
+ Switch: {
115
+ name: string;
116
+ };
117
+ };
118
+ export default kkKZ;