@hi-ui/hiui 4.0.0-beta.91 → 4.0.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 (28) hide show
  1. package/lib/cjs/index.js +375 -331
  2. package/lib/cjs/ui/locale-context/lib/esm/LocaleContext.js +68 -0
  3. package/lib/cjs/ui/locale-context/lib/esm/LocaleProvider.js +84 -0
  4. package/lib/cjs/ui/locale-context/lib/esm/locale/en-US.js +193 -0
  5. package/lib/cjs/ui/locale-context/lib/esm/locale/index.js +41 -0
  6. package/lib/cjs/ui/locale-context/lib/esm/locale/zh-CN.js +197 -0
  7. package/lib/cjs/ui/locale-context/lib/esm/locale/zh-HK.js +197 -0
  8. package/lib/cjs/ui/locale-context/lib/esm/locale/zh-TW.js +197 -0
  9. package/lib/cjs/ui/locale-context/lib/esm/types.js +32 -0
  10. package/lib/cjs/utils/array-utils/lib/esm/index.js +37 -0
  11. package/lib/cjs/utils/env/lib/esm/index.js +53 -0
  12. package/lib/cjs/utils/object-utils/lib/esm/index.js +61 -0
  13. package/lib/cjs/utils/type-assertion/lib/esm/index.js +32 -0
  14. package/lib/esm/index.js +75 -69
  15. package/lib/esm/ui/locale-context/lib/esm/LocaleContext.js +55 -0
  16. package/lib/esm/ui/locale-context/lib/esm/LocaleProvider.js +61 -0
  17. package/lib/esm/ui/locale-context/lib/esm/locale/en-US.js +188 -0
  18. package/lib/esm/ui/locale-context/lib/esm/locale/index.js +31 -0
  19. package/lib/esm/ui/locale-context/lib/esm/locale/zh-CN.js +192 -0
  20. package/lib/esm/ui/locale-context/lib/esm/locale/zh-HK.js +192 -0
  21. package/lib/esm/ui/locale-context/lib/esm/locale/zh-TW.js +192 -0
  22. package/lib/esm/ui/locale-context/lib/esm/types.js +27 -0
  23. package/lib/esm/utils/array-utils/lib/esm/index.js +30 -0
  24. package/lib/esm/utils/env/lib/esm/index.js +47 -0
  25. package/lib/esm/utils/object-utils/lib/esm/index.js +53 -0
  26. package/lib/esm/utils/type-assertion/lib/esm/index.js +24 -0
  27. package/lib/types/index.d.ts +80 -74
  28. package/package.json +68 -62
package/lib/esm/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * @hi-ui/hiui
3
3
  * https://github.com/XiaoMi/hiui/tree/master/packages/ui/hiui#readme
4
4
  *
5
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
@@ -11,115 +11,121 @@ export * from '@hi-ui/alert';
11
11
  export { default as Alert } from '@hi-ui/alert';
12
12
  export * from '@hi-ui/avatar';
13
13
  export { default as Avatar } from '@hi-ui/avatar';
14
- export * from '@hi-ui/slider';
15
- export { default as Slider } from '@hi-ui/slider';
16
14
  export * from '@hi-ui/badge';
17
15
  export { default as Badge } from '@hi-ui/badge';
18
- export * from '@hi-ui/input';
19
- export { default as Input } from '@hi-ui/input';
20
16
  export * from '@hi-ui/breadcrumb';
21
17
  export { default as Breadcrumb } from '@hi-ui/breadcrumb';
22
- export * from '@hi-ui/list';
23
- export { default as List } from '@hi-ui/list';
24
- export * from '@hi-ui/stepper';
25
- export { default as Stepper } from '@hi-ui/stepper';
26
18
  export * from '@hi-ui/button';
27
19
  export { default as Button } from '@hi-ui/button';
28
- export * from '@hi-ui/loading';
29
- export { default as Loading } from '@hi-ui/loading';
30
- export * from '@hi-ui/svg-icon';
31
- export { default as SvgIcon } from '@hi-ui/svg-icon';
32
20
  export * from '@hi-ui/card';
33
21
  export { default as Card } from '@hi-ui/card';
