@unicom-cloud/ui 0.8.109 → 0.8.110
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 +1 -1
- package/AutoComplete.js +1 -1
- package/BackTop.js +2 -2
- 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 +6 -4
- package/Countdown.js +42 -8
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Details.js +42 -6
- 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 +43 -7
- package/Form.js +21 -16
- 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 +2 -2
- package/LiquidFill.js +12 -10
- package/List.js +1 -1
- package/Loading.js +42 -6
- package/Marquee.js +12 -10
- package/Mentions.js +1 -1
- package/Menu.js +1 -1
- package/Message.js +3 -3
- package/Modal.js +1 -1
- package/Notice.js +41 -5
- package/Notification.js +1 -1
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +2 -2
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/QrCode.js +12 -10
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/RichText.js +76 -0
- package/Segmented.js +42 -7
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +43 -7
- 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 +2 -2
- package/Tooltip.js +1 -1
- package/Tour.js +13 -11
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +1 -1
- package/affix/index.js +2 -2
- 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 +2 -2
- 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 +3 -3
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/index.js +1 -1
- package/carousel/Arrow.js +2 -2
- 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/BDMqvmVH.js +4239 -0
- package/chunk/BDgzrqDN.js +154 -0
- package/chunk/BG6j6Ct7.js +30 -0
- package/chunk/BGJspFG9.js +56 -0
- package/chunk/BO_5qdS_.js +13 -0
- package/chunk/{DblEjsQ8.js → BUNoUPLs.js} +1 -1
- package/chunk/B_c0gPsX.js +83 -0
- package/chunk/BcEZk8pT.js +837 -0
- package/chunk/{DGSfSsAY.js → BeHcDey_.js} +1 -1
- package/chunk/{Bm3gJPkz.js → BnUWOu3_.js} +5 -5
- package/chunk/Bvxzb1wd.js +16 -0
- package/chunk/{DryCfcSV.js → CFyN9Eio.js} +4 -4
- package/chunk/CN7NKv_2.js +11 -0
- package/chunk/COc48wzV.js +64 -0
- package/chunk/{BDKb_-wj.js → COsRZOz1.js} +4 -4
- package/chunk/CT7ury1Z.js +13 -0
- package/chunk/Ca6eMq_Y.js +8 -0
- package/chunk/{p9jiLDTk.js → CgN4U7Ou.js} +2 -2
- package/chunk/{Bg3uJGPu.js → CsqGBZv1.js} +1 -1
- package/chunk/CylJZkp8.js +6 -0
- package/chunk/{9WWq1a0I.js → DSqW_efI.js} +1 -1
- package/chunk/{Bz3KT4sO.js → Dbw0YUY1.js} +81 -47
- package/chunk/Dh-zFF65.js +15 -0
- package/chunk/Di5KBCVQ.js +4 -0
- package/chunk/{DjPTURUf.js → Lyh0cz3R.js} +3 -3
- package/chunk/{DgWzb7M5.js → Y_GQsZUt.js} +1 -1
- package/chunk/{BfBHo0RR.js → n1tirBXA.js} +7 -7
- package/chunk/{DYc9a7tm.js → qsVvkBLU.js} +1 -1
- package/chunk/zFFM4RBT.js +2100 -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 +10 -8
- package/countdown/index.js +67 -33
- 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 +74 -38
- 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 +63 -29
- package/form/Form.js +3 -3
- package/form/FormItem.js +1 -1
- package/form/index.js +85 -77
- package/grid/Grid.js +1 -1
- package/grid/Item.js +1 -1
- package/hooks/index.js +128 -133
- package/hooks/useCreation.js +4 -0
- package/hooks/useId.js +1 -1
- package/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/hooks/useKeyboardEvent.js +1 -1
- package/hooks/useMedia.js +1 -1
- package/hooks/usePersistCallback.js +1 -1
- package/hooks/useRefs.js +1 -1
- package/hooks/useStateWithPromise.js +1 -1
- package/hooks/useWatch.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 +3 -3
- package/image/ImagePreview.js +44 -9
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +718 -717
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +3 -3
- package/input/InputElement.js +2 -2
- package/input/Password.js +2 -2
- package/input/Search.js +1 -1
- package/input/Textarea.js +2 -2
- package/input-number/index.js +1 -1
- package/input-number/useSelectionRange.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 +2 -2
- package/liquid-fill/index.js +17 -15
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +1 -1
- package/loading/index.js +54 -18
- package/marquee/index.js +19 -17
- package/marquee-/index.js +17 -15
- package/mentions/index.js +1 -1
- package/menu/Menu.js +4 -4
- package/menu/OverflowWrap.js +1 -1
- package/menu/index.js +2 -2
- package/message/index.js +3 -3
- package/message/useMessage.js +4 -3
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +2 -2
- package/modal/index.js +2 -2
- package/notice/index.js +41 -5
- 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 +120 -81
- package/pagination/PageItem.js +2 -2
- 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 +2 -2
- package/progress/index.js +1 -1
- package/qr-code/index.js +15 -13
- 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 +1 -1
- package/resize-box/index.js +1 -1
- package/result/index.js +1 -1
- package/rich-text/constant.js +5 -0
- package/rich-text/core.js +11 -0
- package/rich-text/eventemitter/index.d.ts +135 -0
- package/rich-text/index.js +182 -0
- package/rich-text/interface.js +1 -0
- package/rich-text/rich.js +1877 -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 +145 -110
- package/select/Option.js +1 -1
- package/select/Select.js +235 -227
- package/select-view/Core.js +2 -2
- package/skeleton/index.js +1 -1
- package/slider/Button.js +2 -2
- package/slider/index.js +1 -1
- package/space/index.js +51 -15
- 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 +3 -3
- package/table/index.js +41 -39
- 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 +2 -2
- 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 +20 -18
- package/transfer/Item.js +3 -3
- package/transfer/List.js +3 -3
- 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 +4 -4
- package/tree-select/index.js +1 -1
- package/trigger/index.js +1 -1
- package/types/common/hooks/src/index.d.ts +1 -5
- package/types/common/hooks/src/use-url-state/index.d.ts +1 -1
- package/types/common/hooks/useId.d.ts +1 -1
- package/types/common/hooks/useIsomorphicLayoutEffect.d.ts +1 -3
- package/types/common/hooks/useKeyboardEvent.d.ts +1 -1
- package/types/common/hooks/{useListenResize.d.ts → useListenWindowResize.d.ts} +4 -6
- package/types/common/hooks/useWatch.d.ts +1 -1
- package/types/common/hooks/useWindowSize.d.ts +2 -2
- package/types/common/utils/index.d.ts +47 -0
- package/types/common/utils/keyboardCode.d.ts +4 -0
- package/types/common/utils/math.d.ts +1 -0
- package/types/common/utils/mitt.d.ts +1 -0
- package/types/common/utils/pinyin.d.ts +1 -0
- package/types/common/utils/reactTransitionGroup.d.ts +1 -0
- package/types/common/utils/uuid.d.ts +1 -0
- package/types/common/utils/validate.d.ts +1 -0
- package/types/pc/config-provider/interface.d.ts +2 -0
- package/types/pc/date-picker/RangePicker.d.ts +1 -1
- package/types/pc/form/index.d.ts +6 -1
- package/types/pc/hooks/index.d.ts +2 -2
- package/types/pc/hooks/useCreation.d.ts +1 -0
- package/types/pc/hooks/useListenWindowResize.d.ts +1 -0
- package/types/pc/index.d.ts +2 -0
- package/types/pc/message/index.d.ts +1 -0
- package/types/pc/message/interface.d.ts +2 -2
- package/types/pc/page-header/interface.d.ts +3 -0
- package/types/pc/rich-text/blots/block.d.ts +34 -0
- package/types/pc/rich-text/blots/break.d.ts +8 -0
- package/types/pc/rich-text/blots/container.d.ts +4 -0
- package/types/pc/rich-text/blots/cursor.d.ts +26 -0
- package/types/pc/rich-text/blots/embed.d.ts +18 -0
- package/types/pc/rich-text/blots/inline.d.ts +12 -0
- package/types/pc/rich-text/blots/scroll.d.ts +49 -0
- package/types/pc/rich-text/blots/text.d.ts +5 -0
- package/types/pc/rich-text/constant.d.ts +1 -0
- package/types/pc/rich-text/core/composition.d.ts +12 -0
- package/types/pc/rich-text/core/editor.d.ts +28 -0
- package/types/pc/rich-text/core/emitter.d.ts +37 -0
- package/types/pc/rich-text/core/instances.d.ts +3 -0
- package/types/pc/rich-text/core/logger.d.ts +7 -0
- package/types/pc/rich-text/core/module.d.ts +8 -0
- package/types/pc/rich-text/core/rich.d.ts +217 -0
- package/types/pc/rich-text/core/selection.d.ts +74 -0
- package/types/pc/rich-text/core/theme.d.ts +32 -0
- package/types/pc/rich-text/core/utils/createRegistryWithFormats.d.ts +5 -0
- package/types/pc/rich-text/core/utils/scrollRectIntoView.d.ts +11 -0
- package/types/pc/rich-text/core.d.ts +7 -0
- package/types/pc/rich-text/delta/AttributeMap.d.ts +10 -0
- package/types/pc/rich-text/delta/Op.d.ts +11 -0
- package/types/pc/rich-text/delta/OpIterator.d.ts +13 -0
- package/types/pc/rich-text/delta/index.d.ts +45 -0
- package/types/pc/rich-text/eventemitter/index.d.ts +101 -0
- package/types/pc/rich-text/formats/align.d.ts +5 -0
- package/types/pc/rich-text/formats/background.d.ts +5 -0
- package/types/pc/rich-text/formats/blockquote.d.ts +6 -0
- package/types/pc/rich-text/formats/bold.d.ts +11 -0
- package/types/pc/rich-text/formats/code.d.ts +15 -0
- package/types/pc/rich-text/formats/color.d.ts +7 -0
- package/types/pc/rich-text/formats/direction.d.ts +5 -0
- package/types/pc/rich-text/formats/font.d.ts +7 -0
- package/types/pc/rich-text/formats/formula.d.ts +10 -0
- package/types/pc/rich-text/formats/header.d.ts +7 -0
- package/types/pc/rich-text/formats/image.d.ts +13 -0
- package/types/pc/rich-text/formats/indent.d.ts +8 -0
- package/types/pc/rich-text/formats/italic.d.ts +6 -0
- package/types/pc/rich-text/formats/link.d.ts +13 -0
- package/types/pc/rich-text/formats/list.d.ts +13 -0
- package/types/pc/rich-text/formats/script.d.ts +8 -0
- package/types/pc/rich-text/formats/size.d.ts +4 -0
- package/types/pc/rich-text/formats/strike.d.ts +6 -0
- package/types/pc/rich-text/formats/table.d.ts +45 -0
- package/types/pc/rich-text/formats/underline.d.ts +6 -0
- package/types/pc/rich-text/formats/video.d.ts +14 -0
- package/types/pc/rich-text/index.d.ts +6 -0
- package/types/pc/rich-text/interface.d.ts +17 -0
- package/types/pc/rich-text/modules/clipboard.d.ts +43 -0
- package/types/pc/rich-text/modules/history.d.ts +36 -0
- package/types/pc/rich-text/modules/input.d.ts +10 -0
- package/types/pc/rich-text/modules/keyboard.d.ts +58 -0
- package/types/pc/rich-text/modules/normalizeExternalHTML/index.d.ts +2 -0
- package/types/pc/rich-text/modules/normalizeExternalHTML/normalizers/googleDocs.d.ts +1 -0
- package/types/pc/rich-text/modules/normalizeExternalHTML/normalizers/msWord.d.ts +1 -0
- package/types/pc/rich-text/modules/syntax.d.ts +50 -0
- package/types/pc/rich-text/modules/table.d.ts +20 -0
- package/types/pc/rich-text/modules/tableEmbed.d.ts +27 -0
- package/types/pc/rich-text/modules/toolbar.d.ts +24 -0
- package/types/pc/rich-text/modules/uiNode.d.ts +19 -0
- package/types/pc/rich-text/modules/uploader.d.ts +15 -0
- package/types/pc/rich-text/parchment/attributor/attributor.d.ts +17 -0
- package/types/pc/rich-text/parchment/attributor/class.d.ts +8 -0
- package/types/pc/rich-text/parchment/attributor/store.d.ts +15 -0
- package/types/pc/rich-text/parchment/attributor/style.d.ts +8 -0
- package/types/pc/rich-text/parchment/blot/abstract/blot.d.ts +115 -0
- package/types/pc/rich-text/parchment/blot/abstract/container.d.ts +18 -0
- package/types/pc/rich-text/parchment/blot/abstract/leaf.d.ts +29 -0
- package/types/pc/rich-text/parchment/blot/abstract/parent.d.ts +50 -0
- package/types/pc/rich-text/parchment/blot/abstract/shadow.d.ts +37 -0
- package/types/pc/rich-text/parchment/blot/block.d.ts +25 -0
- package/types/pc/rich-text/parchment/blot/embed.d.ts +11 -0
- package/types/pc/rich-text/parchment/blot/inline.d.ts +28 -0
- package/types/pc/rich-text/parchment/blot/scroll.d.ts +34 -0
- package/types/pc/rich-text/parchment/blot/text.d.ts +26 -0
- package/types/pc/rich-text/parchment/collection/linked-list.d.ts +21 -0
- package/types/pc/rich-text/parchment/collection/linked-node.d.ts +6 -0
- package/types/pc/rich-text/parchment/error.d.ts +6 -0
- package/types/pc/rich-text/parchment/index.d.ts +21 -0
- package/types/pc/rich-text/parchment/registry.d.ts +21 -0
- package/types/pc/rich-text/parchment/scope.d.ts +14 -0
- package/types/pc/rich-text/rich.d.ts +5 -0
- package/types/pc/rich-text/themes/base.d.ts +35 -0
- package/types/pc/rich-text/themes/bubble.d.ts +18 -0
- package/types/pc/rich-text/themes/snow.d.ts +9 -0
- package/types/pc/rich-text/ui/color-picker.d.ts +7 -0
- package/types/pc/rich-text/ui/icon-picker.d.ts +7 -0
- package/types/pc/rich-text/ui/icons.d.ts +51 -0
- package/types/pc/rich-text/ui/picker.d.ts +16 -0
- package/types/pc/rich-text/ui/tooltip.d.ts +12 -0
- package/types/pc/select/interface.d.ts +4 -0
- package/types/pc/utils/index.d.ts +2 -0
- package/types/pc/utils/mitt.d.ts +1 -0
- package/types/pc/utils/names.d.ts +107 -91
- package/types/pc/utils/pinyin.d.ts +1 -0
- package/types/pc/version/index.d.ts +1 -1
- package/typography/Base.js +1 -1
- package/typography/Ellipsis.js +5 -3
- package/typography/Operations.js +6 -4
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/useEllipsis.js +1 -1
- package/upload/TriggerNode.js +2 -2
- package/upload/Upload.js +2 -2
- package/utils/contextHolder.js +1 -1
- package/utils/index.js +167 -163
- package/utils/mitt.js +5 -0
- package/utils/names.js +12 -2
- package/utils/pinyin.js +5 -0
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/virtual-list/VirtualList.js +2 -2
- package/watermark/Watermark.js +1 -1
- package/chunk/5_U1CBIu.js +0 -8
- package/chunk/B9YvSTvI.js +0 -2321
- package/chunk/BLOlsa0k.js +0 -11
- package/chunk/BTLlOOe9.js +0 -189
- package/chunk/C6Aw3qIJ.js +0 -16
- package/chunk/CMl7m9nA.js +0 -6
- package/chunk/COqvRD0G.js +0 -11
- package/chunk/DXlwLh0Y.js +0 -806
- package/chunk/DlSv5Vu0.js +0 -16
- package/chunk/DmDh7NRL.js +0 -14
- package/chunk/Duezix3m.js +0 -25
- package/chunk/siEVY1s5.js +0 -33
- package/hooks/useCreate.js +0 -4
- package/types/common/hooks/src/use-dynamic-list/index.d.ts +0 -18
- package/types/common/hooks/src/use-event-emitter/index.d.ts +0 -11
- package/types/common/hooks/src/use-map/index.d.ts +0 -8
- package/types/common/hooks/src/use-set/index.d.ts +0 -6
- package/types/common/hooks/useCreate.d.ts +0 -2
- package/types/pc/hooks/useCreate.d.ts +0 -1
- package/types/pc/hooks/useListenResize.d.ts +0 -1
- /package/hooks/{useListenResize.js → useListenWindowResize.js} +0 -0
package/row-col/Col-.js
CHANGED
|
@@ -3,7 +3,7 @@ import G from "lodash/isArray";
|
|
|
3
3
|
import H from "lodash/isNumber";
|
|
4
4
|
import T from "lodash/isPlainObject";
|
|
5
5
|
import { forwardRef as q, useContext as j, useMemo as D } from "react";
|
|
6
|
-
import { a as I } from "../chunk/
|
|
6
|
+
import { a as I } from "../chunk/BcEZk8pT.js";
|
|
7
7
|
import { COLS as J } from "../constant/index.js";
|
|
8
8
|
import { u as K } from "../chunk/FgWHhRFz.js";
|
|
9
9
|
import Q from "@unicom-cloud/utils/class-name";
|
package/row-col/Col.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as T } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as U, useContext as E, useMemo as x, useEffect as W } from "react";
|
|
3
|
-
import { a as X } from "../chunk/
|
|
3
|
+
import { a as X } from "../chunk/BcEZk8pT.js";
|
|
4
4
|
import { COLS as v } from "../constant/index.js";
|
|
5
5
|
import { u as Y } from "../chunk/FgWHhRFz.js";
|
|
6
6
|
import { useResponsive as Z, isResponsiveValue as ee } from "../hooks/useResponsiveState.js";
|
package/row-col/Row.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as N, useContext as h, useEffect as v } from "react";
|
|
3
|
-
import { a as P } from "../chunk/
|
|
3
|
+
import { a as P } from "../chunk/BcEZk8pT.js";
|
|
4
4
|
import { u as j } from "../chunk/FgWHhRFz.js";
|
|
5
5
|
import { useResponsiveState as c } from "../hooks/useResponsiveState.js";
|
|
6
6
|
import z from "@unicom-cloud/utils/class-name";
|
package/segmented/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as h, jsxs as H, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { a as
|
|
1
|
+
import { jsx as h, jsxs as H, Fragment as ho } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as yo, useContext as zo, useMemo as xo, useState as vo, useRef as L, useEffect as K, useImperativeHandle as wo } from "react";
|
|
3
|
+
import { a as So } from "../chunk/BcEZk8pT.js";
|
|
4
4
|
import "../chunk/DsaQZE4X.js";
|
|
5
5
|
import "../chunk/CdXR6dj7.js";
|
|
6
|
-
import { u as
|
|
6
|
+
import { u as ko } from "../chunk/BJeTDXdz.js";
|
|
7
7
|
import "@unicom-cloud/utils/js-cookie";
|
|
8
8
|
import "dayjs";
|
|
9
9
|
import "lodash/debounce";
|
|
10
|
-
import { u as
|
|
11
|
-
import "../chunk/BTLlOOe9.js";
|
|
10
|
+
import { u as Co } from "../chunk/DfChiMIE.js";
|
|
12
11
|
import "@unicom-cloud/utils/screenfull";
|
|
12
|
+
import "../chunk/BDgzrqDN.js";
|
|
13
13
|
import "lodash/throttle";
|
|
14
14
|
import "@unicom-cloud/utils/constant/platform";
|
|
15
15
|
import "lodash/isPlainObject";
|
|
@@ -20,12 +20,47 @@ import "@unicom-cloud/utils/constant/keyboardCode";
|
|
|
20
20
|
import "lodash/isNumber";
|
|
21
21
|
import "lodash/merge";
|
|
22
22
|
import "../chunk/d1c9z8T1.js";
|
|
23
|
-
import "
|
|
24
|
-
import
|
|
23
|
+
import "@unicom-cloud/utils/date";
|
|
24
|
+
import "@unicom-cloud/utils/case-name";
|
|
25
|
+
import M from "@unicom-cloud/utils/class-name";
|
|
26
|
+
import "@unicom-cloud/utils/constant/ui";
|
|
27
|
+
import "@unicom-cloud/utils/clipboard-copy";
|
|
28
|
+
import "../chunk/DS_deHpN.js";
|
|
29
|
+
import "@unicom-cloud/utils/file/fileToURL";
|
|
30
|
+
import "lodash/escapeRegExp";
|
|
31
|
+
import "lodash/isArray";
|
|
32
|
+
import "lodash/isString";
|
|
33
|
+
import "lodash/isFunction";
|
|
34
|
+
import "lodash/camelCase";
|
|
35
|
+
import "lodash/capitalize";
|
|
36
|
+
import "lodash/cloneDeep";
|
|
37
|
+
import "lodash/get";
|
|
38
|
+
import "lodash/has";
|
|
39
|
+
import "lodash/kebabCase";
|
|
40
|
+
import "lodash/mergeWith";
|
|
41
|
+
import "lodash/set";
|
|
42
|
+
import "lodash/setWith";
|
|
43
|
+
import "lodash/snakeCase";
|
|
44
|
+
import "lodash/startCase";
|
|
45
|
+
import "lodash/uniq";
|
|
46
|
+
import "lodash/upperFirst";
|
|
47
|
+
import "@unicom-cloud/utils/math";
|
|
48
|
+
import "@unicom-cloud/utils/mitt";
|
|
49
|
+
import "@unicom-cloud/utils/pinyin";
|
|
50
|
+
import "../chunk/BJ9_azwQ.js";
|
|
25
51
|
import "../chunk/CXrVhA6-.js";
|
|
52
|
+
import "@unicom-cloud/utils/file/saveAs";
|
|
53
|
+
import "@unicom-cloud/utils/constant/ui.js";
|
|
54
|
+
import "@unicom-cloud/utils/tinycolor";
|
|
55
|
+
import "@unicom-cloud/utils/ui-color";
|
|
56
|
+
import "react-is";
|
|
57
|
+
import "@unicom-cloud/utils/tree";
|
|
58
|
+
import { isString as Io, isNumber as T, isFunction as W } from "@unicom-cloud/utils/is";
|
|
59
|
+
import "uuid";
|
|
60
|
+
import "../chunk/hc_ufgVf.js";
|
|
61
|
+
import "../chunk/RjJoagzL.js";
|
|
62
|
+
import { u as No } from "../chunk/FgWHhRFz.js";
|
|
26
63
|
import "@unicom-cloud/utils/constant";
|
|
27
|
-
import M from "@unicom-cloud/utils/class-name";
|
|
28
|
-
import { isString as Ie, isNumber as T, isFunction as W } from "@unicom-cloud/utils/is";
|
|
29
64
|
const G = {
|
|
30
65
|
mini: {
|
|
31
66
|
root: {
|
|
@@ -67,7 +102,7 @@ const G = {
|
|
|
67
102
|
padding: "19px"
|
|
68
103
|
}
|
|
69
104
|
}
|
|
70
|
-
},
|
|
105
|
+
}, Oo = {
|
|
71
106
|
options: [],
|
|
72
107
|
size: "medium",
|
|
73
108
|
mode: "default",
|
|
@@ -79,114 +114,114 @@ const G = {
|
|
|
79
114
|
keyboardSwitch: !0,
|
|
80
115
|
animationDuration: 300
|
|
81
116
|
};
|
|
82
|
-
function
|
|
83
|
-
const { getPrefixCls: Q, componentConfig: X, rtl: k } =
|
|
117
|
+
function qo(B, J) {
|
|
118
|
+
const { getPrefixCls: Q, componentConfig: X, rtl: k } = zo(So), c = No(
|
|
84
119
|
B,
|
|
85
|
-
|
|
120
|
+
Oo,
|
|
86
121
|
X?.Segmented
|
|
87
122
|
), {
|
|
88
123
|
style: Y,
|
|
89
124
|
className: Z,
|
|
90
125
|
options: C = [],
|
|
91
126
|
defaultValue: _,
|
|
92
|
-
value:
|
|
127
|
+
value: oo,
|
|
93
128
|
size: y = "medium",
|
|
94
129
|
gap: I,
|
|
95
130
|
mode: z = "default",
|
|
96
|
-
disabled:
|
|
131
|
+
disabled: f = !1,
|
|
97
132
|
block: N = !1,
|
|
98
|
-
split:
|
|
133
|
+
split: eo,
|
|
99
134
|
direction: x = "horizontal",
|
|
100
135
|
showIndicator: O = !0,
|
|
101
136
|
keyboardSwitch: q = !0,
|
|
102
137
|
animationDuration: A = 300,
|
|
103
138
|
name: D,
|
|
104
|
-
immediateTrigger:
|
|
139
|
+
immediateTrigger: to = !1,
|
|
105
140
|
onChange: P,
|
|
106
|
-
...
|
|
107
|
-
} =
|
|
108
|
-
function
|
|
109
|
-
let
|
|
110
|
-
return "gap" in
|
|
141
|
+
...io
|
|
142
|
+
} = c, R = ko(), e = Q?.("segmented"), ro = x === "vertical", V = z === "pill", U = "value" in c, n = xo(() => C.map((o) => Io(o) || T(o) ? { value: o, label: o } : o), [C]), [no, so] = vo(_), E = L(null), v = L([]), a = U ? oo : no, p = G[y] || G.medium;
|
|
143
|
+
function ao() {
|
|
144
|
+
let o = I;
|
|
145
|
+
return "gap" in c ? o = I : o = p.root.padding, o;
|
|
111
146
|
}
|
|
112
|
-
const u =
|
|
113
|
-
function
|
|
114
|
-
const
|
|
115
|
-
padding: `0 ${
|
|
116
|
-
height: `calc(${
|
|
147
|
+
const u = ao();
|
|
148
|
+
function po() {
|
|
149
|
+
const o = {
|
|
150
|
+
padding: `0 ${p.option.padding}`,
|
|
151
|
+
height: `calc(${p.option.size} - ${p.root.padding} * 2)`
|
|
117
152
|
};
|
|
118
|
-
return V && (
|
|
153
|
+
return V && (o.borderRadius = `calc(${o.height} / 2)`), o;
|
|
119
154
|
}
|
|
120
|
-
const b =
|
|
121
|
-
function
|
|
122
|
-
const
|
|
155
|
+
const b = po();
|
|
156
|
+
function lo() {
|
|
157
|
+
const o = {
|
|
123
158
|
gap: u,
|
|
124
|
-
fontSize:
|
|
125
|
-
padding:
|
|
159
|
+
fontSize: p.root.fontSize,
|
|
160
|
+
padding: p.root.padding,
|
|
126
161
|
...Y
|
|
127
162
|
};
|
|
128
|
-
if (
|
|
129
|
-
b.borderRadius && (
|
|
130
|
-
const i =
|
|
131
|
-
t && (
|
|
163
|
+
if (o["--gap"] = T(u) ? `${u}px` : u, V && (o.borderRadius = `calc(${p.option.size} / 2)`), O) {
|
|
164
|
+
b.borderRadius && (o["--before-border-radius"] = b.borderRadius), A && (o["--before-transition-duration"] = `${A}ms`);
|
|
165
|
+
const i = n.findIndex((r) => r?.value === a), t = v.current[i];
|
|
166
|
+
t && (o["--before-width"] = `${t.offsetWidth}px`, o["--before-height"] = `${t.offsetHeight}px`, ro ? o["--before-top"] = `${t.offsetTop}px` : o["--before-left"] = `${t.offsetLeft}px`);
|
|
132
167
|
}
|
|
133
|
-
return
|
|
168
|
+
return o;
|
|
134
169
|
}
|
|
135
|
-
const
|
|
136
|
-
function g(
|
|
137
|
-
const
|
|
138
|
-
U ||
|
|
170
|
+
const mo = lo();
|
|
171
|
+
function g(o, i, t) {
|
|
172
|
+
const r = t || n.find((l) => l.value === o);
|
|
173
|
+
U || so(o), W(P) && P(o, r);
|
|
139
174
|
}
|
|
140
|
-
function
|
|
141
|
-
|
|
175
|
+
function co(o, i, t, r) {
|
|
176
|
+
r || f || g(o, i, t);
|
|
142
177
|
}
|
|
143
|
-
function
|
|
144
|
-
if (
|
|
178
|
+
function fo(o) {
|
|
179
|
+
if (o.preventDefault(), !q || f)
|
|
145
180
|
return;
|
|
146
|
-
const i =
|
|
181
|
+
const i = n.findIndex((d) => d?.value === a);
|
|
147
182
|
let t = i;
|
|
148
|
-
const
|
|
149
|
-
switch (
|
|
183
|
+
const r = n.length;
|
|
184
|
+
switch (o.key) {
|
|
150
185
|
case "ArrowLeft":
|
|
151
186
|
case "ArrowUp":
|
|
152
|
-
t = (i - 1 +
|
|
187
|
+
t = (i - 1 + r) % r;
|
|
153
188
|
break;
|
|
154
189
|
case "ArrowRight":
|
|
155
190
|
case "ArrowDown":
|
|
156
|
-
t = (i + 1) %
|
|
191
|
+
t = (i + 1) % r;
|
|
157
192
|
break;
|
|
158
193
|
case "Home":
|
|
159
194
|
t = 0;
|
|
160
195
|
break;
|
|
161
196
|
case "End":
|
|
162
|
-
t =
|
|
197
|
+
t = r - 1;
|
|
163
198
|
break;
|
|
164
199
|
default:
|
|
165
200
|
return;
|
|
166
201
|
}
|
|
167
|
-
for (; t !== i &&
|
|
168
|
-
const
|
|
169
|
-
t = (t +
|
|
202
|
+
for (; t !== i && n[t]?.disabled; ) {
|
|
203
|
+
const d = ["ArrowLeft", "ArrowUp"].includes(o.key) ? -1 : 1;
|
|
204
|
+
t = (t + d + r) % r;
|
|
170
205
|
}
|
|
171
|
-
const l =
|
|
206
|
+
const l = n[t], s = l?.value;
|
|
172
207
|
s && s !== a && (g(s, t, l), v.current[t]?.focus?.());
|
|
173
208
|
}
|
|
174
|
-
function
|
|
175
|
-
if (!
|
|
209
|
+
function uo(o, i, t) {
|
|
210
|
+
if (!o) return;
|
|
176
211
|
const {
|
|
177
|
-
style:
|
|
212
|
+
style: r,
|
|
178
213
|
className: l,
|
|
179
214
|
value: s,
|
|
180
|
-
label:
|
|
215
|
+
label: d,
|
|
181
216
|
icon: w,
|
|
182
|
-
disabled:
|
|
217
|
+
disabled: bo,
|
|
183
218
|
render: F,
|
|
184
|
-
...
|
|
185
|
-
} =
|
|
219
|
+
...go
|
|
220
|
+
} = o, m = s === a, $ = bo || f, S = !d && !!w, $o = Object.assign(
|
|
186
221
|
{},
|
|
187
222
|
b,
|
|
188
223
|
S ? { padding: 0, width: b.height } : {},
|
|
189
|
-
|
|
224
|
+
r
|
|
190
225
|
);
|
|
191
226
|
return /* @__PURE__ */ H(
|
|
192
227
|
"button",
|
|
@@ -194,31 +229,31 @@ function Oe(B, J) {
|
|
|
194
229
|
ref: (j) => {
|
|
195
230
|
v.current[i] = j;
|
|
196
231
|
},
|
|
197
|
-
style:
|
|
232
|
+
style: $o,
|
|
198
233
|
className: M(
|
|
199
|
-
`${
|
|
200
|
-
`${
|
|
201
|
-
`${
|
|
202
|
-
`${
|
|
234
|
+
`${e}-option`,
|
|
235
|
+
`${e}-option-size-${y}`,
|
|
236
|
+
`${e}-option-mode-${z}`,
|
|
237
|
+
`${e}-option-direction-${x}`,
|
|
203
238
|
{
|
|
204
|
-
[`${
|
|
205
|
-
[`${
|
|
206
|
-
[`${
|
|
207
|
-
[`${
|
|
208
|
-
[`${
|
|
239
|
+
[`${e}-option-rtl`]: k,
|
|
240
|
+
[`${e}-option-block`]: N,
|
|
241
|
+
[`${e}-option-split`]: eo,
|
|
242
|
+
[`${e}-option-active`]: m,
|
|
243
|
+
[`${e}-option-disabled`]: $
|
|
209
244
|
},
|
|
210
|
-
S ? `${
|
|
245
|
+
S ? `${e}-option-icon-only` : `${e}-option-not-icon-only`,
|
|
211
246
|
l
|
|
212
247
|
),
|
|
213
248
|
disabled: $,
|
|
214
249
|
role: "radio",
|
|
215
|
-
"aria-checked":
|
|
250
|
+
"aria-checked": m,
|
|
216
251
|
"aria-disabled": $,
|
|
217
|
-
tabIndex:
|
|
252
|
+
tabIndex: m ? 0 : -1,
|
|
218
253
|
onClick: (j) => {
|
|
219
|
-
|
|
254
|
+
co(s, i, o, $);
|
|
220
255
|
},
|
|
221
|
-
...
|
|
256
|
+
...go,
|
|
222
257
|
children: [
|
|
223
258
|
!!D && /* @__PURE__ */ h(
|
|
224
259
|
"input",
|
|
@@ -226,63 +261,63 @@ function Oe(B, J) {
|
|
|
226
261
|
type: "radio",
|
|
227
262
|
name: D,
|
|
228
263
|
value: s,
|
|
229
|
-
checked:
|
|
230
|
-
className: `${
|
|
264
|
+
checked: m,
|
|
265
|
+
className: `${e}-input`,
|
|
231
266
|
tabIndex: -1,
|
|
232
267
|
"aria-hidden": "true"
|
|
233
268
|
}
|
|
234
269
|
),
|
|
235
|
-
W(F) ? F(
|
|
236
|
-
w && /* @__PURE__ */ h("span", { className: `${
|
|
237
|
-
!S && /* @__PURE__ */ h("span", { className: `${
|
|
270
|
+
W(F) ? F(o, m) : /* @__PURE__ */ H(ho, { children: [
|
|
271
|
+
w && /* @__PURE__ */ h("span", { className: `${e}-option-icon`, children: w }),
|
|
272
|
+
!S && /* @__PURE__ */ h("span", { className: `${e}-option-label`, children: d })
|
|
238
273
|
] })
|
|
239
274
|
]
|
|
240
275
|
},
|
|
241
|
-
`${
|
|
276
|
+
`${d}-${s}-${i}`
|
|
242
277
|
);
|
|
243
278
|
}
|
|
244
|
-
return
|
|
245
|
-
a === void 0 ||
|
|
246
|
-
}, [
|
|
247
|
-
const
|
|
279
|
+
return Co(() => {
|
|
280
|
+
a === void 0 || n.some((i) => i.value === a) || g(void 0);
|
|
281
|
+
}, [n]), K(() => {
|
|
282
|
+
const o = requestAnimationFrame(() => {
|
|
248
283
|
R();
|
|
249
284
|
});
|
|
250
285
|
return () => {
|
|
251
|
-
cancelAnimationFrame(
|
|
286
|
+
cancelAnimationFrame(o);
|
|
252
287
|
};
|
|
253
|
-
}, [R,
|
|
254
|
-
|
|
255
|
-
}, []),
|
|
288
|
+
}, [R, c]), K(() => {
|
|
289
|
+
to && g(a);
|
|
290
|
+
}, []), wo(J, () => ({
|
|
256
291
|
dom: E.current
|
|
257
292
|
})), /* @__PURE__ */ h(
|
|
258
293
|
"div",
|
|
259
294
|
{
|
|
260
295
|
ref: E,
|
|
261
|
-
...
|
|
262
|
-
style:
|
|
296
|
+
...io,
|
|
297
|
+
style: mo,
|
|
263
298
|
className: M(
|
|
264
|
-
|
|
299
|
+
e,
|
|
265
300
|
{
|
|
266
|
-
[`${
|
|
267
|
-
[`${
|
|
268
|
-
[`${
|
|
269
|
-
[`${
|
|
301
|
+
[`${e}-rtl`]: k,
|
|
302
|
+
[`${e}-block`]: N,
|
|
303
|
+
[`${e}-disabled`]: f,
|
|
304
|
+
[`${e}-indicator`]: O
|
|
270
305
|
},
|
|
271
|
-
`${
|
|
272
|
-
`${
|
|
273
|
-
`${
|
|
306
|
+
`${e}-mode-${z}`,
|
|
307
|
+
`${e}-direction-${x}`,
|
|
308
|
+
`${e}-size-${y}`,
|
|
274
309
|
Z
|
|
275
310
|
),
|
|
276
311
|
role: "radiogroup",
|
|
277
|
-
onKeyDown: q ? (
|
|
278
|
-
|
|
312
|
+
onKeyDown: q ? (o) => {
|
|
313
|
+
fo(o);
|
|
279
314
|
} : void 0,
|
|
280
|
-
children:
|
|
315
|
+
children: n.map(uo)
|
|
281
316
|
}
|
|
282
317
|
);
|
|
283
318
|
}
|
|
284
|
-
const
|
|
285
|
-
|
|
319
|
+
const Ao = yo(qo);
|
|
320
|
+
Ao.displayName = "Segmented";
|
|
286
321
|
export {
|
|
287
|
-
|
|
322
|
+
Ao as default
|
|
288
323
|
};
|
package/select/Option.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as g, jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import E from "react";
|
|
3
|
-
import { C as L } from "../chunk/
|
|
3
|
+
import { C as L } from "../chunk/qsVvkBLU.js";
|
|
4
4
|
import _ from "@unicom-cloud/utils/class-name";
|
|
5
5
|
import { o as j } from "../chunk/BKKEev13.js";
|
|
6
6
|
function y(l, f) {
|