antdv-next 1.2.2 → 1.3.0
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/dist/_util/ActionButton.d.ts +2 -2
- package/dist/_util/ContextIsolator.d.ts +3 -3
- package/dist/_util/PurePanel.d.ts +3 -3
- package/dist/_util/hooks/useClosable.d.ts +7 -7
- package/dist/_util/hooks/useMergeSemantic.d.ts +4 -4
- package/dist/_util/hooks/useMergedMask.d.ts +3 -3
- package/dist/_util/instance.d.ts +2 -2
- package/dist/_util/responsiveObserver.d.ts +2 -2
- package/dist/_util/statusUtils.d.ts +1 -1
- package/dist/_util/vueNode.d.ts +4 -9
- package/dist/_util/wave/WaveEffect.d.ts +5 -5
- package/dist/_util/wave/index.d.ts +2 -2
- package/dist/_util/wave/style.d.ts +2 -2
- package/dist/_util/wave/util.d.ts +1 -1
- package/dist/_util/wave/util.js +1 -1
- package/dist/_util/zindexContext.d.ts +2 -2
- package/dist/affix/index.d.ts +3 -3
- package/dist/affix/style/index.d.ts +2 -2
- package/dist/alert/Alert.d.ts +17 -10
- package/dist/alert/Alert.js +9 -3
- package/dist/alert/style/index.d.ts +3 -3
- package/dist/anchor/Anchor.d.ts +3 -3
- package/dist/anchor/Anchor.js +2 -2
- package/dist/anchor/AnchorLink.d.ts +9 -4
- package/dist/anchor/AnchorLink.js +5 -1
- package/dist/anchor/style/index.d.ts +2 -2
- package/dist/antd-with-locales.esm.js +14614 -14290
- package/dist/antd-with-locales.js +73 -80
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +10754 -10431
- package/dist/antd.js +70 -77
- package/dist/app/App.d.ts +2 -2
- package/dist/app/App.js +6 -1
- package/dist/app/context.d.ts +2 -2
- package/dist/app/style/index.d.ts +2 -2
- package/dist/auto-complete/index.d.ts +6 -6
- package/dist/auto-complete/index.js +1 -1
- package/dist/avatar/Avatar.d.ts +5 -5
- package/dist/avatar/AvatarGroup.d.ts +2 -2
- package/dist/avatar/style/index.d.ts +3 -3
- package/dist/badge/Ribbon.d.ts +4 -4
- package/dist/badge/ScrollNumber.d.ts +2 -2
- package/dist/badge/SingleNumber.d.ts +2 -2
- package/dist/badge/index.d.ts +6 -6
- package/dist/badge/style/index.d.ts +7 -2
- package/dist/badge/style/index.js +4 -3
- package/dist/badge/style/ribbon.d.ts +2 -2
- package/dist/border-beam/BorderBeam.d.ts +19 -0
- package/dist/border-beam/BorderBeam.js +82 -0
- package/dist/border-beam/hooks/useBorderSize.d.ts +12 -0
- package/dist/border-beam/hooks/useBorderSize.js +42 -0
- package/dist/border-beam/index.d.ts +3 -0
- package/dist/border-beam/index.js +7 -0
- package/dist/border-beam/style/index.d.ts +7 -0
- package/dist/border-beam/style/index.js +59 -0
- package/dist/border-beam/util.d.ts +11 -0
- package/dist/border-beam/util.js +35 -0
- package/dist/breadcrumb/Breadcrumb.d.ts +7 -7
- package/dist/breadcrumb/BreadcrumbItem.d.ts +7 -7
- package/dist/breadcrumb/BreadcrumbSeparator.d.ts +2 -2
- package/dist/breadcrumb/style/index.d.ts +2 -2
- package/dist/breadcrumb/useItemRender.d.ts +2 -2
- package/dist/button/Button.d.ts +4 -4
- package/dist/button/Button.js +1 -0
- package/dist/button/DefaultLoadingIcon.d.ts +2 -2
- package/dist/button/IconWrapper.d.ts +2 -2
- package/dist/button/buttonHelper.d.ts +1 -1
- package/dist/button/style/compact.d.ts +4 -4
- package/dist/button/style/index.d.ts +2 -2
- package/dist/button/style/index.js +5 -0
- package/dist/calendar/Header.d.ts +2 -2
- package/dist/calendar/generateCalendar.d.ts +12 -10
- package/dist/calendar/generateCalendar.js +8 -2
- package/dist/calendar/index.d.ts +2 -2
- package/dist/calendar/style/index.d.ts +2 -2
- package/dist/card/Card.d.ts +11 -11
- package/dist/card/CardGrid.d.ts +2 -2
- package/dist/card/CardMeta.d.ts +6 -6
- package/dist/card/style/index.d.ts +2 -2
- package/dist/carousel/index.d.ts +5 -5
- package/dist/carousel/style/index.d.ts +2 -2
- package/dist/cascader/Panel.d.ts +2 -2
- package/dist/cascader/hooks/useBase.d.ts +5 -5
- package/dist/cascader/hooks/useCheckable.d.ts +2 -2
- package/dist/cascader/index.d.ts +4 -4
- package/dist/cascader/index.js +11 -2
- package/dist/cascader/style/index.d.ts +2 -2
- package/dist/cascader/style/panel.d.ts +2 -2
- package/dist/checkbox/Checkbox.d.ts +2 -2
- package/dist/checkbox/Group.d.ts +4 -4
- package/dist/checkbox/style/index.d.ts +4 -4
- package/dist/collapse/Collapse.d.ts +5 -5
- package/dist/collapse/CollapsePanel.d.ts +5 -5
- package/dist/collapse/style/index.d.ts +2 -2
- package/dist/color-picker/ColorPicker.d.ts +2 -2
- package/dist/color-picker/ColorPickerPanel.d.ts +2 -2
- package/dist/color-picker/components/ColorAlphaInput.d.ts +2 -2
- package/dist/color-picker/components/ColorClear.d.ts +2 -2
- package/dist/color-picker/components/ColorHexInput.d.ts +2 -2
- package/dist/color-picker/components/ColorHsbInput.d.ts +2 -2
- package/dist/color-picker/components/ColorInput.d.ts +2 -2
- package/dist/color-picker/components/ColorPresets.d.ts +2 -2
- package/dist/color-picker/components/ColorRgbInput.d.ts +2 -2
- package/dist/color-picker/components/ColorSlider.d.ts +3 -3
- package/dist/color-picker/components/ColorSteppers.d.ts +2 -2
- package/dist/color-picker/components/ColorTrigger.d.ts +2 -2
- package/dist/color-picker/components/PanelPicker/GradientColorBar.d.ts +2 -2
- package/dist/color-picker/components/PanelPicker/index.d.ts +2 -2
- package/dist/color-picker/components/PanelPresets.d.ts +2 -2
- package/dist/color-picker/context.d.ts +3 -3
- package/dist/color-picker/hooks/useModeColor.d.ts +4 -4
- package/dist/color-picker/interface.d.ts +2 -2
- package/dist/color-picker/style/index.d.ts +2 -2
- package/dist/components.d.ts +4 -1
- package/dist/components.js +3 -1
- package/dist/config-provider/DisabledContext.d.ts +2 -2
- package/dist/config-provider/SizeContext.d.ts +2 -2
- package/dist/config-provider/context.d.ts +67 -34
- package/dist/config-provider/defaultRenderEmpty.d.ts +2 -2
- package/dist/config-provider/hooks/useCSSVarCls.d.ts +2 -2
- package/dist/config-provider/hooks/useConfig.d.ts +3 -3
- package/dist/config-provider/hooks/useSize.d.ts +2 -2
- package/dist/config-provider/hooks/useTheme.d.ts +2 -2
- package/dist/config-provider/index.d.ts +4 -4
- package/dist/config-provider/index.js +2 -0
- package/dist/date-picker/PickerButton.d.ts +2 -2
- package/dist/date-picker/generatePicker/SuffixIcon.d.ts +5 -5
- package/dist/date-picker/generatePicker/SuffixIcon.js +1 -1
- package/dist/date-picker/generatePicker/generateRangePicker.d.ts +4 -4
- package/dist/date-picker/generatePicker/generateSinglePicker.d.ts +9 -9
- package/dist/date-picker/generatePicker/generateSinglePicker.js +4 -0
- package/dist/date-picker/generatePicker/index.d.ts +8 -8
- package/dist/date-picker/generatePicker/useComponents.d.ts +11 -11
- package/dist/date-picker/index.d.ts +13 -13
- package/dist/date-picker/style/index.d.ts +2 -2
- package/dist/date-picker/style/index.js +13 -3
- package/dist/date-picker/util.d.ts +3 -3
- package/dist/descriptions/Cell.d.ts +5 -5
- package/dist/descriptions/Item.d.ts +5 -5
- package/dist/descriptions/Row.d.ts +2 -2
- package/dist/descriptions/Row.js +3 -3
- package/dist/descriptions/hooks/useItems.d.ts +13 -13
- package/dist/descriptions/hooks/useRow.d.ts +2 -2
- package/dist/descriptions/index.d.ts +5 -5
- package/dist/descriptions/style/index.d.ts +2 -2
- package/dist/divider/index.d.ts +2 -2
- package/dist/divider/style/index.d.ts +2 -2
- package/dist/drawer/DrawerPanel.d.ts +7 -7
- package/dist/drawer/index.d.ts +3 -3
- package/dist/drawer/index.js +5 -2
- package/dist/drawer/style/index.d.ts +2 -2
- package/dist/drawer/useFocusable.d.ts +2 -2
- package/dist/dropdown/dropdown.d.ts +2 -2
- package/dist/dropdown/style/index.d.ts +2 -2
- package/dist/dropdown/style/index.js +1 -1
- package/dist/empty/empty.d.ts +2 -2
- package/dist/empty/index.d.ts +8 -8
- package/dist/empty/simple.d.ts +2 -2
- package/dist/empty/style/index.d.ts +2 -2
- package/dist/flex/index.d.ts +2 -2
- package/dist/flex/style/index.d.ts +2 -2
- package/dist/float-button/BackTop.d.ts +2 -2
- package/dist/float-button/BackTop.js +5 -0
- package/dist/float-button/FloatButton.d.ts +8 -7
- package/dist/float-button/FloatButton.js +6 -0
- package/dist/float-button/FloatButtonGroup.d.ts +4 -4
- package/dist/float-button/FloatButtonGroup.js +5 -0
- package/dist/float-button/PurePanel.d.ts +2 -2
- package/dist/float-button/PurePanel.js +10 -0
- package/dist/float-button/context.d.ts +3 -3
- package/dist/float-button/style/index.d.ts +2 -2
- package/dist/form/ErrorList.d.ts +8 -4
- package/dist/form/ErrorList.js +13 -2
- package/dist/form/Form.d.ts +9 -2
- package/dist/form/Form.js +10 -4
- package/dist/form/FormItem/ItemHolder.d.ts +3 -3
- package/dist/form/FormItem/StatusProvider.d.ts +2 -2
- package/dist/form/FormItem/index.d.ts +2 -2
- package/dist/form/FormItemInput.d.ts +6 -6
- package/dist/form/FormItemInput.js +6 -2
- package/dist/form/FormItemLabel.d.ts +7 -7
- package/dist/form/context.d.ts +7 -7
- package/dist/form/hooks/useVariant.d.ts +2 -2
- package/dist/form/style/fallbackCmp.d.ts +4 -4
- package/dist/form/style/index.d.ts +2 -2
- package/dist/grid/col.d.ts +2 -2
- package/dist/grid/index.d.ts +2 -2
- package/dist/grid/row.d.ts +2 -2
- package/dist/grid/style/index.d.ts +3 -3
- package/dist/image/PreviewGroup.d.ts +12 -12
- package/dist/image/hooks/useMergedPreviewConfig.d.ts +6 -6
- package/dist/image/hooks/usePreviewConfig.d.ts +10 -10
- package/dist/image/index.d.ts +12 -5
- package/dist/image/style/index.d.ts +2 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -1
- package/dist/input/Group.d.ts +3 -3
- package/dist/input/Input.d.ts +10 -7
- package/dist/input/Input.js +8 -2
- package/dist/input/OTP/OTPInput.d.ts +3 -3
- package/dist/input/OTP/OTPInput.js +4 -0
- package/dist/input/OTP/index.d.ts +4 -4
- package/dist/input/Password.d.ts +4 -4
- package/dist/input/Password.js +4 -0
- package/dist/input/Search.d.ts +14 -4
- package/dist/input/Search.js +19 -2
- package/dist/input/TextArea.d.ts +2 -2
- package/dist/input/index.d.ts +6 -6
- package/dist/input/style/index.d.ts +3 -3
- package/dist/input/style/otp.d.ts +2 -2
- package/dist/input/style/search.d.ts +2 -2
- package/dist/input/style/textarea.d.ts +2 -2
- package/dist/input/style/variants.js +14 -8
- package/dist/input-number/index.d.ts +9 -9
- package/dist/input-number/style/index.d.ts +2 -2
- package/dist/layout/Sider.d.ts +2 -2
- package/dist/layout/index.d.ts +5 -5
- package/dist/layout/layout.d.ts +5 -5
- package/dist/layout/style/index.d.ts +2 -2
- package/dist/layout/style/sider.d.ts +2 -2
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/useLocale.d.ts +2 -2
- package/dist/masonry/Masonry.d.ts +3 -3
- package/dist/masonry/MasonryItem.d.ts +4 -4
- package/dist/masonry/hooks/usePositions.d.ts +2 -2
- package/dist/masonry/style/index.d.ts +2 -2
- package/dist/mentions/index.d.ts +6 -6
- package/dist/mentions/index.js +7 -1
- package/dist/mentions/style/index.d.ts +2 -2
- package/dist/menu/MenuContext.d.ts +3 -3
- package/dist/menu/MenuDivider.d.ts +2 -2
- package/dist/menu/MenuItem.d.ts +5 -5
- package/dist/menu/MenuItemGroup.d.ts +4 -4
- package/dist/menu/OverrideContext.d.ts +5 -5
- package/dist/menu/SubMenu.d.ts +4 -4
- package/dist/menu/index.d.ts +3 -3
- package/dist/menu/menu.d.ts +2 -2
- package/dist/menu/style/index.d.ts +2 -2
- package/dist/menu/style/index.js +11 -3
- package/dist/menu/style/vertical.js +2 -1
- package/dist/message/PureList.d.ts +28 -0
- package/dist/message/PureList.js +75 -0
- package/dist/message/PurePanel.d.ts +17 -9
- package/dist/message/PurePanel.js +33 -38
- package/dist/message/index.d.ts +3 -0
- package/dist/message/index.js +3 -1
- package/dist/message/interface.d.ts +11 -5
- package/dist/message/style/index.d.ts +12 -6
- package/dist/message/style/index.js +102 -98
- package/dist/message/useMessage.d.ts +3 -3
- package/dist/message/useMessage.js +18 -14
- package/dist/message/util.js +1 -1
- package/dist/modal/ConfirmDialog.d.ts +4 -4
- package/dist/modal/Modal.d.ts +2 -2
- package/dist/modal/Modal.js +7 -3
- package/dist/modal/PurePanel.d.ts +2 -2
- package/dist/modal/components/ConfirmCancelBtn.d.ts +4 -4
- package/dist/modal/components/ConfirmOkBtn.d.ts +4 -4
- package/dist/modal/components/NormalCancelBtn.d.ts +4 -4
- package/dist/modal/components/NormalOkBtn.d.ts +4 -4
- package/dist/modal/interface.d.ts +22 -14
- package/dist/modal/shared.d.ts +4 -4
- package/dist/modal/style/confirm.d.ts +4 -4
- package/dist/modal/style/index.d.ts +4 -4
- package/dist/modal/useModal/HookModal.d.ts +3 -3
- package/dist/notification/PureList.d.ts +32 -0
- package/dist/notification/PureList.js +72 -0
- package/dist/notification/PurePanel.d.ts +16 -13
- package/dist/notification/PurePanel.js +42 -19
- package/dist/notification/index.d.ts +3 -0
- package/dist/notification/index.js +3 -1
- package/dist/notification/interface.d.ts +8 -8
- package/dist/notification/style/index.d.ts +27 -26
- package/dist/notification/style/index.js +104 -174
- package/dist/notification/style/notification.d.ts +23 -0
- package/dist/notification/style/notification.js +195 -0
- package/dist/notification/style/placement.d.ts +1 -0
- package/dist/notification/style/placement.js +125 -60
- package/dist/notification/useNotification.d.ts +3 -3
- package/dist/notification/useNotification.js +22 -14
- package/dist/notification/util.d.ts +14 -4
- package/dist/notification/util.js +18 -52
- package/dist/package.js +1 -1
- package/dist/package.json.d.ts +12 -12
- package/dist/pagination/Pagination.d.ts +2 -2
- package/dist/pagination/interface.d.ts +7 -7
- package/dist/pagination/style/bordered.d.ts +4 -4
- package/dist/pagination/style/index.d.ts +2 -2
- package/dist/popconfirm/PurePanel.d.ts +6 -7
- package/dist/popconfirm/PurePanel.js +4 -1
- package/dist/popconfirm/index.d.ts +16 -12
- package/dist/popconfirm/style/index.d.ts +2 -2
- package/dist/popover/PurePanel.d.ts +7 -7
- package/dist/popover/index.d.ts +5 -5
- package/dist/popover/style/index.d.ts +2 -2
- package/dist/progress/Circle.d.ts +3 -3
- package/dist/progress/Line.d.ts +3 -3
- package/dist/progress/Steps.d.ts +2 -2
- package/dist/progress/progress.d.ts +2 -2
- package/dist/progress/style/index.d.ts +2 -2
- package/dist/qrcode/QrcodeStatus.d.ts +2 -2
- package/dist/qrcode/index.d.ts +2 -2
- package/dist/qrcode/style/index.d.ts +2 -2
- package/dist/radio/group.d.ts +2 -2
- package/dist/radio/index.d.ts +3 -3
- package/dist/radio/radio.d.ts +2 -2
- package/dist/radio/radioButton.d.ts +2 -2
- package/dist/radio/style/index.d.ts +2 -2
- package/dist/rate/index.d.ts +2 -2
- package/dist/rate/style/index.d.ts +2 -2
- package/dist/result/index.d.ts +7 -7
- package/dist/result/noFound.d.ts +2 -2
- package/dist/result/serverError.d.ts +2 -2
- package/dist/result/style/index.d.ts +4 -4
- package/dist/result/style/index.js +1 -1
- package/dist/result/unauthorized.d.ts +2 -2
- package/dist/segmented/index.d.ts +4 -4
- package/dist/segmented/index.js +1 -1
- package/dist/segmented/style/index.d.ts +2 -2
- package/dist/select/index.d.ts +8 -8
- package/dist/select/index.js +1 -1
- package/dist/select/style/dropdown.js +1 -1
- package/dist/select/style/index.d.ts +2 -2
- package/dist/select/style/select-input.js +10 -5
- package/dist/select/useIcons.d.ts +5 -5
- package/dist/select/usePopupRender.d.ts +2 -2
- package/dist/skeleton/Avatar.d.ts +2 -2
- package/dist/skeleton/Button.d.ts +2 -2
- package/dist/skeleton/Element.d.ts +2 -2
- package/dist/skeleton/Image.d.ts +2 -2
- package/dist/skeleton/Input.d.ts +2 -2
- package/dist/skeleton/Node.d.ts +2 -2
- package/dist/skeleton/Paragraph.d.ts +2 -2
- package/dist/skeleton/Skeleton.d.ts +2 -2
- package/dist/skeleton/Title.d.ts +2 -2
- package/dist/skeleton/style/index.d.ts +2 -2
- package/dist/slider/SliderTooltip.d.ts +3 -3
- package/dist/slider/index.d.ts +2 -2
- package/dist/slider/style/index.d.ts +2 -2
- package/dist/space/Addon.d.ts +2 -2
- package/dist/space/Compact.d.ts +6 -6
- package/dist/space/Item.d.ts +2 -2
- package/dist/space/index.d.ts +6 -6
- package/dist/space/style/addon.d.ts +2 -2
- package/dist/space/style/compact.d.ts +2 -2
- package/dist/space/style/index.d.ts +16 -3
- package/dist/spin/Indicator/Looper.d.ts +2 -2
- package/dist/spin/Indicator/Progress.d.ts +2 -2
- package/dist/spin/Indicator/index.d.ts +4 -4
- package/dist/spin/index.d.ts +7 -7
- package/dist/spin/style/index.d.ts +2 -2
- package/dist/spin/usePercent.d.ts +2 -2
- package/dist/splitter/Panel.d.ts +3 -3
- package/dist/splitter/Panel.js +14 -3
- package/dist/splitter/SplitBar.d.ts +2 -2
- package/dist/splitter/Splitter.d.ts +2 -2
- package/dist/splitter/Splitter.js +8 -2
- package/dist/splitter/hooks/useResizable.d.ts +2 -2
- package/dist/splitter/hooks/useResize.d.ts +2 -2
- package/dist/splitter/hooks/useSizes.d.ts +2 -2
- package/dist/splitter/index.d.ts +2 -2
- package/dist/splitter/interface.d.ts +21 -4
- package/dist/splitter/style/index.d.ts +2 -2
- package/dist/statistic/Number.d.ts +2 -2
- package/dist/statistic/Statistic.d.ts +6 -6
- package/dist/statistic/Timer.d.ts +2 -2
- package/dist/statistic/index.d.ts +2 -2
- package/dist/statistic/style/index.d.ts +3 -3
- package/dist/steps/PanelArrow.d.ts +2 -2
- package/dist/steps/ProgressIcon.d.ts +2 -2
- package/dist/steps/index.d.ts +8 -8
- package/dist/steps/style/index.d.ts +3 -3
- package/dist/style/compact-item-vertical.js +2 -1
- package/dist/style/compact-item.js +6 -6
- package/dist/switch/index.d.ts +5 -5
- package/dist/switch/style/index.d.ts +2 -2
- package/dist/table/Column.d.ts +2 -2
- package/dist/table/ColumnGroup.d.ts +2 -2
- package/dist/table/ExpandIcon.d.ts +2 -2
- package/dist/table/InternalTable.d.ts +2 -2
- package/dist/table/InternalTable.js +6 -4
- package/dist/table/TableMeasureRowContext.d.ts +3 -3
- package/dist/table/hooks/useFilledColumns.d.ts +14 -0
- package/dist/table/hooks/useFilledColumns.js +41 -0
- package/dist/table/hooks/useFilter/FilterSearch.d.ts +2 -2
- package/dist/table/hooks/useFilter/FilterWrapper.d.ts +3 -3
- package/dist/table/hooks/useFilter/index.d.ts +21 -21
- package/dist/table/hooks/usePagination.d.ts +2 -2
- package/dist/table/hooks/useSelection.d.ts +2 -2
- package/dist/table/hooks/useSorter.d.ts +2 -2
- package/dist/table/style/index.d.ts +2 -2
- package/dist/tabs/TabPane.d.ts +2 -2
- package/dist/tabs/hooks/useLegacyItems.d.ts +2 -2
- package/dist/tabs/index.d.ts +9 -7
- package/dist/tabs/style/index.d.ts +2 -2
- package/dist/tag/CheckableTag.d.ts +4 -4
- package/dist/tag/CheckableTagGroup.d.ts +4 -4
- package/dist/tag/hooks/useColor.d.ts +2 -2
- package/dist/tag/index.d.ts +7 -5
- package/dist/tag/index.js +7 -2
- package/dist/tag/style/index.d.ts +2 -2
- package/dist/tag/style/presetCmp.d.ts +4 -4
- package/dist/tag/style/statusCmp.d.ts +4 -4
- package/dist/theme/context.d.ts +2 -2
- package/dist/theme/index.d.ts +4 -4
- package/dist/theme/interface/alias.d.ts +14 -0
- package/dist/theme/interface/components.d.ts +118 -116
- package/dist/theme/interface/maps/colors.d.ts +14 -0
- package/dist/theme/interface/maps/font.d.ts +5 -5
- package/dist/theme/themes/default/theme.d.ts +2 -2
- package/dist/theme/themes/shared/genColorMapToken.js +2 -0
- package/dist/theme/useToken.js +1 -1
- package/dist/theme/util/alias.js +2 -0
- package/dist/theme/util/genStyleUtils.d.ts +6 -6
- package/dist/time-picker/index.d.ts +6 -6
- package/dist/time-picker/index.js +4 -0
- package/dist/timeline/Timeline.d.ts +11 -11
- package/dist/timeline/TimelineItem.d.ts +2 -2
- package/dist/timeline/style/index.d.ts +2 -2
- package/dist/tooltip/PurePanel.d.ts +2 -2
- package/dist/tooltip/UniqueProvider/MotionContent.d.ts +2 -2
- package/dist/tooltip/UniqueProvider/index.d.ts +2 -2
- package/dist/tooltip/index.d.ts +5 -5
- package/dist/tooltip/style/index.d.ts +2 -2
- package/dist/tour/PurePanel.d.ts +2 -2
- package/dist/tour/index.d.ts +2 -2
- package/dist/tour/index.js +5 -0
- package/dist/tour/interface.d.ts +6 -4
- package/dist/tour/panelRender.d.ts +2 -2
- package/dist/tour/panelRender.js +4 -9
- package/dist/tour/style/index.d.ts +2 -2
- package/dist/transfer/Actions.d.ts +4 -4
- package/dist/transfer/ListBody.d.ts +2 -2
- package/dist/transfer/ListItem.d.ts +4 -4
- package/dist/transfer/Section.d.ts +2 -2
- package/dist/transfer/Transfer.d.ts +2 -2
- package/dist/transfer/Transfer.js +34 -4
- package/dist/transfer/hooks/useData.d.ts +2 -2
- package/dist/transfer/interface.d.ts +47 -15
- package/dist/transfer/search.d.ts +4 -4
- package/dist/transfer/style/index.d.ts +2 -2
- package/dist/tree/DirectoryTree.d.ts +2 -2
- package/dist/tree/DirectoryTree.js +0 -4
- package/dist/tree/Tree.d.ts +10 -8
- package/dist/tree/Tree.js +0 -4
- package/dist/tree/style/index.d.ts +2 -2
- package/dist/tree/utils/dropIndicator.d.ts +2 -2
- package/dist/tree/utils/iconUtil.d.ts +4 -4
- package/dist/tree-select/index.d.ts +8 -6
- package/dist/tree-select/index.js +1 -1
- package/dist/tree-select/style/index.d.ts +2 -2
- package/dist/typography/Base/CopyBtn.d.ts +2 -2
- package/dist/typography/Base/Ellipsis.d.ts +5 -5
- package/dist/typography/Base/EllipsisTooltip.d.ts +2 -2
- package/dist/typography/Base/index.d.ts +2 -2
- package/dist/typography/Base/index.js +31 -26
- package/dist/typography/Editable.d.ts +11 -4
- package/dist/typography/Editable.js +18 -3
- package/dist/typography/Link.d.ts +2 -2
- package/dist/typography/Link.js +4 -0
- package/dist/typography/Paragraph.d.ts +2 -2
- package/dist/typography/Paragraph.js +4 -0
- package/dist/typography/Text.d.ts +2 -2
- package/dist/typography/Text.js +4 -0
- package/dist/typography/Title.d.ts +2 -2
- package/dist/typography/Title.js +4 -0
- package/dist/typography/Typography.d.ts +2 -2
- package/dist/typography/hooks/useCopyClick.d.ts +3 -3
- package/dist/typography/hooks/useMergedConfig.d.ts +2 -2
- package/dist/typography/hooks/useTooltipProps.d.ts +2 -2
- package/dist/typography/index.d.ts +5 -5
- package/dist/typography/interface.d.ts +25 -17
- package/dist/typography/style/index.d.ts +2 -2
- package/dist/upload/Dragger.d.ts +3 -3
- package/dist/upload/Upload.d.ts +2 -2
- package/dist/upload/UploadList/ListItem.d.ts +2 -2
- package/dist/upload/UploadList/index.d.ts +2 -2
- package/dist/upload/index.d.ts +3 -3
- package/dist/upload/style/index.d.ts +2 -2
- package/dist/upload/utils.js +1 -1
- package/dist/watermark/context.d.ts +2 -2
- package/dist/watermark/index.d.ts +2 -2
- package/dist/watermark/index.js +4 -3
- package/package.json +65 -29
- package/web-tags.json +1251 -1233
- package/web-types.json +3794 -3750
- package/dist/notification/style/pure-panel.d.ts +0 -12
- package/dist/notification/style/pure-panel.js +0 -18
- package/dist/notification/style/stack.d.ts +0 -9
- package/dist/notification/style/stack.js +0 -88
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MenuPopupSemanticClassNames, MenuPopupSemanticStyles, MenuSemanticClassNames, MenuSemanticStyles, SubMenuSemanticClassNames, SubMenuSemanticStyles } from "./menu.js";
|
|
2
2
|
import { DirectionType } from "../config-provider/context.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue67 from "vue";
|
|
4
4
|
import { Ref } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/menu/MenuContext.d.ts
|
|
@@ -24,10 +24,10 @@ interface MenuContextProps {
|
|
|
24
24
|
}
|
|
25
25
|
declare function useMenuContextProvider(props: Ref<MenuContextProps>): void;
|
|
26
26
|
declare function useMenuContext(): Ref<MenuContextProps>;
|
|
27
|
-
declare const MenuContextProvider:
|
|
27
|
+
declare const MenuContextProvider: vue67.DefineSetupFnComponent<{
|
|
28
28
|
value: MenuContextProps;
|
|
29
29
|
}, {}, {}, {
|
|
30
30
|
value: MenuContextProps;
|
|
31
|
-
} & {},
|
|
31
|
+
} & {}, vue67.PublicProps>;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { MenuContextProps, MenuContextProvider, MenuTheme, useMenuContext, useMenuContextProvider };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue75 from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/menu/MenuDivider.d.ts
|
|
4
4
|
interface MenuDividerProps {
|
|
5
5
|
prefixCls?: string;
|
|
6
6
|
dashed?: boolean;
|
|
7
7
|
}
|
|
8
|
-
declare const MenuDivider:
|
|
8
|
+
declare const MenuDivider: vue75.DefineSetupFnComponent<MenuDividerProps, {}, {}, MenuDividerProps & {}, vue75.PublicProps>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { MenuDividerProps, MenuDivider as default };
|
package/dist/menu/MenuItem.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { EmptyEmit, VueNode } from "../_util/type.js";
|
|
2
|
-
import * as
|
|
1
|
+
import { EmptyEmit, VueNode as VueNode$1 } from "../_util/type.js";
|
|
2
|
+
import * as vue69 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
import { MenuItemType } from "@v-c/menu";
|
|
5
5
|
|
|
6
6
|
//#region src/menu/MenuItem.d.ts
|
|
7
7
|
interface MenuItemProps extends Omit<MenuItemType, 'key'> {
|
|
8
|
-
icon?: VueNode;
|
|
8
|
+
icon?: VueNode$1;
|
|
9
9
|
danger?: boolean;
|
|
10
|
-
title?: VueNode;
|
|
10
|
+
title?: VueNode$1;
|
|
11
11
|
/** @private Internal filled key. Do not set it directly */
|
|
12
12
|
eventKey?: string;
|
|
13
13
|
/** @private Do not use. Private warning empty usage */
|
|
@@ -24,6 +24,6 @@ interface MenuItemSlots {
|
|
|
24
24
|
title: () => any;
|
|
25
25
|
extra: () => any;
|
|
26
26
|
}
|
|
27
|
-
declare const MenuItem:
|
|
27
|
+
declare const MenuItem: vue69.DefineSetupFnComponent<MenuItemProps, EmptyEmit, SlotsType<MenuItemSlots>, MenuItemProps, vue69.PublicProps>;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { MenuItemProps, MenuItemSlots, MenuItem as default };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { EmptyEmit, VueNode } from "../_util/type.js";
|
|
2
|
-
import * as
|
|
1
|
+
import { EmptyEmit, VueNode as VueNode$1 } from "../_util/type.js";
|
|
2
|
+
import * as vue65 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
import { MenuItemGroupProps as MenuItemGroupProps$1 } from "@v-c/menu";
|
|
5
5
|
|
|
6
6
|
//#region src/menu/MenuItemGroup.d.ts
|
|
7
7
|
interface MenuItemGroupProps extends Omit<MenuItemGroupProps$1, 'title' | 'children'> {
|
|
8
|
-
title?: VueNode;
|
|
8
|
+
title?: VueNode$1;
|
|
9
9
|
}
|
|
10
10
|
interface MenuItemGroupSlots {
|
|
11
11
|
default?: () => any;
|
|
12
12
|
title?: () => any;
|
|
13
13
|
}
|
|
14
|
-
declare const MenuItemGroup:
|
|
14
|
+
declare const MenuItemGroup: vue65.DefineSetupFnComponent<MenuItemGroupProps, EmptyEmit, SlotsType<MenuItemGroupSlots>, MenuItemGroupProps, vue65.PublicProps>;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { MenuItemGroupProps, MenuItemGroupSlots, MenuItemGroup as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { VueNode } from "../_util/type.js";
|
|
1
|
+
import { VueNode as VueNode$1 } from "../_util/type.js";
|
|
2
2
|
import { MenuProps } from "./menu.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue73 from "vue";
|
|
4
4
|
import { Ref } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/menu/OverrideContext.d.ts
|
|
7
7
|
interface OverrideContextProps {
|
|
8
8
|
prefixCls?: string;
|
|
9
|
-
expandIcon?: VueNode;
|
|
9
|
+
expandIcon?: VueNode$1;
|
|
10
10
|
mode?: MenuProps['mode'];
|
|
11
11
|
selectable?: boolean;
|
|
12
12
|
validator?: (menuProps: Pick<MenuProps, 'mode'>) => void;
|
|
@@ -15,10 +15,10 @@ interface OverrideContextProps {
|
|
|
15
15
|
}
|
|
16
16
|
declare function useOverrideContext(): Ref<OverrideContextProps, OverrideContextProps> | null;
|
|
17
17
|
/** @internal Only used for Dropdown component. Do not use this in your production. */
|
|
18
|
-
declare const OverrideProvider:
|
|
18
|
+
declare const OverrideProvider: vue73.DefineSetupFnComponent<{
|
|
19
19
|
value?: OverrideContextProps | null;
|
|
20
20
|
}, {}, {}, {
|
|
21
21
|
value?: OverrideContextProps | null;
|
|
22
|
-
} & {},
|
|
22
|
+
} & {}, vue73.PublicProps>;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { OverrideContextProps, OverrideProvider, useOverrideContext };
|
package/dist/menu/SubMenu.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { EmptyEmit, VueNode } from "../_util/type.js";
|
|
1
|
+
import { EmptyEmit, VueNode as VueNode$1 } from "../_util/type.js";
|
|
2
2
|
import { SubMenuType } from "./interface.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue71 from "vue";
|
|
4
4
|
import { SlotsType } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/menu/SubMenu.d.ts
|
|
7
7
|
interface SubMenuProps extends Omit<SubMenuType, 'key' | 'label' | 'children'> {
|
|
8
|
-
title?: VueNode;
|
|
8
|
+
title?: VueNode$1;
|
|
9
9
|
}
|
|
10
10
|
interface SubMenuSlots {
|
|
11
11
|
title: () => any;
|
|
12
12
|
icon: () => any;
|
|
13
13
|
default: () => any;
|
|
14
14
|
}
|
|
15
|
-
declare const SubMenu:
|
|
15
|
+
declare const SubMenu: vue71.DefineSetupFnComponent<SubMenuProps, EmptyEmit, SlotsType<SubMenuSlots>, SubMenuProps, vue71.PublicProps>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { SubMenuProps, SubMenuSlots, SubMenu as default };
|
package/dist/menu/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { MenuEmits, MenuEmitsProps, MenuProps as MenuProps$2, MenuSlots } from "
|
|
|
5
5
|
import MenuItemGroup, { MenuItemGroupProps } from "./MenuItemGroup.js";
|
|
6
6
|
import SubMenu, { SubMenuProps } from "./SubMenu.js";
|
|
7
7
|
import MenuDivider from "./MenuDivider.js";
|
|
8
|
-
import * as
|
|
8
|
+
import * as vue4 from "vue";
|
|
9
9
|
import { SlotsType } from "vue";
|
|
10
10
|
import { MenuRef as MenuRef$1 } from "@v-c/menu";
|
|
11
11
|
|
|
@@ -17,8 +17,8 @@ interface MenuRef {
|
|
|
17
17
|
}
|
|
18
18
|
interface InternalMenuProps extends MenuProps$2, MenuEmitsProps {}
|
|
19
19
|
type MenuProps = InternalMenuProps;
|
|
20
|
-
declare const Menu:
|
|
21
|
-
declare const MenuItem:
|
|
20
|
+
declare const Menu: vue4.DefineSetupFnComponent<InternalMenuProps, MenuEmits, SlotsType<MenuSlots>, InternalMenuProps, vue4.PublicProps>;
|
|
21
|
+
declare const MenuItem: vue4.DefineSetupFnComponent<MenuItemProps, EmptyEmit, SlotsType<MenuItemSlots>, MenuItemProps, vue4.PublicProps>;
|
|
22
22
|
declare const _default: typeof Menu & {
|
|
23
23
|
Item: typeof MenuItem$1;
|
|
24
24
|
SubMenu: typeof SubMenu;
|
package/dist/menu/menu.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ItemType } from "./interface.js";
|
|
2
2
|
import { MenuTheme } from "./MenuContext.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue26 from "vue";
|
|
4
4
|
import { CSSProperties, SlotsType } from "vue";
|
|
5
5
|
import { MenuInfo, MenuItemProps, MenuProps as MenuProps$1, RenderIconInfo, SelectInfo } from "@v-c/menu";
|
|
6
6
|
|
|
@@ -114,6 +114,6 @@ interface MenuSlots {
|
|
|
114
114
|
itemIcon?: (props: MenuItemProps & RenderIconInfo) => any;
|
|
115
115
|
}
|
|
116
116
|
interface InternalMenuRuntimeProps extends InternalMenuProps, MenuEmitsProps {}
|
|
117
|
-
declare const InternalMenu:
|
|
117
|
+
declare const InternalMenu: vue26.DefineSetupFnComponent<InternalMenuRuntimeProps, MenuEmits, SlotsType<MenuSlots>, InternalMenuRuntimeProps, vue26.PublicProps>;
|
|
118
118
|
//#endregion
|
|
119
119
|
export { MenuClassNamesType, MenuEmits, MenuEmitsProps, MenuPopupSemanticClassNames, MenuPopupSemanticName, MenuPopupSemanticStyles, MenuProps, MenuSemanticClassNames, MenuSemanticName, MenuSemanticStyles, MenuSlots, MenuStylesType, RenderItem, SubMenuSemanticClassNames, SubMenuSemanticName, SubMenuSemanticStyles, InternalMenu as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FullToken, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
2
2
|
import "../../theme/internal.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue311 from "vue";
|
|
4
4
|
import { CSSProperties, ComputedRef } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/menu/style/index.d.ts
|
|
@@ -361,6 +361,6 @@ interface MenuToken extends FullToken<'Menu'> {
|
|
|
361
361
|
darkPopupBg: string;
|
|
362
362
|
}
|
|
363
363
|
declare const prepareComponentToken: GetDefaultToken<'Menu'>;
|
|
364
|
-
declare const _default: (prefixCls: ComputedRef<string>, rootCls?: ComputedRef<string>, injectStyle?: boolean) => readonly [
|
|
364
|
+
declare const _default: (prefixCls: ComputedRef<string>, rootCls?: ComputedRef<string>, injectStyle?: boolean) => readonly [vue311.Ref<string, string>, ComputedRef<string | undefined>];
|
|
365
365
|
//#endregion
|
|
366
366
|
export { ComponentToken, MenuToken, _default as default, prepareComponentToken };
|
package/dist/menu/style/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { clearFix, resetComponent, resetIcon } from "../../style/index.js";
|
|
1
|
+
import { clearFix, resetComponent, resetIcon, textEllipsis } from "../../style/index.js";
|
|
2
2
|
import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
3
3
|
import { mergeToken } from "../../theme/internal.js";
|
|
4
4
|
import collapse_default from "../../style/motion/collapse.js";
|
|
@@ -146,17 +146,25 @@ const getBaseStyle = (token) => {
|
|
|
146
146
|
"&-with-extra": {
|
|
147
147
|
display: "inline-flex",
|
|
148
148
|
alignItems: "center",
|
|
149
|
-
width: "100%"
|
|
149
|
+
width: "100%",
|
|
150
|
+
minWidth: 0
|
|
150
151
|
},
|
|
151
|
-
[
|
|
152
|
+
[`${componentCls}-item-label`]: {
|
|
153
|
+
flex: "auto",
|
|
154
|
+
minWidth: 0,
|
|
155
|
+
...textEllipsis
|
|
156
|
+
},
|
|
157
|
+
[[`> ${antCls}-typography-ellipsis-single-line`, `> ${componentCls}-item-label > ${antCls}-typography-ellipsis-single-line`].join(",")]: {
|
|
152
158
|
display: "inline",
|
|
153
159
|
verticalAlign: "unset"
|
|
154
160
|
},
|
|
155
161
|
[`${componentCls}-item-extra`]: {
|
|
162
|
+
flex: "none",
|
|
156
163
|
marginInlineStart: "auto",
|
|
157
164
|
paddingInlineStart: token.padding
|
|
158
165
|
}
|
|
159
166
|
},
|
|
167
|
+
[`${componentCls}-item-icon + ${componentCls}-title-content-with-extra`]: { width: `calc(100% - ${unit(token.calc(token.iconSize).add(token.iconMarginInlineEnd ?? 0).equal())})` },
|
|
160
168
|
[`${componentCls}-item a`]: { "&::before": {
|
|
161
169
|
position: "absolute",
|
|
162
170
|
inset: 0,
|
|
@@ -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`]: {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ArgsClassNamesType, NoticeType } from "./interface.js";
|
|
2
|
+
import * as vue80 from "vue";
|
|
3
|
+
import { CSSProperties, SlotsType, VueNode } from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/message/PureList.d.ts
|
|
6
|
+
interface PureListItem {
|
|
7
|
+
key: string | number;
|
|
8
|
+
content?: VueNode;
|
|
9
|
+
type: NoticeType;
|
|
10
|
+
duration?: number | false;
|
|
11
|
+
}
|
|
12
|
+
interface PureListProps {
|
|
13
|
+
items: PureListItem[];
|
|
14
|
+
classes?: ArgsClassNamesType;
|
|
15
|
+
style?: CSSProperties;
|
|
16
|
+
}
|
|
17
|
+
interface PureListSlots {
|
|
18
|
+
default?: () => any;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @private Internal component. Do not use in production.
|
|
22
|
+
* Mirrors ant-design 6.4 `message._InternalListDoNotUseOrYouWillBeFired`.
|
|
23
|
+
*/
|
|
24
|
+
declare const PureList: vue80.DefineSetupFnComponent<PureListProps, Record<string, never>, SlotsType<PureListSlots>, PureListProps & {
|
|
25
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
26
|
+
}, vue80.PublicProps>;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { PureListItem, PureListProps, PureListSlots, PureList as default };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
|
+
import useCSSVarCls_default from "../config-provider/hooks/useCSSVarCls.js";
|
|
3
|
+
import style_default from "./style/index.js";
|
|
4
|
+
import { resolveMessageIcon } from "./PurePanel.js";
|
|
5
|
+
import { computed, createVNode, defineComponent } from "vue";
|
|
6
|
+
import { clsx } from "@v-c/util";
|
|
7
|
+
import { NotificationList } from "@v-c/notification";
|
|
8
|
+
|
|
9
|
+
//#region src/message/PureList.tsx
|
|
10
|
+
/**
|
|
11
|
+
* @private Internal component. Do not use in production.
|
|
12
|
+
* Mirrors ant-design 6.4 `message._InternalListDoNotUseOrYouWillBeFired`.
|
|
13
|
+
*/
|
|
14
|
+
const PureList = /* @__PURE__ */ defineComponent((props) => {
|
|
15
|
+
const { getPrefixCls } = useComponentBaseConfig("message", props);
|
|
16
|
+
const prefixCls = computed(() => getPrefixCls("message"));
|
|
17
|
+
const rootCls = useCSSVarCls_default(prefixCls);
|
|
18
|
+
const [hashId, cssVarCls] = style_default(prefixCls, rootCls);
|
|
19
|
+
return () => {
|
|
20
|
+
const noticePrefixCls = `${prefixCls.value}-notice`;
|
|
21
|
+
const classes = props.classes ?? {};
|
|
22
|
+
const configList = props.items.map((item) => {
|
|
23
|
+
const { content, duration, key, type } = item;
|
|
24
|
+
const typeIconCls = type ? `${noticePrefixCls}-icon-${type}` : void 0;
|
|
25
|
+
return {
|
|
26
|
+
key,
|
|
27
|
+
duration,
|
|
28
|
+
icon: resolveMessageIcon(prefixCls.value, void 0, type),
|
|
29
|
+
title: content,
|
|
30
|
+
class: `${noticePrefixCls}-${type}`,
|
|
31
|
+
classNames: {
|
|
32
|
+
wrapper: `${prefixCls.value}-${type}`,
|
|
33
|
+
icon: typeIconCls
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
});
|
|
37
|
+
return createVNode(NotificationList, {
|
|
38
|
+
"prefixCls": prefixCls.value,
|
|
39
|
+
"placement": "top",
|
|
40
|
+
"configList": configList,
|
|
41
|
+
"class": clsx(hashId.value, cssVarCls.value, rootCls.value),
|
|
42
|
+
"classNames": {
|
|
43
|
+
list: classes.list,
|
|
44
|
+
listContent: classes.listContent,
|
|
45
|
+
wrapper: classes.wrapper,
|
|
46
|
+
title: classes.title,
|
|
47
|
+
icon: classes.icon,
|
|
48
|
+
root: classes.root
|
|
49
|
+
},
|
|
50
|
+
"style": props.style,
|
|
51
|
+
"stack": false
|
|
52
|
+
}, null);
|
|
53
|
+
};
|
|
54
|
+
}, {
|
|
55
|
+
props: {
|
|
56
|
+
items: {
|
|
57
|
+
type: Array,
|
|
58
|
+
required: true
|
|
59
|
+
},
|
|
60
|
+
classes: {
|
|
61
|
+
type: [Object, Function],
|
|
62
|
+
required: false
|
|
63
|
+
},
|
|
64
|
+
style: {
|
|
65
|
+
type: Object,
|
|
66
|
+
required: false
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
name: "MessagePureList",
|
|
70
|
+
inheritAttrs: false
|
|
71
|
+
});
|
|
72
|
+
var PureList_default = PureList;
|
|
73
|
+
|
|
74
|
+
//#endregion
|
|
75
|
+
export { PureList_default as default };
|
|
@@ -1,26 +1,34 @@
|
|
|
1
|
-
import { VueNode } from "../_util/type.js";
|
|
1
|
+
import { VueNode as VueNode$1 } from "../_util/type.js";
|
|
2
2
|
import { ArgsClassNamesType, ArgsStylesType, MessageSemanticClassNames, MessageSemanticStyles, NoticeType } from "./interface.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue84 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/message/PurePanel.d.ts
|
|
6
6
|
interface PureContentProps {
|
|
7
7
|
prefixCls: string;
|
|
8
8
|
type?: NoticeType;
|
|
9
|
-
icon?: VueNode;
|
|
9
|
+
icon?: VueNode$1;
|
|
10
10
|
classNames?: MessageSemanticClassNames;
|
|
11
11
|
styles?: MessageSemanticStyles;
|
|
12
12
|
}
|
|
13
|
-
declare const
|
|
13
|
+
declare const TypeIcon: Record<NoticeType, any>;
|
|
14
|
+
/**
|
|
15
|
+
* Mirrors ant-design 6.4 `getMessageIcon`. Returns a renderable icon vnode for
|
|
16
|
+
* the type, allowing a custom `icon` to take precedence. The notice element
|
|
17
|
+
* wraps it with `${prefixCls}-notice-icon`, so the returned vnode does NOT
|
|
18
|
+
* need the `${prefixCls}-icon` class anymore.
|
|
19
|
+
*/
|
|
20
|
+
declare function resolveMessageIcon(_prefixCls: string, icon: VueNode$1 | undefined, type: NoticeType | undefined): VueNode$1;
|
|
21
|
+
declare const PureContent: vue84.DefineSetupFnComponent<PureContentProps, {}, {}, PureContentProps & {}, vue84.PublicProps>;
|
|
14
22
|
interface PurePanelProps extends Omit<PureContentProps, 'prefixCls' | 'children' | 'classNames' | 'styles'> {
|
|
15
|
-
content?: VueNode;
|
|
23
|
+
content?: VueNode$1;
|
|
16
24
|
duration?: number | false | null;
|
|
17
25
|
showProgress?: boolean;
|
|
18
26
|
pauseOnHover?: boolean;
|
|
19
27
|
closable?: boolean | ({
|
|
20
|
-
closeIcon?: VueNode;
|
|
28
|
+
closeIcon?: VueNode$1;
|
|
21
29
|
onClose?: VoidFunction;
|
|
22
30
|
} & Record<string, any>);
|
|
23
|
-
closeIcon?: VueNode;
|
|
31
|
+
closeIcon?: VueNode$1;
|
|
24
32
|
props?: Record<string, any>;
|
|
25
33
|
onClose?: VoidFunction;
|
|
26
34
|
onClick?: (event: Event) => void;
|
|
@@ -30,6 +38,6 @@ interface PurePanelProps extends Omit<PureContentProps, 'prefixCls' | 'children'
|
|
|
30
38
|
styles?: ArgsStylesType;
|
|
31
39
|
}
|
|
32
40
|
/** @private Internal Component. Do not use in your production. */
|
|
33
|
-
declare const PurePanel:
|
|
41
|
+
declare const PurePanel: vue84.DefineSetupFnComponent<PurePanelProps, {}, {}, PurePanelProps & {}, vue84.PublicProps>;
|
|
34
42
|
//#endregion
|
|
35
|
-
export { PureContent, PureContentProps, PurePanelProps, PurePanel as default };
|
|
43
|
+
export { PureContent, PureContentProps, PurePanelProps, TypeIcon, PurePanel as default, resolveMessageIcon };
|
|
@@ -3,11 +3,11 @@ import { pureAttrs, useMergeSemantic, useToArr, useToProps } from "../_util/hook
|
|
|
3
3
|
import { toPropsRefs } from "../_util/tools.js";
|
|
4
4
|
import useCSSVarCls_default from "../config-provider/hooks/useCSSVarCls.js";
|
|
5
5
|
import style_default from "./style/index.js";
|
|
6
|
-
import {
|
|
6
|
+
import { Fragment, computed, createVNode, defineComponent, mergeProps } from "vue";
|
|
7
7
|
import { clsx } from "@v-c/util";
|
|
8
8
|
import { CheckCircleFilled, CloseCircleFilled, ExclamationCircleFilled, InfoCircleFilled, LoadingOutlined } from "@antdv-next/icons";
|
|
9
9
|
import { omit } from "es-toolkit";
|
|
10
|
-
import {
|
|
10
|
+
import { Notification } from "@v-c/notification";
|
|
11
11
|
|
|
12
12
|
//#region src/message/PurePanel.tsx
|
|
13
13
|
const TypeIcon = {
|
|
@@ -17,33 +17,21 @@ const TypeIcon = {
|
|
|
17
17
|
warning: ExclamationCircleFilled,
|
|
18
18
|
loading: LoadingOutlined
|
|
19
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* Mirrors ant-design 6.4 `getMessageIcon`. Returns a renderable icon vnode for
|
|
22
|
+
* the type, allowing a custom `icon` to take precedence. The notice element
|
|
23
|
+
* wraps it with `${prefixCls}-notice-icon`, so the returned vnode does NOT
|
|
24
|
+
* need the `${prefixCls}-icon` class anymore.
|
|
25
|
+
*/
|
|
26
|
+
function resolveMessageIcon(_prefixCls, icon, type) {
|
|
27
|
+
if (icon !== void 0 && icon !== null) return icon;
|
|
28
|
+
const IconNode = type ? TypeIcon[type] : null;
|
|
29
|
+
return IconNode ? createVNode(IconNode, null, null) : null;
|
|
30
|
+
}
|
|
20
31
|
const PureContent = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
21
32
|
return () => {
|
|
22
|
-
const { prefixCls, type, icon
|
|
23
|
-
|
|
24
|
-
if (!icon && !type) return null;
|
|
25
|
-
if (icon && isVNode(icon)) return cloneVNode(icon, {
|
|
26
|
-
class: clsx(icon.props?.class, pureContentClassNames?.icon),
|
|
27
|
-
style: {
|
|
28
|
-
...icon.props?.style,
|
|
29
|
-
...styles?.icon
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
if (icon) return createVNode("span", {
|
|
33
|
-
"class": clsx(`${prefixCls}-icon`, pureContentClassNames?.icon),
|
|
34
|
-
"style": styles?.icon
|
|
35
|
-
}, [icon]);
|
|
36
|
-
const IconNode = type ? TypeIcon[type] : null;
|
|
37
|
-
return IconNode ? createVNode(IconNode, {
|
|
38
|
-
"class": clsx(`${prefixCls}-icon`, pureContentClassNames?.icon),
|
|
39
|
-
"style": styles?.icon
|
|
40
|
-
}, null) : null;
|
|
41
|
-
};
|
|
42
|
-
const iconNode = renderIcon();
|
|
43
|
-
return createVNode("div", { "class": clsx(`${prefixCls}-custom-content`, type && `${prefixCls}-${type}`) }, [iconNode, createVNode("span", {
|
|
44
|
-
"class": pureContentClassNames?.content,
|
|
45
|
-
"style": styles?.content
|
|
46
|
-
}, [slots.default?.()])]);
|
|
33
|
+
const { prefixCls, type, icon } = props;
|
|
34
|
+
return createVNode(Fragment, null, [resolveMessageIcon(prefixCls, icon, type), slots.default?.()]);
|
|
47
35
|
};
|
|
48
36
|
}, {
|
|
49
37
|
props: {
|
|
@@ -99,23 +87,30 @@ const PurePanel = /* @__PURE__ */ defineComponent((props, { attrs }) => {
|
|
|
99
87
|
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, messageClassNames), useToArr(contextStyles, styles), useToProps(mergedProps));
|
|
100
88
|
return () => {
|
|
101
89
|
const restProps = omit(props, omitKeys);
|
|
102
|
-
|
|
90
|
+
const noticePrefixCls = `${prefixCls.value}-notice`;
|
|
91
|
+
const iconNode = resolveMessageIcon(prefixCls.value, props.icon, props.type);
|
|
92
|
+
const typeIconCls = props.type ? `${noticePrefixCls}-icon-${props.type}` : void 0;
|
|
93
|
+
return createVNode(Notification, mergeProps(pureAttrs(attrs), restProps, {
|
|
103
94
|
"prefixCls": prefixCls.value,
|
|
104
|
-
"eventKey": "pure",
|
|
105
95
|
"duration": null,
|
|
106
|
-
"
|
|
96
|
+
"classNames": {
|
|
97
|
+
wrapper: clsx(props.type && `${prefixCls.value}-${props.type}`, mergedClassNames.value?.wrapper),
|
|
98
|
+
icon: clsx(typeIconCls, mergedClassNames.value?.icon),
|
|
99
|
+
title: mergedClassNames.value?.title
|
|
100
|
+
},
|
|
101
|
+
"styles": {
|
|
102
|
+
wrapper: mergedStyles.value?.wrapper,
|
|
103
|
+
icon: mergedStyles.value?.icon,
|
|
104
|
+
title: mergedStyles.value?.title
|
|
105
|
+
},
|
|
106
|
+
"class": clsx(contextClassName.value, mergedClassNames.value?.root, props.class, hashId.value, cssVarCls.value, rootCls.value, `${prefixCls.value}-notice-pure-panel`, props.type && `${noticePrefixCls}-${props.type}`),
|
|
107
107
|
"style": {
|
|
108
108
|
...mergedStyles.value.root,
|
|
109
109
|
...contextStyle.value,
|
|
110
110
|
...attrs.style
|
|
111
111
|
},
|
|
112
|
-
"
|
|
113
|
-
|
|
114
|
-
"type": props.type,
|
|
115
|
-
"icon": props.icon,
|
|
116
|
-
"classNames": mergedClassNames.value,
|
|
117
|
-
"styles": mergedStyles.value
|
|
118
|
-
}, { default: () => [props.content] })
|
|
112
|
+
"icon": iconNode,
|
|
113
|
+
"title": props.content
|
|
119
114
|
}), null);
|
|
120
115
|
};
|
|
121
116
|
}, {
|
|
@@ -216,4 +211,4 @@ const PurePanel = /* @__PURE__ */ defineComponent((props, { attrs }) => {
|
|
|
216
211
|
var PurePanel_default = PurePanel;
|
|
217
212
|
|
|
218
213
|
//#endregion
|
|
219
|
-
export { PureContent, PurePanel_default as default };
|
|
214
|
+
export { PureContent, TypeIcon, PurePanel_default as default, resolveMessageIcon };
|
package/dist/message/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ArgsProps, ConfigOptions, MessageType, TypeOpen } from "./interface.js";
|
|
2
|
+
import PureList from "./PureList.js";
|
|
2
3
|
import PurePanel from "./PurePanel.js";
|
|
3
4
|
import useMessage from "./useMessage.js";
|
|
4
5
|
import { Key } from "@v-c/util/dist/type";
|
|
@@ -11,6 +12,8 @@ interface BaseMethods {
|
|
|
11
12
|
useMessage: typeof useMessage;
|
|
12
13
|
/** @private Internal Component. Do not use in your production. */
|
|
13
14
|
_InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel;
|
|
15
|
+
/** @private Internal Component. Do not use in your production. */
|
|
16
|
+
_InternalListDoNotUseOrYouWillBeFired: typeof PureList;
|
|
14
17
|
}
|
|
15
18
|
interface MessageMethods {
|
|
16
19
|
info: TypeOpen;
|
package/dist/message/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { useBaseConfig } from "../config-provider/context.js";
|
|
|
2
2
|
import config_provider_default, { globalConfig } from "../config-provider/index.js";
|
|
3
3
|
import { useAppConfig } from "../app/context.js";
|
|
4
4
|
import PurePanel_default from "./PurePanel.js";
|
|
5
|
+
import PureList_default from "./PureList.js";
|
|
5
6
|
import { wrapPromiseFn } from "./util.js";
|
|
6
7
|
import useMessage, { useInternalMessage } from "./useMessage.js";
|
|
7
8
|
import { createVNode, defineComponent, getCurrentInstance, isVNode, onMounted, render, shallowRef, watch } from "vue";
|
|
@@ -223,7 +224,8 @@ const staticMethods = {
|
|
|
223
224
|
destroy,
|
|
224
225
|
config: setMessageGlobalConfig,
|
|
225
226
|
useMessage,
|
|
226
|
-
_InternalPanelDoNotUseOrYouWillBeFired: PurePanel_default
|
|
227
|
+
_InternalPanelDoNotUseOrYouWillBeFired: PurePanel_default,
|
|
228
|
+
_InternalListDoNotUseOrYouWillBeFired: PureList_default
|
|
227
229
|
};
|
|
228
230
|
methods.forEach((type) => {
|
|
229
231
|
staticMethods[type] = (...args) => typeOpen(type, args);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VueNode } from "../_util/type.js";
|
|
1
|
+
import { VueNode as VueNode$1 } from "../_util/type.js";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
4
|
import { AppContext, CSSProperties } from "vue";
|
|
@@ -8,14 +8,20 @@ import { Key } from "@v-c/util/dist/type";
|
|
|
8
8
|
type NoticeType = 'info' | 'success' | 'error' | 'warning' | 'loading';
|
|
9
9
|
type MessageSemanticName = keyof MessageSemanticClassNames & keyof MessageSemanticStyles;
|
|
10
10
|
interface MessageSemanticClassNames {
|
|
11
|
+
list?: string;
|
|
12
|
+
listContent?: string;
|
|
11
13
|
root?: string;
|
|
14
|
+
wrapper?: string;
|
|
12
15
|
icon?: string;
|
|
13
|
-
|
|
16
|
+
title?: string;
|
|
14
17
|
}
|
|
15
18
|
interface MessageSemanticStyles {
|
|
19
|
+
list?: CSSProperties;
|
|
20
|
+
listContent?: CSSProperties;
|
|
16
21
|
root?: CSSProperties;
|
|
22
|
+
wrapper?: CSSProperties;
|
|
17
23
|
icon?: CSSProperties;
|
|
18
|
-
|
|
24
|
+
title?: CSSProperties;
|
|
19
25
|
}
|
|
20
26
|
type ArgsClassNamesType = SemanticClassNamesType<ArgsProps, MessageSemanticClassNames>;
|
|
21
27
|
type ArgsStylesType = SemanticStylesType<ArgsProps, MessageSemanticStyles>;
|
|
@@ -41,7 +47,7 @@ interface ArgsProps {
|
|
|
41
47
|
* @descCN 消息通知的内容,接收组件或者字符串
|
|
42
48
|
* @descEN The content of the message notification, receiving component or string
|
|
43
49
|
*/
|
|
44
|
-
content: VueNode;
|
|
50
|
+
content: VueNode$1;
|
|
45
51
|
/**
|
|
46
52
|
* @descCN 消息通知持续显示的时间
|
|
47
53
|
* @descEN How long the message notification remains displayed
|
|
@@ -57,7 +63,7 @@ interface ArgsProps {
|
|
|
57
63
|
* @descEN The callback function called when the message notification is closed
|
|
58
64
|
*/
|
|
59
65
|
onClose?: () => void;
|
|
60
|
-
icon?: VueNode;
|
|
66
|
+
icon?: VueNode$1;
|
|
61
67
|
key?: Key;
|
|
62
68
|
style?: CSSProperties;
|
|
63
69
|
class?: string;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "../../theme/internal.js";
|
|
3
|
-
import * as vue481 from "vue";
|
|
1
|
+
import * as vue263 from "vue";
|
|
4
2
|
import { CSSProperties } from "vue";
|
|
5
3
|
|
|
6
4
|
//#region src/message/style/index.d.ts
|
|
@@ -22,7 +20,15 @@ interface ComponentToken {
|
|
|
22
20
|
*/
|
|
23
21
|
contentPadding: CSSProperties['padding'];
|
|
24
22
|
}
|
|
25
|
-
|
|
26
|
-
declare const
|
|
23
|
+
/** Register the PurePanel sub-style component for Message. */
|
|
24
|
+
declare const PurePanelStyle: vue263.DefineComponent<vue263.ExtractPropTypes<{
|
|
25
|
+
prefixCls: StringConstructor;
|
|
26
|
+
rootCls: StringConstructor;
|
|
27
|
+
}>, () => null, {}, {}, {}, vue263.ComponentOptionsMixin, vue263.ComponentOptionsMixin, {}, string, vue263.PublicProps, Readonly<vue263.ExtractPropTypes<{
|
|
28
|
+
prefixCls: StringConstructor;
|
|
29
|
+
rootCls: StringConstructor;
|
|
30
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, vue263.ComponentProvideOptions, true, {}, any>;
|
|
31
|
+
/** Register the main style hook for Message. */
|
|
32
|
+
declare const _default: (prefixCls: vue263.Ref<string>, rootCls?: vue263.Ref<string | undefined>) => readonly [vue263.Ref<string, string>, vue263.ComputedRef<string | undefined>];
|
|
27
33
|
//#endregion
|
|
28
|
-
export { ComponentToken, _default as default
|
|
34
|
+
export { ComponentToken, PurePanelStyle, _default as default };
|