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,113 +1,117 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
1
|
+
import { genStyleHooks, genSubStyleComponent } from "../../theme/util/genStyleUtils.js";
|
|
3
2
|
import { mergeToken } from "../../theme/internal.js";
|
|
4
3
|
import { CONTAINER_MAX_OFFSET } from "../../_util/hooks/useZIndex.js";
|
|
5
|
-
import {
|
|
4
|
+
import { genListItemSharedStyle } from "../../notification/style/notification.js";
|
|
5
|
+
import { prepareNotificationToken, sharedGenerateStyle } from "../../notification/style/index.js";
|
|
6
|
+
import { unit } from "@antdv-next/cssinjs";
|
|
6
7
|
|
|
7
8
|
//#region src/message/style/index.ts
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"100%": {
|
|
18
|
-
padding: paddingXS,
|
|
19
|
-
transform: "translateY(0)",
|
|
20
|
-
opacity: 1
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const messageMoveOut = new Keyframes("MessageMoveOut", {
|
|
24
|
-
"0%": {
|
|
25
|
-
maxHeight: token.height,
|
|
26
|
-
padding: paddingXS,
|
|
27
|
-
opacity: 1
|
|
28
|
-
},
|
|
29
|
-
"100%": {
|
|
30
|
-
maxHeight: 0,
|
|
31
|
-
padding: 0,
|
|
32
|
-
opacity: 0
|
|
33
|
-
}
|
|
9
|
+
/** Map Message component tokens onto the shared Notification token shape. */
|
|
10
|
+
const prepareMessageToken = (token) => {
|
|
11
|
+
const messagePaddingVertical = token.calc(token.controlHeightLG).sub(token.calc(token.fontSize).mul(token.lineHeight)).div(2).equal();
|
|
12
|
+
const messagePaddingHorizontal = token.paddingSM;
|
|
13
|
+
return mergeToken(prepareNotificationToken(token), {
|
|
14
|
+
notificationBg: token.contentBg,
|
|
15
|
+
notificationPadding: token.contentPadding,
|
|
16
|
+
notificationPaddingVertical: messagePaddingVertical,
|
|
17
|
+
notificationPaddingHorizontal: messagePaddingHorizontal
|
|
34
18
|
});
|
|
35
|
-
const noticeStyle = {
|
|
36
|
-
padding: paddingXS,
|
|
37
|
-
textAlign: "center",
|
|
38
|
-
[`${componentCls}-custom-content`]: {
|
|
39
|
-
display: "flex",
|
|
40
|
-
alignItems: "center"
|
|
41
|
-
},
|
|
42
|
-
[`${componentCls}-custom-content > ${iconCls}`]: {
|
|
43
|
-
marginInlineEnd: marginXS,
|
|
44
|
-
fontSize: fontSizeLG
|
|
45
|
-
},
|
|
46
|
-
[`${noticeCls}-content`]: {
|
|
47
|
-
display: "inline-block",
|
|
48
|
-
padding: contentPadding,
|
|
49
|
-
background: contentBg,
|
|
50
|
-
borderRadius: borderRadiusLG,
|
|
51
|
-
boxShadow,
|
|
52
|
-
pointerEvents: "all"
|
|
53
|
-
},
|
|
54
|
-
[`${componentCls}-success > ${iconCls}`]: { color: colorSuccess },
|
|
55
|
-
[`${componentCls}-error > ${iconCls}`]: { color: colorError },
|
|
56
|
-
[`${componentCls}-warning > ${iconCls}`]: { color: colorWarning },
|
|
57
|
-
[`${componentCls}-info > ${iconCls},
|
|
58
|
-
${componentCls}-loading > ${iconCls}`]: { color: colorInfo }
|
|
59
|
-
};
|
|
60
|
-
return [
|
|
61
|
-
{ [componentCls]: {
|
|
62
|
-
...resetComponent(token),
|
|
63
|
-
color: colorText,
|
|
64
|
-
position: "fixed",
|
|
65
|
-
top: marginXS,
|
|
66
|
-
width: "100%",
|
|
67
|
-
pointerEvents: "none",
|
|
68
|
-
zIndex: zIndexPopup,
|
|
69
|
-
[`${componentCls}-move-up`]: { animationFillMode: "forwards" },
|
|
70
|
-
[`
|
|
71
|
-
${componentCls}-move-up-appear,
|
|
72
|
-
${componentCls}-move-up-enter
|
|
73
|
-
`]: {
|
|
74
|
-
animationName: messageMoveIn,
|
|
75
|
-
animationDuration: motionDurationSlow,
|
|
76
|
-
animationPlayState: "paused",
|
|
77
|
-
animationTimingFunction: motionEaseInOutCirc
|
|
78
|
-
},
|
|
79
|
-
[`
|
|
80
|
-
${componentCls}-move-up-appear${componentCls}-move-up-appear-active,
|
|
81
|
-
${componentCls}-move-up-enter${componentCls}-move-up-enter-active
|
|
82
|
-
`]: { animationPlayState: "running" },
|
|
83
|
-
[`${componentCls}-move-up-leave`]: {
|
|
84
|
-
animationName: messageMoveOut,
|
|
85
|
-
animationDuration: motionDurationSlow,
|
|
86
|
-
animationPlayState: "paused",
|
|
87
|
-
animationTimingFunction: motionEaseInOutCirc
|
|
88
|
-
},
|
|
89
|
-
[`${componentCls}-move-up-leave${componentCls}-move-up-leave-active`]: { animationPlayState: "running" },
|
|
90
|
-
"&-rtl": {
|
|
91
|
-
direction: "rtl",
|
|
92
|
-
span: { direction: "rtl" }
|
|
93
|
-
}
|
|
94
|
-
} },
|
|
95
|
-
{ [componentCls]: { [`${noticeCls}-wrapper`]: { ...noticeStyle } } },
|
|
96
|
-
{ [`${componentCls}-notice-pure-panel`]: {
|
|
97
|
-
...noticeStyle,
|
|
98
|
-
padding: 0,
|
|
99
|
-
textAlign: "start"
|
|
100
|
-
} }
|
|
101
|
-
];
|
|
102
19
|
};
|
|
20
|
+
/** Provide default public ComponentToken values for Message. */
|
|
103
21
|
const prepareComponentToken = (token) => ({
|
|
104
22
|
zIndexPopup: token.zIndexPopupBase + CONTAINER_MAX_OFFSET + 10,
|
|
105
23
|
contentBg: token.colorBgElevated,
|
|
106
24
|
contentPadding: `${(token.controlHeightLG - token.fontSize * token.lineHeight) / 2}px ${token.paddingSM}px`
|
|
107
25
|
});
|
|
26
|
+
/** Generate the shared item card styles for Message notices. */
|
|
27
|
+
function genMessageItemStyle(token) {
|
|
28
|
+
const { fontSize, fontSizeLG, lineHeight } = token;
|
|
29
|
+
return genListItemSharedStyle(token, {
|
|
30
|
+
width: "max-content",
|
|
31
|
+
iconFontSize: fontSizeLG,
|
|
32
|
+
titleFontSize: fontSize,
|
|
33
|
+
titleLineHeight: lineHeight,
|
|
34
|
+
contentStyle: {
|
|
35
|
+
alignItems: "center",
|
|
36
|
+
gap: token.marginXS
|
|
37
|
+
},
|
|
38
|
+
noticeStyle: { zIndex: 1 }
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
/** Generate the collapsed stack placeholder styles for Message notices. */
|
|
42
|
+
const generateMessageStackStyle = (token) => {
|
|
43
|
+
const { componentCls } = token;
|
|
44
|
+
const noticeCls = `${componentCls}-notice`;
|
|
45
|
+
const listContentCls = `${componentCls}-list-content`;
|
|
46
|
+
const { "&::after": _hoverAfterStyle, ...messageNoticeStyle } = genMessageItemStyle(token)[noticeCls];
|
|
47
|
+
const placeholderStyle = {
|
|
48
|
+
...messageNoticeStyle,
|
|
49
|
+
position: "absolute",
|
|
50
|
+
zIndex: -1,
|
|
51
|
+
left: "50%",
|
|
52
|
+
height: token.calc(token.marginXS).mul(2).equal(),
|
|
53
|
+
padding: 0,
|
|
54
|
+
boxShadow: token.boxShadowTertiary,
|
|
55
|
+
opacity: 0,
|
|
56
|
+
pointerEvents: "none",
|
|
57
|
+
transform: "translateX(-50%) translateY(100%)",
|
|
58
|
+
transition: [
|
|
59
|
+
`opacity ${token.motionDurationFast} ${token.motionEaseInOut}`,
|
|
60
|
+
`transform ${token.motionDurationFast} ${token.motionEaseInOut}`,
|
|
61
|
+
`width ${token.motionDurationSlow} ${token.motionEaseInOut}`
|
|
62
|
+
].join(", "),
|
|
63
|
+
content: "\"\""
|
|
64
|
+
};
|
|
65
|
+
return { [componentCls]: { [`&${componentCls}-stack`]: {
|
|
66
|
+
[listContentCls]: {
|
|
67
|
+
isolation: "isolate",
|
|
68
|
+
"&::before": {
|
|
69
|
+
...placeholderStyle,
|
|
70
|
+
top: `calc(var(--top-notificiation-height) - ${unit(token.marginXS)})`,
|
|
71
|
+
width: `calc(var(--top-notificiation-width) - ${unit(token.margin)})`
|
|
72
|
+
},
|
|
73
|
+
"&::after": {
|
|
74
|
+
...placeholderStyle,
|
|
75
|
+
zIndex: -2,
|
|
76
|
+
top: "var(--top-notificiation-height)",
|
|
77
|
+
width: `calc(var(--top-notificiation-width) - ${unit(token.calc(token.margin).mul(2).equal())})`
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
[`&:not(${componentCls}-stack-expanded)`]: { [listContentCls]: { "&::before, &::after": {
|
|
81
|
+
opacity: 1,
|
|
82
|
+
transform: "translateX(-50%) translateY(0)"
|
|
83
|
+
} } }
|
|
84
|
+
} } };
|
|
85
|
+
};
|
|
86
|
+
/** Generate standalone PurePanel styles for Message. */
|
|
87
|
+
const generateMessagePurePanelStyle = (token) => {
|
|
88
|
+
const { componentCls } = token;
|
|
89
|
+
const noticeCls = `${componentCls}-notice`;
|
|
90
|
+
const messageItemStyle = genMessageItemStyle(token);
|
|
91
|
+
return { [`${noticeCls}-pure-panel`]: {
|
|
92
|
+
width: "max-content",
|
|
93
|
+
maxWidth: "100%",
|
|
94
|
+
...messageItemStyle,
|
|
95
|
+
[noticeCls]: {
|
|
96
|
+
...messageItemStyle[noticeCls],
|
|
97
|
+
position: "relative",
|
|
98
|
+
width: "max-content",
|
|
99
|
+
maxWidth: "100%"
|
|
100
|
+
}
|
|
101
|
+
} };
|
|
102
|
+
};
|
|
103
|
+
/** Register the PurePanel sub-style component for Message. */
|
|
104
|
+
const PurePanelStyle = genSubStyleComponent(["Message", "PurePanel"], (token) => generateMessagePurePanelStyle(prepareMessageToken(token)), prepareComponentToken);
|
|
105
|
+
/** Wrap Message item styles under the component root selector. */
|
|
106
|
+
const generateMessageStyle = (token) => ({ [token.componentCls]: genMessageItemStyle(token) });
|
|
107
|
+
/** Register the main style hook for Message. */
|
|
108
108
|
var style_default = genStyleHooks("Message", (token) => {
|
|
109
|
-
|
|
109
|
+
const messageToken = prepareMessageToken(token);
|
|
110
|
+
return [sharedGenerateStyle(messageToken, {
|
|
111
|
+
stackVisibleCount: 1,
|
|
112
|
+
itemStyle: generateMessageStyle
|
|
113
|
+
}), generateMessageStackStyle(messageToken)];
|
|
110
114
|
}, prepareComponentToken);
|
|
111
115
|
|
|
112
116
|
//#endregion
|
|
113
|
-
export { style_default as default
|
|
117
|
+
export { PurePanelStyle, style_default as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ConfigOptions, MessageInstance } from "./interface.js";
|
|
2
2
|
import { MaybeRef } from "@v-c/util/dist/type";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue_jsx_runtime8 from "vue/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/message/useMessage.d.ts
|
|
6
6
|
type HolderProps = ConfigOptions & {
|
|
7
7
|
onAllRemoved?: VoidFunction;
|
|
8
8
|
};
|
|
9
|
-
declare function useInternalMessage(messageConfig?: MaybeRef<HolderProps>): readonly [MessageInstance, () =>
|
|
10
|
-
declare function useMessage(messageConfig?: ConfigOptions): readonly [MessageInstance, () =>
|
|
9
|
+
declare function useInternalMessage(messageConfig?: MaybeRef<HolderProps>): readonly [MessageInstance, () => vue_jsx_runtime8.JSX.Element];
|
|
10
|
+
declare function useMessage(messageConfig?: ConfigOptions): readonly [MessageInstance, () => vue_jsx_runtime8.JSX.Element];
|
|
11
11
|
//#endregion
|
|
12
12
|
export { useMessage as default, useInternalMessage };
|
|
@@ -4,7 +4,8 @@ import { mergeClassNames, mergeStyles, resolveStyleOrClass, useMergeSemantic, us
|
|
|
4
4
|
import { toPropsRefs } from "../_util/tools.js";
|
|
5
5
|
import useCSSVarCls_default from "../config-provider/hooks/useCSSVarCls.js";
|
|
6
6
|
import style_default from "./style/index.js";
|
|
7
|
-
import {
|
|
7
|
+
import { resolveMessageIcon } from "./PurePanel.js";
|
|
8
|
+
import { getPlacementOffsetStyle } from "../notification/util.js";
|
|
8
9
|
import { getMotion, wrapPromiseFn } from "./util.js";
|
|
9
10
|
import { computed, createVNode, defineComponent, isVNode, mergeProps, shallowRef, unref } from "vue";
|
|
10
11
|
import { clsx } from "@v-c/util";
|
|
@@ -46,11 +47,7 @@ const Holder = /* @__PURE__ */ defineComponent((props, { expose }) => {
|
|
|
46
47
|
});
|
|
47
48
|
const mergedDuration = computed(() => props.duration ?? DEFAULT_DURATION);
|
|
48
49
|
const mergedPauseOnHover = computed(() => props.pauseOnHover === void 0 ? true : props.pauseOnHover);
|
|
49
|
-
const getStyle = () => (
|
|
50
|
-
left: "50%",
|
|
51
|
-
transform: "translateX(-50%)",
|
|
52
|
-
top: mergedTop.value
|
|
53
|
-
});
|
|
50
|
+
const getStyle = () => getPlacementOffsetStyle(mergedTop.value);
|
|
54
51
|
const getClassName = () => clsx({ [`${prefixCls.value}-rtl`]: props.rtl ?? direction.value === "rtl" });
|
|
55
52
|
const getNotificationMotion = () => getMotion(prefixCls.value, props.transitionName);
|
|
56
53
|
const [api, holder] = useNotification({
|
|
@@ -165,19 +162,26 @@ function useInternalMessage(messageConfig) {
|
|
|
165
162
|
const semanticStyles = resolveStyleOrClass(styles, { props: contextConfig });
|
|
166
163
|
const mergedClassNames = mergeClassNames(void 0, resolvedContextClassNames, semanticClassNames, originClassNames);
|
|
167
164
|
const mergedStyles = mergeStyles(resolvedContextStyles, semanticStyles, originStyles);
|
|
165
|
+
const iconNode = resolveMessageIcon(prefixCls, icon, type);
|
|
166
|
+
const typeIconCls = type ? `${noticePrefixCls}-icon-${type}` : void 0;
|
|
168
167
|
return wrapPromiseFn((resolve) => {
|
|
169
168
|
originOpen({
|
|
170
169
|
...restConfig,
|
|
171
170
|
key: mergedKey,
|
|
172
171
|
placement: "top",
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
},
|
|
180
|
-
|
|
172
|
+
icon: iconNode,
|
|
173
|
+
title: content,
|
|
174
|
+
classNames: {
|
|
175
|
+
wrapper: clsx(type && `${prefixCls}-${type}`, mergedClassNames.wrapper),
|
|
176
|
+
icon: clsx(typeIconCls, mergedClassNames.icon),
|
|
177
|
+
title: mergedClassNames.title
|
|
178
|
+
},
|
|
179
|
+
styles: {
|
|
180
|
+
wrapper: mergedStyles.wrapper,
|
|
181
|
+
icon: mergedStyles.icon,
|
|
182
|
+
title: mergedStyles.title
|
|
183
|
+
},
|
|
184
|
+
class: clsx({ [`${noticePrefixCls}-${type}`]: !!type }, className, contextClassName, mergedClassNames.root),
|
|
181
185
|
style: {
|
|
182
186
|
...mergedStyles.root,
|
|
183
187
|
...contextStyle,
|
package/dist/message/util.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/message/util.ts
|
|
2
2
|
function getMotion(prefixCls, transitionName) {
|
|
3
|
-
return { name: transitionName ?? `${prefixCls}-
|
|
3
|
+
return { name: transitionName ?? `${prefixCls}-fade` };
|
|
4
4
|
}
|
|
5
5
|
/** Wrap message open with promise like function */
|
|
6
6
|
function wrapPromiseFn(openFn) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EmptyEmit } from "../_util/type.js";
|
|
2
2
|
import { ModalFuncProps, ModalLocale } from "./interface.js";
|
|
3
3
|
import { ThemeConfig } from "../config-provider/context.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue47 from "vue";
|
|
5
5
|
import { SlotsType } from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/modal/ConfirmDialog.d.ts
|
|
@@ -29,13 +29,13 @@ interface ConfirmDialogProps extends ModalFuncProps {
|
|
|
29
29
|
*/
|
|
30
30
|
isSilent?: () => boolean;
|
|
31
31
|
}
|
|
32
|
-
declare const ConfirmContent:
|
|
32
|
+
declare const ConfirmContent: vue47.DefineSetupFnComponent<ConfirmDialogProps & {
|
|
33
33
|
confirmPrefixCls: string;
|
|
34
34
|
}, EmptyEmit, SlotsType<{
|
|
35
35
|
default?: () => any;
|
|
36
36
|
}>, ConfirmDialogProps & {
|
|
37
37
|
confirmPrefixCls: string;
|
|
38
|
-
},
|
|
39
|
-
declare const ConfirmDialogWrapper:
|
|
38
|
+
}, vue47.PublicProps>;
|
|
39
|
+
declare const ConfirmDialogWrapper: vue47.DefineSetupFnComponent<ConfirmDialogProps, {}, {}, ConfirmDialogProps & {}, vue47.PublicProps>;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { ConfirmContent, ConfirmDialogProps, ConfirmDialogWrapper as default };
|
package/dist/modal/Modal.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModalEmits, ModalProps, ModalSlots } from "./interface.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue51 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/modal/Modal.d.ts
|
|
@@ -9,6 +9,6 @@ interface ModalEmitsProps {
|
|
|
9
9
|
onCancel?: ModalEmits['cancel'];
|
|
10
10
|
'onUpdate:open'?: ModalEmits['update:open'];
|
|
11
11
|
}
|
|
12
|
-
declare const Modal:
|
|
12
|
+
declare const Modal: vue51.DefineSetupFnComponent<InternalModalProps, ModalEmits, SlotsType<ModalSlots>, InternalModalProps, vue51.PublicProps>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { InternalModalProps, ModalEmitsProps, Modal as default };
|
package/dist/modal/Modal.js
CHANGED
|
@@ -34,11 +34,12 @@ function getClickPosition(e) {
|
|
|
34
34
|
}
|
|
35
35
|
if (canUseDocElement()) document.documentElement.addEventListener("click", getClickPosition, true);
|
|
36
36
|
const Modal = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) => {
|
|
37
|
-
const { getPopupContainer: getContextPopupContainer, getPrefixCls, prefixCls, direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, centered: contextCentered, cancelButtonProps: contextCancelButtonProps, okButtonProps: contextOkButtonProps, mask: contextMask } = useComponentBaseConfig("modal", props, [
|
|
37
|
+
const { getPopupContainer: getContextPopupContainer, getPrefixCls, prefixCls, direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, centered: contextCentered, cancelButtonProps: contextCancelButtonProps, okButtonProps: contextOkButtonProps, mask: contextMask, focusable: contextFocusable } = useComponentBaseConfig("modal", props, [
|
|
38
38
|
"centered",
|
|
39
39
|
"cancelButtonProps",
|
|
40
40
|
"okButtonProps",
|
|
41
|
-
"mask"
|
|
41
|
+
"mask",
|
|
42
|
+
"focusable"
|
|
42
43
|
]);
|
|
43
44
|
const { mask: modalMask, classes, styles, zIndex: customZIndex, width: widthRef, rootClass: rootClassRef, rootStyle: rootStyleRef, panelRef: panelRefRef, focusable, focusTriggerAfterClose, maskClosable } = toPropsRefs(props, "mask", "classes", "styles", "zIndex", "width", "rootClass", "rootStyle", "panelRef", "focusable", "focusTriggerAfterClose", "maskClosable");
|
|
44
45
|
const { modal: modalContext } = useBaseConfig();
|
|
@@ -50,7 +51,10 @@ const Modal = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
|
|
|
50
51
|
return [closable?.afterClose, closable?.onClose];
|
|
51
52
|
});
|
|
52
53
|
const [mergedMask, maskBlurClassName, mergeMaskClosable] = useMergedMask(modalMask, contextMask, prefixCls, maskClosable);
|
|
53
|
-
const mergedFocusable = useFocusable(
|
|
54
|
+
const mergedFocusable = useFocusable(computed(() => ({
|
|
55
|
+
...contextFocusable?.value ?? {},
|
|
56
|
+
...focusable.value ?? {}
|
|
57
|
+
})), mergedMask, focusTriggerAfterClose);
|
|
54
58
|
const onClose = () => {
|
|
55
59
|
closableContext.value?.[1]?.();
|
|
56
60
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModalClassNamesType, ModalFuncProps, ModalStylesType } from "./interface.js";
|
|
2
2
|
import { DialogProps } from "@v-c/dialog";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue_jsx_runtime3 from "vue/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/modal/PurePanel.d.ts
|
|
6
6
|
interface PurePanelProps extends Omit<DialogProps, 'prefixCls' | 'footer' | 'visible' | 'classNames' | 'styles' | 'style'>, Pick<ModalFuncProps, 'type' | 'footer'>, PurePanelEmitsProps {
|
|
@@ -22,6 +22,6 @@ interface PurePanelSlots {
|
|
|
22
22
|
};
|
|
23
23
|
}) => any;
|
|
24
24
|
}
|
|
25
|
-
declare const _default: (props: any) =>
|
|
25
|
+
declare const _default: (props: any) => vue_jsx_runtime3.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { PurePanelEmitsProps, PurePanelProps, PurePanelSlots, _default as default };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { VueNode } from "../../_util/type.js";
|
|
1
|
+
import { VueNode as VueNode$1 } from "../../_util/type.js";
|
|
2
2
|
import { ConfirmDialogProps } from "../ConfirmDialog.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue352 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/modal/components/ConfirmCancelBtn.d.ts
|
|
6
6
|
interface ConfirmCancelBtnProps extends Pick<ConfirmDialogProps, 'cancelButtonProps' | 'isSilent' | 'rootPrefixCls' | 'close' | 'onConfirm' | 'onCancel'> {
|
|
7
7
|
autoFocusButton?: false | 'ok' | 'cancel' | null;
|
|
8
|
-
cancelTextLocale?: VueNode;
|
|
8
|
+
cancelTextLocale?: VueNode$1;
|
|
9
9
|
mergedOkCancel?: boolean;
|
|
10
10
|
onClose?: () => void;
|
|
11
11
|
}
|
|
12
|
-
declare const ConfirmCancelBtn:
|
|
12
|
+
declare const ConfirmCancelBtn: vue352.DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, vue352.PublicProps>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { ConfirmCancelBtnProps, ConfirmCancelBtn as default };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { VueNode } from "../../_util/type.js";
|
|
1
|
+
import { VueNode as VueNode$1 } from "../../_util/type.js";
|
|
2
2
|
import { ConfirmDialogProps } from "../ConfirmDialog.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue446 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/modal/components/ConfirmOkBtn.d.ts
|
|
6
6
|
interface ConfirmOkBtnProps extends Pick<ConfirmDialogProps, 'close' | 'isSilent' | 'okType' | 'okButtonProps' | 'rootPrefixCls' | 'onConfirm' | 'onOk'> {
|
|
7
7
|
autoFocusButton?: false | 'ok' | 'cancel' | null;
|
|
8
|
-
okTextLocale?: VueNode;
|
|
8
|
+
okTextLocale?: VueNode$1;
|
|
9
9
|
onClose?: () => void;
|
|
10
10
|
}
|
|
11
|
-
declare const ConfirmOkBtn:
|
|
11
|
+
declare const ConfirmOkBtn: vue446.DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, vue446.PublicProps>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { ConfirmOkBtnProps, ConfirmOkBtn as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { VueNode } from "../../_util/type.js";
|
|
1
|
+
import { VueNode as VueNode$1 } from "../../_util/type.js";
|
|
2
2
|
import { ModalEmits, ModalProps } from "../interface.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue639 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/modal/components/NormalCancelBtn.d.ts
|
|
6
6
|
interface NormalCancelBtnProps extends Pick<ModalProps, 'cancelButtonProps'> {
|
|
7
|
-
cancelTextLocale?: VueNode;
|
|
7
|
+
cancelTextLocale?: VueNode$1;
|
|
8
8
|
onCancel?: ModalEmits['cancel'];
|
|
9
9
|
}
|
|
10
|
-
declare const NormalCancelBtn:
|
|
10
|
+
declare const NormalCancelBtn: vue639.DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, vue639.PublicProps>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { NormalCancelBtnProps, NormalCancelBtn as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { VueNode } from "../../_util/type.js";
|
|
1
|
+
import { VueNode as VueNode$1 } from "../../_util/type.js";
|
|
2
2
|
import { ModalEmits, ModalProps } from "../interface.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue773 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/modal/components/NormalOkBtn.d.ts
|
|
6
6
|
interface NormalOkBtnProps extends Pick<ModalProps, 'confirmLoading' | 'okButtonProps' | 'okType'> {
|
|
7
|
-
okTextLocale?: VueNode;
|
|
7
|
+
okTextLocale?: VueNode$1;
|
|
8
8
|
onOk?: ModalEmits['ok'];
|
|
9
9
|
}
|
|
10
|
-
declare const NormalOkBtn:
|
|
10
|
+
declare const NormalOkBtn: vue773.DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, vue773.PublicProps>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { NormalOkBtnProps, NormalOkBtn as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MaskType } from "../_util/hooks/useMergedMask.js";
|
|
2
|
-
import { VueNode } from "../_util/type.js";
|
|
2
|
+
import { VueNode as VueNode$1 } from "../_util/type.js";
|
|
3
3
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
4
4
|
import "../_util/hooks/index.js";
|
|
5
5
|
import { Breakpoint } from "../_util/responsiveObserver.js";
|
|
@@ -22,6 +22,10 @@ interface ModalSemanticClassNames {
|
|
|
22
22
|
title?: string;
|
|
23
23
|
wrapper?: string;
|
|
24
24
|
mask?: string;
|
|
25
|
+
/**
|
|
26
|
+
* @since 1.3.0 (mirrors ant-design#57264)
|
|
27
|
+
*/
|
|
28
|
+
close?: string;
|
|
25
29
|
}
|
|
26
30
|
interface ModalSemanticStyles {
|
|
27
31
|
root?: CSSProperties;
|
|
@@ -32,12 +36,16 @@ interface ModalSemanticStyles {
|
|
|
32
36
|
title?: CSSProperties;
|
|
33
37
|
wrapper?: CSSProperties;
|
|
34
38
|
mask?: CSSProperties;
|
|
39
|
+
/**
|
|
40
|
+
* @since 1.3.0
|
|
41
|
+
*/
|
|
42
|
+
close?: CSSProperties;
|
|
35
43
|
}
|
|
36
44
|
type ModalClassNamesType = SemanticClassNamesType<ModalProps, ModalSemanticClassNames>;
|
|
37
45
|
type ModalStylesType = SemanticStylesType<ModalProps, ModalSemanticStyles>;
|
|
38
46
|
interface ModalCommonProps extends Omit<DialogProps, 'footer' | 'width' | 'onClose' | 'animation' | 'maskAnimation' | 'transitionName' | 'maskTransitionName' | 'mask' | 'classNames' | 'styles' | 'modalRender' | 'rootStyle' | 'style' | OmitFocusType> {
|
|
39
|
-
footer?: VueNode | ((params: {
|
|
40
|
-
originNode: VueNode;
|
|
47
|
+
footer?: VueNode$1 | ((params: {
|
|
48
|
+
originNode: VueNode$1;
|
|
41
49
|
extra: {
|
|
42
50
|
OkBtn: any;
|
|
43
51
|
CancelBtn: any;
|
|
@@ -57,7 +65,7 @@ interface ModalProps extends ModalCommonProps {
|
|
|
57
65
|
/** Whether to apply loading visual effect for OK button or not */
|
|
58
66
|
confirmLoading?: boolean;
|
|
59
67
|
/** The modal dialog's title */
|
|
60
|
-
title?: VueNode;
|
|
68
|
+
title?: VueNode$1;
|
|
61
69
|
afterClose?: () => void;
|
|
62
70
|
/** Callback when the animation ends when Modal is turned on and off */
|
|
63
71
|
afterOpenChange?: (open: boolean) => void;
|
|
@@ -66,11 +74,11 @@ interface ModalProps extends ModalCommonProps {
|
|
|
66
74
|
/** Width of the modal dialog */
|
|
67
75
|
width?: string | number | Partial<Record<Breakpoint, string | number>>;
|
|
68
76
|
/** Text of the OK button */
|
|
69
|
-
okText?: VueNode;
|
|
77
|
+
okText?: VueNode$1;
|
|
70
78
|
/** Button `type` of the OK button */
|
|
71
79
|
okType?: LegacyButtonType;
|
|
72
80
|
/** Text of the Cancel button */
|
|
73
|
-
cancelText?: VueNode;
|
|
81
|
+
cancelText?: VueNode$1;
|
|
74
82
|
/** Force render Modal */
|
|
75
83
|
forceRender?: boolean;
|
|
76
84
|
okButtonProps?: ButtonProps;
|
|
@@ -101,7 +109,7 @@ interface ModalProps extends ModalCommonProps {
|
|
|
101
109
|
keyboard?: boolean;
|
|
102
110
|
wrapProps?: any;
|
|
103
111
|
prefixCls?: string;
|
|
104
|
-
closeIcon?: VueNode;
|
|
112
|
+
closeIcon?: VueNode$1;
|
|
105
113
|
modalRender?: (node: any) => any;
|
|
106
114
|
focusTriggerAfterClose?: boolean;
|
|
107
115
|
mousePosition?: MousePosition;
|
|
@@ -125,7 +133,7 @@ interface ModalSlots {
|
|
|
125
133
|
closeIcon?: () => any;
|
|
126
134
|
modalRender?: (node: any) => any;
|
|
127
135
|
footer?: (params: {
|
|
128
|
-
originNode: VueNode;
|
|
136
|
+
originNode: VueNode$1;
|
|
129
137
|
extra: {
|
|
130
138
|
OkBtn: any;
|
|
131
139
|
CancelBtn: any;
|
|
@@ -138,8 +146,8 @@ interface ModalFuncProps extends ModalCommonProps {
|
|
|
138
146
|
class?: string;
|
|
139
147
|
rootClass?: string;
|
|
140
148
|
open?: boolean;
|
|
141
|
-
title?: VueNode;
|
|
142
|
-
content?: VueNode;
|
|
149
|
+
title?: VueNode$1;
|
|
150
|
+
content?: VueNode$1;
|
|
143
151
|
onOk?: (...args: any[]) => any;
|
|
144
152
|
onCancel?: (...args: any[]) => any;
|
|
145
153
|
onClose?: DialogProps['onClose'];
|
|
@@ -148,10 +156,10 @@ interface ModalFuncProps extends ModalCommonProps {
|
|
|
148
156
|
cancelButtonProps?: ButtonProps;
|
|
149
157
|
centered?: boolean;
|
|
150
158
|
width?: string | number;
|
|
151
|
-
okText?: VueNode;
|
|
159
|
+
okText?: VueNode$1;
|
|
152
160
|
okType?: LegacyButtonType;
|
|
153
|
-
cancelText?: VueNode;
|
|
154
|
-
icon?: VueNode;
|
|
161
|
+
cancelText?: VueNode$1;
|
|
162
|
+
icon?: VueNode$1;
|
|
155
163
|
mask?: MaskType;
|
|
156
164
|
maskClosable?: boolean;
|
|
157
165
|
zIndex?: number;
|
|
@@ -169,7 +177,7 @@ interface ModalFuncProps extends ModalCommonProps {
|
|
|
169
177
|
direction?: DirectionType;
|
|
170
178
|
/** @deprecated Please use `styles.body` instead */
|
|
171
179
|
bodyStyle?: CSSProperties;
|
|
172
|
-
closeIcon?: VueNode;
|
|
180
|
+
closeIcon?: VueNode$1;
|
|
173
181
|
footer?: ModalProps['footer'];
|
|
174
182
|
modalRender?: ModalProps['modalRender'];
|
|
175
183
|
focusTriggerAfterClose?: boolean;
|
package/dist/modal/shared.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ModalEmits, ModalProps } from "./interface.js";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as vue168 from "vue";
|
|
3
|
+
import * as vue_jsx_runtime12 from "vue/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/modal/shared.d.ts
|
|
6
|
-
declare function renderCloseIcon(prefixCls: string, closeIcon?: any):
|
|
6
|
+
declare function renderCloseIcon(prefixCls: string, closeIcon?: any): vue_jsx_runtime12.JSX.Element;
|
|
7
7
|
interface FooterProps extends Pick<ModalProps, 'footer' | 'okText' | 'okType' | 'cancelText' | 'confirmLoading' | 'okButtonProps' | 'cancelButtonProps'> {
|
|
8
8
|
onOk?: ModalEmits['ok'];
|
|
9
9
|
onCancel?: ModalEmits['cancel'];
|
|
10
10
|
}
|
|
11
|
-
declare const Footer:
|
|
11
|
+
declare const Footer: vue168.DefineSetupFnComponent<FooterProps, {}, {}, FooterProps & {}, vue168.PublicProps>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Footer, FooterProps, renderCloseIcon };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue689 from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/modal/style/confirm.d.ts
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: vue689.DefineComponent<vue689.ExtractPropTypes<{
|
|
5
5
|
prefixCls: StringConstructor;
|
|
6
6
|
rootCls: StringConstructor;
|
|
7
|
-
}>, () => null, {}, {}, {},
|
|
7
|
+
}>, () => null, {}, {}, {}, vue689.ComponentOptionsMixin, vue689.ComponentOptionsMixin, {}, string, vue689.PublicProps, Readonly<vue689.ExtractPropTypes<{
|
|
8
8
|
prefixCls: StringConstructor;
|
|
9
9
|
rootCls: StringConstructor;
|
|
10
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string,
|
|
10
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, vue689.ComponentProvideOptions, true, {}, any>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { _default as default };
|
|
@@ -2,7 +2,7 @@ import { AliasToken } from "../../theme/interface/alias.js";
|
|
|
2
2
|
import { FullToken, GenStyleFn, GlobalToken } from "../../theme/interface/cssinjs-utils.js";
|
|
3
3
|
import { GenerateStyle } from "../../theme/interface/index.js";
|
|
4
4
|
import { TokenWithCommonCls } from "../../theme/internal.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue370 from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/modal/style/index.d.ts
|
|
8
8
|
/** Component only token. Which will handle additional calculation of alias token */
|
|
@@ -21,7 +21,7 @@ interface ComponentToken {
|
|
|
21
21
|
* @desc 标题字体大小
|
|
22
22
|
* @descEN Font size of title
|
|
23
23
|
*/
|
|
24
|
-
titleFontSize: number;
|
|
24
|
+
titleFontSize: number | string;
|
|
25
25
|
/**
|
|
26
26
|
* @desc 标题字体颜色
|
|
27
27
|
* @descEN Font color of title
|
|
@@ -119,7 +119,7 @@ declare function prepareComponentToken(token: GlobalToken): {
|
|
|
119
119
|
footerBg: string;
|
|
120
120
|
headerBg: string;
|
|
121
121
|
titleLineHeight: number;
|
|
122
|
-
titleFontSize: number;
|
|
122
|
+
titleFontSize: string | number;
|
|
123
123
|
contentBg: string;
|
|
124
124
|
titleColor: string;
|
|
125
125
|
contentPadding: string | number;
|
|
@@ -136,6 +136,6 @@ declare function prepareComponentToken(token: GlobalToken): {
|
|
|
136
136
|
confirmBtnsMarginTop: number;
|
|
137
137
|
mask: boolean;
|
|
138
138
|
};
|
|
139
|
-
declare const _default: (prefixCls:
|
|
139
|
+
declare const _default: (prefixCls: vue370.Ref<string>, rootCls?: vue370.Ref<string | undefined>) => readonly [vue370.Ref<string, string>, vue370.ComputedRef<string | undefined>];
|
|
140
140
|
//#endregion
|
|
141
141
|
export { ComponentToken, ModalToken, _default as default, genModalMaskStyle, prepareComponentToken, prepareToken };
|