antdv-next 1.4.1 → 1.4.2

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 (207) hide show
  1. package/dist/_util/hooks/useClosable.d.ts +5 -5
  2. package/dist/_util/vueNode.d.ts +2 -2
  3. package/dist/alert/Alert.d.ts +7 -7
  4. package/dist/antd-with-locales.esm.js +13320 -11032
  5. package/dist/antd-with-locales.js +80 -80
  6. package/dist/antd.css +1 -1
  7. package/dist/antd.esm.js +11449 -10208
  8. package/dist/antd.js +74 -74
  9. package/dist/auto-complete/index.d.ts +4 -4
  10. package/dist/avatar/Avatar.d.ts +3 -3
  11. package/dist/badge/Ribbon.d.ts +2 -2
  12. package/dist/badge/index.d.ts +3 -3
  13. package/dist/breadcrumb/Breadcrumb.d.ts +4 -4
  14. package/dist/breadcrumb/BreadcrumbItem.d.ts +4 -4
  15. package/dist/button/Button.d.ts +2 -2
  16. package/dist/button/style/index.js +13 -0
  17. package/dist/calendar/generateCalendar.d.ts +8 -8
  18. package/dist/card/Card.d.ts +9 -9
  19. package/dist/card/CardMeta.d.ts +4 -4
  20. package/dist/carousel/index.d.ts +3 -3
  21. package/dist/cascader/Panel.js +26 -2
  22. package/dist/cascader/index.d.ts +53 -21
  23. package/dist/cascader/index.js +33 -5
  24. package/dist/checkbox/Checkbox.d.ts +1 -1
  25. package/dist/checkbox/Checkbox.js +4 -4
  26. package/dist/checkbox/Group.d.ts +2 -2
  27. package/dist/collapse/Collapse.d.ts +3 -3
  28. package/dist/collapse/CollapsePanel.d.ts +3 -3
  29. package/dist/color-picker/hooks/useModeColor.d.ts +2 -2
  30. package/dist/color-picker/interface.d.ts +2 -2
  31. package/dist/config-provider/context.d.ts +20 -14
  32. package/dist/config-provider/index.js +1 -1
  33. package/dist/date-picker/generatePicker/generateRangePicker.d.ts +2 -2
  34. package/dist/date-picker/generatePicker/generateRangePicker.js +112 -10
  35. package/dist/date-picker/generatePicker/generateSinglePicker.d.ts +2 -2
  36. package/dist/date-picker/generatePicker/generateSinglePicker.js +101 -11
  37. package/dist/date-picker/generatePicker/useComponents.d.ts +2 -2
  38. package/dist/date-picker/util.d.ts +10 -1
  39. package/dist/descriptions/Item.d.ts +3 -3
  40. package/dist/descriptions/hooks/useItems.d.ts +11 -11
  41. package/dist/descriptions/index.d.ts +3 -3
  42. package/dist/descriptions/style/index.js +2 -3
  43. package/dist/drawer/DrawerPanel.d.ts +5 -5
  44. package/dist/empty/index.d.ts +3 -3
  45. package/dist/float-button/FloatButton.d.ts +5 -5
  46. package/dist/float-button/FloatButton.js +1 -1
  47. package/dist/float-button/FloatButtonGroup.d.ts +2 -2
  48. package/dist/form/ErrorList.d.ts +2 -2
  49. package/dist/image/index.d.ts +2 -2
  50. package/dist/input/Input.d.ts +5 -5
  51. package/dist/input/OTP/index.d.ts +2 -2
  52. package/dist/input/Password.d.ts +2 -2
  53. package/dist/input/Search.d.ts +3 -3
  54. package/dist/input/TextArea.js +1 -1
  55. package/dist/input/style/search.js +1 -0
  56. package/dist/input-number/index.d.ts +8 -8
  57. package/dist/input-number/index.js +0 -4
  58. package/dist/layout/layout.js +54 -48
  59. package/dist/locale/ar_EG.js +18 -4
  60. package/dist/locale/az_AZ.js +2 -1
  61. package/dist/locale/bg_BG.js +44 -3
  62. package/dist/locale/bn_BD.js +20 -4
  63. package/dist/locale/by_BY.js +17 -3
  64. package/dist/locale/ca_ES.js +22 -4
  65. package/dist/locale/cs_CZ.js +6 -3
  66. package/dist/locale/da_DK.js +34 -3
  67. package/dist/locale/de_DE.js +14 -4
  68. package/dist/locale/el_GR.js +4 -2
  69. package/dist/locale/en_GB.js +6 -3
  70. package/dist/locale/en_US.js +2 -1
  71. package/dist/locale/es_ES.js +17 -3
  72. package/dist/locale/et_EE.js +17 -3
  73. package/dist/locale/eu_ES.js +8 -4
  74. package/dist/locale/fa_IR.js +2 -1
  75. package/dist/locale/fi_FI.js +35 -4
  76. package/dist/locale/fr_BE.js +20 -3
  77. package/dist/locale/fr_CA.js +20 -3
  78. package/dist/locale/fr_FR.js +20 -3
  79. package/dist/locale/ga_IE.js +24 -5
  80. package/dist/locale/gl_ES.js +36 -5
  81. package/dist/locale/he_IL.js +30 -5
  82. package/dist/locale/hi_IN.js +20 -4
  83. package/dist/locale/hr_HR.js +21 -4
  84. package/dist/locale/hu_HU.js +43 -3
  85. package/dist/locale/hy_AM.js +33 -4
  86. package/dist/locale/id_ID.js +2 -1
  87. package/dist/locale/is_IS.js +44 -3
  88. package/dist/locale/it_IT.js +6 -3
  89. package/dist/locale/ja_JP.js +2 -1
  90. package/dist/locale/ka_GE.js +20 -4
  91. package/dist/locale/kk_KZ.js +22 -5
  92. package/dist/locale/km_KH.js +35 -4
  93. package/dist/locale/kmr_IQ.js +45 -4
  94. package/dist/locale/kn_IN.js +18 -3
  95. package/dist/locale/ko_KR.js +8 -4
  96. package/dist/locale/ku_IQ.js +45 -4
  97. package/dist/locale/lt_LT.js +8 -4
  98. package/dist/locale/lv_LV.js +45 -4
  99. package/dist/locale/mk_MK.js +36 -4
  100. package/dist/locale/ml_IN.js +20 -4
  101. package/dist/locale/mn_MN.js +17 -3
  102. package/dist/locale/mr_IN.js +13 -1
  103. package/dist/locale/ms_MY.js +8 -4
  104. package/dist/locale/my_MM.js +18 -5
  105. package/dist/locale/ne_NP.js +2 -1
  106. package/dist/locale/nl_BE.js +20 -4
  107. package/dist/locale/nl_NL.js +20 -4
  108. package/dist/locale/pl_PL.js +17 -3
  109. package/dist/locale/pt_BR.js +6 -3
  110. package/dist/locale/pt_PT.js +2 -1
  111. package/dist/locale/ro_RO.js +20 -4
  112. package/dist/locale/ru_RU.js +4 -2
  113. package/dist/locale/si_LK.js +17 -3
  114. package/dist/locale/sk_SK.js +17 -3
  115. package/dist/locale/sl_SI.js +45 -4
  116. package/dist/locale/sr_RS.js +20 -4
  117. package/dist/locale/sv_SE.js +14 -4
  118. package/dist/locale/ta_IN.js +23 -5
  119. package/dist/locale/th_TH.js +2 -1
  120. package/dist/locale/tk_TK.js +21 -5
  121. package/dist/locale/tr_TR.js +17 -2
  122. package/dist/locale/uk_UA.js +12 -3
  123. package/dist/locale/ur_PK.js +20 -4
  124. package/dist/locale/uz_UZ.js +14 -4
  125. package/dist/locale/vi_VN.js +2 -1
  126. package/dist/locale/zh_CN.js +2 -1
  127. package/dist/locale/zh_HK.js +4 -2
  128. package/dist/locale/zh_TW.js +4 -2
  129. package/dist/masonry/Masonry.d.ts +18 -10
  130. package/dist/masonry/MasonryItem.d.ts +2 -2
  131. package/dist/mentions/index.d.ts +4 -4
  132. package/dist/mentions/index.js +62 -1
  133. package/dist/menu/MenuItem.d.ts +3 -3
  134. package/dist/menu/MenuItem.js +1 -1
  135. package/dist/menu/MenuItemGroup.d.ts +2 -2
  136. package/dist/menu/OverrideContext.d.ts +2 -2
  137. package/dist/menu/SubMenu.d.ts +2 -2
  138. package/dist/message/PureList.d.ts +3 -1
  139. package/dist/message/PureList.js +4 -0
  140. package/dist/message/interface.d.ts +3 -3
  141. package/dist/modal/ConfirmDialog.d.ts +5 -1
  142. package/dist/modal/ConfirmDialog.js +40 -19
  143. package/dist/modal/Modal.d.ts +12 -3
  144. package/dist/modal/Modal.js +24 -7
  145. package/dist/modal/interface.d.ts +14 -14
  146. package/dist/notification/PureList.d.ts +3 -1
  147. package/dist/notification/PureList.js +4 -0
  148. package/dist/notification/interface.d.ts +8 -8
  149. package/dist/notification/util.d.ts +2 -2
  150. package/dist/package.js +1 -1
  151. package/dist/pagination/Pagination.js +1 -1
  152. package/dist/pagination/interface.d.ts +7 -7
  153. package/dist/pagination/style/index.js +1 -1
  154. package/dist/popconfirm/index.d.ts +6 -6
  155. package/dist/popover/index.d.ts +4 -4
  156. package/dist/radio/radio.js +4 -4
  157. package/dist/radio/radioButton.js +4 -4
  158. package/dist/result/index.d.ts +5 -5
  159. package/dist/segmented/index.d.ts +38 -20
  160. package/dist/segmented/index.js +5 -10
  161. package/dist/select/index.d.ts +4 -4
  162. package/dist/select/style/select-input-customize.js +1 -0
  163. package/dist/slider/index.js +1 -1
  164. package/dist/space/Compact.d.ts +1 -1
  165. package/dist/space/index.d.ts +2 -2
  166. package/dist/spin/index.d.ts +5 -5
  167. package/dist/splitter/SplitBar.js +12 -1
  168. package/dist/splitter/interface.d.ts +6 -6
  169. package/dist/statistic/Statistic.d.ts +4 -4
  170. package/dist/steps/index.d.ts +6 -6
  171. package/dist/style/motion/util.js +2 -2
  172. package/dist/switch/index.d.ts +4 -4
  173. package/dist/switch/index.js +7 -7
  174. package/dist/switch/style/index.js +3 -1
  175. package/dist/table/InternalTable.js +8 -25
  176. package/dist/table/Table.d.ts +20 -9
  177. package/dist/table/hooks/useColumnTitleProps.d.ts +8 -0
  178. package/dist/table/hooks/useColumnTitleProps.js +16 -0
  179. package/dist/table/hooks/useFilter/FilterDropdown.js +2 -1
  180. package/dist/table/hooks/useSpinProps.d.ts +7 -0
  181. package/dist/table/hooks/useSpinProps.js +14 -0
  182. package/dist/table/util.d.ts +5 -2
  183. package/dist/table/util.js +10 -1
  184. package/dist/tabs/index.d.ts +5 -5
  185. package/dist/tag/CheckableTag.d.ts +2 -2
  186. package/dist/tag/index.d.ts +3 -3
  187. package/dist/time-picker/index.d.ts +2 -2
  188. package/dist/time-picker/index.js +211 -19
  189. package/dist/timeline/Timeline.d.ts +9 -9
  190. package/dist/tooltip/PurePanel.js +1 -1
  191. package/dist/tooltip/index.d.ts +3 -3
  192. package/dist/tour/interface.d.ts +4 -4
  193. package/dist/transfer/Actions.d.ts +2 -2
  194. package/dist/transfer/Transfer.d.ts +2 -2
  195. package/dist/transfer/index.d.ts +27 -6
  196. package/dist/transfer/interface.d.ts +17 -17
  197. package/dist/transfer/search.d.ts +2 -2
  198. package/dist/tree/Tree.d.ts +6 -6
  199. package/dist/tree-select/index.d.ts +57 -28
  200. package/dist/tree-select/index.js +4 -3
  201. package/dist/typography/Base/Ellipsis.d.ts +2 -2
  202. package/dist/typography/Editable.d.ts +2 -2
  203. package/dist/typography/interface.d.ts +8 -8
  204. package/dist/upload/UploadList/index.js +1 -1
  205. package/package.json +10 -10
  206. package/web-tags.json +1674 -1662
  207. package/web-types.json +4801 -4762
