antdv-next 1.7.1 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/dist/_util/hooks/useMergeSemantic.js +2 -2
  2. package/dist/_util/vueNode.d.ts +2 -6
  3. package/dist/alert/Alert.js +10 -5
  4. package/dist/antd-with-locales.esm.js +14360 -11910
  5. package/dist/antd-with-locales.js +82 -79
  6. package/dist/antd.css +1 -1
  7. package/dist/antd.esm.js +13203 -10918
  8. package/dist/antd.js +82 -79
  9. package/dist/auto-complete/index.d.ts +2 -0
  10. package/dist/auto-complete/index.js +28 -23
  11. package/dist/button/Button.js +31 -18
  12. package/dist/calendar/Header.js +4 -4
  13. package/dist/card/Card.js +1 -1
  14. package/dist/carousel/index.js +3 -3
  15. package/dist/cascader/index.d.ts +7 -1
  16. package/dist/cascader/index.js +42 -34
  17. package/dist/checkbox/Checkbox.js +5 -2
  18. package/dist/checkbox/Group.js +2 -2
  19. package/dist/collapse/Collapse.js +2 -2
  20. package/dist/color-picker/ColorPicker.js +15 -2
  21. package/dist/color-picker/components/ColorSlider.js +2 -2
  22. package/dist/color-picker/interface.d.ts +3 -0
  23. package/dist/components.d.ts +1 -1
  24. package/dist/config-provider/context.d.ts +13 -9
  25. package/dist/config-provider/define.d.ts +2 -1
  26. package/dist/config-provider/index.js +9 -0
  27. package/dist/date-picker/generatePicker/generateRangePicker.d.ts +2 -0
  28. package/dist/date-picker/generatePicker/generateRangePicker.js +19 -11
  29. package/dist/date-picker/generatePicker/generateSinglePicker.d.ts +2 -0
  30. package/dist/date-picker/generatePicker/generateSinglePicker.js +14 -10
  31. package/dist/date-picker/generatePicker/useComponents.js +2 -2
  32. package/dist/date-picker/generatePicker/useSuffix.d.ts +12 -0
  33. package/dist/date-picker/generatePicker/useSuffix.js +11 -0
  34. package/dist/date-picker/style/panel.js +11 -8
  35. package/dist/date-picker/util.d.ts +2 -6
  36. package/dist/date-picker/util.js +4 -3
  37. package/dist/descriptions/hooks/useItems.d.ts +6 -6
  38. package/dist/descriptions/index.js +2 -2
  39. package/dist/divider/index.js +14 -4
  40. package/dist/drawer/index.js +2 -2
  41. package/dist/dropdown/dropdown.js +6 -6
  42. package/dist/flex/index.js +2 -2
  43. package/dist/float-button/FloatButton.js +2 -2
  44. package/dist/float-button/FloatButtonGroup.js +2 -2
  45. package/dist/float-button/PurePanel.js +5 -5
  46. package/dist/form/Form.js +40 -10
  47. package/dist/form/FormItem/ItemHolder.d.ts +3 -18
  48. package/dist/form/FormItem/StatusProvider.js +2 -1
  49. package/dist/form/FormItem/index.d.ts +1 -0
  50. package/dist/form/FormItem/index.js +13 -2
  51. package/dist/form/FormItemInput.js +3 -4
  52. package/dist/form/FormItemLabel.js +7 -3
  53. package/dist/form/context.d.ts +3 -3
  54. package/dist/form/hooks/useVariant.d.ts +14 -4
  55. package/dist/form/hooks/useVariant.js +24 -13
  56. package/dist/form/interface.d.ts +4 -1
  57. package/dist/form/style/index.js +1 -1
  58. package/dist/image/PreviewGroup.js +2 -2
  59. package/dist/image/hooks/usePreviewConfig.d.ts +7 -7
  60. package/dist/image/index.js +3 -3
  61. package/dist/index.d.ts +1 -1
  62. package/dist/input/Input.js +4 -4
  63. package/dist/input/OTP/OTPInput.js +31 -30
  64. package/dist/input/OTP/index.js +10 -2
  65. package/dist/input/Password.js +7 -3
  66. package/dist/input/Search.js +5 -5
  67. package/dist/input/TextArea.js +4 -4
  68. package/dist/input-number/index.js +3 -3
  69. package/dist/layout/Sider.js +2 -2
  70. package/dist/locale/ar_EG.js +3 -1
  71. package/dist/locale/az_AZ.js +3 -1
  72. package/dist/locale/bg_BG.js +3 -1
  73. package/dist/locale/bn_BD.js +3 -1
  74. package/dist/locale/by_BY.js +3 -1
  75. package/dist/locale/ca_ES.js +3 -1
  76. package/dist/locale/cs_CZ.js +13 -9
  77. package/dist/locale/da_DK.js +3 -1
  78. package/dist/locale/de_DE.js +6 -2
  79. package/dist/locale/el_GR.js +3 -1
  80. package/dist/locale/en_GB.js +3 -1
  81. package/dist/locale/en_US.js +5 -2
  82. package/dist/locale/es_ES.js +3 -1
  83. package/dist/locale/et_EE.js +3 -1
  84. package/dist/locale/eu_ES.js +3 -1
  85. package/dist/locale/fa_IR.js +3 -1
  86. package/dist/locale/fi_FI.js +3 -1
  87. package/dist/locale/fr_BE.js +3 -1
  88. package/dist/locale/fr_CA.js +3 -1
  89. package/dist/locale/fr_FR.js +6 -2
  90. package/dist/locale/ga_IE.js +3 -1
  91. package/dist/locale/gl_ES.js +3 -1
  92. package/dist/locale/he_IL.js +3 -1
  93. package/dist/locale/hi_IN.js +3 -1
  94. package/dist/locale/hr_HR.js +3 -1
  95. package/dist/locale/hu_HU.js +3 -1
  96. package/dist/locale/hy_AM.js +5 -13
  97. package/dist/locale/id_ID.js +3 -1
  98. package/dist/locale/index.d.ts +6 -0
  99. package/dist/locale/is_IS.js +3 -1
  100. package/dist/locale/it_IT.js +6 -2
  101. package/dist/locale/ja_JP.js +3 -1
  102. package/dist/locale/ka_GE.js +3 -1
  103. package/dist/locale/kk_KZ.js +3 -1
  104. package/dist/locale/km_KH.js +3 -1
  105. package/dist/locale/kmr_IQ.js +3 -1
  106. package/dist/locale/kn_IN.js +3 -1
  107. package/dist/locale/ko_KR.js +3 -1
  108. package/dist/locale/ku_IQ.js +3 -1
  109. package/dist/locale/lt_LT.js +3 -1
  110. package/dist/locale/lv_LV.js +3 -1
  111. package/dist/locale/mk_MK.js +3 -1
  112. package/dist/locale/ml_IN.js +3 -1
  113. package/dist/locale/mn_MN.js +3 -1
  114. package/dist/locale/mr_IN.js +3 -1
  115. package/dist/locale/ms_MY.js +3 -1
  116. package/dist/locale/my_MM.js +3 -1
  117. package/dist/locale/nb_NO.js +3 -1
  118. package/dist/locale/ne_NP.js +4 -2
  119. package/dist/locale/nl_BE.js +3 -1
  120. package/dist/locale/nl_NL.js +3 -1
  121. package/dist/locale/pl_PL.js +3 -1
  122. package/dist/locale/pt_BR.js +3 -1
  123. package/dist/locale/pt_PT.js +3 -1
  124. package/dist/locale/ro_RO.js +3 -1
  125. package/dist/locale/ru_RU.js +3 -1
  126. package/dist/locale/si_LK.js +3 -1
  127. package/dist/locale/sk_SK.js +3 -1
  128. package/dist/locale/sl_SI.js +3 -1
  129. package/dist/locale/sq_AL.js +5 -13
  130. package/dist/locale/sr_RS.js +3 -1
  131. package/dist/locale/sv_SE.js +3 -1
  132. package/dist/locale/ta_IN.js +3 -1
  133. package/dist/locale/th_TH.js +3 -1
  134. package/dist/locale/tk_TK.js +3 -1
  135. package/dist/locale/tr_TR.js +3 -1
  136. package/dist/locale/uk_UA.js +3 -1
  137. package/dist/locale/ur_PK.js +3 -1
  138. package/dist/locale/uz_UZ.js +3 -1
  139. package/dist/locale/vi_VN.js +3 -1
  140. package/dist/locale/zh_CN.js +5 -2
  141. package/dist/locale/zh_HK.js +3 -1
  142. package/dist/locale/zh_TW.js +3 -1
  143. package/dist/mentions/index.js +4 -4
  144. package/dist/menu/MenuItem.js +7 -7
  145. package/dist/menu/SubMenu.js +5 -4
  146. package/dist/menu/menu.js +2 -2
  147. package/dist/message/PurePanel.js +2 -2
  148. package/dist/modal/Modal.js +5 -5
  149. package/dist/notification/PurePanel.js +2 -2
  150. package/dist/notification/style/placement.js +3 -6
  151. package/dist/package.js +1 -1
  152. package/dist/pagination/Pagination.js +6 -5
  153. package/dist/pagination/index.d.ts +2 -1
  154. package/dist/pagination/interface.d.ts +2 -2
  155. package/dist/pagination/style/index.js +3 -3
  156. package/dist/popconfirm/index.js +2 -2
  157. package/dist/popover/PurePanel.js +2 -2
  158. package/dist/popover/style/index.js +1 -0
  159. package/dist/progress/Circle.js +3 -3
  160. package/dist/qrcode/index.js +2 -2
  161. package/dist/qrcode/style/index.js +0 -4
  162. package/dist/radio/radio.js +2 -2
  163. package/dist/rate/index.js +2 -2
  164. package/dist/select/index.d.ts +11 -3
  165. package/dist/select/index.js +55 -38
  166. package/dist/select/useIcons.d.ts +23 -12
  167. package/dist/select/useIcons.js +34 -13
  168. package/dist/select/useShowArrow.d.ts +2 -3
  169. package/dist/select/useShowArrow.js +3 -5
  170. package/dist/skeleton/Paragraph.js +2 -2
  171. package/dist/skeleton/Skeleton.js +2 -2
  172. package/dist/skeleton/Title.js +2 -2
  173. package/dist/slider/index.js +2 -2
  174. package/dist/space/Compact.d.ts +1 -1
  175. package/dist/space/index.d.ts +1 -1
  176. package/dist/space/style/index.js +8 -2
  177. package/dist/splitter/SplitBar.js +2 -1
  178. package/dist/splitter/Splitter.js +2 -2
  179. package/dist/statistic/Number.js +7 -1
  180. package/dist/steps/index.js +9 -3
  181. package/dist/switch/index.js +2 -2
  182. package/dist/table/InternalTable.js +2 -2
  183. package/dist/table/hooks/useFilter/index.js +5 -2
  184. package/dist/table/hooks/usePagination.d.ts +2 -1
  185. package/dist/table/hooks/usePagination.js +6 -3
  186. package/dist/table/style/expand.js +4 -1
  187. package/dist/table/util.d.ts +1 -1
  188. package/dist/tabs/index.js +19 -11
  189. package/dist/tag/hooks/useColor.d.ts +1 -1
  190. package/dist/tag/index.d.ts +1 -1
  191. package/dist/tag/index.js +13 -5
  192. package/dist/theme/getDesignToken.js +2 -1
  193. package/dist/time-picker/index.d.ts +6 -0
  194. package/dist/time-picker/index.js +11 -1
  195. package/dist/timeline/Timeline.js +16 -10
  196. package/dist/tooltip/PurePanel.js +2 -2
  197. package/dist/tooltip/index.js +3 -6
  198. package/dist/tooltip/style/index.js +1 -0
  199. package/dist/tour/index.js +2 -3
  200. package/dist/tour/panelRender.js +4 -4
  201. package/dist/transfer/Section.js +2 -2
  202. package/dist/tree/DirectoryTree.js +2 -2
  203. package/dist/tree/Tree.js +2 -2
  204. package/dist/tree/style/index.js +6 -1
  205. package/dist/tree/utils/iconUtil.js +1 -1
  206. package/dist/tree-select/index.d.ts +32 -2
  207. package/dist/tree-select/index.js +75 -75
  208. package/dist/upload/Upload.js +2 -2
  209. package/dist/version/token.json +1 -1
  210. package/dist/watermark/useWatermark.d.ts +1 -7
  211. package/dist/watermark/useWatermark.js +1 -7
  212. package/package.json +6 -6
  213. package/web-tags.json +87 -31
  214. package/web-types.json +246 -161
  215. package/dist/date-picker/generatePicker/SuffixIcon.d.ts +0 -12
  216. package/dist/date-picker/generatePicker/SuffixIcon.js +0 -51
  217. package/dist/form/style/fallbackCmp.d.ts +0 -14
  218. package/dist/form/style/fallbackCmp.js +0 -13
