amis-ui 2.6.0 → 2.7.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/_virtual/index.js +8 -0
- package/esm/_virtual/react-is.development.js +8 -0
- package/esm/_virtual/react-is.production.min.js +8 -0
- package/esm/components/404.js +2 -2
- package/esm/components/Alert.js +2 -2
- package/esm/components/Alert2.js +2 -2
- package/esm/components/AnchorNav.js +2 -2
- package/esm/components/ArrayInput.js +2 -2
- package/esm/components/AsideNav.js +2 -2
- package/esm/components/AssociatedSelection.js +2 -2
- package/esm/components/Avatar.js +2 -2
- package/esm/components/Badge.js +2 -2
- package/esm/components/BaiduMapPicker.js +2 -2
- package/esm/components/BarCode.js +2 -2
- package/esm/components/Breadcrumb.js +2 -2
- package/esm/components/Button.js +2 -2
- package/esm/components/CalendarMobile.js +2 -2
- package/esm/components/Card.js +2 -2
- package/esm/components/Cascader.js +2 -2
- package/esm/components/ChainedSelection.js +2 -2
- package/esm/components/Checkbox.js +2 -2
- package/esm/components/CityArea.js +2 -2
- package/esm/components/CityDB.js +2 -2
- package/esm/components/CodeMirror.js +2 -2
- package/esm/components/Collapse.js +5 -3
- package/esm/components/CollapseGroup.js +2 -2
- package/esm/components/ColorPicker.js +2 -2
- package/esm/components/Combo.js +2 -2
- package/esm/components/ConfirmBox.js +2 -2
- package/esm/components/ContextMenu.js +2 -2
- package/esm/components/DatePicker.js +7 -2
- package/esm/components/DateRangePicker.d.ts +7 -4
- package/esm/components/DateRangePicker.js +5 -6
- package/esm/components/DndContainer.d.ts +293 -0
- package/esm/components/DndContainer.js +25 -0
- package/esm/components/Drawer.js +2 -2
- package/esm/components/Editor.js +2 -2
- package/esm/components/Form.js +2 -2
- package/esm/components/FormField.js +2 -2
- package/esm/components/GridNav.js +2 -2
- package/esm/components/GroupedSelection.js +4 -4
- package/esm/components/Html.js +2 -2
- package/esm/components/ImageGallery.d.ts +6 -5
- package/esm/components/ImageGallery.js +26 -10
- package/esm/components/Input.js +2 -2
- package/esm/components/InputBox.js +2 -2
- package/esm/components/InputBoxWithSuggestion.js +2 -2
- package/esm/components/InputTable.js +2 -2
- package/esm/components/Layout.js +2 -2
- package/esm/components/Link.js +2 -2
- package/esm/components/ListGroup.js +2 -2
- package/esm/components/ListMenu.js +2 -2
- package/esm/components/LocationPicker.js +2 -2
- package/esm/components/Markdown.js +2 -2
- package/esm/components/Modal.js +2 -2
- package/esm/components/ModalManager.js +2 -2
- package/esm/components/MultilineText.js +2 -2
- package/esm/components/NumberInput.js +4 -4
- package/esm/components/Pagination.js +2 -2
- package/esm/components/Picker.js +2 -2
- package/esm/components/PickerColumn.js +2 -2
- package/esm/components/PickerContainer.js +2 -2
- package/esm/components/PopOverContainer.js +2 -2
- package/esm/components/PopUp.js +2 -2
- package/esm/components/Progress.js +2 -2
- package/esm/components/PullRefresh.js +2 -2
- package/esm/components/Radios.js +2 -2
- package/esm/components/Range.js +2 -2
- package/esm/components/Rating.d.ts +12 -55
- package/esm/components/Rating.js +32 -16
- package/esm/components/ResultBox.d.ts +41 -40
- package/esm/components/ResultBox.js +16 -7
- package/esm/components/ResultList.d.ts +41 -40
- package/esm/components/ResultList.js +4 -4
- package/esm/components/ResultTableList.js +2 -2
- package/esm/components/ResultTreeList.js +2 -2
- package/esm/components/RichText.js +2 -2
- package/esm/components/SearchBox.js +2 -2
- package/esm/components/Select.d.ts +194 -193
- package/esm/components/Select.js +12 -8
- package/esm/components/Selection.js +2 -2
- package/esm/components/SparkLine.js +2 -2
- package/esm/components/Spinner.js +2 -2
- package/esm/components/Steps.js +2 -2
- package/esm/components/Switch.js +2 -2
- package/esm/components/TableSelection.js +2 -2
- package/esm/components/Tabs.js +16 -12
- package/esm/components/TabsTransfer.d.ts +40 -40
- package/esm/components/TabsTransfer.js +2 -2
- package/esm/components/TabsTransferPicker.js +2 -2
- package/esm/components/Tag.d.ts +14 -10
- package/esm/components/Tag.js +22 -2
- package/esm/components/Textarea.js +2 -2
- package/esm/components/Timeline.js +2 -2
- package/esm/components/TimelineItem.js +2 -2
- package/esm/components/Tinymce.js +2 -2
- package/esm/components/TitleBar.js +2 -2
- package/esm/components/Toast.js +3 -3
- package/esm/components/Tooltip.js +2 -2
- package/esm/components/TooltipWrapper.js +2 -2
- package/esm/components/Transfer.d.ts +41 -40
- package/esm/components/Transfer.js +4 -4
- package/esm/components/TransferDropDown.d.ts +40 -40
- package/esm/components/TransferDropDown.js +4 -4
- package/esm/components/TransferPicker.js +2 -2
- package/esm/components/TransferSearch.js +2 -2
- package/esm/components/Tree.js +21 -8
- package/esm/components/TreeSelection.js +2 -2
- package/esm/components/UserSelect.js +4 -2
- package/esm/components/UserTabSelect.js +4 -2
- package/esm/components/WithRemoteConfig.js +7 -6
- package/esm/components/WithStore.js +2 -2
- package/esm/components/calendar/Calendar.js +2 -2
- package/esm/components/calendar/CalendarContainer.js +2 -2
- package/esm/components/calendar/DaysView.js +2 -2
- package/esm/components/calendar/MonthsView.js +2 -2
- package/esm/components/calendar/QuartersView.js +2 -2
- package/esm/components/calendar/TimeView.js +2 -2
- package/esm/components/calendar/YearsView.js +2 -2
- package/esm/components/condition-builder/Expression.js +2 -2
- package/esm/components/condition-builder/Field.js +2 -2
- package/esm/components/condition-builder/Formula.js +2 -2
- package/esm/components/condition-builder/Func.js +2 -2
- package/esm/components/condition-builder/Group.js +2 -2
- package/esm/components/condition-builder/GroupOrItem.js +2 -2
- package/esm/components/condition-builder/InputSwitch.js +2 -2
- package/esm/components/condition-builder/Item.js +2 -2
- package/esm/components/condition-builder/Value.js +2 -2
- package/esm/components/condition-builder/config.js +2 -2
- package/esm/components/condition-builder/index.js +2 -2
- package/esm/components/formula/Editor.js +2 -2
- package/esm/components/formula/FuncList.js +2 -2
- package/esm/components/formula/Picker.js +2 -2
- package/esm/components/formula/VariableList.js +2 -2
- package/esm/components/formula/plugin.js +2 -2
- package/esm/components/icons.d.ts +2 -1
- package/esm/components/icons.js +31 -15
- package/esm/components/index.d.ts +3 -1
- package/esm/components/json-schema/Array.js +2 -2
- package/esm/components/json-schema/Item.js +2 -2
- package/esm/components/json-schema/Object.js +2 -2
- package/esm/components/json-schema/index.js +2 -2
- package/esm/components/menu/MenuContext.d.ts +73 -0
- package/esm/components/menu/MenuContext.js +25 -0
- package/esm/components/menu/MenuItem.d.ts +84 -0
- package/esm/components/menu/MenuItem.js +125 -0
- package/esm/components/menu/SubMenu.d.ts +88 -0
- package/esm/components/menu/SubMenu.js +141 -0
- package/esm/components/menu/index.d.ts +246 -0
- package/esm/components/menu/index.js +315 -0
- package/esm/components/schema-editor/Array.js +2 -2
- package/esm/components/schema-editor/Common.js +2 -2
- package/esm/components/schema-editor/Item.js +2 -2
- package/esm/components/schema-editor/Object.js +2 -2
- package/esm/components/schema-editor/SchemaVariableList.js +2 -2
- package/esm/components/schema-editor/SchemaVariableListPicker.js +2 -2
- package/esm/components/schema-editor/index.js +2 -2
- package/esm/components/table/Cell.js +2 -2
- package/esm/components/table/HeadCellDropDown.js +2 -2
- package/esm/components/table/HeadCellFilter.js +2 -2
- package/esm/components/table/HeadCellSelect.js +2 -2
- package/esm/components/table/HeadCellSort.d.ts +2 -0
- package/esm/components/table/HeadCellSort.js +25 -17
- package/esm/components/table/ItemActionsWrapper.js +2 -2
- package/esm/components/table/index.d.ts +1 -0
- package/esm/components/table/index.js +16 -9
- package/esm/components/virtual-list/AutoSizer.js +2 -2
- package/esm/components/virtual-list/SizeAndPositionManager.js +2 -2
- package/esm/components/virtual-list/constants.js +2 -2
- package/esm/components/virtual-list/index.js +2 -2
- package/esm/hooks/use-set-state.js +2 -2
- package/esm/hooks/use-sub-form.js +2 -2
- package/esm/hooks/use-touch.js +2 -2
- package/esm/hooks/use-update-effect.js +2 -2
- package/esm/hooks/use-validation-resolver.js +2 -2
- package/esm/icons/alert-danger.svg.js +2 -2
- package/esm/icons/alert-info.svg.js +2 -2
- package/esm/icons/alert-success.svg.js +2 -2
- package/esm/icons/alert-warning.svg.js +2 -2
- package/esm/icons/back.svg.js +2 -2
- package/esm/icons/calendar.svg.js +2 -2
- package/esm/icons/caret.svg.js +2 -2
- package/esm/icons/check.svg.js +2 -2
- package/esm/icons/clock.svg.js +2 -2
- package/esm/icons/close-small.svg.js +2 -2
- package/esm/icons/close.svg.js +2 -2
- package/esm/icons/cloud-upload.svg.js +7 -16
- package/esm/icons/column-filter.svg.js +2 -2
- package/esm/icons/columns.svg.js +2 -2
- package/esm/icons/compress-alt.svg.js +2 -2
- package/esm/icons/copy.svg.js +2 -2
- package/esm/icons/date.svg.js +2 -2
- package/esm/icons/department.svg.js +2 -2
- package/esm/icons/desk-empty.svg.js +2 -2
- package/esm/icons/dot.svg.js +2 -2
- package/esm/icons/down-arrow-bold.svg.js +2 -2
- package/esm/icons/down.svg.js +2 -2
- package/esm/icons/download.svg.js +2 -2
- package/esm/icons/drag-bar.svg.js +2 -2
- package/esm/icons/drag.svg.js +2 -2
- package/esm/icons/edit.svg.js +2 -2
- package/esm/icons/ellipsis-v.svg.js +2 -2
- package/esm/icons/enter.svg.js +2 -2
- package/esm/icons/exchange.svg.js +2 -2
- package/esm/icons/expand-alt.svg.js +2 -2
- package/esm/icons/fail.svg.js +12 -10
- package/esm/icons/file.svg.js +2 -2
- package/esm/icons/filter.svg.js +2 -2
- package/esm/icons/folder.svg.js +2 -2
- package/esm/icons/function.svg.js +2 -2
- package/esm/icons/home.svg.js +2 -2
- package/esm/icons/image.svg.js +2 -2
- package/esm/icons/info-circle.svg.js +2 -2
- package/esm/icons/info.svg.js +2 -2
- package/esm/icons/input-clear.svg.js +2 -2
- package/esm/icons/invisible.svg.js +2 -2
- package/esm/icons/left-arrow.svg.js +2 -2
- package/esm/icons/loading-outline.svg.js +2 -2
- package/esm/icons/location.svg.js +2 -2
- package/esm/icons/menu.svg.js +2 -2
- package/esm/icons/minus.svg.js +2 -2
- package/esm/icons/move.svg.js +2 -2
- package/esm/icons/mute.svg.js +2 -2
- package/esm/icons/new-edit.svg.js +2 -2
- package/esm/icons/pause.svg.js +2 -2
- package/esm/icons/pencil.svg.js +2 -2
- package/esm/icons/play.svg.js +2 -2
- package/esm/icons/plus-cicle.svg.js +2 -2
- package/esm/icons/plus-fine.svg.js +2 -2
- package/esm/icons/plus.svg.js +2 -2
- package/esm/icons/post.svg.js +2 -2
- package/esm/icons/question-mark.svg.js +2 -2
- package/esm/icons/question.svg.js +2 -2
- package/esm/icons/redo.svg.js +2 -2
- package/esm/icons/refresh.svg.js +2 -2
- package/esm/icons/reload.svg.js +2 -2
- package/esm/icons/remove.svg.js +2 -2
- package/esm/icons/retry.svg.js +2 -2
- package/esm/icons/right-arrow-bold.svg.js +2 -2
- package/esm/icons/right-arrow.svg.js +2 -2
- package/esm/icons/right-double-arrow.svg.js +2 -2
- package/esm/icons/role.svg.js +2 -2
- package/esm/icons/rotate-left.svg.js +2 -2
- package/esm/icons/rotate-right.svg.js +2 -2
- package/esm/icons/scale-origin.svg.js +2 -2
- package/esm/icons/schedule.svg.js +2 -2
- package/esm/icons/search.svg.js +2 -2
- package/esm/icons/setting.svg.js +2 -2
- package/esm/icons/slider-handle-icon.svg.js +2 -2
- package/esm/icons/sort-asc.svg.js +2 -2
- package/esm/icons/sort-default.svg.js +2 -2
- package/esm/icons/sort-desc.svg.js +2 -2
- package/esm/icons/star.svg.js +2 -2
- package/esm/icons/status-close.svg.js +2 -2
- package/esm/icons/steps-finsh.svg.js +2 -2
- package/esm/icons/success.svg.js +14 -12
- package/esm/icons/transparent.svg.js +2 -2
- package/esm/icons/trash.svg.js +2 -2
- package/esm/icons/tree-down.svg.js +2 -2
- package/esm/icons/undo.svg.js +2 -2
- package/esm/icons/upload.svg.js +2 -2
- package/esm/icons/user-remove.svg.js +2 -2
- package/esm/icons/view.svg.js +2 -2
- package/esm/icons/volume.svg.js +2 -2
- package/esm/icons/warning-mark.svg.js +2 -2
- package/esm/icons/warning.svg.js +2 -2
- package/esm/icons/window-restore.svg.js +2 -2
- package/esm/icons/zoom-in.svg.js +2 -2
- package/esm/icons/zoom-out.svg.js +2 -2
- package/esm/index.js +4 -2
- package/esm/locale/de-DE.js +2 -2
- package/esm/locale/en-US.js +2 -2
- package/esm/locale/zh-CN.js +2 -2
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +14 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +10 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +13 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +12 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +26 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +25 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +23 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +21 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +13 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +25 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +18 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +36 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +10 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +30 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +24 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +19 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +18 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +14 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +15 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +19 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +14 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +16 -0
- package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +17 -0
- package/esm/node_modules/rc-overflow/es/Item.js +90 -0
- package/esm/node_modules/rc-overflow/es/Overflow.js +341 -0
- package/esm/node_modules/rc-overflow/es/RawItem.js +48 -0
- package/esm/node_modules/rc-overflow/es/hooks/useBatchFrameState.js +51 -0
- package/esm/node_modules/rc-overflow/es/index.js +7 -0
- package/esm/node_modules/rc-resize-observer/es/Collection.js +41 -0
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +37 -0
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/index.js +108 -0
- package/esm/node_modules/rc-resize-observer/es/index.js +37 -0
- package/esm/node_modules/rc-resize-observer/es/utils/observerUtil.js +48 -0
- package/esm/node_modules/rc-util/es/Children/toArray.js +28 -0
- package/esm/node_modules/rc-util/es/Dom/canUseDom.js +10 -0
- package/esm/node_modules/rc-util/es/Dom/findDOMNode.js +22 -0
- package/esm/node_modules/rc-util/es/hooks/useLayoutEffect.js +14 -0
- package/esm/node_modules/rc-util/es/hooks/useState.js +35 -0
- package/esm/node_modules/rc-util/es/raf.js +55 -0
- package/esm/node_modules/rc-util/es/ref.js +55 -0
- package/esm/node_modules/rc-util/es/warning.js +15 -0
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +195 -0
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +31 -0
- package/esm/node_modules/rc-util/node_modules/react-is/index.js +17 -0
- package/esm/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +933 -0
- package/esm/themes/ang.js +2 -2
- package/esm/themes/antd.js +2 -2
- package/esm/themes/cxd.js +2 -2
- package/esm/themes/dark.js +2 -2
- package/lib/_virtual/index.js +12 -0
- package/lib/_virtual/react-is.development.js +12 -0
- package/lib/_virtual/react-is.production.min.js +12 -0
- package/lib/components/404.js +2 -2
- package/lib/components/Alert.d.ts +40 -40
- package/lib/components/Alert.js +2 -2
- package/lib/components/Alert2.d.ts +10 -10
- package/lib/components/Alert2.js +2 -2
- package/lib/components/AnchorNav.d.ts +10 -10
- package/lib/components/AnchorNav.js +2 -2
- package/lib/components/ArrayInput.d.ts +40 -40
- package/lib/components/ArrayInput.js +2 -2
- package/lib/components/AsideNav.d.ts +10 -10
- package/lib/components/AsideNav.js +2 -2
- package/lib/components/AssociatedSelection.d.ts +40 -40
- package/lib/components/AssociatedSelection.js +2 -2
- package/lib/components/Avatar.d.ts +10 -10
- package/lib/components/Avatar.js +2 -2
- package/lib/components/Badge.js +2 -2
- package/lib/components/BaiduMapPicker.js +2 -2
- package/lib/components/BarCode.js +2 -2
- package/lib/components/Breadcrumb.js +2 -2
- package/lib/components/Button.d.ts +10 -10
- package/lib/components/Button.js +2 -2
- package/lib/components/CalendarMobile.d.ts +40 -40
- package/lib/components/CalendarMobile.js +2 -2
- package/lib/components/Card.d.ts +10 -10
- package/lib/components/Card.js +2 -2
- package/lib/components/Cascader.js +2 -2
- package/lib/components/ChainedSelection.d.ts +40 -40
- package/lib/components/ChainedSelection.js +2 -2
- package/lib/components/Checkbox.d.ts +10 -10
- package/lib/components/Checkbox.js +2 -2
- package/lib/components/CityArea.js +2 -2
- package/lib/components/CityDB.js +2 -2
- package/lib/components/CodeMirror.js +2 -2
- package/lib/components/Collapse.d.ts +10 -10
- package/lib/components/Collapse.js +5 -3
- package/lib/components/CollapseGroup.d.ts +10 -10
- package/lib/components/CollapseGroup.js +2 -2
- package/lib/components/ColorPicker.d.ts +40 -40
- package/lib/components/ColorPicker.js +2 -2
- package/lib/components/Combo.js +2 -2
- package/lib/components/ConfirmBox.d.ts +40 -40
- package/lib/components/ConfirmBox.js +2 -2
- package/lib/components/ContextMenu.js +2 -2
- package/lib/components/DatePicker.d.ts +81 -81
- package/lib/components/DatePicker.js +7 -2
- package/lib/components/DateRangePicker.d.ts +47 -44
- package/lib/components/DateRangePicker.js +5 -6
- package/lib/components/DndContainer.d.ts +293 -0
- package/lib/components/DndContainer.js +34 -0
- package/lib/components/Drawer.d.ts +10 -10
- package/lib/components/Drawer.js +2 -2
- package/lib/components/Editor.d.ts +40 -40
- package/lib/components/Editor.js +2 -2
- package/lib/components/Form.js +2 -2
- package/lib/components/FormField.js +2 -2
- package/lib/components/GridNav.js +2 -2
- package/lib/components/GroupedSelection.d.ts +40 -40
- package/lib/components/GroupedSelection.js +4 -4
- package/lib/components/Html.js +2 -2
- package/lib/components/ImageGallery.d.ts +46 -45
- package/lib/components/ImageGallery.js +26 -10
- package/lib/components/Input.js +2 -2
- package/lib/components/InputBox.d.ts +10 -10
- package/lib/components/InputBox.js +2 -2
- package/lib/components/InputBoxWithSuggestion.js +2 -2
- package/lib/components/InputTable.js +2 -2
- package/lib/components/Layout.d.ts +10 -10
- package/lib/components/Layout.js +2 -2
- package/lib/components/Link.js +2 -2
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +2 -2
- package/lib/components/ListMenu.d.ts +40 -40
- package/lib/components/ListMenu.js +2 -2
- package/lib/components/LocationPicker.d.ts +40 -40
- package/lib/components/LocationPicker.js +2 -2
- package/lib/components/Markdown.js +2 -2
- package/lib/components/Modal.d.ts +40 -40
- package/lib/components/Modal.js +2 -2
- package/lib/components/ModalManager.js +2 -2
- package/lib/components/MonthRangePicker.d.ts +40 -40
- package/lib/components/MultilineText.d.ts +40 -40
- package/lib/components/MultilineText.js +2 -2
- package/lib/components/NumberInput.d.ts +10 -10
- package/lib/components/NumberInput.js +4 -4
- package/lib/components/Pagination.d.ts +40 -40
- package/lib/components/Pagination.js +2 -2
- package/lib/components/Picker.js +2 -2
- package/lib/components/PickerColumn.js +2 -2
- package/lib/components/PickerContainer.js +2 -2
- package/lib/components/PopOverContainer.js +2 -2
- package/lib/components/PopUp.d.ts +40 -40
- package/lib/components/PopUp.js +2 -2
- package/lib/components/Progress.d.ts +10 -10
- package/lib/components/Progress.js +2 -2
- package/lib/components/PullRefresh.js +2 -2
- package/lib/components/Radios.d.ts +10 -10
- package/lib/components/Radios.js +2 -2
- package/lib/components/Range.js +2 -2
- package/lib/components/Rating.d.ts +22 -65
- package/lib/components/Rating.js +32 -16
- package/lib/components/ResultBox.d.ts +41 -40
- package/lib/components/ResultBox.js +16 -7
- package/lib/components/ResultList.d.ts +41 -40
- package/lib/components/ResultList.js +4 -4
- package/lib/components/ResultTableList.d.ts +40 -40
- package/lib/components/ResultTableList.js +2 -2
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +2 -2
- package/lib/components/RichText.js +2 -2
- package/lib/components/SearchBox.d.ts +40 -40
- package/lib/components/SearchBox.js +2 -2
- package/lib/components/Select.d.ts +194 -193
- package/lib/components/Select.js +12 -8
- package/lib/components/Selection.d.ts +40 -40
- package/lib/components/Selection.js +2 -2
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +2 -2
- package/lib/components/Spinner.d.ts +10 -10
- package/lib/components/Spinner.js +2 -2
- package/lib/components/Steps.js +2 -2
- package/lib/components/Switch.d.ts +10 -10
- package/lib/components/Switch.js +2 -2
- package/lib/components/TableSelection.d.ts +40 -40
- package/lib/components/TableSelection.js +2 -2
- package/lib/components/Tabs.d.ts +40 -40
- package/lib/components/Tabs.js +16 -12
- package/lib/components/TabsTransfer.d.ts +40 -40
- package/lib/components/TabsTransfer.js +2 -2
- package/lib/components/TabsTransferPicker.js +2 -2
- package/lib/components/Tag.d.ts +14 -10
- package/lib/components/Tag.js +22 -2
- package/lib/components/Textarea.d.ts +40 -40
- package/lib/components/Textarea.js +2 -2
- package/lib/components/Timeline.js +2 -2
- package/lib/components/TimelineItem.js +2 -2
- package/lib/components/Tinymce.js +2 -2
- package/lib/components/TitleBar.js +2 -2
- package/lib/components/Toast.d.ts +40 -40
- package/lib/components/Toast.js +3 -3
- package/lib/components/Tooltip.js +2 -2
- package/lib/components/TooltipWrapper.d.ts +10 -10
- package/lib/components/TooltipWrapper.js +2 -2
- package/lib/components/Transfer.d.ts +50 -49
- package/lib/components/Transfer.js +4 -4
- package/lib/components/TransferDropDown.d.ts +40 -40
- package/lib/components/TransferDropDown.js +4 -4
- package/lib/components/TransferPicker.js +2 -2
- package/lib/components/TransferSearch.js +2 -2
- package/lib/components/Tree.d.ts +40 -40
- package/lib/components/Tree.js +21 -8
- package/lib/components/TreeSelection.d.ts +40 -40
- package/lib/components/TreeSelection.js +2 -2
- package/lib/components/UserSelect.d.ts +40 -40
- package/lib/components/UserSelect.js +4 -2
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +4 -2
- package/lib/components/WithRemoteConfig.js +7 -6
- package/lib/components/WithStore.js +2 -2
- package/lib/components/calendar/Calendar.js +2 -2
- package/lib/components/calendar/CalendarContainer.js +2 -2
- package/lib/components/calendar/DaysView.js +2 -2
- package/lib/components/calendar/MonthsView.js +2 -2
- package/lib/components/calendar/QuartersView.js +2 -2
- package/lib/components/calendar/TimeView.js +2 -2
- package/lib/components/calendar/YearsView.js +2 -2
- package/lib/components/condition-builder/Expression.js +2 -2
- package/lib/components/condition-builder/Field.js +2 -2
- package/lib/components/condition-builder/Formula.js +2 -2
- package/lib/components/condition-builder/Func.js +2 -2
- package/lib/components/condition-builder/Group.js +2 -2
- package/lib/components/condition-builder/GroupOrItem.js +2 -2
- package/lib/components/condition-builder/InputSwitch.js +2 -2
- package/lib/components/condition-builder/Item.js +2 -2
- package/lib/components/condition-builder/Value.js +2 -2
- package/lib/components/condition-builder/config.js +2 -2
- package/lib/components/condition-builder/index.d.ts +1 -1
- package/lib/components/condition-builder/index.js +2 -2
- package/lib/components/formula/Editor.d.ts +40 -40
- package/lib/components/formula/Editor.js +2 -2
- package/lib/components/formula/FuncList.js +2 -2
- package/lib/components/formula/Picker.d.ts +40 -40
- package/lib/components/formula/Picker.js +2 -2
- package/lib/components/formula/VariableList.js +2 -2
- package/lib/components/formula/plugin.js +2 -2
- package/lib/components/icons.d.ts +2 -1
- package/lib/components/icons.js +30 -14
- package/lib/components/index.d.ts +3 -1
- package/lib/components/json-schema/Array.js +2 -2
- package/lib/components/json-schema/Item.js +2 -2
- package/lib/components/json-schema/Object.js +2 -2
- package/lib/components/json-schema/index.js +2 -2
- package/lib/components/menu/MenuContext.d.ts +73 -0
- package/lib/components/menu/MenuContext.js +29 -0
- package/lib/components/menu/MenuItem.d.ts +84 -0
- package/lib/components/menu/MenuItem.js +135 -0
- package/lib/components/menu/SubMenu.d.ts +88 -0
- package/lib/components/menu/SubMenu.js +151 -0
- package/lib/components/menu/index.d.ts +246 -0
- package/lib/components/menu/index.js +328 -0
- package/lib/components/schema-editor/Array.js +2 -2
- package/lib/components/schema-editor/Common.js +2 -2
- package/lib/components/schema-editor/Item.js +2 -2
- package/lib/components/schema-editor/Object.js +2 -2
- package/lib/components/schema-editor/SchemaVariableList.js +2 -2
- package/lib/components/schema-editor/SchemaVariableListPicker.js +2 -2
- package/lib/components/schema-editor/index.d.ts +40 -40
- package/lib/components/schema-editor/index.js +2 -2
- package/lib/components/table/Cell.d.ts +40 -40
- package/lib/components/table/Cell.js +2 -2
- package/lib/components/table/HeadCellDropDown.js +2 -2
- package/lib/components/table/HeadCellFilter.d.ts +40 -40
- package/lib/components/table/HeadCellFilter.js +2 -2
- package/lib/components/table/HeadCellSelect.d.ts +40 -40
- package/lib/components/table/HeadCellSelect.js +2 -2
- package/lib/components/table/HeadCellSort.d.ts +2 -0
- package/lib/components/table/HeadCellSort.js +25 -17
- package/lib/components/table/ItemActionsWrapper.js +2 -2
- package/lib/components/table/index.d.ts +41 -40
- package/lib/components/table/index.js +16 -9
- package/lib/components/virtual-list/AutoSizer.js +2 -2
- package/lib/components/virtual-list/SizeAndPositionManager.js +2 -2
- package/lib/components/virtual-list/constants.js +2 -2
- package/lib/components/virtual-list/index.js +2 -2
- package/lib/hooks/use-set-state.js +2 -2
- package/lib/hooks/use-sub-form.js +2 -2
- package/lib/hooks/use-touch.js +2 -2
- package/lib/hooks/use-update-effect.js +2 -2
- package/lib/hooks/use-validation-resolver.js +2 -2
- package/lib/icons/alert-danger.svg.js +2 -2
- package/lib/icons/alert-info.svg.js +2 -2
- package/lib/icons/alert-success.svg.js +2 -2
- package/lib/icons/alert-warning.svg.js +2 -2
- package/lib/icons/back.svg.js +2 -2
- package/lib/icons/calendar.svg.js +2 -2
- package/lib/icons/caret.svg.js +2 -2
- package/lib/icons/check.svg.js +2 -2
- package/lib/icons/clock.svg.js +2 -2
- package/lib/icons/close-small.svg.js +2 -2
- package/lib/icons/close.svg.js +2 -2
- package/lib/icons/cloud-upload.svg.js +7 -16
- package/lib/icons/column-filter.svg.js +2 -2
- package/lib/icons/columns.svg.js +2 -2
- package/lib/icons/compress-alt.svg.js +2 -2
- package/lib/icons/copy.svg.js +2 -2
- package/lib/icons/date.svg.js +2 -2
- package/lib/icons/department.svg.js +2 -2
- package/lib/icons/desk-empty.svg.js +2 -2
- package/lib/icons/dot.svg.js +2 -2
- package/lib/icons/down-arrow-bold.svg.js +2 -2
- package/lib/icons/down.svg.js +2 -2
- package/lib/icons/download.svg.js +2 -2
- package/lib/icons/drag-bar.svg.js +2 -2
- package/lib/icons/drag.svg.js +2 -2
- package/lib/icons/edit.svg.js +2 -2
- package/lib/icons/ellipsis-v.svg.js +2 -2
- package/lib/icons/enter.svg.js +2 -2
- package/lib/icons/exchange.svg.js +2 -2
- package/lib/icons/expand-alt.svg.js +2 -2
- package/lib/icons/fail.svg.js +12 -10
- package/lib/icons/file.svg.js +2 -2
- package/lib/icons/filter.svg.js +2 -2
- package/lib/icons/folder.svg.js +2 -2
- package/lib/icons/function.svg.js +2 -2
- package/lib/icons/home.svg.js +2 -2
- package/lib/icons/image.svg.js +2 -2
- package/lib/icons/info-circle.svg.js +2 -2
- package/lib/icons/info.svg.js +2 -2
- package/lib/icons/input-clear.svg.js +2 -2
- package/lib/icons/invisible.svg.js +2 -2
- package/lib/icons/left-arrow.svg.js +2 -2
- package/lib/icons/loading-outline.svg.js +2 -2
- package/lib/icons/location.svg.js +2 -2
- package/lib/icons/menu.svg.js +2 -2
- package/lib/icons/minus.svg.js +2 -2
- package/lib/icons/move.svg.js +2 -2
- package/lib/icons/mute.svg.js +2 -2
- package/lib/icons/new-edit.svg.js +2 -2
- package/lib/icons/pause.svg.js +2 -2
- package/lib/icons/pencil.svg.js +2 -2
- package/lib/icons/play.svg.js +2 -2
- package/lib/icons/plus-cicle.svg.js +2 -2
- package/lib/icons/plus-fine.svg.js +2 -2
- package/lib/icons/plus.svg.js +2 -2
- package/lib/icons/post.svg.js +2 -2
- package/lib/icons/question-mark.svg.js +2 -2
- package/lib/icons/question.svg.js +2 -2
- package/lib/icons/redo.svg.js +2 -2
- package/lib/icons/refresh.svg.js +2 -2
- package/lib/icons/reload.svg.js +2 -2
- package/lib/icons/remove.svg.js +2 -2
- package/lib/icons/retry.svg.js +2 -2
- package/lib/icons/right-arrow-bold.svg.js +2 -2
- package/lib/icons/right-arrow.svg.js +2 -2
- package/lib/icons/right-double-arrow.svg.js +2 -2
- package/lib/icons/role.svg.js +2 -2
- package/lib/icons/rotate-left.svg.js +2 -2
- package/lib/icons/rotate-right.svg.js +2 -2
- package/lib/icons/scale-origin.svg.js +2 -2
- package/lib/icons/schedule.svg.js +2 -2
- package/lib/icons/search.svg.js +2 -2
- package/lib/icons/setting.svg.js +2 -2
- package/lib/icons/slider-handle-icon.svg.js +2 -2
- package/lib/icons/sort-asc.svg.js +2 -2
- package/lib/icons/sort-default.svg.js +2 -2
- package/lib/icons/sort-desc.svg.js +2 -2
- package/lib/icons/star.svg.js +2 -2
- package/lib/icons/status-close.svg.js +2 -2
- package/lib/icons/steps-finsh.svg.js +2 -2
- package/lib/icons/success.svg.js +29 -27
- package/lib/icons/transparent.svg.js +2 -2
- package/lib/icons/trash.svg.js +2 -2
- package/lib/icons/tree-down.svg.js +2 -2
- package/lib/icons/undo.svg.js +2 -2
- package/lib/icons/upload.svg.js +2 -2
- package/lib/icons/user-remove.svg.js +2 -2
- package/lib/icons/view.svg.js +2 -2
- package/lib/icons/volume.svg.js +2 -2
- package/lib/icons/warning-mark.svg.js +2 -2
- package/lib/icons/warning.svg.js +2 -2
- package/lib/icons/window-restore.svg.js +2 -2
- package/lib/icons/zoom-in.svg.js +2 -2
- package/lib/icons/zoom-out.svg.js +2 -2
- package/lib/index.js +6 -2
- package/lib/locale/de-DE.js +2 -2
- package/lib/locale/en-US.js +2 -2
- package/lib/locale/zh-CN.js +2 -2
- package/lib/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +18 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +14 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +17 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +16 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/createClass.js +30 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/createSuper.js +29 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/defineProperty.js +27 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/extends.js +25 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +17 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/inherits.js +29 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +22 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +40 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +14 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +34 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +28 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +23 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +22 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +18 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +19 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +23 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +18 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/typeof.js +20 -0
- package/lib/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +21 -0
- package/lib/node_modules/rc-overflow/es/Item.js +117 -0
- package/lib/node_modules/rc-overflow/es/Overflow.js +368 -0
- package/lib/node_modules/rc-overflow/es/RawItem.js +75 -0
- package/lib/node_modules/rc-overflow/es/hooks/useBatchFrameState.js +55 -0
- package/lib/node_modules/rc-overflow/es/index.js +14 -0
- package/lib/node_modules/rc-resize-observer/es/Collection.js +66 -0
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +61 -0
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/index.js +132 -0
- package/lib/node_modules/rc-resize-observer/es/index.js +61 -0
- package/lib/node_modules/rc-resize-observer/es/utils/observerUtil.js +53 -0
- package/lib/node_modules/rc-util/es/Children/toArray.js +36 -0
- package/lib/node_modules/rc-util/es/Dom/canUseDom.js +14 -0
- package/lib/node_modules/rc-util/es/Dom/findDOMNode.js +31 -0
- package/lib/node_modules/rc-util/es/hooks/useLayoutEffect.js +38 -0
- package/lib/node_modules/rc-util/es/hooks/useState.js +59 -0
- package/lib/node_modules/rc-util/es/raf.js +59 -0
- package/lib/node_modules/rc-util/es/ref.js +61 -0
- package/lib/node_modules/rc-util/es/warning.js +19 -0
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +199 -0
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +35 -0
- package/lib/node_modules/rc-util/node_modules/react-is/index.js +19 -0
- package/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +937 -0
- package/lib/{scss → packages/amis-ui/scss}/helper.scss.js +2 -2
- package/lib/{scss → packages/amis-ui/scss}/themes/ang.scss.js +2 -2
- package/lib/{scss → packages/amis-ui/scss}/themes/antd.scss.js +2 -2
- package/lib/{scss → packages/amis-ui/scss}/themes/cxd.scss.js +2 -2
- package/lib/{scss → packages/amis-ui/scss}/themes/dark.scss.js +2 -2
- package/lib/{scss → packages/amis-ui/scss}/themes/default.scss.js +2 -2
- package/lib/themes/ang.css +4130 -873
- package/lib/themes/ang.js +2 -2
- package/lib/themes/antd.css +4130 -873
- package/lib/themes/antd.js +2 -2
- package/lib/themes/cxd.css +4131 -873
- package/lib/themes/cxd.js +2 -2
- package/lib/themes/dark.css +4130 -873
- package/lib/themes/dark.js +2 -2
- package/lib/themes/default.css +4131 -873
- package/package.json +5 -3
- package/scss/_components.scss +1752 -72
- package/scss/_mixins.scss +15 -6
- package/scss/_properties.scss +60 -314
- package/scss/base/_typography.scss +13 -0
- package/scss/components/_anchor-nav.scss +3 -3
- package/scss/components/_array-input.scss +1 -0
- package/scss/components/_button.scss +5 -0
- package/scss/components/_collapse-group.scss +2 -1
- package/scss/components/_collapse.scss +49 -35
- package/scss/components/_divider.scss +3 -3
- package/scss/components/_formula.scss +9 -1
- package/scss/components/_link.scss +15 -1
- package/scss/components/_menu.scss +1153 -0
- package/scss/components/_nav.scss +137 -82
- package/scss/components/_panel.scss +44 -17
- package/scss/components/_result-box.scss +4 -0
- package/scss/components/_tabs.scss +405 -137
- package/scss/components/form/_checks.scss +174 -14
- package/scss/components/form/_combo.scss +1 -0
- package/scss/components/form/_file.scss +59 -14
- package/scss/components/form/_form.scss +27 -28
- package/scss/components/form/_image.scss +95 -50
- package/scss/components/form/_list.scss +84 -1
- package/scss/components/form/_number.scss +247 -25
- package/scss/components/form/_range.scss +35 -13
- package/scss/components/form/_rating.scss +9 -3
- package/scss/components/form/_switch.scss +45 -47
- package/scss/components/form/_tag.scss +1 -0
- package/scss/components/form/_text.scss +189 -13
- package/scss/components/form/_textarea.scss +7 -9
- package/scss/components/form/_tree.scss +7 -2
- package/scss/themes/_ang-variables.scss +50 -50
- package/scss/themes/_antd-variables.scss +50 -50
- package/scss/themes/_common.scss +1 -0
- package/scss/themes/_cxd-variables.scss +51 -50
- package/scss/themes/_dark-variables.scss +50 -50
- package/esm/icons/check-circle.svg.js +0 -29
- package/esm/icons/status-fail.svg.js +0 -22
- package/esm/icons/status-info.svg.js +0 -26
- package/esm/icons/status-success.svg.js +0 -22
- package/esm/icons/status-warning.svg.js +0 -26
- package/lib/icons/check-circle.svg.js +0 -53
- package/lib/icons/status-fail.svg.js +0 -46
- package/lib/icons/status-info.svg.js +0 -50
- package/lib/icons/status-success.svg.js +0 -46
- package/lib/icons/status-warning.svg.js +0 -50
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* amis-ui v2.7.0
|
|
3
|
+
* Copyright 2018-2023 fex
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import index from '../../../resize-observer-polyfill/dist/ResizeObserver.es.js';
|
|
7
|
+
|
|
8
|
+
var elementListeners = new Map();
|
|
9
|
+
|
|
10
|
+
function onResize(entities) {
|
|
11
|
+
entities.forEach(function (entity) {
|
|
12
|
+
var _elementListeners$get;
|
|
13
|
+
|
|
14
|
+
var target = entity.target;
|
|
15
|
+
(_elementListeners$get = elementListeners.get(target)) === null || _elementListeners$get === void 0 ? void 0 : _elementListeners$get.forEach(function (listener) {
|
|
16
|
+
return listener(target);
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
} // Note: ResizeObserver polyfill not support option to measure border-box resize
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
var resizeObserver = new index(onResize); // Dev env only
|
|
23
|
+
|
|
24
|
+
process.env.NODE_ENV !== 'production' ? elementListeners : null; // eslint-disable-line
|
|
25
|
+
|
|
26
|
+
process.env.NODE_ENV !== 'production' ? onResize : null; // eslint-disable-line
|
|
27
|
+
// ============================== Observe ==============================
|
|
28
|
+
|
|
29
|
+
function observe(element, callback) {
|
|
30
|
+
if (!elementListeners.has(element)) {
|
|
31
|
+
elementListeners.set(element, new Set());
|
|
32
|
+
resizeObserver.observe(element);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
elementListeners.get(element).add(callback);
|
|
36
|
+
}
|
|
37
|
+
function unobserve(element, callback) {
|
|
38
|
+
if (elementListeners.has(element)) {
|
|
39
|
+
elementListeners.get(element).delete(callback);
|
|
40
|
+
|
|
41
|
+
if (!elementListeners.get(element).size) {
|
|
42
|
+
resizeObserver.unobserve(element);
|
|
43
|
+
elementListeners.delete(element);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { observe, unobserve };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* amis-ui v2.7.0
|
|
3
|
+
* Copyright 2018-2023 fex
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import React__default from 'react';
|
|
7
|
+
import '../../node_modules/react-is/index.js';
|
|
8
|
+
import { r as reactIs } from '../../../../_virtual/index.js';
|
|
9
|
+
|
|
10
|
+
function toArray(children) {
|
|
11
|
+
var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
12
|
+
var ret = [];
|
|
13
|
+
React__default.Children.forEach(children, function (child) {
|
|
14
|
+
if ((child === undefined || child === null) && !option.keepEmpty) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
if (Array.isArray(child)) {
|
|
18
|
+
ret = ret.concat(toArray(child));
|
|
19
|
+
} else if (reactIs.exports.isFragment(child) && child.props) {
|
|
20
|
+
ret = ret.concat(toArray(child.props.children, option));
|
|
21
|
+
} else {
|
|
22
|
+
ret.push(child);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
return ret;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { toArray as default };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* amis-ui v2.7.0
|
|
3
|
+
* Copyright 2018-2023 fex
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import React__default from 'react';
|
|
7
|
+
import ReactDOM from 'react-dom';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Return if a node is a DOM node. Else will return by `findDOMNode`
|
|
11
|
+
*/
|
|
12
|
+
function findDOMNode(node) {
|
|
13
|
+
if (node instanceof HTMLElement) {
|
|
14
|
+
return node;
|
|
15
|
+
}
|
|
16
|
+
if (node instanceof React__default.Component) {
|
|
17
|
+
return ReactDOM.findDOMNode(node);
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { findDOMNode as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* amis-ui v2.7.0
|
|
3
|
+
* Copyright 2018-2023 fex
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import canUseDom from '../Dom/canUseDom.js';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Wrap `React.useLayoutEffect` which will not throw warning message in test env
|
|
11
|
+
*/
|
|
12
|
+
var useLayoutEffect = process.env.NODE_ENV !== 'test' && canUseDom() ? React.useLayoutEffect : React.useEffect;
|
|
13
|
+
|
|
14
|
+
export { useLayoutEffect as default };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* amis-ui v2.7.0
|
|
3
|
+
* Copyright 2018-2023 fex
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import _slicedToArray from '../../../@babel/runtime/helpers/esm/slicedToArray.js';
|
|
7
|
+
import * as React from 'react';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Same as React.useState but `setState` accept `ignoreDestroy` param to not to setState after destroyed.
|
|
11
|
+
* We do not make this auto is to avoid real memory leak.
|
|
12
|
+
* Developer should confirm it's safe to ignore themselves.
|
|
13
|
+
*/
|
|
14
|
+
function useSafeState(defaultValue) {
|
|
15
|
+
var destroyRef = React.useRef(false);
|
|
16
|
+
var _React$useState = React.useState(defaultValue),
|
|
17
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
18
|
+
value = _React$useState2[0],
|
|
19
|
+
setValue = _React$useState2[1];
|
|
20
|
+
React.useEffect(function () {
|
|
21
|
+
destroyRef.current = false;
|
|
22
|
+
return function () {
|
|
23
|
+
destroyRef.current = true;
|
|
24
|
+
};
|
|
25
|
+
}, []);
|
|
26
|
+
function safeSetState(updater, ignoreDestroy) {
|
|
27
|
+
if (ignoreDestroy && destroyRef.current) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
setValue(updater);
|
|
31
|
+
}
|
|
32
|
+
return [value, safeSetState];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { useSafeState as default };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* amis-ui v2.7.0
|
|
3
|
+
* Copyright 2018-2023 fex
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
var raf = function raf(callback) {
|
|
7
|
+
return +setTimeout(callback, 16);
|
|
8
|
+
};
|
|
9
|
+
var caf = function caf(num) {
|
|
10
|
+
return clearTimeout(num);
|
|
11
|
+
};
|
|
12
|
+
if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
|
|
13
|
+
raf = function raf(callback) {
|
|
14
|
+
return window.requestAnimationFrame(callback);
|
|
15
|
+
};
|
|
16
|
+
caf = function caf(handle) {
|
|
17
|
+
return window.cancelAnimationFrame(handle);
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
var rafUUID = 0;
|
|
21
|
+
var rafIds = new Map();
|
|
22
|
+
function cleanup(id) {
|
|
23
|
+
rafIds.delete(id);
|
|
24
|
+
}
|
|
25
|
+
var wrapperRaf = function wrapperRaf(callback) {
|
|
26
|
+
var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
27
|
+
rafUUID += 1;
|
|
28
|
+
var id = rafUUID;
|
|
29
|
+
function callRef(leftTimes) {
|
|
30
|
+
if (leftTimes === 0) {
|
|
31
|
+
// Clean up
|
|
32
|
+
cleanup(id);
|
|
33
|
+
|
|
34
|
+
// Trigger
|
|
35
|
+
callback();
|
|
36
|
+
} else {
|
|
37
|
+
// Next raf
|
|
38
|
+
var realId = raf(function () {
|
|
39
|
+
callRef(leftTimes - 1);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
// Bind real raf id
|
|
43
|
+
rafIds.set(id, realId);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
callRef(times);
|
|
47
|
+
return id;
|
|
48
|
+
};
|
|
49
|
+
wrapperRaf.cancel = function (id) {
|
|
50
|
+
var realId = rafIds.get(id);
|
|
51
|
+
cleanup(realId);
|
|
52
|
+
return caf(realId);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export { wrapperRaf as default };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* amis-ui v2.7.0
|
|
3
|
+
* Copyright 2018-2023 fex
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import _typeof from '../../@babel/runtime/helpers/esm/typeof.js';
|
|
7
|
+
import '../node_modules/react-is/index.js';
|
|
8
|
+
import 'react';
|
|
9
|
+
import { r as reactIs } from '../../../_virtual/index.js';
|
|
10
|
+
|
|
11
|
+
function fillRef(ref, node) {
|
|
12
|
+
if (typeof ref === 'function') {
|
|
13
|
+
ref(node);
|
|
14
|
+
} else if (_typeof(ref) === 'object' && ref && 'current' in ref) {
|
|
15
|
+
ref.current = node;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Merge refs into one ref function to support ref passing.
|
|
21
|
+
*/
|
|
22
|
+
function composeRef() {
|
|
23
|
+
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
24
|
+
refs[_key] = arguments[_key];
|
|
25
|
+
}
|
|
26
|
+
var refList = refs.filter(function (ref) {
|
|
27
|
+
return ref;
|
|
28
|
+
});
|
|
29
|
+
if (refList.length <= 1) {
|
|
30
|
+
return refList[0];
|
|
31
|
+
}
|
|
32
|
+
return function (node) {
|
|
33
|
+
refs.forEach(function (ref) {
|
|
34
|
+
fillRef(ref, node);
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function supportRef(nodeOrComponent) {
|
|
39
|
+
var _type$prototype, _nodeOrComponent$prot;
|
|
40
|
+
var type = reactIs.exports.isMemo(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type;
|
|
41
|
+
|
|
42
|
+
// Function component node
|
|
43
|
+
if (typeof type === 'function' && !((_type$prototype = type.prototype) !== null && _type$prototype !== void 0 && _type$prototype.render)) {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Class component
|
|
48
|
+
if (typeof nodeOrComponent === 'function' && !((_nodeOrComponent$prot = nodeOrComponent.prototype) !== null && _nodeOrComponent$prot !== void 0 && _nodeOrComponent$prot.render)) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
/* eslint-enable */
|
|
54
|
+
|
|
55
|
+
export { composeRef, fillRef, supportRef };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* amis-ui v2.7.0
|
|
3
|
+
* Copyright 2018-2023 fex
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* eslint-disable no-console */
|
|
7
|
+
function warning(valid, message) {
|
|
8
|
+
// Support uglify
|
|
9
|
+
if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {
|
|
10
|
+
console.error("Warning: ".concat(message));
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
/* eslint-enable */
|
|
14
|
+
|
|
15
|
+
export { warning };
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* amis-ui v2.7.0
|
|
3
|
+
* Copyright 2018-2023 fex
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { __exports as reactIs_development } from '../../../../../_virtual/react-is.development.js';
|
|
7
|
+
|
|
8
|
+
/** @license React v16.13.1
|
|
9
|
+
* react-is.development.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
var hasRequiredReactIs_development;
|
|
18
|
+
|
|
19
|
+
function requireReactIs_development () {
|
|
20
|
+
if (hasRequiredReactIs_development) return reactIs_development;
|
|
21
|
+
hasRequiredReactIs_development = 1;
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
if (process.env.NODE_ENV !== "production") {
|
|
26
|
+
(function() {
|
|
27
|
+
|
|
28
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
29
|
+
// nor polyfill, then a plain number is used for performance.
|
|
30
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
31
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
32
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
33
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
34
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
35
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
36
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
37
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
38
|
+
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
39
|
+
|
|
40
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
41
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
42
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
43
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
44
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
45
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
46
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
47
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
48
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
49
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
50
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
51
|
+
|
|
52
|
+
function isValidElementType(type) {
|
|
53
|
+
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
54
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function typeOf(object) {
|
|
58
|
+
if (typeof object === 'object' && object !== null) {
|
|
59
|
+
var $$typeof = object.$$typeof;
|
|
60
|
+
|
|
61
|
+
switch ($$typeof) {
|
|
62
|
+
case REACT_ELEMENT_TYPE:
|
|
63
|
+
var type = object.type;
|
|
64
|
+
|
|
65
|
+
switch (type) {
|
|
66
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
67
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
68
|
+
case REACT_FRAGMENT_TYPE:
|
|
69
|
+
case REACT_PROFILER_TYPE:
|
|
70
|
+
case REACT_STRICT_MODE_TYPE:
|
|
71
|
+
case REACT_SUSPENSE_TYPE:
|
|
72
|
+
return type;
|
|
73
|
+
|
|
74
|
+
default:
|
|
75
|
+
var $$typeofType = type && type.$$typeof;
|
|
76
|
+
|
|
77
|
+
switch ($$typeofType) {
|
|
78
|
+
case REACT_CONTEXT_TYPE:
|
|
79
|
+
case REACT_FORWARD_REF_TYPE:
|
|
80
|
+
case REACT_LAZY_TYPE:
|
|
81
|
+
case REACT_MEMO_TYPE:
|
|
82
|
+
case REACT_PROVIDER_TYPE:
|
|
83
|
+
return $$typeofType;
|
|
84
|
+
|
|
85
|
+
default:
|
|
86
|
+
return $$typeof;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
case REACT_PORTAL_TYPE:
|
|
92
|
+
return $$typeof;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return undefined;
|
|
97
|
+
} // AsyncMode is deprecated along with isAsyncMode
|
|
98
|
+
|
|
99
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
100
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
101
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
102
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
103
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
104
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
105
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
106
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
107
|
+
var Memo = REACT_MEMO_TYPE;
|
|
108
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
109
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
110
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
111
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
112
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
113
|
+
|
|
114
|
+
function isAsyncMode(object) {
|
|
115
|
+
{
|
|
116
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
117
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
118
|
+
|
|
119
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
124
|
+
}
|
|
125
|
+
function isConcurrentMode(object) {
|
|
126
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
127
|
+
}
|
|
128
|
+
function isContextConsumer(object) {
|
|
129
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
130
|
+
}
|
|
131
|
+
function isContextProvider(object) {
|
|
132
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
133
|
+
}
|
|
134
|
+
function isElement(object) {
|
|
135
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
136
|
+
}
|
|
137
|
+
function isForwardRef(object) {
|
|
138
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
139
|
+
}
|
|
140
|
+
function isFragment(object) {
|
|
141
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
142
|
+
}
|
|
143
|
+
function isLazy(object) {
|
|
144
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
145
|
+
}
|
|
146
|
+
function isMemo(object) {
|
|
147
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
148
|
+
}
|
|
149
|
+
function isPortal(object) {
|
|
150
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
151
|
+
}
|
|
152
|
+
function isProfiler(object) {
|
|
153
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
154
|
+
}
|
|
155
|
+
function isStrictMode(object) {
|
|
156
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
157
|
+
}
|
|
158
|
+
function isSuspense(object) {
|
|
159
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
reactIs_development.AsyncMode = AsyncMode;
|
|
163
|
+
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
164
|
+
reactIs_development.ContextConsumer = ContextConsumer;
|
|
165
|
+
reactIs_development.ContextProvider = ContextProvider;
|
|
166
|
+
reactIs_development.Element = Element;
|
|
167
|
+
reactIs_development.ForwardRef = ForwardRef;
|
|
168
|
+
reactIs_development.Fragment = Fragment;
|
|
169
|
+
reactIs_development.Lazy = Lazy;
|
|
170
|
+
reactIs_development.Memo = Memo;
|
|
171
|
+
reactIs_development.Portal = Portal;
|
|
172
|
+
reactIs_development.Profiler = Profiler;
|
|
173
|
+
reactIs_development.StrictMode = StrictMode;
|
|
174
|
+
reactIs_development.Suspense = Suspense;
|
|
175
|
+
reactIs_development.isAsyncMode = isAsyncMode;
|
|
176
|
+
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
177
|
+
reactIs_development.isContextConsumer = isContextConsumer;
|
|
178
|
+
reactIs_development.isContextProvider = isContextProvider;
|
|
179
|
+
reactIs_development.isElement = isElement;
|
|
180
|
+
reactIs_development.isForwardRef = isForwardRef;
|
|
181
|
+
reactIs_development.isFragment = isFragment;
|
|
182
|
+
reactIs_development.isLazy = isLazy;
|
|
183
|
+
reactIs_development.isMemo = isMemo;
|
|
184
|
+
reactIs_development.isPortal = isPortal;
|
|
185
|
+
reactIs_development.isProfiler = isProfiler;
|
|
186
|
+
reactIs_development.isStrictMode = isStrictMode;
|
|
187
|
+
reactIs_development.isSuspense = isSuspense;
|
|
188
|
+
reactIs_development.isValidElementType = isValidElementType;
|
|
189
|
+
reactIs_development.typeOf = typeOf;
|
|
190
|
+
})();
|
|
191
|
+
}
|
|
192
|
+
return reactIs_development;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export { requireReactIs_development as __require };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* amis-ui v2.7.0
|
|
3
|
+
* Copyright 2018-2023 fex
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { __exports as reactIs_production_min } from '../../../../../_virtual/react-is.production.min.js';
|
|
7
|
+
|
|
8
|
+
/** @license React v16.13.1
|
|
9
|
+
* react-is.production.min.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
var hasRequiredReactIs_production_min;
|
|
18
|
+
|
|
19
|
+
function requireReactIs_production_min () {
|
|
20
|
+
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
21
|
+
hasRequiredReactIs_production_min = 1;
|
|
22
|
+
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
23
|
+
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
24
|
+
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
|
|
25
|
+
reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
|
|
26
|
+
reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
|
|
27
|
+
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
|
|
28
|
+
return reactIs_production_min;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { requireReactIs_production_min as __require };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* amis-ui v2.7.0
|
|
3
|
+
* Copyright 2018-2023 fex
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { r as reactIs } from '../../../../_virtual/index.js';
|
|
7
|
+
import { __require as requireReactIs_production_min } from './cjs/react-is.production.min.js';
|
|
8
|
+
import { __require as requireReactIs_development } from './cjs/react-is.development.js';
|
|
9
|
+
|
|
10
|
+
(function (module) {
|
|
11
|
+
|
|
12
|
+
if (process.env.NODE_ENV === 'production') {
|
|
13
|
+
module.exports = requireReactIs_production_min();
|
|
14
|
+
} else {
|
|
15
|
+
module.exports = requireReactIs_development();
|
|
16
|
+
}
|
|
17
|
+
} (reactIs));
|