antdv-next 1.7.1 → 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 (230) hide show
  1. package/dist/_util/hooks/useMergeSemantic.js +2 -2
  2. package/dist/alert/Alert.js +10 -5
  3. package/dist/antd-with-locales.esm.js +12549 -12267
  4. package/dist/antd-with-locales.js +79 -79
  5. package/dist/antd.css +1 -1
  6. package/dist/antd.esm.js +9474 -9357
  7. package/dist/antd.js +78 -78
  8. package/dist/auto-complete/index.d.ts +2 -0
  9. package/dist/auto-complete/index.js +28 -23
  10. package/dist/badge/style/ribbon.d.ts +1 -0
  11. package/dist/border-beam/style/index.d.ts +1 -0
  12. package/dist/button/Button.js +31 -18
  13. package/dist/button/style/index.d.ts +1 -0
  14. package/dist/calendar/Header.js +4 -4
  15. package/dist/card/Card.js +1 -1
  16. package/dist/carousel/index.js +3 -3
  17. package/dist/cascader/index.d.ts +7 -1
  18. package/dist/cascader/index.js +42 -34
  19. package/dist/cascader/style/panel.d.ts +1 -0
  20. package/dist/checkbox/Checkbox.js +5 -2
  21. package/dist/checkbox/Group.js +2 -2
  22. package/dist/collapse/Collapse.js +2 -2
  23. package/dist/color-picker/ColorPicker.js +15 -2
  24. package/dist/color-picker/components/ColorSlider.js +2 -2
  25. package/dist/color-picker/interface.d.ts +3 -0
  26. package/dist/components.d.ts +1 -1
  27. package/dist/config-provider/context.d.ts +13 -9
  28. package/dist/config-provider/define.d.ts +2 -1
  29. package/dist/config-provider/index.js +9 -0
  30. package/dist/date-picker/generatePicker/generateRangePicker.d.ts +2 -0
  31. package/dist/date-picker/generatePicker/generateRangePicker.js +19 -11
  32. package/dist/date-picker/generatePicker/generateSinglePicker.d.ts +2 -0
  33. package/dist/date-picker/generatePicker/generateSinglePicker.js +14 -10
  34. package/dist/date-picker/generatePicker/useSuffix.d.ts +12 -0
  35. package/dist/date-picker/generatePicker/useSuffix.js +11 -0
  36. package/dist/date-picker/style/index.d.ts +1 -0
  37. package/dist/date-picker/util.d.ts +2 -6
  38. package/dist/date-picker/util.js +4 -3
  39. package/dist/descriptions/hooks/useItems.d.ts +4 -4
  40. package/dist/descriptions/index.js +2 -2
  41. package/dist/divider/index.js +14 -4
  42. package/dist/drawer/index.js +2 -2
  43. package/dist/dropdown/dropdown.js +6 -6
  44. package/dist/empty/style/index.d.ts +1 -0
  45. package/dist/flex/index.js +2 -2
  46. package/dist/float-button/FloatButton.js +2 -2
  47. package/dist/float-button/FloatButtonGroup.js +2 -2
  48. package/dist/float-button/PurePanel.js +5 -5
  49. package/dist/form/Form.js +40 -10
  50. package/dist/form/FormItem/ItemHolder.d.ts +3 -18
  51. package/dist/form/FormItem/StatusProvider.js +2 -1
  52. package/dist/form/FormItem/index.d.ts +1 -0
  53. package/dist/form/FormItem/index.js +13 -2
  54. package/dist/form/FormItemInput.js +3 -4
  55. package/dist/form/FormItemLabel.js +7 -3
  56. package/dist/form/context.d.ts +3 -3
  57. package/dist/form/hooks/useVariant.d.ts +14 -4
  58. package/dist/form/hooks/useVariant.js +24 -13
  59. package/dist/form/interface.d.ts +4 -1
  60. package/dist/form/style/index.js +1 -1
  61. package/dist/image/PreviewGroup.js +2 -2
  62. package/dist/image/hooks/usePreviewConfig.d.ts +7 -7
  63. package/dist/image/index.js +3 -3
  64. package/dist/index.d.ts +1 -1
  65. package/dist/input/Input.js +4 -4
  66. package/dist/input/OTP/OTPInput.js +31 -30
  67. package/dist/input/OTP/index.js +10 -2
  68. package/dist/input/Password.js +7 -3
  69. package/dist/input/Search.js +5 -5
  70. package/dist/input/TextArea.js +4 -4
  71. package/dist/input/style/otp.d.ts +1 -0
  72. package/dist/input/style/search.d.ts +1 -0
  73. package/dist/input/style/textarea.d.ts +1 -0
  74. package/dist/input-number/index.js +3 -3
  75. package/dist/input-number/style/index.d.ts +1 -0
  76. package/dist/layout/Sider.js +2 -2
  77. package/dist/layout/style/sider.d.ts +1 -0
  78. package/dist/locale/ar_EG.js +3 -1
  79. package/dist/locale/az_AZ.js +3 -1
  80. package/dist/locale/bg_BG.js +3 -1
  81. package/dist/locale/bn_BD.js +3 -1
  82. package/dist/locale/by_BY.js +3 -1
  83. package/dist/locale/ca_ES.js +3 -1
  84. package/dist/locale/cs_CZ.js +13 -9
  85. package/dist/locale/da_DK.js +3 -1
  86. package/dist/locale/de_DE.js +6 -2
  87. package/dist/locale/el_GR.js +3 -1
  88. package/dist/locale/en_GB.js +3 -1
  89. package/dist/locale/en_US.js +5 -2
  90. package/dist/locale/es_ES.js +3 -1
  91. package/dist/locale/et_EE.js +3 -1
  92. package/dist/locale/eu_ES.js +3 -1
  93. package/dist/locale/fa_IR.js +3 -1
  94. package/dist/locale/fi_FI.js +3 -1
  95. package/dist/locale/fr_BE.js +3 -1
  96. package/dist/locale/fr_CA.js +3 -1
  97. package/dist/locale/fr_FR.js +6 -2
  98. package/dist/locale/ga_IE.js +3 -1
  99. package/dist/locale/gl_ES.js +3 -1
  100. package/dist/locale/he_IL.js +3 -1
  101. package/dist/locale/hi_IN.js +3 -1
  102. package/dist/locale/hr_HR.js +3 -1
  103. package/dist/locale/hu_HU.js +3 -1
  104. package/dist/locale/hy_AM.js +5 -13
  105. package/dist/locale/id_ID.js +3 -1
  106. package/dist/locale/index.d.ts +6 -0
  107. package/dist/locale/is_IS.js +3 -1
  108. package/dist/locale/it_IT.js +6 -2
  109. package/dist/locale/ja_JP.js +3 -1
  110. package/dist/locale/ka_GE.js +3 -1
  111. package/dist/locale/kk_KZ.js +3 -1
  112. package/dist/locale/km_KH.js +3 -1
  113. package/dist/locale/kmr_IQ.js +3 -1
  114. package/dist/locale/kn_IN.js +3 -1
  115. package/dist/locale/ko_KR.js +3 -1
  116. package/dist/locale/ku_IQ.js +3 -1
  117. package/dist/locale/lt_LT.js +3 -1
  118. package/dist/locale/lv_LV.js +3 -1
  119. package/dist/locale/mk_MK.js +3 -1
  120. package/dist/locale/ml_IN.js +3 -1
  121. package/dist/locale/mn_MN.js +3 -1
  122. package/dist/locale/mr_IN.js +3 -1
  123. package/dist/locale/ms_MY.js +3 -1
  124. package/dist/locale/my_MM.js +3 -1
  125. package/dist/locale/nb_NO.js +3 -1
  126. package/dist/locale/ne_NP.js +4 -2
  127. package/dist/locale/nl_BE.js +3 -1
  128. package/dist/locale/nl_NL.js +3 -1
  129. package/dist/locale/pl_PL.js +3 -1
  130. package/dist/locale/pt_BR.js +3 -1
  131. package/dist/locale/pt_PT.js +3 -1
  132. package/dist/locale/ro_RO.js +3 -1
  133. package/dist/locale/ru_RU.js +3 -1
  134. package/dist/locale/si_LK.js +3 -1
  135. package/dist/locale/sk_SK.js +3 -1
  136. package/dist/locale/sl_SI.js +3 -1
  137. package/dist/locale/sq_AL.js +5 -13
  138. package/dist/locale/sr_RS.js +3 -1
  139. package/dist/locale/sv_SE.js +3 -1
  140. package/dist/locale/ta_IN.js +3 -1
  141. package/dist/locale/th_TH.js +3 -1
  142. package/dist/locale/tk_TK.js +3 -1
  143. package/dist/locale/tr_TR.js +3 -1
  144. package/dist/locale/uk_UA.js +3 -1
  145. package/dist/locale/ur_PK.js +3 -1
  146. package/dist/locale/uz_UZ.js +3 -1
  147. package/dist/locale/vi_VN.js +3 -1
  148. package/dist/locale/zh_CN.js +5 -2
  149. package/dist/locale/zh_HK.js +3 -1
  150. package/dist/locale/zh_TW.js +3 -1
  151. package/dist/mentions/index.js +4 -4
  152. package/dist/menu/MenuItem.js +7 -7
  153. package/dist/menu/SubMenu.js +5 -4
  154. package/dist/menu/menu.js +2 -2
  155. package/dist/message/PurePanel.js +2 -2
  156. package/dist/message/style/index.d.ts +1 -0
  157. package/dist/modal/Modal.js +5 -5
  158. package/dist/notification/PurePanel.js +2 -2
  159. package/dist/notification/style/placement.js +3 -6
  160. package/dist/package.js +1 -1
  161. package/dist/pagination/Pagination.js +6 -5
  162. package/dist/pagination/index.d.ts +2 -1
  163. package/dist/pagination/interface.d.ts +2 -2
  164. package/dist/pagination/style/index.js +3 -3
  165. package/dist/popconfirm/index.js +2 -2
  166. package/dist/popover/PurePanel.js +2 -2
  167. package/dist/popover/style/index.js +1 -0
  168. package/dist/progress/Circle.js +3 -3
  169. package/dist/qrcode/index.js +2 -2
  170. package/dist/qrcode/style/index.js +0 -4
  171. package/dist/radio/radio.js +2 -2
  172. package/dist/rate/index.js +2 -2
  173. package/dist/select/index.d.ts +11 -3
  174. package/dist/select/index.js +55 -38
  175. package/dist/select/style/index.d.ts +1 -0
  176. package/dist/select/useIcons.d.ts +23 -12
  177. package/dist/select/useIcons.js +34 -13
  178. package/dist/select/useShowArrow.d.ts +2 -3
  179. package/dist/select/useShowArrow.js +3 -5
  180. package/dist/skeleton/Paragraph.js +2 -2
  181. package/dist/skeleton/Skeleton.js +2 -2
  182. package/dist/skeleton/Title.js +2 -2
  183. package/dist/slider/index.js +2 -2
  184. package/dist/space/Compact.d.ts +1 -1
  185. package/dist/space/index.d.ts +1 -1
  186. package/dist/space/style/addon.d.ts +1 -0
  187. package/dist/space/style/compact.d.ts +1 -0
  188. package/dist/space/style/index.js +8 -2
  189. package/dist/splitter/SplitBar.js +2 -1
  190. package/dist/splitter/Splitter.js +2 -2
  191. package/dist/statistic/Number.js +7 -1
  192. package/dist/steps/index.js +9 -3
  193. package/dist/switch/index.js +2 -2
  194. package/dist/table/InternalTable.js +2 -2
  195. package/dist/table/hooks/useFilter/index.js +5 -2
  196. package/dist/table/hooks/usePagination.d.ts +2 -1
  197. package/dist/table/hooks/usePagination.js +6 -3
  198. package/dist/table/util.d.ts +1 -1
  199. package/dist/tabs/index.js +19 -11
  200. package/dist/tag/hooks/useColor.d.ts +1 -1
  201. package/dist/tag/index.d.ts +1 -1
  202. package/dist/tag/index.js +13 -5
  203. package/dist/theme/getDesignToken.js +2 -1
  204. package/dist/theme/index.d.ts +1 -0
  205. package/dist/time-picker/index.d.ts +6 -0
  206. package/dist/time-picker/index.js +11 -1
  207. package/dist/timeline/Timeline.js +16 -10
  208. package/dist/tooltip/PurePanel.js +2 -2
  209. package/dist/tooltip/index.js +3 -6
  210. package/dist/tooltip/style/index.js +1 -0
  211. package/dist/tour/index.js +2 -3
  212. package/dist/tour/panelRender.js +4 -4
  213. package/dist/transfer/Section.js +2 -2
  214. package/dist/tree/DirectoryTree.js +2 -2
  215. package/dist/tree/Tree.js +2 -2
  216. package/dist/tree/style/index.js +6 -1
  217. package/dist/tree/utils/iconUtil.js +1 -1
  218. package/dist/tree-select/index.d.ts +32 -2
  219. package/dist/tree-select/index.js +75 -75
  220. package/dist/upload/Upload.js +2 -2
  221. package/dist/version/token.json +1 -1
  222. package/dist/watermark/useWatermark.d.ts +1 -7
  223. package/dist/watermark/useWatermark.js +1 -7
  224. package/package.json +1 -1
  225. package/web-tags.json +80 -28
  226. package/web-types.json +232 -155
  227. package/dist/date-picker/generatePicker/SuffixIcon.d.ts +0 -12
  228. package/dist/date-picker/generatePicker/SuffixIcon.js +0 -51
  229. package/dist/form/style/fallbackCmp.d.ts +0 -14
  230. package/dist/form/style/fallbackCmp.js +0 -13