@@ -54,6 +54,7 @@ import { Affix, AffixEmits, AffixProps, AffixRef } from "./affix/index.js";
54
54
  import { AnchorLinkProps } from "./anchor/AnchorLink.js";
55
55
  import Anchor, { AnchorEmits, AnchorProps, AnchorSlots } from "./anchor/Anchor.js";
56
56
  import "./anchor/index.js";
57
+ import AutoComplete, { AutoCompleteClassNamesType, AutoCompleteEmits, AutoCompleteProps, AutoCompleteSlots, AutoCompleteStylesType, DataSourceItemObject, DataSourceItemType, Option } from "./auto-complete/index.js";
57
58
  import { RibbonProps, RibbonRef } from "./badge/Ribbon.js";
58
59
  import Badge, { BadgeProps, BadgeRibbon, BadgeSlots } from "./badge/index.js";
59
60
  import _default$2, { BreadcrumbItemProps } from "./breadcrumb/BreadcrumbItem.js";
@@ -134,7 +135,6 @@ import "./button/index.js";
134
135
  import useModal from "./modal/useModal/index.js";
135
136
  import { AppProps } from "./app/App.js";
136
137
  import _default from "./app/index.js";
137
- import AutoComplete, { AutoCompleteClassNamesType, AutoCompleteEmits, AutoCompleteProps, AutoCompleteSlots, AutoCompleteStylesType, DataSourceItemObject, DataSourceItemType, Option } from "./auto-complete/index.js";
138
138
  import { AvatarEmits, AvatarProps, AvatarSlots } from "./avatar/Avatar.js";
139
139
  import AvatarGroup, { AvatarGroupProps, AvatarGroupRef } from "./avatar/AvatarGroup.js";
140
140
  import Avatar from "./avatar/index.js";
@@ -38,6 +38,7 @@ import { AlertProps } from "../alert/Alert.js";
38
38
  import "../alert/index.js";
39
39
  import { AnchorProps } from "../anchor/Anchor.js";
40
40
  import "../anchor/index.js";
41
+ import { AutoCompleteProps } from "../auto-complete/index.js";
41
42
  import { RibbonProps } from "../badge/Ribbon.js";
42
43
  import { BadgeProps } from "../badge/index.js";
43
44
  import { BreadcrumbProps } from "../breadcrumb/Breadcrumb.js";
@@ -249,7 +250,7 @@ type QRcodeConfig = ComponentStyleConfig & Pick<QRCodeProps, 'classes' | 'styles
249
250
  type ResultConfig = ComponentStyleConfig & Pick<ResultProps, 'classes' | 'styles'>;