@@ -1,8 +1,17 @@
1
1
  import { ModalEmits, ModalProps, ModalSlots } from "./interface.js";
2
- import { SlotsType } from "vue";
2
+ import { CSSProperties, SlotsType } from "vue";
3
3
 
4
4
  //#region src/modal/Modal.d.ts
5
- interface InternalModalProps extends ModalProps, ModalEmitsProps {}
5
+ interface ModalSemanticRenderInfo {
6
+ classNames: Record<string, string | undefined>;
7
+ styles: Record<string, CSSProperties | undefined>;
8
+ }
9
+ interface InternalModalProps extends ModalProps, ModalEmitsProps {
10
+ /** @private Internal usage for Modal static methods. Do not use in your production. */
11
+ _semanticOmit?: string[];
12
+ /** @private Internal usage for Modal static methods. Do not use in your production. */
13
+ _renderSemanticContent?: (semantic: ModalSemanticRenderInfo) => any;
14
+ }
6
15
  interface ModalEmitsProps {
7
16
  onOk?: ModalEmits['ok'];
8
17
  onCancel?: ModalEmits['cancel'];
@@ -10,4 +19,4 @@ interface ModalEmitsProps {
10
19
  }
11
20
  declare const Modal: import("vue").DefineSetupFnComponent<InternalModalProps, ModalEmits, SlotsType<ModalSlots>, InternalModalProps, import("vue").PublicProps>;
12
21
  //#endregion
13
- export { InternalModalProps, ModalEmitsProps, Modal as default };
22
+ export { InternalModalProps, ModalEmitsProps, ModalSemanticRenderInfo, Modal as default };
@@ -187,11 +187,20 @@ const Modal = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
187
187
  "mousePosition",
188
188
  "focusTriggerAfterClose",
189
189
  "panelRef",
190
- "focusable"
190
+ "focusable",
191
+ "_semanticOmit",
192
+ "_renderSemanticContent"
191
193
  ]);
