@hi-ui/hiui 4.4.0 → 4.4.2

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.
@@ -9,6 +9,9 @@
9
9
  */
10
10
  'use strict';
11
11
 
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
12
15
  var React = require('react');
13
16
  var types = require('./types.js');
14
17
  var zhCN = require('./locale/zh-CN.js');
@@ -9,11 +9,22 @@
9
9
  */
10
10
  'use strict';
11
11
 
12
+ var _typeof2 = require("@babel/runtime/helpers/typeof");
13
+ Object.defineProperty(exports, '__esModule', {
14
+ value: true
15
+ });
12
16
  var _typeof = require('@babel/runtime/helpers/esm/typeof');
13
17
  var React = require('react');
14
18
  var index$1 = require('../../../../utils/env/lib/esm/index.js');
15
19
  var LocaleContext = require('./LocaleContext.js');
16
20
  var index = require('./locale/index.js');
21
+ function _interopDefaultLegacy(e) {
22
+ return e && _typeof2(e) === 'object' && 'default' in e ? e : {
23
+ 'default': e
24
+ };
25
+ }
26
+ var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);
27
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
17
28
  var DEFAULT_LOCALE = 'zh-CN';
18
29
  // 自定义语言包注册表
19
30
  var USER_LANGUAGES_TABLES = {};
