@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/es/ficon/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
11
|
|
|
12
|
-
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); }
|
|
12
|
+
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); }
|
|
13
13
|
|
|
14
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
15
|
|
|
@@ -17,25 +17,29 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
17
17
|
|
|
18
18
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
19
19
|
|
|
20
|
+
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); }
|
|
21
|
+
|
|
22
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
23
|
+
|
|
24
|
+
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); }; }
|
|
25
|
+
|
|
20
26
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
21
27
|
|
|
22
28
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
23
29
|
|
|
24
|
-
function
|
|
30
|
+
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; } }
|
|
25
31
|
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
32
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
29
33
|
|
|
30
|
-
var Ficon =
|
|
31
|
-
/*#__PURE__*/
|
|
32
|
-
function (_React$Component) {
|
|
34
|
+
var Ficon = /*#__PURE__*/function (_React$Component) {
|
|
33
35
|
_inherits(Ficon, _React$Component);
|
|
34
36
|
|
|
37
|
+
var _super = _createSuper(Ficon);
|
|
38
|
+
|
|
35
39
|
function Ficon() {
|
|
36
40
|
_classCallCheck(this, Ficon);
|
|
37
41
|
|
|
38
|
-
return
|
|
42
|
+
return _super.apply(this, arguments);
|
|
39
43
|
}
|
|
40
44
|
|
|
41
45
|
_createClass(Ficon, [{
|
|
@@ -46,7 +50,7 @@ function (_React$Component) {
|
|
|
46
50
|
name = _this$props.name,
|
|
47
51
|
style = _this$props.style;
|
|
48
52
|
var classes = "hi-fa fa-".concat(name, " ").concat(className || '');
|
|
49
|
-
return _react["default"].createElement("i", {
|
|
53
|
+
return /*#__PURE__*/_react["default"].createElement("i", {
|
|
50
54
|
className: classes,
|
|
51
55
|
style: {
|
|
52
56
|
style: style
|
package/es/form/index.js
CHANGED
|
@@ -21,7 +21,7 @@ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return
|
|
|
21
21
|
|
|
22
22
|
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; }
|
|
23
23
|
|
|
24
|
-
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); }
|
|
24
|
+
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); }
|
|
25
25
|
|
|
26
26
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
27
27
|
|
|
@@ -29,29 +29,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
29
29
|
|
|
30
30
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
31
31
|
|
|
32
|
+
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); }
|
|
33
|
+
|
|
34
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
35
|
+
|
|
36
|
+
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); }; }
|
|
37
|
+
|
|
32
38
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
33
39
|
|
|
34
40
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
41
|
|
|
36
|
-
function
|
|
42
|
+
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; } }
|
|
37
43
|
|
|
38
|
-
function
|
|
39
|
-
|
|
40
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
44
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
45
|
|
|
42
46
|
var PropTypes = require('prop-types');
|
|
43
47
|
|
|
44
|
-
var Form =
|
|
45
|
-
/*#__PURE__*/
|
|
46
|
-
function (_Component) {
|
|
48
|
+
var Form = /*#__PURE__*/function (_Component) {
|
|
47
49
|
_inherits(Form, _Component);
|
|
48
50
|
|
|
51
|
+
var _super = _createSuper(Form);
|
|
52
|
+
|
|
49
53
|
function Form(props) {
|
|
50
54
|
var _this;
|
|
51
55
|
|
|
52
56
|
_classCallCheck(this, Form);
|
|
53
57
|
|
|
54
|
-
_this =
|
|
58
|
+
_this = _super.call(this, props);
|
|
55
59
|
_this.state = {
|
|
56
60
|
fields: []
|
|
57
61
|
};
|
|
@@ -150,7 +154,7 @@ function (_Component) {
|
|
|
150
154
|
key: "render",
|
|
151
155
|
value: function render() {
|
|
152
156
|
var children = this.props.children;
|
|
153
|
-
return _react["default"].createElement("form", {
|
|
157
|
+
return /*#__PURE__*/_react["default"].createElement("form", {
|
|
154
158
|
className: (0, _classnames["default"])('hi-form', this.getClassNames())
|
|
155
159
|
}, children);
|
|
156
160
|
}
|
package/es/form/item.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 _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; }
|
|
25
25
|
|
|
@@ -29,27 +29,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
29
29
|
|
|
30
30
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
31
31
|
|
|
32
|
+
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); }
|
|
33
|
+
|
|
34
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
35
|
+
|
|
36
|
+
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); }; }
|
|
37
|
+
|
|
32
38
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
33
39
|
|
|
34
40
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
41
|
|
|
36
|
-
function
|
|
42
|
+
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; } }
|
|
37
43
|
|
|
38
|
-
function
|
|
39
|
-
|
|
40
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
44
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
45
|
|
|
42
|
-
var FormItem =
|
|
43
|
-
/*#__PURE__*/
|
|
44
|
-
function (_Component) {
|
|
46
|
+
var FormItem = /*#__PURE__*/function (_Component) {
|
|
45
47
|
_inherits(FormItem, _Component);
|
|
46
48
|
|
|
49
|
+
var _super = _createSuper(FormItem);
|
|
50
|
+
|
|
47
51
|
function FormItem(props, context) {
|
|
48
52
|
var _this;
|
|
49
53
|
|
|
50
54
|
_classCallCheck(this, FormItem);
|
|
51
55
|
|
|
52
|
-
_this =
|
|
56
|
+
_this = _super.call(this, props);
|
|
53
57
|
_this.state = {
|
|
54
58
|
error: '',
|
|
55
59
|
valid: false,
|
|
@@ -221,21 +225,21 @@ function (_Component) {
|
|
|
221
225
|
obj['hi-form-item__error'] = error !== '';
|
|
222
226
|
obj['hi-form-item--validating'] = validating;
|
|
223
227
|
obj['hi-form-item--required'] = this.isRequired() || required;
|
|
224
|
-
return _react["default"].createElement("div", {
|
|
228
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
225
229
|
className: (0, _classnames["default"])('hi-form-item', className, obj)
|
|
226
|
-
}, label || label === '' ? _react["default"].createElement("label", {
|
|
230
|
+
}, label || label === '' ? /*#__PURE__*/_react["default"].createElement("label", {
|
|
227
231
|
className: "hi-form-item__label",
|
|
228
232
|
style: {
|
|
229
233
|
width: this.labelWidth
|
|
230
234
|
}
|
|
231
|
-
}, typeof label === 'string' && label.trim(), shouldShowColon && colon) : _react["default"].createElement("span", {
|
|
235
|
+
}, typeof label === 'string' && label.trim(), shouldShowColon && colon) : /*#__PURE__*/_react["default"].createElement("span", {
|
|
232
236
|
className: "hi-form-item__span",
|
|
233
237
|
style: {
|
|
234
238
|
width: this.labelWidth
|
|
235
239
|
}
|
|
236
|
-
}), _react["default"].createElement("div", {
|
|
240
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
237
241
|
className: 'hi-form-item' + '__content'
|
|
238
|
-
}, Array.isArray(children) || !children ? children : _react["default"].cloneElement(children, {
|
|
242
|
+
}, Array.isArray(children) || !children ? children : /*#__PURE__*/_react["default"].cloneElement(children, {
|
|
239
243
|
onChange: function onChange() {
|
|
240
244
|
var _children$props;
|
|
241
245
|
|
|
@@ -252,7 +256,7 @@ function (_Component) {
|
|
|
252
256
|
_this3.handleFieldBlur();
|
|
253
257
|
});
|
|
254
258
|
}
|
|
255
|
-
}), _react["default"].createElement("div", {
|
|
259
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
256
260
|
className: "hi-form-item--msg__error"
|
|
257
261
|
}, error)));
|
|
258
262
|
}
|
package/es/grid/index.js
CHANGED
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return
|
|
|
17
17
|
|
|
18
18
|
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; }
|
|
19
19
|
|
|
20
|
-
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); }
|
|
20
|
+
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); }
|
|
21
21
|
|
|
22
22
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
23
|
|
|
@@ -25,27 +25,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
25
25
|
|
|
26
26
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
27
27
|
|
|
28
|
+
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); }
|
|
29
|
+
|
|
30
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
|
+
|
|
32
|
+
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); }; }
|
|
33
|
+
|
|
28
34
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
29
35
|
|
|
30
36
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
31
37
|
|
|
32
|
-
function
|
|
38
|
+
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; } }
|
|
33
39
|
|
|
34
|
-
function
|
|
35
|
-
|
|
36
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
40
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
37
41
|
|
|
38
42
|
var PropTypes = require('prop-types');
|
|
39
43
|
|
|
40
|
-
var Col =
|
|
41
|
-
/*#__PURE__*/
|
|
42
|
-
function (_Component) {
|
|
44
|
+
var Col = /*#__PURE__*/function (_Component) {
|
|
43
45
|
_inherits(Col, _Component);
|
|
44
46
|
|
|
47
|
+
var _super = _createSuper(Col);
|
|
48
|
+
|
|
45
49
|
function Col() {
|
|
46
50
|
_classCallCheck(this, Col);
|
|
47
51
|
|
|
48
|
-
return
|
|
52
|
+
return _super.apply(this, arguments);
|
|
49
53
|
}
|
|
50
54
|
|
|
51
55
|
_createClass(Col, [{
|
|
@@ -77,7 +81,7 @@ function (_Component) {
|
|
|
77
81
|
});
|
|
78
82
|
}
|
|
79
83
|
|
|
80
|
-
return _react["default"].createElement("div", {
|
|
84
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
81
85
|
id: "".concat(id || ''),
|
|
82
86
|
className: "".concat(colClass, " ").concat(className || ''),
|
|
83
87
|
style: style
|
|
@@ -92,15 +96,15 @@ Col.contextTypes = {
|
|
|
92
96
|
gutter: PropTypes.bool
|
|
93
97
|
};
|
|
94
98
|
|
|
95
|
-
var Row =
|
|
96
|
-
/*#__PURE__*/
|
|
97
|
-
function (_Component2) {
|
|
99
|
+
var Row = /*#__PURE__*/function (_Component2) {
|
|
98
100
|
_inherits(Row, _Component2);
|
|
99
101
|
|
|
102
|
+
var _super2 = _createSuper(Row);
|
|
103
|
+
|
|
100
104
|
function Row() {
|
|
101
105
|
_classCallCheck(this, Row);
|
|
102
106
|
|
|
103
|
-
return
|
|
107
|
+
return _super2.apply(this, arguments);
|
|
104
108
|
}
|
|
105
109
|
|
|
106
110
|
_createClass(Row, [{
|
|
@@ -132,7 +136,7 @@ function (_Component2) {
|
|
|
132
136
|
});
|
|
133
137
|
}
|
|
134
138
|
|
|
135
|
-
return _react["default"].createElement("div", {
|
|
139
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
136
140
|
id: "".concat(id || ''),
|
|
137
141
|
className: "".concat(rowClass, " ").concat(className || ''),
|
|
138
142
|
style: style
|
|
@@ -147,15 +151,15 @@ Row.childContextTypes = {
|
|
|
147
151
|
gutter: PropTypes.bool
|
|
148
152
|
};
|
|
149
153
|
|
|
150
|
-
var Br =
|
|
151
|
-
/*#__PURE__*/
|
|
152
|
-
function (_Component3) {
|
|
154
|
+
var Br = /*#__PURE__*/function (_Component3) {
|
|
153
155
|
_inherits(Br, _Component3);
|
|
154
156
|
|
|
157
|
+
var _super3 = _createSuper(Br);
|
|
158
|
+
|
|
155
159
|
function Br() {
|
|
156
160
|
_classCallCheck(this, Br);
|
|
157
161
|
|
|
158
|
-
return
|
|
162
|
+
return _super3.apply(this, arguments);
|
|
159
163
|
}
|
|
160
164
|
|
|
161
165
|
_createClass(Br, [{
|
|
@@ -167,7 +171,7 @@ function (_Component3) {
|
|
|
167
171
|
_this$props3$style = _this$props3.style,
|
|
168
172
|
style = _this$props3$style === void 0 ? {} : _this$props3$style;
|
|
169
173
|
style.height = parseInt(height) + 'px';
|
|
170
|
-
return _react["default"].createElement("div", {
|
|
174
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
171
175
|
style: style
|
|
172
176
|
});
|
|
173
177
|
}
|
package/es/icon/index.js
CHANGED
|
@@ -11,7 +11,7 @@ require("./style/index");
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
13
|
|
|
14
|
-
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); }
|
|
14
|
+
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); }
|
|
15
15
|
|
|
16
16
|
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); }
|
|
17
17
|
|
|
@@ -25,25 +25,29 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
25
25
|
|
|
26
26
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
27
27
|
|
|
28
|
+
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); }
|
|
29
|
+
|
|
30
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
|
+
|
|
32
|
+
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); }; }
|
|
33
|
+
|
|
28
34
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
29
35
|
|
|
30
36
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
31
37
|
|
|
32
|
-
function
|
|
38
|
+
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; } }
|
|
33
39
|
|
|
34
|
-
function
|
|
35
|
-
|
|
36
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
40
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
37
41
|
|
|
38
|
-
var Icon =
|
|
39
|
-
/*#__PURE__*/
|
|
40
|
-
function (_React$Component) {
|
|
42
|
+
var Icon = /*#__PURE__*/function (_React$Component) {
|
|
41
43
|
_inherits(Icon, _React$Component);
|
|
42
44
|
|
|
45
|
+
var _super = _createSuper(Icon);
|
|
46
|
+
|
|
43
47
|
function Icon() {
|
|
44
48
|
_classCallCheck(this, Icon);
|
|
45
49
|
|
|
46
|
-
return
|
|
50
|
+
return _super.apply(this, arguments);
|
|
47
51
|
}
|
|
48
52
|
|
|
49
53
|
_createClass(Icon, [{
|
|
@@ -56,7 +60,7 @@ function (_React$Component) {
|
|
|
56
60
|
rest = _objectWithoutProperties(_this$props, ["className", "name", "style"]);
|
|
57
61
|
|
|
58
62
|
var classes = "hi-icon icon-".concat(name, " ").concat(className || '');
|
|
59
|
-
return _react["default"].createElement("i", _extends({
|
|
63
|
+
return /*#__PURE__*/_react["default"].createElement("i", _extends({
|
|
60
64
|
className: classes,
|
|
61
65
|
style: style
|
|
62
66
|
}, rest));
|
package/es/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
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); }
|
|
3
|
+
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); }
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
package/es/input/index.js
CHANGED
|
@@ -21,7 +21,7 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
|
|
|
21
21
|
|
|
22
22
|
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); }
|
|
23
23
|
|
|
24
|
-
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); }
|
|
24
|
+
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); }
|
|
25
25
|
|
|
26
26
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
27
27
|
|
|
@@ -29,15 +29,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
29
29
|
|
|
30
30
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
31
31
|
|
|
32
|
+
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); }
|
|
33
|
+
|
|
34
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
35
|
+
|
|
36
|
+
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); }; }
|
|
37
|
+
|
|
32
38
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
33
39
|
|
|
34
40
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
41
|
|
|
36
|
-
function
|
|
42
|
+
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; } }
|
|
37
43
|
|
|
38
|
-
function
|
|
39
|
-
|
|
40
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
44
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
45
|
|
|
42
46
|
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; }
|
|
43
47
|
|
|
@@ -45,17 +49,17 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
45
49
|
* 自定义属性全小写;原声属性驼峰法
|
|
46
50
|
* @prop type 输入框类型
|
|
47
51
|
*/
|
|
48
|
-
var Input =
|
|
49
|
-
/*#__PURE__*/
|
|
50
|
-
function (_Component) {
|
|
52
|
+
var Input = /*#__PURE__*/function (_Component) {
|
|
51
53
|
_inherits(Input, _Component);
|
|
52
54
|
|
|
55
|
+
var _super = _createSuper(Input);
|
|
56
|
+
|
|
53
57
|
function Input(props) {
|
|
54
58
|
var _this;
|
|
55
59
|
|
|
56
60
|
_classCallCheck(this, Input);
|
|
57
61
|
|
|
58
|
-
_this =
|
|
62
|
+
_this = _super.call(this, props); // 传入属性
|
|
59
63
|
|
|
60
64
|
var commonAttrs = {
|
|
61
65
|
type: 'text',
|
|
@@ -120,22 +124,22 @@ function (_Component) {
|
|
|
120
124
|
var noClear = ['textarea'];
|
|
121
125
|
var prefixId = id ? id + '_prefix' : '';
|
|
122
126
|
var suffixId = id ? id + '_suffix' : '';
|
|
123
|
-
return _react["default"].createElement("div", {
|
|
127
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
124
128
|
className: (0, _classnames["default"])('hi-input__out', {
|
|
125
129
|
'hi-input--prepend': prepend,
|
|
126
130
|
'hi-input--append': append
|
|
127
131
|
})
|
|
128
132
|
}, // 前置元素
|
|
129
|
-
prepend && _react["default"].createElement("span", {
|
|
133
|
+
prepend && /*#__PURE__*/_react["default"].createElement("span", {
|
|
130
134
|
className: "hi-input__prepend"
|
|
131
|
-
}, prepend), _react["default"].createElement("div", {
|
|
135
|
+
}, prepend), /*#__PURE__*/_react["default"].createElement("div", {
|
|
132
136
|
className: "hi-input__inner".concat(active ? ' active' : '').concat(disabled ? ' disabled' : '')
|
|
133
137
|
}, // 前缀
|
|
134
|
-
prefix && _react["default"].createElement("span", {
|
|
138
|
+
prefix && /*#__PURE__*/_react["default"].createElement("span", {
|
|
135
139
|
id: prefixId,
|
|
136
140
|
className: "hi-input__prefix",
|
|
137
141
|
"data-value": prefix
|
|
138
|
-
}, prefix), _react["default"].createElement("input", _extends({
|
|
142
|
+
}, prefix), /*#__PURE__*/_react["default"].createElement("input", _extends({
|
|
139
143
|
ref: function ref(arg) {
|
|
140
144
|
_this2._Input = arg;
|
|
141
145
|
},
|
|
@@ -210,7 +214,7 @@ function (_Component) {
|
|
|
210
214
|
_this2.props.onInput && _this2.props.onInput(e, valueTrue);
|
|
211
215
|
}
|
|
212
216
|
})), // 清除
|
|
213
|
-
noClear.indexOf(type) === -1 && typeof prefix === 'undefined' && typeof suffix === 'undefined' && value !== '' && _react["default"].createElement("span", {
|
|
217
|
+
noClear.indexOf(type) === -1 && typeof prefix === 'undefined' && typeof suffix === 'undefined' && value !== '' && /*#__PURE__*/_react["default"].createElement("span", {
|
|
214
218
|
className: "hi-input__fix-box ".concat(hover && !disabled ? '' : 'invisible'),
|
|
215
219
|
onClick: function onClick() {
|
|
216
220
|
_this2._Input.focus();
|
|
@@ -229,15 +233,15 @@ function (_Component) {
|
|
|
229
233
|
_this2.props.onChange && _this2.props.onChange(e, '');
|
|
230
234
|
});
|
|
231
235
|
}
|
|
232
|
-
}, _react["default"].createElement("i", {
|
|
236
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
233
237
|
className: "hi-input__clear hi-input__suffix__icon hi-icon icon-close-circle"
|
|
234
238
|
})), // 后缀
|
|
235
|
-
suffix && _react["default"].createElement("span", {
|
|
239
|
+
suffix && /*#__PURE__*/_react["default"].createElement("span", {
|
|
236
240
|
id: suffixId,
|
|
237
241
|
className: "hi-input__suffix",
|
|
238
242
|
"data-value": suffix
|
|
239
243
|
}, suffix)), // 后置元素
|
|
240
|
-
append && _react["default"].createElement("span", {
|
|
244
|
+
append && /*#__PURE__*/_react["default"].createElement("span", {
|
|
241
245
|
className: "hi-input__append"
|
|
242
246
|
}, append));
|
|
243
247
|
}
|
|
@@ -252,7 +256,7 @@ function (_Component) {
|
|
|
252
256
|
|
|
253
257
|
var active = this.state.active;
|
|
254
258
|
var disabled = this.props.disabled;
|
|
255
|
-
return _react["default"].createElement("textarea", _extends({
|
|
259
|
+
return /*#__PURE__*/_react["default"].createElement("textarea", _extends({
|
|
256
260
|
className: "hi-input ".concat(active ? 'active' : '', " ").concat(disabled ? 'disabled' : ''),
|
|
257
261
|
style: this.props.style,
|
|
258
262
|
autoComplete: "off",
|
|
@@ -329,7 +333,7 @@ function (_Component) {
|
|
|
329
333
|
id = _this$props2.id,
|
|
330
334
|
className = _this$props2.className,
|
|
331
335
|
required = _this$props2.required;
|
|
332
|
-
return type === 'textarea' ? this.renderTextarea() : _react["default"].createElement("div", {
|
|
336
|
+
return type === 'textarea' ? this.renderTextarea() : /*#__PURE__*/_react["default"].createElement("div", {
|
|
333
337
|
id: id,
|
|
334
338
|
className: "hi-input ".concat(className || '', " ").concat(type || '').concat(size ? ' hi-input_' + size : '').concat(required ? ' required' : ''),
|
|
335
339
|
style: this.props.style,
|