@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/cascader/util.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../chunk/DsaQZE4X.js";
|
|
2
|
-
import { P as r, a as o, S as l, V as m, f as u, g as S, c as V, b as i, i as p, r as f, t as g, v as E } from "../chunk/
|
|
2
|
+
import { P as r, a as o, S as l, V as m, f as u, g as S, c as V, b as i, i as p, r as f, t as g, v as E } from "../chunk/yWKJUe_w.js";
|
|
3
3
|
import "@unicom-cloud/utils/is";
|
|
4
4
|
export {
|
|
5
5
|
r as PANEL_MODE,
|
package/checkbox/Checkbox.js
CHANGED
|
@@ -4,12 +4,12 @@ import "@unicom-cloud/icons/IconUiMinus";
|
|
|
4
4
|
import "lodash/isFunction";
|
|
5
5
|
import "lodash/isNil";
|
|
6
6
|
import "react";
|
|
7
|
-
import "../chunk/
|
|
7
|
+
import "../chunk/CYDaUML7.js";
|
|
8
8
|
import "../chunk/FgWHhRFz.js";
|
|
9
9
|
import "../chunk/2vdCeheu.js";
|
|
10
10
|
import "@unicom-cloud/utils/class-name";
|
|
11
11
|
import "../chunk/BKKEev13.js";
|
|
12
|
-
import { G as k, a as C, C as b } from "../chunk/
|
|
12
|
+
import { G as k, a as C, C as b } from "../chunk/DrYaod6k.js";
|
|
13
13
|
import { default as l } from "./useCheckbox.js";
|
|
14
14
|
export {
|
|
15
15
|
k as CheckboxGroup,
|
package/checkbox/Group.js
CHANGED
|
@@ -2,11 +2,11 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "lodash/isArray";
|
|
3
3
|
import "lodash/isPlainObject";
|
|
4
4
|
import "react";
|
|
5
|
-
import "../chunk/
|
|
5
|
+
import "../chunk/CYDaUML7.js";
|
|
6
6
|
import "../chunk/2vdCeheu.js";
|
|
7
7
|
import "@unicom-cloud/utils/class-name";
|
|
8
8
|
import "../utils/constant.js";
|
|
9
|
-
import { c as b, b as c, G as s } from "../chunk/
|
|
9
|
+
import { c as b, b as c, G as s } from "../chunk/DrYaod6k.js";
|
|
10
10
|
export {
|
|
11
11
|
b as CheckboxGroupContext,
|
|
12
12
|
c as ClearCheckboxGroupContext,
|
package/checkbox/GroupBlock.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../chunk/
|
|
3
|
+
import "../chunk/CYDaUML7.js";
|
|
4
4
|
import "../typography/index.js";
|
|
5
5
|
import "@unicom-cloud/utils/class-name";
|
|
6
|
-
import { a as e } from "../chunk/
|
|
6
|
+
import { a as e } from "../chunk/DrYaod6k.js";
|
|
7
7
|
export {
|
|
8
8
|
e as default
|
|
9
9
|
};
|
package/checkbox/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as e } from "../chunk/
|
|
2
|
-
import { G as t, a as x, b as C } from "../chunk/
|
|
1
|
+
import { C as e } from "../chunk/DrYaod6k.js";
|
|
2
|
+
import { G as t, a as x, b as C } from "../chunk/DrYaod6k.js";
|
|
3
3
|
import { default as s } from "./useCheckbox.js";
|
|
4
4
|
export {
|
|
5
5
|
t as CheckboxGroup,
|
|
@@ -6,7 +6,7 @@ import G from "lodash/isArray";
|
|
|
6
6
|
import Je from "lodash/isPlainObject";
|
|
7
7
|
import An from "lodash/isUndefined";
|
|
8
8
|
import { useContext as ie, useMemo as an, forwardRef as On, useRef as Le, useImperativeHandle as Mn, useState as se, useEffect as Ke } from "react";
|
|
9
|
-
import { a as Re } from "./
|
|
9
|
+
import { a as Re } from "./CYDaUML7.js";
|
|
10
10
|
import { u as Hn } from "./FgWHhRFz.js";
|
|
11
11
|
import { u as Kt } from "./8w-ItYb1.js";
|
|
12
12
|
import { u as Qt } from "./DfChiMIE.js";
|
|
@@ -3,7 +3,7 @@ import { b as W } from "./-PX9OR3r.js";
|
|
|
3
3
|
import j from "lodash/isPlainObject";
|
|
4
4
|
import k from "lodash/merge";
|
|
5
5
|
import { useRef as h, useEffect as b, forwardRef as G, useContext as S, useImperativeHandle as O } from "react";
|
|
6
|
-
import { a as _, b as A } from "./
|
|
6
|
+
import { a as _, b as A } from "./CYDaUML7.js";
|
|
7
7
|
import { u as U } from "./BO_5qdS_.js";
|
|
8
8
|
import { u as H } from "./FgWHhRFz.js";
|
|
9
9
|
import X from "@unicom-cloud/utils/class-name";
|
|
@@ -5,8 +5,8 @@ import Z from "@unicom-cloud/icons/IconUiFile";
|
|
|
5
5
|
import ee from "@unicom-cloud/icons/IconUiLoading";
|
|
6
6
|
import P from "lodash/isFunction";
|
|
7
7
|
import te, { useContext as I, useRef as U, useMemo as F, useEffect as M, forwardRef as ne, useState as ie, useCallback as K } from "react";
|
|
8
|
-
import { C as ae } from "./
|
|
9
|
-
import { a as Y, I as re } from "./
|
|
8
|
+
import { C as ae } from "./DrYaod6k.js";
|
|
9
|
+
import { a as Y, I as re } from "./CYDaUML7.js";
|
|
10
10
|
import E from "@unicom-cloud/utils/class-name";
|
|
11
11
|
import oe from "../utils/throttleByRaf.js";
|
|
12
12
|
import se from "lodash/isNumber";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRef as u, useState as l, useCallback as h, useLayoutEffect as d, useEffect as g } from "react";
|
|
2
|
-
import { b as E, c as p, d as w, g as c } from "./
|
|
2
|
+
import { b as E, c as p, d as w, g as c } from "./ClNkxEcR.js";
|
|
3
3
|
import "./DsaQZE4X.js";
|
|
4
4
|
import { isBrowser as S } from "@unicom-cloud/utils/constant/platform";
|
|
5
5
|
import { isFunction as F } from "@unicom-cloud/utils/is";
|
|
@@ -3,9 +3,9 @@ import Ke from "@unicom-cloud/icons/IconUiMenuFold";
|
|
|
3
3
|
import De from "@unicom-cloud/icons/IconUiMenuUnfold";
|
|
4
4
|
import Re from "lodash/isPlainObject";
|
|
5
5
|
import H, { useContext as A, useState as me, forwardRef as fe, useEffect as oe, useRef as ne, useMemo as _e } from "react";
|
|
6
|
-
import { a as he } from "./
|
|
6
|
+
import { a as he } from "./CYDaUML7.js";
|
|
7
7
|
import { u as Ae } from "./BJeTDXdz.js";
|
|
8
|
-
import { u as te } from "./
|
|
8
|
+
import { u as te } from "./gJsdBcpG.js";
|
|
9
9
|
import { u as Te } from "./Bvxzb1wd.js";
|
|
10
10
|
import { u as Ue } from "./FgWHhRFz.js";
|
|
11
11
|
import { u as Z } from "./2vdCeheu.js";
|
|
@@ -18,7 +18,7 @@ import Be from "../menu/ItemGroup.js";
|
|
|
18
18
|
import { r as He } from "./CHQ8c547.js";
|
|
19
19
|
import { getStyle as ue } from "../utils/style.js";
|
|
20
20
|
import ge from "@unicom-cloud/icons/IconUiDown";
|
|
21
|
-
import { u as Ve } from "./
|
|
21
|
+
import { u as Ve } from "./Cy26_CKq.js";
|
|
22
22
|
import Ce from "../menu/Indent.js";
|
|
23
23
|
import { isChildrenSelected as Me, processChildren as ye, PROPS_NEED_TO_BE_PASSED_IN_SUBMENU as We, generateInfoMap as Fe } from "../menu/util.js";
|
|
24
24
|
import { P as je } from "./B--6x-RL.js";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import m from "lodash/debounce";
|
|
2
|
+
import { useState as l, useDeferredValue as d, useMemo as h, useEffect as s } from "react";
|
|
3
|
+
import "./DsaQZE4X.js";
|
|
4
|
+
import { u as p } from "./BL9DMeor.js";
|
|
5
|
+
import { isFunction as w } from "@unicom-cloud/utils/is";
|
|
6
|
+
function V(o = !1, c) {
|
|
7
|
+
const [n, u] = l({
|
|
8
|
+
...r(null)
|
|
9
|
+
}), f = d(
|
|
10
|
+
n
|
|
11
|
+
// 延迟一个值与防抖和节流之间有什么不同?
|
|
12
|
+
// 防抖(Debounce) 是指在用户停止输入一段时间(例如一秒钟)之后再更新列表。
|
|
13
|
+
// 节流(Throttle) 是指每隔一段时间(例如最多每秒一次)更新列表。
|
|
14
|
+
// 虽然这些技术在某些情况下是有用的,但 useDeferredValue 更适合优化渲染,因为它与 React 自身深度集成,并且能够适应用户的设备。
|
|
15
|
+
// 与防抖或节流不同,useDeferredValue 不需要选择任何固定延迟时间。如果用户的设备很快(比如性能强劲的笔记本电脑),延迟的重渲染几乎会立即发生并且不会被察觉。如果用户的设备较慢,那么列表会相应地“滞后”于输入,滞后的程度与设备的速度有关。
|
|
16
|
+
// 此外,与防抖或节流不同,useDeferredValue 执行的延迟重新渲染默认是可中断的。这意味着,如果 React 正在重新渲染一个大型列表,但用户进行了另一次键盘输入,React 会放弃该重新渲染,先处理键盘输入,然后再次开始在后台渲染。相比之下,防抖和节流仍会产生不顺畅的体验,因为它们是阻塞的:它们仅仅是将渲染阻塞键盘输入的时刻推迟了。
|
|
17
|
+
// 如果你要优化的工作不是在渲染期间发生的,那么防抖和节流仍然非常有用。例如,它们可以让你减少网络请求的次数。你也可以同时使用这些技术。
|
|
18
|
+
);
|
|
19
|
+
function r(t) {
|
|
20
|
+
const { innerWidth: i = 0, innerHeight: a = 0 } = t?.currentTarget ?? t?.target ?? window;
|
|
21
|
+
return {
|
|
22
|
+
width: i,
|
|
23
|
+
height: a
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
const e = h(() => {
|
|
27
|
+
function t(i) {
|
|
28
|
+
u(r(i));
|
|
29
|
+
}
|
|
30
|
+
return o ? m(t, 123) : t;
|
|
31
|
+
}, [o]);
|
|
32
|
+
return p(e, [e]), s(() => (c?.(n), () => {
|
|
33
|
+
}), [n]), s(() => (u(r(null)), () => {
|
|
34
|
+
"cancel" in e && w(e.cancel) && e.cancel();
|
|
35
|
+
}), []), f;
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
V as u
|
|
39
|
+
};
|
|
@@ -28,55 +28,24 @@ import { t as mt } from "./CTMmW21t.js";
|
|
|
28
28
|
import dt from "../locale/zh-CN.js";
|
|
29
29
|
import _e from "../notification/withNotification.js";
|
|
30
30
|
import "./DsaQZE4X.js";
|
|
31
|
-
import "@unicom-cloud/utils/date";
|
|
32
|
-
import "@unicom-cloud/utils/case-name";
|
|
33
|
-
import "@unicom-cloud/utils/clipboard-copy";
|
|
34
|
-
import "./DS_deHpN.js";
|
|
35
|
-
import "./d1c9z8T1.js";
|
|
36
|
-
import "@unicom-cloud/utils/emitter";
|
|
37
|
-
import "@unicom-cloud/utils/file/fileToURL";
|
|
38
|
-
import "lodash/escapeRegExp";
|
|
39
|
-
import "lodash/isString";
|
|
40
|
-
import "lodash/isFunction";
|
|
41
|
-
import "lodash/throttle";
|
|
42
|
-
import "lodash/camelCase";
|
|
43
|
-
import "lodash/capitalize";
|
|
44
|
-
import "lodash/cloneDeep";
|
|
45
|
-
import "lodash/debounce";
|
|
46
|
-
import "lodash/get";
|
|
47
|
-
import "lodash/has";
|
|
48
|
-
import "lodash/kebabCase";
|
|
49
|
-
import "lodash/mergeWith";
|
|
50
|
-
import "lodash/set";
|
|
51
|
-
import "lodash/setWith";
|
|
52
|
-
import "lodash/snakeCase";
|
|
53
|
-
import "lodash/startCase";
|
|
54
|
-
import "lodash/uniq";
|
|
55
|
-
import "lodash/upperFirst";
|
|
56
|
-
import "@unicom-cloud/utils/math";
|
|
57
|
-
import "@unicom-cloud/utils/pinyin";
|
|
58
|
-
import "./CXrVhA6-.js";
|
|
59
|
-
import "@unicom-cloud/utils/file/saveAs";
|
|
60
|
-
import "@unicom-cloud/utils/screenfull";
|
|
61
|
-
import "@unicom-cloud/utils/tinycolor";
|
|
62
|
-
import "@unicom-cloud/utils/ui-color";
|
|
63
|
-
import "react-is";
|
|
64
|
-
import "@unicom-cloud/utils/tree";
|
|
65
|
-
import { isString as we, isNumber as L, isUndefined as te } from "@unicom-cloud/utils/is";
|
|
66
|
-
import "uuid";
|
|
67
|
-
import "./hc_ufgVf.js";
|
|
68
|
-
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
69
31
|
import "@unicom-cloud/utils/constant/platform";
|
|
70
32
|
import "./CdXR6dj7.js";
|
|
71
33
|
import "@unicom-cloud/utils/js-cookie";
|
|
72
34
|
import "dayjs";
|
|
73
|
-
import "
|
|
35
|
+
import "lodash/debounce";
|
|
36
|
+
import "@unicom-cloud/utils/screenfull";
|
|
37
|
+
import "./ClNkxEcR.js";
|
|
38
|
+
import "lodash/throttle";
|
|
74
39
|
import "@unicom-cloud/utils/query-string";
|
|
75
40
|
import "react-router";
|
|
76
41
|
import "lodash/isEqualWith";
|
|
42
|
+
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
43
|
+
import "./d1c9z8T1.js";
|
|
77
44
|
import "./RjJoagzL.js";
|
|
45
|
+
import "./CXrVhA6-.js";
|
|
78
46
|
import "@unicom-cloud/utils/constant";
|
|
79
|
-
|
|
47
|
+
import { isString as we, isNumber as L, isUndefined as te } from "@unicom-cloud/utils/is";
|
|
48
|
+
function ut(e) {
|
|
80
49
|
if (!Ye(e)) return;
|
|
81
50
|
const { prefix: t = We, dir: r = "ltr" } = e, l = et;
|
|
82
51
|
l.setAttribute("dir", r), l.classList.remove("ltr"), l.classList.remove("rtl"), l.classList.add(r);
|
|
@@ -86,17 +55,17 @@ const $e = {
|
|
|
86
55
|
small: 8,
|
|
87
56
|
medium: 16,
|
|
88
57
|
large: 24
|
|
89
|
-
},
|
|
58
|
+
}, pt = {
|
|
90
59
|
size: "small",
|
|
91
60
|
direction: "horizontal"
|
|
92
61
|
}, ae = j(
|
|
93
62
|
(e, t) => {
|
|
94
|
-
const r = Z(e,
|
|
63
|
+
const r = Z(e, pt, {}), {
|
|
95
64
|
className: l,
|
|
96
65
|
style: a,
|
|
97
66
|
children: n,
|
|
98
67
|
gap: i,
|
|
99
|
-
size:
|
|
68
|
+
size: p,
|
|
100
69
|
direction: c = "horizontal",
|
|
101
70
|
align: s,
|
|
102
71
|
alignItems: m,
|
|
@@ -104,8 +73,8 @@ const $e = {
|
|
|
104
73
|
wrap: C,
|
|
105
74
|
split: $,
|
|
106
75
|
rtl: g,
|
|
107
|
-
...
|
|
108
|
-
} = r, f = `${ye}-space`, x = i ??
|
|
76
|
+
...u
|
|
77
|
+
} = r, f = `${ye}-space`, x = i ?? p, N = m ?? s ?? (c === "horizontal" ? "center" : ""), h = b(
|
|
109
78
|
f,
|
|
110
79
|
{
|
|
111
80
|
[`${f}-${c}`]: c,
|
|
@@ -132,7 +101,7 @@ const $e = {
|
|
|
132
101
|
})(),
|
|
133
102
|
...a
|
|
134
103
|
}, J = mt(n);
|
|
135
|
-
return /* @__PURE__ */ o("div", { ref: t, className: h, style: V, ...
|
|
104
|
+
return /* @__PURE__ */ o("div", { ref: t, className: h, style: V, ...u, children: J.map((v, T) => {
|
|
136
105
|
const K = v?.key ?? T, G = $ != null && T > 0;
|
|
137
106
|
return /* @__PURE__ */ A(Be, { children: [
|
|
138
107
|
G && /* @__PURE__ */ o("div", { className: `${f}-item-split`, children: $ }),
|
|
@@ -156,9 +125,9 @@ const Ct = Object.assign(ae, {
|
|
|
156
125
|
// 默认描述文本
|
|
157
126
|
icon: n,
|
|
158
127
|
imgSrc: i,
|
|
159
|
-
prefixCls:
|
|
128
|
+
prefixCls: p,
|
|
160
129
|
...c
|
|
161
|
-
} = e, s = `${ye}-empty`, m =
|
|
130
|
+
} = e, s = `${ye}-empty`, m = p ?? s, d = typeof a == "string" ? a : "empty", C = () => i ? /* @__PURE__ */ o(
|
|
162
131
|
"img",
|
|
163
132
|
{
|
|
164
133
|
className: b(`${s}-img`, `${m}-img`),
|
|
@@ -196,8 +165,8 @@ function xt(e, t) {
|
|
|
196
165
|
e,
|
|
197
166
|
{},
|
|
198
167
|
a?.Empty
|
|
199
|
-
), { ...i } = n,
|
|
200
|
-
return /* @__PURE__ */ o(Te, { ref: t, prefixCls:
|
|
168
|
+
), { ...i } = n, p = r?.("empty"), c = l?.Empty?.noData;
|
|
169
|
+
return /* @__PURE__ */ o(Te, { ref: t, prefixCls: p, description: c, ...i });
|
|
201
170
|
}
|
|
202
171
|
const ke = ve(j(xt));
|
|
203
172
|
ke.displayName = "Empty";
|
|
@@ -225,7 +194,7 @@ function $t(e, t) {
|
|
|
225
194
|
disabled: a,
|
|
226
195
|
prefix: n,
|
|
227
196
|
size: i = "default",
|
|
228
|
-
...
|
|
197
|
+
...p
|
|
229
198
|
} = e, { getPrefixCls: c } = D(R), s = c?.("icon-hover"), m = S();
|
|
230
199
|
return le(t, () => ({
|
|
231
200
|
getRootDOMNode: () => m.current
|
|
@@ -243,7 +212,7 @@ function $t(e, t) {
|
|
|
243
212
|
l
|
|
244
213
|
),
|
|
245
214
|
onClick: e.onClick,
|
|
246
|
-
...
|
|
215
|
+
...p,
|
|
247
216
|
children: r
|
|
248
217
|
}
|
|
249
218
|
);
|
|
@@ -263,14 +232,14 @@ function yt(e, t) {
|
|
|
263
232
|
e,
|
|
264
233
|
Nt,
|
|
265
234
|
l?.Notice
|
|
266
|
-
), i = D(R),
|
|
235
|
+
), i = D(R), p = r?.("notice");
|
|
267
236
|
S();
|
|
268
237
|
const c = S(), s = S(), m = S(), {
|
|
269
238
|
title: d,
|
|
270
239
|
content: C,
|
|
271
240
|
showIcon: $,
|
|
272
241
|
className: g,
|
|
273
|
-
style:
|
|
242
|
+
style: u,
|
|
274
243
|
type: f,
|
|
275
244
|
btn: x,
|
|
276
245
|
icon: N,
|
|
@@ -292,8 +261,8 @@ function yt(e, t) {
|
|
|
292
261
|
);
|
|
293
262
|
let G = "closable" in n ? y : !0, W = $;
|
|
294
263
|
f === "normal" && !N && (W = !1);
|
|
295
|
-
const
|
|
296
|
-
T && (
|
|
264
|
+
const ue = { ...i };
|
|
265
|
+
T && (ue.prefixCls = T);
|
|
297
266
|
function Xe() {
|
|
298
267
|
return s.current;
|
|
299
268
|
}
|
|
@@ -309,7 +278,7 @@ function yt(e, t) {
|
|
|
309
278
|
function X() {
|
|
310
279
|
n.onClose?.(n.id);
|
|
311
280
|
}
|
|
312
|
-
function
|
|
281
|
+
function pe() {
|
|
313
282
|
const { showIcon: k, icon: q, type: ee, iconPrefix: Ce } = n;
|
|
314
283
|
let I;
|
|
315
284
|
if (q)
|
|
@@ -359,7 +328,7 @@ function yt(e, t) {
|
|
|
359
328
|
}), []);
|
|
360
329
|
let F;
|
|
361
330
|
return O === "message" && (G = y, F = /* @__PURE__ */ A(ge, { children: [
|
|
362
|
-
W &&
|
|
331
|
+
W && pe(),
|
|
363
332
|
/* @__PURE__ */ o("span", { className: `${h}-content`, children: C }),
|
|
364
333
|
G && (v !== void 0 ? /* @__PURE__ */ o("span", { onClick: X, className: `${h}-close-btn`, children: v }) : /* @__PURE__ */ o(
|
|
365
334
|
Ne,
|
|
@@ -371,7 +340,7 @@ function yt(e, t) {
|
|
|
371
340
|
}
|
|
372
341
|
))
|
|
373
342
|
] })), O === "notification" && (F = /* @__PURE__ */ A(ge, { children: [
|
|
374
|
-
W && /* @__PURE__ */ o("div", { className: `${h}-left`, children:
|
|
343
|
+
W && /* @__PURE__ */ o("div", { className: `${h}-left`, children: pe() }),
|
|
375
344
|
/* @__PURE__ */ A("div", { className: `${h}-right`, children: [
|
|
376
345
|
d && /* @__PURE__ */ o("div", { className: `${h}-title`, children: d }),
|
|
377
346
|
/* @__PURE__ */ o("div", { className: `${h}-content`, children: C }),
|
|
@@ -392,14 +361,14 @@ function yt(e, t) {
|
|
|
392
361
|
)
|
|
393
362
|
}
|
|
394
363
|
))
|
|
395
|
-
] })), F && (F = /* @__PURE__ */ o(de, { ...
|
|
364
|
+
] })), F && (F = /* @__PURE__ */ o(de, { ...ue, childrenName: "notice", children: /* @__PURE__ */ o(
|
|
396
365
|
"div",
|
|
397
366
|
{
|
|
398
367
|
ref: s,
|
|
399
|
-
className: `${
|
|
368
|
+
className: `${p}-${O}`,
|
|
400
369
|
onMouseEnter: qe,
|
|
401
370
|
onMouseLeave: Qe,
|
|
402
|
-
children: /* @__PURE__ */ o("div", { className: K, style:
|
|
371
|
+
children: /* @__PURE__ */ o("div", { className: K, style: u, role: "alert", children: F })
|
|
403
372
|
}
|
|
404
373
|
) })), F;
|
|
405
374
|
}
|
|
@@ -414,13 +383,13 @@ function Ue(e, t) {
|
|
|
414
383
|
(s) => s.filter((m) => c !== m)
|
|
415
384
|
);
|
|
416
385
|
}
|
|
417
|
-
function
|
|
386
|
+
function p() {
|
|
418
387
|
return r;
|
|
419
388
|
}
|
|
420
389
|
return le(t, () => ({
|
|
421
390
|
addInstance: n,
|
|
422
391
|
removeInstance: i,
|
|
423
|
-
getContextConfig:
|
|
392
|
+
getContextConfig: p
|
|
424
393
|
})), ie.Children.map(
|
|
425
394
|
l,
|
|
426
395
|
(c, s) => ie.cloneElement(c, { key: s })
|
|
@@ -434,7 +403,7 @@ function vt(e = {}) {
|
|
|
434
403
|
duration: r = 3e3,
|
|
435
404
|
prefixCls: l,
|
|
436
405
|
getContainer: a
|
|
437
|
-
} = e, n = S(void 0), i = /* @__PURE__ */ o(Fe, { ref: n }),
|
|
406
|
+
} = e, n = S(void 0), i = /* @__PURE__ */ o(Fe, { ref: n }), p = {};
|
|
438
407
|
let c;
|
|
439
408
|
function s(d) {
|
|
440
409
|
let C, $;
|
|
@@ -442,10 +411,10 @@ function vt(e = {}) {
|
|
|
442
411
|
const N = n.current.getContextConfig();
|
|
443
412
|
$ = N.rtl, C = N.prefixCls;
|
|
444
413
|
}
|
|
445
|
-
const g = l || C,
|
|
414
|
+
const g = l || C, u = me(d.position, $), f = {
|
|
446
415
|
duration: r,
|
|
447
416
|
...d
|
|
448
|
-
}, x = u
|
|
417
|
+
}, x = p[u];
|
|
449
418
|
if (x) {
|
|
450
419
|
if (x.notices.length >= t) {
|
|
451
420
|
const N = x.notices[0];
|
|
@@ -461,11 +430,11 @@ function vt(e = {}) {
|
|
|
461
430
|
rtl: $,
|
|
462
431
|
getContainer: a,
|
|
463
432
|
ref: (N) => {
|
|
464
|
-
u
|
|
433
|
+
p[u] = N;
|
|
465
434
|
}
|
|
466
435
|
}
|
|
467
436
|
), n.current.addInstance(c);
|
|
468
|
-
return u
|
|
437
|
+
return p[u];
|
|
469
438
|
}
|
|
470
439
|
const m = {};
|
|
471
440
|
return fe.forEach((d) => {
|
|
@@ -488,7 +457,7 @@ function me(e, t) {
|
|
|
488
457
|
return Ie(e) && (e = t || H ? "topLeft" : "topRight"), e;
|
|
489
458
|
}
|
|
490
459
|
function bt(e) {
|
|
491
|
-
const { prefixCls: t, rtl: r, getContainer: l, notices: a } = e, n = Ie(r) ? H : r, i = me(e.position, n),
|
|
460
|
+
const { prefixCls: t, rtl: r, getContainer: l, notices: a } = e, n = Ie(r) ? H : r, i = me(e.position, n), p = t || je, c = p ? `${p}-notification` : "pqb-notification";
|
|
492
461
|
let s;
|
|
493
462
|
i === "topLeft" || i === "bottomLeft" ? s = "slideNoticeLeft" : s = "slideNoticeRight";
|
|
494
463
|
const m = b(
|
|
@@ -497,10 +466,10 @@ function bt(e) {
|
|
|
497
466
|
{ [`${c}-wrapper-rtl`]: H }
|
|
498
467
|
), d = l?.();
|
|
499
468
|
function C(g) {
|
|
500
|
-
const
|
|
501
|
-
|
|
502
|
-
...
|
|
503
|
-
style: { ...
|
|
469
|
+
const u = a.find((f) => f.id === g);
|
|
470
|
+
u && e.update({
|
|
471
|
+
...u,
|
|
472
|
+
style: { ...u.style, opacity: 0 }
|
|
504
473
|
}), setTimeout(() => {
|
|
505
474
|
e.remove(g);
|
|
506
475
|
}, 200);
|
|
@@ -516,14 +485,14 @@ function bt(e) {
|
|
|
516
485
|
exit: 300
|
|
517
486
|
},
|
|
518
487
|
classNames: s,
|
|
519
|
-
onExit: (
|
|
520
|
-
|
|
488
|
+
onExit: (u) => {
|
|
489
|
+
u && (u.style.height = `${u.scrollHeight}px`);
|
|
521
490
|
},
|
|
522
|
-
onExiting: (
|
|
523
|
-
|
|
491
|
+
onExiting: (u) => {
|
|
492
|
+
u && (u.style.height = 0);
|
|
524
493
|
},
|
|
525
|
-
onExited: (
|
|
526
|
-
|
|
494
|
+
onExited: (u) => {
|
|
495
|
+
u && (u.style.height = 0, g.onClose?.());
|
|
527
496
|
},
|
|
528
497
|
children: /* @__PURE__ */ o(
|
|
529
498
|
Se,
|
|
@@ -531,8 +500,8 @@ function bt(e) {
|
|
|
531
500
|
...g,
|
|
532
501
|
onClose: C,
|
|
533
502
|
prefixCls: c,
|
|
534
|
-
iconPrefix:
|
|
535
|
-
classPrefixCls:
|
|
503
|
+
iconPrefix: p,
|
|
504
|
+
classPrefixCls: p,
|
|
536
505
|
noticeType: "notification",
|
|
537
506
|
rtl: n
|
|
538
507
|
}
|
|
@@ -582,8 +551,8 @@ P.addInstance = (e) => {
|
|
|
582
551
|
...l,
|
|
583
552
|
ref: (i) => {
|
|
584
553
|
if (i) {
|
|
585
|
-
for (let
|
|
586
|
-
i.add(Q[
|
|
554
|
+
for (let p = 0; p < Q.length; p++)
|
|
555
|
+
i.add(Q[p]);
|
|
587
556
|
Q = [], w[t] = i;
|
|
588
557
|
}
|
|
589
558
|
}
|
|
@@ -604,7 +573,7 @@ function Pt(e = {}) {
|
|
|
604
573
|
() => /* @__PURE__ */ o(Fe, { ref: a }),
|
|
605
574
|
[]
|
|
606
575
|
), i = {};
|
|
607
|
-
let
|
|
576
|
+
let p;
|
|
608
577
|
function c(m) {
|
|
609
578
|
let d, C;
|
|
610
579
|
if (a.current) {
|
|
@@ -615,14 +584,14 @@ function Pt(e = {}) {
|
|
|
615
584
|
position: "top",
|
|
616
585
|
duration: r,
|
|
617
586
|
...m
|
|
618
|
-
}, { position:
|
|
587
|
+
}, { position: u, transitionClassNames: f } = g;
|
|
619
588
|
let x;
|
|
620
|
-
const N = i[
|
|
589
|
+
const N = i[u];
|
|
621
590
|
if (N) {
|
|
622
591
|
const y = N.notices;
|
|
623
592
|
y.length >= t ? (x = y[0].id, N.shift(), N.add({ ...g, id: x })) : x = N.add(g);
|
|
624
593
|
} else
|
|
625
|
-
|
|
594
|
+
p = /* @__PURE__ */ o(
|
|
626
595
|
E,
|
|
627
596
|
{
|
|
628
597
|
...g,
|
|
@@ -630,12 +599,12 @@ function Pt(e = {}) {
|
|
|
630
599
|
prefixCls: $,
|
|
631
600
|
rtl: C,
|
|
632
601
|
ref: (y) => {
|
|
633
|
-
i[
|
|
602
|
+
i[u] = y;
|
|
634
603
|
}
|
|
635
604
|
}
|
|
636
|
-
), a.current.addInstance(
|
|
605
|
+
), a.current.addInstance(p);
|
|
637
606
|
return () => {
|
|
638
|
-
i[
|
|
607
|
+
i[u]?.remove?.(x);
|
|
639
608
|
};
|
|
640
609
|
}
|
|
641
610
|
const s = {};
|
|
@@ -659,15 +628,15 @@ function It(e) {
|
|
|
659
628
|
rtl: a,
|
|
660
629
|
closable: n,
|
|
661
630
|
notices: i,
|
|
662
|
-
position:
|
|
631
|
+
position: p
|
|
663
632
|
} = e;
|
|
664
|
-
function c(
|
|
665
|
-
const f = e.notices.find((x) => x.id ===
|
|
633
|
+
function c(u) {
|
|
634
|
+
const f = e.notices.find((x) => x.id === u);
|
|
666
635
|
f && e.update({
|
|
667
636
|
...f,
|
|
668
637
|
style: { ...f.style, opacity: 0 }
|
|
669
638
|
}), setTimeout(() => {
|
|
670
|
-
e.remove(
|
|
639
|
+
e.remove(u);
|
|
671
640
|
}, 100);
|
|
672
641
|
}
|
|
673
642
|
_(() => (e.add(e), () => {
|
|
@@ -678,9 +647,9 @@ function It(e) {
|
|
|
678
647
|
exit: L(r?.exit) ? r?.exit : 300
|
|
679
648
|
}, g = b(
|
|
680
649
|
`${C}-wrapper`,
|
|
681
|
-
`${C}-wrapper-${
|
|
650
|
+
`${C}-wrapper-${p}`
|
|
682
651
|
);
|
|
683
|
-
return /* @__PURE__ */ o("div", { className: g, children: /* @__PURE__ */ o(be, { component: null, children: i.map((
|
|
652
|
+
return /* @__PURE__ */ o("div", { className: g, children: /* @__PURE__ */ o(be, { component: null, children: i.map((u) => /* @__PURE__ */ o(
|
|
684
653
|
Ee,
|
|
685
654
|
{
|
|
686
655
|
timeout: $,
|
|
@@ -692,12 +661,12 @@ function It(e) {
|
|
|
692
661
|
f && (f.style.height = 0);
|
|
693
662
|
},
|
|
694
663
|
onExited: (f) => {
|
|
695
|
-
f && (f.style.height = 0,
|
|
664
|
+
f && (f.style.height = 0, u.onClose?.());
|
|
696
665
|
},
|
|
697
666
|
children: /* @__PURE__ */ o(
|
|
698
667
|
Se,
|
|
699
668
|
{
|
|
700
|
-
...
|
|
669
|
+
...u,
|
|
701
670
|
prefixCls: C,
|
|
702
671
|
classPrefixCls: s,
|
|
703
672
|
iconPrefix: s,
|
|
@@ -708,7 +677,7 @@ function It(e) {
|
|
|
708
677
|
}
|
|
709
678
|
)
|
|
710
679
|
},
|
|
711
|
-
|
|
680
|
+
u.id
|
|
712
681
|
)) }) });
|
|
713
682
|
}
|
|
714
683
|
const E = _e(It);
|
|
@@ -788,7 +757,7 @@ function de(e) {
|
|
|
788
757
|
locale: a,
|
|
789
758
|
rtl: n,
|
|
790
759
|
effectGlobalNotice: i = !0,
|
|
791
|
-
effectGlobalModal:
|
|
760
|
+
effectGlobalModal: p = !0
|
|
792
761
|
} = t, {
|
|
793
762
|
children: c,
|
|
794
763
|
isRootConfig: s,
|
|
@@ -800,24 +769,24 @@ function de(e) {
|
|
|
800
769
|
const C = xe({}, ne, d, {
|
|
801
770
|
getPrefixCls: $
|
|
802
771
|
});
|
|
803
|
-
function $(
|
|
804
|
-
return `${f || l || M}-${
|
|
772
|
+
function $(u, f) {
|
|
773
|
+
return `${f || l || M}-${u}`;
|
|
805
774
|
}
|
|
806
|
-
_(() => (s &&
|
|
775
|
+
_(() => (s && ut({ prefix: M, dir: n ? "rtl" : "ltr" }), () => {
|
|
807
776
|
}), [s, n]), _(() => (tt({ prefix: M, ...r }), () => {
|
|
808
777
|
}), [r]), _(() => {
|
|
809
778
|
i && (E.config({ prefixCls: l, rtl: n }), P.config({ prefixCls: l, rtl: n }));
|
|
810
779
|
}, [l, n, i]), _(() => {
|
|
811
|
-
|
|
812
|
-
}, [a, l, n,
|
|
780
|
+
p && ct({ locale: a, prefixCls: l, rtl: n });
|
|
781
|
+
}, [a, l, n, p]);
|
|
813
782
|
let g = c;
|
|
814
783
|
return l && l !== M && (g = /* @__PURE__ */ o(oe.Provider, { value: { prefixCls: l }, children: c })), /* @__PURE__ */ o(R.Provider, { value: C, children: g });
|
|
815
784
|
}
|
|
816
785
|
de.ConfigContext = R;
|
|
817
786
|
de.displayName = "ConfigProvider";
|
|
818
|
-
const
|
|
787
|
+
const vn = R.Consumer;
|
|
819
788
|
export {
|
|
820
|
-
|
|
789
|
+
vn as C,
|
|
821
790
|
ke as E,
|
|
822
791
|
$e as G,
|
|
823
792
|
Ne as I,
|