@@ -23,7 +34,7 @@ var LocaleProvider = function LocaleProvider(_ref) {
23
34
  locale = _ref$locale === void 0 ? DEFAULT_LOCALE : _ref$locale,
24
35
  languages = _ref.languages;
25
36
  var get = React.useMemo(function () {
26
- var languageData = _typeof(languages) === 'object' ? languages : USER_LANGUAGES_TABLES[locale] || index["default"][locale];
37
+ var languageData = _typeof__default["default"](languages) === 'object' ? languages : USER_LANGUAGES_TABLES[locale] || index["default"][locale];
27
38
  if (!languageData) {
28
39
  index$1.invariant(false, "Will use " + DEFAULT_LOCALE + " as default locale because of the " + locale + " language package is missing.");
29
40
  languageData = index["default"][DEFAULT_LOCALE];
@@ -36,7 +47,7 @@ var LocaleProvider = function LocaleProvider(_ref) {
36
47
  locale: locale
37
48
  });
38
49
  }, [locale, get]);
39
- return /*#__PURE__*/React.createElement(LocaleContext.LocaleContext.Provider, {
50
+ return /*#__PURE__*/React__default["default"].createElement(LocaleContext.LocaleContext.Provider, {
40
51
  value: providedValue
41
52
  }, children);
42
53
  };
@@ -9,6 +9,10 @@
9
9
  */
10
10
  'use strict';
11
11
 
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+
12
16
  /** @LICENSE
13
17
  * @hi-ui/locale-context
14
18
  * https://github.com/XiaoMi/hiui/tree/master/packages/ui/locale-context#readme
@@ -9,6 +9,9 @@
9
9
  */
10
10
  'use strict';
11
11
 
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
12
15
  var index = require('../../../type-assertion/lib/esm/index.js');
13
16
 
14
17
  /** @LICENSE
@@ -9,6 +9,10 @@
9
9
  */
10
10
  'use strict';
11
11
 
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+
12
16
  /** @LICENSE
13
17
  * @hi-ui/env
14
18
  * https://github.com/XiaoMi/hiui#readme
@@ -9,6 +9,9 @@
9
9
  */
10
10
  'use strict';
11
11
 
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
12
15
  var index$1 = require('../../../type-assertion/lib/esm/index.js');
13
16
  var index = require('../../../array-utils/lib/esm/index.js');
14
17
 
@@ -9,6 +9,9 @@
9
9
  */
10
10
  'use strict';
11
11
 
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
12
15
  require('@babel/runtime/helpers/esm/typeof');
13
16
 
14
17
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/hiui",
3
- "version": "4.4.0",
3
+ "version": "4.4.2",
4
4
  "description": "The root-package for @hi-ui/hiui.",
5
5
  "keywords": [],
6
6
  "author": "HiUI <mi-hiui@xiaomi.com>",
@@ -43,82 +43,82 @@
43
43
  "url": "https://github.com/XiaoMi/hiui/issues"
44
44
  },
45
45
  "dependencies": {
46
- "@hi-ui/alert": "^4.1.1",
47
- "@hi-ui/anchor": "^4.0.6",
48
- "@hi-ui/avatar": "^4.0.5",
49
- "@hi-ui/back-top": "^4.0.5",
50
- "@hi-ui/badge": "^4.0.7",
51
- "@hi-ui/breadcrumb": "^4.0.5",
52
- "@hi-ui/button": "^4.0.7",
53
- "@hi-ui/card": "^4.0.6",
54
- "@hi-ui/carousel": "^4.0.5",
55
- "@hi-ui/cascader": "^4.1.3",
56
- "@hi-ui/check-cascader": "^4.2.3",
57
- "@hi-ui/check-select": "^4.3.3",
58
- "@hi-ui/check-tree-select": "^4.3.1",
59
- "@hi-ui/checkbox": "^4.0.6",
60
- "@hi-ui/collapse": "^4.1.3",
61
- "@hi-ui/counter": "^4.1.6",
62
- "@hi-ui/date-picker": "^4.4.2",
63
- "@hi-ui/descriptions": "^4.2.2",
64
- "@hi-ui/drawer": "^4.1.1",
65
- "@hi-ui/dropdown": "^4.1.2",
66
- "@hi-ui/ellipsis-tooltip": "^4.1.3",
67
- "@hi-ui/empty-state": "^4.0.5",
68
- "@hi-ui/filter": "^4.1.2",
69
- "@hi-ui/form": "^4.1.3",
70
- "@hi-ui/grid": "^4.0.6",
71
- "@hi-ui/highlighter": "^4.0.6",
72
- "@hi-ui/input": "^4.0.11",
73
- "@hi-ui/input-group": "^4.0.4",
74
- "@hi-ui/list": "^4.0.10",
75
- "@hi-ui/loading": "^4.1.1",
76
- "@hi-ui/menu": "^4.1.4",
77
- "@hi-ui/message": "^4.0.5",
78
- "@hi-ui/modal": "^4.0.13",
79
- "@hi-ui/notification": "^4.1.1",
80
- "@hi-ui/number-input": "^4.1.5",
81
- "@hi-ui/pagination": "^4.0.12",
82
- "@hi-ui/picker": "^4.1.2",
83
- "@hi-ui/pop-confirm": "^4.2.1",
84
- "@hi-ui/popover": "^4.0.6",
85
- "@hi-ui/preview": "^4.0.6",
86
- "@hi-ui/progress": "^4.0.7",
87
- "@hi-ui/provider": "^4.0.6",
88
- "@hi-ui/radio": "^4.1.1",
89
- "@hi-ui/rating": "^4.0.6",
90
- "@hi-ui/result": "^4.0.5",
91
- "@hi-ui/scrollbar": "^4.0.4",
92
- "@hi-ui/search": "^4.0.9",
93
- "@hi-ui/select": "^4.2.3",
94
- "@hi-ui/slider": "^4.0.8",
95
- "@hi-ui/space": "^4.0.7",
96
- "@hi-ui/spinner": "^4.0.6",
97
- "@hi-ui/stepper": "^4.0.5",
98
- "@hi-ui/svg-icon": "^4.0.5",
99
- "@hi-ui/switch": "^4.0.8",
100
- "@hi-ui/table": "^4.3.2",
101
- "@hi-ui/tabs": "^4.1.2",
102
- "@hi-ui/tag": "^4.1.1",
103
- "@hi-ui/textarea": "^4.1.4",
104
- "@hi-ui/time-picker": "^4.0.11",
105
- "@hi-ui/timeline": "^4.0.5",
106
- "@hi-ui/tooltip": "^4.0.8",
107
- "@hi-ui/transfer": "^4.0.11",
108
- "@hi-ui/tree": "^4.5.6",
109
- "@hi-ui/tree-select": "^4.1.1",
110
- "@hi-ui/upload": "^4.1.7",
111
- "@hi-ui/watermark": "^4.0.5",
112
- "@hi-ui/zen-mode": "^4.0.5"
46
+ "@hi-ui/alert": "^4.1.3",
47
+ "@hi-ui/anchor": "^4.0.8",
48
+ "@hi-ui/avatar": "^4.0.7",
49
+ "@hi-ui/back-top": "^4.0.7",
50
+ "@hi-ui/badge": "^4.0.9",
51
+ "@hi-ui/breadcrumb": "^4.0.7",
52
+ "@hi-ui/button": "^4.0.9",
53
+ "@hi-ui/card": "^4.0.8",
54
+ "@hi-ui/carousel": "^4.0.7",
55
+ "@hi-ui/cascader": "^4.1.5",
56
+ "@hi-ui/check-cascader": "^4.2.5",
57
+ "@hi-ui/check-select": "^4.3.5",
58
+ "@hi-ui/check-tree-select": "^4.3.3",
59
+ "@hi-ui/checkbox": "^4.0.8",
60
+ "@hi-ui/collapse": "^4.1.5",
61
+ "@hi-ui/counter": "^4.1.8",
62
+ "@hi-ui/date-picker": "^4.4.4",
63
+ "@hi-ui/descriptions": "^4.2.4",
64
+ "@hi-ui/drawer": "^4.1.3",
65
+ "@hi-ui/dropdown": "^4.1.4",
66
+ "@hi-ui/ellipsis-tooltip": "^4.1.5",
67
+ "@hi-ui/empty-state": "^4.0.7",
68
+ "@hi-ui/filter": "^4.1.4",
69
+ "@hi-ui/form": "^4.1.5",
70
+ "@hi-ui/grid": "^4.0.8",
71
+ "@hi-ui/highlighter": "^4.0.8",
72
+ "@hi-ui/input": "^4.0.13",
73
+ "@hi-ui/input-group": "^4.0.6",
74
+ "@hi-ui/list": "^4.0.12",
75
+ "@hi-ui/loading": "^4.1.3",
76
+ "@hi-ui/menu": "^4.1.6",
77
+ "@hi-ui/message": "^4.0.7",
78
+ "@hi-ui/modal": "^4.0.15",
79
+ "@hi-ui/notification": "^4.1.3",
80
+ "@hi-ui/number-input": "^4.1.7",
81
+ "@hi-ui/pagination": "^4.0.14",
82
+ "@hi-ui/picker": "^4.1.4",
83
+ "@hi-ui/pop-confirm": "^4.2.3",
84
+ "@hi-ui/popover": "^4.0.8",
85
+ "@hi-ui/preview": "^4.0.8",
86
+ "@hi-ui/progress": "^4.0.9",
87
+ "@hi-ui/provider": "^4.0.8",
88
+ "@hi-ui/radio": "^4.1.3",
89
+ "@hi-ui/rating": "^4.0.8",
90
+ "@hi-ui/result": "^4.0.7",
91
+ "@hi-ui/scrollbar": "^4.0.6",
92
+ "@hi-ui/search": "^4.0.11",
93
+ "@hi-ui/select": "^4.2.5",
94
+ "@hi-ui/slider": "^4.0.10",
95
+ "@hi-ui/space": "^4.0.9",
96
+ "@hi-ui/spinner": "^4.0.8",
97
+ "@hi-ui/stepper": "^4.0.7",
98
+ "@hi-ui/svg-icon": "^4.0.7",
99
+ "@hi-ui/switch": "^4.0.10",
100
+ "@hi-ui/table": "^4.3.4",
101
+ "@hi-ui/tabs": "^4.1.4",
102
+ "@hi-ui/tag": "^4.1.3",
103
+ "@hi-ui/textarea": "^4.1.6",
104
+ "@hi-ui/time-picker": "^4.0.13",
105
+ "@hi-ui/timeline": "^4.0.7",
106
+ "@hi-ui/tooltip": "^4.0.10",
107
+ "@hi-ui/transfer": "^4.0.13",
108
+ "@hi-ui/tree": "^4.5.8",
109
+ "@hi-ui/tree-select": "^4.1.3",
110
+ "@hi-ui/upload": "^4.1.9",
111
+ "@hi-ui/watermark": "^4.0.7",
112
+ "@hi-ui/zen-mode": "^4.0.7"
113
113
  },
114
114
  "peerDependencies": {
115
- "@hi-ui/core": ">=4.0.6",
115
+ "@hi-ui/core": ">=4.0.8",
116
116
  "react": ">=16.8.6",
117
117
  "react-dom": ">=16.8.6"
118
118
  },
119
119
  "devDependencies": {
120
- "@hi-ui/core": "^4.0.6",
121
- "@hi-ui/core-css": "^4.1.3",
120
+ "@hi-ui/core": "^4.0.8",
121
+ "@hi-ui/core-css": "^4.1.5",
122
122
  "react": "^17.0.1",
123
123
  "react-dom": "^17.0.1"
124
124
  }