194
+ const { _semanticOmit, _renderSemanticContent } = props;
195
+ const dialogClassNames = _semanticOmit ? omit(mergedClassNames.value, _semanticOmit) : mergedClassNames.value;
196
+ const dialogStyles = _semanticOmit ? omit(mergedStyles.value, _semanticOmit) : mergedStyles.value;
197
+ const renderSemanticContent = () => _renderSemanticContent ? _renderSemanticContent({
198
+ classNames: mergedClassNames.value,
199
+ styles: mergedStyles.value
200
+ }) : slots.default?.();
192
201
  const titleNode = getSlotPropsFnRun(slots, props, "title");
193
202
  const mergedClassName = clsx(hashId.value, contextClassName.value, className);
194
- const mergedRootClassName = clsx(hashId.value, rootClassRef.value, cssVarCls.value, rootCls.value, mergedClassNames.value.root);
203
+ const mergedRootClassName = clsx(hashId.value, rootClassRef.value, cssVarCls.value, rootCls.value, dialogClassNames.root);
195
204
  const getContainer = customizeGetContainer === void 0 ? getContextPopupContainer : customizeGetContainer;
196
205
  return createVNode(ContextIsolator, {
197
206
  "form": true,
@@ -204,7 +213,7 @@ const Modal = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
204
213
  "rootClassName": mergedRootClassName,
205
214
  "rootStyle": {
206
215
  ...rootStyleRef.value,
207
- ...mergedStyles.value.root
216
+ ...dialogStyles.root
208
217
  },
209
218
  "footer": dialogFooter,
210
219
  "title": titleNode,
@@ -227,10 +236,10 @@ const Modal = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
227
236
  ...attrStyle
228
237
  },
229
238
  "classNames": {
230
- ...mergedClassNames.value,
231
- wrapper: clsx(mergedClassNames.value.wrapper, wrapClassNameExtended)
239
+ ...dialogClassNames,
240
+ wrapper: clsx(dialogClassNames.wrapper, wrapClassNameExtended)
232
241
  },
233
- "styles": mergedStyles.value,
242
+ "styles": dialogStyles,
234
243
  "panelRef": mergedPanelRef,
235
244
  "destroyOnHidden": destroyOnHidden ?? destroyOnClose,
236
245
  "modalRender": mergedModalRender
@@ -239,10 +248,18 @@ const Modal = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
239
248
  "title": false,
240
249
  "paragraph": { rows: 4 },
241
250
  "class": `${prefixCls.value}-body-skeleton`
242
- }, null) : slots.default?.()] })] })] });
251
+ }, null) : renderSemanticContent()] })] })] });
243
252
  };
