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.
Files changed (266) hide show
  1. package/dist/_util/PurePanel.js +106 -0
  2. package/dist/_util/hooks/useMergeSemantic.js +3 -3
  3. package/dist/_util/styleUtils.js +10 -0
  4. package/dist/_util/tools.js +2 -1
  5. package/dist/_util/wave/WaveEffect.js +6 -1
  6. package/dist/_util/wave/style.js +4 -3
  7. package/dist/affix/index.d.ts +3 -3
  8. package/dist/alert/Alert.d.ts +4 -3
  9. package/dist/alert/Alert.js +1 -1
  10. package/dist/anchor/Anchor.d.ts +5 -5
  11. package/dist/anchor/AnchorLink.js +2 -2
  12. package/dist/anchor/index.d.ts +1 -1
  13. package/dist/antd.js +123 -115
  14. package/dist/app/App.d.ts +2 -2
  15. package/dist/auto-complete/index.d.ts +78 -0
  16. package/dist/auto-complete/index.js +634 -0
  17. package/dist/avatar/Avatar.d.ts +3 -3
  18. package/dist/avatar/AvatarGroup.d.ts +2 -2
  19. package/dist/badge/Ribbon.d.ts +3 -3
  20. package/dist/badge/ScrollNumber.js +1 -1
  21. package/dist/badge/SingleNumber.js +1 -1
  22. package/dist/badge/index.d.ts +3 -3
  23. package/dist/badge/index.js +5 -3
  24. package/dist/badge/style/index.js +1 -1
  25. package/dist/breadcrumb/Breadcrumb.d.ts +5 -5
  26. package/dist/breadcrumb/Breadcrumb.js +0 -8
  27. package/dist/breadcrumb/BreadcrumbItem.d.ts +1 -1
  28. package/dist/breadcrumb/BreadcrumbItem.js +1 -17
  29. package/dist/breadcrumb/index.d.ts +1 -1
  30. package/dist/button/Button.d.ts +3 -3
  31. package/dist/button/style/variant.js +116 -104
  32. package/dist/calendar/Header.js +1 -1
  33. package/dist/calendar/generateCalendar.d.ts +3 -3
  34. package/dist/calendar/index.d.ts +3 -3
  35. package/dist/calendar/style/index.d.ts +1 -1
  36. package/dist/calendar/style/index.js +1 -1
  37. package/dist/card/Card.d.ts +3 -3
  38. package/dist/card/CardGrid.d.ts +2 -2
  39. package/dist/card/CardMeta.d.ts +3 -3
  40. package/dist/card/style/index.js +11 -2
  41. package/dist/carousel/index.d.ts +3 -3
  42. package/dist/cascader/Panel.d.ts +3 -3
  43. package/dist/cascader/index.d.ts +4 -3
  44. package/dist/cascader/index.js +3 -1
  45. package/dist/checkbox/Checkbox.d.ts +3 -3
  46. package/dist/checkbox/Group.d.ts +3 -3
  47. package/dist/checkbox/style/index.d.ts +1 -1
  48. package/dist/collapse/Collapse.d.ts +3 -3
  49. package/dist/color-picker/ColorPicker.d.ts +3 -3
  50. package/dist/color-picker/ColorPicker.js +13 -2
  51. package/dist/components.d.ts +11 -8
  52. package/dist/components.js +7 -4
  53. package/dist/config-provider/context.d.ts +2 -1
  54. package/dist/config-provider/context.js +3 -3
  55. package/dist/config-provider/define.d.ts +14 -0
  56. package/dist/config-provider/index.d.ts +3 -3
  57. package/dist/config-provider/index.js +21 -2
  58. package/dist/date-picker/generatePicker/generateRangePicker.js +2 -2
  59. package/dist/date-picker/generatePicker/generateSinglePicker.js +3 -2
  60. package/dist/date-picker/generatePicker/index.d.ts +17 -17
  61. package/dist/date-picker/index.d.ts +29 -27
  62. package/dist/date-picker/index.js +3 -0
  63. package/dist/date-picker/style/panel.js +4 -4
  64. package/dist/descriptions/index.d.ts +3 -3
  65. package/dist/divider/index.d.ts +2 -2
  66. package/dist/drawer/index.d.ts +6 -4
  67. package/dist/drawer/index.js +17 -5
  68. package/dist/drawer/useFocusable.d.ts +10 -0
  69. package/dist/drawer/useFocusable.js +18 -0
  70. package/dist/dropdown/dropdown.d.ts +4 -4
  71. package/dist/dropdown/dropdown.js +12 -3
  72. package/dist/empty/index.d.ts +3 -3
  73. package/dist/flex/index.d.ts +3 -3
  74. package/dist/flex/index.js +1 -1
  75. package/dist/float-button/BackTop.d.ts +3 -3
  76. package/dist/float-button/BackTop.js +4 -1
  77. package/dist/float-button/FloatButton.d.ts +3 -3
  78. package/dist/float-button/FloatButtonGroup.d.ts +3 -3
  79. package/dist/float-button/PurePanel.js +5 -5
  80. package/dist/float-button/style/button.js +4 -4
  81. package/dist/float-button/style/group.js +12 -12
  82. package/dist/form/ErrorList.js +4 -7
  83. package/dist/form/Form.d.ts +7 -3
  84. package/dist/form/Form.js +39 -22
  85. package/dist/form/FormItem/ItemHolder.js +0 -1
  86. package/dist/form/FormItem/index.d.ts +5 -5
  87. package/dist/form/FormItem/index.js +48 -29
  88. package/dist/form/FormItemInput.js +17 -19
  89. package/dist/form/style/index.js +3 -2
  90. package/dist/form/utils/valueUtil.js +4 -1
  91. package/dist/grid/col.js +7 -2
  92. package/dist/grid/index.d.ts +2 -2
  93. package/dist/grid/row.d.ts +2 -2
  94. package/dist/grid/style/index.js +7 -5
  95. package/dist/image/PreviewGroup.d.ts +2 -2
  96. package/dist/image/index.d.ts +7 -4
  97. package/dist/image/index.js +2 -0
  98. package/dist/image/style/index.d.ts +1 -1
  99. package/dist/index.d.ts +16 -12
  100. package/dist/index.js +7 -4
  101. package/dist/input/Input.js +1 -1
  102. package/dist/input/OTP/index.js +1 -1
  103. package/dist/input/TextArea.d.ts +3 -3
  104. package/dist/input/TextArea.js +1 -1
  105. package/dist/input/index.d.ts +11 -11
  106. package/dist/input/style/index.d.ts +2 -2
  107. package/dist/input-number/index.d.ts +4 -4
  108. package/dist/input-number/index.js +2 -6
  109. package/dist/input-number/style/index.js +18 -17
  110. package/dist/layout/index.d.ts +6 -6
  111. package/dist/layout/layout.d.ts +2 -2
  112. package/dist/layout/style/sider.js +1 -1
  113. package/dist/masonry/Masonry.d.ts +3 -3
  114. package/dist/masonry/Masonry.js +8 -6
  115. package/dist/mentions/index.d.ts +4 -3
  116. package/dist/mentions/index.js +4 -2
  117. package/dist/mentions/style/index.js +18 -17
  118. package/dist/menu/MenuDivider.d.ts +2 -2
  119. package/dist/menu/MenuItem.d.ts +3 -3
  120. package/dist/menu/index.d.ts +5 -5
  121. package/dist/menu/style/horizontal.js +1 -1
  122. package/dist/menu/style/index.js +5 -5
  123. package/dist/message/PurePanel.d.ts +2 -2
  124. package/dist/message/useMessage.d.ts +1 -0
  125. package/dist/modal/ConfirmDialog.js +1 -1
  126. package/dist/modal/Modal.d.ts +3 -3
  127. package/dist/modal/Modal.js +17 -6
  128. package/dist/modal/PurePanel.js +305 -0
  129. package/dist/modal/index.js +2 -0
  130. package/dist/modal/interface.d.ts +3 -1
  131. package/dist/notification/PurePanel.d.ts +2 -2
  132. package/dist/notification/PurePanel.js +4 -3
  133. package/dist/notification/style/index.d.ts +1 -1
  134. package/dist/notification/useNotification.d.ts +2 -1
  135. package/dist/notification/useNotification.js +7 -7
  136. package/dist/package.d.ts +143 -3
  137. package/dist/package.js +1 -1
  138. package/dist/pagination/Pagination.d.ts +3 -3
  139. package/dist/pagination/Pagination.js +1 -1
  140. package/dist/pagination/style/index.js +61 -50
  141. package/dist/popconfirm/PurePanel.d.ts +2 -2
  142. package/dist/popconfirm/PurePanel.js +2 -1
  143. package/dist/popconfirm/index.d.ts +3 -3
  144. package/dist/popover/PurePanel.js +4 -2
  145. package/dist/popover/index.d.ts +9 -6
  146. package/dist/popover/index.js +2 -1
  147. package/dist/popover/style/index.js +11 -8
  148. package/dist/progress/progress.d.ts +3 -3
  149. package/dist/qrcode/index.d.ts +3 -3
  150. package/dist/radio/index.d.ts +5 -5
  151. package/dist/radio/radio.d.ts +3 -3
  152. package/dist/radio/style/index.js +1 -1
  153. package/dist/rate/index.d.ts +3 -3
  154. package/dist/rate/style/index.d.ts +1 -1
  155. package/dist/result/index.d.ts +3 -3
  156. package/dist/result/noFound.d.ts +2 -2
  157. package/dist/result/serverError.d.ts +2 -2
  158. package/dist/segmented/index.d.ts +3 -3
  159. package/dist/select/index.d.ts +6 -6
  160. package/dist/select/index.js +5 -3
  161. package/dist/select/style/dropdown.js +1 -1
  162. package/dist/select/style/select-input-multiple.js +31 -29
  163. package/dist/select/style/select-input.js +50 -44
  164. package/dist/skeleton/Avatar.d.ts +2 -2
  165. package/dist/skeleton/Button.d.ts +2 -2
  166. package/dist/skeleton/Image.d.ts +2 -2
  167. package/dist/skeleton/Input.d.ts +2 -2
  168. package/dist/skeleton/Node.d.ts +3 -3
  169. package/dist/skeleton/Skeleton.d.ts +3 -3
  170. package/dist/skeleton/Skeleton.js +1 -1
  171. package/dist/skeleton/Title.d.ts +1 -2
  172. package/dist/skeleton/Title.js +0 -5
  173. package/dist/slider/index.d.ts +3 -3
  174. package/dist/space/Compact.d.ts +2 -0
  175. package/dist/space/Compact.js +17 -4
  176. package/dist/space/index.d.ts +5 -5
  177. package/dist/space/style/addon.js +20 -19
  178. package/dist/spin/index.d.ts +3 -3
  179. package/dist/spin/index.js +7 -6
  180. package/dist/splitter/SplitBar.js +9 -2
  181. package/dist/splitter/Splitter.d.ts +3 -3
  182. package/dist/splitter/Splitter.js +2 -1
  183. package/dist/splitter/index.d.ts +2 -2
  184. package/dist/splitter/style/index.js +6 -6
  185. package/dist/statistic/Statistic.d.ts +3 -3
  186. package/dist/statistic/Timer.d.ts +5 -5
  187. package/dist/statistic/index.d.ts +5 -5
  188. package/dist/steps/ProgressIcon.js +9 -2
  189. package/dist/steps/index.d.ts +3 -3
  190. package/dist/steps/index.js +7 -4
  191. package/dist/steps/style/horizontal.js +13 -10
  192. package/dist/steps/style/icon.js +12 -9
  193. package/dist/steps/style/index.js +19 -18
  194. package/dist/steps/style/inline.js +20 -17
  195. package/dist/steps/style/label-placement.js +22 -20
  196. package/dist/steps/style/nav.js +7 -5
  197. package/dist/steps/style/panel.js +34 -32
  198. package/dist/steps/style/progress-dot.js +10 -8
  199. package/dist/steps/style/progress.js +29 -58
  200. package/dist/steps/style/rtl.js +6 -4
  201. package/dist/steps/style/small.js +10 -8
  202. package/dist/steps/style/status.js +124 -121
  203. package/dist/steps/style/util.js +7 -4
  204. package/dist/steps/style/vertical.js +17 -14
  205. package/dist/style/placementArrow.js +7 -5
  206. package/dist/switch/index.d.ts +3 -3
  207. package/dist/table/Column.d.ts +3 -3
  208. package/dist/table/ColumnGroup.d.ts +3 -3
  209. package/dist/table/InternalTable.js +20 -6
  210. package/dist/table/Table.d.ts +3 -3
  211. package/dist/table/hooks/useFilter/FilterDropdown.js +1 -1
  212. package/dist/table/style/index.js +3 -3
  213. package/dist/table/style/radius.js +6 -0
  214. package/dist/table/style/virtual.js +1 -1
  215. package/dist/tabs/TabPane.d.ts +3 -3
  216. package/dist/tabs/index.d.ts +3 -3
  217. package/dist/tag/CheckableTag.d.ts +3 -3
  218. package/dist/tag/CheckableTagGroup.d.ts +3 -3
  219. package/dist/tag/CheckableTagGroup.js +3 -3
  220. package/dist/tag/index.d.ts +3 -3
  221. package/dist/theme/context.d.ts +2 -2
  222. package/dist/theme/index.d.ts +1 -1
  223. package/dist/theme/useToken.d.ts +2 -2
  224. package/dist/theme/useToken.js +1 -1
  225. package/dist/theme/util/genStyleUtils.d.ts +2 -2
  226. package/dist/theme/util/genStyleUtils.js +8 -5
  227. package/dist/theme/util/useResetIconStyle.js +1 -1
  228. package/dist/time-picker/index.d.ts +8 -7
  229. package/dist/time-picker/index.js +17 -13
  230. package/dist/timeline/Timeline.d.ts +3 -3
  231. package/dist/tooltip/PurePanel.d.ts +2 -2
  232. package/dist/tooltip/PurePanel.js +12 -8
  233. package/dist/tooltip/UniqueProvider/index.d.ts +2 -2
  234. package/dist/tooltip/index.d.ts +3 -3
  235. package/dist/tooltip/index.js +2 -3
  236. package/dist/tooltip/style/index.js +10 -8
  237. package/dist/tooltip/util.js +5 -3
  238. package/dist/tour/PurePanel.js +243 -0
  239. package/dist/tour/index.d.ts +3 -3
  240. package/dist/tour/index.js +2 -0
  241. package/dist/tour/style/index.js +5 -4
  242. package/dist/transfer/Actions.d.ts +2 -2
  243. package/dist/transfer/Section.d.ts +2 -2
  244. package/dist/transfer/Transfer.d.ts +3 -3
  245. package/dist/transfer/Transfer.js +2 -2
  246. package/dist/transfer/search.d.ts +3 -3
  247. package/dist/tree/DirectoryTree.d.ts +3 -3
  248. package/dist/tree/Tree.d.ts +3 -3
  249. package/dist/tree/style/index.d.ts +1 -1
  250. package/dist/tree-select/index.d.ts +5 -4
  251. package/dist/tree-select/index.js +3 -1
  252. package/dist/typography/Link.d.ts +3 -3
  253. package/dist/typography/Paragraph.d.ts +3 -3
  254. package/dist/typography/Text.d.ts +3 -3
  255. package/dist/typography/Title.d.ts +3 -3
  256. package/dist/typography/Typography.d.ts +3 -3
  257. package/dist/typography/index.d.ts +9 -9
  258. package/dist/upload/Dragger.d.ts +6 -3
  259. package/dist/upload/Upload.d.ts +3 -3
  260. package/dist/upload/Upload.js +15 -1
  261. package/dist/upload/index.d.ts +6 -3
  262. package/dist/upload/interface.d.ts +4 -4
  263. package/global.d.ts +3 -0
  264. package/package.json +69 -17
  265. package/web-tags.json +5069 -0
  266. package/web-types.json +14335 -0
