amis-ui 2.0.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/components/404.js +1 -1
- package/esm/components/Alert.js +1 -1
- package/esm/components/Alert2.js +2 -2
- package/esm/components/AnchorNav.js +8 -8
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.d.ts +11 -11
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.js +1 -1
- package/esm/components/Avatar.js +1 -1
- package/esm/components/Badge.d.ts +1 -1
- package/esm/components/Badge.js +2 -4
- package/esm/components/BaiduMapPicker.js +3 -3
- package/esm/components/BarCode.js +38 -2
- package/esm/components/Breadcrumb.js +2 -2
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +3 -9
- package/esm/components/ChainedSelection.js +1 -1
- package/esm/components/Checkbox.js +1 -1
- package/esm/components/CityArea.js +2 -2
- package/esm/components/CityDB.js +4097 -2
- package/esm/components/CodeMirror.js +1 -1
- package/esm/components/Collapse.js +1 -1
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.js +198 -2
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.d.ts +43 -40
- package/esm/components/DatePicker.js +11 -4
- package/esm/components/DateRangePicker.d.ts +144 -81
- package/esm/components/DateRangePicker.js +191 -80
- package/esm/components/Drawer.d.ts +10 -10
- package/esm/components/Drawer.js +1 -1
- package/esm/components/Editor.d.ts +47 -41
- package/esm/components/Editor.js +9 -8
- package/esm/components/Form.js +1 -1
- package/esm/components/FormField.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GroupedSelection.js +1 -1
- package/esm/components/Html.js +1 -1
- package/esm/components/ImageGallery.d.ts +70 -40
- package/esm/components/ImageGallery.js +97 -15
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.js +1 -1
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.js +1 -1
- package/esm/components/ListGroup.d.ts +10 -10
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.js +1 -1
- package/esm/components/LocationPicker.js +1 -1
- package/esm/components/Markdown.js +56 -2
- package/esm/components/Modal.d.ts +60 -58
- package/esm/components/Modal.js +9 -4
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/NumberInput.js +2 -2
- package/esm/components/Pagination.d.ts +49 -66
- package/esm/components/Pagination.js +4 -4
- package/esm/components/Picker.js +1 -1
- package/esm/components/PickerColumn.js +1 -1
- package/esm/components/PickerContainer.js +1 -1
- package/esm/components/PopOverContainer.d.ts +1 -0
- package/esm/components/PopOverContainer.js +3 -3
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.d.ts +16 -10
- package/esm/components/Progress.js +27 -5
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.js +1 -1
- package/esm/components/Range.js +3 -2
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.js +7 -3
- package/esm/components/ResultList.js +1 -1
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.js +1 -1
- package/esm/components/RichText.js +258 -2
- package/esm/components/SearchBox.js +1 -1
- package/esm/components/Select.d.ts +194 -193
- package/esm/components/Select.js +9 -5
- package/esm/components/Selection.js +1 -1
- package/esm/components/SparkLine.d.ts +40 -40
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.js +1 -1
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.js +1 -1
- package/esm/components/TableSelection.js +1 -1
- package/esm/components/Tabs.d.ts +149 -13
- package/esm/components/Tabs.js +39 -11
- package/esm/components/TabsTransfer.js +1 -1
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.js +1 -1
- package/esm/components/Textarea.js +4 -2
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.js +4 -4
- package/esm/components/Tinymce.d.ts +1 -3
- package/esm/components/Tinymce.js +561 -2
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.js +1 -1
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.js +11 -4
- package/esm/components/TransferDropDown.js +4 -5
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.js +1 -1
- package/esm/components/Tree.js +34 -33
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.js +5 -3
- package/esm/components/UserTabSelect.js +1 -1
- package/esm/components/WithRemoteConfig.js +1 -1
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.d.ts +1 -0
- package/esm/components/calendar/Calendar.js +7 -2
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.d.ts +1 -1
- package/esm/components/calendar/DaysView.js +65 -29
- package/esm/components/calendar/MonthsView.js +1 -1
- package/esm/components/calendar/QuartersView.js +1 -1
- package/esm/components/calendar/TimeView.d.ts +0 -1
- package/esm/components/calendar/TimeView.js +5 -6
- package/esm/components/calendar/YearsView.js +1 -1
- package/esm/components/condition-builder/Expression.js +1 -1
- package/esm/components/condition-builder/Field.js +1 -1
- package/esm/components/condition-builder/Formula.js +1 -1
- package/esm/components/condition-builder/Func.js +1 -1
- package/esm/components/condition-builder/Group.js +1 -1
- package/esm/components/condition-builder/GroupOrItem.js +4 -4
- package/esm/components/condition-builder/InputSwitch.js +1 -1
- package/esm/components/condition-builder/Item.js +1 -1
- package/esm/components/condition-builder/Value.js +1 -1
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.js +1 -1
- package/esm/components/formula/Editor.js +1 -1
- package/esm/components/formula/FuncList.js +1 -1
- package/esm/components/formula/Picker.d.ts +1 -0
- package/esm/components/formula/Picker.js +10 -1
- package/esm/components/formula/VariableList.js +1 -1
- package/esm/components/formula/plugin.d.ts +1 -0
- package/esm/components/formula/plugin.js +11 -4
- package/esm/components/icons.d.ts +2 -1
- package/esm/components/icons.js +18 -1
- package/esm/components/json-schema/Array.js +1 -1
- package/esm/components/json-schema/Item.js +1 -1
- package/esm/components/json-schema/Object.js +1 -1
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/schema-editor/Array.js +1 -1
- package/esm/components/schema-editor/Common.js +1 -1
- package/esm/components/schema-editor/Item.js +1 -1
- package/esm/components/schema-editor/Object.js +1 -1
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.js +1 -1
- package/esm/components/table/Cell.d.ts +2 -1
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/HeadCellDropDown.d.ts +3 -1
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.d.ts +3 -2
- package/esm/components/table/HeadCellFilter.js +4 -4
- package/esm/components/table/HeadCellSelect.d.ts +3 -2
- package/esm/components/table/HeadCellSelect.js +4 -2
- package/esm/components/table/HeadCellSort.d.ts +4 -3
- package/esm/components/table/HeadCellSort.js +6 -6
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/index.d.ts +3 -4
- package/esm/components/table/index.js +9 -9
- package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/esm/components/virtual-list/constants.js +1 -1
- package/esm/components/virtual-list/index.d.ts +3 -3
- package/esm/components/virtual-list/index.js +1 -1
- package/esm/hooks/use-set-state.js +1 -1
- package/esm/hooks/use-touch.js +1 -1
- package/esm/hooks/use-update-effect.js +1 -1
- package/esm/hooks/use-validation-resolver.js +1 -1
- package/esm/icons/alert-danger.svg.js +2 -2
- package/esm/icons/alert-info.svg.js +1 -1
- package/esm/icons/alert-success.svg.js +2 -2
- package/esm/icons/alert-warning.svg.js +2 -2
- package/esm/icons/back.svg.js +1 -1
- package/esm/icons/calendar.svg.js +1 -1
- package/esm/icons/caret.svg.js +1 -1
- package/esm/icons/check-circle.svg.js +36 -0
- package/esm/icons/check.svg.js +1 -1
- package/esm/icons/clock.svg.js +1 -1
- package/esm/icons/close-small.svg.js +1 -1
- package/esm/icons/close.svg.js +1 -1
- package/esm/icons/cloud-upload.svg.js +1 -1
- package/esm/icons/column-filter.svg.js +1 -1
- package/esm/icons/columns.svg.js +1 -1
- package/esm/icons/compress-alt.svg.js +1 -1
- package/esm/icons/copy.svg.js +1 -1
- package/esm/icons/date.svg.js +1 -1
- package/esm/icons/department.svg.js +1 -1
- package/esm/icons/desk-empty.svg.js +1 -1
- package/esm/icons/dot.svg.js +1 -1
- package/esm/icons/down-arrow-bold.svg.js +2 -2
- package/esm/icons/down.svg.js +31 -0
- package/esm/icons/download.svg.js +1 -1
- package/esm/icons/drag-bar.svg.js +1 -1
- package/esm/icons/drag.svg.js +1 -1
- package/esm/icons/edit.svg.js +1 -2
- package/esm/icons/ellipsis-v.svg.js +1 -1
- package/esm/icons/enter.svg.js +1 -1
- package/esm/icons/exchange.svg.js +1 -1
- package/esm/icons/expand-alt.svg.js +1 -1
- package/esm/icons/fail.svg.js +1 -1
- package/esm/icons/file.svg.js +1 -1
- package/esm/icons/filter.svg.js +1 -1
- package/esm/icons/folder.svg.js +1 -1
- package/esm/icons/function.svg.js +1 -1
- package/esm/icons/home.svg.js +1 -1
- package/esm/icons/image.svg.js +1 -1
- package/esm/icons/info-circle.svg.js +1 -1
- package/esm/icons/info.svg.js +1 -1
- package/esm/icons/input-clear.svg.js +1 -1
- package/esm/icons/invisible.svg.js +1 -1
- package/esm/icons/left-arrow.svg.js +7 -4
- package/esm/icons/loading-outline.svg.js +1 -1
- package/esm/icons/location.svg.js +1 -1
- package/esm/icons/menu.svg.js +1 -1
- package/esm/icons/minus.svg.js +1 -1
- package/esm/icons/move.svg.js +1 -1
- package/esm/icons/mute.svg.js +1 -1
- package/esm/icons/new-edit.svg.js +24 -0
- package/esm/icons/pause.svg.js +1 -1
- package/esm/icons/pencil.svg.js +1 -1
- package/esm/icons/play.svg.js +1 -1
- package/esm/icons/plus-cicle.svg.js +1 -1
- package/esm/icons/plus-fine.svg.js +1 -1
- package/esm/icons/plus.svg.js +1 -1
- package/esm/icons/post.svg.js +1 -1
- package/esm/icons/question-mark.svg.js +1 -1
- package/esm/icons/question.svg.js +1 -1
- package/esm/icons/redo.svg.js +1 -1
- package/esm/icons/refresh.svg.js +1 -1
- package/esm/icons/reload.svg.js +1 -1
- package/esm/icons/remove.svg.js +1 -1
- package/esm/icons/retry.svg.js +1 -1
- package/esm/icons/right-arrow-bold.svg.js +1 -1
- package/esm/icons/right-arrow.svg.js +7 -4
- package/esm/icons/right-double-arrow.svg.js +24 -0
- package/esm/icons/role.svg.js +1 -1
- package/esm/icons/rotate-left.svg.js +24 -0
- package/esm/icons/rotate-right.svg.js +24 -0
- package/esm/icons/scale-origin.svg.js +26 -0
- package/esm/icons/schedule.svg.js +1 -1
- package/esm/icons/search.svg.js +1 -1
- package/esm/icons/setting.svg.js +1 -1
- package/esm/icons/slider-handle-icon.svg.js +1 -1
- package/esm/icons/sort-asc.svg.js +1 -1
- package/esm/icons/sort-default.svg.js +1 -1
- package/esm/icons/sort-desc.svg.js +1 -1
- package/esm/icons/star.svg.js +2 -2
- package/esm/icons/status-close.svg.js +1 -1
- package/esm/icons/status-fail.svg.js +1 -1
- package/esm/icons/status-info.svg.js +1 -1
- package/esm/icons/status-success.svg.js +1 -1
- package/esm/icons/status-warning.svg.js +1 -1
- package/esm/icons/steps-finsh.svg.js +24 -0
- package/esm/icons/success.svg.js +1 -1
- package/esm/icons/transparent.svg.js +1 -1
- package/esm/icons/trash.svg.js +1 -1
- package/esm/icons/tree-down.svg.js +1 -1
- package/esm/icons/undo.svg.js +1 -1
- package/esm/icons/upload.svg.js +1 -1
- package/esm/icons/user-remove.svg.js +1 -1
- package/esm/icons/view.svg.js +1 -1
- package/esm/icons/volume.svg.js +1 -1
- package/esm/icons/warning-mark.svg.js +1 -1
- package/esm/icons/warning.svg.js +1 -1
- package/esm/icons/window-restore.svg.js +1 -1
- package/esm/icons/zoom-in.svg.js +1 -1
- package/esm/icons/zoom-out.svg.js +1 -1
- package/esm/index.js +2 -1
- package/esm/locale/de-DE.js +25 -5
- package/esm/locale/en-US.js +21 -1
- package/esm/locale/zh-CN.js +25 -7
- package/esm/themes/ang.js +1 -1
- package/esm/themes/antd.js +1 -1
- package/esm/themes/cxd.js +1 -1
- package/esm/themes/dark.js +1 -1
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.js +1 -1
- package/lib/components/Alert2.js +2 -2
- package/lib/components/AnchorNav.js +8 -8
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.d.ts +11 -11
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.js +1 -1
- package/lib/components/Avatar.js +1 -1
- package/lib/components/Badge.d.ts +1 -1
- package/lib/components/Badge.js +2 -4
- package/lib/components/BaiduMapPicker.js +3 -3
- package/lib/components/BarCode.js +41 -4
- package/lib/components/Breadcrumb.js +2 -2
- package/lib/components/Button.js +1 -1
- package/lib/components/CalendarMobile.js +1 -1
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.js +3 -9
- package/lib/components/ChainedSelection.js +1 -1
- package/lib/components/Checkbox.js +1 -1
- package/lib/components/CityArea.js +2 -2
- package/lib/components/CityDB.js +4099 -8
- package/lib/components/CodeMirror.js +1 -1
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.js +200 -4
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +43 -40
- package/lib/components/DatePicker.js +11 -4
- package/lib/components/DateRangePicker.d.ts +144 -81
- package/lib/components/DateRangePicker.js +191 -78
- package/lib/components/Drawer.d.ts +10 -10
- package/lib/components/Drawer.js +1 -1
- package/lib/components/Editor.d.ts +47 -41
- package/lib/components/Editor.js +9 -9
- package/lib/components/Form.js +1 -1
- package/lib/components/FormField.js +1 -1
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GroupedSelection.js +1 -1
- package/lib/components/Html.js +1 -1
- package/lib/components/ImageGallery.d.ts +70 -40
- package/lib/components/ImageGallery.js +97 -14
- package/lib/components/Input.js +1 -1
- package/lib/components/InputBox.js +1 -1
- package/lib/components/InputBoxWithSuggestion.js +1 -1
- package/lib/components/Layout.js +1 -1
- package/lib/components/Link.js +1 -1
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +1 -1
- package/lib/components/ListMenu.js +1 -1
- package/lib/components/LocationPicker.js +1 -1
- package/lib/components/Markdown.js +59 -4
- package/lib/components/Modal.d.ts +60 -58
- package/lib/components/Modal.js +9 -4
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/NumberInput.js +2 -2
- package/lib/components/Pagination.d.ts +49 -66
- package/lib/components/Pagination.js +4 -4
- package/lib/components/Picker.js +1 -1
- package/lib/components/PickerColumn.js +1 -1
- package/lib/components/PickerContainer.js +1 -1
- package/lib/components/PopOverContainer.d.ts +1 -0
- package/lib/components/PopOverContainer.js +3 -3
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.d.ts +16 -10
- package/lib/components/Progress.js +27 -5
- package/lib/components/PullRefresh.js +1 -1
- package/lib/components/Radios.js +1 -1
- package/lib/components/Range.js +3 -2
- package/lib/components/Rating.js +1 -1
- package/lib/components/ResultBox.js +7 -3
- package/lib/components/ResultList.js +1 -1
- package/lib/components/ResultTableList.js +1 -1
- package/lib/components/ResultTreeList.js +1 -1
- package/lib/components/RichText.js +261 -3
- package/lib/components/SearchBox.js +1 -1
- package/lib/components/Select.d.ts +194 -193
- package/lib/components/Select.js +8 -4
- package/lib/components/Selection.js +1 -1
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +1 -1
- package/lib/components/Spinner.js +1 -1
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.js +1 -1
- package/lib/components/TableSelection.js +1 -1
- package/lib/components/Tabs.d.ts +149 -13
- package/lib/components/Tabs.js +39 -11
- package/lib/components/TabsTransfer.js +1 -1
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.js +1 -1
- package/lib/components/Textarea.js +4 -2
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.js +4 -4
- package/lib/components/Tinymce.d.ts +1 -3
- package/lib/components/Tinymce.js +563 -3
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.js +1 -1
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.js +11 -4
- package/lib/components/TransferDropDown.js +4 -5
- package/lib/components/TransferPicker.js +1 -1
- package/lib/components/TransferSearch.js +1 -1
- package/lib/components/Tree.js +34 -33
- package/lib/components/TreeSelection.js +1 -1
- package/lib/components/UserSelect.js +5 -3
- package/lib/components/UserTabSelect.js +1 -1
- package/lib/components/WithRemoteConfig.js +1 -1
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.d.ts +1 -0
- package/lib/components/calendar/Calendar.js +7 -2
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.d.ts +1 -1
- package/lib/components/calendar/DaysView.js +69 -29
- package/lib/components/calendar/MonthsView.js +1 -1
- package/lib/components/calendar/QuartersView.js +1 -1
- package/lib/components/calendar/TimeView.d.ts +0 -1
- package/lib/components/calendar/TimeView.js +5 -6
- package/lib/components/calendar/YearsView.js +1 -1
- package/lib/components/condition-builder/Expression.js +1 -1
- package/lib/components/condition-builder/Field.js +1 -1
- package/lib/components/condition-builder/Formula.js +1 -1
- package/lib/components/condition-builder/Func.js +1 -1
- package/lib/components/condition-builder/Group.js +1 -1
- package/lib/components/condition-builder/GroupOrItem.js +4 -4
- package/lib/components/condition-builder/InputSwitch.js +1 -1
- package/lib/components/condition-builder/Item.js +1 -1
- package/lib/components/condition-builder/Value.js +1 -1
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.js +1 -1
- package/lib/components/formula/Editor.js +1 -1
- package/lib/components/formula/FuncList.js +1 -1
- package/lib/components/formula/Picker.d.ts +1 -0
- package/lib/components/formula/Picker.js +10 -1
- package/lib/components/formula/VariableList.js +1 -1
- package/lib/components/formula/plugin.d.ts +1 -0
- package/lib/components/formula/plugin.js +11 -4
- package/lib/components/icons.d.ts +2 -1
- package/lib/components/icons.js +18 -1
- package/lib/components/json-schema/Array.js +1 -1
- package/lib/components/json-schema/Item.js +1 -1
- package/lib/components/json-schema/Object.js +1 -1
- package/lib/components/json-schema/index.js +1 -1
- package/lib/components/schema-editor/Array.js +1 -1
- package/lib/components/schema-editor/Common.js +1 -1
- package/lib/components/schema-editor/Item.js +1 -1
- package/lib/components/schema-editor/Object.js +1 -1
- package/lib/components/schema-editor/SchemaVariableList.js +1 -1
- package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/lib/components/schema-editor/index.js +1 -1
- package/lib/components/table/Cell.d.ts +2 -1
- package/lib/components/table/Cell.js +1 -1
- package/lib/components/table/HeadCellDropDown.d.ts +3 -1
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.d.ts +3 -2
- package/lib/components/table/HeadCellFilter.js +4 -4
- package/lib/components/table/HeadCellSelect.d.ts +3 -2
- package/lib/components/table/HeadCellSelect.js +4 -2
- package/lib/components/table/HeadCellSort.d.ts +4 -3
- package/lib/components/table/HeadCellSort.js +6 -6
- package/lib/components/table/ItemActionsWrapper.js +1 -1
- package/lib/components/table/index.d.ts +3 -4
- package/lib/components/table/index.js +9 -9
- package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/lib/components/virtual-list/constants.js +1 -1
- package/lib/components/virtual-list/index.d.ts +3 -3
- package/lib/components/virtual-list/index.js +1 -1
- package/lib/helper.css +0 -8335
- package/lib/hooks/use-set-state.js +1 -1
- package/lib/hooks/use-touch.js +1 -1
- package/lib/hooks/use-update-effect.js +1 -1
- package/lib/hooks/use-validation-resolver.js +1 -1
- package/lib/icons/alert-danger.svg.js +2 -2
- package/lib/icons/alert-info.svg.js +1 -1
- package/lib/icons/alert-success.svg.js +2 -2
- package/lib/icons/alert-warning.svg.js +2 -2
- package/lib/icons/back.svg.js +1 -1
- package/lib/icons/calendar.svg.js +1 -1
- package/lib/icons/caret.svg.js +1 -1
- package/lib/icons/check-circle.svg.js +60 -0
- package/lib/icons/check.svg.js +1 -1
- package/lib/icons/clock.svg.js +1 -1
- package/lib/icons/close-small.svg.js +1 -1
- package/lib/icons/close.svg.js +1 -1
- package/lib/icons/cloud-upload.svg.js +1 -1
- package/lib/icons/column-filter.svg.js +1 -1
- package/lib/icons/columns.svg.js +1 -1
- package/lib/icons/compress-alt.svg.js +1 -1
- package/lib/icons/copy.svg.js +1 -1
- package/lib/icons/date.svg.js +1 -1
- package/lib/icons/department.svg.js +1 -1
- package/lib/icons/desk-empty.svg.js +1 -1
- package/lib/icons/dot.svg.js +1 -1
- package/lib/icons/down-arrow-bold.svg.js +2 -2
- package/lib/icons/down.svg.js +55 -0
- package/lib/icons/download.svg.js +1 -1
- package/lib/icons/drag-bar.svg.js +1 -1
- package/lib/icons/drag.svg.js +1 -1
- package/lib/icons/edit.svg.js +1 -2
- package/lib/icons/ellipsis-v.svg.js +1 -1
- package/lib/icons/enter.svg.js +1 -1
- package/lib/icons/exchange.svg.js +1 -1
- package/lib/icons/expand-alt.svg.js +1 -1
- package/lib/icons/fail.svg.js +1 -1
- package/lib/icons/file.svg.js +1 -1
- package/lib/icons/filter.svg.js +1 -1
- package/lib/icons/folder.svg.js +1 -1
- package/lib/icons/function.svg.js +1 -1
- package/lib/icons/home.svg.js +1 -1
- package/lib/icons/image.svg.js +1 -1
- package/lib/icons/info-circle.svg.js +1 -1
- package/lib/icons/info.svg.js +1 -1
- package/lib/icons/input-clear.svg.js +1 -1
- package/lib/icons/invisible.svg.js +1 -1
- package/lib/icons/left-arrow.svg.js +7 -4
- package/lib/icons/loading-outline.svg.js +1 -1
- package/lib/icons/location.svg.js +1 -1
- package/lib/icons/menu.svg.js +1 -1
- package/lib/icons/minus.svg.js +1 -1
- package/lib/icons/move.svg.js +1 -1
- package/lib/icons/mute.svg.js +1 -1
- package/lib/icons/new-edit.svg.js +48 -0
- package/lib/icons/pause.svg.js +1 -1
- package/lib/icons/pencil.svg.js +1 -1
- package/lib/icons/play.svg.js +1 -1
- package/lib/icons/plus-cicle.svg.js +1 -1
- package/lib/icons/plus-fine.svg.js +1 -1
- package/lib/icons/plus.svg.js +1 -1
- package/lib/icons/post.svg.js +1 -1
- package/lib/icons/question-mark.svg.js +1 -1
- package/lib/icons/question.svg.js +1 -1
- package/lib/icons/redo.svg.js +1 -1
- package/lib/icons/refresh.svg.js +1 -1
- package/lib/icons/reload.svg.js +1 -1
- package/lib/icons/remove.svg.js +1 -1
- package/lib/icons/retry.svg.js +1 -1
- package/lib/icons/right-arrow-bold.svg.js +1 -1
- package/lib/icons/right-arrow.svg.js +7 -4
- package/lib/icons/right-double-arrow.svg.js +48 -0
- package/lib/icons/role.svg.js +1 -1
- package/lib/icons/rotate-left.svg.js +48 -0
- package/lib/icons/rotate-right.svg.js +48 -0
- package/lib/icons/scale-origin.svg.js +50 -0
- package/lib/icons/schedule.svg.js +1 -1
- package/lib/icons/search.svg.js +1 -1
- package/lib/icons/setting.svg.js +1 -1
- package/lib/icons/slider-handle-icon.svg.js +1 -1
- package/lib/icons/sort-asc.svg.js +1 -1
- package/lib/icons/sort-default.svg.js +1 -1
- package/lib/icons/sort-desc.svg.js +1 -1
- package/lib/icons/star.svg.js +2 -2
- package/lib/icons/status-close.svg.js +1 -1
- package/lib/icons/status-fail.svg.js +1 -1
- package/lib/icons/status-info.svg.js +1 -1
- package/lib/icons/status-success.svg.js +1 -1
- package/lib/icons/status-warning.svg.js +1 -1
- package/lib/icons/steps-finsh.svg.js +48 -0
- package/lib/icons/success.svg.js +1 -1
- package/lib/icons/transparent.svg.js +1 -1
- package/lib/icons/trash.svg.js +1 -1
- package/lib/icons/tree-down.svg.js +1 -1
- package/lib/icons/undo.svg.js +1 -1
- package/lib/icons/upload.svg.js +1 -1
- package/lib/icons/user-remove.svg.js +1 -1
- package/lib/icons/view.svg.js +1 -1
- package/lib/icons/volume.svg.js +1 -1
- package/lib/icons/warning-mark.svg.js +1 -1
- package/lib/icons/warning.svg.js +1 -1
- package/lib/icons/window-restore.svg.js +1 -1
- package/lib/icons/zoom-in.svg.js +1 -1
- package/lib/icons/zoom-out.svg.js +1 -1
- package/lib/index.js +3 -1
- package/lib/locale/de-DE.js +25 -5
- package/lib/locale/en-US.js +21 -1
- package/lib/locale/zh-CN.js +25 -7
- package/lib/scss/helper.scss.js +3 -5
- package/lib/scss/themes/ang.scss.js +3 -5
- package/lib/scss/themes/antd.scss.js +3 -5
- package/lib/scss/themes/cxd.scss.js +3 -5
- package/lib/scss/themes/dark.scss.js +3 -5
- package/lib/scss/themes/default.scss.js +3 -5
- package/lib/themes/ang.css +1751 -913
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +1751 -913
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +1800 -961
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +1755 -917
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +1800 -961
- package/package.json +14 -12
- package/scss/_properties.scss +100 -23
- package/scss/base/_typography.scss +4 -0
- package/scss/components/_alert.scss +15 -0
- package/scss/components/_anchor-nav.scss +22 -7
- package/scss/components/_badge.scss +1 -0
- package/scss/components/_breadcrumb.scss +12 -1
- package/scss/components/_card.scss +4 -0
- package/scss/components/_collapse-group.scss +13 -1
- package/scss/components/_collapse.scss +2 -1
- package/scss/components/_column-toggler.scss +7 -1
- package/scss/components/_crud.scss +10 -2
- package/scss/components/_crud2.scss +10 -2
- package/scss/components/_drawer.scss +58 -5
- package/scss/components/_dropdown.scss +1 -0
- package/scss/components/_image-gallery.scss +62 -0
- package/scss/components/_input-box.scss +1 -0
- package/scss/components/_modal.scss +7 -10
- package/scss/components/_page.scss +1 -1
- package/scss/components/_pagination.scss +4 -3
- package/scss/components/_progress.scss +15 -1
- package/scss/components/_result-box.scss +5 -6
- package/scss/components/_search-box.scss +4 -0
- package/scss/components/_steps.scss +23 -12
- package/scss/components/_table.scss +124 -12
- package/scss/components/{_table-v2.scss → _table2.scss} +1 -1
- package/scss/components/_tabs.scss +91 -5
- package/scss/components/_timeline.scss +15 -1
- package/scss/components/form/_checks.scss +13 -2
- package/scss/components/form/_date-range.scss +40 -11
- package/scss/components/form/_date.scss +99 -33
- package/scss/components/form/_editor.scss +11 -0
- package/scss/components/form/_form.scss +14 -3
- package/scss/components/form/_nested-select.scss +6 -0
- package/scss/components/form/_number.scss +18 -13
- package/scss/components/form/_picker.scss +8 -0
- package/scss/components/form/_rating.scss +2 -2
- package/scss/components/form/_select.scss +34 -3
- package/scss/components/form/_selection.scss +1 -0
- package/scss/components/form/_text.scss +6 -0
- package/scss/components/form/_textarea.scss +15 -11
- package/scss/components/form/_transfer.scss +33 -11
- package/scss/components/form/_tree.scss +33 -7
- package/scss/components/react-datetime.scss +6 -1
- package/scss/themes/_common.scss +1 -1
- package/scss/themes/_cxd-variables.scss +9 -8
- package/scss/themes/cxd.scss +6 -8
- package/esm/components/BarCode2.js +0 -42
- package/esm/components/CityDB2.js +0 -4101
- package/esm/components/ColorPicker2.js +0 -202
- package/esm/components/Markdown2.js +0 -60
- package/esm/components/RichText2.js +0 -262
- package/esm/components/Tinymce2.js +0 -548
- package/lib/components/BarCode2.js +0 -52
- package/lib/components/CityDB2.js +0 -4108
- package/lib/components/ColorPicker2.js +0 -211
- package/lib/components/Markdown2.js +0 -70
- package/lib/components/RichText2.js +0 -272
- package/lib/components/Tinymce2.js +0 -557
- package/lib/scss/helper.scss2.js +0 -12
- package/lib/scss/themes/ang.scss2.js +0 -12
- package/lib/scss/themes/antd.scss2.js +0 -12
- package/lib/scss/themes/cxd.scss2.js +0 -12
- package/lib/scss/themes/dark.scss2.js +0 -12
- package/lib/scss/themes/default.scss2.js +0 -12
|
@@ -11,6 +11,8 @@ export interface ModalProps extends ThemeProps, LocaleProps {
|
|
|
11
11
|
className?: string;
|
|
12
12
|
contentClassName?: string;
|
|
13
13
|
size?: any;
|
|
14
|
+
width?: any;
|
|
15
|
+
height?: any;
|
|
14
16
|
overlay?: boolean;
|
|
15
17
|
onHide: (e: any) => void;
|
|
16
18
|
closeOnEsc?: boolean;
|
|
@@ -273,21 +275,21 @@ export declare class Modal extends React.Component<ModalProps, ModalState> {
|
|
|
273
275
|
};
|
|
274
276
|
displayName: string;
|
|
275
277
|
contextType: React.Context<string>;
|
|
276
|
-
ComposedComponent: React.ComponentType<({ classnames
|
|
278
|
+
ComposedComponent: React.ComponentType<({ classnames, className, showCloseButton, onClose, children, classPrefix, translate, forwardedRef, ...rest }: ThemeProps & LocaleProps & {
|
|
277
279
|
className?: string | undefined;
|
|
278
280
|
showCloseButton?: boolean | undefined;
|
|
279
281
|
onClose?: (() => void) | undefined;
|
|
280
282
|
children?: React.ReactNode;
|
|
281
283
|
forwardedRef?: any;
|
|
282
284
|
} & React.HTMLAttributes<HTMLDivElement>) => JSX.Element>;
|
|
283
|
-
} & import("hoist-non-react-statics").NonReactStatics<({ classnames
|
|
285
|
+
} & import("hoist-non-react-statics").NonReactStatics<({ classnames, className, showCloseButton, onClose, children, classPrefix, translate, forwardedRef, ...rest }: ThemeProps & LocaleProps & {
|
|
284
286
|
className?: string | undefined;
|
|
285
287
|
showCloseButton?: boolean | undefined;
|
|
286
288
|
onClose?: (() => void) | undefined;
|
|
287
289
|
children?: React.ReactNode;
|
|
288
290
|
forwardedRef?: any;
|
|
289
291
|
} & React.HTMLAttributes<HTMLDivElement>) => JSX.Element, {}> & {
|
|
290
|
-
ComposedComponent: ({ classnames
|
|
292
|
+
ComposedComponent: ({ classnames, className, showCloseButton, onClose, children, classPrefix, translate, forwardedRef, ...rest }: ThemeProps & LocaleProps & {
|
|
291
293
|
className?: string | undefined;
|
|
292
294
|
showCloseButton?: boolean | undefined;
|
|
293
295
|
onClose?: (() => void) | undefined;
|
|
@@ -416,21 +418,21 @@ export declare class Modal extends React.Component<ModalProps, ModalState> {
|
|
|
416
418
|
};
|
|
417
419
|
displayName: string;
|
|
418
420
|
contextType: React.Context<string>;
|
|
419
|
-
ComposedComponent: React.ComponentType<({ classnames
|
|
421
|
+
ComposedComponent: React.ComponentType<({ classnames, className, showCloseButton, onClose, children, classPrefix, translate, forwardedRef, ...rest }: ThemeProps & LocaleProps & {
|
|
420
422
|
className?: string | undefined;
|
|
421
423
|
showCloseButton?: boolean | undefined;
|
|
422
424
|
onClose?: (() => void) | undefined;
|
|
423
425
|
children?: React.ReactNode;
|
|
424
426
|
forwardedRef?: any;
|
|
425
427
|
} & React.HTMLAttributes<HTMLDivElement>) => JSX.Element>;
|
|
426
|
-
} & import("hoist-non-react-statics").NonReactStatics<({ classnames
|
|
428
|
+
} & import("hoist-non-react-statics").NonReactStatics<({ classnames, className, showCloseButton, onClose, children, classPrefix, translate, forwardedRef, ...rest }: ThemeProps & LocaleProps & {
|
|
427
429
|
className?: string | undefined;
|
|
428
430
|
showCloseButton?: boolean | undefined;
|
|
429
431
|
onClose?: (() => void) | undefined;
|
|
430
432
|
children?: React.ReactNode;
|
|
431
433
|
forwardedRef?: any;
|
|
432
434
|
} & React.HTMLAttributes<HTMLDivElement>) => JSX.Element, {}> & {
|
|
433
|
-
ComposedComponent: ({ classnames
|
|
435
|
+
ComposedComponent: ({ classnames, className, showCloseButton, onClose, children, classPrefix, translate, forwardedRef, ...rest }: ThemeProps & LocaleProps & {
|
|
434
436
|
className?: string | undefined;
|
|
435
437
|
showCloseButton?: boolean | undefined;
|
|
436
438
|
onClose?: (() => void) | undefined;
|
|
@@ -559,21 +561,21 @@ export declare class Modal extends React.Component<ModalProps, ModalState> {
|
|
|
559
561
|
};
|
|
560
562
|
displayName: string;
|
|
561
563
|
contextType: React.Context<string>;
|
|
562
|
-
ComposedComponent: React.ComponentType<({ classnames
|
|
564
|
+
ComposedComponent: React.ComponentType<({ classnames, className, showCloseButton, onClose, children, classPrefix, translate, forwardedRef, ...rest }: ThemeProps & LocaleProps & {
|
|
563
565
|
className?: string | undefined;
|
|
564
566
|
showCloseButton?: boolean | undefined;
|
|
565
567
|
onClose?: (() => void) | undefined;
|
|
566
568
|
children?: React.ReactNode;
|
|
567
569
|
forwardedRef?: any;
|
|
568
570
|
} & React.HTMLAttributes<HTMLDivElement>) => JSX.Element>;
|
|
569
|
-
} & import("hoist-non-react-statics").NonReactStatics<({ classnames
|
|
571
|
+
} & import("hoist-non-react-statics").NonReactStatics<({ classnames, className, showCloseButton, onClose, children, classPrefix, translate, forwardedRef, ...rest }: ThemeProps & LocaleProps & {
|
|
570
572
|
className?: string | undefined;
|
|
571
573
|
showCloseButton?: boolean | undefined;
|
|
572
574
|
onClose?: (() => void) | undefined;
|
|
573
575
|
children?: React.ReactNode;
|
|
574
576
|
forwardedRef?: any;
|
|
575
577
|
} & React.HTMLAttributes<HTMLDivElement>) => JSX.Element, {}> & {
|
|
576
|
-
ComposedComponent: ({ classnames
|
|
578
|
+
ComposedComponent: ({ classnames, className, showCloseButton, onClose, children, classPrefix, translate, forwardedRef, ...rest }: ThemeProps & LocaleProps & {
|
|
577
579
|
className?: string | undefined;
|
|
578
580
|
showCloseButton?: boolean | undefined;
|
|
579
581
|
onClose?: (() => void) | undefined;
|
|
@@ -653,17 +655,17 @@ export declare class Modal extends React.Component<ModalProps, ModalState> {
|
|
|
653
655
|
};
|
|
654
656
|
displayName: string;
|
|
655
657
|
contextType: React.Context<string>;
|
|
656
|
-
ComposedComponent: React.ComponentType<({ classnames
|
|
658
|
+
ComposedComponent: React.ComponentType<({ classnames, className, children, classPrefix, forwardedRef, ...rest }: ThemeProps & {
|
|
657
659
|
className?: string | undefined;
|
|
658
660
|
children?: React.ReactNode;
|
|
659
661
|
forwardedRef?: any;
|
|
660
662
|
} & React.HTMLAttributes<HTMLDivElement>) => JSX.Element>;
|
|
661
|
-
} & import("hoist-non-react-statics").NonReactStatics<({ classnames
|
|
663
|
+
} & import("hoist-non-react-statics").NonReactStatics<({ classnames, className, children, classPrefix, forwardedRef, ...rest }: ThemeProps & {
|
|
662
664
|
className?: string | undefined;
|
|
663
665
|
children?: React.ReactNode;
|
|
664
666
|
forwardedRef?: any;
|
|
665
667
|
} & React.HTMLAttributes<HTMLDivElement>) => JSX.Element, {}> & {
|
|
666
|
-
ComposedComponent: ({ classnames
|
|
668
|
+
ComposedComponent: ({ classnames, className, children, classPrefix, forwardedRef, ...rest }: ThemeProps & {
|
|
667
669
|
className?: string | undefined;
|
|
668
670
|
children?: React.ReactNode;
|
|
669
671
|
forwardedRef?: any;
|
|
@@ -740,17 +742,17 @@ export declare class Modal extends React.Component<ModalProps, ModalState> {
|
|
|
740
742
|
};
|
|
741
743
|
displayName: string;
|
|
742
744
|
contextType: React.Context<string>;
|
|
743
|
-
ComposedComponent: React.ComponentType<({ classnames
|
|
745
|
+
ComposedComponent: React.ComponentType<({ classnames, className, children, classPrefix, forwardedRef, ...rest }: ThemeProps & {
|
|
744
746
|
className?: string | undefined;
|
|
745
747
|
children?: React.ReactNode;
|
|
746
748
|
forwardedRef?: any;
|
|
747
749
|
} & React.HTMLAttributes<HTMLDivElement>) => JSX.Element>;
|
|
748
|
-
} & import("hoist-non-react-statics").NonReactStatics<({ classnames
|
|
750
|
+
} & import("hoist-non-react-statics").NonReactStatics<({ classnames, className, children, classPrefix, forwardedRef, ...rest }: ThemeProps & {
|
|
749
751
|
className?: string | undefined;
|
|
750
752
|
children?: React.ReactNode;
|
|
751
753
|
forwardedRef?: any;
|
|
752
754
|
} & React.HTMLAttributes<HTMLDivElement>) => JSX.Element, {}> & {
|
|
753
|
-
ComposedComponent: ({ classnames
|
|
755
|
+
ComposedComponent: ({ classnames, className, children, classPrefix, forwardedRef, ...rest }: ThemeProps & {
|
|
754
756
|
className?: string | undefined;
|
|
755
757
|
children?: React.ReactNode;
|
|
756
758
|
forwardedRef?: any;
|
|
@@ -827,17 +829,17 @@ export declare class Modal extends React.Component<ModalProps, ModalState> {
|
|
|
827
829
|
};
|
|
828
830
|
displayName: string;
|
|
829
831
|
contextType: React.Context<string>;
|
|
830
|
-
ComposedComponent: React.ComponentType<({ classnames
|
|
832
|
+
ComposedComponent: React.ComponentType<({ classnames, className, children, classPrefix, forwardedRef, ...rest }: ThemeProps & {
|
|
831
833
|
className?: string | undefined;
|
|
832
834
|
children?: React.ReactNode;
|
|
833
835
|
forwardedRef?: any;
|
|
834
836
|
} & React.HTMLAttributes<HTMLDivElement>) => JSX.Element>;
|
|
835
|
-
} & import("hoist-non-react-statics").NonReactStatics<({ classnames
|
|
837
|
+
} & import("hoist-non-react-statics").NonReactStatics<({ classnames, className, children, classPrefix, forwardedRef, ...rest }: ThemeProps & {
|
|
836
838
|
className?: string | undefined;
|
|
837
839
|
children?: React.ReactNode;
|
|
838
840
|
forwardedRef?: any;
|
|
839
841
|
} & React.HTMLAttributes<HTMLDivElement>) => JSX.Element, {}> & {
|
|
840
|
-
ComposedComponent: ({ classnames
|
|
842
|
+
ComposedComponent: ({ classnames, className, children, classPrefix, forwardedRef, ...rest }: ThemeProps & {
|
|
841
843
|
className?: string | undefined;
|
|
842
844
|
children?: React.ReactNode;
|
|
843
845
|
forwardedRef?: any;
|
|
@@ -854,7 +856,7 @@ export declare class Modal extends React.Component<ModalProps, ModalState> {
|
|
|
854
856
|
render(): JSX.Element;
|
|
855
857
|
}
|
|
856
858
|
declare const _default: {
|
|
857
|
-
new (props: Omit<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
859
|
+
new (props: Omit<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
858
860
|
container: HTMLElement;
|
|
859
861
|
size: string;
|
|
860
862
|
overlay: boolean;
|
|
@@ -867,7 +869,7 @@ declare const _default: {
|
|
|
867
869
|
getWrappedInstance(): any;
|
|
868
870
|
render(): JSX.Element;
|
|
869
871
|
context: any;
|
|
870
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
872
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
871
873
|
container: HTMLElement;
|
|
872
874
|
size: string;
|
|
873
875
|
overlay: boolean;
|
|
@@ -876,7 +878,7 @@ declare const _default: {
|
|
|
876
878
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
877
879
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
878
880
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
879
|
-
readonly props: Readonly<Omit<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
881
|
+
readonly props: Readonly<Omit<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
880
882
|
container: HTMLElement;
|
|
881
883
|
size: string;
|
|
882
884
|
overlay: boolean;
|
|
@@ -891,7 +893,7 @@ declare const _default: {
|
|
|
891
893
|
[key: string]: React.ReactInstance;
|
|
892
894
|
};
|
|
893
895
|
componentDidMount?(): void;
|
|
894
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
896
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
895
897
|
container: HTMLElement;
|
|
896
898
|
size: string;
|
|
897
899
|
overlay: boolean;
|
|
@@ -901,7 +903,7 @@ declare const _default: {
|
|
|
901
903
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
902
904
|
componentWillUnmount?(): void;
|
|
903
905
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
904
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
906
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
905
907
|
container: HTMLElement;
|
|
906
908
|
size: string;
|
|
907
909
|
overlay: boolean;
|
|
@@ -909,7 +911,7 @@ declare const _default: {
|
|
|
909
911
|
locale?: string | undefined;
|
|
910
912
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
911
913
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
912
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
914
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
913
915
|
container: HTMLElement;
|
|
914
916
|
size: string;
|
|
915
917
|
overlay: boolean;
|
|
@@ -919,7 +921,7 @@ declare const _default: {
|
|
|
919
921
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
920
922
|
componentWillMount?(): void;
|
|
921
923
|
UNSAFE_componentWillMount?(): void;
|
|
922
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
924
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
923
925
|
container: HTMLElement;
|
|
924
926
|
size: string;
|
|
925
927
|
overlay: boolean;
|
|
@@ -927,7 +929,7 @@ declare const _default: {
|
|
|
927
929
|
locale?: string | undefined;
|
|
928
930
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
929
931
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
930
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
932
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
931
933
|
container: HTMLElement;
|
|
932
934
|
size: string;
|
|
933
935
|
overlay: boolean;
|
|
@@ -935,7 +937,7 @@ declare const _default: {
|
|
|
935
937
|
locale?: string | undefined;
|
|
936
938
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
937
939
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
938
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
940
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
939
941
|
container: HTMLElement;
|
|
940
942
|
size: string;
|
|
941
943
|
overlay: boolean;
|
|
@@ -943,7 +945,7 @@ declare const _default: {
|
|
|
943
945
|
locale?: string | undefined;
|
|
944
946
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
945
947
|
}, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
946
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
948
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
947
949
|
container: HTMLElement;
|
|
948
950
|
size: string;
|
|
949
951
|
overlay: boolean;
|
|
@@ -955,7 +957,7 @@ declare const _default: {
|
|
|
955
957
|
displayName: string;
|
|
956
958
|
contextType: React.Context<string>;
|
|
957
959
|
ComposedComponent: React.ComponentType<{
|
|
958
|
-
new (props: Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
960
|
+
new (props: Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
959
961
|
container: HTMLElement;
|
|
960
962
|
size: string;
|
|
961
963
|
overlay: boolean;
|
|
@@ -968,7 +970,7 @@ declare const _default: {
|
|
|
968
970
|
getWrappedInstance(): any;
|
|
969
971
|
render(): JSX.Element;
|
|
970
972
|
context: any;
|
|
971
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
973
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
972
974
|
container: HTMLElement;
|
|
973
975
|
size: string;
|
|
974
976
|
overlay: boolean;
|
|
@@ -977,7 +979,7 @@ declare const _default: {
|
|
|
977
979
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
978
980
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
979
981
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
980
|
-
readonly props: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
982
|
+
readonly props: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
981
983
|
container: HTMLElement;
|
|
982
984
|
size: string;
|
|
983
985
|
overlay: boolean;
|
|
@@ -992,7 +994,7 @@ declare const _default: {
|
|
|
992
994
|
[key: string]: React.ReactInstance;
|
|
993
995
|
};
|
|
994
996
|
componentDidMount?(): void;
|
|
995
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
997
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
996
998
|
container: HTMLElement;
|
|
997
999
|
size: string;
|
|
998
1000
|
overlay: boolean;
|
|
@@ -1002,7 +1004,7 @@ declare const _default: {
|
|
|
1002
1004
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
1003
1005
|
componentWillUnmount?(): void;
|
|
1004
1006
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
1005
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1007
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1006
1008
|
container: HTMLElement;
|
|
1007
1009
|
size: string;
|
|
1008
1010
|
overlay: boolean;
|
|
@@ -1010,7 +1012,7 @@ declare const _default: {
|
|
|
1010
1012
|
locale?: string | undefined;
|
|
1011
1013
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
1012
1014
|
}>, prevState: Readonly<{}>): any;
|
|
1013
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1015
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1014
1016
|
container: HTMLElement;
|
|
1015
1017
|
size: string;
|
|
1016
1018
|
overlay: boolean;
|
|
@@ -1020,7 +1022,7 @@ declare const _default: {
|
|
|
1020
1022
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
1021
1023
|
componentWillMount?(): void;
|
|
1022
1024
|
UNSAFE_componentWillMount?(): void;
|
|
1023
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1025
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1024
1026
|
container: HTMLElement;
|
|
1025
1027
|
size: string;
|
|
1026
1028
|
overlay: boolean;
|
|
@@ -1028,7 +1030,7 @@ declare const _default: {
|
|
|
1028
1030
|
locale?: string | undefined;
|
|
1029
1031
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
1030
1032
|
}>, nextContext: any): void;
|
|
1031
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1033
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1032
1034
|
container: HTMLElement;
|
|
1033
1035
|
size: string;
|
|
1034
1036
|
overlay: boolean;
|
|
@@ -1036,7 +1038,7 @@ declare const _default: {
|
|
|
1036
1038
|
locale?: string | undefined;
|
|
1037
1039
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
1038
1040
|
}>, nextContext: any): void;
|
|
1039
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1041
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1040
1042
|
container: HTMLElement;
|
|
1041
1043
|
size: string;
|
|
1042
1044
|
overlay: boolean;
|
|
@@ -1044,7 +1046,7 @@ declare const _default: {
|
|
|
1044
1046
|
locale?: string | undefined;
|
|
1045
1047
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
1046
1048
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
1047
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1049
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1048
1050
|
container: HTMLElement;
|
|
1049
1051
|
size: string;
|
|
1050
1052
|
overlay: boolean;
|
|
@@ -1060,7 +1062,7 @@ declare const _default: {
|
|
|
1060
1062
|
ComposedComponent: typeof Modal;
|
|
1061
1063
|
}>;
|
|
1062
1064
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
|
1063
|
-
new (props: Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1065
|
+
new (props: Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1064
1066
|
container: HTMLElement;
|
|
1065
1067
|
size: string;
|
|
1066
1068
|
overlay: boolean;
|
|
@@ -1073,7 +1075,7 @@ declare const _default: {
|
|
|
1073
1075
|
getWrappedInstance(): any;
|
|
1074
1076
|
render(): JSX.Element;
|
|
1075
1077
|
context: any;
|
|
1076
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1078
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1077
1079
|
container: HTMLElement;
|
|
1078
1080
|
size: string;
|
|
1079
1081
|
overlay: boolean;
|
|
@@ -1082,7 +1084,7 @@ declare const _default: {
|
|
|
1082
1084
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
1083
1085
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
1084
1086
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
1085
|
-
readonly props: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1087
|
+
readonly props: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1086
1088
|
container: HTMLElement;
|
|
1087
1089
|
size: string;
|
|
1088
1090
|
overlay: boolean;
|
|
@@ -1097,7 +1099,7 @@ declare const _default: {
|
|
|
1097
1099
|
[key: string]: React.ReactInstance;
|
|
1098
1100
|
};
|
|
1099
1101
|
componentDidMount?(): void;
|
|
1100
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1102
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1101
1103
|
container: HTMLElement;
|
|
1102
1104
|
size: string;
|
|
1103
1105
|
overlay: boolean;
|
|
@@ -1107,7 +1109,7 @@ declare const _default: {
|
|
|
1107
1109
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
1108
1110
|
componentWillUnmount?(): void;
|
|
1109
1111
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
1110
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1112
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1111
1113
|
container: HTMLElement;
|
|
1112
1114
|
size: string;
|
|
1113
1115
|
overlay: boolean;
|
|
@@ -1115,7 +1117,7 @@ declare const _default: {
|
|
|
1115
1117
|
locale?: string | undefined;
|
|
1116
1118
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
1117
1119
|
}>, prevState: Readonly<{}>): any;
|
|
1118
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1120
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1119
1121
|
container: HTMLElement;
|
|
1120
1122
|
size: string;
|
|
1121
1123
|
overlay: boolean;
|
|
@@ -1125,7 +1127,7 @@ declare const _default: {
|
|
|
1125
1127
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
1126
1128
|
componentWillMount?(): void;
|
|
1127
1129
|
UNSAFE_componentWillMount?(): void;
|
|
1128
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1130
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1129
1131
|
container: HTMLElement;
|
|
1130
1132
|
size: string;
|
|
1131
1133
|
overlay: boolean;
|
|
@@ -1133,7 +1135,7 @@ declare const _default: {
|
|
|
1133
1135
|
locale?: string | undefined;
|
|
1134
1136
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
1135
1137
|
}>, nextContext: any): void;
|
|
1136
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1138
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1137
1139
|
container: HTMLElement;
|
|
1138
1140
|
size: string;
|
|
1139
1141
|
overlay: boolean;
|
|
@@ -1141,7 +1143,7 @@ declare const _default: {
|
|
|
1141
1143
|
locale?: string | undefined;
|
|
1142
1144
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
1143
1145
|
}>, nextContext: any): void;
|
|
1144
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1146
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1145
1147
|
container: HTMLElement;
|
|
1146
1148
|
size: string;
|
|
1147
1149
|
overlay: boolean;
|
|
@@ -1149,7 +1151,7 @@ declare const _default: {
|
|
|
1149
1151
|
locale?: string | undefined;
|
|
1150
1152
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
1151
1153
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
1152
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1154
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1153
1155
|
container: HTMLElement;
|
|
1154
1156
|
size: string;
|
|
1155
1157
|
overlay: boolean;
|
|
@@ -1165,7 +1167,7 @@ declare const _default: {
|
|
|
1165
1167
|
ComposedComponent: typeof Modal;
|
|
1166
1168
|
}, {}> & {
|
|
1167
1169
|
ComposedComponent: {
|
|
1168
|
-
new (props: Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1170
|
+
new (props: Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1169
1171
|
container: HTMLElement;
|
|
1170
1172
|
size: string;
|
|
1171
1173
|
overlay: boolean;
|
|
@@ -1178,7 +1180,7 @@ declare const _default: {
|
|
|
1178
1180
|
getWrappedInstance(): any;
|
|
1179
1181
|
render(): JSX.Element;
|
|
1180
1182
|
context: any;
|
|
1181
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1183
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1182
1184
|
container: HTMLElement;
|
|
1183
1185
|
size: string;
|
|
1184
1186
|
overlay: boolean;
|
|
@@ -1187,7 +1189,7 @@ declare const _default: {
|
|
|
1187
1189
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
1188
1190
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
|
1189
1191
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
1190
|
-
readonly props: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1192
|
+
readonly props: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1191
1193
|
container: HTMLElement;
|
|
1192
1194
|
size: string;
|
|
1193
1195
|
overlay: boolean;
|
|
@@ -1202,7 +1204,7 @@ declare const _default: {
|
|
|
1202
1204
|
[key: string]: React.ReactInstance;
|
|
1203
1205
|
};
|
|
1204
1206
|
componentDidMount?(): void;
|
|
1205
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1207
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1206
1208
|
container: HTMLElement;
|
|
1207
1209
|
size: string;
|
|
1208
1210
|
overlay: boolean;
|
|
@@ -1212,7 +1214,7 @@ declare const _default: {
|
|
|
1212
1214
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
1213
1215
|
componentWillUnmount?(): void;
|
|
1214
1216
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
1215
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1217
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1216
1218
|
container: HTMLElement;
|
|
1217
1219
|
size: string;
|
|
1218
1220
|
overlay: boolean;
|
|
@@ -1220,7 +1222,7 @@ declare const _default: {
|
|
|
1220
1222
|
locale?: string | undefined;
|
|
1221
1223
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
1222
1224
|
}>, prevState: Readonly<{}>): any;
|
|
1223
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1225
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1224
1226
|
container: HTMLElement;
|
|
1225
1227
|
size: string;
|
|
1226
1228
|
overlay: boolean;
|
|
@@ -1230,7 +1232,7 @@ declare const _default: {
|
|
|
1230
1232
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
1231
1233
|
componentWillMount?(): void;
|
|
1232
1234
|
UNSAFE_componentWillMount?(): void;
|
|
1233
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1235
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1234
1236
|
container: HTMLElement;
|
|
1235
1237
|
size: string;
|
|
1236
1238
|
overlay: boolean;
|
|
@@ -1238,7 +1240,7 @@ declare const _default: {
|
|
|
1238
1240
|
locale?: string | undefined;
|
|
1239
1241
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
1240
1242
|
}>, nextContext: any): void;
|
|
1241
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1243
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1242
1244
|
container: HTMLElement;
|
|
1243
1245
|
size: string;
|
|
1244
1246
|
overlay: boolean;
|
|
@@ -1246,7 +1248,7 @@ declare const _default: {
|
|
|
1246
1248
|
locale?: string | undefined;
|
|
1247
1249
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
1248
1250
|
}>, nextContext: any): void;
|
|
1249
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1251
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1250
1252
|
container: HTMLElement;
|
|
1251
1253
|
size: string;
|
|
1252
1254
|
overlay: boolean;
|
|
@@ -1254,7 +1256,7 @@ declare const _default: {
|
|
|
1254
1256
|
locale?: string | undefined;
|
|
1255
1257
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
|
1256
1258
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
1257
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1259
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ModalProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "contentClassName" | "width" | "height" | "onHide" | "closeOnEsc" | "closeOnOutside" | "show" | "disabled" | "onExited" | "onEntered"> & Partial<Pick<Omit<ModalProps, keyof LocaleProps>, "size" | "overlay" | "container">> & Partial<Pick<{
|
|
1258
1260
|
container: HTMLElement;
|
|
1259
1261
|
size: string;
|
|
1260
1262
|
overlay: boolean;
|
package/lib/components/Modal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.0
|
|
2
|
+
* amis-ui v2.2.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -26,12 +26,17 @@ var Portal__default = /*#__PURE__*/_interopDefaultLegacy(Portal);
|
|
|
26
26
|
* @description
|
|
27
27
|
* @author fex
|
|
28
28
|
*/
|
|
29
|
-
var _a;
|
|
29
|
+
var _a, _b;
|
|
30
30
|
var fadeStyles = (_a = {},
|
|
31
31
|
_a[Transition.ENTERING] = 'in',
|
|
32
32
|
_a[Transition.ENTERED] = 'in',
|
|
33
33
|
_a[Transition.EXITING] = 'out',
|
|
34
34
|
_a);
|
|
35
|
+
var contentFadeStyles = (_b = {},
|
|
36
|
+
_b[Transition.ENTERING] = 'in',
|
|
37
|
+
_b[Transition.ENTERED] = '',
|
|
38
|
+
_b[Transition.EXITING] = 'out',
|
|
39
|
+
_b);
|
|
35
40
|
var Modal = /** @class */ (function (_super) {
|
|
36
41
|
tslib.__extends(Modal, _super);
|
|
37
42
|
function Modal() {
|
|
@@ -104,7 +109,7 @@ var Modal = /** @class */ (function (_super) {
|
|
|
104
109
|
};
|
|
105
110
|
Modal.prototype.render = function () {
|
|
106
111
|
var _this = this;
|
|
107
|
-
var _a = this.props, className = _a.className, contentClassName = _a.contentClassName, children = _a.children, container = _a.container, show = _a.show, size = _a.size, overlay = _a.overlay, cx = _a.classnames;
|
|
112
|
+
var _a = this.props, className = _a.className, contentClassName = _a.contentClassName, children = _a.children, container = _a.container, show = _a.show, size = _a.size, overlay = _a.overlay, width = _a.width, height = _a.height, cx = _a.classnames;
|
|
108
113
|
return (React__default["default"].createElement(Transition__default["default"], { mountOnEnter: true, unmountOnExit: true, appear: true, in: show, timeout: 500, onEnter: this.handleEnter, onExited: this.handleExited, onEntered: this.handleEntered }, function (status) {
|
|
109
114
|
var _a;
|
|
110
115
|
return (React__default["default"].createElement(Portal__default["default"], { container: container },
|
|
@@ -112,7 +117,7 @@ var Modal = /** @class */ (function (_super) {
|
|
|
112
117
|
_a["Modal--".concat(size)] = size,
|
|
113
118
|
_a), className) },
|
|
114
119
|
overlay ? (React__default["default"].createElement("div", { className: cx("Modal-overlay", fadeStyles[status]) })) : null,
|
|
115
|
-
React__default["default"].createElement("div", { className: cx("Modal-content", contentClassName,
|
|
120
|
+
React__default["default"].createElement("div", { className: cx("Modal-content", contentClassName, contentFadeStyles[status]), style: { width: width, height: height } }, status === Transition.EXITED ? null : children))));
|
|
116
121
|
}));
|
|
117
122
|
};
|
|
118
123
|
Modal.defaultProps = {
|