antdv-next 1.5.0 → 1.5.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/hooks/useMergeSemantic.d.ts +7 -4
- package/dist/_util/hooks/useMergeSemantic.js +8 -3
- package/dist/_util/statusUtils.d.ts +1 -1
- package/dist/alert/style/index.d.ts +5 -0
- package/dist/alert/style/index.js +2 -1
- package/dist/antd-with-locales.esm.js +12237 -12330
- package/dist/antd-with-locales.js +80 -80
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +9917 -10224
- package/dist/antd.js +55 -55
- package/dist/avatar/AvatarGroup.d.ts +4 -1
- package/dist/avatar/AvatarGroup.js +6 -4
- package/dist/avatar/index.d.ts +2 -2
- package/dist/badge/Ribbon.d.ts +4 -1
- package/dist/badge/Ribbon.js +11 -11
- package/dist/badge/index.d.ts +3 -2
- package/dist/badge/index.js +26 -24
- package/dist/border-beam/BorderBeam.d.ts +1 -0
- package/dist/border-beam/BorderBeam.js +30 -11
- package/dist/border-beam/hooks/useBorderSize.d.ts +3 -7
- package/dist/border-beam/hooks/useBorderSize.js +25 -26
- package/dist/border-beam/style/index.js +9 -8
- package/dist/border-beam/util.d.ts +3 -1
- package/dist/border-beam/util.js +4 -1
- package/dist/breadcrumb/Breadcrumb.d.ts +4 -1
- package/dist/breadcrumb/Breadcrumb.js +12 -7
- package/dist/breadcrumb/index.d.ts +2 -2
- package/dist/button/Button.js +5 -14
- package/dist/button/buttonHelper.d.ts +1 -1
- package/dist/button/style/index.js +0 -1
- package/dist/calendar/generateCalendar.d.ts +4 -1
- package/dist/calendar/generateCalendar.js +8 -5
- package/dist/calendar/index.d.ts +2 -2
- package/dist/calendar/locale/sq_AL.d.ts +2 -0
- package/dist/calendar/locale/sq_AL.js +5 -0
- package/dist/card/CardGrid.d.ts +4 -1
- package/dist/card/CardGrid.js +7 -4
- package/dist/card/CardMeta.d.ts +4 -1
- package/dist/card/CardMeta.js +5 -3
- package/dist/card/index.d.ts +3 -3
- package/dist/carousel/index.d.ts +1 -0
- package/dist/carousel/index.js +8 -8
- package/dist/color-picker/ColorPicker.js +4 -7
- package/dist/components.d.ts +25 -21
- package/dist/components.js +4 -3
- package/dist/config-provider/context.d.ts +24 -8
- package/dist/config-provider/define.d.ts +2 -1
- package/dist/config-provider/index.js +10 -0
- package/dist/date-picker/generatePicker/generateRangePicker.js +2 -5
- package/dist/date-picker/generatePicker/generateSinglePicker.js +2 -5
- package/dist/date-picker/hooks/useMergedPickerSemantic.d.ts +1 -1
- package/dist/date-picker/hooks/useMergedPickerSemantic.js +7 -3
- package/dist/date-picker/locale/sq_AL.d.ts +6 -0
- package/dist/date-picker/locale/sq_AL.js +72 -0
- package/dist/date-picker/locale/zh_TW.js +2 -2
- package/dist/date-picker/util.d.ts +2 -6
- package/dist/descriptions/hooks/useItems.d.ts +8 -8
- package/dist/descriptions/index.d.ts +4 -1
- package/dist/descriptions/index.js +5 -2
- package/dist/divider/index.d.ts +4 -1
- package/dist/divider/index.js +9 -6
- package/dist/drawer/DrawerPanel.js +5 -3
- package/dist/drawer/index.js +9 -13
- package/dist/drawer/style/index.js +1 -0
- package/dist/dropdown/dropdown.js +4 -6
- package/dist/empty/index.d.ts +4 -1
- package/dist/empty/index.js +5 -2
- package/dist/float-button/BackTop.d.ts +2 -0
- package/dist/float-button/BackTop.js +25 -43
- package/dist/float-button/FloatButtonGroup.d.ts +4 -1
- package/dist/float-button/FloatButtonGroup.js +5 -4
- package/dist/float-button/hooks/useScroll.d.ts +16 -0
- package/dist/float-button/hooks/useScroll.js +80 -0
- package/dist/float-button/index.d.ts +2 -2
- package/dist/float-button/style/button.js +17 -0
- package/dist/form/ErrorList.js +2 -2
- package/dist/form/FormItem/index.js +23 -24
- package/dist/form/hooks/useVariant.d.ts +2 -2
- package/dist/form/hooks/useVariant.js +15 -5
- package/dist/form/types.d.ts +11 -3
- package/dist/form/utils/validateUtil.js +4 -0
- package/dist/image/hooks/usePreviewConfig.d.ts +1 -0
- package/dist/image/index.js +8 -9
- package/dist/index.d.ts +25 -21
- package/dist/index.js +2 -2
- package/dist/input/OTP/index.js +6 -3
- package/dist/input/Password.js +4 -1
- package/dist/input/Search.js +11 -6
- package/dist/input/index.d.ts +1 -1
- package/dist/input/style/token.js +2 -1
- package/dist/input/style/variants.js +1 -1
- package/dist/listy/interface.d.ts +3 -2
- package/dist/locale/sq_AL.d.ts +5 -0
- package/dist/locale/sq_AL.js +151 -0
- package/dist/locale/zh_TW.js +41 -41
- package/dist/masonry/Masonry.js +4 -4
- package/dist/mentions/index.d.ts +1 -0
- package/dist/mentions/index.js +4 -0
- package/dist/message/useMessage.js +4 -4
- package/dist/modal/PurePanel.js +4 -7
- package/dist/notification/useNotification.js +4 -5
- package/dist/package.js +1 -1
- package/dist/pagination/Pagination.js +14 -6
- package/dist/pagination/index.d.ts +2 -2
- package/dist/pagination/interface.d.ts +20 -3
- package/dist/popconfirm/index.js +17 -8
- package/dist/popover/PurePanel.js +10 -0
- package/dist/popover/index.js +24 -16
- package/dist/qrcode/index.d.ts +4 -1
- package/dist/qrcode/index.js +16 -13
- package/dist/rate/style/index.js +12 -9
- package/dist/result/index.d.ts +4 -1
- package/dist/result/index.js +7 -4
- package/dist/select/style/dropdown.js +4 -0
- package/dist/select/style/select-input.js +1 -1
- package/dist/select/style/token.js +4 -2
- package/dist/select/useIcons.d.ts +2 -6
- package/dist/skeleton/Skeleton.d.ts +4 -1
- package/dist/skeleton/Skeleton.js +10 -4
- package/dist/skeleton/index.d.ts +2 -2
- package/dist/slider/SliderTooltip.js +5 -0
- package/dist/slider/index.d.ts +5 -1
- package/dist/slider/index.js +9 -9
- package/dist/space/Compact.d.ts +4 -1
- package/dist/space/Compact.js +8 -3
- package/dist/space/index.d.ts +2 -2
- package/dist/space/index.js +3 -3
- package/dist/spin/index.d.ts +4 -1
- package/dist/spin/index.js +7 -5
- package/dist/splitter/Splitter.d.ts +4 -1
- package/dist/splitter/Splitter.js +4 -2
- package/dist/splitter/index.d.ts +2 -2
- package/dist/splitter/style/index.js +2 -1
- package/dist/statistic/Statistic.d.ts +4 -1
- package/dist/statistic/index.d.ts +2 -2
- package/dist/steps/index.js +6 -8
- package/dist/steps/style/index.js +2 -1
- package/dist/table/style/virtual.js +4 -0
- package/dist/table/util.d.ts +1 -1
- package/dist/tag/index.js +3 -3
- package/dist/theme/interface/seeds.d.ts +8 -0
- package/dist/theme/themes/seed.js +1 -0
- package/dist/theme/util/alias.js +1 -1
- package/dist/time-picker/locale/sq_AL.d.ts +5 -0
- package/dist/time-picker/locale/sq_AL.js +7 -0
- package/dist/timeline/Timeline.js +5 -7
- package/dist/tooltip/PurePanel.js +5 -0
- package/dist/tooltip/index.d.ts +1 -0
- package/dist/tooltip/index.js +27 -13
- package/dist/tour/index.js +10 -13
- package/dist/transfer/Transfer.d.ts +4 -1
- package/dist/transfer/Transfer.js +5 -2
- package/dist/transfer/index.d.ts +2 -2
- package/dist/tree/index.d.ts +3 -2
- package/dist/tree/index.js +3 -2
- package/dist/tree/style/index.js +4 -0
- package/dist/typography/Base/EllipsisTooltip.d.ts +6 -1
- package/dist/typography/Base/EllipsisTooltip.js +2 -2
- package/dist/typography/Base/index.js +9 -26
- package/dist/typography/hooks/useCopyClick.d.ts +1 -1
- package/dist/typography/hooks/useCopyClick.js +5 -15
- package/dist/upload/Upload.js +7 -9
- package/dist/upload/UploadList/ListItem.js +4 -12
- package/dist/upload/index.d.ts +2 -2
- package/dist/watermark/index.d.ts +4 -1
- package/dist/watermark/index.js +2 -1
- package/package.json +7 -7
- package/web-tags.json +837 -808
- package/web-types.json +2950 -2885
- package/dist/slider/useRafLock.d.ts +0 -5
- package/dist/slider/useRafLock.js +0 -23
|
@@ -48,11 +48,14 @@ declare function useToProps<T>(props: Ref<T>): import("vue").ComputedRef<{
|
|
|
48
48
|
* semantic `{ root: style }` object so it can be merged into the `styles` list at a
|
|
49
49
|
* defined priority instead of being applied directly on the root element (which would
|
|
50
50
|
* clobber the semantic `styles.root`). Aligns root semantic style priority.
|
|
51
|
-
*
|
|
51
|
+
*
|
|
52
|
+
* `key` lets components whose legacy inline `style` targets a non-root semantic node
|
|
53
|
+
* (e.g. Drawer `section`, Upload `trigger`, Badge `indicator`) reuse the same wrapper.
|
|
54
|
+
* It accepts a ref for the cases where the target node depends on the current props
|
|
55
|
+
* (e.g. Badge switches between `root` and `indicator`).
|
|
56
|
+
* sync ant-design#58474 ant-design#58564
|
|
52
57
|
*/
|
|
53
|
-
declare function useSemanticRootStyle<Style = CSSProperties>(style: Ref<Style | undefined>): import("vue").ComputedRef<
|
|
54
|
-
root: NonNullable<Style>;
|
|
55
|
-
} | undefined>;
|
|
58
|
+
declare function useSemanticRootStyle<Style = CSSProperties, Key extends string = 'root'>(style: Ref<Style | undefined>, key?: Key | Ref<Key>): import("vue").ComputedRef<Partial<Record<Key, Style>> | undefined>;
|
|
56
59
|
interface RemoveBaseAttributesOptions {
|
|
57
60
|
class?: boolean;
|
|
58
61
|
style?: boolean;
|
|
@@ -97,10 +97,15 @@ function useToProps(props) {
|
|
|
97
97
|
* semantic `{ root: style }` object so it can be merged into the `styles` list at a
|
|
98
98
|
* defined priority instead of being applied directly on the root element (which would
|
|
99
99
|
* clobber the semantic `styles.root`). Aligns root semantic style priority.
|
|
100
|
-
*
|
|
100
|
+
*
|
|
101
|
+
* `key` lets components whose legacy inline `style` targets a non-root semantic node
|
|
102
|
+
* (e.g. Drawer `section`, Upload `trigger`, Badge `indicator`) reuse the same wrapper.
|
|
103
|
+
* It accepts a ref for the cases where the target node depends on the current props
|
|
104
|
+
* (e.g. Badge switches between `root` and `indicator`).
|
|
105
|
+
* sync ant-design#58474 ant-design#58564
|
|
101
106
|
*/
|
|
102
|
-
function useSemanticRootStyle(style) {
|
|
103
|
-
return computed(() => style.value ? {
|
|
107
|
+
function useSemanticRootStyle(style, key = "root") {
|
|
108
|
+
return computed(() => style.value ? { [unref(key)]: style.value } : void 0);
|
|
104
109
|
}
|
|
105
110
|
const defaultOptions = {
|
|
106
111
|
class: true,
|
|
@@ -3,6 +3,6 @@ import { ValidateStatus } from "../form/FormItem/index.js";
|
|
|
3
3
|
declare const _InputStatuses: readonly ["warning", "error", "", "success", "validating"];
|
|
4
4
|
type InputStatus = (typeof _InputStatuses)[number];
|
|
5
5
|
declare function getStatusClassNames(prefixCls: string, status?: ValidateStatus, hasFeedback?: boolean): string;
|
|
6
|
-
declare function getMergedStatus(contextStatus?: ValidateStatus, customStatus?: InputStatus): "" | "
|
|
6
|
+
declare function getMergedStatus(contextStatus?: ValidateStatus, customStatus?: InputStatus): "" | "success" | "error" | "warning" | "validating" | undefined;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { InputStatus, getMergedStatus, getStatusClassNames };
|
|
@@ -5,6 +5,11 @@ import { CSSProperties } from "vue";
|
|
|
5
5
|
import { CSSObject } from "@antdv-next/cssinjs";
|
|
6
6
|
//#region src/alert/style/index.d.ts
|
|
7
7
|
interface ComponentToken {
|
|
8
|
+
/**
|
|
9
|
+
* @desc 组件圆角
|
|
10
|
+
* @descEN Border radius of alert
|
|
11
|
+
*/
|
|
12
|
+
borderRadius: CSSProperties['borderRadius'];
|
|
8
13
|
/**
|
|
9
14
|
* @desc 默认内间距
|
|
10
15
|
* @descEN Default padding
|
|
@@ -10,7 +10,7 @@ function genAlertTypeStyle(bgColor, borderColor, iconColor, token, alertCls) {
|
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
const genBaseStyle = (token) => {
|
|
13
|
-
const { componentCls, motionDurationSlow: duration, marginXS, marginSM, fontSize, fontSizeLG, lineHeight,
|
|
13
|
+
const { componentCls, motionDurationSlow: duration, marginXS, marginSM, fontSize, fontSizeLG, lineHeight, motionEaseInOutCirc, borderRadius, withDescriptionIconSize, colorText, colorTextHeading, withDescriptionPadding, defaultPadding } = token;
|
|
14
14
|
return { [componentCls]: {
|
|
15
15
|
...resetComponent(token),
|
|
16
16
|
position: "relative",
|
|
@@ -122,6 +122,7 @@ const genActionStyle = (token) => {
|
|
|
122
122
|
};
|
|
123
123
|
const prepareComponentToken = (token) => {
|
|
124
124
|
return {
|
|
125
|
+
borderRadius: token.borderRadiusLG,
|
|
125
126
|
withDescriptionIconSize: token.fontSizeHeading3,
|
|
126
127
|
defaultPadding: `${token.paddingContentVerticalSM}px 12px`,
|
|
127
128
|
withDescriptionPadding: `${token.paddingMD}px ${token.paddingContentHorizontalLG}px`
|