@@ -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 vue76 from "vue";
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: vue76.DefineSetupFnComponent<PopoverProps, PopoverEmits, SlotsType<PopoverSlots>, PopoverProps & {
26
+ declare const InternalPopover: vue132.DefineSetupFnComponent<PopoverProps, PopoverEmits, SlotsType<PopoverSlots>, PopoverProps & {
27
27
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
28
- }, vue76.PublicProps>;
29
- declare const _default: typeof InternalPopover;
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, _default };
34
+ export { Popover, PopoverProps, PopoverSemanticName };
@@ -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
- "--valid-offset-x": "var(--arrow-offset-horizontal, var(--arrow-x))",
29
- "transformOrigin": [`var(--valid-offset-x, 50%)`, `var(--arrow-y, 50%)`].join(" "),
30
- "--antd-arrow-background-color": colorBgElevated,
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, "var(--antd-arrow-background-color)"),
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
- "--antd-arrow-background-color": lightColor,
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 vue151 from "vue";
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: vue151.DefineSetupFnComponent<ProgressProps, EmptyEmit, SlotsType<ProgressSlots>, ProgressProps & {
70
+ declare const Progress: vue134.DefineSetupFnComponent<ProgressProps, EmptyEmit, SlotsType<ProgressSlots>, ProgressProps & {
71
71
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
72
- }, vue151.PublicProps>;
72
+ }, vue134.PublicProps>;
73
73
  //#endregion
