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
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { unit } from "../../../../@ant-design/cssinjs/es/util/index.js";
|
|
2
|
+
import "../../../../@ant-design/cssinjs/es/index.js";
|
|
3
|
+
import { genFocusStyle } from "../../style/index.js";
|
|
4
|
+
import { genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
5
|
+
//#region node_modules/antd/es/notification/style/notification.js
|
|
6
|
+
/** Generate motion transitions shared by notification-like notice cards. */
|
|
7
|
+
const genNotificationItemMotionStyle = (token) => {
|
|
8
|
+
const { motionDurationMid, motionEaseInOut } = token;
|
|
9
|
+
const transition = `${motionDurationMid} ${motionEaseInOut}`;
|
|
10
|
+
return {
|
|
11
|
+
transform: "scale(var(--notification-scale, 1))",
|
|
12
|
+
transition: [
|
|
13
|
+
"transform",
|
|
14
|
+
"inset",
|
|
15
|
+
"clip-path",
|
|
16
|
+
"opacity"
|
|
17
|
+
].map((property) => `${property} ${transition}`).join(", ")
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
/** Generate item styles shared by Notification and Message notice cards. */
|
|
21
|
+
const genListItemSharedStyle = (token, config) => {
|
|
22
|
+
const { componentCls, antCls, colorSuccess, colorInfo, colorWarning, colorError, colorTextHeading, colorText, boxShadow, borderRadiusLG, fontSize, lineHeight, notificationBg, notificationPadding, notificationMarginEdge, margin, calc } = token;
|
|
23
|
+
const noticeCls = `${componentCls}-notice`;
|
|
24
|
+
const [varName, varRef] = genCssVar(antCls, "notification");
|
|
25
|
+
return {
|
|
26
|
+
[noticeCls]: {
|
|
27
|
+
position: "absolute",
|
|
28
|
+
width: config.width,
|
|
29
|
+
maxWidth: `calc(100vw - ${unit(calc(notificationMarginEdge).mul(2).equal())})`,
|
|
30
|
+
padding: notificationPadding,
|
|
31
|
+
pointerEvents: "auto",
|
|
32
|
+
[varName("icon-font-size")]: config.iconFontSize,
|
|
33
|
+
[varName("title-font-size")]: config.titleFontSize,
|
|
34
|
+
[varName("title-line-height")]: config.titleLineHeight,
|
|
35
|
+
boxSizing: "border-box",
|
|
36
|
+
color: colorText,
|
|
37
|
+
background: notificationBg,
|
|
38
|
+
borderRadius: borderRadiusLG,
|
|
39
|
+
boxShadow,
|
|
40
|
+
fontSize,
|
|
41
|
+
lineHeight,
|
|
42
|
+
wordWrap: "break-word",
|
|
43
|
+
overflow: "visible",
|
|
44
|
+
...genNotificationItemMotionStyle(token),
|
|
45
|
+
...config.noticeStyle,
|
|
46
|
+
"&::after": {
|
|
47
|
+
position: "absolute",
|
|
48
|
+
insetInline: 0,
|
|
49
|
+
top: calc(margin).mul(-1).equal(),
|
|
50
|
+
height: margin,
|
|
51
|
+
content: "\"\""
|
|
52
|
+
},
|
|
53
|
+
...config.typeStyle && {
|
|
54
|
+
"&-success": { background: varRef("color-success-bg", notificationBg) },
|
|
55
|
+
"&-error": { background: varRef("color-error-bg", notificationBg) },
|
|
56
|
+
"&-info": { background: varRef("color-info-bg", notificationBg) },
|
|
57
|
+
"&-warning": { background: varRef("color-warning-bg", notificationBg) }
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
[`${noticeCls}-wrapper`]: {
|
|
61
|
+
display: "flex",
|
|
62
|
+
...config.contentStyle
|
|
63
|
+
},
|
|
64
|
+
[`${noticeCls}-title`]: {
|
|
65
|
+
color: colorTextHeading,
|
|
66
|
+
fontSize: varRef("title-font-size"),
|
|
67
|
+
lineHeight: varRef("title-line-height")
|
|
68
|
+
},
|
|
69
|
+
[`${noticeCls}-icon`]: {
|
|
70
|
+
flex: "none",
|
|
71
|
+
fontSize: varRef("icon-font-size"),
|
|
72
|
+
lineHeight: 1,
|
|
73
|
+
[`&${noticeCls}-icon-success`]: { color: colorSuccess },
|
|
74
|
+
[`&${noticeCls}-icon-info, &${noticeCls}-icon-loading`]: { color: colorInfo },
|
|
75
|
+
[`&${noticeCls}-icon-warning`]: { color: colorWarning },
|
|
76
|
+
[`&${noticeCls}-icon-error`]: { color: colorError }
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
/** Generate the complete notice item styles for Notification. */
|
|
81
|
+
const genNotificationItemStyle = (token) => {
|
|
82
|
+
const { componentCls, progressBg, notificationProgressHeight, fontSize, borderRadiusLG, width, notificationIconSize, colorText, motionDurationMid, fontSizeLG, lineHeightLG, marginSM, marginXS, paddingLG, notificationPaddingVertical, notificationPaddingHorizontal, notificationCloseButtonSize, colorIcon, borderRadiusSM, colorIconHover, colorBgTextHover, colorBgTextActive } = token;
|
|
83
|
+
const noticeCls = `${componentCls}-notice`;
|
|
84
|
+
return {
|
|
85
|
+
...genListItemSharedStyle(token, {
|
|
86
|
+
width,
|
|
87
|
+
iconFontSize: notificationIconSize,
|
|
88
|
+
titleFontSize: fontSizeLG,
|
|
89
|
+
titleLineHeight: lineHeightLG,
|
|
90
|
+
contentStyle: {
|
|
91
|
+
alignItems: "flex-start",
|
|
92
|
+
gap: marginSM
|
|
93
|
+
},
|
|
94
|
+
typeStyle: true
|
|
95
|
+
}),
|
|
96
|
+
[`${noticeCls}-section`]: {
|
|
97
|
+
display: "flex",
|
|
98
|
+
flexDirection: "column",
|
|
99
|
+
flex: "auto",
|
|
100
|
+
gap: marginXS,
|
|
101
|
+
minWidth: 0
|
|
102
|
+
},
|
|
103
|
+
[`${noticeCls}-description`]: {
|
|
104
|
+
color: colorText,
|
|
105
|
+
fontSize
|
|
106
|
+
},
|
|
107
|
+
[`${noticeCls}-closable ${noticeCls}-title`]: { paddingInlineEnd: paddingLG },
|
|
108
|
+
[`${noticeCls}-close`]: {
|
|
109
|
+
position: "absolute",
|
|
110
|
+
top: notificationPaddingVertical,
|
|
111
|
+
insetInlineEnd: notificationPaddingHorizontal,
|
|
112
|
+
display: "flex",
|
|
113
|
+
alignItems: "center",
|
|
114
|
+
justifyContent: "center",
|
|
115
|
+
width: notificationCloseButtonSize,
|
|
116
|
+
height: notificationCloseButtonSize,
|
|
117
|
+
color: colorIcon,
|
|
118
|
+
background: "none",
|
|
119
|
+
border: "none",
|
|
120
|
+
borderRadius: borderRadiusSM,
|
|
121
|
+
outline: "none",
|
|
122
|
+
transition: ["color", "background-color"].map((prop) => `${prop} ${motionDurationMid}`).join(", "),
|
|
123
|
+
"&:hover": {
|
|
124
|
+
color: colorIconHover,
|
|
125
|
+
backgroundColor: colorBgTextHover
|
|
126
|
+
},
|
|
127
|
+
"&:active": { backgroundColor: colorBgTextActive },
|
|
128
|
+
...genFocusStyle(token)
|
|
129
|
+
},
|
|
130
|
+
[`${noticeCls}-progress`]: {
|
|
131
|
+
position: "absolute",
|
|
132
|
+
bottom: 0,
|
|
133
|
+
display: "block",
|
|
134
|
+
appearance: "none",
|
|
135
|
+
inlineSize: `calc(100% - ${unit(borderRadiusLG)} * 2)`,
|
|
136
|
+
blockSize: notificationProgressHeight,
|
|
137
|
+
border: 0,
|
|
138
|
+
left: {
|
|
139
|
+
_skip_check_: true,
|
|
140
|
+
value: borderRadiusLG
|
|
141
|
+
},
|
|
142
|
+
right: {
|
|
143
|
+
_skip_check_: true,
|
|
144
|
+
value: borderRadiusLG
|
|
145
|
+
},
|
|
146
|
+
"&, &::-webkit-progress-bar": {
|
|
147
|
+
borderRadius: borderRadiusLG,
|
|
148
|
+
backgroundColor: "rgba(0, 0, 0, 0.04)"
|
|
149
|
+
},
|
|
150
|
+
"&::-moz-progress-bar": { background: progressBg },
|
|
151
|
+
"&::-webkit-progress-value": {
|
|
152
|
+
borderRadius: borderRadiusLG,
|
|
153
|
+
background: progressBg
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
[`${noticeCls}-actions`]: {
|
|
157
|
+
float: "right",
|
|
158
|
+
marginTop: marginSM
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
/** Generate standalone PurePanel styles for Notification. */
|
|
163
|
+
const genPurePanelStyle = (token) => {
|
|
164
|
+
const { componentCls, width } = token;
|
|
165
|
+
const noticeCls = `${componentCls}-notice`;
|
|
166
|
+
const actionsCls = `${noticeCls}-actions`;
|
|
167
|
+
const notificationItemStyle = genNotificationItemStyle(token);
|
|
168
|
+
return { [`${noticeCls}-pure-panel`]: {
|
|
169
|
+
width,
|
|
170
|
+
maxWidth: "100%",
|
|
171
|
+
...notificationItemStyle,
|
|
172
|
+
[noticeCls]: {
|
|
173
|
+
...notificationItemStyle[noticeCls],
|
|
174
|
+
position: "relative",
|
|
175
|
+
width: "100%",
|
|
176
|
+
maxWidth: "100%"
|
|
177
|
+
},
|
|
178
|
+
[actionsCls]: {
|
|
179
|
+
...notificationItemStyle[actionsCls],
|
|
180
|
+
float: "none",
|
|
181
|
+
textAlign: "end"
|
|
182
|
+
}
|
|
183
|
+
} };
|
|
184
|
+
};
|
|
185
|
+
/** Wrap Notification item styles under the component root selector. */
|
|
186
|
+
const genNotificationStyle = (token) => {
|
|
187
|
+
const { componentCls } = token;
|
|
188
|
+
return { [componentCls]: genNotificationItemStyle(token) };
|
|
189
|
+
};
|
|
190
|
+
//#endregion
|
|
191
|
+
export { genNotificationStyle as default, genListItemSharedStyle, genPurePanelStyle };
|
|
@@ -1,73 +1,130 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { unit } from "../../../../@ant-design/cssinjs/es/util/index.js";
|
|
2
2
|
import "../../../../@ant-design/cssinjs/es/index.js";
|
|
3
|
+
import { NotificationPlacements } from "../interface.js";
|
|
3
4
|
//#region node_modules/antd/es/notification/style/placement.js
|
|
4
|
-
const
|
|
5
|
-
|
|
5
|
+
const notificationMarginEdgeVar = "--notification-margin-edge";
|
|
6
|
+
/** Resolve the opposite block and inline edges for a placement. */
|
|
7
|
+
const getPlacementOffset = (vertical, horizontal) => ({
|
|
8
|
+
blockEnd: vertical === "top" ? "bottom" : "top",
|
|
9
|
+
inlineEnd: horizontal === "left" ? "right" : "left"
|
|
10
|
+
});
|
|
11
|
+
/** Convert placement offsets into the transform used by notice motion. */
|
|
12
|
+
const getMotionTransform = (motionOffset) => {
|
|
13
|
+
return `translate3d(${motionOffset?.x ?? "0"}, ${motionOffset?.y ?? "0"}, 0) scale(var(--notification-scale, 1))`;
|
|
14
|
+
};
|
|
15
|
+
/** Build the placement metadata used by position and motion styles. */
|
|
16
|
+
const getPlacementStyleConfig = (placement, motionOffset) => {
|
|
17
|
+
const vertical = placement.startsWith("bottom") ? "bottom" : "top";
|
|
18
|
+
const horizontal = placement.endsWith("Right") ? "right" : "left";
|
|
19
|
+
const { blockEnd, inlineEnd } = getPlacementOffset(vertical, horizontal);
|
|
20
|
+
const isCenterPlacement = placement === "top" || placement === "bottom";
|
|
21
|
+
const offset = placement === "top" || placement.endsWith("Left") ? `-${motionOffset}` : motionOffset;
|
|
22
|
+
return {
|
|
23
|
+
placement,
|
|
24
|
+
vertical,
|
|
25
|
+
blockEnd,
|
|
26
|
+
horizontal,
|
|
27
|
+
inlineEnd,
|
|
28
|
+
motionOffset: isCenterPlacement ? {
|
|
29
|
+
x: "-50%",
|
|
30
|
+
y: offset
|
|
31
|
+
} : { x: offset },
|
|
32
|
+
baseMotionOffset: isCenterPlacement ? { x: "-50%" } : void 0,
|
|
33
|
+
isCenterPlacement
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
/** Get the list direction for a vertical placement. */
|
|
37
|
+
const getPlacementFlexDirection = (vertical) => vertical === "bottom" ? "column-reverse" : "column";
|
|
38
|
+
/** Keep configured top/bottom as the visible notice edge while list padding preserves shadows. */
|
|
39
|
+
const getPlacementInset = (vertical) => {
|
|
40
|
+
const marginEdge = `var(${notificationMarginEdgeVar}, 0px)`;
|
|
41
|
+
return `calc(var(--notification-${vertical}, ${marginEdge}) - ${marginEdge})`;
|
|
42
|
+
};
|
|
43
|
+
/** Get the transform origin used by stacked notice scaling. */
|
|
44
|
+
const getPlacementTransformOrigin = (vertical) => vertical === "bottom" ? "center top" : "center bottom";
|
|
45
|
+
/** Calculate the clip offset that preserves stack shadows. */
|
|
46
|
+
const getStackShadowClipOffset = (token) => unit(token.calc(token.marginXXL).mul(-1).equal());
|
|
47
|
+
/** Build the default stack clip-path for a visible notice. */
|
|
48
|
+
const getStackNoticeClipPath = (token) => {
|
|
49
|
+
const offset = getStackShadowClipOffset(token);
|
|
50
|
+
return `inset(${offset} ${offset} ${offset} ${offset})`;
|
|
51
|
+
};
|
|
52
|
+
/** Build the collapsed stack clip-path for a placement. */
|
|
53
|
+
const getPlacementStackClipPath = (token, vertical) => {
|
|
54
|
+
const offset = getStackShadowClipOffset(token);
|
|
55
|
+
return vertical === "bottom" ? `inset(${offset} ${offset} 50% ${offset})` : `inset(50% ${offset} ${offset} ${offset})`;
|
|
56
|
+
};
|
|
57
|
+
/** Generate styles for a single notification placement. */
|
|
58
|
+
const genPlacementStyle = (token, config) => {
|
|
59
|
+
const { componentCls } = token;
|
|
60
|
+
const { placement, vertical, blockEnd, horizontal, inlineEnd, isCenterPlacement } = config;
|
|
6
61
|
const noticeCls = `${componentCls}-notice`;
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
62
|
+
const noticeMotionCls = `${noticeCls}${componentCls}-fade`;
|
|
63
|
+
const enterTransform = getMotionTransform(config.motionOffset);
|
|
64
|
+
const baseTransform = getMotionTransform(config.baseMotionOffset);
|
|
65
|
+
const transformOrigin = getPlacementTransformOrigin(vertical);
|
|
66
|
+
return { [`&${componentCls}-${placement}`]: {
|
|
67
|
+
[vertical]: getPlacementInset(vertical),
|
|
68
|
+
[blockEnd]: "auto",
|
|
69
|
+
display: "flex",
|
|
70
|
+
flexDirection: getPlacementFlexDirection(vertical),
|
|
71
|
+
...isCenterPlacement ? {
|
|
72
|
+
marginInline: 0,
|
|
73
|
+
left: "50%",
|
|
74
|
+
right: "auto",
|
|
75
|
+
transform: "translateX(-50%)"
|
|
76
|
+
} : {
|
|
77
|
+
[horizontal]: 0,
|
|
78
|
+
[inlineEnd]: "auto"
|
|
11
79
|
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
top: -animationMaxHeight,
|
|
20
|
-
opacity: 0
|
|
80
|
+
[noticeCls]: {
|
|
81
|
+
[vertical]: "var(--notification-y, 0)",
|
|
82
|
+
...isCenterPlacement ? {
|
|
83
|
+
left: "50%",
|
|
84
|
+
transform: baseTransform
|
|
85
|
+
} : { [horizontal]: "var(--notification-x, 0)" },
|
|
86
|
+
transformOrigin
|
|
21
87
|
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
});
|
|
27
|
-
const bottomFadeIn = new Keyframe("antNotificationBottomFadeIn", {
|
|
28
|
-
"0%": {
|
|
29
|
-
bottom: token.calc(animationMaxHeight).mul(-1).equal(),
|
|
30
|
-
opacity: 0
|
|
88
|
+
[`${noticeMotionCls}-appear-prepare, ${noticeMotionCls}-enter-prepare`]: {
|
|
89
|
+
opacity: 0,
|
|
90
|
+
transform: enterTransform,
|
|
91
|
+
transition: "none"
|
|
31
92
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
const leftFadeIn = new Keyframe("antNotificationLeftFadeIn", {
|
|
38
|
-
"0%": {
|
|
39
|
-
transform: `translate3d(-100%, 0, 0)`,
|
|
40
|
-
opacity: 0
|
|
93
|
+
[`${noticeMotionCls}-appear-start, ${noticeMotionCls}-enter-start`]: {
|
|
94
|
+
opacity: 0,
|
|
95
|
+
transform: enterTransform
|
|
41
96
|
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
marginInline: 0,
|
|
50
|
-
[noticeCls]: { marginInline: "auto auto" }
|
|
97
|
+
[`${noticeMotionCls}-appear-active, ${noticeMotionCls}-enter-active`]: {
|
|
98
|
+
opacity: 1,
|
|
99
|
+
transform: baseTransform
|
|
100
|
+
},
|
|
101
|
+
[`${noticeMotionCls}-leave-start`]: {
|
|
102
|
+
opacity: 1,
|
|
103
|
+
transform: baseTransform
|
|
51
104
|
},
|
|
52
|
-
[
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
marginLeft: {
|
|
61
|
-
value: notificationMarginEdge,
|
|
62
|
-
_skip_check_: true
|
|
63
|
-
},
|
|
64
|
-
[noticeCls]: {
|
|
65
|
-
marginInlineEnd: "auto",
|
|
66
|
-
marginInlineStart: 0
|
|
67
|
-
},
|
|
68
|
-
[`${componentCls}-fade-enter${componentCls}-fade-enter-active, ${componentCls}-fade-appear${componentCls}-fade-appear-active`]: { animationName: leftFadeIn }
|
|
105
|
+
[`${noticeMotionCls}-leave-active`]: {
|
|
106
|
+
opacity: 0,
|
|
107
|
+
transform: enterTransform
|
|
108
|
+
},
|
|
109
|
+
[`&${componentCls}-stack:not(${componentCls}-stack-expanded)`]: {
|
|
110
|
+
[noticeCls]: { clipPath: getPlacementStackClipPath(token, vertical) },
|
|
111
|
+
[`${noticeCls}[data-notification-index='0']`]: { clipPath: getStackNoticeClipPath(token) }
|
|
69
112
|
}
|
|
70
113
|
} };
|
|
71
114
|
};
|
|
115
|
+
/** Generate placement styles for all enabled notification placements. */
|
|
116
|
+
const genNotificationPlacementRootStyle = (token, placements = NotificationPlacements) => {
|
|
117
|
+
const { notificationMotionOffset } = token;
|
|
118
|
+
const motionOffset = unit(notificationMotionOffset);
|
|
119
|
+
return { ...placements.reduce((styles, placement) => ({
|
|
120
|
+
...styles,
|
|
121
|
+
...genPlacementStyle(token, getPlacementStyleConfig(placement, motionOffset))
|
|
122
|
+
}), {}) };
|
|
123
|
+
};
|
|
124
|
+
/** Wrap placement styles under the component root selector. */
|
|
125
|
+
const genNotificationPlacementStyle = (token) => {
|
|
126
|
+
const { componentCls } = token;
|
|
127
|
+
return { [componentCls]: genNotificationPlacementRootStyle(token) };
|
|
128
|
+
};
|
|
72
129
|
//#endregion
|
|
73
130
|
export { genNotificationPlacementStyle as default };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { clsx } from "../../../clsx/dist/clsx.js";
|
|
3
3
|
import { ConfigContext, useComponentConfig } from "../config-provider/context.js";
|
|
4
|
-
import
|
|
5
|
-
import "../
|
|
4
|
+
import { isNumber, isPlainObject } from "../_util/is.js";
|
|
5
|
+
import { resolveStyleOrClass, useMergeSemantic } from "../_util/hooks/useMergeSemantic/index.js";
|
|
6
6
|
import { devUseWarning } from "../_util/warning.js";
|
|
7
|
-
import { computeClosable, pickClosable } from "../_util/hooks/useClosable.js";
|
|
8
|
-
import { mergeClassNames, mergeStyles, resolveStyleOrClass, useMergeSemantic } from "../_util/hooks/useMergeSemantic.js";
|
|
9
|
-
import "../_util/hooks/index.js";
|
|
10
7
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
11
8
|
import "../config-provider/index.js";
|
|
12
9
|
import NotificationProvider from "../../../@rc-component/notification/es/NotificationProvider.js";
|
|
13
10
|
import useNotification$1 from "../../../@rc-component/notification/es/hooks/useNotification.js";
|
|
14
11
|
import "../../../@rc-component/notification/es/index.js";
|
|
12
|
+
import useStackConfig from "./hooks/useStackConfig.js";
|
|
13
|
+
import { getCloseIconConfig, getMotion, getPlacementOffsetStyle } from "./util.js";
|
|
14
|
+
import { computeClosable, pickClosable } from "../_util/hooks/useClosable.js";
|
|
15
|
+
import "../_util/hooks/index.js";
|
|
15
16
|
import style_default from "./style/index.js";
|
|
16
|
-
import {
|
|
17
|
-
import { getCloseIconConfig, getMotion, getPlacementStyle } from "./util.js";
|
|
17
|
+
import { TypeIcon, getCloseIcon } from "./PurePanel.js";
|
|
18
18
|
import React, { useContext, useMemo } from "../../../react/index.js";
|
|
19
19
|
//#region node_modules/antd/es/notification/useNotification.js
|
|
20
|
-
const DEFAULT_OFFSET = 24;
|
|
21
20
|
const DEFAULT_DURATION = 4.5;
|
|
22
21
|
const DEFAULT_PLACEMENT = "topRight";
|
|
22
|
+
const DEFAULT_STACK_CONFIG = { offset: 8 };
|
|
23
23
|
const Wrapper = ({ children, prefixCls }) => {
|
|
24
24
|
const rootCls = useCSSVarCls(prefixCls);
|
|
25
25
|
const [hashId, cssVarCls] = style_default(prefixCls, rootCls);
|
|
@@ -33,12 +33,13 @@ const Holder = /*#__PURE__*/ React.forwardRef((props, ref) => {
|
|
|
33
33
|
const { top, bottom, prefixCls: staticPrefixCls, getContainer: staticGetContainer, maxCount, rtl, onAllRemoved, stack, duration = DEFAULT_DURATION, pauseOnHover = true, showProgress } = props;
|
|
34
34
|
const { getPrefixCls, getPopupContainer, direction } = useComponentConfig("notification");
|
|
35
35
|
const { notification } = useContext(ConfigContext);
|
|
36
|
-
const [, token] = useToken();
|
|
37
36
|
const prefixCls = staticPrefixCls || getPrefixCls("notification");
|
|
38
|
-
const mergedDuration = useMemo(() =>
|
|
39
|
-
const
|
|
37
|
+
const mergedDuration = useMemo(() => isNumber(duration) && duration > 0 ? duration : false, [duration]);
|
|
38
|
+
const [mergedClassNames, mergedStyles] = useMergeSemantic([notification?.classNames, props?.classNames], [notification?.styles, props?.styles], { props });
|
|
39
|
+
const getStyle = () => getPlacementOffsetStyle(top, bottom);
|
|
40
40
|
const getClassName = () => clsx({ [`${prefixCls}-rtl`]: rtl ?? direction === "rtl" });
|
|
41
41
|
const getNotificationMotion = () => getMotion(prefixCls);
|
|
42
|
+
const stackConfig = useStackConfig(stack, DEFAULT_STACK_CONFIG);
|
|
42
43
|
const [api, holder] = useNotification$1({
|
|
43
44
|
prefixCls,
|
|
44
45
|
style: getStyle,
|
|
@@ -50,21 +51,16 @@ const Holder = /*#__PURE__*/ React.forwardRef((props, ref) => {
|
|
|
50
51
|
maxCount,
|
|
51
52
|
pauseOnHover,
|
|
52
53
|
showProgress,
|
|
54
|
+
classNames: mergedClassNames,
|
|
55
|
+
styles: mergedStyles,
|
|
53
56
|
onAllRemoved,
|
|
54
57
|
renderNotifications,
|
|
55
|
-
stack:
|
|
56
|
-
threshold: typeof stack === "object" ? stack?.threshold : void 0,
|
|
57
|
-
offset: 8,
|
|
58
|
-
gap: token.margin
|
|
59
|
-
}
|
|
58
|
+
stack: stackConfig
|
|
60
59
|
});
|
|
61
|
-
const [mergedClassNames, mergedStyles] = useMergeSemantic([notification?.classNames, props?.classNames], [notification?.styles, props?.styles], { props });
|
|
62
60
|
React.useImperativeHandle(ref, () => ({
|
|
63
61
|
...api,
|
|
64
62
|
prefixCls,
|
|
65
|
-
notification
|
|
66
|
-
classNames: mergedClassNames,
|
|
67
|
-
styles: mergedStyles
|
|
63
|
+
notification
|
|
68
64
|
}));
|
|
69
65
|
return holder;
|
|
70
66
|
});
|
|
@@ -75,7 +71,7 @@ function useInternalNotification(notificationConfig) {
|
|
|
75
71
|
return [React.useMemo(() => {
|
|
76
72
|
const open = (config) => {
|
|
77
73
|
if (!holderRef.current) return;
|
|
78
|
-
const { open: originOpen, prefixCls, notification
|
|
74
|
+
const { open: originOpen, prefixCls, notification } = holderRef.current;
|
|
79
75
|
const contextClassName = notification?.className || {};
|
|
80
76
|
const contextStyle = notification?.style || {};
|
|
81
77
|
const noticePrefixCls = `${prefixCls}-notice`;
|
|
@@ -91,34 +87,35 @@ function useInternalNotification(notificationConfig) {
|
|
|
91
87
|
closeIcon: realCloseIcon
|
|
92
88
|
});
|
|
93
89
|
const mergedClosable = rawClosable ? {
|
|
94
|
-
onClose: closable
|
|
90
|
+
onClose: isPlainObject(closable) ? closable.onClose : void 0,
|
|
95
91
|
closeIcon: mergedCloseIcon,
|
|
96
92
|
...ariaProps
|
|
97
93
|
} : false;
|
|
98
94
|
const semanticClassNames = resolveStyleOrClass(configClassNames, { props: config });
|
|
99
95
|
const semanticStyles = resolveStyleOrClass(styles, { props: config });
|
|
100
|
-
const
|
|
101
|
-
const
|
|
96
|
+
const iconNode = icon || (type ? TypeIcon[type] : null);
|
|
97
|
+
const typeIconCls = !icon && type ? `${noticePrefixCls}-icon-${type}` : void 0;
|
|
102
98
|
return originOpen({
|
|
103
99
|
placement: notificationConfig?.placement ?? DEFAULT_PLACEMENT,
|
|
104
100
|
...restConfig,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
...style
|
|
101
|
+
title: mergedTitle,
|
|
102
|
+
description,
|
|
103
|
+
icon: iconNode,
|
|
104
|
+
actions: mergedActions,
|
|
105
|
+
role,
|
|
106
|
+
classNames: {
|
|
107
|
+
...semanticClassNames,
|
|
108
|
+
icon: clsx(typeIconCls, semanticClassNames.icon)
|
|
109
|
+
},
|
|
110
|
+
styles: {
|
|
111
|
+
...semanticStyles,
|
|
112
|
+
root: {
|
|
113
|
+
...contextStyle,
|
|
114
|
+
...semanticStyles.root
|
|
115
|
+
}
|
|
121
116
|
},
|
|
117
|
+
className: clsx({ [`${noticePrefixCls}-${type}`]: type }, className, contextClassName),
|
|
118
|
+
style,
|
|
122
119
|
closable: mergedClosable
|
|
123
120
|
});
|
|
124
121
|
};
|
|
@@ -1,53 +1,12 @@
|
|
|
1
|
+
import { unit } from "../../../@ant-design/cssinjs/es/util/index.js";
|
|
2
|
+
import "../../../@ant-design/cssinjs/es/index.js";
|
|
3
|
+
import { isNonNullable } from "../_util/is.js";
|
|
1
4
|
//#region node_modules/antd/es/notification/util.js
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
left: "50%",
|
|
8
|
-
transform: "translateX(-50%)",
|
|
9
|
-
right: "auto",
|
|
10
|
-
top,
|
|
11
|
-
bottom: "auto"
|
|
12
|
-
};
|
|
13
|
-
break;
|
|
14
|
-
case "topLeft":
|
|
15
|
-
style = {
|
|
16
|
-
left: 0,
|
|
17
|
-
top,
|
|
18
|
-
bottom: "auto"
|
|
19
|
-
};
|
|
20
|
-
break;
|
|
21
|
-
case "topRight":
|
|
22
|
-
style = {
|
|
23
|
-
right: 0,
|
|
24
|
-
top,
|
|
25
|
-
bottom: "auto"
|
|
26
|
-
};
|
|
27
|
-
break;
|
|
28
|
-
case "bottom":
|
|
29
|
-
style = {
|
|
30
|
-
left: "50%",
|
|
31
|
-
transform: "translateX(-50%)",
|
|
32
|
-
right: "auto",
|
|
33
|
-
top: "auto",
|
|
34
|
-
bottom
|
|
35
|
-
};
|
|
36
|
-
break;
|
|
37
|
-
case "bottomLeft":
|
|
38
|
-
style = {
|
|
39
|
-
left: 0,
|
|
40
|
-
top: "auto",
|
|
41
|
-
bottom
|
|
42
|
-
};
|
|
43
|
-
break;
|
|
44
|
-
default: style = {
|
|
45
|
-
right: 0,
|
|
46
|
-
top: "auto",
|
|
47
|
-
bottom
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
return style;
|
|
5
|
+
function getPlacementOffsetStyle(top, bottom) {
|
|
6
|
+
return {
|
|
7
|
+
...isNonNullable(top) && { "--notification-top": unit(top) },
|
|
8
|
+
...isNonNullable(bottom) && { "--notification-bottom": unit(bottom) }
|
|
9
|
+
};
|
|
51
10
|
}
|
|
52
11
|
function getMotion(prefixCls) {
|
|
53
12
|
return { motionName: `${prefixCls}-fade` };
|
|
@@ -58,4 +17,4 @@ function getCloseIconConfig(closeIcon, notificationConfig, notification) {
|
|
|
58
17
|
return notification?.closeIcon;
|
|
59
18
|
}
|
|
60
19
|
//#endregion
|
|
61
|
-
export { getCloseIconConfig, getMotion,
|
|
20
|
+
export { getCloseIconConfig, getMotion, getPlacementOffsetStyle };
|
|
@@ -3,12 +3,11 @@ import { clsx } from "../../../clsx/dist/clsx.js";
|
|
|
3
3
|
import { useComponentConfig } from "../config-provider/context.js";
|
|
4
4
|
import useToken from "../theme/useToken.js";
|
|
5
5
|
import "../theme/internal.js";
|
|
6
|
+
import { useMergeSemantic } from "../_util/hooks/useMergeSemantic/index.js";
|
|
6
7
|
import "../_util/warning.js";
|
|
7
8
|
import locale from "../../../@rc-component/pagination/es/locale/en_US.js";
|
|
8
9
|
import useLocale from "../locale/useLocale.js";
|
|
9
10
|
import "../locale/index.js";
|
|
10
|
-
import { useMergeSemantic } from "../_util/hooks/useMergeSemantic.js";
|
|
11
|
-
import "../_util/hooks/index.js";
|
|
12
11
|
import useSize from "../config-provider/hooks/useSize.js";
|
|
13
12
|
import RefIcon from "../../../@ant-design/icons/es/icons/RightOutlined.js";
|
|
14
13
|
import Select from "../select/index.js";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { isPlainObject } from "../_util/is.js";
|
|
1
2
|
import { useMemo } from "../../../react/index.js";
|
|
2
3
|
//#region node_modules/antd/es/pagination/useShowSizeChanger.js
|
|
3
4
|
function useShowSizeChanger(showSizeChanger) {
|
|
4
5
|
return useMemo(() => {
|
|
5
6
|
if (typeof showSizeChanger === "boolean") return [showSizeChanger, {}];
|
|
6
|
-
if (showSizeChanger
|
|
7
|
+
if (isPlainObject(showSizeChanger)) return [true, showSizeChanger];
|
|
7
8
|
return [void 0, void 0];
|
|
8
9
|
}, [showSizeChanger]);
|
|
9
10
|
}
|
|
@@ -23,7 +23,10 @@ const Overlay = (props) => {
|
|
|
23
23
|
return /*#__PURE__*/ React$1.createElement("div", {
|
|
24
24
|
className: `${prefixCls}-inner-content`,
|
|
25
25
|
onClick: onPopupClick
|
|
26
|
-
}, /*#__PURE__*/ React$1.createElement("div", { className: `${prefixCls}-message` }, icon && /*#__PURE__*/ React$1.createElement("span", {
|
|
26
|
+
}, /*#__PURE__*/ React$1.createElement("div", { className: `${prefixCls}-message` }, icon && /*#__PURE__*/ React$1.createElement("span", {
|
|
27
|
+
className: clsx(`${prefixCls}-message-icon`, classNames?.icon),
|
|
28
|
+
style: styles?.icon
|
|
29
|
+
}, icon), /*#__PURE__*/ React$1.createElement("div", { className: `${prefixCls}-message-text` }, titleNode && /*#__PURE__*/ React$1.createElement("div", {
|
|
27
30
|
className: clsx(`${prefixCls}-title`, classNames?.title),
|
|
28
31
|
style: styles?.title
|
|
29
32
|
}, titleNode), descriptionNode && /*#__PURE__*/ React$1.createElement("div", {
|
|
@@ -5,9 +5,8 @@ import "../../../@rc-component/util/es/index.js";
|
|
|
5
5
|
import { clsx } from "../../../clsx/dist/clsx.js";
|
|
6
6
|
import { useComponentConfig } from "../config-provider/context.js";
|
|
7
7
|
import RefIcon from "../../../@ant-design/icons/es/icons/ExclamationCircleFilled.js";
|
|
8
|
+
import { useMergeSemantic } from "../_util/hooks/useMergeSemantic/index.js";
|
|
8
9
|
import "../_util/warning.js";
|
|
9
|
-
import { useMergeSemantic } from "../_util/hooks/useMergeSemantic.js";
|
|
10
|
-
import "../_util/hooks/index.js";
|
|
11
10
|
import useMergedArrow from "../tooltip/hook/useMergedArrow.js";
|
|
12
11
|
import Popover from "../popover/index.js";
|
|
13
12
|
import style_default from "./style/index.js";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { clsx } from "../../../clsx/dist/clsx.js";
|
|
3
3
|
import { ConfigContext } from "../config-provider/context.js";
|
|
4
|
-
import { useMergeSemantic } from "../_util/hooks/useMergeSemantic.js";
|
|
5
|
-
import "../_util/hooks/index.js";
|
|
4
|
+
import { useMergeSemantic } from "../_util/hooks/useMergeSemantic/index.js";
|
|
6
5
|
import "../config-provider/index.js";
|
|
7
6
|
import { getRenderPropValue } from "../_util/getRenderPropValue.js";
|
|
8
7
|
import Popup from "../../../@rc-component/tooltip/es/Popup.js";
|
|
@@ -3,9 +3,8 @@ import useControlledState from "../../../@rc-component/util/es/hooks/useControll
|
|
|
3
3
|
import "../../../@rc-component/util/es/index.js";
|
|
4
4
|
import { clsx } from "../../../clsx/dist/clsx.js";
|
|
5
5
|
import { useComponentConfig } from "../config-provider/context.js";
|
|
6
|
+
import { useMergeSemantic } from "../_util/hooks/useMergeSemantic/index.js";
|
|
6
7
|
import "../_util/warning.js";
|
|
7
|
-
import { useMergeSemantic } from "../_util/hooks/useMergeSemantic.js";
|
|
8
|
-
import "../_util/hooks/index.js";
|
|
9
8
|
import { getTransitionName } from "../_util/motion.js";
|
|
10
9
|
import { getRenderPropValue } from "../_util/getRenderPropValue.js";
|
|
11
10
|
import useMergedArrow from "../tooltip/hook/useMergedArrow.js";
|