@@ -13,7 +13,9 @@ const localeValues = {
13
13
  global: {
14
14
  placeholder: "Vänligen välj",
15
15
  close: "Stäng",
16
- sortable: "sorterbar"
16
+ sortable: "sorterbar",
17
+ show: "Visa",
18
+ hide: "Dölj"
17
19
  },
18
20
  Table: {
19
21
  filterTitle: "Filtermeny",
@@ -13,7 +13,9 @@ const localeValues = {
13
13
  global: {
14
14
  placeholder: "தேதியைத் தேர்ந்தெடுக்கவும்",
15
15
  close: "மூடு",
16
- sortable: "வரிசைப்படுத்தக்கூடிய"
16
+ sortable: "வரிசைப்படுத்தக்கூடிய",
17
+ show: "காட்டு",
18
+ hide: "மறை"
17
19
  },
18
20
  Table: {
19
21
  filterTitle: "பட்டியலை மூடு",
@@ -13,7 +13,9 @@ const localeValues = {
13
13
  global: {
14
14
  placeholder: "กรุณาเลือก",
15
15
  close: "ปิด",
16
- sortable: "จัดเรียงได้"
16
+ sortable: "จัดเรียงได้",
17
+ show: "แสดง",
18
+ hide: "ซ่อน"
17
19
  },
18
20
  Table: {
19
21
  filterTitle: "ตัวกรอง",
@@ -13,7 +13,9 @@ const localeValues = {
13
13
  global: {
14
14
  placeholder: "Saýlaň",
15
15
  close: "Ýagty",
16
- sortable: "tertipli"
16
+ sortable: "tertipli",
17
+ show: "Görkez",
18
+ hide: "Gizle"
17
19
  },
18
20
  Table: {
19
21
  filterTitle: "Filter",
@@ -13,7 +13,9 @@ const localeValues = {
13
13
  global: {
14
14
  placeholder: "Lütfen seçiniz",
15
15
  close: "Kapat",
16
- sortable: "sıralanabilir"
16
+ sortable: "sıralanabilir",
17
+ show: "Göster",
18
+ hide: "Gizle"
17
19
  },
18
20
  Table: {
19
21
  filterTitle: "Filtre menüsü",
@@ -13,7 +13,9 @@ const localeValues = {
13
13
  global: {
14
14
  placeholder: "Будь ласка, оберіть",
15
15
  close: "Закрити",
16
- sortable: "сортувальний"
16
+ sortable: "сортувальний",
17
+ show: "Показати",
18
+ hide: "Приховати"
17
19
  },
18
20
  Table: {
19
21
  filterTitle: "Фільтрувати",
@@ -13,7 +13,9 @@ const localeValues = {
13
13
  global: {
14
14
  placeholder: "منتخب کریں",
15
15
  close: "بند کریں",
16
- sortable: "قابل ترتیب"
16
+ sortable: "قابل ترتیب",
17
+ show: "دکھائیں",
18
+ hide: "چھپائیں"
17
19
  },
18
20
  Table: {
19
21
  filterTitle: "فلٹر مینو",
@@ -13,7 +13,9 @@ const localeValues = {
13
13
  global: {
14
14
  placeholder: "Iltimos tanlang",
15
15
  close: "Yopish",
16
- sortable: "saralanadigan"
16
+ sortable: "saralanadigan",
17
+ show: "Ko'rsat",
18
+ hide: "Yashir"
17
19
  },
18
20
  Table: {
19
21
  filterTitle: "Filtr",
@@ -13,7 +13,9 @@ const localeValues = {
13
13
  global: {
14
14
  placeholder: "Vui lòng chọn",
15
15
  close: "Đóng",
16
- sortable: "có thể sắp xếp được"
16
+ sortable: "có thể sắp xếp được",
17
+ show: "Hiển thị",
18
+ hide: "Ẩn"
17
19
  },
18
20
  Table: {
19
21
  filterTitle: "Bộ lọc",
@@ -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 */
@@ -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,
@@ -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");
@@ -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.1";
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" },
@@ -10,7 +10,7 @@ import { computed, createVNode, defineComponent, mergeDefaults, mergeProps, shal
10
10
  import { clsx } from "@v-c/util";
11
11
  import { removeUndefined } from "@v-c/util/dist/props-util";
12
12
  import { ExclamationCircleFilled } from "@antdv-next/icons";
13
- import { omit } from "es-toolkit";
13
+ import { omit as omit$1 } from "es-toolkit";
14
14
  //#region src/popconfirm/index.tsx
15
15
  const OMITTED_PROP_KEYS = [
16
16
  "title",
@@ -88,7 +88,7 @@ const Popconfirm = /* @__PURE__ */ defineComponent((props, { slots, attrs, expos
88
88
  const iconNode = cloneIfVNode(getSlotPropsFnRun(slots, props, "icon") ?? defaultIcon);
89
89
  const okTextNode = getSlotPropsFnRun(slots, props, "okText");
90
90
  const cancelTextNode = getSlotPropsFnRun(slots, props, "cancelText");
91
- const restProps = omit(props, OMITTED_PROP_KEYS);
91
+ const restProps = omit$1(props, OMITTED_PROP_KEYS);
92
92
  const content = createVNode(Overlay, {
93
93
  "prefixCls": prefixCls.value,
94
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;
@@ -9,7 +9,7 @@ import QRcodeStatus from "./QrcodeStatus.js";
9
9
  import style_default from "./style/index.js";
10
10
  import { computed, createVNode, defineComponent, getCurrentInstance, mergeDefaults, mergeProps, shallowRef } from "vue";
11
11
  import { classNames } from "@v-c/util";
12
- import { omit } from "es-toolkit";
12
+ import { omit as omit$1 } from "es-toolkit";
13
13
  import pickAttrs from "@v-c/util/dist/pickAttrs";
14
14
  import { QRCodeCanvas, QRCodeSVG } from "@v-c/qrcode";
15
15
  //#region src/qrcode/index.tsx
@@ -45,7 +45,7 @@ const QRCode = /* @__PURE__ */ defineComponent((props, { emit, attrs, slots, exp
45
45
  const statusRender = slots?.statusRender ?? props?.statusRender;
46
46
  const hasRefreshListener = !!instance?.vnode?.props?.onRefresh;
47
47
  const a11yProps = pickAttrs(attrs, true);
48
- const restProps = omit(attrs, Object.keys(a11yProps));
48
+ const restProps = omit$1(attrs, Object.keys(a11yProps));
49
49
  const style = attrs.style;
50
50
  const cls = attrs.class;
51
51
  const qrCodeProps = {
@@ -39,10 +39,6 @@ const genQRCodeStyle = (token) => {
39
39
  alignSelf: "stretch",
40
40
  flex: "auto",
41
41
  minWidth: 0
42
- },
43
- "&-icon": {
44
- marginBlockEnd: token.marginXS,
45
- fontSize: token.controlHeight
46
42
  }
47
43
  },
48
44
  [`${componentCls}-borderless`]: {
@@ -14,7 +14,7 @@ import style_default from "./style/index.js";
14
14
  import { computed, createVNode, defineComponent, mergeProps, shallowRef, toRef } from "vue";
15
15
  import { clsx } from "@v-c/util";
16
16
  import { filterEmpty } from "@v-c/util/dist/props-util";
17
- import { omit } from "es-toolkit";
17
+ import { omit as omit$1 } from "es-toolkit";
18
18
  import VcCheckbox from "@v-c/checkbox";
19
19
  //#region src/radio/radio.tsx
20
20
  const InternalRadio = /* @__PURE__ */ defineComponent((props, { slots, expose, attrs, emit }) => {
@@ -35,7 +35,7 @@ const InternalRadio = /* @__PURE__ */ defineComponent((props, { slots, expose, a
35
35
  const [hashId, cssVarCls] = style_default(radioPrefixCls, rootCls);
36
36
  const disabled = useDisabledContext();
37
37
  const radioProps = computed(() => {
38
- const _radioProps = { ...omit(props, [
38
+ const _radioProps = { ...omit$1(props, [
39
39
  "prefixCls",
40
40
  "classes",
41
41
  "styles",
@@ -7,7 +7,7 @@ import style_default from "./style/index.js";
7
7
  import { createVNode, defineComponent, isVNode, mergeDefaults, mergeProps, shallowRef } from "vue";
8
8
  import { clsx } from "@v-c/util";
9
9
  import { StarFilled } from "@antdv-next/icons";
10
- import { omit } from "es-toolkit";
10
+ import { omit as omit$1 } from "es-toolkit";
11
11
  import VcRate from "@v-c/rate";
12
12
  //#region src/rate/index.tsx
13
13
  function _isSlot(s) {
@@ -47,7 +47,7 @@ const Rate = /* @__PURE__ */ defineComponent((props, { attrs, emit, expose }) =>
47
47
  "character": character,
48
48
  "disabled": mergedDisabled,
49
49
  "characterRender": characterRender
50
- }, restAttrs, omit(restProps, ["characterRender", "size"]), {
50
+ }, restAttrs, omit$1(restProps, ["characterRender", "size"]), {
51
51
  "class": clsx({
52
52
  [`${ratePrefixCls.value}-large`]: mergedSize.value === "large",
53
53
  [`${ratePrefixCls.value}-small`]: mergedSize.value === "small"