74
74
  export { Progress, ProgressAriaProps, ProgressProps };
@@ -1,10 +1,10 @@
1
1
  import { QRCodeEmits, QRCodeProps, QRCodeSlots } from "./interface.js";
2
- import * as vue163 from "vue";
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: vue163.DefineSetupFnComponent<QRCodeProps, QRCodeEmits, SlotsType<QRCodeSlots>, QRCodeProps & {
6
+ declare const QRCode: vue136.DefineSetupFnComponent<QRCodeProps, QRCodeEmits, SlotsType<QRCodeSlots>, QRCodeProps & {
7
7
  [x: `on${Capitalize<string>}`]: (() => any) | undefined;
8
- }, vue163.PublicProps>;
8
+ }, vue136.PublicProps>;
9
9
  //#endregion
10
10
  export { QRCode };
@@ -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 vue157 from "vue";
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: vue157.DefineSetupFnComponent<RadioGroupProps, RadioGroupEmits, vue157.SlotsType<RadioGroupSlots>, RadioGroupProps & {
11
+ declare const RadioGroup: vue138.DefineSetupFnComponent<RadioGroupProps, RadioGroupEmits, vue138.SlotsType<RadioGroupSlots>, RadioGroupProps & {
12
12
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
13
- }, vue157.PublicProps>;
14
- declare const RadioButton: vue157.DefineSetupFnComponent<AbstractCheckboxProps, CheckboxEmits, vue157.SlotsType<CheckboxSlots>, AbstractCheckboxProps & {
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
- }, vue157.PublicProps>;
16
+ }, vue138.PublicProps>;
17
17
  //#endregion
