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,73 +1,138 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NotificationPlacements } from "../interface.js";
|
|
2
|
+
import { unit } from "@antdv-next/cssinjs";
|
|
2
3
|
|
|
3
4
|
//#region src/notification/style/placement.ts
|
|
4
|
-
const
|
|
5
|
-
|
|
5
|
+
const notificationMarginEdgeVar = "--notification-margin-edge";
|
|
6
|
+
/** Resolve the opposite block and inline edges for a placement. */
|
|
7
|
+
function getPlacementOffset(vertical, horizontal) {
|
|
8
|
+
return {
|
|
9
|
+
blockEnd: vertical === "top" ? "bottom" : "top",
|
|
10
|
+
inlineEnd: horizontal === "left" ? "right" : "left"
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/** Convert placement offsets into the transform used by notice motion. */
|
|
14
|
+
function getMotionTransform(motionOffset) {
|
|
15
|
+
return `translate3d(${motionOffset?.x ?? "0"}, ${motionOffset?.y ?? "0"}, 0) scale(var(--notification-scale, 1))`;
|
|
16
|
+
}
|
|
17
|
+
/** Build the placement metadata used by position and motion styles. */
|
|
18
|
+
function getPlacementStyleConfig(placement, motionOffset) {
|
|
19
|
+
const vertical = placement.startsWith("bottom") ? "bottom" : "top";
|
|
20
|
+
const horizontal = placement.endsWith("Right") ? "right" : "left";
|
|
21
|
+
const { blockEnd, inlineEnd } = getPlacementOffset(vertical, horizontal);
|
|
22
|
+
const isCenterPlacement = placement === "top" || placement === "bottom";
|
|
23
|
+
const offset = placement === "top" || placement.endsWith("Left") ? `-${motionOffset}` : motionOffset;
|
|
24
|
+
return {
|
|
25
|
+
placement,
|
|
26
|
+
vertical,
|
|
27
|
+
blockEnd,
|
|
28
|
+
horizontal,
|
|
29
|
+
inlineEnd,
|
|
30
|
+
motionOffset: isCenterPlacement ? {
|
|
31
|
+
x: "-50%",
|
|
32
|
+
y: offset
|
|
33
|
+
} : { x: offset },
|
|
34
|
+
baseMotionOffset: isCenterPlacement ? { x: "-50%" } : void 0,
|
|
35
|
+
isCenterPlacement
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
/** Get the list direction for a vertical placement. */
|
|
39
|
+
function getPlacementFlexDirection(vertical) {
|
|
40
|
+
return vertical === "bottom" ? "column-reverse" : "column";
|
|
41
|
+
}
|
|
42
|
+
/** Keep configured top/bottom as the visible notice edge while list padding preserves shadows. */
|
|
43
|
+
function getPlacementInset(vertical) {
|
|
44
|
+
const marginEdge = `var(${notificationMarginEdgeVar}, 0px)`;
|
|
45
|
+
return `calc(var(--notification-${vertical}, ${marginEdge}) - ${marginEdge})`;
|
|
46
|
+
}
|
|
47
|
+
/** Get the transform origin used by stacked notice scaling. */
|
|
48
|
+
function getPlacementTransformOrigin(vertical) {
|
|
49
|
+
return vertical === "bottom" ? "center top" : "center bottom";
|
|
50
|
+
}
|
|
51
|
+
/** Calculate the clip offset that preserves stack shadows. */
|
|
52
|
+
function getStackShadowClipOffset(token) {
|
|
53
|
+
return unit(token.calc(token.marginXXL).mul(-1).equal());
|
|
54
|
+
}
|
|
55
|
+
/** Build the default stack clip-path for a visible notice. */
|
|
56
|
+
function getStackNoticeClipPath(token) {
|
|
57
|
+
const offset = getStackShadowClipOffset(token);
|
|
58
|
+
return `inset(${offset} ${offset} ${offset} ${offset})`;
|
|
59
|
+
}
|
|
60
|
+
/** Build the collapsed stack clip-path for a placement. */
|
|
61
|
+
function getPlacementStackClipPath(token, vertical) {
|
|
62
|
+
const offset = getStackShadowClipOffset(token);
|
|
63
|
+
return vertical === "bottom" ? `inset(${offset} ${offset} 50% ${offset})` : `inset(50% ${offset} ${offset} ${offset})`;
|
|
64
|
+
}
|
|
65
|
+
/** Generate styles for a single notification placement. */
|
|
66
|
+
function genPlacementStyle(token, config) {
|
|
67
|
+
const { componentCls } = token;
|
|
68
|
+
const { placement, vertical, blockEnd, horizontal, inlineEnd, isCenterPlacement } = config;
|
|
6
69
|
const noticeCls = `${componentCls}-notice`;
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
70
|
+
const noticeMotionCls = `${noticeCls}${componentCls}-fade`;
|
|
71
|
+
const enterTransform = getMotionTransform(config.motionOffset);
|
|
72
|
+
const baseTransform = getMotionTransform(config.baseMotionOffset);
|
|
73
|
+
const transformOrigin = getPlacementTransformOrigin(vertical);
|
|
74
|
+
return { [`&${componentCls}-${placement}`]: {
|
|
75
|
+
[vertical]: getPlacementInset(vertical),
|
|
76
|
+
[blockEnd]: "auto",
|
|
77
|
+
display: "flex",
|
|
78
|
+
flexDirection: getPlacementFlexDirection(vertical),
|
|
79
|
+
...isCenterPlacement ? {
|
|
80
|
+
marginInline: 0,
|
|
81
|
+
left: "50%",
|
|
82
|
+
right: "auto",
|
|
83
|
+
transform: "translateX(-50%)"
|
|
84
|
+
} : {
|
|
85
|
+
[horizontal]: 0,
|
|
86
|
+
[inlineEnd]: "auto"
|
|
11
87
|
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
top: -animationMaxHeight,
|
|
20
|
-
opacity: 0
|
|
88
|
+
[noticeCls]: {
|
|
89
|
+
[vertical]: "var(--notification-y, 0)",
|
|
90
|
+
...isCenterPlacement ? {
|
|
91
|
+
left: "50%",
|
|
92
|
+
transform: baseTransform
|
|
93
|
+
} : { [horizontal]: "var(--notification-x, 0)" },
|
|
94
|
+
transformOrigin
|
|
21
95
|
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
});
|
|
27
|
-
const bottomFadeIn = new Keyframes("antNotificationBottomFadeIn", {
|
|
28
|
-
"0%": {
|
|
29
|
-
bottom: token.calc(animationMaxHeight).mul(-1).equal(),
|
|
30
|
-
opacity: 0
|
|
96
|
+
[`${noticeMotionCls}-appear-prepare, ${noticeMotionCls}-enter-prepare`]: {
|
|
97
|
+
opacity: 0,
|
|
98
|
+
transform: enterTransform,
|
|
99
|
+
transition: "none"
|
|
31
100
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
const leftFadeIn = new Keyframes("antNotificationLeftFadeIn", {
|
|
38
|
-
"0%": {
|
|
39
|
-
transform: `translate3d(-100%, 0, 0)`,
|
|
40
|
-
opacity: 0
|
|
101
|
+
[`${noticeMotionCls}-appear-start, ${noticeMotionCls}-enter-start`]: {
|
|
102
|
+
opacity: 0,
|
|
103
|
+
transform: enterTransform
|
|
41
104
|
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
marginInline: 0,
|
|
50
|
-
[noticeCls]: { marginInline: "auto auto" }
|
|
105
|
+
[`${noticeMotionCls}-appear-active, ${noticeMotionCls}-enter-active`]: {
|
|
106
|
+
opacity: 1,
|
|
107
|
+
transform: baseTransform
|
|
108
|
+
},
|
|
109
|
+
[`${noticeMotionCls}-leave-start`]: {
|
|
110
|
+
opacity: 1,
|
|
111
|
+
transform: baseTransform
|
|
51
112
|
},
|
|
52
|
-
[
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
marginLeft: {
|
|
61
|
-
value: notificationMarginEdge,
|
|
62
|
-
_skip_check_: true
|
|
63
|
-
},
|
|
64
|
-
[noticeCls]: {
|
|
65
|
-
marginInlineEnd: "auto",
|
|
66
|
-
marginInlineStart: 0
|
|
67
|
-
},
|
|
68
|
-
[`${componentCls}-fade-enter${componentCls}-fade-enter-active, ${componentCls}-fade-appear${componentCls}-fade-appear-active`]: { animationName: leftFadeIn }
|
|
113
|
+
[`${noticeMotionCls}-leave-active`]: {
|
|
114
|
+
opacity: 0,
|
|
115
|
+
transform: enterTransform
|
|
116
|
+
},
|
|
117
|
+
[`&${componentCls}-stack:not(${componentCls}-stack-expanded)`]: {
|
|
118
|
+
[noticeCls]: { clipPath: getPlacementStackClipPath(token, vertical) },
|
|
119
|
+
[`${noticeCls}[data-notification-index='0']`]: { clipPath: getStackNoticeClipPath(token) }
|
|
69
120
|
}
|
|
70
121
|
} };
|
|
122
|
+
}
|
|
123
|
+
/** Generate placement styles for all enabled notification placements. */
|
|
124
|
+
function genNotificationPlacementRootStyle(token, placements = NotificationPlacements) {
|
|
125
|
+
const { notificationMotionOffset } = token;
|
|
126
|
+
const motionOffset = unit(notificationMotionOffset);
|
|
127
|
+
return { ...placements.reduce((styles, placement) => ({
|
|
128
|
+
...styles,
|
|
129
|
+
...genPlacementStyle(token, getPlacementStyleConfig(placement, motionOffset))
|
|
130
|
+
}), {}) };
|
|
131
|
+
}
|
|
132
|
+
/** Wrap placement styles under the component root selector. */
|
|
133
|
+
const genNotificationPlacementStyle = (token) => {
|
|
134
|
+
const { componentCls } = token;
|
|
135
|
+
return { [componentCls]: genNotificationPlacementRootStyle(token) };
|
|
71
136
|
};
|
|
72
137
|
var placement_default = genNotificationPlacementStyle;
|
|
73
138
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { NotificationConfig, NotificationInstance } from "./interface.js";
|
|
2
2
|
import { MaybeRef } from "@v-c/util/dist/type";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue_jsx_runtime14 from "vue/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/notification/useNotification.d.ts
|
|
6
6
|
type HolderProps = NotificationConfig & {
|
|
7
7
|
onAllRemoved?: VoidFunction;
|
|
8
8
|
};
|
|
9
|
-
declare function useInternalNotification(notificationConfig?: MaybeRef<HolderProps>): readonly [NotificationInstance, () =>
|
|
10
|
-
declare function useNotification(notificationConfig?: MaybeRef<NotificationConfig>): readonly [NotificationInstance, () =>
|
|
9
|
+
declare function useInternalNotification(notificationConfig?: MaybeRef<HolderProps>): readonly [NotificationInstance, () => vue_jsx_runtime14.JSX.Element];
|
|
10
|
+
declare function useNotification(notificationConfig?: MaybeRef<NotificationConfig>): readonly [NotificationInstance, () => vue_jsx_runtime14.JSX.Element];
|
|
11
11
|
//#endregion
|
|
12
12
|
export { useNotification as default, useInternalNotification };
|
|
@@ -4,10 +4,10 @@ import useToken from "../theme/useToken.js";
|
|
|
4
4
|
import { mergeClassNames, mergeStyles, resolveStyleOrClass, useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
5
5
|
import { toPropsRefs } from "../_util/tools.js";
|
|
6
6
|
import useCSSVarCls_default from "../config-provider/hooks/useCSSVarCls.js";
|
|
7
|
-
import { computeClosable, pickClosable } from "../_util/hooks/useClosable.js";
|
|
8
7
|
import style_default from "./style/index.js";
|
|
9
|
-
import { PureContent, getCloseIcon } from "./PurePanel.js";
|
|
10
8
|
import { getCloseIconConfig, getMotion, getPlacementStyle } from "./util.js";
|
|
9
|
+
import { computeClosable, pickClosable } from "../_util/hooks/useClosable.js";
|
|
10
|
+
import { getCloseIcon, getIconWrapperClassName, resolveIconNode } from "./PurePanel.js";
|
|
11
11
|
import { computed, createVNode, defineComponent, isVNode, mergeDefaults, mergeProps, shallowRef, unref } from "vue";
|
|
12
12
|
import { clsx } from "@v-c/util";
|
|
13
13
|
import { useNotification as useNotification$1, useNotificationProvider } from "@v-c/notification";
|
|
@@ -198,21 +198,29 @@ function useInternalNotification(notificationConfig) {
|
|
|
198
198
|
const semanticStyles = resolveStyleOrClass(styles, { props: config });
|
|
199
199
|
const mergedClassNames = mergeClassNames(void 0, originClassNames, semanticClassNames);
|
|
200
200
|
const mergedStyles = mergeStyles(originStyles, semanticStyles);
|
|
201
|
+
const iconNode = resolveIconNode(icon, type);
|
|
202
|
+
const iconWrapperClass = clsx(getIconWrapperClassName(noticePrefixCls, type), mergedClassNames.icon);
|
|
201
203
|
return originOpen({
|
|
202
204
|
placement: unref(notificationConfig)?.placement ?? DEFAULT_PLACEMENT,
|
|
203
205
|
...restConfig,
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
},
|
|
215
|
-
|
|
206
|
+
icon: iconNode,
|
|
207
|
+
title: mergedTitle,
|
|
208
|
+
description,
|
|
209
|
+
actions: mergedActions,
|
|
210
|
+
role,
|
|
211
|
+
classNames: {
|
|
212
|
+
icon: iconWrapperClass,
|
|
213
|
+
title: mergedClassNames.title,
|
|
214
|
+
description: mergedClassNames.description,
|
|
215
|
+
actions: mergedClassNames.actions
|
|
216
|
+
},
|
|
217
|
+
styles: {
|
|
218
|
+
icon: mergedStyles.icon,
|
|
219
|
+
title: mergedStyles.title,
|
|
220
|
+
description: mergedStyles.description,
|
|
221
|
+
actions: mergedStyles.actions
|
|
222
|
+
},
|
|
223
|
+
class: clsx({ [`${noticePrefixCls}-${type}`]: type }, { [`${noticePrefixCls}-with-icon`]: !!iconNode }, className, contextClassName, mergedClassNames.root),
|
|
216
224
|
style: {
|
|
217
225
|
...contextStyle,
|
|
218
226
|
...mergedStyles.root,
|
|
@@ -1,12 +1,22 @@
|
|
|
1
|
-
import { VueNode } from "../_util/type.js";
|
|
1
|
+
import { VueNode as VueNode$1 } from "../_util/type.js";
|
|
2
2
|
import { NotificationConfig, NotificationPlacement } from "./interface.js";
|
|
3
3
|
import { NotificationConfig as NotificationConfig$1 } from "../config-provider/context.js";
|
|
4
4
|
import { CSSProperties } from "vue";
|
|
5
5
|
import { CSSMotionProps } from "@v-c/util/dist/utils/transition";
|
|
6
6
|
|
|
7
7
|
//#region src/notification/util.d.ts
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Mirror ant-design 6.4.0 getPlacementOffsetStyle: surface positioning via
|
|
10
|
+
* the --notification-top / --notification-bottom CSS variables that the
|
|
11
|
+
* new placement.ts style file consumes. Setting inline `top: Npx` would
|
|
12
|
+
* defeat the holder's `inset` calc and force the holder to occupy the
|
|
13
|
+
* full --notification-margin-edge gap, which manifests as a tall empty
|
|
14
|
+
* strip at the top of the page when scrolled.
|
|
15
|
+
*/
|
|
16
|
+
declare function getPlacementOffsetStyle(top?: number | string, bottom?: number | string): CSSProperties;
|
|
17
|
+
/** @deprecated kept for the message wrapper; routes through getPlacementOffsetStyle. */
|
|
18
|
+
declare function getPlacementStyle(_placement: NotificationPlacement, top: number, bottom: number): CSSProperties;
|
|
9
19
|
declare function getMotion(prefixCls: string): CSSMotionProps;
|
|
10
|
-
declare function getCloseIconConfig(closeIcon: VueNode, notificationConfig?: NotificationConfig, notification?: NotificationConfig$1): VueNode;
|
|
20
|
+
declare function getCloseIconConfig(closeIcon: VueNode$1, notificationConfig?: NotificationConfig, notification?: NotificationConfig$1): VueNode$1;
|
|
11
21
|
//#endregion
|
|
12
|
-
export { getCloseIconConfig, getMotion, getPlacementStyle };
|
|
22
|
+
export { getCloseIconConfig, getMotion, getPlacementOffsetStyle, getPlacementStyle };
|
|
@@ -1,55 +1,21 @@
|
|
|
1
1
|
//#region src/notification/util.ts
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
break;
|
|
21
|
-
case "topRight":
|
|
22
|
-
style = {
|
|
23
|
-
right: 0,
|
|
24
|
-
top: `${top}px`,
|
|
25
|
-
bottom: "auto"
|
|
26
|
-
};
|
|
27
|
-
break;
|
|
28
|
-
case "bottom":
|
|
29
|
-
style = {
|
|
30
|
-
left: "50%",
|
|
31
|
-
transform: "translateX(-50%)",
|
|
32
|
-
right: "auto",
|
|
33
|
-
top: "auto",
|
|
34
|
-
bottom: `${bottom}px`
|
|
35
|
-
};
|
|
36
|
-
break;
|
|
37
|
-
case "bottomLeft":
|
|
38
|
-
style = {
|
|
39
|
-
left: 0,
|
|
40
|
-
top: "auto",
|
|
41
|
-
bottom: `${bottom}px`
|
|
42
|
-
};
|
|
43
|
-
break;
|
|
44
|
-
default:
|
|
45
|
-
style = {
|
|
46
|
-
right: 0,
|
|
47
|
-
top: "auto",
|
|
48
|
-
bottom: `${bottom}px`
|
|
49
|
-
};
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
return style;
|
|
2
|
+
/**
|
|
3
|
+
* Mirror ant-design 6.4.0 getPlacementOffsetStyle: surface positioning via
|
|
4
|
+
* the --notification-top / --notification-bottom CSS variables that the
|
|
5
|
+
* new placement.ts style file consumes. Setting inline `top: Npx` would
|
|
6
|
+
* defeat the holder's `inset` calc and force the holder to occupy the
|
|
7
|
+
* full --notification-margin-edge gap, which manifests as a tall empty
|
|
8
|
+
* strip at the top of the page when scrolled.
|
|
9
|
+
*/
|
|
10
|
+
function getPlacementOffsetStyle(top, bottom) {
|
|
11
|
+
const result = {};
|
|
12
|
+
if (top !== void 0 && top !== null) result["--notification-top"] = typeof top === "number" ? `${top}px` : top;
|
|
13
|
+
if (bottom !== void 0 && bottom !== null) result["--notification-bottom"] = typeof bottom === "number" ? `${bottom}px` : bottom;
|
|
14
|
+
return result;
|
|
15
|
+
}
|
|
16
|
+
/** @deprecated kept for the message wrapper; routes through getPlacementOffsetStyle. */
|
|
17
|
+
function getPlacementStyle(_placement, top, bottom) {
|
|
18
|
+
return getPlacementOffsetStyle(top, bottom);
|
|
53
19
|
}
|
|
54
20
|
function getMotion(prefixCls) {
|
|
55
21
|
return { name: `${prefixCls}-fade` };
|
|
@@ -61,4 +27,4 @@ function getCloseIconConfig(closeIcon, notificationConfig, notification) {
|
|
|
61
27
|
}
|
|
62
28
|
|
|
63
29
|
//#endregion
|
|
64
|
-
export { getCloseIconConfig, getMotion, getPlacementStyle };
|
|
30
|
+
export { getCloseIconConfig, getMotion, getPlacementOffsetStyle, getPlacementStyle };
|
package/dist/package.js
CHANGED
package/dist/package.json.d.ts
CHANGED
|
@@ -22,9 +22,9 @@ declare const _exports: {
|
|
|
22
22
|
default: string;
|
|
23
23
|
};
|
|
24
24
|
"./dist/*": {
|
|
25
|
-
types: string;
|
|
26
|
-
import: string;
|
|
27
|
-
default: string;
|
|
25
|
+
types: string[];
|
|
26
|
+
import: string[];
|
|
27
|
+
default: string[];
|
|
28
28
|
};
|
|
29
29
|
"./dist/locale/*": {
|
|
30
30
|
types: string;
|
|
@@ -37,9 +37,9 @@ declare const _exports: {
|
|
|
37
37
|
default: string;
|
|
38
38
|
};
|
|
39
39
|
"./date-picker/*": {
|
|
40
|
-
types: string;
|
|
41
|
-
import: string;
|
|
42
|
-
default: string;
|
|
40
|
+
types: string[];
|
|
41
|
+
import: string[];
|
|
42
|
+
default: string[];
|
|
43
43
|
};
|
|
44
44
|
"./date-picker/locale/*": {
|
|
45
45
|
types: string;
|
|
@@ -47,9 +47,9 @@ declare const _exports: {
|
|
|
47
47
|
default: string;
|
|
48
48
|
};
|
|
49
49
|
"./time-picker/*": {
|
|
50
|
-
types: string;
|
|
51
|
-
import: string;
|
|
52
|
-
default: string;
|
|
50
|
+
types: string[];
|
|
51
|
+
import: string[];
|
|
52
|
+
default: string[];
|
|
53
53
|
};
|
|
54
54
|
"./time-picker/locale/*": {
|
|
55
55
|
types: string;
|
|
@@ -62,9 +62,9 @@ declare const _exports: {
|
|
|
62
62
|
default: string;
|
|
63
63
|
};
|
|
64
64
|
"./date-picker/generate/*": {
|
|
65
|
-
types: string;
|
|
66
|
-
import: string;
|
|
67
|
-
default: string;
|
|
65
|
+
types: string[];
|
|
66
|
+
import: string[];
|
|
67
|
+
default: string[];
|
|
68
68
|
};
|
|
69
69
|
"./global.d.ts": string;
|
|
70
70
|
"./global": string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PaginationEmits, PaginationProps, PaginationSlots } from "./interface.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue198 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/pagination/Pagination.d.ts
|
|
@@ -10,6 +10,6 @@ interface PaginationEmitsProps {
|
|
|
10
10
|
'onUpdate:current'?: PaginationEmits['update:current'];
|
|
11
11
|
'onUpdate:pageSize'?: PaginationEmits['update:pageSize'];
|
|
12
12
|
}
|
|
13
|
-
declare const Pagination:
|
|
13
|
+
declare const Pagination: vue198.DefineSetupFnComponent<InternalPaginationProps, PaginationEmits, SlotsType<PaginationSlots>, InternalPaginationProps, vue198.PublicProps>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { InternalPaginationProps, PaginationEmitsProps, Pagination as default };
|
|
@@ -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 { SizeType } from "../config-provider/SizeContext.js";
|
|
@@ -34,7 +34,7 @@ type PaginationClassNamesType = SemanticClassNamesType<PaginationProps, Paginati
|
|
|
34
34
|
type PaginationStylesType = SemanticStylesType<PaginationProps, PaginationSemanticStyles>;
|
|
35
35
|
interface PaginationProps extends Omit<PaginationProps$1, 'className' | 'style' | 'classNames' | 'styles' | 'locale' | 'showSizeChanger' | 'pageSizeOptions' | 'prevIcon' | 'nextIcon' | 'jumpPrevIcon' | 'jumpNextIcon' | 'onChange' | 'onShowSizeChange'> {
|
|
36
36
|
showQuickJumper?: boolean | {
|
|
37
|
-
goButton?: VueNode;
|
|
37
|
+
goButton?: VueNode$1;
|
|
38
38
|
};
|
|
39
39
|
size?: SizeType;
|
|
40
40
|
responsive?: boolean;
|
|
@@ -45,10 +45,10 @@ interface PaginationProps extends Omit<PaginationProps$1, 'className' | 'style'
|
|
|
45
45
|
classes?: PaginationClassNamesType;
|
|
46
46
|
styles?: PaginationStylesType;
|
|
47
47
|
locale?: PaginationLocale;
|
|
48
|
-
prevIcon?: VueNode;
|
|
49
|
-
nextIcon?: VueNode;
|
|
50
|
-
jumpPrevIcon?: VueNode;
|
|
51
|
-
jumpNextIcon?: VueNode;
|
|
48
|
+
prevIcon?: VueNode$1;
|
|
49
|
+
nextIcon?: VueNode$1;
|
|
50
|
+
jumpPrevIcon?: VueNode$1;
|
|
51
|
+
jumpNextIcon?: VueNode$1;
|
|
52
52
|
/** @deprecated Not official support. Will be removed in next major version. */
|
|
53
53
|
selectComponentClass?: any;
|
|
54
54
|
}
|
|
@@ -66,7 +66,7 @@ interface PaginationSlots {
|
|
|
66
66
|
itemRender?: (ctx: {
|
|
67
67
|
page: number;
|
|
68
68
|
type: 'page' | 'prev' | 'next' | 'jump-prev' | 'jump-next';
|
|
69
|
-
element: VueNode;
|
|
69
|
+
element: VueNode$1;
|
|
70
70
|
}) => any;
|
|
71
71
|
showTotal?: (ctx: {
|
|
72
72
|
total: number;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue458 from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/pagination/style/bordered.d.ts
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: vue458.DefineComponent<vue458.ExtractPropTypes<{
|
|
5
5
|
prefixCls: StringConstructor;
|
|
6
6
|
rootCls: StringConstructor;
|
|
7
|
-
}>, () => null, {}, {}, {},
|
|
7
|
+
}>, () => null, {}, {}, {}, vue458.ComponentOptionsMixin, vue458.ComponentOptionsMixin, {}, string, vue458.PublicProps, Readonly<vue458.ExtractPropTypes<{
|
|
8
8
|
prefixCls: StringConstructor;
|
|
9
9
|
rootCls: StringConstructor;
|
|
10
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string,
|
|
10
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, vue458.ComponentProvideOptions, true, {}, any>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { _default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SharedComponentToken, SharedInputToken } from "../../input/style/token.js";
|
|
2
2
|
import { FullToken, GenStyleFn, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
3
3
|
import "../../theme/internal.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue515 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/pagination/style/index.d.ts
|
|
7
7
|
interface ComponentToken {
|
|
@@ -119,6 +119,6 @@ interface PaginationToken extends FullToken<'Pagination'>, SharedComponentToken,
|
|
|
119
119
|
}
|
|
120
120
|
declare const prepareComponentToken: GetDefaultToken<'Pagination'>;
|
|
121
121
|
declare function prepareToken(token: Parameters<GenStyleFn<'Pagination'>>[0]): PaginationToken;
|
|
122
|
-
declare const _default: (prefixCls:
|
|
122
|
+
declare const _default: (prefixCls: vue515.Ref<string>, rootCls?: vue515.Ref<string | undefined>) => readonly [vue515.Ref<string, string>, vue515.ComputedRef<string | undefined>];
|
|
123
123
|
//#endregion
|
|
124
124
|
export { ComponentToken, PaginationToken, _default as default, prepareComponentToken, prepareToken };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import * as vue344 from "vue";
|
|
1
|
+
import { PopconfirmProps, PopconfirmSemanticClassNames, PopconfirmSemanticStyles } from "./index.js";
|
|
2
|
+
import * as vue590 from "vue";
|
|
4
3
|
import { CSSProperties } from "vue";
|
|
5
4
|
|
|
6
5
|
//#region src/popconfirm/PurePanel.d.ts
|
|
@@ -14,14 +13,14 @@ interface OverlayProps extends Pick<PopconfirmProps, 'icon' | 'okButtonProps' |
|
|
|
14
13
|
onConfirm?: (e?: MouseEvent) => void;
|
|
15
14
|
onCancel?: (e?: MouseEvent) => void;
|
|
16
15
|
onPopupClick?: (e: MouseEvent) => void;
|
|
17
|
-
classes?:
|
|
18
|
-
styles?:
|
|
16
|
+
classes?: PopconfirmSemanticClassNames;
|
|
17
|
+
styles?: PopconfirmSemanticStyles;
|
|
19
18
|
}
|
|
20
|
-
declare const Overlay:
|
|
19
|
+
declare const Overlay: vue590.DefineSetupFnComponent<OverlayProps, {}, {}, OverlayProps & {}, vue590.PublicProps>;
|
|
21
20
|
interface PurePanelProps extends Omit<OverlayProps, 'prefixCls'>, Pick<PopconfirmProps, 'placement'> {
|
|
22
21
|
class?: string;
|
|
23
22
|
style?: CSSProperties;
|
|
24
23
|
}
|
|
25
|
-
declare const PurePanel:
|
|
24
|
+
declare const PurePanel: vue590.DefineSetupFnComponent<PurePanelProps, {}, {}, PurePanelProps & {}, vue590.PublicProps>;
|
|
26
25
|
//#endregion
|
|
27
26
|
export { Overlay, OverlayProps, PopconfirmLocale, PurePanelProps, PurePanel as default };
|
|
@@ -36,7 +36,10 @@ const Overlay = /* @__PURE__ */ defineComponent((props) => {
|
|
|
36
36
|
return createVNode("div", {
|
|
37
37
|
"class": `${prefixCls}-inner-content`,
|
|
38
38
|
"onClick": handlePopupClick
|
|
39
|
-
}, [createVNode("div", { "class": `${prefixCls}-message` }, [icon && createVNode("span", {
|
|
39
|
+
}, [createVNode("div", { "class": `${prefixCls}-message` }, [icon && createVNode("span", {
|
|
40
|
+
"class": clsx(`${prefixCls}-message-icon`, classes?.icon),
|
|
41
|
+
"style": styles?.icon
|
|
42
|
+
}, [icon]), createVNode("div", { "class": `${prefixCls}-message-text` }, [title && createVNode("div", {
|
|
40
43
|
"class": clsx(`${prefixCls}-title`, classes?.title),
|
|
41
44
|
"style": styles?.title
|
|
42
45
|
}, [title]), description && createVNode("div", {
|
|
@@ -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 { TooltipEmits, TooltipRef } from "../tooltip/index.js";
|
|
@@ -6,26 +6,30 @@ import { PopoverProps, PopoverSemanticClassNames, PopoverSemanticName, PopoverSe
|
|
|
6
6
|
import PurePanel from "./PurePanel.js";
|
|
7
7
|
import { ButtonProps, LegacyButtonType } from "../button/Button.js";
|
|
8
8
|
import "../button/index.js";
|
|
9
|
-
import * as
|
|
10
|
-
import { App, SlotsType } from "vue";
|
|
9
|
+
import * as vue817 from "vue";
|
|
10
|
+
import { App, CSSProperties, SlotsType } from "vue";
|
|
11
11
|
|
|
12
12
|
//#region src/popconfirm/index.d.ts
|
|
13
|
-
type PopconfirmSemanticName = PopoverSemanticName;
|
|
14
|
-
type PopconfirmSemanticClassNames = PopoverSemanticClassNames
|
|
15
|
-
|
|
13
|
+
type PopconfirmSemanticName = PopoverSemanticName | 'icon';
|
|
14
|
+
type PopconfirmSemanticClassNames = PopoverSemanticClassNames & {
|
|
15
|
+
icon?: string;
|
|
16
|
+
};
|
|
17
|
+
type PopconfirmSemanticStyles = PopoverSemanticStyles & {
|
|
18
|
+
icon?: CSSProperties;
|
|
19
|
+
};
|
|
16
20
|
type PopconfirmClassNamesType = SemanticClassNamesType<PopconfirmProps, PopconfirmSemanticClassNames>;
|
|
17
21
|
type PopconfirmStylesType = SemanticStylesType<PopconfirmProps, PopconfirmSemanticStyles>;
|
|
18
22
|
interface PopconfirmProps extends Omit<PopoverProps, 'title' | 'content' | 'classes' | 'styles'>, PopconfirmEmitsProps {
|
|
19
|
-
title?: VueNode;
|
|
20
|
-
description?: VueNode;
|
|
23
|
+
title?: VueNode$1;
|
|
24
|
+
description?: VueNode$1;
|
|
21
25
|
disabled?: boolean;
|
|
22
|
-
okText?: VueNode;
|
|
23
|
-
cancelText?: VueNode;
|
|
26
|
+
okText?: VueNode$1;
|
|
27
|
+
cancelText?: VueNode$1;
|
|
24
28
|
okType?: LegacyButtonType;
|
|
25
29
|
okButtonProps?: ButtonProps;
|
|
26
30
|
cancelButtonProps?: ButtonProps;
|
|
27
31
|
showCancel?: boolean;
|
|
28
|
-
icon?: VueNode;
|
|
32
|
+
icon?: VueNode$1;
|
|
29
33
|
classes?: PopconfirmClassNamesType;
|
|
30
34
|
styles?: PopconfirmStylesType;
|
|
31
35
|
onConfirm?: (e?: MouseEvent) => void;
|
|
@@ -51,7 +55,7 @@ interface PopconfirmSlots {
|
|
|
51
55
|
okText?: () => any;
|
|
52
56
|
cancelText?: () => any;
|
|
53
57
|
}
|
|
54
|
-
declare const InternalPopconfirm:
|
|
58
|
+
declare const InternalPopconfirm: vue817.DefineSetupFnComponent<PopconfirmProps, PopconfirmEmits, SlotsType<PopconfirmSlots>, PopconfirmProps, vue817.PublicProps>;
|
|
55
59
|
type PopconfirmType = typeof InternalPopconfirm & {
|
|
56
60
|
install: (app: App) => void;
|
|
57
61
|
_InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel;
|
|
@@ -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 vue475 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/popconfirm/style/index.d.ts
|
|
6
6
|
interface ComponentToken {
|
|
@@ -16,6 +16,6 @@ interface ComponentToken {
|
|
|
16
16
|
*/
|
|
17
17
|
interface PopconfirmToken extends FullToken<'Popconfirm'> {}
|
|
18
18
|
declare const prepareComponentToken: GetDefaultToken<'Popconfirm'>;
|
|
19
|
-
declare const _default: (prefixCls:
|
|
19
|
+
declare const _default: (prefixCls: vue475.Ref<string>, rootCls?: vue475.Ref<string | undefined>) => readonly [vue475.Ref<string, string>, vue475.ComputedRef<string | undefined>];
|
|
20
20
|
//#endregion
|
|
21
21
|
export { ComponentToken, PopconfirmToken, _default as default, prepareComponentToken };
|