244
253
  }, {
245
254
  props: /*@__PURE__*/ mergeDefaults({
255
+ _semanticOmit: {
256
+ type: Array,
257
+ required: false
258
+ },
259
+ _renderSemanticContent: {
260
+ type: Function,
261
+ required: false
262
+ },
246
263
  open: {
247
264
  type: Boolean,
248
265
  required: false,
@@ -1,5 +1,5 @@
1
1
  import { MaskType } from "../_util/hooks/useMergedMask.js";
2
- import { VueNode as VueNode$1 } from "../_util/type.js";
2
+ import { VueNode } from "../_util/type.js";
3
3
  import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
4
4
  import { Breakpoint } from "../_util/responsiveObserver.js";
5
5
  import { ClosableType } from "../_util/hooks/useClosable.js";
@@ -42,8 +42,8 @@ interface ModalSemanticStyles {
42
42
  type ModalClassNamesType = SemanticClassNamesType<ModalProps, ModalSemanticClassNames>;
43
43
  type ModalStylesType = SemanticStylesType<ModalProps, ModalSemanticStyles>;
44
44
  interface ModalCommonProps extends Omit<DialogProps, 'footer' | 'width' | 'onClose' | 'animation' | 'maskAnimation' | 'transitionName' | 'maskTransitionName' | 'mask' | 'classNames' | 'styles' | 'modalRender' | 'rootStyle' | 'style' | OmitFocusType> {
45
- footer?: VueNode$1 | ((params: {
46
- originNode: VueNode$1;
45
+ footer?: VueNode | ((params: {
46
+ originNode: VueNode;
47
47
  extra: {
48
48
  OkBtn: any;
49
49
  CancelBtn: any;
@@ -63,7 +63,7 @@ interface ModalProps extends ModalCommonProps {
63
63
  /** Whether to apply loading visual effect for OK button or not */
64
64
  confirmLoading?: boolean;
65
65
  /** The modal dialog's title */
66
- title?: VueNode$1;
66
+ title?: VueNode;
67
67
  afterClose?: () => void;
68
68
  /** Callback when the animation ends when Modal is turned on and off */
69
69
  afterOpenChange?: (open: boolean) => void;
@@ -72,11 +72,11 @@ interface ModalProps extends ModalCommonProps {
72
72
  /** Width of the modal dialog */
73
73
  width?: string | number | Partial<Record<Breakpoint, string | number>>;
74
74
  /** Text of the OK button */
75
- okText?: VueNode$1;
75
+ okText?: VueNode;
76
76
  /** Button `type` of the OK button */
77
77
  okType?: LegacyButtonType;
78
78
  /** Text of the Cancel button */
79
- cancelText?: VueNode$1;
79
+ cancelText?: VueNode;
80
80
  /** Force render Modal */
81
81
  forceRender?: boolean;
82
82
  okButtonProps?: ButtonProps;
@@ -109,7 +109,7 @@ interface ModalProps extends ModalCommonProps {
109
109
  scrollLock?: boolean;
110
110
  wrapProps?: any;
111
111
  prefixCls?: string;
112
- closeIcon?: VueNode$1;
112
+ closeIcon?: VueNode;
113
113
  modalRender?: (node: any) => any;
114
114
  focusTriggerAfterClose?: boolean;
115
115
  mousePosition?: MousePosition;
@@ -133,7 +133,7 @@ interface ModalSlots {
133
133
  closeIcon?: () => any;
134
134
  modalRender?: (node: any) => any;
135
135
  footer?: (params: {
136
- originNode: VueNode$1;
136
+ originNode: VueNode;
137
137
  extra: {
138
138
  OkBtn: any;
139
139
  CancelBtn: any;
@@ -146,8 +146,8 @@ interface ModalFuncProps extends ModalCommonProps {
146
146
  class?: string;
147
147
  rootClass?: string;
148
148
  open?: boolean;
149
- title?: VueNode$1;
150
- content?: VueNode$1;
149
+ title?: VueNode;
150
+ content?: VueNode;
151
151
  onOk?: (...args: any[]) => any;
152
152
  onCancel?: (...args: any[]) => any;
153
153
  onClose?: DialogProps['onClose'];
@@ -156,10 +156,10 @@ interface ModalFuncProps extends ModalCommonProps {
156
156
  cancelButtonProps?: ButtonProps;
157
157
  centered?: boolean;
158
158
  width?: string | number;
159
- okText?: VueNode$1;
159
+ okText?: VueNode;
160
160
  okType?: LegacyButtonType;
161
- cancelText?: VueNode$1;
162
- icon?: VueNode$1;
161
+ cancelText?: VueNode;
162
+ icon?: VueNode;
163
163
  mask?: MaskType;
164
164
  maskClosable?: boolean;
165
165
  zIndex?: number;
@@ -179,7 +179,7 @@ interface ModalFuncProps extends ModalCommonProps {
179
179
  direction?: DirectionType;
180
180
  /** @deprecated Please use `styles.body` instead */
181
181
  bodyStyle?: CSSProperties;
182
- closeIcon?: VueNode$1;
182
+ closeIcon?: VueNode;
183
183
  footer?: ModalProps['footer'];
184
184
  modalRender?: ModalProps['modalRender'];
185
185
  focusTriggerAfterClose?: boolean;
@@ -1,5 +1,6 @@
1
+ import { VueNode } from "../_util/type.js";
1
2
  import { IconType, NotificationClassNamesType, NotificationPlacement } from "./interface.js";
2
- import { CSSProperties, SlotsType, VueNode } from "vue";
3
+ import { CSSProperties, SlotsType } from "vue";
3
4
 
4
5
  //#region src/notification/PureList.d.ts
5
6
  interface PureListItem {
@@ -12,6 +13,7 @@ interface PureListItem {
12
13
  showProgress?: boolean;
13
14
  }
14
15
  interface PureListProps {
16
+ prefixCls?: string;
15
17
  items: PureListItem[];
16
18
  placement?: NotificationPlacement;
17
19
  classes?: NotificationClassNamesType;
@@ -45,6 +45,10 @@ const PureList = /* @__PURE__ */ defineComponent((props) => {
45
45
  };
46
46
  }, {
47
47
  props: {
48
+ prefixCls: {
49
+ type: String,
50
+ required: false
51
+ },
48
52
  items: {
49
53
  type: Array,
50
54
  required: true
@@ -1,4 +1,4 @@
1
- import { VueNode as VueNode$1 } from "../_util/type.js";
1
+ import { VueNode } from "../_util/type.js";
2
2
  import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
3
3
  import { ClosableType } from "../_util/hooks/useClosable.js";
4
4
  import { AppContext, CSSProperties, HTMLAttributes } from "vue";
@@ -29,15 +29,15 @@ interface NotificationSemanticStyles {
29
29
  type NotificationClassNamesType = SemanticClassNamesType<ArgsProps, NotificationSemanticClassNames>;
30
30
  type NotificationStylesType = SemanticStylesType<ArgsProps, NotificationSemanticStyles>;
31
31
  interface ArgsProps {
32
- title?: VueNode$1;
33
- description?: VueNode$1;
34
- actions?: VueNode$1;
32
+ title?: VueNode;
33
+ description?: VueNode;
34
+ actions?: VueNode;
35
35
  key?: Key;
36
36
  onClose?: () => void;
37
37
  duration?: number | false;
38
38
  showProgress?: boolean;
39
39
  pauseOnHover?: boolean;
40
- icon?: VueNode$1;
40
+ icon?: VueNode;
41
41
  placement?: NotificationPlacement;
42
42
  style?: CSSProperties;
43
43
  class?: string;
@@ -45,7 +45,7 @@ interface ArgsProps {
45
45
  styles?: NotificationStylesType;
46
46
  readonly type?: IconType;
47
47
  onClick?: () => void;
48
- closeIcon?: VueNode$1;
48
+ closeIcon?: VueNode;
49
49
  closable?: boolean | (Exclude<ClosableType, boolean> & {
50
50
  onClose?: () => void;
51
51
  });
@@ -66,7 +66,7 @@ interface NotificationConfig {
66
66
  duration?: number | false;
67
67
  showProgress?: boolean;
68
68
  pauseOnHover?: boolean;
69
- closeIcon?: VueNode$1;
69
+ closeIcon?: VueNode;
70
70
  classes?: NotificationClassNamesType;
71
71
  styles?: NotificationStylesType;
72
72
  }
@@ -88,7 +88,7 @@ interface GlobalConfigProps {
88
88
  prefixCls?: string;
89
89
  getContainer?: () => HTMLElement | ShadowRoot;
90
90
  placement?: NotificationPlacement;
91
- closeIcon?: VueNode$1;
91
+ closeIcon?: VueNode;
92
92
  closable?: ClosableType;
93
93
  rtl?: boolean;
94
94
  maxCount?: number;
@@ -1,4 +1,4 @@
1
- import { VueNode as VueNode$1 } from "../_util/type.js";
1
+ import { VueNode } from "../_util/type.js";
2
2
  import { NotificationConfig, NotificationPlacement } from "./interface.js";
3
3
  import { NotificationConfig as NotificationConfig$1 } from "../config-provider/context.js";
4
4
  import { CSSProperties } from "vue";
@@ -17,6 +17,6 @@ declare function getPlacementOffsetStyle(top?: number | string, bottom?: number
17
17
  /** @deprecated kept for the message wrapper; routes through getPlacementOffsetStyle. */
18
18
  declare function getPlacementStyle(_placement: NotificationPlacement, top: number, bottom: number): CSSProperties;
19
19
  declare function getMotion(prefixCls: string): CSSMotionProps;
20
- declare function getCloseIconConfig(closeIcon: VueNode$1, notificationConfig?: NotificationConfig, notification?: NotificationConfig$1): VueNode$1;
20
+ declare function getCloseIconConfig(closeIcon: VueNode, notificationConfig?: NotificationConfig, notification?: NotificationConfig$1): VueNode;
21
21
  //#endregion
22
22
  export { getCloseIconConfig, getMotion, getPlacementOffsetStyle, getPlacementStyle };
package/dist/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "1.4.1";
2
+ var version = "1.4.2";
3
3
  //#endregion
4
4
  export { version };
@@ -78,7 +78,7 @@ const Pagination = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
78
78
  propSelectOnChange?.(nextSize, option);
79
79
  },
80
80
  "size": mergedSize.value,
81
- "class": clsx(sizeChangerClassName, propSelectClass)
81
+ "class": clsx(`${prefixCls.value}-options-size-changer-select`, sizeChangerClassName, propSelectClass)
82
82
  }), null);
83
83
  };
84
84
  if (isDev) devUseWarning("Pagination")(!props.selectComponentClass, "usage", "`selectComponentClass` is not official api which will be removed.");
@@ -1,4 +1,4 @@
1
- import { VueNode as VueNode$1 } from "../_util/type.js";
1
+ import { VueNode } from "../_util/type.js";
2
2
  import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
3
3
  import { SizeType } from "../config-provider/SizeContext.js";
4
4
  import { SelectProps } from "../select/index.js";
@@ -33,7 +33,7 @@ type PaginationClassNamesType = SemanticClassNamesType<PaginationProps, Paginati
33
33
  type PaginationStylesType = SemanticStylesType<PaginationProps, PaginationSemanticStyles>;
34
34
  interface PaginationProps extends Omit<PaginationProps$1, 'className' | 'style' | 'classNames' | 'styles' | 'locale' | 'showSizeChanger' | 'pageSizeOptions' | 'prevIcon' | 'nextIcon' | 'jumpPrevIcon' | 'jumpNextIcon' | 'onChange' | 'onShowSizeChange'> {
35
35
  showQuickJumper?: boolean | {
36
- goButton?: VueNode$1;
36
+ goButton?: VueNode;
37
37
  };
38
38
  size?: SizeType;
39
39
  responsive?: boolean;
@@ -44,10 +44,10 @@ interface PaginationProps extends Omit<PaginationProps$1, 'className' | 'style'
44
44
  classes?: PaginationClassNamesType;
45
45
  styles?: PaginationStylesType;
46
46
  locale?: PaginationLocale;
47
- prevIcon?: VueNode$1;
48
- nextIcon?: VueNode$1;
49
- jumpPrevIcon?: VueNode$1;
50
- jumpNextIcon?: VueNode$1;
47
+ prevIcon?: VueNode;
48
+ nextIcon?: VueNode;
49
+ jumpPrevIcon?: VueNode;
50
+ jumpNextIcon?: VueNode;
51
51
  /** @deprecated Not official support. Will be removed in next major version. */
52
52
  selectComponentClass?: any;
53
53
  }
@@ -65,7 +65,7 @@ interface PaginationSlots {
65
65
  itemRender?: (ctx: {
66
66
  page: number;
67
67
  type: 'page' | 'prev' | 'next' | 'jump-prev' | 'jump-next';
68
- element: VueNode$1;
68
+ element: VueNode;
69
69
  }) => any;
70
70
  showTotal?: (ctx: {
71
71
  total: number;
@@ -279,7 +279,7 @@ const genPaginationJumpStyle = (token) => {
279
279
  display: "inline-block",
280
280
  marginInlineStart: token.margin,
281
281
  verticalAlign: "middle",
282
- "&-size-changer": { width: "auto" },
282
+ [`&-size-changer, &-size-changer${componentCls}-options-size-changer-select`]: { width: "auto" },
283
283
  "&-quick-jumper": {
284
284
  display: "inline-block",
285
285
  height: varRef(`item-size-actual`),
@@ -1,4 +1,4 @@
1
- import { VueNode as VueNode$1 } from "../_util/type.js";
1
+ import { VueNode } from "../_util/type.js";
2
2
  import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
3
3
  import { TooltipEmits, TooltipRef } from "../tooltip/index.js";
4
4
  import { PopoverProps, PopoverSemanticClassNames, PopoverSemanticName, PopoverSemanticStyles } from "../popover/index.js";
@@ -17,16 +17,16 @@ type PopconfirmSemanticStyles = PopoverSemanticStyles & {
17
17
  type PopconfirmClassNamesType = SemanticClassNamesType<PopconfirmProps, PopconfirmSemanticClassNames>;
18
18
  type PopconfirmStylesType = SemanticStylesType<PopconfirmProps, PopconfirmSemanticStyles>;
19
19
  interface PopconfirmProps extends Omit<PopoverProps, 'title' | 'content' | 'classes' | 'styles' | 'onOpenChange'>, PopconfirmEmitsProps {
20
- title?: VueNode$1;
21
- description?: VueNode$1;
20
+ title?: VueNode;
21
+ description?: VueNode;
22
22
  disabled?: boolean;
23
- okText?: VueNode$1;
24
- cancelText?: VueNode$1;
23
+ okText?: VueNode;
24
+ cancelText?: VueNode;
25
25
  okType?: LegacyButtonType;
26
26
  okButtonProps?: ButtonProps;
27
27
  cancelButtonProps?: ButtonProps;
28
28
  showCancel?: boolean;
29
- icon?: VueNode$1;
29
+ icon?: VueNode;
30
30
  classes?: PopconfirmClassNamesType;
31
31
  styles?: PopconfirmStylesType;
32
32
  onConfirm?: (e?: MouseEvent) => void;
@@ -1,4 +1,4 @@
1
- import { VueNode as VueNode$1 } from "../_util/type.js";
1
+ import { VueNode } from "../_util/type.js";
2
2
  import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
3
3
  import { TooltipEmits, TooltipProps, TooltipRef, TooltipSemanticClassNames, TooltipSemanticStyles } from "../tooltip/index.js";
4
4
  import { App, CSSProperties, SlotsType } from "vue";
@@ -15,9 +15,9 @@ type PopoverSemanticStyles = TooltipSemanticStyles & {
15
15
  };
16
16
  type PopoverClassNamesType = SemanticClassNamesType<PopoverProps, PopoverSemanticClassNames>;
17
17
  type PopoverStylesType = SemanticStylesType<PopoverProps, PopoverSemanticStyles>;
18
- interface PopoverProps extends TooltipProps, PopoverEmitsProps {
19
- title?: VueNode$1;
20
- content?: VueNode$1;
18
+ interface PopoverProps extends Omit<TooltipProps, 'onOpenChange'>, PopoverEmitsProps {
19
+ title?: VueNode;
20
+ content?: VueNode;
21
21
  classes?: PopoverClassNamesType;
22
22
  styles?: PopoverStylesType;
23
23
  }
@@ -131,9 +131,9 @@ const InternalRadio = /* @__PURE__ */ defineComponent((props, { slots, expose, a
131
131
  },
132
132
  defaultChecked: {
133
133
  type: [
134
+ Boolean,
134
135
  String,
135
136
  Number,
136
- Boolean,
137
137
  Object
138
138
  ],
139
139
  required: false,
@@ -141,9 +141,9 @@ const InternalRadio = /* @__PURE__ */ defineComponent((props, { slots, expose, a
141
141
  },
142
142
  checked: {
143
143
  type: [
144
+ Boolean,
144
145
  String,
145
146
  Number,
146
- Boolean,
147
147
  Object
148
148
  ],
149
149
  required: false,
@@ -192,9 +192,9 @@ const InternalRadio = /* @__PURE__ */ defineComponent((props, { slots, expose, a
192
192
  },
193
193
  checkedValue: {
194
194
  type: [
195
+ Boolean,
195
196
  String,
196
197
  Number,
197
- Boolean,
198
198
  Object
199
199
  ],
200
200
  required: false,
@@ -202,9 +202,9 @@ const InternalRadio = /* @__PURE__ */ defineComponent((props, { slots, expose, a
202
202
  },
203
203
  unCheckedValue: {
204
204
  type: [
205
+ Boolean,
205
206
  String,
206
207
  Number,
207
- Boolean,
208
208
  Object
209
209
  ],
210
210
  required: false,
@@ -13,9 +13,9 @@ const RadioButton = /* @__PURE__ */ defineComponent((props, { slots, attrs }) =>
13
13
  props: {
14
14
  defaultChecked: {
15
15
  type: [
16
+ Boolean,
16
17
  String,
17
18
  Number,
18
- Boolean,
19
19
  Object
20
20
  ],
21
21
  required: false,
@@ -23,9 +23,9 @@ const RadioButton = /* @__PURE__ */ defineComponent((props, { slots, attrs }) =>
23
23
  },
24
24
  checked: {
25
25
  type: [
26
+ Boolean,
26
27
  String,
27
28
  Number,
28
- Boolean,
29
29
  Object
30
30
  ],
31
31
  required: false,
@@ -74,9 +74,9 @@ const RadioButton = /* @__PURE__ */ defineComponent((props, { slots, attrs }) =>
74
74
  },
75
75
  checkedValue: {
76
76
  type: [
77
+ Boolean,
77
78
  String,
78
79
  Number,
79
- Boolean,
80
80
  Object
81
81
  ],
82
82
  required: false,
@@ -84,9 +84,9 @@ const RadioButton = /* @__PURE__ */ defineComponent((props, { slots, attrs }) =>
84
84
  },
85
85
  unCheckedValue: {
86
86
  type: [
87
+ Boolean,
87
88
  String,
88
89
  Number,
89
- Boolean,
90
90
  Object
91
91
  ],
92
92
  required: false,
@@ -1,4 +1,4 @@
1
- import { EmptyEmit, VueNode as VueNode$1 } from "../_util/type.js";
1
+ import { EmptyEmit, VueNode } from "../_util/type.js";
2
2
  import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
3
3
  import NoFound from "./noFound.js";
4
4
  import ServerError from "./serverError.js";
@@ -35,11 +35,11 @@ interface ResultSemanticStyles {
35
35
  type ResultClassNamesType = SemanticClassNamesType<ResultProps, ResultSemanticClassNames>;
36
36
  type ResultStylesType = SemanticStylesType<ResultProps, ResultSemanticStyles>;
37
37
  interface ResultProps extends ComponentBaseProps {
38
- icon?: VueNode$1;
38
+ icon?: VueNode;
39
39
  status?: ResultStatusType;
40
- title?: VueNode$1;
41
- subTitle?: VueNode$1;
42
- extra?: VueNode$1;
40
+ title?: VueNode;
41
+ subTitle?: VueNode;
42
+ extra?: VueNode;
43
43
  classes?: ResultClassNamesType;
44
44
  styles?: ResultStylesType;
45
45
  }
@@ -1,9 +1,9 @@
1
- import { VueNode as VueNode$1 } from "../_util/type.js";
1
+ import { VueNode } from "../_util/type.js";
2
2
  import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
3
3
  import { Orientation } from "../_util/hooks/useOrientation.js";
4
4
  import { SizeType } from "../config-provider/SizeContext.js";
5
5
  import { TooltipProps } from "../tooltip/index.js";
6
- import { App, CSSProperties, SlotsType } from "vue";
6
+ import { App, CSSProperties, PublicProps } from "vue";
7
7
  import { SegmentedLabeledOption as SegmentedLabeledOption$1, SegmentedProps as SegmentedProps$1, SegmentedRawOption, SegmentedValue } from "@v-c/segmented";
8
8
 
9
9
  //#region src/segmented/index.d.ts
@@ -27,15 +27,17 @@ interface SegmentedLabeledOptionWithoutIcon<ValueType = SegmentedValue> extends
27
27
  interface SegmentedLabeledOptionWithIcon<ValueType = SegmentedValue> extends Omit<SegmentedLabeledOption$1<ValueType>, 'label'> {
28
28
  label?: SegmentedLabeledOption$1['label'];
29
29
  /** Set icon for Segmented item */
30
- icon?: VueNode$1;
30
+ icon?: VueNode;
31
31
  tooltip?: string | TooltipProps;
32
32
  }
33
33
  type SegmentedLabeledOption<ValueType = SegmentedValue> = SegmentedLabeledOptionWithIcon<ValueType> | SegmentedLabeledOptionWithoutIcon<ValueType>;
34
34
  type SegmentedOptions<T = SegmentedRawOption> = (T | SegmentedLabeledOption<T>)[];
35
35
  type SegmentedClassNamesType = SemanticClassNamesType<SegmentedProps, SegmentedSemanticClassNames>;
36
36
  type SegmentedStylesType = SemanticStylesType<SegmentedProps, SegmentedSemanticStyles>;
37
- interface SegmentedProps extends Omit<SegmentedProps$1, 'size' | 'options' | 'itemRender' | 'styles' | 'classNames' | 'onChange'>, SegmentedEmitsProps {
38
- options: SegmentedOptions;
37
+ interface SegmentedProps<ValueType extends SegmentedValue = SegmentedValue> extends Omit<SegmentedProps$1, 'size' | 'options' | 'itemRender' | 'styles' | 'classNames' | 'onChange' | 'value' | 'defaultValue'>, SegmentedEmitsProps<ValueType> {
38
+ value?: ValueType;
39
+ defaultValue?: ValueType;
40
+ options: SegmentedOptions<ValueType>;
39
41
  rootClass?: string;
40
42
  /** Option to fit width to its parent's width */
41
43
  block?: boolean;
@@ -46,24 +48,40 @@ interface SegmentedProps extends Omit<SegmentedProps$1, 'size' | 'options' | 'it
46
48
  classes?: SegmentedClassNamesType;
47
49
  styles?: SegmentedStylesType;
48
50
  shape?: 'default' | 'round';
49
- iconRender?: (option: SegmentedLabeledOption) => any;
50
- labelRender?: (option: SegmentedLabeledOption) => any;
51
+ iconRender?: (option: SegmentedLabeledOption<ValueType>) => any;
52
+ labelRender?: (option: SegmentedLabeledOption<ValueType>) => any;
51
53
  }
52
- interface SegmentedEmits {
53
- 'change': (value: SegmentedValue) => void;
54
- 'update:value': (value: SegmentedValue) => void;
54
+ interface SegmentedEmits<ValueType extends SegmentedValue = SegmentedValue> {
55
+ 'change': (value: ValueType) => void;
56
+ 'update:value': (value: ValueType) => void;
55
57
  }
56
- interface SegmentedEmitsProps {
57
- onChange?: SegmentedEmits['change'];
58
- 'onUpdate:value'?: SegmentedEmits['update:value'];
58
+ interface SegmentedEmitsProps<ValueType extends SegmentedValue = SegmentedValue> {
59
+ onChange?: SegmentedEmits<ValueType>['change'];
60
+ 'onUpdate:value'?: SegmentedEmits<ValueType>['update:value'];
59
61
  }
60
- interface SegmentedSlots {
61
- iconRender: (option: SegmentedLabeledOption) => any;
62
- labelRender: (option: SegmentedLabeledOption) => any;
62
+ interface SegmentedSlots<ValueType extends SegmentedValue = SegmentedValue> {
63
+ iconRender: (option: SegmentedLabeledOption<ValueType>) => any;
64
+ labelRender: (option: SegmentedLabeledOption<ValueType>) => any;
63
65
  }
64
- declare const InternalSegmented: import("vue").DefineSetupFnComponent<SegmentedProps, SegmentedEmits, SlotsType<SegmentedSlots>, SegmentedProps, import("vue").PublicProps>;
65
- declare const Segmented: typeof InternalSegmented & {
66
+ interface SegmentedInstance<ValueType extends SegmentedValue = SegmentedValue> {
67
+ $props: SegmentedProps<ValueType> & PublicProps;
68
+ $emit: {
69
+ (event: 'change', value: ValueType): void;
70
+ (event: 'update:value', value: ValueType): void;
71
+ };
72
+ $slots: SegmentedSlots<ValueType>;
73
+ }
74
+ interface SegmentedConstructor {
75
+ new <ValueType extends SegmentedValue = SegmentedValue>(props: SegmentedProps<ValueType>): SegmentedInstance<ValueType>;
76
+ /**
77
+ * Non-generic fallback signature. TypeScript infers from the last overload,
78
+ * so this keeps render-function usage like `h(Segmented, props)` resolvable
79
+ * against Vue's `Constructor<P>` overload of `h` (see #634), while the
80
+ * generic signature above still drives template/Volar inference.
81
+ */
82
+ new (props: SegmentedProps<any>): SegmentedInstance<any>;
66
83
  install: (app: App) => void;
67
- };
84
+ }
85
+ declare const Segmented: SegmentedConstructor;
68
86
  //#endregion
69
- export { SegmentedClassNamesType, SegmentedEmits, SegmentedEmitsProps, SegmentedLabeledOption, SegmentedOptions, SegmentedProps, SegmentedSemanticClassNames, SegmentedSemanticName, SegmentedSemanticStyles, SegmentedSlots, SegmentedStylesType, Segmented as default };
87
+ export { SegmentedClassNamesType, SegmentedConstructor, SegmentedEmits, SegmentedEmitsProps, SegmentedLabeledOption, SegmentedOptions, SegmentedProps, SegmentedSemanticClassNames, SegmentedSemanticName, SegmentedSemanticStyles, SegmentedSlots, SegmentedStylesType, Segmented as default };
@@ -16,7 +16,7 @@ function _isSlot(s) {
16
16
  function isSegmentedLabeledOptionWithIcon(option, iconFromSlot) {
17
17
  return typeof option === "object" && !!(option?.icon || iconFromSlot?.length);
18
18
  }
19
- const Segmented = /* @__PURE__ */ defineComponent((props, { attrs, emit, slots }) => {
19
+ const InternalSegmented = /* @__PURE__ */ defineComponent((props, { attrs, emit, slots }) => {
20
20
  const defaultName = useId();
21
21
  const { prefixCls, direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles } = useComponentBaseConfig("segmented");
22
22
  const { classes, styles, size: customSize, orientation, vertical } = toPropsRefs$1(props, "classes", "styles", "size", "orientation", "vertical");
@@ -88,6 +88,8 @@ const Segmented = /* @__PURE__ */ defineComponent((props, { attrs, emit, slots }
88
88
  };
89
89
  }, {
90
90
  props: /*@__PURE__*/ mergeDefaults({
91
+ value: { required: false },
92
+ defaultValue: { required: false },
91
93
  options: {
92
94
  type: Array,
93
95
  required: true
@@ -134,14 +136,6 @@ const Segmented = /* @__PURE__ */ defineComponent((props, { attrs, emit, slots }
134
136
  type: Function,
135
137
  required: false
136
138
  },
137
- defaultValue: {
138
- type: [String, Number],
139
- required: false
140
- },
141
- value: {
142
- type: [String, Number],
143
- required: false
144
- },
145
139
  disabled: {
146
140
  type: Boolean,
147
141
  required: false,
@@ -171,8 +165,9 @@ const Segmented = /* @__PURE__ */ defineComponent((props, { attrs, emit, slots }
171
165
  name: "ASegmented",
172
166
  inheritAttrs: false
173
167
  });
168
+ const Segmented = InternalSegmented;
174
169
  Segmented.install = (app) => {
175
- app.component(Segmented.name, Segmented);
170
+ app.component(InternalSegmented.name, Segmented);
176
171
  };
177
172
  //#endregion
178
173
  export { Segmented as default };
@@ -1,4 +1,4 @@
1
- import { VueNode as VueNode$1 } from "../_util/type.js";
1
+ import { VueNode } from "../_util/type.js";
2
2
  import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
3
3
  import { SizeType } from "../config-provider/SizeContext.js";
4
4
  import { InputStatus } from "../_util/statusUtils.js";
@@ -12,12 +12,12 @@ type RawValue = string | number;
12
12
  interface LabeledValue {
13
13
  key?: string;
14
14
  value: RawValue;
15
- label: VueNode$1;
15
+ label: VueNode;
16
16
  }
17
17
  type SelectValue = RawValue | RawValue[] | LabeledValue | LabeledValue[] | undefined;
18
18
  interface InternalSelectProps extends ComponentBaseProps, Omit<SelectProps$1, 'mode' | 'classNames' | 'className' | 'style' | 'prefix' | 'styles'> {
19
- prefix?: VueNode$1;
20
- suffixIcon?: VueNode$1;
19
+ prefix?: VueNode;
20
+ suffixIcon?: VueNode;
21
21
  size?: SizeType;
22
22
  disabled?: boolean;
23
23
  mode?: 'multiple' | 'tags' | 'SECRET_COMBOBOX_MODE_DO_NOT_USE' | 'combobox';