@hi-ui/hiui 1.5.21 → 1.5.23
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.
- package/CHANGELOG.md +3 -0
- package/es/alert/__test__/index.test.js +2 -2
- package/es/alert/index.js +23 -19
- package/es/badge/index.js +16 -12
- package/es/button/Button.js +17 -15
- package/es/button/ButtonGroup.js +14 -10
- package/es/button/IconLoading.js +4 -4
- package/es/button/__test__/index.test.js +1 -1
- package/es/card/index.js +21 -17
- package/es/cascader/Cascader.js +24 -20
- package/es/cascader/__test__/index.test.js +6 -6
- package/es/cascader/menu.js +18 -14
- package/es/checkbox/Base.js +16 -12
- package/es/checkbox/CheckBox.js +17 -13
- package/es/collapse/__test__/index.test.js +10 -10
- package/es/collapse/index.js +33 -25
- package/es/confirm/index.js +16 -12
- package/es/context/index.js +21 -17
- package/es/counter/__test__/index.test.js +1 -1
- package/es/counter/index.js +18 -14
- package/es/date-picker/BasePicker.js +21 -17
- package/es/date-picker/Calender.js +29 -21
- package/es/date-picker/DatePanel.js +39 -34
- package/es/date-picker/DatePicker.js +17 -13
- package/es/date-picker/DateRangePanel.js +40 -36
- package/es/date-picker/Modal.js +14 -10
- package/es/date-picker/Time.js +42 -38
- package/es/date-picker/TimePanel.js +15 -11
- package/es/date-picker/TimePeriodPanel.js +19 -15
- package/es/date-picker/TimePicker.js +15 -11
- package/es/date-picker/TimeRangePanel.js +17 -13
- package/es/date-picker/WeekRangePanel.js +33 -29
- package/es/date-picker/dateUtil.js +8 -0
- package/es/dropdown/Dropdown.js +30 -26
- package/es/dropdown/__test__/index.test.js +5 -5
- package/es/ficon/index.js +14 -10
- package/es/form/index.js +14 -10
- package/es/form/item.js +19 -15
- package/es/grid/index.js +24 -20
- package/es/icon/index.js +14 -10
- package/es/index.js +1 -1
- package/es/input/index.js +24 -20
- package/es/loading/index.js +20 -16
- package/es/locales/en-US.js +6 -1
- package/es/locales/zh-CN.js +6 -1
- package/es/menu/Item.js +15 -11
- package/es/menu/ItemGroup.js +16 -12
- package/es/menu/SubMenu.js +21 -17
- package/es/menu/Title.js +16 -12
- package/es/menu/index.js +31 -23
- package/es/modal/__test__/index.test.js +8 -8
- package/es/modal/index.js +24 -20
- package/es/nav-menu/NavMenu.js +21 -17
- package/es/nav-menu/__test__/index.test.js +6 -6
- package/es/notification/index.js +21 -17
- package/es/pagination/Pager.js +2 -2
- package/es/pagination/Pagination.js +34 -29
- package/es/pagination/__test__/index.test.js +3 -3
- package/es/panel/index.js +18 -14
- package/es/popover/__test__/index.test.js +8 -8
- package/es/popover/index.js +20 -16
- package/es/popper/index.js +22 -16
- package/es/progress/BarProgress.js +4 -4
- package/es/progress/CircleProgress.js +5 -5
- package/es/progress/DashboardProgress.js +5 -5
- package/es/progress/index.js +17 -13
- package/es/radio/__test__/index.test.js +3 -3
- package/es/radio/index.js +18 -14
- package/es/rate/Icons.js +68 -68
- package/es/rate/Rate.js +25 -23
- package/es/rate/__test__/index.test.js +3 -3
- package/es/select/Option.js +13 -9
- package/es/select/Select.js +34 -23
- package/es/select/SelectDropdown.js +33 -24
- package/es/select/SelectInput.js +47 -46
- package/es/select/__test__/index.test.js +9 -9
- package/es/stepper/index.js +21 -17
- package/es/switch/__test__/index.test.js +3 -3
- package/es/switch/index.js +15 -11
- package/es/table/__test__/index.test.js +2 -2
- package/es/table/body.js +33 -29
- package/es/table/checkbox/index.js +16 -12
- package/es/table/clickOuterside.js +14 -10
- package/es/table/footer.js +32 -24
- package/es/table/header.js +41 -41
- package/es/table/index.js +86 -73
- package/es/table/menu/index.js +18 -14
- package/es/table/pover.js +23 -21
- package/es/table/tableContent.js +19 -15
- package/es/tabs/ItemDropdown.js +20 -16
- package/es/tabs/TabPane.js +14 -10
- package/es/tabs/Tabs.js +27 -23
- package/es/timeline/__test__/index.test.js +1 -1
- package/es/timeline/foldingItem.js +17 -13
- package/es/timeline/index.js +31 -27
- package/es/tooltip/__test__/index.test.js +10 -10
- package/es/tooltip/index.js +18 -16
- package/es/transfer/Item.js +35 -32
- package/es/transfer/index.js +41 -33
- package/es/tree/Tree.js +41 -34
- package/es/tree/TreeDivider.js +3 -3
- package/es/tree/TreeItem.js +41 -38
- package/es/tree/TreeNode.js +38 -30
- package/es/tree/util.js +9 -5
- package/es/upload/Preview.js +28 -24
- package/es/upload/Upload.js +20 -16
- package/es/upload/UploadAvatar.js +31 -27
- package/es/upload/UploadClick.js +25 -23
- package/es/upload/UploadDrag.js +32 -28
- package/es/upload/UploadPhoto.js +31 -27
- package/es/upload/UploadPictureCard.js +26 -24
- package/es/upload/index.js +18 -14
- package/package.json +4 -1
- package/test/coverage/coverage-summary.json +0 -123
- package/test/coverage/lcov-report/Dropdown.jsx.html +0 -507
- package/test/coverage/lcov-report/DropdownButton.jsx.html +0 -285
- package/test/coverage/lcov-report/DropdownMenu.jsx.html +0 -276
- package/test/coverage/lcov-report/DropdownMenuItem.jsx.html +0 -402
- package/test/coverage/lcov-report/ItemDropdown.js.html +0 -399
- package/test/coverage/lcov-report/TabPane.js.html +0 -162
- package/test/coverage/lcov-report/Tabs.js.html +0 -804
- package/test/coverage/lcov-report/_util/SwitchVersion.js.html +0 -117
- package/test/coverage/lcov-report/_util/depreactedPropsCompat.js.html +0 -180
- package/test/coverage/lcov-report/_util/deprecatedPropsCheck.js.html +0 -120
- package/test/coverage/lcov-report/_util/index.html +0 -136
- package/test/coverage/lcov-report/_util/index.js.html +0 -75
- package/test/coverage/lcov-report/alert/Alert.js.html +0 -303
- package/test/coverage/lcov-report/alert/index.html +0 -97
- package/test/coverage/lcov-report/badge/Badge.js.html +0 -195
- package/test/coverage/lcov-report/badge/index.html +0 -97
- package/test/coverage/lcov-report/base.css +0 -224
- package/test/coverage/lcov-report/block-navigation.js +0 -79
- package/test/coverage/lcov-report/breadcrumb/index.html +0 -97
- package/test/coverage/lcov-report/breadcrumb/index.js.html +0 -165
- package/test/coverage/lcov-report/button/Button.js.html +0 -429
- package/test/coverage/lcov-report/button/ButtonGroup.js.html +0 -129
- package/test/coverage/lcov-report/button/IconLoading.js.html +0 -123
- package/test/coverage/lcov-report/button/index.html +0 -136
- package/test/coverage/lcov-report/button/index.js.html +0 -90
- package/test/coverage/lcov-report/card/index.html +0 -97
- package/test/coverage/lcov-report/card/index.js.html +0 -444
- package/test/coverage/lcov-report/carousel/index.html +0 -97
- package/test/coverage/lcov-report/carousel/index.js.html +0 -534
- package/test/coverage/lcov-report/cascader/Cascader.js.html +0 -1335
- package/test/coverage/lcov-report/cascader/Menu.js.html +0 -372
- package/test/coverage/lcov-report/cascader/index.html +0 -110
- package/test/coverage/lcov-report/checkbox/Checkbox.js.html +0 -360
- package/test/coverage/lcov-report/checkbox/Group.js.html +0 -429
- package/test/coverage/lcov-report/checkbox/index.html +0 -123
- package/test/coverage/lcov-report/checkbox/index.js.html +0 -105
- package/test/coverage/lcov-report/collapse/index.html +0 -97
- package/test/coverage/lcov-report/collapse/index.js.html +0 -432
- package/test/coverage/lcov-report/context/index.html +0 -97
- package/test/coverage/lcov-report/context/index.js.html +0 -252
- package/test/coverage/lcov-report/counter/Counter.js.html +0 -831
- package/test/coverage/lcov-report/counter/index.html +0 -110
- package/test/coverage/lcov-report/counter/index.js.html +0 -87
- package/test/coverage/lcov-report/date-picker/BasePicker.js.html +0 -1173
- package/test/coverage/lcov-report/date-picker/Calender.js.html +0 -975
- package/test/coverage/lcov-report/date-picker/DatePanel.js.html +0 -945
- package/test/coverage/lcov-report/date-picker/DatePicker.js.html +0 -270
- package/test/coverage/lcov-report/date-picker/DateRangePanel.js.html +0 -1260
- package/test/coverage/lcov-report/date-picker/Modal.js.html +0 -150
- package/test/coverage/lcov-report/date-picker/Time.js.html +0 -537
- package/test/coverage/lcov-report/date-picker/TimeList.js.html +0 -459
- package/test/coverage/lcov-report/date-picker/TimePanel.js.html +0 -195
- package/test/coverage/lcov-report/date-picker/TimePeriodPanel.js.html +0 -264
- package/test/coverage/lcov-report/date-picker/TimePicker.js.html +0 -225
- package/test/coverage/lcov-report/date-picker/TimeRangePanel.js.html +0 -165
- package/test/coverage/lcov-report/date-picker/Type.js.html +0 -144
- package/test/coverage/lcov-report/date-picker/WeekRangePanel.js.html +0 -870
- package/test/coverage/lcov-report/date-picker/constants.js.html +0 -192
- package/test/coverage/lcov-report/date-picker/dateUtil.js.html +0 -453
- package/test/coverage/lcov-report/date-picker/index.html +0 -318
- package/test/coverage/lcov-report/date-picker/index.js.html +0 -90
- package/test/coverage/lcov-report/date-picker/util.js.html +0 -168
- package/test/coverage/lcov-report/dropdown/Dropdown.jsx.html +0 -507
- package/test/coverage/lcov-report/dropdown/DropdownButton.jsx.html +0 -285
- package/test/coverage/lcov-report/dropdown/DropdownMenu.jsx.html +0 -276
- package/test/coverage/lcov-report/dropdown/DropdownMenuItem.jsx.html +0 -402
- package/test/coverage/lcov-report/dropdown/index.html +0 -162
- package/test/coverage/lcov-report/dropdown/index.js.html +0 -201
- package/test/coverage/lcov-report/dropdown/utils.js.html +0 -114
- package/test/coverage/lcov-report/form/Form.js.html +0 -423
- package/test/coverage/lcov-report/form/Item.js.html +0 -729
- package/test/coverage/lcov-report/form/index.html +0 -123
- package/test/coverage/lcov-report/form/index.js.html +0 -93
- package/test/coverage/lcov-report/grid/index.html +0 -97
- package/test/coverage/lcov-report/grid/index.js.html +0 -357
- package/test/coverage/lcov-report/icon/index.html +0 -97
- package/test/coverage/lcov-report/icon/index.js.html +0 -114
- package/test/coverage/lcov-report/index.html +0 -656
- package/test/coverage/lcov-report/index.js.html +0 -207
- package/test/coverage/lcov-report/index.test.js.snap.html +0 -171
- package/test/coverage/lcov-report/input/Input.js.html +0 -1038
- package/test/coverage/lcov-report/input/index.html +0 -123
- package/test/coverage/lcov-report/input/index.js.html +0 -90
- package/test/coverage/lcov-report/input/util.js.html +0 -498
- package/test/coverage/lcov-report/lib/index.html +0 -97
- package/test/coverage/lcov-report/lib/withDragDropContext.js.html +0 -81
- package/test/coverage/lcov-report/loading/Loading.js.html +0 -423
- package/test/coverage/lcov-report/loading/index.html +0 -110
- package/test/coverage/lcov-report/loading/index.js.html +0 -84
- package/test/coverage/lcov-report/locales/en-US.js.html +0 -429
- package/test/coverage/lcov-report/locales/index.html +0 -123
- package/test/coverage/lcov-report/locales/index.js.html +0 -90
- package/test/coverage/lcov-report/locales/zh-CN.js.html +0 -354
- package/test/coverage/lcov-report/menu/Item.js.html +0 -219
- package/test/coverage/lcov-report/menu/Menu.js.html +0 -1032
- package/test/coverage/lcov-report/menu/SubMenu.js.html +0 -558
- package/test/coverage/lcov-report/menu/Title.js.html +0 -204
- package/test/coverage/lcov-report/menu/index.html +0 -149
- package/test/coverage/lcov-report/menu/index.js.html +0 -105
- package/test/coverage/lcov-report/message/index.html +0 -97
- package/test/coverage/lcov-report/message/index.js.html +0 -198
- package/test/coverage/lcov-report/modal/index.html +0 -97
- package/test/coverage/lcov-report/modal/index.js.html +0 -534
- package/test/coverage/lcov-report/nav-menu/NavMenu.js.html +0 -702
- package/test/coverage/lcov-report/nav-menu/index.html +0 -110
- package/test/coverage/lcov-report/nav-menu/index.js.html +0 -81
- package/test/coverage/lcov-report/notice/Notice.js.html +0 -243
- package/test/coverage/lcov-report/notice/NoticeContainer.js.html +0 -219
- package/test/coverage/lcov-report/notice/index.html +0 -123
- package/test/coverage/lcov-report/notice/index.js.html +0 -168
- package/test/coverage/lcov-report/notification/HandleNotification/index.html +0 -97
- package/test/coverage/lcov-report/notification/HandleNotification/index.js.html +0 -534
- package/test/coverage/lcov-report/notification/index.html +0 -97
- package/test/coverage/lcov-report/notification/index.js.html +0 -282
- package/test/coverage/lcov-report/pagination/Pager.js.html +0 -204
- package/test/coverage/lcov-report/pagination/Pagination.js.html +0 -1338
- package/test/coverage/lcov-report/pagination/index.html +0 -123
- package/test/coverage/lcov-report/pagination/index.js.html +0 -102
- package/test/coverage/lcov-report/popover/index.html +0 -97
- package/test/coverage/lcov-report/popover/index.js.html +0 -510
- package/test/coverage/lcov-report/popper/index.html +0 -97
- package/test/coverage/lcov-report/popper/index.js.html +0 -687
- package/test/coverage/lcov-report/prettify.css +0 -1
- package/test/coverage/lcov-report/prettify.js +0 -2
- package/test/coverage/lcov-report/progress/BarProgress.js.html +0 -186
- package/test/coverage/lcov-report/progress/CircleProgress.js.html +0 -168
- package/test/coverage/lcov-report/progress/DashboardProgress.js.html +0 -222
- package/test/coverage/lcov-report/progress/Progress.js.html +0 -219
- package/test/coverage/lcov-report/progress/index.html +0 -136
- package/test/coverage/lcov-report/radio/Group.js.html +0 -447
- package/test/coverage/lcov-report/radio/Radio.js.html +0 -399
- package/test/coverage/lcov-report/radio/index.html +0 -123
- package/test/coverage/lcov-report/radio/index.js.html +0 -105
- package/test/coverage/lcov-report/rate/Icons.js.html +0 -999
- package/test/coverage/lcov-report/rate/Rate.js.html +0 -579
- package/test/coverage/lcov-report/rate/index.html +0 -110
- package/test/coverage/lcov-report/rate/index.js.html +0 -84
- package/test/coverage/lcov-report/select/Select.js.html +0 -1992
- package/test/coverage/lcov-report/select/SelectDropdown.js.html +0 -468
- package/test/coverage/lcov-report/select/SelectInput.js.html +0 -885
- package/test/coverage/lcov-report/select/common.js.html +0 -105
- package/test/coverage/lcov-report/select/index.html +0 -149
- package/test/coverage/lcov-report/select/index.js.html +0 -87
- package/test/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/test/coverage/lcov-report/sorter.js +0 -170
- package/test/coverage/lcov-report/stepper/Stepper.js.html +0 -366
- package/test/coverage/lcov-report/stepper/index.html +0 -110
- package/test/coverage/lcov-report/stepper/index.js.html +0 -162
- package/test/coverage/lcov-report/switch/__tests__/__snapshots__/index.html +0 -97
- package/test/coverage/lcov-report/switch/__tests__/__snapshots__/index.test.js.snap.html +0 -171
- package/test/coverage/lcov-report/switch/index.html +0 -97
- package/test/coverage/lcov-report/switch/index.js.html +0 -282
- package/test/coverage/lcov-report/table/Body.js.html +0 -588
- package/test/coverage/lcov-report/table/ClickOuterside.js.html +0 -201
- package/test/coverage/lcov-report/table/Footer.js.html +0 -435
- package/test/coverage/lcov-report/table/Header.js.html +0 -480
- package/test/coverage/lcov-report/table/TableContent.js.html +0 -204
- package/test/coverage/lcov-report/table/checkbox/index.html +0 -97
- package/test/coverage/lcov-report/table/checkbox/index.js.html +0 -213
- package/test/coverage/lcov-report/table/index.html +0 -188
- package/test/coverage/lcov-report/table/index.js.html +0 -3078
- package/test/coverage/lcov-report/table/menu/index.html +0 -97
- package/test/coverage/lcov-report/table/menu/index.js.html +0 -207
- package/test/coverage/lcov-report/table/prefix.js.html +0 -87
- package/test/coverage/lcov-report/table/tool.js.html +0 -387
- package/test/coverage/lcov-report/tabs/ItemDropdown.js.html +0 -387
- package/test/coverage/lcov-report/tabs/TabPane.js.html +0 -162
- package/test/coverage/lcov-report/tabs/Tabs.js.html +0 -795
- package/test/coverage/lcov-report/tabs/index.html +0 -136
- package/test/coverage/lcov-report/tabs/index.js.html +0 -108
- package/test/coverage/lcov-report/tag/index.html +0 -97
- package/test/coverage/lcov-report/tag/index.js.html +0 -216
- package/test/coverage/lcov-report/timeline/FoldingItem.js.html +0 -135
- package/test/coverage/lcov-report/timeline/index.html +0 -110
- package/test/coverage/lcov-report/timeline/index.js.html +0 -435
- package/test/coverage/lcov-report/tooltip/index.html +0 -97
- package/test/coverage/lcov-report/tooltip/index.js.html +0 -483
- package/test/coverage/lcov-report/transfer/Item.js.html +0 -402
- package/test/coverage/lcov-report/transfer/Transfer.js.html +0 -1350
- package/test/coverage/lcov-report/transfer/index.html +0 -123
- package/test/coverage/lcov-report/transfer/index.js.html +0 -78
- package/test/coverage/lcov-report/tree/IconLoading.js.html +0 -123
- package/test/coverage/lcov-report/tree/Tree.js.html +0 -786
- package/test/coverage/lcov-report/tree/TreeDivider.js.html +0 -120
- package/test/coverage/lcov-report/tree/TreeItem.js.html +0 -1098
- package/test/coverage/lcov-report/tree/TreeNode.js.html +0 -2013
- package/test/coverage/lcov-report/tree/index.html +0 -175
- package/test/coverage/lcov-report/tree/index.js.html +0 -81
- package/test/coverage/lcov-report/tree/util.js.html +0 -483
- package/test/coverage/lcov-report/upload/Preview.js.html +0 -948
- package/test/coverage/lcov-report/upload/Upload.js.html +0 -1113
- package/test/coverage/lcov-report/upload/UploadAvatar.js.html +0 -825
- package/test/coverage/lcov-report/upload/UploadClick.js.html +0 -366
- package/test/coverage/lcov-report/upload/UploadDrag.js.html +0 -561
- package/test/coverage/lcov-report/upload/UploadPhoto.js.html +0 -498
- package/test/coverage/lcov-report/upload/UploadPictureCard.js.html +0 -372
- package/test/coverage/lcov-report/upload/index.html +0 -188
- package/test/coverage/lcov-report/upload/main.js.html +0 -153
- package/test/coverage/lcov-report/utils.js.html +0 -114
- package/test/coverage/lcov.info +0 -10561
package/CHANGELOG.md
CHANGED
|
@@ -30,7 +30,7 @@ describe('Alert', function () {
|
|
|
30
30
|
|
|
31
31
|
it('could be closed', function () {
|
|
32
32
|
var onClose = jest.fn();
|
|
33
|
-
var wrapper = (0, _enzyme.mount)(_react["default"].createElement(_["default"], {
|
|
33
|
+
var wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
34
34
|
type: "info",
|
|
35
35
|
message: "\u4FE1\u606F\u63D0\u793A\u7684\u6587\u6848",
|
|
36
36
|
onClose: onClose
|
|
@@ -50,7 +50,7 @@ describe('Alert', function () {
|
|
|
50
50
|
|
|
51
51
|
it('auto close', function () {
|
|
52
52
|
var onClose = jest.fn();
|
|
53
|
-
var wrapper = (0, _enzyme.mount)(_react["default"].createElement(_["default"], {
|
|
53
|
+
var wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
54
54
|
type: "info",
|
|
55
55
|
message: "\u4FE1\u606F\u63D0\u793A\u7684\u6587\u6848",
|
|
56
56
|
autoClose: true,
|
package/es/alert/index.js
CHANGED
|
@@ -19,16 +19,10 @@ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return
|
|
|
19
19
|
|
|
20
20
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
|
|
21
21
|
|
|
22
|
-
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
22
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
23
23
|
|
|
24
24
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
25
|
|
|
26
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
27
|
-
|
|
28
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
29
|
-
|
|
30
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
31
|
-
|
|
32
26
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
33
27
|
|
|
34
28
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
@@ -37,13 +31,23 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
|
37
31
|
|
|
38
32
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
39
33
|
|
|
34
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
35
|
+
|
|
36
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
37
|
+
|
|
38
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
39
|
+
|
|
40
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
41
|
+
|
|
42
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
|
+
|
|
40
44
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
41
45
|
|
|
42
|
-
var Alert =
|
|
43
|
-
/*#__PURE__*/
|
|
44
|
-
function (_Component) {
|
|
46
|
+
var Alert = /*#__PURE__*/function (_Component) {
|
|
45
47
|
_inherits(Alert, _Component);
|
|
46
48
|
|
|
49
|
+
var _super = _createSuper(Alert);
|
|
50
|
+
|
|
47
51
|
_createClass(Alert, [{
|
|
48
52
|
key: "componentDidMount",
|
|
49
53
|
value: function componentDidMount() {
|
|
@@ -62,7 +66,7 @@ function (_Component) {
|
|
|
62
66
|
|
|
63
67
|
_classCallCheck(this, Alert);
|
|
64
68
|
|
|
65
|
-
_this =
|
|
69
|
+
_this = _super.call(this, props);
|
|
66
70
|
_this.state = {
|
|
67
71
|
show: true
|
|
68
72
|
};
|
|
@@ -103,24 +107,24 @@ function (_Component) {
|
|
|
103
107
|
type = 'info-circle-o';
|
|
104
108
|
}
|
|
105
109
|
|
|
106
|
-
return this.state.show ? _react["default"].createElement("div", {
|
|
110
|
+
return this.state.show ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
107
111
|
className: classnames
|
|
108
|
-
}, _react["default"].createElement("div", {
|
|
112
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
109
113
|
className: "icon-contain"
|
|
110
|
-
}, _react["default"].createElement("i", {
|
|
114
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
111
115
|
className: "hi-icon icon-".concat(type)
|
|
112
|
-
})), _react["default"].createElement("div", {
|
|
116
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
113
117
|
className: "text-contain"
|
|
114
|
-
}, this.props.title && _react["default"].createElement("div", {
|
|
118
|
+
}, this.props.title && /*#__PURE__*/_react["default"].createElement("div", {
|
|
115
119
|
className: "text-title"
|
|
116
|
-
}, this.props.title), _react["default"].createElement("div", {
|
|
120
|
+
}, this.props.title), /*#__PURE__*/_react["default"].createElement("div", {
|
|
117
121
|
className: "text-message"
|
|
118
122
|
}, this.props.message || this.props.content, _react["default"].Children.map(this.props.children, function (item) {
|
|
119
123
|
return item;
|
|
120
|
-
}))), this.props.closeable ? _react["default"].createElement("div", {
|
|
124
|
+
}))), this.props.closeable ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
121
125
|
className: "close-btn icon-img-delete",
|
|
122
126
|
onClick: this.handleClose.bind(this)
|
|
123
|
-
}, _react["default"].createElement("i", {
|
|
127
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
124
128
|
className: "hi-icon icon-close"
|
|
125
129
|
})) : null) : null;
|
|
126
130
|
}
|
package/es/badge/index.js
CHANGED
|
@@ -19,7 +19,7 @@ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return
|
|
|
19
19
|
|
|
20
20
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
|
|
21
21
|
|
|
22
|
-
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
22
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
23
23
|
|
|
24
24
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
25
|
|
|
@@ -27,27 +27,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
27
27
|
|
|
28
28
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
29
29
|
|
|
30
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
|
+
|
|
32
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
|
+
|
|
34
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
35
|
+
|
|
30
36
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
31
37
|
|
|
32
38
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
33
39
|
|
|
34
|
-
function
|
|
40
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
35
41
|
|
|
36
|
-
function
|
|
37
|
-
|
|
38
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
42
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
39
43
|
|
|
40
44
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
41
45
|
|
|
42
|
-
var Badge =
|
|
43
|
-
/*#__PURE__*/
|
|
44
|
-
function (_Component) {
|
|
46
|
+
var Badge = /*#__PURE__*/function (_Component) {
|
|
45
47
|
_inherits(Badge, _Component);
|
|
46
48
|
|
|
49
|
+
var _super = _createSuper(Badge);
|
|
50
|
+
|
|
47
51
|
function Badge() {
|
|
48
52
|
_classCallCheck(this, Badge);
|
|
49
53
|
|
|
50
|
-
return
|
|
54
|
+
return _super.apply(this, arguments);
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
_createClass(Badge, [{
|
|
@@ -61,12 +65,12 @@ function (_Component) {
|
|
|
61
65
|
hidden = _this$props.hidden,
|
|
62
66
|
style = _this$props.style;
|
|
63
67
|
var eleClass = (0, _classnames["default"])("".concat(prefixCls, "-base"));
|
|
64
|
-
return _react["default"].createElement("div", {
|
|
68
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
65
69
|
className: eleClass,
|
|
66
70
|
style: style
|
|
67
|
-
}, this.props.children, dot ? _react["default"].createElement("span", {
|
|
71
|
+
}, this.props.children, dot ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
68
72
|
className: "".concat(prefixCls, "-dot").concat(hidden ? ' hi-hide' : '')
|
|
69
|
-
}) : _react["default"].createElement("span", {
|
|
73
|
+
}) : /*#__PURE__*/_react["default"].createElement("span", {
|
|
70
74
|
className: "".concat(prefixCls, "-value").concat(hidden ? ' hi-hide' : '')
|
|
71
75
|
}, typeof +value === 'number' ? +value > max ? max + '+' : value : value));
|
|
72
76
|
}
|
package/es/button/Button.js
CHANGED
|
@@ -29,7 +29,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
29
29
|
|
|
30
30
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
31
31
|
|
|
32
|
-
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
32
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
33
33
|
|
|
34
34
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
35
35
|
|
|
@@ -39,26 +39,28 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
39
39
|
|
|
40
40
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
41
41
|
|
|
42
|
-
function
|
|
42
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
43
43
|
|
|
44
|
-
function
|
|
44
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
45
|
+
|
|
46
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
47
|
+
|
|
48
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
45
49
|
|
|
46
50
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
47
51
|
|
|
48
|
-
function
|
|
52
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
49
53
|
|
|
50
|
-
function
|
|
54
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
51
55
|
|
|
52
56
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
53
57
|
|
|
54
|
-
var Button =
|
|
55
|
-
/*#__PURE__*/
|
|
56
|
-
function (_Component) {
|
|
58
|
+
var Button = /*#__PURE__*/function (_Component) {
|
|
57
59
|
_inherits(Button, _Component);
|
|
58
60
|
|
|
59
|
-
|
|
60
|
-
var _getPrototypeOf2;
|
|
61
|
+
var _super = _createSuper(Button);
|
|
61
62
|
|
|
63
|
+
function Button() {
|
|
62
64
|
var _this;
|
|
63
65
|
|
|
64
66
|
_classCallCheck(this, Button);
|
|
@@ -67,7 +69,7 @@ function (_Component) {
|
|
|
67
69
|
args[_key] = arguments[_key];
|
|
68
70
|
}
|
|
69
71
|
|
|
70
|
-
_this =
|
|
72
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
71
73
|
|
|
72
74
|
_defineProperty(_assertThisInitialized(_this), "deprecatedProps", {
|
|
73
75
|
type: ['info'],
|
|
@@ -105,11 +107,11 @@ function (_Component) {
|
|
|
105
107
|
target: target
|
|
106
108
|
};
|
|
107
109
|
(0, _deprecatedPropsCheck["default"])(this.deprecatedProps, this.props, 'Button');
|
|
108
|
-
return _react["default"].createElement(ButtonWrapper, _extends({
|
|
110
|
+
return /*#__PURE__*/_react["default"].createElement(ButtonWrapper, _extends({
|
|
109
111
|
className: classes
|
|
110
|
-
}, restProps), loading && _react["default"].createElement(_IconLoading["default"], null), icon && !loading && _react["default"].createElement(_icon["default"], {
|
|
112
|
+
}, restProps), loading && /*#__PURE__*/_react["default"].createElement(_IconLoading["default"], null), icon && !loading && /*#__PURE__*/_react["default"].createElement(_icon["default"], {
|
|
111
113
|
name: icon
|
|
112
|
-
}), (icon || loading) && children && _react["default"].createElement("span", {
|
|
114
|
+
}), (icon || loading) && children && /*#__PURE__*/_react["default"].createElement("span", {
|
|
113
115
|
className: "hi-btn--icon__spacer"
|
|
114
116
|
}), children);
|
|
115
117
|
}
|
|
@@ -142,7 +144,7 @@ function ButtonWrapper(_ref) {
|
|
|
142
144
|
var children = _ref.children,
|
|
143
145
|
restProps = _objectWithoutProperties(_ref, ["children"]);
|
|
144
146
|
|
|
145
|
-
return restProps.href ? _react["default"].createElement("a", restProps, children) : _react["default"].createElement("button", _extends({}, restProps, {
|
|
147
|
+
return restProps.href ? /*#__PURE__*/_react["default"].createElement("a", restProps, children) : /*#__PURE__*/_react["default"].createElement("button", _extends({}, restProps, {
|
|
146
148
|
type: "button"
|
|
147
149
|
}), children);
|
|
148
150
|
}
|
package/es/button/ButtonGroup.js
CHANGED
|
@@ -15,7 +15,7 @@ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return
|
|
|
15
15
|
|
|
16
16
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
|
|
17
17
|
|
|
18
|
-
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
18
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
19
19
|
|
|
20
20
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
21
|
|
|
@@ -23,27 +23,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
23
23
|
|
|
24
24
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
25
25
|
|
|
26
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
27
|
+
|
|
28
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
|
+
|
|
30
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
|
+
|
|
26
32
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
27
33
|
|
|
28
34
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
29
35
|
|
|
30
|
-
function
|
|
36
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
31
37
|
|
|
32
|
-
function
|
|
33
|
-
|
|
34
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
38
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
35
39
|
|
|
36
40
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
37
41
|
|
|
38
|
-
var ButtonGroup =
|
|
39
|
-
/*#__PURE__*/
|
|
40
|
-
function (_Component) {
|
|
42
|
+
var ButtonGroup = /*#__PURE__*/function (_Component) {
|
|
41
43
|
_inherits(ButtonGroup, _Component);
|
|
42
44
|
|
|
45
|
+
var _super = _createSuper(ButtonGroup);
|
|
46
|
+
|
|
43
47
|
function ButtonGroup() {
|
|
44
48
|
_classCallCheck(this, ButtonGroup);
|
|
45
49
|
|
|
46
|
-
return
|
|
50
|
+
return _super.apply(this, arguments);
|
|
47
51
|
}
|
|
48
52
|
|
|
49
53
|
_createClass(ButtonGroup, [{
|
|
@@ -53,7 +57,7 @@ function (_Component) {
|
|
|
53
57
|
prefixCls = _this$props.prefixCls,
|
|
54
58
|
style = _this$props.style;
|
|
55
59
|
var classes = (0, _classnames["default"])("".concat(prefixCls));
|
|
56
|
-
return _react["default"].createElement("div", {
|
|
60
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
57
61
|
className: classes,
|
|
58
62
|
style: style
|
|
59
63
|
}, this.props.children);
|
package/es/button/IconLoading.js
CHANGED
|
@@ -11,17 +11,17 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
11
11
|
|
|
12
12
|
function IconLoading() {
|
|
13
13
|
var size = '0.8em';
|
|
14
|
-
return _react["default"].createElement("i", {
|
|
14
|
+
return /*#__PURE__*/_react["default"].createElement("i", {
|
|
15
15
|
className: "hi-icon hi-btn--loading--icon"
|
|
16
|
-
}, _react["default"].createElement("svg", {
|
|
16
|
+
}, /*#__PURE__*/_react["default"].createElement("svg", {
|
|
17
17
|
viewBox: "0 0 18 18",
|
|
18
18
|
width: size,
|
|
19
19
|
height: size,
|
|
20
20
|
fill: "currentColor"
|
|
21
|
-
}, _react["default"].createElement("g", null, _react["default"].createElement("path", {
|
|
21
|
+
}, /*#__PURE__*/_react["default"].createElement("g", null, /*#__PURE__*/_react["default"].createElement("path", {
|
|
22
22
|
d: "m9 18c-4.9706 0-9-4.0294-9-9 0-4.9706 4.0294-9 9-9 4.9706 0 9 4.0294 9 9 0 4.9706-4.0294 9-9 9zm0-2c3.866 0 7-3.134 7-7 0-3.866-3.134-7-7-7-3.866 0-7 3.134-7 7 0 3.866 3.134 7 7 7z",
|
|
23
23
|
opacity: ".15"
|
|
24
|
-
}), _react["default"].createElement("path", {
|
|
24
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
25
25
|
d: "m15.547 2.8242c0.37904 0.40168 0.36068 1.0346-0.040996 1.4136-0.40168 0.37904-1.0346 0.36068-1.4136-0.040996-1.315-1.3935-3.1381-2.1969-5.0922-2.1969-3.866 0-7 3.134-7 7 0 0.55228-0.44772 1-1 1s-1-0.44772-1-1c0-4.9706 4.0294-9 9-9 2.5103 0 4.8578 1.0343 6.5468 2.8242z"
|
|
26
26
|
}))));
|
|
27
27
|
}
|
|
@@ -19,7 +19,7 @@ describe('Dropdown', function () {
|
|
|
19
19
|
clickCallback.mockClear();
|
|
20
20
|
});
|
|
21
21
|
it('点击事件', function () {
|
|
22
|
-
wrapper = (0, _enzyme.mount)(_react["default"].createElement("div", null, _react["default"].createElement(_["default"], {
|
|
22
|
+
wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
23
23
|
onClick: clickCallback,
|
|
24
24
|
type: "primary"
|
|
25
25
|
}, "\u7A81\u51FA\u6309\u94AE")));
|
package/es/card/index.js
CHANGED
|
@@ -19,7 +19,7 @@ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return
|
|
|
19
19
|
|
|
20
20
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
|
|
21
21
|
|
|
22
|
-
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
22
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
23
23
|
|
|
24
24
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
25
|
|
|
@@ -27,27 +27,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
27
27
|
|
|
28
28
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
29
29
|
|
|
30
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
|
+
|
|
32
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
|
+
|
|
34
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
35
|
+
|
|
30
36
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
31
37
|
|
|
32
38
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
33
39
|
|
|
34
|
-
function
|
|
40
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
35
41
|
|
|
36
|
-
function
|
|
37
|
-
|
|
38
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
42
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
39
43
|
|
|
40
|
-
var Card =
|
|
41
|
-
/*#__PURE__*/
|
|
42
|
-
function (_Component) {
|
|
44
|
+
var Card = /*#__PURE__*/function (_Component) {
|
|
43
45
|
_inherits(Card, _Component);
|
|
44
46
|
|
|
47
|
+
var _super = _createSuper(Card);
|
|
48
|
+
|
|
45
49
|
function Card(props) {
|
|
46
50
|
var _this;
|
|
47
51
|
|
|
48
52
|
_classCallCheck(this, Card);
|
|
49
53
|
|
|
50
|
-
_this =
|
|
54
|
+
_this = _super.call(this, props);
|
|
51
55
|
_this.state = {
|
|
52
56
|
extraShow: props.extraShow === 'stay'
|
|
53
57
|
};
|
|
@@ -76,38 +80,38 @@ function (_Component) {
|
|
|
76
80
|
var coverCls = (0, _classnames["default"])('hi-card__content', cover && 'hi-card__content--cover');
|
|
77
81
|
var extraCls = (0, _classnames["default"])('hi-card__extra', !this.state.extraShow && 'hi-card__extra--hide');
|
|
78
82
|
|
|
79
|
-
var header = (title || extra) && _react["default"].createElement("div", {
|
|
83
|
+
var header = (title || extra) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
80
84
|
className: headerCls
|
|
81
|
-
}, _react["default"].createElement("div", {
|
|
85
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
82
86
|
className: "hi-card__title"
|
|
83
|
-
}, title), extra && _react["default"].createElement("div", {
|
|
87
|
+
}, title), extra && /*#__PURE__*/_react["default"].createElement("div", {
|
|
84
88
|
className: extraCls
|
|
85
89
|
}, extra));
|
|
86
90
|
|
|
87
|
-
var body = _react["default"].createElement(_react["default"].Fragment, null, header, _react["default"].createElement("div", {
|
|
91
|
+
var body = /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, header, /*#__PURE__*/_react["default"].createElement("div", {
|
|
88
92
|
className: coverCls
|
|
89
93
|
}, children));
|
|
90
94
|
|
|
91
95
|
var coverDom = null;
|
|
92
96
|
|
|
93
97
|
if (cover) {
|
|
94
|
-
coverDom = _react["default"].createElement(_react["default"].Fragment, null, _react["default"].cloneElement(cover, {
|
|
98
|
+
coverDom = /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].cloneElement(cover, {
|
|
95
99
|
style: {
|
|
96
100
|
width: '100%'
|
|
97
101
|
}
|
|
98
|
-
}), _react["default"].createElement("div", {
|
|
102
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
99
103
|
className: coverCls
|
|
100
104
|
}, header, description));
|
|
101
105
|
}
|
|
102
106
|
|
|
103
107
|
if (type === 'simple') {
|
|
104
|
-
body = _react["default"].createElement("div", {
|
|
108
|
+
body = /*#__PURE__*/_react["default"].createElement("div", {
|
|
105
109
|
className: "hi-card__content hi-card__content--simple"
|
|
106
110
|
}, children);
|
|
107
111
|
coverDom = null;
|
|
108
112
|
}
|
|
109
113
|
|
|
110
|
-
return _react["default"].createElement("div", {
|
|
114
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
111
115
|
className: cls,
|
|
112
116
|
style: style,
|
|
113
117
|
onMouseEnter: function onMouseEnter() {
|
package/es/cascader/Cascader.js
CHANGED
|
@@ -29,7 +29,7 @@ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return
|
|
|
29
29
|
|
|
30
30
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
|
|
31
31
|
|
|
32
|
-
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
32
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
33
33
|
|
|
34
34
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
35
35
|
|
|
@@ -37,29 +37,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
37
37
|
|
|
38
38
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
39
39
|
|
|
40
|
-
function
|
|
40
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
41
41
|
|
|
42
|
-
function
|
|
42
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
43
|
+
|
|
44
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
45
|
+
|
|
46
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
43
47
|
|
|
44
48
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
45
49
|
|
|
46
|
-
function
|
|
50
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
47
51
|
|
|
48
|
-
function
|
|
52
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
49
53
|
|
|
50
54
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
51
55
|
|
|
52
|
-
var Cascader =
|
|
53
|
-
/*#__PURE__*/
|
|
54
|
-
function (_Component) {
|
|
56
|
+
var Cascader = /*#__PURE__*/function (_Component) {
|
|
55
57
|
_inherits(Cascader, _Component);
|
|
56
58
|
|
|
59
|
+
var _super = _createSuper(Cascader);
|
|
60
|
+
|
|
57
61
|
function Cascader(props) {
|
|
58
62
|
var _this;
|
|
59
63
|
|
|
60
64
|
_classCallCheck(this, Cascader);
|
|
61
65
|
|
|
62
|
-
_this =
|
|
66
|
+
_this = _super.call(this, props);
|
|
63
67
|
var cascaderValue = _this.props.value;
|
|
64
68
|
var cacheValue = _this.props.value;
|
|
65
69
|
|
|
@@ -310,7 +314,7 @@ function (_Component) {
|
|
|
310
314
|
}, _defineProperty(_jointOption, labelKey, []), _defineProperty(_jointOption, valueKey, []), _jointOption);
|
|
311
315
|
options.map(function (option, index) {
|
|
312
316
|
if (index !== 0) {
|
|
313
|
-
jointOption[labelKey].push(_react["default"].createElement("span", {
|
|
317
|
+
jointOption[labelKey].push( /*#__PURE__*/_react["default"].createElement("span", {
|
|
314
318
|
className: "hi-cascader-menu__item--label-split",
|
|
315
319
|
key: "split-".concat(index)
|
|
316
320
|
}, "/"));
|
|
@@ -330,10 +334,10 @@ function (_Component) {
|
|
|
330
334
|
key: "hightlightKeyword",
|
|
331
335
|
value: function hightlightKeyword(text, keyword, uniqueKey) {
|
|
332
336
|
var parts = text.split(new RegExp("(".concat(keyword, ")"), 'gi'));
|
|
333
|
-
return _react["default"].createElement("span", {
|
|
337
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
334
338
|
key: uniqueKey
|
|
335
339
|
}, parts.map(function (part, i) {
|
|
336
|
-
return _react["default"].createElement("span", {
|
|
340
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
337
341
|
key: i,
|
|
338
342
|
className: part === keyword ? 'hi-cascader-menu__item--label-hightlight' : ''
|
|
339
343
|
}, part);
|
|
@@ -392,16 +396,16 @@ function (_Component) {
|
|
|
392
396
|
};
|
|
393
397
|
var expandIcon = popperShow ? 'icon-up' : 'icon-down';
|
|
394
398
|
var placeholder = cascaderLabel || this.localeDatasProps('placeholder');
|
|
395
|
-
return _react["default"].createElement("div", {
|
|
399
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
396
400
|
className: (0, _classnames["default"])('hi-cascader', className, extraClass),
|
|
397
401
|
style: style
|
|
398
|
-
}, _react["default"].createElement("div", {
|
|
402
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
399
403
|
className: "hi-cascader__input-container",
|
|
400
404
|
ref: function ref(node) {
|
|
401
405
|
_this5.inputContainer = node;
|
|
402
406
|
},
|
|
403
407
|
onClick: this.handleClick.bind(this)
|
|
404
|
-
}, _react["default"].createElement("input", {
|
|
408
|
+
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
405
409
|
ref: function ref(node) {
|
|
406
410
|
_this5.inputRef = node;
|
|
407
411
|
},
|
|
@@ -416,14 +420,14 @@ function (_Component) {
|
|
|
416
420
|
});
|
|
417
421
|
},
|
|
418
422
|
onKeyUp: this.debouncedKeywordChange.bind(this)
|
|
419
|
-
}), _react["default"].createElement("span", {
|
|
423
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
420
424
|
className: "hi-cascader__icon"
|
|
421
|
-
}, _react["default"].createElement("i", {
|
|
425
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
422
426
|
className: (0, _classnames["default"])('hi-cascader__icon--expand', 'hi-icon', expandIcon)
|
|
423
|
-
}), clearable && _react["default"].createElement("i", {
|
|
427
|
+
}), clearable && /*#__PURE__*/_react["default"].createElement("i", {
|
|
424
428
|
className: "hi-cascader__icon--clear hi-icon icon-close-circle",
|
|
425
429
|
onClick: this.clearValue.bind(this)
|
|
426
|
-
}))), _react["default"].createElement(_popper["default"], {
|
|
430
|
+
}))), /*#__PURE__*/_react["default"].createElement(_popper["default"], {
|
|
427
431
|
show: popperShow,
|
|
428
432
|
attachEle: this.inputContainer,
|
|
429
433
|
zIndex: 1050,
|
|
@@ -431,7 +435,7 @@ function (_Component) {
|
|
|
431
435
|
width: 'auto',
|
|
432
436
|
className: "hi-cascader__popper",
|
|
433
437
|
placement: "top-bottom-start"
|
|
434
|
-
}, _react["default"].createElement(_menu["default"], {
|
|
438
|
+
}, /*#__PURE__*/_react["default"].createElement(_menu["default"], {
|
|
435
439
|
ref: function ref(node) {
|
|
436
440
|
_this5.menuNode = node;
|
|
437
441
|
},
|