antdv-next 1.2.2 → 1.3.0-beta.1
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 +2 -2
- 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 +7 -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 +11 -11
- 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 +15 -10
- 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/SplitBar.js +1 -12
- 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/FilterDropdown.d.ts +3 -3
- 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 +24 -24
- 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/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 +1353 -1339
- package/web-types.json +4223 -4192
- 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
package/dist/app/App.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
2
2
|
import { AppConfig } from "./context.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue14 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/app/App.d.ts
|
|
6
6
|
interface AppProps extends ComponentBaseProps, AppConfig {
|
|
7
7
|
component?: any;
|
|
8
8
|
}
|
|
9
|
-
declare const App:
|
|
9
|
+
declare const App: vue14.DefineSetupFnComponent<AppProps, {}, {}, AppProps & {}, vue14.PublicProps>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { AppProps, App as default };
|
package/dist/app/App.js
CHANGED
|
@@ -10,7 +10,7 @@ import { clsx } from "@v-c/util";
|
|
|
10
10
|
import { getAttrStyleAndClass } from "@v-c/util/dist/props-util";
|
|
11
11
|
|
|
12
12
|
//#region src/app/App.tsx
|
|
13
|
-
const App$1 = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
13
|
+
const App$1 = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose }) => {
|
|
14
14
|
const { direction, prefixCls, class: contextClassName, style: contextStyle } = useComponentBaseConfig("app", props);
|
|
15
15
|
const [hashId, cssVarCls] = style_default(prefixCls);
|
|
16
16
|
const appConfig = useAppConfig();
|
|
@@ -34,6 +34,11 @@ const App$1 = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
34
34
|
notification: notificationApi,
|
|
35
35
|
modal: ModalApi
|
|
36
36
|
});
|
|
37
|
+
expose({
|
|
38
|
+
message: messageApi,
|
|
39
|
+
notification: notificationApi,
|
|
40
|
+
modal: ModalApi
|
|
41
|
+
});
|
|
37
42
|
return () => {
|
|
38
43
|
const { rootClass } = props;
|
|
39
44
|
const { className, style, restAttrs } = getAttrStyleAndClass(attrs);
|
package/dist/app/context.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ import { NotificationConfig, NotificationInstance } from "../notification/interf
|
|
|
2
2
|
import { ConfigOptions, MessageInstance } from "../message/interface.js";
|
|
3
3
|
import { HookAPI } from "../modal/useModal/types.js";
|
|
4
4
|
import "../modal/useModal/index.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue3 from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/app/context.d.ts
|
|
8
8
|
interface AppConfig {
|
|
9
9
|
message?: ConfigOptions;
|
|
10
10
|
notification?: NotificationConfig;
|
|
11
11
|
}
|
|
12
|
-
declare const AppConfigProvider:
|
|
12
|
+
declare const AppConfigProvider: vue3.DefineSetupFnComponent<AppConfig, {}, {}, AppConfig & {}, vue3.PublicProps>;
|
|
13
13
|
declare function useAppConfig(): AppConfig;
|
|
14
14
|
interface useAppProps {
|
|
15
15
|
message: MessageInstance;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
2
2
|
import "../../theme/internal.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue631 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/app/style/index.d.ts
|
|
6
6
|
interface ComponentToken {}
|
|
7
7
|
declare const prepareComponentToken: GetDefaultToken<'App'>;
|
|
8
|
-
declare const _default: (prefixCls:
|
|
8
|
+
declare const _default: (prefixCls: vue631.Ref<string>, rootCls?: vue631.Ref<string | undefined>) => readonly [vue631.Ref<string, string>, vue631.ComputedRef<string | undefined>];
|
|
9
9
|
//#endregion
|
|
10
10
|
export { ComponentToken, _default as default, prepareComponentToken };
|
|
@@ -1,9 +1,9 @@
|
|
|
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 { InputStatus } from "../_util/statusUtils.js";
|
|
5
5
|
import { InternalSelectProps, SelectPopupSemanticClassNames, SelectPopupSemanticStyles, SelectSlots } from "../select/index.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue75 from "vue";
|
|
7
7
|
import { App, CSSProperties, SlotsType } from "vue";
|
|
8
8
|
import { Option, SelectProps } from "@v-c/select";
|
|
9
9
|
|
|
@@ -28,7 +28,7 @@ interface DataSourceItemObject {
|
|
|
28
28
|
value: string;
|
|
29
29
|
text: string;
|
|
30
30
|
}
|
|
31
|
-
type DataSourceItemType = DataSourceItemObject | VueNode;
|
|
31
|
+
type DataSourceItemType = DataSourceItemObject | VueNode$1;
|
|
32
32
|
type AutoCompleteClassNamesType = SemanticClassNamesType<AutoCompleteProps, AutoCompleteSemanticClassNames, {
|
|
33
33
|
popup?: SelectPopupSemanticClassNames;
|
|
34
34
|
}>;
|
|
@@ -50,8 +50,8 @@ interface AutoCompleteProps extends Omit<InternalSelectProps, 'loading' | 'mode'
|
|
|
50
50
|
styles?: AutoCompleteStylesType;
|
|
51
51
|
classes?: AutoCompleteClassNamesType;
|
|
52
52
|
/** @deprecated Please use `popupRender` instead */
|
|
53
|
-
dropdownRender?: (menu: VueNode) => any;
|
|
54
|
-
popupRender?: (menu: VueNode) => any;
|
|
53
|
+
dropdownRender?: (menu: VueNode$1) => any;
|
|
54
|
+
popupRender?: (menu: VueNode$1) => any;
|
|
55
55
|
/** @deprecated Please use `styles.popup.root` instead */
|
|
56
56
|
dropdownStyle?: CSSProperties;
|
|
57
57
|
}
|
|
@@ -108,7 +108,7 @@ interface AutoCompleteSlots {
|
|
|
108
108
|
maxTagPlaceholder?: SelectSlots['maxTagPlaceholder'];
|
|
109
109
|
notFoundContent?: SelectSlots['notFoundContent'];
|
|
110
110
|
}
|
|
111
|
-
declare const InternalAutoComplete:
|
|
111
|
+
declare const InternalAutoComplete: vue75.DefineSetupFnComponent<AutoCompleteProps, AutoCompleteEmits, SlotsType<AutoCompleteSlots>, AutoCompleteProps, vue75.PublicProps>;
|
|
112
112
|
declare const AutoComplete: typeof InternalAutoComplete & {
|
|
113
113
|
Option: typeof Option;
|
|
114
114
|
install: (app: App) => void;
|
package/dist/avatar/Avatar.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { VueNode } from "../_util/type.js";
|
|
1
|
+
import { VueNode as VueNode$1 } from "../_util/type.js";
|
|
2
2
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
3
3
|
import { AvatarSize } from "./AvatarContext.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue10 from "vue";
|
|
5
5
|
import { SlotsType } from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/avatar/Avatar.d.ts
|
|
@@ -15,12 +15,12 @@ interface AvatarProps extends ComponentBaseProps, AvatarEmitsProps {
|
|
|
15
15
|
size?: AvatarSize;
|
|
16
16
|
gap?: number;
|
|
17
17
|
/** Src of image avatar */
|
|
18
|
-
src?: VueNode;
|
|
18
|
+
src?: VueNode$1;
|
|
19
19
|
/** Srcset of image avatar */
|
|
20
20
|
srcSet?: string;
|
|
21
21
|
draggable?: boolean | 'true' | 'false';
|
|
22
22
|
/** Icon to be used in avatar */
|
|
23
|
-
icon?: VueNode;
|
|
23
|
+
icon?: VueNode$1;
|
|
24
24
|
alt?: string;
|
|
25
25
|
crossOrigin?: '' | 'anonymous' | 'use-credentials';
|
|
26
26
|
onError?: () => boolean;
|
|
@@ -36,6 +36,6 @@ interface AvatarSlots {
|
|
|
36
36
|
src: () => any;
|
|
37
37
|
default: () => any;
|
|
38
38
|
}
|
|
39
|
-
declare const Avatar:
|
|
39
|
+
declare const Avatar: vue10.DefineSetupFnComponent<AvatarProps, AvatarEmits, SlotsType<AvatarSlots>, AvatarProps, vue10.PublicProps>;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { AvatarEmits, AvatarEmitsProps, AvatarProps, AvatarSlots, Avatar as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PopoverProps } from "../popover/index.js";
|
|
2
2
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
3
3
|
import { AvatarSize } from "./AvatarContext.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue89 from "vue";
|
|
5
5
|
import { CSSProperties } from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/avatar/AvatarGroup.d.ts
|
|
@@ -19,6 +19,6 @@ interface AvatarGroupProps extends ComponentBaseProps {
|
|
|
19
19
|
size?: AvatarSize;
|
|
20
20
|
shape?: 'circle' | 'square';
|
|
21
21
|
}
|
|
22
|
-
declare const AvatarGroup:
|
|
22
|
+
declare const AvatarGroup: vue89.DefineSetupFnComponent<AvatarGroupProps, {}, {}, AvatarGroupProps & {}, vue89.PublicProps>;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { AvatarGroupProps, AvatarGroup as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
2
2
|
import "../../theme/internal.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue664 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/avatar/style/index.d.ts
|
|
6
6
|
interface ComponentToken {
|
|
@@ -43,7 +43,7 @@ interface ComponentToken {
|
|
|
43
43
|
* @desc 大号头像图标大小
|
|
44
44
|
* @descEN Font size of large Avatar icon
|
|
45
45
|
*/
|
|
46
|
-
iconFontSizeLG: number;
|
|
46
|
+
iconFontSizeLG: number | string;
|
|
47
47
|
/**
|
|
48
48
|
* @desc 小号头像图标大小
|
|
49
49
|
* @descEN Font size of small Avatar icon
|
|
@@ -66,6 +66,6 @@ interface ComponentToken {
|
|
|
66
66
|
groupBorderColor: string;
|
|
67
67
|
}
|
|
68
68
|
declare const prepareComponentToken: GetDefaultToken<'Avatar'>;
|
|
69
|
-
declare const _default: (prefixCls:
|
|
69
|
+
declare const _default: (prefixCls: vue664.Ref<string>, rootCls?: vue664.Ref<string | undefined>) => readonly [vue664.Ref<string, string>, vue664.ComputedRef<string | undefined>];
|
|
70
70
|
//#endregion
|
|
71
71
|
export { ComponentToken, _default as default, prepareComponentToken };
|
package/dist/badge/Ribbon.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { EmptyEmit, VueNode } from "../_util/type.js";
|
|
1
|
+
import { EmptyEmit, 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 { PresetColorType } from "../_util/colors.js";
|
|
5
5
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue225 from "vue";
|
|
7
7
|
import { CSSProperties, SlotsType } from "vue";
|
|
8
8
|
import { LiteralUnion } from "@v-c/util/dist/type";
|
|
9
9
|
|
|
@@ -23,7 +23,7 @@ interface RibbonSemanticStyles {
|
|
|
23
23
|
type RibbonClassNamesType = SemanticClassNamesType<RibbonProps, RibbonSemanticClassNames>;
|
|
24
24
|
type RibbonStylesType = SemanticStylesType<RibbonProps, RibbonSemanticStyles>;
|
|
25
25
|
interface RibbonProps extends ComponentBaseProps {
|
|
26
|
-
text?: VueNode;
|
|
26
|
+
text?: VueNode$1;
|
|
27
27
|
color?: LiteralUnion<PresetColorType>;
|
|
28
28
|
placement?: RibbonPlacement;
|
|
29
29
|
classes?: RibbonClassNamesType;
|
|
@@ -33,6 +33,6 @@ interface RibbonSlots {
|
|
|
33
33
|
default?: () => any;
|
|
34
34
|
text?: () => any;
|
|
35
35
|
}
|
|
36
|
-
declare const _default:
|
|
36
|
+
declare const _default: vue225.DefineSetupFnComponent<RibbonProps, EmptyEmit, SlotsType<RibbonSlots>, RibbonProps, vue225.PublicProps>;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { RibbonClassNamesType, RibbonProps, RibbonSemanticClassNames, RibbonSemanticName, RibbonSemanticStyles, RibbonSlots, RibbonStylesType, _default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EmptyEmit } from "../_util/type.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue124 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/badge/ScrollNumber.d.ts
|
|
@@ -13,6 +13,6 @@ interface ScrollNumberProps {
|
|
|
13
13
|
interface ScrollNumberSlots {
|
|
14
14
|
default?: () => any;
|
|
15
15
|
}
|
|
16
|
-
declare const _default:
|
|
16
|
+
declare const _default: vue124.DefineSetupFnComponent<ScrollNumberProps, EmptyEmit, SlotsType<ScrollNumberSlots>, ScrollNumberProps, vue124.PublicProps>;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { ScrollNumberProps, ScrollNumberSlots, _default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue107 from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/badge/SingleNumber.d.ts
|
|
4
4
|
interface SingleNumberProps {
|
|
@@ -6,6 +6,6 @@ interface SingleNumberProps {
|
|
|
6
6
|
value: string;
|
|
7
7
|
count: number;
|
|
8
8
|
}
|
|
9
|
-
declare const _default:
|
|
9
|
+
declare const _default: vue107.DefineSetupFnComponent<SingleNumberProps, {}, {}, SingleNumberProps & {}, vue107.PublicProps>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { SingleNumberProps, _default as default };
|
package/dist/badge/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EmptyEmit, VueNode } from "../_util/type.js";
|
|
1
|
+
import { EmptyEmit, 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 { PresetColorKey } from "../theme/interface/presetColors.js";
|
|
@@ -7,7 +7,7 @@ import { SizeType } from "../config-provider/SizeContext.js";
|
|
|
7
7
|
import { PresetStatusColorType } from "../_util/colors.js";
|
|
8
8
|
import _default, { RibbonProps, RibbonSlots } from "./Ribbon.js";
|
|
9
9
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
10
|
-
import * as
|
|
10
|
+
import * as vue103 from "vue";
|
|
11
11
|
import { CSSProperties, SlotsType } from "vue";
|
|
12
12
|
import { LiteralUnion } from "@v-c/util/dist/type";
|
|
13
13
|
|
|
@@ -25,7 +25,7 @@ type BadgeClassNamesType = SemanticClassNamesType<BadgeProps, BadgeSemanticClass
|
|
|
25
25
|
type BadgeStylesType = SemanticStylesType<BadgeProps, BadgeSemanticStyles>;
|
|
26
26
|
interface BadgeProps extends ComponentBaseProps {
|
|
27
27
|
/** Number to show in badge */
|
|
28
|
-
count?: VueNode;
|
|
28
|
+
count?: VueNode$1;
|
|
29
29
|
showZero?: boolean;
|
|
30
30
|
/** Max count to show */
|
|
31
31
|
overflowCount?: number;
|
|
@@ -34,7 +34,7 @@ interface BadgeProps extends ComponentBaseProps {
|
|
|
34
34
|
scrollNumberPrefixCls?: string;
|
|
35
35
|
status?: PresetStatusColorType;
|
|
36
36
|
color?: LiteralUnion<PresetColorKey>;
|
|
37
|
-
text?: VueNode;
|
|
37
|
+
text?: VueNode$1;
|
|
38
38
|
size?: Exclude<SizeType, 'large'> | 'default';
|
|
39
39
|
offset?: [number | string, number | string];
|
|
40
40
|
title?: string;
|
|
@@ -46,11 +46,11 @@ interface BadgeSlots {
|
|
|
46
46
|
count?: () => any;
|
|
47
47
|
text?: () => any;
|
|
48
48
|
}
|
|
49
|
-
declare const InternalBadge:
|
|
49
|
+
declare const InternalBadge: vue103.DefineSetupFnComponent<BadgeProps, EmptyEmit, SlotsType<BadgeSlots>, BadgeProps, vue103.PublicProps>;
|
|
50
50
|
declare const Badge: typeof InternalBadge & {
|
|
51
51
|
Ribbon: typeof _default;
|
|
52
52
|
};
|
|
53
|
-
declare const BadgeRibbon:
|
|
53
|
+
declare const BadgeRibbon: vue103.DefineSetupFnComponent<RibbonProps, EmptyEmit, SlotsType<RibbonSlots>, RibbonProps, vue103.PublicProps>;
|
|
54
54
|
type BadgeRibbonProps = RibbonProps;
|
|
55
55
|
//#endregion
|
|
56
56
|
export { BadgeClassNamesType, BadgeProps, BadgeRibbon, BadgeRibbonProps, BadgeSemanticClassNames, BadgeSemanticName, BadgeSemanticStyles, BadgeSlots, BadgeStylesType, Badge as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FullToken, GenStyleFn, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
2
2
|
import "../../theme/internal.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue680 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/badge/style/index.d.ts
|
|
6
6
|
/** Component only token. Which will handle additional calculation of alias token */
|
|
@@ -45,6 +45,11 @@ interface ComponentToken {
|
|
|
45
45
|
* @descEN Size of status badge
|
|
46
46
|
*/
|
|
47
47
|
statusSize: number;
|
|
48
|
+
/**
|
|
49
|
+
* @desc 徽标横向内边距
|
|
50
|
+
* @descEN Inline padding of badge
|
|
51
|
+
*/
|
|
52
|
+
paddingInline: number | string;
|
|
48
53
|
}
|
|
49
54
|
/**
|
|
50
55
|
* @desc Badge 组件的 Token
|
|
@@ -104,6 +109,6 @@ interface BadgeToken extends FullToken<'Badge'> {
|
|
|
104
109
|
}
|
|
105
110
|
declare function prepareToken(token: Parameters<GenStyleFn<'Badge'>>[0]): BadgeToken;
|
|
106
111
|
declare const prepareComponentToken: GetDefaultToken<'Badge'>;
|
|
107
|
-
declare const _default: (prefixCls:
|
|
112
|
+
declare const _default: (prefixCls: vue680.Ref<string>, rootCls?: vue680.Ref<string | undefined>) => readonly [vue680.Ref<string, string>, vue680.ComputedRef<string | undefined>];
|
|
108
113
|
//#endregion
|
|
109
114
|
export { BadgeToken, ComponentToken, _default as default, prepareComponentToken, prepareToken };
|
|
@@ -92,7 +92,7 @@ const genSharedBadgeStyle = (token) => {
|
|
|
92
92
|
borderRadius: calc(indicatorHeightSM).div(2).equal()
|
|
93
93
|
},
|
|
94
94
|
[`${componentCls}-multiple-words`]: {
|
|
95
|
-
padding: `0 ${unit(token.
|
|
95
|
+
padding: `0 ${unit(token.paddingInline)}`,
|
|
96
96
|
bdi: { unicodeBidi: "plaintext" }
|
|
97
97
|
},
|
|
98
98
|
[`${componentCls}-dot`]: {
|
|
@@ -240,7 +240,7 @@ function prepareToken(token) {
|
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
242
|
const prepareComponentToken = (token) => {
|
|
243
|
-
const { fontSize, lineHeight, fontSizeSM, lineWidth } = token;
|
|
243
|
+
const { fontSize, lineHeight, fontSizeSM, lineWidth, paddingXS } = token;
|
|
244
244
|
return {
|
|
245
245
|
indicatorZIndex: "auto",
|
|
246
246
|
indicatorHeight: Math.round(fontSize * lineHeight) - 2 * lineWidth,
|
|
@@ -249,7 +249,8 @@ const prepareComponentToken = (token) => {
|
|
|
249
249
|
textFontSize: fontSizeSM,
|
|
250
250
|
textFontSizeSM: fontSizeSM,
|
|
251
251
|
textFontWeight: "normal",
|
|
252
|
-
statusSize: fontSizeSM / 2
|
|
252
|
+
statusSize: fontSizeSM / 2,
|
|
253
|
+
paddingInline: paddingXS
|
|
253
254
|
};
|
|
254
255
|
};
|
|
255
256
|
var style_default = genStyleHooks("Badge", (token) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue684 from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/badge/style/ribbon.d.ts
|
|
4
|
-
declare const _default: (prefixCls:
|
|
4
|
+
declare const _default: (prefixCls: vue684.Ref<string>, rootCls?: vue684.Ref<string | undefined>) => readonly [vue684.Ref<string, string>, vue684.ComputedRef<string | undefined>];
|
|
5
5
|
//#endregion
|
|
6
6
|
export { _default as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BorderBeamColor, BorderBeamGradient } from "./util.js";
|
|
2
|
+
import * as vue576 from "vue";
|
|
3
|
+
import { SlotsType } from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/border-beam/BorderBeam.d.ts
|
|
6
|
+
interface BorderBeamProps {
|
|
7
|
+
prefixCls?: string;
|
|
8
|
+
rootClass?: string;
|
|
9
|
+
color?: BorderBeamColor;
|
|
10
|
+
outset?: number | string;
|
|
11
|
+
}
|
|
12
|
+
interface BorderBeamSlots {
|
|
13
|
+
default?: () => any;
|
|
14
|
+
}
|
|
15
|
+
declare const BorderBeam: vue576.DefineSetupFnComponent<BorderBeamProps, Record<string, never>, SlotsType<BorderBeamSlots>, BorderBeamProps & {
|
|
16
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
17
|
+
}, vue576.PublicProps>;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { type BorderBeamColor, type BorderBeamGradient, BorderBeamProps, BorderBeamSlots, BorderBeam as default };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
|
+
import { genCssVar } from "../theme/util/genStyleUtils.js";
|
|
3
|
+
import isNonNullable_default from "../_util/isNonNullable.js";
|
|
4
|
+
import useBorderSize from "./hooks/useBorderSize.js";
|
|
5
|
+
import { getBorderBeamGradient } from "./util.js";
|
|
6
|
+
import style_default from "./style/index.js";
|
|
7
|
+
import { Fragment, Teleport, cloneVNode, computed, createVNode, defineComponent, isVNode, shallowRef } from "vue";
|
|
8
|
+
import { clsx } from "@v-c/util";
|
|
9
|
+
import { filterEmpty } from "@v-c/util/dist/props-util";
|
|
10
|
+
import { unrefElement } from "@vueuse/core";
|
|
11
|
+
|
|
12
|
+
//#region src/border-beam/BorderBeam.tsx
|
|
13
|
+
function getInset(width) {
|
|
14
|
+
return typeof width === "string" ? `calc(-1 * ${width})` : `-${width}px`;
|
|
15
|
+
}
|
|
16
|
+
const BorderBeam = /* @__PURE__ */ defineComponent((props, { attrs, slots }) => {
|
|
17
|
+
const { class: contextClassName, style: contextStyle, getPrefixCls, rootPrefixCls } = useComponentBaseConfig("borderBeam", props);
|
|
18
|
+
const prefixCls = computed(() => getPrefixCls("border-beam", props.prefixCls));
|
|
19
|
+
const rootCls = computed(() => rootPrefixCls.value ?? getPrefixCls());
|
|
20
|
+
const [hashId, cssVarCls] = style_default(prefixCls);
|
|
21
|
+
const varName = computed(() => genCssVar(rootCls.value, "border-beam")[0]);
|
|
22
|
+
const hostDom = shallowRef(null);
|
|
23
|
+
const borderInfo = useBorderSize(hostDom);
|
|
24
|
+
const beamGradient = computed(() => getBorderBeamGradient(props.color));
|
|
25
|
+
const insetOffset = computed(() => {
|
|
26
|
+
const { outset } = props;
|
|
27
|
+
if (isNonNullable_default(outset)) return getInset(outset);
|
|
28
|
+
return borderInfo.value.borderWidth.map(getInset).join(" ");
|
|
29
|
+
});
|
|
30
|
+
const setHostDom = (el) => {
|
|
31
|
+
hostDom.value = unrefElement(el) ?? null;
|
|
32
|
+
};
|
|
33
|
+
return () => {
|
|
34
|
+
const children = filterEmpty(slots.default?.() ?? []);
|
|
35
|
+
const beamStyle = {
|
|
36
|
+
...contextStyle?.value ?? {},
|
|
37
|
+
...attrs.style ?? {},
|
|
38
|
+
...beamGradient.value && { [varName.value("beam-gradient")]: beamGradient.value },
|
|
39
|
+
[varName.value("inset-offset")]: insetOffset.value,
|
|
40
|
+
[varName.value("border-radius")]: borderInfo.value.borderRadius
|
|
41
|
+
};
|
|
42
|
+
const beamNode = hostDom.value ? createVNode(Teleport, { "to": hostDom.value }, { default: () => [createVNode("div", {
|
|
43
|
+
"aria-hidden": "true",
|
|
44
|
+
"class": clsx(prefixCls.value, contextClassName?.value, props.rootClass, attrs.class, hashId.value, cssVarCls.value),
|
|
45
|
+
"style": beamStyle
|
|
46
|
+
}, null)] }) : null;
|
|
47
|
+
const renderChild = () => {
|
|
48
|
+
if (children.length !== 1 || !isVNode(children[0])) return children;
|
|
49
|
+
const child = children[0];
|
|
50
|
+
return cloneVNode(child, { ref: setHostDom }, true);
|
|
51
|
+
};
|
|
52
|
+
return createVNode(Fragment, null, [renderChild(), beamNode]);
|
|
53
|
+
};
|
|
54
|
+
}, {
|
|
55
|
+
props: {
|
|
56
|
+
prefixCls: {
|
|
57
|
+
type: String,
|
|
58
|
+
required: false
|
|
59
|
+
},
|
|
60
|
+
rootClass: {
|
|
61
|
+
type: String,
|
|
62
|
+
required: false
|
|
63
|
+
},
|
|
64
|
+
color: {
|
|
65
|
+
type: [String, Array],
|
|
66
|
+
required: false
|
|
67
|
+
},
|
|
68
|
+
outset: {
|
|
69
|
+
type: [Number, String],
|
|
70
|
+
required: false
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
name: "ABorderBeam",
|
|
74
|
+
inheritAttrs: false
|
|
75
|
+
});
|
|
76
|
+
var BorderBeam_default = BorderBeam;
|
|
77
|
+
BorderBeam.install = (app) => {
|
|
78
|
+
app.component(BorderBeam.name, BorderBeam);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
//#endregion
|
|
82
|
+
export { BorderBeam_default as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as vue727 from "vue";
|
|
2
|
+
import { Ref } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/border-beam/hooks/useBorderSize.d.ts
|
|
5
|
+
type BorderWidth = readonly [number, number, number, number];
|
|
6
|
+
interface BorderInfo {
|
|
7
|
+
borderWidth: BorderWidth;
|
|
8
|
+
borderRadius: string;
|
|
9
|
+
}
|
|
10
|
+
declare function useBorderSize(domNode: Ref<HTMLElement | SVGElement | null | undefined>): vue727.ShallowRef<BorderInfo, BorderInfo>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { BorderInfo, BorderWidth, useBorderSize as default };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { shallowRef, watch } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/border-beam/hooks/useBorderSize.ts
|
|
4
|
+
const DEFAULT_BORDER_INFO = {
|
|
5
|
+
borderWidth: [
|
|
6
|
+
0,
|
|
7
|
+
0,
|
|
8
|
+
0,
|
|
9
|
+
0
|
|
10
|
+
],
|
|
11
|
+
borderRadius: "0px"
|
|
12
|
+
};
|
|
13
|
+
function parseBorderWidth(value) {
|
|
14
|
+
const size = Number.parseFloat(value);
|
|
15
|
+
return Number.isFinite(size) ? size : 0;
|
|
16
|
+
}
|
|
17
|
+
function useBorderSize(domNode) {
|
|
18
|
+
const borderInfo = shallowRef(DEFAULT_BORDER_INFO);
|
|
19
|
+
watch(domNode, (node) => {
|
|
20
|
+
if (!node) {
|
|
21
|
+
borderInfo.value = DEFAULT_BORDER_INFO;
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const { borderTopWidth, borderRightWidth, borderBottomWidth, borderLeftWidth, borderRadius } = getComputedStyle(node);
|
|
25
|
+
borderInfo.value = {
|
|
26
|
+
borderWidth: [
|
|
27
|
+
parseBorderWidth(borderTopWidth),
|
|
28
|
+
parseBorderWidth(borderRightWidth),
|
|
29
|
+
parseBorderWidth(borderBottomWidth),
|
|
30
|
+
parseBorderWidth(borderLeftWidth)
|
|
31
|
+
],
|
|
32
|
+
borderRadius
|
|
33
|
+
};
|
|
34
|
+
}, {
|
|
35
|
+
immediate: true,
|
|
36
|
+
flush: "post"
|
|
37
|
+
});
|
|
38
|
+
return borderInfo;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
export { useBorderSize as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as vue676 from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/border-beam/style/index.d.ts
|
|
4
|
+
type ComponentToken = object;
|
|
5
|
+
declare const _default: (prefixCls: vue676.Ref<string>, rootCls?: vue676.Ref<string | undefined>) => readonly [vue676.Ref<string, string>, vue676.ComputedRef<string | undefined>];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { ComponentToken, _default as default };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { genCssVar, genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
2
|
+
import { genNoMotionStyle } from "../../style/motion/util.js";
|
|
3
|
+
import { MAX_BEAM_COLOR_STOP_PERCENT } from "../util.js";
|
|
4
|
+
import { Keyframes } from "@antdv-next/cssinjs";
|
|
5
|
+
|
|
6
|
+
//#region src/border-beam/style/index.ts
|
|
7
|
+
const genBorderBeamStyle = (token) => {
|
|
8
|
+
const { componentCls, antCls } = token;
|
|
9
|
+
const [, varRef] = genCssVar(antCls, "border-beam");
|
|
10
|
+
const defaultBeamGradient = `linear-gradient(to left, ${token.colorPrimary} 0%, ${token.colorPrimaryHover} ${MAX_BEAM_COLOR_STOP_PERCENT}%, transparent)`;
|
|
11
|
+
const antBorderBeamMove = new Keyframes("antBorderBeamMove", {
|
|
12
|
+
from: { offsetDistance: "0%" },
|
|
13
|
+
to: { offsetDistance: "100%" }
|
|
14
|
+
});
|
|
15
|
+
return { [componentCls]: {
|
|
16
|
+
display: "none",
|
|
17
|
+
position: "absolute",
|
|
18
|
+
inset: varRef("inset-offset", "0px"),
|
|
19
|
+
borderRadius: varRef("border-radius", "0px"),
|
|
20
|
+
zIndex: 1,
|
|
21
|
+
overflow: "hidden",
|
|
22
|
+
pointerEvents: "none",
|
|
23
|
+
padding: token.lineWidth,
|
|
24
|
+
"@supports ((mask-composite: exclude) or (-webkit-mask-composite: xor))": {
|
|
25
|
+
WebkitMask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
|
|
26
|
+
WebkitMaskComposite: "xor",
|
|
27
|
+
mask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
|
|
28
|
+
maskComposite: "exclude",
|
|
29
|
+
"@supports (offset-path: rect(0 auto auto 0 round 1px))": {
|
|
30
|
+
display: "block",
|
|
31
|
+
"&::before": {
|
|
32
|
+
...genNoMotionStyle(),
|
|
33
|
+
content: "\"\"",
|
|
34
|
+
position: "absolute",
|
|
35
|
+
top: 0,
|
|
36
|
+
left: 0,
|
|
37
|
+
width: 100,
|
|
38
|
+
aspectRatio: "1 / 1",
|
|
39
|
+
opacity: .95,
|
|
40
|
+
backgroundImage: varRef("beam-gradient", defaultBeamGradient),
|
|
41
|
+
offsetAnchor: "90% 50%",
|
|
42
|
+
offsetDistance: "0%",
|
|
43
|
+
offsetPath: "rect(0 auto auto 0 round 100px)",
|
|
44
|
+
offsetRotate: "auto",
|
|
45
|
+
animationName: antBorderBeamMove,
|
|
46
|
+
animationDuration: "6s",
|
|
47
|
+
animationTimingFunction: "linear",
|
|
48
|
+
animationIterationCount: "infinite",
|
|
49
|
+
willChange: "offset-distance"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"@media (prefers-reduced-motion: reduce)": { "&::before": { display: "none" } }
|
|
54
|
+
} };
|
|
55
|
+
};
|
|
56
|
+
var style_default = genStyleHooks("BorderBeam", genBorderBeamStyle);
|
|
57
|
+
|
|
58
|
+
//#endregion
|
|
59
|
+
export { style_default as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/border-beam/util.d.ts
|
|
2
|
+
interface BorderBeamGradientItem {
|
|
3
|
+
color: string;
|
|
4
|
+
percent: number;
|
|
5
|
+
}
|
|
6
|
+
type BorderBeamGradient = BorderBeamGradientItem[];
|
|
7
|
+
type BorderBeamColor = string | BorderBeamGradient;
|
|
8
|
+
declare const MAX_BEAM_COLOR_STOP_PERCENT = 70;
|
|
9
|
+
declare function getBorderBeamGradient(value?: BorderBeamColor): string | undefined;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { BorderBeamColor, BorderBeamGradient, BorderBeamGradientItem, MAX_BEAM_COLOR_STOP_PERCENT, getBorderBeamGradient };
|