34
- export * from '@hi-ui/provider';
35
- export { default as Provider } from '@hi-ui/provider';
36
- export * from '@hi-ui/locale-context';
37
- export { default as LocaleContext } from '@hi-ui/locale-context';
38
- export * from '@hi-ui/switch';
39
- export { default as Switch } from '@hi-ui/switch';
40
22
  export * from '@hi-ui/carousel';
41
23
  export { default as Carousel } from '@hi-ui/carousel';
42
- export * from '@hi-ui/table';
43
- export { default as Table } from '@hi-ui/table';
44
24
  export * from '@hi-ui/cascader';
45
25
  export { default as Cascader } from '@hi-ui/cascader';
46
- export * from '@hi-ui/menu';
47
- export { default as Menu } from '@hi-ui/menu';
48
- export * from '@hi-ui/tabs';
49
- export { default as Tabs } from '@hi-ui/tabs';
50
26
  export * from '@hi-ui/check-cascader';
51
27
  export { default as CheckCascader } from '@hi-ui/check-cascader';
52
- export * from '@hi-ui/message';
53
- export { default as Message } from '@hi-ui/message';
54
- export * from '@hi-ui/tag';
55
- export { default as Tag } from '@hi-ui/tag';
56
28
  export * from '@hi-ui/check-select';
57
29
  export { default as CheckSelect } from '@hi-ui/check-select';
58
- export * from '@hi-ui/modal';
59
- export { default as Modal } from '@hi-ui/modal';
60
30
  export * from '@hi-ui/check-tree-select';
61
31
  export { default as CheckTreeSelect } from '@hi-ui/check-tree-select';
62
- export * from '@hi-ui/notification';
63
- export { default as Notification } from '@hi-ui/notification';
64
- export * from '@hi-ui/textarea';
65
- export { default as Textarea } from '@hi-ui/textarea';
66
32
  export * from '@hi-ui/checkbox';
67
33
  export { default as Checkbox } from '@hi-ui/checkbox';
68
- export * from '@hi-ui/pagination';
69
- export { default as Pagination } from '@hi-ui/pagination';
70
- export * from '@hi-ui/time-picker';
71
- export { default as TimePicker } from '@hi-ui/time-picker';
72
34
  export * from '@hi-ui/collapse';
73
35
  export { default as Collapse } from '@hi-ui/collapse';
74
- export * from '@hi-ui/picker';
75
- export { default as Picker } from '@hi-ui/picker';
76
- export * from '@hi-ui/timeline';
77
- export { default as Timeline } from '@hi-ui/timeline';
78
36
  export * from '@hi-ui/counter';
79
37
  export { default as Counter } from '@hi-ui/counter';
80
- export * from '@hi-ui/pop-confirm';
81
- export { default as PopConfirm } from '@hi-ui/pop-confirm';
82
38
  export * from '@hi-ui/date-picker';
83
39
  export { default as DatePicker } from '@hi-ui/date-picker';
84
- export * from '@hi-ui/popover';
85
- export { default as Popover } from '@hi-ui/popover';
86
- export * from '@hi-ui/tooltip';
87
- export { default as Tooltip } from '@hi-ui/tooltip';
40
+ export * from '@hi-ui/descriptions';
41
+ export { default as Descriptions } from '@hi-ui/descriptions';
88
42
  export * from '@hi-ui/drawer';
89
43
  export { default as Drawer } from '@hi-ui/drawer';
90
- export * from '@hi-ui/transfer';
91
- export { default as Transfer } from '@hi-ui/transfer';
92
44
  export * from '@hi-ui/dropdown';
93
45
  export { default as Dropdown } from '@hi-ui/dropdown';
94
46
  export * from '@hi-ui/empty-state';
95
47
  export { default as EmptyState } from '@hi-ui/empty-state';