18
18
  export { RadioButton, RadioGroup, RadioOptionType };
@@ -1,10 +1,10 @@
1
1
  import { RadioEmits, RadioProps, RadioSlots } from "./interface.js";
2
- import * as vue406 from "vue";
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: vue406.DefineSetupFnComponent<RadioProps, RadioEmits, SlotsType<RadioSlots>, RadioProps & {
6
+ declare const InternalRadio: vue412.DefineSetupFnComponent<RadioProps, RadioEmits, SlotsType<RadioSlots>, RadioProps & {
7
7
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
8
- }, vue406.PublicProps>;
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 },
@@ -1,5 +1,5 @@
1
1
  import { TooltipProps } from "../tooltip/index.js";
2
- import * as vue153 from "vue";
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: vue153.DefineSetupFnComponent<RateProps$1, RateEmits, {}, RateProps$1 & {
21
+ declare const Rate: vue144.DefineSetupFnComponent<RateProps$1, RateEmits, {}, RateProps$1 & {
22
22
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
23
- }, vue153.PublicProps>;
23
+ }, vue144.PublicProps>;
24
24
  //#endregion
25
25
  export { Rate, RateEmits, RateProps$1 as RateProps };
@@ -1,6 +1,6 @@
1
1
  import "../../theme/internal.js";
