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 { EmptyEmit } from "../../_util/type.js";
|
|
2
2
|
import { ModalFuncProps } from "../interface.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue736 from "vue";
|
|
4
4
|
import { SlotsType } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/modal/useModal/HookModal.d.ts
|
|
@@ -10,8 +10,8 @@ interface HookModalProps {
|
|
|
10
10
|
onConfirm?: (confirmed: boolean) => void;
|
|
11
11
|
isSilent?: () => boolean;
|
|
12
12
|
}
|
|
13
|
-
declare const HookModal:
|
|
13
|
+
declare const HookModal: vue736.DefineSetupFnComponent<HookModalProps, EmptyEmit, SlotsType<{
|
|
14
14
|
default?: () => any;
|
|
15
|
-
}>, HookModalProps,
|
|
15
|
+
}>, HookModalProps, vue736.PublicProps>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { HookModalProps, HookModal as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IconType, NotificationClassNamesType, NotificationPlacement } from "./interface.js";
|
|
2
|
+
import * as vue184 from "vue";
|
|
3
|
+
import { CSSProperties, SlotsType, VueNode } from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/notification/PureList.d.ts
|
|
6
|
+
interface PureListItem {
|
|
7
|
+
key: string | number;
|
|
8
|
+
title?: VueNode;
|
|
9
|
+
description?: VueNode;
|
|
10
|
+
type: IconType;
|
|
11
|
+
actions?: VueNode;
|
|
12
|
+
duration?: number | false;
|
|
13
|
+
showProgress?: boolean;
|
|
14
|
+
}
|
|
15
|
+
interface PureListProps {
|
|
16
|
+
items: PureListItem[];
|
|
17
|
+
placement?: NotificationPlacement;
|
|
18
|
+
classes?: NotificationClassNamesType;
|
|
19
|
+
style?: CSSProperties;
|
|
20
|
+
}
|
|
21
|
+
interface PureListSlots {
|
|
22
|
+
default?: () => any;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @private Internal component. Do not use in production.
|
|
26
|
+
* Mirrors ant-design 6.4.0 `notification._InternalListDoNotUseOrYouWillBeFired`.
|
|
27
|
+
*/
|
|
28
|
+
declare const PureList: vue184.DefineSetupFnComponent<PureListProps, Record<string, never>, SlotsType<PureListSlots>, PureListProps & {
|
|
29
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
30
|
+
}, vue184.PublicProps>;
|
|
31
|
+
//#endregion
|
|
32
|
+
export { PureListItem, PureListProps, PureListSlots, PureList as default };
|
|
@@ -0,0 +1,72 @@
|
|
|
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 { TypeIcon, getCloseIcon } 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/notification/PureList.tsx
|
|
10
|
+
/**
|
|
11
|
+
* @private Internal component. Do not use in production.
|
|
12
|
+
* Mirrors ant-design 6.4.0 `notification._InternalListDoNotUseOrYouWillBeFired`.
|
|
13
|
+
*/
|
|
14
|
+
const PureList = /* @__PURE__ */ defineComponent((props) => {
|
|
15
|
+
const { getPrefixCls } = useComponentBaseConfig("notification", props);
|
|
16
|
+
const prefixCls = computed(() => getPrefixCls("notification"));
|
|
17
|
+
const rootCls = useCSSVarCls_default(prefixCls);
|
|
18
|
+
const [hashId, cssVarCls] = style_default(prefixCls, rootCls);
|
|
19
|
+
return () => {
|
|
20
|
+
const noticePrefixCls = `${prefixCls.value}-notice`;
|
|
21
|
+
const configList = props.items.map((item) => {
|
|
22
|
+
const { actions, description, duration, key, showProgress, title, type } = item;
|
|
23
|
+
const typeIconCls = `${noticePrefixCls}-icon-${type}`;
|
|
24
|
+
return {
|
|
25
|
+
key,
|
|
26
|
+
actions,
|
|
27
|
+
closable: { closeIcon: getCloseIcon(noticePrefixCls) },
|
|
28
|
+
description,
|
|
29
|
+
duration,
|
|
30
|
+
icon: TypeIcon[type] ? createVNode(TypeIcon[type]) : null,
|
|
31
|
+
showProgress,
|
|
32
|
+
title,
|
|
33
|
+
class: `${noticePrefixCls}-${type}`,
|
|
34
|
+
classNames: { icon: typeIconCls }
|
|
35
|
+
};
|
|
36
|
+
});
|
|
37
|
+
return createVNode(NotificationList, {
|
|
38
|
+
"prefixCls": prefixCls.value,
|
|
39
|
+
"placement": props.placement ?? "topRight",
|
|
40
|
+
"configList": configList,
|
|
41
|
+
"class": clsx(hashId.value, cssVarCls.value, rootCls.value),
|
|
42
|
+
"classNames": props.classes,
|
|
43
|
+
"style": props.style,
|
|
44
|
+
"stack": false
|
|
45
|
+
}, null);
|
|
46
|
+
};
|
|
47
|
+
}, {
|
|
48
|
+
props: {
|
|
49
|
+
items: {
|
|
50
|
+
type: Array,
|
|
51
|
+
required: true
|
|
52
|
+
},
|
|
53
|
+
placement: {
|
|
54
|
+
type: String,
|
|
55
|
+
required: false
|
|
56
|
+
},
|
|
57
|
+
classes: {
|
|
58
|
+
type: [Object, Function],
|
|
59
|
+
required: false
|
|
60
|
+
},
|
|
61
|
+
style: {
|
|
62
|
+
type: Object,
|
|
63
|
+
required: false
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
name: "NotificationPureList",
|
|
67
|
+
inheritAttrs: false
|
|
68
|
+
});
|
|
69
|
+
var PureList_default = PureList;
|
|
70
|
+
|
|
71
|
+
//#endregion
|
|
72
|
+
export { PureList_default as default };
|
|
@@ -1,43 +1,46 @@
|
|
|
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 { IconType, NotificationSemanticClassNames, NotificationSemanticStyles } from "./interface.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue206 from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/notification/PurePanel.d.ts
|
|
8
8
|
type PurePanelClassNamesType = SemanticClassNamesType<PurePanelProps, NotificationSemanticClassNames>;
|
|
9
9
|
type PurePanelStylesType = SemanticStylesType<PurePanelProps, NotificationSemanticStyles>;
|
|
10
|
-
declare function getCloseIcon(prefixCls: string, closeIcon?: VueNode): VueNode;
|
|
10
|
+
declare function getCloseIcon(prefixCls: string, closeIcon?: VueNode$1): VueNode$1;
|
|
11
11
|
interface PureContentProps {
|
|
12
12
|
prefixCls: string;
|
|
13
|
-
icon?: VueNode;
|
|
14
|
-
title?: VueNode;
|
|
15
|
-
description?: VueNode;
|
|
16
|
-
actions?: VueNode;
|
|
13
|
+
icon?: VueNode$1;
|
|
14
|
+
title?: VueNode$1;
|
|
15
|
+
description?: VueNode$1;
|
|
16
|
+
actions?: VueNode$1;
|
|
17
17
|
type?: IconType;
|
|
18
18
|
role?: 'alert' | 'status';
|
|
19
19
|
classes: NotificationSemanticClassNames;
|
|
20
20
|
styles: NotificationSemanticStyles;
|
|
21
21
|
}
|
|
22
|
-
declare const
|
|
22
|
+
declare const TypeIcon: Record<IconType, any>;
|
|
23
|
+
declare function resolveIconNode(icon: VueNode$1 | undefined, type: IconType | undefined): VueNode$1;
|
|
24
|
+
declare function getIconWrapperClassName(prefixCls: string, type: IconType | undefined): string;
|
|
25
|
+
declare const PureContent: vue206.DefineSetupFnComponent<PureContentProps, {}, {}, PureContentProps & {}, vue206.PublicProps>;
|
|
23
26
|
interface PurePanelProps extends Omit<PureContentProps, 'prefixCls' | 'children' | 'classes' | 'styles'> {
|
|
24
|
-
content?: VueNode;
|
|
27
|
+
content?: VueNode$1;
|
|
25
28
|
duration?: number | false | null;
|
|
26
29
|
showProgress?: boolean;
|
|
27
30
|
pauseOnHover?: boolean;
|
|
28
31
|
closable?: boolean | ({
|
|
29
|
-
closeIcon?: VueNode;
|
|
32
|
+
closeIcon?: VueNode$1;
|
|
30
33
|
onClose?: VoidFunction;
|
|
31
34
|
} & Record<string, any>);
|
|
32
35
|
prefixCls?: string;
|
|
33
36
|
classes?: PurePanelClassNamesType;
|
|
34
37
|
styles?: PurePanelStylesType;
|
|
35
|
-
closeIcon?: VueNode;
|
|
38
|
+
closeIcon?: VueNode$1;
|
|
36
39
|
props?: Record<string, any>;
|
|
37
40
|
onClose?: VoidFunction;
|
|
38
41
|
onClick?: (event: Event) => void;
|
|
39
42
|
}
|
|
40
43
|
/** @private Internal Component. Do not use in your production. */
|
|
41
|
-
declare const PurePanel:
|
|
44
|
+
declare const PurePanel: vue206.DefineSetupFnComponent<PurePanelProps, {}, {}, PurePanelProps & {}, vue206.PublicProps>;
|
|
42
45
|
//#endregion
|
|
43
|
-
export { PureContent, PureContentProps, PurePanelClassNamesType, PurePanelProps, PurePanelStylesType, PurePanel as default, getCloseIcon };
|
|
46
|
+
export { PureContent, PureContentProps, PurePanelClassNamesType, PurePanelProps, PurePanelStylesType, TypeIcon, PurePanel as default, getCloseIcon, getIconWrapperClassName, resolveIconNode };
|
|
@@ -2,26 +2,35 @@ import { useBaseConfig, useComponentBaseConfig } from "../config-provider/contex
|
|
|
2
2
|
import { pureAttrs, useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
4
4
|
import useCSSVarCls_default from "../config-provider/hooks/useCSSVarCls.js";
|
|
5
|
+
import style_default, { PurePanelStyle } from "./style/index.js";
|
|
6
|
+
import isNonNullable_default from "../_util/isNonNullable.js";
|
|
5
7
|
import useClosable, { pickClosable } from "../_util/hooks/useClosable.js";
|
|
6
|
-
import style_default from "./style/index.js";
|
|
7
|
-
import pure_panel_default from "./style/pure-panel.js";
|
|
8
8
|
import { computed, createVNode, defineComponent, mergeDefaults, mergeProps } from "vue";
|
|
9
9
|
import { clsx } from "@v-c/util";
|
|
10
10
|
import { CheckCircleFilled, CloseCircleFilled, CloseOutlined, ExclamationCircleFilled, InfoCircleFilled } from "@antdv-next/icons";
|
|
11
11
|
import { omit } from "es-toolkit";
|
|
12
|
-
import {
|
|
12
|
+
import { Notification } from "@v-c/notification";
|
|
13
13
|
|
|
14
14
|
//#region src/notification/PurePanel.tsx
|
|
15
15
|
function getCloseIcon(prefixCls, closeIcon) {
|
|
16
16
|
if (closeIcon === null || closeIcon === false) return null;
|
|
17
17
|
return closeIcon || createVNode(CloseOutlined, { "class": `${prefixCls}-close-icon` }, null);
|
|
18
18
|
}
|
|
19
|
-
const
|
|
19
|
+
const TypeIcon = {
|
|
20
20
|
success: CheckCircleFilled,
|
|
21
21
|
info: InfoCircleFilled,
|
|
22
22
|
error: CloseCircleFilled,
|
|
23
23
|
warning: ExclamationCircleFilled
|
|
24
24
|
};
|
|
25
|
+
const typeToIcon = TypeIcon;
|
|
26
|
+
function resolveIconNode(icon, type) {
|
|
27
|
+
if (icon) return icon;
|
|
28
|
+
if (type && typeToIcon[type]) return createVNode(typeToIcon[type]);
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
function getIconWrapperClassName(prefixCls, type) {
|
|
32
|
+
return type ? `${prefixCls}-icon-${type}` : "";
|
|
33
|
+
}
|
|
25
34
|
const defaults = { role: "alert" };
|
|
26
35
|
const PureContent = /* @__PURE__ */ defineComponent((props) => {
|
|
27
36
|
return () => {
|
|
@@ -36,12 +45,13 @@ const PureContent = /* @__PURE__ */ defineComponent((props) => {
|
|
|
36
45
|
style: styles.icon
|
|
37
46
|
});
|
|
38
47
|
else iconNode = null;
|
|
48
|
+
const hasTitle = isNonNullable_default(title) && title !== false && title !== "";
|
|
39
49
|
return createVNode("div", {
|
|
40
50
|
"class": clsx({ [`${prefixCls}-with-icon`]: iconNode }),
|
|
41
51
|
"role": role
|
|
42
52
|
}, [
|
|
43
53
|
iconNode,
|
|
44
|
-
|
|
54
|
+
hasTitle && createVNode("div", {
|
|
45
55
|
"class": clsx(`${prefixCls}-title`, pureContentCls.title),
|
|
46
56
|
"style": styles.title
|
|
47
57
|
}, [title]),
|
|
@@ -179,28 +189,41 @@ const PurePanel = /* @__PURE__ */ defineComponent((props, { attrs, slots }) => {
|
|
|
179
189
|
const style = attrs.style;
|
|
180
190
|
const restProps = omit(props, omitKeys);
|
|
181
191
|
const actions = getSlotPropsFnRun(slots, props, "actions");
|
|
192
|
+
const titleNode = getSlotPropsFnRun(slots, props, "title");
|
|
193
|
+
const descriptionNode = getSlotPropsFnRun(slots, props, "description");
|
|
194
|
+
const slotIcon = getSlotPropsFnRun(slots, props, "icon");
|
|
195
|
+
const mergedNcs = mergedClassNames.value;
|
|
196
|
+
const mergedNss = mergedStyles.value;
|
|
197
|
+
const iconNode = resolveIconNode(slotIcon ?? props.icon, props.type);
|
|
198
|
+
const iconWrapperClass = clsx(getIconWrapperClassName(noticePrefixCls, props.type), mergedNcs?.icon);
|
|
182
199
|
return createVNode("div", {
|
|
183
200
|
"class": clsx(`${noticePrefixCls}-pure-panel`, hashId.value, notificationClassName, cssVarCls.value, rootCls.value, mergedClassNames.value?.root),
|
|
184
201
|
"style": mergedStyles.value.root
|
|
185
|
-
}, [createVNode(
|
|
202
|
+
}, [createVNode(PurePanelStyle, { "prefixCls": prefixCls.value }, null), createVNode(Notification, mergeProps({ "style": {
|
|
186
203
|
...contextStyle.value,
|
|
187
204
|
...style
|
|
188
205
|
} }, pureAttrs(attrs), restProps, {
|
|
189
206
|
"prefixCls": prefixCls.value,
|
|
190
|
-
"eventKey": "pure",
|
|
191
207
|
"duration": null,
|
|
192
208
|
"closable": mergedClosable.value,
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
209
|
+
"role": props.role,
|
|
210
|
+
"class": clsx(notificationClassName, contextClassName.value, { [`${noticePrefixCls}-with-icon`]: !!iconNode }),
|
|
211
|
+
"icon": iconNode,
|
|
212
|
+
"title": titleNode,
|
|
213
|
+
"description": descriptionNode,
|
|
214
|
+
"actions": actions,
|
|
215
|
+
"classNames": {
|
|
216
|
+
icon: iconWrapperClass,
|
|
217
|
+
title: mergedNcs?.title,
|
|
218
|
+
description: mergedNcs?.description,
|
|
219
|
+
actions: mergedNcs?.actions
|
|
220
|
+
},
|
|
221
|
+
"styles": {
|
|
222
|
+
icon: mergedNss?.icon,
|
|
223
|
+
title: mergedNss?.title,
|
|
224
|
+
description: mergedNss?.description,
|
|
225
|
+
actions: mergedNss?.actions
|
|
226
|
+
}
|
|
204
227
|
}), null)]);
|
|
205
228
|
};
|
|
206
229
|
}, {
|
|
@@ -337,4 +360,4 @@ const PurePanel = /* @__PURE__ */ defineComponent((props, { attrs, slots }) => {
|
|
|
337
360
|
var PurePanel_default = PurePanel;
|
|
338
361
|
|
|
339
362
|
//#endregion
|
|
340
|
-
export { PureContent, PurePanel_default as default, getCloseIcon };
|
|
363
|
+
export { PureContent, TypeIcon, PurePanel_default as default, getCloseIcon, getIconWrapperClassName, resolveIconNode };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ArgsProps, GlobalConfigProps } from "./interface.js";
|
|
2
|
+
import PureList from "./PureList.js";
|
|
2
3
|
import PurePanel from "./PurePanel.js";
|
|
3
4
|
import useNotification from "./useNotification.js";
|
|
4
5
|
import { Key } from "@v-c/util/dist/type";
|
|
@@ -11,6 +12,8 @@ interface BaseMethods {
|
|
|
11
12
|
useNotification: typeof useNotification;
|
|
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
|
type StaticFn = (config: ArgsProps) => void;
|
|
16
19
|
interface NoticeMethods {
|
|
@@ -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 useNotification, { useInternalNotification } from "./useNotification.js";
|
|
6
7
|
import { createVNode, defineComponent, getCurrentInstance, isVNode, onMounted, render, shallowRef, watch } from "vue";
|
|
7
8
|
|
|
@@ -176,7 +177,8 @@ const staticMethods = {
|
|
|
176
177
|
destroy,
|
|
177
178
|
config: setNotificationGlobalConfig,
|
|
178
179
|
useNotification,
|
|
179
|
-
_InternalPanelDoNotUseOrYouWillBeFired: PurePanel_default
|
|
180
|
+
_InternalPanelDoNotUseOrYouWillBeFired: PurePanel_default,
|
|
181
|
+
_InternalListDoNotUseOrYouWillBeFired: PureList_default
|
|
180
182
|
};
|
|
181
183
|
methods.forEach((type) => {
|
|
182
184
|
staticMethods[type] = (config) => open({
|
|
@@ -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 { ClosableType } from "../_util/hooks/useClosable.js";
|
|
@@ -30,15 +30,15 @@ interface NotificationSemanticStyles {
|
|
|
30
30
|
type NotificationClassNamesType = SemanticClassNamesType<ArgsProps, NotificationSemanticClassNames>;
|
|
31
31
|
type NotificationStylesType = SemanticStylesType<ArgsProps, NotificationSemanticStyles>;
|
|
32
32
|
interface ArgsProps {
|
|
33
|
-
title?: VueNode;
|
|
34
|
-
description?: VueNode;
|
|
35
|
-
actions?: VueNode;
|
|
33
|
+
title?: VueNode$1;
|
|
34
|
+
description?: VueNode$1;
|
|
35
|
+
actions?: VueNode$1;
|
|
36
36
|
key?: Key;
|
|
37
37
|
onClose?: () => void;
|
|
38
38
|
duration?: number | false;
|
|
39
39
|
showProgress?: boolean;
|
|
40
40
|
pauseOnHover?: boolean;
|
|
41
|
-
icon?: VueNode;
|
|
41
|
+
icon?: VueNode$1;
|
|
42
42
|
placement?: NotificationPlacement;
|
|
43
43
|
style?: CSSProperties;
|
|
44
44
|
class?: string;
|
|
@@ -46,7 +46,7 @@ interface ArgsProps {
|
|
|
46
46
|
styles?: NotificationStylesType;
|
|
47
47
|
readonly type?: IconType;
|
|
48
48
|
onClick?: () => void;
|
|
49
|
-
closeIcon?: VueNode;
|
|
49
|
+
closeIcon?: VueNode$1;
|
|
50
50
|
closable?: boolean | (Exclude<ClosableType, boolean> & {
|
|
51
51
|
onClose?: () => void;
|
|
52
52
|
});
|
|
@@ -67,7 +67,7 @@ interface NotificationConfig {
|
|
|
67
67
|
duration?: number | false;
|
|
68
68
|
showProgress?: boolean;
|
|
69
69
|
pauseOnHover?: boolean;
|
|
70
|
-
closeIcon?: VueNode;
|
|
70
|
+
closeIcon?: VueNode$1;
|
|
71
71
|
classes?: NotificationClassNamesType;
|
|
72
72
|
styles?: NotificationStylesType;
|
|
73
73
|
}
|
|
@@ -89,7 +89,7 @@ interface GlobalConfigProps {
|
|
|
89
89
|
prefixCls?: string;
|
|
90
90
|
getContainer?: () => HTMLElement | ShadowRoot;
|
|
91
91
|
placement?: NotificationPlacement;
|
|
92
|
-
closeIcon?: VueNode;
|
|
92
|
+
closeIcon?: VueNode$1;
|
|
93
93
|
closable?: ClosableType;
|
|
94
94
|
rtl?: boolean;
|
|
95
95
|
maxCount?: number;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { AliasToken } from "../../theme/interface/alias.js";
|
|
2
1
|
import { FullToken, GenStyleFn } from "../../theme/interface/cssinjs-utils.js";
|
|
3
2
|
import { GenerateStyle } from "../../theme/interface/index.js";
|
|
4
3
|
import "../../theme/internal.js";
|
|
5
|
-
import * as
|
|
6
|
-
import { CSSObject } from "@antdv-next/cssinjs";
|
|
4
|
+
import * as vue421 from "vue";
|
|
7
5
|
|
|
8
6
|
//#region src/notification/style/index.d.ts
|
|
7
|
+
type WidthKey<Token extends NotificationToken> = { [Key in keyof Token]: Token[Key] extends number | string ? Key : never }[keyof Token];
|
|
8
|
+
interface SharedStyleConfig<Token extends NotificationToken> {
|
|
9
|
+
listWidthKey?: WidthKey<Token>;
|
|
10
|
+
stackVisibleCount?: number;
|
|
11
|
+
itemStyle?: GenerateStyle<Token>;
|
|
12
|
+
}
|
|
9
13
|
/** Component only token. Which will handle additional calculation of alias token */
|
|
10
14
|
interface ComponentToken {
|
|
11
15
|
/**
|
|
@@ -49,11 +53,6 @@ interface ComponentToken {
|
|
|
49
53
|
* @descEN Token for Notification component
|
|
50
54
|
*/
|
|
51
55
|
interface NotificationToken extends FullToken<'Notification'> {
|
|
52
|
-
/**
|
|
53
|
-
* @desc 动画最大高度
|
|
54
|
-
* @descEN Maximum height of animation
|
|
55
|
-
*/
|
|
56
|
-
animationMaxHeight: number | string;
|
|
57
56
|
/**
|
|
58
57
|
* @desc 提醒框背景色
|
|
59
58
|
* @descEN Background color of Notification
|
|
@@ -68,7 +67,7 @@ interface NotificationToken extends FullToken<'Notification'> {
|
|
|
68
67
|
* @desc 提醒框垂直内边距
|
|
69
68
|
* @descEN Vertical padding of Notification
|
|
70
69
|
*/
|
|
71
|
-
notificationPaddingVertical: number;
|
|
70
|
+
notificationPaddingVertical: number | string;
|
|
72
71
|
/**
|
|
73
72
|
* @desc 提醒框水平内边距
|
|
74
73
|
* @descEN Horizontal padding of Notification
|
|
@@ -94,28 +93,30 @@ interface NotificationToken extends FullToken<'Notification'> {
|
|
|
94
93
|
* @descEN Edge margin of Notification
|
|
95
94
|
*/
|
|
96
95
|
notificationMarginEdge: number;
|
|
97
|
-
/**
|
|
98
|
-
* @desc 提醒框堆叠层数
|
|
99
|
-
* @descEN Stack layer of Notification
|
|
100
|
-
*/
|
|
101
|
-
notificationStackLayer: number;
|
|
102
96
|
/**
|
|
103
97
|
* @desc 提醒框进度条高度
|
|
104
98
|
* @descEN Height of Notification progress bar
|
|
105
99
|
*/
|
|
106
100
|
notificationProgressHeight: number;
|
|
101
|
+
/**
|
|
102
|
+
* @desc 提醒框入场动画偏移
|
|
103
|
+
* @descEN Motion offset of Notification
|
|
104
|
+
*/
|
|
105
|
+
notificationMotionOffset: number;
|
|
107
106
|
}
|
|
108
|
-
|
|
109
|
-
declare function prepareComponentToken(token: AliasToken): {
|
|
110
|
-
zIndexPopup: number;
|
|
111
|
-
width: number;
|
|
112
|
-
progressBg: string;
|
|
113
|
-
colorSuccessBg: undefined;
|
|
114
|
-
colorErrorBg: undefined;
|
|
115
|
-
colorInfoBg: undefined;
|
|
116
|
-
colorWarningBg: undefined;
|
|
117
|
-
};
|
|
107
|
+
/** Derive internal Notification style tokens from alias and component tokens. */
|
|
118
108
|
declare const prepareNotificationToken: (token: Parameters<GenStyleFn<'Notification'>>[0]) => NotificationToken;
|
|
119
|
-
|
|
109
|
+
/** Register the PurePanel sub-style component for Notification. */
|
|
110
|
+
declare const PurePanelStyle: vue421.DefineComponent<vue421.ExtractPropTypes<{
|
|
111
|
+
prefixCls: StringConstructor;
|
|
112
|
+
rootCls: StringConstructor;
|
|
113
|
+
}>, () => null, {}, {}, {}, vue421.ComponentOptionsMixin, vue421.ComponentOptionsMixin, {}, string, vue421.PublicProps, Readonly<vue421.ExtractPropTypes<{
|
|
114
|
+
prefixCls: StringConstructor;
|
|
115
|
+
rootCls: StringConstructor;
|
|
116
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, vue421.ComponentProvideOptions, true, {}, any>;
|
|
117
|
+
/** Compose the shared list, item, and placement styles. */
|
|
118
|
+
declare function sharedGenerateStyle<Token extends NotificationToken>(token: Token, config: SharedStyleConfig<Token>): ReturnType<GenerateStyle<Token>>;
|
|
119
|
+
/** Register the main style hook for Notification. */
|
|
120
|
+
declare const _default: (prefixCls: vue421.Ref<string>, rootCls?: vue421.Ref<string | undefined>) => readonly [vue421.Ref<string, string>, vue421.ComputedRef<string | undefined>];
|
|
120
121
|
//#endregion
|
|
121
|
-
export { ComponentToken, NotificationToken, _default as default,
|
|
122
|
+
export { ComponentToken, NotificationToken, PurePanelStyle, _default as default, prepareNotificationToken, sharedGenerateStyle };
|