@unicom-cloud/ui 0.8.112 → 0.8.114
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 +2 -2
- package/Alert.js +2 -2
- package/AutoComplete.js +1 -1
- package/BackTop.js +3 -3
- package/Badge.js +2 -2
- package/Breadcrumb.js +2 -2
- 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/ColorPicker.js +1 -1
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- package/Copy.js +3 -47
- package/Countdown.js +17 -51
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Details.js +15 -51
- package/Development.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +2 -2
- package/Empty.js +1 -1
- package/Flex.js +16 -52
- package/Form.js +1 -1
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/InputNumber.js +1 -1
- package/Layout.js +1 -1
- package/Link.js +1 -1
- package/LiquidFill.js +17 -52
- package/List.js +1 -1
- package/Loading.js +15 -51
- package/Marquee.js +24 -46
- package/Mentions.js +1 -1
- package/Menu.js +1 -1
- package/Message.js +2 -2
- package/Modal.js +1 -1
- package/Notice.js +14 -50
- package/Notification.js +2 -2
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/QrCode.js +16 -53
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +2 -2
- package/Result.js +1 -1
- package/RichText.js +12 -13
- package/Segmented.js +16 -51
- package/Skeleton.js +1 -1
- package/Slider.js +2 -2
- package/Space.js +16 -52
- package/Spin.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +2 -2
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +1 -1
- package/Tour.js +18 -54
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +3 -3
- package/affix/index.js +2 -2
- package/alert/index.js +2 -2
- package/anchor/Anchor.js +3 -3
- package/anchor/Link.js +1 -1
- package/app/App.js +2 -2
- package/auto-complete/index.js +1 -1
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/back-top/index.js +3 -3
- package/badge/Count.js +1 -1
- package/badge/index.js +2 -2
- package/breadcrumb/index.js +2 -2
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +2 -2
- 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 +3 -3
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +2 -2
- package/checkbox/Group.js +2 -2
- package/checkbox/GroupBlock.js +2 -2
- package/checkbox/index.js +2 -2
- package/chunk/{BiZSULcr.js → BGb_jT2S.js} +640 -672
- package/chunk/{C6A94b7f.js → BcWPf1id.js} +1 -1
- package/chunk/BcdTSJks.js +48 -0
- package/chunk/{CrOzsnI0.js → Bl3hZtxi.js} +1 -1
- package/chunk/{RjJoagzL.js → CEAeR6xB.js} +1 -1
- package/chunk/{Cx92e1S8.js → CKojyqln.js} +5 -5
- package/chunk/{C3kH2ES3.js → CRgtPpMG.js} +1 -1
- package/chunk/CVMFAeSw.js +39 -0
- package/chunk/{0BhDjhcd.js → CVjWKHBo.js} +1 -1
- package/chunk/{DfbO4QTS.js → CYPFoLks.js} +4 -4
- package/chunk/{BfVlSL8A.js → Ch4iApRQ.js} +4 -4
- package/chunk/ClNkxEcR.js +154 -0
- package/chunk/{CYssV-zz.js → Cs9GrNJa.js} +66 -100
- package/chunk/{DfUcAhyT.js → CwLSam2p.js} +2 -2
- package/chunk/CxbF1opI.js +231 -0
- package/chunk/Cy26_CKq.js +33 -0
- package/chunk/{CRdegvoa.js → D3F0iWPu.js} +1 -1
- package/chunk/{CylbdYce.js → D6I1_o6O.js} +1 -1
- package/chunk/{CtCFA4ht.js → DPDyV8yt.js} +4 -4
- package/chunk/{B--6x-RL.js → DQ8_XXrH.js} +1 -1
- package/chunk/{hc_ufgVf.js → DmHIX8hU.js} +166 -121
- package/chunk/{C1vY8016.js → DstheLSK.js} +79 -110
- package/chunk/{KPBMJlOB.js → HFPyZ48d.js} +37 -35
- package/chunk/{DhAvt6tJ.js → efH9HX0H.js} +3 -3
- package/chunk/exc7v_Hl.js +53 -0
- package/chunk/gJsdBcpG.js +10 -0
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.js +2 -2
- package/color-picker/ControlBar.js +1 -1
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +1 -1
- package/color-picker/InputRgb.js +1 -1
- package/color-picker/Palette.js +1 -1
- package/color-picker/Panel.js +2 -2
- package/color-picker/index.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 +2 -2
- package/copy/index.js +22 -66
- package/countdown/index.js +42 -76
- package/date-picker/Picker.js +1 -1
- package/date-picker/RangePicker.js +2 -2
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +1 -1
- package/details/index.js +47 -83
- package/development/index.js +1 -1
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +89 -93
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +2 -2
- package/empty/index.js +1 -1
- package/flex/index.js +38 -72
- package/form/Control.js +115 -103
- package/form/Form.js +2 -2
- package/form/FormItem.js +2 -2
- package/form/index.js +1 -1
- package/form/promisify.js +10 -19
- package/form/store.js +3 -3
- package/form/util.js +62 -52
- package/grid/Grid.js +1 -1
- package/grid/Item.js +1 -1
- package/hooks/index.js +9 -9
- package/hooks/useId.js +1 -1
- package/hooks/useInView.js +1 -1
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/useResizeObserver.js +7 -50
- package/hooks/useStateWithPromise.js +1 -1
- package/hooks/useWatermark.js +1 -1
- package/hooks/useWindowSize.js +1 -1
- package/icon/addFromIconFontCn.js +1 -1
- package/icon/index.js +2 -2
- package/icon-hover/index.js +1 -1
- package/icons/file.js +1 -1
- package/image/Image.js +3 -3
- package/image/ImagePreview.js +18 -53
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +703 -690
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +2 -2
- package/input/InputElement.js +1 -1
- package/input/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Textarea.js +1 -1
- package/input/autoSizeTextAreaHeight.js +29 -20
- package/input-number/index.js +1 -1
- package/input-tag/InputTag.js +2 -2
- 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/index.js +1 -1
- package/link/index.js +1 -1
- package/liquid-fill/index.js +57 -92
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +1 -1
- package/loading/index.js +27 -63
- package/locale/en-US.js +5 -3
- package/locale/tr-TR.js +5 -3
- package/marquee/index.js +71 -93
- package/marquee-/index.js +74 -96
- package/mentions/index.js +1 -1
- package/menu/Menu.js +3 -3
- package/menu/OverflowWrap.js +1 -1
- package/menu/index.js +2 -2
- package/message/index.js +2 -2
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +5 -5
- package/modal/index.js +2 -2
- package/notice/index.js +14 -50
- package/notification/index.js +2 -2
- package/notification/useNotification.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 +1 -1
- package/pagination/Pagination.js +1 -1
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popover/index.js +1 -1
- package/progress/CircleProgress.js +1 -1
- package/progress/index.js +1 -1
- package/qr-code/index.js +1243 -92
- package/radio/Group.js +2 -2
- package/radio/GroupBlock.js +2 -2
- package/radio/Radio.js +2 -2
- package/radio/index.js +2 -2
- package/rate/index.js +1 -1
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +2 -2
- package/resize-box/SplitGroup.js +2 -2
- package/resize-box/index.js +2 -2
- package/result/index.js +1 -1
- package/rich-text/index.js +6332 -77
- package/rich-text/lib/diff/index.d.ts +21 -0
- package/row-col/Col-.js +1 -1
- package/row-col/Col.js +1 -1
- package/row-col/Row.js +1 -1
- package/segmented/index.js +126 -161
- package/select/Option.js +44 -41
- package/select/Select.js +10 -12
- package/select-view/Core.js +1 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +2 -2
- package/slider/index.js +2 -2
- package/space/index.js +24 -60
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +1 -1
- package/splitter/Panel.js +1 -1
- package/splitter/SplitBar.js +2 -2
- package/splitter/Splitter.js +2 -2
- package/statistic/index.js +1 -1
- package/steps/index.js +1 -1
- package/style.css +1 -1
- package/switch/index.js +2 -2
- package/table/Table.js +14 -53
- package/table/index.js +77 -120
- package/tabs/Tab.js +3 -3
- package/tabs/TabContent.js +2 -2
- package/tabs/TabPane.js +1 -1
- package/tabs/index.js +2 -2
- package/tag/index.js +1 -1
- package/time-picker/Picker.js +1 -1
- package/time-picker/TimePicker.js +1 -1
- package/timeline/Item.js +1 -1
- package/timeline/Timeline.js +1 -1
- package/tooltip/index.js +1 -1
- package/tour/index.js +81 -117
- package/transfer/Item.js +2 -2
- package/transfer/List.js +2 -2
- package/transfer/index.js +1 -1
- package/tree/Animation.js +3 -3
- package/tree/Node.js +3 -3
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +2 -2
- package/tree/index.js +1 -1
- package/tree-select/Select.js +3 -3
- package/tree-select/index.js +1 -1
- package/trigger/getPopupStyle.js +1 -1
- package/trigger/index.js +145 -145
- package/types/common/hooks/src/use-theme/index.d.ts +2 -2
- package/types/common/hooks/useStateWithPromise.d.ts +1 -1
- package/types/common/hooks/useWindowSize.d.ts +4 -4
- package/types/common/utils/dom.d.ts +13 -1
- package/types/common/utils/lodash.d.ts +2 -1
- package/types/common/utils/reactDOM.d.ts +10 -1
- package/types/common/utils/validate.d.ts +2 -1
- package/types/pc/carousel/interface.d.ts +2 -2
- package/types/pc/color-picker/Panel.d.ts +1 -1
- package/types/pc/date-picker/RangePicker.d.ts +1 -1
- package/types/pc/form/interface.d.ts +6 -1
- package/types/pc/form/promisify.d.ts +5 -0
- package/types/pc/form/store.d.ts +1 -1
- package/types/pc/form/util.d.ts +1 -1
- package/types/pc/index.d.ts +1 -1
- package/types/pc/input/autoSizeTextAreaHeight.d.ts +4 -2
- package/types/pc/list/interface.d.ts +2 -2
- package/types/pc/menu/context.d.ts +1 -1
- package/types/pc/qr-code/examples/demo.d.ts +1 -0
- package/types/pc/qr-code/examples/download.d.ts +2 -0
- package/types/pc/qr-code/examples/full.d.ts +2 -0
- package/types/pc/qr-code/examples/image.d.ts +2 -0
- package/types/pc/qr-code/index.d.ts +2 -0
- package/types/pc/qr-code/src/index.d.ts +116 -0
- package/types/pc/qr-code/src/qrcodegen.d.ts +95 -0
- package/types/pc/qr-code/src/qrcodegen2.d.ts +325 -0
- package/types/pc/rich-text/index.d.ts +7 -4
- package/types/pc/rich-text/interface.d.ts +3 -2
- package/types/pc/rich-text/{core → lib/core}/editor.d.ts +1 -1
- package/types/pc/rich-text/{core → lib/core}/rich.d.ts +3 -7
- package/types/pc/rich-text/{core → lib/core}/selection.d.ts +1 -0
- package/types/pc/rich-text/{core.d.ts → lib/core.d.ts} +1 -1
- package/types/pc/rich-text/lib/delta/AttributeMap.d.ts +15 -0
- package/types/pc/rich-text/lib/delta/Op.d.ts +13 -0
- package/types/pc/rich-text/lib/delta/OpIterator.d.ts +14 -0
- package/types/pc/rich-text/lib/delta/index.d.ts +53 -0
- package/types/pc/rich-text/lib/diff/index.d.ts +40 -0
- package/types/pc/rich-text/{formats → lib/formats}/bold.d.ts +1 -1
- package/types/pc/rich-text/{formats → lib/formats}/font.d.ts +1 -1
- package/types/pc/rich-text/lib/formats/hr.d.ts +5 -0
- package/types/pc/rich-text/lib/formats/image-resize/index.d.ts +27 -0
- package/types/pc/rich-text/lib/formats/image-resize/modules/BaseModule.d.ts +10 -0
- package/types/pc/rich-text/lib/formats/image-resize/modules/DisplaySize.d.ts +5 -0
- package/types/pc/rich-text/lib/formats/image-resize/modules/Resize.d.ts +13 -0
- package/types/pc/rich-text/lib/formats/image-resize/options.d.ts +7 -0
- package/types/pc/rich-text/lib/formats/liOl.d.ts +10 -0
- package/types/pc/rich-text/lib/formats/liUl.d.ts +10 -0
- package/types/pc/rich-text/lib/formats/lineHeight.d.ts +3 -0
- package/types/pc/rich-text/{formats → lib/formats}/list.d.ts +1 -0
- package/types/pc/rich-text/{formats → lib/formats}/table.d.ts +3 -3
- package/types/pc/rich-text/{modules → lib/modules}/clipboard.d.ts +2 -2
- package/types/pc/rich-text/{modules → lib/modules}/history.d.ts +1 -1
- package/types/pc/rich-text/{modules → lib/modules}/keyboard.d.ts +1 -1
- package/types/pc/rich-text/{modules → lib/modules}/syntax.d.ts +2 -2
- package/types/pc/rich-text/{modules → lib/modules}/tableEmbed.d.ts +3 -3
- package/types/pc/rich-text/{modules → lib/modules}/toolbar.d.ts +1 -1
- package/types/pc/rich-text/{parchment → lib/parchment}/attributor/attributor.d.ts +3 -3
- package/types/pc/rich-text/{parchment → lib/parchment}/attributor/style.d.ts +2 -2
- package/types/pc/rich-text/{ui → lib/ui}/icons.d.ts +5 -1
- package/types/pc/rich-text/{ui → lib/ui}/picker.d.ts +1 -0
- package/types/pc/tabs/hook/useDomSize.d.ts +2 -2
- package/types/pc/tabs/hook/useHeaderScroll.d.ts +2 -2
- package/types/pc/tree-select/hook/useStateValue.d.ts +2 -2
- package/types/pc/utils/date.d.ts +1 -0
- package/types/pc/utils/index.d.ts +2 -2
- package/types/pc/utils/validate.d.ts +1 -1
- package/typography/Base.js +1 -1
- package/typography/Ellipsis.js +70 -114
- package/typography/Operations.js +29 -74
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +2 -2
- package/upload/Uploader.js +1 -1
- package/upload/request_.js +1972 -41
- package/utils/PqbCSSTransition.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/date.js +1 -0
- package/utils/dom.js +1 -1
- package/utils/index.js +248 -236
- package/utils/lodash.js +33 -32
- package/utils/react19Adapter.js +1 -1
- package/utils/reactDOM.js +1 -1
- package/utils/validate.js +15 -5
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/virtual-list/VirtualList.js +218 -217
- package/watermark/Watermark.js +1 -1
- package/chunk/BCmfDFV4.js +0 -4237
- package/chunk/BG6j6Ct7.js +0 -30
- package/chunk/C5CbL5ku.js +0 -56
- package/chunk/CXrVhA6-.js +0 -54
- package/chunk/DMv8Hn4u.js +0 -231
- package/chunk/DsuIQH0F.js +0 -200
- package/chunk/d1c9z8T1.js +0 -49
- package/chunk/vP3qfmKM.js +0 -84
- package/rich-text/core.js +0 -11
- package/rich-text/rich.js +0 -1347
- package/types/common/utils/index.d.ts +0 -47
- package/types/common/utils/keyboardCode.d.ts +0 -4
- package/types/common/utils/math.d.ts +0 -1
- package/types/common/utils/reactTransitionGroup.d.ts +0 -1
- package/types/common/utils/uuid.d.ts +0 -1
- package/types/pc/rich-text/delta/AttributeMap.d.ts +0 -10
- package/types/pc/rich-text/delta/Op.d.ts +0 -11
- package/types/pc/rich-text/delta/OpIterator.d.ts +0 -13
- package/types/pc/rich-text/delta/index.d.ts +0 -45
- package/types/common/hooks/src/utils/{index.d.ts → is.d.ts} +0 -0
- package/types/pc/rich-text/{blots → lib/blots}/block.d.ts +0 -0
- package/types/pc/rich-text/{blots → lib/blots}/break.d.ts +0 -0
- package/types/pc/rich-text/{blots → lib/blots}/container.d.ts +0 -0
- package/types/pc/rich-text/{blots → lib/blots}/cursor.d.ts +0 -0
- package/types/pc/rich-text/{blots → lib/blots}/embed.d.ts +0 -0
- package/types/pc/rich-text/{blots → lib/blots}/inline.d.ts +0 -0
- package/types/pc/rich-text/{blots → lib/blots}/scroll.d.ts +0 -0
- package/types/pc/rich-text/{blots → lib/blots}/text.d.ts +0 -0
- package/types/pc/rich-text/{core → lib/core}/composition.d.ts +0 -0
- package/types/pc/rich-text/{core → lib/core}/emitter.d.ts +0 -0
- package/types/pc/rich-text/{core → lib/core}/instances.d.ts +0 -0
- package/types/pc/rich-text/{core → lib/core}/logger.d.ts +0 -0
- package/types/pc/rich-text/{core → lib/core}/module.d.ts +0 -0
- package/types/pc/rich-text/{core → lib/core}/theme.d.ts +0 -0
- package/types/pc/rich-text/{core → lib/core}/utils/createRegistryWithFormats.d.ts +0 -0
- package/types/pc/rich-text/{core → lib/core}/utils/scrollRectIntoView.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/align.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/background.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/blockquote.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/code.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/color.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/direction.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/formula.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/header.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/image.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/indent.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/italic.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/link.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/script.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/size.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/strike.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/underline.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/video.d.ts +0 -0
- package/types/pc/rich-text/{rich.d.ts → lib/index.d.ts} +0 -0
- package/types/pc/rich-text/{modules → lib/modules}/input.d.ts +0 -0
- package/types/pc/rich-text/{modules → lib/modules}/normalizeExternalHTML/index.d.ts +0 -0
- package/types/pc/rich-text/{modules → lib/modules}/normalizeExternalHTML/normalizers/googleDocs.d.ts +0 -0
- package/types/pc/rich-text/{modules → lib/modules}/normalizeExternalHTML/normalizers/msWord.d.ts +0 -0
- package/types/pc/rich-text/{modules → lib/modules}/table.d.ts +0 -0
- package/types/pc/rich-text/{modules → lib/modules}/uiNode.d.ts +0 -0
- package/types/pc/rich-text/{modules → lib/modules}/uploader.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/attributor/class.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/attributor/store.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/blot.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/container.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/leaf.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/parent.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/shadow.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/block.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/embed.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/inline.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/scroll.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/text.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/collection/linked-list.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/collection/linked-node.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/error.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/index.d.ts +1 -1
- /package/types/pc/rich-text/{parchment → lib/parchment}/registry.d.ts +0 -0
- /package/types/pc/rich-text/{parchment → lib/parchment}/scope.d.ts +0 -0
- /package/types/pc/rich-text/{themes → lib/themes}/base.d.ts +0 -0
- /package/types/pc/rich-text/{themes → lib/themes}/pqb.d.ts +0 -0
- /package/types/pc/rich-text/{ui → lib/ui}/color-picker.d.ts +0 -0
- /package/types/pc/rich-text/{ui → lib/ui}/icon-picker.d.ts +0 -0
- /package/types/pc/rich-text/{ui → lib/ui}/tooltip.d.ts +0 -0
package/trigger/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsx as h, jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { forwardRef as
|
|
6
|
-
import { createPortal as
|
|
7
|
-
import { a as
|
|
1
|
+
import { jsx as h, jsxs as xe } from "react/jsx-runtime";
|
|
2
|
+
import { c as so } from "../chunk/BJ9_azwQ.js";
|
|
3
|
+
import Me from "lodash/isArray";
|
|
4
|
+
import w from "lodash/isFunction";
|
|
5
|
+
import { forwardRef as uo, useContext as co, useRef as L, useState as lo, Children as Se, useCallback as Oe, cloneElement as ve, useImperativeHandle as ao, useLayoutEffect as po, useEffect as g, Fragment as fo } from "react";
|
|
6
|
+
import { createPortal as mo } from "react-dom";
|
|
7
|
+
import { a as go } from "../chunk/DstheLSK.js";
|
|
8
8
|
import R from "@unicom-cloud/utils/class-name";
|
|
9
|
-
import { b as G, o as J, g as
|
|
10
|
-
import { s as
|
|
11
|
-
import { Esc as
|
|
12
|
-
import { m as
|
|
13
|
-
import { a as
|
|
14
|
-
import { c as
|
|
9
|
+
import { b as G, o as J, g as yo, i as To, c as be } from "../chunk/BcdTSJks.js";
|
|
10
|
+
import { s as Co } from "../chunk/DsaQZE4X.js";
|
|
11
|
+
import { Esc as Ne } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
12
|
+
import { m as ho } from "../chunk/DH7HTOV_.js";
|
|
13
|
+
import { a as Po } from "../chunk/ClqoGc3r.js";
|
|
14
|
+
import { c as Eo, f as Do } from "../chunk/exc7v_Hl.js";
|
|
15
15
|
import { r as Z } from "../chunk/CHQ8c547.js";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
16
|
+
import $e from "../utils/throttleByRaf.js";
|
|
17
|
+
import wo, { getBoundingClientRect as xo } from "./getPopupStyle.js";
|
|
18
18
|
import { isPlainObject as ee } from "@unicom-cloud/utils/is";
|
|
19
|
-
function
|
|
19
|
+
function Mo(d, $) {
|
|
20
20
|
if (!d)
|
|
21
21
|
return {};
|
|
22
|
-
const { width: y, height: x, left: T, right: z } =
|
|
22
|
+
const { width: y, height: x, left: T, right: z } = xo(d, $);
|
|
23
23
|
return {
|
|
24
24
|
width: y,
|
|
25
25
|
height: x,
|
|
@@ -27,7 +27,7 @@ function Do(d, $) {
|
|
|
27
27
|
right: z
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
const
|
|
30
|
+
const Uo = [
|
|
31
31
|
"onClick",
|
|
32
32
|
"onMouseEnter",
|
|
33
33
|
"onMouseLeave",
|
|
@@ -37,13 +37,13 @@ const Wo = [
|
|
|
37
37
|
"onContextMenu",
|
|
38
38
|
"onKeyDown"
|
|
39
39
|
];
|
|
40
|
-
function
|
|
40
|
+
function So(d, $) {
|
|
41
41
|
const y = {}, x = { ...d };
|
|
42
42
|
return $.forEach((T) => {
|
|
43
43
|
d && T in d && (y[T] = d[T], delete x[T]);
|
|
44
44
|
}), { picked: y, omitted: x };
|
|
45
45
|
}
|
|
46
|
-
const
|
|
46
|
+
const Oo = {
|
|
47
47
|
blurToHide: !0,
|
|
48
48
|
// clickToClose: true,
|
|
49
49
|
classNames: "fadeIn",
|
|
@@ -64,26 +64,26 @@ const Mo = {
|
|
|
64
64
|
autoFitPosition: !0,
|
|
65
65
|
updateOnScroll: !0
|
|
66
66
|
};
|
|
67
|
-
function
|
|
68
|
-
const y =
|
|
67
|
+
function vo(d, $) {
|
|
68
|
+
const y = co(go), { getPrefixCls: x, zIndex: T, rtl: z } = y, i = u(d), {
|
|
69
69
|
children: oe,
|
|
70
70
|
style: te,
|
|
71
|
-
className:
|
|
72
|
-
arrowProps:
|
|
71
|
+
className: ke,
|
|
72
|
+
arrowProps: V,
|
|
73
73
|
disabled: M,
|
|
74
|
-
popup:
|
|
74
|
+
popup: He,
|
|
75
75
|
classNames: A,
|
|
76
|
-
duration:
|
|
76
|
+
duration: Ie,
|
|
77
77
|
unmountOnExit: ne,
|
|
78
|
-
alignPoint:
|
|
79
|
-
autoAlignPopupWidth:
|
|
78
|
+
alignPoint: Le,
|
|
79
|
+
autoAlignPopupWidth: Ve,
|
|
80
80
|
position: Be,
|
|
81
81
|
childrenPrefix: P,
|
|
82
|
-
showArrow:
|
|
82
|
+
showArrow: _e,
|
|
83
83
|
popupStyle: re,
|
|
84
|
-
__onExit:
|
|
85
|
-
__onExited:
|
|
86
|
-
} = i, ie = oe || oe === 0, p = L(null), S = L(null),
|
|
84
|
+
__onExit: Fe,
|
|
85
|
+
__onExited: Re
|
|
86
|
+
} = i, ie = "popupVisible" in i, ze = "defaultPopupVisible" in i, se = oe || oe === 0, p = L(null), S = L(null), ue = L(null), ce = L(null), t = L({
|
|
87
87
|
rootElement: void 0,
|
|
88
88
|
triggerDestoried: !1,
|
|
89
89
|
// 标志 popup 是否被销毁
|
|
@@ -104,48 +104,48 @@ function So(d, $) {
|
|
|
104
104
|
// 保存当前节点到弹出容器间的所有滚动元素
|
|
105
105
|
delayTimeoutID: -1,
|
|
106
106
|
updatePositionTimeoutID: -1
|
|
107
|
-
}), [Y, O] =
|
|
107
|
+
}), [Y, O] = lo({ popupVisible: !1, popupStyle: {} }), K = i.popupVisible, Ae = Y.popupVisible, s = K ?? Ae, l = {}, Q = {
|
|
108
108
|
onMouseDown() {
|
|
109
109
|
t.current.hasPopupMouseDown = !0, setTimeout(() => {
|
|
110
110
|
t.current.hasPopupMouseDown = !1;
|
|
111
111
|
}, 0);
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
|
-
I() && !M ? (l.onMouseEnter =
|
|
115
|
-
const k = _(), H =
|
|
114
|
+
I() && !M ? (l.onMouseEnter = je, l.onMouseLeave = ye, U() && (l.onClick = Te), Le && (l.onMouseMove = qe), Qe() || (Q.onMouseEnter = Ge, Q.onMouseLeave = Je)) : (l.onMouseEnter = D("onMouseEnter"), l.onMouseLeave = D("onMouseLeave")), ae() && !M ? (l.onContextMenu = Ze, l.onClick = Te) : l.onContextMenu = D("onContextMenu"), le() && !M ? l.onClick = eo : l.onClick = l.onClick || D("onClick"), X() && !M ? (l.onFocus = oo, pe() && (l.onBlur = to)) : (l.onFocus = D("onFocus"), l.onBlur = D("onBlur")), M ? l.onKeyDown = D("onKeyDown") : l.onKeyDown = Xe;
|
|
115
|
+
const k = _(), H = Se.only(He?.());
|
|
116
116
|
k.props.className && (l.className = k.props.className), P && s && (l.className = R(
|
|
117
117
|
l.className,
|
|
118
118
|
`${P}-open`
|
|
119
119
|
)), X() && (l.tabIndex = M ? -1 : 0);
|
|
120
|
-
const v = x?.("trigger"),
|
|
120
|
+
const v = x?.("trigger"), Ye = R(
|
|
121
121
|
v,
|
|
122
122
|
P,
|
|
123
123
|
`${v}-position-${Be}`,
|
|
124
124
|
{ [`${v}-rtl`]: z },
|
|
125
|
-
|
|
125
|
+
ke
|
|
126
126
|
);
|
|
127
127
|
function u(e) {
|
|
128
128
|
const { componentConfig: o } = y ?? {};
|
|
129
|
-
return
|
|
129
|
+
return ho(
|
|
130
130
|
ee(e) ? e : d,
|
|
131
|
-
|
|
131
|
+
Oo,
|
|
132
132
|
o?.Trigger ?? {},
|
|
133
|
-
|
|
133
|
+
Me(e) ? e : void 0
|
|
134
134
|
);
|
|
135
135
|
}
|
|
136
136
|
function b() {
|
|
137
|
-
const e =
|
|
137
|
+
const e = Do(
|
|
138
138
|
i.getTargetDOMNode?.() || i.getRootElement?.() || t.current.child
|
|
139
139
|
);
|
|
140
140
|
return t.current.rootElement = e, e;
|
|
141
141
|
}
|
|
142
|
-
const W =
|
|
143
|
-
|
|
142
|
+
const W = Oe(
|
|
143
|
+
$e(() => {
|
|
144
144
|
N();
|
|
145
145
|
}),
|
|
146
146
|
[s]
|
|
147
147
|
);
|
|
148
|
-
function
|
|
148
|
+
function le() {
|
|
149
149
|
const { trigger: e } = u(["trigger"]);
|
|
150
150
|
return [].concat(e).indexOf("click") > -1;
|
|
151
151
|
}
|
|
@@ -157,30 +157,30 @@ function So(d, $) {
|
|
|
157
157
|
const { trigger: e } = u(["trigger"]);
|
|
158
158
|
return [].concat(e).indexOf("hover") > -1;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function ae() {
|
|
161
161
|
const { trigger: e } = u(["trigger"]);
|
|
162
162
|
return [].concat(e).indexOf("contextMenu") > -1;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Ke() {
|
|
165
165
|
return I() && u(["mouseLeaveToClose"]).mouseLeaveToClose;
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function Qe() {
|
|
168
168
|
return I() && !u(["popupHoverStay"]).popupHoverStay;
|
|
169
169
|
}
|
|
170
170
|
function U() {
|
|
171
|
-
if (
|
|
171
|
+
if (le() || ae()) {
|
|
172
172
|
const { clickToClose: e = !0 } = u(["clickToClose"]);
|
|
173
173
|
return e;
|
|
174
174
|
}
|
|
175
175
|
return I() && i.clickToClose;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function pe() {
|
|
178
178
|
return X() && u(["blurToHide"]).blurToHide;
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function We() {
|
|
181
181
|
t.current.updatePositionTimeoutID && (t.current.updatePositionTimeoutID.cancel ? t.current.updatePositionTimeoutID.cancel() : (clearTimeout(t.current.updatePositionTimeoutID), t.current.updatePositionTimeoutID = null)), E();
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function fe(e) {
|
|
184
184
|
const o = p.current;
|
|
185
185
|
if (!o)
|
|
186
186
|
return {};
|
|
@@ -190,7 +190,7 @@ function So(d, $) {
|
|
|
190
190
|
]);
|
|
191
191
|
let c = n && t.current.arrowStyle?.top || 0, a = n && t.current.arrowStyle?.left || 0;
|
|
192
192
|
c = c ? `${c}px` : "", a = a ? `${a}px` : "";
|
|
193
|
-
const
|
|
193
|
+
const De = {
|
|
194
194
|
top: `${a || "50%"} 100% 0`,
|
|
195
195
|
tl: `${a || "15px"} 100% 0`,
|
|
196
196
|
tr: `${a || `${o.clientWidth - 15}px`} 100% 0`,
|
|
@@ -206,7 +206,7 @@ function So(d, $) {
|
|
|
206
206
|
};
|
|
207
207
|
if (r && r.indexOf("zoom") > -1)
|
|
208
208
|
return {
|
|
209
|
-
transformOrigin:
|
|
209
|
+
transformOrigin: De[e]
|
|
210
210
|
};
|
|
211
211
|
if (r === "slideDynamicOrigin") {
|
|
212
212
|
let we = "0% 0%";
|
|
@@ -216,7 +216,7 @@ function So(d, $) {
|
|
|
216
216
|
}
|
|
217
217
|
return {};
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function de() {
|
|
220
220
|
if (u(["classNames"]).classNames !== "slideDynamicOrigin")
|
|
221
221
|
return "";
|
|
222
222
|
switch (t.current.realPosition) {
|
|
@@ -238,7 +238,7 @@ function So(d, $) {
|
|
|
238
238
|
const e = p.current, o = b();
|
|
239
239
|
if (!o?.offsetParent && !o?.getClientRects()?.length)
|
|
240
240
|
return Y.popupStyle;
|
|
241
|
-
const { style: n, arrowStyle: r, realPosition: c } =
|
|
241
|
+
const { style: n, arrowStyle: r, realPosition: c } = wo(
|
|
242
242
|
i,
|
|
243
243
|
e,
|
|
244
244
|
o,
|
|
@@ -249,7 +249,7 @@ function So(d, $) {
|
|
|
249
249
|
const a = c || i.position;
|
|
250
250
|
return t.current.realPosition = a, {
|
|
251
251
|
...n,
|
|
252
|
-
...
|
|
252
|
+
...fe(a)
|
|
253
253
|
};
|
|
254
254
|
}
|
|
255
255
|
function C(e) {
|
|
@@ -257,17 +257,17 @@ function So(d, $) {
|
|
|
257
257
|
O((n) => {
|
|
258
258
|
const r = { ...n };
|
|
259
259
|
return r.popupStyle = o, r;
|
|
260
|
-
}),
|
|
260
|
+
}), w(e) && setTimeout(() => {
|
|
261
261
|
e();
|
|
262
262
|
}, 0);
|
|
263
263
|
}
|
|
264
|
-
const
|
|
264
|
+
const B = Oe($e(C), [
|
|
265
265
|
s
|
|
266
266
|
]);
|
|
267
267
|
function N(e = 0, o) {
|
|
268
268
|
if (s) {
|
|
269
269
|
if (e < 4) {
|
|
270
|
-
t.current.updatePositionTimeoutID =
|
|
270
|
+
t.current.updatePositionTimeoutID = B(o);
|
|
271
271
|
return;
|
|
272
272
|
}
|
|
273
273
|
t.current.updatePositionTimeoutID = setTimeout(() => {
|
|
@@ -275,7 +275,7 @@ function So(d, $) {
|
|
|
275
275
|
O((r) => {
|
|
276
276
|
const c = { ...r };
|
|
277
277
|
return c.popupStyle = n, c;
|
|
278
|
-
}),
|
|
278
|
+
}), w(o) && setTimeout(() => {
|
|
279
279
|
o();
|
|
280
280
|
}, 0);
|
|
281
281
|
}, e);
|
|
@@ -283,8 +283,8 @@ function So(d, $) {
|
|
|
283
283
|
}
|
|
284
284
|
function f(e, o = 0, n) {
|
|
285
285
|
const r = u(["onVisibleChange", "popupVisible"]);
|
|
286
|
-
e !== s ?
|
|
287
|
-
r.onVisibleChange?.(e),
|
|
286
|
+
e !== s ? me(o, () => {
|
|
287
|
+
r.onVisibleChange?.(e), ie ? n?.() : (O((c) => {
|
|
288
288
|
const a = { ...c };
|
|
289
289
|
return a.popupVisible = !!e, a;
|
|
290
290
|
}), setTimeout(e ? () => {
|
|
@@ -294,7 +294,7 @@ function So(d, $) {
|
|
|
294
294
|
}, 0));
|
|
295
295
|
}) : n?.();
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function me(e, o) {
|
|
298
298
|
e ? (E(), t.current.delayTimeoutID = setTimeout(() => {
|
|
299
299
|
o(), E();
|
|
300
300
|
}, e)) : o();
|
|
@@ -302,35 +302,35 @@ function So(d, $) {
|
|
|
302
302
|
function E() {
|
|
303
303
|
t.current.delayTimeoutID && (clearTimeout(t.current.delayTimeoutID), t.current.delayTimeoutID = null);
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function ge(e) {
|
|
306
306
|
const o = u(["onClickOutside", "clickOutsideToClose"]);
|
|
307
|
-
let n =
|
|
308
|
-
n ||=
|
|
307
|
+
let n = be(p.current, e.target);
|
|
308
|
+
n ||= be(b(), e.target), n ||= !!t.current.hasPopupMouseDown, n || (o.onClickOutside?.(), o.clickOutsideToClose && (pe() || I() || f(!1)));
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function Xe(e) {
|
|
311
311
|
const o = e.key;
|
|
312
|
-
m("onKeyDown", e), o ===
|
|
312
|
+
m("onKeyDown", e), o === Ne.key && Ue(e);
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function Ue(e) {
|
|
315
315
|
const { escToClose: o } = u(["escToClose"]);
|
|
316
|
-
o && e && e.key ===
|
|
316
|
+
o && e && e.key === Ne.key && s && f(!1);
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function je(e) {
|
|
319
319
|
const { mouseEnterDelay: o } = u(["mouseEnterDelay"]);
|
|
320
320
|
m("onMouseEnter", e), E(), f(!0, o || 0);
|
|
321
321
|
}
|
|
322
|
-
function
|
|
323
|
-
m("onMouseMove", e), q(e), s &&
|
|
322
|
+
function qe(e) {
|
|
323
|
+
m("onMouseMove", e), q(e), s && B();
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function ye(e) {
|
|
326
326
|
const { mouseLeaveDelay: o } = u(["mouseLeaveDelay"]);
|
|
327
|
-
E(), m("onMouseLeave", e),
|
|
327
|
+
E(), m("onMouseLeave", e), Ke() && s && f(!1, o || 0);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function Ge() {
|
|
330
330
|
E();
|
|
331
331
|
}
|
|
332
|
-
function
|
|
333
|
-
|
|
332
|
+
function Je(e) {
|
|
333
|
+
ye(e);
|
|
334
334
|
}
|
|
335
335
|
function q(e) {
|
|
336
336
|
u(["alignPoint"]).alignPoint && (t.current.mouseLocation = {
|
|
@@ -338,34 +338,34 @@ function So(d, $) {
|
|
|
338
338
|
clientY: e.clientY
|
|
339
339
|
});
|
|
340
340
|
}
|
|
341
|
-
function
|
|
342
|
-
e.preventDefault(), m("onContextMenu", e), q(e), s ? u(["alignPoint"]).alignPoint &&
|
|
341
|
+
function Ze(e) {
|
|
342
|
+
e.preventDefault(), m("onContextMenu", e), q(e), s ? u(["alignPoint"]).alignPoint && B() : f(!0, 0);
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function Te(e) {
|
|
345
345
|
s && (t.current.mousedownToHide = !0), m("onClick", e), U() && s && f(!s, 0);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function eo(e) {
|
|
348
348
|
s && (t.current.mousedownToHide = !0), m("onClick", e), q(e), !(!U() && s) && f(!s, 0);
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function oo(e) {
|
|
351
351
|
const { focusDelay: o } = u(["focusDelay"]), n = () => {
|
|
352
352
|
m("onFocus", e);
|
|
353
353
|
};
|
|
354
354
|
E(), t.current.mousedownToHide || (s ? n?.() : f(!0, o || 0, n)), t.current.mousedownToHide = !1;
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function to(e) {
|
|
357
357
|
f(!1, 200, () => m("onBlur", e));
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function Ce() {
|
|
360
360
|
s && u(["autoFixPosition"]).autoFixPosition && N();
|
|
361
361
|
}
|
|
362
362
|
function _() {
|
|
363
363
|
const { children: e } = i, o = e, n = o && typeof o != "string" && o.type;
|
|
364
364
|
let r = e;
|
|
365
|
-
if (["string", "number"].indexOf(typeof e) > -1 ||
|
|
365
|
+
if (["string", "number"].indexOf(typeof e) > -1 || Se.count(e) > 1)
|
|
366
366
|
r = /* @__PURE__ */ h("span", { children: e });
|
|
367
367
|
else if (o && n && (n.__PQB_BUTTON === !0 || n.__PQB_CHECKBOX === !0 || n.__PQB_SWITCH === !0 || n.__PQB_RADIO === !0 || n === "button") && o.props.disabled) {
|
|
368
|
-
const { picked: c, omitted: a } =
|
|
368
|
+
const { picked: c, omitted: a } = So(o.props.style, [
|
|
369
369
|
"position",
|
|
370
370
|
"left",
|
|
371
371
|
"right",
|
|
@@ -380,7 +380,7 @@ function So(d, $) {
|
|
|
380
380
|
{
|
|
381
381
|
className: o.props?.className,
|
|
382
382
|
style: { display: "inline-block", ...c, cursor: "not-allowed" },
|
|
383
|
-
children:
|
|
383
|
+
children: ve(o, {
|
|
384
384
|
style: {
|
|
385
385
|
...a,
|
|
386
386
|
pointerEvents: "none"
|
|
@@ -394,32 +394,32 @@ function So(d, $) {
|
|
|
394
394
|
}
|
|
395
395
|
function m(e, o) {
|
|
396
396
|
const n = _(), r = n && n.props && n.props[e], c = u([e])[e];
|
|
397
|
-
|
|
397
|
+
w(r) && r(o), w(c) && c(o);
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function D(e) {
|
|
400
400
|
const o = _(), n = o && o.props && o.props[e], r = u([e])[e];
|
|
401
|
-
return
|
|
401
|
+
return w(r) && w(n) ? (c) => {
|
|
402
402
|
n(c), r(c);
|
|
403
403
|
} : n || r;
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function he() {
|
|
406
406
|
const e = u(["containerScrollToClose", "updateOnScroll"]);
|
|
407
407
|
e.containerScrollToClose ? f(!1) : e.updateOnScroll && N();
|
|
408
408
|
}
|
|
409
|
-
function
|
|
410
|
-
t.current.scrollElements || (t.current.scrollElements =
|
|
409
|
+
function no() {
|
|
410
|
+
t.current.scrollElements || (t.current.scrollElements = yo(
|
|
411
411
|
b()
|
|
412
412
|
// refPopupContainer.current.parentNode as HTMLElement,
|
|
413
|
-
),
|
|
414
|
-
G(e, "scroll",
|
|
413
|
+
), Me(t.current.scrollElements) && (i.containerScrollToClose && S.current?.parentNode === document.body && t.current.scrollElements.indexOf(document.body) === -1 && To(document.documentElement) && t.current.scrollElements.push(window), t.current.scrollElements.forEach((e) => {
|
|
414
|
+
G(e, "scroll", he);
|
|
415
415
|
})));
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function Pe() {
|
|
418
418
|
t.current.scrollElements && (t.current.scrollElements.forEach((e) => {
|
|
419
|
-
J(e, "scroll",
|
|
419
|
+
J(e, "scroll", he);
|
|
420
420
|
}), t.current.scrollElements = null);
|
|
421
421
|
}
|
|
422
|
-
|
|
422
|
+
ao($, () => ({
|
|
423
423
|
getRootDOMNode: b,
|
|
424
424
|
getRootElement: b,
|
|
425
425
|
getPopupElement() {
|
|
@@ -427,20 +427,20 @@ function So(d, $) {
|
|
|
427
427
|
},
|
|
428
428
|
getChild: _,
|
|
429
429
|
getPopupStyle: j,
|
|
430
|
-
getTransformTranslate:
|
|
431
|
-
getTransformOrigin:
|
|
432
|
-
updateThrottleByRaf:
|
|
430
|
+
getTransformTranslate: de,
|
|
431
|
+
getTransformOrigin: fe,
|
|
432
|
+
updateThrottleByRaf: B,
|
|
433
433
|
update: C,
|
|
434
434
|
updatePopupStyle: C,
|
|
435
435
|
updatePopupPosition: N,
|
|
436
436
|
handleUpdatePosition: W,
|
|
437
437
|
setPopupVisible: f,
|
|
438
|
-
delayToDo:
|
|
439
|
-
})),
|
|
438
|
+
delayToDo: me
|
|
439
|
+
})), po(() => (C(), () => {
|
|
440
440
|
}), [
|
|
441
441
|
p.current,
|
|
442
|
-
se.current,
|
|
443
442
|
ue.current,
|
|
443
|
+
ce.current,
|
|
444
444
|
t.current.rootElement
|
|
445
445
|
]), g(() => {
|
|
446
446
|
const e = S.current?.parentNode, o = Z([e], N);
|
|
@@ -448,18 +448,18 @@ function So(d, $) {
|
|
|
448
448
|
o();
|
|
449
449
|
};
|
|
450
450
|
}, [S.current?.parentNode]), g(() => {
|
|
451
|
-
const e = p.current, o = Z([e],
|
|
451
|
+
const e = p.current, o = Z([e], Ce);
|
|
452
452
|
return () => {
|
|
453
453
|
o();
|
|
454
454
|
};
|
|
455
455
|
}, [p.current]), g(() => {
|
|
456
|
-
const e = t.current.rootElement, o = Z([e],
|
|
456
|
+
const e = t.current.rootElement, o = Z([e], Ce);
|
|
457
457
|
return () => {
|
|
458
458
|
o();
|
|
459
459
|
};
|
|
460
460
|
}, [t.current.rootElement]), g(() => {
|
|
461
461
|
const e = t.current.rootElement;
|
|
462
|
-
return s && (t.current.childrenDomSize =
|
|
462
|
+
return s && (t.current.childrenDomSize = Mo(e, {
|
|
463
463
|
boundaryDistance: i.alignPoint ? void 0 : i.boundaryDistance,
|
|
464
464
|
position: i.position
|
|
465
465
|
})), () => {
|
|
@@ -469,8 +469,8 @@ function So(d, $) {
|
|
|
469
469
|
i.alignPoint,
|
|
470
470
|
i.boundaryDistance,
|
|
471
471
|
i.position
|
|
472
|
-
]), g(() => (s && (i.updateOnScroll || i.containerScrollToClose ?
|
|
473
|
-
|
|
472
|
+
]), g(() => (s && (i.updateOnScroll || i.containerScrollToClose ? no() : (N(), Pe())), () => {
|
|
473
|
+
Pe();
|
|
474
474
|
}), [
|
|
475
475
|
s,
|
|
476
476
|
i.updateOnScroll,
|
|
@@ -485,30 +485,30 @@ function So(d, $) {
|
|
|
485
485
|
// 2. 点击label标签,会触发对应input元素的点击事件,导致触发clickOutside,隐藏popup。
|
|
486
486
|
capture: ee(e) ? e.capture : !1
|
|
487
487
|
};
|
|
488
|
-
return s && (G(n, "mousedown",
|
|
489
|
-
J(n, "mousedown",
|
|
488
|
+
return s && (G(n, "mousedown", ge, r), G(window, "resize", W)), () => {
|
|
489
|
+
J(n, "mousedown", ge, r), J(window, "resize", W);
|
|
490
490
|
};
|
|
491
|
-
}, [s]), g(() => (
|
|
491
|
+
}, [s]), g(() => (ze && O((e) => {
|
|
492
492
|
const o = { ...e };
|
|
493
493
|
return o.popupVisible = !!i?.defaultPopupVisible, o;
|
|
494
494
|
}), () => {
|
|
495
|
-
}), []), g(() => (
|
|
495
|
+
}), []), g(() => (ie && O((e) => {
|
|
496
496
|
const o = { ...e };
|
|
497
497
|
return o.popupVisible = !!K, o;
|
|
498
498
|
}), () => {
|
|
499
499
|
}), [K]), g(() => () => {
|
|
500
|
-
|
|
500
|
+
We();
|
|
501
501
|
}, []);
|
|
502
|
-
const
|
|
502
|
+
const ro = se && ve(k, {
|
|
503
503
|
...l,
|
|
504
|
-
ref:
|
|
505
|
-
t.current.child = e,
|
|
504
|
+
ref: Co(k) ? (e) => {
|
|
505
|
+
t.current.child = e, Eo(k, e);
|
|
506
506
|
} : void 0
|
|
507
|
-
}),
|
|
508
|
-
|
|
507
|
+
}), io = /* @__PURE__ */ h(
|
|
508
|
+
so,
|
|
509
509
|
{
|
|
510
510
|
in: !!s,
|
|
511
|
-
timeout:
|
|
511
|
+
timeout: Ie,
|
|
512
512
|
classNames: A,
|
|
513
513
|
unmountOnExit: ne,
|
|
514
514
|
appear: !0,
|
|
@@ -516,7 +516,7 @@ function So(d, $) {
|
|
|
516
516
|
onEnter: () => {
|
|
517
517
|
t.current.triggerDestoried = !1;
|
|
518
518
|
const e = p.current;
|
|
519
|
-
e && (e.style.display = "initial", e.style.pointerEvents = "none", A === "slideDynamicOrigin" && (e.style.transform =
|
|
519
|
+
e && (e.style.display = "initial", e.style.pointerEvents = "none", A === "slideDynamicOrigin" && (e.style.transform = de()), C());
|
|
520
520
|
},
|
|
521
521
|
onEntering: () => {
|
|
522
522
|
const e = p.current;
|
|
@@ -528,24 +528,24 @@ function So(d, $) {
|
|
|
528
528
|
},
|
|
529
529
|
onExit: () => {
|
|
530
530
|
const e = p.current;
|
|
531
|
-
e && (e.style.pointerEvents = "none",
|
|
531
|
+
e && (e.style.pointerEvents = "none", Fe?.(e));
|
|
532
532
|
},
|
|
533
533
|
onExited: () => {
|
|
534
534
|
const e = p.current;
|
|
535
535
|
e && (e.style.display = "none", ne && (t.current.triggerDestoried = !0), O((o) => {
|
|
536
536
|
const n = { ...o };
|
|
537
537
|
return n.popupStyle = {}, n;
|
|
538
|
-
}),
|
|
538
|
+
}), Re?.(e));
|
|
539
539
|
},
|
|
540
540
|
nodeRef: p,
|
|
541
|
-
children: /* @__PURE__ */
|
|
541
|
+
children: /* @__PURE__ */ xe(
|
|
542
542
|
"span",
|
|
543
543
|
{
|
|
544
544
|
ref: p,
|
|
545
545
|
"trigger-placement": t.current.realPosition,
|
|
546
|
-
...
|
|
546
|
+
...Po(i),
|
|
547
547
|
style: {
|
|
548
|
-
width:
|
|
548
|
+
width: Ve && te?.width === void 0 ? t.current.childrenDomSize?.width : "",
|
|
549
549
|
...Y.popupStyle,
|
|
550
550
|
position: "absolute",
|
|
551
551
|
zIndex: T || "",
|
|
@@ -553,7 +553,7 @@ function So(d, $) {
|
|
|
553
553
|
// display
|
|
554
554
|
},
|
|
555
555
|
...Q,
|
|
556
|
-
className:
|
|
556
|
+
className: Ye,
|
|
557
557
|
children: [
|
|
558
558
|
ee(re) ? /* @__PURE__ */ h(
|
|
559
559
|
H.type,
|
|
@@ -563,26 +563,26 @@ function So(d, $) {
|
|
|
563
563
|
style: { ...H.props.style, ...re }
|
|
564
564
|
}
|
|
565
565
|
) : H,
|
|
566
|
-
(
|
|
566
|
+
(_e || V) && /* @__PURE__ */ h(
|
|
567
567
|
"div",
|
|
568
568
|
{
|
|
569
|
-
ref:
|
|
569
|
+
ref: ue,
|
|
570
570
|
className: R(`${v}-arrow-container`, {
|
|
571
571
|
[`${P}-arrow-container`]: P
|
|
572
572
|
}),
|
|
573
573
|
children: /* @__PURE__ */ h(
|
|
574
574
|
"div",
|
|
575
575
|
{
|
|
576
|
-
ref:
|
|
577
|
-
...
|
|
576
|
+
ref: ce,
|
|
577
|
+
...V,
|
|
578
578
|
className: R(
|
|
579
579
|
`${v}-arrow`,
|
|
580
580
|
{
|
|
581
581
|
[`${P}-arrow`]: P
|
|
582
582
|
},
|
|
583
|
-
|
|
583
|
+
V?.className
|
|
584
584
|
),
|
|
585
|
-
style: { ...t.current.arrowStyle, ...
|
|
585
|
+
style: { ...t.current.arrowStyle, ...V?.style }
|
|
586
586
|
}
|
|
587
587
|
)
|
|
588
588
|
}
|
|
@@ -592,26 +592,26 @@ function So(d, $) {
|
|
|
592
592
|
)
|
|
593
593
|
}
|
|
594
594
|
);
|
|
595
|
-
let F,
|
|
596
|
-
if (
|
|
595
|
+
let F, Ee = s;
|
|
596
|
+
if (Ee ||= !!p.current && !t.current.triggerDestoried, Ee) {
|
|
597
597
|
const e = i.getPopupContainer || y.getPopupContainer;
|
|
598
|
-
if (
|
|
598
|
+
if (w(e)) {
|
|
599
599
|
const o = e(b());
|
|
600
|
-
o && (F =
|
|
601
|
-
/* @__PURE__ */ h("div", { ref: S, className: `${v}-container`, children:
|
|
600
|
+
o && (F = mo(
|
|
601
|
+
/* @__PURE__ */ h("div", { ref: S, className: `${v}-container`, children: io }),
|
|
602
602
|
o
|
|
603
603
|
// popupVisible ? 1 : 0,
|
|
604
604
|
));
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
|
-
return
|
|
608
|
-
|
|
607
|
+
return se && (F = /* @__PURE__ */ xe(fo, { children: [
|
|
608
|
+
ro,
|
|
609
609
|
F
|
|
610
610
|
] })), F;
|
|
611
611
|
}
|
|
612
|
-
const
|
|
613
|
-
|
|
612
|
+
const bo = uo(vo);
|
|
613
|
+
bo.displayName = "Trigger";
|
|
614
614
|
export {
|
|
615
|
-
|
|
616
|
-
|
|
615
|
+
Uo as EventsByTriggerNeed,
|
|
616
|
+
bo as default
|
|
617
617
|
};
|
|
@@ -10,7 +10,7 @@ type Options = {
|
|
|
10
10
|
};
|
|
11
11
|
export default function useTheme(options?: Options): {
|
|
12
12
|
theme: ThemeType;
|
|
13
|
-
themeMode: "
|
|
14
|
-
setThemeMode: (this: unknown, mode: "
|
|
13
|
+
themeMode: "light" | "dark" | "system";
|
|
14
|
+
setThemeMode: (this: unknown, mode: "light" | "dark" | "system") => void;
|
|
15
15
|
};
|
|
16
16
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function useStateWithPromise<T>(defaultVal: T): [T, (updater: any) => Promise<T>];
|
|
1
|
+
declare function useStateWithPromise<T>(defaultVal: T, wait?: number): [T, (updater: any) => Promise<T>];
|
|
2
2
|
export default useStateWithPromise;
|