antdv-next 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (280) hide show
  1. package/dist/_util/hooks/useMergeSemantic.js +2 -2
  2. package/dist/_util/statusUtils.d.ts +1 -1
  3. package/dist/_util/vueNode.d.ts +11 -1
  4. package/dist/_util/vueNode.js +17 -1
  5. package/dist/affix/index.js +12 -9
  6. package/dist/alert/Alert.js +10 -5
  7. package/dist/anchor/Anchor.js +11 -6
  8. package/dist/anchor/style/index.js +2 -3
  9. package/dist/antd-with-locales.esm.js +16938 -18716
  10. package/dist/antd-with-locales.js +79 -86
  11. package/dist/antd.css +1 -1
  12. package/dist/antd.esm.js +15197 -17143
  13. package/dist/antd.js +80 -87
  14. package/dist/auto-complete/index.d.ts +2 -0
  15. package/dist/auto-complete/index.js +28 -23
  16. package/dist/avatar/Avatar.js +1 -1
  17. package/dist/avatar/AvatarContext.d.ts +2 -2
  18. package/dist/avatar/AvatarGroup.js +3 -5
  19. package/dist/badge/style/ribbon.d.ts +1 -0
  20. package/dist/border-beam/style/index.d.ts +1 -0
  21. package/dist/breadcrumb/index.d.ts +8 -1
  22. package/dist/button/Button.js +31 -18
  23. package/dist/button/style/index.d.ts +1 -0
  24. package/dist/calendar/Header.js +4 -4
  25. package/dist/calendar/generateCalendar.d.ts +10 -10
  26. package/dist/calendar/index.d.ts +1 -1
  27. package/dist/card/Card.js +1 -1
  28. package/dist/card/index.d.ts +8 -1
  29. package/dist/card/style/index.js +3 -7
  30. package/dist/carousel/index.js +3 -3
  31. package/dist/cascader/hooks/useIcons.js +3 -2
  32. package/dist/cascader/index.d.ts +9 -1
  33. package/dist/cascader/index.js +42 -34
  34. package/dist/cascader/style/panel.d.ts +1 -0
  35. package/dist/checkbox/Checkbox.js +5 -2
  36. package/dist/checkbox/Group.js +6 -6
  37. package/dist/collapse/Collapse.js +2 -2
  38. package/dist/color-picker/ColorPicker.js +15 -2
  39. package/dist/color-picker/components/ColorSlider.js +2 -2
  40. package/dist/color-picker/interface.d.ts +3 -0
  41. package/dist/color-picker/style/input.js +6 -11
  42. package/dist/components.d.ts +24 -24
  43. package/dist/components.js +1 -2
  44. package/dist/config-provider/context.d.ts +16 -11
  45. package/dist/config-provider/define.d.ts +2 -1
  46. package/dist/config-provider/index.js +9 -0
  47. package/dist/date-picker/generatePicker/generateRangePicker.d.ts +2 -0
  48. package/dist/date-picker/generatePicker/generateRangePicker.js +23 -15
  49. package/dist/date-picker/generatePicker/generateSinglePicker.d.ts +2 -0
  50. package/dist/date-picker/generatePicker/generateSinglePicker.js +18 -14
  51. package/dist/date-picker/generatePicker/interface.d.ts +17 -5
  52. package/dist/date-picker/generatePicker/useComponents.d.ts +1 -14
  53. package/dist/date-picker/generatePicker/useSuffix.d.ts +12 -0
  54. package/dist/date-picker/generatePicker/useSuffix.js +11 -0
  55. package/dist/date-picker/style/index.d.ts +1 -0
  56. package/dist/date-picker/util.d.ts +1 -1
  57. package/dist/date-picker/util.js +4 -3
  58. package/dist/descriptions/hooks/useItems.d.ts +6 -6
  59. package/dist/descriptions/index.js +2 -2
  60. package/dist/divider/index.js +14 -4
  61. package/dist/drawer/index.js +2 -2
  62. package/dist/dropdown/dropdown.js +6 -6
  63. package/dist/dropdown/style/index.js +0 -6
  64. package/dist/empty/index.js +2 -1
  65. package/dist/empty/style/index.d.ts +1 -0
  66. package/dist/flex/index.js +2 -2
  67. package/dist/float-button/BackTop.js +2 -1
  68. package/dist/float-button/FloatButton.js +2 -2
  69. package/dist/float-button/FloatButtonGroup.js +2 -2
  70. package/dist/float-button/PurePanel.js +5 -5
  71. package/dist/form/Form.js +47 -16
  72. package/dist/form/FormItem/ItemHolder.d.ts +3 -18
  73. package/dist/form/FormItem/StatusProvider.js +2 -1
  74. package/dist/form/FormItem/index.d.ts +1 -0
  75. package/dist/form/FormItem/index.js +22 -9
  76. package/dist/form/FormItemInput.js +3 -4
  77. package/dist/form/FormItemLabel.js +8 -4
  78. package/dist/form/context.d.ts +3 -3
  79. package/dist/form/hooks/useVariant.d.ts +14 -4
  80. package/dist/form/hooks/useVariant.js +24 -13
  81. package/dist/form/interface.d.ts +4 -1
  82. package/dist/form/style/index.js +1 -1
  83. package/dist/grid/hooks/useBreakpoint.js +12 -6
  84. package/dist/image/PreviewGroup.d.ts +9 -2
  85. package/dist/image/PreviewGroup.js +2 -2
  86. package/dist/image/hooks/usePreviewConfig.d.ts +2 -2
  87. package/dist/image/index.d.ts +3 -3
  88. package/dist/image/index.js +3 -3
  89. package/dist/index.d.ts +26 -24
  90. package/dist/index.js +1 -2
  91. package/dist/input/Input.js +4 -4
  92. package/dist/input/OTP/OTPInput.js +31 -30
  93. package/dist/input/OTP/index.js +10 -2
  94. package/dist/input/Password.js +7 -3
  95. package/dist/input/Search.js +5 -5
  96. package/dist/input/TextArea.js +4 -4
  97. package/dist/input/style/index.js +2 -15
  98. package/dist/input/style/otp.d.ts +1 -0
  99. package/dist/input/style/search.d.ts +1 -0
  100. package/dist/input/style/textarea.d.ts +1 -0
  101. package/dist/input-number/index.js +3 -3
  102. package/dist/input-number/style/index.d.ts +1 -0
  103. package/dist/layout/Sider.js +2 -2
  104. package/dist/layout/style/sider.d.ts +1 -0
  105. package/dist/listy/interface.d.ts +23 -4
  106. package/dist/listy/style/index.js +1 -0
  107. package/dist/locale/ar_EG.js +3 -1
  108. package/dist/locale/az_AZ.js +3 -1
  109. package/dist/locale/bg_BG.js +3 -1
  110. package/dist/locale/bn_BD.js +3 -1
  111. package/dist/locale/by_BY.js +3 -1
  112. package/dist/locale/ca_ES.js +3 -1
  113. package/dist/locale/cs_CZ.js +13 -9
  114. package/dist/locale/da_DK.js +3 -1
  115. package/dist/locale/de_DE.js +6 -2
  116. package/dist/locale/el_GR.js +3 -1
  117. package/dist/locale/en_GB.js +3 -1
  118. package/dist/locale/en_US.js +5 -2
  119. package/dist/locale/es_ES.js +3 -1
  120. package/dist/locale/et_EE.js +3 -1
  121. package/dist/locale/eu_ES.js +3 -1
  122. package/dist/locale/fa_IR.js +3 -1
  123. package/dist/locale/fi_FI.js +3 -1
  124. package/dist/locale/fr_BE.js +3 -1
  125. package/dist/locale/fr_CA.js +3 -1
  126. package/dist/locale/fr_FR.js +6 -2
  127. package/dist/locale/ga_IE.js +3 -1
  128. package/dist/locale/gl_ES.js +3 -1
  129. package/dist/locale/he_IL.js +3 -1
  130. package/dist/locale/hi_IN.js +3 -1
  131. package/dist/locale/hr_HR.js +3 -1
  132. package/dist/locale/hu_HU.js +3 -1
  133. package/dist/locale/hy_AM.js +5 -13
  134. package/dist/locale/id_ID.js +3 -1
  135. package/dist/locale/index.d.ts +6 -0
  136. package/dist/locale/is_IS.js +3 -1
  137. package/dist/locale/it_IT.js +6 -2
  138. package/dist/locale/ja_JP.js +3 -1
  139. package/dist/locale/ka_GE.js +3 -1
  140. package/dist/locale/kk_KZ.js +3 -1
  141. package/dist/locale/km_KH.js +3 -1
  142. package/dist/locale/kmr_IQ.js +3 -1
  143. package/dist/locale/kn_IN.js +3 -1
  144. package/dist/locale/ko_KR.js +3 -1
  145. package/dist/locale/ku_IQ.js +3 -1
  146. package/dist/locale/lt_LT.js +3 -1
  147. package/dist/locale/lv_LV.js +3 -1
  148. package/dist/locale/mk_MK.js +3 -1
  149. package/dist/locale/ml_IN.js +3 -1
  150. package/dist/locale/mn_MN.js +3 -1
  151. package/dist/locale/mr_IN.js +3 -1
  152. package/dist/locale/ms_MY.js +3 -1
  153. package/dist/locale/my_MM.js +3 -1
  154. package/dist/locale/nb_NO.js +3 -1
  155. package/dist/locale/ne_NP.js +4 -2
  156. package/dist/locale/nl_BE.js +3 -1
  157. package/dist/locale/nl_NL.js +3 -1
  158. package/dist/locale/pl_PL.js +3 -1
  159. package/dist/locale/pt_BR.js +3 -1
  160. package/dist/locale/pt_PT.js +3 -1
  161. package/dist/locale/ro_RO.js +3 -1
  162. package/dist/locale/ru_RU.js +3 -1
  163. package/dist/locale/si_LK.js +3 -1
  164. package/dist/locale/sk_SK.js +3 -1
  165. package/dist/locale/sl_SI.js +3 -1
  166. package/dist/locale/sq_AL.js +5 -13
  167. package/dist/locale/sr_RS.js +3 -1
  168. package/dist/locale/sv_SE.js +3 -1
  169. package/dist/locale/ta_IN.js +3 -1
  170. package/dist/locale/th_TH.js +3 -1
  171. package/dist/locale/tk_TK.js +3 -1
  172. package/dist/locale/tr_TR.js +3 -1
  173. package/dist/locale/uk_UA.js +3 -1
  174. package/dist/locale/ur_PK.js +3 -1
  175. package/dist/locale/uz_UZ.js +3 -1
  176. package/dist/locale/vi_VN.js +3 -1
  177. package/dist/locale/zh_CN.js +5 -2
  178. package/dist/locale/zh_HK.js +3 -1
  179. package/dist/locale/zh_TW.js +3 -1
  180. package/dist/mentions/index.js +4 -4
  181. package/dist/menu/MenuItem.js +7 -7
  182. package/dist/menu/SubMenu.js +5 -4
  183. package/dist/menu/menu.js +2 -2
  184. package/dist/message/PurePanel.js +2 -2
  185. package/dist/message/style/index.d.ts +1 -0
  186. package/dist/message/style/index.js +2 -1
  187. package/dist/modal/Modal.js +5 -5
  188. package/dist/modal/PurePanel.js +2 -2
  189. package/dist/modal/style/confirm.js +1 -1
  190. package/dist/notification/PurePanel.js +2 -2
  191. package/dist/notification/style/index.d.ts +3 -0
  192. package/dist/notification/style/index.js +4 -5
  193. package/dist/notification/style/placement.js +3 -6
  194. package/dist/package.js +1 -1
  195. package/dist/pagination/Pagination.js +6 -5
  196. package/dist/pagination/index.d.ts +2 -1
  197. package/dist/pagination/interface.d.ts +2 -2
  198. package/dist/pagination/style/index.js +15 -7
  199. package/dist/popconfirm/index.js +4 -3
  200. package/dist/popover/PurePanel.js +2 -2
  201. package/dist/popover/style/index.js +1 -0
  202. package/dist/progress/Circle.js +3 -3
  203. package/dist/progress/Line.js +2 -1
  204. package/dist/progress/progress.js +1 -1
  205. package/dist/qrcode/QrcodeStatus.js +2 -1
  206. package/dist/qrcode/index.js +2 -2
  207. package/dist/qrcode/style/index.js +0 -4
  208. package/dist/radio/radio.js +2 -2
  209. package/dist/rate/index.js +2 -2
  210. package/dist/select/index.d.ts +11 -3
  211. package/dist/select/index.js +55 -38
  212. package/dist/select/style/index.d.ts +1 -0
  213. package/dist/select/useIcons.d.ts +23 -8
  214. package/dist/select/useIcons.js +34 -13
  215. package/dist/select/useShowArrow.d.ts +2 -3
  216. package/dist/select/useShowArrow.js +3 -5
  217. package/dist/skeleton/Paragraph.js +2 -2
  218. package/dist/skeleton/Skeleton.js +2 -2
  219. package/dist/skeleton/Title.js +2 -2
  220. package/dist/slider/index.d.ts +6 -1
  221. package/dist/slider/index.js +7 -5
  222. package/dist/space/Item.d.ts +1 -0
  223. package/dist/space/Item.js +6 -2
  224. package/dist/space/index.d.ts +1 -1
  225. package/dist/space/index.js +1 -0
  226. package/dist/space/style/addon.d.ts +1 -0
  227. package/dist/space/style/compact.d.ts +1 -0
  228. package/dist/space/style/index.js +8 -2
  229. package/dist/spin/Indicator/index.js +5 -1
  230. package/dist/splitter/SplitBar.js +2 -1
  231. package/dist/splitter/Splitter.js +10 -4
  232. package/dist/splitter/interface.d.ts +1 -0
  233. package/dist/statistic/Number.js +7 -1
  234. package/dist/statistic/Statistic.d.ts +3 -0
  235. package/dist/statistic/Statistic.js +2 -1
  236. package/dist/steps/index.js +16 -8
  237. package/dist/switch/index.js +10 -4
  238. package/dist/table/InternalTable.js +22 -7
  239. package/dist/table/hooks/useFilter/index.js +5 -2
  240. package/dist/table/hooks/usePagination.d.ts +2 -1
  241. package/dist/table/hooks/usePagination.js +6 -3
  242. package/dist/table/index.d.ts +2 -2
  243. package/dist/table/util.d.ts +1 -1
  244. package/dist/tabs/index.js +19 -11
  245. package/dist/tabs/style/index.js +2 -6
  246. package/dist/tag/index.d.ts +1 -1
  247. package/dist/tag/index.js +13 -5
  248. package/dist/theme/getDesignToken.js +2 -1
  249. package/dist/theme/index.d.ts +1 -0
  250. package/dist/time-picker/index.d.ts +16 -9
  251. package/dist/time-picker/index.js +31 -84
  252. package/dist/timeline/Timeline.js +16 -10
  253. package/dist/tooltip/PurePanel.js +2 -2
  254. package/dist/tooltip/index.js +3 -6
  255. package/dist/tooltip/style/index.js +1 -1
  256. package/dist/tour/index.js +2 -3
  257. package/dist/tour/panelRender.js +4 -4
  258. package/dist/transfer/Section.js +2 -2
  259. package/dist/tree/DirectoryTree.d.ts +19 -7
  260. package/dist/tree/DirectoryTree.js +2 -2
  261. package/dist/tree/Tree.d.ts +73 -58
  262. package/dist/tree/Tree.js +2 -2
  263. package/dist/tree/index.d.ts +8 -5
  264. package/dist/tree/index.js +4 -3
  265. package/dist/tree/style/index.js +6 -1
  266. package/dist/tree/utils/iconUtil.js +1 -1
  267. package/dist/tree-select/index.d.ts +32 -2
  268. package/dist/tree-select/index.js +75 -75
  269. package/dist/upload/Upload.js +2 -2
  270. package/dist/upload/utils.js +8 -3
  271. package/dist/version/token.json +1 -1
  272. package/dist/watermark/useWatermark.d.ts +1 -7
  273. package/dist/watermark/useWatermark.js +1 -7
  274. package/package.json +20 -20
  275. package/web-tags.json +85 -29
  276. package/web-types.json +242 -157
  277. package/dist/date-picker/generatePicker/SuffixIcon.d.ts +0 -12
  278. package/dist/date-picker/generatePicker/SuffixIcon.js +0 -51
  279. package/dist/form/style/fallbackCmp.d.ts +0 -14
  280. package/dist/form/style/fallbackCmp.js +0 -13