250
251
  type AnchorStyleConfig = ComponentStyleConfig & Pick<AnchorProps, 'classes' | 'styles'>;
251
252
  type PaginationConfig = ComponentStyleConfig & Pick<PaginationProps, 'showSizeChanger'>;
252
- type DividerConfig = ComponentStyleConfig & Pick<DividerProps, 'classes' | 'styles'>;
253
+ type DividerConfig = ComponentStyleConfig & Pick<DividerProps, 'classes' | 'styles' | 'variant'>;
253
254
  type SkeletonConfig = ComponentStyleConfig & Pick<SkeletonProps, 'styles' | 'classes'>;
254
255
  type StatisticConfig = ComponentStyleConfig & Pick<StatisticProps, 'classes' | 'styles'>;
255
256
  type TypographyConfig = ComponentStyleConfig & Pick<BlockProps, 'classes' | 'styles'>;
@@ -285,6 +286,7 @@ type ListyConfig = ComponentStyleConfig & Pick<ListyProps, 'classes' | 'styles'>
285
286
  type SwitchStyleConfig = ComponentStyleConfig & Pick<SwitchProps, 'classes' | 'styles'>;
286
287
  type TransferConfig = ComponentStyleConfig & Pick<TransferProps, 'selectionsIcon' | 'classes' | 'styles'>;
287
288
  type InputConfig = ComponentStyleConfig & Pick<InputProps, 'autoComplete' | 'autocomplete' | 'classes' | 'styles' | 'allowClear' | 'variant' | 'changeOnComposing'>;
289
+ type AutoCompleteConfig = Pick<AutoCompleteProps, 'allowClear'>;
288
290
  type InputNumberConfig = ComponentStyleConfig & Pick<InputNumberProps, 'classes' | 'styles' | 'variant' | 'allowClear'>;
289
291
  type TextAreaConfig = ComponentStyleConfig & Pick<TextAreaProps, 'classes' | 'styles' | 'allowClear' | 'variant' | 'changeOnComposing'>;
290
292
  type MentionsConfig = ComponentStyleConfig & Pick<TextAreaProps, 'classes' | 'styles' | 'allowClear' | 'variant'>;
@@ -304,15 +306,16 @@ interface TabsMoreConfig {
304
306
  more?: Omit<MoreProps, 'popupRender'>;
305
307
  }
306
308
  type TabsConfig = ComponentStyleConfig & Pick<TabsProps$1, 'indicator' | 'indicatorSize' | 'moreIcon' | 'addIcon' | 'removeIcon' | 'classes' | 'styles' | 'scrollPosition'> & TabsMoreConfig;
