antdv-next 1.5.6 → 1.7.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 (360) hide show
  1. package/dist/_util/ContextIsolator.js +12 -3
  2. package/dist/_util/PurePanel.js +17 -14
  3. package/dist/_util/fallbackProp.d.ts +13 -0
  4. package/dist/_util/fallbackProp.js +15 -0
  5. package/dist/_util/hooks/useAllowClear.d.ts +35 -0
  6. package/dist/_util/hooks/useAllowClear.js +34 -0
  7. package/dist/_util/hooks/useClosable.js +1 -1
  8. package/dist/_util/hooks/useMergeSemantic.js +3 -2
  9. package/dist/_util/omitUndefined.d.ts +13 -0
  10. package/dist/_util/omitUndefined.js +20 -0
  11. package/dist/_util/tools.d.ts +3 -1
  12. package/dist/_util/tools.js +6 -1
  13. package/dist/_util/wave/index.js +4 -2
  14. package/dist/_util/wave/style.d.ts +5 -1
  15. package/dist/_util/wave/useWave.d.ts +2 -1
  16. package/dist/_util/wave/useWave.js +4 -3
  17. package/dist/affix/style/index.d.ts +5 -1
  18. package/dist/alert/Alert.d.ts +6 -2
  19. package/dist/alert/Alert.js +135 -129
  20. package/dist/alert/style/index.d.ts +7 -4
  21. package/dist/alert/style/index.js +12 -9
  22. package/dist/anchor/style/index.d.ts +5 -1
  23. package/dist/antd-with-locales.esm.js +21947 -18522
  24. package/dist/antd-with-locales.js +82 -82
  25. package/dist/antd.css +1 -1
  26. package/dist/antd.esm.js +19553 -16771
  27. package/dist/antd.js +82 -82
  28. package/dist/app/style/index.d.ts +5 -1
  29. package/dist/auto-complete/index.js +1 -0
  30. package/dist/avatar/Avatar.js +2 -4
  31. package/dist/avatar/AvatarContext.d.ts +2 -2
  32. package/dist/avatar/style/index.d.ts +5 -1
  33. package/dist/badge/index.js +1 -1
  34. package/dist/badge/style/index.d.ts +5 -1
  35. package/dist/badge/style/index.js +2 -9
  36. package/dist/badge/style/ribbon.d.ts +5 -1
  37. package/dist/border-beam/BorderBeam.d.ts +8 -1
  38. package/dist/border-beam/BorderBeam.js +28 -14
  39. package/dist/border-beam/index.d.ts +2 -2
  40. package/dist/border-beam/style/index.d.ts +5 -1
  41. package/dist/breadcrumb/BreadcrumbItem.js +2 -2
  42. package/dist/breadcrumb/style/index.d.ts +5 -1
  43. package/dist/button/style/index.d.ts +5 -1
  44. package/dist/calendar/style/index.d.ts +4 -1
  45. package/dist/card/Card.js +1 -1
  46. package/dist/card/style/index.d.ts +5 -1
  47. package/dist/card/style/index.js +2 -2
  48. package/dist/carousel/index.js +1 -1
  49. package/dist/carousel/style/index.d.ts +5 -1
  50. package/dist/carousel/style/index.js +1 -1
  51. package/dist/cascader/Panel.js +3 -3
  52. package/dist/cascader/index.js +14 -6
  53. package/dist/cascader/style/index.d.ts +5 -1
  54. package/dist/cascader/style/panel.d.ts +5 -1
  55. package/dist/checkbox/Checkbox.js +6 -4
  56. package/dist/checkbox/Group.d.ts +19 -1
  57. package/dist/checkbox/Group.js +34 -5
  58. package/dist/checkbox/GroupContext.d.ts +3 -0
  59. package/dist/checkbox/index.d.ts +2 -2
  60. package/dist/checkbox/style/index.d.ts +4 -1
  61. package/dist/collapse/style/index.d.ts +4 -1
  62. package/dist/color-picker/ColorPicker.js +8 -12
  63. package/dist/color-picker/style/index.d.ts +5 -1
  64. package/dist/color-picker/style/input.js +1 -1
  65. package/dist/components.d.ts +1 -1
  66. package/dist/config-provider/context.d.ts +16 -21
  67. package/dist/config-provider/context.js +32 -38
  68. package/dist/config-provider/define.d.ts +3 -1
  69. package/dist/config-provider/hooks/useCSSVarCls.d.ts +3 -0
  70. package/dist/config-provider/hooks/useCSSVarCls.js +4 -3
  71. package/dist/config-provider/index.d.ts +2 -2
  72. package/dist/config-provider/index.js +24 -1
  73. package/dist/date-picker/generatePicker/generateRangePicker.js +29 -4
  74. package/dist/date-picker/generatePicker/generateSinglePicker.js +32 -6
  75. package/dist/date-picker/generatePicker/interface.d.ts +4 -0
  76. package/dist/date-picker/generatePicker/useComponents.d.ts +3 -3
  77. package/dist/date-picker/style/index.d.ts +5 -1
  78. package/dist/date-picker/style/panel.js +1 -1
  79. package/dist/date-picker/style/util.js +1 -1
  80. package/dist/date-picker/util.d.ts +10 -12
  81. package/dist/date-picker/util.js +14 -7
  82. package/dist/descriptions/Cell.js +80 -75
  83. package/dist/descriptions/Row.js +14 -11
  84. package/dist/descriptions/hooks/useItems.d.ts +10 -10
  85. package/dist/descriptions/style/index.d.ts +5 -1
  86. package/dist/descriptions/style/index.js +11 -13
  87. package/dist/divider/style/index.d.ts +5 -1
  88. package/dist/divider/style/index.js +1 -1
  89. package/dist/drawer/DrawerPanel.js +7 -7
  90. package/dist/drawer/index.d.ts +0 -2
  91. package/dist/drawer/index.js +0 -1
  92. package/dist/drawer/style/index.d.ts +5 -1
  93. package/dist/dropdown/dropdown.d.ts +2 -0
  94. package/dist/dropdown/dropdown.js +11 -3
  95. package/dist/dropdown/style/index.d.ts +5 -1
  96. package/dist/dropdown/style/index.js +1 -1
  97. package/dist/empty/style/index.d.ts +5 -1
  98. package/dist/flex/index.js +1 -1
  99. package/dist/flex/style/index.d.ts +5 -1
  100. package/dist/float-button/FloatButtonGroup.js +1 -1
  101. package/dist/float-button/style/index.d.ts +5 -1
  102. package/dist/form/ErrorList.js +1 -1
  103. package/dist/form/Form.js +1 -1
  104. package/dist/form/FormItem/ItemHolder.js +1 -1
  105. package/dist/form/FormItem/index.js +38 -18
  106. package/dist/form/FormItemInput.js +1 -1
  107. package/dist/form/FormItemLabel.js +1 -1
  108. package/dist/form/context.d.ts +1 -1
  109. package/dist/form/hooks/useVariant.d.ts +1 -1
  110. package/dist/form/hooks/useVariant.js +1 -1
  111. package/dist/form/style/index.d.ts +5 -1
  112. package/dist/grid/style/index.d.ts +5 -2
  113. package/dist/image/hooks/useMergedPreviewConfig.d.ts +1 -0
  114. package/dist/image/hooks/useMergedPreviewConfig.js +2 -1
  115. package/dist/image/hooks/usePreviewConfig.d.ts +9 -9
  116. package/dist/image/style/index.d.ts +4 -1
  117. package/dist/index.d.ts +1 -1
  118. package/dist/input/Group.js +1 -1
  119. package/dist/input/Input.d.ts +2 -1
  120. package/dist/input/Input.js +8 -5
  121. package/dist/input/OTP/OTPInput.d.ts +2 -1
  122. package/dist/input/OTP/OTPInput.js +12 -3
  123. package/dist/input/OTP/index.d.ts +3 -1
  124. package/dist/input/OTP/index.js +15 -6
  125. package/dist/input/Password.js +7 -5
  126. package/dist/input/Search.js +4 -2
  127. package/dist/input/TextArea.d.ts +3 -1
  128. package/dist/input/TextArea.js +13 -8
  129. package/dist/input/style/index.d.ts +5 -2
  130. package/dist/input/style/index.js +1 -1
  131. package/dist/input/style/otp.d.ts +5 -1
  132. package/dist/input/style/search.d.ts +5 -1
  133. package/dist/input/style/textarea.d.ts +5 -1
  134. package/dist/input-number/index.d.ts +3 -6
  135. package/dist/input-number/index.js +8 -3
  136. package/dist/input-number/style/index.d.ts +5 -1
  137. package/dist/input-number/style/index.js +1 -5
  138. package/dist/layout/style/index.d.ts +5 -1
  139. package/dist/layout/style/sider.d.ts +5 -1
  140. package/dist/listy/index.d.ts +1 -1
  141. package/dist/listy/index.js +9 -7
  142. package/dist/listy/interface.d.ts +6 -1
  143. package/dist/listy/style/index.d.ts +5 -1
  144. package/dist/listy/style/index.js +4 -2
  145. package/dist/locale/ar_EG.js +9 -0
  146. package/dist/locale/az_AZ.js +9 -0
  147. package/dist/locale/bg_BG.js +9 -0
  148. package/dist/locale/bn_BD.js +9 -0
  149. package/dist/locale/by_BY.js +9 -0
  150. package/dist/locale/ca_ES.js +9 -0
  151. package/dist/locale/cs_CZ.js +9 -0
  152. package/dist/locale/da_DK.js +9 -0
  153. package/dist/locale/de_DE.js +9 -0
  154. package/dist/locale/el_GR.js +9 -0
  155. package/dist/locale/en_GB.js +11 -1
  156. package/dist/locale/en_US.js +11 -1
  157. package/dist/locale/es_ES.js +9 -0
  158. package/dist/locale/et_EE.js +9 -0
  159. package/dist/locale/eu_ES.js +9 -0
  160. package/dist/locale/fa_IR.js +9 -0
  161. package/dist/locale/fi_FI.js +10 -1
  162. package/dist/locale/fr_BE.js +9 -0
  163. package/dist/locale/fr_CA.js +9 -0
  164. package/dist/locale/fr_FR.js +9 -0
  165. package/dist/locale/ga_IE.js +9 -0
  166. package/dist/locale/gl_ES.js +9 -0
  167. package/dist/locale/he_IL.js +9 -0
  168. package/dist/locale/hi_IN.js +9 -0
  169. package/dist/locale/hr_HR.js +9 -0
  170. package/dist/locale/hu_HU.js +9 -0
  171. package/dist/locale/hy_AM.js +9 -0
  172. package/dist/locale/id_ID.js +9 -0
  173. package/dist/locale/index.d.ts +3 -0
  174. package/dist/locale/is_IS.js +9 -0
  175. package/dist/locale/it_IT.js +9 -0
  176. package/dist/locale/ja_JP.js +9 -0
  177. package/dist/locale/ka_GE.js +9 -0
  178. package/dist/locale/kk_KZ.js +9 -0
  179. package/dist/locale/km_KH.js +9 -0
  180. package/dist/locale/kmr_IQ.js +9 -0
  181. package/dist/locale/kn_IN.js +9 -0
  182. package/dist/locale/ko_KR.js +9 -0
  183. package/dist/locale/ku_IQ.js +9 -0
  184. package/dist/locale/lt_LT.js +9 -0
  185. package/dist/locale/lv_LV.js +9 -0
  186. package/dist/locale/mk_MK.js +9 -0
  187. package/dist/locale/ml_IN.js +9 -0
  188. package/dist/locale/mn_MN.js +9 -0
  189. package/dist/locale/mr_IN.js +9 -0
  190. package/dist/locale/ms_MY.js +9 -0
  191. package/dist/locale/my_MM.js +9 -0
  192. package/dist/locale/nb_NO.js +9 -0
  193. package/dist/locale/ne_NP.js +9 -0
  194. package/dist/locale/nl_BE.js +9 -0
  195. package/dist/locale/nl_NL.js +9 -0
  196. package/dist/locale/pl_PL.js +9 -0
  197. package/dist/locale/pt_BR.js +9 -0
  198. package/dist/locale/pt_PT.js +9 -0
  199. package/dist/locale/ro_RO.js +19 -10
  200. package/dist/locale/ru_RU.js +9 -0
  201. package/dist/locale/si_LK.js +9 -0
  202. package/dist/locale/sk_SK.js +9 -0
  203. package/dist/locale/sl_SI.js +9 -0
  204. package/dist/locale/sq_AL.js +9 -0
  205. package/dist/locale/sr_RS.js +9 -0
  206. package/dist/locale/sv_SE.js +9 -0
  207. package/dist/locale/ta_IN.js +10 -1
  208. package/dist/locale/th_TH.js +9 -0
  209. package/dist/locale/tk_TK.js +9 -0
  210. package/dist/locale/tr_TR.js +9 -0
  211. package/dist/locale/uk_UA.js +9 -0
  212. package/dist/locale/ur_PK.js +9 -0
  213. package/dist/locale/useLocale.d.ts +7 -2
  214. package/dist/locale/useLocale.js +12 -1
  215. package/dist/locale/uz_UZ.js +9 -0
  216. package/dist/locale/vi_VN.js +9 -0
  217. package/dist/locale/zh_CN.js +13 -3
  218. package/dist/locale/zh_HK.js +11 -1
  219. package/dist/locale/zh_TW.js +11 -1
  220. package/dist/masonry/Masonry.js +1 -1
  221. package/dist/masonry/style/index.d.ts +4 -1
  222. package/dist/mentions/index.d.ts +2 -3
  223. package/dist/mentions/index.js +10 -5
  224. package/dist/mentions/style/index.d.ts +5 -1
  225. package/dist/mentions/style/index.js +1 -1
  226. package/dist/menu/MenuContext.d.ts +2 -0
  227. package/dist/menu/MenuItem.js +25 -7
  228. package/dist/menu/index.js +5 -0
  229. package/dist/menu/menu.d.ts +3 -0
  230. package/dist/menu/menu.js +7 -0
  231. package/dist/message/style/index.d.ts +5 -1
  232. package/dist/modal/ConfirmDialog.js +14 -7
  233. package/dist/modal/style/index.d.ts +3 -1
  234. package/dist/notification/PurePanel.js +7 -12
  235. package/dist/notification/interface.d.ts +8 -0
  236. package/dist/notification/style/index.d.ts +4 -1
  237. package/dist/notification/style/index.js +1 -1
  238. package/dist/notification/style/placement.js +10 -7
  239. package/dist/notification/useNotification.js +5 -15
  240. package/dist/package.js +1 -1
  241. package/dist/pagination/Pagination.js +2 -2
  242. package/dist/pagination/style/index.d.ts +5 -1
  243. package/dist/pagination/useShowSizeChanger.d.ts +3 -0
  244. package/dist/pagination/useShowSizeChanger.js +1 -1
  245. package/dist/popconfirm/index.js +5 -5
  246. package/dist/popconfirm/style/index.d.ts +5 -1
  247. package/dist/popconfirm/style/index.js +1 -1
  248. package/dist/popover/index.js +5 -4
  249. package/dist/popover/style/index.d.ts +5 -1
  250. package/dist/popover/style/index.js +2 -2
  251. package/dist/progress/Circle.js +0 -8
  252. package/dist/progress/Line.js +1 -9
  253. package/dist/progress/Steps.js +0 -8
  254. package/dist/progress/progress.js +2 -14
  255. package/dist/progress/style/index.d.ts +5 -1
  256. package/dist/qrcode/index.js +4 -25
  257. package/dist/qrcode/interface.d.ts +1 -1
  258. package/dist/qrcode/style/index.d.ts +5 -1
  259. package/dist/radio/group.js +40 -7
  260. package/dist/radio/index.d.ts +2 -2
  261. package/dist/radio/interface.d.ts +19 -1
  262. package/dist/radio/radio.js +5 -3
  263. package/dist/radio/style/index.d.ts +5 -1
  264. package/dist/rate/style/index.d.ts +5 -1
  265. package/dist/result/index.js +3 -3
  266. package/dist/result/noFound.js +120 -140
  267. package/dist/result/serverError.js +132 -147
  268. package/dist/result/style/index.d.ts +5 -1
  269. package/dist/result/unauthorized.js +115 -129
  270. package/dist/segmented/index.js +1 -1
  271. package/dist/segmented/style/index.d.ts +5 -1
  272. package/dist/select/index.js +12 -5
  273. package/dist/select/style/dropdown.js +1 -1
  274. package/dist/select/style/index.d.ts +5 -1
  275. package/dist/select/style/index.js +2 -2
  276. package/dist/select/style/select-input-multiple.js +1 -1
  277. package/dist/select/usePopupRender.js +4 -1
  278. package/dist/skeleton/style/index.d.ts +5 -1
  279. package/dist/slider/index.d.ts +0 -3
  280. package/dist/slider/index.js +2 -2
  281. package/dist/slider/style/index.d.ts +5 -1
  282. package/dist/space/Compact.d.ts +1 -1
  283. package/dist/space/style/addon.d.ts +5 -1
  284. package/dist/space/style/compact.d.ts +5 -1
  285. package/dist/space/style/index.d.ts +5 -1
  286. package/dist/spin/style/index.d.ts +5 -1
  287. package/dist/splitter/SplitBar.js +9 -3
  288. package/dist/splitter/interface.d.ts +5 -1
  289. package/dist/splitter/style/index.d.ts +5 -1
  290. package/dist/statistic/style/index.d.ts +5 -1
  291. package/dist/steps/style/index.d.ts +5 -1
  292. package/dist/steps/style/index.js +1 -1
  293. package/dist/steps/style/inline.js +1 -1
  294. package/dist/style/motion/collapse.js +4 -10
  295. package/dist/switch/style/index.d.ts +5 -1
  296. package/dist/table/ExpandIcon.d.ts +9 -4
  297. package/dist/table/ExpandIcon.js +42 -20
  298. package/dist/table/InternalTable.js +72 -62
  299. package/dist/table/hooks/useLazyKVMap.js +1 -1
  300. package/dist/table/hooks/useSelection.js +73 -15
  301. package/dist/table/interface.d.ts +8 -0
  302. package/dist/table/style/index.d.ts +5 -1
  303. package/dist/table/style/index.js +1 -1
  304. package/dist/table/style/selection.js +1 -1
  305. package/dist/table/style/sorter.js +2 -2
  306. package/dist/table/util.d.ts +1 -1
  307. package/dist/tabs/index.js +9 -2
  308. package/dist/tabs/style/index.d.ts +5 -1
  309. package/dist/tabs/style/index.js +1 -1
  310. package/dist/tag/CheckableTagGroup.d.ts +2 -2
  311. package/dist/tag/hooks/useColor.d.ts +1 -1
  312. package/dist/tag/style/index.d.ts +5 -1
  313. package/dist/theme/context.js +2 -1
  314. package/dist/theme/useToken.d.ts +6 -2
  315. package/dist/theme/useToken.js +46 -14
  316. package/dist/theme/util/genStyleUtils.d.ts +13 -3
  317. package/dist/theme/util/genStyleUtils.js +42 -28
  318. package/dist/time-picker/index.js +34 -0
  319. package/dist/timeline/Timeline.js +1 -1
  320. package/dist/timeline/style/index.d.ts +5 -1
  321. package/dist/timeline/useItems.d.ts +2 -2
  322. package/dist/timeline/useItems.js +1 -1
  323. package/dist/tooltip/index.js +1 -1
  324. package/dist/tooltip/style/index.d.ts +2 -2
  325. package/dist/tooltip/style/index.js +1 -1
  326. package/dist/tour/panelRender.js +3 -2
  327. package/dist/tour/style/index.d.ts +5 -1
  328. package/dist/transfer/Section.js +2 -1
  329. package/dist/transfer/Transfer.js +3 -1
  330. package/dist/transfer/style/index.d.ts +5 -1
  331. package/dist/tree/DirectoryTree.js +1 -1
  332. package/dist/tree/style/index.d.ts +4 -1
  333. package/dist/tree/style/index.js +1 -1
  334. package/dist/tree-select/index.js +15 -9
  335. package/dist/tree-select/style/index.d.ts +2 -2
  336. package/dist/typography/Base/index.js +23 -2
  337. package/dist/typography/Link.js +5 -0
  338. package/dist/typography/Paragraph.js +5 -0
  339. package/dist/typography/Text.js +5 -0
  340. package/dist/typography/Title.js +5 -0
  341. package/dist/typography/hooks/useMergedConfig.js +1 -1
  342. package/dist/typography/interface.d.ts +8 -1
  343. package/dist/typography/style/index.d.ts +5 -1
  344. package/dist/typography/style/index.js +2 -1
  345. package/dist/typography/style/mixins.d.ts +2 -1
  346. package/dist/typography/style/mixins.js +26 -3
  347. package/dist/upload/Upload.d.ts +1 -0
  348. package/dist/upload/Upload.js +10 -3
  349. package/dist/upload/UploadList/ListItem.js +8 -3
  350. package/dist/upload/interface.d.ts +1 -0
  351. package/dist/upload/style/index.d.ts +5 -1
  352. package/dist/version/token-meta.json +1 -1
  353. package/dist/version/token.json +1 -1
  354. package/dist/watermark/index.js +1 -1
  355. package/global.d.ts +5 -0
  356. package/package.json +17 -17
  357. package/web-tags.json +5053 -3004
  358. package/web-types.json +13207 -7299
  359. package/dist/_util/getAllowClear.d.ts +0 -6
  360. package/dist/_util/getAllowClear.js +0 -11