2
- import "vue";
3
2
  import { CSSObject } from "@antdv-next/cssinjs";
3
+ import "vue";
4
4
 
5
5
  //#region src/rate/style/index.d.ts
6
6
  interface ComponentToken {
@@ -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 vue155 from "vue";
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: vue155.DefineSetupFnComponent<ResultProps, EmptyEmit, SlotsType<ResultSlots>, ResultProps & {
39
+ declare const Result: vue128.DefineSetupFnComponent<ResultProps, EmptyEmit, SlotsType<ResultSlots>, ResultProps & {
40
40
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
41
- }, vue155.PublicProps>;
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"];
@@ -1,6 +1,6 @@
1
- import * as vue_jsx_runtime13 from "vue/jsx-runtime";
1
+ import * as vue_jsx_runtime14 from "vue/jsx-runtime";
2
2
 
3
3
  //#region src/result/noFound.d.ts
4
- declare function NoFound(): vue_jsx_runtime13.JSX.Element;
4
+ declare function NoFound(): vue_jsx_runtime14.JSX.Element;
5
5
  //#endregion
6
6
  export { NoFound };
@@ -1,6 +1,6 @@
1
- import * as vue_jsx_runtime14 from "vue/jsx-runtime";
1
+ import * as vue_jsx_runtime13 from "vue/jsx-runtime";
2
2
 
3
3
  //#region src/result/serverError.d.ts
4
- declare function ServerError(): vue_jsx_runtime14.JSX.Element;
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 vue165 from "vue";
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: vue165.DefineSetupFnComponent<SegmentedProps$1, SegmentedEmits, SlotsType<SegmentedSlots>, SegmentedProps$1 & {
51
+ declare const InternalSegmented: vue148.DefineSetupFnComponent<SegmentedProps$1, SegmentedEmits, SlotsType<SegmentedSlots>, SegmentedProps$1 & {
52
52
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
53
- }, vue165.PublicProps>;
53
+ }, vue148.PublicProps>;
54
54
  declare const Segmented: typeof InternalSegmented & {
55
55
  install: (app: App) => void;
56
56
  };
@@ -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 vue167 from "vue";
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: vue167.DefineSetupFnComponent<SelectProps$1, SelectEmits, SlotsType<SelectSlots>, SelectProps$1 & {
113
+ declare const Select: vue150.DefineSetupFnComponent<SelectProps$1, SelectEmits, SlotsType<SelectSlots>, SelectProps$1 & {
114
114
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
115
- }, vue167.PublicProps>;
116
- declare const SelectOption: vue167.FunctionalComponent<_v_c_select_dist_Option_js0.OptionProps, {}, any, {}>;
117
- declare const SelectOptGroup: vue167.FunctionalComponent<_v_c_select_dist_OptGroup_js0.OptGroupProps, {}, any, {}>;
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 };
@@ -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 { useFormItemInputContext } from "../form/context.js";
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 (notFoundContent) selectProps.notFoundContent = notFoundContent;
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
- "--select-multi-item-background": token.multipleItemBg,
9
- "--select-multi-item-border-color": "transparent",
10
- "--select-multi-item-border-radius": token.borderRadiusSM,
11
- "--select-multi-item-height": token.multipleItemHeight,
12
- "--select-multi-padding-base": `calc((var(--select-height) - var(--select-multi-item-height)) / 2)`,
13
- "--select-multi-padding-vertical": `calc(var(--select-multi-padding-base) - ${INTERNAL_FIXED_ITEM_MARGIN} - ${lineWidth})`,
14
- "--select-multi-item-padding-horizontal": `calc(${inputPaddingHorizontalBase} - var(--select-multi-padding-vertical) - ${lineWidth} * 2)`,
15
- "paddingBlock": `var(--select-multi-padding-vertical)`,
16
- "paddingInlineStart": `calc(var(--select-multi-padding-base) - ${lineWidth})`,
17
- [`${componentCls}-prefix`]: { marginInlineStart: "var(--select-multi-item-padding-horizontal)" },
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: "var(--select-line-height)",
25
- insetInlineStart: "var(--select-multi-item-padding-horizontal)",
26
- width: "calc(100% - var(--select-multi-item-padding-horizontal))",
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: "var(--select-font-size)" },
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: "var(--select-multi-item-padding-horizontal)" },
42
+ ${componentCls}-content-item-suffix:first-child`]: { marginInlineStart: varRef("multi-item-padding-horizontal") },
41
43
  [`${componentCls}-selection-item`]: {
42
- "lineHeight": `calc(var(--select-multi-item-height) - ${lineWidth} * 2)`,
43
- "border": `${lineWidth} solid var(--select-multi-item-border-color)`,
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": `var(--select-multi-item-background)`,
48
- "borderRadius": `var(--select-multi-item-border-radius)`,
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("var(--select-multi-item-height)").equal(),
75
- width: "calc(var(--select-input-width, 0) * 1px)",
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
- "--select-multi-item-height": token.multipleItemHeightSM,
83
- "--select-multi-item-border-radius": token.borderRadiusXS
84
+ [varName("multi-item-height")]: token.multipleItemHeightSM,
85
+ [varName("multi-item-border-radius")]: token.borderRadiusXS
84
86
  },
85
87
  [`&${componentCls}-lg`]: {
86
- "--select-multi-item-height": token.multipleItemHeightLG,
87
- "--select-multi-item-border-radius": token.borderRadius
88
+ [varName("multi-item-height")]: token.multipleItemHeightLG,
89
+ [varName("multi-item-border-radius")]: token.borderRadius
88
90
  },
89
91
  [`&${componentCls}-filled`]: {
90
- "--select-multi-item-border-color": token.colorSplit,
91
- "--select-multi-item-background": token.colorBgContainer,
92
- [`&${componentCls}-disabled`]: { "--select-multi-item-border-color": "transparent" }
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
- "--select-border-color": border,
14
- "--select-background": baseBG,
15
- "--select-color": colors.color || token.colorText,
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
- "--select-border-color": borderHover,
19
- "--select-background": colors.backgroundHover || baseBG
20
+ [varName("border-color")]: borderHover,
21
+ [varName("background-color")]: colors.backgroundHover || baseBG
20
22
  },
21
23
  [`&${componentCls}-focused`]: {
22
- "--select-border-color": borderActive,
23
- "--select-background": colors.backgroundActive || baseBG,
24
- "boxShadow": `0 0 0 ${unit(token.controlOutlineWidth)} ${borderOutline}`
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
- "--select-border-color": colors.borderDisabled || colors.border,
29
- "--select-background": colors.backgroundDisabled || colors.background
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, calc, fontHeight, controlHeight, iconCls } = token;
56
+ const { componentCls, fontHeight, controlHeight, iconCls, antCls, calc } = token;
57
+ const [varName, varRef] = genCssVar(antCls, "select");
55
58
  return { [componentCls]: [
56
59
  {
57
- "--select-border-radius": token.borderRadius,
58
- "--select-border-color": "#000",
59
- "--select-border-size": token.lineWidth,
60
- "--select-background": token.colorBgContainer,
61
- "--select-font-size": token.fontSize,
62
- "--select-line-height": token.lineHeight,
63
- "--select-font-height": fontHeight,
64
- "--select-color": token.colorText,
65
- "--select-height": controlHeight,
66
- "--select-padding-horizontal": calc(token.paddingSM).sub(token.lineWidth).equal(),
67
- "--select-padding-vertical": "calc((var(--select-height) - var(--select-font-height)) / 2 - var(--select-border-size))",
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": "var(--select-border-radius)",
77
- "borderWidth": "var(--select-border-size)",
79
+ "borderRadius": varRef("border-radius"),
80
+ "borderWidth": varRef("border-size"),
78
81
  "borderStyle": token.lineType,
79
- "borderColor": "var(--select-border-color)",
80
- "background": "var(--select-background)",
81
- "fontSize": "var(--select-font-size)",
82
- "lineHeight": "var(--select-line-height)",
83
- "color": "var(--select-color)",
84
- "paddingInline": "var(--select-padding-horizontal)",
85
- "paddingBlock": "var(--select-padding-vertical)",
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
- "--select-height": token.controlHeightSM,
136
- "--select-padding-horizontal": calc(token.paddingXS).sub(token.lineWidth).equal(),
137
- "--select-border-radius": token.borderRadiusSM
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
- "--select-height": token.controlHeightLG,
141
- "--select-font-size": token.fontSizeLG,
142
- "--select-line-height": token.lineHeightLG,
143
- "--select-font-height": token.fontHeightLG,
144
- "--select-border-radius": token.borderRadiusLG
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: "calc(var(--select-padding-vertical) * -1)",
165
- lineHeight: "calc(var(--select-font-height) + var(--select-padding-vertical) * 2)"
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 vue436 from "vue";
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: vue436.DefineSetupFnComponent<SkeletonAvatarProps, {}, {}, SkeletonAvatarProps & {}, vue436.PublicProps>;
8
+ declare const SkeletonAvatar: vue434.DefineSetupFnComponent<SkeletonAvatarProps, {}, {}, SkeletonAvatarProps & {}, vue434.PublicProps>;
9
9
  //#endregion
10
10
  export { SkeletonAvatar, SkeletonAvatarProps };