307
- type SelectConfig = ComponentStyleConfig & Pick<SelectProps, 'showSearch' | 'variant' | 'classes' | 'styles' | 'allowClear' | 'suffixIcon' | 'removeIcon'> & {
309
+ type SelectConfig = ComponentStyleConfig & Pick<SelectProps, 'showSearch' | 'variant' | 'classes' | 'styles' | 'allowClear' | 'autoComplete' | 'suffix' | 'suffixIcon' | 'removeIcon'> & {
308
310
  clearIcon?: any;
309
311
  loadingIcon?: any;
310
312
  menuItemSelectedIcon?: any;
311
313
  };
312
- type CascaderConfig = ComponentStyleConfig & Pick<CascaderProps, 'variant' | 'classes' | 'styles' | 'expandIcon' | 'loadingIcon'> & {
314
+ type CascaderConfig = ComponentStyleConfig & Pick<CascaderProps, 'allowClear' | 'variant' | 'classes' | 'styles' | 'expandIcon' | 'loadingIcon'> & {
313
315
  searchIcon?: any;
314
316
  clearIcon?: any;
315
317
  removeIcon?: any;
318
+ suffix?: CascaderProps['suffix'];
316
319
  suffixIcon?: any;
317
320
  };
318
321
  type CardMetaConfig = ComponentStyleConfig & Pick<CardMetaProps, 'classes' | 'styles'>;
@@ -327,8 +330,8 @@ type ModalConfig = ComponentStyleConfig & Pick<ModalProps, 'classes' | 'styles'
327
330
  warningIcon?: any;
328
331
  errorIcon?: any;
329
332
  };
330
- type StepsConfig = ComponentStyleConfig & Pick<StepsProps, 'classes' | 'styles'>;
331
- type TimelineConfig = ComponentStyleConfig & Pick<TimelineProps, 'classes' | 'styles'>;
333
+ type StepsConfig = ComponentStyleConfig & Pick<StepsProps, 'classes' | 'styles' | 'variant'>;
334
+ type TimelineConfig = ComponentStyleConfig & Pick<TimelineProps, 'classes' | 'styles' | 'variant'>;
332
335
  type ImageConfig = ComponentStyleConfig & Pick<ImageProps, 'classes' | 'styles'> & {
333
336
  preview?: Partial<Record<'closeIcon', any>> & Pick<ImageProps, 'classes' | 'styles'> & {
334
337
  mask?: MaskType;
@@ -336,13 +339,13 @@ type ImageConfig = ComponentStyleConfig & Pick<ImageProps, 'classes' | 'styles'>
336
339
  fallback?: string;
337
340
  };
338
341
  type TreeConfig = ComponentStyleConfig & Pick<TreeProps, 'classes' | 'styles'>;
339
- type TreeSelectConfig = ComponentStyleConfig & Pick<TreeSelectProps, 'variant' | 'classes' | 'styles' | 'switcherIcon'>;
342
+ type TreeSelectConfig = ComponentStyleConfig & Pick<TreeSelectProps, 'allowClear' | 'variant' | 'classes' | 'styles' | 'switcherIcon'>;
340
343
  type UploadConfig = ComponentStyleConfig & Pick<UploadProps, 'classes' | 'styles' | 'customRequest' | 'progress' | 'accept'>;
341
- type DatePickerConfig = ComponentStyleConfig & Pick<DatePickerProps, 'classes' | 'styles' | 'variant' | 'suffixIcon' | 'allowClear'> & {
344
+ type DatePickerConfig = ComponentStyleConfig & Pick<DatePickerProps, 'classes' | 'styles' | 'variant' | 'suffix' | 'suffixIcon' | 'allowClear'> & {
342
345
  clearIcon?: any;
343
346
  };
344
347
  type RangePickerConfig = ComponentStyleConfig & Pick<RangePickerProps, 'variant' | 'separator'>;
345
- type TimePickerConfig = ComponentStyleConfig & Pick<TimePickerProps, 'classes' | 'styles' | 'variant' | 'suffixIcon' | 'allowClear'> & {
348
+ type TimePickerConfig = ComponentStyleConfig & Pick<TimePickerProps, 'classes' | 'styles' | 'variant' | 'suffix' | 'suffixIcon' | 'allowClear'> & {
346
349
  clearIcon?: any;
347
350
  };
348
351
  interface TableConfig<RecordType extends AnyObject = AnyObject> extends ComponentStyleConfig {
@@ -374,6 +377,7 @@ interface ConfigComponentProps {
374
377
  space?: SpaceConfig;
375
378
  splitter?: SplitterConfig;
376
379
  form?: FormConfig;
380
+ autoComplete?: AutoCompleteConfig;
377
381
  select?: SelectConfig;
378
382
  app?: ComponentStyleConfig;
379
383
  alert?: AlertConfig;
@@ -511,4 +515,4 @@ declare function useComponentBaseConfig<T extends keyof ConfigComponentProps, K
511
515
  popupOverflow: Readonly<Ref<PopupOverflow | undefined, PopupOverflow | undefined>>;
512
516
  };
513
517
  //#endregion
514
- export { AlertConfig, AnchorStyleConfig, BadgeConfig, BreadcrumbConfig, ButtonConfig, CSPConfig, CalendarConfig, CardConfig, CardMetaConfig, CascaderConfig, CheckboxConfig, CollapseConfig, ColorPickerConfig, ComponentBaseProps, ComponentStyleConfig, ConfigComponentProps, ConfigConsumerProps, ConfigRefs, DatePickerConfig, DescriptionsConfig, DirectionType, DividerConfig, DrawerConfig, DropdownConfig, EmptyConfig, FlexConfig, FloatButtonConfig, FloatButtonGroupConfig, FormConfig, ImageConfig, InputConfig, InputNumberConfig, InputPasswordConfig, InputSearchConfig, ListyConfig, MappingAlgorithm, MasonryConfig, MentionsConfig, MenuConfig, ModalConfig, NotificationConfig, OTPConfig, PaginationConfig, PopconfirmConfig, PopoverConfig, PopupOverflow, ProgressConfig, QRcodeConfig, RadioConfig, RangePickerConfig, ResultConfig, RibbonConfig, SegmentedConfig, SelectConfig, SkeletonConfig, SliderConfig, SpaceConfig, SpinConfig, SplitterConfig, StatisticConfig, StepsConfig, SwitchStyleConfig, TableConfig, TabsConfig, TabsMoreConfig, TagConfig, TextAreaConfig, Theme, ThemeConfig, TimePickerConfig, TimelineConfig, TooltipConfig, TooltipUniqueConfig, TourConfig, TransferConfig, TreeConfig, TreeSelectConfig, TriggerType, TypographyConfig, UploadConfig, Variant, Variants, WaveConfig, defaultIconPrefixCls, defaultPrefixCls, useBaseConfig, useComponentBaseConfig, useComponentConfig, useConfig, useConfigProvider };
518
+ export { AlertConfig, AnchorStyleConfig, AutoCompleteConfig, BadgeConfig, BreadcrumbConfig, ButtonConfig, CSPConfig, CalendarConfig, CardConfig, CardMetaConfig, CascaderConfig, CheckboxConfig, CollapseConfig, ColorPickerConfig, ComponentBaseProps, ComponentStyleConfig, ConfigComponentProps, ConfigConsumerProps, ConfigRefs, DatePickerConfig, DescriptionsConfig, DirectionType, DividerConfig, DrawerConfig, DropdownConfig, EmptyConfig, FlexConfig, FloatButtonConfig, FloatButtonGroupConfig, FormConfig, ImageConfig, InputConfig, InputNumberConfig, InputPasswordConfig, InputSearchConfig, ListyConfig, MappingAlgorithm, MasonryConfig, MentionsConfig, MenuConfig, ModalConfig, NotificationConfig, OTPConfig, PaginationConfig, PopconfirmConfig, PopoverConfig, PopupOverflow, ProgressConfig, QRcodeConfig, RadioConfig, RangePickerConfig, ResultConfig, RibbonConfig, SegmentedConfig, SelectConfig, SkeletonConfig, SliderConfig, SpaceConfig, SpinConfig, SplitterConfig, StatisticConfig, StepsConfig, SwitchStyleConfig, TableConfig, TabsConfig, TabsMoreConfig, TagConfig, TextAreaConfig, Theme, ThemeConfig, TimePickerConfig, TimelineConfig, TooltipConfig, TooltipUniqueConfig, TourConfig, TransferConfig, TreeConfig, TreeSelectConfig, TriggerType, TypographyConfig, UploadConfig, Variant, Variants, WaveConfig, defaultIconPrefixCls, defaultPrefixCls, useBaseConfig, useComponentBaseConfig, useComponentConfig, useConfig, useConfigProvider };
@@ -4,7 +4,7 @@ import { ColumnType } from "../table/interface.js";
4
4
  import "../table/index.js";
5
5
  import { Locale } from "../locale/index.js";
6
6
  import { RenderEmptyHandler } from "./defaultRenderEmpty.js";
7
- import { AlertConfig, AnchorStyleConfig, BadgeConfig, BreadcrumbConfig, ButtonConfig, CSPConfig, CalendarConfig, CardConfig, CardMetaConfig, CascaderConfig, CheckboxConfig, CollapseConfig, ColorPickerConfig, ComponentStyleConfig, DatePickerConfig, DescriptionsConfig, DirectionType, DividerConfig, DrawerConfig, DropdownConfig, EmptyConfig, FlexConfig, FloatButtonConfig, FloatButtonGroupConfig, FormConfig, ImageConfig, InputConfig, InputNumberConfig, InputPasswordConfig, InputSearchConfig, ListyConfig, MasonryConfig, MentionsConfig, MenuConfig, ModalConfig, NotificationConfig, OTPConfig, PaginationConfig, PopconfirmConfig, PopoverConfig, PopupOverflow, ProgressConfig, RadioConfig, RangePickerConfig, ResultConfig, RibbonConfig, SegmentedConfig, SelectConfig, SkeletonConfig, SliderConfig, SpaceConfig, SpinConfig, SplitterConfig, StatisticConfig, StepsConfig, SwitchStyleConfig, TableConfig, TabsConfig, TagConfig, TextAreaConfig, ThemeConfig, TimePickerConfig, TimelineConfig, TooltipConfig, TourConfig, TransferConfig, TreeConfig, TreeSelectConfig, TypographyConfig, UploadConfig, Variant, WaveConfig } from "./context.js";
7
+ import { AlertConfig, AnchorStyleConfig, AutoCompleteConfig, BadgeConfig, BreadcrumbConfig, ButtonConfig, CSPConfig, CalendarConfig, CardConfig, CardMetaConfig, CascaderConfig, CheckboxConfig, CollapseConfig, ColorPickerConfig, ComponentStyleConfig, DatePickerConfig, DescriptionsConfig, DirectionType, DividerConfig, DrawerConfig, DropdownConfig, EmptyConfig, FlexConfig, FloatButtonConfig, FloatButtonGroupConfig, FormConfig, ImageConfig, InputConfig, InputNumberConfig, InputPasswordConfig, InputSearchConfig, ListyConfig, MasonryConfig, MentionsConfig, MenuConfig, ModalConfig, NotificationConfig, OTPConfig, PaginationConfig, PopconfirmConfig, PopoverConfig, PopupOverflow, ProgressConfig, RadioConfig, RangePickerConfig, ResultConfig, RibbonConfig, SegmentedConfig, SelectConfig, SkeletonConfig, SliderConfig, SpaceConfig, SpinConfig, SplitterConfig, StatisticConfig, StepsConfig, SwitchStyleConfig, TableConfig, TabsConfig, TagConfig, TextAreaConfig, ThemeConfig, TimePickerConfig, TimelineConfig, TooltipConfig, TourConfig, TransferConfig, TreeConfig, TreeSelectConfig, TypographyConfig, UploadConfig, Variant, WaveConfig } from "./context.js";
8
8
  //#region src/config-provider/define.d.ts
9
9
  interface ConfigProviderProps {
10
10
  getTargetContainer?: () => HTMLElement | Window;
@@ -27,6 +27,7 @@ interface ConfigProviderProps {
27
27
  inputSearch?: InputSearchConfig;
28
28
  inputPassword?: InputPasswordConfig;
29
29
  otp?: OTPConfig;
30
+ autoComplete?: AutoCompleteConfig;
30
31
  select?: SelectConfig;
31
32
  form?: FormConfig;
32
33
  pagination?: PaginationConfig;
@@ -28,6 +28,7 @@ const PASSED_PROPS = [
28
28
  "splitter",
29
29
  "mentions",
30
30
  "form",
31
+ "autoComplete",
31
32
  "select",
32
33
  "treeSelect",
33
34
  "button",
@@ -327,6 +328,10 @@ const ProviderChildren = /* @__PURE__ */ defineComponent((props, { slots }) => {
327
328
  type: Object,
328
329
  required: false
329
330
  },
331
+ autoComplete: {
332
+ type: Object,
333
+ required: false
334
+ },
330
335
  select: {
331
336
  type: Object,
332
337
  required: false
@@ -703,6 +708,10 @@ const ConfigProvider = /* @__PURE__ */ defineComponent((props, { slots }) => {
703
708
  type: Object,
704
709
  required: false
705
710
  },
711
+ autoComplete: {
712
+ type: Object,
713
+ required: false
714
+ },
706
715
  select: {
707
716
  type: Object,
708
717
  required: false
@@ -17,6 +17,8 @@ interface RangePickerEmits<DateType = AnyObject> {
17
17
  'keydown': (e: KeyboardEvent, preventDefault: VoidFunction) => void;
18
18
  }
19
19
  interface RangePickerSlots<CurrentType = AnyObject> {
20
+ suffix?: () => any;
21
+ /** @deprecated Please use `suffix` instead */
20
22
  suffixIcon?: () => any;
21
23
  prefix?: () => any;
22
24
  renderExtraFooter?: (mode: PickerMode) => any;
@@ -6,20 +6,21 @@ import { useCompactItemContext } from "../../space/Compact.js";
6
6
  import { ContextIsolator } from "../../_util/ContextIsolator.js";
7
7
  import { getAttrStyleAndClass } from "../../_util/hooks/useMergeSemantic.js";
8
8
  import { useZIndex } from "../../_util/hooks/useZIndex.js";
9
+ import fallbackProp from "../../_util/fallbackProp.js";
9
10
  import { getSlotPropsFnRun, toPropsRefs } from "../../_util/tools.js";
10
11
  import useCSSVarCls from "../../config-provider/hooks/useCSSVarCls.js";
11
12
  import { useDisabledContext } from "../../config-provider/DisabledContext.js";
12
13
  import { isNonNullable } from "../../_util/is.js";
14
+ import { useVariants } from "../../form/hooks/useVariant.js";
13
15
  import locale from "../locale/en_US.js";
14
16
  import useLocale from "../../locale/useLocale.js";
15
17
  import { getMergedStatus, getStatusClassNames } from "../../_util/statusUtils.js";
16
- import { useVariants } from "../../form/hooks/useVariant.js";
17
18
  import style_default from "../style/index.js";
18
19
  import useMergedPickerSemantic from "../hooks/useMergedPickerSemantic.js";
19
20
  import { getRangePlaceholder, useIcons } from "../util.js";
20
21
  import { TIME } from "./constant.js";
21
- import SuffixIcon from "./SuffixIcon.js";
22
22
  import useComponents from "./useComponents.js";
23
+ import useSuffix from "./useSuffix.js";
23
24
  import { computed, createVNode, defineComponent, mergeProps, shallowRef } from "vue";
24
25
  import { clsx } from "@v-c/util";
25
26
  import { SwapRightOutlined } from "@antdv-next/icons";
@@ -31,7 +32,12 @@ function generateRangePicker(generateConfig) {
31
32
  const { size: customizeSize, disabled: customDisabled, status: customStatus, variant: customVariant, classes, styles, rootClass, bordered } = toPropsRefs(props, "size", "disabled", "status", "variant", "classes", "styles", "rootClass", "bordered", "separator");
32
33
  const pickerType = computed(() => props.picker === TIME ? "timePicker" : "datePicker");
33
34
  const { prefixCls, direction, getPopupContainer, rootPrefixCls, class: contextClassName, style: contextStyle, separator: contextSeparator } = useComponentBaseConfig("rangePicker", props, ["separator"], "picker");
34
- const { allowClear: contextAllowClear, clearIcon: contextClearIcon } = useComponentBaseConfig(pickerType.value, props, ["allowClear", "clearIcon"], "picker");
35
+ const { suffix: contextSuffix, suffixIcon: contextSuffixIcon, allowClear: contextAllowClear, clearIcon: contextClearIcon } = useComponentBaseConfig(pickerType.value, props, [
36
+ "suffix",
37
+ "suffixIcon",
38
+ "allowClear",
39
+ "clearIcon"
40
+ ], "picker");
35
41
  const { compactSize, compactItemClassnames } = useCompactItemContext(prefixCls, direction);
36
42
  const mergedSize = useSize((ctx) => customizeSize.value ?? compactSize.value ?? ctx);
37
43
  const disabled = useDisabledContext();
@@ -93,7 +99,7 @@ function generateRangePicker(generateConfig) {
93
99
  return propValue;
94
100
  };
95
101
  if (isDev) {
96
- const warning = devUseWarning("DatePicker.RangePicker");
102
+ const warning = devUseWarning(props.picker === TIME ? "TimePicker.RangePicker" : "DatePicker.RangePicker");
97
103
  Object.entries({
98
104
  dropdownClassName: "classes.popup.root",
99
105
  popupClassName: "classes.popup.root",
@@ -102,6 +108,7 @@ function generateRangePicker(generateConfig) {
102
108
  }).forEach(([oldProp, newProp]) => {
103
109
  warning.deprecated(!props[oldProp], oldProp, newProp);
104
110
  });
111
+ warning.deprecated(props.suffixIcon === void 0 && !slots.suffixIcon, "suffixIcon", "suffix");
105
112
  }
106
113
  expose({
107
114
  focus: (options) => innerRef.value?.focus?.(options),
@@ -109,9 +116,10 @@ function generateRangePicker(generateConfig) {
109
116
  nativeElement: computed(() => innerRef.value?.nativeElement)
110
117
  });
111
118
  return () => {
112
- const { placeholder, components, placement, suffixIcon, prefix, allowClear, clearIcon, popupClassName: _popupClassName, dropdownClassName: _dropdownClassName, popupStyle: _popupStyle, rootClass: _rootClass, classes: _classes, styles: _styles, status: _status, variant: _variant, bordered: _bordered, size: _size, disabled: _disabled, locale: _locale, getPopupContainer: _getPopupContainer, autoComplete, autocomplete, ...restProps } = props;
119
+ const { placeholder, components, placement, suffix, suffixIcon, prefix, allowClear, clearIcon, popupClassName: _popupClassName, dropdownClassName: _dropdownClassName, popupStyle: _popupStyle, rootClass: _rootClass, classes: _classes, styles: _styles, status: _status, variant: _variant, bordered: _bordered, size: _size, disabled: _disabled, locale: _locale, getPopupContainer: _getPopupContainer, autoComplete, autocomplete, ...restProps } = props;
113
120
  const { className, style, restAttrs } = getAttrStyleAndClass(attrs, void 0, props);
114
- const mergedSuffixIcon = getSlotPropsFnRun(slots, { suffixIcon }, "suffixIcon", false);
121
+ const customSuffix = getSlotPropsFnRun(slots, { suffix }, "suffix", false);
122
+ const customSuffixIcon = getSlotPropsFnRun(slots, { suffixIcon }, "suffixIcon", false);
115
123
  const mergedPrefix = getSlotPropsFnRun(slots, { prefix }, "prefix", false);
116
124
  const [mergedAllowClear] = useIcons({
117
125
  allowClear,
@@ -119,16 +127,16 @@ function generateRangePicker(generateConfig) {
119
127
  }, prefixCls.value, {
120
128
  allowClear: contextAllowClear?.value,
121
129
  clearIcon: contextClearIcon?.value
122
- });
130
+ }, locale$1.value?.lang?.clear);
123
131
  const mergedComponents = useComponents(components);
124
132
  const { hasFeedback, status: contextStatus, feedbackIcon } = useFormItemInputContext().value;
125
133
  const mergedStatus = getMergedStatus(contextStatus, customStatus.value);
126
- const suffixNode = createVNode(SuffixIcon, {
134
+ const mergedSuffix = useSuffix({
127
135
  picker: props.picker,
128
136
  hasFeedback,
129
137
  feedbackIcon,
130
- suffixIcon: mergedSuffixIcon
131
- }, null);
138
+ suffix: fallbackProp(customSuffix, customSuffixIcon, contextSuffix?.value, contextSuffixIcon?.value)
139
+ });
132
140
  const mergedClassName = clsx({
133
141
  [`${prefixCls.value}-${mergedSize.value}`]: mergedSize.value,
134
142
  [`${prefixCls.value}-${variant.value}`]: enableVariantCls.value
@@ -162,7 +170,7 @@ function generateRangePicker(generateConfig) {
162
170
  "disabled": mergedDisabled.value,
163
171
  "placement": placement,
164
172
  "placeholder": getRangePlaceholder(locale$1.value, props.picker, placeholder),
165
- "suffix": suffixNode,
173
+ "suffix": mergedSuffix,
166
174
  "prefix": mergedPrefix,
167
175
  "prevIcon": createVNode("span", { "class": `${prefixCls.value}-prev-icon` }, null),
168
176
  "nextIcon": createVNode("span", { "class": `${prefixCls.value}-next-icon` }, null),
@@ -18,6 +18,8 @@ interface DatePickerEmits<DateType = AnyObject> {
18
18
  'keydown': (e: KeyboardEvent, preventDefault: VoidFunction) => void;
19
19
  }
20
20
  interface DatePickerSlots {
21
+ suffix?: () => any;
22
+ /** @deprecated Please use `suffix` instead */
21
23
  suffixIcon?: () => any;
22
24
  prefix?: () => any;
23
25
  renderExtraFooter?: (mode: PickerMode) => any;
@@ -6,20 +6,21 @@ import { useCompactItemContext } from "../../space/Compact.js";
6
6
  import { ContextIsolator } from "../../_util/ContextIsolator.js";
7
7
  import { getAttrStyleAndClass } from "../../_util/hooks/useMergeSemantic.js";
8
8
  import { useZIndex } from "../../_util/hooks/useZIndex.js";
9
+ import fallbackProp from "../../_util/fallbackProp.js";
9
10
  import { getSlotPropsFnRun, toPropsRefs } from "../../_util/tools.js";
10
11
  import useCSSVarCls from "../../config-provider/hooks/useCSSVarCls.js";
11
12
  import { useDisabledContext } from "../../config-provider/DisabledContext.js";
13
+ import { useVariants } from "../../form/hooks/useVariant.js";
12
14
  import locale from "../locale/en_US.js";
13
15
  import useLocale from "../../locale/useLocale.js";
14
16
  import { omitUndefined } from "../../_util/omitUndefined.js";
15
17
  import { getMergedStatus, getStatusClassNames } from "../../_util/statusUtils.js";
16
- import { useVariants } from "../../form/hooks/useVariant.js";
17
18
  import style_default from "../style/index.js";
18
19
  import useMergedPickerSemantic from "../hooks/useMergedPickerSemantic.js";
19
20
  import { getPlaceholder, useIcons } from "../util.js";
20
21
  import { MONTH, MONTHPICKER, QUARTER, QUARTERPICKER, TIME, TIMEPICKER, WEEK, WEEKPICKER, YEAR, YEARPICKER } from "./constant.js";
21
- import SuffixIcon from "./SuffixIcon.js";
22
22
  import useComponents from "./useComponents.js";
23
+ import useSuffix from "./useSuffix.js";
23
24
  import { computed, createVNode, defineComponent, mergeProps, shallowRef } from "vue";
24
25
  import { clsx } from "@v-c/util";
25
26
  import { getTransitionName } from "@v-c/util/dist/utils/transition";
@@ -31,7 +32,8 @@ function generatePicker(generateConfig) {
31
32
  const name = displayName ? `A${displayName}` : "ADatePicker";
32
33
  return /* @__PURE__ */ defineComponent((props, { slots, attrs, emit, expose }) => {
33
34
  const { getPopupContainer: customGetPopupContainer, size: customizeSize, disabled: customDisabled, status: customStatus, variant: customVariant, classes, styles, rootClass, bordered } = toPropsRefs(props, "prefixCls", "getPopupContainer", "size", "disabled", "status", "variant", "classes", "styles", "rootClass", "bordered");
34
- const { prefixCls, direction, getPopupContainer, rootPrefixCls, class: contextClassName, style: contextStyle, suffixIcon: contextSuffixIcon, allowClear: contextAllowClear, clearIcon: contextClearIcon } = useComponentBaseConfig(pickerType, props, [
35
+ const { prefixCls, direction, getPopupContainer, rootPrefixCls, class: contextClassName, style: contextStyle, suffix: contextSuffix, suffixIcon: contextSuffixIcon, allowClear: contextAllowClear, clearIcon: contextClearIcon } = useComponentBaseConfig(pickerType, props, [
36
+ "suffix",
35
37
  "suffixIcon",
36
38
  "allowClear",
37
39
  "clearIcon"
@@ -114,6 +116,7 @@ function generatePicker(generateConfig) {
114
116
  }).forEach(([oldProp, newProp]) => {
115
117
  warning.deprecated(!props[oldProp], oldProp, newProp);
116
118
  });
119
+ warning.deprecated(props.suffixIcon === void 0 && !slots.suffixIcon, "suffixIcon", "suffix");
117
120
  }
118
121
  expose({
119
122
  focus: (options) => innerRef.value?.focus?.(options),
@@ -121,9 +124,10 @@ function generatePicker(generateConfig) {
121
124
  nativeElement: computed(() => innerRef.value?.nativeElement)
122
125
  });
123
126
  return () => {
124
- const { placeholder, components, placement, suffixIcon, prefix, allowClear, clearIcon, popupClassName: _popupClassName, dropdownClassName: _dropdownClassName, popupStyle: _popupStyle, rootClass: _rootClass, classes: _classes, styles: _styles, status: _status, variant: _variant, bordered: _bordered, size: _size, disabled: _disabled, locale: _locale, getPopupContainer: _getPopupContainer, autoComplete, autocomplete, ...restProps } = props;
127
+ const { placeholder, components, placement, suffix, suffixIcon, prefix, allowClear, clearIcon, popupClassName: _popupClassName, dropdownClassName: _dropdownClassName, popupStyle: _popupStyle, rootClass: _rootClass, classes: _classes, styles: _styles, status: _status, variant: _variant, bordered: _bordered, size: _size, disabled: _disabled, locale: _locale, getPopupContainer: _getPopupContainer, autoComplete, autocomplete, ...restProps } = props;
125
128
  const { className, style, restAttrs } = getAttrStyleAndClass(attrs, void 0, props);
126
- const mergedSuffixIcon = getSlotPropsFnRun(slots, { suffixIcon }, "suffixIcon", false);
129
+ const customSuffix = getSlotPropsFnRun(slots, { suffix }, "suffix", false);
130
+ const customSuffixIcon = getSlotPropsFnRun(slots, { suffixIcon }, "suffixIcon", false);
127
131
  const mergedPrefix = getSlotPropsFnRun(slots, { prefix }, "prefix", false);
128
132
  const [mergedAllowClear, removeIcon] = useIcons({
129
133
  allowClear,
@@ -132,16 +136,16 @@ function generatePicker(generateConfig) {
132
136
  }, prefixCls.value, {
133
137
  allowClear: contextAllowClear?.value,
134
138
  clearIcon: contextClearIcon?.value
135
- });
139
+ }, locale$1.value?.lang?.clear);
136
140
  const mergedComponents = useComponents(components);
137
141
  const { hasFeedback, status: contextStatus, feedbackIcon } = useFormItemInputContext().value;
138
142
  const mergedStatus = getMergedStatus(contextStatus, customStatus.value);
139
- const suffixNode = createVNode(SuffixIcon, {
143
+ const mergedSuffix = useSuffix({
140
144
  picker: mergedPicker.value,
141
145
  hasFeedback,
142
146
  feedbackIcon,
143
- suffixIcon: mergedSuffixIcon === void 0 ? contextSuffixIcon?.value : mergedSuffixIcon
144
- }, null);
147
+ suffix: fallbackProp(customSuffix, customSuffixIcon, contextSuffix?.value, contextSuffixIcon?.value)
148
+ });
145
149
  const mergedClassName = clsx({
146
150
  [`${prefixCls.value}-${mergedSize.value}`]: mergedSize.value,
147
151
  [`${prefixCls.value}-${variant.value}`]: enableVariantCls.value
@@ -166,7 +170,7 @@ function generatePicker(generateConfig) {
166
170
  "ref": innerRef,
167
171
  "autoComplete": autoComplete ?? autocomplete,
168
172
  "placeholder": getPlaceholder(locale$1.value, mergedPicker.value, placeholder),
169
- "suffix": suffixNode,
173
+ "suffix": mergedSuffix,
170
174
  "prefix": mergedPrefix,
171
175
  "placement": placement,
172
176
  "prevIcon": createVNode("span", { "class": `${prefixCls.value}-prev-icon` }, null),
@@ -2,8 +2,8 @@ import PickerButton from "../PickerButton.js";
2
2
  //#region src/date-picker/generatePicker/useComponents.ts
3
3
  function useComponents(components) {
4
4
  return {
5
- button: PickerButton,
6
- ...components ?? {}
5
+ ...components ?? {},
6
+ okButton: components?.okButton ?? components?.button ?? PickerButton
7
7
  };
8
8
  }
9
9
  //#endregion
@@ -0,0 +1,12 @@
1
+ import { VueNode } from "../../_util/type.js";
2
+ import { PickerMode } from "@v-c/picker";
3
+ //#region src/date-picker/generatePicker/useSuffix.d.ts
4
+ interface UseSuffixProps {
5
+ picker?: PickerMode;
6
+ hasFeedback?: boolean;
7
+ feedbackIcon?: VueNode;
8
+ suffix?: VueNode;
9
+ }
10
+ declare function useSuffix({ picker, hasFeedback, feedbackIcon, suffix }: UseSuffixProps): VueNode;
11
+ //#endregion
12
+ export { UseSuffixProps, useSuffix as default };
@@ -0,0 +1,11 @@
1
+ import { TIME } from "./constant.js";
2
+ import { Fragment, createVNode } from "vue";
3
+ import { CalendarOutlined, ClockCircleOutlined } from "@antdv-next/icons";
4
+ //#region src/date-picker/generatePicker/useSuffix.tsx
5
+ function useSuffix({ picker, hasFeedback, feedbackIcon, suffix }) {
6
+ if (suffix === null || suffix === false) return null;
7
+ if (suffix === true || suffix === void 0) return createVNode(Fragment, null, [picker === TIME ? createVNode(ClockCircleOutlined, { "aria-hidden": "true" }, null) : createVNode(CalendarOutlined, { "aria-hidden": "true" }, null), hasFeedback ? feedbackIcon : null]);
8
+ return suffix;
9
+ }
10
+ //#endregion
11
+ export { useSuffix as default };
@@ -1,3 +1,4 @@
1
+ import { genLinkStyle } from "../../style/index.js";
1
2
  import { unit } from "@antdv-next/cssinjs";
2
3
  import { FastColor } from "@ant-design/fast-color";
3
4
  //#region src/date-picker/style/panel.ts
@@ -355,17 +356,19 @@ const genPickerPanelStyle = (token) => {
355
356
  paddingInline: unit(paddingSM),
356
357
  overflow: "hidden",
357
358
  textAlign: "start",
358
- listStyle: "none",
359
359
  display: "flex",
360
360
  justifyContent: "center",
361
361
  alignItems: "center",
362
- "> li": {
362
+ [`${componentCls}-now`]: {
363
+ ...genLinkStyle(token).a,
364
+ padding: 0,
365
+ border: 0,
366
+ font: "inherit",
363
367
  lineHeight: unit(token.calc(textHeight).sub(token.calc(lineWidth).mul(2)).equal()),
364
- display: "inline-block"
365
- },
366
- [`${componentCls}-now-btn-disabled`]: {
367
- pointerEvents: "none",
368
- color: token.colorTextDisabled
368
+ "&:disabled": {
369
+ pointerEvents: "none",
370
+ color: token.colorTextDisabled
371
+ }
369
372
  },
370
373
  [`${componentCls}-preset > ${antCls}-tag-blue`]: {
371
374
  color: colorPrimary,
@@ -374,7 +377,7 @@ const genPickerPanelStyle = (token) => {
374
377
  cursor: "pointer"
375
378
  },
376
379
  [`${componentCls}-ok`]: {
377
- paddingBlock: token.calc(lineWidth).mul(2).equal(),
380
+ marginBlock: token.calc(textHeight).sub(token.controlHeightSM).div(2).add(lineWidth).equal(),
378
381
  marginInlineStart: "auto"
379
382
  }
380
383
  }
@@ -9,15 +9,11 @@ declare function getRangePlaceholder(locale: PickerLocale, picker?: PickerMode,
9
9
  declare function useIcons(props: Pick<PickerProps$1, 'allowClear' | 'clearIcon' | 'removeIcon'>, prefixCls: string, context?: {
10
10
  allowClear?: AllowClear;
11
11
  clearIcon?: VueNode;
12
- }): readonly [false, string | number | boolean | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
13
- [key: string]: any;
14
- }> | RenderNodeFn<any[]> | null] | readonly [{
12
+ }, defaultLabel?: string): readonly [false, string | number | boolean | import("vue/jsx-runtime").JSX.Element | RenderNodeFn<any[]> | null] | readonly [{
15
13
  readonly disabled?: boolean;
16
14
  readonly tabIndex?: number;
17
15
  readonly label?: string;
18
16
  readonly clearIcon: any;
19
- }, string | number | boolean | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
20
- [key: string]: any;
21
- }> | RenderNodeFn<any[]> | null];
17
+ }, string | number | boolean | import("vue/jsx-runtime").JSX.Element | RenderNodeFn<any[]> | null];
22
18
  //#endregion
23
19
  export { getPlaceholder, getRangePlaceholder, useIcons };
@@ -1,5 +1,5 @@
1
- import useIcons$1 from "../select/useIcons.js";
2
1
  import useAllowClear from "../_util/hooks/useAllowClear.js";
2
+ import useIcons$1 from "../select/useIcons.js";
3
3
  import { cloneVNode, isVNode } from "vue";
4
4
  //#region src/date-picker/util.ts
5
5
  function getPlaceholder(locale, picker, customizePlaceholder) {
@@ -20,7 +20,7 @@ function getRangePlaceholder(locale, picker, customizePlaceholder) {
20
20
  if (picker === "time" && locale.timePickerLocale.rangePlaceholder) return locale.timePickerLocale.rangePlaceholder;
21
21
  return locale.lang.rangePlaceholder;
22
22
  }
23
- function useIcons(props, prefixCls, context) {
23
+ function useIcons(props, prefixCls, context, defaultLabel) {
24
24
  const { removeIcon } = useIcons$1({
25
25
  ...props,
26
26
  prefixCls,
@@ -31,7 +31,8 @@ function useIcons(props, prefixCls, context) {
31
31
  clearIcon: props.clearIcon,
32
32
  contextAllowClear: context?.allowClear,
33
33
  contextClearIcon: context?.clearIcon,
34
- defaultAllowClear: true
34
+ defaultAllowClear: true,
35
+ defaultLabel
35
36
  });
36
37
  if (!mergedAllowClear) return [false, removeIcon];
37
38
  const { clearIcon: mergedClearIcon, ...rest } = mergedAllowClear;
@@ -8,23 +8,23 @@ declare function useItems(screens: Ref<ScreenMap>, items: Ref<DescriptionsItemTy
8
8
  filled: boolean;
9
9
  _$index: number;
10
10
  key?: import("@v-c/util/dist/type").Key;
11
- styles?: CellSemanticStyles | undefined;
11
+ label?: VueNode;
12
12
  style?: import("vue").CSSProperties | undefined;
13
+ class?: string | undefined;
13
14
  classes?: CellSemanticClassNames | undefined;
15
+ styles?: CellSemanticStyles | undefined;
14
16
  rootClass?: string | undefined;
15
17
  content?: VueNode;
16
- label?: VueNode;
17
- class?: string | undefined;
18
18
  } | {
19
19
  span: number | undefined;
20
20
  key?: import("@v-c/util/dist/type").Key;
21
- styles?: CellSemanticStyles | undefined;
21
+ label?: VueNode;
22
22
  style?: import("vue").CSSProperties | undefined;
23
+ class?: string | undefined;
23
24
  classes?: CellSemanticClassNames | undefined;
25
+ styles?: CellSemanticStyles | undefined;
24
26
  rootClass?: string | undefined;
25
27
  content?: VueNode;
26
- label?: VueNode;
27
- class?: string | undefined;
28
28
  _$index: number;
29
29
  })[]>;
30
30
  //#endregion
@@ -16,7 +16,7 @@ import Row from "./Row.js";
16
16
  import style_default from "./style/index.js";
17
17
  import { computed, createVNode, defineComponent, mergeDefaults, mergeProps, shallowRef } from "vue";
18
18
  import { classNames } from "@v-c/util";
19
- import { omit } from "es-toolkit";
19
+ import { omit as omit$1 } from "es-toolkit";
20
20
  //#region src/descriptions/index.tsx
21
21
  const Descriptions = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose }) => {
22
22
  const { class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, prefixCls, direction } = useComponentBaseConfig("descriptions", props);
@@ -83,7 +83,7 @@ const Descriptions = /* @__PURE__ */ defineComponent((props, { slots, attrs, exp
83
83
  }, attrs.class, rootClass, hashId.value, cssVarCls.value),
84
84
  "id": props.id,
85
85
  "style": [mergedStyles.value.root, attrs.style]
86
- }, omit(attrs, ["class", "style"])), [(hasTitle || hasExtra) && createVNode("div", {
86
+ }, omit$1(attrs, ["class", "style"])), [(hasTitle || hasExtra) && createVNode("div", {
87
87
  "class": classNames(`${prefixCls.value}-header`, mergedClassNames.value?.header),
88
88
  "style": mergedStyles.value.header
89
89
  }, [hasTitle && createVNode("div", {
@@ -3,8 +3,9 @@ import { useComponentBaseConfig } from "../config-provider/context.js";
3
3
  import { useSize } from "../config-provider/hooks/useSize.js";
4
4
  import { pureAttrs, useMergeSemantic, useSemanticRootStyle, useToArr } from "../_util/hooks/useMergeSemantic.js";
5
5
  import { toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
6
+ import useVariant from "../form/hooks/useVariant.js";
6
7
  import style_default from "./style/index.js";
7
- import { Fragment, computed, createVNode, defineComponent, mergeDefaults, mergeProps, shallowRef } from "vue";
8
+ import { Fragment, computed, createVNode, defineComponent, mergeDefaults, mergeProps, shallowRef, toRef } from "vue";
8
9
  import { classNames } from "@v-c/util";
9
10
  import { filterEmpty } from "@v-c/util/dist/props-util";
10
11
  //#region src/divider/index.tsx
@@ -18,6 +19,14 @@ const titlePlacementList = [
18
19
  const Divider = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose }) => {
19
20
  const { class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, direction, prefixCls } = useComponentBaseConfig("divider", props);
20
21
  const { type, vertical, orientation, classes, styles, size } = toPropsRefs$1(props, "orientation", "vertical", "type", "classes", "styles", "size");
22
+ const [variant] = useVariant("divider", toRef(() => props.variant), {
23
+ variants: [
24
+ "dashed",
25
+ "dotted",
26
+ "solid"
27
+ ],
28
+ defaultVariant: "solid"
29
+ });
21
30
  const [hashId, cssVarCls] = style_default(prefixCls);
22
31
  const sizeFullName = useSize(size);
23
32
  const validTitlePlacement = computed(() => titlePlacementList.includes(orientation.value || ""));
@@ -33,6 +42,7 @@ const Divider = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose }
33
42
  const mergedProps = computed(() => {
34
43
  return {
35
44
  ...props,
45
+ variant: variant.value,
36
46
  orientation: mergedOrientation.value,
37
47
  titlePlacement: mergedTitlePlacement.value,
38
48
  size: sizeFullName.value
@@ -51,7 +61,8 @@ const Divider = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose }
51
61
  const nativeElementRef = shallowRef();
52
62
  expose({ nativeElement: nativeElementRef });
53
63
  return () => {
54
- const { variant, dashed, plain, rootClass } = props;
64
+ const mergedVariant = variant.value;
65
+ const { dashed, plain, rootClass } = props;
55
66
  const children = filterEmpty(slots?.default?.());
56
67
  const hasChildren = children.length > 0;
57
68
  const railCls = `${prefixCls.value}-rail`;
@@ -59,7 +70,7 @@ const Divider = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose }
59
70
  [`${prefixCls.value}-with-text`]: hasChildren,
60
71
  [`${prefixCls.value}-with-text-${mergedTitlePlacement.value}`]: hasChildren,
61
72
  [`${prefixCls.value}-dashed`]: !!dashed,
62
- [`${prefixCls.value}-${variant}`]: variant !== "solid",
73
+ [`${prefixCls.value}-${mergedVariant}`]: mergedVariant !== "solid",
63
74
  [`${prefixCls.value}-plain`]: !!plain,
64
75
  [`${prefixCls.value}-rtl`]: direction.value === "rtl",
65
76
  [`${prefixCls.value}-no-default-orientation-margin-start`]: hasMarginStart.value,
@@ -155,7 +166,6 @@ const Divider = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose }
155
166
  }
156
167
  }, {
157
168
  orientation: "center",
158
- variant: "solid",
159
169
  type: "horizontal",
160
170
  orientationMargin: void 0
161
171
  }),
@@ -5,7 +5,7 @@ import { useMergedMask } from "../_util/hooks/useMergedMask.js";
5
5
  import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
6
6
  import { ZIndexProvider } from "../_util/zindexContext.js";
7
7
  import { useZIndex } from "../_util/hooks/useZIndex.js";
8
- import { toPropsRefs } from "../_util/tools.js";
8
+ import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
9
9
  import { isRenderable } from "../_util/is.js";
10
10
  import useFocusable from "./useFocusable.js";
11
11
  import { usePanelRef } from "../watermark/context.js";
@@ -91,7 +91,7 @@ const Drawer = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs }) =
91
91
  }, rootClass, hashId.value, cssVarCls.value, mergedClassNames.value.root);
92
92
  const getContainer = customizeGetContainer === void 0 && getPopupContainer ? () => getPopupContainer(document.body) : customizeGetContainer;
93
93
  const ariaLabelledby = restAttrs["aria-labelledby"];
94
- const ariaId = isRenderable(rest.title) ? id : void 0;
94
+ const ariaId = isRenderable(getSlotPropsFnRun(slots, rest, "title")) ? id : void 0;
95
95
  return createVNode(ContextIsolator, {
96
96
  "form": true,
97
97
  "space": true