@unicom-cloud/ui 0.8.147 → 0.8.148
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/Affix.js +1 -1
- package/Alert.js +1 -1
- package/Anchor.js +1 -1
- package/App.js +1 -1
- package/AutoComplete.js +1 -1
- package/Avatar.js +1 -1
- package/BackTop.js +1 -1
- package/Badge.js +1 -1
- package/Breadcrumb.js +1 -1
- package/Button.js +1 -1
- package/Calendar.js +1 -1
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +1 -1
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- package/Constant.js +1 -1
- package/Copy.js +1 -1
- package/Countdown.js +1 -1
- package/DatePicker.js +1 -1
- package/Descriptions.js +2 -2
- package/Details.js +1 -1
- package/Development.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Draw.js +6 -0
- package/Drawer.js +1 -1
- package/Dropdown.js +1 -1
- package/Empty.js +1 -1
- package/Flex.js +1 -1
- package/Form.js +1 -1
- package/GlobalProvider.js +11 -0
- package/Grid.js +1 -1
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/Input.js +1 -1
- package/InputNumber.js +1 -1
- package/InputTag.js +1 -1
- package/Layout.js +1 -1
- package/Link.js +1 -1
- package/LiquidFill.js +1 -1
- package/List.js +1 -1
- package/Loading.js +1 -1
- package/Marquee.js +1 -1
- package/Mask.js +1 -1
- package/Masonry.js +1 -1
- package/Mentions.js +1 -1
- package/Menu.js +1 -1
- package/Message.js +1 -1
- package/Modal.js +1 -1
- package/Notice.js +1 -1
- package/Notification.js +1 -1
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Portal.js +1 -1
- package/Progress.js +1 -1
- package/Progress2.js +1 -1
- package/QrCode.js +1 -1
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/RichText.js +1 -1
- package/RowCol.js +1 -1
- package/Segmented.js +1 -1
- package/Select.js +1 -1
- package/SelectView.js +1 -1
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +1 -1
- package/SpeechSynthesis.js +1 -1
- package/Spin.js +1 -1
- package/Splitter.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/SuspenseFallbackTest.js +1 -1
- package/Switch.js +1 -1
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/TimePicker.js +1 -1
- package/Timeline.js +1 -1
- package/Timer.js +1 -1
- package/Tooltip.js +1 -1
- package/Tour.js +1 -1
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +1 -1
- package/Typography.js +1 -1
- package/Upload.js +1 -1
- package/VerificationCode.js +3 -3
- package/VirtualList.js +1 -1
- package/Watermark.js +5 -5
- package/affix/Affix.js +1 -1
- package/affix/index.js +1 -1
- package/alert/Alert.js +1 -1
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +1 -1
- package/anchor/Link.js +1 -1
- package/anchor/context.js +1 -1
- package/anchor/index.js +1 -1
- package/anchor/utils.js +1 -1
- package/app/App.js +1 -1
- package/app/context.js +1 -1
- package/app/index.js +1 -1
- package/app/useApp.js +1 -1
- package/auto-complete/AutoComplete.js +1 -1
- package/auto-complete/index.js +1 -1
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/avatar/context.js +1 -1
- package/avatar/index.js +1 -1
- package/back-top/BackTop.js +1 -1
- package/back-top/index.js +1 -1
- package/badge/Badge.js +1 -1
- package/badge/Count.js +1 -1
- package/badge/index.js +1 -1
- package/breadcrumb/Breadcrumb.js +1 -1
- package/breadcrumb/Item.js +1 -1
- package/breadcrumb/context.js +1 -1
- package/breadcrumb/index.js +1 -1
- package/button/Button.js +8 -8
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/Lunar.js +1 -1
- package/calendar/Month.js +1 -1
- package/calendar/WeekList.js +1 -1
- package/calendar/Year.js +1 -1
- package/calendar/header/Panel.js +1 -1
- package/calendar/header/index.js +2 -2
- package/calendar/hook/useCellClassName.js +1 -1
- package/calendar/index.js +1 -1
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/index.js +1 -1
- package/carousel/Arrow.js +1 -1
- package/carousel/Indicator.js +1 -1
- package/carousel/index.js +1 -1
- package/cascader/Cascader.js +1 -1
- package/cascader/base/node.js +1 -1
- package/cascader/base/store.js +1 -1
- package/cascader/hook/useRefCurrent.js +1 -1
- package/cascader/index.js +1 -1
- package/cascader/panel/List.js +1 -1
- package/cascader/panel/Option.js +1 -1
- package/cascader/panel/Search.js +1 -1
- package/cascader/utils.js +1 -1
- package/checkbox/Checkbox.js +1 -1
- package/checkbox/Group.js +1 -1
- package/checkbox/GroupBlock.js +1 -1
- package/checkbox/context.js +1 -1
- package/checkbox/index.js +1 -1
- package/checkbox/useCheckbox.js +1 -1
- package/collapse/Collapse.js +1 -1
- package/collapse/Item.js +2 -2
- package/collapse/context.js +1 -1
- package/collapse/index.js +1 -1
- 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 +57 -55
- package/color-picker/colors.js +1 -1
- package/color-picker/hooks/useColorPicker.js +48 -48
- package/color-picker/hooks/useControlBlock.js +1 -1
- package/color-picker/index.js +124 -120
- package/color-picker/interface.js +1 -1
- package/color-picker/utils.js +33 -33
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +15 -13
- package/config-provider/context.js +9 -8
- package/config-provider/index.js +1 -1
- package/config-provider/initUI.js +18 -0
- package/config-provider/useConfigProvider.js +33 -28
- package/constant/index.js +1 -1
- package/copy/index.js +1 -1
- package/countdown/index.js +1 -1
- package/countdown/utils.js +1 -1
- package/date-picker/DatePickerRange.js +1 -1
- package/date-picker/Picker.js +1 -1
- package/date-picker/context.js +1 -1
- package/date-picker/hook/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/utils.js +1 -1
- package/descriptions/index.js +3 -3
- package/details/index.js +1 -1
- package/development/index.js +1 -1
- package/divider/index.js +1 -1
- package/draggable/Item.js +1 -1
- package/draggable/index.js +1 -1
- package/draw/Draw.js +47 -0
- package/draw/constant.js +1 -0
- package/draw/index.js +6 -0
- package/drawer/Drawer.js +204 -198
- package/drawer/index.js +1 -1
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +1 -1
- package/empty/index.js +1 -1
- package/flex/index.js +1 -1
- package/form/Control.js +1 -1
- package/form/Form.js +1 -1
- package/form/FormItem.js +1 -1
- package/form/FormItemTip.js +1 -1
- package/form/FormLabel.js +1 -1
- package/form/FormList.js +1 -1
- package/form/FormProvider.js +1 -1
- package/form/context.js +9 -8
- package/form/hook/useForm.js +1 -1
- package/form/hook/useFormContext.js +1 -1
- package/form/hook/useFormState.js +1 -1
- package/form/hook/useWatch.js +1 -1
- 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/utils.js +1 -1
- package/global-provider/context.js +6 -0
- package/global-provider/index.js +20 -0
- package/grid/Grid.js +2 -2
- package/grid/Item.js +2 -2
- package/grid/context.js +1 -1
- package/grid/index.js +1 -1
- package/grid/utils.js +1 -1
- package/hooks/index.js +21 -21
- package/hooks/use-breakpoint/index.js +2 -2
- package/hooks/use-computed-state/index.js +1 -1
- package/hooks/use-create/index.js +1 -1
- package/hooks/use-creation/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-in-view/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-merge-props/index.js +1 -1
- package/hooks/use-merge-value/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 +2 -2
- 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-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 +1 -1
- package/hooks/use-watermark/utils.js +1 -1
- package/hooks/use-window-size/index.js +1 -1
- package/hooks/useBreakpoint.js +1 -1
- package/hooks/useComputedState.js +1 -1
- package/hooks/useCreate.js +1 -1
- package/hooks/useCreation.js +1 -1
- package/hooks/useEvent.js +1 -1
- package/hooks/useEventListener.js +1 -1
- package/hooks/useForceUpdate.js +1 -1
- package/hooks/useFullscreen.js +1 -1
- package/hooks/useId.js +1 -1
- package/hooks/useInView.js +1 -1
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useIntersectionObservers.js +1 -1
- package/hooks/useInterval.js +1 -1
- package/hooks/useIsFirstRender.js +1 -1
- package/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/hooks/useKeyboardEvent.js +1 -1
- package/hooks/useLatest.js +1 -1
- package/hooks/useListenWindowResize.js +1 -1
- package/hooks/useMedia.js +1 -1
- package/hooks/useMergeProps.js +1 -1
- package/hooks/useMergeValue.js +1 -1
- package/hooks/useMove.js +1 -1
- package/hooks/useMutationObservers.js +1 -1
- package/hooks/useOnlineStatus.js +1 -1
- package/hooks/useOverflowHidden.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/usePersistCallback.js +1 -1
- package/hooks/usePrefersColorSchemeDark.js +1 -1
- package/hooks/usePrevious.js +1 -1
- package/hooks/useRefs.js +1 -1
- package/hooks/useResizeObserver.js +1 -1
- package/hooks/useResizeObservers.js +1 -1
- package/hooks/useResponsiveState.js +2 -2
- package/hooks/useSetState.js +1 -1
- package/hooks/useStateCallback.js +1 -1
- package/hooks/useStateWithPromise.js +1 -1
- package/hooks/useUnmountOnExit.js +1 -1
- package/hooks/useUpdateEffect.js +1 -1
- package/hooks/useUpdateLayoutEffect.js +1 -1
- package/hooks/useVerificationCode.js +2 -2
- package/hooks/useWatch.js +1 -1
- package/hooks/useWatermark.js +3 -3
- package/hooks/useWindowSize.js +1 -1
- package/icon/Icon.js +1 -1
- package/icon/addIconFromCdn.js +1 -1
- package/icon/index.js +1 -1
- package/icon-hover/index.js +1 -1
- package/icons/file/index.js +1 -1
- package/icons/file.js +1 -1
- package/icons.js +1 -1
- package/image/Image.js +1 -1
- package/image/ImageFooter.js +1 -1
- package/image/ImagePreview.js +1 -1
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/ImagePreviewToolbar.js +1 -1
- package/image/TriggerForToolbar.js +1 -1
- package/image/context.js +1 -1
- package/image/index.js +1 -1
- package/image/utils/getFixTranslate.js +1 -1
- package/image/utils/getScale.js +1 -1
- package/image/utils/hook/useImageStatus.js +1 -1
- package/image/utils/hook/useShowFooter.js +1 -1
- package/index.js +723 -715
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +1 -1
- package/input/InputElement.js +65 -61
- package/input/Number.js +1 -1
- package/input/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Tag.js +1 -1
- package/input/Textarea.js +113 -111
- package/input/autoSizeTextareaHeight.js +1 -1
- package/input/index.js +1 -1
- package/input/useComposition.js +1 -1
- package/input/utils.js +1 -1
- package/input-number/decimal.js +1 -1
- package/input-number/index.js +1 -1
- package/input-number/useSelectionRange.js +1 -1
- package/input-number/utils.js +1 -1
- package/input-tag/InputTag.js +39 -37
- package/input-tag/index.js +1 -1
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Sider.js +54 -54
- package/layout/context.js +1 -1
- package/layout/index.js +1 -1
- package/link/index.js +1 -1
- package/liquid-fill/index.js +1 -1
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +1 -1
- package/loading/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/index.js +1 -1
- package/mask/Mask.js +65 -50
- package/mask/index.js +1 -1
- package/masonry/Masonry.js +2 -2
- package/masonry/MasonryItem.js +1 -1
- 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/mentions/index.js +1 -1
- package/mentions/utils.js +1 -1
- package/menu/Indent.js +1 -1
- package/menu/Item.js +34 -34
- package/menu/ItemGroup.js +1 -1
- package/menu/Menu.js +66 -61
- package/menu/OverflowWrap.js +1 -1
- package/menu/context.js +1 -1
- package/menu/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.js +1 -1
- package/menu/utils.js +1 -1
- package/message/Message.js +36 -36
- package/message/index.js +1 -1
- package/message/useMessage.js +2 -2
- package/modal/Confirm.js +66 -61
- package/modal/Modal.js +227 -221
- package/modal/config.js +1 -1
- package/modal/index.js +1 -1
- package/modal/use-modal/Hook.js +33 -31
- package/modal/use-modal/index.js +52 -47
- package/notice/Notice.js +53 -52
- package/notice/index.js +1 -1
- package/notification/Notification.js +1 -1
- package/notification/index.js +1 -1
- package/notification/useNotification.js +2 -2
- package/notification/withNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +1 -1
- package/overflow-ellipsis/index.js +1 -1
- package/package.json +1 -1
- package/page-header/index.js +1 -1
- package/pagination/PageItem.js +1 -1
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +2 -2
- package/pagination/Pagination.js +1 -1
- package/pagination/index.js +1 -1
- package/pagination/interface.js +1 -1
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/picker/index.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popover/Popover.js +1 -1
- package/popover/index.js +1 -1
- package/portal/Portal.js +1 -1
- package/portal/index.js +1 -1
- package/progress/CircleProgress.js +1 -1
- package/progress/LineProgess.js +1 -1
- package/progress/StepProgress.js +1 -1
- package/progress/index.js +1 -1
- package/progress2/index.js +1 -1
- package/qr-code/QRCode.js +1 -1
- package/qr-code/index.js +1 -1
- package/qr-code/src/index.js +1 -1
- package/qr-code/src/qrcodegen.js +1 -1
- package/radio/Group.js +99 -96
- package/radio/GroupBlock.js +1 -1
- package/radio/Radio.js +1 -1
- package/radio/index.js +1 -1
- package/rate/index.js +1 -1
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +1 -1
- package/resize-box/SplitGroup.js +1 -1
- package/resize-box/index.js +1 -1
- package/result/403.js +1 -1
- package/result/404.js +1 -1
- package/result/500.js +1 -1
- package/result/index.js +1 -1
- package/rich-text/RichText.js +1 -1
- package/rich-text/Toolbar.js +1 -1
- package/rich-text/constant.js +1 -1
- package/rich-text/index.js +1 -1
- package/rich-text/lib/blots/block.js +1 -1
- package/rich-text/lib/blots/break.js +1 -1
- package/rich-text/lib/blots/container.js +1 -1
- package/rich-text/lib/blots/cursor.js +1 -1
- package/rich-text/lib/blots/embed.js +1 -1
- package/rich-text/lib/blots/inline.js +1 -1
- package/rich-text/lib/blots/scroll.js +1 -1
- package/rich-text/lib/blots/text.js +1 -1
- package/rich-text/lib/core/composition.js +1 -1
- package/rich-text/lib/core/editor.js +1 -1
- package/rich-text/lib/core/emitter.js +13 -12
- package/rich-text/lib/core/logger.js +1 -1
- package/rich-text/lib/core/module.js +1 -1
- package/rich-text/lib/core/rich.js +1 -1
- package/rich-text/lib/core/selection.js +1 -1
- package/rich-text/lib/core/theme.js +1 -1
- package/rich-text/lib/core/utils/createRegistryWithFormats.js +1 -1
- package/rich-text/lib/core/utils/scrollRectIntoView.js +1 -1
- package/rich-text/lib/delta/AttributeMap.js +1 -1
- package/rich-text/lib/delta/Op.js +1 -1
- package/rich-text/lib/delta/OpIterator.js +1 -1
- package/rich-text/lib/delta/index.js +1 -1
- package/rich-text/lib/diff/index.js +1 -1
- package/rich-text/lib/formats/align.js +1 -1
- package/rich-text/lib/formats/background.js +1 -1
- package/rich-text/lib/formats/blockquote.js +1 -1
- package/rich-text/lib/formats/bold.js +1 -1
- package/rich-text/lib/formats/code.js +1 -1
- package/rich-text/lib/formats/color.js +1 -1
- package/rich-text/lib/formats/direction.js +1 -1
- package/rich-text/lib/formats/emoji.js +1 -1
- package/rich-text/lib/formats/font.js +1 -1
- package/rich-text/lib/formats/formula.js +1 -1
- package/rich-text/lib/formats/header.js +1 -1
- package/rich-text/lib/formats/hr.js +1 -1
- package/rich-text/lib/formats/image.js +1 -1
- package/rich-text/lib/formats/indent.js +1 -1
- package/rich-text/lib/formats/italic.js +1 -1
- package/rich-text/lib/formats/lineHeight.js +1 -1
- package/rich-text/lib/formats/link.js +1 -1
- package/rich-text/lib/formats/list.js +1 -1
- package/rich-text/lib/formats/script.js +1 -1
- package/rich-text/lib/formats/size.js +1 -1
- package/rich-text/lib/formats/strike.js +1 -1
- package/rich-text/lib/formats/table.js +1 -1
- package/rich-text/lib/formats/underline.js +1 -1
- package/rich-text/lib/formats/video.js +1 -1
- package/rich-text/lib/index.js +1 -1
- package/rich-text/lib/modules/clipboard.js +1 -1
- package/rich-text/lib/modules/history.js +1 -1
- package/rich-text/lib/modules/image-resize/index.js +1 -1
- package/rich-text/lib/modules/image-resize/modules/Base.js +1 -1
- package/rich-text/lib/modules/image-resize/modules/DisplaySize.js +1 -1
- package/rich-text/lib/modules/image-resize/modules/Resize.js +1 -1
- package/rich-text/lib/modules/image-resize/options.js +1 -1
- package/rich-text/lib/modules/input.js +1 -1
- package/rich-text/lib/modules/keyboard.js +1 -1
- package/rich-text/lib/modules/normalizeExternalHTML/index.js +1 -1
- package/rich-text/lib/modules/normalizeExternalHTML/normalizers/googleDocs.js +1 -1
- package/rich-text/lib/modules/normalizeExternalHTML/normalizers/msWord.js +1 -1
- package/rich-text/lib/modules/table.js +1 -1
- package/rich-text/lib/modules/toolbar.js +1 -1
- package/rich-text/lib/modules/uiNode.js +1 -1
- package/rich-text/lib/modules/uploader.js +1 -1
- package/rich-text/lib/parchment/attributor/attributor.js +1 -1
- package/rich-text/lib/parchment/attributor/class.js +1 -1
- package/rich-text/lib/parchment/attributor/store.js +1 -1
- package/rich-text/lib/parchment/attributor/style.js +1 -1
- package/rich-text/lib/parchment/blot/abstract/container.js +1 -1
- package/rich-text/lib/parchment/blot/abstract/leaf.js +1 -1
- package/rich-text/lib/parchment/blot/abstract/parent.js +1 -1
- package/rich-text/lib/parchment/blot/abstract/shadow.js +1 -1
- package/rich-text/lib/parchment/blot/block.js +1 -1
- package/rich-text/lib/parchment/blot/embed.js +1 -1
- package/rich-text/lib/parchment/blot/inline.js +1 -1
- package/rich-text/lib/parchment/blot/scroll.js +1 -1
- package/rich-text/lib/parchment/blot/text.js +1 -1
- package/rich-text/lib/parchment/collection/linked-list.js +1 -1
- package/rich-text/lib/parchment/error.js +1 -1
- package/rich-text/lib/parchment/index.js +1 -1
- package/rich-text/lib/parchment/registry.js +1 -1
- package/rich-text/lib/parchment/scope.js +1 -1
- package/row-col/Col-.js +1 -1
- package/row-col/Col.js +1 -1
- package/row-col/Row.js +2 -2
- package/row-col/context.js +1 -1
- package/row-col/index.js +1 -1
- package/segmented/index.js +1 -1
- package/select/Option.js +1 -1
- package/select/OptionGroup.js +1 -1
- package/select/Select.js +1 -1
- package/select/index.js +1 -1
- package/select/utils.js +1 -1
- package/select-view/Core.js +1 -1
- package/select-view/index.js +1 -1
- package/skeleton/Image.js +1 -1
- package/skeleton/Text.js +1 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +1 -1
- package/slider/Dot.js +1 -1
- package/slider/Input.js +1 -1
- package/slider/Mark.js +1 -1
- package/slider/Tick.js +1 -1
- package/slider/hook/useInterval.js +1 -1
- package/slider/hook/useLegalValue.js +1 -1
- package/slider/index.js +2 -2
- package/slider/utils.js +1 -1
- package/space/index.js +1 -1
- package/speech-synthesis/index.js +1 -1
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +1 -1
- package/splitter/Panel.js +1 -1
- package/splitter/SplitBar.js +1 -1
- package/splitter/Splitter.js +1 -1
- 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/statistic/index.js +1 -1
- package/statistic/interface.js +1 -1
- package/steps/Step.js +2 -2
- package/steps/index.js +1 -1
- package/style/variables.css +3 -3
- package/style.css +1 -1
- package/suspense-fallback-test/index.js +1 -1
- package/switch/index.js +1 -1
- package/table/ColGroup.js +1 -1
- package/table/Table.js +1 -1
- package/table/constant.js +1 -1
- package/table/context.js +1 -1
- package/table/hook/useColumns.js +1 -1
- package/table/hook/useComponent.js +1 -1
- package/table/hook/useExpand.js +1 -1
- package/table/hook/useRowSelection.js +1 -1
- package/table/hook/useSorter.js +1 -1
- package/table/hook/useStickyClassNames.js +1 -1
- package/table/hook/useStickyOffsets.js +1 -1
- package/table/hook/useThResizable.js +1 -1
- package/table/index.js +1 -1
- package/table/summary/Cell.js +1 -1
- package/table/summary/Row.js +1 -1
- package/table/summary/context.js +1 -1
- package/table/summary/index.js +1 -1
- package/table/tbody/Td.js +119 -121
- 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 +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 +1 -1
- package/tabs/Tabs.js +1 -1
- package/tabs/context.js +1 -1
- package/tabs/hook/useDomSize.js +1 -1
- package/tabs/hook/useHeaderScroll.js +1 -1
- package/tabs/index.js +1 -1
- package/tabs/tab-header/DropdownIcon.js +1 -1
- package/tabs/tab-header/TabInk.js +1 -1
- package/tabs/tab-header/TabNavIcon.js +1 -1
- package/tabs/tab-header/TabTitle.js +1 -1
- package/tabs/tab-header/index.js +1 -1
- package/tabs/utils.js +1 -1
- package/tag/index.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/context.js +1 -1
- package/time-picker/index.js +1 -1
- package/time-picker/utils.js +1 -1
- package/timeline/Item.js +1 -1
- package/timeline/Timeline.js +1 -1
- package/timeline/index.js +1 -1
- package/timer/index.js +1 -1
- package/tooltip/Tooltip.js +74 -78
- package/tooltip/index.js +1 -1
- package/tour/index.js +1 -1
- package/transfer/Item.js +1 -1
- package/transfer/List.js +4 -4
- package/transfer/index.js +1 -1
- package/tree/Animation.js +1 -1
- package/tree/Node.js +1 -1
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +1 -1
- package/tree/context.js +1 -1
- package/tree/index.js +1 -1
- package/tree/utils.js +1 -1
- package/tree-select/List.js +1 -1
- package/tree-select/Select.js +1 -1
- package/tree-select/hook/useKeyCache.js +1 -1
- package/tree-select/hook/useStateValue.js +1 -1
- package/tree-select/hook/useTreeData.js +1 -1
- package/tree-select/index.js +1 -1
- package/tree-select/interface.js +1 -1
- package/tree-select/utils.js +1 -1
- package/trigger/getPopupStyle.js +84 -83
- package/trigger/index.js +287 -286
- package/types/button/interface.d.ts +1 -1
- package/types/color-picker/Panel.d.ts +2 -0
- package/types/config-provider/context.d.ts +1 -0
- package/types/config-provider/initUI.d.ts +3 -0
- package/types/config-provider/interface.d.ts +6 -0
- package/types/draw/Draw.d.ts +6 -0
- package/types/draw/constant.d.ts +0 -0
- package/types/draw/index.d.ts +4 -0
- package/types/draw/interface.d.ts +8 -0
- package/types/drawer/interface.d.ts +5 -4
- package/types/global-provider/context.d.ts +3 -0
- package/types/global-provider/index.d.ts +11 -0
- package/types/global-provider/interface.d.ts +4 -0
- package/types/index.d.ts +2 -0
- package/types/interface.d.ts +1 -1
- package/types/mask/interface.d.ts +1 -0
- package/types/menu/context.d.ts +1 -1
- package/types/menu/interface.d.ts +1 -1
- package/types/modal/Confirm.d.ts +1 -1
- package/types/modal/interface.d.ts +11 -13
- package/types/modal/use-modal/Hook.d.ts +1 -1
- package/types/radio/interface.d.ts +2 -2
- package/types/rich-text/lib/core/emitter.d.ts +1 -1
- package/types/table/interface.d.ts +3 -4
- package/types/trigger/interface.d.ts +7 -0
- package/types/utils/emitter.d.ts +7 -1
- package/types/utils/names.d.ts +6 -0
- package/types/utils/setDarkTheme.d.ts +2 -2
- package/types/utils/setTheme.d.ts +1 -1
- package/typography/Base.js +1 -1
- package/typography/EditContent.js +1 -1
- package/typography/Ellipsis.js +1 -1
- package/typography/Operations.js +1 -1
- package/typography/Paragraph.js +1 -1
- package/typography/Text.js +1 -1
- package/typography/Title.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/index.js +1 -1
- package/typography/useCssEllipsis.js +1 -1
- package/typography/useEllipsis.js +1 -1
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +126 -116
- package/upload/Uploader.js +1 -1
- package/upload/constant.js +1 -1
- 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.js +1 -1
- package/upload/list/utils.js +1 -1
- package/upload/request.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/constant.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/copy.js +1 -1
- package/utils/date.js +1 -1
- package/utils/dayjs.js +1 -1
- package/utils/dom.js +1 -1
- package/utils/emitter.js +11 -4
- 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/getStringLength.js +1 -1
- package/utils/include.js +1 -1
- package/utils/index.js +264 -261
- 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.js +7 -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 +6 -6
- 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/throttleByRaf.js +1 -1
- package/utils/throttleByRaf2.js +1 -1
- package/utils/toArray.js +1 -1
- package/utils/tree.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 +2 -2
- package/verification-code/index.js +4 -4
- package/version/index.js +2 -2
- package/virtual-list/Filler.js +1 -1
- package/virtual-list/VirtualList.js +5 -5
- package/virtual-list/constant.js +1 -1
- package/virtual-list/hook/useCacheChildrenNodes.js +1 -1
- package/virtual-list/hook/useComputeVirtualItemHeight.js +1 -1
- package/virtual-list/index.js +1 -1
- package/virtual-list/utils/algorithm.js +1 -1
- package/virtual-list/utils/item.js +1 -1
- package/watermark/Watermark.js +2 -2
- package/watermark/index.js +2 -2
- package/types/masonry/demo/basic.d.ts +0 -3
- package/types/masonry/demo/dynamic.d.ts +0 -3
- package/types/masonry/demo/image.d.ts +0 -2
- package/types/masonry/demo/responsive.d.ts +0 -3
package/trigger/index.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
/* 2026-
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { CSSTransition as
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { createPortal as
|
|
1
|
+
/* 2026-02-26 14:47:16 */
|
|
2
|
+
import { jsx as P, jsxs as De } from "react/jsx-runtime";
|
|
3
|
+
import { CSSTransition as ao } from "@unicom-cloud/ui-common/transition-group";
|
|
4
|
+
import { forwardRef as po, useContext as fo, useRef as L, useState as mo, Children as xe, useCallback as Se, cloneElement as Me, useImperativeHandle as go, useLayoutEffect as yo, useEffect as v, Fragment as Co } from "react";
|
|
5
|
+
import { createPortal as To } from "react-dom";
|
|
6
6
|
import "../config-provider/ConfigProvider.js";
|
|
7
7
|
import G from "@unicom-cloud/ui-common/hooks/use-resize-observers";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { on as J, off as Z, getScrollElements as Eo, contains as
|
|
11
|
-
import
|
|
12
|
-
import { isExist as
|
|
13
|
-
import { Esc as
|
|
14
|
-
import
|
|
15
|
-
import { pickDataAttributes as
|
|
16
|
-
import { supportRef as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
function
|
|
21
|
-
if (!
|
|
8
|
+
import Po from "@unicom-cloud/ui-common/utils/callbackOriginRef";
|
|
9
|
+
import F from "@unicom-cloud/ui-common/utils/className";
|
|
10
|
+
import { on as J, off as Z, getScrollElements as Eo, contains as ve } from "@unicom-cloud/ui-common/utils/dom";
|
|
11
|
+
import ho from "@unicom-cloud/ui-common/utils/findRootElement";
|
|
12
|
+
import { isBoolean as wo, isExist as Do, isPlainObject as ee, isArray as be, isString as xo, isFunction as b, isScrollElement as So } from "@unicom-cloud/ui-common/utils/is";
|
|
13
|
+
import { Esc as _e } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
14
|
+
import Mo from "@unicom-cloud/ui-common/utils/mergeProps";
|
|
15
|
+
import { pickDataAttributes as vo } from "@unicom-cloud/ui-common/utils/pick";
|
|
16
|
+
import { supportRef as bo, getReactElementRef as _o } from "@unicom-cloud/ui-common/utils/ref";
|
|
17
|
+
import $e from "@unicom-cloud/ui-common/utils/throttleByRaf";
|
|
18
|
+
import $o, { getBoundingClientRect as ko } from "./getPopupStyle.js";
|
|
19
|
+
import Oo from "../config-provider/context.js";
|
|
20
|
+
function No(f, _) {
|
|
21
|
+
if (!f)
|
|
22
22
|
return {};
|
|
23
|
-
const { width: E, height:
|
|
23
|
+
const { width: E, height: d, left: T, right: z } = ko(f, _);
|
|
24
24
|
return {
|
|
25
25
|
width: E,
|
|
26
|
-
height:
|
|
27
|
-
left:
|
|
28
|
-
right:
|
|
26
|
+
height: d,
|
|
27
|
+
left: T,
|
|
28
|
+
right: z
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
const
|
|
31
|
+
const tt = [
|
|
32
32
|
"onClick",
|
|
33
33
|
"onMouseEnter",
|
|
34
34
|
"onMouseLeave",
|
|
@@ -38,23 +38,23 @@ const et = [
|
|
|
38
38
|
"onContextMenu",
|
|
39
39
|
"onKeyDown"
|
|
40
40
|
];
|
|
41
|
-
function
|
|
42
|
-
const E = {},
|
|
43
|
-
return
|
|
44
|
-
|
|
45
|
-
}), { picked: E, omitted:
|
|
41
|
+
function Ho(f, _) {
|
|
42
|
+
const E = {}, d = { ...f };
|
|
43
|
+
return _.forEach((T) => {
|
|
44
|
+
f && T in f && (E[T] = f[T], delete d[T]);
|
|
45
|
+
}), { picked: E, omitted: d };
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
const E =
|
|
49
|
-
prefixCls:
|
|
50
|
-
getPrefixCls:
|
|
51
|
-
zIndex:
|
|
52
|
-
rtl:
|
|
53
|
-
componentConfig:
|
|
54
|
-
} = E,
|
|
47
|
+
function Lo(f, _) {
|
|
48
|
+
const E = fo(Oo), {
|
|
49
|
+
prefixCls: d,
|
|
50
|
+
getPrefixCls: T,
|
|
51
|
+
zIndex: z,
|
|
52
|
+
rtl: ke,
|
|
53
|
+
componentConfig: A
|
|
54
|
+
} = E, Oe = {
|
|
55
55
|
blurToHide: !0,
|
|
56
56
|
// clickToClose: true,
|
|
57
|
-
classNames: `${
|
|
57
|
+
classNames: `${d}-fade-in`,
|
|
58
58
|
trigger: "hover",
|
|
59
59
|
position: "bottom",
|
|
60
60
|
duration: 200,
|
|
@@ -71,25 +71,29 @@ function No(d, b) {
|
|
|
71
71
|
mouseLeaveDelay: 100,
|
|
72
72
|
autoFitPosition: !0,
|
|
73
73
|
updateOnScroll: !0
|
|
74
|
-
}, l =
|
|
75
|
-
children:
|
|
74
|
+
}, l = s(f), oe = l.getPopupContainer || E.getPopupContainer, {
|
|
75
|
+
children: Ne,
|
|
76
76
|
style: te,
|
|
77
|
-
className:
|
|
78
|
-
arrowProps:
|
|
79
|
-
disabled:
|
|
77
|
+
className: He,
|
|
78
|
+
arrowProps: Le,
|
|
79
|
+
disabled: x,
|
|
80
80
|
popup: Ie,
|
|
81
|
-
classNames:
|
|
82
|
-
duration:
|
|
81
|
+
classNames: Y,
|
|
82
|
+
duration: Be,
|
|
83
83
|
unmountOnExit: ne,
|
|
84
|
-
alignPoint:
|
|
84
|
+
alignPoint: Ve,
|
|
85
85
|
autoAlignPopupWidth: Re,
|
|
86
86
|
position: Fe,
|
|
87
|
-
childrenPrefix:
|
|
87
|
+
childrenPrefix: h,
|
|
88
88
|
showArrow: ze,
|
|
89
89
|
popupStyle: re,
|
|
90
90
|
__onExit: Ae,
|
|
91
|
-
__onExited: Ye
|
|
92
|
-
|
|
91
|
+
__onExited: Ye,
|
|
92
|
+
arrow: Ke
|
|
93
|
+
} = l;
|
|
94
|
+
let m = Ke || ze || Le;
|
|
95
|
+
wo(m) && (m = m ? {} : null);
|
|
96
|
+
const ie = "popupVisible" in l, Qe = "defaultPopupVisible" in l, se = Do(Ne), a = L(null), $ = L(null), le = L(null), ue = L(null), t = L({
|
|
93
97
|
rootElement: null,
|
|
94
98
|
triggerDestoried: !1,
|
|
95
99
|
// 标志 popup 是否被销毁
|
|
@@ -113,118 +117,115 @@ function No(d, b) {
|
|
|
113
117
|
children: null
|
|
114
118
|
});
|
|
115
119
|
t.current.rootElement = ce();
|
|
116
|
-
const [
|
|
120
|
+
const [K, k] = mo({ popupVisible: !1, popupStyle: {} }), Q = l.popupVisible, We = K.popupVisible, i = Q ?? We, u = {}, W = {
|
|
117
121
|
onMouseDown() {
|
|
118
122
|
t.current.hasPopupMouseDown = !0, setTimeout(() => {
|
|
119
123
|
t.current.hasPopupMouseDown = !1;
|
|
120
124
|
}, 0);
|
|
121
125
|
}
|
|
122
126
|
};
|
|
123
|
-
|
|
124
|
-
const
|
|
125
|
-
|
|
127
|
+
H() && !x ? (u.onMouseEnter = Ze, u.onMouseLeave = Te, j() && (u.onClick = Pe), Ve && (u.onMouseMove = eo), je() || (W.onMouseEnter = oo, W.onMouseLeave = to)) : (u.onMouseEnter = D("onMouseEnter"), u.onMouseLeave = D("onMouseLeave")), pe() && !x ? (u.onContextMenu = no, u.onClick = Pe) : u.onContextMenu = D("onContextMenu"), ae() && !x ? u.onClick = ro : u.onClick = u.onClick || D("onClick"), U() && !x ? (u.onFocus = io, fe() && (u.onBlur = so)) : (u.onFocus = D("onFocus"), u.onBlur = D("onBlur")), x ? u.onKeyDown = D("onKeyDown") : u.onKeyDown = Ge;
|
|
128
|
+
const O = B(), N = xe.only(Ie?.());
|
|
129
|
+
O.props.className && (u.className = O.props.className), h && i && (u.className = F(
|
|
126
130
|
u.className,
|
|
127
|
-
`${
|
|
128
|
-
)),
|
|
129
|
-
const
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
`${
|
|
134
|
-
{ [`${
|
|
135
|
-
|
|
131
|
+
`${h}-open`
|
|
132
|
+
)), U() && (u.tabIndex = x ? -1 : 0);
|
|
133
|
+
const S = T?.("trigger"), Xe = F(
|
|
134
|
+
A?.Trigger?.className,
|
|
135
|
+
S,
|
|
136
|
+
h,
|
|
137
|
+
`${S}-position-${Fe}`,
|
|
138
|
+
{ [`${S}-rtl`]: ke },
|
|
139
|
+
He
|
|
136
140
|
);
|
|
137
|
-
function
|
|
138
|
-
return
|
|
139
|
-
ee(e) ? e :
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
function s(e) {
|
|
142
|
+
return Mo(
|
|
143
|
+
ee(e) ? e : f,
|
|
144
|
+
Oe,
|
|
145
|
+
A?.Trigger ?? {},
|
|
146
|
+
be(e) ? e : void 0
|
|
143
147
|
);
|
|
144
148
|
}
|
|
145
149
|
function ce() {
|
|
146
150
|
const e = l.getRootElement?.() || t.current.children;
|
|
147
|
-
return
|
|
151
|
+
return ho(e);
|
|
148
152
|
}
|
|
149
|
-
const
|
|
150
|
-
|
|
151
|
-
|
|
153
|
+
const X = Se(
|
|
154
|
+
$e(() => {
|
|
155
|
+
M();
|
|
152
156
|
}),
|
|
153
|
-
[
|
|
157
|
+
[i]
|
|
154
158
|
);
|
|
155
159
|
function ae() {
|
|
156
|
-
const { trigger: e } =
|
|
160
|
+
const { trigger: e } = s(["trigger"]);
|
|
157
161
|
return [].concat(e).includes("click");
|
|
158
162
|
}
|
|
159
|
-
function
|
|
160
|
-
const { trigger: e } =
|
|
163
|
+
function U() {
|
|
164
|
+
const { trigger: e } = s(["trigger"]);
|
|
161
165
|
return [].concat(e).includes("focus");
|
|
162
166
|
}
|
|
163
|
-
function
|
|
164
|
-
const { trigger: e } =
|
|
167
|
+
function H() {
|
|
168
|
+
const { trigger: e } = s(["trigger"]);
|
|
165
169
|
return [].concat(e).includes("hover");
|
|
166
170
|
}
|
|
167
171
|
function pe() {
|
|
168
|
-
const { trigger: e } =
|
|
172
|
+
const { trigger: e } = s(["trigger"]);
|
|
169
173
|
return [].concat(e).includes("contextMenu");
|
|
170
174
|
}
|
|
171
|
-
function Xe() {
|
|
172
|
-
return N() && i(["mouseLeaveToClose"]).mouseLeaveToClose;
|
|
173
|
-
}
|
|
174
175
|
function Ue() {
|
|
175
|
-
return
|
|
176
|
+
return H() && s(["mouseLeaveToClose"]).mouseLeaveToClose;
|
|
176
177
|
}
|
|
177
|
-
function
|
|
178
|
+
function je() {
|
|
179
|
+
return H() && !s(["popupHoverStay"]).popupHoverStay;
|
|
180
|
+
}
|
|
181
|
+
function j() {
|
|
178
182
|
if (ae() || pe()) {
|
|
179
|
-
const { clickToClose: e = !0 } =
|
|
183
|
+
const { clickToClose: e = !0 } = s(["clickToClose"]);
|
|
180
184
|
return e;
|
|
181
185
|
}
|
|
182
|
-
return
|
|
186
|
+
return H() && l.clickToClose;
|
|
183
187
|
}
|
|
184
188
|
function fe() {
|
|
185
|
-
return
|
|
189
|
+
return U() && s(["blurToHide"]).blurToHide;
|
|
186
190
|
}
|
|
187
|
-
function
|
|
188
|
-
t.current.updatePositionTimeoutID && (t.current.updatePositionTimeoutID.cancel ? t.current.updatePositionTimeoutID.cancel() : (window.clearTimeout(t.current.updatePositionTimeoutID), t.current.updatePositionTimeoutID = null)),
|
|
191
|
+
function qe() {
|
|
192
|
+
t.current.updatePositionTimeoutID && (t.current.updatePositionTimeoutID.cancel ? t.current.updatePositionTimeoutID.cancel() : (window.clearTimeout(t.current.updatePositionTimeoutID), t.current.updatePositionTimeoutID = null)), w();
|
|
189
193
|
}
|
|
190
194
|
function de(e) {
|
|
191
|
-
const o =
|
|
195
|
+
const o = a.current;
|
|
192
196
|
if (!o)
|
|
193
197
|
return {};
|
|
194
|
-
const {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
right: `0 ${c || "50%"} 0`,
|
|
211
|
-
rt: `0 ${c || "15px"} 0`,
|
|
212
|
-
rb: `0 ${c || `${o.clientHeight - 15}px`} 0`
|
|
198
|
+
const { classNames: n } = s(["classNames"]);
|
|
199
|
+
let r = !!m && t.current.arrowStyle?.top || 0, c = !!m && t.current.arrowStyle?.left || 0;
|
|
200
|
+
r = r ? `${r}px` : "", c = c ? `${c}px` : "";
|
|
201
|
+
const g = {
|
|
202
|
+
top: `${c || "50%"} 100% 0`,
|
|
203
|
+
tl: `${c || "15px"} 100% 0`,
|
|
204
|
+
tr: `${c || `${o.clientWidth - 15}px`} 100% 0`,
|
|
205
|
+
bottom: `${c || "50%"} 0 0`,
|
|
206
|
+
bl: `${c || "15px"} 0 0`,
|
|
207
|
+
br: `${c || `${o.clientWidth - 15}px`} 0 0`,
|
|
208
|
+
left: `100% ${r || "50%"} 0`,
|
|
209
|
+
lt: `100% ${r || "15px"} 0`,
|
|
210
|
+
lb: `100% ${r || `${o.clientHeight - 15}px`} 0`,
|
|
211
|
+
right: `0 ${r || "50%"} 0`,
|
|
212
|
+
rt: `0 ${r || "15px"} 0`,
|
|
213
|
+
rb: `0 ${r || `${o.clientHeight - 15}px`} 0`
|
|
213
214
|
};
|
|
214
|
-
if (
|
|
215
|
+
if (n && n.includes("zoom"))
|
|
215
216
|
return {
|
|
216
|
-
transformOrigin:
|
|
217
|
+
transformOrigin: g[e]
|
|
217
218
|
};
|
|
218
|
-
if (
|
|
219
|
-
let
|
|
220
|
-
return ["top", "tl", "tr"].includes(e) && (
|
|
221
|
-
transformOrigin:
|
|
219
|
+
if (n === `${d}-slide-dynamic-origin`) {
|
|
220
|
+
let R = "0% 0%";
|
|
221
|
+
return ["top", "tl", "tr"].includes(e) && (R = "100% 100%"), {
|
|
222
|
+
transformOrigin: R
|
|
222
223
|
};
|
|
223
224
|
}
|
|
224
225
|
return {};
|
|
225
226
|
}
|
|
226
227
|
function me() {
|
|
227
|
-
if (
|
|
228
|
+
if (s(["classNames"]).classNames !== `${d}-slide-dynamic-origin`)
|
|
228
229
|
return "";
|
|
229
230
|
switch (t.current.realPosition) {
|
|
230
231
|
case "bottom":
|
|
@@ -240,131 +241,131 @@ function No(d, b) {
|
|
|
240
241
|
}
|
|
241
242
|
}
|
|
242
243
|
function ge() {
|
|
243
|
-
if (
|
|
244
|
-
const e =
|
|
244
|
+
if (!$.current) return {};
|
|
245
|
+
const e = a.current, o = t.current.rootElement;
|
|
245
246
|
if (!o?.offsetParent && !o?.getClientRects()?.length)
|
|
246
|
-
return
|
|
247
|
-
const { style: n, arrowStyle:
|
|
248
|
-
l,
|
|
247
|
+
return K.popupStyle;
|
|
248
|
+
const { style: n, arrowStyle: r, realPosition: c } = $o(
|
|
249
|
+
{ ...l, arrow: m },
|
|
249
250
|
e,
|
|
250
251
|
o,
|
|
251
|
-
|
|
252
|
+
$.current,
|
|
252
253
|
t.current.mouseLocation
|
|
253
254
|
);
|
|
254
|
-
t.current.arrowStyle =
|
|
255
|
-
const
|
|
256
|
-
return t.current.realPosition =
|
|
255
|
+
t.current.arrowStyle = r || {};
|
|
256
|
+
const g = c || l.position;
|
|
257
|
+
return t.current.realPosition = g, {
|
|
257
258
|
...n,
|
|
258
|
-
...de(
|
|
259
|
+
...de(g)
|
|
259
260
|
};
|
|
260
261
|
}
|
|
261
|
-
function
|
|
262
|
+
function y(e) {
|
|
262
263
|
const o = ge();
|
|
263
|
-
|
|
264
|
-
const
|
|
265
|
-
return
|
|
266
|
-
}),
|
|
264
|
+
k((n) => {
|
|
265
|
+
const r = { ...n };
|
|
266
|
+
return r.popupStyle = o, r;
|
|
267
|
+
}), b(e) && setTimeout(() => {
|
|
267
268
|
e();
|
|
268
269
|
}, 27);
|
|
269
270
|
}
|
|
270
|
-
const I =
|
|
271
|
-
|
|
271
|
+
const I = Se($e(y), [
|
|
272
|
+
i
|
|
272
273
|
]);
|
|
273
|
-
function
|
|
274
|
-
|
|
275
|
-
|
|
274
|
+
function M(e = 0, o) {
|
|
275
|
+
i && (e < 4 ? t.current.updatePositionTimeoutID = I(o) : t.current.updatePositionTimeoutID = window.setTimeout(() => {
|
|
276
|
+
y(o);
|
|
276
277
|
}, e));
|
|
277
278
|
}
|
|
278
|
-
function
|
|
279
|
-
const
|
|
280
|
-
e !==
|
|
281
|
-
|
|
282
|
-
const
|
|
283
|
-
return
|
|
279
|
+
function p(e, o = 0, n) {
|
|
280
|
+
const r = s(["onVisibleChange", "popupVisible"]);
|
|
281
|
+
e !== i ? ye(o, () => {
|
|
282
|
+
r.onVisibleChange?.(e), ie ? n?.() : (k((c) => {
|
|
283
|
+
const g = { ...c };
|
|
284
|
+
return g.popupVisible = !!e, g;
|
|
284
285
|
}), setTimeout(e ? () => {
|
|
285
|
-
|
|
286
|
+
y(n);
|
|
286
287
|
} : () => {
|
|
287
288
|
n?.();
|
|
288
289
|
}, 0));
|
|
289
290
|
}) : n?.();
|
|
290
291
|
}
|
|
291
292
|
function ye(e, o) {
|
|
292
|
-
e ? (
|
|
293
|
-
o(),
|
|
293
|
+
e ? (w(), t.current.delayTimeoutID = setTimeout(() => {
|
|
294
|
+
o(), w();
|
|
294
295
|
}, e)) : o();
|
|
295
296
|
}
|
|
296
|
-
function
|
|
297
|
+
function w() {
|
|
297
298
|
t.current.delayTimeoutID && (clearTimeout(t.current.delayTimeoutID), t.current.delayTimeoutID = null);
|
|
298
299
|
}
|
|
299
300
|
function Ce(e) {
|
|
300
|
-
const o =
|
|
301
|
-
let n =
|
|
302
|
-
n ||=
|
|
303
|
-
}
|
|
304
|
-
function qe(e) {
|
|
305
|
-
const o = e.key;
|
|
306
|
-
y("onKeyDown", e), o === $e.key && Ge(e);
|
|
301
|
+
const o = s(["onClickOutside", "clickOutsideToClose"]);
|
|
302
|
+
let n = ve(a.current, e.target);
|
|
303
|
+
n ||= ve(t.current.rootElement, e.target), n ||= !!t.current.hasPopupMouseDown, n || (o.onClickOutside?.(), o.clickOutsideToClose && (fe() || H() || p(!1)));
|
|
307
304
|
}
|
|
308
305
|
function Ge(e) {
|
|
309
|
-
const
|
|
310
|
-
|
|
306
|
+
const o = e.key;
|
|
307
|
+
C("onKeyDown", e), o === _e.key && Je(e);
|
|
311
308
|
}
|
|
312
309
|
function Je(e) {
|
|
313
|
-
const {
|
|
314
|
-
|
|
310
|
+
const { escToClose: o } = s(["escToClose"]);
|
|
311
|
+
o && e && e.key === _e.key && i && p(!1);
|
|
315
312
|
}
|
|
316
313
|
function Ze(e) {
|
|
317
|
-
|
|
314
|
+
const { mouseEnterDelay: o } = s(["mouseEnterDelay"]);
|
|
315
|
+
C("onMouseEnter", e), w(), p(!0, o || 0);
|
|
316
|
+
}
|
|
317
|
+
function eo(e) {
|
|
318
|
+
C("onMouseMove", e), q(e), i && I();
|
|
318
319
|
}
|
|
319
320
|
function Te(e) {
|
|
320
|
-
const { mouseLeaveDelay: o } =
|
|
321
|
-
|
|
321
|
+
const { mouseLeaveDelay: o } = s(["mouseLeaveDelay"]);
|
|
322
|
+
w(), C("onMouseLeave", e), Ue() && i && p(!1, o || 0);
|
|
322
323
|
}
|
|
323
|
-
function
|
|
324
|
-
|
|
324
|
+
function oo() {
|
|
325
|
+
w();
|
|
325
326
|
}
|
|
326
|
-
function
|
|
327
|
+
function to(e) {
|
|
327
328
|
Te(e);
|
|
328
329
|
}
|
|
329
|
-
function
|
|
330
|
-
|
|
330
|
+
function q(e) {
|
|
331
|
+
s(["alignPoint"]).alignPoint && (t.current.mouseLocation = {
|
|
331
332
|
clientX: e.clientX,
|
|
332
333
|
clientY: e.clientY
|
|
333
334
|
});
|
|
334
335
|
}
|
|
335
|
-
function to(e) {
|
|
336
|
-
e.preventDefault(), y("onContextMenu", e), j(e), r ? i(["alignPoint"]).alignPoint && I() : f(!0, 0);
|
|
337
|
-
}
|
|
338
|
-
function Ee(e) {
|
|
339
|
-
r && (t.current.mousedownToHide = !0), y("onClick", e), U() && r && f(!r, 0);
|
|
340
|
-
}
|
|
341
336
|
function no(e) {
|
|
342
|
-
|
|
337
|
+
e.preventDefault(), C("onContextMenu", e), q(e), i ? s(["alignPoint"]).alignPoint && I() : p(!0, 0);
|
|
338
|
+
}
|
|
339
|
+
function Pe(e) {
|
|
340
|
+
i && (t.current.mousedownToHide = !0), C("onClick", e), j() && i && p(!i, 0);
|
|
343
341
|
}
|
|
344
342
|
function ro(e) {
|
|
345
|
-
|
|
346
|
-
y("onFocus", e);
|
|
347
|
-
};
|
|
348
|
-
h(), t.current.mousedownToHide || (r ? n?.() : f(!0, o || 0, n)), t.current.mousedownToHide = !1;
|
|
343
|
+
i && (t.current.mousedownToHide = !0), C("onClick", e), q(e), !(!j() && i) && p(!i, 0);
|
|
349
344
|
}
|
|
350
345
|
function io(e) {
|
|
351
|
-
|
|
346
|
+
const { focusDelay: o } = s(["focusDelay"]), n = () => {
|
|
347
|
+
C("onFocus", e);
|
|
348
|
+
};
|
|
349
|
+
w(), t.current.mousedownToHide || (i ? n?.() : p(!0, o || 0, n)), t.current.mousedownToHide = !1;
|
|
352
350
|
}
|
|
353
|
-
function
|
|
354
|
-
|
|
351
|
+
function so(e) {
|
|
352
|
+
p(!1, 200, () => C("onBlur", e));
|
|
353
|
+
}
|
|
354
|
+
function Ee(e) {
|
|
355
|
+
i && s(["autoFixPosition"]).autoFixPosition && M();
|
|
355
356
|
}
|
|
356
|
-
function
|
|
357
|
-
const { children: e } = l, o = e, n = o && !
|
|
358
|
-
let
|
|
359
|
-
if (["string", "number"].includes(typeof e) ||
|
|
360
|
-
|
|
357
|
+
function B() {
|
|
358
|
+
const { children: e } = l, o = e, n = o && !xo(o) && o.type;
|
|
359
|
+
let r = e;
|
|
360
|
+
if (["string", "number"].includes(typeof e) || xe.count(e) > 1)
|
|
361
|
+
r = /* @__PURE__ */ P("span", { children: e });
|
|
361
362
|
else if (o && n && (n === "button" || [
|
|
362
363
|
n.___PQB_BUTTON___,
|
|
363
364
|
n.___PQB_CHECKBOX___,
|
|
364
365
|
n.___PQB_SWITCH___,
|
|
365
366
|
n.___PQB_RADIO___
|
|
366
|
-
].some((c,
|
|
367
|
-
const { picked: c, omitted:
|
|
367
|
+
].some((c, g, R) => c === !0)) && o.props.disabled) {
|
|
368
|
+
const { picked: c, omitted: g } = Ho(o.props.style, [
|
|
368
369
|
"position",
|
|
369
370
|
"left",
|
|
370
371
|
"right",
|
|
@@ -374,14 +375,14 @@ function No(d, b) {
|
|
|
374
375
|
"display",
|
|
375
376
|
"zIndex"
|
|
376
377
|
]);
|
|
377
|
-
|
|
378
|
+
r = /* @__PURE__ */ P(
|
|
378
379
|
"span",
|
|
379
380
|
{
|
|
380
381
|
className: o.props?.className,
|
|
381
382
|
style: { display: "inline-block", ...c, cursor: "not-allowed" },
|
|
382
|
-
children:
|
|
383
|
+
children: Me(o, {
|
|
383
384
|
style: {
|
|
384
|
-
...
|
|
385
|
+
...g,
|
|
385
386
|
pointerEvents: "none"
|
|
386
387
|
},
|
|
387
388
|
className: void 0
|
|
@@ -389,29 +390,29 @@ function No(d, b) {
|
|
|
389
390
|
}
|
|
390
391
|
);
|
|
391
392
|
}
|
|
392
|
-
return
|
|
393
|
+
return r || /* @__PURE__ */ P("span", {});
|
|
393
394
|
}
|
|
394
|
-
function
|
|
395
|
-
const n =
|
|
396
|
-
|
|
395
|
+
function C(e, o) {
|
|
396
|
+
const n = B(), r = n && n.props && n.props[e], c = s([e])[e];
|
|
397
|
+
b(r) && r(o), b(c) && c(o);
|
|
397
398
|
}
|
|
398
|
-
function
|
|
399
|
-
const o =
|
|
400
|
-
return
|
|
401
|
-
n(c),
|
|
402
|
-
} : n ||
|
|
399
|
+
function D(e) {
|
|
400
|
+
const o = B(), n = o && o.props && o.props[e], r = s([e])[e];
|
|
401
|
+
return b(r) && b(n) ? (c) => {
|
|
402
|
+
n(c), r(c);
|
|
403
|
+
} : n || r;
|
|
403
404
|
}
|
|
404
405
|
function he() {
|
|
405
|
-
const e =
|
|
406
|
-
e.containerScrollToClose ?
|
|
406
|
+
const e = s(["containerScrollToClose", "updateOnScroll"]);
|
|
407
|
+
e.containerScrollToClose ? p(!1) : e.updateOnScroll && M();
|
|
407
408
|
}
|
|
408
|
-
function
|
|
409
|
+
function lo() {
|
|
409
410
|
if (!t.current.scrollElements && (t.current.scrollElements = Eo(
|
|
410
411
|
t.current.rootElement
|
|
411
412
|
// refPopupContainer.current.parentNode as HTMLElement,
|
|
412
|
-
),
|
|
413
|
+
), be(t.current.scrollElements))) {
|
|
413
414
|
const e = document.body;
|
|
414
|
-
l.containerScrollToClose &&
|
|
415
|
+
l.containerScrollToClose && $.current?.parentNode === e && !t.current.scrollElements.includes(e) && So(document.documentElement) && t.current.scrollElements.push(window), t.current.scrollElements.forEach((o) => {
|
|
415
416
|
J(o, "scroll", he);
|
|
416
417
|
});
|
|
417
418
|
}
|
|
@@ -421,49 +422,49 @@ function No(d, b) {
|
|
|
421
422
|
Z(e, "scroll", he);
|
|
422
423
|
}), t.current.scrollElements = null);
|
|
423
424
|
}
|
|
424
|
-
|
|
425
|
+
go(_, () => ({
|
|
425
426
|
getPopupElement() {
|
|
426
|
-
return
|
|
427
|
+
return a.current;
|
|
427
428
|
},
|
|
428
429
|
getRootElement: ce,
|
|
429
|
-
getChildren:
|
|
430
|
+
getChildren: B,
|
|
430
431
|
getPopupStyle: ge,
|
|
431
432
|
getTransformTranslate: me,
|
|
432
433
|
getTransformOrigin: de,
|
|
433
434
|
updateThrottleByRaf: I,
|
|
434
|
-
update:
|
|
435
|
-
updatePopupStyle:
|
|
436
|
-
updatePopupPosition:
|
|
437
|
-
handleUpdatePosition:
|
|
438
|
-
setPopupVisible:
|
|
435
|
+
update: y,
|
|
436
|
+
updatePopupStyle: y,
|
|
437
|
+
updatePopupPosition: M,
|
|
438
|
+
handleUpdatePosition: X,
|
|
439
|
+
setPopupVisible: p,
|
|
439
440
|
delayToDo: ye
|
|
440
|
-
})),
|
|
441
|
+
})), yo(() => (y(), () => {
|
|
441
442
|
}), [
|
|
442
|
-
|
|
443
|
+
a.current,
|
|
443
444
|
le.current,
|
|
444
445
|
ue.current,
|
|
445
446
|
t.current.rootElement
|
|
446
447
|
]), G(
|
|
447
448
|
(e) => {
|
|
448
|
-
|
|
449
|
+
M(e);
|
|
449
450
|
},
|
|
450
|
-
[
|
|
451
|
+
[$.current?.parentNode],
|
|
451
452
|
{ immediate: !0 }
|
|
452
453
|
), G(
|
|
453
454
|
(e) => {
|
|
454
|
-
|
|
455
|
+
Ee();
|
|
455
456
|
},
|
|
456
|
-
[
|
|
457
|
+
[a.current],
|
|
457
458
|
{ immediate: !0 }
|
|
458
459
|
), G(
|
|
459
460
|
(e) => {
|
|
460
|
-
|
|
461
|
+
Ee();
|
|
461
462
|
},
|
|
462
463
|
[t.current.rootElement],
|
|
463
464
|
{ immediate: !0 }
|
|
464
|
-
),
|
|
465
|
+
), v(() => {
|
|
465
466
|
const e = t.current.rootElement;
|
|
466
|
-
return
|
|
467
|
+
return i && (t.current.childrenDomSize = No(e, {
|
|
467
468
|
boundaryDistance: l.alignPoint ? void 0 : l.boundaryDistance,
|
|
468
469
|
position: l.position
|
|
469
470
|
})), () => {
|
|
@@ -473,121 +474,121 @@ function No(d, b) {
|
|
|
473
474
|
l.alignPoint,
|
|
474
475
|
l.boundaryDistance,
|
|
475
476
|
l.position
|
|
476
|
-
]),
|
|
477
|
+
]), v(() => (i && (l.updateOnScroll || l.containerScrollToClose ? lo() : (M(), we())), () => {
|
|
477
478
|
we();
|
|
478
479
|
}), [
|
|
479
|
-
|
|
480
|
+
i,
|
|
480
481
|
l.updateOnScroll,
|
|
481
482
|
l.containerScrollToClose
|
|
482
|
-
]),
|
|
483
|
-
const { clickOutsideToClose: e, getDocument: o } =
|
|
483
|
+
]), v(() => {
|
|
484
|
+
const { clickOutsideToClose: e, getDocument: o } = s([
|
|
484
485
|
"clickOutsideToClose",
|
|
485
486
|
"getDocument"
|
|
486
|
-
]), n = o?.() || window.document,
|
|
487
|
+
]), n = o?.() || window.document, r = {
|
|
487
488
|
// clickOutside 必须监听mousedown。
|
|
488
489
|
// 1. 如果事件目标元素在click后被移除,document.onclick被触发时已经没有该元素,会错误触发clickOutside逻辑,隐藏popup。
|
|
489
490
|
// 2. 点击label标签,会触发对应input元素的点击事件,导致触发clickOutside,隐藏popup。
|
|
490
491
|
capture: ee(e) ? e.capture : !1
|
|
491
492
|
};
|
|
492
|
-
return
|
|
493
|
-
Z(n, "mousedown", Ce,
|
|
493
|
+
return i && (J(n, "mousedown", Ce, r), J(window, "resize", X)), () => {
|
|
494
|
+
Z(n, "mousedown", Ce, r), Z(window, "resize", X);
|
|
494
495
|
};
|
|
495
|
-
}, [
|
|
496
|
+
}, [i]), v(() => (Qe && k((e) => {
|
|
496
497
|
const o = { ...e };
|
|
497
498
|
return o.popupVisible = !!l?.defaultPopupVisible, o;
|
|
498
499
|
}), () => {
|
|
499
|
-
}), []),
|
|
500
|
+
}), []), v(() => (ie && k((e) => {
|
|
500
501
|
const o = { ...e };
|
|
501
|
-
return o.popupVisible = !!
|
|
502
|
+
return o.popupVisible = !!Q, o;
|
|
502
503
|
}), () => {
|
|
503
|
-
}), [
|
|
504
|
-
|
|
504
|
+
}), [Q]), v(() => () => {
|
|
505
|
+
qe();
|
|
505
506
|
}, []);
|
|
506
|
-
const
|
|
507
|
+
const uo = se && Me(O, {
|
|
507
508
|
...u,
|
|
508
|
-
ref:
|
|
509
|
-
t.current.children = e,
|
|
509
|
+
ref: bo(O) ? (e) => {
|
|
510
|
+
t.current.children = e, Po(O, e);
|
|
510
511
|
} : void 0
|
|
511
|
-
}),
|
|
512
|
-
|
|
512
|
+
}), co = /* @__PURE__ */ P(
|
|
513
|
+
ao,
|
|
513
514
|
{
|
|
514
|
-
in: !!
|
|
515
|
-
timeout:
|
|
516
|
-
classNames:
|
|
515
|
+
in: !!i,
|
|
516
|
+
timeout: Be,
|
|
517
|
+
classNames: Y,
|
|
517
518
|
unmountOnExit: ne,
|
|
518
519
|
appear: !0,
|
|
519
520
|
mountOnEnter: !0,
|
|
520
521
|
onEnter: () => {
|
|
521
522
|
t.current.triggerDestoried = !1;
|
|
522
|
-
const e =
|
|
523
|
-
e && (e.style.display = "initial", e.style.pointerEvents = "none",
|
|
523
|
+
const e = a.current;
|
|
524
|
+
e && (e.style.display = "initial", e.style.pointerEvents = "none", Y === `${d}-slide-dynamic-origin` && (e.style.transform = me()), y());
|
|
524
525
|
},
|
|
525
526
|
onEntering: () => {
|
|
526
|
-
const e =
|
|
527
|
-
e && (
|
|
527
|
+
const e = a.current;
|
|
528
|
+
e && (Y === `${d}-slide-dynamic-origin` && (e.style.transform = ""), y());
|
|
528
529
|
},
|
|
529
530
|
onEntered: () => {
|
|
530
|
-
const e =
|
|
531
|
-
e && (e.style.pointerEvents = "auto",
|
|
531
|
+
const e = a.current;
|
|
532
|
+
e && (e.style.pointerEvents = "auto", y());
|
|
532
533
|
},
|
|
533
534
|
onExit: () => {
|
|
534
|
-
const e =
|
|
535
|
+
const e = a.current;
|
|
535
536
|
e && (e.style.pointerEvents = "none", Ae?.(e));
|
|
536
537
|
},
|
|
537
538
|
onExited: () => {
|
|
538
|
-
const e =
|
|
539
|
-
e && (e.style.display = "none", ne && (t.current.triggerDestoried = !0),
|
|
539
|
+
const e = a.current;
|
|
540
|
+
e && (e.style.display = "none", ne && (t.current.triggerDestoried = !0), k((o) => {
|
|
540
541
|
const n = { ...o };
|
|
541
542
|
return n.popupStyle = {}, n;
|
|
542
543
|
}), Ye?.(e));
|
|
543
544
|
},
|
|
544
|
-
refElement:
|
|
545
|
-
children: /* @__PURE__ */
|
|
545
|
+
refElement: a,
|
|
546
|
+
children: /* @__PURE__ */ De(
|
|
546
547
|
"span",
|
|
547
548
|
{
|
|
548
|
-
ref:
|
|
549
|
+
ref: a,
|
|
549
550
|
"trigger-placement": t.current.realPosition,
|
|
550
|
-
...
|
|
551
|
+
...vo(l),
|
|
551
552
|
style: {
|
|
552
|
-
...
|
|
553
|
+
...A?.Trigger?.style,
|
|
553
554
|
width: Re && te?.width === void 0 ? t.current.childrenDomSize?.width : "",
|
|
554
|
-
...
|
|
555
|
+
...K.popupStyle,
|
|
555
556
|
position: "absolute",
|
|
556
|
-
zIndex:
|
|
557
|
+
zIndex: z || "",
|
|
557
558
|
...te
|
|
558
559
|
// display
|
|
559
560
|
},
|
|
560
|
-
...
|
|
561
|
-
className:
|
|
561
|
+
...W,
|
|
562
|
+
className: Xe,
|
|
562
563
|
children: [
|
|
563
|
-
ee(re) ? /* @__PURE__ */
|
|
564
|
-
|
|
564
|
+
ee(re) ? /* @__PURE__ */ P(
|
|
565
|
+
N.type,
|
|
565
566
|
{
|
|
566
|
-
ref:
|
|
567
|
-
...
|
|
568
|
-
style: { ...
|
|
567
|
+
ref: _o(N),
|
|
568
|
+
...N.props,
|
|
569
|
+
style: { ...N.props.style, ...re }
|
|
569
570
|
}
|
|
570
|
-
) :
|
|
571
|
-
|
|
571
|
+
) : N,
|
|
572
|
+
!!m && /* @__PURE__ */ P(
|
|
572
573
|
"div",
|
|
573
574
|
{
|
|
574
575
|
ref: le,
|
|
575
|
-
className:
|
|
576
|
-
[`${
|
|
576
|
+
className: F(`${S}-arrow-container`, {
|
|
577
|
+
[`${h}-arrow-container`]: h
|
|
577
578
|
}),
|
|
578
|
-
children: /* @__PURE__ */
|
|
579
|
+
children: /* @__PURE__ */ P(
|
|
579
580
|
"div",
|
|
580
581
|
{
|
|
581
582
|
ref: ue,
|
|
582
|
-
...
|
|
583
|
-
className:
|
|
584
|
-
`${
|
|
583
|
+
...m,
|
|
584
|
+
className: F(
|
|
585
|
+
`${S}-arrow`,
|
|
585
586
|
{
|
|
586
|
-
[`${
|
|
587
|
+
[`${h}-arrow`]: h
|
|
587
588
|
},
|
|
588
|
-
|
|
589
|
+
m?.className
|
|
589
590
|
),
|
|
590
|
-
style: { ...t.current.arrowStyle, ...
|
|
591
|
+
style: { ...t.current.arrowStyle, ...m?.style }
|
|
591
592
|
}
|
|
592
593
|
)
|
|
593
594
|
}
|
|
@@ -597,25 +598,25 @@ function No(d, b) {
|
|
|
597
598
|
)
|
|
598
599
|
}
|
|
599
600
|
);
|
|
600
|
-
let
|
|
601
|
-
if ((
|
|
601
|
+
let V;
|
|
602
|
+
if ((i || !!a.current && !t.current.triggerDestoried) && b(oe)) {
|
|
602
603
|
const e = oe(
|
|
603
604
|
t.current.rootElement
|
|
604
605
|
);
|
|
605
|
-
e && (
|
|
606
|
-
/* @__PURE__ */
|
|
606
|
+
e && (V = To(
|
|
607
|
+
/* @__PURE__ */ P("div", { ref: $, className: `${S}-container`, children: co }),
|
|
607
608
|
e
|
|
608
609
|
// visible ? 1 : 0,
|
|
609
610
|
));
|
|
610
611
|
}
|
|
611
|
-
return se && (
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
] })),
|
|
612
|
+
return se && (V = /* @__PURE__ */ De(Co, { children: [
|
|
613
|
+
uo,
|
|
614
|
+
V
|
|
615
|
+
] })), V;
|
|
615
616
|
}
|
|
616
|
-
const
|
|
617
|
-
|
|
617
|
+
const Io = po(Lo);
|
|
618
|
+
Io.displayName = "Trigger";
|
|
618
619
|
export {
|
|
619
|
-
|
|
620
|
-
|
|
620
|
+
tt as EventsByTriggerNeed,
|
|
621
|
+
Io as default
|
|
621
622
|
};
|