@unicom-cloud/ui 0.8.144 → 0.8.147
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 +7 -9
- 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 +3 -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 +1 -1
- package/Details.js +1 -1
- package/Development.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- 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/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 +5 -6
- 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 +5 -17
- package/Modal.js +1 -1
- package/Notice.js +3 -17
- package/Notification.js +5 -18
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +4 -3
- 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 +11 -10
- 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 +1 -1
- package/VirtualList.js +1 -1
- package/Watermark.js +1 -1
- 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 +142 -147
- package/anchor/Link.js +17 -17
- package/anchor/context.js +1 -1
- package/anchor/index.js +6 -8
- package/anchor/utils.js +27 -27
- package/app/App.js +8 -8
- 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 +63 -58
- package/breadcrumb/Item.js +43 -42
- package/breadcrumb/context.js +6 -0
- package/breadcrumb/index.js +5 -3
- package/button/Button.js +1 -1
- 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 +1 -1
- 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 +62 -64
- 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 +83 -82
- package/collapse/Item.js +92 -83
- 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 +1 -1
- package/color-picker/colors.js +1 -1
- 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/utils.js +1 -1
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +1 -1
- package/config-provider/context.js +1 -1
- package/config-provider/index.js +1 -1
- package/config-provider/useConfigProvider.js +79 -23
- 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 +60 -59
- 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/drawer/Drawer.js +35 -32
- package/drawer/index.js +1 -1
- package/dropdown/Button.js +8 -8
- 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 +49 -50
- 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 +1 -1
- 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/grid/Grid.js +1 -1
- package/grid/Item.js +1 -1
- package/grid/context.js +1 -1
- package/grid/index.js +1 -1
- package/grid/utils.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/use-breakpoint/index.js +1 -1
- 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 +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-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 +1 -1
- 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 +1 -1
- package/hooks/useWatch.js +1 -1
- package/hooks/useWatermark.js +1 -1
- 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 +653 -666
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +1 -1
- package/input/InputElement.js +2 -1
- 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 +175 -148
- 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 +61 -60
- 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 +1 -1
- 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 +73 -72
- 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 +1 -1
- package/mask/index.js +1 -1
- package/masonry/Masonry.js +1 -1
- 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 +48 -51
- package/menu/ItemGroup.js +1 -1
- package/menu/Menu.js +33 -32
- 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 +169 -0
- package/message/index.js +5 -155
- package/message/useMessage.js +29 -29
- package/modal/Confirm.js +1 -1
- package/modal/Modal.js +242 -229
- package/modal/config.js +1 -1
- package/modal/index.js +1 -1
- package/modal/use-modal/Hook.js +1 -1
- package/modal/use-modal/index.js +42 -41
- package/notice/Notice.js +175 -0
- package/notice/index.js +3 -172
- package/notification/Notification.js +164 -0
- package/notification/index.js +5 -148
- package/notification/useNotification.js +21 -20
- 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 +4 -3
- package/pagination/PageItem.js +1 -1
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +192 -200
- package/select/index.js +1 -1
- package/select/utils.js +1 -1
- package/select-view/Core.js +263 -252
- 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 +1 -1
- 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 +1 -1
- package/steps/index.js +1 -1
- package/style/mixin/index.less +1 -1
- package/style/variables.css +1 -1
- 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 +173 -167
- 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 +30 -26
- 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 +163 -136
- package/table/tbody/Tr.js +115 -99
- package/table/tbody/index.js +60 -53
- package/table/tfoot/index.js +1 -1
- package/table/th-resizable/index.js +1 -1
- package/table/thead/Column.js +40 -39
- package/table/thead/index.js +54 -54
- package/table/utils.js +1 -1
- package/tabs/TabContent.js +26 -27
- package/tabs/TabPane.js +25 -17
- package/tabs/Tabs.js +9 -7
- package/tabs/context.js +3 -2
- package/tabs/hook/useDomSize.js +1 -1
- package/tabs/hook/useHeaderScroll.js +1 -1
- package/tabs/index.js +9 -8
- 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 +1 -1
- package/tooltip/index.js +1 -1
- package/tour/index.js +17 -8
- package/transfer/Item.js +31 -30
- package/transfer/List.js +28 -27
- package/transfer/index.js +1 -1
- package/tree/Animation.js +1 -1
- package/tree/Node.js +1 -1
- package/tree/NodeList.js +34 -33
- 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 +1 -1
- package/trigger/index.js +1 -1
- package/types/anchor/index.d.ts +1 -2
- package/types/anchor/interface.d.ts +4 -13
- package/types/anchor/utils.d.ts +1 -1
- package/types/breadcrumb/context.d.ts +4 -0
- package/types/breadcrumb/index.d.ts +2 -1
- package/types/breadcrumb/interface.d.ts +8 -4
- package/types/collapse/Collapse.d.ts +3 -3
- package/types/collapse/Item.d.ts +1 -0
- package/types/config-provider/interface.d.ts +6 -0
- package/types/descriptions/interface.d.ts +8 -2
- package/types/form/interface.d.ts +0 -1
- package/types/index.d.ts +3 -3
- package/types/list/interface.d.ts +1 -1
- package/types/menu/interface.d.ts +2 -5
- package/types/message/Message.d.ts +20 -0
- package/types/message/index.d.ts +2 -22
- package/types/message/interface.d.ts +3 -1
- package/types/notice/Notice.d.ts +4 -0
- package/types/notice/index.d.ts +1 -24
- package/types/notice/interface.d.ts +23 -0
- package/types/notification/Notification.d.ts +22 -0
- package/types/notification/index.d.ts +2 -18
- package/types/select/Select.d.ts +1 -1
- package/types/select/interface.d.ts +0 -1
- package/types/select/utils.d.ts +1 -1
- package/types/table/interface.d.ts +1 -0
- package/types/tabs/TabContent.d.ts +1 -7
- package/types/tabs/TabPane.d.ts +1 -4
- package/types/tabs/Tabs.d.ts +3 -3
- package/types/tabs/context.d.ts +3 -2
- package/types/tabs/interface.d.ts +8 -1
- package/types/utils/scrollIntoViewIfNeeded.d.ts +2 -3
- package/types/version/index.d.ts +1 -1
- package/types/virtual-list/interface.d.ts +0 -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 +1 -1
- 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 +8 -7
- 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 +5 -5
- 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 +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/getStringLength.js +1 -1
- package/utils/include.js +1 -1
- package/utils/index.js +235 -249
- 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 +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 +4 -18
- 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/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 +1 -1
- package/verification-code/index.js +1 -1
- package/version/index.js +2 -2
- package/virtual-list/Filler.js +1 -1
- package/virtual-list/VirtualList.js +1 -1
- 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 +1 -1
- package/watermark/index.js +1 -1
package/modal/use-modal/index.js
CHANGED
|
@@ -1,66 +1,67 @@
|
|
|
1
|
-
/* 2026-01-
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { normalizeConfig as
|
|
5
|
-
import { destroyList as
|
|
6
|
-
import { ContextHolderElement as
|
|
7
|
-
import
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
let
|
|
1
|
+
/* 2026-01-29 15:15:33 */
|
|
2
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
3
|
+
import { useRef as H } from "react";
|
|
4
|
+
import { normalizeConfig as l } from "../Confirm.js";
|
|
5
|
+
import { destroyList as h } from "../config.js";
|
|
6
|
+
import { ContextHolderElement as j } from "../../utils/contextHolder.js";
|
|
7
|
+
import v from "./Hook.js";
|
|
8
|
+
function N() {
|
|
9
|
+
const t = H(void 0), d = /* @__PURE__ */ m(j, { ref: t });
|
|
10
|
+
let s = 0;
|
|
11
11
|
function c(o) {
|
|
12
|
-
|
|
13
|
-
let e,
|
|
14
|
-
function
|
|
15
|
-
o.afterClose?.(),
|
|
12
|
+
s += 1;
|
|
13
|
+
let e, n = { ...o };
|
|
14
|
+
function C() {
|
|
15
|
+
o.afterClose?.(), x();
|
|
16
16
|
}
|
|
17
|
-
const
|
|
18
|
-
|
|
17
|
+
const f = /* @__PURE__ */ m(
|
|
18
|
+
v,
|
|
19
19
|
{
|
|
20
|
-
ref: (
|
|
21
|
-
e =
|
|
20
|
+
ref: (r) => {
|
|
21
|
+
e = r;
|
|
22
22
|
},
|
|
23
|
-
...
|
|
24
|
-
afterClose:
|
|
23
|
+
...l({ ...o }),
|
|
24
|
+
afterClose: C
|
|
25
25
|
},
|
|
26
|
-
|
|
26
|
+
s
|
|
27
27
|
);
|
|
28
|
-
|
|
29
|
-
function
|
|
30
|
-
|
|
28
|
+
t.current?.addInstance?.(f);
|
|
29
|
+
function x() {
|
|
30
|
+
t.current?.removeInstance?.(f);
|
|
31
31
|
}
|
|
32
32
|
function a() {
|
|
33
33
|
e?.close();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
|
|
37
|
-
...
|
|
38
|
-
...
|
|
39
|
-
}, e?.update(
|
|
35
|
+
function M(r) {
|
|
36
|
+
n = {
|
|
37
|
+
...n,
|
|
38
|
+
...r
|
|
39
|
+
}, e?.update?.(l({ ...n }));
|
|
40
40
|
}
|
|
41
|
-
return
|
|
41
|
+
return h.push(a), {
|
|
42
42
|
close: a,
|
|
43
|
-
update:
|
|
43
|
+
update: M
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function i(o) {
|
|
47
47
|
return c({
|
|
48
48
|
...o
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
const
|
|
52
|
-
confirm:
|
|
53
|
-
show:
|
|
51
|
+
const u = {
|
|
52
|
+
confirm: i,
|
|
53
|
+
show: i
|
|
54
54
|
// 潘启宝添加于 2023年10月18日 星期三 10时31分58秒 CST
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
}, p = ["info", "success", "warning", "error"].map((o) => [
|
|
56
|
+
o,
|
|
57
|
+
(e) => c({
|
|
58
58
|
...e,
|
|
59
59
|
isNotice: !0,
|
|
60
60
|
noticeType: o
|
|
61
|
-
})
|
|
62
|
-
|
|
61
|
+
})
|
|
62
|
+
]);
|
|
63
|
+
return Object.assign(u, Object.fromEntries(p)), [u, d];
|
|
63
64
|
}
|
|
64
65
|
export {
|
|
65
|
-
|
|
66
|
+
N as default
|
|
66
67
|
};
|
package/notice/Notice.js
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/* 2026-01-29 15:15:33 */
|
|
2
|
+
import { jsx as e, jsxs as u, Fragment as R } from "react/jsx-runtime";
|
|
3
|
+
import j from "@unicom-cloud/icons/context";
|
|
4
|
+
import Y from "@unicom-cloud/icons/IconUiCheckCircleFill";
|
|
5
|
+
import Z from "@unicom-cloud/icons/IconUiClose";
|
|
6
|
+
import ee from "@unicom-cloud/icons/IconUiCloseCircleFill";
|
|
7
|
+
import oe from "@unicom-cloud/icons/IconUiExclamationCircleFill";
|
|
8
|
+
import ne from "@unicom-cloud/icons/IconUiInfoCircleFill";
|
|
9
|
+
import re from "@unicom-cloud/icons/IconUiLoading";
|
|
10
|
+
import { forwardRef as ie, useContext as te, useRef as C, useEffect as G, useImperativeHandle as ce } from "react";
|
|
11
|
+
import se from "../config-provider/ConfigProvider.js";
|
|
12
|
+
import le from "../config-provider/context.js";
|
|
13
|
+
import ae from "@unicom-cloud/ui-common/hooks/use-merge-props";
|
|
14
|
+
import fe from "../icon-hover/index.js";
|
|
15
|
+
import me from "@unicom-cloud/ui-common/utils/className";
|
|
16
|
+
const de = {
|
|
17
|
+
type: "info",
|
|
18
|
+
showIcon: !0,
|
|
19
|
+
noticeType: "message",
|
|
20
|
+
duration: 3e3
|
|
21
|
+
};
|
|
22
|
+
function pe(H, L) {
|
|
23
|
+
const h = te(le), {
|
|
24
|
+
prefixCls: ue,
|
|
25
|
+
getPrefixCls: _,
|
|
26
|
+
componentConfig: q,
|
|
27
|
+
rtl: z
|
|
28
|
+
} = h, n = ae(
|
|
29
|
+
H,
|
|
30
|
+
de,
|
|
31
|
+
q?.Notice
|
|
32
|
+
), x = _?.("notice"), l = C(null), N = C(void 0), v = C(void 0), {
|
|
33
|
+
title: I,
|
|
34
|
+
content: b,
|
|
35
|
+
showIcon: A,
|
|
36
|
+
className: B,
|
|
37
|
+
style: D,
|
|
38
|
+
type: g,
|
|
39
|
+
btn: $,
|
|
40
|
+
icon: J,
|
|
41
|
+
prefixCls: K = x,
|
|
42
|
+
closable: P,
|
|
43
|
+
noticeType: f,
|
|
44
|
+
iconPrefix: w,
|
|
45
|
+
rtl: O = z,
|
|
46
|
+
closeIcon: k,
|
|
47
|
+
classPrefixCls: y
|
|
48
|
+
} = n, o = K, T = f === "message", Q = f === "notification", S = me(
|
|
49
|
+
o,
|
|
50
|
+
`${o}-${g}`,
|
|
51
|
+
{
|
|
52
|
+
[`${o}-closable`]: P,
|
|
53
|
+
[`${o}-rtl`]: O
|
|
54
|
+
},
|
|
55
|
+
B
|
|
56
|
+
), V = "closable" in n || T ? P : !0;
|
|
57
|
+
let m = A;
|
|
58
|
+
g === "normal" && !J && (m = !1);
|
|
59
|
+
const U = { ...h };
|
|
60
|
+
y && (U.prefixCls = y);
|
|
61
|
+
function d() {
|
|
62
|
+
const { duration: i, onClose: s, id: p } = n;
|
|
63
|
+
i !== 0 && (l.current = window.setTimeout(() => {
|
|
64
|
+
s?.(p), c();
|
|
65
|
+
}, i));
|
|
66
|
+
}
|
|
67
|
+
function c() {
|
|
68
|
+
l.current && (window.clearTimeout(l.current), l.current = null);
|
|
69
|
+
}
|
|
70
|
+
function E(i) {
|
|
71
|
+
n.onClose?.(n.id);
|
|
72
|
+
}
|
|
73
|
+
function F() {
|
|
74
|
+
const { showIcon: i, icon: s, type: p, iconPrefix: M } = n;
|
|
75
|
+
if (s === !1)
|
|
76
|
+
return;
|
|
77
|
+
let r;
|
|
78
|
+
if (s)
|
|
79
|
+
r = s;
|
|
80
|
+
else if (i) {
|
|
81
|
+
switch (p) {
|
|
82
|
+
case "info":
|
|
83
|
+
r = /* @__PURE__ */ e(ne, {});
|
|
84
|
+
break;
|
|
85
|
+
case "success":
|
|
86
|
+
r = /* @__PURE__ */ e(Y, {});
|
|
87
|
+
break;
|
|
88
|
+
case "error":
|
|
89
|
+
r = /* @__PURE__ */ e(ee, {});
|
|
90
|
+
break;
|
|
91
|
+
case "warning":
|
|
92
|
+
r = /* @__PURE__ */ e(oe, {});
|
|
93
|
+
break;
|
|
94
|
+
case "loading":
|
|
95
|
+
r = /* @__PURE__ */ e(re, {});
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
r = /* @__PURE__ */ e(
|
|
99
|
+
j.Provider,
|
|
100
|
+
{
|
|
101
|
+
value: M ? { prefixCls: M } : {},
|
|
102
|
+
children: r
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
return r && /* @__PURE__ */ e("span", { className: `${o}-icon`, children: r });
|
|
107
|
+
}
|
|
108
|
+
function W() {
|
|
109
|
+
c();
|
|
110
|
+
}
|
|
111
|
+
function X() {
|
|
112
|
+
c(), d();
|
|
113
|
+
}
|
|
114
|
+
G(() => {
|
|
115
|
+
const i = v.current;
|
|
116
|
+
return (i && i?.duration !== n.duration || n.update) && (c(), d()), v.current = n, () => {
|
|
117
|
+
};
|
|
118
|
+
}, [n.duration, n.update]), G(() => (d(), () => {
|
|
119
|
+
c();
|
|
120
|
+
}), []), ce(L, () => ({
|
|
121
|
+
getRootElement() {
|
|
122
|
+
return N.current;
|
|
123
|
+
}
|
|
124
|
+
}));
|
|
125
|
+
let t, a;
|
|
126
|
+
return V && (k === void 0 ? a = /* @__PURE__ */ e(
|
|
127
|
+
fe,
|
|
128
|
+
{
|
|
129
|
+
prefix: o,
|
|
130
|
+
className: `${o}-close-btn`,
|
|
131
|
+
onClick: E,
|
|
132
|
+
children: /* @__PURE__ */ e(
|
|
133
|
+
j.Provider,
|
|
134
|
+
{
|
|
135
|
+
value: w ? { prefixCls: w } : {},
|
|
136
|
+
children: /* @__PURE__ */ e(Z, {})
|
|
137
|
+
}
|
|
138
|
+
)
|
|
139
|
+
}
|
|
140
|
+
) : a = /* @__PURE__ */ e("span", { onClick: E, className: `${o}-close-btn`, children: k })), T && (t = /* @__PURE__ */ u(R, { children: [
|
|
141
|
+
m && F(),
|
|
142
|
+
/* @__PURE__ */ e("span", { className: `${o}-content`, children: b }),
|
|
143
|
+
a
|
|
144
|
+
] })), Q && (t = /* @__PURE__ */ u(R, { children: [
|
|
145
|
+
m && /* @__PURE__ */ e("div", { className: `${o}-left`, children: F() }),
|
|
146
|
+
/* @__PURE__ */ u("div", { className: `${o}-right`, children: [
|
|
147
|
+
I && /* @__PURE__ */ e("div", { className: `${o}-title`, children: I }),
|
|
148
|
+
/* @__PURE__ */ e("div", { className: `${o}-content`, children: b }),
|
|
149
|
+
$ && /* @__PURE__ */ e("div", { className: `${o}-btn-wrapper`, children: $ })
|
|
150
|
+
] }),
|
|
151
|
+
a
|
|
152
|
+
] })), t && (t = /* @__PURE__ */ e(
|
|
153
|
+
se,
|
|
154
|
+
{
|
|
155
|
+
...U,
|
|
156
|
+
childrenName: "notice",
|
|
157
|
+
effectGlobalModal: !1,
|
|
158
|
+
effectGlobalNotice: !1,
|
|
159
|
+
children: /* @__PURE__ */ e(
|
|
160
|
+
"div",
|
|
161
|
+
{
|
|
162
|
+
ref: N,
|
|
163
|
+
className: `${x}-${f}`,
|
|
164
|
+
onMouseEnter: W,
|
|
165
|
+
onMouseLeave: X,
|
|
166
|
+
children: /* @__PURE__ */ e("div", { className: S, style: D, role: "alert", children: t })
|
|
167
|
+
}
|
|
168
|
+
)
|
|
169
|
+
}
|
|
170
|
+
)), t;
|
|
171
|
+
}
|
|
172
|
+
const Ee = ie(pe);
|
|
173
|
+
export {
|
|
174
|
+
Ee as default
|
|
175
|
+
};
|
package/notice/index.js
CHANGED
|
@@ -1,174 +1,5 @@
|
|
|
1
|
-
/* 2026-01-
|
|
2
|
-
import
|
|
3
|
-
import R from "@unicom-cloud/icons/context";
|
|
4
|
-
import W from "@unicom-cloud/icons/IconUiCheckCircleFill";
|
|
5
|
-
import M from "@unicom-cloud/icons/IconUiClose";
|
|
6
|
-
import X from "@unicom-cloud/icons/IconUiCloseCircleFill";
|
|
7
|
-
import Y from "@unicom-cloud/icons/IconUiExclamationCircleFill";
|
|
8
|
-
import Z from "@unicom-cloud/icons/IconUiInfoCircleFill";
|
|
9
|
-
import ee from "@unicom-cloud/icons/IconUiLoading";
|
|
10
|
-
import { forwardRef as oe, useContext as ne, useRef as v, useEffect as j, useImperativeHandle as re } from "react";
|
|
11
|
-
import ie from "../config-provider/ConfigProvider.js";
|
|
12
|
-
import te from "../config-provider/context.js";
|
|
13
|
-
import ce from "@unicom-cloud/ui-common/hooks/use-merge-props";
|
|
14
|
-
import H from "../icon-hover/index.js";
|
|
15
|
-
import se from "@unicom-cloud/ui-common/utils/className";
|
|
16
|
-
const le = {
|
|
17
|
-
type: "info",
|
|
18
|
-
showIcon: !0,
|
|
19
|
-
noticeType: "message",
|
|
20
|
-
duration: 3e3
|
|
21
|
-
};
|
|
22
|
-
function ae(L, _) {
|
|
23
|
-
const N = ne(te), {
|
|
24
|
-
prefixCls: fe,
|
|
25
|
-
getPrefixCls: q,
|
|
26
|
-
componentConfig: z,
|
|
27
|
-
rtl: A
|
|
28
|
-
} = N, n = ce(
|
|
29
|
-
L,
|
|
30
|
-
le,
|
|
31
|
-
z?.Notice
|
|
32
|
-
), B = q?.("notice"), l = v(null), $ = v(void 0), I = v(void 0), {
|
|
33
|
-
title: b,
|
|
34
|
-
content: g,
|
|
35
|
-
showIcon: D,
|
|
36
|
-
className: G,
|
|
37
|
-
style: J,
|
|
38
|
-
type: P,
|
|
39
|
-
btn: w,
|
|
40
|
-
icon: K,
|
|
41
|
-
prefixCls: o,
|
|
42
|
-
closable: m,
|
|
43
|
-
noticeType: d,
|
|
44
|
-
iconPrefix: k,
|
|
45
|
-
rtl: O = A,
|
|
46
|
-
closeIcon: a,
|
|
47
|
-
classPrefixCls: y
|
|
48
|
-
} = n, Q = se(
|
|
49
|
-
o,
|
|
50
|
-
`${o}-${P}`,
|
|
51
|
-
{
|
|
52
|
-
[`${o}-closable`]: m,
|
|
53
|
-
[`${o}-rtl`]: O
|
|
54
|
-
},
|
|
55
|
-
G
|
|
56
|
-
);
|
|
57
|
-
let p = "closable" in n ? m : !0, u = D;
|
|
58
|
-
P === "normal" && !K && (u = !1);
|
|
59
|
-
const T = { ...N };
|
|
60
|
-
y && (T.prefixCls = y);
|
|
61
|
-
function C() {
|
|
62
|
-
const { duration: i, onClose: s, id: h } = n;
|
|
63
|
-
i !== 0 && (l.current = window.setTimeout(() => {
|
|
64
|
-
s?.(h), c();
|
|
65
|
-
}, i));
|
|
66
|
-
}
|
|
67
|
-
function c() {
|
|
68
|
-
l.current && (window.clearTimeout(l.current), l.current = null);
|
|
69
|
-
}
|
|
70
|
-
function f(i) {
|
|
71
|
-
n.onClose?.(n.id);
|
|
72
|
-
}
|
|
73
|
-
function U() {
|
|
74
|
-
const { showIcon: i, icon: s, type: h, iconPrefix: E } = n;
|
|
75
|
-
if (s === !1)
|
|
76
|
-
return;
|
|
77
|
-
let r;
|
|
78
|
-
if (s)
|
|
79
|
-
r = s;
|
|
80
|
-
else if (i) {
|
|
81
|
-
switch (h) {
|
|
82
|
-
case "info":
|
|
83
|
-
r = /* @__PURE__ */ e(Z, {});
|
|
84
|
-
break;
|
|
85
|
-
case "success":
|
|
86
|
-
r = /* @__PURE__ */ e(W, {});
|
|
87
|
-
break;
|
|
88
|
-
case "error":
|
|
89
|
-
r = /* @__PURE__ */ e(X, {});
|
|
90
|
-
break;
|
|
91
|
-
case "warning":
|
|
92
|
-
r = /* @__PURE__ */ e(Y, {});
|
|
93
|
-
break;
|
|
94
|
-
case "loading":
|
|
95
|
-
r = /* @__PURE__ */ e(ee, {});
|
|
96
|
-
break;
|
|
97
|
-
}
|
|
98
|
-
r = /* @__PURE__ */ e(
|
|
99
|
-
R.Provider,
|
|
100
|
-
{
|
|
101
|
-
value: E ? { prefixCls: E } : {},
|
|
102
|
-
children: r
|
|
103
|
-
}
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
return r && /* @__PURE__ */ e("span", { className: `${o}-icon`, children: r });
|
|
107
|
-
}
|
|
108
|
-
function S() {
|
|
109
|
-
c();
|
|
110
|
-
}
|
|
111
|
-
function V() {
|
|
112
|
-
c(), C();
|
|
113
|
-
}
|
|
114
|
-
j(() => {
|
|
115
|
-
const i = I.current;
|
|
116
|
-
return (i && i?.duration !== n.duration || n.update) && (c(), C()), I.current = n, () => {
|
|
117
|
-
};
|
|
118
|
-
}, [n.duration, n.update]), j(() => (C(), () => {
|
|
119
|
-
c();
|
|
120
|
-
}), []), re(_, () => ({
|
|
121
|
-
getRootElement() {
|
|
122
|
-
return $.current;
|
|
123
|
-
}
|
|
124
|
-
}));
|
|
125
|
-
let t;
|
|
126
|
-
return d === "message" && (p = m, t = /* @__PURE__ */ x(F, { children: [
|
|
127
|
-
u && U(),
|
|
128
|
-
/* @__PURE__ */ e("span", { className: `${o}-content`, children: g }),
|
|
129
|
-
p && (a !== void 0 ? /* @__PURE__ */ e("span", { onClick: f, className: `${o}-close-btn`, children: a }) : /* @__PURE__ */ e(
|
|
130
|
-
H,
|
|
131
|
-
{
|
|
132
|
-
prefix: o,
|
|
133
|
-
className: `${o}-close-btn`,
|
|
134
|
-
onClick: f,
|
|
135
|
-
children: /* @__PURE__ */ e(M, {})
|
|
136
|
-
}
|
|
137
|
-
))
|
|
138
|
-
] })), d === "notification" && (t = /* @__PURE__ */ x(F, { children: [
|
|
139
|
-
u && /* @__PURE__ */ e("div", { className: `${o}-left`, children: U() }),
|
|
140
|
-
/* @__PURE__ */ x("div", { className: `${o}-right`, children: [
|
|
141
|
-
b && /* @__PURE__ */ e("div", { className: `${o}-title`, children: b }),
|
|
142
|
-
/* @__PURE__ */ e("div", { className: `${o}-content`, children: g }),
|
|
143
|
-
w && /* @__PURE__ */ e("div", { className: `${o}-btn-wrapper`, children: w })
|
|
144
|
-
] }),
|
|
145
|
-
p && (a !== void 0 ? /* @__PURE__ */ e("span", { onClick: f, className: `${o}-close-btn`, children: a }) : /* @__PURE__ */ e(
|
|
146
|
-
H,
|
|
147
|
-
{
|
|
148
|
-
prefix: o,
|
|
149
|
-
className: `${o}-close-btn`,
|
|
150
|
-
onClick: f,
|
|
151
|
-
children: /* @__PURE__ */ e(
|
|
152
|
-
R.Provider,
|
|
153
|
-
{
|
|
154
|
-
value: k ? { prefixCls: k } : {},
|
|
155
|
-
children: /* @__PURE__ */ e(M, {})
|
|
156
|
-
}
|
|
157
|
-
)
|
|
158
|
-
}
|
|
159
|
-
))
|
|
160
|
-
] })), t && (t = /* @__PURE__ */ e(ie, { ...T, childrenName: "notice", children: /* @__PURE__ */ e(
|
|
161
|
-
"div",
|
|
162
|
-
{
|
|
163
|
-
ref: $,
|
|
164
|
-
className: `${B}-${d}`,
|
|
165
|
-
onMouseEnter: S,
|
|
166
|
-
onMouseLeave: V,
|
|
167
|
-
children: /* @__PURE__ */ e("div", { className: Q, style: J, role: "alert", children: t })
|
|
168
|
-
}
|
|
169
|
-
) })), t;
|
|
170
|
-
}
|
|
171
|
-
const ke = oe(ae);
|
|
1
|
+
/* 2026-01-29 15:15:33 */
|
|
2
|
+
import t from "./Notice.js";
|
|
172
3
|
export {
|
|
173
|
-
|
|
4
|
+
t as default
|
|
174
5
|
};
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/* 2026-01-29 15:15:33 */
|
|
2
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
3
|
+
import F from "@unicom-cloud/ui-common/transition-group/CSSTransition";
|
|
4
|
+
import U from "@unicom-cloud/ui-common/transition-group/TransitionGroup";
|
|
5
|
+
import { UI_PC_PREFIX as k } from "@unicom-cloud/utils/constant/ui";
|
|
6
|
+
import { useContext as B, useEffect as G } from "react";
|
|
7
|
+
import { createPortal as H } from "react-dom";
|
|
8
|
+
import { createRoot as M } from "react-dom/client";
|
|
9
|
+
import Q from "../config-provider/context.js";
|
|
10
|
+
import X from "@unicom-cloud/ui-common/hooks/use-merge-props";
|
|
11
|
+
import q from "../notice/Notice.js";
|
|
12
|
+
import z from "@unicom-cloud/ui-common/utils/className";
|
|
13
|
+
import { isString as A, isNumber as $, isBoolean as D, isFunction as J, isUndefined as j } from "@unicom-cloud/ui-common/utils/is";
|
|
14
|
+
import K from "./useNotification.js";
|
|
15
|
+
import V from "./withNotification.js";
|
|
16
|
+
const W = [
|
|
17
|
+
"info",
|
|
18
|
+
"success",
|
|
19
|
+
"error",
|
|
20
|
+
"warning",
|
|
21
|
+
"loading",
|
|
22
|
+
"normal"
|
|
23
|
+
], s = {}, x = [];
|
|
24
|
+
let w, I, _, h, p;
|
|
25
|
+
function O(t, e) {
|
|
26
|
+
return j(t) && (t = e || p ? "topLeft" : "topRight"), t;
|
|
27
|
+
}
|
|
28
|
+
const Y = {};
|
|
29
|
+
function Z(t) {
|
|
30
|
+
const e = B(Q), {
|
|
31
|
+
prefixCls: r,
|
|
32
|
+
getPrefixCls: m,
|
|
33
|
+
componentConfig: n,
|
|
34
|
+
rtl: d
|
|
35
|
+
} = e, i = X(
|
|
36
|
+
t,
|
|
37
|
+
Y,
|
|
38
|
+
n?.Notification
|
|
39
|
+
), { prefixCls: T, rtl: N, getContainer: R, notices: E } = i, v = j(N) ? p : N, P = O(i.position, v), g = T || I, c = `${g || k}-notification`, L = z(
|
|
40
|
+
`${c}-wrapper`,
|
|
41
|
+
`${c}-wrapper-${P}`,
|
|
42
|
+
{ [`${c}-wrapper-rtl`]: p }
|
|
43
|
+
), b = R?.();
|
|
44
|
+
function S(l) {
|
|
45
|
+
const a = E.find((C) => C.id === l);
|
|
46
|
+
a && i.update({
|
|
47
|
+
...a,
|
|
48
|
+
style: { ...a.style, opacity: 0 }
|
|
49
|
+
}), setTimeout(() => {
|
|
50
|
+
i.remove(l);
|
|
51
|
+
}, 200);
|
|
52
|
+
}
|
|
53
|
+
G(() => (i.add(i), () => {
|
|
54
|
+
i.clear();
|
|
55
|
+
}), []);
|
|
56
|
+
const y = /* @__PURE__ */ u("div", { className: L, children: /* @__PURE__ */ u(U, { component: null, children: E.map((l) => {
|
|
57
|
+
let a = `${c}-slide-right`;
|
|
58
|
+
["topLeft", "bottomLeft"].includes(P) && (a = `${c}-slide-left`);
|
|
59
|
+
let C;
|
|
60
|
+
return /* @__PURE__ */ u(
|
|
61
|
+
F,
|
|
62
|
+
{
|
|
63
|
+
timeout: {
|
|
64
|
+
enter: 400,
|
|
65
|
+
exit: 300
|
|
66
|
+
},
|
|
67
|
+
classNames: a,
|
|
68
|
+
refElement: () => C,
|
|
69
|
+
onExit: (o) => {
|
|
70
|
+
o && (o.style.height = `${o.scrollHeight}px`);
|
|
71
|
+
},
|
|
72
|
+
onExiting: (o) => {
|
|
73
|
+
o && (o.style.height = 0);
|
|
74
|
+
},
|
|
75
|
+
onExited: (o) => {
|
|
76
|
+
o && (o.style.height = 0, l.onClose?.());
|
|
77
|
+
},
|
|
78
|
+
children: /* @__PURE__ */ u(
|
|
79
|
+
q,
|
|
80
|
+
{
|
|
81
|
+
...l,
|
|
82
|
+
ref: (o) => {
|
|
83
|
+
C = o;
|
|
84
|
+
},
|
|
85
|
+
onClose: S,
|
|
86
|
+
prefixCls: c,
|
|
87
|
+
iconPrefix: g,
|
|
88
|
+
classPrefixCls: g,
|
|
89
|
+
noticeType: "notification",
|
|
90
|
+
rtl: v
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
},
|
|
94
|
+
l.id
|
|
95
|
+
);
|
|
96
|
+
}) }) });
|
|
97
|
+
return b ? H(y, b) : y;
|
|
98
|
+
}
|
|
99
|
+
const f = V(Z);
|
|
100
|
+
f.useNotification = K;
|
|
101
|
+
f.config = (t = {}) => {
|
|
102
|
+
if (A(t.prefixCls) && (I = t.prefixCls), $(t.maxCount) && (w = t.maxCount), $(t.duration) && (_ = t.duration), D(t.rtl) && (p = t.rtl), J(t.getContainer)) {
|
|
103
|
+
const e = t.getContainer();
|
|
104
|
+
e === h || (h = e, Object.entries(s).forEach(([r, m], n, d) => (delete s[r], m?.clear())));
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
f.clear = () => {
|
|
108
|
+
Object.values(s).forEach((t) => {
|
|
109
|
+
t?.clear();
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
f.remove = (t) => {
|
|
113
|
+
Object.values(s).forEach((e) => {
|
|
114
|
+
e?.remove(t);
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
f.addInstance = (t) => {
|
|
118
|
+
const e = O(t.position, p), r = s[e], m = {
|
|
119
|
+
duration: _,
|
|
120
|
+
...t
|
|
121
|
+
};
|
|
122
|
+
if (r) {
|
|
123
|
+
const n = r.notices.find(
|
|
124
|
+
(i) => i.id === t.id
|
|
125
|
+
), d = {
|
|
126
|
+
...m,
|
|
127
|
+
update: n
|
|
128
|
+
};
|
|
129
|
+
r.notices.length >= w && (n ? d.id = n.id : r.shift()), r.add({ ...d });
|
|
130
|
+
}
|
|
131
|
+
if (r === null && x.push(t), r === void 0) {
|
|
132
|
+
const n = document.createElement("div");
|
|
133
|
+
(h || document.body).appendChild(n), M(n).render(
|
|
134
|
+
/* @__PURE__ */ u(
|
|
135
|
+
f,
|
|
136
|
+
{
|
|
137
|
+
...m,
|
|
138
|
+
ref: (i) => {
|
|
139
|
+
if (i) {
|
|
140
|
+
for (; x.length; )
|
|
141
|
+
i.add(x.shift());
|
|
142
|
+
s[e] = i;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
)
|
|
147
|
+
), s[e] = null;
|
|
148
|
+
}
|
|
149
|
+
return s[e];
|
|
150
|
+
};
|
|
151
|
+
const tt = W.map((t) => [
|
|
152
|
+
t,
|
|
153
|
+
(e) => f.addInstance({
|
|
154
|
+
...e,
|
|
155
|
+
type: t
|
|
156
|
+
})
|
|
157
|
+
]);
|
|
158
|
+
Object.assign(f, Object.fromEntries(tt));
|
|
159
|
+
export {
|
|
160
|
+
f as default,
|
|
161
|
+
O as getPosition,
|
|
162
|
+
W as notificationTypes,
|
|
163
|
+
K as useNotification
|
|
164
|
+
};
|