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.
- package/dist/_util/ContextIsolator.js +12 -3
- package/dist/_util/PurePanel.js +17 -14
- package/dist/_util/fallbackProp.d.ts +13 -0
- package/dist/_util/fallbackProp.js +15 -0
- package/dist/_util/hooks/useAllowClear.d.ts +35 -0
- package/dist/_util/hooks/useAllowClear.js +34 -0
- package/dist/_util/hooks/useClosable.js +1 -1
- package/dist/_util/hooks/useMergeSemantic.js +3 -2
- package/dist/_util/omitUndefined.d.ts +13 -0
- package/dist/_util/omitUndefined.js +20 -0
- package/dist/_util/tools.d.ts +3 -1
- package/dist/_util/tools.js +6 -1
- package/dist/_util/wave/index.js +4 -2
- package/dist/_util/wave/style.d.ts +5 -1
- package/dist/_util/wave/useWave.d.ts +2 -1
- package/dist/_util/wave/useWave.js +4 -3
- package/dist/affix/style/index.d.ts +5 -1
- package/dist/alert/Alert.d.ts +6 -2
- package/dist/alert/Alert.js +135 -129
- package/dist/alert/style/index.d.ts +7 -4
- package/dist/alert/style/index.js +12 -9
- package/dist/anchor/style/index.d.ts +5 -1
- package/dist/antd-with-locales.esm.js +21947 -18522
- package/dist/antd-with-locales.js +82 -82
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +19553 -16771
- package/dist/antd.js +82 -82
- package/dist/app/style/index.d.ts +5 -1
- package/dist/auto-complete/index.js +1 -0
- package/dist/avatar/Avatar.js +2 -4
- package/dist/avatar/AvatarContext.d.ts +2 -2
- package/dist/avatar/style/index.d.ts +5 -1
- package/dist/badge/index.js +1 -1
- package/dist/badge/style/index.d.ts +5 -1
- package/dist/badge/style/index.js +2 -9
- package/dist/badge/style/ribbon.d.ts +5 -1
- package/dist/border-beam/BorderBeam.d.ts +8 -1
- package/dist/border-beam/BorderBeam.js +28 -14
- package/dist/border-beam/index.d.ts +2 -2
- package/dist/border-beam/style/index.d.ts +5 -1
- package/dist/breadcrumb/BreadcrumbItem.js +2 -2
- package/dist/breadcrumb/style/index.d.ts +5 -1
- package/dist/button/style/index.d.ts +5 -1
- package/dist/calendar/style/index.d.ts +4 -1
- package/dist/card/Card.js +1 -1
- package/dist/card/style/index.d.ts +5 -1
- package/dist/card/style/index.js +2 -2
- package/dist/carousel/index.js +1 -1
- package/dist/carousel/style/index.d.ts +5 -1
- package/dist/carousel/style/index.js +1 -1
- package/dist/cascader/Panel.js +3 -3
- package/dist/cascader/index.js +14 -6
- package/dist/cascader/style/index.d.ts +5 -1
- package/dist/cascader/style/panel.d.ts +5 -1
- package/dist/checkbox/Checkbox.js +6 -4
- package/dist/checkbox/Group.d.ts +19 -1
- package/dist/checkbox/Group.js +34 -5
- package/dist/checkbox/GroupContext.d.ts +3 -0
- package/dist/checkbox/index.d.ts +2 -2
- package/dist/checkbox/style/index.d.ts +4 -1
- package/dist/collapse/style/index.d.ts +4 -1
- package/dist/color-picker/ColorPicker.js +8 -12
- package/dist/color-picker/style/index.d.ts +5 -1
- package/dist/color-picker/style/input.js +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/config-provider/context.d.ts +16 -21
- package/dist/config-provider/context.js +32 -38
- package/dist/config-provider/define.d.ts +3 -1
- package/dist/config-provider/hooks/useCSSVarCls.d.ts +3 -0
- package/dist/config-provider/hooks/useCSSVarCls.js +4 -3
- package/dist/config-provider/index.d.ts +2 -2
- package/dist/config-provider/index.js +24 -1
- package/dist/date-picker/generatePicker/generateRangePicker.js +29 -4
- package/dist/date-picker/generatePicker/generateSinglePicker.js +32 -6
- package/dist/date-picker/generatePicker/interface.d.ts +4 -0
- package/dist/date-picker/generatePicker/useComponents.d.ts +3 -3
- package/dist/date-picker/style/index.d.ts +5 -1
- package/dist/date-picker/style/panel.js +1 -1
- package/dist/date-picker/style/util.js +1 -1
- package/dist/date-picker/util.d.ts +10 -12
- package/dist/date-picker/util.js +14 -7
- package/dist/descriptions/Cell.js +80 -75
- package/dist/descriptions/Row.js +14 -11
- package/dist/descriptions/hooks/useItems.d.ts +10 -10
- package/dist/descriptions/style/index.d.ts +5 -1
- package/dist/descriptions/style/index.js +11 -13
- package/dist/divider/style/index.d.ts +5 -1
- package/dist/divider/style/index.js +1 -1
- package/dist/drawer/DrawerPanel.js +7 -7
- package/dist/drawer/index.d.ts +0 -2
- package/dist/drawer/index.js +0 -1
- package/dist/drawer/style/index.d.ts +5 -1
- package/dist/dropdown/dropdown.d.ts +2 -0
- package/dist/dropdown/dropdown.js +11 -3
- package/dist/dropdown/style/index.d.ts +5 -1
- package/dist/dropdown/style/index.js +1 -1
- package/dist/empty/style/index.d.ts +5 -1
- package/dist/flex/index.js +1 -1
- package/dist/flex/style/index.d.ts +5 -1
- package/dist/float-button/FloatButtonGroup.js +1 -1
- package/dist/float-button/style/index.d.ts +5 -1
- package/dist/form/ErrorList.js +1 -1
- package/dist/form/Form.js +1 -1
- package/dist/form/FormItem/ItemHolder.js +1 -1
- package/dist/form/FormItem/index.js +38 -18
- package/dist/form/FormItemInput.js +1 -1
- package/dist/form/FormItemLabel.js +1 -1
- package/dist/form/context.d.ts +1 -1
- package/dist/form/hooks/useVariant.d.ts +1 -1
- package/dist/form/hooks/useVariant.js +1 -1
- package/dist/form/style/index.d.ts +5 -1
- package/dist/grid/style/index.d.ts +5 -2
- package/dist/image/hooks/useMergedPreviewConfig.d.ts +1 -0
- package/dist/image/hooks/useMergedPreviewConfig.js +2 -1
- package/dist/image/hooks/usePreviewConfig.d.ts +9 -9
- package/dist/image/style/index.d.ts +4 -1
- package/dist/index.d.ts +1 -1
- package/dist/input/Group.js +1 -1
- package/dist/input/Input.d.ts +2 -1
- package/dist/input/Input.js +8 -5
- package/dist/input/OTP/OTPInput.d.ts +2 -1
- package/dist/input/OTP/OTPInput.js +12 -3
- package/dist/input/OTP/index.d.ts +3 -1
- package/dist/input/OTP/index.js +15 -6
- package/dist/input/Password.js +7 -5
- package/dist/input/Search.js +4 -2
- package/dist/input/TextArea.d.ts +3 -1
- package/dist/input/TextArea.js +13 -8
- package/dist/input/style/index.d.ts +5 -2
- package/dist/input/style/index.js +1 -1
- package/dist/input/style/otp.d.ts +5 -1
- package/dist/input/style/search.d.ts +5 -1
- package/dist/input/style/textarea.d.ts +5 -1
- package/dist/input-number/index.d.ts +3 -6
- package/dist/input-number/index.js +8 -3
- package/dist/input-number/style/index.d.ts +5 -1
- package/dist/input-number/style/index.js +1 -5
- package/dist/layout/style/index.d.ts +5 -1
- package/dist/layout/style/sider.d.ts +5 -1
- package/dist/listy/index.d.ts +1 -1
- package/dist/listy/index.js +9 -7
- package/dist/listy/interface.d.ts +6 -1
- package/dist/listy/style/index.d.ts +5 -1
- package/dist/listy/style/index.js +4 -2
- package/dist/locale/ar_EG.js +9 -0
- package/dist/locale/az_AZ.js +9 -0
- package/dist/locale/bg_BG.js +9 -0
- package/dist/locale/bn_BD.js +9 -0
- package/dist/locale/by_BY.js +9 -0
- package/dist/locale/ca_ES.js +9 -0
- package/dist/locale/cs_CZ.js +9 -0
- package/dist/locale/da_DK.js +9 -0
- package/dist/locale/de_DE.js +9 -0
- package/dist/locale/el_GR.js +9 -0
- package/dist/locale/en_GB.js +11 -1
- package/dist/locale/en_US.js +11 -1
- package/dist/locale/es_ES.js +9 -0
- package/dist/locale/et_EE.js +9 -0
- package/dist/locale/eu_ES.js +9 -0
- package/dist/locale/fa_IR.js +9 -0
- package/dist/locale/fi_FI.js +10 -1
- package/dist/locale/fr_BE.js +9 -0
- package/dist/locale/fr_CA.js +9 -0
- package/dist/locale/fr_FR.js +9 -0
- package/dist/locale/ga_IE.js +9 -0
- package/dist/locale/gl_ES.js +9 -0
- package/dist/locale/he_IL.js +9 -0
- package/dist/locale/hi_IN.js +9 -0
- package/dist/locale/hr_HR.js +9 -0
- package/dist/locale/hu_HU.js +9 -0
- package/dist/locale/hy_AM.js +9 -0
- package/dist/locale/id_ID.js +9 -0
- package/dist/locale/index.d.ts +3 -0
- package/dist/locale/is_IS.js +9 -0
- package/dist/locale/it_IT.js +9 -0
- package/dist/locale/ja_JP.js +9 -0
- package/dist/locale/ka_GE.js +9 -0
- package/dist/locale/kk_KZ.js +9 -0
- package/dist/locale/km_KH.js +9 -0
- package/dist/locale/kmr_IQ.js +9 -0
- package/dist/locale/kn_IN.js +9 -0
- package/dist/locale/ko_KR.js +9 -0
- package/dist/locale/ku_IQ.js +9 -0
- package/dist/locale/lt_LT.js +9 -0
- package/dist/locale/lv_LV.js +9 -0
- package/dist/locale/mk_MK.js +9 -0
- package/dist/locale/ml_IN.js +9 -0
- package/dist/locale/mn_MN.js +9 -0
- package/dist/locale/mr_IN.js +9 -0
- package/dist/locale/ms_MY.js +9 -0
- package/dist/locale/my_MM.js +9 -0
- package/dist/locale/nb_NO.js +9 -0
- package/dist/locale/ne_NP.js +9 -0
- package/dist/locale/nl_BE.js +9 -0
- package/dist/locale/nl_NL.js +9 -0
- package/dist/locale/pl_PL.js +9 -0
- package/dist/locale/pt_BR.js +9 -0
- package/dist/locale/pt_PT.js +9 -0
- package/dist/locale/ro_RO.js +19 -10
- package/dist/locale/ru_RU.js +9 -0
- package/dist/locale/si_LK.js +9 -0
- package/dist/locale/sk_SK.js +9 -0
- package/dist/locale/sl_SI.js +9 -0
- package/dist/locale/sq_AL.js +9 -0
- package/dist/locale/sr_RS.js +9 -0
- package/dist/locale/sv_SE.js +9 -0
- package/dist/locale/ta_IN.js +10 -1
- package/dist/locale/th_TH.js +9 -0
- package/dist/locale/tk_TK.js +9 -0
- package/dist/locale/tr_TR.js +9 -0
- package/dist/locale/uk_UA.js +9 -0
- package/dist/locale/ur_PK.js +9 -0
- package/dist/locale/useLocale.d.ts +7 -2
- package/dist/locale/useLocale.js +12 -1
- package/dist/locale/uz_UZ.js +9 -0
- package/dist/locale/vi_VN.js +9 -0
- package/dist/locale/zh_CN.js +13 -3
- package/dist/locale/zh_HK.js +11 -1
- package/dist/locale/zh_TW.js +11 -1
- package/dist/masonry/Masonry.js +1 -1
- package/dist/masonry/style/index.d.ts +4 -1
- package/dist/mentions/index.d.ts +2 -3
- package/dist/mentions/index.js +10 -5
- package/dist/mentions/style/index.d.ts +5 -1
- package/dist/mentions/style/index.js +1 -1
- package/dist/menu/MenuContext.d.ts +2 -0
- package/dist/menu/MenuItem.js +25 -7
- package/dist/menu/index.js +5 -0
- package/dist/menu/menu.d.ts +3 -0
- package/dist/menu/menu.js +7 -0
- package/dist/message/style/index.d.ts +5 -1
- package/dist/modal/ConfirmDialog.js +14 -7
- package/dist/modal/style/index.d.ts +3 -1
- package/dist/notification/PurePanel.js +7 -12
- package/dist/notification/interface.d.ts +8 -0
- package/dist/notification/style/index.d.ts +4 -1
- package/dist/notification/style/index.js +1 -1
- package/dist/notification/style/placement.js +10 -7
- package/dist/notification/useNotification.js +5 -15
- package/dist/package.js +1 -1
- package/dist/pagination/Pagination.js +2 -2
- package/dist/pagination/style/index.d.ts +5 -1
- package/dist/pagination/useShowSizeChanger.d.ts +3 -0
- package/dist/pagination/useShowSizeChanger.js +1 -1
- package/dist/popconfirm/index.js +5 -5
- package/dist/popconfirm/style/index.d.ts +5 -1
- package/dist/popconfirm/style/index.js +1 -1
- package/dist/popover/index.js +5 -4
- package/dist/popover/style/index.d.ts +5 -1
- package/dist/popover/style/index.js +2 -2
- package/dist/progress/Circle.js +0 -8
- package/dist/progress/Line.js +1 -9
- package/dist/progress/Steps.js +0 -8
- package/dist/progress/progress.js +2 -14
- package/dist/progress/style/index.d.ts +5 -1
- package/dist/qrcode/index.js +4 -25
- package/dist/qrcode/interface.d.ts +1 -1
- package/dist/qrcode/style/index.d.ts +5 -1
- package/dist/radio/group.js +40 -7
- package/dist/radio/index.d.ts +2 -2
- package/dist/radio/interface.d.ts +19 -1
- package/dist/radio/radio.js +5 -3
- package/dist/radio/style/index.d.ts +5 -1
- package/dist/rate/style/index.d.ts +5 -1
- package/dist/result/index.js +3 -3
- package/dist/result/noFound.js +120 -140
- package/dist/result/serverError.js +132 -147
- package/dist/result/style/index.d.ts +5 -1
- package/dist/result/unauthorized.js +115 -129
- package/dist/segmented/index.js +1 -1
- package/dist/segmented/style/index.d.ts +5 -1
- package/dist/select/index.js +12 -5
- package/dist/select/style/dropdown.js +1 -1
- package/dist/select/style/index.d.ts +5 -1
- package/dist/select/style/index.js +2 -2
- package/dist/select/style/select-input-multiple.js +1 -1
- package/dist/select/usePopupRender.js +4 -1
- package/dist/skeleton/style/index.d.ts +5 -1
- package/dist/slider/index.d.ts +0 -3
- package/dist/slider/index.js +2 -2
- package/dist/slider/style/index.d.ts +5 -1
- package/dist/space/Compact.d.ts +1 -1
- package/dist/space/style/addon.d.ts +5 -1
- package/dist/space/style/compact.d.ts +5 -1
- package/dist/space/style/index.d.ts +5 -1
- package/dist/spin/style/index.d.ts +5 -1
- package/dist/splitter/SplitBar.js +9 -3
- package/dist/splitter/interface.d.ts +5 -1
- package/dist/splitter/style/index.d.ts +5 -1
- package/dist/statistic/style/index.d.ts +5 -1
- package/dist/steps/style/index.d.ts +5 -1
- package/dist/steps/style/index.js +1 -1
- package/dist/steps/style/inline.js +1 -1
- package/dist/style/motion/collapse.js +4 -10
- package/dist/switch/style/index.d.ts +5 -1
- package/dist/table/ExpandIcon.d.ts +9 -4
- package/dist/table/ExpandIcon.js +42 -20
- package/dist/table/InternalTable.js +72 -62
- package/dist/table/hooks/useLazyKVMap.js +1 -1
- package/dist/table/hooks/useSelection.js +73 -15
- package/dist/table/interface.d.ts +8 -0
- package/dist/table/style/index.d.ts +5 -1
- package/dist/table/style/index.js +1 -1
- package/dist/table/style/selection.js +1 -1
- package/dist/table/style/sorter.js +2 -2
- package/dist/table/util.d.ts +1 -1
- package/dist/tabs/index.js +9 -2
- package/dist/tabs/style/index.d.ts +5 -1
- package/dist/tabs/style/index.js +1 -1
- package/dist/tag/CheckableTagGroup.d.ts +2 -2
- package/dist/tag/hooks/useColor.d.ts +1 -1
- package/dist/tag/style/index.d.ts +5 -1
- package/dist/theme/context.js +2 -1
- package/dist/theme/useToken.d.ts +6 -2
- package/dist/theme/useToken.js +46 -14
- package/dist/theme/util/genStyleUtils.d.ts +13 -3
- package/dist/theme/util/genStyleUtils.js +42 -28
- package/dist/time-picker/index.js +34 -0
- package/dist/timeline/Timeline.js +1 -1
- package/dist/timeline/style/index.d.ts +5 -1
- package/dist/timeline/useItems.d.ts +2 -2
- package/dist/timeline/useItems.js +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/tooltip/style/index.d.ts +2 -2
- package/dist/tooltip/style/index.js +1 -1
- package/dist/tour/panelRender.js +3 -2
- package/dist/tour/style/index.d.ts +5 -1
- package/dist/transfer/Section.js +2 -1
- package/dist/transfer/Transfer.js +3 -1
- package/dist/transfer/style/index.d.ts +5 -1
- package/dist/tree/DirectoryTree.js +1 -1
- package/dist/tree/style/index.d.ts +4 -1
- package/dist/tree/style/index.js +1 -1
- package/dist/tree-select/index.js +15 -9
- package/dist/tree-select/style/index.d.ts +2 -2
- package/dist/typography/Base/index.js +23 -2
- package/dist/typography/Link.js +5 -0
- package/dist/typography/Paragraph.js +5 -0
- package/dist/typography/Text.js +5 -0
- package/dist/typography/Title.js +5 -0
- package/dist/typography/hooks/useMergedConfig.js +1 -1
- package/dist/typography/interface.d.ts +8 -1
- package/dist/typography/style/index.d.ts +5 -1
- package/dist/typography/style/index.js +2 -1
- package/dist/typography/style/mixins.d.ts +2 -1
- package/dist/typography/style/mixins.js +26 -3
- package/dist/upload/Upload.d.ts +1 -0
- package/dist/upload/Upload.js +10 -3
- package/dist/upload/UploadList/ListItem.js +8 -3
- package/dist/upload/interface.d.ts +1 -0
- package/dist/upload/style/index.d.ts +5 -1
- package/dist/version/token-meta.json +1 -1
- package/dist/version/token.json +1 -1
- package/dist/watermark/index.js +1 -1
- package/global.d.ts +5 -0
- package/package.json +17 -17
- package/web-tags.json +5053 -3004
- package/web-types.json +13207 -7299
- package/dist/_util/getAllowClear.d.ts +0 -6
- package/dist/_util/getAllowClear.js +0 -11
|
@@ -3,9 +3,10 @@ import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
|
3
3
|
import useToken from "../theme/useToken.js";
|
|
4
4
|
import { normalizeMaskConfig } from "../_util/hooks/useMergedMask.js";
|
|
5
5
|
import "../_util/hooks/useZIndex.js";
|
|
6
|
+
import fallbackProp from "../_util/fallbackProp.js";
|
|
6
7
|
import { getSlotPropsFnRun } from "../_util/tools.js";
|
|
7
8
|
import ConfigProvider from "../config-provider/index.js";
|
|
8
|
-
import isNonNullable from "../_util/
|
|
9
|
+
import { isNonNullable, isRenderable } from "../_util/is.js";
|
|
9
10
|
import useLocale from "../locale/useLocale.js";
|
|
10
11
|
import { useModalProvider } from "./context.js";
|
|
11
12
|
import ConfirmCancelBtn from "./components/ConfirmCancelBtn.js";
|
|
@@ -31,6 +32,12 @@ const ConfirmContent = /* @__PURE__ */ defineComponent((props) => {
|
|
|
31
32
|
const mergedOkCancel = computed(() => {
|
|
32
33
|
return props.okCancel ?? mergedType.value === "confirm";
|
|
33
34
|
});
|
|
35
|
+
const { infoIcon, successIcon, errorIcon, warningIcon } = useComponentBaseConfig("modal", props, [
|
|
36
|
+
"infoIcon",
|
|
37
|
+
"successIcon",
|
|
38
|
+
"errorIcon",
|
|
39
|
+
"warningIcon"
|
|
40
|
+
]);
|
|
34
41
|
const autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || "ok";
|
|
35
42
|
const [locale] = useLocale("Modal", getConfirmLocale());
|
|
36
43
|
const mergedLocale = computed(() => props.locale || locale?.value);
|
|
@@ -52,20 +59,20 @@ const ConfirmContent = /* @__PURE__ */ defineComponent((props) => {
|
|
|
52
59
|
const icon = getSlotPropsFnRun({}, props, "icon", false);
|
|
53
60
|
const title = getSlotPropsFnRun({}, props, "title", false);
|
|
54
61
|
let mergedIcon = icon;
|
|
55
|
-
if (
|
|
62
|
+
if (icon === void 0) switch (mergedType.value) {
|
|
56
63
|
case "info":
|
|
57
|
-
mergedIcon = createVNode(InfoCircleFilled, null, null);
|
|
64
|
+
mergedIcon = fallbackProp(infoIcon.value, createVNode(InfoCircleFilled, null, null));
|
|
58
65
|
break;
|
|
59
66
|
case "success":
|
|
60
|
-
mergedIcon = createVNode(CheckCircleFilled, null, null);
|
|
67
|
+
mergedIcon = fallbackProp(successIcon.value, createVNode(CheckCircleFilled, null, null));
|
|
61
68
|
break;
|
|
62
69
|
case "error":
|
|
63
|
-
mergedIcon = createVNode(CloseCircleFilled, null, null);
|
|
70
|
+
mergedIcon = fallbackProp(errorIcon.value, createVNode(CloseCircleFilled, null, null));
|
|
64
71
|
break;
|
|
65
|
-
default: mergedIcon = createVNode(ExclamationCircleFilled, null, null);
|
|
72
|
+
default: mergedIcon = fallbackProp(warningIcon.value, createVNode(ExclamationCircleFilled, null, null));
|
|
66
73
|
}
|
|
67
74
|
const hasTitle = isNonNullable(title) && title !== "";
|
|
68
|
-
const hasIcon =
|
|
75
|
+
const hasIcon = isRenderable(mergedIcon);
|
|
69
76
|
const bodyCls = `${confirmPrefixCls}-body`;
|
|
70
77
|
const footerOriginNode = createVNode(Fragment, null, [createVNode(ConfirmCancelBtn, null, null), createVNode(ConfirmOkBtn, null, null)]);
|
|
71
78
|
return createVNode("div", { "class": `${confirmPrefixCls}-body-wrapper` }, [
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
1
2
|
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
2
4
|
import { FullToken, GenStyleFn, GlobalToken } from "../../theme/interface/cssinjs-utils.js";
|
|
3
5
|
import { GenerateStyle } from "../../theme/interface/index.js";
|
|
4
6
|
import { TokenWithCommonCls } from "../../theme/internal.js";
|
|
@@ -134,6 +136,6 @@ declare function prepareComponentToken(token: GlobalToken): {
|
|
|
134
136
|
confirmBtnsMarginTop: number;
|
|
135
137
|
mask: boolean;
|
|
136
138
|
};
|
|
137
|
-
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>];
|
|
139
|
+
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>];
|
|
138
140
|
//#endregion
|
|
139
141
|
export { ComponentToken, ModalToken, _default as default, genModalMaskStyle, prepareComponentToken, prepareToken };
|
|
@@ -193,12 +193,14 @@ const PurePanel = /* @__PURE__ */ defineComponent((props, { attrs, slots }) => {
|
|
|
193
193
|
const slotIcon = getSlotPropsFnRun(slots, props, "icon");
|
|
194
194
|
const mergedNcs = mergedClassNames.value;
|
|
195
195
|
const mergedNss = mergedStyles.value;
|
|
196
|
+
const { root: rootClassName, ...contentClassNames } = mergedNcs;
|
|
197
|
+
const { root: rootStyle, ...contentStyles } = mergedNss;
|
|
196
198
|
const mergedIcon = slotIcon ?? props.icon;
|
|
197
199
|
const iconNode = resolveIconNode(mergedIcon, props.type);
|
|
198
200
|
const iconWrapperClass = clsx(getIconWrapperClassName(noticePrefixCls, props.type, mergedIcon), mergedNcs?.icon);
|
|
199
201
|
return createVNode("div", {
|
|
200
|
-
"class": clsx(`${noticePrefixCls}-pure-panel`, hashId.value, notificationClassName, cssVarCls.value, rootCls.value,
|
|
201
|
-
"style":
|
|
202
|
+
"class": clsx(`${noticePrefixCls}-pure-panel`, hashId.value, notificationClassName, cssVarCls.value, rootCls.value, rootClassName),
|
|
203
|
+
"style": rootStyle
|
|
202
204
|
}, [createVNode(PurePanelStyle, { "prefixCls": prefixCls.value }, null), createVNode(Notification, mergeProps({ "style": {
|
|
203
205
|
...contextStyle.value,
|
|
204
206
|
...normalizeStyle$1(style) || {}
|
|
@@ -213,17 +215,10 @@ const PurePanel = /* @__PURE__ */ defineComponent((props, { attrs, slots }) => {
|
|
|
213
215
|
"description": descriptionNode,
|
|
214
216
|
"actions": actions,
|
|
215
217
|
"classNames": {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
description: mergedNcs?.description,
|
|
219
|
-
actions: mergedNcs?.actions
|
|
218
|
+
...contentClassNames,
|
|
219
|
+
icon: iconWrapperClass
|
|
220
220
|
},
|
|
221
|
-
"styles":
|
|
222
|
-
icon: mergedNss?.icon,
|
|
223
|
-
title: mergedNss?.title,
|
|
224
|
-
description: mergedNss?.description,
|
|
225
|
-
actions: mergedNss?.actions
|
|
226
|
-
}
|
|
221
|
+
"styles": contentStyles
|
|
227
222
|
}), null)]);
|
|
228
223
|
};
|
|
229
224
|
}, {
|
|
@@ -15,20 +15,28 @@ type NotificationSemanticName = keyof NotificationSemanticClassNames & keyof Not
|
|
|
15
15
|
interface NotificationSemanticClassNames {
|
|
16
16
|
list?: string;
|
|
17
17
|
listContent?: string;
|
|
18
|
+
wrapper?: string;
|
|
18
19
|
root?: string;
|
|
19
20
|
title?: string;
|
|
20
21
|
description?: string;
|
|
21
22
|
actions?: string;
|
|
22
23
|
icon?: string;
|
|
24
|
+
section?: string;
|
|
25
|
+
close?: string;
|
|
26
|
+
progress?: string;
|
|
23
27
|
}
|
|
24
28
|
interface NotificationSemanticStyles {
|
|
25
29
|
list?: CSSProperties;
|
|
26
30
|
listContent?: CSSProperties;
|
|
31
|
+
wrapper?: CSSProperties;
|
|
27
32
|
root?: CSSProperties;
|
|
28
33
|
title?: CSSProperties;
|
|
29
34
|
description?: CSSProperties;
|
|
30
35
|
actions?: CSSProperties;
|
|
31
36
|
icon?: CSSProperties;
|
|
37
|
+
section?: CSSProperties;
|
|
38
|
+
close?: CSSProperties;
|
|
39
|
+
progress?: CSSProperties;
|
|
32
40
|
}
|
|
33
41
|
type NotificationClassNamesType = SemanticClassNamesType<ArgsProps, NotificationSemanticClassNames>;
|
|
34
42
|
type NotificationStylesType = SemanticStylesType<ArgsProps, NotificationSemanticStyles>;
|
|
@@ -1,3 +1,6 @@
|
|
|
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 } from "../../theme/interface/cssinjs-utils.js";
|
|
2
5
|
import { GenerateStyle } from "../../theme/interface/index.js";
|
|
3
6
|
import "../../theme/internal.js";
|
|
@@ -115,6 +118,6 @@ declare const PurePanelStyle: import("vue").DefineComponent<import("vue").Extrac
|
|
|
115
118
|
/** Compose the shared list, item, and placement styles. */
|
|
116
119
|
declare function sharedGenerateStyle<Token extends NotificationToken>(token: Token, config: SharedStyleConfig<Token>): ReturnType<GenerateStyle<Token>>;
|
|
117
120
|
/** Register the main style hook for Notification. */
|
|
118
|
-
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>];
|
|
121
|
+
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>];
|
|
119
122
|
//#endregion
|
|
120
123
|
export { ComponentToken, NotificationToken, PurePanelStyle, _default as default, prepareNotificationToken, sharedGenerateStyle };
|
|
@@ -54,6 +54,7 @@ const genNotificationListContentStyle = (token) => {
|
|
|
54
54
|
width: "100%",
|
|
55
55
|
willChange: "height, transform",
|
|
56
56
|
transition: "none",
|
|
57
|
+
pointerEvents: "auto",
|
|
57
58
|
[`&${listContentCls}-decrease`]: { transition: `height calc(${motionDurationSlow} * 2) ${motionEaseInOut} ${motionDurationMid}` }
|
|
58
59
|
},
|
|
59
60
|
[`${componentCls}-fade`]: {
|
|
@@ -89,7 +90,6 @@ function genNotificationListStyle(token, config) {
|
|
|
89
90
|
overflowY: "auto",
|
|
90
91
|
overscrollBehavior: "contain",
|
|
91
92
|
scrollbarWidth: "none",
|
|
92
|
-
msOverflowStyle: "none",
|
|
93
93
|
pointerEvents: "none",
|
|
94
94
|
"&::-webkit-scrollbar": {
|
|
95
95
|
display: "none",
|
|
@@ -105,13 +105,16 @@ function genPlacementStyle(token, config) {
|
|
|
105
105
|
opacity: 1,
|
|
106
106
|
transform: baseTransform
|
|
107
107
|
},
|
|
108
|
-
[`${noticeMotionCls}-leave
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
108
|
+
[`${noticeMotionCls}-leave`]: {
|
|
109
|
+
pointerEvents: "none",
|
|
110
|
+
"&-start": {
|
|
111
|
+
opacity: 1,
|
|
112
|
+
transform: baseTransform
|
|
113
|
+
},
|
|
114
|
+
"&-active": {
|
|
115
|
+
opacity: 0,
|
|
116
|
+
transform: enterTransform
|
|
117
|
+
}
|
|
115
118
|
},
|
|
116
119
|
[`&${componentCls}-stack:not(${componentCls}-stack-expanded)`]: {
|
|
117
120
|
[noticeCls]: { clipPath: getPlacementStackClipPath(token, vertical) },
|
|
@@ -211,22 +211,12 @@ function useInternalNotification(notificationConfig) {
|
|
|
211
211
|
actions: mergedActions,
|
|
212
212
|
role,
|
|
213
213
|
classNames: {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
description: semanticClassNames?.description,
|
|
217
|
-
actions: semanticClassNames?.actions
|
|
218
|
-
},
|
|
219
|
-
styles: {
|
|
220
|
-
icon: semanticStyles?.icon,
|
|
221
|
-
title: semanticStyles?.title,
|
|
222
|
-
description: semanticStyles?.description,
|
|
223
|
-
actions: semanticStyles?.actions
|
|
224
|
-
},
|
|
225
|
-
class: clsx({ [`${noticePrefixCls}-${type}`]: type }, { [`${noticePrefixCls}-with-icon`]: !!iconNode }, className, contextClassName, semanticClassNames?.root),
|
|
226
|
-
style: {
|
|
227
|
-
...semanticStyles?.root,
|
|
228
|
-
...style
|
|
214
|
+
...semanticClassNames,
|
|
215
|
+
icon: iconWrapperClass
|
|
229
216
|
},
|
|
217
|
+
styles: semanticStyles,
|
|
218
|
+
class: clsx({ [`${noticePrefixCls}-${type}`]: type }, { [`${noticePrefixCls}-with-icon`]: !!iconNode }, className, contextClassName),
|
|
219
|
+
style,
|
|
230
220
|
closable: mergedClosable
|
|
231
221
|
});
|
|
232
222
|
};
|
package/dist/package.js
CHANGED
|
@@ -15,8 +15,8 @@ import { Fragment, computed, createVNode, defineComponent, h, mergeProps } from
|
|
|
15
15
|
import { clsx } from "@v-c/util";
|
|
16
16
|
import { DoubleLeftOutlined, DoubleRightOutlined, EllipsisOutlined, LeftOutlined, RightOutlined } from "@antdv-next/icons";
|
|
17
17
|
import { omit } from "es-toolkit";
|
|
18
|
+
import Pagination$1 from "@v-c/pagination/locale/en_US";
|
|
18
19
|
import VcPagination from "@v-c/pagination";
|
|
19
|
-
import enUS from "@v-c/pagination/locale/zh_CN";
|
|
20
20
|
//#region src/pagination/Pagination.tsx
|
|
21
21
|
const omitKeys = [
|
|
22
22
|
"size",
|
|
@@ -46,7 +46,7 @@ const Pagination = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
|
|
|
46
46
|
});
|
|
47
47
|
const contextStyleRoot = useSemanticRootStyle(contextStyle);
|
|
48
48
|
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, contextStyleRoot, styles), useToProps(mergedProps));
|
|
49
|
-
const [contextLocale] = useLocale("Pagination",
|
|
49
|
+
const [contextLocale] = useLocale("Pagination", Pagination$1);
|
|
50
50
|
const mergedLocale = computed(() => ({
|
|
51
51
|
...contextLocale?.value,
|
|
52
52
|
...props.locale ?? {}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
1
3
|
import { SharedComponentToken, SharedInputToken } from "../../input/style/token.js";
|
|
4
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
2
5
|
import { FullToken, GenStyleFn, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
6
|
+
import "../../theme/interface/index.js";
|
|
3
7
|
import "../../theme/internal.js";
|
|
4
8
|
//#region src/pagination/style/index.d.ts
|
|
5
9
|
interface ComponentToken {
|
|
@@ -107,6 +111,6 @@ interface PaginationToken extends FullToken<'Pagination'>, SharedComponentToken,
|
|
|
107
111
|
}
|
|
108
112
|
declare const prepareComponentToken: GetDefaultToken<'Pagination'>;
|
|
109
113
|
declare function prepareToken(token: Parameters<GenStyleFn<'Pagination'>>[0]): PaginationToken;
|
|
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 { ComponentToken, PaginationToken, _default as default, prepareComponentToken, prepareToken };
|
|
@@ -2,6 +2,9 @@ import { SelectProps } from "../select/index.js";
|
|
|
2
2
|
import { PaginationProps } from "./interface.js";
|
|
3
3
|
//#region src/pagination/useShowSizeChanger.d.ts
|
|
4
4
|
declare function resolveShowSizeChanger(showSizeChanger?: PaginationProps['showSizeChanger']): {
|
|
5
|
+
show: boolean;
|
|
6
|
+
selectProps: undefined;
|
|
7
|
+
} | {
|
|
5
8
|
show: boolean;
|
|
6
9
|
selectProps: SelectProps;
|
|
7
10
|
} | {
|
package/dist/popconfirm/index.js
CHANGED
|
@@ -82,11 +82,11 @@ const Popconfirm = /* @__PURE__ */ defineComponent((props, { slots, attrs, expos
|
|
|
82
82
|
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, contextStyleRoot, styles), useToProps(mergedProps));
|
|
83
83
|
const rootClassNames = computed(() => clsx(prefixCls.value, hashId.value, cssVarCls.value, contextClassName.value, mergedClassNames.value.root));
|
|
84
84
|
return () => {
|
|
85
|
-
const titleNode = getSlotPropsFnRun(slots, props, "title")
|
|
86
|
-
const descriptionNode = getSlotPropsFnRun(slots, props, "description")
|
|
87
|
-
const iconNode = getSlotPropsFnRun(slots, props, "icon") ??
|
|
88
|
-
const okTextNode = getSlotPropsFnRun(slots, props, "okText")
|
|
89
|
-
const cancelTextNode = getSlotPropsFnRun(slots, props, "cancelText")
|
|
85
|
+
const titleNode = getSlotPropsFnRun(slots, props, "title");
|
|
86
|
+
const descriptionNode = getSlotPropsFnRun(slots, props, "description");
|
|
87
|
+
const iconNode = getSlotPropsFnRun(slots, props, "icon") ?? defaultIcon;
|
|
88
|
+
const okTextNode = getSlotPropsFnRun(slots, props, "okText");
|
|
89
|
+
const cancelTextNode = getSlotPropsFnRun(slots, props, "cancelText");
|
|
90
90
|
const restProps = omit(props, OMITTED_PROP_KEYS);
|
|
91
91
|
const content = createVNode(Overlay, {
|
|
92
92
|
"prefixCls": prefixCls.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, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
5
|
+
import "../../theme/interface/index.js";
|
|
2
6
|
import "../../theme/internal.js";
|
|
3
7
|
//#region src/popconfirm/style/index.d.ts
|
|
4
8
|
interface ComponentToken {
|
|
@@ -14,6 +18,6 @@ interface ComponentToken {
|
|
|
14
18
|
*/
|
|
15
19
|
interface PopconfirmToken extends FullToken<'Popconfirm'> {}
|
|
16
20
|
declare const prepareComponentToken: GetDefaultToken<'Popconfirm'>;
|
|
17
|
-
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>];
|
|
21
|
+
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>];
|
|
18
22
|
//#endregion
|
|
19
23
|
export { ComponentToken, PopconfirmToken, _default as default, prepareComponentToken };
|
|
@@ -19,7 +19,7 @@ const genBaseStyle = (token) => {
|
|
|
19
19
|
[`${componentCls}-title`]: {
|
|
20
20
|
fontWeight: fontWeightStrong,
|
|
21
21
|
color: colorTextHeading,
|
|
22
|
-
"&:only-child": { fontWeight:
|
|
22
|
+
"&:only-child": { fontWeight: 400 }
|
|
23
23
|
},
|
|
24
24
|
[`${componentCls}-description`]: {
|
|
25
25
|
marginTop: marginXXS,
|
package/dist/popover/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import InternalTooltip from "../tooltip/index.js";
|
|
|
6
6
|
import { isRenderable } from "../_util/is.js";
|
|
7
7
|
import style_default from "./style/index.js";
|
|
8
8
|
import PurePanel, { Overlay } from "./PurePanel.js";
|
|
9
|
-
import { computed, createVNode, defineComponent, mergeDefaults, mergeProps, shallowRef, watch } from "vue";
|
|
9
|
+
import { computed, createVNode, defineComponent, isVNode, mergeDefaults, mergeProps, shallowRef, watch } from "vue";
|
|
10
10
|
import { clsx } from "@v-c/util";
|
|
11
11
|
import { filterEmpty, removeUndefined } from "@v-c/util/dist/props-util";
|
|
12
12
|
import { getTransitionName } from "@v-c/util/dist/utils/transition";
|
|
@@ -60,8 +60,9 @@ const Popover = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose,
|
|
|
60
60
|
settingOpen(nextOpen);
|
|
61
61
|
};
|
|
62
62
|
return () => {
|
|
63
|
-
const
|
|
64
|
-
const
|
|
63
|
+
const firstChild = filterEmpty(slots?.default?.() ?? [])[0];
|
|
64
|
+
const child = firstChild && !(isVNode(firstChild) && typeof firstChild.type !== "symbol") ? createVNode("span", null, [firstChild]) : firstChild;
|
|
65
|
+
const { placement, mouseLeaveDelay: _mouseLeaveDelay, mouseEnterDelay: _mouseEnterDelay, motion, title: _title, content: _content, ...restProps } = props;
|
|
65
66
|
const titleNode = getSlotPropsFnRun(slots, props, "title");
|
|
66
67
|
const contentNode = getSlotPropsFnRun(slots, props, "content");
|
|
67
68
|
const rootClassNames = clsx(hashId.value, cssVarCls.value, contextClassName.value, mergedClassNames.value.root);
|
|
@@ -96,7 +97,7 @@ const Popover = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose,
|
|
|
96
97
|
"motion": { name: getTransitionName(rootCls.value, "zoom-big", typeof motion?.name === "string" ? motion?.name : void 0) },
|
|
97
98
|
"dataPopoverInject": true,
|
|
98
99
|
"ref": popoverRef
|
|
99
|
-
}), { default: () => [
|
|
100
|
+
}), { default: () => [child ? createVNode(child, { onKeydown: onKeyDown }) : null] });
|
|
100
101
|
};
|
|
101
102
|
}, {
|
|
102
103
|
props: /*@__PURE__*/ mergeDefaults({
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
1
3
|
import { ArrowToken } from "../../style/roundedArrow.js";
|
|
2
4
|
import { ArrowOffsetToken } from "../../style/placementArrow.js";
|
|
5
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
3
6
|
import { FullToken, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
7
|
+
import "../../theme/interface/index.js";
|
|
4
8
|
import "../../theme/internal.js";
|
|
5
9
|
//#region src/popover/style/index.d.ts
|
|
6
10
|
interface ComponentToken extends ArrowToken, ArrowOffsetToken {
|
|
@@ -54,6 +58,6 @@ type PopoverToken = FullToken<'Popover'> & {
|
|
|
54
58
|
popoverColor: string;
|
|
55
59
|
};
|
|
56
60
|
declare const prepareComponentToken: GetDefaultToken<'Popover'>;
|
|
57
|
-
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>];
|
|
61
|
+
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>];
|
|
58
62
|
//#endregion
|
|
59
63
|
export { ComponentToken, PopoverToken, _default as default, prepareComponentToken };
|
|
@@ -20,7 +20,7 @@ const genBaseStyle = (token) => {
|
|
|
20
20
|
value: 0
|
|
21
21
|
},
|
|
22
22
|
zIndex: zIndexPopup,
|
|
23
|
-
fontWeight:
|
|
23
|
+
fontWeight: 400,
|
|
24
24
|
whiteSpace: "normal",
|
|
25
25
|
textAlign: "start",
|
|
26
26
|
cursor: "auto",
|
|
@@ -69,7 +69,7 @@ const genColorStyle = (token) => {
|
|
|
69
69
|
const lightColor = token[`${colorKey}6`];
|
|
70
70
|
return { [`&${componentCls}-${colorKey}`]: {
|
|
71
71
|
[varName("arrow-background-color")]: lightColor,
|
|
72
|
-
[`${componentCls}-
|
|
72
|
+
[`${componentCls}-container`]: { backgroundColor: lightColor },
|
|
73
73
|
[`${componentCls}-arrow`]: { background: "transparent" }
|
|
74
74
|
} };
|
|
75
75
|
}) };
|
package/dist/progress/Circle.js
CHANGED
|
@@ -181,14 +181,6 @@ const Circle = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
181
181
|
rootClass: {
|
|
182
182
|
type: String,
|
|
183
183
|
required: false
|
|
184
|
-
},
|
|
185
|
-
"aria-label": {
|
|
186
|
-
type: [String, null],
|
|
187
|
-
required: false
|
|
188
|
-
},
|
|
189
|
-
"aria-labelledby": {
|
|
190
|
-
type: [String, null],
|
|
191
|
-
required: false
|
|
192
184
|
}
|
|
193
185
|
}, {
|
|
194
186
|
strokeLinecap: "round",
|
package/dist/progress/Line.js
CHANGED
|
@@ -57,7 +57,7 @@ function handleGradient(strokeColor, directionConfig) {
|
|
|
57
57
|
}
|
|
58
58
|
const Line = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
59
59
|
if (isDev) devUseWarning("Progress").deprecated(!(props.strokeWidth !== void 0), "strokeWidth", "size");
|
|
60
|
-
const mergedSize = computed(() => props.size ?? [-1, props.strokeWidth ||
|
|
60
|
+
const mergedSize = computed(() => props.size ?? [-1, props.strokeWidth || 8]);
|
|
61
61
|
return () => {
|
|
62
62
|
const { prefixCls, classes, styles, direction: directionConfig, percent, strokeWidth, strokeColor, strokeLinecap = "round", railColor, trailColor, percentPosition, success } = props;
|
|
63
63
|
const { align: infoAlign, type: infoPosition } = percentPosition;
|
|
@@ -216,14 +216,6 @@ const Line = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
216
216
|
rootClass: {
|
|
217
217
|
type: String,
|
|
218
218
|
required: false
|
|
219
|
-
},
|
|
220
|
-
"aria-label": {
|
|
221
|
-
type: [String, null],
|
|
222
|
-
required: false
|
|
223
|
-
},
|
|
224
|
-
"aria-labelledby": {
|
|
225
|
-
type: [String, null],
|
|
226
|
-
required: false
|
|
227
219
|
}
|
|
228
220
|
},
|
|
229
221
|
name: "ProgressLine",
|
package/dist/progress/Steps.js
CHANGED
|
@@ -129,14 +129,6 @@ const Steps = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
129
129
|
prefixCls: {
|
|
130
130
|
type: String,
|
|
131
131
|
required: false
|
|
132
|
-
},
|
|
133
|
-
"aria-label": {
|
|
134
|
-
type: [String, null],
|
|
135
|
-
required: false
|
|
136
|
-
},
|
|
137
|
-
"aria-labelledby": {
|
|
138
|
-
type: [String, null],
|
|
139
|
-
required: false
|
|
140
132
|
}
|
|
141
133
|
},
|
|
142
134
|
name: "ProgressSteps",
|
|
@@ -147,18 +147,14 @@ const Progress = /* @__PURE__ */ defineComponent((props, { attrs }) => {
|
|
|
147
147
|
[`${prefixCls.value}-small`]: mergedSize.value === "small",
|
|
148
148
|
[`${prefixCls.value}-rtl`]: direction.value === "rtl"
|
|
149
149
|
}, contextClassName.value, className, rootClass.value, mergedClassNames.value.root, hashId.value, cssVarCls.value);
|
|
150
|
-
const rootStyle = [mergedStyles.value.root, attrStyle];
|
|
151
|
-
const ariaProps = {};
|
|
152
|
-
if (props["aria-label"] !== void 0) ariaProps["aria-label"] = props["aria-label"];
|
|
153
|
-
if (props["aria-labelledby"] !== void 0) ariaProps["aria-labelledby"] = props["aria-labelledby"];
|
|
154
150
|
return createVNode("div", mergeProps(restAttrs, {
|
|
155
|
-
"style":
|
|
151
|
+
"style": [mergedStyles.value.root, attrStyle],
|
|
156
152
|
"class": classString,
|
|
157
153
|
"role": "progressbar",
|
|
158
154
|
"aria-valuenow": percentNumber.value,
|
|
159
155
|
"aria-valuemin": 0,
|
|
160
156
|
"aria-valuemax": 100
|
|
161
|
-
}
|
|
157
|
+
}), [progress]);
|
|
162
158
|
};
|
|
163
159
|
}, {
|
|
164
160
|
props: /*@__PURE__*/ mergeDefaults({
|
|
@@ -263,14 +259,6 @@ const Progress = /* @__PURE__ */ defineComponent((props, { attrs }) => {
|
|
|
263
259
|
prefixCls: {
|
|
264
260
|
type: String,
|
|
265
261
|
required: false
|
|
266
|
-
},
|
|
267
|
-
"aria-label": {
|
|
268
|
-
type: [String, null],
|
|
269
|
-
required: false
|
|
270
|
-
},
|
|
271
|
-
"aria-labelledby": {
|
|
272
|
-
type: [String, null],
|
|
273
|
-
required: false
|
|
274
262
|
}
|
|
275
263
|
}, defaultProps),
|
|
276
264
|
name: "AProgress",
|
|
@@ -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/progress/style/index.d.ts
|
|
4
8
|
interface ComponentToken {
|
|
@@ -35,6 +39,6 @@ interface ComponentToken {
|
|
|
35
39
|
}
|
|
36
40
|
declare const LineStrokeColorVar = "--progress-line-stroke-color";
|
|
37
41
|
declare const prepareComponentToken: GetDefaultToken<'Progress'>;
|
|
38
|
-
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>];
|
|
42
|
+
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>];
|
|
39
43
|
//#endregion
|
|
40
44
|
export { ComponentToken, LineStrokeColorVar, _default as default, prepareComponentToken };
|
package/dist/qrcode/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { toPropsRefs } from "../_util/tools.js";
|
|
|
7
7
|
import useLocale from "../locale/useLocale.js";
|
|
8
8
|
import QRcodeStatus from "./QrcodeStatus.js";
|
|
9
9
|
import style_default from "./style/index.js";
|
|
10
|
-
import { computed, createVNode, defineComponent, mergeDefaults, mergeProps, shallowRef } from "vue";
|
|
10
|
+
import { computed, createVNode, defineComponent, getCurrentInstance, mergeDefaults, mergeProps, shallowRef } from "vue";
|
|
11
11
|
import { classNames } from "@v-c/util";
|
|
12
12
|
import { omit } from "es-toolkit";
|
|
13
13
|
import pickAttrs from "@v-c/util/dist/pickAttrs";
|
|
@@ -16,6 +16,7 @@ import { QRCodeCanvas, QRCodeSVG } from "@v-c/qrcode";
|
|
|
16
16
|
const QRCode = /* @__PURE__ */ defineComponent((props, { emit, attrs, slots, expose }) => {
|
|
17
17
|
const { prefixCls, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles } = useComponentBaseConfig("qrcode", props);
|
|
18
18
|
const { styles, classes } = toPropsRefs(props, "styles", "classes");
|
|
19
|
+
const instance = getCurrentInstance();
|
|
19
20
|
const [hashId, cssVarCls] = style_default(prefixCls);
|
|
20
21
|
const [locale] = useLocale("QRCode");
|
|
21
22
|
const [, token] = useToken();
|
|
@@ -42,6 +43,7 @@ const QRCode = /* @__PURE__ */ defineComponent((props, { emit, attrs, slots, exp
|
|
|
42
43
|
return () => {
|
|
43
44
|
const { type, value, size, errorLevel, bgColor, icon, boostLevel, bordered, rootClass, status, marginSize } = props;
|
|
44
45
|
const statusRender = slots?.statusRender ?? props?.statusRender;
|
|
46
|
+
const hasRefreshListener = !!instance?.vnode?.props?.onRefresh;
|
|
45
47
|
const a11yProps = pickAttrs(attrs, true);
|
|
46
48
|
const restProps = omit(attrs, Object.keys(a11yProps));
|
|
47
49
|
const style = attrs.style;
|
|
@@ -89,9 +91,7 @@ const QRCode = /* @__PURE__ */ defineComponent((props, { emit, attrs, slots, exp
|
|
|
89
91
|
"prefixCls": prefixCls.value,
|
|
90
92
|
"locale": locale.value,
|
|
91
93
|
"status": status,
|
|
92
|
-
"onRefresh": () =>
|
|
93
|
-
emit("refresh");
|
|
94
|
-
},
|
|
94
|
+
"onRefresh": hasRefreshListener ? () => emit("refresh") : void 0,
|
|
95
95
|
"statusRender": statusRender
|
|
96
96
|
}, null)]), type === "canvas" ? createVNode(QRCodeCanvas, qrCodeProps, null) : createVNode(QRCodeSVG, qrCodeProps, null)]);
|
|
97
97
|
};
|
|
@@ -148,39 +148,18 @@ const QRCode = /* @__PURE__ */ defineComponent((props, { emit, attrs, slots, exp
|
|
|
148
148
|
type: Number,
|
|
149
149
|
required: false
|
|
150
150
|
},
|
|
151
|
-
level: {
|
|
152
|
-
type: String,
|
|
153
|
-
required: false
|
|
154
|
-
},
|
|
155
151
|
bgColor: {
|
|
156
152
|
type: String,
|
|
157
153
|
required: false
|
|
158
154
|
},
|
|
159
|
-
fgColor: {
|
|
160
|
-
type: String,
|
|
161
|
-
required: false
|
|
162
|
-
},
|
|
163
|
-
includeMargin: {
|
|
164
|
-
type: Boolean,
|
|
165
|
-
required: false,
|
|
166
|
-
default: void 0
|
|
167
|
-
},
|
|
168
155
|
marginSize: {
|
|
169
156
|
type: Number,
|
|
170
157
|
required: false
|
|
171
158
|
},
|
|
172
|
-
imageSettings: {
|
|
173
|
-
type: Object,
|
|
174
|
-
required: false
|
|
175
|
-
},
|
|
176
159
|
title: {
|
|
177
160
|
type: String,
|
|
178
161
|
required: false
|
|
179
162
|
},
|
|
180
|
-
minVersion: {
|
|
181
|
-
type: Number,
|
|
182
|
-
required: false
|
|
183
|
-
},
|
|
184
163
|
rootClass: {
|
|
185
164
|
type: String,
|
|
186
165
|
required: false
|
|
@@ -25,7 +25,7 @@ interface QRCodeSemanticStyles {
|
|
|
25
25
|
}
|
|
26
26
|
type QRCodeClassNamesType = SemanticClassNamesType<QRCodeProps, QRCodeSemanticClassNames>;
|
|
27
27
|
type QRCodeStylesType = SemanticStylesType<QRCodeProps, QRCodeSemanticStyles>;
|
|
28
|
-
interface QRCodeProps extends QRProps, ComponentBaseProps {
|
|
28
|
+
interface QRCodeProps extends Omit<QRProps, 'fgColor' | 'imageSettings' | 'includeMargin' | 'level' | 'minVersion'>, ComponentBaseProps {
|
|
29
29
|
type?: 'canvas' | 'svg';
|
|
30
30
|
icon?: string;
|
|
31
31
|
iconSize?: number | {
|
|
@@ -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/qrcode/style/index.d.ts
|
|
4
8
|
interface ComponentToken {}
|
|
5
9
|
declare const prepareComponentToken: GetDefaultToken<'QRCode'>;
|
|
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 };
|