@@ -14,7 +14,9 @@ const localeValues = {
14
14
  placeholder: "请选择",
15
15
  close: "关闭",
16
16
  sortable: "可排序",
17
- clear: "清除"
17
+ clear: "清除",
18
+ show: "显示",
19
+ hide: "隐藏"
18
20
  },
19
21
  Table: {
20
22
  filterTitle: "筛选",
@@ -150,7 +152,8 @@ const localeValues = {
150
152
  transparent: "无色",
151
153
  singleColor: "单色",
152
154
  gradientColor: "渐变色"
153
- }
155
+ },
156
+ Input: { otpCell: "第 ${index} 位,共 ${total} 位" }
154
157
  };
155
158
  //#endregion
156
159
  export { localeValues as default };
@@ -14,7 +14,9 @@ const localeValues = {
14
14
  placeholder: "請選擇",
15
15
  close: "關閉",
16
16
  sortable: "可排序",
17
- clear: "清除"
17
+ clear: "清除",
18
+ show: "顯示",
19
+ hide: "隱藏"
18
20
  },
19
21
  Table: {
20
22
  filterTitle: "篩選器",
@@ -14,7 +14,9 @@ const localeValues = {
14
14
  placeholder: "請選擇",
15
15
  close: "關閉",
16
16
  sortable: "可排序",
17
- clear: "清除"
17
+ clear: "清除",
18
+ show: "顯示",
19
+ hide: "隱藏"
18
20
  },
19
21
  Table: {
20
22
  filterTitle: "篩選器",
@@ -7,19 +7,19 @@ import { useZIndex } from "../_util/hooks/useZIndex.js";
7
7
  import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
8
8
  import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
9
9
  import { useDisabledContext } from "../config-provider/DisabledContext.js";
10
+ import useVariant from "../form/hooks/useVariant.js";
10
11
  import genPurePanel from "../_util/PurePanel.js";
12
+ import useAllowClear, { useAllowClearLabel } from "../_util/hooks/useAllowClear.js";
11
13
  import { getMergedStatus, getStatusClassNames } from "../_util/statusUtils.js";
12
14
  import { DefaultRenderEmpty } from "../config-provider/defaultRenderEmpty.js";
13
- import useVariant from "../form/hooks/useVariant.js";
14
15
  import usePopupRender from "../select/usePopupRender.js";
15
- import useAllowClear, { useAllowClearLabel } from "../_util/hooks/useAllowClear.js";
16
16
  import toList from "../_util/toList.js";
17
17
  import Spin from "../spin/index.js";
18
18
  import style_default from "./style/index.js";
19
19
  import { computed, createVNode, defineComponent, isVNode, mergeProps, shallowRef } from "vue";
20
20
  import { clsx } from "@v-c/util";
21
21
  import { filterEmpty } from "@v-c/util/dist/props-util";
22
- import { omit } from "es-toolkit";
22
+ import { omit as omit$1 } from "es-toolkit";
23
23
  import VcMentions, { Option } from "@v-c/mentions";
24
24
  //#region src/mentions/index.tsx
25
25
  function _isSlot(s) {
@@ -179,7 +179,7 @@ const Mentions = /* @__PURE__ */ defineComponent((props, { slots, emit, expose,
179
179
  suffix: mergedStyles.value.suffix
180
180
  };
181
181
  const mergedPopupRender = usePopupRender(slots?.popupRender ?? props?.popupRender);
182
- const restProps = omit(props, omitKeys);
182
+ const restProps = omit$1(props, omitKeys);
183
183
  return createVNode(VcMentions, mergeProps({ "ref": mentionsRef }, restAttrs, restProps, {
184
184
  "prefixCls": prefixCls.value,
185
185
  "className": mergedClassName,
@@ -5,10 +5,10 @@ import { isFunction } from "../_util/is.js";
5
5
  import { omitUndefined } from "../_util/omitUndefined.js";
6
6
  import { useSiderCtx } from "../layout/Sider.js";
7
7
  import { useMenuContext } from "./MenuContext.js";
8
- import { computed, createVNode, defineComponent, isVNode, mergeProps, shallowRef, watch } from "vue";
8
+ import { Text, computed, createVNode, defineComponent, isVNode, mergeProps, shallowRef, watch } from "vue";
9
9
  import { clsx } from "@v-c/util";
10
10
  import { filterEmpty } from "@v-c/util/dist/props-util";
11
- import { omit } from "es-toolkit/compat";
11
+ import { omit as omit$1 } from "es-toolkit/compat";
12
12
  import { Item } from "@v-c/menu";
13
13
  //#region src/menu/MenuItem.tsx
14
14
  function _isSlot(s) {
@@ -31,14 +31,14 @@ const MenuItem = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
31
31
  const { prefixCls, firstLevel, direction, disableMenuItemTitleTooltip, tooltip, inlineCollapsed: isInlineCollapsed, styles, classes } = menuContext.value;
32
32
  const children = filterEmpty(slots?.default?.());
33
33
  const renderItemChildren = (inlineCollapsed) => {
34
- const label = children?.[0];
34
+ const firstChild = children?.[0];
35
+ const label = isVNode(firstChild) && firstChild.type === Text ? firstChild.children : firstChild;
35
36
  const wrapNode = createVNode("span", {
36
37
  "class": clsx(`${prefixCls}-title-content`, firstLevel ? classes?.itemContent : classes?.subMenu?.itemContent, { [`${prefixCls}-title-content-with-extra`]: !!extra || extra === 0 }),
37
38
  "style": firstLevel ? styles?.itemContent : styles?.subMenu?.itemContent
38
39
  }, [children]);
39
- const _children = children?.[0];
40
- if (!icon || isVNode(_children) && _children.type === "span") {
41
- if (_children && inlineCollapsed && firstLevel && typeof label === "string") return createVNode("div", { "class": `${prefixCls}-inline-collapsed-noicon` }, [label.charAt(0)]);
40
+ if (!icon || isVNode(firstChild) && firstChild.type === "span") {
41
+ if (firstChild && inlineCollapsed && firstLevel && typeof label === "string") return createVNode("div", { "class": `${prefixCls}-inline-collapsed-noicon` }, [label.charAt(0)]);
42
42
  }
43
43
  return wrapNode;
44
44
  };
@@ -62,7 +62,7 @@ const MenuItem = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
62
62
  };
63
63
  }
64
64
  const childrenLength = children.length;
65
- let returnNode = createVNode(Item, mergeProps(omit(pureAttrs(attrs), ["itemData"]), omitUndefined(props, [
65
+ let returnNode = createVNode(Item, mergeProps(omit$1(pureAttrs(attrs), ["itemData"]), omitUndefined(props, [
66
66
  "title",
67
67
  "icon",
68
68
  "danger",
@@ -2,9 +2,9 @@ import { pureAttrs } from "../_util/hooks/useMergeSemantic.js";
2
2
  import { useZIndex } from "../_util/hooks/useZIndex.js";
3
3
  import { getSlotPropsFnRun } from "../_util/tools.js";
4
4
  import { useMenuContext, useMenuContextProvider } from "./MenuContext.js";
5
- import { Fragment, computed, createVNode, defineComponent, mergeProps } from "vue";
5
+ import { Fragment, Text, computed, createVNode, defineComponent, isVNode, mergeProps } from "vue";
6
6
  import { clsx } from "@v-c/util";
7
- import { omit } from "es-toolkit";
7
+ import { omit as omit$1 } from "es-toolkit";
8
8
  import { SubMenu as SubMenu$1, useFullPath } from "@v-c/menu";
9
9
  //#region src/menu/SubMenu.tsx
10
10
  const SubMenu = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
@@ -23,7 +23,8 @@ const SubMenu = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
23
23
  let titleNode;
24
24
  const title = getSlotPropsFnRun(slots, props, "title");
25
25
  const icon = getSlotPropsFnRun(slots, props, "icon");
26
- if (!icon) titleNode = inlineCollapsed && !parentPath.value?.length && title && typeof title === "string" ? createVNode("div", { "class": `${prefixCls}-inline-collapsed-noicon` }, [title.charAt(0)]) : createVNode("span", { "class": `${prefixCls}-title-content` }, [title]);
26
+ const titleText = isVNode(title) && title.type === Text ? title.children : title;
27
+ if (!icon) titleNode = inlineCollapsed && !parentPath.value?.length && typeof titleText === "string" && titleText ? createVNode("div", { "class": `${prefixCls}-inline-collapsed-noicon` }, [titleText.charAt(0)]) : createVNode("span", { "class": `${prefixCls}-title-content` }, [title]);
27
28
  else {
28
29
  const titleIsSpan = typeof title === "object" && title.type === "span";
29
30
  titleNode = createVNode(Fragment, null, [createVNode(icon, {
@@ -31,7 +32,7 @@ const SubMenu = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
31
32
  style: styles.itemIcon
32
33
  }), titleIsSpan ? title : createVNode("span", { "class": `${prefixCls}-title-content` }, [title])]);
33
34
  }
34
- return createVNode(SubMenu$1, mergeProps(pureAttrs(attrs), omit(props, ["icon"]), {
35
+ return createVNode(SubMenu$1, mergeProps(pureAttrs(attrs), omit$1(props, ["icon"]), {
35
36
  "title": titleNode,
36
37
  "classes": {
37
38
  list: classes?.subMenu?.list,
package/dist/menu/menu.js CHANGED
@@ -14,7 +14,7 @@ import { computed, createVNode, defineComponent, isVNode, mergeDefaults, mergePr
14
14
  import { clsx } from "@v-c/util";
15
15
  import { filterEmpty } from "@v-c/util/dist/props-util";
16
16
  import { EllipsisOutlined } from "@antdv-next/icons";
17
- import { omit } from "es-toolkit";
17
+ import { omit as omit$1 } from "es-toolkit";
18
18
  import VcMenu from "@v-c/menu";
19
19
  //#region src/menu/menu.tsx
20
20
  const omitPropKeys = [
@@ -113,7 +113,7 @@ const InternalMenu = /* @__PURE__ */ defineComponent((props, { slots, emit, attr
113
113
  };
114
114
  const _getPopupContainer = props?.getPopupContainer ?? getPopupContainer;
115
115
  const { theme, overflowedIndicatorPopupClassName, rootClass } = props;
116
- const passedProps = omit(props, omitPropKeys);
116
+ const passedProps = omit$1(props, omitPropKeys);
117
117
  const menuClassName = clsx(`${prefixCls.value}-${theme}`, contextClassName.value, attrs.class);
118
118
  const itemIcon = slots?.itemIcon ?? props?.itemIcon;
119
119
  const labelRender = slots?.labelRender ?? props?.labelRender;
@@ -7,7 +7,7 @@ import style_default from "./style/index.js";
7
7
  import { Fragment, computed, createVNode, defineComponent, mergeProps } from "vue";
8
8
  import { clsx } from "@v-c/util";
9
9
  import { CheckCircleFilled, CloseCircleFilled, ExclamationCircleFilled, InfoCircleFilled, LoadingOutlined } from "@antdv-next/icons";
10
- import { omit } from "es-toolkit";
10
+ import { omit as omit$1 } from "es-toolkit";
11
11
  import { Notification } from "@v-c/notification";
12
12
  //#region src/message/PurePanel.tsx
13
13
  const TypeIcon = {
@@ -86,7 +86,7 @@ const PurePanel = /* @__PURE__ */ defineComponent((props, { attrs }) => {
86
86
  const [hashId, cssVarCls] = style_default(prefixCls, rootCls);
87
87
  const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, messageClassNames), useToArr(contextStyles, styles), useToProps(mergedProps));
88
88
  return () => {
89
- const restProps = omit(props, omitKeys);
89
+ const restProps = omit$1(props, omitKeys);
90
90
  const noticePrefixCls = `${prefixCls.value}-notice`;
91
91
  const iconNode = resolveMessageIcon(prefixCls.value, props.icon, props.type);
92
92
  const typeIconCls = props.type ? `${noticePrefixCls}-icon-${props.type}` : void 0;
@@ -2,6 +2,7 @@ import { SeedToken } from "../../theme/interface/seeds.js";
2
2
  import { AliasToken } from "../../theme/interface/alias.js";
3
3
  import { ComponentTokenMap } from "../../theme/interface/components.js";
4
4
  import "../../theme/interface/index.js";
5
+ import "../../theme/internal.js";
5
6
  import { CSSProperties } from "vue";
6
7
  //#region src/message/style/index.d.ts
7
8
  /** Component only token. Which will handle additional calculation of alias token */
@@ -108,7 +108,8 @@ var style_default = genStyleHooks("Message", (token) => {
108
108
  const messageToken = prepareMessageToken(token);
109
109
  return [sharedGenerateStyle(messageToken, {
110
110
  stackVisibleCount: 1,
111
- itemStyle: generateMessageStyle
111
+ itemStyle: generateMessageStyle,
112
+ listContentPointerEvents: "none"
112
113
  }), generateMessageStackStyle(messageToken)];
113
114
  }, prepareComponentToken);
114
115
  //#endregion
@@ -19,7 +19,7 @@ import { computed, createVNode, defineComponent, mergeDefaults, mergeProps } fro
19
19
  import { clsx } from "@v-c/util";
20
20
  import { CloseOutlined } from "@antdv-next/icons";
21
21
  import { getTransitionName } from "@v-c/util/dist/utils/transition";
22
- import { omit } from "es-toolkit";
22
+ import { omit as omit$1 } from "es-toolkit";
23
23
  import Dialog from "@v-c/dialog";
24
24
  //#region src/modal/Modal.tsx
25
25
  let mousePosition;
@@ -162,7 +162,7 @@ const Modal = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
162
162
  "onOk": handleOk,
163
163
  "onCancel": handleCancel
164
164
  }, null) : null;
165
- const restProps = omit(props, [
165
+ const restProps = omit$1(props, [
166
166
  "open",
167
167
  "prefixCls",
168
168
  "rootClass",
@@ -193,8 +193,8 @@ const Modal = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
193
193
  "_renderSemanticContent"
194
194
  ]);
195
195
  const { _semanticOmit, _renderSemanticContent } = props;
196
- const dialogClassNames = _semanticOmit ? omit(mergedClassNames.value, _semanticOmit) : mergedClassNames.value;
197
- const dialogStyles = _semanticOmit ? omit(mergedStyles.value, _semanticOmit) : mergedStyles.value;
196
+ const dialogClassNames = _semanticOmit ? omit$1(mergedClassNames.value, _semanticOmit) : mergedClassNames.value;
197
+ const dialogStyles = _semanticOmit ? omit$1(mergedStyles.value, _semanticOmit) : mergedStyles.value;
198
198
  const renderSemanticContent = () => _renderSemanticContent ? _renderSemanticContent({
199
199
  classNames: mergedClassNames.value,
200
200
  styles: mergedStyles.value
@@ -206,7 +206,7 @@ const Modal = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
206
206
  return createVNode(ContextIsolator, {
207
207
  "form": true,
208
208
  "space": true
209
- }, { default: () => [createVNode(ZIndexProvider, { "value": contextZIndex.value }, { default: () => [createVNode(Dialog, mergeProps(omit(restAttrs, ["content"]), restProps, {
209
+ }, { default: () => [createVNode(ZIndexProvider, { "value": contextZIndex.value }, { default: () => [createVNode(Dialog, mergeProps(omit$1(restAttrs, ["content"]), restProps, {
210
210
  "width": numWidth.value,
211
211
  "zIndex": zIndex.value,
212
212
  "getContainer": getContainer,
@@ -22,7 +22,7 @@ var PurePanel_default = withPureRenderTheme(/* @__PURE__ */ defineComponent((pro
22
22
  return () => {
23
23
  const { className: attrClassName, restAttrs, style: attrStyle } = getAttrStyleAndClass(attrs);
24
24
  const { type, closable, closeIcon } = props;
25
- const footer = getSlotPropsFnRun(slots, props, "footer", false);
25
+ const footer = slots.footer ?? props.footer;
26
26
  const title = getSlotPropsFnRun(slots, props, "title", false);
27
27
  let additionalProps = {};
28
28
  if (type) additionalProps = {
@@ -39,7 +39,7 @@ var PurePanel_default = withPureRenderTheme(/* @__PURE__ */ defineComponent((pro
39
39
  else additionalProps = {
40
40
  closable: closable ?? true,
41
41
  title,
42
- footer: footer !== null && createVNode(Footer, mergeProps(props, { "footer": footer }), null),
42
+ footer: props.footer !== null && createVNode(Footer, mergeProps(props, { "footer": footer }), null),
43
43
  children: slots.default?.()
44
44
  };
45
45
  return createVNode(Panel, mergeProps({
@@ -39,7 +39,7 @@ const genModalConfirmStyle = (token) => {
39
39
  fontSize: titleFontSize,
40
40
  lineHeight: titleLineHeight
41
41
  },
42
- [`${confirmComponentCls}-container`]: {
42
+ [`${confirmComponentCls}-content`]: {
43
43
  color: token.colorText,
44
44
  fontSize,
45
45
  lineHeight
@@ -9,7 +9,7 @@ import useClosable, { pickClosable } from "../_util/hooks/useClosable.js";
9
9
  import { computed, createVNode, defineComponent, mergeDefaults, mergeProps } from "vue";
10
10
  import { clsx } from "@v-c/util";
11
11
  import { CheckCircleFilled, CloseCircleFilled, CloseOutlined, ExclamationCircleFilled, InfoCircleFilled } from "@antdv-next/icons";
12
- import { omit } from "es-toolkit";
12
+ import { omit as omit$1 } from "es-toolkit";
13
13
  import { Notification } from "@v-c/notification";
14
14
  //#region src/notification/PurePanel.tsx
15
15
  function getCloseIcon(prefixCls, closeIcon) {
@@ -186,7 +186,7 @@ const PurePanel = /* @__PURE__ */ defineComponent((props, { attrs, slots }) => {
186
186
  const noticePrefixCls = `${prefixCls.value}-notice`;
187
187
  const notificationClassName = attrs.class;
188
188
  const style = attrs.style;
189
- const restProps = omit(props, omitKeys);
189
+ const restProps = omit$1(props, omitKeys);
190
190
  const actions = getSlotPropsFnRun(slots, props, "actions");
191
191
  const titleNode = getSlotPropsFnRun(slots, props, "title");
192
192
  const descriptionNode = getSlotPropsFnRun(slots, props, "description");
@@ -4,12 +4,15 @@ import { ComponentTokenMap } from "../../theme/interface/components.js";
4
4
  import { FullToken, GenStyleFn } from "../../theme/interface/cssinjs-utils.js";
5
5
  import { GenerateStyle } from "../../theme/interface/index.js";
6
6
  import "../../theme/internal.js";
7
+ import { CSSProperties } from "vue";
7
8
  //#region src/notification/style/index.d.ts
8
9
  type WidthKey<Token extends NotificationToken> = { [Key in keyof Token]: Token[Key] extends number | string ? Key : never; }[keyof Token];
9
10
  interface SharedStyleConfig<Token extends NotificationToken> {
10
11
  listWidthKey?: WidthKey<Token>;
11
12
  stackVisibleCount?: number;
12
13
  itemStyle?: GenerateStyle<Token>;
14
+ /** Whether the list content should capture pointer events (stack interaction needs it). */
15
+ listContentPointerEvents?: CSSProperties['pointerEvents'];
13
16
  }
14
17
  /** Component only token. Which will handle additional calculation of alias token */
15
18
  interface ComponentToken {
@@ -41,7 +41,7 @@ function getStackNoticeClipPath(offset) {
41
41
  return `inset(${offset} ${offset} ${offset} ${offset})`;
42
42
  }
43
43
  /** Generate shared list content and motion base styles. */
44
- const genNotificationListContentStyle = (token) => {
44
+ function genNotificationListContentStyle(token, pointerEvents) {
45
45
  const { componentCls, motionDurationMid, motionDurationSlow, motionEaseInOut } = token;
46
46
  const listContentCls = `${`${componentCls}-list`}-content`;
47
47
  return {
@@ -54,7 +54,7 @@ const genNotificationListContentStyle = (token) => {
54
54
  width: "100%",
55
55
  willChange: "height, transform",
56
56
  transition: "none",
57
- pointerEvents: "auto",
57
+ pointerEvents,
58
58
  [`&${listContentCls}-decrease`]: { transition: `height calc(${motionDurationSlow} * 2) ${motionEaseInOut} ${motionDurationMid}` }
59
59
  },
60
60
  [`${componentCls}-fade`]: {
@@ -62,7 +62,7 @@ const genNotificationListContentStyle = (token) => {
62
62
  willChange: "transform, opacity"
63
63
  }
64
64
  };
65
- };
65
+ }
66
66
  /** Generate the root holder, list, stack, and RTL styles for notifications. */
67
67
  function genNotificationListStyle(token, config) {
68
68
  const { componentCls, notificationMarginEdge } = token;
@@ -82,7 +82,6 @@ function genNotificationListStyle(token, config) {
82
82
  height: "100vh",
83
83
  overflow: "hidden",
84
84
  overscrollBehavior: "contain",
85
- [`${componentCls}-hook-holder`]: { position: "relative" },
86
85
  [`&${listCls}`]: {
87
86
  maxHeight: "100vh",
88
87
  padding: `var(${notificationMarginEdgeVar})`,
@@ -97,7 +96,7 @@ function genNotificationListStyle(token, config) {
97
96
  height: 0
98
97
  }
99
98
  },
100
- ...genNotificationListContentStyle(token),
99
+ ...genNotificationListContentStyle(token, config.listContentPointerEvents ?? "auto"),
101
100
  [`&${componentCls}-stack`]: {
102
101
  [noticeCls]: { clipPath: stackNoticeClipPath },
103
102
  [`&:not(${componentCls}-stack-expanded)`]: {
@@ -26,11 +26,7 @@ function getPlacementStyleConfig(placement, motionOffset) {
26
26
  blockEnd,
27
27
  horizontal,
28
28
  inlineEnd,
29
- motionOffset: isCenterPlacement ? {
30
- x: "-50%",
31
- y: offset
32
- } : { x: offset },
33
- baseMotionOffset: isCenterPlacement ? { x: "-50%" } : void 0,
29
+ motionOffset: isCenterPlacement ? { y: offset } : { x: offset },
34
30
  isCenterPlacement
35
31
  };
36
32
  }
@@ -68,7 +64,7 @@ function genPlacementStyle(token, config) {
68
64
  const noticeCls = `${componentCls}-notice`;
69
65
  const noticeMotionCls = `${noticeCls}${componentCls}-fade`;
70
66
  const enterTransform = getMotionTransform(config.motionOffset);
71
- const baseTransform = getMotionTransform(config.baseMotionOffset);
67
+ const baseTransform = getMotionTransform();
72
68
  const transformOrigin = getPlacementTransformOrigin(vertical);
73
69
  return { [`&${componentCls}-${placement}`]: {
74
70
  [vertical]: getPlacementInset(vertical),
@@ -88,6 +84,7 @@ function genPlacementStyle(token, config) {
88
84
  [vertical]: "var(--notification-y, 0)",
89
85
  ...isCenterPlacement ? {
90
86
  left: "50%",
87
+ translate: "-50% 0",
91
88
  transform: baseTransform
92
89
  } : { [horizontal]: "var(--notification-x, 0)" },
93
90
  transformOrigin
package/dist/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "1.7.0";
2
+ var version = "1.8.0";
3
3
  //#endregion
4
4
  export { version };
@@ -4,8 +4,8 @@ import { useSize } from "../config-provider/hooks/useSize.js";
4
4
  import useToken from "../theme/useToken.js";
5
5
  import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
6
6
  import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
7
- import useLocale from "../locale/useLocale.js";
8
7
  import useVariant from "../form/hooks/useVariant.js";
8
+ import useLocale from "../locale/useLocale.js";
9
9
  import Select from "../select/index.js";
10
10
  import useBreakpoint from "../grid/hooks/useBreakpoint.js";
11
11
  import style_default from "./style/index.js";
@@ -14,7 +14,7 @@ import resolveShowSizeChanger from "./useShowSizeChanger.js";
14
14
  import { Fragment, computed, createVNode, defineComponent, h, mergeProps } from "vue";
15
15
  import { clsx } from "@v-c/util";
16
16
  import { DoubleLeftOutlined, DoubleRightOutlined, EllipsisOutlined, LeftOutlined, RightOutlined } from "@antdv-next/icons";
17
- import { omit } from "es-toolkit";
17
+ import { omit as omit$1 } from "es-toolkit";
18
18
  import Pagination$1 from "@v-c/pagination/locale/en_US";
19
19
  import VcPagination from "@v-c/pagination";
20
20
  //#region src/pagination/Pagination.tsx
@@ -126,10 +126,11 @@ const Pagination = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
126
126
  };
127
127
  return props.showTotal;
128
128
  });
129
- const handleChange = (page, pageSize) => {
129
+ const handleChange = (page, pageSize, info) => {
130
130
  if (props.current !== page) emit("update:current", page);
131
131
  if (props.pageSize !== pageSize) emit("update:pageSize", pageSize);
132
- emit("change", page, pageSize);
132
+ if (info) emit("change", page, pageSize, info);
133
+ else emit("change", page, pageSize);
133
134
  };
134
135
  const handleShowSizeChange = (current, size) => {
135
136
  emit("showSizeChange", current, size);
@@ -150,7 +151,7 @@ const Pagination = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
150
151
  ...mergedStyles.value?.root,
151
152
  ...style
152
153
  };
153
- const restProps = omit(props, omitKeys);
154
+ const restProps = omit$1(props, omitKeys);
154
155
  return createVNode(Fragment, null, [token.value.wireframe && createVNode(bordered_default, { "prefixCls": prefixCls.value }, null), createVNode(VcPagination, mergeProps(restProps, restAttrs, {
155
156
  "prefixCls": prefixCls.value,
156
157
  "selectPrefixCls": selectPrefixCls.value,
@@ -1,6 +1,7 @@
1
1
  import { PaginationClassNamesType, PaginationComponents, PaginationConfig, PaginationEmits, PaginationLocale, PaginationPosition, PaginationSizeChangerProps, PaginationSlots, PaginationStylesType } from "./interface.js";
2
2
  import Pagination, { InternalPaginationProps } from "./Pagination.js";
3
+ import { PaginationOnChangeInfo } from "@v-c/pagination";
3
4
  //#region src/pagination/index.d.ts
4
5
  type PaginationProps = InternalPaginationProps;
5
6
  //#endregion
6
- export { type PaginationClassNamesType, type PaginationComponents, type PaginationConfig, type PaginationEmits, type PaginationLocale, type PaginationPosition, PaginationProps, type PaginationSizeChangerProps, type PaginationSlots, type PaginationStylesType, Pagination as default };
7
+ export { type PaginationClassNamesType, type PaginationComponents, type PaginationConfig, type PaginationEmits, type PaginationLocale, type PaginationOnChangeInfo, type PaginationPosition, PaginationProps, type PaginationSizeChangerProps, type PaginationSlots, type PaginationStylesType, Pagination as default };
@@ -4,7 +4,7 @@ import "../_util/hooks/index.js";
4
4
  import { SizeType } from "../config-provider/SizeContext.js";
5
5
  import { SelectProps } from "../select/index.js";
6
6
  import { CSSProperties, Component } from "vue";
7
- import { PaginationProps as PaginationProps$1 } from "@v-c/pagination";
7
+ import { PaginationOnChangeInfo, PaginationProps as PaginationProps$1 } from "@v-c/pagination";
8
8
  //#region src/pagination/interface.d.ts
9
9
  interface PaginationLocale {
10
10
  items_per_page?: string;
@@ -73,7 +73,7 @@ interface PaginationConfig extends Omit<PaginationProps, 'rootClass'> {
73
73
  position?: PaginationPosition;
74
74
  }
75
75
  interface PaginationEmits {
76
- 'change': (page: number, pageSize: number) => void;
76
+ 'change': (page: number, pageSize: number, info?: PaginationOnChangeInfo) => void;
77
77
  'showSizeChange': (current: number, size: number) => void;
78
78
  'update:current': (page: number) => void;
79
79
  'update:pageSize': (size: number) => void;
@@ -12,14 +12,14 @@ const genPaginationDisabledStyle = (token) => {
12
12
  [`${componentCls}-disabled`]: {
13
13
  "&, &:hover": {
14
14
  cursor: "not-allowed",
15
- [`${componentCls}-item-link`]: {
15
+ [`${componentCls}-item-link, a`]: {
16
16
  color: token.colorTextDisabled,
17
17
  cursor: "not-allowed"
18
18
  }
19
19
  },
20
20
  "&:focus-visible": {
21
21
  cursor: "not-allowed",
22
- [`${componentCls}-item-link`]: {
22
+ [`${componentCls}-item-link, a`]: {
23
23
  color: token.colorTextDisabled,
24
24
  cursor: "not-allowed"
25
25
  }
@@ -44,7 +44,7 @@ const genPaginationDisabledStyle = (token) => {
44
44
  a: { color: token.itemActiveColorDisabled }
45
45
  }
46
46
  },
47
- [`${componentCls}-item-link`]: {
47
+ [`${componentCls}-item-link, a`]: {
48
48
  color: token.colorTextDisabled,
49
49
  cursor: "not-allowed",
50
50
  "&:hover, &:active": { backgroundColor: "transparent" },
@@ -366,6 +366,7 @@ const genPaginationStyle = (token) => {
366
366
  ...resetComponent(token),
367
367
  display: "flex",
368
368
  alignItems: "center",
369
+ userSelect: "none",
369
370
  "&-start": { justifyContent: "start" },
370
371
  "&-center": { justifyContent: "center" },
371
372
  "&-end": { justifyContent: "end" },
@@ -387,7 +388,8 @@ const genPaginationStyle = (token) => {
387
388
  height: varRef(`item-size-actual`),
388
389
  marginInlineEnd: varRef(`item-spacing-actual`),
389
390
  lineHeight: unit(token.calc(varRef(`item-size-actual`)).sub(2).equal()),
390
- verticalAlign: "middle"
391
+ verticalAlign: "middle",
392
+ userSelect: "text"
391
393
  },
392
394
  ...genPaginationItemStyle(token),
393
395
  ...genPaginationJumpStyle(token),
@@ -405,13 +407,19 @@ const genPaginationStyle = (token) => {
405
407
  const genPaginationFocusStyle = (token) => {
406
408
  const { componentCls } = token;
407
409
  return { [`${componentCls}:not(${componentCls}-disabled)`]: {
408
- [`${componentCls}-item`]: { ...genFocusStyle(token) },
409
- [`${componentCls}-jump-prev, ${componentCls}-jump-next`]: { "&:focus-visible": {
410
+ [`${componentCls}-item`]: {
411
+ ...genFocusStyle(token),
412
+ "> a, > button": {
413
+ borderRadius: "inherit",
414
+ ...genFocusStyle(token)
415
+ }
416
+ },
417
+ [`${componentCls}-jump-prev, ${componentCls}-jump-next`]: { "&:focus-visible, &:has(> :focus-visible)": {
410
418
  [`${componentCls}-item-link-icon`]: { opacity: 1 },
411
419
  [`${componentCls}-item-ellipsis`]: { opacity: 0 },
412
420
  ...genFocusOutline(token)
413
421
  } },
414
- [`${componentCls}-prev, ${componentCls}-next`]: { [`&:focus-visible ${componentCls}-item-link`]: genFocusOutline(token) }
422
+ [`${componentCls}-prev, ${componentCls}-next`]: { [`&:focus-visible ${componentCls}-item-link, ${componentCls}-item-link:focus-visible`]: genFocusOutline(token) }
415
423
  } };
416
424
  };
417
425
  const prepareComponentToken = (token) => ({
@@ -2,6 +2,7 @@ import { useComponentBaseConfig } from "../config-provider/context.js";
2
2
  import { useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
3
3
  import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1, useLiveListener } from "../_util/tools.js";
4
4
  import useMergedArrow from "../tooltip/hooks/useMergedArrow.js";
5
+ import { cloneIfVNode } from "../_util/vueNode.js";
5
6
  import Popover from "../popover/index.js";
6
7
  import style_default from "./style/index.js";
7
8
  import PurePanel, { Overlay } from "./PurePanel.js";
@@ -9,7 +10,7 @@ import { computed, createVNode, defineComponent, mergeDefaults, mergeProps, shal
9
10
  import { clsx } from "@v-c/util";
10
11
  import { removeUndefined } from "@v-c/util/dist/props-util";
11
12
  import { ExclamationCircleFilled } from "@antdv-next/icons";
12
- import { omit } from "es-toolkit";
13
+ import { omit as omit$1 } from "es-toolkit";
13
14
  //#region src/popconfirm/index.tsx
14
15
  const OMITTED_PROP_KEYS = [
15
16
  "title",
@@ -84,10 +85,10 @@ const Popconfirm = /* @__PURE__ */ defineComponent((props, { slots, attrs, expos
84
85
  return () => {
85
86
  const titleNode = getSlotPropsFnRun(slots, props, "title");
86
87
  const descriptionNode = getSlotPropsFnRun(slots, props, "description");
87
- const iconNode = getSlotPropsFnRun(slots, props, "icon") ?? defaultIcon;
88
+ const iconNode = cloneIfVNode(getSlotPropsFnRun(slots, props, "icon") ?? defaultIcon);
88
89
  const okTextNode = getSlotPropsFnRun(slots, props, "okText");
89
90
  const cancelTextNode = getSlotPropsFnRun(slots, props, "cancelText");
90
- const restProps = omit(props, OMITTED_PROP_KEYS);
91
+ const restProps = omit$1(props, OMITTED_PROP_KEYS);
91
92
  const content = createVNode(Overlay, {
92
93
  "prefixCls": prefixCls.value,
93
94
  "title": titleNode,
@@ -7,7 +7,7 @@ import { Fragment, computed, createVNode, defineComponent, mergeDefaults, mergeP
7
7
  import { clsx } from "@v-c/util";
8
8
  import { filterEmpty } from "@v-c/util/dist/props-util";
9
9
  import { Popup } from "@v-c/tooltip";
10
- import { omit } from "es-toolkit";
10
+ import { omit as omit$1 } from "es-toolkit";
11
11
  //#region src/popover/PurePanel.tsx
12
12
  const Overlay = /* @__PURE__ */ defineComponent((props, { slots }) => {
13
13
  return () => {
@@ -241,7 +241,7 @@ const PurePanel = /* @__PURE__ */ defineComponent((props, { attrs, slots }) => {
241
241
  const [hashId, cssVarCls] = style_default(prefixCls);
242
242
  return () => {
243
243
  const content = getSlotPropsFnRun(slots, props, "content");
244
- return createVNode(RawPurePanel, mergeProps(omit(attrs, ["class"]), props, {
244
+ return createVNode(RawPurePanel, mergeProps(omit$1(attrs, ["class"]), props, {
245
245
  "content": content,
246
246
  "prefixCls": prefixCls.value,
247
247
  "hashId": hashId.value,
@@ -26,6 +26,7 @@ const genBaseStyle = (token) => {
26
26
  cursor: "auto",
27
27
  userSelect: "text",
28
28
  filter: dropShadowPopover,
29
+ willChange: "transform",
29
30
  [varName("valid-offset-x")]: varRef("arrow-offset-x", "var(--arrow-x)"),
30
31
  transformOrigin: [varRef("valid-offset-x", FALL_BACK_ORIGIN), `var(--arrow-y, ${FALL_BACK_ORIGIN})`].join(" "),
31
32
  [varName("arrow-background-color")]: colorBgElevated,
@@ -3,7 +3,7 @@ import InternalTooltip from "../tooltip/index.js";
3
3
  import { getPercentage, getSize, getStrokeColor } from "./utils.js";
4
4
  import { computed, createVNode, defineComponent, isVNode, mergeDefaults } from "vue";
5
5
  import { clsx } from "@v-c/util";
6
- import { omit } from "es-toolkit";
6
+ import { omit as omit$1 } from "es-toolkit";
7
7
  import { Circle as Circle$1 } from "@v-c/progress";
8
8
  //#region src/progress/Circle.tsx
9
9
  function _isSlot(s) {
@@ -63,8 +63,8 @@ const Circle = /* @__PURE__ */ defineComponent((props, { slots }) => {
63
63
  "prefixCls": prefixCls,
64
64
  "gapDegree": realGapDegree.value,
65
65
  "gapPosition": gapPos.value,
66
- "classNames": omit(classes, OMIT_SEMANTIC_NAMES),
67
- "styles": omit(styles, OMIT_SEMANTIC_NAMES)
66
+ "classNames": omit$1(classes, OMIT_SEMANTIC_NAMES),
67
+ "styles": omit$1(styles, OMIT_SEMANTIC_NAMES)
68
68
  }, null);
69
69
  const smallCircle = width <= 20;
70
70
  const children = slots?.default ? slots.default() : null;
@@ -1,4 +1,5 @@
1
1
  import { devUseWarning, isDev } from "../_util/warning.js";
2
+ import { isString } from "../_util/is.js";
2
3
  import { getSize, getSuccessPercent, validProgress } from "./utils.js";
3
4
  import { LineStrokeColorVar } from "./style/index.js";
4
5
  import { computed, createVNode, defineComponent } from "vue";
@@ -90,7 +91,7 @@ const Line = /* @__PURE__ */ defineComponent((props, { slots }) => {
90
91
  return createVNode("div", {
91
92
  "class": clsx(`${prefixCls}-body`, classes.body, { [`${prefixCls}-body-layout-bottom`]: infoAlign === "center" && infoPosition === "outer" }),
92
93
  "style": {
93
- width: width > 0 ? width : "100%",
94
+ width: isString(width) || width > 0 ? width : "100%",
94
95
  ...styles.body
95
96
  }
96
97
  }, [createVNode("div", {
@@ -151,7 +151,7 @@ const Progress = /* @__PURE__ */ defineComponent((props, { attrs }) => {
151
151
  "style": [mergedStyles.value.root, attrStyle],
152
152
  "class": classString,
153
153
  "role": "progressbar",
154
- "aria-valuenow": percentNumber.value,
154
+ "aria-valuenow": validProgress(mergedPercent.value),
155
155
  "aria-valuemin": 0,
156
156
  "aria-valuemax": 100
157
157
  }), [progress]);