@hi-ui/hiui 2.15.9 → 2.15.11
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 +8 -0
- package/es/_util/warning.js +2 -2
- package/es/alert/__test__/index.test.js +67 -0
- package/es/alert/index.js +147 -6
- package/es/alert/style/index.css +1 -1
- package/es/badge/index.js +87 -9
- package/es/badge/style/index.css +1 -1
- package/es/badge/style/index.js +0 -0
- package/es/button/Button.js +52 -56
- package/es/button/ButtonGroup.js +32 -20
- package/es/button/IconLoading.js +2 -2
- package/es/button/__test__/index.test.js +29 -0
- package/es/button/index.js +2 -3
- package/es/button/style/index.css +1 -1
- package/es/card/index.js +43 -51
- package/es/card/style/index.css +1 -1
- package/es/cascader/Cascader.js +117 -178
- package/es/cascader/__test__/index.test.js +283 -0
- package/es/cascader/index.js +2 -5
- package/es/cascader/menu.js +155 -0
- package/es/cascader/style/cascader.css +1 -1
- package/es/cascader/style/menu.css +1 -1
- package/es/checkbox/{checkbox-legacy/Base.js → Base.js} +32 -43
- package/es/checkbox/{checkbox-legacy/CheckBox.js → CheckBox.js} +47 -23
- package/es/checkbox/index.js +4 -13
- package/es/checkbox/style/index.css +1 -1
- package/es/collapse/__test__/index.test.js +58 -0
- package/es/collapse/index.js +94 -76
- package/es/collapse/style/index.css +1 -1
- package/es/confirm/index.js +51 -34
- package/es/context/index.js +38 -36
- package/es/counter/__test__/index.test.js +52 -0
- package/es/counter/index.js +270 -6
- package/es/counter/style/index.css +1 -1
- package/es/date-picker/BasePicker.js +289 -371
- package/es/date-picker/Calender.js +90 -322
- package/es/date-picker/DatePanel.js +187 -172
- package/es/date-picker/DatePicker.js +51 -151
- package/es/date-picker/DateRangePanel.js +182 -250
- package/es/date-picker/Modal.js +24 -14
- package/es/date-picker/Time.js +337 -227
- package/es/date-picker/TimePanel.js +33 -24
- package/es/date-picker/TimePeriodPanel.js +33 -18
- package/es/date-picker/TimePicker.js +39 -41
- package/es/date-picker/TimeRangePanel.js +43 -29
- package/es/date-picker/Type.js +1 -5
- package/es/date-picker/WeekRangePanel.js +152 -235
- package/es/date-picker/constants.js +28 -14
- package/es/date-picker/dateUtil.js +52 -221
- package/es/date-picker/index.js +2 -5
- package/es/date-picker/style/index.css +1 -1
- package/es/date-picker/util.js +8 -101
- package/es/dropdown/Dropdown.js +200 -190
- package/es/dropdown/{tests → __test__}/index.test.js +2 -2
- package/es/dropdown/index.js +4 -69
- package/es/dropdown/style/index.css +1 -1
- package/es/dropdown/style/index.js +2 -0
- package/es/ficon/index.js +22 -12
- package/es/form/index.js +171 -6
- package/es/form/{Item.js → item.js} +48 -44
- package/es/form/style/index.css +1 -1
- package/es/grid/index.js +38 -22
- package/es/icon/index.js +31 -20
- package/es/index.js +9 -61
- package/es/input/index.js +347 -26
- package/es/input/style/index.css +1 -1
- package/es/input/util.js +18 -26
- package/es/lib/withDragDropContext.js +2 -2
- package/es/loading/index.js +129 -5
- package/es/loading/style/index.css +0 -0
- package/es/loading/style/index.js +0 -0
- package/es/locales/en-US.js +11 -45
- package/es/locales/index.js +2 -16
- package/es/locales/zh-CN.js +12 -46
- package/es/menu/Item.js +42 -29
- package/es/menu/ItemGroup.js +81 -0
- package/es/menu/SubMenu.js +75 -52
- package/es/menu/Title.js +43 -33
- package/es/menu/index.js +419 -12
- package/es/menu/style/index.css +1 -1
- package/es/modal/__test__/index.test.js +123 -0
- package/es/modal/index.js +62 -74
- package/es/modal/style/index.css +1 -1
- package/es/nav-menu/NavMenu.js +46 -28
- package/es/nav-menu/__test__/index.test.js +2 -2
- package/es/nav-menu/index.js +2 -2
- package/es/notification/__test__/index.test.js +56 -0
- package/es/notification/index.js +231 -68
- package/es/notification/style/index.css +1 -1
- package/es/notification/style/index.js +0 -0
- package/es/pagination/Pager.js +8 -6
- package/es/pagination/Pagination.js +116 -121
- package/es/pagination/__test__/index.test.js +140 -0
- package/es/pagination/index.js +8 -9
- package/es/pagination/style/index.css +1 -1
- package/es/panel/index.js +34 -20
- package/es/popover/__test__/index.test.js +2 -2
- package/es/popover/index.js +70 -68
- package/es/popper/index.js +55 -61
- package/es/popper/style/index.css +1 -1
- package/es/progress/BarProgress.js +43 -109
- package/es/progress/CircleProgress.js +10 -9
- package/es/progress/DashboardProgress.js +9 -7
- package/es/progress/index.js +100 -8
- package/es/progress/style/index.css +1 -1
- package/es/radio/{radio-legacy/__test__ → __test__}/index.test.js +10 -10
- package/es/radio/index.js +216 -10
- package/es/radio/style/index.css +1 -1
- package/es/rate/Icons.js +2 -2
- package/es/rate/Rate.js +91 -62
- package/es/rate/__test__/index.test.js +54 -0
- package/es/rate/index.js +2 -5
- package/es/rate/style/index.css +1 -1
- package/es/select/Option.js +93 -0
- package/es/select/Select.js +253 -321
- package/es/select/SelectDropdown.js +64 -212
- package/es/select/SelectInput.js +55 -85
- package/es/select/__test__/index.test.js +429 -0
- package/es/select/index.js +4 -6
- package/es/select/style/select-dropdown.css +1 -1
- package/es/select/style/select-input.css +1 -1
- package/es/stepper/index.js +127 -21
- package/es/stepper/style/index.css +1 -1
- package/es/style/color/colors.css +0 -0
- package/es/style/icon/diyIcon.css +1 -1
- package/es/style/icon/index.css +1 -1
- package/es/style/index.css +0 -0
- package/es/style/mixins/colors.css +0 -0
- package/es/style/mixins/index.css +0 -0
- package/es/style/theme/dark.css +0 -0
- package/es/style/theme/default.css +0 -0
- package/es/switch/{__tests__ → __test__}/index.test.js +2 -31
- package/es/switch/index.js +37 -21
- package/es/switch/style/index.css +1 -1
- package/es/table/__test__/index.test.js +73 -0
- package/es/table/{Body.js → body.js} +53 -33
- package/es/table/checkbox/index.js +37 -30
- package/es/table/clickOuterside.js +115 -0
- package/es/table/{Footer.js → footer.js} +42 -21
- package/es/table/{Header.js → header.js} +55 -38
- package/es/table/index.js +269 -227
- package/es/table/menu/index.js +35 -29
- package/es/table/pover.js +154 -0
- package/es/table/prefix.js +2 -2
- package/es/table/style/Table.css +1 -1
- package/es/table/style/index.css +1 -1
- package/es/table/tableContent.js +120 -0
- package/es/tabs/ItemDropdown.js +52 -36
- package/es/tabs/TabPane.js +36 -22
- package/es/tabs/Tabs.js +92 -95
- package/es/tabs/index.js +3 -9
- package/es/tabs/style/index.css +1 -1
- package/es/timeline/__test__/index.test.js +49 -0
- package/es/timeline/foldingItem.js +82 -0
- package/es/timeline/index.js +128 -200
- package/es/timeline/style/index.css +1 -1
- package/es/tooltip/__test__/index.test.js +67 -0
- package/es/tooltip/index.js +40 -83
- package/es/tooltip/style/index.css +1 -1
- package/es/transfer/Item.js +45 -50
- package/es/transfer/__test__/index.test.js +11 -0
- package/es/transfer/index.js +443 -4
- package/es/transfer/style/index.css +1 -1
- package/es/tree/Tree.js +87 -73
- package/es/tree/TreeDivider.js +3 -3
- package/es/tree/TreeItem.js +110 -204
- package/es/tree/TreeNode.js +318 -453
- package/es/tree/index.js +2 -9
- package/es/tree/style/index.css +1 -1
- package/es/tree/util.js +256 -8
- package/es/upload/{upload-legacy/Preview.js → Preview.js} +38 -28
- package/es/upload/Upload.js +193 -285
- package/es/upload/UploadAvatar.js +56 -42
- package/es/upload/UploadClick.js +44 -48
- package/es/upload/UploadDrag.js +42 -43
- package/es/upload/UploadPhoto.js +54 -69
- package/es/upload/UploadPictureCard.js +43 -38
- package/es/upload/index.js +71 -8
- package/es/upload/style/index.css +1 -1
- package/es/upload/tool.js +1 -0
- package/package.json +4 -1
- package/es/_util/SwitchVersion.js +0 -40
- package/es/_util/depreactedPropsCompat.js +0 -58
- package/es/_util/index.js +0 -31
- package/es/alert/Alert.js +0 -130
- package/es/alert/__tests__/index.test.js +0 -84
- package/es/badge/Badge.js +0 -86
- package/es/badge/__tests__/index.test.js +0 -82
- package/es/breadcrumb/__tests__/index.test.js +0 -61
- package/es/breadcrumb/index.js +0 -89
- package/es/breadcrumb/style/index.css +0 -1
- package/es/button/__tests__/index.test.js +0 -221
- package/es/card/__tests__/index.test.js +0 -180
- package/es/carousel/__tests__/index.test.js +0 -104
- package/es/carousel/index.js +0 -223
- package/es/carousel/style/index.css +0 -1
- package/es/carousel/style/index.js +0 -3
- package/es/cascader/Menu.js +0 -170
- package/es/cascader/__tests__/index.test.js +0 -393
- package/es/checkbox/Checkbox.js +0 -140
- package/es/checkbox/Group.js +0 -198
- package/es/checkbox/__tests__/index.test.js +0 -226
- package/es/checkbox/checkbox-legacy/index.js +0 -15
- package/es/checkbox/checkbox-legacy/style/index.css +0 -1
- package/es/checkbox/checkbox-legacy/style/index.js +0 -3
- package/es/collapse/__tests__/index.test.js +0 -111
- package/es/counter/Counter.js +0 -343
- package/es/counter/__tests__/index.test.js +0 -134
- package/es/counter/counter-legacy/index.js +0 -271
- package/es/date-picker/TimeList.js +0 -250
- package/es/date-picker/YMRangePanel.js +0 -368
- package/es/date-picker/__tests__/index.test.js +0 -957
- package/es/date-picker/datepicker-legacy/BasePicker.js +0 -515
- package/es/date-picker/datepicker-legacy/Calender.js +0 -426
- package/es/date-picker/datepicker-legacy/DatePanel.js +0 -459
- package/es/date-picker/datepicker-legacy/DatePicker.js +0 -107
- package/es/date-picker/datepicker-legacy/DateRangePanel.js +0 -492
- package/es/date-picker/datepicker-legacy/Modal.js +0 -71
- package/es/date-picker/datepicker-legacy/Time.js +0 -409
- package/es/date-picker/datepicker-legacy/TimePanel.js +0 -89
- package/es/date-picker/datepicker-legacy/TimePeriodPanel.js +0 -122
- package/es/date-picker/datepicker-legacy/TimePicker.js +0 -82
- package/es/date-picker/datepicker-legacy/TimeRangePanel.js +0 -94
- package/es/date-picker/datepicker-legacy/Type.js +0 -31
- package/es/date-picker/datepicker-legacy/WeekRangePanel.js +0 -341
- package/es/date-picker/datepicker-legacy/constants.js +0 -79
- package/es/date-picker/datepicker-legacy/dateUtil.js +0 -258
- package/es/date-picker/datepicker-legacy/index.js +0 -15
- package/es/date-picker/datepicker-legacy/local.js +0 -11
- package/es/date-picker/datepicker-legacy/style/index.css +0 -1
- package/es/date-picker/datepicker-legacy/style/index.js +0 -3
- package/es/date-picker/datepicker-legacy/style/timepicker.css +0 -1
- package/es/date-picker/datepicker-legacy/util.js +0 -60
- package/es/date-picker/toLunar.js +0 -172
- package/es/dropdown/DropdownButton.js +0 -106
- package/es/dropdown/DropdownMenu.js +0 -111
- package/es/dropdown/DropdownMenuItem.js +0 -174
- package/es/dropdown/__tests__/index.test.js +0 -313
- package/es/dropdown/utils.js +0 -35
- package/es/form/Form.js +0 -180
- package/es/form/__tests__/index.test.js +0 -575
- package/es/grid/__tests__/index.test.js +0 -100
- package/es/input/Input.js +0 -408
- package/es/input/__tests__/index.test.js +0 -377
- package/es/input/input-legacy/index.js +0 -349
- package/es/input/input-legacy/util.js +0 -176
- package/es/loading/Loading.js +0 -177
- package/es/loading/__tests__/index.test.js +0 -110
- package/es/locales/zh-Hant-HK.js +0 -121
- package/es/locales/zh-Hant-TW.js +0 -123
- package/es/menu/Menu.js +0 -418
- package/es/menu/__tests__/index.test.js +0 -275
- package/es/message/__tests__/index.test.js +0 -71
- package/es/message/index.js +0 -58
- package/es/message/style/index.css +0 -1
- package/es/message/style/index.js +0 -5
- package/es/modal/__tests__/index.test.js +0 -178
- package/es/nav-menu/__tests__/index.test.js +0 -23
- package/es/notice/Notice.js +0 -138
- package/es/notice/NoticeContainer.js +0 -109
- package/es/notice/__tests__/index.test.js +0 -174
- package/es/notice/index.js +0 -66
- package/es/notice/style/index.css +0 -1
- package/es/notice/style/index.js +0 -5
- package/es/notification/HandleNotification/index.js +0 -220
- package/es/notification/HandleNotification/style/index.css +0 -1
- package/es/notification/HandleNotification/style/index.js +0 -5
- package/es/notification/__tests__/index.test.js +0 -114
- package/es/pagination/__tests__/index.test.js +0 -244
- package/es/popover/__tests__/index.test.js +0 -152
- package/es/preview/index.js +0 -523
- package/es/preview/style/index.css +0 -1
- package/es/preview/style/index.js +0 -3
- package/es/progress/Progress.js +0 -106
- package/es/progress/__tests__/index.test.js +0 -131
- package/es/radio/Group.js +0 -203
- package/es/radio/Radio.js +0 -151
- package/es/radio/__tests__/index.test.js +0 -128
- package/es/radio/radio-legacy/index.js +0 -218
- package/es/radio/radio-legacy/style/index.css +0 -1
- package/es/radio/radio-legacy/style/index.js +0 -3
- package/es/rate/__tests__/index.test.js +0 -124
- package/es/select/__tests__/index.test.js +0 -505
- package/es/select/select-legacy/Option.js +0 -81
- package/es/select/select-legacy/Select.js +0 -706
- package/es/select/select-legacy/SelectDropdown.js +0 -160
- package/es/select/select-legacy/SelectInput.js +0 -308
- package/es/select/select-legacy/common.js +0 -19
- package/es/select/select-legacy/index.js +0 -16
- package/es/stepper/Stepper.js +0 -151
- package/es/stepper/__tests__/index.test.js +0 -161
- package/es/table/ClickOuterside.js +0 -99
- package/es/table/TableContent.js +0 -105
- package/es/table/__tests__/index.test.js +0 -129
- package/es/table/checkbox/style/index.css +0 -1
- package/es/table/checkbox/style/index.js +0 -3
- package/es/tabs/__tests__/index.test.js +0 -333
- package/es/tabs/tabs-legacy/ItemDropdown.js +0 -166
- package/es/tabs/tabs-legacy/TabPane.js +0 -74
- package/es/tabs/tabs-legacy/Tabs.js +0 -295
- package/es/tabs/tabs-legacy/index.js +0 -18
- package/es/tabs/tabs-legacy/style/index.css +0 -1
- package/es/tabs/tabs-legacy/style/index.js +0 -3
- package/es/tag/__tests__/index.test.js +0 -46
- package/es/tag/index.js +0 -90
- package/es/tag/style/index.css +0 -1
- package/es/tag/style/index.js +0 -3
- package/es/timeline/__tests__/index.test.js +0 -198
- package/es/tooltip/__tests__/index.test.js +0 -170
- package/es/transfer/Transfer.js +0 -562
- package/es/transfer/__tests__/index.test.js +0 -210
- package/es/tree/IconLoading.js +0 -38
- package/es/tree/__tests__/index.test.js +0 -603
- package/es/tree/tree-legacy/Tree.js +0 -333
- package/es/tree/tree-legacy/TreeDivider.js +0 -25
- package/es/tree/tree-legacy/TreeItem.js +0 -329
- package/es/tree/tree-legacy/TreeNode.js +0 -715
- package/es/tree/tree-legacy/index.js +0 -13
- package/es/tree/tree-legacy/style/index.css +0 -1
- package/es/tree/tree-legacy/style/index.js +0 -3
- package/es/tree/tree-legacy/util.js +0 -434
- package/es/upload/__tests__/index.test.js +0 -760
- package/es/upload/main.js +0 -87
- package/es/upload/upload-legacy/Upload.js +0 -435
- package/es/upload/upload-legacy/UploadAvatar.js +0 -322
- package/es/upload/upload-legacy/UploadClick.js +0 -125
- package/es/upload/upload-legacy/UploadDrag.js +0 -180
- package/es/upload/upload-legacy/UploadPhoto.js +0 -183
- package/es/upload/upload-legacy/UploadPictureCard.js +0 -126
- package/es/upload/upload-legacy/index.js +0 -71
- package/es/upload/upload-legacy/style/index.css +0 -1
- package/es/upload/upload-legacy/style/index.js +0 -5
- package/es/upload/upload-legacy/tool.js +0 -84
- package/es/watermark/index.js +0 -101
- package/es/watermark/watermark.js +0 -252
- package/test/coverage/coverage-summary.json +0 -123
- package/test/coverage/lcov-report/Cascader.js.html +0 -1341
- package/test/coverage/lcov-report/Item.js.html +0 -402
- package/test/coverage/lcov-report/Menu.js.html +0 -372
- package/test/coverage/lcov-report/Select.js.html +0 -1983
- package/test/coverage/lcov-report/SelectDropdown.js.html +0 -468
- package/test/coverage/lcov-report/SelectInput.js.html +0 -885
- package/test/coverage/lcov-report/Transfer.js.html +0 -1347
- 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 -423
- 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/common.js.html +0 -105
- package/test/coverage/lcov-report/components/_util/SwitchVersion.js.html +0 -117
- package/test/coverage/lcov-report/components/_util/depreactedPropsCompat.js.html +0 -180
- package/test/coverage/lcov-report/components/_util/deprecatedPropsCheck.js.html +0 -120
- package/test/coverage/lcov-report/components/_util/index.html +0 -149
- package/test/coverage/lcov-report/components/_util/index.js.html +0 -75
- package/test/coverage/lcov-report/components/_util/warning.js.html +0 -96
- package/test/coverage/lcov-report/components/alert/Alert.js.html +0 -303
- package/test/coverage/lcov-report/components/alert/index.html +0 -110
- package/test/coverage/lcov-report/components/alert/index.js.html +0 -93
- package/test/coverage/lcov-report/components/badge/Badge.js.html +0 -195
- package/test/coverage/lcov-report/components/badge/index.html +0 -110
- package/test/coverage/lcov-report/components/badge/index.js.html +0 -96
- package/test/coverage/lcov-report/components/breadcrumb/index.html +0 -97
- package/test/coverage/lcov-report/components/breadcrumb/index.js.html +0 -165
- package/test/coverage/lcov-report/components/button/Button.js.html +0 -429
- package/test/coverage/lcov-report/components/button/ButtonGroup.js.html +0 -129
- package/test/coverage/lcov-report/components/button/IconLoading.js.html +0 -123
- package/test/coverage/lcov-report/components/button/index.html +0 -136
- package/test/coverage/lcov-report/components/button/index.js.html +0 -90
- package/test/coverage/lcov-report/components/card/index.html +0 -97
- package/test/coverage/lcov-report/components/card/index.js.html +0 -444
- package/test/coverage/lcov-report/components/carousel/index.html +0 -97
- package/test/coverage/lcov-report/components/carousel/index.js.html +0 -609
- package/test/coverage/lcov-report/components/cascader/Cascader.js.html +0 -1239
- package/test/coverage/lcov-report/components/cascader/Menu.js.html +0 -375
- package/test/coverage/lcov-report/components/cascader/index.html +0 -123
- package/test/coverage/lcov-report/components/cascader/index.js.html +0 -96
- package/test/coverage/lcov-report/components/checkbox/Checkbox.js.html +0 -360
- package/test/coverage/lcov-report/components/checkbox/Group.js.html +0 -423
- package/test/coverage/lcov-report/components/checkbox/index.html +0 -123
- package/test/coverage/lcov-report/components/checkbox/index.js.html +0 -105
- package/test/coverage/lcov-report/components/collapse/index.html +0 -97
- package/test/coverage/lcov-report/components/collapse/index.js.html +0 -432
- package/test/coverage/lcov-report/components/confirm/index.html +0 -97
- package/test/coverage/lcov-report/components/confirm/index.js.html +0 -288
- package/test/coverage/lcov-report/components/context/index.html +0 -97
- package/test/coverage/lcov-report/components/context/index.js.html +0 -252
- package/test/coverage/lcov-report/components/counter/Counter.js.html +0 -864
- package/test/coverage/lcov-report/components/counter/index.html +0 -110
- package/test/coverage/lcov-report/components/counter/index.js.html +0 -87
- package/test/coverage/lcov-report/components/date-picker/BasePicker.js.html +0 -1185
- package/test/coverage/lcov-report/components/date-picker/Calender.js.html +0 -975
- package/test/coverage/lcov-report/components/date-picker/DatePanel.js.html +0 -945
- package/test/coverage/lcov-report/components/date-picker/DatePicker.js.html +0 -231
- package/test/coverage/lcov-report/components/date-picker/DateRangePanel.js.html +0 -1017
- package/test/coverage/lcov-report/components/date-picker/Modal.js.html +0 -150
- package/test/coverage/lcov-report/components/date-picker/Time.js.html +0 -537
- package/test/coverage/lcov-report/components/date-picker/TimeList.js.html +0 -459
- package/test/coverage/lcov-report/components/date-picker/TimePanel.js.html +0 -195
- package/test/coverage/lcov-report/components/date-picker/TimePeriodPanel.js.html +0 -264
- package/test/coverage/lcov-report/components/date-picker/TimePicker.js.html +0 -225
- package/test/coverage/lcov-report/components/date-picker/TimeRangePanel.js.html +0 -165
- package/test/coverage/lcov-report/components/date-picker/Type.js.html +0 -144
- package/test/coverage/lcov-report/components/date-picker/WeekRangePanel.js.html +0 -618
- package/test/coverage/lcov-report/components/date-picker/constants.js.html +0 -228
- package/test/coverage/lcov-report/components/date-picker/dateUtil.js.html +0 -453
- package/test/coverage/lcov-report/components/date-picker/index.html +0 -331
- package/test/coverage/lcov-report/components/date-picker/index.js.html +0 -90
- package/test/coverage/lcov-report/components/date-picker/local.js.html +0 -81
- package/test/coverage/lcov-report/components/date-picker/util.js.html +0 -168
- package/test/coverage/lcov-report/components/dropdown/Dropdown.jsx.html +0 -507
- package/test/coverage/lcov-report/components/dropdown/DropdownButton.jsx.html +0 -285
- package/test/coverage/lcov-report/components/dropdown/DropdownMenu.jsx.html +0 -276
- package/test/coverage/lcov-report/components/dropdown/DropdownMenuItem.jsx.html +0 -402
- package/test/coverage/lcov-report/components/dropdown/index.html +0 -162
- package/test/coverage/lcov-report/components/dropdown/index.js.html +0 -201
- package/test/coverage/lcov-report/components/dropdown/tests/index.html +0 -97
- package/test/coverage/lcov-report/components/dropdown/tests/index.test.js.html +0 -261
- package/test/coverage/lcov-report/components/dropdown/utils.js.html +0 -126
- package/test/coverage/lcov-report/components/ficon/index.html +0 -97
- package/test/coverage/lcov-report/components/ficon/index.js.html +0 -126
- package/test/coverage/lcov-report/components/form/Form.js.html +0 -426
- package/test/coverage/lcov-report/components/form/Item.js.html +0 -732
- package/test/coverage/lcov-report/components/form/index.html +0 -123
- package/test/coverage/lcov-report/components/form/index.js.html +0 -93
- package/test/coverage/lcov-report/components/grid/index.html +0 -97
- package/test/coverage/lcov-report/components/grid/index.js.html +0 -357
- package/test/coverage/lcov-report/components/icon/index.html +0 -97
- package/test/coverage/lcov-report/components/icon/index.js.html +0 -114
- package/test/coverage/lcov-report/components/index.html +0 -97
- package/test/coverage/lcov-report/components/index.js.html +0 -207
- package/test/coverage/lcov-report/components/input/Input.js.html +0 -1035
- package/test/coverage/lcov-report/components/input/index.html +0 -123
- package/test/coverage/lcov-report/components/input/index.js.html +0 -90
- package/test/coverage/lcov-report/components/input/util.js.html +0 -498
- package/test/coverage/lcov-report/components/lib/index.html +0 -97
- package/test/coverage/lcov-report/components/lib/withDragDropContext.js.html +0 -81
- package/test/coverage/lcov-report/components/loading/Loading.js.html +0 -429
- package/test/coverage/lcov-report/components/loading/index.html +0 -110
- package/test/coverage/lcov-report/components/loading/index.js.html +0 -84
- package/test/coverage/lcov-report/components/locales/en-US.js.html +0 -339
- package/test/coverage/lcov-report/components/locales/index.html +0 -123
- package/test/coverage/lcov-report/components/locales/index.js.html +0 -90
- package/test/coverage/lcov-report/components/locales/zh-CN.js.html +0 -342
- package/test/coverage/lcov-report/components/menu/Item.js.html +0 -219
- package/test/coverage/lcov-report/components/menu/Menu.js.html +0 -1035
- package/test/coverage/lcov-report/components/menu/SubMenu.js.html +0 -558
- package/test/coverage/lcov-report/components/menu/Title.js.html +0 -201
- package/test/coverage/lcov-report/components/menu/index.html +0 -149
- package/test/coverage/lcov-report/components/menu/index.js.html +0 -105
- package/test/coverage/lcov-report/components/message/index.html +0 -97
- package/test/coverage/lcov-report/components/message/index.js.html +0 -198
- package/test/coverage/lcov-report/components/modal/index.html +0 -97
- package/test/coverage/lcov-report/components/modal/index.js.html +0 -534
- package/test/coverage/lcov-report/components/nav-menu/NavMenu.js.html +0 -702
- package/test/coverage/lcov-report/components/nav-menu/index.html +0 -110
- package/test/coverage/lcov-report/components/nav-menu/index.js.html +0 -81
- package/test/coverage/lcov-report/components/notice/Notice.js.html +0 -243
- package/test/coverage/lcov-report/components/notice/NoticeContainer.js.html +0 -219
- package/test/coverage/lcov-report/components/notice/index.html +0 -123
- package/test/coverage/lcov-report/components/notice/index.js.html +0 -168
- package/test/coverage/lcov-report/components/notification/HandleNotification/index.html +0 -97
- package/test/coverage/lcov-report/components/notification/HandleNotification/index.js.html +0 -534
- package/test/coverage/lcov-report/components/notification/index.html +0 -97
- package/test/coverage/lcov-report/components/notification/index.js.html +0 -282
- package/test/coverage/lcov-report/components/pagination/Pager.js.html +0 -204
- package/test/coverage/lcov-report/components/pagination/Pagination.js.html +0 -1338
- package/test/coverage/lcov-report/components/pagination/index.html +0 -123
- package/test/coverage/lcov-report/components/pagination/index.js.html +0 -102
- package/test/coverage/lcov-report/components/panel/index.html +0 -97
- package/test/coverage/lcov-report/components/panel/index.js.html +0 -189
- package/test/coverage/lcov-report/components/popover/index.html +0 -97
- package/test/coverage/lcov-report/components/popover/index.js.html +0 -510
- package/test/coverage/lcov-report/components/popper/index.html +0 -97
- package/test/coverage/lcov-report/components/popper/index.js.html +0 -666
- package/test/coverage/lcov-report/components/progress/BarProgress.js.html +0 -186
- package/test/coverage/lcov-report/components/progress/CircleProgress.js.html +0 -168
- package/test/coverage/lcov-report/components/progress/DashboardProgress.js.html +0 -222
- package/test/coverage/lcov-report/components/progress/Progress.js.html +0 -219
- package/test/coverage/lcov-report/components/progress/index.html +0 -149
- package/test/coverage/lcov-report/components/progress/index.js.html +0 -102
- package/test/coverage/lcov-report/components/radio/Group.js.html +0 -447
- package/test/coverage/lcov-report/components/radio/Radio.js.html +0 -399
- package/test/coverage/lcov-report/components/radio/index.html +0 -123
- package/test/coverage/lcov-report/components/radio/index.js.html +0 -105
- package/test/coverage/lcov-report/components/rate/Icons.js.html +0 -999
- package/test/coverage/lcov-report/components/rate/Rate.js.html +0 -579
- package/test/coverage/lcov-report/components/rate/index.html +0 -123
- package/test/coverage/lcov-report/components/rate/index.js.html +0 -84
- package/test/coverage/lcov-report/components/select/Select.js.html +0 -1968
- package/test/coverage/lcov-report/components/select/SelectDropdown.js.html +0 -468
- package/test/coverage/lcov-report/components/select/SelectInput.js.html +0 -885
- package/test/coverage/lcov-report/components/select/common.js.html +0 -105
- package/test/coverage/lcov-report/components/select/index.html +0 -149
- package/test/coverage/lcov-report/components/select/index.js.html +0 -87
- package/test/coverage/lcov-report/components/stepper/Stepper.js.html +0 -366
- package/test/coverage/lcov-report/components/stepper/index.html +0 -110
- package/test/coverage/lcov-report/components/stepper/index.js.html +0 -162
- package/test/coverage/lcov-report/components/switch/__tests__/__snapshots__/index.html +0 -97
- package/test/coverage/lcov-report/components/switch/__tests__/__snapshots__/index.test.js.snap.html +0 -171
- package/test/coverage/lcov-report/components/switch/index.html +0 -97
- package/test/coverage/lcov-report/components/switch/index.js.html +0 -282
- package/test/coverage/lcov-report/components/table/Body.js.html +0 -588
- package/test/coverage/lcov-report/components/table/ClickOuterside.js.html +0 -201
- package/test/coverage/lcov-report/components/table/Footer.js.html +0 -435
- package/test/coverage/lcov-report/components/table/Header.js.html +0 -480
- package/test/coverage/lcov-report/components/table/Pover.js.html +0 -288
- package/test/coverage/lcov-report/components/table/TableContent.js.html +0 -204
- package/test/coverage/lcov-report/components/table/checkbox/index.html +0 -97
- package/test/coverage/lcov-report/components/table/checkbox/index.js.html +0 -213
- package/test/coverage/lcov-report/components/table/index.html +0 -201
- package/test/coverage/lcov-report/components/table/index.js.html +0 -3078
- package/test/coverage/lcov-report/components/table/menu/index.html +0 -97
- package/test/coverage/lcov-report/components/table/menu/index.js.html +0 -207
- package/test/coverage/lcov-report/components/table/prefix.js.html +0 -87
- package/test/coverage/lcov-report/components/table/tool.js.html +0 -387
- package/test/coverage/lcov-report/components/tabs/ItemDropdown.js.html +0 -387
- package/test/coverage/lcov-report/components/tabs/TabPane.js.html +0 -162
- package/test/coverage/lcov-report/components/tabs/Tabs.js.html +0 -795
- package/test/coverage/lcov-report/components/tabs/index.html +0 -136
- package/test/coverage/lcov-report/components/tabs/index.js.html +0 -108
- package/test/coverage/lcov-report/components/tag/index.html +0 -97
- package/test/coverage/lcov-report/components/tag/index.js.html +0 -216
- package/test/coverage/lcov-report/components/timeline/FoldingItem.js.html +0 -135
- package/test/coverage/lcov-report/components/timeline/index.html +0 -110
- package/test/coverage/lcov-report/components/timeline/index.js.html +0 -435
- package/test/coverage/lcov-report/components/tooltip/index.html +0 -97
- package/test/coverage/lcov-report/components/tooltip/index.js.html +0 -501
- package/test/coverage/lcov-report/components/transfer/Item.js.html +0 -402
- package/test/coverage/lcov-report/components/transfer/Transfer.js.html +0 -1347
- package/test/coverage/lcov-report/components/transfer/index.html +0 -123
- package/test/coverage/lcov-report/components/transfer/index.js.html +0 -81
- package/test/coverage/lcov-report/components/tree/IconLoading.js.html +0 -123
- package/test/coverage/lcov-report/components/tree/Tree.js.html +0 -810
- package/test/coverage/lcov-report/components/tree/TreeDivider.js.html +0 -120
- package/test/coverage/lcov-report/components/tree/TreeItem.js.html +0 -1092
- package/test/coverage/lcov-report/components/tree/TreeNode.js.html +0 -2061
- package/test/coverage/lcov-report/components/tree/index.html +0 -175
- package/test/coverage/lcov-report/components/tree/index.js.html +0 -84
- package/test/coverage/lcov-report/components/tree/util.js.html +0 -1026
- package/test/coverage/lcov-report/components/upload/Preview.js.html +0 -960
- package/test/coverage/lcov-report/components/upload/Upload.js.html +0 -999
- package/test/coverage/lcov-report/components/upload/UploadAvatar.js.html +0 -795
- package/test/coverage/lcov-report/components/upload/UploadClick.js.html +0 -351
- package/test/coverage/lcov-report/components/upload/UploadDrag.js.html +0 -543
- package/test/coverage/lcov-report/components/upload/UploadPhoto.js.html +0 -465
- package/test/coverage/lcov-report/components/upload/UploadPictureCard.js.html +0 -345
- package/test/coverage/lcov-report/components/upload/index.html +0 -214
- package/test/coverage/lcov-report/components/upload/index.js.html +0 -87
- package/test/coverage/lcov-report/components/upload/main.js.html +0 -153
- package/test/coverage/lcov-report/components/upload/tool.js.html +0 -276
- 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 -828
- 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 -87
- package/test/coverage/lcov-report/index.test.js.snap.html +0 -171
- package/test/coverage/lcov-report/input/Input.js.html +0 -1035
- 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 -1035
- package/test/coverage/lcov-report/menu/SubMenu.js.html +0 -558
- package/test/coverage/lcov-report/menu/Title.js.html +0 -201
- 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/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 -666
- 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/select/Select.js.html +0 -1983
- 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/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 -1347
- 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 -1092
- 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 -492
- package/test/coverage/lcov-report/upload/UploadPictureCard.js.html +0 -369
- 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.info +0 -10535
- /package/es/checkbox/{checkbox-legacy/common.js → common.js} +0 -0
- /package/es/{breadcrumb/style → style}/index.js +0 -0
- /package/es/upload/{upload-legacy/style → style}/preview.css +0 -0
- /package/es/upload/{upload-legacy/style → style}/preview.js +0 -0
package/es/icon/index.js
CHANGED
|
@@ -1,61 +1,72 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports["default"] = void 0;
|
|
9
7
|
|
|
10
|
-
var
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
12
|
-
|
|
10
|
+
require("./style/index");
|
|
13
11
|
|
|
14
|
-
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
13
|
|
|
16
|
-
|
|
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); }
|
|
17
15
|
|
|
18
|
-
var
|
|
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); }
|
|
19
17
|
|
|
20
|
-
var
|
|
18
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
21
19
|
|
|
22
|
-
var
|
|
20
|
+
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; }
|
|
23
21
|
|
|
24
|
-
|
|
22
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
23
|
|
|
26
|
-
var
|
|
24
|
+
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); } }
|
|
27
25
|
|
|
28
|
-
|
|
26
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
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); }
|
|
29
31
|
|
|
30
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (
|
|
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
|
+
|
|
34
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
35
|
+
|
|
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
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
|
|
|
40
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
|
+
|
|
34
42
|
var Icon = /*#__PURE__*/function (_React$Component) {
|
|
35
|
-
(
|
|
43
|
+
_inherits(Icon, _React$Component);
|
|
36
44
|
|
|
37
45
|
var _super = _createSuper(Icon);
|
|
38
46
|
|
|
39
47
|
function Icon() {
|
|
40
|
-
(
|
|
48
|
+
_classCallCheck(this, Icon);
|
|
49
|
+
|
|
41
50
|
return _super.apply(this, arguments);
|
|
42
51
|
}
|
|
43
52
|
|
|
44
|
-
(
|
|
53
|
+
_createClass(Icon, [{
|
|
45
54
|
key: "render",
|
|
46
55
|
value: function render() {
|
|
47
56
|
var _this$props = this.props,
|
|
48
57
|
className = _this$props.className,
|
|
49
58
|
name = _this$props.name,
|
|
50
59
|
style = _this$props.style,
|
|
51
|
-
rest = (
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
60
|
+
rest = _objectWithoutProperties(_this$props, ["className", "name", "style"]);
|
|
61
|
+
|
|
62
|
+
var classes = "hi-icon icon-".concat(name, " ").concat(className || '');
|
|
63
|
+
return /*#__PURE__*/_react["default"].createElement("i", _extends({
|
|
64
|
+
className: classes,
|
|
55
65
|
style: style
|
|
56
66
|
}, rest));
|
|
57
67
|
}
|
|
58
68
|
}]);
|
|
69
|
+
|
|
59
70
|
return Icon;
|
|
60
71
|
}(_react["default"].Component);
|
|
61
72
|
|
package/es/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
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
|
|
@@ -44,7 +44,7 @@ Object.defineProperty(exports, "Notification", {
|
|
|
44
44
|
Object.defineProperty(exports, "handleNotificate", {
|
|
45
45
|
enumerable: true,
|
|
46
46
|
get: function get() {
|
|
47
|
-
return
|
|
47
|
+
return _notification.handleNotificate;
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "Modal", {
|
|
@@ -95,12 +95,6 @@ Object.defineProperty(exports, "Popover", {
|
|
|
95
95
|
return _popover["default"];
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
|
-
Object.defineProperty(exports, "Popper", {
|
|
99
|
-
enumerable: true,
|
|
100
|
-
get: function get() {
|
|
101
|
-
return _popper["default"];
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
98
|
Object.defineProperty(exports, "Loading", {
|
|
105
99
|
enumerable: true,
|
|
106
100
|
get: function get() {
|
|
@@ -206,7 +200,7 @@ Object.defineProperty(exports, "Menu", {
|
|
|
206
200
|
Object.defineProperty(exports, "FormItem", {
|
|
207
201
|
enumerable: true,
|
|
208
202
|
get: function get() {
|
|
209
|
-
return
|
|
203
|
+
return _item["default"];
|
|
210
204
|
}
|
|
211
205
|
});
|
|
212
206
|
Object.defineProperty(exports, "Ficon", {
|
|
@@ -257,42 +251,6 @@ Object.defineProperty(exports, "Rate", {
|
|
|
257
251
|
return _rate["default"];
|
|
258
252
|
}
|
|
259
253
|
});
|
|
260
|
-
Object.defineProperty(exports, "Message", {
|
|
261
|
-
enumerable: true,
|
|
262
|
-
get: function get() {
|
|
263
|
-
return _message["default"];
|
|
264
|
-
}
|
|
265
|
-
});
|
|
266
|
-
Object.defineProperty(exports, "Tag", {
|
|
267
|
-
enumerable: true,
|
|
268
|
-
get: function get() {
|
|
269
|
-
return _tag["default"];
|
|
270
|
-
}
|
|
271
|
-
});
|
|
272
|
-
Object.defineProperty(exports, "Breadcrumb", {
|
|
273
|
-
enumerable: true,
|
|
274
|
-
get: function get() {
|
|
275
|
-
return _breadcrumb["default"];
|
|
276
|
-
}
|
|
277
|
-
});
|
|
278
|
-
Object.defineProperty(exports, "Carousel", {
|
|
279
|
-
enumerable: true,
|
|
280
|
-
get: function get() {
|
|
281
|
-
return _carousel["default"];
|
|
282
|
-
}
|
|
283
|
-
});
|
|
284
|
-
Object.defineProperty(exports, "Watermark", {
|
|
285
|
-
enumerable: true,
|
|
286
|
-
get: function get() {
|
|
287
|
-
return _watermark["default"];
|
|
288
|
-
}
|
|
289
|
-
});
|
|
290
|
-
Object.defineProperty(exports, "Preview", {
|
|
291
|
-
enumerable: true,
|
|
292
|
-
get: function get() {
|
|
293
|
-
return _preview["default"];
|
|
294
|
-
}
|
|
295
|
-
});
|
|
296
254
|
Object.defineProperty(exports, "ThemeContext", {
|
|
297
255
|
enumerable: true,
|
|
298
256
|
get: function get() {
|
|
@@ -316,9 +274,7 @@ var _tabs = _interopRequireDefault(require("./tabs"));
|
|
|
316
274
|
|
|
317
275
|
var _table = _interopRequireDefault(require("./table"));
|
|
318
276
|
|
|
319
|
-
var _notification =
|
|
320
|
-
|
|
321
|
-
var _HandleNotification = _interopRequireDefault(require("./notification/HandleNotification"));
|
|
277
|
+
var _notification = _interopRequireWildcard(require("./notification"));
|
|
322
278
|
|
|
323
279
|
var _modal = _interopRequireDefault(require("./modal"));
|
|
324
280
|
|
|
@@ -336,8 +292,6 @@ var _tooltip = _interopRequireDefault(require("./tooltip"));
|
|
|
336
292
|
|
|
337
293
|
var _popover = _interopRequireDefault(require("./popover"));
|
|
338
294
|
|
|
339
|
-
var _popper = _interopRequireDefault(require("./popper"));
|
|
340
|
-
|
|
341
295
|
var _loading = _interopRequireDefault(require("./loading"));
|
|
342
296
|
|
|
343
297
|
var _upload = _interopRequireDefault(require("./upload"));
|
|
@@ -370,7 +324,7 @@ var _form = _interopRequireDefault(require("./form"));
|
|
|
370
324
|
|
|
371
325
|
var _menu = _interopRequireDefault(require("./menu"));
|
|
372
326
|
|
|
373
|
-
var
|
|
327
|
+
var _item = _interopRequireDefault(require("./form/item"));
|
|
374
328
|
|
|
375
329
|
var _ficon = _interopRequireDefault(require("./ficon"));
|
|
376
330
|
|
|
@@ -388,16 +342,10 @@ var _switch = _interopRequireDefault(require("./switch"));
|
|
|
388
342
|
|
|
389
343
|
var _rate = _interopRequireDefault(require("./rate"));
|
|
390
344
|
|
|
391
|
-
var
|
|
392
|
-
|
|
393
|
-
var _tag = _interopRequireDefault(require("./tag"));
|
|
394
|
-
|
|
395
|
-
var _breadcrumb = _interopRequireDefault(require("./breadcrumb"));
|
|
396
|
-
|
|
397
|
-
var _carousel = _interopRequireDefault(require("./carousel"));
|
|
345
|
+
var _context = require("./context");
|
|
398
346
|
|
|
399
|
-
|
|
347
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
400
348
|
|
|
401
|
-
var
|
|
349
|
+
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; }
|
|
402
350
|
|
|
403
|
-
|
|
351
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
package/es/input/index.js
CHANGED
|
@@ -1,43 +1,364 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
3
|
Object.defineProperty(exports, "__esModule", {
|
|
8
4
|
value: true
|
|
9
5
|
});
|
|
10
|
-
Object.defineProperty(exports, "Input", {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function get() {
|
|
13
|
-
return _Input["default"];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
6
|
exports["default"] = void 0;
|
|
17
7
|
|
|
18
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
19
|
-
|
|
20
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
21
9
|
|
|
22
|
-
var
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _util = require("./util");
|
|
23
13
|
|
|
24
14
|
require("./style/index");
|
|
25
15
|
|
|
26
|
-
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
19
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
26
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
27
|
+
|
|
28
|
+
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); } }
|
|
29
|
+
|
|
30
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
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
|
+
|
|
38
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
39
|
+
|
|
40
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
41
|
+
|
|
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; } }
|
|
43
|
+
|
|
44
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
45
|
+
|
|
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; }
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* 自定义属性全小写;原声属性驼峰法
|
|
50
|
+
* @prop type 输入框类型
|
|
51
|
+
*/
|
|
52
|
+
var Input = /*#__PURE__*/function (_Component) {
|
|
53
|
+
_inherits(Input, _Component);
|
|
54
|
+
|
|
55
|
+
var _super = _createSuper(Input);
|
|
56
|
+
|
|
57
|
+
function Input(props) {
|
|
58
|
+
var _this;
|
|
59
|
+
|
|
60
|
+
_classCallCheck(this, Input);
|
|
61
|
+
|
|
62
|
+
_this = _super.call(this, props); // 传入属性
|
|
63
|
+
|
|
64
|
+
var commonAttrs = {
|
|
65
|
+
type: 'text',
|
|
66
|
+
size: 'm',
|
|
67
|
+
prefixicon: '',
|
|
68
|
+
suffixicon: '',
|
|
69
|
+
prefix: '',
|
|
70
|
+
suffix: ''
|
|
71
|
+
};
|
|
72
|
+
var oldProps = Object.assign({}, commonAttrs, _this.props);
|
|
73
|
+
var newProps = (0, _util.getAttrs)(oldProps); // 分离有效属性和事件
|
|
74
|
+
|
|
75
|
+
_this.attrs = newProps.attrs;
|
|
76
|
+
|
|
77
|
+
var type = _typeof(_this.props.value);
|
|
78
|
+
|
|
79
|
+
var prefix = typeof _this.props.prefix === 'undefined' ? '' : _this.props.prefix;
|
|
80
|
+
var suffix = typeof _this.props.suffix === 'undefined' ? '' : _this.props.suffix;
|
|
81
|
+
_this.state = {
|
|
82
|
+
value: type === 'string' || type === 'number' ? (0, _util.format)(_this.props.value, _this.props.type) : '',
|
|
83
|
+
valueTrue: prefix + _this.props.value + suffix,
|
|
84
|
+
hover: false,
|
|
85
|
+
active: false
|
|
86
|
+
};
|
|
87
|
+
return _this;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
_createClass(Input, [{
|
|
91
|
+
key: "componentWillReceiveProps",
|
|
92
|
+
value: function componentWillReceiveProps(nextProps) {
|
|
93
|
+
if (nextProps.value !== undefined) {
|
|
94
|
+
if (nextProps.value !== this.state.value) {
|
|
95
|
+
this.setState({
|
|
96
|
+
value: (0, _util.format)(nextProps.value, this.props.type),
|
|
97
|
+
valueTrue: nextProps.value
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* 渲染 text 输入框
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
}, {
|
|
107
|
+
key: "renderText",
|
|
108
|
+
value: function renderText() {
|
|
109
|
+
var _this2 = this;
|
|
110
|
+
|
|
111
|
+
var _this$state = this.state,
|
|
112
|
+
hover = _this$state.hover,
|
|
113
|
+
active = _this$state.active,
|
|
114
|
+
value = _this$state.value;
|
|
115
|
+
var _this$props = this.props,
|
|
116
|
+
disabled = _this$props.disabled,
|
|
117
|
+
type = _this$props.type,
|
|
118
|
+
prefix = _this$props.prefix,
|
|
119
|
+
suffix = _this$props.suffix,
|
|
120
|
+
prepend = _this$props.prepend,
|
|
121
|
+
append = _this$props.append,
|
|
122
|
+
id = _this$props.id,
|
|
123
|
+
placeholder = _this$props.placeholder;
|
|
124
|
+
var noClear = ['textarea'];
|
|
125
|
+
var prefixId = id ? id + '_prefix' : '';
|
|
126
|
+
var suffixId = id ? id + '_suffix' : '';
|
|
127
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
128
|
+
className: (0, _classnames["default"])('hi-input__out', {
|
|
129
|
+
'hi-input--prepend': prepend,
|
|
130
|
+
'hi-input--append': append
|
|
131
|
+
})
|
|
132
|
+
}, // 前置元素
|
|
133
|
+
prepend && /*#__PURE__*/_react["default"].createElement("span", {
|
|
134
|
+
className: "hi-input__prepend"
|
|
135
|
+
}, prepend), /*#__PURE__*/_react["default"].createElement("div", {
|
|
136
|
+
className: "hi-input__inner".concat(active ? ' active' : '').concat(disabled ? ' disabled' : '')
|
|
137
|
+
}, // 前缀
|
|
138
|
+
prefix && /*#__PURE__*/_react["default"].createElement("span", {
|
|
139
|
+
id: prefixId,
|
|
140
|
+
className: "hi-input__prefix",
|
|
141
|
+
"data-value": prefix
|
|
142
|
+
}, prefix), /*#__PURE__*/_react["default"].createElement("input", _extends({
|
|
143
|
+
ref: function ref(arg) {
|
|
144
|
+
_this2._Input = arg;
|
|
145
|
+
},
|
|
146
|
+
className: "hi-input__text ".concat(disabled ? 'disabled' : ''),
|
|
147
|
+
value: this.state.value,
|
|
148
|
+
autoComplete: "off",
|
|
149
|
+
disabled: disabled
|
|
150
|
+
}, this.attrs, {
|
|
151
|
+
placeholder: placeholder,
|
|
152
|
+
onChange: function onChange(e) {
|
|
153
|
+
e.persist();
|
|
154
|
+
var value = e.target.value;
|
|
155
|
+
var valueTrue = (0, _util.formatValue)(value, type);
|
|
156
|
+
|
|
157
|
+
if (prefix) {
|
|
158
|
+
valueTrue = prefix + valueTrue;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
if (suffix) {
|
|
162
|
+
valueTrue = valueTrue + suffix;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
value = (0, _util.format)(value, type);
|
|
166
|
+
|
|
167
|
+
_this2.setState({
|
|
168
|
+
value: value,
|
|
169
|
+
valueTrue: valueTrue
|
|
170
|
+
}, function () {
|
|
171
|
+
_this2.props.onChange && _this2.props.onChange(e, valueTrue);
|
|
172
|
+
});
|
|
173
|
+
},
|
|
174
|
+
onBlur: function onBlur(e) {
|
|
175
|
+
e.persist();
|
|
176
|
+
var value = e.target.value;
|
|
177
|
+
var valueTrue = _this2.state.valueTrue; // amount 自动添加小数
|
|
178
|
+
|
|
179
|
+
if (_this2.props.type === 'amount' && value !== '') {
|
|
180
|
+
value = (0, _util.formatAmount)(value);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
_this2.setState({
|
|
184
|
+
active: false,
|
|
185
|
+
value: value
|
|
186
|
+
}, function () {
|
|
187
|
+
_this2.props.onBlur && _this2.props.onBlur(e, valueTrue);
|
|
188
|
+
});
|
|
189
|
+
},
|
|
190
|
+
onFocus: function onFocus(e) {
|
|
191
|
+
e.persist();
|
|
192
|
+
var valueTrue = _this2.state.valueTrue;
|
|
193
|
+
|
|
194
|
+
_this2.setState({
|
|
195
|
+
active: true
|
|
196
|
+
}, function () {
|
|
197
|
+
_this2.props.onFocus && _this2.props.onFocus(e, valueTrue);
|
|
198
|
+
});
|
|
199
|
+
},
|
|
200
|
+
onKeyDown: function onKeyDown(e) {
|
|
201
|
+
var valueTrue = _this2.state.valueTrue;
|
|
202
|
+
_this2.props.onKeyDown && _this2.props.onKeyDown(e, valueTrue);
|
|
203
|
+
},
|
|
204
|
+
onKeyUp: function onKeyUp(e) {
|
|
205
|
+
var valueTrue = _this2.state.valueTrue;
|
|
206
|
+
_this2.props.onKeyUp && _this2.props.onKeyUp(e, valueTrue);
|
|
207
|
+
},
|
|
208
|
+
onKeyPress: function onKeyPress(e) {
|
|
209
|
+
var valueTrue = _this2.state.valueTrue;
|
|
210
|
+
_this2.props.onKeyPress && _this2.props.onKeyPress(e, valueTrue);
|
|
211
|
+
},
|
|
212
|
+
onInput: function onInput(e) {
|
|
213
|
+
var valueTrue = _this2.state.valueTrue;
|
|
214
|
+
_this2.props.onInput && _this2.props.onInput(e, valueTrue);
|
|
215
|
+
}
|
|
216
|
+
})), // 清除
|
|
217
|
+
noClear.indexOf(type) === -1 && typeof prefix === 'undefined' && typeof suffix === 'undefined' && value !== '' && /*#__PURE__*/_react["default"].createElement("span", {
|
|
218
|
+
className: "hi-input__fix-box ".concat(hover && !disabled ? '' : 'invisible'),
|
|
219
|
+
onClick: function onClick() {
|
|
220
|
+
_this2._Input.focus();
|
|
221
|
+
|
|
222
|
+
var prefix = typeof _this2.props.prefix === 'undefined' ? '' : _this2.props.prefix;
|
|
223
|
+
var suffix = typeof _this2.props.suffix === 'undefined' ? '' : _this2.props.suffix;
|
|
224
|
+
var valueTrue = prefix + '' + suffix;
|
|
225
|
+
|
|
226
|
+
_this2.setState({
|
|
227
|
+
value: '',
|
|
228
|
+
valueTrue: valueTrue
|
|
229
|
+
}, function () {
|
|
230
|
+
var e = {
|
|
231
|
+
target: _this2._Input
|
|
232
|
+
};
|
|
233
|
+
_this2.props.onChange && _this2.props.onChange(e, '');
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
237
|
+
className: "hi-input__clear hi-input__suffix__icon hi-icon icon-close-circle"
|
|
238
|
+
})), // 后缀
|
|
239
|
+
suffix && /*#__PURE__*/_react["default"].createElement("span", {
|
|
240
|
+
id: suffixId,
|
|
241
|
+
className: "hi-input__suffix",
|
|
242
|
+
"data-value": suffix
|
|
243
|
+
}, suffix)), // 后置元素
|
|
244
|
+
append && /*#__PURE__*/_react["default"].createElement("span", {
|
|
245
|
+
className: "hi-input__append"
|
|
246
|
+
}, append));
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* 渲染 textarea
|
|
250
|
+
*/
|
|
251
|
+
|
|
252
|
+
}, {
|
|
253
|
+
key: "renderTextarea",
|
|
254
|
+
value: function renderTextarea() {
|
|
255
|
+
var _this3 = this;
|
|
256
|
+
|
|
257
|
+
var active = this.state.active;
|
|
258
|
+
var disabled = this.props.disabled;
|
|
259
|
+
return /*#__PURE__*/_react["default"].createElement("textarea", _extends({
|
|
260
|
+
className: "hi-input ".concat(active ? 'active' : '', " ").concat(disabled ? 'disabled' : ''),
|
|
261
|
+
style: this.props.style,
|
|
262
|
+
autoComplete: "off",
|
|
263
|
+
value: this.state.value,
|
|
264
|
+
disabled: disabled
|
|
265
|
+
}, this.attrs, {
|
|
266
|
+
onChange: function onChange(e) {
|
|
267
|
+
e.persist();
|
|
268
|
+
var valueTrue = e.target.value;
|
|
269
|
+
|
|
270
|
+
_this3.setState({
|
|
271
|
+
value: valueTrue,
|
|
272
|
+
valueTrue: valueTrue
|
|
273
|
+
}, function () {
|
|
274
|
+
_this3.props.onChange && _this3.props.onChange(e, valueTrue);
|
|
275
|
+
});
|
|
276
|
+
},
|
|
277
|
+
onBlur: function onBlur(e) {
|
|
278
|
+
e.persist();
|
|
279
|
+
var valueTrue = e.target.value;
|
|
280
|
+
|
|
281
|
+
_this3.setState({
|
|
282
|
+
active: false
|
|
283
|
+
}, function () {
|
|
284
|
+
_this3.props.onBlur && _this3.props.onBlur(e, valueTrue);
|
|
285
|
+
});
|
|
286
|
+
},
|
|
287
|
+
onFocus: function onFocus(e) {
|
|
288
|
+
e.persist();
|
|
289
|
+
var valueTrue = e.target.value;
|
|
290
|
+
|
|
291
|
+
_this3.setState({
|
|
292
|
+
active: true
|
|
293
|
+
}, function () {
|
|
294
|
+
_this3.props.onFocus && _this3.props.onFocus(e, valueTrue);
|
|
295
|
+
});
|
|
296
|
+
},
|
|
297
|
+
onKeyDown: function onKeyDown(e) {
|
|
298
|
+
var valueTrue = e.target.value;
|
|
299
|
+
_this3.props.onKeyDown && _this3.props.onKeyDown(e, valueTrue);
|
|
300
|
+
},
|
|
301
|
+
onKeyUp: function onKeyUp(e) {
|
|
302
|
+
var valueTrue = e.target.value;
|
|
303
|
+
_this3.props.onKeyUp && _this3.props.onKeyUp(e, valueTrue);
|
|
304
|
+
},
|
|
305
|
+
onKeyPress: function onKeyPress(e) {
|
|
306
|
+
var valueTrue = e.target.value;
|
|
307
|
+
_this3.props.onKeyPress && _this3.props.onKeyPress(e, valueTrue);
|
|
308
|
+
},
|
|
309
|
+
onInput: function onInput(e) {
|
|
310
|
+
var valueTrue = e.target.value;
|
|
311
|
+
_this3.props.onInput && _this3.props.onInput(e, valueTrue);
|
|
312
|
+
},
|
|
313
|
+
onMouseOver: function onMouseOver(e) {
|
|
314
|
+
_this3.setState({
|
|
315
|
+
hover: true
|
|
316
|
+
});
|
|
317
|
+
},
|
|
318
|
+
onMouseLeave: function onMouseLeave(e) {
|
|
319
|
+
_this3.setState({
|
|
320
|
+
hover: false
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
}));
|
|
324
|
+
}
|
|
325
|
+
}, {
|
|
326
|
+
key: "render",
|
|
327
|
+
value: function render() {
|
|
328
|
+
var _this4 = this;
|
|
27
329
|
|
|
28
|
-
var
|
|
330
|
+
var type = this.attrs.type;
|
|
331
|
+
var _this$props2 = this.props,
|
|
332
|
+
size = _this$props2.size,
|
|
333
|
+
id = _this$props2.id,
|
|
334
|
+
className = _this$props2.className,
|
|
335
|
+
required = _this$props2.required;
|
|
336
|
+
return type === 'textarea' ? this.renderTextarea() : /*#__PURE__*/_react["default"].createElement("div", {
|
|
337
|
+
id: id,
|
|
338
|
+
className: "hi-input ".concat(className || '', " ").concat(type || '').concat(size ? ' hi-input_' + size : '').concat(required ? ' required' : ''),
|
|
339
|
+
style: this.props.style,
|
|
340
|
+
"data-value": this.state.valueTrue,
|
|
341
|
+
onClick: function onClick(e) {
|
|
342
|
+
_this4._Input.focus();
|
|
343
|
+
},
|
|
344
|
+
onMouseOver: function onMouseOver(e) {
|
|
345
|
+
_this4.setState({
|
|
346
|
+
hover: true
|
|
347
|
+
});
|
|
348
|
+
},
|
|
349
|
+
onMouseLeave: function onMouseLeave(e) {
|
|
350
|
+
_this4.setState({
|
|
351
|
+
hover: false
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
}, this.renderText());
|
|
355
|
+
}
|
|
356
|
+
}]);
|
|
29
357
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
var componentLegacy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
33
|
-
return /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
34
|
-
var InnerComponent = props.legacy === true ? componentLegacy : component;
|
|
35
|
-
return /*#__PURE__*/_react["default"].createElement(InnerComponent, (0, _extends2["default"])({}, props, {
|
|
36
|
-
ref: ref
|
|
37
|
-
}));
|
|
38
|
-
});
|
|
39
|
-
}
|
|
358
|
+
return Input;
|
|
359
|
+
}(_react.Component);
|
|
40
360
|
|
|
41
|
-
|
|
361
|
+
_defineProperty(Input, "_Input", '');
|
|
42
362
|
|
|
363
|
+
var _default = Input;
|
|
43
364
|
exports["default"] = _default;
|
package/es/input/style/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
textarea.hi-input{
|
|
1
|
+
textarea.hi-input{-webkit-box-shadow:none;box-shadow:none;outline:none;color:#333;font-size:14px;min-height:30px;line-height:22px;resize:vertical;overflow:auto;height:100%;padding:4px 12px;border:1px solid #d8d8d8;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:2px;background-color:#fff;-webkit-transition:border-color 0.3s;transition:border-color 0.3s}textarea.hi-input:not(.disabled):hover{border-color:#4284f5}textarea.hi-input.active{border-color:#4284f5}textarea.hi-input.disabled{color:#ccc;background-color:#f2f2f2}textarea.hi-input::-webkit-input-placeholder{color:#ccc}textarea.hi-input:-moz-placeholder{color:#ccc}textarea.hi-input::-moz-placeholder{color:#ccc}textarea.hi-input:-ms-input-placeholder{color:#ccc}.hi-input,.hi-input_m{position:relative;display:inline-block;width:100%;height:32px;-webkit-box-sizing:border-box;box-sizing:border-box}.hi-input ::-webkit-input-placeholder,.hi-input_m ::-webkit-input-placeholder{color:#ccc}.hi-input :-moz-placeholder,.hi-input_m :-moz-placeholder{color:#ccc}.hi-input ::-moz-placeholder,.hi-input_m ::-moz-placeholder{color:#ccc}.hi-input :-ms-input-placeholder,.hi-input_m :-ms-input-placeholder{color:#ccc}.hi-input input,.hi-input_m input{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;border:none;outline:none;min-height:30px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#333;font-size:14px;line-height:22px;-webkit-box-shadow:none;box-shadow:none}.hi-input input.disabled,.hi-input_m input.disabled{color:#ccc;background-color:#f2f2f2}.hi-input input[type='search'],.hi-input_m input[type='search']{-webkit-appearance:none}.hi-input ::-webkit-search-cancel-button,.hi-input_m ::-webkit-search-cancel-button{display:none}.hi-input .hi-input__out,.hi-input_m .hi-input__out{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;height:100%}.hi-input .hi-input__inner,.hi-input_m .hi-input__inner{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;border:1px solid #d8d8d8;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:2px;background-color:#fff;-webkit-transition:border-color 0.3s;transition:border-color 0.3s}.hi-input .hi-input__inner:not(.disabled):hover,.hi-input_m .hi-input__inner:not(.disabled):hover{border-color:#4284f5}.hi-input .hi-input__inner.active,.hi-input_m .hi-input__inner.active{border-color:#4284f5}.hi-input .hi-input__inner.disabled,.hi-input_m .hi-input__inner.disabled{color:#ccc;background-color:#f2f2f2}.hi-input__fix-box,.hi-input_m__fix-box{display:inline-block;width:12px;height:auto;padding:0 18px 0 2px;-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;cursor:pointer;opacity:1;-webkit-transition:all 0.3s;transition:all 0.3s}.hi-input__fix-box.invisible,.hi-input_m__fix-box.invisible{visibility:hidden;opacity:0}.hi-input__fix-box .hi-input__clear,.hi-input_m__fix-box .hi-input__clear{display:block;border-radius:50%;color:#666;font-size:14px;text-align:center}.hi-input__fix-box .hi-input__suffix__icon,.hi-input_m__fix-box .hi-input__suffix__icon{position:absolute;top:50%;width:14px;height:14px;line-height:14px;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:14px}.hi-input__text,.hi-input_m__text{width:100%;padding:4px 12px}.hi-input__prefix,.hi-input__suffix,.hi-input_m__prefix,.hi-input_m__suffix{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;color:#333;font-size:14px;line-height:30px}.hi-input__prefix,.hi-input_m__prefix{padding-left:12px}.hi-input__suffix,.hi-input_m__suffix{padding-right:12px}.hi-input--prepend .hi-input__inner,.hi-input_m--prepend .hi-input__inner{border-top-left-radius:0;border-bottom-left-radius:0}.hi-input__prepend .hi-btn,.hi-input__prepend .hi-select__input,.hi-input_m__prepend .hi-btn,.hi-input_m__prepend .hi-select__input{border-right-color:transparent;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:2px;border-bottom-left-radius:2px}.hi-input--append .hi-input__inner,.hi-input_m--append .hi-input__inner{border-top-right-radius:0;border-bottom-right-radius:0}.hi-input__append .hi-btn,.hi-input__append .hi-select__input,.hi-input_m__append .hi-btn,.hi-input_m__append .hi-select__input{border-left-color:transparent;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:2px;border-bottom-right-radius:2px}.hi-input.required::after,.hi-input_m.required::after{position:absolute;top:0;content:'*';right:-30px;width:30px;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#f00}
|