48
+ export * from '@hi-ui/filter';
49
+ export { default as Filter } from '@hi-ui/filter';
50
+ export * from '@hi-ui/form';
51
+ export { default as Form } from '@hi-ui/form';
52
+ export * from '@hi-ui/grid';
53
+ export { default as Grid } from '@hi-ui/grid';
54
+ export * from '@hi-ui/highlighter';
55
+ export { default as Highlighter } from '@hi-ui/highlighter';
56
+ export * from '@hi-ui/input';
57
+ export { default as Input } from '@hi-ui/input';
58
+ export * from '@hi-ui/list';
59
+ export { default as List } from '@hi-ui/list';
60
+ export * from '@hi-ui/loading';
61
+ export { default as Loading } from '@hi-ui/loading';
62
+ export { getLanguage, useLocaleContext } from './ui/locale-context/lib/esm/LocaleContext.js';
63
+ export { LocaleProvider as LocaleContext, LocaleProvider } from './ui/locale-context/lib/esm/LocaleProvider.js';
64
+ export * from '@hi-ui/menu';
65
+ export { default as Menu } from '@hi-ui/menu';
66
+ export * from '@hi-ui/message';
67
+ export { default as Message } from '@hi-ui/message';
68
+ export * from '@hi-ui/modal';
69
+ export { default as Modal } from '@hi-ui/modal';
70
+ export * from '@hi-ui/notification';
71
+ export { default as Notification } from '@hi-ui/notification';
72
+ export * from '@hi-ui/number-input';
73
+ export { default as NumberInput } from '@hi-ui/number-input';
74
+ export * from '@hi-ui/pagination';
75
+ export { default as Pagination } from '@hi-ui/pagination';
76
+ export * from '@hi-ui/pop-confirm';
77
+ export { default as PopConfirm } from '@hi-ui/pop-confirm';
78
+ export * from '@hi-ui/popover';
79
+ export { default as Popover } from '@hi-ui/popover';
96
80
  export * from '@hi-ui/preview';
97
81
  export { default as Preview } from '@hi-ui/preview';
98
- export * from '@hi-ui/tree';
99
- export { default as Tree } from '@hi-ui/tree';
100
82
  export * from '@hi-ui/progress';
101
83
  export { default as Progress } from '@hi-ui/progress';
102
- export * from '@hi-ui/tree-select';
103
- export { default as TreeSelect } from '@hi-ui/tree-select';
104
- export * from '@hi-ui/filter';
105
- export { default as Filter } from '@hi-ui/filter';
84
+ export * from '@hi-ui/provider';
85
+ export { default as Provider } from '@hi-ui/provider';
106
86
  export * from '@hi-ui/radio';
107
87
  export { default as Radio } from '@hi-ui/radio';
108
- export * from '@hi-ui/upload';
109
- export { default as Upload } from '@hi-ui/upload';
110
- export * from '@hi-ui/form';
111
- export { default as Form } from '@hi-ui/form';
112
88
  export * from '@hi-ui/rating';
113
89
  export { default as Rating } from '@hi-ui/rating';
114
- export * from '@hi-ui/watermark';
115
- export { default as Watermark } from '@hi-ui/watermark';
116
- export * from '@hi-ui/grid';
117
- export { default as Grid } from '@hi-ui/grid';
90
+ export * from '@hi-ui/result';
91
+ export { default as Result } from '@hi-ui/result';
118
92
  export * from '@hi-ui/search';
119
93
  export { default as Search } from '@hi-ui/search';
120
- export * from '@hi-ui/zen-mode';
121
- export { default as ZenMode } from '@hi-ui/zen-mode';
122
94
  export * from '@hi-ui/select';
123
95
  export { default as Select } from '@hi-ui/select';