@@ -1,8 +1,12 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
1
4
  import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
5
+ import "../../theme/interface/index.js";
2
6
  import "../../theme/internal.js";
3
7
  //#region src/app/style/index.d.ts
4
8
  interface ComponentToken {}
5
9
  declare const prepareComponentToken: GetDefaultToken<'App'>;
6
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
10
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
7
11
  //#endregion
8
12
  export { ComponentToken, _default as default, prepareComponentToken };
@@ -128,6 +128,7 @@ const InternalAutoComplete = /* @__PURE__ */ defineComponent((props, { slots, em
128
128
  }
129
129
  };
130
130
  const selectProps = omit(props, omitKeys);
131
+ selectProps.allowClear = props.allowClear ?? false;
131
132
  if (selectProps.placeholder === void 0 && customizeInputPlaceholder !== void 0) selectProps.placeholder = customizeInputPlaceholder;
132
133
  return createVNode(Select, mergeProps(forwardedAttrs, selectProps, {
133
134
  onSelect: (value, option) => {
@@ -5,7 +5,7 @@ import { getAttrStyleAndClass } from "../_util/hooks/useMergeSemantic.js";
5
5
  import { getSlotPropsFnRun } from "../_util/tools.js";
6
6
  import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
7
7
  import { isRenderable } from "../_util/is.js";
8
- import { responsiveArray } from "../_util/responsiveObserver.js";
8
+ import { matchScreen, responsiveArray } from "../_util/responsiveObserver.js";
9
9
  import useBreakpoint from "../grid/hooks/useBreakpoint.js";
10
10
  import { useAvatarContext } from "./AvatarContext.js";
11
11
  import style_default from "./style/index.js";
@@ -62,8 +62,7 @@ const Avatar = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit, exp
62
62
  const { shape, rootClass, draggable, srcSet, crossOrigin, alt } = props;
63
63
  const responsiveSizeStyleFn = () => {
64
64
  if (typeof size.value !== "object") return {};
65
- const currentBreakpoint = responsiveArray.find((screen) => screens.value[screen]);
66
- const currentSize = size.value[currentBreakpoint] || size.value;
65
+ const currentSize = matchScreen(screens.value ?? {}, size.value);
67
66
  return currentSize ? {
68
67
  width: `${currentSize}px`,
69
68
  height: `${currentSize}px`,
@@ -102,7 +101,6 @@ const Avatar = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit, exp
102
101
  else if (mounted.value || scale.value !== 1) {
103
102
  const transformString = `scale(${scale.value})`;
104
103
  const childrenStyle = {
105
- msTransform: transformString,
106
104
  WebkitTransform: transformString,
107
105
  transform: transformString
108
106
  };
@@ -11,7 +11,7 @@ interface AvatarContextType {
11
11
  shape?: 'circle' | 'square';
12
12
  }
13
13
  declare function useAvatarContext(): Ref<{
14
- size?: number | "default" | SizeType | {
14
+ size?: number | SizeType | "default" | {
15
15
  xxxl?: number | undefined;
16
16
  xxl?: number | undefined;
17
17
  xl?: number | undefined;
@@ -22,7 +22,7 @@ declare function useAvatarContext(): Ref<{
22
22
  };
23
23
  shape?: "circle" | "square" | undefined;
24
24
  }, AvatarContextType | {
25
- size?: number | "default" | SizeType | {
25
+ size?: number | SizeType | "default" | {
26
26
  xxxl?: number | undefined;
27
27
  xxl?: number | undefined;
28
28
  xl?: number | undefined;
@@ -1,4 +1,8 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
1
4
  import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
5
+ import "../../theme/interface/index.js";
2
6
  import "../../theme/internal.js";
3
7
  //#region src/avatar/style/index.d.ts
4
8
  interface ComponentToken {
@@ -64,6 +68,6 @@ interface ComponentToken {
64
68
  groupBorderColor: string;
65
69
  }
66
70
  declare const prepareComponentToken: GetDefaultToken<'Avatar'>;
67
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
71
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
68
72
  //#endregion
69
73
  export { ComponentToken, _default as default, prepareComponentToken };
@@ -65,7 +65,7 @@ const InternalBadge = /* @__PURE__ */ defineComponent((props, { slots, attrs, ex
65
65
  const childrenNodes = computed(() => filterEmpty(slots.default?.() ?? []));
66
66
  const hasTextSlot = computed(() => textNodes.value.length > 0);
67
67
  const showStatusTextNode = computed(() => !isHidden.value && (hasTextSlot.value || (props.text === 0 ? props.showZero : !!props.text && props.text !== true)));
68
- const isStatusBadge = computed(() => Boolean(!childrenNodes.value.length && hasStatus.value && (hasTextSlot.value || !!props.text || hasStatusValue.value || !ignoreCount.value)));
68
+ const isStatusBadge = computed(() => Boolean(!childrenNodes.value.length && hasStatus.value && (hasTextSlot.value || !!props.text || hasStatusValue.value)));
69
69
  const offsetStyle = computed(() => {
70
70
  if (!props.offset) return;
71
71
  const horizontalOffset = Number.parseFloat(props.offset[0]);
@@ -1,4 +1,8 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
1
4
  import { FullToken, GenStyleFn, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
5
+ import "../../theme/interface/index.js";
2
6
  import "../../theme/internal.js";
3
7
  //#region src/badge/style/index.d.ts
4
8
  /** Component only token. Which will handle additional calculation of alias token */
@@ -107,6 +111,6 @@ interface BadgeToken extends FullToken<'Badge'> {
107
111
  }
108
112
  declare function prepareToken(token: Parameters<GenStyleFn<'Badge'>>[0]): BadgeToken;
109
113
  declare const prepareComponentToken: GetDefaultToken<'Badge'>;
110
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
114
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
111
115
  //#endregion
112
116
  export { BadgeToken, ComponentToken, _default as default, prepareComponentToken, prepareToken };
@@ -202,15 +202,8 @@ const genSharedBadgeStyle = (token) => {
202
202
  height: indicatorHeight,
203
203
  transition: `all ${token.motionDurationSlow} ${token.motionEaseOutBack}`,
204
204
  WebkitTransformStyle: "preserve-3d",
205
- WebkitBackfaceVisibility: "hidden",
206
- [`> p${numberPrefixCls}-only-unit`]: {
207
- height: indicatorHeight,
208
- margin: 0,
209
- WebkitTransformStyle: "preserve-3d",
210
- WebkitBackfaceVisibility: "hidden"
211
- }
212
- },
213
- [`${numberPrefixCls}-symbol`]: { verticalAlign: "top" }
205
+ WebkitBackfaceVisibility: "hidden"
206
+ }
214
207
  },
215
208
  "&-rtl": {
216
209
  direction: "rtl",
@@ -1,4 +1,8 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
4
+ import "../../theme/interface/index.js";
1
5
  //#region src/badge/style/ribbon.d.ts
2
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
6
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
3
7
  //#endregion
4
8
  export { _default as default };
@@ -1,12 +1,19 @@
1
1
  import { BorderBeamColor, BorderBeamGradient } from "./util.js";
2
2
  import { SlotsType } from "vue";
3
3
  //#region src/border-beam/BorderBeam.d.ts
4
+ interface BorderBeamItem {
5
+ color?: BorderBeamColor;
6
+ lineWidth?: number | string;
7
+ outset?: number | string;
8
+ size?: number | string;
9
+ }
4
10
  interface BorderBeamProps {
5
11
  prefixCls?: string;
6
12
  rootClass?: string;
7
13
  color?: BorderBeamColor;
8
14
  count?: number;
9
15
  duration?: number;
16
+ items?: BorderBeamItem[];
10
17
  lineWidth?: number | string;
11
18
  outset?: number | string;
12
19
  size?: number | string;
@@ -18,4 +25,4 @@ declare const BorderBeam: import("vue").DefineSetupFnComponent<BorderBeamProps,
18
25
  [x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
19
26
  }, import("vue").PublicProps>;
20
27
  //#endregion
21
- export { type BorderBeamColor, type BorderBeamGradient, BorderBeamProps, BorderBeamSlots, BorderBeam as default };
28
+ export { type BorderBeamColor, type BorderBeamGradient, BorderBeamItem, BorderBeamProps, BorderBeamSlots, BorderBeam as default };
@@ -1,3 +1,4 @@
1
+ import { devUseWarning, isDev } from "../_util/warning.js";
1
2
  import { useComponentBaseConfig } from "../config-provider/context.js";
2
3
  import { genCssVar } from "../theme/util/genStyleUtils.js";
3
4
  import { isNonNullable, isNumber } from "../_util/is.js";
@@ -26,8 +27,8 @@ const BorderBeam = /* @__PURE__ */ defineComponent((props, { attrs, slots }) =>
26
27
  const borderWidth = useBorderSize(hostDom);
27
28
  const beamGradient = computed(() => getBorderBeamGradient(props.color));
28
29
  const mergedCount = computed(() => {
29
- const { count = 1 } = props;
30
- return isNumber(count) && Number.isFinite(count) && count >= 1 ? Math.floor(count) : 1;
30
+ const { count, items } = props;
31
+ return items?.length ?? (isNumber(count) && Number.isFinite(count) && count >= 1 ? Math.floor(count) : 1);
31
32
  });
32
33
  const mergedDuration = computed(() => {
33
34
  const { duration } = props;
@@ -43,22 +44,31 @@ const BorderBeam = /* @__PURE__ */ defineComponent((props, { attrs, slots }) =>
43
44
  };
44
45
  return () => {
45
46
  let _slot;
46
- const { duration, lineWidth, size } = props;
47
+ const { duration, lineWidth, size, items } = props;
47
48
  const children = filterEmpty(slots.default?.() ?? []);
48
49
  const count = mergedCount.value;
49
- const getBeamStyle = (index) => ({
50
- ...contextStyle?.value ?? {},
51
- ...attrs.style ?? {},
52
- ...beamGradient.value && { [varName.value("beam-gradient")]: beamGradient.value },
53
- ...isNumber(duration) && duration > 0 && { [varName.value("duration")]: `${duration}s` },
54
- ...isNonNullable(lineWidth) && { [varName.value("line-width")]: unit(lineWidth) },
55
- ...isNonNullable(size) && { [varName.value("size")]: unit(size) },
56
- ...index > 0 && { [varName.value("delay")]: `${-mergedDuration.value * index / count}s` },
57
- [varName.value("inset-offset")]: insetOffset.value
58
- });
50
+ if (isDev) devUseWarning("BorderBeam")(!isNonNullable(items) || !isNonNullable(props.count), "usage", "`count` is ignored when `items` is provided.");
51
+ const getBeamStyle = (index) => {
52
+ const item = items?.[index] ?? {};
53
+ const beamPhase = index / count;
54
+ const itemBeamGradient = item.color ? getBorderBeamGradient(item.color) : beamGradient.value;
55
+ const itemLineWidth = item.lineWidth ?? lineWidth;
56
+ const itemSize = item.size ?? size;
57
+ const itemInsetOffset = isNonNullable(item.outset) ? getInset(item.outset) : insetOffset.value;
58
+ return {
59
+ ...contextStyle?.value ?? {},
60
+ ...attrs.style ?? {},
61
+ ...itemBeamGradient && { [varName.value("beam-gradient")]: itemBeamGradient },
62
+ ...isNumber(duration) && duration > 0 && { [varName.value("duration")]: `${duration}s` },
63
+ ...isNonNullable(itemLineWidth) && { [varName.value("line-width")]: unit(itemLineWidth) },
64
+ ...isNonNullable(itemSize) && { [varName.value("size")]: unit(itemSize) },
65
+ ...beamPhase > 0 && { [varName.value("delay")]: `${-mergedDuration.value * beamPhase}s` },
66
+ [varName.value("inset-offset")]: itemInsetOffset
67
+ };
68
+ };
59
69
  const beamCls = clsx(prefixCls.value, contextClassName?.value, props.rootClass, attrs.class, hashId.value, cssVarCls.value);
60
70
  const beamNode = hostDom.value ? createVNode(Teleport, { "to": hostDom.value }, _isSlot(_slot = Array.from({ length: count }, (_, index) => createVNode("div", {
61
- "key": index,
71
+ "key": `${count}-${index / count}`,
62
72
  "aria-hidden": "true",
63
73
  "class": beamCls,
64
74
  "style": getBeamStyle(index)
@@ -92,6 +102,10 @@ const BorderBeam = /* @__PURE__ */ defineComponent((props, { attrs, slots }) =>
92
102
  type: Number,
93
103
  required: false
94
104
  },
105
+ items: {
106
+ type: Array,
107
+ required: false
108
+ },
95
109
  lineWidth: {
96
110
  type: [Number, String],
97
111
  required: false
@@ -1,3 +1,3 @@
1
1
  import { BorderBeamColor, BorderBeamGradient } from "./util.js";
2
- import BorderBeam, { BorderBeamProps } from "./BorderBeam.js";
3
- export { type BorderBeamColor, type BorderBeamGradient, type BorderBeamProps, BorderBeam as default };
2
+ import BorderBeam, { BorderBeamItem, BorderBeamProps } from "./BorderBeam.js";
3
+ export { type BorderBeamColor, type BorderBeamGradient, type BorderBeamItem, type BorderBeamProps, BorderBeam as default };
@@ -1,5 +1,9 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
4
+ import "../../theme/interface/index.js";
1
5
  //#region src/border-beam/style/index.d.ts
2
6
  type ComponentToken = object;
3
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
7
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
4
8
  //#endregion
5
9
  export { ComponentToken, _default as default };
@@ -1,8 +1,8 @@
1
1
  import { useBaseConfig } from "../config-provider/context.js";
2
2
  import { getSlotPropsFnRun } from "../_util/tools.js";
3
3
  import { isRenderable } from "../_util/is.js";
4
- import isNonNullable from "../_util/isNonNullable.js";
5
4
  import { checkRenderNode } from "../_util/vueNode.js";
5
+ import isNonNullable from "../_util/isNonNullable.js";
6
6
  import { useBreadcrumbContext } from "./BreadcrumbContext.js";
7
7
  import Dropdown from "../dropdown/index.js";
8
8
  import BreadcrumbSeparator from "./BreadcrumbSeparator.js";
@@ -32,7 +32,7 @@ const InternalBreadcrumbItem = /* @__PURE__ */ defineComponent((props, { slots }
32
32
  (function() {
33
33
  return mergedLabel;
34
34
  })();
35
- mergedLabel = createVNode("a", { "href": `${href}${path}` }, [mergedLabel]);
35
+ mergedLabel = createVNode("a", { "href": `${href ?? ""}${path}` }, [mergedLabel]);
36
36
  }
37
37
  return {
38
38
  ...itemProps,
@@ -1,4 +1,8 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
1
4
  import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
5
+ import "../../theme/interface/index.js";
2
6
  import "../../theme/internal.js";
3
7
  //#region src/breadcrumb/style/index.d.ts
4
8
  interface ComponentToken {
@@ -39,6 +43,6 @@ interface ComponentToken {
39
43
  separatorColor: string;
40
44
  }
41
45
  declare const prepareComponentToken: GetDefaultToken<'Breadcrumb'>;
42
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
46
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
43
47
  //#endregion
44
48
  export { ComponentToken, _default as default, prepareComponentToken };
@@ -1,5 +1,9 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
1
3
  import { ComponentToken } from "./token.js";
4
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
5
+ import "../../theme/interface/index.js";
2
6
  //#region src/button/style/index.d.ts
3
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
7
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
4
8
  //#endregion
5
9
  export { type ComponentToken, _default as default };
@@ -1,5 +1,8 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
1
3
  import { PanelComponentToken, PickerPanelToken } from "../../date-picker/style/token.js";
2
4
  import "../../date-picker/style/index.js";
5
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
3
6
  import { FullToken, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
4
7
  import { GenerateStyle } from "../../theme/interface/index.js";
5
8
  import "../../theme/internal.js";
@@ -61,6 +64,6 @@ interface CalendarToken extends FullToken<'Calendar'>, PickerPanelToken, PanelCo
61
64
  }
62
65
  declare const genCalendarStyles: GenerateStyle<CalendarToken, CSSObject>;
63
66
  declare const prepareComponentToken: GetDefaultToken<'Calendar'>;
64
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
67
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
65
68
  //#endregion
66
69
  export { ComponentToken, _default as default, genCalendarStyles, prepareComponentToken };
package/dist/card/Card.js CHANGED
@@ -95,7 +95,7 @@ const Card = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs }) =>
95
95
  const hasActiveTabKey = activeTabKey !== void 0;
96
96
  const extraProps = {
97
97
  ...tabProps,
98
- [hasActiveTabKey ? "activeKey" : "defaultActiveKey"]: hasActiveTabKey ? activeTabKey : defaultActiveTabKey,
98
+ [hasActiveTabKey ? "activeKey" : "defaultActiveKey"]: hasActiveTabKey ? activeTabKey : defaultActiveTabKey ?? tabProps?.defaultActiveKey,
99
99
  tabBarExtraContent: getSlotPropsFnRun(slots, props, "tabBarExtraContent")
100
100
  };
101
101
  let head;
@@ -1,4 +1,8 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
1
4
  import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
5
+ import "../../theme/interface/index.js";
2
6
  import "../../theme/internal.js";
3
7
  //#region src/card/style/index.d.ts
4
8
  interface ComponentToken {
@@ -69,6 +73,6 @@ interface ComponentToken {
69
73
  extraColor: string;
70
74
  }
71
75
  declare const prepareComponentToken: GetDefaultToken<'Card'>;
72
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
76
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
73
77
  //#endregion
74
78
  export { ComponentToken, _default as default, prepareComponentToken };
@@ -41,7 +41,7 @@ const genCardHeadStyle = (token) => {
41
41
  clear: "both",
42
42
  marginBottom: tabsMarginBottom,
43
43
  color: token.colorText,
44
- fontWeight: "normal",
44
+ fontWeight: 400,
45
45
  fontSize: token.fontSize,
46
46
  "&-bar": { borderBottom: `${unit(token.lineWidth)} ${token.lineType} ${token.colorBorderSecondary}` }
47
47
  }
@@ -161,7 +161,7 @@ const genCardStyle = (token) => {
161
161
  [`${componentCls}-extra`]: {
162
162
  marginInlineStart: "auto",
163
163
  color: extraColor,
164
- fontWeight: "normal",
164
+ fontWeight: 400,
165
165
  fontSize: token.fontSize
166
166
  },
167
167
  [`${componentCls}-body`]: {
@@ -77,7 +77,7 @@ const Carousel = /* @__PURE__ */ defineComponent((props, { slots, emit, expose,
77
77
  innerSlider: computed(() => slickRef.value?.innerSlider)
78
78
  });
79
79
  const count = shallowRef(0);
80
- const isRTL = computed(() => (props?.rtl ?? direction.value === "rtl") && !props.vertical);
80
+ const isRTL = computed(() => (props?.rtl ?? direction.value === "rtl") && !mergedVertical.value);
81
81
  const syncInitialSlide = () => {
82
82
  const { initialSlide = 0 } = props;
83
83
  if (count.value > 0) {
@@ -1,4 +1,8 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
1
4
  import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
5
+ import "../../theme/interface/index.js";
2
6
  import "../../theme/internal.js";
3
7
  //#region src/carousel/style/index.d.ts
4
8
  interface ComponentToken {
@@ -42,6 +46,6 @@ interface ComponentToken {
42
46
  }
43
47
  declare const DotDuration = "--dot-duration";
44
48
  declare const prepareComponentToken: GetDefaultToken<'Carousel'>;
45
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
49
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
46
50
  //#endregion
47
51
  export { ComponentToken, DotDuration, _default as default, prepareComponentToken };
@@ -275,7 +275,7 @@ const genCarouselVerticalStyle = (token) => {
275
275
  };
276
276
  const genCarouselRtlStyle = (token) => {
277
277
  const { componentCls } = token;
278
- return [{ [`${componentCls}-rtl`]: { direction: "rtl" } }, { [`${componentCls}-vertical`]: { ".slick-dots": { [`${componentCls}-rtl&`]: { flexDirection: "column" } } } }];
278
+ return [{ [`${componentCls}-rtl`]: { direction: "rtl" } }];
279
279
  };
280
280
  const prepareComponentToken = (token) => {
281
281
  const dotActiveWidth = 24;
@@ -1,6 +1,6 @@
1
1
  import { useComponentBaseConfig } from "../config-provider/context.js";
2
2
  import { getAttrStyleAndClass } from "../_util/hooks/useMergeSemantic.js";
3
- import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
3
+ import { getSlotPropsFnRun, getSlotPropsFnRunWithFallback, toPropsRefs } from "../_util/tools.js";
4
4
  import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
5
5
  import { useDisabledContext } from "../config-provider/DisabledContext.js";
6
6
  import { DefaultRenderEmpty } from "../config-provider/defaultRenderEmpty.js";
@@ -30,8 +30,8 @@ const CascaderPanel = /* @__PURE__ */ defineComponent((props, { attrs, emit, slo
30
30
  return () => {
31
31
  const { rootClass, multiple, optionRender, expandIcon, prefixCls: _prefixCls, direction: _direction, loadingIcon, ...rest } = props;
32
32
  const { className, style, restAttrs } = getAttrStyleAndClass(attrs);
33
- const customExpandIcon = getSlotPropsFnRun(slots, props, "expandIcon", false) ?? expandIcon;
34
- const customLoadingIcon = getSlotPropsFnRun(slots, props, "loadingIcon", false) ?? loadingIcon;
33
+ const customExpandIcon = getSlotPropsFnRunWithFallback(slots, props, "expandIcon");
34
+ const customLoadingIcon = getSlotPropsFnRunWithFallback(slots, props, "loadingIcon");
35
35
  const { expandIcon: mergedExpandIcon, loadingIcon: mergedLoadingIcon } = useIcons({
36
36
  contextExpandIcon: contextExpandIcon.value,
37
37
  contextLoadingIcon: contextLoadingIcon.value,
@@ -1,16 +1,17 @@
1
1
  import { devUseWarning, isDev } from "../_util/warning.js";
2
+ import { useFormItemInputContext } from "../form/context.js";
2
3
  import { useComponentBaseConfig } from "../config-provider/context.js";
3
4
  import { useSize } from "../config-provider/hooks/useSize.js";
4
5
  import { useCompactItemContext } from "../space/Compact.js";
5
6
  import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
6
7
  import { useZIndex } from "../_util/hooks/useZIndex.js";
7
- import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
8
+ import { getSlotPropsFnRun, getSlotPropsFnRunWithFallback, toPropsRefs } from "../_util/tools.js";
8
9
  import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
9
10
  import { useDisabledContext } from "../config-provider/DisabledContext.js";
11
+ import { useLocaleGetter } from "../locale/useLocale.js";
10
12
  import genPurePanel from "../_util/PurePanel.js";
11
13
  import { getMergedStatus, getStatusClassNames } from "../_util/statusUtils.js";
12
14
  import { DefaultRenderEmpty } from "../config-provider/defaultRenderEmpty.js";
13
- import { useFormItemInputContext } from "../form/context.js";
14
15
  import { useVariants } from "../form/hooks/useVariant.js";
15
16
  import mergedBuiltinPlacements from "../select/mergedBuiltinPlacements.js";
16
17
  import style_default from "../select/style/index.js";
@@ -74,6 +75,7 @@ const InternalCascader = /* @__PURE__ */ defineComponent((props, { attrs, emit,
74
75
  "removeIcon",
75
76
  "suffixIcon"
76
77
  ]);
78
+ const getGlobalLocale = useLocaleGetter("global");
77
79
  const { prefixCls: customizePrefixCls, direction: propDirection, variant: customizeVariant, bordered, size: customizeSize, disabled: customDisabled, status: customStatus, classes, styles } = toPropsRefs(props, "prefixCls", "direction", "variant", "bordered", "size", "disabled", "status", "classes", "styles");
78
80
  const { prefixCls, cascaderPrefixCls, direction: mergedDirection, renderEmpty } = useBase(customizePrefixCls, propDirection);
79
81
  const isRtl = computed(() => mergedDirection.value === "rtl");
@@ -174,15 +176,21 @@ const InternalCascader = /* @__PURE__ */ defineComponent((props, { attrs, emit,
174
176
  showSuffixIcon,
175
177
  suffixIcon: mergedSuffixIcon,
176
178
  removeIcon: rest.removeIcon ?? contextRemoveIcon.value,
177
- clearIcon: rest.clearIcon ?? contextClearIcon.value,
179
+ clearIcon: rest.clearIcon,
178
180
  prefixCls: prefixCls.value,
179
181
  componentName: "Cascader"
180
182
  });
181
- const mergedAllowClear = (allowClear ?? true) === true ? { clearIcon } : allowClear;
183
+ const mergedClearIcon = rest.clearIcon ?? contextClearIcon.value ?? clearIcon;
184
+ const finalAllowClear = allowClear ?? true;
185
+ const mergedAllowClear = finalAllowClear ? {
186
+ clearIcon: mergedClearIcon,
187
+ label: getGlobalLocale().clear,
188
+ ...typeof finalAllowClear === "object" ? finalAllowClear : {}
189
+ } : finalAllowClear;
182
190
  const mergedPopupRender = usePopupRender((slots.popupRender ?? popupRender) || dropdownRender);
183
191
  const mergedPopupMenuColumnStyle = popupMenuColumnStyle ?? dropdownMenuColumnStyle;
184
- const customExpandIcon = getSlotPropsFnRun(slots, props, "expandIcon", false) ?? expandIcon;
185
- const customLoadingIcon = getSlotPropsFnRun(slots, props, "loadingIcon", false) ?? loadingIcon;
192
+ const customExpandIcon = getSlotPropsFnRunWithFallback(slots, props, "expandIcon");
193
+ const customLoadingIcon = getSlotPropsFnRunWithFallback(slots, props, "loadingIcon");
186
194
  const { expandIcon: mergedExpandIcon, loadingIcon: mergedLoadingIcon } = useIcons$1({
187
195
  contextExpandIcon: contextExpandIcon.value,
188
196
  contextLoadingIcon: contextLoadingIcon.value,
@@ -1,4 +1,8 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
1
4
  import { FullToken, GlobalToken } from "../../theme/interface/cssinjs-utils.js";
5
+ import "../../theme/interface/index.js";
2
6
  import "../../theme/internal.js";
3
7
  import { CSSProperties } from "vue";
4
8
  //#region src/cascader/style/index.d.ts
@@ -46,6 +50,6 @@ interface ComponentToken {
46
50
  }
47
51
  type CascaderToken = FullToken<'Cascader'>;
48
52
  declare function prepareComponentToken(token: GlobalToken): ComponentToken;
49
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
53
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
50
54
  //#endregion
51
55
  export { CascaderToken, ComponentToken, _default as default, prepareComponentToken };
@@ -1,4 +1,8 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
4
+ import "../../theme/interface/index.js";
1
5
  //#region src/cascader/style/panel.d.ts
2
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => import("vue").Ref<string, string>;
6
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => import("vue").Ref<string, string>;
3
7
  //#endregion
4
8
  export { _default as default };
@@ -1,19 +1,19 @@
1
1
  import { devUseWarning, isDev } from "../_util/warning.js";
2
+ import { useFormItemContext, useFormItemInputContext } from "../form/context.js";
2
3
  import { useComponentBaseConfig } from "../config-provider/context.js";
3
4
  import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
4
5
  import { toPropsRefs } from "../_util/tools.js";
5
6
  import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
6
7
  import { useDisabledContext } from "../config-provider/DisabledContext.js";
7
- import isNonNullable from "../_util/isNonNullable.js";
8
8
  import { TARGET_CLS } from "../_util/wave/interface.js";
9
9
  import wave_default from "../_util/wave/index.js";
10
10
  import { checkRenderNode } from "../_util/vueNode.js";
11
- import { useFormItemContext, useFormItemInputContext } from "../form/context.js";
11
+ import isNonNullable from "../_util/isNonNullable.js";
12
12
  import useBubbleLock from "./useBubbleLock.js";
13
13
  import style_default from "./style/index.js";
14
14
  import { isValueEqual } from "../_util/isEqual.js";
15
15
  import { useGroupContext } from "./GroupContext.js";
16
- import { computed, createVNode, defineComponent, mergeDefaults, mergeProps, nextTick, shallowRef, watch } from "vue";
16
+ import { computed, createVNode, defineComponent, mergeDefaults, mergeProps, nextTick, shallowRef, toRef, watch } from "vue";
17
17
  import { clsx } from "@v-c/util";
18
18
  import { omit } from "es-toolkit";
19
19
  import VcCheckbox from "@v-c/checkbox";
@@ -45,7 +45,9 @@ const InternalCheckbox = /* @__PURE__ */ defineComponent((props, { slots, emit,
45
45
  };
46
46
  });
47
47
  const contextStyleRoot = useSemanticRootStyle(contextStyle);
48
- const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, contextStyleRoot, styles), useToProps(mergedProps));
48
+ const groupClassNames = toRef(() => props.skipGroup ? void 0 : checkboxGroup?.value?.classes);
49
+ const groupStyles = toRef(() => props.skipGroup ? void 0 : checkboxGroup?.value?.styles);
50
+ const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, groupClassNames, classes), useToArr(contextStyles, contextStyleRoot, groupStyles, styles), useToProps(mergedProps));
49
51
  const checkboxRef = shallowRef();
50
52
  if (isDev) devUseWarning("Checkbox")("checked" in props || !!checkboxGroup?.value || !("value" in props), "usage", "`value` is not a valid prop, do you mean `checked`?");
51
53
  watch([() => props.value, () => props.skipGroup], ([value, skipGroup], _prev, onCleanup) => {
@@ -1,4 +1,6 @@
1
1
  import { VueNode } from "../_util/type.js";
2
+ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
3
+ import "../_util/hooks/index.js";
2
4
  import { ComponentBaseProps } from "../config-provider/context.js";
3
5
  import { CSSProperties, SlotsType } from "vue";
4
6
  import { CheckboxChangeEvent } from "@v-c/checkbox";
@@ -18,6 +20,20 @@ interface AbstractCheckboxGroupProps extends ComponentBaseProps {
18
20
  options?: (CheckboxOptionType | string | number)[];
19
21
  disabled?: boolean;
20
22
  }
23
+ interface CheckboxGroupSemanticClassNames {
24
+ root?: string;
25
+ item?: string;
26
+ itemIcon?: string;
27
+ itemLabel?: string;
28
+ }
29
+ interface CheckboxGroupSemanticStyles {
30
+ root?: CSSProperties;
31
+ item?: CSSProperties;
32
+ itemIcon?: CSSProperties;
33
+ itemLabel?: CSSProperties;
34
+ }
35
+ type CheckboxGroupClassNamesType = SemanticClassNamesType<CheckboxGroupProps, CheckboxGroupSemanticClassNames>;
36
+ type CheckboxGroupStylesType = SemanticStylesType<CheckboxGroupProps, CheckboxGroupSemanticStyles>;
21
37
  interface CheckboxGroupProps extends AbstractCheckboxGroupProps, CheckboxGroupEmitsProps {
22
38
  name?: string;
23
39
  defaultValue?: any[];
@@ -27,6 +43,8 @@ interface CheckboxGroupProps extends AbstractCheckboxGroupProps, CheckboxGroupEm
27
43
  index: number;
28
44
  }) => any;
29
45
  role?: string;
46
+ classes?: CheckboxGroupClassNamesType;
47
+ styles?: CheckboxGroupStylesType;
30
48
  'onUpdate:value'?: (value: any[]) => void;
31
49
  }
32
50
  interface CheckboxGroupEmits {
@@ -44,4 +62,4 @@ interface CheckboxGroupSlots {
44
62
  }
45
63
  declare const CheckboxGroup: import("vue").DefineSetupFnComponent<CheckboxGroupProps, CheckboxGroupEmits, SlotsType<CheckboxGroupSlots>, CheckboxGroupProps, import("vue").PublicProps>;
46
64
  //#endregion
47
- export { AbstractCheckboxGroupProps, CheckboxGroupEmits, CheckboxGroupEmitsProps, CheckboxGroupProps, CheckboxGroupSlots, CheckboxOptionType, CheckboxGroup as default };
65
+ export { AbstractCheckboxGroupProps, CheckboxGroupClassNamesType, CheckboxGroupEmits, CheckboxGroupEmitsProps, CheckboxGroupProps, CheckboxGroupSemanticClassNames, CheckboxGroupSemanticStyles, CheckboxGroupSlots, CheckboxGroupStylesType, CheckboxOptionType, CheckboxGroup as default };