useblocks 1.1.85-dev.9 → 1.1.102
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/CHANGELOG.md +91 -0
- package/README.md +74 -41
- package/compat-globals.js +1 -1
- package/iframe/.vite/manifest.json +4 -4
- package/iframe/css/sandbox.css +35 -1
- package/iframe/{iframe.bb6d921f.html → iframe-eblock.1c4e77a0.html} +2 -2
- package/iframe/{iframe-eblock.bb6d921f.html → iframe.1c4e77a0.html} +2 -2
- package/iframe/js/discussHandlers.Xh4-JUcT.js +88 -0
- package/iframe/js/{iframe-eblock.body.js → iframe-eblock.body.1c4e77a0.js} +1 -1
- package/iframe/js/iframe-eblock.js +2 -2
- package/iframe/js/iframe.body.1c4e77a0.js +319 -0
- package/iframe/js/iframe.js +2 -2
- package/package.json +8 -1
- package/runtime/THIRD_PARTY_LICENSES.txt +49 -42
- package/runtime/package.json +4 -1
- package/runtime/react/index.js +1 -1
- package/runtime/uuid/index.js +21 -0
- package/static/core/11b821ed.js +1 -0
- package/static/core/160bf060.js +104 -0
- package/static/core/1b68c0f0.js +1 -0
- package/static/core/1ed86ed3.js +1 -0
- package/static/core/26cc947d.js +1 -0
- package/static/core/{67f78cad.js → 3ec42945.js} +7 -7
- package/static/core/3fb172c7.js +1 -0
- package/static/core/448f03f8.js +1 -0
- package/static/core/44d2c046.js +1 -0
- package/static/core/{79749848.js → 4c8d0155.js} +5 -5
- package/static/core/53103851.js +4 -0
- package/static/core/{a767f327.js → 5d849eef.js} +1 -1
- package/static/core/5e7c221f.js +28 -0
- package/static/core/64be048b.js +27 -0
- package/static/core/{de07cade.js → 6a671446.js} +3 -3
- package/static/core/{db82c42b.js → 756874c6.js} +1 -1
- package/static/core/{4c3f5897.js → 847338a8.js} +2 -2
- package/static/core/91e07171.js +2 -0
- package/static/core/a2e57e5f.js +1 -0
- package/static/core/{a5996860.js → a6303cb2.js} +1 -1
- package/static/core/{9f137764.js → a98b6879.js} +1 -1
- package/static/core/ae22b7f6.js +93 -0
- package/static/core/{44a83e21.js → b653f9c5.js} +1 -1
- package/static/core/{cb46784e.js → b7aa9fec.js} +1 -1
- package/static/core/{d8bbcfbd.js → ca4dad9b.js} +2 -2
- package/static/core/{6faa23a1.js → cc180859.js} +1 -1
- package/static/core/d7666ad0.js +291 -0
- package/static/core/dcc37768.js +1 -0
- package/static/core/edf450a1.js +7 -0
- package/static/core/f1ee2bef.js +1 -0
- package/static/core/{1e3078da.js → f323e60e.js} +1 -1
- package/static/core/{175b5b0f.js → ff7d14e8.js} +1 -1
- package/static/esm/2490dab8.js +1 -0
- package/static/esm/668ee399.js +1 -0
- package/static/esm/971f1b2c.js +1 -0
- package/static/esm/f76c9d9d.js +1 -0
- package/static/umd/6639d610.js +1 -0
- package/static/umd-runtime/B7h7P1Np.js +1 -0
- package/static/umd-runtime/{DHIkHsbq.js → BAqQTgiL.js} +1 -1
- package/static/umd-runtime/{DiNHpyis.js → BB6AXfHj.js} +1 -1
- package/static/umd-runtime/{CnUGCoaH.js → BauvM4c_.js} +1 -1
- package/static/umd-runtime/{cL_ha9ef.js → CgVJ4rE0.js} +1 -1
- package/static/umd-runtime/Cvm7BS4_.js +341 -0
- package/static/umd-runtime/{BnE05QKl.js → D7DggGzi.js} +1 -1
- package/static/umd-runtime/{2iAslXEF.js → DBbch1O-.js} +1 -1
- package/static/umd-runtime/{Bcqtk2f7.js → Dqoi-pC_.js} +2 -2
- package/static/umd-runtime/{CDTBLHGd.js → G2k8ELiO.js} +3 -3
- package/static/umd-runtime/{CVtPwspX.js → SFp4nbvq.js} +1 -1
- package/static/umd-runtime/{DVB_-O4B.js → UsRzAWs2.js} +1 -1
- package/static/umd-runtime/runtime.2paN090q.js +1 -0
- package/static/umd-runtime/{ui-kit-icons.js → ui-kit-icons.DqlZwgBU.js} +1 -1
- package/static/umd-runtime/{ui-kit.js → ui-kit.CoVNet0I.js} +2 -2
- package/static/umd-runtime/{DP3QTW77.js → uk9LyZos.js} +1 -1
- package/ui-kit/icons.js +2 -0
- package/useblocks-core.1c4e77a0.js +859 -0
- package/useblocks-esm.js +11 -10
- package/{useblocks-po.bb6d921f.js → useblocks-po.1c4e77a0.js} +1 -1
- package/useblocks.d.ts +162 -28
- package/useblocks.js +39 -15
- package/vendor/@rc-component/cascader/package.json +1 -1
- package/vendor/@rc-component/dialog/es/Dialog/Content/Panel.js +3 -2
- package/vendor/@rc-component/dialog/package.json +1 -1
- package/vendor/@rc-component/image/es/Preview/index.js +3 -3
- package/vendor/@rc-component/image/package.json +1 -1
- package/vendor/@rc-component/input/es/BaseInput.js +3 -3
- package/vendor/@rc-component/input/es/Input.js +20 -27
- package/vendor/@rc-component/{textarea → input}/es/ResizableTextArea.js +5 -4
- package/vendor/@rc-component/{textarea → input}/es/TextArea.js +30 -40
- package/vendor/@rc-component/{textarea → input}/es/calculateNodeHeight.js +4 -4
- package/vendor/@rc-component/input/es/hooks/useCountDisplay.js +25 -0
- package/vendor/@rc-component/input/es/hooks/useCountExceed.js +25 -0
- package/vendor/@rc-component/input/es/hooks/useMergedValue.js +13 -0
- package/vendor/@rc-component/input/es/index.js +3 -1
- package/vendor/@rc-component/input/package.json +1 -1
- package/vendor/@rc-component/mentions/es/DropdownMenu.js +1 -1
- package/vendor/@rc-component/mentions/es/Mentions.js +35 -8
- package/vendor/@rc-component/mentions/package.json +1 -1
- package/vendor/@rc-component/menu/es/Menu.js +1 -0
- package/vendor/@rc-component/menu/es/MenuItem.js +1 -0
- package/vendor/@rc-component/menu/es/MenuItemGroup.js +1 -0
- package/vendor/@rc-component/menu/es/SubMenu/PopupTrigger.js +1 -0
- package/vendor/@rc-component/menu/es/SubMenu/index.js +1 -0
- package/vendor/@rc-component/menu/es/context/MenuContext.js +1 -0
- package/vendor/@rc-component/menu/es/hooks/useAccessibility.js +1 -0
- package/vendor/@rc-component/menu/es/hooks/useKeyRecords.js +1 -0
- package/vendor/@rc-component/menu/es/utils/commonUtil.js +1 -0
- package/vendor/@rc-component/menu/es/utils/nodeUtil.js +2 -1
- package/vendor/@rc-component/menu/es/utils/warnUtil.js +1 -0
- package/vendor/@rc-component/menu/package.json +1 -1
- package/vendor/@rc-component/notification/LICENSE +21 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/LICENSE +22 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Children/toArray.js +15 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/canUseDom.js +6 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/contains.js +13 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/dynamicCSS.js +94 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/findDOMNode.js +14 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/focus.js +99 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/isVisible.js +18 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/shadow.js +12 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/styleChecker.js +2 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/KeyCode.js +499 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Portal.js +28 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/React/isFragment.js +12 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/React/render.js +2 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/getScrollBarSize.js +2 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useControlledState.js +3 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useDelayState.js +4 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useEvent.js +9 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useId.js +23 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useLayoutEffect.js +26 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useMemo.js +12 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useMergedState.js +4 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useState.js +24 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useSyncState.js +20 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/index.js +36 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/is.js +21 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/isEqual.js +35 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/isMobile.js +11 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/mergeProps.js +14 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/omit.js +1 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/pickAttrs.js +50 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/proxyObject.js +1 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/raf.js +36 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/ref.js +38 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/test/domHook.js +36 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/utils/get.js +11 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/utils/set.js +58 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/warning.js +46 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/package.json +6 -0
- package/vendor/@rc-component/notification/es/Notification.js +129 -0
- package/vendor/@rc-component/notification/es/NotificationList/Content.js +33 -0
- package/vendor/@rc-component/notification/es/NotificationList/index.js +174 -0
- package/vendor/@rc-component/notification/es/NotificationProvider.js +4 -3
- package/vendor/@rc-component/notification/es/Notifications.js +28 -31
- package/vendor/@rc-component/notification/es/Progress.js +10 -0
- package/vendor/@rc-component/notification/es/hooks/useClosable.js +30 -0
- package/vendor/@rc-component/notification/es/hooks/useListPosition/index.js +50 -0
- package/vendor/@rc-component/notification/es/hooks/useListPosition/useSizes.js +33 -0
- package/vendor/@rc-component/notification/es/hooks/useNoticeTimer.js +58 -0
- package/vendor/@rc-component/notification/es/hooks/useNotification.js +27 -18
- package/vendor/@rc-component/notification/es/hooks/useStack.js +4 -4
- package/vendor/@rc-component/notification/es/index.js +4 -2
- package/vendor/@rc-component/notification/package.json +1 -1
- package/vendor/@rc-component/picker/es/PickerInput/Selector/SingleSelector/MultipleDates.js +13 -3
- package/vendor/@rc-component/picker/es/PickerInput/Selector/SingleSelector/index.js +3 -1
- package/vendor/@rc-component/picker/es/PickerInput/SinglePicker.js +2 -1
- package/vendor/@rc-component/picker/package.json +1 -1
- package/vendor/@rc-component/table/LICENSE +21 -0
- package/vendor/@rc-component/table/es/Body/MeasureCell.js +1 -0
- package/vendor/@rc-component/table/es/Body/MeasureRow.js +1 -0
- package/vendor/@rc-component/table/es/Cell/useCellRender.js +1 -0
- package/vendor/@rc-component/table/es/FixedHolder/index.js +1 -0
- package/vendor/@rc-component/table/es/Table.js +17 -9
- package/vendor/@rc-component/table/es/VirtualTable/BodyGrid.js +10 -4
- package/vendor/@rc-component/table/es/VirtualTable/BodyLine.js +13 -5
- package/vendor/@rc-component/table/es/hooks/useColumns/index.js +1 -0
- package/vendor/@rc-component/table/es/hooks/useExpand.js +1 -0
- package/vendor/@rc-component/table/es/hooks/useFixedInfo.js +1 -0
- package/vendor/@rc-component/table/es/hooks/useSticky.js +1 -0
- package/vendor/@rc-component/table/es/index.js +2 -1
- package/vendor/@rc-component/table/es/stickyScrollBar.js +1 -0
- package/vendor/@rc-component/table/es/utils/legacyUtil.js +1 -0
- package/vendor/@rc-component/table/es/utils/offsetUtil.js +1 -0
- package/vendor/@rc-component/table/package.json +1 -1
- package/vendor/@rc-component/tabs/es/TabNavList/OperationNode.js +4 -2
- package/vendor/@rc-component/tabs/es/TabNavList/TabNode.js +5 -4
- package/vendor/@rc-component/tabs/es/TabNavList/index.js +11 -4
- package/vendor/@rc-component/tabs/es/Tabs.js +1 -0
- package/vendor/@rc-component/tabs/es/hooks/useAnimateConfig.js +1 -0
- package/vendor/@rc-component/tabs/es/hooks/useIndicator.js +1 -0
- package/vendor/@rc-component/tabs/es/hooks/useUpdate.js +1 -0
- package/vendor/@rc-component/tabs/package.json +1 -1
- package/vendor/@rc-component/tour/es/TourStep/DefaultPanel.js +4 -1
- package/vendor/@rc-component/tour/package.json +1 -1
- package/vendor/@rc-component/tree/es/MotionTreeNode.js +1 -0
- package/vendor/@rc-component/tree/es/NodeList.js +2 -2
- package/vendor/@rc-component/tree/es/Tree.js +4 -5
- package/vendor/@rc-component/tree/es/TreeNode.js +7 -2
- package/vendor/@rc-component/tree/es/index.js +3 -0
- package/vendor/@rc-component/tree/es/useUnmount.js +1 -0
- package/vendor/@rc-component/tree/es/util.js +1 -0
- package/vendor/@rc-component/tree/es/utils/conductUtil.js +1 -0
- package/vendor/@rc-component/tree/es/utils/treeUtil.js +1 -0
- package/vendor/@rc-component/tree/package.json +1 -1
- package/vendor/@rc-component/tree-select/package.json +1 -1
- package/vendor/@rc-component/util/es/index.js +10 -10
- package/vendor/antd/es/_util/ActionButton.js +2 -3
- package/vendor/antd/es/_util/ContextIsolator.js +1 -1
- package/vendor/antd/es/_util/PurePanel.js +7 -4
- package/vendor/antd/es/_util/convertToTooltipProps.js +2 -2
- package/vendor/antd/es/_util/fallbackProp.js +15 -0
- package/vendor/antd/es/_util/gapSize.js +2 -1
- package/vendor/antd/es/_util/getRenderPropValue.js +2 -1
- package/vendor/antd/es/_util/getScroll.js +4 -4
- package/vendor/antd/es/_util/hooks/index.js +2 -2
- package/vendor/antd/es/_util/hooks/useAllowClear.js +25 -0
- package/vendor/antd/es/_util/hooks/useClosable.js +6 -5
- package/vendor/antd/es/_util/hooks/{useMergeSemantic.js → useMergeSemantic/index.js} +14 -24
- package/vendor/antd/es/_util/hooks/useMergeSemantic/utils.js +14 -0
- package/vendor/antd/es/_util/hooks/useMergedMask.js +2 -1
- package/vendor/antd/es/_util/is.js +27 -0
- package/vendor/antd/es/_util/motion.js +8 -8
- package/vendor/antd/es/_util/normalizeIcon.js +9 -0
- package/vendor/antd/es/_util/placements.js +2 -1
- package/vendor/antd/es/_util/reactNode.js +2 -1
- package/vendor/antd/es/_util/responsiveObserver.js +3 -2
- package/vendor/antd/es/_util/scrollTo.js +3 -1
- package/vendor/antd/es/_util/styleChecker.js +1 -0
- package/vendor/antd/es/_util/throttleByAnimationFrame.js +1 -0
- package/vendor/antd/es/_util/toList.js +1 -1
- package/vendor/antd/es/_util/wave/WaveEffect.js +3 -1
- package/vendor/antd/es/_util/wave/index.js +14 -4
- package/vendor/antd/es/_util/wave/util.js +5 -3
- package/vendor/antd/es/alert/Alert.js +12 -10
- package/vendor/antd/es/alert/ErrorBoundary.js +1 -1
- package/vendor/antd/es/alert/style/index.js +16 -10
- package/vendor/antd/es/anchor/Anchor.js +23 -16
- package/vendor/antd/es/anchor/AnchorLink.js +4 -4
- package/vendor/antd/es/app/App.js +7 -3
- package/vendor/antd/es/auto-complete/AutoComplete.js +7 -8
- package/vendor/antd/es/avatar/Avatar.js +5 -3
- package/vendor/antd/es/back-top/index.js +1 -0
- package/vendor/antd/es/badge/Badge.js +5 -6
- package/vendor/antd/es/badge/Ribbon.js +1 -2
- package/vendor/antd/es/badge/style/index.js +4 -3
- package/vendor/antd/es/border-beam/BorderBeam.js +42 -0
- package/vendor/antd/es/border-beam/BorderBeamEffect.js +24 -0
- package/vendor/antd/es/border-beam/hooks/useBorderSize.js +37 -0
- package/vendor/antd/es/border-beam/hooks/useChildDom.js +24 -0
- package/vendor/antd/es/border-beam/index.js +7 -0
- package/vendor/antd/es/border-beam/style/index.js +60 -0
- package/vendor/antd/es/border-beam/util.js +26 -0
- package/vendor/antd/es/breadcrumb/Breadcrumb.js +1 -2
- package/vendor/antd/es/breadcrumb/BreadcrumbItem.js +1 -1
- package/vendor/antd/es/breadcrumb/useItemRender.js +3 -2
- package/vendor/antd/es/button/Button.js +7 -6
- package/vendor/antd/es/button/buttonHelpers.js +4 -8
- package/vendor/antd/es/button/index.js +2 -2
- package/vendor/antd/es/button/style/index.js +5 -0
- package/vendor/antd/es/calendar/generateCalendar.js +20 -8
- package/vendor/antd/es/card/Card.js +5 -7
- package/vendor/antd/es/card/CardMeta.js +1 -2
- package/vendor/antd/es/carousel/index.js +2 -1
- package/vendor/antd/es/cascader/Panel.js +1 -1
- package/vendor/antd/es/cascader/index.js +23 -16
- package/vendor/antd/es/cascader/style/columns.js +6 -2
- package/vendor/antd/es/checkbox/Checkbox.js +2 -3
- package/vendor/antd/es/checkbox/Group.js +2 -1
- package/vendor/antd/es/checkbox/style/index.js +1 -5
- package/vendor/antd/es/checkbox/useBubbleLock.js +1 -0
- package/vendor/antd/es/collapse/Collapse.js +3 -3
- package/vendor/antd/es/collapse/style/index.js +1 -4
- package/vendor/antd/es/color-picker/ColorPicker.js +1 -2
- package/vendor/antd/es/color-picker/ColorPickerPanel.js +2 -1
- package/vendor/antd/es/color-picker/components/ColorTrigger.js +3 -1
- package/vendor/antd/es/color-picker/components/PanelPicker/index.js +1 -0
- package/vendor/antd/es/config-provider/hooks/useSize.js +3 -2
- package/vendor/antd/es/config-provider/hooks/useTheme.js +2 -0
- package/vendor/antd/es/config-provider/index.js +11 -3
- package/vendor/antd/es/date-picker/generatePicker/generateRangePicker.js +20 -10
- package/vendor/antd/es/date-picker/generatePicker/generateSinglePicker.js +17 -8
- package/vendor/antd/es/date-picker/generatePicker/useSuffixIcon.js +1 -1
- package/vendor/antd/es/date-picker/hooks/useMergedPickerSemantic.js +1 -2
- package/vendor/antd/es/date-picker/style/index.js +13 -3
- package/vendor/antd/es/date-picker/style/multiple.js +3 -4
- package/vendor/antd/es/date-picker/style/panel.js +5 -20
- package/vendor/antd/es/date-picker/util.js +14 -13
- package/vendor/antd/es/descriptions/Cell.js +2 -3
- package/vendor/antd/es/descriptions/hooks/useItems.js +2 -1
- package/vendor/antd/es/descriptions/index.js +3 -3
- package/vendor/antd/es/divider/index.js +3 -2
- package/vendor/antd/es/drawer/Drawer.js +10 -5
- package/vendor/antd/es/drawer/DrawerPanel.js +3 -2
- package/vendor/antd/es/dropdown/dropdown.js +11 -8
- package/vendor/antd/es/dropdown/style/index.js +2 -6
- package/vendor/antd/es/empty/index.js +1 -2
- package/vendor/antd/es/flex/index.js +2 -2
- package/vendor/antd/es/float-button/BackTop.js +1 -0
- package/vendor/antd/es/float-button/FloatButton.js +3 -3
- package/vendor/antd/es/float-button/FloatButtonGroup.js +2 -2
- package/vendor/antd/es/form/ErrorList.js +13 -6
- package/vendor/antd/es/form/Form.js +7 -6
- package/vendor/antd/es/form/FormItem/ItemHolder.js +1 -1
- package/vendor/antd/es/form/FormItem/index.js +6 -6
- package/vendor/antd/es/form/FormItemInput.js +5 -3
- package/vendor/antd/es/form/FormItemLabel.js +2 -1
- package/vendor/antd/es/form/FormList.js +1 -0
- package/vendor/antd/es/form/hooks/useChildren.js +4 -3
- package/vendor/antd/es/form/hooks/useForm.js +3 -1
- package/vendor/antd/es/form/hooks/useFrameState.js +1 -0
- package/vendor/antd/es/form/hooks/useItemRef.js +7 -5
- package/vendor/antd/es/form/style/index.js +1 -3
- package/vendor/antd/es/grid/col.js +5 -7
- package/vendor/antd/es/grid/hooks/useBreakpoint.js +1 -0
- package/vendor/antd/es/grid/hooks/useGutter.js +2 -1
- package/vendor/antd/es/grid/row.js +7 -6
- package/vendor/antd/es/image/PreviewGroup.js +1 -2
- package/vendor/antd/es/image/Progress.js +58 -0
- package/vendor/antd/es/image/hooks/useMergedPreviewConfig.js +3 -1
- package/vendor/antd/es/image/hooks/usePlaceholderConfig.js +15 -0
- package/vendor/antd/es/image/hooks/usePreviewConfig.js +3 -2
- package/vendor/antd/es/image/index.js +36 -5
- package/vendor/antd/es/image/style/index.js +114 -4
- package/vendor/antd/es/image/style/progressAnimation.js +26 -0
- package/vendor/antd/es/index.js +2 -1
- package/vendor/antd/es/input/Input.js +9 -4
- package/vendor/antd/es/input/OTP/OTPInput.js +1 -0
- package/vendor/antd/es/input/OTP/index.js +3 -3
- package/vendor/antd/es/input/Password.js +45 -26
- package/vendor/antd/es/input/Search.js +6 -5
- package/vendor/antd/es/input/TextArea.js +13 -7
- package/vendor/antd/es/input/style/index.js +17 -11
- package/vendor/antd/es/input/style/otp.js +2 -1
- package/vendor/antd/es/input/style/variants.js +16 -10
- package/vendor/antd/es/input-number/index.js +3 -3
- package/vendor/antd/es/input-number/style/index.js +9 -9
- package/vendor/antd/es/layout/Sider.js +3 -2
- package/vendor/antd/es/list/index.js +5 -3
- package/vendor/antd/es/locale/en_US.js +3 -1
- package/vendor/antd/es/locale/ru_RU.js +3 -1
- package/vendor/antd/es/locale/useLocale.js +2 -1
- package/vendor/antd/es/masonry/Masonry.js +4 -3
- package/vendor/antd/es/mentions/index.js +28 -14
- package/vendor/antd/es/menu/MenuItem.js +2 -1
- package/vendor/antd/es/menu/OverrideContext.js +1 -0
- package/vendor/antd/es/menu/SubMenu.js +1 -1
- package/vendor/antd/es/menu/menu.js +5 -5
- package/vendor/antd/es/menu/style/index.js +21 -36
- package/vendor/antd/es/menu/style/vertical.js +2 -1
- package/vendor/antd/es/message/PureList.js +49 -0
- package/vendor/antd/es/message/PurePanel.js +28 -36
- package/vendor/antd/es/message/index.js +6 -3
- package/vendor/antd/es/message/style/index.js +102 -99
- package/vendor/antd/es/message/useMessage.js +29 -33
- package/vendor/antd/es/message/util.js +1 -1
- package/vendor/antd/es/modal/ConfirmDialog.js +11 -9
- package/vendor/antd/es/modal/Modal.js +12 -7
- package/vendor/antd/es/modal/PurePanel.js +1 -2
- package/vendor/antd/es/modal/confirm.js +4 -3
- package/vendor/antd/es/modal/shared.js +3 -2
- package/vendor/antd/es/modal/useModal/HookModal.js +2 -1
- package/vendor/antd/es/notification/PureList.js +46 -0
- package/vendor/antd/es/notification/PurePanel.js +37 -56
- package/vendor/antd/es/notification/hooks/useStackConfig.js +13 -0
- package/vendor/antd/es/notification/index.js +3 -1
- package/vendor/antd/es/notification/style/index.js +103 -170
- package/vendor/antd/es/notification/style/notification.js +191 -0
- package/vendor/antd/es/notification/style/placement.js +117 -60
- package/vendor/antd/es/notification/useNotification.js +37 -40
- package/vendor/antd/es/notification/util.js +9 -50
- package/vendor/antd/es/pagination/Pagination.js +1 -2
- package/vendor/antd/es/pagination/useShowSizeChanger.js +2 -1
- package/vendor/antd/es/popconfirm/PurePanel.js +4 -1
- package/vendor/antd/es/popconfirm/index.js +1 -2
- package/vendor/antd/es/popover/PurePanel.js +1 -2
- package/vendor/antd/es/popover/index.js +1 -2
- package/vendor/antd/es/progress/Circle.js +2 -1
- package/vendor/antd/es/progress/progress.js +3 -3
- package/vendor/antd/es/progress/utils.js +4 -3
- package/vendor/antd/es/qr-code/index.js +4 -4
- package/vendor/antd/es/radio/group.js +4 -3
- package/vendor/antd/es/radio/radio.js +2 -2
- package/vendor/antd/es/radio/style/index.js +1 -1
- package/vendor/antd/es/rate/index.js +2 -4
- package/vendor/antd/es/result/index.js +6 -5
- package/vendor/antd/es/result/style/index.js +10 -6
- package/vendor/antd/es/segmented/index.js +5 -3
- package/vendor/antd/es/select/index.js +23 -12
- package/vendor/antd/es/select/style/dropdown.js +1 -1
- package/vendor/antd/es/select/style/select-input.js +23 -15
- package/vendor/antd/es/select/useIcons.js +43 -26
- package/vendor/antd/es/skeleton/Element.js +2 -1
- package/vendor/antd/es/skeleton/Skeleton.js +3 -3
- package/vendor/antd/es/slider/SliderTooltip.js +1 -0
- package/vendor/antd/es/slider/index.js +5 -3
- package/vendor/antd/es/slider/useRafLock.js +1 -0
- package/vendor/antd/es/space/Compact.js +1 -1
- package/vendor/antd/es/space/Item.js +1 -1
- package/vendor/antd/es/space/index.js +2 -2
- package/vendor/antd/es/space/style/addon.js +5 -2
- package/vendor/antd/es/spin/Indicator/Progress.js +2 -1
- package/vendor/antd/es/spin/index.js +1 -2
- package/vendor/antd/es/splitter/Panel.js +7 -3
- package/vendor/antd/es/splitter/SplitBar.js +5 -4
- package/vendor/antd/es/splitter/Splitter.js +9 -6
- package/vendor/antd/es/splitter/hooks/useItems.js +2 -1
- package/vendor/antd/es/splitter/hooks/useSizes.js +1 -1
- package/vendor/antd/es/splitter/style/index.js +8 -6
- package/vendor/antd/es/statistic/Number.js +8 -4
- package/vendor/antd/es/statistic/Statistic.js +14 -10
- package/vendor/antd/es/steps/index.js +4 -4
- package/vendor/antd/es/style/compact-item-vertical.js +2 -1
- package/vendor/antd/es/style/compact-item.js +6 -6
- package/vendor/antd/es/switch/index.js +1 -2
- package/vendor/antd/es/table/InternalTable.js +23 -14
- package/vendor/antd/es/table/hooks/useFilledColumns.js +23 -0
- package/vendor/antd/es/table/hooks/useFilter/FilterDropdown.js +22 -16
- package/vendor/antd/es/table/hooks/useFilter/FilterWrapper.js +1 -0
- package/vendor/antd/es/table/hooks/useFilter/index.js +34 -18
- package/vendor/antd/es/table/hooks/useLazyKVMap.js +2 -1
- package/vendor/antd/es/table/hooks/usePagination.js +7 -4
- package/vendor/antd/es/table/hooks/useSelection.js +32 -21
- package/vendor/antd/es/table/hooks/useSorter.js +10 -5
- package/vendor/antd/es/table/style/bordered.js +5 -27
- package/vendor/antd/es/table/style/empty.js +1 -4
- package/vendor/antd/es/table/style/index.js +1 -4
- package/vendor/antd/es/table/util.js +6 -6
- package/vendor/antd/es/tabs/hooks/useAnimateConfig.js +2 -1
- package/vendor/antd/es/tabs/index.js +1 -2
- package/vendor/antd/es/tag/CheckableTagGroup.js +8 -5
- package/vendor/antd/es/tag/hooks/useColor.js +4 -3
- package/vendor/antd/es/tag/index.js +13 -7
- package/vendor/antd/es/theme/themes/dark/colors.js +2 -1
- package/vendor/antd/es/theme/themes/default/colors.js +2 -1
- package/vendor/antd/es/theme/useToken.js +2 -2
- package/vendor/antd/es/theme/util/alias.js +34 -29
- package/vendor/antd/es/timeline/Timeline.js +3 -4
- package/vendor/antd/es/tooltip/PurePanel.js +1 -2
- package/vendor/antd/es/tooltip/UniqueProvider/index.js +2 -1
- package/vendor/antd/es/tooltip/index.js +9 -7
- package/vendor/antd/es/tour/PurePanel.js +2 -2
- package/vendor/antd/es/tour/index.js +1 -1
- package/vendor/antd/es/tour/panelRender.js +4 -2
- package/vendor/antd/es/transfer/ListBody.js +3 -1
- package/vendor/antd/es/transfer/ListItem.js +2 -1
- package/vendor/antd/es/transfer/Section.js +17 -8
- package/vendor/antd/es/transfer/index.js +51 -16
- package/vendor/antd/es/transfer/style/index.js +5 -1
- package/vendor/antd/es/tree/Tree.js +1 -2
- package/vendor/antd/es/tree/style/index.js +5 -1
- package/vendor/antd/es/tree/utils/iconUtil.js +5 -4
- package/vendor/antd/es/tree-select/index.js +3 -3
- package/vendor/antd/es/typography/Base/CopyBtn.js +3 -2
- package/vendor/antd/es/typography/Base/Ellipsis.js +3 -3
- package/vendor/antd/es/typography/Base/index.js +38 -31
- package/vendor/antd/es/typography/Editable.js +10 -4
- package/vendor/antd/es/typography/Link.js +1 -0
- package/vendor/antd/es/typography/Text.js +2 -1
- package/vendor/antd/es/typography/Typography.js +20 -10
- package/vendor/antd/es/typography/hooks/useCopyClick.js +2 -1
- package/vendor/antd/es/typography/hooks/useMergedConfig.js +13 -7
- package/vendor/antd/es/typography/hooks/useTooltipProps.js +2 -1
- package/vendor/antd/es/typography/hooks/useTypographySemantic.js +33 -0
- package/vendor/antd/es/typography/style/index.js +12 -27
- package/vendor/antd/es/typography/style/mixins.js +46 -13
- package/vendor/antd/es/upload/Upload.js +13 -7
- package/vendor/antd/es/upload/UploadList/ListItem.js +6 -5
- package/vendor/antd/es/upload/UploadList/index.js +4 -3
- package/vendor/antd/es/upload/utils.js +18 -1
- package/vendor/antd/es/version/version.js +1 -1
- package/vendor/antd/es/watermark/index.js +6 -4
- package/vendor/antd/es/watermark/useSingletonCache.js +1 -0
- package/vendor/antd/es/watermark/useWatermark.js +3 -3
- package/vendor/antd/package.json +1 -1
- package/vendor/useblocks-ui-kit/es/components/DataEntry/Input/index.js +1 -1
- package/vendor/useblocks-ui-kit/es/components/General/EmIcons/deprecationNotice.js +1 -1
- package/vendor/useblocks-ui-kit/package.json +1 -1
- package/vite/index.cjs +2 -2
- package/vite/index.js +2 -2
- package/iframe/js/discussHandlers.ozU2Hn_l.js +0 -87
- package/iframe/js/iframe.body.js +0 -319
- package/static/core/1c535081.js +0 -1
- package/static/core/1cee0d36.js +0 -1
- package/static/core/4fbdd8b6.js +0 -2
- package/static/core/55a38638.js +0 -93
- package/static/core/605c665e.js +0 -28
- package/static/core/68cbe23d.js +0 -1
- package/static/core/89431649.js +0 -7
- package/static/core/8b821a61.js +0 -1
- package/static/core/9718977a.js +0 -1
- package/static/core/b7e9202e.js +0 -27
- package/static/core/b877f7b4.js +0 -1
- package/static/core/baded0c1.js +0 -1
- package/static/core/c6cc104d.js +0 -4
- package/static/core/d70aac44.js +0 -291
- package/static/core/e0d71533.js +0 -100
- package/static/core/fb57f60b.js +0 -1
- package/static/core/fe756e4d.js +0 -1
- package/static/esm/349f9e2c.js +0 -1
- package/static/esm/50fbfdf6.js +0 -1
- package/static/media/icon-sets/lucide.json +0 -6275
- package/static/media/icon-sets/tabler.json +0 -19336
- package/static/umd-runtime/Cl8heeC3.js +0 -1
- package/static/umd-runtime/D0xo8o9c.js +0 -335
- package/static/umd-runtime/runtime.js +0 -1
- package/useblocks-core.bb6d921f.js +0 -859
- package/vendor/@rc-component/notification/es/Notice.js +0 -106
- package/vendor/@rc-component/notification/es/NoticeList.js +0 -98
- package/vendor/@rc-component/textarea/LICENSE.md +0 -9
- package/vendor/@rc-component/textarea/es/index.js +0 -6
- package/vendor/@rc-component/textarea/package.json +0 -6
- package/vendor/antd/es/_util/extendsObject.js +0 -12
- package/vendor/antd/es/_util/getAllowClear.js +0 -12
- package/vendor/antd/es/_util/isNonNullable.js +0 -6
- package/vendor/antd/es/_util/isPrimitive.js +0 -4
- package/vendor/antd/es/notification/style/pure-panel.js +0 -18
- package/vendor/antd/es/notification/style/stack.js +0 -85
- /package/static/monaco/{index.js → index.CO7s5UdA.js} +0 -0
- /package/static/umd-runtime/{delivery-libs.js → delivery-libs.3Svr0avG.js} +0 -0
|
@@ -8,7 +8,7 @@ import { getNode, toCopyConfigList } from "./util.js";
|
|
|
8
8
|
import * as React$1 from "../../../../react/index.js";
|
|
9
9
|
//#region node_modules/antd/es/typography/Base/CopyBtn.js
|
|
10
10
|
const CopyBtn = (props) => {
|
|
11
|
-
const { prefixCls, copied, locale, iconOnly, tooltips, icon, tabIndex, onCopy, loading: btnLoading } = props;
|
|
11
|
+
const { prefixCls, copied, locale, iconOnly, tooltips, icon, tabIndex, onCopy, loading: btnLoading, className, style } = props;
|
|
12
12
|
const tooltipNodes = toCopyConfigList(tooltips);
|
|
13
13
|
const iconNodes = toCopyConfigList(icon);
|
|
14
14
|
const { copied: copiedText, copy: copyText } = locale ?? {};
|
|
@@ -17,10 +17,11 @@ const CopyBtn = (props) => {
|
|
|
17
17
|
const ariaLabel = typeof copyTitle === "string" ? copyTitle : systemStr;
|
|
18
18
|
return /*#__PURE__*/ React$1.createElement(Tooltip, { title: copyTitle }, /*#__PURE__*/ React$1.createElement("button", {
|
|
19
19
|
type: "button",
|
|
20
|
-
className: clsx(`${prefixCls}-copy`, {
|
|
20
|
+
className: clsx(`${prefixCls}-copy`, className, {
|
|
21
21
|
[`${prefixCls}-copy-success`]: copied,
|
|
22
22
|
[`${prefixCls}-copy-icon-only`]: iconOnly
|
|
23
23
|
}),
|
|
24
|
+
style,
|
|
24
25
|
onClick: onCopy,
|
|
25
26
|
"aria-label": ariaLabel,
|
|
26
27
|
tabIndex
|
|
@@ -59,10 +59,10 @@ const lineClipStyle = {
|
|
|
59
59
|
WebkitBoxOrient: "vertical"
|
|
60
60
|
};
|
|
61
61
|
function EllipsisMeasure(props) {
|
|
62
|
-
const { enableMeasure, width, text, children, rows, expanded, miscDeps, onEllipsis } = props;
|
|
62
|
+
const { enableMeasure, width, text, children, rows, expanded, measureDeps, miscDeps, onEllipsis } = props;
|
|
63
63
|
const nodeList = React$1.useMemo(() => toArray(text), [text]);
|
|
64
64
|
const nodeLen = React$1.useMemo(() => getNodesLen(nodeList), [text]);
|
|
65
|
-
const fullContent = React$1.useMemo(() => children(nodeList, false), [text]);
|
|
65
|
+
const fullContent = React$1.useMemo(() => children(nodeList, false), [text].concat(_toConsumableArray(measureDeps)));
|
|
66
66
|
const [ellipsisCutIndex, setEllipsisCutIndex] = React$1.useState(null);
|
|
67
67
|
const cutMidRef = React$1.useRef(null);
|
|
68
68
|
const measureWhiteSpaceRef = React$1.useRef(null);
|
|
@@ -82,7 +82,7 @@ function EllipsisMeasure(props) {
|
|
|
82
82
|
rows,
|
|
83
83
|
enableMeasure,
|
|
84
84
|
nodeList
|
|
85
|
-
]);
|
|
85
|
+
].concat(_toConsumableArray(measureDeps)));
|
|
86
86
|
useLayoutEffect$1(() => {
|
|
87
87
|
if (needEllipsis === STATUS_MEASURE_PREPARE) {
|
|
88
88
|
setNeedEllipsis(STATUS_MEASURE_START);
|
|
@@ -9,10 +9,8 @@ import "../../../../@rc-component/util/es/index.js";
|
|
|
9
9
|
import RefResizeObserver from "../../../../@rc-component/resize-observer/es/index.js";
|
|
10
10
|
import { clsx } from "../../../../clsx/dist/clsx.js";
|
|
11
11
|
import _toConsumableArray from "../../../../@babel/runtime/helpers/esm/toConsumableArray.js";
|
|
12
|
-
import {
|
|
12
|
+
import { isFunction, isNonNullable } from "../../_util/is.js";
|
|
13
13
|
import useLocale from "../../locale/useLocale.js";
|
|
14
|
-
import isNonNullable from "../../_util/isNonNullable.js";
|
|
15
|
-
import "../../config-provider/index.js";
|
|
16
14
|
import "../../_util/styleChecker.js";
|
|
17
15
|
import Tooltip from "../../tooltip/index.js";
|
|
18
16
|
import RefIcon from "../../../../@ant-design/icons/es/icons/EditOutlined.js";
|
|
@@ -21,7 +19,8 @@ import useCopyClick from "../hooks/useCopyClick.js";
|
|
|
21
19
|
import useMergedConfig from "../hooks/useMergedConfig.js";
|
|
22
20
|
import usePrevious from "../hooks/usePrevious.js";
|
|
23
21
|
import useTooltipProps from "../hooks/useTooltipProps.js";
|
|
24
|
-
import
|
|
22
|
+
import { useTypographySemantic } from "../hooks/useTypographySemantic.js";
|
|
23
|
+
import { InternalTypography } from "../Typography.js";
|
|
25
24
|
import { isEleEllipsis, isValidText } from "./util.js";
|
|
26
25
|
import CopyBtn from "./CopyBtn.js";
|
|
27
26
|
import EllipsisMeasure from "./Ellipsis.js";
|
|
@@ -54,12 +53,11 @@ const DECORATION_PROPS = [
|
|
|
54
53
|
"italic"
|
|
55
54
|
];
|
|
56
55
|
const Base = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
|
|
57
|
-
const { prefixCls: customizePrefixCls, className, style, type, disabled, children, ellipsis, editable, copyable, component, title, onMouseEnter, onMouseLeave, ...restProps } = props;
|
|
58
|
-
const { getPrefixCls, direction } = React$1.useContext(ConfigContext);
|
|
56
|
+
const { prefixCls: customizePrefixCls, className, style, classNames, styles, direction: typographyDirection, type, disabled, children, ellipsis, editable, copyable, actions, component, title, onMouseEnter, onMouseLeave, ...restProps } = props;
|
|
59
57
|
const [textLocale] = useLocale("Text");
|
|
60
58
|
const typographyRef = React$1.useRef(null);
|
|
61
59
|
const editIconRef = React$1.useRef(null);
|
|
62
|
-
const prefixCls =
|
|
60
|
+
const [mergedClassNames, mergedStyles, prefixCls, direction] = useTypographySemantic(customizePrefixCls, classNames, styles, typographyDirection, props);
|
|
63
61
|
const textProps = omit(restProps, DECORATION_PROPS);
|
|
64
62
|
const [enableEdit, editConfig] = useMergedConfig(editable);
|
|
65
63
|
const [editing, setEditing] = useControlledState(false, editConfig.editing);
|
|
@@ -85,6 +83,7 @@ const Base = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
|
|
|
85
83
|
triggerEdit(false);
|
|
86
84
|
};
|
|
87
85
|
const [enableCopy, copyConfig] = useMergedConfig(copyable);
|
|
86
|
+
const { placement = "end" } = actions ?? {};
|
|
88
87
|
const { copied, copyLoading, onClick: onCopyClick } = useCopyClick({
|
|
89
88
|
copyConfig,
|
|
90
89
|
children
|
|
@@ -126,7 +125,9 @@ const Base = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
|
|
|
126
125
|
useLayoutEffect$1(() => {
|
|
127
126
|
setCssEllipsis(canUseCssEllipsis && mergedEnableEllipsis);
|
|
128
127
|
}, [canUseCssEllipsis, mergedEnableEllipsis]);
|
|
129
|
-
const
|
|
128
|
+
const tooltipProps = useTooltipProps(ellipsisConfig.tooltip, editConfig.text, children);
|
|
129
|
+
const needNativeEllipsisMeasure = cssEllipsis && !!tooltipProps.title;
|
|
130
|
+
const isMergedEllipsis = mergedEnableEllipsis && (cssEllipsis ? needNativeEllipsisMeasure && isNativeEllipsis : isJsEllipsis);
|
|
130
131
|
const cssTextOverflow = mergedEnableEllipsis && rows === 1 && cssEllipsis;
|
|
131
132
|
const cssLineClamp = mergedEnableEllipsis && rows > 1 && cssEllipsis;
|
|
132
133
|
const onExpandClick = (e, info) => {
|
|
@@ -145,13 +146,13 @@ const Base = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
|
|
|
145
146
|
};
|
|
146
147
|
React$1.useEffect(() => {
|
|
147
148
|
const textEle = typographyRef.current;
|
|
148
|
-
if (enableEllipsis &&
|
|
149
|
+
if (enableEllipsis && needNativeEllipsisMeasure && textEle) {
|
|
149
150
|
const currentEllipsis = isEleEllipsis(textEle);
|
|
150
151
|
if (isNativeEllipsis !== currentEllipsis) setIsNativeEllipsis(currentEllipsis);
|
|
151
152
|
}
|
|
152
153
|
}, [
|
|
153
154
|
enableEllipsis,
|
|
154
|
-
|
|
155
|
+
needNativeEllipsisMeasure,
|
|
155
156
|
children,
|
|
156
157
|
cssLineClamp,
|
|
157
158
|
isNativeVisible,
|
|
@@ -159,7 +160,7 @@ const Base = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
|
|
|
159
160
|
]);
|
|
160
161
|
React$1.useEffect(() => {
|
|
161
162
|
const textEle = typographyRef.current;
|
|
162
|
-
if (typeof IntersectionObserver === "undefined" || !textEle || !
|
|
163
|
+
if (typeof IntersectionObserver === "undefined" || !textEle || !needNativeEllipsisMeasure || !mergedEnableEllipsis) return;
|
|
163
164
|
const observer = new IntersectionObserver(() => {
|
|
164
165
|
setIsNativeVisible(!!textEle.offsetParent);
|
|
165
166
|
});
|
|
@@ -167,8 +168,7 @@ const Base = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
|
|
|
167
168
|
return () => {
|
|
168
169
|
observer.disconnect();
|
|
169
170
|
};
|
|
170
|
-
}, [
|
|
171
|
-
const tooltipProps = useTooltipProps(ellipsisConfig.tooltip, editConfig.text, children);
|
|
171
|
+
}, [needNativeEllipsisMeasure, mergedEnableEllipsis]);
|
|
172
172
|
const topAriaLabel = React$1.useMemo(() => {
|
|
173
173
|
if (!enableEllipsis || cssEllipsis) return;
|
|
174
174
|
return [
|
|
@@ -196,17 +196,20 @@ const Base = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
|
|
|
196
196
|
component,
|
|
197
197
|
maxLength: editConfig.maxLength,
|
|
198
198
|
autoSize: editConfig.autoSize,
|
|
199
|
-
enterIcon: editConfig.enterIcon
|
|
199
|
+
enterIcon: editConfig.enterIcon,
|
|
200
|
+
classNames: mergedClassNames,
|
|
201
|
+
styles: mergedStyles
|
|
200
202
|
});
|
|
201
203
|
const renderExpand = () => {
|
|
202
204
|
const { expandable, symbol } = ellipsisConfig;
|
|
203
205
|
return expandable ? /*#__PURE__*/ React$1.createElement("button", {
|
|
204
206
|
type: "button",
|
|
205
207
|
key: "expand",
|
|
206
|
-
className: `${prefixCls}-${expanded ? "collapse" : "expand"}`,
|
|
208
|
+
className: clsx(`${prefixCls}-${expanded ? "collapse" : "expand"}`, mergedClassNames.action),
|
|
209
|
+
style: mergedStyles.action,
|
|
207
210
|
onClick: (e) => onExpandClick(e, { expanded: !expanded }),
|
|
208
211
|
"aria-label": expanded ? textLocale.collapse : textLocale?.expand
|
|
209
|
-
},
|
|
212
|
+
}, isFunction(symbol) ? symbol(expanded) : symbol) : null;
|
|
210
213
|
};
|
|
211
214
|
const renderEdit = () => {
|
|
212
215
|
if (!enableEdit) return;
|
|
@@ -219,7 +222,8 @@ const Base = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
|
|
|
219
222
|
}, /*#__PURE__*/ React$1.createElement("button", {
|
|
220
223
|
type: "button",
|
|
221
224
|
ref: editIconRef,
|
|
222
|
-
className: `${prefixCls}-edit`,
|
|
225
|
+
className: clsx(`${prefixCls}-edit`, mergedClassNames.action),
|
|
226
|
+
style: mergedStyles.action,
|
|
223
227
|
onClick: onEditClick,
|
|
224
228
|
"aria-label": ariaLabel,
|
|
225
229
|
tabIndex
|
|
@@ -235,7 +239,9 @@ const Base = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
|
|
|
235
239
|
locale: textLocale,
|
|
236
240
|
onCopy: onCopyClick,
|
|
237
241
|
loading: copyLoading,
|
|
238
|
-
iconOnly: !isNonNullable(children)
|
|
242
|
+
iconOnly: !isNonNullable(children),
|
|
243
|
+
className: mergedClassNames.action,
|
|
244
|
+
style: mergedStyles.action
|
|
239
245
|
});
|
|
240
246
|
};
|
|
241
247
|
const renderOperations = (canEllipsis) => {
|
|
@@ -245,19 +251,16 @@ const Base = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
|
|
|
245
251
|
if (!expandNode && !editNode && !copyNode) return null;
|
|
246
252
|
return /*#__PURE__*/ React$1.createElement("span", {
|
|
247
253
|
key: "operations",
|
|
248
|
-
className: `${prefixCls}-actions`,
|
|
254
|
+
className: clsx(`${prefixCls}-actions`, mergedClassNames.actions, { [`${prefixCls}-actions-start`]: placement === "start" }),
|
|
255
|
+
style: mergedStyles.actions,
|
|
249
256
|
onMouseEnter: () => setIsHoveringOperations(true),
|
|
250
257
|
onMouseLeave: () => setIsHoveringOperations(false)
|
|
251
258
|
}, expandNode, editNode, copyNode);
|
|
252
259
|
};
|
|
253
|
-
const renderEllipsis = (canEllipsis) => [
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
}, ELLIPSIS_STR),
|
|
258
|
-
ellipsisConfig.suffix,
|
|
259
|
-
renderOperations(canEllipsis)
|
|
260
|
-
];
|
|
260
|
+
const renderEllipsis = (canEllipsis) => [canEllipsis && !expanded && /*#__PURE__*/ React$1.createElement("span", {
|
|
261
|
+
"aria-hidden": true,
|
|
262
|
+
key: "ellipsis"
|
|
263
|
+
}, ELLIPSIS_STR), ellipsisConfig.suffix];
|
|
261
264
|
return /*#__PURE__*/ React$1.createElement(RefResizeObserver, {
|
|
262
265
|
onResize,
|
|
263
266
|
disabled: !mergedEnableEllipsis
|
|
@@ -266,7 +269,7 @@ const Base = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
|
|
|
266
269
|
enableEllipsis: mergedEnableEllipsis,
|
|
267
270
|
isEllipsis: isMergedEllipsis,
|
|
268
271
|
open: isHoveringTypography && !isHoveringOperations
|
|
269
|
-
}, /*#__PURE__*/ React$1.createElement(
|
|
272
|
+
}, /*#__PURE__*/ React$1.createElement(InternalTypography, {
|
|
270
273
|
onMouseEnter: (e) => {
|
|
271
274
|
setIsHoveringTypography(true);
|
|
272
275
|
onMouseEnter?.(e);
|
|
@@ -283,7 +286,9 @@ const Base = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
|
|
|
283
286
|
[`${prefixCls}-ellipsis-multiple-line`]: cssLineClamp,
|
|
284
287
|
[`${prefixCls}-link`]: component === "a"
|
|
285
288
|
}, className),
|
|
286
|
-
|
|
289
|
+
classNames: mergedClassNames,
|
|
290
|
+
styles: mergedStyles,
|
|
291
|
+
prefixCls,
|
|
287
292
|
style: {
|
|
288
293
|
...style,
|
|
289
294
|
WebkitLineClamp: cssLineClamp ? rows : void 0
|
|
@@ -302,18 +307,20 @@ const Base = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
|
|
|
302
307
|
width: ellipsisWidth,
|
|
303
308
|
onEllipsis: onJsEllipsis,
|
|
304
309
|
expanded,
|
|
310
|
+
measureDeps: [placement],
|
|
305
311
|
miscDeps: [
|
|
306
312
|
copied,
|
|
307
313
|
expanded,
|
|
308
314
|
copyLoading,
|
|
309
315
|
enableEdit,
|
|
310
316
|
enableCopy,
|
|
317
|
+
placement,
|
|
311
318
|
textLocale
|
|
312
319
|
].concat(_toConsumableArray(DECORATION_PROPS.map((key) => props[key])))
|
|
313
|
-
}, (node, canEllipsis) => wrapperDecorations(props, /*#__PURE__*/ React$1.createElement(React$1.Fragment, null, node.length > 0 && canEllipsis && !expanded && topAriaLabel ? /*#__PURE__*/ React$1.createElement("span", {
|
|
320
|
+
}, (node, canEllipsis) => wrapperDecorations(props, /*#__PURE__*/ React$1.createElement(React$1.Fragment, null, placement === "start" ? renderOperations(canEllipsis) : null, node.length > 0 && canEllipsis && !expanded && topAriaLabel ? /*#__PURE__*/ React$1.createElement("span", {
|
|
314
321
|
key: "show-content",
|
|
315
322
|
"aria-hidden": true
|
|
316
|
-
}, node) : node, renderEllipsis(canEllipsis)))))));
|
|
323
|
+
}, node) : node, renderEllipsis(canEllipsis), placement === "start" ? null : renderOperations(canEllipsis)))))));
|
|
317
324
|
});
|
|
318
325
|
//#endregion
|
|
319
326
|
export { Base as default };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import KeyCode from "../../../@rc-component/util/es/KeyCode.js";
|
|
3
|
+
import "../../../@rc-component/util/es/index.js";
|
|
3
4
|
import { clsx } from "../../../clsx/dist/clsx.js";
|
|
4
5
|
import { cloneElement as cloneElement$1 } from "../_util/reactNode.js";
|
|
5
6
|
import TextArea from "../input/TextArea.js";
|
|
@@ -8,7 +9,7 @@ import style_default from "./style/index.js";
|
|
|
8
9
|
import * as React$1 from "../../../react/index.js";
|
|
9
10
|
//#region node_modules/antd/es/typography/Editable.js
|
|
10
11
|
const Editable = (props) => {
|
|
11
|
-
const { prefixCls, "aria-label": ariaLabel, className, style, direction, maxLength, autoSize = true, value, onSave, onCancel, onEnd, component, enterIcon = /*#__PURE__*/ React$1.createElement(RefIcon, null) } = props;
|
|
12
|
+
const { prefixCls, "aria-label": ariaLabel, className, style, classNames, styles, direction, maxLength, autoSize = true, value, onSave, onCancel, onEnd, component, enterIcon = /*#__PURE__*/ React$1.createElement(RefIcon, null) } = props;
|
|
12
13
|
const ref = React$1.useRef(null);
|
|
13
14
|
const inCompositionRef = React$1.useRef(false);
|
|
14
15
|
const lastKeyCodeRef = React$1.useRef(null);
|
|
@@ -54,10 +55,13 @@ const Editable = (props) => {
|
|
|
54
55
|
const textAreaClassName = clsx(prefixCls, `${prefixCls}-edit-content`, {
|
|
55
56
|
[`${prefixCls}-rtl`]: direction === "rtl",
|
|
56
57
|
[`${prefixCls}-${component}`]: !!component
|
|
57
|
-
}, className, hashId, cssVarCls);
|
|
58
|
+
}, className, classNames.root, hashId, cssVarCls);
|
|
58
59
|
return /*#__PURE__*/ React$1.createElement("div", {
|
|
59
60
|
className: textAreaClassName,
|
|
60
|
-
style
|
|
61
|
+
style: {
|
|
62
|
+
...styles.root,
|
|
63
|
+
...style
|
|
64
|
+
}
|
|
61
65
|
}, /*#__PURE__*/ React$1.createElement(TextArea, {
|
|
62
66
|
ref,
|
|
63
67
|
maxLength,
|
|
@@ -70,7 +74,9 @@ const Editable = (props) => {
|
|
|
70
74
|
onBlur,
|
|
71
75
|
"aria-label": ariaLabel,
|
|
72
76
|
rows: 1,
|
|
73
|
-
autoSize
|
|
77
|
+
autoSize,
|
|
78
|
+
className: classNames.textarea,
|
|
79
|
+
style: styles.textarea
|
|
74
80
|
}), enterIcon !== null ? cloneElement$1(enterIcon, { className: `${prefixCls}-edit-content-confirm` }) : null);
|
|
75
81
|
};
|
|
76
82
|
//#endregion
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import omit from "../../../@rc-component/util/es/omit.js";
|
|
3
3
|
import "../../../@rc-component/util/es/index.js";
|
|
4
|
+
import { isPlainObject } from "../_util/is.js";
|
|
4
5
|
import "../_util/warning.js";
|
|
5
6
|
import Base from "./Base/index.js";
|
|
6
7
|
import * as React$1 from "../../../react/index.js";
|
|
@@ -8,7 +9,7 @@ import * as React$1 from "../../../react/index.js";
|
|
|
8
9
|
const Text = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
|
|
9
10
|
const { ellipsis, children, ...restProps } = props;
|
|
10
11
|
const mergedEllipsis = React$1.useMemo(() => {
|
|
11
|
-
if (ellipsis
|
|
12
|
+
if (isPlainObject(ellipsis)) return omit(ellipsis, ["expandable", "rows"]);
|
|
12
13
|
return ellipsis;
|
|
13
14
|
}, [ellipsis]);
|
|
14
15
|
return /*#__PURE__*/ React$1.createElement(Base, {
|
|
@@ -1,26 +1,36 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { clsx } from "../../../clsx/dist/clsx.js";
|
|
3
|
-
import { useComponentConfig } from "../config-provider/context.js";
|
|
4
3
|
import style_default from "./style/index.js";
|
|
4
|
+
import { useTypographySemantic } from "./hooks/useTypographySemantic.js";
|
|
5
5
|
import * as React$1 from "../../../react/index.js";
|
|
6
6
|
//#region node_modules/antd/es/typography/Typography.js
|
|
7
|
-
const
|
|
8
|
-
const {
|
|
9
|
-
const { getPrefixCls, direction: contextDirection, className: contextClassName, style: contextStyle } = useComponentConfig("typography");
|
|
10
|
-
const direction = typographyDirection ?? contextDirection;
|
|
11
|
-
const prefixCls = getPrefixCls("typography", customizePrefixCls);
|
|
7
|
+
const InternalTypography = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
|
|
8
|
+
const { component: Component = "article", className, rootClassName, children, direction, style, classNames, styles, prefixCls, ...restProps } = props;
|
|
12
9
|
const [hashId, cssVarCls] = style_default(prefixCls);
|
|
13
|
-
const componentClassName = clsx(prefixCls,
|
|
10
|
+
const componentClassName = clsx(prefixCls, { [`${prefixCls}-rtl`]: direction === "rtl" }, className, rootClassName, hashId, cssVarCls, classNames?.root);
|
|
14
11
|
const mergedStyle = {
|
|
15
|
-
...
|
|
12
|
+
...styles?.root,
|
|
16
13
|
...style
|
|
17
14
|
};
|
|
18
15
|
return /*#__PURE__*/ React$1.createElement(Component, {
|
|
16
|
+
...restProps,
|
|
19
17
|
className: componentClassName,
|
|
20
18
|
style: mergedStyle,
|
|
19
|
+
ref
|
|
20
|
+
}, children);
|
|
21
|
+
});
|
|
22
|
+
const Typography = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
|
|
23
|
+
const { prefixCls: customizePrefixCls, className, rootClassName, direction: typographyDirection, classNames, styles, ...restProps } = props;
|
|
24
|
+
const [mergedClassNames, mergedStyles, mergedPrefixCls, mergedDirection] = useTypographySemantic(customizePrefixCls, classNames, styles, typographyDirection, props);
|
|
25
|
+
return /*#__PURE__*/ React$1.createElement(InternalTypography, {
|
|
21
26
|
ref,
|
|
27
|
+
className: clsx(className, rootClassName),
|
|
28
|
+
direction: mergedDirection,
|
|
29
|
+
classNames: mergedClassNames,
|
|
30
|
+
styles: mergedStyles,
|
|
31
|
+
prefixCls: mergedPrefixCls,
|
|
22
32
|
...restProps
|
|
23
|
-
}
|
|
33
|
+
});
|
|
24
34
|
});
|
|
25
35
|
//#endregion
|
|
26
|
-
export { Typography as default };
|
|
36
|
+
export { InternalTypography, Typography as default };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import useEvent from "../../../../@rc-component/util/es/hooks/useEvent.js";
|
|
2
2
|
import "../../../../@rc-component/util/es/index.js";
|
|
3
|
+
import { isFunction } from "../../_util/is.js";
|
|
3
4
|
import toList from "../../_util/toList.js";
|
|
4
5
|
import copy from "../../_util/copy.js";
|
|
5
6
|
import * as React$1 from "../../../../react/index.js";
|
|
@@ -22,7 +23,7 @@ const useCopyClick = ({ copyConfig, children }) => {
|
|
|
22
23
|
e?.stopPropagation();
|
|
23
24
|
setCopyLoading(true);
|
|
24
25
|
try {
|
|
25
|
-
const text =
|
|
26
|
+
const text = isFunction(copyConfig.text) ? await copyConfig.text() : copyConfig.text;
|
|
26
27
|
await copy(text || toList(children, { skipEmpty: true }).join("") || "", copyOptions);
|
|
27
28
|
setCopyLoading(false);
|
|
28
29
|
setCopied(true);
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
+
import { isPlainObject } from "../../_util/is.js";
|
|
1
2
|
import * as React$1 from "../../../../react/index.js";
|
|
2
3
|
//#region node_modules/antd/es/typography/hooks/useMergedConfig.js
|
|
3
|
-
|
|
4
|
+
const useMergedConfig = (propConfig, templateConfig) => {
|
|
5
|
+
const support = Boolean(propConfig);
|
|
4
6
|
return React$1.useMemo(() => {
|
|
5
|
-
const
|
|
6
|
-
return [support, {
|
|
7
|
+
const config = {
|
|
7
8
|
...templateConfig,
|
|
8
|
-
...support &&
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
}
|
|
9
|
+
...support && isPlainObject(propConfig) ? propConfig : null
|
|
10
|
+
};
|
|
11
|
+
return [support, config];
|
|
12
|
+
}, [
|
|
13
|
+
support,
|
|
14
|
+
propConfig,
|
|
15
|
+
templateConfig
|
|
16
|
+
]);
|
|
17
|
+
};
|
|
12
18
|
//#endregion
|
|
13
19
|
export { useMergedConfig as default };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { isPlainObject } from "../../_util/is.js";
|
|
1
2
|
import { isValidElement, useMemo } from "../../../../react/index.js";
|
|
2
3
|
//#region node_modules/antd/es/typography/hooks/useTooltipProps.js
|
|
3
4
|
const useTooltipProps = (tooltip, editConfigText, children) => useMemo(() => {
|
|
4
5
|
if (tooltip === true) return { title: editConfigText ?? children };
|
|
5
6
|
if (/*#__PURE__*/ isValidElement(tooltip)) return { title: tooltip };
|
|
6
|
-
if (
|
|
7
|
+
if (isPlainObject(tooltip)) return {
|
|
7
8
|
title: editConfigText ?? children,
|
|
8
9
|
...tooltip
|
|
9
10
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { useComponentConfig } from "../../config-provider/context.js";
|
|
2
|
+
import { useMergeSemantic } from "../../_util/hooks/useMergeSemantic/index.js";
|
|
3
|
+
import { useMemo } from "../../../../react/index.js";
|
|
4
|
+
//#region node_modules/antd/es/typography/hooks/useTypographySemantic.js
|
|
5
|
+
const useTypographySemantic = (customizePrefixCls, classNames, styles, typographyDirection, props) => {
|
|
6
|
+
const { getPrefixCls, direction: contextDirection, className: contextClassName, style: contextStyle, classNames: contextClassNames, styles: contextStyles } = useComponentConfig("typography");
|
|
7
|
+
const direction = typographyDirection ?? contextDirection;
|
|
8
|
+
const prefixCls = getPrefixCls("typography", customizePrefixCls);
|
|
9
|
+
const mergedProps = {
|
|
10
|
+
...props,
|
|
11
|
+
prefixCls,
|
|
12
|
+
direction
|
|
13
|
+
};
|
|
14
|
+
const contextClassNamesObject = useMemo(() => ({ root: contextClassName }), [contextClassName]);
|
|
15
|
+
const contextStylesObject = useMemo(() => ({ root: contextStyle }), [contextStyle]);
|
|
16
|
+
const [mergedClassNames, mergedStyles] = useMergeSemantic([
|
|
17
|
+
contextClassNamesObject,
|
|
18
|
+
contextClassNames,
|
|
19
|
+
classNames
|
|
20
|
+
], [
|
|
21
|
+
contextStylesObject,
|
|
22
|
+
contextStyles,
|
|
23
|
+
styles
|
|
24
|
+
], { props: mergedProps });
|
|
25
|
+
return [
|
|
26
|
+
mergedClassNames,
|
|
27
|
+
mergedStyles,
|
|
28
|
+
prefixCls,
|
|
29
|
+
direction
|
|
30
|
+
];
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { useTypographySemantic };
|
|
@@ -22,34 +22,10 @@ const genTypographyStyle = (token) => {
|
|
|
22
22
|
cursor: "not-allowed",
|
|
23
23
|
userSelect: "none"
|
|
24
24
|
},
|
|
25
|
-
|
|
26
|
-
div&,
|
|
27
|
-
p
|
|
28
|
-
`]: { marginBottom: "1em" },
|
|
25
|
+
"div&, p": { marginBottom: "1em" },
|
|
29
26
|
...getTitleStyles(token),
|
|
30
|
-
[`
|
|
31
|
-
|
|
32
|
-
& + h2${componentCls},
|
|
33
|
-
& + h3${componentCls},
|
|
34
|
-
& + h4${componentCls},
|
|
35
|
-
& + h5${componentCls}
|
|
36
|
-
`]: { marginTop: titleMarginTop },
|
|
37
|
-
[`
|
|
38
|
-
div,
|
|
39
|
-
ul,
|
|
40
|
-
li,
|
|
41
|
-
p,
|
|
42
|
-
h1,
|
|
43
|
-
h2,
|
|
44
|
-
h3,
|
|
45
|
-
h4,
|
|
46
|
-
h5`]: { [`
|
|
47
|
-
+ h1,
|
|
48
|
-
+ h2,
|
|
49
|
-
+ h3,
|
|
50
|
-
+ h4,
|
|
51
|
-
+ h5
|
|
52
|
-
`]: { marginTop: titleMarginTop } },
|
|
27
|
+
[`& + h1${componentCls}, & + h2${componentCls}, & + h3${componentCls}, & + h4${componentCls}, & + h5${componentCls}`]: { marginTop: titleMarginTop },
|
|
28
|
+
"div, ul, li, p, h1, h2, h3, h4, h5": { "+ h1, + h2, + h3, + h4, + h5": { marginTop: titleMarginTop } },
|
|
53
29
|
...getResetStyles(token),
|
|
54
30
|
...getLinkStyles(token),
|
|
55
31
|
[`${componentCls}-actions`]: { display: "inline" },
|
|
@@ -62,6 +38,15 @@ const genTypographyStyle = (token) => {
|
|
|
62
38
|
...operationUnit(token),
|
|
63
39
|
marginInlineStart: token.marginXXS
|
|
64
40
|
},
|
|
41
|
+
[`${componentCls}-actions-start`]: { [`
|
|
42
|
+
${componentCls}-expand,
|
|
43
|
+
${componentCls}-collapse,
|
|
44
|
+
${componentCls}-edit,
|
|
45
|
+
${componentCls}-copy:not(${componentCls}-copy-icon-only)
|
|
46
|
+
`]: {
|
|
47
|
+
marginInlineStart: 0,
|
|
48
|
+
marginInlineEnd: token.marginXXS
|
|
49
|
+
} },
|
|
65
50
|
...getEditableStyles(token),
|
|
66
51
|
...getCopyableStyles(token),
|
|
67
52
|
...getEllipsisStyles(),
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { unit } from "../../../../@ant-design/cssinjs/es/util/index.js";
|
|
2
|
+
import "../../../../@ant-design/cssinjs/es/index.js";
|
|
1
3
|
import { gold } from "../../../../@ant-design/colors/es/presets.js";
|
|
2
4
|
import "../../../../@ant-design/colors/es/index.js";
|
|
3
|
-
import { operationUnit } from "../../style/index.js";
|
|
5
|
+
import { operationUnit, textEllipsis } from "../../style/index.js";
|
|
4
6
|
//#region node_modules/antd/es/typography/style/mixins.js
|
|
5
7
|
const getTitleStyle = (fontSize, lineHeight, color, token) => {
|
|
6
8
|
const { titleMarginBottom, fontWeightStrong } = token;
|
|
@@ -40,7 +42,10 @@ const getLinkStyles = (token) => {
|
|
|
40
42
|
color: token.colorTextDisabled,
|
|
41
43
|
cursor: "not-allowed",
|
|
42
44
|
"&:active, &:hover": { color: token.colorTextDisabled },
|
|
43
|
-
"&:active": {
|
|
45
|
+
"&:active": {
|
|
46
|
+
pointerEvents: "none",
|
|
47
|
+
[`${componentCls}-actions`]: { pointerEvents: "auto" }
|
|
48
|
+
}
|
|
44
49
|
}
|
|
45
50
|
} };
|
|
46
51
|
};
|
|
@@ -116,6 +121,42 @@ const getResetStyles = (token) => ({
|
|
|
116
121
|
paddingBlock: 0,
|
|
117
122
|
borderInlineStart: "4px solid rgba(100, 100, 100, 0.2)",
|
|
118
123
|
opacity: .85
|
|
124
|
+
},
|
|
125
|
+
table: {
|
|
126
|
+
width: "100%",
|
|
127
|
+
textAlign: "start",
|
|
128
|
+
borderCollapse: "separate",
|
|
129
|
+
borderSpacing: 0,
|
|
130
|
+
marginBlock: "1em",
|
|
131
|
+
"th, td": {
|
|
132
|
+
padding: unit(token.padding),
|
|
133
|
+
overflowWrap: "break-word",
|
|
134
|
+
borderBottom: `${unit(token.lineWidth)} ${token.lineType} ${token.colorSplit}`
|
|
135
|
+
},
|
|
136
|
+
"thead > tr:first-child > th:first-child": { borderStartStartRadius: token.borderRadiusLG },
|
|
137
|
+
"thead > tr:first-child > th:last-child": { borderStartEndRadius: token.borderRadiusLG },
|
|
138
|
+
"thead > tr > th": {
|
|
139
|
+
textAlign: "start",
|
|
140
|
+
position: "relative",
|
|
141
|
+
color: token.colorTextHeading,
|
|
142
|
+
fontWeight: token.fontWeightStrong,
|
|
143
|
+
backgroundColor: token.colorFillAlter,
|
|
144
|
+
transition: `background-color ${token.motionDurationMid} ease`,
|
|
145
|
+
"&:not(:last-child)::before": {
|
|
146
|
+
position: "absolute",
|
|
147
|
+
top: "50%",
|
|
148
|
+
insetInlineEnd: 0,
|
|
149
|
+
width: 1,
|
|
150
|
+
height: "1.6em",
|
|
151
|
+
backgroundColor: token.colorSplit,
|
|
152
|
+
transform: "translateY(-50%)",
|
|
153
|
+
content: "\"\""
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"tbody > tr": {
|
|
157
|
+
"> th, > td": { transition: `background-color ${token.motionDurationMid} ease` },
|
|
158
|
+
"&:hover > th, &:hover > td": { backgroundColor: token.colorFillAlter }
|
|
159
|
+
}
|
|
119
160
|
}
|
|
120
161
|
});
|
|
121
162
|
const getEditableStyles = (token) => {
|
|
@@ -146,24 +187,16 @@ const getEditableStyles = (token) => {
|
|
|
146
187
|
} };
|
|
147
188
|
};
|
|
148
189
|
const getCopyableStyles = (token) => ({
|
|
149
|
-
[`${token.componentCls}-copy-success`]: {
|
|
150
|
-
&,
|
|
151
|
-
&:hover,
|
|
152
|
-
&:focus`]: { color: token.colorSuccess } },
|
|
190
|
+
[`${token.componentCls}-copy-success`]: { "&, &:hover, &:focus": { color: token.colorSuccess } },
|
|
153
191
|
[`${token.componentCls}-copy-icon-only`]: { marginInlineStart: 0 }
|
|
154
192
|
});
|
|
155
193
|
const getEllipsisStyles = () => ({
|
|
156
|
-
|
|
157
|
-
a&-ellipsis,
|
|
158
|
-
span&-ellipsis
|
|
159
|
-
`]: {
|
|
194
|
+
"a&-ellipsis, span&-ellipsis": {
|
|
160
195
|
display: "inline-block",
|
|
161
196
|
maxWidth: "100%"
|
|
162
197
|
},
|
|
163
198
|
"&-ellipsis-single-line": {
|
|
164
|
-
|
|
165
|
-
overflow: "hidden",
|
|
166
|
-
textOverflow: "ellipsis",
|
|
199
|
+
...textEllipsis,
|
|
167
200
|
"a&, span&": { verticalAlign: "bottom" },
|
|
168
201
|
"> code": {
|
|
169
202
|
paddingBlock: 0,
|