useblocks 1.1.85-dev.10 → 1.1.85-dev.11
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/README.md +70 -40
- package/compat-globals.js +1 -1
- package/iframe/.vite/manifest.json +4 -4
- package/iframe/js/discussHandlers.sDXLf5I7.js +88 -0
- package/iframe/js/{iframe-eblock.body.js → iframe-eblock.body.714faf8a.js} +1 -1
- package/iframe/js/iframe-eblock.js +2 -2
- package/iframe/js/{iframe.body.js → iframe.body.714faf8a.js} +35 -35
- package/iframe/js/iframe.js +2 -2
- package/package.json +4 -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/11bc33e0.js +1 -0
- package/static/core/1ed86ed3.js +1 -0
- package/static/core/248de796.js +1 -0
- package/static/core/{e50b6f57.js → 274b5d7a.js} +1 -1
- package/static/core/4067c5be.js +1 -0
- package/static/core/453596ac.js +27 -0
- package/static/core/4b12ae50.js +1 -0
- package/static/core/{db82c42b.js → 50d547f6.js} +1 -1
- package/static/core/549c0ef1.js +1 -0
- package/static/core/{b29146b3.js → 563a690f.js} +5 -5
- package/static/core/{c1bf6439.js → 5c62f38b.js} +1 -1
- package/static/core/5f949f39.js +1 -0
- package/static/core/{e0d71533.js → 60aa31a3.js} +6 -6
- package/static/core/{79749848.js → 66619f08.js} +7 -7
- package/static/core/7052d050.js +28 -0
- package/static/core/{984e936f.js → 7555e955.js} +1 -1
- package/static/core/{55a38638.js → 7c89682e.js} +7 -7
- package/static/core/83c17079.js +2 -0
- package/static/core/{4c83d06a.js → 8c5284f6.js} +1 -1
- package/static/core/{e0e5c9b9.js → 958fe93e.js} +2 -2
- package/static/core/{6fcb3c31.js → a3f7b4c9.js} +1 -1
- package/static/core/{9560f31a.js → a494cc9f.js} +1 -1
- package/static/core/{a5996860.js → a6303cb2.js} +1 -1
- package/static/core/b8a0f663.js +1 -0
- package/static/core/bb65f553.js +1 -0
- package/static/core/{4c3f5897.js → c2f990cf.js} +2 -2
- package/static/core/{72d350ea.js → c8d6258e.js} +1 -1
- package/static/core/{3ece766f.js → d58ae4ac.js} +2 -2
- package/static/core/d61988e0.js +7 -0
- package/static/core/d887672a.js +1 -0
- package/static/core/dcc37768.js +1 -0
- package/static/core/{30841c46.js → e50f64f6.js} +1 -1
- package/static/core/{175b5b0f.js → ff7d14e8.js} +1 -1
- package/static/esm/2490dab8.js +1 -0
- package/static/esm/971f1b2c.js +1 -0
- package/static/esm/ad8c16a9.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.js +1 -1
- package/static/umd-runtime/ui-kit-icons.js +1 -1
- package/static/umd-runtime/ui-kit.js +2 -2
- package/static/umd-runtime/{DP3QTW77.js → uk9LyZos.js} +1 -1
- package/useblocks-core.714faf8a.js +859 -0
- package/useblocks-esm.js +11 -11
- package/{useblocks-po.8098d114.js → useblocks-po.714faf8a.js} +1 -1
- package/useblocks.d.ts +109 -25
- 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/package.json +1 -1
- package/iframe/js/discussHandlers.CCCXIEaO.js +0 -88
- package/static/core/1f101241.js +0 -1
- package/static/core/1fa93ad8.js +0 -28
- package/static/core/2007bc93.js +0 -1
- package/static/core/30ab7b1d.js +0 -1
- package/static/core/440a91be.js +0 -1
- package/static/core/44e96a78.js +0 -1
- package/static/core/823aedee.js +0 -1
- package/static/core/828583e1.js +0 -2
- package/static/core/8cc6e392.js +0 -1
- package/static/core/9aefcefb.js +0 -1
- package/static/core/a4f90443.js +0 -27
- package/static/core/a7ac37cd.js +0 -1
- package/static/core/df41de18.js +0 -7
- 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/useblocks-core.8098d114.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/iframe/{iframe-eblock.8098d114.html → iframe-eblock.714faf8a.html} +0 -0
- /package/iframe/{iframe.8098d114.html → iframe.714faf8a.html} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { unit } from "../../../../@ant-design/cssinjs/es/util/index.js";
|
|
2
2
|
import "../../../../@ant-design/cssinjs/es/index.js";
|
|
3
3
|
import { merge } from "../../../../@ant-design/cssinjs-utils/es/util/statistic.js";
|
|
4
|
-
import { clearFix, resetComponent } from "../../style/index.js";
|
|
4
|
+
import { clearFix, genFocusOutline, resetComponent } from "../../style/index.js";
|
|
5
5
|
import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
6
6
|
import "../../theme/internal.js";
|
|
7
7
|
import { genCompactItemStyle } from "../../style/compact-item.js";
|
|
@@ -252,13 +252,18 @@ const genAllowClearStyle = (token) => {
|
|
|
252
252
|
outline: "none",
|
|
253
253
|
backgroundColor: "transparent",
|
|
254
254
|
"&:hover": { color: token.colorIcon },
|
|
255
|
+
"&:focus-visible": {
|
|
256
|
+
color: token.colorIcon,
|
|
257
|
+
borderRadius: token.borderRadiusSM,
|
|
258
|
+
...genFocusOutline(token)
|
|
259
|
+
},
|
|
255
260
|
"&:active": { color: token.colorText },
|
|
256
261
|
"&-hidden": { visibility: "hidden" },
|
|
257
262
|
"&-has-suffix": { margin: `0 ${unit(token.inputAffixPadding)}` }
|
|
258
263
|
} };
|
|
259
264
|
};
|
|
260
265
|
const genAffixStyle = (token) => {
|
|
261
|
-
const { componentCls, inputAffixPadding, colorTextDescription, motionDurationSlow, colorIcon, colorIconHover
|
|
266
|
+
const { componentCls, inputAffixPadding, colorTextDescription, motionDurationSlow, colorIcon, colorIconHover } = token;
|
|
262
267
|
const affixCls = `${componentCls}-affix-wrapper`;
|
|
263
268
|
const affixClsDisabled = `${componentCls}-affix-wrapper-disabled`;
|
|
264
269
|
return {
|
|
@@ -296,18 +301,19 @@ const genAffixStyle = (token) => {
|
|
|
296
301
|
},
|
|
297
302
|
"&-show-count-has-suffix": { marginInlineEnd: token.paddingXXS },
|
|
298
303
|
"&-prefix": { marginInlineEnd: inputAffixPadding },
|
|
299
|
-
"&-suffix": { marginInlineStart: inputAffixPadding }
|
|
304
|
+
"&-suffix": { marginInlineStart: inputAffixPadding },
|
|
305
|
+
"&-password-icon": {
|
|
306
|
+
display: "inline-flex",
|
|
307
|
+
color: colorIcon,
|
|
308
|
+
cursor: "pointer",
|
|
309
|
+
transition: `all ${motionDurationSlow}`,
|
|
310
|
+
"&:hover": { color: colorIconHover }
|
|
311
|
+
}
|
|
300
312
|
},
|
|
301
|
-
...genAllowClearStyle(token)
|
|
302
|
-
[`${iconCls}${componentCls}-password-icon`]: {
|
|
303
|
-
color: colorIcon,
|
|
304
|
-
cursor: "pointer",
|
|
305
|
-
transition: `all ${motionDurationSlow}`,
|
|
306
|
-
"&:hover": { color: colorIconHover }
|
|
307
|
-
}
|
|
313
|
+
...genAllowClearStyle(token)
|
|
308
314
|
},
|
|
309
315
|
[`${componentCls}-underlined`]: { borderRadius: 0 },
|
|
310
|
-
[affixClsDisabled]: { [`${
|
|
316
|
+
[affixClsDisabled]: { [`${componentCls}-password-icon`]: {
|
|
311
317
|
color: colorIcon,
|
|
312
318
|
cursor: "not-allowed",
|
|
313
319
|
"&:hover": { color: colorIcon }
|
|
@@ -22,7 +22,8 @@ const genOTPStyle = (token) => {
|
|
|
22
22
|
},
|
|
23
23
|
[`${componentCls}-mask-input`]: {
|
|
24
24
|
color: "transparent",
|
|
25
|
-
caretColor: token.colorText
|
|
25
|
+
caretColor: token.colorText,
|
|
26
|
+
"&::selection": { color: "transparent" }
|
|
26
27
|
},
|
|
27
28
|
[`${componentCls}-mask-input[type=number]::-webkit-inner-spin-button`]: {
|
|
28
29
|
"-webkit-appearance": "none",
|
|
@@ -10,13 +10,13 @@ const genHoverStyle = (token) => ({
|
|
|
10
10
|
const genDisabledStyle = (token) => ({
|
|
11
11
|
color: token.colorTextDisabled,
|
|
12
12
|
backgroundColor: token.colorBgContainerDisabled,
|
|
13
|
-
borderColor: token.
|
|
13
|
+
borderColor: token.colorBorderDisabled,
|
|
14
14
|
boxShadow: "none",
|
|
15
15
|
cursor: "not-allowed",
|
|
16
16
|
opacity: 1,
|
|
17
17
|
"input[disabled], textarea[disabled]": { cursor: "not-allowed" },
|
|
18
18
|
"&:hover:not([disabled])": { ...genHoverStyle(merge(token, {
|
|
19
|
-
hoverBorderColor: token.
|
|
19
|
+
hoverBorderColor: token.colorBorderDisabled,
|
|
20
20
|
hoverBg: token.colorBgContainerDisabled
|
|
21
21
|
})) }
|
|
22
22
|
});
|
|
@@ -57,7 +57,7 @@ const genOutlinedStyle = (token, extraStyles) => ({ "&-outlined": {
|
|
|
57
57
|
hoverBorderColor: token.colorErrorBorderHover,
|
|
58
58
|
activeBorderColor: token.colorError,
|
|
59
59
|
activeShadow: token.errorActiveShadow,
|
|
60
|
-
affixColor: token.
|
|
60
|
+
affixColor: token.colorErrorAffix
|
|
61
61
|
}),
|
|
62
62
|
...genOutlinedStatusStyle(token, {
|
|
63
63
|
status: "warning",
|
|
@@ -65,7 +65,7 @@ const genOutlinedStyle = (token, extraStyles) => ({ "&-outlined": {
|
|
|
65
65
|
hoverBorderColor: token.colorWarningBorderHover,
|
|
66
66
|
activeBorderColor: token.colorWarning,
|
|
67
67
|
activeShadow: token.warningActiveShadow,
|
|
68
|
-
affixColor: token.
|
|
68
|
+
affixColor: token.colorWarningAffix
|
|
69
69
|
}),
|
|
70
70
|
...extraStyles
|
|
71
71
|
} });
|
|
@@ -107,8 +107,14 @@ const genBorderlessStyle = (token, extraStyles) => {
|
|
|
107
107
|
color: token.colorTextDisabled,
|
|
108
108
|
cursor: "not-allowed"
|
|
109
109
|
},
|
|
110
|
-
[`&${componentCls}-status-error`]: {
|
|
111
|
-
|
|
110
|
+
[`&${componentCls}-status-error`]: {
|
|
111
|
+
"&, & input, & textarea": { color: token.colorError },
|
|
112
|
+
[`${componentCls}-prefix, ${componentCls}-suffix`]: { color: token.colorErrorAffix }
|
|
113
|
+
},
|
|
114
|
+
[`&${componentCls}-status-warning`]: {
|
|
115
|
+
"&, & input, & textarea": { color: token.colorWarning },
|
|
116
|
+
[`${componentCls}-prefix, ${componentCls}-suffix`]: { color: token.colorWarningAffix }
|
|
117
|
+
},
|
|
112
118
|
...extraStyles
|
|
113
119
|
} };
|
|
114
120
|
};
|
|
@@ -143,7 +149,7 @@ const genFilledStyle = (token, extraStyles) => ({ "&-filled": {
|
|
|
143
149
|
hoverBg: token.colorErrorBgHover,
|
|
144
150
|
activeBorderColor: token.colorError,
|
|
145
151
|
inputColor: token.colorErrorText,
|
|
146
|
-
affixColor: token.
|
|
152
|
+
affixColor: token.colorErrorAffix
|
|
147
153
|
}),
|
|
148
154
|
...genFilledStatusStyle(token, {
|
|
149
155
|
status: "warning",
|
|
@@ -151,7 +157,7 @@ const genFilledStyle = (token, extraStyles) => ({ "&-filled": {
|
|
|
151
157
|
hoverBg: token.colorWarningBgHover,
|
|
152
158
|
activeBorderColor: token.colorWarning,
|
|
153
159
|
inputColor: token.colorWarningText,
|
|
154
|
-
affixColor: token.
|
|
160
|
+
affixColor: token.colorWarningAffix
|
|
155
161
|
}),
|
|
156
162
|
...extraStyles
|
|
157
163
|
} });
|
|
@@ -234,7 +240,7 @@ const genUnderlinedStyle = (token, extraStyles) => ({ "&-underlined": {
|
|
|
234
240
|
hoverBorderColor: token.colorErrorBorderHover,
|
|
235
241
|
activeBorderColor: token.colorError,
|
|
236
242
|
activeShadow: token.errorActiveShadow,
|
|
237
|
-
affixColor: token.
|
|
243
|
+
affixColor: token.colorErrorAffix
|
|
238
244
|
}),
|
|
239
245
|
...genUnderlinedStatusStyle(token, {
|
|
240
246
|
status: "warning",
|
|
@@ -242,7 +248,7 @@ const genUnderlinedStyle = (token, extraStyles) => ({ "&-underlined": {
|
|
|
242
248
|
hoverBorderColor: token.colorWarningBorderHover,
|
|
243
249
|
activeBorderColor: token.colorWarning,
|
|
244
250
|
activeShadow: token.warningActiveShadow,
|
|
245
|
-
affixColor: token.
|
|
251
|
+
affixColor: token.colorWarningAffix
|
|
246
252
|
}),
|
|
247
253
|
...extraStyles
|
|
248
254
|
} });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { clsx } from "../../../clsx/dist/clsx.js";
|
|
3
3
|
import { useComponentConfig } from "../config-provider/context.js";
|
|
4
|
+
import { isPlainObject } from "../_util/is.js";
|
|
5
|
+
import { useMergeSemantic } from "../_util/hooks/useMergeSemantic/index.js";
|
|
4
6
|
import "../_util/warning.js";
|
|
5
|
-
import { useMergeSemantic } from "../_util/hooks/useMergeSemantic.js";
|
|
6
|
-
import "../_util/hooks/index.js";
|
|
7
7
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
8
8
|
import DisabledContext from "../config-provider/DisabledContext.js";
|
|
9
9
|
import ConfigProvider from "../config-provider/index.js";
|
|
@@ -41,7 +41,7 @@ const InternalInputNumber = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
|
|
|
41
41
|
let upIcon = mode === "spinner" ? /*#__PURE__*/ React$1.createElement(RefIcon$1, null) : /*#__PURE__*/ React$1.createElement(RefIcon$3, null);
|
|
42
42
|
let downIcon = mode === "spinner" ? /*#__PURE__*/ React$1.createElement(RefIcon$2, null) : /*#__PURE__*/ React$1.createElement(RefIcon, null);
|
|
43
43
|
const controlsTemp = typeof mergedControls === "boolean" ? mergedControls : void 0;
|
|
44
|
-
if (
|
|
44
|
+
if (isPlainObject(mergedControls)) {
|
|
45
45
|
upIcon = mergedControls.upIcon || upIcon;
|
|
46
46
|
downIcon = mergedControls.downIcon || downIcon;
|
|
47
47
|
}
|
|
@@ -11,7 +11,7 @@ import { genBasicInputStyle, genPlaceholderStyle } from "../../input/style/index
|
|
|
11
11
|
import { prepareComponentToken } from "./token.js";
|
|
12
12
|
//#region node_modules/antd/es/input-number/style/index.js
|
|
13
13
|
const genInputNumberStyles = (token) => {
|
|
14
|
-
const { componentCls, lineWidth, lineType, borderRadius, inputFontSizeSM, inputFontSizeLG, colorError, paddingInlineSM, paddingBlockSM, paddingBlockLG, paddingInlineLG, colorIcon, motionDurationMid, handleHoverColor, handleOpacity, paddingInline, paddingBlock, handleBg, handleActiveBg, inputAffixPadding, borderRadiusSM, controlWidth, handleBorderColor, filledHandleBg, lineHeightLG, antCls } = token;
|
|
14
|
+
const { componentCls, lineWidth, lineType, borderRadius, inputFontSizeSM, inputFontSizeLG, colorError, paddingInlineSM, paddingBlockSM, paddingBlockLG, paddingInlineLG, colorIcon, colorTextDisabled, motionDurationMid, handleHoverColor, handleOpacity, paddingInline, paddingBlock, handleBg, handleActiveBg, inputAffixPadding, borderRadiusSM, controlWidth, handleBorderColor, filledHandleBg, lineHeightLG, antCls } = token;
|
|
15
15
|
const borderStyle = `${unit(lineWidth)} ${lineType} ${handleBorderColor}`;
|
|
16
16
|
const [varName, varRef] = genCssVar(antCls, "input-number");
|
|
17
17
|
return [
|
|
@@ -65,7 +65,7 @@ const genInputNumberStyles = (token) => {
|
|
|
65
65
|
textAlign: "start",
|
|
66
66
|
backgroundColor: "transparent",
|
|
67
67
|
border: 0,
|
|
68
|
-
borderRadius,
|
|
68
|
+
borderRadius: 0,
|
|
69
69
|
outline: 0,
|
|
70
70
|
transition: `all ${motionDurationMid} linear`,
|
|
71
71
|
appearance: "textfield",
|
|
@@ -87,10 +87,6 @@ const genInputNumberStyles = (token) => {
|
|
|
87
87
|
}
|
|
88
88
|
} },
|
|
89
89
|
{ [componentCls]: {
|
|
90
|
-
[`
|
|
91
|
-
${componentCls}-action-up-disabled,
|
|
92
|
-
${componentCls}-action-down-disabled
|
|
93
|
-
`]: { cursor: "not-allowed" },
|
|
94
90
|
[`${componentCls}-action`]: {
|
|
95
91
|
...resetIcon(),
|
|
96
92
|
userSelect: "none",
|
|
@@ -100,8 +96,12 @@ const genInputNumberStyles = (token) => {
|
|
|
100
96
|
textAlign: "center",
|
|
101
97
|
cursor: "pointer",
|
|
102
98
|
transition: `all ${motionDurationMid} linear`,
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
[`&:active:not(${componentCls}-action-up-disabled):not(${componentCls}-action-down-disabled)`]: { background: handleActiveBg },
|
|
100
|
+
[`&:hover:not(${componentCls}-action-up-disabled):not(${componentCls}-action-down-disabled)`]: { color: handleHoverColor },
|
|
101
|
+
[`&${componentCls}-action-up-disabled, &${componentCls}-action-down-disabled`]: {
|
|
102
|
+
cursor: "not-allowed",
|
|
103
|
+
color: colorTextDisabled
|
|
104
|
+
}
|
|
105
105
|
},
|
|
106
106
|
"&-mode-input": {
|
|
107
107
|
overflow: "hidden",
|
|
@@ -136,7 +136,7 @@ const genInputNumberStyles = (token) => {
|
|
|
136
136
|
color: colorIcon,
|
|
137
137
|
height: "50%",
|
|
138
138
|
borderInlineStart: borderStyle,
|
|
139
|
-
|
|
139
|
+
[`&:hover:not(${componentCls}-action-up-disabled):not(${componentCls}-action-down-disabled)`]: { height: `60%` }
|
|
140
140
|
},
|
|
141
141
|
[`&${componentCls}-disabled, &${componentCls}-readonly`]: { [`${componentCls}-actions`]: { display: "none" } }
|
|
142
142
|
},
|
|
@@ -3,6 +3,7 @@ import omit from "../../../@rc-component/util/es/omit.js";
|
|
|
3
3
|
import "../../../@rc-component/util/es/index.js";
|
|
4
4
|
import { clsx } from "../../../clsx/dist/clsx.js";
|
|
5
5
|
import { ConfigContext } from "../config-provider/context.js";
|
|
6
|
+
import { isFunction } from "../_util/is.js";
|
|
6
7
|
import "../config-provider/index.js";
|
|
7
8
|
import RefIcon from "../../../@ant-design/icons/es/icons/RightOutlined.js";
|
|
8
9
|
import RefIcon$1 from "../../../@ant-design/icons/es/icons/LeftOutlined.js";
|
|
@@ -58,11 +59,11 @@ const Sider = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
|
|
|
58
59
|
let mql;
|
|
59
60
|
if (typeof window?.matchMedia !== "undefined" && breakpoint && breakpoint in dimensionMaxMap) {
|
|
60
61
|
mql = window.matchMedia(`screen and (max-width: ${dimensionMaxMap[breakpoint]})`);
|
|
61
|
-
if (
|
|
62
|
+
if (isFunction(mql?.addEventListener)) mql.addEventListener("change", responsiveHandler);
|
|
62
63
|
responsiveHandler(mql);
|
|
63
64
|
}
|
|
64
65
|
return () => {
|
|
65
|
-
if (
|
|
66
|
+
if (isFunction(mql?.removeEventListener)) mql.removeEventListener("change", responsiveHandler);
|
|
66
67
|
};
|
|
67
68
|
}, [breakpoint]);
|
|
68
69
|
useEffect(() => {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import mergeProps from "../../../@rc-component/util/es/mergeProps.js";
|
|
3
|
+
import "../../../@rc-component/util/es/index.js";
|
|
2
4
|
import { clsx } from "../../../clsx/dist/clsx.js";
|
|
3
5
|
import _toConsumableArray from "../../../@babel/runtime/helpers/esm/toConsumableArray.js";
|
|
4
6
|
import { ConfigContext, useComponentConfig } from "../config-provider/context.js";
|
|
7
|
+
import { isFunction, isPlainObject } from "../_util/is.js";
|
|
5
8
|
import "../_util/warning.js";
|
|
6
|
-
import mergeProps from "../_util/extendsObject.js";
|
|
7
9
|
import "../config-provider/index.js";
|
|
8
10
|
import useSize from "../config-provider/hooks/useSize.js";
|
|
9
11
|
import DefaultRenderEmpty from "../config-provider/defaultRenderEmpty.js";
|
|
@@ -20,7 +22,7 @@ import * as React$1 from "../../../react/index.js";
|
|
|
20
22
|
//#region node_modules/antd/es/list/index.js
|
|
21
23
|
const InternalList = (props, ref) => {
|
|
22
24
|
const { pagination = false, prefixCls: customizePrefixCls, bordered = false, split = true, className, rootClassName, style, children, itemLayout, loadMore, grid, dataSource = [], size: customizeSize, header, footer, loading = false, rowKey, renderItem, locale, ...rest } = props;
|
|
23
|
-
const paginationObj = pagination
|
|
25
|
+
const paginationObj = isPlainObject(pagination) ? pagination : {};
|
|
24
26
|
const [paginationCurrent, setPaginationCurrent] = React$1.useState(paginationObj.defaultCurrent || 1);
|
|
25
27
|
const [paginationSize, setPaginationSize] = React$1.useState(paginationObj.defaultPageSize || 10);
|
|
26
28
|
const { getPrefixCls, direction, className: contextClassName, style: contextStyle } = useComponentConfig("list");
|
|
@@ -40,7 +42,7 @@ const InternalList = (props, ref) => {
|
|
|
40
42
|
const renderInternalItem = (item, index) => {
|
|
41
43
|
if (!renderItem) return null;
|
|
42
44
|
let key;
|
|
43
|
-
if (
|
|
45
|
+
if (isFunction(rowKey)) key = rowKey(item);
|
|
44
46
|
else if (rowKey) key = item[rowKey];
|
|
45
47
|
else key = item.key;
|
|
46
48
|
if (!key) key = `list-item-${index}`;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isFunction } from "../_util/is.js";
|
|
1
2
|
import localeValues from "./en_US.js";
|
|
2
3
|
import LocaleContext from "./context.js";
|
|
3
4
|
import * as React$1 from "../../../react/index.js";
|
|
@@ -8,7 +9,7 @@ const useLocale = (componentName, defaultLocale) => {
|
|
|
8
9
|
const locale = defaultLocale || localeValues[componentName];
|
|
9
10
|
const localeFromContext = fullLocale?.[componentName] ?? {};
|
|
10
11
|
return {
|
|
11
|
-
...
|
|
12
|
+
...isFunction(locale) ? locale() : locale,
|
|
12
13
|
...localeFromContext || {}
|
|
13
14
|
};
|
|
14
15
|
}, [
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
import { composeRef } from "../../../@rc-component/util/es/ref.js";
|
|
3
3
|
import useLayoutEffect$1 from "../../../@rc-component/util/es/hooks/useLayoutEffect.js";
|
|
4
4
|
import isEqual from "../../../@rc-component/util/es/isEqual.js";
|
|
5
|
+
import "../../../@rc-component/util/es/index.js";
|
|
5
6
|
import RefResizeObserver from "../../../@rc-component/resize-observer/es/index.js";
|
|
6
7
|
import { clsx } from "../../../clsx/dist/clsx.js";
|
|
7
8
|
import { useComponentConfig } from "../config-provider/context.js";
|
|
8
9
|
import { genCssVar } from "../theme/util/genStyleUtils.js";
|
|
9
10
|
import CSSMotionList_default from "../../../@rc-component/motion/es/CSSMotionList.js";
|
|
10
11
|
import "../../../@rc-component/motion/es/index.js";
|
|
11
|
-
import {
|
|
12
|
-
import "../_util/hooks/index.js";
|
|
12
|
+
import { isNumber } from "../_util/is.js";
|
|
13
|
+
import { useMergeSemantic } from "../_util/hooks/useMergeSemantic/index.js";
|
|
13
14
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
14
15
|
import { responsiveArray } from "../_util/responsiveObserver.js";
|
|
15
16
|
import useBreakpoint from "../grid/hooks/useBreakpoint.js";
|
|
@@ -40,7 +41,7 @@ const Masonry = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
|
|
|
40
41
|
const [horizontalGutter = 0, verticalGutter = horizontalGutter] = useGutter(gutter, screens);
|
|
41
42
|
const columnCount = React$1.useMemo(() => {
|
|
42
43
|
if (!columns) return 3;
|
|
43
|
-
if (
|
|
44
|
+
if (isNumber(columns)) return columns;
|
|
44
45
|
const matchingBreakpoint = responsiveArray.find((breakpoint) => screens[breakpoint] && columns[breakpoint] !== void 0);
|
|
45
46
|
if (matchingBreakpoint) return columns[matchingBreakpoint];
|
|
46
47
|
return columns.xs ?? 1;
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { composeRef } from "../../../@rc-component/util/es/ref.js";
|
|
3
|
+
import "../../../@rc-component/util/es/index.js";
|
|
3
4
|
import { clsx } from "../../../clsx/dist/clsx.js";
|
|
4
5
|
import { ConfigContext, useComponentConfig } from "../config-provider/context.js";
|
|
6
|
+
import { useMergeSemantic } from "../_util/hooks/useMergeSemantic/index.js";
|
|
5
7
|
import "../_util/warning.js";
|
|
6
|
-
import { useMergeSemantic } from "../_util/hooks/useMergeSemantic.js";
|
|
7
|
-
import "../_util/hooks/index.js";
|
|
8
8
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
9
9
|
import DisabledContext from "../config-provider/DisabledContext.js";
|
|
10
10
|
import "../config-provider/index.js";
|
|
11
|
+
import { useAllowClear } from "../_util/hooks/useAllowClear.js";
|
|
12
|
+
import { useZIndex } from "../_util/hooks/useZIndex.js";
|
|
13
|
+
import "../_util/hooks/index.js";
|
|
11
14
|
import useSize from "../config-provider/hooks/useSize.js";
|
|
12
15
|
import { FormItemInputContext } from "../form/context.js";
|
|
13
16
|
import genPurePanel from "../_util/PurePanel.js";
|
|
14
17
|
import { getMergedStatus, getStatusClassNames } from "../_util/statusUtils.js";
|
|
15
18
|
import DefaultRenderEmpty from "../config-provider/defaultRenderEmpty.js";
|
|
16
19
|
import useVariant from "../form/hooks/useVariants.js";
|
|
17
|
-
import getAllowClear from "../_util/getAllowClear.js";
|
|
18
20
|
import Spin from "../spin/index.js";
|
|
19
21
|
import es_default from "../../../@rc-component/mentions/es/index.js";
|
|
20
22
|
import toList from "../_util/toList.js";
|
|
@@ -26,12 +28,12 @@ function loadingFilterOption() {
|
|
|
26
28
|
return true;
|
|
27
29
|
}
|
|
28
30
|
const Mentions = /* @__PURE__ */ React$1.forwardRef((props, ref) => {
|
|
29
|
-
const { prefixCls: customizePrefixCls, className, rootClassName, disabled: customDisabled, loading, filterOption, children, notFoundContent, options, status: customStatus, allowClear
|
|
31
|
+
const { prefixCls: customizePrefixCls, className, rootClassName, disabled: customDisabled, loading, filterOption, children, notFoundContent, options, status: customStatus, allowClear, popupClassName, style, variant: customVariant, classNames, styles, size: customSize, ...restProps } = props;
|
|
30
32
|
const [focused, setFocused] = React$1.useState(false);
|
|
31
33
|
const innerRef = React$1.useRef(null);
|
|
32
34
|
const mergedRef = composeRef(ref, innerRef);
|
|
33
35
|
const mergedSize = useSize((ctx) => customSize ?? ctx);
|
|
34
|
-
const { getPrefixCls, direction, className: contextClassName, style: contextStyle, classNames: contextClassNames, styles: contextStyles } = useComponentConfig("mentions");
|
|
36
|
+
const { getPrefixCls, direction, allowClear: contextAllowClear, className: contextClassName, style: contextStyle, classNames: contextClassNames, styles: contextStyles } = useComponentConfig("mentions");
|
|
35
37
|
const { renderEmpty } = React$1.useContext(ConfigContext);
|
|
36
38
|
const { status: contextStatus, hasFeedback, feedbackIcon } = React$1.useContext(FormItemInputContext);
|
|
37
39
|
const mergedStatus = getMergedStatus(contextStatus, customStatus);
|
|
@@ -70,10 +72,16 @@ const Mentions = /* @__PURE__ */ React$1.forwardRef((props, ref) => {
|
|
|
70
72
|
label: /*#__PURE__*/ React$1.createElement(Spin, { size: "small" })
|
|
71
73
|
}] : options;
|
|
72
74
|
const mentionsfilterOption = loading ? loadingFilterOption : filterOption;
|
|
73
|
-
const mergedAllowClear =
|
|
75
|
+
const mergedAllowClear = useAllowClear({
|
|
76
|
+
allowClear,
|
|
77
|
+
contextAllowClear,
|
|
78
|
+
defaultAllowClear: false,
|
|
79
|
+
componentName: "Mentions"
|
|
80
|
+
});
|
|
74
81
|
const rootCls = useCSSVarCls(prefixCls);
|
|
75
82
|
const [hashId, cssVarCls] = style_default(prefixCls, rootCls);
|
|
76
83
|
const [variant, enableVariantCls] = useVariant("mentions", customVariant);
|
|
84
|
+
const [zIndex] = useZIndex("SelectLike", mergedStyles.popup?.zIndex);
|
|
77
85
|
const suffixNode = hasFeedback && /*#__PURE__*/ React$1.createElement(React$1.Fragment, null, feedbackIcon);
|
|
78
86
|
const mergedClassName = clsx(contextClassName, className, rootClassName, cssVarCls, rootCls, mergedClassNames.root, {
|
|
79
87
|
[`${prefixCls}-sm`]: mergedSize === "small",
|
|
@@ -101,7 +109,10 @@ const Mentions = /* @__PURE__ */ React$1.forwardRef((props, ref) => {
|
|
|
101
109
|
suffix: suffixNode,
|
|
102
110
|
styles: {
|
|
103
111
|
textarea: mergedStyles.textarea,
|
|
104
|
-
popup:
|
|
112
|
+
popup: {
|
|
113
|
+
...mergedStyles.popup,
|
|
114
|
+
zIndex
|
|
115
|
+
},
|
|
105
116
|
suffix: mergedStyles.suffix
|
|
106
117
|
},
|
|
107
118
|
classNames: {
|
|
@@ -123,7 +134,7 @@ Mentions._InternalPanelDoNotUseOrYouWillBeFired = genPurePanel(Mentions, void 0,
|
|
|
123
134
|
Mentions.getMentions = (value = "", config = {}) => {
|
|
124
135
|
const { prefix = "@", split = " " } = config;
|
|
125
136
|
const prefixList = toList(prefix);
|
|
126
|
-
return value.split(split).
|
|
137
|
+
return value.split(split).reduce((list, str = "") => {
|
|
127
138
|
let hitPrefix = null;
|
|
128
139
|
prefixList.some((prefixStr) => {
|
|
129
140
|
if (str.slice(0, prefixStr.length) === prefixStr) {
|
|
@@ -132,12 +143,15 @@ Mentions.getMentions = (value = "", config = {}) => {
|
|
|
132
143
|
}
|
|
133
144
|
return false;
|
|
134
145
|
});
|
|
135
|
-
if (hitPrefix !== null)
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
146
|
+
if (hitPrefix !== null) {
|
|
147
|
+
const entity = {
|
|
148
|
+
prefix: hitPrefix,
|
|
149
|
+
value: str.slice(hitPrefix.length)
|
|
150
|
+
};
|
|
151
|
+
if (entity.value) list.push(entity);
|
|
152
|
+
}
|
|
153
|
+
return list;
|
|
154
|
+
}, []);
|
|
141
155
|
};
|
|
142
156
|
//#endregion
|
|
143
157
|
export { Option, Mentions as default };
|
|
@@ -3,6 +3,7 @@ import toArray from "../../../@rc-component/util/es/Children/toArray.js";
|
|
|
3
3
|
import omit from "../../../@rc-component/util/es/omit.js";
|
|
4
4
|
import "../../../@rc-component/util/es/index.js";
|
|
5
5
|
import { clsx } from "../../../clsx/dist/clsx.js";
|
|
6
|
+
import { isFunction } from "../_util/is.js";
|
|
6
7
|
import { cloneElement as cloneElement$1 } from "../_util/reactNode.js";
|
|
7
8
|
import Tooltip from "../tooltip/index.js";
|
|
8
9
|
import MenuItem_default from "../../../@rc-component/menu/es/MenuItem.js";
|
|
@@ -69,7 +70,7 @@ const MenuItem = (props) => {
|
|
|
69
70
|
...classNames,
|
|
70
71
|
root: clsx(baseTooltipClassName, classNames?.root)
|
|
71
72
|
});
|
|
72
|
-
const mergedTooltipClassNames = tooltipConfig
|
|
73
|
+
const mergedTooltipClassNames = isFunction(tooltipConfig?.classNames) ? (info) => {
|
|
73
74
|
const resolvedClassNames = tooltipConfig.classNames(info);
|
|
74
75
|
return mergeTooltipRootClassName(resolvedClassNames);
|
|
75
76
|
} : mergeTooltipRootClassName(tooltipConfig?.classNames);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { getNodeRef, supportNodeRef, useComposeRef } from "../../../@rc-component/util/es/ref.js";
|
|
3
|
+
import "../../../@rc-component/util/es/index.js";
|
|
3
4
|
import ContextIsolator from "../_util/ContextIsolator.js";
|
|
4
5
|
import * as React$1 from "../../../react/index.js";
|
|
5
6
|
//#region node_modules/antd/es/menu/OverrideContext.js
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import omit from "../../../@rc-component/util/es/omit.js";
|
|
3
3
|
import "../../../@rc-component/util/es/index.js";
|
|
4
4
|
import { clsx } from "../../../clsx/dist/clsx.js";
|
|
5
|
+
import { cloneElement as cloneElement$1 } from "../_util/reactNode.js";
|
|
5
6
|
import { useZIndex } from "../_util/hooks/useZIndex.js";
|
|
6
7
|
import "../_util/hooks/index.js";
|
|
7
|
-
import { cloneElement as cloneElement$1 } from "../_util/reactNode.js";
|
|
8
8
|
import { useFullPath } from "../../../@rc-component/menu/es/context/PathContext.js";
|
|
9
9
|
import SubMenu$1 from "../../../@rc-component/menu/es/SubMenu/index.js";
|
|
10
10
|
import "../../../@rc-component/menu/es/index.js";
|
|
@@ -4,9 +4,9 @@ import omit from "../../../@rc-component/util/es/omit.js";
|
|
|
4
4
|
import "../../../@rc-component/util/es/index.js";
|
|
5
5
|
import { clsx } from "../../../clsx/dist/clsx.js";
|
|
6
6
|
import { ConfigContext, useComponentConfig } from "../config-provider/context.js";
|
|
7
|
+
import { isFunction } from "../_util/is.js";
|
|
8
|
+
import { useMergeSemantic } from "../_util/hooks/useMergeSemantic/index.js";
|
|
7
9
|
import "../_util/warning.js";
|
|
8
|
-
import { useMergeSemantic } from "../_util/hooks/useMergeSemantic.js";
|
|
9
|
-
import "../_util/hooks/index.js";
|
|
10
10
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
11
11
|
import { cloneElement as cloneElement$1 } from "../_util/reactNode.js";
|
|
12
12
|
import "../config-provider/index.js";
|
|
@@ -67,9 +67,9 @@ const InternalMenu = /*#__PURE__*/ forwardRef((props, ref) => {
|
|
|
67
67
|
const [hashId, cssVarCls] = style_default(prefixCls, rootCls, !override);
|
|
68
68
|
const menuClassName = clsx(`${prefixCls}-${theme}`, contextClassName, className);
|
|
69
69
|
const mergedExpandIcon = React$1.useMemo(() => {
|
|
70
|
-
if (
|
|
71
|
-
if (
|
|
72
|
-
if (
|
|
70
|
+
if (isFunction(expandIcon) || isEmptyIcon(expandIcon)) return expandIcon || null;
|
|
71
|
+
if (isFunction(overrideObj.expandIcon) || isEmptyIcon(overrideObj.expandIcon)) return overrideObj.expandIcon || null;
|
|
72
|
+
if (isFunction(menu?.expandIcon) || isEmptyIcon(menu?.expandIcon)) return menu?.expandIcon || null;
|
|
73
73
|
const mergedIcon = expandIcon ?? overrideObj?.expandIcon ?? menu?.expandIcon;
|
|
74
74
|
return cloneElement$1(mergedIcon, { className: clsx(`${prefixCls}-submenu-expand-icon`, /*#__PURE__*/ React$1.isValidElement(mergedIcon) ? mergedIcon.props?.className : void 0) });
|
|
75
75
|
}, [
|
|
@@ -3,7 +3,7 @@ import "../../../../@ant-design/cssinjs/es/index.js";
|
|
|
3
3
|
import { merge } from "../../../../@ant-design/cssinjs-utils/es/util/statistic.js";
|
|
4
4
|
import { FastColor } from "../../../../@ant-design/fast-color/es/FastColor.js";
|
|
5
5
|
import "../../../../@ant-design/fast-color/es/index.js";
|
|
6
|
-
import { clearFix, resetComponent, resetIcon } from "../../style/index.js";
|
|
6
|
+
import { clearFix, resetComponent, resetIcon, textEllipsis } from "../../style/index.js";
|
|
7
7
|
import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
8
8
|
import "../../theme/internal.js";
|
|
9
9
|
import genCollapseMotion from "../../style/motion/collapse.js";
|
|
@@ -99,7 +99,8 @@ const genSubMenuArrowStyle = (token) => {
|
|
|
99
99
|
} };
|
|
100
100
|
};
|
|
101
101
|
const getBaseStyle = (token) => {
|
|
102
|
-
const { antCls, componentCls, fontSize, motionDurationSlow, motionDurationMid, motionEaseInOut, paddingXS, padding, colorSplit, lineWidth, zIndexPopup, borderRadiusLG, subMenuItemBorderRadius, menuArrowSize, menuArrowOffset, lineType, groupTitleLineHeight, groupTitleFontSize } = token;
|
|
102
|
+
const { antCls, componentCls, fontSize, motionDurationSlow, motionDurationMid, motionEaseInOut, paddingXS, padding, colorSplit, lineWidth, zIndexPopup, borderRadiusLG, subMenuItemBorderRadius, menuArrowSize, menuArrowOffset, lineType, groupTitleLineHeight, groupTitleFontSize, iconSize, iconMarginInlineEnd } = token;
|
|
103
|
+
const titleContentTypographyEllipsisSelector = [`> ${antCls}-typography-ellipsis-single-line`, `> ${componentCls}-item-label > ${antCls}-typography-ellipsis-single-line`].join(",");
|
|
103
104
|
return [
|
|
104
105
|
{
|
|
105
106
|
"": { [componentCls]: {
|
|
@@ -149,17 +150,25 @@ const getBaseStyle = (token) => {
|
|
|
149
150
|
"&-with-extra": {
|
|
150
151
|
display: "inline-flex",
|
|
151
152
|
alignItems: "center",
|
|
152
|
-
width: "100%"
|
|
153
|
+
width: "100%",
|
|
154
|
+
minWidth: 0
|
|
153
155
|
},
|
|
154
|
-
[
|
|
156
|
+
[`${componentCls}-item-label`]: {
|
|
157
|
+
flex: "auto",
|
|
158
|
+
minWidth: 0,
|
|
159
|
+
...textEllipsis
|
|
160
|
+
},
|
|
161
|
+
[titleContentTypographyEllipsisSelector]: {
|
|
155
162
|
display: "inline",
|
|
156
163
|
verticalAlign: "unset"
|
|
157
164
|
},
|
|
158
165
|
[`${componentCls}-item-extra`]: {
|
|
166
|
+
flex: "none",
|
|
159
167
|
marginInlineStart: "auto",
|
|
160
168
|
paddingInlineStart: token.padding
|
|
161
169
|
}
|
|
162
170
|
},
|
|
171
|
+
[`${componentCls}-item-icon + ${componentCls}-title-content-with-extra`]: { width: `calc(100% - ${unit(token.calc(iconSize).add(iconMarginInlineEnd ?? 0).equal())})` },
|
|
163
172
|
[`${componentCls}-item a`]: { "&::before": {
|
|
164
173
|
position: "absolute",
|
|
165
174
|
inset: 0,
|
|
@@ -208,38 +217,14 @@ const getBaseStyle = (token) => {
|
|
|
208
217
|
[`${componentCls}-submenu-title::after`]: { transition: `transform ${motionDurationSlow} ${motionEaseInOut}` }
|
|
209
218
|
}
|
|
210
219
|
},
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
[`
|
|
220
|
-
&-placement-rightBottom,
|
|
221
|
-
&-placement-topLeft,
|
|
222
|
-
`]: { transformOrigin: "0 100%" },
|
|
223
|
-
[`
|
|
224
|
-
&-placement-bottomLeft,
|
|
225
|
-
&-placement-rightTop,
|
|
226
|
-
`]: { transformOrigin: "0 0" },
|
|
227
|
-
[`
|
|
228
|
-
&-placement-leftTop,
|
|
229
|
-
&-placement-leftBottom
|
|
230
|
-
`]: { paddingInlineEnd: token.paddingXS },
|
|
231
|
-
[`
|
|
232
|
-
&-placement-rightTop,
|
|
233
|
-
&-placement-rightBottom
|
|
234
|
-
`]: { paddingInlineStart: token.paddingXS },
|
|
235
|
-
[`
|
|
236
|
-
&-placement-topRight,
|
|
237
|
-
&-placement-topLeft
|
|
238
|
-
`]: { paddingBottom: token.paddingXS },
|
|
239
|
-
[`
|
|
240
|
-
&-placement-bottomRight,
|
|
241
|
-
&-placement-bottomLeft
|
|
242
|
-
`]: { paddingTop: token.paddingXS }
|
|
220
|
+
"&-placement-leftTop, &-placement-bottomRight": { transformOrigin: "100% 0" },
|
|
221
|
+
"&-placement-leftBottom, &-placement-topRight": { transformOrigin: "100% 100%" },
|
|
222
|
+
"&-placement-rightBottom, &-placement-topLeft": { transformOrigin: "0 100%" },
|
|
223
|
+
"&-placement-bottomLeft, &-placement-rightTop": { transformOrigin: "0 0" },
|
|
224
|
+
"&-placement-leftTop, &-placement-leftBottom": { paddingInlineEnd: token.paddingXS },
|
|
225
|
+
"&-placement-rightTop, &-placement-rightBottom": { paddingInlineStart: token.paddingXS },
|
|
226
|
+
"&-placement-topRight, &-placement-topLeft": { paddingBottom: token.paddingXS },
|
|
227
|
+
"&-placement-bottomRight, &-placement-bottomLeft": { paddingTop: token.paddingXS }
|
|
243
228
|
},
|
|
244
229
|
...genSubMenuArrowStyle(token),
|
|
245
230
|
[`&-inline-collapsed ${componentCls}-submenu-arrow,
|
|
@@ -30,7 +30,7 @@ const getVerticalInlineStyle = (token) => {
|
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
const getVerticalStyle = (token) => {
|
|
33
|
-
const { componentCls, iconCls, itemHeight, colorTextLightSolid, dropdownWidth, controlHeightLG, motionEaseOut, paddingXL, itemMarginInline, fontSizeLG, motionDurationFast, motionDurationSlow, paddingXS, boxShadowSecondary, collapsedWidth, collapsedIconSize } = token;
|
|
33
|
+
const { componentCls, iconCls, itemHeight, colorTextLightSolid, dropdownWidth, controlHeightLG, motionEaseOut, padding, paddingXL, itemMarginInline, fontSizeLG, motionDurationFast, motionDurationSlow, paddingXS, boxShadowSecondary, collapsedWidth, collapsedIconSize } = token;
|
|
34
34
|
const inlineItemStyle = {
|
|
35
35
|
height: itemHeight,
|
|
36
36
|
lineHeight: unit(itemHeight),
|
|
@@ -129,6 +129,7 @@ const getVerticalStyle = (token) => {
|
|
|
129
129
|
"&-tooltip": {
|
|
130
130
|
pointerEvents: "none",
|
|
131
131
|
[`${componentCls}-item-icon, ${iconCls}`]: { display: "none" },
|
|
132
|
+
[`${componentCls}-item-extra`]: { paddingInlineStart: padding },
|
|
132
133
|
"a, a:hover": { color: colorTextLightSolid }
|
|
133
134
|
},
|
|
134
135
|
[`${componentCls}-item-group-title`]: {
|