@unicom-cloud/ui 0.8.112 → 0.8.113
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/AutoComplete.js +1 -1
- package/BackTop.js +1 -1
- package/Badge.js +1 -1
- 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 +16 -50
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Details.js +14 -50
- package/Development.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +1 -1
- package/Empty.js +1 -1
- package/Flex.js +15 -51
- 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 +16 -51
- package/List.js +1 -1
- package/Loading.js +14 -50
- package/Marquee.js +23 -46
- package/Mentions.js +1 -1
- package/Menu.js +1 -1
- package/Message.js +1 -1
- package/Modal.js +1 -1
- package/Notice.js +13 -49
- package/Notification.js +1 -1
- 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 +14 -51
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/RichText.js +12 -13
- package/Segmented.js +15 -50
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +15 -51
- package/Spin.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +1 -1
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +1 -1
- package/Tour.js +17 -53
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +1 -1
- package/affix/index.js +1 -1
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +2 -2
- 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 +1 -1
- package/badge/index.js +1 -1
- 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/{0BhDjhcd.js → 3t4FwEoB.js} +1 -1
- package/chunk/{KPBMJlOB.js → BHAu6wbC.js} +1 -1
- package/chunk/{DhAvt6tJ.js → Bcl7dWlJ.js} +2 -2
- package/chunk/{CrOzsnI0.js → Bl3hZtxi.js} +1 -1
- package/chunk/{BfVlSL8A.js → Bzx5BueA.js} +3 -3
- package/chunk/CVMFAeSw.js +39 -0
- package/chunk/{C1vY8016.js → CYDaUML7.js} +77 -108
- package/chunk/{CYssV-zz.js → CbXCgtzv.js} +65 -99
- package/chunk/ClNkxEcR.js +154 -0
- package/chunk/{DfUcAhyT.js → CwLSam2p.js} +2 -2
- package/chunk/Cy26_CKq.js +33 -0
- package/chunk/{BiZSULcr.js → D0dVE1v1.js} +317 -350
- package/chunk/{CtCFA4ht.js → DA5AMZwY.js} +3 -3
- package/chunk/{DfbO4QTS.js → DB0hUIM1.js} +1 -1
- package/chunk/{DMv8Hn4u.js → De8RLlOK.js} +1 -1
- package/chunk/{C3kH2ES3.js → DrYaod6k.js} +1 -1
- package/chunk/{CylbdYce.js → DzlfiVe2.js} +1 -1
- package/chunk/gJsdBcpG.js +10 -0
- package/chunk/{Cx92e1S8.js → yWKJUe_w.js} +3 -3
- package/collapse/Collapse.js +1 -1
- package/collapse/Item.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/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 +41 -75
- 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 +46 -82
- package/development/index.js +1 -1
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +1 -1
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +1 -1
- package/empty/index.js +1 -1
- package/flex/index.js +37 -71
- package/form/Form.js +2 -2
- package/form/FormItem.js +1 -1
- package/form/index.js +1 -1
- package/grid/Grid.js +1 -1
- package/grid/Item.js +1 -1
- package/hooks/index.js +6 -6
- package/hooks/useId.js +1 -1
- package/hooks/useResizeObserver.js +7 -50
- package/hooks/useStateWithPromise.js +1 -1
- package/hooks/useWindowSize.js +1 -1
- package/icon/index.js +1 -1
- package/icon-hover/index.js +1 -1
- package/icons/file.js +1 -1
- package/image/Image.js +2 -2
- package/image/ImagePreview.js +17 -52
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +379 -378
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +1 -1
- 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-number/index.js +1 -1
- package/input-tag/InputTag.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/index.js +1 -1
- package/link/index.js +1 -1
- package/liquid-fill/index.js +56 -91
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +1 -1
- package/loading/index.js +26 -62
- package/marquee/index.js +70 -93
- package/marquee-/index.js +73 -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 +1 -1
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +2 -2
- package/modal/index.js +2 -2
- package/notice/index.js +13 -49
- package/notification/index.js +1 -1
- 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 +26 -63
- 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 +1 -1
- package/resize-box/SplitGroup.js +1 -1
- package/resize-box/index.js +1 -1
- 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 +118 -153
- 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 +1 -1
- package/slider/index.js +1 -1
- package/space/index.js +23 -59
- 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 +1 -1
- 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 +80 -116
- package/transfer/Item.js +2 -2
- package/transfer/List.js +2 -2
- package/transfer/index.js +1 -1
- package/tree/Animation.js +2 -2
- 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/index.js +1 -1
- package/types/common/hooks/src/use-theme/index.d.ts +2 -2
- package/types/common/hooks/useStateWithPromise.d.ts +1 -1
- package/types/common/utils/dom.d.ts +12 -0
- 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/index.d.ts +1 -1
- package/types/pc/list/interface.d.ts +2 -2
- package/types/pc/menu/context.d.ts +1 -1
- 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/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 +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/date.js +1 -0
- package/utils/index.js +70 -70
- 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/DsuIQH0F.js +0 -200
- 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/common/utils/validate.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/marquee/index.js
CHANGED
|
@@ -1,30 +1,34 @@
|
|
|
1
|
-
import { jsx as s, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { a as
|
|
1
|
+
import { jsx as s, Fragment as re, jsxs as H } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as ie, useContext as oe, useState as C, useRef as j, useCallback as A, useEffect as O, useMemo as h, Fragment as ne, Children as B } from "react";
|
|
3
|
+
import { a as ae } from "../chunk/CYDaUML7.js";
|
|
4
4
|
import "../chunk/DsaQZE4X.js";
|
|
5
|
-
import "@unicom-cloud/utils/
|
|
6
|
-
import "
|
|
7
|
-
import
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
11
|
-
import "../chunk/
|
|
12
|
-
import "@unicom-cloud/utils/emitter";
|
|
13
|
-
import "@unicom-cloud/utils/file/fileToURL";
|
|
14
|
-
import "lodash/escapeRegExp";
|
|
15
|
-
import "lodash/isArray";
|
|
16
|
-
import "lodash/isNumber";
|
|
17
|
-
import "lodash/isString";
|
|
18
|
-
import "lodash/isFunction";
|
|
5
|
+
import "@unicom-cloud/utils/constant/platform";
|
|
6
|
+
import "../chunk/CdXR6dj7.js";
|
|
7
|
+
import "@unicom-cloud/utils/js-cookie";
|
|
8
|
+
import "dayjs";
|
|
9
|
+
import "lodash/debounce";
|
|
10
|
+
import "@unicom-cloud/utils/screenfull";
|
|
11
|
+
import "../chunk/ClNkxEcR.js";
|
|
19
12
|
import "lodash/throttle";
|
|
13
|
+
import "lodash/isPlainObject";
|
|
14
|
+
import "@unicom-cloud/utils/query-string";
|
|
15
|
+
import "react-router";
|
|
16
|
+
import "lodash/isEqualWith";
|
|
17
|
+
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
18
|
+
import "lodash/isNumber";
|
|
19
|
+
import se from "lodash/merge";
|
|
20
|
+
import "../chunk/d1c9z8T1.js";
|
|
21
|
+
import "../chunk/RjJoagzL.js";
|
|
22
|
+
import { u as le } from "../chunk/FgWHhRFz.js";
|
|
23
|
+
import "../chunk/CXrVhA6-.js";
|
|
24
|
+
import "@unicom-cloud/utils/constant";
|
|
25
|
+
import me from "@unicom-cloud/utils/class-name";
|
|
20
26
|
import "lodash/camelCase";
|
|
21
27
|
import "lodash/capitalize";
|
|
22
28
|
import "lodash/cloneDeep";
|
|
23
|
-
import "lodash/debounce";
|
|
24
29
|
import "lodash/get";
|
|
25
30
|
import "lodash/has";
|
|
26
31
|
import "lodash/kebabCase";
|
|
27
|
-
import mt from "lodash/merge";
|
|
28
32
|
import "lodash/mergeWith";
|
|
29
33
|
import "lodash/set";
|
|
30
34
|
import "lodash/setWith";
|
|
@@ -32,35 +36,8 @@ import "lodash/snakeCase";
|
|
|
32
36
|
import "lodash/startCase";
|
|
33
37
|
import "lodash/uniq";
|
|
34
38
|
import "lodash/upperFirst";
|
|
35
|
-
import "
|
|
36
|
-
import "
|
|
37
|
-
import "@unicom-cloud/utils/pinyin";
|
|
38
|
-
import "../chunk/BJ9_azwQ.js";
|
|
39
|
-
import "../chunk/CXrVhA6-.js";
|
|
40
|
-
import { r as lt } from "../chunk/CHQ8c547.js";
|
|
41
|
-
import "@unicom-cloud/utils/file/saveAs";
|
|
42
|
-
import "@unicom-cloud/utils/screenfull";
|
|
43
|
-
import "@unicom-cloud/utils/constant/ui.js";
|
|
44
|
-
import "@unicom-cloud/utils/tinycolor";
|
|
45
|
-
import "@unicom-cloud/utils/ui-color";
|
|
46
|
-
import "react-is";
|
|
47
|
-
import "@unicom-cloud/utils/tree";
|
|
48
|
-
import { isPlainObject as pt } from "@unicom-cloud/utils/is";
|
|
49
|
-
import "uuid";
|
|
50
|
-
import "../chunk/hc_ufgVf.js";
|
|
51
|
-
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
52
|
-
import "@unicom-cloud/utils/constant/platform";
|
|
53
|
-
import "../chunk/CdXR6dj7.js";
|
|
54
|
-
import "@unicom-cloud/utils/js-cookie";
|
|
55
|
-
import "dayjs";
|
|
56
|
-
import "../chunk/DsuIQH0F.js";
|
|
57
|
-
import "@unicom-cloud/utils/query-string";
|
|
58
|
-
import "react-router";
|
|
59
|
-
import "lodash/isEqualWith";
|
|
60
|
-
import "../chunk/RjJoagzL.js";
|
|
61
|
-
import { u as ct } from "../chunk/FgWHhRFz.js";
|
|
62
|
-
import "@unicom-cloud/utils/constant";
|
|
63
|
-
import "../utils/responsiveObserve.js";
|
|
39
|
+
import { r as ce } from "../chunk/CHQ8c547.js";
|
|
40
|
+
import { isPlainObject as pe } from "@unicom-cloud/utils/is";
|
|
64
41
|
const o = {
|
|
65
42
|
autoFill: !1,
|
|
66
43
|
play: !0,
|
|
@@ -71,20 +48,20 @@ const o = {
|
|
|
71
48
|
delay: 0.0227,
|
|
72
49
|
// 设置非 0 为了解决 onAnimationEnd={onFinish} 立即被调用的问题
|
|
73
50
|
loop: 0
|
|
74
|
-
},
|
|
51
|
+
}, Ze = ie(
|
|
75
52
|
function(E, I) {
|
|
76
|
-
const { getPrefixCls: z, componentConfig: V } =
|
|
53
|
+
const { getPrefixCls: z, componentConfig: V } = oe(ae), i = z?.("marquee"), e = z?.("marquee-var"), _ = le(
|
|
77
54
|
E,
|
|
78
55
|
o,
|
|
79
56
|
V?.Marquee
|
|
80
57
|
), {
|
|
81
58
|
style: F,
|
|
82
59
|
className: D,
|
|
83
|
-
autoFill:
|
|
84
|
-
play:
|
|
60
|
+
autoFill: l = o.autoFill,
|
|
61
|
+
play: p = o.play,
|
|
85
62
|
pauseOnHover: v = o.pauseOnHover,
|
|
86
63
|
pauseOnClick: M = o.pauseOnClick,
|
|
87
|
-
direction:
|
|
64
|
+
direction: t = o.direction,
|
|
88
65
|
speed: q = o.speed,
|
|
89
66
|
delay: W = o.delay,
|
|
90
67
|
loop: x = o.loop,
|
|
@@ -93,84 +70,84 @@ const o = {
|
|
|
93
70
|
onCycleComplete: K,
|
|
94
71
|
onMount: w,
|
|
95
72
|
children: g
|
|
96
|
-
} = _, L =
|
|
73
|
+
} = _, L = t === "left" || t === "right";
|
|
97
74
|
let r = G;
|
|
98
|
-
r === !0 && (r = {}),
|
|
75
|
+
r === !0 && (r = {}), pe(r) && (r = se(
|
|
99
76
|
{ size: L ? 50 : 20, color: "#fff" },
|
|
100
77
|
r
|
|
101
78
|
));
|
|
102
|
-
const [k, Q] = C(0), [$, T] = C(0), [y, U] = C(1), [N, X] = C(!1), Y = j(null),
|
|
103
|
-
if (u.current &&
|
|
104
|
-
const n =
|
|
105
|
-
let a = n.width,
|
|
106
|
-
(
|
|
107
|
-
|
|
108
|
-
), Q(a), T(
|
|
79
|
+
const [k, Q] = C(0), [$, T] = C(0), [y, U] = C(1), [N, X] = C(!1), Y = j(null), m = I || Y, u = j(null), d = A(() => {
|
|
80
|
+
if (u.current && m.current) {
|
|
81
|
+
const n = m.current.getBoundingClientRect(), f = u.current.getBoundingClientRect();
|
|
82
|
+
let a = n.width, c = f.width;
|
|
83
|
+
(t === "up" || t === "down") && (a = n.height, c = f.height), U(
|
|
84
|
+
l && a && c ? Math.max(2, Math.ceil(a / c)) : 1
|
|
85
|
+
), Q(a), T(c);
|
|
109
86
|
}
|
|
110
|
-
}, [
|
|
87
|
+
}, [l, m, t]);
|
|
111
88
|
O(() => {
|
|
112
89
|
if (!N) return;
|
|
113
90
|
d();
|
|
114
|
-
const n =
|
|
115
|
-
[
|
|
91
|
+
const n = ce(
|
|
92
|
+
[m.current, u.current],
|
|
116
93
|
d
|
|
117
94
|
);
|
|
118
95
|
return () => {
|
|
119
96
|
n();
|
|
120
97
|
};
|
|
121
|
-
}, [d,
|
|
98
|
+
}, [d, m, u, N]), O(() => (d(), () => {
|
|
122
99
|
}), [d, g]), O(() => (X(!0), w && w(), () => {
|
|
123
100
|
}), [w]);
|
|
124
|
-
const P = h(() => $ ?
|
|
101
|
+
const P = h(() => $ ? l ? $ * y / q : Math.max(k, $) / q : 0, [l, k, $, y, q]), Z = h(
|
|
125
102
|
() => ({
|
|
126
103
|
...F,
|
|
127
|
-
[`--${
|
|
128
|
-
[`--${
|
|
129
|
-
[`--${
|
|
130
|
-
[`--${
|
|
104
|
+
[`--${e}-pause-on-hover`]: !p || v ? "paused" : "running",
|
|
105
|
+
[`--${e}-pause-on-click`]: !p || v && !M || M ? "paused" : "running",
|
|
106
|
+
[`--${e}-width`]: t === "up" || t === "down" ? "100vh" : "100%",
|
|
107
|
+
[`--${e}-transform`]: t === "up" ? "rotate(-90deg)" : t === "down" ? "rotate(90deg)" : "none"
|
|
131
108
|
}),
|
|
132
|
-
[F,
|
|
133
|
-
),
|
|
109
|
+
[F, e, p, v, M, t]
|
|
110
|
+
), ee = h(
|
|
134
111
|
() => ({
|
|
135
|
-
[`--${
|
|
136
|
-
[`--${
|
|
112
|
+
[`--${e}-gradient-color`]: r?.color,
|
|
113
|
+
[`--${e}-gradient-width`]: typeof r?.size == "number" ? `${r?.size}px` : r?.size
|
|
137
114
|
}),
|
|
138
|
-
[r?.color, r?.size,
|
|
115
|
+
[r?.color, r?.size, e]
|
|
139
116
|
), S = h(
|
|
140
117
|
() => ({
|
|
141
|
-
[`--${
|
|
142
|
-
[`--${
|
|
143
|
-
[`--${
|
|
144
|
-
[`--${
|
|
145
|
-
[`--${
|
|
146
|
-
[`--${
|
|
118
|
+
[`--${e}-play`]: p ? "running" : "paused",
|
|
119
|
+
[`--${e}-direction`]: t === "left" ? "normal" : "reverse",
|
|
120
|
+
[`--${e}-duration`]: `${P}s`,
|
|
121
|
+
[`--${e}-delay`]: `${W}s`,
|
|
122
|
+
[`--${e}-iteration-count`]: x ? `${x}` : "infinite",
|
|
123
|
+
[`--${e}-min-width`]: l ? "auto" : "100%"
|
|
147
124
|
}),
|
|
148
|
-
[
|
|
125
|
+
[e, p, t, P, W, x, l]
|
|
149
126
|
), R = h(
|
|
150
127
|
() => ({
|
|
151
|
-
[`--${
|
|
128
|
+
[`--${e}-transform`]: t === "up" ? "rotate(90deg)" : t === "down" ? "rotate(-90deg)" : "none"
|
|
152
129
|
}),
|
|
153
|
-
[
|
|
130
|
+
[t, e]
|
|
154
131
|
), b = A(
|
|
155
|
-
(n) => Array.from({ length: n }).map((f, a) => /* @__PURE__ */ s(
|
|
132
|
+
(n) => Array.from({ length: n }).map((f, a) => /* @__PURE__ */ s(ne, { children: B.map(g, (c, te) => /* @__PURE__ */ s(
|
|
156
133
|
"div",
|
|
157
134
|
{
|
|
158
135
|
style: R,
|
|
159
136
|
className: `${i}-child`,
|
|
160
|
-
children:
|
|
137
|
+
children: c
|
|
161
138
|
},
|
|
162
|
-
`child-${a}-${
|
|
139
|
+
`child-${a}-${te}`
|
|
163
140
|
)) }, a)),
|
|
164
141
|
[g, R, i]
|
|
165
142
|
);
|
|
166
|
-
return N ? /* @__PURE__ */ s(
|
|
143
|
+
return N ? /* @__PURE__ */ s(re, { children: /* @__PURE__ */ H(
|
|
167
144
|
"div",
|
|
168
145
|
{
|
|
169
|
-
ref:
|
|
146
|
+
ref: m,
|
|
170
147
|
style: Z,
|
|
171
|
-
className:
|
|
148
|
+
className: me(i, `${i}-${t}`, D),
|
|
172
149
|
children: [
|
|
173
|
-
!!r && /* @__PURE__ */ s("div", { style:
|
|
150
|
+
!!r && /* @__PURE__ */ s("div", { style: ee, className: `${i}-overlay` }),
|
|
174
151
|
/* @__PURE__ */ H(
|
|
175
152
|
"div",
|
|
176
153
|
{
|
|
@@ -206,5 +183,5 @@ const o = {
|
|
|
206
183
|
}
|
|
207
184
|
);
|
|
208
185
|
export {
|
|
209
|
-
|
|
186
|
+
Ze as default
|
|
210
187
|
};
|
package/marquee-/index.js
CHANGED
|
@@ -1,30 +1,34 @@
|
|
|
1
|
-
import { jsxs as z, jsx as
|
|
1
|
+
import { jsxs as z, jsx as m, Fragment as x } from "react/jsx-runtime";
|
|
2
2
|
import { useContext as V, useRef as C, useState as u, useEffect as F } from "react";
|
|
3
|
-
import { a as Z } from "../chunk/
|
|
3
|
+
import { a as Z } from "../chunk/CYDaUML7.js";
|
|
4
4
|
import "../chunk/DsaQZE4X.js";
|
|
5
|
-
import "@unicom-cloud/utils/
|
|
6
|
-
import "
|
|
7
|
-
import
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
11
|
-
import "../chunk/
|
|
12
|
-
import "@unicom-cloud/utils/emitter";
|
|
13
|
-
import "@unicom-cloud/utils/file/fileToURL";
|
|
14
|
-
import "lodash/escapeRegExp";
|
|
15
|
-
import "lodash/isArray";
|
|
16
|
-
import "lodash/isNumber";
|
|
17
|
-
import "lodash/isString";
|
|
18
|
-
import "lodash/isFunction";
|
|
5
|
+
import "@unicom-cloud/utils/constant/platform";
|
|
6
|
+
import "../chunk/CdXR6dj7.js";
|
|
7
|
+
import "@unicom-cloud/utils/js-cookie";
|
|
8
|
+
import "dayjs";
|
|
9
|
+
import "lodash/debounce";
|
|
10
|
+
import "@unicom-cloud/utils/screenfull";
|
|
11
|
+
import "../chunk/ClNkxEcR.js";
|
|
19
12
|
import "lodash/throttle";
|
|
13
|
+
import "lodash/isPlainObject";
|
|
14
|
+
import "@unicom-cloud/utils/query-string";
|
|
15
|
+
import "react-router";
|
|
16
|
+
import "lodash/isEqualWith";
|
|
17
|
+
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
18
|
+
import "lodash/isNumber";
|
|
19
|
+
import _ from "lodash/merge";
|
|
20
|
+
import "../chunk/d1c9z8T1.js";
|
|
21
|
+
import "../chunk/RjJoagzL.js";
|
|
22
|
+
import { u as tt } from "../chunk/FgWHhRFz.js";
|
|
23
|
+
import "../chunk/CXrVhA6-.js";
|
|
24
|
+
import "@unicom-cloud/utils/constant";
|
|
25
|
+
import et from "@unicom-cloud/utils/class-name";
|
|
20
26
|
import "lodash/camelCase";
|
|
21
27
|
import "lodash/capitalize";
|
|
22
28
|
import "lodash/cloneDeep";
|
|
23
|
-
import "lodash/debounce";
|
|
24
29
|
import "lodash/get";
|
|
25
30
|
import "lodash/has";
|
|
26
31
|
import "lodash/kebabCase";
|
|
27
|
-
import tt from "lodash/merge";
|
|
28
32
|
import "lodash/mergeWith";
|
|
29
33
|
import "lodash/set";
|
|
30
34
|
import "lodash/setWith";
|
|
@@ -32,68 +36,41 @@ import "lodash/snakeCase";
|
|
|
32
36
|
import "lodash/startCase";
|
|
33
37
|
import "lodash/uniq";
|
|
34
38
|
import "lodash/upperFirst";
|
|
35
|
-
import "
|
|
36
|
-
import "lodash/isPlainObject";
|
|
37
|
-
import "@unicom-cloud/utils/pinyin";
|
|
38
|
-
import "../chunk/BJ9_azwQ.js";
|
|
39
|
-
import "../chunk/CXrVhA6-.js";
|
|
40
|
-
import { r as et } from "../chunk/CHQ8c547.js";
|
|
41
|
-
import "@unicom-cloud/utils/file/saveAs";
|
|
42
|
-
import "@unicom-cloud/utils/screenfull";
|
|
43
|
-
import "@unicom-cloud/utils/constant/ui.js";
|
|
44
|
-
import "@unicom-cloud/utils/tinycolor";
|
|
45
|
-
import "@unicom-cloud/utils/ui-color";
|
|
46
|
-
import "react-is";
|
|
47
|
-
import "@unicom-cloud/utils/tree";
|
|
39
|
+
import { r as rt } from "../chunk/CHQ8c547.js";
|
|
48
40
|
import { isPlainObject as q } from "@unicom-cloud/utils/is";
|
|
49
|
-
|
|
50
|
-
import "../chunk/hc_ufgVf.js";
|
|
51
|
-
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
52
|
-
import "@unicom-cloud/utils/constant/platform";
|
|
53
|
-
import "../chunk/CdXR6dj7.js";
|
|
54
|
-
import "@unicom-cloud/utils/js-cookie";
|
|
55
|
-
import "dayjs";
|
|
56
|
-
import "../chunk/DsuIQH0F.js";
|
|
57
|
-
import "@unicom-cloud/utils/query-string";
|
|
58
|
-
import "react-router";
|
|
59
|
-
import "lodash/isEqualWith";
|
|
60
|
-
import "../chunk/RjJoagzL.js";
|
|
61
|
-
import { u as rt } from "../chunk/FgWHhRFz.js";
|
|
62
|
-
import "@unicom-cloud/utils/constant";
|
|
63
|
-
import "../utils/responsiveObserve.js";
|
|
64
|
-
const ot = {
|
|
41
|
+
const nt = {
|
|
65
42
|
speed: 50,
|
|
66
43
|
direction: "left",
|
|
67
44
|
pauseOnHover: !1,
|
|
68
45
|
loop: 0
|
|
69
|
-
},
|
|
70
|
-
const { getPrefixCls: L, componentConfig: D } = V(Z), s = L?.("marquee"), E =
|
|
46
|
+
}, Yt = (R) => {
|
|
47
|
+
const { getPrefixCls: L, componentConfig: D } = V(Z), s = L?.("marquee"), E = tt(
|
|
71
48
|
R,
|
|
72
|
-
|
|
49
|
+
nt,
|
|
73
50
|
D?.Marquee
|
|
74
51
|
), {
|
|
75
52
|
children: N,
|
|
76
53
|
style: W,
|
|
77
54
|
className: j,
|
|
78
55
|
speed: A = 50,
|
|
79
|
-
direction:
|
|
56
|
+
direction: l = "left",
|
|
80
57
|
pauseOnHover: P = !1,
|
|
81
58
|
loop: a = 0,
|
|
82
59
|
gradient: T = { color: "#fff" },
|
|
83
60
|
onComplete: h
|
|
84
|
-
} = E, g = C(void 0), B = C(void 0), $ = C(void 0), c = C(void 0), [S, I] = u({ width: 0, height: 0 }), [
|
|
85
|
-
let
|
|
86
|
-
q(
|
|
87
|
-
{ size:
|
|
88
|
-
|
|
61
|
+
} = E, g = C(void 0), B = C(void 0), $ = C(void 0), c = C(void 0), [S, I] = u({ width: 0, height: 0 }), [ot, X] = u({ width: 0, height: 0 }), [y, Y] = u(!1), [H, p] = u(!0), [k, f] = u(0), [M, v] = u(0), o = l === "left" || l === "right";
|
|
62
|
+
let n = T;
|
|
63
|
+
q(n) && (n = _(
|
|
64
|
+
{ size: o ? 50 : 20, color: "#fff" },
|
|
65
|
+
n
|
|
89
66
|
));
|
|
90
67
|
const O = () => {
|
|
91
68
|
if ($.current && g.current) {
|
|
92
|
-
const r = $.current.scrollWidth, t = $.current.scrollHeight,
|
|
93
|
-
I({ width: r, height: t }), X({ width:
|
|
94
|
-
const d =
|
|
69
|
+
const r = $.current.scrollWidth, t = $.current.scrollHeight, i = g.current.offsetWidth, e = g.current.offsetHeight;
|
|
70
|
+
I({ width: r, height: t }), X({ width: i, height: e });
|
|
71
|
+
const d = o ? r > i : t > e;
|
|
95
72
|
if (Y(d), d) {
|
|
96
|
-
const b =
|
|
73
|
+
const b = l === "right" ? -r : l === "down" ? -t : 0;
|
|
97
74
|
f(b);
|
|
98
75
|
}
|
|
99
76
|
}
|
|
@@ -101,7 +78,7 @@ const ot = {
|
|
|
101
78
|
F(() => {
|
|
102
79
|
const r = g.current;
|
|
103
80
|
if (!r) return;
|
|
104
|
-
const t =
|
|
81
|
+
const t = rt([r], O);
|
|
105
82
|
return () => t();
|
|
106
83
|
}, []), F(() => {
|
|
107
84
|
O(), v(0);
|
|
@@ -109,7 +86,7 @@ const ot = {
|
|
|
109
86
|
if (!H || !y)
|
|
110
87
|
return;
|
|
111
88
|
let r = null, t = k;
|
|
112
|
-
const
|
|
89
|
+
const i = o ? S.width : S.height;
|
|
113
90
|
let e = M;
|
|
114
91
|
const d = (b) => {
|
|
115
92
|
if (!r) {
|
|
@@ -119,28 +96,28 @@ const ot = {
|
|
|
119
96
|
const U = (b - r) / 1e3;
|
|
120
97
|
r = b;
|
|
121
98
|
const w = A * U;
|
|
122
|
-
switch (
|
|
99
|
+
switch (l) {
|
|
123
100
|
case "left":
|
|
124
|
-
if (t -= w, t <= -
|
|
101
|
+
if (t -= w, t <= -i && (t += i, e += 1, v(e), a > 0 && e >= a)) {
|
|
125
102
|
cancelAnimationFrame(c.current), p(!1), f(0), h?.();
|
|
126
103
|
return;
|
|
127
104
|
}
|
|
128
105
|
break;
|
|
129
106
|
case "right":
|
|
130
|
-
if (t += w, t >= 0 && (t -=
|
|
131
|
-
cancelAnimationFrame(c.current), p(!1), f(-
|
|
107
|
+
if (t += w, t >= 0 && (t -= i, e += 1, v(e), a > 0 && e >= a)) {
|
|
108
|
+
cancelAnimationFrame(c.current), p(!1), f(-i), h?.();
|
|
132
109
|
return;
|
|
133
110
|
}
|
|
134
111
|
break;
|
|
135
112
|
case "up":
|
|
136
|
-
if (t -= w, t <= -
|
|
113
|
+
if (t -= w, t <= -i && (t += i, e += 1, v(e), a > 0 && e >= a)) {
|
|
137
114
|
cancelAnimationFrame(c.current), p(!1), f(0), h?.();
|
|
138
115
|
return;
|
|
139
116
|
}
|
|
140
117
|
break;
|
|
141
118
|
case "down":
|
|
142
|
-
if (t += w, t >= 0 && (t -=
|
|
143
|
-
cancelAnimationFrame(c.current), p(!1), f(-
|
|
119
|
+
if (t += w, t >= 0 && (t -= i, e += 1, v(e), a > 0 && e >= a)) {
|
|
120
|
+
cancelAnimationFrame(c.current), p(!1), f(-i), h?.();
|
|
144
121
|
return;
|
|
145
122
|
}
|
|
146
123
|
break;
|
|
@@ -153,26 +130,26 @@ const ot = {
|
|
|
153
130
|
}, [
|
|
154
131
|
H,
|
|
155
132
|
A,
|
|
156
|
-
|
|
133
|
+
l,
|
|
157
134
|
S,
|
|
158
135
|
y,
|
|
159
136
|
a,
|
|
160
137
|
M,
|
|
161
138
|
k,
|
|
162
|
-
|
|
139
|
+
o,
|
|
163
140
|
h
|
|
164
141
|
]);
|
|
165
142
|
const G = () => {
|
|
166
143
|
P && p(!1);
|
|
167
144
|
}, J = () => {
|
|
168
145
|
P && p(!0);
|
|
169
|
-
}, K = () =>
|
|
146
|
+
}, K = () => o ? `translateX(${k}px)` : `translateY(${k}px)`, Q = () => {
|
|
170
147
|
const r = {
|
|
171
|
-
display:
|
|
172
|
-
whiteSpace:
|
|
173
|
-
marginRight:
|
|
174
|
-
marginBottom:
|
|
175
|
-
}, t = /* @__PURE__ */
|
|
148
|
+
display: o ? "inline-block" : "block",
|
|
149
|
+
whiteSpace: o ? "nowrap" : "normal",
|
|
150
|
+
marginRight: o ? 0 : void 0,
|
|
151
|
+
marginBottom: o ? void 0 : 0
|
|
152
|
+
}, t = /* @__PURE__ */ m(
|
|
176
153
|
"div",
|
|
177
154
|
{
|
|
178
155
|
ref: $,
|
|
@@ -183,7 +160,7 @@ const ot = {
|
|
|
183
160
|
);
|
|
184
161
|
return y ? /* @__PURE__ */ z(x, { children: [
|
|
185
162
|
t,
|
|
186
|
-
/* @__PURE__ */
|
|
163
|
+
/* @__PURE__ */ m("div", { style: r, className: `${s}-children`, children: N })
|
|
187
164
|
] }) : t;
|
|
188
165
|
};
|
|
189
166
|
return /* @__PURE__ */ z(
|
|
@@ -191,64 +168,64 @@ const ot = {
|
|
|
191
168
|
{
|
|
192
169
|
ref: g,
|
|
193
170
|
style: W,
|
|
194
|
-
className:
|
|
171
|
+
className: et(
|
|
195
172
|
s,
|
|
196
|
-
`${s}-${
|
|
173
|
+
`${s}-${l}`,
|
|
197
174
|
j
|
|
198
175
|
),
|
|
199
176
|
onMouseEnter: G,
|
|
200
177
|
onMouseLeave: J,
|
|
201
178
|
children: [
|
|
202
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ m(
|
|
203
180
|
"div",
|
|
204
181
|
{
|
|
205
182
|
ref: B,
|
|
206
183
|
style: {
|
|
207
|
-
display:
|
|
184
|
+
display: o ? "inline-block" : "block",
|
|
208
185
|
transform: K()
|
|
209
186
|
},
|
|
210
187
|
className: `${s}-content`,
|
|
211
188
|
children: Q()
|
|
212
189
|
}
|
|
213
190
|
),
|
|
214
|
-
q(
|
|
215
|
-
/* @__PURE__ */
|
|
191
|
+
q(n) && y && (o ? /* @__PURE__ */ z(x, { children: [
|
|
192
|
+
/* @__PURE__ */ m(
|
|
216
193
|
"div",
|
|
217
194
|
{
|
|
218
195
|
style: {
|
|
219
|
-
width:
|
|
220
|
-
background: `linear-gradient(to right, ${
|
|
196
|
+
width: n.size,
|
|
197
|
+
background: `linear-gradient(to right, ${n.color}, transparent)`
|
|
221
198
|
},
|
|
222
199
|
className: `${s}-linear-gradient-to-right`
|
|
223
200
|
}
|
|
224
201
|
),
|
|
225
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ m(
|
|
226
203
|
"div",
|
|
227
204
|
{
|
|
228
205
|
style: {
|
|
229
|
-
width:
|
|
230
|
-
background: `linear-gradient(to left, ${
|
|
206
|
+
width: n.size,
|
|
207
|
+
background: `linear-gradient(to left, ${n.color}, transparent)`
|
|
231
208
|
},
|
|
232
209
|
className: `${s}-linear-gradient-to-left`
|
|
233
210
|
}
|
|
234
211
|
)
|
|
235
212
|
] }) : /* @__PURE__ */ z(x, { children: [
|
|
236
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ m(
|
|
237
214
|
"div",
|
|
238
215
|
{
|
|
239
216
|
style: {
|
|
240
|
-
height:
|
|
241
|
-
background: `linear-gradient(to top, ${
|
|
217
|
+
height: n.size,
|
|
218
|
+
background: `linear-gradient(to top, ${n.color}, transparent)`
|
|
242
219
|
},
|
|
243
220
|
className: `${s}-linear-gradient-to-bottom`
|
|
244
221
|
}
|
|
245
222
|
),
|
|
246
|
-
/* @__PURE__ */
|
|
223
|
+
/* @__PURE__ */ m(
|
|
247
224
|
"div",
|
|
248
225
|
{
|
|
249
226
|
style: {
|
|
250
|
-
height:
|
|
251
|
-
background: `linear-gradient(to bottom, ${
|
|
227
|
+
height: n.size,
|
|
228
|
+
background: `linear-gradient(to bottom, ${n.color}, transparent)`
|
|
252
229
|
},
|
|
253
230
|
className: `${s}-linear-gradient-to-top`
|
|
254
231
|
}
|
|
@@ -259,5 +236,5 @@ const ot = {
|
|
|
259
236
|
);
|
|
260
237
|
};
|
|
261
238
|
export {
|
|
262
|
-
|
|
239
|
+
Yt as default
|
|
263
240
|
};
|
package/mentions/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as M, jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import q, { useContext as z, useRef as h, useState as G, useEffect as J } from "react";
|
|
3
|
-
import { a as Q } from "../chunk/
|
|
3
|
+
import { a as Q } from "../chunk/CYDaUML7.js";
|
|
4
4
|
import { u as X } from "../chunk/FgWHhRFz.js";
|
|
5
5
|
import { u as Y } from "../chunk/2vdCeheu.js";
|
|
6
6
|
import Z from "../input/Input.js";
|
package/menu/Menu.js
CHANGED
|
@@ -3,9 +3,9 @@ import "@unicom-cloud/icons/IconUiMenuFold";
|
|
|
3
3
|
import "@unicom-cloud/icons/IconUiMenuUnfold";
|
|
4
4
|
import "lodash/isPlainObject";
|
|
5
5
|
import "react";
|
|
6
|
-
import "../chunk/
|
|
6
|
+
import "../chunk/CYDaUML7.js";
|
|
7
7
|
import "../chunk/BJeTDXdz.js";
|
|
8
|
-
import "../chunk/
|
|
8
|
+
import "../chunk/gJsdBcpG.js";
|
|
9
9
|
import "../chunk/Bvxzb1wd.js";
|
|
10
10
|
import "../chunk/FgWHhRFz.js";
|
|
11
11
|
import "../chunk/2vdCeheu.js";
|
|
@@ -15,7 +15,7 @@ import "../chunk/BKKEev13.js";
|
|
|
15
15
|
import "./context.js";
|
|
16
16
|
import { default as I } from "./Item.js";
|
|
17
17
|
import { default as c } from "./ItemGroup.js";
|
|
18
|
-
import { S as h, S as j, M as k } from "../chunk/
|
|
18
|
+
import { S as h, S as j, M as k } from "../chunk/Bzx5BueA.js";
|
|
19
19
|
import "./util.js";
|
|
20
20
|
export {
|
|
21
21
|
I as MenuItem,
|
package/menu/OverflowWrap.js
CHANGED
package/menu/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as o } from "../chunk/
|
|
2
|
-
import { S as r, S as a } from "../chunk/
|
|
1
|
+
import { M as o } from "../chunk/Bzx5BueA.js";
|
|
2
|
+
import { S as r, S as a } from "../chunk/Bzx5BueA.js";
|
|
3
3
|
import { default as n } from "./Item.js";
|
|
4
4
|
import { default as p } from "./ItemGroup.js";
|
|
5
5
|
export {
|
package/message/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "../chunk/BJ9_azwQ.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom/client";
|
|
5
|
-
import { M as g, m as M, u as d } from "../chunk/
|
|
5
|
+
import { M as g, m as M, u as d } from "../chunk/CYDaUML7.js";
|
|
6
6
|
import "../notification/withNotification.js";
|
|
7
7
|
import "../chunk/B--6x-RL.js";
|
|
8
8
|
import "@unicom-cloud/utils/class-name";
|
package/message/useMessage.js
CHANGED
package/modal/Confirm.js
CHANGED
|
@@ -4,8 +4,8 @@ import "@unicom-cloud/icons/IconUiCloseCircleFill";
|
|
|
4
4
|
import "@unicom-cloud/icons/IconUiExclamationCircleFill";
|
|
5
5
|
import "@unicom-cloud/icons/IconUiInfoCircleFill";
|
|
6
6
|
import "react-dom/client";
|
|
7
|
-
import "../chunk/
|
|
8
|
-
import { c as l, n as s } from "../chunk/
|
|
7
|
+
import "../chunk/CYDaUML7.js";
|
|
8
|
+
import { c as l, n as s } from "../chunk/DB0hUIM1.js";
|
|
9
9
|
import "./config.js";
|
|
10
10
|
export {
|
|
11
11
|
l as default,
|