@unicom-cloud/ui 0.8.169 → 0.8.171
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/.virtual/_rolldown/runtime.js +1 -1
- package/affix/Affix.js +74 -73
- package/affix/constants.js +1 -1
- package/affix/context.js +2 -2
- package/affix/index.js +1 -1
- package/affix/style/index.js +1 -1
- package/alert/Alert.js +2 -2
- package/alert/constants.js +1 -1
- package/alert/context.js +2 -2
- package/alert/index.js +1 -1
- package/alert/style/index.js +1 -1
- package/anchor/Anchor.js +89 -89
- package/anchor/Link.js +31 -30
- package/anchor/constants.js +1 -1
- package/anchor/context.js +2 -2
- package/anchor/index.js +1 -1
- package/anchor/style/index.js +1 -1
- package/anchor/utils.js +1 -1
- package/animation/Animation.js +2 -2
- package/animation/constants.js +1 -1
- package/animation/context.js +2 -2
- package/animation/index.d.ts +1 -1
- package/animation/index.js +1 -1
- package/animation/style/index.js +1 -1
- package/app/App.d.ts +0 -3
- package/app/App.js +2 -2
- package/app/constants.js +1 -1
- package/app/context.js +2 -2
- package/app/index.js +1 -1
- package/app/style/index.js +1 -1
- package/app/useApp.js +1 -1
- package/auto-complete/AutoComplete.js +4 -4
- package/auto-complete/constants.js +1 -1
- package/auto-complete/context.js +2 -2
- package/auto-complete/index.d.ts +16 -4
- package/auto-complete/index.js +1 -1
- package/auto-complete/style/index.js +1 -1
- package/avatar/Avatar.js +2 -2
- package/avatar/Group.js +2 -2
- package/avatar/constants.js +1 -1
- package/avatar/context.js +2 -2
- package/avatar/index.js +1 -1
- package/avatar/style/index.js +1 -1
- package/back-top/BackTop.js +50 -50
- package/back-top/constants.js +1 -1
- package/back-top/context.js +2 -2
- package/back-top/index.js +1 -1
- package/back-top/style/index.js +1 -1
- package/badge/Badge.js +2 -2
- package/badge/Count.js +1 -1
- package/badge/constants.js +1 -1
- package/badge/context.js +2 -2
- package/badge/index.js +1 -1
- package/badge/style/index.js +1 -1
- package/badge/utils.js +1 -1
- package/border-beam/BorderBeam.js +2 -2
- package/border-beam/constants.js +1 -1
- package/border-beam/context.js +2 -2
- package/border-beam/index.d.ts +1 -1
- package/border-beam/index.js +1 -1
- package/border-beam/style/index.js +1 -1
- package/breadcrumb/Breadcrumb.js +2 -2
- package/breadcrumb/Item.d.ts +0 -3
- package/breadcrumb/Item.js +2 -2
- package/breadcrumb/constants.js +1 -1
- package/breadcrumb/context.js +2 -2
- package/breadcrumb/index.js +1 -1
- package/breadcrumb/style/index.js +1 -1
- package/button/Button.js +2 -2
- package/button/Group.js +2 -2
- package/button/Toggle.js +2 -2
- package/button/constants.js +1 -1
- package/button/context.js +2 -2
- package/button/index.d.ts +0 -1
- package/button/index.js +2 -3
- package/button/style/index.js +1 -1
- package/calendar/Calendar.js +2 -2
- package/calendar/Month.js +1 -1
- package/calendar/WeekList.js +1 -1
- package/calendar/Year.js +1 -1
- package/calendar/constants.js +1 -1
- package/calendar/context.js +2 -2
- package/calendar/header/Panel.js +1 -1
- package/calendar/header/index.js +1 -1
- package/calendar/hooks/useCellClassName.js +1 -1
- package/calendar/index.js +1 -1
- package/calendar/style/index.js +1 -1
- package/card/Card.js +2 -2
- package/card/Grid.js +2 -2
- package/card/Meta.js +2 -2
- package/card/constants.js +1 -1
- package/card/context.js +2 -2
- package/card/index.js +1 -1
- package/card/style/index.js +1 -1
- package/carousel/Arrow.js +1 -1
- package/carousel/Carousel.js +2 -2
- package/carousel/Indicator.js +1 -1
- package/carousel/constants.js +1 -1
- package/carousel/context.js +2 -2
- package/carousel/index.js +1 -1
- package/carousel/style/index.js +1 -1
- package/cascader/Cascader.js +3 -3
- package/cascader/base/node.js +8 -8
- package/cascader/base/store.js +1 -1
- package/cascader/constants.js +1 -1
- package/cascader/context.js +2 -2
- package/cascader/hooks/useRefCurrent.js +1 -1
- package/cascader/index.js +1 -1
- package/cascader/panel/List.js +112 -112
- package/cascader/panel/Option.js +9 -9
- package/cascader/panel/Search.js +70 -70
- package/cascader/style/index.js +1 -1
- package/cascader/utils.js +1 -1
- package/checkbox/Checkbox.js +2 -2
- package/checkbox/Group.d.ts +0 -3
- package/checkbox/Group.js +3 -3
- package/checkbox/GroupBlock.d.ts +0 -3
- package/checkbox/GroupBlock.js +2 -2
- package/checkbox/constants.js +1 -1
- package/checkbox/context.d.ts +2 -2
- package/checkbox/context.js +3 -3
- package/checkbox/index.js +1 -1
- package/checkbox/style/index.js +1 -1
- package/checkbox/useCheckbox.js +1 -1
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.d.ts +4 -1
- package/collapse/Item.js +3 -3
- package/collapse/constants.js +1 -1
- package/collapse/context.js +2 -2
- package/collapse/index.d.ts +4 -1
- package/collapse/index.js +1 -1
- package/collapse/style/index.js +1 -1
- package/collapse/utils.js +1 -1
- package/color-picker/ColorPicker.js +2 -2
- package/color-picker/ControlBar.js +1 -1
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +1 -1
- package/color-picker/InputRgb.js +1 -1
- package/color-picker/Mode.js +1 -1
- package/color-picker/Palette.js +1 -1
- package/color-picker/Panel.js +3 -3
- package/color-picker/colors.js +1 -1
- package/color-picker/constants.js +1 -1
- package/color-picker/context.js +2 -2
- package/color-picker/hooks/useColorPicker.js +1 -1
- package/color-picker/hooks/useControlBlock.js +1 -1
- package/color-picker/index.js +1 -1
- package/color-picker/interface.js +1 -1
- package/color-picker/style/index.js +1 -1
- package/color-picker/utils.js +1 -1
- package/comment/Comment.js +2 -2
- package/comment/constants.js +1 -1
- package/comment/context.js +2 -2
- package/comment/index.js +1 -1
- package/comment/style/index.js +1 -1
- package/config-provider/ConfigProvider.d.ts +0 -3
- package/config-provider/ConfigProvider.js +3 -3
- package/config-provider/constants.js +1 -1
- package/config-provider/context.d.ts +3 -2
- package/config-provider/context.js +2 -2
- package/config-provider/index.js +1 -1
- package/config-provider/initUI.js +1 -1
- package/config-provider/interface.d.ts +3 -2
- package/config-provider/style/index.js +1 -1
- package/config-provider/useConfigProvider.js +2 -2
- package/config-provider/utils.js +3 -3
- package/constants/index.js +1 -1
- package/copy/Copy.d.ts +0 -3
- package/copy/Copy.js +4 -4
- package/copy/constants.js +1 -1
- package/copy/context.js +2 -2
- package/copy/index.js +1 -1
- package/copy/style/index.js +1 -1
- package/countdown/Countdown.js +2 -2
- package/countdown/constants.js +1 -1
- package/countdown/context.js +2 -2
- package/countdown/index.js +1 -1
- package/countdown/style/index.js +1 -1
- package/countdown/utils.js +1 -1
- package/date-picker/DatePicker.js +7 -7
- package/date-picker/Picker.js +1 -1
- package/date-picker/Range.js +2 -2
- package/date-picker/constants.js +1 -1
- package/date-picker/context.js +2 -2
- package/date-picker/hooks/useCellClassName.js +1 -1
- package/date-picker/index.js +1 -1
- package/date-picker/panel/Body.js +1 -1
- package/date-picker/panel/Footer.js +1 -1
- package/date-picker/panel/Header.js +1 -1
- package/date-picker/panel/Shortcut.js +1 -1
- package/date-picker/panel/WeekList.js +1 -1
- package/date-picker/panel/date/index.js +1 -1
- package/date-picker/panel/month/index.js +1 -1
- package/date-picker/panel/quarter/index.js +1 -1
- package/date-picker/panel/range/index.js +1 -1
- package/date-picker/panel/week/index.js +1 -1
- package/date-picker/panel/year/index.js +1 -1
- package/date-picker/style/index.js +1 -1
- package/date-picker/utils.js +1 -1
- package/descriptions/Descriptions.js +2 -2
- package/descriptions/constants.js +1 -1
- package/descriptions/context.js +2 -2
- package/descriptions/index.js +1 -1
- package/descriptions/style/index.js +1 -1
- package/details/Details.js +2 -2
- package/details/constants.js +1 -1
- package/details/context.js +2 -2
- package/details/index.js +1 -1
- package/details/style/index.js +1 -1
- package/development/Development.js +1 -1
- package/development/constants.js +1 -1
- package/development/context.js +2 -2
- package/development/index.d.ts +1 -1
- package/development/index.js +1 -1
- package/development/style/index.js +1 -1
- package/divider/Divider.js +3 -3
- package/divider/constants.js +1 -1
- package/divider/context.js +2 -2
- package/divider/index.js +1 -1
- package/divider/style/index.js +1 -1
- package/draggable/Draggable.js +1 -1
- package/draggable/Item.js +1 -1
- package/draggable/constants.js +1 -1
- package/draggable/context.js +2 -2
- package/draggable/index.js +1 -1
- package/draggable/style/index.js +1 -1
- package/draw/Draw.js +2 -2
- package/draw/common/binary-heap.js +1 -1
- package/draw/common/bounds.js +1 -1
- package/draw/common/colors.js +1 -1
- package/draw/common/constants.js +1 -1
- package/draw/common/editorInterface.js +1 -1
- package/draw/common/emitter.js +1 -1
- package/draw/common/font-metadata.js +1 -1
- package/draw/common/index.js +1 -1
- package/draw/common/keys.js +1 -1
- package/draw/common/points.js +1 -1
- package/draw/common/promise-pool.js +1 -1
- package/draw/common/queue.js +1 -1
- package/draw/common/random.js +1 -1
- package/draw/common/url.js +1 -1
- package/draw/common/utils.js +44 -44
- package/draw/constants.js +1 -1
- package/draw/context.js +2 -2
- package/draw/core/actions/actionAddToLibrary.js +1 -1
- package/draw/core/actions/actionAlign.js +1 -1
- package/draw/core/actions/actionBoundText.js +1 -1
- package/draw/core/actions/actionCanvas.js +1 -1
- package/draw/core/actions/actionClipboard.js +1 -1
- package/draw/core/actions/actionCropEditor.js +1 -1
- package/draw/core/actions/actionDeleteSelected.js +1 -1
- package/draw/core/actions/actionDistribute.js +1 -1
- package/draw/core/actions/actionDuplicateSelection.js +1 -1
- package/draw/core/actions/actionElementLink.js +1 -1
- package/draw/core/actions/actionElementLock.js +1 -1
- package/draw/core/actions/actionEmbeddable.js +1 -1
- package/draw/core/actions/actionExport.js +1 -1
- package/draw/core/actions/actionFinalize.js +1 -1
- package/draw/core/actions/actionFlip.js +1 -1
- package/draw/core/actions/actionFrame.js +1 -1
- package/draw/core/actions/actionGroup.js +1 -1
- package/draw/core/actions/actionHistory.js +1 -1
- package/draw/core/actions/actionLinearEditor.js +1 -1
- package/draw/core/actions/actionMenu.js +1 -1
- package/draw/core/actions/actionProperties.js +1 -1
- package/draw/core/actions/actionSelectAll.js +1 -1
- package/draw/core/actions/actionStyles.js +1 -1
- package/draw/core/actions/actionTextAutoResize.js +1 -1
- package/draw/core/actions/actionToggleGridMode.js +1 -1
- package/draw/core/actions/actionToggleObjectsSnapMode.js +1 -1
- package/draw/core/actions/actionToggleSearchMenu.js +1 -1
- package/draw/core/actions/actionToggleStats.js +1 -1
- package/draw/core/actions/actionToggleViewMode.js +1 -1
- package/draw/core/actions/actionToggleZenMode.js +1 -1
- package/draw/core/actions/actionZindex.js +1 -1
- package/draw/core/actions/index.js +1 -1
- package/draw/core/actions/manager.js +1 -1
- package/draw/core/actions/register.js +1 -1
- package/draw/core/actions/shortcuts.js +1 -1
- package/draw/core/analytics.js +1 -1
- package/draw/core/animated-trail.js +1 -1
- package/draw/core/animation-frame-handler.js +1 -1
- package/draw/core/appState.js +1 -1
- package/draw/core/charts.js +1 -1
- package/draw/core/clients.js +1 -1
- package/draw/core/clipboard.js +1 -1
- package/draw/core/components/Actions.js +1 -1
- package/draw/core/components/ActiveConfirmDialog.js +1 -1
- package/draw/core/components/App.js +2 -2
- package/draw/core/components/BraveMeasureTextError.js +1 -1
- package/draw/core/components/ContextMenu.js +1 -1
- package/draw/core/components/ConvertElementTypePopup.js +1 -1
- package/draw/core/components/DarkModeToggle.js +1 -1
- package/draw/core/components/ElementCanvasButtons.js +1 -1
- package/draw/core/components/ElementLinkDialog.js +1 -1
- package/draw/core/components/Ellipsify.js +1 -1
- package/draw/core/components/ErrorDialog.js +1 -1
- package/draw/core/components/ExportDialog.js +1 -1
- package/draw/core/components/EyeDropper.js +1 -1
- package/draw/core/components/FixedSideContainer.js +1 -1
- package/draw/core/components/Footer.js +1 -1
- package/draw/core/components/HandButton.js +1 -1
- package/draw/core/components/HelpDialog.js +1 -1
- package/draw/core/components/HintViewer.js +1 -1
- package/draw/core/components/ImageExportDialog.js +1 -1
- package/draw/core/components/InitializeApp.js +1 -1
- package/draw/core/components/InlineIcon.js +1 -1
- package/draw/core/components/Island.js +1 -1
- package/draw/core/components/LaserPointerButton.js +1 -1
- package/draw/core/components/LayerUI.js +3 -3
- package/draw/core/components/LibraryMenu.js +1 -1
- package/draw/core/components/LibraryMenuItems.js +1 -1
- package/draw/core/components/LibraryMenuSection.js +1 -1
- package/draw/core/components/LibraryUnit.js +1 -1
- package/draw/core/components/LoadingMessage.js +1 -1
- package/draw/core/components/LockButton.js +1 -1
- package/draw/core/components/MagicButton.js +1 -1
- package/draw/core/components/PasteChartDialog.js +1 -1
- package/draw/core/components/PenModeButton.js +1 -1
- package/draw/core/components/Popover.js +1 -1
- package/draw/core/components/ProjectName.js +1 -1
- package/draw/core/components/Range.js +1 -1
- package/draw/core/components/SVGLayer.js +1 -1
- package/draw/core/components/SearchMenu.js +1 -1
- package/draw/core/components/Stack.js +1 -1
- package/draw/core/components/Toast.js +1 -1
- package/draw/core/components/Trans.js +1 -1
- package/draw/core/components/UnlockPopup.js +1 -1
- package/draw/core/components/canvases/InteractiveCanvas.js +1 -1
- package/draw/core/components/canvases/NewElementCanvas.js +1 -1
- package/draw/core/components/canvases/StaticCanvas.js +1 -1
- package/draw/core/components/canvases/index.js +1 -1
- package/draw/core/components/context.d.ts +1 -1
- package/draw/core/components/context.js +2 -2
- package/draw/core/components/{DiagramToCodePlugin → diagram-to-code-plugin}/index.js +2 -2
- package/draw/core/components/hooks.js +1 -1
- package/draw/core/components/icons.js +1 -1
- package/draw/core/components/main-menu/DefaultItems.js +2 -2
- package/draw/core/components/main-menu/MenuItem.js +1 -1
- package/draw/core/components/main-menu/common.js +1 -1
- package/draw/core/components/{OverwriteConfirm/OverwriteConfirmState.js → overwrite-confirm/State.js} +2 -2
- package/draw/core/components/{OverwriteConfirm → overwrite-confirm}/index.js +3 -3
- package/draw/core/components/shapes.js +1 -1
- package/draw/core/components/{Stats → stats}/Angle.js +2 -2
- package/draw/core/components/{Stats → stats}/CanvasGrid.js +2 -2
- package/draw/core/components/{Stats → stats}/Collapsible.js +2 -2
- package/draw/core/components/{Stats → stats}/Dimension.js +2 -2
- package/draw/core/components/{Stats → stats}/DragInput.js +2 -2
- package/draw/core/components/{Stats → stats}/FontSize.js +2 -2
- package/draw/core/components/{Stats → stats}/MultiAngle.js +2 -2
- package/draw/core/components/{Stats → stats}/MultiDimension.js +2 -2
- package/draw/core/components/{Stats → stats}/MultiFontSize.js +2 -2
- package/draw/core/components/{Stats → stats}/MultiPosition.js +2 -2
- package/draw/core/components/{Stats → stats}/Position.js +2 -2
- package/draw/core/components/{Stats → stats}/index.js +2 -2
- package/draw/core/components/{Stats → stats}/utils.js +2 -2
- package/draw/core/context/tunnels.d.ts +1 -1
- package/draw/core/context/tunnels.js +1 -1
- package/draw/core/context/ui-appState.js +1 -1
- package/draw/core/cursor.js +1 -1
- package/draw/core/data/blob.js +1 -1
- package/draw/core/data/encode.js +1 -1
- package/draw/core/data/encryption.js +1 -1
- package/draw/core/data/filesystem.js +1 -1
- package/draw/core/data/image.js +1 -1
- package/draw/core/data/index.js +1 -1
- package/draw/core/data/json.js +1 -1
- package/draw/core/data/library.js +1 -1
- package/draw/core/data/reconcile.js +1 -1
- package/draw/core/data/resave.js +1 -1
- package/draw/core/data/restore.js +1 -1
- package/draw/core/data/utils.js +1 -1
- package/draw/core/deburr.js +1 -1
- package/draw/core/editor-jotai.js +1 -1
- package/draw/core/eraser/index.js +1 -1
- package/draw/core/errors.js +1 -1
- package/draw/core/fonts/DrawFontFace.js +1 -1
- package/draw/core/fonts/Fonts.js +1 -1
- package/draw/core/fonts/index.js +1 -1
- package/draw/core/gesture.js +1 -1
- package/draw/core/history.js +1 -1
- package/draw/core/hooks/useCopiedIndicator.js +1 -1
- package/draw/core/hooks/useCreatePortalContainer.js +1 -1
- package/draw/core/hooks/useEmitter.js +1 -1
- package/draw/core/hooks/useLibraryItemSvg.js +1 -1
- package/draw/core/hooks/useOutsideClick.js +1 -1
- package/draw/core/hooks/useScrollPosition.js +1 -1
- package/draw/core/hooks/useStable.js +1 -1
- package/draw/core/hooks/useTextEditorFocus.js +1 -1
- package/draw/core/hooks/useTransition.js +1 -1
- package/draw/core/i18n.js +1 -1
- package/draw/core/laser-trails.js +1 -1
- package/draw/core/lasso/index.js +1 -1
- package/draw/core/lasso/utils.js +1 -1
- package/draw/core/polyfill.js +1 -1
- package/draw/core/reactUtils.js +1 -1
- package/draw/core/renderer/animation.js +1 -1
- package/draw/core/renderer/helpers.js +1 -1
- package/draw/core/renderer/interactiveScene.js +1 -1
- package/draw/core/renderer/renderNewElementScene.js +1 -1
- package/draw/core/renderer/renderSnaps.js +1 -1
- package/draw/core/renderer/roundRect.js +1 -1
- package/draw/core/renderer/staticScene.js +1 -1
- package/draw/core/renderer/staticSvgScene.js +1 -1
- package/draw/core/scene/Renderer.js +1 -1
- package/draw/core/scene/export.js +1 -1
- package/draw/core/scene/index.js +1 -1
- package/draw/core/scene/normalize.js +1 -1
- package/draw/core/scene/scroll.js +1 -1
- package/draw/core/scene/scrollbars.js +1 -1
- package/draw/core/scene/zoom.js +1 -1
- package/draw/core/shortcut.js +1 -1
- package/draw/core/snapping.js +1 -1
- package/draw/core/wysiwyg/textWysiwyg.js +1 -1
- package/draw/element/Scene.js +1 -1
- package/draw/element/align.js +1 -1
- package/draw/element/arrows/focus.js +1 -1
- package/draw/element/arrows/helpers.js +1 -1
- package/draw/element/binding.js +1 -1
- package/draw/element/bounds.js +1 -1
- package/draw/element/collision.js +1 -1
- package/draw/element/comparisons.js +1 -1
- package/draw/element/containerCache.js +1 -1
- package/draw/element/cropElement.js +1 -1
- package/draw/element/delta.js +1 -1
- package/draw/element/distance.js +1 -1
- package/draw/element/distribute.js +1 -1
- package/draw/element/dragElements.js +1 -1
- package/draw/element/duplicate.js +1 -1
- package/draw/element/elbowArrow.js +1 -1
- package/draw/element/elementLink.js +1 -1
- package/draw/element/embeddable.js +1 -1
- package/draw/element/flowchart.js +1 -1
- package/draw/element/fractionalIndex.js +1 -1
- package/draw/element/frame.js +1 -1
- package/draw/element/groups.js +1 -1
- package/draw/element/heading.js +1 -1
- package/draw/element/image.js +1 -1
- package/draw/element/index.js +1 -1
- package/draw/element/is.js +1 -1
- package/draw/element/linearElementEditor.js +1 -1
- package/draw/element/mutateElement.js +1 -1
- package/draw/element/newElement.js +1 -1
- package/draw/element/positionElementsOnGrid.js +1 -1
- package/draw/element/renderElement.js +1 -1
- package/draw/element/resizeElements.js +1 -1
- package/draw/element/resizeTest.js +1 -1
- package/draw/element/selection.js +1 -1
- package/draw/element/shape.js +1 -1
- package/draw/element/showSelectedShapeActions.js +1 -1
- package/draw/element/sizeHelpers.js +1 -1
- package/draw/element/sortElements.js +1 -1
- package/draw/element/store.js +1 -1
- package/draw/element/textElement.js +1 -1
- package/draw/element/textMeasurements.js +1 -1
- package/draw/element/textWrapping.js +1 -1
- package/draw/element/transform.js +1 -1
- package/draw/element/transformHandles.js +1 -1
- package/draw/element/typeChecks.js +1 -1
- package/draw/element/utils.js +1 -1
- package/draw/element/zindex.js +1 -1
- package/draw/index.d.ts +2 -3
- package/draw/index.js +4 -5
- package/draw/libs/browser-fs-access/directory-open.js +1 -1
- package/draw/libs/browser-fs-access/file-open.js +1 -1
- package/draw/libs/browser-fs-access/file-save.js +1 -1
- package/draw/libs/browser-fs-access/fs-access/directory-open.js +1 -1
- package/draw/libs/browser-fs-access/fs-access/file-open.js +1 -1
- package/draw/libs/browser-fs-access/fs-access/file-save.js +1 -1
- package/draw/libs/browser-fs-access/index.js +1 -1
- package/draw/libs/browser-fs-access/legacy/directory-open.js +1 -1
- package/draw/libs/browser-fs-access/legacy/file-open.js +1 -1
- package/draw/libs/browser-fs-access/legacy/file-save.js +1 -1
- package/draw/libs/browser-fs-access/supported.js +1 -1
- package/draw/libs/fractional-indexing/index.js +1 -1
- package/draw/libs/fuzzy/index.js +1 -1
- package/draw/libs/glur/index.js +1 -1
- package/draw/libs/glur/mono16.js +1 -1
- package/draw/libs/hachure-fill/index.js +1 -1
- package/draw/libs/image-blob-reduce/index.js +1 -1
- package/draw/libs/image-blob-reduce/lib/image_traverse.js +1 -1
- package/draw/libs/image-blob-reduce/lib/jpeg_plugins.js +1 -1
- package/draw/libs/image-blob-reduce/lib/utils.js +1 -1
- package/draw/libs/jotai/index.js +1 -1
- package/draw/libs/jotai/react/Provider.js +1 -1
- package/draw/libs/jotai/react/useAtom.js +1 -1
- package/draw/libs/jotai/react/useAtomValue.js +1 -1
- package/draw/libs/jotai/react/useSetAtom.js +1 -1
- package/draw/libs/jotai/react/utils/useAtomCallback.js +1 -1
- package/draw/libs/jotai/react/utils/useHydrateAtoms.js +1 -1
- package/draw/libs/jotai/react/utils/useReducerAtom.js +1 -1
- package/draw/libs/jotai/react/utils/useResetAtom.js +1 -1
- package/draw/libs/jotai/react/utils.js +1 -1
- package/draw/libs/jotai/react.js +1 -1
- package/draw/libs/jotai/utils.js +1 -1
- package/draw/libs/jotai/vanilla/atom.js +1 -1
- package/draw/libs/jotai/vanilla/internals.js +1 -1
- package/draw/libs/jotai/vanilla/store.js +1 -1
- package/draw/libs/jotai/vanilla/utils/atomFamily.js +1 -1
- package/draw/libs/jotai/vanilla/utils/atomWithStorage.js +1 -1
- package/draw/libs/jotai/vanilla/utils.js +1 -1
- package/draw/libs/jotai-scope/createIsolation.d.ts +1 -1
- package/draw/libs/jotai-scope/createIsolation.js +2 -2
- package/draw/libs/jotai-scope/index.d.ts +2 -2
- package/draw/libs/jotai-scope/index.js +3 -3
- package/draw/libs/jotai-scope/{ScopeProvider → scope-provider}/index.js +2 -2
- package/draw/libs/jotai-scope/{ScopeProvider → scope-provider}/scope.js +2 -2
- package/draw/libs/jotai-scope/utils.js +1 -1
- package/draw/libs/laser-pointer/index.js +1 -1
- package/draw/libs/laser-pointer/math.js +1 -1
- package/draw/libs/laser-pointer/simplify.js +1 -1
- package/draw/libs/laser-pointer/state.js +1 -1
- package/draw/libs/markdown-to-text/index.js +1 -1
- package/draw/libs/math/angle.js +1 -1
- package/draw/libs/math/constants.js +1 -1
- package/draw/libs/math/curve.js +1 -1
- package/draw/libs/math/ellipse.js +1 -1
- package/draw/libs/math/index.js +1 -1
- package/draw/libs/math/line.js +1 -1
- package/draw/libs/math/point.js +1 -1
- package/draw/libs/math/polygon.js +1 -1
- package/draw/libs/math/range.js +1 -1
- package/draw/libs/math/rectangle.js +1 -1
- package/draw/libs/math/segment.js +1 -1
- package/draw/libs/math/triangle.js +1 -1
- package/draw/libs/math/utils.js +1 -1
- package/draw/libs/math/vector.js +1 -1
- package/draw/libs/multimath/index.js +1 -1
- package/draw/libs/multimath/lib/wa_detect.js +1 -1
- package/draw/libs/nanoid/index.js +1 -1
- package/draw/libs/nanoid/url-alphabet/index.js +1 -1
- package/draw/libs/pako/index.js +1 -1
- package/draw/libs/path-data-parser/absolutize.js +1 -1
- package/draw/libs/path-data-parser/index.js +1 -1
- package/draw/libs/path-data-parser/normalize.js +1 -1
- package/draw/libs/path-data-parser/parser.js +1 -1
- package/draw/libs/perfect-freehand/getStroke.js +1 -1
- package/draw/libs/perfect-freehand/getStrokeOutlinePoints.js +1 -1
- package/draw/libs/perfect-freehand/getStrokePoints.js +1 -1
- package/draw/libs/perfect-freehand/getStrokeRadius.js +1 -1
- package/draw/libs/perfect-freehand/index.js +1 -1
- package/draw/libs/perfect-freehand/vec.js +1 -1
- package/draw/libs/pica/index.js +1 -1
- package/draw/libs/pica/lib/mathlib.js +1 -1
- package/draw/libs/pica/lib/mm_resize/convolve.js +1 -1
- package/draw/libs/pica/lib/mm_resize/convolve_wasm_base64.js +1 -1
- package/draw/libs/pica/lib/mm_resize/index.js +1 -1
- package/draw/libs/pica/lib/mm_resize/resize.js +1 -1
- package/draw/libs/pica/lib/mm_resize/resize_filter_gen.js +1 -1
- package/draw/libs/pica/lib/mm_resize/resize_wasm.js +1 -1
- package/draw/libs/pica/lib/mm_unsharp_mask/index.js +1 -1
- package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask.js +1 -1
- package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask_wasm.js +1 -1
- package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask_wasm_base64.js +1 -1
- package/draw/libs/pica/lib/pool.js +1 -1
- package/draw/libs/pica/lib/tiler.js +1 -1
- package/draw/libs/pica/lib/utils.js +1 -1
- package/draw/libs/pica/lib/worker.js +1 -1
- package/draw/libs/png-chunk-text/decode.js +1 -1
- package/draw/libs/png-chunk-text/encode.js +1 -1
- package/draw/libs/png-chunk-text/index.js +1 -1
- package/draw/libs/png-chunks-encode/index.js +1 -1
- package/draw/libs/png-chunks-extract/index.js +1 -1
- package/draw/libs/points-on-curve/curve-to-bezier.js +1 -1
- package/draw/libs/points-on-curve/index.js +1 -1
- package/draw/libs/points-on-path/index.js +1 -1
- package/draw/libs/promise-pool/index.js +1 -1
- package/draw/libs/roughjs/canvas.js +1 -1
- package/draw/libs/roughjs/core.js +1 -1
- package/draw/libs/roughjs/fillers/dashed-filler.js +1 -1
- package/draw/libs/roughjs/fillers/dot-filler.js +1 -1
- package/draw/libs/roughjs/fillers/filler.js +1 -1
- package/draw/libs/roughjs/fillers/hachure-filler.js +1 -1
- package/draw/libs/roughjs/fillers/hatch-filler.js +1 -1
- package/draw/libs/roughjs/fillers/scan-line-hachure.js +1 -1
- package/draw/libs/roughjs/fillers/zigzag-filler.js +1 -1
- package/draw/libs/roughjs/fillers/zigzag-line-filler.js +1 -1
- package/draw/libs/roughjs/generator.js +1 -1
- package/draw/libs/roughjs/geometry.js +1 -1
- package/draw/libs/roughjs/index.js +1 -1
- package/draw/libs/roughjs/math.js +1 -1
- package/draw/libs/roughjs/renderer.js +1 -1
- package/draw/libs/roughjs/rough.js +1 -1
- package/draw/libs/roughjs/svg.js +1 -1
- package/draw/libs/sliced/index.js +1 -1
- package/draw/libs/webworkify/index.js +1 -1
- package/draw/style/index.js +1 -1
- package/draw/utils/bbox.js +1 -1
- package/draw/utils/export.js +1 -1
- package/draw/utils/index.js +1 -1
- package/draw/utils/shape.js +1 -1
- package/draw/utils/withinBounds.js +1 -1
- package/drawer/Drawer.js +131 -131
- package/drawer/constants.js +1 -1
- package/drawer/context.js +4 -4
- package/drawer/index.js +1 -1
- package/drawer/style/index.js +1 -1
- package/drawer/use-drawer/Hook.js +1 -1
- package/drawer/use-drawer/index.js +1 -1
- package/dropdown/Button.js +2 -2
- package/dropdown/Dropdown.js +63 -63
- package/dropdown/constants.js +1 -1
- package/dropdown/context.js +2 -2
- package/dropdown/index.js +1 -1
- package/dropdown/style/index.js +1 -1
- package/empty/Empty.js +2 -2
- package/empty/constants.js +1 -1
- package/empty/context.js +2 -2
- package/empty/index.d.ts +1 -1
- package/empty/index.js +1 -1
- package/empty/style/index.js +1 -1
- package/flex/Flex.js +3 -3
- package/flex/constants.js +1 -1
- package/flex/context.js +2 -2
- package/flex/index.d.ts +1 -1
- package/flex/index.js +1 -1
- package/flex/style/index.js +1 -1
- package/form/Control.js +138 -139
- package/form/Form.js +3 -3
- package/form/Item.js +2 -2
- package/form/ItemLabel.js +1 -1
- package/form/ItemTip.js +2 -2
- package/form/LabelSymbol.js +1 -1
- package/form/List.d.ts +0 -3
- package/form/List.js +25 -25
- package/form/Provider.js +1 -1
- package/form/constants.js +1 -1
- package/form/context.js +2 -2
- package/form/hooks/useForm.js +1 -1
- package/form/hooks/useFormContext.js +1 -1
- package/form/hooks/useFormState.js +1 -1
- package/form/hooks/useWatch.js +19 -19
- package/form/index.js +1 -1
- package/form/interface.js +1 -1
- package/form/promisify.js +1 -1
- package/form/store.js +1 -1
- package/form/style/index.js +1 -1
- package/form/utils.js +14 -14
- package/global-provider/GlobalProvider.d.ts +0 -3
- package/global-provider/GlobalProvider.js +2 -2
- package/global-provider/constants.js +1 -1
- package/global-provider/context.js +1 -1
- package/global-provider/index.js +1 -1
- package/global-provider/style/index.js +1 -1
- package/grid/Grid.js +2 -2
- package/grid/Item.js +2 -2
- package/grid/constants.js +1 -1
- package/grid/context.js +2 -2
- package/grid/index.js +1 -1
- package/grid/style/index.js +1 -1
- package/grid/utils.js +1 -1
- package/hooks/index.d.ts +1 -1
- package/hooks/index.js +3 -3
- package/hooks/use-breakpoint/index.js +1 -1
- package/hooks/use-computed-state/index.js +1 -1
- package/hooks/use-controllable-value/index.js +1 -1
- package/hooks/use-create/index.js +1 -1
- package/hooks/use-creation/index.js +1 -1
- package/hooks/use-effect-event/index.js +1 -1
- package/hooks/use-event/index.js +1 -1
- package/hooks/use-event-listener/index.js +1 -1
- package/hooks/use-force-update/index.js +1 -1
- package/hooks/use-fullscreen/index.js +1 -1
- package/hooks/use-id/index.js +1 -1
- package/hooks/use-intersection-observer/index.js +1 -1
- package/hooks/use-intersection-observers/index.js +1 -1
- package/hooks/use-interval/index.js +1 -1
- package/hooks/use-is-first-render/index.js +1 -1
- package/hooks/use-isomorphic-layout-effect/index.js +1 -1
- package/hooks/use-keyboard-event/index.js +1 -1
- package/hooks/use-latest/index.js +1 -1
- package/hooks/use-listen-window-resize/index.js +1 -1
- package/hooks/use-media/index.js +1 -1
- package/hooks/use-memoized-fn/index.js +1 -1
- package/hooks/use-merge-props/index.js +1 -1
- package/hooks/use-move/index.js +1 -1
- package/hooks/use-mutation-observers/index.js +1 -1
- package/hooks/use-online-status/index.js +1 -1
- package/hooks/use-overflow-hidden/index.js +1 -1
- package/hooks/use-override-ref/index.js +1 -1
- package/hooks/use-persist-callback/index.js +1 -1
- package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
- package/hooks/use-previous/index.js +1 -1
- package/hooks/use-refs/index.js +1 -1
- package/hooks/use-resize-observer/index.js +1 -1
- package/hooks/use-resize-observers/index.js +1 -1
- package/hooks/use-responsive-state/index.js +1 -1
- package/hooks/use-set-state/index.js +1 -1
- package/hooks/use-state-callback/index.js +1 -1
- package/hooks/use-state-with-promise/index.js +1 -1
- package/hooks/use-throttle-fn-with-raf/index.d.ts +2 -0
- package/hooks/use-throttle-fn-with-raf/index.js +7 -0
- package/hooks/use-update-effect/index.js +1 -1
- package/hooks/use-update-layout-effect/index.js +1 -1
- package/hooks/use-verification-code/index.js +1 -1
- package/hooks/use-watch/index.js +1 -1
- package/hooks/use-watermark/index.js +3 -3
- package/hooks/use-watermark/utils.js +1 -1
- package/hooks/use-window-size/index.js +1 -1
- package/hooks/useMountLifecycle.d.ts +14 -0
- package/hooks/{useUnmountOnExit.js → useMountLifecycle.js} +2 -2
- package/icon/Icon.js +2 -2
- package/icon/addIconFromCdn.js +21 -19
- package/icon/constants.js +1 -1
- package/icon/context.js +2 -2
- package/icon/index.js +1 -1
- package/icon/style/index.js +1 -1
- package/icon-hover/IconHover.js +2 -2
- package/icon-hover/constants.js +1 -1
- package/icon-hover/context.js +2 -2
- package/icon-hover/index.js +1 -1
- package/icon-hover/style/index.js +1 -1
- package/icons/file/File.js +2 -2
- package/icons/file/context.js +2 -2
- package/icons/file/index.js +1 -1
- package/icons/file/style/index.js +1 -1
- package/icons.js +1 -1
- package/image/Footer.js +1 -1
- package/image/Image.js +2 -2
- package/image/Preview.js +179 -179
- package/image/PreviewArrow.js +1 -1
- package/image/PreviewGroup.js +62 -61
- package/image/PreviewToolbar.js +1 -1
- package/image/TriggerForToolbar.js +1 -1
- package/image/constants.js +1 -1
- package/image/context.js +5 -5
- package/image/hooks/useImageStatus.js +1 -1
- package/image/hooks/useShowFooter.js +1 -1
- package/image/index.js +1 -1
- package/image/style/index.js +1 -1
- package/image/utils/getFixTranslate.js +1 -1
- package/image/utils/getScale.js +1 -1
- package/index.js +777 -788
- package/input/Button.js +2 -2
- package/input/Core.js +2 -2
- package/input/Group.js +2 -2
- package/input/Input.js +5 -5
- package/input/Password.js +2 -2
- package/input/Search.js +2 -2
- package/input/Textarea.js +2 -2
- package/input/autoSizeTextareaHeight.js +1 -1
- package/input/constants.js +1 -1
- package/input/context.js +2 -2
- package/input/index.js +1 -1
- package/input/style/index.js +1 -1
- package/input/useComposition.js +1 -1
- package/input/utils.js +1 -1
- package/input-number/InputNumber.js +2 -2
- package/input-number/constants.js +1 -1
- package/input-number/context.js +2 -2
- package/input-number/decimal.js +1 -1
- package/input-number/hooks/useSelectionRange.js +1 -1
- package/input-number/index.js +1 -1
- package/input-number/style/index.js +1 -1
- package/input-number/utils.js +1 -1
- package/input-tag/InputTag.js +2 -2
- package/input-tag/constants.js +1 -1
- package/input-tag/context.js +2 -2
- package/input-tag/hooks/useComputeAutoWidthDelay.js +1 -1
- package/input-tag/index.js +1 -1
- package/input-tag/style/index.js +1 -1
- package/layout/Content.js +2 -2
- package/layout/Footer.js +2 -2
- package/layout/Header.js +2 -2
- package/layout/Layout.js +30 -29
- package/layout/Sider.d.ts +4 -2
- package/layout/Sider.js +37 -40
- package/layout/constants.js +1 -1
- package/layout/context.js +2 -2
- package/layout/index.d.ts +4 -2
- package/layout/index.js +1 -1
- package/layout/style/index.js +1 -1
- package/link/Link.js +2 -2
- package/link/constants.js +1 -1
- package/link/context.js +2 -2
- package/link/index.js +1 -1
- package/link/style/index.js +1 -1
- package/liquid-fill/LiquidFill.js +2 -2
- package/liquid-fill/constants.js +1 -1
- package/liquid-fill/context.js +2 -2
- package/liquid-fill/index.js +1 -1
- package/liquid-fill/style/index.js +1 -1
- package/list/Item.js +2 -2
- package/list/List.js +3 -3
- package/list/Meta.js +2 -2
- package/list/constants.js +1 -1
- package/list/context.js +2 -2
- package/list/index.js +1 -1
- package/list/style/index.js +1 -1
- package/loading/Loading.js +2 -2
- package/loading/constants.js +1 -1
- package/loading/context.js +2 -2
- package/loading/index.js +1 -1
- package/loading/style/index.js +1 -1
- package/locale/ar-EG.js +1 -1
- package/locale/de-DE.js +1 -1
- package/locale/default.js +1 -1
- package/locale/en-US.js +1 -1
- package/locale/es-ES.js +1 -1
- package/locale/fr-FR.js +1 -1
- package/locale/id-ID.js +1 -1
- package/locale/it-IT.js +1 -1
- package/locale/ja-JP.js +1 -1
- package/locale/ko-KR.js +1 -1
- package/locale/ms-MY.js +1 -1
- package/locale/pt-BR.js +1 -1
- package/locale/pt-PT.js +1 -1
- package/locale/ru-RU.js +1 -1
- package/locale/th-TH.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/locale/vi-VN.js +1 -1
- package/locale/zh-CN.js +1 -1
- package/locale/zh-HK.js +1 -1
- package/locale/zh-TW.js +1 -1
- package/marquee/Marquee.js +1 -1
- package/marquee/constants.js +1 -1
- package/marquee/context.js +2 -2
- package/marquee/index.js +1 -1
- package/marquee/style/index.js +1 -1
- package/mask/Mask.js +2 -2
- package/mask/constants.js +1 -1
- package/mask/context.js +2 -2
- package/mask/index.js +1 -1
- package/mask/style/index.js +1 -1
- package/masonry/Item.js +2 -2
- package/masonry/Masonry.js +2 -2
- package/masonry/constants.js +1 -1
- package/masonry/context.js +2 -2
- package/masonry/hooks/useDelay.js +1 -1
- package/masonry/hooks/useGutter.js +1 -1
- package/masonry/hooks/usePositions.js +1 -1
- package/masonry/hooks/useRefs.js +1 -1
- package/masonry/index.js +1 -1
- package/masonry/style/index.js +1 -1
- package/mentions/Mentions.js +2 -2
- package/mentions/constants.js +1 -1
- package/mentions/context.js +2 -2
- package/mentions/index.js +1 -1
- package/mentions/style/index.js +1 -1
- package/mentions/utils.js +1 -1
- package/menu/Indent.js +1 -1
- package/menu/Item.d.ts +1 -3
- package/menu/Item.js +3 -3
- package/menu/ItemGroup.d.ts +1 -3
- package/menu/ItemGroup.js +3 -3
- package/menu/Menu.js +2 -2
- package/menu/OverflowWrap.js +1 -1
- package/menu/constants.js +1 -1
- package/menu/context.js +2 -2
- package/menu/index.d.ts +3 -10
- package/menu/index.js +2 -3
- package/menu/style/index.js +1 -1
- package/menu/sub-menu/Inline.js +1 -1
- package/menu/sub-menu/Pop.js +1 -1
- package/menu/sub-menu/index.d.ts +1 -3
- package/menu/sub-menu/index.js +3 -3
- package/menu/utils.js +47 -42
- package/message/Message.js +4 -4
- package/message/config.js +3 -3
- package/message/constants.js +1 -1
- package/message/context.js +2 -2
- package/message/hooks/useMessage.js +1 -1
- package/message/index.js +1 -1
- package/message/style/index.js +1 -1
- package/message/utils.js +1 -1
- package/modal/Modal.js +167 -167
- package/modal/config.js +1 -1
- package/modal/confirm.js +29 -29
- package/modal/constants.js +1 -1
- package/modal/context.js +5 -5
- package/modal/index.js +1 -1
- package/modal/style/index.js +1 -1
- package/modal/use-modal/Hook.js +1 -1
- package/modal/use-modal/index.js +1 -1
- package/modal/utils.js +1 -1
- package/notice/Notice.js +3 -3
- package/notice/config.js +1 -1
- package/notice/constants.js +1 -1
- package/notice/context.js +2 -2
- package/notice/index.js +1 -1
- package/notice/style/index.js +1 -1
- package/notice/utils.js +1 -1
- package/notice/withNotice.js +1 -1
- package/notification/Notification.js +2 -2
- package/notification/config.js +1 -1
- package/notification/constants.js +1 -1
- package/notification/context.js +2 -2
- package/notification/hooks/useNotification.js +1 -1
- package/notification/index.js +1 -1
- package/notification/style/index.js +1 -1
- package/notification/utils.js +1 -1
- package/overflow-ellipsis/Item.js +1 -1
- package/overflow-ellipsis/OverflowEllipsis.js +1 -1
- package/overflow-ellipsis/constants.js +1 -1
- package/overflow-ellipsis/context.js +2 -2
- package/overflow-ellipsis/index.js +1 -1
- package/overflow-ellipsis/style/index.js +1 -1
- package/package.json +1 -1
- package/page-header/PageHeader.js +2 -2
- package/page-header/constants.js +1 -1
- package/page-header/context.js +2 -2
- package/page-header/index.js +1 -1
- package/page-header/style/index.js +1 -1
- package/pagination/Item.js +1 -1
- package/pagination/Jumper.js +1 -1
- package/pagination/Pagination.js +2 -2
- package/pagination/PreNextButton.js +1 -1
- package/pagination/PreNextJump.js +1 -1
- package/pagination/SizeOption.js +1 -1
- package/pagination/constants.js +1 -1
- package/pagination/context.js +2 -2
- package/pagination/index.js +1 -1
- package/pagination/interface.js +1 -1
- package/pagination/style/index.js +1 -1
- package/pagination/utils.js +1 -1
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/picker/constants.js +1 -1
- package/picker/context.js +1 -1
- package/picker/index.js +1 -1
- package/picker/style/index.js +1 -1
- package/popconfirm/Popconfirm.js +2 -2
- package/popconfirm/constants.js +1 -1
- package/popconfirm/context.js +2 -2
- package/popconfirm/index.js +1 -1
- package/popconfirm/style/index.js +1 -1
- package/popover/Popover.js +2 -2
- package/popover/constants.js +1 -1
- package/popover/context.js +2 -2
- package/popover/index.js +1 -1
- package/popover/style/index.js +1 -1
- package/portal/Portal.js +5 -5
- package/portal/constants.js +1 -1
- package/portal/context.js +2 -2
- package/portal/index.js +1 -1
- package/portal/interface.d.ts +1 -1
- package/portal/style/index.js +1 -1
- package/progress/Circle.js +1 -1
- package/progress/Line.js +1 -1
- package/progress/Progress.js +2 -2
- package/progress/Step.js +1 -1
- package/progress/constants.js +1 -1
- package/progress/context.js +2 -2
- package/progress/index.d.ts +1 -1
- package/progress/index.js +1 -1
- package/progress/style/index.js +1 -1
- package/qr-code/QRCode.js +2 -2
- package/qr-code/constants.js +1 -1
- package/qr-code/context.js +2 -2
- package/qr-code/index.js +1 -1
- package/qr-code/src/index.js +1 -1
- package/qr-code/src/qrcodegen.js +1 -1
- package/qr-code/style/index.js +1 -1
- package/radio/Group.d.ts +0 -3
- package/radio/Group.js +2 -2
- package/radio/GroupBlock.d.ts +0 -3
- package/radio/GroupBlock.js +2 -2
- package/radio/Radio.js +2 -2
- package/radio/constants.js +1 -1
- package/radio/context.js +2 -2
- package/radio/index.d.ts +0 -1
- package/radio/index.js +2 -3
- package/radio/style/index.js +1 -1
- package/rate/Rate.js +2 -2
- package/rate/constants.js +1 -1
- package/rate/context.js +2 -2
- package/rate/index.js +1 -1
- package/rate/style/index.js +1 -1
- package/resize-box/ResizeBox.js +51 -51
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +64 -64
- package/resize-box/SplitGroup.js +78 -78
- package/resize-box/constants.js +1 -1
- package/resize-box/context.js +2 -2
- package/resize-box/index.js +1 -1
- package/resize-box/style/index.js +1 -1
- package/result/403.js +1 -1
- package/result/404.js +1 -1
- package/result/500.js +1 -1
- package/result/Result.js +2 -2
- package/result/constants.js +1 -1
- package/result/context.js +2 -2
- package/result/index.js +1 -1
- package/result/style/index.js +1 -1
- package/rich-text/RichText.js +107 -107
- package/rich-text/Toolbar.js +195 -196
- package/rich-text/constants.js +1 -1
- package/rich-text/context.js +2 -2
- package/rich-text/index.d.ts +0 -1
- package/rich-text/index.js +2 -3
- package/rich-text/libs/blots/block.js +1 -1
- package/rich-text/libs/blots/break.js +1 -1
- package/rich-text/libs/blots/container.js +1 -1
- package/rich-text/libs/blots/cursor.js +1 -1
- package/rich-text/libs/blots/embed.js +1 -1
- package/rich-text/libs/blots/inline.js +1 -1
- package/rich-text/libs/blots/scroll.js +1 -1
- package/rich-text/libs/blots/text.js +1 -1
- package/rich-text/libs/core/composition.js +1 -1
- package/rich-text/libs/core/editor.js +1 -1
- package/rich-text/libs/core/emitter.js +1 -1
- package/rich-text/libs/core/logger.js +1 -1
- package/rich-text/libs/core/module.js +1 -1
- package/rich-text/libs/core/rich.js +1 -1
- package/rich-text/libs/core/selection.js +1 -1
- package/rich-text/libs/core/theme.js +1 -1
- package/rich-text/libs/core/utils/createRegistryWithFormats.js +1 -1
- package/rich-text/libs/core/utils/scrollRectIntoView.js +1 -1
- package/rich-text/libs/delta/AttributeMap.js +1 -1
- package/rich-text/libs/delta/Op.js +1 -1
- package/rich-text/libs/delta/OpIterator.js +1 -1
- package/rich-text/libs/delta/index.js +1 -1
- package/rich-text/libs/diff/index.js +1 -1
- package/rich-text/libs/formats/align.js +1 -1
- package/rich-text/libs/formats/background.js +1 -1
- package/rich-text/libs/formats/blockquote.js +1 -1
- package/rich-text/libs/formats/bold.js +1 -1
- package/rich-text/libs/formats/code.js +1 -1
- package/rich-text/libs/formats/color.js +1 -1
- package/rich-text/libs/formats/direction.js +1 -1
- package/rich-text/libs/formats/emoji.js +1 -1
- package/rich-text/libs/formats/font.js +1 -1
- package/rich-text/libs/formats/formula.js +1 -1
- package/rich-text/libs/formats/header.js +1 -1
- package/rich-text/libs/formats/hr.js +1 -1
- package/rich-text/libs/formats/image.js +1 -1
- package/rich-text/libs/formats/indent.js +1 -1
- package/rich-text/libs/formats/italic.js +1 -1
- package/rich-text/libs/formats/lineHeight.js +1 -1
- package/rich-text/libs/formats/link.js +1 -1
- package/rich-text/libs/formats/list.js +1 -1
- package/rich-text/libs/formats/script.js +1 -1
- package/rich-text/libs/formats/size.js +1 -1
- package/rich-text/libs/formats/strike.js +1 -1
- package/rich-text/libs/formats/table.js +1 -1
- package/rich-text/libs/formats/underline.js +1 -1
- package/rich-text/libs/formats/video.js +1 -1
- package/rich-text/libs/index.js +1 -1
- package/rich-text/libs/modules/clipboard.js +2 -2
- package/rich-text/libs/modules/history.js +1 -1
- package/rich-text/libs/modules/image-resize/index.js +1 -1
- package/rich-text/libs/modules/image-resize/modules/Base.js +1 -1
- package/rich-text/libs/modules/image-resize/modules/DisplaySize.js +1 -1
- package/rich-text/libs/modules/image-resize/modules/Resize.js +1 -1
- package/rich-text/libs/modules/image-resize/options.js +1 -1
- package/rich-text/libs/modules/input.js +1 -1
- package/rich-text/libs/modules/keyboard.js +1 -1
- package/rich-text/libs/modules/{normalizeExternalHTML → normalize-external-html}/index.js +2 -2
- package/rich-text/libs/modules/{normalizeExternalHTML → normalize-external-html}/normalizers/googleDocs.js +2 -2
- package/rich-text/libs/modules/{normalizeExternalHTML → normalize-external-html}/normalizers/msWord.js +2 -2
- package/rich-text/libs/modules/table.js +1 -1
- package/rich-text/libs/modules/toolbar.js +1 -1
- package/rich-text/libs/modules/uiNode.js +1 -1
- package/rich-text/libs/modules/uploader.js +1 -1
- package/rich-text/libs/parchment/attributor/attributor.js +1 -1
- package/rich-text/libs/parchment/attributor/class.js +1 -1
- package/rich-text/libs/parchment/attributor/store.js +1 -1
- package/rich-text/libs/parchment/attributor/style.js +1 -1
- package/rich-text/libs/parchment/blot/abstract/container.js +1 -1
- package/rich-text/libs/parchment/blot/abstract/leaf.js +1 -1
- package/rich-text/libs/parchment/blot/abstract/parent.js +1 -1
- package/rich-text/libs/parchment/blot/abstract/shadow.js +1 -1
- package/rich-text/libs/parchment/blot/block.js +1 -1
- package/rich-text/libs/parchment/blot/embed.js +1 -1
- package/rich-text/libs/parchment/blot/inline.js +1 -1
- package/rich-text/libs/parchment/blot/scroll.js +1 -1
- package/rich-text/libs/parchment/blot/text.js +1 -1
- package/rich-text/libs/parchment/collection/linked-list.js +1 -1
- package/rich-text/libs/parchment/error.js +1 -1
- package/rich-text/libs/parchment/index.js +1 -1
- package/rich-text/libs/parchment/registry.js +1 -1
- package/rich-text/libs/parchment/scope.js +1 -1
- package/rich-text/style/index.js +1 -1
- package/router-error/RouterError.js +1 -1
- package/router-error/constants.js +1 -1
- package/router-error/context.js +2 -2
- package/router-error/index.js +1 -1
- package/router-error/style/index.js +1 -1
- package/row-col/Col.js +2 -2
- package/row-col/Row.js +2 -2
- package/row-col/constants.js +1 -1
- package/row-col/context.js +2 -2
- package/row-col/index.js +1 -1
- package/row-col/style/index.js +1 -1
- package/segmented/Segmented.js +2 -2
- package/segmented/constants.js +1 -1
- package/segmented/context.js +2 -2
- package/segmented/index.js +1 -1
- package/segmented/style/index.js +1 -1
- package/select/Option.d.ts +4 -1
- package/select/Option.js +16 -16
- package/select/OptionGroup.d.ts +4 -1
- package/select/OptionGroup.js +12 -12
- package/select/Select.js +4 -4
- package/select/constants.js +1 -1
- package/select/context.js +2 -2
- package/select/index.d.ts +8 -2
- package/select/index.js +1 -1
- package/select/style/index.js +1 -1
- package/select/utils.js +35 -34
- package/select-view/Core.js +181 -181
- package/select-view/SelectView.js +30 -30
- package/select-view/constants.js +1 -1
- package/select-view/context.js +2 -2
- package/select-view/index.js +1 -1
- package/select-view/style/index.js +1 -1
- package/skeleton/Image.js +1 -1
- package/skeleton/Skeleton.js +2 -2
- package/skeleton/Text.js +1 -1
- package/skeleton/constants.js +1 -1
- package/skeleton/context.js +2 -2
- package/skeleton/index.js +1 -1
- package/skeleton/style/index.js +1 -1
- package/slider/Button.js +35 -35
- package/slider/Dot.js +1 -1
- package/slider/Input.js +1 -1
- package/slider/Mark.js +1 -1
- package/slider/Slider.js +96 -96
- package/slider/Tick.js +1 -1
- package/slider/constants.js +1 -1
- package/slider/context.js +2 -2
- package/slider/hooks/useInterval.js +1 -1
- package/slider/hooks/useLegalValue.js +1 -1
- package/slider/index.js +1 -1
- package/slider/style/index.js +1 -1
- package/slider/utils.js +1 -1
- package/space/Space.js +3 -3
- package/space/constants.js +1 -1
- package/space/context.js +2 -2
- package/space/index.d.ts +1 -1
- package/space/index.js +1 -1
- package/space/style/index.js +1 -1
- package/speech-synthesis/SpeechSynthesis.js +1 -1
- package/speech-synthesis/constants.js +1 -1
- package/speech-synthesis/context.js +2 -2
- package/speech-synthesis/index.d.ts +1 -1
- package/speech-synthesis/index.js +1 -1
- package/speech-synthesis/style/index.js +1 -1
- package/spin/DotLoading.js +1 -1
- package/spin/Spin.js +2 -2
- package/spin/constants.js +1 -1
- package/spin/context.js +2 -2
- package/spin/index.js +1 -1
- package/spin/style/index.js +1 -1
- package/splitter/Bar.js +1 -1
- package/splitter/Panel.js +2 -2
- package/splitter/Splitter.js +10 -10
- package/splitter/constants.js +1 -1
- package/splitter/context.js +2 -2
- package/splitter/hooks/useItems.js +1 -1
- package/splitter/hooks/useResizable.js +1 -1
- package/splitter/hooks/useResize.js +1 -1
- package/splitter/hooks/useSizes.js +1 -1
- package/splitter/index.js +1 -1
- package/splitter/style/index.js +1 -1
- package/statistic/Statistic.js +2 -2
- package/statistic/constants.js +1 -1
- package/statistic/context.js +2 -2
- package/statistic/index.js +1 -1
- package/statistic/interface.js +1 -1
- package/statistic/style/index.js +1 -1
- package/steps/Item.js +2 -2
- package/steps/Steps.js +40 -39
- package/steps/constants.js +1 -1
- package/steps/context.js +2 -2
- package/steps/index.js +1 -1
- package/steps/style/index.js +1 -1
- package/style/constants.js +1 -1
- package/suspense-fallback-test/SuspenseFallbackTest.js +1 -1
- package/suspense-fallback-test/constants.js +1 -1
- package/suspense-fallback-test/context.js +1 -1
- package/suspense-fallback-test/index.d.ts +1 -1
- package/suspense-fallback-test/index.js +1 -1
- package/suspense-fallback-test/style/index.js +1 -1
- package/switch/Switch.js +2 -2
- package/switch/constants.js +1 -1
- package/switch/context.js +2 -2
- package/switch/index.d.ts +0 -1
- package/switch/index.js +2 -3
- package/switch/style/index.js +1 -1
- package/table/ColGroup.js +1 -1
- package/table/Table.js +3 -3
- package/table/constants.js +1 -1
- package/table/context.js +2 -2
- package/table/hooks/useColumns.js +1 -1
- package/table/hooks/useComponent.js +1 -1
- package/table/hooks/useExpand.js +1 -1
- package/table/hooks/useRowSelection.js +1 -1
- package/table/hooks/useSorter.js +1 -1
- package/table/hooks/useStickyClassNames.js +1 -1
- package/table/hooks/useStickyOffsets.js +1 -1
- package/table/hooks/useThResizable.js +1 -1
- package/table/index.d.ts +4 -0
- package/table/index.js +1 -1
- package/table/style/index.js +1 -1
- package/table/summary/Cell.d.ts +0 -3
- package/table/summary/Cell.js +13 -12
- package/table/summary/Row.js +22 -20
- package/table/summary/context.js +1 -1
- package/table/summary/index.d.ts +4 -0
- package/table/summary/index.js +10 -8
- package/table/tbody/DataRecordRenderer.js +1 -1
- package/table/tbody/Td.js +14 -14
- package/table/tbody/Tr.js +1 -1
- package/table/tbody/index.js +1 -1
- package/table/tfoot/index.js +1 -1
- package/table/th-resizable/index.js +33 -33
- package/table/th-resizable/style/index.js +1 -1
- package/table/thead/Column.js +1 -1
- package/table/thead/index.js +1 -1
- package/table/utils.js +1 -1
- package/tabs/TabContent.js +1 -1
- package/tabs/TabPane.js +2 -2
- package/tabs/Tabs.js +20 -20
- package/tabs/constants.js +1 -1
- package/tabs/context.js +2 -2
- package/tabs/hooks/useDomSize.js +1 -1
- package/tabs/hooks/useHeaderScroll.js +54 -54
- package/tabs/index.js +1 -1
- package/tabs/style/index.js +1 -1
- package/tabs/tab-header/DropdownIcon.js +1 -1
- package/tabs/tab-header/TabInk.js +11 -14
- package/tabs/tab-header/TabNavIcon.js +1 -1
- package/tabs/tab-header/TabTitle.js +1 -1
- package/tabs/tab-header/index.js +51 -52
- package/tabs/utils.js +1 -1
- package/tag/Tag.js +2 -2
- package/tag/constants.js +1 -1
- package/tag/context.js +2 -2
- package/tag/index.js +1 -1
- package/tag/style/index.js +1 -1
- package/tag/utils.js +1 -1
- package/time-picker/Picker.js +1 -1
- package/time-picker/TimeColumn.js +1 -1
- package/time-picker/TimePicker.js +1 -1
- package/time-picker/TimePickerRange.js +1 -1
- package/time-picker/constants.js +1 -1
- package/time-picker/context.js +2 -2
- package/time-picker/index.js +1 -1
- package/time-picker/style/index.js +1 -1
- package/time-picker/utils.js +1 -1
- package/time-picker/withTimePicker.d.ts +1 -1
- package/time-picker/withTimePicker.js +1 -2
- package/timeline/Item.js +2 -2
- package/timeline/Timeline.js +2 -2
- package/timeline/constants.js +1 -1
- package/timeline/context.js +2 -2
- package/timeline/index.js +1 -1
- package/timeline/style/index.js +1 -1
- package/timer/Timer.js +2 -2
- package/timer/constants.js +1 -1
- package/timer/context.js +2 -2
- package/timer/index.d.ts +1 -1
- package/timer/index.js +1 -1
- package/timer/style/index.js +1 -1
- package/toast/Toast.js +1 -1
- package/toast/constants.js +1 -1
- package/toast/context.js +1 -1
- package/toast/index.js +1 -1
- package/toast/style/index.js +1 -1
- package/tooltip/Tooltip.js +6 -6
- package/tooltip/constants.js +1 -1
- package/tooltip/context.js +2 -2
- package/tooltip/index.js +1 -1
- package/tooltip/style/index.js +1 -1
- package/tour/Tour.js +101 -101
- package/tour/constants.js +1 -1
- package/tour/context.js +2 -2
- package/tour/index.js +1 -1
- package/tour/style/index.js +1 -1
- package/transfer/Item.js +1 -1
- package/transfer/List.js +1 -1
- package/transfer/Transfer.js +2 -2
- package/transfer/constants.js +1 -1
- package/transfer/context.js +2 -2
- package/transfer/index.js +1 -1
- package/transfer/style/index.js +1 -1
- package/transition/constants.js +1 -1
- package/transition/context.js +1 -1
- package/transition/index.js +1 -1
- package/transition/style/index.js +1 -1
- package/tree/Animation.js +4 -4
- package/tree/Node.js +90 -90
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +2 -2
- package/tree/constants.js +1 -1
- package/tree/context.js +2 -2
- package/tree/index.js +1 -1
- package/tree/style/index.js +1 -1
- package/tree/utils.js +1 -1
- package/tree-select/List.js +1 -1
- package/tree-select/TreeSelect.js +3 -3
- package/tree-select/constants.js +1 -1
- package/tree-select/context.js +2 -2
- package/tree-select/hooks/useKeyCache.js +23 -23
- package/tree-select/hooks/useStateValue.js +1 -1
- package/tree-select/hooks/useTreeData.js +1 -1
- package/tree-select/index.js +1 -1
- package/tree-select/style/index.js +1 -1
- package/tree-select/utils.js +1 -1
- package/trigger/Trigger.js +253 -267
- package/trigger/constants.d.ts +12 -0
- package/trigger/constants.js +5 -1
- package/trigger/context.js +13 -10
- package/trigger/getPopupStyle.d.ts +19 -2
- package/trigger/getPopupStyle.js +65 -63
- package/trigger/index.js +1 -1
- package/trigger/interface.d.ts +2 -6
- package/trigger/style/index.js +1 -1
- package/trigger/utils.js +1 -1
- package/typewriter/Typewriter.js +2 -2
- package/typewriter/constants.js +1 -1
- package/typewriter/context.js +2 -2
- package/typewriter/index.d.ts +1 -1
- package/typewriter/index.js +1 -1
- package/typewriter/style/index.js +1 -1
- package/typography/Base.js +52 -52
- package/typography/EditContent.js +1 -1
- package/typography/Ellipsis.js +17 -17
- package/typography/Operations.js +1 -1
- package/typography/Paragraph.js +2 -2
- package/typography/Text.js +2 -2
- package/typography/Title.js +2 -2
- package/typography/Typography.js +2 -2
- package/typography/constants.js +1 -1
- package/typography/context.js +2 -2
- package/typography/hooks/useCssEllipsis.js +1 -1
- package/typography/hooks/useEllipsis.js +27 -27
- package/typography/index.js +1 -1
- package/typography/style/index.js +1 -1
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +2 -2
- package/upload/Uploader.js +1 -1
- package/upload/constants.js +1 -1
- package/upload/context.js +2 -2
- package/upload/index.d.ts +1 -4
- package/upload/index.js +1 -1
- package/upload/list/PictureItem.js +1 -1
- package/upload/list/TextItem.js +1 -1
- package/upload/list/UploadProgress.js +1 -1
- package/upload/list/index.d.ts +1 -4
- package/upload/list/index.js +30 -31
- package/upload/list/utils.js +1 -1
- package/upload/request.js +1 -1
- package/upload/style/index.js +1 -1
- package/upload/utils.js +1 -1
- package/utils/callOrReturn.js +1 -1
- package/utils/callbackOriginRef.js +1 -1
- package/utils/caseName.js +1 -1
- package/utils/className.js +1 -1
- package/utils/constants.js +1 -1
- package/utils/contextHolder.js +2 -2
- package/utils/copy.js +1 -1
- package/utils/createGlobalConfigFunction.js +1 -1
- package/utils/css.js +1 -1
- package/utils/date.js +1 -1
- package/utils/dayjs.js +1 -1
- package/utils/document.js +1 -1
- package/utils/dom.d.ts +0 -1
- package/utils/dom.js +8 -4
- package/utils/emitter.js +1 -1
- package/utils/file.js +1 -1
- package/utils/fileRead.js +1 -1
- package/utils/fileToDataURL.js +1 -1
- package/utils/fillNBSP.js +1 -1
- package/utils/findRootElement.js +1 -1
- package/utils/findScrollParent.js +1 -1
- package/utils/getHighlightText.js +1 -1
- package/utils/getHotkeyHandler.js +1 -1
- package/utils/getScrollBarHeight.js +1 -1
- package/utils/getScrollBarSize.js +1 -1
- package/utils/getScrollBarWidth.js +1 -1
- package/utils/getStringLength.js +1 -1
- package/utils/include.js +1 -1
- package/utils/index.d.ts +1 -1
- package/utils/index.js +215 -225
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.js +1 -1
- package/utils/keyboardCode.js +1 -1
- package/utils/lodash.js +1 -1
- package/utils/math.js +1 -1
- package/utils/mergeProps.js +1 -1
- package/utils/mergedToString.js +1 -1
- package/utils/mutationObserver.js +1 -1
- package/utils/names.d.ts +377 -2232
- package/utils/names.js +258 -247
- package/utils/object.js +1 -1
- package/utils/omit.js +1 -1
- package/utils/pad.js +1 -1
- package/utils/pick.js +1 -1
- package/utils/pinyin.js +1 -1
- package/utils/react19Adapter.js +1 -1
- package/utils/ref.js +1 -1
- package/utils/resizeObserver.js +1 -1
- package/utils/responsiveObserve.js +1 -1
- package/utils/saveAs.js +1 -1
- package/utils/screenfull.js +1 -1
- package/utils/scrollIntoViewIfNeeded.js +1 -1
- package/utils/setCreateRoot.js +1 -1
- package/utils/setDarkTheme.js +1 -1
- package/utils/setPrimaryColor.js +1 -1
- package/utils/setTheme.js +1 -1
- package/utils/string.js +1 -1
- package/utils/style.js +1 -1
- package/utils/tinycolor.js +1 -1
- package/utils/toArray.js +1 -1
- package/utils/tree.js +1 -1
- package/utils/tunnel.js +1 -1
- package/utils/tween.js +1 -1
- package/utils/uuid.js +1 -1
- package/utils/validate.js +1 -1
- package/utils/warning.js +1 -1
- package/verification-code/VerificationCode.js +40 -40
- package/verification-code/constants.js +1 -1
- package/verification-code/context.js +2 -2
- package/verification-code/index.js +1 -1
- package/verification-code/style/index.js +1 -1
- package/version/index.js +5 -5
- package/virtual-list/Filler.js +1 -1
- package/virtual-list/VirtualList.js +2 -2
- package/virtual-list/constants.js +1 -1
- package/virtual-list/context.js +2 -2
- package/virtual-list/hooks/useCacheChildrenNodes.js +1 -1
- package/virtual-list/hooks/useComputeVirtualItemHeight.js +1 -1
- package/virtual-list/index.js +1 -1
- package/virtual-list/style/index.js +1 -1
- package/virtual-list/utils/algorithm.js +1 -1
- package/virtual-list/utils/item.js +1 -1
- package/watermark/Watermark.js +29 -29
- package/watermark/constants.js +1 -1
- package/watermark/context.js +2 -2
- package/watermark/index.js +1 -1
- package/watermark/style/index.js +1 -1
- package/hooks/useUnmountOnExit.d.ts +0 -6
- package/utils/throttleByRequestAnimationFrame.d.ts +0 -1
- package/utils/throttleByRequestAnimationFrame.js +0 -4
- /package/draw/core/components/{DiagramToCodePlugin → diagram-to-code-plugin}/index.d.ts +0 -0
- /package/draw/core/components/{OverwriteConfirm/OverwriteConfirmState.d.ts → overwrite-confirm/State.d.ts} +0 -0
- /package/draw/core/components/{OverwriteConfirm → overwrite-confirm}/index.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/Angle.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/CanvasGrid.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/Collapsible.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/Dimension.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/DragInput.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/FontSize.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/MultiAngle.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/MultiDimension.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/MultiFontSize.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/MultiPosition.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/Position.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/index.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/utils.d.ts +0 -0
- /package/draw/libs/jotai-scope/{ScopeProvider → scope-provider}/index.d.ts +0 -0
- /package/draw/libs/jotai-scope/{ScopeProvider → scope-provider}/scope.d.ts +0 -0
- /package/rich-text/libs/modules/{normalizeExternalHTML → normalize-external-html}/index.d.ts +0 -0
- /package/rich-text/libs/modules/{normalizeExternalHTML → normalize-external-html}/normalizers/googleDocs.d.ts +0 -0
- /package/rich-text/libs/modules/{normalizeExternalHTML → normalize-external-html}/normalizers/msWord.d.ts +0 -0
package/trigger/constants.d.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const TRIGGER_POSITION_TOP = "top";
|
|
2
|
+
export declare const TRIGGER_POSITION_TL = "tl";
|
|
3
|
+
export declare const TRIGGER_POSITION_TR = "tr";
|
|
4
|
+
export declare const TRIGGER_POSITION_BOTTOM = "bottom";
|
|
5
|
+
export declare const TRIGGER_POSITION_BL = "bl";
|
|
6
|
+
export declare const TRIGGER_POSITION_BR = "br";
|
|
7
|
+
export declare const TRIGGER_POSITION_LEFT = "left";
|
|
8
|
+
export declare const TRIGGER_POSITION_LT = "lt";
|
|
9
|
+
export declare const TRIGGER_POSITION_LB = "lb";
|
|
10
|
+
export declare const TRIGGER_POSITION_RIGHT = "right";
|
|
11
|
+
export declare const TRIGGER_POSITION_RT = "rt";
|
|
12
|
+
export declare const TRIGGER_POSITION_RB = "rb";
|
package/trigger/constants.js
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-26 17:15:01 星期五 山东省济南市 */
|
|
2
|
+
//#region components/pc/trigger/constants.ts
|
|
3
|
+
var e = "top", t = "tl", n = "tr", r = "bottom", i = "bl", a = "br", o = "left", s = "lt", c = "lb", l = "right", u = "rt", d = "rb";
|
|
4
|
+
//#endregion
|
|
5
|
+
export { i as TRIGGER_POSITION_BL, r as TRIGGER_POSITION_BOTTOM, a as TRIGGER_POSITION_BR, c as TRIGGER_POSITION_LB, o as TRIGGER_POSITION_LEFT, s as TRIGGER_POSITION_LT, d as TRIGGER_POSITION_RB, l as TRIGGER_POSITION_RIGHT, u as TRIGGER_POSITION_RT, t as TRIGGER_POSITION_TL, e as TRIGGER_POSITION_TOP, n as TRIGGER_POSITION_TR };
|
|
2
6
|
/* 独立思考,明辨是非 */
|
package/trigger/context.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
/* 潘启宝 2026-06-26 17:15:01 星期五 山东省济南市 */
|
|
2
|
+
import { TRIGGER_POSITION_BOTTOM as e } from "./constants.js";
|
|
3
|
+
import { createContext as t } from "react";
|
|
4
|
+
import { UI_PC_PREFIX as n } from "@unicom-cloud/utils/constants/ui";
|
|
4
5
|
//#region components/pc/trigger/context.ts
|
|
5
|
-
var
|
|
6
|
+
var r = {
|
|
6
7
|
blurToHide: !0,
|
|
7
|
-
classNames: `${
|
|
8
|
+
classNames: `${n}-fade-in`,
|
|
8
9
|
trigger: "hover",
|
|
9
|
-
position:
|
|
10
|
+
position: e,
|
|
10
11
|
duration: 200,
|
|
11
12
|
unmountOnExit: !0,
|
|
12
13
|
popupAlign: {},
|
|
@@ -15,13 +16,15 @@ var n = {
|
|
|
15
16
|
escToClose: !1,
|
|
16
17
|
mouseLeaveToClose: !0,
|
|
17
18
|
containerScrollToClose: !1,
|
|
18
|
-
getDocument: () => window.document,
|
|
19
19
|
autoFixPosition: !0,
|
|
20
20
|
mouseEnterDelay: 100,
|
|
21
21
|
mouseLeaveDelay: 100,
|
|
22
22
|
autoFitPosition: !0,
|
|
23
|
-
updateOnScroll: !0
|
|
24
|
-
|
|
23
|
+
updateOnScroll: !0,
|
|
24
|
+
getDocument() {
|
|
25
|
+
return window.document;
|
|
26
|
+
}
|
|
27
|
+
}, i = t({});
|
|
25
28
|
//#endregion
|
|
26
|
-
export {
|
|
29
|
+
export { i as PropsContext, r as defaultProps };
|
|
27
30
|
/* 独立思考,明辨是非 */
|
|
@@ -1,5 +1,22 @@
|
|
|
1
|
-
import type { ChildRect, MouseLocationType, PositionOptionsType, ReturnType, TriggerProps } from './interface';
|
|
1
|
+
import type { ChildRect, MouseLocationType, PopupAlignType, PositionOptionsType, ReturnType, TriggerProps } from './interface';
|
|
2
2
|
export declare function getBoundingClientRect(dom: Element, options: PositionOptionsType): ChildRect;
|
|
3
3
|
export declare function getDOM_Position(dom: HTMLElement, options: PositionOptionsType): Partial<ChildRect>;
|
|
4
|
-
declare function
|
|
4
|
+
export declare function getElementPosition(element: HTMLElement, elementRect: ChildRect, root: Element, options: PositionOptionsType): {
|
|
5
|
+
left: number;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
top: number;
|
|
9
|
+
};
|
|
10
|
+
export declare function getInsideValue(min: number, max: number, value: number): number;
|
|
11
|
+
export declare function getPopupAlign(propsPopupAlign: TriggerProps['popupAlign'], showArrow: boolean): PopupAlignType;
|
|
12
|
+
export declare function getChildRect(child: HTMLElement, mouseLocation: MouseLocationType | undefined, { boundaryDistance, position }: PositionOptionsType): ChildRect;
|
|
13
|
+
export declare function getContentSize(content: HTMLElement): {
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
};
|
|
17
|
+
export declare function getViewportSize(_boundaryDistance: TriggerProps['boundaryDistance']): {
|
|
18
|
+
windowHeight: number;
|
|
19
|
+
windowWidth: number;
|
|
20
|
+
};
|
|
21
|
+
export declare function getPopupStyle(props: TriggerProps, content: HTMLElement, child: HTMLElement, mountContainer: Element, mouseLocation: MouseLocationType): ReturnType;
|
|
5
22
|
export default getPopupStyle;
|
package/trigger/getPopupStyle.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-26 17:15:01 星期五 山东省济南市 */
|
|
2
2
|
import { isArray as e, isNumber as t, isServerRendering as n, isUndefined as r } from "../utils/is.js";
|
|
3
|
-
import {
|
|
3
|
+
import { TRIGGER_POSITION_BOTTOM as i, TRIGGER_POSITION_LEFT as a, TRIGGER_POSITION_RIGHT as o } from "./constants.js";
|
|
4
|
+
import { getArrowProp as s } from "./utils.js";
|
|
4
5
|
import "react";
|
|
5
6
|
//#region components/pc/trigger/getPopupStyle.ts
|
|
6
|
-
var
|
|
7
|
-
function
|
|
8
|
-
let { position: n } = t, { width: r, height: i, left:
|
|
7
|
+
var c = 0;
|
|
8
|
+
function l(e, t) {
|
|
9
|
+
let { position: n } = t, { width: r, height: i, left: a, right: o, top: s, bottom: l } = e.getBoundingClientRect(), u = t.boundaryDistance || {}, d = "left" in u && u.left || c, f = "top" in u && u.top || c, p, m, h, g;
|
|
9
10
|
return [
|
|
10
11
|
"bottom",
|
|
11
12
|
"bl",
|
|
12
13
|
"br"
|
|
13
|
-
].includes(n) ? (h =
|
|
14
|
+
].includes(n) ? (h = s, g = l) : (h = s - f, g = l - f), [
|
|
14
15
|
"right",
|
|
15
16
|
"rt",
|
|
16
17
|
"rb"
|
|
17
|
-
].includes(n) ? (p =
|
|
18
|
+
].includes(n) ? (p = a, m = o) : (p = a - d, m = o - d), {
|
|
18
19
|
width: r,
|
|
19
20
|
height: i,
|
|
20
21
|
left: p,
|
|
@@ -23,9 +24,9 @@ function o(e, t) {
|
|
|
23
24
|
bottom: g
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
|
-
function
|
|
27
|
+
function u(e, t) {
|
|
27
28
|
if (!e) return {};
|
|
28
|
-
let { width: n, height: r, left: i, right: a } =
|
|
29
|
+
let { width: n, height: r, left: i, right: a } = l(e, t);
|
|
29
30
|
return {
|
|
30
31
|
width: n,
|
|
31
32
|
height: r,
|
|
@@ -33,7 +34,7 @@ function s(e, t) {
|
|
|
33
34
|
right: a
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
|
-
function
|
|
37
|
+
function d(e, t, r, i) {
|
|
37
38
|
if (!r || !e || n) return {
|
|
38
39
|
left: 0,
|
|
39
40
|
width: 0,
|
|
@@ -41,21 +42,21 @@ function c(e, t, r, i) {
|
|
|
41
42
|
top: 0
|
|
42
43
|
};
|
|
43
44
|
let a = document.body;
|
|
44
|
-
function
|
|
45
|
+
function o(e) {
|
|
45
46
|
return document.documentElement[e] || a[e];
|
|
46
47
|
}
|
|
47
|
-
let
|
|
48
|
+
let s = r === a ? o("scrollTop") : r.scrollTop, c = r === a ? o("scrollLeft") : r.scrollLeft, { left: u, top: d, width: f, height: p } = t, m = r === a ? 0 : l(r, i).left, h = r === a ? 0 : l(r, i).top, g = d + s - h;
|
|
48
49
|
return {
|
|
49
|
-
left: u +
|
|
50
|
+
left: u + c - m,
|
|
50
51
|
top: g,
|
|
51
52
|
width: f,
|
|
52
53
|
height: p
|
|
53
54
|
};
|
|
54
55
|
}
|
|
55
|
-
function
|
|
56
|
+
function f(e, t, n) {
|
|
56
57
|
return n < e ? e : n > t ? t : n;
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
+
function p(n, r) {
|
|
59
60
|
if (t(n)) {
|
|
60
61
|
let e = n;
|
|
61
62
|
n = {
|
|
@@ -86,7 +87,7 @@ function u(n, r) {
|
|
|
86
87
|
verticalOffset: a
|
|
87
88
|
};
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
+
function m(e, t, { boundaryDistance: n, position: r }) {
|
|
90
91
|
return t ? {
|
|
91
92
|
left: t.clientX,
|
|
92
93
|
top: t.clientY,
|
|
@@ -94,98 +95,99 @@ function d(e, t, { boundaryDistance: n, position: r }) {
|
|
|
94
95
|
height: 0,
|
|
95
96
|
right: t.clientX,
|
|
96
97
|
bottom: t.clientY
|
|
97
|
-
} :
|
|
98
|
+
} : l(e, {
|
|
98
99
|
boundaryDistance: n,
|
|
99
100
|
position: r
|
|
100
101
|
});
|
|
101
102
|
}
|
|
102
|
-
function
|
|
103
|
+
function h(e) {
|
|
104
|
+
let { offsetWidth: t = 0, offsetHeight: n = 0 } = e ?? {};
|
|
103
105
|
return {
|
|
104
|
-
width:
|
|
105
|
-
height:
|
|
106
|
+
width: t,
|
|
107
|
+
height: n
|
|
106
108
|
};
|
|
107
109
|
}
|
|
108
|
-
function
|
|
109
|
-
let t = e || {}, n = "left" in t ? t.left : "right" in t ? t.right :
|
|
110
|
+
function g(e) {
|
|
111
|
+
let t = e || {}, n = "left" in t ? t.left : "right" in t ? t.right : c, r = "top" in t ? t.top : "bottom" in t ? t.bottom : c;
|
|
110
112
|
return {
|
|
111
|
-
windowHeight: (document.documentElement?.clientHeight || window.innerHeight) - (r ||
|
|
112
|
-
windowWidth: (document.documentElement?.clientWidth || window.innerWidth) - (n ||
|
|
113
|
+
windowHeight: (document.documentElement?.clientHeight || window.innerHeight) - (r || c),
|
|
114
|
+
windowWidth: (document.documentElement?.clientWidth || window.innerWidth) - (n || c)
|
|
113
115
|
};
|
|
114
116
|
}
|
|
115
|
-
function
|
|
116
|
-
let { autoAlignPopupWidth:
|
|
117
|
-
if (!n
|
|
118
|
-
let
|
|
117
|
+
function _(e, t, n, c, l) {
|
|
118
|
+
let { autoAlignPopupWidth: u, autoAlignPopupMinWidth: _, alignPoint: v, style: y } = e, b = s(e);
|
|
119
|
+
if (!(n && t && c)) return {};
|
|
120
|
+
let x = {
|
|
119
121
|
left: 0,
|
|
120
122
|
top: 0
|
|
121
|
-
},
|
|
122
|
-
boundaryDistance:
|
|
123
|
+
}, S = !e.alignPoint && e.boundaryDistance || {}, C = m(n, v ? l : void 0, {
|
|
124
|
+
boundaryDistance: S,
|
|
123
125
|
position: e.position
|
|
124
|
-
}), { left:
|
|
125
|
-
boundaryDistance:
|
|
126
|
+
}), { left: w, top: T, width: E, height: D } = d(n, C, c, {
|
|
127
|
+
boundaryDistance: S,
|
|
126
128
|
position: e.position
|
|
127
|
-
}),
|
|
128
|
-
|
|
129
|
-
let
|
|
130
|
-
function
|
|
129
|
+
}), O = p(e.popupAlign, !!b), k = O.left || 0, A = O.right || 0, j = O.top || 0, M = O.bottom || 0;
|
|
130
|
+
u && r(y?.width) && (t.style.width = `${n.offsetWidth}px`), _ && (t.style.minWidth = `${n.offsetWidth}px`);
|
|
131
|
+
let N = h(t), P = e.position, F = {};
|
|
132
|
+
function I(t) {
|
|
131
133
|
if (!e.autoFitPosition) return;
|
|
132
|
-
let { windowHeight: n, windowWidth: r } =
|
|
133
|
-
left:
|
|
134
|
-
top:
|
|
135
|
-
}, { top:
|
|
136
|
-
if ((t === "top" || t === "bottom") && (
|
|
134
|
+
let { windowHeight: n, windowWidth: r } = g(S), i = !1, a = {
|
|
135
|
+
left: w - C.left,
|
|
136
|
+
top: T - C.top
|
|
137
|
+
}, { top: o = 0, left: s = 0 } = x;
|
|
138
|
+
if ((t === "top" || t === "bottom") && (a.left > s && C.right > 12 ? (x.left = Math.max(a.left, w - N.width), x.left = Math.max(x.left, w - N.width + 24)) : s - a.left + N.width > r && r - C.left > 12 && (x.left = Math.max(a.left, a.left + r - N.width), x.left = Math.max(x.left, w - N.width + 24))), (t === "left" || t === "right") && (a.top > o && C.bottom > 12 ? (x.top = a.top, x.top = Math.max(x.top, T - N.height + C.height / 2)) : o - a.top + N.height > n && n - C.top > 12 && (x.top = Math.max(a.top, a.top + n - N.height), x.top = Math.max(x.top, T - N.height + C.height / 2))), t === "top" && a.top > o && (C.top < n - C.bottom ? (x.top = Math.min(T + D + (j || 0), a.top + n - N.height), i = !0) : x.top = a.top), t === "bottom" && o - a.top + N.height > n && (n - C.bottom < C.top ? (x.top = Math.max(T - N.height - (M || 0), a.top), i = !0) : x.top = a.top + n - N.height), t === "left" && a.left > s && (C.left < r - C.right ? (x.left = Math.min(E + w + A, a.left + r - N.width), i = !0) : x.left = a.left), t === "right" && s - a.left + N.width > r && (r - C.right < C.left ? (x.left = Math.max(w - N.width - k, a.left), i = !0) : x.left = a.left + r - N.width), x.left < 0) x.left = 0;
|
|
137
139
|
else {
|
|
138
|
-
let e =
|
|
139
|
-
|
|
140
|
+
let e = c.scrollWidth - N.width;
|
|
141
|
+
x.left = Math.min(e, x.left);
|
|
140
142
|
}
|
|
141
143
|
return i;
|
|
142
144
|
}
|
|
143
|
-
let
|
|
145
|
+
let L = O.horizontalOffset || 0, R = O.verticalOffset || 0, z = w - Number(x.left) + E / 2, B = T - Number(x.top) + D / 2;
|
|
144
146
|
switch (e.position) {
|
|
145
147
|
case "top":
|
|
146
|
-
|
|
148
|
+
x.top = T - N.height - j, x.left = w + E / 2 - N.width / 2, I("top") && (P = "bottom"), x.left += L, z = w - Number(x.left) + E / 2, F.left = f(12, N.width - 12, z);
|
|
147
149
|
break;
|
|
148
150
|
case "tl":
|
|
149
|
-
|
|
151
|
+
x.top = T - N.height - j, x.left = w, I("top") && (P = "bl"), x.left += L, z = w - Number(x.left) + Math.min(E / 2, 50), F.left = f(12, N.width - 12, z);
|
|
150
152
|
break;
|
|
151
153
|
case "tr":
|
|
152
|
-
|
|
154
|
+
x.top = -t.clientHeight + T - j, x.left = w + E - N.width, I("top") && (P = "br"), x.left += L, z = w - Number(x.left) + Math.max(E / 2, E - 50), F.left = f(12, N.width - 12, z);
|
|
153
155
|
break;
|
|
154
|
-
case
|
|
155
|
-
|
|
156
|
+
case i:
|
|
157
|
+
x.top = D + T + M, x.left = w + E / 2 - N.width / 2, I("bottom") && (P = "top"), x.left += L, z = w - Number(x.left) + E / 2, F.left = f(12, N.width - 12, z);
|
|
156
158
|
break;
|
|
157
159
|
case "bl":
|
|
158
|
-
|
|
160
|
+
x.top = D + T + M, x.left = w, I("bottom") && (P = "tl"), x.left += L, z = w - Number(x.left) + Math.min(E / 2, 50), F.left = f(12, N.width - 12, z);
|
|
159
161
|
break;
|
|
160
162
|
case "br":
|
|
161
|
-
|
|
163
|
+
x.top = D + T + M, x.left = w + E - N.width, I("bottom") && (P = "tr"), x.left += L, z = w - Number(x.left) + Math.max(E / 2, E - 50), F.left = f(12, N.width - 12, z);
|
|
162
164
|
break;
|
|
163
|
-
case
|
|
164
|
-
|
|
165
|
+
case a:
|
|
166
|
+
x.top = T + D / 2 - N.height / 2, x.left = w - N.width - k, I("left") && (P = "right"), x.top += R, B = T - Number(x.top) + D / 2, F.top = f(12, N.height - 12, B);
|
|
165
167
|
break;
|
|
166
168
|
case "lt":
|
|
167
|
-
|
|
169
|
+
x.top = T, x.left = w - N.width - k, I("left") && (P = "rt"), x.top += R, B = T - Number(x.top) + Math.min(D / 2, 50), F.top = f(12, N.height - 12, B);
|
|
168
170
|
break;
|
|
169
171
|
case "lb":
|
|
170
|
-
|
|
172
|
+
x.top = T + D - N.height, x.left = w - N.width - k, I("left") && (P = "rb"), x.top += R, B = T - Number(x.top) + Math.max(D / 2, D - 50), F.top = f(12, N.height - 12, B);
|
|
171
173
|
break;
|
|
172
|
-
case
|
|
173
|
-
|
|
174
|
+
case o:
|
|
175
|
+
x.top = T + D / 2 - N.height / 2, x.left = E + w + A, I("right") && (P = "left"), x.top += R, B = T - Number(x.top) + D / 2, F.top = f(12, N.height - 12, B);
|
|
174
176
|
break;
|
|
175
177
|
case "rt":
|
|
176
|
-
|
|
178
|
+
x.top = T, x.left = E + w + A, I("right") && (P = "lt"), x.top += R, B = T - Number(x.top) + Math.min(D / 2, 50), F.top = f(12, N.height - 12, B);
|
|
177
179
|
break;
|
|
178
180
|
case "rb":
|
|
179
|
-
|
|
181
|
+
x.top = T + D - N.height, x.left = E + w + A, I("right") && (P = "lb"), x.top += R, B = T - Number(x.top) + Math.max(D / 2, D - 50), F.top = f(12, N.height - 12, B);
|
|
180
182
|
break;
|
|
181
183
|
default: break;
|
|
182
184
|
}
|
|
183
185
|
return {
|
|
184
|
-
style:
|
|
185
|
-
arrowStyle:
|
|
186
|
-
|
|
186
|
+
style: x,
|
|
187
|
+
arrowStyle: F,
|
|
188
|
+
position: P
|
|
187
189
|
};
|
|
188
190
|
}
|
|
189
191
|
//#endregion
|
|
190
|
-
export {
|
|
192
|
+
export { _ as default, _ as getPopupStyle, l as getBoundingClientRect, m as getChildRect, h as getContentSize, u as getDOM_Position, d as getElementPosition, f as getInsideValue, p as getPopupAlign, g as getViewportSize };
|
|
191
193
|
/* 独立思考,明辨是非 */
|
package/trigger/index.js
CHANGED
package/trigger/interface.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { GetPopupContainer } from '../interface';
|
|
|
3
3
|
export type ReturnType = {
|
|
4
4
|
style?: CSSProperties;
|
|
5
5
|
arrowStyle?: CSSProperties;
|
|
6
|
-
|
|
6
|
+
position?: TriggerProps['position'];
|
|
7
7
|
};
|
|
8
8
|
export type ChildRect = {
|
|
9
9
|
left: number;
|
|
@@ -40,7 +40,7 @@ export interface TriggerProps extends GetPopupContainer {
|
|
|
40
40
|
* @zh 弹出框(内部)的样式
|
|
41
41
|
* @en The css style of the content of the popup
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
popupInnerStyle?: CSSProperties;
|
|
44
44
|
/**
|
|
45
45
|
* @zh 弹出层跟随鼠标位置
|
|
46
46
|
* @en The popup will align mouse position
|
|
@@ -268,8 +268,4 @@ export type MouseLocationType = {
|
|
|
268
268
|
clientX: number;
|
|
269
269
|
clientY: number;
|
|
270
270
|
};
|
|
271
|
-
export interface TriggerState {
|
|
272
|
-
popupVisible: boolean;
|
|
273
|
-
popupStyle: object;
|
|
274
|
-
}
|
|
275
271
|
export type EventsByTriggerNeedType = 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseMove' | 'onFocus' | 'onBlur' | 'onContextMenu' | 'onKeyDown';
|
package/trigger/style/index.js
CHANGED
package/trigger/utils.js
CHANGED
package/typewriter/Typewriter.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-26 17:15:01 星期五 山东省济南市 */
|
|
2
2
|
import e from "../utils/className.js";
|
|
3
3
|
import { TYPEWRITER_COMPONENT_INFO as t } from "../utils/names.js";
|
|
4
4
|
import n from "../hooks/use-merge-props/index.js";
|
|
@@ -22,7 +22,7 @@ function f(t, o) {
|
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
var p = o(f);
|
|
25
|
-
p
|
|
25
|
+
Object.assign(p, { ...t });
|
|
26
26
|
var m = p;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { m as default };
|
package/typewriter/constants.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-26 17:15:01 星期五 山东省济南市 */
|
|
2
2
|
/* 独立思考,明辨是非 */
|
package/typewriter/context.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-26 17:15:01 星期五 山东省济南市 */
|
|
2
2
|
import { createContext as e } from "react";
|
|
3
3
|
//#region components/pc/typewriter/context.ts
|
|
4
|
-
var t = {}, n = e(
|
|
4
|
+
var t = {}, n = e({});
|
|
5
5
|
//#endregion
|
|
6
6
|
export { n as PropsContext, t as defaultProps };
|
|
7
7
|
/* 独立思考,明辨是非 */
|
package/typewriter/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './style';
|
|
2
2
|
declare const Typewriter: import("react").ForwardRefExoticComponent<import("./interface").TypewriterProps & import("react").RefAttributes<HTMLElement>> & {
|
|
3
3
|
PropsContext: import("react").Context<Partial<import("./interface").TypewriterProps>>;
|
|
4
|
-
id: string;
|
|
5
4
|
zh: string;
|
|
6
5
|
en: string;
|
|
7
6
|
displayName: string;
|
|
7
|
+
id: string;
|
|
8
8
|
};
|
|
9
9
|
export * from '@unicom-cloud/ui-common/border-beam';
|
|
10
10
|
export * from './Typewriter';
|
package/typewriter/index.js
CHANGED
package/typography/Base.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-26 17:15:01 星期五 山东省济南市 */
|
|
2
2
|
import { isPlainObject as e, isUndefined as t } from "../utils/is.js";
|
|
3
3
|
import n from "../hooks/use-controllable-value/index.js";
|
|
4
4
|
import r from "../utils/className.js";
|
|
5
5
|
import { ConfigContext as i } from "../config-provider/context.js";
|
|
6
6
|
import a from "../utils/mergedToString.js";
|
|
7
7
|
import o from "../utils/omit.js";
|
|
8
|
-
import s from "../
|
|
9
|
-
import c from "../hooks/use-
|
|
8
|
+
import s from "../hooks/use-resize-observers/index.js";
|
|
9
|
+
import c from "../hooks/use-throttle-fn-with-raf/index.js";
|
|
10
10
|
import l from "../hooks/use-update-effect/index.js";
|
|
11
11
|
import u from "../tooltip/index.js";
|
|
12
12
|
import ee from "../popover/index.js";
|
|
@@ -26,68 +26,68 @@ function x(e, t) {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
function S(g, S) {
|
|
29
|
-
let { componentType: C, style: w, className: T, children: E, editable: D, ellipsis: O, heading:
|
|
29
|
+
let { componentType: C, style: w, className: T, children: E, editable: D, ellipsis: O, heading: oe, blockquote: k, ...A } = g, j = ne(i), { getPrefixCls: se, rtl: M } = j, N = se?.("typography"), P = _(null), F = _(null), { component: I, className: L } = x(g, N), [R, z] = v(!1), [B, V] = v(0), H = e(D) ? D : {}, U = "editing" in H ? H.editing : R, W = O ? {
|
|
30
30
|
rows: 1,
|
|
31
31
|
ellipsisStr: "...",
|
|
32
32
|
cssEllipsis: !1,
|
|
33
33
|
...e(O) ? O : {}
|
|
34
|
-
} : {},
|
|
34
|
+
} : {}, G = W.wrapper || h.Fragment, [K, ce] = n({ ...W }, {
|
|
35
35
|
defaultValue: !1,
|
|
36
36
|
defaultValuePropName: "defaultExpanded",
|
|
37
37
|
valuePropName: "expanded",
|
|
38
38
|
triggerPropName: !1
|
|
39
|
-
}), { simpleEllipsis:
|
|
40
|
-
let r = t(
|
|
41
|
-
return /* @__PURE__ */ b(
|
|
39
|
+
}), { simpleEllipsis: q, ellipsisStyle: le } = f(W), J = (e, n) => {
|
|
40
|
+
let r = t(W.ellipsisStr) ? "..." : W.ellipsisStr, i = !t(W.suffix) && W.suffix;
|
|
41
|
+
return /* @__PURE__ */ b(G, { children: [
|
|
42
42
|
e,
|
|
43
|
-
n && !
|
|
43
|
+
n && !K && !q ? r : "",
|
|
44
44
|
i,
|
|
45
|
-
|
|
45
|
+
Z(n)
|
|
46
46
|
] });
|
|
47
|
-
}, { ellipsisNode:
|
|
48
|
-
...
|
|
47
|
+
}, { ellipsisNode: ue, isEllipsis: Y, measureStatus: X } = te({
|
|
48
|
+
...W,
|
|
49
49
|
children: E,
|
|
50
|
-
expanding:
|
|
51
|
-
width:
|
|
52
|
-
renderMeasureContent:
|
|
53
|
-
simpleEllipsis:
|
|
54
|
-
}),
|
|
50
|
+
expanding: K,
|
|
51
|
+
width: B,
|
|
52
|
+
renderMeasureContent: J,
|
|
53
|
+
simpleEllipsis: q || K
|
|
54
|
+
}), { run: de, cancel: fe } = c((e) => {
|
|
55
55
|
let { contentRect: t } = e?.[0] ?? {};
|
|
56
56
|
if (t) {
|
|
57
|
-
let e =
|
|
58
|
-
[p.NO_NEED_ELLIPSIS, p.MEASURE_END].includes(
|
|
57
|
+
let e = I.includes("code") ? t.width - 18 : t.width;
|
|
58
|
+
[p.NO_NEED_ELLIPSIS, p.MEASURE_END].includes(X) && V(e);
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}, [
|
|
64
|
-
function
|
|
61
|
+
s((e) => {
|
|
62
|
+
de(e);
|
|
63
|
+
}, [P.current]);
|
|
64
|
+
function Z(e) {
|
|
65
65
|
return /* @__PURE__ */ y(ae, { children: /* @__PURE__ */ y(m, {
|
|
66
66
|
...g,
|
|
67
|
-
setEditing:
|
|
68
|
-
onClickExpand:
|
|
69
|
-
expanding:
|
|
67
|
+
setEditing: z,
|
|
68
|
+
onClickExpand: pe,
|
|
69
|
+
expanding: K,
|
|
70
70
|
isEllipsis: e,
|
|
71
|
-
currentContext:
|
|
71
|
+
currentContext: j
|
|
72
72
|
}) });
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
|
|
74
|
+
function pe(e) {
|
|
75
|
+
ce(!K), g.onClickExpand?.(e), W.onExpand?.(!K, e);
|
|
76
76
|
}
|
|
77
77
|
l(() => {
|
|
78
|
-
|
|
79
|
-
}, [
|
|
78
|
+
W.onEllipsis?.(Y);
|
|
79
|
+
}, [Y]), re(S, () => ({
|
|
80
80
|
getRootElement() {
|
|
81
|
-
return
|
|
81
|
+
return P.current;
|
|
82
82
|
},
|
|
83
83
|
getEditContent() {
|
|
84
|
-
return
|
|
84
|
+
return F.current;
|
|
85
85
|
}
|
|
86
86
|
}));
|
|
87
87
|
function Q(t, n, r, i = {}) {
|
|
88
88
|
let a = t;
|
|
89
89
|
return n.forEach((t, n) => {
|
|
90
|
-
let o = { className: `${
|
|
90
|
+
let o = { className: `${N}-${t}` }, s = n === 0 ? i : {}, c = e(r.mark) && r.mark.color ? {
|
|
91
91
|
style: { backgroundColor: r.mark.color },
|
|
92
92
|
...s
|
|
93
93
|
} : { ...s };
|
|
@@ -95,16 +95,16 @@ function S(g, S) {
|
|
|
95
95
|
}), a;
|
|
96
96
|
}
|
|
97
97
|
let $;
|
|
98
|
-
C === "Paragraph" ? $ =
|
|
99
|
-
function
|
|
100
|
-
let t = a(h.Children.toArray(E)), n =
|
|
98
|
+
C === "Paragraph" ? $ = k ? "blockquote" : "div" : C === "Title" ? $ = `h${oe}` : C === "Text" && ($ = O ? "div" : "span");
|
|
99
|
+
function me() {
|
|
100
|
+
let t = a(h.Children.toArray(E)), n = W.showTooltip, i = e(W.showTooltip) && W.showTooltip.type === "popover" ? "popover" : "tooltip", s = e(W.showTooltip) && W.showTooltip.props || {}, c = i === "popover" ? ee : u, l = {
|
|
101
101
|
style: w,
|
|
102
|
-
...
|
|
103
|
-
}, d =
|
|
104
|
-
ref:
|
|
105
|
-
className: r(
|
|
102
|
+
...Y && !n && !K ? { title: t } : {}
|
|
103
|
+
}, d = Y && n && !K, f = /* @__PURE__ */ y($, {
|
|
104
|
+
ref: P,
|
|
105
|
+
className: r(N, L, { [`${N}-rtl`]: M }, T),
|
|
106
106
|
...l,
|
|
107
|
-
...o(
|
|
107
|
+
...o(A, [
|
|
108
108
|
"spacing",
|
|
109
109
|
"type",
|
|
110
110
|
"close",
|
|
@@ -121,10 +121,10 @@ function S(g, S) {
|
|
|
121
121
|
"setEditing",
|
|
122
122
|
"forceShowExpand"
|
|
123
123
|
]),
|
|
124
|
-
children:
|
|
125
|
-
style:
|
|
124
|
+
children: q && X !== p.INIT && !K && Y ? Q(J(/* @__PURE__ */ y("span", {
|
|
125
|
+
style: le,
|
|
126
126
|
children: E
|
|
127
|
-
}),
|
|
127
|
+
}), Y), I.length ? I : ["span"], g, { className: `${N}-simple-ellipsis` }) : Q(ue, I, g)
|
|
128
128
|
});
|
|
129
129
|
return d ? /* @__PURE__ */ y(c, {
|
|
130
130
|
content: t,
|
|
@@ -132,14 +132,14 @@ function S(g, S) {
|
|
|
132
132
|
children: /* @__PURE__ */ y("span", { children: f })
|
|
133
133
|
}) : f;
|
|
134
134
|
}
|
|
135
|
-
return
|
|
136
|
-
ref:
|
|
135
|
+
return U ? /* @__PURE__ */ y(d, {
|
|
136
|
+
ref: F,
|
|
137
137
|
...g,
|
|
138
|
-
className: r(
|
|
139
|
-
prefixCls:
|
|
140
|
-
setEditing:
|
|
141
|
-
editableConfig:
|
|
142
|
-
}) :
|
|
138
|
+
className: r(N, L, { [`${N}-rtl`]: M }, `${N}-${$}`, T),
|
|
139
|
+
prefixCls: N,
|
|
140
|
+
setEditing: z,
|
|
141
|
+
editableConfig: H
|
|
142
|
+
}) : me();
|
|
143
143
|
}
|
|
144
144
|
var C = g(S);
|
|
145
145
|
//#endregion
|