antdv-next 1.0.0-alpha.4 → 1.0.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/PurePanel.js +106 -0
- package/dist/_util/hooks/useMergeSemantic.js +3 -3
- package/dist/_util/styleUtils.js +10 -0
- package/dist/_util/tools.js +2 -1
- package/dist/_util/wave/WaveEffect.js +6 -1
- package/dist/_util/wave/style.js +4 -3
- package/dist/affix/index.d.ts +3 -3
- package/dist/alert/Alert.d.ts +4 -3
- package/dist/alert/Alert.js +1 -1
- package/dist/anchor/Anchor.d.ts +5 -5
- package/dist/anchor/AnchorLink.js +2 -2
- package/dist/anchor/index.d.ts +1 -1
- package/dist/antd.js +123 -115
- package/dist/app/App.d.ts +2 -2
- package/dist/auto-complete/index.d.ts +78 -0
- package/dist/auto-complete/index.js +634 -0
- package/dist/avatar/Avatar.d.ts +3 -3
- package/dist/avatar/AvatarGroup.d.ts +2 -2
- package/dist/badge/Ribbon.d.ts +3 -3
- package/dist/badge/ScrollNumber.js +1 -1
- package/dist/badge/SingleNumber.js +1 -1
- package/dist/badge/index.d.ts +3 -3
- package/dist/badge/index.js +5 -3
- package/dist/badge/style/index.js +1 -1
- package/dist/breadcrumb/Breadcrumb.d.ts +5 -5
- package/dist/breadcrumb/Breadcrumb.js +0 -8
- package/dist/breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/dist/breadcrumb/BreadcrumbItem.js +1 -17
- package/dist/breadcrumb/index.d.ts +1 -1
- package/dist/button/Button.d.ts +3 -3
- package/dist/button/style/variant.js +116 -104
- package/dist/calendar/Header.js +1 -1
- package/dist/calendar/generateCalendar.d.ts +3 -3
- package/dist/calendar/index.d.ts +3 -3
- package/dist/calendar/style/index.d.ts +1 -1
- package/dist/calendar/style/index.js +1 -1
- package/dist/card/Card.d.ts +3 -3
- package/dist/card/CardGrid.d.ts +2 -2
- package/dist/card/CardMeta.d.ts +3 -3
- package/dist/card/style/index.js +11 -2
- package/dist/carousel/index.d.ts +3 -3
- package/dist/cascader/Panel.d.ts +3 -3
- package/dist/cascader/index.d.ts +4 -3
- package/dist/cascader/index.js +3 -1
- package/dist/checkbox/Checkbox.d.ts +3 -3
- package/dist/checkbox/Group.d.ts +3 -3
- package/dist/checkbox/style/index.d.ts +1 -1
- package/dist/collapse/Collapse.d.ts +3 -3
- package/dist/color-picker/ColorPicker.d.ts +3 -3
- package/dist/color-picker/ColorPicker.js +13 -2
- package/dist/components.d.ts +11 -8
- package/dist/components.js +7 -4
- package/dist/config-provider/context.d.ts +2 -1
- package/dist/config-provider/context.js +3 -3
- package/dist/config-provider/define.d.ts +14 -0
- package/dist/config-provider/index.d.ts +3 -3
- package/dist/config-provider/index.js +21 -2
- package/dist/date-picker/generatePicker/generateRangePicker.js +2 -2
- package/dist/date-picker/generatePicker/generateSinglePicker.js +3 -2
- package/dist/date-picker/generatePicker/index.d.ts +17 -17
- package/dist/date-picker/index.d.ts +29 -27
- package/dist/date-picker/index.js +3 -0
- package/dist/date-picker/style/panel.js +4 -4
- package/dist/descriptions/index.d.ts +3 -3
- package/dist/divider/index.d.ts +2 -2
- package/dist/drawer/index.d.ts +6 -4
- package/dist/drawer/index.js +17 -5
- package/dist/drawer/useFocusable.d.ts +10 -0
- package/dist/drawer/useFocusable.js +18 -0
- package/dist/dropdown/dropdown.d.ts +4 -4
- package/dist/dropdown/dropdown.js +12 -3
- package/dist/empty/index.d.ts +3 -3
- package/dist/flex/index.d.ts +3 -3
- package/dist/flex/index.js +1 -1
- package/dist/float-button/BackTop.d.ts +3 -3
- package/dist/float-button/BackTop.js +4 -1
- package/dist/float-button/FloatButton.d.ts +3 -3
- package/dist/float-button/FloatButtonGroup.d.ts +3 -3
- package/dist/float-button/PurePanel.js +5 -5
- package/dist/float-button/style/button.js +4 -4
- package/dist/float-button/style/group.js +12 -12
- package/dist/form/ErrorList.js +4 -7
- package/dist/form/Form.d.ts +7 -3
- package/dist/form/Form.js +39 -22
- package/dist/form/FormItem/ItemHolder.js +0 -1
- package/dist/form/FormItem/index.d.ts +5 -5
- package/dist/form/FormItem/index.js +48 -29
- package/dist/form/FormItemInput.js +17 -19
- package/dist/form/style/index.js +3 -2
- package/dist/form/utils/valueUtil.js +4 -1
- package/dist/grid/col.js +7 -2
- package/dist/grid/index.d.ts +2 -2
- package/dist/grid/row.d.ts +2 -2
- package/dist/grid/style/index.js +7 -5
- package/dist/image/PreviewGroup.d.ts +2 -2
- package/dist/image/index.d.ts +7 -4
- package/dist/image/index.js +2 -0
- package/dist/image/style/index.d.ts +1 -1
- package/dist/index.d.ts +16 -12
- package/dist/index.js +7 -4
- package/dist/input/Input.js +1 -1
- package/dist/input/OTP/index.js +1 -1
- package/dist/input/TextArea.d.ts +3 -3
- package/dist/input/TextArea.js +1 -1
- package/dist/input/index.d.ts +11 -11
- package/dist/input/style/index.d.ts +2 -2
- package/dist/input-number/index.d.ts +4 -4
- package/dist/input-number/index.js +2 -6
- package/dist/input-number/style/index.js +18 -17
- package/dist/layout/index.d.ts +6 -6
- package/dist/layout/layout.d.ts +2 -2
- package/dist/layout/style/sider.js +1 -1
- package/dist/masonry/Masonry.d.ts +3 -3
- package/dist/masonry/Masonry.js +8 -6
- package/dist/mentions/index.d.ts +4 -3
- package/dist/mentions/index.js +4 -2
- package/dist/mentions/style/index.js +18 -17
- package/dist/menu/MenuDivider.d.ts +2 -2
- package/dist/menu/MenuItem.d.ts +3 -3
- package/dist/menu/index.d.ts +5 -5
- package/dist/menu/style/horizontal.js +1 -1
- package/dist/menu/style/index.js +5 -5
- package/dist/message/PurePanel.d.ts +2 -2
- package/dist/message/useMessage.d.ts +1 -0
- package/dist/modal/ConfirmDialog.js +1 -1
- package/dist/modal/Modal.d.ts +3 -3
- package/dist/modal/Modal.js +17 -6
- package/dist/modal/PurePanel.js +305 -0
- package/dist/modal/index.js +2 -0
- package/dist/modal/interface.d.ts +3 -1
- package/dist/notification/PurePanel.d.ts +2 -2
- package/dist/notification/PurePanel.js +4 -3
- package/dist/notification/style/index.d.ts +1 -1
- package/dist/notification/useNotification.d.ts +2 -1
- package/dist/notification/useNotification.js +7 -7
- package/dist/package.d.ts +143 -3
- package/dist/package.js +1 -1
- package/dist/pagination/Pagination.d.ts +3 -3
- package/dist/pagination/Pagination.js +1 -1
- package/dist/pagination/style/index.js +61 -50
- package/dist/popconfirm/PurePanel.d.ts +2 -2
- package/dist/popconfirm/PurePanel.js +2 -1
- package/dist/popconfirm/index.d.ts +3 -3
- package/dist/popover/PurePanel.js +4 -2
- package/dist/popover/index.d.ts +9 -6
- package/dist/popover/index.js +2 -1
- package/dist/popover/style/index.js +11 -8
- package/dist/progress/progress.d.ts +3 -3
- package/dist/qrcode/index.d.ts +3 -3
- package/dist/radio/index.d.ts +5 -5
- package/dist/radio/radio.d.ts +3 -3
- package/dist/radio/style/index.js +1 -1
- package/dist/rate/index.d.ts +3 -3
- package/dist/rate/style/index.d.ts +1 -1
- package/dist/result/index.d.ts +3 -3
- package/dist/result/noFound.d.ts +2 -2
- package/dist/result/serverError.d.ts +2 -2
- package/dist/segmented/index.d.ts +3 -3
- package/dist/select/index.d.ts +6 -6
- package/dist/select/index.js +5 -3
- package/dist/select/style/dropdown.js +1 -1
- package/dist/select/style/select-input-multiple.js +31 -29
- package/dist/select/style/select-input.js +50 -44
- package/dist/skeleton/Avatar.d.ts +2 -2
- package/dist/skeleton/Button.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 +3 -3
- package/dist/skeleton/Skeleton.d.ts +3 -3
- package/dist/skeleton/Skeleton.js +1 -1
- package/dist/skeleton/Title.d.ts +1 -2
- package/dist/skeleton/Title.js +0 -5
- package/dist/slider/index.d.ts +3 -3
- package/dist/space/Compact.d.ts +2 -0
- package/dist/space/Compact.js +17 -4
- package/dist/space/index.d.ts +5 -5
- package/dist/space/style/addon.js +20 -19
- package/dist/spin/index.d.ts +3 -3
- package/dist/spin/index.js +7 -6
- package/dist/splitter/SplitBar.js +9 -2
- package/dist/splitter/Splitter.d.ts +3 -3
- package/dist/splitter/Splitter.js +2 -1
- package/dist/splitter/index.d.ts +2 -2
- package/dist/splitter/style/index.js +6 -6
- package/dist/statistic/Statistic.d.ts +3 -3
- package/dist/statistic/Timer.d.ts +5 -5
- package/dist/statistic/index.d.ts +5 -5
- package/dist/steps/ProgressIcon.js +9 -2
- package/dist/steps/index.d.ts +3 -3
- package/dist/steps/index.js +7 -4
- package/dist/steps/style/horizontal.js +13 -10
- package/dist/steps/style/icon.js +12 -9
- package/dist/steps/style/index.js +19 -18
- package/dist/steps/style/inline.js +20 -17
- package/dist/steps/style/label-placement.js +22 -20
- package/dist/steps/style/nav.js +7 -5
- package/dist/steps/style/panel.js +34 -32
- package/dist/steps/style/progress-dot.js +10 -8
- package/dist/steps/style/progress.js +29 -58
- package/dist/steps/style/rtl.js +6 -4
- package/dist/steps/style/small.js +10 -8
- package/dist/steps/style/status.js +124 -121
- package/dist/steps/style/util.js +7 -4
- package/dist/steps/style/vertical.js +17 -14
- package/dist/style/placementArrow.js +7 -5
- package/dist/switch/index.d.ts +3 -3
- package/dist/table/Column.d.ts +3 -3
- package/dist/table/ColumnGroup.d.ts +3 -3
- package/dist/table/InternalTable.js +20 -6
- package/dist/table/Table.d.ts +3 -3
- package/dist/table/hooks/useFilter/FilterDropdown.js +1 -1
- package/dist/table/style/index.js +3 -3
- package/dist/table/style/radius.js +6 -0
- package/dist/table/style/virtual.js +1 -1
- package/dist/tabs/TabPane.d.ts +3 -3
- package/dist/tabs/index.d.ts +3 -3
- package/dist/tag/CheckableTag.d.ts +3 -3
- package/dist/tag/CheckableTagGroup.d.ts +3 -3
- package/dist/tag/CheckableTagGroup.js +3 -3
- package/dist/tag/index.d.ts +3 -3
- package/dist/theme/context.d.ts +2 -2
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/useToken.d.ts +2 -2
- package/dist/theme/useToken.js +1 -1
- package/dist/theme/util/genStyleUtils.d.ts +2 -2
- package/dist/theme/util/genStyleUtils.js +8 -5
- package/dist/theme/util/useResetIconStyle.js +1 -1
- package/dist/time-picker/index.d.ts +8 -7
- package/dist/time-picker/index.js +17 -13
- package/dist/timeline/Timeline.d.ts +3 -3
- package/dist/tooltip/PurePanel.d.ts +2 -2
- package/dist/tooltip/PurePanel.js +12 -8
- package/dist/tooltip/UniqueProvider/index.d.ts +2 -2
- package/dist/tooltip/index.d.ts +3 -3
- package/dist/tooltip/index.js +2 -3
- package/dist/tooltip/style/index.js +10 -8
- package/dist/tooltip/util.js +5 -3
- package/dist/tour/PurePanel.js +243 -0
- package/dist/tour/index.d.ts +3 -3
- package/dist/tour/index.js +2 -0
- package/dist/tour/style/index.js +5 -4
- package/dist/transfer/Actions.d.ts +2 -2
- package/dist/transfer/Section.d.ts +2 -2
- package/dist/transfer/Transfer.d.ts +3 -3
- package/dist/transfer/Transfer.js +2 -2
- package/dist/transfer/search.d.ts +3 -3
- package/dist/tree/DirectoryTree.d.ts +3 -3
- package/dist/tree/Tree.d.ts +3 -3
- package/dist/tree/style/index.d.ts +1 -1
- package/dist/tree-select/index.d.ts +5 -4
- package/dist/tree-select/index.js +3 -1
- package/dist/typography/Link.d.ts +3 -3
- package/dist/typography/Paragraph.d.ts +3 -3
- package/dist/typography/Text.d.ts +3 -3
- package/dist/typography/Title.d.ts +3 -3
- package/dist/typography/Typography.d.ts +3 -3
- package/dist/typography/index.d.ts +9 -9
- package/dist/upload/Dragger.d.ts +6 -3
- package/dist/upload/Upload.d.ts +3 -3
- package/dist/upload/Upload.js +15 -1
- package/dist/upload/index.d.ts +6 -3
- package/dist/upload/interface.d.ts +4 -4
- package/global.d.ts +3 -0
- package/package.json +69 -17
- package/web-tags.json +5069 -0
- package/web-types.json +14335 -0
package/dist/popover/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { VueNode } from "../_util/type.js";
|
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
4
|
import { SemanticName, TooltipEmits, TooltipProps } from "../tooltip/index.js";
|
|
5
|
-
import * as
|
|
6
|
-
import { SlotsType } from "vue";
|
|
5
|
+
import * as vue132 from "vue";
|
|
6
|
+
import { App, SlotsType } from "vue";
|
|
7
7
|
|
|
8
8
|
//#region src/popover/index.d.ts
|
|
9
9
|
type PopoverSemanticName = SemanticName | 'title' | 'content';
|
|
@@ -23,9 +23,12 @@ interface PopoverSlots {
|
|
|
23
23
|
content: () => any;
|
|
24
24
|
default: () => any;
|
|
25
25
|
}
|
|
26
|
-
declare const InternalPopover:
|
|
26
|
+
declare const InternalPopover: vue132.DefineSetupFnComponent<PopoverProps, PopoverEmits, SlotsType<PopoverSlots>, PopoverProps & {
|
|
27
27
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
28
|
-
},
|
|
29
|
-
declare const
|
|
28
|
+
}, vue132.PublicProps>;
|
|
29
|
+
declare const Popover: typeof InternalPopover & {
|
|
30
|
+
install: (app: App) => void;
|
|
31
|
+
_InternalPanelDoNotUseOrYouWillBeFired: any;
|
|
32
|
+
};
|
|
30
33
|
//#endregion
|
|
31
|
-
export { PopoverProps, PopoverSemanticName
|
|
34
|
+
export { Popover, PopoverProps, PopoverSemanticName };
|
package/dist/popover/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
|
5
5
|
import useMergedArrow_default from "../tooltip/hooks/useMergedArrow.js";
|
|
6
6
|
import tooltip_default from "../tooltip/index.js";
|
|
7
7
|
import style_default from "./style/index.js";
|
|
8
|
-
import { Overlay } from "./PurePanel.js";
|
|
8
|
+
import PurePanel_default, { Overlay } from "./PurePanel.js";
|
|
9
9
|
import { computed, createVNode, defineComponent, isVNode, mergeDefaults, mergeProps, shallowRef, watchEffect } from "vue";
|
|
10
10
|
import { clsx } from "@v-c/util";
|
|
11
11
|
import { filterEmpty, removeUndefined } from "@v-c/util/dist/props-util";
|
|
@@ -259,6 +259,7 @@ const Popover = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose,
|
|
|
259
259
|
Popover.install = (app) => {
|
|
260
260
|
app.component(Popover.name, Popover);
|
|
261
261
|
};
|
|
262
|
+
Popover._InternalPanelDoNotUseOrYouWillBeFired = PurePanel_default;
|
|
262
263
|
var popover_default = Popover;
|
|
263
264
|
|
|
264
265
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PresetColors } from "../../theme/interface/presetColors.js";
|
|
2
2
|
import { resetComponent } from "../../style/index.js";
|
|
3
|
-
import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
3
|
+
import { genCssVar, genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
4
4
|
import { mergeToken } from "../../theme/internal.js";
|
|
5
5
|
import { getArrowToken } from "../../style/roundedArrow.js";
|
|
6
6
|
import getArrowStyle, { getArrowOffsetToken } from "../../style/placementArrow.js";
|
|
@@ -8,8 +8,10 @@ import { initZoomMotion } from "../../style/motion/zoom.js";
|
|
|
8
8
|
import "../../style/motion/index.js";
|
|
9
9
|
|
|
10
10
|
//#region src/popover/style/index.ts
|
|
11
|
+
const FALL_BACK_ORIGIN = "50%";
|
|
11
12
|
const genBaseStyle = (token) => {
|
|
12
|
-
const { componentCls, popoverColor, titleMinWidth, fontWeightStrong, innerPadding, boxShadowSecondary, colorTextHeading, borderRadiusLG, zIndexPopup, titleMarginBottom, colorBgElevated, popoverBg, titleBorderBottom, innerContentPadding, titlePadding } = token;
|
|
13
|
+
const { componentCls, popoverColor, titleMinWidth, fontWeightStrong, innerPadding, boxShadowSecondary, colorTextHeading, borderRadiusLG, zIndexPopup, titleMarginBottom, colorBgElevated, popoverBg, titleBorderBottom, innerContentPadding, titlePadding, antCls } = token;
|
|
14
|
+
const [varName, varRef] = genCssVar(antCls, "tooltip");
|
|
13
15
|
return [
|
|
14
16
|
{ [componentCls]: {
|
|
15
17
|
...resetComponent(token),
|
|
@@ -25,9 +27,9 @@ const genBaseStyle = (token) => {
|
|
|
25
27
|
"textAlign": "start",
|
|
26
28
|
"cursor": "auto",
|
|
27
29
|
"userSelect": "text",
|
|
28
|
-
"
|
|
29
|
-
"transformOrigin": [
|
|
30
|
-
"
|
|
30
|
+
[varName("valid-offset-x")]: varRef("arrow-offset-horizontal", "var(--arrow-x)"),
|
|
31
|
+
"transformOrigin": [varRef("valid-offset-x", FALL_BACK_ORIGIN), `var(--arrow-y, ${FALL_BACK_ORIGIN})`].join(" "),
|
|
32
|
+
[varName("arrow-background-color")]: colorBgElevated,
|
|
31
33
|
"width": "max-content",
|
|
32
34
|
"maxWidth": "100vw",
|
|
33
35
|
"&-rtl": { direction: "rtl" },
|
|
@@ -53,7 +55,7 @@ const genBaseStyle = (token) => {
|
|
|
53
55
|
padding: innerContentPadding
|
|
54
56
|
}
|
|
55
57
|
} },
|
|
56
|
-
getArrowStyle(token, "
|
|
58
|
+
getArrowStyle(token, varRef("arrow-background-color")),
|
|
57
59
|
{ [`${componentCls}-pure`]: {
|
|
58
60
|
position: "relative",
|
|
59
61
|
maxWidth: "none",
|
|
@@ -63,11 +65,12 @@ const genBaseStyle = (token) => {
|
|
|
63
65
|
];
|
|
64
66
|
};
|
|
65
67
|
const genColorStyle = (token) => {
|
|
66
|
-
const { componentCls } = token;
|
|
68
|
+
const { componentCls, antCls } = token;
|
|
69
|
+
const [varName] = genCssVar(antCls, "tooltip");
|
|
67
70
|
return { [componentCls]: PresetColors.map((colorKey) => {
|
|
68
71
|
const lightColor = token[`${colorKey}6`];
|
|
69
72
|
return { [`&${componentCls}-${colorKey}`]: {
|
|
70
|
-
"
|
|
73
|
+
[varName("arrow-background-color")]: lightColor,
|
|
71
74
|
[`${componentCls}-inner`]: { backgroundColor: lightColor },
|
|
72
75
|
[`${componentCls}-arrow`]: { background: "transparent" }
|
|
73
76
|
} };
|
|
@@ -2,7 +2,7 @@ import { EmptyEmit } from "../_util/type.js";
|
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
4
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue134 from "vue";
|
|
6
6
|
import { AriaAttributes, SlotsType } from "vue";
|
|
7
7
|
|
|
8
8
|
//#region src/progress/progress.d.ts
|
|
@@ -67,8 +67,8 @@ interface ProgressProps extends ComponentBaseProps, ProgressAriaProps {
|
|
|
67
67
|
interface ProgressSlots {
|
|
68
68
|
default?: () => any;
|
|
69
69
|
}
|
|
70
|
-
declare const Progress:
|
|
70
|
+
declare const Progress: vue134.DefineSetupFnComponent<ProgressProps, EmptyEmit, SlotsType<ProgressSlots>, ProgressProps & {
|
|
71
71
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
72
|
-
},
|
|
72
|
+
}, vue134.PublicProps>;
|
|
73
73
|
//#endregion
|
|
74
74
|
export { Progress, ProgressAriaProps, ProgressProps };
|
package/dist/qrcode/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { QRCodeEmits, QRCodeProps, QRCodeSlots } from "./interface.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue136 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/qrcode/index.d.ts
|
|
6
|
-
declare const QRCode:
|
|
6
|
+
declare const QRCode: vue136.DefineSetupFnComponent<QRCodeProps, QRCodeEmits, SlotsType<QRCodeSlots>, QRCodeProps & {
|
|
7
7
|
[x: `on${Capitalize<string>}`]: (() => any) | undefined;
|
|
8
|
-
},
|
|
8
|
+
}, vue136.PublicProps>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { QRCode };
|
package/dist/radio/index.d.ts
CHANGED
|
@@ -4,15 +4,15 @@ import "../checkbox/index.js";
|
|
|
4
4
|
import { RadioChangeEvent, RadioEmits, RadioGroupEmits, RadioGroupOptionType, RadioGroupProps, RadioGroupSlots, RadioProps, RadioSlots } from "./interface.js";
|
|
5
5
|
import { InternalRadio } from "./radio.js";
|
|
6
6
|
import "../index.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as vue138 from "vue";
|
|
8
8
|
|
|
9
9
|
//#region src/radio/index.d.ts
|
|
10
10
|
type RadioOptionType = CheckboxOptionType;
|
|
11
|
-
declare const RadioGroup:
|
|
11
|
+
declare const RadioGroup: vue138.DefineSetupFnComponent<RadioGroupProps, RadioGroupEmits, vue138.SlotsType<RadioGroupSlots>, RadioGroupProps & {
|
|
12
12
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
13
|
-
},
|
|
14
|
-
declare const RadioButton:
|
|
13
|
+
}, vue138.PublicProps>;
|
|
14
|
+
declare const RadioButton: vue138.DefineSetupFnComponent<AbstractCheckboxProps, CheckboxEmits, vue138.SlotsType<CheckboxSlots>, AbstractCheckboxProps & {
|
|
15
15
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
16
|
-
},
|
|
16
|
+
}, vue138.PublicProps>;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { RadioButton, RadioGroup, RadioOptionType };
|
package/dist/radio/radio.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { RadioEmits, RadioProps, RadioSlots } from "./interface.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue412 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/radio/radio.d.ts
|
|
6
|
-
declare const InternalRadio:
|
|
6
|
+
declare const InternalRadio: vue412.DefineSetupFnComponent<RadioProps, RadioEmits, SlotsType<RadioSlots>, RadioProps & {
|
|
7
7
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
8
|
-
},
|
|
8
|
+
}, vue412.PublicProps>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { InternalRadio };
|
|
@@ -165,7 +165,7 @@ const getRadioButtonStyle = (token) => {
|
|
|
165
165
|
"cursor": "pointer",
|
|
166
166
|
"transition": [
|
|
167
167
|
`color ${motionDurationMid}`,
|
|
168
|
-
`background ${motionDurationMid}`,
|
|
168
|
+
`background-color ${motionDurationMid}`,
|
|
169
169
|
`box-shadow ${motionDurationMid}`
|
|
170
170
|
].join(","),
|
|
171
171
|
"a": { color: buttonColor },
|
package/dist/rate/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TooltipProps } from "../tooltip/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue144 from "vue";
|
|
3
3
|
import { RateProps } from "@v-c/rate";
|
|
4
4
|
|
|
5
5
|
//#region src/rate/index.d.ts
|
|
@@ -18,8 +18,8 @@ interface RateEmits {
|
|
|
18
18
|
'mouseleave': (e: FocusEvent) => void;
|
|
19
19
|
[key: string]: (...args: any[]) => void;
|
|
20
20
|
}
|
|
21
|
-
declare const Rate:
|
|
21
|
+
declare const Rate: vue144.DefineSetupFnComponent<RateProps$1, RateEmits, {}, RateProps$1 & {
|
|
22
22
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
23
|
-
},
|
|
23
|
+
}, vue144.PublicProps>;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { Rate, RateEmits, RateProps$1 as RateProps };
|
package/dist/result/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { NoFound } from "./noFound.js";
|
|
|
5
5
|
import { ServerError } from "./serverError.js";
|
|
6
6
|
import { Unauthorized } from "./unauthorized.js";
|
|
7
7
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
8
|
-
import * as
|
|
8
|
+
import * as vue128 from "vue";
|
|
9
9
|
import { SlotsType } from "vue";
|
|
10
10
|
|
|
11
11
|
//#region src/result/index.d.ts
|
|
@@ -36,9 +36,9 @@ interface ResultSlots {
|
|
|
36
36
|
extra?: () => any;
|
|
37
37
|
default?: () => any;
|
|
38
38
|
}
|
|
39
|
-
declare const Result:
|
|
39
|
+
declare const Result: vue128.DefineSetupFnComponent<ResultProps, EmptyEmit, SlotsType<ResultSlots>, ResultProps & {
|
|
40
40
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
41
|
-
},
|
|
41
|
+
}, vue128.PublicProps>;
|
|
42
42
|
declare const _default: typeof Result & {
|
|
43
43
|
PRESENTED_IMAGE_403: (typeof ExceptionMap)["403"];
|
|
44
44
|
PRESENTED_IMAGE_404: (typeof ExceptionMap)["404"];
|
package/dist/result/noFound.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue_jsx_runtime14 from "vue/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/result/noFound.d.ts
|
|
4
|
-
declare function NoFound():
|
|
4
|
+
declare function NoFound(): vue_jsx_runtime14.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { NoFound };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue_jsx_runtime13 from "vue/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/result/serverError.d.ts
|
|
4
|
-
declare function ServerError():
|
|
4
|
+
declare function ServerError(): vue_jsx_runtime13.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { ServerError };
|
|
@@ -4,7 +4,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
4
4
|
import { Orientation } from "../_util/hooks/useOrientation.js";
|
|
5
5
|
import "../_util/hooks/index.js";
|
|
6
6
|
import { TooltipProps } from "../tooltip/index.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as vue148 from "vue";
|
|
8
8
|
import { App, SlotsType } from "vue";
|
|
9
9
|
import { SegmentedLabeledOption, SegmentedProps, SegmentedRawOption, SegmentedValue } from "@v-c/segmented";
|
|
10
10
|
|
|
@@ -48,9 +48,9 @@ interface SegmentedSlots {
|
|
|
48
48
|
iconRender: (option: SegmentedLabeledOption$1) => any;
|
|
49
49
|
labelRender: (option: SegmentedLabeledOption$1) => any;
|
|
50
50
|
}
|
|
51
|
-
declare const InternalSegmented:
|
|
51
|
+
declare const InternalSegmented: vue148.DefineSetupFnComponent<SegmentedProps$1, SegmentedEmits, SlotsType<SegmentedSlots>, SegmentedProps$1 & {
|
|
52
52
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
53
|
-
},
|
|
53
|
+
}, vue148.PublicProps>;
|
|
54
54
|
declare const Segmented: typeof InternalSegmented & {
|
|
55
55
|
install: (app: App) => void;
|
|
56
56
|
};
|
package/dist/select/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import "../_util/hooks/index.js";
|
|
|
5
5
|
import { InputStatus } from "../_util/statusUtils.js";
|
|
6
6
|
import { SelectCommonPlacement } from "../_util/motion.js";
|
|
7
7
|
import { ComponentBaseProps, Variant } from "../config-provider/context.js";
|
|
8
|
-
import * as
|
|
8
|
+
import * as vue150 from "vue";
|
|
9
9
|
import { CSSProperties, SlotsType } from "vue";
|
|
10
10
|
import { SelectProps } from "@v-c/select";
|
|
11
11
|
import * as _v_c_select_dist_Option_js0 from "@v-c/select/dist/Option.js";
|
|
@@ -110,10 +110,10 @@ interface SelectSlots {
|
|
|
110
110
|
maxTagPlaceholder?: (data: any[]) => any;
|
|
111
111
|
notFoundContent?: () => any;
|
|
112
112
|
}
|
|
113
|
-
declare const Select:
|
|
113
|
+
declare const Select: vue150.DefineSetupFnComponent<SelectProps$1, SelectEmits, SlotsType<SelectSlots>, SelectProps$1 & {
|
|
114
114
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
115
|
-
},
|
|
116
|
-
declare const SelectOption:
|
|
117
|
-
declare const SelectOptGroup:
|
|
115
|
+
}, vue150.PublicProps>;
|
|
116
|
+
declare const SelectOption: vue150.FunctionalComponent<_v_c_select_dist_Option_js0.OptionProps, {}, any, {}>;
|
|
117
|
+
declare const SelectOptGroup: vue150.FunctionalComponent<_v_c_select_dist_OptGroup_js0.OptGroupProps, {}, any, {}>;
|
|
118
118
|
//#endregion
|
|
119
|
-
export { Select, SelectEmits, SelectOptGroup, SelectOption, SelectProps$1 as SelectProps, SelectSlots, SelectValue };
|
|
119
|
+
export { InternalSelectProps, Select, SelectEmits, SelectOptGroup, SelectOption, SelectProps$1 as SelectProps, SelectSlots, SelectValue };
|
package/dist/select/index.js
CHANGED
|
@@ -10,9 +10,10 @@ import useCSSVarCls_default from "../config-provider/hooks/useCSSVarCls.js";
|
|
|
10
10
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
11
11
|
import { useCompactItemContext } from "../space/Compact.js";
|
|
12
12
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
13
|
-
import
|
|
13
|
+
import PurePanel_default from "../_util/PurePanel.js";
|
|
14
14
|
import { getMergedStatus, getStatusClassNames } from "../_util/statusUtils.js";
|
|
15
15
|
import { DefaultRenderEmpty } from "../config-provider/defaultRenderEmpty.js";
|
|
16
|
+
import { useFormItemInputContext } from "../form/context.js";
|
|
16
17
|
import { useVariants } from "../form/hooks/useVariant.js";
|
|
17
18
|
import mergedBuiltinPlacements_default from "./mergedBuiltinPlacements.js";
|
|
18
19
|
import style_default from "./style/index.js";
|
|
@@ -136,7 +137,7 @@ const Select = /* @__PURE__ */ defineComponent((props, { slots, emit, expose, at
|
|
|
136
137
|
let mergedNotFound;
|
|
137
138
|
if (notFoundContent !== void 0) mergedNotFound = notFoundContent;
|
|
138
139
|
else if (mode.value === "combobox") mergedNotFound = null;
|
|
139
|
-
else mergedNotFound = renderEmpty?.("Select") || createVNode(DefaultRenderEmpty, { "componentName": "Select" }, null);
|
|
140
|
+
else mergedNotFound = renderEmpty?.value?.("Select") || createVNode(DefaultRenderEmpty, { "componentName": "Select" }, null);
|
|
140
141
|
const { suffixIcon, itemIcon, removeIcon, clearIcon } = useIcons({
|
|
141
142
|
...rest,
|
|
142
143
|
multiple: isMultiple.value,
|
|
@@ -219,7 +220,7 @@ const Select = /* @__PURE__ */ defineComponent((props, { slots, emit, expose, at
|
|
|
219
220
|
info
|
|
220
221
|
});
|
|
221
222
|
};
|
|
222
|
-
if (
|
|
223
|
+
if (mergedNotFound !== void 0) selectProps.notFoundContent = mergedNotFound;
|
|
223
224
|
return createVNode(VcSelect, mergeProps(restAttrs, onAttrs, {
|
|
224
225
|
"virtual": virtual.value,
|
|
225
226
|
"classNames": mergedClassNames.value,
|
|
@@ -727,6 +728,7 @@ Select.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE;
|
|
|
727
728
|
Select.Option = Option;
|
|
728
729
|
Select.OptGroup = OptGroup;
|
|
729
730
|
var select_default = Select;
|
|
731
|
+
Select._InternalPanelDoNotUseOrYouWillBeFired = PurePanel_default(Select, "popupAlign");
|
|
730
732
|
const SelectOption = Option;
|
|
731
733
|
const SelectOptGroup = OptGroup;
|
|
732
734
|
|
|
@@ -60,7 +60,7 @@ const genSingleStyle = (token) => {
|
|
|
60
60
|
[selectItemCls]: {
|
|
61
61
|
...genItemStyle(token),
|
|
62
62
|
"cursor": "pointer",
|
|
63
|
-
"transition": `background ${token.motionDurationSlow} ease`,
|
|
63
|
+
"transition": `background-color ${token.motionDurationSlow} ease`,
|
|
64
64
|
"borderRadius": token.borderRadiusSM,
|
|
65
65
|
"&-group": {
|
|
66
66
|
color: token.colorTextDescription,
|
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
import { resetIcon, textEllipsis } from "../../style/index.js";
|
|
2
|
+
import { genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
2
3
|
|
|
3
4
|
//#region src/select/style/select-input-multiple.ts
|
|
4
5
|
const FIXED_INPUT_MIN_WIDTH = 4;
|
|
5
6
|
const genSelectInputMultipleStyle = (token) => {
|
|
6
|
-
const { componentCls, calc, iconCls, paddingXS, paddingXXS, INTERNAL_FIXED_ITEM_MARGIN, lineWidth, colorIcon, colorIconHover, inputPaddingHorizontalBase } = token;
|
|
7
|
+
const { componentCls, calc, iconCls, paddingXS, paddingXXS, INTERNAL_FIXED_ITEM_MARGIN, lineWidth, colorIcon, colorIconHover, inputPaddingHorizontalBase, antCls } = token;
|
|
8
|
+
const [varName, varRef] = genCssVar(antCls, "select");
|
|
7
9
|
return { "&-multiple": {
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
[`${componentCls}-prefix`]: { marginInlineStart: "
|
|
10
|
+
[varName("multi-item-background")]: token.multipleItemBg,
|
|
11
|
+
[varName("multi-item-border-color")]: "transparent",
|
|
12
|
+
[varName("multi-item-border-radius")]: token.borderRadiusSM,
|
|
13
|
+
[varName("multi-item-height")]: token.multipleItemHeight,
|
|
14
|
+
[varName("multi-padding-base")]: `calc((${varRef("height")} - ${varRef("multi-item-height")}) / 2)`,
|
|
15
|
+
[varName("multi-padding-vertical")]: `calc(${varRef("multi-padding-base")} - ${INTERNAL_FIXED_ITEM_MARGIN} - ${lineWidth})`,
|
|
16
|
+
[varName("multi-item-padding-horizontal")]: `calc(${inputPaddingHorizontalBase} - ${varRef("multi-padding-vertical")} - ${lineWidth} * 2)`,
|
|
17
|
+
paddingBlock: varRef("multi-padding-vertical"),
|
|
18
|
+
paddingInlineStart: `calc(${varRef("multi-padding-base")} - ${lineWidth})`,
|
|
19
|
+
[`${componentCls}-prefix`]: { marginInlineStart: varRef("multi-item-padding-horizontal") },
|
|
18
20
|
[`${componentCls}-prefix + ${componentCls}-content`]: {
|
|
19
21
|
[`${componentCls}-placeholder`]: { insetInlineStart: 0 },
|
|
20
22
|
[`${componentCls}-content-item${componentCls}-content-item-suffix`]: { marginInlineStart: 0 }
|
|
21
23
|
},
|
|
22
24
|
[`${componentCls}-placeholder`]: {
|
|
23
25
|
position: "absolute",
|
|
24
|
-
lineHeight: "
|
|
25
|
-
insetInlineStart: "
|
|
26
|
-
width:
|
|
26
|
+
lineHeight: varRef("line-height"),
|
|
27
|
+
insetInlineStart: varRef("multi-item-padding-horizontal"),
|
|
28
|
+
width: `calc(100% - ${varRef("multi-item-padding-horizontal")})`,
|
|
27
29
|
top: "50%",
|
|
28
30
|
transform: "translateY(-50%)"
|
|
29
31
|
},
|
|
@@ -31,21 +33,21 @@ const genSelectInputMultipleStyle = (token) => {
|
|
|
31
33
|
"flexWrap": "wrap",
|
|
32
34
|
"alignItems": "center",
|
|
33
35
|
"lineHeight": 1,
|
|
34
|
-
"&-item-prefix": { height: "
|
|
36
|
+
"&-item-prefix": { height: varRef("font-size") },
|
|
35
37
|
"&-item": {
|
|
36
38
|
lineHeight: 1,
|
|
37
39
|
maxWidth: `calc(100% - ${FIXED_INPUT_MIN_WIDTH}px)`
|
|
38
40
|
},
|
|
39
41
|
[`${componentCls}-content-item-prefix + ${componentCls}-content-item-suffix,
|
|
40
|
-
${componentCls}-content-item-suffix:first-child`]: { marginInlineStart: "
|
|
42
|
+
${componentCls}-content-item-suffix:first-child`]: { marginInlineStart: varRef("multi-item-padding-horizontal") },
|
|
41
43
|
[`${componentCls}-selection-item`]: {
|
|
42
|
-
"lineHeight": `calc(
|
|
43
|
-
"border": `${lineWidth} solid
|
|
44
|
+
"lineHeight": `calc(${varRef("multi-item-height")} - ${lineWidth} * 2)`,
|
|
45
|
+
"border": `${lineWidth} solid ${varRef("multi-item-border-color")}`,
|
|
44
46
|
"display": "flex",
|
|
45
47
|
"marginBlock": INTERNAL_FIXED_ITEM_MARGIN,
|
|
46
48
|
"marginInlineEnd": calc(INTERNAL_FIXED_ITEM_MARGIN).mul(2).equal(),
|
|
47
|
-
"background":
|
|
48
|
-
"borderRadius":
|
|
49
|
+
"background": varRef("multi-item-background"),
|
|
50
|
+
"borderRadius": varRef("multi-item-border-radius"),
|
|
49
51
|
"paddingInlineStart": paddingXS,
|
|
50
52
|
"paddingInlineEnd": paddingXXS,
|
|
51
53
|
"transition": [
|
|
@@ -71,25 +73,25 @@ const genSelectInputMultipleStyle = (token) => {
|
|
|
71
73
|
}
|
|
72
74
|
},
|
|
73
75
|
[`${componentCls}-input`]: {
|
|
74
|
-
lineHeight: calc(INTERNAL_FIXED_ITEM_MARGIN).mul(2).add("
|
|
75
|
-
width:
|
|
76
|
+
lineHeight: calc(INTERNAL_FIXED_ITEM_MARGIN).mul(2).add(varRef("multi-item-height")).equal(),
|
|
77
|
+
width: `calc(var(--select-input-width, 0) * 1px)`,
|
|
76
78
|
minWidth: FIXED_INPUT_MIN_WIDTH,
|
|
77
79
|
maxWidth: "100%",
|
|
78
80
|
transition: `line-height ${token.motionDurationSlow}`
|
|
79
81
|
}
|
|
80
82
|
},
|
|
81
83
|
[`&${componentCls}-sm`]: {
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
+
[varName("multi-item-height")]: token.multipleItemHeightSM,
|
|
85
|
+
[varName("multi-item-border-radius")]: token.borderRadiusXS
|
|
84
86
|
},
|
|
85
87
|
[`&${componentCls}-lg`]: {
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
+
[varName("multi-item-height")]: token.multipleItemHeightLG,
|
|
89
|
+
[varName("multi-item-border-radius")]: token.borderRadius
|
|
88
90
|
},
|
|
89
91
|
[`&${componentCls}-filled`]: {
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
[`&${componentCls}-disabled`]: { "
|
|
92
|
+
[varName("multi-item-border-color")]: token.colorSplit,
|
|
93
|
+
[varName("multi-item-background")]: token.colorBgContainer,
|
|
94
|
+
[`&${componentCls}-disabled`]: { [varName("multi-item-border-color")]: "transparent" }
|
|
93
95
|
}
|
|
94
96
|
} };
|
|
95
97
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { resetComponent, textEllipsis } from "../../style/index.js";
|
|
2
|
+
import { genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
2
3
|
import select_input_customize_default from "./select-input-customize.js";
|
|
3
4
|
import select_input_multiple_default from "./select-input-multiple.js";
|
|
4
5
|
import { unit } from "@antdv-next/cssinjs";
|
|
@@ -6,27 +7,28 @@ import { unit } from "@antdv-next/cssinjs";
|
|
|
6
7
|
//#region src/select/style/select-input.ts
|
|
7
8
|
/** Set CSS variables and hover/focus styles for a Select input based on provided colors. */
|
|
8
9
|
function genSelectInputVariableStyle(token, colors) {
|
|
9
|
-
const { componentCls } = token;
|
|
10
|
+
const { componentCls, antCls } = token;
|
|
11
|
+
const [varName] = genCssVar(antCls, "select");
|
|
10
12
|
const { border, borderHover, borderActive, borderOutline } = colors;
|
|
11
|
-
const baseBG = colors.background || token.colorBgContainer;
|
|
13
|
+
const baseBG = colors.background || token.selectorBg || token.colorBgContainer;
|
|
12
14
|
return {
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
15
|
+
[varName("border-color")]: border,
|
|
16
|
+
[varName("background-color")]: baseBG,
|
|
17
|
+
[varName("color")]: colors.color || token.colorText,
|
|
16
18
|
[`&:not(${componentCls}-disabled)`]: {
|
|
17
19
|
"&:hover": {
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
+
[varName("border-color")]: borderHover,
|
|
21
|
+
[varName("background-color")]: colors.backgroundHover || baseBG
|
|
20
22
|
},
|
|
21
23
|
[`&${componentCls}-focused`]: {
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
24
|
+
[varName("border-color")]: borderActive,
|
|
25
|
+
[varName("background-color")]: colors.backgroundActive || baseBG,
|
|
26
|
+
boxShadow: `0 0 0 ${unit(token.controlOutlineWidth)} ${borderOutline}`
|
|
25
27
|
}
|
|
26
28
|
},
|
|
27
29
|
[`&${componentCls}-disabled`]: {
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
+
[varName("border-color")]: colors.borderDisabled || colors.border,
|
|
31
|
+
[varName("background-color")]: colors.backgroundDisabled || colors.background
|
|
30
32
|
}
|
|
31
33
|
};
|
|
32
34
|
}
|
|
@@ -51,20 +53,21 @@ function genSelectInputVariantStyle(token, variant, colors, errorColors = {}, wa
|
|
|
51
53
|
] };
|
|
52
54
|
}
|
|
53
55
|
const genSelectInputStyle = (token) => {
|
|
54
|
-
const { componentCls,
|
|
56
|
+
const { componentCls, fontHeight, controlHeight, iconCls, antCls, calc } = token;
|
|
57
|
+
const [varName, varRef] = genCssVar(antCls, "select");
|
|
55
58
|
return { [componentCls]: [
|
|
56
59
|
{
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
60
|
+
[varName("border-radius")]: token.borderRadius,
|
|
61
|
+
[varName("border-color")]: "#000",
|
|
62
|
+
[varName("border-size")]: token.lineWidth,
|
|
63
|
+
[varName("background-color")]: token.colorBgContainer,
|
|
64
|
+
[varName("font-size")]: token.fontSize,
|
|
65
|
+
[varName("line-height")]: token.lineHeight,
|
|
66
|
+
[varName("font-height")]: fontHeight,
|
|
67
|
+
[varName("color")]: token.colorText,
|
|
68
|
+
[varName("height")]: controlHeight,
|
|
69
|
+
[varName("padding-horizontal")]: calc(token.paddingSM).sub(token.lineWidth).equal(),
|
|
70
|
+
[varName("padding-vertical")]: `calc((${varRef("height")} - ${varRef("font-height")}) / 2 - ${varRef("border-size")})`,
|
|
68
71
|
...resetComponent(token, true),
|
|
69
72
|
"display": "inline-flex",
|
|
70
73
|
"flexWrap": "nowrap",
|
|
@@ -73,16 +76,16 @@ const genSelectInputStyle = (token) => {
|
|
|
73
76
|
"alignItems": "flex-start",
|
|
74
77
|
"outline": 0,
|
|
75
78
|
"cursor": "pointer",
|
|
76
|
-
"borderRadius": "
|
|
77
|
-
"borderWidth": "
|
|
79
|
+
"borderRadius": varRef("border-radius"),
|
|
80
|
+
"borderWidth": varRef("border-size"),
|
|
78
81
|
"borderStyle": token.lineType,
|
|
79
|
-
"borderColor": "
|
|
80
|
-
"background": "
|
|
81
|
-
"fontSize": "
|
|
82
|
-
"lineHeight": "
|
|
83
|
-
"color": "
|
|
84
|
-
"paddingInline": "
|
|
85
|
-
"paddingBlock": "
|
|
82
|
+
"borderColor": varRef("border-color"),
|
|
83
|
+
"background": varRef("background-color"),
|
|
84
|
+
"fontSize": varRef("font-size"),
|
|
85
|
+
"lineHeight": varRef("line-height"),
|
|
86
|
+
"color": varRef("color"),
|
|
87
|
+
"paddingInline": varRef("padding-horizontal"),
|
|
88
|
+
"paddingBlock": varRef("padding-vertical"),
|
|
86
89
|
[`${componentCls}-prefix`]: {
|
|
87
90
|
flex: "none",
|
|
88
91
|
lineHeight: 1
|
|
@@ -129,19 +132,21 @@ const genSelectInputStyle = (token) => {
|
|
|
129
132
|
"&-disabled": {
|
|
130
133
|
background: token.colorBgContainerDisabled,
|
|
131
134
|
color: token.colorTextDisabled,
|
|
132
|
-
cursor: "not-allowed"
|
|
135
|
+
cursor: "not-allowed",
|
|
136
|
+
input: { cursor: "not-allowed" }
|
|
133
137
|
},
|
|
134
138
|
"&-sm": {
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
139
|
+
[varName("height")]: token.controlHeightSM,
|
|
140
|
+
[varName("padding-horizontal")]: calc(token.paddingXS).sub(token.lineWidth).equal(),
|
|
141
|
+
[varName("border-radius")]: token.borderRadiusSM,
|
|
142
|
+
[`${componentCls}-clear`]: { insetInlineEnd: varRef("padding-horizontal") }
|
|
138
143
|
},
|
|
139
144
|
"&-lg": {
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
+
[varName("height")]: token.controlHeightLG,
|
|
146
|
+
[varName("font-size")]: token.fontSizeLG,
|
|
147
|
+
[varName("line-height")]: token.lineHeightLG,
|
|
148
|
+
[varName("font-height")]: token.fontHeightLG,
|
|
149
|
+
[varName("border-radius")]: token.borderRadiusLG
|
|
145
150
|
}
|
|
146
151
|
},
|
|
147
152
|
{ [`&:not(${componentCls}-customize)`]: { [`${componentCls}-input`]: {
|
|
@@ -161,11 +166,12 @@ const genSelectInputStyle = (token) => {
|
|
|
161
166
|
[`${componentCls}-input`]: {
|
|
162
167
|
position: "absolute",
|
|
163
168
|
insetInline: 0,
|
|
164
|
-
insetBlock:
|
|
165
|
-
lineHeight:
|
|
169
|
+
insetBlock: `calc(${varRef("padding-vertical")} * -1)`,
|
|
170
|
+
lineHeight: `calc(${varRef("font-height")} + ${varRef("padding-vertical")} * 2)`
|
|
166
171
|
},
|
|
167
172
|
[`${componentCls}-content`]: { alignSelf: "center" }
|
|
168
173
|
} },
|
|
174
|
+
{ [`&-show-search:not(${componentCls}-customize-input):not(${componentCls}-disabled)`]: { cursor: "text" } },
|
|
169
175
|
select_input_multiple_default(token),
|
|
170
176
|
genSelectInputVariantStyle(token, "outlined", {
|
|
171
177
|
border: token.colorBorder,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SkeletonElementProps } from "./Element.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue434 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/skeleton/Avatar.d.ts
|
|
5
5
|
interface SkeletonAvatarProps extends Omit<SkeletonElementProps, 'shape'> {
|
|
6
6
|
shape?: 'circle' | 'square';
|
|
7
7
|
}
|
|
8
|
-
declare const SkeletonAvatar:
|
|
8
|
+
declare const SkeletonAvatar: vue434.DefineSetupFnComponent<SkeletonAvatarProps, {}, {}, SkeletonAvatarProps & {}, vue434.PublicProps>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { SkeletonAvatar, SkeletonAvatarProps };
|