124
- export * from '@hi-ui/number-input';
125
- export { default as NumberInput } from '@hi-ui/number-input';
96
+ export * from '@hi-ui/slider';
97
+ export { default as Slider } from '@hi-ui/slider';
98
+ export * from '@hi-ui/space';
99
+ export { default as Space } from '@hi-ui/space';
100
+ export * from '@hi-ui/stepper';
101
+ export { default as Stepper } from '@hi-ui/stepper';
102
+ export * from '@hi-ui/svg-icon';
103
+ export { default as SvgIcon } from '@hi-ui/svg-icon';
104
+ export * from '@hi-ui/switch';
105
+ export { default as Switch } from '@hi-ui/switch';
106
+ export * from '@hi-ui/table';
107
+ export { default as Table } from '@hi-ui/table';
108
+ export * from '@hi-ui/tabs';
109
+ export { default as Tabs } from '@hi-ui/tabs';
110
+ export * from '@hi-ui/tag';
111
+ export { default as Tag } from '@hi-ui/tag';
112
+ export * from '@hi-ui/textarea';
113
+ export { default as Textarea } from '@hi-ui/textarea';
114
+ export * from '@hi-ui/time-picker';
115
+ export { default as TimePicker } from '@hi-ui/time-picker';
116
+ export * from '@hi-ui/timeline';
117
+ export { default as Timeline } from '@hi-ui/timeline';
118
+ export * from '@hi-ui/tooltip';
119
+ export { default as Tooltip } from '@hi-ui/tooltip';
120
+ export * from '@hi-ui/transfer';
121
+ export { default as Transfer } from '@hi-ui/transfer';
122
+ export * from '@hi-ui/tree';
123
+ export { default as Tree } from '@hi-ui/tree';
124
+ export * from '@hi-ui/tree-select';
125
+ export { default as TreeSelect } from '@hi-ui/tree-select';
126
+ export * from '@hi-ui/upload';
127
+ export { default as Upload } from '@hi-ui/upload';
128
+ export * from '@hi-ui/watermark';
129
+ export { default as Watermark } from '@hi-ui/watermark';
130
+ export * from '@hi-ui/zen-mode';
131
+ export { default as ZenMode } from '@hi-ui/zen-mode';
@@ -0,0 +1,55 @@
1
+ /** @LICENSE
2
+ * @hi-ui/hiui
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/hiui#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ import { createContext, useContext } from 'react';
11
+ import { LocaleEnum } from './types.js';
12
+ import zhCN from './locale/zh-CN.js';
13
+ import { getNested } from '../../../../utils/object-utils/lib/esm/index.js';
14
+ import { invariant } from '../../../../utils/env/lib/esm/index.js';
15
+ /** @LICENSE
16
+ * @hi-ui/locale-context
17
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/locale-context#readme
18
+ *
19
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
20
+ *
21
+ * This source code is licensed under the MIT license found in the
22
+ * LICENSE file in the root directory of this source tree.
23
+ */
24
+
25
+ var getLanguage = function getLanguage(languageData) {
26
+ return function (key, data) {
27
+ var value = getNested(languageData, key.split('.'));
28
+ invariant(!!value, "The " + key + " in language package is missing.");
29
+
30
+ if (data) {
31
+ Object.keys(data).forEach(function (key) {
32
+ value = value.replace("{{" + key + "}}", data[key]);
33
+ });
34
+ }
35
+
36
+ return value;
37
+ };
38
+ };
39
+
40
+ var LocaleContext = /*#__PURE__*/createContext(Object.assign(Object.assign({}, zhCN), {
41
+ locale: LocaleEnum.ZH_CN,
42
+ get: getLanguage(zhCN)
43
+ }));
44
+
45
+ var useLocaleContext = function useLocaleContext() {
46
+ var context = useContext(LocaleContext);
47
+
48
+ if (!context) {
49
+ throw new Error('The locale context should be wrapped by <LocaleContext locale={locale} /> in App.');
50
+ }
51
+
52
+ return context;
53
+ };
54
+
55
+ export { LocaleContext, getLanguage, useLocaleContext };
@@ -0,0 +1,61 @@
1
+ /** @LICENSE
2
+ * @hi-ui/hiui
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/hiui#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ import _typeof from '@babel/runtime/helpers/esm/typeof';
11
+ import React, { useMemo } from 'react';
12
+ import { invariant, __DEV__ } from '../../../../utils/env/lib/esm/index.js';
13
+ import { getLanguage, LocaleContext } from './LocaleContext.js';
14
+ import localeMap from './locale/index.js';
15
+ var DEFAULT_LOCALE = 'zh-CN'; // 自定义语言包注册表
16
+
17
+ var USER_LANGUAGES_TABLES = {};
18
+ /**
19
+ * TODO: What is LocaleContext
20
+ */
21
+
22
+ var LocaleProvider = function LocaleProvider(_ref) {
23
+ var children = _ref.children,
24
+ _ref$locale = _ref.locale,
25
+ locale = _ref$locale === void 0 ? DEFAULT_LOCALE : _ref$locale,
26
+ languages = _ref.languages;
27
+ var get = useMemo(function () {
28
+ var languageData = _typeof(languages) === 'object' ? languages : USER_LANGUAGES_TABLES[locale] || localeMap[locale];
29
+
30
+ if (!languageData) {
31
+ invariant(false, "Will use " + DEFAULT_LOCALE + " as default locale because of the " + locale + " language package is missing.");
32
+ languageData = localeMap[DEFAULT_LOCALE];
33
+ }
34
+
35
+ return getLanguage(languageData);
36
+ }, [locale, languages]);
37
+ var providedValue = useMemo(function () {
38
+ return Object.assign(Object.assign({}, localeMap[locale]), {
39
+ get: get,
40
+ locale: locale
41
+ });
42
+ }, [locale, get]);
43
+ return /*#__PURE__*/React.createElement(LocaleContext.Provider, {
44
+ value: providedValue
45
+ }, children);
46
+ };
47
+
48
+ if (__DEV__) {
49
+ LocaleProvider.displayName = 'LocaleProvider';
50
+ }
51
+
52
+ var extendsLanguage = function extendsLanguage(locale, languages) {
53
+ if (!languages) {
54
+ delete USER_LANGUAGES_TABLES[locale];
55
+ } else {
56
+ USER_LANGUAGES_TABLES[locale] = languages;
57
+ }
58
+ };
59
+
60
+ LocaleProvider["extends"] = extendsLanguage;
61
+ export { LocaleProvider };
@@ -0,0 +1,188 @@
1
+ /** @LICENSE
2
+ * @hi-ui/hiui
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/hiui#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+
11
+ /** @LICENSE
12
+ * @hi-ui/locale-context
13
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/locale-context#readme
14
+ *
15
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
16
+ *
17
+ * This source code is licensed under the MIT license found in the
18
+ * LICENSE file in the root directory of this source tree.
19
+ */
20
+ var enUS = {
21
+ timePicker: {
22
+ ok: 'OK',
23
+ to: '-',
24
+ now: 'Now'
25
+ },
26
+ datePicker: {
27
+ ok: 'OK',
28
+ to: '-',
29
+ placeholder: ['Select Date'],
30
+ placeholderTimePeriod: ['Select Time'],
31
+ dateChoose: 'Select Date',
32
+ timeChoose: 'Select Time',
33
+ undefinedType: 'undefined type',
34
+ lastWeek: 'Nearly week',
35
+ lastMonth: 'Nearly month',
36
+ lastThreeMonth: 'Nearly three months',
37
+ lastYear: 'Nearly year',
38
+ month: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
39
+ monthShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
40
+ week: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
41
+ placeholders: {
42
+ date: ['Select Date'],
43
+ month: ['Select Month'],
44
+ year: ['Select Year'],
45
+ time: ['Select Time'],
46
+ daterange: ['Select Start Date', 'Select End Date'],
47
+ week: ['Select Week'],
48
+ weekrange: ['Select Start Week', 'Select End Week'],
49
+ timeperiod: ['Select Start Date Time', 'Select Start End Time']
50
+ },
51
+ timePeriod: 'Period',
52
+ hours: 'H',
53
+ minutes: 'M',
54
+ seconds: 'S',
55
+ weekRange: '{{year}}-W{{week}}'
56
+ },
57
+ pagination: {
58
+ total: ['Total', 'items'],
59
+ simple: ['The', 'page', '', 'pages', 'items'],
60
+ item: '',
61
+ itemPerPage: 'page',
62
+ "goto": 'Goto',
63
+ page: ''
64
+ },
65
+ cascader: {
66
+ placeholder: 'Please select',
67
+ noFoundTip: 'Not found'
68
+ },
69
+ checkCascader: {
70
+ placeholder: 'Please select',
71
+ noFoundTip: 'Not found'
72
+ },
73
+ select: {
74
+ placeholder: 'Please select',
75
+ emptyContent: 'Not found',
76
+ searchPlaceholder: 'Please search',
77
+ checkAll: 'Check all',
78
+ justSelected: 'Just Selected'
79
+ },
80
+ selectTree: {
81
+ back: 'Back',
82
+ search: 'search',
83
+ placeholder: 'Please select',
84
+ emptyContent: 'Not found'
85
+ },
86
+ search: {
87
+ searchEmptyResult: 'No serach results',
88
+ searchEmptyRecord: 'No serach record',
89
+ searchRecord: 'Serach record'
90
+ },
91
+ transfer: {
92
+ checkAll: 'Check all',
93
+ items: 'items',
94
+ searchPlaceholder: 'Please search',
95
+ emptyContent: 'No data',
96
+ limit: 'Reached limit, unable to add'
97
+ },
98
+ upload: {
99
+ buttonText: 'Upload',
100
+ uploadSuccess: 'Success',
101
+ cancel: 'Cancel',
102
+ "delete": 'Delete',
103
+ drag: 'Click or drag and drop file to upload',
104
+ dragTips: 'Please click or drag and drop file upload',
105
+ dragTipsLimited: 'The number has reached the upper limit',
106
+ preview: 'Preview',
107
+ modalTiptitle: 'Upload failed',
108
+ modalTiptxt: 'The upload file exceeds the specified upload file size',
109
+ modalBtn: 'I know',
110
+ modalTitle: 'Prompt'
111
+ },
112
+ modal: {
113
+ confirmText: 'OK',
114
+ cancelText: 'Cancel'
115
+ },
116
+ tabs: {
117
+ more: 'more'
118
+ },
119
+ timeline: {
120
+ expand: 'Expand',
121
+ collapse: 'Collapse'
122
+ },
123
+ form: {
124
+ colon: ':'
125
+ },
126
+ tree: {
127
+ addNode: 'Add Node',
128
+ addChildNode: 'Add Child Node',
129
+ edit: 'Edit Node',
130
+ del: 'Delete',
131
+ confirm: 'Confirm',
132
+ cancel: 'Cancel',
133
+ nodePlaceholder: 'Please enter the node name',
134
+ searchPlaceholder: 'Keyword search',
135
+ searchEmptyResult: 'No serach results',
136
+ modalTitle: 'Warning',
137
+ delTips: 'Deleting a node will delete all child nodes, are you sure to delete this node?'
138
+ },
139
+ table: {
140
+ emptyContent: 'No data',
141
+ confirm: 'Confirm',
142
+ reset: 'Reset',
143
+ ascend: 'Ascend',
144
+ descend: 'Descend',
145
+ highlight: 'Highlight',
146
+ freeze: 'Freeze',
147
+ total: 'Total',
148
+ average: 'Average',
149
+ fieldExplorer: 'Field Explorer'
150
+ },
151
+ watermark: {
152
+ content: 'Please do not gaiden'
153
+ },
154
+ emptyState: {
155
+ emptyContent: 'No data'
156
+ },
157
+ checkSelect: {
158
+ placeholder: 'Please select',
159
+ emptyContent: 'Not found',
160
+ searchPlaceholder: 'Please search',
161
+ checkAll: 'Check all',
162
+ justSelected: 'Just Selected'
163
+ },
164
+ treeSelect: {
165
+ placeholder: 'Please select'
166
+ },
167
+ checkTreeSelect: {
168
+ placeholder: 'Please select'
169
+ },
170
+ picker: {
171
+ placeholder: 'Please select',
172
+ emptyContent: 'No data',
173
+ noFoundTip: 'Not found',
174
+ searchPlaceholder: 'Please search',
175
+ loadingContent: 'loading data...'
176
+ },
177
+ zenMode: {
178
+ back: 'back'
179
+ },
180
+ popConfirm: {
181
+ confirmText: 'OK',
182
+ cancelText: 'Cancel'
183
+ },
184
+ tag: {
185
+ add: 'Add'
186
+ }
187
+ };
188
+ export { enUS as default };
@@ -0,0 +1,31 @@
1
+ /** @LICENSE
2
+ * @hi-ui/hiui
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/hiui#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ import zhCN from './zh-CN.js';
11
+ import enUS from './en-US.js';
12
+ import zhHK from './zh-HK.js';
13
+ import zhTW from './zh-TW.js';
14
+ /** @LICENSE
15
+ * @hi-ui/locale-context
16
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/locale-context#readme
17
+ *
18
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
19
+ *
20
+ * This source code is licensed under the MIT license found in the
21
+ * LICENSE file in the root directory of this source tree.
22
+ */
23
+
24
+ var localeMap = {
25
+ 'zh-CN': zhCN,
26
+ 'zh-Hans': zhCN,
27
+ 'en-US': enUS,
28
+ 'zh-HK': zhHK,
29
+ 'zh-TW': zhTW
30
+ };
31
+ export { localeMap as default };